Use run_on_main_thread in gdb.post_event
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-26 Tom Tromey <tom@tromey.com>
2
3 * python/python.c (class gdbpy_gil): New.
4 (struct gdbpy_event): Add constructor, destructor, operator().
5 (gdbpy_post_event): Use run_on_main_thread.
6 (gdbpy_initialize_events): Remove.
7 (do_start_initialization): Update.
8
9 2019-11-26 Tom Tromey <tom@tromey.com>
10
11 * NEWS: Add entry.
12 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
13 commands. Call update_thread_pool_size.
14 (update_thread_pool_size, maintenance_set_worker_threads): New
15 functions.
16 (n_worker_threads): New global.
17
18 2019-11-26 Christian Biesinger <cbiesinger@google.com>
19 Tom Tromey <tom@tromey.com>
20
21 * minsyms.c (minimal_symbol_reader::install): Use
22 parallel_for_each.
23 * gdbsupport/parallel-for.h: New file.
24 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
25
26 2019-11-26 Christian Biesinger <cbiesinger@google.com>
27 Tom Tromey <tom@tromey.com>
28
29 * gdbsupport/thread-pool.h: New file.
30 * gdbsupport/thread-pool.c: New file.
31 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
32 (HFILES_NO_SRCDIR): Add thread-pool.h.
33
34 2019-11-26 Tom Tromey <tom@tromey.com>
35
36 * event-top.h (thread_local_segv_handler): Declare.
37 * event-top.c (thread_local_segv_handler): New global.
38 (install_handle_sigsegv, handle_sigsegv): New functions.
39 (async_init_signals): Install SIGSEGV handler.
40 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
41 thread-local.
42 (report_failed_demangle): New function.
43 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
44 handler-setting code, instead use segv_handler. Run warning code
45 on main thread.
46
47 2019-11-26 Tom Tromey <tom@tromey.com>
48
49 * run-on-main-thread.c: New file.
50 * run-on-main-thread.h: New file.
51 * unittests/main-thread-selftests.c: New file.
52 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
53 main-thread-selftests.c.
54 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
55 (COMMON_SFILES): Add run-on-main-thread.c.
56
57 2019-11-26 Tom Tromey <tom@tromey.com>
58
59 * main.c (setup_alternate_signal_stack): Remove.
60 (captured_main_1): Use gdb::alternate_signal_stack.
61 * gdbsupport/alt-stack.h: New file.
62
63 2019-11-26 Tom Tromey <tom@tromey.com>
64
65 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
66 Remove comment.
67 (save_original_signals_state, restore_original_signals_state): Use
68 gdb_sigmask.
69 * linux-nat.c (block_child_signals, restore_child_signals_mask)
70 (_initialize_linux_nat): Use gdb_sigmask.
71 * guile/guile.c (_initialize_guile): Use block_signals.
72 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
73 * gdbsupport/gdb-sigmask.h: New file.
74 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
75 * cp-support.c (gdb_demangle): Use gdb_sigmask.
76 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
77 pthread_sigmask.
78 * configure, config.in: Rebuild.
79 * gdbsupport/block-signals.h: New file.
80
81 2019-11-26 Tom Tromey <tom@tromey.com>
82
83 * acinclude.m4: Include ax_pthread.m4.
84 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
85 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
86 (CLIBS): Use PTHREAD_LIBS.
87 (aclocal_m4_deps): Add ax_pthread.m4.
88 * config.in, configure: Rebuild.
89 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
90
91 2019-11-26 Tom Tromey <tom@tromey.com>
92
93 * symtab.h (struct minimal_symbol) <name_set>: New member.
94 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
95 Don't call symbol_set_names.
96 (minimal_symbol_reader::install): Call symbol_set_names.
97
98 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
99
100 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
101 restore_active_ext_lang, as GIL is needed for (indirectly)
102 called PyOS_InterruptOccurred.
103
104 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
105
106 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
107 definition.
108
109 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
110
111 * remote-sim.c (simulator_command): Make static, remove
112 declaration.
113
114 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
115
116 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
117 static.
118 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
119 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
120 (main): Likewise.
121 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
122 (main): Likewise.
123 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
124 (main): Likewise.
125 * unittests/basic_string_view/element_access/char/1.cc (test01):
126 Likewise.
127 (main): Likewise.
128 * unittests/basic_string_view/element_access/char/empty.cc (main):
129 Likewise.
130 * unittests/basic_string_view/element_access/char/front_back.cc
131 (test01): Likewise.
132 (main): Likewise.
133 * unittests/basic_string_view/inserters/char/2.cc (test05):
134 Likewise.
135 (main): Likewise.
136 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
137 (test01): Likewise.
138 (main): Likewise.
139 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
140 (test01): Likewise.
141 (main): Likewise.
142 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
143 Likewise.
144 * unittests/basic_string_view/operations/compare/char/1.cc
145 (test01): Likewise.
146 (main): Likewise.
147 * unittests/basic_string_view/operations/compare/char/13650.cc
148 (test01): Likewise.
149 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
150 Likewise.
151 (main): Likewise.
152 * unittests/basic_string_view/operations/data/char/1.cc (test01):
153 Likewise.
154 (main): Likewise.
155 * unittests/basic_string_view/operations/find/char/1.cc (test01):
156 Likewise.
157 (main): Likewise.
158 * unittests/basic_string_view/operations/find/char/2.cc (test02):
159 Likewise.
160 (main): Likewise.
161 * unittests/basic_string_view/operations/find/char/3.cc (test03):
162 Likewise.
163 (main): Likewise.
164 * unittests/basic_string_view/operations/find/char/4.cc (main):
165 Likewise.
166 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
167 Likewise.
168 (main): Likewise.
169 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
170 Likewise.
171 (main): Likewise.
172 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
173 Likewise.
174 (main): Likewise.
175 * unittests/basic_string_view/operations/substr/char/1.cc
176 (test01): Likewise.
177 (main): Likewise.
178 * unittests/basic_string_view/operators/char/2.cc (main):
179 Likewise.
180 * unittests/optional/assignment/1.cc (test): Likewise.
181 * unittests/optional/assignment/2.cc (test): Likewise.
182 * unittests/optional/assignment/3.cc (test): Likewise.
183 * unittests/optional/assignment/4.cc (test): Likewise.
184 * unittests/optional/assignment/5.cc (test): Likewise.
185 * unittests/optional/assignment/6.cc (test): Likewise.
186 * unittests/optional/assignment/7.cc (test): Likewise.
187 * unittests/optional/cons/copy.cc (test): Likewise.
188 * unittests/optional/cons/default.cc (test): Likewise.
189 * unittests/optional/cons/move.cc (test): Likewise.
190 * unittests/optional/cons/value.cc (test): Likewise.
191 * unittests/optional/in_place.cc (test): Likewise.
192 * unittests/optional/observers/1.cc (test): Likewise.
193 * unittests/optional/observers/2.cc (test): Likewise.
194
195 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
196
197 * tui-win.h (tui_set_var_cmd): Remove.
198 * tui-win.c (tui_set_var_cmd): Make static.
199
200 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
201
202 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
203 rbreak_command_wrapper): Remove.
204 * symtab.c (rbreak_command_wrapper): Remove.
205
206 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
207
208 * inferior.h (info_terminal_command): Remove declaration.
209 * inflow.c (info_terminal_command): Make static.
210
211 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
212
213 * inferior.c (exit_inferior_silent): Remove.
214
215 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
216
217 * dictionary.c (dict_empty, mdict_empty): Remove.
218 * dictionary.c (mdict_empty): Remove.
219
220 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
221
222 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
223 (arc_insn_get_memory_offset): Likewise.
224 (arc_insn_dump): Likewise.
225 * cp-support.c (test_cp_symbol_name_matches): Likewise.
226 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
227 * dictionary.c (dict_iterator_next): Likewise.
228 (dict_iter_match_first): Likewise.
229 (dict_iter_match_next): Likewise.
230 * f-lang.c (evaluate_subexp_f): Likewise.
231 * hppa-tdep.c (hppa_read_pc): Likewise.
232 * i386-tdep.c (i386_floatformat_for_type): Likewise.
233 * parse.c (write_exp_elt_msym): Likewise.
234 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
235 * remote.c (remote_packet_size): Likewise.
236 (remote_notif_stop_parse): Likewise.
237 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
238 * s12z-tdep.c (s12z_disassemble_info): Likewise.
239 * source.c (prepare_path_for_appending): Likewise.
240 * sparc64-linux-tdep.c
241 (sparc64_linux_handle_segmentation_fault); Likewise.
242 * stack.c (frame_selection_by_function_completer): Likewise.
243
244 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
245
246 * completer.c (set_gdb_completion_word_break_characters):
247 Remove.
248
249 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
250
251 * dwarf-index-write.c: Include dwarf-index-write.h.
252 * mi/mi-interp.c: Include mi/mi-interp.h.
253
254 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
255
256 * aarch32-tdep.c: Include aarch32-tdep.h.
257 * aarch32-tdep.h: Forward-declare struct target_desc.
258
259 2019-11-26 Christian Biesinger <cbiesinger@google.com>
260
261 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
262 strerror.
263 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
264 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
265
266 2019-11-25 Tom de Vries <tdevries@suse.de>
267
268 * contrib/words.sh: Add -c option.
269
270 2019-11-25 Christian Biesinger <cbiesinger@google.com>
271
272 * solib.c (solib_find_1): Change int to bool.
273 (exec_file_find): Change int to bool.
274 (solib_find): Change int to bool.
275 (solib_read_symbols): Change int to bool.
276 (solib_used): Change int to bool.
277 (solib_add): Change int to bool.
278 (info_sharedlibrary_command): Change int to bool.
279 (solib_contains_address_p): Change int to bool.
280 (solib_keep_data_in_core): Change int to bool.
281 (in_solib_dynsym_resolve_code): Change int to bool.
282 (reload_shared_libraries_1): Change int to bool.
283 (gdb_sysroot_changed): Change int to bool.
284 * solib.h (solib_read_symbols): Change int to bool.
285 (solib_contains_address_p): Change int to bool.
286 (solib_keep_data_in_core): Change int to bool.
287 (in_solib_dynsym_resolve_code): Change int to bool.
288 (libpthread_name_p): Change int to bool.
289
290 2019-11-25 Luis Machado <luis.machado@linaro.org>
291
292 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
293 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
294 (remote_packet_max_chars): New static global.
295 (show_remote_packet_max_chars): New function.
296 (remote_target::putpkt_binary): Adjust to use new
297 remote_packet_max_chars option.
298 (remote_target::getpkt_or_notif_sane_1): Likewise.
299 (_initialize_remote): Register new remote-packet-max-chars option.
300
301 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
302
303 * m68k-linux-nat.c: Include gdbarch.h.
304
305 2019-11-24 Tom Tromey <tom@tromey.com>
306
307 * symfile.c (read_symbols): Update.
308 * psymtab.c (require_partial_symbols): Change type of "verbose" to
309 bool.
310 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
311 (psym_lookup_symbol, psym_find_last_source_symtab)
312 (psym_forget_cached_source_info, psym_print_stats)
313 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
314 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
315 (psym_map_matching_symbols, psym_expand_symtabs_matching)
316 (psym_find_compunit_symtab_by_address)
317 (maintenance_print_psymbols, maintenance_info_psymtabs)
318 (maintenance_check_psymtabs): Update.
319 * psymtab.h (require_partial_symbols): Change type of "verbose" to
320 bool.
321
322 2019-11-22 Tom Tromey <tom@tromey.com>
323
324 * observable.h: Update comments.
325
326 2019-11-22 Tom Tromey <tromey@adacore.com>
327
328 * ada-tasks.c (ada_task_is_alive): Make parameter const.
329 (print_ada_task_info): Don't try to fetch thread id if task is not
330 alive.
331
332 2019-11-22 Christian Biesinger <cbiesinger@google.com>
333
334 * ada-exp.y: Update.
335 * ada-lang.c (sort_choices): Update.
336 (ada_print_symbol_signature): Update.
337 (resolve_subexp): Update.
338 (ada_parse_renaming): Update.
339 (ada_read_renaming_var_value): Update.
340 (lesseq_defined_than): Update.
341 (remove_extra_symbols): Update.
342 (remove_irrelevant_renamings): Update.
343 (ada_add_block_symbols): Update.
344 (ada_collect_symbol_completion_matches): Update.
345 (ada_is_renaming_symbol): Update.
346 (aggregate_assign_from_choices): Update.
347 (ada_evaluate_subexp): Update.
348 (ada_has_this_exception_support): Update.
349 (ada_is_non_standard_exception_sym): Update.
350 (ada_add_exceptions_from_frame): Update.
351 (ada_add_global_exceptions): Update.
352 (ada_print_subexp): Update.
353 * ax-gdb.c (gen_var_ref): Update.
354 (gen_maybe_namespace_elt): Update.
355 (gen_expr_for_cast): Update.
356 (gen_expr): Update.
357 * block.h: Update.
358 * blockframe.c (find_pc_partial_function): Update.
359 * breakpoint.c (print_breakpoint_location): Update.
360 (update_static_tracepoint): Update.
361 * btrace.c (ftrace_print_function_name): Update.
362 (ftrace_function_switched): Update.
363 * buildsym.c (find_symbol_in_list): Update.
364 * c-exp.y: Update.
365 * c-typeprint.c (c_print_typedef): Update.
366 (c_type_print_template_args): Update.
367 * cli/cli-cmds.c (edit_command): Update.
368 (list_command): Update.
369 (print_sal_location): Update.
370 * coffread.c (patch_opaque_types): Update.
371 (process_coff_symbol): Update.
372 (coff_read_enum_type): Update.
373 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
374 (convert_one_symbol): Update.
375 (hash_symname): Update.
376 (eq_symname): Update.
377 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
378 * compile/compile-cplus-types.c (debug_print_scope): Update.
379 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
380 * compile/compile-object-load.c (get_out_value_type): Update.
381 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
382 (search_symbol_list): Update.
383 (cp_lookup_symbol_imports_or_template): Update.
384 * cp-support.c (overload_list_add_symbol): Update.
385 * ctfread.c (psymtab_to_symtab): Update.
386 * dbxread.c (cp_set_block_scope): Update.
387 * dictionary.c (iter_match_first_hashed): Update.
388 (iter_match_next_hashed): Update.
389 (insert_symbol_hashed): Update.
390 (iter_match_next_linear): Update.
391 * dictionary.h: Update.
392 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
393 (locexpr_describe_location_piece): Update.
394 (locexpr_describe_location_1): Update.
395 (locexpr_generate_c_location): Update.
396 (loclist_describe_location): Update.
397 (loclist_generate_c_location): Update.
398 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
399 (read_func_scope): Update.
400 (process_enumeration_scope): Update.
401 (new_symbol): Update.
402 (dwarf2_const_value): Update.
403 (dwarf2_symbol_mark_computed): Update.
404 * eval.c (evaluate_funcall): Update.
405 (evaluate_subexp_standard): Update.
406 * expprint.c (print_subexp_standard): Update.
407 (dump_subexp_body_standard): Update.
408 * f-valprint.c (info_common_command_for_block): Update.
409 * findvar.c (get_hosting_frame): Update.
410 (default_read_var_value): Update.
411 * go-lang.c (go_symbol_package_name): Update.
412 * guile/scm-block.c (bkscm_print_block_smob): Update.
413 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
414 (gdbscm_symbol_name): Update.
415 (gdbscm_symbol_linkage_name): Update.
416 (gdbscm_symbol_print_name): Update.
417 * infcall.c (get_function_name): Update.
418 * infcmd.c (jump_command): Update.
419 (finish_command): Update.
420 * infrun.c (insert_exception_resume_breakpoint): Update.
421 * linespec.c (canonicalize_linespec): Update.
422 (create_sals_line_offset): Update.
423 (convert_linespec_to_sals): Update.
424 (complete_label): Update.
425 (find_label_symbols_in_block): Update.
426 * m2-typeprint.c (m2_print_typedef): Update.
427 * mdebugread.c (mdebug_reg_to_regnum): Update.
428 (parse_symbol): Update.
429 (mylookup_symbol): Update.
430 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
431 (list_args_or_locals): Update.
432 * objc-lang.c (compare_selectors): Update.
433 (info_selectors_command): Update.
434 (compare_classes): Update.
435 (info_classes_command): Update.
436 (find_imps): Update.
437 * p-typeprint.c (pascal_print_typedef): Update.
438 * printcmd.c (build_address_symbolic): Update.
439 (info_address_command): Update.
440 (print_variable_and_value): Update.
441 * python/py-framefilter.c (extract_sym): Update.
442 (py_print_single_arg): Update.
443 * python/py-symbol.c (sympy_str): Update.
444 (sympy_get_name): Update.
445 (sympy_get_linkage_name): Update.
446 * python/python.c (gdbpy_rbreak): Update.
447 * record-btrace.c (btrace_get_bfun_name): Update.
448 (btrace_call_history): Update.
449 * rust-lang.c (rust_print_typedef): Update.
450 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
451 * stabsread.c (stab_reg_to_regnum): Update.
452 (define_symbol): Update.
453 (read_enum_type): Update.
454 (common_block_end): Update.
455 (cleanup_undefined_types_1): Update.
456 (scan_file_globals): Update.
457 * stack.c (print_frame_arg): Update.
458 (print_frame_args): Update.
459 (find_frame_funname): Update.
460 (info_frame_command_core): Update.
461 (iterate_over_block_locals): Update.
462 (print_block_frame_labels): Update.
463 (do_print_variable_and_value): Update.
464 (iterate_over_block_arg_vars): Update.
465 (return_command): Update.
466 * symmisc.c (dump_symtab_1): Update.
467 (print_symbol): Update.
468 * symtab.c (eq_symbol_entry): Update.
469 (symbol_cache_dump): Update.
470 (lookup_language_this): Update.
471 (find_pc_sect_line): Update.
472 (skip_prologue_sal): Update.
473 (symbol_search::compare_search_syms): Update.
474 (treg_matches_sym_type_name): Update.
475 (search_symbols): Update.
476 (print_symbol_info): Update.
477 (rbreak_command): Update.
478 (completion_list_add_symbol): Update.
479 (find_gnu_ifunc): Update.
480 (get_symbol_address): Update.
481 (search_module_symbols): Update.
482 (info_module_subcommand): Update.
483 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
484 (SYMBOL_LINKAGE_NAME): Remove.
485 (SYMBOL_DEMANGLED_NAME): Remove.
486 (SYMBOL_PRINT_NAME): Remove.
487 (SYMBOL_SEARCH_NAME): Remove.
488 * tracepoint.c (set_traceframe_context): Update.
489 (validate_actionline): Update.
490 (collection_list::collect_symbol): Update.
491 (encode_actions_1): Update.
492 (info_scope_command): Update.
493 (print_one_static_tracepoint_marker): Update.
494 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
495 * valops.c (address_of_variable): Update.
496 (find_overload_match): Update.
497 (find_oload_champ): Update.
498
499 2019-11-22 Christian Biesinger <cbiesinger@google.com>
500
501 * ada-lang.c (ada_lookup_simple_minsym): Update.
502 (ada_collect_symbol_completion_matches): Update.
503 * ada-tasks.c (read_atcb): Update.
504 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
505 (amd64_windows_skip_trampoline_code): Update.
506 * arm-tdep.c (skip_prologue_function): Update.
507 (arm_skip_stack_protector): Update.
508 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
509 (arm_wince_skip_main_prologue): Update.
510 * ax-gdb.c (gen_expr): Update.
511 * block.c (call_site_for_pc): Update.
512 * blockframe.c (find_pc_partial_function): Update.
513 * breakpoint.c (set_breakpoint_location_function): Update.
514 * btrace.c (ftrace_print_function_name): Update.
515 (ftrace_function_switched): Update.
516 * c-valprint.c (print_unpacked_pointer): Update.
517 * coffread.c (coff_symfile_read): Update.
518 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
519 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
520 * dwarf-index-write.c (write_psymbols): Update.
521 * dwarf2loc.c (call_site_to_target_addr): Update.
522 (func_verify_no_selftailcall): Update.
523 (tailcall_dump): Update.
524 (call_site_find_chain_1): Update.
525 (dwarf_expr_reg_to_entry_parameter): Update.
526 * elfread.c (elf_gnu_ifunc_record_cache): Update.
527 * eval.c (evaluate_funcall): Update.
528 (evaluate_subexp_standard): Update.
529 (evaluate_subexp_for_sizeof): Update.
530 * expprint.c (print_subexp_standard): Update.
531 (dump_subexp_body_standard): Update.
532 * frame.c (get_prev_frame_always_1): Update.
533 * frv-tdep.c (frv_skip_main_prologue): Update.
534 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
535 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
536 (gnuv3_get_typename_from_type_info): Update.
537 (gnuv3_skip_trampoline): Update.
538 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
539 * i386-tdep.c (i386_skip_main_prologue): Update.
540 (i386_pe_skip_trampoline_code): Update.
541 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
542 * infcall.c (get_function_name): Update.
543 * linespec.c (minsym_found): Update.
544 * linux-fork.c (info_checkpoints_command): Update.
545 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
546 (m32c_m16c_pointer_to_address): Update.
547 * maint.c (maintenance_translate_address): Update.
548 * minsyms.c (add_minsym_to_hash_table): Update.
549 (add_minsym_to_demangled_hash_table): Update.
550 (lookup_minimal_symbol_mangled): Update.
551 (lookup_minimal_symbol_demangled): Update.
552 (lookup_minimal_symbol_linkage): Update.
553 (lookup_minimal_symbol_text): Update.
554 (lookup_minimal_symbol_by_pc_name): Update.
555 (minimal_symbol_is_less_than): Update.
556 (compact_minimal_symbols): Update.
557 (build_minimal_symbol_hash_tables): Update.
558 (find_solib_trampoline_target): Update.
559 * mips-tdep.c (mips_stub_frame_sniffer): Update.
560 (mips_skip_pic_trampoline_code): Update.
561 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
562 * objc-lang.c (info_selectors_command): Update.
563 (info_classes_command): Update.
564 (find_methods): Update.
565 (find_imps): Update.
566 * p-valprint.c (pascal_val_print): Update.
567 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
568 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
569 * printcmd.c (build_address_symbolic): Update.
570 (info_symbol_command): Update.
571 * psymtab.c (psymbol_name_matches): Update.
572 (match_partial_symbol): Update.
573 (lookup_partial_symbol): Update.
574 (print_partial_symbols): Update.
575 (sort_pst_symbols): Update.
576 (maintenance_check_psymtabs): Update.
577 * python/py-framefilter.c (py_print_frame): Update.
578 * python/python.c (gdbpy_rbreak): Update.
579 * record-btrace.c (btrace_get_bfun_name): Update.
580 (btrace_call_history): Update.
581 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
582 (rs6000_skip_trampoline_code): Update.
583 * sol-thread.c (info_cb): Update.
584 * stabsread.c (scan_file_globals): Update.
585 * stack.c (find_frame_funname): Update.
586 (info_frame_command_core): Update.
587 * symmisc.c (dump_msymbols): Update.
588 * symtab.c (symbol_natural_name): Rename to..,
589 (general_symbol_info::natural_name): ...this.
590 (symbol_demangled_name): Rename to...
591 (general_symbol_info::demangled_name): ...this.
592 (symbol_search_name): Rename to...
593 (general_symbol_info::search_name): ...this.
594 (symbol_matches_search_name): Update.
595 (find_pc_sect_line): Update.
596 (skip_prologue_sal): Update.
597 (search_symbols): Update.
598 (print_msymbol_info): Update.
599 (rbreak_command): Update.
600 (completion_list_add_msymbol): Update.
601 (completion_list_objc_symbol): Update.
602 (get_msymbol_address): Update.
603 * symtab.h (struct general_symbol_info): Add member functions
604 natural_name (), linkage_name (), print_name (), demangled_name (),
605 and search_name ().
606 (SYMBOL_NATURAL_NAME): Update.
607 (symbol_natural_name): Move to a member function on general_symbol_info.
608 (SYMBOL_DEMANGLED_NAME): Update.
609 (symbol_demangled_name): Move to a member function on
610 general_symbol_info.
611 (SYMBOL_SEARCH_NAME): Update.
612 (symbol_search_name): Move to a member function on general_symbol_info.
613 (MSYMBOL_NATURAL_NAME): Remove.
614 (MSYMBOL_LINKAGE_NAME): Remove.
615 (MSYMBOL_PRINT_NAME): Remove.
616 (MSYMBOL_DEMANGLED_NAME): Remove.
617 (MSYMBOL_SEARCH_NAME): Remove.
618 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
619
620 2019-11-22 Christian Biesinger <cbiesinger@google.com>
621
622 * symtab.c (create_demangled_names_hash): Use per_bfd->
623 minimal_symbol_count for computing the initial size, if greater
624 than our default size.
625
626 2019-11-22 Tom de Vries <tdevries@suse.de>
627
628 * contrib/words.sh: Improve words extraction.
629
630 2019-11-22 Tom de Vries <tdevries@suse.de>
631
632 * contrib/words.sh: Combine sed invocations.
633
634 2019-11-21 Christian Biesinger <cbiesinger@google.com>
635
636 * Makefile.in: Update.
637 * demangle.c: Rename to...
638 * gdb-demangle.c: ..this.
639 (is_cplus_marker): Change return type to bool.
640 (_initialize_demangler): Rename to...
641 (_initialize_gdb_demangle): ...this.
642 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
643 * symtab.h (demangle): Remove declaration; instead include
644 gdb-demangle.h.
645
646 2019-11-21 Tom Tromey <tromey@adacore.com>
647
648 * gdbsupport/format.c (format_pieces): Parse %I64d.
649 * unittests/format_pieces-selftests.c (test_windows_formats): New
650 function.
651 (run_tests): Call it.
652
653 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
654
655 Byte reverse display of variables with DW_END_big, DW_END_little
656 (DW_AT_endianity) dwarf attributes if different than the native
657 byte order.
658 * ada-lang.c (ada_value_binop):
659 Use type_byte_order instead of gdbarch_byte_order.
660 * ada-valprint.c (printstr):
661 (ada_val_print_string):
662 * ada-lang.c (value_pointer):
663 (ada_value_binop):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * c-lang.c (c_get_string):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * c-valprint.c (c_val_print_array):
668 Use type_byte_order instead of gdbarch_byte_order.
669 * cp-valprint.c (cp_print_class_member):
670 Use type_byte_order instead of gdbarch_byte_order.
671 * dwarf2loc.c (rw_pieced_value):
672 Use type_byte_order instead of gdbarch_byte_order.
673 * dwarf2read.c (read_base_type): Handle DW_END_big,
674 DW_END_little
675 * f-lang.c (f_get_encoding):
676 Use type_byte_order instead of gdbarch_byte_order.
677 * findvar.c (default_read_var_value):
678 Use type_byte_order instead of gdbarch_byte_order.
679 * gdbtypes.c (check_types_equal):
680 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
681 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
682 and TYPE_ENDIANITY_LITTLE if set.
683 (type_byte_order): new function.
684 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
685 (struct main_type) <flag_endianity_not_default>:
686 New field.
687 (type_byte_order): New function.
688 * infcmd.c (default_print_one_register_info):
689 Use type_byte_order instead of gdbarch_byte_order.
690 * p-lang.c (pascal_printstr):
691 Use type_byte_order instead of gdbarch_byte_order.
692 * p-valprint.c (pascal_val_print):
693 Use type_byte_order instead of gdbarch_byte_order.
694 * printcmd.c (print_scalar_formatted):
695 Use type_byte_order instead of gdbarch_byte_order.
696 * solib-darwin.c (darwin_current_sos):
697 Use type_byte_order instead of gdbarch_byte_order.
698 * solib-svr4.c (solib_svr4_r_ldsomap):
699 Use type_byte_order instead of gdbarch_byte_order.
700 * stap-probe.c (stap_modify_semaphore):
701 Use type_byte_order instead of gdbarch_byte_order.
702 * target-float.c (target_float_same_format_p):
703 Use type_byte_order instead of gdbarch_byte_order.
704 * valarith.c (scalar_binop):
705 (value_bit_index):
706 Use type_byte_order instead of gdbarch_byte_order.
707 * valops.c (value_cast):
708 Use type_byte_order instead of gdbarch_byte_order.
709 * valprint.c (generic_emit_char):
710 (generic_printstr):
711 (val_print_string):
712 Use type_byte_order instead of gdbarch_byte_order.
713 * value.c (unpack_long):
714 (unpack_bits_as_long):
715 (unpack_value_bitfield):
716 (modify_field):
717 (pack_long):
718 (pack_unsigned_long):
719 Use type_byte_order instead of gdbarch_byte_order.
720 * findvar.c (unsigned_pointer_to_address):
721 (signed_pointer_to_address):
722 (unsigned_address_to_pointer):
723 (address_to_signed_pointer):
724 (default_read_var_value):
725 (default_value_from_register):
726 Use type_byte_order instead of gdbarch_byte_order.
727 * gnu-v3-abi.c (gnuv3_make_method_ptr):
728 Use type_byte_order instead of gdbarch_byte_order.
729 * riscv-tdep.c (riscv_print_one_register_info):
730 Use type_byte_order instead of gdbarch_byte_order.
731
732 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
735 (current_ui_gdb_stdin_ptr): Likewise.
736 (current_ui_gdb_stderr_ptr): Likewise.
737 (current_ui_gdb_stdlog_ptr): Likewise.
738 (current_ui_current_uiout_ptr): Likewise.
739 (gen_ret_current_ui_field_ptr): Remove.
740
741 2019-11-21 Tom de Vries <tdevries@suse.de>
742
743 PR gdb/24956
744 * cli/cli-script.c (execute_control_command): Only switch to
745 INTERP_CONSOLE's ui_out when INTERP_MI is active.
746
747 2019-11-19 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
750 Now static. Change type of "name".
751 (tui_set_win_height_command): Don't copy "arg".
752 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
753 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
754
755 2019-11-19 Ali Tamur <tamur@google.com>
756
757 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
758 "if (attr != nullptr)".
759 (dwarf2_find_base_address): Likewise.
760 (dwarf2_build_include_psymtabs): Likewise.
761 (read_cutu_die_from_dwo): Likewise.
762 (read_func_scope): Likewise.
763 (read_call_site_scope): Likewise.
764 (dwarf2_get_pc_bounds): Likewise.
765 (dwarf2_record_block_ranges): Likewise.
766 (dwarf2_add_field): Likewise.
767 (dwarf2_add_member_fn): Likewise.
768 (read_structure_type): Likewise.
769 (read_enumeration_type): Likewise.
770 (read_array_type): Likewise.
771 (read_array_order): Likewise.
772 (read_set_type): Likewise.
773 (read_common_block): Likewise.
774 (read_tag_reference_type): Likewise.
775 (read_tag_string_type): Likewise.
776 (read_subroutine_type): Likewise.
777 (read_base_type): Likewise.
778 (read_subrange_type): Likewise.
779 (new_symbol): Likewise.
780 (prepare_one_comp_unit): Likewise.
781
782 2019-11-19 Tom Tromey <tromey@adacore.com>
783
784 * windows-nat.c (windows_nat_target::attach): Include GetLastError
785 result in error when DebugActiveProcess fails.
786
787 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
788 Pedro Alves <palves@redhat.com>
789
790 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
791 * target.c (target_stack::push): Call 'unpush' if there's a
792 target on top of the stack.
793
794 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
795
796 * python/py-block.c (blpy_dealloc): Call tp_free.
797 (blpy_block_syms_dealloc): Likewise.
798 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
799 * python/py-inferior.c (infpy_dealloc): Likewise.
800 * python/py-lazy-string.c (stpy_dealloc): Likewise.
801 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
802 * python/py-symbol.c (sympy_dealloc): Likewise.
803 * python/py-symtab.c (stpy_dealloc): Likewise.
804 * python/py-type.c (typy_iterator_dealloc): Likewise.
805
806 2019-11-18 Christian Biesinger <cbiesinger@google.com>
807
808 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
809 constructor instead of using a class initializer.
810
811 2019-11-15 Christian Biesinger <cbiesinger@google.com>
812
813 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
814 * configure: Regenerate.
815 * configure.ac: Don't source common.host.
816 * gdbsupport/common.host: Remove.
817 * gdbsupport/mingw-strerror.c: Remove.
818 * gdbsupport/posix-strerror.c: Rename to...
819 * gdbsupport/safe-strerror.c: ...this.
820
821 2019-11-15 Christian Biesinger <cbiesinger@google.com>
822
823 * maint.c (scoped_command_stats::print_time): Use localtime_r
824 instead of localtime (provided through gnulib if necessary).
825 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
826 of ctime.
827
828 2019-11-15 Christian Biesinger <cbiesinger@google.com>
829
830 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
831 avoid compile errors.
832
833 2019-11-15 Christian Biesinger <cbiesinger@google.com>
834
835 * config.in: Regenerate.
836 * configure: Regenerate.
837 * gdbsupport/common.m4: No longer check for strerror_r.
838 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
839 POSIX version of strerror_r, now that gnulib provides it if
840 necessary.
841
842 2019-11-14 Christian Biesinger <cbiesinger@google.com>
843
844 * README (`configure' options): Update.
845
846 2019-11-14 Tom Tromey <tromey@adacore.com>
847
848 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
849 expected type for the RHS if the LHS is a convenience variable.
850
851 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
854 Provide explicit default and copy constructor.
855
856 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
857
858 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
859 only call Py_INCREF (newbp) in the bppy_pending_object case.
860
861 2019-11-13 Tom Tromey <tromey@adacore.com>
862
863 PR build/25182:
864 * psympriv.h (partial_symbol): Remove static assert.
865 * symtab.h (general_symbol_info, symbol): Remove static assert.
866
867 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * gdbsupport/format.c (format_pieces::format_pieces): Support
870 printf 'z' size modifier.
871 * gdbsupport/format.h (enum argclass): Add size_t_arg.
872 * printcmd.c (ui_printf): Handle size_t_arg.
873 * ui-out.c (ui_out::vmessage): Likewise.
874 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
875 function.
876 (run_tests): Call test_format_int_sizes.
877
878 2019-11-12 Christian Biesinger <cbiesinger@google.com>
879
880 * ada-exp.y (write_ambiguous_var): Update.
881 * buildsym.c (add_symbol_to_list): Update.
882 * dwarf2read.c (read_variable): Update.
883 (new_symbol): Update.
884 * jit.c (finalize_symtab): Update.
885 * language.c (language_alloc_type_symbol): Update.
886 * symtab.c (fixup_symbol_section): Update.
887 (initialize_objfile_symbol_1): Move code to...
888 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
889 (allocate_symbol): Update.
890 (allocate_template_symbol): Update.
891 (get_symbol_address): Update.
892 * symtab.h (struct symbol): Inherit from general_symbol_info instead
893 of having as a field, and add a constructor.
894 (SYMBOL_VALUE): Update.
895 (SYMBOL_VALUE_ADDRESS): Update.
896 (SET_SYMBOL_VALUE_ADDRESS): Update.
897 (SYMBOL_VALUE_BYTES): Update.
898 (SYMBOL_VALUE_COMMON_BLOCK): Update.
899 (SYMBOL_BLOCK_VALUE): Update.
900 (SYMBOL_VALUE_CHAIN): Update.
901 (SYMBOL_LANGUAGE): Update.
902 (SYMBOL_SECTION): Update.
903 (SYMBOL_OBJ_SECTION): Update.
904 (SYMBOL_SET_LANGUAGE): Update.
905 (SYMBOL_SET_LINKAGE_NAME): Update.
906 (SYMBOL_SET_NAMES): Update.
907 (SYMBOL_NATURAL_NAME): Update.
908 (SYMBOL_LINKAGE_NAME): Update.
909 (SYMBOL_DEMANGLED_NAME): Update.
910 (SYMBOL_SEARCH_NAME): Update.
911 (SYMBOL_MATCHES_SEARCH_NAME): Update.
912 (struct symbol): Update.
913 (struct template_symbol): Update.
914 (struct rust_vtable_symbol): Update.
915 * xcoffread.c (SYMBOL_DUP): Update.
916
917 2019-11-12 Tom Tromey <tom@tromey.com>
918
919 * tui/tui-layout.c (show_layout): Set current_layout.
920 (show_source_disasm_command, show_data)
921 (show_source_or_disasm_and_command): Don't set current_layout.
922
923 2019-11-12 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
926
927 2019-11-12 Tom Tromey <tom@tromey.com>
928
929 * tui/tui-win.c (resize_message): New global.
930 (show_tui_resize_message): New function.
931 (tui_async_resize_screen): Print message if requested.
932 (_initialize_tui_win): Add tui-resize-message setting.
933 * NEWS: Add entry for new commands.
934
935 2019-11-11 Tom Tromey <tom@tromey.com>
936
937 * tui/tui.c (tui_initialize_readline): Add new bindable readline
938 functions.
939
940 2019-11-11 Christian Biesinger <cbiesinger@google.com>
941
942 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
943
944 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
947 function.
948 * python/python-internal.h (gdbpy_lookup_static_symbols):
949 Declare new function.
950 * python/python.c (python_GdbMethods): Add
951 gdb.lookup_static_symbols method.
952 * NEWS: Mention gdb.lookup_static_symbols.
953
954 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
955
956 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
957 static block of current object file first. Also fix typo in
958 header comment.
959
960 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * stack.c (set_last_displayed_sal): Delete.
963 (last_displayed_sal_valid): Delete.
964 (last_displayed_pspace): Delete.
965 (last_displayed_addr): Delete.
966 (last_displayed_symtab): Delete.
967 (last_displayed_line): Delete.
968 (class last_displayed_symtab_info_type): New.
969 (last_displayed_symtab_info): New static global variable.
970 (print_frame_info): Call methods on last_displayed_symtab_info.
971 (clear_last_displayed_sal): Update header comment, and make use of
972 last_displayed_symtab_info.
973 (last_displayed_sal_is_valid): Likewise.
974 (get_last_displayed_pspace): Likewise.
975 (get_last_displayed_addr): Likewise.
976 (get_last_displayed_symtab): Likewise.
977 (get_last_displayed_line): Likewise.
978 (get_last_displayed_sal): Likewise.
979 * stack.h (clear_last_displayed_sal): Update header comment.
980 (last_displayed_sal_is_valid): Likewise.
981 (get_last_displayed_pspace): Likewise.
982 (get_last_displayed_addr): Likewise.
983 (get_last_displayed_symtab): Likewise.
984 (get_last_displayed_line): Likewise.
985 (get_last_displayed_sal): Likewise.
986
987 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * stack.c (frame_show_address): Convert return type to bool.
990 * stack.h (frame_show_address): Likewise, and update header
991 comment.
992
993 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
994
995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
996 * unittests/vec-utils-selftests.c: New file.
997 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
998
999 2019-11-10 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1002 (tui_highlight_win): Likewise.
1003 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1004 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1005 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1006 Don't set can_highlight.
1007
1008 2019-11-10 Tom Tromey <tom@tromey.com>
1009
1010 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1011 Remove unused declaration.
1012
1013 2019-11-08 Tom Tromey <tromey@adacore.com>
1014
1015 * top.c (read_command_file): Update.
1016 (command_line_input): Make return type const.
1017 * python/py-gdb-readline.c: Update.
1018 * linespec.c (decode_line_2): Update.
1019 * defs.h (command_line_input): Make return type const.
1020 * cli/cli-script.c (read_next_line): Make return type const.
1021 * ada-lang.c (get_selections): Update.
1022
1023 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1024
1025 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1026 * mi/mi-main.c (output_cores): Likewise.
1027 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1028 (linux_xfer_osdata_modules): Likewise.
1029 * remote.c (register_remote_support_xml): Likewise.
1030 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1031 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1032
1033 2019-11-06 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-interp.c: Don't include readline.h.
1036 * tui/tui-hooks.c: Don't include readline.h.
1037 * symmisc.c: Include tilde.h, not readline.h.
1038 * symfile.c: Include tilde.h, not readline.h.
1039 * source.c: Include tilde.h, not readline.h.
1040 * solib.c: Include tilde.h, not readline.h.
1041 * psymtab.c: Include tilde.h, not readline.h.
1042 * exec.c: Include tilde.h, not readline.h.
1043 * corelow.c: Include tilde.h, not readline.h.
1044 * cli/cli-dump.c: Include tilde.h, not readline.h.
1045 * cli/cli-cmds.c: Don't include readline.h.
1046
1047 2019-11-05 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1050 (tui_disassemble): Set addr_size.
1051 (tui_disasm_window::set_contents): Use addr_size.
1052
1053 2019-11-05 Tom Tromey <tom@tromey.com>
1054
1055 * rust-lang.c (rust_language_defn): Update.
1056 * python/py-value.c (valpy_string): Call c_get_string.
1057 * p-lang.c (pascal_language_defn): Update.
1058 * opencl-lang.c (opencl_language_defn): Update.
1059 * objc-lang.c (objc_language_defn): Update.
1060 * m2-lang.c (m2_language_defn): Update.
1061 * language.c (unknown_language_defn, auto_language_defn): Update.
1062 (default_get_string): Remove.
1063 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1064 * go-lang.c (go_language_defn): Update.
1065 * f-lang.c (f_language_defn): Update.
1066 * d-lang.c (d_language_defn): Update.
1067 * c-lang.c (c_language_defn, cplus_language_defn)
1068 (asm_language_defn, minimal_language_defn): Update.
1069 * ada-lang.c (ada_language_defn): Update.
1070 * language.h (struct language_defn) <la_get_string>: Remove.
1071 (LA_GET_STRING): Remove.
1072 (default_get_string): Don't declare.
1073
1074 2019-11-05 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-source.h (struct tui_source_window): Inline
1077 constructor. Remove destructor.
1078 <style_changed, m_observable>: Move to superclass.
1079 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1080 (struct tui_source_window_base): Move private members to end.
1081 <style_changed, m_observable>: Move from tui_source_window.
1082 * tui/tui-winsource.c (tui_copy_source_line): Move from
1083 tui-source.c. Rename from copy_source_line. Add special handling
1084 for negative line number.
1085 (tui_source_window_base::style_changed): Move from
1086 tui_source_window.
1087 (tui_source_window_base): Register observer.
1088 (~tui_source_window_base): New.
1089 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1090 rename.
1091 (tui_source_window::set_contents): Use tui_copy_source_line.
1092 (tui_source_window::tui_source_window): Move to tui-source.h.
1093 (tui_source_window::~tui_source_window): Remove.
1094 (tui_source_window::style_changed): Move to superclass.
1095 * tui/tui-disasm.c (tui_disassemble): Create string file with
1096 styling, when possible. Add "addr_size" parameter.
1097 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1098 Don't compute maximum size.
1099 (len_without_escapes): New function
1100
1101 2019-11-05 Tom Tromey <tom@tromey.com>
1102
1103 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1104 std::string.
1105 * tui/tui-winsource.c (tui_show_source_line): Update.
1106 * tui/tui-source.c (tui_source_window::set_contents): Update.
1107 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1108
1109 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1110
1111 * symtab.h (gdb_static_assert): Put && operator at the beginning
1112 of the line instead of the end.
1113
1114 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1115
1116 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1117 and sizeof (symbol).
1118 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1119
1120 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1123 * configure.host: Mark *-*-solaris2.10* obsolete.
1124 * configure.tgt: Mark Solaris < 11 obsolete.
1125 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1126 Update target triplet.
1127
1128 2019-11-01 Tom Tromey <tromey@adacore.com>
1129
1130 * utils.c (print_sys_errmsg): Simplify.
1131
1132 2019-11-01 Tom Tromey <tromey@adacore.com>
1133
1134 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1135
1136 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1137
1138 * configure: Regenerate.
1139 * configure.ac: Remove check for strerror_r.
1140 * gdbsupport/common.m4: Check for strerror_r.
1141
1142 2019-11-01 Luis Machado <luis.machado@linaro.org>
1143
1144 PR gdb/25124
1145
1146 * arm-tdep.c (arm_per_objfile): Rename to ...
1147 (arm_per_bfd): ... this.
1148 (arm_objfile_data_key): Rename to ...
1149 (arm_bfd_data_key): ... this.
1150 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1151 data.
1152 (arm_record_special_symbol): Likewise.
1153
1154 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1157 end.
1158 * c-typeprint.c (c_print_typedef): Likewise.
1159 * f-typeprint.c (f_print_typedef): Likewise.
1160 * m2-typeprint.c (m2_print_typedef): Likewise.
1161 * p-typeprint.c (pascal_print_typedef): Likewise.
1162 * rust-lang.c (rust_print_typedef): Likewise.
1163 * symtab.c (print_symbol_info): Print a newline after calling
1164 typedef_print.
1165
1166 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * symtab.c (info_module_cmdlist): New variable.
1169 (info_module_command): New function.
1170 (search_module_symbols): New function.
1171 (info_module_subcommand): New function.
1172 (struct info_modules_var_func_options): New struct.
1173 (info_modules_var_func_options_defs): New variable.
1174 (make_info_modules_var_func_options_def_group): New function.
1175 (info_module_functions_command): New function.
1176 (info_module_variables_command): New function.
1177 (info_module_var_func_command_completer): New function.
1178 (_initialize_symtab): Register new 'info module functions' and
1179 'info module variables' commands.
1180 * symtab.h (typedef symbol_search_in_module): New typedef.
1181 (search_module_symbols): Declare new function.
1182 * NEWS: Mention new commands.
1183
1184 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1187 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1188 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1189 MODULES_DOMAIN.
1190 (scan_partial_symbols): Only create partial module symbols for non
1191 declarations.
1192 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1193 and MODULES_DOMAIN.
1194 * symtab.c (search_domain_name): Likewise.
1195 (search_symbols): Likewise.
1196 (print_symbol_info): Likewise.
1197 (symtab_symbol_info): Likewise.
1198 (info_modules_command): New function.
1199 (_initialize_symtab): Register 'info modules' command.
1200 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1201 * NEWS: Mention new 'info modules' command.
1202
1203 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1204
1205 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1206 and $_gdb_maint_setting_str.
1207
1208 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1209
1210 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1211 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1212 (str_value_from_setting, gdb_setting_str_internal_fn)
1213 (gdb_maint_setting_str_internal_fn): New functions.
1214 (_initialize_cli_cmds): Define the new convenience functions.
1215 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1216 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1217
1218 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1219
1220 * agent.c (set_can_use_agent): When the setting is turned on,
1221 look up agent symbols if we don't have them yet.
1222 (agent_new_objfile): Don't look up agent symbols when the agent
1223 setting is off.
1224
1225 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1226
1227 * config.in: Regenerate.
1228
1229 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1230
1231 * configure: Regenerate.
1232 * configure.ac: Check for strerror_r.
1233 * gdbsupport/common-utils.h (safe_strerror): Change return value
1234 to const char * and document that this function is now threadsafe.
1235 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1236 thread_local and call strerror_r, if available.
1237 * utils.c (perror_string): Update.
1238 (print_sys_errmsg): Update.
1239
1240 2019-10-31 Luis Machado <luis.machado@linaro.org>
1241
1242 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1243 objfile_key.
1244 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1245 objfile to fetch per-bfd data.
1246 (arm_find_exidx_entry): Likewise.
1247
1248 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1249
1250 * gdbsupport/agent.c (debug_agent): Change type to bool.
1251 (use_agent): Likewise.
1252 (all_agent_symbols_look_up): Likewise.
1253 (agent_loaded_p): Change return value to bool.
1254 (agent_look_up_symbols): Update.
1255 (agent_capability_check): Change return value to bool.
1256 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1257 (debug_agent): Change type to bool.
1258 (use_agent): Likewise.
1259 (agent_capability_check): Change return value to bool.
1260
1261 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1262
1263 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1264 (build_minimal_symbol_hash_tables): Code to clear the table moved
1265 to clear_minimal_symbol_hash_tables.
1266 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1267 when needed.
1268
1269 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * infcmd.c: Remove includes.
1272 * infrun.c: Remove includes.
1273
1274 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1277 (grow_vect): Remove declaration.
1278 (ada_type_of_array): Remove declaration.
1279 (ada_update_initial_language): Remove declaration.
1280 (ada_fold_name): Remove declaration.
1281 (ada_fill_in_ada_prototype): Remove declaration.
1282 (user_select_syms): Remove declaration.
1283 (get_selections): Remove declaration.
1284 (ada_tag_type): Remove declaration.
1285 (ada_value_tag): Remove declaration.
1286 (ada_is_others_clause): Remove declaration.
1287 (ada_in_variant): Remove declaration.
1288 (ada_value_struct_elt): Remove declaration.
1289 (ada_attribute_name): Remove declaration.
1290 (ada_system_address_type): Remove declaration.
1291 * ada-lang.c (ada_watch_location_expression): Make static.
1292 (GROW_VECT): Move here from ada-lang.h.
1293 (grow_vect): Make static.
1294 (ada_update_initial_language): Make static.
1295 (ada_fold_name): Make static.
1296 (ada_type_of_array): Make static.
1297 (encoded_ordered_before): Move up.
1298 (sort_choices): Move up.
1299 (print_signatures): Move up.
1300 (ada_print_symbol_signature): Move up.
1301 (get_selections): Move up and make static.
1302 (user_select_syms): Move up and make static.
1303 (ada_value_struct_elt): Move up and make static.
1304 (ada_tag_type): Make static.
1305 (ada_value_tag): Make static.
1306 (ada_is_others_clause): Make static.
1307 (ada_in_variant): Make static.
1308 (ada_attribute_name): Make static.
1309
1310 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * ada-lang.c: Remove includes.
1313 * ada-typeprint.c: Remove includes.
1314 * ada-valprint.c: Remove includes.
1315
1316 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * addrmap.c: Add static assertions of type size, moved from
1319 _initialize_addrmap.
1320 (_initialize_addrmap): Remove.
1321
1322 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1323
1324 * coffread.c (record_minimal_symbol): Update.
1325 (process_coff_symbol): Update.
1326 * dbxread.c (read_dbx_symtab): Update.
1327 * dwarf2read.c (add_partial_symbol): Update.
1328 (fixup_go_packaging): Update.
1329 (load_partial_dies): Update.
1330 (new_symbol): Update.
1331 * elfread.c (record_minimal_symbol): Change signature to use
1332 gdb::string_view instead of name+len.
1333 (elf_symtab_read): Update.
1334 (elf_rel_plt_read): Update.
1335 * mdebugread.c (parse_partial_symbols): Update.
1336 (handle_psymbol_enumerators): Update.
1337 (new_symbol): Update.
1338 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1339 to use gdb::string_view instead of name+len.
1340 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1341 * psympriv.h (add_psymbol_to_list): Likewise.
1342 * psymtab.c (add_psymbol_to_bcache): Likewise.
1343 (add_psymbol_to_list): Likewise.
1344 * stabsread.c (define_symbol): Update.
1345 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1346 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1347 (symbol_set_names): Likewise.
1348 * xcoffread.c (scan_xcoff_symtab): Update.
1349
1350 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1351
1352 * symtab.h (symbol_set_names): Document that copy_name must be
1353 set to true for non-nullterminated strings.
1354 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1355 linkage_name if the entry was not found and we need to demangle.
1356
1357 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1358
1359 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1360 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1361 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1362 * gdbsupport/gdb_binary_search.h: New file.
1363
1364 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1365
1366 * NEWS: Mention new --with-system-gdbinit-dir option.
1367 * config.in: Regenerate.
1368 * configure: Regenerate.
1369 * configure.ac: Add new option --with-system-gdbinit-dir.
1370 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1371 for a ".gdb" suffix.
1372 * main.c (get_init_files): Change system_gdbinit argument to
1373 a vector and return the files in SYSTEM_GDBINIT_DIR in
1374 addition to SYSTEM_GDBINIT.
1375 (captured_main_1): Update.
1376 (print_gdb_help): Update.
1377 * top.c (print_gdb_configuration): Also print the value of
1378 SYSTEM_GDBINIT_DIR.
1379
1380 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1381
1382 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1383 that takes gdb::string_view arguments.
1384
1385 2019-10-26 Tom de Vries <tdevries@suse.de>
1386
1387 * aarch64-linux-tdep.c: Fix typos in comments.
1388 * aarch64-tdep.c: Same.
1389 * ada-lang.c: Same.
1390 * amd64-nat.c: Same.
1391 * arc-tdep.c: Same.
1392 * arch/aarch64-insn.c: Same.
1393 * block.c: Same.
1394 * breakpoint.h: Same.
1395 * btrace.h: Same.
1396 * c-varobj.c: Same.
1397 * cli/cli-decode.c: Same.
1398 * cli/cli-script.c: Same.
1399 * cli/cli-utils.h: Same.
1400 * coff-pe-read.c: Same.
1401 * coffread.c: Same.
1402 * compile/compile-cplus-symbols.c: Same.
1403 * compile/compile-object-run.c: Same.
1404 * completer.c: Same.
1405 * corelow.c: Same.
1406 * cp-support.c: Same.
1407 * demangle.c: Same.
1408 * dwarf-index-write.c: Same.
1409 * dwarf2-frame.c: Same.
1410 * dwarf2-frame.h: Same.
1411 * eval.c: Same.
1412 * frame-base.h: Same.
1413 * frame.h: Same.
1414 * gdbcmd.h: Same.
1415 * gdbtypes.h: Same.
1416 * gnu-nat.c: Same.
1417 * guile/scm-objfile.c: Same.
1418 * i386-tdep.c: Same.
1419 * i386-tdep.h: Same.
1420 * infcall.c: Same.
1421 * infcall.h: Same.
1422 * linux-nat.c: Same.
1423 * m68k-tdep.c: Same.
1424 * macroexp.c: Same.
1425 * memattr.c: Same.
1426 * mi/mi-cmd-disas.c: Same.
1427 * mi/mi-getopt.h: Same.
1428 * mi/mi-main.c: Same.
1429 * minsyms.c: Same.
1430 * nat/aarch64-sve-linux-sigcontext.h: Same.
1431 * objfiles.h: Same.
1432 * ppc-linux-nat.c: Same.
1433 * ppc-linux-tdep.c: Same.
1434 * ppc-tdep.h: Same.
1435 * progspace.h: Same.
1436 * prologue-value.h: Same.
1437 * python/py-evtregistry.c: Same.
1438 * python/py-instruction.h: Same.
1439 * record-btrace.c: Same.
1440 * record-full.c: Same.
1441 * remote.c: Same.
1442 * rs6000-tdep.c: Same.
1443 * ser-tcp.c: Same.
1444 * sol-thread.c: Same.
1445 * sparc-sol2-tdep.c: Same.
1446 * sparc64-tdep.c: Same.
1447 * stabsread.c: Same.
1448 * symfile.c: Same.
1449 * symtab.h: Same.
1450 * target.c: Same.
1451 * tracepoint.c: Same.
1452 * tui/tui-data.h: Same.
1453 * tui/tui-io.c: Same.
1454 * tui/tui-win.c: Same.
1455 * tui/tui.c: Same.
1456 * unittests/rsp-low-selftests.c: Same.
1457 * user-regs.h: Same.
1458 * utils.c: Same.
1459 * utils.h: Same.
1460 * valarith.c: Same.
1461 * valops.c: Same.
1462 * valprint.c: Same.
1463 * valprint.h: Same.
1464 * value.c: Same.
1465 * value.h: Same.
1466 * varobj.c: Same.
1467 * x86-nat.h: Same.
1468 * xtensa-tdep.c: Same.
1469
1470 2019-10-25 Ali Tamur <tamur@google.com>
1471
1472 * charset.c (find_charset_names): Reflect API change.
1473
1474 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1475
1476 * symtab.c (struct demangled_name_entry): Change demangled name
1477 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1478 part of the struct anymore.
1479 (symbol_set_names): No longer obstack allocate + copy the demangled
1480 name, just store the allocated name from bfd.
1481
1482 2019-10-25 Tom Tromey <tromey@adacore.com>
1483
1484 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1485 (bsearch_cie_cmp, add_cie): Remove.
1486 (find_cie): Reimplement.
1487 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1488 (dwarf2_build_frame_info): Update.
1489
1490 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1491
1492 PR gdb/25126
1493 * symfile.c (reread_symbols): Call forget_cached_source_info to
1494 clear the stale source cache.
1495
1496 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1497
1498 * configure: Regenerate.
1499 * configure.ac: Remove code that sets python_has_threads.
1500
1501 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1502
1503 * config.in: Regenerate.
1504 * configure: Regenerate.
1505 * configure.ac: Remove the code that uses sed to get the python
1506 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1507
1508 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1511 error paths.
1512
1513 2019-10-23 Tom Tromey <tom@tromey.com>
1514
1515 * arc-tdep.c: Remove ".." from include.
1516 * frv-tdep.c: Remove ".." from include.
1517 * lm32-tdep.c: Remove ".." from include.
1518 * microblaze-tdep.c: Remove ".." from include.
1519 * or1k-tdep.h: Remove ".." from include.
1520 * s12z-tdep.c: Remove ".." from include.
1521 * Makefile.in (OPCODES_CFLAGS): Add comment.
1522 (TOP_CFLAGS): New variable.
1523 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1524
1525 2019-10-23 Tom Tromey <tom@tromey.com>
1526
1527 * Makefile.in (READLINE_DIR): Update.
1528
1529 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530
1531 * infcall.c (call_function_by_hand_dummy): Fix the function
1532 comment. And extract out a code section into...
1533 (reserve_stack_space): ...this new function.
1534
1535 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1536
1537 * infcall.c (value_arg_coerce): Remove an unused parameter.
1538 (call_function_by_hand_dummy): Update the call to
1539 'value_arg_coerce'.
1540
1541 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1542
1543 * infcall.c (call_function_by_hand_dummy): Refactor.
1544
1545 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1546
1547 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1548
1549 2019-10-23 Tom Tromey <tom@tromey.com>
1550
1551 * configure: Rebuild.
1552 * configure.ac: Don't check for sigprocmask.
1553 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1554
1555 2019-10-23 Tom Tromey <tom@tromey.com>
1556
1557 * configure: Rebuild.
1558 * acinclude.m4: Use m4_include, not sinclude.
1559
1560 2019-10-23 Tom de Vries <tdevries@suse.de>
1561
1562 PR breakpoints/24687
1563 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1564
1565 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1566
1567 * symtab.c (struct demangled_name_entry) <language>: Change from
1568 bitfield to regular variable.
1569
1570 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1571
1572 * symtab.c (struct demangled_name_entry): Add a constructor.
1573 (free_demangled_name_entry): New function to call the destructor
1574 for demangled_name_entry.
1575 (create_demangled_names_hash): Pass free_demangled_name_entry to
1576 htab_create_alloc.
1577 (symbol_set_names): Call placement new for demangled_name_entry.
1578 * utils.c: No longer include xxhash.h here, now that fast_hash
1579 is inlined in the header.
1580 * utils.h: Instead, include it here.
1581
1582 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1583
1584 * Makefile.in: Link with libxxhash.
1585 * config.in: Regenerate.
1586 * configure: Regenerate.
1587 * configure.ac: Search for libxxhash.
1588 * utils.c (fast_hash): Use xxhash if present.
1589
1590 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1591
1592 * utils.h (fast_hash): New function.
1593 * symtab.c (hash_demangled_name_entry): Call new function
1594 fast_hash.
1595
1596 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1597
1598 * symtab.c (struct demangled_name_entry): Change type of mangled
1599 to gdb::string_view. Also adds a constructor that takes the
1600 mangled name.
1601 (hash_demangled_name_entry): Update.
1602 (eq_demangled_name_entry): Update.
1603 (free_demangled_name_entry): New function to call the destructor
1604 now that this is not a POD anymore.
1605 (create_demangled_names_hash): Pass free_demangled_name_entry to
1606 htab_create_alloc.
1607 (symbol_set_names): Update.
1608
1609 2019-10-21 Ali Tamur <tamu@google.com>
1610
1611 * dwarf2read.c (dir_index): Change type.
1612 (file_name_index): Likewise.
1613 (line_header::include_dir_at): Change comment and implementation on
1614 whether it is DWARF 5.
1615 (line_header::is_valid_file_index): New function.
1616 (line_header::file_name_at): Change comment and implementation on
1617 whether it is DWARF 5.
1618 (line_header::file_names): Change to private field renamed as
1619 m_file_names and introduce a new accessor method.
1620 (line_header::file_names_size): New method.
1621 (line_header::include_dirs): Change to private field and rename as
1622 m_include_dirs.
1623 (dw2_get_file_names_reader): Define local var at a smaller scope and
1624 reflect API change.
1625 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1626 (process_structure_scope): Likewise.
1627 (line_header::add_include_dir): Change message and reflect renaming.
1628 (line_header::add_file_name): Likewise.
1629 (read_formatted_entries): Handle DW_FORM_data16.
1630 (dwarf_decode_line_header): Fix line header length calculation.
1631 (psymtab_include_file_name): Change comment and API.
1632 (lnp_state_machine::m_file): Update comment and reflect type change.
1633 (lnp_state_machine::record_line): Reflect type change.
1634 (dwarf_decode_lines): Reflect API change.
1635 (file_file_name): Likewise.
1636 (file_full_name): Likewise.
1637
1638 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1641
1642 2019-10-21 Tom Tromey <tom@tromey.com>
1643
1644 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1645
1646 2019-10-21 Tom Tromey <tom@tromey.com>
1647
1648 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1649 NM_H. Use AC_CONFIG_LINKS.
1650 * configure: Rebuild.
1651 * Makefile.in (NM_H): New variable.
1652 (generated_files): Add NM_H. Remove gcore.
1653 (nm.h, stamp-nmh): New targets.
1654
1655 2019-10-20 Tom Tromey <tom@tromey.com>
1656
1657 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1658 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1659 obsolete comment.
1660 (put_objfile_before): Now static.
1661
1662 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * gdbsupport/common-utils.h (startswith): Change return type to
1665 bool.
1666
1667 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1668
1669 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1670 * breakpoint.c (bp_locations_compare): Rename to...
1671 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1672 (update_global_location_list): Use std::sort instead of qsort.
1673 * buildsym.c (compare_line_numbers): Rename to...
1674 (lte_is_less_than): ...this, and change to std::sort semantics.
1675 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1676 instead of qsort.
1677 * disasm.c (compare_lines): Rename to...
1678 (line_is_less_than): ...this, and change to std::sort semantics.
1679 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1680 of qsort.
1681 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1682 (fde_is_less_than): ...this, and change to std::sort semantics.
1683 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1684 * mdebugread.c (compare_blocks):
1685 (block_is_less_than): ...this, and change to std::sort semantics.
1686 (sort_blocks): Call std::sort instead of qsort.
1687 * objfiles.c (qsort_cmp): Rename to...
1688 (sort_cmp): ...this, and change to std::sort semantics.
1689 (update_section_map): Call std::sort instead of qsort.
1690 * remote.c (compare_pnums): Remove.
1691 (map_regcache_remote_table): Call std::sort instead of qsort.
1692 * utils.c (compare_positive_ints): Remove.
1693 * utils.h (compare_positive_ints): Remove.
1694 * xcoffread.c (compare_lte): Remove.
1695 (arrange_linetable): Call std::sort instead of qsort.
1696
1697 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1698
1699 * symfile.c (init_entry_point_info): Fix typo.
1700 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1701
1702 2019-10-18 Tom de Vries <tdevries@suse.de>
1703
1704 * aarch64-tdep.c: Fix typos in comments.
1705 * ada-lang.c: Same.
1706 * ada-tasks.c: Same.
1707 * alpha-tdep.c: Same.
1708 * alpha-tdep.h: Same.
1709 * amd64-nat.c: Same.
1710 * amd64-windows-tdep.c: Same.
1711 * arc-tdep.c: Same.
1712 * arc-tdep.h: Same.
1713 * arch-utils.c: Same.
1714 * arm-nbsd-tdep.c: Same.
1715 * arm-tdep.c: Same.
1716 * ax-gdb.c: Same.
1717 * blockframe.c: Same.
1718 * btrace.c: Same.
1719 * c-varobj.c: Same.
1720 * coff-pe-read.c: Same.
1721 * coffread.c: Same.
1722 * cris-tdep.c: Same.
1723 * darwin-nat.c: Same.
1724 * dbxread.c: Same.
1725 * dcache.c: Same.
1726 * disasm.c: Same.
1727 * dtrace-probe.c: Same.
1728 * dwarf-index-write.c: Same.
1729 * dwarf2-frame-tailcall.c: Same.
1730 * dwarf2-frame.c: Same.
1731 * dwarf2read.c: Same.
1732 * eval.c: Same.
1733 * exceptions.c: Same.
1734 * fbsd-tdep.c: Same.
1735 * findvar.c: Same.
1736 * frame.c: Same.
1737 * frv-tdep.c: Same.
1738 * gnu-v3-abi.c: Same.
1739 * go32-nat.c: Same.
1740 * h8300-tdep.c: Same.
1741 * hppa-tdep.c: Same.
1742 * i386-linux-tdep.c: Same.
1743 * i386-tdep.c: Same.
1744 * ia64-libunwind-tdep.c: Same.
1745 * ia64-tdep.c: Same.
1746 * infcmd.c: Same.
1747 * infrun.c: Same.
1748 * linespec.c: Same.
1749 * linux-nat.c: Same.
1750 * linux-thread-db.c: Same.
1751 * machoread.c: Same.
1752 * mdebugread.c: Same.
1753 * mep-tdep.c: Same.
1754 * mn10300-tdep.c: Same.
1755 * namespace.c: Same.
1756 * objfiles.c: Same.
1757 * opencl-lang.c: Same.
1758 * or1k-tdep.c: Same.
1759 * osabi.c: Same.
1760 * ppc-linux-nat.c: Same.
1761 * ppc-linux-tdep.c: Same.
1762 * ppc-sysv-tdep.c: Same.
1763 * printcmd.c: Same.
1764 * procfs.c: Same.
1765 * record-btrace.c: Same.
1766 * record-full.c: Same.
1767 * remote-fileio.c: Same.
1768 * remote.c: Same.
1769 * rs6000-tdep.c: Same.
1770 * s12z-tdep.c: Same.
1771 * score-tdep.c: Same.
1772 * ser-base.c: Same.
1773 * ser-go32.c: Same.
1774 * skip.c: Same.
1775 * sol-thread.c: Same.
1776 * solib-svr4.c: Same.
1777 * solib.c: Same.
1778 * source.c: Same.
1779 * sparc-nat.c: Same.
1780 * sparc-sol2-tdep.c: Same.
1781 * sparc-tdep.c: Same.
1782 * sparc64-tdep.c: Same.
1783 * stabsread.c: Same.
1784 * stack.c: Same.
1785 * symfile.c: Same.
1786 * symtab.c: Same.
1787 * target-descriptions.c: Same.
1788 * target-float.c: Same.
1789 * thread.c: Same.
1790 * utils.c: Same.
1791 * valops.c: Same.
1792 * valprint.c: Same.
1793 * value.c: Same.
1794 * varobj.c: Same.
1795 * windows-nat.c: Same.
1796 * xcoffread.c: Same.
1797 * xstormy16-tdep.c: Same.
1798 * xtensa-tdep.c: Same.
1799
1800 2019-10-17 Tom Tromey <tromey@adacore.com>
1801
1802 * configure: Rebuild.
1803 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1804 in AC_CONFIG_FILES invocation.
1805 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1806 new-style config.status invocation.
1807
1808 2019-10-17 Tom de Vries <tdevries@suse.de>
1809
1810 * arm-nbsd-nat.c: Fix typos in comments.
1811 * arm-tdep.c: Same.
1812 * darwin-nat-info.c: Same.
1813 * dwarf2read.c: Same.
1814 * elfread.c: Same.
1815 * event-top.c: Same.
1816 * findvar.c: Same.
1817 * gdbtypes.c: Same.
1818 * hppa-tdep.c: Same.
1819 * i386-tdep.c: Same.
1820 * jit.c: Same.
1821 * main.c: Same.
1822 * mdebugread.c: Same.
1823 * moxie-tdep.c: Same.
1824 * nto-procfs.c: Same.
1825 * osabi.c: Same.
1826 * ppc-linux-tdep.c: Same.
1827 * remote.c: Same.
1828 * riscv-tdep.c: Same.
1829 * s390-tdep.c: Same.
1830 * sh-tdep.c: Same.
1831 * sparc-linux-tdep.c: Same.
1832 * sparc-nat.c: Same.
1833 * stack.c: Same.
1834 * target-descriptions.c: Same.
1835 * top.c: Same.
1836 * varobj.c: Same.
1837
1838 2019-10-16 Tom Tromey <tom@tromey.com>
1839
1840 * objfiles.h (struct objfile) <original_name>: Now const.
1841
1842 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1843
1844 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1845 pass on to sigsetjmp's second argument.
1846 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1847
1848 2019-10-16 Keith Seitz <keiths@redhat.com>
1849
1850 PR gdb/23567
1851 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1852 sections whose size is greater than the file size.
1853
1854 2019-10-16 Jim Wilson <jimw@sifive.com>
1855
1856 * riscv-tdep.c (riscv_gcc_target_options): New.
1857 (riscv_gnu_triplet_regexp): New.
1858 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1859 set_gdbarch_gnu_triplet_regexp.
1860
1861 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1862
1863 * Makefile.in: Add xml-builtin.h.
1864 * features/feature_to_c.sh: Add an include for xml-builtin.h
1865 to ensure that the compiler checks that the types match.
1866 * xml-builtin.h: New file.
1867 * xml-support.c (fetch_xml_builtin): Add missing const.
1868 * xml-support.h: Remove declaration of xml_builtins.
1869
1870 2019-10-16 Tom de Vries <tdevries@suse.de>
1871
1872 PR tdep/25096
1873 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1874 (amd64_classify_aggregate): ... here.
1875 (amd64_classify_aggregate_field): Handled fiels of nested structs
1876 recursively.
1877
1878 2019-10-16 Tom de Vries <tdevries@suse.de>
1879
1880 PR tdep/24104
1881 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1882 that handles 'theclass'.
1883
1884 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * linespec.c (decode_digits_ordinary): Update comment.
1887 * make-target-delegates: No longer need to handle VEC case.
1888 * memrange.c (normalize_mem_ranges): Update comment.
1889 * namespace.c (add_using_directive): Update comment.
1890 * objc-lang.c (uniquify_strings): Update comment.
1891 * ppc-linux-nat.c (struct thread_points): Update comment.
1892 * probe.h (find_probes_in_objfile): Update comment.
1893 * target.h (enum flash_preserve_mode): Update comment.
1894 * varobj.c (varobj_restrict_range): Update comment.
1895 * varobj.h (varobj_list_children): Update comment.
1896
1897 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * Makefile.in: Remove references to vec.h and vec.c.
1900 * aarch64-tdep.c: No longer include vec.h.
1901 * ada-lang.c: Likewise.
1902 * ada-lang.h: Likewise.
1903 * arm-tdep.c: Likewise.
1904 * ax.h: Likewise.
1905 * breakpoint.h: Likewise.
1906 * charset.c: Likewise.
1907 * cp-support.h: Likewise.
1908 * dtrace-probe.c: Likewise.
1909 * dwarf2read.c: Likewise.
1910 * extension.h: Likewise.
1911 * gdb_bfd.c: Likewise.
1912 * gdbsupport/gdb_vecs.h: Likewise.
1913 * gdbsupport/vec.c: Remove.
1914 * gdbsupport/vec.h: Remove.
1915 * gdbthread.h: Likewise.
1916 * guile/scm-type.c: Likewise.
1917 * inline-frame.c: Likewise.
1918 * machoread.c: Likewise.
1919 * memattr.c: Likewise.
1920 * memrange.h: Likewise.
1921 * namespace.h: Likewise.
1922 * nat/linux-btrace.h: Likewise.
1923 * osdata.c: Likewise.
1924 * parser-defs.h: Likewise.
1925 * progspace.h: Likewise.
1926 * python/py-type.c: Likewise.
1927 * record-btrace.c: Likewise.
1928 * rust-exp.y: Likewise.
1929 * solib-target.c: Likewise.
1930 * stap-probe.c: Likewise.
1931 * target-descriptions.c: Likewise.
1932 * target-memory.c: Likewise.
1933 * target.h: Likewise.
1934 * varobj.c: Likewise.
1935 * varobj.h: Likewise.
1936 * xml-support.h: Likewise.
1937
1938 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1941 Update for new std::vector based implementation.
1942 (process_psymtab_comp_unit_reader): Likewise.
1943 (scan_partial_symbols): Likewise.
1944 (recursively_compute_inclusions): Likewise.
1945 (compute_compunit_symtab_includes): Likewise.
1946 (process_imported_unit_die): Likewise.
1947 (queue_and_load_dwo_tu): Likewise.
1948 (follow_die_sig_1): Likewise.
1949 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1950 (typedef dwarf2_per_cu_ptr): Remove.
1951 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1952 function.
1953 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1954 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1955 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1956 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1957 std::vector.
1958
1959 2019-10-15 Tom Tromey <tromey@adacore.com>
1960
1961 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1962 TID.
1963
1964 2019-10-15 Tom Tromey <tromey@adacore.com>
1965
1966 * windows-nat.c (windows_nat_target::fetch_registers)
1967 (windows_nat_target::store_registers): Rename "pid" to "tid".
1968
1969 2019-10-15 Tom Tromey <tromey@adacore.com>
1970
1971 * gdbarch.h, gdbarch.c: Rebuild.
1972 * gdbarch.sh (gcc_target_options): Change return type to
1973 std::string.
1974 * compile/compile.c (get_args): Update.
1975 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1976 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1977 std::string.
1978 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1979 std::string.
1980 * arch-utils.c (default_gcc_target_options): Return std::string.
1981 * arch-utils.h (default_gcc_target_options): Return std::string.
1982 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1983
1984 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1985
1986 * breakpoint.c (breakpoint_chain): Make static.
1987 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1988 of accessing breakpoint_chain.
1989
1990 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1991
1992 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1993 to a gdb::function_view and return value to bool.
1994 * breakpoint.h (iterate_over_breakpoints): Likewise.
1995 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1996 (pop_dummy_frame): Update.
1997 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1998 (gdbscm_breakpoints): Update.
1999 * python/py-breakpoint.c (build_bp_list): Update.
2000 (gdbpy_breakpoints): Update.
2001 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2002 Update.
2003 (bpfinishpy_handle_stop): Update.
2004 (bpfinishpy_handle_exit): Update.
2005 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2006 (svr4_update_solib_event_breakpoints): Update.
2007
2008 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2009
2010 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2011 when unwrapping single-field structs.
2012
2013 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * dwarf2read.c: Remove includes.
2016
2017 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * ui-out.c (ui_out::call_do_message): Silence
2020 -Wformat-nonliteral warning.
2021
2022 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2025 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2026 include: readline/tilde.h.
2027
2028 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2029
2030 * remote.c (remote_target::get_trace_status): Remove declaration of
2031 trace_regblock_size.
2032
2033 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2034
2035 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2036 (show_user): Remove declaration of cmdlist.
2037 * cli/cli-cmds.h (max_user_call_depth): Declare.
2038 * cli/cli-script.c (execute_user_command): Remove declaration
2039 of max_user_call_depth.
2040
2041 2019-10-11 Jim Wilson <jimw@sifive.com>
2042
2043 * gdbsupport/print-utils.h (pulongest): Fix comment.
2044 (plongest): Likewise.
2045 (phex): Add missing comment, mention leading zeros.
2046 (phex_nz): Add mention of no leading zeros to comment.
2047
2048 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2049 plongest instead of unsigned long long cast.
2050
2051 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2052
2053 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2054 for external_editor_command and gdbtk_test.
2055
2056 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2057
2058 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2059 * varobj.c (varobjdebug): Move comment to...
2060 * varobj.h (varobjdebug): ...here, and declare.
2061
2062 2019-10-09 Tom Tromey <tom@tromey.com>
2063
2064 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2065 erase_data_content.
2066
2067 2019-10-09 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2070 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2071 * tui/tui-command.c (tui_cmd_window::resize)
2072 (tui_refresh_cmd_win): Update.
2073 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2074 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2075 * tui/tui-data.c (~tui_gen_win_info): Remove.
2076 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2077 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2078 (tui_redisplay_readline, tui_mld_flush)
2079 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2080 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2081 (tui_data_window::erase_data_content)
2082 (tui_data_item_window::rerender)
2083 (tui_data_item_window::refresh_window): Update.
2084 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2085 (box_win, tui_gen_win_info::make_window)
2086 (tui_gen_win_info::make_visible): Update.
2087 (tui_delete_win): Remove.
2088 * tui/tui-winsource.c
2089 (tui_source_window_base::do_erase_source_content): Update.
2090 (tui_show_source_line, tui_source_window_base::update_tab_width)
2091 (tui_source_window_base::update_exec_info): Update.
2092 * tui/tui-data.h (struct curses_deleter): New.
2093 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2094 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2095
2096 2019-10-09 Tom Tromey <tom@tromey.com>
2097
2098 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2099
2100 2019-10-09 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2103 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2104
2105 2019-10-09 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2108 window height directly.
2109 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2110 declare.
2111 * tui/tui-layout.c (tui_default_win_height): Remove.
2112 (tui_default_win_viewport_height): Remove.
2113
2114 2019-10-09 Tom Tromey <tom@tromey.com>
2115
2116 * tui/tui.h: Remove comments.
2117
2118 2019-10-09 Tom de Vries <tdevries@suse.de>
2119
2120 * python/lib/gdb/printer/bound_registers.py: Use
2121 '^builtin_type_bound128' as regexp argument for
2122 add_builtin_pretty_printer.
2123
2124 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2125
2126 * guile/guile.c (guile_extension_script_ops): Remove forward
2127 declaration and mark as static.
2128 (guile_script_ops): Likewise.
2129 (extension_language_guile): Move further down in the file so
2130 it can reference the definitions for guile_{extension_,}script_ops.
2131
2132 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2133
2134 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2135 except SORTL, DFLTCC, and KDSA.
2136
2137 2019-10-08 Tom Tromey <tromey@adacore.com>
2138
2139 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2140 (struct safe_symbol_file_add_args): Remove.
2141
2142 2019-10-08 Tom Tromey <tromey@adacore.com>
2143
2144 * windows-nat.c: Don't include buildsym-legacy.h.
2145
2146 2019-10-08 Tom Tromey <tromey@adacore.com>
2147
2148 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2149
2150 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2151
2152 * gdbtypes.c (overload_debug): Move comment to header.
2153 * gdbtypes.h (overload_debug): Declare.
2154 * valops.c: Remove declaration of overload_debug, instead
2155 include gdbtypes.h.
2156
2157 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2158
2159 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2160 through _().
2161 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2162 move comment...
2163 * language.h (lang_frame_mismatch_warn): ... here. Also add
2164 declaration.
2165 * top.c (lang_frame_mismatch_warn): Remove declaration.
2166 (check_frame_language_change): Pass lang_frame_mismatch_warn
2167 through _().
2168
2169 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2170
2171 * c-lang.h (vtbl_ptr_name): Declare.
2172 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2173 it from the header.
2174 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2175
2176 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2177
2178 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2179 gdb_static_assert.
2180
2181 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2182
2183 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2184 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2185 * ctfread.c: New file.
2186 * ctfread.h: New file.
2187 * elfread.c: Include ctfread.h.
2188 (struct elfinfo text_p): New member ctfsect.
2189 (elf_locate_sections): Mark CTF section.
2190 (elf_symfile_read): Call elfctf_build_psymtabs.
2191 * Makefile.in (LIBCTF): Add.
2192 (CLIBS): Use it.
2193 (CDEPS): Likewise.
2194 (DIST): Add ctfread.c.
2195
2196 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * ctfread.c (struct nextfield): Renamed to ...
2199 (struct ctf_nextfield): ... this.
2200 (struct field_info): Renamed to ...
2201 (strut ctf_field_info): ... this.
2202 (attach_fields_to_type): Update for renamed structures.
2203 (ctf_add_member_cb): Likewise.
2204 (ctf_add_enum_member_cb): Likewise.
2205 (process_struct_members): Likewise.
2206 (process_enum_type): Likewise.
2207
2208 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2209
2210 * tracectf.h: Rename, was ctf.h.
2211 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2212 * tracefile.c: Likewise.
2213 * tracepoint.c: Remove unused include ctf.h.
2214 * mi/mi-main.c: Likewise.
2215 * Makefile.in Replace ctf.c with tracectf.c.
2216
2217 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2218
2219 * version.in: Change version number to "9.0.50.DATE-git".
2220
2221 2019-10-03 Tom Tromey <tom@tromey.com>
2222
2223 PR rust/24976:
2224 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2225
2226 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2229 cp_search_name_hash.
2230 * NEWS: Add entry about nested function support.
2231
2232 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2233 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2236 for nested static variables when searchin VAR_DOMAIN.
2237 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2238 global scope, update comment.
2239 (add_partial_subprogram): Call add_partial_subprogram recursively
2240 for nested subroutines when processinng Fortran.
2241 (load_partial_dies): Process the child entities of a subprogram
2242 when processing Fortran.
2243 (partial_die_parent_scope): Handle building scope
2244 for Fortran nested functions.
2245 (process_die): Record that nested functions have a scope.
2246 (new_symbol): Always record Fortran subprograms on the global
2247 symbol list.
2248 (determine_prefix): How to build the prefix for Fortran
2249 subprograms.
2250
2251 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2254 have just sent the thread a SIGSTOP and are waiting for it to
2255 arrive.
2256
2257 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * btrace.c (btrace_add_pc): Remove whitespace before the template
2260 parameter in 'std::vector <...>'.
2261 (parse_xml_btrace_block): Likewise.
2262 (btrace_maint_decode_pt): Likewise.
2263 (btrace_maint_update_packets): Likewise.
2264 (btrace_maint_print_packets): Likewise.
2265 * btrace.h (struct btrace_maint_info): Likewise.
2266 * dwarf2read.c (struct type_unit_group): Likewise.
2267 (build_type_psymtabs_reader): Likewise.
2268 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2269 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2270 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2271
2272 2019-10-03 Tom de Vries <tdevries@suse.de>
2273
2274 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2275 the first line of the help text for set/show style metadata.
2276
2277 2019-10-02 Tom Tromey <tromey@adacore.com>
2278
2279 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2280 * gdbsupport/common-inferior.c: New file.
2281 * infcmd.c (startup_with_shell): Don't define.
2282 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2283 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2284 * inferior.h (startup_with_shell): Don't declare.
2285
2286 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2287
2288 * gdbsupport/gdb_assert.h: Include errors.h.
2289 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2290
2291 2019-10-02 Tom Tromey <tromey@adacore.com>
2292
2293 * NEWS: Add $_ada_exception entry.
2294 * ada-lang.c (struct ada_catchpoint): Add constructor.
2295 <m_kind>: New member.
2296 (allocate_location_exception, re_set_exception): Remove
2297 "ex" parameter.
2298 (should_stop_exception): Compute $_ada_exception.
2299 (check_status_exception, print_it_exception)
2300 (print_one_exception, print_mention_exception): Remove
2301 "ex" parameter.
2302 (allocate_location_catch_exception, re_set_catch_exception)
2303 (check_status_exception, print_it_catch_exception)
2304 (print_one_catch_exception, print_mention_catch_exception)
2305 (print_recreate_catch_exception)
2306 (allocate_location_catch_exception_unhandled)
2307 (re_set_catch_exception_unhandled)
2308 (check_status_exception, print_it_catch_exception_unhandled)
2309 (print_one_catch_exception_unhandled)
2310 (print_mention_catch_exception_unhandled)
2311 (print_recreate_catch_exception_unhandled)
2312 (allocate_location_catch_assert, re_set_catch_assert)
2313 (check_status_assert, print_it_catch_assert)
2314 (print_one_catch_assert, print_mention_catch_assert)
2315 (print_recreate_catch_assert)
2316 (allocate_location_catch_handlers, re_set_catch_handlers)
2317 (check_status_handlers, print_it_catch_handlers)
2318 (print_one_catch_handlers, print_mention_catch_handlers)
2319 (print_recreate_catch_handlers): Remove.
2320 (create_ada_exception_catchpoint): Update.
2321 (initialize_ada_catchpoint_ops): Update.
2322
2323 2019-10-02 Tom Tromey <tromey@adacore.com>
2324
2325 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2326 (create_excep_cond_exprs): Simplify exception string computation.
2327 (ada_exception_catchpoint_cond_string): Likewise.
2328
2329 2019-10-02 Tom Tromey <tromey@adacore.com>
2330
2331 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2332 * ada-lang.c (lesseq_defined_than): Handle
2333 LOC_STATIC.
2334 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2335 parameter.
2336 (dwarf2_has_info): Likewise.
2337 (new_symbol): Set maybe_copied on symbol when
2338 appropriate.
2339 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2340 parameter.
2341 <can_copy>: New member.
2342 * elfread.c (record_minimal_symbol): Set maybe_copied
2343 on symbol when appropriate.
2344 (elf_symfile_read): Update call to dwarf2_has_info.
2345 * minsyms.c (lookup_minimal_symbol_linkage): New
2346 function.
2347 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2348 * symtab.c (get_symbol_address, get_msymbol_address):
2349 New functions.
2350 * symtab.h (get_symbol_address, get_msymbol_address):
2351 Declare.
2352 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2353 maybe_copied.
2354 (struct symbol, struct minimal_symbol) <maybe_copied>:
2355 New member.
2356
2357 2019-10-02 Tom Tromey <tromey@adacore.com>
2358
2359 * source.c (struct current_source_location): New.
2360 (current_source_key): New global.
2361 (current_source_symtab, current_source_line)
2362 (current_source_pspace): Remove.
2363 (get_source_location): New function.
2364 (get_current_source_symtab_and_line)
2365 (set_default_source_symtab_and_line)
2366 (set_current_source_symtab_and_line)
2367 (clear_current_source_symtab_and_line, select_source_symtab)
2368 (info_source_command, print_source_lines_base)
2369 (info_line_command, search_command_helper, _initialize_source):
2370 Update.
2371
2372 2019-10-02 Tom Tromey <tromey@adacore.com>
2373
2374 * source.c (select_source_symtab): Don't call
2375 decode_line_with_current_source.
2376
2377 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * symtab.c (lookup_global_symbol): Search global block.
2380
2381 2019-10-02 Tom Tromey <tromey@adacore.com>
2382
2383 * coffread.c (process_coff_symbol): Update.
2384 * dwarf2read.c (var_decode_location, new_symbol): Update.
2385 * mdebugread.c (parse_symbol): Update.
2386 * objfiles.c (relocate_one_symbol): Update.
2387 * stabsread.c (define_symbol, fix_common_block)
2388 (scan_file_globals): Update.
2389 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2390 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2391 * xcoffread.c (process_xcoff_symbol): Update.
2392
2393 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2394
2395 * MAINTAINERS: Update my email address.
2396
2397 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2400 std::vector.
2401 (build_type_psymtabs_reader): Update for std::vector.
2402 (build_type_psymtab_dependencies): Likewise.
2403 * dwarf2read.h: Remove use of DEF_VEC_P.
2404 (typedef sig_type_ptr): Delete.
2405
2406 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2409 to std::vector.
2410 (btrace_maint_decode_pt): Likewise, and move allocation of the
2411 vector outside of the loop.
2412 (btrace_maint_update_packets): Update to handle change from VEC to
2413 std::vector.
2414 (btrace_maint_print_packets): Likewise.
2415 (maint_info_btrace_cmd): Likewise.
2416 * btrace.h: Remove use of DEF_VEC_O.
2417 (typedef btrace_pt_packet_s): Delete.
2418 (struct btrace_maint_info) <packets>: Change fromm VEC to
2419 std::vector.
2420 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2421
2422 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2425 make accesses into the vector constant references.
2426 (btrace_add_pc): Update for std::vector.
2427 (btrace_stitch_bts): Likewise.
2428 (parse_xml_btrace_block): Likewise.
2429 (btrace_maint_update_packets): Likewise.
2430 (btrace_maint_print_packets): Likewise.
2431 (maint_info_btrace_cmd): Likewise.
2432 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2433 std::vector.
2434 (btrace_data::empty): Likewise.
2435 (btrace_data_append): Likewise.
2436 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2437 (typedef btrace_block_s): Delete.
2438 (struct btrace_block): Add constructor.
2439 (struct btrace_data_bts) <blocks>: Change to std::vector.
2440 * nat/linux-btrace.c (perf_event_read_bts): Update for
2441 std::vector.
2442 (linux_read_bts): Likewise.
2443
2444 2019-10-01 Tom Tromey <tom@tromey.com>
2445
2446 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2447
2448 2019-10-01 Tom Tromey <tom@tromey.com>
2449
2450 * stack.c (print_frame, info_frame_command_core): Use
2451 styled_string.
2452 * linux-thread-db.c (try_thread_db_load_1)
2453 (try_thread_db_load_from_pdir_1): Use styled_string.
2454 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2455 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2456 (maybe_print_unsupported_script_warning)
2457 (maybe_print_script_not_found_warning): Use styled_string.
2458 * ada-lang.c (user_select_syms): Use styled_string.
2459
2460 2019-10-01 Tom Tromey <tom@tromey.com>
2461
2462 * p-lang.c (pascal_printstr): Use metadata style.
2463 * value.c (show_convenience): Use metadata style.
2464 * valprint.c (valprint_check_validity, val_print_optimized_out)
2465 (val_print_not_saved, val_print_unavailable)
2466 (val_print_invalid_address, generic_val_print, val_print)
2467 (value_check_printable, val_print_array_elements): Use metadata
2468 style.
2469 * ui-out.h (class ui_out) <field_fmt>: New overload.
2470 <do_field_fmt>: Add style parameter.
2471 * ui-out.c (ui_out::field_fmt): New overload.
2472 * typeprint.c (type_print_unknown_return_type)
2473 (val_print_not_allocated, val_print_not_associated): Use metadata
2474 style.
2475 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2476 parameter.
2477 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2478 * tracepoint.c (tvariables_info_1): Use metadata style.
2479 * stack.c (print_frame_arg, print_frame_info, print_frame)
2480 (info_frame_command_core): Use metadata style.
2481 * skip.c (info_skip_command): Use metadata style.
2482 * rust-lang.c (rust_print_enum): Use metadata style.
2483 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2484 metadata style.
2485 * python/py-framefilter.c (py_print_single_arg): Use metadata
2486 style.
2487 * printcmd.c (do_one_display, print_variable_and_value): Use
2488 metadata style.
2489 * p-valprint.c (pascal_val_print)
2490 (pascal_object_print_value_fields): Use metadata style.
2491 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2492 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2493 parameter.
2494 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2495 * m2-valprint.c (m2_print_long_set): Use metadata style.
2496 * m2-typeprint.c (m2_print_type): Use metadata style.
2497 * infcmd.c (print_return_value_1): Use metadata style.
2498 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2499 * f-valprint.c (info_common_command_for_block): Use metadata
2500 style.
2501 * f-typeprint.c (f_type_print_base): Use metadata style.
2502 * expprint.c (print_subexp_standard): Use metadata style.
2503 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2504 * cli/cli-style.h (class cli_style_option): Add constructor.
2505 (metadata_style): Declare.
2506 * cli/cli-style.c (metadata_style): New global.
2507 (_initialize_cli_style): Register metadata style.
2508 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2509 parameter.
2510 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2511 * c-typeprint.c (c_type_print_base_struct_union)
2512 (c_type_print_base_1): Use metadata style.
2513 * breakpoint.c (watchpoint_value_print)
2514 (print_one_breakpoint_location): Use metadata style.
2515 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2516 style.
2517 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2518 style.
2519 * ada-valprint.c (val_print_packed_array_elements, printstr)
2520 (print_field_values, ada_val_print_ref, ada_val_print): Use
2521 metadata style.
2522 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2523 style.
2524 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2525 style.
2526 * ada-lang.c (user_select_syms): Use metadata style.
2527
2528 2019-10-01 Tom Tromey <tom@tromey.com>
2529
2530 * cli/cli-cmds.c (pwd_command): Style output.
2531
2532 2019-10-01 Pedro Alves <palves@redhat.com>
2533 Tom Tromey <tom@tromey.com>
2534
2535 * symtab.c (print_symbol_info): Use %ps.
2536 (print_msymbol_info): Use %ps.
2537 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2538 * printcmd.c (print_variable_and_value): Use %ps.
2539 * macrocmd.c (show_pp_source_pos): Use %ps.
2540 * infrun.c (print_exited_reason): Use ui_out::message.
2541 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2542 (describe_other_breakpoints): Use ui_out::message and new
2543 formats.
2544 (say_where): Use new formats.
2545 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2546 and new formats.
2547
2548 2019-10-01 Pedro Alves <palves@redhat.com>
2549 Tom Tromey <tom@tromey.com>
2550
2551 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2552 (test_gdb_formats): New function.
2553 (run_tests): Call it.
2554 (test_format_specifier): Update.
2555 * utils.h (fputs_filtered): Update comment.
2556 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2557 (fputs_styled_unfiltered): Declare.
2558 * utils.c (fputs_styled_unfiltered): New function.
2559 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2560 (vfprintf_filtered): Update.
2561 (vfprintf_unfiltered, vprintf_filtered): Update.
2562 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2563 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2564 disallow_ui_out_field>: New constants.
2565 (enum class field_kind): New.
2566 (struct base_field_s, struct signed_field_s): New.
2567 (signed_field): New function.
2568 (struct string_field_s): New.
2569 (string_field): New function.
2570 (struct styled_string_s): New.
2571 (styled_string): New function.
2572 (class ui_out) <message>: Add comment.
2573 <vmessage, call_do_message>: New methods.
2574 <do_message>: Add style parameter.
2575 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2576 methods.
2577 (ui_out::message): Rewrite.
2578 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2579 parameter.
2580 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2581 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2582 gdb_extensions parameter.
2583 (class format_piece): Add parameter to constructor.
2584 (n_int_args): New field.
2585 * gdbsupport/format.c (format_pieces::format_pieces): Add
2586 gdb_extensions parameter. Handle '*'.
2587 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2588 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2589 vfprintf_styled_no_gdbfmt.
2590 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2591 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2592 unfiltered output.
2593 * ui-style.h (struct ui_file_style) <ptr>: New method.
2594
2595 2019-10-01 Tom Tromey <tom@tromey.com>
2596
2597 * unittests/format_pieces-selftests.c: Update. Add final format.
2598 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2599 empty literal pieces.
2600
2601 2019-10-01 Tom Tromey <tom@tromey.com>
2602
2603 * ui-out.h (enum class ui_out_style_kind): Remove.
2604 (class ui_out) <field_string, field_stsream, do_field_string>:
2605 Change type of "style".
2606 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2607 (ui_out::field_string): Update.
2608 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2609 of "style".
2610 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2611 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2612 * stack.c (print_frame_arg, print_frame_info, print_frame):
2613 Update.
2614 * source.c (print_source_lines_base): Update.
2615 * solib.c (info_sharedlibrary_command): Update.
2616 * skip.c (info_skip_command): Update.
2617 * record-btrace.c (btrace_call_history_src_line)
2618 (btrace_call_history): Update.
2619 * python/py-framefilter.c (py_print_frame): Update.
2620 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2621 "style".
2622 * mi/mi-out.c (mi_ui_out::do_table_header)
2623 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2624 (mi_ui_out::do_field_string): Update.
2625 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2626 Update.
2627 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2628 "style".
2629 * cli-out.c (cli_ui_out::do_table_header)
2630 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2631 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2632 (cli_ui_out::do_field_fmt): Update.
2633 * breakpoint.c (print_breakpoint_location): Update.
2634 (update_static_tracepoint): Update.
2635
2636 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2639 conversion of gdb_datadir.
2640 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2641 remove not needed c_str ().
2642
2643 2019-09-30 Ali Tamur <tamur@google.com>
2644
2645 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2646 (dwarf2_string_attr): Likewise.
2647
2648 2019-09-30 Ali Tamur <tamur@google.com>
2649
2650 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2651 (process_full_type_unit): Likewise.
2652 (dump_die_shallow): Likewise.
2653 (cu_debug_loc_section): Likewise.
2654
2655 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2656
2657 * minsyms.c (compare_minimal_symbols): Rename to...
2658 (minimal_symbol_is_less_than): ...this, and adjust to STL
2659 conventions (return bool, take arguments as references)
2660 (minimal_symbol_reader::install): Call std::sort instead
2661 of qsort.
2662
2663 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2664
2665 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2666 hash and why.
2667 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2668 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2669
2670 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2673 * psympriv.h (add_psymbol_to_list): Move comment here and update
2674 it.
2675
2676 2019-09-29 Tom de Vries <tdevries@suse.de>
2677
2678 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2679 Use $tmpdir/$(basename "$output_file").dwz instead of
2680 "${output_file}.dwz".
2681
2682 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 PR gdb/25045
2685 * hppa-linux-nat.c: Include gdbarch.h.
2686
2687 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2688
2689 * blockframe.c (find_pc_partial_function): Change return type to bool.
2690 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2691 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2692 (stub_gnu_ifunc_resolve_name): Likewise.
2693 * symtab.c (compare_filenames_for_search): Likewise.
2694 (compare_glob_filenames_for_search): Likewise.
2695 (matching_obj_sections): Likewise.
2696 (symbol_matches_domain): Likewise.
2697 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2698 (find_line_pc): Change return type to bool.
2699 (find_line_pc_range): Likewise.
2700 (producer_is_realview): Likewise.
2701 * symtab.h (symbol_matches_domain): Likewise.
2702 (find_pc_partial_function): Likewise.
2703 (find_pc_line_pc_range): Likewise.
2704 (in_gnu_ifunc_stub): Likewise.
2705 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2706 (find_line_pc): Likewise.
2707 (find_line_pc_range): Likewise.
2708 (matching_obj_sections): Likewise.
2709 (find_line_symtab): Change out parameter to bool.
2710 (producer_is_realview): Change return type to bool.
2711 (compare_filenames_for_search): Likewise.
2712 (compare_glob_filenames_for_search): Likewise.
2713
2714 2019-09-26 Tom Tromey <tom@tromey.com>
2715
2716 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2717 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2718 * gdb_usleep.h: Remove.
2719 * gdb_usleep.c: Remove.
2720 * utils.c: Don't include gdb_usleep.h.
2721
2722 2019-09-26 Tom Tromey <tromey@adacore.com>
2723
2724 * python/py-type.c (type_to_type_object): Call check_typedef
2725 for stub types.
2726
2727 2019-09-26 Tom Tromey <tom@tromey.com>
2728
2729 * utils.h (initialize_utils): Don't declare.
2730 * top.c (gdb_init): Don't call initialize_utils.
2731 * utils.c (initialize_utils): Remove. Move contents...
2732 (_initialize_utils): ... here.
2733
2734 2019-09-25 Tom Tromey <tom@tromey.com>
2735
2736 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2737 * utils.h (make_hex_string): Don't declare.
2738 * utils.c (make_hex_string): Remove.
2739
2740 2019-09-24 Tom de Vries <tdevries@suse.de>
2741
2742 PR gdb/23815
2743 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2744 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2745
2746 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2747
2748 * NEWS: Mention new simulator port for PRU.
2749
2750 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2751
2752 * ada-exp.y (write_object_remaining): Update.
2753 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2754 and eliminate the static buffer.
2755 (ada_decode_symbol): Update.
2756 (ada_la_decode): Update.
2757 (ada_sniff_from_mangled_name): Update.
2758 (is_valid_name_for_wild_match): Update.
2759 (ada_lookup_name_info::matches): Update and simplify.
2760 (name_matches_regex): Update.
2761 (ada_add_global_exceptions): Update.
2762 * ada-lang.h (ada_decode): Update signature.
2763 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2764 * dwarf-index-write.c (debug_names::insert): Update.
2765
2766 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2769 formatting.
2770
2771 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2774 Change "nonzero" to "true" in documentation.
2775
2776 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2777
2778 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2779 (_initialize_darwin_solib): Don't set
2780 darwin_so_ops.lookup_lib_global_symbol.
2781 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2782 set_gdbarch_iterate_over_objfiles_in_search_order.
2783 (elf_lookup_lib_symbol): Rename to...
2784 (svr4_iterate_over_objfiles_in_search_order): this, and update
2785 to iterate semantics.
2786 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2787 * solib.c (solib_global_lookup): Remove.
2788 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2789 (solib_global_lookup): Remove.
2790 * symtab.c (lookup_global_or_static_symbol): Remove call to
2791 solib_global_lookup.
2792
2793 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2794
2795 * NEWS: Move entries about default MI version now being
2796 version 3, and about the GDB/MI fix for multi-location
2797 breakpoints to the "since GDB 8.3" section.
2798
2799 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2800
2801 GDB 8.3.1 released.
2802
2803 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2804
2805 * NEWS: Mention that Cell/B.E. debugging support was removed.
2806 * MAINTAINERS: Remove spu target.
2807
2808 * config/djgpp/fnchange.lst: Remove entries for removed files.
2809
2810 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2811 spu-multiarch.o, and spu-tdep.o.
2812 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2813 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2814 spu-multiarch.c, and spu-tdep.c.
2815 * spu-linux-nat.c: Remove file.
2816 * spu-multiarch.c: Remove file.
2817 * spu-tdep.c: Remove file.
2818 * spu-tdep.h: Remove file.
2819 * solib-spu.c: Remove file.
2820 * solib-spu.h: Remove file.
2821
2822 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2823 * configure.nat (spu-linux): Remove.
2824 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2825 solib-multiarch.o from gdb_target_obs.
2826 (spu*-*-*): Remove.
2827
2828 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2829 feature flag.
2830 (ppc_linux_no_features): Update.
2831 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2832 Cell/B.E. support.
2833 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2834 (tdesc_powerpc_cell64l): Likewise.
2835 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2836 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2837 Cell/B.E. support.
2838 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2839 Do not include "features/rs6000/powerpc-cell32l.c" or
2840 "features/rs6000/powerpc-cell64l.c".
2841 (ppc_linux_spu_section): Remove.
2842 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2843 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2844 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2845 (ppc_linux_spe_context_lookup): Remove.
2846 (ppc_linux_spe_context_inferior_created): Remove.
2847 (ppc_linux_spe_context_solib_loaded): Remove.
2848 (ppc_linux_spe_context_solib_unloaded): Remove.
2849 (ppc_linux_spe_context): Remove.
2850 (struct ppu2spu_cache): Remove.
2851 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2852 (struct ppu2spu_data): Remove.
2853 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2854 ppu2spu_unwind): Remove.
2855 (ppc_linux_init_abi): Remove Cell/B.E. support.
2856 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2857
2858 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2859 (rs6000/powerpc-cell64l-expedite): Likewise
2860 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2861 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2862 rs6000/powerpc-cell64l.xml.
2863 * features/rs6000/powerpc-cell32l.xml: Remove.
2864 * features/rs6000/powerpc-cell64l.xml: Likewise.
2865 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2866 * features/rs6000/powerpc-cell64l.c: Likewise.
2867 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2868 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2869 * regformats/reg-spu.dat: Remove.
2870
2871 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2872 * corelow.c (struct spuid_list): Remove.
2873 (add_to_spuid_list): Remove.
2874 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2875 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2876 (remote_protocol_features): Remove associated entries.
2877 (_initialize_remote): No longer initialize them.
2878 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2879 * linux-nat.c (SPUFS_MAGIC): Remove.
2880 (linux_proc_xfer_spu): Remove.
2881 (spu_enumerate_spu_ids): Remove.
2882 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2883 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2884 (linux_make_corefile_notes): No longer call it.
2885
2886 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2887 (cooked_write_test): Likewise.
2888
2889 2019-09-20 Tom Tromey <tom@tromey.com>
2890
2891 * NEWS: Mention case-sensitivity of TUI commands.
2892 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2893 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2894 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2895
2896 2019-09-20 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-source.c (tui_source_window::set_contents): Use
2899 make_unique_xstrdup.
2900 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2901 make_unique_xstrdup.
2902
2903 2019-09-20 Tom Tromey <tom@tromey.com>
2904
2905 * tui/tui-data.c: Remove separator comments.
2906 * tui/tui-layout.c: Remove separator comments.
2907 * tui/tui-win.c: Remove separator comments.
2908 * tui/tui-wingeneral.c: Remove separator comments.
2909
2910 2019-09-20 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui.h (strcat_to_buf): Don't declare.
2913 * tui/tui.c (strcat_to_buf): Remove.
2914
2915 2019-09-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2918 from "fullname".
2919 * tui/tui-source.c (tui_source_window::set_contents)
2920 (tui_source_window::location_matches_p)
2921 (tui_source_window::maybe_update): Update.
2922
2923 2019-09-20 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2926 Update.
2927 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2928 prefix.
2929 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2930 (tui_data_window::line_from_reg_element_no)
2931 (tui_data_window::first_reg_element_no_inline)
2932 (tui_data_window::show_registers)
2933 (tui_data_window::show_register_group)
2934 (tui_data_window::display_registers_from)
2935 (tui_data_window::display_registers_from_line)
2936 (tui_data_window::first_data_item_displayed)
2937 (tui_data_window::delete_data_content_windows)
2938 (tui_data_window::erase_data_content)
2939 (tui_data_window::do_scroll_vertical)
2940 (tui_data_window::refresh_window)
2941 (tui_data_window::check_register_values): Update.
2942
2943 2019-09-20 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2946 (struct tui_locator_window) <full_name, proc_name>: Now
2947 std::string.
2948 * tui/tui-stack.c (tui_locator_window::make_status_line)
2949 (tui_locator_window::set_locator_fullname)
2950 (tui_locator_window::set_locator_info): Update.
2951 * tui/tui-source.c (tui_source_window::set_contents)
2952 (tui_source_window::showing_source_p): Update.
2953
2954 2019-09-20 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2957 Don't call tui_locator_win_info_ptr.
2958
2959 2019-09-20 Tom Tromey <tom@tromey.com>
2960
2961 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2962
2963 2019-09-20 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2966 height for locator.
2967 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2968 * tui/tui-layout.c (show_source_disasm_command, show_data)
2969 (show_source_or_disasm_and_command): Use 1 as height for locator.
2970
2971 2019-09-20 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui.c (tui_enable): Update.
2974 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2975 Update.
2976 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2977 Update.
2978 * tui/tui-data.c (win_resized): Now bool.
2979 (tui_win_resized): Return bool.
2980 (tui_set_win_resized_to): Accept a bool.
2981
2982 2019-09-20 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2985 Change type of "refresh_values_only".
2986 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2987 type of "refresh_values_only".
2988
2989 2019-09-20 Tom Tromey <tom@tromey.com>
2990
2991 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2992 std::string.
2993 (tui_disassemble): Add "pos" parameter.
2994 (tui_disasm_window::set_contents): Simplify.
2995
2996 2019-09-20 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-winsource.h (struct tui_source_window_base)
2999 <show_source_content>: Now private.
3000 * tui/tui-winsource.c
3001 (tui_source_window_base::show_source_content): Don't handle empty
3002 content case.
3003
3004 2019-09-20 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-layout.c (show_source_disasm_command)
3007 (show_source_or_disasm_and_command): Don't call
3008 show_source_content.
3009
3010 2019-09-20 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3013 Declare.
3014 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3015 from tui_make_status_line.
3016 (tui_locator_window::rerender): Update.
3017
3018 2019-09-20 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3021 (tui_locator_window::rerender): Update.
3022
3023 2019-09-20 Tom Tromey <tom@tromey.com>
3024
3025 * tui/tui-winsource.h (struct tui_source_window_base)
3026 <~tui_source_window_base>: Don't declare.
3027 <fullname>: Remove.
3028 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3029 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3030 member.
3031 * tui/tui-source.c (tui_source_window::set_contents): Update.
3032 (tui_source_window::location_matches_p)
3033 (tui_source_window::maybe_update): Update.
3034
3035 2019-09-20 Tom Tromey <tom@tromey.com>
3036
3037 * tui/tui-winsource.h (~tui_source_element): Remove.
3038 (tui_source_element): Update.
3039 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3040 * tui/tui-winsource.c (tui_show_source_line): Update.
3041 * tui/tui-source.c (tui_source_window::set_contents): Update.
3042 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3043
3044 2019-09-20 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3047 declare.
3048 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3049 tui_clear_source_windows_detail.
3050 * tui/tui-winsource.h (struct tui_source_window_base)
3051 <clear_detail>: Don't declare.
3052 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3053 Remove.
3054 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3055
3056 2019-09-20 Tom Tromey <tromey@adacore.com>
3057
3058 PR ada/24919:
3059 * block.c (contained_in): Fix final return value.
3060
3061 2019-09-20 Alan Modra <amodra@gmail.com>
3062
3063 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3064 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3065 (read_indirect_string_from_dwz): Use bfd accessor.
3066 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3067 * machoread.c (macho_symfile_read_all_oso): Likewise.
3068 * solib.c (solib_bfd_open): Likewise.
3069
3070 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3071
3072 * eval.c: Move declaration of overload_resolution to...
3073 * value.h: ...here.
3074
3075 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3076
3077 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3078 * arm-linux-tdep.c: Likewise.
3079 * arm-nbsd-nat.c: Likewise.
3080 * arm-tdep.h: Declare arm_apcs_32.
3081 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3082
3083 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3084
3085 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3086 * dwarf2read.h: Declare dwarf_always_disassemble.
3087
3088 2019-09-19 Tom de Vries <tdevries@suse.de>
3089
3090 PR gdb/25009
3091 * source-cache.c (source_cache::ensure): Catch exception thrown during
3092 construction of the highlighter.
3093
3094 2019-09-18 Alan Modra <amodra@gmail.com>
3095
3096 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3097 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3098 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3099 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3100 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3101 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3102 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3103 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3104 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3105 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3106 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3107 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3108 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3109 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3110 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3111 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3112 * mi/mi-interp.c: Update throughout for bfd section macro and
3113 function changes.
3114 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3115 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3116
3117 2019-09-18 Tom Tromey <tom@tromey.com>
3118
3119 * NEWS: Add entry.
3120 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3121 call rl_initialize.
3122 (tui_enable): Do not call rl_initialize.
3123
3124 2019-09-18 Christian Groessler <chris@groessler.org>
3125
3126 * alpha-linux-nat.c: Include gdbarch.h.
3127
3128 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3129
3130 * ui-file.c: Include cli/cli-style.h.
3131 (term_cli_styling): Remove cli_styling declaration.
3132
3133 2019-09-18 Alan Modra <amodra@gmail.com>
3134
3135 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3136 to bfd_asymbol_section.
3137
3138 2019-09-18 Alan Modra <amodra@gmail.com>
3139
3140 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3141 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3142 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3143
3144 2019-09-18 Alan Modra <amodra@gmail.com>
3145
3146 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3147 * spu-linux-nat.c (spu_bfd_open): Likewise.
3148
3149 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3150
3151 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3152 to bool to match definition in dwarf2read.c.
3153
3154 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3155
3156 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3157 (print_signatures): Likewise.
3158 (trust_pad_over_xvs): Likewise.
3159 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3160 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3161 * arm-linux-nat.c (arm_apcs_32): Likewise.
3162 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3163 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3164 * arm-tdep.c (arm_debug): Likewise.
3165 (arm_apcs_32): Likewise.
3166 * auto-load.c (debug_auto_load): Likewise.
3167 (auto_load_gdb_scripts): Likewise.
3168 (global_auto_load): Likewise.
3169 (auto_load_local_gdbinit): Likewise.
3170 (auto_load_local_gdbinit_loaded): Likewise.
3171 * auto-load.h (global_auto_load): Likewise.
3172 (auto_load_local_gdbinit): Likewise.
3173 (auto_load_local_gdbinit_loaded): Likewise.
3174 * breakpoint.c (disconnected_dprintf): Likewise.
3175 (breakpoint_proceeded): Likewise.
3176 (automatic_hardware_breakpoints): Likewise.
3177 (always_inserted_mode): Likewise.
3178 (target_exact_watchpoints): Likewise.
3179 (_initialize_breakpoint): Update.
3180 * breakpoint.h (target_exact_watchpoints): Change to bool.
3181 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3182 * cli/cli-cmds.c (trace_commands): Likewise.
3183 * cli/cli-cmds.h (trace_commands): Likewise.
3184 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3185 to bool*.
3186 * cli/cli-logging.c (logging_overwrite): Change to bool.
3187 (logging_redirect): Likewise.
3188 (debug_redirect): Likewise.
3189 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3190 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3191 to bool.
3192 <boolean_option_def>: Update.
3193 (struct flag_option_def): Change default type of Context to bool
3194 from int.
3195 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3196 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3197 (get_setshow_command_value_string): Likewise.
3198 * cli/cli-style.c (cli_styling): Change to bool.
3199 (source_styling): Likewise.
3200 * cli/cli-style.h (source_styling): Likewise.
3201 (cli_styling): Likewise.
3202 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3203 to bool.
3204 * command.h (var_types): Update comment.
3205 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3206 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3207 bool.
3208 (debug_compile_cplus_scopes): Likewise.
3209 * compile/compile-internal.h (compile_debug): Likewise.
3210 * compile/compile.c (compile_debug): Likewise.
3211 (struct compile_options) <raw>: Likewise.
3212 * cp-support.c (catch_demangler_crashes): Likewise.
3213 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3214 (usr_cmd_cris_dwarf2_cfi): Likewise.
3215 * csky-tdep.c (csky_debug): Likewise.
3216 * darwin-nat.c (enable_mach_exceptions): Likewise.
3217 * dcache.c (dcache_enabled_p): Likewise.
3218 * defs.h (info_verbose): Likewise.
3219 * demangle.c (demangle): Likewise.
3220 (asm_demangle): Likewise.
3221 * dwarf-index-cache.c (debug_index_cache): Likewise.
3222 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3223 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3224 * dwarf2read.c (check_physname): Likewise.
3225 (use_deprecated_index_sections): Likewise.
3226 (dwarf_always_disassemble): Likewise.
3227 * eval.c (overload_resolution): Likewise.
3228 * event-top.c (set_editing_cmd_var): Likewise.
3229 (exec_done_display_p): Likewise.
3230 * event-top.h (set_editing_cmd_var): Likewise.
3231 (exec_done_display_p): Likewise.
3232 * exec.c (write_files): Likewise.
3233 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3234 (debug_fbsd_nat): Likewise.
3235 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3236 Likewise.
3237 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3238 <backtrace_past_entry> Likewise.
3239 * gdb-demangle.h (demangle): Likewise.
3240 (asm_demangle): Likewise.
3241 * gdb_bfd.c (bfd_sharing): Likewise.
3242 * gdbcore.h (write_files): Likewise.
3243 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3244 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3245 * gdbthread.h (print_thread_events): Likewise.
3246 * gdbtypes.c (opaque_type_resolution): Likewise.
3247 (strict_type_checking): Likewise.
3248 * gnu-nat.c (gnu_debug_flag): Likewise.
3249 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3250 * guile/scm-param.c (pascm_variable): Add boolval.
3251 (add_setshow_generic): Update.
3252 (pascm_param_value): Update.
3253 (pascm_set_param_value_x): Update.
3254 * hppa-tdep.c (hppa_debug): Change to bool..
3255 * infcall.c (may_call_functions_p): Likewise.
3256 (coerce_float_to_double_p): Likewise.
3257 (unwind_on_signal_p): Likewise.
3258 (unwind_on_terminating_exception_p): Likewise.
3259 * infcmd.c (startup_with_shell): Likewise.
3260 * inferior.c (print_inferior_events): Likewise.
3261 * inferior.h (startup_with_shell): Likewise.
3262 (print_inferior_events): Likewise.
3263 * infrun.c (step_stop_if_no_debug): Likewise.
3264 (detach_fork): Likewise.
3265 (debug_displaced): Likewise.
3266 (disable_randomization): Likewise.
3267 (non_stop): Likewise.
3268 (non_stop_1): Likewise.
3269 (observer_mode): Likewise.
3270 (observer_mode_1): Likewise.
3271 (set_observer_mode): Update.
3272 (sched_multi): Change to bool.
3273 * infrun.h (debug_displaced): Likewise.
3274 (sched_multi): Likewise.
3275 (step_stop_if_no_debug): Likewise.
3276 (non_stop): Likewise.
3277 (disable_randomization): Likewise.
3278 * linux-tdep.c (use_coredump_filter): Likewise.
3279 (dump_excluded_mappings): Likewise.
3280 * linux-thread-db.c (auto_load_thread_db): Likewise.
3281 (check_thread_db_on_load): Likewise.
3282 * main.c (captured_main_1): Update.
3283 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3284 xx2_opt, boolean_opt>: Change to bool.
3285 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3286 * maint.c (maintenance_profile_p): Likewise.
3287 (per_command_time): Likewise.
3288 (per_command_space): Likewise.
3289 (per_command_symtab): Likewise.
3290 * memattr.c (inaccessible_by_default): Likewise.
3291 * mi/mi-main.c (mi_async): Likewise.
3292 (mi_async_1): Likewise.
3293 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3294 * nat/fork-inferior.h (startup_with_shell): Likewise.
3295 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3296 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3297 * nios2-tdep.c (nios2_debug): Likewise.
3298 * or1k-tdep.c (or1k_debug): Likewise.
3299 * parse.c (parser_debug): Likewise.
3300 * parser-defs.h (parser_debug): Likewise.
3301 * printcmd.c (print_symbol_filename): Likewise.
3302 * proc-api.c (procfs_trace): Likewise.
3303 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3304 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3305 (set_parameter_value): Update.
3306 (add_setshow_generic): Update.
3307 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3308 to bool*.
3309 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3310 int*.
3311 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3312 * record-btrace.c (record_btrace_target::store_registers): Update.
3313 * record-full.c (record_full_memory_query): Change to bool.
3314 (record_full_stop_at_limit): Likewise.
3315 * record-full.h (record_full_memory_query): Likewise.
3316 * remote-notif.c (notif_debug): Likewise.
3317 * remote-notif.h (notif_debug): Likewise.
3318 * remote.c (use_range_stepping): Likewise.
3319 (interrupt_on_connect): Likewise.
3320 (remote_break): Likewise.
3321 * ser-tcp.c (tcp_auto_retry): Likewise.
3322 * ser-unix.c (serial_hwflow): Likewise.
3323 * skip.c (debug_skip): Likewise.
3324 * solib-aix.c (solib_aix_debug): Likewise.
3325 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3326 (spu_auto_flush_cache_p): Likewise.
3327 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3328 Likewise.
3329 (struct info_print_options) <quiet>: Likewise.
3330 * symfile-debug.c (debug_symfile): Likewise.
3331 * symfile.c (auto_solib_add): Likewise.
3332 (separate_debug_file_debug): Likewise.
3333 * symfile.h (auto_solib_add): Likewise.
3334 (separate_debug_file_debug): Likewise.
3335 * symtab.c (basenames_may_differ): Likewise.
3336 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3337 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3338 (struct info_types_options) <quiet>: Likewise.
3339 * symtab.h (demangle): Likewise.
3340 (basenames_may_differ): Likewise.
3341 * target-dcache.c (stack_cache_enabled_1): Likewise.
3342 (code_cache_enabled_1): Likewise.
3343 * target.c (trust_readonly): Likewise.
3344 (may_write_registers): Likewise.
3345 (may_write_memory): Likewise.
3346 (may_insert_breakpoints): Likewise.
3347 (may_insert_tracepoints): Likewise.
3348 (may_insert_fast_tracepoints): Likewise.
3349 (may_stop): Likewise.
3350 (auto_connect_native_target): Likewise.
3351 (target_stop_and_wait): Update.
3352 (target_async_permitted): Change to bool.
3353 (target_async_permitted_1): Likewise.
3354 (may_write_registers_1): Likewise.
3355 (may_write_memory_1): Likewise.
3356 (may_insert_breakpoints_1): Likewise.
3357 (may_insert_tracepoints_1): Likewise.
3358 (may_insert_fast_tracepoints_1): Likewise.
3359 (may_stop_1): Likewise.
3360 * target.h (target_async_permitted): Likewise.
3361 (may_write_registers): Likewise.
3362 (may_write_memory): Likewise.
3363 (may_insert_breakpoints): Likewise.
3364 (may_insert_tracepoints): Likewise.
3365 (may_insert_fast_tracepoints): Likewise.
3366 (may_stop): Likewise.
3367 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3368 (make_thread_apply_all_options_def_group): Change argument from int*
3369 to bool*.
3370 (thread_apply_all_command): Update.
3371 (print_thread_events): Change to bool.
3372 * top.c (confirm): Likewise.
3373 (command_editing_p): Likewise.
3374 (history_expansion_p): Likewise.
3375 (write_history_p): Likewise.
3376 (info_verbose): Likewise.
3377 * top.h (confirm): Likewise.
3378 (history_expansion_p): Likewise.
3379 * tracepoint.c (disconnected_tracing): Likewise.
3380 (circular_trace_buffer): Likewise.
3381 * typeprint.c (print_methods): Likewise.
3382 (print_typedefs): Likewise.
3383 * utils.c (debug_timestamp): Likewise.
3384 (sevenbit_strings): Likewise.
3385 (pagination_enabled): Likewise.
3386 * utils.h (sevenbit_strings): Likewise.
3387 (pagination_enabled): Likewise.
3388 * valops.c (overload_resolution): Likewise.
3389 * valprint.h (struct value_print_options) <prettyformat_arrays,
3390 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3391 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3392 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3393 Likewise.
3394 * windows-nat.c (new_console): Likewise.
3395 (cygwin_exceptions): Likewise.
3396 (new_group): Likewise.
3397 (debug_exec): Likewise.
3398 (debug_events): Likewise.
3399 (debug_memory): Likewise.
3400 (debug_exceptions): Likewise.
3401 (useshell): Likewise.
3402 * windows-tdep.c (maint_display_all_tib): Likewise.
3403 * xml-support.c (debug_xml): Likewise.
3404
3405 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3406
3407 * source.c (prepare_path_for_appending): New function.
3408 (openp): Make use of new function.
3409 (find_and_open_source): Search for the compilation directory and
3410 source file as a relative path beneath the directory search path.
3411
3412 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * source-cache.c (source_cache::get_line_charpos): Catch
3415 exceptions and return false, this matches the behaviour documented
3416 in the header file.
3417
3418 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3419
3420 * ada-tasks.c (info_task): Remove quoting of the task's name.
3421
3422 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3423
3424 * symfile.c (auto_solib_add): Replace comment with a reference
3425 to the header file.
3426
3427 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3428
3429 * NEWS: Mention that gdb can now be compiled with Python 3
3430 on Windows.
3431
3432 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * maint.c (maint_print_section_data::maint_print_section_data):
3435 Force use of 'float log10 (float)' by casting the argument to
3436 float.
3437
3438 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * maint.c: Add 'cmath' include.
3441 (struct maint_print_section_data): New structure.
3442 (print_section_index): New function.
3443 (print_bfd_section_info): Add header comment, small whitespace
3444 cleanup, and update to call new print_section_index function.
3445 (print_objfile_section_info): Likewise.
3446 (maint_obj_section_from_bfd_section): New function.
3447 (print_bfd_section_info_maybe_relocated): New function.
3448 (maintenance_info_sections): Add header comment, always use
3449 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3450
3451 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3454 inner scope, add check that the objfile has psymtabs before
3455 checking psymtabs_addrmap.
3456 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3457
3458 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3459
3460 * NEWS: Announce that Ada task names are now shown at more places,
3461 and between quotes (except in info task output).
3462 * gdb/ada-tasks.c (task_to_str): New function.
3463 (display_current_task_id): Call task_to_str.
3464 (task_command_1): Likewise.
3465 (print_ada_task_info): In non-mi mode, Properly align headers and data
3466 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3467
3468 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3469
3470 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3471 prstatus.pr_lwp.pr_info instead of making it up.
3472
3473 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3474
3475 * auto-load.c (auto_load_expand_dir_vars): Update.
3476 * defs.h (gdb_datadir): Change to std::string.
3477 (python_libdir): Likewise.
3478 (relocate_gdb_directory): Change return type to std::string.
3479 * guile/guile.c (gdbscm_data_directory): Update.
3480 (initialize_scheme_side): Update.
3481 * jit.c (jit_reader_dir): Change to std::string.
3482 (jit_reader_load_command): Update.
3483 * main.c (gdb_datadir): Change to std::string.
3484 (python_libdir): Likewise.
3485 (set_gdb_data_directory): Update.
3486 (relocate_path): Change to return std::string.
3487 (relocate_gdb_directory): Change to return std::string.
3488 (relocate_gdbinit_path_maybe_in_datadir): Update.
3489 (captured_main_1): Update.
3490 * python/python.c (do_start_initialization): Update.
3491 * top.c (show_gdb_datadir): Update.
3492 * xml-syscall.c (xml_init_syscalls_info): Update.
3493 (init_syscalls_info): Update.
3494
3495 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3496
3497 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3498 out of get_init_files.
3499 (get_init_files): Update.
3500
3501 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3502
3503 * main.c (get_init_files): Change to use std::string.
3504 (captured_main_1): Update.
3505 (print_gdb_help): Update.
3506
3507 2019-09-11 Ali Tamur <tamur@google.com>
3508
3509 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3510 implementation.
3511
3512 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3513
3514 * dbxread.c (read_dbx_symtab): Update.
3515 * dwarf2read.c (load_partial_dies): Update.
3516 * mdebugread.c (parse_partial_symbols): Update.
3517 (handle_psymbol_enumerators): Update.
3518 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3519 * psymtab.c (add_psymbol_to_bcache): Likewise.
3520 (add_psymbol_to_list): Likewise.
3521 * symtab.c (symbol_set_names): Likewise.
3522 * symtab.h (symbol_set_names): Likewise.
3523 * xcoffread.c (scan_xcoff_symtab): Update.
3524
3525 2019-09-11 Tom Tromey <tom@tromey.com>
3526
3527 * symfile-mem.c (symbol_file_add_from_memory): Use
3528 bfd_set_filename.
3529 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3530 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3531
3532 2019-09-10 Tom Tromey <tromey@adacore.com>
3533
3534 * dwarf-index-write.c (write_psymbols): Extend error message.
3535 (debug_names::insert): Add Ada code.
3536 (debug_names::write_psymbols): Remove Ada check.
3537 (debug_names) <m_string_obstack>: New member.
3538 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3539 (gdb_index_symbol_name_matcher::matches): Remove.
3540 (mapped_index_base::find_name_components_bounds): Add "lang"
3541 parameter.
3542 (mapped_index_base::build_name_components): Also split names
3543 according to Ada syntax.
3544 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3545 type of "match_callback".
3546 (check_match, check_find_bounds_finds)
3547 (dw2_expand_symtabs_matching): Update.
3548 (dw2_debug_names_iterator): Add new constructor.
3549 (dw2_debug_names_map_matching_symbols): New function.
3550 (dw2_debug_names_expand_symtabs_matching): Update.
3551 (dwarf2_debug_names_functions): Use
3552 dw2_debug_names_map_matching_symbols.
3553
3554 2019-09-10 Tom Tromey <tromey@adacore.com>
3555
3556 * dwarf2read.c (dw2_get_file_names_reader): Add the
3557 CU's file name to the results.
3558
3559 2019-09-10 Tom Tromey <tromey@adacore.com>
3560
3561 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3562 map_matching_symbols. Update.
3563 * dwarf2read.c (dw2_map_matching_symbols): Update.
3564 * psymtab.c (match_partial_symbol): Change type; update.
3565 (psym_map_matching_symbols): Likewise.
3566 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3567 type; update.
3568 * symfile.h (struct quick_symbol_functions)
3569 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3570 Remove "match".
3571
3572 2019-09-10 Tom Tromey <tromey@adacore.com>
3573
3574 * psymtab.c (map_block): Remove.
3575 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3576 * symtab.c (iterate_over_symbols_terminated): New function.
3577 * symtab.c (iterate_over_symbols_terminated): Declare.
3578
3579 2019-09-10 Tom Tromey <tromey@adacore.com>
3580
3581 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3582 * language.h (struct language_defn) <la_iterate_over_symbols>:
3583 Return bool.
3584 * symtab.c (iterate_over_symbols): Return bool.
3585 * symtab.h (iterate_over_symbols): Return bool.
3586
3587 2019-09-10 Tom Tromey <tromey@adacore.com>
3588
3589 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3590 (add_nonlocal_symbols): Update.
3591 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3592 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3593 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3594 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3595 Change type of "callback". Remove "data".
3596
3597
3598 2019-09-09 Ali Tamur <tamur@google.com>
3599
3600 * dwarf2read.c (comp_unit_head): Update comment.
3601 (dwarf2_dwo_name): New function declaration.
3602 (dwarf_unit_type_name): New function declaration.
3603 (read_comp_unit_head): Add support for new compilation units,
3604 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3605 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3606 (currently named as "signature") in their header. Also clarify error
3607 messages.
3608 (lookup_dwo_id): New function. Returns the dwo id of the given
3609 compile unit.
3610 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3611 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3612 functions.
3613 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3614 (dwarf2_dwo_name): Get the dwo name if present.
3615 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3616 purposes.
3617
3618 2019-09-09 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3621
3622 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3623
3624 * python/python.c (do_start_initialization): Make progname_copy static,
3625 to avoid a leak report.
3626
3627 2019-09-08 Tom Tromey <tom@tromey.com>
3628
3629 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3630
3631 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3632
3633 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3634 Change type to gdb::optional<block_enum>.
3635 (dw2_symtab_iter_init): Change block_index parameter type
3636 to gdb::optional<block_enum>.
3637 (dw2_lookup_symbol): Change block_index parameter
3638 type to block_enum.c
3639 (dw2_debug_names_lookup_symbol): Likewise.
3640 * psymtab.c (psym_lookup_symbol): Likewise.
3641 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3642 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3643 Likewise.
3644
3645 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3646
3647 * defs.h (relocate_gdb_directory): Change int to bool in
3648 signature and rename flag to relocatable.
3649 * main.c (relocate_path): Likewise.
3650 (relocate_gdb_directory): Likewise.
3651
3652 2019-09-06 Alan Modra <amodra@gmail.com>
3653
3654 * coffread.c (coff_symfile_read): Constify filename variable.
3655 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3656 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3657 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3658 * solib.c (reload_shared_libraries_1): Likewise.
3659 * symfile.c (reread_symbols): Likewise.
3660 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3661 * solib-darwin.c (darwin_bfd_open): Likewise.
3662 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3663
3664 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3667 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3668
3669 2019-09-03 Tom Tromey <tromey@adacore.com>
3670
3671 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3672 types.
3673 (has_negatives): Unbias a range type bound.
3674 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3675 * gdbtypes.c (operator==): Handle new field.
3676 (create_range_type): Add "bias" parameter.
3677 (create_static_range_type, resolve_dynamic_range): Update.
3678 * gdbtypes.h (struct range_bounds) <bias>: New member.
3679 (create_range_type): Add bias parameter.
3680 * printcmd.c (print_scalar_formatted): Unbias range types.
3681 * value.c (unpack_long): Unbias range types.
3682 (pack_long): Bias range types.
3683
3684 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3685
3686 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3687 probe arguments.
3688
3689 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3690
3691 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3692 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3693 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3694 (compile_probe_arg): Likewise.
3695 * probe.h (get_argument_count): Likewise.
3696 * solib-svr4.c (solib_event_probe_action): Likewise.
3697 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3698
3699 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3700
3701 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3702 code to here...
3703 (svr4_create_solib_event_breakpoints): ...from here.
3704
3705 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3706
3707 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3708 suffix from warning message.
3709
3710 2019-08-30 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-winsource.h (struct tui_source_window_base)
3713 <refresh_all>: Don't declare.
3714 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3715 Remove.
3716 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3717 tui_show_locator_content.
3718 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3719 declare.
3720 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3721 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3722 declare.
3723
3724 2019-08-30 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3727
3728 2019-08-30 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3731 Remove unnecessary forward declarations.
3732
3733 2019-08-30 Tom Tromey <tom@tromey.com>
3734
3735 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3736 rerender.
3737 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3738 tui_show_locator_content.
3739
3740 2019-08-30 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3743 (tui_locator_window::rerender): Rewrite using body of previous
3744 tui_show_locator_content.
3745
3746 2019-08-30 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3749 set_locator_fullname>: New methods.
3750 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3751 Rename from tui_set_locator_fullname.
3752 (tui_locator_window::set_locator_info): Rename from
3753 tui_set_locator_info. Return bool.
3754 (tui_update_locator_fullname, tui_show_frame_info): Update.
3755
3756 2019-08-30 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3759
3760 2019-08-30 Tom Tromey <tom@tromey.com>
3761
3762 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3763 call touchwin.
3764
3765 2019-08-30 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-wingeneral.c (box_win): Assume win_info and
3768 win_info->handle cannot be NULL.
3769
3770 2019-08-30 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3773 refresh_window>: Declare.
3774 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3775 resize.
3776 (tui_data_item_window::rerender): Rename from
3777 tui_display_register.
3778 (tui_data_item_window::refresh_window): New method.
3779 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3780 no-op.
3781
3782 2019-08-30 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3785 regs_column_count, current_group>: Move later. Now private.
3786 <get_current_group>: New method.
3787 * tui/tui-regs.c (tui_reg_command): Update.
3788 * tui/tui-layout.c (tui_set_layout): Update.
3789
3790 2019-08-30 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3793 (tui_data_window::rerender): Don't call
3794 check_and_display_highlight_if_needed.
3795 (tui_data_window::refresh_all): Remove call to
3796 erase_data_content.
3797
3798 2019-08-30 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3801 (tui_data_window::display_registers_from)
3802 (tui_data_window::display_reg_element_at_line)
3803 (tui_data_window::display_registers_from_line): Remove checks of
3804 "empty".
3805
3806 2019-08-30 Tom Tromey <tom@tromey.com>
3807
3808 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3809 Don't declare.
3810 * tui/tui-regs.c (tui_data_window::show_registers): Call
3811 rerender.
3812 (tui_data_window::rerender): Rename from display_all_data.
3813 (tui_data_window::rerender): Remove old implementation.
3814
3815 2019-08-30 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3818 text.
3819 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3820
3821 2019-08-29 Bernhard Wodok <barto@gmx.net>
3822 Sergio Durigan Junior <sergiodj@redhat.com>
3823
3824 PR win32/24284
3825 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3826
3827 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3830 when searching for types.
3831
3832 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * f-lang.c (f_language_defn): Use f_print_typedef.
3835 * f-lang.h (f_print_typedef): Declare.
3836 * f-typeprint.c (f_print_typedef): Define.
3837
3838 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3839
3840 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3841
3842 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * cli/cli-utils.c (info_print_options_defs): Delete.
3845 (make_info_print_options_def_group): Delete.
3846 (extract_info_print_options): Delete.
3847 (info_print_command_completer): Delete.
3848 (info_print_args_help): Add extra parameter, and optionally
3849 include text about -n flag.
3850 * cli/cli-utils.h (struct info_print_options): Delete.
3851 (extract_info_print_options): Delete declaration.
3852 (info_print_command_completer): Delete declaration.
3853 (info_print_args_help): Add extra parameter, extend header
3854 comment.
3855 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3856 search_symbols.
3857 * stack.c (struct info_print_options): New type.
3858 (info_print_options_defs): New file scoped variable.
3859 (make_info_print_options_def_group): New static function.
3860 (info_print_command_completer): New static function.
3861 (info_locals_command): Update to use new local functions.
3862 (info_args_command): Likewise.
3863 (_initialize_stack): Add extra parameter to calls to
3864 info_print_args_help.
3865 * symtab.c (search_symbols): Add extra parameter, use this to
3866 possibly excluse non-debug symbols.
3867 (symtab_symbol_info): Add extra parameter, which is passed on to
3868 search_symbols.
3869 (struct info_print_options): New type.
3870 (info_print_options_defs): New file scoped variable.
3871 (make_info_print_options_def_group): New static function.
3872 (info_print_command_completer): New static function.
3873 (info_variables_command): Update to use local functions, and pass
3874 extra parameter through to symtab_symbol_info.
3875 (info_functions_command): Likewise.
3876 (info_types_command): Pass additional argument through to
3877 symtab_symbol_info.
3878 (rbreak_command): Pass extra argument to search_symbols.
3879 (_initialize_symtab): Add extra arguments for calls to
3880 info_print_args_help, and update help text for 'info variables',
3881 'whereis', and 'info functions' commands.
3882 * symtab.h (search_symbols): Add extra argument to declaration.
3883 * NEWS: Mention new flags.
3884
3885 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3886
3887 * symtab.c (lookup_static_symbol): Call the new function (and move
3888 it down to be next to lookup_global_symbol).
3889 (struct global_sym_lookup_data): Add block_enum member and rename to...
3890 (struct global_or_static_sym_lookup_data): ...this.
3891 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3892 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3893 (lookup_symbol_global_or_static_iterator_cb): ...this.
3894 (lookup_global_or_static_symbol): New function.
3895 (lookup_global_symbol): Call new function.
3896
3897 2019-08-26 Tom de Vries <tdevries@suse.de>
3898
3899 PR c++/24852
3900 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3901 when pc_probe.prob == NULL.
3902
3903 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3906 variable symbol_linkage to symbol_linkage_.
3907
3908 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3911 represent whether the symbol is static, dynamic, or we don't
3912 know.
3913
3914 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3915
3916 * gdb/rx-tdep.c (rx_register_names): New.
3917 (rx_register_name): Delete.
3918 (rx_psw_type): Delete.
3919 (rx_fpsw_type): Delete.
3920 (rx_register_type): Delete.
3921 (rx_gdbarch_init): Convert target-descriptions.
3922 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3923 * gdb/features/Makefile: Add rx.xml.
3924 * gdb/features/rx.xml: New.
3925 * gdb/features/rx.c: Generated.
3926 * gdb/NEWS: Mention target description support.
3927
3928 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3929
3930 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3931 *slot_ptr.
3932
3933 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3934
3935 * configure.ac: Don't check for 'dlfcn.h' (moved to
3936 gdbsupport/common.m4).
3937 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3938 'gdbsupport/'.
3939 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3940 * compile/compile-c-support.c: Include
3941 'gdbsupport/gdb-dlfcn.h'.
3942 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3943 * gdb-dlfcn.c: Move to...
3944 * gdbsupport/gdb-dlfcn.c: ... here.
3945 * gdb-dlfcn.h: Move to...
3946 * gdbsupport/gdb-dlfcn.h: ... here.
3947
3948 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3949
3950 * nios2-tdep.c (struct reg_value): Improve comments. Make
3951 the offset field signed.
3952
3953 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3954
3955 * python/lib/gdb/__init__.py (_execute_file): New function.
3956 * python/python.c (python_run_simple_file): Call gdb._execute_file
3957 on Windows.
3958
3959 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3962 all uses as this was never set to anything but a zero value.
3963
3964 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3965
3966 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3967
3968 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3969
3970 * tui/tui-data.h (tui_gen_win_info): Add an =default
3971 move constructor, required by some GCC versions.
3972
3973 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3974
3975 * go32-nat.c (go32_sysinfo): Add hygon_p.
3976
3977 2019-08-20 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3980 line_from_reg_element_no, first_reg_element_no_inline,
3981 display_all_data, delete_data_content_windows,
3982 erase_data_content>: Now private.
3983
3984 2019-08-20 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3987 (tui_unhighlight_win, tui_highlight_win)
3988 (tui_win_info::make_window): Update.
3989 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3990
3991 2019-08-20 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3994 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3995 (MAX_PID_WIDTH): Move to tui-stack.c.
3996 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3997 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3998 (MAX_PID_WIDTH): Move from tui-data.h.
3999
4000 2019-08-20 Tom Tromey <tom@tromey.com>
4001
4002 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4003 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4004 (box_win): Update.
4005 (tui_gen_win_info::make_window): Rename from tui_make_window.
4006 (tui_win_info::make_window): New method.
4007 (tui_gen_win_info::make_visible): Update.
4008 * tui/tui-source.c (tui_source_window::set_contents): Update.
4009 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4010 (tui_data_window::display_registers_from): Update.
4011 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4012 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4013 Declare.
4014 <can_box>: Remove.
4015 <title>: Remove.
4016 (struct tui_win_info) <make_window>: Declare.
4017 <can_box>: Now virtual.
4018 <title>: New member.
4019 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4020 * tui/tui-command.c (tui_cmd_window::resize): Update.
4021
4022 2019-08-20 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4025 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4026 (tui_data_window::check_register_values): Update.
4027
4028 2019-08-20 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-regs.h (struct tui_data_window): Use
4031 DISABLE_COPY_AND_ASSIGN.
4032 <regs_content>: Change type, removing unique_ptr.
4033 <tui_data_window>: Add move constructor.
4034 * tui/tui-regs.c (tui_data_window::show_registers)
4035 (tui_data_window::show_register_group)
4036 (tui_data_window::display_registers_from)
4037 (tui_data_window::display_registers_from)
4038 (tui_data_window::first_data_item_displayed)
4039 (tui_data_window::delete_data_content_windows)
4040 (tui_data_window::rerender, tui_data_window::refresh_window)
4041 (tui_data_window::check_register_values): Update.
4042
4043 2019-08-20 Tom Tromey <tom@tromey.com>
4044
4045 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4046 show_register_group>: Declare.
4047 (tui_show_register_group): Don't declare.
4048 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4049 tui_show_registers.
4050 (tui_data_window::show_register_group): Rename from
4051 tui_show_register_group.
4052 (tui_data_window::check_register_values, tui_reg_command):
4053 Update.
4054 * tui/tui-layout.c (tui_set_layout): Update.
4055
4056 2019-08-20 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4059 Declare.
4060 (tui_check_register_values): Don't declare.
4061 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4062 from tui_check_register_values.
4063 * tui/tui-hooks.c (tui_register_changed): Update.
4064
4065 2019-08-20 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-regs.c (tui_reg_layout): Move later.
4068 (tui_show_registers): Don't enable TUI mode or change layout.
4069
4070 2019-08-20 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-regs.h (struct tui_data_item_window)
4073 <~tui_data_item_window>: Remove.
4074 <content>: Now a unique_xmalloc_ptr.
4075 * tui/tui-regs.c (tui_register_format): Return a
4076 unique_xmalloc_ptr.
4077 (tui_get_register): Update.
4078 (~tui_data_item_window): Remove.
4079 (tui_data_window::display_registers_from, tui_display_register):
4080 Update.
4081 * tui/tui-io.h (tui_expand_tabs): Update.
4082 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4083 Remove "col" parameter.
4084
4085 2019-08-20 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4088 field.
4089 * tui/tui-regs.c (~tui_data_item_window): Update.
4090
4091 2019-08-20 Tom Tromey <tom@tromey.com>
4092
4093 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4094 earlier.
4095
4096 2019-08-20 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4099
4100 2019-08-20 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-source.h (struct tui_source_window): Update.
4103 * tui/tui-regs.c (tui_show_registers): Update.
4104 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4105 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4106 (NO_REGS_STRING): Remove defines.
4107
4108 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4109
4110 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4111 unnecessary thread walk if remote doesn't support the packet.
4112
4113 2019-08-19 Tom Tromey <tromey@adacore.com>
4114
4115 * python/py-value.c (value_has_field): Fix indentation.
4116
4117 2019-08-19 Tom Tromey <tromey@adacore.com>
4118
4119 * printcmd.c (do_one_display, info_display_command): Update.
4120 * block.h (contained_in): Return bool. Add allow_nested
4121 parameter.
4122 * block.c (contained_in): Return bool. Add allow_nested
4123 parameter.
4124
4125 2019-08-19 Tom Tromey <tom@tromey.com>
4126
4127 * configure: Rebuild.
4128 * configure.ac: Disallow the combination of -static-libstdc++ and
4129 source highlight.
4130 * source-cache.c (get_language_name): Handle rust.
4131 (source_cache::get_source_lines): Ignore highlighting exceptions.
4132
4133 2019-08-16 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4136 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4137 (struct tui_source_window_base) <make_visible, refresh_window,
4138 resize>: Remove methods.
4139 <execution_info>: Remove field.
4140 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4141 (tui_show_source_line, tui_source_window_base)
4142 (~tui_source_window_base): Update.
4143 (tui_source_window_base::resize)
4144 (tui_source_window_base::make_visible)
4145 (tui_source_window_base::refresh_window): Remove.
4146 (tui_source_window_base::update_exec_info): Update.
4147 * tui/tui-source.c (tui_source_window::set_contents): Update.
4148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4149
4150 2019-08-16 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4153 deprecated_query_hook.
4154
4155 2019-08-16 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4158 (tui_update_source_windows_with_line): Update.
4159 * tui/tui-source.h (struct tui_source_window)
4160 <show_symtab_source>: Declare.
4161 (tui_show_symtab_source): Don't declare.
4162 * tui/tui-source.c (tui_show_symtab_source): Rename from
4163 tui_show_symtab_source.
4164
4165 2019-08-16 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-winsource.h (struct tui_source_window_base)
4168 <set_contents>: Declare.
4169 * tui/tui-winsource.c
4170 (tui_source_window_base::update_source_window_as_is): Update.
4171 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4172 Declare.
4173 (tui_set_source_content): Don't declare.
4174 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4175 tui_set_source_content.
4176 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4177 Declare.
4178 (tui_set_disassem_content): Don't declare.
4179 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4180 tui_set_disassem_content.
4181
4182 2019-08-16 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-winsource.h (struct tui_source_window_base)
4185 <update_breakpoint_info>: Declare.
4186 (tui_update_breakpoint_info): Don't declare.
4187 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4188 (tui_update_all_breakpoint_info): Update.
4189 (tui_source_window_base::update_breakpoint_info): Rename from
4190 tui_update_breakpoint_info.
4191 (tui_source_window_base::update_exec_info): Update.
4192
4193 2019-08-16 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-winsource.h (struct tui_source_window_base)
4196 <update_source_window>: Declare.
4197 (tui_update_source_window): Don't declare.
4198 * tui/tui-winsource.c
4199 (tui_source_window_base::update_source_window): Rename from
4200 tui_update_source_window.
4201 (tui_source_window_base::rerender): Update.
4202 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4203 * tui/tui-disasm.c (tui_show_disassem)
4204 (tui_show_disassem_and_update_source)
4205 (tui_disasm_window::maybe_update): Update.
4206
4207 2019-08-16 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-winsource.h (struct tui_source_window_base)
4210 <update_source_window_as_is>: Declare.
4211 (tui_update_source_window_as_is): Don't declare.
4212 * tui/tui-winsource.c (tui_update_source_window): Update
4213 (tui_source_window_base::update_source_window_as_is): Rename from
4214 tui_update_source_window_as_is.
4215 (tui_source_window_base::refill): Update.
4216 * tui/tui-source.c (tui_show_symtab_source): Update.
4217 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4218 Update.
4219
4220 2019-08-16 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-winsource.h (tui_update_source_window)
4223 (tui_update_source_window_as_is): Remove "noerror" parameter.
4224 * tui/tui-winsource.c (tui_update_source_window)
4225 (tui_update_source_window_as_is): Remove "noerror" parameter.
4226 (tui_update_source_windows_with_addr)
4227 (tui_update_source_windows_with_line)
4228 (tui_source_window_base::rerender)
4229 (tui_source_window_base::refill): Update.
4230 * tui/tui-source.h (tui_set_source_content)
4231 (tui_show_symtab_source): Remove "noerror" parameter.
4232 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4233 parameter.
4234 (tui_show_symtab_source): Likewise.
4235 (tui_source_window::maybe_update): Update.
4236 * tui/tui-disasm.c (tui_show_disassem)
4237 (tui_show_disassem_and_update_source)
4238 (tui_disasm_window::do_scroll_vertical)
4239 (tui_disasm_window::maybe_update): Update.
4240
4241 2019-08-16 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui.c (tui_is_window_visible): Update.
4244 * tui/tui-wingeneral.c (tui_make_window)
4245 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4246 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4247 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4248 (tui_set_win_height_command, parse_scrolling_args): Update.
4249 * tui/tui-source.c (tui_source_window::style_changed): Update.
4250 * tui/tui-regs.c (tui_show_registers)
4251 (tui_data_window::first_data_item_displayed)
4252 (tui_data_window::delete_data_content_windows)
4253 (tui_check_register_values, tui_reg_command): Update.
4254 * tui/tui-disasm.c (tui_show_disassem): Update.
4255 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4256 method.
4257 <is_visible>: Remove field.
4258 * tui/tui-data.c (tui_next_win, tui_prev_win)
4259 (tui_delete_invisible_windows): Update.
4260
4261 2019-08-16 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-winsource.h (struct tui_source_window_base)
4264 <m_has_locator>: Remove.
4265 * tui/tui-layout.c (show_source_disasm_command, show_data)
4266 (show_source_or_disasm_and_command): Update.
4267
4268 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4269
4270 * NEWS (Other MI changes): New subsection.
4271 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4272 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4273 * arch-utils.c (default_get_pc_address_flags): New function.
4274 * arch-utils.h (default_get_pc_address_flags): New declaration.
4275 * gdbarch.sh: Add get_pc_address_flags.
4276 * gdbarch.c: Regenerate.
4277 * gdbarch.h: Likewise.
4278 * stack.c (print_pc): New function.
4279 (print_frame_info) (print_frame): Call print_pc.
4280
4281 2019-08-16 Tom de Vries <tdevries@suse.de>
4282
4283 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4284 print_objfile_section_info.
4285
4286 2019-08-15 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4289 calling update_cmdwin_start_line.
4290 * tui/tui-winsource.h (struct tui_source_window_base)
4291 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4292 <rerender>: Declare.
4293 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4294 Call rerender.
4295 (tui_source_window_base::set_new_height): Remove.
4296 (tui_source_window_base::rerender): Rename from
4297 do_make_visible_with_new_height.
4298 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4299 resize method.
4300 (tui_win_info::make_invisible_and_set_new_height)
4301 (tui_win_info::make_visible_with_new_height): Remove.
4302 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4303 Declare.
4304 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4305 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4306 do_make_visible_with_new_height>: Don't declare.
4307 <rerender>: Declare.
4308 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4309 set_new_height.
4310 (tui_data_window::do_make_visible_with_new_height): Remove.
4311 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4312 call tui_show_locator_content.
4313 (tui_gen_win_info::resize): Call rerender.
4314 (show_source_or_disasm_and_command): Don't call
4315 tui_show_locator_content.
4316 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4317 method.
4318 (struct tui_win_info) <rerender>: Declare.
4319 <set_new_height, make_invisible_and_set_new_height,
4320 make_visible_with_new_height>: Don't declare.
4321 * tui/tui-data.c (tui_win_list::rerender): New method.
4322 * tui/tui-command.h (struct tui_cmd_window)
4323 <do_make_visible_with_new_height>: Don't declare.
4324 * tui/tui-command.c
4325 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4326
4327 2019-08-15 Tom Tromey <tromey@adacore.com>
4328
4329 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4330 * ada-lang.c (ada_enum_name): Likewise.
4331
4332 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4333
4334 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4335 leading underscore.
4336 (GdbOutputErrorFile): Likewise.
4337 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4338 accordingly.
4339 (execute_unwinders): Rename to have a leading underscore.
4340 (auto_load_packages): Likewise.
4341 (global scope): Adjust call to auto_load_packages accordingly.
4342 (GdbSetPythonDirectory): Likewise.
4343 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4344 instead of execute_unwinders.
4345
4346 2019-08-15 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4349 (show_data): Don't change window visibility.
4350 (tui_gen_win_info::resize): Remove special case for command
4351 window. Use wresize, when available.
4352 (show_source_or_disasm_and_command): Don't change window
4353 visibility.
4354 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4355 <make_visible>: New method.
4356 * tui/tui-command.c (tui_cmd_window::resize): New method.
4357
4358 2019-08-15 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4361 (struct tui_source_windows): New.
4362 * tui/tui-winsource.c (tui_display_main): Update.
4363 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4364 (new_height_ok, parse_scrolling_args): Update.
4365 * tui/tui-layout.c (show_layout, show_data): Update.
4366 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4367 (tui_add_to_source_windows): Don't declare.
4368 * tui/tui-data.c (source_windows, tui_source_windows)
4369 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4370
4371 2019-08-15 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4374 Rename from reset.
4375 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4376 * tui/tui-layout.c (show_source_disasm_command, show_data):
4377 Update.
4378 (tui_gen_win_info::resize): Rename.
4379 (show_source_or_disasm_and_command): Update.
4380 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4381 reset.
4382
4383 2019-08-15 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4386 * tui/tui-interp.c (tui_interp::init): Don't call
4387 tui_initialize_static_data.
4388 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4389
4390 2019-08-15 Tom Tromey <tom@tromey.com>
4391
4392 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4393 examine tui_win_list.
4394
4395 2019-08-15 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4398 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4399 tui_clear_source_content.
4400 (tui_clear_source_content): Remove.
4401 (tui_source_window_base::do_erase_source_content): Hoist call to
4402 content.clear().
4403 * tui/tui-stack.c (tui_show_frame_info): Don't call
4404 tui_clear_source_content.
4405
4406 2019-08-15 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.h (struct tui_source_window_base)
4409 <do_erase_source_content>: New method.
4410 <erase_source_content>: New method.
4411 (tui_erase_source_content): Don't declare.
4412 * tui/tui-winsource.c (tui_clear_source_content): Update.
4413 (tui_source_window_base::do_erase_source_content): Rename from
4414 tui_erase_source_content.
4415 (tui_source_window_base::show_source_content): Update.
4416 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4417 * tui/tui-source.h (struct tui_source_window)
4418 <erase_source_content>: New method.
4419 * tui/tui-disasm.h (struct tui_disasm_window)
4420 <erase_source_content>: New method.
4421
4422 2019-08-15 Tom Tromey <tom@tromey.com>
4423
4424 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4425 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4426 constructor.
4427 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4428 * tui/tui-source.c (tui_set_source_content): Update.
4429 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4430
4431 2019-08-15 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4434 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4435 tui-source.c.
4436 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4437 Declare.
4438 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4439 method.
4440 (tui_source_window::maybe_update): Update.
4441
4442 2019-08-15 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4445 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4446 tui-disasm.c.
4447 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4448 Declare.
4449 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4450 method.
4451 (tui_disasm_window::maybe_update): Update.
4452
4453 2019-08-15 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-winsource.h (struct tui_source_window_base)
4456 <maybe_update>: Declare.
4457 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4458 method.
4459 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4460 Declare.
4461 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4462 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4463 Declare.
4464 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4465
4466 2019-08-15 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4469
4470 2019-08-15 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-wingeneral.c: Include tui-stack.h.
4473 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4474 (struct tui_locator_window): Move from tui-data.h.
4475 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4476 (tui_initialize_static_data): Move from tui-data.c.
4477 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4478 (struct tui_locator_window): Move to tui-stack.c.
4479 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4480 (tui_initialize_static_data): Move to tui-stack.c.
4481
4482 2019-08-15 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-layout.c (show_source_disasm_command)
4485 (show_source_or_disasm_and_command): Use make_visible method, not
4486 tui_make_window.
4487 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4488 Remove.
4489
4490 2019-08-15 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-wingeneral.h (tui_make_window): Update.
4493 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4494 parameter.
4495 (tui_gen_win_info::make_visible): Update.
4496 * tui/tui-regs.c (tui_data_window::display_registers_from):
4497 Update.
4498 * tui/tui-layout.c (show_source_disasm_command)
4499 (show_source_or_disasm_and_command): Update.
4500 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4501 (enum tui_box): Remove.
4502 (struct tui_win_info) <can_box>: New method.
4503 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4504 method.
4505
4506 2019-08-15 Tom de Vries <tdevries@suse.de>
4507
4508 * linux-nat-trad.c: Include gdbarch.h.
4509
4510 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4511
4512 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4513 register sizes.
4514
4515 2019-08-14 Tom Tromey <tromey@adacore.com>
4516
4517 * darwin-nat.c: Include gdbarch.h.
4518 * darwin-nat-info.c: Include gdbarch.h.
4519
4520 2019-08-13 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4523 Remove.
4524 * tui/tui-data.c (tui_initialize_static_data): Update.
4525
4526 2019-08-13 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.h (struct tui_exec_info_window)
4529 <~tui_exec_info_window, maybe_allocate_content, get_content,
4530 m_content>: Remove.
4531 (struct tui_source_window_base) <set_exec_info_content,
4532 show_exec_info_content>: Don't declare.
4533 * tui/tui-winsource.c
4534 (tui_exec_info_window::maybe_allocate_content): Remove.
4535 (tui_source_window_base::update_exec_info): Rename from
4536 set_exec_info_content.
4537 (tui_source_window_base::show_exec_info_content)
4538 (tui_source_window_base::update_exec_info): Remove.
4539
4540 2019-08-13 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4543 declare.
4544 * tui/tui-winsource.c (tui_update_source_window_as_is)
4545 (tui_update_source_windows_with_addr, tui_erase_source_content):
4546 Update.
4547 (tui_clear_exec_info_content): Remove.
4548
4549 2019-08-13 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4552 declare.
4553 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4554 call tui_erase_exec_info_content.
4555 (tui_clear_exec_info_content): Rename from
4556 tui_erase_exec_info_content.
4557 (tui_clear_exec_info_content): Delete.
4558
4559 2019-08-13 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-winsource.h (struct tui_source_window_base)
4562 <show_exec_info_content>: Declare.
4563 (tui_show_exec_info_content): Don't declare.
4564 * tui/tui-winsource.c
4565 (tui_source_window_base::show_exec_info_content): Rename from
4566 tui_show_exec_info_content.
4567 (tui_source_window_base::update_exec_info): Update.
4568
4569 2019-08-13 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4572 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4573 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4574 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4575 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4576 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4577 ... here.
4578
4579 2019-08-13 Tom Tromey <tom@tromey.com>
4580
4581 * tui/tui-winsource.h (struct tui_source_window_base)
4582 <update_exec_info>: Declare.
4583 (tui_update_exec_info): Don't declare.
4584 * tui/tui-winsource.c (tui_update_source_window_as_is)
4585 (tui_source_window_base::refresh_all)
4586 (tui_update_all_breakpoint_info): Update.
4587 (tui_source_window_base::update_exec_info): Rename from
4588 tui_update_exec_info.
4589 * tui/tui-stack.c (tui_show_frame_info): Update.
4590
4591 2019-08-13 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-winsource.h (struct tui_source_window_base)
4594 <set_exec_info_content>: Declare.
4595 (tui_set_exec_info_content): Don't declare.
4596 * tui/tui-winsource.c
4597 (tui_source_window_base::set_exec_info_content): Rename from
4598 tui_set_exec_info_content.
4599 (tui_update_exec_info): Update.
4600
4601 2019-08-13 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-winsource.h (struct tui_source_window_base)
4604 <show_source_content>: Declare.
4605 (tui_show_source_content): Don't declare.
4606 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4607 (tui_source_window_base::show_source_content): Rename from
4608 tui_show_source_content.
4609 (tui_source_window_base::refresh_all): Update.
4610 * tui/tui-layout.c (show_source_disasm_command)
4611 (show_source_or_disasm_and_command): Update.
4612
4613 2019-08-13 Tom Tromey <tom@tromey.com>
4614
4615 * tui/tui-winsource.c (tui_erase_source_content)
4616 (tui_show_source_content, tui_source_window_base::refresh_all):
4617 Update.
4618 * tui/tui-wingeneral.h
4619 (tui_check_and_display_highlight_if_needed): Don't declare.
4620 * tui/tui-wingeneral.c
4621 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4622 check_and_display_highlight_if_needed.
4623 * tui/tui-win.c (tui_rehighlight_all)
4624 (tui_win_info::make_visible_with_new_height): Update.
4625 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4626 (tui_data_window::erase_data_content)
4627 (tui_data_window::display_all_data): Update.
4628 * tui/tui-data.h (struct tui_win_info)
4629 <check_and_display_highlight_if_needed>: Declare.
4630
4631 2019-08-13 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-win.c (tui_resize_all): Call
4634 tui_delete_invisible_windows.
4635 * tui/tui-layout.c (show_layout): Call
4636 tui_delete_invisible_windows.
4637 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4638 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4639
4640 2019-08-13 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4643 tui_add_win_to_layout.
4644
4645 2019-08-13 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4648 * tui/tui-layout.c (tui_default_win_height): Now static.
4649
4650 2019-08-13 Tom Tromey <tom@tromey.com>
4651
4652 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4653 single switch.
4654 (show_source_disasm_command, show_source_or_disasm_and_command):
4655 Don't check current layout.
4656
4657 2019-08-13 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-wingeneral.c (make_all_visible): Remove.
4660 (tui_make_all_invisible): Simplify.
4661 * tui/tui-layout.c (tui_make_all_invisible): Move from
4662 tui-wingeneral.c; simplify.
4663 (show_layout): Hoist call to tui_make_all_invisible.
4664 (show_data): Don't call tui_make_all_invisible.
4665
4666 2019-08-13 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4669 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4670
4671 2019-08-13 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4674 tui-data.c.
4675 (show_source_disasm_command, show_data)
4676 (show_source_or_disasm_and_command): Don't use
4677 tui_set_current_layout_to.
4678 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4679 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4680 tui-layout.c.
4681 (tui_set_current_layout_to): Remove.
4682
4683 2019-08-13 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-layout.c (tui_set_layout): Update.
4686 * tui/tui-data.h (struct tui_layout_def): Remove.
4687 (tui_layout_def): Don't declare.
4688 * tui/tui-data.c (layout_def): Remove.
4689 (tui_layout_def): Remove.
4690
4691 2019-08-13 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-winsource.h (struct tui_source_window_base)
4694 <clear_detail>: No longer "override".
4695 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4696 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4697 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4698 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4699 Remove.
4700 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4701
4702 2019-08-13 Tom Tromey <tromey@adacore.com>
4703
4704 * tracepoint.c: Don't include readline.h or history.h.
4705
4706 2019-08-12 Tom Tromey <tom@tromey.com>
4707
4708 * configure: Rebuild.
4709 * configure.ac: Check for readline 7.
4710 * NEWS: Mention readline 7 requirement.
4711 * README: Update.
4712
4713 2019-08-12 Tom Tromey <tom@tromey.com>
4714
4715 * mingw-hdep.c (gdb_select): Remove readline hack.
4716
4717 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4718
4719 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4720 when the function fails.
4721
4722 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4723
4724 * s390-tdep.c (s390_type_align): New function.
4725 (s390_gdbarch_init): Set it as type_align gdbarch method.
4726
4727 2019-08-09 Tom de Vries <tdevries@suse.de>
4728
4729 PR gdb/24591
4730 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4731 pc_low with relocation offset.
4732
4733 2019-08-07 Tom Tromey <tromey@adacore.com>
4734
4735 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4736 (print_frame_args): Update.
4737 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4738 Update.
4739 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4740 * frame.h (struct frame_arg): Add initializers.
4741 <error>: Now a unique_xmalloc_ptr.
4742
4743 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4744
4745 * NEWS: Expand the Pointer Authentication entry.
4746 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4747 (aarch64_frame_unmask_lr): ... to this.
4748 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4749 Call aarch64_frame_unmask_lr.
4750 * frame.c (struct frame_info): Add "masked" variable.
4751 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4752 (fprint_frame): Check for masked pc.
4753 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4754 declarations.
4755 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4756 * stack.c (print_frame): Check for masked pc.
4757
4758 2019-08-06 Tom Tromey <tom@tromey.com>
4759
4760 * stabsread.c (patch_block_stabs, read_one_struct_field)
4761 (read_enum_type): Use obstack_strndup.
4762 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4763 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4764 * dwarf2read.c (guess_full_die_structure_name)
4765 (anonymous_struct_prefix): Use obstack_strndup.
4766 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4767 * c-exp.y (yylex): Use obstack_strndup.
4768 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4769 (write_var_or_type): Use obstack_strndup.
4770
4771 2019-08-06 Tom Tromey <tom@tromey.com>
4772
4773 * symfile.c (reread_symbols): Use obstack_strdup.
4774 * stabsread.c (read_type): Use obstack_strdup.
4775 * gdb_obstack.h (obstack_strdup): New overload.
4776 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4777 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4778 (dwarf2_canonicalize_name): Use obstack_strdup.
4779 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4780 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4781 Use obstack_strdup.
4782
4783 2019-08-06 Tom Tromey <tom@tromey.com>
4784
4785 * gdb_obstack.h (obstack_strdup): Define.
4786 * gdb_obstack.c (obstack_strdup): Don't define.
4787
4788 2019-08-06 Tom Tromey <tom@tromey.com>
4789
4790 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4791 obstack_strdup.
4792 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4793 obstack_strdup.
4794 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4795 * stabsread.c (common_block_start): Use obstack_strdup.
4796 * objfiles.c (set_objfile_main_name, objfile): Use
4797 obstack_strdup.
4798 * namespace.c (add_using_directive): Use obstack_strdup.
4799 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4800 * jit.c (finalize_symtab): Use obstack_strdup.
4801 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4802 (guess_partial_die_structure_name, partial_die_info::fixup)
4803 (dwarf2_name): Use obstack_strdup.
4804 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4805 obstack_strdup.
4806 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4807 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4808 obstack_strdup.
4809 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4810
4811 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4812
4813 * unittests/help-doc-selftests.c: New file.
4814 * Makefile.in: Add the new file.
4815
4816 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4817
4818 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4819 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4820 the full first line, except when FOR_VALUE_PREFIX. In this case,
4821 the trailing '.' is not output, and the first character is uppercased.
4822 (print_help_for_command): Update call to print_doc_line.
4823 (print_doc_of_command): Likewise.
4824 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4825 * cli/cli-option.c (append_indented_doc): Do not append newline.
4826 (build_help_option): Append newline after first appended_indented_doc
4827 only if a second call is done.
4828 (build_help): Append 2 new lines before each option, except the first
4829 one.
4830 * compile/compile.c (_initialize_compile): Add new lines after
4831 %OPTIONS%, when not at the end of the help.
4832 Change help doc or code
4833 producing the help doc to respect the invariants.
4834 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4835 Also removed the new line after 'Options:', as all other commands
4836 do not put an empty line between 'Options:' and the first option.
4837 * printcmd.c (_initialize_printcmd): Likewise.
4838 * stack.c (_initialize_stack): Likewise.
4839 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4840 incorrectly telling COMMAND is optional.
4841 * ada-lang.c (_initialize_ada_language): Change help doc or code
4842 producing the help doc to respect the invariants.
4843 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4844 * breakpoint.c (_initialize_breakpoint): Likewise.
4845 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4846 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4847 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4848 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4849 _initialize_cli_style): Likewise.
4850 * corelow.c (core_target_info): Likewise.
4851 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4852 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4853 * filesystem.c (_initialize_filesystem): Likewise.
4854 * frame.c (_initialize_frame): Likewise.
4855 * gnu-nat.c (add_task_commands): Likewise.
4856 * infcall.c (_initialize_infcall): Likewise.
4857 * infcmd.c (_initialize_infcmd): Likewise.
4858 * interps.c (_initialize_interpreter): Likewise.
4859 * language.c (_initialize_language): Likewise.
4860 * linux-fork.c (_initialize_linux_fork): Likewise.
4861 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4862 * maint.c (_initialize_maint_cmds): Likewise.
4863 * memattr.c (_initialize_mem): Likewise.
4864 * printcmd.c (_initialize_printcmd): Likewise.
4865 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4866 _RegEx): Likewise.
4867 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4868 * record-btrace.c (_initialize_record_btrace): Likewise.
4869 * record-full.c (_initialize_record_full): Likewise.
4870 * record.c (_initialize_record): Likewise.
4871 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4872 * regcache.c (_initialize_regcache): Likewise.
4873 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4874 _initialize_remote): Likewise.
4875 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4876 * serial.c (_initialize_serial): Likewise.
4877 * skip.c (_initialize_step_skip): Likewise.
4878 * source.c (_initialize_source): Likewise.
4879 * stack.c (_initialize_stack): Likewise.
4880 * symfile.c (_initialize_symfile): Likewise.
4881 * symtab.c (_initialize_symtab): Likewise.
4882 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4883 * top.c (init_main): Likewise.
4884 * tracefile-tfile.c (tfile_target_info): Likewise.
4885 * tracepoint.c (_initialize_tracepoint): Likewise.
4886 * tui/tui-win.c (_initialize_tui_win): Likewise.
4887 * utils.c (add_internal_problem_command): Likewise.
4888 * valprint.c (value_print_option_defs): Likewise.
4889
4890 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4891
4892 PR build/24886
4893 * configure.ac: Drop enable-libmcheck support.
4894 * configure, config.in: Rebuild.
4895 * libmcheck.m4: Remove.
4896 * acinclude.m4: Don't include it.
4897 * Makefile.in: Don't distribute it.
4898 * top.c (print_gdb_configuration): Don't mention it.
4899
4900 2019-08-06 Tom Tromey <tom@tromey.com>
4901
4902 * utils.c (set_output_style): Sometimes pass stream to
4903 emit_style_escape.
4904 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4905 * record-btrace.c (btrace_insn_history): Update.
4906 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4907 method.
4908 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4909 Update initializers.
4910 <m_uiout>: New field.
4911 <m_di>: Move lower.
4912 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4913 Remove "uiout" parameter.
4914 (dump_insns): Update.
4915 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4916 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4917
4918 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4919
4920 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4921 (error_in_psymtab_expansion): Likewise.
4922 (lookup_symbol_via_quick_fns): Likewise.
4923 (basic_lookup_transparent_type_quick): Likewise.
4924 (basic_lookup_transparent_type_1): Likewise.
4925
4926 2019-08-06 Tom Tromey <tromey@adacore.com>
4927
4928 * source.c (last_source_error): Now bool.
4929 (print_source_lines_base): Make "noprint" bool. Only open
4930 source file when last_source_visited changes.
4931
4932 2019-08-06 Tom Tromey <tromey@adacore.com>
4933
4934 * annotate.c (annotate_source_line): Use g_source_cache.
4935 * source-cache.c (source_cache::get_plain_source_lines): Change
4936 parameters. Populate m_offset_cache.
4937 (source_cache::ensure): New method.
4938 (source_cache::get_line_charpos): New method.
4939 (extract_lines): Move lower. Change parameters.
4940 (source_cache::get_source_lines): Move lower.
4941 * source-cache.h (class source_cache): Update comment.
4942 <get_line_charpos>: New method.
4943 <get_source_lines>: Update comment.
4944 <clear>: Clear m_offset_cache.
4945 <get_plain_source_lines>: Change parameters.
4946 <ensure>: New method
4947 <m_offset_cache>: New member.
4948 * source.c (forget_cached_source_info_for_objfile): Update.
4949 (info_source_command): Use g_source_cache.
4950 (find_source_lines, open_source_file_with_line_charpos): Remove.
4951 (print_source_lines_base, search_command_helper): Use g_source_cache.
4952 * source.h (open_source_file_with_line_charpos): Don't declare.
4953 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4954 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4955 Use g_source_cache.
4956
4957 2019-08-06 Tom Tromey <tromey@adacore.com>
4958
4959 * source-cache.c (source_cache::get_plain_source_lines):
4960 Remove "first_line" and "last_line" parameters.
4961 (source_cache::get_source_lines): Cache plain text.
4962 * source-cache.h (class source_cache)
4963 <get_plain_source_lines>: Update.
4964
4965 2019-08-06 Tom Tromey <tromey@adacore.com>
4966
4967 * source-cache.c (extract_lines): No longer a method.
4968 Changed type of parameter. Include final newline.
4969 (selftests::extract_lines_test): New function.
4970 (_initialize_source_cache): Likewise.
4971 * source-cache.h (class source_cache)
4972 <extract_lines>: Don't declare.
4973
4974 2019-08-06 Tom Tromey <tromey@adacore.com>
4975
4976 * breakpoint.c (init_breakpoint_sal): Update.
4977 (breakpoint): Update.
4978 * breakpoint.h (struct breakpoint) <filter>: Now a
4979 unique_xmalloc_ptr.
4980
4981 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4982
4983 * NEWS: Mention dictionary access on blocks.
4984 * python/py-block.c (blpy_getitem): New function.
4985 (block_object_as_mapping): New struct.
4986 (block_object_type): Use new struct for tp_as_mapping field.
4987
4988 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4989
4990 * objfiles.h (objfile): Add a comment describing partial symbols.
4991
4992 2019-08-05 Tom Tromey <tromey@adacore.com>
4993
4994 * compile/compile.c (_initialize_compile): Use _(), not N_().
4995 * thread.c (_initialize_thread): Use _(), not N_().
4996 * stack.c (_initialize_stack): Use _(), not N_().
4997 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4998
4999 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5000
5001 * dwarf2read.c (struct dw2_symtab_iterator):
5002 <want_specific_block>: Remove.
5003 <block_index>: Change type to gdb::optional.
5004 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5005 change type of BLOCK_INDEX parameter to gdb::optional.
5006 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5007 (dw2_lookup_symbol): Don't pass argument for
5008 WANT_SPECIFIC_BLOCK.
5009 (dw2_expand_symtabs_for_function): Don't pass argument for
5010 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5011 (class dw2_debug_names_iterator)
5012 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5013 parameter, change BLOCK_INDEX type to gdb::optional.
5014 <m_want_specific_block>: Remove.
5015 <m_block_index>: Change type to gdb::optional.
5016 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5017 gdb::optional. Re-write in function of gdb::optional.
5018 (dw2_debug_names_lookup_symbol): Don't pass argument for
5019 WANT_SPECIFIC_BLOCK.
5020 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5021 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5022 BLOCK_INDEX.
5023
5024 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * NEWS: Mention changes to "info sources" command.
5027
5028 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5029
5030 * symtab.c (filename_partial_match_opts): New struct type.
5031 (struct output_source_filename_data): New members
5032 regexp, c_regexp, partial_match.
5033 (output_source_filename): Use new members to decide to print file.
5034 (info_sources_option_defs): New variable.
5035 (make_info_sources_options_def_group, print_info_sources_header,
5036 info_sources_command_completer):
5037 New functions.
5038 (info_sources_command): Read new optional arguments.
5039 (_initialize_symtab): Update info sources help.
5040
5041 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5042
5043 * ada-lang.c (exception_support_info_v0): Renamed from...
5044 (default_exception_support_info): ... this. Create new
5045 definition for v1.
5046 (ada_has_this_exception_support): Look up catch_handlers_sym.
5047 (ada_exception_support_info_sniffer): Try v0 after default.
5048
5049 2019-08-01 Tom Tromey <tromey@adacore.com>
5050
5051 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5052 gdbarch.h.
5053
5054 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5055
5056 * s12z-tdep.c: Fix include path for s12z-opc.h.
5057
5058 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5059
5060 * NEWS: Require GNU make 3.82.
5061
5062 2019-07-16 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5065 declare.
5066
5067 2019-07-30 Tom Tromey <tromey@adacore.com>
5068
5069 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5070
5071 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5072
5073 * printcmd.c (print_address_symbolic): Print negative offsets.
5074 (build_address_symbolic): Force signed arithmetic when computing
5075 offset.
5076
5077 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5078
5079 PR/24474: Add a function to lookup static variables.
5080 * NEWS: Mention this new function.
5081 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5082 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5083 * python/python.c (python_GdbMethods): Add new function.
5084
5085 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5086
5087 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5088 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5089 (objfpy_lookup_static_symbol): New function.
5090 (objfile_object_methods): Add new functions.
5091
5092 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5093
5094 * NEWS: Mention 'set|show print frame-info'. Mention new
5095 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5096 backtrace argument. Mention that python frame filtering code
5097 is now consistent with what 'backtrace' command prints.
5098
5099 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5100
5101 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5102 comments.
5103 (print_frame_info_auto, print_frame_info_source_line,
5104 print_frame_info_location, print_frame_info_source_and_location,
5105 print_frame_info_location_and_address, print_frame_info_short_location):
5106 New declarations.
5107 (struct frame_print_options): New member print_frame_info.
5108 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5109 * stack.h (get_user_print_what_frame_info): New declaration.
5110 (frame_show_address): New declaration.
5111 * stack.c (print_frame_arguments_choices): New value 'presence'.
5112 (print_frame_info_auto, print_frame_info_source_line,
5113 print_frame_info_location, print_frame_info_source_and_location,
5114 print_frame_info_location_and_address, print_frame_info_short_location,
5115 print_frame_info_choices, print_frame_info_print_what): New definitions.
5116 (print_frame_args): Only print dots for args if print frame-arguments
5117 is 'presence'.
5118 (frame_print_option_defs): New element for "frame-info".
5119 (get_user_print_what_frame_info): New function.
5120 (frame_show_address): Make non static. Move comment to stack.h.
5121 (print_frame_info_to_print_what): New function.
5122 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5123 to decide what to print.
5124 (backtrace_command_1): Handle the new print_frame_arguments_presence
5125 value.
5126 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5127 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5128 (py_print_frame): In non-mi mode, use LOCATION as default for
5129 print_what, similarly to frame information printed directly by
5130 backtrace command. Handle frame-info user option in non MI mode.
5131
5132 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5133
5134 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5135 Add case for debugging 32-bit target on 64-bit host. Revise
5136 comment.
5137
5138 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5139
5140 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5141 instead of find_function_entry_range_from_pc.
5142
5143 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5144
5145 * stack.c (find_frame_funname): Remove code which preferred
5146 minsym over symtab sym in "certain pathological cases".
5147
5148 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5149 parameter. Change type of "do_demangle" to bool.
5150 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5151 Pass suitable "prefer_sym_over_minsym" flag to
5152 build_address_symbolic(). Don't output "+" for negative offsets.
5153 * printcmd.c (print_address_symbolic): Update invocation of
5154 build_address_symbolic to include a "prefer_sym_over_minsym"
5155 flag.
5156 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5157 Restrict cases in which use of minimal symbol is preferred to that
5158 of a found symbol. Update comments.
5159
5160 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5161 for entry pc when entry pc is out of range for that FDE.
5162
5163 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5164
5165 PR gdb/24839:
5166 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5167 type.
5168
5169 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5170
5171 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5172 this function's Python signature.
5173
5174
5175 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5176
5177 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5178 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5179 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5180 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5181 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5182
5183
5184 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5185
5186 * h8300-tdep.c (h8300_register_name_common): New.
5187 h8300_register_name): Use h8300_register_name_common.
5188 (h8300s_register_name): Likewise.
5189 (h8300sx_register_name): Likewise.
5190 (h8300h_register_nam): New.
5191 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5192
5193
5194 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5195
5196 * arm-tdep.c (arm_skip_cmse_entry): New function.
5197 (arm_is_sgstubs_section): New function.
5198 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5199
5200 2019-07-22 Tom Tromey <tom@tromey.com>
5201
5202 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5203 Don't self-assign.
5204
5205 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5208 type_print.
5209
5210 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5213 so that GDB doesn't match any msymbols when searching in the
5214 TYPES_DOMAIN.
5215 (print_symbol_info): Print using typedef_print or type_print based
5216 on the type of the symbol. Add updated FIXME comment moved from...
5217 (_initialize_symtab): ... move and update FIXME comment to above.
5218
5219 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * NEWS: Mention adding -q option to "info types".
5222 * symtab.c (struct info_types_options): New struct.
5223 (info_types_options_defs): New variable.
5224 (make_info_types_options_def_group): New function.
5225 (info_types_command): Use gdb::option framework to parse options.
5226 (info_types_command_completer): New function.
5227 (_initialize_symtab): Extend the help text on "info types" and
5228 register command completer.
5229
5230 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5231
5232 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5233 (lookup_symbol_in_objfile): Change int to block_enum and add a
5234 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5235
5236 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5237
5238 * MAINTAINERS (Write After Approval): Add self.
5239
5240 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5241
5242 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5243 instruction to the dummy code region.
5244
5245 2019-07-19 Tom Tromey <tromey@adacore.com>
5246
5247 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5248 (ARGSUSED, PARAMS, __func__): Remove rules.
5249
5250 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5251
5252 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5253 * features/arm/arm-with-iwmmxt.c: Remove.
5254 * features/arm/arm-with-iwmmxt.xml: Remove.
5255 * features/arm/arm-with-m-fpa-layout.c: Remove.
5256 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5257 * features/arm/arm-with-m-vfp-d16.c: Remove.
5258 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5259 * features/arm/arm-with-m.c: Remove.
5260 * features/arm/arm-with-m.xml: Remove.
5261 * features/arm/arm-with-neon.c: Remove.
5262 * features/arm/arm-with-neon.xml: Remove.
5263 * features/arm/arm-with-vfpv2.c: Remove.
5264 * features/arm/arm-with-vfpv2.xml: Remove.
5265 * features/arm/arm-with-vfpv3.c: Remove.
5266 * features/arm/arm-with-vfpv3.xml: Remove.
5267
5268 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5269
5270 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5271
5272 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5273
5274 * arch/aarch32.c (aarch32_create_target_description): Create
5275 target descriptions using features.
5276 * arch/arm.c (arm_create_target_description)
5277 (arm_create_mprofile_target_description): Likewise.
5278 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5279
5280 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5281
5282 * Makefile.in: Add new files.
5283 * aarch32-tdep.c: New file.
5284 * aarch32-tdep.h: New file.
5285 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5286 Call aarch32_read_description.
5287 * arch/aarch32.c: New file.
5288 * arch/aarch32.h: New file.
5289 * arch/arm.c (arm_create_target_description)
5290 (arm_create_mprofile_target_description): New function.
5291 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5292 (arm_create_target_description)
5293 (arm_create_mprofile_target_description): New declaration.
5294 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5295 read_description functions.
5296 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5297 Likewise.
5298 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5299 * arm-tdep.c (tdesc_arm_list): New variable.
5300 (arm_register_g_packet_guesses): Call create description functions.
5301 (arm_read_description) (arm_read_mprofile_description): New
5302 function.
5303 * arm-tdep.h (arm_read_description)
5304 (arm_read_mprofile_description): Add declaration.
5305 * configure.tgt: Add new files.
5306
5307 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5308
5309 * top.c (new_ui_command): Open specified terminal just once.
5310
5311 2019-07-18 Tom Tromey <tromey@adacore.com>
5312
5313 * symtab.c (main_name): Constify return type.
5314 * symfile.c (set_initial_language): Update.
5315 * symtab.h (main_name): Constify return type.
5316
5317 2019-07-17 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-winsource.c (tui_update_source_window)
5320 (tui_update_source_window_as_is)
5321 (tui_update_source_windows_with_line): Remove return.
5322 * tui/tui-disasm.c (tui_show_disassem)
5323 (tui_show_disassem_and_update_source): Remove return.
5324 * tui/tui.c (tui_reset): Remove return.
5325 * tui/tui-wingeneral.c
5326 (tui_check_and_display_highlight_if_needed): Remove return.
5327
5328 2019-07-17 Tom Tromey <tom@tromey.com>
5329
5330 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5331
5332 2019-07-17 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-winsource.h (struct tui_exec_info_window)
5335 (struct tui_source_window_base): Move from tui-data.h.
5336 * tui/tui-winsource.c: Move many method definitions from
5337 elsewhere. Remove "structuring" comments.
5338 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5339 (tui_source_window_base::refresh_window): Move to
5340 tui-winsource.c.
5341 * tui/tui-win.c (tui_source_window_base::refresh_all)
5342 (tui_source_window_base::update_tab_width)
5343 (tui_source_window_base::set_new_height)
5344 (tui_source_window_base::do_make_visible_with_new_height): Move to
5345 tui-winsource.c.
5346 * tui/tui-source.h: Update.
5347 * tui/tui-source.c (tui_source_window_base::reset): Move to
5348 tui-winsource.c.
5349 * tui/tui-disasm.h: Update.
5350 * tui/tui-data.h (struct tui_exec_info_window): Move to
5351 tui-winsource.h.
5352 (struct tui_source_window_base): Likewise.
5353 * tui/tui-data.c (tui_source_window_base::clear_detail)
5354 (tui_source_window_base, ~tui_source_window_base): Move to
5355 tui-winsource.c.
5356
5357 2019-07-17 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui-win.c (tui_resize_all)
5360 (tui_source_window_base::update_tab_width)
5361 (tui_adjust_win_heights): Update.
5362 (tui_win_info::make_invisible_and_set_new_height): Rename from
5363 make_invisible_and_set_new_height.
5364 * tui/tui-data.h (struct tui_win_info)
5365 <make_invisible_and_set_new_height>: New method.
5366
5367 2019-07-17 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui.c: Update.
5370 * tui/tui-source.h (struct tui_source_window): Move from
5371 tui-data.h.
5372 * tui/tui-layout.c: Update.
5373 * tui/tui-disasm.c: Update.
5374 * tui/tui-data.h (struct tui_source_window): Move to
5375 tui-source.h.
5376
5377 2019-07-17 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5380 tui-data.h.
5381 * tui/tui-data.h (struct tui_disasm_window): Move to
5382 tui-disasm.h.
5383
5384 2019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-regs.h (struct tui_data_item_window): Move from
5387 tui-data.h.
5388 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5389 * tui/tui-data.h (struct tui_data_item_window): Move to
5390 tui-regs.h.
5391 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5392
5393 2019-07-17 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui.c: Update.
5396 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5397 (tui_cmd_window::max_height): Move to tui-command.c.
5398 * tui/tui-layout.c: Update.
5399 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5400 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5401 tui-command.c.
5402 * tui/tui-command.h (struct tui_cmd_window): Move from
5403 tui-data.h.
5404 * tui/tui-command.c: Remove "structuring" comments.
5405 (tui_cmd_window::clear_detail)
5406 (tui_cmd_window::do_make_visible_with_new_height)
5407 (tui_cmd_window::max_height): Move from elsewhere.
5408
5409 2019-07-17 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5412 Now static.
5413 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5414 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5415
5416 2019-07-17 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui.c: Update.
5419 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5420 tui-regs.c.
5421 * tui/tui-windata.h: Remove file.
5422 * tui/tui-windata.c: Remove file.
5423 * tui/tui-win.c (tui_data_window::set_new_height)
5424 (tui_data_window::do_make_visible_with_new_height): Move to
5425 tui-regs.c.
5426 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5427 * tui/tui-regs.c: Remove "structuring" comments.
5428 (tui_data_window::first_data_item_displayed)
5429 (tui_data_window::delete_data_content_windows)
5430 (tui_data_window::erase_data_content)
5431 (tui_data_window::display_all_data)
5432 (tui_data_window::refresh_all)
5433 (tui_data_window::do_scroll_vertical)
5434 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5435 (tui_data_window::do_make_visible_with_new_height)
5436 (tui_data_window::refresh_window): Move from elsewhere.
5437 (_initialize_tui_regs): Move to end of file.
5438 * tui/tui-layout.c: Update.
5439 * tui/tui-hooks.c: Update.
5440 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5441 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5442 tui-regs.c.
5443 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5444
5445 2019-07-17 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5448 seen.
5449
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-win.c (tui_source_window_base::set_new_height)
5453 (tui_source_window_base::do_make_visible_with_new_height): Use
5454 m_has_locator field directly.
5455 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5456 method.
5457 (struct tui_source_window_base) <has_locator>: Likewise.
5458
5459 2019-07-17 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5462 Don't declare.
5463 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5464 Remove.
5465 * tui/tui-win.c (tui_source_window_base::set_new_height)
5466 (tui_source_window_base::set_new_height)
5467 (make_invisible_and_set_new_height)
5468 (tui_source_window_base::do_make_visible_with_new_height)
5469 (tui_source_window_base::do_make_visible_with_new_height):
5470 Update.
5471 * tui/tui-layout.c (show_source_disasm_command, show_data)
5472 (show_source_or_disasm_and_command): Update.
5473 * tui/tui-layout.c (show_layout): Update.
5474
5475 2019-07-17 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-layout.c (make_data_window): Remove.
5478 (show_data): Unify creation and re-initialization cases.
5479
5480 2019-07-17 Tom Tromey <tom@tromey.com>
5481
5482 * tui/tui-layout.c (make_source_window, make_disasm_window):
5483 Remove.
5484 (show_data): Unify creation and re-initialization cases.
5485
5486 2019-07-17 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-layout.c (make_command_window): Remove.
5489 (show_source_disasm_command, show_source_or_disasm_and_command):
5490 Unify creation and re-initialization cases.
5491
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5495 creation and re-initialization cases.
5496
5497 2019-07-17 Tom Tromey <tom@tromey.com>
5498
5499 * tui/tui-regs.c (tui_get_register): Return void.
5500
5501 2019-07-17 Tom Tromey <tom@tromey.com>
5502
5503 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5504 Simplify.
5505
5506 2019-07-17 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5509 resetting.
5510
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5514 * tui/tui-regs.c (tui_reg_layout): New function.
5515 (tui_show_registers, tui_reg_command): Use it.
5516 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5517 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5518 parameters.
5519 (tui_layout_command): Remove.
5520
5521 2019-07-17 Tom Tromey <tom@tromey.com>
5522
5523 * tui/tui-layout.h (tui/tui-layout): Return void.
5524 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5525
5526 2019-07-17 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-layout.c (show_source_disasm_command, show_data):
5529 Update.
5530 (reset_locator): Remove.
5531 (show_source_or_disasm_and_command): Update.
5532
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-source.c (tui_source_window_base::reset): Remove
5536 win_type parameter.
5537 * tui/tui-layout.c (make_command_window, make_source_window)
5538 (make_disasm_window, make_data_window)
5539 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5540 (reset_locator, show_source_or_disasm_and_command): Update.
5541 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5542 win_type parameter.
5543 (struct tui_source_window_base) <reset>: Likewise.
5544
5545 2019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-layout.c (show_source_disasm_command): Use
5548 reset_locator.
5549 (reset_locator): New function.
5550 (init_and_make_win): Remove.
5551 (show_source_or_disasm_and_command): Use reset_locator.
5552
5553 2019-07-17 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5556 condition.
5557 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5558 Remove condition.
5559 * tui/tui-source.c (tui_source_window_base::reset): New method.
5560 * tui/tui-layout.c (make_command_window): Don't call
5561 init_and_make_win.
5562 (make_source_window, make_disasm_window): Don't call
5563 make_source_or_disasm_window.
5564 (make_data_window): Don't call init_and_make_win. Change calling
5565 convention.
5566 (show_source_disasm_command, show_data): Simplify.
5567 (make_source_or_disasm_window): Remove.
5568 (show_source_or_disasm_and_command): Simplify.
5569 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5570 (struct tui_source_window_base) <reset>: Likewise.
5571 <execution_info>: Remove initializer.
5572 * tui/tui-data.c (tui_source_window_base): Initialize
5573 execution_info.
5574
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5578 variable.
5579
5580 2019-07-17 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui.c (tui_rl_other_window): Update.
5583 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5584 superclass method first. Always iterate over regs_content.
5585 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5586 method.
5587 * tui/tui-win.c (tui_set_focus_command): Update.
5588
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-win.c (tui_set_focus_command): Rename from
5592 tui_set_focus. Call tui_enable.
5593 (tui_set_focus_command): Remove.
5594
5595 2019-07-17 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5598 refresh_window.
5599 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5600 touchwin.
5601 (tui_data_window::refresh_window): Call refresh_window on data
5602 items. Always call superclass refresh_window.
5603 (tui_win_info::refresh): Remove.
5604 (tui_source_window_base::refresh_window): Update.
5605 (tui_refresh_all): Update.
5606 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5607 refresh_window.
5608 (show_source_or_disasm_and_command): Likewise.
5609 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5610 (struct tui_source_window_base) <refresh>: Likewise.
5611
5612 2019-07-17 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-winsource.c (tui_clear_source_content)
5615 (tui_show_source_content): Update.
5616 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5617 whether content is empty.
5618 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5619 Remove.
5620
5621 2019-07-17 Tom Tromey <tom@tromey.com>
5622
5623 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5624 window's contents.
5625 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5626 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5627
5628 2019-07-17 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5631 (struct tui_data_item_window): Update.
5632
5633 2019-07-17 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5636 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5637 defines.
5638
5639 2019-07-17 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-winsource.h (tui_erase_source_content)
5642 (tui_clear_source_content): Remove "display_prompt" parameter.
5643 * tui/tui-winsource.c (tui_update_source_window_as_is)
5644 (tui_update_source_windows_with_addr): Update.
5645 (tui_clear_source_content): Remove "display_prompt" parameter.
5646 (tui_erase_source_content): Likewise. Simplify.
5647 (tui_show_source_content): Update.
5648 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5649 * tui/tui-stack.c (tui_show_frame_info): Update.
5650 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5651 Remove defines.
5652
5653 2019-07-17 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5656 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5657 parameter.
5658 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5659 parameter.
5660
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-winsource.c (tui_clear_source_content)
5664 (tui_show_source_content, tui_show_exec_info_content)
5665 (tui_clear_exec_info_content): Update.
5666 * tui/tui-stack.c (tui_show_locator_content): Update.
5667 (tui_show_frame_info): Update.
5668 * tui/tui-source.h (tui_source_window): Don't declare.
5669 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5670 from tui_source_is_displayed.
5671 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5672 Remove field.
5673 (struct tui_source_window_base) <content_in_use>: New field. Now
5674 bool.
5675 (struct tui_source_window) <showing_source_p>: New method.
5676 (TUI_SRC_WIN): Change cast.
5677 * tui/tui-data.c (tui_initialize_static_data): Update.
5678
5679 2019-07-17 Tom Tromey <tom@tromey.com>
5680
5681 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5682 location_matches_p.
5683 * tui/tui-source.c (tui_source_window::location_matches_p): New
5684 method.
5685 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5686 method.
5687 * tui/tui-data.h (struct tui_source_window_base)
5688 <location_matches_p>: New method.
5689 (struct tui_source_window, struct tui_disasm_window)
5690 <location_matches_p>: Likewise.
5691
5692 2019-07-17 Tom Tromey <tom@tromey.com>
5693
5694 * tui/tui-win.c (tui_set_win_height_command): Rename from
5695 tui_set_win_height.
5696 (tui_set_win_height_command): Remove.
5697
5698 2019-07-17 Tom Tromey <tom@tromey.com>
5699
5700 * tui/tui-source.c (tui_source_window): New constructor. Add
5701 observer.
5702 (~tui_source_window): New destructor.
5703 (tui_source_window::style_changed): New method.
5704 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5705 (tui_attach_detach_observers): Update.
5706 * tui/tui-data.h (struct tui_source_window): Make constructor not
5707 inline. Add destructor.
5708 (struct tui_source_window) <style_changed>: New method.
5709 <m_observable>: New member.
5710
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5714 * tui/tui-win.c (tui_resize_all): Fix typo.
5715
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5719 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5720 (tui_refresh_all): Remove "list" parameter. Use foreach.
5721 * tui/tui-win.c (window_name_completer): Use foreach.
5722 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5723 (update_tab_width): Likewise.
5724 * tui/tui-layout.c (show_layout): Update.
5725 * tui/tui-data.h (class tui_window_iterator): New.
5726 (struct all_tui_windows): New.
5727 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5728
5729 2019-07-17 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5732 parameter. Don't reference globals.
5733 (tui_reg_command): Update.
5734
5735 2019-07-17 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-regs.c (tui_show_registers): Simplify.
5738
5739 2019-07-17 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-regs.c (tui_show_registers): Update.
5742 (tui_show_register_group): Add win_info parameter.
5743
5744 2019-07-17 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5747 Rename from tui_display_reg_element_at_line.
5748 (tui_data_window::display_registers_from_line): Update.
5749 * tui/tui-data.h (struct tui_data_window)
5750 <display_reg_element_at_line>: New method.
5751
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-regs.h (tui_display_registers_from)
5755 (tui_display_registers_from_line): Don't declare.
5756 * tui/tui-windata.c (tui_data_window::display_all_data)
5757 (tui_data_window::refresh_all)
5758 (tui_data_window::do_scroll_vertical): Update.
5759 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5760 from tui_display_registers_from.
5761 (tui_display_reg_element_at_line): Update.
5762 (tui_data_window::display_registers_from_line): Rename from
5763 tui_display_registers_from_line.
5764 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5765 display_registers_from_line>: New methods.
5766
5767 2019-07-17 Tom Tromey <tom@tromey.com>
5768
5769 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5770 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5771 from tui_erase_data_content.
5772 (tui_data_window::display_all_data)
5773 (tui_data_window::refresh_all)
5774 (tui_data_window::do_scroll_vertical): Update.
5775 * tui/tui-regs.c (tui_show_registers): Update.
5776 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5777 New method.
5778
5779 2019-07-17 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5782 declare.
5783 * tui/tui-windata.c
5784 (tui_data_window::delete_data_content_windows): Rename from
5785 tui_delete_data_content_windows.
5786 (tui_data_window::display_all_data)
5787 (tui_data_window::do_scroll_vertical): Update.
5788 * tui/tui-data.h (struct tui_data_window)
5789 <delete_data_content_windows>: New method.
5790
5791 2019-07-17 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5794 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5795
5796 2019-07-17 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5799 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5800 from tui_display_all_data.
5801 * tui/tui-win.c
5802 (tui_data_window::do_make_visible_with_new_height): Update.
5803 * tui/tui-regs.c (tui_show_registers): Update.
5804 * tui/tui-layout.c (tui_set_layout): Update.
5805 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5806 method.
5807
5808 2019-07-17 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5811 * tui/tui-windata.c (tui_display_data_from): Remove.
5812 (tui_data_window::refresh_all): Update.
5813
5814 2019-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5817 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5818 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5819 tui_display_registers_from_line.
5820 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5821 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5822 "force_display" parameter.
5823
5824 2019-07-17 Tom Tromey <tom@tromey.com>
5825
5826 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5827 declare.
5828 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5829 Rename from tui_first_reg_element_no_inline.
5830 (tui_display_reg_element_at_line)
5831 (tui_display_registers_from_line): Update.
5832 * tui/tui-data.h (struct tui_data_window)
5833 <first_reg_element_no_inline>: New method.
5834
5835 2019-07-17 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-windata.c (tui_display_data_from)
5838 (tui_data_window::do_scroll_vertical): Update.
5839 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5840 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5841 Rename from tui_line_from_reg_element_no.
5842 (tui_display_registers_from_line): Update.
5843 * tui/tui-data.h (struct tui_data_window)
5844 <line_from_reg_element_no>: New method.
5845
5846 2019-07-17 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5849 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5850 tui_last_regs_line_no.
5851 (tui_display_reg_element_at_line)
5852 (tui_display_registers_from_line): Update.
5853 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5854 method.
5855
5856 2019-07-17 Tom Tromey <tom@tromey.com>
5857
5858 PR tui/24722:
5859 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5860 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5861 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5862 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5863 (tui_update_breakpoint_info): Likewise.
5864 * tui/tui-hooks.c (tui_event_create_breakpoint)
5865 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5866 Update.
5867
5868 2019-07-17 Tom Tromey <tom@tromey.com>
5869
5870 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5871
5872 2019-07-17 Tom Tromey <tom@tromey.com>
5873
5874 * tui/tui-winsource.c (tui_update_source_window_as_is)
5875 (tui_update_source_windows_with_addr): Update.
5876 * tui/tui-source.h (tui_set_source_content)
5877 (tui_show_symtab_source): Add "win_info" parameter.
5878 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5879 parameter.
5880 (tui_show_symtab_source): Likewise.
5881
5882 2019-07-17 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-wingeneral.c
5885 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5886
5887 2019-07-17 Tom Tromey <tom@tromey.com>
5888
5889 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5890 (struct tui_cmd_window) <can_scroll>: New method.
5891 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5892 method.
5893
5894 2019-07-17 Tom Tromey <tromey@adacore.com>
5895
5896 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5897 do_field_signed>: Rename. Change type of "value".
5898 * ui-out.c (ui_out::field_signed): Rename from field_int.
5899 Change type of "value".
5900 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5901 type of "value".
5902 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5903 do_field_int. Change type of "value".
5904 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5905 do_field_int. Change type of "value".
5906 * tracepoint.c (trace_status_mi, tfind_1)
5907 (print_one_static_tracepoint_marker): Update.
5908 * thread.c (print_thread_info_1, print_selected_thread_frame):
5909 Update.
5910 * stack.c (print_frame, print_frame_info): Update.
5911 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5912 Update.
5913 * source.c (print_source_lines_base): Update.
5914 * skip.c (info_skip_command): Update.
5915 * record-btrace.c (btrace_ui_out_decode_error)
5916 (btrace_call_history_src_line): Update.
5917 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5918 Update.
5919 * progspace.c (print_program_space): Update.
5920 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5921 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5922 do_field_int. Change type of "value".
5923 * mi/mi-out.c (mi_ui_out::do_table_begin)
5924 (mi_ui_out::do_table_header): Update.
5925 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5926 type of "value".
5927 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5928 (mi_cmd_data_list_changed_registers, output_register)
5929 (mi_cmd_data_read_memory, mi_load_progress)
5930 (mi_cmd_trace_frame_collected): Update.
5931 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5932 Update.
5933 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5934 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5935 (mi_cmd_var_list_children, varobj_update_one): Update.
5936 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5937 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5938 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5939 * inferior.c (print_inferior): Update.
5940 * gdb_bfd.c (print_one_bfd): Update.
5941 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5942 Update.
5943 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5944 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5945 do_field_int. Change type of "value".
5946 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5947 do_field_int. Change type of "value".
5948 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5949 (print_one_breakpoint_location, print_it_catch_fork)
5950 (print_one_catch_fork, print_it_catch_vfork)
5951 (print_one_catch_vfork, print_it_catch_solib)
5952 (print_it_catch_exec, print_it_ranged_breakpoint)
5953 (print_mention_watchpoint, print_mention_masked_watchpoint)
5954 (bkpt_print_it, update_static_tracepoint): Update.
5955 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5956 * break-catch-syscall.c (print_it_catch_syscall): Update.
5957 * ada-tasks.c (print_ada_task_info): Update.
5958 * ada-lang.c (print_it_exception, print_mention_exception):
5959 Update.
5960
5961 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5962
5963 PR breakpoints/24541
5964 * gdbarch.c: Regenerate.
5965 * gdbarch.h: Regenerate.
5966 * gdbarch.sh: Adjust return type and parameter types for
5967 'stap_adjust_register'.
5968 (i386_stap_adjust_register): Adjust signature and return new
5969 register name.
5970 * stap-probe.c (stap_parse_register_operand): Adjust use of
5971 'gdbarch_stap_adjust_register'.
5972
5973 2019-07-17 Tom Tromey <tromey@adacore.com>
5974
5975 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5976 declare VEC.
5977 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5978 std::vector.
5979 (struct s390_process_info): Add initializers.
5980 (s390_add_process): Use new.
5981 (s390_linux_nat_target::low_forget_process): Use delete.
5982 (s390_linux_nat_target::low_new_fork)
5983 (s390_linux_nat_target::stopped_by_watchpoint)
5984 (s390_linux_nat_target::low_prepare_to_resume)
5985 (s390_linux_nat_target::insert_watchpoint)
5986 (s390_linux_nat_target::insert_hw_breakpoint)
5987 (s390_linux_nat_target::remove_watchpoint)
5988 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5989
5990 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5991
5992 * aarch64-fbsd-nat.c: Include regcache.h.
5993 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5994 argument.
5995 (aarch64_fbsd_nat_target::fetch_registers)
5996 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5997 variable.
5998 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5999
6000 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6001
6002 * fbsd-nat.c: Include gdbarch.h.
6003
6004 2019-07-15 Tom Tromey <tromey@adacore.com>
6005
6006 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6007
6008 2019-07-15 Tom Tromey <tromey@adacore.com>
6009
6010 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6011 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6012 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6013 * cli-out.c (cli_ui_out::do_field_int): New method.
6014 * ui-out.c (ui_out::field_unsigned): New method.
6015 * symfile.c (generic_load): Use field_unsigned.
6016 (print_transfer_performance): Likewise.
6017 * record-btrace.c (ui_out_field_uint): Remove.
6018 (btrace_call_history_insn_range, btrace_call_history): Use
6019 field_unsigned.
6020 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6021 field_unsigned.
6022 * ui-out.h (class ui_out) <field_unsigned>: New method.
6023 <do_field_unsigned>: Likewise.
6024
6025 2019-07-15 Tom Tromey <tromey@adacore.com>
6026
6027 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6028 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6029 * target.c (flash_erase_command): Use field_string.
6030 * infrun.c (print_signal_received_reason): Use field_string.
6031 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6032 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6033 field_string.
6034 * ada-tasks.c (print_ada_task_info): Use field_string.
6035
6036 2019-07-15 Tom Tromey <tromey@adacore.com>
6037
6038 * target.c (flash_erase_command): Use field_core_addr.
6039 * symfile.c (generic_load): Use field_core_addr.
6040 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6041 Use field_core_addr.
6042 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6043 field_core_addr.
6044
6045 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6048 value if its desired type is smaller than a CORE_ADDR and signed.
6049
6050 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6053 of changes to field names, and use new is_reference field to
6054 decide if a property is a reference or not.
6055 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6056 field.
6057 (struct dwarf2_property_baton): Update header comment, rename
6058 'referenced_type' to 'property_type' and update comments.
6059 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6060 default property type, store in property baton, update to take
6061 accound of renamed field.
6062 (read_func_scope): Update call to attr_to_dynamic_prop.
6063 (read_array_type): Likewise.
6064 (dwarf2_per_cu_addr_sized_int_type): New function.
6065 (read_subrange_index_type): Move type finding code to
6066 dwarf2_per_cu_addr_sized_int_type.
6067 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6068 (dwarf2_per_cu_addr_type): New function.
6069 (set_die_type): Update calls to attr_to_dynamic_prop.
6070
6071 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * dwarf2read.c (read_subrange_index_type): New function.
6074 (read_subrange_type): Move code into new function and call it.
6075 * gdbtypes.c (create_range_type): Add some asserts.
6076
6077 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6080 update return statements.
6081 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6082 declaration, and update comment to match.
6083 * gdbtypes.c (resolve_dynamic_array): Update call to
6084 dwarf2_evaluate_property to match new return type.
6085
6086 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * valarith.c (value_subscripted_rvalue): Change lowerbound
6089 parameter type from int to LONGEST.
6090 * value.h (value_subscripted_rvalue): Likewise in declaration.
6091
6092 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * cli/cli-utils.c (info_print_command_completer): New function.
6095 * cli/cli-utils.h: Add 'completer.h' include, and forward
6096 declaration for 'struct cmd_list_element'.
6097 (info_print_command_completer): Declare.
6098 * stack.c (_initialize_stack): Add completer for 'info locals' and
6099 'info args'.
6100 * symtab.c (_initialize_symtab): Add completer for 'info
6101 variables' and 'info functions'.
6102 * NEWS: Mention completion for additional info commands.
6103
6104 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6105
6106 * cli/cli-utils.c (extract_info_print_args): Delete.
6107 (extract_arg_maybe_quoted): Delete.
6108 (info_print_options_defs): New variable.
6109 (make_info_print_options_def_group): New function.
6110 (extract_info_print_options): Define new function.
6111 * cli/cli-utils.h (extract_info_print_args): Delete.
6112 (struct info_print_options): New structure.
6113 (extract_info_print_options): Declare new function.
6114 * stack.c (info_locals_command): Update to use new
6115 extract_info_print_options, also add a header comment.
6116 (info_args_command): Likewise.
6117 * symtab.c (info_variables_command): Likewise.
6118 (info_functions_command): Likewise.
6119
6120 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6123 to extract string arguments.
6124 * common/common-utils.c (extract_string_maybe_quoted): New function.
6125 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6126
6127 2019-07-11 Tom Tromey <tromey@adacore.com>
6128
6129 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6130 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6131 * top.h (gdbinit): Don't declare.
6132 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6133 into...
6134 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6135 * top.c (gdb_init): Don't call init_cli_cmds.
6136 (gdbinit): Remove.
6137 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6138
6139 2019-07-11 Tom Tromey <tromey@adacore.com>
6140
6141 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6142 after it has been moved.
6143
6144 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6145
6146 * valops.c (value_must_coerce_to_target): Change return type to
6147 bool.
6148 * value.h (value_must_coerce_to_target): Likewise.
6149
6150 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * breakpoint.c (is_hardware_watchpoint): Remove
6153 forward-declaration.
6154 (is_masked_watchpoint): Change return type to bool.
6155 (is_tracepoint): Likewise.
6156 (is_breakpoint): Likewise.
6157 (is_hardware_watchpoint): Likewise.
6158 (is_watchpoint): Likewise.
6159 (is_no_memory_software_watchpoint): Likewise.
6160 (is_catchpoint): Likewise.
6161 (breakpoint_1): Make FILTER parameter's return type bool.
6162 is_masked_watchpoint): Change return type to bool.
6163 (save_breakpoints): Make FILTER parameter's return type bool.
6164 * breakpoint.h (is_breakpoint): Change return type to bool.
6165 (is_watchpoint): Likewise.
6166 (is_catchpoint): Likewise.
6167 (is_tracepoint): Likewise.
6168
6169 2019-07-10 Tom Tromey <tom@tromey.com>
6170
6171 * defs.h: Don't include gdbarch.h.
6172 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6173 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6174 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6175 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6176 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6177 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6178 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6179 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6180 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6181 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6182 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6183 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6184 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6185 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6186 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6187 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6188 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6189 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6190 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6191 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6192 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6193 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6194 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6195 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6196 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6197 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6198 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6199
6200 2019-07-10 Tom Tromey <tromey@adacore.com>
6201
6202 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6203 * breakpoint.c (init_ada_exception_breakpoint): Register as
6204 bp_catchpoint.
6205 (print_one_breakpoint_location, print_one_breakpoint): Use
6206 is_ada_exception_catchpoint.
6207 * ada-lang.c (class ada_catchpoint_location): Pass
6208 bp_loc_software_breakpoint to bp_location constructor.
6209 (is_ada_exception_catchpoint): New function.
6210
6211 2019-07-10 Tom Tromey <tromey@adacore.com>
6212
6213 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6214 VEC.
6215 (struct arm_exidx_entry): New method operator<.
6216 (struct arm_exidx_data) <section_maps>: Change type.
6217 (arm_exidx_data_free): Remove.
6218 (arm_exidx_data_key): Change type. Move lower.
6219 (arm_exidx_new_objfile): Update.
6220 (arm_compare_exidx_entries): Remove.
6221 (arm_find_exidx_entry, _initialize_arm_tdep)
6222
6223 2019-07-10 Tom Tromey <tromey@adacore.com>
6224
6225 * solib-spu.c (ocl_program_data_key): Change type.
6226 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6227 Update.
6228
6229 2019-07-10 Tom Tromey <tromey@adacore.com>
6230
6231 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6232 (struct solib_aix_inferior_data) <library_list>: Change type.
6233 (solib_aix_inferior_data_handle): Change type.
6234 (get_solib_aix_inferior_data): Update.
6235 (solib_aix_free_library_list): Remove.
6236 (library_list_start_library): Update.
6237 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6238 return type.
6239 (solib_aix_get_library_list)
6240 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6241 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6242
6243 2019-07-10 Tom Tromey <tromey@adacore.com>
6244
6245 * solib-dsbt.c (struct dsbt_info): Add initializers.
6246 (solib_dsbt_pspace_data): Change type.
6247 (dsbt_pspace_data_cleanup): Remove.
6248 (get_dsbt_info, _initialize_dsbt_solib): Update.
6249
6250 2019-07-10 Tom Tromey <tromey@adacore.com>
6251
6252 * spu-tdep.c (spu_overlay_data): Change type.
6253 (spu_get_overlay_table, spu_overlay_new_objfile)
6254 (_initialize_spu_tdep): Update.
6255
6256 2019-07-10 Tom Tromey <tromey@adacore.com>
6257
6258 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6259 destructor.
6260 (dbx_objfile_data_key): Change type and declare later.
6261 (DBX_SYMFILE_INFO): Rewrite.
6262 * dbxread.c (dbx_objfile_data_key): Change type.
6263 (dbx_symfile_init): Update.
6264 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6265 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6266 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6267
6268 2019-07-10 Tom Tromey <tromey@adacore.com>
6269
6270 * jit.c (jit_program_space_key): Change type. Move lower.
6271 (get_jit_program_space_data): Update.
6272 (jit_program_space_data_cleanup): Remove.
6273 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6274 Update.
6275 (struct jit_program_space_data): Add initializers.
6276
6277 2019-07-10 Tom Tromey <tromey@adacore.com>
6278
6279 * solib-darwin.c (struct darwin_info): Add initializers.
6280 (solib_darwin_pspace_data): Change type.
6281 (darwin_pspace_data_cleanup): Remove.
6282 (get_darwin_info, _initialize_darwin_solib): Update.
6283
6284 2019-07-10 Tom Tromey <tromey@adacore.com>
6285
6286 * remote-sim.c (struct sim_inferior_data): Add initializers,
6287 constructor, and destructor.
6288 (sim_inferior_data_key): Change type. Move lower.
6289 (check_for_duplicate_sim_descriptor): Update.
6290 (get_sim_inferior_data): Use new. Update.
6291 (~sim_inferior_data_cleanup): Rename from
6292 sim_inferior_data_cleanup. Simplify.
6293 (gdbsim_close_inferior, simulator_command)
6294 (sim_command_completer, _initialize_remote_sim): Update.
6295 (next_pid, INITIAL_PID): Move earlier.
6296
6297 2019-07-10 Tom Tromey <tromey@adacore.com>
6298
6299 * python/python-internal.h (create_thread_object): Return
6300 gdbpy_ref.
6301 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6302 * python/py-inferior.c (struct threadlist_entry): Add
6303 constructor.
6304 <thread_obj>: Now a gdbpy_ref.
6305 (thread_to_thread_object): Update.
6306 (add_thread_object): Use new.
6307 (delete_thread_object): Use delete.
6308 (infpy_threads): Update.
6309 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6310 GIL.
6311
6312 2019-07-10 Tom Tromey <tromey@adacore.com>
6313
6314 * valops.c (value_cast): Specialize error message for Ada.
6315
6316 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6319
6320 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6323 bpstat_should_step): Return bool, adjust comments.
6324 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6325 bpstat_should_step): Likewise.
6326
6327 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6328
6329 * features/Makefile: Use feature target descriptions for Arm.
6330 * features/arm/arm-core.c: Generate new file.
6331 * features/arm/arm-fpa.c: Likewise.
6332 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6333 * features/arm/arm-m-profile.c: Likewise.
6334 * features/arm/arm-vfpv2.c: Likewise.
6335 * features/arm/arm-vfpv3.c: Likewise.
6336 * features/arm/xscale-iwmmxt.c: Likewise.
6337 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6338
6339 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6340
6341 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6342 ptrace earlier.
6343
6344 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6345
6346 * features/aarch64-pauth.c: Regenerate.
6347
6348 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6351 bool.
6352 (bpstat_what): Use false instead of 0.
6353
6354 2019-07-09 Pedro Alves <palves@redhat.com>
6355
6356 * break-catch-throw.c (is_exception_catchpoint): New.
6357 * breakpoint.c (print_one_breakpoint_location): New parameter
6358 'raw_loc'. Handle it. Use
6359 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6360 looking at the breakpoint's type.
6361 (print_one_breakpoint): If handling "maint info breakpoints", also
6362 print locations of exception catchpoints.
6363 * breakpoint.h (is_exception_catchpoint): Declare.
6364
6365 2019-07-09 Pedro Alves <palves@redhat.com>
6366
6367 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6368 "addr" field.
6369 (allocate_location_exception_catchpoint): New.
6370 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6371 (initialize_throw_catchpoint_ops): Install
6372 allocate_location_exception_catchpoint as allocate_location
6373 method.
6374 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6375 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6376 bp_loc_other.
6377 (breakpoint_address_is_meaningful): Delete.
6378 (bl_address_is_meaningful): New.
6379 (breakpoint_locations_match): Adjust comment.
6380 (bp_location_from_bp_type): New, factored out of...
6381 (bp_location::bp_location(breakpoint *)): ... this.
6382 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6383 factored out of...
6384 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6385 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6386 breakpoint_address_is_meaningful.
6387 (bp_locations_compare): Adjust comment.
6388 (update_global_location_list): Use bl_address_is_meaningful
6389 instead of breakpoint_address_is_meaningful.
6390 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6391 explicit.
6392 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6393 * python/py-breakpoint.c (bppy_get_location): No longer check
6394 whether location is null.
6395
6396 2019-07-09 Pedro Alves <palves@redhat.com>
6397
6398 PR c++/15468
6399 * breakpoint.c (print_one_breakpoint_location): Remove
6400 single-location assert.
6401
6402 2019-07-09 Tom Tromey <tom@tromey.com>
6403
6404 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6405 * configure: Rebuild.
6406 * configure.ac: Change common to gdbsupport.
6407 * gdbsupport: Rename from common.
6408 * acinclude.m4: Change common to gdbsupport.
6409 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6410 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6411 gdbsupport.
6412 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6413 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6414 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6415 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6416 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6417 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6418 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6419 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6420 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6421 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6422 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6423 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6424 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6425 coff-pe-read.c, command.h, compile/compile-c-support.c,
6426 compile/compile-c.h, compile/compile-cplus-symbols.c,
6427 compile/compile-cplus-types.c, compile/compile-cplus.h,
6428 compile/compile-loc2c.c, compile/compile.c, completer.c,
6429 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6430 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6431 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6432 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6433 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6434 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6435 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6436 features/aarch64-core.c, features/aarch64-fpu.c,
6437 features/aarch64-pauth.c, features/aarch64-sve.c,
6438 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6439 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6440 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6441 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6442 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6443 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6444 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6445 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6446 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6447 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6448 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6449 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6450 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6451 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6452 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6453 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6454 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6455 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6456 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6457 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6458 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6459 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6460 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6461 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6462 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6463 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6464 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6465 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6466 minsyms.c, mips-linux-tdep.c, namespace.h,
6467 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6468 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6469 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6470 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6471 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6472 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6473 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6474 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6475 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6476 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6477 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6478 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6479 procfs.c, producer.c, progspace.h, psymtab.h,
6480 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6481 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6482 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6483 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6484 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6485 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6486 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6487 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6488 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6489 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6490 target-memory.c, target.c, target.h, target/waitstatus.c,
6491 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6492 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6493 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6494 unittests/array-view-selftests.c,
6495 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6496 unittests/common-utils-selftests.c,
6497 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6498 unittests/format_pieces-selftests.c,
6499 unittests/function-view-selftests.c,
6500 unittests/lookup_name_info-selftests.c,
6501 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6502 unittests/mkdir-recursive-selftests.c,
6503 unittests/observable-selftests.c,
6504 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6505 unittests/parse-connection-spec-selftests.c,
6506 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6507 unittests/scoped_fd-selftests.c,
6508 unittests/scoped_mmap-selftests.c,
6509 unittests/scoped_restore-selftests.c,
6510 unittests/string_view-selftests.c, unittests/style-selftests.c,
6511 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6512 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6513 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6514 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6515 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6516 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6517
6518 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6521 bool value.
6522 (decode_digits_ordinary): Set explicit_line field in sal.
6523 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6524 symtab_and_line that was set on an explicit line number in
6525 assembler code. Do always update the recorded symtab and line if
6526 we do skip the prologue.
6527
6528 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * breakpoint.c (set_breakpoint_location_function): Remove
6531 explicit_loc parameter.
6532 (momentary_breakpoint_from_master): Update call to
6533 set_breakpoint_location_function.
6534 (add_location_to_breakpoint): Likewise.
6535
6536 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6539 required features based on default bfd type when no specific bfd
6540 is present.
6541
6542 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6543
6544 * NEWS: Mention that GDB printf and eval commands can now print
6545 C-style and Ada-style convenience var strings without
6546 calling the inferior.
6547 * printcmd.c (printf_c_string): Locally print GDB internal var
6548 instead of transiting via the inferior.
6549 (printf_wide_c_string): Likewise.
6550
6551 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6552
6553 PR breakpoints/25011
6554 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6555
6556 2019-07-04 Tom Tromey <tom@tromey.com>
6557
6558 PR tui/24724:
6559 * tui/tui-winsource.c (tui_clear_source_content): Update.
6560 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6561 (tui_update_breakpoint_info): Update.
6562 (tui_set_exec_info_content): Update.
6563 * tui/tui-source.c (tui_set_source_content_nil): Update.
6564 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6565 has_break.
6566 * tui/tui-data.h (enum tui_bp_flag): New.
6567 (tui_bp_flags): New enum flags type.
6568 (struct tui_source_element) <break_mode>: Change type. Rename
6569 from has_break.
6570 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6571 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6572 constants.
6573 * tui/tui-winsource.h: Fix comment.
6574
6575 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6576
6577 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6578 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6579 (store_fpregs_to_thread)
6580 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6581 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6582 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6583 (IWMMXT_REGS_SIZE): Add define.
6584 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6585 (fetch_vfp_regs, store_vfp_regs)
6586 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6587 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6588
6589 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6590
6591 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6592 defines.
6593 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6594 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6595 (ARM_INT_REGISTER_SIZE): ...to this.
6596 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6597 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6598 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6599 (arm_linux_collect_gregset, supply_nwfpe_register)
6600 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6601 defines.
6602 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6603 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6604 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6605 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6606 (arm_return_in_memory, arm_store_return_value)
6607 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6608 (arm_record_ld_st_multiple): Likewise.
6609 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6610 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6611
6612 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6613
6614 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6615 AARCH64_DISPLACED_MODIFIED_INSNS.
6616 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6617 (aarch64_displaced_step_copy_insn): Likewise.
6618 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6619 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6620 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6621 ARM_DISPLACED_MODIFIED_INSNS.
6622 * arm-tdep.c (arm_gdbarch_init): Likewise.
6623 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6624 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6625 (struct arm_displaced_step_closure): Use
6626 ARM_DISPLACED_MODIFIED_INSNS.
6627
6628 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6629
6630 * features/Makefile: Remove unused xml files.
6631 * features/aarch64.xml: Remove.
6632 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6633 * features/i386/amd64-avx-avx512.xml: Remove.
6634 * features/i386/amd64-avx-linux.xml: Remove.
6635 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6636 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6637 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6638 * features/i386/amd64-avx-mpx.xml: Remove.
6639 * features/i386/amd64-avx.xml: Remove.
6640 * features/i386/amd64-linux.xml: Remove.
6641 * features/i386/amd64-mpx-linux.xml: Remove.
6642 * features/i386/amd64-mpx.xml: Remove.
6643 * features/i386/amd64.xml: Remove.
6644 * features/i386/i386-avx-avx512-linux.xml: Remove.
6645 * features/i386/i386-avx-avx512.xml: Remove.
6646 * features/i386/i386-avx-linux.xml: Remove.
6647 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6648 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6649 * features/i386/i386-avx-mpx-linux.xml: Remove.
6650 * features/i386/i386-avx-mpx.xml: Remove.
6651 * features/i386/i386-avx.xml: Remove.
6652 * features/i386/i386-linux.xml: Remove.
6653 * features/i386/i386-mmx-linux.xml: Remove.
6654 * features/i386/i386-mmx.xml: Remove.
6655 * features/i386/i386-mpx-linux.xml: Remove.
6656 * features/i386/i386-mpx.xml: Remove.
6657 * features/i386/i386.xml: Remove.
6658 * features/i386/x32-avx-avx512-linux.xml: Remove.
6659 * features/i386/x32-avx-linux.xml: Remove.
6660 * features/i386/x32-linux.xml: Remove.
6661
6662 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6663
6664 * regformats/aarch64.dat: Remove.
6665 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6666 * regformats/i386/amd64-avx-linux.dat: Remove.
6667 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6668 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6669 * regformats/i386/amd64-linux.dat: Remove.
6670 * regformats/i386/amd64-mpx-linux.dat: Remove.
6671 * regformats/i386/amd64.dat: Remove.
6672 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6673 * regformats/i386/i386-avx-linux.dat: Remove.
6674 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6675 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6676 * regformats/i386/i386-linux.dat: Remove.
6677 * regformats/i386/i386-mmx-linux.dat: Remove.
6678 * regformats/i386/i386-mpx-linux.dat: Remove.
6679 * regformats/i386/i386.dat: Remove.
6680 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6681 * regformats/i386/x32-avx-linux.dat: Remove.
6682 * regformats/i386/x32-linux.dat: Remove.
6683
6684 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6685
6686 * aarch64-tdep.c: Remove xml self tests.
6687 * amd64-linux-tdep.c: Likewise.
6688 * amd64-tdep.c: Likewise.
6689 * i386-linux-tdep.c: Likewise.
6690 * i386-tdep.c: Likewise.
6691
6692 2019-07-03 Pedro Alves <palves@redhat.com>
6693
6694 PR cli/24732
6695 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6696 (pipe_cmd_option_defs): New.
6697 (make_pipe_cmd_options_def_group): New.
6698 (pipe_command): Use gdb::option::process_options.
6699 (pipe_command_completer): New function.
6700 (_initialize_cli_cmds): Install completer for "pipe" command.
6701
6702 2019-07-03 Pedro Alves <palves@redhat.com>
6703
6704 * cli/cli-option.c (union option_value) <string>: New field.
6705 (struct option_def_and_value): Add ctor, move ctor, dtor and
6706 use DISABLE_COPY_AND_ASSIGN.
6707 (option_def_and_value::clear_value): New.
6708 (parse_option, save_option_value_in_ctx, get_val_type_str)
6709 (add_setshow_cmds_for_options): Handle var_string.
6710 * cli-option.h (union option_def::var_address) <string>: New
6711 field.
6712 (struct string_option_def): New.
6713 * maint-test-options.c (struct test_options_opts): Add default
6714 ctor and use DISABLE_COPY_AND_ASSIGN.
6715 <string_opt>: New field.
6716 (test_options_opts::~test_options_opts): New.
6717 (test_options_opts::dump): Also dump "-string".
6718 (test_options_option_defs): Install "string.
6719
6720 2019-07-03 Pedro Alves <palves@redhat.com>
6721
6722 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6723 option_value with a null enumeration.
6724 (complete_options): Save the option values in the context.
6725 (save_option_value_in_ctx): New, factored out from ...
6726 (process_options): ... here.
6727 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6728 of the function.
6729 * maint-test-options.c (test_options_opts::dump): New, factored
6730 out from ...
6731 (maintenance_test_options_command_mode): ... here.
6732 (maintenance_test_options_command_completion_result): Delete.
6733 (maintenance_test_options_command_completion_text): Update
6734 comment.
6735 (maintenance_show_test_options_completion_result): Change
6736 prototype. Just print
6737 maintenance_test_options_command_completion_text.
6738 (save_completion_result): New.
6739 (maintenance_test_options_completer_mode): Pass options context to
6740 complete_options, and then save a dump.
6741 (_initialize_maint_test_options): Use add_cmd to install "maint
6742 show test-options-completion-result".
6743
6744 2019-07-03 Pedro Alves <palves@redhat.com>
6745
6746 * NEWS (New commands): Mention "with" and "maint with".
6747 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6748 (with_command, with_command_completer): New.
6749 (pipe_command): Adjust to new repeat_previous
6750 interface.
6751 (_initialize_cli_cmds): Install the "with" command and its "w"
6752 alias.
6753 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6754 declarations.
6755 * cli/cli-setshow.c (parse_cli_var_uinteger)
6756 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6757 argument strings for all var_types.
6758 (get_setshow_command_value_string): New, factored out from ...
6759 (do_show_command): ... this.
6760 * cli/cli-setshow.h: Include <string>.
6761 (get_setshow_command_value_string): Declare.
6762 * command.h (repeat_previous): Now returns const char *. Adjust
6763 comment.
6764 * maint.c: Include "cli/cli-cmds.h".
6765 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6766 (_initialize_maint_cmds): Register the "maintenance with" command.
6767 * top.c (repeat_previous): Move bits from pipe_command here:
6768 Return the saved command line, if any; error out if there's no
6769 command to relaunch.
6770
6771 2019-07-03 Pedro Alves <palves@redhat.com>
6772
6773 * NEWS (New commands): Mention "maint set/show test-settings"
6774 instead of "maint test-settings".
6775 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6776 (maintenance_test_settings_set_list): Rename to ...
6777 (maintenance_set_test_settings_list): ... this.
6778 (maintenance_test_settings_show_list): Rename to ...
6779 (maintenance_show_test_settings_list): ... this.
6780 (maintenance_test_settings_cmd): Delete.
6781 (maintenance_test_settings_set_cmd): ...
6782 (maintenance_set_test_settings_cmd): ... this.
6783 (maintenance_test_settings_show_cmd): ...
6784 (maintenance_show_test_settings_cmd): ... this.
6785 (maintenance_test_settings_show_value_cmd):
6786 (maintenance_show_test_settings_value_cmd): ... this.
6787 (_initialize_maint_test_settings): No longer install the "maint
6788 test-settings" prefix command. Rename "maint test-settings set"
6789 to "maint set test-settings", and "maint test-settings show" to
6790 "maint show test-settings". Adjust all subcommands.
6791
6792 2019-07-03 Pedro Alves <palves@redhat.com>
6793
6794 * maint-test-settings.c: Fix file's intro comment. Replace all
6795 references to "test-options" with references to "test-settings",
6796 in comments.
6797
6798 2019-07-03 Pedro Alves <palves@redhat.com>
6799
6800 * maint-test-settings.c (maintenance_test_settings_xxx)
6801 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6802 New.
6803 (maintenance_test_settings_enums): Use them.
6804 (maintenance_test_settings_enum): Default to
6805 maintenance_test_settings_xxx.
6806 (_initialize_maint_test_settings): Initialize
6807 MAINTENANCE_TEST_SETTINGS_FILENAME.
6808
6809 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * breakpoint.h (remove_breakpoints_inf): Change return type to
6812 void, move function documentation here.
6813 * breakpoint.c (remove_breakpoints_inf): Change return type to
6814 void, move function documentation to header.
6815
6816 2019-07-02 Pedro Alves <palves@redhat.com>
6817
6818 * NEWS (Completion improvements): Mention "info threads".
6819 * thread.c (struct info_threads_opts, info_threads_option_defs)
6820 (make_info_threads_options_def_group): New.
6821 (info_threads_command): Use gdb::option::process_options.
6822 (info_threads_command_completer): New.
6823 (_initialize_thread): Use gdb::option::build_help to build the
6824 help text for "info threads".
6825
6826 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6827
6828 * defs.h (generic_load): Move from here...
6829 * symfile.h (generic_load): ... to here. Rename name parameter
6830 to args.
6831 * symfile.c (generic_load): Add comment.
6832
6833 2019-07-01 Tom Tromey <tromey@adacore.com>
6834
6835 * dwarf2read.c
6836 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6837 declaration of without_params. Fix formatting.
6838
6839 2019-07-01 Tom Tromey <tromey@adacore.com>
6840
6841 * ada-exp.y (find_primitive_type): Update.
6842 * ada-lang.h (ada_lookup_symbol): Update.
6843 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6844 parameter.
6845 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6846
6847 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6848
6849 PR breakpoints/24541
6850 * gdbarch.c: Regenerate.
6851 * gdbarch.h: Regenerate.
6852 * gdbarch.sh: Add 'stap_adjust_register'.
6853 * i386-tdep.c: Include '<unordered_set>'.
6854 (i386_stap_adjust_register): New function.
6855 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6856 * stap-probe.c (stap_parse_register_operand): Call
6857 'gdbarch_stap_adjust_register'.
6858
6859 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6860
6861 PR python/24742
6862 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6863 * python/python.c (do_start_initialization): Use 'xmalloc'
6864 instead of 'PyMem_Malloc'.
6865
6866 2019-06-28 Tom Tromey <tromey@adacore.com>
6867
6868 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6869 for Ada.
6870
6871 2019-06-27 Tom Tromey <tromey@adacore.com>
6872
6873 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6874 objfile_key.
6875 (arm_find_mapping_symbol, arm_record_special_symbol)
6876 (_initialize_arm_tdep): Update.
6877 (arm_objfile_data_free): Remove.
6878
6879 2019-06-27 Tom Tromey <tromey@adacore.com>
6880
6881 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6882 to cp_print_static_field.
6883
6884 2019-06-26 Tom Tromey <tromey@adacore.com>
6885
6886 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6887 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6888 declare.
6889
6890 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6891
6892 * features/aarch64-core.c (create_feature_aarch64_core):
6893 Regenerate.
6894 * features/aarch64-core.xml: Add cpsr flags.
6895
6896 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6897
6898 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6899 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6900
6901 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6902
6903 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6904 field.
6905 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6906 use.
6907 (arm_record_special_symbol): Don't insert new symbol in sorted
6908 position, push it at the end.
6909
6910 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6911
6912 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6913 (arm_mapping_symbol_s): Remove.
6914 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6915 (arm_mapping_symbol_vec): New typedef.
6916 (struct arm_per_objfile): Add constructor.
6917 <section_maps>: Change type to
6918 std::unique_ptr<arm_mapping_symbol_vec[]>.
6919 (arm_compare_mapping_symbols): Remove.
6920 (arm_find_mapping_symbol): Adjust to section_maps type change.
6921 (arm_objfile_data_free): Call delete on arm_per_objfile.
6922 (arm_record_special_symbol): Adjust to section_maps type change.
6923 Allocate arm_per_objfile with new.
6924
6925 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6926
6927 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6928 with the command prefix.
6929
6930 2019-06-25 Tom Tromey <tom@tromey.com>
6931
6932 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6933 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6934
6935 2019-06-25 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6938 type.
6939 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6940 protected.
6941
6942 2019-06-25 Tom Tromey <tom@tromey.com>
6943
6944 * tui/tui-winsource.c
6945 (tui_source_window_base::set_is_exec_point_at): Add check against
6946 LOA_ADDRESS.
6947
6948 2019-06-25 Tom Tromey <tom@tromey.com>
6949
6950 * tui/tui-source.c (tui_set_source_content): Don't check before
6951 xfree.
6952 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6953
6954 2019-06-25 Tom Tromey <tom@tromey.com>
6955
6956 * tui/tui-winsource.h (tui_update_source_window_as_is)
6957 (tui_alloc_source_buffer, tui_line_is_displayed)
6958 (tui_addr_is_displayed): Change type of win_info.
6959 * tui/tui-winsource.c (tui_update_source_window_as_is)
6960 (tui_clear_source_content, tui_show_source_line)
6961 (tui_show_source_content, tui_source_window_base::refill)
6962 (tui_source_window_base::set_is_exec_point_at)
6963 (tui_source_window_base::set_is_exec_point_at)
6964 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6965 (tui_alloc_source_buffer, tui_line_is_displayed)
6966 (tui_addr_is_displayed): Change type of win_info. Update.
6967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6968 (tui_source_window_base::do_make_visible_with_new_height):
6969 Update.
6970 * tui/tui-source.c (tui_set_source_content)
6971 (tui_set_source_content_nil)
6972 (tui_source_window::do_scroll_vertical): Update.
6973 * tui/tui-layout.c (show_layout): Update.
6974 * tui/tui-disasm.c (tui_set_disassem_content)
6975 (tui_disasm_window::do_scroll_vertical): Update.
6976 * tui/tui-data.h (tui_win_content): Remove.
6977 (struct tui_gen_win_info) <content, content_size>: Remove.
6978 (struct tui_source_element): Add initializers and destructor.
6979 (union tui_which_element, struct tui_win_element): Remove.
6980 (struct tui_source_window_base) <content>: New field.
6981 (struct tui_data_window): Remove destructor.
6982 (tui_alloc_content, tui_free_win_content)
6983 (tui_free_all_source_wins_content): Don't declare.
6984 * tui/tui-data.c (tui_initialize_static_data): Update.
6985 (init_content_element, tui_alloc_content): Remove.
6986 (~tui_gen_win_info): Update.
6987 (~tui_data_window, tui_free_all_source_wins_content)
6988 (tui_free_win_content, free_content, free_content_elements):
6989 Remove.
6990
6991 2019-06-25 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui-winsource.h (tui_clear_source_content)
6994 (tui_erase_source_content, tui_show_source_content): Change type
6995 of win_info.
6996 * tui/tui-winsource.c (tui_clear_source_content)
6997 (tui_erase_source_content, tui_show_source_content): Change type
6998 of win_info.
6999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7000 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7001 win_info.
7002 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7003 win_info.
7004 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7005
7006 2019-06-25 Tom Tromey <tom@tromey.com>
7007
7008 * tui/tui-winsource.c (tui_clear_source_content)
7009 (tui_source_window_base::set_is_exec_point_at): Update.
7010 * tui/tui-source.c (tui_set_source_content_nil): Update.
7011 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7012 a bool.
7013 * tui/tui-data.c (init_content_element): Update.
7014
7015 2019-06-25 Tom Tromey <tom@tromey.com>
7016
7017 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7018 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7019 * tui/tui-layout.c (init_and_make_win): Update.
7020 * tui/tui.h (enum tui_win_type): Update.
7021 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7022 tui_win_is_auxillary.
7023 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7024 tui_win_is_auxillary.
7025
7026 2019-06-25 Tom Tromey <tom@tromey.com>
7027
7028 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7029 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7030 (tui_delete_data_content_windows, tui_display_all_data)
7031 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7032 Update.
7033 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7034 * tui/tui-regs.c (tui_last_regs_line_no)
7035 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7036 (tui_show_registers): Update.
7037 (tui_show_register_group): Return void. Update.
7038 (tui_display_registers_from, tui_display_reg_element_at_line)
7039 (tui_display_registers_from_line, tui_check_register_values):
7040 Update.
7041 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7042 member.
7043 (struct tui_data_window) <regs_content>: Now a std::vector.
7044 <regs_content_count>: Remove.
7045 (tui_add_content_elements, tui_free_data_content): Don't declare.
7046 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7047 (init_content_element): Remove DATA_WIN case. Add assert.
7048 (tui_add_content_elements): Remove.
7049 (tui_data_window): Update.
7050 (tui_free_data_content): Remove.
7051 (free_content_elements): Remove DATA_WIN case.
7052
7053 2019-06-25 Tom Tromey <tom@tromey.com>
7054
7055 * tui/tui-data.c (tui_data_item_window): Update.
7056 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7057 * tui/tui-windata.c (tui_display_all_data)
7058 (tui_display_data_from_line): Update.
7059 (tui_check_data_values): Remove.
7060 * tui/tui-regs.c (tui_show_register_group)
7061 (tui_display_reg_element_at_line): Update.
7062 * tui/tui-hooks.c (tui_register_changed)
7063 (tui_refresh_frame_and_register_information): Call
7064 tui_check_register_values.
7065 * tui/tui-data.h (struct tui_data_window) <data_content,
7066 data_content_count, data_type>: Remove.
7067 (enum tui_data_type): Remove.
7068
7069 * tui/tui-data.c (tui_data_window::clear_detail)
7070 (~tui_data_window): Update.
7071
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7075 declare.
7076 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7077 Rename from tui_first_data_item_displayed. Update.
7078 (tui_data_window::refresh_all)
7079 (tui_data_window::do_scroll_vertical): Update.
7080 * tui/tui-data.h (struct tui_data_window)
7081 <first_data_item_displayed>: Declare new method.
7082
7083 2019-06-25 Tom Tromey <tom@tromey.com>
7084
7085 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7086 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7087 contents...
7088 (tui_initialize_static_data): ...here.
7089
7090 2019-06-25 Tom Tromey <tom@tromey.com>
7091
7092 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7093 (tui_display_registers_from, tui_check_register_values): Update.
7094 (tui_display_register): Remove win_info parameter; update.
7095 (tui_get_register): Change type of parameters.
7096 * tui/tui-data.h (struct tui_data_element): Remove.
7097 (union tui_which_element) <data>: Remove.
7098 <data_window>: Change type.
7099 (struct tui_data_item_window): New.
7100 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7101 case. Add assert.
7102 (~tui_data_item_window): New destructor.
7103 (free_content_elements): Remove DATA_ITEM_WIN case.
7104
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7108 Remove.
7109
7110 2019-06-25 Tom Tromey <tom@tromey.com>
7111
7112 * tui/tui-data.h (struct tui_command_element): Remove.
7113 (union tui_which_element) <command>: Remove.
7114 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7115 assert.
7116 (free_content_elements): Remove CMD_WIN case.
7117
7118 2019-06-25 Tom Tromey <tom@tromey.com>
7119
7120 * tui/tui-layout.c (tui_set_layout): Update.
7121 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7122 * tui/tui-data.c (layout_def): Update.
7123
7124 2019-06-25 Tom Tromey <tom@tromey.com>
7125
7126 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7127 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7128 (tui_source_window_base::set_new_height): Update.
7129 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7130 Update.
7131 (tui_set_locator_fullname, tui_set_locator_info)
7132 (tui_show_frame_info): Update.
7133 * tui/tui-source.c (tui_set_source_content)
7134 (tui_source_is_displayed): Update.
7135 * tui/tui-layout.c (show_source_disasm_command, show_data)
7136 (show_source_or_disasm_and_command): Update.
7137 * tui/tui-disasm.c (tui_set_disassem_content)
7138 (tui_get_begin_asm_address): Update.
7139 * tui/tui-data.h (struct tui_locator_element): Remove.
7140 (union tui_which_element) <locator>: Remove.
7141 (struct tui_locator_window): New.
7142 (tui_locator_win_info_ptr): Change return type.
7143 * tui/tui-data.c (_locator): Change type.
7144 (tui_locator_win_info_ptr): Change return type.
7145 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7146 (tui_alloc_content): Add assert.
7147
7148 2019-06-25 Tom Tromey <tom@tromey.com>
7149
7150 * tui/tui-winsource.c
7151 (tui_exec_info_window::maybe_allocate_content): New method.
7152 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7153 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7154 (make_source_or_disasm_window): Add cast.
7155 * tui/tui-data.h (union tui_which_element) <simple_string>:
7156 Remove.
7157 (struct tui_source_info): New.
7158 (struct tui_source_window_base) <execution_info>: Change type.
7159 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7160 case, and add assert.
7161 (tui_alloc_content): Add assert.
7162
7163 2019-06-25 Tom Tromey <tom@tromey.com>
7164
7165 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7166 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7167 * tui/tui-data.c (tui_alloc_win_info): Remove.
7168
7169 2019-06-25 Tom Tromey <tom@tromey.com>
7170
7171 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7172 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7173 can_highlight.
7174
7175 2019-06-25 Tom Tromey <tom@tromey.com>
7176
7177 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7178 make_visible_with_new_height method.
7179 (tui_win_info::make_visible_with_new_height): New method.
7180 (tui_source_window_base::do_make_visible_with_new_height)
7181 (tui_data_window::do_make_visible_with_new_height)
7182 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7183 (make_visible_with_new_height): Remove.
7184 (tui_resize_all, tui_adjust_win_heights): Use
7185 make_visible_with_new_height method.
7186 * tui/tui-data.h (struct tui_win_info)
7187 <do_make_visible_with_new_height, make_visible_with_new_height>:
7188 New methods.
7189 (struct tui_source_window_base, struct tui_data_window)
7190 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7191 methods.
7192
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7196 method.
7197 (update_tab_width): Call update_tab_width method.
7198 * tui/tui-data.h (struct tui_win_info)
7199 (struct tui_source_window_base) <update_tab_width>: New methods.
7200
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7204 parameter.
7205 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7206 parameter.
7207 (tui_gen_win_info::make_visible): Update.
7208 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7209 parameter.
7210 * tui/tui-data.h (enum tui_box): New enum.
7211 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7212
7213 2019-06-25 Tom Tromey <tom@tromey.com>
7214
7215 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7216 init_and_make_win for EXEC_INFO_WIN.
7217 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7218 longer inline.
7219 (struct tui_win_info) <~tui_win_info>: Inline.
7220 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7221 Don't declare.
7222 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7223 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7224 Remove.
7225 (tui_initialize_static_data): Update.
7226 (~tui_gen_win_info): Handle more cleanup here.
7227 (~tui_source_window_base): Delete "execution_info".
7228 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7229
7230 2019-06-25 Tom Tromey <tom@tromey.com>
7231
7232 * tui/tui-layout.c (make_command_window): Don't set
7233 can_highlight.
7234 (show_source_disasm_command): Call the reset method.
7235 (show_data): Don't set can_highlight. Call the reset method.
7236 (tui_gen_win_info::reset): Rename from init_gen_win_info
7237 (init_and_make_win): Simplify. Return tui_gen_win_info.
7238 (show_source_or_disasm_and_command): Call the reset method.
7239 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7240 (struct tui_cmd_window): Set can_highlight.
7241
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7245 from make_visible.
7246 (tui_make_visible, tui_make_invisible): Rewrite.
7247 (tui_win_info::make_visible): Remove.
7248 (tui_source_window_base::make_visible): Update.
7249 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7250 method. Moved from...
7251 (struct tui_win_info) <make_visible>: ...here.
7252
7253 2019-06-25 Tom Tromey <tom@tromey.com>
7254
7255 * tui/tui-winsource.c
7256 (tui_source_window_base::do_scroll_horizontal): Remove direction
7257 parameter.
7258 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7259 direction parameter.
7260 * tui/tui-win.c (tui_win_info::forward_scroll)
7261 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7262 (tui_win_info::right_scroll): Update.
7263 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7264 direction parameter.
7265 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7266 direction parameter.
7267 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7268 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7269 Remove direction parameter.
7270 (struct tui_source_window_base, struct tui_source_window)
7271 (struct tui_disasm_window, struct tui_data_window)
7272 (struct tui_cmd_window): Update.
7273
7274 2019-06-25 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-winsource.h (tui_set_exec_info_content)
7277 (tui_show_exec_info_content, tui_erase_exec_info_content)
7278 (tui_clear_exec_info_content, tui_update_exec_info): Change
7279 argument to tui_source_window_base.
7280 * tui/tui-winsource.c (tui_set_exec_info_content)
7281 (tui_show_exec_info_content, tui_erase_exec_info_content)
7282 (tui_clear_exec_info_content, tui_update_exec_info): Change
7283 argument to tui_source_window_base.
7284
7285 2019-06-25 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7288 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7289
7290 2019-06-25 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7293 check.
7294
7295 2019-06-25 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7298 type to void.
7299 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7300 type to void.
7301 * tui/tui-source.c (tui_set_source_content): Update.
7302 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7303
7304 2019-06-25 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui-win.c (window_name_completer, tui_set_focus)
7307 (tui_all_windows_info): Use name method.
7308 * tui/tui-data.h (struct tui_gen_win_info)
7309 (struct tui_source_window, struct tui_disasm_window)
7310 (struct tui_data_window, struct tui_cmd_window) <name>: New
7311 method.
7312 (tui_win_name): Don't declare.
7313 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7314 (tui_win_name): Remove.
7315
7316 2019-06-25 Tom Tromey <tom@tromey.com>
7317
7318 * tui/tui-winsource.h (tui_update_source_window)
7319 (tui_update_source_window_as_is): Change parameter type.
7320 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7321 to be a tui_source_window_base.
7322 (tui_update_source_window_as_is): Likewise.
7323 * tui/tui-win.c (make_visible_with_new_height): Update.
7324
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7326
7327 * tui/tui-winsource.c (tui_erase_source_content)
7328 (tui_show_source_content, tui_show_exec_info_content)
7329 (tui_erase_exec_info_content): Use refresh_window method.
7330 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7331 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7332 from tui_refresh_win.
7333 (tui_data_window::refresh_window): New method.
7334 (tui_win_info::refresh, tui_source_window_base::refresh)
7335 (tui_refresh_all): Use refresh_window method.
7336 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7337 method.
7338 * tui/tui-regs.c (tui_display_register): Call refresh_window
7339 method.
7340 * tui/tui-layout.c (show_source_disasm_command)
7341 (show_source_or_disasm_and_command): Call refresh_window method.
7342 * tui/tui-data.h (struct tui_gen_win_info)
7343 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7344 New method.
7345
7346 2019-06-25 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui.c (tui_rl_other_window, tui_enable)
7349 (tui_is_window_visible, tui_get_command_dimension): Update.
7350 * tui/tui-winsource.c (tui_update_source_window_as_is)
7351 (tui_clear_source_content, tui_erase_source_content)
7352 (tui_show_source_line, tui_source_window_base::refill)
7353 (tui_source_window_base::do_scroll_horizontal)
7354 (tui_source_window_base::set_is_exec_point_at)
7355 (tui_update_breakpoint_info, tui_set_exec_info_content)
7356 (tui_alloc_source_buffer, tui_line_is_displayed)
7357 (tui_addr_is_displayed): Update.
7358 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7359 (tui_check_and_display_highlight_if_needed)
7360 (tui_win_info::make_visible, tui_win_info::refresh)
7361 (tui_refresh_all): Update.
7362 * tui/tui-windata.c (tui_first_data_item_displayed)
7363 (tui_delete_data_content_windows, tui_erase_data_content)
7364 (tui_display_all_data, tui_data_window::refresh_all)
7365 (tui_check_data_values): Update.
7366 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7367 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7368 (tui_win_info::backward_scroll, tui_refresh_all_win)
7369 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7370 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7371 (tui_source_window_base::set_new_height)
7372 (tui_data_window::set_new_height)
7373 (make_invisible_and_set_new_height)
7374 (make_visible_with_new_height, new_height_ok)
7375 (parse_scrolling_args): Update.
7376 * tui/tui-stack.c (tui_show_frame_info): Update.
7377 * tui/tui-source.c (tui_set_source_content)
7378 (tui_set_source_content_nil, tui_source_is_displayed)
7379 (tui_source_window::do_scroll_vertical): Update.
7380 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7381 (tui_display_registers_from, tui_display_reg_element_at_line)
7382 (tui_check_register_values, tui_reg_command): Update.
7383 * tui/tui-layout.c (tui_default_win_height)
7384 (show_source_disasm_command, show_data, init_and_make_win)
7385 (show_source_or_disasm_and_command): Update.
7386 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7387 (tui_redisplay_readline, tui_mld_flush)
7388 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7389 (tui_getc): Update.
7390 * tui/tui-disasm.c (tui_set_disassem_content)
7391 (tui_disasm_window::do_scroll_vertical): Update.
7392 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7393 Now virtual.
7394 (struct tui_win_info): Derive from tui_gen_win_info.
7395 <~tui_win_info>: Mark as override.
7396 <generic>: Remove member.
7397 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7398 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7399 (~tui_data_window, ~tui_win_info)
7400 (tui_free_all_source_wins_content): Update.
7401 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7402
7403 2019-06-25 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-layout.c (init_and_make_win): Use new.
7406 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7407 destructor, initializers.
7408 (tui_alloc_generic_win_info): Don't declare.
7409 * tui/tui-data.c (_locator): Add argument to constructor.
7410 (source_win, disasm_win): New globals.
7411 (exec_info): Remove.
7412 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7413 Update.
7414 (tui_alloc_generic_win_info): Remove.
7415 (init_content_element): Use new.
7416 (tui_win_info::tui_win_info): Update.
7417 (free_content_elements) <case DATA_WIN>: Use delete.
7418
7419 2019-06-25 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7422 * tui/tui-windata.c (tui_first_data_item_displayed)
7423 (tui_delete_data_content_windows): Update.
7424 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7425 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7426 (tui_display_registers_from, tui_check_register_values): Update.
7427 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7428 pointer.
7429 * tui/tui-data.c (init_content_element): Update. Allocate the new
7430 window.
7431 (tui_free_data_content): Update.
7432 (free_content_elements) <case DATA_WIN>: Free the window.
7433
7434 2019-06-25 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7437 Update.
7438 * tui/tui-layout.c (make_command_window)
7439 (show_source_disasm_command, show_data, init_and_make_win)
7440 (show_source_or_disasm_and_command): Update.
7441 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7442 method.
7443 <can_highight, is_highlighted>: Now bool.
7444 (tui_set_win_highlight): Don't declare.
7445 * tui/tui-data.c (tui_set_win_highlight): Remove.
7446
7447 2019-06-25 Tom Tromey <tom@tromey.com>
7448
7449 * tui/tui-wingeneral.c (make_visible): Remove check of window
7450 type.
7451
7452 2019-06-25 Tom Tromey <tom@tromey.com>
7453
7454 * tui/tui-win.c (tui_win_info::max_height)
7455 (tui_cmd_window::max_height): New methods.
7456 (new_height_ok): Call max_height.
7457 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7458 <max_height>: New method.
7459
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-win.c (tui_source_window_base::set_new_height)
7463 (tui_data_window::set_new_height): New methods.
7464 (make_invisible_and_set_new_height): Call set_new_height method.
7465 * tui/tui-data.h (struct tui_win_info)
7466 (struct tui_source_window_base, struct tui_data_window)
7467 <set_new_height>: New method.
7468
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7472 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7473 tui_refresh_data_win.
7474 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7475 method.
7476 (tui_refresh_all_win): Call the refresh_all method.
7477 (tui_set_focus): Likewise.
7478 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7479 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7480 Likewise.
7481
7482 2019-06-25 Tom Tromey <tom@tromey.com>
7483
7484 * tui/tui-winsource.h (tui_refill_source_window)
7485 (tui_set_is_exec_point_at): Don't declare.
7486 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7487 (tui_source_window_base::refill): Rename from
7488 tui_refill_source_window.
7489 (tui_source_window_base::do_scroll_horizontal): Update.
7490 (tui_source_window_base::set_is_exec_point_at): Rename from
7491 tui_set_is_exec_point_at.
7492 (tui_update_all_breakpoint_info): Update.
7493 * tui/tui-stack.c (tui_show_frame_info): Update.
7494 * tui/tui-layout.c (show_data): Add cast.
7495 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7496 * tui/tui-data.h (struct tui_source_window_base) <refill,
7497 set_is_exec_point_at>: New methods.
7498 (tui_source_windows, tui_add_to_source_windows): Update types.
7499 (tui_add_to_source_windows): Remove redundant declaration.
7500 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7501 (tui_source_windows): Change return type.
7502 (tui_clear_source_windows_detail): Update.
7503 (tui_add_to_source_windows): Change type of parameter.
7504 (tui_free_all_source_wins_content): Update.
7505
7506 2019-06-25 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui-wingeneral.c (tui_win_info::refresh)
7509 (tui_source_window_base::refresh): New methods.
7510 (tui_refresh_all): Call the refresh method.
7511 * tui/tui-data.h (struct tui_win_info)
7512 (struct tui_source_window_base) <refresh>: New method.
7513
7514 2019-06-25 Tom Tromey <tom@tromey.com>
7515
7516 * tui/tui.h (tui_is_window_visible): Return bool.
7517 * tui/tui.c (tui_is_window_visible): Return bool.
7518 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7519 (tui_make_visible, tui_make_invisible)
7520 (tui_win_info::make_visible)
7521 (tui_source_window_base::make_visible, make_all_visible)
7522 (tui_make_all_visible, tui_make_all_invisible): Update.
7523 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7524 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7525 bool.
7526 (struct tui_win_info, struct tui_source_window_base)
7527 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7528 * tui/tui-data.c (tui_init_generic_part): Update.
7529
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7533 (tui_source_window_base::make_visible): New methods.
7534 (make_all_visible): Make method call.
7535 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7536 (struct tui_source_window_base, struct tui_cmd_window): Override
7537 make_visible.
7538 (tui_win_is_source_type): Don't declare.
7539 * tui/tui-data.c (tui_win_is_source_type): Remove.
7540
7541 2019-06-25 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7544 NULL check.
7545
7546 2019-06-25 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7549 Inline constructor. Add initializers for members.
7550 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7551 constructors; now inline in class.
7552
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-regs.c (tui_show_registers): Update.
7556 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7557 bool.
7558 * tui/tui-data.c (tui_data_window::clear_detail)
7559 (tui_data_window): Update.
7560
7561 2019-06-25 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-windata.c (tui_display_all_data)
7564 (tui_display_data_from_line, tui_display_data_from)
7565 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7566 Update.
7567 * tui/tui-regs.c (tui_last_regs_line_no)
7568 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7569 (tui_show_registers, tui_show_register_group)
7570 (tui_display_registers_from, tui_display_reg_element_at_line)
7571 (tui_display_registers_from_line, tui_check_register_values)
7572 (tui_reg_next, tui_reg_prev): Update.
7573 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7574 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7575 tui_data_window.
7576 (struct tui_win_info) <detail>: Remove. Add new fields from
7577 tui_data_info.
7578 (TUI_DATA_WIN): Add cast.
7579 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7580 (~tui_data_window): Simplify.
7581
7582 2019-06-25 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-layout.c (show_source_disasm_command)
7585 (show_source_or_disasm_and_command): Update.
7586 * tui/tui-io.c (update_cmdwin_start_line)
7587 (tui_redisplay_readline): Update.
7588 * tui/tui-data.h (struct tui_command_info): Remove.
7589 (struct tui_win_info) <detail>: Remove command_info member.
7590 (struct tui_data_window) <start_line>: New member, from
7591 tui_command_info.
7592 (TUI_CMD_WIN): Add casts.
7593
7594 2019-06-25 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-winsource.c (tui_update_source_window)
7597 (tui_refill_source_window)
7598 (tui_source_window_base::do_scroll_horizontal)
7599 (tui_update_breakpoint_info, tui_set_exec_info_content)
7600 (tui_show_exec_info_content, tui_erase_exec_info_content)
7601 (tui_clear_exec_info_content): Update.
7602 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7603 Update.
7604 * tui/tui-win.c (make_invisible_and_set_new_height)
7605 (make_visible_with_new_height): Update.
7606 * tui/tui-source.c (tui_set_source_content)
7607 (tui_show_symtab_source): Update.
7608 * tui/tui-layout.c (extract_display_start_addr)
7609 (show_source_disasm_command, show_data)
7610 (make_source_or_disasm_window)
7611 (show_source_or_disasm_and_command): Update.
7612 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7613 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7614 "gdbarch".
7615 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7616 to tui_source_window_base.
7617 (struct tui_win_info) <detail>: Remove source_info member.
7618 (struct tui_source_window_base) <has_locator>: Inline.
7619 Move contents from tui_source_info; rename has_locator member to
7620 m_has_locator.
7621 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7622 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7623 header file.
7624 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7625 Simplify.
7626 (tui_free_all_source_wins_content): Cast to
7627 tui_source_window_base.
7628
7629 2019-06-25 Tom Tromey <tom@tromey.com>
7630
7631 * tui/tui-win.c (make_invisible_and_set_new_height)
7632 (make_visible_with_new_height): Call has_locator method.
7633 * tui/tui-layout.c (show_source_disasm_command, show_data)
7634 (show_source_or_disasm_and_command): Update for bool change.
7635 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7636 (tui_win_info) <has_locator>: New method.
7637 (struct tui_source_window_base) <has_locator>: New method.
7638 (tui_win_has_locator): Don't declare.
7639 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7640 from tui_win_has_locator.
7641 (tui_source_window_base): Use false, not FALSE.
7642
7643 2019-06-25 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7646 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7647 clear_detail method directly.
7648 (tui_clear_win_detail): Remove.
7649
7650 2019-06-25 Tom Tromey <tom@tromey.com>
7651
7652 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7653 "this", not TUI_DISASM_WIN.
7654
7655 2019-06-25 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7658 declare.
7659 * tui/tui-winsource.c
7660 (tui_source_window_base::do_scroll_horizontal): Rename from
7661 tui_horizontal_source_scroll.
7662 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7663 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7664 from tui_vertical_data_scroll.
7665 * tui/tui-win.h (tui_scroll): Don't declare.
7666 * tui/tui-win.c (tui_win_info::forward_scroll)
7667 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7668 (tui_win_info::right_scroll): Rename and update.
7669 (tui_scroll_forward_command, tui_scroll_backward_command)
7670 (tui_scroll_left_command, tui_scroll_right_command): Update.
7671 (tui_scroll): Remove.
7672 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7673 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7674 from tui_vertical_source_scroll.
7675 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7676 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7677 from tui_vertical_disassem_scroll.
7678 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7679 do_scroll_horizontal>: New methods.
7680 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7681 Likewise.
7682 (struct tui_source_window_base): Add do_scroll_horizontal.
7683 (struct tui_source_window, struct tui_disasm_window): Add
7684 do_scroll_vertical.
7685 (struct tui_data_window, struct tui_cmd_window): Add
7686 do_scroll_horizontal and do_scroll_vertical.
7687 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7688
7689 2019-06-25 Tom Tromey <tom@tromey.com>
7690
7691 * tui/tui-data.h (struct tui_source_window_base): New struct.
7692 (struct tui_source_window): Derive from tui_source_window_base.
7693 (struct tui_disasm_window): New struct.
7694 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7695 from tui_source_window::clear_detail.
7696 (tui_source_window_base): Rename from tui_source_window.
7697 (~tui_source_window_base): Rename from ~tui_source_window.
7698 (tui_alloc_win_info): Create a tui_disasm_window.
7699
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-data.h (struct tui_source_window)
7703 (struct tui_data_window): Declare destructors.
7704 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7705 destructors.
7706 (tui_win_info): Simplify.
7707
7708 2019-06-25 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-winsource.c (tui_display_main)
7711 (tui_update_source_windows_with_addr)
7712 (tui_update_all_breakpoint_info): Update.
7713 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7714 (new_height_ok, parse_scrolling_args): Update.
7715 * tui/tui-stack.c (tui_show_frame_info): Update.
7716 * tui/tui-data.h (struct tui_list): Remove.
7717 (tui_source_windows): Return a reference to a std::vector.
7718 * tui/tui-data.c (source_windows): Now a std::vector.
7719 (tui_source_windows): Change return type.
7720 (tui_clear_source_windows): Rewrite.
7721 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7722 (tui_free_all_source_wins_content): Rewrite.
7723
7724 2019-06-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7727 (struct tui_data_window, struct tui_cmd_window): Declare
7728 clear_detail method.
7729 * tui/tui-data.c (tui_source_window::clear_detail)
7730 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7731 methods.
7732 (tui_clear_win_detail): Simplify.
7733
7734 2019-06-25 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-layout.c (make_source_window, make_disasm_window)
7737 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7738 Return the new window.
7739 (show_source_disasm_command, show_data)
7740 (show_source_or_disasm_and_command): Update.
7741
7742 2019-06-25 Tom Tromey <tom@tromey.com>
7743
7744 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7745 parameter. Return the new window.
7746 (show_source_disasm_command): Update and remove NULL check.
7747 (show_source_or_disasm_and_command): Update.
7748
7749 2019-06-25 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7752
7753 2019-06-25 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-data.h (struct tui_win_info): Make constructor
7756 protected. Make destructor virtual. Add initializers.
7757 (tui_source_window, tui_data_window, tui_cmd_window): New
7758 classes.
7759 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7760 constructor. Add "type" parameter.
7761 (tui_source_window, tui_data_window, tui_cmd_window): New
7762 constructors.
7763 (tui_alloc_win_info): Instantiate the appropriate subclass.
7764
7765 2019-06-25 Tom Tromey <tom@tromey.com>
7766
7767 * tui/tui-win.c (tui_resize_all): Use delete.
7768 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7769 destructor.
7770 (tui_free_window): Don't declare.
7771 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7772 Update.
7773
7774 2019-06-25 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-data.h (struct tui_win_info): Add constructor.
7777 * tui/tui-data.c (tui_alloc_win_info): Use new.
7778 (tui_free_window): Use delete.
7779
7780 2019-06-22 Tom Tromey <tom@tromey.com>
7781
7782 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7783 declare.
7784 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7785
7786 2019-06-22 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7789 declare.
7790 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7791
7792 2019-06-22 Tom de Vries <tdevries@suse.de>
7793
7794 * dwarf2read.c (create_addrmap_from_aranges)
7795 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7796 instead of '%zu'.
7797
7798 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * dwarf2read.h (dwarf2_section_info_def): Remove.
7801 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7802 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7803 std::vector<dwarf2_section_info>.
7804 (struct dwo_file) <~dwo_file>: Remove.
7805 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7806 types field.
7807 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7808 (dwarf2_read_debug_names): Likewise.
7809 (create_debug_types_hash_table): Change parameter type to
7810 array_view, adjust code accordingly.
7811 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7812 (partial_die_info::fixup): Likewise.
7813 (determine_prefix): Likewise.
7814 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7815
7816 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7817
7818 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7819 gdb_bfd_ref_ptr.
7820 <~dwo_file>: Remove call to gdb_bfd_unref.
7821 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7822 gdb_bfd_ref_ptr::get.
7823
7824 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7825
7826 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7827 type to htab_up.
7828 * dwarf2read.c (struct dwo_file): Initialize fields.
7829 <~dwo_file>: New.
7830 (free_dwo_file): Remove, move content to ~dwo_file.
7831 (struct dwo_file_deleter): Remove.
7832 (dwo_file_up>: Remove custom deleter.
7833 (free_dwo_files): Remove.
7834 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7835 dwo_files.
7836 (process_skeletonless_type_units): Call unique_ptr::get.
7837 (allocate_dwo_file_hash_table): Add deleter to created hash
7838 table. Change return type to htab_up.
7839 (lookup_dwo_file_slot): Don't memset dwo_file, call
7840 unique_ptr::get.
7841 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7842 (create_dwo_unit_in_dwp_v2): Likewise.
7843 (open_and_init_dwo_file): Likewise.
7844 (free_dwo_file_from_slot): Remove.
7845
7846 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7847
7848 * dwarf2read.h (struct dwarf2_section_info) <readin,
7849 is_virtual>: Change type to bool.
7850 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7851 true instead of 1.
7852
7853 2019-06-19 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-data.h (tui_init_content_element): Don't declare.
7856
7857 2019-06-19 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-data.h (tui_init_win_info): Don't declare.
7860
7861 2019-06-19 Tom de Vries <tdevries@suse.de>
7862
7863 * dwarf2read.h (abstract_to_concrete): Change type to
7864 std::unordered_map<sect_offset, std::vector<sect_offset>,
7865 gdb::hash_enum<sect_offset>>.
7866
7867 2019-06-19 Tom Tromey <tromey@adacore.com>
7868
7869 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7870 EVAL_AVOID_SIDE_EFFECTS specially.
7871
7872 2019-06-19 Tom Tromey <tromey@adacore.com>
7873
7874 * source-cache.c (highlighter): New global.
7875 (source_cache::get_source_lines): Create a highlighter on demand.
7876
7877 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * defs.h (deprecated_interactive_hook): Delete declaration.
7880 * interps.c (clear_interpreter_hooks): Remove use of
7881 deprecated_interactive_hook.
7882 * top.c (deprecated_interactive_hook): Delete definition.
7883 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7884
7885 2019-06-18 Tom de Vries <tdevries@suse.de>
7886
7887 PR gdb/24515
7888 * dwarf2read.h (abstract_to_concrete): Change type from
7889 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7890 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7891 * dwarf2read.c (read_variable): Update.
7892 (dwarf2_fetch_die_loc_sect_off): Update.
7893
7894 2019-06-17 Tom de Vries <tdevries@suse.de>
7895
7896 PR gdb/24617
7897 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7898 accessing parent[parent_len - 1].
7899
7900 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7901
7902 PR gdb/24364
7903 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7904 call dtrace_process_dof with NULL dof.
7905
7906 2019-06-16 Tom de Vries <tdevries@suse.de>
7907
7908 PR gdb/24445
7909 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7910
7911 2019-06-16 Tom Tromey <tom@tromey.com>
7912
7913 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7914 (make_all_visible): Use address of member.
7915
7916 2019-06-16 Tom Tromey <tom@tromey.com>
7917
7918 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7919 (tui_free_window, free_content, free_content_elements): Remove
7920 unnecessary cast.
7921 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7922 cast.
7923 * tui/tui-regs.c (tui_show_register_group)
7924 (tui_display_registers_from, tui_display_reg_element_at_line):
7925 Remove unnecessary cast.
7926
7927 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * linux-nat.c (normal_mask): Delete.
7930 (_initialize_linux_nat): Don't initialise normal_mask.
7931
7932 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7933
7934 PR gdb/24445
7935 * dwarf-index-write.h (write_psymtabs_to_index): Add
7936 dwz_basename parameter.
7937 * dwarf-index-write.c (write_gdbindex): Move file writing to
7938 write_gdbindex_1. Change return type void.
7939 (assert_file_size): Move up, remove filename parameter.
7940 (write_gdbindex_1): New function.
7941 (write_debug_names): Change return type to void, call
7942 assert_file_size.
7943 (struct index_wip_file): New struct.
7944 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7945 file logic to index_wip_file. Write index for dwz file if
7946 needed.
7947 (save_gdb_index_command): Pass basename of dwz file, if present.
7948 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7949 build-id of dwz file, if present.
7950 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7951 (dwarf2_get_dwz_file): Likewise.
7952 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7953 (dwarf2_get_dwz_file): Likewise.
7954
7955 2019-06-16 Tom Tromey <tom@tromey.com>
7956
7957 * coffread.c (process_coff_symbol): Use xstrdup.
7958 * value.c (create_internalvar): Use xstrdup.
7959
7960 2019-06-16 Tom Tromey <tom@tromey.com>
7961
7962 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7963 * breakpoint.c (stopin_command, stopat_command)
7964 (until_break_command, decode_location_default): Remove unnecessary
7965 cast.
7966 * utils.c (subset_compare): Remove unnecessary cast.
7967 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7968 cast.
7969 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7970 cast.
7971 * infcmd.c (path_command): Remove unnecessary cast.
7972 * coffread.c (decode_type): Remove unnecessary cast.
7973 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7974 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7975 * tui/tui-stack.c (tui_show_locator_content)
7976 (tui_show_frame_info): Remove unnecessary cast.
7977 * tui/tui-win.c (tui_scroll_forward_command)
7978 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7979 (parse_scrolling_args): Remove unnecessary cast.
7980 * tui/tui-data.c (init_win_info, tui_del_window)
7981 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7982 (free_content_elements): Remove unnecessary cast.
7983 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7984 unnecessary cast.
7985 * tui/tui-source.c (tui_set_source_content)
7986 (tui_vertical_source_scroll): Remove unnecessary cast.
7987 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7988 cast.
7989 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7990 * tui/tui-regs.c (tui_display_registers_from)
7991 (tui_display_register): Remove unnecessary cast.
7992 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7993 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7994 (make_visible): Remove unnecessary cast.
7995 * tui/tui-winsource.c (tui_erase_source_content)
7996 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7997 unnecessary cast.
7998 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7999 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8000 * stabsread.c (read_type, read_array_type, read_range_type):
8001 Remove unnecessary cast.
8002 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8003 (parse_symbol, parse_type, upgrade_type, parse_external)
8004 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8005 unnecessary cast.
8006 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8007
8008 2019-06-16 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-data.c (tui_alloc_generic_win_info)
8011 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8012 checks.
8013
8014 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8015 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * f-typeprint.c (f_print_type): Don't return early for not
8018 associated or not allocated types.
8019 (f_type_print_varspec_suffix): Add print_rank parameter and print
8020 ranks of array types in case they dangling.
8021 (f_type_print_base): Add print_rank parameter.
8022
8023 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * NEWS: Mention new MI commands.
8026 * break-catch-throw.c (enum exception_event_kind): Move to
8027 breakpoint.h.
8028 (print_mention_exception_catchpoint): Output text as a single
8029 message.
8030 (catch_exception_command_1): Rename to...
8031 (catch_exception_event): ...this, make non-static, update header
8032 command, and change some parameter types.
8033 (catch_catch_command): Update for changes to
8034 catch_exception_command_1.
8035 (catch_throw_command): Likewise.
8036 (catch_rethrow_command): Likewise.
8037 * breakpoint.c (enum exception_event_kind): Delete.
8038 * breakpoint.h (enum exception_event_kind): Moved here from
8039 break-catch-throw.c.
8040 (catch_exception_event): Declare.
8041 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8042 (mi_cmd_catch_throw): New function.
8043 (mi_cmd_catch_rethrow): New function.
8044 (mi_cmd_catch_catch): New function.
8045 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8046 'catch-catch' entries.
8047 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8048 (mi_cmd_catch_rethrow): Declare.
8049 (mi_cmd_catch_catch): Declare.
8050
8051 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * annotate.c (annotate_source_line): Change return type to void,
8054 update implementation to match.
8055 * annotate.h (annotate_source_line): Change return type to void,
8056 update header comment.
8057 * stack.c (print_frame_info): Don't change what frame information
8058 is printed based on whether annotations are on or not.
8059
8060 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8061
8062 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8063 (annotate_source): Make static.
8064 (annotate_source_line): Moved from source.c and renamed from
8065 identify_source_line. Update the return type.
8066 * annotate.h (annotate_source): Delete declaration.
8067 (annotate_source_line): Declaration moved from source.h, and
8068 renamed from identify_source_line. Return type updated.
8069 * source.c (identify_source_line): Moved to annotate.c and renamed
8070 to annotate_source_line.
8071 (info_line_command): Remove check of annotation_level.
8072 * source.h (identify_source_line): Move declaration to annotate.h
8073 and rename to annotate_source_line.
8074 * stack.c: Add 'annotate.h' include.
8075 (print_frame_info): Remove check of annotation_level before
8076 calling annotate_source_line.
8077
8078 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8079
8080 * source-cache.c (source_cache::get_plain_source_lines): Use
8081 open_source_file_with_line_charpos instead of just
8082 open_source_file, remove call to find_source_lines.
8083 (source_cache::get_source_lines): Likewise.
8084 * source.c (find_source_lines): Make static.
8085 (get_filename_and_charpos): Renamed into...
8086 (open_source_file_with_line_charpos): ..this along with changes to
8087 return a scoped_fd, and some other minor clean ups.
8088 (identify_source_line): Use open_source_file_with_line_charpos.
8089 (search_command_helper): Use open_source_file_with_line_charpos
8090 instead of just open_source_file, remove call to
8091 find_source_lines.
8092 * source.h (open_source_file_with_line_charpos): Declare new
8093 function.
8094 (find_source_lines): Delete declaration.
8095
8096 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8097
8098 * source.c (get_filename_and_charpos): Remove fullname
8099 parameter.
8100 (identify_source_line): Update call to get_filename_and_charpos.
8101
8102 2019-06-14 Tom Tromey <tromey@adacore.com>
8103
8104 PR gdb/24502:
8105 * ui-style.h (skip_ansi_escape): Update comment.
8106 * ui-file.h (class no_terminal_escape_file): New class.
8107 * ui-file.c (no_terminal_escape_file::write)
8108 (no_terminal_escape_file::puts): New methods.
8109 * cli/cli-logging.c (handle_redirections): Use
8110 no_terminal_escape_file.
8111
8112 2019-06-14 Tom Tromey <tromey@adacore.com>
8113
8114 * NEWS: Move convenience variable news above Python news.
8115
8116 2019-06-14 Tom Tromey <tom@tromey.com>
8117
8118 * gnulib: Move directory to top-level.
8119 * configure.ac: Don't configure gnulib.
8120 * configure: Rebuild.
8121 * common/common-defs.h: Use new path to gnulib.
8122 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8123 (GNULIB_H): Remove.
8124 (INCGNU): Look in new gnulib location.
8125 (HFILES_NO_SRCDIR): Remove gnulib files.
8126 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8127 (generated_files): Remove GNULIB_H.
8128 ($(LIBGNU), all-lib): Remove targets.
8129 (distclean): Don't mention GNULIB_BUILDDIR.
8130 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8131
8132 2019-06-14 Tom Tromey <tromey@adacore.com>
8133
8134 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8135 Warn if symbol file does not provide any symbols.
8136
8137 2019-06-14 Tom Tromey <tromey@adacore.com>
8138
8139 * source.c (find_and_open_source): Respect basenames_may_differ.
8140
8141 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * annotate.c (annotate_breakpoints_invalid): Make use of
8144 scoped_restore_terminal_state.
8145 (annotate_frames_invalid): Likewise.
8146
8147 2019-06-14 Tom Tromey <tromey@adacore.com>
8148
8149 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8150 allow assignment to an internalvar.
8151
8152 2019-06-14 Tom Tromey <tromey@adacore.com>
8153
8154 * ada-lex.l: Allow "_" in attribute names.
8155
8156 2019-06-14 Tom Tromey <tromey@adacore.com>
8157
8158 PR gdb/24653:
8159 * regcache.c (registers_changed): Don't call alloca.
8160 * top.c (execute_command): Don't call alloca.
8161
8162 2019-06-13 Pedro Alves <palves@redhat.com>
8163
8164 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8165 'expression'. When parsing an expression, error out if there's
8166 junk after "unlimited".
8167 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8168 (do_set_command): Adjust calls to is_unlimited_literal.
8169
8170 2019-06-13 Pedro Alves <palves@redhat.com>
8171
8172 * compile/compile.c (make_compile_options_def_group): Add braces
8173 around array_view initializer.
8174 * thread.c (make_thread_apply_all_options_def_group)
8175 (make_thread_apply_all_options_def_group): Likewise.
8176
8177 2019-06-13 Pedro Alves <palves@redhat.com>
8178
8179 * NEWS (New commands): Mention "maint test-options
8180 require-delimiter", "maint test-options unknown-is-error", "maint
8181 test-options unknown-is-operand" and "maint show
8182 test-options-completion-result".
8183 (New command options, command completion): New section.
8184 (Completion improvements): New section.
8185 Mention that you can abbreviate "unlimited".
8186
8187 2019-06-13 Pedro Alves <palves@redhat.com>
8188
8189 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8190 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8191 * unittests/cli-utils-selftests.c (test_parse_flags)
8192 (test_parse_flags_qcs): Delete.
8193 (test_cli_utils): Don't call deleted functions.
8194
8195 2019-06-13 Pedro Alves <palves@redhat.com>
8196
8197 * thread.c: Include "cli/cli-option.h".
8198 (tp_array_compar_ascending): Global.
8199 (tp_array_compar): Delete function.
8200 (tp_array_compar_ascending, tp_array_compar_descending): New
8201 functions.
8202 (ascending_option_def, qcs_flag_option_def)
8203 (thr_qcs_flags_option_defs)
8204 (make_thread_apply_all_options_def_group)
8205 (make_thread_apply_options_def_group): New.
8206 (thread_apply_all_command): Use gdb::option::process_options.
8207 (thread_apply_command_completer)
8208 (thread_apply_all_command_completer): New.
8209 (thread_apply_command): Use gdb::option::process_options.
8210 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8211 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8212 to generate help text of "thread apply". Adjust "taas"'s help.
8213 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8214 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8215
8216 2019-06-13 Pedro Alves <palves@redhat.com>
8217
8218 * thread.c (thread_apply_command): Check for invalid TID with
8219 isdigit instead of !isalpha.
8220
8221 2019-06-13 Pedro Alves <palves@redhat.com>
8222
8223 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8224 (validate_flags_qcs): New.
8225 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8226 (validate_flags_qcs): Declare.
8227 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8228 (make_frame_apply_options_def_group): New.
8229 (frame_apply_command_count): Process options with
8230 gdb::option::process_options.
8231 (frame_apply_completer): New.
8232 (frame_apply_level_completer, frame_apply_all_completer)
8233 (frame_apply_completer): New.
8234 (_initialize_stack): Update help of "frame apply", "frame apply
8235 level", "frame apply all" and "faas" to mention supported options
8236 and install command completers.
8237 * stack.h (frame_apply_all_completer): Declare.
8238 * thread.c: Include "stack.h".
8239 (tfaas_command): Add "--".
8240 (_initialize_thread): Update help "tfaas" to mention supported
8241 options and install command completer.
8242
8243 2019-06-13 Pedro Alves <palves@redhat.com>
8244
8245 * completer.c (complete_nested_command_line): New.
8246 (gdb_completion_word_break_characters_throw): Add assertion.
8247 * completer.h (complete_nested_command_line): Declare.
8248
8249 2019-06-13 Pedro Alves <palves@redhat.com>
8250
8251 * stack.c (parse_backtrace_qualifiers): New.
8252 (backtrace_command): Use it.
8253 (backtrace_command_completer): Complete on qualifiers.
8254
8255 2019-06-13 Pedro Alves <palves@redhat.com>
8256
8257 * frame.c: Include "cli/cli-option.h.
8258 (user_set_backtrace_options): New.
8259 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8260 Delete.
8261 (get_prev_frame): Adjust.
8262 (boolean_option_def, uinteger_option_def)
8263 (set_backtrace_option_defs): New.
8264 (_initialize_frame): Adjust and use
8265 gdb::option::add_setshow_cmds_for_options to install "set
8266 backtrace past-main" and "set backtrace past-entry".
8267 * frame.h: Include "cli/cli-option.h".
8268 (struct frame_print_options): Forward declare.
8269 (print_frame_arguments_all, print_frame_arguments_scalars)
8270 (print_frame_arguments_none): Declare.
8271 (print_entry_values): Delete declaration.
8272 (struct frame_print_options, user_frame_print_options): New.
8273 (struct set_backtrace_options): New.
8274 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8276 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8277 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8278 (list_args_or_locals): Add frame_print_options parameter.
8279 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8280 * python/py-framefilter.c (enumerate_args): Pass down
8281 USER_FRAME_PRINT_OPTIONS.
8282 * stack.c: Include "cli/cli-option.h".
8283 (print_frame_arguments_all, print_frame_arguments_scalars)
8284 (print_frame_arguments_none): Declare.
8285 (print_raw_frame_arguments, print_entry_values): Delete.
8286 (user_frame_print_options): New.
8287 (boolean_option_def, enum_option_def, frame_print_option_defs):
8288 New.
8289 (struct backtrace_cmd_options): New.
8290 (bt_flag_option_def): New.
8291 (backtrace_command_option_defs): New.
8292 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8293 (print_frame_arg, read_frame_arg, print_frame_args)
8294 (print_frame_info, print_frame): Add frame_print_options parameter
8295 and use it.
8296 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8297 (backtrace_command_1): Add frame_print_options and
8298 backtrace_cmd_options parameters and use them.
8299 (make_backtrace_options_def_group): New.
8300 (backtrace_command): Process command options with
8301 gdb::option::process_options.
8302 (backtrace_command_completer): New.
8303 (_initialize_stack): Extend "backtrace"'s help to mention
8304 supported options. Install completer for "backtrace".
8305 Install some settings commands with add_setshow_cmds_for_options.
8306
8307 2019-06-13 Pedro Alves <palves@redhat.com>
8308
8309 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8310 and that "set/show print raw frame-arguments" are now deprecated.
8311
8312 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8313 command.
8314 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8315 * stack.c (_initialize_stack): Install "set/show print
8316 raw-frame-arguments", and deprecate "set/show print raw
8317 frame-arguments".
8318 * valprint.c (_initialize_valprint): Deprecate "set/show print
8319 raw".
8320
8321 2019-06-13 Pedro Alves <palves@redhat.com>
8322
8323 * compile/compile.c (struct compile_options): New.
8324 (compile_flag_option_def, compile_command_option_defs)
8325 (make_compile_options_def_group): New.
8326 (compile_file_command): Handle options with
8327 gdb::option::process_options.
8328 (compile_file_command_completer): New function.
8329 (compile_code_command): Handle options with
8330 gdb::option::process_options.
8331 (compile_code_command_completer): New function.
8332 (_initialize_compiler): Install completers for "compile code" and
8333 "compile file". Mention available options in "compile code" and
8334 "compile code"'s help.
8335 * completer.c (advance_to_completion_word): New, factored out from
8336 ...
8337 (advance_to_expression_complete_word_point): ... this.
8338 (advance_to_filename_complete_word_point): New.
8339 * completer.h (advance_to_filename_complete_word_point): New
8340 declaration.
8341
8342 2019-06-13 Pedro Alves <palves@redhat.com>
8343
8344 * compile/compile.c: Include "cli/cli-option.h".
8345 (compile_print_value): Scope data pointer is now a
8346 value_print_options pointer; adjust.
8347 (compile_print_command): Process options. Scope data pointer is
8348 now a value_print_options pointer; adjust.
8349 (_initialize_compile): Update "compile print"'s help to include
8350 supported options. Install a completer for "compile print".
8351 * cp-valprint.c (show_vtblprint, show_objectprint)
8352 (show_static_field_print): Delete.
8353 (_initialize_cp_valprint): Don't install "set print
8354 static-members", "set print vtbl", "set print object" here.
8355 * printcmd.c: Include "cli/cli-option.h" and
8356 "common/gdb_optional.h".
8357 (print_command_parse_format): Rework to fill in a
8358 value_print_options instead of a format_data.
8359 (print_value): Change parameter type from format_data pointer to
8360 value_print_options reference. Adjust.
8361 (print_command_1): Process options. Adjust to pass down a
8362 value_print_options.
8363 (print_command_completer): New.
8364 (_initialize_printcmd): Install print_command_completer as
8365 handle_brkchars completer for the "print" command. Update
8366 "print"'s help to include supported options.
8367 * valprint.c: Include "cli/cli-option.h".
8368 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8369 here from cp-valprint.c.
8370 (boolean_option_def, uinteger_option_def)
8371 (value_print_option_defs, make_value_print_options_def_group):
8372 New. Use gdb::option::add_setshow_cmds_for_options to install
8373 "set print elements", "set print null-stop", "set print repeats",
8374 "set print pretty", "set print union", "set print array", "set
8375 print address", "set print symbol", "set print array-indexes".
8376 * valprint.h: Include <string> and "cli/cli-option.h".
8377 (make_value_print_options_def_group): Declare.
8378 (print_value): Change parameter type from format_data pointer to
8379 value_print_options reference.
8380 (print_command_completer): Declare.
8381
8382 2019-06-13 Pedro Alves <palves@redhat.com>
8383
8384 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8385 (COMMON_SFILES): Add maint-test-settings.c.
8386 * cli/cli-decode.c (boolean_enums): New global, factored out from
8387 ...
8388 (add_setshow_boolean_cmd): ... here.
8389 * cli/cli-decode.h (boolean_enums): Declare.
8390 * cli/cli-option.c: New file.
8391 * cli/cli-option.h: New file.
8392 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8393 factored out from ...
8394 (parse_cli_boolean_value(const char *)): ... this.
8395 (is_unlimited_literal): Change parameter type to pointer to
8396 pointer. Adjust and advance ARG pointer.
8397 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8398 (parse_cli_var_enum): New, factored out from ...
8399 (do_set_command): ... this. Adjust.
8400 * cli/cli-setshow.h (parse_cli_boolean_value)
8401 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8402 (parse_cli_var_enum): Declare.
8403 * cli/cli-utils.c: Include "cli/cli-option.h".
8404 (get_ulongest): New.
8405 * cli/cli-utils.h (get_ulongest): Declare.
8406 (check_for_argument): New overloads.
8407 * maint-test-options.c: New file.
8408
8409 2019-06-13 Pedro Alves <palves@redhat.com>
8410
8411 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8412 parse a range if "-" is at the end of the string.
8413
8414 2019-06-13 Pedro Alves <palves@redhat.com>
8415
8416 * cli/cli-setshow.c (parse_auto_binary_operation)
8417 (parse_cli_boolean_value): Don't allow "o".
8418
8419 2019-06-13 Pedro Alves <palves@redhat.com>
8420
8421 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8422 * NEWS: Mention maint test-settings KIND.
8423 * maint-test-settings.c: New file.
8424
8425 2019-06-13 Pedro Alves <palves@redhat.com>
8426
8427 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8428 completer.
8429 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8430 "set" completers.
8431
8432 2019-06-13 Pedro Alves <palves@redhat.com>
8433
8434 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8435 after item.
8436
8437 2019-06-13 Pedro Alves <palves@redhat.com>
8438
8439 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8440
8441 2019-06-13 Pedro Alves <palves@redhat.com>
8442
8443 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8444 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8445 call.
8446 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8447 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8448 calls.
8449 (check_for_argument): Skip spaces after argument.
8450
8451 2019-06-13 Pedro Alves <palves@redhat.com>
8452
8453 * thread.c (thread_apply_command): Adjust TID parsing.
8454 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8455 detected before end of string.
8456 (tid_is_in_list): Error out if LIST is invalid.
8457
8458 2019-06-13 Pedro Alves <palves@redhat.com>
8459
8460 * completer.c (complete_line_internal_1): Rewind completion word
8461 point.
8462 (completion_tracker::advance_custom_word_point_by): Change
8463 parameter type to int.
8464 * completer.h (completion_tracker::advance_custom_word_point_by):
8465 Likewise.
8466
8467 2019-06-13 Pedro Alves <palves@redhat.com>
8468
8469 * completer.c (advance_to_completion_word): Handle delimiters.
8470
8471 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8472
8473 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8474
8475 2019-06-11 Tom Tromey <tom@tromey.com>
8476
8477 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8478 (xmalloc_failed): Move to alloc.c.
8479 * alloc.c: New file.
8480 * Makefile.in (COMMON_SFILES): Add alloc.c.
8481
8482 2019-06-11 Tom Tromey <tom@tromey.com>
8483
8484 * nat/linux-waitpid.c: Don't include server.h.
8485 (linux_debug): Remove.
8486 (my_waitpid): Update.
8487
8488 2019-06-11 Tom Tromey <tromey@adacore.com>
8489
8490 * infcall.c (_initialize_infcall): Remove trailing newline from
8491 help.
8492 * user-regs.c (_initialize_user_regs): Remove trailing newline
8493 from help.
8494 * typeprint.c (_initialize_typeprint): Remove trailing newline
8495 from help.
8496 * reverse.c (_initialize_reverse): Remove trailing newlines from
8497 help.
8498 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8499 from help.
8500 * language.c (add_set_language_command): Remove trailing newline
8501 from help.
8502 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8503 help.
8504 * disasm.c (_initialize_disasm): Remove trailing newline from
8505 help.
8506 * top.c (init_main): Remove trailing newline from help.
8507 * interps.c (_initialize_interpreter): Remove trailing newline
8508 from help.
8509 * btrace.c (_initialize_btrace): Remove trailing newlines from
8510 help.
8511 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8512 from help.
8513 * python/python.c (_initialize_python): Remove trailing newline
8514 from help.
8515 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8516 help.
8517 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8518 from help. Reformat some text.
8519 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8520 from help.
8521 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8522 newline from help.
8523
8524 2019-06-11 Tom Tromey <tromey@adacore.com>
8525
8526 * darwin-nat.c (darwin_decode_exception_message)
8527 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8528
8529 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * valops.c (value_slice): Check for not allocated or not
8532 associated values.
8533
8534 2019-06-10 Tom de Vries <tdevries@suse.de>
8535
8536 PR gdb/24618
8537 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8538 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8539 invalid.
8540
8541 2019-06-10 Tom de Vries <tdevries@suse.de>
8542
8543 PR gdb/24611
8544 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8545 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8546
8547 2019-06-10 Tom de Vries <tdevries@suse.de>
8548
8549 PR symtab/24545
8550 * symtab.c (struct demangled_name_entry): Add language field.
8551 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8552 static minimal symbol". Set and use language field.
8553
8554 2019-06-10 Tom Tromey <tromey@adacore.com>
8555
8556 * ada-lang.c (_initialize_ada_language): Update help text.
8557
8558 2019-06-10 Tom Tromey <tromey@adacore.com>
8559
8560 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8561 with a newline.
8562 * guile/guile.c (handle_boot_error): Don't end warning with a
8563 newline.
8564 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8565 warning with a newline.
8566 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8567 newline.
8568 (s12z_frame_cache): Likewise.
8569 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8570 a newline.
8571 * solib-svr4.c (disable_probes_interface): Don't end warning with
8572 a newline.
8573 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8574 newline.
8575 * python/python.c (do_finish_initialization): Don't end warning
8576 with a newline.
8577
8578 2019-06-10 Tom Tromey <tom@tromey.com>
8579
8580 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8581 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8582 gdbpy_enter.
8583
8584 2019-06-10 Tom Tromey <tromey@adacore.com>
8585
8586 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8587 data.
8588 (elf_new_init): Don't call stabsread_new_init.
8589 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8590 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8591 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8592
8593 2019-06-10 Tom de Vries <tdevries@suse.de>
8594
8595 PR symtab/16264
8596 PR symtab/24517
8597 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8598
8599 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8600
8601 * source.c (find_and_open_source): Also rewrite relative file
8602 names.
8603
8604 2019-04-26 Amos Bird <amosbird@gmail.com>
8605
8606 * annotate.c (annotate_thread_exited): Add "thread-exited"
8607 annotation.
8608
8609 2019-06-06 Tom Tromey <tromey@adacore.com>
8610
8611 * maint.h (class scoped_command_stats): Use
8612 DISABLE_COPY_AND_ASSIGN.
8613 <print_time>: New method.
8614 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8615 print_time.
8616 (scoped_command_stats::print_time): New method.
8617
8618 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8619
8620 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8621 instructions of lengths 6 or 8 bytes.
8622
8623 2019-06-04 Pedro Alves <palves@redhat.com>
8624
8625 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8626
8627 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8628 * breakpoint.c (condition_completer): Likewise.
8629 * cli/cli-dump.c (scan_expression): Likewise.
8630 * common/filestuff.c (mkdir_recursive): Likewise.
8631 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8632 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8633 (gdb_abspath): Likewise.
8634 * compile/compile-cplus-types.c
8635 (compile_cplus_instance::decl_name): Likewise.
8636 * completer.c (complete_explicit_location):
8637 (signal_completer, reg_or_group_completer_1): Likewise.
8638 * cp-support.c (cp_remove_params_if_any): Likewise.
8639 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8640 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8641 * infcmd.c (strip_bg_char): Likewise.
8642 * linespec.c (copy_token_string): Likewise.
8643 * mi/mi-main.c (output_cores): Likewise.
8644 * psymtab.c (psymtab_search_name):
8645 * symfile.c (test_set_ext_lang_command): Likewise.
8646 * target.c (target_fileio_read_stralloc): Likewise.
8647 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8648 * value.c (complete_internalvar): Likewise.
8649
8650 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8651
8652 Add objfile property to gdb.Type.
8653 * NEWS: Mention Python API addition.
8654 * python/py-type.c (typy_get_objfile): New method.
8655
8656 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8657
8658 * NEWS: Mention the new set|show style [title|highlight].
8659 Mention changes to "show style", "help" and "apropos".
8660
8661 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8662
8663 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8664 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8665 instead of print_help_for_command.
8666 (print_doc_of_command): New function.
8667 (help_list): Add 'apropos -v word' suggestion.
8668 (print_help_for_command): Style the command name using title style.
8669 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8670 (_initialize_cli_cmds): Describe -v in apropos_command help.
8671
8672 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8673
8674 * cli/cli-style.h (cli_style_option): Add name in constructor,
8675 add m_name class member, add constructor with intensity,
8676 add name class function.
8677 (cli_style_option::add_setshow_commands): Remove name argument.
8678 (highlight_style, title_style): New styles.
8679 * cli/cli-style.c (do_show): New function that shows a style
8680 characteristic styling the style name with itself.
8681 (set_style_name): New function.
8682 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8683 Update all callers according to the changes in cli/cli-style.h.
8684 * utils.h (fputs_highlighted): New function.
8685 * utils.c (fputs_highlighted): Likewise.
8686
8687 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8688
8689 * NEWS: Mention new pipe command and new convenience variables.
8690
8691 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8692
8693 * cli/cli-cmds.c (pipe_command): New function.
8694 (_initialize_cli_cmds): Call add_com for pipe_command.
8695 Define | as an alias for pipe.
8696 (exit_status_set_internal_vars): New function.
8697 (shell_escape): Call exit_status_set_internal_vars.
8698 cli/cli-decode.c (find_command_name_length): Recognize | as
8699 a single character command.
8700
8701 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702
8703 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8704 top.c (execute_command_to_ui_file): New function, mostly a copy
8705 of execute_command_to_string.
8706 (execute_command_to_string): Implement by calling
8707 execute_command_to_ui_file.
8708
8709 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8710
8711 * top.h (saved_command_line): Remove declaration.
8712 * top.c (previous_saved_command_line, previous_repeat_arguments):
8713 New variables.
8714 (saved_command_line): Make static, define together with other
8715 'repeat variables'.
8716 (dont_repeat): Clear repeat_arguments.
8717 (repeat_previous, get_saved_command_line, save_command_line):
8718 New functions.
8719 (gdb_init): Initialize saved_command_line
8720 and previous_saved_command_line.
8721 * main.c (captured_main_1): Remove saved_command_line initialization.
8722 * event-top.c (handle_line_of_input): Update to use
8723 the new 'repeat' related functions instead of direct access to
8724 saved_command_line.
8725 * command.h (repeat_previous, get_saved_command_line,
8726 save_command_line): New declarations.
8727 (dont_repeat): Add comment.
8728
8729 2019-05-30 Tom Tromey <tromey@adacore.com>
8730
8731 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8732 Fix comment.
8733 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8734
8735 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8736
8737 PR cli/24587
8738 * completer.c (complete): Initialize variable word.
8739
8740 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8741
8742 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8743 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8744 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8745 'body' is NULL to the outter 'if', protecting the '!is_define'
8746 situation as well.
8747
8748 2019-05-29 Tom Tromey <tromey@adacore.com>
8749
8750 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8751 (dwarf_unknown): New function.
8752 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8753 (dwarf_type_encoding_name): Use dwarf_unknown.
8754
8755 2019-05-29 Tom Tromey <tromey@adacore.com>
8756
8757 PR c++/20020:
8758 * cp-valprint.c (cp_print_value_fields): Call
8759 cp_print_static_field inside "try".
8760
8761 2019-05-29 Tom Tromey <tromey@adacore.com>
8762
8763 * inflow.c (struct terminal_info): Add default operator=.
8764 * configure: Rebuild.
8765 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8766 -Wdeprecated-copy-dtor, -Wredundant-move.
8767
8768 2019-05-29 Tom Tromey <tromey@adacore.com>
8769
8770 * NEWS: Add entry.
8771 * infcmd.c (print_return_value_1): Handle finish_print
8772 option.
8773 (show_print_finish): New function.
8774 (_initialize_infcmd): Add "set/show print finish" commands.
8775 * valprint.c (user_print_options): Initialize new member.
8776 * valprint.h (struct value_print_options) <finish_print>: New
8777 member.
8778
8779 2019-05-28 Tom Tromey <tromey@adacore.com>
8780
8781 * ada-lang.c (ada_remove_Xbn_suffix)
8782 (find_old_style_renaming_symbol)
8783 (parse_old_style_renaming): Remove.
8784 (ada_find_renaming_symbol): Don't call
8785 find_old_style_renaming_symbol.
8786 (ada_is_renaming_symbol): Rename from
8787 ada_find_renaming_symbol. Remove "block" parameter. Return
8788 bool. Now static.
8789 (ada_read_var_value): Update and simplify.
8790 * ada-exp.y (write_var_or_type): Remove old code.
8791
8792 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8793
8794 PR gdb/25010
8795 * event-top.c: Remove include comment.
8796 * inflow.c (class scoped_ignore_sigttou): Move from here...
8797 * inflow.h (class scoped_ignore_sigttou): ...to here.
8798 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8799 * top.c: Remove include comment.
8800
8801 2019-05-27 Tom Tromey <tom@tromey.com>
8802
8803 * NEWS: Fix typo.
8804
8805 2019-05-22 Tom Tromey <tromey@adacore.com>
8806
8807 * target.c (target_follow_exec): Constify parameter.
8808 * target-delegates.c: Rebuild.
8809 * remote.c (remote_target::follow_exec): Constify parameter.
8810 * infrun.c (follow_exec): Constify parameter.
8811 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8812 (target_follow_exec): Likewise.
8813
8814 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8815
8816 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8817 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8818
8819 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8820
8821 * NEWS: Add debugredirect and testsuite sections.
8822
8823 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8824
8825 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8826 target descriptions using exclusively floating point register name
8827 aliases.
8828
8829 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 PR gdb/18644:
8832 * f-lang.c (build_fortran_types): Handle the case where
8833 gdbarch_floatformat_for_type returns a nullptr.
8834
8835 2019-05-21 Tom de Vries <tdevries@suse.de>
8836
8837 PR cli/24587
8838 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8839
8840 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8841
8842 PR gdb/18644:
8843 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8844 16-byte floats.
8845 * i386-tdep.c (i386_floatformat_for_type): Use
8846 floatformats_ia64_quad for the 16-byte floating point component
8847 within a fortran 32-byte complex number.
8848
8849 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8850
8851 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8852 delete default constructor.
8853 (find_partial_die): Update to return const struct.
8854 (partial_die_parent_scope): Move variable declaration into scope
8855 of its use and change its type to auto.
8856 (guess_partial_die_structure_name): Likewise.
8857 (partial_die_info::fixup): Likewise.
8858
8859 2019-05-17 Tom Tromey <tromey@adacore.com>
8860
8861 * source.c (find_and_open_source): Remove cast.
8862
8863 2019-05-17 Tom Tromey <tromey@adacore.com>
8864
8865 * annotate.c (annotate_source): Make "filename" const.
8866 * annotate.h (annotate_source): Use const.
8867
8868 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8869
8870 * disasm.c (set_disassembler_options): Send errors to stderr.
8871
8872 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8873
8874 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8875 (cli_interp_base::set_logging): Check debug_redirect.
8876 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8877 * cli/cli-logging.c (debug_redirect): Add static variable.
8878 (pop_output_files): Add default param.
8879 (handle_redirections): Print debug setting.
8880 (show_logging_command): Likewise.
8881 (_initialize_cli_logging): Add debugredirect command.
8882 * interps.c (current_interp_set_logging): Add debug_redirect
8883 parameter.
8884 * interps.h (set_logging): Add debug_redirect parameter.
8885 (current_interp_set_logging): Likewise.
8886 * mi/mi-common.h: Likewise.
8887 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8888
8889 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8890 Tom Tromey <tromey@adacore.com>
8891
8892 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8893 directly.
8894 * cli/cli-interp.h (make_logging_output): Remove declaration.
8895 * cli/cli-logging.c (make_logging_output): Remove function.
8896 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8897 directly.
8898 * ui-file.c (tee_file::tee_file): Remove bools.
8899 (tee_file::~tee_file): Remove deletes.
8900 * ui-file.h (tee_file): Remove bools.
8901
8902 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8903
8904 * mi/mi-cmds.h (mi_cmd_complete): New function.
8905 * mi/mi-main.c (mi_cmd_complete): Likewise.
8906 * mi/mi-cmds.c: Define new MI command -complete.
8907 * NEWS: Mention new -complete command.
8908
8909 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8910
8911 * completer.h (complete): New function.
8912 * completer.c (complete): Likewise.
8913 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8914 function defined in completer.h.
8915
8916 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8917
8918 * MAINTAINERS (Write After Approval): Add myself.
8919
8920 2019-05-17 Tom de Vries <tdevries@suse.de>
8921
8922 PR gdb/24094
8923 * dwarf2read.c (struct cu_partial_die_info): New struct.
8924 (find_partial_die): Return cu_partial_die_info.
8925 (partial_die_parent_scope, guess_partial_die_structure_name)
8926 (partial_die_info::fixup): Handle new return type of find_partial_die.
8927
8928 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8929
8930 PR breakpoints/24541
8931 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8932 "std::string", simplifying the algorithm.
8933
8934 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8935
8936 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8937 (stap_static_probe_ops::get_probes): Likewise.
8938
8939 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8940
8941 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8942 '-')" and "else if".
8943 (stap_parse_single_operand): Join checks for
8944 "gdbarch_stap_parse_special_token_p" and
8945 "gdbarch_stap_parse_special_token" in the same "if" statement.
8946 Invert check when verifying for operation on register
8947 displacement.
8948
8949 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8950
8951 * stap-probe.c (stap_get_opcode): Update comment.
8952 (stap_get_expected_argument_type): Likewise.
8953 (handle_stap_probe): Likewise.
8954
8955 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8956
8957 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8958 return type to 'bool'. Adjust comment. Use 'bool' when
8959 appropriate.
8960 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8961 * stap-probe.c (stap_parse_argument_1): Likewise.
8962 (stap_is_operator): Likewise.
8963 (stap_is_generic_prefix): Likewise.
8964 (stap_is_register_prefix): Likewise.
8965 (stap_is_register_indirection_prefix): Likewise.
8966 (stap_is_integer_prefix): Likewise.
8967 (stap_generic_check_suffix): Likewise.
8968 (stap_check_integer_suffix): Likewise.
8969 (stap_check_register_suffix): Likewise.
8970 (stap_check_register_indirection_suffix): Likewise.
8971 (stap_parse_register_operand): Likewise.
8972 (stap_parse_single_operand): Likewise.
8973 (stap_parse_argument_1): Likewise.
8974 (stap_probe::get_argument_count): Likewise.
8975 (stap_is_operator): Likewise.
8976
8977 2019-05-16 Tom Tromey <tromey@adacore.com>
8978
8979 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8980 keyword to foreach.
8981
8982 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * linux-thread-db.c (try_thread_db_load_1): Change return type
8985 to bool.
8986 (try_thread_db_load): Likewise.
8987 (try_thread_db_load_from_pdir_1): Likewise.
8988 (try_thread_db_load_from_pdir): Likewise.
8989 (try_thread_db_load_from_sdir): Likewise.
8990 (try_thread_db_load_from_dir): Likewise.
8991 (thread_db_load_search): Likewise.
8992 (has_libpthread): Likewise.
8993 (thread_db_load): Likewise.
8994
8995 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8996
8997 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8998 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8999 NULL, and complain/return if that's the case.
9000
9001 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9002
9003 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9004 (advance, posn, abstract_read_memory): New functions.
9005 [struct mem_read_abstraction]: New struct.
9006 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9007
9008 2019-05-14 Tom Tromey <tromey@adacore.com>
9009
9010 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9011 value is not lval_memory.
9012
9013 2019-05-14 Tom Tromey <tromey@adacore.com>
9014
9015 * solib.c (info_sharedlibrary_command): Style the file name.
9016
9017 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9018
9019 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9020 (aarch64_vnv_type): Likewise.
9021 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9022 * common/tdesc.c: Likewise.
9023 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9024 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9025 * features/aarch64-fpu.xml: Add ieee half view.
9026 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9027 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9028 * gdbtypes.h (struct builtin_type): Likewise.
9029 (struct objfile_type): Likewise.
9030
9031 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9032
9033 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9034 typo.
9035 * location.h (string_to_event_location): Likewise.
9036
9037 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9038
9039 GDB 8.3 released.
9040
9041 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9044 New variable declaration.
9045 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9046 New variable.
9047 (print_one_breakpoint): Use ui_out::test_flags and new global
9048 variable to compute use_fixed_output.
9049 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9050 Remove.
9051 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9052 (mi_multi_location_breakpoint_output_fixed): Remove.
9053 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9054 new variable.
9055 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9056 fix_multi_location_breakpoint_output flag if version >= 3.
9057 * ui-out.h (enum ui_out_flag)
9058 <fix_multi_location_breakpoint_output>: New enumerator.
9059
9060 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9063
9064 2019-05-10 Tom Tromey <tromey@adacore.com>
9065
9066 * ada-lang.c (catch_ada_completer): New function.
9067 (_initialize_ada_language): Use it.
9068
9069 2019-05-10 Tom Tromey <tromey@adacore.com>
9070
9071 * thread.c (print_thread_info): Make "requested_threads" const.
9072 * gdbthread.h (print_thread_info): Make "requested_threads"
9073 const.
9074 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9075 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9076
9077 2019-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * gdbtypes.c (objfile_type_data): Change type.
9080 (objfile_type, _initialize_gdbtypes): Update.
9081
9082 2019-05-08 Tom Tromey <tom@tromey.com>
9083
9084 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9085 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9086 (_initialize_dwarf2_frame): Update.
9087
9088 2019-05-08 Tom Tromey <tom@tromey.com>
9089
9090 * objc-lang.c (objc_objfile_data): Change type.
9091 (find_methods): Update.
9092 (_initialize_objc_lang): Remove.
9093
9094 2019-05-08 Tom Tromey <tom@tromey.com>
9095
9096 * stabsread.c (rs6000_builtin_type_data): Change type.
9097 (rs6000_builtin_type, _initialize_stabsread): Update.
9098
9099 2019-05-08 Tom Tromey <tom@tromey.com>
9100
9101 * mips-tdep.c (mips_pdr_data): Remove.
9102 (_initialize_mips_tdep): Update.
9103
9104 2019-05-08 Tom Tromey <tom@tromey.com>
9105
9106 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9107 (hppa_init_objfile_priv_data, read_unwind_info)
9108 (find_unwind_entry, _initialize_hppa_tdep): Update.
9109
9110 2019-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9113 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9114 on obstack.
9115 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9116
9117 2019-05-08 Tom Tromey <tom@tromey.com>
9118
9119 * mdebugread.c (basic_type_data): Change type.
9120 (basic_type, _initialize_mdebugread): Update.
9121
9122 2019-05-08 Tom Tromey <tom@tromey.com>
9123
9124 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9125
9126 2019-05-08 Tom Tromey <tom@tromey.com>
9127
9128 * nto-tdep.c (nto_inferior_data_reg): Change type.
9129 (nto_inferior_data): Update.
9130 (nto_inferior_data_cleanup, nto_new_inferior_data)
9131 (_initialize_nto_tdep): Remove.
9132 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9133
9134 2019-05-08 Tom Tromey <tom@tromey.com>
9135
9136 * ada-lang.c (struct ada_inferior_data): Add initializers.
9137 (ada_inferior_data): Change type.
9138 (ada_inferior_data_cleanup): Remove.
9139 (get_ada_inferior_data, ada_inferior_exit)
9140 (struct ada_pspace_data): Add initializers, destructor.
9141 (ada_pspace_data_handle): Change type.
9142 (get_ada_pspace_data): Update.
9143 (ada_pspace_data_cleanup): Remove.
9144
9145 2019-05-08 Tom Tromey <tom@tromey.com>
9146
9147 * coffread.c (struct coff_symfile_info): Add initializers.
9148 (coff_objfile_data_key): Move lower. Change type.
9149 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9150 Update.
9151 (coff_free_info): Remove.
9152
9153 2019-05-08 Tom Tromey <tom@tromey.com>
9154
9155 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9156 (fbsd_pspace_data_handle): Move lower. Change type.
9157 (get_fbsd_pspace_data): Update.
9158 (fbsd_pspace_data_cleanup): Remove.
9159 (_initialize_fbsd_tdep): Update.
9160
9161 2019-05-08 Tom Tromey <tom@tromey.com>
9162
9163 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9164 (get_ada_tasks_pspace_data): Update.
9165 (ada_tasks_pspace_data_cleanup): Remove.
9166 (_initialize_tasks): Update.
9167 (ada_tasks_inferior_data_handle): Change type.
9168 (get_ada_tasks_inferior_data): Update.
9169 (ada_tasks_inferior_data_cleanup): Remove.
9170 (struct ada_tasks_pspace_data): Add initializers.
9171
9172 2019-05-08 Tom Tromey <tom@tromey.com>
9173
9174 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9175 * symfile-debug.c (debug_sym_get_probes): Change type.
9176 * stap-probe.c (handle_stap_probe):
9177 (stap_static_probe_ops::get_probes): Change type.
9178 * probe.h (class static_probe_ops) <get_probes>: Change type.
9179 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9180 (parse_probes_in_pspace): Update.
9181 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9182 Update.
9183 (any_static_probe_ops::get_probes): Change type.
9184 * elfread.c (elfread_data): New typedef.
9185 (probe_key): Change type.
9186 (elf_get_probes): Likewise. Update.
9187 (probe_key_free): Remove.
9188 (_initialize_elfread): Update.
9189 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9190 Change type.
9191 (dtrace_process_dof_probe, dtrace_process_dof)
9192 (dtrace_static_probe_ops::get_probe): Change type.
9193
9194 2019-05-08 Tom Tromey <tom@tromey.com>
9195
9196 * xcoffread.c (struct xcoff_symfile_info): Rename from
9197 coff_symfile_info. Add initializers.
9198 (xcoff_objfile_data_key): Move lower. Change type.
9199 (XCOFF_DATA): Rewrite.
9200 (xcoff_free_info): Remove.
9201 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9202 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9203 (xcoff_initial_scan): Update.
9204
9205 2019-05-08 Tom Tromey <tom@tromey.com>
9206
9207 * solib-svr4.c (struct svr4_info): Add initializers and
9208 destructor.
9209 <probes_table>: Now an htab_up.
9210 (solib_svr4_pspace_data): Change type.
9211 (free_probes_table): Simplify.
9212 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9213 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9214 (probes_table_remove_objfile_probes, register_solib_event_probe)
9215 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9216 (_initialize_svr4_solib): Update.
9217
9218 2019-05-08 Tom Tromey <tom@tromey.com>
9219
9220 * remote.c (remote_pspace_data): Change type.
9221 (remote_pspace_data_cleanup): Remove.
9222 (get_remote_exec_file, set_pspace_remote_exec_file)
9223 (_initialize_remote): Update.
9224
9225 2019-05-08 Tom Tromey <tom@tromey.com>
9226
9227 * breakpoint.c (breakpoint_objfile_key): Change type.
9228 (get_breakpoint_objfile_data): Update.
9229 (free_breakpoint_objfile_data): Remove.
9230 (_initialize_breakpoint): Update.
9231
9232 2019-05-08 Tom Tromey <tom@tromey.com>
9233
9234 * linux-tdep.c (struct linux_info): Add initializers.
9235 (linux_inferior_data): Move. Change type.
9236 (invalidate_linux_cache_inf): Update.
9237 (linux_inferior_data_cleanup): Remove.
9238 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9239
9240 2019-05-08 Tom Tromey <tom@tromey.com>
9241
9242 * auxv.c (auxv_inferior_data): Move. Change type.
9243 (auxv_inferior_data_cleanup): Remove.
9244 (invalidate_auxv_cache_inf): Rewrite.
9245 (get_auxv_inferior_data, _initialize_auxv): Update.
9246
9247 2019-05-08 Tom Tromey <tom@tromey.com>
9248
9249 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9250 (symfile_debug_objfile_data_key): Change type.
9251 (symfile_debug_installed, debug_qf_has_symbols)
9252 (debug_qf_find_last_source_symtab)
9253 (debug_qf_forget_cached_source_info)
9254 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9255 (debug_qf_print_stats, debug_qf_dump)
9256 (debug_qf_expand_symtabs_for_function)
9257 (debug_qf_expand_all_symtabs)
9258 (debug_qf_expand_symtabs_with_fullname)
9259 (debug_qf_map_matching_symbols)
9260 (debug_qf_expand_symtabs_matching)
9261 (debug_qf_find_pc_sect_compunit_symtab)
9262 (debug_qf_map_symbol_filenames)
9263 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9264 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9265 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9266 (debug_sym_read_linetable, debug_sym_relocate): Update.
9267 (symfile_debug_free_objfile): Remove.
9268 (install_symfile_debug_logging, _initialize_symfile_debug):
9269 Update.
9270
9271 2019-05-08 Tom Tromey <tom@tromey.com>
9272
9273 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9274 allocate_on_obstack.
9275 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9276 (get_dwarf2_per_objfile): Update.
9277 (set_dwarf2_per_objfile): Remove.
9278 (dwarf2_has_info, dwarf2_get_section_info): Update.
9279 (dwarf2_free_objfile): Remove.
9280 (_initialize_dwarf2_read): Update.
9281
9282 2019-05-08 Tom Tromey <tom@tromey.com>
9283
9284 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9285 initializers.
9286 <unsupported_script_warning_printed,
9287 script_not_found_warning_printed>: Now bool.
9288 (auto_load_pspace_data): Change type.
9289 (~auto_load_pspace_info): Rename from
9290 auto_load_pspace_data_cleanup.
9291 (get_auto_load_pspace_data, init_loaded_scripts_info)
9292 (clear_section_scripts, maybe_print_unsupported_script_warning)
9293 (maybe_print_script_not_found_warning, _initialize_auto_load):
9294 Update.
9295
9296 2019-05-08 Tom Tromey <tom@tromey.com>
9297
9298 * objfiles.c (objfile_pspace_info): Add destructor and
9299 initializers.
9300 (objfiles_pspace_data): Change type.
9301 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9302 (get_objfile_pspace_data): Update.
9303 (objfiles_bfd_data): Change type.
9304 (get_objfile_bfd_data): Update.
9305 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9306
9307 2019-05-08 Tom Tromey <tom@tromey.com>
9308
9309 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9310 Change type.
9311 (get_catch_syscall_inferior_data): Update.
9312 (catch_syscall_inferior_data_cleanup): Remove.
9313 (_initialize_break_catch_syscall): Update.
9314
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9316
9317 * inflow.c (struct terminal_info): Add destructor and
9318 initializers.
9319 (inflow_inferior_data): Change type.
9320 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9321 (get_inflow_inferior_data, inflow_inferior_exit)
9322 (swap_terminal_info, _initialize_inflow): Update.
9323
9324 2019-05-08 Tom Tromey <tom@tromey.com>
9325
9326 * target-dcache.c (target_dcache_cleanup): Remove.
9327 (target_dcache_aspace_key): Change type.
9328 (target_dcache_init_p, target_dcache_invalidate)
9329 (target_dcache_get, target_dcache_get_or_init)
9330 (_initialize_target_dcache): Update.
9331 * dcache.h (struct dcache_deleter): New.
9332
9333 2019-05-08 Tom Tromey <tom@tromey.com>
9334
9335 * symtab.c (struct symbol_cache): Add destructor and
9336 initializers.
9337 (symbol_cache_key): Move. Change type.
9338 (make_symbol_cache, free_symbol_cache): Remove.
9339 (get_symbol_cache): Update.
9340 (symbol_cache_cleanup): Remove.
9341 (ALL_PSPACES, symbol_cache_flush)
9342 (maintenance_print_symbol_cache)
9343 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9344 Update.
9345
9346 2019-05-08 Tom Tromey <tom@tromey.com>
9347
9348 * symtab.c (struct main_info): Add destructor and initializers.
9349 (main_progspace_key): Move. Change type.
9350 (get_main_info): Update.
9351 (main_info_cleanup): Remove.
9352 (_initialize_symtab): Update.
9353
9354 2019-05-08 Tom Tromey <tom@tromey.com>
9355
9356 * registry.h (DECLARE_REGISTRY): Define the _key class.
9357
9358 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * NEWS: Merge two 'New commands' sections.
9361
9362 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9363
9364 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9365 parameter and use Ada language definition instead.
9366 (ada_val_print_ptr): Remove unused language parameter.
9367 (ada_val_print_num): Remove language parameter and use Ada language
9368 definition instead.
9369 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9370 parameter.
9371 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9372 parameter and use Ada language definition instead.
9373 (ada_val_print_1): Update all ada_val_print_xxx calls.
9374 Remove language parameter.
9375 (ada_val_print): Update ada_val_print_1 call.
9376
9377 2019-05-08 Tom Tromey <tromey@adacore.com>
9378
9379 * remote.c (remote_hw_watchpoint_limit)
9380 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9381 Now static.
9382
9383 2019-05-08 Tom Tromey <tromey@adacore.com>
9384
9385 * maint.c (_initialize_maint_cmds): Move initialization code to
9386 remote.c.
9387 (watchdog, show_watchdog): Move to remote.c.
9388 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9389 "watchdog" static.
9390 (_initialize_remote): Move initialization code from maint.c.
9391 * defs.h (watchdog): Don't declare.
9392
9393 2019-05-08 Tom Tromey <tromey@adacore.com>
9394
9395 * tui/tui-interp.c: Include main.h.
9396 * interps.c: Include main.h.
9397 * main.h (interpreter_p): Declare.
9398 * defs.h (interpreter_p): Don't declare.
9399
9400 2019-05-08 Tom Tromey <tromey@adacore.com>
9401
9402 * dwarf2loc.c: Include dwarf2read.h.
9403 * defs.h (read_unsigned_leb128): Don't declare.
9404 * dwarf2read.h (read_unsigned_leb128): Declare.
9405
9406 2019-05-08 Tom Tromey <tromey@adacore.com>
9407
9408 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9409 method.
9410
9411 2019-05-08 Tom Tromey <tromey@adacore.com>
9412
9413 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9414 when no wrap column is set.
9415
9416 2019-05-08 Tom Tromey <tromey@adacore.com>
9417
9418 * c-lang.c (c_get_string): Handle non-C-style arrays.
9419
9420 2019-05-08 Tom Tromey <tromey@adacore.com>
9421
9422 * typeprint.c (print_offset_data::update): Print the bit offset,
9423 not the number of bits remaining.
9424
9425 2019-05-08 Tom Tromey <tromey@adacore.com>
9426
9427 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9428 padding at end of comment.
9429
9430 2019-05-08 Tom Tromey <tromey@adacore.com>
9431
9432 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9433 Compare main types.
9434
9435 2019-05-06 Tom Tromey <tom@tromey.com>
9436
9437 * common/scoped_mmap.c: Include common-defs.h.
9438 * common/scoped_mmap.h: Don't include config.h.
9439
9440 2019-05-04 Tom Tromey <tom@tromey.com>
9441
9442 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9443 (struct aarch64_call_info): Add initializers.
9444 <si>: Now a std::vector.
9445 (pass_on_stack, aarch64_push_dummy_call): Update.
9446
9447 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9448 Tom Tromey <tom@tromey.com>
9449
9450 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9451 (ppc_threads): Now a std::vector. Now static.
9452 (hwdebug_find_thread_points_by_tid)
9453 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9454 Update.
9455
9456 2019-05-04 Tom Tromey <tom@tromey.com>
9457
9458 * arc-tdep.c (arc_tdesc_init): Return bool.
9459
9460 2019-05-04 Tom Tromey <tom@tromey.com>
9461
9462 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9463 Use gdb_assert_not_reached.
9464
9465 2019-05-04 Tom Tromey <tom@tromey.com>
9466
9467 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9468 "false".
9469
9470 2019-05-04 Tom Tromey <tom@tromey.com>
9471
9472 * arc-tdep.c (arc_tdesc_init): Use bool.
9473
9474 2019-05-04 Tom Tromey <tom@tromey.com>
9475
9476 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9477
9478 2019-05-04 Tom Tromey <tom@tromey.com>
9479
9480 * cli/cli-cmds.c (valid_command_p): Return bool.
9481
9482 2019-05-04 Tom Tromey <tom@tromey.com>
9483
9484 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9485 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9486
9487 2019-05-04 Raul Tambre <raul@tambre.ee>
9488
9489 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9490 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9491 operator for comparison.
9492
9493 2019-05-04 Tom Tromey <tom@tromey.com>
9494
9495 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9496 (lookup_partial_symbol, print_partial_symbols)
9497 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9498 (psymbol_compare): Update.
9499 (add_psymbol_to_bcache): Clear the entire psymbol.
9500 (maintenance_check_psymtabs): Update.
9501 * psympriv.h (struct partial_symbol): Don't derive from
9502 general_symbol_info.
9503 <obj_section, unrelocated_address, address,
9504 set_unrelocated_address>: Update.
9505 <ginfo>: New member.
9506 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9507 (debug_names::write_psymbols): Update.
9508
9509 2019-05-04 Tom de Vries <tdevries@suse.de>
9510
9511 * contrib/cc-with-tweaks.sh: Support -n arg.
9512
9513 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9514
9515 * corelow.c (core_target::detach): Ensure frame cache and
9516 register caches are cleared.
9517 inferior.c (exit_inferior_1): Likewise.
9518
9519 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9520 Tom Tromey <tom@tromey.com>
9521
9522 * dictionary.c (collate_pending_symbols_by_language): Remove
9523 "struct" from foreach.
9524 * symtab.c (lookup_global_symbol_from_objfile)
9525 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9526 foreach.
9527 * ser-tcp.c (net_open): Remove "struct" from foreach.
9528 * objfiles.c (objfile_relocate, objfile_rebase)
9529 (objfile_has_symbols): Remove "struct" from foreach.
9530 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9531 from foreach.
9532 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9533 foreach.
9534 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9535 "struct" from foreach.
9536 * ada-lang.c (create_excep_cond_exprs)
9537 (ada_exception_catchpoint_cond_string): Remove "struct" from
9538 foreach.
9539
9540 2019-05-03 Tom Tromey <tromey@adacore.com>
9541
9542 * ada-exp.y (convert_char_literal): Check suffix of each
9543 enumerator.
9544
9545 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9546
9547 PR ada/21406:
9548 * ada-exp.y (yywrap): Don't define.
9549 * ada-lex.l (%option): Add noyywrap
9550 (yywrap): Remove.
9551
9552 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9553
9554 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9555 _WIN32_WINNT to the XP level, unless already defined to a higher
9556 level.
9557
9558 * unittests/parse-connection-spec-selftests.c:
9559 * ser-tcp.c:
9560 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9561 override.
9562
9563 * symfile.c (find_separate_debug_file): Remove colon from the
9564 drive spec of DOS/Windows file names of the target, so that the
9565 file name produced from DEBUGDIR and the target's directory will
9566 be valid on DOS/Windows systems.
9567
9568 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9569
9570 * rust-lang.c (val_print_struct): Handle printing structures
9571 containing strings.
9572
9573 2019-05-02 Tom Tromey <tromey@adacore.com>
9574
9575 * valarith.c (_initialize_valarith): Remove.
9576
9577 2019-05-01 Tom Tromey <tromey@adacore.com>
9578
9579 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9580 bitfields.
9581
9582 2019-05-01 Tom Tromey <tromey@adacore.com>
9583
9584 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9585 for big-endian copies.
9586
9587 2019-04-30 Ali Tamur <tamur@google.com>
9588 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9589 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9590 (read_3_bytes): New function.
9591
9592 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9593
9594 * windows-nat.c (main_thread_id): Delete.
9595 (handle_output_debug_string): Replace main_thread_id by
9596 current_event.dwThreadId.
9597 (fake_create_process): Likewise.
9598 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9599 Do not set main_thread_id.
9600 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9601 current_event.dwThreadId.
9602 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9603
9604 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9605
9606 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9607 Use current_event.dwThreadId instead of main_thread_id.
9608
9609 2019-04-30 Tom Tromey <tromey@adacore.com>
9610
9611 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9612 (create_excep_cond_exprs): Iterate over program spaces.
9613 (ada_exception_catchpoint_cond_string): Examine all minimal
9614 symbols for exception types.
9615
9616 2019-04-30 Tom Tromey <tromey@adacore.com>
9617
9618 PR c++/24470:
9619 * dwarf2read.c (process_structure_scope): Handle case where type
9620 has template parameters but no symbol was created.
9621
9622 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9623 Chris January <chris.january@arm.com>
9624
9625 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9626 qualifier.
9627 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9628
9629 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * f-typeprint.c (f_print_type): Update rules for printing
9632 whitespace.
9633 (f_type_print_varspec_suffix): Likewise.
9634
9635 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9636 Chris January <chris.january@arm.com>
9637
9638 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9639 function arguments.
9640
9641 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9642
9643 * f-lang.c (build_fortran_types): Change name of void type to
9644 lower case.
9645 * f-typeprint.c (f_type_print_base): Print the name of the void
9646 type, rather than a fixed string.
9647 * f-valprint.c (f_decorations): Use lower case void string.
9648
9649 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9650 Chris January <chris.january@arm.com>
9651
9652 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9653 types for Fortran.
9654
9655 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9656 Chris January <chris.january@arm.com>
9657 David Lecomber <david.lecomber@arm.com>
9658
9659 * f-exp.y (BINOP_INTRINSIC): New token.
9660 (exp): New parser rule handling BINOP_INTRINSIC.
9661 (f77_keywords): Add new builtin procedures.
9662 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9663 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9664 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9665 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9666 (print_unop_subexp_f): New function.
9667 (print_binop_subexp_f): New function.
9668 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9669 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9670 (dump_subexp_body_f): Likewise.
9671 (operator_check_f): Likewise.
9672 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9673 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9674
9675 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9678 UNOP_KIND.
9679 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9680 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9681 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9682 (operator_length_f): New fuction.
9683 (print_subexp_f): New function.
9684 (op_name_f): New function.
9685 (dump_subexp_body_f): New function.
9686 (operator_check_f): New function.
9687 (exp_descriptor_f): Replace standard expression handling functions
9688 with new functions.
9689 * gdb/fortran-operator.def: New file.
9690 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9691 * gdb/std-operator.def: Remove UNOP_KIND.
9692
9693 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9694
9695 * std-operator.def: Remove unbalanced, stray double quote
9696 character.
9697
9698 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9699 Chris January <chris.january@arm.com>
9700 Daniel Everett <daniel.everett@arm.com>
9701 Nick Forrington <nick.forrington@arm.com>
9702 Richard Bunt <richard.bunt@arm.com>
9703
9704 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9705 of depth when printing anonymous structs or unions.
9706 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9707 Don't print either the top-level value, or the children if the
9708 max-depth is exceeded.
9709 (ppscm_print_children): When printing the key of a map, allow one
9710 extra level of depth.
9711 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9712 print either the top-level value, or the children if the max-depth
9713 is exceeded.
9714 (print_children): When printing the key of a map, allow one extra
9715 level of depth.
9716 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9717 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9718 (user_print_options): Initialise max_depth field.
9719 (val_print_scalar_or_string_type_p): New function.
9720 (val_print): Check to see if the max depth has been reached.
9721 (val_print_check_max_depth): Define new function.
9722 (show_print_max_depth): New function.
9723 (_initialize_valprint): Add 'print max-depth' option.
9724 * valprint.h (struct value_print_options) <max_depth>: New field.
9725 (val_print_check_max_depth): Declare new function.
9726 * NEWS: Document new feature.
9727
9728 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9729
9730 * ada-lang.c (ada_language_defn): Initialise new field.
9731 * c-lang.c (c_is_string_type_p): New function.
9732 (c_language_defn): Initialise new field.
9733 (cplus_language_defn): Initialise new field.
9734 (asm_language_defn): Initialise new field.
9735 (minimal_language_defn): Initialise new field.
9736 * c-lang.h (c_is_string_type_p): Declare new function.
9737 * d-lang.c (d_language_defn): Initialise new field.
9738 * f-lang.c (f_is_string_type_p): New function.
9739 (f_language_defn): Initialise new field.
9740 * go-lang.c (go_is_string_type_p): New function.
9741 (go_language_defn): Initialise new field.
9742 * language.c (default_is_string_type_p): New function.
9743 (unknown_language_defn): Initialise new field.
9744 (auto_language_defn): Initialise new field.
9745 * language.h (struct language_defn) <la_is_string_type_p>: New
9746 member variable.
9747 (default_is_string_type_p): Declare new function.
9748 * m2-lang.c (m2_language_defn): Initialise new field.
9749 * objc-lang.c (objc_language_defn): Initialise new field.
9750 * opencl-lang.c (opencl_language_defn): Initialise new field.
9751 * p-lang.c (pascal_is_string_type_p): New function.
9752 (pascal_language_defn): Initialise new field.
9753 * rust-lang.c (rust_is_string_type_p): New function.
9754 (rust_language_defn): Initialise new field.
9755
9756 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9757
9758 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9759 New field.
9760 * ada-lang.c (ada_language_defn): Initialise new field.
9761 * c-lang.c (c_language_defn): Likewise.
9762 (cplus_language_defn): Likewise.
9763 (asm_language_defn): Likewise.
9764 (minimal_language_defn): Likewise.
9765 * d-lang.c (d_language_defn): Likewise.
9766 * f-lang.c (f_language_defn): Likewise.
9767 * go-lang.c (go_language_defn): Likewise.
9768 * language.c (unknown_language_defn): Likewise.
9769 (auto_language_defn): Likewise.
9770 * m2-lang.c (m2_language_defn): Likewise.
9771 * objc-lang.c (objc_language_defn): Likewise.
9772 * opencl-lang.c (opencl_language_defn): Likewise.
9773 * p-lang.c (pascal_language_defn): Likewise.
9774 * rust-lang.c (rust_language_defn): Likewise.
9775
9776 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9777
9778 * ada-lang.c (ada_is_character_type): Change return type to bool.
9779 (ada_is_string_type): Likewise.
9780 * ada-lang.h (ada_is_character_type): Update declaration
9781 (ada_is_string_type): Likewise.
9782
9783 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9784
9785 Support style in 'frame|thread apply'
9786
9787 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9788 * record.c (record_start, record_stop): Update callers of
9789 execute_command_to_string with false.
9790 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9791 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9792 methods.
9793 (class string_file): New constructor with term_out parameter.
9794 Override methods term_out and can_emit_style_escape. New member
9795 term_out.
9796 (class stdio_file): Override can_emit_style_escape.
9797 (class tee_file): Override term_out and can_emit_style_escape.
9798 * utils.h (can_emit_style_escape): Remove.
9799 * utils.c (can_emit_style_escape): Likewise.
9800 Update all callers of can_emit_style_escape (SOMESTREAM) to
9801 SOMESTREAM->can_emit_style_escape.
9802 * source-cache.c (source_cache::get_source_lines): Likewise.
9803 * stack.c (frame_apply_command_count): Call execute_command_to_string
9804 passing the term_out characteristic of the current gdb_stdout.
9805 * thread.c (thr_try_catch_cmd): Likewise.
9806 * top.c (execute_command_to_string): pass term_out parameter
9807 to construct the string_file for the command output.
9808 * ui-file.c (term_cli_styling): New function (most code moved
9809 from utils.c can_emit_style_escape).
9810 (string_file::string_file, string_file::can_emit_style_escape,
9811 stdio_file::can_emit_style_escape, tee_file::term_out,
9812 tee_file::can_emit_style_escape): New functions.
9813
9814 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9815
9816 * NEWS: Mention the new set|show may-call-functions.
9817 * infcall.c (may_call_functions_p): New variable.
9818 (show_may_call_functions_p): New function.
9819 (call_function_by_hand_dummy): Throws an error if not
9820 may-call-functions.
9821 (_initialize_infcall): Call add_setshow_boolean_cmd for
9822 may-call-functions.
9823
9824 2019-04-25 Keith Seitz <keiths@redhat.com>
9825
9826 PR c++/24367
9827 * cp-support.c (inspect_type): Don't attempt substitutions
9828 of symbol with the same name.
9829
9830 2019-04-25 Tom Tromey <tromey@adacore.com>
9831
9832 PR gdb/24475:
9833 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9834 static.
9835
9836 2019-04-25 Tom Tromey <tromey@adacore.com>
9837
9838 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9839 rvalue reference.
9840 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9841 (gdb_xml_parser::parse): Use std::move.
9842 * python/python-internal.h (gdbpy_convert_exception): Take a const
9843 reference.
9844 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9845 std::move.
9846 * python/py-utils.c (gdbpy_convert_exception): Take a const
9847 reference.
9848 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9849 Use std::move.
9850 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9851 Use std::move.
9852 * mi/mi-main.c (mi_print_exception): Take a const reference.
9853 * main.c (handle_command_errors): Take a const reference.
9854 * linespec.c (parse_linespec): Use std::move.
9855 * infcall.c (run_inferior_call): Use std::move.
9856 (call_function_by_hand_dummy): Use std::move.
9857 * exec.c (try_open_exec_file): Use std::move.
9858 * exceptions.h (exception_print, exception_fprintf)
9859 (exception_print_same): Update.
9860 * exceptions.c (print_exception, exception_print)
9861 (exception_fprintf, exception_print_same): Change parameters to
9862 const reference.
9863 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9864 * common/new-op.c: Use std::move.
9865 * common/common-exceptions.h (struct gdb_exception): Add move
9866 constructor.
9867 (struct gdb_exception_error, struct gdb_exception_quit, struct
9868 gdb_quit_bad_alloc): Change constructor to move constructor.
9869 (throw_exception): Change parameter to rvalue reference.
9870 * common/common-exceptions.c (throw_exception): Take rvalue
9871 reference.
9872 * cli/cli-interp.c (safe_execute_command): Use std::move.
9873 * breakpoint.c (insert_bp_location, location_to_sals): Use
9874 std::move.
9875
9876 2019-04-25 Tom Tromey <tromey@adacore.com>
9877
9878 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9879 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9880 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9881 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9882 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9883 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9884 guile/scm-value.c: Use unpack.
9885 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9886 gdbscm_gdb_exception.
9887 (gdbscm_throw_gdb_exception): Likewise.
9888 (struct gdbscm_gdb_exception): New.
9889 (unpack): New function.
9890 (gdbscm_wrap): Use unpack.
9891
9892 2019-04-25 Tom Tromey <tromey@adacore.com>
9893
9894 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9895 (gdb_rl_callback_handler): Use std::move.
9896 * common/common-exceptions.h (struct gdb_exception): Add move
9897 assignment operator.
9898 (throw_exception_sjlj): Change "exception" to const reference.
9899 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9900 (throw_exception_sjlj): Change "exception" to const reference.
9901
9902 2019-04-25 Tom Tromey <tromey@adacore.com>
9903
9904 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9905 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9906 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9907 Update.
9908 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9909 Update.
9910 * mi/mi-interp.c (mi_interp::exec): Update.
9911 * linespec.c (parse_linespec): Update.
9912 * infcall.c (run_inferior_call): Update.
9913 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9914 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9915 (gdbscm_lookup_global_symbol): Update.
9916 * guile/scm-param.c (gdbscm_parameter_value): Update.
9917 * guile/scm-frame.c (gdbscm_frame_read_register)
9918 (gdbscm_frame_read_var): Update.
9919 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9920 * exec.c (try_open_exec_file): Update.
9921 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9922 (gdb_rl_callback_handler): Update.
9923 * common/common-exceptions.h (exception_none): Don't declare.
9924 * common/common-exceptions.c (exception_none): Don't define.
9925 (struct catcher) <exception>: Update.
9926 * cli/cli-interp.c (safe_execute_command): Update.
9927 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9928
9929 2019-04-25 Ali Tamur <tamur@google.com>
9930
9931 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9932 (read_attribute_value): Likewise.
9933 (dwarf2_read_addr_index): Update comment.
9934 (read_str_index): Add DW_FORM_strx.
9935 (dwarf2_string_attr): Likewise.
9936 (dwarf2_const_value_attr): Likewise.
9937 (dump_die_shallow): Likewise.
9938 (dwarf2_fetch_constant_bytes): Likewise.
9939 (skip_form_bytes): Likewise.
9940 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9941
9942 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9943
9944 PR corefiles/11608
9945 PR corefiles/18187
9946 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9947 OFFSET. Verify if current mapping contains an ELF header.
9948 (linux_find_memory_regions_full): Adjust call to
9949 dump_mapping_p.
9950
9951 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9952 Kang Li <kanglictf@gmail.com>
9953
9954 PR gdb/21600
9955
9956 * dwarf2-frame.c (read_initial_length): Be consistent about using
9957 unsigned representation of length.
9958 (decode_frame_entry_1): Likewise. Check for wraparound of
9959 end pointer as well as buffer overflow.
9960
9961 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9962
9963 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9964 "vq".
9965
9966 2019-04-24 Tom Tromey <tromey@adacore.com>
9967
9968 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9969
9970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9971
9972 * s12z-tdep.c (s12z_unwind_pc): Delete.
9973 (s12z_unwind_sp): Delete.
9974 (s12z_gdbarch_init): Don't register deleted functions with
9975 gdbarch.
9976
9977 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9978
9979 * rl78-tdep.c (rl78_unwind_sp): Delete.
9980 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9981
9982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9985 (xstormy16_unwind_pc): Delete.
9986 (xstormy16_dummy_id): Delete.
9987 (xstormy16_gdbarch_init): Don't register deleted functions with
9988 gdbarch.
9989
9990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9991
9992 * vax-tdep.c (vax_unwind_pc): Delete.
9993 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9994
9995 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9996
9997 * v850-tdep.c (v850_unwind_sp): Delete.
9998 (v850_unwind_pc): Delete.
9999 (v850_dummy_id): Delete.
10000 (v850_gdbarch_init): Don't register deleted functions with
10001 gdbarch.
10002
10003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10006 (tilegx_unwind_pc): Delete.
10007 (tilegx_unwind_dummy_id): Delete.
10008 (tilegx_gdbarch_init): Don't register deleted functions with
10009 gdbarch.
10010
10011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10014 (tic6x_dummy_id): Delete.
10015 (tic6x_gdbarch_init): Don't register deleted functions with
10016 gdbarch.
10017
10018 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10019
10020 * sparc-tdep.c (sparc_unwind_pc): Delete.
10021 (sparc32_gdbarch_init): Don't register deleted function with
10022 gdbarch.
10023
10024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10025
10026 * sh-tdep.c (sh_unwind_sp): Delete.
10027 (sh_unwind_pc): Delete.
10028 (sh_dummy_id): Delete.
10029 (sh_gdbarch_init): Don't register deleted functions with
10030 gdbarch.
10031
10032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * score-tdep.c (score_unwind_sp): Delete.
10035 (score_unwind_pc): Delete.
10036 (score_dummy_id): Delete.
10037 (score_gdbarch_init): Don't register deleted functions with
10038 gdbarch.
10039
10040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * rx-tdep.c (rx_unwind_pc): Delete.
10043 (rx_unwind_sp): Delete.
10044 (rx_dummy_id): Delete.
10045 (rx_gdbarch_init): Don't register deleted functions with
10046 gdbarch. Update comment.
10047
10048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10049
10050 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10051 (rs6000_dummy_id): Delete.
10052 (rs6000_gdbarch_init): Don't register deleted functions with
10053 gdbarch.
10054
10055 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 * or1k-tdep.c (or1k_dummy_id): Delete.
10058 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10059
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * nios2-tdep.c (nios2_dummy_id): Delete.
10063 (nios2_unwind_sp): Delete.
10064 (nios2_gdbarch_init): Don't register deleted functions with
10065 gdbarch.
10066
10067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10068
10069 * nds32-tdep.c (nds32_dummy_id): Delete.
10070 (nds32_unwind_pc): Delete.
10071 (nds32_unwind_sp): Delete.
10072 (nds32_gdbarch_init): Don't register deleted functions with
10073 gdbarch.
10074
10075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10076
10077 * msp430-tdep.c (msp430_unwind_pc): Delete.
10078 (msp430_unwind_sp): Delete.
10079 (msp430_dummy_id): Delete.
10080 (msp430_gdbarch_init): Don't register deleted functions with
10081 gdbarch.
10082
10083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * moxie-tdep.c (moxie_unwind_sp): Delete.
10086 (moxie_unwind_pc): Delete.
10087 (moxie_dummy_id): Delete.
10088 (moxie_gdbarch_init): Don't register deleted functions with
10089 gdbarch.
10090
10091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10094 (mn10300_unwind_pc): Delete.
10095 (mn10300_unwind_sp): Delete.
10096 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10097 mn10300_unwind_sp.
10098 (mn10300_frame_unwind_init): Don't register deleted functions with
10099 gdbarch.
10100
10101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * mep-tdep.c (mep_unwind_pc): Delete.
10104 (mep_unwind_sp): Delete.
10105 (mep_dummy_id): Delete.
10106 (mep_gdbarch_init): Don't register deleted functions with
10107 gdbarch.
10108
10109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10110
10111 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10112 (m68hc11_unwind_sp): Delete.
10113 (m68hc11_gdbarch_init): Don't register deleted functions with
10114 gdbarch.
10115
10116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10117
10118 * m32r-tdep.c (m32r_unwind_sp): Delete.
10119 (m32r_unwind_pc): Delete.
10120 (m32r_dummy_id): Delete.
10121 (m32r_gdbarch_init): Don't register deleted functions with
10122 gdbarch.
10123
10124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10125
10126 * m32c-tdep.c (m32c_unwind_pc): Delete.
10127 (m32c_unwind_sp): Delete.
10128 (m32c_dummy_id): Delete.
10129 (m32c_gdbarch_init): Don't register deleted functions with
10130 gdbarch.
10131
10132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10133
10134 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10135 (lm32_unwind_pc): Delete.
10136 (lm32_dummy_id): Delete.
10137 (lm32_gdbarch_init): Don't register deleted functions with
10138 gdbarch.
10139
10140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10143 (iq2000_unwind_pc): Delete.
10144 (iq2000_dummy_id): Delete.
10145 (iq2000_gdbarch_init): Don't register deleted functions with
10146 gdbarch.
10147
10148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10149
10150 * nds32-tdep.c (nds32_type_align): Delete.
10151 (nds32_push_dummy_call): Use type_align instead.
10152
10153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10154
10155 * arm-tdep.c (arm_type_align): Only handle vector override case.
10156 (arm_push_dummy_call): Use type_align.
10157 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10158
10159 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10160
10161 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10162 case.
10163 (pass_on_stack): Use type_align.
10164 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10165 function.
10166
10167 2019-04-23 Tom Tromey <tromey@adacore.com>
10168
10169 * dwarf2read.c (line_header::file_name_at): Remove unused
10170 overload.
10171
10172 2019-04-23 Tom de Vries <tdevries@suse.de>
10173
10174 PR gdb/24438
10175 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10176 invocation.
10177
10178
10179 2019-03-27 Ali Tamur <tamur@google.com>
10180
10181 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10182 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10183 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10184 (dwarf_expr_context::get_addr_index): Likewise
10185 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10186 (symbol_needs_eval_context::get_addr_index): Likewise
10187 (disassemble_dwarf_expression): Add DW_OP_addrx
10188 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10189 (read_cutu_die_from_dwo): Update comment
10190 (skip_one_die): Add DW_FORM_addrx
10191 (read_attribute_value): Likewise
10192 (var_decode_location): Add DW_OP_addrx
10193 (dwarf2_const_value_attr): Add DW_FORM_addrx
10194 (dump_die_shallow): Likewise
10195 (dwarf2_fetch_constant_bytes): Likewise
10196 (decode_locdesc): Add DW_OP_addrx
10197 (skip_form_bytes): Add DW_FORM_addrx
10198
10199 2019-04-22 Ali Tamur <tamur@google.com>
10200
10201 * MAINTAINERS (Write After Approval): Add self.
10202
10203 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10206 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10207 (open_symbol_file_object): Likewise.
10208 (svr4_default_sos): Add info parameter.
10209 (svr4_read_so_list): Likewise.
10210 (svr4_current_sos_direct): Adjust functions calls to pass down
10211 info.
10212 (svr4_current_sos_1): Add info parameter.
10213 (svr4_current_sos): Call get_svr4_info, pass info down to
10214 svr4_current_sos_1.
10215 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10216 get_svr4_info.
10217 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10218 get_svr4_info.
10219 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10220 to get_svr4_info.
10221 (probes_table_remove_objfile_probes): Likewise.
10222 (register_solib_event_probe): Add info parameter.
10223 (solist_update_incremental): Pass info parameter down to
10224 svr4_read_so_list.
10225 (disable_probes_interface): Add info parameter.
10226 (svr4_handle_solib_event): Pass current_program_space to
10227 get_svr4_info. Adjust disable_probes_interface cleanup.
10228 (svr4_create_probe_breakpoints): Add info parameter, pass it
10229 down to register_solib_event_probe.
10230 (svr4_create_solib_event_breakpoints): Add info parameter,
10231 pass it down to svr4_create_probe_breakpoints.
10232 (enable_break): Pass info down to
10233 svr4_create_solib_event_breakpoints.
10234 (svr4_solib_create_inferior_hook): Pass current_program_space to
10235 get_svr4_info.
10236 (svr4_clear_solib): Likewise.
10237
10238 2019-04-22 Pedro Alves <palves@redhat.com>
10239
10240 * solib-svr4.c (svr4_free_objfile_observer): New.
10241 (probe_and_action::objfile): New field.
10242 (probes_table_htab_remove_objfile_probes)
10243 (probes_table_remove_objfile_probes): New functions.
10244 (register_solib_event_probe): Add 'objfile' parameter. Store it
10245 in the new probe_and_action. Don't store the probe in 'lookup'.
10246 (svr4_create_probe_breakpoints): Pass objfile to
10247 register_solib_event_probe.
10248 (_initialize_svr4_solib): Register a free_objfile observer.
10249
10250 2019-04-19 Tom Tromey <tom@tromey.com>
10251
10252 * common/queue.h: Remove.
10253
10254 2019-04-19 Tom Tromey <tom@tromey.com>
10255
10256 * event-loop.c: Don't include "common/queue.h".
10257
10258 2019-04-19 Tom Tromey <tom@tromey.com>
10259
10260 * remote.c (remote_target): Use delete.
10261 * remote-notif.h: Include <list>, not "common/queue.h".
10262 (notif_client_p): Remove typedef.
10263 (remote_notif_state): Add constructor, destructor, initializer.
10264 <notif_queue>: Now a std::list.
10265 (remote_notif_state_xfree): Don't declare.
10266 * remote-notif.c (remote_notif_process, handle_notification)
10267 (remote_notif_state_allocate): Update.
10268 (~remote_notif_state): Rename from remote_notif_state_xfree.
10269
10270 2019-04-19 Tom Tromey <tom@tromey.com>
10271
10272 * symfile.c (reread_symbols): Update.
10273 * objfiles.c (objfile_register_static_link)
10274 (objfile_lookup_static_link): Update
10275 (~objfile) Don't delete static_links.
10276 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10277
10278 2019-04-19 Tom Tromey <tom@tromey.com>
10279
10280 * type-stack.h (struct type_stack) <insert>: Constify string.
10281 * type-stack.c (type_stack::insert): Constify string.
10282 * gdbtypes.h (lookup_template_type): Update.
10283 (address_space_name_to_int): Update.
10284 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10285 const.
10286 (lookup_template_type): Make name const.
10287 * c-exp.y: Update rules.
10288 (lex_one_token, classify_name, classify_inner_name)
10289 (c_print_token): Update.
10290 * p-exp.y: Update rules.
10291 (yylex): Update.
10292 * f-exp.y: Update rules.
10293 (yylex): Update.
10294 * d-exp.y: Update rules.
10295 (lex_one_token, classify_name, classify_inner_name): Update.
10296 * parse.c (write_dollar_variable, copy_name): Return std::string.
10297 * parser-defs.h (copy_name): Change return type.
10298 * m2-exp.y: Update rules.
10299 (yylex): Update.
10300 * go-exp.y (lex_one_token): Update.
10301 Update rules.
10302 (classify_unsafe_function, classify_packaged_name)
10303 (classify_name, yylex): Update.
10304
10305 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10306
10307 * configure.ac: add --enable-source-highlight switch.
10308 * configure: Regenerate.
10309 * top.c (print_gdb_version): plumb --enable-source-highlight
10310 status to "show configuration".
10311
10312 2019-04-19 Tom Tromey <tromey@adacore.com>
10313
10314 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10315 Check ADA_TYPE_P.
10316 (empty_record, ada_template_to_fixed_record_type_1)
10317 (template_to_static_fixed_type)
10318 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10319 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10320 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10321 macros.
10322
10323 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10324
10325 PR symtab/24423:
10326 * source.c (print_source_lines_base): Advance "iter" when a
10327 control character is seen.
10328
10329 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10330
10331 * inferior.h (struct infcall_suspend_state_deleter):
10332 Catch exception in destructor to avoid crash.
10333
10334 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10335
10336 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10337 close to the add_com "shell".
10338
10339 2019-04-18 Tom Tromey <tromey@adacore.com>
10340
10341 * process-stratum-target.h (class process_stratum_target)
10342 <stratum>: Add "final".
10343
10344 2019-04-17 Tom Tromey <tromey@adacore.com>
10345
10346 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10347 against nullptr before use.
10348
10349 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10350
10351 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10352
10353 2019-04-17 Jim Wilson <jimw@sifive.com>
10354 Andrew Burgess <andrew.burgess@embecosm.com>
10355
10356 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10357 code read might fail, assume 4-byte breakpoint in that case.
10358
10359 2019-04-15 Leszek Swirski <leszeks@google.com>
10360
10361 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10362 rather than a hand-rolled POD check when checking for forced MEMORY
10363 classification.
10364
10365 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10366
10367 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10368 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10369 function.
10370 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10371 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10372 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10373 declaration.
10374
10375 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10376
10377 * aarch64-linux-nat.c
10378 (aarch64_linux_nat_target::thread_architecture): Add override.
10379 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10380 each VQ.
10381
10382 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10383
10384 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10385
10386 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10387
10388 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10389 target types of size 96-bits, add some additional comments, and
10390 check that the builtin type we found was the correct size.
10391
10392 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10393
10394 * utils.c (prompt_for_continue): Don't restore the styling at the
10395 end, as applied_style has the wrong value. This fixes styling in
10396 long lists of file names that are interrupted by the "Continue?"
10397 prompt.
10398
10399 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10400
10401 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10402 * c-lang.c (c_language_defn): Likewise.
10403 (cplus_language_defn): Likewise.
10404 (asm_language_defn): Likewise.
10405 (minimal_language_defn): Likewise.
10406 * d-lang.c (d_language_defn): Likewise.
10407 * f-lang.c (f_language_defn): Likewise.
10408 * go-lang.c (go_language_defn): Likewise.
10409 * language.c (unknown_language_defn): Likewise.
10410 (auto_language_defn): Likewise.
10411 * language.h (struct language_defn): Remove la_magic field.
10412 (LANG_MAGIC): Delete.
10413 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10414 * objc-lang.c (objc_language_defn): Likewise.
10415 * opencl-lang.c (opencl_language_defn): Likewise.
10416 * p-lang.c (pascal_language_defn): Likewise.
10417 * rust-lang.c (rust_language_defn): Likewise.
10418
10419 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * riscv-tdep.c (riscv_type_align): New function.
10422 (riscv_type_alignment): Delete.
10423 (riscv_arg_location): Use 'type_align'.
10424 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10425
10426 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10427
10428 * gdbtypes.c (type_align): A struct with no non-static fields also
10429 has alignment of 1.
10430
10431 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10434 component to 0.
10435 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10436 member.
10437 (riscv_struct_info::analyse): New implementation using new
10438 analyse_inner member function.
10439 (riscv_struct_info::field_offset): New member function.
10440 (riscv_struct_info::m_offsets): New member variable.
10441 (riscv_struct_info::analyse_inner): New private member function,
10442 takes the old implementation of riscv_struct_info::analyse but
10443 extended to track field offsets.
10444 (riscv_call_arg_struct): Update the struct folding special cases
10445 to handle cases where empty C++ structs, which are non-zero
10446 length, are found.
10447 (riscv_arg_location): Initialise the length of each location, a
10448 non-zero length now indicates the location is in use.
10449 (riscv_push_dummy_call): Allow for the first location having a
10450 non-zero offset when setting up arguments.
10451 (riscv_return_value): Likewise, but for return values.
10452
10453 2019-04-11 Tom Tromey <tromey@adacore.com>
10454
10455 * utils.c (internal_vproblem): Make "msg" const.
10456
10457 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10458
10459 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10460 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10461 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10462 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10463
10464 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10465
10466 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10467 function.
10468 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10469 of amd64_collect_native_gregset.
10470 (amd64_linux_nat_target::store_registers): Likewise.
10471
10472 2019-04-10 Tom Tromey <tom@tromey.com>
10473
10474 * symtab.c (lookup_global_symbol_from_objfile)
10475 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10476 * objfiles.h (class separate_debug_iterator): New.
10477 (class separate_debug_range): New.
10478 (struct objfile) <separate_debug_objfiles>: New method.
10479 (objfile_separate_debug_iterate): Don't declare.
10480 * objfiles.c (separate_debug_iterator::operator++): Rename from
10481 objfile_separate_debug_iterate.
10482 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10483 iterator.
10484 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10485 iterator.
10486
10487 2019-04-10 Tom Tromey <tom@tromey.com>
10488
10489 * symfile.c (reread_symbols): Remove old comment.
10490 * objfiles.c (free_all_objfiles): Fix a typo.
10491
10492 2019-04-10 Tom Tromey <tom@tromey.com>
10493
10494 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10495 * minsyms.c (lookup_minimal_symbol): Use foreach.
10496 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10497 (lookup_minimal_symbol_solib_trampoline): Likewise.
10498 * symfile.c (reread_symbols): Use foreach.
10499
10500 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10501 Tom Tromey <tromey@adacore.com>
10502
10503 PR rust/24414:
10504 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10505 (rust_lex_int_test): Change "value" to be LONGEST.
10506 (rust_lex_tests): Add test for long integer literal.
10507
10508 2019-04-09 Tom Tromey <tromey@adacore.com>
10509
10510 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10511 to bool.
10512 (extended_remote_target::attach): Update.
10513 (remote_target::remote_notice_new_inferior): Update.
10514 (remote_target::add_current_inferior_and_thread): Update.
10515 * inferior.c (exit_inferior_1): Use "false".
10516 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10517
10518 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10519
10520 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10521 the "start" command.
10522
10523 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10524
10525 * python/py-inferior.c (infpy_thread_from_thread_handle):
10526 Adjust comments to reflect renaming of thread_from_thread_handle
10527 to thread_from_handle. Adjust keywords. Fix type error message.
10528 (inferior_object_methods): Add thread_from_handle. Retain
10529 thread_from_thread_handle, but mark it as deprecated.
10530
10531 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10532
10533 * gdbthread.h (find_thread_by_handle): Revise declaration.
10534 * thread.c (find_thread_by_handle): Likewise. Adjust
10535 implementation too.
10536 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10537 support for buffer objects as handles.
10538
10539 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10540
10541 * python/py-infthread.c (thpy_thread_handle): New function.
10542 (thread_object_methods): Register thpy_thread_handle.
10543
10544 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10545
10546 * gdbthread.h (thread_to_thread_handle): Declare.
10547 * thread.c (gdbtypes.h): Include.
10548 (thread_to_thread_handle): New function.
10549
10550 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10551 (target_thread_info_to_thread_handle): Declare.
10552 * target.c (target_thread_info_to_thread_handle): New function.
10553 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10554 * target-delegates.c: Regenerate.
10555
10556 * linux-thread-db.c (class thread_db_target): Add method
10557 thread_info_to_thread_handle.
10558 (thread_db_target::thread_info_to_thread_handle): Define.
10559 * remote.c (class remote_target): Add new method
10560 thread_info_to_thread_handle.
10561 (remote_target::thread_info_to_thread_handle): Define.
10562
10563 2019-04-08 Pedro Alves <palves@redhat.com>
10564
10565 * common/common-exceptions.c (throw_exception): Don't create
10566 named object to throw; throw directly.
10567 (throw_it): Likewise. Don't initialize gdb_exception::message
10568 here, with new; pass FMT and AP to the ctor instead.
10569 * common/common-exceptions.h: Include <string>.
10570 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10571 const char *, va_list)): New ctor. Use std::make_shared.
10572 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10573 errors)): Delete.
10574 (gdb_exception_error::gdb_exception_error(enum errors, const char
10575 *, va_list)): New.
10576 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10577 Add assertion.
10578 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10579 errors)): Delete.
10580 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10581 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10582 Add assertion.
10583
10584 2019-04-08 Tom Tromey <tom@tromey.com>
10585
10586 * valops.c (value_rtti_indirect_type): Replace throw_exception
10587 with throw.
10588 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10589 with throw.
10590 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10591 throw.
10592 * target.c (target_translate_tls_address): Replace throw_exception
10593 with throw.
10594 * stack.c (frame_apply_command_count): Replace throw_exception
10595 with throw.
10596 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10597 throw.
10598 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10599 with throw.
10600 * rs6000-tdep.c (rs6000_frame_cache)
10601 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10602 * remote.c: Replace throw_exception with throw.
10603 * record-full.c (record_full_message, record_full_wait_1)
10604 (record_full_restore): Replace throw_exception with throw.
10605 * record-btrace.c:
10606 (get_thread_current_frame_id, record_btrace_start_replaying)
10607 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10608 (cmd_record_btrace_start): Replace throw_exception with throw.
10609 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10610 throw.
10611 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10612 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10613 * linespec.c:
10614 (find_linespec_symbols): Replace throw_exception with throw.
10615 * infrun.c (displaced_step_prepare, resume): Replace
10616 throw_exception with throw.
10617 * infcmd.c (post_create_inferior): Replace throw_exception with
10618 throw.
10619 * inf-loop.c (inferior_event_handler): Replace throw_exception
10620 with throw.
10621 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10622 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10623 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10624 (get_prev_frame_always, get_frame_pc_if_available)
10625 (get_frame_address_in_block_if_available, get_frame_language):
10626 Replace throw_exception with throw.
10627 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10628 throw_exception with throw.
10629 * eval.c (fetch_subexp_value, evaluate_var_value)
10630 (evaluate_funcall, evaluate_subexp_standard): Replace
10631 throw_exception with throw.
10632 * dwarf2loc.c (call_site_find_chain)
10633 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10634 Replace throw_exception with throw.
10635 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10636 with throw.
10637 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10638 throw.
10639 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10640 * completer.c (complete_line_internal): Replace throw_exception
10641 with throw.
10642 * compile/compile-object-run.c (compile_object_run): Replace
10643 throw_exception with throw.
10644 * cli/cli-script.c (process_next_line): Replace throw_exception
10645 with throw.
10646 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10647 (btrace_enable, btrace_maint_update_pt_packets): Replace
10648 throw_exception with throw.
10649 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10650 throw_exception with throw.
10651 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10652 throw_exception with throw.
10653 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10654 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10655 * aarch64-tdep.c (aarch64_make_prologue_cache)
10656 (aarch64_make_stub_cache): Replace throw_exception with throw.
10657
10658 2019-04-08 Tom Tromey <tom@tromey.com>
10659
10660 * common/common-exceptions.c (throw_exception): Rename from
10661 throw_exception_cxx. Remove old copy. Make argument const.
10662 (throw_it): Create and throw exception objects directly.
10663 * common/common-exceptions.h (throw_exception): Make argument
10664 const.
10665 (struct gdb_exception_error): Add constructor.
10666 (struct gdb_exception_quit): Add constructor.
10667
10668 2019-04-08 Tom Tromey <tom@tromey.com>
10669
10670 * common/common-exceptions.h (exception_rethrow): Don't declare.
10671 (TRY_SJLJ): Update comment.
10672 (TRY, CATCH, END_CATCH): Remove.
10673 * common/common-exceptions.c (exception_rethrow): Remove.
10674
10675 2019-04-08 Tom Tromey <tom@tromey.com>
10676
10677 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10678 Remove.
10679 (gdb_exception_error): Rename from
10680 gdb_exception_RETURN_MASK_ERROR.
10681 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10682 (gdb_quit_bad_alloc): Update.
10683 * aarch64-tdep.c: Update.
10684 * ada-lang.c: Update.
10685 * ada-typeprint.c: Update.
10686 * ada-valprint.c: Update.
10687 * amd64-tdep.c: Update.
10688 * arch-utils.c: Update.
10689 * break-catch-throw.c: Update.
10690 * breakpoint.c: Update.
10691 * btrace.c: Update.
10692 * c-varobj.c: Update.
10693 * cli/cli-cmds.c: Update.
10694 * cli/cli-interp.c: Update.
10695 * cli/cli-script.c: Update.
10696 * common/common-exceptions.c: Update.
10697 * common/new-op.c: Update.
10698 * common/selftest.c: Update.
10699 * compile/compile-c-symbols.c: Update.
10700 * compile/compile-cplus-symbols.c: Update.
10701 * compile/compile-object-load.c: Update.
10702 * compile/compile-object-run.c: Update.
10703 * completer.c: Update.
10704 * corelow.c: Update.
10705 * cp-abi.c: Update.
10706 * cp-support.c: Update.
10707 * cp-valprint.c: Update.
10708 * darwin-nat.c: Update.
10709 * disasm-selftests.c: Update.
10710 * dtrace-probe.c: Update.
10711 * dwarf-index-cache.c: Update.
10712 * dwarf-index-write.c: Update.
10713 * dwarf2-frame-tailcall.c: Update.
10714 * dwarf2-frame.c: Update.
10715 * dwarf2loc.c: Update.
10716 * dwarf2read.c: Update.
10717 * eval.c: Update.
10718 * event-loop.c: Update.
10719 * event-top.c: Update.
10720 * exec.c: Update.
10721 * f-valprint.c: Update.
10722 * fbsd-tdep.c: Update.
10723 * frame-unwind.c: Update.
10724 * frame.c: Update.
10725 * gdbtypes.c: Update.
10726 * gnu-v3-abi.c: Update.
10727 * guile/guile-internal.h: Update.
10728 * guile/scm-block.c: Update.
10729 * guile/scm-breakpoint.c: Update.
10730 * guile/scm-cmd.c: Update.
10731 * guile/scm-disasm.c: Update.
10732 * guile/scm-frame.c: Update.
10733 * guile/scm-lazy-string.c: Update.
10734 * guile/scm-math.c: Update.
10735 * guile/scm-param.c: Update.
10736 * guile/scm-ports.c: Update.
10737 * guile/scm-pretty-print.c: Update.
10738 * guile/scm-symbol.c: Update.
10739 * guile/scm-symtab.c: Update.
10740 * guile/scm-type.c: Update.
10741 * guile/scm-value.c: Update.
10742 * i386-linux-tdep.c: Update.
10743 * i386-tdep.c: Update.
10744 * inf-loop.c: Update.
10745 * infcall.c: Update.
10746 * infcmd.c: Update.
10747 * infrun.c: Update.
10748 * jit.c: Update.
10749 * language.c: Update.
10750 * linespec.c: Update.
10751 * linux-fork.c: Update.
10752 * linux-nat.c: Update.
10753 * linux-tdep.c: Update.
10754 * linux-thread-db.c: Update.
10755 * main.c: Update.
10756 * mi/mi-cmd-break.c: Update.
10757 * mi/mi-cmd-stack.c: Update.
10758 * mi/mi-interp.c: Update.
10759 * mi/mi-main.c: Update.
10760 * objc-lang.c: Update.
10761 * p-valprint.c: Update.
10762 * parse.c: Update.
10763 * ppc-linux-tdep.c: Update.
10764 * printcmd.c: Update.
10765 * python/py-arch.c: Update.
10766 * python/py-breakpoint.c: Update.
10767 * python/py-cmd.c: Update.
10768 * python/py-finishbreakpoint.c: Update.
10769 * python/py-frame.c: Update.
10770 * python/py-framefilter.c: Update.
10771 * python/py-gdb-readline.c: Update.
10772 * python/py-inferior.c: Update.
10773 * python/py-infthread.c: Update.
10774 * python/py-lazy-string.c: Update.
10775 * python/py-linetable.c: Update.
10776 * python/py-objfile.c: Update.
10777 * python/py-param.c: Update.
10778 * python/py-prettyprint.c: Update.
10779 * python/py-progspace.c: Update.
10780 * python/py-record-btrace.c: Update.
10781 * python/py-record.c: Update.
10782 * python/py-symbol.c: Update.
10783 * python/py-type.c: Update.
10784 * python/py-unwind.c: Update.
10785 * python/py-utils.c: Update.
10786 * python/py-value.c: Update.
10787 * python/python.c: Update.
10788 * record-btrace.c: Update.
10789 * record-full.c: Update.
10790 * remote-fileio.c: Update.
10791 * remote.c: Update.
10792 * riscv-tdep.c: Update.
10793 * rs6000-aix-tdep.c: Update.
10794 * rs6000-tdep.c: Update.
10795 * rust-exp.y: Update.
10796 * rust-lang.c: Update.
10797 * s390-tdep.c: Update.
10798 * selftest-arch.c: Update.
10799 * solib-dsbt.c: Update.
10800 * solib-frv.c: Update.
10801 * solib-spu.c: Update.
10802 * solib-svr4.c: Update.
10803 * solib.c: Update.
10804 * sparc64-linux-tdep.c: Update.
10805 * stack.c: Update.
10806 * symfile-mem.c: Update.
10807 * symmisc.c: Update.
10808 * target.c: Update.
10809 * thread.c: Update.
10810 * top.c: Update.
10811 * tracefile-tfile.c: Update.
10812 * tui/tui.c: Update.
10813 * typeprint.c: Update.
10814 * unittests/cli-utils-selftests.c: Update.
10815 * unittests/parse-connection-spec-selftests.c: Update.
10816 * valops.c: Update.
10817 * valprint.c: Update.
10818 * value.c: Update.
10819 * varobj.c: Update.
10820 * windows-nat.c: Update.
10821 * x86-linux-nat.c: Update.
10822 * xml-support.c: Update.
10823
10824 2019-04-08 Tom Tromey <tom@tromey.com>
10825
10826 * xml-support.c: Use C++ exception handling.
10827 * x86-linux-nat.c: Use C++ exception handling.
10828 * windows-nat.c: Use C++ exception handling.
10829 * varobj.c: Use C++ exception handling.
10830 * value.c: Use C++ exception handling.
10831 * valprint.c: Use C++ exception handling.
10832 * valops.c: Use C++ exception handling.
10833 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10834 handling.
10835 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10836 * typeprint.c: Use C++ exception handling.
10837 * tui/tui.c: Use C++ exception handling.
10838 * tracefile-tfile.c: Use C++ exception handling.
10839 * top.c: Use C++ exception handling.
10840 * thread.c: Use C++ exception handling.
10841 * target.c: Use C++ exception handling.
10842 * symmisc.c: Use C++ exception handling.
10843 * symfile-mem.c: Use C++ exception handling.
10844 * stack.c: Use C++ exception handling.
10845 * sparc64-linux-tdep.c: Use C++ exception handling.
10846 * solib.c: Use C++ exception handling.
10847 * solib-svr4.c: Use C++ exception handling.
10848 * solib-spu.c: Use C++ exception handling.
10849 * solib-frv.c: Use C++ exception handling.
10850 * solib-dsbt.c: Use C++ exception handling.
10851 * selftest-arch.c: Use C++ exception handling.
10852 * s390-tdep.c: Use C++ exception handling.
10853 * rust-lang.c: Use C++ exception handling.
10854 * rust-exp.y: Use C++ exception handling.
10855 * rs6000-tdep.c: Use C++ exception handling.
10856 * rs6000-aix-tdep.c: Use C++ exception handling.
10857 * riscv-tdep.c: Use C++ exception handling.
10858 * remote.c: Use C++ exception handling.
10859 * remote-fileio.c: Use C++ exception handling.
10860 * record-full.c: Use C++ exception handling.
10861 * record-btrace.c: Use C++ exception handling.
10862 * python/python.c: Use C++ exception handling.
10863 * python/py-value.c: Use C++ exception handling.
10864 * python/py-utils.c: Use C++ exception handling.
10865 * python/py-unwind.c: Use C++ exception handling.
10866 * python/py-type.c: Use C++ exception handling.
10867 * python/py-symbol.c: Use C++ exception handling.
10868 * python/py-record.c: Use C++ exception handling.
10869 * python/py-record-btrace.c: Use C++ exception handling.
10870 * python/py-progspace.c: Use C++ exception handling.
10871 * python/py-prettyprint.c: Use C++ exception handling.
10872 * python/py-param.c: Use C++ exception handling.
10873 * python/py-objfile.c: Use C++ exception handling.
10874 * python/py-linetable.c: Use C++ exception handling.
10875 * python/py-lazy-string.c: Use C++ exception handling.
10876 * python/py-infthread.c: Use C++ exception handling.
10877 * python/py-inferior.c: Use C++ exception handling.
10878 * python/py-gdb-readline.c: Use C++ exception handling.
10879 * python/py-framefilter.c: Use C++ exception handling.
10880 * python/py-frame.c: Use C++ exception handling.
10881 * python/py-finishbreakpoint.c: Use C++ exception handling.
10882 * python/py-cmd.c: Use C++ exception handling.
10883 * python/py-breakpoint.c: Use C++ exception handling.
10884 * python/py-arch.c: Use C++ exception handling.
10885 * printcmd.c: Use C++ exception handling.
10886 * ppc-linux-tdep.c: Use C++ exception handling.
10887 * parse.c: Use C++ exception handling.
10888 * p-valprint.c: Use C++ exception handling.
10889 * objc-lang.c: Use C++ exception handling.
10890 * mi/mi-main.c: Use C++ exception handling.
10891 * mi/mi-interp.c: Use C++ exception handling.
10892 * mi/mi-cmd-stack.c: Use C++ exception handling.
10893 * mi/mi-cmd-break.c: Use C++ exception handling.
10894 * main.c: Use C++ exception handling.
10895 * linux-thread-db.c: Use C++ exception handling.
10896 * linux-tdep.c: Use C++ exception handling.
10897 * linux-nat.c: Use C++ exception handling.
10898 * linux-fork.c: Use C++ exception handling.
10899 * linespec.c: Use C++ exception handling.
10900 * language.c: Use C++ exception handling.
10901 * jit.c: Use C++ exception handling.
10902 * infrun.c: Use C++ exception handling.
10903 * infcmd.c: Use C++ exception handling.
10904 * infcall.c: Use C++ exception handling.
10905 * inf-loop.c: Use C++ exception handling.
10906 * i386-tdep.c: Use C++ exception handling.
10907 * i386-linux-tdep.c: Use C++ exception handling.
10908 * guile/scm-value.c: Use C++ exception handling.
10909 * guile/scm-type.c: Use C++ exception handling.
10910 * guile/scm-symtab.c: Use C++ exception handling.
10911 * guile/scm-symbol.c: Use C++ exception handling.
10912 * guile/scm-pretty-print.c: Use C++ exception handling.
10913 * guile/scm-ports.c: Use C++ exception handling.
10914 * guile/scm-param.c: Use C++ exception handling.
10915 * guile/scm-math.c: Use C++ exception handling.
10916 * guile/scm-lazy-string.c: Use C++ exception handling.
10917 * guile/scm-frame.c: Use C++ exception handling.
10918 * guile/scm-disasm.c: Use C++ exception handling.
10919 * guile/scm-cmd.c: Use C++ exception handling.
10920 * guile/scm-breakpoint.c: Use C++ exception handling.
10921 * guile/scm-block.c: Use C++ exception handling.
10922 * guile/guile-internal.h: Use C++ exception handling.
10923 * gnu-v3-abi.c: Use C++ exception handling.
10924 * gdbtypes.c: Use C++ exception handling.
10925 * frame.c: Use C++ exception handling.
10926 * frame-unwind.c: Use C++ exception handling.
10927 * fbsd-tdep.c: Use C++ exception handling.
10928 * f-valprint.c: Use C++ exception handling.
10929 * exec.c: Use C++ exception handling.
10930 * event-top.c: Use C++ exception handling.
10931 * event-loop.c: Use C++ exception handling.
10932 * eval.c: Use C++ exception handling.
10933 * dwarf2read.c: Use C++ exception handling.
10934 * dwarf2loc.c: Use C++ exception handling.
10935 * dwarf2-frame.c: Use C++ exception handling.
10936 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10937 * dwarf-index-write.c: Use C++ exception handling.
10938 * dwarf-index-cache.c: Use C++ exception handling.
10939 * dtrace-probe.c: Use C++ exception handling.
10940 * disasm-selftests.c: Use C++ exception handling.
10941 * darwin-nat.c: Use C++ exception handling.
10942 * cp-valprint.c: Use C++ exception handling.
10943 * cp-support.c: Use C++ exception handling.
10944 * cp-abi.c: Use C++ exception handling.
10945 * corelow.c: Use C++ exception handling.
10946 * completer.c: Use C++ exception handling.
10947 * compile/compile-object-run.c: Use C++ exception handling.
10948 * compile/compile-object-load.c: Use C++ exception handling.
10949 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10950 * compile/compile-c-symbols.c: Use C++ exception handling.
10951 * common/selftest.c: Use C++ exception handling.
10952 * common/new-op.c: Use C++ exception handling.
10953 * cli/cli-script.c: Use C++ exception handling.
10954 * cli/cli-interp.c: Use C++ exception handling.
10955 * cli/cli-cmds.c: Use C++ exception handling.
10956 * c-varobj.c: Use C++ exception handling.
10957 * btrace.c: Use C++ exception handling.
10958 * breakpoint.c: Use C++ exception handling.
10959 * break-catch-throw.c: Use C++ exception handling.
10960 * arch-utils.c: Use C++ exception handling.
10961 * amd64-tdep.c: Use C++ exception handling.
10962 * ada-valprint.c: Use C++ exception handling.
10963 * ada-typeprint.c: Use C++ exception handling.
10964 * ada-lang.c: Use C++ exception handling.
10965 * aarch64-tdep.c: Use C++ exception handling.
10966
10967 2019-04-08 Tom Tromey <tom@tromey.com>
10968
10969 * xml-support.c (gdb_xml_parser::parse): Update.
10970 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10971 * value.c (show_convenience): Update.
10972 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10973 (test_parse_flags_qcs): Update.
10974 * thread.c (thr_try_catch_cmd): Update.
10975 * target.c (target_translate_tls_address): Update.
10976 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10977 (info_frame_command_core, frame_apply_command_count): Update.
10978 * rust-exp.y (rust_lex_exception_test): Update.
10979 * riscv-tdep.c (riscv_print_one_register_info): Update.
10980 * remote.c (remote_target::enable_btrace): Update.
10981 * record-btrace.c (record_btrace_enable_warn): Update.
10982 * python/py-utils.c (gdbpy_convert_exception): Update.
10983 * printcmd.c (do_one_display, print_variable_and_value): Update.
10984 * mi/mi-main.c (mi_print_exception): Update.
10985 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10986 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10987 * linux-nat.c (linux_nat_target::attach): Update.
10988 * linux-fork.c (class scoped_switch_fork_info): Update.
10989 * infrun.c (displaced_step_prepare): Update.
10990 * infcall.c (call_function_by_hand_dummy): Update.
10991 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10992 * gnu-v3-abi.c (print_one_vtable): Update.
10993 * frame.c (get_prev_frame_always): Update.
10994 * f-valprint.c (info_common_command_for_block): Update.
10995 * exec.c (try_open_exec_file): Update.
10996 * exceptions.c (print_exception, exception_print)
10997 (exception_fprintf, exception_print_same): Update.
10998 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10999 * dwarf-index-cache.c (index_cache::store)
11000 (index_cache::lookup_gdb_index): Update.
11001 * darwin-nat.c (maybe_cache_shell): Update.
11002 * cp-valprint.c (cp_print_value_fields): Update.
11003 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11004 (gcc_cplus_symbol_address): Update.
11005 * compile/compile-c-symbols.c (gcc_convert_symbol)
11006 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11007 * common/selftest.c: Update.
11008 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11009 a std::string.
11010 (exception_try_scope_entry, exception_try_scope_exit): Don't
11011 declare.
11012 (struct exception_try_scope): Remove.
11013 (TRY): Don't use exception_try_scope.
11014 (struct gdb_exception): Add constructor, operator=.
11015 <what>: New method.
11016 (struct gdb_exception_RETURN_MASK_ALL)
11017 (struct gdb_exception_RETURN_MASK_ERROR)
11018 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11019 (struct gdb_quit_bad_alloc): Update.
11020 * common/common-exceptions.c (exception_none): Change
11021 initializer.
11022 (struct catcher) <state, exception>: Initialize inline.
11023 <prev>: Remove member.
11024 (current_catcher): Remove.
11025 (catchers): New global.
11026 (exceptions_state_mc_init): Simplify.
11027 (catcher_pop): Remove.
11028 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11029 (try_scope_depth, exception_try_scope_entry)
11030 (exception_try_scope_exit): Remove.
11031 (throw_exception_sjlj): Update.
11032 (exception_messages, exception_messages_size): Remove.
11033 (throw_it): Simplify.
11034 (gdb_exception_sliced_copy): Remove.
11035 (throw_exception_cxx): Update.
11036 * cli/cli-script.c (script_from_file): Update.
11037 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11038 Update.
11039 * ada-valprint.c (ada_val_print): Update.
11040 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11041 (create_excep_cond_exprs): Update.
11042
11043 2019-04-08 Tom Tromey <tom@tromey.com>
11044
11045 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11046 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11047 (TRY, CATCH, END_CATCH): Remove some definitions.
11048 * common/common-exceptions.c: Don't use GDB_XCPT.
11049 (catcher_list_size): Remove.
11050 (throw_exception, throw_it): Simplify.
11051
11052 2019-04-05 Tom Tromey <tom@tromey.com>
11053
11054 Revert the header-sorting patch.
11055 * ft32-tdep.c: Revert.
11056 * frv-tdep.c: Revert.
11057 * frv-linux-tdep.c: Revert.
11058 * frame.c: Revert.
11059 * frame-unwind.c: Revert.
11060 * frame-base.c: Revert.
11061 * fork-child.c: Revert.
11062 * findvar.c: Revert.
11063 * findcmd.c: Revert.
11064 * filesystem.c: Revert.
11065 * filename-seen-cache.h: Revert.
11066 * filename-seen-cache.c: Revert.
11067 * fbsd-tdep.c: Revert.
11068 * fbsd-nat.h: Revert.
11069 * fbsd-nat.c: Revert.
11070 * f-valprint.c: Revert.
11071 * f-typeprint.c: Revert.
11072 * f-lang.c: Revert.
11073 * extension.h: Revert.
11074 * extension.c: Revert.
11075 * extension-priv.h: Revert.
11076 * expprint.c: Revert.
11077 * exec.h: Revert.
11078 * exec.c: Revert.
11079 * exceptions.c: Revert.
11080 * event-top.c: Revert.
11081 * event-loop.c: Revert.
11082 * eval.c: Revert.
11083 * elfread.c: Revert.
11084 * dwarf2read.h: Revert.
11085 * dwarf2read.c: Revert.
11086 * dwarf2loc.c: Revert.
11087 * dwarf2expr.h: Revert.
11088 * dwarf2expr.c: Revert.
11089 * dwarf2-frame.c: Revert.
11090 * dwarf2-frame-tailcall.c: Revert.
11091 * dwarf-index-write.h: Revert.
11092 * dwarf-index-write.c: Revert.
11093 * dwarf-index-common.c: Revert.
11094 * dwarf-index-cache.h: Revert.
11095 * dwarf-index-cache.c: Revert.
11096 * dummy-frame.c: Revert.
11097 * dtrace-probe.c: Revert.
11098 * disasm.h: Revert.
11099 * disasm.c: Revert.
11100 * disasm-selftests.c: Revert.
11101 * dictionary.c: Revert.
11102 * dicos-tdep.c: Revert.
11103 * demangle.c: Revert.
11104 * dcache.h: Revert.
11105 * dcache.c: Revert.
11106 * darwin-nat.h: Revert.
11107 * darwin-nat.c: Revert.
11108 * darwin-nat-info.c: Revert.
11109 * d-valprint.c: Revert.
11110 * d-namespace.c: Revert.
11111 * d-lang.c: Revert.
11112 * ctf.c: Revert.
11113 * csky-tdep.c: Revert.
11114 * csky-linux-tdep.c: Revert.
11115 * cris-tdep.c: Revert.
11116 * cris-linux-tdep.c: Revert.
11117 * cp-valprint.c: Revert.
11118 * cp-support.c: Revert.
11119 * cp-namespace.c: Revert.
11120 * cp-abi.c: Revert.
11121 * corelow.c: Revert.
11122 * corefile.c: Revert.
11123 * continuations.c: Revert.
11124 * completer.h: Revert.
11125 * completer.c: Revert.
11126 * complaints.c: Revert.
11127 * coffread.c: Revert.
11128 * coff-pe-read.c: Revert.
11129 * cli-out.h: Revert.
11130 * cli-out.c: Revert.
11131 * charset.c: Revert.
11132 * c-varobj.c: Revert.
11133 * c-valprint.c: Revert.
11134 * c-typeprint.c: Revert.
11135 * c-lang.c: Revert.
11136 * buildsym.c: Revert.
11137 * buildsym-legacy.c: Revert.
11138 * build-id.h: Revert.
11139 * build-id.c: Revert.
11140 * btrace.c: Revert.
11141 * bsd-uthread.c: Revert.
11142 * breakpoint.h: Revert.
11143 * breakpoint.c: Revert.
11144 * break-catch-throw.c: Revert.
11145 * break-catch-syscall.c: Revert.
11146 * break-catch-sig.c: Revert.
11147 * blockframe.c: Revert.
11148 * block.c: Revert.
11149 * bfin-tdep.c: Revert.
11150 * bfin-linux-tdep.c: Revert.
11151 * bfd-target.c: Revert.
11152 * bcache.c: Revert.
11153 * ax-general.c: Revert.
11154 * ax-gdb.h: Revert.
11155 * ax-gdb.c: Revert.
11156 * avr-tdep.c: Revert.
11157 * auxv.c: Revert.
11158 * auto-load.c: Revert.
11159 * arm-wince-tdep.c: Revert.
11160 * arm-tdep.c: Revert.
11161 * arm-symbian-tdep.c: Revert.
11162 * arm-pikeos-tdep.c: Revert.
11163 * arm-obsd-tdep.c: Revert.
11164 * arm-nbsd-tdep.c: Revert.
11165 * arm-nbsd-nat.c: Revert.
11166 * arm-linux-tdep.c: Revert.
11167 * arm-linux-nat.c: Revert.
11168 * arm-fbsd-tdep.c: Revert.
11169 * arm-fbsd-nat.c: Revert.
11170 * arm-bsd-tdep.c: Revert.
11171 * arch-utils.c: Revert.
11172 * arc-tdep.c: Revert.
11173 * arc-newlib-tdep.c: Revert.
11174 * annotate.h: Revert.
11175 * annotate.c: Revert.
11176 * amd64-windows-tdep.c: Revert.
11177 * amd64-windows-nat.c: Revert.
11178 * amd64-tdep.c: Revert.
11179 * amd64-sol2-tdep.c: Revert.
11180 * amd64-obsd-tdep.c: Revert.
11181 * amd64-obsd-nat.c: Revert.
11182 * amd64-nbsd-tdep.c: Revert.
11183 * amd64-nbsd-nat.c: Revert.
11184 * amd64-nat.c: Revert.
11185 * amd64-linux-tdep.c: Revert.
11186 * amd64-linux-nat.c: Revert.
11187 * amd64-fbsd-tdep.c: Revert.
11188 * amd64-fbsd-nat.c: Revert.
11189 * amd64-dicos-tdep.c: Revert.
11190 * amd64-darwin-tdep.c: Revert.
11191 * amd64-bsd-nat.c: Revert.
11192 * alpha-tdep.c: Revert.
11193 * alpha-obsd-tdep.c: Revert.
11194 * alpha-nbsd-tdep.c: Revert.
11195 * alpha-mdebug-tdep.c: Revert.
11196 * alpha-linux-tdep.c: Revert.
11197 * alpha-linux-nat.c: Revert.
11198 * alpha-bsd-tdep.c: Revert.
11199 * alpha-bsd-nat.c: Revert.
11200 * aix-thread.c: Revert.
11201 * agent.c: Revert.
11202 * addrmap.c: Revert.
11203 * ada-varobj.c: Revert.
11204 * ada-valprint.c: Revert.
11205 * ada-typeprint.c: Revert.
11206 * ada-tasks.c: Revert.
11207 * ada-lang.c: Revert.
11208 * aarch64-tdep.c: Revert.
11209 * aarch64-ravenscar-thread.c: Revert.
11210 * aarch64-newlib-tdep.c: Revert.
11211 * aarch64-linux-tdep.c: Revert.
11212 * aarch64-linux-nat.c: Revert.
11213 * aarch64-fbsd-tdep.c: Revert.
11214 * aarch64-fbsd-nat.c: Revert.
11215 * aarch32-linux-nat.c: Revert.
11216
11217 2019-04-05 Tom Tromey <tom@tromey.com>
11218
11219 * ft32-tdep.c: Sort headers.
11220 * frv-tdep.c: Sort headers.
11221 * frv-linux-tdep.c: Sort headers.
11222 * frame.c: Sort headers.
11223 * frame-unwind.c: Sort headers.
11224 * frame-base.c: Sort headers.
11225 * fork-child.c: Sort headers.
11226 * findvar.c: Sort headers.
11227 * findcmd.c: Sort headers.
11228 * filesystem.c: Sort headers.
11229 * filename-seen-cache.h: Sort headers.
11230 * filename-seen-cache.c: Sort headers.
11231 * fbsd-tdep.c: Sort headers.
11232 * fbsd-nat.h: Sort headers.
11233 * fbsd-nat.c: Sort headers.
11234 * f-valprint.c: Sort headers.
11235 * f-typeprint.c: Sort headers.
11236 * f-lang.c: Sort headers.
11237 * extension.h: Sort headers.
11238 * extension.c: Sort headers.
11239 * extension-priv.h: Sort headers.
11240 * expprint.c: Sort headers.
11241 * exec.h: Sort headers.
11242 * exec.c: Sort headers.
11243 * exceptions.c: Sort headers.
11244 * event-top.c: Sort headers.
11245 * event-loop.c: Sort headers.
11246 * eval.c: Sort headers.
11247 * elfread.c: Sort headers.
11248 * dwarf2read.h: Sort headers.
11249 * dwarf2read.c: Sort headers.
11250 * dwarf2loc.c: Sort headers.
11251 * dwarf2expr.h: Sort headers.
11252 * dwarf2expr.c: Sort headers.
11253 * dwarf2-frame.c: Sort headers.
11254 * dwarf2-frame-tailcall.c: Sort headers.
11255 * dwarf-index-write.h: Sort headers.
11256 * dwarf-index-write.c: Sort headers.
11257 * dwarf-index-common.c: Sort headers.
11258 * dwarf-index-cache.h: Sort headers.
11259 * dwarf-index-cache.c: Sort headers.
11260 * dummy-frame.c: Sort headers.
11261 * dtrace-probe.c: Sort headers.
11262 * disasm.h: Sort headers.
11263 * disasm.c: Sort headers.
11264 * disasm-selftests.c: Sort headers.
11265 * dictionary.c: Sort headers.
11266 * dicos-tdep.c: Sort headers.
11267 * demangle.c: Sort headers.
11268 * dcache.h: Sort headers.
11269 * dcache.c: Sort headers.
11270 * darwin-nat.h: Sort headers.
11271 * darwin-nat.c: Sort headers.
11272 * darwin-nat-info.c: Sort headers.
11273 * d-valprint.c: Sort headers.
11274 * d-namespace.c: Sort headers.
11275 * d-lang.c: Sort headers.
11276 * ctf.c: Sort headers.
11277 * csky-tdep.c: Sort headers.
11278 * csky-linux-tdep.c: Sort headers.
11279 * cris-tdep.c: Sort headers.
11280 * cris-linux-tdep.c: Sort headers.
11281 * cp-valprint.c: Sort headers.
11282 * cp-support.c: Sort headers.
11283 * cp-namespace.c: Sort headers.
11284 * cp-abi.c: Sort headers.
11285 * corelow.c: Sort headers.
11286 * corefile.c: Sort headers.
11287 * continuations.c: Sort headers.
11288 * completer.h: Sort headers.
11289 * completer.c: Sort headers.
11290 * complaints.c: Sort headers.
11291 * coffread.c: Sort headers.
11292 * coff-pe-read.c: Sort headers.
11293 * cli-out.h: Sort headers.
11294 * cli-out.c: Sort headers.
11295 * charset.c: Sort headers.
11296 * c-varobj.c: Sort headers.
11297 * c-valprint.c: Sort headers.
11298 * c-typeprint.c: Sort headers.
11299 * c-lang.c: Sort headers.
11300 * buildsym.c: Sort headers.
11301 * buildsym-legacy.c: Sort headers.
11302 * build-id.h: Sort headers.
11303 * build-id.c: Sort headers.
11304 * btrace.c: Sort headers.
11305 * bsd-uthread.c: Sort headers.
11306 * breakpoint.h: Sort headers.
11307 * breakpoint.c: Sort headers.
11308 * break-catch-throw.c: Sort headers.
11309 * break-catch-syscall.c: Sort headers.
11310 * break-catch-sig.c: Sort headers.
11311 * blockframe.c: Sort headers.
11312 * block.c: Sort headers.
11313 * bfin-tdep.c: Sort headers.
11314 * bfin-linux-tdep.c: Sort headers.
11315 * bfd-target.c: Sort headers.
11316 * bcache.c: Sort headers.
11317 * ax-general.c: Sort headers.
11318 * ax-gdb.h: Sort headers.
11319 * ax-gdb.c: Sort headers.
11320 * avr-tdep.c: Sort headers.
11321 * auxv.c: Sort headers.
11322 * auto-load.c: Sort headers.
11323 * arm-wince-tdep.c: Sort headers.
11324 * arm-tdep.c: Sort headers.
11325 * arm-symbian-tdep.c: Sort headers.
11326 * arm-pikeos-tdep.c: Sort headers.
11327 * arm-obsd-tdep.c: Sort headers.
11328 * arm-nbsd-tdep.c: Sort headers.
11329 * arm-nbsd-nat.c: Sort headers.
11330 * arm-linux-tdep.c: Sort headers.
11331 * arm-linux-nat.c: Sort headers.
11332 * arm-fbsd-tdep.c: Sort headers.
11333 * arm-fbsd-nat.c: Sort headers.
11334 * arm-bsd-tdep.c: Sort headers.
11335 * arch-utils.c: Sort headers.
11336 * arc-tdep.c: Sort headers.
11337 * arc-newlib-tdep.c: Sort headers.
11338 * annotate.h: Sort headers.
11339 * annotate.c: Sort headers.
11340 * amd64-windows-tdep.c: Sort headers.
11341 * amd64-windows-nat.c: Sort headers.
11342 * amd64-tdep.c: Sort headers.
11343 * amd64-sol2-tdep.c: Sort headers.
11344 * amd64-obsd-tdep.c: Sort headers.
11345 * amd64-obsd-nat.c: Sort headers.
11346 * amd64-nbsd-tdep.c: Sort headers.
11347 * amd64-nbsd-nat.c: Sort headers.
11348 * amd64-nat.c: Sort headers.
11349 * amd64-linux-tdep.c: Sort headers.
11350 * amd64-linux-nat.c: Sort headers.
11351 * amd64-fbsd-tdep.c: Sort headers.
11352 * amd64-fbsd-nat.c: Sort headers.
11353 * amd64-dicos-tdep.c: Sort headers.
11354 * amd64-darwin-tdep.c: Sort headers.
11355 * amd64-bsd-nat.c: Sort headers.
11356 * alpha-tdep.c: Sort headers.
11357 * alpha-obsd-tdep.c: Sort headers.
11358 * alpha-nbsd-tdep.c: Sort headers.
11359 * alpha-mdebug-tdep.c: Sort headers.
11360 * alpha-linux-tdep.c: Sort headers.
11361 * alpha-linux-nat.c: Sort headers.
11362 * alpha-bsd-tdep.c: Sort headers.
11363 * alpha-bsd-nat.c: Sort headers.
11364 * aix-thread.c: Sort headers.
11365 * agent.c: Sort headers.
11366 * addrmap.c: Sort headers.
11367 * ada-varobj.c: Sort headers.
11368 * ada-valprint.c: Sort headers.
11369 * ada-typeprint.c: Sort headers.
11370 * ada-tasks.c: Sort headers.
11371 * ada-lang.c: Sort headers.
11372 * aarch64-tdep.c: Sort headers.
11373 * aarch64-ravenscar-thread.c: Sort headers.
11374 * aarch64-newlib-tdep.c: Sort headers.
11375 * aarch64-linux-tdep.c: Sort headers.
11376 * aarch64-linux-nat.c: Sort headers.
11377 * aarch64-fbsd-tdep.c: Sort headers.
11378 * aarch64-fbsd-nat.c: Sort headers.
11379 * aarch32-linux-nat.c: Sort headers.
11380
11381 2019-04-04 Tom Tromey <tom@tromey.com>
11382
11383 * varobj.c (varobj_create): Update.
11384 * rust-exp.y (struct rust_parser) <update_innermost_block,
11385 lookup_symbol>: New methods.
11386 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11387 Rename.
11388 (rust_parser::rust_lookup_type)
11389 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11390 * printcmd.c (display_command, do_one_display): Update.
11391 * parser-defs.h (struct parser_state) <parser_state>: Add
11392 "tracker" parameter.
11393 (block_tracker): New member.
11394 (class innermost_block_tracker) <innermost_block_tracker>: Add
11395 "types" parameter.
11396 <reset>: Remove method.
11397 (innermost_block): Don't declare.
11398 (null_post_parser): Update.
11399 * parse.c (innermost_block): Remove global.
11400 (write_dollar_variable): Update.
11401 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11402 Remove "tracker_types" parameter.
11403 (parse_expression): Add "tracker" parameter.
11404 (parse_expression_for_completion): Update.
11405 (null_post_parser): Add "tracker" parameter.
11406 * p-exp.y: Update rules.
11407 * m2-exp.y: Update rules.
11408 * language.h (struct language_defn) <la_post_parser>: Add
11409 "tracker" parameter.
11410 * go-exp.y: Update rules.
11411 * f-exp.y: Update rules.
11412 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11413 parameter.
11414 * d-exp.y: Update rules.
11415 * c-exp.y: Update rules.
11416 * breakpoint.c (set_breakpoint_condition): Create an
11417 innermost_block_tracker.
11418 (watch_command_1): Likewise.
11419 * ada-lang.c (resolve): Add "tracker" parameter.
11420 (resolve_subexp): Likewise.
11421 * ada-exp.y (write_var_from_sym): Update.
11422
11423 2019-04-04 Tom Tromey <tom@tromey.com>
11424
11425 * type-stack.h: New file.
11426 * type-stack.c: New file.
11427 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11428 type-stack.h.
11429 (insert_into_type_stack, insert_type, push_type, push_type_int)
11430 (insert_type_address_space, pop_type, pop_type_int)
11431 (pop_typelist, pop_type_stack, append_type_stack)
11432 (push_type_stack, get_type_stack, push_typelist)
11433 (follow_type_instance_flags, follow_types): Don't declare.
11434 * parse.c (type_stack): Remove global.
11435 (parse_exp_in_context): Update.
11436 (insert_into_type_stack, insert_type, push_type, push_type_int)
11437 (insert_type_address_space, pop_type, pop_type_int)
11438 (pop_typelist, pop_type_stack, append_type_stack)
11439 (push_type_stack, get_type_stack, push_typelist)
11440 (follow_type_instance_flags, follow_types): Remove (moved to
11441 type-stack.c).
11442 * f-exp.y (type_stack): New global.
11443 Update rules.
11444 (push_kind_type, f_parse): Update.
11445 * d-exp.y (type_stack): New global.
11446 Update rules.
11447 (d_parse): Update.
11448 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11449 Update rules.
11450 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11451 (HFILES_NO_SRCDIR): Add type-stack.h.
11452
11453 2019-04-04 Tom Tromey <tom@tromey.com>
11454
11455 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11456 (rust_parser::convert_ast_to_expression, rust_parse)
11457 (rust_lex_test_completion, rust_lex_tests): Update.
11458 * parser-defs.h (struct expr_completion_state): New.
11459 (struct parser_state) <parser_state>: Add completion parameter.
11460 <mark_struct_expression, mark_completion_tag>: New methods.
11461 <parse_completion, m_completion_state>: New members.
11462 (prefixify_expression, null_post_parser): Update.
11463 (mark_struct_expression, mark_completion_tag): Don't declare.
11464 * parse.c (parse_completion, expout_last_struct)
11465 (expout_tag_completion_type, expout_completion_name): Remove
11466 globals.
11467 (parser_state::mark_struct_expression)
11468 (parser_state::mark_completion_tag): Now methods.
11469 (prefixify_expression): Add last_struct parameter.
11470 (prefixify_subexp): Likewise.
11471 (parse_exp_1): Update.
11472 (parse_exp_in_context): Add cstate parameter. Update.
11473 (parse_expression_for_completion): Create an
11474 expr_completion_state.
11475 (null_post_parser): Add "completion" parameter.
11476 * p-exp.y: Update rules.
11477 (yylex): Update.
11478 * language.h (struct language_defn) <la_post_parser>: Add
11479 "completing" parameter.
11480 * go-exp.y: Update rules.
11481 (lex_one_token): Update.
11482 * expression.h (parse_completion): Don't declare.
11483 * d-exp.y: Update rules.
11484 (lex_one_token): Update rules.
11485 * c-exp.y: Update rules.
11486 (lex_one_token): Update.
11487 * ada-lang.c (resolve): Add "parse_completion" parameter.
11488 (resolve_subexp): Likewise.
11489 (ada_resolve_function): Likewise.
11490
11491 2019-04-04 Tom Tromey <tom@tromey.com>
11492
11493 * parser-defs.h (struct parser_state) <start_arglist,
11494 end_arglist>: New methods.
11495 <arglist_len, m_funcall_chain>: New members.
11496 (arglist_len, start_arglist, end_arglist): Don't declare.
11497 * parse.c (arglist_len, funcall_chain): Remove global.
11498 (start_arglist, end_arglist): Remove functions.
11499 (parse_exp_in_context): Update.
11500 * p-exp.y: Update rules.
11501 * m2-exp.y: Update rules.
11502 * go-exp.y: Update rules.
11503 * f-exp.y: Update rules.
11504 * d-exp.y: Update rules.
11505 * c-exp.y: Update rules.
11506
11507 2019-04-04 Tom Tromey <tom@tromey.com>
11508
11509 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11510 lex_operator, push_back>: New methods.
11511 Update all rules.
11512 (rust_parser::lex_hex, lex_escape): Rename and update.
11513 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11514 (rust_parser::lex_operator): Rename and update.
11515 (rust_parser::lex_number, rustyylex, rustyyerror)
11516 (rust_lex_test_init, rust_lex_test_sequence)
11517 (rust_lex_test_push_back, rust_lex_tests): Update.
11518 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11519 parameter.
11520 <lexptr, prev_lexptr>: New members.
11521 (lexptr, prev_lexptr): Don't declare.
11522 * parse.c (lexptr, prev_lexptr): Remove globals.
11523 (parse_exp_in_context): Update.
11524 * p-exp.y (yylex, yyerror): Update.
11525 * m2-exp.y (parse_number, yylex, yyerror): Update.
11526 * go-exp.y (lex_one_token, yyerror): Update.
11527 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11528 * d-exp.y (lex_one_token, yyerror): Update.
11529 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11530 (lex_one_token, yyerror): Update.
11531 * ada-lex.l (YY_INPUT): Update.
11532 (rewind_to_char): Update.
11533 * ada-exp.y (yyerror): Update.
11534
11535 2019-04-04 Tom Tromey <tom@tromey.com>
11536
11537 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11538 * parser-defs.h (struct parser_state) <parser_state>: Add new
11539 parameter.
11540 <comma_terminates>: New member.
11541 (comma_terminates): Don't declare global.
11542 * parse.c (comma_terminates): Remove global.
11543 (parse_exp_in_context): Update.
11544 * p-exp.y (yylex): Update.
11545 * m2-exp.y (yylex): Update.
11546 * go-exp.y (lex_one_token): Update.
11547 * f-exp.y (yylex): Update.
11548 * d-exp.y (lex_one_token): Update.
11549 * c-exp.y (lex_one_token): Update.
11550 * ada-lex.l: Update.
11551
11552 2019-04-04 Tom Tromey <tom@tromey.com>
11553
11554 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11555 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11556 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11557 * parser-defs.h (paren_depth): Don't declare.
11558 * parse.c (paren_depth): Remove global.
11559 (parse_exp_in_context): Update.
11560 * p-exp.y (paren_depth): New global.
11561 (pascal_parse): Initialize it.
11562 * m2-exp.y (paren_depth): New global.
11563 (m2_parse): Initialize it.
11564 * go-exp.y (paren_depth): New global.
11565 (go_parse): Initialize it.
11566 * f-exp.y (paren_depth): New global.
11567 (f_parse): Initialize it.
11568 * d-exp.y (paren_depth): New global.
11569 (d_parse): Initialize it.
11570 * c-exp.y (paren_depth): New global.
11571 (c_parse): Initialize it.
11572 * ada-lex.l (paren_depth): New global.
11573 (lexer_init): Initialize it.
11574
11575 2019-04-04 Tom Tromey <tom@tromey.com>
11576
11577 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11578 (rust_parser::convert_ast_to_type)
11579 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11580 * parser-defs.h (struct parser_state) <parser_state>: Add
11581 parameters. Initialize new members.
11582 <expression_context_block, expression_context_pc>: New members.
11583 * parse.c (expression_context_block, expression_context_pc):
11584 Remove globals.
11585 (parse_exp_in_context): Update.
11586 * p-exp.y: Update all rules.
11587 (yylex): Update.
11588 * m2-exp.y: Update all rules.
11589 (yylex): Update.
11590 * go-exp.y (yylex): Update.
11591 * f-exp.y (yylex): Update.
11592 * d-exp.y: Update all rules.
11593 (yylex): Update.
11594 * c-exp.y: Update all rules.
11595 (lex_one_token, classify_name, yylex, c_parse): Update.
11596 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11597
11598 2019-04-04 Tom Tromey <tom@tromey.com>
11599
11600 * gdbarch.h, gdbarch.c: Rebuild.
11601 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11602 * stap-probe.h:
11603 (struct stap_parse_info): Replace "parser_state" with
11604 "expr_builder".
11605 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11606 (parser_state): New class.
11607 * parse.c (expr_builder): Rename.
11608 (expr_builder::release): Rename.
11609 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11610 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11611 (write_exp_elt_longcst, write_exp_elt_floatcst)
11612 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11613 (write_exp_string_vector, write_exp_bitstring)
11614 (write_exp_msymbol, mark_struct_expression)
11615 (write_dollar_variable)
11616 (insert_type_address_space, increase_expout_size): Replace
11617 "parser_state" with "expr_builder".
11618 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11619 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11620 "parser_state" with "expr_builder".
11621
11622 2019-04-04 Tom Tromey <tom@tromey.com>
11623
11624 * rust-exp.y: Replace "parse_language" with method call.
11625 * p-exp.y:
11626 (yylex): Replace "parse_language" with method call.
11627 * m2-exp.y:
11628 (yylex): Replace "parse_language" with method call.
11629 * go-exp.y (classify_name): Replace "parse_language" with method
11630 call.
11631 * f-exp.y (yylex): Replace "parse_language" with method call.
11632 * d-exp.y (lex_one_token): Replace "parse_language" with method
11633 call.
11634 * c-exp.y:
11635 (lex_one_token, classify_name, yylex): Replace "parse_language"
11636 with method call.
11637 * ada-exp.y (find_primitive_type, type_char)
11638 (type_system_address): Replace "parse_language" with method call.
11639
11640 2019-04-04 Tom Tromey <tom@tromey.com>
11641
11642 * rust-exp.y: Replace "parse_gdbarch" with method call.
11643 * parse.c (write_dollar_variable, insert_type_address_space):
11644 Replace "parse_gdbarch" with method call.
11645 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11646 call.
11647 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11648 call.
11649 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11650 "parse_gdbarch" with method call.
11651 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11652 with method call.
11653 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11654 "parse_gdbarch" with method call.
11655 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11656 "parse_gdbarch" with method call.
11657 * c-exp.y (parse_type, parse_number, classify_name): Replace
11658 "parse_gdbarch" with method call.
11659 * ada-lex.l: Replace "parse_gdbarch" with method call.
11660 * ada-exp.y (parse_type, find_primitive_type, type_char)
11661 (type_system_address): Replace "parse_gdbarch" with method call.
11662
11663 2019-04-04 Tom Tromey <tom@tromey.com>
11664
11665 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11666 * stap-probe.c (stap_parse_argument): Update.
11667 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11668 initial_size parameter.
11669 * rust-exp.y (rust_lex_tests): Update.
11670 * parse.c (parser_state): Update.
11671 (parse_exp_in_context): Update.
11672 * parser-defs.h (struct parser_state) <parser_state>: Remove
11673 "initial_size" parameter.
11674
11675 2019-04-04 Tom Tromey <tom@tromey.com>
11676
11677 * parser-defs.h (increase_expout_size): Don't declare.
11678 * parse.c (increase_expout_size): Now static.
11679
11680 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11681
11682 * gnu-nat.c (gnu_nat_target::wait): Fix
11683 target_waitstatus_to_string call.
11684
11685 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11686
11687 * eval.c (evaluate_subexp_standard): Handle internal functions
11688 during Fortran function call handling.
11689
11690 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11691
11692 * NEWS: Mention new internal functions.
11693 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11694 (read_base_type): Use dwarf2_init_complex_target_type.
11695 * value.c (creal_internal_fn): New function.
11696 (cimag_internal_fn): New function.
11697 (_initialize_values): Register new internal functions.
11698
11699 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11700
11701 * infrun.c (stop_all_threads): If debug_infrun, always
11702 trace the wait status after wait_one, using
11703 target_waitstatus_to_string and target_pid_to_str.
11704 (handle_inferior_event): Replace various trace of
11705 wait status kind by a single trace.
11706 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11707 wait status kind image by target_waitstatus_to_string.
11708 * target/waitstatus.c (target_waitstatus_to_string): Fix
11709 obsolete comment.
11710
11711 2019-04-01 Tom Tromey <tromey@adacore.com>
11712
11713 PR symtab/23331:
11714 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11715
11716 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11717 Pedro Alves <palves@redhat.com>
11718
11719 * top.c (quit_force): Call 'finalize_values'.
11720 * value.c (finalize_values): New function.
11721 * value.h (finalize_values): Declare.
11722
11723 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11724
11725 * NEWS: Announce $_gdb_major and $_gdb_minor.
11726
11727 * top.c (init_gdb_version_vars): New function.
11728 (gdb_init): Call init_gdb_version_vars.
11729
11730 2019-03-29 Tom Tromey <tromey@adacore.com>
11731
11732 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11733 help text. Remove dead code.
11734
11735 2019-03-29 Keith Seitz <keiths@redhat.com>
11736
11737 From Siddhesh Poyarekar:
11738 * f-lang.h (f77_get_upperbound): Return LONGEST.
11739 (f77_get_lowerbound): Likewise.
11740 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11741 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11742 print them.
11743 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11744 plongest to format print it.
11745 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11746 (f77_get_upperbound): Likewise.
11747 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11748 LOWER_BOUND to LONGEST.
11749 (f77_create_arrayprint_offset_tbl): Likewise.
11750
11751 2019-03-29 Keith Seitz <keiths@redhat.com>
11752
11753 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11754 %s/pulongest for TYPE_LENGTH instead of %d in format
11755 strings.
11756 * ada-typerint.c (ada_print_type): Likewise.
11757 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11758 * compile/compile-c-support.c (generate_register_struct): Likewise.
11759 * gdbtypes.c (recursive_dump_type): Likewise.
11760 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11761 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11762 instead of %d in format strings.
11763 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11764 to std::min to ULONGEST.
11765 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11766 instead of %d in format strings.
11767 * tracepoint.c (info_scope_command): Likewise.
11768 * typeprint.c (print_offset_data::update)
11769 (print_offset_data::finish): Likewise.
11770 * xtensa-tdep.c (xtensa_store_return_value)
11771 (xtensa_push_dummy_call): Likewise.
11772
11773 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11774
11775 * windows-nat.c (display_selector): Fixed format specifications
11776 for 64-bit Cygwin.
11777
11778 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11779
11780 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11781
11782 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11783
11784 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11785 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11786 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11787 (nios2_linux_init_abi): Install it.
11788
11789 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11790
11791 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11792
11793 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11794
11795 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11796
11797 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11798 Tom Tromey <tromey@adacore.com>
11799
11800 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11801
11802 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11803
11804 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11805 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11806 method to compute the bounds of range types. Also print "[evaluated]"
11807 if the bounds' values come from a dynamic evaluation.
11808
11809 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11810
11811 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11812 whitespace when pretty printing is on.
11813
11814 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11815
11816 * ppc-linux-nat.c: Add include.
11817
11818 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11819
11820 * NEWS: Mention AArch64 Pointer Authentication.
11821
11822 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11823
11824 * arm-linux-nat.c: Add include.
11825
11826 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11827
11828 * source-cache.c (source_cache::get_source_lines): Re-read
11829 fullname after calling open_source_file.
11830
11831 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11832
11833 * NEWS: Mention TLS support for FreeBSD.
11834
11835 2019-03-25 Tom Tromey <tromey@adacore.com>
11836
11837 * minsyms.c (BUNCH_SIZE): Update comment.
11838 (~minimal_symbol_reader): Remove old comment.
11839 (compact_minimal_symbols): Update comment.
11840 (minimal_symbol_reader::install): Remove old comment. Update
11841 other comments.
11842
11843 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11844
11845 * s390-linux-nat.c: Add include.
11846
11847 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11848
11849 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11850 Call linux_get_hwcap.
11851 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11852 Likewise.
11853 (aarch64_linux_get_hwcap): Remove function.
11854 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11855 declaration.
11856 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11857 linux_get_hwcap.
11858 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11859 * linux-tdep.c (linux_get_hwcap): Add function.
11860 (linux_get_hwcap2): Likewise.
11861 * linux-tdep.h (linux_get_hwcap): Add declaration.
11862 (linux_get_hwcap2): Likewise.
11863 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11864 (ppc_linux_get_hwcap2): Likewise.
11865 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11866 linux_get_hwcap.
11867 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11868 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11869 (ppc_linux_nat_target::read_description): Likewise.
11870 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11871 * s390-linux-nat.c: Likewise.
11872 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11873
11874 2019-03-24 Tom Tromey <tom@tromey.com>
11875
11876 * ada-lang.c (standard_lookup): Simplify initialization.
11877 (ada_lookup_symbol_nonlocal): Simplify return.
11878 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11879 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11880 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11881 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11882 initialization.
11883 * solib.c (solib_global_lookup): Simplify.
11884 * symtab.c (null_block_symbol): Remove.
11885 (symbol_cache_lookup): Simplify returns.
11886 (lookup_language_this): Simplify returns.
11887 (lookup_symbol_aux): Simplify return.
11888 (lookup_local_symbol): Simplify returns.
11889 (lookup_global_symbol_from_objfile): Simplify return.
11890 (lookup_symbol_in_objfile_symtabs)
11891 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11892 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11893 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11894 * cp-namespace.c (cp_lookup_bare_symbol)
11895 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11896 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11897 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11898 (cp_lookup_symbol_via_imports): Simplify initialization.
11899 (find_symbol_in_baseclass): Likewise.
11900 * symtab.h (null_block_symbol): Remove.
11901 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11902 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11903 (d_lookup_symbol_module): Likewise.
11904 (find_symbol_in_baseclass): Simplify initialization.
11905
11906 2019-03-24 Tom Tromey <tom@tromey.com>
11907
11908 * expression.h: Don't include symtab.h.
11909 (struct block): Forward declare.
11910
11911 2019-03-24 Tom Tromey <tom@tromey.com>
11912
11913 * c-exp.y (typebase): Remove casts.
11914 * gdbtypes.c (lookup_unsigned_typename, )
11915 (lookup_signed_typename): Remove cast.
11916 * eval.c (parse_to_comma_and_eval): Remove cast.
11917 * parse.c (write_dollar_variable): Remove cast.
11918 * block.h (struct block) <superblock>: Now const.
11919 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11920 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11921 (map_block): Make "block" const.
11922 * symfile.h (struct quick_symbol_functions)
11923 <map_matching_symbols>: Constify block argument to "callback".
11924 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11925 const.
11926 (find_pc_sect_compunit_symtab): Make "b" const.
11927 (find_symbol_at_address): Likewise.
11928 (search_symbols): Likewise.
11929 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11930 (dw2_debug_names_lookup_symbol): Likewise.
11931 (dw2_map_matching_symbols): Update.
11932 * p-valprint.c (pascal_val_print): Remove "block".
11933 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11934 (aux_add_nonlocal_symbols): Make "block" const.
11935 (resolve_subexp): Remove cast.
11936 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11937 const.
11938 (iterate_over_file_blocks): Likewise.
11939 * f-exp.y (%union) <bval>: Remove.
11940 * coffread.c (patch_opaque_types): Make "b" const.
11941 * spu-tdep.c (spu_catch_start): Make "block" const.
11942 * c-valprint.c (print_unpacked_pointer): Remove "block".
11943 * symmisc.c (dump_symtab_1): Make "b" const.
11944 (block_depth): Make "block" const.
11945 * d-exp.y (%union) <bval>: Remove.
11946 * cp-support.h (cp_lookup_rtti_type): Update.
11947 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11948 * psymtab.c (psym_lookup_symbol): Make "block" const.
11949 (maintenance_check_psymtabs): Make "b" const.
11950 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11951 (enumerate_locals, enumerate_args): Update.
11952 * python/py-symtab.c (stpy_global_block): Make "block" const.
11953 (stpy_static_block): Likewise.
11954 * inline-frame.c (block_starting_point_at): Make "new_block"
11955 const.
11956 * block.c (find_block_in_blockvector): Make return type const.
11957 (blockvector_for_pc_sect): Make "b" const.
11958 (find_block_in_blockvector): Make "b" const.
11959
11960 2019-03-23 Tom Tromey <tom@tromey.com>
11961
11962 * varobj.c (varobj_create): Update.
11963 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11964 * printcmd.c (display_command, do_one_display): Don't reset
11965 innermost_block.
11966 * parser-defs.h (enum innermost_block_tracker_type): Move to
11967 expression.h.
11968 (innermost_block): Update comment.
11969 * parse.c (parse_exp_1): Add tracker_types parameter.
11970 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11971 tracker_types parameter. Reset innermost_block.
11972 (parse_exp_in_context): Remove.
11973 (parse_expression_for_completion): Update.
11974 * objfiles.c (~objfile): Don't reset expression_context_block or
11975 innermost_block.
11976 * expression.h (enum innermost_block_tracker_type): Move from
11977 parser-defs.h.
11978 (parse_exp_1): Add tracker_types parameter.
11979 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11980 reset innermost_block.
11981
11982 2019-03-23 Tom Tromey <tom@tromey.com>
11983
11984 * objfiles.h: Include bcache.h.
11985
11986 2019-03-23 Tom Tromey <tom@tromey.com>
11987
11988 * linespec.c (get_current_search_block): Use
11989 scoped_restore_current_language.
11990 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11991
11992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11993 Jiong Wang <jiong.wang@arm.com>
11994
11995 * aarch64-linux-tdep.c
11996 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11997 section.
11998 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11999
12000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12001 Jiong Wang <jiong.wang@arm.com>
12002
12003 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12004 instructions.
12005 (aarch64_analyze_prologue_test): Add PACIASP test.
12006 (aarch64_prologue_prev_register): Unmask PC value.
12007
12008 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12009 Jiong Wang <jiong.wang@arm.com>
12010
12011 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12012 (aarch64_dwarf2_prev_register): Unmask PC value.
12013 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12014 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12015 DW_CFA_AARCH64_negate_ra_state.
12016 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12017
12018 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12019 Jiong Wang <jiong.wang@arm.com>
12020
12021 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12022 registers.
12023 (aarch64_pseudo_register_name): Likewise.
12024 (aarch64_pseudo_register_type): Likewise.
12025 (aarch64_pseudo_register_reggroup_p): Likewise.
12026 (aarch64_gdbarch_init): Add pauth registers.
12027 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12028 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12029 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12030 (struct gdbarch_tdep): Add regnum for ra_state.
12031
12032 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12033 Jiong Wang <jiong.wang@arm.com>
12034
12035 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12036
12037 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12038 Jiong Wang <jiong.wang@arm.com>
12039
12040 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12041 function.
12042 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12043 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12044 (aarch64_gdbarch_init): Add puth registers.
12045 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12046 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12047 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12048
12049 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12050 Jiong Wang <jiong.wang@arm.com>
12051
12052 * aarch64-linux-nat.c
12053 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12054 * aarch64-linux-tdep.c
12055 (aarch64_linux_core_read_description): Likewise.
12056 (aarch64_linux_get_hwcap): New function.
12057 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12058 (aarch64_linux_get_hwcap): New declaration.
12059
12060 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12061 Jiong Wang <jiong.wang@arm.com>
12062
12063 * aarch64-linux-nat.c
12064 (aarch64_linux_nat_target::read_description): Add pauth param.
12065 * aarch64-linux-tdep.c
12066 (aarch64_linux_core_read_description): Likewise.
12067 * aarch64-tdep.c (struct target_desc): Add in pauth.
12068 (aarch64_read_description): Add pauth param.
12069 (aarch64_gdbarch_init): Likewise.
12070 * aarch64-tdep.h (aarch64_read_description): Likewise.
12071 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12072 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12073 * features/Makefile: Add new files.
12074 * features/aarch64-pauth.c: New file.
12075 * features/aarch64-pauth.xml: New file.
12076
12077 2019-03-20 Tom Tromey <tromey@adacore.com>
12078
12079 * infrun.c (handle_inferior_event): Rename from
12080 handle_inferior_event_1. Create a scoped_value_mark.
12081 (handle_inferior_event): Remove.
12082
12083 2019-03-19 Tom Tromey <tromey@adacore.com>
12084
12085 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12086 * infrun.h (print_stop_event): Add "displays" parameter.
12087 * infrun.c (print_stop_event): Add "displays" parameter.
12088
12089 2019-03-19 Pedro Alves <palves@redhat.com>
12090
12091 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12092 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12093 to -1. Fix TABs vs spaces.
12094 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12095 * tui/tui-out.h (tui_ui_out) Add intro comments.
12096 <m_line, m_start_of_line>: In-class initialize, and add describing
12097 comment.
12098
12099 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12100
12101 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12102 variable names.
12103 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12104
12105 2019-03-18 Pedro Alves <palves@redhat.com>
12106 Eli Zaretskii <eliz@gnu.org>
12107
12108 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12109 m_line and m_start_of_line.
12110
12111 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12112
12113 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12114 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12115 it returns a newline. This fixes a regression in TU mode, whereby
12116 the next line is output on the same screen line as the user input.
12117
12118 2019-03-18 Tom Tromey <tromey@adacore.com>
12119
12120 * minsyms.c (minimal_symbol_reader::install): Remove call to
12121 obstack_blank.
12122
12123 2019-03-18 Pedro Alves <palves@redhat.com>
12124
12125 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12126 New globals.
12127 (apply_style): New, factored out from ...
12128 (apply_ansi_escape): ... this. Handle reverse video mode.
12129 (tui_set_reverse_mode): New function.
12130 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12131 * tui/tui-winsource.c (tui_show_source_line): Use
12132 tui_set_reverse_mode instead of setting A_STANDOUT.
12133 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12134 New setter methods.
12135
12136 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12137
12138 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12139 Handle tabs.
12140
12141 2019-03-18 Tom Tromey <tromey@adacore.com>
12142
12143 * ada-lang.c (empty_array): Add "high" parameter.
12144 (ada_evaluate_subexp): Update.
12145
12146 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12147
12148 * unittests/string_view-selftests.c: Define
12149 _initialize_string_view_selftests unconditionally.
12150
12151 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12152
12153 PR gdb/24350
12154 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12155
12156 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12157
12158 PR gdb/24351
12159 * windows-nat.c (display_selector): Fix format specifiers.
12160
12161 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12162
12163 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12164 tui_refill_source_window instead of tui_refresh_win, to update the
12165 current execution line. This fixes redisplay of the current line
12166 when stepping through the code with "next" or "step".
12167
12168 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12169
12170 * source-cache.c (source_cache::get_source_lines): Call
12171 find_source_lines to initialize s->nlines. This fixes vertical
12172 scrolling of TUI source window when the DOWN arrow is pressed.
12173
12174 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12175
12176 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12177 linux-thread-db.c (_initialize_thread_db): Likewise.
12178
12179 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12180
12181 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12182 wclrtoeol in tui_show_source_line". This reverts changes made in
12183 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12184
12185 2019-03-15 Tom Tromey <tom@tromey.com>
12186
12187 * symtab.h (struct minimal_symbol): Derive from
12188 general_symbol_info.
12189 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12190 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12191 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12192 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12193 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12194 (MSYMBOL_SEARCH_NAME): Update.
12195 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12196 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12197 * minsyms.c (minimal_symbol_reader::record_full): Update.
12198
12199 2019-03-15 Tom Tromey <tom@tromey.com>
12200
12201 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12202
12203 2019-03-15 Tom Tromey <tom@tromey.com>
12204
12205 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12206 unique_xmalloc_ptr.
12207 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12208 Update.
12209 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12210 (build_minimal_symbol_hash_tables)
12211 (minimal_symbol_reader::install): Update.
12212
12213 2019-03-15 Tom Tromey <tom@tromey.com>
12214
12215 * symtab.c (create_demangled_names_hash): Update.
12216 (symbol_set_names): Update.
12217 * objfiles.h (struct objfile_per_bfd_storage)
12218 <demangled_names_hash>: Now an htab_up.
12219 * objfiles.c (objfile_per_bfd_storage): Simplify.
12220
12221 2019-03-15 Tom Tromey <tom@tromey.com>
12222
12223 * objfiles.h (struct objfile_per_bfd_storage): Declare
12224 destructor.
12225 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12226 New.
12227 (get_objfile_bfd_data): Use new. Don't initialize
12228 language_of_main.
12229 (free_objfile_per_bfd_storage): Remove.
12230 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12231
12232 2019-03-15 Tom Tromey <tom@tromey.com>
12233
12234 * symfile.c (reread_symbols): Update.
12235 * objfiles.c (objfile::objfile): Update.
12236 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12237 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12238 comment.
12239 (minimal_symbol_reader::install): Update.
12240 (terminate_minimal_symbol_table): Remove.
12241 * jit.c (jit_object_close_impl): Update.
12242
12243 2019-03-15 Tom Tromey <tom@tromey.com>
12244
12245 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12246 initializations.
12247
12248 2019-03-15 Tom Tromey <tom@tromey.com>
12249
12250 * objfiles.h (struct objfile_per_bfd_storage)
12251 <demangled_hash_languages>: Now a bitset.
12252 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12253 (lookup_minimal_symbol): Update.
12254
12255 2019-03-15 Tom Tromey <tom@tromey.com>
12256
12257 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12258 Don't return the symbol.
12259 * coffread.c (record_minimal_symbol): Use record_full.
12260
12261 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12262
12263 The MS-Windows port of ncurses fails to switch to a color pair if
12264 one or both of the colors are the implicit default colors. This
12265 change records the default colors when TUI is initialized, and
12266 then specifies them explicitly when a color pair uses the default
12267 colors. This allows color styling in TUI mode on MS-Windows.
12268
12269 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12270 ncurses_norm_attr.
12271 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12272 colors in ncurses_norm_attr.
12273 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12274 "none", replace it with the default color recorded in
12275 ncurses_norm_attr.
12276
12277 2019-03-14 Tom Tromey <tromey@adacore.com>
12278
12279 * source-cache.h (class source_cache) <get_source_lines>: Return
12280 std::string.
12281 * source-cache.c (source_cache::extract_lines): Handle case where
12282 first_pos==npos. Return std::string.
12283 (source_cache::get_source_lines): Update.
12284
12285 2019-03-14 Tom Tromey <tromey@adacore.com>
12286
12287 * NEWS: Add item for "style sources" commands.
12288 * source-cache.c (source_cache::get_source_lines): Check
12289 source_styling.
12290 * cli/cli-style.c (source_styling): New global.
12291 (_initialize_cli_style): Add "style sources" commands.
12292 (show_style_sources): New function.
12293 * cli/cli-style.h (source_styling): Declare.
12294
12295 2019-03-14 Pedro Alves <palves@redhat.com>
12296 Tom Tromey <tromey@adacore.com>
12297
12298 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12299 * tui/tui-winsource.c (tui_refill_source_window): New function,
12300 from...
12301 (tui_horizontal_source_scroll): ... here. Move some logic.
12302 * cli/cli-style.c (set_style_enabled): Notify new observable.
12303 * tui/tui-hooks.c (tui_redisplay_source): New function.
12304 (tui_attach_detach_observers): Attach or detach
12305 tui_redisplay_source.
12306 * observable.h (source_styling_changed): New observable.
12307 * observable.c: Define source_styling_changed observable.
12308
12309 2019-03-13 Tom Tromey <tromey@adacore.com>
12310
12311 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12312 (i386_gnu_nat_target::store_registers): Update.
12313 * target-debug.h (target_debug_print_std_string): New macro.
12314 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12315 * windows-tdep.c (display_one_tib): Update.
12316 * tui/tui-stack.c (tui_make_status_line): Update.
12317 * top.c (print_inferior_quit_action): Update.
12318 * thread.c (thr_try_catch_cmd): Update.
12319 (add_thread_with_info): Update.
12320 (thread_target_id_str): Update.
12321 (thr_try_catch_cmd): Update.
12322 (thread_command): Update.
12323 (thread_find_command): Update.
12324 * record-btrace.c (record_btrace_target::info_record)
12325 (record_btrace_resume_thread, record_btrace_target::resume)
12326 (record_btrace_cancel_resume, record_btrace_step_thread)
12327 (record_btrace_target::wait, record_btrace_target::wait)
12328 (record_btrace_target::wait, record_btrace_target::stop): Update.
12329 * progspace.c (print_program_space): Update.
12330 * process-stratum-target.c
12331 (process_stratum_target::thread_address_space): Update.
12332 * linux-fork.c (linux_fork_mourn_inferior)
12333 (detach_checkpoint_command, info_checkpoints_command)
12334 (linux_fork_context): Update.
12335 (linux_fork_detach): Update.
12336 (class scoped_switch_fork_info): Update.
12337 (delete_checkpoint_command): Update.
12338 * infrun.c (follow_fork_inferior): Update.
12339 (follow_fork_inferior): Update.
12340 (proceed_after_vfork_done): Update.
12341 (handle_vfork_child_exec_or_exit): Update.
12342 (follow_exec): Update.
12343 (displaced_step_prepare_throw): Update.
12344 (displaced_step_restore): Update.
12345 (start_step_over): Update.
12346 (resume_1): Update.
12347 (clear_proceed_status_thread): Update.
12348 (proceed): Update.
12349 (print_target_wait_results): Update.
12350 (do_target_wait): Update.
12351 (context_switch): Update.
12352 (stop_all_threads): Update.
12353 (restart_threads): Update.
12354 (finish_step_over): Update.
12355 (handle_signal_stop): Update.
12356 (switch_back_to_stepped_thread): Update.
12357 (keep_going_pass_signal): Update.
12358 (print_exited_reason): Update.
12359 (normal_stop): Update.
12360 * inferior.c (inferior_pid_to_str): Change return type.
12361 (print_selected_inferior): Update.
12362 (add_inferior): Update.
12363 (detach_inferior): Update.
12364 * dummy-frame.c (fprint_dummy_frames): Update.
12365 * dcache.c (dcache_info_1): Update.
12366 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12367 (btrace_fetch, btrace_clear): Update.
12368 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12369 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12370 type.
12371 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12372 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12373 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12374 * gdbarch.c, gdbarch.h: Rebuild.
12375 * gdbarch.sh (core_pid_to_str): Change return type.
12376 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12377 return type.
12378 (windows_nat_target::pid_to_str): Change return type.
12379 (windows_delete_thread): Update.
12380 (windows_nat_target::attach): Update.
12381 (windows_nat_target::files_info): Update.
12382 * target-delegates.c: Rebuild.
12383 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12384 return type.
12385 (sol_thread_target::pid_to_str): Change return type.
12386 * remote.c (class remote_target) <pid_to_str>: Change return
12387 type.
12388 (remote_target::pid_to_str): Change return type.
12389 (extended_remote_target::attach, remote_target::remote_stop_ns)
12390 (remote_target::remote_notif_remove_queued_reply)
12391 (remote_target::push_stop_reply, remote_target::disable_btrace):
12392 Update.
12393 (extended_remote_target::attach): Update.
12394 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12395 type.
12396 (gdbsim_target::pid_to_str): Change return type.
12397 * ravenscar-thread.c (struct ravenscar_thread_target)
12398 <pid_to_str>: Change return type.
12399 (ravenscar_thread_target::pid_to_str): Change return type.
12400 * procfs.c (class procfs_target) <pid_to_str>: Change return
12401 type.
12402 (procfs_target::pid_to_str): Change return type.
12403 (procfs_target::attach): Update.
12404 (procfs_target::detach): Update.
12405 (procfs_target::fetch_registers): Update.
12406 (procfs_target::store_registers): Update.
12407 (procfs_target::wait): Update.
12408 (procfs_target::files_info): Update.
12409 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12410 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12411 return type.
12412 (nto_procfs_target::pid_to_str): Change return type.
12413 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12414 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12415 return type.
12416 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12417 (exit_lwp): Update.
12418 (attach_proc_task_lwp_callback, get_detach_signal)
12419 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12420 (linux_nat_target::resume, wait_lwp, stop_callback)
12421 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12422 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12423 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12424 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12425 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12426 type.
12427 (inf_ptrace_target::attach): Update.
12428 (inf_ptrace_target::files_info): Update.
12429 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12430 type.
12431 (go32_nat_target::pid_to_str): Change return type.
12432 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12433 (gnu_nat_target::wait): Update.
12434 (gnu_nat_target::wait): Update.
12435 (gnu_nat_target::resume): Update.
12436 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12437 (fbsd_nat_target::wait): Update.
12438 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12439 type.
12440 (darwin_nat_target::attach): Update.
12441 * corelow.c (class core_target) <pid_to_str>: Change return type.
12442 (core_target::pid_to_str): Change return type.
12443 * target.c (normal_pid_to_str): Change return type.
12444 (default_pid_to_str): Likewise.
12445 (target_pid_to_str): Change return type.
12446 (target_translate_tls_address): Update.
12447 (target_announce_detach): Update.
12448 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12449 return type.
12450 (bsd_uthread_target::pid_to_str): Change return type.
12451 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12452 type.
12453 (bsd_kvm_target::pid_to_str): Change return type.
12454 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12455 return type.
12456 (aix_thread_target::pid_to_str): Change return type.
12457 * target.h (struct target_ops) <pid_to_str>: Change return type.
12458 (target_pid_to_str, normal_pid_to_str): Likewise.
12459 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12460 type.
12461 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12462 type.
12463 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12464 return type.
12465 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12466 type.
12467 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12468 type.
12469 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12470 return type.
12471
12472 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12473
12474 * NEWS: Mention that the new default MI version is 3. Mention
12475 changes to the output of commands and events that deal with
12476 multi-location breakpoints.
12477 * breakpoint.c: Include "mi/mi-out.h".
12478 (print_one_breakpoint): Change output syntax if using MI version
12479 >= 3.
12480 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12481 New.
12482 (mi_multi_location_breakpoint_output_fixed): New.
12483 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12484 (mi_cmd_fix_multi_location_breakpoint_output): New.
12485 (mi_multi_location_breakpoint_output_fixed): New.
12486 * mi/mi-cmds.c (mi_cmds): Register command
12487 -fix-multi-location-breakpoint-output.
12488 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12489 interpreter "mi".
12490
12491 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12492
12493 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12494 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12495 instantiate mi_ui_out based on interpreter name.
12496 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12497 * mi/mi-main.c (mi_load_progress): Likewise.
12498
12499 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12500
12501 * NEWS: Combine separate "New targets" sections for 8.3.
12502
12503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12504
12505 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12506 (ppcfbsd_init_abi): Install gdbarch
12507 "fetch_tls_load_module_address" and "get_thread_local_address"
12508 methods.
12509
12510 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12511
12512 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12513 (riscv_fbsd_init_abi): Install gdbarch
12514 "fetch_tls_load_module_address" and "get_thread_local_address"
12515 methods.
12516
12517 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12518
12519 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12520 (i386fbsd_init_abi): Install gdbarch
12521 "fetch_tls_load_module_address" and "get_thread_local_address"
12522 methods.
12523
12524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12525
12526 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12527 (amd64fbsd_init_abi): Install gdbarch
12528 "fetch_tls_load_module_address" and "get_thread_local_address"
12529 methods.
12530
12531 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12532
12533 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12534 (struct fbsd_pspace_data): New type.
12535 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12536 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12537 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12538 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12539 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12540
12541 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12542
12543 * gdbtypes.c (lookup_struct_elt): New function.
12544 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12545 * gdbtypes.h (struct struct_elt): New type.
12546 (lookup_struct_elt): New prototype.
12547
12548 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12549
12550 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12551 remove disabled code block.
12552
12553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12554
12555 * gdbarch.sh (get_thread_local_address): New method.
12556 * gdbarch.h, gdbarch.c: Regenerate.
12557 * target.c (target_translate_tls_address): Use
12558 gdbarch_get_thread_local_address if present instead of
12559 target::get_thread_local_address.
12560
12561 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12562
12563 * target.h (target::get_thread_local_address): Update comment.
12564
12565 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12566
12567 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12568 objfile->separate_debug_objfile_backlink if not NULL.
12569
12570 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12571
12572 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12573 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12574 (amd64bsd_store_inferior_registers): Likewise.
12575 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12576 Enable segment base registers.
12577 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12578 PT_GETFSBASE and PT_GETGSBASE.
12579 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12580 PT_SETGSBASE.
12581 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12582 segment base registers.
12583 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12584
12585 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12586
12587 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12588 Update calls to i386_target_description to add 'segments'
12589 parameter.
12590 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12591 add segment base registers.
12592 * arch/i386.c (i386_create_target_description): Add 'segments'
12593 parameter to enable segment base registers.
12594 * arch/i386.h (i386_create_target_description): Likewise.
12595 * features/i386/32bit-segments.xml: New file.
12596 * features/i386/32bit-segments.c: Generate.
12597 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12598 call to i386_target_description to add 'segments' parameter.
12599 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12600 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12601 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12602 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12603 if feature is present.
12604 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12605 Add 'segments' parameter to call to i386_target_description.
12606 (i386_target_description): Add 'segments' parameter to enable
12607 segment base registers.
12608 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12609 to call to i386_target_description.
12610 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12611 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12612 Define I386_NUM_REGS.
12613 (i386_target_description): Add 'segments' parameter to enable
12614 segment base registers.
12615
12616 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12617
12618 PR/24325
12619 * source-cache.c: #undef open and close, to avoid unresolved
12620 externals during linking.
12621
12622 2019-03-12 Tom Tromey <tromey@adacore.com>
12623
12624 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12625 const. Add initializers.
12626 (_initialize_remote): Don't initialize ptid globals.
12627
12628 2019-03-12 Pedro Alves <palves@redhat.com>
12629
12630 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12631
12632 2019-03-12 Pedro Alves <palves@redhat.com>
12633
12634 * cp-name-parser.y (main): Remove unused 'len' variable.
12635
12636 2019-03-12 Tom Tromey <tromey@adacore.com>
12637
12638 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12639 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12640
12641 2019-03-12 Tom Tromey <tromey@adacore.com>
12642
12643 * linux-nat.c (iterate_over_lwps): Update.
12644 (stop_callback): Remove parameter.
12645 (stop_wait_callback, detach_callback, resume_set_callback)
12646 (select_singlestep_lwp_callback, set_ignore_sigint)
12647 (status_callback, resumed_callback, resume_clear_callback)
12648 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12649 data parameter.
12650 (linux_nat_target::detach, linux_nat_target::resume)
12651 (linux_stop_and_wait_all_lwps, select_event_lwp)
12652 (linux_nat_filter_event, linux_nat_wait_1)
12653 (linux_nat_target::kill, linux_nat_target::stop)
12654 (linux_nat_target::stop): Update.
12655 (linux_nat_resume_callback): Change type.
12656 (resume_stopped_resumed_lwps, count_events_callback)
12657 (select_event_lwp_callback): Likewise.
12658 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12659 * arm-linux-nat.c (struct update_registers_data): Remove.
12660 (update_registers_callback): Change type.
12661 (arm_linux_insert_hw_breakpoint1): Update.
12662 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12663 parameter.
12664 (x86_linux_dr_set_addr): Update.
12665 (x86_linux_dr_set_control): Update.
12666 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12667 (iterate_over_lwps): Use gdb::function_view.
12668 * nat/aarch64-linux-hw-point.c (struct
12669 aarch64_dr_update_callback_param): Remove.
12670 (debug_reg_change_callback): Change type.
12671 (aarch64_notify_debug_reg_change): Update.
12672 * s390-linux-nat.c (s390_refresh_per_info): Update.
12673
12674 2019-03-11 Tom Tromey <tromey@adacore.com>
12675
12676 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12677 redundant assignment to "this_cu".
12678
12679 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12680
12681 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12682
12683 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12684
12685 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12686 from...
12687 (rank_one_type): ... this.
12688
12689 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12690
12691 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12692 from...
12693 (rank_one_type): ... this.
12694
12695 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12696
12697 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12698 from...
12699 (rank_one_type): ... this.
12700
12701 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12704 from...
12705 (rank_one_type): ... this.
12706
12707 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12708
12709 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12710 from...
12711 (rank_one_type): ... this.
12712
12713 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12714
12715 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12716 from...
12717 (rank_one_type): ... this.
12718
12719 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12720
12721 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12722 from...
12723 (rank_one_type): ... this.
12724
12725 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12726
12727 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12728 from...
12729 (rank_one_type): ... this.
12730
12731 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12732
12733 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12734 from...
12735 (rank_one_type): ... this.
12736
12737 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12738
12739 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12740 from...
12741 (rank_one_type): ... this.
12742
12743 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12744
12745 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12746 from...
12747 (rank_one_type): ... this.
12748
12749 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12752 from...
12753 (rank_one_type): ... this.
12754
12755 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12756
12757 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12758 inferior-events' shows the example events.
12759
12760 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12761
12762 Support styling on native MS-Windows console
12763
12764 PR/24315
12765 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12766 on MS-Windows if $TERM is not defined.
12767
12768 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12769
12770 * posix-hdep.c (gdb_console_fputs):
12771 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12772 functions.
12773 * ui-file.h (gdb_console_fputs): Add prototype.
12774
12775 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12776 back to fputs only if the former returns zero.
12777
12778 2019-03-07 Tom Tromey <tom@tromey.com>
12779
12780 * symmisc.c (print_symbol_bcache_statistics): Update.
12781 (print_objfile_statistics): Update.
12782 * symfile.c (allocate_symtab): Update.
12783 * stabsread.c: Don't include bcache.h.
12784 * psymtab.h (struct psymbol_bcache): Don't declare.
12785 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12786 (psymbol_bcache_init, psymbol_bcache_free)
12787 (psymbol_bcache_get_bcache): Don't declare.
12788 * psymtab.c (struct psymbol_bcache): Remove.
12789 (psymtab_storage::psymtab_storage): Update.
12790 (psymtab_storage::~psymtab_storage): Update.
12791 (psymbol_bcache_init, psymbol_bcache_free)
12792 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12793 (add_psymbol_to_bcache): Update.
12794 (allocate_psymtab): Update.
12795 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12796 macro_cache>: No longer pointers.
12797 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12798 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12799 * macrotab.c (macro_bcache): Update.
12800 * macroexp.c: Don't include bcache.h.
12801 * gdbtypes.c (check_types_worklist): Update.
12802 (types_deeply_equal): Remove TRY/CATCH. Update.
12803 * elfread.c (elf_symtab_read): Update.
12804 * dwarf2read.c: Don't include bcache.h.
12805 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12806 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12807 (print_bcache_statistics, bcache_memory_used): Don't declare.
12808 (struct bcache): Move from bcache.c. Add constructor, destructor,
12809 methods. Rename all data members.
12810 * bcache.c (struct bcache): Move to bcache.h.
12811 (bcache::expand_hash_table): Rename from expand_hash_table.
12812 (bcache): Remove.
12813 (bcache::insert): Rename from bcache_full.
12814 (bcache::compare): Rename from bcache_compare.
12815 (bcache_xmalloc): Remove.
12816 (bcache::~bcache): Rename from bcache_xfree.
12817 (bcache::print_statistics): Rename from print_bcache_statistics.
12818 (bcache::memory_used): Rename from bcache_memory_used.
12819
12820 2019-03-07 Pedro Alves <palves@redhat.com>
12821
12822 * infrun.c (normal_stop): Also check for
12823 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12824
12825 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12826
12827 * f-lang.c (value_from_host_double): Moved to...
12828 * value.c (value_from_host_double): ...here.
12829 * value.h (value_from_host_double): Declare.
12830 * guile/scm-math.c (vlscm_convert_typed_number): Use
12831 value_from_host_double.
12832 (vlscm_convert_number): Likewise.
12833 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12834 * python/py-value.c (convert_value_from_python): Likewise.
12835
12836 2019-03-06 Tom Tromey <tom@tromey.com>
12837
12838 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12839
12840 2019-03-06 Tom Tromey <tom@tromey.com>
12841
12842 * utils.h (free_current_contents): Don't declare.
12843 * utils.c (free_current_contents): Remove.
12844
12845 2019-03-06 Tom Tromey <tom@tromey.com>
12846
12847 * top.c (quit_force): Update.
12848 * main.c (captured_command_loop): Update.
12849 * common/new-op.c (operator new): Update.
12850 * common/common-exceptions.c (struct catcher)
12851 <save_cleanup_chain>: Remove member.
12852 (exceptions_state_mc_init): Update.
12853 (exception_try_scope_entry): Return nullptr.
12854 (exception_try_scope_exit, exception_rethrow)
12855 (throw_exception_sjlj, throw_exception_cxx): Update.
12856 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12857 (all_cleanups, do_cleanups, discard_cleanups)
12858 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12859 (restore_cleanups, restore_final_cleanups): Don't declare.
12860 (do_final_cleanups): Remove parameter.
12861 * common/cleanups.c (cleanup_chain, make_cleanup)
12862 (make_cleanup_dtor, all_cleanups, do_cleanups)
12863 (discard_my_cleanups, discard_cleanups)
12864 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12865 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12866 (null_cleanup): Remove.
12867 (do_final_cleanups): Remove parameter.
12868
12869 2019-03-06 Tom Tromey <tom@tromey.com>
12870
12871 * remote.c (remote_target::remote_parse_stop_reply): Use
12872 unique_xmalloc_ptr.
12873
12874 2019-03-06 Tom Tromey <tom@tromey.com>
12875
12876 * stabsread.c (struct stabs_field_info): Rename from field_info.
12877 <list, fnlist>: Add initializers.
12878 <obstack>: New member.
12879 (read_member_functions, read_struct_fields, read_baseclasses):
12880 Allocate on obstack. Don't use cleanups.
12881 (read_one_struct_field, read_member_functions, read_struct_fields)
12882 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12883 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12884 (read_struct_type): Update.
12885
12886 2019-03-06 Tom Tromey <tom@tromey.com>
12887
12888 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12889 * common/filestuff.h (make_cleanup_close): Don't declare.
12890 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12891 Remove.
12892
12893 2019-03-06 Tom Tromey <tom@tromey.com>
12894
12895 * solib-aix.c: Use make_scope_exit.
12896
12897 2019-03-06 Tom Tromey <tom@tromey.com>
12898
12899 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12900 Use make_scope_exit.
12901
12902 2019-03-06 Tom Tromey <tom@tromey.com>
12903
12904 * solib-svr4.c (disable_probes_interface): Remove parameter.
12905 (svr4_handle_solib_event): Use make_scope_exit.
12906
12907 2019-03-06 Tom Tromey <tom@tromey.com>
12908
12909 * remote.c (struct stop_reply_deleter): Remove.
12910 (stop_reply_up): Update.
12911 (struct stop_reply): Derive from notif_event. Don't typedef.
12912 <regcache>: Now a std::vector.
12913 (stop_reply_xfree): Remove.
12914 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12915 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12916 (remote_target::discard_pending_stop_replies): Use delete.
12917 (remote_target::remote_parse_stop_reply): Update.
12918 (remote_target::process_stop_reply): Update.
12919 * remote-notif.h (struct notif_event): Add virtual destructor.
12920 Remove "dtr" member.
12921 (struct notif_client) <alloc_event>: Return a unique_ptr.
12922 (notif_event_xfree): Don't declare.
12923 (notif_event_up): New typedef.
12924 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12925 (notif_event_xfree, do_notif_event_xfree): Remove.
12926 (remote_notif_state_xfree): Update.
12927
12928 2019-03-06 Tom Tromey <tom@tromey.com>
12929
12930 * infrun.c (displaced_step_clear_cleanup): Now a
12931 forward_scope_exit type.
12932 (displaced_step_prepare_throw): Update.
12933 (displaced_step_fixup): Update.
12934
12935 2019-03-06 Tom Tromey <tom@tromey.com>
12936
12937 * inferior.h (class inferior): Update comment.
12938 * gdbthread.h (class thread_info): Update comment.
12939
12940 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12941 Tom Tromey <tom@tromey.com>
12942
12943 * stabsread.h (struct stab_section_list): Remove.
12944 (coffstab_build_psymtabs): Update.
12945 * dbxread.c (symbuf_sections): Now a std::vector.
12946 (sect_idx): New global.
12947 (fill_symbuf): Update.
12948 (coffstab_build_psymtabs): Change type of stabsects parameter.
12949 Update.
12950 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12951 std::vector.
12952 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12953 (coff_locate_sections): Update.
12954 (coff_symfile_read): Remove cleanups. Update.
12955 (init_stringtab): Add storage parameter.
12956 (free_stringtab, free_stringtab_cleanup): Remove.
12957 (init_lineno): Add storage parameter.
12958 (free_linetab, free_linetab_cleanup): Remove.
12959
12960 2019-03-06 Pedro Alves <palves@redhat.com>
12961
12962 * linux-fork.c (fork_info::clobber_regs): Delete.
12963 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12964 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12965 comment. Adjust.
12966 (scoped_switch_fork_info::scoped_switch_fork_info)
12967 (checkpoint_command, linux_fork_context): Adjust
12968 fork_save_infrun_state calls.
12969
12970 2019-03-06 Pedro Alves <palves@redhat.com>
12971
12972 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12973 (inf_has_multiple_threads): Return 'bool' and rewrite using
12974 inferior_info::threads().
12975
12976 2019-03-06 Pedro Alves <palves@redhat.com>
12977
12978 * linux-fork.c: Include <list>.
12979 (fork_list): Now a std::list instance.
12980 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12981 (forks_exist_p, find_last_fork): Adjust.
12982 (new_fork): Delete.
12983 (one_fork_p): New.
12984 (add_fork): Adjust.
12985 (free_fork): Delete, folded into fork_info::~fork_info().
12986 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12987 Adjust.
12988 (init_fork_list): Delete.
12989 (linux_fork_killall, linux_fork_mourn_inferior)
12990 (linux_fork_detach, info_checkpoints_command): Adjust.
12991 (_initialize_linux_fork): No longer call init_fork_list.
12992
12993 2019-03-06 Pedro Alves <palves@redhat.com>
12994
12995 * linux-fork.c (new_fork): New, split out of ...
12996 (add_fork): ... this. Return void. Move "first fork" special
12997 case from here, to ...
12998 (checkpoint_command): ... here.
12999 * linux-linux.h (add_fork): Return void.
13000
13001 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13002
13003 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13004
13005 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13006 Chris January <chris.january@arm.com>
13007 David Lecomber <david.lecomber@arm.com>
13008
13009 * f-exp.y: New token, UNOP_INTRINSIC.
13010 (exp): New pattern using UNOP_INTRINSIC token.
13011 (f77_keywords): Add 'abs' keyword.
13012 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13013 (value_from_host_double): New function.
13014 (evaluate_subexp_f): Support UNOP_ABS.
13015
13016 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13017
13018 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13019 types.
13020
13021 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13022
13023 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13024 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13025 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13026
13027 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13028
13029 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13030
13031 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13032 Chris January <chris.january@arm.com>
13033
13034 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13035 * f-exp.y: Define 'KIND' token.
13036 (exp): New pattern for KIND expressions.
13037 (ptype): Handle types with a kind extension.
13038 (direct_abs_decl): Extend to spot kind extensions.
13039 (f77_keywords): Add 'kind' to the list.
13040 (push_kind_type): New function.
13041 (convert_to_kind_type): New function.
13042 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13043 * parse.c (operator_length_standard): Likewise.
13044 * parser-defs.h (enum type_pieces): Add tp_kind.
13045 * std-operator.def: Add UNOP_KIND.
13046
13047 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13048
13049 * f-exp.y (f_parse): Set yydebug.
13050
13051 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13052
13053 * f-lang.c (evaluate_subexp_f): New function.
13054 (exp_descriptor_f): New global.
13055 (f_language_defn): Use exp_descriptor_f instead of
13056 exp_descriptor_standard.
13057
13058 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13059
13060 * f-exp.y (struct token): Add comments.
13061 (dot_ops): Remove uppercase versions and the end marker.
13062 (f77_keywords): Likewise.
13063 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13064 entries in the dot_ops array are case insensitive, and use
13065 strncasecmp to compare strings. Also some whitespace cleanup in
13066 this area. Similar for the f77_keywords array, except entries in
13067 this list might be case sensitive.
13068
13069 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13070
13071 * f-exp.y (struct f77_boolean_val): Add comments.
13072 (boolean_values): Remove uppercase versions, and end marker.
13073 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13074 and use strncasecmp to achieve case insensitivity. Additionally,
13075 perform whitespace cleanup around this code.
13076
13077 2019-03-06 Tom Tromey <tromey@adacore.com>
13078
13079 * remote-sim.c (gdbsim_target_open): Use result of
13080 gdb_argv::release.
13081
13082 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13083 Dirk Schubert <dirk.schubert@arm.com>
13084 Chris January <chris.january@arm.com>
13085
13086 * eval.c (evaluate_subexp_standard): Call Fortran argument
13087 wrapping logic.
13088 * f-lang.c (struct value): A value which can be passed into a
13089 Fortran function call.
13090 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13091 where appropriate.
13092 (struct type): Value ready for a Fortran function call.
13093 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13094 is needed.
13095 * f-lang.h (fortran_argument_convert): Declaration.
13096 (fortran_preserve_arg_pointer): Declaration.
13097 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13098
13099 2019-03-05 Tom Tromey <tromey@adacore.com>
13100
13101 * python/py-prettyprint.c (print_string_repr): Remove #if.
13102 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13103
13104 2019-03-05 Tom Tromey <tromey@adacore.com>
13105
13106 * target.c (the_dummy_target): Move later. Change type to
13107 "dummy_target".
13108 (initialize_targets): Don't initialize the_dummy_target.
13109
13110 2019-03-05 Tom Tromey <tromey@adacore.com>
13111
13112 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13113 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13114
13115 2019-03-05 Tom Tromey <tromey@adacore.com>
13116
13117 * windows-nat.c (windows_nat_target::attach)
13118 (windows_nat_target::detach): Don't call gdb_flush.
13119 * valprint.c (generic_val_print, val_print, val_print_string):
13120 Don't call gdb_flush.
13121 * utils.c (defaulted_query): Don't call gdb_flush.
13122 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13123 * target.c (target_announce_detach): Don't call gdb_flush.
13124 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13125 * remote.c (extended_remote_target::attach): Don't call
13126 gdb_flush.
13127 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13128 * printcmd.c (do_examine): Don't call gdb_flush.
13129 (info_display_command): Don't call gdb_flush.
13130 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13131 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13132 * memattr.c (info_mem_command): Don't call gdb_flush.
13133 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13134 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13135 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13136 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13137 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13138 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13139 (gnu_nat_target::detach): Don't call gdb_flush.
13140 * f-valprint.c (f_val_print): Don't call gdb_flush.
13141 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13142 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13143 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13144 gdb_flush.
13145 * c-valprint.c (c_val_print): Don't call gdb_flush.
13146 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13147
13148 2019-03-05 Tom Tromey <tromey@adacore.com>
13149
13150 * varobj.c (update_dynamic_varobj_children): Update.
13151 (install_default_visualizer): Use reset, not release.
13152 * value.c (set_internalvar): Update.
13153 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13154 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13155 ATTRIBUTE_UNUSED_RESULT.
13156
13157 2019-03-05 Tom Tromey <tromey@adacore.com>
13158
13159 * remote.c (class scoped_remote_fd) <release>: Add
13160 ATTRIBUTE_UNUSED_RESULT.
13161
13162 2019-03-05 Tom Tromey <tromey@adacore.com>
13163
13164 * macroexp.c (struct macro_buffer) <release>: Add
13165 ATTRIBUTE_UNUSED_RESULT.
13166
13167 2019-03-05 Tom Tromey <tromey@adacore.com>
13168
13169 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13170 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13171 ATTRIBUTE_UNUSED_RESULT.
13172
13173 2019-03-05 Tom Tromey <tromey@adacore.com>
13174
13175 * common/scoped_fd.h (class scoped_fd) <release>: Add
13176 ATTRIBUTE_UNUSED_RESULT.
13177
13178 2019-03-05 Tom Tromey <tromey@adacore.com>
13179
13180 * parser-defs.h (struct parser_state) <release>: Add
13181 ATTRIBUTE_UNUSED_RESULT.
13182
13183 2019-03-05 Tom Tromey <tromey@adacore.com>
13184
13185 * utils.h (class gdb_argv) <release>: Add
13186 ATTRIBUTE_UNUSED_RESULT.
13187 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13188
13189 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13190
13191 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13192 for-loop range, to avoid compiler warnings.
13193
13194 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13195 avoid compiler warnings about unused variables.
13196
13197 * NEWS: Mention end of support for native debugging on MS-Windows
13198 before XP.
13199
13200 PR gdb/24292
13201 * common/netstuff.c:
13202 * gdbserver/gdbreplay.c
13203 * gdbserver/remote-utils.c:
13204 * ser-tcp.c:
13205 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13206 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13207 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13208 'getaddrinfo' and 'freeaddrinfo' were not available before
13209 Windows XP, and mingw.org's MinGW headers by default define
13210 _WIN32_WINNT to 0x500.
13211
13212 2019-03-01 Gary Benson <gbenson@redhat.com>
13213
13214 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13215
13216 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13217 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13218
13219 PR gdb/8527
13220 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13221 set_sigint_trap, clear_sigint_trap.
13222
13223 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13224
13225 * target.c (target_detach): Clear the regcache and the
13226 frame cache.
13227
13228 2019-02-27 Pedro Alves <palves@redhat.com>
13229
13230 * utils.c (set_screen_size): When we cap the height/width sizes,
13231 tweak the corresponding command variable to show "unlimited":
13232
13233 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13234 Pedro Alves <palves@redhat.com>
13235
13236 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13237 before calling rl_set_screen_size.
13238
13239 2019-02-27 Tom Tromey <tromey@adacore.com>
13240
13241 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13242 define.
13243 * python/py-value.c: Remove Python 2.4 workaround.
13244 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13245 workaround.
13246 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13247 Python 2.4 workaround.
13248 * python/python-internal.h: Remove Python 2.4 comment.
13249 (Py_ssize_t): Don't define.
13250 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13251 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13252 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13253 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13254 * python/python.c (do_start_initialization): Remove Python 2.4
13255 workaround.
13256 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13257 (print_children): Remove Python 2.4 workaround.
13258 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13259 workaround.
13260 (CHARBUFFERPROC_NAME): Remove.
13261 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13262 Python 2.4 workaround.
13263
13264 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13265
13266 * NEWS: Note minimum Python version.
13267
13268 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13269
13270 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13271 code from these functions. Remove corresponding ifdefs. Use
13272 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13273 Remove gotos and target of gotos.
13274 (infpy_search_memory): Likewise.
13275
13276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13277
13278 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13279 (hppa_gdbarch_init): Don't register deleted functions with
13280 gdbarch.
13281
13282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13283
13284 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13285 (h8300_unwind_sp): Delete.
13286 (h8300_dummy_id): Delete.
13287 (h8300_gdbarch_init): Don't register deleted functions with
13288 gdbarch.
13289
13290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13293 (ft32_unwind_pc): Delete.
13294 (ft32_unwind_sp): Delete.
13295 (ft32_gdbarch_init): Don't register deleted functions with
13296 gdbarch.
13297
13298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13299
13300 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13301 (frv_unwind_pc): Delete.
13302 (frv_unwind_sp): Delete.
13303 (frv_gdbarch_init): Don't register deleted functions with
13304 gdbarch.
13305
13306 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13307
13308 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13309 (riscv_unwind_pc): Delete.
13310 (riscv_unwind_sp): Delete.
13311 (riscv_gdbarch_init): Don't register deleted functions with
13312 gdbarch.
13313
13314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13315
13316 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13317 (csky_unwind_pc): Delete.
13318 (csky_unwind_sp): Delete.
13319 (csky_gdbarch_init): Don't register deleted functions with
13320 gdbarch.
13321
13322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13323
13324 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13325 (cris_unwind_pc): Delete.
13326 (cris_unwind_sp): Delete.
13327 (cris_gdbarch_init): Don't register deleted functions with
13328 gdbarch.
13329
13330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13331
13332 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13333 (bfin_unwind_pc): Delete.
13334 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13335
13336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13337
13338 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13339 (arm_unwind_pc): Delete.
13340 (arm_unwind_sp): Delete.
13341 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13342
13343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13344
13345 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13346 (arc_unwind_pc): Delete.
13347 (arc_unwind_sp): Delete.
13348 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13349
13350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13351
13352 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13353 (alpha_unwind_pc): Delete.
13354 (alpha_gdbarch_init): Don't register deleted functions with
13355 gdbarch.
13356
13357 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13358
13359 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13360 (aarch64_unwind_pc): Delete.
13361 (aarch64_unwind_sp): Delete.
13362 (aarch64_gdbarch_init): Don't register deleted functions with
13363 gdbarch.
13364
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * gdbtypes.c (type_align): Don't consider static members when
13368 computing structure alignment.
13369
13370 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13371
13372 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13373 return 0 for other types.
13374 * arch-utils.c (default_type_align): Always return 0.
13375 * gdbarch.h: Regenerate.
13376 * gdbarch.sh (type_align): Extend comment.
13377 * gdbtypes.c (type_align): Add additional comments, always call
13378 gdbarch_type_align before applying the default rules.
13379 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13380 generic code will then apply a suitable default.
13381 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13382 types, return 0 for other types.
13383
13384 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13385
13386 * NEWS: Create a new section for the next release branch.
13387 Rename the section of the current branch, now that it has
13388 been cut.
13389
13390 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13391
13392 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13393 * version.in: Bump version to 8.3.50.DATE-git.
13394
13395 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13396
13397 * aix-thread.c (ptid_cmp): Remove unused variable.
13398 (get_signaled_thread): Likewise.
13399 (store_regs_user_thread): Likewise.
13400 (store_regs_kernel_thread): Likewise.
13401 (fetch_regs_kernel_thread): Remove shadowed variable.
13402
13403 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13404
13405 * features/riscv/32bit-cpu.xml: Add register numbers.
13406 * features/riscv/32bit-fpu.c: Regenerate.
13407 * features/riscv/32bit-fpu.xml: Add register numbers.
13408 * features/riscv/64bit-cpu.xml: Add register numbers.
13409 * features/riscv/64bit-fpu.c: Regenerate.
13410 * features/riscv/64bit-fpu.xml: Add register numbers.
13411
13412 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13413
13414 * NEWS: Mention two argument form of gdb.Value constructor.
13415 * python/py-value.c (convert_buffer_and_type_to_value): New
13416 function.
13417 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13418 Add support for handling an optional second argument. Call
13419 convert_buffer_and_type_to_value as appropriate.
13420 * python/python-internal.h (Py_buffer_deleter): New struct.
13421 (Py_buffer_up): New typedef.
13422
13423 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13424
13425 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13426 instead of releasing ownership.
13427
13428 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13429
13430 * dwarf2read.c (open_and_init_dwp_file): Call
13431 elf_numsections instead of bfd_count_sections to initialize
13432 dwp_file->num_sections.
13433
13434 2019-02-25 Tom Tromey <tromey@adacore.com>
13435
13436 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13437
13438 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13439
13440 * gcore.in: Add '--readnever' option when invoking GDB.
13441
13442 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13443
13444 * MAINTAINERS: Update my email address.
13445
13446 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13447
13448 * build-id.c (build_id_to_debug_bfd_1): New function.
13449 (build_id_to_debug_bfd): Look for separate debug file in
13450 sysroot.
13451
13452 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * gdbarch.sh: Update the copyright year range that is placed into
13455 generated files.
13456
13457 2019-02-22 Keith Seitz <keiths@redhat.com>
13458
13459 PR symtab/23853
13460 * linespec.c (create_sals_line_offset): Search for the default
13461 symtab's filename instead of its fullname.
13462
13463 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13464
13465 * NEWS: Update style defaults.
13466
13467 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13468
13469 * main.c (captured_main_1): Disable styling in batch mode.
13470
13471 2019-02-20 Tom Tromey <tom@tromey.com>
13472
13473 * symtab.c (symtab_symbol_info): Fix typos.
13474
13475 2019-02-20 Tom Tromey <tromey@adacore.com>
13476
13477 * findcmd.c (_initialize_mem_search): Use upper case for
13478 metasyntactic variables.
13479
13480 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13481
13482 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13483 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13484
13485 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13486
13487 * top.h (source_file_name): Change to std::string.
13488 * top.c (source_file_name): Likewise.
13489 (command_line_input): Adjust.
13490 * cli/cli-script.c (script_from_file): Adjust.
13491
13492 2019-02-19 Tom Tromey <tromey@adacore.com>
13493
13494 * ravenscar-thread.c
13495 (ravenscar_thread_target::update_thread_list): Don't call
13496 ada_build_task_list.
13497 * ada-lang.h (ada_build_task_list): Don't declare.
13498 * ada-tasks.c (struct ada_tasks_inferior_data)
13499 <task_list_valid_p>: Now bool.
13500 (read_known_tasks, ada_task_list_changed)
13501 (ada_tasks_invalidate_inferior_data): Update.
13502 (read_known_tasks_array): Return bool.
13503 (read_known_tasks_list): Likewise.
13504 (read_known_tasks): Return void.
13505 (ada_build_task_list): Now static.
13506
13507 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13508
13509 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13510 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13511
13512 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13513
13514 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13515 variant for ada_tasks_pspace_data_handle and
13516 ada_tasks_inferior_data_handle.
13517 (ada_tasks_pspace_data_cleanup): New function.
13518 (ada_tasks_inferior_data_cleanup): New function.
13519
13520 2019-02-17 Tom Tromey <tom@tromey.com>
13521
13522 * macrotab.h (macro_source_fullname): Return a std::string.
13523 * macrotab.c (macro_include, check_for_redefinition)
13524 (macro_undef, macro_lookup_definition, foreach_macro)
13525 (foreach_macro_in_scope): Update.
13526 (macro_source_fullname): Return a std::string.
13527 * macrocmd.c (show_pp_source_pos): Update.
13528
13529 2019-02-17 Tom Tromey <tom@tromey.com>
13530
13531 * macrocmd.c (show_pp_source_pos): Style the file names.
13532
13533 2019-02-17 Tom Tromey <tom@tromey.com>
13534
13535 PR tui/24197:
13536 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13537
13538 2019-02-17 Tom Tromey <tom@tromey.com>
13539
13540 * ada-lang.c (user_select_syms): Use filtered printing.
13541 * utils.c (wrap_style): New global.
13542 (desired_style): Remove.
13543 (emit_style_escape): Add stream parameter.
13544 (set_output_style, reset_terminal_style, prompt_for_continue):
13545 Update.
13546 (flush_wrap_buffer): Only flush gdb_stdout.
13547 (wrap_here): Set wrap_style.
13548 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13549 treat escape sequences as a character. Change when wrap buffer is
13550 flushed.
13551 (fputs_styled): Do not set the output style when the default is
13552 requested.
13553 * ui-style.h (struct ui_file_style) <is_default>: New method.
13554 * source.c (print_source_lines_base): Emit escape sequences in one
13555 piece.
13556
13557 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13558
13559 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13560 integers and enumeration types.
13561
13562 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13563
13564 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13565 instead of lookup_symbol_in_language
13566 (do_exact_match): New function.
13567 (ada_get_symbol_name_matcher): Return do_exact_match when
13568 doing a verbatim match.
13569
13570 2019-02-15 Tom Tromey <tromey@adacore.com>
13571
13572 * ravenscar-thread.c (ravenscar_thread_target::resume)
13573 (ravenscar_thread_target::wait): Special case wildcard requests.
13574
13575 2019-02-15 Tom Tromey <tromey@adacore.com>
13576
13577 * ravenscar-thread.c (base_ptid): Remove.
13578 (struct ravenscar_thread_target) <close>: New method.
13579 <m_base_ptid>: New member.
13580 <update_inferior_ptid, active_task, task_is_currently_active,
13581 runtime_initialized>: Declare methods.
13582 <ravenscar_thread_target>: Add constructor.
13583 (ravenscar_thread_target::task_is_currently_active)
13584 (ravenscar_thread_target::update_inferior_ptid)
13585 (ravenscar_runtime_initialized): Rename. Now methods.
13586 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13587 (ravenscar_thread_target::update_thread_list): Update.
13588 (ravenscar_thread_target::active_task): Now method.
13589 (ravenscar_thread_target::store_registers)
13590 (ravenscar_thread_target::prepare_to_store)
13591 (ravenscar_thread_target::prepare_to_store)
13592 (ravenscar_thread_target::mourn_inferior): Update.
13593 (ravenscar_inferior_created): Use "new" to create target.
13594 (ravenscar_thread_target::get_ada_task_ptid): Update.
13595 (_initialize_ravenscar): Don't initialize base_ptid.
13596 (ravenscar_ops): Remove global.
13597
13598 2019-02-15 Tom Tromey <tromey@adacore.com>
13599
13600 * target.h (push_target): Declare new overload.
13601 * target.c (push_target): New overload, taking an rvalue reference.
13602 * remote.c (remote_target::open_1): Use push_target overload.
13603 * corelow.c (core_target_open): Use push_target overload.
13604
13605 2019-02-15 Tom Tromey <tromey@adacore.com>
13606
13607 * ravenscar-thread.c (is_ravenscar_task)
13608 (ravenscar_task_is_currently_active): Return bool.
13609 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13610 (_initialize_ravenscar): Remove "(void)".
13611 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13612 Return bool.
13613
13614 2019-02-15 Tom Tromey <tromey@adacore.com>
13615
13616 * ravenscar-thread.c (ravenscar_runtime_initializer)
13617 (has_ravenscar_runtime, get_running_thread_id)
13618 (ravenscar_thread_target::resume): Fix indentation.
13619
13620 2019-02-15 Tom Tromey <tromey@adacore.com>
13621
13622 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13623 from ravenscar_arch_ops.
13624 (sparc_ravenscar_ops::fetch_registers)
13625 (sparc_ravenscar_ops::store_registers): Now methods.
13626 (sparc_ravenscar_prepare_to_store): Remove.
13627 (sparc_ravenscar_ops): Redefine.
13628 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13629 methods and destructor. Remove members.
13630 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13631 (ravenscar_thread_target::store_registers)
13632 (ravenscar_thread_target::prepare_to_store): Update.
13633 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13634 Remove.
13635 (struct ppc_ravenscar_powerpc_ops): Derive from
13636 ravenscar_arch_ops.
13637 (ppc_ravenscar_powerpc_ops::fetch_registers)
13638 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13639 (ppc_ravenscar_powerpc_ops): Redefine.
13640 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13641 (ppc_ravenscar_e500_ops::fetch_registers)
13642 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13643 (ppc_ravenscar_e500_ops): Redefine.
13644 * aarch64-ravenscar-thread.c
13645 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13646 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13647 (aarch64_ravenscar_fetch_registers)
13648 (aarch64_ravenscar_store_registers): Now methods.
13649 (aarch64_ravenscar_ops): Redefine.
13650
13651 2019-02-15 Tom Tromey <tromey@adacore.com>
13652
13653 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13654 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13655 (ravenscar_thread_target::stopped_by_watchpoint)
13656 (ravenscar_thread_target::stopped_data_address)
13657 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13658
13659 2019-02-15 Tom Tromey <tromey@adacore.com>
13660
13661 * ravenscar-thread.c: Fix some typos.
13662
13663 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13664 Tom Tromey <tromey@adacore.com>
13665
13666 * ada-lang.c (ada_exception_sal): Change addr_string to a
13667 std::string.
13668 (create_ada_exception_catchpoint): Update.
13669
13670 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13671 Tom Tromey <tromey@adacore.com>
13672
13673 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13674 (bp_location_ops): Remove.
13675 (base_breakpoint_allocate_location): Update.
13676 (free_bp_location): Update.
13677 * ada-lang.c (class ada_catchpoint_location)
13678 <ada_catchpoint_location>: Remove ops parameter.
13679 (ada_catchpoint_location_dtor): Remove.
13680 (ada_catchpoint_location_ops): Remove.
13681 (allocate_location_exception): Update.
13682 * breakpoint.h (struct bp_location_ops): Remove.
13683 (class bp_location) <bp_location>: Remove bp_location_ops
13684 parameter.
13685 <~bp_location>: Add destructor.
13686 <ops>: Remove.
13687
13688 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13689 Pedro Alves <palves@redhat.com>
13690
13691 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13692 'PATH_MAX'.
13693
13694 2019-02-14 David Michael <fedora.dm0@gmail.com>
13695 Samuel Thibault <samuel.thibault@gnu.org>
13696 Thomas Schwinge <thomas@codesourcery.com>
13697
13698 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13699 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13700
13701 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13702
13703 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13704 (check_empty): Use "const char *".
13705
13706 * gnu-nat.c (gnu_nat_target::detach): Instead of
13707 'detach_inferior (pid)' call
13708 'detach_inferior (find_inferior_pid (pid))'.
13709
13710 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13711 'nat/fork-inferior.o'.
13712 * gnu-nat.c: #include "nat/fork-inferior.h".
13713
13714 * gnu-nat.c (gnu_nat_target::detach): Instead of
13715 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13716 * gnu-nat.h: #include "inf-child.h".
13717 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13718 'i386_gnu_nat_target::fetch_registers'.
13719 (gnu_store_registers): Rename/move to
13720 'i386_gnu_nat_target::store_registers'.
13721
13722 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13723 * gnu-nat.h (mach_thread_info): New function.
13724 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13725
13726 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13727
13728 2019-02-14 Frederic Konrad <konrad@adacore.com>
13729
13730 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13731
13732 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13733
13734 * windows-nat.c (windows_add_thread): Add new parameter
13735 "main_thread_p" with default value set to false. Update
13736 function documentation as well as all callers.
13737 (windows_delete_thread): Likewise.
13738 (fake_create_process): Update call to windows_add_thread.
13739 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13740 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13741 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13742 call to windows_delete_thread.
13743
13744 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13745
13746 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13747
13748 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13749
13750 * symfile.c (find_separate_debug_file): Use canonical path of
13751 sysroot with child_path instead of gdb_sysroot if it is valid.
13752
13753 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13754
13755 * symfile.c (find_separate_debug_file): Use child_path to
13756 determine if an object file is under a sysroot.
13757
13758 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13759
13760 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13761 unittests/child-path-selftests.c.
13762 * common/pathstuff.c (child_path): New function.
13763 * common/pathstuff.h (child_path): New prototype.
13764 * unittests/child-path-selftests.c: New file.
13765
13766 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13767
13768 * symfile.c (find_separate_debug_file): Look for separate debug
13769 files in debug directories under the sysroot.
13770
13771 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13772
13773 * symtab.h (struct minimal_symbol data_p): New const method.
13774 (struct minimal_symbol text_p): Likewise.
13775 * symtab.c (output_source_filename): Use file name style
13776 to print file name.
13777 (print_symbol_info): Likewise.
13778 (print_msymbol_info): Use address style to print addresses.
13779 Use function name style to print executable text symbols.
13780 (expand_symtab_containing_pc): Use data_p.
13781 (find_pc_sect_compunit_symtab): Likewise.
13782
13783 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13784
13785 * breakpoint.c (describe_other_breakpoints): Use address style
13786 to print addresses.
13787 (say_where): Likewise.
13788
13789 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13790
13791 * ada-typeprint.c (print_func_type): Print function name
13792 style to print function name.
13793 * c-typeprint.c (c_print_type_1): Likewise.
13794
13795 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13796
13797 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13798 for execve.
13799
13800 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13801
13802 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13803 type_stack.
13804
13805 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13806
13807 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13808 TYPE_CODE_REF types.
13809
13810 2019-02-08 Jim Wilson <jimw@sifive.com>
13811
13812 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13813 (riscv_linux_fregset): New.
13814 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13815
13816 2019-02-07 Tom Tromey <tom@tromey.com>
13817
13818 * thread.c (thread_cancel_execution_command): Update.
13819 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13820 methods.
13821 (struct thread_fsm_ops): Remove.
13822 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13823 (thread_fsm_should_stop, thread_fsm_return_value)
13824 (thread_fsm_set_finished, thread_fsm_finished_p)
13825 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13826 Don't declare.
13827 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13828 * infrun.c (clear_proceed_status_thread)
13829 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13830 (print_stop_event): Update.
13831 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13832 Add constructor.
13833 (step_command_fsm_ops): Remove.
13834 (new_step_command_fsm): Remove.
13835 (step_1): Update.
13836 (step_command_fsm::should_stop): Rename from
13837 step_command_fsm_should_stop.
13838 (step_command_fsm::clean_up): Rename from
13839 step_command_fsm_clean_up.
13840 (step_command_fsm::do_async_reply_reason): Rename from
13841 step_command_fsm_async_reply_reason.
13842 (struct until_next_fsm): Inherit from thread_fsm. Add
13843 constructor.
13844 (until_next_fsm_ops): Remove.
13845 (new_until_next_fsm): Remove.
13846 (until_next_fsm::should_stop): Rename from
13847 until_next_fsm_should_stop.
13848 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13849 (until_next_fsm::do_async_reply_reason): Rename from
13850 until_next_fsm_async_reply_reason.
13851 (struct finish_command_fsm): Inherit from thread_fsm. Add
13852 constructor. Change type of breakpoint.
13853 (finish_command_fsm_ops): Remove.
13854 (new_finish_command_fsm): Remove.
13855 (finish_command_fsm::should_stop): Rename from
13856 finish_command_fsm_should_stop.
13857 (finish_command_fsm::clean_up): Rename from
13858 finish_command_fsm_clean_up.
13859 (finish_command_fsm::return_value): Rename from
13860 finish_command_fsm_return_value.
13861 (finish_command_fsm::do_async_reply_reason): Rename from
13862 finish_command_fsm_async_reply_reason.
13863 (finish_command): Update.
13864 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13865 Add constructor.
13866 (call_thread_fsm_ops): Remove.
13867 (call_thread_fsm::call_thread_fsm): Rename from
13868 new_call_thread_fsm.
13869 (call_thread_fsm::should_stop): Rename from
13870 call_thread_fsm_should_stop.
13871 (call_thread_fsm::should_notify_stop): Rename from
13872 call_thread_fsm_should_notify_stop.
13873 (run_inferior_call, call_function_by_hand_dummy): Update.
13874 * cli/cli-interp.c (should_print_stop_to_console): Update.
13875 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13876 Add constructor. Change type of location_breakpoint,
13877 caller_breakpoint.
13878 (until_break_fsm_ops): Remove.
13879 (new_until_break_fsm): Remove.
13880 (until_break_fsm::should_stop): Rename from
13881 until_break_fsm_should_stop.
13882 (until_break_fsm::clean_up): Rename from
13883 until_break_fsm_clean_up.
13884 (until_break_fsm::do_async_reply_reason): Rename from
13885 until_break_fsm_async_reply_reason.
13886 (until_break_command): Update.
13887 * thread-fsm.c: Remove.
13888 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13889
13890 2019-02-07 Tom Tromey <tom@tromey.com>
13891
13892 * yy-remap.h: Add include guard.
13893 * xtensa-tdep.h: Add include guard.
13894 * xcoffread.h: Rename include guard.
13895 * varobj-iter.h: Add include guard.
13896 * tui/tui.h: Rename include guard.
13897 * tui/tui-winsource.h: Rename include guard.
13898 * tui/tui-wingeneral.h: Rename include guard.
13899 * tui/tui-windata.h: Rename include guard.
13900 * tui/tui-win.h: Rename include guard.
13901 * tui/tui-stack.h: Rename include guard.
13902 * tui/tui-source.h: Rename include guard.
13903 * tui/tui-regs.h: Rename include guard.
13904 * tui/tui-out.h: Rename include guard.
13905 * tui/tui-layout.h: Rename include guard.
13906 * tui/tui-io.h: Rename include guard.
13907 * tui/tui-hooks.h: Rename include guard.
13908 * tui/tui-file.h: Rename include guard.
13909 * tui/tui-disasm.h: Rename include guard.
13910 * tui/tui-data.h: Rename include guard.
13911 * tui/tui-command.h: Rename include guard.
13912 * tic6x-tdep.h: Add include guard.
13913 * target/waitstatus.h: Rename include guard.
13914 * target/wait.h: Rename include guard.
13915 * target/target.h: Rename include guard.
13916 * target/resume.h: Rename include guard.
13917 * target-float.h: Rename include guard.
13918 * stabsread.h: Add include guard.
13919 * rs6000-tdep.h: Add include guard.
13920 * riscv-fbsd-tdep.h: Add include guard.
13921 * regformats/regdef.h: Rename include guard.
13922 * record.h: Rename include guard.
13923 * python/python.h: Rename include guard.
13924 * python/python-internal.h: Rename include guard.
13925 * python/py-stopevent.h: Rename include guard.
13926 * python/py-ref.h: Rename include guard.
13927 * python/py-record.h: Rename include guard.
13928 * python/py-record-full.h: Rename include guard.
13929 * python/py-record-btrace.h: Rename include guard.
13930 * python/py-instruction.h: Rename include guard.
13931 * python/py-events.h: Rename include guard.
13932 * python/py-event.h: Rename include guard.
13933 * procfs.h: Add include guard.
13934 * proc-utils.h: Add include guard.
13935 * p-lang.h: Add include guard.
13936 * or1k-tdep.h: Rename include guard.
13937 * observable.h: Rename include guard.
13938 * nto-tdep.h: Rename include guard.
13939 * nat/x86-linux.h: Rename include guard.
13940 * nat/x86-linux-dregs.h: Rename include guard.
13941 * nat/x86-gcc-cpuid.h: Add include guard.
13942 * nat/x86-dregs.h: Rename include guard.
13943 * nat/x86-cpuid.h: Rename include guard.
13944 * nat/ppc-linux.h: Rename include guard.
13945 * nat/mips-linux-watch.h: Rename include guard.
13946 * nat/linux-waitpid.h: Rename include guard.
13947 * nat/linux-ptrace.h: Rename include guard.
13948 * nat/linux-procfs.h: Rename include guard.
13949 * nat/linux-osdata.h: Rename include guard.
13950 * nat/linux-nat.h: Rename include guard.
13951 * nat/linux-namespaces.h: Rename include guard.
13952 * nat/linux-btrace.h: Rename include guard.
13953 * nat/glibc_thread_db.h: Rename include guard.
13954 * nat/gdb_thread_db.h: Rename include guard.
13955 * nat/gdb_ptrace.h: Rename include guard.
13956 * nat/fork-inferior.h: Rename include guard.
13957 * nat/amd64-linux-siginfo.h: Rename include guard.
13958 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13959 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13960 * nat/aarch64-linux.h: Rename include guard.
13961 * nat/aarch64-linux-hw-point.h: Rename include guard.
13962 * mn10300-tdep.h: Add include guard.
13963 * mips-linux-tdep.h: Add include guard.
13964 * mi/mi-parse.h: Rename include guard.
13965 * mi/mi-out.h: Rename include guard.
13966 * mi/mi-main.h: Rename include guard.
13967 * mi/mi-interp.h: Rename include guard.
13968 * mi/mi-getopt.h: Rename include guard.
13969 * mi/mi-console.h: Rename include guard.
13970 * mi/mi-common.h: Rename include guard.
13971 * mi/mi-cmds.h: Rename include guard.
13972 * mi/mi-cmd-break.h: Rename include guard.
13973 * m2-lang.h: Add include guard.
13974 * location.h: Rename include guard.
13975 * linux-record.h: Rename include guard.
13976 * linux-nat.h: Add include guard.
13977 * linux-fork.h: Add include guard.
13978 * i386-darwin-tdep.h: Rename include guard.
13979 * hppa-linux-offsets.h: Add include guard.
13980 * guile/guile.h: Rename include guard.
13981 * guile/guile-internal.h: Rename include guard.
13982 * gnu-nat.h: Rename include guard.
13983 * gdb-stabs.h: Rename include guard.
13984 * frv-tdep.h: Add include guard.
13985 * f-lang.h: Add include guard.
13986 * event-loop.h: Add include guard.
13987 * darwin-nat.h: Rename include guard.
13988 * cp-abi.h: Rename include guard.
13989 * config/sparc/nm-sol2.h: Rename include guard.
13990 * config/nm-nto.h: Rename include guard.
13991 * config/nm-linux.h: Add include guard.
13992 * config/i386/nm-i386gnu.h: Rename include guard.
13993 * config/djgpp/nl_types.h: Rename include guard.
13994 * config/djgpp/langinfo.h: Rename include guard.
13995 * compile/gcc-cp-plugin.h: Add include guard.
13996 * compile/gcc-c-plugin.h: Add include guard.
13997 * compile/compile.h: Rename include guard.
13998 * compile/compile-object-run.h: Rename include guard.
13999 * compile/compile-object-load.h: Rename include guard.
14000 * compile/compile-internal.h: Rename include guard.
14001 * compile/compile-cplus.h: Rename include guard.
14002 * compile/compile-c.h: Rename include guard.
14003 * common/xml-utils.h: Rename include guard.
14004 * common/x86-xstate.h: Rename include guard.
14005 * common/version.h: Rename include guard.
14006 * common/vec.h: Rename include guard.
14007 * common/tdesc.h: Rename include guard.
14008 * common/selftest.h: Rename include guard.
14009 * common/scoped_restore.h: Rename include guard.
14010 * common/scoped_mmap.h: Rename include guard.
14011 * common/scoped_fd.h: Rename include guard.
14012 * common/safe-iterator.h: Rename include guard.
14013 * common/run-time-clock.h: Rename include guard.
14014 * common/refcounted-object.h: Rename include guard.
14015 * common/queue.h: Rename include guard.
14016 * common/ptid.h: Rename include guard.
14017 * common/print-utils.h: Rename include guard.
14018 * common/preprocessor.h: Rename include guard.
14019 * common/pathstuff.h: Rename include guard.
14020 * common/observable.h: Rename include guard.
14021 * common/netstuff.h: Rename include guard.
14022 * common/job-control.h: Rename include guard.
14023 * common/host-defs.h: Rename include guard.
14024 * common/gdb_wait.h: Rename include guard.
14025 * common/gdb_vecs.h: Rename include guard.
14026 * common/gdb_unlinker.h: Rename include guard.
14027 * common/gdb_unique_ptr.h: Rename include guard.
14028 * common/gdb_tilde_expand.h: Rename include guard.
14029 * common/gdb_sys_time.h: Rename include guard.
14030 * common/gdb_string_view.h: Rename include guard.
14031 * common/gdb_splay_tree.h: Rename include guard.
14032 * common/gdb_setjmp.h: Rename include guard.
14033 * common/gdb_ref_ptr.h: Rename include guard.
14034 * common/gdb_optional.h: Rename include guard.
14035 * common/gdb_locale.h: Rename include guard.
14036 * common/gdb_assert.h: Rename include guard.
14037 * common/filtered-iterator.h: Rename include guard.
14038 * common/filestuff.h: Rename include guard.
14039 * common/fileio.h: Rename include guard.
14040 * common/environ.h: Rename include guard.
14041 * common/common-utils.h: Rename include guard.
14042 * common/common-types.h: Rename include guard.
14043 * common/common-regcache.h: Rename include guard.
14044 * common/common-inferior.h: Rename include guard.
14045 * common/common-gdbthread.h: Rename include guard.
14046 * common/common-exceptions.h: Rename include guard.
14047 * common/common-defs.h: Rename include guard.
14048 * common/common-debug.h: Rename include guard.
14049 * common/cleanups.h: Rename include guard.
14050 * common/buffer.h: Rename include guard.
14051 * common/btrace-common.h: Rename include guard.
14052 * common/break-common.h: Rename include guard.
14053 * cli/cli-utils.h: Rename include guard.
14054 * cli/cli-style.h: Rename include guard.
14055 * cli/cli-setshow.h: Rename include guard.
14056 * cli/cli-script.h: Rename include guard.
14057 * cli/cli-interp.h: Rename include guard.
14058 * cli/cli-decode.h: Rename include guard.
14059 * cli/cli-cmds.h: Rename include guard.
14060 * charset-list.h: Add include guard.
14061 * buildsym-legacy.h: Rename include guard.
14062 * bfin-tdep.h: Add include guard.
14063 * ax.h: Rename include guard.
14064 * arm-linux-tdep.h: Add include guard.
14065 * arm-fbsd-tdep.h: Add include guard.
14066 * arch/xtensa.h: Rename include guard.
14067 * arch/tic6x.h: Add include guard.
14068 * arch/i386.h: Add include guard.
14069 * arch/arm.h: Rename include guard.
14070 * arch/arm-linux.h: Rename include guard.
14071 * arch/arm-get-next-pcs.h: Rename include guard.
14072 * arch/amd64.h: Add include guard.
14073 * arch/aarch64-insn.h: Rename include guard.
14074 * arch-utils.h: Rename include guard.
14075 * annotate.h: Add include guard.
14076 * amd64-darwin-tdep.h: Rename include guard.
14077 * aarch64-linux-tdep.h: Add include guard.
14078 * aarch64-fbsd-tdep.h: Add include guard.
14079 * aarch32-linux-nat.h: Add include guard.
14080
14081 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14082
14083 * macrotab.c (macro_define_internal): New function that
14084 factorizes macro_define_object_internal and macro_define_function
14085 code.
14086 (macro_define_object_internal): Use macro_define_internal.
14087 (macro_define_function): Likewise.
14088
14089 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14090
14091 * macrocmd.c (extract_identifier): Return
14092 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14093 callers.
14094
14095 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14096
14097 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14098
14099 2019-02-05 Tom Tromey <tom@tromey.com>
14100
14101 * target.c (target_stack::unpush): Move assertion earlier.
14102
14103 2019-01-30 Tom Tromey <tom@tromey.com>
14104
14105 PR python/23615:
14106 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14107 (gdbpy_parse_and_eval): Likewise.
14108 * python/python-internal.h (gdbpy_allow_threads): New class.
14109
14110 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14111
14112 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14113 (aarch64_fbsd_fpregmap): Move earlier.
14114 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14115 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14116 instead of individual calls to trad_frame_set_reg_addr.
14117 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14118 earlier.
14119 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14120 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14121 instead of individual calls to trad_frame_set_reg_addr.
14122
14123 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14124
14125 * CONTRIBUTE: Replace contribution list with wiki link.
14126
14127 2019-01-25 Tom Tromey <tom@tromey.com>
14128
14129 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14130
14131 2019-01-25 Tom Tromey <tom@tromey.com>
14132
14133 * xtensa-linux-nat.c: Fix common/ includes.
14134 * xml-support.h: Fix common/ includes.
14135 * xml-support.c: Fix common/ includes.
14136 * x86-linux-nat.c: Fix common/ includes.
14137 * windows-nat.c: Fix common/ includes.
14138 * varobj.h: Fix common/ includes.
14139 * varobj.c: Fix common/ includes.
14140 * value.c: Fix common/ includes.
14141 * valops.c: Fix common/ includes.
14142 * utils.c: Fix common/ includes.
14143 * unittests/xml-utils-selftests.c: Fix common/ includes.
14144 * unittests/utils-selftests.c: Fix common/ includes.
14145 * unittests/unpack-selftests.c: Fix common/ includes.
14146 * unittests/tracepoint-selftests.c: Fix common/ includes.
14147 * unittests/style-selftests.c: Fix common/ includes.
14148 * unittests/string_view-selftests.c: Fix common/ includes.
14149 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14150 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14151 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14152 * unittests/rsp-low-selftests.c: Fix common/ includes.
14153 * unittests/parse-connection-spec-selftests.c: Fix common/
14154 includes.
14155 * unittests/optional-selftests.c: Fix common/ includes.
14156 * unittests/offset-type-selftests.c: Fix common/ includes.
14157 * unittests/observable-selftests.c: Fix common/ includes.
14158 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14159 * unittests/memrange-selftests.c: Fix common/ includes.
14160 * unittests/memory-map-selftests.c: Fix common/ includes.
14161 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14162 * unittests/function-view-selftests.c: Fix common/ includes.
14163 * unittests/environ-selftests.c: Fix common/ includes.
14164 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14165 * unittests/common-utils-selftests.c: Fix common/ includes.
14166 * unittests/cli-utils-selftests.c: Fix common/ includes.
14167 * unittests/array-view-selftests.c: Fix common/ includes.
14168 * ui-file.c: Fix common/ includes.
14169 * tui/tui-io.c: Fix common/ includes.
14170 * tracepoint.h: Fix common/ includes.
14171 * tracepoint.c: Fix common/ includes.
14172 * tracefile-tfile.c: Fix common/ includes.
14173 * top.h: Fix common/ includes.
14174 * top.c: Fix common/ includes.
14175 * thread.c: Fix common/ includes.
14176 * target/waitstatus.h: Fix common/ includes.
14177 * target/waitstatus.c: Fix common/ includes.
14178 * target.h: Fix common/ includes.
14179 * target.c: Fix common/ includes.
14180 * target-memory.c: Fix common/ includes.
14181 * target-descriptions.c: Fix common/ includes.
14182 * symtab.h: Fix common/ includes.
14183 * symfile.c: Fix common/ includes.
14184 * stap-probe.c: Fix common/ includes.
14185 * spu-linux-nat.c: Fix common/ includes.
14186 * sparc-nat.c: Fix common/ includes.
14187 * source.c: Fix common/ includes.
14188 * solib.c: Fix common/ includes.
14189 * solib-target.c: Fix common/ includes.
14190 * ser-unix.c: Fix common/ includes.
14191 * ser-tcp.c: Fix common/ includes.
14192 * ser-pipe.c: Fix common/ includes.
14193 * ser-base.c: Fix common/ includes.
14194 * selftest-arch.c: Fix common/ includes.
14195 * s12z-tdep.c: Fix common/ includes.
14196 * rust-exp.y: Fix common/ includes.
14197 * rs6000-aix-tdep.c: Fix common/ includes.
14198 * riscv-tdep.c: Fix common/ includes.
14199 * remote.c: Fix common/ includes.
14200 * remote-notif.h: Fix common/ includes.
14201 * remote-fileio.h: Fix common/ includes.
14202 * remote-fileio.c: Fix common/ includes.
14203 * regcache.h: Fix common/ includes.
14204 * regcache.c: Fix common/ includes.
14205 * record-btrace.c: Fix common/ includes.
14206 * python/python.c: Fix common/ includes.
14207 * python/py-type.c: Fix common/ includes.
14208 * python/py-inferior.c: Fix common/ includes.
14209 * progspace.h: Fix common/ includes.
14210 * producer.c: Fix common/ includes.
14211 * procfs.c: Fix common/ includes.
14212 * proc-api.c: Fix common/ includes.
14213 * printcmd.c: Fix common/ includes.
14214 * ppc-linux-nat.c: Fix common/ includes.
14215 * parser-defs.h: Fix common/ includes.
14216 * osdata.c: Fix common/ includes.
14217 * obsd-nat.c: Fix common/ includes.
14218 * nat/x86-linux.c: Fix common/ includes.
14219 * nat/x86-linux-dregs.c: Fix common/ includes.
14220 * nat/x86-dregs.h: Fix common/ includes.
14221 * nat/x86-dregs.c: Fix common/ includes.
14222 * nat/ppc-linux.c: Fix common/ includes.
14223 * nat/mips-linux-watch.h: Fix common/ includes.
14224 * nat/mips-linux-watch.c: Fix common/ includes.
14225 * nat/linux-waitpid.c: Fix common/ includes.
14226 * nat/linux-ptrace.h: Fix common/ includes.
14227 * nat/linux-ptrace.c: Fix common/ includes.
14228 * nat/linux-procfs.c: Fix common/ includes.
14229 * nat/linux-personality.c: Fix common/ includes.
14230 * nat/linux-osdata.c: Fix common/ includes.
14231 * nat/linux-namespaces.c: Fix common/ includes.
14232 * nat/linux-btrace.h: Fix common/ includes.
14233 * nat/linux-btrace.c: Fix common/ includes.
14234 * nat/fork-inferior.c: Fix common/ includes.
14235 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14236 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14237 * nat/aarch64-linux.c: Fix common/ includes.
14238 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14239 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14240 * namespace.h: Fix common/ includes.
14241 * mips-linux-tdep.c: Fix common/ includes.
14242 * minsyms.c: Fix common/ includes.
14243 * mi/mi-parse.h: Fix common/ includes.
14244 * mi/mi-main.c: Fix common/ includes.
14245 * mi/mi-cmd-env.c: Fix common/ includes.
14246 * memrange.h: Fix common/ includes.
14247 * memattr.c: Fix common/ includes.
14248 * maint.h: Fix common/ includes.
14249 * maint.c: Fix common/ includes.
14250 * main.c: Fix common/ includes.
14251 * machoread.c: Fix common/ includes.
14252 * location.c: Fix common/ includes.
14253 * linux-thread-db.c: Fix common/ includes.
14254 * linux-nat.c: Fix common/ includes.
14255 * linux-fork.c: Fix common/ includes.
14256 * inline-frame.c: Fix common/ includes.
14257 * infrun.c: Fix common/ includes.
14258 * inflow.c: Fix common/ includes.
14259 * inferior.h: Fix common/ includes.
14260 * inferior.c: Fix common/ includes.
14261 * infcmd.c: Fix common/ includes.
14262 * inf-ptrace.c: Fix common/ includes.
14263 * inf-child.c: Fix common/ includes.
14264 * ia64-linux-nat.c: Fix common/ includes.
14265 * i387-tdep.c: Fix common/ includes.
14266 * i386-tdep.c: Fix common/ includes.
14267 * i386-linux-tdep.c: Fix common/ includes.
14268 * i386-linux-nat.c: Fix common/ includes.
14269 * i386-go32-tdep.c: Fix common/ includes.
14270 * i386-fbsd-tdep.c: Fix common/ includes.
14271 * i386-fbsd-nat.c: Fix common/ includes.
14272 * guile/scm-type.c: Fix common/ includes.
14273 * guile/guile.c: Fix common/ includes.
14274 * go32-nat.c: Fix common/ includes.
14275 * gnu-nat.c: Fix common/ includes.
14276 * gdbthread.h: Fix common/ includes.
14277 * gdbarch-selftests.c: Fix common/ includes.
14278 * gdb_usleep.c: Fix common/ includes.
14279 * gdb_select.h: Fix common/ includes.
14280 * gdb_bfd.c: Fix common/ includes.
14281 * gcore.c: Fix common/ includes.
14282 * fork-child.c: Fix common/ includes.
14283 * findvar.c: Fix common/ includes.
14284 * fbsd-nat.c: Fix common/ includes.
14285 * event-top.c: Fix common/ includes.
14286 * event-loop.c: Fix common/ includes.
14287 * dwarf2read.c: Fix common/ includes.
14288 * dwarf2loc.c: Fix common/ includes.
14289 * dwarf2-frame.c: Fix common/ includes.
14290 * dwarf-index-cache.c: Fix common/ includes.
14291 * dtrace-probe.c: Fix common/ includes.
14292 * disasm-selftests.c: Fix common/ includes.
14293 * defs.h: Fix common/ includes.
14294 * csky-tdep.c: Fix common/ includes.
14295 * cp-valprint.c: Fix common/ includes.
14296 * cp-support.h: Fix common/ includes.
14297 * cp-support.c: Fix common/ includes.
14298 * corelow.c: Fix common/ includes.
14299 * completer.h: Fix common/ includes.
14300 * completer.c: Fix common/ includes.
14301 * compile/compile.c: Fix common/ includes.
14302 * compile/compile-loc2c.c: Fix common/ includes.
14303 * compile/compile-cplus-types.c: Fix common/ includes.
14304 * compile/compile-cplus-symbols.c: Fix common/ includes.
14305 * command.h: Fix common/ includes.
14306 * cli/cli-dump.c: Fix common/ includes.
14307 * cli/cli-cmds.c: Fix common/ includes.
14308 * charset.c: Fix common/ includes.
14309 * build-id.c: Fix common/ includes.
14310 * btrace.h: Fix common/ includes.
14311 * btrace.c: Fix common/ includes.
14312 * breakpoint.h: Fix common/ includes.
14313 * breakpoint.c: Fix common/ includes.
14314 * ax.h:
14315 (enum agent_op): Fix common/ includes.
14316 * ax-general.c (struct aop_map): Fix common/ includes.
14317 * ax-gdb.c: Fix common/ includes.
14318 * auxv.c: Fix common/ includes.
14319 * auto-load.c: Fix common/ includes.
14320 * arm-tdep.c: Fix common/ includes.
14321 * arch/riscv.c: Fix common/ includes.
14322 * arch/ppc-linux-common.c: Fix common/ includes.
14323 * arch/i386.c: Fix common/ includes.
14324 * arch/arm.c: Fix common/ includes.
14325 * arch/arm-linux.c: Fix common/ includes.
14326 * arch/arm-get-next-pcs.c: Fix common/ includes.
14327 * arch/amd64.c: Fix common/ includes.
14328 * arch/aarch64.c: Fix common/ includes.
14329 * arch/aarch64-insn.c: Fix common/ includes.
14330 * arch-utils.c: Fix common/ includes.
14331 * amd64-windows-tdep.c: Fix common/ includes.
14332 * amd64-tdep.c: Fix common/ includes.
14333 * amd64-sol2-tdep.c: Fix common/ includes.
14334 * amd64-obsd-tdep.c: Fix common/ includes.
14335 * amd64-nbsd-tdep.c: Fix common/ includes.
14336 * amd64-linux-tdep.c: Fix common/ includes.
14337 * amd64-linux-nat.c: Fix common/ includes.
14338 * amd64-fbsd-tdep.c: Fix common/ includes.
14339 * amd64-fbsd-nat.c: Fix common/ includes.
14340 * amd64-dicos-tdep.c: Fix common/ includes.
14341 * amd64-darwin-tdep.c: Fix common/ includes.
14342 * agent.c: Fix common/ includes.
14343 * ada-lang.h: Fix common/ includes.
14344 * ada-lang.c: Fix common/ includes.
14345 * aarch64-tdep.c: Fix common/ includes.
14346
14347 2019-01-25 Tom Tromey <tom@tromey.com>
14348
14349 * common/create-version.sh: Use common/version.h.
14350
14351 2019-01-24 Pedro Alves <palves@redhat.com>
14352
14353 * infrun.c (signal_stop, signal_print, signal_program)
14354 (signal_catch, signal_pass): Now arrays instead of pointers.
14355 (update_signals_program_target, do_target_resume)
14356 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14357 * linux-nat.c (linux_nat_target::pass_signals)
14358 (linux_nat_target::create_inferior, linux_nat_target::attach):
14359 Adjust.
14360 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14361 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14362 * procfs.c (procfs_target::pass_signals): Adjust.
14363 * record-full.c (record_full_target::resume): Adjust.
14364 * remote.c (remote_target::pass_signals)
14365 (remote_target::program_signals): Adjust.
14366 * target-debug.h (target_debug_print_signals): Now takes a
14367 gdb::array_view as parameter. Adjust.
14368 * target.h (target_ops) <pass_signals, program_signals>: Replace
14369 pointer and length parameters with gdb::array_view.
14370 (target_pass_signals, target_program_signals): Likewise.
14371 * target-delegates.c: Regenerate.
14372
14373 2019-01-24 Pedro Alves <palves@redhat.com>
14374
14375 * common/forward-scope-exit.h
14376 (forward_scope_exit::forward_scope_exit): Pass arguments to
14377 m_bind_function directly, instead of creating a std::bind and
14378 copying that.
14379
14380 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14381
14382 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14383 for static members.
14384 (pass_in_v_vfp_candidate): Likewise.
14385
14386 2019-01-23 Tom Tromey <tom@tromey.com>
14387 Pedro Alves <palves@redhat.com>
14388
14389 * regcache.c (class regcache_invalidator): Remove.
14390 (regcache::raw_write): Use make_scope_exit.
14391
14392 2019-01-23 Tom Tromey <tom@tromey.com>
14393
14394 * ui-out.h (class ui_out_emit_type): Update comment.
14395
14396 2019-01-23 Tom Tromey <tom@tromey.com>
14397
14398 * infrun.c (fetch_inferior_event): Update comment.
14399
14400 2019-01-23 Tom Tromey <tom@tromey.com>
14401 Pedro Alves <palves@redhat.com>
14402
14403 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14404 parameter.
14405 (fetch_inferior_event): Use SCOPE_EXIT.
14406
14407
14408 2019-01-23 Tom Tromey <tom@tromey.com>
14409 Pedro Alves <palves@redhat.com>
14410
14411 * infrun.c (disable_thread_events): Delete.
14412 (stop_all_threads): Use SCOPE_EXIT.
14413
14414 2019-01-23 Tom Tromey <tom@tromey.com>
14415 Pedro Alves <palves@redhat.com>
14416
14417 * symfile.c: Include forward-scope-exit.h.
14418 (clear_symtab_users_cleanup): Replace forward declaration with
14419 a FORWARD_SCOPE_EXIT.
14420 (syms_from_objfile_1): Use the forward_scope_exit and
14421 gdb::optional instead of cleanup_function.
14422 (reread_symbols): Use the forward_scope_exit instead of
14423 cleanup_function.
14424 (clear_symtab_users_cleanup): Remove function.
14425
14426 2019-01-23 Tom Tromey <tom@tromey.com>
14427 Pedro Alves <palves@redhat.com>
14428
14429 * linux-nat.c: Include scope-exit.h.
14430 (cleanup_target_stop): Remove.
14431 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14432 SCOPE_EXIT.
14433
14434 2019-01-23 Tom Tromey <tom@tromey.com>
14435 Pedro Alves <palves@redhat.com>
14436
14437 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14438 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14439
14440 2019-01-23 Tom Tromey <tom@tromey.com>
14441 Andrew Burgess <andrew.burgess@embecosm.com>
14442 Pedro Alves <palves@redhat.com>
14443
14444 * infrun.c (fetch_inferior_event): Use scope_exit.
14445 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14446 * top.c (execute_command): Use scope_exit.
14447 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14448 * utils.c (do_bpstat_clear_actions_cleanup)
14449 (make_bpstat_clear_actions_cleanup): Remove.
14450
14451 2019-01-23 Tom Tromey <tom@tromey.com>
14452 Pedro Alves <palves@redhat.com>
14453
14454 * infrun.c: Include "common/scope-exit.h"
14455 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14456 (wait_for_inferior): Use SCOPE_EXIT.
14457 (fetch_inferior_event): Use scope_exit.
14458
14459 2019-01-23 Tom Tromey <tom@tromey.com>
14460 Pedro Alves <palves@redhat.com>
14461
14462 * breakpoint.c (create_breakpoint): Remove cleanup.
14463
14464 2019-01-23 Tom Tromey <tom@tromey.com>
14465 Andrew Burgess <andrew.burgess@embecosm.com>
14466 Pedro Alves <palves@redhat.com>
14467
14468 2019-01-23 Pedro Alves <palves@redhat.com>
14469
14470 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14471
14472 2019-01-23 Pedro Alves <palves@redhat.com>
14473 Andrew Burgess <andrew.burgess@embecosm.com>
14474
14475 * gdbthread.h: Include "common/forward-scope-exit.h".
14476 (scoped_finish_thread_state): Redefine custom class in terms of
14477 forward_scope_exit.
14478
14479 2019-01-23 Pedro Alves <palves@redhat.com>
14480 Andrew Burgess <andrew.burgess@embecosm.com>
14481
14482 * common/forward-scope-exit.h: New file.
14483
14484 2019-01-23 Pedro Alves <palves@redhat.com>
14485 Andrew Burgess <andrew.burgess@embecosm.com>
14486 Tom Tromey <tom@tromey.com>
14487
14488 * common/scope-exit.h: New file.
14489
14490 2019-01-23 Pedro Alves <palves@redhat.com>
14491
14492 * common/preprocessor.h (ESC): Rename to ...
14493 (ESC_PARENS): ... this.
14494 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14495 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14496
14497 2019-01-23 Tom Tromey <tom@tromey.com>
14498
14499 * language.h (class scoped_switch_to_sym_language_if_auto):
14500 Initialize m_lang in both cases.
14501
14502 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14503
14504 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14505 with XCNEW.
14506
14507 2019-01-22 Tom Tromey <tom@tromey.com>
14508
14509 * corelow.c: Do not include sys/file.h.
14510
14511 2019-01-22 Tom Tromey <tom@tromey.com>
14512
14513 * tui/tui-wingeneral.h: Include gdb_curses.h.
14514
14515 2019-01-22 Tom Tromey <tom@tromey.com>
14516
14517 * source-cache.h (class source_cache) <get_source_lines,
14518 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14519
14520 2019-01-22 Tom Tromey <tom@tromey.com>
14521
14522 * remote-fileio.h (struct remote_target): Declare.
14523
14524 2019-01-22 Tom Tromey <tom@tromey.com>
14525
14526 * python/py-arch.c: Do not include py-ref.h.
14527 * python/py-bpevent.c: Do not include py-ref.h.
14528 * python/py-cmd.c: Do not include py-ref.h.
14529 * python/py-continueevent.c: Do not include py-ref.h.
14530 * python/py-event.h: Do not include py-ref.h.
14531 * python/py-evtregistry.c: Do not include py-ref.h.
14532 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14533 * python/py-frame.c: Do not include py-ref.h.
14534 * python/py-framefilter.c: Do not include py-ref.h.
14535 * python/py-function.c: Do not include py-ref.h.
14536 * python/py-infevents.c: Do not include py-ref.h.
14537 * python/py-linetable.c: Do not include py-ref.h.
14538 * python/py-objfile.c: Do not include py-ref.h.
14539 * python/py-param.c: Do not include py-ref.h.
14540 * python/py-prettyprint.c: Do not include py-ref.h.
14541 * python/py-progspace.c: Do not include py-ref.h.
14542 * python/py-symbol.c: Do not include py-ref.h.
14543 * python/py-symtab.c: Do not include py-ref.h.
14544 * python/py-type.c: Do not include py-ref.h.
14545 * python/py-unwind.c: Do not include py-ref.h.
14546 * python/py-utils.c: Do not include py-ref.h.
14547 * python/py-value.c: Do not include py-ref.h.
14548 * python/py-varobj.c: Do not include py-ref.h.
14549 * python/py-xmethods.c: Do not include py-ref.h.
14550 * python/python.c: Do not include py-ref.h.
14551 * varobj.c: Do not include py-ref.h.
14552
14553 2019-01-22 Tom Tromey <tom@tromey.com>
14554
14555 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14556 keyword for bcache.
14557
14558 2019-01-22 Tom Tromey <tom@tromey.com>
14559
14560 * compile/compile-cplus-types.c: Remove a comment by #include.
14561
14562 2019-01-22 Tom Tromey <tom@tromey.com>
14563
14564 * compile/gcc-c-plugin.h: Include compile-internal.h.
14565
14566 2019-01-22 Tom Tromey <tom@tromey.com>
14567
14568 * stabsread.c (EXTERN): Do not define.
14569 (symnum, next_symbol_text_func, processing_gcc_compilation)
14570 (within_function, global_sym_chain, global_stabs)
14571 (previous_stab_code, this_object_header_files)
14572 (n_this_object_header_files)
14573 (n_allocated_this_object_header_files): Define.
14574 * stabsread.h (EXTERN): Never define. Use "extern".
14575
14576 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14577
14578 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14579 history_value.
14580
14581 2019-01-21 Tom Tromey <tom@tromey.com>
14582
14583 * ui-out.c: Fix includes.
14584 * tui/tui-source.c: Fix includes.
14585 * target.c: Fix includes.
14586 * remote.c: Fix includes.
14587 * regcache.c: Fix includes.
14588 * python/py-block.c: Fix includes.
14589 * printcmd.c: Fix includes.
14590 * or1k-tdep.c: Fix includes.
14591 * mi/mi-main.c: Fix includes.
14592 * m32r-tdep.c: Fix includes.
14593 * csky-tdep.c: Fix includes.
14594 * compile/compile-cplus-types.c: Fix includes.
14595 * cli/cli-interp.c: Fix includes.
14596
14597 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14598
14599 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14600 for padding.
14601
14602 2019-01-16 Tom Tromey <tom@tromey.com>
14603
14604 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14605 earlier.
14606 (struct objfile) <msymbols_range>: Move from top level.
14607 <msymbols>: New method.
14608 (class objfile_msymbols): Remove.
14609 * symtab.c (default_collect_symbol_completion_matches_break_on):
14610 Update.
14611 * symmisc.c (dump_msymbols): Update.
14612 * stabsread.c (scan_file_globals): Update.
14613 * objc-lang.c (info_selectors_command, info_classes_command)
14614 (find_methods): Update.
14615 * minsyms.c (find_solib_trampoline_target): Update.
14616 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14617 * coffread.c (coff_symfile_read): Update.
14618 * ada-lang.c (ada_lookup_simple_minsym)
14619 (ada_collect_symbol_completion_matches): Update.
14620
14621 2019-01-16 Tom Tromey <tom@tromey.com>
14622
14623 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14624 type. Remove no-argument constructor.
14625 <iterator::operator++>: Simplify.
14626 <begin>: Update.
14627 <end>: Use minimal_symbol_count.
14628
14629 2019-01-16 Tom Tromey <tom@tromey.com>
14630
14631 * objfiles.h (struct objfile) <psymtabs>: New method.
14632 (class objfile_psymtabs): Remove.
14633 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14634 typedef.
14635 <range>: New method.
14636 (require_partial_symbols): Change return type.
14637 * psymtab.c (require_partial_symbols)
14638 (psym_expand_symtabs_matching): Update.
14639 * mdebugread.c (parse_partial_symbols): Update.
14640 * dbxread.c (dbx_end_psymtab): Update.
14641
14642 2019-01-15 Tom Tromey <tom@tromey.com>
14643
14644 * symtab.c (lookup_objfile_from_block)
14645 (lookup_symbol_in_objfile_symtabs)
14646 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14647 (find_line_symtab, info_sources_command)
14648 (default_collect_symbol_completion_matches_break_on)
14649 (make_source_files_completion_list): Update.
14650 * symmisc.c (print_objfile_statistics, dump_objfile)
14651 (maintenance_print_symbols, maintenance_info_symtabs)
14652 (maintenance_check_symtabs, maintenance_info_line_tables):
14653 Update.
14654 * source.c (select_source_symtab)
14655 (forget_cached_source_info_for_objfile): Update.
14656 * objfiles.h (class objfile_compunits): Remove.
14657 (struct objfile) <compunits_range>: New typedef.
14658 (compunits): New method.
14659 * objfiles.c (objfile_relocate1): Update.
14660 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14661 * maint.c (count_symtabs_and_blocks): Update.
14662 * linespec.c (iterate_over_all_matching_symtabs): Update.
14663 * cp-support.c (add_symbol_overload_list_qualified): Update.
14664 * coffread.c (coff_symtab_read): Update.
14665 * ada-lang.c (add_nonlocal_symbols)
14666 (ada_collect_symbol_completion_matches)
14667 (ada_add_global_exceptions): Update.
14668
14669 2019-01-15 Tom Tromey <tom@tromey.com>
14670
14671 * progspace.h (program_space) <objfiles_safe_range>: New
14672 typedef.
14673 <objfiles_safe>: New method.
14674 * objfiles.h (class all_objfiles_safe): Remove.
14675 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14676 * jit.c (jit_inferior_exit_hook): Update.
14677
14678 2019-01-17 Tom Tromey <tom@tromey.com>
14679
14680 * progspace.h (program_space) <objfiles_range>: New typedef.
14681 <objfiles>: New method.
14682 <objfiles_head>: Rename from objfiles.
14683 (object_files): Update.
14684 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14685 * guile/scm-pretty-print.c
14686 (ppscm_find_pretty_printer_from_objfiles): Update.
14687 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14688 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14689 Update.
14690 * python/py-progspace.c (pspy_get_objfiles): Update.
14691 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14692 Update.
14693 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14694 (objfpy_lookup_objfile_by_build_id): Update.
14695 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14696 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14697 Update.
14698 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14699 (expand_symtab_containing_pc, lookup_objfile_from_block)
14700 (lookup_static_symbol, basic_lookup_transparent_type)
14701 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14702 (find_line_symtab, info_sources_command)
14703 (default_collect_symbol_completion_matches_break_on)
14704 (make_source_files_completion_list, find_main_name): Update.
14705 * symmisc.c (print_symbol_bcache_statistics)
14706 (print_objfile_statistics, maintenance_print_symbols)
14707 (maintenance_print_msymbols, maintenance_print_objfiles)
14708 (maintenance_info_symtabs, maintenance_check_symtabs)
14709 (maintenance_expand_symtabs, maintenance_info_line_tables):
14710 Update.
14711 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14712 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14713 (map_overlay_command, unmap_overlay_command)
14714 (simple_overlay_update, expand_symtabs_matching)
14715 (map_symbol_filenames): Update.
14716 * symfile-debug.c (set_debug_symfile): Update.
14717 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14718 Update.
14719 * source.c (select_source_symtab, forget_cached_source_info):
14720 Update.
14721 * solib.c (solib_read_symbols): Update.
14722 * solib-spu.c (append_ocl_sos): Update.
14723 * psymtab.c (maintenance_print_psymbols)
14724 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14725 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14726 * printcmd.c (info_symbol_command): Update.
14727 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14728 Update.
14729 * objfiles.h (class all_objfiles): Remove.
14730 * objfiles.c (have_partial_symbols, have_full_symbols)
14731 (have_minimal_symbols, qsort_cmp, update_section_map)
14732 (shared_objfile_contains_address_p)
14733 (default_iterate_over_objfiles_in_search_order): Update.
14734 * objc-lang.c (info_selectors_command, info_classes_command)
14735 (find_methods): Update.
14736 * minsyms.c (find_solib_trampoline_target): Update.
14737 * maint.c (maintenance_info_sections)
14738 (maintenance_translate_address, count_symtabs_and_blocks):
14739 Update.
14740 * main.c (captured_main_1): Update.
14741 * linux-thread-db.c (try_thread_db_load_from_pdir)
14742 (has_libpthread): Update.
14743 * linespec.c (iterate_over_all_matching_symtabs)
14744 (search_minsyms_for_name): Update.
14745 * jit.c (jit_find_objf_with_entry_addr): Update.
14746 * hppa-tdep.c (find_unwind_entry)
14747 (hppa_lookup_stub_minimal_symbol): Update.
14748 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14749 Update.
14750 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14751 (elf_gnu_ifunc_resolve_by_got): Update.
14752 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14753 * dwarf-index-write.c (save_gdb_index_command): Update.
14754 * cp-support.c (add_symbol_overload_list_qualified): Update.
14755 * breakpoint.c (create_overlay_event_breakpoint)
14756 (create_longjmp_master_breakpoint)
14757 (create_std_terminate_master_breakpoint)
14758 (create_exception_master_breakpoint): Update.
14759 * blockframe.c (find_pc_partial_function): Update.
14760 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14761 (ada_collect_symbol_completion_matches)
14762 (ada_add_global_exceptions): Update.
14763
14764 2019-01-17 Tom Tromey <tom@tromey.com>
14765
14766 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14767 declare VEC.
14768 (solib_target_parse_libraries): Change return type.
14769 (library_list_start_segment, library_list_start_section)
14770 (library_list_end_library, library_list_start_library); Update.
14771 (solib_target_free_library_list): Remove.
14772 (solib_target_parse_libraries): Remove cleanup. Change return
14773 type.
14774 (solib_target_current_sos): Update.
14775
14776 2019-01-17 Tom Tromey <tromey@bapiya>
14777
14778 * valprint.c: Replace "the the" with "the".
14779 * symtab.c: Replace "the the" with "the".
14780 * solib.c: Replace "the the" with "the".
14781 * solib-dsbt.c: Replace "the the" with "the".
14782 * linespec.c: Replace "the the" with "the".
14783 * dwarf2loc.h: Replace "the the" with "the".
14784 * amd64-windows-tdep.c: Replace "the the" with "the".
14785 * aarch64-tdep.c: Replace "the the" with "the".
14786
14787 2019-01-16 Keith Seitz <keiths@redhat.com>
14788
14789 PR gdb/23773
14790 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14791 <builder>: Rename to ..
14792 <m_builder>: ... this and make private.
14793 (dwarf2_cu::get_builder): New method. Change all users of
14794 `builder' to use this method.
14795 (dwarf2_start_symtab): Move to ...
14796 (dwarf2_cu::start_symtab): ... here. Update all callers
14797 (setup_type_unit_groups): Move to ...
14798 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14799 callers.
14800 (dwarf2_cu::reset_builder): New method.
14801 (process_full_compunit, process_full_type_unit): Use
14802 dwarf2_cu::reset_builder.
14803 (follow_die_offset): Record the ancestor CU if it is different
14804 from the followed DIE's CU.
14805 (follow_die_sig_1): Likewise.
14806
14807 2019-01-15 Tom Tromey <tom@tromey.com>
14808
14809 * remote.c (class remote_state) <buf>: Now a char_vector.
14810 <buf_size>: Remove.
14811 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14812 parameter.
14813 (remote_target::getpkt_or_notif_sane_1)
14814 (remote_target::getpkt_sane)
14815 (remote_target::getpkt_or_notif_sane): Likewise.
14816 (class remote_target) <putpkt>: New overload.
14817 (remote_target::read_frame): Change type of "buf_p". Remove
14818 sizeof_p parameter.
14819 (packet_ok): New overload.
14820 (packet_check_result): New overload.
14821 Update all uses.
14822
14823 2019-01-14 Tom Tromey <tom@tromey.com>
14824
14825 * remote-notif.c (handle_notification, remote_notif_ack)
14826 (remote_notif_parse): Make "buf" const.
14827 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14828 const.
14829 (remote_notif_parse, remote_notif_ack, handle_notification):
14830 Likewise.
14831 * remote.c (remote_notif_stop_parse): Make "buf" const.
14832 (remote_target::remote_parse_stop_reply): Make "buf" const.
14833 (remote_notif_stop_ack): Make "buf" const.
14834
14835 2019-01-14 Tom Tromey <tom@tromey.com>
14836
14837 * remote.c (remote_console_output): Make parameter const.
14838
14839 2019-01-14 Tom Tromey <tom@tromey.com>
14840
14841 * target-debug.h (target_debug_print_signals): Constify.
14842 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14843 * procfs.c (procfs_target::pass_signals): Update.
14844 * linux-nat.c (linux_nat_target::pass_signals): Update.
14845 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14846 * target-delegates.c: Rebuild.
14847 * remote.c (remote_target::program_signals): Update.
14848 (remote_target::pass_signals): Update.
14849 * target.c (target_pass_signals): Constify argument.
14850 (target_program_signals): Likewise.
14851 * target.h (struct target_ops) <pass_signals, program_signals>:
14852 Constify argument.
14853 (target_pass_signals, target_program_signals): Constify argument.
14854
14855 2019-01-14 Tom Tromey <tom@tromey.com>
14856
14857 PR tui/28819:
14858 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14859
14860 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14861
14862 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14863 field.
14864 * rs6000-tdep.c: Include reggroups.h.
14865 (IS_V_ALIAS_PSEUDOREG): Define.
14866 (rs6000_register_name): Return names for the "vX" aliases.
14867 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14868 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14869 aliases. Call default_register_reggroup_p for all other
14870 pseudo-registers.
14871 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14872 New functions.
14873 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14874 Handle "vX" aliases.
14875 (v_alias_pseudo_register_collect): New function.
14876 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14877 (rs6000_gdbarch_init): Initialize "vX" aliases as
14878 pseudo-registers. Restore registration of
14879 rs6000_pseudo_register_reggroup_p with
14880 set_tdesc_pseudo_register_reggroup_p.
14881
14882 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14883
14884 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14885 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14886 set_gdbarch_num_pseudo_regs.
14887
14888 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14889
14890 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14891 Remove arg prefixname, add do_set and do_show.
14892 Add member functions set_list and show_list.
14893 * cli/cli-style.c (class cli_style_option): Update accordingly.
14894 (style_set_list): Move to file scope.
14895 (style_show_list): Likewise.
14896 (set_style): Call help_list.
14897 (show_style): Call cmd_show_list.
14898 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14899 Update to use the new macro.
14900
14901 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14902
14903 * ada-lang.c (_initialize_ada_language): Expand the help text
14904 for the "catch exception" command.
14905
14906 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14907
14908 * symtab.c (matching_obj_sections): Initialize obj,
14909 declare it closer to its usage.
14910
14911 2019-01-10 Tom Tromey <tom@tromey.com>
14912
14913 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14914 (basic_inf_threads_range): Remove.
14915 (inf_threads_range, inf_non_exited_threads_range)
14916 (safe_inf_threads_range): Use next_adapter.
14917
14918 2019-01-10 Keith Seitz <keiths@redhat.com>
14919
14920 PR gdb/23712
14921 PR symtab/23010
14922 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14923 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14924
14925 2019-01-10 Keith Seitz <keiths@redhat.com>
14926
14927 PR gdb/23712
14928 PR symtab/23010
14929 * dictionary.c (pending_to_vector): Remove.
14930 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14931 Remove _1 suffix, replacing functions of the same name. Update
14932 all callers.
14933 (dict_create_hashed, dict_create_hashed_expandable)
14934 (dict_create_linear, dict_create_linear_expandable, dict_free)
14935 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14936 Make functions static.
14937
14938 2019-01-10 Keith Seitz <keiths@redhat.com>
14939
14940 PR gdb/23712
14941 PR symtab/23010
14942 * dictionary.h (struct dictionary): Replace declaration with
14943 multidictionary.
14944 (dict_create_hashed, dict_create_hashed_expandable)
14945 (dict_create_linear, dict_create_linear_expandable)
14946 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14947 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14948 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14949 taking multidictionary argument.
14950 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14951 * block.h (struct block) <dict>: Change to multidictionary
14952 and rename `multidict'.
14953 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14954 symmisc.c: Update all dictionary references to multidictionary.
14955
14956 2019-01-10 Keith Seitz <keiths@redhat.com>
14957
14958 PR gdb/23712
14959 PR symtab/23010
14960 * dictionary.c: Include unordered_map.
14961 (pending_to_vector): New function.
14962 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14963 Rewrite the non-"_1" functions to take vector instead
14964 of linked list.
14965 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14966 "new" _1 versions of the same name.
14967 (multidictionary): Define.
14968 (std::hash<enum language): New definition.
14969 (collate_pending_symbols_by_language, mdict_create_hashed)
14970 (mdict_create_hashed_expandable, mdict_create_linear)
14971 (mdict_create_linear_expandable, mdict_free)
14972 (find_language_dictionary, create_new_language_dictionary)
14973 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14974 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14975 (mdict_size, mdict_empty): New functions.
14976 * dictionary.h (mdict_iterator): Define.
14977
14978 2019-01-10 Pedro Alves <palves@redhat.com>
14979
14980 * breakpoint.c (read_uploaded_action)
14981 (create_tracepoint_from_upload): Adjust to use
14982 gdb::unique_xmalloc_ptr.
14983 * ctf.c (ctf_write_uploaded_tp):
14984 (SET_ARRAY_FIELD): Use emplace_back.
14985 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14986 * tracefile-tfile.c (tfile_write_uploaded_tp):
14987 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14988 gdb::unique_xmalloc_ptr.
14989 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14990 at_string, cond_string, cmd_strings>: Replace char pointers
14991 with gdb::unique_xmalloc_ptr.
14992
14993 2019-01-10 Pedro Alves <palves@redhat.com>
14994
14995 * solib-target.c (library_list_start_library): Don't xstrdup name.
14996
14997 2019-01-10 Pedro Alves <palves@redhat.com>
14998
14999 * mdebugread.c (parse_partial_symbols): Use
15000 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15001
15002 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15003
15004 * linux-fork.c (scoped_switch_fork_info)
15005 <~scoped_switch_fork_info>: Fix incorrect variable name.
15006
15007 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15008
15009 * linux-fork.c (scoped_switch_fork_info)
15010 <scoped_switch_fork_info>: Make explicit.
15011 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15012
15013 2019-01-10 Tom Tromey <tom@tromey.com>
15014
15015 * objfiles.h (objfile::reset_psymtabs): Update.
15016 * objfiles.c (objfile::objfile): Update.
15017 * psymtab.h (psymtab_storage::obstack): Update.
15018 (psymtab_storage::m_obstack): Use gdb::optional.
15019 (class psymtab_storage): Update comment. Remove objfile
15020 parameter.
15021 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15022
15023 2019-01-10 Tom Tromey <tom@tromey.com>
15024
15025 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15026 <free_psymtabs>: Now private.
15027 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15028 (allocate_psymtab): Use new method.
15029
15030 2019-01-10 Tom Tromey <tom@tromey.com>
15031
15032 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15033 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15034 * mdebugread.c (parse_partial_symbols): Use
15035 allocate_dependencies.
15036 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15037 allocate_dependencies.
15038 (process_psymtab_comp_unit_reader)
15039 (build_type_psymtab_dependencies): Likewise.
15040 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15041
15042 2019-01-10 Tom Tromey <tom@tromey.com>
15043
15044 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15045 PSYMBOL_SET_LANGUAGE.
15046 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15047
15048 2019-01-10 Tom Tromey <tom@tromey.com>
15049
15050 * psymtab.h (psymtab_storage::obstack): New method.
15051 <m_obstack>: Rename from obstack; now private.
15052 * psymtab.c (psymtab_storage): Update.
15053 * dwarf2read.c (create_addrmap_from_index)
15054 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15055 Update.
15056
15057 2019-01-10 Tom Tromey <tom@tromey.com>
15058
15059 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15060 * objfiles.h (objfile::reset_psymtabs): New method.
15061
15062 2019-01-10 Tom Tromey <tom@tromey.com>
15063
15064 * symmisc.c (print_symbol_bcache_statistics): Update.
15065 (print_objfile_statistics): Update.
15066 * symfile.c (reread_symbols): Update.
15067 * psymtab.h (class psymtab_storage): New.
15068 * psymtab.c (psymtab_storage): New constructor.
15069 (~psymtab_storage): New destructor.
15070 (require_partial_symbols): Update.
15071 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15072 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15073 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15074 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15075 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15076 (start_psymtab_common, end_psymtab_common)
15077 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15078 (allocate_psymtab): Update.
15079 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15080 Update.
15081 (dump_psymtab_addrmap, maintenance_print_psymbols)
15082 (maintenance_check_psymtabs): Update.
15083 (class objfile_psymtabs): Move to objfiles.h.
15084 * psympriv.h (discard_psymtab): Now inline.
15085 (psymtab_discarder::psymtab_discarder): Update.
15086 (psymtab_discarder::~psymtab_discarder): Update.
15087 (ALL_OBJFILE_PSYMTABS): Rewrite.
15088 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15089 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15090 Remove fields.
15091 <partial_symtabs>: New field.
15092 (class objfile_psymtabs): Move from psymtab.h. Update.
15093 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15094 psymbol_cache.
15095 (objfile::~objfile): Don't destroy psymbol_cache.
15096 * mdebugread.c (parse_partial_symbols): Update.
15097 * dwarf2read.c (create_addrmap_from_index)
15098 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15099 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15100 (add_partial_subprogram, dwarf2_ranges_read): Update.
15101 * dwarf-index-write.c (write_address_map)
15102 (write_one_signatured_type, recursively_write_psymbols)
15103 (class debug_names, class debug_names, write_psymtabs_to_index):
15104 Update.
15105
15106 2019-01-10 Tom Tromey <tom@tromey.com>
15107
15108 * symtab.h (SYMBOL_SET_NAMES): Update.
15109 (symbol_set_names): Update.
15110 (MSYMBOL_SET_NAMES): Update.
15111 * symtab.c (symbol_set_names): Change argument to be an
15112 objfile_per_bfd_storage.
15113 * psymtab.c (add_psymbol_to_bcache): Update.
15114 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15115
15116 2019-01-10 Tom Tromey <tom@tromey.com>
15117
15118 * symtab.c (create_demangled_names_hash): Change argument to be an
15119 objfile_per_bfd_storage.
15120 (symbol_set_names): Update.
15121
15122 2019-01-10 Tom Tromey <tom@tromey.com>
15123
15124 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15125 init_psymbol_list.
15126 * psymtab.c (init_psymbol_list): Do nothing if already called.
15127 * psympriv.h (init_psymbol_list): Add comment.
15128 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15129 init_psymbol_list.
15130 * dbxread.c (dbx_symfile_read): Unconditionally call
15131 init_psymbol_list.
15132
15133 2019-01-10 Tom Tromey <tom@tromey.com>
15134
15135 * xcoffread.c (scan_xcoff_symtab): Update.
15136 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15137 "where".
15138 * mdebugread.c (parse_partial_symbols)
15139 (handle_psymbol_enumerators): Update.
15140 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15141 * dbxread.c (read_dbx_symtab): Update.
15142 * psympriv.h (psymbol_placement): New enum.
15143 (add_psymbol_to_list): Update.
15144
15145 2019-01-10 Tom Tromey <tom@tromey.com>
15146
15147 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15148 static_psymbols parameters.
15149 (scan_xcoff_symtab): Update.
15150 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15151 static_psymbols parameters.
15152 * psympriv.h (start_psymtab_common): Update.
15153 * mdebugread.c (parse_partial_symbols): Update.
15154 * dwarf2read.c (create_partial_symtab): Update.
15155 * dbxread.c (read_dbx_symtab): Update.
15156 (start_psymtab): Remove global_psymbols and static_psymbols
15157 parameters.
15158
15159 2019-01-10 Tom Tromey <tom@tromey.com>
15160
15161 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15162 * psymtab.c (allocate_psymtab): Add comment.
15163 * psympriv.h (allocate_psymtab): Add comment.
15164 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15165 initializations.
15166 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15167
15168 2019-01-10 Tom Tromey <tom@tromey.com>
15169
15170 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15171 Don't declare.
15172 * mipsread.c: Include mdebugread.h.
15173 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15174 Declare.
15175 * elfread.c: Include mdebugread.h.
15176
15177 2019-01-09 Tom Tromey <tom@tromey.com>
15178
15179 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15180 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15181 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15182 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15183 (psym_lookup_symbol, psym_find_last_source_symtab)
15184 (psym_forget_cached_source_info, psym_print_stats)
15185 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15186 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15187 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15188 (psym_find_compunit_symtab_by_address)
15189 (maintenance_print_psymbols, maintenance_info_psymtabs)
15190 (maintenance_check_psymtabs): Use ranged for.
15191 * psymtab.h (class objfile_psymtabs): New.
15192 (require_partial_symbols): Return objfile_psymtabs.
15193 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15194
15195 2019-01-09 Tom Tromey <tom@tromey.com>
15196
15197 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15198 (find_pc_mapped_section, list_overlays_command)
15199 (map_overlay_command, unmap_overlay_command)
15200 (simple_overlay_update): Use all_objfiles.
15201 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15202 * printcmd.c (info_symbol_command): Use all_objfiles.
15203 * objfiles.h (ALL_OBJSECTIONS): Remove.
15204 * maint.c (maintenance_translate_address): Use all_objfiles.
15205 * gcore.c (gcore_create_callback): Use all_objfiles.
15206 (objfile_find_memory_regions): Likewise.
15207
15208 2019-01-09 Tom Tromey <tom@tromey.com>
15209
15210 * symtab.c (find_line_symtab, info_sources_command)
15211 (make_source_files_completion_list): Use objfile_compunits.
15212 * source.c (select_source_symtab): Use objfile_compunits.
15213 * objfiles.h (struct objfile): Update comment.
15214 (ALL_OBJFILES): Remove.
15215 (ALL_FILETABS): Remove.
15216 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15217 objfile_compunits.
15218
15219 2019-01-09 Tom Tromey <tom@tromey.com>
15220
15221 * symmisc.c (print_objfile_statistics, dump_objfile)
15222 (maintenance_print_symbols): Use compunit_filetabs.
15223 * source.c (forget_cached_source_info_for_objfile): Use
15224 compunit_filetabs.
15225 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15226 (ALL_FILETABS): Use compunit_filetabs.
15227 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15228 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15229
15230 2019-01-09 Tom Tromey <tom@tromey.com>
15231
15232 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15233 (compunit_filetabs): New.
15234 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15235 compunit_filetabs.
15236 (info_sources_command, make_source_files_completion_list): Remove
15237 declaration.
15238 * symmisc.c (print_objfile_statistics, dump_objfile)
15239 (maintenance_print_symbols): Remove declaration.
15240 (maintenance_info_symtabs): Use compunit_filetabs.
15241 (maintenance_info_line_tables): Likewise.
15242 * source.c (select_source_symtab): Change local variable name.
15243 (forget_cached_source_info_for_objfile): Remove declaration.
15244 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15245 * objfiles.c (objfile_relocate1): Remove declaration.
15246 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15247 declaration.
15248 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15249 * coffread.c (coff_symtab_read): Remove declaration.
15250 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15251 compunit_filetabs.
15252
15253 2019-01-09 Tom Tromey <tom@tromey.com>
15254
15255 * symtab.c (lookup_objfile_from_block)
15256 (find_pc_sect_compunit_symtab, search_symbols)
15257 (default_collect_symbol_completion_matches_break_on): Use
15258 objfile_compunits.
15259 * objfiles.h (ALL_COMPUNITS): Remove.
15260 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15261 * cp-support.c (add_symbol_overload_list_qualified): Use
15262 objfile_compunits.
15263 * ada-lang.c (ada_collect_symbol_completion_matches)
15264 (ada_add_global_exceptions): Use objfile_compunits.
15265
15266 2019-01-09 Tom Tromey <tom@tromey.com>
15267
15268 * source.c (select_source_symtab)
15269 (forget_cached_source_info_for_objfile): Remove declaration.
15270 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15271 declaration.
15272 * maint.c (count_symtabs_and_blocks): Remove declaration.
15273 * cp-support.c (add_symbol_overload_list_qualified): Remove
15274 declaration.
15275 * coffread.c (coff_symtab_read): Remove declaration.
15276 * symtab.c (lookup_symbol_in_objfile_symtabs)
15277 (basic_lookup_transparent_type_1): Use objfile_compunits.
15278 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15279 (info_sources_command, search_symbols)
15280 (default_collect_symbol_completion_matches_break_on)
15281 (make_source_files_completion_list): Remove declaration.
15282 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15283 (ada_collect_symbol_completion_matches)
15284 (ada_add_global_exceptions): Remove declaration.
15285 * linespec.c (iterate_over_all_matching_symtabs): Use
15286 objfile_compunits.
15287 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15288 (class objfile_compunits): New.
15289 (ALL_COMPUNITS): Use objfile_compunits.
15290 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15291 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15292 objfile_compunits.
15293 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15294
15295 2019-01-09 Tom Tromey <tom@tromey.com>
15296
15297 * symtab.c (search_symbols)
15298 (default_collect_symbol_completion_matches_break_on): Use
15299 objfile_msymbols.
15300 * ada-lang.c (ada_lookup_simple_minsym)
15301 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15302 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15303 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15304 objfile_msymbols.
15305 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15306 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15307 * objc-lang.c (find_methods): Use objfile_msymbols.
15308 (info_selectors_command, info_classes_command): Likewise.
15309 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15310 * objfiles.h (class objfile_msymbols): New.
15311 (ALL_OBJFILE_MSYMBOLS): Remove.
15312 (ALL_MSYMBOLS): Remove.
15313
15314 2019-01-09 Tom Tromey <tom@tromey.com>
15315
15316 * common/next-iterator.h (next_adapter): Add Iterator template
15317 parameter.
15318 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15319 (class all_objfiles_safe): New.
15320 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15321 * objfiles.c (put_objfile_before): Update comment.
15322 (add_separate_debug_objfile): Likewise.
15323 (free_all_objfiles): Use all_objfiles_safe.
15324 (objfile_purge_solibs): Likewise.
15325
15326 2019-01-09 Tom Tromey <tom@tromey.com>
15327
15328 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15329 (expand_symtab_containing_pc, lookup_static_symbol)
15330 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15331 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15332 all_objfiles.
15333 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15334 * breakpoint.c (create_overlay_event_breakpoint)
15335 (create_longjmp_master_breakpoint)
15336 (create_std_terminate_master_breakpoint)
15337 (create_exception_master_breakpoint): Use all_objfiles.
15338 * linux-thread-db.c (try_thread_db_load_from_pdir)
15339 (has_libpthread): Use all_objfiles.
15340 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15341 * linespec.c (iterate_over_all_matching_symtabs)
15342 (search_minsyms_for_name): Use all_objfiles.
15343 * maint.c (maintenance_info_sections): Use all_objfiles.
15344 * main.c (captured_main_1): Use all_objfiles.
15345 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15346 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15347 * guile/scm-pretty-print.c
15348 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15349 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15350 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15351 (maintenance_print_msymbols): Use all_objfiles.
15352 * source.c (select_source_symtab): Use all_objfiles.
15353 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15354 * symfile.c (remove_symbol_file_command)
15355 (expand_symtabs_matching, map_symbol_filenames): Use
15356 all_objfiles.
15357 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15358 all_objfiles.
15359 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15360 * objc-lang.c (find_methods): Use all_objfiles.
15361 * objfiles.c (have_partial_symbols, have_full_symbols)
15362 (have_minimal_symbols, qsort_cmp)
15363 (default_iterate_over_objfiles_in_search_order): Use
15364 all_objfiles.
15365 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15366 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15367 (maintenance_check_psymtabs): Use all_objfiles.
15368 (ALL_PSYMTABS): Remove.
15369 * compile/compile-object-run.c (do_module_cleanup): Use
15370 all_objfiles.
15371 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15372 * cp-support.c (add_symbol_overload_list_qualified): Use
15373 all_objfiles.
15374 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15375 Use all_objfiles.
15376 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15377 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15378 all_objfiles.
15379 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15380 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15381 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15382 Uses all_objfiles.
15383 * solib.c (solib_read_symbols): Use all_objfiles
15384
15385 2019-01-09 Tom Tromey <tom@tromey.com>
15386
15387 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15388 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15389 all_objfiles.
15390 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15391 * symmisc.c (print_symbol_bcache_statistics)
15392 (print_objfile_statistics, maintenance_print_objfiles)
15393 (maintenance_info_symtabs, maintenance_check_symtabs)
15394 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15395 all_objfiles.
15396 * source.c (forget_cached_source_info): Use all_objfiles.
15397 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15398 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15399 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15400 * objfiles.c (update_section_map): Use all_objfiles.
15401 (shared_objfile_contains_address_p): Likewise.
15402 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15403 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15404
15405 2019-01-09 Tom Tromey <tom@tromey.com>
15406
15407 * common/next-iterator.h: New file.
15408 * objfiles.h (class all_objfiles): New.
15409 (struct objfile_iterator): New.
15410
15411 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15412
15413 * NEWS: Move the description of the changed "frame", "select-frame",
15414 and "info frame" commands to the Changed commands section.
15415
15416 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15417
15418 * gdbtypes.c (check_stub_method_group): Remove handling of old
15419 mangling schemes.
15420 * linespec.c (find_methods): Likewise.
15421 * stabsread.c (read_member_functions): Likewise.
15422 * valops.c (search_struct_method): Likewise.
15423 (value_struct_elt_for_reference): Likewise.
15424 * NEWS: Mention this change.
15425
15426 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15427
15428 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15429 print_source_lines.
15430 * source.c (print_source_lines_base): Update line number check.
15431 (print_source_lines): New function.
15432 (source_lines_range::source_lines_range): New function.
15433 * source.h (class source_lines_range): New class.
15434 (print_source_lines): New declaration.
15435
15436 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15437
15438 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15439
15440 2019-01-08 Tom Tromey <tom@tromey.com>
15441 Simon Marchi <simon.marchi@ericsson.com>
15442
15443 PR gdb/24060
15444 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15445 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15446 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15447 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15448 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15449 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15450
15451 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15452
15453 * source.c (select_source_symtab): Move header comment to
15454 declaration in source.h.
15455 (forget_cached_source_info_for_objfile): Likewise.
15456 (forget_cached_source_info): Likewise.
15457 (identify_source_line): Likewise.
15458 * source.h (identify_source_line): Move declaration from symtab.h
15459 and add comment from source.c
15460 (print_source_lines): Likewise.
15461 (forget_cached_source_info_for_objfile): Likewise.
15462 (forget_cached_source_info): Likewise.
15463 (select_source_symtab): Likewise.
15464 (enum print_source_lines_flag): Move definition from symtab.h.
15465 * symtab.h (identify_source_line): Move declaration to source.h.
15466 (print_source_lines): Likewise.
15467 (forget_cached_source_info_for_objfile): Likewise.
15468 (forget_cached_source_info): Likewise.
15469 (select_source_symtab): Likewise.
15470 (enum print_source_lines_flag): Move definition to source.h.
15471 * tui/tui-hooks.c: Add 'source.h' include.
15472
15473 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15474
15475 * source.c (print_source_lines_base): Handle requests to print
15476 reverse line number sequences, and guard against empty lines
15477 string.
15478
15479 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15480
15481 * source.c (print_source_lines_base): Fix skip of '\r' if next
15482 character is '\n'.
15483
15484 2019-01-06 Tom Tromey <tom@tromey.com>
15485
15486 * c-exp.y (struct c_parse_state) <macro_original_text,
15487 expansion_obstack>: New member.
15488 (macro_original_text, expansion_obstack): Remove globals.
15489 (scan_macro_expansion, scanning_macro_expansion)
15490 (finished_macro_expansion): Update.
15491 (scan_macro_cleanup): Remove.
15492 (yylex, c_parse): Update.
15493
15494 2019-01-06 Tom Tromey <tom@tromey.com>
15495
15496 * c-exp.y (struct c_parse_state) <strings>: New member.
15497 (operator_stoken): Update.
15498
15499 2019-01-06 Tom Tromey <tom@tromey.com>
15500
15501 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15502 (union type_stack_elt) <typelist_val>: Now a pointer to
15503 std::vector.
15504 (type_stack_cleanup): Don't declare.
15505 (push_typelist): Update.
15506 * parse.c (pop_typelist): Return a std::vector.
15507 (push_typelist): Take a std::vector.
15508 (follow_types): Update. Do not free args.
15509 (type_stack_cleanup): Remove.
15510 * c-exp.y (struct c_parse_state): New.
15511 (cpstate): New global.
15512 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15513 (nonempty_typelist): Update.
15514 (func_mod): Create a new vector.
15515 (c_parse): Create a c_parse_state.
15516 (check_parameter_typelist): Do not delete params.
15517 (function_method): Update. Do not delete type_list.
15518
15519 2019-01-06 Tom Tromey <tom@tromey.com>
15520
15521 PR gdb/28155:
15522 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15523 check_typedef.
15524 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15525 (print_return_value): Likewise.
15526
15527 2019-01-05 Tom Tromey <tom@tromey.com>
15528
15529 * contrib/cleanup_check.py: Remove.
15530 * contrib/gcc-with-excheck: Remove.
15531 * contrib/exsummary.py: Remove.
15532 * contrib/excheck.py: Remove.
15533
15534 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15535
15536 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15537 NULL. Initialize tpprev to NULL instead of assigning it
15538 to NULL on the next statement.
15539 * windows-nat.c (windows_delete_thread): Remove check for
15540 main_thread_id before printing thread exit notifications.
15541 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15542 Remove thread ID check against main_thread_id.
15543 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15544 windows_delete_thread.
15545 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15546
15547 2019-01-04 Tom Tromey <tom@tromey.com>
15548
15549 * compile/compile.c (_initialize_compile): Use upper case for
15550 metasyntactic variables.
15551 * symmisc.c (_initialize_symmisc): Use upper case for
15552 metasyntactic variables.
15553 * psymtab.c (_initialize_psymtab): Use upper case for
15554 metasyntactic variables.
15555 * demangle.c (demangle_command): Use upper case for metasyntactic
15556 variables.
15557 (_initialize_demangler): Likewise.
15558 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15559 variables.
15560
15561 2019-01-03 Tom Tromey <tom@tromey.com>
15562
15563 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15564
15565 2019-01-03 Tom Tromey <tom@tromey.com>
15566
15567 * python/py-symtab.c (salpy_str): Update.
15568 (struct salpy_sal_object) <symtab>: Now a PyObject.
15569 (salpy_dealloc): Update.
15570 (del_objfile_sal): Use gdbpy_ref.
15571
15572 2019-01-03 Tom Tromey <tom@tromey.com>
15573
15574 * python/py-type.c (convert_field): Use new_reference. Return
15575 gdbpy_ref.
15576 (make_fielditem): Return gdbpy_ref.
15577 (typy_fields): Update.
15578 (typy_getitem): Update.
15579 (field_name): Return gdbpy_ref. Use new_reference.
15580 (typy_iterator_iternext): Update.
15581
15582 2019-01-03 Tom Tromey <tom@tromey.com>
15583
15584 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15585
15586 2019-01-03 Tom Tromey <tom@tromey.com>
15587
15588 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15589 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15590 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15591 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15592 (pspy_set_type_printers): Likewise.
15593 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15594 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15595 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15596 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15597 (objfpy_set_type_printers): Likewise.
15598
15599 2019-01-03 Tom Tromey <tom@tromey.com>
15600
15601 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15602 (gdbpy_print_stack): Use gdbpy_err_fetch.
15603 * python/python-internal.h (class gdbpy_err_fetch): New class.
15604 (class gdbpy_enter) <m_error_type, m_error_value,
15605 m_error_traceback>: Remove.
15606 <m_error>: New member.
15607 (gdbpy_exception_to_string): Don't declare.
15608 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15609 * python/py-value.c (convert_value_from_python): Use
15610 gdbpy_err_fetch.
15611 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15612 gdbpy_exception_to_string.
15613 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15614 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15615 gdbpy_err_fetch.
15616
15617 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15618
15619 * linux-nat.c (delete_lwp_cleanup): Delete.
15620 (struct lwp_deleter): New struct.
15621 (lwp_info_up): New typedef.
15622 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15623 lwp_info_up.
15624
15625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15626
15627 * linux-fork.c (class scoped_switch_fork_info): New class.
15628 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15629
15630 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15631
15632 * valops.c (find_overload_match): Remove use of null_cleanup, and
15633 calls to do_cleanups.
15634
15635 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15636
15637 * compile/compile-cplus-types.c
15638 (compile_cplus_instance::decl_name): Handle changes to
15639 cp_func_name.
15640 * cp-support.c (cp_func_name): Update header comment, update
15641 return type.
15642 * cp-support.h (cp_func_name): Update return type in declaration.
15643 * valops.c (find_overload_match): Move temp_func local to top
15644 level of function and change its type. Use temp_func to hold and
15645 delete temporary string obtained from cp_func_name.
15646
15647 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15648
15649 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15650 gdb::char_vector, remove cleanup, and update uses of `msg`.
15651
15652 2019-01-03 Jim Wilson <jimw@sifive.com>
15653
15654 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15655
15656 2019-01-02 Tom Tromey <tom@tromey.com>
15657
15658 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15659 (tdesc_parse_xml): Remove cleanups.
15660 * target-descriptions.h (make_cleanup_free_target_description):
15661 Don't declare.
15662 (target_desc_deleter): New struct.
15663 (target_desc_up): New typedef.
15664 * target-descriptions.c (target_desc_deleter::operator()): Rename
15665 from free_target_description.
15666 (make_cleanup_free_target_description): Remove.
15667
15668 2019-01-02 Tom Tromey <tom@tromey.com>
15669
15670 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15671 constructor, destructor.
15672 (linespec_parser): Remove typedef.
15673 (~linespec_parser): Rename from linespec_parser_delete.
15674 (linespec_lex_to_end, linespec_complete_label)
15675 (linespec_complete): Update.
15676 (decode_line_full): Remove cleanups.
15677 (decode_line_1): Update.
15678
15679 2019-01-02 Tom Tromey <tom@tromey.com>
15680
15681 * python/python-internal.h (inferior_to_inferior_object): Change
15682 return type.
15683 * python/py-exitedevent.c (create_exited_event_object): Update.
15684 * python/py-inferior.c (inferior_to_inferior_object): Return
15685 gdbpy_ref.
15686 (python_new_inferior, python_inferior_deleted)
15687 (thread_to_thread_object, delete_thread_object)
15688 (build_inferior_list, gdbpy_selected_inferior): Update.
15689 * python/py-infthread.c (create_thread_object): Update. Also fail
15690 if inferior_to_inferior_object fails.
15691
15692 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15693
15694 * inferior.h (class inferior) <displaced_step_state>: New field.
15695 * infrun.h (struct displaced_step_state): Move here from
15696 infrun.c. Initialize fields, add constructor.
15697 <inf>: Remove field.
15698 <reset>: New method.
15699 * infrun.c (struct displaced_step_inferior_state): Move to
15700 infrun.h.
15701 (displaced_step_inferior_states): Remove.
15702 (get_displaced_stepping_state): Adust.
15703 (displaced_step_in_progress_any_inferior): Adjust.
15704 (displaced_step_in_progress_thread): Adjust.
15705 (displaced_step_in_progress): Adjust.
15706 (add_displaced_stepping_state): Remove.
15707 (get_displaced_step_closure_by_addr): Adjust.
15708 (remove_displaced_stepping_state): Remove.
15709 (infrun_inferior_exit): Call displaced_step_state.reset.
15710 (use_displaced_stepping): Don't check for NULL.
15711 (displaced_step_prepare_throw): Call
15712 get_displaced_stepping_state.
15713 (displaced_step_fixup): Don't check for NULL.
15714 (prepare_for_detach): Don't check for NULL.
15715
15716 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15717
15718 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15719 in case of call that did not complete.
15720
15721 2019-01-02 Andrey Utkin <autkin@undo.io>
15722
15723 * symfile.c (find_separate_debug_file): Fix search of debug files for
15724 remote debuggee.
15725
15726 2019-01-02 Tom Tromey <tom@tromey.com>
15727
15728 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15729 indentation.
15730 * python/py-frame.c (frapy_older): Remove cast.
15731 (frapy_newer): Likewise.
15732 * python/py-breakpoint.c (local_setattro): Remove cast.
15733 * python/py-arch.c (archpy_name): Remove local variable.
15734 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15735
15736 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15737
15738 * unittests/basic_string_view/element_access/char/empty.cc:
15739 Fix year range in copyright header.
15740
15741 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15742
15743 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15744 Delete.
15745 <operator==>: Update with for removed field.
15746 <hash>: Likewise.
15747 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15748 <isa_features>: ...this.
15749 <abi_features>: New field.
15750 (riscv_isa_flen): Update comment.
15751 (riscv_abi_xlen): New declaration.
15752 (riscv_abi_flen): New declaration.
15753 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15754 isa_features.
15755 (riscv_abi_xlen): New function.
15756 (riscv_isa_flen): Update to get answer from isa_features.
15757 (riscv_abi_flen): New function.
15758 (riscv_has_fp_abi): Update to get answer from abi_features.
15759 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15760 xlen and flen.
15761 (riscv_call_info) <xlen, flen>: Update comment.
15762 (riscv_call_arg_struct): Remove invalid assertions
15763 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15764 is removed.
15765 (riscv_gdbarch_init): Gather isa features and abi features
15766 separately, ensure both match on the gdbarch when reusing an old
15767 gdbarch. Relax an error check to allow 32-bit abi float to run on
15768 a target with 64-bit float hardware.
15769
15770 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15771
15772 * source.c (search_command_helper): Stop reverse search
15773 when line 1 has been searched.
15774
15775 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15776
15777 * record-full.c (record_full_base_target::close): Rewrite
15778 record_full_core_buf_list free logic.
15779
15780 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15781
15782 * break-catch-syscall.c (print_one_catch_syscall): xfree
15783 the last text.
15784
15785 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15786
15787 * top.c (print_gdb_version): Update Copyright year in version
15788 message.
15789
15790 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15791
15792 Update copyright year range in all GDB files.
15793
15794 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15795
15796 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15797
15798 For older changes see ChangeLog-2018.
15799 \f
15800 Local Variables:
15801 mode: change-log
15802 left-margin: 8
15803 fill-column: 74
15804 version-control: never
15805 coding: utf-8
15806 End:
15807
This page took 0.380934 seconds and 5 git commands to generate.