Add maint set/show worker-threads
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-26 Tom Tromey <tom@tromey.com>
2
3 * NEWS: Add entry.
4 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
5 commands. Call update_thread_pool_size.
6 (update_thread_pool_size, maintenance_set_worker_threads): New
7 functions.
8 (n_worker_threads): New global.
9
10 2019-11-26 Christian Biesinger <cbiesinger@google.com>
11 Tom Tromey <tom@tromey.com>
12
13 * minsyms.c (minimal_symbol_reader::install): Use
14 parallel_for_each.
15 * gdbsupport/parallel-for.h: New file.
16 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
17
18 2019-11-26 Christian Biesinger <cbiesinger@google.com>
19 Tom Tromey <tom@tromey.com>
20
21 * gdbsupport/thread-pool.h: New file.
22 * gdbsupport/thread-pool.c: New file.
23 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
24 (HFILES_NO_SRCDIR): Add thread-pool.h.
25
26 2019-11-26 Tom Tromey <tom@tromey.com>
27
28 * event-top.h (thread_local_segv_handler): Declare.
29 * event-top.c (thread_local_segv_handler): New global.
30 (install_handle_sigsegv, handle_sigsegv): New functions.
31 (async_init_signals): Install SIGSEGV handler.
32 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
33 thread-local.
34 (report_failed_demangle): New function.
35 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
36 handler-setting code, instead use segv_handler. Run warning code
37 on main thread.
38
39 2019-11-26 Tom Tromey <tom@tromey.com>
40
41 * run-on-main-thread.c: New file.
42 * run-on-main-thread.h: New file.
43 * unittests/main-thread-selftests.c: New file.
44 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
45 main-thread-selftests.c.
46 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
47 (COMMON_SFILES): Add run-on-main-thread.c.
48
49 2019-11-26 Tom Tromey <tom@tromey.com>
50
51 * main.c (setup_alternate_signal_stack): Remove.
52 (captured_main_1): Use gdb::alternate_signal_stack.
53 * gdbsupport/alt-stack.h: New file.
54
55 2019-11-26 Tom Tromey <tom@tromey.com>
56
57 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
58 Remove comment.
59 (save_original_signals_state, restore_original_signals_state): Use
60 gdb_sigmask.
61 * linux-nat.c (block_child_signals, restore_child_signals_mask)
62 (_initialize_linux_nat): Use gdb_sigmask.
63 * guile/guile.c (_initialize_guile): Use block_signals.
64 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
65 * gdbsupport/gdb-sigmask.h: New file.
66 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
67 * cp-support.c (gdb_demangle): Use gdb_sigmask.
68 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
69 pthread_sigmask.
70 * configure, config.in: Rebuild.
71 * gdbsupport/block-signals.h: New file.
72
73 2019-11-26 Tom Tromey <tom@tromey.com>
74
75 * acinclude.m4: Include ax_pthread.m4.
76 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
77 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
78 (CLIBS): Use PTHREAD_LIBS.
79 (aclocal_m4_deps): Add ax_pthread.m4.
80 * config.in, configure: Rebuild.
81 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
82
83 2019-11-26 Tom Tromey <tom@tromey.com>
84
85 * symtab.h (struct minimal_symbol) <name_set>: New member.
86 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
87 Don't call symbol_set_names.
88 (minimal_symbol_reader::install): Call symbol_set_names.
89
90 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
91
92 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
93 restore_active_ext_lang, as GIL is needed for (indirectly)
94 called PyOS_InterruptOccurred.
95
96 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
97
98 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
99 definition.
100
101 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
102
103 * remote-sim.c (simulator_command): Make static, remove
104 declaration.
105
106 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
107
108 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
109 static.
110 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
111 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
112 (main): Likewise.
113 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
114 (main): Likewise.
115 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
116 (main): Likewise.
117 * unittests/basic_string_view/element_access/char/1.cc (test01):
118 Likewise.
119 (main): Likewise.
120 * unittests/basic_string_view/element_access/char/empty.cc (main):
121 Likewise.
122 * unittests/basic_string_view/element_access/char/front_back.cc
123 (test01): Likewise.
124 (main): Likewise.
125 * unittests/basic_string_view/inserters/char/2.cc (test05):
126 Likewise.
127 (main): Likewise.
128 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
129 (test01): Likewise.
130 (main): Likewise.
131 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
132 (test01): Likewise.
133 (main): Likewise.
134 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
135 Likewise.
136 * unittests/basic_string_view/operations/compare/char/1.cc
137 (test01): Likewise.
138 (main): Likewise.
139 * unittests/basic_string_view/operations/compare/char/13650.cc
140 (test01): Likewise.
141 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
142 Likewise.
143 (main): Likewise.
144 * unittests/basic_string_view/operations/data/char/1.cc (test01):
145 Likewise.
146 (main): Likewise.
147 * unittests/basic_string_view/operations/find/char/1.cc (test01):
148 Likewise.
149 (main): Likewise.
150 * unittests/basic_string_view/operations/find/char/2.cc (test02):
151 Likewise.
152 (main): Likewise.
153 * unittests/basic_string_view/operations/find/char/3.cc (test03):
154 Likewise.
155 (main): Likewise.
156 * unittests/basic_string_view/operations/find/char/4.cc (main):
157 Likewise.
158 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
159 Likewise.
160 (main): Likewise.
161 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
162 Likewise.
163 (main): Likewise.
164 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
165 Likewise.
166 (main): Likewise.
167 * unittests/basic_string_view/operations/substr/char/1.cc
168 (test01): Likewise.
169 (main): Likewise.
170 * unittests/basic_string_view/operators/char/2.cc (main):
171 Likewise.
172 * unittests/optional/assignment/1.cc (test): Likewise.
173 * unittests/optional/assignment/2.cc (test): Likewise.
174 * unittests/optional/assignment/3.cc (test): Likewise.
175 * unittests/optional/assignment/4.cc (test): Likewise.
176 * unittests/optional/assignment/5.cc (test): Likewise.
177 * unittests/optional/assignment/6.cc (test): Likewise.
178 * unittests/optional/assignment/7.cc (test): Likewise.
179 * unittests/optional/cons/copy.cc (test): Likewise.
180 * unittests/optional/cons/default.cc (test): Likewise.
181 * unittests/optional/cons/move.cc (test): Likewise.
182 * unittests/optional/cons/value.cc (test): Likewise.
183 * unittests/optional/in_place.cc (test): Likewise.
184 * unittests/optional/observers/1.cc (test): Likewise.
185 * unittests/optional/observers/2.cc (test): Likewise.
186
187 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
188
189 * tui-win.h (tui_set_var_cmd): Remove.
190 * tui-win.c (tui_set_var_cmd): Make static.
191
192 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
193
194 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
195 rbreak_command_wrapper): Remove.
196 * symtab.c (rbreak_command_wrapper): Remove.
197
198 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
199
200 * inferior.h (info_terminal_command): Remove declaration.
201 * inflow.c (info_terminal_command): Make static.
202
203 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
204
205 * inferior.c (exit_inferior_silent): Remove.
206
207 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
208
209 * dictionary.c (dict_empty, mdict_empty): Remove.
210 * dictionary.c (mdict_empty): Remove.
211
212 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
213
214 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
215 (arc_insn_get_memory_offset): Likewise.
216 (arc_insn_dump): Likewise.
217 * cp-support.c (test_cp_symbol_name_matches): Likewise.
218 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
219 * dictionary.c (dict_iterator_next): Likewise.
220 (dict_iter_match_first): Likewise.
221 (dict_iter_match_next): Likewise.
222 * f-lang.c (evaluate_subexp_f): Likewise.
223 * hppa-tdep.c (hppa_read_pc): Likewise.
224 * i386-tdep.c (i386_floatformat_for_type): Likewise.
225 * parse.c (write_exp_elt_msym): Likewise.
226 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
227 * remote.c (remote_packet_size): Likewise.
228 (remote_notif_stop_parse): Likewise.
229 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
230 * s12z-tdep.c (s12z_disassemble_info): Likewise.
231 * source.c (prepare_path_for_appending): Likewise.
232 * sparc64-linux-tdep.c
233 (sparc64_linux_handle_segmentation_fault); Likewise.
234 * stack.c (frame_selection_by_function_completer): Likewise.
235
236 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
237
238 * completer.c (set_gdb_completion_word_break_characters):
239 Remove.
240
241 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
242
243 * dwarf-index-write.c: Include dwarf-index-write.h.
244 * mi/mi-interp.c: Include mi/mi-interp.h.
245
246 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
247
248 * aarch32-tdep.c: Include aarch32-tdep.h.
249 * aarch32-tdep.h: Forward-declare struct target_desc.
250
251 2019-11-26 Christian Biesinger <cbiesinger@google.com>
252
253 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
254 strerror.
255 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
256 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
257
258 2019-11-25 Tom de Vries <tdevries@suse.de>
259
260 * contrib/words.sh: Add -c option.
261
262 2019-11-25 Christian Biesinger <cbiesinger@google.com>
263
264 * solib.c (solib_find_1): Change int to bool.
265 (exec_file_find): Change int to bool.
266 (solib_find): Change int to bool.
267 (solib_read_symbols): Change int to bool.
268 (solib_used): Change int to bool.
269 (solib_add): Change int to bool.
270 (info_sharedlibrary_command): Change int to bool.
271 (solib_contains_address_p): Change int to bool.
272 (solib_keep_data_in_core): Change int to bool.
273 (in_solib_dynsym_resolve_code): Change int to bool.
274 (reload_shared_libraries_1): Change int to bool.
275 (gdb_sysroot_changed): Change int to bool.
276 * solib.h (solib_read_symbols): Change int to bool.
277 (solib_contains_address_p): Change int to bool.
278 (solib_keep_data_in_core): Change int to bool.
279 (in_solib_dynsym_resolve_code): Change int to bool.
280 (libpthread_name_p): Change int to bool.
281
282 2019-11-25 Luis Machado <luis.machado@linaro.org>
283
284 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
285 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
286 (remote_packet_max_chars): New static global.
287 (show_remote_packet_max_chars): New function.
288 (remote_target::putpkt_binary): Adjust to use new
289 remote_packet_max_chars option.
290 (remote_target::getpkt_or_notif_sane_1): Likewise.
291 (_initialize_remote): Register new remote-packet-max-chars option.
292
293 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
294
295 * m68k-linux-nat.c: Include gdbarch.h.
296
297 2019-11-24 Tom Tromey <tom@tromey.com>
298
299 * symfile.c (read_symbols): Update.
300 * psymtab.c (require_partial_symbols): Change type of "verbose" to
301 bool.
302 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
303 (psym_lookup_symbol, psym_find_last_source_symtab)
304 (psym_forget_cached_source_info, psym_print_stats)
305 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
306 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
307 (psym_map_matching_symbols, psym_expand_symtabs_matching)
308 (psym_find_compunit_symtab_by_address)
309 (maintenance_print_psymbols, maintenance_info_psymtabs)
310 (maintenance_check_psymtabs): Update.
311 * psymtab.h (require_partial_symbols): Change type of "verbose" to
312 bool.
313
314 2019-11-22 Tom Tromey <tom@tromey.com>
315
316 * observable.h: Update comments.
317
318 2019-11-22 Tom Tromey <tromey@adacore.com>
319
320 * ada-tasks.c (ada_task_is_alive): Make parameter const.
321 (print_ada_task_info): Don't try to fetch thread id if task is not
322 alive.
323
324 2019-11-22 Christian Biesinger <cbiesinger@google.com>
325
326 * ada-exp.y: Update.
327 * ada-lang.c (sort_choices): Update.
328 (ada_print_symbol_signature): Update.
329 (resolve_subexp): Update.
330 (ada_parse_renaming): Update.
331 (ada_read_renaming_var_value): Update.
332 (lesseq_defined_than): Update.
333 (remove_extra_symbols): Update.
334 (remove_irrelevant_renamings): Update.
335 (ada_add_block_symbols): Update.
336 (ada_collect_symbol_completion_matches): Update.
337 (ada_is_renaming_symbol): Update.
338 (aggregate_assign_from_choices): Update.
339 (ada_evaluate_subexp): Update.
340 (ada_has_this_exception_support): Update.
341 (ada_is_non_standard_exception_sym): Update.
342 (ada_add_exceptions_from_frame): Update.
343 (ada_add_global_exceptions): Update.
344 (ada_print_subexp): Update.
345 * ax-gdb.c (gen_var_ref): Update.
346 (gen_maybe_namespace_elt): Update.
347 (gen_expr_for_cast): Update.
348 (gen_expr): Update.
349 * block.h: Update.
350 * blockframe.c (find_pc_partial_function): Update.
351 * breakpoint.c (print_breakpoint_location): Update.
352 (update_static_tracepoint): Update.
353 * btrace.c (ftrace_print_function_name): Update.
354 (ftrace_function_switched): Update.
355 * buildsym.c (find_symbol_in_list): Update.
356 * c-exp.y: Update.
357 * c-typeprint.c (c_print_typedef): Update.
358 (c_type_print_template_args): Update.
359 * cli/cli-cmds.c (edit_command): Update.
360 (list_command): Update.
361 (print_sal_location): Update.
362 * coffread.c (patch_opaque_types): Update.
363 (process_coff_symbol): Update.
364 (coff_read_enum_type): Update.
365 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
366 (convert_one_symbol): Update.
367 (hash_symname): Update.
368 (eq_symname): Update.
369 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
370 * compile/compile-cplus-types.c (debug_print_scope): Update.
371 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
372 * compile/compile-object-load.c (get_out_value_type): Update.
373 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
374 (search_symbol_list): Update.
375 (cp_lookup_symbol_imports_or_template): Update.
376 * cp-support.c (overload_list_add_symbol): Update.
377 * ctfread.c (psymtab_to_symtab): Update.
378 * dbxread.c (cp_set_block_scope): Update.
379 * dictionary.c (iter_match_first_hashed): Update.
380 (iter_match_next_hashed): Update.
381 (insert_symbol_hashed): Update.
382 (iter_match_next_linear): Update.
383 * dictionary.h: Update.
384 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
385 (locexpr_describe_location_piece): Update.
386 (locexpr_describe_location_1): Update.
387 (locexpr_generate_c_location): Update.
388 (loclist_describe_location): Update.
389 (loclist_generate_c_location): Update.
390 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
391 (read_func_scope): Update.
392 (process_enumeration_scope): Update.
393 (new_symbol): Update.
394 (dwarf2_const_value): Update.
395 (dwarf2_symbol_mark_computed): Update.
396 * eval.c (evaluate_funcall): Update.
397 (evaluate_subexp_standard): Update.
398 * expprint.c (print_subexp_standard): Update.
399 (dump_subexp_body_standard): Update.
400 * f-valprint.c (info_common_command_for_block): Update.
401 * findvar.c (get_hosting_frame): Update.
402 (default_read_var_value): Update.
403 * go-lang.c (go_symbol_package_name): Update.
404 * guile/scm-block.c (bkscm_print_block_smob): Update.
405 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
406 (gdbscm_symbol_name): Update.
407 (gdbscm_symbol_linkage_name): Update.
408 (gdbscm_symbol_print_name): Update.
409 * infcall.c (get_function_name): Update.
410 * infcmd.c (jump_command): Update.
411 (finish_command): Update.
412 * infrun.c (insert_exception_resume_breakpoint): Update.
413 * linespec.c (canonicalize_linespec): Update.
414 (create_sals_line_offset): Update.
415 (convert_linespec_to_sals): Update.
416 (complete_label): Update.
417 (find_label_symbols_in_block): Update.
418 * m2-typeprint.c (m2_print_typedef): Update.
419 * mdebugread.c (mdebug_reg_to_regnum): Update.
420 (parse_symbol): Update.
421 (mylookup_symbol): Update.
422 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
423 (list_args_or_locals): Update.
424 * objc-lang.c (compare_selectors): Update.
425 (info_selectors_command): Update.
426 (compare_classes): Update.
427 (info_classes_command): Update.
428 (find_imps): Update.
429 * p-typeprint.c (pascal_print_typedef): Update.
430 * printcmd.c (build_address_symbolic): Update.
431 (info_address_command): Update.
432 (print_variable_and_value): Update.
433 * python/py-framefilter.c (extract_sym): Update.
434 (py_print_single_arg): Update.
435 * python/py-symbol.c (sympy_str): Update.
436 (sympy_get_name): Update.
437 (sympy_get_linkage_name): Update.
438 * python/python.c (gdbpy_rbreak): Update.
439 * record-btrace.c (btrace_get_bfun_name): Update.
440 (btrace_call_history): Update.
441 * rust-lang.c (rust_print_typedef): Update.
442 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
443 * stabsread.c (stab_reg_to_regnum): Update.
444 (define_symbol): Update.
445 (read_enum_type): Update.
446 (common_block_end): Update.
447 (cleanup_undefined_types_1): Update.
448 (scan_file_globals): Update.
449 * stack.c (print_frame_arg): Update.
450 (print_frame_args): Update.
451 (find_frame_funname): Update.
452 (info_frame_command_core): Update.
453 (iterate_over_block_locals): Update.
454 (print_block_frame_labels): Update.
455 (do_print_variable_and_value): Update.
456 (iterate_over_block_arg_vars): Update.
457 (return_command): Update.
458 * symmisc.c (dump_symtab_1): Update.
459 (print_symbol): Update.
460 * symtab.c (eq_symbol_entry): Update.
461 (symbol_cache_dump): Update.
462 (lookup_language_this): Update.
463 (find_pc_sect_line): Update.
464 (skip_prologue_sal): Update.
465 (symbol_search::compare_search_syms): Update.
466 (treg_matches_sym_type_name): Update.
467 (search_symbols): Update.
468 (print_symbol_info): Update.
469 (rbreak_command): Update.
470 (completion_list_add_symbol): Update.
471 (find_gnu_ifunc): Update.
472 (get_symbol_address): Update.
473 (search_module_symbols): Update.
474 (info_module_subcommand): Update.
475 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
476 (SYMBOL_LINKAGE_NAME): Remove.
477 (SYMBOL_DEMANGLED_NAME): Remove.
478 (SYMBOL_PRINT_NAME): Remove.
479 (SYMBOL_SEARCH_NAME): Remove.
480 * tracepoint.c (set_traceframe_context): Update.
481 (validate_actionline): Update.
482 (collection_list::collect_symbol): Update.
483 (encode_actions_1): Update.
484 (info_scope_command): Update.
485 (print_one_static_tracepoint_marker): Update.
486 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
487 * valops.c (address_of_variable): Update.
488 (find_overload_match): Update.
489 (find_oload_champ): Update.
490
491 2019-11-22 Christian Biesinger <cbiesinger@google.com>
492
493 * ada-lang.c (ada_lookup_simple_minsym): Update.
494 (ada_collect_symbol_completion_matches): Update.
495 * ada-tasks.c (read_atcb): Update.
496 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
497 (amd64_windows_skip_trampoline_code): Update.
498 * arm-tdep.c (skip_prologue_function): Update.
499 (arm_skip_stack_protector): Update.
500 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
501 (arm_wince_skip_main_prologue): Update.
502 * ax-gdb.c (gen_expr): Update.
503 * block.c (call_site_for_pc): Update.
504 * blockframe.c (find_pc_partial_function): Update.
505 * breakpoint.c (set_breakpoint_location_function): Update.
506 * btrace.c (ftrace_print_function_name): Update.
507 (ftrace_function_switched): Update.
508 * c-valprint.c (print_unpacked_pointer): Update.
509 * coffread.c (coff_symfile_read): Update.
510 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
511 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
512 * dwarf-index-write.c (write_psymbols): Update.
513 * dwarf2loc.c (call_site_to_target_addr): Update.
514 (func_verify_no_selftailcall): Update.
515 (tailcall_dump): Update.
516 (call_site_find_chain_1): Update.
517 (dwarf_expr_reg_to_entry_parameter): Update.
518 * elfread.c (elf_gnu_ifunc_record_cache): Update.
519 * eval.c (evaluate_funcall): Update.
520 (evaluate_subexp_standard): Update.
521 (evaluate_subexp_for_sizeof): Update.
522 * expprint.c (print_subexp_standard): Update.
523 (dump_subexp_body_standard): Update.
524 * frame.c (get_prev_frame_always_1): Update.
525 * frv-tdep.c (frv_skip_main_prologue): Update.
526 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
527 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
528 (gnuv3_get_typename_from_type_info): Update.
529 (gnuv3_skip_trampoline): Update.
530 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
531 * i386-tdep.c (i386_skip_main_prologue): Update.
532 (i386_pe_skip_trampoline_code): Update.
533 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
534 * infcall.c (get_function_name): Update.
535 * linespec.c (minsym_found): Update.
536 * linux-fork.c (info_checkpoints_command): Update.
537 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
538 (m32c_m16c_pointer_to_address): Update.
539 * maint.c (maintenance_translate_address): Update.
540 * minsyms.c (add_minsym_to_hash_table): Update.
541 (add_minsym_to_demangled_hash_table): Update.
542 (lookup_minimal_symbol_mangled): Update.
543 (lookup_minimal_symbol_demangled): Update.
544 (lookup_minimal_symbol_linkage): Update.
545 (lookup_minimal_symbol_text): Update.
546 (lookup_minimal_symbol_by_pc_name): Update.
547 (minimal_symbol_is_less_than): Update.
548 (compact_minimal_symbols): Update.
549 (build_minimal_symbol_hash_tables): Update.
550 (find_solib_trampoline_target): Update.
551 * mips-tdep.c (mips_stub_frame_sniffer): Update.
552 (mips_skip_pic_trampoline_code): Update.
553 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
554 * objc-lang.c (info_selectors_command): Update.
555 (info_classes_command): Update.
556 (find_methods): Update.
557 (find_imps): Update.
558 * p-valprint.c (pascal_val_print): Update.
559 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
560 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
561 * printcmd.c (build_address_symbolic): Update.
562 (info_symbol_command): Update.
563 * psymtab.c (psymbol_name_matches): Update.
564 (match_partial_symbol): Update.
565 (lookup_partial_symbol): Update.
566 (print_partial_symbols): Update.
567 (sort_pst_symbols): Update.
568 (maintenance_check_psymtabs): Update.
569 * python/py-framefilter.c (py_print_frame): Update.
570 * python/python.c (gdbpy_rbreak): Update.
571 * record-btrace.c (btrace_get_bfun_name): Update.
572 (btrace_call_history): Update.
573 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
574 (rs6000_skip_trampoline_code): Update.
575 * sol-thread.c (info_cb): Update.
576 * stabsread.c (scan_file_globals): Update.
577 * stack.c (find_frame_funname): Update.
578 (info_frame_command_core): Update.
579 * symmisc.c (dump_msymbols): Update.
580 * symtab.c (symbol_natural_name): Rename to..,
581 (general_symbol_info::natural_name): ...this.
582 (symbol_demangled_name): Rename to...
583 (general_symbol_info::demangled_name): ...this.
584 (symbol_search_name): Rename to...
585 (general_symbol_info::search_name): ...this.
586 (symbol_matches_search_name): Update.
587 (find_pc_sect_line): Update.
588 (skip_prologue_sal): Update.
589 (search_symbols): Update.
590 (print_msymbol_info): Update.
591 (rbreak_command): Update.
592 (completion_list_add_msymbol): Update.
593 (completion_list_objc_symbol): Update.
594 (get_msymbol_address): Update.
595 * symtab.h (struct general_symbol_info): Add member functions
596 natural_name (), linkage_name (), print_name (), demangled_name (),
597 and search_name ().
598 (SYMBOL_NATURAL_NAME): Update.
599 (symbol_natural_name): Move to a member function on general_symbol_info.
600 (SYMBOL_DEMANGLED_NAME): Update.
601 (symbol_demangled_name): Move to a member function on
602 general_symbol_info.
603 (SYMBOL_SEARCH_NAME): Update.
604 (symbol_search_name): Move to a member function on general_symbol_info.
605 (MSYMBOL_NATURAL_NAME): Remove.
606 (MSYMBOL_LINKAGE_NAME): Remove.
607 (MSYMBOL_PRINT_NAME): Remove.
608 (MSYMBOL_DEMANGLED_NAME): Remove.
609 (MSYMBOL_SEARCH_NAME): Remove.
610 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
611
612 2019-11-22 Christian Biesinger <cbiesinger@google.com>
613
614 * symtab.c (create_demangled_names_hash): Use per_bfd->
615 minimal_symbol_count for computing the initial size, if greater
616 than our default size.
617
618 2019-11-22 Tom de Vries <tdevries@suse.de>
619
620 * contrib/words.sh: Improve words extraction.
621
622 2019-11-22 Tom de Vries <tdevries@suse.de>
623
624 * contrib/words.sh: Combine sed invocations.
625
626 2019-11-21 Christian Biesinger <cbiesinger@google.com>
627
628 * Makefile.in: Update.
629 * demangle.c: Rename to...
630 * gdb-demangle.c: ..this.
631 (is_cplus_marker): Change return type to bool.
632 (_initialize_demangler): Rename to...
633 (_initialize_gdb_demangle): ...this.
634 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
635 * symtab.h (demangle): Remove declaration; instead include
636 gdb-demangle.h.
637
638 2019-11-21 Tom Tromey <tromey@adacore.com>
639
640 * gdbsupport/format.c (format_pieces): Parse %I64d.
641 * unittests/format_pieces-selftests.c (test_windows_formats): New
642 function.
643 (run_tests): Call it.
644
645 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
646
647 Byte reverse display of variables with DW_END_big, DW_END_little
648 (DW_AT_endianity) dwarf attributes if different than the native
649 byte order.
650 * ada-lang.c (ada_value_binop):
651 Use type_byte_order instead of gdbarch_byte_order.
652 * ada-valprint.c (printstr):
653 (ada_val_print_string):
654 * ada-lang.c (value_pointer):
655 (ada_value_binop):
656 Use type_byte_order instead of gdbarch_byte_order.
657 * c-lang.c (c_get_string):
658 Use type_byte_order instead of gdbarch_byte_order.
659 * c-valprint.c (c_val_print_array):
660 Use type_byte_order instead of gdbarch_byte_order.
661 * cp-valprint.c (cp_print_class_member):
662 Use type_byte_order instead of gdbarch_byte_order.
663 * dwarf2loc.c (rw_pieced_value):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * dwarf2read.c (read_base_type): Handle DW_END_big,
666 DW_END_little
667 * f-lang.c (f_get_encoding):
668 Use type_byte_order instead of gdbarch_byte_order.
669 * findvar.c (default_read_var_value):
670 Use type_byte_order instead of gdbarch_byte_order.
671 * gdbtypes.c (check_types_equal):
672 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
673 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
674 and TYPE_ENDIANITY_LITTLE if set.
675 (type_byte_order): new function.
676 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
677 (struct main_type) <flag_endianity_not_default>:
678 New field.
679 (type_byte_order): New function.
680 * infcmd.c (default_print_one_register_info):
681 Use type_byte_order instead of gdbarch_byte_order.
682 * p-lang.c (pascal_printstr):
683 Use type_byte_order instead of gdbarch_byte_order.
684 * p-valprint.c (pascal_val_print):
685 Use type_byte_order instead of gdbarch_byte_order.
686 * printcmd.c (print_scalar_formatted):
687 Use type_byte_order instead of gdbarch_byte_order.
688 * solib-darwin.c (darwin_current_sos):
689 Use type_byte_order instead of gdbarch_byte_order.
690 * solib-svr4.c (solib_svr4_r_ldsomap):
691 Use type_byte_order instead of gdbarch_byte_order.
692 * stap-probe.c (stap_modify_semaphore):
693 Use type_byte_order instead of gdbarch_byte_order.
694 * target-float.c (target_float_same_format_p):
695 Use type_byte_order instead of gdbarch_byte_order.
696 * valarith.c (scalar_binop):
697 (value_bit_index):
698 Use type_byte_order instead of gdbarch_byte_order.
699 * valops.c (value_cast):
700 Use type_byte_order instead of gdbarch_byte_order.
701 * valprint.c (generic_emit_char):
702 (generic_printstr):
703 (val_print_string):
704 Use type_byte_order instead of gdbarch_byte_order.
705 * value.c (unpack_long):
706 (unpack_bits_as_long):
707 (unpack_value_bitfield):
708 (modify_field):
709 (pack_long):
710 (pack_unsigned_long):
711 Use type_byte_order instead of gdbarch_byte_order.
712 * findvar.c (unsigned_pointer_to_address):
713 (signed_pointer_to_address):
714 (unsigned_address_to_pointer):
715 (address_to_signed_pointer):
716 (default_read_var_value):
717 (default_value_from_register):
718 Use type_byte_order instead of gdbarch_byte_order.
719 * gnu-v3-abi.c (gnuv3_make_method_ptr):
720 Use type_byte_order instead of gdbarch_byte_order.
721 * riscv-tdep.c (riscv_print_one_register_info):
722 Use type_byte_order instead of gdbarch_byte_order.
723
724 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
727 (current_ui_gdb_stdin_ptr): Likewise.
728 (current_ui_gdb_stderr_ptr): Likewise.
729 (current_ui_gdb_stdlog_ptr): Likewise.
730 (current_ui_current_uiout_ptr): Likewise.
731 (gen_ret_current_ui_field_ptr): Remove.
732
733 2019-11-21 Tom de Vries <tdevries@suse.de>
734
735 PR gdb/24956
736 * cli/cli-script.c (execute_control_command): Only switch to
737 INTERP_CONSOLE's ui_out when INTERP_MI is active.
738
739 2019-11-19 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
742 Now static. Change type of "name".
743 (tui_set_win_height_command): Don't copy "arg".
744 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
745 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
746
747 2019-11-19 Ali Tamur <tamur@google.com>
748
749 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
750 "if (attr != nullptr)".
751 (dwarf2_find_base_address): Likewise.
752 (dwarf2_build_include_psymtabs): Likewise.
753 (read_cutu_die_from_dwo): Likewise.
754 (read_func_scope): Likewise.
755 (read_call_site_scope): Likewise.
756 (dwarf2_get_pc_bounds): Likewise.
757 (dwarf2_record_block_ranges): Likewise.
758 (dwarf2_add_field): Likewise.
759 (dwarf2_add_member_fn): Likewise.
760 (read_structure_type): Likewise.
761 (read_enumeration_type): Likewise.
762 (read_array_type): Likewise.
763 (read_array_order): Likewise.
764 (read_set_type): Likewise.
765 (read_common_block): Likewise.
766 (read_tag_reference_type): Likewise.
767 (read_tag_string_type): Likewise.
768 (read_subroutine_type): Likewise.
769 (read_base_type): Likewise.
770 (read_subrange_type): Likewise.
771 (new_symbol): Likewise.
772 (prepare_one_comp_unit): Likewise.
773
774 2019-11-19 Tom Tromey <tromey@adacore.com>
775
776 * windows-nat.c (windows_nat_target::attach): Include GetLastError
777 result in error when DebugActiveProcess fails.
778
779 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
780 Pedro Alves <palves@redhat.com>
781
782 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
783 * target.c (target_stack::push): Call 'unpush' if there's a
784 target on top of the stack.
785
786 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
787
788 * python/py-block.c (blpy_dealloc): Call tp_free.
789 (blpy_block_syms_dealloc): Likewise.
790 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
791 * python/py-inferior.c (infpy_dealloc): Likewise.
792 * python/py-lazy-string.c (stpy_dealloc): Likewise.
793 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
794 * python/py-symbol.c (sympy_dealloc): Likewise.
795 * python/py-symtab.c (stpy_dealloc): Likewise.
796 * python/py-type.c (typy_iterator_dealloc): Likewise.
797
798 2019-11-18 Christian Biesinger <cbiesinger@google.com>
799
800 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
801 constructor instead of using a class initializer.
802
803 2019-11-15 Christian Biesinger <cbiesinger@google.com>
804
805 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
806 * configure: Regenerate.
807 * configure.ac: Don't source common.host.
808 * gdbsupport/common.host: Remove.
809 * gdbsupport/mingw-strerror.c: Remove.
810 * gdbsupport/posix-strerror.c: Rename to...
811 * gdbsupport/safe-strerror.c: ...this.
812
813 2019-11-15 Christian Biesinger <cbiesinger@google.com>
814
815 * maint.c (scoped_command_stats::print_time): Use localtime_r
816 instead of localtime (provided through gnulib if necessary).
817 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
818 of ctime.
819
820 2019-11-15 Christian Biesinger <cbiesinger@google.com>
821
822 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
823 avoid compile errors.
824
825 2019-11-15 Christian Biesinger <cbiesinger@google.com>
826
827 * config.in: Regenerate.
828 * configure: Regenerate.
829 * gdbsupport/common.m4: No longer check for strerror_r.
830 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
831 POSIX version of strerror_r, now that gnulib provides it if
832 necessary.
833
834 2019-11-14 Christian Biesinger <cbiesinger@google.com>
835
836 * README (`configure' options): Update.
837
838 2019-11-14 Tom Tromey <tromey@adacore.com>
839
840 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
841 expected type for the RHS if the LHS is a convenience variable.
842
843 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
844
845 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
846 Provide explicit default and copy constructor.
847
848 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
849
850 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
851 only call Py_INCREF (newbp) in the bppy_pending_object case.
852
853 2019-11-13 Tom Tromey <tromey@adacore.com>
854
855 PR build/25182:
856 * psympriv.h (partial_symbol): Remove static assert.
857 * symtab.h (general_symbol_info, symbol): Remove static assert.
858
859 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * gdbsupport/format.c (format_pieces::format_pieces): Support
862 printf 'z' size modifier.
863 * gdbsupport/format.h (enum argclass): Add size_t_arg.
864 * printcmd.c (ui_printf): Handle size_t_arg.
865 * ui-out.c (ui_out::vmessage): Likewise.
866 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
867 function.
868 (run_tests): Call test_format_int_sizes.
869
870 2019-11-12 Christian Biesinger <cbiesinger@google.com>
871
872 * ada-exp.y (write_ambiguous_var): Update.
873 * buildsym.c (add_symbol_to_list): Update.
874 * dwarf2read.c (read_variable): Update.
875 (new_symbol): Update.
876 * jit.c (finalize_symtab): Update.
877 * language.c (language_alloc_type_symbol): Update.
878 * symtab.c (fixup_symbol_section): Update.
879 (initialize_objfile_symbol_1): Move code to...
880 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
881 (allocate_symbol): Update.
882 (allocate_template_symbol): Update.
883 (get_symbol_address): Update.
884 * symtab.h (struct symbol): Inherit from general_symbol_info instead
885 of having as a field, and add a constructor.
886 (SYMBOL_VALUE): Update.
887 (SYMBOL_VALUE_ADDRESS): Update.
888 (SET_SYMBOL_VALUE_ADDRESS): Update.
889 (SYMBOL_VALUE_BYTES): Update.
890 (SYMBOL_VALUE_COMMON_BLOCK): Update.
891 (SYMBOL_BLOCK_VALUE): Update.
892 (SYMBOL_VALUE_CHAIN): Update.
893 (SYMBOL_LANGUAGE): Update.
894 (SYMBOL_SECTION): Update.
895 (SYMBOL_OBJ_SECTION): Update.
896 (SYMBOL_SET_LANGUAGE): Update.
897 (SYMBOL_SET_LINKAGE_NAME): Update.
898 (SYMBOL_SET_NAMES): Update.
899 (SYMBOL_NATURAL_NAME): Update.
900 (SYMBOL_LINKAGE_NAME): Update.
901 (SYMBOL_DEMANGLED_NAME): Update.
902 (SYMBOL_SEARCH_NAME): Update.
903 (SYMBOL_MATCHES_SEARCH_NAME): Update.
904 (struct symbol): Update.
905 (struct template_symbol): Update.
906 (struct rust_vtable_symbol): Update.
907 * xcoffread.c (SYMBOL_DUP): Update.
908
909 2019-11-12 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-layout.c (show_layout): Set current_layout.
912 (show_source_disasm_command, show_data)
913 (show_source_or_disasm_and_command): Don't set current_layout.
914
915 2019-11-12 Tom Tromey <tom@tromey.com>
916
917 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
918
919 2019-11-12 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-win.c (resize_message): New global.
922 (show_tui_resize_message): New function.
923 (tui_async_resize_screen): Print message if requested.
924 (_initialize_tui_win): Add tui-resize-message setting.
925 * NEWS: Add entry for new commands.
926
927 2019-11-11 Tom Tromey <tom@tromey.com>
928
929 * tui/tui.c (tui_initialize_readline): Add new bindable readline
930 functions.
931
932 2019-11-11 Christian Biesinger <cbiesinger@google.com>
933
934 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
935
936 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
939 function.
940 * python/python-internal.h (gdbpy_lookup_static_symbols):
941 Declare new function.
942 * python/python.c (python_GdbMethods): Add
943 gdb.lookup_static_symbols method.
944 * NEWS: Mention gdb.lookup_static_symbols.
945
946 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
949 static block of current object file first. Also fix typo in
950 header comment.
951
952 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * stack.c (set_last_displayed_sal): Delete.
955 (last_displayed_sal_valid): Delete.
956 (last_displayed_pspace): Delete.
957 (last_displayed_addr): Delete.
958 (last_displayed_symtab): Delete.
959 (last_displayed_line): Delete.
960 (class last_displayed_symtab_info_type): New.
961 (last_displayed_symtab_info): New static global variable.
962 (print_frame_info): Call methods on last_displayed_symtab_info.
963 (clear_last_displayed_sal): Update header comment, and make use of
964 last_displayed_symtab_info.
965 (last_displayed_sal_is_valid): Likewise.
966 (get_last_displayed_pspace): Likewise.
967 (get_last_displayed_addr): Likewise.
968 (get_last_displayed_symtab): Likewise.
969 (get_last_displayed_line): Likewise.
970 (get_last_displayed_sal): Likewise.
971 * stack.h (clear_last_displayed_sal): Update header comment.
972 (last_displayed_sal_is_valid): Likewise.
973 (get_last_displayed_pspace): Likewise.
974 (get_last_displayed_addr): Likewise.
975 (get_last_displayed_symtab): Likewise.
976 (get_last_displayed_line): Likewise.
977 (get_last_displayed_sal): Likewise.
978
979 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * stack.c (frame_show_address): Convert return type to bool.
982 * stack.h (frame_show_address): Likewise, and update header
983 comment.
984
985 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
988 * unittests/vec-utils-selftests.c: New file.
989 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
990
991 2019-11-10 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
994 (tui_highlight_win): Likewise.
995 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
996 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
997 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
998 Don't set can_highlight.
999
1000 2019-11-10 Tom Tromey <tom@tromey.com>
1001
1002 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1003 Remove unused declaration.
1004
1005 2019-11-08 Tom Tromey <tromey@adacore.com>
1006
1007 * top.c (read_command_file): Update.
1008 (command_line_input): Make return type const.
1009 * python/py-gdb-readline.c: Update.
1010 * linespec.c (decode_line_2): Update.
1011 * defs.h (command_line_input): Make return type const.
1012 * cli/cli-script.c (read_next_line): Make return type const.
1013 * ada-lang.c (get_selections): Update.
1014
1015 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1016
1017 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1018 * mi/mi-main.c (output_cores): Likewise.
1019 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1020 (linux_xfer_osdata_modules): Likewise.
1021 * remote.c (register_remote_support_xml): Likewise.
1022 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1023 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1024
1025 2019-11-06 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-interp.c: Don't include readline.h.
1028 * tui/tui-hooks.c: Don't include readline.h.
1029 * symmisc.c: Include tilde.h, not readline.h.
1030 * symfile.c: Include tilde.h, not readline.h.
1031 * source.c: Include tilde.h, not readline.h.
1032 * solib.c: Include tilde.h, not readline.h.
1033 * psymtab.c: Include tilde.h, not readline.h.
1034 * exec.c: Include tilde.h, not readline.h.
1035 * corelow.c: Include tilde.h, not readline.h.
1036 * cli/cli-dump.c: Include tilde.h, not readline.h.
1037 * cli/cli-cmds.c: Don't include readline.h.
1038
1039 2019-11-05 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1042 (tui_disassemble): Set addr_size.
1043 (tui_disasm_window::set_contents): Use addr_size.
1044
1045 2019-11-05 Tom Tromey <tom@tromey.com>
1046
1047 * rust-lang.c (rust_language_defn): Update.
1048 * python/py-value.c (valpy_string): Call c_get_string.
1049 * p-lang.c (pascal_language_defn): Update.
1050 * opencl-lang.c (opencl_language_defn): Update.
1051 * objc-lang.c (objc_language_defn): Update.
1052 * m2-lang.c (m2_language_defn): Update.
1053 * language.c (unknown_language_defn, auto_language_defn): Update.
1054 (default_get_string): Remove.
1055 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1056 * go-lang.c (go_language_defn): Update.
1057 * f-lang.c (f_language_defn): Update.
1058 * d-lang.c (d_language_defn): Update.
1059 * c-lang.c (c_language_defn, cplus_language_defn)
1060 (asm_language_defn, minimal_language_defn): Update.
1061 * ada-lang.c (ada_language_defn): Update.
1062 * language.h (struct language_defn) <la_get_string>: Remove.
1063 (LA_GET_STRING): Remove.
1064 (default_get_string): Don't declare.
1065
1066 2019-11-05 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-source.h (struct tui_source_window): Inline
1069 constructor. Remove destructor.
1070 <style_changed, m_observable>: Move to superclass.
1071 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1072 (struct tui_source_window_base): Move private members to end.
1073 <style_changed, m_observable>: Move from tui_source_window.
1074 * tui/tui-winsource.c (tui_copy_source_line): Move from
1075 tui-source.c. Rename from copy_source_line. Add special handling
1076 for negative line number.
1077 (tui_source_window_base::style_changed): Move from
1078 tui_source_window.
1079 (tui_source_window_base): Register observer.
1080 (~tui_source_window_base): New.
1081 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1082 rename.
1083 (tui_source_window::set_contents): Use tui_copy_source_line.
1084 (tui_source_window::tui_source_window): Move to tui-source.h.
1085 (tui_source_window::~tui_source_window): Remove.
1086 (tui_source_window::style_changed): Move to superclass.
1087 * tui/tui-disasm.c (tui_disassemble): Create string file with
1088 styling, when possible. Add "addr_size" parameter.
1089 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1090 Don't compute maximum size.
1091 (len_without_escapes): New function
1092
1093 2019-11-05 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1096 std::string.
1097 * tui/tui-winsource.c (tui_show_source_line): Update.
1098 * tui/tui-source.c (tui_source_window::set_contents): Update.
1099 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1100
1101 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1102
1103 * symtab.h (gdb_static_assert): Put && operator at the beginning
1104 of the line instead of the end.
1105
1106 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1107
1108 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1109 and sizeof (symbol).
1110 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1111
1112 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1113
1114 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1115 * configure.host: Mark *-*-solaris2.10* obsolete.
1116 * configure.tgt: Mark Solaris < 11 obsolete.
1117 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1118 Update target triplet.
1119
1120 2019-11-01 Tom Tromey <tromey@adacore.com>
1121
1122 * utils.c (print_sys_errmsg): Simplify.
1123
1124 2019-11-01 Tom Tromey <tromey@adacore.com>
1125
1126 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1127
1128 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1129
1130 * configure: Regenerate.
1131 * configure.ac: Remove check for strerror_r.
1132 * gdbsupport/common.m4: Check for strerror_r.
1133
1134 2019-11-01 Luis Machado <luis.machado@linaro.org>
1135
1136 PR gdb/25124
1137
1138 * arm-tdep.c (arm_per_objfile): Rename to ...
1139 (arm_per_bfd): ... this.
1140 (arm_objfile_data_key): Rename to ...
1141 (arm_bfd_data_key): ... this.
1142 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1143 data.
1144 (arm_record_special_symbol): Likewise.
1145
1146 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1149 end.
1150 * c-typeprint.c (c_print_typedef): Likewise.
1151 * f-typeprint.c (f_print_typedef): Likewise.
1152 * m2-typeprint.c (m2_print_typedef): Likewise.
1153 * p-typeprint.c (pascal_print_typedef): Likewise.
1154 * rust-lang.c (rust_print_typedef): Likewise.
1155 * symtab.c (print_symbol_info): Print a newline after calling
1156 typedef_print.
1157
1158 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * symtab.c (info_module_cmdlist): New variable.
1161 (info_module_command): New function.
1162 (search_module_symbols): New function.
1163 (info_module_subcommand): New function.
1164 (struct info_modules_var_func_options): New struct.
1165 (info_modules_var_func_options_defs): New variable.
1166 (make_info_modules_var_func_options_def_group): New function.
1167 (info_module_functions_command): New function.
1168 (info_module_variables_command): New function.
1169 (info_module_var_func_command_completer): New function.
1170 (_initialize_symtab): Register new 'info module functions' and
1171 'info module variables' commands.
1172 * symtab.h (typedef symbol_search_in_module): New typedef.
1173 (search_module_symbols): Declare new function.
1174 * NEWS: Mention new commands.
1175
1176 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1179 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1180 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1181 MODULES_DOMAIN.
1182 (scan_partial_symbols): Only create partial module symbols for non
1183 declarations.
1184 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1185 and MODULES_DOMAIN.
1186 * symtab.c (search_domain_name): Likewise.
1187 (search_symbols): Likewise.
1188 (print_symbol_info): Likewise.
1189 (symtab_symbol_info): Likewise.
1190 (info_modules_command): New function.
1191 (_initialize_symtab): Register 'info modules' command.
1192 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1193 * NEWS: Mention new 'info modules' command.
1194
1195 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1196
1197 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1198 and $_gdb_maint_setting_str.
1199
1200 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1201
1202 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1203 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1204 (str_value_from_setting, gdb_setting_str_internal_fn)
1205 (gdb_maint_setting_str_internal_fn): New functions.
1206 (_initialize_cli_cmds): Define the new convenience functions.
1207 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1208 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1209
1210 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1211
1212 * agent.c (set_can_use_agent): When the setting is turned on,
1213 look up agent symbols if we don't have them yet.
1214 (agent_new_objfile): Don't look up agent symbols when the agent
1215 setting is off.
1216
1217 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1218
1219 * config.in: Regenerate.
1220
1221 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1222
1223 * configure: Regenerate.
1224 * configure.ac: Check for strerror_r.
1225 * gdbsupport/common-utils.h (safe_strerror): Change return value
1226 to const char * and document that this function is now threadsafe.
1227 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1228 thread_local and call strerror_r, if available.
1229 * utils.c (perror_string): Update.
1230 (print_sys_errmsg): Update.
1231
1232 2019-10-31 Luis Machado <luis.machado@linaro.org>
1233
1234 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1235 objfile_key.
1236 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1237 objfile to fetch per-bfd data.
1238 (arm_find_exidx_entry): Likewise.
1239
1240 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1241
1242 * gdbsupport/agent.c (debug_agent): Change type to bool.
1243 (use_agent): Likewise.
1244 (all_agent_symbols_look_up): Likewise.
1245 (agent_loaded_p): Change return value to bool.
1246 (agent_look_up_symbols): Update.
1247 (agent_capability_check): Change return value to bool.
1248 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1249 (debug_agent): Change type to bool.
1250 (use_agent): Likewise.
1251 (agent_capability_check): Change return value to bool.
1252
1253 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1254
1255 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1256 (build_minimal_symbol_hash_tables): Code to clear the table moved
1257 to clear_minimal_symbol_hash_tables.
1258 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1259 when needed.
1260
1261 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1262
1263 * infcmd.c: Remove includes.
1264 * infrun.c: Remove includes.
1265
1266 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1269 (grow_vect): Remove declaration.
1270 (ada_type_of_array): Remove declaration.
1271 (ada_update_initial_language): Remove declaration.
1272 (ada_fold_name): Remove declaration.
1273 (ada_fill_in_ada_prototype): Remove declaration.
1274 (user_select_syms): Remove declaration.
1275 (get_selections): Remove declaration.
1276 (ada_tag_type): Remove declaration.
1277 (ada_value_tag): Remove declaration.
1278 (ada_is_others_clause): Remove declaration.
1279 (ada_in_variant): Remove declaration.
1280 (ada_value_struct_elt): Remove declaration.
1281 (ada_attribute_name): Remove declaration.
1282 (ada_system_address_type): Remove declaration.
1283 * ada-lang.c (ada_watch_location_expression): Make static.
1284 (GROW_VECT): Move here from ada-lang.h.
1285 (grow_vect): Make static.
1286 (ada_update_initial_language): Make static.
1287 (ada_fold_name): Make static.
1288 (ada_type_of_array): Make static.
1289 (encoded_ordered_before): Move up.
1290 (sort_choices): Move up.
1291 (print_signatures): Move up.
1292 (ada_print_symbol_signature): Move up.
1293 (get_selections): Move up and make static.
1294 (user_select_syms): Move up and make static.
1295 (ada_value_struct_elt): Move up and make static.
1296 (ada_tag_type): Make static.
1297 (ada_value_tag): Make static.
1298 (ada_is_others_clause): Make static.
1299 (ada_in_variant): Make static.
1300 (ada_attribute_name): Make static.
1301
1302 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * ada-lang.c: Remove includes.
1305 * ada-typeprint.c: Remove includes.
1306 * ada-valprint.c: Remove includes.
1307
1308 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1309
1310 * addrmap.c: Add static assertions of type size, moved from
1311 _initialize_addrmap.
1312 (_initialize_addrmap): Remove.
1313
1314 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1315
1316 * coffread.c (record_minimal_symbol): Update.
1317 (process_coff_symbol): Update.
1318 * dbxread.c (read_dbx_symtab): Update.
1319 * dwarf2read.c (add_partial_symbol): Update.
1320 (fixup_go_packaging): Update.
1321 (load_partial_dies): Update.
1322 (new_symbol): Update.
1323 * elfread.c (record_minimal_symbol): Change signature to use
1324 gdb::string_view instead of name+len.
1325 (elf_symtab_read): Update.
1326 (elf_rel_plt_read): Update.
1327 * mdebugread.c (parse_partial_symbols): Update.
1328 (handle_psymbol_enumerators): Update.
1329 (new_symbol): Update.
1330 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1331 to use gdb::string_view instead of name+len.
1332 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1333 * psympriv.h (add_psymbol_to_list): Likewise.
1334 * psymtab.c (add_psymbol_to_bcache): Likewise.
1335 (add_psymbol_to_list): Likewise.
1336 * stabsread.c (define_symbol): Update.
1337 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1338 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1339 (symbol_set_names): Likewise.
1340 * xcoffread.c (scan_xcoff_symtab): Update.
1341
1342 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1343
1344 * symtab.h (symbol_set_names): Document that copy_name must be
1345 set to true for non-nullterminated strings.
1346 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1347 linkage_name if the entry was not found and we need to demangle.
1348
1349 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1350
1351 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1352 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1353 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1354 * gdbsupport/gdb_binary_search.h: New file.
1355
1356 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1357
1358 * NEWS: Mention new --with-system-gdbinit-dir option.
1359 * config.in: Regenerate.
1360 * configure: Regenerate.
1361 * configure.ac: Add new option --with-system-gdbinit-dir.
1362 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1363 for a ".gdb" suffix.
1364 * main.c (get_init_files): Change system_gdbinit argument to
1365 a vector and return the files in SYSTEM_GDBINIT_DIR in
1366 addition to SYSTEM_GDBINIT.
1367 (captured_main_1): Update.
1368 (print_gdb_help): Update.
1369 * top.c (print_gdb_configuration): Also print the value of
1370 SYSTEM_GDBINIT_DIR.
1371
1372 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1373
1374 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1375 that takes gdb::string_view arguments.
1376
1377 2019-10-26 Tom de Vries <tdevries@suse.de>
1378
1379 * aarch64-linux-tdep.c: Fix typos in comments.
1380 * aarch64-tdep.c: Same.
1381 * ada-lang.c: Same.
1382 * amd64-nat.c: Same.
1383 * arc-tdep.c: Same.
1384 * arch/aarch64-insn.c: Same.
1385 * block.c: Same.
1386 * breakpoint.h: Same.
1387 * btrace.h: Same.
1388 * c-varobj.c: Same.
1389 * cli/cli-decode.c: Same.
1390 * cli/cli-script.c: Same.
1391 * cli/cli-utils.h: Same.
1392 * coff-pe-read.c: Same.
1393 * coffread.c: Same.
1394 * compile/compile-cplus-symbols.c: Same.
1395 * compile/compile-object-run.c: Same.
1396 * completer.c: Same.
1397 * corelow.c: Same.
1398 * cp-support.c: Same.
1399 * demangle.c: Same.
1400 * dwarf-index-write.c: Same.
1401 * dwarf2-frame.c: Same.
1402 * dwarf2-frame.h: Same.
1403 * eval.c: Same.
1404 * frame-base.h: Same.
1405 * frame.h: Same.
1406 * gdbcmd.h: Same.
1407 * gdbtypes.h: Same.
1408 * gnu-nat.c: Same.
1409 * guile/scm-objfile.c: Same.
1410 * i386-tdep.c: Same.
1411 * i386-tdep.h: Same.
1412 * infcall.c: Same.
1413 * infcall.h: Same.
1414 * linux-nat.c: Same.
1415 * m68k-tdep.c: Same.
1416 * macroexp.c: Same.
1417 * memattr.c: Same.
1418 * mi/mi-cmd-disas.c: Same.
1419 * mi/mi-getopt.h: Same.
1420 * mi/mi-main.c: Same.
1421 * minsyms.c: Same.
1422 * nat/aarch64-sve-linux-sigcontext.h: Same.
1423 * objfiles.h: Same.
1424 * ppc-linux-nat.c: Same.
1425 * ppc-linux-tdep.c: Same.
1426 * ppc-tdep.h: Same.
1427 * progspace.h: Same.
1428 * prologue-value.h: Same.
1429 * python/py-evtregistry.c: Same.
1430 * python/py-instruction.h: Same.
1431 * record-btrace.c: Same.
1432 * record-full.c: Same.
1433 * remote.c: Same.
1434 * rs6000-tdep.c: Same.
1435 * ser-tcp.c: Same.
1436 * sol-thread.c: Same.
1437 * sparc-sol2-tdep.c: Same.
1438 * sparc64-tdep.c: Same.
1439 * stabsread.c: Same.
1440 * symfile.c: Same.
1441 * symtab.h: Same.
1442 * target.c: Same.
1443 * tracepoint.c: Same.
1444 * tui/tui-data.h: Same.
1445 * tui/tui-io.c: Same.
1446 * tui/tui-win.c: Same.
1447 * tui/tui.c: Same.
1448 * unittests/rsp-low-selftests.c: Same.
1449 * user-regs.h: Same.
1450 * utils.c: Same.
1451 * utils.h: Same.
1452 * valarith.c: Same.
1453 * valops.c: Same.
1454 * valprint.c: Same.
1455 * valprint.h: Same.
1456 * value.c: Same.
1457 * value.h: Same.
1458 * varobj.c: Same.
1459 * x86-nat.h: Same.
1460 * xtensa-tdep.c: Same.
1461
1462 2019-10-25 Ali Tamur <tamur@google.com>
1463
1464 * charset.c (find_charset_names): Reflect API change.
1465
1466 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1467
1468 * symtab.c (struct demangled_name_entry): Change demangled name
1469 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1470 part of the struct anymore.
1471 (symbol_set_names): No longer obstack allocate + copy the demangled
1472 name, just store the allocated name from bfd.
1473
1474 2019-10-25 Tom Tromey <tromey@adacore.com>
1475
1476 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1477 (bsearch_cie_cmp, add_cie): Remove.
1478 (find_cie): Reimplement.
1479 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1480 (dwarf2_build_frame_info): Update.
1481
1482 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1483
1484 PR gdb/25126
1485 * symfile.c (reread_symbols): Call forget_cached_source_info to
1486 clear the stale source cache.
1487
1488 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1489
1490 * configure: Regenerate.
1491 * configure.ac: Remove code that sets python_has_threads.
1492
1493 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1494
1495 * config.in: Regenerate.
1496 * configure: Regenerate.
1497 * configure.ac: Remove the code that uses sed to get the python
1498 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1499
1500 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1503 error paths.
1504
1505 2019-10-23 Tom Tromey <tom@tromey.com>
1506
1507 * arc-tdep.c: Remove ".." from include.
1508 * frv-tdep.c: Remove ".." from include.
1509 * lm32-tdep.c: Remove ".." from include.
1510 * microblaze-tdep.c: Remove ".." from include.
1511 * or1k-tdep.h: Remove ".." from include.
1512 * s12z-tdep.c: Remove ".." from include.
1513 * Makefile.in (OPCODES_CFLAGS): Add comment.
1514 (TOP_CFLAGS): New variable.
1515 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1516
1517 2019-10-23 Tom Tromey <tom@tromey.com>
1518
1519 * Makefile.in (READLINE_DIR): Update.
1520
1521 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1522
1523 * infcall.c (call_function_by_hand_dummy): Fix the function
1524 comment. And extract out a code section into...
1525 (reserve_stack_space): ...this new function.
1526
1527 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1528
1529 * infcall.c (value_arg_coerce): Remove an unused parameter.
1530 (call_function_by_hand_dummy): Update the call to
1531 'value_arg_coerce'.
1532
1533 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 * infcall.c (call_function_by_hand_dummy): Refactor.
1536
1537 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1538
1539 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1540
1541 2019-10-23 Tom Tromey <tom@tromey.com>
1542
1543 * configure: Rebuild.
1544 * configure.ac: Don't check for sigprocmask.
1545 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1546
1547 2019-10-23 Tom Tromey <tom@tromey.com>
1548
1549 * configure: Rebuild.
1550 * acinclude.m4: Use m4_include, not sinclude.
1551
1552 2019-10-23 Tom de Vries <tdevries@suse.de>
1553
1554 PR breakpoints/24687
1555 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1556
1557 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1558
1559 * symtab.c (struct demangled_name_entry) <language>: Change from
1560 bitfield to regular variable.
1561
1562 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1563
1564 * symtab.c (struct demangled_name_entry): Add a constructor.
1565 (free_demangled_name_entry): New function to call the destructor
1566 for demangled_name_entry.
1567 (create_demangled_names_hash): Pass free_demangled_name_entry to
1568 htab_create_alloc.
1569 (symbol_set_names): Call placement new for demangled_name_entry.
1570 * utils.c: No longer include xxhash.h here, now that fast_hash
1571 is inlined in the header.
1572 * utils.h: Instead, include it here.
1573
1574 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1575
1576 * Makefile.in: Link with libxxhash.
1577 * config.in: Regenerate.
1578 * configure: Regenerate.
1579 * configure.ac: Search for libxxhash.
1580 * utils.c (fast_hash): Use xxhash if present.
1581
1582 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1583
1584 * utils.h (fast_hash): New function.
1585 * symtab.c (hash_demangled_name_entry): Call new function
1586 fast_hash.
1587
1588 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1589
1590 * symtab.c (struct demangled_name_entry): Change type of mangled
1591 to gdb::string_view. Also adds a constructor that takes the
1592 mangled name.
1593 (hash_demangled_name_entry): Update.
1594 (eq_demangled_name_entry): Update.
1595 (free_demangled_name_entry): New function to call the destructor
1596 now that this is not a POD anymore.
1597 (create_demangled_names_hash): Pass free_demangled_name_entry to
1598 htab_create_alloc.
1599 (symbol_set_names): Update.
1600
1601 2019-10-21 Ali Tamur <tamu@google.com>
1602
1603 * dwarf2read.c (dir_index): Change type.
1604 (file_name_index): Likewise.
1605 (line_header::include_dir_at): Change comment and implementation on
1606 whether it is DWARF 5.
1607 (line_header::is_valid_file_index): New function.
1608 (line_header::file_name_at): Change comment and implementation on
1609 whether it is DWARF 5.
1610 (line_header::file_names): Change to private field renamed as
1611 m_file_names and introduce a new accessor method.
1612 (line_header::file_names_size): New method.
1613 (line_header::include_dirs): Change to private field and rename as
1614 m_include_dirs.
1615 (dw2_get_file_names_reader): Define local var at a smaller scope and
1616 reflect API change.
1617 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1618 (process_structure_scope): Likewise.
1619 (line_header::add_include_dir): Change message and reflect renaming.
1620 (line_header::add_file_name): Likewise.
1621 (read_formatted_entries): Handle DW_FORM_data16.
1622 (dwarf_decode_line_header): Fix line header length calculation.
1623 (psymtab_include_file_name): Change comment and API.
1624 (lnp_state_machine::m_file): Update comment and reflect type change.
1625 (lnp_state_machine::record_line): Reflect type change.
1626 (dwarf_decode_lines): Reflect API change.
1627 (file_file_name): Likewise.
1628 (file_full_name): Likewise.
1629
1630 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1631
1632 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1633
1634 2019-10-21 Tom Tromey <tom@tromey.com>
1635
1636 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1637
1638 2019-10-21 Tom Tromey <tom@tromey.com>
1639
1640 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1641 NM_H. Use AC_CONFIG_LINKS.
1642 * configure: Rebuild.
1643 * Makefile.in (NM_H): New variable.
1644 (generated_files): Add NM_H. Remove gcore.
1645 (nm.h, stamp-nmh): New targets.
1646
1647 2019-10-20 Tom Tromey <tom@tromey.com>
1648
1649 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1650 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1651 obsolete comment.
1652 (put_objfile_before): Now static.
1653
1654 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 * gdbsupport/common-utils.h (startswith): Change return type to
1657 bool.
1658
1659 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1660
1661 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1662 * breakpoint.c (bp_locations_compare): Rename to...
1663 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1664 (update_global_location_list): Use std::sort instead of qsort.
1665 * buildsym.c (compare_line_numbers): Rename to...
1666 (lte_is_less_than): ...this, and change to std::sort semantics.
1667 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1668 instead of qsort.
1669 * disasm.c (compare_lines): Rename to...
1670 (line_is_less_than): ...this, and change to std::sort semantics.
1671 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1672 of qsort.
1673 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1674 (fde_is_less_than): ...this, and change to std::sort semantics.
1675 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1676 * mdebugread.c (compare_blocks):
1677 (block_is_less_than): ...this, and change to std::sort semantics.
1678 (sort_blocks): Call std::sort instead of qsort.
1679 * objfiles.c (qsort_cmp): Rename to...
1680 (sort_cmp): ...this, and change to std::sort semantics.
1681 (update_section_map): Call std::sort instead of qsort.
1682 * remote.c (compare_pnums): Remove.
1683 (map_regcache_remote_table): Call std::sort instead of qsort.
1684 * utils.c (compare_positive_ints): Remove.
1685 * utils.h (compare_positive_ints): Remove.
1686 * xcoffread.c (compare_lte): Remove.
1687 (arrange_linetable): Call std::sort instead of qsort.
1688
1689 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1690
1691 * symfile.c (init_entry_point_info): Fix typo.
1692 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1693
1694 2019-10-18 Tom de Vries <tdevries@suse.de>
1695
1696 * aarch64-tdep.c: Fix typos in comments.
1697 * ada-lang.c: Same.
1698 * ada-tasks.c: Same.
1699 * alpha-tdep.c: Same.
1700 * alpha-tdep.h: Same.
1701 * amd64-nat.c: Same.
1702 * amd64-windows-tdep.c: Same.
1703 * arc-tdep.c: Same.
1704 * arc-tdep.h: Same.
1705 * arch-utils.c: Same.
1706 * arm-nbsd-tdep.c: Same.
1707 * arm-tdep.c: Same.
1708 * ax-gdb.c: Same.
1709 * blockframe.c: Same.
1710 * btrace.c: Same.
1711 * c-varobj.c: Same.
1712 * coff-pe-read.c: Same.
1713 * coffread.c: Same.
1714 * cris-tdep.c: Same.
1715 * darwin-nat.c: Same.
1716 * dbxread.c: Same.
1717 * dcache.c: Same.
1718 * disasm.c: Same.
1719 * dtrace-probe.c: Same.
1720 * dwarf-index-write.c: Same.
1721 * dwarf2-frame-tailcall.c: Same.
1722 * dwarf2-frame.c: Same.
1723 * dwarf2read.c: Same.
1724 * eval.c: Same.
1725 * exceptions.c: Same.
1726 * fbsd-tdep.c: Same.
1727 * findvar.c: Same.
1728 * frame.c: Same.
1729 * frv-tdep.c: Same.
1730 * gnu-v3-abi.c: Same.
1731 * go32-nat.c: Same.
1732 * h8300-tdep.c: Same.
1733 * hppa-tdep.c: Same.
1734 * i386-linux-tdep.c: Same.
1735 * i386-tdep.c: Same.
1736 * ia64-libunwind-tdep.c: Same.
1737 * ia64-tdep.c: Same.
1738 * infcmd.c: Same.
1739 * infrun.c: Same.
1740 * linespec.c: Same.
1741 * linux-nat.c: Same.
1742 * linux-thread-db.c: Same.
1743 * machoread.c: Same.
1744 * mdebugread.c: Same.
1745 * mep-tdep.c: Same.
1746 * mn10300-tdep.c: Same.
1747 * namespace.c: Same.
1748 * objfiles.c: Same.
1749 * opencl-lang.c: Same.
1750 * or1k-tdep.c: Same.
1751 * osabi.c: Same.
1752 * ppc-linux-nat.c: Same.
1753 * ppc-linux-tdep.c: Same.
1754 * ppc-sysv-tdep.c: Same.
1755 * printcmd.c: Same.
1756 * procfs.c: Same.
1757 * record-btrace.c: Same.
1758 * record-full.c: Same.
1759 * remote-fileio.c: Same.
1760 * remote.c: Same.
1761 * rs6000-tdep.c: Same.
1762 * s12z-tdep.c: Same.
1763 * score-tdep.c: Same.
1764 * ser-base.c: Same.
1765 * ser-go32.c: Same.
1766 * skip.c: Same.
1767 * sol-thread.c: Same.
1768 * solib-svr4.c: Same.
1769 * solib.c: Same.
1770 * source.c: Same.
1771 * sparc-nat.c: Same.
1772 * sparc-sol2-tdep.c: Same.
1773 * sparc-tdep.c: Same.
1774 * sparc64-tdep.c: Same.
1775 * stabsread.c: Same.
1776 * stack.c: Same.
1777 * symfile.c: Same.
1778 * symtab.c: Same.
1779 * target-descriptions.c: Same.
1780 * target-float.c: Same.
1781 * thread.c: Same.
1782 * utils.c: Same.
1783 * valops.c: Same.
1784 * valprint.c: Same.
1785 * value.c: Same.
1786 * varobj.c: Same.
1787 * windows-nat.c: Same.
1788 * xcoffread.c: Same.
1789 * xstormy16-tdep.c: Same.
1790 * xtensa-tdep.c: Same.
1791
1792 2019-10-17 Tom Tromey <tromey@adacore.com>
1793
1794 * configure: Rebuild.
1795 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1796 in AC_CONFIG_FILES invocation.
1797 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1798 new-style config.status invocation.
1799
1800 2019-10-17 Tom de Vries <tdevries@suse.de>
1801
1802 * arm-nbsd-nat.c: Fix typos in comments.
1803 * arm-tdep.c: Same.
1804 * darwin-nat-info.c: Same.
1805 * dwarf2read.c: Same.
1806 * elfread.c: Same.
1807 * event-top.c: Same.
1808 * findvar.c: Same.
1809 * gdbtypes.c: Same.
1810 * hppa-tdep.c: Same.
1811 * i386-tdep.c: Same.
1812 * jit.c: Same.
1813 * main.c: Same.
1814 * mdebugread.c: Same.
1815 * moxie-tdep.c: Same.
1816 * nto-procfs.c: Same.
1817 * osabi.c: Same.
1818 * ppc-linux-tdep.c: Same.
1819 * remote.c: Same.
1820 * riscv-tdep.c: Same.
1821 * s390-tdep.c: Same.
1822 * sh-tdep.c: Same.
1823 * sparc-linux-tdep.c: Same.
1824 * sparc-nat.c: Same.
1825 * stack.c: Same.
1826 * target-descriptions.c: Same.
1827 * top.c: Same.
1828 * varobj.c: Same.
1829
1830 2019-10-16 Tom Tromey <tom@tromey.com>
1831
1832 * objfiles.h (struct objfile) <original_name>: Now const.
1833
1834 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1835
1836 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1837 pass on to sigsetjmp's second argument.
1838 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1839
1840 2019-10-16 Keith Seitz <keiths@redhat.com>
1841
1842 PR gdb/23567
1843 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1844 sections whose size is greater than the file size.
1845
1846 2019-10-16 Jim Wilson <jimw@sifive.com>
1847
1848 * riscv-tdep.c (riscv_gcc_target_options): New.
1849 (riscv_gnu_triplet_regexp): New.
1850 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1851 set_gdbarch_gnu_triplet_regexp.
1852
1853 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1854
1855 * Makefile.in: Add xml-builtin.h.
1856 * features/feature_to_c.sh: Add an include for xml-builtin.h
1857 to ensure that the compiler checks that the types match.
1858 * xml-builtin.h: New file.
1859 * xml-support.c (fetch_xml_builtin): Add missing const.
1860 * xml-support.h: Remove declaration of xml_builtins.
1861
1862 2019-10-16 Tom de Vries <tdevries@suse.de>
1863
1864 PR tdep/25096
1865 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1866 (amd64_classify_aggregate): ... here.
1867 (amd64_classify_aggregate_field): Handled fiels of nested structs
1868 recursively.
1869
1870 2019-10-16 Tom de Vries <tdevries@suse.de>
1871
1872 PR tdep/24104
1873 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1874 that handles 'theclass'.
1875
1876 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * linespec.c (decode_digits_ordinary): Update comment.
1879 * make-target-delegates: No longer need to handle VEC case.
1880 * memrange.c (normalize_mem_ranges): Update comment.
1881 * namespace.c (add_using_directive): Update comment.
1882 * objc-lang.c (uniquify_strings): Update comment.
1883 * ppc-linux-nat.c (struct thread_points): Update comment.
1884 * probe.h (find_probes_in_objfile): Update comment.
1885 * target.h (enum flash_preserve_mode): Update comment.
1886 * varobj.c (varobj_restrict_range): Update comment.
1887 * varobj.h (varobj_list_children): Update comment.
1888
1889 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * Makefile.in: Remove references to vec.h and vec.c.
1892 * aarch64-tdep.c: No longer include vec.h.
1893 * ada-lang.c: Likewise.
1894 * ada-lang.h: Likewise.
1895 * arm-tdep.c: Likewise.
1896 * ax.h: Likewise.
1897 * breakpoint.h: Likewise.
1898 * charset.c: Likewise.
1899 * cp-support.h: Likewise.
1900 * dtrace-probe.c: Likewise.
1901 * dwarf2read.c: Likewise.
1902 * extension.h: Likewise.
1903 * gdb_bfd.c: Likewise.
1904 * gdbsupport/gdb_vecs.h: Likewise.
1905 * gdbsupport/vec.c: Remove.
1906 * gdbsupport/vec.h: Remove.
1907 * gdbthread.h: Likewise.
1908 * guile/scm-type.c: Likewise.
1909 * inline-frame.c: Likewise.
1910 * machoread.c: Likewise.
1911 * memattr.c: Likewise.
1912 * memrange.h: Likewise.
1913 * namespace.h: Likewise.
1914 * nat/linux-btrace.h: Likewise.
1915 * osdata.c: Likewise.
1916 * parser-defs.h: Likewise.
1917 * progspace.h: Likewise.
1918 * python/py-type.c: Likewise.
1919 * record-btrace.c: Likewise.
1920 * rust-exp.y: Likewise.
1921 * solib-target.c: Likewise.
1922 * stap-probe.c: Likewise.
1923 * target-descriptions.c: Likewise.
1924 * target-memory.c: Likewise.
1925 * target.h: Likewise.
1926 * varobj.c: Likewise.
1927 * varobj.h: Likewise.
1928 * xml-support.h: Likewise.
1929
1930 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1933 Update for new std::vector based implementation.
1934 (process_psymtab_comp_unit_reader): Likewise.
1935 (scan_partial_symbols): Likewise.
1936 (recursively_compute_inclusions): Likewise.
1937 (compute_compunit_symtab_includes): Likewise.
1938 (process_imported_unit_die): Likewise.
1939 (queue_and_load_dwo_tu): Likewise.
1940 (follow_die_sig_1): Likewise.
1941 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1942 (typedef dwarf2_per_cu_ptr): Remove.
1943 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1944 function.
1945 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1946 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1947 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1948 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1949 std::vector.
1950
1951 2019-10-15 Tom Tromey <tromey@adacore.com>
1952
1953 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1954 TID.
1955
1956 2019-10-15 Tom Tromey <tromey@adacore.com>
1957
1958 * windows-nat.c (windows_nat_target::fetch_registers)
1959 (windows_nat_target::store_registers): Rename "pid" to "tid".
1960
1961 2019-10-15 Tom Tromey <tromey@adacore.com>
1962
1963 * gdbarch.h, gdbarch.c: Rebuild.
1964 * gdbarch.sh (gcc_target_options): Change return type to
1965 std::string.
1966 * compile/compile.c (get_args): Update.
1967 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1968 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1969 std::string.
1970 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1971 std::string.
1972 * arch-utils.c (default_gcc_target_options): Return std::string.
1973 * arch-utils.h (default_gcc_target_options): Return std::string.
1974 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1975
1976 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1977
1978 * breakpoint.c (breakpoint_chain): Make static.
1979 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1980 of accessing breakpoint_chain.
1981
1982 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1983
1984 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1985 to a gdb::function_view and return value to bool.
1986 * breakpoint.h (iterate_over_breakpoints): Likewise.
1987 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1988 (pop_dummy_frame): Update.
1989 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1990 (gdbscm_breakpoints): Update.
1991 * python/py-breakpoint.c (build_bp_list): Update.
1992 (gdbpy_breakpoints): Update.
1993 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1994 Update.
1995 (bpfinishpy_handle_stop): Update.
1996 (bpfinishpy_handle_exit): Update.
1997 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1998 (svr4_update_solib_event_breakpoints): Update.
1999
2000 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2001
2002 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2003 when unwrapping single-field structs.
2004
2005 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2006
2007 * dwarf2read.c: Remove includes.
2008
2009 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2010
2011 * ui-out.c (ui_out::call_do_message): Silence
2012 -Wformat-nonliteral warning.
2013
2014 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2017 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2018 include: readline/tilde.h.
2019
2020 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2021
2022 * remote.c (remote_target::get_trace_status): Remove declaration of
2023 trace_regblock_size.
2024
2025 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2026
2027 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2028 (show_user): Remove declaration of cmdlist.
2029 * cli/cli-cmds.h (max_user_call_depth): Declare.
2030 * cli/cli-script.c (execute_user_command): Remove declaration
2031 of max_user_call_depth.
2032
2033 2019-10-11 Jim Wilson <jimw@sifive.com>
2034
2035 * gdbsupport/print-utils.h (pulongest): Fix comment.
2036 (plongest): Likewise.
2037 (phex): Add missing comment, mention leading zeros.
2038 (phex_nz): Add mention of no leading zeros to comment.
2039
2040 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2041 plongest instead of unsigned long long cast.
2042
2043 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2044
2045 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2046 for external_editor_command and gdbtk_test.
2047
2048 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2049
2050 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2051 * varobj.c (varobjdebug): Move comment to...
2052 * varobj.h (varobjdebug): ...here, and declare.
2053
2054 2019-10-09 Tom Tromey <tom@tromey.com>
2055
2056 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2057 erase_data_content.
2058
2059 2019-10-09 Tom Tromey <tom@tromey.com>
2060
2061 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2062 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2063 * tui/tui-command.c (tui_cmd_window::resize)
2064 (tui_refresh_cmd_win): Update.
2065 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2066 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2067 * tui/tui-data.c (~tui_gen_win_info): Remove.
2068 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2069 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2070 (tui_redisplay_readline, tui_mld_flush)
2071 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2072 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2073 (tui_data_window::erase_data_content)
2074 (tui_data_item_window::rerender)
2075 (tui_data_item_window::refresh_window): Update.
2076 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2077 (box_win, tui_gen_win_info::make_window)
2078 (tui_gen_win_info::make_visible): Update.
2079 (tui_delete_win): Remove.
2080 * tui/tui-winsource.c
2081 (tui_source_window_base::do_erase_source_content): Update.
2082 (tui_show_source_line, tui_source_window_base::update_tab_width)
2083 (tui_source_window_base::update_exec_info): Update.
2084 * tui/tui-data.h (struct curses_deleter): New.
2085 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2086 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2087
2088 2019-10-09 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2091
2092 2019-10-09 Tom Tromey <tom@tromey.com>
2093
2094 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2095 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2096
2097 2019-10-09 Tom Tromey <tom@tromey.com>
2098
2099 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2100 window height directly.
2101 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2102 declare.
2103 * tui/tui-layout.c (tui_default_win_height): Remove.
2104 (tui_default_win_viewport_height): Remove.
2105
2106 2019-10-09 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui.h: Remove comments.
2109
2110 2019-10-09 Tom de Vries <tdevries@suse.de>
2111
2112 * python/lib/gdb/printer/bound_registers.py: Use
2113 '^builtin_type_bound128' as regexp argument for
2114 add_builtin_pretty_printer.
2115
2116 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2117
2118 * guile/guile.c (guile_extension_script_ops): Remove forward
2119 declaration and mark as static.
2120 (guile_script_ops): Likewise.
2121 (extension_language_guile): Move further down in the file so
2122 it can reference the definitions for guile_{extension_,}script_ops.
2123
2124 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2125
2126 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2127 except SORTL, DFLTCC, and KDSA.
2128
2129 2019-10-08 Tom Tromey <tromey@adacore.com>
2130
2131 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2132 (struct safe_symbol_file_add_args): Remove.
2133
2134 2019-10-08 Tom Tromey <tromey@adacore.com>
2135
2136 * windows-nat.c: Don't include buildsym-legacy.h.
2137
2138 2019-10-08 Tom Tromey <tromey@adacore.com>
2139
2140 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2141
2142 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2143
2144 * gdbtypes.c (overload_debug): Move comment to header.
2145 * gdbtypes.h (overload_debug): Declare.
2146 * valops.c: Remove declaration of overload_debug, instead
2147 include gdbtypes.h.
2148
2149 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2150
2151 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2152 through _().
2153 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2154 move comment...
2155 * language.h (lang_frame_mismatch_warn): ... here. Also add
2156 declaration.
2157 * top.c (lang_frame_mismatch_warn): Remove declaration.
2158 (check_frame_language_change): Pass lang_frame_mismatch_warn
2159 through _().
2160
2161 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2162
2163 * c-lang.h (vtbl_ptr_name): Declare.
2164 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2165 it from the header.
2166 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2167
2168 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2169
2170 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2171 gdb_static_assert.
2172
2173 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2174
2175 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2176 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2177 * ctfread.c: New file.
2178 * ctfread.h: New file.
2179 * elfread.c: Include ctfread.h.
2180 (struct elfinfo text_p): New member ctfsect.
2181 (elf_locate_sections): Mark CTF section.
2182 (elf_symfile_read): Call elfctf_build_psymtabs.
2183 * Makefile.in (LIBCTF): Add.
2184 (CLIBS): Use it.
2185 (CDEPS): Likewise.
2186 (DIST): Add ctfread.c.
2187
2188 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ctfread.c (struct nextfield): Renamed to ...
2191 (struct ctf_nextfield): ... this.
2192 (struct field_info): Renamed to ...
2193 (strut ctf_field_info): ... this.
2194 (attach_fields_to_type): Update for renamed structures.
2195 (ctf_add_member_cb): Likewise.
2196 (ctf_add_enum_member_cb): Likewise.
2197 (process_struct_members): Likewise.
2198 (process_enum_type): Likewise.
2199
2200 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2201
2202 * tracectf.h: Rename, was ctf.h.
2203 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2204 * tracefile.c: Likewise.
2205 * tracepoint.c: Remove unused include ctf.h.
2206 * mi/mi-main.c: Likewise.
2207 * Makefile.in Replace ctf.c with tracectf.c.
2208
2209 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2210
2211 * version.in: Change version number to "9.0.50.DATE-git".
2212
2213 2019-10-03 Tom Tromey <tom@tromey.com>
2214
2215 PR rust/24976:
2216 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2217
2218 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2221 cp_search_name_hash.
2222 * NEWS: Add entry about nested function support.
2223
2224 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2225 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2228 for nested static variables when searchin VAR_DOMAIN.
2229 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2230 global scope, update comment.
2231 (add_partial_subprogram): Call add_partial_subprogram recursively
2232 for nested subroutines when processinng Fortran.
2233 (load_partial_dies): Process the child entities of a subprogram
2234 when processing Fortran.
2235 (partial_die_parent_scope): Handle building scope
2236 for Fortran nested functions.
2237 (process_die): Record that nested functions have a scope.
2238 (new_symbol): Always record Fortran subprograms on the global
2239 symbol list.
2240 (determine_prefix): How to build the prefix for Fortran
2241 subprograms.
2242
2243 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2246 have just sent the thread a SIGSTOP and are waiting for it to
2247 arrive.
2248
2249 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * btrace.c (btrace_add_pc): Remove whitespace before the template
2252 parameter in 'std::vector <...>'.
2253 (parse_xml_btrace_block): Likewise.
2254 (btrace_maint_decode_pt): Likewise.
2255 (btrace_maint_update_packets): Likewise.
2256 (btrace_maint_print_packets): Likewise.
2257 * btrace.h (struct btrace_maint_info): Likewise.
2258 * dwarf2read.c (struct type_unit_group): Likewise.
2259 (build_type_psymtabs_reader): Likewise.
2260 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2261 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2262 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2263
2264 2019-10-03 Tom de Vries <tdevries@suse.de>
2265
2266 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2267 the first line of the help text for set/show style metadata.
2268
2269 2019-10-02 Tom Tromey <tromey@adacore.com>
2270
2271 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2272 * gdbsupport/common-inferior.c: New file.
2273 * infcmd.c (startup_with_shell): Don't define.
2274 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2275 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2276 * inferior.h (startup_with_shell): Don't declare.
2277
2278 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2279
2280 * gdbsupport/gdb_assert.h: Include errors.h.
2281 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2282
2283 2019-10-02 Tom Tromey <tromey@adacore.com>
2284
2285 * NEWS: Add $_ada_exception entry.
2286 * ada-lang.c (struct ada_catchpoint): Add constructor.
2287 <m_kind>: New member.
2288 (allocate_location_exception, re_set_exception): Remove
2289 "ex" parameter.
2290 (should_stop_exception): Compute $_ada_exception.
2291 (check_status_exception, print_it_exception)
2292 (print_one_exception, print_mention_exception): Remove
2293 "ex" parameter.
2294 (allocate_location_catch_exception, re_set_catch_exception)
2295 (check_status_exception, print_it_catch_exception)
2296 (print_one_catch_exception, print_mention_catch_exception)
2297 (print_recreate_catch_exception)
2298 (allocate_location_catch_exception_unhandled)
2299 (re_set_catch_exception_unhandled)
2300 (check_status_exception, print_it_catch_exception_unhandled)
2301 (print_one_catch_exception_unhandled)
2302 (print_mention_catch_exception_unhandled)
2303 (print_recreate_catch_exception_unhandled)
2304 (allocate_location_catch_assert, re_set_catch_assert)
2305 (check_status_assert, print_it_catch_assert)
2306 (print_one_catch_assert, print_mention_catch_assert)
2307 (print_recreate_catch_assert)
2308 (allocate_location_catch_handlers, re_set_catch_handlers)
2309 (check_status_handlers, print_it_catch_handlers)
2310 (print_one_catch_handlers, print_mention_catch_handlers)
2311 (print_recreate_catch_handlers): Remove.
2312 (create_ada_exception_catchpoint): Update.
2313 (initialize_ada_catchpoint_ops): Update.
2314
2315 2019-10-02 Tom Tromey <tromey@adacore.com>
2316
2317 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2318 (create_excep_cond_exprs): Simplify exception string computation.
2319 (ada_exception_catchpoint_cond_string): Likewise.
2320
2321 2019-10-02 Tom Tromey <tromey@adacore.com>
2322
2323 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2324 * ada-lang.c (lesseq_defined_than): Handle
2325 LOC_STATIC.
2326 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2327 parameter.
2328 (dwarf2_has_info): Likewise.
2329 (new_symbol): Set maybe_copied on symbol when
2330 appropriate.
2331 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2332 parameter.
2333 <can_copy>: New member.
2334 * elfread.c (record_minimal_symbol): Set maybe_copied
2335 on symbol when appropriate.
2336 (elf_symfile_read): Update call to dwarf2_has_info.
2337 * minsyms.c (lookup_minimal_symbol_linkage): New
2338 function.
2339 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2340 * symtab.c (get_symbol_address, get_msymbol_address):
2341 New functions.
2342 * symtab.h (get_symbol_address, get_msymbol_address):
2343 Declare.
2344 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2345 maybe_copied.
2346 (struct symbol, struct minimal_symbol) <maybe_copied>:
2347 New member.
2348
2349 2019-10-02 Tom Tromey <tromey@adacore.com>
2350
2351 * source.c (struct current_source_location): New.
2352 (current_source_key): New global.
2353 (current_source_symtab, current_source_line)
2354 (current_source_pspace): Remove.
2355 (get_source_location): New function.
2356 (get_current_source_symtab_and_line)
2357 (set_default_source_symtab_and_line)
2358 (set_current_source_symtab_and_line)
2359 (clear_current_source_symtab_and_line, select_source_symtab)
2360 (info_source_command, print_source_lines_base)
2361 (info_line_command, search_command_helper, _initialize_source):
2362 Update.
2363
2364 2019-10-02 Tom Tromey <tromey@adacore.com>
2365
2366 * source.c (select_source_symtab): Don't call
2367 decode_line_with_current_source.
2368
2369 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * symtab.c (lookup_global_symbol): Search global block.
2372
2373 2019-10-02 Tom Tromey <tromey@adacore.com>
2374
2375 * coffread.c (process_coff_symbol): Update.
2376 * dwarf2read.c (var_decode_location, new_symbol): Update.
2377 * mdebugread.c (parse_symbol): Update.
2378 * objfiles.c (relocate_one_symbol): Update.
2379 * stabsread.c (define_symbol, fix_common_block)
2380 (scan_file_globals): Update.
2381 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2382 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2383 * xcoffread.c (process_xcoff_symbol): Update.
2384
2385 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2386
2387 * MAINTAINERS: Update my email address.
2388
2389 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2392 std::vector.
2393 (build_type_psymtabs_reader): Update for std::vector.
2394 (build_type_psymtab_dependencies): Likewise.
2395 * dwarf2read.h: Remove use of DEF_VEC_P.
2396 (typedef sig_type_ptr): Delete.
2397
2398 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2401 to std::vector.
2402 (btrace_maint_decode_pt): Likewise, and move allocation of the
2403 vector outside of the loop.
2404 (btrace_maint_update_packets): Update to handle change from VEC to
2405 std::vector.
2406 (btrace_maint_print_packets): Likewise.
2407 (maint_info_btrace_cmd): Likewise.
2408 * btrace.h: Remove use of DEF_VEC_O.
2409 (typedef btrace_pt_packet_s): Delete.
2410 (struct btrace_maint_info) <packets>: Change fromm VEC to
2411 std::vector.
2412 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2413
2414 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2417 make accesses into the vector constant references.
2418 (btrace_add_pc): Update for std::vector.
2419 (btrace_stitch_bts): Likewise.
2420 (parse_xml_btrace_block): Likewise.
2421 (btrace_maint_update_packets): Likewise.
2422 (btrace_maint_print_packets): Likewise.
2423 (maint_info_btrace_cmd): Likewise.
2424 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2425 std::vector.
2426 (btrace_data::empty): Likewise.
2427 (btrace_data_append): Likewise.
2428 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2429 (typedef btrace_block_s): Delete.
2430 (struct btrace_block): Add constructor.
2431 (struct btrace_data_bts) <blocks>: Change to std::vector.
2432 * nat/linux-btrace.c (perf_event_read_bts): Update for
2433 std::vector.
2434 (linux_read_bts): Likewise.
2435
2436 2019-10-01 Tom Tromey <tom@tromey.com>
2437
2438 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2439
2440 2019-10-01 Tom Tromey <tom@tromey.com>
2441
2442 * stack.c (print_frame, info_frame_command_core): Use
2443 styled_string.
2444 * linux-thread-db.c (try_thread_db_load_1)
2445 (try_thread_db_load_from_pdir_1): Use styled_string.
2446 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2447 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2448 (maybe_print_unsupported_script_warning)
2449 (maybe_print_script_not_found_warning): Use styled_string.
2450 * ada-lang.c (user_select_syms): Use styled_string.
2451
2452 2019-10-01 Tom Tromey <tom@tromey.com>
2453
2454 * p-lang.c (pascal_printstr): Use metadata style.
2455 * value.c (show_convenience): Use metadata style.
2456 * valprint.c (valprint_check_validity, val_print_optimized_out)
2457 (val_print_not_saved, val_print_unavailable)
2458 (val_print_invalid_address, generic_val_print, val_print)
2459 (value_check_printable, val_print_array_elements): Use metadata
2460 style.
2461 * ui-out.h (class ui_out) <field_fmt>: New overload.
2462 <do_field_fmt>: Add style parameter.
2463 * ui-out.c (ui_out::field_fmt): New overload.
2464 * typeprint.c (type_print_unknown_return_type)
2465 (val_print_not_allocated, val_print_not_associated): Use metadata
2466 style.
2467 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2468 parameter.
2469 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2470 * tracepoint.c (tvariables_info_1): Use metadata style.
2471 * stack.c (print_frame_arg, print_frame_info, print_frame)
2472 (info_frame_command_core): Use metadata style.
2473 * skip.c (info_skip_command): Use metadata style.
2474 * rust-lang.c (rust_print_enum): Use metadata style.
2475 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2476 metadata style.
2477 * python/py-framefilter.c (py_print_single_arg): Use metadata
2478 style.
2479 * printcmd.c (do_one_display, print_variable_and_value): Use
2480 metadata style.
2481 * p-valprint.c (pascal_val_print)
2482 (pascal_object_print_value_fields): Use metadata style.
2483 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2484 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2485 parameter.
2486 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2487 * m2-valprint.c (m2_print_long_set): Use metadata style.
2488 * m2-typeprint.c (m2_print_type): Use metadata style.
2489 * infcmd.c (print_return_value_1): Use metadata style.
2490 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2491 * f-valprint.c (info_common_command_for_block): Use metadata
2492 style.
2493 * f-typeprint.c (f_type_print_base): Use metadata style.
2494 * expprint.c (print_subexp_standard): Use metadata style.
2495 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2496 * cli/cli-style.h (class cli_style_option): Add constructor.
2497 (metadata_style): Declare.
2498 * cli/cli-style.c (metadata_style): New global.
2499 (_initialize_cli_style): Register metadata style.
2500 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2501 parameter.
2502 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2503 * c-typeprint.c (c_type_print_base_struct_union)
2504 (c_type_print_base_1): Use metadata style.
2505 * breakpoint.c (watchpoint_value_print)
2506 (print_one_breakpoint_location): Use metadata style.
2507 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2508 style.
2509 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2510 style.
2511 * ada-valprint.c (val_print_packed_array_elements, printstr)
2512 (print_field_values, ada_val_print_ref, ada_val_print): Use
2513 metadata style.
2514 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2515 style.
2516 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2517 style.
2518 * ada-lang.c (user_select_syms): Use metadata style.
2519
2520 2019-10-01 Tom Tromey <tom@tromey.com>
2521
2522 * cli/cli-cmds.c (pwd_command): Style output.
2523
2524 2019-10-01 Pedro Alves <palves@redhat.com>
2525 Tom Tromey <tom@tromey.com>
2526
2527 * symtab.c (print_symbol_info): Use %ps.
2528 (print_msymbol_info): Use %ps.
2529 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2530 * printcmd.c (print_variable_and_value): Use %ps.
2531 * macrocmd.c (show_pp_source_pos): Use %ps.
2532 * infrun.c (print_exited_reason): Use ui_out::message.
2533 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2534 (describe_other_breakpoints): Use ui_out::message and new
2535 formats.
2536 (say_where): Use new formats.
2537 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2538 and new formats.
2539
2540 2019-10-01 Pedro Alves <palves@redhat.com>
2541 Tom Tromey <tom@tromey.com>
2542
2543 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2544 (test_gdb_formats): New function.
2545 (run_tests): Call it.
2546 (test_format_specifier): Update.
2547 * utils.h (fputs_filtered): Update comment.
2548 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2549 (fputs_styled_unfiltered): Declare.
2550 * utils.c (fputs_styled_unfiltered): New function.
2551 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2552 (vfprintf_filtered): Update.
2553 (vfprintf_unfiltered, vprintf_filtered): Update.
2554 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2555 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2556 disallow_ui_out_field>: New constants.
2557 (enum class field_kind): New.
2558 (struct base_field_s, struct signed_field_s): New.
2559 (signed_field): New function.
2560 (struct string_field_s): New.
2561 (string_field): New function.
2562 (struct styled_string_s): New.
2563 (styled_string): New function.
2564 (class ui_out) <message>: Add comment.
2565 <vmessage, call_do_message>: New methods.
2566 <do_message>: Add style parameter.
2567 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2568 methods.
2569 (ui_out::message): Rewrite.
2570 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2571 parameter.
2572 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2573 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2574 gdb_extensions parameter.
2575 (class format_piece): Add parameter to constructor.
2576 (n_int_args): New field.
2577 * gdbsupport/format.c (format_pieces::format_pieces): Add
2578 gdb_extensions parameter. Handle '*'.
2579 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2580 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2581 vfprintf_styled_no_gdbfmt.
2582 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2583 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2584 unfiltered output.
2585 * ui-style.h (struct ui_file_style) <ptr>: New method.
2586
2587 2019-10-01 Tom Tromey <tom@tromey.com>
2588
2589 * unittests/format_pieces-selftests.c: Update. Add final format.
2590 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2591 empty literal pieces.
2592
2593 2019-10-01 Tom Tromey <tom@tromey.com>
2594
2595 * ui-out.h (enum class ui_out_style_kind): Remove.
2596 (class ui_out) <field_string, field_stsream, do_field_string>:
2597 Change type of "style".
2598 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2599 (ui_out::field_string): Update.
2600 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2601 of "style".
2602 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2603 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2604 * stack.c (print_frame_arg, print_frame_info, print_frame):
2605 Update.
2606 * source.c (print_source_lines_base): Update.
2607 * solib.c (info_sharedlibrary_command): Update.
2608 * skip.c (info_skip_command): Update.
2609 * record-btrace.c (btrace_call_history_src_line)
2610 (btrace_call_history): Update.
2611 * python/py-framefilter.c (py_print_frame): Update.
2612 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2613 "style".
2614 * mi/mi-out.c (mi_ui_out::do_table_header)
2615 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2616 (mi_ui_out::do_field_string): Update.
2617 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2618 Update.
2619 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2620 "style".
2621 * cli-out.c (cli_ui_out::do_table_header)
2622 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2623 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2624 (cli_ui_out::do_field_fmt): Update.
2625 * breakpoint.c (print_breakpoint_location): Update.
2626 (update_static_tracepoint): Update.
2627
2628 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2629
2630 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2631 conversion of gdb_datadir.
2632 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2633 remove not needed c_str ().
2634
2635 2019-09-30 Ali Tamur <tamur@google.com>
2636
2637 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2638 (dwarf2_string_attr): Likewise.
2639
2640 2019-09-30 Ali Tamur <tamur@google.com>
2641
2642 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2643 (process_full_type_unit): Likewise.
2644 (dump_die_shallow): Likewise.
2645 (cu_debug_loc_section): Likewise.
2646
2647 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2648
2649 * minsyms.c (compare_minimal_symbols): Rename to...
2650 (minimal_symbol_is_less_than): ...this, and adjust to STL
2651 conventions (return bool, take arguments as references)
2652 (minimal_symbol_reader::install): Call std::sort instead
2653 of qsort.
2654
2655 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2656
2657 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2658 hash and why.
2659 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2660 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2661
2662 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2665 * psympriv.h (add_psymbol_to_list): Move comment here and update
2666 it.
2667
2668 2019-09-29 Tom de Vries <tdevries@suse.de>
2669
2670 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2671 Use $tmpdir/$(basename "$output_file").dwz instead of
2672 "${output_file}.dwz".
2673
2674 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 PR gdb/25045
2677 * hppa-linux-nat.c: Include gdbarch.h.
2678
2679 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2680
2681 * blockframe.c (find_pc_partial_function): Change return type to bool.
2682 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2683 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2684 (stub_gnu_ifunc_resolve_name): Likewise.
2685 * symtab.c (compare_filenames_for_search): Likewise.
2686 (compare_glob_filenames_for_search): Likewise.
2687 (matching_obj_sections): Likewise.
2688 (symbol_matches_domain): Likewise.
2689 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2690 (find_line_pc): Change return type to bool.
2691 (find_line_pc_range): Likewise.
2692 (producer_is_realview): Likewise.
2693 * symtab.h (symbol_matches_domain): Likewise.
2694 (find_pc_partial_function): Likewise.
2695 (find_pc_line_pc_range): Likewise.
2696 (in_gnu_ifunc_stub): Likewise.
2697 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2698 (find_line_pc): Likewise.
2699 (find_line_pc_range): Likewise.
2700 (matching_obj_sections): Likewise.
2701 (find_line_symtab): Change out parameter to bool.
2702 (producer_is_realview): Change return type to bool.
2703 (compare_filenames_for_search): Likewise.
2704 (compare_glob_filenames_for_search): Likewise.
2705
2706 2019-09-26 Tom Tromey <tom@tromey.com>
2707
2708 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2709 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2710 * gdb_usleep.h: Remove.
2711 * gdb_usleep.c: Remove.
2712 * utils.c: Don't include gdb_usleep.h.
2713
2714 2019-09-26 Tom Tromey <tromey@adacore.com>
2715
2716 * python/py-type.c (type_to_type_object): Call check_typedef
2717 for stub types.
2718
2719 2019-09-26 Tom Tromey <tom@tromey.com>
2720
2721 * utils.h (initialize_utils): Don't declare.
2722 * top.c (gdb_init): Don't call initialize_utils.
2723 * utils.c (initialize_utils): Remove. Move contents...
2724 (_initialize_utils): ... here.
2725
2726 2019-09-25 Tom Tromey <tom@tromey.com>
2727
2728 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2729 * utils.h (make_hex_string): Don't declare.
2730 * utils.c (make_hex_string): Remove.
2731
2732 2019-09-24 Tom de Vries <tdevries@suse.de>
2733
2734 PR gdb/23815
2735 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2736 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2737
2738 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2739
2740 * NEWS: Mention new simulator port for PRU.
2741
2742 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2743
2744 * ada-exp.y (write_object_remaining): Update.
2745 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2746 and eliminate the static buffer.
2747 (ada_decode_symbol): Update.
2748 (ada_la_decode): Update.
2749 (ada_sniff_from_mangled_name): Update.
2750 (is_valid_name_for_wild_match): Update.
2751 (ada_lookup_name_info::matches): Update and simplify.
2752 (name_matches_regex): Update.
2753 (ada_add_global_exceptions): Update.
2754 * ada-lang.h (ada_decode): Update signature.
2755 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2756 * dwarf-index-write.c (debug_names::insert): Update.
2757
2758 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2761 formatting.
2762
2763 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2764
2765 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2766 Change "nonzero" to "true" in documentation.
2767
2768 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2769
2770 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2771 (_initialize_darwin_solib): Don't set
2772 darwin_so_ops.lookup_lib_global_symbol.
2773 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2774 set_gdbarch_iterate_over_objfiles_in_search_order.
2775 (elf_lookup_lib_symbol): Rename to...
2776 (svr4_iterate_over_objfiles_in_search_order): this, and update
2777 to iterate semantics.
2778 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2779 * solib.c (solib_global_lookup): Remove.
2780 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2781 (solib_global_lookup): Remove.
2782 * symtab.c (lookup_global_or_static_symbol): Remove call to
2783 solib_global_lookup.
2784
2785 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2786
2787 * NEWS: Move entries about default MI version now being
2788 version 3, and about the GDB/MI fix for multi-location
2789 breakpoints to the "since GDB 8.3" section.
2790
2791 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2792
2793 GDB 8.3.1 released.
2794
2795 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2796
2797 * NEWS: Mention that Cell/B.E. debugging support was removed.
2798 * MAINTAINERS: Remove spu target.
2799
2800 * config/djgpp/fnchange.lst: Remove entries for removed files.
2801
2802 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2803 spu-multiarch.o, and spu-tdep.o.
2804 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2805 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2806 spu-multiarch.c, and spu-tdep.c.
2807 * spu-linux-nat.c: Remove file.
2808 * spu-multiarch.c: Remove file.
2809 * spu-tdep.c: Remove file.
2810 * spu-tdep.h: Remove file.
2811 * solib-spu.c: Remove file.
2812 * solib-spu.h: Remove file.
2813
2814 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2815 * configure.nat (spu-linux): Remove.
2816 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2817 solib-multiarch.o from gdb_target_obs.
2818 (spu*-*-*): Remove.
2819
2820 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2821 feature flag.
2822 (ppc_linux_no_features): Update.
2823 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2824 Cell/B.E. support.
2825 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2826 (tdesc_powerpc_cell64l): Likewise.
2827 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2828 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2829 Cell/B.E. support.
2830 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2831 Do not include "features/rs6000/powerpc-cell32l.c" or
2832 "features/rs6000/powerpc-cell64l.c".
2833 (ppc_linux_spu_section): Remove.
2834 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2835 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2836 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2837 (ppc_linux_spe_context_lookup): Remove.
2838 (ppc_linux_spe_context_inferior_created): Remove.
2839 (ppc_linux_spe_context_solib_loaded): Remove.
2840 (ppc_linux_spe_context_solib_unloaded): Remove.
2841 (ppc_linux_spe_context): Remove.
2842 (struct ppu2spu_cache): Remove.
2843 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2844 (struct ppu2spu_data): Remove.
2845 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2846 ppu2spu_unwind): Remove.
2847 (ppc_linux_init_abi): Remove Cell/B.E. support.
2848 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2849
2850 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2851 (rs6000/powerpc-cell64l-expedite): Likewise
2852 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2853 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2854 rs6000/powerpc-cell64l.xml.
2855 * features/rs6000/powerpc-cell32l.xml: Remove.
2856 * features/rs6000/powerpc-cell64l.xml: Likewise.
2857 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2858 * features/rs6000/powerpc-cell64l.c: Likewise.
2859 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2860 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2861 * regformats/reg-spu.dat: Remove.
2862
2863 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2864 * corelow.c (struct spuid_list): Remove.
2865 (add_to_spuid_list): Remove.
2866 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2867 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2868 (remote_protocol_features): Remove associated entries.
2869 (_initialize_remote): No longer initialize them.
2870 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2871 * linux-nat.c (SPUFS_MAGIC): Remove.
2872 (linux_proc_xfer_spu): Remove.
2873 (spu_enumerate_spu_ids): Remove.
2874 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2875 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2876 (linux_make_corefile_notes): No longer call it.
2877
2878 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2879 (cooked_write_test): Likewise.
2880
2881 2019-09-20 Tom Tromey <tom@tromey.com>
2882
2883 * NEWS: Mention case-sensitivity of TUI commands.
2884 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2885 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2886 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2887
2888 2019-09-20 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-source.c (tui_source_window::set_contents): Use
2891 make_unique_xstrdup.
2892 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2893 make_unique_xstrdup.
2894
2895 2019-09-20 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-data.c: Remove separator comments.
2898 * tui/tui-layout.c: Remove separator comments.
2899 * tui/tui-win.c: Remove separator comments.
2900 * tui/tui-wingeneral.c: Remove separator comments.
2901
2902 2019-09-20 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui.h (strcat_to_buf): Don't declare.
2905 * tui/tui.c (strcat_to_buf): Remove.
2906
2907 2019-09-20 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2910 from "fullname".
2911 * tui/tui-source.c (tui_source_window::set_contents)
2912 (tui_source_window::location_matches_p)
2913 (tui_source_window::maybe_update): Update.
2914
2915 2019-09-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2918 Update.
2919 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2920 prefix.
2921 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2922 (tui_data_window::line_from_reg_element_no)
2923 (tui_data_window::first_reg_element_no_inline)
2924 (tui_data_window::show_registers)
2925 (tui_data_window::show_register_group)
2926 (tui_data_window::display_registers_from)
2927 (tui_data_window::display_registers_from_line)
2928 (tui_data_window::first_data_item_displayed)
2929 (tui_data_window::delete_data_content_windows)
2930 (tui_data_window::erase_data_content)
2931 (tui_data_window::do_scroll_vertical)
2932 (tui_data_window::refresh_window)
2933 (tui_data_window::check_register_values): Update.
2934
2935 2019-09-20 Tom Tromey <tom@tromey.com>
2936
2937 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2938 (struct tui_locator_window) <full_name, proc_name>: Now
2939 std::string.
2940 * tui/tui-stack.c (tui_locator_window::make_status_line)
2941 (tui_locator_window::set_locator_fullname)
2942 (tui_locator_window::set_locator_info): Update.
2943 * tui/tui-source.c (tui_source_window::set_contents)
2944 (tui_source_window::showing_source_p): Update.
2945
2946 2019-09-20 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2949 Don't call tui_locator_win_info_ptr.
2950
2951 2019-09-20 Tom Tromey <tom@tromey.com>
2952
2953 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2954
2955 2019-09-20 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2958 height for locator.
2959 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2960 * tui/tui-layout.c (show_source_disasm_command, show_data)
2961 (show_source_or_disasm_and_command): Use 1 as height for locator.
2962
2963 2019-09-20 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui.c (tui_enable): Update.
2966 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2967 Update.
2968 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2969 Update.
2970 * tui/tui-data.c (win_resized): Now bool.
2971 (tui_win_resized): Return bool.
2972 (tui_set_win_resized_to): Accept a bool.
2973
2974 2019-09-20 Tom Tromey <tom@tromey.com>
2975
2976 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2977 Change type of "refresh_values_only".
2978 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2979 type of "refresh_values_only".
2980
2981 2019-09-20 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2984 std::string.
2985 (tui_disassemble): Add "pos" parameter.
2986 (tui_disasm_window::set_contents): Simplify.
2987
2988 2019-09-20 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-winsource.h (struct tui_source_window_base)
2991 <show_source_content>: Now private.
2992 * tui/tui-winsource.c
2993 (tui_source_window_base::show_source_content): Don't handle empty
2994 content case.
2995
2996 2019-09-20 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-layout.c (show_source_disasm_command)
2999 (show_source_or_disasm_and_command): Don't call
3000 show_source_content.
3001
3002 2019-09-20 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3005 Declare.
3006 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3007 from tui_make_status_line.
3008 (tui_locator_window::rerender): Update.
3009
3010 2019-09-20 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3013 (tui_locator_window::rerender): Update.
3014
3015 2019-09-20 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-winsource.h (struct tui_source_window_base)
3018 <~tui_source_window_base>: Don't declare.
3019 <fullname>: Remove.
3020 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3021 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3022 member.
3023 * tui/tui-source.c (tui_source_window::set_contents): Update.
3024 (tui_source_window::location_matches_p)
3025 (tui_source_window::maybe_update): Update.
3026
3027 2019-09-20 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-winsource.h (~tui_source_element): Remove.
3030 (tui_source_element): Update.
3031 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3032 * tui/tui-winsource.c (tui_show_source_line): Update.
3033 * tui/tui-source.c (tui_source_window::set_contents): Update.
3034 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3035
3036 2019-09-20 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3039 declare.
3040 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3041 tui_clear_source_windows_detail.
3042 * tui/tui-winsource.h (struct tui_source_window_base)
3043 <clear_detail>: Don't declare.
3044 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3045 Remove.
3046 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3047
3048 2019-09-20 Tom Tromey <tromey@adacore.com>
3049
3050 PR ada/24919:
3051 * block.c (contained_in): Fix final return value.
3052
3053 2019-09-20 Alan Modra <amodra@gmail.com>
3054
3055 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3056 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3057 (read_indirect_string_from_dwz): Use bfd accessor.
3058 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3059 * machoread.c (macho_symfile_read_all_oso): Likewise.
3060 * solib.c (solib_bfd_open): Likewise.
3061
3062 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3063
3064 * eval.c: Move declaration of overload_resolution to...
3065 * value.h: ...here.
3066
3067 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3068
3069 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3070 * arm-linux-tdep.c: Likewise.
3071 * arm-nbsd-nat.c: Likewise.
3072 * arm-tdep.h: Declare arm_apcs_32.
3073 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3074
3075 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3076
3077 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3078 * dwarf2read.h: Declare dwarf_always_disassemble.
3079
3080 2019-09-19 Tom de Vries <tdevries@suse.de>
3081
3082 PR gdb/25009
3083 * source-cache.c (source_cache::ensure): Catch exception thrown during
3084 construction of the highlighter.
3085
3086 2019-09-18 Alan Modra <amodra@gmail.com>
3087
3088 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3089 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3090 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3091 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3092 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3093 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3094 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3095 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3096 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3097 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3098 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3099 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3100 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3101 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3102 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3103 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3104 * mi/mi-interp.c: Update throughout for bfd section macro and
3105 function changes.
3106 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3107 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3108
3109 2019-09-18 Tom Tromey <tom@tromey.com>
3110
3111 * NEWS: Add entry.
3112 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3113 call rl_initialize.
3114 (tui_enable): Do not call rl_initialize.
3115
3116 2019-09-18 Christian Groessler <chris@groessler.org>
3117
3118 * alpha-linux-nat.c: Include gdbarch.h.
3119
3120 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3121
3122 * ui-file.c: Include cli/cli-style.h.
3123 (term_cli_styling): Remove cli_styling declaration.
3124
3125 2019-09-18 Alan Modra <amodra@gmail.com>
3126
3127 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3128 to bfd_asymbol_section.
3129
3130 2019-09-18 Alan Modra <amodra@gmail.com>
3131
3132 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3133 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3134 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3135
3136 2019-09-18 Alan Modra <amodra@gmail.com>
3137
3138 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3139 * spu-linux-nat.c (spu_bfd_open): Likewise.
3140
3141 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3142
3143 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3144 to bool to match definition in dwarf2read.c.
3145
3146 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3147
3148 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3149 (print_signatures): Likewise.
3150 (trust_pad_over_xvs): Likewise.
3151 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3152 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3153 * arm-linux-nat.c (arm_apcs_32): Likewise.
3154 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3155 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3156 * arm-tdep.c (arm_debug): Likewise.
3157 (arm_apcs_32): Likewise.
3158 * auto-load.c (debug_auto_load): Likewise.
3159 (auto_load_gdb_scripts): Likewise.
3160 (global_auto_load): Likewise.
3161 (auto_load_local_gdbinit): Likewise.
3162 (auto_load_local_gdbinit_loaded): Likewise.
3163 * auto-load.h (global_auto_load): Likewise.
3164 (auto_load_local_gdbinit): Likewise.
3165 (auto_load_local_gdbinit_loaded): Likewise.
3166 * breakpoint.c (disconnected_dprintf): Likewise.
3167 (breakpoint_proceeded): Likewise.
3168 (automatic_hardware_breakpoints): Likewise.
3169 (always_inserted_mode): Likewise.
3170 (target_exact_watchpoints): Likewise.
3171 (_initialize_breakpoint): Update.
3172 * breakpoint.h (target_exact_watchpoints): Change to bool.
3173 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3174 * cli/cli-cmds.c (trace_commands): Likewise.
3175 * cli/cli-cmds.h (trace_commands): Likewise.
3176 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3177 to bool*.
3178 * cli/cli-logging.c (logging_overwrite): Change to bool.
3179 (logging_redirect): Likewise.
3180 (debug_redirect): Likewise.
3181 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3182 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3183 to bool.
3184 <boolean_option_def>: Update.
3185 (struct flag_option_def): Change default type of Context to bool
3186 from int.
3187 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3188 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3189 (get_setshow_command_value_string): Likewise.
3190 * cli/cli-style.c (cli_styling): Change to bool.
3191 (source_styling): Likewise.
3192 * cli/cli-style.h (source_styling): Likewise.
3193 (cli_styling): Likewise.
3194 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3195 to bool.
3196 * command.h (var_types): Update comment.
3197 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3198 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3199 bool.
3200 (debug_compile_cplus_scopes): Likewise.
3201 * compile/compile-internal.h (compile_debug): Likewise.
3202 * compile/compile.c (compile_debug): Likewise.
3203 (struct compile_options) <raw>: Likewise.
3204 * cp-support.c (catch_demangler_crashes): Likewise.
3205 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3206 (usr_cmd_cris_dwarf2_cfi): Likewise.
3207 * csky-tdep.c (csky_debug): Likewise.
3208 * darwin-nat.c (enable_mach_exceptions): Likewise.
3209 * dcache.c (dcache_enabled_p): Likewise.
3210 * defs.h (info_verbose): Likewise.
3211 * demangle.c (demangle): Likewise.
3212 (asm_demangle): Likewise.
3213 * dwarf-index-cache.c (debug_index_cache): Likewise.
3214 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3215 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3216 * dwarf2read.c (check_physname): Likewise.
3217 (use_deprecated_index_sections): Likewise.
3218 (dwarf_always_disassemble): Likewise.
3219 * eval.c (overload_resolution): Likewise.
3220 * event-top.c (set_editing_cmd_var): Likewise.
3221 (exec_done_display_p): Likewise.
3222 * event-top.h (set_editing_cmd_var): Likewise.
3223 (exec_done_display_p): Likewise.
3224 * exec.c (write_files): Likewise.
3225 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3226 (debug_fbsd_nat): Likewise.
3227 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3228 Likewise.
3229 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3230 <backtrace_past_entry> Likewise.
3231 * gdb-demangle.h (demangle): Likewise.
3232 (asm_demangle): Likewise.
3233 * gdb_bfd.c (bfd_sharing): Likewise.
3234 * gdbcore.h (write_files): Likewise.
3235 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3236 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3237 * gdbthread.h (print_thread_events): Likewise.
3238 * gdbtypes.c (opaque_type_resolution): Likewise.
3239 (strict_type_checking): Likewise.
3240 * gnu-nat.c (gnu_debug_flag): Likewise.
3241 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3242 * guile/scm-param.c (pascm_variable): Add boolval.
3243 (add_setshow_generic): Update.
3244 (pascm_param_value): Update.
3245 (pascm_set_param_value_x): Update.
3246 * hppa-tdep.c (hppa_debug): Change to bool..
3247 * infcall.c (may_call_functions_p): Likewise.
3248 (coerce_float_to_double_p): Likewise.
3249 (unwind_on_signal_p): Likewise.
3250 (unwind_on_terminating_exception_p): Likewise.
3251 * infcmd.c (startup_with_shell): Likewise.
3252 * inferior.c (print_inferior_events): Likewise.
3253 * inferior.h (startup_with_shell): Likewise.
3254 (print_inferior_events): Likewise.
3255 * infrun.c (step_stop_if_no_debug): Likewise.
3256 (detach_fork): Likewise.
3257 (debug_displaced): Likewise.
3258 (disable_randomization): Likewise.
3259 (non_stop): Likewise.
3260 (non_stop_1): Likewise.
3261 (observer_mode): Likewise.
3262 (observer_mode_1): Likewise.
3263 (set_observer_mode): Update.
3264 (sched_multi): Change to bool.
3265 * infrun.h (debug_displaced): Likewise.
3266 (sched_multi): Likewise.
3267 (step_stop_if_no_debug): Likewise.
3268 (non_stop): Likewise.
3269 (disable_randomization): Likewise.
3270 * linux-tdep.c (use_coredump_filter): Likewise.
3271 (dump_excluded_mappings): Likewise.
3272 * linux-thread-db.c (auto_load_thread_db): Likewise.
3273 (check_thread_db_on_load): Likewise.
3274 * main.c (captured_main_1): Update.
3275 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3276 xx2_opt, boolean_opt>: Change to bool.
3277 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3278 * maint.c (maintenance_profile_p): Likewise.
3279 (per_command_time): Likewise.
3280 (per_command_space): Likewise.
3281 (per_command_symtab): Likewise.
3282 * memattr.c (inaccessible_by_default): Likewise.
3283 * mi/mi-main.c (mi_async): Likewise.
3284 (mi_async_1): Likewise.
3285 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3286 * nat/fork-inferior.h (startup_with_shell): Likewise.
3287 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3288 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3289 * nios2-tdep.c (nios2_debug): Likewise.
3290 * or1k-tdep.c (or1k_debug): Likewise.
3291 * parse.c (parser_debug): Likewise.
3292 * parser-defs.h (parser_debug): Likewise.
3293 * printcmd.c (print_symbol_filename): Likewise.
3294 * proc-api.c (procfs_trace): Likewise.
3295 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3296 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3297 (set_parameter_value): Update.
3298 (add_setshow_generic): Update.
3299 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3300 to bool*.
3301 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3302 int*.
3303 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3304 * record-btrace.c (record_btrace_target::store_registers): Update.
3305 * record-full.c (record_full_memory_query): Change to bool.
3306 (record_full_stop_at_limit): Likewise.
3307 * record-full.h (record_full_memory_query): Likewise.
3308 * remote-notif.c (notif_debug): Likewise.
3309 * remote-notif.h (notif_debug): Likewise.
3310 * remote.c (use_range_stepping): Likewise.
3311 (interrupt_on_connect): Likewise.
3312 (remote_break): Likewise.
3313 * ser-tcp.c (tcp_auto_retry): Likewise.
3314 * ser-unix.c (serial_hwflow): Likewise.
3315 * skip.c (debug_skip): Likewise.
3316 * solib-aix.c (solib_aix_debug): Likewise.
3317 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3318 (spu_auto_flush_cache_p): Likewise.
3319 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3320 Likewise.
3321 (struct info_print_options) <quiet>: Likewise.
3322 * symfile-debug.c (debug_symfile): Likewise.
3323 * symfile.c (auto_solib_add): Likewise.
3324 (separate_debug_file_debug): Likewise.
3325 * symfile.h (auto_solib_add): Likewise.
3326 (separate_debug_file_debug): Likewise.
3327 * symtab.c (basenames_may_differ): Likewise.
3328 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3329 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3330 (struct info_types_options) <quiet>: Likewise.
3331 * symtab.h (demangle): Likewise.
3332 (basenames_may_differ): Likewise.
3333 * target-dcache.c (stack_cache_enabled_1): Likewise.
3334 (code_cache_enabled_1): Likewise.
3335 * target.c (trust_readonly): Likewise.
3336 (may_write_registers): Likewise.
3337 (may_write_memory): Likewise.
3338 (may_insert_breakpoints): Likewise.
3339 (may_insert_tracepoints): Likewise.
3340 (may_insert_fast_tracepoints): Likewise.
3341 (may_stop): Likewise.
3342 (auto_connect_native_target): Likewise.
3343 (target_stop_and_wait): Update.
3344 (target_async_permitted): Change to bool.
3345 (target_async_permitted_1): Likewise.
3346 (may_write_registers_1): Likewise.
3347 (may_write_memory_1): Likewise.
3348 (may_insert_breakpoints_1): Likewise.
3349 (may_insert_tracepoints_1): Likewise.
3350 (may_insert_fast_tracepoints_1): Likewise.
3351 (may_stop_1): Likewise.
3352 * target.h (target_async_permitted): Likewise.
3353 (may_write_registers): Likewise.
3354 (may_write_memory): Likewise.
3355 (may_insert_breakpoints): Likewise.
3356 (may_insert_tracepoints): Likewise.
3357 (may_insert_fast_tracepoints): Likewise.
3358 (may_stop): Likewise.
3359 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3360 (make_thread_apply_all_options_def_group): Change argument from int*
3361 to bool*.
3362 (thread_apply_all_command): Update.
3363 (print_thread_events): Change to bool.
3364 * top.c (confirm): Likewise.
3365 (command_editing_p): Likewise.
3366 (history_expansion_p): Likewise.
3367 (write_history_p): Likewise.
3368 (info_verbose): Likewise.
3369 * top.h (confirm): Likewise.
3370 (history_expansion_p): Likewise.
3371 * tracepoint.c (disconnected_tracing): Likewise.
3372 (circular_trace_buffer): Likewise.
3373 * typeprint.c (print_methods): Likewise.
3374 (print_typedefs): Likewise.
3375 * utils.c (debug_timestamp): Likewise.
3376 (sevenbit_strings): Likewise.
3377 (pagination_enabled): Likewise.
3378 * utils.h (sevenbit_strings): Likewise.
3379 (pagination_enabled): Likewise.
3380 * valops.c (overload_resolution): Likewise.
3381 * valprint.h (struct value_print_options) <prettyformat_arrays,
3382 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3383 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3384 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3385 Likewise.
3386 * windows-nat.c (new_console): Likewise.
3387 (cygwin_exceptions): Likewise.
3388 (new_group): Likewise.
3389 (debug_exec): Likewise.
3390 (debug_events): Likewise.
3391 (debug_memory): Likewise.
3392 (debug_exceptions): Likewise.
3393 (useshell): Likewise.
3394 * windows-tdep.c (maint_display_all_tib): Likewise.
3395 * xml-support.c (debug_xml): Likewise.
3396
3397 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3398
3399 * source.c (prepare_path_for_appending): New function.
3400 (openp): Make use of new function.
3401 (find_and_open_source): Search for the compilation directory and
3402 source file as a relative path beneath the directory search path.
3403
3404 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * source-cache.c (source_cache::get_line_charpos): Catch
3407 exceptions and return false, this matches the behaviour documented
3408 in the header file.
3409
3410 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3411
3412 * ada-tasks.c (info_task): Remove quoting of the task's name.
3413
3414 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3415
3416 * symfile.c (auto_solib_add): Replace comment with a reference
3417 to the header file.
3418
3419 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3420
3421 * NEWS: Mention that gdb can now be compiled with Python 3
3422 on Windows.
3423
3424 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * maint.c (maint_print_section_data::maint_print_section_data):
3427 Force use of 'float log10 (float)' by casting the argument to
3428 float.
3429
3430 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * maint.c: Add 'cmath' include.
3433 (struct maint_print_section_data): New structure.
3434 (print_section_index): New function.
3435 (print_bfd_section_info): Add header comment, small whitespace
3436 cleanup, and update to call new print_section_index function.
3437 (print_objfile_section_info): Likewise.
3438 (maint_obj_section_from_bfd_section): New function.
3439 (print_bfd_section_info_maybe_relocated): New function.
3440 (maintenance_info_sections): Add header comment, always use
3441 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3442
3443 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3446 inner scope, add check that the objfile has psymtabs before
3447 checking psymtabs_addrmap.
3448 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3449
3450 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3451
3452 * NEWS: Announce that Ada task names are now shown at more places,
3453 and between quotes (except in info task output).
3454 * gdb/ada-tasks.c (task_to_str): New function.
3455 (display_current_task_id): Call task_to_str.
3456 (task_command_1): Likewise.
3457 (print_ada_task_info): In non-mi mode, Properly align headers and data
3458 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3459
3460 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3461
3462 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3463 prstatus.pr_lwp.pr_info instead of making it up.
3464
3465 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3466
3467 * auto-load.c (auto_load_expand_dir_vars): Update.
3468 * defs.h (gdb_datadir): Change to std::string.
3469 (python_libdir): Likewise.
3470 (relocate_gdb_directory): Change return type to std::string.
3471 * guile/guile.c (gdbscm_data_directory): Update.
3472 (initialize_scheme_side): Update.
3473 * jit.c (jit_reader_dir): Change to std::string.
3474 (jit_reader_load_command): Update.
3475 * main.c (gdb_datadir): Change to std::string.
3476 (python_libdir): Likewise.
3477 (set_gdb_data_directory): Update.
3478 (relocate_path): Change to return std::string.
3479 (relocate_gdb_directory): Change to return std::string.
3480 (relocate_gdbinit_path_maybe_in_datadir): Update.
3481 (captured_main_1): Update.
3482 * python/python.c (do_start_initialization): Update.
3483 * top.c (show_gdb_datadir): Update.
3484 * xml-syscall.c (xml_init_syscalls_info): Update.
3485 (init_syscalls_info): Update.
3486
3487 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3488
3489 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3490 out of get_init_files.
3491 (get_init_files): Update.
3492
3493 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3494
3495 * main.c (get_init_files): Change to use std::string.
3496 (captured_main_1): Update.
3497 (print_gdb_help): Update.
3498
3499 2019-09-11 Ali Tamur <tamur@google.com>
3500
3501 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3502 implementation.
3503
3504 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3505
3506 * dbxread.c (read_dbx_symtab): Update.
3507 * dwarf2read.c (load_partial_dies): Update.
3508 * mdebugread.c (parse_partial_symbols): Update.
3509 (handle_psymbol_enumerators): Update.
3510 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3511 * psymtab.c (add_psymbol_to_bcache): Likewise.
3512 (add_psymbol_to_list): Likewise.
3513 * symtab.c (symbol_set_names): Likewise.
3514 * symtab.h (symbol_set_names): Likewise.
3515 * xcoffread.c (scan_xcoff_symtab): Update.
3516
3517 2019-09-11 Tom Tromey <tom@tromey.com>
3518
3519 * symfile-mem.c (symbol_file_add_from_memory): Use
3520 bfd_set_filename.
3521 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3522 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3523
3524 2019-09-10 Tom Tromey <tromey@adacore.com>
3525
3526 * dwarf-index-write.c (write_psymbols): Extend error message.
3527 (debug_names::insert): Add Ada code.
3528 (debug_names::write_psymbols): Remove Ada check.
3529 (debug_names) <m_string_obstack>: New member.
3530 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3531 (gdb_index_symbol_name_matcher::matches): Remove.
3532 (mapped_index_base::find_name_components_bounds): Add "lang"
3533 parameter.
3534 (mapped_index_base::build_name_components): Also split names
3535 according to Ada syntax.
3536 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3537 type of "match_callback".
3538 (check_match, check_find_bounds_finds)
3539 (dw2_expand_symtabs_matching): Update.
3540 (dw2_debug_names_iterator): Add new constructor.
3541 (dw2_debug_names_map_matching_symbols): New function.
3542 (dw2_debug_names_expand_symtabs_matching): Update.
3543 (dwarf2_debug_names_functions): Use
3544 dw2_debug_names_map_matching_symbols.
3545
3546 2019-09-10 Tom Tromey <tromey@adacore.com>
3547
3548 * dwarf2read.c (dw2_get_file_names_reader): Add the
3549 CU's file name to the results.
3550
3551 2019-09-10 Tom Tromey <tromey@adacore.com>
3552
3553 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3554 map_matching_symbols. Update.
3555 * dwarf2read.c (dw2_map_matching_symbols): Update.
3556 * psymtab.c (match_partial_symbol): Change type; update.
3557 (psym_map_matching_symbols): Likewise.
3558 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3559 type; update.
3560 * symfile.h (struct quick_symbol_functions)
3561 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3562 Remove "match".
3563
3564 2019-09-10 Tom Tromey <tromey@adacore.com>
3565
3566 * psymtab.c (map_block): Remove.
3567 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3568 * symtab.c (iterate_over_symbols_terminated): New function.
3569 * symtab.c (iterate_over_symbols_terminated): Declare.
3570
3571 2019-09-10 Tom Tromey <tromey@adacore.com>
3572
3573 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3574 * language.h (struct language_defn) <la_iterate_over_symbols>:
3575 Return bool.
3576 * symtab.c (iterate_over_symbols): Return bool.
3577 * symtab.h (iterate_over_symbols): Return bool.
3578
3579 2019-09-10 Tom Tromey <tromey@adacore.com>
3580
3581 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3582 (add_nonlocal_symbols): Update.
3583 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3584 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3585 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3586 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3587 Change type of "callback". Remove "data".
3588
3589
3590 2019-09-09 Ali Tamur <tamur@google.com>
3591
3592 * dwarf2read.c (comp_unit_head): Update comment.
3593 (dwarf2_dwo_name): New function declaration.
3594 (dwarf_unit_type_name): New function declaration.
3595 (read_comp_unit_head): Add support for new compilation units,
3596 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3597 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3598 (currently named as "signature") in their header. Also clarify error
3599 messages.
3600 (lookup_dwo_id): New function. Returns the dwo id of the given
3601 compile unit.
3602 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3603 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3604 functions.
3605 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3606 (dwarf2_dwo_name): Get the dwo name if present.
3607 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3608 purposes.
3609
3610 2019-09-09 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3613
3614 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3615
3616 * python/python.c (do_start_initialization): Make progname_copy static,
3617 to avoid a leak report.
3618
3619 2019-09-08 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3622
3623 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3624
3625 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3626 Change type to gdb::optional<block_enum>.
3627 (dw2_symtab_iter_init): Change block_index parameter type
3628 to gdb::optional<block_enum>.
3629 (dw2_lookup_symbol): Change block_index parameter
3630 type to block_enum.c
3631 (dw2_debug_names_lookup_symbol): Likewise.
3632 * psymtab.c (psym_lookup_symbol): Likewise.
3633 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3634 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3635 Likewise.
3636
3637 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3638
3639 * defs.h (relocate_gdb_directory): Change int to bool in
3640 signature and rename flag to relocatable.
3641 * main.c (relocate_path): Likewise.
3642 (relocate_gdb_directory): Likewise.
3643
3644 2019-09-06 Alan Modra <amodra@gmail.com>
3645
3646 * coffread.c (coff_symfile_read): Constify filename variable.
3647 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3648 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3649 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3650 * solib.c (reload_shared_libraries_1): Likewise.
3651 * symfile.c (reread_symbols): Likewise.
3652 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3653 * solib-darwin.c (darwin_bfd_open): Likewise.
3654 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3655
3656 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3659 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3660
3661 2019-09-03 Tom Tromey <tromey@adacore.com>
3662
3663 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3664 types.
3665 (has_negatives): Unbias a range type bound.
3666 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3667 * gdbtypes.c (operator==): Handle new field.
3668 (create_range_type): Add "bias" parameter.
3669 (create_static_range_type, resolve_dynamic_range): Update.
3670 * gdbtypes.h (struct range_bounds) <bias>: New member.
3671 (create_range_type): Add bias parameter.
3672 * printcmd.c (print_scalar_formatted): Unbias range types.
3673 * value.c (unpack_long): Unbias range types.
3674 (pack_long): Bias range types.
3675
3676 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3677
3678 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3679 probe arguments.
3680
3681 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3682
3683 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3684 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3685 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3686 (compile_probe_arg): Likewise.
3687 * probe.h (get_argument_count): Likewise.
3688 * solib-svr4.c (solib_event_probe_action): Likewise.
3689 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3690
3691 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3692
3693 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3694 code to here...
3695 (svr4_create_solib_event_breakpoints): ...from here.
3696
3697 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3698
3699 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3700 suffix from warning message.
3701
3702 2019-08-30 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-winsource.h (struct tui_source_window_base)
3705 <refresh_all>: Don't declare.
3706 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3707 Remove.
3708 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3709 tui_show_locator_content.
3710 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3711 declare.
3712 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3713 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3714 declare.
3715
3716 2019-08-30 Tom Tromey <tom@tromey.com>
3717
3718 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3719
3720 2019-08-30 Tom Tromey <tom@tromey.com>
3721
3722 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3723 Remove unnecessary forward declarations.
3724
3725 2019-08-30 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3728 rerender.
3729 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3730 tui_show_locator_content.
3731
3732 2019-08-30 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3735 (tui_locator_window::rerender): Rewrite using body of previous
3736 tui_show_locator_content.
3737
3738 2019-08-30 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3741 set_locator_fullname>: New methods.
3742 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3743 Rename from tui_set_locator_fullname.
3744 (tui_locator_window::set_locator_info): Rename from
3745 tui_set_locator_info. Return bool.
3746 (tui_update_locator_fullname, tui_show_frame_info): Update.
3747
3748 2019-08-30 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3751
3752 2019-08-30 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3755 call touchwin.
3756
3757 2019-08-30 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-wingeneral.c (box_win): Assume win_info and
3760 win_info->handle cannot be NULL.
3761
3762 2019-08-30 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3765 refresh_window>: Declare.
3766 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3767 resize.
3768 (tui_data_item_window::rerender): Rename from
3769 tui_display_register.
3770 (tui_data_item_window::refresh_window): New method.
3771 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3772 no-op.
3773
3774 2019-08-30 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3777 regs_column_count, current_group>: Move later. Now private.
3778 <get_current_group>: New method.
3779 * tui/tui-regs.c (tui_reg_command): Update.
3780 * tui/tui-layout.c (tui_set_layout): Update.
3781
3782 2019-08-30 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3785 (tui_data_window::rerender): Don't call
3786 check_and_display_highlight_if_needed.
3787 (tui_data_window::refresh_all): Remove call to
3788 erase_data_content.
3789
3790 2019-08-30 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3793 (tui_data_window::display_registers_from)
3794 (tui_data_window::display_reg_element_at_line)
3795 (tui_data_window::display_registers_from_line): Remove checks of
3796 "empty".
3797
3798 2019-08-30 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3801 Don't declare.
3802 * tui/tui-regs.c (tui_data_window::show_registers): Call
3803 rerender.
3804 (tui_data_window::rerender): Rename from display_all_data.
3805 (tui_data_window::rerender): Remove old implementation.
3806
3807 2019-08-30 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3810 text.
3811 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3812
3813 2019-08-29 Bernhard Wodok <barto@gmx.net>
3814 Sergio Durigan Junior <sergiodj@redhat.com>
3815
3816 PR win32/24284
3817 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3818
3819 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3822 when searching for types.
3823
3824 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * f-lang.c (f_language_defn): Use f_print_typedef.
3827 * f-lang.h (f_print_typedef): Declare.
3828 * f-typeprint.c (f_print_typedef): Define.
3829
3830 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3831
3832 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3833
3834 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3835
3836 * cli/cli-utils.c (info_print_options_defs): Delete.
3837 (make_info_print_options_def_group): Delete.
3838 (extract_info_print_options): Delete.
3839 (info_print_command_completer): Delete.
3840 (info_print_args_help): Add extra parameter, and optionally
3841 include text about -n flag.
3842 * cli/cli-utils.h (struct info_print_options): Delete.
3843 (extract_info_print_options): Delete declaration.
3844 (info_print_command_completer): Delete declaration.
3845 (info_print_args_help): Add extra parameter, extend header
3846 comment.
3847 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3848 search_symbols.
3849 * stack.c (struct info_print_options): New type.
3850 (info_print_options_defs): New file scoped variable.
3851 (make_info_print_options_def_group): New static function.
3852 (info_print_command_completer): New static function.
3853 (info_locals_command): Update to use new local functions.
3854 (info_args_command): Likewise.
3855 (_initialize_stack): Add extra parameter to calls to
3856 info_print_args_help.
3857 * symtab.c (search_symbols): Add extra parameter, use this to
3858 possibly excluse non-debug symbols.
3859 (symtab_symbol_info): Add extra parameter, which is passed on to
3860 search_symbols.
3861 (struct info_print_options): New type.
3862 (info_print_options_defs): New file scoped variable.
3863 (make_info_print_options_def_group): New static function.
3864 (info_print_command_completer): New static function.
3865 (info_variables_command): Update to use local functions, and pass
3866 extra parameter through to symtab_symbol_info.
3867 (info_functions_command): Likewise.
3868 (info_types_command): Pass additional argument through to
3869 symtab_symbol_info.
3870 (rbreak_command): Pass extra argument to search_symbols.
3871 (_initialize_symtab): Add extra arguments for calls to
3872 info_print_args_help, and update help text for 'info variables',
3873 'whereis', and 'info functions' commands.
3874 * symtab.h (search_symbols): Add extra argument to declaration.
3875 * NEWS: Mention new flags.
3876
3877 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3878
3879 * symtab.c (lookup_static_symbol): Call the new function (and move
3880 it down to be next to lookup_global_symbol).
3881 (struct global_sym_lookup_data): Add block_enum member and rename to...
3882 (struct global_or_static_sym_lookup_data): ...this.
3883 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3884 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3885 (lookup_symbol_global_or_static_iterator_cb): ...this.
3886 (lookup_global_or_static_symbol): New function.
3887 (lookup_global_symbol): Call new function.
3888
3889 2019-08-26 Tom de Vries <tdevries@suse.de>
3890
3891 PR c++/24852
3892 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3893 when pc_probe.prob == NULL.
3894
3895 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3898 variable symbol_linkage to symbol_linkage_.
3899
3900 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3901
3902 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3903 represent whether the symbol is static, dynamic, or we don't
3904 know.
3905
3906 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3907
3908 * gdb/rx-tdep.c (rx_register_names): New.
3909 (rx_register_name): Delete.
3910 (rx_psw_type): Delete.
3911 (rx_fpsw_type): Delete.
3912 (rx_register_type): Delete.
3913 (rx_gdbarch_init): Convert target-descriptions.
3914 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3915 * gdb/features/Makefile: Add rx.xml.
3916 * gdb/features/rx.xml: New.
3917 * gdb/features/rx.c: Generated.
3918 * gdb/NEWS: Mention target description support.
3919
3920 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3921
3922 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3923 *slot_ptr.
3924
3925 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3926
3927 * configure.ac: Don't check for 'dlfcn.h' (moved to
3928 gdbsupport/common.m4).
3929 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3930 'gdbsupport/'.
3931 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3932 * compile/compile-c-support.c: Include
3933 'gdbsupport/gdb-dlfcn.h'.
3934 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3935 * gdb-dlfcn.c: Move to...
3936 * gdbsupport/gdb-dlfcn.c: ... here.
3937 * gdb-dlfcn.h: Move to...
3938 * gdbsupport/gdb-dlfcn.h: ... here.
3939
3940 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3941
3942 * nios2-tdep.c (struct reg_value): Improve comments. Make
3943 the offset field signed.
3944
3945 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3946
3947 * python/lib/gdb/__init__.py (_execute_file): New function.
3948 * python/python.c (python_run_simple_file): Call gdb._execute_file
3949 on Windows.
3950
3951 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3954 all uses as this was never set to anything but a zero value.
3955
3956 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3957
3958 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3959
3960 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3961
3962 * tui/tui-data.h (tui_gen_win_info): Add an =default
3963 move constructor, required by some GCC versions.
3964
3965 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3966
3967 * go32-nat.c (go32_sysinfo): Add hygon_p.
3968
3969 2019-08-20 Tom Tromey <tom@tromey.com>
3970
3971 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3972 line_from_reg_element_no, first_reg_element_no_inline,
3973 display_all_data, delete_data_content_windows,
3974 erase_data_content>: Now private.
3975
3976 2019-08-20 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3979 (tui_unhighlight_win, tui_highlight_win)
3980 (tui_win_info::make_window): Update.
3981 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3982
3983 2019-08-20 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3986 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3987 (MAX_PID_WIDTH): Move to tui-stack.c.
3988 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3989 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3990 (MAX_PID_WIDTH): Move from tui-data.h.
3991
3992 2019-08-20 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3995 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3996 (box_win): Update.
3997 (tui_gen_win_info::make_window): Rename from tui_make_window.
3998 (tui_win_info::make_window): New method.
3999 (tui_gen_win_info::make_visible): Update.
4000 * tui/tui-source.c (tui_source_window::set_contents): Update.
4001 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4002 (tui_data_window::display_registers_from): Update.
4003 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4004 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4005 Declare.
4006 <can_box>: Remove.
4007 <title>: Remove.
4008 (struct tui_win_info) <make_window>: Declare.
4009 <can_box>: Now virtual.
4010 <title>: New member.
4011 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4012 * tui/tui-command.c (tui_cmd_window::resize): Update.
4013
4014 2019-08-20 Tom Tromey <tom@tromey.com>
4015
4016 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4017 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4018 (tui_data_window::check_register_values): Update.
4019
4020 2019-08-20 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-regs.h (struct tui_data_window): Use
4023 DISABLE_COPY_AND_ASSIGN.
4024 <regs_content>: Change type, removing unique_ptr.
4025 <tui_data_window>: Add move constructor.
4026 * tui/tui-regs.c (tui_data_window::show_registers)
4027 (tui_data_window::show_register_group)
4028 (tui_data_window::display_registers_from)
4029 (tui_data_window::display_registers_from)
4030 (tui_data_window::first_data_item_displayed)
4031 (tui_data_window::delete_data_content_windows)
4032 (tui_data_window::rerender, tui_data_window::refresh_window)
4033 (tui_data_window::check_register_values): Update.
4034
4035 2019-08-20 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4038 show_register_group>: Declare.
4039 (tui_show_register_group): Don't declare.
4040 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4041 tui_show_registers.
4042 (tui_data_window::show_register_group): Rename from
4043 tui_show_register_group.
4044 (tui_data_window::check_register_values, tui_reg_command):
4045 Update.
4046 * tui/tui-layout.c (tui_set_layout): Update.
4047
4048 2019-08-20 Tom Tromey <tom@tromey.com>
4049
4050 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4051 Declare.
4052 (tui_check_register_values): Don't declare.
4053 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4054 from tui_check_register_values.
4055 * tui/tui-hooks.c (tui_register_changed): Update.
4056
4057 2019-08-20 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-regs.c (tui_reg_layout): Move later.
4060 (tui_show_registers): Don't enable TUI mode or change layout.
4061
4062 2019-08-20 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-regs.h (struct tui_data_item_window)
4065 <~tui_data_item_window>: Remove.
4066 <content>: Now a unique_xmalloc_ptr.
4067 * tui/tui-regs.c (tui_register_format): Return a
4068 unique_xmalloc_ptr.
4069 (tui_get_register): Update.
4070 (~tui_data_item_window): Remove.
4071 (tui_data_window::display_registers_from, tui_display_register):
4072 Update.
4073 * tui/tui-io.h (tui_expand_tabs): Update.
4074 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4075 Remove "col" parameter.
4076
4077 2019-08-20 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4080 field.
4081 * tui/tui-regs.c (~tui_data_item_window): Update.
4082
4083 2019-08-20 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4086 earlier.
4087
4088 2019-08-20 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4091
4092 2019-08-20 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui-source.h (struct tui_source_window): Update.
4095 * tui/tui-regs.c (tui_show_registers): Update.
4096 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4097 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4098 (NO_REGS_STRING): Remove defines.
4099
4100 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4101
4102 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4103 unnecessary thread walk if remote doesn't support the packet.
4104
4105 2019-08-19 Tom Tromey <tromey@adacore.com>
4106
4107 * python/py-value.c (value_has_field): Fix indentation.
4108
4109 2019-08-19 Tom Tromey <tromey@adacore.com>
4110
4111 * printcmd.c (do_one_display, info_display_command): Update.
4112 * block.h (contained_in): Return bool. Add allow_nested
4113 parameter.
4114 * block.c (contained_in): Return bool. Add allow_nested
4115 parameter.
4116
4117 2019-08-19 Tom Tromey <tom@tromey.com>
4118
4119 * configure: Rebuild.
4120 * configure.ac: Disallow the combination of -static-libstdc++ and
4121 source highlight.
4122 * source-cache.c (get_language_name): Handle rust.
4123 (source_cache::get_source_lines): Ignore highlighting exceptions.
4124
4125 2019-08-16 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4128 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4129 (struct tui_source_window_base) <make_visible, refresh_window,
4130 resize>: Remove methods.
4131 <execution_info>: Remove field.
4132 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4133 (tui_show_source_line, tui_source_window_base)
4134 (~tui_source_window_base): Update.
4135 (tui_source_window_base::resize)
4136 (tui_source_window_base::make_visible)
4137 (tui_source_window_base::refresh_window): Remove.
4138 (tui_source_window_base::update_exec_info): Update.
4139 * tui/tui-source.c (tui_source_window::set_contents): Update.
4140 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4141
4142 2019-08-16 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4145 deprecated_query_hook.
4146
4147 2019-08-16 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4150 (tui_update_source_windows_with_line): Update.
4151 * tui/tui-source.h (struct tui_source_window)
4152 <show_symtab_source>: Declare.
4153 (tui_show_symtab_source): Don't declare.
4154 * tui/tui-source.c (tui_show_symtab_source): Rename from
4155 tui_show_symtab_source.
4156
4157 2019-08-16 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-winsource.h (struct tui_source_window_base)
4160 <set_contents>: Declare.
4161 * tui/tui-winsource.c
4162 (tui_source_window_base::update_source_window_as_is): Update.
4163 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4164 Declare.
4165 (tui_set_source_content): Don't declare.
4166 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4167 tui_set_source_content.
4168 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4169 Declare.
4170 (tui_set_disassem_content): Don't declare.
4171 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4172 tui_set_disassem_content.
4173
4174 2019-08-16 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-winsource.h (struct tui_source_window_base)
4177 <update_breakpoint_info>: Declare.
4178 (tui_update_breakpoint_info): Don't declare.
4179 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4180 (tui_update_all_breakpoint_info): Update.
4181 (tui_source_window_base::update_breakpoint_info): Rename from
4182 tui_update_breakpoint_info.
4183 (tui_source_window_base::update_exec_info): Update.
4184
4185 2019-08-16 Tom Tromey <tom@tromey.com>
4186
4187 * tui/tui-winsource.h (struct tui_source_window_base)
4188 <update_source_window>: Declare.
4189 (tui_update_source_window): Don't declare.
4190 * tui/tui-winsource.c
4191 (tui_source_window_base::update_source_window): Rename from
4192 tui_update_source_window.
4193 (tui_source_window_base::rerender): Update.
4194 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4195 * tui/tui-disasm.c (tui_show_disassem)
4196 (tui_show_disassem_and_update_source)
4197 (tui_disasm_window::maybe_update): Update.
4198
4199 2019-08-16 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui-winsource.h (struct tui_source_window_base)
4202 <update_source_window_as_is>: Declare.
4203 (tui_update_source_window_as_is): Don't declare.
4204 * tui/tui-winsource.c (tui_update_source_window): Update
4205 (tui_source_window_base::update_source_window_as_is): Rename from
4206 tui_update_source_window_as_is.
4207 (tui_source_window_base::refill): Update.
4208 * tui/tui-source.c (tui_show_symtab_source): Update.
4209 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4210 Update.
4211
4212 2019-08-16 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-winsource.h (tui_update_source_window)
4215 (tui_update_source_window_as_is): Remove "noerror" parameter.
4216 * tui/tui-winsource.c (tui_update_source_window)
4217 (tui_update_source_window_as_is): Remove "noerror" parameter.
4218 (tui_update_source_windows_with_addr)
4219 (tui_update_source_windows_with_line)
4220 (tui_source_window_base::rerender)
4221 (tui_source_window_base::refill): Update.
4222 * tui/tui-source.h (tui_set_source_content)
4223 (tui_show_symtab_source): Remove "noerror" parameter.
4224 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4225 parameter.
4226 (tui_show_symtab_source): Likewise.
4227 (tui_source_window::maybe_update): Update.
4228 * tui/tui-disasm.c (tui_show_disassem)
4229 (tui_show_disassem_and_update_source)
4230 (tui_disasm_window::do_scroll_vertical)
4231 (tui_disasm_window::maybe_update): Update.
4232
4233 2019-08-16 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui.c (tui_is_window_visible): Update.
4236 * tui/tui-wingeneral.c (tui_make_window)
4237 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4238 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4239 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4240 (tui_set_win_height_command, parse_scrolling_args): Update.
4241 * tui/tui-source.c (tui_source_window::style_changed): Update.
4242 * tui/tui-regs.c (tui_show_registers)
4243 (tui_data_window::first_data_item_displayed)
4244 (tui_data_window::delete_data_content_windows)
4245 (tui_check_register_values, tui_reg_command): Update.
4246 * tui/tui-disasm.c (tui_show_disassem): Update.
4247 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4248 method.
4249 <is_visible>: Remove field.
4250 * tui/tui-data.c (tui_next_win, tui_prev_win)
4251 (tui_delete_invisible_windows): Update.
4252
4253 2019-08-16 Tom Tromey <tom@tromey.com>
4254
4255 * tui/tui-winsource.h (struct tui_source_window_base)
4256 <m_has_locator>: Remove.
4257 * tui/tui-layout.c (show_source_disasm_command, show_data)
4258 (show_source_or_disasm_and_command): Update.
4259
4260 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4261
4262 * NEWS (Other MI changes): New subsection.
4263 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4264 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4265 * arch-utils.c (default_get_pc_address_flags): New function.
4266 * arch-utils.h (default_get_pc_address_flags): New declaration.
4267 * gdbarch.sh: Add get_pc_address_flags.
4268 * gdbarch.c: Regenerate.
4269 * gdbarch.h: Likewise.
4270 * stack.c (print_pc): New function.
4271 (print_frame_info) (print_frame): Call print_pc.
4272
4273 2019-08-16 Tom de Vries <tdevries@suse.de>
4274
4275 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4276 print_objfile_section_info.
4277
4278 2019-08-15 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4281 calling update_cmdwin_start_line.
4282 * tui/tui-winsource.h (struct tui_source_window_base)
4283 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4284 <rerender>: Declare.
4285 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4286 Call rerender.
4287 (tui_source_window_base::set_new_height): Remove.
4288 (tui_source_window_base::rerender): Rename from
4289 do_make_visible_with_new_height.
4290 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4291 resize method.
4292 (tui_win_info::make_invisible_and_set_new_height)
4293 (tui_win_info::make_visible_with_new_height): Remove.
4294 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4295 Declare.
4296 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4297 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4298 do_make_visible_with_new_height>: Don't declare.
4299 <rerender>: Declare.
4300 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4301 set_new_height.
4302 (tui_data_window::do_make_visible_with_new_height): Remove.
4303 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4304 call tui_show_locator_content.
4305 (tui_gen_win_info::resize): Call rerender.
4306 (show_source_or_disasm_and_command): Don't call
4307 tui_show_locator_content.
4308 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4309 method.
4310 (struct tui_win_info) <rerender>: Declare.
4311 <set_new_height, make_invisible_and_set_new_height,
4312 make_visible_with_new_height>: Don't declare.
4313 * tui/tui-data.c (tui_win_list::rerender): New method.
4314 * tui/tui-command.h (struct tui_cmd_window)
4315 <do_make_visible_with_new_height>: Don't declare.
4316 * tui/tui-command.c
4317 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4318
4319 2019-08-15 Tom Tromey <tromey@adacore.com>
4320
4321 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4322 * ada-lang.c (ada_enum_name): Likewise.
4323
4324 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4325
4326 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4327 leading underscore.
4328 (GdbOutputErrorFile): Likewise.
4329 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4330 accordingly.
4331 (execute_unwinders): Rename to have a leading underscore.
4332 (auto_load_packages): Likewise.
4333 (global scope): Adjust call to auto_load_packages accordingly.
4334 (GdbSetPythonDirectory): Likewise.
4335 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4336 instead of execute_unwinders.
4337
4338 2019-08-15 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4341 (show_data): Don't change window visibility.
4342 (tui_gen_win_info::resize): Remove special case for command
4343 window. Use wresize, when available.
4344 (show_source_or_disasm_and_command): Don't change window
4345 visibility.
4346 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4347 <make_visible>: New method.
4348 * tui/tui-command.c (tui_cmd_window::resize): New method.
4349
4350 2019-08-15 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4353 (struct tui_source_windows): New.
4354 * tui/tui-winsource.c (tui_display_main): Update.
4355 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4356 (new_height_ok, parse_scrolling_args): Update.
4357 * tui/tui-layout.c (show_layout, show_data): Update.
4358 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4359 (tui_add_to_source_windows): Don't declare.
4360 * tui/tui-data.c (source_windows, tui_source_windows)
4361 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4362
4363 2019-08-15 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4366 Rename from reset.
4367 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4368 * tui/tui-layout.c (show_source_disasm_command, show_data):
4369 Update.
4370 (tui_gen_win_info::resize): Rename.
4371 (show_source_or_disasm_and_command): Update.
4372 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4373 reset.
4374
4375 2019-08-15 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4378 * tui/tui-interp.c (tui_interp::init): Don't call
4379 tui_initialize_static_data.
4380 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4381
4382 2019-08-15 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4385 examine tui_win_list.
4386
4387 2019-08-15 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4390 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4391 tui_clear_source_content.
4392 (tui_clear_source_content): Remove.
4393 (tui_source_window_base::do_erase_source_content): Hoist call to
4394 content.clear().
4395 * tui/tui-stack.c (tui_show_frame_info): Don't call
4396 tui_clear_source_content.
4397
4398 2019-08-15 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-winsource.h (struct tui_source_window_base)
4401 <do_erase_source_content>: New method.
4402 <erase_source_content>: New method.
4403 (tui_erase_source_content): Don't declare.
4404 * tui/tui-winsource.c (tui_clear_source_content): Update.
4405 (tui_source_window_base::do_erase_source_content): Rename from
4406 tui_erase_source_content.
4407 (tui_source_window_base::show_source_content): Update.
4408 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4409 * tui/tui-source.h (struct tui_source_window)
4410 <erase_source_content>: New method.
4411 * tui/tui-disasm.h (struct tui_disasm_window)
4412 <erase_source_content>: New method.
4413
4414 2019-08-15 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4417 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4418 constructor.
4419 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4420 * tui/tui-source.c (tui_set_source_content): Update.
4421 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4422
4423 2019-08-15 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4426 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4427 tui-source.c.
4428 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4429 Declare.
4430 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4431 method.
4432 (tui_source_window::maybe_update): Update.
4433
4434 2019-08-15 Tom Tromey <tom@tromey.com>
4435
4436 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4437 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4438 tui-disasm.c.
4439 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4440 Declare.
4441 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4442 method.
4443 (tui_disasm_window::maybe_update): Update.
4444
4445 2019-08-15 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-winsource.h (struct tui_source_window_base)
4448 <maybe_update>: Declare.
4449 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4450 method.
4451 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4452 Declare.
4453 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4454 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4455 Declare.
4456 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4457
4458 2019-08-15 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4461
4462 2019-08-15 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-wingeneral.c: Include tui-stack.h.
4465 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4466 (struct tui_locator_window): Move from tui-data.h.
4467 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4468 (tui_initialize_static_data): Move from tui-data.c.
4469 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4470 (struct tui_locator_window): Move to tui-stack.c.
4471 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4472 (tui_initialize_static_data): Move to tui-stack.c.
4473
4474 2019-08-15 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-layout.c (show_source_disasm_command)
4477 (show_source_or_disasm_and_command): Use make_visible method, not
4478 tui_make_window.
4479 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4480 Remove.
4481
4482 2019-08-15 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-wingeneral.h (tui_make_window): Update.
4485 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4486 parameter.
4487 (tui_gen_win_info::make_visible): Update.
4488 * tui/tui-regs.c (tui_data_window::display_registers_from):
4489 Update.
4490 * tui/tui-layout.c (show_source_disasm_command)
4491 (show_source_or_disasm_and_command): Update.
4492 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4493 (enum tui_box): Remove.
4494 (struct tui_win_info) <can_box>: New method.
4495 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4496 method.
4497
4498 2019-08-15 Tom de Vries <tdevries@suse.de>
4499
4500 * linux-nat-trad.c: Include gdbarch.h.
4501
4502 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4503
4504 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4505 register sizes.
4506
4507 2019-08-14 Tom Tromey <tromey@adacore.com>
4508
4509 * darwin-nat.c: Include gdbarch.h.
4510 * darwin-nat-info.c: Include gdbarch.h.
4511
4512 2019-08-13 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4515 Remove.
4516 * tui/tui-data.c (tui_initialize_static_data): Update.
4517
4518 2019-08-13 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-winsource.h (struct tui_exec_info_window)
4521 <~tui_exec_info_window, maybe_allocate_content, get_content,
4522 m_content>: Remove.
4523 (struct tui_source_window_base) <set_exec_info_content,
4524 show_exec_info_content>: Don't declare.
4525 * tui/tui-winsource.c
4526 (tui_exec_info_window::maybe_allocate_content): Remove.
4527 (tui_source_window_base::update_exec_info): Rename from
4528 set_exec_info_content.
4529 (tui_source_window_base::show_exec_info_content)
4530 (tui_source_window_base::update_exec_info): Remove.
4531
4532 2019-08-13 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4535 declare.
4536 * tui/tui-winsource.c (tui_update_source_window_as_is)
4537 (tui_update_source_windows_with_addr, tui_erase_source_content):
4538 Update.
4539 (tui_clear_exec_info_content): Remove.
4540
4541 2019-08-13 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4544 declare.
4545 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4546 call tui_erase_exec_info_content.
4547 (tui_clear_exec_info_content): Rename from
4548 tui_erase_exec_info_content.
4549 (tui_clear_exec_info_content): Delete.
4550
4551 2019-08-13 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-winsource.h (struct tui_source_window_base)
4554 <show_exec_info_content>: Declare.
4555 (tui_show_exec_info_content): Don't declare.
4556 * tui/tui-winsource.c
4557 (tui_source_window_base::show_exec_info_content): Rename from
4558 tui_show_exec_info_content.
4559 (tui_source_window_base::update_exec_info): Update.
4560
4561 2019-08-13 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4564 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4565 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4566 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4567 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4568 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4569 ... here.
4570
4571 2019-08-13 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.h (struct tui_source_window_base)
4574 <update_exec_info>: Declare.
4575 (tui_update_exec_info): Don't declare.
4576 * tui/tui-winsource.c (tui_update_source_window_as_is)
4577 (tui_source_window_base::refresh_all)
4578 (tui_update_all_breakpoint_info): Update.
4579 (tui_source_window_base::update_exec_info): Rename from
4580 tui_update_exec_info.
4581 * tui/tui-stack.c (tui_show_frame_info): Update.
4582
4583 2019-08-13 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-winsource.h (struct tui_source_window_base)
4586 <set_exec_info_content>: Declare.
4587 (tui_set_exec_info_content): Don't declare.
4588 * tui/tui-winsource.c
4589 (tui_source_window_base::set_exec_info_content): Rename from
4590 tui_set_exec_info_content.
4591 (tui_update_exec_info): Update.
4592
4593 2019-08-13 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-winsource.h (struct tui_source_window_base)
4596 <show_source_content>: Declare.
4597 (tui_show_source_content): Don't declare.
4598 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4599 (tui_source_window_base::show_source_content): Rename from
4600 tui_show_source_content.
4601 (tui_source_window_base::refresh_all): Update.
4602 * tui/tui-layout.c (show_source_disasm_command)
4603 (show_source_or_disasm_and_command): Update.
4604
4605 2019-08-13 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-winsource.c (tui_erase_source_content)
4608 (tui_show_source_content, tui_source_window_base::refresh_all):
4609 Update.
4610 * tui/tui-wingeneral.h
4611 (tui_check_and_display_highlight_if_needed): Don't declare.
4612 * tui/tui-wingeneral.c
4613 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4614 check_and_display_highlight_if_needed.
4615 * tui/tui-win.c (tui_rehighlight_all)
4616 (tui_win_info::make_visible_with_new_height): Update.
4617 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4618 (tui_data_window::erase_data_content)
4619 (tui_data_window::display_all_data): Update.
4620 * tui/tui-data.h (struct tui_win_info)
4621 <check_and_display_highlight_if_needed>: Declare.
4622
4623 2019-08-13 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-win.c (tui_resize_all): Call
4626 tui_delete_invisible_windows.
4627 * tui/tui-layout.c (show_layout): Call
4628 tui_delete_invisible_windows.
4629 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4630 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4631
4632 2019-08-13 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4635 tui_add_win_to_layout.
4636
4637 2019-08-13 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4640 * tui/tui-layout.c (tui_default_win_height): Now static.
4641
4642 2019-08-13 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4645 single switch.
4646 (show_source_disasm_command, show_source_or_disasm_and_command):
4647 Don't check current layout.
4648
4649 2019-08-13 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-wingeneral.c (make_all_visible): Remove.
4652 (tui_make_all_invisible): Simplify.
4653 * tui/tui-layout.c (tui_make_all_invisible): Move from
4654 tui-wingeneral.c; simplify.
4655 (show_layout): Hoist call to tui_make_all_invisible.
4656 (show_data): Don't call tui_make_all_invisible.
4657
4658 2019-08-13 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4661 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4662
4663 2019-08-13 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4666 tui-data.c.
4667 (show_source_disasm_command, show_data)
4668 (show_source_or_disasm_and_command): Don't use
4669 tui_set_current_layout_to.
4670 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4671 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4672 tui-layout.c.
4673 (tui_set_current_layout_to): Remove.
4674
4675 2019-08-13 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-layout.c (tui_set_layout): Update.
4678 * tui/tui-data.h (struct tui_layout_def): Remove.
4679 (tui_layout_def): Don't declare.
4680 * tui/tui-data.c (layout_def): Remove.
4681 (tui_layout_def): Remove.
4682
4683 2019-08-13 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-winsource.h (struct tui_source_window_base)
4686 <clear_detail>: No longer "override".
4687 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4688 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4689 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4690 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4691 Remove.
4692 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4693
4694 2019-08-13 Tom Tromey <tromey@adacore.com>
4695
4696 * tracepoint.c: Don't include readline.h or history.h.
4697
4698 2019-08-12 Tom Tromey <tom@tromey.com>
4699
4700 * configure: Rebuild.
4701 * configure.ac: Check for readline 7.
4702 * NEWS: Mention readline 7 requirement.
4703 * README: Update.
4704
4705 2019-08-12 Tom Tromey <tom@tromey.com>
4706
4707 * mingw-hdep.c (gdb_select): Remove readline hack.
4708
4709 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4710
4711 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4712 when the function fails.
4713
4714 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4715
4716 * s390-tdep.c (s390_type_align): New function.
4717 (s390_gdbarch_init): Set it as type_align gdbarch method.
4718
4719 2019-08-09 Tom de Vries <tdevries@suse.de>
4720
4721 PR gdb/24591
4722 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4723 pc_low with relocation offset.
4724
4725 2019-08-07 Tom Tromey <tromey@adacore.com>
4726
4727 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4728 (print_frame_args): Update.
4729 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4730 Update.
4731 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4732 * frame.h (struct frame_arg): Add initializers.
4733 <error>: Now a unique_xmalloc_ptr.
4734
4735 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4736
4737 * NEWS: Expand the Pointer Authentication entry.
4738 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4739 (aarch64_frame_unmask_lr): ... to this.
4740 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4741 Call aarch64_frame_unmask_lr.
4742 * frame.c (struct frame_info): Add "masked" variable.
4743 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4744 (fprint_frame): Check for masked pc.
4745 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4746 declarations.
4747 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4748 * stack.c (print_frame): Check for masked pc.
4749
4750 2019-08-06 Tom Tromey <tom@tromey.com>
4751
4752 * stabsread.c (patch_block_stabs, read_one_struct_field)
4753 (read_enum_type): Use obstack_strndup.
4754 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4755 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4756 * dwarf2read.c (guess_full_die_structure_name)
4757 (anonymous_struct_prefix): Use obstack_strndup.
4758 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4759 * c-exp.y (yylex): Use obstack_strndup.
4760 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4761 (write_var_or_type): Use obstack_strndup.
4762
4763 2019-08-06 Tom Tromey <tom@tromey.com>
4764
4765 * symfile.c (reread_symbols): Use obstack_strdup.
4766 * stabsread.c (read_type): Use obstack_strdup.
4767 * gdb_obstack.h (obstack_strdup): New overload.
4768 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4769 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4770 (dwarf2_canonicalize_name): Use obstack_strdup.
4771 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4772 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4773 Use obstack_strdup.
4774
4775 2019-08-06 Tom Tromey <tom@tromey.com>
4776
4777 * gdb_obstack.h (obstack_strdup): Define.
4778 * gdb_obstack.c (obstack_strdup): Don't define.
4779
4780 2019-08-06 Tom Tromey <tom@tromey.com>
4781
4782 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4783 obstack_strdup.
4784 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4785 obstack_strdup.
4786 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4787 * stabsread.c (common_block_start): Use obstack_strdup.
4788 * objfiles.c (set_objfile_main_name, objfile): Use
4789 obstack_strdup.
4790 * namespace.c (add_using_directive): Use obstack_strdup.
4791 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4792 * jit.c (finalize_symtab): Use obstack_strdup.
4793 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4794 (guess_partial_die_structure_name, partial_die_info::fixup)
4795 (dwarf2_name): Use obstack_strdup.
4796 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4797 obstack_strdup.
4798 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4799 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4800 obstack_strdup.
4801 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4802
4803 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4804
4805 * unittests/help-doc-selftests.c: New file.
4806 * Makefile.in: Add the new file.
4807
4808 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4809
4810 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4811 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4812 the full first line, except when FOR_VALUE_PREFIX. In this case,
4813 the trailing '.' is not output, and the first character is uppercased.
4814 (print_help_for_command): Update call to print_doc_line.
4815 (print_doc_of_command): Likewise.
4816 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4817 * cli/cli-option.c (append_indented_doc): Do not append newline.
4818 (build_help_option): Append newline after first appended_indented_doc
4819 only if a second call is done.
4820 (build_help): Append 2 new lines before each option, except the first
4821 one.
4822 * compile/compile.c (_initialize_compile): Add new lines after
4823 %OPTIONS%, when not at the end of the help.
4824 Change help doc or code
4825 producing the help doc to respect the invariants.
4826 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4827 Also removed the new line after 'Options:', as all other commands
4828 do not put an empty line between 'Options:' and the first option.
4829 * printcmd.c (_initialize_printcmd): Likewise.
4830 * stack.c (_initialize_stack): Likewise.
4831 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4832 incorrectly telling COMMAND is optional.
4833 * ada-lang.c (_initialize_ada_language): Change help doc or code
4834 producing the help doc to respect the invariants.
4835 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4836 * breakpoint.c (_initialize_breakpoint): Likewise.
4837 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4838 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4839 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4840 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4841 _initialize_cli_style): Likewise.
4842 * corelow.c (core_target_info): Likewise.
4843 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4844 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4845 * filesystem.c (_initialize_filesystem): Likewise.
4846 * frame.c (_initialize_frame): Likewise.
4847 * gnu-nat.c (add_task_commands): Likewise.
4848 * infcall.c (_initialize_infcall): Likewise.
4849 * infcmd.c (_initialize_infcmd): Likewise.
4850 * interps.c (_initialize_interpreter): Likewise.
4851 * language.c (_initialize_language): Likewise.
4852 * linux-fork.c (_initialize_linux_fork): Likewise.
4853 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4854 * maint.c (_initialize_maint_cmds): Likewise.
4855 * memattr.c (_initialize_mem): Likewise.
4856 * printcmd.c (_initialize_printcmd): Likewise.
4857 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4858 _RegEx): Likewise.
4859 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4860 * record-btrace.c (_initialize_record_btrace): Likewise.
4861 * record-full.c (_initialize_record_full): Likewise.
4862 * record.c (_initialize_record): Likewise.
4863 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4864 * regcache.c (_initialize_regcache): Likewise.
4865 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4866 _initialize_remote): Likewise.
4867 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4868 * serial.c (_initialize_serial): Likewise.
4869 * skip.c (_initialize_step_skip): Likewise.
4870 * source.c (_initialize_source): Likewise.
4871 * stack.c (_initialize_stack): Likewise.
4872 * symfile.c (_initialize_symfile): Likewise.
4873 * symtab.c (_initialize_symtab): Likewise.
4874 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4875 * top.c (init_main): Likewise.
4876 * tracefile-tfile.c (tfile_target_info): Likewise.
4877 * tracepoint.c (_initialize_tracepoint): Likewise.
4878 * tui/tui-win.c (_initialize_tui_win): Likewise.
4879 * utils.c (add_internal_problem_command): Likewise.
4880 * valprint.c (value_print_option_defs): Likewise.
4881
4882 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4883
4884 PR build/24886
4885 * configure.ac: Drop enable-libmcheck support.
4886 * configure, config.in: Rebuild.
4887 * libmcheck.m4: Remove.
4888 * acinclude.m4: Don't include it.
4889 * Makefile.in: Don't distribute it.
4890 * top.c (print_gdb_configuration): Don't mention it.
4891
4892 2019-08-06 Tom Tromey <tom@tromey.com>
4893
4894 * utils.c (set_output_style): Sometimes pass stream to
4895 emit_style_escape.
4896 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4897 * record-btrace.c (btrace_insn_history): Update.
4898 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4899 method.
4900 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4901 Update initializers.
4902 <m_uiout>: New field.
4903 <m_di>: Move lower.
4904 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4905 Remove "uiout" parameter.
4906 (dump_insns): Update.
4907 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4908 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4909
4910 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4911
4912 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4913 (error_in_psymtab_expansion): Likewise.
4914 (lookup_symbol_via_quick_fns): Likewise.
4915 (basic_lookup_transparent_type_quick): Likewise.
4916 (basic_lookup_transparent_type_1): Likewise.
4917
4918 2019-08-06 Tom Tromey <tromey@adacore.com>
4919
4920 * source.c (last_source_error): Now bool.
4921 (print_source_lines_base): Make "noprint" bool. Only open
4922 source file when last_source_visited changes.
4923
4924 2019-08-06 Tom Tromey <tromey@adacore.com>
4925
4926 * annotate.c (annotate_source_line): Use g_source_cache.
4927 * source-cache.c (source_cache::get_plain_source_lines): Change
4928 parameters. Populate m_offset_cache.
4929 (source_cache::ensure): New method.
4930 (source_cache::get_line_charpos): New method.
4931 (extract_lines): Move lower. Change parameters.
4932 (source_cache::get_source_lines): Move lower.
4933 * source-cache.h (class source_cache): Update comment.
4934 <get_line_charpos>: New method.
4935 <get_source_lines>: Update comment.
4936 <clear>: Clear m_offset_cache.
4937 <get_plain_source_lines>: Change parameters.
4938 <ensure>: New method
4939 <m_offset_cache>: New member.
4940 * source.c (forget_cached_source_info_for_objfile): Update.
4941 (info_source_command): Use g_source_cache.
4942 (find_source_lines, open_source_file_with_line_charpos): Remove.
4943 (print_source_lines_base, search_command_helper): Use g_source_cache.
4944 * source.h (open_source_file_with_line_charpos): Don't declare.
4945 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4946 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4947 Use g_source_cache.
4948
4949 2019-08-06 Tom Tromey <tromey@adacore.com>
4950
4951 * source-cache.c (source_cache::get_plain_source_lines):
4952 Remove "first_line" and "last_line" parameters.
4953 (source_cache::get_source_lines): Cache plain text.
4954 * source-cache.h (class source_cache)
4955 <get_plain_source_lines>: Update.
4956
4957 2019-08-06 Tom Tromey <tromey@adacore.com>
4958
4959 * source-cache.c (extract_lines): No longer a method.
4960 Changed type of parameter. Include final newline.
4961 (selftests::extract_lines_test): New function.
4962 (_initialize_source_cache): Likewise.
4963 * source-cache.h (class source_cache)
4964 <extract_lines>: Don't declare.
4965
4966 2019-08-06 Tom Tromey <tromey@adacore.com>
4967
4968 * breakpoint.c (init_breakpoint_sal): Update.
4969 (breakpoint): Update.
4970 * breakpoint.h (struct breakpoint) <filter>: Now a
4971 unique_xmalloc_ptr.
4972
4973 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4974
4975 * NEWS: Mention dictionary access on blocks.
4976 * python/py-block.c (blpy_getitem): New function.
4977 (block_object_as_mapping): New struct.
4978 (block_object_type): Use new struct for tp_as_mapping field.
4979
4980 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4981
4982 * objfiles.h (objfile): Add a comment describing partial symbols.
4983
4984 2019-08-05 Tom Tromey <tromey@adacore.com>
4985
4986 * compile/compile.c (_initialize_compile): Use _(), not N_().
4987 * thread.c (_initialize_thread): Use _(), not N_().
4988 * stack.c (_initialize_stack): Use _(), not N_().
4989 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4990
4991 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4992
4993 * dwarf2read.c (struct dw2_symtab_iterator):
4994 <want_specific_block>: Remove.
4995 <block_index>: Change type to gdb::optional.
4996 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4997 change type of BLOCK_INDEX parameter to gdb::optional.
4998 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4999 (dw2_lookup_symbol): Don't pass argument for
5000 WANT_SPECIFIC_BLOCK.
5001 (dw2_expand_symtabs_for_function): Don't pass argument for
5002 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5003 (class dw2_debug_names_iterator)
5004 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5005 parameter, change BLOCK_INDEX type to gdb::optional.
5006 <m_want_specific_block>: Remove.
5007 <m_block_index>: Change type to gdb::optional.
5008 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5009 gdb::optional. Re-write in function of gdb::optional.
5010 (dw2_debug_names_lookup_symbol): Don't pass argument for
5011 WANT_SPECIFIC_BLOCK.
5012 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5013 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5014 BLOCK_INDEX.
5015
5016 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * NEWS: Mention changes to "info sources" command.
5019
5020 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * symtab.c (filename_partial_match_opts): New struct type.
5023 (struct output_source_filename_data): New members
5024 regexp, c_regexp, partial_match.
5025 (output_source_filename): Use new members to decide to print file.
5026 (info_sources_option_defs): New variable.
5027 (make_info_sources_options_def_group, print_info_sources_header,
5028 info_sources_command_completer):
5029 New functions.
5030 (info_sources_command): Read new optional arguments.
5031 (_initialize_symtab): Update info sources help.
5032
5033 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5034
5035 * ada-lang.c (exception_support_info_v0): Renamed from...
5036 (default_exception_support_info): ... this. Create new
5037 definition for v1.
5038 (ada_has_this_exception_support): Look up catch_handlers_sym.
5039 (ada_exception_support_info_sniffer): Try v0 after default.
5040
5041 2019-08-01 Tom Tromey <tromey@adacore.com>
5042
5043 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5044 gdbarch.h.
5045
5046 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5047
5048 * s12z-tdep.c: Fix include path for s12z-opc.h.
5049
5050 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5051
5052 * NEWS: Require GNU make 3.82.
5053
5054 2019-07-16 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5057 declare.
5058
5059 2019-07-30 Tom Tromey <tromey@adacore.com>
5060
5061 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5062
5063 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5064
5065 * printcmd.c (print_address_symbolic): Print negative offsets.
5066 (build_address_symbolic): Force signed arithmetic when computing
5067 offset.
5068
5069 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5070
5071 PR/24474: Add a function to lookup static variables.
5072 * NEWS: Mention this new function.
5073 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5074 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5075 * python/python.c (python_GdbMethods): Add new function.
5076
5077 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5078
5079 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5080 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5081 (objfpy_lookup_static_symbol): New function.
5082 (objfile_object_methods): Add new functions.
5083
5084 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5085
5086 * NEWS: Mention 'set|show print frame-info'. Mention new
5087 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5088 backtrace argument. Mention that python frame filtering code
5089 is now consistent with what 'backtrace' command prints.
5090
5091 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5092
5093 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5094 comments.
5095 (print_frame_info_auto, print_frame_info_source_line,
5096 print_frame_info_location, print_frame_info_source_and_location,
5097 print_frame_info_location_and_address, print_frame_info_short_location):
5098 New declarations.
5099 (struct frame_print_options): New member print_frame_info.
5100 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5101 * stack.h (get_user_print_what_frame_info): New declaration.
5102 (frame_show_address): New declaration.
5103 * stack.c (print_frame_arguments_choices): New value 'presence'.
5104 (print_frame_info_auto, print_frame_info_source_line,
5105 print_frame_info_location, print_frame_info_source_and_location,
5106 print_frame_info_location_and_address, print_frame_info_short_location,
5107 print_frame_info_choices, print_frame_info_print_what): New definitions.
5108 (print_frame_args): Only print dots for args if print frame-arguments
5109 is 'presence'.
5110 (frame_print_option_defs): New element for "frame-info".
5111 (get_user_print_what_frame_info): New function.
5112 (frame_show_address): Make non static. Move comment to stack.h.
5113 (print_frame_info_to_print_what): New function.
5114 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5115 to decide what to print.
5116 (backtrace_command_1): Handle the new print_frame_arguments_presence
5117 value.
5118 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5119 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5120 (py_print_frame): In non-mi mode, use LOCATION as default for
5121 print_what, similarly to frame information printed directly by
5122 backtrace command. Handle frame-info user option in non MI mode.
5123
5124 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5125
5126 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5127 Add case for debugging 32-bit target on 64-bit host. Revise
5128 comment.
5129
5130 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5131
5132 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5133 instead of find_function_entry_range_from_pc.
5134
5135 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5136
5137 * stack.c (find_frame_funname): Remove code which preferred
5138 minsym over symtab sym in "certain pathological cases".
5139
5140 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5141 parameter. Change type of "do_demangle" to bool.
5142 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5143 Pass suitable "prefer_sym_over_minsym" flag to
5144 build_address_symbolic(). Don't output "+" for negative offsets.
5145 * printcmd.c (print_address_symbolic): Update invocation of
5146 build_address_symbolic to include a "prefer_sym_over_minsym"
5147 flag.
5148 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5149 Restrict cases in which use of minimal symbol is preferred to that
5150 of a found symbol. Update comments.
5151
5152 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5153 for entry pc when entry pc is out of range for that FDE.
5154
5155 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5156
5157 PR gdb/24839:
5158 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5159 type.
5160
5161 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5162
5163 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5164 this function's Python signature.
5165
5166
5167 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5168
5169 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5170 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5171 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5172 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5173 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5174
5175
5176 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5177
5178 * h8300-tdep.c (h8300_register_name_common): New.
5179 h8300_register_name): Use h8300_register_name_common.
5180 (h8300s_register_name): Likewise.
5181 (h8300sx_register_name): Likewise.
5182 (h8300h_register_nam): New.
5183 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5184
5185
5186 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5187
5188 * arm-tdep.c (arm_skip_cmse_entry): New function.
5189 (arm_is_sgstubs_section): New function.
5190 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5191
5192 2019-07-22 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5195 Don't self-assign.
5196
5197 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5200 type_print.
5201
5202 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5205 so that GDB doesn't match any msymbols when searching in the
5206 TYPES_DOMAIN.
5207 (print_symbol_info): Print using typedef_print or type_print based
5208 on the type of the symbol. Add updated FIXME comment moved from...
5209 (_initialize_symtab): ... move and update FIXME comment to above.
5210
5211 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * NEWS: Mention adding -q option to "info types".
5214 * symtab.c (struct info_types_options): New struct.
5215 (info_types_options_defs): New variable.
5216 (make_info_types_options_def_group): New function.
5217 (info_types_command): Use gdb::option framework to parse options.
5218 (info_types_command_completer): New function.
5219 (_initialize_symtab): Extend the help text on "info types" and
5220 register command completer.
5221
5222 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5223
5224 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5225 (lookup_symbol_in_objfile): Change int to block_enum and add a
5226 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5227
5228 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5229
5230 * MAINTAINERS (Write After Approval): Add self.
5231
5232 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5235 instruction to the dummy code region.
5236
5237 2019-07-19 Tom Tromey <tromey@adacore.com>
5238
5239 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5240 (ARGSUSED, PARAMS, __func__): Remove rules.
5241
5242 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5243
5244 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5245 * features/arm/arm-with-iwmmxt.c: Remove.
5246 * features/arm/arm-with-iwmmxt.xml: Remove.
5247 * features/arm/arm-with-m-fpa-layout.c: Remove.
5248 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5249 * features/arm/arm-with-m-vfp-d16.c: Remove.
5250 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5251 * features/arm/arm-with-m.c: Remove.
5252 * features/arm/arm-with-m.xml: Remove.
5253 * features/arm/arm-with-neon.c: Remove.
5254 * features/arm/arm-with-neon.xml: Remove.
5255 * features/arm/arm-with-vfpv2.c: Remove.
5256 * features/arm/arm-with-vfpv2.xml: Remove.
5257 * features/arm/arm-with-vfpv3.c: Remove.
5258 * features/arm/arm-with-vfpv3.xml: Remove.
5259
5260 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5261
5262 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5263
5264 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5265
5266 * arch/aarch32.c (aarch32_create_target_description): Create
5267 target descriptions using features.
5268 * arch/arm.c (arm_create_target_description)
5269 (arm_create_mprofile_target_description): Likewise.
5270 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5271
5272 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5273
5274 * Makefile.in: Add new files.
5275 * aarch32-tdep.c: New file.
5276 * aarch32-tdep.h: New file.
5277 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5278 Call aarch32_read_description.
5279 * arch/aarch32.c: New file.
5280 * arch/aarch32.h: New file.
5281 * arch/arm.c (arm_create_target_description)
5282 (arm_create_mprofile_target_description): New function.
5283 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5284 (arm_create_target_description)
5285 (arm_create_mprofile_target_description): New declaration.
5286 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5287 read_description functions.
5288 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5289 Likewise.
5290 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5291 * arm-tdep.c (tdesc_arm_list): New variable.
5292 (arm_register_g_packet_guesses): Call create description functions.
5293 (arm_read_description) (arm_read_mprofile_description): New
5294 function.
5295 * arm-tdep.h (arm_read_description)
5296 (arm_read_mprofile_description): Add declaration.
5297 * configure.tgt: Add new files.
5298
5299 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5300
5301 * top.c (new_ui_command): Open specified terminal just once.
5302
5303 2019-07-18 Tom Tromey <tromey@adacore.com>
5304
5305 * symtab.c (main_name): Constify return type.
5306 * symfile.c (set_initial_language): Update.
5307 * symtab.h (main_name): Constify return type.
5308
5309 2019-07-17 Tom Tromey <tom@tromey.com>
5310
5311 * tui/tui-winsource.c (tui_update_source_window)
5312 (tui_update_source_window_as_is)
5313 (tui_update_source_windows_with_line): Remove return.
5314 * tui/tui-disasm.c (tui_show_disassem)
5315 (tui_show_disassem_and_update_source): Remove return.
5316 * tui/tui.c (tui_reset): Remove return.
5317 * tui/tui-wingeneral.c
5318 (tui_check_and_display_highlight_if_needed): Remove return.
5319
5320 2019-07-17 Tom Tromey <tom@tromey.com>
5321
5322 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5323
5324 2019-07-17 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-winsource.h (struct tui_exec_info_window)
5327 (struct tui_source_window_base): Move from tui-data.h.
5328 * tui/tui-winsource.c: Move many method definitions from
5329 elsewhere. Remove "structuring" comments.
5330 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5331 (tui_source_window_base::refresh_window): Move to
5332 tui-winsource.c.
5333 * tui/tui-win.c (tui_source_window_base::refresh_all)
5334 (tui_source_window_base::update_tab_width)
5335 (tui_source_window_base::set_new_height)
5336 (tui_source_window_base::do_make_visible_with_new_height): Move to
5337 tui-winsource.c.
5338 * tui/tui-source.h: Update.
5339 * tui/tui-source.c (tui_source_window_base::reset): Move to
5340 tui-winsource.c.
5341 * tui/tui-disasm.h: Update.
5342 * tui/tui-data.h (struct tui_exec_info_window): Move to
5343 tui-winsource.h.
5344 (struct tui_source_window_base): Likewise.
5345 * tui/tui-data.c (tui_source_window_base::clear_detail)
5346 (tui_source_window_base, ~tui_source_window_base): Move to
5347 tui-winsource.c.
5348
5349 2019-07-17 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-win.c (tui_resize_all)
5352 (tui_source_window_base::update_tab_width)
5353 (tui_adjust_win_heights): Update.
5354 (tui_win_info::make_invisible_and_set_new_height): Rename from
5355 make_invisible_and_set_new_height.
5356 * tui/tui-data.h (struct tui_win_info)
5357 <make_invisible_and_set_new_height>: New method.
5358
5359 2019-07-17 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui.c: Update.
5362 * tui/tui-source.h (struct tui_source_window): Move from
5363 tui-data.h.
5364 * tui/tui-layout.c: Update.
5365 * tui/tui-disasm.c: Update.
5366 * tui/tui-data.h (struct tui_source_window): Move to
5367 tui-source.h.
5368
5369 2019-07-17 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5372 tui-data.h.
5373 * tui/tui-data.h (struct tui_disasm_window): Move to
5374 tui-disasm.h.
5375
5376 2019-07-17 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-regs.h (struct tui_data_item_window): Move from
5379 tui-data.h.
5380 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5381 * tui/tui-data.h (struct tui_data_item_window): Move to
5382 tui-regs.h.
5383 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5384
5385 2019-07-17 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui.c: Update.
5388 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5389 (tui_cmd_window::max_height): Move to tui-command.c.
5390 * tui/tui-layout.c: Update.
5391 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5392 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5393 tui-command.c.
5394 * tui/tui-command.h (struct tui_cmd_window): Move from
5395 tui-data.h.
5396 * tui/tui-command.c: Remove "structuring" comments.
5397 (tui_cmd_window::clear_detail)
5398 (tui_cmd_window::do_make_visible_with_new_height)
5399 (tui_cmd_window::max_height): Move from elsewhere.
5400
5401 2019-07-17 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5404 Now static.
5405 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5406 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5407
5408 2019-07-17 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui.c: Update.
5411 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5412 tui-regs.c.
5413 * tui/tui-windata.h: Remove file.
5414 * tui/tui-windata.c: Remove file.
5415 * tui/tui-win.c (tui_data_window::set_new_height)
5416 (tui_data_window::do_make_visible_with_new_height): Move to
5417 tui-regs.c.
5418 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5419 * tui/tui-regs.c: Remove "structuring" comments.
5420 (tui_data_window::first_data_item_displayed)
5421 (tui_data_window::delete_data_content_windows)
5422 (tui_data_window::erase_data_content)
5423 (tui_data_window::display_all_data)
5424 (tui_data_window::refresh_all)
5425 (tui_data_window::do_scroll_vertical)
5426 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5427 (tui_data_window::do_make_visible_with_new_height)
5428 (tui_data_window::refresh_window): Move from elsewhere.
5429 (_initialize_tui_regs): Move to end of file.
5430 * tui/tui-layout.c: Update.
5431 * tui/tui-hooks.c: Update.
5432 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5433 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5434 tui-regs.c.
5435 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5436
5437 2019-07-17 Tom Tromey <tom@tromey.com>
5438
5439 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5440 seen.
5441
5442 2019-07-17 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-win.c (tui_source_window_base::set_new_height)
5445 (tui_source_window_base::do_make_visible_with_new_height): Use
5446 m_has_locator field directly.
5447 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5448 method.
5449 (struct tui_source_window_base) <has_locator>: Likewise.
5450
5451 2019-07-17 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5454 Don't declare.
5455 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5456 Remove.
5457 * tui/tui-win.c (tui_source_window_base::set_new_height)
5458 (tui_source_window_base::set_new_height)
5459 (make_invisible_and_set_new_height)
5460 (tui_source_window_base::do_make_visible_with_new_height)
5461 (tui_source_window_base::do_make_visible_with_new_height):
5462 Update.
5463 * tui/tui-layout.c (show_source_disasm_command, show_data)
5464 (show_source_or_disasm_and_command): Update.
5465 * tui/tui-layout.c (show_layout): Update.
5466
5467 2019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-layout.c (make_data_window): Remove.
5470 (show_data): Unify creation and re-initialization cases.
5471
5472 2019-07-17 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-layout.c (make_source_window, make_disasm_window):
5475 Remove.
5476 (show_data): Unify creation and re-initialization cases.
5477
5478 2019-07-17 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-layout.c (make_command_window): Remove.
5481 (show_source_disasm_command, show_source_or_disasm_and_command):
5482 Unify creation and re-initialization cases.
5483
5484 2019-07-17 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5487 creation and re-initialization cases.
5488
5489 2019-07-17 Tom Tromey <tom@tromey.com>
5490
5491 * tui/tui-regs.c (tui_get_register): Return void.
5492
5493 2019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5496 Simplify.
5497
5498 2019-07-17 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5501 resetting.
5502
5503 2019-07-17 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5506 * tui/tui-regs.c (tui_reg_layout): New function.
5507 (tui_show_registers, tui_reg_command): Use it.
5508 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5509 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5510 parameters.
5511 (tui_layout_command): Remove.
5512
5513 2019-07-17 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-layout.h (tui/tui-layout): Return void.
5516 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5517
5518 2019-07-17 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-layout.c (show_source_disasm_command, show_data):
5521 Update.
5522 (reset_locator): Remove.
5523 (show_source_or_disasm_and_command): Update.
5524
5525 2019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-source.c (tui_source_window_base::reset): Remove
5528 win_type parameter.
5529 * tui/tui-layout.c (make_command_window, make_source_window)
5530 (make_disasm_window, make_data_window)
5531 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5532 (reset_locator, show_source_or_disasm_and_command): Update.
5533 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5534 win_type parameter.
5535 (struct tui_source_window_base) <reset>: Likewise.
5536
5537 2019-07-17 Tom Tromey <tom@tromey.com>
5538
5539 * tui/tui-layout.c (show_source_disasm_command): Use
5540 reset_locator.
5541 (reset_locator): New function.
5542 (init_and_make_win): Remove.
5543 (show_source_or_disasm_and_command): Use reset_locator.
5544
5545 2019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5548 condition.
5549 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5550 Remove condition.
5551 * tui/tui-source.c (tui_source_window_base::reset): New method.
5552 * tui/tui-layout.c (make_command_window): Don't call
5553 init_and_make_win.
5554 (make_source_window, make_disasm_window): Don't call
5555 make_source_or_disasm_window.
5556 (make_data_window): Don't call init_and_make_win. Change calling
5557 convention.
5558 (show_source_disasm_command, show_data): Simplify.
5559 (make_source_or_disasm_window): Remove.
5560 (show_source_or_disasm_and_command): Simplify.
5561 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5562 (struct tui_source_window_base) <reset>: Likewise.
5563 <execution_info>: Remove initializer.
5564 * tui/tui-data.c (tui_source_window_base): Initialize
5565 execution_info.
5566
5567 2019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5570 variable.
5571
5572 2019-07-17 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui.c (tui_rl_other_window): Update.
5575 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5576 superclass method first. Always iterate over regs_content.
5577 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5578 method.
5579 * tui/tui-win.c (tui_set_focus_command): Update.
5580
5581 2019-07-17 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-win.c (tui_set_focus_command): Rename from
5584 tui_set_focus. Call tui_enable.
5585 (tui_set_focus_command): Remove.
5586
5587 2019-07-17 Tom Tromey <tom@tromey.com>
5588
5589 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5590 refresh_window.
5591 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5592 touchwin.
5593 (tui_data_window::refresh_window): Call refresh_window on data
5594 items. Always call superclass refresh_window.
5595 (tui_win_info::refresh): Remove.
5596 (tui_source_window_base::refresh_window): Update.
5597 (tui_refresh_all): Update.
5598 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5599 refresh_window.
5600 (show_source_or_disasm_and_command): Likewise.
5601 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5602 (struct tui_source_window_base) <refresh>: Likewise.
5603
5604 2019-07-17 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-winsource.c (tui_clear_source_content)
5607 (tui_show_source_content): Update.
5608 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5609 whether content is empty.
5610 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5611 Remove.
5612
5613 2019-07-17 Tom Tromey <tom@tromey.com>
5614
5615 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5616 window's contents.
5617 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5618 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5619
5620 2019-07-17 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5623 (struct tui_data_item_window): Update.
5624
5625 2019-07-17 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5628 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5629 defines.
5630
5631 2019-07-17 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-winsource.h (tui_erase_source_content)
5634 (tui_clear_source_content): Remove "display_prompt" parameter.
5635 * tui/tui-winsource.c (tui_update_source_window_as_is)
5636 (tui_update_source_windows_with_addr): Update.
5637 (tui_clear_source_content): Remove "display_prompt" parameter.
5638 (tui_erase_source_content): Likewise. Simplify.
5639 (tui_show_source_content): Update.
5640 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5641 * tui/tui-stack.c (tui_show_frame_info): Update.
5642 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5643 Remove defines.
5644
5645 2019-07-17 Tom Tromey <tom@tromey.com>
5646
5647 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5648 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5649 parameter.
5650 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5651 parameter.
5652
5653 2019-07-17 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-winsource.c (tui_clear_source_content)
5656 (tui_show_source_content, tui_show_exec_info_content)
5657 (tui_clear_exec_info_content): Update.
5658 * tui/tui-stack.c (tui_show_locator_content): Update.
5659 (tui_show_frame_info): Update.
5660 * tui/tui-source.h (tui_source_window): Don't declare.
5661 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5662 from tui_source_is_displayed.
5663 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5664 Remove field.
5665 (struct tui_source_window_base) <content_in_use>: New field. Now
5666 bool.
5667 (struct tui_source_window) <showing_source_p>: New method.
5668 (TUI_SRC_WIN): Change cast.
5669 * tui/tui-data.c (tui_initialize_static_data): Update.
5670
5671 2019-07-17 Tom Tromey <tom@tromey.com>
5672
5673 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5674 location_matches_p.
5675 * tui/tui-source.c (tui_source_window::location_matches_p): New
5676 method.
5677 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5678 method.
5679 * tui/tui-data.h (struct tui_source_window_base)
5680 <location_matches_p>: New method.
5681 (struct tui_source_window, struct tui_disasm_window)
5682 <location_matches_p>: Likewise.
5683
5684 2019-07-17 Tom Tromey <tom@tromey.com>
5685
5686 * tui/tui-win.c (tui_set_win_height_command): Rename from
5687 tui_set_win_height.
5688 (tui_set_win_height_command): Remove.
5689
5690 2019-07-17 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-source.c (tui_source_window): New constructor. Add
5693 observer.
5694 (~tui_source_window): New destructor.
5695 (tui_source_window::style_changed): New method.
5696 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5697 (tui_attach_detach_observers): Update.
5698 * tui/tui-data.h (struct tui_source_window): Make constructor not
5699 inline. Add destructor.
5700 (struct tui_source_window) <style_changed>: New method.
5701 <m_observable>: New member.
5702
5703 2019-07-17 Tom Tromey <tom@tromey.com>
5704
5705 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5706 * tui/tui-win.c (tui_resize_all): Fix typo.
5707
5708 2019-07-17 Tom Tromey <tom@tromey.com>
5709
5710 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5711 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5712 (tui_refresh_all): Remove "list" parameter. Use foreach.
5713 * tui/tui-win.c (window_name_completer): Use foreach.
5714 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5715 (update_tab_width): Likewise.
5716 * tui/tui-layout.c (show_layout): Update.
5717 * tui/tui-data.h (class tui_window_iterator): New.
5718 (struct all_tui_windows): New.
5719 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5720
5721 2019-07-17 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5724 parameter. Don't reference globals.
5725 (tui_reg_command): Update.
5726
5727 2019-07-17 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-regs.c (tui_show_registers): Simplify.
5730
5731 2019-07-17 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-regs.c (tui_show_registers): Update.
5734 (tui_show_register_group): Add win_info parameter.
5735
5736 2019-07-17 Tom Tromey <tom@tromey.com>
5737
5738 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5739 Rename from tui_display_reg_element_at_line.
5740 (tui_data_window::display_registers_from_line): Update.
5741 * tui/tui-data.h (struct tui_data_window)
5742 <display_reg_element_at_line>: New method.
5743
5744 2019-07-17 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-regs.h (tui_display_registers_from)
5747 (tui_display_registers_from_line): Don't declare.
5748 * tui/tui-windata.c (tui_data_window::display_all_data)
5749 (tui_data_window::refresh_all)
5750 (tui_data_window::do_scroll_vertical): Update.
5751 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5752 from tui_display_registers_from.
5753 (tui_display_reg_element_at_line): Update.
5754 (tui_data_window::display_registers_from_line): Rename from
5755 tui_display_registers_from_line.
5756 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5757 display_registers_from_line>: New methods.
5758
5759 2019-07-17 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5762 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5763 from tui_erase_data_content.
5764 (tui_data_window::display_all_data)
5765 (tui_data_window::refresh_all)
5766 (tui_data_window::do_scroll_vertical): Update.
5767 * tui/tui-regs.c (tui_show_registers): Update.
5768 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5769 New method.
5770
5771 2019-07-17 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5774 declare.
5775 * tui/tui-windata.c
5776 (tui_data_window::delete_data_content_windows): Rename from
5777 tui_delete_data_content_windows.
5778 (tui_data_window::display_all_data)
5779 (tui_data_window::do_scroll_vertical): Update.
5780 * tui/tui-data.h (struct tui_data_window)
5781 <delete_data_content_windows>: New method.
5782
5783 2019-07-17 Tom Tromey <tom@tromey.com>
5784
5785 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5786 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5787
5788 2019-07-17 Tom Tromey <tom@tromey.com>
5789
5790 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5791 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5792 from tui_display_all_data.
5793 * tui/tui-win.c
5794 (tui_data_window::do_make_visible_with_new_height): Update.
5795 * tui/tui-regs.c (tui_show_registers): Update.
5796 * tui/tui-layout.c (tui_set_layout): Update.
5797 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5798 method.
5799
5800 2019-07-17 Tom Tromey <tom@tromey.com>
5801
5802 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5803 * tui/tui-windata.c (tui_display_data_from): Remove.
5804 (tui_data_window::refresh_all): Update.
5805
5806 2019-07-17 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5809 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5810 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5811 tui_display_registers_from_line.
5812 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5813 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5814 "force_display" parameter.
5815
5816 2019-07-17 Tom Tromey <tom@tromey.com>
5817
5818 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5819 declare.
5820 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5821 Rename from tui_first_reg_element_no_inline.
5822 (tui_display_reg_element_at_line)
5823 (tui_display_registers_from_line): Update.
5824 * tui/tui-data.h (struct tui_data_window)
5825 <first_reg_element_no_inline>: New method.
5826
5827 2019-07-17 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-windata.c (tui_display_data_from)
5830 (tui_data_window::do_scroll_vertical): Update.
5831 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5832 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5833 Rename from tui_line_from_reg_element_no.
5834 (tui_display_registers_from_line): Update.
5835 * tui/tui-data.h (struct tui_data_window)
5836 <line_from_reg_element_no>: New method.
5837
5838 2019-07-17 Tom Tromey <tom@tromey.com>
5839
5840 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5841 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5842 tui_last_regs_line_no.
5843 (tui_display_reg_element_at_line)
5844 (tui_display_registers_from_line): Update.
5845 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5846 method.
5847
5848 2019-07-17 Tom Tromey <tom@tromey.com>
5849
5850 PR tui/24722:
5851 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5852 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5853 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5854 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5855 (tui_update_breakpoint_info): Likewise.
5856 * tui/tui-hooks.c (tui_event_create_breakpoint)
5857 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5858 Update.
5859
5860 2019-07-17 Tom Tromey <tom@tromey.com>
5861
5862 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5863
5864 2019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-winsource.c (tui_update_source_window_as_is)
5867 (tui_update_source_windows_with_addr): Update.
5868 * tui/tui-source.h (tui_set_source_content)
5869 (tui_show_symtab_source): Add "win_info" parameter.
5870 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5871 parameter.
5872 (tui_show_symtab_source): Likewise.
5873
5874 2019-07-17 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-wingeneral.c
5877 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5878
5879 2019-07-17 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5882 (struct tui_cmd_window) <can_scroll>: New method.
5883 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5884 method.
5885
5886 2019-07-17 Tom Tromey <tromey@adacore.com>
5887
5888 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5889 do_field_signed>: Rename. Change type of "value".
5890 * ui-out.c (ui_out::field_signed): Rename from field_int.
5891 Change type of "value".
5892 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5893 type of "value".
5894 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5895 do_field_int. Change type of "value".
5896 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5897 do_field_int. Change type of "value".
5898 * tracepoint.c (trace_status_mi, tfind_1)
5899 (print_one_static_tracepoint_marker): Update.
5900 * thread.c (print_thread_info_1, print_selected_thread_frame):
5901 Update.
5902 * stack.c (print_frame, print_frame_info): Update.
5903 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5904 Update.
5905 * source.c (print_source_lines_base): Update.
5906 * skip.c (info_skip_command): Update.
5907 * record-btrace.c (btrace_ui_out_decode_error)
5908 (btrace_call_history_src_line): Update.
5909 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5910 Update.
5911 * progspace.c (print_program_space): Update.
5912 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5913 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5914 do_field_int. Change type of "value".
5915 * mi/mi-out.c (mi_ui_out::do_table_begin)
5916 (mi_ui_out::do_table_header): Update.
5917 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5918 type of "value".
5919 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5920 (mi_cmd_data_list_changed_registers, output_register)
5921 (mi_cmd_data_read_memory, mi_load_progress)
5922 (mi_cmd_trace_frame_collected): Update.
5923 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5924 Update.
5925 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5926 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5927 (mi_cmd_var_list_children, varobj_update_one): Update.
5928 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5929 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5930 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5931 * inferior.c (print_inferior): Update.
5932 * gdb_bfd.c (print_one_bfd): Update.
5933 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5934 Update.
5935 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5936 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5937 do_field_int. Change type of "value".
5938 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5939 do_field_int. Change type of "value".
5940 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5941 (print_one_breakpoint_location, print_it_catch_fork)
5942 (print_one_catch_fork, print_it_catch_vfork)
5943 (print_one_catch_vfork, print_it_catch_solib)
5944 (print_it_catch_exec, print_it_ranged_breakpoint)
5945 (print_mention_watchpoint, print_mention_masked_watchpoint)
5946 (bkpt_print_it, update_static_tracepoint): Update.
5947 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5948 * break-catch-syscall.c (print_it_catch_syscall): Update.
5949 * ada-tasks.c (print_ada_task_info): Update.
5950 * ada-lang.c (print_it_exception, print_mention_exception):
5951 Update.
5952
5953 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 PR breakpoints/24541
5956 * gdbarch.c: Regenerate.
5957 * gdbarch.h: Regenerate.
5958 * gdbarch.sh: Adjust return type and parameter types for
5959 'stap_adjust_register'.
5960 (i386_stap_adjust_register): Adjust signature and return new
5961 register name.
5962 * stap-probe.c (stap_parse_register_operand): Adjust use of
5963 'gdbarch_stap_adjust_register'.
5964
5965 2019-07-17 Tom Tromey <tromey@adacore.com>
5966
5967 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5968 declare VEC.
5969 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5970 std::vector.
5971 (struct s390_process_info): Add initializers.
5972 (s390_add_process): Use new.
5973 (s390_linux_nat_target::low_forget_process): Use delete.
5974 (s390_linux_nat_target::low_new_fork)
5975 (s390_linux_nat_target::stopped_by_watchpoint)
5976 (s390_linux_nat_target::low_prepare_to_resume)
5977 (s390_linux_nat_target::insert_watchpoint)
5978 (s390_linux_nat_target::insert_hw_breakpoint)
5979 (s390_linux_nat_target::remove_watchpoint)
5980 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5981
5982 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5983
5984 * aarch64-fbsd-nat.c: Include regcache.h.
5985 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5986 argument.
5987 (aarch64_fbsd_nat_target::fetch_registers)
5988 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5989 variable.
5990 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5991
5992 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5993
5994 * fbsd-nat.c: Include gdbarch.h.
5995
5996 2019-07-15 Tom Tromey <tromey@adacore.com>
5997
5998 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5999
6000 2019-07-15 Tom Tromey <tromey@adacore.com>
6001
6002 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6003 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6004 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6005 * cli-out.c (cli_ui_out::do_field_int): New method.
6006 * ui-out.c (ui_out::field_unsigned): New method.
6007 * symfile.c (generic_load): Use field_unsigned.
6008 (print_transfer_performance): Likewise.
6009 * record-btrace.c (ui_out_field_uint): Remove.
6010 (btrace_call_history_insn_range, btrace_call_history): Use
6011 field_unsigned.
6012 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6013 field_unsigned.
6014 * ui-out.h (class ui_out) <field_unsigned>: New method.
6015 <do_field_unsigned>: Likewise.
6016
6017 2019-07-15 Tom Tromey <tromey@adacore.com>
6018
6019 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6020 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6021 * target.c (flash_erase_command): Use field_string.
6022 * infrun.c (print_signal_received_reason): Use field_string.
6023 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6024 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6025 field_string.
6026 * ada-tasks.c (print_ada_task_info): Use field_string.
6027
6028 2019-07-15 Tom Tromey <tromey@adacore.com>
6029
6030 * target.c (flash_erase_command): Use field_core_addr.
6031 * symfile.c (generic_load): Use field_core_addr.
6032 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6033 Use field_core_addr.
6034 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6035 field_core_addr.
6036
6037 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6040 value if its desired type is smaller than a CORE_ADDR and signed.
6041
6042 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6045 of changes to field names, and use new is_reference field to
6046 decide if a property is a reference or not.
6047 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6048 field.
6049 (struct dwarf2_property_baton): Update header comment, rename
6050 'referenced_type' to 'property_type' and update comments.
6051 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6052 default property type, store in property baton, update to take
6053 accound of renamed field.
6054 (read_func_scope): Update call to attr_to_dynamic_prop.
6055 (read_array_type): Likewise.
6056 (dwarf2_per_cu_addr_sized_int_type): New function.
6057 (read_subrange_index_type): Move type finding code to
6058 dwarf2_per_cu_addr_sized_int_type.
6059 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6060 (dwarf2_per_cu_addr_type): New function.
6061 (set_die_type): Update calls to attr_to_dynamic_prop.
6062
6063 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6064
6065 * dwarf2read.c (read_subrange_index_type): New function.
6066 (read_subrange_type): Move code into new function and call it.
6067 * gdbtypes.c (create_range_type): Add some asserts.
6068
6069 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6072 update return statements.
6073 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6074 declaration, and update comment to match.
6075 * gdbtypes.c (resolve_dynamic_array): Update call to
6076 dwarf2_evaluate_property to match new return type.
6077
6078 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 * valarith.c (value_subscripted_rvalue): Change lowerbound
6081 parameter type from int to LONGEST.
6082 * value.h (value_subscripted_rvalue): Likewise in declaration.
6083
6084 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * cli/cli-utils.c (info_print_command_completer): New function.
6087 * cli/cli-utils.h: Add 'completer.h' include, and forward
6088 declaration for 'struct cmd_list_element'.
6089 (info_print_command_completer): Declare.
6090 * stack.c (_initialize_stack): Add completer for 'info locals' and
6091 'info args'.
6092 * symtab.c (_initialize_symtab): Add completer for 'info
6093 variables' and 'info functions'.
6094 * NEWS: Mention completion for additional info commands.
6095
6096 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6097
6098 * cli/cli-utils.c (extract_info_print_args): Delete.
6099 (extract_arg_maybe_quoted): Delete.
6100 (info_print_options_defs): New variable.
6101 (make_info_print_options_def_group): New function.
6102 (extract_info_print_options): Define new function.
6103 * cli/cli-utils.h (extract_info_print_args): Delete.
6104 (struct info_print_options): New structure.
6105 (extract_info_print_options): Declare new function.
6106 * stack.c (info_locals_command): Update to use new
6107 extract_info_print_options, also add a header comment.
6108 (info_args_command): Likewise.
6109 * symtab.c (info_variables_command): Likewise.
6110 (info_functions_command): Likewise.
6111
6112 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6115 to extract string arguments.
6116 * common/common-utils.c (extract_string_maybe_quoted): New function.
6117 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6118
6119 2019-07-11 Tom Tromey <tromey@adacore.com>
6120
6121 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6122 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6123 * top.h (gdbinit): Don't declare.
6124 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6125 into...
6126 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6127 * top.c (gdb_init): Don't call init_cli_cmds.
6128 (gdbinit): Remove.
6129 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6130
6131 2019-07-11 Tom Tromey <tromey@adacore.com>
6132
6133 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6134 after it has been moved.
6135
6136 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * valops.c (value_must_coerce_to_target): Change return type to
6139 bool.
6140 * value.h (value_must_coerce_to_target): Likewise.
6141
6142 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6143
6144 * breakpoint.c (is_hardware_watchpoint): Remove
6145 forward-declaration.
6146 (is_masked_watchpoint): Change return type to bool.
6147 (is_tracepoint): Likewise.
6148 (is_breakpoint): Likewise.
6149 (is_hardware_watchpoint): Likewise.
6150 (is_watchpoint): Likewise.
6151 (is_no_memory_software_watchpoint): Likewise.
6152 (is_catchpoint): Likewise.
6153 (breakpoint_1): Make FILTER parameter's return type bool.
6154 is_masked_watchpoint): Change return type to bool.
6155 (save_breakpoints): Make FILTER parameter's return type bool.
6156 * breakpoint.h (is_breakpoint): Change return type to bool.
6157 (is_watchpoint): Likewise.
6158 (is_catchpoint): Likewise.
6159 (is_tracepoint): Likewise.
6160
6161 2019-07-10 Tom Tromey <tom@tromey.com>
6162
6163 * defs.h: Don't include gdbarch.h.
6164 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6165 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6166 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6167 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6168 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6169 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6170 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6171 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6172 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6173 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6174 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6175 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6176 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6177 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6178 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6179 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6180 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6181 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6182 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6183 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6184 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6185 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6186 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6187 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6188 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6189 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6190 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6191
6192 2019-07-10 Tom Tromey <tromey@adacore.com>
6193
6194 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6195 * breakpoint.c (init_ada_exception_breakpoint): Register as
6196 bp_catchpoint.
6197 (print_one_breakpoint_location, print_one_breakpoint): Use
6198 is_ada_exception_catchpoint.
6199 * ada-lang.c (class ada_catchpoint_location): Pass
6200 bp_loc_software_breakpoint to bp_location constructor.
6201 (is_ada_exception_catchpoint): New function.
6202
6203 2019-07-10 Tom Tromey <tromey@adacore.com>
6204
6205 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6206 VEC.
6207 (struct arm_exidx_entry): New method operator<.
6208 (struct arm_exidx_data) <section_maps>: Change type.
6209 (arm_exidx_data_free): Remove.
6210 (arm_exidx_data_key): Change type. Move lower.
6211 (arm_exidx_new_objfile): Update.
6212 (arm_compare_exidx_entries): Remove.
6213 (arm_find_exidx_entry, _initialize_arm_tdep)
6214
6215 2019-07-10 Tom Tromey <tromey@adacore.com>
6216
6217 * solib-spu.c (ocl_program_data_key): Change type.
6218 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6219 Update.
6220
6221 2019-07-10 Tom Tromey <tromey@adacore.com>
6222
6223 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6224 (struct solib_aix_inferior_data) <library_list>: Change type.
6225 (solib_aix_inferior_data_handle): Change type.
6226 (get_solib_aix_inferior_data): Update.
6227 (solib_aix_free_library_list): Remove.
6228 (library_list_start_library): Update.
6229 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6230 return type.
6231 (solib_aix_get_library_list)
6232 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6233 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6234
6235 2019-07-10 Tom Tromey <tromey@adacore.com>
6236
6237 * solib-dsbt.c (struct dsbt_info): Add initializers.
6238 (solib_dsbt_pspace_data): Change type.
6239 (dsbt_pspace_data_cleanup): Remove.
6240 (get_dsbt_info, _initialize_dsbt_solib): Update.
6241
6242 2019-07-10 Tom Tromey <tromey@adacore.com>
6243
6244 * spu-tdep.c (spu_overlay_data): Change type.
6245 (spu_get_overlay_table, spu_overlay_new_objfile)
6246 (_initialize_spu_tdep): Update.
6247
6248 2019-07-10 Tom Tromey <tromey@adacore.com>
6249
6250 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6251 destructor.
6252 (dbx_objfile_data_key): Change type and declare later.
6253 (DBX_SYMFILE_INFO): Rewrite.
6254 * dbxread.c (dbx_objfile_data_key): Change type.
6255 (dbx_symfile_init): Update.
6256 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6257 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6258 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6259
6260 2019-07-10 Tom Tromey <tromey@adacore.com>
6261
6262 * jit.c (jit_program_space_key): Change type. Move lower.
6263 (get_jit_program_space_data): Update.
6264 (jit_program_space_data_cleanup): Remove.
6265 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6266 Update.
6267 (struct jit_program_space_data): Add initializers.
6268
6269 2019-07-10 Tom Tromey <tromey@adacore.com>
6270
6271 * solib-darwin.c (struct darwin_info): Add initializers.
6272 (solib_darwin_pspace_data): Change type.
6273 (darwin_pspace_data_cleanup): Remove.
6274 (get_darwin_info, _initialize_darwin_solib): Update.
6275
6276 2019-07-10 Tom Tromey <tromey@adacore.com>
6277
6278 * remote-sim.c (struct sim_inferior_data): Add initializers,
6279 constructor, and destructor.
6280 (sim_inferior_data_key): Change type. Move lower.
6281 (check_for_duplicate_sim_descriptor): Update.
6282 (get_sim_inferior_data): Use new. Update.
6283 (~sim_inferior_data_cleanup): Rename from
6284 sim_inferior_data_cleanup. Simplify.
6285 (gdbsim_close_inferior, simulator_command)
6286 (sim_command_completer, _initialize_remote_sim): Update.
6287 (next_pid, INITIAL_PID): Move earlier.
6288
6289 2019-07-10 Tom Tromey <tromey@adacore.com>
6290
6291 * python/python-internal.h (create_thread_object): Return
6292 gdbpy_ref.
6293 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6294 * python/py-inferior.c (struct threadlist_entry): Add
6295 constructor.
6296 <thread_obj>: Now a gdbpy_ref.
6297 (thread_to_thread_object): Update.
6298 (add_thread_object): Use new.
6299 (delete_thread_object): Use delete.
6300 (infpy_threads): Update.
6301 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6302 GIL.
6303
6304 2019-07-10 Tom Tromey <tromey@adacore.com>
6305
6306 * valops.c (value_cast): Specialize error message for Ada.
6307
6308 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6309
6310 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6311
6312 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6313
6314 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6315 bpstat_should_step): Return bool, adjust comments.
6316 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6317 bpstat_should_step): Likewise.
6318
6319 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6320
6321 * features/Makefile: Use feature target descriptions for Arm.
6322 * features/arm/arm-core.c: Generate new file.
6323 * features/arm/arm-fpa.c: Likewise.
6324 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6325 * features/arm/arm-m-profile.c: Likewise.
6326 * features/arm/arm-vfpv2.c: Likewise.
6327 * features/arm/arm-vfpv3.c: Likewise.
6328 * features/arm/xscale-iwmmxt.c: Likewise.
6329 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6330
6331 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6332
6333 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6334 ptrace earlier.
6335
6336 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6337
6338 * features/aarch64-pauth.c: Regenerate.
6339
6340 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6341
6342 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6343 bool.
6344 (bpstat_what): Use false instead of 0.
6345
6346 2019-07-09 Pedro Alves <palves@redhat.com>
6347
6348 * break-catch-throw.c (is_exception_catchpoint): New.
6349 * breakpoint.c (print_one_breakpoint_location): New parameter
6350 'raw_loc'. Handle it. Use
6351 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6352 looking at the breakpoint's type.
6353 (print_one_breakpoint): If handling "maint info breakpoints", also
6354 print locations of exception catchpoints.
6355 * breakpoint.h (is_exception_catchpoint): Declare.
6356
6357 2019-07-09 Pedro Alves <palves@redhat.com>
6358
6359 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6360 "addr" field.
6361 (allocate_location_exception_catchpoint): New.
6362 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6363 (initialize_throw_catchpoint_ops): Install
6364 allocate_location_exception_catchpoint as allocate_location
6365 method.
6366 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6367 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6368 bp_loc_other.
6369 (breakpoint_address_is_meaningful): Delete.
6370 (bl_address_is_meaningful): New.
6371 (breakpoint_locations_match): Adjust comment.
6372 (bp_location_from_bp_type): New, factored out of...
6373 (bp_location::bp_location(breakpoint *)): ... this.
6374 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6375 factored out of...
6376 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6377 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6378 breakpoint_address_is_meaningful.
6379 (bp_locations_compare): Adjust comment.
6380 (update_global_location_list): Use bl_address_is_meaningful
6381 instead of breakpoint_address_is_meaningful.
6382 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6383 explicit.
6384 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6385 * python/py-breakpoint.c (bppy_get_location): No longer check
6386 whether location is null.
6387
6388 2019-07-09 Pedro Alves <palves@redhat.com>
6389
6390 PR c++/15468
6391 * breakpoint.c (print_one_breakpoint_location): Remove
6392 single-location assert.
6393
6394 2019-07-09 Tom Tromey <tom@tromey.com>
6395
6396 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6397 * configure: Rebuild.
6398 * configure.ac: Change common to gdbsupport.
6399 * gdbsupport: Rename from common.
6400 * acinclude.m4: Change common to gdbsupport.
6401 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6402 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6403 gdbsupport.
6404 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6405 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6406 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6407 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6408 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6409 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6410 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6411 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6412 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6413 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6414 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6415 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6416 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6417 coff-pe-read.c, command.h, compile/compile-c-support.c,
6418 compile/compile-c.h, compile/compile-cplus-symbols.c,
6419 compile/compile-cplus-types.c, compile/compile-cplus.h,
6420 compile/compile-loc2c.c, compile/compile.c, completer.c,
6421 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6422 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6423 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6424 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6425 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6426 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6427 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6428 features/aarch64-core.c, features/aarch64-fpu.c,
6429 features/aarch64-pauth.c, features/aarch64-sve.c,
6430 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6431 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6432 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6433 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6434 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6435 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6436 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6437 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6438 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6439 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6440 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6441 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6442 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6443 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6444 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6445 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6446 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6447 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6448 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6449 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6450 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6451 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6452 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6453 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6454 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6455 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6456 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6457 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6458 minsyms.c, mips-linux-tdep.c, namespace.h,
6459 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6460 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6461 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6462 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6463 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6464 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6465 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6466 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6467 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6468 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6469 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6470 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6471 procfs.c, producer.c, progspace.h, psymtab.h,
6472 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6473 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6474 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6475 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6476 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6477 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6478 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6479 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6480 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6481 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6482 target-memory.c, target.c, target.h, target/waitstatus.c,
6483 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6484 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6485 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6486 unittests/array-view-selftests.c,
6487 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6488 unittests/common-utils-selftests.c,
6489 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6490 unittests/format_pieces-selftests.c,
6491 unittests/function-view-selftests.c,
6492 unittests/lookup_name_info-selftests.c,
6493 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6494 unittests/mkdir-recursive-selftests.c,
6495 unittests/observable-selftests.c,
6496 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6497 unittests/parse-connection-spec-selftests.c,
6498 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6499 unittests/scoped_fd-selftests.c,
6500 unittests/scoped_mmap-selftests.c,
6501 unittests/scoped_restore-selftests.c,
6502 unittests/string_view-selftests.c, unittests/style-selftests.c,
6503 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6504 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6505 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6506 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6507 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6508 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6509
6510 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6513 bool value.
6514 (decode_digits_ordinary): Set explicit_line field in sal.
6515 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6516 symtab_and_line that was set on an explicit line number in
6517 assembler code. Do always update the recorded symtab and line if
6518 we do skip the prologue.
6519
6520 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * breakpoint.c (set_breakpoint_location_function): Remove
6523 explicit_loc parameter.
6524 (momentary_breakpoint_from_master): Update call to
6525 set_breakpoint_location_function.
6526 (add_location_to_breakpoint): Likewise.
6527
6528 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6531 required features based on default bfd type when no specific bfd
6532 is present.
6533
6534 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535
6536 * NEWS: Mention that GDB printf and eval commands can now print
6537 C-style and Ada-style convenience var strings without
6538 calling the inferior.
6539 * printcmd.c (printf_c_string): Locally print GDB internal var
6540 instead of transiting via the inferior.
6541 (printf_wide_c_string): Likewise.
6542
6543 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6544
6545 PR breakpoints/25011
6546 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6547
6548 2019-07-04 Tom Tromey <tom@tromey.com>
6549
6550 PR tui/24724:
6551 * tui/tui-winsource.c (tui_clear_source_content): Update.
6552 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6553 (tui_update_breakpoint_info): Update.
6554 (tui_set_exec_info_content): Update.
6555 * tui/tui-source.c (tui_set_source_content_nil): Update.
6556 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6557 has_break.
6558 * tui/tui-data.h (enum tui_bp_flag): New.
6559 (tui_bp_flags): New enum flags type.
6560 (struct tui_source_element) <break_mode>: Change type. Rename
6561 from has_break.
6562 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6563 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6564 constants.
6565 * tui/tui-winsource.h: Fix comment.
6566
6567 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6568
6569 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6570 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6571 (store_fpregs_to_thread)
6572 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6573 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6574 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6575 (IWMMXT_REGS_SIZE): Add define.
6576 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6577 (fetch_vfp_regs, store_vfp_regs)
6578 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6579 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6580
6581 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6582
6583 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6584 defines.
6585 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6586 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6587 (ARM_INT_REGISTER_SIZE): ...to this.
6588 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6589 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6590 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6591 (arm_linux_collect_gregset, supply_nwfpe_register)
6592 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6593 defines.
6594 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6595 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6596 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6597 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6598 (arm_return_in_memory, arm_store_return_value)
6599 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6600 (arm_record_ld_st_multiple): Likewise.
6601 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6602 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6603
6604 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6605
6606 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6607 AARCH64_DISPLACED_MODIFIED_INSNS.
6608 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6609 (aarch64_displaced_step_copy_insn): Likewise.
6610 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6611 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6612 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6613 ARM_DISPLACED_MODIFIED_INSNS.
6614 * arm-tdep.c (arm_gdbarch_init): Likewise.
6615 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6616 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6617 (struct arm_displaced_step_closure): Use
6618 ARM_DISPLACED_MODIFIED_INSNS.
6619
6620 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6621
6622 * features/Makefile: Remove unused xml files.
6623 * features/aarch64.xml: Remove.
6624 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6625 * features/i386/amd64-avx-avx512.xml: Remove.
6626 * features/i386/amd64-avx-linux.xml: Remove.
6627 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6628 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6629 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6630 * features/i386/amd64-avx-mpx.xml: Remove.
6631 * features/i386/amd64-avx.xml: Remove.
6632 * features/i386/amd64-linux.xml: Remove.
6633 * features/i386/amd64-mpx-linux.xml: Remove.
6634 * features/i386/amd64-mpx.xml: Remove.
6635 * features/i386/amd64.xml: Remove.
6636 * features/i386/i386-avx-avx512-linux.xml: Remove.
6637 * features/i386/i386-avx-avx512.xml: Remove.
6638 * features/i386/i386-avx-linux.xml: Remove.
6639 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6640 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6641 * features/i386/i386-avx-mpx-linux.xml: Remove.
6642 * features/i386/i386-avx-mpx.xml: Remove.
6643 * features/i386/i386-avx.xml: Remove.
6644 * features/i386/i386-linux.xml: Remove.
6645 * features/i386/i386-mmx-linux.xml: Remove.
6646 * features/i386/i386-mmx.xml: Remove.
6647 * features/i386/i386-mpx-linux.xml: Remove.
6648 * features/i386/i386-mpx.xml: Remove.
6649 * features/i386/i386.xml: Remove.
6650 * features/i386/x32-avx-avx512-linux.xml: Remove.
6651 * features/i386/x32-avx-linux.xml: Remove.
6652 * features/i386/x32-linux.xml: Remove.
6653
6654 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6655
6656 * regformats/aarch64.dat: Remove.
6657 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6658 * regformats/i386/amd64-avx-linux.dat: Remove.
6659 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6660 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6661 * regformats/i386/amd64-linux.dat: Remove.
6662 * regformats/i386/amd64-mpx-linux.dat: Remove.
6663 * regformats/i386/amd64.dat: Remove.
6664 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6665 * regformats/i386/i386-avx-linux.dat: Remove.
6666 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6667 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6668 * regformats/i386/i386-linux.dat: Remove.
6669 * regformats/i386/i386-mmx-linux.dat: Remove.
6670 * regformats/i386/i386-mpx-linux.dat: Remove.
6671 * regformats/i386/i386.dat: Remove.
6672 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6673 * regformats/i386/x32-avx-linux.dat: Remove.
6674 * regformats/i386/x32-linux.dat: Remove.
6675
6676 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6677
6678 * aarch64-tdep.c: Remove xml self tests.
6679 * amd64-linux-tdep.c: Likewise.
6680 * amd64-tdep.c: Likewise.
6681 * i386-linux-tdep.c: Likewise.
6682 * i386-tdep.c: Likewise.
6683
6684 2019-07-03 Pedro Alves <palves@redhat.com>
6685
6686 PR cli/24732
6687 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6688 (pipe_cmd_option_defs): New.
6689 (make_pipe_cmd_options_def_group): New.
6690 (pipe_command): Use gdb::option::process_options.
6691 (pipe_command_completer): New function.
6692 (_initialize_cli_cmds): Install completer for "pipe" command.
6693
6694 2019-07-03 Pedro Alves <palves@redhat.com>
6695
6696 * cli/cli-option.c (union option_value) <string>: New field.
6697 (struct option_def_and_value): Add ctor, move ctor, dtor and
6698 use DISABLE_COPY_AND_ASSIGN.
6699 (option_def_and_value::clear_value): New.
6700 (parse_option, save_option_value_in_ctx, get_val_type_str)
6701 (add_setshow_cmds_for_options): Handle var_string.
6702 * cli-option.h (union option_def::var_address) <string>: New
6703 field.
6704 (struct string_option_def): New.
6705 * maint-test-options.c (struct test_options_opts): Add default
6706 ctor and use DISABLE_COPY_AND_ASSIGN.
6707 <string_opt>: New field.
6708 (test_options_opts::~test_options_opts): New.
6709 (test_options_opts::dump): Also dump "-string".
6710 (test_options_option_defs): Install "string.
6711
6712 2019-07-03 Pedro Alves <palves@redhat.com>
6713
6714 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6715 option_value with a null enumeration.
6716 (complete_options): Save the option values in the context.
6717 (save_option_value_in_ctx): New, factored out from ...
6718 (process_options): ... here.
6719 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6720 of the function.
6721 * maint-test-options.c (test_options_opts::dump): New, factored
6722 out from ...
6723 (maintenance_test_options_command_mode): ... here.
6724 (maintenance_test_options_command_completion_result): Delete.
6725 (maintenance_test_options_command_completion_text): Update
6726 comment.
6727 (maintenance_show_test_options_completion_result): Change
6728 prototype. Just print
6729 maintenance_test_options_command_completion_text.
6730 (save_completion_result): New.
6731 (maintenance_test_options_completer_mode): Pass options context to
6732 complete_options, and then save a dump.
6733 (_initialize_maint_test_options): Use add_cmd to install "maint
6734 show test-options-completion-result".
6735
6736 2019-07-03 Pedro Alves <palves@redhat.com>
6737
6738 * NEWS (New commands): Mention "with" and "maint with".
6739 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6740 (with_command, with_command_completer): New.
6741 (pipe_command): Adjust to new repeat_previous
6742 interface.
6743 (_initialize_cli_cmds): Install the "with" command and its "w"
6744 alias.
6745 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6746 declarations.
6747 * cli/cli-setshow.c (parse_cli_var_uinteger)
6748 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6749 argument strings for all var_types.
6750 (get_setshow_command_value_string): New, factored out from ...
6751 (do_show_command): ... this.
6752 * cli/cli-setshow.h: Include <string>.
6753 (get_setshow_command_value_string): Declare.
6754 * command.h (repeat_previous): Now returns const char *. Adjust
6755 comment.
6756 * maint.c: Include "cli/cli-cmds.h".
6757 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6758 (_initialize_maint_cmds): Register the "maintenance with" command.
6759 * top.c (repeat_previous): Move bits from pipe_command here:
6760 Return the saved command line, if any; error out if there's no
6761 command to relaunch.
6762
6763 2019-07-03 Pedro Alves <palves@redhat.com>
6764
6765 * NEWS (New commands): Mention "maint set/show test-settings"
6766 instead of "maint test-settings".
6767 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6768 (maintenance_test_settings_set_list): Rename to ...
6769 (maintenance_set_test_settings_list): ... this.
6770 (maintenance_test_settings_show_list): Rename to ...
6771 (maintenance_show_test_settings_list): ... this.
6772 (maintenance_test_settings_cmd): Delete.
6773 (maintenance_test_settings_set_cmd): ...
6774 (maintenance_set_test_settings_cmd): ... this.
6775 (maintenance_test_settings_show_cmd): ...
6776 (maintenance_show_test_settings_cmd): ... this.
6777 (maintenance_test_settings_show_value_cmd):
6778 (maintenance_show_test_settings_value_cmd): ... this.
6779 (_initialize_maint_test_settings): No longer install the "maint
6780 test-settings" prefix command. Rename "maint test-settings set"
6781 to "maint set test-settings", and "maint test-settings show" to
6782 "maint show test-settings". Adjust all subcommands.
6783
6784 2019-07-03 Pedro Alves <palves@redhat.com>
6785
6786 * maint-test-settings.c: Fix file's intro comment. Replace all
6787 references to "test-options" with references to "test-settings",
6788 in comments.
6789
6790 2019-07-03 Pedro Alves <palves@redhat.com>
6791
6792 * maint-test-settings.c (maintenance_test_settings_xxx)
6793 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6794 New.
6795 (maintenance_test_settings_enums): Use them.
6796 (maintenance_test_settings_enum): Default to
6797 maintenance_test_settings_xxx.
6798 (_initialize_maint_test_settings): Initialize
6799 MAINTENANCE_TEST_SETTINGS_FILENAME.
6800
6801 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * breakpoint.h (remove_breakpoints_inf): Change return type to
6804 void, move function documentation here.
6805 * breakpoint.c (remove_breakpoints_inf): Change return type to
6806 void, move function documentation to header.
6807
6808 2019-07-02 Pedro Alves <palves@redhat.com>
6809
6810 * NEWS (Completion improvements): Mention "info threads".
6811 * thread.c (struct info_threads_opts, info_threads_option_defs)
6812 (make_info_threads_options_def_group): New.
6813 (info_threads_command): Use gdb::option::process_options.
6814 (info_threads_command_completer): New.
6815 (_initialize_thread): Use gdb::option::build_help to build the
6816 help text for "info threads".
6817
6818 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * defs.h (generic_load): Move from here...
6821 * symfile.h (generic_load): ... to here. Rename name parameter
6822 to args.
6823 * symfile.c (generic_load): Add comment.
6824
6825 2019-07-01 Tom Tromey <tromey@adacore.com>
6826
6827 * dwarf2read.c
6828 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6829 declaration of without_params. Fix formatting.
6830
6831 2019-07-01 Tom Tromey <tromey@adacore.com>
6832
6833 * ada-exp.y (find_primitive_type): Update.
6834 * ada-lang.h (ada_lookup_symbol): Update.
6835 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6836 parameter.
6837 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6838
6839 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6840
6841 PR breakpoints/24541
6842 * gdbarch.c: Regenerate.
6843 * gdbarch.h: Regenerate.
6844 * gdbarch.sh: Add 'stap_adjust_register'.
6845 * i386-tdep.c: Include '<unordered_set>'.
6846 (i386_stap_adjust_register): New function.
6847 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6848 * stap-probe.c (stap_parse_register_operand): Call
6849 'gdbarch_stap_adjust_register'.
6850
6851 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6852
6853 PR python/24742
6854 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6855 * python/python.c (do_start_initialization): Use 'xmalloc'
6856 instead of 'PyMem_Malloc'.
6857
6858 2019-06-28 Tom Tromey <tromey@adacore.com>
6859
6860 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6861 for Ada.
6862
6863 2019-06-27 Tom Tromey <tromey@adacore.com>
6864
6865 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6866 objfile_key.
6867 (arm_find_mapping_symbol, arm_record_special_symbol)
6868 (_initialize_arm_tdep): Update.
6869 (arm_objfile_data_free): Remove.
6870
6871 2019-06-27 Tom Tromey <tromey@adacore.com>
6872
6873 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6874 to cp_print_static_field.
6875
6876 2019-06-26 Tom Tromey <tromey@adacore.com>
6877
6878 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6879 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6880 declare.
6881
6882 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6883
6884 * features/aarch64-core.c (create_feature_aarch64_core):
6885 Regenerate.
6886 * features/aarch64-core.xml: Add cpsr flags.
6887
6888 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6889
6890 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6891 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6892
6893 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6894
6895 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6896 field.
6897 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6898 use.
6899 (arm_record_special_symbol): Don't insert new symbol in sorted
6900 position, push it at the end.
6901
6902 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6905 (arm_mapping_symbol_s): Remove.
6906 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6907 (arm_mapping_symbol_vec): New typedef.
6908 (struct arm_per_objfile): Add constructor.
6909 <section_maps>: Change type to
6910 std::unique_ptr<arm_mapping_symbol_vec[]>.
6911 (arm_compare_mapping_symbols): Remove.
6912 (arm_find_mapping_symbol): Adjust to section_maps type change.
6913 (arm_objfile_data_free): Call delete on arm_per_objfile.
6914 (arm_record_special_symbol): Adjust to section_maps type change.
6915 Allocate arm_per_objfile with new.
6916
6917 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6918
6919 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6920 with the command prefix.
6921
6922 2019-06-25 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6925 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6926
6927 2019-06-25 Tom Tromey <tom@tromey.com>
6928
6929 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6930 type.
6931 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6932 protected.
6933
6934 2019-06-25 Tom Tromey <tom@tromey.com>
6935
6936 * tui/tui-winsource.c
6937 (tui_source_window_base::set_is_exec_point_at): Add check against
6938 LOA_ADDRESS.
6939
6940 2019-06-25 Tom Tromey <tom@tromey.com>
6941
6942 * tui/tui-source.c (tui_set_source_content): Don't check before
6943 xfree.
6944 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6945
6946 2019-06-25 Tom Tromey <tom@tromey.com>
6947
6948 * tui/tui-winsource.h (tui_update_source_window_as_is)
6949 (tui_alloc_source_buffer, tui_line_is_displayed)
6950 (tui_addr_is_displayed): Change type of win_info.
6951 * tui/tui-winsource.c (tui_update_source_window_as_is)
6952 (tui_clear_source_content, tui_show_source_line)
6953 (tui_show_source_content, tui_source_window_base::refill)
6954 (tui_source_window_base::set_is_exec_point_at)
6955 (tui_source_window_base::set_is_exec_point_at)
6956 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6957 (tui_alloc_source_buffer, tui_line_is_displayed)
6958 (tui_addr_is_displayed): Change type of win_info. Update.
6959 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6960 (tui_source_window_base::do_make_visible_with_new_height):
6961 Update.
6962 * tui/tui-source.c (tui_set_source_content)
6963 (tui_set_source_content_nil)
6964 (tui_source_window::do_scroll_vertical): Update.
6965 * tui/tui-layout.c (show_layout): Update.
6966 * tui/tui-disasm.c (tui_set_disassem_content)
6967 (tui_disasm_window::do_scroll_vertical): Update.
6968 * tui/tui-data.h (tui_win_content): Remove.
6969 (struct tui_gen_win_info) <content, content_size>: Remove.
6970 (struct tui_source_element): Add initializers and destructor.
6971 (union tui_which_element, struct tui_win_element): Remove.
6972 (struct tui_source_window_base) <content>: New field.
6973 (struct tui_data_window): Remove destructor.
6974 (tui_alloc_content, tui_free_win_content)
6975 (tui_free_all_source_wins_content): Don't declare.
6976 * tui/tui-data.c (tui_initialize_static_data): Update.
6977 (init_content_element, tui_alloc_content): Remove.
6978 (~tui_gen_win_info): Update.
6979 (~tui_data_window, tui_free_all_source_wins_content)
6980 (tui_free_win_content, free_content, free_content_elements):
6981 Remove.
6982
6983 2019-06-25 Tom Tromey <tom@tromey.com>
6984
6985 * tui/tui-winsource.h (tui_clear_source_content)
6986 (tui_erase_source_content, tui_show_source_content): Change type
6987 of win_info.
6988 * tui/tui-winsource.c (tui_clear_source_content)
6989 (tui_erase_source_content, tui_show_source_content): Change type
6990 of win_info.
6991 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6992 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6993 win_info.
6994 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6995 win_info.
6996 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6997
6998 2019-06-25 Tom Tromey <tom@tromey.com>
6999
7000 * tui/tui-winsource.c (tui_clear_source_content)
7001 (tui_source_window_base::set_is_exec_point_at): Update.
7002 * tui/tui-source.c (tui_set_source_content_nil): Update.
7003 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7004 a bool.
7005 * tui/tui-data.c (init_content_element): Update.
7006
7007 2019-06-25 Tom Tromey <tom@tromey.com>
7008
7009 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7010 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7011 * tui/tui-layout.c (init_and_make_win): Update.
7012 * tui/tui.h (enum tui_win_type): Update.
7013 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7014 tui_win_is_auxillary.
7015 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7016 tui_win_is_auxillary.
7017
7018 2019-06-25 Tom Tromey <tom@tromey.com>
7019
7020 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7021 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7022 (tui_delete_data_content_windows, tui_display_all_data)
7023 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7024 Update.
7025 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7026 * tui/tui-regs.c (tui_last_regs_line_no)
7027 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7028 (tui_show_registers): Update.
7029 (tui_show_register_group): Return void. Update.
7030 (tui_display_registers_from, tui_display_reg_element_at_line)
7031 (tui_display_registers_from_line, tui_check_register_values):
7032 Update.
7033 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7034 member.
7035 (struct tui_data_window) <regs_content>: Now a std::vector.
7036 <regs_content_count>: Remove.
7037 (tui_add_content_elements, tui_free_data_content): Don't declare.
7038 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7039 (init_content_element): Remove DATA_WIN case. Add assert.
7040 (tui_add_content_elements): Remove.
7041 (tui_data_window): Update.
7042 (tui_free_data_content): Remove.
7043 (free_content_elements): Remove DATA_WIN case.
7044
7045 2019-06-25 Tom Tromey <tom@tromey.com>
7046
7047 * tui/tui-data.c (tui_data_item_window): Update.
7048 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7049 * tui/tui-windata.c (tui_display_all_data)
7050 (tui_display_data_from_line): Update.
7051 (tui_check_data_values): Remove.
7052 * tui/tui-regs.c (tui_show_register_group)
7053 (tui_display_reg_element_at_line): Update.
7054 * tui/tui-hooks.c (tui_register_changed)
7055 (tui_refresh_frame_and_register_information): Call
7056 tui_check_register_values.
7057 * tui/tui-data.h (struct tui_data_window) <data_content,
7058 data_content_count, data_type>: Remove.
7059 (enum tui_data_type): Remove.
7060
7061 * tui/tui-data.c (tui_data_window::clear_detail)
7062 (~tui_data_window): Update.
7063
7064 2019-06-25 Tom Tromey <tom@tromey.com>
7065
7066 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7067 declare.
7068 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7069 Rename from tui_first_data_item_displayed. Update.
7070 (tui_data_window::refresh_all)
7071 (tui_data_window::do_scroll_vertical): Update.
7072 * tui/tui-data.h (struct tui_data_window)
7073 <first_data_item_displayed>: Declare new method.
7074
7075 2019-06-25 Tom Tromey <tom@tromey.com>
7076
7077 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7078 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7079 contents...
7080 (tui_initialize_static_data): ...here.
7081
7082 2019-06-25 Tom Tromey <tom@tromey.com>
7083
7084 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7085 (tui_display_registers_from, tui_check_register_values): Update.
7086 (tui_display_register): Remove win_info parameter; update.
7087 (tui_get_register): Change type of parameters.
7088 * tui/tui-data.h (struct tui_data_element): Remove.
7089 (union tui_which_element) <data>: Remove.
7090 <data_window>: Change type.
7091 (struct tui_data_item_window): New.
7092 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7093 case. Add assert.
7094 (~tui_data_item_window): New destructor.
7095 (free_content_elements): Remove DATA_ITEM_WIN case.
7096
7097 2019-06-25 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7100 Remove.
7101
7102 2019-06-25 Tom Tromey <tom@tromey.com>
7103
7104 * tui/tui-data.h (struct tui_command_element): Remove.
7105 (union tui_which_element) <command>: Remove.
7106 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7107 assert.
7108 (free_content_elements): Remove CMD_WIN case.
7109
7110 2019-06-25 Tom Tromey <tom@tromey.com>
7111
7112 * tui/tui-layout.c (tui_set_layout): Update.
7113 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7114 * tui/tui-data.c (layout_def): Update.
7115
7116 2019-06-25 Tom Tromey <tom@tromey.com>
7117
7118 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7119 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7120 (tui_source_window_base::set_new_height): Update.
7121 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7122 Update.
7123 (tui_set_locator_fullname, tui_set_locator_info)
7124 (tui_show_frame_info): Update.
7125 * tui/tui-source.c (tui_set_source_content)
7126 (tui_source_is_displayed): Update.
7127 * tui/tui-layout.c (show_source_disasm_command, show_data)
7128 (show_source_or_disasm_and_command): Update.
7129 * tui/tui-disasm.c (tui_set_disassem_content)
7130 (tui_get_begin_asm_address): Update.
7131 * tui/tui-data.h (struct tui_locator_element): Remove.
7132 (union tui_which_element) <locator>: Remove.
7133 (struct tui_locator_window): New.
7134 (tui_locator_win_info_ptr): Change return type.
7135 * tui/tui-data.c (_locator): Change type.
7136 (tui_locator_win_info_ptr): Change return type.
7137 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7138 (tui_alloc_content): Add assert.
7139
7140 2019-06-25 Tom Tromey <tom@tromey.com>
7141
7142 * tui/tui-winsource.c
7143 (tui_exec_info_window::maybe_allocate_content): New method.
7144 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7145 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7146 (make_source_or_disasm_window): Add cast.
7147 * tui/tui-data.h (union tui_which_element) <simple_string>:
7148 Remove.
7149 (struct tui_source_info): New.
7150 (struct tui_source_window_base) <execution_info>: Change type.
7151 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7152 case, and add assert.
7153 (tui_alloc_content): Add assert.
7154
7155 2019-06-25 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7158 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7159 * tui/tui-data.c (tui_alloc_win_info): Remove.
7160
7161 2019-06-25 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7164 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7165 can_highlight.
7166
7167 2019-06-25 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7170 make_visible_with_new_height method.
7171 (tui_win_info::make_visible_with_new_height): New method.
7172 (tui_source_window_base::do_make_visible_with_new_height)
7173 (tui_data_window::do_make_visible_with_new_height)
7174 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7175 (make_visible_with_new_height): Remove.
7176 (tui_resize_all, tui_adjust_win_heights): Use
7177 make_visible_with_new_height method.
7178 * tui/tui-data.h (struct tui_win_info)
7179 <do_make_visible_with_new_height, make_visible_with_new_height>:
7180 New methods.
7181 (struct tui_source_window_base, struct tui_data_window)
7182 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7183 methods.
7184
7185 2019-06-25 Tom Tromey <tom@tromey.com>
7186
7187 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7188 method.
7189 (update_tab_width): Call update_tab_width method.
7190 * tui/tui-data.h (struct tui_win_info)
7191 (struct tui_source_window_base) <update_tab_width>: New methods.
7192
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7196 parameter.
7197 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7198 parameter.
7199 (tui_gen_win_info::make_visible): Update.
7200 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7201 parameter.
7202 * tui/tui-data.h (enum tui_box): New enum.
7203 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7204
7205 2019-06-25 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7208 init_and_make_win for EXEC_INFO_WIN.
7209 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7210 longer inline.
7211 (struct tui_win_info) <~tui_win_info>: Inline.
7212 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7213 Don't declare.
7214 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7215 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7216 Remove.
7217 (tui_initialize_static_data): Update.
7218 (~tui_gen_win_info): Handle more cleanup here.
7219 (~tui_source_window_base): Delete "execution_info".
7220 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7221
7222 2019-06-25 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui-layout.c (make_command_window): Don't set
7225 can_highlight.
7226 (show_source_disasm_command): Call the reset method.
7227 (show_data): Don't set can_highlight. Call the reset method.
7228 (tui_gen_win_info::reset): Rename from init_gen_win_info
7229 (init_and_make_win): Simplify. Return tui_gen_win_info.
7230 (show_source_or_disasm_and_command): Call the reset method.
7231 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7232 (struct tui_cmd_window): Set can_highlight.
7233
7234 2019-06-25 Tom Tromey <tom@tromey.com>
7235
7236 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7237 from make_visible.
7238 (tui_make_visible, tui_make_invisible): Rewrite.
7239 (tui_win_info::make_visible): Remove.
7240 (tui_source_window_base::make_visible): Update.
7241 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7242 method. Moved from...
7243 (struct tui_win_info) <make_visible>: ...here.
7244
7245 2019-06-25 Tom Tromey <tom@tromey.com>
7246
7247 * tui/tui-winsource.c
7248 (tui_source_window_base::do_scroll_horizontal): Remove direction
7249 parameter.
7250 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7251 direction parameter.
7252 * tui/tui-win.c (tui_win_info::forward_scroll)
7253 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7254 (tui_win_info::right_scroll): Update.
7255 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7256 direction parameter.
7257 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7258 direction parameter.
7259 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7260 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7261 Remove direction parameter.
7262 (struct tui_source_window_base, struct tui_source_window)
7263 (struct tui_disasm_window, struct tui_data_window)
7264 (struct tui_cmd_window): Update.
7265
7266 2019-06-25 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui-winsource.h (tui_set_exec_info_content)
7269 (tui_show_exec_info_content, tui_erase_exec_info_content)
7270 (tui_clear_exec_info_content, tui_update_exec_info): Change
7271 argument to tui_source_window_base.
7272 * tui/tui-winsource.c (tui_set_exec_info_content)
7273 (tui_show_exec_info_content, tui_erase_exec_info_content)
7274 (tui_clear_exec_info_content, tui_update_exec_info): Change
7275 argument to tui_source_window_base.
7276
7277 2019-06-25 Tom Tromey <tom@tromey.com>
7278
7279 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7280 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7281
7282 2019-06-25 Tom Tromey <tom@tromey.com>
7283
7284 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7285 check.
7286
7287 2019-06-25 Tom Tromey <tom@tromey.com>
7288
7289 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7290 type to void.
7291 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7292 type to void.
7293 * tui/tui-source.c (tui_set_source_content): Update.
7294 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7295
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-win.c (window_name_completer, tui_set_focus)
7299 (tui_all_windows_info): Use name method.
7300 * tui/tui-data.h (struct tui_gen_win_info)
7301 (struct tui_source_window, struct tui_disasm_window)
7302 (struct tui_data_window, struct tui_cmd_window) <name>: New
7303 method.
7304 (tui_win_name): Don't declare.
7305 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7306 (tui_win_name): Remove.
7307
7308 2019-06-25 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-winsource.h (tui_update_source_window)
7311 (tui_update_source_window_as_is): Change parameter type.
7312 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7313 to be a tui_source_window_base.
7314 (tui_update_source_window_as_is): Likewise.
7315 * tui/tui-win.c (make_visible_with_new_height): Update.
7316
7317 2019-06-25 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-winsource.c (tui_erase_source_content)
7320 (tui_show_source_content, tui_show_exec_info_content)
7321 (tui_erase_exec_info_content): Use refresh_window method.
7322 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7323 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7324 from tui_refresh_win.
7325 (tui_data_window::refresh_window): New method.
7326 (tui_win_info::refresh, tui_source_window_base::refresh)
7327 (tui_refresh_all): Use refresh_window method.
7328 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7329 method.
7330 * tui/tui-regs.c (tui_display_register): Call refresh_window
7331 method.
7332 * tui/tui-layout.c (show_source_disasm_command)
7333 (show_source_or_disasm_and_command): Call refresh_window method.
7334 * tui/tui-data.h (struct tui_gen_win_info)
7335 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7336 New method.
7337
7338 2019-06-25 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui.c (tui_rl_other_window, tui_enable)
7341 (tui_is_window_visible, tui_get_command_dimension): Update.
7342 * tui/tui-winsource.c (tui_update_source_window_as_is)
7343 (tui_clear_source_content, tui_erase_source_content)
7344 (tui_show_source_line, tui_source_window_base::refill)
7345 (tui_source_window_base::do_scroll_horizontal)
7346 (tui_source_window_base::set_is_exec_point_at)
7347 (tui_update_breakpoint_info, tui_set_exec_info_content)
7348 (tui_alloc_source_buffer, tui_line_is_displayed)
7349 (tui_addr_is_displayed): Update.
7350 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7351 (tui_check_and_display_highlight_if_needed)
7352 (tui_win_info::make_visible, tui_win_info::refresh)
7353 (tui_refresh_all): Update.
7354 * tui/tui-windata.c (tui_first_data_item_displayed)
7355 (tui_delete_data_content_windows, tui_erase_data_content)
7356 (tui_display_all_data, tui_data_window::refresh_all)
7357 (tui_check_data_values): Update.
7358 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7359 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7360 (tui_win_info::backward_scroll, tui_refresh_all_win)
7361 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7362 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7363 (tui_source_window_base::set_new_height)
7364 (tui_data_window::set_new_height)
7365 (make_invisible_and_set_new_height)
7366 (make_visible_with_new_height, new_height_ok)
7367 (parse_scrolling_args): Update.
7368 * tui/tui-stack.c (tui_show_frame_info): Update.
7369 * tui/tui-source.c (tui_set_source_content)
7370 (tui_set_source_content_nil, tui_source_is_displayed)
7371 (tui_source_window::do_scroll_vertical): Update.
7372 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7373 (tui_display_registers_from, tui_display_reg_element_at_line)
7374 (tui_check_register_values, tui_reg_command): Update.
7375 * tui/tui-layout.c (tui_default_win_height)
7376 (show_source_disasm_command, show_data, init_and_make_win)
7377 (show_source_or_disasm_and_command): Update.
7378 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7379 (tui_redisplay_readline, tui_mld_flush)
7380 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7381 (tui_getc): Update.
7382 * tui/tui-disasm.c (tui_set_disassem_content)
7383 (tui_disasm_window::do_scroll_vertical): Update.
7384 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7385 Now virtual.
7386 (struct tui_win_info): Derive from tui_gen_win_info.
7387 <~tui_win_info>: Mark as override.
7388 <generic>: Remove member.
7389 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7390 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7391 (~tui_data_window, ~tui_win_info)
7392 (tui_free_all_source_wins_content): Update.
7393 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7394
7395 2019-06-25 Tom Tromey <tom@tromey.com>
7396
7397 * tui/tui-layout.c (init_and_make_win): Use new.
7398 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7399 destructor, initializers.
7400 (tui_alloc_generic_win_info): Don't declare.
7401 * tui/tui-data.c (_locator): Add argument to constructor.
7402 (source_win, disasm_win): New globals.
7403 (exec_info): Remove.
7404 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7405 Update.
7406 (tui_alloc_generic_win_info): Remove.
7407 (init_content_element): Use new.
7408 (tui_win_info::tui_win_info): Update.
7409 (free_content_elements) <case DATA_WIN>: Use delete.
7410
7411 2019-06-25 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7414 * tui/tui-windata.c (tui_first_data_item_displayed)
7415 (tui_delete_data_content_windows): Update.
7416 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7417 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7418 (tui_display_registers_from, tui_check_register_values): Update.
7419 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7420 pointer.
7421 * tui/tui-data.c (init_content_element): Update. Allocate the new
7422 window.
7423 (tui_free_data_content): Update.
7424 (free_content_elements) <case DATA_WIN>: Free the window.
7425
7426 2019-06-25 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7429 Update.
7430 * tui/tui-layout.c (make_command_window)
7431 (show_source_disasm_command, show_data, init_and_make_win)
7432 (show_source_or_disasm_and_command): Update.
7433 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7434 method.
7435 <can_highight, is_highlighted>: Now bool.
7436 (tui_set_win_highlight): Don't declare.
7437 * tui/tui-data.c (tui_set_win_highlight): Remove.
7438
7439 2019-06-25 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-wingeneral.c (make_visible): Remove check of window
7442 type.
7443
7444 2019-06-25 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-win.c (tui_win_info::max_height)
7447 (tui_cmd_window::max_height): New methods.
7448 (new_height_ok): Call max_height.
7449 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7450 <max_height>: New method.
7451
7452 2019-06-25 Tom Tromey <tom@tromey.com>
7453
7454 * tui/tui-win.c (tui_source_window_base::set_new_height)
7455 (tui_data_window::set_new_height): New methods.
7456 (make_invisible_and_set_new_height): Call set_new_height method.
7457 * tui/tui-data.h (struct tui_win_info)
7458 (struct tui_source_window_base, struct tui_data_window)
7459 <set_new_height>: New method.
7460
7461 2019-06-25 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7464 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7465 tui_refresh_data_win.
7466 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7467 method.
7468 (tui_refresh_all_win): Call the refresh_all method.
7469 (tui_set_focus): Likewise.
7470 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7471 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7472 Likewise.
7473
7474 2019-06-25 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-winsource.h (tui_refill_source_window)
7477 (tui_set_is_exec_point_at): Don't declare.
7478 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7479 (tui_source_window_base::refill): Rename from
7480 tui_refill_source_window.
7481 (tui_source_window_base::do_scroll_horizontal): Update.
7482 (tui_source_window_base::set_is_exec_point_at): Rename from
7483 tui_set_is_exec_point_at.
7484 (tui_update_all_breakpoint_info): Update.
7485 * tui/tui-stack.c (tui_show_frame_info): Update.
7486 * tui/tui-layout.c (show_data): Add cast.
7487 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7488 * tui/tui-data.h (struct tui_source_window_base) <refill,
7489 set_is_exec_point_at>: New methods.
7490 (tui_source_windows, tui_add_to_source_windows): Update types.
7491 (tui_add_to_source_windows): Remove redundant declaration.
7492 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7493 (tui_source_windows): Change return type.
7494 (tui_clear_source_windows_detail): Update.
7495 (tui_add_to_source_windows): Change type of parameter.
7496 (tui_free_all_source_wins_content): Update.
7497
7498 2019-06-25 Tom Tromey <tom@tromey.com>
7499
7500 * tui/tui-wingeneral.c (tui_win_info::refresh)
7501 (tui_source_window_base::refresh): New methods.
7502 (tui_refresh_all): Call the refresh method.
7503 * tui/tui-data.h (struct tui_win_info)
7504 (struct tui_source_window_base) <refresh>: New method.
7505
7506 2019-06-25 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui.h (tui_is_window_visible): Return bool.
7509 * tui/tui.c (tui_is_window_visible): Return bool.
7510 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7511 (tui_make_visible, tui_make_invisible)
7512 (tui_win_info::make_visible)
7513 (tui_source_window_base::make_visible, make_all_visible)
7514 (tui_make_all_visible, tui_make_all_invisible): Update.
7515 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7516 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7517 bool.
7518 (struct tui_win_info, struct tui_source_window_base)
7519 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7520 * tui/tui-data.c (tui_init_generic_part): Update.
7521
7522 2019-06-25 Tom Tromey <tom@tromey.com>
7523
7524 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7525 (tui_source_window_base::make_visible): New methods.
7526 (make_all_visible): Make method call.
7527 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7528 (struct tui_source_window_base, struct tui_cmd_window): Override
7529 make_visible.
7530 (tui_win_is_source_type): Don't declare.
7531 * tui/tui-data.c (tui_win_is_source_type): Remove.
7532
7533 2019-06-25 Tom Tromey <tom@tromey.com>
7534
7535 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7536 NULL check.
7537
7538 2019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7541 Inline constructor. Add initializers for members.
7542 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7543 constructors; now inline in class.
7544
7545 2019-06-25 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-regs.c (tui_show_registers): Update.
7548 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7549 bool.
7550 * tui/tui-data.c (tui_data_window::clear_detail)
7551 (tui_data_window): Update.
7552
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-windata.c (tui_display_all_data)
7556 (tui_display_data_from_line, tui_display_data_from)
7557 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7558 Update.
7559 * tui/tui-regs.c (tui_last_regs_line_no)
7560 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7561 (tui_show_registers, tui_show_register_group)
7562 (tui_display_registers_from, tui_display_reg_element_at_line)
7563 (tui_display_registers_from_line, tui_check_register_values)
7564 (tui_reg_next, tui_reg_prev): Update.
7565 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7566 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7567 tui_data_window.
7568 (struct tui_win_info) <detail>: Remove. Add new fields from
7569 tui_data_info.
7570 (TUI_DATA_WIN): Add cast.
7571 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7572 (~tui_data_window): Simplify.
7573
7574 2019-06-25 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-layout.c (show_source_disasm_command)
7577 (show_source_or_disasm_and_command): Update.
7578 * tui/tui-io.c (update_cmdwin_start_line)
7579 (tui_redisplay_readline): Update.
7580 * tui/tui-data.h (struct tui_command_info): Remove.
7581 (struct tui_win_info) <detail>: Remove command_info member.
7582 (struct tui_data_window) <start_line>: New member, from
7583 tui_command_info.
7584 (TUI_CMD_WIN): Add casts.
7585
7586 2019-06-25 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui-winsource.c (tui_update_source_window)
7589 (tui_refill_source_window)
7590 (tui_source_window_base::do_scroll_horizontal)
7591 (tui_update_breakpoint_info, tui_set_exec_info_content)
7592 (tui_show_exec_info_content, tui_erase_exec_info_content)
7593 (tui_clear_exec_info_content): Update.
7594 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7595 Update.
7596 * tui/tui-win.c (make_invisible_and_set_new_height)
7597 (make_visible_with_new_height): Update.
7598 * tui/tui-source.c (tui_set_source_content)
7599 (tui_show_symtab_source): Update.
7600 * tui/tui-layout.c (extract_display_start_addr)
7601 (show_source_disasm_command, show_data)
7602 (make_source_or_disasm_window)
7603 (show_source_or_disasm_and_command): Update.
7604 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7605 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7606 "gdbarch".
7607 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7608 to tui_source_window_base.
7609 (struct tui_win_info) <detail>: Remove source_info member.
7610 (struct tui_source_window_base) <has_locator>: Inline.
7611 Move contents from tui_source_info; rename has_locator member to
7612 m_has_locator.
7613 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7614 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7615 header file.
7616 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7617 Simplify.
7618 (tui_free_all_source_wins_content): Cast to
7619 tui_source_window_base.
7620
7621 2019-06-25 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-win.c (make_invisible_and_set_new_height)
7624 (make_visible_with_new_height): Call has_locator method.
7625 * tui/tui-layout.c (show_source_disasm_command, show_data)
7626 (show_source_or_disasm_and_command): Update for bool change.
7627 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7628 (tui_win_info) <has_locator>: New method.
7629 (struct tui_source_window_base) <has_locator>: New method.
7630 (tui_win_has_locator): Don't declare.
7631 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7632 from tui_win_has_locator.
7633 (tui_source_window_base): Use false, not FALSE.
7634
7635 2019-06-25 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7638 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7639 clear_detail method directly.
7640 (tui_clear_win_detail): Remove.
7641
7642 2019-06-25 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7645 "this", not TUI_DISASM_WIN.
7646
7647 2019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7650 declare.
7651 * tui/tui-winsource.c
7652 (tui_source_window_base::do_scroll_horizontal): Rename from
7653 tui_horizontal_source_scroll.
7654 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7655 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7656 from tui_vertical_data_scroll.
7657 * tui/tui-win.h (tui_scroll): Don't declare.
7658 * tui/tui-win.c (tui_win_info::forward_scroll)
7659 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7660 (tui_win_info::right_scroll): Rename and update.
7661 (tui_scroll_forward_command, tui_scroll_backward_command)
7662 (tui_scroll_left_command, tui_scroll_right_command): Update.
7663 (tui_scroll): Remove.
7664 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7665 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7666 from tui_vertical_source_scroll.
7667 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7668 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7669 from tui_vertical_disassem_scroll.
7670 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7671 do_scroll_horizontal>: New methods.
7672 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7673 Likewise.
7674 (struct tui_source_window_base): Add do_scroll_horizontal.
7675 (struct tui_source_window, struct tui_disasm_window): Add
7676 do_scroll_vertical.
7677 (struct tui_data_window, struct tui_cmd_window): Add
7678 do_scroll_horizontal and do_scroll_vertical.
7679 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7680
7681 2019-06-25 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui-data.h (struct tui_source_window_base): New struct.
7684 (struct tui_source_window): Derive from tui_source_window_base.
7685 (struct tui_disasm_window): New struct.
7686 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7687 from tui_source_window::clear_detail.
7688 (tui_source_window_base): Rename from tui_source_window.
7689 (~tui_source_window_base): Rename from ~tui_source_window.
7690 (tui_alloc_win_info): Create a tui_disasm_window.
7691
7692 2019-06-25 Tom Tromey <tom@tromey.com>
7693
7694 * tui/tui-data.h (struct tui_source_window)
7695 (struct tui_data_window): Declare destructors.
7696 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7697 destructors.
7698 (tui_win_info): Simplify.
7699
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-winsource.c (tui_display_main)
7703 (tui_update_source_windows_with_addr)
7704 (tui_update_all_breakpoint_info): Update.
7705 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7706 (new_height_ok, parse_scrolling_args): Update.
7707 * tui/tui-stack.c (tui_show_frame_info): Update.
7708 * tui/tui-data.h (struct tui_list): Remove.
7709 (tui_source_windows): Return a reference to a std::vector.
7710 * tui/tui-data.c (source_windows): Now a std::vector.
7711 (tui_source_windows): Change return type.
7712 (tui_clear_source_windows): Rewrite.
7713 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7714 (tui_free_all_source_wins_content): Rewrite.
7715
7716 2019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7719 (struct tui_data_window, struct tui_cmd_window): Declare
7720 clear_detail method.
7721 * tui/tui-data.c (tui_source_window::clear_detail)
7722 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7723 methods.
7724 (tui_clear_win_detail): Simplify.
7725
7726 2019-06-25 Tom Tromey <tom@tromey.com>
7727
7728 * tui/tui-layout.c (make_source_window, make_disasm_window)
7729 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7730 Return the new window.
7731 (show_source_disasm_command, show_data)
7732 (show_source_or_disasm_and_command): Update.
7733
7734 2019-06-25 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7737 parameter. Return the new window.
7738 (show_source_disasm_command): Update and remove NULL check.
7739 (show_source_or_disasm_and_command): Update.
7740
7741 2019-06-25 Tom Tromey <tom@tromey.com>
7742
7743 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7744
7745 2019-06-25 Tom Tromey <tom@tromey.com>
7746
7747 * tui/tui-data.h (struct tui_win_info): Make constructor
7748 protected. Make destructor virtual. Add initializers.
7749 (tui_source_window, tui_data_window, tui_cmd_window): New
7750 classes.
7751 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7752 constructor. Add "type" parameter.
7753 (tui_source_window, tui_data_window, tui_cmd_window): New
7754 constructors.
7755 (tui_alloc_win_info): Instantiate the appropriate subclass.
7756
7757 2019-06-25 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-win.c (tui_resize_all): Use delete.
7760 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7761 destructor.
7762 (tui_free_window): Don't declare.
7763 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7764 Update.
7765
7766 2019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-data.h (struct tui_win_info): Add constructor.
7769 * tui/tui-data.c (tui_alloc_win_info): Use new.
7770 (tui_free_window): Use delete.
7771
7772 2019-06-22 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7775 declare.
7776 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7777
7778 2019-06-22 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7781 declare.
7782 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7783
7784 2019-06-22 Tom de Vries <tdevries@suse.de>
7785
7786 * dwarf2read.c (create_addrmap_from_aranges)
7787 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7788 instead of '%zu'.
7789
7790 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * dwarf2read.h (dwarf2_section_info_def): Remove.
7793 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7794 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7795 std::vector<dwarf2_section_info>.
7796 (struct dwo_file) <~dwo_file>: Remove.
7797 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7798 types field.
7799 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7800 (dwarf2_read_debug_names): Likewise.
7801 (create_debug_types_hash_table): Change parameter type to
7802 array_view, adjust code accordingly.
7803 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7804 (partial_die_info::fixup): Likewise.
7805 (determine_prefix): Likewise.
7806 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7807
7808 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7809
7810 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7811 gdb_bfd_ref_ptr.
7812 <~dwo_file>: Remove call to gdb_bfd_unref.
7813 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7814 gdb_bfd_ref_ptr::get.
7815
7816 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7817
7818 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7819 type to htab_up.
7820 * dwarf2read.c (struct dwo_file): Initialize fields.
7821 <~dwo_file>: New.
7822 (free_dwo_file): Remove, move content to ~dwo_file.
7823 (struct dwo_file_deleter): Remove.
7824 (dwo_file_up>: Remove custom deleter.
7825 (free_dwo_files): Remove.
7826 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7827 dwo_files.
7828 (process_skeletonless_type_units): Call unique_ptr::get.
7829 (allocate_dwo_file_hash_table): Add deleter to created hash
7830 table. Change return type to htab_up.
7831 (lookup_dwo_file_slot): Don't memset dwo_file, call
7832 unique_ptr::get.
7833 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7834 (create_dwo_unit_in_dwp_v2): Likewise.
7835 (open_and_init_dwo_file): Likewise.
7836 (free_dwo_file_from_slot): Remove.
7837
7838 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * dwarf2read.h (struct dwarf2_section_info) <readin,
7841 is_virtual>: Change type to bool.
7842 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7843 true instead of 1.
7844
7845 2019-06-19 Tom Tromey <tom@tromey.com>
7846
7847 * tui/tui-data.h (tui_init_content_element): Don't declare.
7848
7849 2019-06-19 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-data.h (tui_init_win_info): Don't declare.
7852
7853 2019-06-19 Tom de Vries <tdevries@suse.de>
7854
7855 * dwarf2read.h (abstract_to_concrete): Change type to
7856 std::unordered_map<sect_offset, std::vector<sect_offset>,
7857 gdb::hash_enum<sect_offset>>.
7858
7859 2019-06-19 Tom Tromey <tromey@adacore.com>
7860
7861 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7862 EVAL_AVOID_SIDE_EFFECTS specially.
7863
7864 2019-06-19 Tom Tromey <tromey@adacore.com>
7865
7866 * source-cache.c (highlighter): New global.
7867 (source_cache::get_source_lines): Create a highlighter on demand.
7868
7869 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * defs.h (deprecated_interactive_hook): Delete declaration.
7872 * interps.c (clear_interpreter_hooks): Remove use of
7873 deprecated_interactive_hook.
7874 * top.c (deprecated_interactive_hook): Delete definition.
7875 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7876
7877 2019-06-18 Tom de Vries <tdevries@suse.de>
7878
7879 PR gdb/24515
7880 * dwarf2read.h (abstract_to_concrete): Change type from
7881 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7882 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7883 * dwarf2read.c (read_variable): Update.
7884 (dwarf2_fetch_die_loc_sect_off): Update.
7885
7886 2019-06-17 Tom de Vries <tdevries@suse.de>
7887
7888 PR gdb/24617
7889 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7890 accessing parent[parent_len - 1].
7891
7892 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7893
7894 PR gdb/24364
7895 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7896 call dtrace_process_dof with NULL dof.
7897
7898 2019-06-16 Tom de Vries <tdevries@suse.de>
7899
7900 PR gdb/24445
7901 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7902
7903 2019-06-16 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7906 (make_all_visible): Use address of member.
7907
7908 2019-06-16 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7911 (tui_free_window, free_content, free_content_elements): Remove
7912 unnecessary cast.
7913 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7914 cast.
7915 * tui/tui-regs.c (tui_show_register_group)
7916 (tui_display_registers_from, tui_display_reg_element_at_line):
7917 Remove unnecessary cast.
7918
7919 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7920
7921 * linux-nat.c (normal_mask): Delete.
7922 (_initialize_linux_nat): Don't initialise normal_mask.
7923
7924 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7925
7926 PR gdb/24445
7927 * dwarf-index-write.h (write_psymtabs_to_index): Add
7928 dwz_basename parameter.
7929 * dwarf-index-write.c (write_gdbindex): Move file writing to
7930 write_gdbindex_1. Change return type void.
7931 (assert_file_size): Move up, remove filename parameter.
7932 (write_gdbindex_1): New function.
7933 (write_debug_names): Change return type to void, call
7934 assert_file_size.
7935 (struct index_wip_file): New struct.
7936 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7937 file logic to index_wip_file. Write index for dwz file if
7938 needed.
7939 (save_gdb_index_command): Pass basename of dwz file, if present.
7940 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7941 build-id of dwz file, if present.
7942 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7943 (dwarf2_get_dwz_file): Likewise.
7944 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7945 (dwarf2_get_dwz_file): Likewise.
7946
7947 2019-06-16 Tom Tromey <tom@tromey.com>
7948
7949 * coffread.c (process_coff_symbol): Use xstrdup.
7950 * value.c (create_internalvar): Use xstrdup.
7951
7952 2019-06-16 Tom Tromey <tom@tromey.com>
7953
7954 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7955 * breakpoint.c (stopin_command, stopat_command)
7956 (until_break_command, decode_location_default): Remove unnecessary
7957 cast.
7958 * utils.c (subset_compare): Remove unnecessary cast.
7959 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7960 cast.
7961 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7962 cast.
7963 * infcmd.c (path_command): Remove unnecessary cast.
7964 * coffread.c (decode_type): Remove unnecessary cast.
7965 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7966 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7967 * tui/tui-stack.c (tui_show_locator_content)
7968 (tui_show_frame_info): Remove unnecessary cast.
7969 * tui/tui-win.c (tui_scroll_forward_command)
7970 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7971 (parse_scrolling_args): Remove unnecessary cast.
7972 * tui/tui-data.c (init_win_info, tui_del_window)
7973 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7974 (free_content_elements): Remove unnecessary cast.
7975 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7976 unnecessary cast.
7977 * tui/tui-source.c (tui_set_source_content)
7978 (tui_vertical_source_scroll): Remove unnecessary cast.
7979 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7980 cast.
7981 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7982 * tui/tui-regs.c (tui_display_registers_from)
7983 (tui_display_register): Remove unnecessary cast.
7984 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7985 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7986 (make_visible): Remove unnecessary cast.
7987 * tui/tui-winsource.c (tui_erase_source_content)
7988 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7989 unnecessary cast.
7990 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7991 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7992 * stabsread.c (read_type, read_array_type, read_range_type):
7993 Remove unnecessary cast.
7994 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7995 (parse_symbol, parse_type, upgrade_type, parse_external)
7996 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7997 unnecessary cast.
7998 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7999
8000 2019-06-16 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui-data.c (tui_alloc_generic_win_info)
8003 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8004 checks.
8005
8006 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8007 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * f-typeprint.c (f_print_type): Don't return early for not
8010 associated or not allocated types.
8011 (f_type_print_varspec_suffix): Add print_rank parameter and print
8012 ranks of array types in case they dangling.
8013 (f_type_print_base): Add print_rank parameter.
8014
8015 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * NEWS: Mention new MI commands.
8018 * break-catch-throw.c (enum exception_event_kind): Move to
8019 breakpoint.h.
8020 (print_mention_exception_catchpoint): Output text as a single
8021 message.
8022 (catch_exception_command_1): Rename to...
8023 (catch_exception_event): ...this, make non-static, update header
8024 command, and change some parameter types.
8025 (catch_catch_command): Update for changes to
8026 catch_exception_command_1.
8027 (catch_throw_command): Likewise.
8028 (catch_rethrow_command): Likewise.
8029 * breakpoint.c (enum exception_event_kind): Delete.
8030 * breakpoint.h (enum exception_event_kind): Moved here from
8031 break-catch-throw.c.
8032 (catch_exception_event): Declare.
8033 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8034 (mi_cmd_catch_throw): New function.
8035 (mi_cmd_catch_rethrow): New function.
8036 (mi_cmd_catch_catch): New function.
8037 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8038 'catch-catch' entries.
8039 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8040 (mi_cmd_catch_rethrow): Declare.
8041 (mi_cmd_catch_catch): Declare.
8042
8043 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * annotate.c (annotate_source_line): Change return type to void,
8046 update implementation to match.
8047 * annotate.h (annotate_source_line): Change return type to void,
8048 update header comment.
8049 * stack.c (print_frame_info): Don't change what frame information
8050 is printed based on whether annotations are on or not.
8051
8052 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8055 (annotate_source): Make static.
8056 (annotate_source_line): Moved from source.c and renamed from
8057 identify_source_line. Update the return type.
8058 * annotate.h (annotate_source): Delete declaration.
8059 (annotate_source_line): Declaration moved from source.h, and
8060 renamed from identify_source_line. Return type updated.
8061 * source.c (identify_source_line): Moved to annotate.c and renamed
8062 to annotate_source_line.
8063 (info_line_command): Remove check of annotation_level.
8064 * source.h (identify_source_line): Move declaration to annotate.h
8065 and rename to annotate_source_line.
8066 * stack.c: Add 'annotate.h' include.
8067 (print_frame_info): Remove check of annotation_level before
8068 calling annotate_source_line.
8069
8070 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8071
8072 * source-cache.c (source_cache::get_plain_source_lines): Use
8073 open_source_file_with_line_charpos instead of just
8074 open_source_file, remove call to find_source_lines.
8075 (source_cache::get_source_lines): Likewise.
8076 * source.c (find_source_lines): Make static.
8077 (get_filename_and_charpos): Renamed into...
8078 (open_source_file_with_line_charpos): ..this along with changes to
8079 return a scoped_fd, and some other minor clean ups.
8080 (identify_source_line): Use open_source_file_with_line_charpos.
8081 (search_command_helper): Use open_source_file_with_line_charpos
8082 instead of just open_source_file, remove call to
8083 find_source_lines.
8084 * source.h (open_source_file_with_line_charpos): Declare new
8085 function.
8086 (find_source_lines): Delete declaration.
8087
8088 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * source.c (get_filename_and_charpos): Remove fullname
8091 parameter.
8092 (identify_source_line): Update call to get_filename_and_charpos.
8093
8094 2019-06-14 Tom Tromey <tromey@adacore.com>
8095
8096 PR gdb/24502:
8097 * ui-style.h (skip_ansi_escape): Update comment.
8098 * ui-file.h (class no_terminal_escape_file): New class.
8099 * ui-file.c (no_terminal_escape_file::write)
8100 (no_terminal_escape_file::puts): New methods.
8101 * cli/cli-logging.c (handle_redirections): Use
8102 no_terminal_escape_file.
8103
8104 2019-06-14 Tom Tromey <tromey@adacore.com>
8105
8106 * NEWS: Move convenience variable news above Python news.
8107
8108 2019-06-14 Tom Tromey <tom@tromey.com>
8109
8110 * gnulib: Move directory to top-level.
8111 * configure.ac: Don't configure gnulib.
8112 * configure: Rebuild.
8113 * common/common-defs.h: Use new path to gnulib.
8114 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8115 (GNULIB_H): Remove.
8116 (INCGNU): Look in new gnulib location.
8117 (HFILES_NO_SRCDIR): Remove gnulib files.
8118 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8119 (generated_files): Remove GNULIB_H.
8120 ($(LIBGNU), all-lib): Remove targets.
8121 (distclean): Don't mention GNULIB_BUILDDIR.
8122 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8123
8124 2019-06-14 Tom Tromey <tromey@adacore.com>
8125
8126 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8127 Warn if symbol file does not provide any symbols.
8128
8129 2019-06-14 Tom Tromey <tromey@adacore.com>
8130
8131 * source.c (find_and_open_source): Respect basenames_may_differ.
8132
8133 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * annotate.c (annotate_breakpoints_invalid): Make use of
8136 scoped_restore_terminal_state.
8137 (annotate_frames_invalid): Likewise.
8138
8139 2019-06-14 Tom Tromey <tromey@adacore.com>
8140
8141 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8142 allow assignment to an internalvar.
8143
8144 2019-06-14 Tom Tromey <tromey@adacore.com>
8145
8146 * ada-lex.l: Allow "_" in attribute names.
8147
8148 2019-06-14 Tom Tromey <tromey@adacore.com>
8149
8150 PR gdb/24653:
8151 * regcache.c (registers_changed): Don't call alloca.
8152 * top.c (execute_command): Don't call alloca.
8153
8154 2019-06-13 Pedro Alves <palves@redhat.com>
8155
8156 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8157 'expression'. When parsing an expression, error out if there's
8158 junk after "unlimited".
8159 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8160 (do_set_command): Adjust calls to is_unlimited_literal.
8161
8162 2019-06-13 Pedro Alves <palves@redhat.com>
8163
8164 * compile/compile.c (make_compile_options_def_group): Add braces
8165 around array_view initializer.
8166 * thread.c (make_thread_apply_all_options_def_group)
8167 (make_thread_apply_all_options_def_group): Likewise.
8168
8169 2019-06-13 Pedro Alves <palves@redhat.com>
8170
8171 * NEWS (New commands): Mention "maint test-options
8172 require-delimiter", "maint test-options unknown-is-error", "maint
8173 test-options unknown-is-operand" and "maint show
8174 test-options-completion-result".
8175 (New command options, command completion): New section.
8176 (Completion improvements): New section.
8177 Mention that you can abbreviate "unlimited".
8178
8179 2019-06-13 Pedro Alves <palves@redhat.com>
8180
8181 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8182 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8183 * unittests/cli-utils-selftests.c (test_parse_flags)
8184 (test_parse_flags_qcs): Delete.
8185 (test_cli_utils): Don't call deleted functions.
8186
8187 2019-06-13 Pedro Alves <palves@redhat.com>
8188
8189 * thread.c: Include "cli/cli-option.h".
8190 (tp_array_compar_ascending): Global.
8191 (tp_array_compar): Delete function.
8192 (tp_array_compar_ascending, tp_array_compar_descending): New
8193 functions.
8194 (ascending_option_def, qcs_flag_option_def)
8195 (thr_qcs_flags_option_defs)
8196 (make_thread_apply_all_options_def_group)
8197 (make_thread_apply_options_def_group): New.
8198 (thread_apply_all_command): Use gdb::option::process_options.
8199 (thread_apply_command_completer)
8200 (thread_apply_all_command_completer): New.
8201 (thread_apply_command): Use gdb::option::process_options.
8202 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8203 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8204 to generate help text of "thread apply". Adjust "taas"'s help.
8205 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8206 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8207
8208 2019-06-13 Pedro Alves <palves@redhat.com>
8209
8210 * thread.c (thread_apply_command): Check for invalid TID with
8211 isdigit instead of !isalpha.
8212
8213 2019-06-13 Pedro Alves <palves@redhat.com>
8214
8215 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8216 (validate_flags_qcs): New.
8217 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8218 (validate_flags_qcs): Declare.
8219 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8220 (make_frame_apply_options_def_group): New.
8221 (frame_apply_command_count): Process options with
8222 gdb::option::process_options.
8223 (frame_apply_completer): New.
8224 (frame_apply_level_completer, frame_apply_all_completer)
8225 (frame_apply_completer): New.
8226 (_initialize_stack): Update help of "frame apply", "frame apply
8227 level", "frame apply all" and "faas" to mention supported options
8228 and install command completers.
8229 * stack.h (frame_apply_all_completer): Declare.
8230 * thread.c: Include "stack.h".
8231 (tfaas_command): Add "--".
8232 (_initialize_thread): Update help "tfaas" to mention supported
8233 options and install command completer.
8234
8235 2019-06-13 Pedro Alves <palves@redhat.com>
8236
8237 * completer.c (complete_nested_command_line): New.
8238 (gdb_completion_word_break_characters_throw): Add assertion.
8239 * completer.h (complete_nested_command_line): Declare.
8240
8241 2019-06-13 Pedro Alves <palves@redhat.com>
8242
8243 * stack.c (parse_backtrace_qualifiers): New.
8244 (backtrace_command): Use it.
8245 (backtrace_command_completer): Complete on qualifiers.
8246
8247 2019-06-13 Pedro Alves <palves@redhat.com>
8248
8249 * frame.c: Include "cli/cli-option.h.
8250 (user_set_backtrace_options): New.
8251 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8252 Delete.
8253 (get_prev_frame): Adjust.
8254 (boolean_option_def, uinteger_option_def)
8255 (set_backtrace_option_defs): New.
8256 (_initialize_frame): Adjust and use
8257 gdb::option::add_setshow_cmds_for_options to install "set
8258 backtrace past-main" and "set backtrace past-entry".
8259 * frame.h: Include "cli/cli-option.h".
8260 (struct frame_print_options): Forward declare.
8261 (print_frame_arguments_all, print_frame_arguments_scalars)
8262 (print_frame_arguments_none): Declare.
8263 (print_entry_values): Delete declaration.
8264 (struct frame_print_options, user_frame_print_options): New.
8265 (struct set_backtrace_options): New.
8266 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8267 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8268 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8269 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8270 (list_args_or_locals): Add frame_print_options parameter.
8271 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8272 * python/py-framefilter.c (enumerate_args): Pass down
8273 USER_FRAME_PRINT_OPTIONS.
8274 * stack.c: Include "cli/cli-option.h".
8275 (print_frame_arguments_all, print_frame_arguments_scalars)
8276 (print_frame_arguments_none): Declare.
8277 (print_raw_frame_arguments, print_entry_values): Delete.
8278 (user_frame_print_options): New.
8279 (boolean_option_def, enum_option_def, frame_print_option_defs):
8280 New.
8281 (struct backtrace_cmd_options): New.
8282 (bt_flag_option_def): New.
8283 (backtrace_command_option_defs): New.
8284 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8285 (print_frame_arg, read_frame_arg, print_frame_args)
8286 (print_frame_info, print_frame): Add frame_print_options parameter
8287 and use it.
8288 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8289 (backtrace_command_1): Add frame_print_options and
8290 backtrace_cmd_options parameters and use them.
8291 (make_backtrace_options_def_group): New.
8292 (backtrace_command): Process command options with
8293 gdb::option::process_options.
8294 (backtrace_command_completer): New.
8295 (_initialize_stack): Extend "backtrace"'s help to mention
8296 supported options. Install completer for "backtrace".
8297 Install some settings commands with add_setshow_cmds_for_options.
8298
8299 2019-06-13 Pedro Alves <palves@redhat.com>
8300
8301 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8302 and that "set/show print raw frame-arguments" are now deprecated.
8303
8304 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8305 command.
8306 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8307 * stack.c (_initialize_stack): Install "set/show print
8308 raw-frame-arguments", and deprecate "set/show print raw
8309 frame-arguments".
8310 * valprint.c (_initialize_valprint): Deprecate "set/show print
8311 raw".
8312
8313 2019-06-13 Pedro Alves <palves@redhat.com>
8314
8315 * compile/compile.c (struct compile_options): New.
8316 (compile_flag_option_def, compile_command_option_defs)
8317 (make_compile_options_def_group): New.
8318 (compile_file_command): Handle options with
8319 gdb::option::process_options.
8320 (compile_file_command_completer): New function.
8321 (compile_code_command): Handle options with
8322 gdb::option::process_options.
8323 (compile_code_command_completer): New function.
8324 (_initialize_compiler): Install completers for "compile code" and
8325 "compile file". Mention available options in "compile code" and
8326 "compile code"'s help.
8327 * completer.c (advance_to_completion_word): New, factored out from
8328 ...
8329 (advance_to_expression_complete_word_point): ... this.
8330 (advance_to_filename_complete_word_point): New.
8331 * completer.h (advance_to_filename_complete_word_point): New
8332 declaration.
8333
8334 2019-06-13 Pedro Alves <palves@redhat.com>
8335
8336 * compile/compile.c: Include "cli/cli-option.h".
8337 (compile_print_value): Scope data pointer is now a
8338 value_print_options pointer; adjust.
8339 (compile_print_command): Process options. Scope data pointer is
8340 now a value_print_options pointer; adjust.
8341 (_initialize_compile): Update "compile print"'s help to include
8342 supported options. Install a completer for "compile print".
8343 * cp-valprint.c (show_vtblprint, show_objectprint)
8344 (show_static_field_print): Delete.
8345 (_initialize_cp_valprint): Don't install "set print
8346 static-members", "set print vtbl", "set print object" here.
8347 * printcmd.c: Include "cli/cli-option.h" and
8348 "common/gdb_optional.h".
8349 (print_command_parse_format): Rework to fill in a
8350 value_print_options instead of a format_data.
8351 (print_value): Change parameter type from format_data pointer to
8352 value_print_options reference. Adjust.
8353 (print_command_1): Process options. Adjust to pass down a
8354 value_print_options.
8355 (print_command_completer): New.
8356 (_initialize_printcmd): Install print_command_completer as
8357 handle_brkchars completer for the "print" command. Update
8358 "print"'s help to include supported options.
8359 * valprint.c: Include "cli/cli-option.h".
8360 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8361 here from cp-valprint.c.
8362 (boolean_option_def, uinteger_option_def)
8363 (value_print_option_defs, make_value_print_options_def_group):
8364 New. Use gdb::option::add_setshow_cmds_for_options to install
8365 "set print elements", "set print null-stop", "set print repeats",
8366 "set print pretty", "set print union", "set print array", "set
8367 print address", "set print symbol", "set print array-indexes".
8368 * valprint.h: Include <string> and "cli/cli-option.h".
8369 (make_value_print_options_def_group): Declare.
8370 (print_value): Change parameter type from format_data pointer to
8371 value_print_options reference.
8372 (print_command_completer): Declare.
8373
8374 2019-06-13 Pedro Alves <palves@redhat.com>
8375
8376 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8377 (COMMON_SFILES): Add maint-test-settings.c.
8378 * cli/cli-decode.c (boolean_enums): New global, factored out from
8379 ...
8380 (add_setshow_boolean_cmd): ... here.
8381 * cli/cli-decode.h (boolean_enums): Declare.
8382 * cli/cli-option.c: New file.
8383 * cli/cli-option.h: New file.
8384 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8385 factored out from ...
8386 (parse_cli_boolean_value(const char *)): ... this.
8387 (is_unlimited_literal): Change parameter type to pointer to
8388 pointer. Adjust and advance ARG pointer.
8389 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8390 (parse_cli_var_enum): New, factored out from ...
8391 (do_set_command): ... this. Adjust.
8392 * cli/cli-setshow.h (parse_cli_boolean_value)
8393 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8394 (parse_cli_var_enum): Declare.
8395 * cli/cli-utils.c: Include "cli/cli-option.h".
8396 (get_ulongest): New.
8397 * cli/cli-utils.h (get_ulongest): Declare.
8398 (check_for_argument): New overloads.
8399 * maint-test-options.c: New file.
8400
8401 2019-06-13 Pedro Alves <palves@redhat.com>
8402
8403 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8404 parse a range if "-" is at the end of the string.
8405
8406 2019-06-13 Pedro Alves <palves@redhat.com>
8407
8408 * cli/cli-setshow.c (parse_auto_binary_operation)
8409 (parse_cli_boolean_value): Don't allow "o".
8410
8411 2019-06-13 Pedro Alves <palves@redhat.com>
8412
8413 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8414 * NEWS: Mention maint test-settings KIND.
8415 * maint-test-settings.c: New file.
8416
8417 2019-06-13 Pedro Alves <palves@redhat.com>
8418
8419 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8420 completer.
8421 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8422 "set" completers.
8423
8424 2019-06-13 Pedro Alves <palves@redhat.com>
8425
8426 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8427 after item.
8428
8429 2019-06-13 Pedro Alves <palves@redhat.com>
8430
8431 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8432
8433 2019-06-13 Pedro Alves <palves@redhat.com>
8434
8435 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8436 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8437 call.
8438 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8439 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8440 calls.
8441 (check_for_argument): Skip spaces after argument.
8442
8443 2019-06-13 Pedro Alves <palves@redhat.com>
8444
8445 * thread.c (thread_apply_command): Adjust TID parsing.
8446 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8447 detected before end of string.
8448 (tid_is_in_list): Error out if LIST is invalid.
8449
8450 2019-06-13 Pedro Alves <palves@redhat.com>
8451
8452 * completer.c (complete_line_internal_1): Rewind completion word
8453 point.
8454 (completion_tracker::advance_custom_word_point_by): Change
8455 parameter type to int.
8456 * completer.h (completion_tracker::advance_custom_word_point_by):
8457 Likewise.
8458
8459 2019-06-13 Pedro Alves <palves@redhat.com>
8460
8461 * completer.c (advance_to_completion_word): Handle delimiters.
8462
8463 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8464
8465 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8466
8467 2019-06-11 Tom Tromey <tom@tromey.com>
8468
8469 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8470 (xmalloc_failed): Move to alloc.c.
8471 * alloc.c: New file.
8472 * Makefile.in (COMMON_SFILES): Add alloc.c.
8473
8474 2019-06-11 Tom Tromey <tom@tromey.com>
8475
8476 * nat/linux-waitpid.c: Don't include server.h.
8477 (linux_debug): Remove.
8478 (my_waitpid): Update.
8479
8480 2019-06-11 Tom Tromey <tromey@adacore.com>
8481
8482 * infcall.c (_initialize_infcall): Remove trailing newline from
8483 help.
8484 * user-regs.c (_initialize_user_regs): Remove trailing newline
8485 from help.
8486 * typeprint.c (_initialize_typeprint): Remove trailing newline
8487 from help.
8488 * reverse.c (_initialize_reverse): Remove trailing newlines from
8489 help.
8490 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8491 from help.
8492 * language.c (add_set_language_command): Remove trailing newline
8493 from help.
8494 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8495 help.
8496 * disasm.c (_initialize_disasm): Remove trailing newline from
8497 help.
8498 * top.c (init_main): Remove trailing newline from help.
8499 * interps.c (_initialize_interpreter): Remove trailing newline
8500 from help.
8501 * btrace.c (_initialize_btrace): Remove trailing newlines from
8502 help.
8503 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8504 from help.
8505 * python/python.c (_initialize_python): Remove trailing newline
8506 from help.
8507 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8508 help.
8509 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8510 from help. Reformat some text.
8511 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8512 from help.
8513 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8514 newline from help.
8515
8516 2019-06-11 Tom Tromey <tromey@adacore.com>
8517
8518 * darwin-nat.c (darwin_decode_exception_message)
8519 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8520
8521 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8522
8523 * valops.c (value_slice): Check for not allocated or not
8524 associated values.
8525
8526 2019-06-10 Tom de Vries <tdevries@suse.de>
8527
8528 PR gdb/24618
8529 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8530 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8531 invalid.
8532
8533 2019-06-10 Tom de Vries <tdevries@suse.de>
8534
8535 PR gdb/24611
8536 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8537 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8538
8539 2019-06-10 Tom de Vries <tdevries@suse.de>
8540
8541 PR symtab/24545
8542 * symtab.c (struct demangled_name_entry): Add language field.
8543 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8544 static minimal symbol". Set and use language field.
8545
8546 2019-06-10 Tom Tromey <tromey@adacore.com>
8547
8548 * ada-lang.c (_initialize_ada_language): Update help text.
8549
8550 2019-06-10 Tom Tromey <tromey@adacore.com>
8551
8552 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8553 with a newline.
8554 * guile/guile.c (handle_boot_error): Don't end warning with a
8555 newline.
8556 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8557 warning with a newline.
8558 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8559 newline.
8560 (s12z_frame_cache): Likewise.
8561 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8562 a newline.
8563 * solib-svr4.c (disable_probes_interface): Don't end warning with
8564 a newline.
8565 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8566 newline.
8567 * python/python.c (do_finish_initialization): Don't end warning
8568 with a newline.
8569
8570 2019-06-10 Tom Tromey <tom@tromey.com>
8571
8572 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8573 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8574 gdbpy_enter.
8575
8576 2019-06-10 Tom Tromey <tromey@adacore.com>
8577
8578 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8579 data.
8580 (elf_new_init): Don't call stabsread_new_init.
8581 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8582 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8583 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8584
8585 2019-06-10 Tom de Vries <tdevries@suse.de>
8586
8587 PR symtab/16264
8588 PR symtab/24517
8589 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8590
8591 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8592
8593 * source.c (find_and_open_source): Also rewrite relative file
8594 names.
8595
8596 2019-04-26 Amos Bird <amosbird@gmail.com>
8597
8598 * annotate.c (annotate_thread_exited): Add "thread-exited"
8599 annotation.
8600
8601 2019-06-06 Tom Tromey <tromey@adacore.com>
8602
8603 * maint.h (class scoped_command_stats): Use
8604 DISABLE_COPY_AND_ASSIGN.
8605 <print_time>: New method.
8606 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8607 print_time.
8608 (scoped_command_stats::print_time): New method.
8609
8610 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8611
8612 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8613 instructions of lengths 6 or 8 bytes.
8614
8615 2019-06-04 Pedro Alves <palves@redhat.com>
8616
8617 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8618
8619 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8620 * breakpoint.c (condition_completer): Likewise.
8621 * cli/cli-dump.c (scan_expression): Likewise.
8622 * common/filestuff.c (mkdir_recursive): Likewise.
8623 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8624 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8625 (gdb_abspath): Likewise.
8626 * compile/compile-cplus-types.c
8627 (compile_cplus_instance::decl_name): Likewise.
8628 * completer.c (complete_explicit_location):
8629 (signal_completer, reg_or_group_completer_1): Likewise.
8630 * cp-support.c (cp_remove_params_if_any): Likewise.
8631 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8632 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8633 * infcmd.c (strip_bg_char): Likewise.
8634 * linespec.c (copy_token_string): Likewise.
8635 * mi/mi-main.c (output_cores): Likewise.
8636 * psymtab.c (psymtab_search_name):
8637 * symfile.c (test_set_ext_lang_command): Likewise.
8638 * target.c (target_fileio_read_stralloc): Likewise.
8639 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8640 * value.c (complete_internalvar): Likewise.
8641
8642 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8643
8644 Add objfile property to gdb.Type.
8645 * NEWS: Mention Python API addition.
8646 * python/py-type.c (typy_get_objfile): New method.
8647
8648 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8649
8650 * NEWS: Mention the new set|show style [title|highlight].
8651 Mention changes to "show style", "help" and "apropos".
8652
8653 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8654
8655 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8656 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8657 instead of print_help_for_command.
8658 (print_doc_of_command): New function.
8659 (help_list): Add 'apropos -v word' suggestion.
8660 (print_help_for_command): Style the command name using title style.
8661 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8662 (_initialize_cli_cmds): Describe -v in apropos_command help.
8663
8664 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8665
8666 * cli/cli-style.h (cli_style_option): Add name in constructor,
8667 add m_name class member, add constructor with intensity,
8668 add name class function.
8669 (cli_style_option::add_setshow_commands): Remove name argument.
8670 (highlight_style, title_style): New styles.
8671 * cli/cli-style.c (do_show): New function that shows a style
8672 characteristic styling the style name with itself.
8673 (set_style_name): New function.
8674 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8675 Update all callers according to the changes in cli/cli-style.h.
8676 * utils.h (fputs_highlighted): New function.
8677 * utils.c (fputs_highlighted): Likewise.
8678
8679 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8680
8681 * NEWS: Mention new pipe command and new convenience variables.
8682
8683 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8684
8685 * cli/cli-cmds.c (pipe_command): New function.
8686 (_initialize_cli_cmds): Call add_com for pipe_command.
8687 Define | as an alias for pipe.
8688 (exit_status_set_internal_vars): New function.
8689 (shell_escape): Call exit_status_set_internal_vars.
8690 cli/cli-decode.c (find_command_name_length): Recognize | as
8691 a single character command.
8692
8693 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8694
8695 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8696 top.c (execute_command_to_ui_file): New function, mostly a copy
8697 of execute_command_to_string.
8698 (execute_command_to_string): Implement by calling
8699 execute_command_to_ui_file.
8700
8701 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702
8703 * top.h (saved_command_line): Remove declaration.
8704 * top.c (previous_saved_command_line, previous_repeat_arguments):
8705 New variables.
8706 (saved_command_line): Make static, define together with other
8707 'repeat variables'.
8708 (dont_repeat): Clear repeat_arguments.
8709 (repeat_previous, get_saved_command_line, save_command_line):
8710 New functions.
8711 (gdb_init): Initialize saved_command_line
8712 and previous_saved_command_line.
8713 * main.c (captured_main_1): Remove saved_command_line initialization.
8714 * event-top.c (handle_line_of_input): Update to use
8715 the new 'repeat' related functions instead of direct access to
8716 saved_command_line.
8717 * command.h (repeat_previous, get_saved_command_line,
8718 save_command_line): New declarations.
8719 (dont_repeat): Add comment.
8720
8721 2019-05-30 Tom Tromey <tromey@adacore.com>
8722
8723 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8724 Fix comment.
8725 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8726
8727 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8728
8729 PR cli/24587
8730 * completer.c (complete): Initialize variable word.
8731
8732 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8733
8734 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8735 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8736 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8737 'body' is NULL to the outter 'if', protecting the '!is_define'
8738 situation as well.
8739
8740 2019-05-29 Tom Tromey <tromey@adacore.com>
8741
8742 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8743 (dwarf_unknown): New function.
8744 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8745 (dwarf_type_encoding_name): Use dwarf_unknown.
8746
8747 2019-05-29 Tom Tromey <tromey@adacore.com>
8748
8749 PR c++/20020:
8750 * cp-valprint.c (cp_print_value_fields): Call
8751 cp_print_static_field inside "try".
8752
8753 2019-05-29 Tom Tromey <tromey@adacore.com>
8754
8755 * inflow.c (struct terminal_info): Add default operator=.
8756 * configure: Rebuild.
8757 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8758 -Wdeprecated-copy-dtor, -Wredundant-move.
8759
8760 2019-05-29 Tom Tromey <tromey@adacore.com>
8761
8762 * NEWS: Add entry.
8763 * infcmd.c (print_return_value_1): Handle finish_print
8764 option.
8765 (show_print_finish): New function.
8766 (_initialize_infcmd): Add "set/show print finish" commands.
8767 * valprint.c (user_print_options): Initialize new member.
8768 * valprint.h (struct value_print_options) <finish_print>: New
8769 member.
8770
8771 2019-05-28 Tom Tromey <tromey@adacore.com>
8772
8773 * ada-lang.c (ada_remove_Xbn_suffix)
8774 (find_old_style_renaming_symbol)
8775 (parse_old_style_renaming): Remove.
8776 (ada_find_renaming_symbol): Don't call
8777 find_old_style_renaming_symbol.
8778 (ada_is_renaming_symbol): Rename from
8779 ada_find_renaming_symbol. Remove "block" parameter. Return
8780 bool. Now static.
8781 (ada_read_var_value): Update and simplify.
8782 * ada-exp.y (write_var_or_type): Remove old code.
8783
8784 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8785
8786 PR gdb/25010
8787 * event-top.c: Remove include comment.
8788 * inflow.c (class scoped_ignore_sigttou): Move from here...
8789 * inflow.h (class scoped_ignore_sigttou): ...to here.
8790 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8791 * top.c: Remove include comment.
8792
8793 2019-05-27 Tom Tromey <tom@tromey.com>
8794
8795 * NEWS: Fix typo.
8796
8797 2019-05-22 Tom Tromey <tromey@adacore.com>
8798
8799 * target.c (target_follow_exec): Constify parameter.
8800 * target-delegates.c: Rebuild.
8801 * remote.c (remote_target::follow_exec): Constify parameter.
8802 * infrun.c (follow_exec): Constify parameter.
8803 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8804 (target_follow_exec): Likewise.
8805
8806 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8807
8808 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8809 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8810
8811 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8812
8813 * NEWS: Add debugredirect and testsuite sections.
8814
8815 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8816
8817 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8818 target descriptions using exclusively floating point register name
8819 aliases.
8820
8821 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8822
8823 PR gdb/18644:
8824 * f-lang.c (build_fortran_types): Handle the case where
8825 gdbarch_floatformat_for_type returns a nullptr.
8826
8827 2019-05-21 Tom de Vries <tdevries@suse.de>
8828
8829 PR cli/24587
8830 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8831
8832 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 PR gdb/18644:
8835 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8836 16-byte floats.
8837 * i386-tdep.c (i386_floatformat_for_type): Use
8838 floatformats_ia64_quad for the 16-byte floating point component
8839 within a fortran 32-byte complex number.
8840
8841 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8844 delete default constructor.
8845 (find_partial_die): Update to return const struct.
8846 (partial_die_parent_scope): Move variable declaration into scope
8847 of its use and change its type to auto.
8848 (guess_partial_die_structure_name): Likewise.
8849 (partial_die_info::fixup): Likewise.
8850
8851 2019-05-17 Tom Tromey <tromey@adacore.com>
8852
8853 * source.c (find_and_open_source): Remove cast.
8854
8855 2019-05-17 Tom Tromey <tromey@adacore.com>
8856
8857 * annotate.c (annotate_source): Make "filename" const.
8858 * annotate.h (annotate_source): Use const.
8859
8860 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8861
8862 * disasm.c (set_disassembler_options): Send errors to stderr.
8863
8864 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8865
8866 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8867 (cli_interp_base::set_logging): Check debug_redirect.
8868 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8869 * cli/cli-logging.c (debug_redirect): Add static variable.
8870 (pop_output_files): Add default param.
8871 (handle_redirections): Print debug setting.
8872 (show_logging_command): Likewise.
8873 (_initialize_cli_logging): Add debugredirect command.
8874 * interps.c (current_interp_set_logging): Add debug_redirect
8875 parameter.
8876 * interps.h (set_logging): Add debug_redirect parameter.
8877 (current_interp_set_logging): Likewise.
8878 * mi/mi-common.h: Likewise.
8879 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8880
8881 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8882 Tom Tromey <tromey@adacore.com>
8883
8884 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8885 directly.
8886 * cli/cli-interp.h (make_logging_output): Remove declaration.
8887 * cli/cli-logging.c (make_logging_output): Remove function.
8888 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8889 directly.
8890 * ui-file.c (tee_file::tee_file): Remove bools.
8891 (tee_file::~tee_file): Remove deletes.
8892 * ui-file.h (tee_file): Remove bools.
8893
8894 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8895
8896 * mi/mi-cmds.h (mi_cmd_complete): New function.
8897 * mi/mi-main.c (mi_cmd_complete): Likewise.
8898 * mi/mi-cmds.c: Define new MI command -complete.
8899 * NEWS: Mention new -complete command.
8900
8901 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8902
8903 * completer.h (complete): New function.
8904 * completer.c (complete): Likewise.
8905 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8906 function defined in completer.h.
8907
8908 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8909
8910 * MAINTAINERS (Write After Approval): Add myself.
8911
8912 2019-05-17 Tom de Vries <tdevries@suse.de>
8913
8914 PR gdb/24094
8915 * dwarf2read.c (struct cu_partial_die_info): New struct.
8916 (find_partial_die): Return cu_partial_die_info.
8917 (partial_die_parent_scope, guess_partial_die_structure_name)
8918 (partial_die_info::fixup): Handle new return type of find_partial_die.
8919
8920 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8921
8922 PR breakpoints/24541
8923 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8924 "std::string", simplifying the algorithm.
8925
8926 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8927
8928 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8929 (stap_static_probe_ops::get_probes): Likewise.
8930
8931 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8932
8933 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8934 '-')" and "else if".
8935 (stap_parse_single_operand): Join checks for
8936 "gdbarch_stap_parse_special_token_p" and
8937 "gdbarch_stap_parse_special_token" in the same "if" statement.
8938 Invert check when verifying for operation on register
8939 displacement.
8940
8941 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8942
8943 * stap-probe.c (stap_get_opcode): Update comment.
8944 (stap_get_expected_argument_type): Likewise.
8945 (handle_stap_probe): Likewise.
8946
8947 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8948
8949 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8950 return type to 'bool'. Adjust comment. Use 'bool' when
8951 appropriate.
8952 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8953 * stap-probe.c (stap_parse_argument_1): Likewise.
8954 (stap_is_operator): Likewise.
8955 (stap_is_generic_prefix): Likewise.
8956 (stap_is_register_prefix): Likewise.
8957 (stap_is_register_indirection_prefix): Likewise.
8958 (stap_is_integer_prefix): Likewise.
8959 (stap_generic_check_suffix): Likewise.
8960 (stap_check_integer_suffix): Likewise.
8961 (stap_check_register_suffix): Likewise.
8962 (stap_check_register_indirection_suffix): Likewise.
8963 (stap_parse_register_operand): Likewise.
8964 (stap_parse_single_operand): Likewise.
8965 (stap_parse_argument_1): Likewise.
8966 (stap_probe::get_argument_count): Likewise.
8967 (stap_is_operator): Likewise.
8968
8969 2019-05-16 Tom Tromey <tromey@adacore.com>
8970
8971 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8972 keyword to foreach.
8973
8974 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * linux-thread-db.c (try_thread_db_load_1): Change return type
8977 to bool.
8978 (try_thread_db_load): Likewise.
8979 (try_thread_db_load_from_pdir_1): Likewise.
8980 (try_thread_db_load_from_pdir): Likewise.
8981 (try_thread_db_load_from_sdir): Likewise.
8982 (try_thread_db_load_from_dir): Likewise.
8983 (thread_db_load_search): Likewise.
8984 (has_libpthread): Likewise.
8985 (thread_db_load): Likewise.
8986
8987 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8988
8989 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8990 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8991 NULL, and complain/return if that's the case.
8992
8993 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8994
8995 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8996 (advance, posn, abstract_read_memory): New functions.
8997 [struct mem_read_abstraction]: New struct.
8998 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8999
9000 2019-05-14 Tom Tromey <tromey@adacore.com>
9001
9002 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9003 value is not lval_memory.
9004
9005 2019-05-14 Tom Tromey <tromey@adacore.com>
9006
9007 * solib.c (info_sharedlibrary_command): Style the file name.
9008
9009 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9010
9011 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9012 (aarch64_vnv_type): Likewise.
9013 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9014 * common/tdesc.c: Likewise.
9015 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9016 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9017 * features/aarch64-fpu.xml: Add ieee half view.
9018 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9019 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9020 * gdbtypes.h (struct builtin_type): Likewise.
9021 (struct objfile_type): Likewise.
9022
9023 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9024
9025 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9026 typo.
9027 * location.h (string_to_event_location): Likewise.
9028
9029 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9030
9031 GDB 8.3 released.
9032
9033 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9036 New variable declaration.
9037 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9038 New variable.
9039 (print_one_breakpoint): Use ui_out::test_flags and new global
9040 variable to compute use_fixed_output.
9041 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9042 Remove.
9043 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9044 (mi_multi_location_breakpoint_output_fixed): Remove.
9045 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9046 new variable.
9047 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9048 fix_multi_location_breakpoint_output flag if version >= 3.
9049 * ui-out.h (enum ui_out_flag)
9050 <fix_multi_location_breakpoint_output>: New enumerator.
9051
9052 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9055
9056 2019-05-10 Tom Tromey <tromey@adacore.com>
9057
9058 * ada-lang.c (catch_ada_completer): New function.
9059 (_initialize_ada_language): Use it.
9060
9061 2019-05-10 Tom Tromey <tromey@adacore.com>
9062
9063 * thread.c (print_thread_info): Make "requested_threads" const.
9064 * gdbthread.h (print_thread_info): Make "requested_threads"
9065 const.
9066 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9067 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9068
9069 2019-05-08 Tom Tromey <tom@tromey.com>
9070
9071 * gdbtypes.c (objfile_type_data): Change type.
9072 (objfile_type, _initialize_gdbtypes): Update.
9073
9074 2019-05-08 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9077 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9078 (_initialize_dwarf2_frame): Update.
9079
9080 2019-05-08 Tom Tromey <tom@tromey.com>
9081
9082 * objc-lang.c (objc_objfile_data): Change type.
9083 (find_methods): Update.
9084 (_initialize_objc_lang): Remove.
9085
9086 2019-05-08 Tom Tromey <tom@tromey.com>
9087
9088 * stabsread.c (rs6000_builtin_type_data): Change type.
9089 (rs6000_builtin_type, _initialize_stabsread): Update.
9090
9091 2019-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * mips-tdep.c (mips_pdr_data): Remove.
9094 (_initialize_mips_tdep): Update.
9095
9096 2019-05-08 Tom Tromey <tom@tromey.com>
9097
9098 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9099 (hppa_init_objfile_priv_data, read_unwind_info)
9100 (find_unwind_entry, _initialize_hppa_tdep): Update.
9101
9102 2019-05-08 Tom Tromey <tom@tromey.com>
9103
9104 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9105 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9106 on obstack.
9107 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9108
9109 2019-05-08 Tom Tromey <tom@tromey.com>
9110
9111 * mdebugread.c (basic_type_data): Change type.
9112 (basic_type, _initialize_mdebugread): Update.
9113
9114 2019-05-08 Tom Tromey <tom@tromey.com>
9115
9116 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9117
9118 2019-05-08 Tom Tromey <tom@tromey.com>
9119
9120 * nto-tdep.c (nto_inferior_data_reg): Change type.
9121 (nto_inferior_data): Update.
9122 (nto_inferior_data_cleanup, nto_new_inferior_data)
9123 (_initialize_nto_tdep): Remove.
9124 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9125
9126 2019-05-08 Tom Tromey <tom@tromey.com>
9127
9128 * ada-lang.c (struct ada_inferior_data): Add initializers.
9129 (ada_inferior_data): Change type.
9130 (ada_inferior_data_cleanup): Remove.
9131 (get_ada_inferior_data, ada_inferior_exit)
9132 (struct ada_pspace_data): Add initializers, destructor.
9133 (ada_pspace_data_handle): Change type.
9134 (get_ada_pspace_data): Update.
9135 (ada_pspace_data_cleanup): Remove.
9136
9137 2019-05-08 Tom Tromey <tom@tromey.com>
9138
9139 * coffread.c (struct coff_symfile_info): Add initializers.
9140 (coff_objfile_data_key): Move lower. Change type.
9141 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9142 Update.
9143 (coff_free_info): Remove.
9144
9145 2019-05-08 Tom Tromey <tom@tromey.com>
9146
9147 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9148 (fbsd_pspace_data_handle): Move lower. Change type.
9149 (get_fbsd_pspace_data): Update.
9150 (fbsd_pspace_data_cleanup): Remove.
9151 (_initialize_fbsd_tdep): Update.
9152
9153 2019-05-08 Tom Tromey <tom@tromey.com>
9154
9155 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9156 (get_ada_tasks_pspace_data): Update.
9157 (ada_tasks_pspace_data_cleanup): Remove.
9158 (_initialize_tasks): Update.
9159 (ada_tasks_inferior_data_handle): Change type.
9160 (get_ada_tasks_inferior_data): Update.
9161 (ada_tasks_inferior_data_cleanup): Remove.
9162 (struct ada_tasks_pspace_data): Add initializers.
9163
9164 2019-05-08 Tom Tromey <tom@tromey.com>
9165
9166 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9167 * symfile-debug.c (debug_sym_get_probes): Change type.
9168 * stap-probe.c (handle_stap_probe):
9169 (stap_static_probe_ops::get_probes): Change type.
9170 * probe.h (class static_probe_ops) <get_probes>: Change type.
9171 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9172 (parse_probes_in_pspace): Update.
9173 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9174 Update.
9175 (any_static_probe_ops::get_probes): Change type.
9176 * elfread.c (elfread_data): New typedef.
9177 (probe_key): Change type.
9178 (elf_get_probes): Likewise. Update.
9179 (probe_key_free): Remove.
9180 (_initialize_elfread): Update.
9181 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9182 Change type.
9183 (dtrace_process_dof_probe, dtrace_process_dof)
9184 (dtrace_static_probe_ops::get_probe): Change type.
9185
9186 2019-05-08 Tom Tromey <tom@tromey.com>
9187
9188 * xcoffread.c (struct xcoff_symfile_info): Rename from
9189 coff_symfile_info. Add initializers.
9190 (xcoff_objfile_data_key): Move lower. Change type.
9191 (XCOFF_DATA): Rewrite.
9192 (xcoff_free_info): Remove.
9193 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9194 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9195 (xcoff_initial_scan): Update.
9196
9197 2019-05-08 Tom Tromey <tom@tromey.com>
9198
9199 * solib-svr4.c (struct svr4_info): Add initializers and
9200 destructor.
9201 <probes_table>: Now an htab_up.
9202 (solib_svr4_pspace_data): Change type.
9203 (free_probes_table): Simplify.
9204 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9205 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9206 (probes_table_remove_objfile_probes, register_solib_event_probe)
9207 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9208 (_initialize_svr4_solib): Update.
9209
9210 2019-05-08 Tom Tromey <tom@tromey.com>
9211
9212 * remote.c (remote_pspace_data): Change type.
9213 (remote_pspace_data_cleanup): Remove.
9214 (get_remote_exec_file, set_pspace_remote_exec_file)
9215 (_initialize_remote): Update.
9216
9217 2019-05-08 Tom Tromey <tom@tromey.com>
9218
9219 * breakpoint.c (breakpoint_objfile_key): Change type.
9220 (get_breakpoint_objfile_data): Update.
9221 (free_breakpoint_objfile_data): Remove.
9222 (_initialize_breakpoint): Update.
9223
9224 2019-05-08 Tom Tromey <tom@tromey.com>
9225
9226 * linux-tdep.c (struct linux_info): Add initializers.
9227 (linux_inferior_data): Move. Change type.
9228 (invalidate_linux_cache_inf): Update.
9229 (linux_inferior_data_cleanup): Remove.
9230 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9231
9232 2019-05-08 Tom Tromey <tom@tromey.com>
9233
9234 * auxv.c (auxv_inferior_data): Move. Change type.
9235 (auxv_inferior_data_cleanup): Remove.
9236 (invalidate_auxv_cache_inf): Rewrite.
9237 (get_auxv_inferior_data, _initialize_auxv): Update.
9238
9239 2019-05-08 Tom Tromey <tom@tromey.com>
9240
9241 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9242 (symfile_debug_objfile_data_key): Change type.
9243 (symfile_debug_installed, debug_qf_has_symbols)
9244 (debug_qf_find_last_source_symtab)
9245 (debug_qf_forget_cached_source_info)
9246 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9247 (debug_qf_print_stats, debug_qf_dump)
9248 (debug_qf_expand_symtabs_for_function)
9249 (debug_qf_expand_all_symtabs)
9250 (debug_qf_expand_symtabs_with_fullname)
9251 (debug_qf_map_matching_symbols)
9252 (debug_qf_expand_symtabs_matching)
9253 (debug_qf_find_pc_sect_compunit_symtab)
9254 (debug_qf_map_symbol_filenames)
9255 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9256 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9257 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9258 (debug_sym_read_linetable, debug_sym_relocate): Update.
9259 (symfile_debug_free_objfile): Remove.
9260 (install_symfile_debug_logging, _initialize_symfile_debug):
9261 Update.
9262
9263 2019-05-08 Tom Tromey <tom@tromey.com>
9264
9265 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9266 allocate_on_obstack.
9267 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9268 (get_dwarf2_per_objfile): Update.
9269 (set_dwarf2_per_objfile): Remove.
9270 (dwarf2_has_info, dwarf2_get_section_info): Update.
9271 (dwarf2_free_objfile): Remove.
9272 (_initialize_dwarf2_read): Update.
9273
9274 2019-05-08 Tom Tromey <tom@tromey.com>
9275
9276 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9277 initializers.
9278 <unsupported_script_warning_printed,
9279 script_not_found_warning_printed>: Now bool.
9280 (auto_load_pspace_data): Change type.
9281 (~auto_load_pspace_info): Rename from
9282 auto_load_pspace_data_cleanup.
9283 (get_auto_load_pspace_data, init_loaded_scripts_info)
9284 (clear_section_scripts, maybe_print_unsupported_script_warning)
9285 (maybe_print_script_not_found_warning, _initialize_auto_load):
9286 Update.
9287
9288 2019-05-08 Tom Tromey <tom@tromey.com>
9289
9290 * objfiles.c (objfile_pspace_info): Add destructor and
9291 initializers.
9292 (objfiles_pspace_data): Change type.
9293 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9294 (get_objfile_pspace_data): Update.
9295 (objfiles_bfd_data): Change type.
9296 (get_objfile_bfd_data): Update.
9297 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9298
9299 2019-05-08 Tom Tromey <tom@tromey.com>
9300
9301 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9302 Change type.
9303 (get_catch_syscall_inferior_data): Update.
9304 (catch_syscall_inferior_data_cleanup): Remove.
9305 (_initialize_break_catch_syscall): Update.
9306
9307 2019-05-08 Tom Tromey <tom@tromey.com>
9308
9309 * inflow.c (struct terminal_info): Add destructor and
9310 initializers.
9311 (inflow_inferior_data): Change type.
9312 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9313 (get_inflow_inferior_data, inflow_inferior_exit)
9314 (swap_terminal_info, _initialize_inflow): Update.
9315
9316 2019-05-08 Tom Tromey <tom@tromey.com>
9317
9318 * target-dcache.c (target_dcache_cleanup): Remove.
9319 (target_dcache_aspace_key): Change type.
9320 (target_dcache_init_p, target_dcache_invalidate)
9321 (target_dcache_get, target_dcache_get_or_init)
9322 (_initialize_target_dcache): Update.
9323 * dcache.h (struct dcache_deleter): New.
9324
9325 2019-05-08 Tom Tromey <tom@tromey.com>
9326
9327 * symtab.c (struct symbol_cache): Add destructor and
9328 initializers.
9329 (symbol_cache_key): Move. Change type.
9330 (make_symbol_cache, free_symbol_cache): Remove.
9331 (get_symbol_cache): Update.
9332 (symbol_cache_cleanup): Remove.
9333 (ALL_PSPACES, symbol_cache_flush)
9334 (maintenance_print_symbol_cache)
9335 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9336 Update.
9337
9338 2019-05-08 Tom Tromey <tom@tromey.com>
9339
9340 * symtab.c (struct main_info): Add destructor and initializers.
9341 (main_progspace_key): Move. Change type.
9342 (get_main_info): Update.
9343 (main_info_cleanup): Remove.
9344 (_initialize_symtab): Update.
9345
9346 2019-05-08 Tom Tromey <tom@tromey.com>
9347
9348 * registry.h (DECLARE_REGISTRY): Define the _key class.
9349
9350 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9351
9352 * NEWS: Merge two 'New commands' sections.
9353
9354 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9355
9356 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9357 parameter and use Ada language definition instead.
9358 (ada_val_print_ptr): Remove unused language parameter.
9359 (ada_val_print_num): Remove language parameter and use Ada language
9360 definition instead.
9361 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9362 parameter.
9363 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9364 parameter and use Ada language definition instead.
9365 (ada_val_print_1): Update all ada_val_print_xxx calls.
9366 Remove language parameter.
9367 (ada_val_print): Update ada_val_print_1 call.
9368
9369 2019-05-08 Tom Tromey <tromey@adacore.com>
9370
9371 * remote.c (remote_hw_watchpoint_limit)
9372 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9373 Now static.
9374
9375 2019-05-08 Tom Tromey <tromey@adacore.com>
9376
9377 * maint.c (_initialize_maint_cmds): Move initialization code to
9378 remote.c.
9379 (watchdog, show_watchdog): Move to remote.c.
9380 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9381 "watchdog" static.
9382 (_initialize_remote): Move initialization code from maint.c.
9383 * defs.h (watchdog): Don't declare.
9384
9385 2019-05-08 Tom Tromey <tromey@adacore.com>
9386
9387 * tui/tui-interp.c: Include main.h.
9388 * interps.c: Include main.h.
9389 * main.h (interpreter_p): Declare.
9390 * defs.h (interpreter_p): Don't declare.
9391
9392 2019-05-08 Tom Tromey <tromey@adacore.com>
9393
9394 * dwarf2loc.c: Include dwarf2read.h.
9395 * defs.h (read_unsigned_leb128): Don't declare.
9396 * dwarf2read.h (read_unsigned_leb128): Declare.
9397
9398 2019-05-08 Tom Tromey <tromey@adacore.com>
9399
9400 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9401 method.
9402
9403 2019-05-08 Tom Tromey <tromey@adacore.com>
9404
9405 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9406 when no wrap column is set.
9407
9408 2019-05-08 Tom Tromey <tromey@adacore.com>
9409
9410 * c-lang.c (c_get_string): Handle non-C-style arrays.
9411
9412 2019-05-08 Tom Tromey <tromey@adacore.com>
9413
9414 * typeprint.c (print_offset_data::update): Print the bit offset,
9415 not the number of bits remaining.
9416
9417 2019-05-08 Tom Tromey <tromey@adacore.com>
9418
9419 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9420 padding at end of comment.
9421
9422 2019-05-08 Tom Tromey <tromey@adacore.com>
9423
9424 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9425 Compare main types.
9426
9427 2019-05-06 Tom Tromey <tom@tromey.com>
9428
9429 * common/scoped_mmap.c: Include common-defs.h.
9430 * common/scoped_mmap.h: Don't include config.h.
9431
9432 2019-05-04 Tom Tromey <tom@tromey.com>
9433
9434 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9435 (struct aarch64_call_info): Add initializers.
9436 <si>: Now a std::vector.
9437 (pass_on_stack, aarch64_push_dummy_call): Update.
9438
9439 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9440 Tom Tromey <tom@tromey.com>
9441
9442 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9443 (ppc_threads): Now a std::vector. Now static.
9444 (hwdebug_find_thread_points_by_tid)
9445 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9446 Update.
9447
9448 2019-05-04 Tom Tromey <tom@tromey.com>
9449
9450 * arc-tdep.c (arc_tdesc_init): Return bool.
9451
9452 2019-05-04 Tom Tromey <tom@tromey.com>
9453
9454 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9455 Use gdb_assert_not_reached.
9456
9457 2019-05-04 Tom Tromey <tom@tromey.com>
9458
9459 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9460 "false".
9461
9462 2019-05-04 Tom Tromey <tom@tromey.com>
9463
9464 * arc-tdep.c (arc_tdesc_init): Use bool.
9465
9466 2019-05-04 Tom Tromey <tom@tromey.com>
9467
9468 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9469
9470 2019-05-04 Tom Tromey <tom@tromey.com>
9471
9472 * cli/cli-cmds.c (valid_command_p): Return bool.
9473
9474 2019-05-04 Tom Tromey <tom@tromey.com>
9475
9476 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9477 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9478
9479 2019-05-04 Raul Tambre <raul@tambre.ee>
9480
9481 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9482 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9483 operator for comparison.
9484
9485 2019-05-04 Tom Tromey <tom@tromey.com>
9486
9487 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9488 (lookup_partial_symbol, print_partial_symbols)
9489 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9490 (psymbol_compare): Update.
9491 (add_psymbol_to_bcache): Clear the entire psymbol.
9492 (maintenance_check_psymtabs): Update.
9493 * psympriv.h (struct partial_symbol): Don't derive from
9494 general_symbol_info.
9495 <obj_section, unrelocated_address, address,
9496 set_unrelocated_address>: Update.
9497 <ginfo>: New member.
9498 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9499 (debug_names::write_psymbols): Update.
9500
9501 2019-05-04 Tom de Vries <tdevries@suse.de>
9502
9503 * contrib/cc-with-tweaks.sh: Support -n arg.
9504
9505 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9506
9507 * corelow.c (core_target::detach): Ensure frame cache and
9508 register caches are cleared.
9509 inferior.c (exit_inferior_1): Likewise.
9510
9511 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9512 Tom Tromey <tom@tromey.com>
9513
9514 * dictionary.c (collate_pending_symbols_by_language): Remove
9515 "struct" from foreach.
9516 * symtab.c (lookup_global_symbol_from_objfile)
9517 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9518 foreach.
9519 * ser-tcp.c (net_open): Remove "struct" from foreach.
9520 * objfiles.c (objfile_relocate, objfile_rebase)
9521 (objfile_has_symbols): Remove "struct" from foreach.
9522 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9523 from foreach.
9524 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9525 foreach.
9526 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9527 "struct" from foreach.
9528 * ada-lang.c (create_excep_cond_exprs)
9529 (ada_exception_catchpoint_cond_string): Remove "struct" from
9530 foreach.
9531
9532 2019-05-03 Tom Tromey <tromey@adacore.com>
9533
9534 * ada-exp.y (convert_char_literal): Check suffix of each
9535 enumerator.
9536
9537 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9538
9539 PR ada/21406:
9540 * ada-exp.y (yywrap): Don't define.
9541 * ada-lex.l (%option): Add noyywrap
9542 (yywrap): Remove.
9543
9544 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9545
9546 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9547 _WIN32_WINNT to the XP level, unless already defined to a higher
9548 level.
9549
9550 * unittests/parse-connection-spec-selftests.c:
9551 * ser-tcp.c:
9552 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9553 override.
9554
9555 * symfile.c (find_separate_debug_file): Remove colon from the
9556 drive spec of DOS/Windows file names of the target, so that the
9557 file name produced from DEBUGDIR and the target's directory will
9558 be valid on DOS/Windows systems.
9559
9560 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * rust-lang.c (val_print_struct): Handle printing structures
9563 containing strings.
9564
9565 2019-05-02 Tom Tromey <tromey@adacore.com>
9566
9567 * valarith.c (_initialize_valarith): Remove.
9568
9569 2019-05-01 Tom Tromey <tromey@adacore.com>
9570
9571 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9572 bitfields.
9573
9574 2019-05-01 Tom Tromey <tromey@adacore.com>
9575
9576 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9577 for big-endian copies.
9578
9579 2019-04-30 Ali Tamur <tamur@google.com>
9580 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9581 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9582 (read_3_bytes): New function.
9583
9584 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9585
9586 * windows-nat.c (main_thread_id): Delete.
9587 (handle_output_debug_string): Replace main_thread_id by
9588 current_event.dwThreadId.
9589 (fake_create_process): Likewise.
9590 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9591 Do not set main_thread_id.
9592 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9593 current_event.dwThreadId.
9594 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9595
9596 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9597
9598 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9599 Use current_event.dwThreadId instead of main_thread_id.
9600
9601 2019-04-30 Tom Tromey <tromey@adacore.com>
9602
9603 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9604 (create_excep_cond_exprs): Iterate over program spaces.
9605 (ada_exception_catchpoint_cond_string): Examine all minimal
9606 symbols for exception types.
9607
9608 2019-04-30 Tom Tromey <tromey@adacore.com>
9609
9610 PR c++/24470:
9611 * dwarf2read.c (process_structure_scope): Handle case where type
9612 has template parameters but no symbol was created.
9613
9614 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9615 Chris January <chris.january@arm.com>
9616
9617 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9618 qualifier.
9619 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9620
9621 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9622
9623 * f-typeprint.c (f_print_type): Update rules for printing
9624 whitespace.
9625 (f_type_print_varspec_suffix): Likewise.
9626
9627 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9628 Chris January <chris.january@arm.com>
9629
9630 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9631 function arguments.
9632
9633 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9634
9635 * f-lang.c (build_fortran_types): Change name of void type to
9636 lower case.
9637 * f-typeprint.c (f_type_print_base): Print the name of the void
9638 type, rather than a fixed string.
9639 * f-valprint.c (f_decorations): Use lower case void string.
9640
9641 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9642 Chris January <chris.january@arm.com>
9643
9644 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9645 types for Fortran.
9646
9647 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9648 Chris January <chris.january@arm.com>
9649 David Lecomber <david.lecomber@arm.com>
9650
9651 * f-exp.y (BINOP_INTRINSIC): New token.
9652 (exp): New parser rule handling BINOP_INTRINSIC.
9653 (f77_keywords): Add new builtin procedures.
9654 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9655 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9656 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9657 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9658 (print_unop_subexp_f): New function.
9659 (print_binop_subexp_f): New function.
9660 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9661 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9662 (dump_subexp_body_f): Likewise.
9663 (operator_check_f): Likewise.
9664 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9665 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9666
9667 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9668
9669 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9670 UNOP_KIND.
9671 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9672 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9673 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9674 (operator_length_f): New fuction.
9675 (print_subexp_f): New function.
9676 (op_name_f): New function.
9677 (dump_subexp_body_f): New function.
9678 (operator_check_f): New function.
9679 (exp_descriptor_f): Replace standard expression handling functions
9680 with new functions.
9681 * gdb/fortran-operator.def: New file.
9682 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9683 * gdb/std-operator.def: Remove UNOP_KIND.
9684
9685 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9686
9687 * std-operator.def: Remove unbalanced, stray double quote
9688 character.
9689
9690 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9691 Chris January <chris.january@arm.com>
9692 Daniel Everett <daniel.everett@arm.com>
9693 Nick Forrington <nick.forrington@arm.com>
9694 Richard Bunt <richard.bunt@arm.com>
9695
9696 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9697 of depth when printing anonymous structs or unions.
9698 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9699 Don't print either the top-level value, or the children if the
9700 max-depth is exceeded.
9701 (ppscm_print_children): When printing the key of a map, allow one
9702 extra level of depth.
9703 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9704 print either the top-level value, or the children if the max-depth
9705 is exceeded.
9706 (print_children): When printing the key of a map, allow one extra
9707 level of depth.
9708 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9709 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9710 (user_print_options): Initialise max_depth field.
9711 (val_print_scalar_or_string_type_p): New function.
9712 (val_print): Check to see if the max depth has been reached.
9713 (val_print_check_max_depth): Define new function.
9714 (show_print_max_depth): New function.
9715 (_initialize_valprint): Add 'print max-depth' option.
9716 * valprint.h (struct value_print_options) <max_depth>: New field.
9717 (val_print_check_max_depth): Declare new function.
9718 * NEWS: Document new feature.
9719
9720 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * ada-lang.c (ada_language_defn): Initialise new field.
9723 * c-lang.c (c_is_string_type_p): New function.
9724 (c_language_defn): Initialise new field.
9725 (cplus_language_defn): Initialise new field.
9726 (asm_language_defn): Initialise new field.
9727 (minimal_language_defn): Initialise new field.
9728 * c-lang.h (c_is_string_type_p): Declare new function.
9729 * d-lang.c (d_language_defn): Initialise new field.
9730 * f-lang.c (f_is_string_type_p): New function.
9731 (f_language_defn): Initialise new field.
9732 * go-lang.c (go_is_string_type_p): New function.
9733 (go_language_defn): Initialise new field.
9734 * language.c (default_is_string_type_p): New function.
9735 (unknown_language_defn): Initialise new field.
9736 (auto_language_defn): Initialise new field.
9737 * language.h (struct language_defn) <la_is_string_type_p>: New
9738 member variable.
9739 (default_is_string_type_p): Declare new function.
9740 * m2-lang.c (m2_language_defn): Initialise new field.
9741 * objc-lang.c (objc_language_defn): Initialise new field.
9742 * opencl-lang.c (opencl_language_defn): Initialise new field.
9743 * p-lang.c (pascal_is_string_type_p): New function.
9744 (pascal_language_defn): Initialise new field.
9745 * rust-lang.c (rust_is_string_type_p): New function.
9746 (rust_language_defn): Initialise new field.
9747
9748 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9749
9750 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9751 New field.
9752 * ada-lang.c (ada_language_defn): Initialise new field.
9753 * c-lang.c (c_language_defn): Likewise.
9754 (cplus_language_defn): Likewise.
9755 (asm_language_defn): Likewise.
9756 (minimal_language_defn): Likewise.
9757 * d-lang.c (d_language_defn): Likewise.
9758 * f-lang.c (f_language_defn): Likewise.
9759 * go-lang.c (go_language_defn): Likewise.
9760 * language.c (unknown_language_defn): Likewise.
9761 (auto_language_defn): Likewise.
9762 * m2-lang.c (m2_language_defn): Likewise.
9763 * objc-lang.c (objc_language_defn): Likewise.
9764 * opencl-lang.c (opencl_language_defn): Likewise.
9765 * p-lang.c (pascal_language_defn): Likewise.
9766 * rust-lang.c (rust_language_defn): Likewise.
9767
9768 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9769
9770 * ada-lang.c (ada_is_character_type): Change return type to bool.
9771 (ada_is_string_type): Likewise.
9772 * ada-lang.h (ada_is_character_type): Update declaration
9773 (ada_is_string_type): Likewise.
9774
9775 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9776
9777 Support style in 'frame|thread apply'
9778
9779 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9780 * record.c (record_start, record_stop): Update callers of
9781 execute_command_to_string with false.
9782 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9783 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9784 methods.
9785 (class string_file): New constructor with term_out parameter.
9786 Override methods term_out and can_emit_style_escape. New member
9787 term_out.
9788 (class stdio_file): Override can_emit_style_escape.
9789 (class tee_file): Override term_out and can_emit_style_escape.
9790 * utils.h (can_emit_style_escape): Remove.
9791 * utils.c (can_emit_style_escape): Likewise.
9792 Update all callers of can_emit_style_escape (SOMESTREAM) to
9793 SOMESTREAM->can_emit_style_escape.
9794 * source-cache.c (source_cache::get_source_lines): Likewise.
9795 * stack.c (frame_apply_command_count): Call execute_command_to_string
9796 passing the term_out characteristic of the current gdb_stdout.
9797 * thread.c (thr_try_catch_cmd): Likewise.
9798 * top.c (execute_command_to_string): pass term_out parameter
9799 to construct the string_file for the command output.
9800 * ui-file.c (term_cli_styling): New function (most code moved
9801 from utils.c can_emit_style_escape).
9802 (string_file::string_file, string_file::can_emit_style_escape,
9803 stdio_file::can_emit_style_escape, tee_file::term_out,
9804 tee_file::can_emit_style_escape): New functions.
9805
9806 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807
9808 * NEWS: Mention the new set|show may-call-functions.
9809 * infcall.c (may_call_functions_p): New variable.
9810 (show_may_call_functions_p): New function.
9811 (call_function_by_hand_dummy): Throws an error if not
9812 may-call-functions.
9813 (_initialize_infcall): Call add_setshow_boolean_cmd for
9814 may-call-functions.
9815
9816 2019-04-25 Keith Seitz <keiths@redhat.com>
9817
9818 PR c++/24367
9819 * cp-support.c (inspect_type): Don't attempt substitutions
9820 of symbol with the same name.
9821
9822 2019-04-25 Tom Tromey <tromey@adacore.com>
9823
9824 PR gdb/24475:
9825 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9826 static.
9827
9828 2019-04-25 Tom Tromey <tromey@adacore.com>
9829
9830 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9831 rvalue reference.
9832 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9833 (gdb_xml_parser::parse): Use std::move.
9834 * python/python-internal.h (gdbpy_convert_exception): Take a const
9835 reference.
9836 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9837 std::move.
9838 * python/py-utils.c (gdbpy_convert_exception): Take a const
9839 reference.
9840 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9841 Use std::move.
9842 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9843 Use std::move.
9844 * mi/mi-main.c (mi_print_exception): Take a const reference.
9845 * main.c (handle_command_errors): Take a const reference.
9846 * linespec.c (parse_linespec): Use std::move.
9847 * infcall.c (run_inferior_call): Use std::move.
9848 (call_function_by_hand_dummy): Use std::move.
9849 * exec.c (try_open_exec_file): Use std::move.
9850 * exceptions.h (exception_print, exception_fprintf)
9851 (exception_print_same): Update.
9852 * exceptions.c (print_exception, exception_print)
9853 (exception_fprintf, exception_print_same): Change parameters to
9854 const reference.
9855 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9856 * common/new-op.c: Use std::move.
9857 * common/common-exceptions.h (struct gdb_exception): Add move
9858 constructor.
9859 (struct gdb_exception_error, struct gdb_exception_quit, struct
9860 gdb_quit_bad_alloc): Change constructor to move constructor.
9861 (throw_exception): Change parameter to rvalue reference.
9862 * common/common-exceptions.c (throw_exception): Take rvalue
9863 reference.
9864 * cli/cli-interp.c (safe_execute_command): Use std::move.
9865 * breakpoint.c (insert_bp_location, location_to_sals): Use
9866 std::move.
9867
9868 2019-04-25 Tom Tromey <tromey@adacore.com>
9869
9870 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9871 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9872 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9873 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9874 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9875 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9876 guile/scm-value.c: Use unpack.
9877 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9878 gdbscm_gdb_exception.
9879 (gdbscm_throw_gdb_exception): Likewise.
9880 (struct gdbscm_gdb_exception): New.
9881 (unpack): New function.
9882 (gdbscm_wrap): Use unpack.
9883
9884 2019-04-25 Tom Tromey <tromey@adacore.com>
9885
9886 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9887 (gdb_rl_callback_handler): Use std::move.
9888 * common/common-exceptions.h (struct gdb_exception): Add move
9889 assignment operator.
9890 (throw_exception_sjlj): Change "exception" to const reference.
9891 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9892 (throw_exception_sjlj): Change "exception" to const reference.
9893
9894 2019-04-25 Tom Tromey <tromey@adacore.com>
9895
9896 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9897 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9898 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9899 Update.
9900 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9901 Update.
9902 * mi/mi-interp.c (mi_interp::exec): Update.
9903 * linespec.c (parse_linespec): Update.
9904 * infcall.c (run_inferior_call): Update.
9905 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9906 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9907 (gdbscm_lookup_global_symbol): Update.
9908 * guile/scm-param.c (gdbscm_parameter_value): Update.
9909 * guile/scm-frame.c (gdbscm_frame_read_register)
9910 (gdbscm_frame_read_var): Update.
9911 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9912 * exec.c (try_open_exec_file): Update.
9913 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9914 (gdb_rl_callback_handler): Update.
9915 * common/common-exceptions.h (exception_none): Don't declare.
9916 * common/common-exceptions.c (exception_none): Don't define.
9917 (struct catcher) <exception>: Update.
9918 * cli/cli-interp.c (safe_execute_command): Update.
9919 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9920
9921 2019-04-25 Ali Tamur <tamur@google.com>
9922
9923 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9924 (read_attribute_value): Likewise.
9925 (dwarf2_read_addr_index): Update comment.
9926 (read_str_index): Add DW_FORM_strx.
9927 (dwarf2_string_attr): Likewise.
9928 (dwarf2_const_value_attr): Likewise.
9929 (dump_die_shallow): Likewise.
9930 (dwarf2_fetch_constant_bytes): Likewise.
9931 (skip_form_bytes): Likewise.
9932 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9933
9934 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9935
9936 PR corefiles/11608
9937 PR corefiles/18187
9938 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9939 OFFSET. Verify if current mapping contains an ELF header.
9940 (linux_find_memory_regions_full): Adjust call to
9941 dump_mapping_p.
9942
9943 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9944 Kang Li <kanglictf@gmail.com>
9945
9946 PR gdb/21600
9947
9948 * dwarf2-frame.c (read_initial_length): Be consistent about using
9949 unsigned representation of length.
9950 (decode_frame_entry_1): Likewise. Check for wraparound of
9951 end pointer as well as buffer overflow.
9952
9953 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9954
9955 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9956 "vq".
9957
9958 2019-04-24 Tom Tromey <tromey@adacore.com>
9959
9960 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9961
9962 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * s12z-tdep.c (s12z_unwind_pc): Delete.
9965 (s12z_unwind_sp): Delete.
9966 (s12z_gdbarch_init): Don't register deleted functions with
9967 gdbarch.
9968
9969 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9970
9971 * rl78-tdep.c (rl78_unwind_sp): Delete.
9972 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9973
9974 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9975
9976 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9977 (xstormy16_unwind_pc): Delete.
9978 (xstormy16_dummy_id): Delete.
9979 (xstormy16_gdbarch_init): Don't register deleted functions with
9980 gdbarch.
9981
9982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * vax-tdep.c (vax_unwind_pc): Delete.
9985 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9986
9987 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9988
9989 * v850-tdep.c (v850_unwind_sp): Delete.
9990 (v850_unwind_pc): Delete.
9991 (v850_dummy_id): Delete.
9992 (v850_gdbarch_init): Don't register deleted functions with
9993 gdbarch.
9994
9995 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9996
9997 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9998 (tilegx_unwind_pc): Delete.
9999 (tilegx_unwind_dummy_id): Delete.
10000 (tilegx_gdbarch_init): Don't register deleted functions with
10001 gdbarch.
10002
10003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10006 (tic6x_dummy_id): Delete.
10007 (tic6x_gdbarch_init): Don't register deleted functions with
10008 gdbarch.
10009
10010 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10011
10012 * sparc-tdep.c (sparc_unwind_pc): Delete.
10013 (sparc32_gdbarch_init): Don't register deleted function with
10014 gdbarch.
10015
10016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * sh-tdep.c (sh_unwind_sp): Delete.
10019 (sh_unwind_pc): Delete.
10020 (sh_dummy_id): Delete.
10021 (sh_gdbarch_init): Don't register deleted functions with
10022 gdbarch.
10023
10024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10025
10026 * score-tdep.c (score_unwind_sp): Delete.
10027 (score_unwind_pc): Delete.
10028 (score_dummy_id): Delete.
10029 (score_gdbarch_init): Don't register deleted functions with
10030 gdbarch.
10031
10032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * rx-tdep.c (rx_unwind_pc): Delete.
10035 (rx_unwind_sp): Delete.
10036 (rx_dummy_id): Delete.
10037 (rx_gdbarch_init): Don't register deleted functions with
10038 gdbarch. Update comment.
10039
10040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10043 (rs6000_dummy_id): Delete.
10044 (rs6000_gdbarch_init): Don't register deleted functions with
10045 gdbarch.
10046
10047 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10048
10049 * or1k-tdep.c (or1k_dummy_id): Delete.
10050 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10051
10052 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10053
10054 * nios2-tdep.c (nios2_dummy_id): Delete.
10055 (nios2_unwind_sp): Delete.
10056 (nios2_gdbarch_init): Don't register deleted functions with
10057 gdbarch.
10058
10059 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10060
10061 * nds32-tdep.c (nds32_dummy_id): Delete.
10062 (nds32_unwind_pc): Delete.
10063 (nds32_unwind_sp): Delete.
10064 (nds32_gdbarch_init): Don't register deleted functions with
10065 gdbarch.
10066
10067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10068
10069 * msp430-tdep.c (msp430_unwind_pc): Delete.
10070 (msp430_unwind_sp): Delete.
10071 (msp430_dummy_id): Delete.
10072 (msp430_gdbarch_init): Don't register deleted functions with
10073 gdbarch.
10074
10075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10076
10077 * moxie-tdep.c (moxie_unwind_sp): Delete.
10078 (moxie_unwind_pc): Delete.
10079 (moxie_dummy_id): Delete.
10080 (moxie_gdbarch_init): Don't register deleted functions with
10081 gdbarch.
10082
10083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10086 (mn10300_unwind_pc): Delete.
10087 (mn10300_unwind_sp): Delete.
10088 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10089 mn10300_unwind_sp.
10090 (mn10300_frame_unwind_init): Don't register deleted functions with
10091 gdbarch.
10092
10093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10094
10095 * mep-tdep.c (mep_unwind_pc): Delete.
10096 (mep_unwind_sp): Delete.
10097 (mep_dummy_id): Delete.
10098 (mep_gdbarch_init): Don't register deleted functions with
10099 gdbarch.
10100
10101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10104 (m68hc11_unwind_sp): Delete.
10105 (m68hc11_gdbarch_init): Don't register deleted functions with
10106 gdbarch.
10107
10108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10109
10110 * m32r-tdep.c (m32r_unwind_sp): Delete.
10111 (m32r_unwind_pc): Delete.
10112 (m32r_dummy_id): Delete.
10113 (m32r_gdbarch_init): Don't register deleted functions with
10114 gdbarch.
10115
10116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10117
10118 * m32c-tdep.c (m32c_unwind_pc): Delete.
10119 (m32c_unwind_sp): Delete.
10120 (m32c_dummy_id): Delete.
10121 (m32c_gdbarch_init): Don't register deleted functions with
10122 gdbarch.
10123
10124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10125
10126 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10127 (lm32_unwind_pc): Delete.
10128 (lm32_dummy_id): Delete.
10129 (lm32_gdbarch_init): Don't register deleted functions with
10130 gdbarch.
10131
10132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10133
10134 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10135 (iq2000_unwind_pc): Delete.
10136 (iq2000_dummy_id): Delete.
10137 (iq2000_gdbarch_init): Don't register deleted functions with
10138 gdbarch.
10139
10140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * nds32-tdep.c (nds32_type_align): Delete.
10143 (nds32_push_dummy_call): Use type_align instead.
10144
10145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10146
10147 * arm-tdep.c (arm_type_align): Only handle vector override case.
10148 (arm_push_dummy_call): Use type_align.
10149 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10150
10151 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10152
10153 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10154 case.
10155 (pass_on_stack): Use type_align.
10156 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10157 function.
10158
10159 2019-04-23 Tom Tromey <tromey@adacore.com>
10160
10161 * dwarf2read.c (line_header::file_name_at): Remove unused
10162 overload.
10163
10164 2019-04-23 Tom de Vries <tdevries@suse.de>
10165
10166 PR gdb/24438
10167 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10168 invocation.
10169
10170
10171 2019-03-27 Ali Tamur <tamur@google.com>
10172
10173 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10174 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10175 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10176 (dwarf_expr_context::get_addr_index): Likewise
10177 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10178 (symbol_needs_eval_context::get_addr_index): Likewise
10179 (disassemble_dwarf_expression): Add DW_OP_addrx
10180 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10181 (read_cutu_die_from_dwo): Update comment
10182 (skip_one_die): Add DW_FORM_addrx
10183 (read_attribute_value): Likewise
10184 (var_decode_location): Add DW_OP_addrx
10185 (dwarf2_const_value_attr): Add DW_FORM_addrx
10186 (dump_die_shallow): Likewise
10187 (dwarf2_fetch_constant_bytes): Likewise
10188 (decode_locdesc): Add DW_OP_addrx
10189 (skip_form_bytes): Add DW_FORM_addrx
10190
10191 2019-04-22 Ali Tamur <tamur@google.com>
10192
10193 * MAINTAINERS (Write After Approval): Add self.
10194
10195 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10198 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10199 (open_symbol_file_object): Likewise.
10200 (svr4_default_sos): Add info parameter.
10201 (svr4_read_so_list): Likewise.
10202 (svr4_current_sos_direct): Adjust functions calls to pass down
10203 info.
10204 (svr4_current_sos_1): Add info parameter.
10205 (svr4_current_sos): Call get_svr4_info, pass info down to
10206 svr4_current_sos_1.
10207 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10208 get_svr4_info.
10209 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10210 get_svr4_info.
10211 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10212 to get_svr4_info.
10213 (probes_table_remove_objfile_probes): Likewise.
10214 (register_solib_event_probe): Add info parameter.
10215 (solist_update_incremental): Pass info parameter down to
10216 svr4_read_so_list.
10217 (disable_probes_interface): Add info parameter.
10218 (svr4_handle_solib_event): Pass current_program_space to
10219 get_svr4_info. Adjust disable_probes_interface cleanup.
10220 (svr4_create_probe_breakpoints): Add info parameter, pass it
10221 down to register_solib_event_probe.
10222 (svr4_create_solib_event_breakpoints): Add info parameter,
10223 pass it down to svr4_create_probe_breakpoints.
10224 (enable_break): Pass info down to
10225 svr4_create_solib_event_breakpoints.
10226 (svr4_solib_create_inferior_hook): Pass current_program_space to
10227 get_svr4_info.
10228 (svr4_clear_solib): Likewise.
10229
10230 2019-04-22 Pedro Alves <palves@redhat.com>
10231
10232 * solib-svr4.c (svr4_free_objfile_observer): New.
10233 (probe_and_action::objfile): New field.
10234 (probes_table_htab_remove_objfile_probes)
10235 (probes_table_remove_objfile_probes): New functions.
10236 (register_solib_event_probe): Add 'objfile' parameter. Store it
10237 in the new probe_and_action. Don't store the probe in 'lookup'.
10238 (svr4_create_probe_breakpoints): Pass objfile to
10239 register_solib_event_probe.
10240 (_initialize_svr4_solib): Register a free_objfile observer.
10241
10242 2019-04-19 Tom Tromey <tom@tromey.com>
10243
10244 * common/queue.h: Remove.
10245
10246 2019-04-19 Tom Tromey <tom@tromey.com>
10247
10248 * event-loop.c: Don't include "common/queue.h".
10249
10250 2019-04-19 Tom Tromey <tom@tromey.com>
10251
10252 * remote.c (remote_target): Use delete.
10253 * remote-notif.h: Include <list>, not "common/queue.h".
10254 (notif_client_p): Remove typedef.
10255 (remote_notif_state): Add constructor, destructor, initializer.
10256 <notif_queue>: Now a std::list.
10257 (remote_notif_state_xfree): Don't declare.
10258 * remote-notif.c (remote_notif_process, handle_notification)
10259 (remote_notif_state_allocate): Update.
10260 (~remote_notif_state): Rename from remote_notif_state_xfree.
10261
10262 2019-04-19 Tom Tromey <tom@tromey.com>
10263
10264 * symfile.c (reread_symbols): Update.
10265 * objfiles.c (objfile_register_static_link)
10266 (objfile_lookup_static_link): Update
10267 (~objfile) Don't delete static_links.
10268 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10269
10270 2019-04-19 Tom Tromey <tom@tromey.com>
10271
10272 * type-stack.h (struct type_stack) <insert>: Constify string.
10273 * type-stack.c (type_stack::insert): Constify string.
10274 * gdbtypes.h (lookup_template_type): Update.
10275 (address_space_name_to_int): Update.
10276 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10277 const.
10278 (lookup_template_type): Make name const.
10279 * c-exp.y: Update rules.
10280 (lex_one_token, classify_name, classify_inner_name)
10281 (c_print_token): Update.
10282 * p-exp.y: Update rules.
10283 (yylex): Update.
10284 * f-exp.y: Update rules.
10285 (yylex): Update.
10286 * d-exp.y: Update rules.
10287 (lex_one_token, classify_name, classify_inner_name): Update.
10288 * parse.c (write_dollar_variable, copy_name): Return std::string.
10289 * parser-defs.h (copy_name): Change return type.
10290 * m2-exp.y: Update rules.
10291 (yylex): Update.
10292 * go-exp.y (lex_one_token): Update.
10293 Update rules.
10294 (classify_unsafe_function, classify_packaged_name)
10295 (classify_name, yylex): Update.
10296
10297 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10298
10299 * configure.ac: add --enable-source-highlight switch.
10300 * configure: Regenerate.
10301 * top.c (print_gdb_version): plumb --enable-source-highlight
10302 status to "show configuration".
10303
10304 2019-04-19 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10307 Check ADA_TYPE_P.
10308 (empty_record, ada_template_to_fixed_record_type_1)
10309 (template_to_static_fixed_type)
10310 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10311 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10312 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10313 macros.
10314
10315 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10316
10317 PR symtab/24423:
10318 * source.c (print_source_lines_base): Advance "iter" when a
10319 control character is seen.
10320
10321 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10322
10323 * inferior.h (struct infcall_suspend_state_deleter):
10324 Catch exception in destructor to avoid crash.
10325
10326 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10327
10328 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10329 close to the add_com "shell".
10330
10331 2019-04-18 Tom Tromey <tromey@adacore.com>
10332
10333 * process-stratum-target.h (class process_stratum_target)
10334 <stratum>: Add "final".
10335
10336 2019-04-17 Tom Tromey <tromey@adacore.com>
10337
10338 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10339 against nullptr before use.
10340
10341 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10342
10343 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10344
10345 2019-04-17 Jim Wilson <jimw@sifive.com>
10346 Andrew Burgess <andrew.burgess@embecosm.com>
10347
10348 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10349 code read might fail, assume 4-byte breakpoint in that case.
10350
10351 2019-04-15 Leszek Swirski <leszeks@google.com>
10352
10353 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10354 rather than a hand-rolled POD check when checking for forced MEMORY
10355 classification.
10356
10357 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10358
10359 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10360 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10361 function.
10362 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10363 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10364 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10365 declaration.
10366
10367 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10368
10369 * aarch64-linux-nat.c
10370 (aarch64_linux_nat_target::thread_architecture): Add override.
10371 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10372 each VQ.
10373
10374 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10375
10376 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10377
10378 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10379
10380 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10381 target types of size 96-bits, add some additional comments, and
10382 check that the builtin type we found was the correct size.
10383
10384 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10385
10386 * utils.c (prompt_for_continue): Don't restore the styling at the
10387 end, as applied_style has the wrong value. This fixes styling in
10388 long lists of file names that are interrupted by the "Continue?"
10389 prompt.
10390
10391 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10392
10393 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10394 * c-lang.c (c_language_defn): Likewise.
10395 (cplus_language_defn): Likewise.
10396 (asm_language_defn): Likewise.
10397 (minimal_language_defn): Likewise.
10398 * d-lang.c (d_language_defn): Likewise.
10399 * f-lang.c (f_language_defn): Likewise.
10400 * go-lang.c (go_language_defn): Likewise.
10401 * language.c (unknown_language_defn): Likewise.
10402 (auto_language_defn): Likewise.
10403 * language.h (struct language_defn): Remove la_magic field.
10404 (LANG_MAGIC): Delete.
10405 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10406 * objc-lang.c (objc_language_defn): Likewise.
10407 * opencl-lang.c (opencl_language_defn): Likewise.
10408 * p-lang.c (pascal_language_defn): Likewise.
10409 * rust-lang.c (rust_language_defn): Likewise.
10410
10411 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * riscv-tdep.c (riscv_type_align): New function.
10414 (riscv_type_alignment): Delete.
10415 (riscv_arg_location): Use 'type_align'.
10416 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10417
10418 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10419
10420 * gdbtypes.c (type_align): A struct with no non-static fields also
10421 has alignment of 1.
10422
10423 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10424
10425 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10426 component to 0.
10427 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10428 member.
10429 (riscv_struct_info::analyse): New implementation using new
10430 analyse_inner member function.
10431 (riscv_struct_info::field_offset): New member function.
10432 (riscv_struct_info::m_offsets): New member variable.
10433 (riscv_struct_info::analyse_inner): New private member function,
10434 takes the old implementation of riscv_struct_info::analyse but
10435 extended to track field offsets.
10436 (riscv_call_arg_struct): Update the struct folding special cases
10437 to handle cases where empty C++ structs, which are non-zero
10438 length, are found.
10439 (riscv_arg_location): Initialise the length of each location, a
10440 non-zero length now indicates the location is in use.
10441 (riscv_push_dummy_call): Allow for the first location having a
10442 non-zero offset when setting up arguments.
10443 (riscv_return_value): Likewise, but for return values.
10444
10445 2019-04-11 Tom Tromey <tromey@adacore.com>
10446
10447 * utils.c (internal_vproblem): Make "msg" const.
10448
10449 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10450
10451 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10452 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10453 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10454 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10455
10456 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10457
10458 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10459 function.
10460 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10461 of amd64_collect_native_gregset.
10462 (amd64_linux_nat_target::store_registers): Likewise.
10463
10464 2019-04-10 Tom Tromey <tom@tromey.com>
10465
10466 * symtab.c (lookup_global_symbol_from_objfile)
10467 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10468 * objfiles.h (class separate_debug_iterator): New.
10469 (class separate_debug_range): New.
10470 (struct objfile) <separate_debug_objfiles>: New method.
10471 (objfile_separate_debug_iterate): Don't declare.
10472 * objfiles.c (separate_debug_iterator::operator++): Rename from
10473 objfile_separate_debug_iterate.
10474 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10475 iterator.
10476 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10477 iterator.
10478
10479 2019-04-10 Tom Tromey <tom@tromey.com>
10480
10481 * symfile.c (reread_symbols): Remove old comment.
10482 * objfiles.c (free_all_objfiles): Fix a typo.
10483
10484 2019-04-10 Tom Tromey <tom@tromey.com>
10485
10486 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10487 * minsyms.c (lookup_minimal_symbol): Use foreach.
10488 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10489 (lookup_minimal_symbol_solib_trampoline): Likewise.
10490 * symfile.c (reread_symbols): Use foreach.
10491
10492 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10493 Tom Tromey <tromey@adacore.com>
10494
10495 PR rust/24414:
10496 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10497 (rust_lex_int_test): Change "value" to be LONGEST.
10498 (rust_lex_tests): Add test for long integer literal.
10499
10500 2019-04-09 Tom Tromey <tromey@adacore.com>
10501
10502 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10503 to bool.
10504 (extended_remote_target::attach): Update.
10505 (remote_target::remote_notice_new_inferior): Update.
10506 (remote_target::add_current_inferior_and_thread): Update.
10507 * inferior.c (exit_inferior_1): Use "false".
10508 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10509
10510 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10513 the "start" command.
10514
10515 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10516
10517 * python/py-inferior.c (infpy_thread_from_thread_handle):
10518 Adjust comments to reflect renaming of thread_from_thread_handle
10519 to thread_from_handle. Adjust keywords. Fix type error message.
10520 (inferior_object_methods): Add thread_from_handle. Retain
10521 thread_from_thread_handle, but mark it as deprecated.
10522
10523 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10524
10525 * gdbthread.h (find_thread_by_handle): Revise declaration.
10526 * thread.c (find_thread_by_handle): Likewise. Adjust
10527 implementation too.
10528 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10529 support for buffer objects as handles.
10530
10531 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10532
10533 * python/py-infthread.c (thpy_thread_handle): New function.
10534 (thread_object_methods): Register thpy_thread_handle.
10535
10536 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10537
10538 * gdbthread.h (thread_to_thread_handle): Declare.
10539 * thread.c (gdbtypes.h): Include.
10540 (thread_to_thread_handle): New function.
10541
10542 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10543 (target_thread_info_to_thread_handle): Declare.
10544 * target.c (target_thread_info_to_thread_handle): New function.
10545 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10546 * target-delegates.c: Regenerate.
10547
10548 * linux-thread-db.c (class thread_db_target): Add method
10549 thread_info_to_thread_handle.
10550 (thread_db_target::thread_info_to_thread_handle): Define.
10551 * remote.c (class remote_target): Add new method
10552 thread_info_to_thread_handle.
10553 (remote_target::thread_info_to_thread_handle): Define.
10554
10555 2019-04-08 Pedro Alves <palves@redhat.com>
10556
10557 * common/common-exceptions.c (throw_exception): Don't create
10558 named object to throw; throw directly.
10559 (throw_it): Likewise. Don't initialize gdb_exception::message
10560 here, with new; pass FMT and AP to the ctor instead.
10561 * common/common-exceptions.h: Include <string>.
10562 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10563 const char *, va_list)): New ctor. Use std::make_shared.
10564 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10565 errors)): Delete.
10566 (gdb_exception_error::gdb_exception_error(enum errors, const char
10567 *, va_list)): New.
10568 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10569 Add assertion.
10570 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10571 errors)): Delete.
10572 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10573 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10574 Add assertion.
10575
10576 2019-04-08 Tom Tromey <tom@tromey.com>
10577
10578 * valops.c (value_rtti_indirect_type): Replace throw_exception
10579 with throw.
10580 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10581 with throw.
10582 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10583 throw.
10584 * target.c (target_translate_tls_address): Replace throw_exception
10585 with throw.
10586 * stack.c (frame_apply_command_count): Replace throw_exception
10587 with throw.
10588 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10589 throw.
10590 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10591 with throw.
10592 * rs6000-tdep.c (rs6000_frame_cache)
10593 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10594 * remote.c: Replace throw_exception with throw.
10595 * record-full.c (record_full_message, record_full_wait_1)
10596 (record_full_restore): Replace throw_exception with throw.
10597 * record-btrace.c:
10598 (get_thread_current_frame_id, record_btrace_start_replaying)
10599 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10600 (cmd_record_btrace_start): Replace throw_exception with throw.
10601 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10602 throw.
10603 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10604 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10605 * linespec.c:
10606 (find_linespec_symbols): Replace throw_exception with throw.
10607 * infrun.c (displaced_step_prepare, resume): Replace
10608 throw_exception with throw.
10609 * infcmd.c (post_create_inferior): Replace throw_exception with
10610 throw.
10611 * inf-loop.c (inferior_event_handler): Replace throw_exception
10612 with throw.
10613 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10614 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10615 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10616 (get_prev_frame_always, get_frame_pc_if_available)
10617 (get_frame_address_in_block_if_available, get_frame_language):
10618 Replace throw_exception with throw.
10619 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10620 throw_exception with throw.
10621 * eval.c (fetch_subexp_value, evaluate_var_value)
10622 (evaluate_funcall, evaluate_subexp_standard): Replace
10623 throw_exception with throw.
10624 * dwarf2loc.c (call_site_find_chain)
10625 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10626 Replace throw_exception with throw.
10627 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10628 with throw.
10629 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10630 throw.
10631 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10632 * completer.c (complete_line_internal): Replace throw_exception
10633 with throw.
10634 * compile/compile-object-run.c (compile_object_run): Replace
10635 throw_exception with throw.
10636 * cli/cli-script.c (process_next_line): Replace throw_exception
10637 with throw.
10638 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10639 (btrace_enable, btrace_maint_update_pt_packets): Replace
10640 throw_exception with throw.
10641 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10642 throw_exception with throw.
10643 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10644 throw_exception with throw.
10645 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10646 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10647 * aarch64-tdep.c (aarch64_make_prologue_cache)
10648 (aarch64_make_stub_cache): Replace throw_exception with throw.
10649
10650 2019-04-08 Tom Tromey <tom@tromey.com>
10651
10652 * common/common-exceptions.c (throw_exception): Rename from
10653 throw_exception_cxx. Remove old copy. Make argument const.
10654 (throw_it): Create and throw exception objects directly.
10655 * common/common-exceptions.h (throw_exception): Make argument
10656 const.
10657 (struct gdb_exception_error): Add constructor.
10658 (struct gdb_exception_quit): Add constructor.
10659
10660 2019-04-08 Tom Tromey <tom@tromey.com>
10661
10662 * common/common-exceptions.h (exception_rethrow): Don't declare.
10663 (TRY_SJLJ): Update comment.
10664 (TRY, CATCH, END_CATCH): Remove.
10665 * common/common-exceptions.c (exception_rethrow): Remove.
10666
10667 2019-04-08 Tom Tromey <tom@tromey.com>
10668
10669 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10670 Remove.
10671 (gdb_exception_error): Rename from
10672 gdb_exception_RETURN_MASK_ERROR.
10673 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10674 (gdb_quit_bad_alloc): Update.
10675 * aarch64-tdep.c: Update.
10676 * ada-lang.c: Update.
10677 * ada-typeprint.c: Update.
10678 * ada-valprint.c: Update.
10679 * amd64-tdep.c: Update.
10680 * arch-utils.c: Update.
10681 * break-catch-throw.c: Update.
10682 * breakpoint.c: Update.
10683 * btrace.c: Update.
10684 * c-varobj.c: Update.
10685 * cli/cli-cmds.c: Update.
10686 * cli/cli-interp.c: Update.
10687 * cli/cli-script.c: Update.
10688 * common/common-exceptions.c: Update.
10689 * common/new-op.c: Update.
10690 * common/selftest.c: Update.
10691 * compile/compile-c-symbols.c: Update.
10692 * compile/compile-cplus-symbols.c: Update.
10693 * compile/compile-object-load.c: Update.
10694 * compile/compile-object-run.c: Update.
10695 * completer.c: Update.
10696 * corelow.c: Update.
10697 * cp-abi.c: Update.
10698 * cp-support.c: Update.
10699 * cp-valprint.c: Update.
10700 * darwin-nat.c: Update.
10701 * disasm-selftests.c: Update.
10702 * dtrace-probe.c: Update.
10703 * dwarf-index-cache.c: Update.
10704 * dwarf-index-write.c: Update.
10705 * dwarf2-frame-tailcall.c: Update.
10706 * dwarf2-frame.c: Update.
10707 * dwarf2loc.c: Update.
10708 * dwarf2read.c: Update.
10709 * eval.c: Update.
10710 * event-loop.c: Update.
10711 * event-top.c: Update.
10712 * exec.c: Update.
10713 * f-valprint.c: Update.
10714 * fbsd-tdep.c: Update.
10715 * frame-unwind.c: Update.
10716 * frame.c: Update.
10717 * gdbtypes.c: Update.
10718 * gnu-v3-abi.c: Update.
10719 * guile/guile-internal.h: Update.
10720 * guile/scm-block.c: Update.
10721 * guile/scm-breakpoint.c: Update.
10722 * guile/scm-cmd.c: Update.
10723 * guile/scm-disasm.c: Update.
10724 * guile/scm-frame.c: Update.
10725 * guile/scm-lazy-string.c: Update.
10726 * guile/scm-math.c: Update.
10727 * guile/scm-param.c: Update.
10728 * guile/scm-ports.c: Update.
10729 * guile/scm-pretty-print.c: Update.
10730 * guile/scm-symbol.c: Update.
10731 * guile/scm-symtab.c: Update.
10732 * guile/scm-type.c: Update.
10733 * guile/scm-value.c: Update.
10734 * i386-linux-tdep.c: Update.
10735 * i386-tdep.c: Update.
10736 * inf-loop.c: Update.
10737 * infcall.c: Update.
10738 * infcmd.c: Update.
10739 * infrun.c: Update.
10740 * jit.c: Update.
10741 * language.c: Update.
10742 * linespec.c: Update.
10743 * linux-fork.c: Update.
10744 * linux-nat.c: Update.
10745 * linux-tdep.c: Update.
10746 * linux-thread-db.c: Update.
10747 * main.c: Update.
10748 * mi/mi-cmd-break.c: Update.
10749 * mi/mi-cmd-stack.c: Update.
10750 * mi/mi-interp.c: Update.
10751 * mi/mi-main.c: Update.
10752 * objc-lang.c: Update.
10753 * p-valprint.c: Update.
10754 * parse.c: Update.
10755 * ppc-linux-tdep.c: Update.
10756 * printcmd.c: Update.
10757 * python/py-arch.c: Update.
10758 * python/py-breakpoint.c: Update.
10759 * python/py-cmd.c: Update.
10760 * python/py-finishbreakpoint.c: Update.
10761 * python/py-frame.c: Update.
10762 * python/py-framefilter.c: Update.
10763 * python/py-gdb-readline.c: Update.
10764 * python/py-inferior.c: Update.
10765 * python/py-infthread.c: Update.
10766 * python/py-lazy-string.c: Update.
10767 * python/py-linetable.c: Update.
10768 * python/py-objfile.c: Update.
10769 * python/py-param.c: Update.
10770 * python/py-prettyprint.c: Update.
10771 * python/py-progspace.c: Update.
10772 * python/py-record-btrace.c: Update.
10773 * python/py-record.c: Update.
10774 * python/py-symbol.c: Update.
10775 * python/py-type.c: Update.
10776 * python/py-unwind.c: Update.
10777 * python/py-utils.c: Update.
10778 * python/py-value.c: Update.
10779 * python/python.c: Update.
10780 * record-btrace.c: Update.
10781 * record-full.c: Update.
10782 * remote-fileio.c: Update.
10783 * remote.c: Update.
10784 * riscv-tdep.c: Update.
10785 * rs6000-aix-tdep.c: Update.
10786 * rs6000-tdep.c: Update.
10787 * rust-exp.y: Update.
10788 * rust-lang.c: Update.
10789 * s390-tdep.c: Update.
10790 * selftest-arch.c: Update.
10791 * solib-dsbt.c: Update.
10792 * solib-frv.c: Update.
10793 * solib-spu.c: Update.
10794 * solib-svr4.c: Update.
10795 * solib.c: Update.
10796 * sparc64-linux-tdep.c: Update.
10797 * stack.c: Update.
10798 * symfile-mem.c: Update.
10799 * symmisc.c: Update.
10800 * target.c: Update.
10801 * thread.c: Update.
10802 * top.c: Update.
10803 * tracefile-tfile.c: Update.
10804 * tui/tui.c: Update.
10805 * typeprint.c: Update.
10806 * unittests/cli-utils-selftests.c: Update.
10807 * unittests/parse-connection-spec-selftests.c: Update.
10808 * valops.c: Update.
10809 * valprint.c: Update.
10810 * value.c: Update.
10811 * varobj.c: Update.
10812 * windows-nat.c: Update.
10813 * x86-linux-nat.c: Update.
10814 * xml-support.c: Update.
10815
10816 2019-04-08 Tom Tromey <tom@tromey.com>
10817
10818 * xml-support.c: Use C++ exception handling.
10819 * x86-linux-nat.c: Use C++ exception handling.
10820 * windows-nat.c: Use C++ exception handling.
10821 * varobj.c: Use C++ exception handling.
10822 * value.c: Use C++ exception handling.
10823 * valprint.c: Use C++ exception handling.
10824 * valops.c: Use C++ exception handling.
10825 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10826 handling.
10827 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10828 * typeprint.c: Use C++ exception handling.
10829 * tui/tui.c: Use C++ exception handling.
10830 * tracefile-tfile.c: Use C++ exception handling.
10831 * top.c: Use C++ exception handling.
10832 * thread.c: Use C++ exception handling.
10833 * target.c: Use C++ exception handling.
10834 * symmisc.c: Use C++ exception handling.
10835 * symfile-mem.c: Use C++ exception handling.
10836 * stack.c: Use C++ exception handling.
10837 * sparc64-linux-tdep.c: Use C++ exception handling.
10838 * solib.c: Use C++ exception handling.
10839 * solib-svr4.c: Use C++ exception handling.
10840 * solib-spu.c: Use C++ exception handling.
10841 * solib-frv.c: Use C++ exception handling.
10842 * solib-dsbt.c: Use C++ exception handling.
10843 * selftest-arch.c: Use C++ exception handling.
10844 * s390-tdep.c: Use C++ exception handling.
10845 * rust-lang.c: Use C++ exception handling.
10846 * rust-exp.y: Use C++ exception handling.
10847 * rs6000-tdep.c: Use C++ exception handling.
10848 * rs6000-aix-tdep.c: Use C++ exception handling.
10849 * riscv-tdep.c: Use C++ exception handling.
10850 * remote.c: Use C++ exception handling.
10851 * remote-fileio.c: Use C++ exception handling.
10852 * record-full.c: Use C++ exception handling.
10853 * record-btrace.c: Use C++ exception handling.
10854 * python/python.c: Use C++ exception handling.
10855 * python/py-value.c: Use C++ exception handling.
10856 * python/py-utils.c: Use C++ exception handling.
10857 * python/py-unwind.c: Use C++ exception handling.
10858 * python/py-type.c: Use C++ exception handling.
10859 * python/py-symbol.c: Use C++ exception handling.
10860 * python/py-record.c: Use C++ exception handling.
10861 * python/py-record-btrace.c: Use C++ exception handling.
10862 * python/py-progspace.c: Use C++ exception handling.
10863 * python/py-prettyprint.c: Use C++ exception handling.
10864 * python/py-param.c: Use C++ exception handling.
10865 * python/py-objfile.c: Use C++ exception handling.
10866 * python/py-linetable.c: Use C++ exception handling.
10867 * python/py-lazy-string.c: Use C++ exception handling.
10868 * python/py-infthread.c: Use C++ exception handling.
10869 * python/py-inferior.c: Use C++ exception handling.
10870 * python/py-gdb-readline.c: Use C++ exception handling.
10871 * python/py-framefilter.c: Use C++ exception handling.
10872 * python/py-frame.c: Use C++ exception handling.
10873 * python/py-finishbreakpoint.c: Use C++ exception handling.
10874 * python/py-cmd.c: Use C++ exception handling.
10875 * python/py-breakpoint.c: Use C++ exception handling.
10876 * python/py-arch.c: Use C++ exception handling.
10877 * printcmd.c: Use C++ exception handling.
10878 * ppc-linux-tdep.c: Use C++ exception handling.
10879 * parse.c: Use C++ exception handling.
10880 * p-valprint.c: Use C++ exception handling.
10881 * objc-lang.c: Use C++ exception handling.
10882 * mi/mi-main.c: Use C++ exception handling.
10883 * mi/mi-interp.c: Use C++ exception handling.
10884 * mi/mi-cmd-stack.c: Use C++ exception handling.
10885 * mi/mi-cmd-break.c: Use C++ exception handling.
10886 * main.c: Use C++ exception handling.
10887 * linux-thread-db.c: Use C++ exception handling.
10888 * linux-tdep.c: Use C++ exception handling.
10889 * linux-nat.c: Use C++ exception handling.
10890 * linux-fork.c: Use C++ exception handling.
10891 * linespec.c: Use C++ exception handling.
10892 * language.c: Use C++ exception handling.
10893 * jit.c: Use C++ exception handling.
10894 * infrun.c: Use C++ exception handling.
10895 * infcmd.c: Use C++ exception handling.
10896 * infcall.c: Use C++ exception handling.
10897 * inf-loop.c: Use C++ exception handling.
10898 * i386-tdep.c: Use C++ exception handling.
10899 * i386-linux-tdep.c: Use C++ exception handling.
10900 * guile/scm-value.c: Use C++ exception handling.
10901 * guile/scm-type.c: Use C++ exception handling.
10902 * guile/scm-symtab.c: Use C++ exception handling.
10903 * guile/scm-symbol.c: Use C++ exception handling.
10904 * guile/scm-pretty-print.c: Use C++ exception handling.
10905 * guile/scm-ports.c: Use C++ exception handling.
10906 * guile/scm-param.c: Use C++ exception handling.
10907 * guile/scm-math.c: Use C++ exception handling.
10908 * guile/scm-lazy-string.c: Use C++ exception handling.
10909 * guile/scm-frame.c: Use C++ exception handling.
10910 * guile/scm-disasm.c: Use C++ exception handling.
10911 * guile/scm-cmd.c: Use C++ exception handling.
10912 * guile/scm-breakpoint.c: Use C++ exception handling.
10913 * guile/scm-block.c: Use C++ exception handling.
10914 * guile/guile-internal.h: Use C++ exception handling.
10915 * gnu-v3-abi.c: Use C++ exception handling.
10916 * gdbtypes.c: Use C++ exception handling.
10917 * frame.c: Use C++ exception handling.
10918 * frame-unwind.c: Use C++ exception handling.
10919 * fbsd-tdep.c: Use C++ exception handling.
10920 * f-valprint.c: Use C++ exception handling.
10921 * exec.c: Use C++ exception handling.
10922 * event-top.c: Use C++ exception handling.
10923 * event-loop.c: Use C++ exception handling.
10924 * eval.c: Use C++ exception handling.
10925 * dwarf2read.c: Use C++ exception handling.
10926 * dwarf2loc.c: Use C++ exception handling.
10927 * dwarf2-frame.c: Use C++ exception handling.
10928 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10929 * dwarf-index-write.c: Use C++ exception handling.
10930 * dwarf-index-cache.c: Use C++ exception handling.
10931 * dtrace-probe.c: Use C++ exception handling.
10932 * disasm-selftests.c: Use C++ exception handling.
10933 * darwin-nat.c: Use C++ exception handling.
10934 * cp-valprint.c: Use C++ exception handling.
10935 * cp-support.c: Use C++ exception handling.
10936 * cp-abi.c: Use C++ exception handling.
10937 * corelow.c: Use C++ exception handling.
10938 * completer.c: Use C++ exception handling.
10939 * compile/compile-object-run.c: Use C++ exception handling.
10940 * compile/compile-object-load.c: Use C++ exception handling.
10941 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10942 * compile/compile-c-symbols.c: Use C++ exception handling.
10943 * common/selftest.c: Use C++ exception handling.
10944 * common/new-op.c: Use C++ exception handling.
10945 * cli/cli-script.c: Use C++ exception handling.
10946 * cli/cli-interp.c: Use C++ exception handling.
10947 * cli/cli-cmds.c: Use C++ exception handling.
10948 * c-varobj.c: Use C++ exception handling.
10949 * btrace.c: Use C++ exception handling.
10950 * breakpoint.c: Use C++ exception handling.
10951 * break-catch-throw.c: Use C++ exception handling.
10952 * arch-utils.c: Use C++ exception handling.
10953 * amd64-tdep.c: Use C++ exception handling.
10954 * ada-valprint.c: Use C++ exception handling.
10955 * ada-typeprint.c: Use C++ exception handling.
10956 * ada-lang.c: Use C++ exception handling.
10957 * aarch64-tdep.c: Use C++ exception handling.
10958
10959 2019-04-08 Tom Tromey <tom@tromey.com>
10960
10961 * xml-support.c (gdb_xml_parser::parse): Update.
10962 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10963 * value.c (show_convenience): Update.
10964 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10965 (test_parse_flags_qcs): Update.
10966 * thread.c (thr_try_catch_cmd): Update.
10967 * target.c (target_translate_tls_address): Update.
10968 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10969 (info_frame_command_core, frame_apply_command_count): Update.
10970 * rust-exp.y (rust_lex_exception_test): Update.
10971 * riscv-tdep.c (riscv_print_one_register_info): Update.
10972 * remote.c (remote_target::enable_btrace): Update.
10973 * record-btrace.c (record_btrace_enable_warn): Update.
10974 * python/py-utils.c (gdbpy_convert_exception): Update.
10975 * printcmd.c (do_one_display, print_variable_and_value): Update.
10976 * mi/mi-main.c (mi_print_exception): Update.
10977 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10978 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10979 * linux-nat.c (linux_nat_target::attach): Update.
10980 * linux-fork.c (class scoped_switch_fork_info): Update.
10981 * infrun.c (displaced_step_prepare): Update.
10982 * infcall.c (call_function_by_hand_dummy): Update.
10983 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10984 * gnu-v3-abi.c (print_one_vtable): Update.
10985 * frame.c (get_prev_frame_always): Update.
10986 * f-valprint.c (info_common_command_for_block): Update.
10987 * exec.c (try_open_exec_file): Update.
10988 * exceptions.c (print_exception, exception_print)
10989 (exception_fprintf, exception_print_same): Update.
10990 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10991 * dwarf-index-cache.c (index_cache::store)
10992 (index_cache::lookup_gdb_index): Update.
10993 * darwin-nat.c (maybe_cache_shell): Update.
10994 * cp-valprint.c (cp_print_value_fields): Update.
10995 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10996 (gcc_cplus_symbol_address): Update.
10997 * compile/compile-c-symbols.c (gcc_convert_symbol)
10998 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10999 * common/selftest.c: Update.
11000 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11001 a std::string.
11002 (exception_try_scope_entry, exception_try_scope_exit): Don't
11003 declare.
11004 (struct exception_try_scope): Remove.
11005 (TRY): Don't use exception_try_scope.
11006 (struct gdb_exception): Add constructor, operator=.
11007 <what>: New method.
11008 (struct gdb_exception_RETURN_MASK_ALL)
11009 (struct gdb_exception_RETURN_MASK_ERROR)
11010 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11011 (struct gdb_quit_bad_alloc): Update.
11012 * common/common-exceptions.c (exception_none): Change
11013 initializer.
11014 (struct catcher) <state, exception>: Initialize inline.
11015 <prev>: Remove member.
11016 (current_catcher): Remove.
11017 (catchers): New global.
11018 (exceptions_state_mc_init): Simplify.
11019 (catcher_pop): Remove.
11020 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11021 (try_scope_depth, exception_try_scope_entry)
11022 (exception_try_scope_exit): Remove.
11023 (throw_exception_sjlj): Update.
11024 (exception_messages, exception_messages_size): Remove.
11025 (throw_it): Simplify.
11026 (gdb_exception_sliced_copy): Remove.
11027 (throw_exception_cxx): Update.
11028 * cli/cli-script.c (script_from_file): Update.
11029 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11030 Update.
11031 * ada-valprint.c (ada_val_print): Update.
11032 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11033 (create_excep_cond_exprs): Update.
11034
11035 2019-04-08 Tom Tromey <tom@tromey.com>
11036
11037 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11038 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11039 (TRY, CATCH, END_CATCH): Remove some definitions.
11040 * common/common-exceptions.c: Don't use GDB_XCPT.
11041 (catcher_list_size): Remove.
11042 (throw_exception, throw_it): Simplify.
11043
11044 2019-04-05 Tom Tromey <tom@tromey.com>
11045
11046 Revert the header-sorting patch.
11047 * ft32-tdep.c: Revert.
11048 * frv-tdep.c: Revert.
11049 * frv-linux-tdep.c: Revert.
11050 * frame.c: Revert.
11051 * frame-unwind.c: Revert.
11052 * frame-base.c: Revert.
11053 * fork-child.c: Revert.
11054 * findvar.c: Revert.
11055 * findcmd.c: Revert.
11056 * filesystem.c: Revert.
11057 * filename-seen-cache.h: Revert.
11058 * filename-seen-cache.c: Revert.
11059 * fbsd-tdep.c: Revert.
11060 * fbsd-nat.h: Revert.
11061 * fbsd-nat.c: Revert.
11062 * f-valprint.c: Revert.
11063 * f-typeprint.c: Revert.
11064 * f-lang.c: Revert.
11065 * extension.h: Revert.
11066 * extension.c: Revert.
11067 * extension-priv.h: Revert.
11068 * expprint.c: Revert.
11069 * exec.h: Revert.
11070 * exec.c: Revert.
11071 * exceptions.c: Revert.
11072 * event-top.c: Revert.
11073 * event-loop.c: Revert.
11074 * eval.c: Revert.
11075 * elfread.c: Revert.
11076 * dwarf2read.h: Revert.
11077 * dwarf2read.c: Revert.
11078 * dwarf2loc.c: Revert.
11079 * dwarf2expr.h: Revert.
11080 * dwarf2expr.c: Revert.
11081 * dwarf2-frame.c: Revert.
11082 * dwarf2-frame-tailcall.c: Revert.
11083 * dwarf-index-write.h: Revert.
11084 * dwarf-index-write.c: Revert.
11085 * dwarf-index-common.c: Revert.
11086 * dwarf-index-cache.h: Revert.
11087 * dwarf-index-cache.c: Revert.
11088 * dummy-frame.c: Revert.
11089 * dtrace-probe.c: Revert.
11090 * disasm.h: Revert.
11091 * disasm.c: Revert.
11092 * disasm-selftests.c: Revert.
11093 * dictionary.c: Revert.
11094 * dicos-tdep.c: Revert.
11095 * demangle.c: Revert.
11096 * dcache.h: Revert.
11097 * dcache.c: Revert.
11098 * darwin-nat.h: Revert.
11099 * darwin-nat.c: Revert.
11100 * darwin-nat-info.c: Revert.
11101 * d-valprint.c: Revert.
11102 * d-namespace.c: Revert.
11103 * d-lang.c: Revert.
11104 * ctf.c: Revert.
11105 * csky-tdep.c: Revert.
11106 * csky-linux-tdep.c: Revert.
11107 * cris-tdep.c: Revert.
11108 * cris-linux-tdep.c: Revert.
11109 * cp-valprint.c: Revert.
11110 * cp-support.c: Revert.
11111 * cp-namespace.c: Revert.
11112 * cp-abi.c: Revert.
11113 * corelow.c: Revert.
11114 * corefile.c: Revert.
11115 * continuations.c: Revert.
11116 * completer.h: Revert.
11117 * completer.c: Revert.
11118 * complaints.c: Revert.
11119 * coffread.c: Revert.
11120 * coff-pe-read.c: Revert.
11121 * cli-out.h: Revert.
11122 * cli-out.c: Revert.
11123 * charset.c: Revert.
11124 * c-varobj.c: Revert.
11125 * c-valprint.c: Revert.
11126 * c-typeprint.c: Revert.
11127 * c-lang.c: Revert.
11128 * buildsym.c: Revert.
11129 * buildsym-legacy.c: Revert.
11130 * build-id.h: Revert.
11131 * build-id.c: Revert.
11132 * btrace.c: Revert.
11133 * bsd-uthread.c: Revert.
11134 * breakpoint.h: Revert.
11135 * breakpoint.c: Revert.
11136 * break-catch-throw.c: Revert.
11137 * break-catch-syscall.c: Revert.
11138 * break-catch-sig.c: Revert.
11139 * blockframe.c: Revert.
11140 * block.c: Revert.
11141 * bfin-tdep.c: Revert.
11142 * bfin-linux-tdep.c: Revert.
11143 * bfd-target.c: Revert.
11144 * bcache.c: Revert.
11145 * ax-general.c: Revert.
11146 * ax-gdb.h: Revert.
11147 * ax-gdb.c: Revert.
11148 * avr-tdep.c: Revert.
11149 * auxv.c: Revert.
11150 * auto-load.c: Revert.
11151 * arm-wince-tdep.c: Revert.
11152 * arm-tdep.c: Revert.
11153 * arm-symbian-tdep.c: Revert.
11154 * arm-pikeos-tdep.c: Revert.
11155 * arm-obsd-tdep.c: Revert.
11156 * arm-nbsd-tdep.c: Revert.
11157 * arm-nbsd-nat.c: Revert.
11158 * arm-linux-tdep.c: Revert.
11159 * arm-linux-nat.c: Revert.
11160 * arm-fbsd-tdep.c: Revert.
11161 * arm-fbsd-nat.c: Revert.
11162 * arm-bsd-tdep.c: Revert.
11163 * arch-utils.c: Revert.
11164 * arc-tdep.c: Revert.
11165 * arc-newlib-tdep.c: Revert.
11166 * annotate.h: Revert.
11167 * annotate.c: Revert.
11168 * amd64-windows-tdep.c: Revert.
11169 * amd64-windows-nat.c: Revert.
11170 * amd64-tdep.c: Revert.
11171 * amd64-sol2-tdep.c: Revert.
11172 * amd64-obsd-tdep.c: Revert.
11173 * amd64-obsd-nat.c: Revert.
11174 * amd64-nbsd-tdep.c: Revert.
11175 * amd64-nbsd-nat.c: Revert.
11176 * amd64-nat.c: Revert.
11177 * amd64-linux-tdep.c: Revert.
11178 * amd64-linux-nat.c: Revert.
11179 * amd64-fbsd-tdep.c: Revert.
11180 * amd64-fbsd-nat.c: Revert.
11181 * amd64-dicos-tdep.c: Revert.
11182 * amd64-darwin-tdep.c: Revert.
11183 * amd64-bsd-nat.c: Revert.
11184 * alpha-tdep.c: Revert.
11185 * alpha-obsd-tdep.c: Revert.
11186 * alpha-nbsd-tdep.c: Revert.
11187 * alpha-mdebug-tdep.c: Revert.
11188 * alpha-linux-tdep.c: Revert.
11189 * alpha-linux-nat.c: Revert.
11190 * alpha-bsd-tdep.c: Revert.
11191 * alpha-bsd-nat.c: Revert.
11192 * aix-thread.c: Revert.
11193 * agent.c: Revert.
11194 * addrmap.c: Revert.
11195 * ada-varobj.c: Revert.
11196 * ada-valprint.c: Revert.
11197 * ada-typeprint.c: Revert.
11198 * ada-tasks.c: Revert.
11199 * ada-lang.c: Revert.
11200 * aarch64-tdep.c: Revert.
11201 * aarch64-ravenscar-thread.c: Revert.
11202 * aarch64-newlib-tdep.c: Revert.
11203 * aarch64-linux-tdep.c: Revert.
11204 * aarch64-linux-nat.c: Revert.
11205 * aarch64-fbsd-tdep.c: Revert.
11206 * aarch64-fbsd-nat.c: Revert.
11207 * aarch32-linux-nat.c: Revert.
11208
11209 2019-04-05 Tom Tromey <tom@tromey.com>
11210
11211 * ft32-tdep.c: Sort headers.
11212 * frv-tdep.c: Sort headers.
11213 * frv-linux-tdep.c: Sort headers.
11214 * frame.c: Sort headers.
11215 * frame-unwind.c: Sort headers.
11216 * frame-base.c: Sort headers.
11217 * fork-child.c: Sort headers.
11218 * findvar.c: Sort headers.
11219 * findcmd.c: Sort headers.
11220 * filesystem.c: Sort headers.
11221 * filename-seen-cache.h: Sort headers.
11222 * filename-seen-cache.c: Sort headers.
11223 * fbsd-tdep.c: Sort headers.
11224 * fbsd-nat.h: Sort headers.
11225 * fbsd-nat.c: Sort headers.
11226 * f-valprint.c: Sort headers.
11227 * f-typeprint.c: Sort headers.
11228 * f-lang.c: Sort headers.
11229 * extension.h: Sort headers.
11230 * extension.c: Sort headers.
11231 * extension-priv.h: Sort headers.
11232 * expprint.c: Sort headers.
11233 * exec.h: Sort headers.
11234 * exec.c: Sort headers.
11235 * exceptions.c: Sort headers.
11236 * event-top.c: Sort headers.
11237 * event-loop.c: Sort headers.
11238 * eval.c: Sort headers.
11239 * elfread.c: Sort headers.
11240 * dwarf2read.h: Sort headers.
11241 * dwarf2read.c: Sort headers.
11242 * dwarf2loc.c: Sort headers.
11243 * dwarf2expr.h: Sort headers.
11244 * dwarf2expr.c: Sort headers.
11245 * dwarf2-frame.c: Sort headers.
11246 * dwarf2-frame-tailcall.c: Sort headers.
11247 * dwarf-index-write.h: Sort headers.
11248 * dwarf-index-write.c: Sort headers.
11249 * dwarf-index-common.c: Sort headers.
11250 * dwarf-index-cache.h: Sort headers.
11251 * dwarf-index-cache.c: Sort headers.
11252 * dummy-frame.c: Sort headers.
11253 * dtrace-probe.c: Sort headers.
11254 * disasm.h: Sort headers.
11255 * disasm.c: Sort headers.
11256 * disasm-selftests.c: Sort headers.
11257 * dictionary.c: Sort headers.
11258 * dicos-tdep.c: Sort headers.
11259 * demangle.c: Sort headers.
11260 * dcache.h: Sort headers.
11261 * dcache.c: Sort headers.
11262 * darwin-nat.h: Sort headers.
11263 * darwin-nat.c: Sort headers.
11264 * darwin-nat-info.c: Sort headers.
11265 * d-valprint.c: Sort headers.
11266 * d-namespace.c: Sort headers.
11267 * d-lang.c: Sort headers.
11268 * ctf.c: Sort headers.
11269 * csky-tdep.c: Sort headers.
11270 * csky-linux-tdep.c: Sort headers.
11271 * cris-tdep.c: Sort headers.
11272 * cris-linux-tdep.c: Sort headers.
11273 * cp-valprint.c: Sort headers.
11274 * cp-support.c: Sort headers.
11275 * cp-namespace.c: Sort headers.
11276 * cp-abi.c: Sort headers.
11277 * corelow.c: Sort headers.
11278 * corefile.c: Sort headers.
11279 * continuations.c: Sort headers.
11280 * completer.h: Sort headers.
11281 * completer.c: Sort headers.
11282 * complaints.c: Sort headers.
11283 * coffread.c: Sort headers.
11284 * coff-pe-read.c: Sort headers.
11285 * cli-out.h: Sort headers.
11286 * cli-out.c: Sort headers.
11287 * charset.c: Sort headers.
11288 * c-varobj.c: Sort headers.
11289 * c-valprint.c: Sort headers.
11290 * c-typeprint.c: Sort headers.
11291 * c-lang.c: Sort headers.
11292 * buildsym.c: Sort headers.
11293 * buildsym-legacy.c: Sort headers.
11294 * build-id.h: Sort headers.
11295 * build-id.c: Sort headers.
11296 * btrace.c: Sort headers.
11297 * bsd-uthread.c: Sort headers.
11298 * breakpoint.h: Sort headers.
11299 * breakpoint.c: Sort headers.
11300 * break-catch-throw.c: Sort headers.
11301 * break-catch-syscall.c: Sort headers.
11302 * break-catch-sig.c: Sort headers.
11303 * blockframe.c: Sort headers.
11304 * block.c: Sort headers.
11305 * bfin-tdep.c: Sort headers.
11306 * bfin-linux-tdep.c: Sort headers.
11307 * bfd-target.c: Sort headers.
11308 * bcache.c: Sort headers.
11309 * ax-general.c: Sort headers.
11310 * ax-gdb.h: Sort headers.
11311 * ax-gdb.c: Sort headers.
11312 * avr-tdep.c: Sort headers.
11313 * auxv.c: Sort headers.
11314 * auto-load.c: Sort headers.
11315 * arm-wince-tdep.c: Sort headers.
11316 * arm-tdep.c: Sort headers.
11317 * arm-symbian-tdep.c: Sort headers.
11318 * arm-pikeos-tdep.c: Sort headers.
11319 * arm-obsd-tdep.c: Sort headers.
11320 * arm-nbsd-tdep.c: Sort headers.
11321 * arm-nbsd-nat.c: Sort headers.
11322 * arm-linux-tdep.c: Sort headers.
11323 * arm-linux-nat.c: Sort headers.
11324 * arm-fbsd-tdep.c: Sort headers.
11325 * arm-fbsd-nat.c: Sort headers.
11326 * arm-bsd-tdep.c: Sort headers.
11327 * arch-utils.c: Sort headers.
11328 * arc-tdep.c: Sort headers.
11329 * arc-newlib-tdep.c: Sort headers.
11330 * annotate.h: Sort headers.
11331 * annotate.c: Sort headers.
11332 * amd64-windows-tdep.c: Sort headers.
11333 * amd64-windows-nat.c: Sort headers.
11334 * amd64-tdep.c: Sort headers.
11335 * amd64-sol2-tdep.c: Sort headers.
11336 * amd64-obsd-tdep.c: Sort headers.
11337 * amd64-obsd-nat.c: Sort headers.
11338 * amd64-nbsd-tdep.c: Sort headers.
11339 * amd64-nbsd-nat.c: Sort headers.
11340 * amd64-nat.c: Sort headers.
11341 * amd64-linux-tdep.c: Sort headers.
11342 * amd64-linux-nat.c: Sort headers.
11343 * amd64-fbsd-tdep.c: Sort headers.
11344 * amd64-fbsd-nat.c: Sort headers.
11345 * amd64-dicos-tdep.c: Sort headers.
11346 * amd64-darwin-tdep.c: Sort headers.
11347 * amd64-bsd-nat.c: Sort headers.
11348 * alpha-tdep.c: Sort headers.
11349 * alpha-obsd-tdep.c: Sort headers.
11350 * alpha-nbsd-tdep.c: Sort headers.
11351 * alpha-mdebug-tdep.c: Sort headers.
11352 * alpha-linux-tdep.c: Sort headers.
11353 * alpha-linux-nat.c: Sort headers.
11354 * alpha-bsd-tdep.c: Sort headers.
11355 * alpha-bsd-nat.c: Sort headers.
11356 * aix-thread.c: Sort headers.
11357 * agent.c: Sort headers.
11358 * addrmap.c: Sort headers.
11359 * ada-varobj.c: Sort headers.
11360 * ada-valprint.c: Sort headers.
11361 * ada-typeprint.c: Sort headers.
11362 * ada-tasks.c: Sort headers.
11363 * ada-lang.c: Sort headers.
11364 * aarch64-tdep.c: Sort headers.
11365 * aarch64-ravenscar-thread.c: Sort headers.
11366 * aarch64-newlib-tdep.c: Sort headers.
11367 * aarch64-linux-tdep.c: Sort headers.
11368 * aarch64-linux-nat.c: Sort headers.
11369 * aarch64-fbsd-tdep.c: Sort headers.
11370 * aarch64-fbsd-nat.c: Sort headers.
11371 * aarch32-linux-nat.c: Sort headers.
11372
11373 2019-04-04 Tom Tromey <tom@tromey.com>
11374
11375 * varobj.c (varobj_create): Update.
11376 * rust-exp.y (struct rust_parser) <update_innermost_block,
11377 lookup_symbol>: New methods.
11378 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11379 Rename.
11380 (rust_parser::rust_lookup_type)
11381 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11382 * printcmd.c (display_command, do_one_display): Update.
11383 * parser-defs.h (struct parser_state) <parser_state>: Add
11384 "tracker" parameter.
11385 (block_tracker): New member.
11386 (class innermost_block_tracker) <innermost_block_tracker>: Add
11387 "types" parameter.
11388 <reset>: Remove method.
11389 (innermost_block): Don't declare.
11390 (null_post_parser): Update.
11391 * parse.c (innermost_block): Remove global.
11392 (write_dollar_variable): Update.
11393 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11394 Remove "tracker_types" parameter.
11395 (parse_expression): Add "tracker" parameter.
11396 (parse_expression_for_completion): Update.
11397 (null_post_parser): Add "tracker" parameter.
11398 * p-exp.y: Update rules.
11399 * m2-exp.y: Update rules.
11400 * language.h (struct language_defn) <la_post_parser>: Add
11401 "tracker" parameter.
11402 * go-exp.y: Update rules.
11403 * f-exp.y: Update rules.
11404 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11405 parameter.
11406 * d-exp.y: Update rules.
11407 * c-exp.y: Update rules.
11408 * breakpoint.c (set_breakpoint_condition): Create an
11409 innermost_block_tracker.
11410 (watch_command_1): Likewise.
11411 * ada-lang.c (resolve): Add "tracker" parameter.
11412 (resolve_subexp): Likewise.
11413 * ada-exp.y (write_var_from_sym): Update.
11414
11415 2019-04-04 Tom Tromey <tom@tromey.com>
11416
11417 * type-stack.h: New file.
11418 * type-stack.c: New file.
11419 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11420 type-stack.h.
11421 (insert_into_type_stack, insert_type, push_type, push_type_int)
11422 (insert_type_address_space, pop_type, pop_type_int)
11423 (pop_typelist, pop_type_stack, append_type_stack)
11424 (push_type_stack, get_type_stack, push_typelist)
11425 (follow_type_instance_flags, follow_types): Don't declare.
11426 * parse.c (type_stack): Remove global.
11427 (parse_exp_in_context): Update.
11428 (insert_into_type_stack, insert_type, push_type, push_type_int)
11429 (insert_type_address_space, pop_type, pop_type_int)
11430 (pop_typelist, pop_type_stack, append_type_stack)
11431 (push_type_stack, get_type_stack, push_typelist)
11432 (follow_type_instance_flags, follow_types): Remove (moved to
11433 type-stack.c).
11434 * f-exp.y (type_stack): New global.
11435 Update rules.
11436 (push_kind_type, f_parse): Update.
11437 * d-exp.y (type_stack): New global.
11438 Update rules.
11439 (d_parse): Update.
11440 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11441 Update rules.
11442 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11443 (HFILES_NO_SRCDIR): Add type-stack.h.
11444
11445 2019-04-04 Tom Tromey <tom@tromey.com>
11446
11447 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11448 (rust_parser::convert_ast_to_expression, rust_parse)
11449 (rust_lex_test_completion, rust_lex_tests): Update.
11450 * parser-defs.h (struct expr_completion_state): New.
11451 (struct parser_state) <parser_state>: Add completion parameter.
11452 <mark_struct_expression, mark_completion_tag>: New methods.
11453 <parse_completion, m_completion_state>: New members.
11454 (prefixify_expression, null_post_parser): Update.
11455 (mark_struct_expression, mark_completion_tag): Don't declare.
11456 * parse.c (parse_completion, expout_last_struct)
11457 (expout_tag_completion_type, expout_completion_name): Remove
11458 globals.
11459 (parser_state::mark_struct_expression)
11460 (parser_state::mark_completion_tag): Now methods.
11461 (prefixify_expression): Add last_struct parameter.
11462 (prefixify_subexp): Likewise.
11463 (parse_exp_1): Update.
11464 (parse_exp_in_context): Add cstate parameter. Update.
11465 (parse_expression_for_completion): Create an
11466 expr_completion_state.
11467 (null_post_parser): Add "completion" parameter.
11468 * p-exp.y: Update rules.
11469 (yylex): Update.
11470 * language.h (struct language_defn) <la_post_parser>: Add
11471 "completing" parameter.
11472 * go-exp.y: Update rules.
11473 (lex_one_token): Update.
11474 * expression.h (parse_completion): Don't declare.
11475 * d-exp.y: Update rules.
11476 (lex_one_token): Update rules.
11477 * c-exp.y: Update rules.
11478 (lex_one_token): Update.
11479 * ada-lang.c (resolve): Add "parse_completion" parameter.
11480 (resolve_subexp): Likewise.
11481 (ada_resolve_function): Likewise.
11482
11483 2019-04-04 Tom Tromey <tom@tromey.com>
11484
11485 * parser-defs.h (struct parser_state) <start_arglist,
11486 end_arglist>: New methods.
11487 <arglist_len, m_funcall_chain>: New members.
11488 (arglist_len, start_arglist, end_arglist): Don't declare.
11489 * parse.c (arglist_len, funcall_chain): Remove global.
11490 (start_arglist, end_arglist): Remove functions.
11491 (parse_exp_in_context): Update.
11492 * p-exp.y: Update rules.
11493 * m2-exp.y: Update rules.
11494 * go-exp.y: Update rules.
11495 * f-exp.y: Update rules.
11496 * d-exp.y: Update rules.
11497 * c-exp.y: Update rules.
11498
11499 2019-04-04 Tom Tromey <tom@tromey.com>
11500
11501 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11502 lex_operator, push_back>: New methods.
11503 Update all rules.
11504 (rust_parser::lex_hex, lex_escape): Rename and update.
11505 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11506 (rust_parser::lex_operator): Rename and update.
11507 (rust_parser::lex_number, rustyylex, rustyyerror)
11508 (rust_lex_test_init, rust_lex_test_sequence)
11509 (rust_lex_test_push_back, rust_lex_tests): Update.
11510 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11511 parameter.
11512 <lexptr, prev_lexptr>: New members.
11513 (lexptr, prev_lexptr): Don't declare.
11514 * parse.c (lexptr, prev_lexptr): Remove globals.
11515 (parse_exp_in_context): Update.
11516 * p-exp.y (yylex, yyerror): Update.
11517 * m2-exp.y (parse_number, yylex, yyerror): Update.
11518 * go-exp.y (lex_one_token, yyerror): Update.
11519 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11520 * d-exp.y (lex_one_token, yyerror): Update.
11521 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11522 (lex_one_token, yyerror): Update.
11523 * ada-lex.l (YY_INPUT): Update.
11524 (rewind_to_char): Update.
11525 * ada-exp.y (yyerror): Update.
11526
11527 2019-04-04 Tom Tromey <tom@tromey.com>
11528
11529 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11530 * parser-defs.h (struct parser_state) <parser_state>: Add new
11531 parameter.
11532 <comma_terminates>: New member.
11533 (comma_terminates): Don't declare global.
11534 * parse.c (comma_terminates): Remove global.
11535 (parse_exp_in_context): Update.
11536 * p-exp.y (yylex): Update.
11537 * m2-exp.y (yylex): Update.
11538 * go-exp.y (lex_one_token): Update.
11539 * f-exp.y (yylex): Update.
11540 * d-exp.y (lex_one_token): Update.
11541 * c-exp.y (lex_one_token): Update.
11542 * ada-lex.l: Update.
11543
11544 2019-04-04 Tom Tromey <tom@tromey.com>
11545
11546 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11547 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11548 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11549 * parser-defs.h (paren_depth): Don't declare.
11550 * parse.c (paren_depth): Remove global.
11551 (parse_exp_in_context): Update.
11552 * p-exp.y (paren_depth): New global.
11553 (pascal_parse): Initialize it.
11554 * m2-exp.y (paren_depth): New global.
11555 (m2_parse): Initialize it.
11556 * go-exp.y (paren_depth): New global.
11557 (go_parse): Initialize it.
11558 * f-exp.y (paren_depth): New global.
11559 (f_parse): Initialize it.
11560 * d-exp.y (paren_depth): New global.
11561 (d_parse): Initialize it.
11562 * c-exp.y (paren_depth): New global.
11563 (c_parse): Initialize it.
11564 * ada-lex.l (paren_depth): New global.
11565 (lexer_init): Initialize it.
11566
11567 2019-04-04 Tom Tromey <tom@tromey.com>
11568
11569 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11570 (rust_parser::convert_ast_to_type)
11571 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11572 * parser-defs.h (struct parser_state) <parser_state>: Add
11573 parameters. Initialize new members.
11574 <expression_context_block, expression_context_pc>: New members.
11575 * parse.c (expression_context_block, expression_context_pc):
11576 Remove globals.
11577 (parse_exp_in_context): Update.
11578 * p-exp.y: Update all rules.
11579 (yylex): Update.
11580 * m2-exp.y: Update all rules.
11581 (yylex): Update.
11582 * go-exp.y (yylex): Update.
11583 * f-exp.y (yylex): Update.
11584 * d-exp.y: Update all rules.
11585 (yylex): Update.
11586 * c-exp.y: Update all rules.
11587 (lex_one_token, classify_name, yylex, c_parse): Update.
11588 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11589
11590 2019-04-04 Tom Tromey <tom@tromey.com>
11591
11592 * gdbarch.h, gdbarch.c: Rebuild.
11593 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11594 * stap-probe.h:
11595 (struct stap_parse_info): Replace "parser_state" with
11596 "expr_builder".
11597 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11598 (parser_state): New class.
11599 * parse.c (expr_builder): Rename.
11600 (expr_builder::release): Rename.
11601 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11602 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11603 (write_exp_elt_longcst, write_exp_elt_floatcst)
11604 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11605 (write_exp_string_vector, write_exp_bitstring)
11606 (write_exp_msymbol, mark_struct_expression)
11607 (write_dollar_variable)
11608 (insert_type_address_space, increase_expout_size): Replace
11609 "parser_state" with "expr_builder".
11610 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11611 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11612 "parser_state" with "expr_builder".
11613
11614 2019-04-04 Tom Tromey <tom@tromey.com>
11615
11616 * rust-exp.y: Replace "parse_language" with method call.
11617 * p-exp.y:
11618 (yylex): Replace "parse_language" with method call.
11619 * m2-exp.y:
11620 (yylex): Replace "parse_language" with method call.
11621 * go-exp.y (classify_name): Replace "parse_language" with method
11622 call.
11623 * f-exp.y (yylex): Replace "parse_language" with method call.
11624 * d-exp.y (lex_one_token): Replace "parse_language" with method
11625 call.
11626 * c-exp.y:
11627 (lex_one_token, classify_name, yylex): Replace "parse_language"
11628 with method call.
11629 * ada-exp.y (find_primitive_type, type_char)
11630 (type_system_address): Replace "parse_language" with method call.
11631
11632 2019-04-04 Tom Tromey <tom@tromey.com>
11633
11634 * rust-exp.y: Replace "parse_gdbarch" with method call.
11635 * parse.c (write_dollar_variable, insert_type_address_space):
11636 Replace "parse_gdbarch" with method call.
11637 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11638 call.
11639 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11640 call.
11641 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11642 "parse_gdbarch" with method call.
11643 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11644 with method call.
11645 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11646 "parse_gdbarch" with method call.
11647 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11648 "parse_gdbarch" with method call.
11649 * c-exp.y (parse_type, parse_number, classify_name): Replace
11650 "parse_gdbarch" with method call.
11651 * ada-lex.l: Replace "parse_gdbarch" with method call.
11652 * ada-exp.y (parse_type, find_primitive_type, type_char)
11653 (type_system_address): Replace "parse_gdbarch" with method call.
11654
11655 2019-04-04 Tom Tromey <tom@tromey.com>
11656
11657 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11658 * stap-probe.c (stap_parse_argument): Update.
11659 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11660 initial_size parameter.
11661 * rust-exp.y (rust_lex_tests): Update.
11662 * parse.c (parser_state): Update.
11663 (parse_exp_in_context): Update.
11664 * parser-defs.h (struct parser_state) <parser_state>: Remove
11665 "initial_size" parameter.
11666
11667 2019-04-04 Tom Tromey <tom@tromey.com>
11668
11669 * parser-defs.h (increase_expout_size): Don't declare.
11670 * parse.c (increase_expout_size): Now static.
11671
11672 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11673
11674 * gnu-nat.c (gnu_nat_target::wait): Fix
11675 target_waitstatus_to_string call.
11676
11677 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11678
11679 * eval.c (evaluate_subexp_standard): Handle internal functions
11680 during Fortran function call handling.
11681
11682 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11683
11684 * NEWS: Mention new internal functions.
11685 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11686 (read_base_type): Use dwarf2_init_complex_target_type.
11687 * value.c (creal_internal_fn): New function.
11688 (cimag_internal_fn): New function.
11689 (_initialize_values): Register new internal functions.
11690
11691 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11692
11693 * infrun.c (stop_all_threads): If debug_infrun, always
11694 trace the wait status after wait_one, using
11695 target_waitstatus_to_string and target_pid_to_str.
11696 (handle_inferior_event): Replace various trace of
11697 wait status kind by a single trace.
11698 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11699 wait status kind image by target_waitstatus_to_string.
11700 * target/waitstatus.c (target_waitstatus_to_string): Fix
11701 obsolete comment.
11702
11703 2019-04-01 Tom Tromey <tromey@adacore.com>
11704
11705 PR symtab/23331:
11706 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11707
11708 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11709 Pedro Alves <palves@redhat.com>
11710
11711 * top.c (quit_force): Call 'finalize_values'.
11712 * value.c (finalize_values): New function.
11713 * value.h (finalize_values): Declare.
11714
11715 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11716
11717 * NEWS: Announce $_gdb_major and $_gdb_minor.
11718
11719 * top.c (init_gdb_version_vars): New function.
11720 (gdb_init): Call init_gdb_version_vars.
11721
11722 2019-03-29 Tom Tromey <tromey@adacore.com>
11723
11724 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11725 help text. Remove dead code.
11726
11727 2019-03-29 Keith Seitz <keiths@redhat.com>
11728
11729 From Siddhesh Poyarekar:
11730 * f-lang.h (f77_get_upperbound): Return LONGEST.
11731 (f77_get_lowerbound): Likewise.
11732 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11733 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11734 print them.
11735 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11736 plongest to format print it.
11737 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11738 (f77_get_upperbound): Likewise.
11739 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11740 LOWER_BOUND to LONGEST.
11741 (f77_create_arrayprint_offset_tbl): Likewise.
11742
11743 2019-03-29 Keith Seitz <keiths@redhat.com>
11744
11745 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11746 %s/pulongest for TYPE_LENGTH instead of %d in format
11747 strings.
11748 * ada-typerint.c (ada_print_type): Likewise.
11749 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11750 * compile/compile-c-support.c (generate_register_struct): Likewise.
11751 * gdbtypes.c (recursive_dump_type): Likewise.
11752 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11753 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11754 instead of %d in format strings.
11755 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11756 to std::min to ULONGEST.
11757 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11758 instead of %d in format strings.
11759 * tracepoint.c (info_scope_command): Likewise.
11760 * typeprint.c (print_offset_data::update)
11761 (print_offset_data::finish): Likewise.
11762 * xtensa-tdep.c (xtensa_store_return_value)
11763 (xtensa_push_dummy_call): Likewise.
11764
11765 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11766
11767 * windows-nat.c (display_selector): Fixed format specifications
11768 for 64-bit Cygwin.
11769
11770 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11771
11772 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11773
11774 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11775
11776 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11777 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11778 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11779 (nios2_linux_init_abi): Install it.
11780
11781 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11782
11783 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11784
11785 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11786
11787 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11788
11789 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11790 Tom Tromey <tromey@adacore.com>
11791
11792 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11793
11794 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11795
11796 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11797 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11798 method to compute the bounds of range types. Also print "[evaluated]"
11799 if the bounds' values come from a dynamic evaluation.
11800
11801 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11802
11803 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11804 whitespace when pretty printing is on.
11805
11806 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11807
11808 * ppc-linux-nat.c: Add include.
11809
11810 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11811
11812 * NEWS: Mention AArch64 Pointer Authentication.
11813
11814 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11815
11816 * arm-linux-nat.c: Add include.
11817
11818 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * source-cache.c (source_cache::get_source_lines): Re-read
11821 fullname after calling open_source_file.
11822
11823 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11824
11825 * NEWS: Mention TLS support for FreeBSD.
11826
11827 2019-03-25 Tom Tromey <tromey@adacore.com>
11828
11829 * minsyms.c (BUNCH_SIZE): Update comment.
11830 (~minimal_symbol_reader): Remove old comment.
11831 (compact_minimal_symbols): Update comment.
11832 (minimal_symbol_reader::install): Remove old comment. Update
11833 other comments.
11834
11835 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11836
11837 * s390-linux-nat.c: Add include.
11838
11839 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11840
11841 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11842 Call linux_get_hwcap.
11843 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11844 Likewise.
11845 (aarch64_linux_get_hwcap): Remove function.
11846 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11847 declaration.
11848 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11849 linux_get_hwcap.
11850 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11851 * linux-tdep.c (linux_get_hwcap): Add function.
11852 (linux_get_hwcap2): Likewise.
11853 * linux-tdep.h (linux_get_hwcap): Add declaration.
11854 (linux_get_hwcap2): Likewise.
11855 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11856 (ppc_linux_get_hwcap2): Likewise.
11857 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11858 linux_get_hwcap.
11859 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11860 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11861 (ppc_linux_nat_target::read_description): Likewise.
11862 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11863 * s390-linux-nat.c: Likewise.
11864 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11865
11866 2019-03-24 Tom Tromey <tom@tromey.com>
11867
11868 * ada-lang.c (standard_lookup): Simplify initialization.
11869 (ada_lookup_symbol_nonlocal): Simplify return.
11870 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11871 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11872 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11873 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11874 initialization.
11875 * solib.c (solib_global_lookup): Simplify.
11876 * symtab.c (null_block_symbol): Remove.
11877 (symbol_cache_lookup): Simplify returns.
11878 (lookup_language_this): Simplify returns.
11879 (lookup_symbol_aux): Simplify return.
11880 (lookup_local_symbol): Simplify returns.
11881 (lookup_global_symbol_from_objfile): Simplify return.
11882 (lookup_symbol_in_objfile_symtabs)
11883 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11884 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11885 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11886 * cp-namespace.c (cp_lookup_bare_symbol)
11887 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11888 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11889 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11890 (cp_lookup_symbol_via_imports): Simplify initialization.
11891 (find_symbol_in_baseclass): Likewise.
11892 * symtab.h (null_block_symbol): Remove.
11893 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11894 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11895 (d_lookup_symbol_module): Likewise.
11896 (find_symbol_in_baseclass): Simplify initialization.
11897
11898 2019-03-24 Tom Tromey <tom@tromey.com>
11899
11900 * expression.h: Don't include symtab.h.
11901 (struct block): Forward declare.
11902
11903 2019-03-24 Tom Tromey <tom@tromey.com>
11904
11905 * c-exp.y (typebase): Remove casts.
11906 * gdbtypes.c (lookup_unsigned_typename, )
11907 (lookup_signed_typename): Remove cast.
11908 * eval.c (parse_to_comma_and_eval): Remove cast.
11909 * parse.c (write_dollar_variable): Remove cast.
11910 * block.h (struct block) <superblock>: Now const.
11911 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11912 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11913 (map_block): Make "block" const.
11914 * symfile.h (struct quick_symbol_functions)
11915 <map_matching_symbols>: Constify block argument to "callback".
11916 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11917 const.
11918 (find_pc_sect_compunit_symtab): Make "b" const.
11919 (find_symbol_at_address): Likewise.
11920 (search_symbols): Likewise.
11921 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11922 (dw2_debug_names_lookup_symbol): Likewise.
11923 (dw2_map_matching_symbols): Update.
11924 * p-valprint.c (pascal_val_print): Remove "block".
11925 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11926 (aux_add_nonlocal_symbols): Make "block" const.
11927 (resolve_subexp): Remove cast.
11928 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11929 const.
11930 (iterate_over_file_blocks): Likewise.
11931 * f-exp.y (%union) <bval>: Remove.
11932 * coffread.c (patch_opaque_types): Make "b" const.
11933 * spu-tdep.c (spu_catch_start): Make "block" const.
11934 * c-valprint.c (print_unpacked_pointer): Remove "block".
11935 * symmisc.c (dump_symtab_1): Make "b" const.
11936 (block_depth): Make "block" const.
11937 * d-exp.y (%union) <bval>: Remove.
11938 * cp-support.h (cp_lookup_rtti_type): Update.
11939 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11940 * psymtab.c (psym_lookup_symbol): Make "block" const.
11941 (maintenance_check_psymtabs): Make "b" const.
11942 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11943 (enumerate_locals, enumerate_args): Update.
11944 * python/py-symtab.c (stpy_global_block): Make "block" const.
11945 (stpy_static_block): Likewise.
11946 * inline-frame.c (block_starting_point_at): Make "new_block"
11947 const.
11948 * block.c (find_block_in_blockvector): Make return type const.
11949 (blockvector_for_pc_sect): Make "b" const.
11950 (find_block_in_blockvector): Make "b" const.
11951
11952 2019-03-23 Tom Tromey <tom@tromey.com>
11953
11954 * varobj.c (varobj_create): Update.
11955 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11956 * printcmd.c (display_command, do_one_display): Don't reset
11957 innermost_block.
11958 * parser-defs.h (enum innermost_block_tracker_type): Move to
11959 expression.h.
11960 (innermost_block): Update comment.
11961 * parse.c (parse_exp_1): Add tracker_types parameter.
11962 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11963 tracker_types parameter. Reset innermost_block.
11964 (parse_exp_in_context): Remove.
11965 (parse_expression_for_completion): Update.
11966 * objfiles.c (~objfile): Don't reset expression_context_block or
11967 innermost_block.
11968 * expression.h (enum innermost_block_tracker_type): Move from
11969 parser-defs.h.
11970 (parse_exp_1): Add tracker_types parameter.
11971 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11972 reset innermost_block.
11973
11974 2019-03-23 Tom Tromey <tom@tromey.com>
11975
11976 * objfiles.h: Include bcache.h.
11977
11978 2019-03-23 Tom Tromey <tom@tromey.com>
11979
11980 * linespec.c (get_current_search_block): Use
11981 scoped_restore_current_language.
11982 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11983
11984 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11985 Jiong Wang <jiong.wang@arm.com>
11986
11987 * aarch64-linux-tdep.c
11988 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11989 section.
11990 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11991
11992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11993 Jiong Wang <jiong.wang@arm.com>
11994
11995 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11996 instructions.
11997 (aarch64_analyze_prologue_test): Add PACIASP test.
11998 (aarch64_prologue_prev_register): Unmask PC value.
11999
12000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12001 Jiong Wang <jiong.wang@arm.com>
12002
12003 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12004 (aarch64_dwarf2_prev_register): Unmask PC value.
12005 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12006 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12007 DW_CFA_AARCH64_negate_ra_state.
12008 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12009
12010 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12011 Jiong Wang <jiong.wang@arm.com>
12012
12013 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12014 registers.
12015 (aarch64_pseudo_register_name): Likewise.
12016 (aarch64_pseudo_register_type): Likewise.
12017 (aarch64_pseudo_register_reggroup_p): Likewise.
12018 (aarch64_gdbarch_init): Add pauth registers.
12019 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12020 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12021 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12022 (struct gdbarch_tdep): Add regnum for ra_state.
12023
12024 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12025 Jiong Wang <jiong.wang@arm.com>
12026
12027 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12028
12029 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12030 Jiong Wang <jiong.wang@arm.com>
12031
12032 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12033 function.
12034 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12035 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12036 (aarch64_gdbarch_init): Add puth registers.
12037 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12038 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12039 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12040
12041 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12042 Jiong Wang <jiong.wang@arm.com>
12043
12044 * aarch64-linux-nat.c
12045 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12046 * aarch64-linux-tdep.c
12047 (aarch64_linux_core_read_description): Likewise.
12048 (aarch64_linux_get_hwcap): New function.
12049 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12050 (aarch64_linux_get_hwcap): New declaration.
12051
12052 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12053 Jiong Wang <jiong.wang@arm.com>
12054
12055 * aarch64-linux-nat.c
12056 (aarch64_linux_nat_target::read_description): Add pauth param.
12057 * aarch64-linux-tdep.c
12058 (aarch64_linux_core_read_description): Likewise.
12059 * aarch64-tdep.c (struct target_desc): Add in pauth.
12060 (aarch64_read_description): Add pauth param.
12061 (aarch64_gdbarch_init): Likewise.
12062 * aarch64-tdep.h (aarch64_read_description): Likewise.
12063 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12064 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12065 * features/Makefile: Add new files.
12066 * features/aarch64-pauth.c: New file.
12067 * features/aarch64-pauth.xml: New file.
12068
12069 2019-03-20 Tom Tromey <tromey@adacore.com>
12070
12071 * infrun.c (handle_inferior_event): Rename from
12072 handle_inferior_event_1. Create a scoped_value_mark.
12073 (handle_inferior_event): Remove.
12074
12075 2019-03-19 Tom Tromey <tromey@adacore.com>
12076
12077 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12078 * infrun.h (print_stop_event): Add "displays" parameter.
12079 * infrun.c (print_stop_event): Add "displays" parameter.
12080
12081 2019-03-19 Pedro Alves <palves@redhat.com>
12082
12083 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12084 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12085 to -1. Fix TABs vs spaces.
12086 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12087 * tui/tui-out.h (tui_ui_out) Add intro comments.
12088 <m_line, m_start_of_line>: In-class initialize, and add describing
12089 comment.
12090
12091 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12092
12093 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12094 variable names.
12095 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12096
12097 2019-03-18 Pedro Alves <palves@redhat.com>
12098 Eli Zaretskii <eliz@gnu.org>
12099
12100 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12101 m_line and m_start_of_line.
12102
12103 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12104
12105 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12106 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12107 it returns a newline. This fixes a regression in TU mode, whereby
12108 the next line is output on the same screen line as the user input.
12109
12110 2019-03-18 Tom Tromey <tromey@adacore.com>
12111
12112 * minsyms.c (minimal_symbol_reader::install): Remove call to
12113 obstack_blank.
12114
12115 2019-03-18 Pedro Alves <palves@redhat.com>
12116
12117 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12118 New globals.
12119 (apply_style): New, factored out from ...
12120 (apply_ansi_escape): ... this. Handle reverse video mode.
12121 (tui_set_reverse_mode): New function.
12122 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12123 * tui/tui-winsource.c (tui_show_source_line): Use
12124 tui_set_reverse_mode instead of setting A_STANDOUT.
12125 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12126 New setter methods.
12127
12128 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12129
12130 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12131 Handle tabs.
12132
12133 2019-03-18 Tom Tromey <tromey@adacore.com>
12134
12135 * ada-lang.c (empty_array): Add "high" parameter.
12136 (ada_evaluate_subexp): Update.
12137
12138 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12139
12140 * unittests/string_view-selftests.c: Define
12141 _initialize_string_view_selftests unconditionally.
12142
12143 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12144
12145 PR gdb/24350
12146 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12147
12148 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12149
12150 PR gdb/24351
12151 * windows-nat.c (display_selector): Fix format specifiers.
12152
12153 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12154
12155 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12156 tui_refill_source_window instead of tui_refresh_win, to update the
12157 current execution line. This fixes redisplay of the current line
12158 when stepping through the code with "next" or "step".
12159
12160 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12161
12162 * source-cache.c (source_cache::get_source_lines): Call
12163 find_source_lines to initialize s->nlines. This fixes vertical
12164 scrolling of TUI source window when the DOWN arrow is pressed.
12165
12166 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12167
12168 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12169 linux-thread-db.c (_initialize_thread_db): Likewise.
12170
12171 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12172
12173 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12174 wclrtoeol in tui_show_source_line". This reverts changes made in
12175 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12176
12177 2019-03-15 Tom Tromey <tom@tromey.com>
12178
12179 * symtab.h (struct minimal_symbol): Derive from
12180 general_symbol_info.
12181 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12182 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12183 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12184 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12185 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12186 (MSYMBOL_SEARCH_NAME): Update.
12187 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12188 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12189 * minsyms.c (minimal_symbol_reader::record_full): Update.
12190
12191 2019-03-15 Tom Tromey <tom@tromey.com>
12192
12193 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12194
12195 2019-03-15 Tom Tromey <tom@tromey.com>
12196
12197 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12198 unique_xmalloc_ptr.
12199 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12200 Update.
12201 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12202 (build_minimal_symbol_hash_tables)
12203 (minimal_symbol_reader::install): Update.
12204
12205 2019-03-15 Tom Tromey <tom@tromey.com>
12206
12207 * symtab.c (create_demangled_names_hash): Update.
12208 (symbol_set_names): Update.
12209 * objfiles.h (struct objfile_per_bfd_storage)
12210 <demangled_names_hash>: Now an htab_up.
12211 * objfiles.c (objfile_per_bfd_storage): Simplify.
12212
12213 2019-03-15 Tom Tromey <tom@tromey.com>
12214
12215 * objfiles.h (struct objfile_per_bfd_storage): Declare
12216 destructor.
12217 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12218 New.
12219 (get_objfile_bfd_data): Use new. Don't initialize
12220 language_of_main.
12221 (free_objfile_per_bfd_storage): Remove.
12222 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12223
12224 2019-03-15 Tom Tromey <tom@tromey.com>
12225
12226 * symfile.c (reread_symbols): Update.
12227 * objfiles.c (objfile::objfile): Update.
12228 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12229 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12230 comment.
12231 (minimal_symbol_reader::install): Update.
12232 (terminate_minimal_symbol_table): Remove.
12233 * jit.c (jit_object_close_impl): Update.
12234
12235 2019-03-15 Tom Tromey <tom@tromey.com>
12236
12237 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12238 initializations.
12239
12240 2019-03-15 Tom Tromey <tom@tromey.com>
12241
12242 * objfiles.h (struct objfile_per_bfd_storage)
12243 <demangled_hash_languages>: Now a bitset.
12244 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12245 (lookup_minimal_symbol): Update.
12246
12247 2019-03-15 Tom Tromey <tom@tromey.com>
12248
12249 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12250 Don't return the symbol.
12251 * coffread.c (record_minimal_symbol): Use record_full.
12252
12253 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12254
12255 The MS-Windows port of ncurses fails to switch to a color pair if
12256 one or both of the colors are the implicit default colors. This
12257 change records the default colors when TUI is initialized, and
12258 then specifies them explicitly when a color pair uses the default
12259 colors. This allows color styling in TUI mode on MS-Windows.
12260
12261 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12262 ncurses_norm_attr.
12263 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12264 colors in ncurses_norm_attr.
12265 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12266 "none", replace it with the default color recorded in
12267 ncurses_norm_attr.
12268
12269 2019-03-14 Tom Tromey <tromey@adacore.com>
12270
12271 * source-cache.h (class source_cache) <get_source_lines>: Return
12272 std::string.
12273 * source-cache.c (source_cache::extract_lines): Handle case where
12274 first_pos==npos. Return std::string.
12275 (source_cache::get_source_lines): Update.
12276
12277 2019-03-14 Tom Tromey <tromey@adacore.com>
12278
12279 * NEWS: Add item for "style sources" commands.
12280 * source-cache.c (source_cache::get_source_lines): Check
12281 source_styling.
12282 * cli/cli-style.c (source_styling): New global.
12283 (_initialize_cli_style): Add "style sources" commands.
12284 (show_style_sources): New function.
12285 * cli/cli-style.h (source_styling): Declare.
12286
12287 2019-03-14 Pedro Alves <palves@redhat.com>
12288 Tom Tromey <tromey@adacore.com>
12289
12290 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12291 * tui/tui-winsource.c (tui_refill_source_window): New function,
12292 from...
12293 (tui_horizontal_source_scroll): ... here. Move some logic.
12294 * cli/cli-style.c (set_style_enabled): Notify new observable.
12295 * tui/tui-hooks.c (tui_redisplay_source): New function.
12296 (tui_attach_detach_observers): Attach or detach
12297 tui_redisplay_source.
12298 * observable.h (source_styling_changed): New observable.
12299 * observable.c: Define source_styling_changed observable.
12300
12301 2019-03-13 Tom Tromey <tromey@adacore.com>
12302
12303 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12304 (i386_gnu_nat_target::store_registers): Update.
12305 * target-debug.h (target_debug_print_std_string): New macro.
12306 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12307 * windows-tdep.c (display_one_tib): Update.
12308 * tui/tui-stack.c (tui_make_status_line): Update.
12309 * top.c (print_inferior_quit_action): Update.
12310 * thread.c (thr_try_catch_cmd): Update.
12311 (add_thread_with_info): Update.
12312 (thread_target_id_str): Update.
12313 (thr_try_catch_cmd): Update.
12314 (thread_command): Update.
12315 (thread_find_command): Update.
12316 * record-btrace.c (record_btrace_target::info_record)
12317 (record_btrace_resume_thread, record_btrace_target::resume)
12318 (record_btrace_cancel_resume, record_btrace_step_thread)
12319 (record_btrace_target::wait, record_btrace_target::wait)
12320 (record_btrace_target::wait, record_btrace_target::stop): Update.
12321 * progspace.c (print_program_space): Update.
12322 * process-stratum-target.c
12323 (process_stratum_target::thread_address_space): Update.
12324 * linux-fork.c (linux_fork_mourn_inferior)
12325 (detach_checkpoint_command, info_checkpoints_command)
12326 (linux_fork_context): Update.
12327 (linux_fork_detach): Update.
12328 (class scoped_switch_fork_info): Update.
12329 (delete_checkpoint_command): Update.
12330 * infrun.c (follow_fork_inferior): Update.
12331 (follow_fork_inferior): Update.
12332 (proceed_after_vfork_done): Update.
12333 (handle_vfork_child_exec_or_exit): Update.
12334 (follow_exec): Update.
12335 (displaced_step_prepare_throw): Update.
12336 (displaced_step_restore): Update.
12337 (start_step_over): Update.
12338 (resume_1): Update.
12339 (clear_proceed_status_thread): Update.
12340 (proceed): Update.
12341 (print_target_wait_results): Update.
12342 (do_target_wait): Update.
12343 (context_switch): Update.
12344 (stop_all_threads): Update.
12345 (restart_threads): Update.
12346 (finish_step_over): Update.
12347 (handle_signal_stop): Update.
12348 (switch_back_to_stepped_thread): Update.
12349 (keep_going_pass_signal): Update.
12350 (print_exited_reason): Update.
12351 (normal_stop): Update.
12352 * inferior.c (inferior_pid_to_str): Change return type.
12353 (print_selected_inferior): Update.
12354 (add_inferior): Update.
12355 (detach_inferior): Update.
12356 * dummy-frame.c (fprint_dummy_frames): Update.
12357 * dcache.c (dcache_info_1): Update.
12358 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12359 (btrace_fetch, btrace_clear): Update.
12360 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12361 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12362 type.
12363 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12364 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12365 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12366 * gdbarch.c, gdbarch.h: Rebuild.
12367 * gdbarch.sh (core_pid_to_str): Change return type.
12368 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12369 return type.
12370 (windows_nat_target::pid_to_str): Change return type.
12371 (windows_delete_thread): Update.
12372 (windows_nat_target::attach): Update.
12373 (windows_nat_target::files_info): Update.
12374 * target-delegates.c: Rebuild.
12375 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12376 return type.
12377 (sol_thread_target::pid_to_str): Change return type.
12378 * remote.c (class remote_target) <pid_to_str>: Change return
12379 type.
12380 (remote_target::pid_to_str): Change return type.
12381 (extended_remote_target::attach, remote_target::remote_stop_ns)
12382 (remote_target::remote_notif_remove_queued_reply)
12383 (remote_target::push_stop_reply, remote_target::disable_btrace):
12384 Update.
12385 (extended_remote_target::attach): Update.
12386 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12387 type.
12388 (gdbsim_target::pid_to_str): Change return type.
12389 * ravenscar-thread.c (struct ravenscar_thread_target)
12390 <pid_to_str>: Change return type.
12391 (ravenscar_thread_target::pid_to_str): Change return type.
12392 * procfs.c (class procfs_target) <pid_to_str>: Change return
12393 type.
12394 (procfs_target::pid_to_str): Change return type.
12395 (procfs_target::attach): Update.
12396 (procfs_target::detach): Update.
12397 (procfs_target::fetch_registers): Update.
12398 (procfs_target::store_registers): Update.
12399 (procfs_target::wait): Update.
12400 (procfs_target::files_info): Update.
12401 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12402 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12403 return type.
12404 (nto_procfs_target::pid_to_str): Change return type.
12405 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12406 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12407 return type.
12408 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12409 (exit_lwp): Update.
12410 (attach_proc_task_lwp_callback, get_detach_signal)
12411 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12412 (linux_nat_target::resume, wait_lwp, stop_callback)
12413 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12414 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12415 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12416 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12417 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12418 type.
12419 (inf_ptrace_target::attach): Update.
12420 (inf_ptrace_target::files_info): Update.
12421 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12422 type.
12423 (go32_nat_target::pid_to_str): Change return type.
12424 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12425 (gnu_nat_target::wait): Update.
12426 (gnu_nat_target::wait): Update.
12427 (gnu_nat_target::resume): Update.
12428 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12429 (fbsd_nat_target::wait): Update.
12430 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12431 type.
12432 (darwin_nat_target::attach): Update.
12433 * corelow.c (class core_target) <pid_to_str>: Change return type.
12434 (core_target::pid_to_str): Change return type.
12435 * target.c (normal_pid_to_str): Change return type.
12436 (default_pid_to_str): Likewise.
12437 (target_pid_to_str): Change return type.
12438 (target_translate_tls_address): Update.
12439 (target_announce_detach): Update.
12440 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12441 return type.
12442 (bsd_uthread_target::pid_to_str): Change return type.
12443 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12444 type.
12445 (bsd_kvm_target::pid_to_str): Change return type.
12446 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12447 return type.
12448 (aix_thread_target::pid_to_str): Change return type.
12449 * target.h (struct target_ops) <pid_to_str>: Change return type.
12450 (target_pid_to_str, normal_pid_to_str): Likewise.
12451 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12452 type.
12453 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12454 type.
12455 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12456 return type.
12457 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12458 type.
12459 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12460 type.
12461 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12462 return type.
12463
12464 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12465
12466 * NEWS: Mention that the new default MI version is 3. Mention
12467 changes to the output of commands and events that deal with
12468 multi-location breakpoints.
12469 * breakpoint.c: Include "mi/mi-out.h".
12470 (print_one_breakpoint): Change output syntax if using MI version
12471 >= 3.
12472 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12473 New.
12474 (mi_multi_location_breakpoint_output_fixed): New.
12475 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12476 (mi_cmd_fix_multi_location_breakpoint_output): New.
12477 (mi_multi_location_breakpoint_output_fixed): New.
12478 * mi/mi-cmds.c (mi_cmds): Register command
12479 -fix-multi-location-breakpoint-output.
12480 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12481 interpreter "mi".
12482
12483 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12484
12485 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12486 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12487 instantiate mi_ui_out based on interpreter name.
12488 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12489 * mi/mi-main.c (mi_load_progress): Likewise.
12490
12491 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12492
12493 * NEWS: Combine separate "New targets" sections for 8.3.
12494
12495 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12496
12497 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12498 (ppcfbsd_init_abi): Install gdbarch
12499 "fetch_tls_load_module_address" and "get_thread_local_address"
12500 methods.
12501
12502 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12503
12504 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12505 (riscv_fbsd_init_abi): Install gdbarch
12506 "fetch_tls_load_module_address" and "get_thread_local_address"
12507 methods.
12508
12509 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12510
12511 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12512 (i386fbsd_init_abi): Install gdbarch
12513 "fetch_tls_load_module_address" and "get_thread_local_address"
12514 methods.
12515
12516 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12517
12518 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12519 (amd64fbsd_init_abi): Install gdbarch
12520 "fetch_tls_load_module_address" and "get_thread_local_address"
12521 methods.
12522
12523 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12524
12525 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12526 (struct fbsd_pspace_data): New type.
12527 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12528 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12529 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12530 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12531 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12532
12533 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12534
12535 * gdbtypes.c (lookup_struct_elt): New function.
12536 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12537 * gdbtypes.h (struct struct_elt): New type.
12538 (lookup_struct_elt): New prototype.
12539
12540 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12541
12542 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12543 remove disabled code block.
12544
12545 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12546
12547 * gdbarch.sh (get_thread_local_address): New method.
12548 * gdbarch.h, gdbarch.c: Regenerate.
12549 * target.c (target_translate_tls_address): Use
12550 gdbarch_get_thread_local_address if present instead of
12551 target::get_thread_local_address.
12552
12553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12554
12555 * target.h (target::get_thread_local_address): Update comment.
12556
12557 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12558
12559 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12560 objfile->separate_debug_objfile_backlink if not NULL.
12561
12562 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12563
12564 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12565 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12566 (amd64bsd_store_inferior_registers): Likewise.
12567 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12568 Enable segment base registers.
12569 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12570 PT_GETFSBASE and PT_GETGSBASE.
12571 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12572 PT_SETGSBASE.
12573 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12574 segment base registers.
12575 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12576
12577 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12578
12579 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12580 Update calls to i386_target_description to add 'segments'
12581 parameter.
12582 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12583 add segment base registers.
12584 * arch/i386.c (i386_create_target_description): Add 'segments'
12585 parameter to enable segment base registers.
12586 * arch/i386.h (i386_create_target_description): Likewise.
12587 * features/i386/32bit-segments.xml: New file.
12588 * features/i386/32bit-segments.c: Generate.
12589 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12590 call to i386_target_description to add 'segments' parameter.
12591 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12592 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12593 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12594 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12595 if feature is present.
12596 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12597 Add 'segments' parameter to call to i386_target_description.
12598 (i386_target_description): Add 'segments' parameter to enable
12599 segment base registers.
12600 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12601 to call to i386_target_description.
12602 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12603 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12604 Define I386_NUM_REGS.
12605 (i386_target_description): Add 'segments' parameter to enable
12606 segment base registers.
12607
12608 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12609
12610 PR/24325
12611 * source-cache.c: #undef open and close, to avoid unresolved
12612 externals during linking.
12613
12614 2019-03-12 Tom Tromey <tromey@adacore.com>
12615
12616 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12617 const. Add initializers.
12618 (_initialize_remote): Don't initialize ptid globals.
12619
12620 2019-03-12 Pedro Alves <palves@redhat.com>
12621
12622 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12623
12624 2019-03-12 Pedro Alves <palves@redhat.com>
12625
12626 * cp-name-parser.y (main): Remove unused 'len' variable.
12627
12628 2019-03-12 Tom Tromey <tromey@adacore.com>
12629
12630 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12631 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12632
12633 2019-03-12 Tom Tromey <tromey@adacore.com>
12634
12635 * linux-nat.c (iterate_over_lwps): Update.
12636 (stop_callback): Remove parameter.
12637 (stop_wait_callback, detach_callback, resume_set_callback)
12638 (select_singlestep_lwp_callback, set_ignore_sigint)
12639 (status_callback, resumed_callback, resume_clear_callback)
12640 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12641 data parameter.
12642 (linux_nat_target::detach, linux_nat_target::resume)
12643 (linux_stop_and_wait_all_lwps, select_event_lwp)
12644 (linux_nat_filter_event, linux_nat_wait_1)
12645 (linux_nat_target::kill, linux_nat_target::stop)
12646 (linux_nat_target::stop): Update.
12647 (linux_nat_resume_callback): Change type.
12648 (resume_stopped_resumed_lwps, count_events_callback)
12649 (select_event_lwp_callback): Likewise.
12650 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12651 * arm-linux-nat.c (struct update_registers_data): Remove.
12652 (update_registers_callback): Change type.
12653 (arm_linux_insert_hw_breakpoint1): Update.
12654 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12655 parameter.
12656 (x86_linux_dr_set_addr): Update.
12657 (x86_linux_dr_set_control): Update.
12658 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12659 (iterate_over_lwps): Use gdb::function_view.
12660 * nat/aarch64-linux-hw-point.c (struct
12661 aarch64_dr_update_callback_param): Remove.
12662 (debug_reg_change_callback): Change type.
12663 (aarch64_notify_debug_reg_change): Update.
12664 * s390-linux-nat.c (s390_refresh_per_info): Update.
12665
12666 2019-03-11 Tom Tromey <tromey@adacore.com>
12667
12668 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12669 redundant assignment to "this_cu".
12670
12671 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12672
12673 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12674
12675 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12678 from...
12679 (rank_one_type): ... this.
12680
12681 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12684 from...
12685 (rank_one_type): ... this.
12686
12687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12690 from...
12691 (rank_one_type): ... this.
12692
12693 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12696 from...
12697 (rank_one_type): ... this.
12698
12699 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12700
12701 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12702 from...
12703 (rank_one_type): ... this.
12704
12705 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12708 from...
12709 (rank_one_type): ... this.
12710
12711 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12712
12713 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12714 from...
12715 (rank_one_type): ... this.
12716
12717 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12720 from...
12721 (rank_one_type): ... this.
12722
12723 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12726 from...
12727 (rank_one_type): ... this.
12728
12729 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12730
12731 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12732 from...
12733 (rank_one_type): ... this.
12734
12735 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12736
12737 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12738 from...
12739 (rank_one_type): ... this.
12740
12741 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12742
12743 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12744 from...
12745 (rank_one_type): ... this.
12746
12747 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12748
12749 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12750 inferior-events' shows the example events.
12751
12752 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12753
12754 Support styling on native MS-Windows console
12755
12756 PR/24315
12757 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12758 on MS-Windows if $TERM is not defined.
12759
12760 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12761
12762 * posix-hdep.c (gdb_console_fputs):
12763 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12764 functions.
12765 * ui-file.h (gdb_console_fputs): Add prototype.
12766
12767 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12768 back to fputs only if the former returns zero.
12769
12770 2019-03-07 Tom Tromey <tom@tromey.com>
12771
12772 * symmisc.c (print_symbol_bcache_statistics): Update.
12773 (print_objfile_statistics): Update.
12774 * symfile.c (allocate_symtab): Update.
12775 * stabsread.c: Don't include bcache.h.
12776 * psymtab.h (struct psymbol_bcache): Don't declare.
12777 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12778 (psymbol_bcache_init, psymbol_bcache_free)
12779 (psymbol_bcache_get_bcache): Don't declare.
12780 * psymtab.c (struct psymbol_bcache): Remove.
12781 (psymtab_storage::psymtab_storage): Update.
12782 (psymtab_storage::~psymtab_storage): Update.
12783 (psymbol_bcache_init, psymbol_bcache_free)
12784 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12785 (add_psymbol_to_bcache): Update.
12786 (allocate_psymtab): Update.
12787 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12788 macro_cache>: No longer pointers.
12789 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12790 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12791 * macrotab.c (macro_bcache): Update.
12792 * macroexp.c: Don't include bcache.h.
12793 * gdbtypes.c (check_types_worklist): Update.
12794 (types_deeply_equal): Remove TRY/CATCH. Update.
12795 * elfread.c (elf_symtab_read): Update.
12796 * dwarf2read.c: Don't include bcache.h.
12797 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12798 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12799 (print_bcache_statistics, bcache_memory_used): Don't declare.
12800 (struct bcache): Move from bcache.c. Add constructor, destructor,
12801 methods. Rename all data members.
12802 * bcache.c (struct bcache): Move to bcache.h.
12803 (bcache::expand_hash_table): Rename from expand_hash_table.
12804 (bcache): Remove.
12805 (bcache::insert): Rename from bcache_full.
12806 (bcache::compare): Rename from bcache_compare.
12807 (bcache_xmalloc): Remove.
12808 (bcache::~bcache): Rename from bcache_xfree.
12809 (bcache::print_statistics): Rename from print_bcache_statistics.
12810 (bcache::memory_used): Rename from bcache_memory_used.
12811
12812 2019-03-07 Pedro Alves <palves@redhat.com>
12813
12814 * infrun.c (normal_stop): Also check for
12815 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12816
12817 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12818
12819 * f-lang.c (value_from_host_double): Moved to...
12820 * value.c (value_from_host_double): ...here.
12821 * value.h (value_from_host_double): Declare.
12822 * guile/scm-math.c (vlscm_convert_typed_number): Use
12823 value_from_host_double.
12824 (vlscm_convert_number): Likewise.
12825 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12826 * python/py-value.c (convert_value_from_python): Likewise.
12827
12828 2019-03-06 Tom Tromey <tom@tromey.com>
12829
12830 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12831
12832 2019-03-06 Tom Tromey <tom@tromey.com>
12833
12834 * utils.h (free_current_contents): Don't declare.
12835 * utils.c (free_current_contents): Remove.
12836
12837 2019-03-06 Tom Tromey <tom@tromey.com>
12838
12839 * top.c (quit_force): Update.
12840 * main.c (captured_command_loop): Update.
12841 * common/new-op.c (operator new): Update.
12842 * common/common-exceptions.c (struct catcher)
12843 <save_cleanup_chain>: Remove member.
12844 (exceptions_state_mc_init): Update.
12845 (exception_try_scope_entry): Return nullptr.
12846 (exception_try_scope_exit, exception_rethrow)
12847 (throw_exception_sjlj, throw_exception_cxx): Update.
12848 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12849 (all_cleanups, do_cleanups, discard_cleanups)
12850 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12851 (restore_cleanups, restore_final_cleanups): Don't declare.
12852 (do_final_cleanups): Remove parameter.
12853 * common/cleanups.c (cleanup_chain, make_cleanup)
12854 (make_cleanup_dtor, all_cleanups, do_cleanups)
12855 (discard_my_cleanups, discard_cleanups)
12856 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12857 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12858 (null_cleanup): Remove.
12859 (do_final_cleanups): Remove parameter.
12860
12861 2019-03-06 Tom Tromey <tom@tromey.com>
12862
12863 * remote.c (remote_target::remote_parse_stop_reply): Use
12864 unique_xmalloc_ptr.
12865
12866 2019-03-06 Tom Tromey <tom@tromey.com>
12867
12868 * stabsread.c (struct stabs_field_info): Rename from field_info.
12869 <list, fnlist>: Add initializers.
12870 <obstack>: New member.
12871 (read_member_functions, read_struct_fields, read_baseclasses):
12872 Allocate on obstack. Don't use cleanups.
12873 (read_one_struct_field, read_member_functions, read_struct_fields)
12874 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12875 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12876 (read_struct_type): Update.
12877
12878 2019-03-06 Tom Tromey <tom@tromey.com>
12879
12880 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12881 * common/filestuff.h (make_cleanup_close): Don't declare.
12882 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12883 Remove.
12884
12885 2019-03-06 Tom Tromey <tom@tromey.com>
12886
12887 * solib-aix.c: Use make_scope_exit.
12888
12889 2019-03-06 Tom Tromey <tom@tromey.com>
12890
12891 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12892 Use make_scope_exit.
12893
12894 2019-03-06 Tom Tromey <tom@tromey.com>
12895
12896 * solib-svr4.c (disable_probes_interface): Remove parameter.
12897 (svr4_handle_solib_event): Use make_scope_exit.
12898
12899 2019-03-06 Tom Tromey <tom@tromey.com>
12900
12901 * remote.c (struct stop_reply_deleter): Remove.
12902 (stop_reply_up): Update.
12903 (struct stop_reply): Derive from notif_event. Don't typedef.
12904 <regcache>: Now a std::vector.
12905 (stop_reply_xfree): Remove.
12906 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12907 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12908 (remote_target::discard_pending_stop_replies): Use delete.
12909 (remote_target::remote_parse_stop_reply): Update.
12910 (remote_target::process_stop_reply): Update.
12911 * remote-notif.h (struct notif_event): Add virtual destructor.
12912 Remove "dtr" member.
12913 (struct notif_client) <alloc_event>: Return a unique_ptr.
12914 (notif_event_xfree): Don't declare.
12915 (notif_event_up): New typedef.
12916 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12917 (notif_event_xfree, do_notif_event_xfree): Remove.
12918 (remote_notif_state_xfree): Update.
12919
12920 2019-03-06 Tom Tromey <tom@tromey.com>
12921
12922 * infrun.c (displaced_step_clear_cleanup): Now a
12923 forward_scope_exit type.
12924 (displaced_step_prepare_throw): Update.
12925 (displaced_step_fixup): Update.
12926
12927 2019-03-06 Tom Tromey <tom@tromey.com>
12928
12929 * inferior.h (class inferior): Update comment.
12930 * gdbthread.h (class thread_info): Update comment.
12931
12932 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12933 Tom Tromey <tom@tromey.com>
12934
12935 * stabsread.h (struct stab_section_list): Remove.
12936 (coffstab_build_psymtabs): Update.
12937 * dbxread.c (symbuf_sections): Now a std::vector.
12938 (sect_idx): New global.
12939 (fill_symbuf): Update.
12940 (coffstab_build_psymtabs): Change type of stabsects parameter.
12941 Update.
12942 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12943 std::vector.
12944 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12945 (coff_locate_sections): Update.
12946 (coff_symfile_read): Remove cleanups. Update.
12947 (init_stringtab): Add storage parameter.
12948 (free_stringtab, free_stringtab_cleanup): Remove.
12949 (init_lineno): Add storage parameter.
12950 (free_linetab, free_linetab_cleanup): Remove.
12951
12952 2019-03-06 Pedro Alves <palves@redhat.com>
12953
12954 * linux-fork.c (fork_info::clobber_regs): Delete.
12955 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12956 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12957 comment. Adjust.
12958 (scoped_switch_fork_info::scoped_switch_fork_info)
12959 (checkpoint_command, linux_fork_context): Adjust
12960 fork_save_infrun_state calls.
12961
12962 2019-03-06 Pedro Alves <palves@redhat.com>
12963
12964 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12965 (inf_has_multiple_threads): Return 'bool' and rewrite using
12966 inferior_info::threads().
12967
12968 2019-03-06 Pedro Alves <palves@redhat.com>
12969
12970 * linux-fork.c: Include <list>.
12971 (fork_list): Now a std::list instance.
12972 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12973 (forks_exist_p, find_last_fork): Adjust.
12974 (new_fork): Delete.
12975 (one_fork_p): New.
12976 (add_fork): Adjust.
12977 (free_fork): Delete, folded into fork_info::~fork_info().
12978 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12979 Adjust.
12980 (init_fork_list): Delete.
12981 (linux_fork_killall, linux_fork_mourn_inferior)
12982 (linux_fork_detach, info_checkpoints_command): Adjust.
12983 (_initialize_linux_fork): No longer call init_fork_list.
12984
12985 2019-03-06 Pedro Alves <palves@redhat.com>
12986
12987 * linux-fork.c (new_fork): New, split out of ...
12988 (add_fork): ... this. Return void. Move "first fork" special
12989 case from here, to ...
12990 (checkpoint_command): ... here.
12991 * linux-linux.h (add_fork): Return void.
12992
12993 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12994
12995 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12996
12997 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12998 Chris January <chris.january@arm.com>
12999 David Lecomber <david.lecomber@arm.com>
13000
13001 * f-exp.y: New token, UNOP_INTRINSIC.
13002 (exp): New pattern using UNOP_INTRINSIC token.
13003 (f77_keywords): Add 'abs' keyword.
13004 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13005 (value_from_host_double): New function.
13006 (evaluate_subexp_f): Support UNOP_ABS.
13007
13008 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13009
13010 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13011 types.
13012
13013 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13014
13015 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13016 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13017 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13018
13019 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13020
13021 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13022
13023 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13024 Chris January <chris.january@arm.com>
13025
13026 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13027 * f-exp.y: Define 'KIND' token.
13028 (exp): New pattern for KIND expressions.
13029 (ptype): Handle types with a kind extension.
13030 (direct_abs_decl): Extend to spot kind extensions.
13031 (f77_keywords): Add 'kind' to the list.
13032 (push_kind_type): New function.
13033 (convert_to_kind_type): New function.
13034 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13035 * parse.c (operator_length_standard): Likewise.
13036 * parser-defs.h (enum type_pieces): Add tp_kind.
13037 * std-operator.def: Add UNOP_KIND.
13038
13039 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13040
13041 * f-exp.y (f_parse): Set yydebug.
13042
13043 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * f-lang.c (evaluate_subexp_f): New function.
13046 (exp_descriptor_f): New global.
13047 (f_language_defn): Use exp_descriptor_f instead of
13048 exp_descriptor_standard.
13049
13050 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13051
13052 * f-exp.y (struct token): Add comments.
13053 (dot_ops): Remove uppercase versions and the end marker.
13054 (f77_keywords): Likewise.
13055 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13056 entries in the dot_ops array are case insensitive, and use
13057 strncasecmp to compare strings. Also some whitespace cleanup in
13058 this area. Similar for the f77_keywords array, except entries in
13059 this list might be case sensitive.
13060
13061 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13062
13063 * f-exp.y (struct f77_boolean_val): Add comments.
13064 (boolean_values): Remove uppercase versions, and end marker.
13065 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13066 and use strncasecmp to achieve case insensitivity. Additionally,
13067 perform whitespace cleanup around this code.
13068
13069 2019-03-06 Tom Tromey <tromey@adacore.com>
13070
13071 * remote-sim.c (gdbsim_target_open): Use result of
13072 gdb_argv::release.
13073
13074 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13075 Dirk Schubert <dirk.schubert@arm.com>
13076 Chris January <chris.january@arm.com>
13077
13078 * eval.c (evaluate_subexp_standard): Call Fortran argument
13079 wrapping logic.
13080 * f-lang.c (struct value): A value which can be passed into a
13081 Fortran function call.
13082 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13083 where appropriate.
13084 (struct type): Value ready for a Fortran function call.
13085 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13086 is needed.
13087 * f-lang.h (fortran_argument_convert): Declaration.
13088 (fortran_preserve_arg_pointer): Declaration.
13089 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13090
13091 2019-03-05 Tom Tromey <tromey@adacore.com>
13092
13093 * python/py-prettyprint.c (print_string_repr): Remove #if.
13094 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13095
13096 2019-03-05 Tom Tromey <tromey@adacore.com>
13097
13098 * target.c (the_dummy_target): Move later. Change type to
13099 "dummy_target".
13100 (initialize_targets): Don't initialize the_dummy_target.
13101
13102 2019-03-05 Tom Tromey <tromey@adacore.com>
13103
13104 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13105 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13106
13107 2019-03-05 Tom Tromey <tromey@adacore.com>
13108
13109 * windows-nat.c (windows_nat_target::attach)
13110 (windows_nat_target::detach): Don't call gdb_flush.
13111 * valprint.c (generic_val_print, val_print, val_print_string):
13112 Don't call gdb_flush.
13113 * utils.c (defaulted_query): Don't call gdb_flush.
13114 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13115 * target.c (target_announce_detach): Don't call gdb_flush.
13116 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13117 * remote.c (extended_remote_target::attach): Don't call
13118 gdb_flush.
13119 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13120 * printcmd.c (do_examine): Don't call gdb_flush.
13121 (info_display_command): Don't call gdb_flush.
13122 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13123 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13124 * memattr.c (info_mem_command): Don't call gdb_flush.
13125 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13126 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13127 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13128 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13129 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13130 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13131 (gnu_nat_target::detach): Don't call gdb_flush.
13132 * f-valprint.c (f_val_print): Don't call gdb_flush.
13133 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13134 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13135 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13136 gdb_flush.
13137 * c-valprint.c (c_val_print): Don't call gdb_flush.
13138 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13139
13140 2019-03-05 Tom Tromey <tromey@adacore.com>
13141
13142 * varobj.c (update_dynamic_varobj_children): Update.
13143 (install_default_visualizer): Use reset, not release.
13144 * value.c (set_internalvar): Update.
13145 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13146 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13147 ATTRIBUTE_UNUSED_RESULT.
13148
13149 2019-03-05 Tom Tromey <tromey@adacore.com>
13150
13151 * remote.c (class scoped_remote_fd) <release>: Add
13152 ATTRIBUTE_UNUSED_RESULT.
13153
13154 2019-03-05 Tom Tromey <tromey@adacore.com>
13155
13156 * macroexp.c (struct macro_buffer) <release>: Add
13157 ATTRIBUTE_UNUSED_RESULT.
13158
13159 2019-03-05 Tom Tromey <tromey@adacore.com>
13160
13161 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13162 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13163 ATTRIBUTE_UNUSED_RESULT.
13164
13165 2019-03-05 Tom Tromey <tromey@adacore.com>
13166
13167 * common/scoped_fd.h (class scoped_fd) <release>: Add
13168 ATTRIBUTE_UNUSED_RESULT.
13169
13170 2019-03-05 Tom Tromey <tromey@adacore.com>
13171
13172 * parser-defs.h (struct parser_state) <release>: Add
13173 ATTRIBUTE_UNUSED_RESULT.
13174
13175 2019-03-05 Tom Tromey <tromey@adacore.com>
13176
13177 * utils.h (class gdb_argv) <release>: Add
13178 ATTRIBUTE_UNUSED_RESULT.
13179 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13180
13181 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13182
13183 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13184 for-loop range, to avoid compiler warnings.
13185
13186 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13187 avoid compiler warnings about unused variables.
13188
13189 * NEWS: Mention end of support for native debugging on MS-Windows
13190 before XP.
13191
13192 PR gdb/24292
13193 * common/netstuff.c:
13194 * gdbserver/gdbreplay.c
13195 * gdbserver/remote-utils.c:
13196 * ser-tcp.c:
13197 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13198 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13199 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13200 'getaddrinfo' and 'freeaddrinfo' were not available before
13201 Windows XP, and mingw.org's MinGW headers by default define
13202 _WIN32_WINNT to 0x500.
13203
13204 2019-03-01 Gary Benson <gbenson@redhat.com>
13205
13206 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13207
13208 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13209 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13210
13211 PR gdb/8527
13212 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13213 set_sigint_trap, clear_sigint_trap.
13214
13215 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13216
13217 * target.c (target_detach): Clear the regcache and the
13218 frame cache.
13219
13220 2019-02-27 Pedro Alves <palves@redhat.com>
13221
13222 * utils.c (set_screen_size): When we cap the height/width sizes,
13223 tweak the corresponding command variable to show "unlimited":
13224
13225 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13226 Pedro Alves <palves@redhat.com>
13227
13228 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13229 before calling rl_set_screen_size.
13230
13231 2019-02-27 Tom Tromey <tromey@adacore.com>
13232
13233 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13234 define.
13235 * python/py-value.c: Remove Python 2.4 workaround.
13236 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13237 workaround.
13238 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13239 Python 2.4 workaround.
13240 * python/python-internal.h: Remove Python 2.4 comment.
13241 (Py_ssize_t): Don't define.
13242 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13243 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13244 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13245 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13246 * python/python.c (do_start_initialization): Remove Python 2.4
13247 workaround.
13248 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13249 (print_children): Remove Python 2.4 workaround.
13250 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13251 workaround.
13252 (CHARBUFFERPROC_NAME): Remove.
13253 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13254 Python 2.4 workaround.
13255
13256 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13257
13258 * NEWS: Note minimum Python version.
13259
13260 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13261
13262 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13263 code from these functions. Remove corresponding ifdefs. Use
13264 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13265 Remove gotos and target of gotos.
13266 (infpy_search_memory): Likewise.
13267
13268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13269
13270 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13271 (hppa_gdbarch_init): Don't register deleted functions with
13272 gdbarch.
13273
13274 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13275
13276 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13277 (h8300_unwind_sp): Delete.
13278 (h8300_dummy_id): Delete.
13279 (h8300_gdbarch_init): Don't register deleted functions with
13280 gdbarch.
13281
13282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13283
13284 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13285 (ft32_unwind_pc): Delete.
13286 (ft32_unwind_sp): Delete.
13287 (ft32_gdbarch_init): Don't register deleted functions with
13288 gdbarch.
13289
13290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13293 (frv_unwind_pc): Delete.
13294 (frv_unwind_sp): Delete.
13295 (frv_gdbarch_init): Don't register deleted functions with
13296 gdbarch.
13297
13298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13299
13300 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13301 (riscv_unwind_pc): Delete.
13302 (riscv_unwind_sp): Delete.
13303 (riscv_gdbarch_init): Don't register deleted functions with
13304 gdbarch.
13305
13306 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13307
13308 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13309 (csky_unwind_pc): Delete.
13310 (csky_unwind_sp): Delete.
13311 (csky_gdbarch_init): Don't register deleted functions with
13312 gdbarch.
13313
13314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13315
13316 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13317 (cris_unwind_pc): Delete.
13318 (cris_unwind_sp): Delete.
13319 (cris_gdbarch_init): Don't register deleted functions with
13320 gdbarch.
13321
13322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13323
13324 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13325 (bfin_unwind_pc): Delete.
13326 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13327
13328 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13329
13330 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13331 (arm_unwind_pc): Delete.
13332 (arm_unwind_sp): Delete.
13333 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13334
13335 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13336
13337 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13338 (arc_unwind_pc): Delete.
13339 (arc_unwind_sp): Delete.
13340 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13341
13342 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13343
13344 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13345 (alpha_unwind_pc): Delete.
13346 (alpha_gdbarch_init): Don't register deleted functions with
13347 gdbarch.
13348
13349 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13350
13351 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13352 (aarch64_unwind_pc): Delete.
13353 (aarch64_unwind_sp): Delete.
13354 (aarch64_gdbarch_init): Don't register deleted functions with
13355 gdbarch.
13356
13357 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13358
13359 * gdbtypes.c (type_align): Don't consider static members when
13360 computing structure alignment.
13361
13362 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13363
13364 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13365 return 0 for other types.
13366 * arch-utils.c (default_type_align): Always return 0.
13367 * gdbarch.h: Regenerate.
13368 * gdbarch.sh (type_align): Extend comment.
13369 * gdbtypes.c (type_align): Add additional comments, always call
13370 gdbarch_type_align before applying the default rules.
13371 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13372 generic code will then apply a suitable default.
13373 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13374 types, return 0 for other types.
13375
13376 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13377
13378 * NEWS: Create a new section for the next release branch.
13379 Rename the section of the current branch, now that it has
13380 been cut.
13381
13382 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13383
13384 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13385 * version.in: Bump version to 8.3.50.DATE-git.
13386
13387 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13388
13389 * aix-thread.c (ptid_cmp): Remove unused variable.
13390 (get_signaled_thread): Likewise.
13391 (store_regs_user_thread): Likewise.
13392 (store_regs_kernel_thread): Likewise.
13393 (fetch_regs_kernel_thread): Remove shadowed variable.
13394
13395 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13396
13397 * features/riscv/32bit-cpu.xml: Add register numbers.
13398 * features/riscv/32bit-fpu.c: Regenerate.
13399 * features/riscv/32bit-fpu.xml: Add register numbers.
13400 * features/riscv/64bit-cpu.xml: Add register numbers.
13401 * features/riscv/64bit-fpu.c: Regenerate.
13402 * features/riscv/64bit-fpu.xml: Add register numbers.
13403
13404 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13405
13406 * NEWS: Mention two argument form of gdb.Value constructor.
13407 * python/py-value.c (convert_buffer_and_type_to_value): New
13408 function.
13409 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13410 Add support for handling an optional second argument. Call
13411 convert_buffer_and_type_to_value as appropriate.
13412 * python/python-internal.h (Py_buffer_deleter): New struct.
13413 (Py_buffer_up): New typedef.
13414
13415 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13416
13417 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13418 instead of releasing ownership.
13419
13420 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13421
13422 * dwarf2read.c (open_and_init_dwp_file): Call
13423 elf_numsections instead of bfd_count_sections to initialize
13424 dwp_file->num_sections.
13425
13426 2019-02-25 Tom Tromey <tromey@adacore.com>
13427
13428 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13429
13430 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13431
13432 * gcore.in: Add '--readnever' option when invoking GDB.
13433
13434 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13435
13436 * MAINTAINERS: Update my email address.
13437
13438 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13439
13440 * build-id.c (build_id_to_debug_bfd_1): New function.
13441 (build_id_to_debug_bfd): Look for separate debug file in
13442 sysroot.
13443
13444 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13445
13446 * gdbarch.sh: Update the copyright year range that is placed into
13447 generated files.
13448
13449 2019-02-22 Keith Seitz <keiths@redhat.com>
13450
13451 PR symtab/23853
13452 * linespec.c (create_sals_line_offset): Search for the default
13453 symtab's filename instead of its fullname.
13454
13455 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13456
13457 * NEWS: Update style defaults.
13458
13459 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13460
13461 * main.c (captured_main_1): Disable styling in batch mode.
13462
13463 2019-02-20 Tom Tromey <tom@tromey.com>
13464
13465 * symtab.c (symtab_symbol_info): Fix typos.
13466
13467 2019-02-20 Tom Tromey <tromey@adacore.com>
13468
13469 * findcmd.c (_initialize_mem_search): Use upper case for
13470 metasyntactic variables.
13471
13472 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13473
13474 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13475 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13476
13477 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13478
13479 * top.h (source_file_name): Change to std::string.
13480 * top.c (source_file_name): Likewise.
13481 (command_line_input): Adjust.
13482 * cli/cli-script.c (script_from_file): Adjust.
13483
13484 2019-02-19 Tom Tromey <tromey@adacore.com>
13485
13486 * ravenscar-thread.c
13487 (ravenscar_thread_target::update_thread_list): Don't call
13488 ada_build_task_list.
13489 * ada-lang.h (ada_build_task_list): Don't declare.
13490 * ada-tasks.c (struct ada_tasks_inferior_data)
13491 <task_list_valid_p>: Now bool.
13492 (read_known_tasks, ada_task_list_changed)
13493 (ada_tasks_invalidate_inferior_data): Update.
13494 (read_known_tasks_array): Return bool.
13495 (read_known_tasks_list): Likewise.
13496 (read_known_tasks): Return void.
13497 (ada_build_task_list): Now static.
13498
13499 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13500
13501 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13502 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13503
13504 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13505
13506 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13507 variant for ada_tasks_pspace_data_handle and
13508 ada_tasks_inferior_data_handle.
13509 (ada_tasks_pspace_data_cleanup): New function.
13510 (ada_tasks_inferior_data_cleanup): New function.
13511
13512 2019-02-17 Tom Tromey <tom@tromey.com>
13513
13514 * macrotab.h (macro_source_fullname): Return a std::string.
13515 * macrotab.c (macro_include, check_for_redefinition)
13516 (macro_undef, macro_lookup_definition, foreach_macro)
13517 (foreach_macro_in_scope): Update.
13518 (macro_source_fullname): Return a std::string.
13519 * macrocmd.c (show_pp_source_pos): Update.
13520
13521 2019-02-17 Tom Tromey <tom@tromey.com>
13522
13523 * macrocmd.c (show_pp_source_pos): Style the file names.
13524
13525 2019-02-17 Tom Tromey <tom@tromey.com>
13526
13527 PR tui/24197:
13528 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13529
13530 2019-02-17 Tom Tromey <tom@tromey.com>
13531
13532 * ada-lang.c (user_select_syms): Use filtered printing.
13533 * utils.c (wrap_style): New global.
13534 (desired_style): Remove.
13535 (emit_style_escape): Add stream parameter.
13536 (set_output_style, reset_terminal_style, prompt_for_continue):
13537 Update.
13538 (flush_wrap_buffer): Only flush gdb_stdout.
13539 (wrap_here): Set wrap_style.
13540 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13541 treat escape sequences as a character. Change when wrap buffer is
13542 flushed.
13543 (fputs_styled): Do not set the output style when the default is
13544 requested.
13545 * ui-style.h (struct ui_file_style) <is_default>: New method.
13546 * source.c (print_source_lines_base): Emit escape sequences in one
13547 piece.
13548
13549 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13550
13551 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13552 integers and enumeration types.
13553
13554 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13555
13556 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13557 instead of lookup_symbol_in_language
13558 (do_exact_match): New function.
13559 (ada_get_symbol_name_matcher): Return do_exact_match when
13560 doing a verbatim match.
13561
13562 2019-02-15 Tom Tromey <tromey@adacore.com>
13563
13564 * ravenscar-thread.c (ravenscar_thread_target::resume)
13565 (ravenscar_thread_target::wait): Special case wildcard requests.
13566
13567 2019-02-15 Tom Tromey <tromey@adacore.com>
13568
13569 * ravenscar-thread.c (base_ptid): Remove.
13570 (struct ravenscar_thread_target) <close>: New method.
13571 <m_base_ptid>: New member.
13572 <update_inferior_ptid, active_task, task_is_currently_active,
13573 runtime_initialized>: Declare methods.
13574 <ravenscar_thread_target>: Add constructor.
13575 (ravenscar_thread_target::task_is_currently_active)
13576 (ravenscar_thread_target::update_inferior_ptid)
13577 (ravenscar_runtime_initialized): Rename. Now methods.
13578 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13579 (ravenscar_thread_target::update_thread_list): Update.
13580 (ravenscar_thread_target::active_task): Now method.
13581 (ravenscar_thread_target::store_registers)
13582 (ravenscar_thread_target::prepare_to_store)
13583 (ravenscar_thread_target::prepare_to_store)
13584 (ravenscar_thread_target::mourn_inferior): Update.
13585 (ravenscar_inferior_created): Use "new" to create target.
13586 (ravenscar_thread_target::get_ada_task_ptid): Update.
13587 (_initialize_ravenscar): Don't initialize base_ptid.
13588 (ravenscar_ops): Remove global.
13589
13590 2019-02-15 Tom Tromey <tromey@adacore.com>
13591
13592 * target.h (push_target): Declare new overload.
13593 * target.c (push_target): New overload, taking an rvalue reference.
13594 * remote.c (remote_target::open_1): Use push_target overload.
13595 * corelow.c (core_target_open): Use push_target overload.
13596
13597 2019-02-15 Tom Tromey <tromey@adacore.com>
13598
13599 * ravenscar-thread.c (is_ravenscar_task)
13600 (ravenscar_task_is_currently_active): Return bool.
13601 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13602 (_initialize_ravenscar): Remove "(void)".
13603 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13604 Return bool.
13605
13606 2019-02-15 Tom Tromey <tromey@adacore.com>
13607
13608 * ravenscar-thread.c (ravenscar_runtime_initializer)
13609 (has_ravenscar_runtime, get_running_thread_id)
13610 (ravenscar_thread_target::resume): Fix indentation.
13611
13612 2019-02-15 Tom Tromey <tromey@adacore.com>
13613
13614 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13615 from ravenscar_arch_ops.
13616 (sparc_ravenscar_ops::fetch_registers)
13617 (sparc_ravenscar_ops::store_registers): Now methods.
13618 (sparc_ravenscar_prepare_to_store): Remove.
13619 (sparc_ravenscar_ops): Redefine.
13620 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13621 methods and destructor. Remove members.
13622 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13623 (ravenscar_thread_target::store_registers)
13624 (ravenscar_thread_target::prepare_to_store): Update.
13625 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13626 Remove.
13627 (struct ppc_ravenscar_powerpc_ops): Derive from
13628 ravenscar_arch_ops.
13629 (ppc_ravenscar_powerpc_ops::fetch_registers)
13630 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13631 (ppc_ravenscar_powerpc_ops): Redefine.
13632 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13633 (ppc_ravenscar_e500_ops::fetch_registers)
13634 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13635 (ppc_ravenscar_e500_ops): Redefine.
13636 * aarch64-ravenscar-thread.c
13637 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13638 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13639 (aarch64_ravenscar_fetch_registers)
13640 (aarch64_ravenscar_store_registers): Now methods.
13641 (aarch64_ravenscar_ops): Redefine.
13642
13643 2019-02-15 Tom Tromey <tromey@adacore.com>
13644
13645 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13646 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13647 (ravenscar_thread_target::stopped_by_watchpoint)
13648 (ravenscar_thread_target::stopped_data_address)
13649 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13650
13651 2019-02-15 Tom Tromey <tromey@adacore.com>
13652
13653 * ravenscar-thread.c: Fix some typos.
13654
13655 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13656 Tom Tromey <tromey@adacore.com>
13657
13658 * ada-lang.c (ada_exception_sal): Change addr_string to a
13659 std::string.
13660 (create_ada_exception_catchpoint): Update.
13661
13662 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13663 Tom Tromey <tromey@adacore.com>
13664
13665 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13666 (bp_location_ops): Remove.
13667 (base_breakpoint_allocate_location): Update.
13668 (free_bp_location): Update.
13669 * ada-lang.c (class ada_catchpoint_location)
13670 <ada_catchpoint_location>: Remove ops parameter.
13671 (ada_catchpoint_location_dtor): Remove.
13672 (ada_catchpoint_location_ops): Remove.
13673 (allocate_location_exception): Update.
13674 * breakpoint.h (struct bp_location_ops): Remove.
13675 (class bp_location) <bp_location>: Remove bp_location_ops
13676 parameter.
13677 <~bp_location>: Add destructor.
13678 <ops>: Remove.
13679
13680 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13681 Pedro Alves <palves@redhat.com>
13682
13683 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13684 'PATH_MAX'.
13685
13686 2019-02-14 David Michael <fedora.dm0@gmail.com>
13687 Samuel Thibault <samuel.thibault@gnu.org>
13688 Thomas Schwinge <thomas@codesourcery.com>
13689
13690 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13691 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13692
13693 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13694
13695 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13696 (check_empty): Use "const char *".
13697
13698 * gnu-nat.c (gnu_nat_target::detach): Instead of
13699 'detach_inferior (pid)' call
13700 'detach_inferior (find_inferior_pid (pid))'.
13701
13702 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13703 'nat/fork-inferior.o'.
13704 * gnu-nat.c: #include "nat/fork-inferior.h".
13705
13706 * gnu-nat.c (gnu_nat_target::detach): Instead of
13707 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13708 * gnu-nat.h: #include "inf-child.h".
13709 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13710 'i386_gnu_nat_target::fetch_registers'.
13711 (gnu_store_registers): Rename/move to
13712 'i386_gnu_nat_target::store_registers'.
13713
13714 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13715 * gnu-nat.h (mach_thread_info): New function.
13716 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13717
13718 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13719
13720 2019-02-14 Frederic Konrad <konrad@adacore.com>
13721
13722 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13723
13724 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13725
13726 * windows-nat.c (windows_add_thread): Add new parameter
13727 "main_thread_p" with default value set to false. Update
13728 function documentation as well as all callers.
13729 (windows_delete_thread): Likewise.
13730 (fake_create_process): Update call to windows_add_thread.
13731 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13732 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13733 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13734 call to windows_delete_thread.
13735
13736 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13737
13738 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13739
13740 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13741
13742 * symfile.c (find_separate_debug_file): Use canonical path of
13743 sysroot with child_path instead of gdb_sysroot if it is valid.
13744
13745 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13746
13747 * symfile.c (find_separate_debug_file): Use child_path to
13748 determine if an object file is under a sysroot.
13749
13750 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13751
13752 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13753 unittests/child-path-selftests.c.
13754 * common/pathstuff.c (child_path): New function.
13755 * common/pathstuff.h (child_path): New prototype.
13756 * unittests/child-path-selftests.c: New file.
13757
13758 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13759
13760 * symfile.c (find_separate_debug_file): Look for separate debug
13761 files in debug directories under the sysroot.
13762
13763 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13764
13765 * symtab.h (struct minimal_symbol data_p): New const method.
13766 (struct minimal_symbol text_p): Likewise.
13767 * symtab.c (output_source_filename): Use file name style
13768 to print file name.
13769 (print_symbol_info): Likewise.
13770 (print_msymbol_info): Use address style to print addresses.
13771 Use function name style to print executable text symbols.
13772 (expand_symtab_containing_pc): Use data_p.
13773 (find_pc_sect_compunit_symtab): Likewise.
13774
13775 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13776
13777 * breakpoint.c (describe_other_breakpoints): Use address style
13778 to print addresses.
13779 (say_where): Likewise.
13780
13781 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13782
13783 * ada-typeprint.c (print_func_type): Print function name
13784 style to print function name.
13785 * c-typeprint.c (c_print_type_1): Likewise.
13786
13787 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13788
13789 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13790 for execve.
13791
13792 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13793
13794 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13795 type_stack.
13796
13797 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13798
13799 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13800 TYPE_CODE_REF types.
13801
13802 2019-02-08 Jim Wilson <jimw@sifive.com>
13803
13804 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13805 (riscv_linux_fregset): New.
13806 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13807
13808 2019-02-07 Tom Tromey <tom@tromey.com>
13809
13810 * thread.c (thread_cancel_execution_command): Update.
13811 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13812 methods.
13813 (struct thread_fsm_ops): Remove.
13814 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13815 (thread_fsm_should_stop, thread_fsm_return_value)
13816 (thread_fsm_set_finished, thread_fsm_finished_p)
13817 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13818 Don't declare.
13819 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13820 * infrun.c (clear_proceed_status_thread)
13821 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13822 (print_stop_event): Update.
13823 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13824 Add constructor.
13825 (step_command_fsm_ops): Remove.
13826 (new_step_command_fsm): Remove.
13827 (step_1): Update.
13828 (step_command_fsm::should_stop): Rename from
13829 step_command_fsm_should_stop.
13830 (step_command_fsm::clean_up): Rename from
13831 step_command_fsm_clean_up.
13832 (step_command_fsm::do_async_reply_reason): Rename from
13833 step_command_fsm_async_reply_reason.
13834 (struct until_next_fsm): Inherit from thread_fsm. Add
13835 constructor.
13836 (until_next_fsm_ops): Remove.
13837 (new_until_next_fsm): Remove.
13838 (until_next_fsm::should_stop): Rename from
13839 until_next_fsm_should_stop.
13840 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13841 (until_next_fsm::do_async_reply_reason): Rename from
13842 until_next_fsm_async_reply_reason.
13843 (struct finish_command_fsm): Inherit from thread_fsm. Add
13844 constructor. Change type of breakpoint.
13845 (finish_command_fsm_ops): Remove.
13846 (new_finish_command_fsm): Remove.
13847 (finish_command_fsm::should_stop): Rename from
13848 finish_command_fsm_should_stop.
13849 (finish_command_fsm::clean_up): Rename from
13850 finish_command_fsm_clean_up.
13851 (finish_command_fsm::return_value): Rename from
13852 finish_command_fsm_return_value.
13853 (finish_command_fsm::do_async_reply_reason): Rename from
13854 finish_command_fsm_async_reply_reason.
13855 (finish_command): Update.
13856 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13857 Add constructor.
13858 (call_thread_fsm_ops): Remove.
13859 (call_thread_fsm::call_thread_fsm): Rename from
13860 new_call_thread_fsm.
13861 (call_thread_fsm::should_stop): Rename from
13862 call_thread_fsm_should_stop.
13863 (call_thread_fsm::should_notify_stop): Rename from
13864 call_thread_fsm_should_notify_stop.
13865 (run_inferior_call, call_function_by_hand_dummy): Update.
13866 * cli/cli-interp.c (should_print_stop_to_console): Update.
13867 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13868 Add constructor. Change type of location_breakpoint,
13869 caller_breakpoint.
13870 (until_break_fsm_ops): Remove.
13871 (new_until_break_fsm): Remove.
13872 (until_break_fsm::should_stop): Rename from
13873 until_break_fsm_should_stop.
13874 (until_break_fsm::clean_up): Rename from
13875 until_break_fsm_clean_up.
13876 (until_break_fsm::do_async_reply_reason): Rename from
13877 until_break_fsm_async_reply_reason.
13878 (until_break_command): Update.
13879 * thread-fsm.c: Remove.
13880 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13881
13882 2019-02-07 Tom Tromey <tom@tromey.com>
13883
13884 * yy-remap.h: Add include guard.
13885 * xtensa-tdep.h: Add include guard.
13886 * xcoffread.h: Rename include guard.
13887 * varobj-iter.h: Add include guard.
13888 * tui/tui.h: Rename include guard.
13889 * tui/tui-winsource.h: Rename include guard.
13890 * tui/tui-wingeneral.h: Rename include guard.
13891 * tui/tui-windata.h: Rename include guard.
13892 * tui/tui-win.h: Rename include guard.
13893 * tui/tui-stack.h: Rename include guard.
13894 * tui/tui-source.h: Rename include guard.
13895 * tui/tui-regs.h: Rename include guard.
13896 * tui/tui-out.h: Rename include guard.
13897 * tui/tui-layout.h: Rename include guard.
13898 * tui/tui-io.h: Rename include guard.
13899 * tui/tui-hooks.h: Rename include guard.
13900 * tui/tui-file.h: Rename include guard.
13901 * tui/tui-disasm.h: Rename include guard.
13902 * tui/tui-data.h: Rename include guard.
13903 * tui/tui-command.h: Rename include guard.
13904 * tic6x-tdep.h: Add include guard.
13905 * target/waitstatus.h: Rename include guard.
13906 * target/wait.h: Rename include guard.
13907 * target/target.h: Rename include guard.
13908 * target/resume.h: Rename include guard.
13909 * target-float.h: Rename include guard.
13910 * stabsread.h: Add include guard.
13911 * rs6000-tdep.h: Add include guard.
13912 * riscv-fbsd-tdep.h: Add include guard.
13913 * regformats/regdef.h: Rename include guard.
13914 * record.h: Rename include guard.
13915 * python/python.h: Rename include guard.
13916 * python/python-internal.h: Rename include guard.
13917 * python/py-stopevent.h: Rename include guard.
13918 * python/py-ref.h: Rename include guard.
13919 * python/py-record.h: Rename include guard.
13920 * python/py-record-full.h: Rename include guard.
13921 * python/py-record-btrace.h: Rename include guard.
13922 * python/py-instruction.h: Rename include guard.
13923 * python/py-events.h: Rename include guard.
13924 * python/py-event.h: Rename include guard.
13925 * procfs.h: Add include guard.
13926 * proc-utils.h: Add include guard.
13927 * p-lang.h: Add include guard.
13928 * or1k-tdep.h: Rename include guard.
13929 * observable.h: Rename include guard.
13930 * nto-tdep.h: Rename include guard.
13931 * nat/x86-linux.h: Rename include guard.
13932 * nat/x86-linux-dregs.h: Rename include guard.
13933 * nat/x86-gcc-cpuid.h: Add include guard.
13934 * nat/x86-dregs.h: Rename include guard.
13935 * nat/x86-cpuid.h: Rename include guard.
13936 * nat/ppc-linux.h: Rename include guard.
13937 * nat/mips-linux-watch.h: Rename include guard.
13938 * nat/linux-waitpid.h: Rename include guard.
13939 * nat/linux-ptrace.h: Rename include guard.
13940 * nat/linux-procfs.h: Rename include guard.
13941 * nat/linux-osdata.h: Rename include guard.
13942 * nat/linux-nat.h: Rename include guard.
13943 * nat/linux-namespaces.h: Rename include guard.
13944 * nat/linux-btrace.h: Rename include guard.
13945 * nat/glibc_thread_db.h: Rename include guard.
13946 * nat/gdb_thread_db.h: Rename include guard.
13947 * nat/gdb_ptrace.h: Rename include guard.
13948 * nat/fork-inferior.h: Rename include guard.
13949 * nat/amd64-linux-siginfo.h: Rename include guard.
13950 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13951 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13952 * nat/aarch64-linux.h: Rename include guard.
13953 * nat/aarch64-linux-hw-point.h: Rename include guard.
13954 * mn10300-tdep.h: Add include guard.
13955 * mips-linux-tdep.h: Add include guard.
13956 * mi/mi-parse.h: Rename include guard.
13957 * mi/mi-out.h: Rename include guard.
13958 * mi/mi-main.h: Rename include guard.
13959 * mi/mi-interp.h: Rename include guard.
13960 * mi/mi-getopt.h: Rename include guard.
13961 * mi/mi-console.h: Rename include guard.
13962 * mi/mi-common.h: Rename include guard.
13963 * mi/mi-cmds.h: Rename include guard.
13964 * mi/mi-cmd-break.h: Rename include guard.
13965 * m2-lang.h: Add include guard.
13966 * location.h: Rename include guard.
13967 * linux-record.h: Rename include guard.
13968 * linux-nat.h: Add include guard.
13969 * linux-fork.h: Add include guard.
13970 * i386-darwin-tdep.h: Rename include guard.
13971 * hppa-linux-offsets.h: Add include guard.
13972 * guile/guile.h: Rename include guard.
13973 * guile/guile-internal.h: Rename include guard.
13974 * gnu-nat.h: Rename include guard.
13975 * gdb-stabs.h: Rename include guard.
13976 * frv-tdep.h: Add include guard.
13977 * f-lang.h: Add include guard.
13978 * event-loop.h: Add include guard.
13979 * darwin-nat.h: Rename include guard.
13980 * cp-abi.h: Rename include guard.
13981 * config/sparc/nm-sol2.h: Rename include guard.
13982 * config/nm-nto.h: Rename include guard.
13983 * config/nm-linux.h: Add include guard.
13984 * config/i386/nm-i386gnu.h: Rename include guard.
13985 * config/djgpp/nl_types.h: Rename include guard.
13986 * config/djgpp/langinfo.h: Rename include guard.
13987 * compile/gcc-cp-plugin.h: Add include guard.
13988 * compile/gcc-c-plugin.h: Add include guard.
13989 * compile/compile.h: Rename include guard.
13990 * compile/compile-object-run.h: Rename include guard.
13991 * compile/compile-object-load.h: Rename include guard.
13992 * compile/compile-internal.h: Rename include guard.
13993 * compile/compile-cplus.h: Rename include guard.
13994 * compile/compile-c.h: Rename include guard.
13995 * common/xml-utils.h: Rename include guard.
13996 * common/x86-xstate.h: Rename include guard.
13997 * common/version.h: Rename include guard.
13998 * common/vec.h: Rename include guard.
13999 * common/tdesc.h: Rename include guard.
14000 * common/selftest.h: Rename include guard.
14001 * common/scoped_restore.h: Rename include guard.
14002 * common/scoped_mmap.h: Rename include guard.
14003 * common/scoped_fd.h: Rename include guard.
14004 * common/safe-iterator.h: Rename include guard.
14005 * common/run-time-clock.h: Rename include guard.
14006 * common/refcounted-object.h: Rename include guard.
14007 * common/queue.h: Rename include guard.
14008 * common/ptid.h: Rename include guard.
14009 * common/print-utils.h: Rename include guard.
14010 * common/preprocessor.h: Rename include guard.
14011 * common/pathstuff.h: Rename include guard.
14012 * common/observable.h: Rename include guard.
14013 * common/netstuff.h: Rename include guard.
14014 * common/job-control.h: Rename include guard.
14015 * common/host-defs.h: Rename include guard.
14016 * common/gdb_wait.h: Rename include guard.
14017 * common/gdb_vecs.h: Rename include guard.
14018 * common/gdb_unlinker.h: Rename include guard.
14019 * common/gdb_unique_ptr.h: Rename include guard.
14020 * common/gdb_tilde_expand.h: Rename include guard.
14021 * common/gdb_sys_time.h: Rename include guard.
14022 * common/gdb_string_view.h: Rename include guard.
14023 * common/gdb_splay_tree.h: Rename include guard.
14024 * common/gdb_setjmp.h: Rename include guard.
14025 * common/gdb_ref_ptr.h: Rename include guard.
14026 * common/gdb_optional.h: Rename include guard.
14027 * common/gdb_locale.h: Rename include guard.
14028 * common/gdb_assert.h: Rename include guard.
14029 * common/filtered-iterator.h: Rename include guard.
14030 * common/filestuff.h: Rename include guard.
14031 * common/fileio.h: Rename include guard.
14032 * common/environ.h: Rename include guard.
14033 * common/common-utils.h: Rename include guard.
14034 * common/common-types.h: Rename include guard.
14035 * common/common-regcache.h: Rename include guard.
14036 * common/common-inferior.h: Rename include guard.
14037 * common/common-gdbthread.h: Rename include guard.
14038 * common/common-exceptions.h: Rename include guard.
14039 * common/common-defs.h: Rename include guard.
14040 * common/common-debug.h: Rename include guard.
14041 * common/cleanups.h: Rename include guard.
14042 * common/buffer.h: Rename include guard.
14043 * common/btrace-common.h: Rename include guard.
14044 * common/break-common.h: Rename include guard.
14045 * cli/cli-utils.h: Rename include guard.
14046 * cli/cli-style.h: Rename include guard.
14047 * cli/cli-setshow.h: Rename include guard.
14048 * cli/cli-script.h: Rename include guard.
14049 * cli/cli-interp.h: Rename include guard.
14050 * cli/cli-decode.h: Rename include guard.
14051 * cli/cli-cmds.h: Rename include guard.
14052 * charset-list.h: Add include guard.
14053 * buildsym-legacy.h: Rename include guard.
14054 * bfin-tdep.h: Add include guard.
14055 * ax.h: Rename include guard.
14056 * arm-linux-tdep.h: Add include guard.
14057 * arm-fbsd-tdep.h: Add include guard.
14058 * arch/xtensa.h: Rename include guard.
14059 * arch/tic6x.h: Add include guard.
14060 * arch/i386.h: Add include guard.
14061 * arch/arm.h: Rename include guard.
14062 * arch/arm-linux.h: Rename include guard.
14063 * arch/arm-get-next-pcs.h: Rename include guard.
14064 * arch/amd64.h: Add include guard.
14065 * arch/aarch64-insn.h: Rename include guard.
14066 * arch-utils.h: Rename include guard.
14067 * annotate.h: Add include guard.
14068 * amd64-darwin-tdep.h: Rename include guard.
14069 * aarch64-linux-tdep.h: Add include guard.
14070 * aarch64-fbsd-tdep.h: Add include guard.
14071 * aarch32-linux-nat.h: Add include guard.
14072
14073 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14074
14075 * macrotab.c (macro_define_internal): New function that
14076 factorizes macro_define_object_internal and macro_define_function
14077 code.
14078 (macro_define_object_internal): Use macro_define_internal.
14079 (macro_define_function): Likewise.
14080
14081 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14082
14083 * macrocmd.c (extract_identifier): Return
14084 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14085 callers.
14086
14087 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14088
14089 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14090
14091 2019-02-05 Tom Tromey <tom@tromey.com>
14092
14093 * target.c (target_stack::unpush): Move assertion earlier.
14094
14095 2019-01-30 Tom Tromey <tom@tromey.com>
14096
14097 PR python/23615:
14098 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14099 (gdbpy_parse_and_eval): Likewise.
14100 * python/python-internal.h (gdbpy_allow_threads): New class.
14101
14102 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14103
14104 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14105 (aarch64_fbsd_fpregmap): Move earlier.
14106 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14107 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14108 instead of individual calls to trad_frame_set_reg_addr.
14109 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14110 earlier.
14111 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14112 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14113 instead of individual calls to trad_frame_set_reg_addr.
14114
14115 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14116
14117 * CONTRIBUTE: Replace contribution list with wiki link.
14118
14119 2019-01-25 Tom Tromey <tom@tromey.com>
14120
14121 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14122
14123 2019-01-25 Tom Tromey <tom@tromey.com>
14124
14125 * xtensa-linux-nat.c: Fix common/ includes.
14126 * xml-support.h: Fix common/ includes.
14127 * xml-support.c: Fix common/ includes.
14128 * x86-linux-nat.c: Fix common/ includes.
14129 * windows-nat.c: Fix common/ includes.
14130 * varobj.h: Fix common/ includes.
14131 * varobj.c: Fix common/ includes.
14132 * value.c: Fix common/ includes.
14133 * valops.c: Fix common/ includes.
14134 * utils.c: Fix common/ includes.
14135 * unittests/xml-utils-selftests.c: Fix common/ includes.
14136 * unittests/utils-selftests.c: Fix common/ includes.
14137 * unittests/unpack-selftests.c: Fix common/ includes.
14138 * unittests/tracepoint-selftests.c: Fix common/ includes.
14139 * unittests/style-selftests.c: Fix common/ includes.
14140 * unittests/string_view-selftests.c: Fix common/ includes.
14141 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14142 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14143 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14144 * unittests/rsp-low-selftests.c: Fix common/ includes.
14145 * unittests/parse-connection-spec-selftests.c: Fix common/
14146 includes.
14147 * unittests/optional-selftests.c: Fix common/ includes.
14148 * unittests/offset-type-selftests.c: Fix common/ includes.
14149 * unittests/observable-selftests.c: Fix common/ includes.
14150 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14151 * unittests/memrange-selftests.c: Fix common/ includes.
14152 * unittests/memory-map-selftests.c: Fix common/ includes.
14153 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14154 * unittests/function-view-selftests.c: Fix common/ includes.
14155 * unittests/environ-selftests.c: Fix common/ includes.
14156 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14157 * unittests/common-utils-selftests.c: Fix common/ includes.
14158 * unittests/cli-utils-selftests.c: Fix common/ includes.
14159 * unittests/array-view-selftests.c: Fix common/ includes.
14160 * ui-file.c: Fix common/ includes.
14161 * tui/tui-io.c: Fix common/ includes.
14162 * tracepoint.h: Fix common/ includes.
14163 * tracepoint.c: Fix common/ includes.
14164 * tracefile-tfile.c: Fix common/ includes.
14165 * top.h: Fix common/ includes.
14166 * top.c: Fix common/ includes.
14167 * thread.c: Fix common/ includes.
14168 * target/waitstatus.h: Fix common/ includes.
14169 * target/waitstatus.c: Fix common/ includes.
14170 * target.h: Fix common/ includes.
14171 * target.c: Fix common/ includes.
14172 * target-memory.c: Fix common/ includes.
14173 * target-descriptions.c: Fix common/ includes.
14174 * symtab.h: Fix common/ includes.
14175 * symfile.c: Fix common/ includes.
14176 * stap-probe.c: Fix common/ includes.
14177 * spu-linux-nat.c: Fix common/ includes.
14178 * sparc-nat.c: Fix common/ includes.
14179 * source.c: Fix common/ includes.
14180 * solib.c: Fix common/ includes.
14181 * solib-target.c: Fix common/ includes.
14182 * ser-unix.c: Fix common/ includes.
14183 * ser-tcp.c: Fix common/ includes.
14184 * ser-pipe.c: Fix common/ includes.
14185 * ser-base.c: Fix common/ includes.
14186 * selftest-arch.c: Fix common/ includes.
14187 * s12z-tdep.c: Fix common/ includes.
14188 * rust-exp.y: Fix common/ includes.
14189 * rs6000-aix-tdep.c: Fix common/ includes.
14190 * riscv-tdep.c: Fix common/ includes.
14191 * remote.c: Fix common/ includes.
14192 * remote-notif.h: Fix common/ includes.
14193 * remote-fileio.h: Fix common/ includes.
14194 * remote-fileio.c: Fix common/ includes.
14195 * regcache.h: Fix common/ includes.
14196 * regcache.c: Fix common/ includes.
14197 * record-btrace.c: Fix common/ includes.
14198 * python/python.c: Fix common/ includes.
14199 * python/py-type.c: Fix common/ includes.
14200 * python/py-inferior.c: Fix common/ includes.
14201 * progspace.h: Fix common/ includes.
14202 * producer.c: Fix common/ includes.
14203 * procfs.c: Fix common/ includes.
14204 * proc-api.c: Fix common/ includes.
14205 * printcmd.c: Fix common/ includes.
14206 * ppc-linux-nat.c: Fix common/ includes.
14207 * parser-defs.h: Fix common/ includes.
14208 * osdata.c: Fix common/ includes.
14209 * obsd-nat.c: Fix common/ includes.
14210 * nat/x86-linux.c: Fix common/ includes.
14211 * nat/x86-linux-dregs.c: Fix common/ includes.
14212 * nat/x86-dregs.h: Fix common/ includes.
14213 * nat/x86-dregs.c: Fix common/ includes.
14214 * nat/ppc-linux.c: Fix common/ includes.
14215 * nat/mips-linux-watch.h: Fix common/ includes.
14216 * nat/mips-linux-watch.c: Fix common/ includes.
14217 * nat/linux-waitpid.c: Fix common/ includes.
14218 * nat/linux-ptrace.h: Fix common/ includes.
14219 * nat/linux-ptrace.c: Fix common/ includes.
14220 * nat/linux-procfs.c: Fix common/ includes.
14221 * nat/linux-personality.c: Fix common/ includes.
14222 * nat/linux-osdata.c: Fix common/ includes.
14223 * nat/linux-namespaces.c: Fix common/ includes.
14224 * nat/linux-btrace.h: Fix common/ includes.
14225 * nat/linux-btrace.c: Fix common/ includes.
14226 * nat/fork-inferior.c: Fix common/ includes.
14227 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14228 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14229 * nat/aarch64-linux.c: Fix common/ includes.
14230 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14231 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14232 * namespace.h: Fix common/ includes.
14233 * mips-linux-tdep.c: Fix common/ includes.
14234 * minsyms.c: Fix common/ includes.
14235 * mi/mi-parse.h: Fix common/ includes.
14236 * mi/mi-main.c: Fix common/ includes.
14237 * mi/mi-cmd-env.c: Fix common/ includes.
14238 * memrange.h: Fix common/ includes.
14239 * memattr.c: Fix common/ includes.
14240 * maint.h: Fix common/ includes.
14241 * maint.c: Fix common/ includes.
14242 * main.c: Fix common/ includes.
14243 * machoread.c: Fix common/ includes.
14244 * location.c: Fix common/ includes.
14245 * linux-thread-db.c: Fix common/ includes.
14246 * linux-nat.c: Fix common/ includes.
14247 * linux-fork.c: Fix common/ includes.
14248 * inline-frame.c: Fix common/ includes.
14249 * infrun.c: Fix common/ includes.
14250 * inflow.c: Fix common/ includes.
14251 * inferior.h: Fix common/ includes.
14252 * inferior.c: Fix common/ includes.
14253 * infcmd.c: Fix common/ includes.
14254 * inf-ptrace.c: Fix common/ includes.
14255 * inf-child.c: Fix common/ includes.
14256 * ia64-linux-nat.c: Fix common/ includes.
14257 * i387-tdep.c: Fix common/ includes.
14258 * i386-tdep.c: Fix common/ includes.
14259 * i386-linux-tdep.c: Fix common/ includes.
14260 * i386-linux-nat.c: Fix common/ includes.
14261 * i386-go32-tdep.c: Fix common/ includes.
14262 * i386-fbsd-tdep.c: Fix common/ includes.
14263 * i386-fbsd-nat.c: Fix common/ includes.
14264 * guile/scm-type.c: Fix common/ includes.
14265 * guile/guile.c: Fix common/ includes.
14266 * go32-nat.c: Fix common/ includes.
14267 * gnu-nat.c: Fix common/ includes.
14268 * gdbthread.h: Fix common/ includes.
14269 * gdbarch-selftests.c: Fix common/ includes.
14270 * gdb_usleep.c: Fix common/ includes.
14271 * gdb_select.h: Fix common/ includes.
14272 * gdb_bfd.c: Fix common/ includes.
14273 * gcore.c: Fix common/ includes.
14274 * fork-child.c: Fix common/ includes.
14275 * findvar.c: Fix common/ includes.
14276 * fbsd-nat.c: Fix common/ includes.
14277 * event-top.c: Fix common/ includes.
14278 * event-loop.c: Fix common/ includes.
14279 * dwarf2read.c: Fix common/ includes.
14280 * dwarf2loc.c: Fix common/ includes.
14281 * dwarf2-frame.c: Fix common/ includes.
14282 * dwarf-index-cache.c: Fix common/ includes.
14283 * dtrace-probe.c: Fix common/ includes.
14284 * disasm-selftests.c: Fix common/ includes.
14285 * defs.h: Fix common/ includes.
14286 * csky-tdep.c: Fix common/ includes.
14287 * cp-valprint.c: Fix common/ includes.
14288 * cp-support.h: Fix common/ includes.
14289 * cp-support.c: Fix common/ includes.
14290 * corelow.c: Fix common/ includes.
14291 * completer.h: Fix common/ includes.
14292 * completer.c: Fix common/ includes.
14293 * compile/compile.c: Fix common/ includes.
14294 * compile/compile-loc2c.c: Fix common/ includes.
14295 * compile/compile-cplus-types.c: Fix common/ includes.
14296 * compile/compile-cplus-symbols.c: Fix common/ includes.
14297 * command.h: Fix common/ includes.
14298 * cli/cli-dump.c: Fix common/ includes.
14299 * cli/cli-cmds.c: Fix common/ includes.
14300 * charset.c: Fix common/ includes.
14301 * build-id.c: Fix common/ includes.
14302 * btrace.h: Fix common/ includes.
14303 * btrace.c: Fix common/ includes.
14304 * breakpoint.h: Fix common/ includes.
14305 * breakpoint.c: Fix common/ includes.
14306 * ax.h:
14307 (enum agent_op): Fix common/ includes.
14308 * ax-general.c (struct aop_map): Fix common/ includes.
14309 * ax-gdb.c: Fix common/ includes.
14310 * auxv.c: Fix common/ includes.
14311 * auto-load.c: Fix common/ includes.
14312 * arm-tdep.c: Fix common/ includes.
14313 * arch/riscv.c: Fix common/ includes.
14314 * arch/ppc-linux-common.c: Fix common/ includes.
14315 * arch/i386.c: Fix common/ includes.
14316 * arch/arm.c: Fix common/ includes.
14317 * arch/arm-linux.c: Fix common/ includes.
14318 * arch/arm-get-next-pcs.c: Fix common/ includes.
14319 * arch/amd64.c: Fix common/ includes.
14320 * arch/aarch64.c: Fix common/ includes.
14321 * arch/aarch64-insn.c: Fix common/ includes.
14322 * arch-utils.c: Fix common/ includes.
14323 * amd64-windows-tdep.c: Fix common/ includes.
14324 * amd64-tdep.c: Fix common/ includes.
14325 * amd64-sol2-tdep.c: Fix common/ includes.
14326 * amd64-obsd-tdep.c: Fix common/ includes.
14327 * amd64-nbsd-tdep.c: Fix common/ includes.
14328 * amd64-linux-tdep.c: Fix common/ includes.
14329 * amd64-linux-nat.c: Fix common/ includes.
14330 * amd64-fbsd-tdep.c: Fix common/ includes.
14331 * amd64-fbsd-nat.c: Fix common/ includes.
14332 * amd64-dicos-tdep.c: Fix common/ includes.
14333 * amd64-darwin-tdep.c: Fix common/ includes.
14334 * agent.c: Fix common/ includes.
14335 * ada-lang.h: Fix common/ includes.
14336 * ada-lang.c: Fix common/ includes.
14337 * aarch64-tdep.c: Fix common/ includes.
14338
14339 2019-01-25 Tom Tromey <tom@tromey.com>
14340
14341 * common/create-version.sh: Use common/version.h.
14342
14343 2019-01-24 Pedro Alves <palves@redhat.com>
14344
14345 * infrun.c (signal_stop, signal_print, signal_program)
14346 (signal_catch, signal_pass): Now arrays instead of pointers.
14347 (update_signals_program_target, do_target_resume)
14348 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14349 * linux-nat.c (linux_nat_target::pass_signals)
14350 (linux_nat_target::create_inferior, linux_nat_target::attach):
14351 Adjust.
14352 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14353 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14354 * procfs.c (procfs_target::pass_signals): Adjust.
14355 * record-full.c (record_full_target::resume): Adjust.
14356 * remote.c (remote_target::pass_signals)
14357 (remote_target::program_signals): Adjust.
14358 * target-debug.h (target_debug_print_signals): Now takes a
14359 gdb::array_view as parameter. Adjust.
14360 * target.h (target_ops) <pass_signals, program_signals>: Replace
14361 pointer and length parameters with gdb::array_view.
14362 (target_pass_signals, target_program_signals): Likewise.
14363 * target-delegates.c: Regenerate.
14364
14365 2019-01-24 Pedro Alves <palves@redhat.com>
14366
14367 * common/forward-scope-exit.h
14368 (forward_scope_exit::forward_scope_exit): Pass arguments to
14369 m_bind_function directly, instead of creating a std::bind and
14370 copying that.
14371
14372 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14373
14374 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14375 for static members.
14376 (pass_in_v_vfp_candidate): Likewise.
14377
14378 2019-01-23 Tom Tromey <tom@tromey.com>
14379 Pedro Alves <palves@redhat.com>
14380
14381 * regcache.c (class regcache_invalidator): Remove.
14382 (regcache::raw_write): Use make_scope_exit.
14383
14384 2019-01-23 Tom Tromey <tom@tromey.com>
14385
14386 * ui-out.h (class ui_out_emit_type): Update comment.
14387
14388 2019-01-23 Tom Tromey <tom@tromey.com>
14389
14390 * infrun.c (fetch_inferior_event): Update comment.
14391
14392 2019-01-23 Tom Tromey <tom@tromey.com>
14393 Pedro Alves <palves@redhat.com>
14394
14395 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14396 parameter.
14397 (fetch_inferior_event): Use SCOPE_EXIT.
14398
14399
14400 2019-01-23 Tom Tromey <tom@tromey.com>
14401 Pedro Alves <palves@redhat.com>
14402
14403 * infrun.c (disable_thread_events): Delete.
14404 (stop_all_threads): Use SCOPE_EXIT.
14405
14406 2019-01-23 Tom Tromey <tom@tromey.com>
14407 Pedro Alves <palves@redhat.com>
14408
14409 * symfile.c: Include forward-scope-exit.h.
14410 (clear_symtab_users_cleanup): Replace forward declaration with
14411 a FORWARD_SCOPE_EXIT.
14412 (syms_from_objfile_1): Use the forward_scope_exit and
14413 gdb::optional instead of cleanup_function.
14414 (reread_symbols): Use the forward_scope_exit instead of
14415 cleanup_function.
14416 (clear_symtab_users_cleanup): Remove function.
14417
14418 2019-01-23 Tom Tromey <tom@tromey.com>
14419 Pedro Alves <palves@redhat.com>
14420
14421 * linux-nat.c: Include scope-exit.h.
14422 (cleanup_target_stop): Remove.
14423 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14424 SCOPE_EXIT.
14425
14426 2019-01-23 Tom Tromey <tom@tromey.com>
14427 Pedro Alves <palves@redhat.com>
14428
14429 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14430 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14431
14432 2019-01-23 Tom Tromey <tom@tromey.com>
14433 Andrew Burgess <andrew.burgess@embecosm.com>
14434 Pedro Alves <palves@redhat.com>
14435
14436 * infrun.c (fetch_inferior_event): Use scope_exit.
14437 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14438 * top.c (execute_command): Use scope_exit.
14439 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14440 * utils.c (do_bpstat_clear_actions_cleanup)
14441 (make_bpstat_clear_actions_cleanup): Remove.
14442
14443 2019-01-23 Tom Tromey <tom@tromey.com>
14444 Pedro Alves <palves@redhat.com>
14445
14446 * infrun.c: Include "common/scope-exit.h"
14447 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14448 (wait_for_inferior): Use SCOPE_EXIT.
14449 (fetch_inferior_event): Use scope_exit.
14450
14451 2019-01-23 Tom Tromey <tom@tromey.com>
14452 Pedro Alves <palves@redhat.com>
14453
14454 * breakpoint.c (create_breakpoint): Remove cleanup.
14455
14456 2019-01-23 Tom Tromey <tom@tromey.com>
14457 Andrew Burgess <andrew.burgess@embecosm.com>
14458 Pedro Alves <palves@redhat.com>
14459
14460 2019-01-23 Pedro Alves <palves@redhat.com>
14461
14462 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14463
14464 2019-01-23 Pedro Alves <palves@redhat.com>
14465 Andrew Burgess <andrew.burgess@embecosm.com>
14466
14467 * gdbthread.h: Include "common/forward-scope-exit.h".
14468 (scoped_finish_thread_state): Redefine custom class in terms of
14469 forward_scope_exit.
14470
14471 2019-01-23 Pedro Alves <palves@redhat.com>
14472 Andrew Burgess <andrew.burgess@embecosm.com>
14473
14474 * common/forward-scope-exit.h: New file.
14475
14476 2019-01-23 Pedro Alves <palves@redhat.com>
14477 Andrew Burgess <andrew.burgess@embecosm.com>
14478 Tom Tromey <tom@tromey.com>
14479
14480 * common/scope-exit.h: New file.
14481
14482 2019-01-23 Pedro Alves <palves@redhat.com>
14483
14484 * common/preprocessor.h (ESC): Rename to ...
14485 (ESC_PARENS): ... this.
14486 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14487 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14488
14489 2019-01-23 Tom Tromey <tom@tromey.com>
14490
14491 * language.h (class scoped_switch_to_sym_language_if_auto):
14492 Initialize m_lang in both cases.
14493
14494 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14495
14496 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14497 with XCNEW.
14498
14499 2019-01-22 Tom Tromey <tom@tromey.com>
14500
14501 * corelow.c: Do not include sys/file.h.
14502
14503 2019-01-22 Tom Tromey <tom@tromey.com>
14504
14505 * tui/tui-wingeneral.h: Include gdb_curses.h.
14506
14507 2019-01-22 Tom Tromey <tom@tromey.com>
14508
14509 * source-cache.h (class source_cache) <get_source_lines,
14510 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14511
14512 2019-01-22 Tom Tromey <tom@tromey.com>
14513
14514 * remote-fileio.h (struct remote_target): Declare.
14515
14516 2019-01-22 Tom Tromey <tom@tromey.com>
14517
14518 * python/py-arch.c: Do not include py-ref.h.
14519 * python/py-bpevent.c: Do not include py-ref.h.
14520 * python/py-cmd.c: Do not include py-ref.h.
14521 * python/py-continueevent.c: Do not include py-ref.h.
14522 * python/py-event.h: Do not include py-ref.h.
14523 * python/py-evtregistry.c: Do not include py-ref.h.
14524 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14525 * python/py-frame.c: Do not include py-ref.h.
14526 * python/py-framefilter.c: Do not include py-ref.h.
14527 * python/py-function.c: Do not include py-ref.h.
14528 * python/py-infevents.c: Do not include py-ref.h.
14529 * python/py-linetable.c: Do not include py-ref.h.
14530 * python/py-objfile.c: Do not include py-ref.h.
14531 * python/py-param.c: Do not include py-ref.h.
14532 * python/py-prettyprint.c: Do not include py-ref.h.
14533 * python/py-progspace.c: Do not include py-ref.h.
14534 * python/py-symbol.c: Do not include py-ref.h.
14535 * python/py-symtab.c: Do not include py-ref.h.
14536 * python/py-type.c: Do not include py-ref.h.
14537 * python/py-unwind.c: Do not include py-ref.h.
14538 * python/py-utils.c: Do not include py-ref.h.
14539 * python/py-value.c: Do not include py-ref.h.
14540 * python/py-varobj.c: Do not include py-ref.h.
14541 * python/py-xmethods.c: Do not include py-ref.h.
14542 * python/python.c: Do not include py-ref.h.
14543 * varobj.c: Do not include py-ref.h.
14544
14545 2019-01-22 Tom Tromey <tom@tromey.com>
14546
14547 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14548 keyword for bcache.
14549
14550 2019-01-22 Tom Tromey <tom@tromey.com>
14551
14552 * compile/compile-cplus-types.c: Remove a comment by #include.
14553
14554 2019-01-22 Tom Tromey <tom@tromey.com>
14555
14556 * compile/gcc-c-plugin.h: Include compile-internal.h.
14557
14558 2019-01-22 Tom Tromey <tom@tromey.com>
14559
14560 * stabsread.c (EXTERN): Do not define.
14561 (symnum, next_symbol_text_func, processing_gcc_compilation)
14562 (within_function, global_sym_chain, global_stabs)
14563 (previous_stab_code, this_object_header_files)
14564 (n_this_object_header_files)
14565 (n_allocated_this_object_header_files): Define.
14566 * stabsread.h (EXTERN): Never define. Use "extern".
14567
14568 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14569
14570 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14571 history_value.
14572
14573 2019-01-21 Tom Tromey <tom@tromey.com>
14574
14575 * ui-out.c: Fix includes.
14576 * tui/tui-source.c: Fix includes.
14577 * target.c: Fix includes.
14578 * remote.c: Fix includes.
14579 * regcache.c: Fix includes.
14580 * python/py-block.c: Fix includes.
14581 * printcmd.c: Fix includes.
14582 * or1k-tdep.c: Fix includes.
14583 * mi/mi-main.c: Fix includes.
14584 * m32r-tdep.c: Fix includes.
14585 * csky-tdep.c: Fix includes.
14586 * compile/compile-cplus-types.c: Fix includes.
14587 * cli/cli-interp.c: Fix includes.
14588
14589 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14590
14591 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14592 for padding.
14593
14594 2019-01-16 Tom Tromey <tom@tromey.com>
14595
14596 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14597 earlier.
14598 (struct objfile) <msymbols_range>: Move from top level.
14599 <msymbols>: New method.
14600 (class objfile_msymbols): Remove.
14601 * symtab.c (default_collect_symbol_completion_matches_break_on):
14602 Update.
14603 * symmisc.c (dump_msymbols): Update.
14604 * stabsread.c (scan_file_globals): Update.
14605 * objc-lang.c (info_selectors_command, info_classes_command)
14606 (find_methods): Update.
14607 * minsyms.c (find_solib_trampoline_target): Update.
14608 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14609 * coffread.c (coff_symfile_read): Update.
14610 * ada-lang.c (ada_lookup_simple_minsym)
14611 (ada_collect_symbol_completion_matches): Update.
14612
14613 2019-01-16 Tom Tromey <tom@tromey.com>
14614
14615 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14616 type. Remove no-argument constructor.
14617 <iterator::operator++>: Simplify.
14618 <begin>: Update.
14619 <end>: Use minimal_symbol_count.
14620
14621 2019-01-16 Tom Tromey <tom@tromey.com>
14622
14623 * objfiles.h (struct objfile) <psymtabs>: New method.
14624 (class objfile_psymtabs): Remove.
14625 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14626 typedef.
14627 <range>: New method.
14628 (require_partial_symbols): Change return type.
14629 * psymtab.c (require_partial_symbols)
14630 (psym_expand_symtabs_matching): Update.
14631 * mdebugread.c (parse_partial_symbols): Update.
14632 * dbxread.c (dbx_end_psymtab): Update.
14633
14634 2019-01-15 Tom Tromey <tom@tromey.com>
14635
14636 * symtab.c (lookup_objfile_from_block)
14637 (lookup_symbol_in_objfile_symtabs)
14638 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14639 (find_line_symtab, info_sources_command)
14640 (default_collect_symbol_completion_matches_break_on)
14641 (make_source_files_completion_list): Update.
14642 * symmisc.c (print_objfile_statistics, dump_objfile)
14643 (maintenance_print_symbols, maintenance_info_symtabs)
14644 (maintenance_check_symtabs, maintenance_info_line_tables):
14645 Update.
14646 * source.c (select_source_symtab)
14647 (forget_cached_source_info_for_objfile): Update.
14648 * objfiles.h (class objfile_compunits): Remove.
14649 (struct objfile) <compunits_range>: New typedef.
14650 (compunits): New method.
14651 * objfiles.c (objfile_relocate1): Update.
14652 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14653 * maint.c (count_symtabs_and_blocks): Update.
14654 * linespec.c (iterate_over_all_matching_symtabs): Update.
14655 * cp-support.c (add_symbol_overload_list_qualified): Update.
14656 * coffread.c (coff_symtab_read): Update.
14657 * ada-lang.c (add_nonlocal_symbols)
14658 (ada_collect_symbol_completion_matches)
14659 (ada_add_global_exceptions): Update.
14660
14661 2019-01-15 Tom Tromey <tom@tromey.com>
14662
14663 * progspace.h (program_space) <objfiles_safe_range>: New
14664 typedef.
14665 <objfiles_safe>: New method.
14666 * objfiles.h (class all_objfiles_safe): Remove.
14667 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14668 * jit.c (jit_inferior_exit_hook): Update.
14669
14670 2019-01-17 Tom Tromey <tom@tromey.com>
14671
14672 * progspace.h (program_space) <objfiles_range>: New typedef.
14673 <objfiles>: New method.
14674 <objfiles_head>: Rename from objfiles.
14675 (object_files): Update.
14676 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14677 * guile/scm-pretty-print.c
14678 (ppscm_find_pretty_printer_from_objfiles): Update.
14679 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14680 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14681 Update.
14682 * python/py-progspace.c (pspy_get_objfiles): Update.
14683 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14684 Update.
14685 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14686 (objfpy_lookup_objfile_by_build_id): Update.
14687 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14688 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14689 Update.
14690 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14691 (expand_symtab_containing_pc, lookup_objfile_from_block)
14692 (lookup_static_symbol, basic_lookup_transparent_type)
14693 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14694 (find_line_symtab, info_sources_command)
14695 (default_collect_symbol_completion_matches_break_on)
14696 (make_source_files_completion_list, find_main_name): Update.
14697 * symmisc.c (print_symbol_bcache_statistics)
14698 (print_objfile_statistics, maintenance_print_symbols)
14699 (maintenance_print_msymbols, maintenance_print_objfiles)
14700 (maintenance_info_symtabs, maintenance_check_symtabs)
14701 (maintenance_expand_symtabs, maintenance_info_line_tables):
14702 Update.
14703 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14704 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14705 (map_overlay_command, unmap_overlay_command)
14706 (simple_overlay_update, expand_symtabs_matching)
14707 (map_symbol_filenames): Update.
14708 * symfile-debug.c (set_debug_symfile): Update.
14709 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14710 Update.
14711 * source.c (select_source_symtab, forget_cached_source_info):
14712 Update.
14713 * solib.c (solib_read_symbols): Update.
14714 * solib-spu.c (append_ocl_sos): Update.
14715 * psymtab.c (maintenance_print_psymbols)
14716 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14717 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14718 * printcmd.c (info_symbol_command): Update.
14719 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14720 Update.
14721 * objfiles.h (class all_objfiles): Remove.
14722 * objfiles.c (have_partial_symbols, have_full_symbols)
14723 (have_minimal_symbols, qsort_cmp, update_section_map)
14724 (shared_objfile_contains_address_p)
14725 (default_iterate_over_objfiles_in_search_order): Update.
14726 * objc-lang.c (info_selectors_command, info_classes_command)
14727 (find_methods): Update.
14728 * minsyms.c (find_solib_trampoline_target): Update.
14729 * maint.c (maintenance_info_sections)
14730 (maintenance_translate_address, count_symtabs_and_blocks):
14731 Update.
14732 * main.c (captured_main_1): Update.
14733 * linux-thread-db.c (try_thread_db_load_from_pdir)
14734 (has_libpthread): Update.
14735 * linespec.c (iterate_over_all_matching_symtabs)
14736 (search_minsyms_for_name): Update.
14737 * jit.c (jit_find_objf_with_entry_addr): Update.
14738 * hppa-tdep.c (find_unwind_entry)
14739 (hppa_lookup_stub_minimal_symbol): Update.
14740 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14741 Update.
14742 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14743 (elf_gnu_ifunc_resolve_by_got): Update.
14744 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14745 * dwarf-index-write.c (save_gdb_index_command): Update.
14746 * cp-support.c (add_symbol_overload_list_qualified): Update.
14747 * breakpoint.c (create_overlay_event_breakpoint)
14748 (create_longjmp_master_breakpoint)
14749 (create_std_terminate_master_breakpoint)
14750 (create_exception_master_breakpoint): Update.
14751 * blockframe.c (find_pc_partial_function): Update.
14752 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14753 (ada_collect_symbol_completion_matches)
14754 (ada_add_global_exceptions): Update.
14755
14756 2019-01-17 Tom Tromey <tom@tromey.com>
14757
14758 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14759 declare VEC.
14760 (solib_target_parse_libraries): Change return type.
14761 (library_list_start_segment, library_list_start_section)
14762 (library_list_end_library, library_list_start_library); Update.
14763 (solib_target_free_library_list): Remove.
14764 (solib_target_parse_libraries): Remove cleanup. Change return
14765 type.
14766 (solib_target_current_sos): Update.
14767
14768 2019-01-17 Tom Tromey <tromey@bapiya>
14769
14770 * valprint.c: Replace "the the" with "the".
14771 * symtab.c: Replace "the the" with "the".
14772 * solib.c: Replace "the the" with "the".
14773 * solib-dsbt.c: Replace "the the" with "the".
14774 * linespec.c: Replace "the the" with "the".
14775 * dwarf2loc.h: Replace "the the" with "the".
14776 * amd64-windows-tdep.c: Replace "the the" with "the".
14777 * aarch64-tdep.c: Replace "the the" with "the".
14778
14779 2019-01-16 Keith Seitz <keiths@redhat.com>
14780
14781 PR gdb/23773
14782 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14783 <builder>: Rename to ..
14784 <m_builder>: ... this and make private.
14785 (dwarf2_cu::get_builder): New method. Change all users of
14786 `builder' to use this method.
14787 (dwarf2_start_symtab): Move to ...
14788 (dwarf2_cu::start_symtab): ... here. Update all callers
14789 (setup_type_unit_groups): Move to ...
14790 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14791 callers.
14792 (dwarf2_cu::reset_builder): New method.
14793 (process_full_compunit, process_full_type_unit): Use
14794 dwarf2_cu::reset_builder.
14795 (follow_die_offset): Record the ancestor CU if it is different
14796 from the followed DIE's CU.
14797 (follow_die_sig_1): Likewise.
14798
14799 2019-01-15 Tom Tromey <tom@tromey.com>
14800
14801 * remote.c (class remote_state) <buf>: Now a char_vector.
14802 <buf_size>: Remove.
14803 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14804 parameter.
14805 (remote_target::getpkt_or_notif_sane_1)
14806 (remote_target::getpkt_sane)
14807 (remote_target::getpkt_or_notif_sane): Likewise.
14808 (class remote_target) <putpkt>: New overload.
14809 (remote_target::read_frame): Change type of "buf_p". Remove
14810 sizeof_p parameter.
14811 (packet_ok): New overload.
14812 (packet_check_result): New overload.
14813 Update all uses.
14814
14815 2019-01-14 Tom Tromey <tom@tromey.com>
14816
14817 * remote-notif.c (handle_notification, remote_notif_ack)
14818 (remote_notif_parse): Make "buf" const.
14819 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14820 const.
14821 (remote_notif_parse, remote_notif_ack, handle_notification):
14822 Likewise.
14823 * remote.c (remote_notif_stop_parse): Make "buf" const.
14824 (remote_target::remote_parse_stop_reply): Make "buf" const.
14825 (remote_notif_stop_ack): Make "buf" const.
14826
14827 2019-01-14 Tom Tromey <tom@tromey.com>
14828
14829 * remote.c (remote_console_output): Make parameter const.
14830
14831 2019-01-14 Tom Tromey <tom@tromey.com>
14832
14833 * target-debug.h (target_debug_print_signals): Constify.
14834 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14835 * procfs.c (procfs_target::pass_signals): Update.
14836 * linux-nat.c (linux_nat_target::pass_signals): Update.
14837 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14838 * target-delegates.c: Rebuild.
14839 * remote.c (remote_target::program_signals): Update.
14840 (remote_target::pass_signals): Update.
14841 * target.c (target_pass_signals): Constify argument.
14842 (target_program_signals): Likewise.
14843 * target.h (struct target_ops) <pass_signals, program_signals>:
14844 Constify argument.
14845 (target_pass_signals, target_program_signals): Constify argument.
14846
14847 2019-01-14 Tom Tromey <tom@tromey.com>
14848
14849 PR tui/28819:
14850 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14851
14852 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14853
14854 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14855 field.
14856 * rs6000-tdep.c: Include reggroups.h.
14857 (IS_V_ALIAS_PSEUDOREG): Define.
14858 (rs6000_register_name): Return names for the "vX" aliases.
14859 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14860 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14861 aliases. Call default_register_reggroup_p for all other
14862 pseudo-registers.
14863 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14864 New functions.
14865 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14866 Handle "vX" aliases.
14867 (v_alias_pseudo_register_collect): New function.
14868 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14869 (rs6000_gdbarch_init): Initialize "vX" aliases as
14870 pseudo-registers. Restore registration of
14871 rs6000_pseudo_register_reggroup_p with
14872 set_tdesc_pseudo_register_reggroup_p.
14873
14874 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14875
14876 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14877 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14878 set_gdbarch_num_pseudo_regs.
14879
14880 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14881
14882 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14883 Remove arg prefixname, add do_set and do_show.
14884 Add member functions set_list and show_list.
14885 * cli/cli-style.c (class cli_style_option): Update accordingly.
14886 (style_set_list): Move to file scope.
14887 (style_show_list): Likewise.
14888 (set_style): Call help_list.
14889 (show_style): Call cmd_show_list.
14890 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14891 Update to use the new macro.
14892
14893 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14894
14895 * ada-lang.c (_initialize_ada_language): Expand the help text
14896 for the "catch exception" command.
14897
14898 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14899
14900 * symtab.c (matching_obj_sections): Initialize obj,
14901 declare it closer to its usage.
14902
14903 2019-01-10 Tom Tromey <tom@tromey.com>
14904
14905 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14906 (basic_inf_threads_range): Remove.
14907 (inf_threads_range, inf_non_exited_threads_range)
14908 (safe_inf_threads_range): Use next_adapter.
14909
14910 2019-01-10 Keith Seitz <keiths@redhat.com>
14911
14912 PR gdb/23712
14913 PR symtab/23010
14914 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14915 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14916
14917 2019-01-10 Keith Seitz <keiths@redhat.com>
14918
14919 PR gdb/23712
14920 PR symtab/23010
14921 * dictionary.c (pending_to_vector): Remove.
14922 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14923 Remove _1 suffix, replacing functions of the same name. Update
14924 all callers.
14925 (dict_create_hashed, dict_create_hashed_expandable)
14926 (dict_create_linear, dict_create_linear_expandable, dict_free)
14927 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14928 Make functions static.
14929
14930 2019-01-10 Keith Seitz <keiths@redhat.com>
14931
14932 PR gdb/23712
14933 PR symtab/23010
14934 * dictionary.h (struct dictionary): Replace declaration with
14935 multidictionary.
14936 (dict_create_hashed, dict_create_hashed_expandable)
14937 (dict_create_linear, dict_create_linear_expandable)
14938 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14939 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14940 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14941 taking multidictionary argument.
14942 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14943 * block.h (struct block) <dict>: Change to multidictionary
14944 and rename `multidict'.
14945 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14946 symmisc.c: Update all dictionary references to multidictionary.
14947
14948 2019-01-10 Keith Seitz <keiths@redhat.com>
14949
14950 PR gdb/23712
14951 PR symtab/23010
14952 * dictionary.c: Include unordered_map.
14953 (pending_to_vector): New function.
14954 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14955 Rewrite the non-"_1" functions to take vector instead
14956 of linked list.
14957 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14958 "new" _1 versions of the same name.
14959 (multidictionary): Define.
14960 (std::hash<enum language): New definition.
14961 (collate_pending_symbols_by_language, mdict_create_hashed)
14962 (mdict_create_hashed_expandable, mdict_create_linear)
14963 (mdict_create_linear_expandable, mdict_free)
14964 (find_language_dictionary, create_new_language_dictionary)
14965 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14966 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14967 (mdict_size, mdict_empty): New functions.
14968 * dictionary.h (mdict_iterator): Define.
14969
14970 2019-01-10 Pedro Alves <palves@redhat.com>
14971
14972 * breakpoint.c (read_uploaded_action)
14973 (create_tracepoint_from_upload): Adjust to use
14974 gdb::unique_xmalloc_ptr.
14975 * ctf.c (ctf_write_uploaded_tp):
14976 (SET_ARRAY_FIELD): Use emplace_back.
14977 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14978 * tracefile-tfile.c (tfile_write_uploaded_tp):
14979 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14980 gdb::unique_xmalloc_ptr.
14981 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14982 at_string, cond_string, cmd_strings>: Replace char pointers
14983 with gdb::unique_xmalloc_ptr.
14984
14985 2019-01-10 Pedro Alves <palves@redhat.com>
14986
14987 * solib-target.c (library_list_start_library): Don't xstrdup name.
14988
14989 2019-01-10 Pedro Alves <palves@redhat.com>
14990
14991 * mdebugread.c (parse_partial_symbols): Use
14992 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14993
14994 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14995
14996 * linux-fork.c (scoped_switch_fork_info)
14997 <~scoped_switch_fork_info>: Fix incorrect variable name.
14998
14999 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15000
15001 * linux-fork.c (scoped_switch_fork_info)
15002 <scoped_switch_fork_info>: Make explicit.
15003 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15004
15005 2019-01-10 Tom Tromey <tom@tromey.com>
15006
15007 * objfiles.h (objfile::reset_psymtabs): Update.
15008 * objfiles.c (objfile::objfile): Update.
15009 * psymtab.h (psymtab_storage::obstack): Update.
15010 (psymtab_storage::m_obstack): Use gdb::optional.
15011 (class psymtab_storage): Update comment. Remove objfile
15012 parameter.
15013 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15014
15015 2019-01-10 Tom Tromey <tom@tromey.com>
15016
15017 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15018 <free_psymtabs>: Now private.
15019 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15020 (allocate_psymtab): Use new method.
15021
15022 2019-01-10 Tom Tromey <tom@tromey.com>
15023
15024 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15025 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15026 * mdebugread.c (parse_partial_symbols): Use
15027 allocate_dependencies.
15028 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15029 allocate_dependencies.
15030 (process_psymtab_comp_unit_reader)
15031 (build_type_psymtab_dependencies): Likewise.
15032 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15033
15034 2019-01-10 Tom Tromey <tom@tromey.com>
15035
15036 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15037 PSYMBOL_SET_LANGUAGE.
15038 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15039
15040 2019-01-10 Tom Tromey <tom@tromey.com>
15041
15042 * psymtab.h (psymtab_storage::obstack): New method.
15043 <m_obstack>: Rename from obstack; now private.
15044 * psymtab.c (psymtab_storage): Update.
15045 * dwarf2read.c (create_addrmap_from_index)
15046 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15047 Update.
15048
15049 2019-01-10 Tom Tromey <tom@tromey.com>
15050
15051 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15052 * objfiles.h (objfile::reset_psymtabs): New method.
15053
15054 2019-01-10 Tom Tromey <tom@tromey.com>
15055
15056 * symmisc.c (print_symbol_bcache_statistics): Update.
15057 (print_objfile_statistics): Update.
15058 * symfile.c (reread_symbols): Update.
15059 * psymtab.h (class psymtab_storage): New.
15060 * psymtab.c (psymtab_storage): New constructor.
15061 (~psymtab_storage): New destructor.
15062 (require_partial_symbols): Update.
15063 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15064 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15065 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15066 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15067 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15068 (start_psymtab_common, end_psymtab_common)
15069 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15070 (allocate_psymtab): Update.
15071 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15072 Update.
15073 (dump_psymtab_addrmap, maintenance_print_psymbols)
15074 (maintenance_check_psymtabs): Update.
15075 (class objfile_psymtabs): Move to objfiles.h.
15076 * psympriv.h (discard_psymtab): Now inline.
15077 (psymtab_discarder::psymtab_discarder): Update.
15078 (psymtab_discarder::~psymtab_discarder): Update.
15079 (ALL_OBJFILE_PSYMTABS): Rewrite.
15080 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15081 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15082 Remove fields.
15083 <partial_symtabs>: New field.
15084 (class objfile_psymtabs): Move from psymtab.h. Update.
15085 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15086 psymbol_cache.
15087 (objfile::~objfile): Don't destroy psymbol_cache.
15088 * mdebugread.c (parse_partial_symbols): Update.
15089 * dwarf2read.c (create_addrmap_from_index)
15090 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15091 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15092 (add_partial_subprogram, dwarf2_ranges_read): Update.
15093 * dwarf-index-write.c (write_address_map)
15094 (write_one_signatured_type, recursively_write_psymbols)
15095 (class debug_names, class debug_names, write_psymtabs_to_index):
15096 Update.
15097
15098 2019-01-10 Tom Tromey <tom@tromey.com>
15099
15100 * symtab.h (SYMBOL_SET_NAMES): Update.
15101 (symbol_set_names): Update.
15102 (MSYMBOL_SET_NAMES): Update.
15103 * symtab.c (symbol_set_names): Change argument to be an
15104 objfile_per_bfd_storage.
15105 * psymtab.c (add_psymbol_to_bcache): Update.
15106 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15107
15108 2019-01-10 Tom Tromey <tom@tromey.com>
15109
15110 * symtab.c (create_demangled_names_hash): Change argument to be an
15111 objfile_per_bfd_storage.
15112 (symbol_set_names): Update.
15113
15114 2019-01-10 Tom Tromey <tom@tromey.com>
15115
15116 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15117 init_psymbol_list.
15118 * psymtab.c (init_psymbol_list): Do nothing if already called.
15119 * psympriv.h (init_psymbol_list): Add comment.
15120 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15121 init_psymbol_list.
15122 * dbxread.c (dbx_symfile_read): Unconditionally call
15123 init_psymbol_list.
15124
15125 2019-01-10 Tom Tromey <tom@tromey.com>
15126
15127 * xcoffread.c (scan_xcoff_symtab): Update.
15128 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15129 "where".
15130 * mdebugread.c (parse_partial_symbols)
15131 (handle_psymbol_enumerators): Update.
15132 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15133 * dbxread.c (read_dbx_symtab): Update.
15134 * psympriv.h (psymbol_placement): New enum.
15135 (add_psymbol_to_list): Update.
15136
15137 2019-01-10 Tom Tromey <tom@tromey.com>
15138
15139 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15140 static_psymbols parameters.
15141 (scan_xcoff_symtab): Update.
15142 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15143 static_psymbols parameters.
15144 * psympriv.h (start_psymtab_common): Update.
15145 * mdebugread.c (parse_partial_symbols): Update.
15146 * dwarf2read.c (create_partial_symtab): Update.
15147 * dbxread.c (read_dbx_symtab): Update.
15148 (start_psymtab): Remove global_psymbols and static_psymbols
15149 parameters.
15150
15151 2019-01-10 Tom Tromey <tom@tromey.com>
15152
15153 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15154 * psymtab.c (allocate_psymtab): Add comment.
15155 * psympriv.h (allocate_psymtab): Add comment.
15156 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15157 initializations.
15158 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15159
15160 2019-01-10 Tom Tromey <tom@tromey.com>
15161
15162 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15163 Don't declare.
15164 * mipsread.c: Include mdebugread.h.
15165 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15166 Declare.
15167 * elfread.c: Include mdebugread.h.
15168
15169 2019-01-09 Tom Tromey <tom@tromey.com>
15170
15171 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15172 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15173 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15174 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15175 (psym_lookup_symbol, psym_find_last_source_symtab)
15176 (psym_forget_cached_source_info, psym_print_stats)
15177 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15178 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15179 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15180 (psym_find_compunit_symtab_by_address)
15181 (maintenance_print_psymbols, maintenance_info_psymtabs)
15182 (maintenance_check_psymtabs): Use ranged for.
15183 * psymtab.h (class objfile_psymtabs): New.
15184 (require_partial_symbols): Return objfile_psymtabs.
15185 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15186
15187 2019-01-09 Tom Tromey <tom@tromey.com>
15188
15189 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15190 (find_pc_mapped_section, list_overlays_command)
15191 (map_overlay_command, unmap_overlay_command)
15192 (simple_overlay_update): Use all_objfiles.
15193 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15194 * printcmd.c (info_symbol_command): Use all_objfiles.
15195 * objfiles.h (ALL_OBJSECTIONS): Remove.
15196 * maint.c (maintenance_translate_address): Use all_objfiles.
15197 * gcore.c (gcore_create_callback): Use all_objfiles.
15198 (objfile_find_memory_regions): Likewise.
15199
15200 2019-01-09 Tom Tromey <tom@tromey.com>
15201
15202 * symtab.c (find_line_symtab, info_sources_command)
15203 (make_source_files_completion_list): Use objfile_compunits.
15204 * source.c (select_source_symtab): Use objfile_compunits.
15205 * objfiles.h (struct objfile): Update comment.
15206 (ALL_OBJFILES): Remove.
15207 (ALL_FILETABS): Remove.
15208 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15209 objfile_compunits.
15210
15211 2019-01-09 Tom Tromey <tom@tromey.com>
15212
15213 * symmisc.c (print_objfile_statistics, dump_objfile)
15214 (maintenance_print_symbols): Use compunit_filetabs.
15215 * source.c (forget_cached_source_info_for_objfile): Use
15216 compunit_filetabs.
15217 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15218 (ALL_FILETABS): Use compunit_filetabs.
15219 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15220 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15221
15222 2019-01-09 Tom Tromey <tom@tromey.com>
15223
15224 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15225 (compunit_filetabs): New.
15226 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15227 compunit_filetabs.
15228 (info_sources_command, make_source_files_completion_list): Remove
15229 declaration.
15230 * symmisc.c (print_objfile_statistics, dump_objfile)
15231 (maintenance_print_symbols): Remove declaration.
15232 (maintenance_info_symtabs): Use compunit_filetabs.
15233 (maintenance_info_line_tables): Likewise.
15234 * source.c (select_source_symtab): Change local variable name.
15235 (forget_cached_source_info_for_objfile): Remove declaration.
15236 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15237 * objfiles.c (objfile_relocate1): Remove declaration.
15238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15239 declaration.
15240 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15241 * coffread.c (coff_symtab_read): Remove declaration.
15242 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15243 compunit_filetabs.
15244
15245 2019-01-09 Tom Tromey <tom@tromey.com>
15246
15247 * symtab.c (lookup_objfile_from_block)
15248 (find_pc_sect_compunit_symtab, search_symbols)
15249 (default_collect_symbol_completion_matches_break_on): Use
15250 objfile_compunits.
15251 * objfiles.h (ALL_COMPUNITS): Remove.
15252 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15253 * cp-support.c (add_symbol_overload_list_qualified): Use
15254 objfile_compunits.
15255 * ada-lang.c (ada_collect_symbol_completion_matches)
15256 (ada_add_global_exceptions): Use objfile_compunits.
15257
15258 2019-01-09 Tom Tromey <tom@tromey.com>
15259
15260 * source.c (select_source_symtab)
15261 (forget_cached_source_info_for_objfile): Remove declaration.
15262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15263 declaration.
15264 * maint.c (count_symtabs_and_blocks): Remove declaration.
15265 * cp-support.c (add_symbol_overload_list_qualified): Remove
15266 declaration.
15267 * coffread.c (coff_symtab_read): Remove declaration.
15268 * symtab.c (lookup_symbol_in_objfile_symtabs)
15269 (basic_lookup_transparent_type_1): Use objfile_compunits.
15270 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15271 (info_sources_command, search_symbols)
15272 (default_collect_symbol_completion_matches_break_on)
15273 (make_source_files_completion_list): Remove declaration.
15274 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15275 (ada_collect_symbol_completion_matches)
15276 (ada_add_global_exceptions): Remove declaration.
15277 * linespec.c (iterate_over_all_matching_symtabs): Use
15278 objfile_compunits.
15279 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15280 (class objfile_compunits): New.
15281 (ALL_COMPUNITS): Use objfile_compunits.
15282 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15283 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15284 objfile_compunits.
15285 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15286
15287 2019-01-09 Tom Tromey <tom@tromey.com>
15288
15289 * symtab.c (search_symbols)
15290 (default_collect_symbol_completion_matches_break_on): Use
15291 objfile_msymbols.
15292 * ada-lang.c (ada_lookup_simple_minsym)
15293 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15294 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15295 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15296 objfile_msymbols.
15297 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15298 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15299 * objc-lang.c (find_methods): Use objfile_msymbols.
15300 (info_selectors_command, info_classes_command): Likewise.
15301 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15302 * objfiles.h (class objfile_msymbols): New.
15303 (ALL_OBJFILE_MSYMBOLS): Remove.
15304 (ALL_MSYMBOLS): Remove.
15305
15306 2019-01-09 Tom Tromey <tom@tromey.com>
15307
15308 * common/next-iterator.h (next_adapter): Add Iterator template
15309 parameter.
15310 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15311 (class all_objfiles_safe): New.
15312 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15313 * objfiles.c (put_objfile_before): Update comment.
15314 (add_separate_debug_objfile): Likewise.
15315 (free_all_objfiles): Use all_objfiles_safe.
15316 (objfile_purge_solibs): Likewise.
15317
15318 2019-01-09 Tom Tromey <tom@tromey.com>
15319
15320 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15321 (expand_symtab_containing_pc, lookup_static_symbol)
15322 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15323 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15324 all_objfiles.
15325 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15326 * breakpoint.c (create_overlay_event_breakpoint)
15327 (create_longjmp_master_breakpoint)
15328 (create_std_terminate_master_breakpoint)
15329 (create_exception_master_breakpoint): Use all_objfiles.
15330 * linux-thread-db.c (try_thread_db_load_from_pdir)
15331 (has_libpthread): Use all_objfiles.
15332 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15333 * linespec.c (iterate_over_all_matching_symtabs)
15334 (search_minsyms_for_name): Use all_objfiles.
15335 * maint.c (maintenance_info_sections): Use all_objfiles.
15336 * main.c (captured_main_1): Use all_objfiles.
15337 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15338 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15339 * guile/scm-pretty-print.c
15340 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15341 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15342 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15343 (maintenance_print_msymbols): Use all_objfiles.
15344 * source.c (select_source_symtab): Use all_objfiles.
15345 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15346 * symfile.c (remove_symbol_file_command)
15347 (expand_symtabs_matching, map_symbol_filenames): Use
15348 all_objfiles.
15349 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15350 all_objfiles.
15351 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15352 * objc-lang.c (find_methods): Use all_objfiles.
15353 * objfiles.c (have_partial_symbols, have_full_symbols)
15354 (have_minimal_symbols, qsort_cmp)
15355 (default_iterate_over_objfiles_in_search_order): Use
15356 all_objfiles.
15357 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15358 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15359 (maintenance_check_psymtabs): Use all_objfiles.
15360 (ALL_PSYMTABS): Remove.
15361 * compile/compile-object-run.c (do_module_cleanup): Use
15362 all_objfiles.
15363 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15364 * cp-support.c (add_symbol_overload_list_qualified): Use
15365 all_objfiles.
15366 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15367 Use all_objfiles.
15368 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15369 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15370 all_objfiles.
15371 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15372 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15373 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15374 Uses all_objfiles.
15375 * solib.c (solib_read_symbols): Use all_objfiles
15376
15377 2019-01-09 Tom Tromey <tom@tromey.com>
15378
15379 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15380 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15381 all_objfiles.
15382 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15383 * symmisc.c (print_symbol_bcache_statistics)
15384 (print_objfile_statistics, maintenance_print_objfiles)
15385 (maintenance_info_symtabs, maintenance_check_symtabs)
15386 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15387 all_objfiles.
15388 * source.c (forget_cached_source_info): Use all_objfiles.
15389 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15390 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15391 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15392 * objfiles.c (update_section_map): Use all_objfiles.
15393 (shared_objfile_contains_address_p): Likewise.
15394 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15395 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15396
15397 2019-01-09 Tom Tromey <tom@tromey.com>
15398
15399 * common/next-iterator.h: New file.
15400 * objfiles.h (class all_objfiles): New.
15401 (struct objfile_iterator): New.
15402
15403 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15404
15405 * NEWS: Move the description of the changed "frame", "select-frame",
15406 and "info frame" commands to the Changed commands section.
15407
15408 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15409
15410 * gdbtypes.c (check_stub_method_group): Remove handling of old
15411 mangling schemes.
15412 * linespec.c (find_methods): Likewise.
15413 * stabsread.c (read_member_functions): Likewise.
15414 * valops.c (search_struct_method): Likewise.
15415 (value_struct_elt_for_reference): Likewise.
15416 * NEWS: Mention this change.
15417
15418 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15419
15420 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15421 print_source_lines.
15422 * source.c (print_source_lines_base): Update line number check.
15423 (print_source_lines): New function.
15424 (source_lines_range::source_lines_range): New function.
15425 * source.h (class source_lines_range): New class.
15426 (print_source_lines): New declaration.
15427
15428 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15429
15430 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15431
15432 2019-01-08 Tom Tromey <tom@tromey.com>
15433 Simon Marchi <simon.marchi@ericsson.com>
15434
15435 PR gdb/24060
15436 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15437 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15438 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15439 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15440 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15441 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15442
15443 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15444
15445 * source.c (select_source_symtab): Move header comment to
15446 declaration in source.h.
15447 (forget_cached_source_info_for_objfile): Likewise.
15448 (forget_cached_source_info): Likewise.
15449 (identify_source_line): Likewise.
15450 * source.h (identify_source_line): Move declaration from symtab.h
15451 and add comment from source.c
15452 (print_source_lines): Likewise.
15453 (forget_cached_source_info_for_objfile): Likewise.
15454 (forget_cached_source_info): Likewise.
15455 (select_source_symtab): Likewise.
15456 (enum print_source_lines_flag): Move definition from symtab.h.
15457 * symtab.h (identify_source_line): Move declaration to source.h.
15458 (print_source_lines): Likewise.
15459 (forget_cached_source_info_for_objfile): Likewise.
15460 (forget_cached_source_info): Likewise.
15461 (select_source_symtab): Likewise.
15462 (enum print_source_lines_flag): Move definition to source.h.
15463 * tui/tui-hooks.c: Add 'source.h' include.
15464
15465 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15466
15467 * source.c (print_source_lines_base): Handle requests to print
15468 reverse line number sequences, and guard against empty lines
15469 string.
15470
15471 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15472
15473 * source.c (print_source_lines_base): Fix skip of '\r' if next
15474 character is '\n'.
15475
15476 2019-01-06 Tom Tromey <tom@tromey.com>
15477
15478 * c-exp.y (struct c_parse_state) <macro_original_text,
15479 expansion_obstack>: New member.
15480 (macro_original_text, expansion_obstack): Remove globals.
15481 (scan_macro_expansion, scanning_macro_expansion)
15482 (finished_macro_expansion): Update.
15483 (scan_macro_cleanup): Remove.
15484 (yylex, c_parse): Update.
15485
15486 2019-01-06 Tom Tromey <tom@tromey.com>
15487
15488 * c-exp.y (struct c_parse_state) <strings>: New member.
15489 (operator_stoken): Update.
15490
15491 2019-01-06 Tom Tromey <tom@tromey.com>
15492
15493 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15494 (union type_stack_elt) <typelist_val>: Now a pointer to
15495 std::vector.
15496 (type_stack_cleanup): Don't declare.
15497 (push_typelist): Update.
15498 * parse.c (pop_typelist): Return a std::vector.
15499 (push_typelist): Take a std::vector.
15500 (follow_types): Update. Do not free args.
15501 (type_stack_cleanup): Remove.
15502 * c-exp.y (struct c_parse_state): New.
15503 (cpstate): New global.
15504 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15505 (nonempty_typelist): Update.
15506 (func_mod): Create a new vector.
15507 (c_parse): Create a c_parse_state.
15508 (check_parameter_typelist): Do not delete params.
15509 (function_method): Update. Do not delete type_list.
15510
15511 2019-01-06 Tom Tromey <tom@tromey.com>
15512
15513 PR gdb/28155:
15514 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15515 check_typedef.
15516 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15517 (print_return_value): Likewise.
15518
15519 2019-01-05 Tom Tromey <tom@tromey.com>
15520
15521 * contrib/cleanup_check.py: Remove.
15522 * contrib/gcc-with-excheck: Remove.
15523 * contrib/exsummary.py: Remove.
15524 * contrib/excheck.py: Remove.
15525
15526 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15527
15528 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15529 NULL. Initialize tpprev to NULL instead of assigning it
15530 to NULL on the next statement.
15531 * windows-nat.c (windows_delete_thread): Remove check for
15532 main_thread_id before printing thread exit notifications.
15533 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15534 Remove thread ID check against main_thread_id.
15535 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15536 windows_delete_thread.
15537 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15538
15539 2019-01-04 Tom Tromey <tom@tromey.com>
15540
15541 * compile/compile.c (_initialize_compile): Use upper case for
15542 metasyntactic variables.
15543 * symmisc.c (_initialize_symmisc): Use upper case for
15544 metasyntactic variables.
15545 * psymtab.c (_initialize_psymtab): Use upper case for
15546 metasyntactic variables.
15547 * demangle.c (demangle_command): Use upper case for metasyntactic
15548 variables.
15549 (_initialize_demangler): Likewise.
15550 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15551 variables.
15552
15553 2019-01-03 Tom Tromey <tom@tromey.com>
15554
15555 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15556
15557 2019-01-03 Tom Tromey <tom@tromey.com>
15558
15559 * python/py-symtab.c (salpy_str): Update.
15560 (struct salpy_sal_object) <symtab>: Now a PyObject.
15561 (salpy_dealloc): Update.
15562 (del_objfile_sal): Use gdbpy_ref.
15563
15564 2019-01-03 Tom Tromey <tom@tromey.com>
15565
15566 * python/py-type.c (convert_field): Use new_reference. Return
15567 gdbpy_ref.
15568 (make_fielditem): Return gdbpy_ref.
15569 (typy_fields): Update.
15570 (typy_getitem): Update.
15571 (field_name): Return gdbpy_ref. Use new_reference.
15572 (typy_iterator_iternext): Update.
15573
15574 2019-01-03 Tom Tromey <tom@tromey.com>
15575
15576 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15577
15578 2019-01-03 Tom Tromey <tom@tromey.com>
15579
15580 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15581 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15582 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15583 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15584 (pspy_set_type_printers): Likewise.
15585 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15586 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15587 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15588 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15589 (objfpy_set_type_printers): Likewise.
15590
15591 2019-01-03 Tom Tromey <tom@tromey.com>
15592
15593 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15594 (gdbpy_print_stack): Use gdbpy_err_fetch.
15595 * python/python-internal.h (class gdbpy_err_fetch): New class.
15596 (class gdbpy_enter) <m_error_type, m_error_value,
15597 m_error_traceback>: Remove.
15598 <m_error>: New member.
15599 (gdbpy_exception_to_string): Don't declare.
15600 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15601 * python/py-value.c (convert_value_from_python): Use
15602 gdbpy_err_fetch.
15603 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15604 gdbpy_exception_to_string.
15605 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15606 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15607 gdbpy_err_fetch.
15608
15609 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15610
15611 * linux-nat.c (delete_lwp_cleanup): Delete.
15612 (struct lwp_deleter): New struct.
15613 (lwp_info_up): New typedef.
15614 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15615 lwp_info_up.
15616
15617 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15618
15619 * linux-fork.c (class scoped_switch_fork_info): New class.
15620 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15621
15622 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15623
15624 * valops.c (find_overload_match): Remove use of null_cleanup, and
15625 calls to do_cleanups.
15626
15627 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15628
15629 * compile/compile-cplus-types.c
15630 (compile_cplus_instance::decl_name): Handle changes to
15631 cp_func_name.
15632 * cp-support.c (cp_func_name): Update header comment, update
15633 return type.
15634 * cp-support.h (cp_func_name): Update return type in declaration.
15635 * valops.c (find_overload_match): Move temp_func local to top
15636 level of function and change its type. Use temp_func to hold and
15637 delete temporary string obtained from cp_func_name.
15638
15639 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15640
15641 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15642 gdb::char_vector, remove cleanup, and update uses of `msg`.
15643
15644 2019-01-03 Jim Wilson <jimw@sifive.com>
15645
15646 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15647
15648 2019-01-02 Tom Tromey <tom@tromey.com>
15649
15650 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15651 (tdesc_parse_xml): Remove cleanups.
15652 * target-descriptions.h (make_cleanup_free_target_description):
15653 Don't declare.
15654 (target_desc_deleter): New struct.
15655 (target_desc_up): New typedef.
15656 * target-descriptions.c (target_desc_deleter::operator()): Rename
15657 from free_target_description.
15658 (make_cleanup_free_target_description): Remove.
15659
15660 2019-01-02 Tom Tromey <tom@tromey.com>
15661
15662 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15663 constructor, destructor.
15664 (linespec_parser): Remove typedef.
15665 (~linespec_parser): Rename from linespec_parser_delete.
15666 (linespec_lex_to_end, linespec_complete_label)
15667 (linespec_complete): Update.
15668 (decode_line_full): Remove cleanups.
15669 (decode_line_1): Update.
15670
15671 2019-01-02 Tom Tromey <tom@tromey.com>
15672
15673 * python/python-internal.h (inferior_to_inferior_object): Change
15674 return type.
15675 * python/py-exitedevent.c (create_exited_event_object): Update.
15676 * python/py-inferior.c (inferior_to_inferior_object): Return
15677 gdbpy_ref.
15678 (python_new_inferior, python_inferior_deleted)
15679 (thread_to_thread_object, delete_thread_object)
15680 (build_inferior_list, gdbpy_selected_inferior): Update.
15681 * python/py-infthread.c (create_thread_object): Update. Also fail
15682 if inferior_to_inferior_object fails.
15683
15684 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15685
15686 * inferior.h (class inferior) <displaced_step_state>: New field.
15687 * infrun.h (struct displaced_step_state): Move here from
15688 infrun.c. Initialize fields, add constructor.
15689 <inf>: Remove field.
15690 <reset>: New method.
15691 * infrun.c (struct displaced_step_inferior_state): Move to
15692 infrun.h.
15693 (displaced_step_inferior_states): Remove.
15694 (get_displaced_stepping_state): Adust.
15695 (displaced_step_in_progress_any_inferior): Adjust.
15696 (displaced_step_in_progress_thread): Adjust.
15697 (displaced_step_in_progress): Adjust.
15698 (add_displaced_stepping_state): Remove.
15699 (get_displaced_step_closure_by_addr): Adjust.
15700 (remove_displaced_stepping_state): Remove.
15701 (infrun_inferior_exit): Call displaced_step_state.reset.
15702 (use_displaced_stepping): Don't check for NULL.
15703 (displaced_step_prepare_throw): Call
15704 get_displaced_stepping_state.
15705 (displaced_step_fixup): Don't check for NULL.
15706 (prepare_for_detach): Don't check for NULL.
15707
15708 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15709
15710 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15711 in case of call that did not complete.
15712
15713 2019-01-02 Andrey Utkin <autkin@undo.io>
15714
15715 * symfile.c (find_separate_debug_file): Fix search of debug files for
15716 remote debuggee.
15717
15718 2019-01-02 Tom Tromey <tom@tromey.com>
15719
15720 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15721 indentation.
15722 * python/py-frame.c (frapy_older): Remove cast.
15723 (frapy_newer): Likewise.
15724 * python/py-breakpoint.c (local_setattro): Remove cast.
15725 * python/py-arch.c (archpy_name): Remove local variable.
15726 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15727
15728 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15729
15730 * unittests/basic_string_view/element_access/char/empty.cc:
15731 Fix year range in copyright header.
15732
15733 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15734
15735 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15736 Delete.
15737 <operator==>: Update with for removed field.
15738 <hash>: Likewise.
15739 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15740 <isa_features>: ...this.
15741 <abi_features>: New field.
15742 (riscv_isa_flen): Update comment.
15743 (riscv_abi_xlen): New declaration.
15744 (riscv_abi_flen): New declaration.
15745 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15746 isa_features.
15747 (riscv_abi_xlen): New function.
15748 (riscv_isa_flen): Update to get answer from isa_features.
15749 (riscv_abi_flen): New function.
15750 (riscv_has_fp_abi): Update to get answer from abi_features.
15751 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15752 xlen and flen.
15753 (riscv_call_info) <xlen, flen>: Update comment.
15754 (riscv_call_arg_struct): Remove invalid assertions
15755 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15756 is removed.
15757 (riscv_gdbarch_init): Gather isa features and abi features
15758 separately, ensure both match on the gdbarch when reusing an old
15759 gdbarch. Relax an error check to allow 32-bit abi float to run on
15760 a target with 64-bit float hardware.
15761
15762 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15763
15764 * source.c (search_command_helper): Stop reverse search
15765 when line 1 has been searched.
15766
15767 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15768
15769 * record-full.c (record_full_base_target::close): Rewrite
15770 record_full_core_buf_list free logic.
15771
15772 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15773
15774 * break-catch-syscall.c (print_one_catch_syscall): xfree
15775 the last text.
15776
15777 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15778
15779 * top.c (print_gdb_version): Update Copyright year in version
15780 message.
15781
15782 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15783
15784 Update copyright year range in all GDB files.
15785
15786 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15787
15788 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15789
15790 For older changes see ChangeLog-2018.
15791 \f
15792 Local Variables:
15793 mode: change-log
15794 left-margin: 8
15795 fill-column: 74
15796 version-control: never
15797 coding: utf-8
15798 End:
15799
This page took 0.428601 seconds and 5 git commands to generate.