Add add_internal_function overload
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1a6d41c6
TT
12019-11-26 Tom Tromey <tom@tromey.com>
2
3 * value.h (add_internal_function): Add new overload. Move
4 documentation from value.h.
5 * value.c (do_add_internal_function): New function.
6 (add_internal_function): Use it. Add new overload.
7 (function_destroyer): Don't free doc.
8 * python/py-function.c (fnpy_init): Update.
9
8318f3c3
TT
102019-11-26 Tom Tromey <tom@tromey.com>
11
12 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
13 (cmdpy_init): Set "doc_allocated".
14
4da8c3a8
TT
152019-11-26 Tom Tromey <tom@tromey.com>
16
17 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
18 name of worker thread.
19 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
20 pthread_setname_np.
21 * configure, config.in: Rebuild.
22
971db5e2
TT
232019-11-26 Tom Tromey <tom@tromey.com>
24
25 * python/python.c (class gdbpy_gil): New.
26 (struct gdbpy_event): Add constructor, destructor, operator().
27 (gdbpy_post_event): Use run_on_main_thread.
28 (gdbpy_initialize_events): Remove.
29 (do_start_initialization): Update.
30
22138db6
TT
312019-11-26 Tom Tromey <tom@tromey.com>
32
33 * NEWS: Add entry.
34 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
35 commands. Call update_thread_pool_size.
36 (update_thread_pool_size, maintenance_set_worker_threads): New
37 functions.
38 (n_worker_threads): New global.
39
d55c9a68
TT
402019-11-26 Christian Biesinger <cbiesinger@google.com>
41 Tom Tromey <tom@tromey.com>
42
43 * minsyms.c (minimal_symbol_reader::install): Use
44 parallel_for_each.
45 * gdbsupport/parallel-for.h: New file.
46 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
47
a0b57563
CB
482019-11-26 Christian Biesinger <cbiesinger@google.com>
49 Tom Tromey <tom@tromey.com>
50
51 * gdbsupport/thread-pool.h: New file.
52 * gdbsupport/thread-pool.c: New file.
53 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
54 (HFILES_NO_SRCDIR): Add thread-pool.h.
55
3b3978bc
TT
562019-11-26 Tom Tromey <tom@tromey.com>
57
58 * event-top.h (thread_local_segv_handler): Declare.
59 * event-top.c (thread_local_segv_handler): New global.
60 (install_handle_sigsegv, handle_sigsegv): New functions.
61 (async_init_signals): Install SIGSEGV handler.
62 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
63 thread-local.
64 (report_failed_demangle): New function.
65 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
66 handler-setting code, instead use segv_handler. Run warning code
67 on main thread.
68
9411c49e
TT
692019-11-26 Tom Tromey <tom@tromey.com>
70
71 * run-on-main-thread.c: New file.
72 * run-on-main-thread.h: New file.
73 * unittests/main-thread-selftests.c: New file.
74 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
75 main-thread-selftests.c.
76 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
77 (COMMON_SFILES): Add run-on-main-thread.c.
78
c3efb965
TT
792019-11-26 Tom Tromey <tom@tromey.com>
80
81 * main.c (setup_alternate_signal_stack): Remove.
82 (captured_main_1): Use gdb::alternate_signal_stack.
83 * gdbsupport/alt-stack.h: New file.
84
21987b9c
TT
852019-11-26 Tom Tromey <tom@tromey.com>
86
87 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
88 Remove comment.
89 (save_original_signals_state, restore_original_signals_state): Use
90 gdb_sigmask.
91 * linux-nat.c (block_child_signals, restore_child_signals_mask)
92 (_initialize_linux_nat): Use gdb_sigmask.
93 * guile/guile.c (_initialize_guile): Use block_signals.
94 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
95 * gdbsupport/gdb-sigmask.h: New file.
96 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
97 * cp-support.c (gdb_demangle): Use gdb_sigmask.
98 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
99 pthread_sigmask.
100 * configure, config.in: Rebuild.
101 * gdbsupport/block-signals.h: New file.
102
5e030278
TT
1032019-11-26 Tom Tromey <tom@tromey.com>
104
105 * acinclude.m4: Include ax_pthread.m4.
106 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
107 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
108 (CLIBS): Use PTHREAD_LIBS.
109 (aclocal_m4_deps): Add ax_pthread.m4.
110 * config.in, configure: Rebuild.
111 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
112
5a79c107
TT
1132019-11-26 Tom Tromey <tom@tromey.com>
114
115 * symtab.h (struct minimal_symbol) <name_set>: New member.
116 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
117 Don't call symbol_set_names.
118 (minimal_symbol_reader::install): Call symbol_set_names.
119
aa369509
PW
1202019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
121
122 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
123 restore_active_ext_lang, as GIL is needed for (indirectly)
124 called PyOS_InterruptOccurred.
125
cadc9cb8
SM
1262019-11-26 Simon Marchi <simon.marchi@efficios.com>
127
128 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
129 definition.
130
d04afd58
SM
1312019-11-26 Simon Marchi <simon.marchi@efficios.com>
132
133 * remote-sim.c (simulator_command): Make static, remove
134 declaration.
135
dd694d77
SM
1362019-11-26 Simon Marchi <simon.marchi@efficios.com>
137
138 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
139 static.
140 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
141 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
142 (main): Likewise.
143 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
144 (main): Likewise.
145 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
146 (main): Likewise.
147 * unittests/basic_string_view/element_access/char/1.cc (test01):
148 Likewise.
149 (main): Likewise.
150 * unittests/basic_string_view/element_access/char/empty.cc (main):
151 Likewise.
152 * unittests/basic_string_view/element_access/char/front_back.cc
153 (test01): Likewise.
154 (main): Likewise.
155 * unittests/basic_string_view/inserters/char/2.cc (test05):
156 Likewise.
157 (main): Likewise.
158 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
159 (test01): Likewise.
160 (main): Likewise.
161 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
162 (test01): Likewise.
163 (main): Likewise.
164 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
165 Likewise.
166 * unittests/basic_string_view/operations/compare/char/1.cc
167 (test01): Likewise.
168 (main): Likewise.
169 * unittests/basic_string_view/operations/compare/char/13650.cc
170 (test01): Likewise.
171 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
172 Likewise.
173 (main): Likewise.
174 * unittests/basic_string_view/operations/data/char/1.cc (test01):
175 Likewise.
176 (main): Likewise.
177 * unittests/basic_string_view/operations/find/char/1.cc (test01):
178 Likewise.
179 (main): Likewise.
180 * unittests/basic_string_view/operations/find/char/2.cc (test02):
181 Likewise.
182 (main): Likewise.
183 * unittests/basic_string_view/operations/find/char/3.cc (test03):
184 Likewise.
185 (main): Likewise.
186 * unittests/basic_string_view/operations/find/char/4.cc (main):
187 Likewise.
188 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
189 Likewise.
190 (main): Likewise.
191 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
192 Likewise.
193 (main): Likewise.
194 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
195 Likewise.
196 (main): Likewise.
197 * unittests/basic_string_view/operations/substr/char/1.cc
198 (test01): Likewise.
199 (main): Likewise.
200 * unittests/basic_string_view/operators/char/2.cc (main):
201 Likewise.
202 * unittests/optional/assignment/1.cc (test): Likewise.
203 * unittests/optional/assignment/2.cc (test): Likewise.
204 * unittests/optional/assignment/3.cc (test): Likewise.
205 * unittests/optional/assignment/4.cc (test): Likewise.
206 * unittests/optional/assignment/5.cc (test): Likewise.
207 * unittests/optional/assignment/6.cc (test): Likewise.
208 * unittests/optional/assignment/7.cc (test): Likewise.
209 * unittests/optional/cons/copy.cc (test): Likewise.
210 * unittests/optional/cons/default.cc (test): Likewise.
211 * unittests/optional/cons/move.cc (test): Likewise.
212 * unittests/optional/cons/value.cc (test): Likewise.
213 * unittests/optional/in_place.cc (test): Likewise.
214 * unittests/optional/observers/1.cc (test): Likewise.
215 * unittests/optional/observers/2.cc (test): Likewise.
216
3b5c1d49
SM
2172019-11-26 Simon Marchi <simon.marchi@efficios.com>
218
219 * tui-win.h (tui_set_var_cmd): Remove.
220 * tui-win.c (tui_set_var_cmd): Make static.
221
adce99fe
SM
2222019-11-26 Simon Marchi <simon.marchi@efficios.com>
223
224 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
225 rbreak_command_wrapper): Remove.
226 * symtab.c (rbreak_command_wrapper): Remove.
227
fe3adccf
SM
2282019-11-26 Simon Marchi <simon.marchi@efficios.com>
229
230 * inferior.h (info_terminal_command): Remove declaration.
231 * inflow.c (info_terminal_command): Make static.
232
b926335f
SM
2332019-11-26 Simon Marchi <simon.marchi@efficios.com>
234
235 * inferior.c (exit_inferior_silent): Remove.
236
b62f6f54
SM
2372019-11-26 Simon Marchi <simon.marchi@efficios.com>
238
239 * dictionary.c (dict_empty, mdict_empty): Remove.
240 * dictionary.c (mdict_empty): Remove.
241
cb8c24b6
SM
2422019-11-26 Simon Marchi <simon.marchi@efficios.com>
243
244 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
245 (arc_insn_get_memory_offset): Likewise.
246 (arc_insn_dump): Likewise.
247 * cp-support.c (test_cp_symbol_name_matches): Likewise.
248 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
249 * dictionary.c (dict_iterator_next): Likewise.
250 (dict_iter_match_first): Likewise.
251 (dict_iter_match_next): Likewise.
252 * f-lang.c (evaluate_subexp_f): Likewise.
253 * hppa-tdep.c (hppa_read_pc): Likewise.
254 * i386-tdep.c (i386_floatformat_for_type): Likewise.
255 * parse.c (write_exp_elt_msym): Likewise.
256 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
257 * remote.c (remote_packet_size): Likewise.
258 (remote_notif_stop_parse): Likewise.
259 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
260 * s12z-tdep.c (s12z_disassemble_info): Likewise.
261 * source.c (prepare_path_for_appending): Likewise.
262 * sparc64-linux-tdep.c
263 (sparc64_linux_handle_segmentation_fault); Likewise.
264 * stack.c (frame_selection_by_function_completer): Likewise.
265
781597ff
SM
2662019-11-26 Simon Marchi <simon.marchi@efficios.com>
267
268 * completer.c (set_gdb_completion_word_break_characters):
269 Remove.
270
23baa4cc
SM
2712019-11-26 Simon Marchi <simon.marchi@efficios.com>
272
273 * dwarf-index-write.c: Include dwarf-index-write.h.
274 * mi/mi-interp.c: Include mi/mi-interp.h.
275
23767560
SM
2762019-11-26 Simon Marchi <simon.marchi@efficios.com>
277
278 * aarch32-tdep.c: Include aarch32-tdep.h.
279 * aarch32-tdep.h: Forward-declare struct target_desc.
280
6d91ce9a
CB
2812019-11-26 Christian Biesinger <cbiesinger@google.com>
282
283 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
284 strerror.
285 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
286 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
287
3cf2f237
TV
2882019-11-25 Tom de Vries <tdevries@suse.de>
289
290 * contrib/words.sh: Add -c option.
291
5b89c67a
CB
2922019-11-25 Christian Biesinger <cbiesinger@google.com>
293
294 * solib.c (solib_find_1): Change int to bool.
295 (exec_file_find): Change int to bool.
296 (solib_find): Change int to bool.
297 (solib_read_symbols): Change int to bool.
298 (solib_used): Change int to bool.
299 (solib_add): Change int to bool.
300 (info_sharedlibrary_command): Change int to bool.
301 (solib_contains_address_p): Change int to bool.
302 (solib_keep_data_in_core): Change int to bool.
303 (in_solib_dynsym_resolve_code): Change int to bool.
304 (reload_shared_libraries_1): Change int to bool.
305 (gdb_sysroot_changed): Change int to bool.
306 * solib.h (solib_read_symbols): Change int to bool.
307 (solib_contains_address_p): Change int to bool.
308 (solib_keep_data_in_core): Change int to bool.
309 (in_solib_dynsym_resolve_code): Change int to bool.
310 (libpthread_name_p): Change int to bool.
311
6cc8564b
LM
3122019-11-25 Luis Machado <luis.machado@linaro.org>
313
314 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
315 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
316 (remote_packet_max_chars): New static global.
317 (show_remote_packet_max_chars): New function.
318 (remote_target::putpkt_binary): Adjust to use new
319 remote_packet_max_chars option.
320 (remote_target::getpkt_or_notif_sane_1): Likewise.
321 (_initialize_remote): Register new remote-packet-max-chars option.
322
a7cdaa91
SM
3232019-11-24 Simon Marchi <simon.marchi@efficios.com>
324
325 * m68k-linux-nat.c: Include gdbarch.h.
326
26abc753
TT
3272019-11-24 Tom Tromey <tom@tromey.com>
328
329 * symfile.c (read_symbols): Update.
330 * psymtab.c (require_partial_symbols): Change type of "verbose" to
331 bool.
332 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
333 (psym_lookup_symbol, psym_find_last_source_symtab)
334 (psym_forget_cached_source_info, psym_print_stats)
335 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
336 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
337 (psym_map_matching_symbols, psym_expand_symtabs_matching)
338 (psym_find_compunit_symtab_by_address)
339 (maintenance_print_psymbols, maintenance_info_psymtabs)
340 (maintenance_check_psymtabs): Update.
341 * psymtab.h (require_partial_symbols): Change type of "verbose" to
342 bool.
343
012fc909
TT
3442019-11-22 Tom Tromey <tom@tromey.com>
345
346 * observable.h: Update comments.
347
c83d8d32
TT
3482019-11-22 Tom Tromey <tromey@adacore.com>
349
350 * ada-tasks.c (ada_task_is_alive): Make parameter const.
351 (print_ada_task_info): Don't try to fetch thread id if task is not
352 alive.
353
987012b8
CB
3542019-11-22 Christian Biesinger <cbiesinger@google.com>
355
356 * ada-exp.y: Update.
357 * ada-lang.c (sort_choices): Update.
358 (ada_print_symbol_signature): Update.
359 (resolve_subexp): Update.
360 (ada_parse_renaming): Update.
361 (ada_read_renaming_var_value): Update.
362 (lesseq_defined_than): Update.
363 (remove_extra_symbols): Update.
364 (remove_irrelevant_renamings): Update.
365 (ada_add_block_symbols): Update.
366 (ada_collect_symbol_completion_matches): Update.
367 (ada_is_renaming_symbol): Update.
368 (aggregate_assign_from_choices): Update.
369 (ada_evaluate_subexp): Update.
370 (ada_has_this_exception_support): Update.
371 (ada_is_non_standard_exception_sym): Update.
372 (ada_add_exceptions_from_frame): Update.
373 (ada_add_global_exceptions): Update.
374 (ada_print_subexp): Update.
375 * ax-gdb.c (gen_var_ref): Update.
376 (gen_maybe_namespace_elt): Update.
377 (gen_expr_for_cast): Update.
378 (gen_expr): Update.
379 * block.h: Update.
380 * blockframe.c (find_pc_partial_function): Update.
381 * breakpoint.c (print_breakpoint_location): Update.
382 (update_static_tracepoint): Update.
383 * btrace.c (ftrace_print_function_name): Update.
384 (ftrace_function_switched): Update.
385 * buildsym.c (find_symbol_in_list): Update.
386 * c-exp.y: Update.
387 * c-typeprint.c (c_print_typedef): Update.
388 (c_type_print_template_args): Update.
389 * cli/cli-cmds.c (edit_command): Update.
390 (list_command): Update.
391 (print_sal_location): Update.
392 * coffread.c (patch_opaque_types): Update.
393 (process_coff_symbol): Update.
394 (coff_read_enum_type): Update.
395 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
396 (convert_one_symbol): Update.
397 (hash_symname): Update.
398 (eq_symname): Update.
399 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
400 * compile/compile-cplus-types.c (debug_print_scope): Update.
401 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
402 * compile/compile-object-load.c (get_out_value_type): Update.
403 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
404 (search_symbol_list): Update.
405 (cp_lookup_symbol_imports_or_template): Update.
406 * cp-support.c (overload_list_add_symbol): Update.
407 * ctfread.c (psymtab_to_symtab): Update.
408 * dbxread.c (cp_set_block_scope): Update.
409 * dictionary.c (iter_match_first_hashed): Update.
410 (iter_match_next_hashed): Update.
411 (insert_symbol_hashed): Update.
412 (iter_match_next_linear): Update.
413 * dictionary.h: Update.
414 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
415 (locexpr_describe_location_piece): Update.
416 (locexpr_describe_location_1): Update.
417 (locexpr_generate_c_location): Update.
418 (loclist_describe_location): Update.
419 (loclist_generate_c_location): Update.
420 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
421 (read_func_scope): Update.
422 (process_enumeration_scope): Update.
423 (new_symbol): Update.
424 (dwarf2_const_value): Update.
425 (dwarf2_symbol_mark_computed): Update.
426 * eval.c (evaluate_funcall): Update.
427 (evaluate_subexp_standard): Update.
428 * expprint.c (print_subexp_standard): Update.
429 (dump_subexp_body_standard): Update.
430 * f-valprint.c (info_common_command_for_block): Update.
431 * findvar.c (get_hosting_frame): Update.
432 (default_read_var_value): Update.
433 * go-lang.c (go_symbol_package_name): Update.
434 * guile/scm-block.c (bkscm_print_block_smob): Update.
435 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
436 (gdbscm_symbol_name): Update.
437 (gdbscm_symbol_linkage_name): Update.
438 (gdbscm_symbol_print_name): Update.
439 * infcall.c (get_function_name): Update.
440 * infcmd.c (jump_command): Update.
441 (finish_command): Update.
442 * infrun.c (insert_exception_resume_breakpoint): Update.
443 * linespec.c (canonicalize_linespec): Update.
444 (create_sals_line_offset): Update.
445 (convert_linespec_to_sals): Update.
446 (complete_label): Update.
447 (find_label_symbols_in_block): Update.
448 * m2-typeprint.c (m2_print_typedef): Update.
449 * mdebugread.c (mdebug_reg_to_regnum): Update.
450 (parse_symbol): Update.
451 (mylookup_symbol): Update.
452 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
453 (list_args_or_locals): Update.
454 * objc-lang.c (compare_selectors): Update.
455 (info_selectors_command): Update.
456 (compare_classes): Update.
457 (info_classes_command): Update.
458 (find_imps): Update.
459 * p-typeprint.c (pascal_print_typedef): Update.
460 * printcmd.c (build_address_symbolic): Update.
461 (info_address_command): Update.
462 (print_variable_and_value): Update.
463 * python/py-framefilter.c (extract_sym): Update.
464 (py_print_single_arg): Update.
465 * python/py-symbol.c (sympy_str): Update.
466 (sympy_get_name): Update.
467 (sympy_get_linkage_name): Update.
468 * python/python.c (gdbpy_rbreak): Update.
469 * record-btrace.c (btrace_get_bfun_name): Update.
470 (btrace_call_history): Update.
471 * rust-lang.c (rust_print_typedef): Update.
472 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
473 * stabsread.c (stab_reg_to_regnum): Update.
474 (define_symbol): Update.
475 (read_enum_type): Update.
476 (common_block_end): Update.
477 (cleanup_undefined_types_1): Update.
478 (scan_file_globals): Update.
479 * stack.c (print_frame_arg): Update.
480 (print_frame_args): Update.
481 (find_frame_funname): Update.
482 (info_frame_command_core): Update.
483 (iterate_over_block_locals): Update.
484 (print_block_frame_labels): Update.
485 (do_print_variable_and_value): Update.
486 (iterate_over_block_arg_vars): Update.
487 (return_command): Update.
488 * symmisc.c (dump_symtab_1): Update.
489 (print_symbol): Update.
490 * symtab.c (eq_symbol_entry): Update.
491 (symbol_cache_dump): Update.
492 (lookup_language_this): Update.
493 (find_pc_sect_line): Update.
494 (skip_prologue_sal): Update.
495 (symbol_search::compare_search_syms): Update.
496 (treg_matches_sym_type_name): Update.
497 (search_symbols): Update.
498 (print_symbol_info): Update.
499 (rbreak_command): Update.
500 (completion_list_add_symbol): Update.
501 (find_gnu_ifunc): Update.
502 (get_symbol_address): Update.
503 (search_module_symbols): Update.
504 (info_module_subcommand): Update.
505 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
506 (SYMBOL_LINKAGE_NAME): Remove.
507 (SYMBOL_DEMANGLED_NAME): Remove.
508 (SYMBOL_PRINT_NAME): Remove.
509 (SYMBOL_SEARCH_NAME): Remove.
510 * tracepoint.c (set_traceframe_context): Update.
511 (validate_actionline): Update.
512 (collection_list::collect_symbol): Update.
513 (encode_actions_1): Update.
514 (info_scope_command): Update.
515 (print_one_static_tracepoint_marker): Update.
516 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
517 * valops.c (address_of_variable): Update.
518 (find_overload_match): Update.
519 (find_oload_champ): Update.
520
c9d95fa3
CB
5212019-11-22 Christian Biesinger <cbiesinger@google.com>
522
523 * ada-lang.c (ada_lookup_simple_minsym): Update.
524 (ada_collect_symbol_completion_matches): Update.
525 * ada-tasks.c (read_atcb): Update.
526 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
527 (amd64_windows_skip_trampoline_code): Update.
528 * arm-tdep.c (skip_prologue_function): Update.
529 (arm_skip_stack_protector): Update.
530 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
531 (arm_wince_skip_main_prologue): Update.
532 * ax-gdb.c (gen_expr): Update.
533 * block.c (call_site_for_pc): Update.
534 * blockframe.c (find_pc_partial_function): Update.
535 * breakpoint.c (set_breakpoint_location_function): Update.
536 * btrace.c (ftrace_print_function_name): Update.
537 (ftrace_function_switched): Update.
538 * c-valprint.c (print_unpacked_pointer): Update.
539 * coffread.c (coff_symfile_read): Update.
540 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
541 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
542 * dwarf-index-write.c (write_psymbols): Update.
543 * dwarf2loc.c (call_site_to_target_addr): Update.
544 (func_verify_no_selftailcall): Update.
545 (tailcall_dump): Update.
546 (call_site_find_chain_1): Update.
547 (dwarf_expr_reg_to_entry_parameter): Update.
548 * elfread.c (elf_gnu_ifunc_record_cache): Update.
549 * eval.c (evaluate_funcall): Update.
550 (evaluate_subexp_standard): Update.
551 (evaluate_subexp_for_sizeof): Update.
552 * expprint.c (print_subexp_standard): Update.
553 (dump_subexp_body_standard): Update.
554 * frame.c (get_prev_frame_always_1): Update.
555 * frv-tdep.c (frv_skip_main_prologue): Update.
556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
557 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
558 (gnuv3_get_typename_from_type_info): Update.
559 (gnuv3_skip_trampoline): Update.
560 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
561 * i386-tdep.c (i386_skip_main_prologue): Update.
562 (i386_pe_skip_trampoline_code): Update.
563 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
564 * infcall.c (get_function_name): Update.
565 * linespec.c (minsym_found): Update.
566 * linux-fork.c (info_checkpoints_command): Update.
567 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
568 (m32c_m16c_pointer_to_address): Update.
569 * maint.c (maintenance_translate_address): Update.
570 * minsyms.c (add_minsym_to_hash_table): Update.
571 (add_minsym_to_demangled_hash_table): Update.
572 (lookup_minimal_symbol_mangled): Update.
573 (lookup_minimal_symbol_demangled): Update.
574 (lookup_minimal_symbol_linkage): Update.
575 (lookup_minimal_symbol_text): Update.
576 (lookup_minimal_symbol_by_pc_name): Update.
577 (minimal_symbol_is_less_than): Update.
578 (compact_minimal_symbols): Update.
579 (build_minimal_symbol_hash_tables): Update.
580 (find_solib_trampoline_target): Update.
581 * mips-tdep.c (mips_stub_frame_sniffer): Update.
582 (mips_skip_pic_trampoline_code): Update.
583 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
584 * objc-lang.c (info_selectors_command): Update.
585 (info_classes_command): Update.
586 (find_methods): Update.
587 (find_imps): Update.
588 * p-valprint.c (pascal_val_print): Update.
589 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
590 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
591 * printcmd.c (build_address_symbolic): Update.
592 (info_symbol_command): Update.
593 * psymtab.c (psymbol_name_matches): Update.
594 (match_partial_symbol): Update.
595 (lookup_partial_symbol): Update.
596 (print_partial_symbols): Update.
597 (sort_pst_symbols): Update.
598 (maintenance_check_psymtabs): Update.
599 * python/py-framefilter.c (py_print_frame): Update.
600 * python/python.c (gdbpy_rbreak): Update.
601 * record-btrace.c (btrace_get_bfun_name): Update.
602 (btrace_call_history): Update.
603 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
604 (rs6000_skip_trampoline_code): Update.
605 * sol-thread.c (info_cb): Update.
606 * stabsread.c (scan_file_globals): Update.
607 * stack.c (find_frame_funname): Update.
608 (info_frame_command_core): Update.
609 * symmisc.c (dump_msymbols): Update.
610 * symtab.c (symbol_natural_name): Rename to..,
611 (general_symbol_info::natural_name): ...this.
612 (symbol_demangled_name): Rename to...
613 (general_symbol_info::demangled_name): ...this.
614 (symbol_search_name): Rename to...
615 (general_symbol_info::search_name): ...this.
616 (symbol_matches_search_name): Update.
617 (find_pc_sect_line): Update.
618 (skip_prologue_sal): Update.
619 (search_symbols): Update.
620 (print_msymbol_info): Update.
621 (rbreak_command): Update.
622 (completion_list_add_msymbol): Update.
623 (completion_list_objc_symbol): Update.
624 (get_msymbol_address): Update.
625 * symtab.h (struct general_symbol_info): Add member functions
626 natural_name (), linkage_name (), print_name (), demangled_name (),
627 and search_name ().
628 (SYMBOL_NATURAL_NAME): Update.
629 (symbol_natural_name): Move to a member function on general_symbol_info.
630 (SYMBOL_DEMANGLED_NAME): Update.
631 (symbol_demangled_name): Move to a member function on
632 general_symbol_info.
633 (SYMBOL_SEARCH_NAME): Update.
634 (symbol_search_name): Move to a member function on general_symbol_info.
635 (MSYMBOL_NATURAL_NAME): Remove.
636 (MSYMBOL_LINKAGE_NAME): Remove.
637 (MSYMBOL_PRINT_NAME): Remove.
638 (MSYMBOL_DEMANGLED_NAME): Remove.
639 (MSYMBOL_SEARCH_NAME): Remove.
640 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
641
f8bab2d6
CB
6422019-11-22 Christian Biesinger <cbiesinger@google.com>
643
644 * symtab.c (create_demangled_names_hash): Use per_bfd->
645 minimal_symbol_count for computing the initial size, if greater
646 than our default size.
647
85e7588d
TV
6482019-11-22 Tom de Vries <tdevries@suse.de>
649
650 * contrib/words.sh: Improve words extraction.
651
f6180073
TV
6522019-11-22 Tom de Vries <tdevries@suse.de>
653
654 * contrib/words.sh: Combine sed invocations.
655
f10ffa41
CB
6562019-11-21 Christian Biesinger <cbiesinger@google.com>
657
658 * Makefile.in: Update.
659 * demangle.c: Rename to...
660 * gdb-demangle.c: ..this.
661 (is_cplus_marker): Change return type to bool.
662 (_initialize_demangler): Rename to...
663 (_initialize_gdb_demangle): ...this.
664 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
665 * symtab.h (demangle): Remove declaration; instead include
666 gdb-demangle.h.
667
6ba18521
TT
6682019-11-21 Tom Tromey <tromey@adacore.com>
669
670 * gdbsupport/format.c (format_pieces): Parse %I64d.
671 * unittests/format_pieces-selftests.c (test_windows_formats): New
672 function.
673 (run_tests): Call it.
674
34877895
PJ
6752019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
676
677 Byte reverse display of variables with DW_END_big, DW_END_little
678 (DW_AT_endianity) dwarf attributes if different than the native
679 byte order.
680 * ada-lang.c (ada_value_binop):
681 Use type_byte_order instead of gdbarch_byte_order.
682 * ada-valprint.c (printstr):
683 (ada_val_print_string):
684 * ada-lang.c (value_pointer):
685 (ada_value_binop):
686 Use type_byte_order instead of gdbarch_byte_order.
687 * c-lang.c (c_get_string):
688 Use type_byte_order instead of gdbarch_byte_order.
689 * c-valprint.c (c_val_print_array):
690 Use type_byte_order instead of gdbarch_byte_order.
691 * cp-valprint.c (cp_print_class_member):
692 Use type_byte_order instead of gdbarch_byte_order.
693 * dwarf2loc.c (rw_pieced_value):
694 Use type_byte_order instead of gdbarch_byte_order.
695 * dwarf2read.c (read_base_type): Handle DW_END_big,
696 DW_END_little
697 * f-lang.c (f_get_encoding):
698 Use type_byte_order instead of gdbarch_byte_order.
699 * findvar.c (default_read_var_value):
700 Use type_byte_order instead of gdbarch_byte_order.
701 * gdbtypes.c (check_types_equal):
702 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
703 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
704 and TYPE_ENDIANITY_LITTLE if set.
705 (type_byte_order): new function.
706 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
707 (struct main_type) <flag_endianity_not_default>:
708 New field.
709 (type_byte_order): New function.
710 * infcmd.c (default_print_one_register_info):
711 Use type_byte_order instead of gdbarch_byte_order.
712 * p-lang.c (pascal_printstr):
713 Use type_byte_order instead of gdbarch_byte_order.
714 * p-valprint.c (pascal_val_print):
715 Use type_byte_order instead of gdbarch_byte_order.
716 * printcmd.c (print_scalar_formatted):
717 Use type_byte_order instead of gdbarch_byte_order.
718 * solib-darwin.c (darwin_current_sos):
719 Use type_byte_order instead of gdbarch_byte_order.
720 * solib-svr4.c (solib_svr4_r_ldsomap):
721 Use type_byte_order instead of gdbarch_byte_order.
722 * stap-probe.c (stap_modify_semaphore):
723 Use type_byte_order instead of gdbarch_byte_order.
724 * target-float.c (target_float_same_format_p):
725 Use type_byte_order instead of gdbarch_byte_order.
726 * valarith.c (scalar_binop):
727 (value_bit_index):
728 Use type_byte_order instead of gdbarch_byte_order.
729 * valops.c (value_cast):
730 Use type_byte_order instead of gdbarch_byte_order.
731 * valprint.c (generic_emit_char):
732 (generic_printstr):
733 (val_print_string):
734 Use type_byte_order instead of gdbarch_byte_order.
735 * value.c (unpack_long):
736 (unpack_bits_as_long):
737 (unpack_value_bitfield):
738 (modify_field):
739 (pack_long):
740 (pack_unsigned_long):
741 Use type_byte_order instead of gdbarch_byte_order.
742 * findvar.c (unsigned_pointer_to_address):
743 (signed_pointer_to_address):
744 (unsigned_address_to_pointer):
745 (address_to_signed_pointer):
746 (default_read_var_value):
747 (default_value_from_register):
748 Use type_byte_order instead of gdbarch_byte_order.
749 * gnu-v3-abi.c (gnuv3_make_method_ptr):
750 Use type_byte_order instead of gdbarch_byte_order.
751 * riscv-tdep.c (riscv_print_one_register_info):
752 Use type_byte_order instead of gdbarch_byte_order.
753
87fb00ea
SM
7542019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
757 (current_ui_gdb_stdin_ptr): Likewise.
758 (current_ui_gdb_stderr_ptr): Likewise.
759 (current_ui_gdb_stdlog_ptr): Likewise.
760 (current_ui_current_uiout_ptr): Likewise.
761 (gen_ret_current_ui_field_ptr): Remove.
762
65d1cd5f
TV
7632019-11-21 Tom de Vries <tdevries@suse.de>
764
765 PR gdb/24956
766 * cli/cli-script.c (execute_control_command): Only switch to
767 INTERP_CONSOLE's ui_out when INTERP_MI is active.
768
9f6ad286
TT
7692019-11-19 Tom Tromey <tom@tromey.com>
770
771 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
772 Now static. Change type of "name".
773 (tui_set_win_height_command): Don't copy "arg".
774 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
775 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
776
435d3d88
AT
7772019-11-19 Ali Tamur <tamur@google.com>
778
779 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
780 "if (attr != nullptr)".
781 (dwarf2_find_base_address): Likewise.
782 (dwarf2_build_include_psymtabs): Likewise.
783 (read_cutu_die_from_dwo): Likewise.
784 (read_func_scope): Likewise.
785 (read_call_site_scope): Likewise.
786 (dwarf2_get_pc_bounds): Likewise.
787 (dwarf2_record_block_ranges): Likewise.
788 (dwarf2_add_field): Likewise.
789 (dwarf2_add_member_fn): Likewise.
790 (read_structure_type): Likewise.
791 (read_enumeration_type): Likewise.
792 (read_array_type): Likewise.
793 (read_array_order): Likewise.
794 (read_set_type): Likewise.
795 (read_common_block): Likewise.
796 (read_tag_reference_type): Likewise.
797 (read_tag_string_type): Likewise.
798 (read_subroutine_type): Likewise.
799 (read_base_type): Likewise.
800 (read_subrange_type): Likewise.
801 (new_symbol): Likewise.
802 (prepare_one_comp_unit): Likewise.
803
c9739b6a
TT
8042019-11-19 Tom Tromey <tromey@adacore.com>
805
806 * windows-nat.c (windows_nat_target::attach): Include GetLastError
807 result in error when DebugActiveProcess fails.
808
494409bb
SDJ
8092019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
810 Pedro Alves <palves@redhat.com>
811
812 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
813 * target.c (target_stack::push): Call 'unpush' if there's a
814 target on top of the stack.
815
2e953aca
PW
8162019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
817
818 * python/py-block.c (blpy_dealloc): Call tp_free.
819 (blpy_block_syms_dealloc): Likewise.
820 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
821 * python/py-inferior.c (infpy_dealloc): Likewise.
822 * python/py-lazy-string.c (stpy_dealloc): Likewise.
823 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
824 * python/py-symbol.c (sympy_dealloc): Likewise.
825 * python/py-symtab.c (stpy_dealloc): Likewise.
826 * python/py-type.c (typy_iterator_dealloc): Likewise.
827
6edc43ec
CB
8282019-11-18 Christian Biesinger <cbiesinger@google.com>
829
830 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
831 constructor instead of using a class initializer.
832
cd850b40
CB
8332019-11-15 Christian Biesinger <cbiesinger@google.com>
834
835 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
836 * configure: Regenerate.
837 * configure.ac: Don't source common.host.
838 * gdbsupport/common.host: Remove.
839 * gdbsupport/mingw-strerror.c: Remove.
840 * gdbsupport/posix-strerror.c: Rename to...
841 * gdbsupport/safe-strerror.c: ...this.
842
53fea9c7
CB
8432019-11-15 Christian Biesinger <cbiesinger@google.com>
844
845 * maint.c (scoped_command_stats::print_time): Use localtime_r
846 instead of localtime (provided through gnulib if necessary).
847 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
848 of ctime.
849
f8e27d88
CB
8502019-11-15 Christian Biesinger <cbiesinger@google.com>
851
852 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
853 avoid compile errors.
854
5abebf3c
CB
8552019-11-15 Christian Biesinger <cbiesinger@google.com>
856
857 * config.in: Regenerate.
858 * configure: Regenerate.
859 * gdbsupport/common.m4: No longer check for strerror_r.
860 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
861 POSIX version of strerror_r, now that gnulib provides it if
862 necessary.
863
9a351667
CB
8642019-11-14 Christian Biesinger <cbiesinger@google.com>
865
866 * README (`configure' options): Update.
867
55708e99
TT
8682019-11-14 Tom Tromey <tromey@adacore.com>
869
870 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
871 expected type for the RHS if the LHS is a convenience variable.
872
4b09bb2e
SM
8732019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
876 Provide explicit default and copy constructor.
877
bd454f8b
PW
8782019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
879
880 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
881 only call Py_INCREF (newbp) in the bppy_pending_object case.
882
d1aa3cf0
TT
8832019-11-13 Tom Tromey <tromey@adacore.com>
884
885 PR build/25182:
886 * psympriv.h (partial_symbol): Remove static assert.
887 * symtab.h (general_symbol_info, symbol): Remove static assert.
888
e06f3d6e
AB
8892019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * gdbsupport/format.c (format_pieces::format_pieces): Support
892 printf 'z' size modifier.
893 * gdbsupport/format.h (enum argclass): Add size_t_arg.
894 * printcmd.c (ui_printf): Handle size_t_arg.
895 * ui-out.c (ui_out::vmessage): Likewise.
896 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
897 function.
898 (run_tests): Call test_format_int_sizes.
899
468c0cbb
CB
9002019-11-12 Christian Biesinger <cbiesinger@google.com>
901
902 * ada-exp.y (write_ambiguous_var): Update.
903 * buildsym.c (add_symbol_to_list): Update.
904 * dwarf2read.c (read_variable): Update.
905 (new_symbol): Update.
906 * jit.c (finalize_symtab): Update.
907 * language.c (language_alloc_type_symbol): Update.
908 * symtab.c (fixup_symbol_section): Update.
909 (initialize_objfile_symbol_1): Move code to...
910 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
911 (allocate_symbol): Update.
912 (allocate_template_symbol): Update.
913 (get_symbol_address): Update.
914 * symtab.h (struct symbol): Inherit from general_symbol_info instead
915 of having as a field, and add a constructor.
916 (SYMBOL_VALUE): Update.
917 (SYMBOL_VALUE_ADDRESS): Update.
918 (SET_SYMBOL_VALUE_ADDRESS): Update.
919 (SYMBOL_VALUE_BYTES): Update.
920 (SYMBOL_VALUE_COMMON_BLOCK): Update.
921 (SYMBOL_BLOCK_VALUE): Update.
922 (SYMBOL_VALUE_CHAIN): Update.
923 (SYMBOL_LANGUAGE): Update.
924 (SYMBOL_SECTION): Update.
925 (SYMBOL_OBJ_SECTION): Update.
926 (SYMBOL_SET_LANGUAGE): Update.
927 (SYMBOL_SET_LINKAGE_NAME): Update.
928 (SYMBOL_SET_NAMES): Update.
929 (SYMBOL_NATURAL_NAME): Update.
930 (SYMBOL_LINKAGE_NAME): Update.
931 (SYMBOL_DEMANGLED_NAME): Update.
932 (SYMBOL_SEARCH_NAME): Update.
933 (SYMBOL_MATCHES_SEARCH_NAME): Update.
934 (struct symbol): Update.
935 (struct template_symbol): Update.
936 (struct rust_vtable_symbol): Update.
937 * xcoffread.c (SYMBOL_DUP): Update.
938
ed2c82c3
TT
9392019-11-12 Tom Tromey <tom@tromey.com>
940
941 * tui/tui-layout.c (show_layout): Set current_layout.
942 (show_source_disasm_command, show_data)
943 (show_source_or_disasm_and_command): Don't set current_layout.
944
d9fcefd5
TT
9452019-11-12 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
948
45e42163
TT
9492019-11-12 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-win.c (resize_message): New global.
952 (show_tui_resize_message): New function.
953 (tui_async_resize_screen): Print message if requested.
954 (_initialize_tui_win): Add tui-resize-message setting.
955 * NEWS: Add entry for new commands.
956
c86d74cc
TT
9572019-11-11 Tom Tromey <tom@tromey.com>
958
959 * tui/tui.c (tui_initialize_readline): Add new bindable readline
960 functions.
961
7b7b9424
CB
9622019-11-11 Christian Biesinger <cbiesinger@google.com>
963
964 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
965
086baaf1
AB
9662019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
967
968 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
969 function.
970 * python/python-internal.h (gdbpy_lookup_static_symbols):
971 Declare new function.
972 * python/python.c (python_GdbMethods): Add
973 gdb.lookup_static_symbols method.
974 * NEWS: Mention gdb.lookup_static_symbols.
975
09ff83af
AB
9762019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
979 static block of current object file first. Also fix typo in
980 header comment.
981
eb2dd8df
AB
9822019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * stack.c (set_last_displayed_sal): Delete.
985 (last_displayed_sal_valid): Delete.
986 (last_displayed_pspace): Delete.
987 (last_displayed_addr): Delete.
988 (last_displayed_symtab): Delete.
989 (last_displayed_line): Delete.
990 (class last_displayed_symtab_info_type): New.
991 (last_displayed_symtab_info): New static global variable.
992 (print_frame_info): Call methods on last_displayed_symtab_info.
993 (clear_last_displayed_sal): Update header comment, and make use of
994 last_displayed_symtab_info.
995 (last_displayed_sal_is_valid): Likewise.
996 (get_last_displayed_pspace): Likewise.
997 (get_last_displayed_addr): Likewise.
998 (get_last_displayed_symtab): Likewise.
999 (get_last_displayed_line): Likewise.
1000 (get_last_displayed_sal): Likewise.
1001 * stack.h (clear_last_displayed_sal): Update header comment.
1002 (last_displayed_sal_is_valid): Likewise.
1003 (get_last_displayed_pspace): Likewise.
1004 (get_last_displayed_addr): Likewise.
1005 (get_last_displayed_symtab): Likewise.
1006 (get_last_displayed_line): Likewise.
1007 (get_last_displayed_sal): Likewise.
1008
62137775
AB
10092019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * stack.c (frame_show_address): Convert return type to bool.
1012 * stack.h (frame_show_address): Likewise, and update header
1013 comment.
1014
cf57ad6d
AB
10152019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1018 * unittests/vec-utils-selftests.c: New file.
1019 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1020
0b026263
TT
10212019-11-10 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1024 (tui_highlight_win): Likewise.
1025 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1026 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1027 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1028 Don't set can_highlight.
1029
b049ce2d
TT
10302019-11-10 Tom Tromey <tom@tromey.com>
1031
1032 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1033 Remove unused declaration.
1034
992a7040
TT
10352019-11-08 Tom Tromey <tromey@adacore.com>
1036
1037 * top.c (read_command_file): Update.
1038 (command_line_input): Make return type const.
1039 * python/py-gdb-readline.c: Update.
1040 * linespec.c (decode_line_2): Update.
1041 * defs.h (command_line_input): Make return type const.
1042 * cli/cli-script.c (read_next_line): Make return type const.
1043 * ada-lang.c (get_selections): Update.
1044
ca3a04f6
CB
10452019-11-06 Christian Biesinger <cbiesinger@google.com>
1046
1047 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1048 * mi/mi-main.c (output_cores): Likewise.
1049 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1050 (linux_xfer_osdata_modules): Likewise.
1051 * remote.c (register_remote_support_xml): Likewise.
1052 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1053 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1054
e0eac551
TT
10552019-11-06 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-interp.c: Don't include readline.h.
1058 * tui/tui-hooks.c: Don't include readline.h.
1059 * symmisc.c: Include tilde.h, not readline.h.
1060 * symfile.c: Include tilde.h, not readline.h.
1061 * source.c: Include tilde.h, not readline.h.
1062 * solib.c: Include tilde.h, not readline.h.
1063 * psymtab.c: Include tilde.h, not readline.h.
1064 * exec.c: Include tilde.h, not readline.h.
1065 * corelow.c: Include tilde.h, not readline.h.
1066 * cli/cli-dump.c: Include tilde.h, not readline.h.
1067 * cli/cli-cmds.c: Don't include readline.h.
1068
825165c5
TT
10692019-11-05 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1072 (tui_disassemble): Set addr_size.
1073 (tui_disasm_window::set_contents): Use addr_size.
1074
91ae903f
TT
10752019-11-05 Tom Tromey <tom@tromey.com>
1076
1077 * rust-lang.c (rust_language_defn): Update.
1078 * python/py-value.c (valpy_string): Call c_get_string.
1079 * p-lang.c (pascal_language_defn): Update.
1080 * opencl-lang.c (opencl_language_defn): Update.
1081 * objc-lang.c (objc_language_defn): Update.
1082 * m2-lang.c (m2_language_defn): Update.
1083 * language.c (unknown_language_defn, auto_language_defn): Update.
1084 (default_get_string): Remove.
1085 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1086 * go-lang.c (go_language_defn): Update.
1087 * f-lang.c (f_language_defn): Update.
1088 * d-lang.c (d_language_defn): Update.
1089 * c-lang.c (c_language_defn, cplus_language_defn)
1090 (asm_language_defn, minimal_language_defn): Update.
1091 * ada-lang.c (ada_language_defn): Update.
1092 * language.h (struct language_defn) <la_get_string>: Remove.
1093 (LA_GET_STRING): Remove.
1094 (default_get_string): Don't declare.
1095
1df2f9ef
TT
10962019-11-05 Tom Tromey <tom@tromey.com>
1097
1098 * tui/tui-source.h (struct tui_source_window): Inline
1099 constructor. Remove destructor.
1100 <style_changed, m_observable>: Move to superclass.
1101 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1102 (struct tui_source_window_base): Move private members to end.
1103 <style_changed, m_observable>: Move from tui_source_window.
1104 * tui/tui-winsource.c (tui_copy_source_line): Move from
1105 tui-source.c. Rename from copy_source_line. Add special handling
1106 for negative line number.
1107 (tui_source_window_base::style_changed): Move from
1108 tui_source_window.
1109 (tui_source_window_base): Register observer.
1110 (~tui_source_window_base): New.
1111 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1112 rename.
1113 (tui_source_window::set_contents): Use tui_copy_source_line.
1114 (tui_source_window::tui_source_window): Move to tui-source.h.
1115 (tui_source_window::~tui_source_window): Remove.
1116 (tui_source_window::style_changed): Move to superclass.
1117 * tui/tui-disasm.c (tui_disassemble): Create string file with
1118 styling, when possible. Add "addr_size" parameter.
1119 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1120 Don't compute maximum size.
1121 (len_without_escapes): New function
1122
5d051055
TT
11232019-11-05 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1126 std::string.
1127 * tui/tui-winsource.c (tui_show_source_line): Update.
1128 * tui/tui-source.c (tui_source_window::set_contents): Update.
1129 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1130
ade7beea
CB
11312019-11-05 Christian Biesinger <cbiesinger@google.com>
1132
1133 * symtab.h (gdb_static_assert): Put && operator at the beginning
1134 of the line instead of the end.
1135
3573abe1
CB
11362019-11-04 Christian Biesinger <cbiesinger@google.com>
1137
1138 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1139 and sizeof (symbol).
1140 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1141
dae8b3eb
RO
11422019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1143
1144 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1145 * configure.host: Mark *-*-solaris2.10* obsolete.
1146 * configure.tgt: Mark Solaris < 11 obsolete.
1147 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1148 Update target triplet.
1149
5df96a4e
TT
11502019-11-01 Tom Tromey <tromey@adacore.com>
1151
1152 * utils.c (print_sys_errmsg): Simplify.
1153
b7481649
TT
11542019-11-01 Tom Tromey <tromey@adacore.com>
1155
1156 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1157
e48f6033
CB
11582019-11-01 Christian Biesinger <cbiesinger@google.com>
1159
1160 * configure: Regenerate.
1161 * configure.ac: Remove check for strerror_r.
1162 * gdbsupport/common.m4: Check for strerror_r.
1163
bd5766ec
LM
11642019-11-01 Luis Machado <luis.machado@linaro.org>
1165
1166 PR gdb/25124
1167
1168 * arm-tdep.c (arm_per_objfile): Rename to ...
1169 (arm_per_bfd): ... this.
1170 (arm_objfile_data_key): Rename to ...
1171 (arm_bfd_data_key): ... this.
1172 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1173 data.
1174 (arm_record_special_symbol): Likewise.
1175
e1709896
AB
11762019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1179 end.
1180 * c-typeprint.c (c_print_typedef): Likewise.
1181 * f-typeprint.c (f_print_typedef): Likewise.
1182 * m2-typeprint.c (m2_print_typedef): Likewise.
1183 * p-typeprint.c (pascal_print_typedef): Likewise.
1184 * rust-lang.c (rust_print_typedef): Likewise.
1185 * symtab.c (print_symbol_info): Print a newline after calling
1186 typedef_print.
1187
165f8965
AB
11882019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * symtab.c (info_module_cmdlist): New variable.
1191 (info_module_command): New function.
1192 (search_module_symbols): New function.
1193 (info_module_subcommand): New function.
1194 (struct info_modules_var_func_options): New struct.
1195 (info_modules_var_func_options_defs): New variable.
1196 (make_info_modules_var_func_options_def_group): New function.
1197 (info_module_functions_command): New function.
1198 (info_module_variables_command): New function.
1199 (info_module_var_func_command_completer): New function.
1200 (_initialize_symtab): Register new 'info module functions' and
1201 'info module variables' commands.
1202 * symtab.h (typedef symbol_search_in_module): New typedef.
1203 (search_module_symbols): Declare new function.
1204 * NEWS: Mention new commands.
1205
59c35742
AB
12062019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1209 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1210 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1211 MODULES_DOMAIN.
1212 (scan_partial_symbols): Only create partial module symbols for non
1213 declarations.
1214 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1215 and MODULES_DOMAIN.
1216 * symtab.c (search_domain_name): Likewise.
1217 (search_symbols): Likewise.
1218 (print_symbol_info): Likewise.
1219 (symtab_symbol_info): Likewise.
1220 (info_modules_command): New function.
1221 (_initialize_symtab): Register 'info modules' command.
1222 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1223 * NEWS: Mention new 'info modules' command.
1224
aed61d02
PW
12252019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1226
1227 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1228 and $_gdb_maint_setting_str.
1229
9ad9b77d
PW
12302019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1231
1232 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1233 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1234 (str_value_from_setting, gdb_setting_str_internal_fn)
1235 (gdb_maint_setting_str_internal_fn): New functions.
1236 (_initialize_cli_cmds): Define the new convenience functions.
1237 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1238 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1239
8d6efaa2
CB
12402019-10-31 Christian Biesinger <cbiesinger@google.com>
1241
1242 * agent.c (set_can_use_agent): When the setting is turned on,
1243 look up agent symbols if we don't have them yet.
1244 (agent_new_objfile): Don't look up agent symbols when the agent
1245 setting is off.
1246
33cb1647
CB
12472019-10-31 Christian Biesinger <cbiesinger@google.com>
1248
1249 * config.in: Regenerate.
1250
b231e86a
CB
12512019-10-31 Christian Biesinger <cbiesinger@google.com>
1252
1253 * configure: Regenerate.
1254 * configure.ac: Check for strerror_r.
1255 * gdbsupport/common-utils.h (safe_strerror): Change return value
1256 to const char * and document that this function is now threadsafe.
1257 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1258 thread_local and call strerror_r, if available.
1259 * utils.c (perror_string): Update.
1260 (print_sys_errmsg): Update.
1261
a2726d4f
LM
12622019-10-31 Luis Machado <luis.machado@linaro.org>
1263
1264 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1265 objfile_key.
1266 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1267 objfile to fetch per-bfd data.
1268 (arm_find_exidx_entry): Likewise.
1269
75cafaa6
CB
12702019-10-31 Christian Biesinger <cbiesinger@google.com>
1271
1272 * gdbsupport/agent.c (debug_agent): Change type to bool.
1273 (use_agent): Likewise.
1274 (all_agent_symbols_look_up): Likewise.
1275 (agent_loaded_p): Change return value to bool.
1276 (agent_look_up_symbols): Update.
1277 (agent_capability_check): Change return value to bool.
1278 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1279 (debug_agent): Change type to bool.
1280 (use_agent): Likewise.
1281 (agent_capability_check): Change return value to bool.
1282
808590ec
CB
12832019-10-30 Christian Biesinger <cbiesinger@google.com>
1284
1285 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1286 (build_minimal_symbol_hash_tables): Code to clear the table moved
1287 to clear_minimal_symbol_hash_tables.
1288 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1289 when needed.
1290
f18ad8a1
SM
12912019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * infcmd.c: Remove includes.
1294 * infrun.c: Remove includes.
1295
de93309a
SM
12962019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1299 (grow_vect): Remove declaration.
1300 (ada_type_of_array): Remove declaration.
1301 (ada_update_initial_language): Remove declaration.
1302 (ada_fold_name): Remove declaration.
1303 (ada_fill_in_ada_prototype): Remove declaration.
1304 (user_select_syms): Remove declaration.
1305 (get_selections): Remove declaration.
1306 (ada_tag_type): Remove declaration.
1307 (ada_value_tag): Remove declaration.
1308 (ada_is_others_clause): Remove declaration.
1309 (ada_in_variant): Remove declaration.
1310 (ada_value_struct_elt): Remove declaration.
1311 (ada_attribute_name): Remove declaration.
1312 (ada_system_address_type): Remove declaration.
1313 * ada-lang.c (ada_watch_location_expression): Make static.
1314 (GROW_VECT): Move here from ada-lang.h.
1315 (grow_vect): Make static.
1316 (ada_update_initial_language): Make static.
1317 (ada_fold_name): Make static.
1318 (ada_type_of_array): Make static.
1319 (encoded_ordered_before): Move up.
1320 (sort_choices): Move up.
1321 (print_signatures): Move up.
1322 (ada_print_symbol_signature): Move up.
1323 (get_selections): Move up and make static.
1324 (user_select_syms): Move up and make static.
1325 (ada_value_struct_elt): Move up and make static.
1326 (ada_tag_type): Make static.
1327 (ada_value_tag): Make static.
1328 (ada_is_others_clause): Make static.
1329 (ada_in_variant): Make static.
1330 (ada_attribute_name): Make static.
1331
cdc46a9f
SM
13322019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * ada-lang.c: Remove includes.
1335 * ada-typeprint.c: Remove includes.
1336 * ada-valprint.c: Remove includes.
1337
90421c56
SM
13382019-10-29 Simon Marchi <simon.marchi@efficios.com>
1339
1340 * addrmap.c: Add static assertions of type size, moved from
1341 _initialize_addrmap.
1342 (_initialize_addrmap): Remove.
1343
31edb802
CB
13442019-10-29 Christian Biesinger <cbiesinger@google.com>
1345
1346 * coffread.c (record_minimal_symbol): Update.
1347 (process_coff_symbol): Update.
1348 * dbxread.c (read_dbx_symtab): Update.
1349 * dwarf2read.c (add_partial_symbol): Update.
1350 (fixup_go_packaging): Update.
1351 (load_partial_dies): Update.
1352 (new_symbol): Update.
1353 * elfread.c (record_minimal_symbol): Change signature to use
1354 gdb::string_view instead of name+len.
1355 (elf_symtab_read): Update.
1356 (elf_rel_plt_read): Update.
1357 * mdebugread.c (parse_partial_symbols): Update.
1358 (handle_psymbol_enumerators): Update.
1359 (new_symbol): Update.
1360 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1361 to use gdb::string_view instead of name+len.
1362 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1363 * psympriv.h (add_psymbol_to_list): Likewise.
1364 * psymtab.c (add_psymbol_to_bcache): Likewise.
1365 (add_psymbol_to_list): Likewise.
1366 * stabsread.c (define_symbol): Update.
1367 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1368 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1369 (symbol_set_names): Likewise.
1370 * xcoffread.c (scan_xcoff_symtab): Update.
1371
0c921b21
CB
13722019-10-29 Christian Biesinger <cbiesinger@google.com>
1373
1374 * symtab.h (symbol_set_names): Document that copy_name must be
1375 set to true for non-nullterminated strings.
1376 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1377 linkage_name if the entry was not found and we need to demangle.
1378
35e65c49
CB
13792019-10-29 Christian Biesinger <cbiesinger@google.com>
1380
1381 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1382 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1383 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1384 * gdbsupport/gdb_binary_search.h: New file.
1385
ed2a2229
CB
13862019-10-29 Christian Biesinger <cbiesinger@google.com>
1387
1388 * NEWS: Mention new --with-system-gdbinit-dir option.
1389 * config.in: Regenerate.
1390 * configure: Regenerate.
1391 * configure.ac: Add new option --with-system-gdbinit-dir.
1392 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1393 for a ".gdb" suffix.
1394 * main.c (get_init_files): Change system_gdbinit argument to
1395 a vector and return the files in SYSTEM_GDBINIT_DIR in
1396 addition to SYSTEM_GDBINIT.
1397 (captured_main_1): Update.
1398 (print_gdb_help): Update.
1399 * top.c (print_gdb_configuration): Also print the value of
1400 SYSTEM_GDBINIT_DIR.
1401
87f34879
CB
14022019-10-28 Christian Biesinger <cbiesinger@google.com>
1403
1404 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1405 that takes gdb::string_view arguments.
1406
30baf67b
TV
14072019-10-26 Tom de Vries <tdevries@suse.de>
1408
1409 * aarch64-linux-tdep.c: Fix typos in comments.
1410 * aarch64-tdep.c: Same.
1411 * ada-lang.c: Same.
1412 * amd64-nat.c: Same.
1413 * arc-tdep.c: Same.
1414 * arch/aarch64-insn.c: Same.
1415 * block.c: Same.
1416 * breakpoint.h: Same.
1417 * btrace.h: Same.
1418 * c-varobj.c: Same.
1419 * cli/cli-decode.c: Same.
1420 * cli/cli-script.c: Same.
1421 * cli/cli-utils.h: Same.
1422 * coff-pe-read.c: Same.
1423 * coffread.c: Same.
1424 * compile/compile-cplus-symbols.c: Same.
1425 * compile/compile-object-run.c: Same.
1426 * completer.c: Same.
1427 * corelow.c: Same.
1428 * cp-support.c: Same.
1429 * demangle.c: Same.
1430 * dwarf-index-write.c: Same.
1431 * dwarf2-frame.c: Same.
1432 * dwarf2-frame.h: Same.
1433 * eval.c: Same.
1434 * frame-base.h: Same.
1435 * frame.h: Same.
1436 * gdbcmd.h: Same.
1437 * gdbtypes.h: Same.
1438 * gnu-nat.c: Same.
1439 * guile/scm-objfile.c: Same.
1440 * i386-tdep.c: Same.
1441 * i386-tdep.h: Same.
1442 * infcall.c: Same.
1443 * infcall.h: Same.
1444 * linux-nat.c: Same.
1445 * m68k-tdep.c: Same.
1446 * macroexp.c: Same.
1447 * memattr.c: Same.
1448 * mi/mi-cmd-disas.c: Same.
1449 * mi/mi-getopt.h: Same.
1450 * mi/mi-main.c: Same.
1451 * minsyms.c: Same.
1452 * nat/aarch64-sve-linux-sigcontext.h: Same.
1453 * objfiles.h: Same.
1454 * ppc-linux-nat.c: Same.
1455 * ppc-linux-tdep.c: Same.
1456 * ppc-tdep.h: Same.
1457 * progspace.h: Same.
1458 * prologue-value.h: Same.
1459 * python/py-evtregistry.c: Same.
1460 * python/py-instruction.h: Same.
1461 * record-btrace.c: Same.
1462 * record-full.c: Same.
1463 * remote.c: Same.
1464 * rs6000-tdep.c: Same.
1465 * ser-tcp.c: Same.
1466 * sol-thread.c: Same.
1467 * sparc-sol2-tdep.c: Same.
1468 * sparc64-tdep.c: Same.
1469 * stabsread.c: Same.
1470 * symfile.c: Same.
1471 * symtab.h: Same.
1472 * target.c: Same.
1473 * tracepoint.c: Same.
1474 * tui/tui-data.h: Same.
1475 * tui/tui-io.c: Same.
1476 * tui/tui-win.c: Same.
1477 * tui/tui.c: Same.
1478 * unittests/rsp-low-selftests.c: Same.
1479 * user-regs.h: Same.
1480 * utils.c: Same.
1481 * utils.h: Same.
1482 * valarith.c: Same.
1483 * valops.c: Same.
1484 * valprint.c: Same.
1485 * valprint.h: Same.
1486 * value.c: Same.
1487 * value.h: Same.
1488 * varobj.c: Same.
1489 * x86-nat.h: Same.
1490 * xtensa-tdep.c: Same.
1491
1834d45f
AT
14922019-10-25 Ali Tamur <tamur@google.com>
1493
1494 * charset.c (find_charset_names): Reflect API change.
1495
5396ae17
CB
14962019-10-25 Christian Biesinger <cbiesinger@google.com>
1497
1498 * symtab.c (struct demangled_name_entry): Change demangled name
1499 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1500 part of the struct anymore.
1501 (symbol_set_names): No longer obstack allocate + copy the demangled
1502 name, just store the allocated name from bfd.
1503
93878f47
TT
15042019-10-25 Tom Tromey <tromey@adacore.com>
1505
1506 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1507 (bsearch_cie_cmp, add_cie): Remove.
1508 (find_cie): Reimplement.
1509 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1510 (dwarf2_build_frame_info): Update.
1511
7b71fc97
L
15122019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 PR gdb/25126
1515 * symfile.c (reread_symbols): Call forget_cached_source_info to
1516 clear the stale source cache.
1517
cbb5a2ea
CB
15182019-10-24 Christian Biesinger <cbiesinger@google.com>
1519
1520 * configure: Regenerate.
1521 * configure.ac: Remove code that sets python_has_threads.
1522
71737c43
CB
15232019-10-24 Christian Biesinger <cbiesinger@google.com>
1524
1525 * config.in: Regenerate.
1526 * configure: Regenerate.
1527 * configure.ac: Remove the code that uses sed to get the python
1528 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1529
33d569b7
AB
15302019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1533 error paths.
1534
f16f7b7c
TT
15352019-10-23 Tom Tromey <tom@tromey.com>
1536
1537 * arc-tdep.c: Remove ".." from include.
1538 * frv-tdep.c: Remove ".." from include.
1539 * lm32-tdep.c: Remove ".." from include.
1540 * microblaze-tdep.c: Remove ".." from include.
1541 * or1k-tdep.h: Remove ".." from include.
1542 * s12z-tdep.c: Remove ".." from include.
1543 * Makefile.in (OPCODES_CFLAGS): Add comment.
1544 (TOP_CFLAGS): New variable.
1545 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1546
6999161a
TT
15472019-10-23 Tom Tromey <tom@tromey.com>
1548
1549 * Makefile.in (READLINE_DIR): Update.
1550
12e7c35e
TBA
15512019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1552
1553 * infcall.c (call_function_by_hand_dummy): Fix the function
1554 comment. And extract out a code section into...
1555 (reserve_stack_space): ...this new function.
1556
37055cad
TBA
15572019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1558
1559 * infcall.c (value_arg_coerce): Remove an unused parameter.
1560 (call_function_by_hand_dummy): Update the call to
1561 'value_arg_coerce'.
1562
39bcc47c
TBA
15632019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 * infcall.c (call_function_by_hand_dummy): Refactor.
1566
bd888c0f
TBA
15672019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568
1569 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1570
c12d372d
TT
15712019-10-23 Tom Tromey <tom@tromey.com>
1572
1573 * configure: Rebuild.
1574 * configure.ac: Don't check for sigprocmask.
1575 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1576
4d0b984b
TT
15772019-10-23 Tom Tromey <tom@tromey.com>
1578
1579 * configure: Rebuild.
1580 * acinclude.m4: Use m4_include, not sinclude.
1581
7e785608
TV
15822019-10-23 Tom de Vries <tdevries@suse.de>
1583
1584 PR breakpoints/24687
1585 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1586
403772ef
CB
15872019-10-22 Christian Biesinger <cbiesinger@google.com>
1588
1589 * symtab.c (struct demangled_name_entry) <language>: Change from
1590 bitfield to regular variable.
1591
3a494279
CB
15922019-10-22 Christian Biesinger <cbiesinger@google.com>
1593
1594 * symtab.c (struct demangled_name_entry): Add a constructor.
1595 (free_demangled_name_entry): New function to call the destructor
1596 for demangled_name_entry.
1597 (create_demangled_names_hash): Pass free_demangled_name_entry to
1598 htab_create_alloc.
1599 (symbol_set_names): Call placement new for demangled_name_entry.
1600 * utils.c: No longer include xxhash.h here, now that fast_hash
1601 is inlined in the header.
1602 * utils.h: Instead, include it here.
1603
ccb1ba62
CB
16042019-10-22 Christian Biesinger <cbiesinger@google.com>
1605
1606 * Makefile.in: Link with libxxhash.
1607 * config.in: Regenerate.
1608 * configure: Regenerate.
1609 * configure.ac: Search for libxxhash.
1610 * utils.c (fast_hash): Use xxhash if present.
1611
1a6ff1a9
CB
16122019-10-22 Christian Biesinger <cbiesinger@google.com>
1613
1614 * utils.h (fast_hash): New function.
1615 * symtab.c (hash_demangled_name_entry): Call new function
1616 fast_hash.
1617
7bb43059
CB
16182019-10-22 Christian Biesinger <cbiesinger@google.com>
1619
1620 * symtab.c (struct demangled_name_entry): Change type of mangled
1621 to gdb::string_view. Also adds a constructor that takes the
1622 mangled name.
1623 (hash_demangled_name_entry): Update.
1624 (eq_demangled_name_entry): Update.
1625 (free_demangled_name_entry): New function to call the destructor
1626 now that this is not a POD anymore.
1627 (create_demangled_names_hash): Pass free_demangled_name_entry to
1628 htab_create_alloc.
1629 (symbol_set_names): Update.
1630
7ba99d21
AT
16312019-10-21 Ali Tamur <tamu@google.com>
1632
1633 * dwarf2read.c (dir_index): Change type.
1634 (file_name_index): Likewise.
1635 (line_header::include_dir_at): Change comment and implementation on
1636 whether it is DWARF 5.
1637 (line_header::is_valid_file_index): New function.
1638 (line_header::file_name_at): Change comment and implementation on
1639 whether it is DWARF 5.
1640 (line_header::file_names): Change to private field renamed as
1641 m_file_names and introduce a new accessor method.
1642 (line_header::file_names_size): New method.
1643 (line_header::include_dirs): Change to private field and rename as
1644 m_include_dirs.
1645 (dw2_get_file_names_reader): Define local var at a smaller scope and
1646 reflect API change.
1647 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1648 (process_structure_scope): Likewise.
1649 (line_header::add_include_dir): Change message and reflect renaming.
1650 (line_header::add_file_name): Likewise.
1651 (read_formatted_entries): Handle DW_FORM_data16.
1652 (dwarf_decode_line_header): Fix line header length calculation.
1653 (psymtab_include_file_name): Change comment and API.
1654 (lnp_state_machine::m_file): Update comment and reflect type change.
1655 (lnp_state_machine::record_line): Reflect type change.
1656 (dwarf_decode_lines): Reflect API change.
1657 (file_file_name): Likewise.
1658 (file_full_name): Likewise.
1659
45f47c3a
AB
16602019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1661
1662 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1663
e5f3c0e3
TT
16642019-10-21 Tom Tromey <tom@tromey.com>
1665
1666 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1667
a0a461e5
TT
16682019-10-21 Tom Tromey <tom@tromey.com>
1669
1670 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1671 NM_H. Use AC_CONFIG_LINKS.
1672 * configure: Rebuild.
1673 * Makefile.in (NM_H): New variable.
1674 (generated_files): Add NM_H. Remove gcore.
1675 (nm.h, stamp-nmh): New targets.
1676
54d83b8d
TT
16772019-10-20 Tom Tromey <tom@tromey.com>
1678
1679 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1680 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1681 obsolete comment.
1682 (put_objfile_before): Now static.
1683
23771117
SM
16842019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1685
1686 * gdbsupport/common-utils.h (startswith): Change return type to
1687 bool.
1688
39ef2f62
CB
16892019-10-19 Christian Biesinger <cbiesinger@google.com>
1690
1691 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1692 * breakpoint.c (bp_locations_compare): Rename to...
1693 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1694 (update_global_location_list): Use std::sort instead of qsort.
1695 * buildsym.c (compare_line_numbers): Rename to...
1696 (lte_is_less_than): ...this, and change to std::sort semantics.
1697 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1698 instead of qsort.
1699 * disasm.c (compare_lines): Rename to...
1700 (line_is_less_than): ...this, and change to std::sort semantics.
1701 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1702 of qsort.
1703 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1704 (fde_is_less_than): ...this, and change to std::sort semantics.
1705 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1706 * mdebugread.c (compare_blocks):
1707 (block_is_less_than): ...this, and change to std::sort semantics.
1708 (sort_blocks): Call std::sort instead of qsort.
1709 * objfiles.c (qsort_cmp): Rename to...
1710 (sort_cmp): ...this, and change to std::sort semantics.
1711 (update_section_map): Call std::sort instead of qsort.
1712 * remote.c (compare_pnums): Remove.
1713 (map_regcache_remote_table): Call std::sort instead of qsort.
1714 * utils.c (compare_positive_ints): Remove.
1715 * utils.h (compare_positive_ints): Remove.
1716 * xcoffread.c (compare_lte): Remove.
1717 (arrange_linetable): Call std::sort instead of qsort.
1718
f71433ee
SDJ
17192019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1720
1721 * symfile.c (init_entry_point_info): Fix typo.
1722 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1723
85102364
TV
17242019-10-18 Tom de Vries <tdevries@suse.de>
1725
1726 * aarch64-tdep.c: Fix typos in comments.
1727 * ada-lang.c: Same.
1728 * ada-tasks.c: Same.
1729 * alpha-tdep.c: Same.
1730 * alpha-tdep.h: Same.
1731 * amd64-nat.c: Same.
1732 * amd64-windows-tdep.c: Same.
1733 * arc-tdep.c: Same.
1734 * arc-tdep.h: Same.
1735 * arch-utils.c: Same.
1736 * arm-nbsd-tdep.c: Same.
1737 * arm-tdep.c: Same.
1738 * ax-gdb.c: Same.
1739 * blockframe.c: Same.
1740 * btrace.c: Same.
1741 * c-varobj.c: Same.
1742 * coff-pe-read.c: Same.
1743 * coffread.c: Same.
1744 * cris-tdep.c: Same.
1745 * darwin-nat.c: Same.
1746 * dbxread.c: Same.
1747 * dcache.c: Same.
1748 * disasm.c: Same.
1749 * dtrace-probe.c: Same.
1750 * dwarf-index-write.c: Same.
1751 * dwarf2-frame-tailcall.c: Same.
1752 * dwarf2-frame.c: Same.
1753 * dwarf2read.c: Same.
1754 * eval.c: Same.
1755 * exceptions.c: Same.
1756 * fbsd-tdep.c: Same.
1757 * findvar.c: Same.
1758 * frame.c: Same.
1759 * frv-tdep.c: Same.
1760 * gnu-v3-abi.c: Same.
1761 * go32-nat.c: Same.
1762 * h8300-tdep.c: Same.
1763 * hppa-tdep.c: Same.
1764 * i386-linux-tdep.c: Same.
1765 * i386-tdep.c: Same.
1766 * ia64-libunwind-tdep.c: Same.
1767 * ia64-tdep.c: Same.
1768 * infcmd.c: Same.
1769 * infrun.c: Same.
1770 * linespec.c: Same.
1771 * linux-nat.c: Same.
1772 * linux-thread-db.c: Same.
1773 * machoread.c: Same.
1774 * mdebugread.c: Same.
1775 * mep-tdep.c: Same.
1776 * mn10300-tdep.c: Same.
1777 * namespace.c: Same.
1778 * objfiles.c: Same.
1779 * opencl-lang.c: Same.
1780 * or1k-tdep.c: Same.
1781 * osabi.c: Same.
1782 * ppc-linux-nat.c: Same.
1783 * ppc-linux-tdep.c: Same.
1784 * ppc-sysv-tdep.c: Same.
1785 * printcmd.c: Same.
1786 * procfs.c: Same.
1787 * record-btrace.c: Same.
1788 * record-full.c: Same.
1789 * remote-fileio.c: Same.
1790 * remote.c: Same.
1791 * rs6000-tdep.c: Same.
1792 * s12z-tdep.c: Same.
1793 * score-tdep.c: Same.
1794 * ser-base.c: Same.
1795 * ser-go32.c: Same.
1796 * skip.c: Same.
1797 * sol-thread.c: Same.
1798 * solib-svr4.c: Same.
1799 * solib.c: Same.
1800 * source.c: Same.
1801 * sparc-nat.c: Same.
1802 * sparc-sol2-tdep.c: Same.
1803 * sparc-tdep.c: Same.
1804 * sparc64-tdep.c: Same.
1805 * stabsread.c: Same.
1806 * stack.c: Same.
1807 * symfile.c: Same.
1808 * symtab.c: Same.
1809 * target-descriptions.c: Same.
1810 * target-float.c: Same.
1811 * thread.c: Same.
1812 * utils.c: Same.
1813 * valops.c: Same.
1814 * valprint.c: Same.
1815 * value.c: Same.
1816 * varobj.c: Same.
1817 * windows-nat.c: Same.
1818 * xcoffread.c: Same.
1819 * xstormy16-tdep.c: Same.
1820 * xtensa-tdep.c: Same.
1821
c5adaa19
TT
18222019-10-17 Tom Tromey <tromey@adacore.com>
1823
1824 * configure: Rebuild.
1825 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1826 in AC_CONFIG_FILES invocation.
1827 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1828 new-style config.status invocation.
1829
405feb71
TV
18302019-10-17 Tom de Vries <tdevries@suse.de>
1831
1832 * arm-nbsd-nat.c: Fix typos in comments.
1833 * arm-tdep.c: Same.
1834 * darwin-nat-info.c: Same.
1835 * dwarf2read.c: Same.
1836 * elfread.c: Same.
1837 * event-top.c: Same.
1838 * findvar.c: Same.
1839 * gdbtypes.c: Same.
1840 * hppa-tdep.c: Same.
1841 * i386-tdep.c: Same.
1842 * jit.c: Same.
1843 * main.c: Same.
1844 * mdebugread.c: Same.
1845 * moxie-tdep.c: Same.
1846 * nto-procfs.c: Same.
1847 * osabi.c: Same.
1848 * ppc-linux-tdep.c: Same.
1849 * remote.c: Same.
1850 * riscv-tdep.c: Same.
1851 * s390-tdep.c: Same.
1852 * sh-tdep.c: Same.
1853 * sparc-linux-tdep.c: Same.
1854 * sparc-nat.c: Same.
1855 * stack.c: Same.
1856 * target-descriptions.c: Same.
1857 * top.c: Same.
1858 * varobj.c: Same.
1859
befcd486
TT
18602019-10-16 Tom Tromey <tom@tromey.com>
1861
1862 * objfiles.h (struct objfile) <original_name>: Now const.
1863
17bfe554
CB
18642019-10-16 Christian Biesinger <cbiesinger@google.com>
1865
1866 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1867 pass on to sigsetjmp's second argument.
1868 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1869
950b7495
KS
18702019-10-16 Keith Seitz <keiths@redhat.com>
1871
1872 PR gdb/23567
1873 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1874 sections whose size is greater than the file size.
1875
ff371ec9
JW
18762019-10-16 Jim Wilson <jimw@sifive.com>
1877
1878 * riscv-tdep.c (riscv_gcc_target_options): New.
1879 (riscv_gnu_triplet_regexp): New.
1880 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1881 set_gdbarch_gnu_triplet_regexp.
1882
fec4e896
CB
18832019-10-16 Christian Biesinger <cbiesinger@google.com>
1884
1885 * Makefile.in: Add xml-builtin.h.
1886 * features/feature_to_c.sh: Add an include for xml-builtin.h
1887 to ensure that the compiler checks that the types match.
1888 * xml-builtin.h: New file.
1889 * xml-support.c (fetch_xml_builtin): Add missing const.
1890 * xml-support.h: Remove declaration of xml_builtins.
1891
d10eccaa
TV
18922019-10-16 Tom de Vries <tdevries@suse.de>
1893
1894 PR tdep/25096
1895 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1896 (amd64_classify_aggregate): ... here.
1897 (amd64_classify_aggregate_field): Handled fiels of nested structs
1898 recursively.
1899
745ff14e
TV
19002019-10-16 Tom de Vries <tdevries@suse.de>
1901
1902 PR tdep/24104
1903 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1904 that handles 'theclass'.
1905
791b7405
AB
19062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * linespec.c (decode_digits_ordinary): Update comment.
1909 * make-target-delegates: No longer need to handle VEC case.
1910 * memrange.c (normalize_mem_ranges): Update comment.
1911 * namespace.c (add_using_directive): Update comment.
1912 * objc-lang.c (uniquify_strings): Update comment.
1913 * ppc-linux-nat.c (struct thread_points): Update comment.
1914 * probe.h (find_probes_in_objfile): Update comment.
1915 * target.h (enum flash_preserve_mode): Update comment.
1916 * varobj.c (varobj_restrict_range): Update comment.
1917 * varobj.h (varobj_list_children): Update comment.
1918
0dc32745
AB
19192019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * Makefile.in: Remove references to vec.h and vec.c.
1922 * aarch64-tdep.c: No longer include vec.h.
1923 * ada-lang.c: Likewise.
1924 * ada-lang.h: Likewise.
1925 * arm-tdep.c: Likewise.
1926 * ax.h: Likewise.
1927 * breakpoint.h: Likewise.
1928 * charset.c: Likewise.
1929 * cp-support.h: Likewise.
1930 * dtrace-probe.c: Likewise.
1931 * dwarf2read.c: Likewise.
1932 * extension.h: Likewise.
1933 * gdb_bfd.c: Likewise.
1934 * gdbsupport/gdb_vecs.h: Likewise.
1935 * gdbsupport/vec.c: Remove.
1936 * gdbsupport/vec.h: Remove.
1937 * gdbthread.h: Likewise.
1938 * guile/scm-type.c: Likewise.
1939 * inline-frame.c: Likewise.
1940 * machoread.c: Likewise.
1941 * memattr.c: Likewise.
1942 * memrange.h: Likewise.
1943 * namespace.h: Likewise.
1944 * nat/linux-btrace.h: Likewise.
1945 * osdata.c: Likewise.
1946 * parser-defs.h: Likewise.
1947 * progspace.h: Likewise.
1948 * python/py-type.c: Likewise.
1949 * record-btrace.c: Likewise.
1950 * rust-exp.y: Likewise.
1951 * solib-target.c: Likewise.
1952 * stap-probe.c: Likewise.
1953 * target-descriptions.c: Likewise.
1954 * target-memory.c: Likewise.
1955 * target.h: Likewise.
1956 * varobj.c: Likewise.
1957 * varobj.h: Likewise.
1958 * xml-support.h: Likewise.
1959
ae640021
AB
19602019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1963 Update for new std::vector based implementation.
1964 (process_psymtab_comp_unit_reader): Likewise.
1965 (scan_partial_symbols): Likewise.
1966 (recursively_compute_inclusions): Likewise.
1967 (compute_compunit_symtab_includes): Likewise.
1968 (process_imported_unit_die): Likewise.
1969 (queue_and_load_dwo_tu): Likewise.
1970 (follow_die_sig_1): Likewise.
1971 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1972 (typedef dwarf2_per_cu_ptr): Remove.
1973 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1974 function.
1975 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1976 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1977 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1978 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1979 std::vector.
1980
55dfc88f
TT
19812019-10-15 Tom Tromey <tromey@adacore.com>
1982
1983 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1984 TID.
1985
96b49c5e
TT
19862019-10-15 Tom Tromey <tromey@adacore.com>
1987
1988 * windows-nat.c (windows_nat_target::fetch_registers)
1989 (windows_nat_target::store_registers): Rename "pid" to "tid".
1990
953cff56
TT
19912019-10-15 Tom Tromey <tromey@adacore.com>
1992
1993 * gdbarch.h, gdbarch.c: Rebuild.
1994 * gdbarch.sh (gcc_target_options): Change return type to
1995 std::string.
1996 * compile/compile.c (get_args): Update.
1997 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1998 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1999 std::string.
2000 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2001 std::string.
2002 * arch-utils.c (default_gcc_target_options): Return std::string.
2003 * arch-utils.h (default_gcc_target_options): Return std::string.
2004 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2005
81e6b8eb
CB
20062019-10-15 Christian Biesinger <cbiesinger@google.com>
2007
2008 * breakpoint.c (breakpoint_chain): Make static.
2009 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2010 of accessing breakpoint_chain.
2011
95da600f
CB
20122019-10-15 Christian Biesinger <cbiesinger@google.com>
2013
2014 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2015 to a gdb::function_view and return value to bool.
2016 * breakpoint.h (iterate_over_breakpoints): Likewise.
2017 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2018 (pop_dummy_frame): Update.
2019 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2020 (gdbscm_breakpoints): Update.
2021 * python/py-breakpoint.c (build_bp_list): Update.
2022 (gdbpy_breakpoints): Update.
2023 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2024 Update.
2025 (bpfinishpy_handle_stop): Update.
2026 (bpfinishpy_handle_exit): Update.
2027 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2028 (svr4_update_solib_event_breakpoints): Update.
2029
ba18312d
AA
20302019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2031
2032 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2033 when unwrapping single-field structs.
2034
6acc1a0b
SM
20352019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 * dwarf2read.c: Remove includes.
2038
284782de
SM
20392019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * ui-out.c (ui_out::call_do_message): Silence
2042 -Wformat-nonliteral warning.
2043
073bbbb0
SM
20442019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2047 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2048 include: readline/tilde.h.
2049
7b9a15e1
CB
20502019-10-12 Christian Biesinger <cbiesinger@google.com>
2051
2052 * remote.c (remote_target::get_trace_status): Remove declaration of
2053 trace_regblock_size.
2054
cc8dee1f
CB
20552019-10-12 Christian Biesinger <cbiesinger@google.com>
2056
2057 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2058 (show_user): Remove declaration of cmdlist.
2059 * cli/cli-cmds.h (max_user_call_depth): Declare.
2060 * cli/cli-script.c (execute_user_command): Remove declaration
2061 of max_user_call_depth.
2062
a83d4ef6
JW
20632019-10-11 Jim Wilson <jimw@sifive.com>
2064
5f93c5a6
JW
2065 * gdbsupport/print-utils.h (pulongest): Fix comment.
2066 (plongest): Likewise.
2067 (phex): Add missing comment, mention leading zeros.
2068 (phex_nz): Add mention of no leading zeros to comment.
2069
a83d4ef6
JW
2070 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2071 plongest instead of unsigned long long cast.
2072
26344e0c
CB
20732019-10-10 Christian Biesinger <cbiesinger@google.com>
2074
2075 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2076 for external_editor_command and gdbtk_test.
2077
c2c440a9
CB
20782019-10-10 Christian Biesinger <cbiesinger@google.com>
2079
2080 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2081 * varobj.c (varobjdebug): Move comment to...
2082 * varobj.h (varobjdebug): ...here, and declare.
2083
a31bff9d
TT
20842019-10-09 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2087 erase_data_content.
2088
7523da63
TT
20892019-10-09 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2092 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2093 * tui/tui-command.c (tui_cmd_window::resize)
2094 (tui_refresh_cmd_win): Update.
2095 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2096 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2097 * tui/tui-data.c (~tui_gen_win_info): Remove.
2098 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2099 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2100 (tui_redisplay_readline, tui_mld_flush)
2101 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2102 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2103 (tui_data_window::erase_data_content)
2104 (tui_data_item_window::rerender)
2105 (tui_data_item_window::refresh_window): Update.
2106 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2107 (box_win, tui_gen_win_info::make_window)
2108 (tui_gen_win_info::make_visible): Update.
2109 (tui_delete_win): Remove.
2110 * tui/tui-winsource.c
2111 (tui_source_window_base::do_erase_source_content): Update.
2112 (tui_show_source_line, tui_source_window_base::update_tab_width)
2113 (tui_source_window_base::update_exec_info): Update.
2114 * tui/tui-data.h (struct curses_deleter): New.
2115 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2116 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2117
a7798e7f
TT
21182019-10-09 Tom Tromey <tom@tromey.com>
2119
2120 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2121
5c45899e
TT
21222019-10-09 Tom Tromey <tom@tromey.com>
2123
2124 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2125 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2126
6d7fd9aa
TT
21272019-10-09 Tom Tromey <tom@tromey.com>
2128
2129 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2130 window height directly.
2131 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2132 declare.
2133 * tui/tui-layout.c (tui_default_win_height): Remove.
2134 (tui_default_win_viewport_height): Remove.
2135
d2dd1084
TT
21362019-10-09 Tom Tromey <tom@tromey.com>
2137
2138 * tui/tui.h: Remove comments.
2139
cff32449
TV
21402019-10-09 Tom de Vries <tdevries@suse.de>
2141
2142 * python/lib/gdb/printer/bound_registers.py: Use
2143 '^builtin_type_bound128' as regexp argument for
2144 add_builtin_pretty_printer.
2145
6a25e8a2
CB
21462019-10-09 Christian Biesinger <cbiesinger@google.com>
2147
2148 * guile/guile.c (guile_extension_script_ops): Remove forward
2149 declaration and mark as static.
2150 (guile_script_ops): Likewise.
2151 (extension_language_guile): Move further down in the file so
2152 it can reference the definitions for guile_{extension_,}script_ops.
2153
6d9d6da4
AA
21542019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2155
2156 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2157 except SORTL, DFLTCC, and KDSA.
2158
3abea05d
TT
21592019-10-08 Tom Tromey <tromey@adacore.com>
2160
2161 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2162 (struct safe_symbol_file_add_args): Remove.
2163
dde996e2
TT
21642019-10-08 Tom Tromey <tromey@adacore.com>
2165
2166 * windows-nat.c: Don't include buildsym-legacy.h.
2167
cd6fdaa1
TT
21682019-10-08 Tom Tromey <tromey@adacore.com>
2169
2170 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2171
79bb1944
CB
21722019-10-08 Christian Biesinger <cbiesinger@google.com>
2173
2174 * gdbtypes.c (overload_debug): Move comment to header.
2175 * gdbtypes.h (overload_debug): Declare.
2176 * valops.c: Remove declaration of overload_debug, instead
2177 include gdbtypes.h.
2178
34916edc
CB
21792019-10-08 Christian Biesinger <cbiesinger@google.com>
2180
2181 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2182 through _().
2183 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2184 move comment...
2185 * language.h (lang_frame_mismatch_warn): ... here. Also add
2186 declaration.
2187 * top.c (lang_frame_mismatch_warn): Remove declaration.
2188 (check_frame_language_change): Pass lang_frame_mismatch_warn
2189 through _().
2190
bad5c026
CB
21912019-10-07 Christian Biesinger <cbiesinger@google.com>
2192
2193 * c-lang.h (vtbl_ptr_name): Declare.
2194 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2195 it from the header.
2196 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2197
51f1fdc3
CB
21982019-10-07 Christian Biesinger <cbiesinger@google.com>
2199
2200 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2201 gdb_static_assert.
2202
30d1f018
WP
22032019-10-07 Weimin Pan <weimin.pan@oracle.com>
2204
606813d5
WP
2205 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2206 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2207 * ctfread.c: New file.
2208 * ctfread.h: New file.
2209 * elfread.c: Include ctfread.h.
2210 (struct elfinfo text_p): New member ctfsect.
2211 (elf_locate_sections): Mark CTF section.
2212 (elf_symfile_read): Call elfctf_build_psymtabs.
2213 * Makefile.in (LIBCTF): Add.
2214 (CLIBS): Use it.
2215 (CDEPS): Likewise.
2216 (DIST): Add ctfread.c.
606813d5
WP
2217
22182019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * ctfread.c (struct nextfield): Renamed to ...
2221 (struct ctf_nextfield): ... this.
2222 (struct field_info): Renamed to ...
2223 (strut ctf_field_info): ... this.
2224 (attach_fields_to_type): Update for renamed structures.
2225 (ctf_add_member_cb): Likewise.
2226 (ctf_add_enum_member_cb): Likewise.
2227 (process_struct_members): Likewise.
2228 (process_enum_type): Likewise.
30d1f018 2229
518fe38c
WP
22302019-10-07 Weimin Pan <weimin.pan@oracle.com>
2231
2232 * tracectf.h: Rename, was ctf.h.
2233 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2234 * tracefile.c: Likewise.
2235 * tracepoint.c: Remove unused include ctf.h.
2236 * mi/mi-main.c: Likewise.
2237 * Makefile.in Replace ctf.c with tracectf.c.
2238
225f296a
JB
22392019-10-06 Joel Brobecker <brobecker@adacore.com>
2240
2241 * version.in: Change version number to "9.0.50.DATE-git".
2242
77c2dba3
TT
22432019-10-03 Tom Tromey <tom@tromey.com>
2244
2245 PR rust/24976:
2246 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2247
179aed7f
AB
22482019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2251 cp_search_name_hash.
2252 * NEWS: Add entry about nested function support.
2253
0a4b0913
AB
22542019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2255 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2258 for nested static variables when searchin VAR_DOMAIN.
2259 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2260 global scope, update comment.
2261 (add_partial_subprogram): Call add_partial_subprogram recursively
2262 for nested subroutines when processinng Fortran.
2263 (load_partial_dies): Process the child entities of a subprogram
2264 when processing Fortran.
2265 (partial_die_parent_scope): Handle building scope
2266 for Fortran nested functions.
2267 (process_die): Record that nested functions have a scope.
2268 (new_symbol): Always record Fortran subprograms on the global
2269 symbol list.
2270 (determine_prefix): How to build the prefix for Fortran
2271 subprograms.
2272
d8c06f22
AB
22732019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2276 have just sent the thread a SIGSTOP and are waiting for it to
2277 arrive.
2278
a8b3b8e9
AB
22792019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * btrace.c (btrace_add_pc): Remove whitespace before the template
2282 parameter in 'std::vector <...>'.
2283 (parse_xml_btrace_block): Likewise.
2284 (btrace_maint_decode_pt): Likewise.
2285 (btrace_maint_update_packets): Likewise.
2286 (btrace_maint_print_packets): Likewise.
2287 * btrace.h (struct btrace_maint_info): Likewise.
2288 * dwarf2read.c (struct type_unit_group): Likewise.
2289 (build_type_psymtabs_reader): Likewise.
2290 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2291 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2292 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2293
4d825eab
TV
22942019-10-03 Tom de Vries <tdevries@suse.de>
2295
2296 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2297 the first line of the help text for set/show style metadata.
2298
80fd2826
TT
22992019-10-02 Tom Tromey <tromey@adacore.com>
2300
2301 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2302 * gdbsupport/common-inferior.c: New file.
2303 * infcmd.c (startup_with_shell): Don't define.
2304 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2305 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2306 * inferior.h (startup_with_shell): Don't declare.
2307
70054538
CB
23082019-10-02 Christian Biesinger <cbiesinger@google.com>
2309
2310 * gdbsupport/gdb_assert.h: Include errors.h.
2311 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2312
37f6a7f4
TT
23132019-10-02 Tom Tromey <tromey@adacore.com>
2314
2315 * NEWS: Add $_ada_exception entry.
2316 * ada-lang.c (struct ada_catchpoint): Add constructor.
2317 <m_kind>: New member.
2318 (allocate_location_exception, re_set_exception): Remove
2319 "ex" parameter.
2320 (should_stop_exception): Compute $_ada_exception.
2321 (check_status_exception, print_it_exception)
2322 (print_one_exception, print_mention_exception): Remove
2323 "ex" parameter.
2324 (allocate_location_catch_exception, re_set_catch_exception)
2325 (check_status_exception, print_it_catch_exception)
2326 (print_one_catch_exception, print_mention_catch_exception)
2327 (print_recreate_catch_exception)
2328 (allocate_location_catch_exception_unhandled)
2329 (re_set_catch_exception_unhandled)
2330 (check_status_exception, print_it_catch_exception_unhandled)
2331 (print_one_catch_exception_unhandled)
2332 (print_mention_catch_exception_unhandled)
2333 (print_recreate_catch_exception_unhandled)
2334 (allocate_location_catch_assert, re_set_catch_assert)
2335 (check_status_assert, print_it_catch_assert)
2336 (print_one_catch_assert, print_mention_catch_assert)
2337 (print_recreate_catch_assert)
2338 (allocate_location_catch_handlers, re_set_catch_handlers)
2339 (check_status_handlers, print_it_catch_handlers)
2340 (print_one_catch_handlers, print_mention_catch_handlers)
2341 (print_recreate_catch_handlers): Remove.
2342 (create_ada_exception_catchpoint): Update.
2343 (initialize_ada_catchpoint_ops): Update.
2344
fccf9de1
TT
23452019-10-02 Tom Tromey <tromey@adacore.com>
2346
2347 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2348 (create_excep_cond_exprs): Simplify exception string computation.
2349 (ada_exception_catchpoint_cond_string): Likewise.
2350
4b610737
TT
23512019-10-02 Tom Tromey <tromey@adacore.com>
2352
2353 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2354 * ada-lang.c (lesseq_defined_than): Handle
2355 LOC_STATIC.
2356 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2357 parameter.
2358 (dwarf2_has_info): Likewise.
2359 (new_symbol): Set maybe_copied on symbol when
2360 appropriate.
2361 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2362 parameter.
2363 <can_copy>: New member.
2364 * elfread.c (record_minimal_symbol): Set maybe_copied
2365 on symbol when appropriate.
2366 (elf_symfile_read): Update call to dwarf2_has_info.
2367 * minsyms.c (lookup_minimal_symbol_linkage): New
2368 function.
2369 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2370 * symtab.c (get_symbol_address, get_msymbol_address):
2371 New functions.
2372 * symtab.h (get_symbol_address, get_msymbol_address):
2373 Declare.
2374 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2375 maybe_copied.
2376 (struct symbol, struct minimal_symbol) <maybe_copied>:
2377 New member.
2378
1dd58850
TT
23792019-10-02 Tom Tromey <tromey@adacore.com>
2380
2381 * source.c (struct current_source_location): New.
2382 (current_source_key): New global.
2383 (current_source_symtab, current_source_line)
2384 (current_source_pspace): Remove.
2385 (get_source_location): New function.
2386 (get_current_source_symtab_and_line)
2387 (set_default_source_symtab_and_line)
2388 (set_current_source_symtab_and_line)
2389 (clear_current_source_symtab_and_line, select_source_symtab)
2390 (info_source_command, print_source_lines_base)
2391 (info_line_command, search_command_helper, _initialize_source):
2392 Update.
2393
5c281dbb
TT
23942019-10-02 Tom Tromey <tromey@adacore.com>
2395
2396 * source.c (select_source_symtab): Don't call
2397 decode_line_with_current_source.
2398
d3d32391
AB
23992019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * symtab.c (lookup_global_symbol): Search global block.
2402
38583298
TT
24032019-10-02 Tom Tromey <tromey@adacore.com>
2404
2405 * coffread.c (process_coff_symbol): Update.
2406 * dwarf2read.c (var_decode_location, new_symbol): Update.
2407 * mdebugread.c (parse_symbol): Update.
2408 * objfiles.c (relocate_one_symbol): Update.
2409 * stabsread.c (define_symbol, fix_common_block)
2410 (scan_file_globals): Update.
2411 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2412 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2413 * xcoffread.c (process_xcoff_symbol): Update.
2414
9344c18f
AA
24152019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2416
2417 * MAINTAINERS: Update my email address.
2418
df07e2c7
AB
24192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2422 std::vector.
2423 (build_type_psymtabs_reader): Update for std::vector.
2424 (build_type_psymtab_dependencies): Likewise.
2425 * dwarf2read.h: Remove use of DEF_VEC_P.
2426 (typedef sig_type_ptr): Delete.
2427
554ac434
AB
24282019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2431 to std::vector.
2432 (btrace_maint_decode_pt): Likewise, and move allocation of the
2433 vector outside of the loop.
2434 (btrace_maint_update_packets): Update to handle change from VEC to
2435 std::vector.
2436 (btrace_maint_print_packets): Likewise.
2437 (maint_info_btrace_cmd): Likewise.
2438 * btrace.h: Remove use of DEF_VEC_O.
2439 (typedef btrace_pt_packet_s): Delete.
2440 (struct btrace_maint_info) <packets>: Change fromm VEC to
2441 std::vector.
2442 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2443
46f29a9a
AB
24442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2447 make accesses into the vector constant references.
2448 (btrace_add_pc): Update for std::vector.
2449 (btrace_stitch_bts): Likewise.
2450 (parse_xml_btrace_block): Likewise.
2451 (btrace_maint_update_packets): Likewise.
2452 (btrace_maint_print_packets): Likewise.
2453 (maint_info_btrace_cmd): Likewise.
2454 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2455 std::vector.
2456 (btrace_data::empty): Likewise.
2457 (btrace_data_append): Likewise.
2458 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2459 (typedef btrace_block_s): Delete.
2460 (struct btrace_block): Add constructor.
2461 (struct btrace_data_bts) <blocks>: Change to std::vector.
2462 * nat/linux-btrace.c (perf_event_read_bts): Update for
2463 std::vector.
2464 (linux_read_bts): Likewise.
2465
d770d56f
TT
24662019-10-01 Tom Tromey <tom@tromey.com>
2467
2468 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2469
9d636d67
TT
24702019-10-01 Tom Tromey <tom@tromey.com>
2471
2472 * stack.c (print_frame, info_frame_command_core): Use
2473 styled_string.
2474 * linux-thread-db.c (try_thread_db_load_1)
2475 (try_thread_db_load_from_pdir_1): Use styled_string.
2476 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2477 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2478 (maybe_print_unsupported_script_warning)
2479 (maybe_print_script_not_found_warning): Use styled_string.
2480 * ada-lang.c (user_select_syms): Use styled_string.
2481
7f6aba03
TT
24822019-10-01 Tom Tromey <tom@tromey.com>
2483
2484 * p-lang.c (pascal_printstr): Use metadata style.
2485 * value.c (show_convenience): Use metadata style.
2486 * valprint.c (valprint_check_validity, val_print_optimized_out)
2487 (val_print_not_saved, val_print_unavailable)
2488 (val_print_invalid_address, generic_val_print, val_print)
2489 (value_check_printable, val_print_array_elements): Use metadata
2490 style.
2491 * ui-out.h (class ui_out) <field_fmt>: New overload.
2492 <do_field_fmt>: Add style parameter.
2493 * ui-out.c (ui_out::field_fmt): New overload.
2494 * typeprint.c (type_print_unknown_return_type)
2495 (val_print_not_allocated, val_print_not_associated): Use metadata
2496 style.
2497 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2498 parameter.
2499 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2500 * tracepoint.c (tvariables_info_1): Use metadata style.
2501 * stack.c (print_frame_arg, print_frame_info, print_frame)
2502 (info_frame_command_core): Use metadata style.
2503 * skip.c (info_skip_command): Use metadata style.
2504 * rust-lang.c (rust_print_enum): Use metadata style.
2505 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2506 metadata style.
2507 * python/py-framefilter.c (py_print_single_arg): Use metadata
2508 style.
2509 * printcmd.c (do_one_display, print_variable_and_value): Use
2510 metadata style.
2511 * p-valprint.c (pascal_val_print)
2512 (pascal_object_print_value_fields): Use metadata style.
2513 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2514 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2515 parameter.
2516 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2517 * m2-valprint.c (m2_print_long_set): Use metadata style.
2518 * m2-typeprint.c (m2_print_type): Use metadata style.
2519 * infcmd.c (print_return_value_1): Use metadata style.
2520 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2521 * f-valprint.c (info_common_command_for_block): Use metadata
2522 style.
2523 * f-typeprint.c (f_type_print_base): Use metadata style.
2524 * expprint.c (print_subexp_standard): Use metadata style.
2525 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2526 * cli/cli-style.h (class cli_style_option): Add constructor.
2527 (metadata_style): Declare.
2528 * cli/cli-style.c (metadata_style): New global.
2529 (_initialize_cli_style): Register metadata style.
2530 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2531 parameter.
2532 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2533 * c-typeprint.c (c_type_print_base_struct_union)
2534 (c_type_print_base_1): Use metadata style.
2535 * breakpoint.c (watchpoint_value_print)
2536 (print_one_breakpoint_location): Use metadata style.
2537 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2538 style.
2539 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2540 style.
2541 * ada-valprint.c (val_print_packed_array_elements, printstr)
2542 (print_field_values, ada_val_print_ref, ada_val_print): Use
2543 metadata style.
2544 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2545 style.
2546 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2547 style.
2548 * ada-lang.c (user_select_syms): Use metadata style.
2549
14309bb6
TT
25502019-10-01 Tom Tromey <tom@tromey.com>
2551
2552 * cli/cli-cmds.c (pwd_command): Style output.
2553
6a831f06
PA
25542019-10-01 Pedro Alves <palves@redhat.com>
2555 Tom Tromey <tom@tromey.com>
2556
2557 * symtab.c (print_symbol_info): Use %ps.
2558 (print_msymbol_info): Use %ps.
2559 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2560 * printcmd.c (print_variable_and_value): Use %ps.
2561 * macrocmd.c (show_pp_source_pos): Use %ps.
2562 * infrun.c (print_exited_reason): Use ui_out::message.
2563 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2564 (describe_other_breakpoints): Use ui_out::message and new
2565 formats.
2566 (say_where): Use new formats.
2567 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2568 and new formats.
2569
2a3c1174
PA
25702019-10-01 Pedro Alves <palves@redhat.com>
2571 Tom Tromey <tom@tromey.com>
2572
2573 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2574 (test_gdb_formats): New function.
2575 (run_tests): Call it.
2576 (test_format_specifier): Update.
2577 * utils.h (fputs_filtered): Update comment.
2578 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2579 (fputs_styled_unfiltered): Declare.
2580 * utils.c (fputs_styled_unfiltered): New function.
2581 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2582 (vfprintf_filtered): Update.
2583 (vfprintf_unfiltered, vprintf_filtered): Update.
2584 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2585 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2586 disallow_ui_out_field>: New constants.
2587 (enum class field_kind): New.
2588 (struct base_field_s, struct signed_field_s): New.
2589 (signed_field): New function.
2590 (struct string_field_s): New.
2591 (string_field): New function.
2592 (struct styled_string_s): New.
2593 (styled_string): New function.
2594 (class ui_out) <message>: Add comment.
2595 <vmessage, call_do_message>: New methods.
2596 <do_message>: Add style parameter.
2597 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2598 methods.
2599 (ui_out::message): Rewrite.
2600 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2601 parameter.
2602 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2603 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2604 gdb_extensions parameter.
2605 (class format_piece): Add parameter to constructor.
2606 (n_int_args): New field.
2607 * gdbsupport/format.c (format_pieces::format_pieces): Add
2608 gdb_extensions parameter. Handle '*'.
2609 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2610 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2611 vfprintf_styled_no_gdbfmt.
2612 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2613 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2614 unfiltered output.
2615 * ui-style.h (struct ui_file_style) <ptr>: New method.
2616
0dfe5bfb
TT
26172019-10-01 Tom Tromey <tom@tromey.com>
2618
2619 * unittests/format_pieces-selftests.c: Update. Add final format.
2620 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2621 empty literal pieces.
2622
e43b10e1
TT
26232019-10-01 Tom Tromey <tom@tromey.com>
2624
2625 * ui-out.h (enum class ui_out_style_kind): Remove.
2626 (class ui_out) <field_string, field_stsream, do_field_string>:
2627 Change type of "style".
2628 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2629 (ui_out::field_string): Update.
2630 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2631 of "style".
2632 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2633 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2634 * stack.c (print_frame_arg, print_frame_info, print_frame):
2635 Update.
2636 * source.c (print_source_lines_base): Update.
2637 * solib.c (info_sharedlibrary_command): Update.
2638 * skip.c (info_skip_command): Update.
2639 * record-btrace.c (btrace_call_history_src_line)
2640 (btrace_call_history): Update.
2641 * python/py-framefilter.c (py_print_frame): Update.
2642 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2643 "style".
2644 * mi/mi-out.c (mi_ui_out::do_table_header)
2645 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2646 (mi_ui_out::do_field_string): Update.
2647 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2648 Update.
2649 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2650 "style".
2651 * cli-out.c (cli_ui_out::do_table_header)
2652 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2653 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2654 (cli_ui_out::do_field_fmt): Update.
2655 * breakpoint.c (print_breakpoint_location): Update.
2656 (update_static_tracepoint): Update.
2657
cd7c32c3
PW
26582019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2659
2660 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2661 conversion of gdb_datadir.
2662 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2663 remove not needed c_str ().
2664
8fe0f950
AT
26652019-09-30 Ali Tamur <tamur@google.com>
2666
2667 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2668 (dwarf2_string_attr): Likewise.
2669
5f48f8f3
AT
26702019-09-30 Ali Tamur <tamur@google.com>
2671
2672 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2673 (process_full_type_unit): Likewise.
2674 (dump_die_shallow): Likewise.
2675 (cu_debug_loc_section): Likewise.
2676
6fb08628
CB
26772019-09-28 Christian Biesinger <cbiesinger@google.com>
2678
2679 * minsyms.c (compare_minimal_symbols): Rename to...
2680 (minimal_symbol_is_less_than): ...this, and adjust to STL
2681 conventions (return bool, take arguments as references)
2682 (minimal_symbol_reader::install): Call std::sort instead
2683 of qsort.
2684
c7ee338a
CB
26852019-09-29 Christian Biesinger <cbiesinger@google.com>
2686
2687 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2688 hash and why.
2689 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2690 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2691
703a86c2
SM
26922019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2695 * psympriv.h (add_psymbol_to_list): Move comment here and update
2696 it.
2697
0df0352a
TV
26982019-09-29 Tom de Vries <tdevries@suse.de>
2699
2700 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2701 Use $tmpdir/$(basename "$output_file").dwz instead of
2702 "${output_file}.dwz".
2703
ad75efa6
SM
27042019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 PR gdb/25045
2707 * hppa-linux-nat.c: Include gdbarch.h.
2708
ececd218
CB
27092019-09-26 Christian Biesinger <cbiesinger@google.com>
2710
2711 * blockframe.c (find_pc_partial_function): Change return type to bool.
2712 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2713 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2714 (stub_gnu_ifunc_resolve_name): Likewise.
2715 * symtab.c (compare_filenames_for_search): Likewise.
2716 (compare_glob_filenames_for_search): Likewise.
2717 (matching_obj_sections): Likewise.
2718 (symbol_matches_domain): Likewise.
2719 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2720 (find_line_pc): Change return type to bool.
2721 (find_line_pc_range): Likewise.
2722 (producer_is_realview): Likewise.
2723 * symtab.h (symbol_matches_domain): Likewise.
2724 (find_pc_partial_function): Likewise.
2725 (find_pc_line_pc_range): Likewise.
2726 (in_gnu_ifunc_stub): Likewise.
2727 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2728 (find_line_pc): Likewise.
2729 (find_line_pc_range): Likewise.
2730 (matching_obj_sections): Likewise.
2731 (find_line_symtab): Change out parameter to bool.
2732 (producer_is_realview): Change return type to bool.
2733 (compare_filenames_for_search): Likewise.
2734 (compare_glob_filenames_for_search): Likewise.
2735
27a900b8
TT
27362019-09-26 Tom Tromey <tom@tromey.com>
2737
2738 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2739 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2740 * gdb_usleep.h: Remove.
2741 * gdb_usleep.c: Remove.
2742 * utils.c: Don't include gdb_usleep.h.
2743
5d63b30a
TT
27442019-09-26 Tom Tromey <tromey@adacore.com>
2745
2746 * python/py-type.c (type_to_type_object): Call check_typedef
2747 for stub types.
2748
12904d37
TT
27492019-09-26 Tom Tromey <tom@tromey.com>
2750
2751 * utils.h (initialize_utils): Don't declare.
2752 * top.c (gdb_init): Don't call initialize_utils.
2753 * utils.c (initialize_utils): Remove. Move contents...
2754 (_initialize_utils): ... here.
2755
858f25f0
TT
27562019-09-25 Tom Tromey <tom@tromey.com>
2757
2758 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2759 * utils.h (make_hex_string): Don't declare.
2760 * utils.c (make_hex_string): Remove.
2761
3d435220
TV
27622019-09-24 Tom de Vries <tdevries@suse.de>
2763
2764 PR gdb/23815
2765 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2766 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2767
ddd44b70
DD
27682019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2769
2770 * NEWS: Mention new simulator port for PRU.
2771
f945dedf
CB
27722019-09-23 Christian Biesinger <cbiesinger@google.com>
2773
2774 * ada-exp.y (write_object_remaining): Update.
2775 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2776 and eliminate the static buffer.
2777 (ada_decode_symbol): Update.
2778 (ada_la_decode): Update.
2779 (ada_sniff_from_mangled_name): Update.
2780 (is_valid_name_for_wild_match): Update.
2781 (ada_lookup_name_info::matches): Update and simplify.
2782 (name_matches_regex): Update.
2783 (ada_add_global_exceptions): Update.
2784 * ada-lang.h (ada_decode): Update signature.
2785 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2786 * dwarf-index-write.c (debug_names::insert): Update.
2787
7ab78ccb
SM
27882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2789
2790 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2791 formatting.
2792
9252448b
SM
27932019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2794
2795 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2796 Change "nonzero" to "true" in documentation.
2797
626ca2c0
CB
27982019-09-20 Christian Biesinger <cbiesinger@google.com>
2799
2800 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2801 (_initialize_darwin_solib): Don't set
2802 darwin_so_ops.lookup_lib_global_symbol.
2803 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2804 set_gdbarch_iterate_over_objfiles_in_search_order.
2805 (elf_lookup_lib_symbol): Rename to...
2806 (svr4_iterate_over_objfiles_in_search_order): this, and update
2807 to iterate semantics.
2808 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2809 * solib.c (solib_global_lookup): Remove.
2810 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2811 (solib_global_lookup): Remove.
2812 * symtab.c (lookup_global_or_static_symbol): Remove call to
2813 solib_global_lookup.
2814
5a3a0d63
JB
28152019-09-20 Joel Brobecker <brobecker@adacore.com>
2816
2817 * NEWS: Move entries about default MI version now being
2818 version 3, and about the GDB/MI fix for multi-location
2819 breakpoints to the "since GDB 8.3" section.
2820
ffea1427
JB
28212019-09-20 Joel Brobecker <brobecker@adacore.com>
2822
2823 GDB 8.3.1 released.
2824
abf516c6
UW
28252019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2826
2827 * NEWS: Mention that Cell/B.E. debugging support was removed.
2828 * MAINTAINERS: Remove spu target.
2829
2830 * config/djgpp/fnchange.lst: Remove entries for removed files.
2831
2832 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2833 spu-multiarch.o, and spu-tdep.o.
2834 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2835 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2836 spu-multiarch.c, and spu-tdep.c.
2837 * spu-linux-nat.c: Remove file.
2838 * spu-multiarch.c: Remove file.
2839 * spu-tdep.c: Remove file.
2840 * spu-tdep.h: Remove file.
2841 * solib-spu.c: Remove file.
2842 * solib-spu.h: Remove file.
2843
2844 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2845 * configure.nat (spu-linux): Remove.
2846 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2847 solib-multiarch.o from gdb_target_obs.
2848 (spu*-*-*): Remove.
2849
2850 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2851 feature flag.
2852 (ppc_linux_no_features): Update.
2853 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2854 Cell/B.E. support.
2855 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2856 (tdesc_powerpc_cell64l): Likewise.
2857 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2858 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2859 Cell/B.E. support.
2860 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2861 Do not include "features/rs6000/powerpc-cell32l.c" or
2862 "features/rs6000/powerpc-cell64l.c".
2863 (ppc_linux_spu_section): Remove.
2864 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2865 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2866 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2867 (ppc_linux_spe_context_lookup): Remove.
2868 (ppc_linux_spe_context_inferior_created): Remove.
2869 (ppc_linux_spe_context_solib_loaded): Remove.
2870 (ppc_linux_spe_context_solib_unloaded): Remove.
2871 (ppc_linux_spe_context): Remove.
2872 (struct ppu2spu_cache): Remove.
2873 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2874 (struct ppu2spu_data): Remove.
2875 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2876 ppu2spu_unwind): Remove.
2877 (ppc_linux_init_abi): Remove Cell/B.E. support.
2878 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2879
2880 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2881 (rs6000/powerpc-cell64l-expedite): Likewise
2882 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2883 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2884 rs6000/powerpc-cell64l.xml.
2885 * features/rs6000/powerpc-cell32l.xml: Remove.
2886 * features/rs6000/powerpc-cell64l.xml: Likewise.
2887 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2888 * features/rs6000/powerpc-cell64l.c: Likewise.
2889 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2890 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2891 * regformats/reg-spu.dat: Remove.
2892
2893 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2894 * corelow.c (struct spuid_list): Remove.
2895 (add_to_spuid_list): Remove.
2896 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2897 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2898 (remote_protocol_features): Remove associated entries.
2899 (_initialize_remote): No longer initialize them.
2900 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2901 * linux-nat.c (SPUFS_MAGIC): Remove.
2902 (linux_proc_xfer_spu): Remove.
2903 (spu_enumerate_spu_ids): Remove.
2904 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2905 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2906 (linux_make_corefile_notes): No longer call it.
2907
2908 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2909 (cooked_write_test): Likewise.
2910
78e8cb91
TT
29112019-09-20 Tom Tromey <tom@tromey.com>
2912
2913 * NEWS: Mention case-sensitivity of TUI commands.
2914 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2915 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2916 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2917
f074b67e
TT
29182019-09-20 Tom Tromey <tom@tromey.com>
2919
2920 * tui/tui-source.c (tui_source_window::set_contents): Use
2921 make_unique_xstrdup.
2922 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2923 make_unique_xstrdup.
2924
63c4bf19
TT
29252019-09-20 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-data.c: Remove separator comments.
2928 * tui/tui-layout.c: Remove separator comments.
2929 * tui/tui-win.c: Remove separator comments.
2930 * tui/tui-wingeneral.c: Remove separator comments.
2931
43df9b2f
TT
29322019-09-20 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui.h (strcat_to_buf): Don't declare.
2935 * tui/tui.c (strcat_to_buf): Remove.
2936
7226433c
TT
29372019-09-20 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2940 from "fullname".
2941 * tui/tui-source.c (tui_source_window::set_contents)
2942 (tui_source_window::location_matches_p)
2943 (tui_source_window::maybe_update): Update.
2944
80df3337
TT
29452019-09-20 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2948 Update.
2949 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2950 prefix.
2951 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2952 (tui_data_window::line_from_reg_element_no)
2953 (tui_data_window::first_reg_element_no_inline)
2954 (tui_data_window::show_registers)
2955 (tui_data_window::show_register_group)
2956 (tui_data_window::display_registers_from)
2957 (tui_data_window::display_registers_from_line)
2958 (tui_data_window::first_data_item_displayed)
2959 (tui_data_window::delete_data_content_windows)
2960 (tui_data_window::erase_data_content)
2961 (tui_data_window::do_scroll_vertical)
2962 (tui_data_window::refresh_window)
2963 (tui_data_window::check_register_values): Update.
2964
9923f347
TT
29652019-09-20 Tom Tromey <tom@tromey.com>
2966
2967 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2968 (struct tui_locator_window) <full_name, proc_name>: Now
2969 std::string.
2970 * tui/tui-stack.c (tui_locator_window::make_status_line)
2971 (tui_locator_window::set_locator_fullname)
2972 (tui_locator_window::set_locator_info): Update.
2973 * tui/tui-source.c (tui_source_window::set_contents)
2974 (tui_source_window::showing_source_p): Update.
2975
b76251ab
TT
29762019-09-20 Tom Tromey <tom@tromey.com>
2977
2978 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2979 Don't call tui_locator_win_info_ptr.
2980
0891be08
TT
29812019-09-20 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2984
1b935acf
TT
29852019-09-20 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2988 height for locator.
2989 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2990 * tui/tui-layout.c (show_source_disasm_command, show_data)
2991 (show_source_or_disasm_and_command): Use 1 as height for locator.
2992
9abd8a65
TT
29932019-09-20 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui.c (tui_enable): Update.
2996 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2997 Update.
2998 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2999 Update.
3000 * tui/tui-data.c (win_resized): Now bool.
3001 (tui_win_resized): Return bool.
3002 (tui_set_win_resized_to): Accept a bool.
3003
b5457826
TT
30042019-09-20 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3007 Change type of "refresh_values_only".
3008 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3009 type of "refresh_values_only".
3010
6b915f7d
TT
30112019-09-20 Tom Tromey <tom@tromey.com>
3012
3013 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3014 std::string.
3015 (tui_disassemble): Add "pos" parameter.
3016 (tui_disasm_window::set_contents): Simplify.
3017
2ad52f6f
TT
30182019-09-20 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-winsource.h (struct tui_source_window_base)
3021 <show_source_content>: Now private.
3022 * tui/tui-winsource.c
3023 (tui_source_window_base::show_source_content): Don't handle empty
3024 content case.
3025
b3b1bde6
TT
30262019-09-20 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-layout.c (show_source_disasm_command)
3029 (show_source_or_disasm_and_command): Don't call
3030 show_source_content.
3031
71a25ed2
TT
30322019-09-20 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3035 Declare.
3036 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3037 from tui_make_status_line.
3038 (tui_locator_window::rerender): Update.
3039
f8532154
TT
30402019-09-20 Tom Tromey <tom@tromey.com>
3041
3042 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3043 (tui_locator_window::rerender): Update.
3044
2d81b349
TT
30452019-09-20 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui-winsource.h (struct tui_source_window_base)
3048 <~tui_source_window_base>: Don't declare.
3049 <fullname>: Remove.
3050 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3051 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3052 member.
3053 * tui/tui-source.c (tui_source_window::set_contents): Update.
3054 (tui_source_window::location_matches_p)
3055 (tui_source_window::maybe_update): Update.
3056
f14bec58
TT
30572019-09-20 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-winsource.h (~tui_source_element): Remove.
3060 (tui_source_element): Update.
3061 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3062 * tui/tui-winsource.c (tui_show_source_line): Update.
3063 * tui/tui-source.c (tui_source_window::set_contents): Update.
3064 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3065
78d5933a
TT
30662019-09-20 Tom Tromey <tom@tromey.com>
3067
3068 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3069 declare.
3070 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3071 tui_clear_source_windows_detail.
3072 * tui/tui-winsource.h (struct tui_source_window_base)
3073 <clear_detail>: Don't declare.
3074 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3075 Remove.
3076 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3077
d4207696
TT
30782019-09-20 Tom Tromey <tromey@adacore.com>
3079
3080 PR ada/24919:
3081 * block.c (contained_in): Fix final return value.
3082
00f93c44
AM
30832019-09-20 Alan Modra <amodra@gmail.com>
3084
3085 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3086 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3087 (read_indirect_string_from_dwz): Use bfd accessor.
3088 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3089 * machoread.c (macho_symfile_read_all_oso): Likewise.
3090 * solib.c (solib_bfd_open): Likewise.
3091
e4153ae6
CB
30922019-09-19 Christian Biesinger <cbiesinger@google.com>
3093
3094 * eval.c: Move declaration of overload_resolution to...
3095 * value.h: ...here.
3096
c7ae7675
CB
30972019-09-19 Christian Biesinger <cbiesinger@google.com>
3098
3099 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3100 * arm-linux-tdep.c: Likewise.
3101 * arm-nbsd-nat.c: Likewise.
3102 * arm-tdep.h: Declare arm_apcs_32.
3103 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3104
e86f08d2
CB
31052019-09-19 Christian Biesinger <cbiesinger@google.com>
3106
3107 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3108 * dwarf2read.h: Declare dwarf_always_disassemble.
3109
f64e2f40
TV
31102019-09-19 Tom de Vries <tdevries@suse.de>
3111
3112 PR gdb/25009
3113 * source-cache.c (source_cache::ensure): Catch exception thrown during
3114 construction of the highlighter.
3115
fd361982
AM
31162019-09-18 Alan Modra <amodra@gmail.com>
3117
3118 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3119 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3120 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3121 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3122 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3123 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3124 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3125 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3126 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3127 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3128 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3129 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3130 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3131 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3132 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3133 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3134 * mi/mi-interp.c: Update throughout for bfd section macro and
3135 function changes.
3136 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3137 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3138
11061048
TT
31392019-09-18 Tom Tromey <tom@tromey.com>
3140
3141 * NEWS: Add entry.
3142 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3143 call rl_initialize.
3144 (tui_enable): Do not call rl_initialize.
3145
7a27b85f
CG
31462019-09-18 Christian Groessler <chris@groessler.org>
3147
3148 * alpha-linux-nat.c: Include gdbarch.h.
3149
f64eea3a
SM
31502019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * ui-file.c: Include cli/cli-style.h.
3153 (term_cli_styling): Remove cli_styling declaration.
3154
e6f7f6d1
AM
31552019-09-18 Alan Modra <amodra@gmail.com>
3156
3157 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3158 to bfd_asymbol_section.
3159
1d38e9d1
AM
31602019-09-18 Alan Modra <amodra@gmail.com>
3161
3162 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3163 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3164 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3165
90d92a63
AM
31662019-09-18 Alan Modra <amodra@gmail.com>
3167
3168 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3169 * spu-linux-nat.c (spu_bfd_open): Likewise.
3170
a3d181d2
CB
31712019-09-18 Christian Biesinger <cbiesinger@google.com>
3172
3173 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3174 to bool to match definition in dwarf2read.c.
3175
491144b5
CB
31762019-09-17 Christian Biesinger <cbiesinger@google.com>
3177
3178 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3179 (print_signatures): Likewise.
3180 (trust_pad_over_xvs): Likewise.
3181 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3182 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3183 * arm-linux-nat.c (arm_apcs_32): Likewise.
3184 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3185 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3186 * arm-tdep.c (arm_debug): Likewise.
3187 (arm_apcs_32): Likewise.
3188 * auto-load.c (debug_auto_load): Likewise.
3189 (auto_load_gdb_scripts): Likewise.
3190 (global_auto_load): Likewise.
3191 (auto_load_local_gdbinit): Likewise.
3192 (auto_load_local_gdbinit_loaded): Likewise.
3193 * auto-load.h (global_auto_load): Likewise.
3194 (auto_load_local_gdbinit): Likewise.
3195 (auto_load_local_gdbinit_loaded): Likewise.
3196 * breakpoint.c (disconnected_dprintf): Likewise.
3197 (breakpoint_proceeded): Likewise.
3198 (automatic_hardware_breakpoints): Likewise.
3199 (always_inserted_mode): Likewise.
3200 (target_exact_watchpoints): Likewise.
3201 (_initialize_breakpoint): Update.
3202 * breakpoint.h (target_exact_watchpoints): Change to bool.
3203 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3204 * cli/cli-cmds.c (trace_commands): Likewise.
3205 * cli/cli-cmds.h (trace_commands): Likewise.
3206 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3207 to bool*.
3208 * cli/cli-logging.c (logging_overwrite): Change to bool.
3209 (logging_redirect): Likewise.
3210 (debug_redirect): Likewise.
3211 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3212 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3213 to bool.
3214 <boolean_option_def>: Update.
3215 (struct flag_option_def): Change default type of Context to bool
3216 from int.
3217 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3218 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3219 (get_setshow_command_value_string): Likewise.
3220 * cli/cli-style.c (cli_styling): Change to bool.
3221 (source_styling): Likewise.
3222 * cli/cli-style.h (source_styling): Likewise.
3223 (cli_styling): Likewise.
3224 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3225 to bool.
3226 * command.h (var_types): Update comment.
3227 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3228 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3229 bool.
3230 (debug_compile_cplus_scopes): Likewise.
3231 * compile/compile-internal.h (compile_debug): Likewise.
3232 * compile/compile.c (compile_debug): Likewise.
3233 (struct compile_options) <raw>: Likewise.
3234 * cp-support.c (catch_demangler_crashes): Likewise.
3235 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3236 (usr_cmd_cris_dwarf2_cfi): Likewise.
3237 * csky-tdep.c (csky_debug): Likewise.
3238 * darwin-nat.c (enable_mach_exceptions): Likewise.
3239 * dcache.c (dcache_enabled_p): Likewise.
3240 * defs.h (info_verbose): Likewise.
3241 * demangle.c (demangle): Likewise.
3242 (asm_demangle): Likewise.
3243 * dwarf-index-cache.c (debug_index_cache): Likewise.
3244 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3245 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3246 * dwarf2read.c (check_physname): Likewise.
3247 (use_deprecated_index_sections): Likewise.
3248 (dwarf_always_disassemble): Likewise.
3249 * eval.c (overload_resolution): Likewise.
3250 * event-top.c (set_editing_cmd_var): Likewise.
3251 (exec_done_display_p): Likewise.
3252 * event-top.h (set_editing_cmd_var): Likewise.
3253 (exec_done_display_p): Likewise.
3254 * exec.c (write_files): Likewise.
3255 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3256 (debug_fbsd_nat): Likewise.
3257 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3258 Likewise.
3259 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3260 <backtrace_past_entry> Likewise.
3261 * gdb-demangle.h (demangle): Likewise.
3262 (asm_demangle): Likewise.
3263 * gdb_bfd.c (bfd_sharing): Likewise.
3264 * gdbcore.h (write_files): Likewise.
3265 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3266 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3267 * gdbthread.h (print_thread_events): Likewise.
3268 * gdbtypes.c (opaque_type_resolution): Likewise.
3269 (strict_type_checking): Likewise.
3270 * gnu-nat.c (gnu_debug_flag): Likewise.
3271 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3272 * guile/scm-param.c (pascm_variable): Add boolval.
3273 (add_setshow_generic): Update.
3274 (pascm_param_value): Update.
3275 (pascm_set_param_value_x): Update.
3276 * hppa-tdep.c (hppa_debug): Change to bool..
3277 * infcall.c (may_call_functions_p): Likewise.
3278 (coerce_float_to_double_p): Likewise.
3279 (unwind_on_signal_p): Likewise.
3280 (unwind_on_terminating_exception_p): Likewise.
3281 * infcmd.c (startup_with_shell): Likewise.
3282 * inferior.c (print_inferior_events): Likewise.
3283 * inferior.h (startup_with_shell): Likewise.
3284 (print_inferior_events): Likewise.
3285 * infrun.c (step_stop_if_no_debug): Likewise.
3286 (detach_fork): Likewise.
3287 (debug_displaced): Likewise.
3288 (disable_randomization): Likewise.
3289 (non_stop): Likewise.
3290 (non_stop_1): Likewise.
3291 (observer_mode): Likewise.
3292 (observer_mode_1): Likewise.
3293 (set_observer_mode): Update.
3294 (sched_multi): Change to bool.
3295 * infrun.h (debug_displaced): Likewise.
3296 (sched_multi): Likewise.
3297 (step_stop_if_no_debug): Likewise.
3298 (non_stop): Likewise.
3299 (disable_randomization): Likewise.
3300 * linux-tdep.c (use_coredump_filter): Likewise.
3301 (dump_excluded_mappings): Likewise.
3302 * linux-thread-db.c (auto_load_thread_db): Likewise.
3303 (check_thread_db_on_load): Likewise.
3304 * main.c (captured_main_1): Update.
3305 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3306 xx2_opt, boolean_opt>: Change to bool.
3307 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3308 * maint.c (maintenance_profile_p): Likewise.
3309 (per_command_time): Likewise.
3310 (per_command_space): Likewise.
3311 (per_command_symtab): Likewise.
3312 * memattr.c (inaccessible_by_default): Likewise.
3313 * mi/mi-main.c (mi_async): Likewise.
3314 (mi_async_1): Likewise.
3315 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3316 * nat/fork-inferior.h (startup_with_shell): Likewise.
3317 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3318 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3319 * nios2-tdep.c (nios2_debug): Likewise.
3320 * or1k-tdep.c (or1k_debug): Likewise.
3321 * parse.c (parser_debug): Likewise.
3322 * parser-defs.h (parser_debug): Likewise.
3323 * printcmd.c (print_symbol_filename): Likewise.
3324 * proc-api.c (procfs_trace): Likewise.
3325 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3326 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3327 (set_parameter_value): Update.
3328 (add_setshow_generic): Update.
3329 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3330 to bool*.
3331 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3332 int*.
3333 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3334 * record-btrace.c (record_btrace_target::store_registers): Update.
3335 * record-full.c (record_full_memory_query): Change to bool.
3336 (record_full_stop_at_limit): Likewise.
3337 * record-full.h (record_full_memory_query): Likewise.
3338 * remote-notif.c (notif_debug): Likewise.
3339 * remote-notif.h (notif_debug): Likewise.
3340 * remote.c (use_range_stepping): Likewise.
3341 (interrupt_on_connect): Likewise.
3342 (remote_break): Likewise.
3343 * ser-tcp.c (tcp_auto_retry): Likewise.
3344 * ser-unix.c (serial_hwflow): Likewise.
3345 * skip.c (debug_skip): Likewise.
3346 * solib-aix.c (solib_aix_debug): Likewise.
3347 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3348 (spu_auto_flush_cache_p): Likewise.
3349 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3350 Likewise.
3351 (struct info_print_options) <quiet>: Likewise.
3352 * symfile-debug.c (debug_symfile): Likewise.
3353 * symfile.c (auto_solib_add): Likewise.
3354 (separate_debug_file_debug): Likewise.
3355 * symfile.h (auto_solib_add): Likewise.
3356 (separate_debug_file_debug): Likewise.
3357 * symtab.c (basenames_may_differ): Likewise.
3358 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3359 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3360 (struct info_types_options) <quiet>: Likewise.
3361 * symtab.h (demangle): Likewise.
3362 (basenames_may_differ): Likewise.
3363 * target-dcache.c (stack_cache_enabled_1): Likewise.
3364 (code_cache_enabled_1): Likewise.
3365 * target.c (trust_readonly): Likewise.
3366 (may_write_registers): Likewise.
3367 (may_write_memory): Likewise.
3368 (may_insert_breakpoints): Likewise.
3369 (may_insert_tracepoints): Likewise.
3370 (may_insert_fast_tracepoints): Likewise.
3371 (may_stop): Likewise.
3372 (auto_connect_native_target): Likewise.
3373 (target_stop_and_wait): Update.
3374 (target_async_permitted): Change to bool.
3375 (target_async_permitted_1): Likewise.
3376 (may_write_registers_1): Likewise.
3377 (may_write_memory_1): Likewise.
3378 (may_insert_breakpoints_1): Likewise.
3379 (may_insert_tracepoints_1): Likewise.
3380 (may_insert_fast_tracepoints_1): Likewise.
3381 (may_stop_1): Likewise.
3382 * target.h (target_async_permitted): Likewise.
3383 (may_write_registers): Likewise.
3384 (may_write_memory): Likewise.
3385 (may_insert_breakpoints): Likewise.
3386 (may_insert_tracepoints): Likewise.
3387 (may_insert_fast_tracepoints): Likewise.
3388 (may_stop): Likewise.
3389 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3390 (make_thread_apply_all_options_def_group): Change argument from int*
3391 to bool*.
3392 (thread_apply_all_command): Update.
3393 (print_thread_events): Change to bool.
3394 * top.c (confirm): Likewise.
3395 (command_editing_p): Likewise.
3396 (history_expansion_p): Likewise.
3397 (write_history_p): Likewise.
3398 (info_verbose): Likewise.
3399 * top.h (confirm): Likewise.
3400 (history_expansion_p): Likewise.
3401 * tracepoint.c (disconnected_tracing): Likewise.
3402 (circular_trace_buffer): Likewise.
3403 * typeprint.c (print_methods): Likewise.
3404 (print_typedefs): Likewise.
3405 * utils.c (debug_timestamp): Likewise.
3406 (sevenbit_strings): Likewise.
3407 (pagination_enabled): Likewise.
3408 * utils.h (sevenbit_strings): Likewise.
3409 (pagination_enabled): Likewise.
3410 * valops.c (overload_resolution): Likewise.
3411 * valprint.h (struct value_print_options) <prettyformat_arrays,
3412 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3413 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3414 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3415 Likewise.
3416 * windows-nat.c (new_console): Likewise.
3417 (cygwin_exceptions): Likewise.
3418 (new_group): Likewise.
3419 (debug_exec): Likewise.
3420 (debug_events): Likewise.
3421 (debug_memory): Likewise.
3422 (debug_exceptions): Likewise.
3423 (useshell): Likewise.
3424 * windows-tdep.c (maint_display_all_tib): Likewise.
3425 * xml-support.c (debug_xml): Likewise.
3426
f1b620e9
MG
34272019-09-17 Mike Gulick <mgulick@mathworks.com>
3428
3429 * source.c (prepare_path_for_appending): New function.
3430 (openp): Make use of new function.
3431 (find_and_open_source): Search for the compilation directory and
3432 source file as a relative path beneath the directory search path.
3433
67f3ed6a
AB
34342019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * source-cache.c (source_cache::get_line_charpos): Catch
3437 exceptions and return false, this matches the behaviour documented
3438 in the header file.
3439
74332189
JB
34402019-09-17 Joel Brobecker <brobecker@adacore.com>
3441
3442 * ada-tasks.c (info_task): Remove quoting of the task's name.
3443
f2f24aa9
CB
34442019-09-16 Christian Biesinger <cbiesinger@google.com>
3445
3446 * symfile.c (auto_solib_add): Replace comment with a reference
3447 to the header file.
3448
6a062a93
CB
34492019-09-14 Christian Biesinger <cbiesinger@google.com>
3450
3451 * NEWS: Mention that gdb can now be compiled with Python 3
3452 on Windows.
3453
ec6c8338
AB
34542019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * maint.c (maint_print_section_data::maint_print_section_data):
3457 Force use of 'float log10 (float)' by casting the argument to
3458 float.
3459
aa17805f
AB
34602019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * maint.c: Add 'cmath' include.
3463 (struct maint_print_section_data): New structure.
3464 (print_section_index): New function.
3465 (print_bfd_section_info): Add header comment, small whitespace
3466 cleanup, and update to call new print_section_index function.
3467 (print_objfile_section_info): Likewise.
3468 (maint_obj_section_from_bfd_section): New function.
3469 (print_bfd_section_info_maybe_relocated): New function.
3470 (maintenance_info_sections): Add header comment, always use
3471 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3472
3dd9bb46
AB
34732019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3476 inner scope, add check that the objfile has psymtabs before
3477 checking psymtabs_addrmap.
3478 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3479
4993045d
PW
34802019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3481
3482 * NEWS: Announce that Ada task names are now shown at more places,
3483 and between quotes (except in info task output).
3484 * gdb/ada-tasks.c (task_to_str): New function.
3485 (display_current_task_id): Call task_to_str.
3486 (task_command_1): Likewise.
3487 (print_ada_task_info): In non-mi mode, Properly align headers and data
3488 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3489
7a289707
RO
34902019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3491
3492 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3493 prstatus.pr_lwp.pr_info instead of making it up.
3494
f2aec7f6
CB
34952019-09-11 Christian Biesinger <cbiesinger@google.com>
3496
3497 * auto-load.c (auto_load_expand_dir_vars): Update.
3498 * defs.h (gdb_datadir): Change to std::string.
3499 (python_libdir): Likewise.
3500 (relocate_gdb_directory): Change return type to std::string.
3501 * guile/guile.c (gdbscm_data_directory): Update.
3502 (initialize_scheme_side): Update.
3503 * jit.c (jit_reader_dir): Change to std::string.
3504 (jit_reader_load_command): Update.
3505 * main.c (gdb_datadir): Change to std::string.
3506 (python_libdir): Likewise.
3507 (set_gdb_data_directory): Update.
3508 (relocate_path): Change to return std::string.
3509 (relocate_gdb_directory): Change to return std::string.
3510 (relocate_gdbinit_path_maybe_in_datadir): Update.
3511 (captured_main_1): Update.
3512 * python/python.c (do_start_initialization): Update.
3513 * top.c (show_gdb_datadir): Update.
3514 * xml-syscall.c (xml_init_syscalls_info): Update.
3515 (init_syscalls_info): Update.
3516
9224a013
CB
35172019-09-11 Christian Biesinger <cbiesinger@google.com>
3518
3519 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3520 out of get_init_files.
3521 (get_init_files): Update.
3522
f48cd836
CB
35232019-09-11 Christian Biesinger <cbiesinger@google.com>
3524
3525 * main.c (get_init_files): Change to use std::string.
3526 (captured_main_1): Update.
3527 (print_gdb_help): Update.
3528
9cab7ecd
AT
35292019-09-11 Ali Tamur <tamur@google.com>
3530
3531 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3532 implementation.
3533
67547d89
CB
35342019-09-11 Christian Biesinger <cbiesinger@google.com>
3535
3536 * dbxread.c (read_dbx_symtab): Update.
3537 * dwarf2read.c (load_partial_dies): Update.
3538 * mdebugread.c (parse_partial_symbols): Update.
3539 (handle_psymbol_enumerators): Update.
3540 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3541 * psymtab.c (add_psymbol_to_bcache): Likewise.
3542 (add_psymbol_to_list): Likewise.
3543 * symtab.c (symbol_set_names): Likewise.
3544 * symtab.h (symbol_set_names): Likewise.
3545 * xcoffread.c (scan_xcoff_symtab): Update.
3546
64b2d4a0
TT
35472019-09-11 Tom Tromey <tom@tromey.com>
3548
3549 * symfile-mem.c (symbol_file_add_from_memory): Use
3550 bfd_set_filename.
3551 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3552 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3553
3b00ef10
TT
35542019-09-10 Tom Tromey <tromey@adacore.com>
3555
3556 * dwarf-index-write.c (write_psymbols): Extend error message.
3557 (debug_names::insert): Add Ada code.
3558 (debug_names::write_psymbols): Remove Ada check.
3559 (debug_names) <m_string_obstack>: New member.
3560 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3561 (gdb_index_symbol_name_matcher::matches): Remove.
3562 (mapped_index_base::find_name_components_bounds): Add "lang"
3563 parameter.
3564 (mapped_index_base::build_name_components): Also split names
3565 according to Ada syntax.
3566 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3567 type of "match_callback".
3568 (check_match, check_find_bounds_finds)
3569 (dw2_expand_symtabs_matching): Update.
3570 (dw2_debug_names_iterator): Add new constructor.
3571 (dw2_debug_names_map_matching_symbols): New function.
3572 (dw2_debug_names_expand_symtabs_matching): Update.
3573 (dwarf2_debug_names_functions): Use
3574 dw2_debug_names_map_matching_symbols.
3575
aa391654
TT
35762019-09-10 Tom Tromey <tromey@adacore.com>
3577
3578 * dwarf2read.c (dw2_get_file_names_reader): Add the
3579 CU's file name to the results.
3580
b054970d
TT
35812019-09-10 Tom Tromey <tromey@adacore.com>
3582
3583 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3584 map_matching_symbols. Update.
3585 * dwarf2read.c (dw2_map_matching_symbols): Update.
3586 * psymtab.c (match_partial_symbol): Change type; update.
3587 (psym_map_matching_symbols): Likewise.
3588 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3589 type; update.
3590 * symfile.h (struct quick_symbol_functions)
3591 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3592 Remove "match".
3593
6a3dbf1b
TT
35942019-09-10 Tom Tromey <tromey@adacore.com>
3595
3596 * psymtab.c (map_block): Remove.
3597 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3598 * symtab.c (iterate_over_symbols_terminated): New function.
3599 * symtab.c (iterate_over_symbols_terminated): Declare.
3600
6969f124
TT
36012019-09-10 Tom Tromey <tromey@adacore.com>
3602
3603 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3604 * language.h (struct language_defn) <la_iterate_over_symbols>:
3605 Return bool.
3606 * symtab.c (iterate_over_symbols): Return bool.
3607 * symtab.h (iterate_over_symbols): Return bool.
3608
199b4314
TT
36092019-09-10 Tom Tromey <tromey@adacore.com>
3610
3611 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3612 (add_nonlocal_symbols): Update.
3613 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3614 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3615 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3616 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3617 Change type of "callback". Remove "data".
3618
a084a2a6
AT
3619
36202019-09-09 Ali Tamur <tamur@google.com>
3621
3622 * dwarf2read.c (comp_unit_head): Update comment.
3623 (dwarf2_dwo_name): New function declaration.
3624 (dwarf_unit_type_name): New function declaration.
3625 (read_comp_unit_head): Add support for new compilation units,
3626 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3627 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3628 (currently named as "signature") in their header. Also clarify error
3629 messages.
3630 (lookup_dwo_id): New function. Returns the dwo id of the given
3631 compile unit.
3632 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3633 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3634 functions.
3635 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3636 (dwarf2_dwo_name): Get the dwo name if present.
3637 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3638 purposes.
3639
25a2915e
TT
36402019-09-09 Tom Tromey <tom@tromey.com>
3641
3642 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3643
e4df0874
PW
36442019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * python/python.c (do_start_initialization): Make progname_copy static,
3647 to avoid a leak report.
3648
8634b462
TT
36492019-09-08 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3652
c7f839cb
SM
36532019-09-07 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3656 Change type to gdb::optional<block_enum>.
3657 (dw2_symtab_iter_init): Change block_index parameter type
3658 to gdb::optional<block_enum>.
3659 (dw2_lookup_symbol): Change block_index parameter
3660 type to block_enum.c
3661 (dw2_debug_names_lookup_symbol): Likewise.
3662 * psymtab.c (psym_lookup_symbol): Likewise.
3663 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3664 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3665 Likewise.
3666
ead0e69a
CB
36672019-09-06 Christian Biesinger <cbiesinger@google.com>
3668
3669 * defs.h (relocate_gdb_directory): Change int to bool in
3670 signature and rename flag to relocatable.
3671 * main.c (relocate_path): Likewise.
3672 (relocate_gdb_directory): Likewise.
3673
b16c44de
AM
36742019-09-06 Alan Modra <amodra@gmail.com>
3675
3676 * coffread.c (coff_symfile_read): Constify filename variable.
3677 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3678 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3679 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3680 * solib.c (reload_shared_libraries_1): Likewise.
3681 * symfile.c (reread_symbols): Likewise.
3682 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3683 * solib-darwin.c (darwin_bfd_open): Likewise.
3684 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3685
06ff036e
AB
36862019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3687
3688 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3689 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3690
4e962e74
TT
36912019-09-03 Tom Tromey <tromey@adacore.com>
3692
3693 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3694 types.
3695 (has_negatives): Unbias a range type bound.
3696 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3697 * gdbtypes.c (operator==): Handle new field.
3698 (create_range_type): Add "bias" parameter.
3699 (create_static_range_type, resolve_dynamic_range): Update.
3700 * gdbtypes.h (struct range_bounds) <bias>: New member.
3701 (create_range_type): Add bias parameter.
3702 * printcmd.c (print_scalar_formatted): Unbias range types.
3703 * value.c (unpack_long): Unbias range types.
3704 (pack_long): Bias range types.
3705
d90b8f26
AH
37062019-09-02 Alan Hayward <alan.hayward@arm.com>
3707
3708 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3709 probe arguments.
3710
fe01123e
AH
37112019-09-02 Alan Hayward <alan.hayward@arm.com>
3712
3713 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3714 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3715 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3716 (compile_probe_arg): Likewise.
3717 * probe.h (get_argument_count): Likewise.
3718 * solib-svr4.c (solib_event_probe_action): Likewise.
3719 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3720
e661ef01
AH
37212019-09-02 Alan Hayward <alan.hayward@arm.com>
3722
3723 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3724 code to here...
3725 (svr4_create_solib_event_breakpoints): ...from here.
3726
47a536d9
SDJ
37272019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3728
3729 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3730 suffix from warning message.
3731
d6a00eba
TT
37322019-08-30 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-winsource.h (struct tui_source_window_base)
3735 <refresh_all>: Don't declare.
3736 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3737 Remove.
3738 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3739 tui_show_locator_content.
3740 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3741 declare.
3742 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3743 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3744 declare.
3745
55b2657b
TT
37462019-08-30 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3749
12a8555a
TT
37502019-08-30 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3753 Remove unnecessary forward declarations.
3754
900ac242
TT
37552019-08-30 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3758 rerender.
3759 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3760 tui_show_locator_content.
3761
99ab33fb
TT
37622019-08-30 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3765 (tui_locator_window::rerender): Rewrite using body of previous
3766 tui_show_locator_content.
3767
e594a5d1
TT
37682019-08-30 Tom Tromey <tom@tromey.com>
3769
3770 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3771 set_locator_fullname>: New methods.
3772 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3773 Rename from tui_set_locator_fullname.
3774 (tui_locator_window::set_locator_info): Rename from
3775 tui_set_locator_info. Return bool.
3776 (tui_update_locator_fullname, tui_show_frame_info): Update.
3777
715bb467
TT
37782019-08-30 Tom Tromey <tom@tromey.com>
3779
3780 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3781
772f3f03
TT
37822019-08-30 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3785 call touchwin.
3786
108e13ab
TT
37872019-08-30 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-wingeneral.c (box_win): Assume win_info and
3790 win_info->handle cannot be NULL.
3791
cdaa6eb4
TT
37922019-08-30 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3795 refresh_window>: Declare.
3796 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3797 resize.
3798 (tui_data_item_window::rerender): Rename from
3799 tui_display_register.
3800 (tui_data_item_window::refresh_window): New method.
3801 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3802 no-op.
3803
89df7f90
TT
38042019-08-30 Tom Tromey <tom@tromey.com>
3805
3806 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3807 regs_column_count, current_group>: Move later. Now private.
3808 <get_current_group>: New method.
3809 * tui/tui-regs.c (tui_reg_command): Update.
3810 * tui/tui-layout.c (tui_set_layout): Update.
3811
1bf2866a
TT
38122019-08-30 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3815 (tui_data_window::rerender): Don't call
3816 check_and_display_highlight_if_needed.
3817 (tui_data_window::refresh_all): Remove call to
3818 erase_data_content.
3819
0670413d
TT
38202019-08-30 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3823 (tui_data_window::display_registers_from)
3824 (tui_data_window::display_reg_element_at_line)
3825 (tui_data_window::display_registers_from_line): Remove checks of
3826 "empty".
3827
18bb55c7
TT
38282019-08-30 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3831 Don't declare.
3832 * tui/tui-regs.c (tui_data_window::show_registers): Call
3833 rerender.
3834 (tui_data_window::rerender): Rename from display_all_data.
3835 (tui_data_window::rerender): Remove old implementation.
3836
1f6d2f10
TT
38372019-08-30 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3840 text.
3841 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3842
16d01f9c
BW
38432019-08-29 Bernhard Wodok <barto@gmx.net>
3844 Sergio Durigan Junior <sergiodj@redhat.com>
3845
3846 PR win32/24284
3847 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3848
d8f27c60
AB
38492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3850
3851 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3852 when searching for types.
3853
1f20c35e
AB
38542019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * f-lang.c (f_language_defn): Use f_print_typedef.
3857 * f-lang.h (f_print_typedef): Declare.
3858 * f-typeprint.c (f_print_typedef): Define.
3859
550105b7
CB
38602019-08-27 Christian Biesinger <cbiesinger@google.com>
3861
3862 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3863
4acfdd20
AB
38642019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * cli/cli-utils.c (info_print_options_defs): Delete.
3867 (make_info_print_options_def_group): Delete.
3868 (extract_info_print_options): Delete.
3869 (info_print_command_completer): Delete.
3870 (info_print_args_help): Add extra parameter, and optionally
3871 include text about -n flag.
3872 * cli/cli-utils.h (struct info_print_options): Delete.
3873 (extract_info_print_options): Delete declaration.
3874 (info_print_command_completer): Delete declaration.
3875 (info_print_args_help): Add extra parameter, extend header
3876 comment.
3877 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3878 search_symbols.
3879 * stack.c (struct info_print_options): New type.
3880 (info_print_options_defs): New file scoped variable.
3881 (make_info_print_options_def_group): New static function.
3882 (info_print_command_completer): New static function.
3883 (info_locals_command): Update to use new local functions.
3884 (info_args_command): Likewise.
3885 (_initialize_stack): Add extra parameter to calls to
3886 info_print_args_help.
3887 * symtab.c (search_symbols): Add extra parameter, use this to
3888 possibly excluse non-debug symbols.
3889 (symtab_symbol_info): Add extra parameter, which is passed on to
3890 search_symbols.
3891 (struct info_print_options): New type.
3892 (info_print_options_defs): New file scoped variable.
3893 (make_info_print_options_def_group): New static function.
3894 (info_print_command_completer): New static function.
3895 (info_variables_command): Update to use local functions, and pass
3896 extra parameter through to symtab_symbol_info.
3897 (info_functions_command): Likewise.
3898 (info_types_command): Pass additional argument through to
3899 symtab_symbol_info.
3900 (rbreak_command): Pass extra argument to search_symbols.
3901 (_initialize_symtab): Add extra arguments for calls to
3902 info_print_args_help, and update help text for 'info variables',
3903 'whereis', and 'info functions' commands.
3904 * symtab.h (search_symbols): Add extra argument to declaration.
3905 * NEWS: Mention new flags.
3906
9aa55206
CB
39072019-08-26 Christian Biesinger <cbiesinger@google.com>
3908
3909 * symtab.c (lookup_static_symbol): Call the new function (and move
3910 it down to be next to lookup_global_symbol).
3911 (struct global_sym_lookup_data): Add block_enum member and rename to...
3912 (struct global_or_static_sym_lookup_data): ...this.
3913 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3914 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3915 (lookup_symbol_global_or_static_iterator_cb): ...this.
3916 (lookup_global_or_static_symbol): New function.
3917 (lookup_global_symbol): Call new function.
3918
5c31b358
TV
39192019-08-26 Tom de Vries <tdevries@suse.de>
3920
3921 PR c++/24852
3922 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3923 when pc_probe.prob == NULL.
3924
23c13d42
SM
39252019-08-25 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3928 variable symbol_linkage to symbol_linkage_.
3929
beadd3e8
SM
39302019-08-25 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3933 represent whether the symbol is static, dynamic, or we don't
3934 know.
3935
e3ec872f
YS
39362019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3937
3938 * gdb/rx-tdep.c (rx_register_names): New.
3939 (rx_register_name): Delete.
3940 (rx_psw_type): Delete.
3941 (rx_fpsw_type): Delete.
3942 (rx_register_type): Delete.
3943 (rx_gdbarch_init): Convert target-descriptions.
3944 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3945 * gdb/features/Makefile: Add rx.xml.
3946 * gdb/features/rx.xml: New.
3947 * gdb/features/rx.c: Generated.
3948 * gdb/NEWS: Mention target description support.
3949
d0509ba4
CB
39502019-08-22 Christian Biesinger <cbiesinger@google.com>
3951
3952 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3953 *slot_ptr.
3954
2d41fa11
SDJ
39552019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3956
3957 * configure.ac: Don't check for 'dlfcn.h' (moved to
3958 gdbsupport/common.m4).
3959 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3960 'gdbsupport/'.
3961 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3962 * compile/compile-c-support.c: Include
3963 'gdbsupport/gdb-dlfcn.h'.
3964 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3965 * gdb-dlfcn.c: Move to...
3966 * gdbsupport/gdb-dlfcn.c: ... here.
3967 * gdb-dlfcn.h: Move to...
3968 * gdbsupport/gdb-dlfcn.h: ... here.
3969
de8af808
SL
39702019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3971
3972 * nios2-tdep.c (struct reg_value): Improve comments. Make
3973 the offset field signed.
3974
27204489
CB
39752019-08-22 Christian Biesinger <cbiesinger@google.com>
3976
3977 * python/lib/gdb/__init__.py (_execute_file): New function.
3978 * python/python.c (python_run_simple_file): Call gdb._execute_file
3979 on Windows.
3980
43771869
AB
39812019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3982
3983 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3984 all uses as this was never set to anything but a zero value.
3985
26c957f1
PA
39862019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3987
3988 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3989
c07aae6e
CB
39902019-08-21 Christian Biesinger <cbiesinger@google.com>
3991
3992 * tui/tui-data.h (tui_gen_win_info): Add an =default
3993 move constructor, required by some GCC versions.
3994
3960cb7a
JF
39952019-08-21 Jinke Fan <fanjinke51@yeah.net>
3996
3997 * go32-nat.c (go32_sysinfo): Add hygon_p.
3998
04c72a68
TT
39992019-08-20 Tom Tromey <tom@tromey.com>
4000
4001 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4002 line_from_reg_element_no, first_reg_element_no_inline,
4003 display_all_data, delete_data_content_windows,
4004 erase_data_content>: Now private.
4005
072272ce
TT
40062019-08-20 Tom Tromey <tom@tromey.com>
4007
4008 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4009 (tui_unhighlight_win, tui_highlight_win)
4010 (tui_win_info::make_window): Update.
4011 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4012
973961bd
TT
40132019-08-20 Tom Tromey <tom@tromey.com>
4014
4015 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4016 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4017 (MAX_PID_WIDTH): Move to tui-stack.c.
4018 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4019 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4020 (MAX_PID_WIDTH): Move from tui-data.h.
4021
ab0e1f1a
TT
40222019-08-20 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4025 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4026 (box_win): Update.
4027 (tui_gen_win_info::make_window): Rename from tui_make_window.
4028 (tui_win_info::make_window): New method.
4029 (tui_gen_win_info::make_visible): Update.
4030 * tui/tui-source.c (tui_source_window::set_contents): Update.
4031 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4032 (tui_data_window::display_registers_from): Update.
4033 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4034 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4035 Declare.
4036 <can_box>: Remove.
4037 <title>: Remove.
4038 (struct tui_win_info) <make_window>: Declare.
4039 <can_box>: Now virtual.
4040 <title>: New member.
4041 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4042 * tui/tui-command.c (tui_cmd_window::resize): Update.
4043
100c2bf3
TT
40442019-08-20 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4047 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4048 (tui_data_window::check_register_values): Update.
4049
fa4dc567
TT
40502019-08-20 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-regs.h (struct tui_data_window): Use
4053 DISABLE_COPY_AND_ASSIGN.
4054 <regs_content>: Change type, removing unique_ptr.
4055 <tui_data_window>: Add move constructor.
4056 * tui/tui-regs.c (tui_data_window::show_registers)
4057 (tui_data_window::show_register_group)
4058 (tui_data_window::display_registers_from)
4059 (tui_data_window::display_registers_from)
4060 (tui_data_window::first_data_item_displayed)
4061 (tui_data_window::delete_data_content_windows)
4062 (tui_data_window::rerender, tui_data_window::refresh_window)
4063 (tui_data_window::check_register_values): Update.
4064
ca02d7c8
TT
40652019-08-20 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4068 show_register_group>: Declare.
4069 (tui_show_register_group): Don't declare.
4070 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4071 tui_show_registers.
4072 (tui_data_window::show_register_group): Rename from
4073 tui_show_register_group.
4074 (tui_data_window::check_register_values, tui_reg_command):
4075 Update.
4076 * tui/tui-layout.c (tui_set_layout): Update.
4077
63356bfd
TT
40782019-08-20 Tom Tromey <tom@tromey.com>
4079
4080 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4081 Declare.
4082 (tui_check_register_values): Don't declare.
4083 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4084 from tui_check_register_values.
4085 * tui/tui-hooks.c (tui_register_changed): Update.
4086
42cc14a7
TT
40872019-08-20 Tom Tromey <tom@tromey.com>
4088
4089 * tui/tui-regs.c (tui_reg_layout): Move later.
4090 (tui_show_registers): Don't enable TUI mode or change layout.
4091
b9ad3686
TT
40922019-08-20 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui-regs.h (struct tui_data_item_window)
4095 <~tui_data_item_window>: Remove.
4096 <content>: Now a unique_xmalloc_ptr.
4097 * tui/tui-regs.c (tui_register_format): Return a
4098 unique_xmalloc_ptr.
4099 (tui_get_register): Update.
4100 (~tui_data_item_window): Remove.
4101 (tui_data_window::display_registers_from, tui_display_register):
4102 Update.
4103 * tui/tui-io.h (tui_expand_tabs): Update.
4104 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4105 Remove "col" parameter.
4106
8e114aab
TT
41072019-08-20 Tom Tromey <tom@tromey.com>
4108
4109 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4110 field.
4111 * tui/tui-regs.c (~tui_data_item_window): Update.
4112
1a4f81dd
TT
41132019-08-20 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4116 earlier.
4117
0f8d8876
TT
41182019-08-20 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4121
605dc2c2
TT
41222019-08-20 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-source.h (struct tui_source_window): Update.
4125 * tui/tui-regs.c (tui_show_registers): Update.
4126 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4127 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4128 (NO_REGS_STRING): Remove defines.
4129
aedbe3bb
CM
41302019-08-20 Conrad Meyer <cem@FreeBSD.org>
4131
4132 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4133 unnecessary thread walk if remote doesn't support the packet.
4134
7ce8f214
TT
41352019-08-19 Tom Tromey <tromey@adacore.com>
4136
4137 * python/py-value.c (value_has_field): Fix indentation.
4138
f21c2bd7
TT
41392019-08-19 Tom Tromey <tromey@adacore.com>
4140
4141 * printcmd.c (do_one_display, info_display_command): Update.
4142 * block.h (contained_in): Return bool. Add allow_nested
4143 parameter.
4144 * block.c (contained_in): Return bool. Add allow_nested
4145 parameter.
4146
d806ea2d
TT
41472019-08-19 Tom Tromey <tom@tromey.com>
4148
4149 * configure: Rebuild.
4150 * configure.ac: Disallow the combination of -static-libstdc++ and
4151 source highlight.
4152 * source-cache.c (get_language_name): Handle rust.
4153 (source_cache::get_source_lines): Ignore highlighting exceptions.
4154
398fdd60
TT
41552019-08-16 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4158 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4159 (struct tui_source_window_base) <make_visible, refresh_window,
4160 resize>: Remove methods.
4161 <execution_info>: Remove field.
4162 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4163 (tui_show_source_line, tui_source_window_base)
4164 (~tui_source_window_base): Update.
4165 (tui_source_window_base::resize)
4166 (tui_source_window_base::make_visible)
4167 (tui_source_window_base::refresh_window): Remove.
4168 (tui_source_window_base::update_exec_info): Update.
4169 * tui/tui-source.c (tui_source_window::set_contents): Update.
4170 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4171
e699d331
TT
41722019-08-16 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4175 deprecated_query_hook.
4176
bb01dbfc
TT
41772019-08-16 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4180 (tui_update_source_windows_with_line): Update.
4181 * tui/tui-source.h (struct tui_source_window)
4182 <show_symtab_source>: Declare.
4183 (tui_show_symtab_source): Don't declare.
4184 * tui/tui-source.c (tui_show_symtab_source): Rename from
4185 tui_show_symtab_source.
4186
81c82c4b
TT
41872019-08-16 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-winsource.h (struct tui_source_window_base)
4190 <set_contents>: Declare.
4191 * tui/tui-winsource.c
4192 (tui_source_window_base::update_source_window_as_is): Update.
4193 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4194 Declare.
4195 (tui_set_source_content): Don't declare.
4196 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4197 tui_set_source_content.
4198 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4199 Declare.
4200 (tui_set_disassem_content): Don't declare.
4201 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4202 tui_set_disassem_content.
4203
2ddaf614
TT
42042019-08-16 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-winsource.h (struct tui_source_window_base)
4207 <update_breakpoint_info>: Declare.
4208 (tui_update_breakpoint_info): Don't declare.
4209 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4210 (tui_update_all_breakpoint_info): Update.
4211 (tui_source_window_base::update_breakpoint_info): Rename from
4212 tui_update_breakpoint_info.
4213 (tui_source_window_base::update_exec_info): Update.
4214
017f9828
TT
42152019-08-16 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-winsource.h (struct tui_source_window_base)
4218 <update_source_window>: Declare.
4219 (tui_update_source_window): Don't declare.
4220 * tui/tui-winsource.c
4221 (tui_source_window_base::update_source_window): Rename from
4222 tui_update_source_window.
4223 (tui_source_window_base::rerender): Update.
4224 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4225 * tui/tui-disasm.c (tui_show_disassem)
4226 (tui_show_disassem_and_update_source)
4227 (tui_disasm_window::maybe_update): Update.
4228
ed8358e9
TT
42292019-08-16 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-winsource.h (struct tui_source_window_base)
4232 <update_source_window_as_is>: Declare.
4233 (tui_update_source_window_as_is): Don't declare.
4234 * tui/tui-winsource.c (tui_update_source_window): Update
4235 (tui_source_window_base::update_source_window_as_is): Rename from
4236 tui_update_source_window_as_is.
4237 (tui_source_window_base::refill): Update.
4238 * tui/tui-source.c (tui_show_symtab_source): Update.
4239 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4240 Update.
4241
20149b6b
TT
42422019-08-16 Tom Tromey <tom@tromey.com>
4243
4244 * tui/tui-winsource.h (tui_update_source_window)
4245 (tui_update_source_window_as_is): Remove "noerror" parameter.
4246 * tui/tui-winsource.c (tui_update_source_window)
4247 (tui_update_source_window_as_is): Remove "noerror" parameter.
4248 (tui_update_source_windows_with_addr)
4249 (tui_update_source_windows_with_line)
4250 (tui_source_window_base::rerender)
4251 (tui_source_window_base::refill): Update.
4252 * tui/tui-source.h (tui_set_source_content)
4253 (tui_show_symtab_source): Remove "noerror" parameter.
4254 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4255 parameter.
4256 (tui_show_symtab_source): Likewise.
4257 (tui_source_window::maybe_update): Update.
4258 * tui/tui-disasm.c (tui_show_disassem)
4259 (tui_show_disassem_and_update_source)
4260 (tui_disasm_window::do_scroll_vertical)
4261 (tui_disasm_window::maybe_update): Update.
4262
2d83e710
TT
42632019-08-16 Tom Tromey <tom@tromey.com>
4264
4265 * tui/tui.c (tui_is_window_visible): Update.
4266 * tui/tui-wingeneral.c (tui_make_window)
4267 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4268 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4269 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4270 (tui_set_win_height_command, parse_scrolling_args): Update.
4271 * tui/tui-source.c (tui_source_window::style_changed): Update.
4272 * tui/tui-regs.c (tui_show_registers)
4273 (tui_data_window::first_data_item_displayed)
4274 (tui_data_window::delete_data_content_windows)
4275 (tui_check_register_values, tui_reg_command): Update.
4276 * tui/tui-disasm.c (tui_show_disassem): Update.
4277 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4278 method.
4279 <is_visible>: Remove field.
4280 * tui/tui-data.c (tui_next_win, tui_prev_win)
4281 (tui_delete_invisible_windows): Update.
4282
d4ab829a
TT
42832019-08-16 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-winsource.h (struct tui_source_window_base)
4286 <m_has_locator>: Remove.
4287 * tui/tui-layout.c (show_source_disasm_command, show_data)
4288 (show_source_or_disasm_and_command): Update.
4289
aa7ca1bb
AH
42902019-08-16 Alan Hayward <alan.hayward@arm.com>
4291
4292 * NEWS (Other MI changes): New subsection.
4293 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4294 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4295 * arch-utils.c (default_get_pc_address_flags): New function.
4296 * arch-utils.h (default_get_pc_address_flags): New declaration.
4297 * gdbarch.sh: Add get_pc_address_flags.
4298 * gdbarch.c: Regenerate.
4299 * gdbarch.h: Likewise.
4300 * stack.c (print_pc): New function.
4301 (print_frame_info) (print_frame): Call print_pc.
4302
6eac171f
TV
43032019-08-16 Tom de Vries <tdevries@suse.de>
4304
4305 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4306 print_objfile_section_info.
4307
3df505f6
TT
43082019-08-15 Tom Tromey <tom@tromey.com>
4309
4310 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4311 calling update_cmdwin_start_line.
4312 * tui/tui-winsource.h (struct tui_source_window_base)
4313 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4314 <rerender>: Declare.
4315 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4316 Call rerender.
4317 (tui_source_window_base::set_new_height): Remove.
4318 (tui_source_window_base::rerender): Rename from
4319 do_make_visible_with_new_height.
4320 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4321 resize method.
4322 (tui_win_info::make_invisible_and_set_new_height)
4323 (tui_win_info::make_visible_with_new_height): Remove.
4324 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4325 Declare.
4326 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4327 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4328 do_make_visible_with_new_height>: Don't declare.
4329 <rerender>: Declare.
4330 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4331 set_new_height.
4332 (tui_data_window::do_make_visible_with_new_height): Remove.
4333 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4334 call tui_show_locator_content.
4335 (tui_gen_win_info::resize): Call rerender.
4336 (show_source_or_disasm_and_command): Don't call
4337 tui_show_locator_content.
4338 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4339 method.
4340 (struct tui_win_info) <rerender>: Declare.
4341 <set_new_height, make_invisible_and_set_new_height,
4342 make_visible_with_new_height>: Don't declare.
4343 * tui/tui-data.c (tui_win_list::rerender): New method.
4344 * tui/tui-command.h (struct tui_cmd_window)
4345 <do_make_visible_with_new_height>: Don't declare.
4346 * tui/tui-command.c
4347 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4348
272560b5
TT
43492019-08-15 Tom Tromey <tromey@adacore.com>
4350
4351 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4352 * ada-lang.c (ada_enum_name): Likewise.
4353
08235187
CB
43542019-08-15 Christian Biesinger <cbiesinger@google.com>
4355
4356 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4357 leading underscore.
4358 (GdbOutputErrorFile): Likewise.
4359 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4360 accordingly.
4361 (execute_unwinders): Rename to have a leading underscore.
4362 (auto_load_packages): Likewise.
4363 (global scope): Adjust call to auto_load_packages accordingly.
4364 (GdbSetPythonDirectory): Likewise.
4365 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4366 instead of execute_unwinders.
4367
db502012
TT
43682019-08-15 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4371 (show_data): Don't change window visibility.
4372 (tui_gen_win_info::resize): Remove special case for command
4373 window. Use wresize, when available.
4374 (show_source_or_disasm_and_command): Don't change window
4375 visibility.
4376 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4377 <make_visible>: New method.
4378 * tui/tui-command.c (tui_cmd_window::resize): New method.
4379
3891b65e
TT
43802019-08-15 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4383 (struct tui_source_windows): New.
4384 * tui/tui-winsource.c (tui_display_main): Update.
4385 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4386 (new_height_ok, parse_scrolling_args): Update.
4387 * tui/tui-layout.c (show_layout, show_data): Update.
4388 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4389 (tui_add_to_source_windows): Don't declare.
4390 * tui/tui-data.c (source_windows, tui_source_windows)
4391 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4392
ee556432
TT
43932019-08-15 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4396 Rename from reset.
4397 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4398 * tui/tui-layout.c (show_source_disasm_command, show_data):
4399 Update.
4400 (tui_gen_win_info::resize): Rename.
4401 (show_source_or_disasm_and_command): Update.
4402 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4403 reset.
4404
46f438e3
TT
44052019-08-15 Tom Tromey <tom@tromey.com>
4406
4407 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4408 * tui/tui-interp.c (tui_interp::init): Don't call
4409 tui_initialize_static_data.
4410 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4411
f4ce562c
TT
44122019-08-15 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4415 examine tui_win_list.
4416
c398c3d0
TT
44172019-08-15 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4420 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4421 tui_clear_source_content.
4422 (tui_clear_source_content): Remove.
4423 (tui_source_window_base::do_erase_source_content): Hoist call to
4424 content.clear().
4425 * tui/tui-stack.c (tui_show_frame_info): Don't call
4426 tui_clear_source_content.
4427
e25d2004
TT
44282019-08-15 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-winsource.h (struct tui_source_window_base)
4431 <do_erase_source_content>: New method.
4432 <erase_source_content>: New method.
4433 (tui_erase_source_content): Don't declare.
4434 * tui/tui-winsource.c (tui_clear_source_content): Update.
4435 (tui_source_window_base::do_erase_source_content): Rename from
4436 tui_erase_source_content.
4437 (tui_source_window_base::show_source_content): Update.
4438 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4439 * tui/tui-source.h (struct tui_source_window)
4440 <erase_source_content>: New method.
4441 * tui/tui-disasm.h (struct tui_disasm_window)
4442 <erase_source_content>: New method.
4443
002f15c2
TT
44442019-08-15 Tom Tromey <tom@tromey.com>
4445
4446 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4447 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4448 constructor.
4449 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4450 * tui/tui-source.c (tui_set_source_content): Update.
4451 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4452
c9033fe8
TT
44532019-08-15 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4456 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4457 tui-source.c.
4458 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4459 Declare.
4460 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4461 method.
4462 (tui_source_window::maybe_update): Update.
4463
088f37dd
TT
44642019-08-15 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4467 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4468 tui-disasm.c.
4469 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4470 Declare.
4471 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4472 method.
4473 (tui_disasm_window::maybe_update): Update.
4474
a54700c6
TT
44752019-08-15 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-winsource.h (struct tui_source_window_base)
4478 <maybe_update>: Declare.
4479 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4480 method.
4481 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4482 Declare.
4483 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4484 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4485 Declare.
4486 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4487
e2a678a5
TT
44882019-08-15 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4491
f2dda477
TT
44922019-08-15 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-wingeneral.c: Include tui-stack.h.
4495 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4496 (struct tui_locator_window): Move from tui-data.h.
4497 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4498 (tui_initialize_static_data): Move from tui-data.c.
4499 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4500 (struct tui_locator_window): Move to tui-stack.c.
4501 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4502 (tui_initialize_static_data): Move to tui-stack.c.
4503
ed4a1084
TT
45042019-08-15 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui-layout.c (show_source_disasm_command)
4507 (show_source_or_disasm_and_command): Use make_visible method, not
4508 tui_make_window.
4509 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4510 Remove.
4511
65962b20
TT
45122019-08-15 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-wingeneral.h (tui_make_window): Update.
4515 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4516 parameter.
4517 (tui_gen_win_info::make_visible): Update.
4518 * tui/tui-regs.c (tui_data_window::display_registers_from):
4519 Update.
4520 * tui/tui-layout.c (show_source_disasm_command)
4521 (show_source_or_disasm_and_command): Update.
4522 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4523 (enum tui_box): Remove.
4524 (struct tui_win_info) <can_box>: New method.
4525 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4526 method.
4527
2208ee91
TV
45282019-08-15 Tom de Vries <tdevries@suse.de>
4529
4530 * linux-nat-trad.c: Include gdbarch.h.
4531
75faf5c4
AH
45322019-08-14 Alan Hayward <alan.hayward@arm.com>
4533
4534 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4535 register sizes.
4536
b1c896b3
TT
45372019-08-14 Tom Tromey <tromey@adacore.com>
4538
4539 * darwin-nat.c: Include gdbarch.h.
4540 * darwin-nat-info.c: Include gdbarch.h.
4541
6405cd73
TT
45422019-08-13 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4545 Remove.
4546 * tui/tui-data.c (tui_initialize_static_data): Update.
4547
5216580d
TT
45482019-08-13 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.h (struct tui_exec_info_window)
4551 <~tui_exec_info_window, maybe_allocate_content, get_content,
4552 m_content>: Remove.
4553 (struct tui_source_window_base) <set_exec_info_content,
4554 show_exec_info_content>: Don't declare.
4555 * tui/tui-winsource.c
4556 (tui_exec_info_window::maybe_allocate_content): Remove.
4557 (tui_source_window_base::update_exec_info): Rename from
4558 set_exec_info_content.
4559 (tui_source_window_base::show_exec_info_content)
4560 (tui_source_window_base::update_exec_info): Remove.
4561
93858ad3
TT
45622019-08-13 Tom Tromey <tom@tromey.com>
4563
4564 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4565 declare.
4566 * tui/tui-winsource.c (tui_update_source_window_as_is)
4567 (tui_update_source_windows_with_addr, tui_erase_source_content):
4568 Update.
4569 (tui_clear_exec_info_content): Remove.
4570
e321e7ce
TT
45712019-08-13 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4574 declare.
4575 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4576 call tui_erase_exec_info_content.
4577 (tui_clear_exec_info_content): Rename from
4578 tui_erase_exec_info_content.
4579 (tui_clear_exec_info_content): Delete.
4580
8270ac62
TT
45812019-08-13 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-winsource.h (struct tui_source_window_base)
4584 <show_exec_info_content>: Declare.
4585 (tui_show_exec_info_content): Don't declare.
4586 * tui/tui-winsource.c
4587 (tui_source_window_base::show_exec_info_content): Rename from
4588 tui_show_exec_info_content.
4589 (tui_source_window_base::update_exec_info): Update.
4590
7b56485d
TT
45912019-08-13 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4594 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4595 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4596 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4597 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4598 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4599 ... here.
4600
7ba913dc
TT
46012019-08-13 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-winsource.h (struct tui_source_window_base)
4604 <update_exec_info>: Declare.
4605 (tui_update_exec_info): Don't declare.
4606 * tui/tui-winsource.c (tui_update_source_window_as_is)
4607 (tui_source_window_base::refresh_all)
4608 (tui_update_all_breakpoint_info): Update.
4609 (tui_source_window_base::update_exec_info): Rename from
4610 tui_update_exec_info.
4611 * tui/tui-stack.c (tui_show_frame_info): Update.
4612
37a4a131
TT
46132019-08-13 Tom Tromey <tom@tromey.com>
4614
4615 * tui/tui-winsource.h (struct tui_source_window_base)
4616 <set_exec_info_content>: Declare.
4617 (tui_set_exec_info_content): Don't declare.
4618 * tui/tui-winsource.c
4619 (tui_source_window_base::set_exec_info_content): Rename from
4620 tui_set_exec_info_content.
4621 (tui_update_exec_info): Update.
4622
0bd27e07
TT
46232019-08-13 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-winsource.h (struct tui_source_window_base)
4626 <show_source_content>: Declare.
4627 (tui_show_source_content): Don't declare.
4628 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4629 (tui_source_window_base::show_source_content): Rename from
4630 tui_show_source_content.
4631 (tui_source_window_base::refresh_all): Update.
4632 * tui/tui-layout.c (show_source_disasm_command)
4633 (show_source_or_disasm_and_command): Update.
4634
b4ef5aeb
TT
46352019-08-13 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-winsource.c (tui_erase_source_content)
4638 (tui_show_source_content, tui_source_window_base::refresh_all):
4639 Update.
4640 * tui/tui-wingeneral.h
4641 (tui_check_and_display_highlight_if_needed): Don't declare.
4642 * tui/tui-wingeneral.c
4643 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4644 check_and_display_highlight_if_needed.
4645 * tui/tui-win.c (tui_rehighlight_all)
4646 (tui_win_info::make_visible_with_new_height): Update.
4647 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4648 (tui_data_window::erase_data_content)
4649 (tui_data_window::display_all_data): Update.
4650 * tui/tui-data.h (struct tui_win_info)
4651 <check_and_display_highlight_if_needed>: Declare.
4652
fede5273
TT
46532019-08-13 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-win.c (tui_resize_all): Call
4656 tui_delete_invisible_windows.
4657 * tui/tui-layout.c (show_layout): Call
4658 tui_delete_invisible_windows.
4659 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4660 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4661
22c3f490
TT
46622019-08-13 Tom Tromey <tom@tromey.com>
4663
4664 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4665 tui_add_win_to_layout.
4666
16cb7910
TT
46672019-08-13 Tom Tromey <tom@tromey.com>
4668
4669 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4670 * tui/tui-layout.c (tui_default_win_height): Now static.
4671
cc0c3ffb
TT
46722019-08-13 Tom Tromey <tom@tromey.com>
4673
4674 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4675 single switch.
4676 (show_source_disasm_command, show_source_or_disasm_and_command):
4677 Don't check current layout.
4678
3f3ffe54
TT
46792019-08-13 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-wingeneral.c (make_all_visible): Remove.
4682 (tui_make_all_invisible): Simplify.
4683 * tui/tui-layout.c (tui_make_all_invisible): Move from
4684 tui-wingeneral.c; simplify.
4685 (show_layout): Hoist call to tui_make_all_invisible.
4686 (show_data): Don't call tui_make_all_invisible.
4687
69258091
TT
46882019-08-13 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4691 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4692
62cf57fe
TT
46932019-08-13 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4696 tui-data.c.
4697 (show_source_disasm_command, show_data)
4698 (show_source_or_disasm_and_command): Don't use
4699 tui_set_current_layout_to.
4700 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4701 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4702 tui-layout.c.
4703 (tui_set_current_layout_to): Remove.
4704
2afade5d
TT
47052019-08-13 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-layout.c (tui_set_layout): Update.
4708 * tui/tui-data.h (struct tui_layout_def): Remove.
4709 (tui_layout_def): Don't declare.
4710 * tui/tui-data.c (layout_def): Remove.
4711 (tui_layout_def): Remove.
4712
a3504e96
TT
47132019-08-13 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-winsource.h (struct tui_source_window_base)
4716 <clear_detail>: No longer "override".
4717 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4718 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4719 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4720 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4721 Remove.
4722 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4723
29c92911
TT
47242019-08-13 Tom Tromey <tromey@adacore.com>
4725
4726 * tracepoint.c: Don't include readline.h or history.h.
4727
86c6b807
TT
47282019-08-12 Tom Tromey <tom@tromey.com>
4729
4730 * configure: Rebuild.
4731 * configure.ac: Check for readline 7.
4732 * NEWS: Mention readline 7 requirement.
4733 * README: Update.
4734
5db2718c
TT
47352019-08-12 Tom Tromey <tom@tromey.com>
4736
4737 * mingw-hdep.c (gdb_select): Remove readline hack.
4738
dac36daf
PFC
47392019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4740
4741 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4742 when the function fails.
4743
1022c627
AA
47442019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4745
4746 * s390-tdep.c (s390_type_align): New function.
4747 (s390_gdbarch_init): Set it as type_align gdbarch method.
4748
eba4caf2
TV
47492019-08-09 Tom de Vries <tdevries@suse.de>
4750
4751 PR gdb/24591
4752 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4753 pc_low with relocation offset.
4754
123cd851
TT
47552019-08-07 Tom Tromey <tromey@adacore.com>
4756
4757 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4758 (print_frame_args): Update.
4759 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4760 Update.
4761 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4762 * frame.h (struct frame_arg): Add initializers.
4763 <error>: Now a unique_xmalloc_ptr.
4764
3d31bc39
AH
47652019-08-07 Alan Hayward <alan.hayward@arm.com>
4766
4767 * NEWS: Expand the Pointer Authentication entry.
4768 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4769 (aarch64_frame_unmask_lr): ... to this.
4770 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4771 Call aarch64_frame_unmask_lr.
4772 * frame.c (struct frame_info): Add "masked" variable.
4773 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4774 (fprint_frame): Check for masked pc.
4775 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4776 declarations.
4777 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4778 * stack.c (print_frame): Check for masked pc.
4779
0cf9feb9
TT
47802019-08-06 Tom Tromey <tom@tromey.com>
4781
4782 * stabsread.c (patch_block_stabs, read_one_struct_field)
4783 (read_enum_type): Use obstack_strndup.
4784 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4785 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4786 * dwarf2read.c (guess_full_die_structure_name)
4787 (anonymous_struct_prefix): Use obstack_strndup.
4788 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4789 * c-exp.y (yylex): Use obstack_strndup.
4790 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4791 (write_var_or_type): Use obstack_strndup.
4792
efba19b0
TT
47932019-08-06 Tom Tromey <tom@tromey.com>
4794
4795 * symfile.c (reread_symbols): Use obstack_strdup.
4796 * stabsread.c (read_type): Use obstack_strdup.
4797 * gdb_obstack.h (obstack_strdup): New overload.
4798 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4799 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4800 (dwarf2_canonicalize_name): Use obstack_strdup.
4801 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4802 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4803 Use obstack_strdup.
4804
f25102f7
TT
48052019-08-06 Tom Tromey <tom@tromey.com>
4806
4807 * gdb_obstack.h (obstack_strdup): Define.
4808 * gdb_obstack.c (obstack_strdup): Don't define.
4809
021887d8
TT
48102019-08-06 Tom Tromey <tom@tromey.com>
4811
4812 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4813 obstack_strdup.
4814 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4815 obstack_strdup.
4816 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4817 * stabsread.c (common_block_start): Use obstack_strdup.
4818 * objfiles.c (set_objfile_main_name, objfile): Use
4819 obstack_strdup.
4820 * namespace.c (add_using_directive): Use obstack_strdup.
4821 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4822 * jit.c (finalize_symtab): Use obstack_strdup.
4823 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4824 (guess_partial_die_structure_name, partial_die_info::fixup)
4825 (dwarf2_name): Use obstack_strdup.
4826 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4827 obstack_strdup.
4828 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4829 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4830 obstack_strdup.
4831 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4832
d2834edc
PW
48332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4834
4835 * unittests/help-doc-selftests.c: New file.
4836 * Makefile.in: Add the new file.
4837
590042fc
PW
48382019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4839
4840 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4841 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4842 the full first line, except when FOR_VALUE_PREFIX. In this case,
4843 the trailing '.' is not output, and the first character is uppercased.
4844 (print_help_for_command): Update call to print_doc_line.
4845 (print_doc_of_command): Likewise.
4846 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4847 * cli/cli-option.c (append_indented_doc): Do not append newline.
4848 (build_help_option): Append newline after first appended_indented_doc
4849 only if a second call is done.
4850 (build_help): Append 2 new lines before each option, except the first
4851 one.
4852 * compile/compile.c (_initialize_compile): Add new lines after
4853 %OPTIONS%, when not at the end of the help.
4854 Change help doc or code
4855 producing the help doc to respect the invariants.
4856 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4857 Also removed the new line after 'Options:', as all other commands
4858 do not put an empty line between 'Options:' and the first option.
4859 * printcmd.c (_initialize_printcmd): Likewise.
4860 * stack.c (_initialize_stack): Likewise.
4861 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4862 incorrectly telling COMMAND is optional.
4863 * ada-lang.c (_initialize_ada_language): Change help doc or code
4864 producing the help doc to respect the invariants.
4865 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4866 * breakpoint.c (_initialize_breakpoint): Likewise.
4867 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4868 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4869 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4870 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4871 _initialize_cli_style): Likewise.
4872 * corelow.c (core_target_info): Likewise.
4873 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4874 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4875 * filesystem.c (_initialize_filesystem): Likewise.
4876 * frame.c (_initialize_frame): Likewise.
4877 * gnu-nat.c (add_task_commands): Likewise.
4878 * infcall.c (_initialize_infcall): Likewise.
4879 * infcmd.c (_initialize_infcmd): Likewise.
4880 * interps.c (_initialize_interpreter): Likewise.
4881 * language.c (_initialize_language): Likewise.
4882 * linux-fork.c (_initialize_linux_fork): Likewise.
4883 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4884 * maint.c (_initialize_maint_cmds): Likewise.
4885 * memattr.c (_initialize_mem): Likewise.
4886 * printcmd.c (_initialize_printcmd): Likewise.
4887 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4888 _RegEx): Likewise.
4889 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4890 * record-btrace.c (_initialize_record_btrace): Likewise.
4891 * record-full.c (_initialize_record_full): Likewise.
4892 * record.c (_initialize_record): Likewise.
4893 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4894 * regcache.c (_initialize_regcache): Likewise.
4895 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4896 _initialize_remote): Likewise.
4897 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4898 * serial.c (_initialize_serial): Likewise.
4899 * skip.c (_initialize_step_skip): Likewise.
4900 * source.c (_initialize_source): Likewise.
4901 * stack.c (_initialize_stack): Likewise.
4902 * symfile.c (_initialize_symfile): Likewise.
4903 * symtab.c (_initialize_symtab): Likewise.
4904 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4905 * top.c (init_main): Likewise.
4906 * tracefile-tfile.c (tfile_target_info): Likewise.
4907 * tracepoint.c (_initialize_tracepoint): Likewise.
4908 * tui/tui-win.c (_initialize_tui_win): Likewise.
4909 * utils.c (add_internal_problem_command): Likewise.
4910 * valprint.c (value_print_option_defs): Likewise.
4911
404f2902
FCE
49122019-08-06 Frank Ch. Eigler <fche@redhat.com>
4913
4914 PR build/24886
4915 * configure.ac: Drop enable-libmcheck support.
4916 * configure, config.in: Rebuild.
4917 * libmcheck.m4: Remove.
4918 * acinclude.m4: Don't include it.
4919 * Makefile.in: Don't distribute it.
4920 * top.c (print_gdb_configuration): Don't mention it.
4921
046bebe1
TT
49222019-08-06 Tom Tromey <tom@tromey.com>
4923
4924 * utils.c (set_output_style): Sometimes pass stream to
4925 emit_style_escape.
4926 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4927 * record-btrace.c (btrace_insn_history): Update.
4928 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4929 method.
4930 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4931 Update initializers.
4932 <m_uiout>: New field.
4933 <m_di>: Move lower.
4934 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4935 Remove "uiout" parameter.
4936 (dump_insns): Update.
4937 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4938 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4939
ddbcedf5
CB
49402019-08-06 Christian Biesinger <cbiesinger@google.com>
4941
4942 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4943 (error_in_psymtab_expansion): Likewise.
4944 (lookup_symbol_via_quick_fns): Likewise.
4945 (basic_lookup_transparent_type_quick): Likewise.
4946 (basic_lookup_transparent_type_1): Likewise.
4947
b08b16c8
TT
49482019-08-06 Tom Tromey <tromey@adacore.com>
4949
4950 * source.c (last_source_error): Now bool.
4951 (print_source_lines_base): Make "noprint" bool. Only open
4952 source file when last_source_visited changes.
4953
cb44333d
TT
49542019-08-06 Tom Tromey <tromey@adacore.com>
4955
4956 * annotate.c (annotate_source_line): Use g_source_cache.
4957 * source-cache.c (source_cache::get_plain_source_lines): Change
4958 parameters. Populate m_offset_cache.
4959 (source_cache::ensure): New method.
4960 (source_cache::get_line_charpos): New method.
4961 (extract_lines): Move lower. Change parameters.
4962 (source_cache::get_source_lines): Move lower.
4963 * source-cache.h (class source_cache): Update comment.
4964 <get_line_charpos>: New method.
4965 <get_source_lines>: Update comment.
4966 <clear>: Clear m_offset_cache.
4967 <get_plain_source_lines>: Change parameters.
4968 <ensure>: New method
4969 <m_offset_cache>: New member.
4970 * source.c (forget_cached_source_info_for_objfile): Update.
4971 (info_source_command): Use g_source_cache.
4972 (find_source_lines, open_source_file_with_line_charpos): Remove.
4973 (print_source_lines_base, search_command_helper): Use g_source_cache.
4974 * source.h (open_source_file_with_line_charpos): Don't declare.
4975 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4976 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4977 Use g_source_cache.
4978
872dceaa
TT
49792019-08-06 Tom Tromey <tromey@adacore.com>
4980
4981 * source-cache.c (source_cache::get_plain_source_lines):
4982 Remove "first_line" and "last_line" parameters.
4983 (source_cache::get_source_lines): Cache plain text.
4984 * source-cache.h (class source_cache)
4985 <get_plain_source_lines>: Update.
4986
269249d9
TT
49872019-08-06 Tom Tromey <tromey@adacore.com>
4988
4989 * source-cache.c (extract_lines): No longer a method.
4990 Changed type of parameter. Include final newline.
4991 (selftests::extract_lines_test): New function.
4992 (_initialize_source_cache): Likewise.
4993 * source-cache.h (class source_cache)
4994 <extract_lines>: Don't declare.
4995
c0e8dcd8
TT
49962019-08-06 Tom Tromey <tromey@adacore.com>
4997
4998 * breakpoint.c (init_breakpoint_sal): Update.
4999 (breakpoint): Update.
5000 * breakpoint.h (struct breakpoint) <filter>: Now a
5001 unique_xmalloc_ptr.
5002
0b27c27d
CB
50032019-08-05 Christian Biesinger <cbiesinger@google.com>
5004
5005 * NEWS: Mention dictionary access on blocks.
5006 * python/py-block.c (blpy_getitem): New function.
5007 (block_object_as_mapping): New struct.
5008 (block_object_type): Use new struct for tp_as_mapping field.
5009
4ee94178
CB
50102019-08-05 Christian Biesinger <cbiesinger@google.com>
5011
5012 * objfiles.h (objfile): Add a comment describing partial symbols.
5013
8abfcabc
TT
50142019-08-05 Tom Tromey <tromey@adacore.com>
5015
5016 * compile/compile.c (_initialize_compile): Use _(), not N_().
5017 * thread.c (_initialize_thread): Use _(), not N_().
5018 * stack.c (_initialize_stack): Use _(), not N_().
5019 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5020
2b79f376
SM
50212019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5022
5023 * dwarf2read.c (struct dw2_symtab_iterator):
5024 <want_specific_block>: Remove.
5025 <block_index>: Change type to gdb::optional.
5026 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5027 change type of BLOCK_INDEX parameter to gdb::optional.
5028 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5029 (dw2_lookup_symbol): Don't pass argument for
5030 WANT_SPECIFIC_BLOCK.
5031 (dw2_expand_symtabs_for_function): Don't pass argument for
5032 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5033 (class dw2_debug_names_iterator)
5034 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5035 parameter, change BLOCK_INDEX type to gdb::optional.
5036 <m_want_specific_block>: Remove.
5037 <m_block_index>: Change type to gdb::optional.
5038 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5039 gdb::optional. Re-write in function of gdb::optional.
5040 (dw2_debug_names_lookup_symbol): Don't pass argument for
5041 WANT_SPECIFIC_BLOCK.
5042 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5043 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5044 BLOCK_INDEX.
5045
ae60f04e
PW
50462019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5047
5048 * NEWS: Mention changes to "info sources" command.
5049
28cd9371
PW
50502019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051
5052 * symtab.c (filename_partial_match_opts): New struct type.
5053 (struct output_source_filename_data): New members
5054 regexp, c_regexp, partial_match.
5055 (output_source_filename): Use new members to decide to print file.
5056 (info_sources_option_defs): New variable.
5057 (make_info_sources_options_def_group, print_info_sources_header,
5058 info_sources_command_completer):
5059 New functions.
5060 (info_sources_command): Read new optional arguments.
5061 (_initialize_symtab): Update info sources help.
5062
ca683e3a
AO
50632019-08-02 Alexandre Oliva <oliva@adacore.com>
5064
5065 * ada-lang.c (exception_support_info_v0): Renamed from...
5066 (default_exception_support_info): ... this. Create new
5067 definition for v1.
5068 (ada_has_this_exception_support): Look up catch_handlers_sym.
5069 (ada_exception_support_info_sniffer): Try v0 after default.
5070
f1264162
TT
50712019-08-01 Tom Tromey <tromey@adacore.com>
5072
5073 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5074 gdbarch.h.
5075
0a7b2485
CB
50762019-08-01 Christian Biesinger <cbiesinger@google.com>
5077
5078 * s12z-tdep.c: Fix include path for s12z-opc.h.
5079
c6bdbeb7
AH
50802019-08-01 Alan Hayward <alan.hayward@arm.com>
5081
5082 * NEWS: Require GNU make 3.82.
5083
a2bd7b82
TT
50842019-07-16 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5087 declare.
5088
aa3b6533
TT
50892019-07-30 Tom Tromey <tromey@adacore.com>
5090
5091 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5092
a1530dc7
KB
50932019-07-30 Kevin Buettner <kevinb@redhat.com>
5094
5095 * printcmd.c (print_address_symbolic): Print negative offsets.
5096 (build_address_symbolic): Force signed arithmetic when computing
5097 offset.
5098
2906593f
CB
50992019-07-30 Christian Biesinger <cbiesinger@google.com>
5100
5101 PR/24474: Add a function to lookup static variables.
5102 * NEWS: Mention this new function.
5103 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5104 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5105 * python/python.c (python_GdbMethods): Add new function.
5106
c620ed88
CB
51072019-07-29 Christian Biesinger <cbiesinger@google.com>
5108
5109 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5110 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5111 (objfpy_lookup_static_symbol): New function.
5112 (objfile_object_methods): Add new functions.
5113
bc4268a5
PW
51142019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5115
5116 * NEWS: Mention 'set|show print frame-info'. Mention new
5117 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5118 backtrace argument. Mention that python frame filtering code
5119 is now consistent with what 'backtrace' command prints.
5120
4b5e8d19
PW
51212019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5122
5123 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5124 comments.
5125 (print_frame_info_auto, print_frame_info_source_line,
5126 print_frame_info_location, print_frame_info_source_and_location,
5127 print_frame_info_location_and_address, print_frame_info_short_location):
5128 New declarations.
5129 (struct frame_print_options): New member print_frame_info.
5130 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5131 * stack.h (get_user_print_what_frame_info): New declaration.
5132 (frame_show_address): New declaration.
5133 * stack.c (print_frame_arguments_choices): New value 'presence'.
5134 (print_frame_info_auto, print_frame_info_source_line,
5135 print_frame_info_location, print_frame_info_source_and_location,
5136 print_frame_info_location_and_address, print_frame_info_short_location,
5137 print_frame_info_choices, print_frame_info_print_what): New definitions.
5138 (print_frame_args): Only print dots for args if print frame-arguments
5139 is 'presence'.
5140 (frame_print_option_defs): New element for "frame-info".
5141 (get_user_print_what_frame_info): New function.
5142 (frame_show_address): Make non static. Move comment to stack.h.
5143 (print_frame_info_to_print_what): New function.
5144 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5145 to decide what to print.
5146 (backtrace_command_1): Handle the new print_frame_arguments_presence
5147 value.
5148 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5149 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5150 (py_print_frame): In non-mi mode, use LOCATION as default for
5151 print_what, similarly to frame information printed directly by
5152 backtrace command. Handle frame-info user option in non MI mode.
5153
6bdfee81
KB
51542019-07-27 Kevin Buettner <kevinb@redhat.com>
5155
5156 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5157 Add case for debugging 32-bit target on 64-bit host. Revise
5158 comment.
5159
98a617f8
KB
51602019-07-27 Kevin Buettner <kevinb@redhat.com>
5161
5162 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5163 instead of find_function_entry_range_from_pc.
5164
567238c9
KB
51652019-07-27 Kevin Buettner <kevinb@redhat.com>
5166
5167 * stack.c (find_frame_funname): Remove code which preferred
5168 minsym over symtab sym in "certain pathological cases".
5169
2dc80cf8
KB
5170 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5171 parameter. Change type of "do_demangle" to bool.
5172 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5173 Pass suitable "prefer_sym_over_minsym" flag to
5174 build_address_symbolic(). Don't output "+" for negative offsets.
5175 * printcmd.c (print_address_symbolic): Update invocation of
5176 build_address_symbolic to include a "prefer_sym_over_minsym"
5177 flag.
5178 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5179 Restrict cases in which use of minimal symbol is preferred to that
5180 of a found symbol. Update comments.
5181
1aff7173
KB
5182 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5183 for entry pc when entry pc is out of range for that FDE.
5184
89b085ac
BC
51852019-07-26 Brian Callahan <bcallah@openbsd.org>
5186
5187 PR gdb/24839:
5188 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5189 type.
5190
f32feb4a
CB
51912019-07-25 Christian Biesinger <cbiesinger@google.com>
5192
5193 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5194 this function's Python signature.
5195
5196
51972019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5198
5199 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5200 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5201 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5202 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5203 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5204
5205
c54e4253
YS
52062019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5207
5208 * h8300-tdep.c (h8300_register_name_common): New.
5209 h8300_register_name): Use h8300_register_name_common.
5210 (h8300s_register_name): Likewise.
5211 (h8300sx_register_name): Likewise.
5212 (h8300h_register_nam): New.
5213 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5214
5215
40eadf04
SP
52162019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5217
5218 * arm-tdep.c (arm_skip_cmse_entry): New function.
5219 (arm_is_sgstubs_section): New function.
5220 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5221
bfa2a36d
TT
52222019-07-22 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5225 Don't self-assign.
5226
a8e9d247
AB
52272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5230 type_print.
5231
eb86c5e2
AB
52322019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5235 so that GDB doesn't match any msymbols when searching in the
5236 TYPES_DOMAIN.
5237 (print_symbol_info): Print using typedef_print or type_print based
5238 on the type of the symbol. Add updated FIXME comment moved from...
5239 (_initialize_symtab): ... move and update FIXME comment to above.
5240
a8eab7c6
AB
52412019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * NEWS: Mention adding -q option to "info types".
5244 * symtab.c (struct info_types_options): New struct.
5245 (info_types_options_defs): New variable.
5246 (make_info_types_options_def_group): New function.
5247 (info_types_command): Use gdb::option framework to parse options.
5248 (info_types_command_completer): New function.
5249 (_initialize_symtab): Extend the help text on "info types" and
5250 register command completer.
5251
b4603c34
CB
52522019-07-21 Christian Biesinger <cbiesinger@google.com>
5253
5254 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5255 (lookup_symbol_in_objfile): Change int to block_enum and add a
5256 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5257
c8cdc1e0
CB
52582019-07-20 Christian Biesinger <cbiesinger@google.com>
5259
5260 * MAINTAINERS (Write After Approval): Add self.
5261
01e175fe
AB
52622019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5263
5264 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5265 instruction to the dummy code region.
5266
56f79b63
TT
52672019-07-19 Tom Tromey <tromey@adacore.com>
5268
5269 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5270 (ARGSUSED, PARAMS, __func__): Remove rules.
5271
4c5aa8e0
AH
52722019-07-19 Alan Hayward <alan.hayward@arm.com>
5273
5274 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5275 * features/arm/arm-with-iwmmxt.c: Remove.
5276 * features/arm/arm-with-iwmmxt.xml: Remove.
5277 * features/arm/arm-with-m-fpa-layout.c: Remove.
5278 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5279 * features/arm/arm-with-m-vfp-d16.c: Remove.
5280 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5281 * features/arm/arm-with-m.c: Remove.
5282 * features/arm/arm-with-m.xml: Remove.
5283 * features/arm/arm-with-neon.c: Remove.
5284 * features/arm/arm-with-neon.xml: Remove.
5285 * features/arm/arm-with-vfpv2.c: Remove.
5286 * features/arm/arm-with-vfpv2.xml: Remove.
5287 * features/arm/arm-with-vfpv3.c: Remove.
5288 * features/arm/arm-with-vfpv3.xml: Remove.
5289
f42b2617
AH
52902019-07-19 Alan Hayward <alan.hayward@arm.com>
5291
5292 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5293
f29ec966
AH
52942019-07-19 Alan Hayward <alan.hayward@arm.com>
5295
5296 * arch/aarch32.c (aarch32_create_target_description): Create
5297 target descriptions using features.
5298 * arch/arm.c (arm_create_target_description)
5299 (arm_create_mprofile_target_description): Likewise.
5300 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5301
d105cce5
AH
53022019-07-19 Alan Hayward <alan.hayward@arm.com>
5303
5304 * Makefile.in: Add new files.
5305 * aarch32-tdep.c: New file.
5306 * aarch32-tdep.h: New file.
5307 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5308 Call aarch32_read_description.
5309 * arch/aarch32.c: New file.
5310 * arch/aarch32.h: New file.
5311 * arch/arm.c (arm_create_target_description)
5312 (arm_create_mprofile_target_description): New function.
5313 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5314 (arm_create_target_description)
5315 (arm_create_mprofile_target_description): New declaration.
5316 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5317 read_description functions.
5318 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5319 Likewise.
5320 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5321 * arm-tdep.c (tdesc_arm_list): New variable.
5322 (arm_register_g_packet_guesses): Call create description functions.
5323 (arm_read_description) (arm_read_mprofile_description): New
5324 function.
5325 * arm-tdep.h (arm_read_description)
5326 (arm_read_mprofile_description): Add declaration.
5327 * configure.tgt: Add new files.
5328
afe09f0b
GL
53292019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5330
5331 * top.c (new_ui_command): Open specified terminal just once.
5332
cd215b2e
TT
53332019-07-18 Tom Tromey <tromey@adacore.com>
5334
5335 * symtab.c (main_name): Constify return type.
5336 * symfile.c (set_initial_language): Update.
5337 * symtab.h (main_name): Constify return type.
5338
d8f68fcb
TT
53392019-07-17 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-winsource.c (tui_update_source_window)
5342 (tui_update_source_window_as_is)
5343 (tui_update_source_windows_with_line): Remove return.
5344 * tui/tui-disasm.c (tui_show_disassem)
5345 (tui_show_disassem_and_update_source): Remove return.
5346 * tui/tui.c (tui_reset): Remove return.
5347 * tui/tui-wingeneral.c
5348 (tui_check_and_display_highlight_if_needed): Remove return.
5349
ca5af91e
TT
53502019-07-17 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5353
5104fe36
TT
53542019-07-17 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-winsource.h (struct tui_exec_info_window)
5357 (struct tui_source_window_base): Move from tui-data.h.
5358 * tui/tui-winsource.c: Move many method definitions from
5359 elsewhere. Remove "structuring" comments.
5360 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5361 (tui_source_window_base::refresh_window): Move to
5362 tui-winsource.c.
5363 * tui/tui-win.c (tui_source_window_base::refresh_all)
5364 (tui_source_window_base::update_tab_width)
5365 (tui_source_window_base::set_new_height)
5366 (tui_source_window_base::do_make_visible_with_new_height): Move to
5367 tui-winsource.c.
5368 * tui/tui-source.h: Update.
5369 * tui/tui-source.c (tui_source_window_base::reset): Move to
5370 tui-winsource.c.
5371 * tui/tui-disasm.h: Update.
5372 * tui/tui-data.h (struct tui_exec_info_window): Move to
5373 tui-winsource.h.
5374 (struct tui_source_window_base): Likewise.
5375 * tui/tui-data.c (tui_source_window_base::clear_detail)
5376 (tui_source_window_base, ~tui_source_window_base): Move to
5377 tui-winsource.c.
5378
daa15dde
TT
53792019-07-17 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-win.c (tui_resize_all)
5382 (tui_source_window_base::update_tab_width)
5383 (tui_adjust_win_heights): Update.
5384 (tui_win_info::make_invisible_and_set_new_height): Rename from
5385 make_invisible_and_set_new_height.
5386 * tui/tui-data.h (struct tui_win_info)
5387 <make_invisible_and_set_new_height>: New method.
5388
bfad4537
TT
53892019-07-17 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui.c: Update.
5392 * tui/tui-source.h (struct tui_source_window): Move from
5393 tui-data.h.
5394 * tui/tui-layout.c: Update.
5395 * tui/tui-disasm.c: Update.
5396 * tui/tui-data.h (struct tui_source_window): Move to
5397 tui-source.h.
5398
88f7e873
TT
53992019-07-17 Tom Tromey <tom@tromey.com>
5400
5401 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5402 tui-data.h.
5403 * tui/tui-data.h (struct tui_disasm_window): Move to
5404 tui-disasm.h.
5405
96bd6233
TT
54062019-07-17 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-regs.h (struct tui_data_item_window): Move from
5409 tui-data.h.
5410 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5411 * tui/tui-data.h (struct tui_data_item_window): Move to
5412 tui-regs.h.
5413 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5414
ce38393b
TT
54152019-07-17 Tom Tromey <tom@tromey.com>
5416
5417 * tui/tui.c: Update.
5418 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5419 (tui_cmd_window::max_height): Move to tui-command.c.
5420 * tui/tui-layout.c: Update.
5421 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5422 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5423 tui-command.c.
5424 * tui/tui-command.h (struct tui_cmd_window): Move from
5425 tui-data.h.
5426 * tui/tui-command.c: Remove "structuring" comments.
5427 (tui_cmd_window::clear_detail)
5428 (tui_cmd_window::do_make_visible_with_new_height)
5429 (tui_cmd_window::max_height): Move from elsewhere.
5430
2d8b51cb
TT
54312019-07-17 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5434 Now static.
5435 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5436 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5437
18ab23af
TT
54382019-07-17 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui.c: Update.
5441 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5442 tui-regs.c.
5443 * tui/tui-windata.h: Remove file.
5444 * tui/tui-windata.c: Remove file.
5445 * tui/tui-win.c (tui_data_window::set_new_height)
5446 (tui_data_window::do_make_visible_with_new_height): Move to
5447 tui-regs.c.
5448 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5449 * tui/tui-regs.c: Remove "structuring" comments.
5450 (tui_data_window::first_data_item_displayed)
5451 (tui_data_window::delete_data_content_windows)
5452 (tui_data_window::erase_data_content)
5453 (tui_data_window::display_all_data)
5454 (tui_data_window::refresh_all)
5455 (tui_data_window::do_scroll_vertical)
5456 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5457 (tui_data_window::do_make_visible_with_new_height)
5458 (tui_data_window::refresh_window): Move from elsewhere.
5459 (_initialize_tui_regs): Move to end of file.
5460 * tui/tui-layout.c: Update.
5461 * tui/tui-hooks.c: Update.
5462 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5463 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5464 tui-regs.c.
5465 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5466
88b7e7cc
TT
54672019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5470 seen.
5471
0fcd3711
TT
54722019-07-17 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-win.c (tui_source_window_base::set_new_height)
5475 (tui_source_window_base::do_make_visible_with_new_height): Use
5476 m_has_locator field directly.
5477 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5478 method.
5479 (struct tui_source_window_base) <has_locator>: Likewise.
5480
4a38112d
TT
54812019-07-17 Tom Tromey <tom@tromey.com>
5482
5483 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5484 Don't declare.
5485 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5486 Remove.
5487 * tui/tui-win.c (tui_source_window_base::set_new_height)
5488 (tui_source_window_base::set_new_height)
5489 (make_invisible_and_set_new_height)
5490 (tui_source_window_base::do_make_visible_with_new_height)
5491 (tui_source_window_base::do_make_visible_with_new_height):
5492 Update.
5493 * tui/tui-layout.c (show_source_disasm_command, show_data)
5494 (show_source_or_disasm_and_command): Update.
5495 * tui/tui-layout.c (show_layout): Update.
5496
09129226
TT
54972019-07-17 Tom Tromey <tom@tromey.com>
5498
5499 * tui/tui-layout.c (make_data_window): Remove.
5500 (show_data): Unify creation and re-initialization cases.
5501
4a8a5e84
TT
55022019-07-17 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-layout.c (make_source_window, make_disasm_window):
5505 Remove.
5506 (show_data): Unify creation and re-initialization cases.
5507
76d2be8e
TT
55082019-07-17 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-layout.c (make_command_window): Remove.
5511 (show_source_disasm_command, show_source_or_disasm_and_command):
5512 Unify creation and re-initialization cases.
5513
890b8bde
TT
55142019-07-17 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5517 creation and re-initialization cases.
5518
2cdfa113
TT
55192019-07-17 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-regs.c (tui_get_register): Return void.
5522
8e3cfd09
TT
55232019-07-17 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5526 Simplify.
5527
f4e04977
TT
55282019-07-17 Tom Tromey <tom@tromey.com>
5529
5530 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5531 resetting.
5532
0379b883
TT
55332019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5536 * tui/tui-regs.c (tui_reg_layout): New function.
5537 (tui_show_registers, tui_reg_command): Use it.
5538 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5539 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5540 parameters.
5541 (tui_layout_command): Remove.
5542
b7fbad91
TT
55432019-07-17 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-layout.h (tui/tui-layout): Return void.
5546 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5547
4e1e56b9
TT
55482019-07-17 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-layout.c (show_source_disasm_command, show_data):
5551 Update.
5552 (reset_locator): Remove.
5553 (show_source_or_disasm_and_command): Update.
5554
1e0c09ba
TT
55552019-07-17 Tom Tromey <tom@tromey.com>
5556
5557 * tui/tui-source.c (tui_source_window_base::reset): Remove
5558 win_type parameter.
5559 * tui/tui-layout.c (make_command_window, make_source_window)
5560 (make_disasm_window, make_data_window)
5561 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5562 (reset_locator, show_source_or_disasm_and_command): Update.
5563 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5564 win_type parameter.
5565 (struct tui_source_window_base) <reset>: Likewise.
5566
1bf605de
TT
55672019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-layout.c (show_source_disasm_command): Use
5570 reset_locator.
5571 (reset_locator): New function.
5572 (init_and_make_win): Remove.
5573 (show_source_or_disasm_and_command): Use reset_locator.
5574
098f9ed4
TT
55752019-07-17 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5578 condition.
5579 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5580 Remove condition.
5581 * tui/tui-source.c (tui_source_window_base::reset): New method.
5582 * tui/tui-layout.c (make_command_window): Don't call
5583 init_and_make_win.
5584 (make_source_window, make_disasm_window): Don't call
5585 make_source_or_disasm_window.
5586 (make_data_window): Don't call init_and_make_win. Change calling
5587 convention.
5588 (show_source_disasm_command, show_data): Simplify.
5589 (make_source_or_disasm_window): Remove.
5590 (show_source_or_disasm_and_command): Simplify.
5591 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5592 (struct tui_source_window_base) <reset>: Likewise.
5593 <execution_info>: Remove initializer.
5594 * tui/tui-data.c (tui_source_window_base): Initialize
5595 execution_info.
5596
80110957
TT
55972019-07-17 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5600 variable.
5601
cf82af05
TT
56022019-07-17 Tom Tromey <tom@tromey.com>
5603
5604 * tui/tui.c (tui_rl_other_window): Update.
5605 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5606 superclass method first. Always iterate over regs_content.
5607 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5608 method.
5609 * tui/tui-win.c (tui_set_focus_command): Update.
5610
01aeb396
TT
56112019-07-17 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-win.c (tui_set_focus_command): Rename from
5614 tui_set_focus. Call tui_enable.
5615 (tui_set_focus_command): Remove.
5616
fd6c75ee
TT
56172019-07-17 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5620 refresh_window.
5621 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5622 touchwin.
5623 (tui_data_window::refresh_window): Call refresh_window on data
5624 items. Always call superclass refresh_window.
5625 (tui_win_info::refresh): Remove.
5626 (tui_source_window_base::refresh_window): Update.
5627 (tui_refresh_all): Update.
5628 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5629 refresh_window.
5630 (show_source_or_disasm_and_command): Likewise.
5631 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5632 (struct tui_source_window_base) <refresh>: Likewise.
5633
f6cc34a9
TT
56342019-07-17 Tom Tromey <tom@tromey.com>
5635
5636 * tui/tui-winsource.c (tui_clear_source_content)
5637 (tui_show_source_content): Update.
5638 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5639 whether content is empty.
5640 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5641 Remove.
5642
f31ec9af
TT
56432019-07-17 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5646 window's contents.
5647 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5648 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5649
d1b6f1e5
TT
56502019-07-17 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5653 (struct tui_data_item_window): Update.
5654
d9743a13
TT
56552019-07-17 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5658 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5659 defines.
5660
caf0bc4e
TT
56612019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-winsource.h (tui_erase_source_content)
5664 (tui_clear_source_content): Remove "display_prompt" parameter.
5665 * tui/tui-winsource.c (tui_update_source_window_as_is)
5666 (tui_update_source_windows_with_addr): Update.
5667 (tui_clear_source_content): Remove "display_prompt" parameter.
5668 (tui_erase_source_content): Likewise. Simplify.
5669 (tui_show_source_content): Update.
5670 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5671 * tui/tui-stack.c (tui_show_frame_info): Update.
5672 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5673 Remove defines.
5674
9d391078
TT
56752019-07-17 Tom Tromey <tom@tromey.com>
5676
5677 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5678 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5679 parameter.
5680 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5681 parameter.
5682
a38da35d
TT
56832019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-winsource.c (tui_clear_source_content)
5686 (tui_show_source_content, tui_show_exec_info_content)
5687 (tui_clear_exec_info_content): Update.
5688 * tui/tui-stack.c (tui_show_locator_content): Update.
5689 (tui_show_frame_info): Update.
5690 * tui/tui-source.h (tui_source_window): Don't declare.
5691 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5692 from tui_source_is_displayed.
5693 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5694 Remove field.
5695 (struct tui_source_window_base) <content_in_use>: New field. Now
5696 bool.
5697 (struct tui_source_window) <showing_source_p>: New method.
5698 (TUI_SRC_WIN): Change cast.
5699 * tui/tui-data.c (tui_initialize_static_data): Update.
5700
c2cd8994
TT
57012019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5704 location_matches_p.
5705 * tui/tui-source.c (tui_source_window::location_matches_p): New
5706 method.
5707 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5708 method.
5709 * tui/tui-data.h (struct tui_source_window_base)
5710 <location_matches_p>: New method.
5711 (struct tui_source_window, struct tui_disasm_window)
5712 <location_matches_p>: Likewise.
5713
4dde7b34
TT
57142019-07-17 Tom Tromey <tom@tromey.com>
5715
5716 * tui/tui-win.c (tui_set_win_height_command): Rename from
5717 tui_set_win_height.
5718 (tui_set_win_height_command): Remove.
5719
b73dd877
TT
57202019-07-17 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-source.c (tui_source_window): New constructor. Add
5723 observer.
5724 (~tui_source_window): New destructor.
5725 (tui_source_window::style_changed): New method.
5726 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5727 (tui_attach_detach_observers): Update.
5728 * tui/tui-data.h (struct tui_source_window): Make constructor not
5729 inline. Add destructor.
5730 (struct tui_source_window) <style_changed>: New method.
5731 <m_observable>: New member.
5732
ae2b5380
TT
57332019-07-17 Tom Tromey <tom@tromey.com>
5734
5735 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5736 * tui/tui-win.c (tui_resize_all): Fix typo.
5737
1ce3e844
TT
57382019-07-17 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5741 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5742 (tui_refresh_all): Remove "list" parameter. Use foreach.
5743 * tui/tui-win.c (window_name_completer): Use foreach.
5744 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5745 (update_tab_width): Likewise.
5746 * tui/tui-layout.c (show_layout): Update.
5747 * tui/tui-data.h (class tui_window_iterator): New.
5748 (struct all_tui_windows): New.
5749 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5750
fe3eaf1c
TT
57512019-07-17 Tom Tromey <tom@tromey.com>
5752
5753 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5754 parameter. Don't reference globals.
5755 (tui_reg_command): Update.
5756
368c1354
TT
57572019-07-17 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-regs.c (tui_show_registers): Simplify.
5760
e80cd204
TT
57612019-07-17 Tom Tromey <tom@tromey.com>
5762
5763 * tui/tui-regs.c (tui_show_registers): Update.
5764 (tui_show_register_group): Add win_info parameter.
5765
aca2dd16
TT
57662019-07-17 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5769 Rename from tui_display_reg_element_at_line.
5770 (tui_data_window::display_registers_from_line): Update.
5771 * tui/tui-data.h (struct tui_data_window)
5772 <display_reg_element_at_line>: New method.
5773
517e9505
TT
57742019-07-17 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-regs.h (tui_display_registers_from)
5777 (tui_display_registers_from_line): Don't declare.
5778 * tui/tui-windata.c (tui_data_window::display_all_data)
5779 (tui_data_window::refresh_all)
5780 (tui_data_window::do_scroll_vertical): Update.
5781 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5782 from tui_display_registers_from.
5783 (tui_display_reg_element_at_line): Update.
5784 (tui_data_window::display_registers_from_line): Rename from
5785 tui_display_registers_from_line.
5786 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5787 display_registers_from_line>: New methods.
5788
f76d8b19
TT
57892019-07-17 Tom Tromey <tom@tromey.com>
5790
5791 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5792 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5793 from tui_erase_data_content.
5794 (tui_data_window::display_all_data)
5795 (tui_data_window::refresh_all)
5796 (tui_data_window::do_scroll_vertical): Update.
5797 * tui/tui-regs.c (tui_show_registers): Update.
5798 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5799 New method.
5800
b4094625
TT
58012019-07-17 Tom Tromey <tom@tromey.com>
5802
5803 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5804 declare.
5805 * tui/tui-windata.c
5806 (tui_data_window::delete_data_content_windows): Rename from
5807 tui_delete_data_content_windows.
5808 (tui_data_window::display_all_data)
5809 (tui_data_window::do_scroll_vertical): Update.
5810 * tui/tui-data.h (struct tui_data_window)
5811 <delete_data_content_windows>: New method.
5812
c223a729
TT
58132019-07-17 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5816 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5817
50daf268
TT
58182019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5821 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5822 from tui_display_all_data.
5823 * tui/tui-win.c
5824 (tui_data_window::do_make_visible_with_new_height): Update.
5825 * tui/tui-regs.c (tui_show_registers): Update.
5826 * tui/tui-layout.c (tui_set_layout): Update.
5827 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5828 method.
5829
df5f8cab
TT
58302019-07-17 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5833 * tui/tui-windata.c (tui_display_data_from): Remove.
5834 (tui_data_window::refresh_all): Update.
5835
80cb6c27
TT
58362019-07-17 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5839 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5840 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5841 tui_display_registers_from_line.
5842 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5843 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5844 "force_display" parameter.
5845
baff0c28
TT
58462019-07-17 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5849 declare.
5850 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5851 Rename from tui_first_reg_element_no_inline.
5852 (tui_display_reg_element_at_line)
5853 (tui_display_registers_from_line): Update.
5854 * tui/tui-data.h (struct tui_data_window)
5855 <first_reg_element_no_inline>: New method.
5856
3b23c5f2
TT
58572019-07-17 Tom Tromey <tom@tromey.com>
5858
5859 * tui/tui-windata.c (tui_display_data_from)
5860 (tui_data_window::do_scroll_vertical): Update.
5861 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5862 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5863 Rename from tui_line_from_reg_element_no.
5864 (tui_display_registers_from_line): Update.
5865 * tui/tui-data.h (struct tui_data_window)
5866 <line_from_reg_element_no>: New method.
5867
0b5ec218
TT
58682019-07-17 Tom Tromey <tom@tromey.com>
5869
5870 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5871 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5872 tui_last_regs_line_no.
5873 (tui_display_reg_element_at_line)
5874 (tui_display_registers_from_line): Update.
5875 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5876 method.
5877
0807ab7b
TT
58782019-07-17 Tom Tromey <tom@tromey.com>
5879
5880 PR tui/24722:
5881 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5882 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5883 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5884 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5885 (tui_update_breakpoint_info): Likewise.
5886 * tui/tui-hooks.c (tui_event_create_breakpoint)
5887 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5888 Update.
5889
9ad7fdef
TT
58902019-07-17 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5893
5813316f
TT
58942019-07-17 Tom Tromey <tom@tromey.com>
5895
5896 * tui/tui-winsource.c (tui_update_source_window_as_is)
5897 (tui_update_source_windows_with_addr): Update.
5898 * tui/tui-source.h (tui_set_source_content)
5899 (tui_show_symtab_source): Add "win_info" parameter.
5900 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5901 parameter.
5902 (tui_show_symtab_source): Likewise.
5903
00e264e7
TT
59042019-07-17 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-wingeneral.c
5907 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5908
06210ce4
TT
59092019-07-17 Tom Tromey <tom@tromey.com>
5910
5911 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5912 (struct tui_cmd_window) <can_scroll>: New method.
5913 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5914 method.
5915
381befee
TT
59162019-07-17 Tom Tromey <tromey@adacore.com>
5917
5918 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5919 do_field_signed>: Rename. Change type of "value".
5920 * ui-out.c (ui_out::field_signed): Rename from field_int.
5921 Change type of "value".
5922 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5923 type of "value".
5924 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5925 do_field_int. Change type of "value".
5926 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5927 do_field_int. Change type of "value".
5928 * tracepoint.c (trace_status_mi, tfind_1)
5929 (print_one_static_tracepoint_marker): Update.
5930 * thread.c (print_thread_info_1, print_selected_thread_frame):
5931 Update.
5932 * stack.c (print_frame, print_frame_info): Update.
5933 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5934 Update.
5935 * source.c (print_source_lines_base): Update.
5936 * skip.c (info_skip_command): Update.
5937 * record-btrace.c (btrace_ui_out_decode_error)
5938 (btrace_call_history_src_line): Update.
5939 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5940 Update.
5941 * progspace.c (print_program_space): Update.
5942 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5943 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5944 do_field_int. Change type of "value".
5945 * mi/mi-out.c (mi_ui_out::do_table_begin)
5946 (mi_ui_out::do_table_header): Update.
5947 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5948 type of "value".
5949 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5950 (mi_cmd_data_list_changed_registers, output_register)
5951 (mi_cmd_data_read_memory, mi_load_progress)
5952 (mi_cmd_trace_frame_collected): Update.
5953 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5954 Update.
5955 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5956 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5957 (mi_cmd_var_list_children, varobj_update_one): Update.
5958 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5959 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5961 * inferior.c (print_inferior): Update.
5962 * gdb_bfd.c (print_one_bfd): Update.
5963 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5964 Update.
5965 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5966 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5967 do_field_int. Change type of "value".
5968 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5969 do_field_int. Change type of "value".
5970 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5971 (print_one_breakpoint_location, print_it_catch_fork)
5972 (print_one_catch_fork, print_it_catch_vfork)
5973 (print_one_catch_vfork, print_it_catch_solib)
5974 (print_it_catch_exec, print_it_ranged_breakpoint)
5975 (print_mention_watchpoint, print_mention_masked_watchpoint)
5976 (bkpt_print_it, update_static_tracepoint): Update.
5977 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5978 * break-catch-syscall.c (print_it_catch_syscall): Update.
5979 * ada-tasks.c (print_ada_task_info): Update.
5980 * ada-lang.c (print_it_exception, print_mention_exception):
5981 Update.
5982
6b78c3f8
AB
59832019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 PR breakpoints/24541
5986 * gdbarch.c: Regenerate.
5987 * gdbarch.h: Regenerate.
5988 * gdbarch.sh: Adjust return type and parameter types for
5989 'stap_adjust_register'.
5990 (i386_stap_adjust_register): Adjust signature and return new
5991 register name.
5992 * stap-probe.c (stap_parse_register_operand): Adjust use of
5993 'gdbarch_stap_adjust_register'.
5994
d72a9b85
TT
59952019-07-17 Tom Tromey <tromey@adacore.com>
5996
5997 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5998 declare VEC.
5999 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6000 std::vector.
6001 (struct s390_process_info): Add initializers.
6002 (s390_add_process): Use new.
6003 (s390_linux_nat_target::low_forget_process): Use delete.
6004 (s390_linux_nat_target::low_new_fork)
6005 (s390_linux_nat_target::stopped_by_watchpoint)
6006 (s390_linux_nat_target::low_prepare_to_resume)
6007 (s390_linux_nat_target::insert_watchpoint)
6008 (s390_linux_nat_target::insert_hw_breakpoint)
6009 (s390_linux_nat_target::remove_watchpoint)
6010 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6011
206e6c58
JB
60122019-07-16 John Baldwin <jhb@FreeBSD.org>
6013
6014 * aarch64-fbsd-nat.c: Include regcache.h.
6015 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6016 argument.
6017 (aarch64_fbsd_nat_target::fetch_registers)
6018 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6019 variable.
6020 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6021
cbde90f2
JB
60222019-07-16 John Baldwin <jhb@FreeBSD.org>
6023
6024 * fbsd-nat.c: Include gdbarch.h.
6025
07128006
TT
60262019-07-15 Tom Tromey <tromey@adacore.com>
6027
6028 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6029
1f77b012
TT
60302019-07-15 Tom Tromey <tromey@adacore.com>
6031
6032 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6033 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6034 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6035 * cli-out.c (cli_ui_out::do_field_int): New method.
6036 * ui-out.c (ui_out::field_unsigned): New method.
6037 * symfile.c (generic_load): Use field_unsigned.
6038 (print_transfer_performance): Likewise.
6039 * record-btrace.c (ui_out_field_uint): Remove.
6040 (btrace_call_history_insn_range, btrace_call_history): Use
6041 field_unsigned.
6042 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6043 field_unsigned.
6044 * ui-out.h (class ui_out) <field_unsigned>: New method.
6045 <do_field_unsigned>: Likewise.
6046
33eca680
TT
60472019-07-15 Tom Tromey <tromey@adacore.com>
6048
6049 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6050 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6051 * target.c (flash_erase_command): Use field_string.
6052 * infrun.c (print_signal_received_reason): Use field_string.
6053 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6054 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6055 field_string.
6056 * ada-tasks.c (print_ada_task_info): Use field_string.
6057
ca8d69be
TT
60582019-07-15 Tom Tromey <tromey@adacore.com>
6059
6060 * target.c (flash_erase_command): Use field_core_addr.
6061 * symfile.c (generic_load): Use field_core_addr.
6062 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6063 Use field_core_addr.
6064 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6065 field_core_addr.
6066
0d4e84ed
AB
60672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6070 value if its desired type is smaller than a CORE_ADDR and signed.
6071
9a49df9d
AB
60722019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6073
6074 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6075 of changes to field names, and use new is_reference field to
6076 decide if a property is a reference or not.
6077 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6078 field.
6079 (struct dwarf2_property_baton): Update header comment, rename
6080 'referenced_type' to 'property_type' and update comments.
6081 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6082 default property type, store in property baton, update to take
6083 accound of renamed field.
6084 (read_func_scope): Update call to attr_to_dynamic_prop.
6085 (read_array_type): Likewise.
6086 (dwarf2_per_cu_addr_sized_int_type): New function.
6087 (read_subrange_index_type): Move type finding code to
6088 dwarf2_per_cu_addr_sized_int_type.
6089 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6090 (dwarf2_per_cu_addr_type): New function.
6091 (set_die_type): Update calls to attr_to_dynamic_prop.
6092
b86352cf
AB
60932019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6094
6095 * dwarf2read.c (read_subrange_index_type): New function.
6096 (read_subrange_type): Move code into new function and call it.
6097 * gdbtypes.c (create_range_type): Add some asserts.
6098
603490bf
AB
60992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6102 update return statements.
6103 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6104 declaration, and update comment to match.
6105 * gdbtypes.c (resolve_dynamic_array): Update call to
6106 dwarf2_evaluate_property to match new return type.
6107
592f9d27
AB
61082019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6109
6110 * valarith.c (value_subscripted_rvalue): Change lowerbound
6111 parameter type from int to LONGEST.
6112 * value.h (value_subscripted_rvalue): Likewise in declaration.
6113
60cfcb20
AB
61142019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 * cli/cli-utils.c (info_print_command_completer): New function.
6117 * cli/cli-utils.h: Add 'completer.h' include, and forward
6118 declaration for 'struct cmd_list_element'.
6119 (info_print_command_completer): Declare.
6120 * stack.c (_initialize_stack): Add completer for 'info locals' and
6121 'info args'.
6122 * symtab.c (_initialize_symtab): Add completer for 'info
6123 variables' and 'info functions'.
6124 * NEWS: Mention completion for additional info commands.
6125
b16507e0
AB
61262019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6127
6128 * cli/cli-utils.c (extract_info_print_args): Delete.
6129 (extract_arg_maybe_quoted): Delete.
6130 (info_print_options_defs): New variable.
6131 (make_info_print_options_def_group): New function.
6132 (extract_info_print_options): Define new function.
6133 * cli/cli-utils.h (extract_info_print_args): Delete.
6134 (struct info_print_options): New structure.
6135 (extract_info_print_options): Declare new function.
6136 * stack.c (info_locals_command): Update to use new
6137 extract_info_print_options, also add a header comment.
6138 (info_args_command): Likewise.
6139 * symtab.c (info_variables_command): Likewise.
6140 (info_functions_command): Likewise.
6141
021d8588
AB
61422019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6143
6144 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6145 to extract string arguments.
6146 * common/common-utils.c (extract_string_maybe_quoted): New function.
6147 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6148
b777eb6d
TT
61492019-07-11 Tom Tromey <tromey@adacore.com>
6150
6151 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6152 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6153 * top.h (gdbinit): Don't declare.
6154 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6155 into...
6156 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6157 * top.c (gdb_init): Don't call init_cli_cmds.
6158 (gdbinit): Remove.
6159 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6160
72ee03ff
TT
61612019-07-11 Tom Tromey <tromey@adacore.com>
6162
6163 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6164 after it has been moved.
6165
00db9531
SM
61662019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6167
6168 * valops.c (value_must_coerce_to_target): Change return type to
6169 bool.
6170 * value.h (value_must_coerce_to_target): Likewise.
6171
f2478a7e
SM
61722019-07-10 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * breakpoint.c (is_hardware_watchpoint): Remove
6175 forward-declaration.
6176 (is_masked_watchpoint): Change return type to bool.
6177 (is_tracepoint): Likewise.
6178 (is_breakpoint): Likewise.
6179 (is_hardware_watchpoint): Likewise.
6180 (is_watchpoint): Likewise.
6181 (is_no_memory_software_watchpoint): Likewise.
6182 (is_catchpoint): Likewise.
6183 (breakpoint_1): Make FILTER parameter's return type bool.
6184 is_masked_watchpoint): Change return type to bool.
6185 (save_breakpoints): Make FILTER parameter's return type bool.
6186 * breakpoint.h (is_breakpoint): Change return type to bool.
6187 (is_watchpoint): Likewise.
6188 (is_catchpoint): Likewise.
6189 (is_tracepoint): Likewise.
6190
0d12e84c
TT
61912019-07-10 Tom Tromey <tom@tromey.com>
6192
6193 * defs.h: Don't include gdbarch.h.
6194 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6195 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6196 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6197 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6198 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6199 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6200 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6201 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6202 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6203 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6204 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6205 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6206 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6207 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6208 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6209 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6210 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6211 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6212 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6213 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6214 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6215 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6216 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6217 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6218 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6219 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6220 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6221
f06f1252
TT
62222019-07-10 Tom Tromey <tromey@adacore.com>
6223
6224 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6225 * breakpoint.c (init_ada_exception_breakpoint): Register as
6226 bp_catchpoint.
6227 (print_one_breakpoint_location, print_one_breakpoint): Use
6228 is_ada_exception_catchpoint.
6229 * ada-lang.c (class ada_catchpoint_location): Pass
6230 bp_loc_software_breakpoint to bp_location constructor.
6231 (is_ada_exception_catchpoint): New function.
6232
7a5d944b
TT
62332019-07-10 Tom Tromey <tromey@adacore.com>
6234
6235 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6236 VEC.
6237 (struct arm_exidx_entry): New method operator<.
6238 (struct arm_exidx_data) <section_maps>: Change type.
6239 (arm_exidx_data_free): Remove.
6240 (arm_exidx_data_key): Change type. Move lower.
6241 (arm_exidx_new_objfile): Update.
6242 (arm_compare_exidx_entries): Remove.
6243 (arm_find_exidx_entry, _initialize_arm_tdep)
6244
48c66e1d
TT
62452019-07-10 Tom Tromey <tromey@adacore.com>
6246
6247 * solib-spu.c (ocl_program_data_key): Change type.
6248 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6249 Update.
6250
a269fbf1
TT
62512019-07-10 Tom Tromey <tromey@adacore.com>
6252
6253 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6254 (struct solib_aix_inferior_data) <library_list>: Change type.
6255 (solib_aix_inferior_data_handle): Change type.
6256 (get_solib_aix_inferior_data): Update.
6257 (solib_aix_free_library_list): Remove.
6258 (library_list_start_library): Update.
6259 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6260 return type.
6261 (solib_aix_get_library_list)
6262 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6263 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6264
c294730c
TT
62652019-07-10 Tom Tromey <tromey@adacore.com>
6266
6267 * solib-dsbt.c (struct dsbt_info): Add initializers.
6268 (solib_dsbt_pspace_data): Change type.
6269 (dsbt_pspace_data_cleanup): Remove.
6270 (get_dsbt_info, _initialize_dsbt_solib): Update.
6271
9d52077d
TT
62722019-07-10 Tom Tromey <tromey@adacore.com>
6273
6274 * spu-tdep.c (spu_overlay_data): Change type.
6275 (spu_get_overlay_table, spu_overlay_new_objfile)
6276 (_initialize_spu_tdep): Update.
6277
22a20dca
TT
62782019-07-10 Tom Tromey <tromey@adacore.com>
6279
6280 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6281 destructor.
6282 (dbx_objfile_data_key): Change type and declare later.
6283 (DBX_SYMFILE_INFO): Rewrite.
6284 * dbxread.c (dbx_objfile_data_key): Change type.
6285 (dbx_symfile_init): Update.
6286 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6287 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6288 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6289
cb60f420
TT
62902019-07-10 Tom Tromey <tromey@adacore.com>
6291
6292 * jit.c (jit_program_space_key): Change type. Move lower.
6293 (get_jit_program_space_data): Update.
6294 (jit_program_space_data_cleanup): Remove.
6295 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6296 Update.
6297 (struct jit_program_space_data): Add initializers.
6298
51df2ae3
TT
62992019-07-10 Tom Tromey <tromey@adacore.com>
6300
6301 * solib-darwin.c (struct darwin_info): Add initializers.
6302 (solib_darwin_pspace_data): Change type.
6303 (darwin_pspace_data_cleanup): Remove.
6304 (get_darwin_info, _initialize_darwin_solib): Update.
6305
18101a35
TT
63062019-07-10 Tom Tromey <tromey@adacore.com>
6307
6308 * remote-sim.c (struct sim_inferior_data): Add initializers,
6309 constructor, and destructor.
6310 (sim_inferior_data_key): Change type. Move lower.
6311 (check_for_duplicate_sim_descriptor): Update.
6312 (get_sim_inferior_data): Use new. Update.
6313 (~sim_inferior_data_cleanup): Rename from
6314 sim_inferior_data_cleanup. Simplify.
6315 (gdbsim_close_inferior, simulator_command)
6316 (sim_command_completer, _initialize_remote_sim): Update.
6317 (next_pid, INITIAL_PID): Move earlier.
6318
05b08ac1
TT
63192019-07-10 Tom Tromey <tromey@adacore.com>
6320
6321 * python/python-internal.h (create_thread_object): Return
6322 gdbpy_ref.
6323 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6324 * python/py-inferior.c (struct threadlist_entry): Add
6325 constructor.
6326 <thread_obj>: Now a gdbpy_ref.
6327 (thread_to_thread_object): Update.
6328 (add_thread_object): Use new.
6329 (delete_thread_object): Use delete.
6330 (infpy_threads): Update.
6331 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6332 GIL.
6333
32372d80
TT
63342019-07-10 Tom Tromey <tromey@adacore.com>
6335
6336 * valops.c (value_cast): Specialize error message for Ada.
6337
5c458ae8
SM
63382019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6341
4c462cb0
SM
63422019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6343
6344 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6345 bpstat_should_step): Return bool, adjust comments.
6346 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6347 bpstat_should_step): Likewise.
6348
89abbcc2
AH
63492019-07-10 Alan Hayward <alan.hayward@arm.com>
6350
6351 * features/Makefile: Use feature target descriptions for Arm.
6352 * features/arm/arm-core.c: Generate new file.
6353 * features/arm/arm-fpa.c: Likewise.
6354 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6355 * features/arm/arm-m-profile.c: Likewise.
6356 * features/arm/arm-vfpv2.c: Likewise.
6357 * features/arm/arm-vfpv3.c: Likewise.
6358 * features/arm/xscale-iwmmxt.c: Likewise.
6359 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6360
166a82be
AH
63612019-07-10 Alan Hayward <alan.hayward@arm.com>
6362
6363 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6364 ptrace earlier.
6365
9fb4c7e9
AH
63662019-07-10 Alan Hayward <alan.hayward@arm.com>
6367
6368 * features/aarch64-pauth.c: Regenerate.
6369
e2d0f980
SM
63702019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6371
6372 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6373 bool.
6374 (bpstat_what): Use false instead of 0.
6375
a38118e5
PA
63762019-07-09 Pedro Alves <palves@redhat.com>
6377
6378 * break-catch-throw.c (is_exception_catchpoint): New.
6379 * breakpoint.c (print_one_breakpoint_location): New parameter
6380 'raw_loc'. Handle it. Use
6381 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6382 looking at the breakpoint's type.
6383 (print_one_breakpoint): If handling "maint info breakpoints", also
6384 print locations of exception catchpoints.
6385 * breakpoint.h (is_exception_catchpoint): Declare.
6386
cb1e4e32
PA
63872019-07-09 Pedro Alves <palves@redhat.com>
6388
6389 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6390 "addr" field.
6391 (allocate_location_exception_catchpoint): New.
6392 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6393 (initialize_throw_catchpoint_ops): Install
6394 allocate_location_exception_catchpoint as allocate_location
6395 method.
6396 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6397 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6398 bp_loc_other.
6399 (breakpoint_address_is_meaningful): Delete.
6400 (bl_address_is_meaningful): New.
6401 (breakpoint_locations_match): Adjust comment.
6402 (bp_location_from_bp_type): New, factored out of...
6403 (bp_location::bp_location(breakpoint *)): ... this.
6404 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6405 factored out of...
6406 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6407 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6408 breakpoint_address_is_meaningful.
6409 (bp_locations_compare): Adjust comment.
6410 (update_global_location_list): Use bl_address_is_meaningful
6411 instead of breakpoint_address_is_meaningful.
6412 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6413 explicit.
6414 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6415 * python/py-breakpoint.c (bppy_get_location): No longer check
6416 whether location is null.
6417
b58a68fe
PA
64182019-07-09 Pedro Alves <palves@redhat.com>
6419
6420 PR c++/15468
6421 * breakpoint.c (print_one_breakpoint_location): Remove
6422 single-location assert.
6423
268a13a5
TT
64242019-07-09 Tom Tromey <tom@tromey.com>
6425
6426 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6427 * configure: Rebuild.
6428 * configure.ac: Change common to gdbsupport.
6429 * gdbsupport: Rename from common.
6430 * acinclude.m4: Change common to gdbsupport.
6431 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6432 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6433 gdbsupport.
6434 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6435 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6436 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6437 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6438 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6439 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6440 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6441 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6442 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6443 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6444 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6445 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6446 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6447 coff-pe-read.c, command.h, compile/compile-c-support.c,
6448 compile/compile-c.h, compile/compile-cplus-symbols.c,
6449 compile/compile-cplus-types.c, compile/compile-cplus.h,
6450 compile/compile-loc2c.c, compile/compile.c, completer.c,
6451 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6452 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6453 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6454 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6455 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6456 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6457 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6458 features/aarch64-core.c, features/aarch64-fpu.c,
6459 features/aarch64-pauth.c, features/aarch64-sve.c,
6460 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6461 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6462 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6463 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6464 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6465 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6466 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6467 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6468 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6469 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6470 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6471 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6472 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6473 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6474 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6475 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6476 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6477 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6478 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6479 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6480 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6481 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6482 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6483 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6484 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6485 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6486 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6487 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6488 minsyms.c, mips-linux-tdep.c, namespace.h,
6489 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6490 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6491 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6492 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6493 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6494 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6495 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6496 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6497 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6498 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6499 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6500 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6501 procfs.c, producer.c, progspace.h, psymtab.h,
6502 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6503 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6504 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6505 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6506 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6507 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6508 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6509 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6510 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6511 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6512 target-memory.c, target.c, target.h, target/waitstatus.c,
6513 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6514 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6515 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6516 unittests/array-view-selftests.c,
6517 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6518 unittests/common-utils-selftests.c,
6519 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6520 unittests/format_pieces-selftests.c,
6521 unittests/function-view-selftests.c,
6522 unittests/lookup_name_info-selftests.c,
6523 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6524 unittests/mkdir-recursive-selftests.c,
6525 unittests/observable-selftests.c,
6526 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6527 unittests/parse-connection-spec-selftests.c,
6528 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6529 unittests/scoped_fd-selftests.c,
6530 unittests/scoped_mmap-selftests.c,
6531 unittests/scoped_restore-selftests.c,
6532 unittests/string_view-selftests.c, unittests/style-selftests.c,
6533 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6534 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6535 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6536 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6537 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6538 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6539
5b0e2db4
AB
65402019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6541
6542 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6543 bool value.
6544 (decode_digits_ordinary): Set explicit_line field in sal.
6545 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6546 symtab_and_line that was set on an explicit line number in
6547 assembler code. Do always update the recorded symtab and line if
6548 we do skip the prologue.
6549
0ba852ab
AB
65502019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6551
6552 * breakpoint.c (set_breakpoint_location_function): Remove
6553 explicit_loc parameter.
6554 (momentary_breakpoint_from_master): Update call to
6555 set_breakpoint_location_function.
6556 (add_location_to_breakpoint): Likewise.
6557
b3a7d171
AB
65582019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6561 required features based on default bfd type when no specific bfd
6562 is present.
6563
1f6f6e21
PW
65642019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6565
6566 * NEWS: Mention that GDB printf and eval commands can now print
6567 C-style and Ada-style convenience var strings without
6568 calling the inferior.
6569 * printcmd.c (printf_c_string): Locally print GDB internal var
6570 instead of transiting via the inferior.
6571 (printf_wide_c_string): Likewise.
6572
65732019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6574
5862c886 6575 PR breakpoints/25011
ea142fbf
AH
6576 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6577
0598af48
TT
65782019-07-04 Tom Tromey <tom@tromey.com>
6579
6580 PR tui/24724:
6581 * tui/tui-winsource.c (tui_clear_source_content): Update.
6582 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6583 (tui_update_breakpoint_info): Update.
6584 (tui_set_exec_info_content): Update.
6585 * tui/tui-source.c (tui_set_source_content_nil): Update.
6586 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6587 has_break.
6588 * tui/tui-data.h (enum tui_bp_flag): New.
6589 (tui_bp_flags): New enum flags type.
6590 (struct tui_source_element) <break_mode>: Change type. Rename
6591 from has_break.
6592 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6593 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6594 constants.
6595 * tui/tui-winsource.h: Fix comment.
6596
350fab54
AH
65972019-07-04 Alan Hayward <alan.hayward@arm.com>
6598
6599 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6600 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6601 (store_fpregs_to_thread)
6602 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6603 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6604 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6605 (IWMMXT_REGS_SIZE): Add define.
6606 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6607 (fetch_vfp_regs, store_vfp_regs)
6608 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6609 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6610
f0452268
AH
66112019-07-04 Alan Hayward <alan.hayward@arm.com>
6612
6613 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6614 defines.
6615 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6616 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6617 (ARM_INT_REGISTER_SIZE): ...to this.
6618 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6619 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6620 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6621 (arm_linux_collect_gregset, supply_nwfpe_register)
6622 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6623 defines.
6624 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6625 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6626 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6627 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6628 (arm_return_in_memory, arm_store_return_value)
6629 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6630 (arm_record_ld_st_multiple): Likewise.
6631 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6632 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6633
e935475c
AH
66342019-07-04 Alan Hayward <alan.hayward@arm.com>
6635
6636 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6637 AARCH64_DISPLACED_MODIFIED_INSNS.
6638 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6639 (aarch64_displaced_step_copy_insn): Likewise.
6640 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6641 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6642 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6643 ARM_DISPLACED_MODIFIED_INSNS.
6644 * arm-tdep.c (arm_gdbarch_init): Likewise.
6645 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6646 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6647 (struct arm_displaced_step_closure): Use
6648 ARM_DISPLACED_MODIFIED_INSNS.
6649
df0bb381
AH
66502019-07-04 Alan Hayward <alan.hayward@arm.com>
6651
6652 * features/Makefile: Remove unused xml files.
6653 * features/aarch64.xml: Remove.
6654 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6655 * features/i386/amd64-avx-avx512.xml: Remove.
6656 * features/i386/amd64-avx-linux.xml: Remove.
6657 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6658 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6659 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6660 * features/i386/amd64-avx-mpx.xml: Remove.
6661 * features/i386/amd64-avx.xml: Remove.
6662 * features/i386/amd64-linux.xml: Remove.
6663 * features/i386/amd64-mpx-linux.xml: Remove.
6664 * features/i386/amd64-mpx.xml: Remove.
6665 * features/i386/amd64.xml: Remove.
6666 * features/i386/i386-avx-avx512-linux.xml: Remove.
6667 * features/i386/i386-avx-avx512.xml: Remove.
6668 * features/i386/i386-avx-linux.xml: Remove.
6669 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6670 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6671 * features/i386/i386-avx-mpx-linux.xml: Remove.
6672 * features/i386/i386-avx-mpx.xml: Remove.
6673 * features/i386/i386-avx.xml: Remove.
6674 * features/i386/i386-linux.xml: Remove.
6675 * features/i386/i386-mmx-linux.xml: Remove.
6676 * features/i386/i386-mmx.xml: Remove.
6677 * features/i386/i386-mpx-linux.xml: Remove.
6678 * features/i386/i386-mpx.xml: Remove.
6679 * features/i386/i386.xml: Remove.
6680 * features/i386/x32-avx-avx512-linux.xml: Remove.
6681 * features/i386/x32-avx-linux.xml: Remove.
6682 * features/i386/x32-linux.xml: Remove.
6683
edd6266a
AH
66842019-07-04 Alan Hayward <alan.hayward@arm.com>
6685
6686 * regformats/aarch64.dat: Remove.
6687 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6688 * regformats/i386/amd64-avx-linux.dat: Remove.
6689 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6690 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6691 * regformats/i386/amd64-linux.dat: Remove.
6692 * regformats/i386/amd64-mpx-linux.dat: Remove.
6693 * regformats/i386/amd64.dat: Remove.
6694 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6695 * regformats/i386/i386-avx-linux.dat: Remove.
6696 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6697 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6698 * regformats/i386/i386-linux.dat: Remove.
6699 * regformats/i386/i386-mmx-linux.dat: Remove.
6700 * regformats/i386/i386-mpx-linux.dat: Remove.
6701 * regformats/i386/i386.dat: Remove.
6702 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6703 * regformats/i386/x32-avx-linux.dat: Remove.
6704 * regformats/i386/x32-linux.dat: Remove.
6705
2b40fda7
AH
67062019-07-04 Alan Hayward <alan.hayward@arm.com>
6707
6708 * aarch64-tdep.c: Remove xml self tests.
6709 * amd64-linux-tdep.c: Likewise.
6710 * amd64-tdep.c: Likewise.
6711 * i386-linux-tdep.c: Likewise.
6712 * i386-tdep.c: Likewise.
6713
5f4ba3e7
PA
67142019-07-03 Pedro Alves <palves@redhat.com>
6715
6716 PR cli/24732
6717 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6718 (pipe_cmd_option_defs): New.
6719 (make_pipe_cmd_options_def_group): New.
6720 (pipe_command): Use gdb::option::process_options.
6721 (pipe_command_completer): New function.
6722 (_initialize_cli_cmds): Install completer for "pipe" command.
6723
3d9be6f5
PA
67242019-07-03 Pedro Alves <palves@redhat.com>
6725
6726 * cli/cli-option.c (union option_value) <string>: New field.
6727 (struct option_def_and_value): Add ctor, move ctor, dtor and
6728 use DISABLE_COPY_AND_ASSIGN.
6729 (option_def_and_value::clear_value): New.
6730 (parse_option, save_option_value_in_ctx, get_val_type_str)
6731 (add_setshow_cmds_for_options): Handle var_string.
6732 * cli-option.h (union option_def::var_address) <string>: New
6733 field.
6734 (struct string_option_def): New.
6735 * maint-test-options.c (struct test_options_opts): Add default
6736 ctor and use DISABLE_COPY_AND_ASSIGN.
6737 <string_opt>: New field.
6738 (test_options_opts::~test_options_opts): New.
6739 (test_options_opts::dump): Also dump "-string".
6740 (test_options_option_defs): Install "string.
6741
41fc454c
PA
67422019-07-03 Pedro Alves <palves@redhat.com>
6743
6744 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6745 option_value with a null enumeration.
6746 (complete_options): Save the option values in the context.
6747 (save_option_value_in_ctx): New, factored out from ...
6748 (process_options): ... here.
6749 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6750 of the function.
6751 * maint-test-options.c (test_options_opts::dump): New, factored
6752 out from ...
6753 (maintenance_test_options_command_mode): ... here.
6754 (maintenance_test_options_command_completion_result): Delete.
6755 (maintenance_test_options_command_completion_text): Update
6756 comment.
6757 (maintenance_show_test_options_completion_result): Change
6758 prototype. Just print
6759 maintenance_test_options_command_completion_text.
6760 (save_completion_result): New.
6761 (maintenance_test_options_completer_mode): Pass options context to
6762 complete_options, and then save a dump.
6763 (_initialize_maint_test_options): Use add_cmd to install "maint
6764 show test-options-completion-result".
6765
fdbc9870
PA
67662019-07-03 Pedro Alves <palves@redhat.com>
6767
6768 * NEWS (New commands): Mention "with" and "maint with".
6769 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6770 (with_command, with_command_completer): New.
6771 (pipe_command): Adjust to new repeat_previous
6772 interface.
6773 (_initialize_cli_cmds): Install the "with" command and its "w"
6774 alias.
6775 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6776 declarations.
6777 * cli/cli-setshow.c (parse_cli_var_uinteger)
6778 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6779 argument strings for all var_types.
6780 (get_setshow_command_value_string): New, factored out from ...
6781 (do_show_command): ... this.
6782 * cli/cli-setshow.h: Include <string>.
6783 (get_setshow_command_value_string): Declare.
6784 * command.h (repeat_previous): Now returns const char *. Adjust
6785 comment.
6786 * maint.c: Include "cli/cli-cmds.h".
6787 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6788 (_initialize_maint_cmds): Register the "maintenance with" command.
6789 * top.c (repeat_previous): Move bits from pipe_command here:
6790 Return the saved command line, if any; error out if there's no
6791 command to relaunch.
6792
c6ac8931
PA
67932019-07-03 Pedro Alves <palves@redhat.com>
6794
6795 * NEWS (New commands): Mention "maint set/show test-settings"
6796 instead of "maint test-settings".
6797 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6798 (maintenance_test_settings_set_list): Rename to ...
6799 (maintenance_set_test_settings_list): ... this.
6800 (maintenance_test_settings_show_list): Rename to ...
6801 (maintenance_show_test_settings_list): ... this.
6802 (maintenance_test_settings_cmd): Delete.
6803 (maintenance_test_settings_set_cmd): ...
6804 (maintenance_set_test_settings_cmd): ... this.
6805 (maintenance_test_settings_show_cmd): ...
6806 (maintenance_show_test_settings_cmd): ... this.
6807 (maintenance_test_settings_show_value_cmd):
6808 (maintenance_show_test_settings_value_cmd): ... this.
6809 (_initialize_maint_test_settings): No longer install the "maint
6810 test-settings" prefix command. Rename "maint test-settings set"
6811 to "maint set test-settings", and "maint test-settings show" to
6812 "maint show test-settings". Adjust all subcommands.
6813
d1fcf2fd
PA
68142019-07-03 Pedro Alves <palves@redhat.com>
6815
6816 * maint-test-settings.c: Fix file's intro comment. Replace all
6817 references to "test-options" with references to "test-settings",
6818 in comments.
6819
970f9d09
PA
68202019-07-03 Pedro Alves <palves@redhat.com>
6821
6822 * maint-test-settings.c (maintenance_test_settings_xxx)
6823 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6824 New.
6825 (maintenance_test_settings_enums): Use them.
6826 (maintenance_test_settings_enum): Default to
6827 maintenance_test_settings_xxx.
6828 (_initialize_maint_test_settings): Initialize
6829 MAINTENANCE_TEST_SETTINGS_FILENAME.
6830
f3869b1a
SM
68312019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * breakpoint.h (remove_breakpoints_inf): Change return type to
6834 void, move function documentation here.
6835 * breakpoint.c (remove_breakpoints_inf): Change return type to
6836 void, move function documentation to header.
6837
54d66006
PA
68382019-07-02 Pedro Alves <palves@redhat.com>
6839
6840 * NEWS (Completion improvements): Mention "info threads".
6841 * thread.c (struct info_threads_opts, info_threads_option_defs)
6842 (make_info_threads_options_def_group): New.
6843 (info_threads_command): Use gdb::option::process_options.
6844 (info_threads_command_completer): New.
6845 (_initialize_thread): Use gdb::option::build_help to build the
6846 help text for "info threads".
6847
854f6088
SM
68482019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6849
6850 * defs.h (generic_load): Move from here...
6851 * symfile.h (generic_load): ... to here. Rename name parameter
6852 to args.
6853 * symfile.c (generic_load): Add comment.
6854
54ee4252
TT
68552019-07-01 Tom Tromey <tromey@adacore.com>
6856
6857 * dwarf2read.c
6858 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6859 declaration of without_params. Fix formatting.
6860
65392b3e
TT
68612019-07-01 Tom Tromey <tromey@adacore.com>
6862
6863 * ada-exp.y (find_primitive_type): Update.
6864 * ada-lang.h (ada_lookup_symbol): Update.
6865 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6866 parameter.
6867 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6868
7d7571f0
SDJ
68692019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6870
6871 PR breakpoints/24541
6872 * gdbarch.c: Regenerate.
6873 * gdbarch.h: Regenerate.
6874 * gdbarch.sh: Add 'stap_adjust_register'.
6875 * i386-tdep.c: Include '<unordered_set>'.
6876 (i386_stap_adjust_register): New function.
6877 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6878 * stap-probe.c (stap_parse_register_operand): Call
6879 'gdbarch_stap_adjust_register'.
6880
5af5392a
SDJ
68812019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6882
6883 PR python/24742
6884 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6885 * python/python.c (do_start_initialization): Use 'xmalloc'
6886 instead of 'PyMem_Malloc'.
6887
10d06d82
TT
68882019-06-28 Tom Tromey <tromey@adacore.com>
6889
6890 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6891 for Ada.
6892
1b7f24cd
TT
68932019-06-27 Tom Tromey <tromey@adacore.com>
6894
6895 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6896 objfile_key.
6897 (arm_find_mapping_symbol, arm_record_special_symbol)
6898 (_initialize_arm_tdep): Update.
6899 (arm_objfile_data_free): Remove.
6900
3d507ff2
TT
69012019-06-27 Tom Tromey <tromey@adacore.com>
6902
6903 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6904 to cp_print_static_field.
6905
762c164d
TT
69062019-06-26 Tom Tromey <tromey@adacore.com>
6907
6908 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6909 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6910 declare.
6911
aa2f9bcf
AH
69122019-06-26 Alan Hayward <alan.hayward@arm.com>
6913
6914 * features/aarch64-core.c (create_feature_aarch64_core):
6915 Regenerate.
6916 * features/aarch64-core.xml: Add cpsr flags.
6917
3426ae57
AH
69182019-06-26 Alan Hayward <alan.hayward@arm.com>
6919
6920 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6921 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6922
4838e44c
SM
69232019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6926 field.
6927 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6928 use.
6929 (arm_record_special_symbol): Don't insert new symbol in sorted
6930 position, push it at the end.
6931
54cc7474
SM
69322019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6935 (arm_mapping_symbol_s): Remove.
6936 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6937 (arm_mapping_symbol_vec): New typedef.
6938 (struct arm_per_objfile): Add constructor.
6939 <section_maps>: Change type to
6940 std::unique_ptr<arm_mapping_symbol_vec[]>.
6941 (arm_compare_mapping_symbols): Remove.
6942 (arm_find_mapping_symbol): Adjust to section_maps type change.
6943 (arm_objfile_data_free): Call delete on arm_per_objfile.
6944 (arm_record_special_symbol): Adjust to section_maps type change.
6945 Allocate arm_per_objfile with new.
6946
b65b566c
PW
69472019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6950 with the command prefix.
6951
c2fc64f5
TT
69522019-06-25 Tom Tromey <tom@tromey.com>
6953
6954 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6955 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6956
fb54fa76
TT
69572019-06-25 Tom Tromey <tom@tromey.com>
6958
6959 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6960 type.
6961 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6962 protected.
6963
f7952c57
TT
69642019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-winsource.c
6967 (tui_source_window_base::set_is_exec_point_at): Add check against
6968 LOA_ADDRESS.
6969
17568d78
TT
69702019-06-25 Tom Tromey <tom@tromey.com>
6971
6972 * tui/tui-source.c (tui_set_source_content): Don't check before
6973 xfree.
6974 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6975
53e7cdba
TT
69762019-06-25 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-winsource.h (tui_update_source_window_as_is)
6979 (tui_alloc_source_buffer, tui_line_is_displayed)
6980 (tui_addr_is_displayed): Change type of win_info.
6981 * tui/tui-winsource.c (tui_update_source_window_as_is)
6982 (tui_clear_source_content, tui_show_source_line)
6983 (tui_show_source_content, tui_source_window_base::refill)
6984 (tui_source_window_base::set_is_exec_point_at)
6985 (tui_source_window_base::set_is_exec_point_at)
6986 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6987 (tui_alloc_source_buffer, tui_line_is_displayed)
6988 (tui_addr_is_displayed): Change type of win_info. Update.
6989 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6990 (tui_source_window_base::do_make_visible_with_new_height):
6991 Update.
6992 * tui/tui-source.c (tui_set_source_content)
6993 (tui_set_source_content_nil)
6994 (tui_source_window::do_scroll_vertical): Update.
6995 * tui/tui-layout.c (show_layout): Update.
6996 * tui/tui-disasm.c (tui_set_disassem_content)
6997 (tui_disasm_window::do_scroll_vertical): Update.
6998 * tui/tui-data.h (tui_win_content): Remove.
6999 (struct tui_gen_win_info) <content, content_size>: Remove.
7000 (struct tui_source_element): Add initializers and destructor.
7001 (union tui_which_element, struct tui_win_element): Remove.
7002 (struct tui_source_window_base) <content>: New field.
7003 (struct tui_data_window): Remove destructor.
7004 (tui_alloc_content, tui_free_win_content)
7005 (tui_free_all_source_wins_content): Don't declare.
7006 * tui/tui-data.c (tui_initialize_static_data): Update.
7007 (init_content_element, tui_alloc_content): Remove.
7008 (~tui_gen_win_info): Update.
7009 (~tui_data_window, tui_free_all_source_wins_content)
7010 (tui_free_win_content, free_content, free_content_elements):
7011 Remove.
7012
7908abbf
TT
70132019-06-25 Tom Tromey <tom@tromey.com>
7014
7015 * tui/tui-winsource.h (tui_clear_source_content)
7016 (tui_erase_source_content, tui_show_source_content): Change type
7017 of win_info.
7018 * tui/tui-winsource.c (tui_clear_source_content)
7019 (tui_erase_source_content, tui_show_source_content): Change type
7020 of win_info.
7021 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7022 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7023 win_info.
7024 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7025 win_info.
7026 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7027
02c28df0
TT
70282019-06-25 Tom Tromey <tom@tromey.com>
7029
7030 * tui/tui-winsource.c (tui_clear_source_content)
7031 (tui_source_window_base::set_is_exec_point_at): Update.
7032 * tui/tui-source.c (tui_set_source_content_nil): Update.
7033 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7034 a bool.
7035 * tui/tui-data.c (init_content_element): Update.
7036
6658b1bf
TT
70372019-06-25 Tom Tromey <tom@tromey.com>
7038
7039 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7040 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7041 * tui/tui-layout.c (init_and_make_win): Update.
7042 * tui/tui.h (enum tui_win_type): Update.
7043 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7044 tui_win_is_auxillary.
7045 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7046 tui_win_is_auxillary.
7047
21e1c91e
TT
70482019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7051 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7052 (tui_delete_data_content_windows, tui_display_all_data)
7053 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7054 Update.
7055 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7056 * tui/tui-regs.c (tui_last_regs_line_no)
7057 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7058 (tui_show_registers): Update.
7059 (tui_show_register_group): Return void. Update.
7060 (tui_display_registers_from, tui_display_reg_element_at_line)
7061 (tui_display_registers_from_line, tui_check_register_values):
7062 Update.
7063 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7064 member.
7065 (struct tui_data_window) <regs_content>: Now a std::vector.
7066 <regs_content_count>: Remove.
7067 (tui_add_content_elements, tui_free_data_content): Don't declare.
7068 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7069 (init_content_element): Remove DATA_WIN case. Add assert.
7070 (tui_add_content_elements): Remove.
7071 (tui_data_window): Update.
7072 (tui_free_data_content): Remove.
7073 (free_content_elements): Remove DATA_WIN case.
7074
115ac53b
TT
70752019-06-25 Tom Tromey <tom@tromey.com>
7076
7077 * tui/tui-data.c (tui_data_item_window): Update.
7078 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7079 * tui/tui-windata.c (tui_display_all_data)
7080 (tui_display_data_from_line): Update.
7081 (tui_check_data_values): Remove.
7082 * tui/tui-regs.c (tui_show_register_group)
7083 (tui_display_reg_element_at_line): Update.
7084 * tui/tui-hooks.c (tui_register_changed)
7085 (tui_refresh_frame_and_register_information): Call
7086 tui_check_register_values.
7087 * tui/tui-data.h (struct tui_data_window) <data_content,
7088 data_content_count, data_type>: Remove.
7089 (enum tui_data_type): Remove.
7090
7091 * tui/tui-data.c (tui_data_window::clear_detail)
7092 (~tui_data_window): Update.
7093
eaf9738b
TT
70942019-06-25 Tom Tromey <tom@tromey.com>
7095
7096 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7097 declare.
7098 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7099 Rename from tui_first_data_item_displayed. Update.
7100 (tui_data_window::refresh_all)
7101 (tui_data_window::do_scroll_vertical): Update.
7102 * tui/tui-data.h (struct tui_data_window)
7103 <first_data_item_displayed>: Declare new method.
7104
31ca4723
TT
71052019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7108 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7109 contents...
7110 (tui_initialize_static_data): ...here.
7111
41bcff7f
TT
71122019-06-25 Tom Tromey <tom@tromey.com>
7113
7114 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7115 (tui_display_registers_from, tui_check_register_values): Update.
7116 (tui_display_register): Remove win_info parameter; update.
7117 (tui_get_register): Change type of parameters.
7118 * tui/tui-data.h (struct tui_data_element): Remove.
7119 (union tui_which_element) <data>: Remove.
7120 <data_window>: Change type.
7121 (struct tui_data_item_window): New.
7122 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7123 case. Add assert.
7124 (~tui_data_item_window): New destructor.
7125 (free_content_elements): Remove DATA_ITEM_WIN case.
7126
d2802c33
TT
71272019-06-25 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7130 Remove.
7131
dd835f8b
TT
71322019-06-25 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui-data.h (struct tui_command_element): Remove.
7135 (union tui_which_element) <command>: Remove.
7136 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7137 assert.
7138 (free_content_elements): Remove CMD_WIN case.
7139
bd7db367
TT
71402019-06-25 Tom Tromey <tom@tromey.com>
7141
7142 * tui/tui-layout.c (tui_set_layout): Update.
7143 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7144 * tui/tui-data.c (layout_def): Update.
7145
3add462f
TT
71462019-06-25 Tom Tromey <tom@tromey.com>
7147
7148 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7149 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7150 (tui_source_window_base::set_new_height): Update.
7151 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7152 Update.
7153 (tui_set_locator_fullname, tui_set_locator_info)
7154 (tui_show_frame_info): Update.
7155 * tui/tui-source.c (tui_set_source_content)
7156 (tui_source_is_displayed): Update.
7157 * tui/tui-layout.c (show_source_disasm_command, show_data)
7158 (show_source_or_disasm_and_command): Update.
7159 * tui/tui-disasm.c (tui_set_disassem_content)
7160 (tui_get_begin_asm_address): Update.
7161 * tui/tui-data.h (struct tui_locator_element): Remove.
7162 (union tui_which_element) <locator>: Remove.
7163 (struct tui_locator_window): New.
7164 (tui_locator_win_info_ptr): Change return type.
7165 * tui/tui-data.c (_locator): Change type.
7166 (tui_locator_win_info_ptr): Change return type.
7167 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7168 (tui_alloc_content): Add assert.
7169
489e9d8b
TT
71702019-06-25 Tom Tromey <tom@tromey.com>
7171
7172 * tui/tui-winsource.c
7173 (tui_exec_info_window::maybe_allocate_content): New method.
7174 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7175 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7176 (make_source_or_disasm_window): Add cast.
7177 * tui/tui-data.h (union tui_which_element) <simple_string>:
7178 Remove.
7179 (struct tui_source_info): New.
7180 (struct tui_source_window_base) <execution_info>: Change type.
7181 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7182 case, and add assert.
7183 (tui_alloc_content): Add assert.
7184
c3fabb7d
TT
71852019-06-25 Tom Tromey <tom@tromey.com>
7186
7187 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7188 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7189 * tui/tui-data.c (tui_alloc_win_info): Remove.
7190
bbc228ee
TT
71912019-06-25 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7194 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7195 can_highlight.
7196
5fcee43a
TT
71972019-06-25 Tom Tromey <tom@tromey.com>
7198
7199 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7200 make_visible_with_new_height method.
7201 (tui_win_info::make_visible_with_new_height): New method.
7202 (tui_source_window_base::do_make_visible_with_new_height)
7203 (tui_data_window::do_make_visible_with_new_height)
7204 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7205 (make_visible_with_new_height): Remove.
7206 (tui_resize_all, tui_adjust_win_heights): Use
7207 make_visible_with_new_height method.
7208 * tui/tui-data.h (struct tui_win_info)
7209 <do_make_visible_with_new_height, make_visible_with_new_height>:
7210 New methods.
7211 (struct tui_source_window_base, struct tui_data_window)
7212 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7213 methods.
7214
d83f1fe6
TT
72152019-06-25 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7218 method.
7219 (update_tab_width): Call update_tab_width method.
7220 * tui/tui-data.h (struct tui_win_info)
7221 (struct tui_source_window_base) <update_tab_width>: New methods.
7222
17374de4
TT
72232019-06-25 Tom Tromey <tom@tromey.com>
7224
7225 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7226 parameter.
7227 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7228 parameter.
7229 (tui_gen_win_info::make_visible): Update.
7230 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7231 parameter.
7232 * tui/tui-data.h (enum tui_box): New enum.
7233 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7234
f936bca2
TT
72352019-06-25 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7238 init_and_make_win for EXEC_INFO_WIN.
7239 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7240 longer inline.
7241 (struct tui_win_info) <~tui_win_info>: Inline.
7242 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7243 Don't declare.
7244 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7245 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7246 Remove.
7247 (tui_initialize_static_data): Update.
7248 (~tui_gen_win_info): Handle more cleanup here.
7249 (~tui_source_window_base): Delete "execution_info".
7250 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7251
d6ba6a11
TT
72522019-06-25 Tom Tromey <tom@tromey.com>
7253
7254 * tui/tui-layout.c (make_command_window): Don't set
7255 can_highlight.
7256 (show_source_disasm_command): Call the reset method.
7257 (show_data): Don't set can_highlight. Call the reset method.
7258 (tui_gen_win_info::reset): Rename from init_gen_win_info
7259 (init_and_make_win): Simplify. Return tui_gen_win_info.
7260 (show_source_or_disasm_and_command): Call the reset method.
7261 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7262 (struct tui_cmd_window): Set can_highlight.
7263
48a3bd16
TT
72642019-06-25 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7267 from make_visible.
7268 (tui_make_visible, tui_make_invisible): Rewrite.
7269 (tui_win_info::make_visible): Remove.
7270 (tui_source_window_base::make_visible): Update.
7271 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7272 method. Moved from...
7273 (struct tui_win_info) <make_visible>: ...here.
7274
c3bd716f
TT
72752019-06-25 Tom Tromey <tom@tromey.com>
7276
7277 * tui/tui-winsource.c
7278 (tui_source_window_base::do_scroll_horizontal): Remove direction
7279 parameter.
7280 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7281 direction parameter.
7282 * tui/tui-win.c (tui_win_info::forward_scroll)
7283 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7284 (tui_win_info::right_scroll): Update.
7285 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7286 direction parameter.
7287 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7288 direction parameter.
7289 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7290 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7291 Remove direction parameter.
7292 (struct tui_source_window_base, struct tui_source_window)
7293 (struct tui_disasm_window, struct tui_data_window)
7294 (struct tui_cmd_window): Update.
7295
21c32dca
TT
72962019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-winsource.h (tui_set_exec_info_content)
7299 (tui_show_exec_info_content, tui_erase_exec_info_content)
7300 (tui_clear_exec_info_content, tui_update_exec_info): Change
7301 argument to tui_source_window_base.
7302 * tui/tui-winsource.c (tui_set_exec_info_content)
7303 (tui_show_exec_info_content, tui_erase_exec_info_content)
7304 (tui_clear_exec_info_content, tui_update_exec_info): Change
7305 argument to tui_source_window_base.
7306
73fbdc65
TT
73072019-06-25 Tom Tromey <tom@tromey.com>
7308
7309 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7310 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7311
33325343
TT
73122019-06-25 Tom Tromey <tom@tromey.com>
7313
7314 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7315 check.
7316
29d2c474
TT
73172019-06-25 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7320 type to void.
7321 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7322 type to void.
7323 * tui/tui-source.c (tui_set_source_content): Update.
7324 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7325
152f3f4b
TT
73262019-06-25 Tom Tromey <tom@tromey.com>
7327
7328 * tui/tui-win.c (window_name_completer, tui_set_focus)
7329 (tui_all_windows_info): Use name method.
7330 * tui/tui-data.h (struct tui_gen_win_info)
7331 (struct tui_source_window, struct tui_disasm_window)
7332 (struct tui_data_window, struct tui_cmd_window) <name>: New
7333 method.
7334 (tui_win_name): Don't declare.
7335 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7336 (tui_win_name): Remove.
7337
be4da588
TT
73382019-06-25 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-winsource.h (tui_update_source_window)
7341 (tui_update_source_window_as_is): Change parameter type.
7342 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7343 to be a tui_source_window_base.
7344 (tui_update_source_window_as_is): Likewise.
7345 * tui/tui-win.c (make_visible_with_new_height): Update.
7346
5b81daba
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-winsource.c (tui_erase_source_content)
7350 (tui_show_source_content, tui_show_exec_info_content)
7351 (tui_erase_exec_info_content): Use refresh_window method.
7352 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7353 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7354 from tui_refresh_win.
7355 (tui_data_window::refresh_window): New method.
7356 (tui_win_info::refresh, tui_source_window_base::refresh)
7357 (tui_refresh_all): Use refresh_window method.
7358 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7359 method.
7360 * tui/tui-regs.c (tui_display_register): Call refresh_window
7361 method.
7362 * tui/tui-layout.c (show_source_disasm_command)
7363 (show_source_or_disasm_and_command): Call refresh_window method.
7364 * tui/tui-data.h (struct tui_gen_win_info)
7365 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7366 New method.
7367
cb2ce893
TT
73682019-06-25 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui.c (tui_rl_other_window, tui_enable)
7371 (tui_is_window_visible, tui_get_command_dimension): Update.
7372 * tui/tui-winsource.c (tui_update_source_window_as_is)
7373 (tui_clear_source_content, tui_erase_source_content)
7374 (tui_show_source_line, tui_source_window_base::refill)
7375 (tui_source_window_base::do_scroll_horizontal)
7376 (tui_source_window_base::set_is_exec_point_at)
7377 (tui_update_breakpoint_info, tui_set_exec_info_content)
7378 (tui_alloc_source_buffer, tui_line_is_displayed)
7379 (tui_addr_is_displayed): Update.
7380 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7381 (tui_check_and_display_highlight_if_needed)
7382 (tui_win_info::make_visible, tui_win_info::refresh)
7383 (tui_refresh_all): Update.
7384 * tui/tui-windata.c (tui_first_data_item_displayed)
7385 (tui_delete_data_content_windows, tui_erase_data_content)
7386 (tui_display_all_data, tui_data_window::refresh_all)
7387 (tui_check_data_values): Update.
7388 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7389 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7390 (tui_win_info::backward_scroll, tui_refresh_all_win)
7391 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7392 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7393 (tui_source_window_base::set_new_height)
7394 (tui_data_window::set_new_height)
7395 (make_invisible_and_set_new_height)
7396 (make_visible_with_new_height, new_height_ok)
7397 (parse_scrolling_args): Update.
7398 * tui/tui-stack.c (tui_show_frame_info): Update.
7399 * tui/tui-source.c (tui_set_source_content)
7400 (tui_set_source_content_nil, tui_source_is_displayed)
7401 (tui_source_window::do_scroll_vertical): Update.
7402 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7403 (tui_display_registers_from, tui_display_reg_element_at_line)
7404 (tui_check_register_values, tui_reg_command): Update.
7405 * tui/tui-layout.c (tui_default_win_height)
7406 (show_source_disasm_command, show_data, init_and_make_win)
7407 (show_source_or_disasm_and_command): Update.
7408 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7409 (tui_redisplay_readline, tui_mld_flush)
7410 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7411 (tui_getc): Update.
7412 * tui/tui-disasm.c (tui_set_disassem_content)
7413 (tui_disasm_window::do_scroll_vertical): Update.
7414 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7415 Now virtual.
7416 (struct tui_win_info): Derive from tui_gen_win_info.
7417 <~tui_win_info>: Mark as override.
7418 <generic>: Remove member.
7419 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7420 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7421 (~tui_data_window, ~tui_win_info)
7422 (tui_free_all_source_wins_content): Update.
7423 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7424
ab313b35
TT
74252019-06-25 Tom Tromey <tom@tromey.com>
7426
7427 * tui/tui-layout.c (init_and_make_win): Use new.
7428 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7429 destructor, initializers.
7430 (tui_alloc_generic_win_info): Don't declare.
7431 * tui/tui-data.c (_locator): Add argument to constructor.
7432 (source_win, disasm_win): New globals.
7433 (exec_info): Remove.
7434 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7435 Update.
7436 (tui_alloc_generic_win_info): Remove.
7437 (init_content_element): Use new.
7438 (tui_win_info::tui_win_info): Update.
7439 (free_content_elements) <case DATA_WIN>: Use delete.
7440
dc2c33e4
TT
74412019-06-25 Tom Tromey <tom@tromey.com>
7442
7443 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7444 * tui/tui-windata.c (tui_first_data_item_displayed)
7445 (tui_delete_data_content_windows): Update.
7446 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7447 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7448 (tui_display_registers_from, tui_check_register_values): Update.
7449 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7450 pointer.
7451 * tui/tui-data.c (init_content_element): Update. Allocate the new
7452 window.
7453 (tui_free_data_content): Update.
7454 (free_content_elements) <case DATA_WIN>: Free the window.
7455
214a5cbe
TT
74562019-06-25 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7459 Update.
7460 * tui/tui-layout.c (make_command_window)
7461 (show_source_disasm_command, show_data, init_and_make_win)
7462 (show_source_or_disasm_and_command): Update.
7463 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7464 method.
7465 <can_highight, is_highlighted>: Now bool.
7466 (tui_set_win_highlight): Don't declare.
7467 * tui/tui-data.c (tui_set_win_highlight): Remove.
7468
8e2daf15
TT
74692019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-wingeneral.c (make_visible): Remove check of window
7472 type.
7473
8903bd8a
TT
74742019-06-25 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-win.c (tui_win_info::max_height)
7477 (tui_cmd_window::max_height): New methods.
7478 (new_height_ok): Call max_height.
7479 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7480 <max_height>: New method.
7481
3f02ce1e
TT
74822019-06-25 Tom Tromey <tom@tromey.com>
7483
7484 * tui/tui-win.c (tui_source_window_base::set_new_height)
7485 (tui_data_window::set_new_height): New methods.
7486 (make_invisible_and_set_new_height): Call set_new_height method.
7487 * tui/tui-data.h (struct tui_win_info)
7488 (struct tui_source_window_base, struct tui_data_window)
7489 <set_new_height>: New method.
7490
1825f487
TT
74912019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7494 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7495 tui_refresh_data_win.
7496 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7497 method.
7498 (tui_refresh_all_win): Call the refresh_all method.
7499 (tui_set_focus): Likewise.
7500 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7501 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7502 Likewise.
7503
ad54d15b
TT
75042019-06-25 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-winsource.h (tui_refill_source_window)
7507 (tui_set_is_exec_point_at): Don't declare.
7508 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7509 (tui_source_window_base::refill): Rename from
7510 tui_refill_source_window.
7511 (tui_source_window_base::do_scroll_horizontal): Update.
7512 (tui_source_window_base::set_is_exec_point_at): Rename from
7513 tui_set_is_exec_point_at.
7514 (tui_update_all_breakpoint_info): Update.
7515 * tui/tui-stack.c (tui_show_frame_info): Update.
7516 * tui/tui-layout.c (show_data): Add cast.
7517 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7518 * tui/tui-data.h (struct tui_source_window_base) <refill,
7519 set_is_exec_point_at>: New methods.
7520 (tui_source_windows, tui_add_to_source_windows): Update types.
7521 (tui_add_to_source_windows): Remove redundant declaration.
7522 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7523 (tui_source_windows): Change return type.
7524 (tui_clear_source_windows_detail): Update.
7525 (tui_add_to_source_windows): Change type of parameter.
7526 (tui_free_all_source_wins_content): Update.
7527
2042b506
TT
75282019-06-25 Tom Tromey <tom@tromey.com>
7529
7530 * tui/tui-wingeneral.c (tui_win_info::refresh)
7531 (tui_source_window_base::refresh): New methods.
7532 (tui_refresh_all): Call the refresh method.
7533 * tui/tui-data.h (struct tui_win_info)
7534 (struct tui_source_window_base) <refresh>: New method.
7535
56122977
TT
75362019-06-25 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui.h (tui_is_window_visible): Return bool.
7539 * tui/tui.c (tui_is_window_visible): Return bool.
7540 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7541 (tui_make_visible, tui_make_invisible)
7542 (tui_win_info::make_visible)
7543 (tui_source_window_base::make_visible, make_all_visible)
7544 (tui_make_all_visible, tui_make_all_invisible): Update.
7545 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7546 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7547 bool.
7548 (struct tui_win_info, struct tui_source_window_base)
7549 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7550 * tui/tui-data.c (tui_init_generic_part): Update.
7551
cda37efb
TT
75522019-06-25 Tom Tromey <tom@tromey.com>
7553
7554 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7555 (tui_source_window_base::make_visible): New methods.
7556 (make_all_visible): Make method call.
7557 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7558 (struct tui_source_window_base, struct tui_cmd_window): Override
7559 make_visible.
7560 (tui_win_is_source_type): Don't declare.
7561 * tui/tui-data.c (tui_win_is_source_type): Remove.
7562
6a0ee02c
TT
75632019-06-25 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7566 NULL check.
7567
63901aec
TT
75682019-06-25 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7571 Inline constructor. Add initializers for members.
7572 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7573 constructors; now inline in class.
7574
ceb13a13
TT
75752019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-regs.c (tui_show_registers): Update.
7578 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7579 bool.
7580 * tui/tui-data.c (tui_data_window::clear_detail)
7581 (tui_data_window): Update.
7582
238eb706
TT
75832019-06-25 Tom Tromey <tom@tromey.com>
7584
7585 * tui/tui-windata.c (tui_display_all_data)
7586 (tui_display_data_from_line, tui_display_data_from)
7587 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7588 Update.
7589 * tui/tui-regs.c (tui_last_regs_line_no)
7590 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7591 (tui_show_registers, tui_show_register_group)
7592 (tui_display_registers_from, tui_display_reg_element_at_line)
7593 (tui_display_registers_from_line, tui_check_register_values)
7594 (tui_reg_next, tui_reg_prev): Update.
7595 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7596 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7597 tui_data_window.
7598 (struct tui_win_info) <detail>: Remove. Add new fields from
7599 tui_data_info.
7600 (TUI_DATA_WIN): Add cast.
7601 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7602 (~tui_data_window): Simplify.
7603
81491aa0
TT
76042019-06-25 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui-layout.c (show_source_disasm_command)
7607 (show_source_or_disasm_and_command): Update.
7608 * tui/tui-io.c (update_cmdwin_start_line)
7609 (tui_redisplay_readline): Update.
7610 * tui/tui-data.h (struct tui_command_info): Remove.
7611 (struct tui_win_info) <detail>: Remove command_info member.
7612 (struct tui_data_window) <start_line>: New member, from
7613 tui_command_info.
7614 (TUI_CMD_WIN): Add casts.
7615
e6e41501
TT
76162019-06-25 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-winsource.c (tui_update_source_window)
7619 (tui_refill_source_window)
7620 (tui_source_window_base::do_scroll_horizontal)
7621 (tui_update_breakpoint_info, tui_set_exec_info_content)
7622 (tui_show_exec_info_content, tui_erase_exec_info_content)
7623 (tui_clear_exec_info_content): Update.
7624 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7625 Update.
7626 * tui/tui-win.c (make_invisible_and_set_new_height)
7627 (make_visible_with_new_height): Update.
7628 * tui/tui-source.c (tui_set_source_content)
7629 (tui_show_symtab_source): Update.
7630 * tui/tui-layout.c (extract_display_start_addr)
7631 (show_source_disasm_command, show_data)
7632 (make_source_or_disasm_window)
7633 (show_source_or_disasm_and_command): Update.
7634 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7635 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7636 "gdbarch".
7637 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7638 to tui_source_window_base.
7639 (struct tui_win_info) <detail>: Remove source_info member.
7640 (struct tui_source_window_base) <has_locator>: Inline.
7641 Move contents from tui_source_info; rename has_locator member to
7642 m_has_locator.
7643 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7644 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7645 header file.
7646 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7647 Simplify.
7648 (tui_free_all_source_wins_content): Cast to
7649 tui_source_window_base.
7650
44f0e208
TT
76512019-06-25 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-win.c (make_invisible_and_set_new_height)
7654 (make_visible_with_new_height): Call has_locator method.
7655 * tui/tui-layout.c (show_source_disasm_command, show_data)
7656 (show_source_or_disasm_and_command): Update for bool change.
7657 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7658 (tui_win_info) <has_locator>: New method.
7659 (struct tui_source_window_base) <has_locator>: New method.
7660 (tui_win_has_locator): Don't declare.
7661 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7662 from tui_win_has_locator.
7663 (tui_source_window_base): Use false, not FALSE.
7664
7778b912
TT
76652019-06-25 Tom Tromey <tom@tromey.com>
7666
7667 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7668 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7669 clear_detail method directly.
7670 (tui_clear_win_detail): Remove.
7671
f83d391c
TT
76722019-06-25 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7675 "this", not TUI_DISASM_WIN.
7676
13446e05
TT
76772019-06-25 Tom Tromey <tom@tromey.com>
7678
7679 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7680 declare.
7681 * tui/tui-winsource.c
7682 (tui_source_window_base::do_scroll_horizontal): Rename from
7683 tui_horizontal_source_scroll.
7684 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7685 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7686 from tui_vertical_data_scroll.
7687 * tui/tui-win.h (tui_scroll): Don't declare.
7688 * tui/tui-win.c (tui_win_info::forward_scroll)
7689 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7690 (tui_win_info::right_scroll): Rename and update.
7691 (tui_scroll_forward_command, tui_scroll_backward_command)
7692 (tui_scroll_left_command, tui_scroll_right_command): Update.
7693 (tui_scroll): Remove.
7694 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7695 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7696 from tui_vertical_source_scroll.
7697 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7698 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7699 from tui_vertical_disassem_scroll.
7700 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7701 do_scroll_horizontal>: New methods.
7702 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7703 Likewise.
7704 (struct tui_source_window_base): Add do_scroll_horizontal.
7705 (struct tui_source_window, struct tui_disasm_window): Add
7706 do_scroll_vertical.
7707 (struct tui_data_window, struct tui_cmd_window): Add
7708 do_scroll_horizontal and do_scroll_vertical.
7709 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7710
5cf82909
TT
77112019-06-25 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-data.h (struct tui_source_window_base): New struct.
7714 (struct tui_source_window): Derive from tui_source_window_base.
7715 (struct tui_disasm_window): New struct.
7716 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7717 from tui_source_window::clear_detail.
7718 (tui_source_window_base): Rename from tui_source_window.
7719 (~tui_source_window_base): Rename from ~tui_source_window.
7720 (tui_alloc_win_info): Create a tui_disasm_window.
7721
ee1d42d6
TT
77222019-06-25 Tom Tromey <tom@tromey.com>
7723
7724 * tui/tui-data.h (struct tui_source_window)
7725 (struct tui_data_window): Declare destructors.
7726 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7727 destructors.
7728 (tui_win_info): Simplify.
7729
b4eb2452
TT
77302019-06-25 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-winsource.c (tui_display_main)
7733 (tui_update_source_windows_with_addr)
7734 (tui_update_all_breakpoint_info): Update.
7735 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7736 (new_height_ok, parse_scrolling_args): Update.
7737 * tui/tui-stack.c (tui_show_frame_info): Update.
7738 * tui/tui-data.h (struct tui_list): Remove.
7739 (tui_source_windows): Return a reference to a std::vector.
7740 * tui/tui-data.c (source_windows): Now a std::vector.
7741 (tui_source_windows): Change return type.
7742 (tui_clear_source_windows): Rewrite.
7743 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7744 (tui_free_all_source_wins_content): Rewrite.
7745
8761a91b
TT
77462019-06-25 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7749 (struct tui_data_window, struct tui_cmd_window): Declare
7750 clear_detail method.
7751 * tui/tui-data.c (tui_source_window::clear_detail)
7752 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7753 methods.
7754 (tui_clear_win_detail): Simplify.
7755
0ed69eda
TT
77562019-06-25 Tom Tromey <tom@tromey.com>
7757
7758 * tui/tui-layout.c (make_source_window, make_disasm_window)
7759 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7760 Return the new window.
7761 (show_source_disasm_command, show_data)
7762 (show_source_or_disasm_and_command): Update.
7763
82432e10
TT
77642019-06-25 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7767 parameter. Return the new window.
7768 (show_source_disasm_command): Update and remove NULL check.
7769 (show_source_or_disasm_and_command): Update.
7770
ec328aa5
TT
77712019-06-25 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7774
33b906ab
TT
77752019-06-25 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-data.h (struct tui_win_info): Make constructor
7778 protected. Make destructor virtual. Add initializers.
7779 (tui_source_window, tui_data_window, tui_cmd_window): New
7780 classes.
7781 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7782 constructor. Add "type" parameter.
7783 (tui_source_window, tui_data_window, tui_cmd_window): New
7784 constructors.
7785 (tui_alloc_win_info): Instantiate the appropriate subclass.
7786
e7e11af4
TT
77872019-06-25 Tom Tromey <tom@tromey.com>
7788
7789 * tui/tui-win.c (tui_resize_all): Use delete.
7790 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7791 destructor.
7792 (tui_free_window): Don't declare.
7793 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7794 Update.
7795
6792b55e
TT
77962019-06-25 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-data.h (struct tui_win_info): Add constructor.
7799 * tui/tui-data.c (tui_alloc_win_info): Use new.
7800 (tui_free_window): Use delete.
7801
f95675e1
TT
78022019-06-22 Tom Tromey <tom@tromey.com>
7803
7804 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7805 declare.
7806 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7807
5bff081c
TT
78082019-06-22 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7811 declare.
7812 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7813
47e3f474
TV
78142019-06-22 Tom de Vries <tdevries@suse.de>
7815
7816 * dwarf2read.c (create_addrmap_from_aranges)
7817 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7818 instead of '%zu'.
7819
fd5866f6
SM
78202019-06-21 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * dwarf2read.h (dwarf2_section_info_def): Remove.
7823 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7824 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7825 std::vector<dwarf2_section_info>.
7826 (struct dwo_file) <~dwo_file>: Remove.
7827 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7828 types field.
7829 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7830 (dwarf2_read_debug_names): Likewise.
7831 (create_debug_types_hash_table): Change parameter type to
7832 array_view, adjust code accordingly.
7833 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7834 (partial_die_info::fixup): Likewise.
7835 (determine_prefix): Likewise.
7836 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7837
fb1eb2f9
SM
78382019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7841 gdb_bfd_ref_ptr.
7842 <~dwo_file>: Remove call to gdb_bfd_unref.
7843 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7844 gdb_bfd_ref_ptr::get.
7845
51ac9db5
SM
78462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7847
7848 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7849 type to htab_up.
7850 * dwarf2read.c (struct dwo_file): Initialize fields.
7851 <~dwo_file>: New.
7852 (free_dwo_file): Remove, move content to ~dwo_file.
7853 (struct dwo_file_deleter): Remove.
7854 (dwo_file_up>: Remove custom deleter.
7855 (free_dwo_files): Remove.
7856 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7857 dwo_files.
7858 (process_skeletonless_type_units): Call unique_ptr::get.
7859 (allocate_dwo_file_hash_table): Add deleter to created hash
7860 table. Change return type to htab_up.
7861 (lookup_dwo_file_slot): Don't memset dwo_file, call
7862 unique_ptr::get.
7863 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7864 (create_dwo_unit_in_dwp_v2): Likewise.
7865 (open_and_init_dwo_file): Likewise.
7866 (free_dwo_file_from_slot): Remove.
7867
dc4ccb6f
SM
78682019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7869
7870 * dwarf2read.h (struct dwarf2_section_info) <readin,
7871 is_virtual>: Change type to bool.
7872 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7873 true instead of 1.
7874
e6a1c5cb
TT
78752019-06-19 Tom Tromey <tom@tromey.com>
7876
7877 * tui/tui-data.h (tui_init_content_element): Don't declare.
7878
6f6ffbeb
TT
78792019-06-19 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-data.h (tui_init_win_info): Don't declare.
7882
f23f598e
TV
78832019-06-19 Tom de Vries <tdevries@suse.de>
7884
7885 * dwarf2read.h (abstract_to_concrete): Change type to
7886 std::unordered_map<sect_offset, std::vector<sect_offset>,
7887 gdb::hash_enum<sect_offset>>.
7888
680e1bee
TT
78892019-06-19 Tom Tromey <tromey@adacore.com>
7890
7891 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7892 EVAL_AVOID_SIDE_EFFECTS specially.
7893
dcf37923
TT
78942019-06-19 Tom Tromey <tromey@adacore.com>
7895
7896 * source-cache.c (highlighter): New global.
7897 (source_cache::get_source_lines): Create a highlighter on demand.
7898
494986d5
AB
78992019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7900
7901 * defs.h (deprecated_interactive_hook): Delete declaration.
7902 * interps.c (clear_interpreter_hooks): Remove use of
7903 deprecated_interactive_hook.
7904 * top.c (deprecated_interactive_hook): Delete definition.
7905 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7906
3360b6e7
TV
79072019-06-18 Tom de Vries <tdevries@suse.de>
7908
7909 PR gdb/24515
7910 * dwarf2read.h (abstract_to_concrete): Change type from
7911 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7912 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7913 * dwarf2read.c (read_variable): Update.
7914 (dwarf2_fetch_die_loc_sect_off): Update.
7915
310b3441
TV
79162019-06-17 Tom de Vries <tdevries@suse.de>
7917
7918 PR gdb/24617
7919 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7920 accessing parent[parent_len - 1].
7921
ba9777be
PP
79222019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7923
7924 PR gdb/24364
7925 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7926 call dtrace_process_dof with NULL dof.
7927
2b9f6e89
TV
79282019-06-16 Tom de Vries <tdevries@suse.de>
7929
7930 PR gdb/24445
7931 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7932
431b3ead
TT
79332019-06-16 Tom Tromey <tom@tromey.com>
7934
7935 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7936 (make_all_visible): Use address of member.
7937
d04b44a1
TT
79382019-06-16 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7941 (tui_free_window, free_content, free_content_elements): Remove
7942 unnecessary cast.
7943 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7944 cast.
7945 * tui/tui-regs.c (tui_show_register_group)
7946 (tui_display_registers_from, tui_display_reg_element_at_line):
7947 Remove unnecessary cast.
7948
bf5142e7
AB
79492019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * linux-nat.c (normal_mask): Delete.
7952 (_initialize_linux_nat): Don't initialise normal_mask.
7953
c4973306
SM
79542019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7955
7956 PR gdb/24445
7957 * dwarf-index-write.h (write_psymtabs_to_index): Add
7958 dwz_basename parameter.
7959 * dwarf-index-write.c (write_gdbindex): Move file writing to
7960 write_gdbindex_1. Change return type void.
7961 (assert_file_size): Move up, remove filename parameter.
7962 (write_gdbindex_1): New function.
7963 (write_debug_names): Change return type to void, call
7964 assert_file_size.
7965 (struct index_wip_file): New struct.
7966 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7967 file logic to index_wip_file. Write index for dwz file if
7968 needed.
7969 (save_gdb_index_command): Pass basename of dwz file, if present.
7970 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7971 build-id of dwz file, if present.
7972 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7973 (dwarf2_get_dwz_file): Likewise.
7974 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7975 (dwarf2_get_dwz_file): Likewise.
7976
395f9c91
TT
79772019-06-16 Tom Tromey <tom@tromey.com>
7978
7979 * coffread.c (process_coff_symbol): Use xstrdup.
7980 * value.c (create_internalvar): Use xstrdup.
7981
cafb3438
TT
79822019-06-16 Tom Tromey <tom@tromey.com>
7983
7984 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7985 * breakpoint.c (stopin_command, stopat_command)
7986 (until_break_command, decode_location_default): Remove unnecessary
7987 cast.
7988 * utils.c (subset_compare): Remove unnecessary cast.
7989 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7990 cast.
7991 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7992 cast.
7993 * infcmd.c (path_command): Remove unnecessary cast.
7994 * coffread.c (decode_type): Remove unnecessary cast.
7995 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7996 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7997 * tui/tui-stack.c (tui_show_locator_content)
7998 (tui_show_frame_info): Remove unnecessary cast.
7999 * tui/tui-win.c (tui_scroll_forward_command)
8000 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8001 (parse_scrolling_args): Remove unnecessary cast.
8002 * tui/tui-data.c (init_win_info, tui_del_window)
8003 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8004 (free_content_elements): Remove unnecessary cast.
8005 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8006 unnecessary cast.
8007 * tui/tui-source.c (tui_set_source_content)
8008 (tui_vertical_source_scroll): Remove unnecessary cast.
8009 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8010 cast.
8011 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8012 * tui/tui-regs.c (tui_display_registers_from)
8013 (tui_display_register): Remove unnecessary cast.
8014 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8015 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8016 (make_visible): Remove unnecessary cast.
8017 * tui/tui-winsource.c (tui_erase_source_content)
8018 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8019 unnecessary cast.
8020 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8021 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8022 * stabsread.c (read_type, read_array_type, read_range_type):
8023 Remove unnecessary cast.
8024 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8025 (parse_symbol, parse_type, upgrade_type, parse_external)
8026 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8027 unnecessary cast.
8028 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8029
730ead81
TT
80302019-06-16 Tom Tromey <tom@tromey.com>
8031
8032 * tui/tui-data.c (tui_alloc_generic_win_info)
8033 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8034 checks.
8035
584a927c
AB
80362019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8037 Andrew Burgess <andrew.burgess@embecosm.com>
8038
8039 * f-typeprint.c (f_print_type): Don't return early for not
8040 associated or not allocated types.
8041 (f_type_print_varspec_suffix): Add print_rank parameter and print
8042 ranks of array types in case they dangling.
8043 (f_type_print_base): Add print_rank parameter.
8044
30056ea0
AB
80452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * NEWS: Mention new MI commands.
8048 * break-catch-throw.c (enum exception_event_kind): Move to
8049 breakpoint.h.
8050 (print_mention_exception_catchpoint): Output text as a single
8051 message.
8052 (catch_exception_command_1): Rename to...
8053 (catch_exception_event): ...this, make non-static, update header
8054 command, and change some parameter types.
8055 (catch_catch_command): Update for changes to
8056 catch_exception_command_1.
8057 (catch_throw_command): Likewise.
8058 (catch_rethrow_command): Likewise.
8059 * breakpoint.c (enum exception_event_kind): Delete.
8060 * breakpoint.h (enum exception_event_kind): Moved here from
8061 break-catch-throw.c.
8062 (catch_exception_event): Declare.
8063 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8064 (mi_cmd_catch_throw): New function.
8065 (mi_cmd_catch_rethrow): New function.
8066 (mi_cmd_catch_catch): New function.
8067 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8068 'catch-catch' entries.
8069 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8070 (mi_cmd_catch_rethrow): Declare.
8071 (mi_cmd_catch_catch): Declare.
8072
ec8e2b6d
AB
80732019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8074
8075 * annotate.c (annotate_source_line): Change return type to void,
8076 update implementation to match.
8077 * annotate.h (annotate_source_line): Change return type to void,
8078 update header comment.
8079 * stack.c (print_frame_info): Don't change what frame information
8080 is printed based on whether annotations are on or not.
8081
0d3abd8c
AB
80822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8083
8084 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8085 (annotate_source): Make static.
8086 (annotate_source_line): Moved from source.c and renamed from
8087 identify_source_line. Update the return type.
8088 * annotate.h (annotate_source): Delete declaration.
8089 (annotate_source_line): Declaration moved from source.h, and
8090 renamed from identify_source_line. Return type updated.
8091 * source.c (identify_source_line): Moved to annotate.c and renamed
8092 to annotate_source_line.
8093 (info_line_command): Remove check of annotation_level.
8094 * source.h (identify_source_line): Move declaration to annotate.h
8095 and rename to annotate_source_line.
8096 * stack.c: Add 'annotate.h' include.
8097 (print_frame_info): Remove check of annotation_level before
8098 calling annotate_source_line.
8099
00df30ae
AB
81002019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * source-cache.c (source_cache::get_plain_source_lines): Use
8103 open_source_file_with_line_charpos instead of just
8104 open_source_file, remove call to find_source_lines.
8105 (source_cache::get_source_lines): Likewise.
8106 * source.c (find_source_lines): Make static.
8107 (get_filename_and_charpos): Renamed into...
8108 (open_source_file_with_line_charpos): ..this along with changes to
8109 return a scoped_fd, and some other minor clean ups.
8110 (identify_source_line): Use open_source_file_with_line_charpos.
8111 (search_command_helper): Use open_source_file_with_line_charpos
8112 instead of just open_source_file, remove call to
8113 find_source_lines.
8114 * source.h (open_source_file_with_line_charpos): Declare new
8115 function.
8116 (find_source_lines): Delete declaration.
8117
afda45a2
AB
81182019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * source.c (get_filename_and_charpos): Remove fullname
8121 parameter.
8122 (identify_source_line): Update call to get_filename_and_charpos.
8123
0735b091
TT
81242019-06-14 Tom Tromey <tromey@adacore.com>
8125
8126 PR gdb/24502:
8127 * ui-style.h (skip_ansi_escape): Update comment.
8128 * ui-file.h (class no_terminal_escape_file): New class.
8129 * ui-file.c (no_terminal_escape_file::write)
8130 (no_terminal_escape_file::puts): New methods.
8131 * cli/cli-logging.c (handle_redirections): Use
8132 no_terminal_escape_file.
8133
52ce35e2
TT
81342019-06-14 Tom Tromey <tromey@adacore.com>
8135
8136 * NEWS: Move convenience variable news above Python news.
8137
73cc7272
TT
81382019-06-14 Tom Tromey <tom@tromey.com>
8139
8140 * gnulib: Move directory to top-level.
8141 * configure.ac: Don't configure gnulib.
8142 * configure: Rebuild.
8143 * common/common-defs.h: Use new path to gnulib.
8144 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8145 (GNULIB_H): Remove.
8146 (INCGNU): Look in new gnulib location.
8147 (HFILES_NO_SRCDIR): Remove gnulib files.
8148 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8149 (generated_files): Remove GNULIB_H.
8150 ($(LIBGNU), all-lib): Remove targets.
8151 (distclean): Don't mention GNULIB_BUILDDIR.
8152 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8153
f5686554
TT
81542019-06-14 Tom Tromey <tromey@adacore.com>
8155
8156 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8157 Warn if symbol file does not provide any symbols.
8158
a0c1ffed
TT
81592019-06-14 Tom Tromey <tromey@adacore.com>
8160
8161 * source.c (find_and_open_source): Respect basenames_may_differ.
8162
7c39e397
AB
81632019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * annotate.c (annotate_breakpoints_invalid): Make use of
8166 scoped_restore_terminal_state.
8167 (annotate_frames_invalid): Likewise.
8168
f411722c
TT
81692019-06-14 Tom Tromey <tromey@adacore.com>
8170
8171 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8172 allow assignment to an internalvar.
8173
4268ec18
TT
81742019-06-14 Tom Tromey <tromey@adacore.com>
8175
8176 * ada-lex.l: Allow "_" in attribute names.
8177
abdb711e
TT
81782019-06-14 Tom Tromey <tromey@adacore.com>
8179
8180 PR gdb/24653:
8181 * regcache.c (registers_changed): Don't call alloca.
8182 * top.c (execute_command): Don't call alloca.
8183
4c048731
PA
81842019-06-13 Pedro Alves <palves@redhat.com>
8185
8186 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8187 'expression'. When parsing an expression, error out if there's
8188 junk after "unlimited".
8189 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8190 (do_set_command): Adjust calls to is_unlimited_literal.
8191
66eb1ed3
PA
81922019-06-13 Pedro Alves <palves@redhat.com>
8193
8194 * compile/compile.c (make_compile_options_def_group): Add braces
8195 around array_view initializer.
8196 * thread.c (make_thread_apply_all_options_def_group)
8197 (make_thread_apply_all_options_def_group): Likewise.
8198
3345721a
PA
81992019-06-13 Pedro Alves <palves@redhat.com>
8200
8201 * NEWS (New commands): Mention "maint test-options
8202 require-delimiter", "maint test-options unknown-is-error", "maint
8203 test-options unknown-is-operand" and "maint show
8204 test-options-completion-result".
8205 (New command options, command completion): New section.
8206 (Completion improvements): New section.
8207 Mention that you can abbreviate "unlimited".
8208
6206060d
PA
82092019-06-13 Pedro Alves <palves@redhat.com>
8210
8211 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8212 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8213 * unittests/cli-utils-selftests.c (test_parse_flags)
8214 (test_parse_flags_qcs): Delete.
8215 (test_cli_utils): Don't call deleted functions.
8216
6665660a
PA
82172019-06-13 Pedro Alves <palves@redhat.com>
8218
8219 * thread.c: Include "cli/cli-option.h".
8220 (tp_array_compar_ascending): Global.
8221 (tp_array_compar): Delete function.
8222 (tp_array_compar_ascending, tp_array_compar_descending): New
8223 functions.
8224 (ascending_option_def, qcs_flag_option_def)
8225 (thr_qcs_flags_option_defs)
8226 (make_thread_apply_all_options_def_group)
8227 (make_thread_apply_options_def_group): New.
8228 (thread_apply_all_command): Use gdb::option::process_options.
8229 (thread_apply_command_completer)
8230 (thread_apply_all_command_completer): New.
8231 (thread_apply_command): Use gdb::option::process_options.
8232 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8233 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8234 to generate help text of "thread apply". Adjust "taas"'s help.
8235 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8236 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8237
f7e13587
PA
82382019-06-13 Pedro Alves <palves@redhat.com>
8239
8240 * thread.c (thread_apply_command): Check for invalid TID with
8241 isdigit instead of !isalpha.
8242
5d707134
PA
82432019-06-13 Pedro Alves <palves@redhat.com>
8244
8245 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8246 (validate_flags_qcs): New.
8247 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8248 (validate_flags_qcs): Declare.
8249 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8250 (make_frame_apply_options_def_group): New.
8251 (frame_apply_command_count): Process options with
8252 gdb::option::process_options.
8253 (frame_apply_completer): New.
8254 (frame_apply_level_completer, frame_apply_all_completer)
8255 (frame_apply_completer): New.
8256 (_initialize_stack): Update help of "frame apply", "frame apply
8257 level", "frame apply all" and "faas" to mention supported options
8258 and install command completers.
8259 * stack.h (frame_apply_all_completer): Declare.
8260 * thread.c: Include "stack.h".
8261 (tfaas_command): Add "--".
8262 (_initialize_thread): Update help "tfaas" to mention supported
8263 options and install command completer.
8264
272d4594
PA
82652019-06-13 Pedro Alves <palves@redhat.com>
8266
8267 * completer.c (complete_nested_command_line): New.
8268 (gdb_completion_word_break_characters_throw): Add assertion.
8269 * completer.h (complete_nested_command_line): Declare.
8270
90a1ef87
PA
82712019-06-13 Pedro Alves <palves@redhat.com>
8272
8273 * stack.c (parse_backtrace_qualifiers): New.
8274 (backtrace_command): Use it.
8275 (backtrace_command_completer): Complete on qualifiers.
8276
d4c16835
PA
82772019-06-13 Pedro Alves <palves@redhat.com>
8278
8279 * frame.c: Include "cli/cli-option.h.
8280 (user_set_backtrace_options): New.
8281 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8282 Delete.
8283 (get_prev_frame): Adjust.
8284 (boolean_option_def, uinteger_option_def)
8285 (set_backtrace_option_defs): New.
8286 (_initialize_frame): Adjust and use
8287 gdb::option::add_setshow_cmds_for_options to install "set
8288 backtrace past-main" and "set backtrace past-entry".
8289 * frame.h: Include "cli/cli-option.h".
8290 (struct frame_print_options): Forward declare.
8291 (print_frame_arguments_all, print_frame_arguments_scalars)
8292 (print_frame_arguments_none): Declare.
8293 (print_entry_values): Delete declaration.
8294 (struct frame_print_options, user_frame_print_options): New.
8295 (struct set_backtrace_options): New.
8296 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8298 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8299 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8300 (list_args_or_locals): Add frame_print_options parameter.
8301 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8302 * python/py-framefilter.c (enumerate_args): Pass down
8303 USER_FRAME_PRINT_OPTIONS.
8304 * stack.c: Include "cli/cli-option.h".
8305 (print_frame_arguments_all, print_frame_arguments_scalars)
8306 (print_frame_arguments_none): Declare.
8307 (print_raw_frame_arguments, print_entry_values): Delete.
8308 (user_frame_print_options): New.
8309 (boolean_option_def, enum_option_def, frame_print_option_defs):
8310 New.
8311 (struct backtrace_cmd_options): New.
8312 (bt_flag_option_def): New.
8313 (backtrace_command_option_defs): New.
8314 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8315 (print_frame_arg, read_frame_arg, print_frame_args)
8316 (print_frame_info, print_frame): Add frame_print_options parameter
8317 and use it.
8318 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8319 (backtrace_command_1): Add frame_print_options and
8320 backtrace_cmd_options parameters and use them.
8321 (make_backtrace_options_def_group): New.
8322 (backtrace_command): Process command options with
8323 gdb::option::process_options.
8324 (backtrace_command_completer): New.
8325 (_initialize_stack): Extend "backtrace"'s help to mention
8326 supported options. Install completer for "backtrace".
8327 Install some settings commands with add_setshow_cmds_for_options.
8328
2daf894e
PA
83292019-06-13 Pedro Alves <palves@redhat.com>
8330
8331 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8332 and that "set/show print raw frame-arguments" are now deprecated.
8333
8334 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8335 command.
8336 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8337 * stack.c (_initialize_stack): Install "set/show print
8338 raw-frame-arguments", and deprecate "set/show print raw
8339 frame-arguments".
8340 * valprint.c (_initialize_valprint): Deprecate "set/show print
8341 raw".
8342
e6ed716c
PA
83432019-06-13 Pedro Alves <palves@redhat.com>
8344
8345 * compile/compile.c (struct compile_options): New.
8346 (compile_flag_option_def, compile_command_option_defs)
8347 (make_compile_options_def_group): New.
8348 (compile_file_command): Handle options with
8349 gdb::option::process_options.
8350 (compile_file_command_completer): New function.
8351 (compile_code_command): Handle options with
8352 gdb::option::process_options.
8353 (compile_code_command_completer): New function.
8354 (_initialize_compiler): Install completers for "compile code" and
8355 "compile file". Mention available options in "compile code" and
8356 "compile code"'s help.
8357 * completer.c (advance_to_completion_word): New, factored out from
8358 ...
8359 (advance_to_expression_complete_word_point): ... this.
8360 (advance_to_filename_complete_word_point): New.
8361 * completer.h (advance_to_filename_complete_word_point): New
8362 declaration.
8363
7d8062de
PA
83642019-06-13 Pedro Alves <palves@redhat.com>
8365
8366 * compile/compile.c: Include "cli/cli-option.h".
8367 (compile_print_value): Scope data pointer is now a
8368 value_print_options pointer; adjust.
8369 (compile_print_command): Process options. Scope data pointer is
8370 now a value_print_options pointer; adjust.
8371 (_initialize_compile): Update "compile print"'s help to include
8372 supported options. Install a completer for "compile print".
8373 * cp-valprint.c (show_vtblprint, show_objectprint)
8374 (show_static_field_print): Delete.
8375 (_initialize_cp_valprint): Don't install "set print
8376 static-members", "set print vtbl", "set print object" here.
8377 * printcmd.c: Include "cli/cli-option.h" and
8378 "common/gdb_optional.h".
8379 (print_command_parse_format): Rework to fill in a
8380 value_print_options instead of a format_data.
8381 (print_value): Change parameter type from format_data pointer to
8382 value_print_options reference. Adjust.
8383 (print_command_1): Process options. Adjust to pass down a
8384 value_print_options.
8385 (print_command_completer): New.
8386 (_initialize_printcmd): Install print_command_completer as
8387 handle_brkchars completer for the "print" command. Update
8388 "print"'s help to include supported options.
8389 * valprint.c: Include "cli/cli-option.h".
8390 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8391 here from cp-valprint.c.
8392 (boolean_option_def, uinteger_option_def)
8393 (value_print_option_defs, make_value_print_options_def_group):
8394 New. Use gdb::option::add_setshow_cmds_for_options to install
8395 "set print elements", "set print null-stop", "set print repeats",
8396 "set print pretty", "set print union", "set print array", "set
8397 print address", "set print symbol", "set print array-indexes".
8398 * valprint.h: Include <string> and "cli/cli-option.h".
8399 (make_value_print_options_def_group): Declare.
8400 (print_value): Change parameter type from format_data pointer to
8401 value_print_options reference.
8402 (print_command_completer): Declare.
8403
9d0faba9
PA
84042019-06-13 Pedro Alves <palves@redhat.com>
8405
8406 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8407 (COMMON_SFILES): Add maint-test-settings.c.
8408 * cli/cli-decode.c (boolean_enums): New global, factored out from
8409 ...
8410 (add_setshow_boolean_cmd): ... here.
8411 * cli/cli-decode.h (boolean_enums): Declare.
8412 * cli/cli-option.c: New file.
8413 * cli/cli-option.h: New file.
8414 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8415 factored out from ...
8416 (parse_cli_boolean_value(const char *)): ... this.
8417 (is_unlimited_literal): Change parameter type to pointer to
8418 pointer. Adjust and advance ARG pointer.
8419 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8420 (parse_cli_var_enum): New, factored out from ...
8421 (do_set_command): ... this. Adjust.
8422 * cli/cli-setshow.h (parse_cli_boolean_value)
8423 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8424 (parse_cli_var_enum): Declare.
8425 * cli/cli-utils.c: Include "cli/cli-option.h".
8426 (get_ulongest): New.
8427 * cli/cli-utils.h (get_ulongest): Declare.
8428 (check_for_argument): New overloads.
8429 * maint-test-options.c: New file.
8430
2c722807
PA
84312019-06-13 Pedro Alves <palves@redhat.com>
8432
8433 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8434 parse a range if "-" is at the end of the string.
8435
dee7b4c8
PA
84362019-06-13 Pedro Alves <palves@redhat.com>
8437
8438 * cli/cli-setshow.c (parse_auto_binary_operation)
8439 (parse_cli_boolean_value): Don't allow "o".
8440
dca0f6c0
PA
84412019-06-13 Pedro Alves <palves@redhat.com>
8442
8443 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8444 * NEWS: Mention maint test-settings KIND.
8445 * maint-test-settings.c: New file.
8446
597bf39d
PA
84472019-06-13 Pedro Alves <palves@redhat.com>
8448
8449 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8450 completer.
8451 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8452 "set" completers.
8453
48c410fb
PA
84542019-06-13 Pedro Alves <palves@redhat.com>
8455
8456 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8457 after item.
8458
93bcb043
PA
84592019-06-13 Pedro Alves <palves@redhat.com>
8460
8461 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8462
cbba3ecd
PA
84632019-06-13 Pedro Alves <palves@redhat.com>
8464
8465 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8466 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8467 call.
8468 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8469 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8470 calls.
8471 (check_for_argument): Skip spaces after argument.
8472
b9a3f842
PA
84732019-06-13 Pedro Alves <palves@redhat.com>
8474
8475 * thread.c (thread_apply_command): Adjust TID parsing.
8476 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8477 detected before end of string.
8478 (tid_is_in_list): Error out if LIST is invalid.
8479
3844e605
PA
84802019-06-13 Pedro Alves <palves@redhat.com>
8481
8482 * completer.c (complete_line_internal_1): Rewind completion word
8483 point.
8484 (completion_tracker::advance_custom_word_point_by): Change
8485 parameter type to int.
8486 * completer.h (completion_tracker::advance_custom_word_point_by):
8487 Likewise.
8488
00b56dbe
PA
84892019-06-13 Pedro Alves <palves@redhat.com>
8490
8491 * completer.c (advance_to_completion_word): Handle delimiters.
8492
d106773e
PA
84932019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8494
8495 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8496
08f10e02
TT
84972019-06-11 Tom Tromey <tom@tromey.com>
8498
8499 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8500 (xmalloc_failed): Move to alloc.c.
8501 * alloc.c: New file.
8502 * Makefile.in (COMMON_SFILES): Add alloc.c.
8503
1c7fe951
TT
85042019-06-11 Tom Tromey <tom@tromey.com>
8505
8506 * nat/linux-waitpid.c: Don't include server.h.
8507 (linux_debug): Remove.
8508 (my_waitpid): Update.
8509
89549d7f
TT
85102019-06-11 Tom Tromey <tromey@adacore.com>
8511
8512 * infcall.c (_initialize_infcall): Remove trailing newline from
8513 help.
8514 * user-regs.c (_initialize_user_regs): Remove trailing newline
8515 from help.
8516 * typeprint.c (_initialize_typeprint): Remove trailing newline
8517 from help.
8518 * reverse.c (_initialize_reverse): Remove trailing newlines from
8519 help.
8520 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8521 from help.
8522 * language.c (add_set_language_command): Remove trailing newline
8523 from help.
8524 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8525 help.
8526 * disasm.c (_initialize_disasm): Remove trailing newline from
8527 help.
8528 * top.c (init_main): Remove trailing newline from help.
8529 * interps.c (_initialize_interpreter): Remove trailing newline
8530 from help.
8531 * btrace.c (_initialize_btrace): Remove trailing newlines from
8532 help.
8533 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8534 from help.
8535 * python/python.c (_initialize_python): Remove trailing newline
8536 from help.
8537 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8538 help.
8539 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8540 from help. Reformat some text.
8541 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8542 from help.
8543 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8544 newline from help.
8545
86108c13
TT
85462019-06-11 Tom Tromey <tromey@adacore.com>
8547
8548 * darwin-nat.c (darwin_decode_exception_message)
8549 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8550
a7067863
AB
85512019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8552
8553 * valops.c (value_slice): Check for not allocated or not
8554 associated values.
8555
9ab08412
TV
85562019-06-10 Tom de Vries <tdevries@suse.de>
8557
8558 PR gdb/24618
8559 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8560 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8561 invalid.
8562
f19e22e9
TV
85632019-06-10 Tom de Vries <tdevries@suse.de>
8564
8565 PR gdb/24611
8566 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8567 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8568
e99f9db0
TV
85692019-06-10 Tom de Vries <tdevries@suse.de>
8570
8571 PR symtab/24545
8572 * symtab.c (struct demangled_name_entry): Add language field.
8573 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8574 static minimal symbol". Set and use language field.
8575
9bf7038b
TT
85762019-06-10 Tom Tromey <tromey@adacore.com>
8577
8578 * ada-lang.c (_initialize_ada_language): Update help text.
8579
422186a9
TT
85802019-06-10 Tom Tromey <tromey@adacore.com>
8581
8582 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8583 with a newline.
8584 * guile/guile.c (handle_boot_error): Don't end warning with a
8585 newline.
8586 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8587 warning with a newline.
8588 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8589 newline.
8590 (s12z_frame_cache): Likewise.
8591 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8592 a newline.
8593 * solib-svr4.c (disable_probes_interface): Don't end warning with
8594 a newline.
8595 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8596 newline.
8597 * python/python.c (do_finish_initialization): Don't end warning
8598 with a newline.
8599
25ce02ee
TT
86002019-06-10 Tom Tromey <tom@tromey.com>
8601
8602 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8603 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8604 gdbpy_enter.
8605
caa429d8
TT
86062019-06-10 Tom Tromey <tromey@adacore.com>
8607
8608 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8609 data.
8610 (elf_new_init): Don't call stabsread_new_init.
8611 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8612 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8613 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8614
81873cc8
TV
86152019-06-10 Tom de Vries <tdevries@suse.de>
8616
8617 PR symtab/16264
8618 PR symtab/24517
8619 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8620
4fa0265e
РИ
86212019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8622
8623 * source.c (find_and_open_source): Also rewrite relative file
8624 names.
8625
1a3da2cd
AB
86262019-04-26 Amos Bird <amosbird@gmail.com>
8627
8628 * annotate.c (annotate_thread_exited): Add "thread-exited"
8629 annotation.
8630
3847a7bf
TT
86312019-06-06 Tom Tromey <tromey@adacore.com>
8632
8633 * maint.h (class scoped_command_stats): Use
8634 DISABLE_COPY_AND_ASSIGN.
8635 <print_time>: New method.
8636 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8637 print_time.
8638 (scoped_command_stats::print_time): New method.
8639
312617a3
AB
86402019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8641
8642 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8643 instructions of lengths 6 or 8 bytes.
8644
b02f78f9
PA
86452019-06-04 Pedro Alves <palves@redhat.com>
8646
8647 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8648
8649 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8650 * breakpoint.c (condition_completer): Likewise.
8651 * cli/cli-dump.c (scan_expression): Likewise.
8652 * common/filestuff.c (mkdir_recursive): Likewise.
8653 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8654 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8655 (gdb_abspath): Likewise.
8656 * compile/compile-cplus-types.c
8657 (compile_cplus_instance::decl_name): Likewise.
8658 * completer.c (complete_explicit_location):
8659 (signal_completer, reg_or_group_completer_1): Likewise.
8660 * cp-support.c (cp_remove_params_if_any): Likewise.
8661 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8662 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8663 * infcmd.c (strip_bg_char): Likewise.
8664 * linespec.c (copy_token_string): Likewise.
8665 * mi/mi-main.c (output_cores): Likewise.
8666 * psymtab.c (psymtab_search_name):
8667 * symfile.c (test_set_ext_lang_command): Likewise.
8668 * target.c (target_fileio_read_stralloc): Likewise.
8669 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8670 * value.c (complete_internalvar): Likewise.
8671
e1f2e1a2
CB
86722019-06-04 Christian Biesinger <cbiesinger@google.com>
8673
8674 Add objfile property to gdb.Type.
d3238f7d
PA
8675 * NEWS: Mention Python API addition.
8676 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8677
e664d728
PW
86782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8679
8680 * NEWS: Mention the new set|show style [title|highlight].
8681 Mention changes to "show style", "help" and "apropos".
8682
66d8c862
PW
86832019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8684
8685 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8686 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8687 instead of print_help_for_command.
8688 (print_doc_of_command): New function.
8689 (help_list): Add 'apropos -v word' suggestion.
8690 (print_help_for_command): Style the command name using title style.
8691 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8692 (_initialize_cli_cmds): Describe -v in apropos_command help.
8693
9303eb2f
PW
86942019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8695
8696 * cli/cli-style.h (cli_style_option): Add name in constructor,
8697 add m_name class member, add constructor with intensity,
8698 add name class function.
8699 (cli_style_option::add_setshow_commands): Remove name argument.
8700 (highlight_style, title_style): New styles.
8701 * cli/cli-style.c (do_show): New function that shows a style
8702 characteristic styling the style name with itself.
8703 (set_style_name): New function.
8704 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8705 Update all callers according to the changes in cli/cli-style.h.
8706 * utils.h (fputs_highlighted): New function.
8707 * utils.c (fputs_highlighted): Likewise.
8708
e2c52041
PW
87092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8710
8711 * NEWS: Mention new pipe command and new convenience variables.
8712
947d3946
PW
87132019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8714
8715 * cli/cli-cmds.c (pipe_command): New function.
8716 (_initialize_cli_cmds): Call add_com for pipe_command.
8717 Define | as an alias for pipe.
8718 (exit_status_set_internal_vars): New function.
8719 (shell_escape): Call exit_status_set_internal_vars.
8720 cli/cli-decode.c (find_command_name_length): Recognize | as
8721 a single character command.
8722
b8fd0918
PW
87232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8724
8725 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8726 top.c (execute_command_to_ui_file): New function, mostly a copy
8727 of execute_command_to_string.
8728 (execute_command_to_string): Implement by calling
8729 execute_command_to_ui_file.
8730
68bb5386
PW
87312019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8732
8733 * top.h (saved_command_line): Remove declaration.
8734 * top.c (previous_saved_command_line, previous_repeat_arguments):
8735 New variables.
8736 (saved_command_line): Make static, define together with other
8737 'repeat variables'.
8738 (dont_repeat): Clear repeat_arguments.
8739 (repeat_previous, get_saved_command_line, save_command_line):
8740 New functions.
8741 (gdb_init): Initialize saved_command_line
8742 and previous_saved_command_line.
8743 * main.c (captured_main_1): Remove saved_command_line initialization.
8744 * event-top.c (handle_line_of_input): Update to use
8745 the new 'repeat' related functions instead of direct access to
8746 saved_command_line.
8747 * command.h (repeat_previous, get_saved_command_line,
8748 save_command_line): New declarations.
8749 (dont_repeat): Add comment.
8750
bfcdb852
TT
87512019-05-30 Tom Tromey <tromey@adacore.com>
8752
8753 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8754 Fix comment.
8755 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8756
0ef209f2
JV
87572019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8758
8759 PR cli/24587
8760 * completer.c (complete): Initialize variable word.
8761
955b06fa
SDJ
87622019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8763
8764 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8765 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8766 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8767 'body' is NULL to the outter 'if', protecting the '!is_define'
8768 situation as well.
8769
fa9c3fa0
TT
87702019-05-29 Tom Tromey <tromey@adacore.com>
8771
8772 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8773 (dwarf_unknown): New function.
8774 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8775 (dwarf_type_encoding_name): Use dwarf_unknown.
8776
4330d61d
TT
87772019-05-29 Tom Tromey <tromey@adacore.com>
8778
8779 PR c++/20020:
8780 * cp-valprint.c (cp_print_value_fields): Call
8781 cp_print_static_field inside "try".
8782
33a6bc35
TT
87832019-05-29 Tom Tromey <tromey@adacore.com>
8784
8785 * inflow.c (struct terminal_info): Add default operator=.
8786 * configure: Rebuild.
8787 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8788 -Wdeprecated-copy-dtor, -Wredundant-move.
8789
000439d5
TT
87902019-05-29 Tom Tromey <tromey@adacore.com>
8791
8792 * NEWS: Add entry.
8793 * infcmd.c (print_return_value_1): Handle finish_print
8794 option.
8795 (show_print_finish): New function.
8796 (_initialize_infcmd): Add "set/show print finish" commands.
8797 * valprint.c (user_print_options): Initialize new member.
8798 * valprint.h (struct value_print_options) <finish_print>: New
8799 member.
8800
c0e70c62
TT
88012019-05-28 Tom Tromey <tromey@adacore.com>
8802
8803 * ada-lang.c (ada_remove_Xbn_suffix)
8804 (find_old_style_renaming_symbol)
8805 (parse_old_style_renaming): Remove.
8806 (ada_find_renaming_symbol): Don't call
8807 find_old_style_renaming_symbol.
8808 (ada_is_renaming_symbol): Rename from
8809 ada_find_renaming_symbol. Remove "block" parameter. Return
8810 bool. Now static.
8811 (ada_read_var_value): Update and simplify.
8812 * ada-exp.y (write_var_or_type): Remove old code.
8813
766f8836
AH
88142019-05-28 Alan Hayward <alan.hayward@arm.com>
8815
68255adc 8816 PR gdb/25010
766f8836
AH
8817 * event-top.c: Remove include comment.
8818 * inflow.c (class scoped_ignore_sigttou): Move from here...
8819 * inflow.h (class scoped_ignore_sigttou): ...to here.
8820 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8821 * top.c: Remove include comment.
8822
eb41253a
TT
88232019-05-27 Tom Tromey <tom@tromey.com>
8824
8825 * NEWS: Fix typo.
8826
4ca51187
TT
88272019-05-22 Tom Tromey <tromey@adacore.com>
8828
8829 * target.c (target_follow_exec): Constify parameter.
8830 * target-delegates.c: Rebuild.
8831 * remote.c (remote_target::follow_exec): Constify parameter.
8832 * infrun.c (follow_exec): Constify parameter.
8833 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8834 (target_follow_exec): Likewise.
8835
8fca4da0
AH
88362019-05-22 Alan Hayward <alan.hayward@arm.com>
8837
8838 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8839 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8840
b7060614
AH
88412019-05-22 Alan Hayward <alan.hayward@arm.com>
8842
8843 * NEWS: Add debugredirect and testsuite sections.
8844
0a5954bd
SC
88452019-05-22 Simon Cook <simon.cook@embecosm.com>
8846
8847 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8848 target descriptions using exclusively floating point register name
8849 aliases.
8850
dc42e902
AB
88512019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8852
8853 PR gdb/18644:
8854 * f-lang.c (build_fortran_types): Handle the case where
8855 gdbarch_floatformat_for_type returns a nullptr.
8856
fb7806c7
TV
88572019-05-21 Tom de Vries <tdevries@suse.de>
8858
8859 PR cli/24587
8860 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8861
34d11c68
AB
88622019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 PR gdb/18644:
8865 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8866 16-byte floats.
8867 * i386-tdep.c (i386_floatformat_for_type): Use
8868 floatformats_ia64_quad for the 16-byte floating point component
8869 within a fortran 32-byte complex number.
8870
122cf0f2
AB
88712019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8872
8873 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8874 delete default constructor.
8875 (find_partial_die): Update to return const struct.
8876 (partial_die_parent_scope): Move variable declaration into scope
8877 of its use and change its type to auto.
8878 (guess_partial_die_structure_name): Likewise.
8879 (partial_die_info::fixup): Likewise.
8880
33d0e35a
TT
88812019-05-17 Tom Tromey <tromey@adacore.com>
8882
8883 * source.c (find_and_open_source): Remove cast.
8884
a45575b0
TT
88852019-05-17 Tom Tromey <tromey@adacore.com>
8886
8887 * annotate.c (annotate_source): Make "filename" const.
8888 * annotate.h (annotate_source): Use const.
8889
81f47ac2
AH
88902019-05-17 Alan Hayward <alan.hayward@arm.com>
8891
8892 * disasm.c (set_disassembler_options): Send errors to stderr.
8893
ca1285d1
AH
88942019-05-17 Alan Hayward <alan.hayward@arm.com>
8895
8896 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8897 (cli_interp_base::set_logging): Check debug_redirect.
8898 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8899 * cli/cli-logging.c (debug_redirect): Add static variable.
8900 (pop_output_files): Add default param.
8901 (handle_redirections): Print debug setting.
8902 (show_logging_command): Likewise.
8903 (_initialize_cli_logging): Add debugredirect command.
8904 * interps.c (current_interp_set_logging): Add debug_redirect
8905 parameter.
8906 * interps.h (set_logging): Add debug_redirect parameter.
8907 (current_interp_set_logging): Likewise.
8908 * mi/mi-common.h: Likewise.
8909 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8910
89112019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8912 Tom Tromey <tromey@adacore.com>
8913
8914 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8915 directly.
8916 * cli/cli-interp.h (make_logging_output): Remove declaration.
8917 * cli/cli-logging.c (make_logging_output): Remove function.
8918 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8919 directly.
8920 * ui-file.c (tee_file::tee_file): Remove bools.
8921 (tee_file::~tee_file): Remove deletes.
8922 * ui-file.h (tee_file): Remove bools.
8923
26648588
JV
89242019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8925
8926 * mi/mi-cmds.h (mi_cmd_complete): New function.
8927 * mi/mi-main.c (mi_cmd_complete): Likewise.
8928 * mi/mi-cmds.c: Define new MI command -complete.
8929 * NEWS: Mention new -complete command.
8930
6e035501
JV
89312019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8932
8933 * completer.h (complete): New function.
8934 * completer.c (complete): Likewise.
8935 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8936 function defined in completer.h.
8937
7d0e2ece
JV
89382019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8939
e79be6e5 8940 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8941
fb816e8b
TV
89422019-05-17 Tom de Vries <tdevries@suse.de>
8943
8944 PR gdb/24094
8945 * dwarf2read.c (struct cu_partial_die_info): New struct.
8946 (find_partial_die): Return cu_partial_die_info.
8947 (partial_die_parent_scope, guess_partial_die_structure_name)
8948 (partial_die_info::fixup): Handle new return type of find_partial_die.
8949
677052f2
SDJ
89502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8951
a1726c38 8952 PR breakpoints/24541
677052f2
SDJ
8953 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8954 "std::string", simplifying the algorithm.
8955
f3da9116
SDJ
89562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8957
8958 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8959 (stap_static_probe_ops::get_probes): Likewise.
8960
f1bb75ab
SDJ
89612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8962
8963 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8964 '-')" and "else if".
8965 (stap_parse_single_operand): Join checks for
8966 "gdbarch_stap_parse_special_token_p" and
8967 "gdbarch_stap_parse_special_token" in the same "if" statement.
8968 Invert check when verifying for operation on register
8969 displacement.
8970
3ca58cde
SDJ
89712019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8972
8973 * stap-probe.c (stap_get_opcode): Update comment.
8974 (stap_get_expected_argument_type): Likewise.
8975 (handle_stap_probe): Likewise.
8976
af2d9bee
SDJ
89772019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8978
8979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8980 return type to 'bool'. Adjust comment. Use 'bool' when
8981 appropriate.
8982 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8983 * stap-probe.c (stap_parse_argument_1): Likewise.
8984 (stap_is_operator): Likewise.
8985 (stap_is_generic_prefix): Likewise.
8986 (stap_is_register_prefix): Likewise.
8987 (stap_is_register_indirection_prefix): Likewise.
8988 (stap_is_integer_prefix): Likewise.
8989 (stap_generic_check_suffix): Likewise.
8990 (stap_check_integer_suffix): Likewise.
8991 (stap_check_register_suffix): Likewise.
8992 (stap_check_register_indirection_suffix): Likewise.
8993 (stap_parse_register_operand): Likewise.
8994 (stap_parse_single_operand): Likewise.
8995 (stap_parse_argument_1): Likewise.
8996 (stap_probe::get_argument_count): Likewise.
8997 (stap_is_operator): Likewise.
8998
61c9c421
TT
89992019-05-16 Tom Tromey <tromey@adacore.com>
9000
9001 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9002 keyword to foreach.
9003
9ddc1af1
SM
90042019-05-15 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * linux-thread-db.c (try_thread_db_load_1): Change return type
9007 to bool.
9008 (try_thread_db_load): Likewise.
9009 (try_thread_db_load_from_pdir_1): Likewise.
9010 (try_thread_db_load_from_pdir): Likewise.
9011 (try_thread_db_load_from_sdir): Likewise.
9012 (try_thread_db_load_from_dir): Likewise.
9013 (thread_db_load_search): Likewise.
9014 (has_libpthread): Likewise.
9015 (thread_db_load): Likewise.
9016
7bede828
SDJ
90172019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9018
9019 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9020 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9021 NULL, and complain/return if that's the case.
9022
c5358db4
JD
90232019-05-15 John Darrington <john@darrington.wattle.id.au>
9024
9025 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9026 (advance, posn, abstract_read_memory): New functions.
9027 [struct mem_read_abstraction]: New struct.
9028 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9029
c408a94f
TT
90302019-05-14 Tom Tromey <tromey@adacore.com>
9031
9032 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9033 value is not lval_memory.
9034
e7bd7fba
TT
90352019-05-14 Tom Tromey <tromey@adacore.com>
9036
9037 * solib.c (info_sharedlibrary_command): Style the file name.
9038
a6d0f249
AH
90392019-05-14 Alan Hayward <alan.hayward@arm.com>
9040
9041 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9042 (aarch64_vnv_type): Likewise.
9043 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9044 * common/tdesc.c: Likewise.
9045 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9046 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9047 * features/aarch64-fpu.xml: Add ieee half view.
9048 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9049 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9050 * gdbtypes.h (struct builtin_type): Likewise.
9051 (struct objfile_type): Likewise.
9052
66b8bb74
SM
90532019-05-12 Paul Naert <paul.naert@polymtl.ca>
9054
9055 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9056 typo.
9057 * location.h (string_to_event_location): Likewise.
9058
21c219fd
JB
90592019-05-11 Joel Brobecker <brobecker@adacore.com>
9060
9061 GDB 8.3 released.
9062
13674803
SM
90632019-05-10 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9066 New variable declaration.
9067 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9068 New variable.
9069 (print_one_breakpoint): Use ui_out::test_flags and new global
9070 variable to compute use_fixed_output.
9071 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9072 Remove.
9073 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9074 (mi_multi_location_breakpoint_output_fixed): Remove.
9075 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9076 new variable.
9077 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9078 fix_multi_location_breakpoint_output flag if version >= 3.
9079 * ui-out.h (enum ui_out_flag)
9080 <fix_multi_location_breakpoint_output>: New enumerator.
9081
a9eac7f9
SM
90822019-05-10 Simon Marchi <simon.marchi@efficios.com>
9083
9084 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9085
71bed2db
TT
90862019-05-10 Tom Tromey <tromey@adacore.com>
9087
9088 * ada-lang.c (catch_ada_completer): New function.
9089 (_initialize_ada_language): Use it.
9090
24c54127
TT
90912019-05-10 Tom Tromey <tromey@adacore.com>
9092
9093 * thread.c (print_thread_info): Make "requested_threads" const.
9094 * gdbthread.h (print_thread_info): Make "requested_threads"
9095 const.
9096 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9097 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9098
7a102139
TT
90992019-05-08 Tom Tromey <tom@tromey.com>
9100
9101 * gdbtypes.c (objfile_type_data): Change type.
9102 (objfile_type, _initialize_gdbtypes): Update.
9103
924d79e2
TT
91042019-05-08 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9107 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9108 (_initialize_dwarf2_frame): Update.
9109
4c58e337
TT
91102019-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * objc-lang.c (objc_objfile_data): Change type.
9113 (find_methods): Update.
9114 (_initialize_objc_lang): Remove.
9115
d772d2ab
TT
91162019-05-08 Tom Tromey <tom@tromey.com>
9117
9118 * stabsread.c (rs6000_builtin_type_data): Change type.
9119 (rs6000_builtin_type, _initialize_stabsread): Update.
9120
d11d83f4
TT
91212019-05-08 Tom Tromey <tom@tromey.com>
9122
9123 * mips-tdep.c (mips_pdr_data): Remove.
9124 (_initialize_mips_tdep): Update.
9125
9a73f0ad
TT
91262019-05-08 Tom Tromey <tom@tromey.com>
9127
9128 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9129 (hppa_init_objfile_priv_data, read_unwind_info)
9130 (find_unwind_entry, _initialize_hppa_tdep): Update.
9131
8127a2fa
TT
91322019-05-08 Tom Tromey <tom@tromey.com>
9133
9134 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9135 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9136 on obstack.
9137 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9138
91d3055d
TT
91392019-05-08 Tom Tromey <tom@tromey.com>
9140
9141 * mdebugread.c (basic_type_data): Change type.
9142 (basic_type, _initialize_mdebugread): Update.
9143
31930bd3
TT
91442019-05-08 Tom Tromey <tom@tromey.com>
9145
9146 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9147
bdb3ed9e
TT
91482019-05-08 Tom Tromey <tom@tromey.com>
9149
9150 * nto-tdep.c (nto_inferior_data_reg): Change type.
9151 (nto_inferior_data): Update.
9152 (nto_inferior_data_cleanup, nto_new_inferior_data)
9153 (_initialize_nto_tdep): Remove.
9154 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9155
f37b313d
TT
91562019-05-08 Tom Tromey <tom@tromey.com>
9157
9158 * ada-lang.c (struct ada_inferior_data): Add initializers.
9159 (ada_inferior_data): Change type.
9160 (ada_inferior_data_cleanup): Remove.
9161 (get_ada_inferior_data, ada_inferior_exit)
9162 (struct ada_pspace_data): Add initializers, destructor.
9163 (ada_pspace_data_handle): Change type.
9164 (get_ada_pspace_data): Update.
9165 (ada_pspace_data_cleanup): Remove.
9166
24699405
TT
91672019-05-08 Tom Tromey <tom@tromey.com>
9168
9169 * coffread.c (struct coff_symfile_info): Add initializers.
9170 (coff_objfile_data_key): Move lower. Change type.
9171 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9172 Update.
9173 (coff_free_info): Remove.
9174
d4e05d2f
TT
91752019-05-08 Tom Tromey <tom@tromey.com>
9176
9177 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9178 (fbsd_pspace_data_handle): Move lower. Change type.
9179 (get_fbsd_pspace_data): Update.
9180 (fbsd_pspace_data_cleanup): Remove.
9181 (_initialize_fbsd_tdep): Update.
9182
14ef6690
TT
91832019-05-08 Tom Tromey <tom@tromey.com>
9184
9185 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9186 (get_ada_tasks_pspace_data): Update.
9187 (ada_tasks_pspace_data_cleanup): Remove.
9188 (_initialize_tasks): Update.
9189 (ada_tasks_inferior_data_handle): Change type.
9190 (get_ada_tasks_inferior_data): Update.
9191 (ada_tasks_inferior_data_cleanup): Remove.
9192 (struct ada_tasks_pspace_data): Add initializers.
9193
814cf43a
TT
91942019-05-08 Tom Tromey <tom@tromey.com>
9195
9196 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9197 * symfile-debug.c (debug_sym_get_probes): Change type.
9198 * stap-probe.c (handle_stap_probe):
9199 (stap_static_probe_ops::get_probes): Change type.
9200 * probe.h (class static_probe_ops) <get_probes>: Change type.
9201 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9202 (parse_probes_in_pspace): Update.
9203 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9204 Update.
9205 (any_static_probe_ops::get_probes): Change type.
9206 * elfread.c (elfread_data): New typedef.
9207 (probe_key): Change type.
9208 (elf_get_probes): Likewise. Update.
9209 (probe_key_free): Remove.
9210 (_initialize_elfread): Update.
9211 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9212 Change type.
9213 (dtrace_process_dof_probe, dtrace_process_dof)
9214 (dtrace_static_probe_ops::get_probe): Change type.
9215
02dc647e
TT
92162019-05-08 Tom Tromey <tom@tromey.com>
9217
9218 * xcoffread.c (struct xcoff_symfile_info): Rename from
9219 coff_symfile_info. Add initializers.
9220 (xcoff_objfile_data_key): Move lower. Change type.
9221 (XCOFF_DATA): Rewrite.
9222 (xcoff_free_info): Remove.
9223 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9224 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9225 (xcoff_initial_scan): Update.
9226
09232438
TT
92272019-05-08 Tom Tromey <tom@tromey.com>
9228
9229 * solib-svr4.c (struct svr4_info): Add initializers and
9230 destructor.
9231 <probes_table>: Now an htab_up.
9232 (solib_svr4_pspace_data): Change type.
9233 (free_probes_table): Simplify.
9234 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9235 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9236 (probes_table_remove_objfile_probes, register_solib_event_probe)
9237 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9238 (_initialize_svr4_solib): Update.
9239
7b4a314f
TT
92402019-05-08 Tom Tromey <tom@tromey.com>
9241
9242 * remote.c (remote_pspace_data): Change type.
9243 (remote_pspace_data_cleanup): Remove.
9244 (get_remote_exec_file, set_pspace_remote_exec_file)
9245 (_initialize_remote): Update.
9246
51d3063a
TT
92472019-05-08 Tom Tromey <tom@tromey.com>
9248
9249 * breakpoint.c (breakpoint_objfile_key): Change type.
9250 (get_breakpoint_objfile_data): Update.
9251 (free_breakpoint_objfile_data): Remove.
9252 (_initialize_breakpoint): Update.
9253
89fb8848
TT
92542019-05-08 Tom Tromey <tom@tromey.com>
9255
9256 * linux-tdep.c (struct linux_info): Add initializers.
9257 (linux_inferior_data): Move. Change type.
9258 (invalidate_linux_cache_inf): Update.
9259 (linux_inferior_data_cleanup): Remove.
9260 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9261
e9b89e2d
TT
92622019-05-08 Tom Tromey <tom@tromey.com>
9263
9264 * auxv.c (auxv_inferior_data): Move. Change type.
9265 (auxv_inferior_data_cleanup): Remove.
9266 (invalidate_auxv_cache_inf): Rewrite.
9267 (get_auxv_inferior_data, _initialize_auxv): Update.
9268
8c42777c
TT
92692019-05-08 Tom Tromey <tom@tromey.com>
9270
9271 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9272 (symfile_debug_objfile_data_key): Change type.
9273 (symfile_debug_installed, debug_qf_has_symbols)
9274 (debug_qf_find_last_source_symtab)
9275 (debug_qf_forget_cached_source_info)
9276 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9277 (debug_qf_print_stats, debug_qf_dump)
9278 (debug_qf_expand_symtabs_for_function)
9279 (debug_qf_expand_all_symtabs)
9280 (debug_qf_expand_symtabs_with_fullname)
9281 (debug_qf_map_matching_symbols)
9282 (debug_qf_expand_symtabs_matching)
9283 (debug_qf_find_pc_sect_compunit_symtab)
9284 (debug_qf_map_symbol_filenames)
9285 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9286 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9287 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9288 (debug_sym_read_linetable, debug_sym_relocate): Update.
9289 (symfile_debug_free_objfile): Remove.
9290 (install_symfile_debug_logging, _initialize_symfile_debug):
9291 Update.
9292
5bfd760d
TT
92932019-05-08 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9296 allocate_on_obstack.
9297 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9298 (get_dwarf2_per_objfile): Update.
9299 (set_dwarf2_per_objfile): Remove.
9300 (dwarf2_has_info, dwarf2_get_section_info): Update.
9301 (dwarf2_free_objfile): Remove.
9302 (_initialize_dwarf2_read): Update.
9303
e85e19b4
TT
93042019-05-08 Tom Tromey <tom@tromey.com>
9305
9306 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9307 initializers.
9308 <unsupported_script_warning_printed,
9309 script_not_found_warning_printed>: Now bool.
9310 (auto_load_pspace_data): Change type.
9311 (~auto_load_pspace_info): Rename from
9312 auto_load_pspace_data_cleanup.
9313 (get_auto_load_pspace_data, init_loaded_scripts_info)
9314 (clear_section_scripts, maybe_print_unsupported_script_warning)
9315 (maybe_print_script_not_found_warning, _initialize_auto_load):
9316 Update.
9317
f6aa7436
TT
93182019-05-08 Tom Tromey <tom@tromey.com>
9319
9320 * objfiles.c (objfile_pspace_info): Add destructor and
9321 initializers.
9322 (objfiles_pspace_data): Change type.
9323 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9324 (get_objfile_pspace_data): Update.
9325 (objfiles_bfd_data): Change type.
9326 (get_objfile_bfd_data): Update.
9327 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9328
6ae614f6
TT
93292019-05-08 Tom Tromey <tom@tromey.com>
9330
9331 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9332 Change type.
9333 (get_catch_syscall_inferior_data): Update.
9334 (catch_syscall_inferior_data_cleanup): Remove.
9335 (_initialize_break_catch_syscall): Update.
9336
6509b8eb
TT
93372019-05-08 Tom Tromey <tom@tromey.com>
9338
9339 * inflow.c (struct terminal_info): Add destructor and
9340 initializers.
9341 (inflow_inferior_data): Change type.
9342 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9343 (get_inflow_inferior_data, inflow_inferior_exit)
9344 (swap_terminal_info, _initialize_inflow): Update.
9345
35632941
TT
93462019-05-08 Tom Tromey <tom@tromey.com>
9347
9348 * target-dcache.c (target_dcache_cleanup): Remove.
9349 (target_dcache_aspace_key): Change type.
9350 (target_dcache_init_p, target_dcache_invalidate)
9351 (target_dcache_get, target_dcache_get_or_init)
9352 (_initialize_target_dcache): Update.
9353 * dcache.h (struct dcache_deleter): New.
9354
3017b94d
TT
93552019-05-08 Tom Tromey <tom@tromey.com>
9356
9357 * symtab.c (struct symbol_cache): Add destructor and
9358 initializers.
9359 (symbol_cache_key): Move. Change type.
9360 (make_symbol_cache, free_symbol_cache): Remove.
9361 (get_symbol_cache): Update.
9362 (symbol_cache_cleanup): Remove.
9363 (ALL_PSPACES, symbol_cache_flush)
9364 (maintenance_print_symbol_cache)
9365 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9366 Update.
9367
a32ad8c5
TT
93682019-05-08 Tom Tromey <tom@tromey.com>
9369
9370 * symtab.c (struct main_info): Add destructor and initializers.
9371 (main_progspace_key): Move. Change type.
9372 (get_main_info): Update.
9373 (main_info_cleanup): Remove.
9374 (_initialize_symtab): Update.
9375
5f6e90a0
TT
93762019-05-08 Tom Tromey <tom@tromey.com>
9377
9378 * registry.h (DECLARE_REGISTRY): Define the _key class.
9379
1bd0c6e4
AB
93802019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * NEWS: Merge two 'New commands' sections.
9383
2228ef77
XR
93842019-05-08 Joel Brobecker <brobecker@adacore.com>
9385
9386 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9387 parameter and use Ada language definition instead.
9388 (ada_val_print_ptr): Remove unused language parameter.
9389 (ada_val_print_num): Remove language parameter and use Ada language
9390 definition instead.
9391 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9392 parameter.
9393 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9394 parameter and use Ada language definition instead.
9395 (ada_val_print_1): Update all ada_val_print_xxx calls.
9396 Remove language parameter.
9397 (ada_val_print): Update ada_val_print_1 call.
9398
60fcc1c3
TT
93992019-05-08 Tom Tromey <tromey@adacore.com>
9400
9401 * remote.c (remote_hw_watchpoint_limit)
9402 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9403 Now static.
9404
ed2b7c17
TT
94052019-05-08 Tom Tromey <tromey@adacore.com>
9406
9407 * maint.c (_initialize_maint_cmds): Move initialization code to
9408 remote.c.
9409 (watchdog, show_watchdog): Move to remote.c.
9410 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9411 "watchdog" static.
9412 (_initialize_remote): Move initialization code from maint.c.
9413 * defs.h (watchdog): Don't declare.
9414
b0be6c91
TT
94152019-05-08 Tom Tromey <tromey@adacore.com>
9416
9417 * tui/tui-interp.c: Include main.h.
9418 * interps.c: Include main.h.
9419 * main.h (interpreter_p): Declare.
9420 * defs.h (interpreter_p): Don't declare.
9421
587ee17b
TT
94222019-05-08 Tom Tromey <tromey@adacore.com>
9423
9424 * dwarf2loc.c: Include dwarf2read.h.
9425 * defs.h (read_unsigned_leb128): Don't declare.
9426 * dwarf2read.h (read_unsigned_leb128): Declare.
9427
ca1df239
TT
94282019-05-08 Tom Tromey <tromey@adacore.com>
9429
9430 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9431 method.
9432
99f20f08
TT
94332019-05-08 Tom Tromey <tromey@adacore.com>
9434
9435 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9436 when no wrap column is set.
9437
80e55b13
TT
94382019-05-08 Tom Tromey <tromey@adacore.com>
9439
9440 * c-lang.c (c_get_string): Handle non-C-style arrays.
9441
9d3421af
TT
94422019-05-08 Tom Tromey <tromey@adacore.com>
9443
9444 * typeprint.c (print_offset_data::update): Print the bit offset,
9445 not the number of bits remaining.
9446
844333e2
TT
94472019-05-08 Tom Tromey <tromey@adacore.com>
9448
9449 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9450 padding at end of comment.
9451
988915ee
TT
94522019-05-08 Tom Tromey <tromey@adacore.com>
9453
9454 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9455 Compare main types.
9456
26bfd823
TT
94572019-05-06 Tom Tromey <tom@tromey.com>
9458
9459 * common/scoped_mmap.c: Include common-defs.h.
9460 * common/scoped_mmap.h: Don't include config.h.
9461
89055eaa
TT
94622019-05-04 Tom Tromey <tom@tromey.com>
9463
9464 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9465 (struct aarch64_call_info): Add initializers.
9466 <si>: Now a std::vector.
9467 (pass_on_stack, aarch64_push_dummy_call): Update.
9468
5da01df5
TT
94692019-05-04 Simon Marchi <simon.marchi@efficios.com>
9470 Tom Tromey <tom@tromey.com>
9471
9472 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9473 (ppc_threads): Now a std::vector. Now static.
9474 (hwdebug_find_thread_points_by_tid)
9475 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9476 Update.
9477
fbdf05a1
TT
94782019-05-04 Tom Tromey <tom@tromey.com>
9479
9480 * arc-tdep.c (arc_tdesc_init): Return bool.
9481
06d16ec9
TT
94822019-05-04 Tom Tromey <tom@tromey.com>
9483
9484 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9485 Use gdb_assert_not_reached.
9486
9c056022
TT
94872019-05-04 Tom Tromey <tom@tromey.com>
9488
9489 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9490 "false".
9491
fa9c2a59
TT
94922019-05-04 Tom Tromey <tom@tromey.com>
9493
9494 * arc-tdep.c (arc_tdesc_init): Use bool.
9495
e2eb806a
TT
94962019-05-04 Tom Tromey <tom@tromey.com>
9497
9498 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9499
6fe87677
TT
95002019-05-04 Tom Tromey <tom@tromey.com>
9501
9502 * cli/cli-cmds.c (valid_command_p): Return bool.
9503
7f008c9e
TT
95042019-05-04 Tom Tromey <tom@tromey.com>
9505
9506 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9507 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9508
b6484282
RT
95092019-05-04 Raul Tambre <raul@tambre.ee>
9510
9511 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9512 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9513 operator for comparison.
9514
af97b416
TT
95152019-05-04 Tom Tromey <tom@tromey.com>
9516
9517 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9518 (lookup_partial_symbol, print_partial_symbols)
9519 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9520 (psymbol_compare): Update.
9521 (add_psymbol_to_bcache): Clear the entire psymbol.
9522 (maintenance_check_psymtabs): Update.
9523 * psympriv.h (struct partial_symbol): Don't derive from
9524 general_symbol_info.
9525 <obj_section, unrelocated_address, address,
9526 set_unrelocated_address>: Update.
9527 <ginfo>: New member.
9528 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9529 (debug_names::write_psymbols): Update.
9530
9d6d4be8
TV
95312019-05-04 Tom de Vries <tdevries@suse.de>
9532
9533 * contrib/cc-with-tweaks.sh: Support -n arg.
9534
66452beb
PW
95352019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9536
9537 * corelow.c (core_target::detach): Ensure frame cache and
9538 register caches are cleared.
9539 inferior.c (exit_inferior_1): Likewise.
9540
bde09ab7
TT
95412019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9542 Tom Tromey <tom@tromey.com>
9543
9544 * dictionary.c (collate_pending_symbols_by_language): Remove
9545 "struct" from foreach.
9546 * symtab.c (lookup_global_symbol_from_objfile)
9547 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9548 foreach.
9549 * ser-tcp.c (net_open): Remove "struct" from foreach.
9550 * objfiles.c (objfile_relocate, objfile_rebase)
9551 (objfile_has_symbols): Remove "struct" from foreach.
9552 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9553 from foreach.
9554 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9555 foreach.
9556 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9557 "struct" from foreach.
9558 * ada-lang.c (create_excep_cond_exprs)
9559 (ada_exception_catchpoint_cond_string): Remove "struct" from
9560 foreach.
9561
222a8d25
TT
95622019-05-03 Tom Tromey <tromey@adacore.com>
9563
9564 * ada-exp.y (convert_char_literal): Check suffix of each
9565 enumerator.
9566
fcd60b84
DP
95672019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9568
9569 PR ada/21406:
9570 * ada-exp.y (yywrap): Don't define.
9571 * ada-lex.l (%option): Add noyywrap
9572 (yywrap): Remove.
9573
5f2459c2
EZ
95742019-05-03 Eli Zaretskii <eliz@gnu.org>
9575
353ea2d1
EZ
9576 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9577 _WIN32_WINNT to the XP level, unless already defined to a higher
9578 level.
9579
9580 * unittests/parse-connection-spec-selftests.c:
9581 * ser-tcp.c:
9582 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9583 override.
9584
5f2459c2
EZ
9585 * symfile.c (find_separate_debug_file): Remove colon from the
9586 drive spec of DOS/Windows file names of the target, so that the
9587 file name produced from DEBUGDIR and the target's directory will
9588 be valid on DOS/Windows systems.
9589
80062eb9
AB
95902019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * rust-lang.c (val_print_struct): Handle printing structures
9593 containing strings.
9594
b8c05e85
TT
95952019-05-02 Tom Tromey <tromey@adacore.com>
9596
9597 * valarith.c (_initialize_valarith): Remove.
9598
4504bbde
TT
95992019-05-01 Tom Tromey <tromey@adacore.com>
9600
9601 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9602 bitfields.
9603
d48e62f4
TT
96042019-05-01 Tom Tromey <tromey@adacore.com>
9605
9606 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9607 for big-endian copies.
9608
15f18d14
AT
96092019-04-30 Ali Tamur <tamur@google.com>
9610 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9611 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9612 (read_3_bytes): New function.
9613
ab4ee614
JB
96142019-04-30 Joel Brobecker <brobecker@adacore.com>
9615
9616 * windows-nat.c (main_thread_id): Delete.
9617 (handle_output_debug_string): Replace main_thread_id by
9618 current_event.dwThreadId.
9619 (fake_create_process): Likewise.
9620 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9621 Do not set main_thread_id.
9622 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9623 current_event.dwThreadId.
9624 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9625
8ed5b76e
JB
96262019-04-30 Joel Brobecker <brobecker@adacore.com>
9627
9628 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9629 Use current_event.dwThreadId instead of main_thread_id.
9630
2ff0a947
TT
96312019-04-30 Tom Tromey <tromey@adacore.com>
9632
9633 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9634 (create_excep_cond_exprs): Iterate over program spaces.
9635 (ada_exception_catchpoint_cond_string): Examine all minimal
9636 symbols for exception types.
9637
a776957c
TT
96382019-04-30 Tom Tromey <tromey@adacore.com>
9639
9640 PR c++/24470:
9641 * dwarf2read.c (process_structure_scope): Handle case where type
9642 has template parameters but no symbol was created.
9643
bc68014d
AB
96442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9645 Chris January <chris.january@arm.com>
9646
9647 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9648 qualifier.
9649 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9650
f1fdc960
AB
96512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * f-typeprint.c (f_print_type): Update rules for printing
9654 whitespace.
9655 (f_type_print_varspec_suffix): Likewise.
9656
bf7a4de1
AB
96572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9658 Chris January <chris.january@arm.com>
9659
9660 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9661 function arguments.
9662
bbe75b9d
AB
96632019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * f-lang.c (build_fortran_types): Change name of void type to
9666 lower case.
9667 * f-typeprint.c (f_type_print_base): Print the name of the void
9668 type, rather than a fixed string.
9669 * f-valprint.c (f_decorations): Use lower case void string.
9670
1db455a7
AB
96712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9672 Chris January <chris.january@arm.com>
9673
9674 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9675 types for Fortran.
9676
b6d03bb2
AB
96772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9678 Chris January <chris.january@arm.com>
9679 David Lecomber <david.lecomber@arm.com>
9680
9681 * f-exp.y (BINOP_INTRINSIC): New token.
9682 (exp): New parser rule handling BINOP_INTRINSIC.
9683 (f77_keywords): Add new builtin procedures.
9684 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9685 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9686 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9687 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9688 (print_unop_subexp_f): New function.
9689 (print_binop_subexp_f): New function.
9690 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9691 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9692 (dump_subexp_body_f): Likewise.
9693 (operator_check_f): Likewise.
9694 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9695 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9696
83228e93
AB
96972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9698
9699 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9700 UNOP_KIND.
9701 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9702 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9703 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9704 (operator_length_f): New fuction.
9705 (print_subexp_f): New function.
9706 (op_name_f): New function.
9707 (dump_subexp_body_f): New function.
9708 (operator_check_f): New function.
9709 (exp_descriptor_f): Replace standard expression handling functions
9710 with new functions.
9711 * gdb/fortran-operator.def: New file.
9712 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9713 * gdb/std-operator.def: Remove UNOP_KIND.
9714
6fdcd7cc
AB
97152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9716
9717 * std-operator.def: Remove unbalanced, stray double quote
9718 character.
9719
2e62ab40
AB
97202019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9721 Chris January <chris.january@arm.com>
9722 Daniel Everett <daniel.everett@arm.com>
9723 Nick Forrington <nick.forrington@arm.com>
9724 Richard Bunt <richard.bunt@arm.com>
9725
9726 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9727 of depth when printing anonymous structs or unions.
9728 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9729 Don't print either the top-level value, or the children if the
9730 max-depth is exceeded.
9731 (ppscm_print_children): When printing the key of a map, allow one
9732 extra level of depth.
9733 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9734 print either the top-level value, or the children if the max-depth
9735 is exceeded.
9736 (print_children): When printing the key of a map, allow one extra
9737 level of depth.
9738 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9739 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9740 (user_print_options): Initialise max_depth field.
9741 (val_print_scalar_or_string_type_p): New function.
9742 (val_print): Check to see if the max depth has been reached.
9743 (val_print_check_max_depth): Define new function.
9744 (show_print_max_depth): New function.
9745 (_initialize_valprint): Add 'print max-depth' option.
9746 * valprint.h (struct value_print_options) <max_depth>: New field.
9747 (val_print_check_max_depth): Declare new function.
9748 * NEWS: Document new feature.
9749
4be290b2
AB
97502019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9751
9752 * ada-lang.c (ada_language_defn): Initialise new field.
9753 * c-lang.c (c_is_string_type_p): New function.
9754 (c_language_defn): Initialise new field.
9755 (cplus_language_defn): Initialise new field.
9756 (asm_language_defn): Initialise new field.
9757 (minimal_language_defn): Initialise new field.
9758 * c-lang.h (c_is_string_type_p): Declare new function.
9759 * d-lang.c (d_language_defn): Initialise new field.
9760 * f-lang.c (f_is_string_type_p): New function.
9761 (f_language_defn): Initialise new field.
9762 * go-lang.c (go_is_string_type_p): New function.
9763 (go_language_defn): Initialise new field.
9764 * language.c (default_is_string_type_p): New function.
9765 (unknown_language_defn): Initialise new field.
9766 (auto_language_defn): Initialise new field.
9767 * language.h (struct language_defn) <la_is_string_type_p>: New
9768 member variable.
9769 (default_is_string_type_p): Declare new function.
9770 * m2-lang.c (m2_language_defn): Initialise new field.
9771 * objc-lang.c (objc_language_defn): Initialise new field.
9772 * opencl-lang.c (opencl_language_defn): Initialise new field.
9773 * p-lang.c (pascal_is_string_type_p): New function.
9774 (pascal_language_defn): Initialise new field.
9775 * rust-lang.c (rust_is_string_type_p): New function.
9776 (rust_language_defn): Initialise new field.
9777
721b08c6
AB
97782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9779
9780 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9781 New field.
9782 * ada-lang.c (ada_language_defn): Initialise new field.
9783 * c-lang.c (c_language_defn): Likewise.
9784 (cplus_language_defn): Likewise.
9785 (asm_language_defn): Likewise.
9786 (minimal_language_defn): Likewise.
9787 * d-lang.c (d_language_defn): Likewise.
9788 * f-lang.c (f_language_defn): Likewise.
9789 * go-lang.c (go_language_defn): Likewise.
9790 * language.c (unknown_language_defn): Likewise.
9791 (auto_language_defn): Likewise.
9792 * m2-lang.c (m2_language_defn): Likewise.
9793 * objc-lang.c (objc_language_defn): Likewise.
9794 * opencl-lang.c (opencl_language_defn): Likewise.
9795 * p-lang.c (pascal_language_defn): Likewise.
9796 * rust-lang.c (rust_language_defn): Likewise.
9797
fc913e53
AB
97982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * ada-lang.c (ada_is_character_type): Change return type to bool.
9801 (ada_is_string_type): Likewise.
9802 * ada-lang.h (ada_is_character_type): Update declaration
9803 (ada_is_string_type): Likewise.
9804
fa731fa0
PW
98052019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9806
9807 Support style in 'frame|thread apply'
9808
9809 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9810 * record.c (record_start, record_stop): Update callers of
9811 execute_command_to_string with false.
9812 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9813 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9814 methods.
9815 (class string_file): New constructor with term_out parameter.
9816 Override methods term_out and can_emit_style_escape. New member
9817 term_out.
9818 (class stdio_file): Override can_emit_style_escape.
9819 (class tee_file): Override term_out and can_emit_style_escape.
9820 * utils.h (can_emit_style_escape): Remove.
9821 * utils.c (can_emit_style_escape): Likewise.
9822 Update all callers of can_emit_style_escape (SOMESTREAM) to
9823 SOMESTREAM->can_emit_style_escape.
9824 * source-cache.c (source_cache::get_source_lines): Likewise.
9825 * stack.c (frame_apply_command_count): Call execute_command_to_string
9826 passing the term_out characteristic of the current gdb_stdout.
9827 * thread.c (thr_try_catch_cmd): Likewise.
9828 * top.c (execute_command_to_string): pass term_out parameter
9829 to construct the string_file for the command output.
9830 * ui-file.c (term_cli_styling): New function (most code moved
9831 from utils.c can_emit_style_escape).
9832 (string_file::string_file, string_file::can_emit_style_escape,
9833 stdio_file::can_emit_style_escape, tee_file::term_out,
9834 tee_file::can_emit_style_escape): New functions.
9835
136afab8
PW
98362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9837
9838 * NEWS: Mention the new set|show may-call-functions.
9839 * infcall.c (may_call_functions_p): New variable.
9840 (show_may_call_functions_p): New function.
9841 (call_function_by_hand_dummy): Throws an error if not
9842 may-call-functions.
9843 (_initialize_infcall): Call add_setshow_boolean_cmd for
9844 may-call-functions.
9845
725cbb63
KS
98462019-04-25 Keith Seitz <keiths@redhat.com>
9847
9848 PR c++/24367
9849 * cp-support.c (inspect_type): Don't attempt substitutions
9850 of symbol with the same name.
9851
3d1cbb78
TT
98522019-04-25 Tom Tromey <tromey@adacore.com>
9853
9854 PR gdb/24475:
9855 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9856 static.
9857
94aeb44b
TT
98582019-04-25 Tom Tromey <tromey@adacore.com>
9859
9860 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9861 rvalue reference.
9862 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9863 (gdb_xml_parser::parse): Use std::move.
9864 * python/python-internal.h (gdbpy_convert_exception): Take a const
9865 reference.
9866 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9867 std::move.
9868 * python/py-utils.c (gdbpy_convert_exception): Take a const
9869 reference.
9870 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9871 Use std::move.
9872 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9873 Use std::move.
9874 * mi/mi-main.c (mi_print_exception): Take a const reference.
9875 * main.c (handle_command_errors): Take a const reference.
9876 * linespec.c (parse_linespec): Use std::move.
9877 * infcall.c (run_inferior_call): Use std::move.
9878 (call_function_by_hand_dummy): Use std::move.
9879 * exec.c (try_open_exec_file): Use std::move.
9880 * exceptions.h (exception_print, exception_fprintf)
9881 (exception_print_same): Update.
9882 * exceptions.c (print_exception, exception_print)
9883 (exception_fprintf, exception_print_same): Change parameters to
9884 const reference.
9885 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9886 * common/new-op.c: Use std::move.
9887 * common/common-exceptions.h (struct gdb_exception): Add move
9888 constructor.
9889 (struct gdb_exception_error, struct gdb_exception_quit, struct
9890 gdb_quit_bad_alloc): Change constructor to move constructor.
9891 (throw_exception): Change parameter to rvalue reference.
9892 * common/common-exceptions.c (throw_exception): Take rvalue
9893 reference.
9894 * cli/cli-interp.c (safe_execute_command): Use std::move.
9895 * breakpoint.c (insert_bp_location, location_to_sals): Use
9896 std::move.
9897
680d7fd5
TT
98982019-04-25 Tom Tromey <tromey@adacore.com>
9899
9900 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9901 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9902 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9903 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9904 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9905 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9906 guile/scm-value.c: Use unpack.
9907 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9908 gdbscm_gdb_exception.
9909 (gdbscm_throw_gdb_exception): Likewise.
9910 (struct gdbscm_gdb_exception): New.
9911 (unpack): New function.
9912 (gdbscm_wrap): Use unpack.
9913
c6fdd8b2
TT
99142019-04-25 Tom Tromey <tromey@adacore.com>
9915
9916 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9917 (gdb_rl_callback_handler): Use std::move.
9918 * common/common-exceptions.h (struct gdb_exception): Add move
9919 assignment operator.
9920 (throw_exception_sjlj): Change "exception" to const reference.
9921 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9922 (throw_exception_sjlj): Change "exception" to const reference.
9923
cc06b668
TT
99242019-04-25 Tom Tromey <tromey@adacore.com>
9925
9926 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9927 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9928 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9929 Update.
9930 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9931 Update.
9932 * mi/mi-interp.c (mi_interp::exec): Update.
9933 * linespec.c (parse_linespec): Update.
9934 * infcall.c (run_inferior_call): Update.
9935 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9936 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9937 (gdbscm_lookup_global_symbol): Update.
9938 * guile/scm-param.c (gdbscm_parameter_value): Update.
9939 * guile/scm-frame.c (gdbscm_frame_read_register)
9940 (gdbscm_frame_read_var): Update.
9941 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9942 * exec.c (try_open_exec_file): Update.
9943 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9944 (gdb_rl_callback_handler): Update.
9945 * common/common-exceptions.h (exception_none): Don't declare.
9946 * common/common-exceptions.c (exception_none): Don't define.
9947 (struct catcher) <exception>: Update.
9948 * cli/cli-interp.c (safe_execute_command): Update.
9949 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9950
cf532bd1
AT
99512019-04-25 Ali Tamur <tamur@google.com>
9952
9953 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9954 (read_attribute_value): Likewise.
9955 (dwarf2_read_addr_index): Update comment.
9956 (read_str_index): Add DW_FORM_strx.
9957 (dwarf2_string_attr): Likewise.
9958 (dwarf2_const_value_attr): Likewise.
9959 (dump_die_shallow): Likewise.
9960 (dwarf2_fetch_constant_bytes): Likewise.
9961 (skip_form_bytes): Likewise.
9962 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9963
82433e3e
SDJ
99642019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 PR corefiles/11608
9967 PR corefiles/18187
9968 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9969 OFFSET. Verify if current mapping contains an ELF header.
9970 (linux_find_memory_regions_full): Adjust call to
9971 dump_mapping_p.
9972
723adb65
SL
99732019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9974 Kang Li <kanglictf@gmail.com>
9975
9976 PR gdb/21600
9977
9978 * dwarf2-frame.c (read_initial_length): Be consistent about using
9979 unsigned representation of length.
9980 (decode_frame_entry_1): Likewise. Check for wraparound of
9981 end pointer as well as buffer overflow.
9982
596179f7
SDJ
99832019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9984
9985 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9986 "vq".
9987
a59240a4
TT
99882019-04-24 Tom Tromey <tromey@adacore.com>
9989
9990 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9991
f872fdbb
AB
99922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9993
9994 * s12z-tdep.c (s12z_unwind_pc): Delete.
9995 (s12z_unwind_sp): Delete.
9996 (s12z_gdbarch_init): Don't register deleted functions with
9997 gdbarch.
9998
b614e6f3
AB
99992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10000
10001 * rl78-tdep.c (rl78_unwind_sp): Delete.
10002 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10003
14faed38
AB
100042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10005
10006 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10007 (xstormy16_unwind_pc): Delete.
10008 (xstormy16_dummy_id): Delete.
10009 (xstormy16_gdbarch_init): Don't register deleted functions with
10010 gdbarch.
10011
541aad8a
AB
100122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10013
10014 * vax-tdep.c (vax_unwind_pc): Delete.
10015 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10016
29222070
AB
100172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10018
10019 * v850-tdep.c (v850_unwind_sp): Delete.
10020 (v850_unwind_pc): Delete.
10021 (v850_dummy_id): Delete.
10022 (v850_gdbarch_init): Don't register deleted functions with
10023 gdbarch.
10024
0f534d76
AB
100252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10026
10027 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10028 (tilegx_unwind_pc): Delete.
10029 (tilegx_unwind_dummy_id): Delete.
10030 (tilegx_gdbarch_init): Don't register deleted functions with
10031 gdbarch.
10032
1ba7b7f9
AB
100332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10034
10035 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10036 (tic6x_dummy_id): Delete.
10037 (tic6x_gdbarch_init): Don't register deleted functions with
10038 gdbarch.
10039
d31f262c
AB
100402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * sparc-tdep.c (sparc_unwind_pc): Delete.
10043 (sparc32_gdbarch_init): Don't register deleted function with
10044 gdbarch.
10045
6d14d64d
AB
100462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * sh-tdep.c (sh_unwind_sp): Delete.
10049 (sh_unwind_pc): Delete.
10050 (sh_dummy_id): Delete.
10051 (sh_gdbarch_init): Don't register deleted functions with
10052 gdbarch.
10053
a40dde9d
AB
100542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10055
10056 * score-tdep.c (score_unwind_sp): Delete.
10057 (score_unwind_pc): Delete.
10058 (score_dummy_id): Delete.
10059 (score_gdbarch_init): Don't register deleted functions with
10060 gdbarch.
10061
47c47d69
AB
100622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * rx-tdep.c (rx_unwind_pc): Delete.
10065 (rx_unwind_sp): Delete.
10066 (rx_dummy_id): Delete.
10067 (rx_gdbarch_init): Don't register deleted functions with
10068 gdbarch. Update comment.
10069
833a4480
AB
100702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10071
10072 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10073 (rs6000_dummy_id): Delete.
10074 (rs6000_gdbarch_init): Don't register deleted functions with
10075 gdbarch.
10076
3f2cef49
AB
100772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10078
10079 * or1k-tdep.c (or1k_dummy_id): Delete.
10080 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10081
96acf884
AB
100822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10083
10084 * nios2-tdep.c (nios2_dummy_id): Delete.
10085 (nios2_unwind_sp): Delete.
10086 (nios2_gdbarch_init): Don't register deleted functions with
10087 gdbarch.
10088
ca0ab0aa
AB
100892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10090
10091 * nds32-tdep.c (nds32_dummy_id): Delete.
10092 (nds32_unwind_pc): Delete.
10093 (nds32_unwind_sp): Delete.
10094 (nds32_gdbarch_init): Don't register deleted functions with
10095 gdbarch.
10096
c8259044
AB
100972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * msp430-tdep.c (msp430_unwind_pc): Delete.
10100 (msp430_unwind_sp): Delete.
10101 (msp430_dummy_id): Delete.
10102 (msp430_gdbarch_init): Don't register deleted functions with
10103 gdbarch.
10104
27f113c8
AB
101052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10106
10107 * moxie-tdep.c (moxie_unwind_sp): Delete.
10108 (moxie_unwind_pc): Delete.
10109 (moxie_dummy_id): Delete.
10110 (moxie_gdbarch_init): Don't register deleted functions with
10111 gdbarch.
10112
aee6c3cd
AB
101132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10114
10115 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10116 (mn10300_unwind_pc): Delete.
10117 (mn10300_unwind_sp): Delete.
10118 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10119 mn10300_unwind_sp.
10120 (mn10300_frame_unwind_init): Don't register deleted functions with
10121 gdbarch.
10122
8e2b5aea
AB
101232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 * mep-tdep.c (mep_unwind_pc): Delete.
10126 (mep_unwind_sp): Delete.
10127 (mep_dummy_id): Delete.
10128 (mep_gdbarch_init): Don't register deleted functions with
10129 gdbarch.
10130
43cf3ede
AB
101312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10134 (m68hc11_unwind_sp): Delete.
10135 (m68hc11_gdbarch_init): Don't register deleted functions with
10136 gdbarch.
10137
5e79b7bb
AB
101382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * m32r-tdep.c (m32r_unwind_sp): Delete.
10141 (m32r_unwind_pc): Delete.
10142 (m32r_dummy_id): Delete.
10143 (m32r_gdbarch_init): Don't register deleted functions with
10144 gdbarch.
10145
89b268d8
AB
101462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10147
10148 * m32c-tdep.c (m32c_unwind_pc): Delete.
10149 (m32c_unwind_sp): Delete.
10150 (m32c_dummy_id): Delete.
10151 (m32c_gdbarch_init): Don't register deleted functions with
10152 gdbarch.
10153
946c28d2
AB
101542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10157 (lm32_unwind_pc): Delete.
10158 (lm32_dummy_id): Delete.
10159 (lm32_gdbarch_init): Don't register deleted functions with
10160 gdbarch.
10161
bf12844a
AB
101622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10163
10164 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10165 (iq2000_unwind_pc): Delete.
10166 (iq2000_dummy_id): Delete.
10167 (iq2000_gdbarch_init): Don't register deleted functions with
10168 gdbarch.
10169
ecbc06d2
AB
101702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * nds32-tdep.c (nds32_type_align): Delete.
10173 (nds32_push_dummy_call): Use type_align instead.
10174
030197b4
AB
101752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10176
10177 * arm-tdep.c (arm_type_align): Only handle vector override case.
10178 (arm_push_dummy_call): Use type_align.
10179 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10180
b907456c
AB
101812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10184 case.
10185 (pass_on_stack): Use type_align.
10186 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10187 function.
10188
9e97ba43
TT
101892019-04-23 Tom Tromey <tromey@adacore.com>
10190
10191 * dwarf2read.c (line_header::file_name_at): Remove unused
10192 overload.
10193
6892f601
TV
101942019-04-23 Tom de Vries <tdevries@suse.de>
10195
10196 PR gdb/24438
10197 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10198 invocation.
10199
336d760d
AT
10200
102012019-03-27 Ali Tamur <tamur@google.com>
10202
10203 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10204 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10205 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10206 (dwarf_expr_context::get_addr_index): Likewise
10207 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10208 (symbol_needs_eval_context::get_addr_index): Likewise
10209 (disassemble_dwarf_expression): Add DW_OP_addrx
10210 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10211 (read_cutu_die_from_dwo): Update comment
10212 (skip_one_die): Add DW_FORM_addrx
10213 (read_attribute_value): Likewise
10214 (var_decode_location): Add DW_OP_addrx
10215 (dwarf2_const_value_attr): Add DW_FORM_addrx
10216 (dump_die_shallow): Likewise
10217 (dwarf2_fetch_constant_bytes): Likewise
10218 (decode_locdesc): Add DW_OP_addrx
10219 (skip_form_bytes): Add DW_FORM_addrx
10220
ad9d13f8
AT
102212019-04-22 Ali Tamur <tamur@google.com>
10222
10223 * MAINTAINERS (Write After Approval): Add self.
10224
d70cc3ba
SM
102252019-04-22 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10228 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10229 (open_symbol_file_object): Likewise.
10230 (svr4_default_sos): Add info parameter.
10231 (svr4_read_so_list): Likewise.
10232 (svr4_current_sos_direct): Adjust functions calls to pass down
10233 info.
10234 (svr4_current_sos_1): Add info parameter.
10235 (svr4_current_sos): Call get_svr4_info, pass info down to
10236 svr4_current_sos_1.
10237 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10238 get_svr4_info.
10239 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10240 get_svr4_info.
10241 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10242 to get_svr4_info.
10243 (probes_table_remove_objfile_probes): Likewise.
10244 (register_solib_event_probe): Add info parameter.
10245 (solist_update_incremental): Pass info parameter down to
10246 svr4_read_so_list.
10247 (disable_probes_interface): Add info parameter.
10248 (svr4_handle_solib_event): Pass current_program_space to
10249 get_svr4_info. Adjust disable_probes_interface cleanup.
10250 (svr4_create_probe_breakpoints): Add info parameter, pass it
10251 down to register_solib_event_probe.
10252 (svr4_create_solib_event_breakpoints): Add info parameter,
10253 pass it down to svr4_create_probe_breakpoints.
10254 (enable_break): Pass info down to
10255 svr4_create_solib_event_breakpoints.
10256 (svr4_solib_create_inferior_hook): Pass current_program_space to
10257 get_svr4_info.
10258 (svr4_clear_solib): Likewise.
10259
7905fc35
PA
102602019-04-22 Pedro Alves <palves@redhat.com>
10261
10262 * solib-svr4.c (svr4_free_objfile_observer): New.
10263 (probe_and_action::objfile): New field.
10264 (probes_table_htab_remove_objfile_probes)
10265 (probes_table_remove_objfile_probes): New functions.
10266 (register_solib_event_probe): Add 'objfile' parameter. Store it
10267 in the new probe_and_action. Don't store the probe in 'lookup'.
10268 (svr4_create_probe_breakpoints): Pass objfile to
10269 register_solib_event_probe.
10270 (_initialize_svr4_solib): Register a free_objfile observer.
10271
fb881986
TT
102722019-04-19 Tom Tromey <tom@tromey.com>
10273
10274 * common/queue.h: Remove.
10275
8732db6c
TT
102762019-04-19 Tom Tromey <tom@tromey.com>
10277
10278 * event-loop.c: Don't include "common/queue.h".
10279
97dfbadd
TT
102802019-04-19 Tom Tromey <tom@tromey.com>
10281
10282 * remote.c (remote_target): Use delete.
10283 * remote-notif.h: Include <list>, not "common/queue.h".
10284 (notif_client_p): Remove typedef.
10285 (remote_notif_state): Add constructor, destructor, initializer.
10286 <notif_queue>: Now a std::list.
10287 (remote_notif_state_xfree): Don't declare.
10288 * remote-notif.c (remote_notif_process, handle_notification)
10289 (remote_notif_state_allocate): Update.
10290 (~remote_notif_state): Rename from remote_notif_state_xfree.
10291
cf250e36
TT
102922019-04-19 Tom Tromey <tom@tromey.com>
10293
10294 * symfile.c (reread_symbols): Update.
10295 * objfiles.c (objfile_register_static_link)
10296 (objfile_lookup_static_link): Update
10297 (~objfile) Don't delete static_links.
10298 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10299
61f4b350
TT
103002019-04-19 Tom Tromey <tom@tromey.com>
10301
10302 * type-stack.h (struct type_stack) <insert>: Constify string.
10303 * type-stack.c (type_stack::insert): Constify string.
10304 * gdbtypes.h (lookup_template_type): Update.
10305 (address_space_name_to_int): Update.
10306 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10307 const.
10308 (lookup_template_type): Make name const.
10309 * c-exp.y: Update rules.
10310 (lex_one_token, classify_name, classify_inner_name)
10311 (c_print_token): Update.
10312 * p-exp.y: Update rules.
10313 (yylex): Update.
10314 * f-exp.y: Update rules.
10315 (yylex): Update.
10316 * d-exp.y: Update rules.
10317 (lex_one_token, classify_name, classify_inner_name): Update.
10318 * parse.c (write_dollar_variable, copy_name): Return std::string.
10319 * parser-defs.h (copy_name): Change return type.
10320 * m2-exp.y: Update rules.
10321 (yylex): Update.
10322 * go-exp.y (lex_one_token): Update.
10323 Update rules.
10324 (classify_unsafe_function, classify_packaged_name)
10325 (classify_name, yylex): Update.
10326
189b8c2e
ST
103272019-04-19 Sergei Trofimovich <siarheit@google.com>
10328
10329 * configure.ac: add --enable-source-highlight switch.
10330 * configure: Regenerate.
10331 * top.c (print_gdb_version): plumb --enable-source-highlight
10332 status to "show configuration".
10333
8ecb59f8
TT
103342019-04-19 Tom Tromey <tromey@adacore.com>
10335
10336 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10337 Check ADA_TYPE_P.
10338 (empty_record, ada_template_to_fixed_record_type_1)
10339 (template_to_static_fixed_type)
10340 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10341 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10342 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10343 macros.
10344
62160ec9
TT
103452019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10346
10347 PR symtab/24423:
10348 * source.c (print_source_lines_base): Advance "iter" when a
10349 control character is seen.
10350
f2ae8bc8
PW
103512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10352
10353 * inferior.h (struct infcall_suspend_state_deleter):
10354 Catch exception in destructor to avoid crash.
10355
d563b953
PW
103562019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10357
10358 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10359 close to the add_com "shell".
10360
dc34c897
TT
103612019-04-18 Tom Tromey <tromey@adacore.com>
10362
10363 * process-stratum-target.h (class process_stratum_target)
10364 <stratum>: Add "final".
10365
a12e5744
TT
103662019-04-17 Tom Tromey <tromey@adacore.com>
10367
10368 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10369 against nullptr before use.
10370
a7e559cc
AH
103712019-04-17 Alan Hayward <alan.hayward@arm.com>
10372
10373 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10374
c01660c6
AB
103752019-04-17 Jim Wilson <jimw@sifive.com>
10376 Andrew Burgess <andrew.burgess@embecosm.com>
10377
10378 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10379 code read might fail, assume 4-byte breakpoint in that case.
10380
4aa866af
LS
103812019-04-15 Leszek Swirski <leszeks@google.com>
10382
10383 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10384 rather than a hand-rolled POD check when checking for forced MEMORY
10385 classification.
10386
48574d91
AH
103872019-04-15 Alan Hayward <alan.hayward@arm.com>
10388
10389 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10390 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10391 function.
10392 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10393 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10394 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10395 declaration.
10396
4da037ef
AH
103972019-04-15 Alan Hayward <alan.hayward@arm.com>
10398
10399 * aarch64-linux-nat.c
10400 (aarch64_linux_nat_target::thread_architecture): Add override.
10401 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10402 each VQ.
10403
ccb8d7e8
AH
104042019-04-15 Alan Hayward <alan.hayward@arm.com>
10405
10406 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10407
35add35e
AB
104082019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10409
10410 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10411 target types of size 96-bits, add some additional comments, and
10412 check that the builtin type we found was the correct size.
10413
51196bbc
EZ
104142019-04-12 Eli Zaretskii <eliz@gnu.org>
10415
10416 * utils.c (prompt_for_continue): Don't restore the styling at the
10417 end, as applied_style has the wrong value. This fixes styling in
10418 long lists of file names that are interrupted by the "Continue?"
10419 prompt.
10420
62253a61
AB
104212019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10422
10423 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10424 * c-lang.c (c_language_defn): Likewise.
10425 (cplus_language_defn): Likewise.
10426 (asm_language_defn): Likewise.
10427 (minimal_language_defn): Likewise.
10428 * d-lang.c (d_language_defn): Likewise.
10429 * f-lang.c (f_language_defn): Likewise.
10430 * go-lang.c (go_language_defn): Likewise.
10431 * language.c (unknown_language_defn): Likewise.
10432 (auto_language_defn): Likewise.
10433 * language.h (struct language_defn): Remove la_magic field.
10434 (LANG_MAGIC): Delete.
10435 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10436 * objc-lang.c (objc_language_defn): Likewise.
10437 * opencl-lang.c (opencl_language_defn): Likewise.
10438 * p-lang.c (pascal_language_defn): Likewise.
10439 * rust-lang.c (rust_language_defn): Likewise.
10440
a9158a86
AB
104412019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * riscv-tdep.c (riscv_type_align): New function.
10444 (riscv_type_alignment): Delete.
10445 (riscv_arg_location): Use 'type_align'.
10446 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10447
41077b66
AB
104482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10449
10450 * gdbtypes.c (type_align): A struct with no non-static fields also
10451 has alignment of 1.
10452
9f0272f8
AB
104532019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10456 component to 0.
10457 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10458 member.
10459 (riscv_struct_info::analyse): New implementation using new
10460 analyse_inner member function.
10461 (riscv_struct_info::field_offset): New member function.
10462 (riscv_struct_info::m_offsets): New member variable.
10463 (riscv_struct_info::analyse_inner): New private member function,
10464 takes the old implementation of riscv_struct_info::analyse but
10465 extended to track field offsets.
10466 (riscv_call_arg_struct): Update the struct folding special cases
10467 to handle cases where empty C++ structs, which are non-zero
10468 length, are found.
10469 (riscv_arg_location): Initialise the length of each location, a
10470 non-zero length now indicates the location is in use.
10471 (riscv_push_dummy_call): Allow for the first location having a
10472 non-zero offset when setting up arguments.
10473 (riscv_return_value): Likewise, but for return values.
10474
02cf60c7
TT
104752019-04-11 Tom Tromey <tromey@adacore.com>
10476
10477 * utils.c (internal_vproblem): Make "msg" const.
10478
68811f8f
AH
104792019-04-11 Alan Hayward <alan.hayward@arm.com>
10480
10481 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10482 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10483 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10484 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10485
3f52fdbc
KB
104862019-04-10 Kevin Buettner <kevinb@redhat.com>
10487
10488 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10489 function.
10490 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10491 of amd64_collect_native_gregset.
10492 (amd64_linux_nat_target::store_registers): Likewise.
10493
e9ad22ee
TT
104942019-04-10 Tom Tromey <tom@tromey.com>
10495
10496 * symtab.c (lookup_global_symbol_from_objfile)
10497 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10498 * objfiles.h (class separate_debug_iterator): New.
10499 (class separate_debug_range): New.
10500 (struct objfile) <separate_debug_objfiles>: New method.
10501 (objfile_separate_debug_iterate): Don't declare.
10502 * objfiles.c (separate_debug_iterator::operator++): Rename from
10503 objfile_separate_debug_iterate.
10504 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10505 iterator.
10506 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10507 iterator.
10508
ee371134
TT
105092019-04-10 Tom Tromey <tom@tromey.com>
10510
10511 * symfile.c (reread_symbols): Remove old comment.
10512 * objfiles.c (free_all_objfiles): Fix a typo.
10513
bf227d61
TT
105142019-04-10 Tom Tromey <tom@tromey.com>
10515
10516 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10517 * minsyms.c (lookup_minimal_symbol): Use foreach.
10518 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10519 (lookup_minimal_symbol_solib_trampoline): Likewise.
10520 * symfile.c (reread_symbols): Use foreach.
10521
8dc433a0
TT
105222019-04-09 Ivan Begert <ivanbegert@gmail.com>
10523 Tom Tromey <tromey@adacore.com>
10524
10525 PR rust/24414:
10526 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10527 (rust_lex_int_test): Change "value" to be LONGEST.
10528 (rust_lex_tests): Add test for long integer literal.
10529
9ab8741a
TT
105302019-04-09 Tom Tromey <tromey@adacore.com>
10531
10532 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10533 to bool.
10534 (extended_remote_target::attach): Update.
10535 (remote_target::remote_notice_new_inferior): Update.
10536 (remote_target::add_current_inferior_and_thread): Update.
10537 * inferior.c (exit_inferior_1): Use "false".
10538 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10539
e242fd12
SM
105402019-04-09 Simon Marchi <simon.marchi@efficios.com>
10541
9ca1957f 10542 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10543 the "start" command.
10544
2b0c8b01
KB
105452019-04-08 Kevin Buettner <kevinb@redhat.com>
10546
10547 * python/py-inferior.c (infpy_thread_from_thread_handle):
10548 Adjust comments to reflect renaming of thread_from_thread_handle
10549 to thread_from_handle. Adjust keywords. Fix type error message.
10550 (inferior_object_methods): Add thread_from_handle. Retain
10551 thread_from_thread_handle, but mark it as deprecated.
10552
50a82723
KB
105532019-04-08 Kevin Buettner <kevinb@redhat.com>
10554
10555 * gdbthread.h (find_thread_by_handle): Revise declaration.
10556 * thread.c (find_thread_by_handle): Likewise. Adjust
10557 implementation too.
10558 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10559 support for buffer objects as handles.
10560
cf63b016
KB
105612019-04-08 Kevin Buettner <kevinb@redhat.com>
10562
10563 * python/py-infthread.c (thpy_thread_handle): New function.
10564 (thread_object_methods): Register thpy_thread_handle.
10565
3d6c6204
KB
105662019-04-08 Kevin Buettner <kevinb@redhat.com>
10567
10568 * gdbthread.h (thread_to_thread_handle): Declare.
10569 * thread.c (gdbtypes.h): Include.
10570 (thread_to_thread_handle): New function.
10571
10572 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10573 (target_thread_info_to_thread_handle): Declare.
10574 * target.c (target_thread_info_to_thread_handle): New function.
10575 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10576 * target-delegates.c: Regenerate.
10577
10578 * linux-thread-db.c (class thread_db_target): Add method
10579 thread_info_to_thread_handle.
10580 (thread_db_target::thread_info_to_thread_handle): Define.
10581 * remote.c (class remote_target): Add new method
10582 thread_info_to_thread_handle.
10583 (remote_target::thread_info_to_thread_handle): Define.
10584
56be6ea8
PA
105852019-04-08 Pedro Alves <palves@redhat.com>
10586
10587 * common/common-exceptions.c (throw_exception): Don't create
10588 named object to throw; throw directly.
10589 (throw_it): Likewise. Don't initialize gdb_exception::message
10590 here, with new; pass FMT and AP to the ctor instead.
10591 * common/common-exceptions.h: Include <string>.
10592 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10593 const char *, va_list)): New ctor. Use std::make_shared.
10594 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10595 errors)): Delete.
10596 (gdb_exception_error::gdb_exception_error(enum errors, const char
10597 *, va_list)): New.
10598 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10599 Add assertion.
10600 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10601 errors)): Delete.
10602 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10603 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10604 Add assertion.
10605
eedc3f4f
TT
106062019-04-08 Tom Tromey <tom@tromey.com>
10607
10608 * valops.c (value_rtti_indirect_type): Replace throw_exception
10609 with throw.
10610 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10611 with throw.
10612 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10613 throw.
10614 * target.c (target_translate_tls_address): Replace throw_exception
10615 with throw.
10616 * stack.c (frame_apply_command_count): Replace throw_exception
10617 with throw.
10618 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10619 throw.
10620 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10621 with throw.
10622 * rs6000-tdep.c (rs6000_frame_cache)
10623 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10624 * remote.c: Replace throw_exception with throw.
10625 * record-full.c (record_full_message, record_full_wait_1)
10626 (record_full_restore): Replace throw_exception with throw.
10627 * record-btrace.c:
10628 (get_thread_current_frame_id, record_btrace_start_replaying)
10629 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10630 (cmd_record_btrace_start): Replace throw_exception with throw.
10631 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10632 throw.
10633 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10634 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10635 * linespec.c:
10636 (find_linespec_symbols): Replace throw_exception with throw.
10637 * infrun.c (displaced_step_prepare, resume): Replace
10638 throw_exception with throw.
10639 * infcmd.c (post_create_inferior): Replace throw_exception with
10640 throw.
10641 * inf-loop.c (inferior_event_handler): Replace throw_exception
10642 with throw.
10643 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10644 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10645 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10646 (get_prev_frame_always, get_frame_pc_if_available)
10647 (get_frame_address_in_block_if_available, get_frame_language):
10648 Replace throw_exception with throw.
10649 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10650 throw_exception with throw.
10651 * eval.c (fetch_subexp_value, evaluate_var_value)
10652 (evaluate_funcall, evaluate_subexp_standard): Replace
10653 throw_exception with throw.
10654 * dwarf2loc.c (call_site_find_chain)
10655 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10656 Replace throw_exception with throw.
10657 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10658 with throw.
10659 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10660 throw.
10661 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10662 * completer.c (complete_line_internal): Replace throw_exception
10663 with throw.
10664 * compile/compile-object-run.c (compile_object_run): Replace
10665 throw_exception with throw.
10666 * cli/cli-script.c (process_next_line): Replace throw_exception
10667 with throw.
10668 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10669 (btrace_enable, btrace_maint_update_pt_packets): Replace
10670 throw_exception with throw.
10671 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10672 throw_exception with throw.
10673 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10674 throw_exception with throw.
10675 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10676 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10677 * aarch64-tdep.c (aarch64_make_prologue_cache)
10678 (aarch64_make_stub_cache): Replace throw_exception with throw.
10679
26003a20
TT
106802019-04-08 Tom Tromey <tom@tromey.com>
10681
10682 * common/common-exceptions.c (throw_exception): Rename from
10683 throw_exception_cxx. Remove old copy. Make argument const.
10684 (throw_it): Create and throw exception objects directly.
10685 * common/common-exceptions.h (throw_exception): Make argument
10686 const.
10687 (struct gdb_exception_error): Add constructor.
10688 (struct gdb_exception_quit): Add constructor.
10689
d272eb37
TT
106902019-04-08 Tom Tromey <tom@tromey.com>
10691
10692 * common/common-exceptions.h (exception_rethrow): Don't declare.
10693 (TRY_SJLJ): Update comment.
10694 (TRY, CATCH, END_CATCH): Remove.
10695 * common/common-exceptions.c (exception_rethrow): Remove.
10696
230d2906
TT
106972019-04-08 Tom Tromey <tom@tromey.com>
10698
10699 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10700 Remove.
10701 (gdb_exception_error): Rename from
10702 gdb_exception_RETURN_MASK_ERROR.
10703 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10704 (gdb_quit_bad_alloc): Update.
10705 * aarch64-tdep.c: Update.
10706 * ada-lang.c: Update.
10707 * ada-typeprint.c: Update.
10708 * ada-valprint.c: Update.
10709 * amd64-tdep.c: Update.
10710 * arch-utils.c: Update.
10711 * break-catch-throw.c: Update.
10712 * breakpoint.c: Update.
10713 * btrace.c: Update.
10714 * c-varobj.c: Update.
10715 * cli/cli-cmds.c: Update.
10716 * cli/cli-interp.c: Update.
10717 * cli/cli-script.c: Update.
10718 * common/common-exceptions.c: Update.
10719 * common/new-op.c: Update.
10720 * common/selftest.c: Update.
10721 * compile/compile-c-symbols.c: Update.
10722 * compile/compile-cplus-symbols.c: Update.
10723 * compile/compile-object-load.c: Update.
10724 * compile/compile-object-run.c: Update.
10725 * completer.c: Update.
10726 * corelow.c: Update.
10727 * cp-abi.c: Update.
10728 * cp-support.c: Update.
10729 * cp-valprint.c: Update.
10730 * darwin-nat.c: Update.
10731 * disasm-selftests.c: Update.
10732 * dtrace-probe.c: Update.
10733 * dwarf-index-cache.c: Update.
10734 * dwarf-index-write.c: Update.
10735 * dwarf2-frame-tailcall.c: Update.
10736 * dwarf2-frame.c: Update.
10737 * dwarf2loc.c: Update.
10738 * dwarf2read.c: Update.
10739 * eval.c: Update.
10740 * event-loop.c: Update.
10741 * event-top.c: Update.
10742 * exec.c: Update.
10743 * f-valprint.c: Update.
10744 * fbsd-tdep.c: Update.
10745 * frame-unwind.c: Update.
10746 * frame.c: Update.
10747 * gdbtypes.c: Update.
10748 * gnu-v3-abi.c: Update.
10749 * guile/guile-internal.h: Update.
10750 * guile/scm-block.c: Update.
10751 * guile/scm-breakpoint.c: Update.
10752 * guile/scm-cmd.c: Update.
10753 * guile/scm-disasm.c: Update.
10754 * guile/scm-frame.c: Update.
10755 * guile/scm-lazy-string.c: Update.
10756 * guile/scm-math.c: Update.
10757 * guile/scm-param.c: Update.
10758 * guile/scm-ports.c: Update.
10759 * guile/scm-pretty-print.c: Update.
10760 * guile/scm-symbol.c: Update.
10761 * guile/scm-symtab.c: Update.
10762 * guile/scm-type.c: Update.
10763 * guile/scm-value.c: Update.
10764 * i386-linux-tdep.c: Update.
10765 * i386-tdep.c: Update.
10766 * inf-loop.c: Update.
10767 * infcall.c: Update.
10768 * infcmd.c: Update.
10769 * infrun.c: Update.
10770 * jit.c: Update.
10771 * language.c: Update.
10772 * linespec.c: Update.
10773 * linux-fork.c: Update.
10774 * linux-nat.c: Update.
10775 * linux-tdep.c: Update.
10776 * linux-thread-db.c: Update.
10777 * main.c: Update.
10778 * mi/mi-cmd-break.c: Update.
10779 * mi/mi-cmd-stack.c: Update.
10780 * mi/mi-interp.c: Update.
10781 * mi/mi-main.c: Update.
10782 * objc-lang.c: Update.
10783 * p-valprint.c: Update.
10784 * parse.c: Update.
10785 * ppc-linux-tdep.c: Update.
10786 * printcmd.c: Update.
10787 * python/py-arch.c: Update.
10788 * python/py-breakpoint.c: Update.
10789 * python/py-cmd.c: Update.
10790 * python/py-finishbreakpoint.c: Update.
10791 * python/py-frame.c: Update.
10792 * python/py-framefilter.c: Update.
10793 * python/py-gdb-readline.c: Update.
10794 * python/py-inferior.c: Update.
10795 * python/py-infthread.c: Update.
10796 * python/py-lazy-string.c: Update.
10797 * python/py-linetable.c: Update.
10798 * python/py-objfile.c: Update.
10799 * python/py-param.c: Update.
10800 * python/py-prettyprint.c: Update.
10801 * python/py-progspace.c: Update.
10802 * python/py-record-btrace.c: Update.
10803 * python/py-record.c: Update.
10804 * python/py-symbol.c: Update.
10805 * python/py-type.c: Update.
10806 * python/py-unwind.c: Update.
10807 * python/py-utils.c: Update.
10808 * python/py-value.c: Update.
10809 * python/python.c: Update.
10810 * record-btrace.c: Update.
10811 * record-full.c: Update.
10812 * remote-fileio.c: Update.
10813 * remote.c: Update.
10814 * riscv-tdep.c: Update.
10815 * rs6000-aix-tdep.c: Update.
10816 * rs6000-tdep.c: Update.
10817 * rust-exp.y: Update.
10818 * rust-lang.c: Update.
10819 * s390-tdep.c: Update.
10820 * selftest-arch.c: Update.
10821 * solib-dsbt.c: Update.
10822 * solib-frv.c: Update.
10823 * solib-spu.c: Update.
10824 * solib-svr4.c: Update.
10825 * solib.c: Update.
10826 * sparc64-linux-tdep.c: Update.
10827 * stack.c: Update.
10828 * symfile-mem.c: Update.
10829 * symmisc.c: Update.
10830 * target.c: Update.
10831 * thread.c: Update.
10832 * top.c: Update.
10833 * tracefile-tfile.c: Update.
10834 * tui/tui.c: Update.
10835 * typeprint.c: Update.
10836 * unittests/cli-utils-selftests.c: Update.
10837 * unittests/parse-connection-spec-selftests.c: Update.
10838 * valops.c: Update.
10839 * valprint.c: Update.
10840 * value.c: Update.
10841 * varobj.c: Update.
10842 * windows-nat.c: Update.
10843 * x86-linux-nat.c: Update.
10844 * xml-support.c: Update.
10845
a70b8144
TT
108462019-04-08 Tom Tromey <tom@tromey.com>
10847
10848 * xml-support.c: Use C++ exception handling.
10849 * x86-linux-nat.c: Use C++ exception handling.
10850 * windows-nat.c: Use C++ exception handling.
10851 * varobj.c: Use C++ exception handling.
10852 * value.c: Use C++ exception handling.
10853 * valprint.c: Use C++ exception handling.
10854 * valops.c: Use C++ exception handling.
10855 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10856 handling.
10857 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10858 * typeprint.c: Use C++ exception handling.
10859 * tui/tui.c: Use C++ exception handling.
10860 * tracefile-tfile.c: Use C++ exception handling.
10861 * top.c: Use C++ exception handling.
10862 * thread.c: Use C++ exception handling.
10863 * target.c: Use C++ exception handling.
10864 * symmisc.c: Use C++ exception handling.
10865 * symfile-mem.c: Use C++ exception handling.
10866 * stack.c: Use C++ exception handling.
10867 * sparc64-linux-tdep.c: Use C++ exception handling.
10868 * solib.c: Use C++ exception handling.
10869 * solib-svr4.c: Use C++ exception handling.
10870 * solib-spu.c: Use C++ exception handling.
10871 * solib-frv.c: Use C++ exception handling.
10872 * solib-dsbt.c: Use C++ exception handling.
10873 * selftest-arch.c: Use C++ exception handling.
10874 * s390-tdep.c: Use C++ exception handling.
10875 * rust-lang.c: Use C++ exception handling.
10876 * rust-exp.y: Use C++ exception handling.
10877 * rs6000-tdep.c: Use C++ exception handling.
10878 * rs6000-aix-tdep.c: Use C++ exception handling.
10879 * riscv-tdep.c: Use C++ exception handling.
10880 * remote.c: Use C++ exception handling.
10881 * remote-fileio.c: Use C++ exception handling.
10882 * record-full.c: Use C++ exception handling.
10883 * record-btrace.c: Use C++ exception handling.
10884 * python/python.c: Use C++ exception handling.
10885 * python/py-value.c: Use C++ exception handling.
10886 * python/py-utils.c: Use C++ exception handling.
10887 * python/py-unwind.c: Use C++ exception handling.
10888 * python/py-type.c: Use C++ exception handling.
10889 * python/py-symbol.c: Use C++ exception handling.
10890 * python/py-record.c: Use C++ exception handling.
10891 * python/py-record-btrace.c: Use C++ exception handling.
10892 * python/py-progspace.c: Use C++ exception handling.
10893 * python/py-prettyprint.c: Use C++ exception handling.
10894 * python/py-param.c: Use C++ exception handling.
10895 * python/py-objfile.c: Use C++ exception handling.
10896 * python/py-linetable.c: Use C++ exception handling.
10897 * python/py-lazy-string.c: Use C++ exception handling.
10898 * python/py-infthread.c: Use C++ exception handling.
10899 * python/py-inferior.c: Use C++ exception handling.
10900 * python/py-gdb-readline.c: Use C++ exception handling.
10901 * python/py-framefilter.c: Use C++ exception handling.
10902 * python/py-frame.c: Use C++ exception handling.
10903 * python/py-finishbreakpoint.c: Use C++ exception handling.
10904 * python/py-cmd.c: Use C++ exception handling.
10905 * python/py-breakpoint.c: Use C++ exception handling.
10906 * python/py-arch.c: Use C++ exception handling.
10907 * printcmd.c: Use C++ exception handling.
10908 * ppc-linux-tdep.c: Use C++ exception handling.
10909 * parse.c: Use C++ exception handling.
10910 * p-valprint.c: Use C++ exception handling.
10911 * objc-lang.c: Use C++ exception handling.
10912 * mi/mi-main.c: Use C++ exception handling.
10913 * mi/mi-interp.c: Use C++ exception handling.
10914 * mi/mi-cmd-stack.c: Use C++ exception handling.
10915 * mi/mi-cmd-break.c: Use C++ exception handling.
10916 * main.c: Use C++ exception handling.
10917 * linux-thread-db.c: Use C++ exception handling.
10918 * linux-tdep.c: Use C++ exception handling.
10919 * linux-nat.c: Use C++ exception handling.
10920 * linux-fork.c: Use C++ exception handling.
10921 * linespec.c: Use C++ exception handling.
10922 * language.c: Use C++ exception handling.
10923 * jit.c: Use C++ exception handling.
10924 * infrun.c: Use C++ exception handling.
10925 * infcmd.c: Use C++ exception handling.
10926 * infcall.c: Use C++ exception handling.
10927 * inf-loop.c: Use C++ exception handling.
10928 * i386-tdep.c: Use C++ exception handling.
10929 * i386-linux-tdep.c: Use C++ exception handling.
10930 * guile/scm-value.c: Use C++ exception handling.
10931 * guile/scm-type.c: Use C++ exception handling.
10932 * guile/scm-symtab.c: Use C++ exception handling.
10933 * guile/scm-symbol.c: Use C++ exception handling.
10934 * guile/scm-pretty-print.c: Use C++ exception handling.
10935 * guile/scm-ports.c: Use C++ exception handling.
10936 * guile/scm-param.c: Use C++ exception handling.
10937 * guile/scm-math.c: Use C++ exception handling.
10938 * guile/scm-lazy-string.c: Use C++ exception handling.
10939 * guile/scm-frame.c: Use C++ exception handling.
10940 * guile/scm-disasm.c: Use C++ exception handling.
10941 * guile/scm-cmd.c: Use C++ exception handling.
10942 * guile/scm-breakpoint.c: Use C++ exception handling.
10943 * guile/scm-block.c: Use C++ exception handling.
10944 * guile/guile-internal.h: Use C++ exception handling.
10945 * gnu-v3-abi.c: Use C++ exception handling.
10946 * gdbtypes.c: Use C++ exception handling.
10947 * frame.c: Use C++ exception handling.
10948 * frame-unwind.c: Use C++ exception handling.
10949 * fbsd-tdep.c: Use C++ exception handling.
10950 * f-valprint.c: Use C++ exception handling.
10951 * exec.c: Use C++ exception handling.
10952 * event-top.c: Use C++ exception handling.
10953 * event-loop.c: Use C++ exception handling.
10954 * eval.c: Use C++ exception handling.
10955 * dwarf2read.c: Use C++ exception handling.
10956 * dwarf2loc.c: Use C++ exception handling.
10957 * dwarf2-frame.c: Use C++ exception handling.
10958 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10959 * dwarf-index-write.c: Use C++ exception handling.
10960 * dwarf-index-cache.c: Use C++ exception handling.
10961 * dtrace-probe.c: Use C++ exception handling.
10962 * disasm-selftests.c: Use C++ exception handling.
10963 * darwin-nat.c: Use C++ exception handling.
10964 * cp-valprint.c: Use C++ exception handling.
10965 * cp-support.c: Use C++ exception handling.
10966 * cp-abi.c: Use C++ exception handling.
10967 * corelow.c: Use C++ exception handling.
10968 * completer.c: Use C++ exception handling.
10969 * compile/compile-object-run.c: Use C++ exception handling.
10970 * compile/compile-object-load.c: Use C++ exception handling.
10971 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10972 * compile/compile-c-symbols.c: Use C++ exception handling.
10973 * common/selftest.c: Use C++ exception handling.
10974 * common/new-op.c: Use C++ exception handling.
10975 * cli/cli-script.c: Use C++ exception handling.
10976 * cli/cli-interp.c: Use C++ exception handling.
10977 * cli/cli-cmds.c: Use C++ exception handling.
10978 * c-varobj.c: Use C++ exception handling.
10979 * btrace.c: Use C++ exception handling.
10980 * breakpoint.c: Use C++ exception handling.
10981 * break-catch-throw.c: Use C++ exception handling.
10982 * arch-utils.c: Use C++ exception handling.
10983 * amd64-tdep.c: Use C++ exception handling.
10984 * ada-valprint.c: Use C++ exception handling.
10985 * ada-typeprint.c: Use C++ exception handling.
10986 * ada-lang.c: Use C++ exception handling.
10987 * aarch64-tdep.c: Use C++ exception handling.
10988
3d6e9d23
TT
109892019-04-08 Tom Tromey <tom@tromey.com>
10990
10991 * xml-support.c (gdb_xml_parser::parse): Update.
10992 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10993 * value.c (show_convenience): Update.
10994 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10995 (test_parse_flags_qcs): Update.
10996 * thread.c (thr_try_catch_cmd): Update.
10997 * target.c (target_translate_tls_address): Update.
10998 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10999 (info_frame_command_core, frame_apply_command_count): Update.
11000 * rust-exp.y (rust_lex_exception_test): Update.
11001 * riscv-tdep.c (riscv_print_one_register_info): Update.
11002 * remote.c (remote_target::enable_btrace): Update.
11003 * record-btrace.c (record_btrace_enable_warn): Update.
11004 * python/py-utils.c (gdbpy_convert_exception): Update.
11005 * printcmd.c (do_one_display, print_variable_and_value): Update.
11006 * mi/mi-main.c (mi_print_exception): Update.
11007 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11008 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11009 * linux-nat.c (linux_nat_target::attach): Update.
11010 * linux-fork.c (class scoped_switch_fork_info): Update.
11011 * infrun.c (displaced_step_prepare): Update.
11012 * infcall.c (call_function_by_hand_dummy): Update.
11013 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11014 * gnu-v3-abi.c (print_one_vtable): Update.
11015 * frame.c (get_prev_frame_always): Update.
11016 * f-valprint.c (info_common_command_for_block): Update.
11017 * exec.c (try_open_exec_file): Update.
11018 * exceptions.c (print_exception, exception_print)
11019 (exception_fprintf, exception_print_same): Update.
11020 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11021 * dwarf-index-cache.c (index_cache::store)
11022 (index_cache::lookup_gdb_index): Update.
11023 * darwin-nat.c (maybe_cache_shell): Update.
11024 * cp-valprint.c (cp_print_value_fields): Update.
11025 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11026 (gcc_cplus_symbol_address): Update.
11027 * compile/compile-c-symbols.c (gcc_convert_symbol)
11028 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11029 * common/selftest.c: Update.
11030 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11031 a std::string.
11032 (exception_try_scope_entry, exception_try_scope_exit): Don't
11033 declare.
11034 (struct exception_try_scope): Remove.
11035 (TRY): Don't use exception_try_scope.
11036 (struct gdb_exception): Add constructor, operator=.
11037 <what>: New method.
11038 (struct gdb_exception_RETURN_MASK_ALL)
11039 (struct gdb_exception_RETURN_MASK_ERROR)
11040 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11041 (struct gdb_quit_bad_alloc): Update.
11042 * common/common-exceptions.c (exception_none): Change
11043 initializer.
11044 (struct catcher) <state, exception>: Initialize inline.
11045 <prev>: Remove member.
11046 (current_catcher): Remove.
11047 (catchers): New global.
11048 (exceptions_state_mc_init): Simplify.
11049 (catcher_pop): Remove.
11050 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11051 (try_scope_depth, exception_try_scope_entry)
11052 (exception_try_scope_exit): Remove.
11053 (throw_exception_sjlj): Update.
11054 (exception_messages, exception_messages_size): Remove.
11055 (throw_it): Simplify.
11056 (gdb_exception_sliced_copy): Remove.
11057 (throw_exception_cxx): Update.
11058 * cli/cli-script.c (script_from_file): Update.
11059 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11060 Update.
11061 * ada-valprint.c (ada_val_print): Update.
11062 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11063 (create_excep_cond_exprs): Update.
11064
c5c10118
TT
110652019-04-08 Tom Tromey <tom@tromey.com>
11066
11067 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11068 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11069 (TRY, CATCH, END_CATCH): Remove some definitions.
11070 * common/common-exceptions.c: Don't use GDB_XCPT.
11071 (catcher_list_size): Remove.
11072 (throw_exception, throw_it): Simplify.
11073
4de283e4
TT
110742019-04-05 Tom Tromey <tom@tromey.com>
11075
11076 Revert the header-sorting patch.
11077 * ft32-tdep.c: Revert.
11078 * frv-tdep.c: Revert.
11079 * frv-linux-tdep.c: Revert.
11080 * frame.c: Revert.
11081 * frame-unwind.c: Revert.
11082 * frame-base.c: Revert.
11083 * fork-child.c: Revert.
11084 * findvar.c: Revert.
11085 * findcmd.c: Revert.
11086 * filesystem.c: Revert.
11087 * filename-seen-cache.h: Revert.
11088 * filename-seen-cache.c: Revert.
11089 * fbsd-tdep.c: Revert.
11090 * fbsd-nat.h: Revert.
11091 * fbsd-nat.c: Revert.
11092 * f-valprint.c: Revert.
11093 * f-typeprint.c: Revert.
11094 * f-lang.c: Revert.
11095 * extension.h: Revert.
11096 * extension.c: Revert.
11097 * extension-priv.h: Revert.
11098 * expprint.c: Revert.
11099 * exec.h: Revert.
11100 * exec.c: Revert.
11101 * exceptions.c: Revert.
11102 * event-top.c: Revert.
11103 * event-loop.c: Revert.
11104 * eval.c: Revert.
11105 * elfread.c: Revert.
11106 * dwarf2read.h: Revert.
11107 * dwarf2read.c: Revert.
11108 * dwarf2loc.c: Revert.
11109 * dwarf2expr.h: Revert.
11110 * dwarf2expr.c: Revert.
11111 * dwarf2-frame.c: Revert.
11112 * dwarf2-frame-tailcall.c: Revert.
11113 * dwarf-index-write.h: Revert.
11114 * dwarf-index-write.c: Revert.
11115 * dwarf-index-common.c: Revert.
11116 * dwarf-index-cache.h: Revert.
11117 * dwarf-index-cache.c: Revert.
11118 * dummy-frame.c: Revert.
11119 * dtrace-probe.c: Revert.
11120 * disasm.h: Revert.
11121 * disasm.c: Revert.
11122 * disasm-selftests.c: Revert.
11123 * dictionary.c: Revert.
11124 * dicos-tdep.c: Revert.
11125 * demangle.c: Revert.
11126 * dcache.h: Revert.
11127 * dcache.c: Revert.
11128 * darwin-nat.h: Revert.
11129 * darwin-nat.c: Revert.
11130 * darwin-nat-info.c: Revert.
11131 * d-valprint.c: Revert.
11132 * d-namespace.c: Revert.
11133 * d-lang.c: Revert.
11134 * ctf.c: Revert.
11135 * csky-tdep.c: Revert.
11136 * csky-linux-tdep.c: Revert.
11137 * cris-tdep.c: Revert.
11138 * cris-linux-tdep.c: Revert.
11139 * cp-valprint.c: Revert.
11140 * cp-support.c: Revert.
11141 * cp-namespace.c: Revert.
11142 * cp-abi.c: Revert.
11143 * corelow.c: Revert.
11144 * corefile.c: Revert.
11145 * continuations.c: Revert.
11146 * completer.h: Revert.
11147 * completer.c: Revert.
11148 * complaints.c: Revert.
11149 * coffread.c: Revert.
11150 * coff-pe-read.c: Revert.
11151 * cli-out.h: Revert.
11152 * cli-out.c: Revert.
11153 * charset.c: Revert.
11154 * c-varobj.c: Revert.
11155 * c-valprint.c: Revert.
11156 * c-typeprint.c: Revert.
11157 * c-lang.c: Revert.
11158 * buildsym.c: Revert.
11159 * buildsym-legacy.c: Revert.
11160 * build-id.h: Revert.
11161 * build-id.c: Revert.
11162 * btrace.c: Revert.
11163 * bsd-uthread.c: Revert.
11164 * breakpoint.h: Revert.
11165 * breakpoint.c: Revert.
11166 * break-catch-throw.c: Revert.
11167 * break-catch-syscall.c: Revert.
11168 * break-catch-sig.c: Revert.
11169 * blockframe.c: Revert.
11170 * block.c: Revert.
11171 * bfin-tdep.c: Revert.
11172 * bfin-linux-tdep.c: Revert.
11173 * bfd-target.c: Revert.
11174 * bcache.c: Revert.
11175 * ax-general.c: Revert.
11176 * ax-gdb.h: Revert.
11177 * ax-gdb.c: Revert.
11178 * avr-tdep.c: Revert.
11179 * auxv.c: Revert.
11180 * auto-load.c: Revert.
11181 * arm-wince-tdep.c: Revert.
11182 * arm-tdep.c: Revert.
11183 * arm-symbian-tdep.c: Revert.
11184 * arm-pikeos-tdep.c: Revert.
11185 * arm-obsd-tdep.c: Revert.
11186 * arm-nbsd-tdep.c: Revert.
11187 * arm-nbsd-nat.c: Revert.
11188 * arm-linux-tdep.c: Revert.
11189 * arm-linux-nat.c: Revert.
11190 * arm-fbsd-tdep.c: Revert.
11191 * arm-fbsd-nat.c: Revert.
11192 * arm-bsd-tdep.c: Revert.
11193 * arch-utils.c: Revert.
11194 * arc-tdep.c: Revert.
11195 * arc-newlib-tdep.c: Revert.
11196 * annotate.h: Revert.
11197 * annotate.c: Revert.
11198 * amd64-windows-tdep.c: Revert.
11199 * amd64-windows-nat.c: Revert.
11200 * amd64-tdep.c: Revert.
11201 * amd64-sol2-tdep.c: Revert.
11202 * amd64-obsd-tdep.c: Revert.
11203 * amd64-obsd-nat.c: Revert.
11204 * amd64-nbsd-tdep.c: Revert.
11205 * amd64-nbsd-nat.c: Revert.
11206 * amd64-nat.c: Revert.
11207 * amd64-linux-tdep.c: Revert.
11208 * amd64-linux-nat.c: Revert.
11209 * amd64-fbsd-tdep.c: Revert.
11210 * amd64-fbsd-nat.c: Revert.
11211 * amd64-dicos-tdep.c: Revert.
11212 * amd64-darwin-tdep.c: Revert.
11213 * amd64-bsd-nat.c: Revert.
11214 * alpha-tdep.c: Revert.
11215 * alpha-obsd-tdep.c: Revert.
11216 * alpha-nbsd-tdep.c: Revert.
11217 * alpha-mdebug-tdep.c: Revert.
11218 * alpha-linux-tdep.c: Revert.
11219 * alpha-linux-nat.c: Revert.
11220 * alpha-bsd-tdep.c: Revert.
11221 * alpha-bsd-nat.c: Revert.
11222 * aix-thread.c: Revert.
11223 * agent.c: Revert.
11224 * addrmap.c: Revert.
11225 * ada-varobj.c: Revert.
11226 * ada-valprint.c: Revert.
11227 * ada-typeprint.c: Revert.
11228 * ada-tasks.c: Revert.
11229 * ada-lang.c: Revert.
11230 * aarch64-tdep.c: Revert.
11231 * aarch64-ravenscar-thread.c: Revert.
11232 * aarch64-newlib-tdep.c: Revert.
11233 * aarch64-linux-tdep.c: Revert.
11234 * aarch64-linux-nat.c: Revert.
11235 * aarch64-fbsd-tdep.c: Revert.
11236 * aarch64-fbsd-nat.c: Revert.
11237 * aarch32-linux-nat.c: Revert.
11238
d55e5aa6
TT
112392019-04-05 Tom Tromey <tom@tromey.com>
11240
11241 * ft32-tdep.c: Sort headers.
11242 * frv-tdep.c: Sort headers.
11243 * frv-linux-tdep.c: Sort headers.
11244 * frame.c: Sort headers.
11245 * frame-unwind.c: Sort headers.
11246 * frame-base.c: Sort headers.
11247 * fork-child.c: Sort headers.
11248 * findvar.c: Sort headers.
11249 * findcmd.c: Sort headers.
11250 * filesystem.c: Sort headers.
11251 * filename-seen-cache.h: Sort headers.
11252 * filename-seen-cache.c: Sort headers.
11253 * fbsd-tdep.c: Sort headers.
11254 * fbsd-nat.h: Sort headers.
11255 * fbsd-nat.c: Sort headers.
11256 * f-valprint.c: Sort headers.
11257 * f-typeprint.c: Sort headers.
11258 * f-lang.c: Sort headers.
11259 * extension.h: Sort headers.
11260 * extension.c: Sort headers.
11261 * extension-priv.h: Sort headers.
11262 * expprint.c: Sort headers.
11263 * exec.h: Sort headers.
11264 * exec.c: Sort headers.
11265 * exceptions.c: Sort headers.
11266 * event-top.c: Sort headers.
11267 * event-loop.c: Sort headers.
11268 * eval.c: Sort headers.
11269 * elfread.c: Sort headers.
11270 * dwarf2read.h: Sort headers.
11271 * dwarf2read.c: Sort headers.
11272 * dwarf2loc.c: Sort headers.
11273 * dwarf2expr.h: Sort headers.
11274 * dwarf2expr.c: Sort headers.
11275 * dwarf2-frame.c: Sort headers.
11276 * dwarf2-frame-tailcall.c: Sort headers.
11277 * dwarf-index-write.h: Sort headers.
11278 * dwarf-index-write.c: Sort headers.
11279 * dwarf-index-common.c: Sort headers.
11280 * dwarf-index-cache.h: Sort headers.
11281 * dwarf-index-cache.c: Sort headers.
11282 * dummy-frame.c: Sort headers.
11283 * dtrace-probe.c: Sort headers.
11284 * disasm.h: Sort headers.
11285 * disasm.c: Sort headers.
11286 * disasm-selftests.c: Sort headers.
11287 * dictionary.c: Sort headers.
11288 * dicos-tdep.c: Sort headers.
11289 * demangle.c: Sort headers.
11290 * dcache.h: Sort headers.
11291 * dcache.c: Sort headers.
11292 * darwin-nat.h: Sort headers.
11293 * darwin-nat.c: Sort headers.
11294 * darwin-nat-info.c: Sort headers.
11295 * d-valprint.c: Sort headers.
11296 * d-namespace.c: Sort headers.
11297 * d-lang.c: Sort headers.
11298 * ctf.c: Sort headers.
11299 * csky-tdep.c: Sort headers.
11300 * csky-linux-tdep.c: Sort headers.
11301 * cris-tdep.c: Sort headers.
11302 * cris-linux-tdep.c: Sort headers.
11303 * cp-valprint.c: Sort headers.
11304 * cp-support.c: Sort headers.
11305 * cp-namespace.c: Sort headers.
11306 * cp-abi.c: Sort headers.
11307 * corelow.c: Sort headers.
11308 * corefile.c: Sort headers.
11309 * continuations.c: Sort headers.
11310 * completer.h: Sort headers.
11311 * completer.c: Sort headers.
11312 * complaints.c: Sort headers.
11313 * coffread.c: Sort headers.
11314 * coff-pe-read.c: Sort headers.
11315 * cli-out.h: Sort headers.
11316 * cli-out.c: Sort headers.
11317 * charset.c: Sort headers.
11318 * c-varobj.c: Sort headers.
11319 * c-valprint.c: Sort headers.
11320 * c-typeprint.c: Sort headers.
11321 * c-lang.c: Sort headers.
11322 * buildsym.c: Sort headers.
11323 * buildsym-legacy.c: Sort headers.
11324 * build-id.h: Sort headers.
11325 * build-id.c: Sort headers.
11326 * btrace.c: Sort headers.
11327 * bsd-uthread.c: Sort headers.
11328 * breakpoint.h: Sort headers.
11329 * breakpoint.c: Sort headers.
11330 * break-catch-throw.c: Sort headers.
11331 * break-catch-syscall.c: Sort headers.
11332 * break-catch-sig.c: Sort headers.
11333 * blockframe.c: Sort headers.
11334 * block.c: Sort headers.
11335 * bfin-tdep.c: Sort headers.
11336 * bfin-linux-tdep.c: Sort headers.
11337 * bfd-target.c: Sort headers.
11338 * bcache.c: Sort headers.
11339 * ax-general.c: Sort headers.
11340 * ax-gdb.h: Sort headers.
11341 * ax-gdb.c: Sort headers.
11342 * avr-tdep.c: Sort headers.
11343 * auxv.c: Sort headers.
11344 * auto-load.c: Sort headers.
11345 * arm-wince-tdep.c: Sort headers.
11346 * arm-tdep.c: Sort headers.
11347 * arm-symbian-tdep.c: Sort headers.
11348 * arm-pikeos-tdep.c: Sort headers.
11349 * arm-obsd-tdep.c: Sort headers.
11350 * arm-nbsd-tdep.c: Sort headers.
11351 * arm-nbsd-nat.c: Sort headers.
11352 * arm-linux-tdep.c: Sort headers.
11353 * arm-linux-nat.c: Sort headers.
11354 * arm-fbsd-tdep.c: Sort headers.
11355 * arm-fbsd-nat.c: Sort headers.
11356 * arm-bsd-tdep.c: Sort headers.
11357 * arch-utils.c: Sort headers.
11358 * arc-tdep.c: Sort headers.
11359 * arc-newlib-tdep.c: Sort headers.
11360 * annotate.h: Sort headers.
11361 * annotate.c: Sort headers.
11362 * amd64-windows-tdep.c: Sort headers.
11363 * amd64-windows-nat.c: Sort headers.
11364 * amd64-tdep.c: Sort headers.
11365 * amd64-sol2-tdep.c: Sort headers.
11366 * amd64-obsd-tdep.c: Sort headers.
11367 * amd64-obsd-nat.c: Sort headers.
11368 * amd64-nbsd-tdep.c: Sort headers.
11369 * amd64-nbsd-nat.c: Sort headers.
11370 * amd64-nat.c: Sort headers.
11371 * amd64-linux-tdep.c: Sort headers.
11372 * amd64-linux-nat.c: Sort headers.
11373 * amd64-fbsd-tdep.c: Sort headers.
11374 * amd64-fbsd-nat.c: Sort headers.
11375 * amd64-dicos-tdep.c: Sort headers.
11376 * amd64-darwin-tdep.c: Sort headers.
11377 * amd64-bsd-nat.c: Sort headers.
11378 * alpha-tdep.c: Sort headers.
11379 * alpha-obsd-tdep.c: Sort headers.
11380 * alpha-nbsd-tdep.c: Sort headers.
11381 * alpha-mdebug-tdep.c: Sort headers.
11382 * alpha-linux-tdep.c: Sort headers.
11383 * alpha-linux-nat.c: Sort headers.
11384 * alpha-bsd-tdep.c: Sort headers.
11385 * alpha-bsd-nat.c: Sort headers.
11386 * aix-thread.c: Sort headers.
11387 * agent.c: Sort headers.
11388 * addrmap.c: Sort headers.
11389 * ada-varobj.c: Sort headers.
11390 * ada-valprint.c: Sort headers.
11391 * ada-typeprint.c: Sort headers.
11392 * ada-tasks.c: Sort headers.
11393 * ada-lang.c: Sort headers.
11394 * aarch64-tdep.c: Sort headers.
11395 * aarch64-ravenscar-thread.c: Sort headers.
11396 * aarch64-newlib-tdep.c: Sort headers.
11397 * aarch64-linux-tdep.c: Sort headers.
11398 * aarch64-linux-nat.c: Sort headers.
11399 * aarch64-fbsd-tdep.c: Sort headers.
11400 * aarch64-fbsd-nat.c: Sort headers.
11401 * aarch32-linux-nat.c: Sort headers.
11402
699bd4cf
TT
114032019-04-04 Tom Tromey <tom@tromey.com>
11404
11405 * varobj.c (varobj_create): Update.
11406 * rust-exp.y (struct rust_parser) <update_innermost_block,
11407 lookup_symbol>: New methods.
11408 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11409 Rename.
11410 (rust_parser::rust_lookup_type)
11411 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11412 * printcmd.c (display_command, do_one_display): Update.
11413 * parser-defs.h (struct parser_state) <parser_state>: Add
11414 "tracker" parameter.
11415 (block_tracker): New member.
11416 (class innermost_block_tracker) <innermost_block_tracker>: Add
11417 "types" parameter.
11418 <reset>: Remove method.
11419 (innermost_block): Don't declare.
11420 (null_post_parser): Update.
11421 * parse.c (innermost_block): Remove global.
11422 (write_dollar_variable): Update.
11423 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11424 Remove "tracker_types" parameter.
11425 (parse_expression): Add "tracker" parameter.
11426 (parse_expression_for_completion): Update.
11427 (null_post_parser): Add "tracker" parameter.
11428 * p-exp.y: Update rules.
11429 * m2-exp.y: Update rules.
11430 * language.h (struct language_defn) <la_post_parser>: Add
11431 "tracker" parameter.
11432 * go-exp.y: Update rules.
11433 * f-exp.y: Update rules.
11434 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11435 parameter.
11436 * d-exp.y: Update rules.
11437 * c-exp.y: Update rules.
11438 * breakpoint.c (set_breakpoint_condition): Create an
11439 innermost_block_tracker.
11440 (watch_command_1): Likewise.
11441 * ada-lang.c (resolve): Add "tracker" parameter.
11442 (resolve_subexp): Likewise.
11443 * ada-exp.y (write_var_from_sym): Update.
11444
dac43e32
TT
114452019-04-04 Tom Tromey <tom@tromey.com>
11446
11447 * type-stack.h: New file.
11448 * type-stack.c: New file.
11449 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11450 type-stack.h.
11451 (insert_into_type_stack, insert_type, push_type, push_type_int)
11452 (insert_type_address_space, pop_type, pop_type_int)
11453 (pop_typelist, pop_type_stack, append_type_stack)
11454 (push_type_stack, get_type_stack, push_typelist)
11455 (follow_type_instance_flags, follow_types): Don't declare.
11456 * parse.c (type_stack): Remove global.
11457 (parse_exp_in_context): Update.
11458 (insert_into_type_stack, insert_type, push_type, push_type_int)
11459 (insert_type_address_space, pop_type, pop_type_int)
11460 (pop_typelist, pop_type_stack, append_type_stack)
11461 (push_type_stack, get_type_stack, push_typelist)
11462 (follow_type_instance_flags, follow_types): Remove (moved to
11463 type-stack.c).
11464 * f-exp.y (type_stack): New global.
11465 Update rules.
11466 (push_kind_type, f_parse): Update.
11467 * d-exp.y (type_stack): New global.
11468 Update rules.
11469 (d_parse): Update.
11470 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11471 Update rules.
11472 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11473 (HFILES_NO_SRCDIR): Add type-stack.h.
11474
2a612529
TT
114752019-04-04 Tom Tromey <tom@tromey.com>
11476
11477 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11478 (rust_parser::convert_ast_to_expression, rust_parse)
11479 (rust_lex_test_completion, rust_lex_tests): Update.
11480 * parser-defs.h (struct expr_completion_state): New.
11481 (struct parser_state) <parser_state>: Add completion parameter.
11482 <mark_struct_expression, mark_completion_tag>: New methods.
11483 <parse_completion, m_completion_state>: New members.
11484 (prefixify_expression, null_post_parser): Update.
11485 (mark_struct_expression, mark_completion_tag): Don't declare.
11486 * parse.c (parse_completion, expout_last_struct)
11487 (expout_tag_completion_type, expout_completion_name): Remove
11488 globals.
11489 (parser_state::mark_struct_expression)
11490 (parser_state::mark_completion_tag): Now methods.
11491 (prefixify_expression): Add last_struct parameter.
11492 (prefixify_subexp): Likewise.
11493 (parse_exp_1): Update.
11494 (parse_exp_in_context): Add cstate parameter. Update.
11495 (parse_expression_for_completion): Create an
11496 expr_completion_state.
11497 (null_post_parser): Add "completion" parameter.
11498 * p-exp.y: Update rules.
11499 (yylex): Update.
11500 * language.h (struct language_defn) <la_post_parser>: Add
11501 "completing" parameter.
11502 * go-exp.y: Update rules.
11503 (lex_one_token): Update.
11504 * expression.h (parse_completion): Don't declare.
11505 * d-exp.y: Update rules.
11506 (lex_one_token): Update rules.
11507 * c-exp.y: Update rules.
11508 (lex_one_token): Update.
11509 * ada-lang.c (resolve): Add "parse_completion" parameter.
11510 (resolve_subexp): Likewise.
11511 (ada_resolve_function): Likewise.
11512
43476f0b
TT
115132019-04-04 Tom Tromey <tom@tromey.com>
11514
11515 * parser-defs.h (struct parser_state) <start_arglist,
11516 end_arglist>: New methods.
11517 <arglist_len, m_funcall_chain>: New members.
11518 (arglist_len, start_arglist, end_arglist): Don't declare.
11519 * parse.c (arglist_len, funcall_chain): Remove global.
11520 (start_arglist, end_arglist): Remove functions.
11521 (parse_exp_in_context): Update.
11522 * p-exp.y: Update rules.
11523 * m2-exp.y: Update rules.
11524 * go-exp.y: Update rules.
11525 * f-exp.y: Update rules.
11526 * d-exp.y: Update rules.
11527 * c-exp.y: Update rules.
11528
5776fca3
TT
115292019-04-04 Tom Tromey <tom@tromey.com>
11530
11531 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11532 lex_operator, push_back>: New methods.
11533 Update all rules.
11534 (rust_parser::lex_hex, lex_escape): Rename and update.
11535 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11536 (rust_parser::lex_operator): Rename and update.
11537 (rust_parser::lex_number, rustyylex, rustyyerror)
11538 (rust_lex_test_init, rust_lex_test_sequence)
11539 (rust_lex_test_push_back, rust_lex_tests): Update.
11540 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11541 parameter.
11542 <lexptr, prev_lexptr>: New members.
11543 (lexptr, prev_lexptr): Don't declare.
11544 * parse.c (lexptr, prev_lexptr): Remove globals.
11545 (parse_exp_in_context): Update.
11546 * p-exp.y (yylex, yyerror): Update.
11547 * m2-exp.y (parse_number, yylex, yyerror): Update.
11548 * go-exp.y (lex_one_token, yyerror): Update.
11549 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11550 * d-exp.y (lex_one_token, yyerror): Update.
11551 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11552 (lex_one_token, yyerror): Update.
11553 * ada-lex.l (YY_INPUT): Update.
11554 (rewind_to_char): Update.
11555 * ada-exp.y (yyerror): Update.
11556
8621b685
TT
115572019-04-04 Tom Tromey <tom@tromey.com>
11558
11559 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11560 * parser-defs.h (struct parser_state) <parser_state>: Add new
11561 parameter.
11562 <comma_terminates>: New member.
11563 (comma_terminates): Don't declare global.
11564 * parse.c (comma_terminates): Remove global.
11565 (parse_exp_in_context): Update.
11566 * p-exp.y (yylex): Update.
11567 * m2-exp.y (yylex): Update.
11568 * go-exp.y (lex_one_token): Update.
11569 * f-exp.y (yylex): Update.
11570 * d-exp.y (lex_one_token): Update.
11571 * c-exp.y (lex_one_token): Update.
11572 * ada-lex.l: Update.
11573
28aaf3fd
TT
115742019-04-04 Tom Tromey <tom@tromey.com>
11575
11576 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11577 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11578 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11579 * parser-defs.h (paren_depth): Don't declare.
11580 * parse.c (paren_depth): Remove global.
11581 (parse_exp_in_context): Update.
11582 * p-exp.y (paren_depth): New global.
11583 (pascal_parse): Initialize it.
11584 * m2-exp.y (paren_depth): New global.
11585 (m2_parse): Initialize it.
11586 * go-exp.y (paren_depth): New global.
11587 (go_parse): Initialize it.
11588 * f-exp.y (paren_depth): New global.
11589 (f_parse): Initialize it.
11590 * d-exp.y (paren_depth): New global.
11591 (d_parse): Initialize it.
11592 * c-exp.y (paren_depth): New global.
11593 (c_parse): Initialize it.
11594 * ada-lex.l (paren_depth): New global.
11595 (lexer_init): Initialize it.
11596
1e58a4a4
TT
115972019-04-04 Tom Tromey <tom@tromey.com>
11598
11599 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11600 (rust_parser::convert_ast_to_type)
11601 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11602 * parser-defs.h (struct parser_state) <parser_state>: Add
11603 parameters. Initialize new members.
11604 <expression_context_block, expression_context_pc>: New members.
11605 * parse.c (expression_context_block, expression_context_pc):
11606 Remove globals.
11607 (parse_exp_in_context): Update.
11608 * p-exp.y: Update all rules.
11609 (yylex): Update.
11610 * m2-exp.y: Update all rules.
11611 (yylex): Update.
11612 * go-exp.y (yylex): Update.
11613 * f-exp.y (yylex): Update.
11614 * d-exp.y: Update all rules.
11615 (yylex): Update.
11616 * c-exp.y: Update all rules.
11617 (lex_one_token, classify_name, yylex, c_parse): Update.
11618 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11619
37eedb39
TT
116202019-04-04 Tom Tromey <tom@tromey.com>
11621
11622 * gdbarch.h, gdbarch.c: Rebuild.
11623 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11624 * stap-probe.h:
11625 (struct stap_parse_info): Replace "parser_state" with
11626 "expr_builder".
11627 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11628 (parser_state): New class.
11629 * parse.c (expr_builder): Rename.
11630 (expr_builder::release): Rename.
11631 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11632 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11633 (write_exp_elt_longcst, write_exp_elt_floatcst)
11634 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11635 (write_exp_string_vector, write_exp_bitstring)
11636 (write_exp_msymbol, mark_struct_expression)
11637 (write_dollar_variable)
11638 (insert_type_address_space, increase_expout_size): Replace
11639 "parser_state" with "expr_builder".
11640 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11641 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11642 "parser_state" with "expr_builder".
11643
73923d7e
TT
116442019-04-04 Tom Tromey <tom@tromey.com>
11645
11646 * rust-exp.y: Replace "parse_language" with method call.
11647 * p-exp.y:
11648 (yylex): Replace "parse_language" with method call.
11649 * m2-exp.y:
11650 (yylex): Replace "parse_language" with method call.
11651 * go-exp.y (classify_name): Replace "parse_language" with method
11652 call.
11653 * f-exp.y (yylex): Replace "parse_language" with method call.
11654 * d-exp.y (lex_one_token): Replace "parse_language" with method
11655 call.
11656 * c-exp.y:
11657 (lex_one_token, classify_name, yylex): Replace "parse_language"
11658 with method call.
11659 * ada-exp.y (find_primitive_type, type_char)
11660 (type_system_address): Replace "parse_language" with method call.
11661
fa9f5be6
TT
116622019-04-04 Tom Tromey <tom@tromey.com>
11663
11664 * rust-exp.y: Replace "parse_gdbarch" with method call.
11665 * parse.c (write_dollar_variable, insert_type_address_space):
11666 Replace "parse_gdbarch" with method call.
11667 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11668 call.
11669 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11670 call.
11671 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11672 "parse_gdbarch" with method call.
11673 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11674 with method call.
11675 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11676 "parse_gdbarch" with method call.
11677 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11678 "parse_gdbarch" with method call.
11679 * c-exp.y (parse_type, parse_number, classify_name): Replace
11680 "parse_gdbarch" with method call.
11681 * ada-lex.l: Replace "parse_gdbarch" with method call.
11682 * ada-exp.y (parse_type, find_primitive_type, type_char)
11683 (type_system_address): Replace "parse_gdbarch" with method call.
11684
1201a264
TT
116852019-04-04 Tom Tromey <tom@tromey.com>
11686
11687 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11688 * stap-probe.c (stap_parse_argument): Update.
11689 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11690 initial_size parameter.
11691 * rust-exp.y (rust_lex_tests): Update.
11692 * parse.c (parser_state): Update.
11693 (parse_exp_in_context): Update.
11694 * parser-defs.h (struct parser_state) <parser_state>: Remove
11695 "initial_size" parameter.
11696
e3980ce2
TT
116972019-04-04 Tom Tromey <tom@tromey.com>
11698
11699 * parser-defs.h (increase_expout_size): Don't declare.
11700 * parse.c (increase_expout_size): Now static.
11701
e9f8e3f1
TS
117022019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11703
11704 * gnu-nat.c (gnu_nat_target::wait): Fix
11705 target_waitstatus_to_string call.
11706
d7df6549
AB
117072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * eval.c (evaluate_subexp_standard): Handle internal functions
11710 during Fortran function call handling.
11711
8bdc1658
AB
117122019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11713
11714 * NEWS: Mention new internal functions.
11715 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11716 (read_base_type): Use dwarf2_init_complex_target_type.
11717 * value.c (creal_internal_fn): New function.
11718 (cimag_internal_fn): New function.
11719 (_initialize_values): Register new internal functions.
11720
c29705b7
PW
117212019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11722
11723 * infrun.c (stop_all_threads): If debug_infrun, always
11724 trace the wait status after wait_one, using
11725 target_waitstatus_to_string and target_pid_to_str.
11726 (handle_inferior_event): Replace various trace of
11727 wait status kind by a single trace.
11728 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11729 wait status kind image by target_waitstatus_to_string.
11730 * target/waitstatus.c (target_waitstatus_to_string): Fix
11731 obsolete comment.
11732
05caa1d2
TT
117332019-04-01 Tom Tromey <tromey@adacore.com>
11734
11735 PR symtab/23331:
11736 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11737
9d1447e0
SDJ
117382019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11739 Pedro Alves <palves@redhat.com>
11740
11741 * top.c (quit_force): Call 'finalize_values'.
11742 * value.c (finalize_values): New function.
11743 * value.h (finalize_values): Declare.
11744
7734102d
EZ
117452019-03-30 Eli Zaretskii <eliz@gnu.org>
11746
11747 * NEWS: Announce $_gdb_major and $_gdb_minor.
11748
11749 * top.c (init_gdb_version_vars): New function.
11750 (gdb_init): Call init_gdb_version_vars.
11751
188e1fa9
TT
117522019-03-29 Tom Tromey <tromey@adacore.com>
11753
11754 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11755 help text. Remove dead code.
11756
2880242d
KS
117572019-03-29 Keith Seitz <keiths@redhat.com>
11758
11759 From Siddhesh Poyarekar:
11760 * f-lang.h (f77_get_upperbound): Return LONGEST.
11761 (f77_get_lowerbound): Likewise.
11762 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11763 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11764 print them.
11765 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11766 plongest to format print it.
11767 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11768 (f77_get_upperbound): Likewise.
11769 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11770 LOWER_BOUND to LONGEST.
11771 (f77_create_arrayprint_offset_tbl): Likewise.
11772
cc1defb1
KS
117732019-03-29 Keith Seitz <keiths@redhat.com>
11774
11775 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11776 %s/pulongest for TYPE_LENGTH instead of %d in format
11777 strings.
11778 * ada-typerint.c (ada_print_type): Likewise.
11779 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11780 * compile/compile-c-support.c (generate_register_struct): Likewise.
11781 * gdbtypes.c (recursive_dump_type): Likewise.
11782 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11783 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11784 instead of %d in format strings.
11785 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11786 to std::min to ULONGEST.
11787 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11788 instead of %d in format strings.
11789 * tracepoint.c (info_scope_command): Likewise.
11790 * typeprint.c (print_offset_data::update)
11791 (print_offset_data::finish): Likewise.
11792 * xtensa-tdep.c (xtensa_store_return_value)
11793 (xtensa_push_dummy_call): Likewise.
11794
e432ccf1
JT
117952019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11796
11797 * windows-nat.c (display_selector): Fixed format specifications
11798 for 64-bit Cygwin.
11799
65d2b333
PW
118002019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11801
11802 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11803
f489207e
SL
118042019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11805
11806 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11807 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11808 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11809 (nios2_linux_init_abi): Install it.
11810
bffa1015
AH
118112019-03-28 Alan Hayward <alan.hayward@arm.com>
11812
11813 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11814
fc96163a
AH
118152019-03-28 Alan Hayward <alan.hayward@arm.com>
11816
11817 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11818
20dc7e9b
PW
118192019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11820 Tom Tromey <tromey@adacore.com>
11821
11822 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11823
7f5331a8
JB
118242019-03-26 Joel Brobecker <brobecker@adacore.com>
11825
11826 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11827 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11828 method to compute the bounds of range types. Also print "[evaluated]"
11829 if the bounds' values come from a dynamic evaluation.
11830
18c77628
AB
118312019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11834 whitespace when pretty printing is on.
11835
53c973f2
AH
118362019-03-26 Alan Hayward <alan.hayward@arm.com>
11837
e79be6e5 11838 * ppc-linux-nat.c: Add include.
53c973f2 11839
d851aa71
AH
118402019-03-26 Alan Hayward <alan.hayward@arm.com>
11841
e79be6e5 11842 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11843
2fe7bab7
AH
118442019-03-26 Alan Hayward <alan.hayward@arm.com>
11845
e79be6e5 11846 * arm-linux-nat.c: Add include.
2fe7bab7 11847
068ef30e
SM
118482019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11849
11850 * source-cache.c (source_cache::get_source_lines): Re-read
11851 fullname after calling open_source_file.
11852
81a24d04
JB
118532019-03-25 John Baldwin <jhb@FreeBSD.org>
11854
11855 * NEWS: Mention TLS support for FreeBSD.
11856
79e7ae11
TT
118572019-03-25 Tom Tromey <tromey@adacore.com>
11858
11859 * minsyms.c (BUNCH_SIZE): Update comment.
11860 (~minimal_symbol_reader): Remove old comment.
11861 (compact_minimal_symbols): Update comment.
11862 (minimal_symbol_reader::install): Remove old comment. Update
11863 other comments.
11864
d45963c2
AH
118652019-03-25 Alan Hayward <alan.hayward@arm.com>
11866
11867 * s390-linux-nat.c: Add include.
11868
0f83012e
AH
118692019-03-25 Alan Hayward <alan.hayward@arm.com>
11870
11871 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11872 Call linux_get_hwcap.
11873 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11874 Likewise.
11875 (aarch64_linux_get_hwcap): Remove function.
11876 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11877 declaration.
11878 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11879 linux_get_hwcap.
11880 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11881 * linux-tdep.c (linux_get_hwcap): Add function.
11882 (linux_get_hwcap2): Likewise.
11883 * linux-tdep.h (linux_get_hwcap): Add declaration.
11884 (linux_get_hwcap2): Likewise.
11885 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11886 (ppc_linux_get_hwcap2): Likewise.
11887 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11888 linux_get_hwcap.
11889 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11890 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11891 (ppc_linux_nat_target::read_description): Likewise.
11892 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11893 * s390-linux-nat.c: Likewise.
11894 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11895
6640a367
TT
118962019-03-24 Tom Tromey <tom@tromey.com>
11897
11898 * ada-lang.c (standard_lookup): Simplify initialization.
11899 (ada_lookup_symbol_nonlocal): Simplify return.
11900 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11901 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11902 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11903 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11904 initialization.
11905 * solib.c (solib_global_lookup): Simplify.
11906 * symtab.c (null_block_symbol): Remove.
11907 (symbol_cache_lookup): Simplify returns.
11908 (lookup_language_this): Simplify returns.
11909 (lookup_symbol_aux): Simplify return.
11910 (lookup_local_symbol): Simplify returns.
11911 (lookup_global_symbol_from_objfile): Simplify return.
11912 (lookup_symbol_in_objfile_symtabs)
11913 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11914 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11915 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11916 * cp-namespace.c (cp_lookup_bare_symbol)
11917 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11918 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11919 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11920 (cp_lookup_symbol_via_imports): Simplify initialization.
11921 (find_symbol_in_baseclass): Likewise.
11922 * symtab.h (null_block_symbol): Remove.
11923 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11924 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11925 (d_lookup_symbol_module): Likewise.
11926 (find_symbol_in_baseclass): Simplify initialization.
11927
a930ebcd
TT
119282019-03-24 Tom Tromey <tom@tromey.com>
11929
11930 * expression.h: Don't include symtab.h.
11931 (struct block): Forward declare.
11932
582942f4
TT
119332019-03-24 Tom Tromey <tom@tromey.com>
11934
11935 * c-exp.y (typebase): Remove casts.
11936 * gdbtypes.c (lookup_unsigned_typename, )
11937 (lookup_signed_typename): Remove cast.
11938 * eval.c (parse_to_comma_and_eval): Remove cast.
11939 * parse.c (write_dollar_variable): Remove cast.
11940 * block.h (struct block) <superblock>: Now const.
11941 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11942 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11943 (map_block): Make "block" const.
11944 * symfile.h (struct quick_symbol_functions)
11945 <map_matching_symbols>: Constify block argument to "callback".
11946 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11947 const.
11948 (find_pc_sect_compunit_symtab): Make "b" const.
11949 (find_symbol_at_address): Likewise.
11950 (search_symbols): Likewise.
11951 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11952 (dw2_debug_names_lookup_symbol): Likewise.
11953 (dw2_map_matching_symbols): Update.
11954 * p-valprint.c (pascal_val_print): Remove "block".
11955 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11956 (aux_add_nonlocal_symbols): Make "block" const.
11957 (resolve_subexp): Remove cast.
11958 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11959 const.
11960 (iterate_over_file_blocks): Likewise.
11961 * f-exp.y (%union) <bval>: Remove.
11962 * coffread.c (patch_opaque_types): Make "b" const.
11963 * spu-tdep.c (spu_catch_start): Make "block" const.
11964 * c-valprint.c (print_unpacked_pointer): Remove "block".
11965 * symmisc.c (dump_symtab_1): Make "b" const.
11966 (block_depth): Make "block" const.
11967 * d-exp.y (%union) <bval>: Remove.
11968 * cp-support.h (cp_lookup_rtti_type): Update.
11969 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11970 * psymtab.c (psym_lookup_symbol): Make "block" const.
11971 (maintenance_check_psymtabs): Make "b" const.
11972 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11973 (enumerate_locals, enumerate_args): Update.
11974 * python/py-symtab.c (stpy_global_block): Make "block" const.
11975 (stpy_static_block): Likewise.
11976 * inline-frame.c (block_starting_point_at): Make "new_block"
11977 const.
11978 * block.c (find_block_in_blockvector): Make return type const.
11979 (blockvector_for_pc_sect): Make "b" const.
11980 (find_block_in_blockvector): Make "b" const.
11981
7ad417dd
TT
119822019-03-23 Tom Tromey <tom@tromey.com>
11983
11984 * varobj.c (varobj_create): Update.
11985 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11986 * printcmd.c (display_command, do_one_display): Don't reset
11987 innermost_block.
11988 * parser-defs.h (enum innermost_block_tracker_type): Move to
11989 expression.h.
11990 (innermost_block): Update comment.
11991 * parse.c (parse_exp_1): Add tracker_types parameter.
11992 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11993 tracker_types parameter. Reset innermost_block.
11994 (parse_exp_in_context): Remove.
11995 (parse_expression_for_completion): Update.
11996 * objfiles.c (~objfile): Don't reset expression_context_block or
11997 innermost_block.
11998 * expression.h (enum innermost_block_tracker_type): Move from
11999 parser-defs.h.
12000 (parse_exp_1): Add tracker_types parameter.
12001 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12002 reset innermost_block.
12003
b366c208
TT
120042019-03-23 Tom Tromey <tom@tromey.com>
12005
12006 * objfiles.h: Include bcache.h.
12007
9bb9b2f9
TT
120082019-03-23 Tom Tromey <tom@tromey.com>
12009
12010 * linespec.c (get_current_search_block): Use
12011 scoped_restore_current_language.
12012 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12013
59c28372
AH
120142019-03-22 Alan Hayward <alan.hayward@arm.com>
12015 Jiong Wang <jiong.wang@arm.com>
12016
12017 * aarch64-linux-tdep.c
12018 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12019 section.
12020 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12021
17e116a7
AH
120222019-03-22 Alan Hayward <alan.hayward@arm.com>
12023 Jiong Wang <jiong.wang@arm.com>
12024
12025 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12026 instructions.
12027 (aarch64_analyze_prologue_test): Add PACIASP test.
12028 (aarch64_prologue_prev_register): Unmask PC value.
12029
11e1b75f
AH
120302019-03-22 Alan Hayward <alan.hayward@arm.com>
12031 Jiong Wang <jiong.wang@arm.com>
12032
12033 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12034 (aarch64_dwarf2_prev_register): Unmask PC value.
12035 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12036 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12037 DW_CFA_AARCH64_negate_ra_state.
12038 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12039
34dcc7cf
AH
120402019-03-22 Alan Hayward <alan.hayward@arm.com>
12041 Jiong Wang <jiong.wang@arm.com>
12042
12043 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12044 registers.
12045 (aarch64_pseudo_register_name): Likewise.
12046 (aarch64_pseudo_register_type): Likewise.
12047 (aarch64_pseudo_register_reggroup_p): Likewise.
12048 (aarch64_gdbarch_init): Add pauth registers.
12049 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12050 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12051 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12052 (struct gdbarch_tdep): Add regnum for ra_state.
12053
1ef53e6b
AH
120542019-03-22 Alan Hayward <alan.hayward@arm.com>
12055 Jiong Wang <jiong.wang@arm.com>
12056
12057 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12058
76bed0fd
AH
120592019-03-22 Alan Hayward <alan.hayward@arm.com>
12060 Jiong Wang <jiong.wang@arm.com>
12061
12062 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12063 function.
12064 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12065 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12066 (aarch64_gdbarch_init): Add puth registers.
12067 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12068 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12069 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12070
ee4fbcfa
AH
120712019-03-22 Alan Hayward <alan.hayward@arm.com>
12072 Jiong Wang <jiong.wang@arm.com>
12073
12074 * aarch64-linux-nat.c
12075 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12076 * aarch64-linux-tdep.c
12077 (aarch64_linux_core_read_description): Likewise.
12078 (aarch64_linux_get_hwcap): New function.
12079 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12080 (aarch64_linux_get_hwcap): New declaration.
12081
6dc0ebde
AH
120822019-03-22 Alan Hayward <alan.hayward@arm.com>
12083 Jiong Wang <jiong.wang@arm.com>
12084
12085 * aarch64-linux-nat.c
12086 (aarch64_linux_nat_target::read_description): Add pauth param.
12087 * aarch64-linux-tdep.c
12088 (aarch64_linux_core_read_description): Likewise.
12089 * aarch64-tdep.c (struct target_desc): Add in pauth.
12090 (aarch64_read_description): Add pauth param.
12091 (aarch64_gdbarch_init): Likewise.
12092 * aarch64-tdep.h (aarch64_read_description): Likewise.
12093 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12094 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12095 * features/Makefile: Add new files.
12096 * features/aarch64-pauth.c: New file.
12097 * features/aarch64-pauth.xml: New file.
12098
595915c1
TT
120992019-03-20 Tom Tromey <tromey@adacore.com>
12100
12101 * infrun.c (handle_inferior_event): Rename from
12102 handle_inferior_event_1. Create a scoped_value_mark.
12103 (handle_inferior_event): Remove.
12104
4c7d57e7
TT
121052019-03-19 Tom Tromey <tromey@adacore.com>
12106
12107 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12108 * infrun.h (print_stop_event): Add "displays" parameter.
12109 * infrun.c (print_stop_event): Add "displays" parameter.
12110
cb246234
PA
121112019-03-19 Pedro Alves <palves@redhat.com>
12112
12113 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12114 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12115 to -1. Fix TABs vs spaces.
12116 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12117 * tui/tui-out.h (tui_ui_out) Add intro comments.
12118 <m_line, m_start_of_line>: In-class initialize, and add describing
12119 comment.
12120
3a0e45b2
AH
121212019-03-18 Alan Hayward <alan.hayward@arm.com>
12122
12123 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12124 variable names.
12125 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12126
5371b850
PA
121272019-03-18 Pedro Alves <palves@redhat.com>
12128 Eli Zaretskii <eliz@gnu.org>
12129
12130 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12131 m_line and m_start_of_line.
12132
b17c4cd0
EZ
121332019-03-18 Eli Zaretskii <eliz@gnu.org>
12134
12135 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12136 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12137 it returns a newline. This fixes a regression in TU mode, whereby
12138 the next line is output on the same screen line as the user input.
12139
4bd56d18
TT
121402019-03-18 Tom Tromey <tromey@adacore.com>
12141
12142 * minsyms.c (minimal_symbol_reader::install): Remove call to
12143 obstack_blank.
12144
55c10aca
PA
121452019-03-18 Pedro Alves <palves@redhat.com>
12146
12147 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12148 New globals.
12149 (apply_style): New, factored out from ...
12150 (apply_ansi_escape): ... this. Handle reverse video mode.
12151 (tui_set_reverse_mode): New function.
12152 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12153 * tui/tui-winsource.c (tui_show_source_line): Use
12154 tui_set_reverse_mode instead of setting A_STANDOUT.
12155 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12156 New setter methods.
12157
647bb750
HD
121582019-03-18 Hannes Domani <ssbssa@yahoo.de>
12159
12160 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12161 Handle tabs.
12162
bff8c71f
TT
121632019-03-18 Tom Tromey <tromey@adacore.com>
12164
12165 * ada-lang.c (empty_array): Add "high" parameter.
12166 (ada_evaluate_subexp): Update.
12167
58785d98
ST
121682019-03-17 Sergei Trofimovich <siarheit@google.com>
12169
12170 * unittests/string_view-selftests.c: Define
12171 _initialize_string_view_selftests unconditionally.
12172
d4cbef22
ВМ
121732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12174
12175 PR gdb/24350
12176 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12177
fce4c071
ВМ
121782019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12179
12180 PR gdb/24351
12181 * windows-nat.c (display_selector): Fix format specifiers.
12182
f7f0a123
EZ
121832019-03-17 Eli Zaretskii <eliz@gnu.org>
12184
12185 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12186 tui_refill_source_window instead of tui_refresh_win, to update the
12187 current execution line. This fixes redisplay of the current line
12188 when stepping through the code with "next" or "step".
12189
ab42892f
EZ
121902019-03-16 Eli Zaretskii <eliz@gnu.org>
12191
12192 * source-cache.c (source_cache::get_source_lines): Call
12193 find_source_lines to initialize s->nlines. This fixes vertical
12194 scrolling of TUI source window when the DOWN arrow is pressed.
12195
8d8c087f
PW
121962019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12197
12198 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12199 linux-thread-db.c (_initialize_thread_db): Likewise.
12200
798e1c30
EZ
122012019-03-16 Eli Zaretskii <eliz@gnu.org>
12202
12203 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12204 wclrtoeol in tui_show_source_line". This reverts changes made in
12205 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12206
eefba3da
TT
122072019-03-15 Tom Tromey <tom@tromey.com>
12208
12209 * symtab.h (struct minimal_symbol): Derive from
12210 general_symbol_info.
12211 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12212 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12213 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12214 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12215 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12216 (MSYMBOL_SEARCH_NAME): Update.
12217 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12218 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12219 * minsyms.c (minimal_symbol_reader::record_full): Update.
12220
0de2420c
TT
122212019-03-15 Tom Tromey <tom@tromey.com>
12222
12223 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12224
042d75e4
TT
122252019-03-15 Tom Tromey <tom@tromey.com>
12226
12227 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12228 unique_xmalloc_ptr.
12229 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12230 Update.
12231 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12232 (build_minimal_symbol_hash_tables)
12233 (minimal_symbol_reader::install): Update.
12234
db92718b
TT
122352019-03-15 Tom Tromey <tom@tromey.com>
12236
12237 * symtab.c (create_demangled_names_hash): Update.
12238 (symbol_set_names): Update.
12239 * objfiles.h (struct objfile_per_bfd_storage)
12240 <demangled_names_hash>: Now an htab_up.
12241 * objfiles.c (objfile_per_bfd_storage): Simplify.
12242
d6797f46
TT
122432019-03-15 Tom Tromey <tom@tromey.com>
12244
12245 * objfiles.h (struct objfile_per_bfd_storage): Declare
12246 destructor.
12247 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12248 New.
12249 (get_objfile_bfd_data): Use new. Don't initialize
12250 language_of_main.
12251 (free_objfile_per_bfd_storage): Remove.
12252 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12253
741d7538
TT
122542019-03-15 Tom Tromey <tom@tromey.com>
12255
12256 * symfile.c (reread_symbols): Update.
12257 * objfiles.c (objfile::objfile): Update.
12258 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12259 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12260 comment.
12261 (minimal_symbol_reader::install): Update.
12262 (terminate_minimal_symbol_table): Remove.
12263 * jit.c (jit_object_close_impl): Update.
12264
788c80d1
TT
122652019-03-15 Tom Tromey <tom@tromey.com>
12266
12267 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12268 initializations.
12269
1b7a07cb
TT
122702019-03-15 Tom Tromey <tom@tromey.com>
12271
12272 * objfiles.h (struct objfile_per_bfd_storage)
12273 <demangled_hash_languages>: Now a bitset.
12274 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12275 (lookup_minimal_symbol): Update.
12276
3db066bc
TT
122772019-03-15 Tom Tromey <tom@tromey.com>
12278
12279 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12280 Don't return the symbol.
12281 * coffread.c (record_minimal_symbol): Use record_full.
12282
3fff2c37
EZ
122832019-03-14 Eli Zaretskii <eliz@gnu.org>
12284
12285 The MS-Windows port of ncurses fails to switch to a color pair if
12286 one or both of the colors are the implicit default colors. This
12287 change records the default colors when TUI is initialized, and
12288 then specifies them explicitly when a color pair uses the default
12289 colors. This allows color styling in TUI mode on MS-Windows.
12290
12291 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12292 ncurses_norm_attr.
12293 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12294 colors in ncurses_norm_attr.
12295 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12296 "none", replace it with the default color recorded in
12297 ncurses_norm_attr.
12298
3b336828
TT
122992019-03-14 Tom Tromey <tromey@adacore.com>
12300
12301 * source-cache.h (class source_cache) <get_source_lines>: Return
12302 std::string.
12303 * source-cache.c (source_cache::extract_lines): Handle case where
12304 first_pos==npos. Return std::string.
12305 (source_cache::get_source_lines): Update.
12306
d085f989
TT
123072019-03-14 Tom Tromey <tromey@adacore.com>
12308
12309 * NEWS: Add item for "style sources" commands.
12310 * source-cache.c (source_cache::get_source_lines): Check
12311 source_styling.
12312 * cli/cli-style.c (source_styling): New global.
12313 (_initialize_cli_style): Add "style sources" commands.
12314 (show_style_sources): New function.
12315 * cli/cli-style.h (source_styling): Declare.
12316
6f11e682
TT
123172019-03-14 Pedro Alves <palves@redhat.com>
12318 Tom Tromey <tromey@adacore.com>
12319
12320 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12321 * tui/tui-winsource.c (tui_refill_source_window): New function,
12322 from...
12323 (tui_horizontal_source_scroll): ... here. Move some logic.
12324 * cli/cli-style.c (set_style_enabled): Notify new observable.
12325 * tui/tui-hooks.c (tui_redisplay_source): New function.
12326 (tui_attach_detach_observers): Attach or detach
12327 tui_redisplay_source.
12328 * observable.h (source_styling_changed): New observable.
12329 * observable.c: Define source_styling_changed observable.
12330
a068643d
TT
123312019-03-13 Tom Tromey <tromey@adacore.com>
12332
12333 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12334 (i386_gnu_nat_target::store_registers): Update.
12335 * target-debug.h (target_debug_print_std_string): New macro.
12336 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12337 * windows-tdep.c (display_one_tib): Update.
12338 * tui/tui-stack.c (tui_make_status_line): Update.
12339 * top.c (print_inferior_quit_action): Update.
12340 * thread.c (thr_try_catch_cmd): Update.
12341 (add_thread_with_info): Update.
12342 (thread_target_id_str): Update.
12343 (thr_try_catch_cmd): Update.
12344 (thread_command): Update.
12345 (thread_find_command): Update.
12346 * record-btrace.c (record_btrace_target::info_record)
12347 (record_btrace_resume_thread, record_btrace_target::resume)
12348 (record_btrace_cancel_resume, record_btrace_step_thread)
12349 (record_btrace_target::wait, record_btrace_target::wait)
12350 (record_btrace_target::wait, record_btrace_target::stop): Update.
12351 * progspace.c (print_program_space): Update.
12352 * process-stratum-target.c
12353 (process_stratum_target::thread_address_space): Update.
12354 * linux-fork.c (linux_fork_mourn_inferior)
12355 (detach_checkpoint_command, info_checkpoints_command)
12356 (linux_fork_context): Update.
12357 (linux_fork_detach): Update.
12358 (class scoped_switch_fork_info): Update.
12359 (delete_checkpoint_command): Update.
12360 * infrun.c (follow_fork_inferior): Update.
12361 (follow_fork_inferior): Update.
12362 (proceed_after_vfork_done): Update.
12363 (handle_vfork_child_exec_or_exit): Update.
12364 (follow_exec): Update.
12365 (displaced_step_prepare_throw): Update.
12366 (displaced_step_restore): Update.
12367 (start_step_over): Update.
12368 (resume_1): Update.
12369 (clear_proceed_status_thread): Update.
12370 (proceed): Update.
12371 (print_target_wait_results): Update.
12372 (do_target_wait): Update.
12373 (context_switch): Update.
12374 (stop_all_threads): Update.
12375 (restart_threads): Update.
12376 (finish_step_over): Update.
12377 (handle_signal_stop): Update.
12378 (switch_back_to_stepped_thread): Update.
12379 (keep_going_pass_signal): Update.
12380 (print_exited_reason): Update.
12381 (normal_stop): Update.
12382 * inferior.c (inferior_pid_to_str): Change return type.
12383 (print_selected_inferior): Update.
12384 (add_inferior): Update.
12385 (detach_inferior): Update.
12386 * dummy-frame.c (fprint_dummy_frames): Update.
12387 * dcache.c (dcache_info_1): Update.
12388 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12389 (btrace_fetch, btrace_clear): Update.
12390 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12391 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12392 type.
12393 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12394 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12395 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12396 * gdbarch.c, gdbarch.h: Rebuild.
12397 * gdbarch.sh (core_pid_to_str): Change return type.
12398 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12399 return type.
12400 (windows_nat_target::pid_to_str): Change return type.
12401 (windows_delete_thread): Update.
12402 (windows_nat_target::attach): Update.
12403 (windows_nat_target::files_info): Update.
12404 * target-delegates.c: Rebuild.
12405 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12406 return type.
12407 (sol_thread_target::pid_to_str): Change return type.
12408 * remote.c (class remote_target) <pid_to_str>: Change return
12409 type.
12410 (remote_target::pid_to_str): Change return type.
12411 (extended_remote_target::attach, remote_target::remote_stop_ns)
12412 (remote_target::remote_notif_remove_queued_reply)
12413 (remote_target::push_stop_reply, remote_target::disable_btrace):
12414 Update.
12415 (extended_remote_target::attach): Update.
12416 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12417 type.
12418 (gdbsim_target::pid_to_str): Change return type.
12419 * ravenscar-thread.c (struct ravenscar_thread_target)
12420 <pid_to_str>: Change return type.
12421 (ravenscar_thread_target::pid_to_str): Change return type.
12422 * procfs.c (class procfs_target) <pid_to_str>: Change return
12423 type.
12424 (procfs_target::pid_to_str): Change return type.
12425 (procfs_target::attach): Update.
12426 (procfs_target::detach): Update.
12427 (procfs_target::fetch_registers): Update.
12428 (procfs_target::store_registers): Update.
12429 (procfs_target::wait): Update.
12430 (procfs_target::files_info): Update.
12431 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12432 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12433 return type.
12434 (nto_procfs_target::pid_to_str): Change return type.
12435 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12436 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12437 return type.
12438 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12439 (exit_lwp): Update.
12440 (attach_proc_task_lwp_callback, get_detach_signal)
12441 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12442 (linux_nat_target::resume, wait_lwp, stop_callback)
12443 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12444 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12445 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12446 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12447 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12448 type.
12449 (inf_ptrace_target::attach): Update.
12450 (inf_ptrace_target::files_info): Update.
12451 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12452 type.
12453 (go32_nat_target::pid_to_str): Change return type.
12454 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12455 (gnu_nat_target::wait): Update.
12456 (gnu_nat_target::wait): Update.
12457 (gnu_nat_target::resume): Update.
12458 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12459 (fbsd_nat_target::wait): Update.
12460 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12461 type.
12462 (darwin_nat_target::attach): Update.
12463 * corelow.c (class core_target) <pid_to_str>: Change return type.
12464 (core_target::pid_to_str): Change return type.
12465 * target.c (normal_pid_to_str): Change return type.
12466 (default_pid_to_str): Likewise.
12467 (target_pid_to_str): Change return type.
12468 (target_translate_tls_address): Update.
12469 (target_announce_detach): Update.
12470 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12471 return type.
12472 (bsd_uthread_target::pid_to_str): Change return type.
12473 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12474 type.
12475 (bsd_kvm_target::pid_to_str): Change return type.
12476 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12477 return type.
12478 (aix_thread_target::pid_to_str): Change return type.
12479 * target.h (struct target_ops) <pid_to_str>: Change return type.
12480 (target_pid_to_str, normal_pid_to_str): Likewise.
12481 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12482 type.
12483 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12484 type.
12485 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12486 return type.
12487 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12488 type.
12489 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12490 type.
12491 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12492 return type.
12493
b4be1b06
SM
124942019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12495
12496 * NEWS: Mention that the new default MI version is 3. Mention
12497 changes to the output of commands and events that deal with
12498 multi-location breakpoints.
12499 * breakpoint.c: Include "mi/mi-out.h".
12500 (print_one_breakpoint): Change output syntax if using MI version
12501 >= 3.
12502 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12503 New.
12504 (mi_multi_location_breakpoint_output_fixed): New.
12505 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12506 (mi_cmd_fix_multi_location_breakpoint_output): New.
12507 (mi_multi_location_breakpoint_output_fixed): New.
12508 * mi/mi-cmds.c (mi_cmds): Register command
12509 -fix-multi-location-breakpoint-output.
12510 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12511 interpreter "mi".
12512
8e5e5494
SM
125132019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12514
12515 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12516 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12517 instantiate mi_ui_out based on interpreter name.
12518 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12519 * mi/mi-main.c (mi_load_progress): Likewise.
12520
197df35e
JB
125212019-03-12 John Baldwin <jhb@FreeBSD.org>
12522
12523 * NEWS: Combine separate "New targets" sections for 8.3.
12524
8399425f
JB
125252019-03-12 John Baldwin <jhb@FreeBSD.org>
12526
12527 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12528 (ppcfbsd_init_abi): Install gdbarch
12529 "fetch_tls_load_module_address" and "get_thread_local_address"
12530 methods.
12531
b0f87ed0
JB
125322019-03-12 John Baldwin <jhb@FreeBSD.org>
12533
12534 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12535 (riscv_fbsd_init_abi): Install gdbarch
12536 "fetch_tls_load_module_address" and "get_thread_local_address"
12537 methods.
12538
ce25aa57
JB
125392019-03-12 John Baldwin <jhb@FreeBSD.org>
12540
12541 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12542 (i386fbsd_init_abi): Install gdbarch
12543 "fetch_tls_load_module_address" and "get_thread_local_address"
12544 methods.
12545
f5424cfa
JB
125462019-03-12 John Baldwin <jhb@FreeBSD.org>
12547
12548 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12549 (amd64fbsd_init_abi): Install gdbarch
12550 "fetch_tls_load_module_address" and "get_thread_local_address"
12551 methods.
12552
945f3901
JB
125532019-03-12 John Baldwin <jhb@FreeBSD.org>
12554
12555 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12556 (struct fbsd_pspace_data): New type.
12557 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12558 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12559 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12560 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12561 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12562
ef0bd204
JB
125632019-03-12 John Baldwin <jhb@FreeBSD.org>
12564
12565 * gdbtypes.c (lookup_struct_elt): New function.
12566 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12567 * gdbtypes.h (struct struct_elt): New type.
12568 (lookup_struct_elt): New prototype.
12569
36c53a02
JB
125702019-03-12 John Baldwin <jhb@FreeBSD.org>
12571
12572 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12573 remove disabled code block.
12574
6e056c81
JB
125752019-03-12 John Baldwin <jhb@FreeBSD.org>
12576
12577 * gdbarch.sh (get_thread_local_address): New method.
12578 * gdbarch.h, gdbarch.c: Regenerate.
12579 * target.c (target_translate_tls_address): Use
12580 gdbarch_get_thread_local_address if present instead of
12581 target::get_thread_local_address.
12582
cd250a18
JB
125832019-03-12 John Baldwin <jhb@FreeBSD.org>
12584
12585 * target.h (target::get_thread_local_address): Update comment.
12586
df22c1e5
JB
125872019-03-12 John Baldwin <jhb@FreeBSD.org>
12588
12589 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12590 objfile->separate_debug_objfile_backlink if not NULL.
12591
dd6876c9
JB
125922019-03-12 John Baldwin <jhb@FreeBSD.org>
12593
12594 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12595 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12596 (amd64bsd_store_inferior_registers): Likewise.
12597 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12598 Enable segment base registers.
12599 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12600 PT_GETFSBASE and PT_GETGSBASE.
12601 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12602 PT_SETGSBASE.
12603 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12604 segment base registers.
12605 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12606
1163a4b7
JB
126072019-03-12 John Baldwin <jhb@FreeBSD.org>
12608
12609 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12610 Update calls to i386_target_description to add 'segments'
12611 parameter.
12612 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12613 add segment base registers.
12614 * arch/i386.c (i386_create_target_description): Add 'segments'
12615 parameter to enable segment base registers.
12616 * arch/i386.h (i386_create_target_description): Likewise.
12617 * features/i386/32bit-segments.xml: New file.
12618 * features/i386/32bit-segments.c: Generate.
12619 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12620 call to i386_target_description to add 'segments' parameter.
12621 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12622 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12623 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12624 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12625 if feature is present.
12626 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12627 Add 'segments' parameter to call to i386_target_description.
12628 (i386_target_description): Add 'segments' parameter to enable
12629 segment base registers.
12630 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12631 to call to i386_target_description.
12632 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12633 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12634 Define I386_NUM_REGS.
12635 (i386_target_description): Add 'segments' parameter to enable
12636 segment base registers.
12637
3a350822
EZ
126382019-03-12 Eli Zaretskii <eliz@gnu.org>
12639
12640 PR/24325
12641 * source-cache.c: #undef open and close, to avoid unresolved
12642 externals during linking.
12643
ffdd69cf
TT
126442019-03-12 Tom Tromey <tromey@adacore.com>
12645
12646 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12647 const. Add initializers.
12648 (_initialize_remote): Don't initialize ptid globals.
12649
ec148c57
PA
126502019-03-12 Pedro Alves <palves@redhat.com>
12651
12652 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12653
32764270
PA
126542019-03-12 Pedro Alves <palves@redhat.com>
12655
12656 * cp-name-parser.y (main): Remove unused 'len' variable.
12657
17547186
TT
126582019-03-12 Tom Tromey <tromey@adacore.com>
12659
12660 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12661 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12662
d3a70e03
TT
126632019-03-12 Tom Tromey <tromey@adacore.com>
12664
12665 * linux-nat.c (iterate_over_lwps): Update.
12666 (stop_callback): Remove parameter.
12667 (stop_wait_callback, detach_callback, resume_set_callback)
12668 (select_singlestep_lwp_callback, set_ignore_sigint)
12669 (status_callback, resumed_callback, resume_clear_callback)
12670 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12671 data parameter.
12672 (linux_nat_target::detach, linux_nat_target::resume)
12673 (linux_stop_and_wait_all_lwps, select_event_lwp)
12674 (linux_nat_filter_event, linux_nat_wait_1)
12675 (linux_nat_target::kill, linux_nat_target::stop)
12676 (linux_nat_target::stop): Update.
12677 (linux_nat_resume_callback): Change type.
12678 (resume_stopped_resumed_lwps, count_events_callback)
12679 (select_event_lwp_callback): Likewise.
12680 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12681 * arm-linux-nat.c (struct update_registers_data): Remove.
12682 (update_registers_callback): Change type.
12683 (arm_linux_insert_hw_breakpoint1): Update.
12684 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12685 parameter.
12686 (x86_linux_dr_set_addr): Update.
12687 (x86_linux_dr_set_control): Update.
12688 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12689 (iterate_over_lwps): Use gdb::function_view.
12690 * nat/aarch64-linux-hw-point.c (struct
12691 aarch64_dr_update_callback_param): Remove.
12692 (debug_reg_change_callback): Change type.
12693 (aarch64_notify_debug_reg_change): Update.
12694 * s390-linux-nat.c (s390_refresh_per_info): Update.
12695
82cb27ff
TT
126962019-03-11 Tom Tromey <tromey@adacore.com>
12697
12698 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12699 redundant assignment to "this_cu".
12700
568c0683
SM
127012019-03-08 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12704
f09ce22d
SM
127052019-03-08 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12708 from...
12709 (rank_one_type): ... this.
12710
595f96a9
SM
127112019-03-08 Simon Marchi <simon.marchi@efficios.com>
12712
12713 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12714 from...
12715 (rank_one_type): ... this.
12716
2598a94b
SM
127172019-03-08 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12720 from...
12721 (rank_one_type): ... this.
12722
7f17b20d
SM
127232019-03-08 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12726 from...
12727 (rank_one_type): ... this.
12728
2c509035
SM
127292019-03-08 Simon Marchi <simon.marchi@efficios.com>
12730
12731 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12732 from...
12733 (rank_one_type): ... this.
12734
0dd322dc
SM
127352019-03-08 Simon Marchi <simon.marchi@efficios.com>
12736
12737 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12738 from...
12739 (rank_one_type): ... this.
12740
41ea4728
SM
127412019-03-08 Simon Marchi <simon.marchi@efficios.com>
12742
12743 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12744 from...
12745 (rank_one_type): ... this.
12746
793cd1d2
SM
127472019-03-08 Simon Marchi <simon.marchi@efficios.com>
12748
12749 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12750 from...
12751 (rank_one_type): ... this.
12752
34910087
SM
127532019-03-08 Simon Marchi <simon.marchi@efficios.com>
12754
12755 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12756 from...
12757 (rank_one_type): ... this.
12758
f1f832d6
SM
127592019-03-08 Simon Marchi <simon.marchi@efficios.com>
12760
12761 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12762 from...
12763 (rank_one_type): ... this.
12764
b9f4512f
SM
127652019-03-08 Simon Marchi <simon.marchi@efficios.com>
12766
12767 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12768 from...
12769 (rank_one_type): ... this.
12770
9293fc63
SM
127712019-03-08 Simon Marchi <simon.marchi@efficios.com>
12772
12773 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12774 from...
12775 (rank_one_type): ... this.
12776
e3abbe7e
PW
127772019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12778
12779 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12780 inferior-events' shows the example events.
12781
e4adb939
EZ
127822019-03-08 Eli Zaretskii <eliz@gnu.org>
12783
12784 Support styling on native MS-Windows console
12785
12786 PR/24315
12787 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12788 on MS-Windows if $TERM is not defined.
12789
12790 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12791
12792 * posix-hdep.c (gdb_console_fputs):
12793 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12794 functions.
12795 * ui-file.h (gdb_console_fputs): Add prototype.
12796
12797 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12798 back to fputs only if the former returns zero.
12799
25629dfd
TT
128002019-03-07 Tom Tromey <tom@tromey.com>
12801
12802 * symmisc.c (print_symbol_bcache_statistics): Update.
12803 (print_objfile_statistics): Update.
12804 * symfile.c (allocate_symtab): Update.
12805 * stabsread.c: Don't include bcache.h.
12806 * psymtab.h (struct psymbol_bcache): Don't declare.
12807 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12808 (psymbol_bcache_init, psymbol_bcache_free)
12809 (psymbol_bcache_get_bcache): Don't declare.
12810 * psymtab.c (struct psymbol_bcache): Remove.
12811 (psymtab_storage::psymtab_storage): Update.
12812 (psymtab_storage::~psymtab_storage): Update.
12813 (psymbol_bcache_init, psymbol_bcache_free)
12814 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12815 (add_psymbol_to_bcache): Update.
12816 (allocate_psymtab): Update.
12817 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12818 macro_cache>: No longer pointers.
12819 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12820 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12821 * macrotab.c (macro_bcache): Update.
12822 * macroexp.c: Don't include bcache.h.
12823 * gdbtypes.c (check_types_worklist): Update.
12824 (types_deeply_equal): Remove TRY/CATCH. Update.
12825 * elfread.c (elf_symtab_read): Update.
12826 * dwarf2read.c: Don't include bcache.h.
12827 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12828 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12829 (print_bcache_statistics, bcache_memory_used): Don't declare.
12830 (struct bcache): Move from bcache.c. Add constructor, destructor,
12831 methods. Rename all data members.
12832 * bcache.c (struct bcache): Move to bcache.h.
12833 (bcache::expand_hash_table): Rename from expand_hash_table.
12834 (bcache): Remove.
12835 (bcache::insert): Rename from bcache_full.
12836 (bcache::compare): Rename from bcache_compare.
12837 (bcache_xmalloc): Remove.
12838 (bcache::~bcache): Rename from bcache_xfree.
12839 (bcache::print_statistics): Rename from print_bcache_statistics.
12840 (bcache::memory_used): Rename from bcache_memory_used.
12841
fe726667
PA
128422019-03-07 Pedro Alves <palves@redhat.com>
12843
12844 * infrun.c (normal_stop): Also check for
12845 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12846
7584bb30
AB
128472019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12848
12849 * f-lang.c (value_from_host_double): Moved to...
12850 * value.c (value_from_host_double): ...here.
12851 * value.h (value_from_host_double): Declare.
12852 * guile/scm-math.c (vlscm_convert_typed_number): Use
12853 value_from_host_double.
12854 (vlscm_convert_number): Likewise.
12855 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12856 * python/py-value.c (convert_value_from_python): Likewise.
12857
a7b1986e
TT
128582019-03-06 Tom Tromey <tom@tromey.com>
12859
12860 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12861
0ccf4211
TT
128622019-03-06 Tom Tromey <tom@tromey.com>
12863
12864 * utils.h (free_current_contents): Don't declare.
12865 * utils.c (free_current_contents): Remove.
12866
fe7b42e5
TT
128672019-03-06 Tom Tromey <tom@tromey.com>
12868
12869 * top.c (quit_force): Update.
12870 * main.c (captured_command_loop): Update.
12871 * common/new-op.c (operator new): Update.
12872 * common/common-exceptions.c (struct catcher)
12873 <save_cleanup_chain>: Remove member.
12874 (exceptions_state_mc_init): Update.
12875 (exception_try_scope_entry): Return nullptr.
12876 (exception_try_scope_exit, exception_rethrow)
12877 (throw_exception_sjlj, throw_exception_cxx): Update.
12878 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12879 (all_cleanups, do_cleanups, discard_cleanups)
12880 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12881 (restore_cleanups, restore_final_cleanups): Don't declare.
12882 (do_final_cleanups): Remove parameter.
12883 * common/cleanups.c (cleanup_chain, make_cleanup)
12884 (make_cleanup_dtor, all_cleanups, do_cleanups)
12885 (discard_my_cleanups, discard_cleanups)
12886 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12887 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12888 (null_cleanup): Remove.
12889 (do_final_cleanups): Remove parameter.
12890
c6321f19
TT
128912019-03-06 Tom Tromey <tom@tromey.com>
12892
12893 * remote.c (remote_target::remote_parse_stop_reply): Use
12894 unique_xmalloc_ptr.
12895
61b30099
TT
128962019-03-06 Tom Tromey <tom@tromey.com>
12897
12898 * stabsread.c (struct stabs_field_info): Rename from field_info.
12899 <list, fnlist>: Add initializers.
12900 <obstack>: New member.
12901 (read_member_functions, read_struct_fields, read_baseclasses):
12902 Allocate on obstack. Don't use cleanups.
12903 (read_one_struct_field, read_member_functions, read_struct_fields)
12904 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12905 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12906 (read_struct_type): Update.
12907
6cceac94
TT
129082019-03-06 Tom Tromey <tom@tromey.com>
12909
12910 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12911 * common/filestuff.h (make_cleanup_close): Don't declare.
12912 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12913 Remove.
12914
72412762
TT
129152019-03-06 Tom Tromey <tom@tromey.com>
12916
12917 * solib-aix.c: Use make_scope_exit.
12918
2b6ff1c0
TT
129192019-03-06 Tom Tromey <tom@tromey.com>
12920
12921 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12922 Use make_scope_exit.
12923
d01c5877
TT
129242019-03-06 Tom Tromey <tom@tromey.com>
12925
12926 * solib-svr4.c (disable_probes_interface): Remove parameter.
12927 (svr4_handle_solib_event): Use make_scope_exit.
12928
32603266
TT
129292019-03-06 Tom Tromey <tom@tromey.com>
12930
12931 * remote.c (struct stop_reply_deleter): Remove.
12932 (stop_reply_up): Update.
12933 (struct stop_reply): Derive from notif_event. Don't typedef.
12934 <regcache>: Now a std::vector.
12935 (stop_reply_xfree): Remove.
12936 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12937 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12938 (remote_target::discard_pending_stop_replies): Use delete.
12939 (remote_target::remote_parse_stop_reply): Update.
12940 (remote_target::process_stop_reply): Update.
12941 * remote-notif.h (struct notif_event): Add virtual destructor.
12942 Remove "dtr" member.
12943 (struct notif_client) <alloc_event>: Return a unique_ptr.
12944 (notif_event_xfree): Don't declare.
12945 (notif_event_up): New typedef.
12946 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12947 (notif_event_xfree, do_notif_event_xfree): Remove.
12948 (remote_notif_state_xfree): Update.
12949
9799571e
TT
129502019-03-06 Tom Tromey <tom@tromey.com>
12951
12952 * infrun.c (displaced_step_clear_cleanup): Now a
12953 forward_scope_exit type.
12954 (displaced_step_prepare_throw): Update.
12955 (displaced_step_fixup): Update.
12956
09e3c4ca
TT
129572019-03-06 Tom Tromey <tom@tromey.com>
12958
12959 * inferior.h (class inferior): Update comment.
12960 * gdbthread.h (class thread_info): Update comment.
12961
e2a03548
TT
129622019-03-06 Joel Brobecker <brobecker@adacore.com>
12963 Tom Tromey <tom@tromey.com>
12964
12965 * stabsread.h (struct stab_section_list): Remove.
12966 (coffstab_build_psymtabs): Update.
12967 * dbxread.c (symbuf_sections): Now a std::vector.
12968 (sect_idx): New global.
12969 (fill_symbuf): Update.
12970 (coffstab_build_psymtabs): Change type of stabsects parameter.
12971 Update.
12972 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12973 std::vector.
12974 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12975 (coff_locate_sections): Update.
12976 (coff_symfile_read): Remove cleanups. Update.
12977 (init_stringtab): Add storage parameter.
12978 (free_stringtab, free_stringtab_cleanup): Remove.
12979 (init_lineno): Add storage parameter.
12980 (free_linetab, free_linetab_cleanup): Remove.
12981
b7e60d85
PA
129822019-03-06 Pedro Alves <palves@redhat.com>
12983
12984 * linux-fork.c (fork_info::clobber_regs): Delete.
12985 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12986 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12987 comment. Adjust.
12988 (scoped_switch_fork_info::scoped_switch_fork_info)
12989 (checkpoint_command, linux_fork_context): Adjust
12990 fork_save_infrun_state calls.
12991
e52c971f
PA
129922019-03-06 Pedro Alves <palves@redhat.com>
12993
12994 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12995 (inf_has_multiple_threads): Return 'bool' and rewrite using
12996 inferior_info::threads().
12997
06974e6c
PA
129982019-03-06 Pedro Alves <palves@redhat.com>
12999
13000 * linux-fork.c: Include <list>.
13001 (fork_list): Now a std::list instance.
13002 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13003 (forks_exist_p, find_last_fork): Adjust.
13004 (new_fork): Delete.
13005 (one_fork_p): New.
13006 (add_fork): Adjust.
13007 (free_fork): Delete, folded into fork_info::~fork_info().
13008 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13009 Adjust.
13010 (init_fork_list): Delete.
13011 (linux_fork_killall, linux_fork_mourn_inferior)
13012 (linux_fork_detach, info_checkpoints_command): Adjust.
13013 (_initialize_linux_fork): No longer call init_fork_list.
13014
72f31aea
PA
130152019-03-06 Pedro Alves <palves@redhat.com>
13016
13017 * linux-fork.c (new_fork): New, split out of ...
13018 (add_fork): ... this. Return void. Move "first fork" special
13019 case from here, to ...
13020 (checkpoint_command): ... here.
13021 * linux-linux.h (add_fork): Return void.
13022
efbecbc1
AB
130232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13024
13025 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13026
0841c79a
AB
130272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13028 Chris January <chris.january@arm.com>
13029 David Lecomber <david.lecomber@arm.com>
13030
13031 * f-exp.y: New token, UNOP_INTRINSIC.
13032 (exp): New pattern using UNOP_INTRINSIC token.
13033 (f77_keywords): Add 'abs' keyword.
13034 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13035 (value_from_host_double): New function.
13036 (evaluate_subexp_f): Support UNOP_ABS.
13037
4a270568
AB
130382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13039
13040 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13041 types.
13042
067630bd
AB
130432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13046 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13047 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13048
3be47f7a
AB
130492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13050
13051 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13052
4d00f5d8
AB
130532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13054 Chris January <chris.january@arm.com>
13055
13056 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13057 * f-exp.y: Define 'KIND' token.
13058 (exp): New pattern for KIND expressions.
13059 (ptype): Handle types with a kind extension.
13060 (direct_abs_decl): Extend to spot kind extensions.
13061 (f77_keywords): Add 'kind' to the list.
13062 (push_kind_type): New function.
13063 (convert_to_kind_type): New function.
13064 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13065 * parse.c (operator_length_standard): Likewise.
13066 * parser-defs.h (enum type_pieces): Add tp_kind.
13067 * std-operator.def: Add UNOP_KIND.
13068
e454224f
AB
130692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13070
13071 * f-exp.y (f_parse): Set yydebug.
13072
9dad4a58
AB
130732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13074
13075 * f-lang.c (evaluate_subexp_f): New function.
13076 (exp_descriptor_f): New global.
13077 (f_language_defn): Use exp_descriptor_f instead of
13078 exp_descriptor_standard.
13079
c8f91604
AB
130802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13081
13082 * f-exp.y (struct token): Add comments.
13083 (dot_ops): Remove uppercase versions and the end marker.
13084 (f77_keywords): Likewise.
13085 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13086 entries in the dot_ops array are case insensitive, and use
13087 strncasecmp to compare strings. Also some whitespace cleanup in
13088 this area. Similar for the f77_keywords array, except entries in
13089 this list might be case sensitive.
13090
dd9f2c76
AB
130912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13092
13093 * f-exp.y (struct f77_boolean_val): Add comments.
13094 (boolean_values): Remove uppercase versions, and end marker.
13095 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13096 and use strncasecmp to achieve case insensitivity. Additionally,
13097 perform whitespace cleanup around this code.
13098
67a3048c
TT
130992019-03-06 Tom Tromey <tromey@adacore.com>
13100
13101 * remote-sim.c (gdbsim_target_open): Use result of
13102 gdb_argv::release.
13103
aa3cfbda
RB
131042019-03-06 Richard Bunt <richard.bunt@arm.com>
13105 Dirk Schubert <dirk.schubert@arm.com>
13106 Chris January <chris.january@arm.com>
13107
13108 * eval.c (evaluate_subexp_standard): Call Fortran argument
13109 wrapping logic.
13110 * f-lang.c (struct value): A value which can be passed into a
13111 Fortran function call.
13112 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13113 where appropriate.
13114 (struct type): Value ready for a Fortran function call.
13115 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13116 is needed.
13117 * f-lang.h (fortran_argument_convert): Declaration.
13118 (fortran_preserve_arg_pointer): Declaration.
13119 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13120
ea38e5df
TT
131212019-03-05 Tom Tromey <tromey@adacore.com>
13122
13123 * python/py-prettyprint.c (print_string_repr): Remove #if.
13124 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13125
06b5b831
TT
131262019-03-05 Tom Tromey <tromey@adacore.com>
13127
13128 * target.c (the_dummy_target): Move later. Change type to
13129 "dummy_target".
13130 (initialize_targets): Don't initialize the_dummy_target.
13131
edbd9e45
TT
131322019-03-05 Tom Tromey <tromey@adacore.com>
13133
13134 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13135 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13136
c119e040
TT
131372019-03-05 Tom Tromey <tromey@adacore.com>
13138
13139 * windows-nat.c (windows_nat_target::attach)
13140 (windows_nat_target::detach): Don't call gdb_flush.
13141 * valprint.c (generic_val_print, val_print, val_print_string):
13142 Don't call gdb_flush.
13143 * utils.c (defaulted_query): Don't call gdb_flush.
13144 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13145 * target.c (target_announce_detach): Don't call gdb_flush.
13146 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13147 * remote.c (extended_remote_target::attach): Don't call
13148 gdb_flush.
13149 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13150 * printcmd.c (do_examine): Don't call gdb_flush.
13151 (info_display_command): Don't call gdb_flush.
13152 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13153 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13154 * memattr.c (info_mem_command): Don't call gdb_flush.
13155 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13156 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13157 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13158 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13159 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13160 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13161 (gnu_nat_target::detach): Don't call gdb_flush.
13162 * f-valprint.c (f_val_print): Don't call gdb_flush.
13163 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13164 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13165 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13166 gdb_flush.
13167 * c-valprint.c (c_val_print): Don't call gdb_flush.
13168 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13169
895dafa6
TT
131702019-03-05 Tom Tromey <tromey@adacore.com>
13171
13172 * varobj.c (update_dynamic_varobj_children): Update.
13173 (install_default_visualizer): Use reset, not release.
13174 * value.c (set_internalvar): Update.
13175 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13176 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13177 ATTRIBUTE_UNUSED_RESULT.
13178
88a774b9
TT
131792019-03-05 Tom Tromey <tromey@adacore.com>
13180
13181 * remote.c (class scoped_remote_fd) <release>: Add
13182 ATTRIBUTE_UNUSED_RESULT.
13183
4e4a8b93
TT
131842019-03-05 Tom Tromey <tromey@adacore.com>
13185
13186 * macroexp.c (struct macro_buffer) <release>: Add
13187 ATTRIBUTE_UNUSED_RESULT.
13188
083eef1f
TT
131892019-03-05 Tom Tromey <tromey@adacore.com>
13190
13191 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13192 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13193 ATTRIBUTE_UNUSED_RESULT.
13194
3cabd438
TT
131952019-03-05 Tom Tromey <tromey@adacore.com>
13196
13197 * common/scoped_fd.h (class scoped_fd) <release>: Add
13198 ATTRIBUTE_UNUSED_RESULT.
13199
41e3300a
TT
132002019-03-05 Tom Tromey <tromey@adacore.com>
13201
13202 * parser-defs.h (struct parser_state) <release>: Add
13203 ATTRIBUTE_UNUSED_RESULT.
13204
18cb7c9f
TT
132052019-03-05 Tom Tromey <tromey@adacore.com>
13206
13207 * utils.h (class gdb_argv) <release>: Add
13208 ATTRIBUTE_UNUSED_RESULT.
13209 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13210
41fa577f
EZ
132112019-03-02 Eli Zaretskii <eliz@gnu.org>
13212
a6a4b2c6
EZ
13213 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13214 for-loop range, to avoid compiler warnings.
13215
13216 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13217 avoid compiler warnings about unused variables.
13218
742a7df5
EZ
13219 * NEWS: Mention end of support for native debugging on MS-Windows
13220 before XP.
13221
41fa577f
EZ
13222 PR gdb/24292
13223 * common/netstuff.c:
13224 * gdbserver/gdbreplay.c
13225 * gdbserver/remote-utils.c:
13226 * ser-tcp.c:
13227 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13228 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13229 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13230 'getaddrinfo' and 'freeaddrinfo' were not available before
13231 Windows XP, and mingw.org's MinGW headers by default define
13232 _WIN32_WINNT to 0x500.
13233
827f438f
GB
132342019-03-01 Gary Benson <gbenson@redhat.com>
13235
13236 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13237
92137da0
RO
132382019-02-28 Brian Vandenberg <phantall@gmail.com>
13239 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13240
13241 PR gdb/8527
13242 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13243 set_sigint_trap, clear_sigint_trap.
13244
799efbe8
PW
132452019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13246
13247 * target.c (target_detach): Clear the regcache and the
13248 frame cache.
13249
8ed25214
PA
132502019-02-27 Pedro Alves <palves@redhat.com>
13251
13252 * utils.c (set_screen_size): When we cap the height/width sizes,
13253 tweak the corresponding command variable to show "unlimited":
13254
23031e31
SJ
132552019-02-27 Saagar Jha <saagar@saagarjha.com>
13256 Pedro Alves <palves@redhat.com>
13257
13258 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13259 before calling rl_set_screen_size.
13260
6c28e44a
TT
132612019-02-27 Tom Tromey <tromey@adacore.com>
13262
13263 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13264 define.
13265 * python/py-value.c: Remove Python 2.4 workaround.
13266 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13267 workaround.
13268 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13269 Python 2.4 workaround.
13270 * python/python-internal.h: Remove Python 2.4 comment.
13271 (Py_ssize_t): Don't define.
13272 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13273 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13274 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13275 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13276 * python/python.c (do_start_initialization): Remove Python 2.4
13277 workaround.
13278 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13279 (print_children): Remove Python 2.4 workaround.
13280 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13281 workaround.
13282 (CHARBUFFERPROC_NAME): Remove.
13283 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13284 Python 2.4 workaround.
13285
2c3fc25d 132862019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13287
2c3fc25d
KB
13288 * NEWS: Note minimum Python version.
13289
6ca62222
KB
132902019-02-27 Kevin Buettner <kevinb@redhat.com>
13291
13292 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13293 code from these functions. Remove corresponding ifdefs. Use
13294 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13295 Remove gotos and target of gotos.
13296 (infpy_search_memory): Likewise.
13297
f4bc7d2c
AB
132982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13299
13300 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13301 (hppa_gdbarch_init): Don't register deleted functions with
13302 gdbarch.
13303
9734a586
AB
133042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13305
13306 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13307 (h8300_unwind_sp): Delete.
13308 (h8300_dummy_id): Delete.
13309 (h8300_gdbarch_init): Don't register deleted functions with
13310 gdbarch.
13311
68b867f3
AB
133122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13313
13314 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13315 (ft32_unwind_pc): Delete.
13316 (ft32_unwind_sp): Delete.
13317 (ft32_gdbarch_init): Don't register deleted functions with
13318 gdbarch.
13319
2fbe7ad0
AB
133202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13321
13322 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13323 (frv_unwind_pc): Delete.
13324 (frv_unwind_sp): Delete.
13325 (frv_gdbarch_init): Don't register deleted functions with
13326 gdbarch.
13327
76055cbe
AB
133282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13329
13330 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13331 (riscv_unwind_pc): Delete.
13332 (riscv_unwind_sp): Delete.
13333 (riscv_gdbarch_init): Don't register deleted functions with
13334 gdbarch.
13335
4133e5a1
AB
133362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13337
13338 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13339 (csky_unwind_pc): Delete.
13340 (csky_unwind_sp): Delete.
13341 (csky_gdbarch_init): Don't register deleted functions with
13342 gdbarch.
13343
8010f576
AB
133442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13345
13346 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13347 (cris_unwind_pc): Delete.
13348 (cris_unwind_sp): Delete.
13349 (cris_gdbarch_init): Don't register deleted functions with
13350 gdbarch.
13351
b56bf084
AB
133522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13353
13354 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13355 (bfin_unwind_pc): Delete.
13356 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13357
a19a650f
AB
133582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13359
13360 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13361 (arm_unwind_pc): Delete.
13362 (arm_unwind_sp): Delete.
13363 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13364
f8278c3c
AB
133652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13368 (arc_unwind_pc): Delete.
13369 (arc_unwind_sp): Delete.
13370 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13371
480e46cf
AB
133722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13375 (alpha_unwind_pc): Delete.
13376 (alpha_gdbarch_init): Don't register deleted functions with
13377 gdbarch.
13378
7a995095
AB
133792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13380
13381 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13382 (aarch64_unwind_pc): Delete.
13383 (aarch64_unwind_sp): Delete.
13384 (aarch64_gdbarch_init): Don't register deleted functions with
13385 gdbarch.
13386
bf9a735e
AB
133872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13388
13389 * gdbtypes.c (type_align): Don't consider static members when
13390 computing structure alignment.
13391
5561fc30
AB
133922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13393
13394 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13395 return 0 for other types.
13396 * arch-utils.c (default_type_align): Always return 0.
13397 * gdbarch.h: Regenerate.
13398 * gdbarch.sh (type_align): Extend comment.
13399 * gdbtypes.c (type_align): Add additional comments, always call
13400 gdbarch_type_align before applying the default rules.
13401 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13402 generic code will then apply a suitable default.
13403 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13404 types, return 0 for other types.
13405
9335e75a
JB
134062019-02-27 Joel Brobecker <brobecker@adacore.com>
13407
13408 * NEWS: Create a new section for the next release branch.
13409 Rename the section of the current branch, now that it has
13410 been cut.
13411
3d34d8de
JB
134122019-02-27 Joel Brobecker <brobecker@adacore.com>
13413
13414 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13415 * version.in: Bump version to 8.3.50.DATE-git.
13416
143420fb
SM
134172019-02-26 Simon Marchi <simon.marchi@efficios.com>
13418
13419 * aix-thread.c (ptid_cmp): Remove unused variable.
13420 (get_signaled_thread): Likewise.
13421 (store_regs_user_thread): Likewise.
13422 (store_regs_kernel_thread): Likewise.
13423 (fetch_regs_kernel_thread): Remove shadowed variable.
13424
172fb711
AB
134252019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13426
13427 * features/riscv/32bit-cpu.xml: Add register numbers.
13428 * features/riscv/32bit-fpu.c: Regenerate.
13429 * features/riscv/32bit-fpu.xml: Add register numbers.
13430 * features/riscv/64bit-cpu.xml: Add register numbers.
13431 * features/riscv/64bit-fpu.c: Regenerate.
13432 * features/riscv/64bit-fpu.xml: Add register numbers.
13433
26c89782
KB
134342019-02-26 Kevin Buettner <kevinb@redhat.com>
13435
af54ade9 13436 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13437 * python/py-value.c (convert_buffer_and_type_to_value): New
13438 function.
13439 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13440 Add support for handling an optional second argument. Call
13441 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13442 * python/python-internal.h (Py_buffer_deleter): New struct.
13443 (Py_buffer_up): New typedef.
13444
0f58c9e8
JB
134452019-02-25 John Baldwin <jhb@FreeBSD.org>
13446
13447 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13448 instead of releasing ownership.
13449
0a0f4c01
JR
134502019-02-25 Jordan Rupprecht <rupprecht@google.com>
13451
13452 * dwarf2read.c (open_and_init_dwp_file): Call
13453 elf_numsections instead of bfd_count_sections to initialize
13454 dwp_file->num_sections.
13455
cd5a152c
TT
134562019-02-25 Tom Tromey <tromey@adacore.com>
13457
13458 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13459
8a6a8513
SDJ
134602019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13461
13462 * gcore.in: Add '--readnever' option when invoking GDB.
13463
04dcda9c
SM
134642019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13465
13466 * MAINTAINERS: Update my email address.
13467
07bc701d
SM
134682019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13469
13470 * build-id.c (build_id_to_debug_bfd_1): New function.
13471 (build_id_to_debug_bfd): Look for separate debug file in
13472 sysroot.
13473
c6f4a5d0
AB
134742019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13475
13476 * gdbarch.sh: Update the copyright year range that is placed into
13477 generated files.
13478
9600246d
KS
134792019-02-22 Keith Seitz <keiths@redhat.com>
13480
13481 PR symtab/23853
13482 * linespec.c (create_sals_line_offset): Search for the default
13483 symtab's filename instead of its fullname.
13484
7557a514
AH
134852019-02-21 Alan Hayward <alan.hayward@arm.com>
13486
13487 * NEWS: Update style defaults.
13488
ee2bcb0c
AH
134892019-02-21 Alan Hayward <alan.hayward@arm.com>
13490
13491 * main.c (captured_main_1): Disable styling in batch mode.
13492
0c95f9ed
TT
134932019-02-20 Tom Tromey <tom@tromey.com>
13494
13495 * symtab.c (symtab_symbol_info): Fix typos.
13496
c763b894
TT
134972019-02-20 Tom Tromey <tromey@adacore.com>
13498
13499 * findcmd.c (_initialize_mem_search): Use upper case for
13500 metasyntactic variables.
13501
0ef8a082
AH
135022019-02-20 Alan Hayward <alan.hayward@arm.com>
13503
13504 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13505 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13506
6caa91b6
SM
135072019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13508
13509 * top.h (source_file_name): Change to std::string.
13510 * top.c (source_file_name): Likewise.
13511 (command_line_input): Adjust.
13512 * cli/cli-script.c (script_from_file): Adjust.
13513
98814c6c
TT
135142019-02-19 Tom Tromey <tromey@adacore.com>
13515
13516 * ravenscar-thread.c
13517 (ravenscar_thread_target::update_thread_list): Don't call
13518 ada_build_task_list.
13519 * ada-lang.h (ada_build_task_list): Don't declare.
13520 * ada-tasks.c (struct ada_tasks_inferior_data)
13521 <task_list_valid_p>: Now bool.
13522 (read_known_tasks, ada_task_list_changed)
13523 (ada_tasks_invalidate_inferior_data): Update.
13524 (read_known_tasks_array): Return bool.
13525 (read_known_tasks_list): Likewise.
13526 (read_known_tasks): Return void.
13527 (ada_build_task_list): Now static.
13528
70cd633e
AB
135292019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13530
13531 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13532 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13533
040b3e95
PW
135342019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13535
13536 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13537 variant for ada_tasks_pspace_data_handle and
13538 ada_tasks_inferior_data_handle.
13539 (ada_tasks_pspace_data_cleanup): New function.
13540 (ada_tasks_inferior_data_cleanup): New function.
13541
9409233b
TT
135422019-02-17 Tom Tromey <tom@tromey.com>
13543
13544 * macrotab.h (macro_source_fullname): Return a std::string.
13545 * macrotab.c (macro_include, check_for_redefinition)
13546 (macro_undef, macro_lookup_definition, foreach_macro)
13547 (foreach_macro_in_scope): Update.
13548 (macro_source_fullname): Return a std::string.
13549 * macrocmd.c (show_pp_source_pos): Update.
13550
6506371f
TT
135512019-02-17 Tom Tromey <tom@tromey.com>
13552
13553 * macrocmd.c (show_pp_source_pos): Style the file names.
13554
0c820d67
TT
135552019-02-17 Tom Tromey <tom@tromey.com>
13556
13557 PR tui/24197:
13558 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13559
a0087920
TT
135602019-02-17 Tom Tromey <tom@tromey.com>
13561
13562 * ada-lang.c (user_select_syms): Use filtered printing.
13563 * utils.c (wrap_style): New global.
13564 (desired_style): Remove.
13565 (emit_style_escape): Add stream parameter.
13566 (set_output_style, reset_terminal_style, prompt_for_continue):
13567 Update.
13568 (flush_wrap_buffer): Only flush gdb_stdout.
13569 (wrap_here): Set wrap_style.
13570 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13571 treat escape sequences as a character. Change when wrap buffer is
13572 flushed.
13573 (fputs_styled): Do not set the output style when the default is
13574 requested.
13575 * ui-style.h (struct ui_file_style) <is_default>: New method.
13576 * source.c (print_source_lines_base): Emit escape sequences in one
13577 piece.
13578
75ba10dc
JB
135792019-02-17 Joel Brobecker <brobecker@adacore.com>
13580
13581 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13582 integers and enumeration types.
13583
a2cd4f14
JB
135842019-02-17 Joel Brobecker <brobecker@adacore.com>
13585
13586 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13587 instead of lookup_symbol_in_language
13588 (do_exact_match): New function.
13589 (ada_get_symbol_name_matcher): Return do_exact_match when
13590 doing a verbatim match.
13591
485b851b
TT
135922019-02-15 Tom Tromey <tromey@adacore.com>
13593
13594 * ravenscar-thread.c (ravenscar_thread_target::resume)
13595 (ravenscar_thread_target::wait): Special case wildcard requests.
13596
0b790b1e
TT
135972019-02-15 Tom Tromey <tromey@adacore.com>
13598
13599 * ravenscar-thread.c (base_ptid): Remove.
13600 (struct ravenscar_thread_target) <close>: New method.
13601 <m_base_ptid>: New member.
13602 <update_inferior_ptid, active_task, task_is_currently_active,
13603 runtime_initialized>: Declare methods.
13604 <ravenscar_thread_target>: Add constructor.
13605 (ravenscar_thread_target::task_is_currently_active)
13606 (ravenscar_thread_target::update_inferior_ptid)
13607 (ravenscar_runtime_initialized): Rename. Now methods.
13608 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13609 (ravenscar_thread_target::update_thread_list): Update.
13610 (ravenscar_thread_target::active_task): Now method.
13611 (ravenscar_thread_target::store_registers)
13612 (ravenscar_thread_target::prepare_to_store)
13613 (ravenscar_thread_target::prepare_to_store)
13614 (ravenscar_thread_target::mourn_inferior): Update.
13615 (ravenscar_inferior_created): Use "new" to create target.
13616 (ravenscar_thread_target::get_ada_task_ptid): Update.
13617 (_initialize_ravenscar): Don't initialize base_ptid.
13618 (ravenscar_ops): Remove global.
13619
dea57a62
TT
136202019-02-15 Tom Tromey <tromey@adacore.com>
13621
13622 * target.h (push_target): Declare new overload.
13623 * target.c (push_target): New overload, taking an rvalue reference.
13624 * remote.c (remote_target::open_1): Use push_target overload.
13625 * corelow.c (core_target_open): Use push_target overload.
13626
989f3c58
TT
136272019-02-15 Tom Tromey <tromey@adacore.com>
13628
13629 * ravenscar-thread.c (is_ravenscar_task)
13630 (ravenscar_task_is_currently_active): Return bool.
13631 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13632 (_initialize_ravenscar): Remove "(void)".
13633 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13634 Return bool.
13635
6cbcc006
TT
136362019-02-15 Tom Tromey <tromey@adacore.com>
13637
13638 * ravenscar-thread.c (ravenscar_runtime_initializer)
13639 (has_ravenscar_runtime, get_running_thread_id)
13640 (ravenscar_thread_target::resume): Fix indentation.
13641
7657f14d
TT
136422019-02-15 Tom Tromey <tromey@adacore.com>
13643
13644 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13645 from ravenscar_arch_ops.
13646 (sparc_ravenscar_ops::fetch_registers)
13647 (sparc_ravenscar_ops::store_registers): Now methods.
13648 (sparc_ravenscar_prepare_to_store): Remove.
13649 (sparc_ravenscar_ops): Redefine.
13650 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13651 methods and destructor. Remove members.
13652 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13653 (ravenscar_thread_target::store_registers)
13654 (ravenscar_thread_target::prepare_to_store): Update.
13655 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13656 Remove.
13657 (struct ppc_ravenscar_powerpc_ops): Derive from
13658 ravenscar_arch_ops.
13659 (ppc_ravenscar_powerpc_ops::fetch_registers)
13660 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13661 (ppc_ravenscar_powerpc_ops): Redefine.
13662 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13663 (ppc_ravenscar_e500_ops::fetch_registers)
13664 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13665 (ppc_ravenscar_e500_ops): Redefine.
13666 * aarch64-ravenscar-thread.c
13667 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13668 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13669 (aarch64_ravenscar_fetch_registers)
13670 (aarch64_ravenscar_store_registers): Now methods.
13671 (aarch64_ravenscar_ops): Redefine.
13672
5b6ea500
TT
136732019-02-15 Tom Tromey <tromey@adacore.com>
13674
13675 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13676 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13677 (ravenscar_thread_target::stopped_by_watchpoint)
13678 (ravenscar_thread_target::stopped_data_address)
13679 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13680
e397fd39
TT
136812019-02-15 Tom Tromey <tromey@adacore.com>
13682
13683 * ravenscar-thread.c: Fix some typos.
13684
cc12f4a8
TT
136852019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13686 Tom Tromey <tromey@adacore.com>
13687
13688 * ada-lang.c (ada_exception_sal): Change addr_string to a
13689 std::string.
13690 (create_ada_exception_catchpoint): Update.
13691
5f486660
TT
136922019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13693 Tom Tromey <tromey@adacore.com>
13694
13695 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13696 (bp_location_ops): Remove.
13697 (base_breakpoint_allocate_location): Update.
13698 (free_bp_location): Update.
13699 * ada-lang.c (class ada_catchpoint_location)
13700 <ada_catchpoint_location>: Remove ops parameter.
13701 (ada_catchpoint_location_dtor): Remove.
13702 (ada_catchpoint_location_ops): Remove.
13703 (allocate_location_exception): Update.
13704 * breakpoint.h (struct bp_location_ops): Remove.
13705 (class bp_location) <bp_location>: Remove bp_location_ops
13706 parameter.
13707 <~bp_location>: Add destructor.
13708 <ops>: Remove.
13709
b671c7fb
TS
137102019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13711 Pedro Alves <palves@redhat.com>
13712
13713 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13714 'PATH_MAX'.
13715
8071c5ce
DM
137162019-02-14 David Michael <fedora.dm0@gmail.com>
13717 Samuel Thibault <samuel.thibault@gnu.org>
13718 Thomas Schwinge <thomas@codesourcery.com>
13719
13720 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13721 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13722
b1041ae0
TS
137232019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13724
924514e1
TS
13725 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13726 (check_empty): Use "const char *".
13727
c29ee8d4
TS
13728 * gnu-nat.c (gnu_nat_target::detach): Instead of
13729 'detach_inferior (pid)' call
13730 'detach_inferior (find_inferior_pid (pid))'.
13731
6c6ef69f
TS
13732 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13733 'nat/fork-inferior.o'.
13734 * gnu-nat.c: #include "nat/fork-inferior.h".
13735
2d0a338c
TS
13736 * gnu-nat.c (gnu_nat_target::detach): Instead of
13737 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13738 * gnu-nat.h: #include "inf-child.h".
13739 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13740 'i386_gnu_nat_target::fetch_registers'.
13741 (gnu_store_registers): Rename/move to
13742 'i386_gnu_nat_target::store_registers'.
13743
cabb5f06
TS
13744 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13745 * gnu-nat.h (mach_thread_info): New function.
13746 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13747
b1041ae0
TS
13748 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13749
2988d01e
KF
137502019-02-14 Frederic Konrad <konrad@adacore.com>
13751
13752 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13753
c559d709
JB
137542019-02-14 Joel Brobecker <brobecker@adacore.com>
13755
13756 * windows-nat.c (windows_add_thread): Add new parameter
13757 "main_thread_p" with default value set to false. Update
13758 function documentation as well as all callers.
13759 (windows_delete_thread): Likewise.
13760 (fake_create_process): Update call to windows_add_thread.
13761 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13762 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13763 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13764 call to windows_delete_thread.
13765
007024cc
SM
137662019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13767
13768 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13769
f62318e9
JB
137702019-02-12 John Baldwin <jhb@FreeBSD.org>
13771
13772 * symfile.c (find_separate_debug_file): Use canonical path of
13773 sysroot with child_path instead of gdb_sysroot if it is valid.
13774
cd4b7848
JB
137752019-02-12 John Baldwin <jhb@FreeBSD.org>
13776
13777 * symfile.c (find_separate_debug_file): Use child_path to
13778 determine if an object file is under a sysroot.
13779
efac4bfe
JB
137802019-02-12 John Baldwin <jhb@FreeBSD.org>
13781
13782 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13783 unittests/child-path-selftests.c.
13784 * common/pathstuff.c (child_path): New function.
13785 * common/pathstuff.h (child_path): New prototype.
13786 * unittests/child-path-selftests.c: New file.
13787
402d2bfe
JB
137882019-02-12 John Baldwin <jhb@FreeBSD.org>
13789
13790 * symfile.c (find_separate_debug_file): Look for separate debug
13791 files in debug directories under the sysroot.
13792
1ed9f74e
PW
137932019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13794
13795 * symtab.h (struct minimal_symbol data_p): New const method.
13796 (struct minimal_symbol text_p): Likewise.
13797 * symtab.c (output_source_filename): Use file name style
13798 to print file name.
13799 (print_symbol_info): Likewise.
13800 (print_msymbol_info): Use address style to print addresses.
13801 Use function name style to print executable text symbols.
13802 (expand_symtab_containing_pc): Use data_p.
13803 (find_pc_sect_compunit_symtab): Likewise.
13804
2636d81d
PW
138052019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13806
13807 * breakpoint.c (describe_other_breakpoints): Use address style
13808 to print addresses.
13809 (say_where): Likewise.
13810
ac8c53cc
PW
138112019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13812
13813 * ada-typeprint.c (print_func_type): Print function name
13814 style to print function name.
13815 * c-typeprint.c (c_print_type_1): Likewise.
13816
ea638c43
AH
138172019-02-11 Alan Hayward <alan.hayward@arm.com>
13818
13819 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13820 for execve.
13821
ab759ca8
PW
138222019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13823
13824 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13825 type_stack.
13826
aff29d1c
JB
138272019-02-10 Joel Brobecker <brobecker@adacore.com>
13828
13829 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13830 TYPE_CODE_REF types.
13831
617126bc
JW
138322019-02-08 Jim Wilson <jimw@sifive.com>
13833
13834 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13835 (riscv_linux_fregset): New.
13836 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13837
46e3ed7f
TT
138382019-02-07 Tom Tromey <tom@tromey.com>
13839
13840 * thread.c (thread_cancel_execution_command): Update.
13841 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13842 methods.
13843 (struct thread_fsm_ops): Remove.
13844 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13845 (thread_fsm_should_stop, thread_fsm_return_value)
13846 (thread_fsm_set_finished, thread_fsm_finished_p)
13847 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13848 Don't declare.
13849 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13850 * infrun.c (clear_proceed_status_thread)
13851 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13852 (print_stop_event): Update.
13853 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13854 Add constructor.
13855 (step_command_fsm_ops): Remove.
13856 (new_step_command_fsm): Remove.
13857 (step_1): Update.
13858 (step_command_fsm::should_stop): Rename from
13859 step_command_fsm_should_stop.
13860 (step_command_fsm::clean_up): Rename from
13861 step_command_fsm_clean_up.
13862 (step_command_fsm::do_async_reply_reason): Rename from
13863 step_command_fsm_async_reply_reason.
13864 (struct until_next_fsm): Inherit from thread_fsm. Add
13865 constructor.
13866 (until_next_fsm_ops): Remove.
13867 (new_until_next_fsm): Remove.
13868 (until_next_fsm::should_stop): Rename from
13869 until_next_fsm_should_stop.
13870 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13871 (until_next_fsm::do_async_reply_reason): Rename from
13872 until_next_fsm_async_reply_reason.
13873 (struct finish_command_fsm): Inherit from thread_fsm. Add
13874 constructor. Change type of breakpoint.
13875 (finish_command_fsm_ops): Remove.
13876 (new_finish_command_fsm): Remove.
13877 (finish_command_fsm::should_stop): Rename from
13878 finish_command_fsm_should_stop.
13879 (finish_command_fsm::clean_up): Rename from
13880 finish_command_fsm_clean_up.
13881 (finish_command_fsm::return_value): Rename from
13882 finish_command_fsm_return_value.
13883 (finish_command_fsm::do_async_reply_reason): Rename from
13884 finish_command_fsm_async_reply_reason.
13885 (finish_command): Update.
13886 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13887 Add constructor.
13888 (call_thread_fsm_ops): Remove.
13889 (call_thread_fsm::call_thread_fsm): Rename from
13890 new_call_thread_fsm.
13891 (call_thread_fsm::should_stop): Rename from
13892 call_thread_fsm_should_stop.
13893 (call_thread_fsm::should_notify_stop): Rename from
13894 call_thread_fsm_should_notify_stop.
13895 (run_inferior_call, call_function_by_hand_dummy): Update.
13896 * cli/cli-interp.c (should_print_stop_to_console): Update.
13897 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13898 Add constructor. Change type of location_breakpoint,
13899 caller_breakpoint.
13900 (until_break_fsm_ops): Remove.
13901 (new_until_break_fsm): Remove.
13902 (until_break_fsm::should_stop): Rename from
13903 until_break_fsm_should_stop.
13904 (until_break_fsm::clean_up): Rename from
13905 until_break_fsm_clean_up.
13906 (until_break_fsm::do_async_reply_reason): Rename from
13907 until_break_fsm_async_reply_reason.
13908 (until_break_command): Update.
13909 * thread-fsm.c: Remove.
13910 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13911
1a5c2598
TT
139122019-02-07 Tom Tromey <tom@tromey.com>
13913
13914 * yy-remap.h: Add include guard.
13915 * xtensa-tdep.h: Add include guard.
13916 * xcoffread.h: Rename include guard.
13917 * varobj-iter.h: Add include guard.
13918 * tui/tui.h: Rename include guard.
13919 * tui/tui-winsource.h: Rename include guard.
13920 * tui/tui-wingeneral.h: Rename include guard.
13921 * tui/tui-windata.h: Rename include guard.
13922 * tui/tui-win.h: Rename include guard.
13923 * tui/tui-stack.h: Rename include guard.
13924 * tui/tui-source.h: Rename include guard.
13925 * tui/tui-regs.h: Rename include guard.
13926 * tui/tui-out.h: Rename include guard.
13927 * tui/tui-layout.h: Rename include guard.
13928 * tui/tui-io.h: Rename include guard.
13929 * tui/tui-hooks.h: Rename include guard.
13930 * tui/tui-file.h: Rename include guard.
13931 * tui/tui-disasm.h: Rename include guard.
13932 * tui/tui-data.h: Rename include guard.
13933 * tui/tui-command.h: Rename include guard.
13934 * tic6x-tdep.h: Add include guard.
13935 * target/waitstatus.h: Rename include guard.
13936 * target/wait.h: Rename include guard.
13937 * target/target.h: Rename include guard.
13938 * target/resume.h: Rename include guard.
13939 * target-float.h: Rename include guard.
13940 * stabsread.h: Add include guard.
13941 * rs6000-tdep.h: Add include guard.
13942 * riscv-fbsd-tdep.h: Add include guard.
13943 * regformats/regdef.h: Rename include guard.
13944 * record.h: Rename include guard.
13945 * python/python.h: Rename include guard.
13946 * python/python-internal.h: Rename include guard.
13947 * python/py-stopevent.h: Rename include guard.
13948 * python/py-ref.h: Rename include guard.
13949 * python/py-record.h: Rename include guard.
13950 * python/py-record-full.h: Rename include guard.
13951 * python/py-record-btrace.h: Rename include guard.
13952 * python/py-instruction.h: Rename include guard.
13953 * python/py-events.h: Rename include guard.
13954 * python/py-event.h: Rename include guard.
13955 * procfs.h: Add include guard.
13956 * proc-utils.h: Add include guard.
13957 * p-lang.h: Add include guard.
13958 * or1k-tdep.h: Rename include guard.
13959 * observable.h: Rename include guard.
13960 * nto-tdep.h: Rename include guard.
13961 * nat/x86-linux.h: Rename include guard.
13962 * nat/x86-linux-dregs.h: Rename include guard.
13963 * nat/x86-gcc-cpuid.h: Add include guard.
13964 * nat/x86-dregs.h: Rename include guard.
13965 * nat/x86-cpuid.h: Rename include guard.
13966 * nat/ppc-linux.h: Rename include guard.
13967 * nat/mips-linux-watch.h: Rename include guard.
13968 * nat/linux-waitpid.h: Rename include guard.
13969 * nat/linux-ptrace.h: Rename include guard.
13970 * nat/linux-procfs.h: Rename include guard.
13971 * nat/linux-osdata.h: Rename include guard.
13972 * nat/linux-nat.h: Rename include guard.
13973 * nat/linux-namespaces.h: Rename include guard.
13974 * nat/linux-btrace.h: Rename include guard.
13975 * nat/glibc_thread_db.h: Rename include guard.
13976 * nat/gdb_thread_db.h: Rename include guard.
13977 * nat/gdb_ptrace.h: Rename include guard.
13978 * nat/fork-inferior.h: Rename include guard.
13979 * nat/amd64-linux-siginfo.h: Rename include guard.
13980 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13981 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13982 * nat/aarch64-linux.h: Rename include guard.
13983 * nat/aarch64-linux-hw-point.h: Rename include guard.
13984 * mn10300-tdep.h: Add include guard.
13985 * mips-linux-tdep.h: Add include guard.
13986 * mi/mi-parse.h: Rename include guard.
13987 * mi/mi-out.h: Rename include guard.
13988 * mi/mi-main.h: Rename include guard.
13989 * mi/mi-interp.h: Rename include guard.
13990 * mi/mi-getopt.h: Rename include guard.
13991 * mi/mi-console.h: Rename include guard.
13992 * mi/mi-common.h: Rename include guard.
13993 * mi/mi-cmds.h: Rename include guard.
13994 * mi/mi-cmd-break.h: Rename include guard.
13995 * m2-lang.h: Add include guard.
13996 * location.h: Rename include guard.
13997 * linux-record.h: Rename include guard.
13998 * linux-nat.h: Add include guard.
13999 * linux-fork.h: Add include guard.
14000 * i386-darwin-tdep.h: Rename include guard.
14001 * hppa-linux-offsets.h: Add include guard.
14002 * guile/guile.h: Rename include guard.
14003 * guile/guile-internal.h: Rename include guard.
14004 * gnu-nat.h: Rename include guard.
14005 * gdb-stabs.h: Rename include guard.
14006 * frv-tdep.h: Add include guard.
14007 * f-lang.h: Add include guard.
14008 * event-loop.h: Add include guard.
14009 * darwin-nat.h: Rename include guard.
14010 * cp-abi.h: Rename include guard.
14011 * config/sparc/nm-sol2.h: Rename include guard.
14012 * config/nm-nto.h: Rename include guard.
14013 * config/nm-linux.h: Add include guard.
14014 * config/i386/nm-i386gnu.h: Rename include guard.
14015 * config/djgpp/nl_types.h: Rename include guard.
14016 * config/djgpp/langinfo.h: Rename include guard.
14017 * compile/gcc-cp-plugin.h: Add include guard.
14018 * compile/gcc-c-plugin.h: Add include guard.
14019 * compile/compile.h: Rename include guard.
14020 * compile/compile-object-run.h: Rename include guard.
14021 * compile/compile-object-load.h: Rename include guard.
14022 * compile/compile-internal.h: Rename include guard.
14023 * compile/compile-cplus.h: Rename include guard.
14024 * compile/compile-c.h: Rename include guard.
14025 * common/xml-utils.h: Rename include guard.
14026 * common/x86-xstate.h: Rename include guard.
14027 * common/version.h: Rename include guard.
14028 * common/vec.h: Rename include guard.
14029 * common/tdesc.h: Rename include guard.
14030 * common/selftest.h: Rename include guard.
14031 * common/scoped_restore.h: Rename include guard.
14032 * common/scoped_mmap.h: Rename include guard.
14033 * common/scoped_fd.h: Rename include guard.
14034 * common/safe-iterator.h: Rename include guard.
14035 * common/run-time-clock.h: Rename include guard.
14036 * common/refcounted-object.h: Rename include guard.
14037 * common/queue.h: Rename include guard.
14038 * common/ptid.h: Rename include guard.
14039 * common/print-utils.h: Rename include guard.
14040 * common/preprocessor.h: Rename include guard.
14041 * common/pathstuff.h: Rename include guard.
14042 * common/observable.h: Rename include guard.
14043 * common/netstuff.h: Rename include guard.
14044 * common/job-control.h: Rename include guard.
14045 * common/host-defs.h: Rename include guard.
14046 * common/gdb_wait.h: Rename include guard.
14047 * common/gdb_vecs.h: Rename include guard.
14048 * common/gdb_unlinker.h: Rename include guard.
14049 * common/gdb_unique_ptr.h: Rename include guard.
14050 * common/gdb_tilde_expand.h: Rename include guard.
14051 * common/gdb_sys_time.h: Rename include guard.
14052 * common/gdb_string_view.h: Rename include guard.
14053 * common/gdb_splay_tree.h: Rename include guard.
14054 * common/gdb_setjmp.h: Rename include guard.
14055 * common/gdb_ref_ptr.h: Rename include guard.
14056 * common/gdb_optional.h: Rename include guard.
14057 * common/gdb_locale.h: Rename include guard.
14058 * common/gdb_assert.h: Rename include guard.
14059 * common/filtered-iterator.h: Rename include guard.
14060 * common/filestuff.h: Rename include guard.
14061 * common/fileio.h: Rename include guard.
14062 * common/environ.h: Rename include guard.
14063 * common/common-utils.h: Rename include guard.
14064 * common/common-types.h: Rename include guard.
14065 * common/common-regcache.h: Rename include guard.
14066 * common/common-inferior.h: Rename include guard.
14067 * common/common-gdbthread.h: Rename include guard.
14068 * common/common-exceptions.h: Rename include guard.
14069 * common/common-defs.h: Rename include guard.
14070 * common/common-debug.h: Rename include guard.
14071 * common/cleanups.h: Rename include guard.
14072 * common/buffer.h: Rename include guard.
14073 * common/btrace-common.h: Rename include guard.
14074 * common/break-common.h: Rename include guard.
14075 * cli/cli-utils.h: Rename include guard.
14076 * cli/cli-style.h: Rename include guard.
14077 * cli/cli-setshow.h: Rename include guard.
14078 * cli/cli-script.h: Rename include guard.
14079 * cli/cli-interp.h: Rename include guard.
14080 * cli/cli-decode.h: Rename include guard.
14081 * cli/cli-cmds.h: Rename include guard.
14082 * charset-list.h: Add include guard.
14083 * buildsym-legacy.h: Rename include guard.
14084 * bfin-tdep.h: Add include guard.
14085 * ax.h: Rename include guard.
14086 * arm-linux-tdep.h: Add include guard.
14087 * arm-fbsd-tdep.h: Add include guard.
14088 * arch/xtensa.h: Rename include guard.
14089 * arch/tic6x.h: Add include guard.
14090 * arch/i386.h: Add include guard.
14091 * arch/arm.h: Rename include guard.
14092 * arch/arm-linux.h: Rename include guard.
14093 * arch/arm-get-next-pcs.h: Rename include guard.
14094 * arch/amd64.h: Add include guard.
14095 * arch/aarch64-insn.h: Rename include guard.
14096 * arch-utils.h: Rename include guard.
14097 * annotate.h: Add include guard.
14098 * amd64-darwin-tdep.h: Rename include guard.
14099 * aarch64-linux-tdep.h: Add include guard.
14100 * aarch64-fbsd-tdep.h: Add include guard.
14101 * aarch32-linux-nat.h: Add include guard.
14102
ab9268d2
PW
141032019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14104
14105 * macrotab.c (macro_define_internal): New function that
14106 factorizes macro_define_object_internal and macro_define_function
14107 code.
14108 (macro_define_object_internal): Use macro_define_internal.
14109 (macro_define_function): Likewise.
14110
bb0da2b4
PW
141112019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14112
14113 * macrocmd.c (extract_identifier): Return
14114 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14115 callers.
14116
424eb552
JB
141172019-02-06 John Baldwin <jhb@FreeBSD.org>
14118
14119 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14120
1688cb29
TT
141212019-02-05 Tom Tromey <tom@tromey.com>
14122
14123 * target.c (target_stack::unpush): Move assertion earlier.
14124
b5eba2d8
TT
141252019-01-30 Tom Tromey <tom@tromey.com>
14126
14127 PR python/23615:
14128 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14129 (gdbpy_parse_and_eval): Likewise.
14130 * python/python-internal.h (gdbpy_allow_threads): New class.
14131
7054e2ff
JB
141322019-01-28 John Baldwin <jhb@FreeBSD.org>
14133
14134 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14135 (aarch64_fbsd_fpregmap): Move earlier.
14136 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14137 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14138 instead of individual calls to trad_frame_set_reg_addr.
14139 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14140 earlier.
14141 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14142 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14143 instead of individual calls to trad_frame_set_reg_addr.
14144
36c25ffa
AH
141452019-01-28 Alan Hayward <alan.hayward@arm.com>
14146
14147 * CONTRIBUTE: Replace contribution list with wiki link.
14148
a0707f3c
TT
141492019-01-25 Tom Tromey <tom@tromey.com>
14150
14151 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14152
0747795c
TT
141532019-01-25 Tom Tromey <tom@tromey.com>
14154
14155 * xtensa-linux-nat.c: Fix common/ includes.
14156 * xml-support.h: Fix common/ includes.
14157 * xml-support.c: Fix common/ includes.
14158 * x86-linux-nat.c: Fix common/ includes.
14159 * windows-nat.c: Fix common/ includes.
14160 * varobj.h: Fix common/ includes.
14161 * varobj.c: Fix common/ includes.
14162 * value.c: Fix common/ includes.
14163 * valops.c: Fix common/ includes.
14164 * utils.c: Fix common/ includes.
14165 * unittests/xml-utils-selftests.c: Fix common/ includes.
14166 * unittests/utils-selftests.c: Fix common/ includes.
14167 * unittests/unpack-selftests.c: Fix common/ includes.
14168 * unittests/tracepoint-selftests.c: Fix common/ includes.
14169 * unittests/style-selftests.c: Fix common/ includes.
14170 * unittests/string_view-selftests.c: Fix common/ includes.
14171 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14172 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14173 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14174 * unittests/rsp-low-selftests.c: Fix common/ includes.
14175 * unittests/parse-connection-spec-selftests.c: Fix common/
14176 includes.
14177 * unittests/optional-selftests.c: Fix common/ includes.
14178 * unittests/offset-type-selftests.c: Fix common/ includes.
14179 * unittests/observable-selftests.c: Fix common/ includes.
14180 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14181 * unittests/memrange-selftests.c: Fix common/ includes.
14182 * unittests/memory-map-selftests.c: Fix common/ includes.
14183 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14184 * unittests/function-view-selftests.c: Fix common/ includes.
14185 * unittests/environ-selftests.c: Fix common/ includes.
14186 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14187 * unittests/common-utils-selftests.c: Fix common/ includes.
14188 * unittests/cli-utils-selftests.c: Fix common/ includes.
14189 * unittests/array-view-selftests.c: Fix common/ includes.
14190 * ui-file.c: Fix common/ includes.
14191 * tui/tui-io.c: Fix common/ includes.
14192 * tracepoint.h: Fix common/ includes.
14193 * tracepoint.c: Fix common/ includes.
14194 * tracefile-tfile.c: Fix common/ includes.
14195 * top.h: Fix common/ includes.
14196 * top.c: Fix common/ includes.
14197 * thread.c: Fix common/ includes.
14198 * target/waitstatus.h: Fix common/ includes.
14199 * target/waitstatus.c: Fix common/ includes.
14200 * target.h: Fix common/ includes.
14201 * target.c: Fix common/ includes.
14202 * target-memory.c: Fix common/ includes.
14203 * target-descriptions.c: Fix common/ includes.
14204 * symtab.h: Fix common/ includes.
14205 * symfile.c: Fix common/ includes.
14206 * stap-probe.c: Fix common/ includes.
14207 * spu-linux-nat.c: Fix common/ includes.
14208 * sparc-nat.c: Fix common/ includes.
14209 * source.c: Fix common/ includes.
14210 * solib.c: Fix common/ includes.
14211 * solib-target.c: Fix common/ includes.
14212 * ser-unix.c: Fix common/ includes.
14213 * ser-tcp.c: Fix common/ includes.
14214 * ser-pipe.c: Fix common/ includes.
14215 * ser-base.c: Fix common/ includes.
14216 * selftest-arch.c: Fix common/ includes.
14217 * s12z-tdep.c: Fix common/ includes.
14218 * rust-exp.y: Fix common/ includes.
14219 * rs6000-aix-tdep.c: Fix common/ includes.
14220 * riscv-tdep.c: Fix common/ includes.
14221 * remote.c: Fix common/ includes.
14222 * remote-notif.h: Fix common/ includes.
14223 * remote-fileio.h: Fix common/ includes.
14224 * remote-fileio.c: Fix common/ includes.
14225 * regcache.h: Fix common/ includes.
14226 * regcache.c: Fix common/ includes.
14227 * record-btrace.c: Fix common/ includes.
14228 * python/python.c: Fix common/ includes.
14229 * python/py-type.c: Fix common/ includes.
14230 * python/py-inferior.c: Fix common/ includes.
14231 * progspace.h: Fix common/ includes.
14232 * producer.c: Fix common/ includes.
14233 * procfs.c: Fix common/ includes.
14234 * proc-api.c: Fix common/ includes.
14235 * printcmd.c: Fix common/ includes.
14236 * ppc-linux-nat.c: Fix common/ includes.
14237 * parser-defs.h: Fix common/ includes.
14238 * osdata.c: Fix common/ includes.
14239 * obsd-nat.c: Fix common/ includes.
14240 * nat/x86-linux.c: Fix common/ includes.
14241 * nat/x86-linux-dregs.c: Fix common/ includes.
14242 * nat/x86-dregs.h: Fix common/ includes.
14243 * nat/x86-dregs.c: Fix common/ includes.
14244 * nat/ppc-linux.c: Fix common/ includes.
14245 * nat/mips-linux-watch.h: Fix common/ includes.
14246 * nat/mips-linux-watch.c: Fix common/ includes.
14247 * nat/linux-waitpid.c: Fix common/ includes.
14248 * nat/linux-ptrace.h: Fix common/ includes.
14249 * nat/linux-ptrace.c: Fix common/ includes.
14250 * nat/linux-procfs.c: Fix common/ includes.
14251 * nat/linux-personality.c: Fix common/ includes.
14252 * nat/linux-osdata.c: Fix common/ includes.
14253 * nat/linux-namespaces.c: Fix common/ includes.
14254 * nat/linux-btrace.h: Fix common/ includes.
14255 * nat/linux-btrace.c: Fix common/ includes.
14256 * nat/fork-inferior.c: Fix common/ includes.
14257 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14258 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14259 * nat/aarch64-linux.c: Fix common/ includes.
14260 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14261 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14262 * namespace.h: Fix common/ includes.
14263 * mips-linux-tdep.c: Fix common/ includes.
14264 * minsyms.c: Fix common/ includes.
14265 * mi/mi-parse.h: Fix common/ includes.
14266 * mi/mi-main.c: Fix common/ includes.
14267 * mi/mi-cmd-env.c: Fix common/ includes.
14268 * memrange.h: Fix common/ includes.
14269 * memattr.c: Fix common/ includes.
14270 * maint.h: Fix common/ includes.
14271 * maint.c: Fix common/ includes.
14272 * main.c: Fix common/ includes.
14273 * machoread.c: Fix common/ includes.
14274 * location.c: Fix common/ includes.
14275 * linux-thread-db.c: Fix common/ includes.
14276 * linux-nat.c: Fix common/ includes.
14277 * linux-fork.c: Fix common/ includes.
14278 * inline-frame.c: Fix common/ includes.
14279 * infrun.c: Fix common/ includes.
14280 * inflow.c: Fix common/ includes.
14281 * inferior.h: Fix common/ includes.
14282 * inferior.c: Fix common/ includes.
14283 * infcmd.c: Fix common/ includes.
14284 * inf-ptrace.c: Fix common/ includes.
14285 * inf-child.c: Fix common/ includes.
14286 * ia64-linux-nat.c: Fix common/ includes.
14287 * i387-tdep.c: Fix common/ includes.
14288 * i386-tdep.c: Fix common/ includes.
14289 * i386-linux-tdep.c: Fix common/ includes.
14290 * i386-linux-nat.c: Fix common/ includes.
14291 * i386-go32-tdep.c: Fix common/ includes.
14292 * i386-fbsd-tdep.c: Fix common/ includes.
14293 * i386-fbsd-nat.c: Fix common/ includes.
14294 * guile/scm-type.c: Fix common/ includes.
14295 * guile/guile.c: Fix common/ includes.
14296 * go32-nat.c: Fix common/ includes.
14297 * gnu-nat.c: Fix common/ includes.
14298 * gdbthread.h: Fix common/ includes.
14299 * gdbarch-selftests.c: Fix common/ includes.
14300 * gdb_usleep.c: Fix common/ includes.
14301 * gdb_select.h: Fix common/ includes.
14302 * gdb_bfd.c: Fix common/ includes.
14303 * gcore.c: Fix common/ includes.
14304 * fork-child.c: Fix common/ includes.
14305 * findvar.c: Fix common/ includes.
14306 * fbsd-nat.c: Fix common/ includes.
14307 * event-top.c: Fix common/ includes.
14308 * event-loop.c: Fix common/ includes.
14309 * dwarf2read.c: Fix common/ includes.
14310 * dwarf2loc.c: Fix common/ includes.
14311 * dwarf2-frame.c: Fix common/ includes.
14312 * dwarf-index-cache.c: Fix common/ includes.
14313 * dtrace-probe.c: Fix common/ includes.
14314 * disasm-selftests.c: Fix common/ includes.
14315 * defs.h: Fix common/ includes.
14316 * csky-tdep.c: Fix common/ includes.
14317 * cp-valprint.c: Fix common/ includes.
14318 * cp-support.h: Fix common/ includes.
14319 * cp-support.c: Fix common/ includes.
14320 * corelow.c: Fix common/ includes.
14321 * completer.h: Fix common/ includes.
14322 * completer.c: Fix common/ includes.
14323 * compile/compile.c: Fix common/ includes.
14324 * compile/compile-loc2c.c: Fix common/ includes.
14325 * compile/compile-cplus-types.c: Fix common/ includes.
14326 * compile/compile-cplus-symbols.c: Fix common/ includes.
14327 * command.h: Fix common/ includes.
14328 * cli/cli-dump.c: Fix common/ includes.
14329 * cli/cli-cmds.c: Fix common/ includes.
14330 * charset.c: Fix common/ includes.
14331 * build-id.c: Fix common/ includes.
14332 * btrace.h: Fix common/ includes.
14333 * btrace.c: Fix common/ includes.
14334 * breakpoint.h: Fix common/ includes.
14335 * breakpoint.c: Fix common/ includes.
14336 * ax.h:
14337 (enum agent_op): Fix common/ includes.
14338 * ax-general.c (struct aop_map): Fix common/ includes.
14339 * ax-gdb.c: Fix common/ includes.
14340 * auxv.c: Fix common/ includes.
14341 * auto-load.c: Fix common/ includes.
14342 * arm-tdep.c: Fix common/ includes.
14343 * arch/riscv.c: Fix common/ includes.
14344 * arch/ppc-linux-common.c: Fix common/ includes.
14345 * arch/i386.c: Fix common/ includes.
14346 * arch/arm.c: Fix common/ includes.
14347 * arch/arm-linux.c: Fix common/ includes.
14348 * arch/arm-get-next-pcs.c: Fix common/ includes.
14349 * arch/amd64.c: Fix common/ includes.
14350 * arch/aarch64.c: Fix common/ includes.
14351 * arch/aarch64-insn.c: Fix common/ includes.
14352 * arch-utils.c: Fix common/ includes.
14353 * amd64-windows-tdep.c: Fix common/ includes.
14354 * amd64-tdep.c: Fix common/ includes.
14355 * amd64-sol2-tdep.c: Fix common/ includes.
14356 * amd64-obsd-tdep.c: Fix common/ includes.
14357 * amd64-nbsd-tdep.c: Fix common/ includes.
14358 * amd64-linux-tdep.c: Fix common/ includes.
14359 * amd64-linux-nat.c: Fix common/ includes.
14360 * amd64-fbsd-tdep.c: Fix common/ includes.
14361 * amd64-fbsd-nat.c: Fix common/ includes.
14362 * amd64-dicos-tdep.c: Fix common/ includes.
14363 * amd64-darwin-tdep.c: Fix common/ includes.
14364 * agent.c: Fix common/ includes.
14365 * ada-lang.h: Fix common/ includes.
14366 * ada-lang.c: Fix common/ includes.
14367 * aarch64-tdep.c: Fix common/ includes.
14368
2f5c153e
TT
143692019-01-25 Tom Tromey <tom@tromey.com>
14370
14371 * common/create-version.sh: Use common/version.h.
14372
adc6a863
PA
143732019-01-24 Pedro Alves <palves@redhat.com>
14374
14375 * infrun.c (signal_stop, signal_print, signal_program)
14376 (signal_catch, signal_pass): Now arrays instead of pointers.
14377 (update_signals_program_target, do_target_resume)
14378 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14379 * linux-nat.c (linux_nat_target::pass_signals)
14380 (linux_nat_target::create_inferior, linux_nat_target::attach):
14381 Adjust.
14382 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14383 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14384 * procfs.c (procfs_target::pass_signals): Adjust.
14385 * record-full.c (record_full_target::resume): Adjust.
14386 * remote.c (remote_target::pass_signals)
14387 (remote_target::program_signals): Adjust.
14388 * target-debug.h (target_debug_print_signals): Now takes a
14389 gdb::array_view as parameter. Adjust.
14390 * target.h (target_ops) <pass_signals, program_signals>: Replace
14391 pointer and length parameters with gdb::array_view.
14392 (target_pass_signals, target_program_signals): Likewise.
14393 * target-delegates.c: Regenerate.
14394
3046d67a
PA
143952019-01-24 Pedro Alves <palves@redhat.com>
14396
14397 * common/forward-scope-exit.h
14398 (forward_scope_exit::forward_scope_exit): Pass arguments to
14399 m_bind_function directly, instead of creating a std::bind and
14400 copying that.
14401
353229bf
AH
144022019-01-24 Alan Hayward <alan.hayward@arm.com>
14403
14404 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14405 for static members.
14406 (pass_in_v_vfp_candidate): Likewise.
14407
311dc83a
TT
144082019-01-23 Tom Tromey <tom@tromey.com>
14409 Pedro Alves <palves@redhat.com>
14410
14411 * regcache.c (class regcache_invalidator): Remove.
14412 (regcache::raw_write): Use make_scope_exit.
14413
296bd123
TT
144142019-01-23 Tom Tromey <tom@tromey.com>
14415
14416 * ui-out.h (class ui_out_emit_type): Update comment.
14417
979a0d13
TT
144182019-01-23 Tom Tromey <tom@tromey.com>
14419
14420 * infrun.c (fetch_inferior_event): Update comment.
14421
d238133d
TT
144222019-01-23 Tom Tromey <tom@tromey.com>
14423 Pedro Alves <palves@redhat.com>
14424
14425 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14426 parameter.
14427 (fetch_inferior_event): Use SCOPE_EXIT.
14428
14429
9885e6bb
TT
144302019-01-23 Tom Tromey <tom@tromey.com>
14431 Pedro Alves <palves@redhat.com>
14432
14433 * infrun.c (disable_thread_events): Delete.
14434 (stop_all_threads): Use SCOPE_EXIT.
14435
286526c1
TT
144362019-01-23 Tom Tromey <tom@tromey.com>
14437 Pedro Alves <palves@redhat.com>
14438
14439 * symfile.c: Include forward-scope-exit.h.
14440 (clear_symtab_users_cleanup): Replace forward declaration with
14441 a FORWARD_SCOPE_EXIT.
14442 (syms_from_objfile_1): Use the forward_scope_exit and
14443 gdb::optional instead of cleanup_function.
14444 (reread_symbols): Use the forward_scope_exit instead of
14445 cleanup_function.
14446 (clear_symtab_users_cleanup): Remove function.
14447
1db93f14
TT
144482019-01-23 Tom Tromey <tom@tromey.com>
14449 Pedro Alves <palves@redhat.com>
14450
14451 * linux-nat.c: Include scope-exit.h.
14452 (cleanup_target_stop): Remove.
14453 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14454 SCOPE_EXIT.
14455
2cc83d1e
TT
144562019-01-23 Tom Tromey <tom@tromey.com>
14457 Pedro Alves <palves@redhat.com>
14458
14459 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14460 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14461
694c6bf5
TT
144622019-01-23 Tom Tromey <tom@tromey.com>
14463 Andrew Burgess <andrew.burgess@embecosm.com>
14464 Pedro Alves <palves@redhat.com>
14465
14466 * infrun.c (fetch_inferior_event): Use scope_exit.
14467 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14468 * top.c (execute_command): Use scope_exit.
14469 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14470 * utils.c (do_bpstat_clear_actions_cleanup)
14471 (make_bpstat_clear_actions_cleanup): Remove.
14472
4c41382a
TT
144732019-01-23 Tom Tromey <tom@tromey.com>
14474 Pedro Alves <palves@redhat.com>
14475
14476 * infrun.c: Include "common/scope-exit.h"
14477 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14478 (wait_for_inferior): Use SCOPE_EXIT.
14479 (fetch_inferior_event): Use scope_exit.
14480
89f8fb50
TT
144812019-01-23 Tom Tromey <tom@tromey.com>
14482 Pedro Alves <palves@redhat.com>
14483
14484 * breakpoint.c (create_breakpoint): Remove cleanup.
14485
5419bdae
TT
144862019-01-23 Tom Tromey <tom@tromey.com>
14487 Andrew Burgess <andrew.burgess@embecosm.com>
14488 Pedro Alves <palves@redhat.com>
14489
e587ef42
PA
144902019-01-23 Pedro Alves <palves@redhat.com>
14491
14492 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14493
77f0e74c
PA
144942019-01-23 Pedro Alves <palves@redhat.com>
14495 Andrew Burgess <andrew.burgess@embecosm.com>
14496
14497 * gdbthread.h: Include "common/forward-scope-exit.h".
14498 (scoped_finish_thread_state): Redefine custom class in terms of
14499 forward_scope_exit.
14500
5b9b3e53
PA
145012019-01-23 Pedro Alves <palves@redhat.com>
14502 Andrew Burgess <andrew.burgess@embecosm.com>
14503
14504 * common/forward-scope-exit.h: New file.
14505
54b65c9b
PA
145062019-01-23 Pedro Alves <palves@redhat.com>
14507 Andrew Burgess <andrew.burgess@embecosm.com>
14508 Tom Tromey <tom@tromey.com>
14509
14510 * common/scope-exit.h: New file.
14511
cf08fb29
PA
145122019-01-23 Pedro Alves <palves@redhat.com>
14513
14514 * common/preprocessor.h (ESC): Rename to ...
14515 (ESC_PARENS): ... this.
14516 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14517 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14518
ae73e2e2
TT
145192019-01-23 Tom Tromey <tom@tromey.com>
14520
14521 * language.h (class scoped_switch_to_sym_language_if_auto):
14522 Initialize m_lang in both cases.
14523
6594e122
AH
145242019-01-23 Alan Hayward <alan.hayward@arm.com>
14525
14526 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14527 with XCNEW.
14528
a7c9855d
TT
145292019-01-22 Tom Tromey <tom@tromey.com>
14530
14531 * corelow.c: Do not include sys/file.h.
14532
93cc1d53
TT
145332019-01-22 Tom Tromey <tom@tromey.com>
14534
14535 * tui/tui-wingeneral.h: Include gdb_curses.h.
14536
38561778
TT
145372019-01-22 Tom Tromey <tom@tromey.com>
14538
14539 * source-cache.h (class source_cache) <get_source_lines,
14540 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14541
37b3ab5b
TT
145422019-01-22 Tom Tromey <tom@tromey.com>
14543
14544 * remote-fileio.h (struct remote_target): Declare.
14545
3fabc016
TT
145462019-01-22 Tom Tromey <tom@tromey.com>
14547
14548 * python/py-arch.c: Do not include py-ref.h.
14549 * python/py-bpevent.c: Do not include py-ref.h.
14550 * python/py-cmd.c: Do not include py-ref.h.
14551 * python/py-continueevent.c: Do not include py-ref.h.
14552 * python/py-event.h: Do not include py-ref.h.
14553 * python/py-evtregistry.c: Do not include py-ref.h.
14554 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14555 * python/py-frame.c: Do not include py-ref.h.
14556 * python/py-framefilter.c: Do not include py-ref.h.
14557 * python/py-function.c: Do not include py-ref.h.
14558 * python/py-infevents.c: Do not include py-ref.h.
14559 * python/py-linetable.c: Do not include py-ref.h.
14560 * python/py-objfile.c: Do not include py-ref.h.
14561 * python/py-param.c: Do not include py-ref.h.
14562 * python/py-prettyprint.c: Do not include py-ref.h.
14563 * python/py-progspace.c: Do not include py-ref.h.
14564 * python/py-symbol.c: Do not include py-ref.h.
14565 * python/py-symtab.c: Do not include py-ref.h.
14566 * python/py-type.c: Do not include py-ref.h.
14567 * python/py-unwind.c: Do not include py-ref.h.
14568 * python/py-utils.c: Do not include py-ref.h.
14569 * python/py-value.c: Do not include py-ref.h.
14570 * python/py-varobj.c: Do not include py-ref.h.
14571 * python/py-xmethods.c: Do not include py-ref.h.
14572 * python/python.c: Do not include py-ref.h.
14573 * varobj.c: Do not include py-ref.h.
14574
6b4d7774
TT
145752019-01-22 Tom Tromey <tom@tromey.com>
14576
14577 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14578 keyword for bcache.
14579
7af7e9b5
TT
145802019-01-22 Tom Tromey <tom@tromey.com>
14581
14582 * compile/compile-cplus-types.c: Remove a comment by #include.
14583
951d1049
TT
145842019-01-22 Tom Tromey <tom@tromey.com>
14585
14586 * compile/gcc-c-plugin.h: Include compile-internal.h.
14587
d65d5705
TT
145882019-01-22 Tom Tromey <tom@tromey.com>
14589
14590 * stabsread.c (EXTERN): Do not define.
14591 (symnum, next_symbol_text_func, processing_gcc_compilation)
14592 (within_function, global_sym_chain, global_stabs)
14593 (previous_stab_code, this_object_header_files)
14594 (n_this_object_header_files)
14595 (n_allocated_this_object_header_files): Define.
14596 * stabsread.h (EXTERN): Never define. Use "extern".
14597
b6fb1ee5
PW
145982019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14599
14600 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14601 history_value.
14602
be6d4f74
TT
146032019-01-21 Tom Tromey <tom@tromey.com>
14604
14605 * ui-out.c: Fix includes.
14606 * tui/tui-source.c: Fix includes.
14607 * target.c: Fix includes.
14608 * remote.c: Fix includes.
14609 * regcache.c: Fix includes.
14610 * python/py-block.c: Fix includes.
14611 * printcmd.c: Fix includes.
14612 * or1k-tdep.c: Fix includes.
14613 * mi/mi-main.c: Fix includes.
14614 * m32r-tdep.c: Fix includes.
14615 * csky-tdep.c: Fix includes.
14616 * compile/compile-cplus-types.c: Fix includes.
14617 * cli/cli-interp.c: Fix includes.
14618
73021deb
AH
146192019-01-21 Alan Hayward <alan.hayward@arm.com>
14620
14621 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14622 for padding.
14623
7932255d
TT
146242019-01-16 Tom Tromey <tom@tromey.com>
14625
14626 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14627 earlier.
14628 (struct objfile) <msymbols_range>: Move from top level.
14629 <msymbols>: New method.
14630 (class objfile_msymbols): Remove.
14631 * symtab.c (default_collect_symbol_completion_matches_break_on):
14632 Update.
14633 * symmisc.c (dump_msymbols): Update.
14634 * stabsread.c (scan_file_globals): Update.
14635 * objc-lang.c (info_selectors_command, info_classes_command)
14636 (find_methods): Update.
14637 * minsyms.c (find_solib_trampoline_target): Update.
14638 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14639 * coffread.c (coff_symfile_read): Update.
14640 * ada-lang.c (ada_lookup_simple_minsym)
14641 (ada_collect_symbol_completion_matches): Update.
14642
604b1bfb
TT
146432019-01-16 Tom Tromey <tom@tromey.com>
14644
14645 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14646 type. Remove no-argument constructor.
14647 <iterator::operator++>: Simplify.
14648 <begin>: Update.
14649 <end>: Use minimal_symbol_count.
14650
f252c6d5
TT
146512019-01-16 Tom Tromey <tom@tromey.com>
14652
14653 * objfiles.h (struct objfile) <psymtabs>: New method.
14654 (class objfile_psymtabs): Remove.
14655 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14656 typedef.
14657 <range>: New method.
14658 (require_partial_symbols): Change return type.
14659 * psymtab.c (require_partial_symbols)
14660 (psym_expand_symtabs_matching): Update.
14661 * mdebugread.c (parse_partial_symbols): Update.
14662 * dbxread.c (dbx_end_psymtab): Update.
14663
b669c953
TT
146642019-01-15 Tom Tromey <tom@tromey.com>
14665
14666 * symtab.c (lookup_objfile_from_block)
14667 (lookup_symbol_in_objfile_symtabs)
14668 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14669 (find_line_symtab, info_sources_command)
14670 (default_collect_symbol_completion_matches_break_on)
14671 (make_source_files_completion_list): Update.
14672 * symmisc.c (print_objfile_statistics, dump_objfile)
14673 (maintenance_print_symbols, maintenance_info_symtabs)
14674 (maintenance_check_symtabs, maintenance_info_line_tables):
14675 Update.
14676 * source.c (select_source_symtab)
14677 (forget_cached_source_info_for_objfile): Update.
14678 * objfiles.h (class objfile_compunits): Remove.
14679 (struct objfile) <compunits_range>: New typedef.
14680 (compunits): New method.
14681 * objfiles.c (objfile_relocate1): Update.
14682 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14683 * maint.c (count_symtabs_and_blocks): Update.
14684 * linespec.c (iterate_over_all_matching_symtabs): Update.
14685 * cp-support.c (add_symbol_overload_list_qualified): Update.
14686 * coffread.c (coff_symtab_read): Update.
14687 * ada-lang.c (add_nonlocal_symbols)
14688 (ada_collect_symbol_completion_matches)
14689 (ada_add_global_exceptions): Update.
14690
7e955d83
TT
146912019-01-15 Tom Tromey <tom@tromey.com>
14692
14693 * progspace.h (program_space) <objfiles_safe_range>: New
14694 typedef.
14695 <objfiles_safe>: New method.
14696 * objfiles.h (class all_objfiles_safe): Remove.
14697 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14698 * jit.c (jit_inferior_exit_hook): Update.
14699
2030c079
TT
147002019-01-17 Tom Tromey <tom@tromey.com>
14701
14702 * progspace.h (program_space) <objfiles_range>: New typedef.
14703 <objfiles>: New method.
14704 <objfiles_head>: Rename from objfiles.
14705 (object_files): Update.
14706 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14707 * guile/scm-pretty-print.c
14708 (ppscm_find_pretty_printer_from_objfiles): Update.
14709 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14710 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14711 Update.
14712 * python/py-progspace.c (pspy_get_objfiles): Update.
14713 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14714 Update.
14715 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14716 (objfpy_lookup_objfile_by_build_id): Update.
14717 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14718 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14719 Update.
14720 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14721 (expand_symtab_containing_pc, lookup_objfile_from_block)
14722 (lookup_static_symbol, basic_lookup_transparent_type)
14723 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14724 (find_line_symtab, info_sources_command)
14725 (default_collect_symbol_completion_matches_break_on)
14726 (make_source_files_completion_list, find_main_name): Update.
14727 * symmisc.c (print_symbol_bcache_statistics)
14728 (print_objfile_statistics, maintenance_print_symbols)
14729 (maintenance_print_msymbols, maintenance_print_objfiles)
14730 (maintenance_info_symtabs, maintenance_check_symtabs)
14731 (maintenance_expand_symtabs, maintenance_info_line_tables):
14732 Update.
14733 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14734 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14735 (map_overlay_command, unmap_overlay_command)
14736 (simple_overlay_update, expand_symtabs_matching)
14737 (map_symbol_filenames): Update.
14738 * symfile-debug.c (set_debug_symfile): Update.
14739 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14740 Update.
14741 * source.c (select_source_symtab, forget_cached_source_info):
14742 Update.
14743 * solib.c (solib_read_symbols): Update.
14744 * solib-spu.c (append_ocl_sos): Update.
14745 * psymtab.c (maintenance_print_psymbols)
14746 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14747 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14748 * printcmd.c (info_symbol_command): Update.
14749 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14750 Update.
14751 * objfiles.h (class all_objfiles): Remove.
14752 * objfiles.c (have_partial_symbols, have_full_symbols)
14753 (have_minimal_symbols, qsort_cmp, update_section_map)
14754 (shared_objfile_contains_address_p)
14755 (default_iterate_over_objfiles_in_search_order): Update.
14756 * objc-lang.c (info_selectors_command, info_classes_command)
14757 (find_methods): Update.
14758 * minsyms.c (find_solib_trampoline_target): Update.
14759 * maint.c (maintenance_info_sections)
14760 (maintenance_translate_address, count_symtabs_and_blocks):
14761 Update.
14762 * main.c (captured_main_1): Update.
14763 * linux-thread-db.c (try_thread_db_load_from_pdir)
14764 (has_libpthread): Update.
14765 * linespec.c (iterate_over_all_matching_symtabs)
14766 (search_minsyms_for_name): Update.
14767 * jit.c (jit_find_objf_with_entry_addr): Update.
14768 * hppa-tdep.c (find_unwind_entry)
14769 (hppa_lookup_stub_minimal_symbol): Update.
14770 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14771 Update.
14772 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14773 (elf_gnu_ifunc_resolve_by_got): Update.
14774 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14775 * dwarf-index-write.c (save_gdb_index_command): Update.
14776 * cp-support.c (add_symbol_overload_list_qualified): Update.
14777 * breakpoint.c (create_overlay_event_breakpoint)
14778 (create_longjmp_master_breakpoint)
14779 (create_std_terminate_master_breakpoint)
14780 (create_exception_master_breakpoint): Update.
14781 * blockframe.c (find_pc_partial_function): Update.
14782 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14783 (ada_collect_symbol_completion_matches)
14784 (ada_add_global_exceptions): Update.
14785
776489e0
TT
147862019-01-17 Tom Tromey <tom@tromey.com>
14787
14788 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14789 declare VEC.
14790 (solib_target_parse_libraries): Change return type.
14791 (library_list_start_segment, library_list_start_section)
14792 (library_list_end_library, library_list_start_library); Update.
14793 (solib_target_free_library_list): Remove.
14794 (solib_target_parse_libraries): Remove cleanup. Change return
14795 type.
14796 (solib_target_current_sos): Update.
14797
6471e7d2
TT
147982019-01-17 Tom Tromey <tromey@bapiya>
14799
14800 * valprint.c: Replace "the the" with "the".
14801 * symtab.c: Replace "the the" with "the".
14802 * solib.c: Replace "the the" with "the".
14803 * solib-dsbt.c: Replace "the the" with "the".
14804 * linespec.c: Replace "the the" with "the".
14805 * dwarf2loc.h: Replace "the the" with "the".
14806 * amd64-windows-tdep.c: Replace "the the" with "the".
14807 * aarch64-tdep.c: Replace "the the" with "the".
14808
c24bdb02
KS
148092019-01-16 Keith Seitz <keiths@redhat.com>
14810
14811 PR gdb/23773
14812 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14813 <builder>: Rename to ..
14814 <m_builder>: ... this and make private.
14815 (dwarf2_cu::get_builder): New method. Change all users of
14816 `builder' to use this method.
14817 (dwarf2_start_symtab): Move to ...
14818 (dwarf2_cu::start_symtab): ... here. Update all callers
14819 (setup_type_unit_groups): Move to ...
14820 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14821 callers.
14822 (dwarf2_cu::reset_builder): New method.
14823 (process_full_compunit, process_full_type_unit): Use
14824 dwarf2_cu::reset_builder.
14825 (follow_die_offset): Record the ancestor CU if it is different
14826 from the followed DIE's CU.
14827 (follow_die_sig_1): Likewise.
14828
8d64371b
TT
148292019-01-15 Tom Tromey <tom@tromey.com>
14830
14831 * remote.c (class remote_state) <buf>: Now a char_vector.
14832 <buf_size>: Remove.
14833 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14834 parameter.
14835 (remote_target::getpkt_or_notif_sane_1)
14836 (remote_target::getpkt_sane)
14837 (remote_target::getpkt_or_notif_sane): Likewise.
14838 (class remote_target) <putpkt>: New overload.
14839 (remote_target::read_frame): Change type of "buf_p". Remove
14840 sizeof_p parameter.
14841 (packet_ok): New overload.
14842 (packet_check_result): New overload.
14843 Update all uses.
14844
bb277751
TT
148452019-01-14 Tom Tromey <tom@tromey.com>
14846
14847 * remote-notif.c (handle_notification, remote_notif_ack)
14848 (remote_notif_parse): Make "buf" const.
14849 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14850 const.
14851 (remote_notif_parse, remote_notif_ack, handle_notification):
14852 Likewise.
14853 * remote.c (remote_notif_stop_parse): Make "buf" const.
14854 (remote_target::remote_parse_stop_reply): Make "buf" const.
14855 (remote_notif_stop_ack): Make "buf" const.
14856
05be00a8
TT
148572019-01-14 Tom Tromey <tom@tromey.com>
14858
14859 * remote.c (remote_console_output): Make parameter const.
14860
491adeca
TT
148612019-01-14 Tom Tromey <tom@tromey.com>
14862
14863 * target-debug.h (target_debug_print_signals): Constify.
14864 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14865 * procfs.c (procfs_target::pass_signals): Update.
14866 * linux-nat.c (linux_nat_target::pass_signals): Update.
14867 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14868 * target-delegates.c: Rebuild.
14869 * remote.c (remote_target::program_signals): Update.
14870 (remote_target::pass_signals): Update.
14871 * target.c (target_pass_signals): Constify argument.
14872 (target_program_signals): Likewise.
14873 * target.h (struct target_ops) <pass_signals, program_signals>:
14874 Constify argument.
14875 (target_pass_signals, target_program_signals): Constify argument.
14876
bbd94648
TT
148772019-01-14 Tom Tromey <tom@tromey.com>
14878
14879 PR tui/28819:
14880 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14881
6f072a10
PFC
148822019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14883
14884 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14885 field.
14886 * rs6000-tdep.c: Include reggroups.h.
14887 (IS_V_ALIAS_PSEUDOREG): Define.
14888 (rs6000_register_name): Return names for the "vX" aliases.
14889 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14890 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14891 aliases. Call default_register_reggroup_p for all other
14892 pseudo-registers.
14893 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14894 New functions.
14895 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14896 Handle "vX" aliases.
14897 (v_alias_pseudo_register_collect): New function.
14898 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14899 (rs6000_gdbarch_init): Initialize "vX" aliases as
14900 pseudo-registers. Restore registration of
14901 rs6000_pseudo_register_reggroup_p with
14902 set_tdesc_pseudo_register_reggroup_p.
14903
1a782351
MF
149042019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14905
14906 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14907 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14908 set_gdbarch_num_pseudo_regs.
14909
d73cff18
PW
149102019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14911
14912 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14913 Remove arg prefixname, add do_set and do_show.
14914 Add member functions set_list and show_list.
14915 * cli/cli-style.c (class cli_style_option): Update accordingly.
14916 (style_set_list): Move to file scope.
14917 (style_show_list): Likewise.
14918 (set_style): Call help_list.
14919 (show_style): Call cmd_show_list.
14920 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14921 Update to use the new macro.
14922
60a90376
JB
149232019-10-12 Joel Brobecker <brobecker@adacore.com>
14924
14925 * ada-lang.c (_initialize_ada_language): Expand the help text
14926 for the "catch exception" command.
14927
9d7c67bf
PW
149282019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14929
14930 * symtab.c (matching_obj_sections): Initialize obj,
14931 declare it closer to its usage.
14932
7cf47dc4
TT
149332019-01-10 Tom Tromey <tom@tromey.com>
14934
14935 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14936 (basic_inf_threads_range): Remove.
14937 (inf_threads_range, inf_non_exited_threads_range)
14938 (safe_inf_threads_range): Use next_adapter.
14939
d3cb6808
KS
149402019-01-10 Keith Seitz <keiths@redhat.com>
14941
14942 PR gdb/23712
14943 PR symtab/23010
14944 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14945 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14946
63a20375
KS
149472019-01-10 Keith Seitz <keiths@redhat.com>
14948
14949 PR gdb/23712
14950 PR symtab/23010
14951 * dictionary.c (pending_to_vector): Remove.
14952 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14953 Remove _1 suffix, replacing functions of the same name. Update
14954 all callers.
14955 (dict_create_hashed, dict_create_hashed_expandable)
14956 (dict_create_linear, dict_create_linear_expandable, dict_free)
14957 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14958 Make functions static.
14959
b026f593
KS
149602019-01-10 Keith Seitz <keiths@redhat.com>
14961
14962 PR gdb/23712
14963 PR symtab/23010
14964 * dictionary.h (struct dictionary): Replace declaration with
14965 multidictionary.
14966 (dict_create_hashed, dict_create_hashed_expandable)
14967 (dict_create_linear, dict_create_linear_expandable)
14968 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14969 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14970 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14971 taking multidictionary argument.
14972 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14973 * block.h (struct block) <dict>: Change to multidictionary
14974 and rename `multidict'.
14975 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14976 symmisc.c: Update all dictionary references to multidictionary.
14977
c7748ee9
KS
149782019-01-10 Keith Seitz <keiths@redhat.com>
14979
14980 PR gdb/23712
14981 PR symtab/23010
14982 * dictionary.c: Include unordered_map.
14983 (pending_to_vector): New function.
14984 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14985 Rewrite the non-"_1" functions to take vector instead
14986 of linked list.
14987 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14988 "new" _1 versions of the same name.
14989 (multidictionary): Define.
14990 (std::hash<enum language): New definition.
14991 (collate_pending_symbols_by_language, mdict_create_hashed)
14992 (mdict_create_hashed_expandable, mdict_create_linear)
14993 (mdict_create_linear_expandable, mdict_free)
14994 (find_language_dictionary, create_new_language_dictionary)
14995 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14996 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14997 (mdict_size, mdict_empty): New functions.
14998 * dictionary.h (mdict_iterator): Define.
14999
67aa1f3c
PA
150002019-01-10 Pedro Alves <palves@redhat.com>
15001
15002 * breakpoint.c (read_uploaded_action)
15003 (create_tracepoint_from_upload): Adjust to use
15004 gdb::unique_xmalloc_ptr.
15005 * ctf.c (ctf_write_uploaded_tp):
15006 (SET_ARRAY_FIELD): Use emplace_back.
15007 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15008 * tracefile-tfile.c (tfile_write_uploaded_tp):
15009 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15010 gdb::unique_xmalloc_ptr.
15011 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15012 at_string, cond_string, cmd_strings>: Replace char pointers
15013 with gdb::unique_xmalloc_ptr.
15014
2f667667
PA
150152019-01-10 Pedro Alves <palves@redhat.com>
15016
15017 * solib-target.c (library_list_start_library): Don't xstrdup name.
15018
36cb7237
PA
150192019-01-10 Pedro Alves <palves@redhat.com>
15020
15021 * mdebugread.c (parse_partial_symbols): Use
15022 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15023
da584958
AB
150242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15025
15026 * linux-fork.c (scoped_switch_fork_info)
15027 <~scoped_switch_fork_info>: Fix incorrect variable name.
15028
1ef8573c
AB
150292019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15030
15031 * linux-fork.c (scoped_switch_fork_info)
15032 <scoped_switch_fork_info>: Make explicit.
15033 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15034
8d7bcccb
TT
150352019-01-10 Tom Tromey <tom@tromey.com>
15036
15037 * objfiles.h (objfile::reset_psymtabs): Update.
15038 * objfiles.c (objfile::objfile): Update.
15039 * psymtab.h (psymtab_storage::obstack): Update.
15040 (psymtab_storage::m_obstack): Use gdb::optional.
15041 (class psymtab_storage): Update comment. Remove objfile
15042 parameter.
15043 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15044
b596a3c7
TT
150452019-01-10 Tom Tromey <tom@tromey.com>
15046
15047 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15048 <free_psymtabs>: Now private.
15049 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15050 (allocate_psymtab): Use new method.
15051
a9342b62
TT
150522019-01-10 Tom Tromey <tom@tromey.com>
15053
15054 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15055 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15056 * mdebugread.c (parse_partial_symbols): Use
15057 allocate_dependencies.
15058 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15059 allocate_dependencies.
15060 (process_psymtab_comp_unit_reader)
15061 (build_type_psymtab_dependencies): Likewise.
15062 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15063
5af70966
TT
150642019-01-10 Tom Tromey <tom@tromey.com>
15065
15066 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15067 PSYMBOL_SET_LANGUAGE.
15068 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15069
5923a04c
TT
150702019-01-10 Tom Tromey <tom@tromey.com>
15071
15072 * psymtab.h (psymtab_storage::obstack): New method.
15073 <m_obstack>: Rename from obstack; now private.
15074 * psymtab.c (psymtab_storage): Update.
15075 * dwarf2read.c (create_addrmap_from_index)
15076 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15077 Update.
15078
6d6a12bf
TT
150792019-01-10 Tom Tromey <tom@tromey.com>
15080
15081 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15082 * objfiles.h (objfile::reset_psymtabs): New method.
15083
d320c2b5
TT
150842019-01-10 Tom Tromey <tom@tromey.com>
15085
15086 * symmisc.c (print_symbol_bcache_statistics): Update.
15087 (print_objfile_statistics): Update.
15088 * symfile.c (reread_symbols): Update.
15089 * psymtab.h (class psymtab_storage): New.
15090 * psymtab.c (psymtab_storage): New constructor.
15091 (~psymtab_storage): New destructor.
15092 (require_partial_symbols): Update.
15093 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15094 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15095 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15096 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15097 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15098 (start_psymtab_common, end_psymtab_common)
15099 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15100 (allocate_psymtab): Update.
15101 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15102 Update.
15103 (dump_psymtab_addrmap, maintenance_print_psymbols)
15104 (maintenance_check_psymtabs): Update.
15105 (class objfile_psymtabs): Move to objfiles.h.
15106 * psympriv.h (discard_psymtab): Now inline.
15107 (psymtab_discarder::psymtab_discarder): Update.
15108 (psymtab_discarder::~psymtab_discarder): Update.
15109 (ALL_OBJFILE_PSYMTABS): Rewrite.
15110 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15111 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15112 Remove fields.
15113 <partial_symtabs>: New field.
15114 (class objfile_psymtabs): Move from psymtab.h. Update.
15115 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15116 psymbol_cache.
15117 (objfile::~objfile): Don't destroy psymbol_cache.
15118 * mdebugread.c (parse_partial_symbols): Update.
15119 * dwarf2read.c (create_addrmap_from_index)
15120 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15121 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15122 (add_partial_subprogram, dwarf2_ranges_read): Update.
15123 * dwarf-index-write.c (write_address_map)
15124 (write_one_signatured_type, recursively_write_psymbols)
15125 (class debug_names, class debug_names, write_psymtabs_to_index):
15126 Update.
15127
1d94a5a3
TT
151282019-01-10 Tom Tromey <tom@tromey.com>
15129
15130 * symtab.h (SYMBOL_SET_NAMES): Update.
15131 (symbol_set_names): Update.
15132 (MSYMBOL_SET_NAMES): Update.
15133 * symtab.c (symbol_set_names): Change argument to be an
15134 objfile_per_bfd_storage.
15135 * psymtab.c (add_psymbol_to_bcache): Update.
15136 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15137
0f14768a
TT
151382019-01-10 Tom Tromey <tom@tromey.com>
15139
15140 * symtab.c (create_demangled_names_hash): Change argument to be an
15141 objfile_per_bfd_storage.
15142 (symbol_set_names): Update.
15143
6eee24ce
TT
151442019-01-10 Tom Tromey <tom@tromey.com>
15145
15146 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15147 init_psymbol_list.
15148 * psymtab.c (init_psymbol_list): Do nothing if already called.
15149 * psympriv.h (init_psymbol_list): Add comment.
15150 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15151 init_psymbol_list.
15152 * dbxread.c (dbx_symfile_read): Unconditionally call
15153 init_psymbol_list.
15154
75aedd27
TT
151552019-01-10 Tom Tromey <tom@tromey.com>
15156
15157 * xcoffread.c (scan_xcoff_symtab): Update.
15158 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15159 "where".
15160 * mdebugread.c (parse_partial_symbols)
15161 (handle_psymbol_enumerators): Update.
15162 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15163 * dbxread.c (read_dbx_symtab): Update.
15164 * psympriv.h (psymbol_placement): New enum.
15165 (add_psymbol_to_list): Update.
15166
939652a5
TT
151672019-01-10 Tom Tromey <tom@tromey.com>
15168
15169 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15170 static_psymbols parameters.
15171 (scan_xcoff_symtab): Update.
15172 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15173 static_psymbols parameters.
15174 * psympriv.h (start_psymtab_common): Update.
15175 * mdebugread.c (parse_partial_symbols): Update.
15176 * dwarf2read.c (create_partial_symtab): Update.
15177 * dbxread.c (read_dbx_symtab): Update.
15178 (start_psymtab): Remove global_psymbols and static_psymbols
15179 parameters.
15180
baa62830
TT
151812019-01-10 Tom Tromey <tom@tromey.com>
15182
15183 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15184 * psymtab.c (allocate_psymtab): Add comment.
15185 * psympriv.h (allocate_psymtab): Add comment.
15186 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15187 initializations.
15188 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15189
0e8f53ba
TT
151902019-01-10 Tom Tromey <tom@tromey.com>
15191
15192 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15193 Don't declare.
15194 * mipsread.c: Include mdebugread.h.
15195 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15196 Declare.
15197 * elfread.c: Include mdebugread.h.
15198
b22a7c6a
TT
151992019-01-09 Tom Tromey <tom@tromey.com>
15200
15201 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15202 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15203 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15204 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15205 (psym_lookup_symbol, psym_find_last_source_symtab)
15206 (psym_forget_cached_source_info, psym_print_stats)
15207 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15208 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15209 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15210 (psym_find_compunit_symtab_by_address)
15211 (maintenance_print_psymbols, maintenance_info_psymtabs)
15212 (maintenance_check_psymtabs): Use ranged for.
15213 * psymtab.h (class objfile_psymtabs): New.
15214 (require_partial_symbols): Return objfile_psymtabs.
15215 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15216
3b9d3ac2
TT
152172019-01-09 Tom Tromey <tom@tromey.com>
15218
15219 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15220 (find_pc_mapped_section, list_overlays_command)
15221 (map_overlay_command, unmap_overlay_command)
15222 (simple_overlay_update): Use all_objfiles.
15223 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15224 * printcmd.c (info_symbol_command): Use all_objfiles.
15225 * objfiles.h (ALL_OBJSECTIONS): Remove.
15226 * maint.c (maintenance_translate_address): Use all_objfiles.
15227 * gcore.c (gcore_create_callback): Use all_objfiles.
15228 (objfile_find_memory_regions): Likewise.
15229
8b31193a
TT
152302019-01-09 Tom Tromey <tom@tromey.com>
15231
15232 * symtab.c (find_line_symtab, info_sources_command)
15233 (make_source_files_completion_list): Use objfile_compunits.
15234 * source.c (select_source_symtab): Use objfile_compunits.
15235 * objfiles.h (struct objfile): Update comment.
15236 (ALL_OBJFILES): Remove.
15237 (ALL_FILETABS): Remove.
15238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15239 objfile_compunits.
15240
d5da8b3c
TT
152412019-01-09 Tom Tromey <tom@tromey.com>
15242
15243 * symmisc.c (print_objfile_statistics, dump_objfile)
15244 (maintenance_print_symbols): Use compunit_filetabs.
15245 * source.c (forget_cached_source_info_for_objfile): Use
15246 compunit_filetabs.
15247 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15248 (ALL_FILETABS): Use compunit_filetabs.
15249 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15250 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15251
5accd1a0
TT
152522019-01-09 Tom Tromey <tom@tromey.com>
15253
15254 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15255 (compunit_filetabs): New.
15256 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15257 compunit_filetabs.
15258 (info_sources_command, make_source_files_completion_list): Remove
15259 declaration.
15260 * symmisc.c (print_objfile_statistics, dump_objfile)
15261 (maintenance_print_symbols): Remove declaration.
15262 (maintenance_info_symtabs): Use compunit_filetabs.
15263 (maintenance_info_line_tables): Likewise.
15264 * source.c (select_source_symtab): Change local variable name.
15265 (forget_cached_source_info_for_objfile): Remove declaration.
15266 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15267 * objfiles.c (objfile_relocate1): Remove declaration.
15268 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15269 declaration.
15270 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15271 * coffread.c (coff_symtab_read): Remove declaration.
15272 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15273 compunit_filetabs.
15274
d8aeb77f
TT
152752019-01-09 Tom Tromey <tom@tromey.com>
15276
15277 * symtab.c (lookup_objfile_from_block)
15278 (find_pc_sect_compunit_symtab, search_symbols)
15279 (default_collect_symbol_completion_matches_break_on): Use
15280 objfile_compunits.
15281 * objfiles.h (ALL_COMPUNITS): Remove.
15282 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15283 * cp-support.c (add_symbol_overload_list_qualified): Use
15284 objfile_compunits.
15285 * ada-lang.c (ada_collect_symbol_completion_matches)
15286 (ada_add_global_exceptions): Use objfile_compunits.
15287
592553c4
TT
152882019-01-09 Tom Tromey <tom@tromey.com>
15289
15290 * source.c (select_source_symtab)
15291 (forget_cached_source_info_for_objfile): Remove declaration.
15292 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15293 declaration.
15294 * maint.c (count_symtabs_and_blocks): Remove declaration.
15295 * cp-support.c (add_symbol_overload_list_qualified): Remove
15296 declaration.
15297 * coffread.c (coff_symtab_read): Remove declaration.
15298 * symtab.c (lookup_symbol_in_objfile_symtabs)
15299 (basic_lookup_transparent_type_1): Use objfile_compunits.
15300 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15301 (info_sources_command, search_symbols)
15302 (default_collect_symbol_completion_matches_break_on)
15303 (make_source_files_completion_list): Remove declaration.
15304 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15305 (ada_collect_symbol_completion_matches)
15306 (ada_add_global_exceptions): Remove declaration.
15307 * linespec.c (iterate_over_all_matching_symtabs): Use
15308 objfile_compunits.
15309 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15310 (class objfile_compunits): New.
15311 (ALL_COMPUNITS): Use objfile_compunits.
15312 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15313 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15314 objfile_compunits.
15315 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15316
5325b9bf
TT
153172019-01-09 Tom Tromey <tom@tromey.com>
15318
15319 * symtab.c (search_symbols)
15320 (default_collect_symbol_completion_matches_break_on): Use
15321 objfile_msymbols.
15322 * ada-lang.c (ada_lookup_simple_minsym)
15323 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15324 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15325 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15326 objfile_msymbols.
15327 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15328 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15329 * objc-lang.c (find_methods): Use objfile_msymbols.
15330 (info_selectors_command, info_classes_command): Likewise.
15331 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15332 * objfiles.h (class objfile_msymbols): New.
15333 (ALL_OBJFILE_MSYMBOLS): Remove.
15334 (ALL_MSYMBOLS): Remove.
15335
cac85af2
TT
153362019-01-09 Tom Tromey <tom@tromey.com>
15337
15338 * common/next-iterator.h (next_adapter): Add Iterator template
15339 parameter.
15340 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15341 (class all_objfiles_safe): New.
15342 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15343 * objfiles.c (put_objfile_before): Update comment.
15344 (add_separate_debug_objfile): Likewise.
15345 (free_all_objfiles): Use all_objfiles_safe.
15346 (objfile_purge_solibs): Likewise.
15347
aed57c53
TT
153482019-01-09 Tom Tromey <tom@tromey.com>
15349
15350 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15351 (expand_symtab_containing_pc, lookup_static_symbol)
15352 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15353 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15354 all_objfiles.
15355 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15356 * breakpoint.c (create_overlay_event_breakpoint)
15357 (create_longjmp_master_breakpoint)
15358 (create_std_terminate_master_breakpoint)
15359 (create_exception_master_breakpoint): Use all_objfiles.
15360 * linux-thread-db.c (try_thread_db_load_from_pdir)
15361 (has_libpthread): Use all_objfiles.
15362 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15363 * linespec.c (iterate_over_all_matching_symtabs)
15364 (search_minsyms_for_name): Use all_objfiles.
15365 * maint.c (maintenance_info_sections): Use all_objfiles.
15366 * main.c (captured_main_1): Use all_objfiles.
15367 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15368 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15369 * guile/scm-pretty-print.c
15370 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15371 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15372 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15373 (maintenance_print_msymbols): Use all_objfiles.
15374 * source.c (select_source_symtab): Use all_objfiles.
15375 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15376 * symfile.c (remove_symbol_file_command)
15377 (expand_symtabs_matching, map_symbol_filenames): Use
15378 all_objfiles.
15379 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15380 all_objfiles.
15381 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15382 * objc-lang.c (find_methods): Use all_objfiles.
15383 * objfiles.c (have_partial_symbols, have_full_symbols)
15384 (have_minimal_symbols, qsort_cmp)
15385 (default_iterate_over_objfiles_in_search_order): Use
15386 all_objfiles.
15387 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15388 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15389 (maintenance_check_psymtabs): Use all_objfiles.
15390 (ALL_PSYMTABS): Remove.
15391 * compile/compile-object-run.c (do_module_cleanup): Use
15392 all_objfiles.
15393 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15394 * cp-support.c (add_symbol_overload_list_qualified): Use
15395 all_objfiles.
15396 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15397 Use all_objfiles.
15398 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15399 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15400 all_objfiles.
15401 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15402 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15403 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15404 Uses all_objfiles.
15405 * solib.c (solib_read_symbols): Use all_objfiles
15406
99d89cde
TT
154072019-01-09 Tom Tromey <tom@tromey.com>
15408
15409 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15410 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15411 all_objfiles.
15412 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15413 * symmisc.c (print_symbol_bcache_statistics)
15414 (print_objfile_statistics, maintenance_print_objfiles)
15415 (maintenance_info_symtabs, maintenance_check_symtabs)
15416 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15417 all_objfiles.
15418 * source.c (forget_cached_source_info): Use all_objfiles.
15419 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15420 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15421 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15422 * objfiles.c (update_section_map): Use all_objfiles.
15423 (shared_objfile_contains_address_p): Likewise.
15424 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15425 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15426
21708325
TT
154272019-01-09 Tom Tromey <tom@tromey.com>
15428
15429 * common/next-iterator.h: New file.
15430 * objfiles.h (class all_objfiles): New.
15431 (struct objfile_iterator): New.
15432
669e09f6
PW
154332019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15434
15435 * NEWS: Move the description of the changed "frame", "select-frame",
15436 and "info frame" commands to the Changed commands section.
15437
041be526
SM
154382019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15439
15440 * gdbtypes.c (check_stub_method_group): Remove handling of old
15441 mangling schemes.
15442 * linespec.c (find_methods): Likewise.
15443 * stabsread.c (read_member_functions): Likewise.
15444 * valops.c (search_struct_method): Likewise.
15445 (value_struct_elt_for_reference): Likewise.
15446 * NEWS: Mention this change.
15447
0e2a2133
AB
154482019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15449
15450 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15451 print_source_lines.
15452 * source.c (print_source_lines_base): Update line number check.
15453 (print_source_lines): New function.
15454 (source_lines_range::source_lines_range): New function.
15455 * source.h (class source_lines_range): New class.
15456 (print_source_lines): New declaration.
15457
1055a3b4
PW
154582019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15459
15460 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15461
cfeadda5
TT
154622019-01-08 Tom Tromey <tom@tromey.com>
15463 Simon Marchi <simon.marchi@ericsson.com>
15464
15465 PR gdb/24060
15466 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15467 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15468 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15469 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15470 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15471 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15472
583068ca
AB
154732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15474
15475 * source.c (select_source_symtab): Move header comment to
15476 declaration in source.h.
15477 (forget_cached_source_info_for_objfile): Likewise.
15478 (forget_cached_source_info): Likewise.
15479 (identify_source_line): Likewise.
15480 * source.h (identify_source_line): Move declaration from symtab.h
15481 and add comment from source.c
15482 (print_source_lines): Likewise.
15483 (forget_cached_source_info_for_objfile): Likewise.
15484 (forget_cached_source_info): Likewise.
15485 (select_source_symtab): Likewise.
15486 (enum print_source_lines_flag): Move definition from symtab.h.
15487 * symtab.h (identify_source_line): Move declaration to source.h.
15488 (print_source_lines): Likewise.
15489 (forget_cached_source_info_for_objfile): Likewise.
15490 (forget_cached_source_info): Likewise.
15491 (select_source_symtab): Likewise.
15492 (enum print_source_lines_flag): Move definition to source.h.
15493 * tui/tui-hooks.c: Add 'source.h' include.
15494
ec98a4ad
AB
154952019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15496
15497 * source.c (print_source_lines_base): Handle requests to print
15498 reverse line number sequences, and guard against empty lines
15499 string.
15500
62ea19c1
AB
155012019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15502
15503 * source.c (print_source_lines_base): Fix skip of '\r' if next
15504 character is '\n'.
15505
9d30e1fd
TT
155062019-01-06 Tom Tromey <tom@tromey.com>
15507
15508 * c-exp.y (struct c_parse_state) <macro_original_text,
15509 expansion_obstack>: New member.
15510 (macro_original_text, expansion_obstack): Remove globals.
15511 (scan_macro_expansion, scanning_macro_expansion)
15512 (finished_macro_expansion): Update.
15513 (scan_macro_cleanup): Remove.
15514 (yylex, c_parse): Update.
15515
c65bac38
TT
155162019-01-06 Tom Tromey <tom@tromey.com>
15517
15518 * c-exp.y (struct c_parse_state) <strings>: New member.
15519 (operator_stoken): Update.
15520
02e12e38
TT
155212019-01-06 Tom Tromey <tom@tromey.com>
15522
15523 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15524 (union type_stack_elt) <typelist_val>: Now a pointer to
15525 std::vector.
15526 (type_stack_cleanup): Don't declare.
15527 (push_typelist): Update.
15528 * parse.c (pop_typelist): Return a std::vector.
15529 (push_typelist): Take a std::vector.
15530 (follow_types): Update. Do not free args.
15531 (type_stack_cleanup): Remove.
15532 * c-exp.y (struct c_parse_state): New.
15533 (cpstate): New global.
15534 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15535 (nonempty_typelist): Update.
15536 (func_mod): Create a new vector.
15537 (c_parse): Create a c_parse_state.
15538 (check_parameter_typelist): Do not delete params.
15539 (function_method): Update. Do not delete type_list.
15540
f097f5ad
TT
155412019-01-06 Tom Tromey <tom@tromey.com>
15542
15543 PR gdb/28155:
15544 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15545 check_typedef.
15546 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15547 (print_return_value): Likewise.
15548
d2adf9f1
TT
155492019-01-05 Tom Tromey <tom@tromey.com>
15550
15551 * contrib/cleanup_check.py: Remove.
15552 * contrib/gcc-with-excheck: Remove.
15553 * contrib/exsummary.py: Remove.
15554 * contrib/excheck.py: Remove.
15555
2eab46b1
JB
155562019-01-05 Joel Brobecker <brobecker@adacore.com>
15557
15558 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15559 NULL. Initialize tpprev to NULL instead of assigning it
15560 to NULL on the next statement.
15561 * windows-nat.c (windows_delete_thread): Remove check for
15562 main_thread_id before printing thread exit notifications.
15563 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15564 Remove thread ID check against main_thread_id.
15565 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15566 windows_delete_thread.
15567 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15568
48c5e7e2
TT
155692019-01-04 Tom Tromey <tom@tromey.com>
15570
15571 * compile/compile.c (_initialize_compile): Use upper case for
15572 metasyntactic variables.
15573 * symmisc.c (_initialize_symmisc): Use upper case for
15574 metasyntactic variables.
15575 * psymtab.c (_initialize_psymtab): Use upper case for
15576 metasyntactic variables.
15577 * demangle.c (demangle_command): Use upper case for metasyntactic
15578 variables.
15579 (_initialize_demangler): Likewise.
15580 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15581 variables.
15582
986041cd
TT
155832019-01-03 Tom Tromey <tom@tromey.com>
15584
15585 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15586
7c711119
TT
155872019-01-03 Tom Tromey <tom@tromey.com>
15588
15589 * python/py-symtab.c (salpy_str): Update.
15590 (struct salpy_sal_object) <symtab>: Now a PyObject.
15591 (salpy_dealloc): Update.
15592 (del_objfile_sal): Use gdbpy_ref.
15593
1b20edf0
TT
155942019-01-03 Tom Tromey <tom@tromey.com>
15595
15596 * python/py-type.c (convert_field): Use new_reference. Return
15597 gdbpy_ref.
15598 (make_fielditem): Return gdbpy_ref.
15599 (typy_fields): Update.
15600 (typy_getitem): Update.
15601 (field_name): Return gdbpy_ref. Use new_reference.
15602 (typy_iterator_iternext): Update.
15603
ea41325b
TT
156042019-01-03 Tom Tromey <tom@tromey.com>
15605
15606 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15607
2a3c71d6
TT
156082019-01-03 Tom Tromey <tom@tromey.com>
15609
15610 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15611 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15612 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15613 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15614 (pspy_set_type_printers): Likewise.
15615 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15616 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15617 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15618 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15619 (objfpy_set_type_printers): Likewise.
15620
5c329e6a
TT
156212019-01-03 Tom Tromey <tom@tromey.com>
15622
15623 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15624 (gdbpy_print_stack): Use gdbpy_err_fetch.
15625 * python/python-internal.h (class gdbpy_err_fetch): New class.
15626 (class gdbpy_enter) <m_error_type, m_error_value,
15627 m_error_traceback>: Remove.
15628 <m_error>: New member.
15629 (gdbpy_exception_to_string): Don't declare.
15630 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15631 * python/py-value.c (convert_value_from_python): Use
15632 gdbpy_err_fetch.
15633 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15634 gdbpy_exception_to_string.
15635 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15636 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15637 gdbpy_err_fetch.
15638
169bb27b
AB
156392019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15640
15641 * linux-nat.c (delete_lwp_cleanup): Delete.
15642 (struct lwp_deleter): New struct.
15643 (lwp_info_up): New typedef.
15644 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15645 lwp_info_up.
15646
a07c8880
AB
156472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15648
15649 * linux-fork.c (class scoped_switch_fork_info): New class.
15650 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15651
26089c49
AB
156522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15653
15654 * valops.c (find_overload_match): Remove use of null_cleanup, and
15655 calls to do_cleanups.
15656
06d3e5b0
AB
156572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15658
15659 * compile/compile-cplus-types.c
15660 (compile_cplus_instance::decl_name): Handle changes to
15661 cp_func_name.
15662 * cp-support.c (cp_func_name): Update header comment, update
15663 return type.
15664 * cp-support.h (cp_func_name): Update return type in declaration.
15665 * valops.c (find_overload_match): Move temp_func local to top
15666 level of function and change its type. Use temp_func to hold and
15667 delete temporary string obtained from cp_func_name.
15668
66644cd3
AB
156692019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15670
15671 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15672 gdb::char_vector, remove cleanup, and update uses of `msg`.
15673
592d8c0a
JW
156742019-01-03 Jim Wilson <jimw@sifive.com>
15675
15676 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15677
c55d06ec
TT
156782019-01-02 Tom Tromey <tom@tromey.com>
15679
15680 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15681 (tdesc_parse_xml): Remove cleanups.
15682 * target-descriptions.h (make_cleanup_free_target_description):
15683 Don't declare.
15684 (target_desc_deleter): New struct.
15685 (target_desc_up): New typedef.
15686 * target-descriptions.c (target_desc_deleter::operator()): Rename
15687 from free_target_description.
15688 (make_cleanup_free_target_description): Remove.
15689
3a6ae42d
TT
156902019-01-02 Tom Tromey <tom@tromey.com>
15691
15692 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15693 constructor, destructor.
15694 (linespec_parser): Remove typedef.
15695 (~linespec_parser): Rename from linespec_parser_delete.
15696 (linespec_lex_to_end, linespec_complete_label)
15697 (linespec_complete): Update.
15698 (decode_line_full): Remove cleanups.
15699 (decode_line_1): Update.
15700
61fd3e73
TT
157012019-01-02 Tom Tromey <tom@tromey.com>
15702
15703 * python/python-internal.h (inferior_to_inferior_object): Change
15704 return type.
15705 * python/py-exitedevent.c (create_exited_event_object): Update.
15706 * python/py-inferior.c (inferior_to_inferior_object): Return
15707 gdbpy_ref.
15708 (python_new_inferior, python_inferior_deleted)
15709 (thread_to_thread_object, delete_thread_object)
15710 (build_inferior_list, gdbpy_selected_inferior): Update.
15711 * python/py-infthread.c (create_thread_object): Update. Also fail
15712 if inferior_to_inferior_object fails.
15713
d20172fc
SM
157142019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15715
15716 * inferior.h (class inferior) <displaced_step_state>: New field.
15717 * infrun.h (struct displaced_step_state): Move here from
15718 infrun.c. Initialize fields, add constructor.
15719 <inf>: Remove field.
15720 <reset>: New method.
15721 * infrun.c (struct displaced_step_inferior_state): Move to
15722 infrun.h.
15723 (displaced_step_inferior_states): Remove.
15724 (get_displaced_stepping_state): Adust.
15725 (displaced_step_in_progress_any_inferior): Adjust.
15726 (displaced_step_in_progress_thread): Adjust.
15727 (displaced_step_in_progress): Adjust.
15728 (add_displaced_stepping_state): Remove.
15729 (get_displaced_step_closure_by_addr): Adjust.
15730 (remove_displaced_stepping_state): Remove.
15731 (infrun_inferior_exit): Call displaced_step_state.reset.
15732 (use_displaced_stepping): Don't check for NULL.
15733 (displaced_step_prepare_throw): Call
15734 get_displaced_stepping_state.
15735 (displaced_step_fixup): Don't check for NULL.
15736 (prepare_for_detach): Don't check for NULL.
15737
e3319240
PW
157382019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15739
15740 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15741 in case of call that did not complete.
15742
5d36dfb9
AU
157432019-01-02 Andrey Utkin <autkin@undo.io>
15744
15745 * symfile.c (find_separate_debug_file): Fix search of debug files for
15746 remote debuggee.
15747
8833fbf0
TT
157482019-01-02 Tom Tromey <tom@tromey.com>
15749
15750 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15751 indentation.
15752 * python/py-frame.c (frapy_older): Remove cast.
15753 (frapy_newer): Likewise.
15754 * python/py-breakpoint.c (local_setattro): Remove cast.
15755 * python/py-arch.c (archpy_name): Remove local variable.
15756 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15757
4ada3dfd
JB
157582019-01-02 Joel Brobecker <brobecker@adacore.com>
15759
15760 * unittests/basic_string_view/element_access/char/empty.cc:
15761 Fix year range in copyright header.
15762
113b7b81
AB
157632019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15764
15765 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15766 Delete.
15767 <operator==>: Update with for removed field.
15768 <hash>: Likewise.
15769 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15770 <isa_features>: ...this.
15771 <abi_features>: New field.
15772 (riscv_isa_flen): Update comment.
15773 (riscv_abi_xlen): New declaration.
15774 (riscv_abi_flen): New declaration.
15775 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15776 isa_features.
15777 (riscv_abi_xlen): New function.
15778 (riscv_isa_flen): Update to get answer from isa_features.
15779 (riscv_abi_flen): New function.
15780 (riscv_has_fp_abi): Update to get answer from abi_features.
15781 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15782 xlen and flen.
15783 (riscv_call_info) <xlen, flen>: Update comment.
15784 (riscv_call_arg_struct): Remove invalid assertions
15785 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15786 is removed.
15787 (riscv_gdbarch_init): Gather isa features and abi features
15788 separately, ensure both match on the gdbarch when reusing an old
15789 gdbarch. Relax an error check to allow 32-bit abi float to run on
15790 a target with 64-bit float hardware.
15791
b18ca514
PW
157922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15793
15794 * source.c (search_command_helper): Stop reverse search
15795 when line 1 has been searched.
15796
ec70d8db
PW
157972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15798
15799 * record-full.c (record_full_base_target::close): Rewrite
15800 record_full_core_buf_list free logic.
15801
5b38f9c1
PW
158022019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15803
15804 * break-catch-syscall.c (print_one_catch_syscall): xfree
15805 the last text.
15806
66d91b39
JB
158072019-01-01 Joel Brobecker <brobecker@adacore.com>
15808
15809 * top.c (print_gdb_version): Update Copyright year in version
15810 message.
15811
42a4f53d
JB
158122019-01-01 Joel Brobecker <brobecker@adacore.com>
15813
15814 Update copyright year range in all GDB files.
15815
7e955d83 158162019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15817
5bbd631d 15818 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15819
5bbd631d 15820For older changes see ChangeLog-2018.
c906108c
SS
15821\f
15822Local Variables:
15823mode: change-log
15824left-margin: 8
15825fill-column: 74
15826version-control: never
57da7796 15827coding: utf-8
c906108c 15828End:
5bbd631d 15829
This page took 2.898616 seconds and 4 git commands to generate.