63e0519c547c7eda7ce0eecc32eb1bb4f40d82a3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * symtab.c (symbol_to_info_string): New function, most content
4 moved from print_symbol_info, but updated to return a std::string.
5 (print_symbol_info): Update to use symbol_to_info_string and print
6 returned string.
7 * symtab.h (symbol_to_info_string): Declare new function.
8
9 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
10
11 * python/python.c (gdbpy_rbreak): Convert to using
12 global_symbol_searcher.
13 * symtab.c (file_matches): Convert return type to bool, change
14 file list to std::vector, update header comment.
15 (search_symbols): Rename to...
16 (global_symbol_searcher::search): ...this and update now its
17 a member function of global_symbol_searcher. Take account of the
18 changes to file_matches.
19 (symtab_symbol_info): Convert to using global_symbol_searcher.
20 (rbreak_command): Likewise.
21 (search_module_symbols): Likewise.
22 * symtab.h (enum symbol_search): Update comment.
23 (search_symbols): Remove declaration.
24 (class global_symbol_searcher): New class.
25
26 2019-11-26 Tom Tromey <tromey@adacore.com>
27
28 * cp-support.c (_initialize_cp_support): Conditionally initialize
29 gdb_demangle_attempt_core_dump.
30
31 2019-11-26 Tom Tromey <tom@tromey.com>
32
33 * python/py-function.c (fnpy_init): Update.
34 * value.h (add_internal_function): Adjust declaration.
35 * value.c (function_destroyer): Remove.
36 (do_add_internal_function): Don't set destroyer or copy name.
37 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
38 Set name_allocated.
39 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
40 (cmdpy_init): Set name_allocated.
41 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
42 member.
43 (~cmd_list_element): Free "name" if needed.
44
45 2019-11-26 Tom Tromey <tom@tromey.com>
46
47 * value.h (add_internal_function): Add new overload. Move
48 documentation from value.h.
49 * value.c (do_add_internal_function): New function.
50 (add_internal_function): Use it. Add new overload.
51 (function_destroyer): Don't free doc.
52 * python/py-function.c (fnpy_init): Update.
53
54 2019-11-26 Tom Tromey <tom@tromey.com>
55
56 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
57 (cmdpy_init): Set "doc_allocated".
58
59 2019-11-26 Tom Tromey <tom@tromey.com>
60
61 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
62 name of worker thread.
63 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
64 pthread_setname_np.
65 * configure, config.in: Rebuild.
66
67 2019-11-26 Tom Tromey <tom@tromey.com>
68
69 * python/python.c (class gdbpy_gil): New.
70 (struct gdbpy_event): Add constructor, destructor, operator().
71 (gdbpy_post_event): Use run_on_main_thread.
72 (gdbpy_initialize_events): Remove.
73 (do_start_initialization): Update.
74
75 2019-11-26 Tom Tromey <tom@tromey.com>
76
77 * NEWS: Add entry.
78 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
79 commands. Call update_thread_pool_size.
80 (update_thread_pool_size, maintenance_set_worker_threads): New
81 functions.
82 (n_worker_threads): New global.
83
84 2019-11-26 Christian Biesinger <cbiesinger@google.com>
85 Tom Tromey <tom@tromey.com>
86
87 * minsyms.c (minimal_symbol_reader::install): Use
88 parallel_for_each.
89 * gdbsupport/parallel-for.h: New file.
90 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
91
92 2019-11-26 Christian Biesinger <cbiesinger@google.com>
93 Tom Tromey <tom@tromey.com>
94
95 * gdbsupport/thread-pool.h: New file.
96 * gdbsupport/thread-pool.c: New file.
97 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
98 (HFILES_NO_SRCDIR): Add thread-pool.h.
99
100 2019-11-26 Tom Tromey <tom@tromey.com>
101
102 * event-top.h (thread_local_segv_handler): Declare.
103 * event-top.c (thread_local_segv_handler): New global.
104 (install_handle_sigsegv, handle_sigsegv): New functions.
105 (async_init_signals): Install SIGSEGV handler.
106 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
107 thread-local.
108 (report_failed_demangle): New function.
109 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
110 handler-setting code, instead use segv_handler. Run warning code
111 on main thread.
112
113 2019-11-26 Tom Tromey <tom@tromey.com>
114
115 * run-on-main-thread.c: New file.
116 * run-on-main-thread.h: New file.
117 * unittests/main-thread-selftests.c: New file.
118 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
119 main-thread-selftests.c.
120 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
121 (COMMON_SFILES): Add run-on-main-thread.c.
122
123 2019-11-26 Tom Tromey <tom@tromey.com>
124
125 * main.c (setup_alternate_signal_stack): Remove.
126 (captured_main_1): Use gdb::alternate_signal_stack.
127 * gdbsupport/alt-stack.h: New file.
128
129 2019-11-26 Tom Tromey <tom@tromey.com>
130
131 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
132 Remove comment.
133 (save_original_signals_state, restore_original_signals_state): Use
134 gdb_sigmask.
135 * linux-nat.c (block_child_signals, restore_child_signals_mask)
136 (_initialize_linux_nat): Use gdb_sigmask.
137 * guile/guile.c (_initialize_guile): Use block_signals.
138 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
139 * gdbsupport/gdb-sigmask.h: New file.
140 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
141 * cp-support.c (gdb_demangle): Use gdb_sigmask.
142 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
143 pthread_sigmask.
144 * configure, config.in: Rebuild.
145 * gdbsupport/block-signals.h: New file.
146
147 2019-11-26 Tom Tromey <tom@tromey.com>
148
149 * acinclude.m4: Include ax_pthread.m4.
150 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
151 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
152 (CLIBS): Use PTHREAD_LIBS.
153 (aclocal_m4_deps): Add ax_pthread.m4.
154 * config.in, configure: Rebuild.
155 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
156
157 2019-11-26 Tom Tromey <tom@tromey.com>
158
159 * symtab.h (struct minimal_symbol) <name_set>: New member.
160 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
161 Don't call symbol_set_names.
162 (minimal_symbol_reader::install): Call symbol_set_names.
163
164 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
165
166 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
167 restore_active_ext_lang, as GIL is needed for (indirectly)
168 called PyOS_InterruptOccurred.
169
170 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
171
172 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
173 definition.
174
175 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
176
177 * remote-sim.c (simulator_command): Make static, remove
178 declaration.
179
180 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
181
182 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
183 static.
184 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
185 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
186 (main): Likewise.
187 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
188 (main): Likewise.
189 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
190 (main): Likewise.
191 * unittests/basic_string_view/element_access/char/1.cc (test01):
192 Likewise.
193 (main): Likewise.
194 * unittests/basic_string_view/element_access/char/empty.cc (main):
195 Likewise.
196 * unittests/basic_string_view/element_access/char/front_back.cc
197 (test01): Likewise.
198 (main): Likewise.
199 * unittests/basic_string_view/inserters/char/2.cc (test05):
200 Likewise.
201 (main): Likewise.
202 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
203 (test01): Likewise.
204 (main): Likewise.
205 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
206 (test01): Likewise.
207 (main): Likewise.
208 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
209 Likewise.
210 * unittests/basic_string_view/operations/compare/char/1.cc
211 (test01): Likewise.
212 (main): Likewise.
213 * unittests/basic_string_view/operations/compare/char/13650.cc
214 (test01): Likewise.
215 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
216 Likewise.
217 (main): Likewise.
218 * unittests/basic_string_view/operations/data/char/1.cc (test01):
219 Likewise.
220 (main): Likewise.
221 * unittests/basic_string_view/operations/find/char/1.cc (test01):
222 Likewise.
223 (main): Likewise.
224 * unittests/basic_string_view/operations/find/char/2.cc (test02):
225 Likewise.
226 (main): Likewise.
227 * unittests/basic_string_view/operations/find/char/3.cc (test03):
228 Likewise.
229 (main): Likewise.
230 * unittests/basic_string_view/operations/find/char/4.cc (main):
231 Likewise.
232 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
233 Likewise.
234 (main): Likewise.
235 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
236 Likewise.
237 (main): Likewise.
238 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
239 Likewise.
240 (main): Likewise.
241 * unittests/basic_string_view/operations/substr/char/1.cc
242 (test01): Likewise.
243 (main): Likewise.
244 * unittests/basic_string_view/operators/char/2.cc (main):
245 Likewise.
246 * unittests/optional/assignment/1.cc (test): Likewise.
247 * unittests/optional/assignment/2.cc (test): Likewise.
248 * unittests/optional/assignment/3.cc (test): Likewise.
249 * unittests/optional/assignment/4.cc (test): Likewise.
250 * unittests/optional/assignment/5.cc (test): Likewise.
251 * unittests/optional/assignment/6.cc (test): Likewise.
252 * unittests/optional/assignment/7.cc (test): Likewise.
253 * unittests/optional/cons/copy.cc (test): Likewise.
254 * unittests/optional/cons/default.cc (test): Likewise.
255 * unittests/optional/cons/move.cc (test): Likewise.
256 * unittests/optional/cons/value.cc (test): Likewise.
257 * unittests/optional/in_place.cc (test): Likewise.
258 * unittests/optional/observers/1.cc (test): Likewise.
259 * unittests/optional/observers/2.cc (test): Likewise.
260
261 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
262
263 * tui-win.h (tui_set_var_cmd): Remove.
264 * tui-win.c (tui_set_var_cmd): Make static.
265
266 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
267
268 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
269 rbreak_command_wrapper): Remove.
270 * symtab.c (rbreak_command_wrapper): Remove.
271
272 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
273
274 * inferior.h (info_terminal_command): Remove declaration.
275 * inflow.c (info_terminal_command): Make static.
276
277 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
278
279 * inferior.c (exit_inferior_silent): Remove.
280
281 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
282
283 * dictionary.c (dict_empty, mdict_empty): Remove.
284 * dictionary.c (mdict_empty): Remove.
285
286 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
287
288 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
289 (arc_insn_get_memory_offset): Likewise.
290 (arc_insn_dump): Likewise.
291 * cp-support.c (test_cp_symbol_name_matches): Likewise.
292 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
293 * dictionary.c (dict_iterator_next): Likewise.
294 (dict_iter_match_first): Likewise.
295 (dict_iter_match_next): Likewise.
296 * f-lang.c (evaluate_subexp_f): Likewise.
297 * hppa-tdep.c (hppa_read_pc): Likewise.
298 * i386-tdep.c (i386_floatformat_for_type): Likewise.
299 * parse.c (write_exp_elt_msym): Likewise.
300 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
301 * remote.c (remote_packet_size): Likewise.
302 (remote_notif_stop_parse): Likewise.
303 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
304 * s12z-tdep.c (s12z_disassemble_info): Likewise.
305 * source.c (prepare_path_for_appending): Likewise.
306 * sparc64-linux-tdep.c
307 (sparc64_linux_handle_segmentation_fault); Likewise.
308 * stack.c (frame_selection_by_function_completer): Likewise.
309
310 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
311
312 * completer.c (set_gdb_completion_word_break_characters):
313 Remove.
314
315 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
316
317 * dwarf-index-write.c: Include dwarf-index-write.h.
318 * mi/mi-interp.c: Include mi/mi-interp.h.
319
320 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
321
322 * aarch32-tdep.c: Include aarch32-tdep.h.
323 * aarch32-tdep.h: Forward-declare struct target_desc.
324
325 2019-11-26 Christian Biesinger <cbiesinger@google.com>
326
327 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
328 strerror.
329 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
330 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
331
332 2019-11-25 Tom de Vries <tdevries@suse.de>
333
334 * contrib/words.sh: Add -c option.
335
336 2019-11-25 Christian Biesinger <cbiesinger@google.com>
337
338 * solib.c (solib_find_1): Change int to bool.
339 (exec_file_find): Change int to bool.
340 (solib_find): Change int to bool.
341 (solib_read_symbols): Change int to bool.
342 (solib_used): Change int to bool.
343 (solib_add): Change int to bool.
344 (info_sharedlibrary_command): Change int to bool.
345 (solib_contains_address_p): Change int to bool.
346 (solib_keep_data_in_core): Change int to bool.
347 (in_solib_dynsym_resolve_code): Change int to bool.
348 (reload_shared_libraries_1): Change int to bool.
349 (gdb_sysroot_changed): Change int to bool.
350 * solib.h (solib_read_symbols): Change int to bool.
351 (solib_contains_address_p): Change int to bool.
352 (solib_keep_data_in_core): Change int to bool.
353 (in_solib_dynsym_resolve_code): Change int to bool.
354 (libpthread_name_p): Change int to bool.
355
356 2019-11-25 Luis Machado <luis.machado@linaro.org>
357
358 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
359 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
360 (remote_packet_max_chars): New static global.
361 (show_remote_packet_max_chars): New function.
362 (remote_target::putpkt_binary): Adjust to use new
363 remote_packet_max_chars option.
364 (remote_target::getpkt_or_notif_sane_1): Likewise.
365 (_initialize_remote): Register new remote-packet-max-chars option.
366
367 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
368
369 * m68k-linux-nat.c: Include gdbarch.h.
370
371 2019-11-24 Tom Tromey <tom@tromey.com>
372
373 * symfile.c (read_symbols): Update.
374 * psymtab.c (require_partial_symbols): Change type of "verbose" to
375 bool.
376 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
377 (psym_lookup_symbol, psym_find_last_source_symtab)
378 (psym_forget_cached_source_info, psym_print_stats)
379 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
380 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
381 (psym_map_matching_symbols, psym_expand_symtabs_matching)
382 (psym_find_compunit_symtab_by_address)
383 (maintenance_print_psymbols, maintenance_info_psymtabs)
384 (maintenance_check_psymtabs): Update.
385 * psymtab.h (require_partial_symbols): Change type of "verbose" to
386 bool.
387
388 2019-11-22 Tom Tromey <tom@tromey.com>
389
390 * observable.h: Update comments.
391
392 2019-11-22 Tom Tromey <tromey@adacore.com>
393
394 * ada-tasks.c (ada_task_is_alive): Make parameter const.
395 (print_ada_task_info): Don't try to fetch thread id if task is not
396 alive.
397
398 2019-11-22 Christian Biesinger <cbiesinger@google.com>
399
400 * ada-exp.y: Update.
401 * ada-lang.c (sort_choices): Update.
402 (ada_print_symbol_signature): Update.
403 (resolve_subexp): Update.
404 (ada_parse_renaming): Update.
405 (ada_read_renaming_var_value): Update.
406 (lesseq_defined_than): Update.
407 (remove_extra_symbols): Update.
408 (remove_irrelevant_renamings): Update.
409 (ada_add_block_symbols): Update.
410 (ada_collect_symbol_completion_matches): Update.
411 (ada_is_renaming_symbol): Update.
412 (aggregate_assign_from_choices): Update.
413 (ada_evaluate_subexp): Update.
414 (ada_has_this_exception_support): Update.
415 (ada_is_non_standard_exception_sym): Update.
416 (ada_add_exceptions_from_frame): Update.
417 (ada_add_global_exceptions): Update.
418 (ada_print_subexp): Update.
419 * ax-gdb.c (gen_var_ref): Update.
420 (gen_maybe_namespace_elt): Update.
421 (gen_expr_for_cast): Update.
422 (gen_expr): Update.
423 * block.h: Update.
424 * blockframe.c (find_pc_partial_function): Update.
425 * breakpoint.c (print_breakpoint_location): Update.
426 (update_static_tracepoint): Update.
427 * btrace.c (ftrace_print_function_name): Update.
428 (ftrace_function_switched): Update.
429 * buildsym.c (find_symbol_in_list): Update.
430 * c-exp.y: Update.
431 * c-typeprint.c (c_print_typedef): Update.
432 (c_type_print_template_args): Update.
433 * cli/cli-cmds.c (edit_command): Update.
434 (list_command): Update.
435 (print_sal_location): Update.
436 * coffread.c (patch_opaque_types): Update.
437 (process_coff_symbol): Update.
438 (coff_read_enum_type): Update.
439 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
440 (convert_one_symbol): Update.
441 (hash_symname): Update.
442 (eq_symname): Update.
443 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
444 * compile/compile-cplus-types.c (debug_print_scope): Update.
445 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
446 * compile/compile-object-load.c (get_out_value_type): Update.
447 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
448 (search_symbol_list): Update.
449 (cp_lookup_symbol_imports_or_template): Update.
450 * cp-support.c (overload_list_add_symbol): Update.
451 * ctfread.c (psymtab_to_symtab): Update.
452 * dbxread.c (cp_set_block_scope): Update.
453 * dictionary.c (iter_match_first_hashed): Update.
454 (iter_match_next_hashed): Update.
455 (insert_symbol_hashed): Update.
456 (iter_match_next_linear): Update.
457 * dictionary.h: Update.
458 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
459 (locexpr_describe_location_piece): Update.
460 (locexpr_describe_location_1): Update.
461 (locexpr_generate_c_location): Update.
462 (loclist_describe_location): Update.
463 (loclist_generate_c_location): Update.
464 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
465 (read_func_scope): Update.
466 (process_enumeration_scope): Update.
467 (new_symbol): Update.
468 (dwarf2_const_value): Update.
469 (dwarf2_symbol_mark_computed): Update.
470 * eval.c (evaluate_funcall): Update.
471 (evaluate_subexp_standard): Update.
472 * expprint.c (print_subexp_standard): Update.
473 (dump_subexp_body_standard): Update.
474 * f-valprint.c (info_common_command_for_block): Update.
475 * findvar.c (get_hosting_frame): Update.
476 (default_read_var_value): Update.
477 * go-lang.c (go_symbol_package_name): Update.
478 * guile/scm-block.c (bkscm_print_block_smob): Update.
479 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
480 (gdbscm_symbol_name): Update.
481 (gdbscm_symbol_linkage_name): Update.
482 (gdbscm_symbol_print_name): Update.
483 * infcall.c (get_function_name): Update.
484 * infcmd.c (jump_command): Update.
485 (finish_command): Update.
486 * infrun.c (insert_exception_resume_breakpoint): Update.
487 * linespec.c (canonicalize_linespec): Update.
488 (create_sals_line_offset): Update.
489 (convert_linespec_to_sals): Update.
490 (complete_label): Update.
491 (find_label_symbols_in_block): Update.
492 * m2-typeprint.c (m2_print_typedef): Update.
493 * mdebugread.c (mdebug_reg_to_regnum): Update.
494 (parse_symbol): Update.
495 (mylookup_symbol): Update.
496 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
497 (list_args_or_locals): Update.
498 * objc-lang.c (compare_selectors): Update.
499 (info_selectors_command): Update.
500 (compare_classes): Update.
501 (info_classes_command): Update.
502 (find_imps): Update.
503 * p-typeprint.c (pascal_print_typedef): Update.
504 * printcmd.c (build_address_symbolic): Update.
505 (info_address_command): Update.
506 (print_variable_and_value): Update.
507 * python/py-framefilter.c (extract_sym): Update.
508 (py_print_single_arg): Update.
509 * python/py-symbol.c (sympy_str): Update.
510 (sympy_get_name): Update.
511 (sympy_get_linkage_name): Update.
512 * python/python.c (gdbpy_rbreak): Update.
513 * record-btrace.c (btrace_get_bfun_name): Update.
514 (btrace_call_history): Update.
515 * rust-lang.c (rust_print_typedef): Update.
516 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
517 * stabsread.c (stab_reg_to_regnum): Update.
518 (define_symbol): Update.
519 (read_enum_type): Update.
520 (common_block_end): Update.
521 (cleanup_undefined_types_1): Update.
522 (scan_file_globals): Update.
523 * stack.c (print_frame_arg): Update.
524 (print_frame_args): Update.
525 (find_frame_funname): Update.
526 (info_frame_command_core): Update.
527 (iterate_over_block_locals): Update.
528 (print_block_frame_labels): Update.
529 (do_print_variable_and_value): Update.
530 (iterate_over_block_arg_vars): Update.
531 (return_command): Update.
532 * symmisc.c (dump_symtab_1): Update.
533 (print_symbol): Update.
534 * symtab.c (eq_symbol_entry): Update.
535 (symbol_cache_dump): Update.
536 (lookup_language_this): Update.
537 (find_pc_sect_line): Update.
538 (skip_prologue_sal): Update.
539 (symbol_search::compare_search_syms): Update.
540 (treg_matches_sym_type_name): Update.
541 (search_symbols): Update.
542 (print_symbol_info): Update.
543 (rbreak_command): Update.
544 (completion_list_add_symbol): Update.
545 (find_gnu_ifunc): Update.
546 (get_symbol_address): Update.
547 (search_module_symbols): Update.
548 (info_module_subcommand): Update.
549 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
550 (SYMBOL_LINKAGE_NAME): Remove.
551 (SYMBOL_DEMANGLED_NAME): Remove.
552 (SYMBOL_PRINT_NAME): Remove.
553 (SYMBOL_SEARCH_NAME): Remove.
554 * tracepoint.c (set_traceframe_context): Update.
555 (validate_actionline): Update.
556 (collection_list::collect_symbol): Update.
557 (encode_actions_1): Update.
558 (info_scope_command): Update.
559 (print_one_static_tracepoint_marker): Update.
560 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
561 * valops.c (address_of_variable): Update.
562 (find_overload_match): Update.
563 (find_oload_champ): Update.
564
565 2019-11-22 Christian Biesinger <cbiesinger@google.com>
566
567 * ada-lang.c (ada_lookup_simple_minsym): Update.
568 (ada_collect_symbol_completion_matches): Update.
569 * ada-tasks.c (read_atcb): Update.
570 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
571 (amd64_windows_skip_trampoline_code): Update.
572 * arm-tdep.c (skip_prologue_function): Update.
573 (arm_skip_stack_protector): Update.
574 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
575 (arm_wince_skip_main_prologue): Update.
576 * ax-gdb.c (gen_expr): Update.
577 * block.c (call_site_for_pc): Update.
578 * blockframe.c (find_pc_partial_function): Update.
579 * breakpoint.c (set_breakpoint_location_function): Update.
580 * btrace.c (ftrace_print_function_name): Update.
581 (ftrace_function_switched): Update.
582 * c-valprint.c (print_unpacked_pointer): Update.
583 * coffread.c (coff_symfile_read): Update.
584 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
585 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
586 * dwarf-index-write.c (write_psymbols): Update.
587 * dwarf2loc.c (call_site_to_target_addr): Update.
588 (func_verify_no_selftailcall): Update.
589 (tailcall_dump): Update.
590 (call_site_find_chain_1): Update.
591 (dwarf_expr_reg_to_entry_parameter): Update.
592 * elfread.c (elf_gnu_ifunc_record_cache): Update.
593 * eval.c (evaluate_funcall): Update.
594 (evaluate_subexp_standard): Update.
595 (evaluate_subexp_for_sizeof): Update.
596 * expprint.c (print_subexp_standard): Update.
597 (dump_subexp_body_standard): Update.
598 * frame.c (get_prev_frame_always_1): Update.
599 * frv-tdep.c (frv_skip_main_prologue): Update.
600 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
601 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
602 (gnuv3_get_typename_from_type_info): Update.
603 (gnuv3_skip_trampoline): Update.
604 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
605 * i386-tdep.c (i386_skip_main_prologue): Update.
606 (i386_pe_skip_trampoline_code): Update.
607 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
608 * infcall.c (get_function_name): Update.
609 * linespec.c (minsym_found): Update.
610 * linux-fork.c (info_checkpoints_command): Update.
611 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
612 (m32c_m16c_pointer_to_address): Update.
613 * maint.c (maintenance_translate_address): Update.
614 * minsyms.c (add_minsym_to_hash_table): Update.
615 (add_minsym_to_demangled_hash_table): Update.
616 (lookup_minimal_symbol_mangled): Update.
617 (lookup_minimal_symbol_demangled): Update.
618 (lookup_minimal_symbol_linkage): Update.
619 (lookup_minimal_symbol_text): Update.
620 (lookup_minimal_symbol_by_pc_name): Update.
621 (minimal_symbol_is_less_than): Update.
622 (compact_minimal_symbols): Update.
623 (build_minimal_symbol_hash_tables): Update.
624 (find_solib_trampoline_target): Update.
625 * mips-tdep.c (mips_stub_frame_sniffer): Update.
626 (mips_skip_pic_trampoline_code): Update.
627 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
628 * objc-lang.c (info_selectors_command): Update.
629 (info_classes_command): Update.
630 (find_methods): Update.
631 (find_imps): Update.
632 * p-valprint.c (pascal_val_print): Update.
633 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
634 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
635 * printcmd.c (build_address_symbolic): Update.
636 (info_symbol_command): Update.
637 * psymtab.c (psymbol_name_matches): Update.
638 (match_partial_symbol): Update.
639 (lookup_partial_symbol): Update.
640 (print_partial_symbols): Update.
641 (sort_pst_symbols): Update.
642 (maintenance_check_psymtabs): Update.
643 * python/py-framefilter.c (py_print_frame): Update.
644 * python/python.c (gdbpy_rbreak): Update.
645 * record-btrace.c (btrace_get_bfun_name): Update.
646 (btrace_call_history): Update.
647 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
648 (rs6000_skip_trampoline_code): Update.
649 * sol-thread.c (info_cb): Update.
650 * stabsread.c (scan_file_globals): Update.
651 * stack.c (find_frame_funname): Update.
652 (info_frame_command_core): Update.
653 * symmisc.c (dump_msymbols): Update.
654 * symtab.c (symbol_natural_name): Rename to..,
655 (general_symbol_info::natural_name): ...this.
656 (symbol_demangled_name): Rename to...
657 (general_symbol_info::demangled_name): ...this.
658 (symbol_search_name): Rename to...
659 (general_symbol_info::search_name): ...this.
660 (symbol_matches_search_name): Update.
661 (find_pc_sect_line): Update.
662 (skip_prologue_sal): Update.
663 (search_symbols): Update.
664 (print_msymbol_info): Update.
665 (rbreak_command): Update.
666 (completion_list_add_msymbol): Update.
667 (completion_list_objc_symbol): Update.
668 (get_msymbol_address): Update.
669 * symtab.h (struct general_symbol_info): Add member functions
670 natural_name (), linkage_name (), print_name (), demangled_name (),
671 and search_name ().
672 (SYMBOL_NATURAL_NAME): Update.
673 (symbol_natural_name): Move to a member function on general_symbol_info.
674 (SYMBOL_DEMANGLED_NAME): Update.
675 (symbol_demangled_name): Move to a member function on
676 general_symbol_info.
677 (SYMBOL_SEARCH_NAME): Update.
678 (symbol_search_name): Move to a member function on general_symbol_info.
679 (MSYMBOL_NATURAL_NAME): Remove.
680 (MSYMBOL_LINKAGE_NAME): Remove.
681 (MSYMBOL_PRINT_NAME): Remove.
682 (MSYMBOL_DEMANGLED_NAME): Remove.
683 (MSYMBOL_SEARCH_NAME): Remove.
684 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
685
686 2019-11-22 Christian Biesinger <cbiesinger@google.com>
687
688 * symtab.c (create_demangled_names_hash): Use per_bfd->
689 minimal_symbol_count for computing the initial size, if greater
690 than our default size.
691
692 2019-11-22 Tom de Vries <tdevries@suse.de>
693
694 * contrib/words.sh: Improve words extraction.
695
696 2019-11-22 Tom de Vries <tdevries@suse.de>
697
698 * contrib/words.sh: Combine sed invocations.
699
700 2019-11-21 Christian Biesinger <cbiesinger@google.com>
701
702 * Makefile.in: Update.
703 * demangle.c: Rename to...
704 * gdb-demangle.c: ..this.
705 (is_cplus_marker): Change return type to bool.
706 (_initialize_demangler): Rename to...
707 (_initialize_gdb_demangle): ...this.
708 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
709 * symtab.h (demangle): Remove declaration; instead include
710 gdb-demangle.h.
711
712 2019-11-21 Tom Tromey <tromey@adacore.com>
713
714 * gdbsupport/format.c (format_pieces): Parse %I64d.
715 * unittests/format_pieces-selftests.c (test_windows_formats): New
716 function.
717 (run_tests): Call it.
718
719 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
720
721 Byte reverse display of variables with DW_END_big, DW_END_little
722 (DW_AT_endianity) dwarf attributes if different than the native
723 byte order.
724 * ada-lang.c (ada_value_binop):
725 Use type_byte_order instead of gdbarch_byte_order.
726 * ada-valprint.c (printstr):
727 (ada_val_print_string):
728 * ada-lang.c (value_pointer):
729 (ada_value_binop):
730 Use type_byte_order instead of gdbarch_byte_order.
731 * c-lang.c (c_get_string):
732 Use type_byte_order instead of gdbarch_byte_order.
733 * c-valprint.c (c_val_print_array):
734 Use type_byte_order instead of gdbarch_byte_order.
735 * cp-valprint.c (cp_print_class_member):
736 Use type_byte_order instead of gdbarch_byte_order.
737 * dwarf2loc.c (rw_pieced_value):
738 Use type_byte_order instead of gdbarch_byte_order.
739 * dwarf2read.c (read_base_type): Handle DW_END_big,
740 DW_END_little
741 * f-lang.c (f_get_encoding):
742 Use type_byte_order instead of gdbarch_byte_order.
743 * findvar.c (default_read_var_value):
744 Use type_byte_order instead of gdbarch_byte_order.
745 * gdbtypes.c (check_types_equal):
746 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
747 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
748 and TYPE_ENDIANITY_LITTLE if set.
749 (type_byte_order): new function.
750 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
751 (struct main_type) <flag_endianity_not_default>:
752 New field.
753 (type_byte_order): New function.
754 * infcmd.c (default_print_one_register_info):
755 Use type_byte_order instead of gdbarch_byte_order.
756 * p-lang.c (pascal_printstr):
757 Use type_byte_order instead of gdbarch_byte_order.
758 * p-valprint.c (pascal_val_print):
759 Use type_byte_order instead of gdbarch_byte_order.
760 * printcmd.c (print_scalar_formatted):
761 Use type_byte_order instead of gdbarch_byte_order.
762 * solib-darwin.c (darwin_current_sos):
763 Use type_byte_order instead of gdbarch_byte_order.
764 * solib-svr4.c (solib_svr4_r_ldsomap):
765 Use type_byte_order instead of gdbarch_byte_order.
766 * stap-probe.c (stap_modify_semaphore):
767 Use type_byte_order instead of gdbarch_byte_order.
768 * target-float.c (target_float_same_format_p):
769 Use type_byte_order instead of gdbarch_byte_order.
770 * valarith.c (scalar_binop):
771 (value_bit_index):
772 Use type_byte_order instead of gdbarch_byte_order.
773 * valops.c (value_cast):
774 Use type_byte_order instead of gdbarch_byte_order.
775 * valprint.c (generic_emit_char):
776 (generic_printstr):
777 (val_print_string):
778 Use type_byte_order instead of gdbarch_byte_order.
779 * value.c (unpack_long):
780 (unpack_bits_as_long):
781 (unpack_value_bitfield):
782 (modify_field):
783 (pack_long):
784 (pack_unsigned_long):
785 Use type_byte_order instead of gdbarch_byte_order.
786 * findvar.c (unsigned_pointer_to_address):
787 (signed_pointer_to_address):
788 (unsigned_address_to_pointer):
789 (address_to_signed_pointer):
790 (default_read_var_value):
791 (default_value_from_register):
792 Use type_byte_order instead of gdbarch_byte_order.
793 * gnu-v3-abi.c (gnuv3_make_method_ptr):
794 Use type_byte_order instead of gdbarch_byte_order.
795 * riscv-tdep.c (riscv_print_one_register_info):
796 Use type_byte_order instead of gdbarch_byte_order.
797
798 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
801 (current_ui_gdb_stdin_ptr): Likewise.
802 (current_ui_gdb_stderr_ptr): Likewise.
803 (current_ui_gdb_stdlog_ptr): Likewise.
804 (current_ui_current_uiout_ptr): Likewise.
805 (gen_ret_current_ui_field_ptr): Remove.
806
807 2019-11-21 Tom de Vries <tdevries@suse.de>
808
809 PR gdb/24956
810 * cli/cli-script.c (execute_control_command): Only switch to
811 INTERP_CONSOLE's ui_out when INTERP_MI is active.
812
813 2019-11-19 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
816 Now static. Change type of "name".
817 (tui_set_win_height_command): Don't copy "arg".
818 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
819 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
820
821 2019-11-19 Ali Tamur <tamur@google.com>
822
823 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
824 "if (attr != nullptr)".
825 (dwarf2_find_base_address): Likewise.
826 (dwarf2_build_include_psymtabs): Likewise.
827 (read_cutu_die_from_dwo): Likewise.
828 (read_func_scope): Likewise.
829 (read_call_site_scope): Likewise.
830 (dwarf2_get_pc_bounds): Likewise.
831 (dwarf2_record_block_ranges): Likewise.
832 (dwarf2_add_field): Likewise.
833 (dwarf2_add_member_fn): Likewise.
834 (read_structure_type): Likewise.
835 (read_enumeration_type): Likewise.
836 (read_array_type): Likewise.
837 (read_array_order): Likewise.
838 (read_set_type): Likewise.
839 (read_common_block): Likewise.
840 (read_tag_reference_type): Likewise.
841 (read_tag_string_type): Likewise.
842 (read_subroutine_type): Likewise.
843 (read_base_type): Likewise.
844 (read_subrange_type): Likewise.
845 (new_symbol): Likewise.
846 (prepare_one_comp_unit): Likewise.
847
848 2019-11-19 Tom Tromey <tromey@adacore.com>
849
850 * windows-nat.c (windows_nat_target::attach): Include GetLastError
851 result in error when DebugActiveProcess fails.
852
853 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
854 Pedro Alves <palves@redhat.com>
855
856 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
857 * target.c (target_stack::push): Call 'unpush' if there's a
858 target on top of the stack.
859
860 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
861
862 * python/py-block.c (blpy_dealloc): Call tp_free.
863 (blpy_block_syms_dealloc): Likewise.
864 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
865 * python/py-inferior.c (infpy_dealloc): Likewise.
866 * python/py-lazy-string.c (stpy_dealloc): Likewise.
867 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
868 * python/py-symbol.c (sympy_dealloc): Likewise.
869 * python/py-symtab.c (stpy_dealloc): Likewise.
870 * python/py-type.c (typy_iterator_dealloc): Likewise.
871
872 2019-11-18 Christian Biesinger <cbiesinger@google.com>
873
874 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
875 constructor instead of using a class initializer.
876
877 2019-11-15 Christian Biesinger <cbiesinger@google.com>
878
879 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
880 * configure: Regenerate.
881 * configure.ac: Don't source common.host.
882 * gdbsupport/common.host: Remove.
883 * gdbsupport/mingw-strerror.c: Remove.
884 * gdbsupport/posix-strerror.c: Rename to...
885 * gdbsupport/safe-strerror.c: ...this.
886
887 2019-11-15 Christian Biesinger <cbiesinger@google.com>
888
889 * maint.c (scoped_command_stats::print_time): Use localtime_r
890 instead of localtime (provided through gnulib if necessary).
891 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
892 of ctime.
893
894 2019-11-15 Christian Biesinger <cbiesinger@google.com>
895
896 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
897 avoid compile errors.
898
899 2019-11-15 Christian Biesinger <cbiesinger@google.com>
900
901 * config.in: Regenerate.
902 * configure: Regenerate.
903 * gdbsupport/common.m4: No longer check for strerror_r.
904 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
905 POSIX version of strerror_r, now that gnulib provides it if
906 necessary.
907
908 2019-11-14 Christian Biesinger <cbiesinger@google.com>
909
910 * README (`configure' options): Update.
911
912 2019-11-14 Tom Tromey <tromey@adacore.com>
913
914 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
915 expected type for the RHS if the LHS is a convenience variable.
916
917 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
920 Provide explicit default and copy constructor.
921
922 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
923
924 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
925 only call Py_INCREF (newbp) in the bppy_pending_object case.
926
927 2019-11-13 Tom Tromey <tromey@adacore.com>
928
929 PR build/25182:
930 * psympriv.h (partial_symbol): Remove static assert.
931 * symtab.h (general_symbol_info, symbol): Remove static assert.
932
933 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * gdbsupport/format.c (format_pieces::format_pieces): Support
936 printf 'z' size modifier.
937 * gdbsupport/format.h (enum argclass): Add size_t_arg.
938 * printcmd.c (ui_printf): Handle size_t_arg.
939 * ui-out.c (ui_out::vmessage): Likewise.
940 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
941 function.
942 (run_tests): Call test_format_int_sizes.
943
944 2019-11-12 Christian Biesinger <cbiesinger@google.com>
945
946 * ada-exp.y (write_ambiguous_var): Update.
947 * buildsym.c (add_symbol_to_list): Update.
948 * dwarf2read.c (read_variable): Update.
949 (new_symbol): Update.
950 * jit.c (finalize_symtab): Update.
951 * language.c (language_alloc_type_symbol): Update.
952 * symtab.c (fixup_symbol_section): Update.
953 (initialize_objfile_symbol_1): Move code to...
954 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
955 (allocate_symbol): Update.
956 (allocate_template_symbol): Update.
957 (get_symbol_address): Update.
958 * symtab.h (struct symbol): Inherit from general_symbol_info instead
959 of having as a field, and add a constructor.
960 (SYMBOL_VALUE): Update.
961 (SYMBOL_VALUE_ADDRESS): Update.
962 (SET_SYMBOL_VALUE_ADDRESS): Update.
963 (SYMBOL_VALUE_BYTES): Update.
964 (SYMBOL_VALUE_COMMON_BLOCK): Update.
965 (SYMBOL_BLOCK_VALUE): Update.
966 (SYMBOL_VALUE_CHAIN): Update.
967 (SYMBOL_LANGUAGE): Update.
968 (SYMBOL_SECTION): Update.
969 (SYMBOL_OBJ_SECTION): Update.
970 (SYMBOL_SET_LANGUAGE): Update.
971 (SYMBOL_SET_LINKAGE_NAME): Update.
972 (SYMBOL_SET_NAMES): Update.
973 (SYMBOL_NATURAL_NAME): Update.
974 (SYMBOL_LINKAGE_NAME): Update.
975 (SYMBOL_DEMANGLED_NAME): Update.
976 (SYMBOL_SEARCH_NAME): Update.
977 (SYMBOL_MATCHES_SEARCH_NAME): Update.
978 (struct symbol): Update.
979 (struct template_symbol): Update.
980 (struct rust_vtable_symbol): Update.
981 * xcoffread.c (SYMBOL_DUP): Update.
982
983 2019-11-12 Tom Tromey <tom@tromey.com>
984
985 * tui/tui-layout.c (show_layout): Set current_layout.
986 (show_source_disasm_command, show_data)
987 (show_source_or_disasm_and_command): Don't set current_layout.
988
989 2019-11-12 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
992
993 2019-11-12 Tom Tromey <tom@tromey.com>
994
995 * tui/tui-win.c (resize_message): New global.
996 (show_tui_resize_message): New function.
997 (tui_async_resize_screen): Print message if requested.
998 (_initialize_tui_win): Add tui-resize-message setting.
999 * NEWS: Add entry for new commands.
1000
1001 2019-11-11 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1004 functions.
1005
1006 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1007
1008 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1009
1010 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1011
1012 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1013 function.
1014 * python/python-internal.h (gdbpy_lookup_static_symbols):
1015 Declare new function.
1016 * python/python.c (python_GdbMethods): Add
1017 gdb.lookup_static_symbols method.
1018 * NEWS: Mention gdb.lookup_static_symbols.
1019
1020 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1023 static block of current object file first. Also fix typo in
1024 header comment.
1025
1026 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * stack.c (set_last_displayed_sal): Delete.
1029 (last_displayed_sal_valid): Delete.
1030 (last_displayed_pspace): Delete.
1031 (last_displayed_addr): Delete.
1032 (last_displayed_symtab): Delete.
1033 (last_displayed_line): Delete.
1034 (class last_displayed_symtab_info_type): New.
1035 (last_displayed_symtab_info): New static global variable.
1036 (print_frame_info): Call methods on last_displayed_symtab_info.
1037 (clear_last_displayed_sal): Update header comment, and make use of
1038 last_displayed_symtab_info.
1039 (last_displayed_sal_is_valid): Likewise.
1040 (get_last_displayed_pspace): Likewise.
1041 (get_last_displayed_addr): Likewise.
1042 (get_last_displayed_symtab): Likewise.
1043 (get_last_displayed_line): Likewise.
1044 (get_last_displayed_sal): Likewise.
1045 * stack.h (clear_last_displayed_sal): Update header comment.
1046 (last_displayed_sal_is_valid): Likewise.
1047 (get_last_displayed_pspace): Likewise.
1048 (get_last_displayed_addr): Likewise.
1049 (get_last_displayed_symtab): Likewise.
1050 (get_last_displayed_line): Likewise.
1051 (get_last_displayed_sal): Likewise.
1052
1053 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * stack.c (frame_show_address): Convert return type to bool.
1056 * stack.h (frame_show_address): Likewise, and update header
1057 comment.
1058
1059 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1062 * unittests/vec-utils-selftests.c: New file.
1063 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1064
1065 2019-11-10 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1068 (tui_highlight_win): Likewise.
1069 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1070 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1071 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1072 Don't set can_highlight.
1073
1074 2019-11-10 Tom Tromey <tom@tromey.com>
1075
1076 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1077 Remove unused declaration.
1078
1079 2019-11-08 Tom Tromey <tromey@adacore.com>
1080
1081 * top.c (read_command_file): Update.
1082 (command_line_input): Make return type const.
1083 * python/py-gdb-readline.c: Update.
1084 * linespec.c (decode_line_2): Update.
1085 * defs.h (command_line_input): Make return type const.
1086 * cli/cli-script.c (read_next_line): Make return type const.
1087 * ada-lang.c (get_selections): Update.
1088
1089 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1090
1091 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1092 * mi/mi-main.c (output_cores): Likewise.
1093 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1094 (linux_xfer_osdata_modules): Likewise.
1095 * remote.c (register_remote_support_xml): Likewise.
1096 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1097 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1098
1099 2019-11-06 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-interp.c: Don't include readline.h.
1102 * tui/tui-hooks.c: Don't include readline.h.
1103 * symmisc.c: Include tilde.h, not readline.h.
1104 * symfile.c: Include tilde.h, not readline.h.
1105 * source.c: Include tilde.h, not readline.h.
1106 * solib.c: Include tilde.h, not readline.h.
1107 * psymtab.c: Include tilde.h, not readline.h.
1108 * exec.c: Include tilde.h, not readline.h.
1109 * corelow.c: Include tilde.h, not readline.h.
1110 * cli/cli-dump.c: Include tilde.h, not readline.h.
1111 * cli/cli-cmds.c: Don't include readline.h.
1112
1113 2019-11-05 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1116 (tui_disassemble): Set addr_size.
1117 (tui_disasm_window::set_contents): Use addr_size.
1118
1119 2019-11-05 Tom Tromey <tom@tromey.com>
1120
1121 * rust-lang.c (rust_language_defn): Update.
1122 * python/py-value.c (valpy_string): Call c_get_string.
1123 * p-lang.c (pascal_language_defn): Update.
1124 * opencl-lang.c (opencl_language_defn): Update.
1125 * objc-lang.c (objc_language_defn): Update.
1126 * m2-lang.c (m2_language_defn): Update.
1127 * language.c (unknown_language_defn, auto_language_defn): Update.
1128 (default_get_string): Remove.
1129 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1130 * go-lang.c (go_language_defn): Update.
1131 * f-lang.c (f_language_defn): Update.
1132 * d-lang.c (d_language_defn): Update.
1133 * c-lang.c (c_language_defn, cplus_language_defn)
1134 (asm_language_defn, minimal_language_defn): Update.
1135 * ada-lang.c (ada_language_defn): Update.
1136 * language.h (struct language_defn) <la_get_string>: Remove.
1137 (LA_GET_STRING): Remove.
1138 (default_get_string): Don't declare.
1139
1140 2019-11-05 Tom Tromey <tom@tromey.com>
1141
1142 * tui/tui-source.h (struct tui_source_window): Inline
1143 constructor. Remove destructor.
1144 <style_changed, m_observable>: Move to superclass.
1145 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1146 (struct tui_source_window_base): Move private members to end.
1147 <style_changed, m_observable>: Move from tui_source_window.
1148 * tui/tui-winsource.c (tui_copy_source_line): Move from
1149 tui-source.c. Rename from copy_source_line. Add special handling
1150 for negative line number.
1151 (tui_source_window_base::style_changed): Move from
1152 tui_source_window.
1153 (tui_source_window_base): Register observer.
1154 (~tui_source_window_base): New.
1155 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1156 rename.
1157 (tui_source_window::set_contents): Use tui_copy_source_line.
1158 (tui_source_window::tui_source_window): Move to tui-source.h.
1159 (tui_source_window::~tui_source_window): Remove.
1160 (tui_source_window::style_changed): Move to superclass.
1161 * tui/tui-disasm.c (tui_disassemble): Create string file with
1162 styling, when possible. Add "addr_size" parameter.
1163 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1164 Don't compute maximum size.
1165 (len_without_escapes): New function
1166
1167 2019-11-05 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1170 std::string.
1171 * tui/tui-winsource.c (tui_show_source_line): Update.
1172 * tui/tui-source.c (tui_source_window::set_contents): Update.
1173 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1174
1175 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1176
1177 * symtab.h (gdb_static_assert): Put && operator at the beginning
1178 of the line instead of the end.
1179
1180 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1181
1182 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1183 and sizeof (symbol).
1184 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1185
1186 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1187
1188 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1189 * configure.host: Mark *-*-solaris2.10* obsolete.
1190 * configure.tgt: Mark Solaris < 11 obsolete.
1191 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1192 Update target triplet.
1193
1194 2019-11-01 Tom Tromey <tromey@adacore.com>
1195
1196 * utils.c (print_sys_errmsg): Simplify.
1197
1198 2019-11-01 Tom Tromey <tromey@adacore.com>
1199
1200 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1201
1202 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1203
1204 * configure: Regenerate.
1205 * configure.ac: Remove check for strerror_r.
1206 * gdbsupport/common.m4: Check for strerror_r.
1207
1208 2019-11-01 Luis Machado <luis.machado@linaro.org>
1209
1210 PR gdb/25124
1211
1212 * arm-tdep.c (arm_per_objfile): Rename to ...
1213 (arm_per_bfd): ... this.
1214 (arm_objfile_data_key): Rename to ...
1215 (arm_bfd_data_key): ... this.
1216 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1217 data.
1218 (arm_record_special_symbol): Likewise.
1219
1220 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1223 end.
1224 * c-typeprint.c (c_print_typedef): Likewise.
1225 * f-typeprint.c (f_print_typedef): Likewise.
1226 * m2-typeprint.c (m2_print_typedef): Likewise.
1227 * p-typeprint.c (pascal_print_typedef): Likewise.
1228 * rust-lang.c (rust_print_typedef): Likewise.
1229 * symtab.c (print_symbol_info): Print a newline after calling
1230 typedef_print.
1231
1232 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * symtab.c (info_module_cmdlist): New variable.
1235 (info_module_command): New function.
1236 (search_module_symbols): New function.
1237 (info_module_subcommand): New function.
1238 (struct info_modules_var_func_options): New struct.
1239 (info_modules_var_func_options_defs): New variable.
1240 (make_info_modules_var_func_options_def_group): New function.
1241 (info_module_functions_command): New function.
1242 (info_module_variables_command): New function.
1243 (info_module_var_func_command_completer): New function.
1244 (_initialize_symtab): Register new 'info module functions' and
1245 'info module variables' commands.
1246 * symtab.h (typedef symbol_search_in_module): New typedef.
1247 (search_module_symbols): Declare new function.
1248 * NEWS: Mention new commands.
1249
1250 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1253 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1254 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1255 MODULES_DOMAIN.
1256 (scan_partial_symbols): Only create partial module symbols for non
1257 declarations.
1258 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1259 and MODULES_DOMAIN.
1260 * symtab.c (search_domain_name): Likewise.
1261 (search_symbols): Likewise.
1262 (print_symbol_info): Likewise.
1263 (symtab_symbol_info): Likewise.
1264 (info_modules_command): New function.
1265 (_initialize_symtab): Register 'info modules' command.
1266 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1267 * NEWS: Mention new 'info modules' command.
1268
1269 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1270
1271 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1272 and $_gdb_maint_setting_str.
1273
1274 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1275
1276 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1277 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1278 (str_value_from_setting, gdb_setting_str_internal_fn)
1279 (gdb_maint_setting_str_internal_fn): New functions.
1280 (_initialize_cli_cmds): Define the new convenience functions.
1281 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1282 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1283
1284 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1285
1286 * agent.c (set_can_use_agent): When the setting is turned on,
1287 look up agent symbols if we don't have them yet.
1288 (agent_new_objfile): Don't look up agent symbols when the agent
1289 setting is off.
1290
1291 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1292
1293 * config.in: Regenerate.
1294
1295 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1296
1297 * configure: Regenerate.
1298 * configure.ac: Check for strerror_r.
1299 * gdbsupport/common-utils.h (safe_strerror): Change return value
1300 to const char * and document that this function is now threadsafe.
1301 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1302 thread_local and call strerror_r, if available.
1303 * utils.c (perror_string): Update.
1304 (print_sys_errmsg): Update.
1305
1306 2019-10-31 Luis Machado <luis.machado@linaro.org>
1307
1308 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1309 objfile_key.
1310 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1311 objfile to fetch per-bfd data.
1312 (arm_find_exidx_entry): Likewise.
1313
1314 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1315
1316 * gdbsupport/agent.c (debug_agent): Change type to bool.
1317 (use_agent): Likewise.
1318 (all_agent_symbols_look_up): Likewise.
1319 (agent_loaded_p): Change return value to bool.
1320 (agent_look_up_symbols): Update.
1321 (agent_capability_check): Change return value to bool.
1322 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1323 (debug_agent): Change type to bool.
1324 (use_agent): Likewise.
1325 (agent_capability_check): Change return value to bool.
1326
1327 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1328
1329 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1330 (build_minimal_symbol_hash_tables): Code to clear the table moved
1331 to clear_minimal_symbol_hash_tables.
1332 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1333 when needed.
1334
1335 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1336
1337 * infcmd.c: Remove includes.
1338 * infrun.c: Remove includes.
1339
1340 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1341
1342 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1343 (grow_vect): Remove declaration.
1344 (ada_type_of_array): Remove declaration.
1345 (ada_update_initial_language): Remove declaration.
1346 (ada_fold_name): Remove declaration.
1347 (ada_fill_in_ada_prototype): Remove declaration.
1348 (user_select_syms): Remove declaration.
1349 (get_selections): Remove declaration.
1350 (ada_tag_type): Remove declaration.
1351 (ada_value_tag): Remove declaration.
1352 (ada_is_others_clause): Remove declaration.
1353 (ada_in_variant): Remove declaration.
1354 (ada_value_struct_elt): Remove declaration.
1355 (ada_attribute_name): Remove declaration.
1356 (ada_system_address_type): Remove declaration.
1357 * ada-lang.c (ada_watch_location_expression): Make static.
1358 (GROW_VECT): Move here from ada-lang.h.
1359 (grow_vect): Make static.
1360 (ada_update_initial_language): Make static.
1361 (ada_fold_name): Make static.
1362 (ada_type_of_array): Make static.
1363 (encoded_ordered_before): Move up.
1364 (sort_choices): Move up.
1365 (print_signatures): Move up.
1366 (ada_print_symbol_signature): Move up.
1367 (get_selections): Move up and make static.
1368 (user_select_syms): Move up and make static.
1369 (ada_value_struct_elt): Move up and make static.
1370 (ada_tag_type): Make static.
1371 (ada_value_tag): Make static.
1372 (ada_is_others_clause): Make static.
1373 (ada_in_variant): Make static.
1374 (ada_attribute_name): Make static.
1375
1376 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * ada-lang.c: Remove includes.
1379 * ada-typeprint.c: Remove includes.
1380 * ada-valprint.c: Remove includes.
1381
1382 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1383
1384 * addrmap.c: Add static assertions of type size, moved from
1385 _initialize_addrmap.
1386 (_initialize_addrmap): Remove.
1387
1388 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1389
1390 * coffread.c (record_minimal_symbol): Update.
1391 (process_coff_symbol): Update.
1392 * dbxread.c (read_dbx_symtab): Update.
1393 * dwarf2read.c (add_partial_symbol): Update.
1394 (fixup_go_packaging): Update.
1395 (load_partial_dies): Update.
1396 (new_symbol): Update.
1397 * elfread.c (record_minimal_symbol): Change signature to use
1398 gdb::string_view instead of name+len.
1399 (elf_symtab_read): Update.
1400 (elf_rel_plt_read): Update.
1401 * mdebugread.c (parse_partial_symbols): Update.
1402 (handle_psymbol_enumerators): Update.
1403 (new_symbol): Update.
1404 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1405 to use gdb::string_view instead of name+len.
1406 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1407 * psympriv.h (add_psymbol_to_list): Likewise.
1408 * psymtab.c (add_psymbol_to_bcache): Likewise.
1409 (add_psymbol_to_list): Likewise.
1410 * stabsread.c (define_symbol): Update.
1411 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1412 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1413 (symbol_set_names): Likewise.
1414 * xcoffread.c (scan_xcoff_symtab): Update.
1415
1416 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1417
1418 * symtab.h (symbol_set_names): Document that copy_name must be
1419 set to true for non-nullterminated strings.
1420 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1421 linkage_name if the entry was not found and we need to demangle.
1422
1423 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1424
1425 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1426 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1427 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1428 * gdbsupport/gdb_binary_search.h: New file.
1429
1430 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1431
1432 * NEWS: Mention new --with-system-gdbinit-dir option.
1433 * config.in: Regenerate.
1434 * configure: Regenerate.
1435 * configure.ac: Add new option --with-system-gdbinit-dir.
1436 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1437 for a ".gdb" suffix.
1438 * main.c (get_init_files): Change system_gdbinit argument to
1439 a vector and return the files in SYSTEM_GDBINIT_DIR in
1440 addition to SYSTEM_GDBINIT.
1441 (captured_main_1): Update.
1442 (print_gdb_help): Update.
1443 * top.c (print_gdb_configuration): Also print the value of
1444 SYSTEM_GDBINIT_DIR.
1445
1446 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1447
1448 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1449 that takes gdb::string_view arguments.
1450
1451 2019-10-26 Tom de Vries <tdevries@suse.de>
1452
1453 * aarch64-linux-tdep.c: Fix typos in comments.
1454 * aarch64-tdep.c: Same.
1455 * ada-lang.c: Same.
1456 * amd64-nat.c: Same.
1457 * arc-tdep.c: Same.
1458 * arch/aarch64-insn.c: Same.
1459 * block.c: Same.
1460 * breakpoint.h: Same.
1461 * btrace.h: Same.
1462 * c-varobj.c: Same.
1463 * cli/cli-decode.c: Same.
1464 * cli/cli-script.c: Same.
1465 * cli/cli-utils.h: Same.
1466 * coff-pe-read.c: Same.
1467 * coffread.c: Same.
1468 * compile/compile-cplus-symbols.c: Same.
1469 * compile/compile-object-run.c: Same.
1470 * completer.c: Same.
1471 * corelow.c: Same.
1472 * cp-support.c: Same.
1473 * demangle.c: Same.
1474 * dwarf-index-write.c: Same.
1475 * dwarf2-frame.c: Same.
1476 * dwarf2-frame.h: Same.
1477 * eval.c: Same.
1478 * frame-base.h: Same.
1479 * frame.h: Same.
1480 * gdbcmd.h: Same.
1481 * gdbtypes.h: Same.
1482 * gnu-nat.c: Same.
1483 * guile/scm-objfile.c: Same.
1484 * i386-tdep.c: Same.
1485 * i386-tdep.h: Same.
1486 * infcall.c: Same.
1487 * infcall.h: Same.
1488 * linux-nat.c: Same.
1489 * m68k-tdep.c: Same.
1490 * macroexp.c: Same.
1491 * memattr.c: Same.
1492 * mi/mi-cmd-disas.c: Same.
1493 * mi/mi-getopt.h: Same.
1494 * mi/mi-main.c: Same.
1495 * minsyms.c: Same.
1496 * nat/aarch64-sve-linux-sigcontext.h: Same.
1497 * objfiles.h: Same.
1498 * ppc-linux-nat.c: Same.
1499 * ppc-linux-tdep.c: Same.
1500 * ppc-tdep.h: Same.
1501 * progspace.h: Same.
1502 * prologue-value.h: Same.
1503 * python/py-evtregistry.c: Same.
1504 * python/py-instruction.h: Same.
1505 * record-btrace.c: Same.
1506 * record-full.c: Same.
1507 * remote.c: Same.
1508 * rs6000-tdep.c: Same.
1509 * ser-tcp.c: Same.
1510 * sol-thread.c: Same.
1511 * sparc-sol2-tdep.c: Same.
1512 * sparc64-tdep.c: Same.
1513 * stabsread.c: Same.
1514 * symfile.c: Same.
1515 * symtab.h: Same.
1516 * target.c: Same.
1517 * tracepoint.c: Same.
1518 * tui/tui-data.h: Same.
1519 * tui/tui-io.c: Same.
1520 * tui/tui-win.c: Same.
1521 * tui/tui.c: Same.
1522 * unittests/rsp-low-selftests.c: Same.
1523 * user-regs.h: Same.
1524 * utils.c: Same.
1525 * utils.h: Same.
1526 * valarith.c: Same.
1527 * valops.c: Same.
1528 * valprint.c: Same.
1529 * valprint.h: Same.
1530 * value.c: Same.
1531 * value.h: Same.
1532 * varobj.c: Same.
1533 * x86-nat.h: Same.
1534 * xtensa-tdep.c: Same.
1535
1536 2019-10-25 Ali Tamur <tamur@google.com>
1537
1538 * charset.c (find_charset_names): Reflect API change.
1539
1540 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1541
1542 * symtab.c (struct demangled_name_entry): Change demangled name
1543 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1544 part of the struct anymore.
1545 (symbol_set_names): No longer obstack allocate + copy the demangled
1546 name, just store the allocated name from bfd.
1547
1548 2019-10-25 Tom Tromey <tromey@adacore.com>
1549
1550 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1551 (bsearch_cie_cmp, add_cie): Remove.
1552 (find_cie): Reimplement.
1553 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1554 (dwarf2_build_frame_info): Update.
1555
1556 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1557
1558 PR gdb/25126
1559 * symfile.c (reread_symbols): Call forget_cached_source_info to
1560 clear the stale source cache.
1561
1562 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1563
1564 * configure: Regenerate.
1565 * configure.ac: Remove code that sets python_has_threads.
1566
1567 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1568
1569 * config.in: Regenerate.
1570 * configure: Regenerate.
1571 * configure.ac: Remove the code that uses sed to get the python
1572 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1573
1574 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1577 error paths.
1578
1579 2019-10-23 Tom Tromey <tom@tromey.com>
1580
1581 * arc-tdep.c: Remove ".." from include.
1582 * frv-tdep.c: Remove ".." from include.
1583 * lm32-tdep.c: Remove ".." from include.
1584 * microblaze-tdep.c: Remove ".." from include.
1585 * or1k-tdep.h: Remove ".." from include.
1586 * s12z-tdep.c: Remove ".." from include.
1587 * Makefile.in (OPCODES_CFLAGS): Add comment.
1588 (TOP_CFLAGS): New variable.
1589 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1590
1591 2019-10-23 Tom Tromey <tom@tromey.com>
1592
1593 * Makefile.in (READLINE_DIR): Update.
1594
1595 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 * infcall.c (call_function_by_hand_dummy): Fix the function
1598 comment. And extract out a code section into...
1599 (reserve_stack_space): ...this new function.
1600
1601 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602
1603 * infcall.c (value_arg_coerce): Remove an unused parameter.
1604 (call_function_by_hand_dummy): Update the call to
1605 'value_arg_coerce'.
1606
1607 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1608
1609 * infcall.c (call_function_by_hand_dummy): Refactor.
1610
1611 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1612
1613 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1614
1615 2019-10-23 Tom Tromey <tom@tromey.com>
1616
1617 * configure: Rebuild.
1618 * configure.ac: Don't check for sigprocmask.
1619 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1620
1621 2019-10-23 Tom Tromey <tom@tromey.com>
1622
1623 * configure: Rebuild.
1624 * acinclude.m4: Use m4_include, not sinclude.
1625
1626 2019-10-23 Tom de Vries <tdevries@suse.de>
1627
1628 PR breakpoints/24687
1629 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1630
1631 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1632
1633 * symtab.c (struct demangled_name_entry) <language>: Change from
1634 bitfield to regular variable.
1635
1636 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1637
1638 * symtab.c (struct demangled_name_entry): Add a constructor.
1639 (free_demangled_name_entry): New function to call the destructor
1640 for demangled_name_entry.
1641 (create_demangled_names_hash): Pass free_demangled_name_entry to
1642 htab_create_alloc.
1643 (symbol_set_names): Call placement new for demangled_name_entry.
1644 * utils.c: No longer include xxhash.h here, now that fast_hash
1645 is inlined in the header.
1646 * utils.h: Instead, include it here.
1647
1648 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1649
1650 * Makefile.in: Link with libxxhash.
1651 * config.in: Regenerate.
1652 * configure: Regenerate.
1653 * configure.ac: Search for libxxhash.
1654 * utils.c (fast_hash): Use xxhash if present.
1655
1656 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1657
1658 * utils.h (fast_hash): New function.
1659 * symtab.c (hash_demangled_name_entry): Call new function
1660 fast_hash.
1661
1662 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1663
1664 * symtab.c (struct demangled_name_entry): Change type of mangled
1665 to gdb::string_view. Also adds a constructor that takes the
1666 mangled name.
1667 (hash_demangled_name_entry): Update.
1668 (eq_demangled_name_entry): Update.
1669 (free_demangled_name_entry): New function to call the destructor
1670 now that this is not a POD anymore.
1671 (create_demangled_names_hash): Pass free_demangled_name_entry to
1672 htab_create_alloc.
1673 (symbol_set_names): Update.
1674
1675 2019-10-21 Ali Tamur <tamu@google.com>
1676
1677 * dwarf2read.c (dir_index): Change type.
1678 (file_name_index): Likewise.
1679 (line_header::include_dir_at): Change comment and implementation on
1680 whether it is DWARF 5.
1681 (line_header::is_valid_file_index): New function.
1682 (line_header::file_name_at): Change comment and implementation on
1683 whether it is DWARF 5.
1684 (line_header::file_names): Change to private field renamed as
1685 m_file_names and introduce a new accessor method.
1686 (line_header::file_names_size): New method.
1687 (line_header::include_dirs): Change to private field and rename as
1688 m_include_dirs.
1689 (dw2_get_file_names_reader): Define local var at a smaller scope and
1690 reflect API change.
1691 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1692 (process_structure_scope): Likewise.
1693 (line_header::add_include_dir): Change message and reflect renaming.
1694 (line_header::add_file_name): Likewise.
1695 (read_formatted_entries): Handle DW_FORM_data16.
1696 (dwarf_decode_line_header): Fix line header length calculation.
1697 (psymtab_include_file_name): Change comment and API.
1698 (lnp_state_machine::m_file): Update comment and reflect type change.
1699 (lnp_state_machine::record_line): Reflect type change.
1700 (dwarf_decode_lines): Reflect API change.
1701 (file_file_name): Likewise.
1702 (file_full_name): Likewise.
1703
1704 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1707
1708 2019-10-21 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1711
1712 2019-10-21 Tom Tromey <tom@tromey.com>
1713
1714 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1715 NM_H. Use AC_CONFIG_LINKS.
1716 * configure: Rebuild.
1717 * Makefile.in (NM_H): New variable.
1718 (generated_files): Add NM_H. Remove gcore.
1719 (nm.h, stamp-nmh): New targets.
1720
1721 2019-10-20 Tom Tromey <tom@tromey.com>
1722
1723 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1724 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1725 obsolete comment.
1726 (put_objfile_before): Now static.
1727
1728 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * gdbsupport/common-utils.h (startswith): Change return type to
1731 bool.
1732
1733 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1734
1735 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1736 * breakpoint.c (bp_locations_compare): Rename to...
1737 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1738 (update_global_location_list): Use std::sort instead of qsort.
1739 * buildsym.c (compare_line_numbers): Rename to...
1740 (lte_is_less_than): ...this, and change to std::sort semantics.
1741 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1742 instead of qsort.
1743 * disasm.c (compare_lines): Rename to...
1744 (line_is_less_than): ...this, and change to std::sort semantics.
1745 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1746 of qsort.
1747 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1748 (fde_is_less_than): ...this, and change to std::sort semantics.
1749 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1750 * mdebugread.c (compare_blocks):
1751 (block_is_less_than): ...this, and change to std::sort semantics.
1752 (sort_blocks): Call std::sort instead of qsort.
1753 * objfiles.c (qsort_cmp): Rename to...
1754 (sort_cmp): ...this, and change to std::sort semantics.
1755 (update_section_map): Call std::sort instead of qsort.
1756 * remote.c (compare_pnums): Remove.
1757 (map_regcache_remote_table): Call std::sort instead of qsort.
1758 * utils.c (compare_positive_ints): Remove.
1759 * utils.h (compare_positive_ints): Remove.
1760 * xcoffread.c (compare_lte): Remove.
1761 (arrange_linetable): Call std::sort instead of qsort.
1762
1763 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1764
1765 * symfile.c (init_entry_point_info): Fix typo.
1766 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1767
1768 2019-10-18 Tom de Vries <tdevries@suse.de>
1769
1770 * aarch64-tdep.c: Fix typos in comments.
1771 * ada-lang.c: Same.
1772 * ada-tasks.c: Same.
1773 * alpha-tdep.c: Same.
1774 * alpha-tdep.h: Same.
1775 * amd64-nat.c: Same.
1776 * amd64-windows-tdep.c: Same.
1777 * arc-tdep.c: Same.
1778 * arc-tdep.h: Same.
1779 * arch-utils.c: Same.
1780 * arm-nbsd-tdep.c: Same.
1781 * arm-tdep.c: Same.
1782 * ax-gdb.c: Same.
1783 * blockframe.c: Same.
1784 * btrace.c: Same.
1785 * c-varobj.c: Same.
1786 * coff-pe-read.c: Same.
1787 * coffread.c: Same.
1788 * cris-tdep.c: Same.
1789 * darwin-nat.c: Same.
1790 * dbxread.c: Same.
1791 * dcache.c: Same.
1792 * disasm.c: Same.
1793 * dtrace-probe.c: Same.
1794 * dwarf-index-write.c: Same.
1795 * dwarf2-frame-tailcall.c: Same.
1796 * dwarf2-frame.c: Same.
1797 * dwarf2read.c: Same.
1798 * eval.c: Same.
1799 * exceptions.c: Same.
1800 * fbsd-tdep.c: Same.
1801 * findvar.c: Same.
1802 * frame.c: Same.
1803 * frv-tdep.c: Same.
1804 * gnu-v3-abi.c: Same.
1805 * go32-nat.c: Same.
1806 * h8300-tdep.c: Same.
1807 * hppa-tdep.c: Same.
1808 * i386-linux-tdep.c: Same.
1809 * i386-tdep.c: Same.
1810 * ia64-libunwind-tdep.c: Same.
1811 * ia64-tdep.c: Same.
1812 * infcmd.c: Same.
1813 * infrun.c: Same.
1814 * linespec.c: Same.
1815 * linux-nat.c: Same.
1816 * linux-thread-db.c: Same.
1817 * machoread.c: Same.
1818 * mdebugread.c: Same.
1819 * mep-tdep.c: Same.
1820 * mn10300-tdep.c: Same.
1821 * namespace.c: Same.
1822 * objfiles.c: Same.
1823 * opencl-lang.c: Same.
1824 * or1k-tdep.c: Same.
1825 * osabi.c: Same.
1826 * ppc-linux-nat.c: Same.
1827 * ppc-linux-tdep.c: Same.
1828 * ppc-sysv-tdep.c: Same.
1829 * printcmd.c: Same.
1830 * procfs.c: Same.
1831 * record-btrace.c: Same.
1832 * record-full.c: Same.
1833 * remote-fileio.c: Same.
1834 * remote.c: Same.
1835 * rs6000-tdep.c: Same.
1836 * s12z-tdep.c: Same.
1837 * score-tdep.c: Same.
1838 * ser-base.c: Same.
1839 * ser-go32.c: Same.
1840 * skip.c: Same.
1841 * sol-thread.c: Same.
1842 * solib-svr4.c: Same.
1843 * solib.c: Same.
1844 * source.c: Same.
1845 * sparc-nat.c: Same.
1846 * sparc-sol2-tdep.c: Same.
1847 * sparc-tdep.c: Same.
1848 * sparc64-tdep.c: Same.
1849 * stabsread.c: Same.
1850 * stack.c: Same.
1851 * symfile.c: Same.
1852 * symtab.c: Same.
1853 * target-descriptions.c: Same.
1854 * target-float.c: Same.
1855 * thread.c: Same.
1856 * utils.c: Same.
1857 * valops.c: Same.
1858 * valprint.c: Same.
1859 * value.c: Same.
1860 * varobj.c: Same.
1861 * windows-nat.c: Same.
1862 * xcoffread.c: Same.
1863 * xstormy16-tdep.c: Same.
1864 * xtensa-tdep.c: Same.
1865
1866 2019-10-17 Tom Tromey <tromey@adacore.com>
1867
1868 * configure: Rebuild.
1869 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1870 in AC_CONFIG_FILES invocation.
1871 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1872 new-style config.status invocation.
1873
1874 2019-10-17 Tom de Vries <tdevries@suse.de>
1875
1876 * arm-nbsd-nat.c: Fix typos in comments.
1877 * arm-tdep.c: Same.
1878 * darwin-nat-info.c: Same.
1879 * dwarf2read.c: Same.
1880 * elfread.c: Same.
1881 * event-top.c: Same.
1882 * findvar.c: Same.
1883 * gdbtypes.c: Same.
1884 * hppa-tdep.c: Same.
1885 * i386-tdep.c: Same.
1886 * jit.c: Same.
1887 * main.c: Same.
1888 * mdebugread.c: Same.
1889 * moxie-tdep.c: Same.
1890 * nto-procfs.c: Same.
1891 * osabi.c: Same.
1892 * ppc-linux-tdep.c: Same.
1893 * remote.c: Same.
1894 * riscv-tdep.c: Same.
1895 * s390-tdep.c: Same.
1896 * sh-tdep.c: Same.
1897 * sparc-linux-tdep.c: Same.
1898 * sparc-nat.c: Same.
1899 * stack.c: Same.
1900 * target-descriptions.c: Same.
1901 * top.c: Same.
1902 * varobj.c: Same.
1903
1904 2019-10-16 Tom Tromey <tom@tromey.com>
1905
1906 * objfiles.h (struct objfile) <original_name>: Now const.
1907
1908 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1909
1910 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1911 pass on to sigsetjmp's second argument.
1912 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1913
1914 2019-10-16 Keith Seitz <keiths@redhat.com>
1915
1916 PR gdb/23567
1917 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1918 sections whose size is greater than the file size.
1919
1920 2019-10-16 Jim Wilson <jimw@sifive.com>
1921
1922 * riscv-tdep.c (riscv_gcc_target_options): New.
1923 (riscv_gnu_triplet_regexp): New.
1924 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1925 set_gdbarch_gnu_triplet_regexp.
1926
1927 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1928
1929 * Makefile.in: Add xml-builtin.h.
1930 * features/feature_to_c.sh: Add an include for xml-builtin.h
1931 to ensure that the compiler checks that the types match.
1932 * xml-builtin.h: New file.
1933 * xml-support.c (fetch_xml_builtin): Add missing const.
1934 * xml-support.h: Remove declaration of xml_builtins.
1935
1936 2019-10-16 Tom de Vries <tdevries@suse.de>
1937
1938 PR tdep/25096
1939 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1940 (amd64_classify_aggregate): ... here.
1941 (amd64_classify_aggregate_field): Handled fiels of nested structs
1942 recursively.
1943
1944 2019-10-16 Tom de Vries <tdevries@suse.de>
1945
1946 PR tdep/24104
1947 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1948 that handles 'theclass'.
1949
1950 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * linespec.c (decode_digits_ordinary): Update comment.
1953 * make-target-delegates: No longer need to handle VEC case.
1954 * memrange.c (normalize_mem_ranges): Update comment.
1955 * namespace.c (add_using_directive): Update comment.
1956 * objc-lang.c (uniquify_strings): Update comment.
1957 * ppc-linux-nat.c (struct thread_points): Update comment.
1958 * probe.h (find_probes_in_objfile): Update comment.
1959 * target.h (enum flash_preserve_mode): Update comment.
1960 * varobj.c (varobj_restrict_range): Update comment.
1961 * varobj.h (varobj_list_children): Update comment.
1962
1963 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * Makefile.in: Remove references to vec.h and vec.c.
1966 * aarch64-tdep.c: No longer include vec.h.
1967 * ada-lang.c: Likewise.
1968 * ada-lang.h: Likewise.
1969 * arm-tdep.c: Likewise.
1970 * ax.h: Likewise.
1971 * breakpoint.h: Likewise.
1972 * charset.c: Likewise.
1973 * cp-support.h: Likewise.
1974 * dtrace-probe.c: Likewise.
1975 * dwarf2read.c: Likewise.
1976 * extension.h: Likewise.
1977 * gdb_bfd.c: Likewise.
1978 * gdbsupport/gdb_vecs.h: Likewise.
1979 * gdbsupport/vec.c: Remove.
1980 * gdbsupport/vec.h: Remove.
1981 * gdbthread.h: Likewise.
1982 * guile/scm-type.c: Likewise.
1983 * inline-frame.c: Likewise.
1984 * machoread.c: Likewise.
1985 * memattr.c: Likewise.
1986 * memrange.h: Likewise.
1987 * namespace.h: Likewise.
1988 * nat/linux-btrace.h: Likewise.
1989 * osdata.c: Likewise.
1990 * parser-defs.h: Likewise.
1991 * progspace.h: Likewise.
1992 * python/py-type.c: Likewise.
1993 * record-btrace.c: Likewise.
1994 * rust-exp.y: Likewise.
1995 * solib-target.c: Likewise.
1996 * stap-probe.c: Likewise.
1997 * target-descriptions.c: Likewise.
1998 * target-memory.c: Likewise.
1999 * target.h: Likewise.
2000 * varobj.c: Likewise.
2001 * varobj.h: Likewise.
2002 * xml-support.h: Likewise.
2003
2004 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2007 Update for new std::vector based implementation.
2008 (process_psymtab_comp_unit_reader): Likewise.
2009 (scan_partial_symbols): Likewise.
2010 (recursively_compute_inclusions): Likewise.
2011 (compute_compunit_symtab_includes): Likewise.
2012 (process_imported_unit_die): Likewise.
2013 (queue_and_load_dwo_tu): Likewise.
2014 (follow_die_sig_1): Likewise.
2015 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2016 (typedef dwarf2_per_cu_ptr): Remove.
2017 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2018 function.
2019 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2020 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2021 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2022 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2023 std::vector.
2024
2025 2019-10-15 Tom Tromey <tromey@adacore.com>
2026
2027 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2028 TID.
2029
2030 2019-10-15 Tom Tromey <tromey@adacore.com>
2031
2032 * windows-nat.c (windows_nat_target::fetch_registers)
2033 (windows_nat_target::store_registers): Rename "pid" to "tid".
2034
2035 2019-10-15 Tom Tromey <tromey@adacore.com>
2036
2037 * gdbarch.h, gdbarch.c: Rebuild.
2038 * gdbarch.sh (gcc_target_options): Change return type to
2039 std::string.
2040 * compile/compile.c (get_args): Update.
2041 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2042 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2043 std::string.
2044 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2045 std::string.
2046 * arch-utils.c (default_gcc_target_options): Return std::string.
2047 * arch-utils.h (default_gcc_target_options): Return std::string.
2048 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2049
2050 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2051
2052 * breakpoint.c (breakpoint_chain): Make static.
2053 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2054 of accessing breakpoint_chain.
2055
2056 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2057
2058 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2059 to a gdb::function_view and return value to bool.
2060 * breakpoint.h (iterate_over_breakpoints): Likewise.
2061 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2062 (pop_dummy_frame): Update.
2063 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2064 (gdbscm_breakpoints): Update.
2065 * python/py-breakpoint.c (build_bp_list): Update.
2066 (gdbpy_breakpoints): Update.
2067 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2068 Update.
2069 (bpfinishpy_handle_stop): Update.
2070 (bpfinishpy_handle_exit): Update.
2071 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2072 (svr4_update_solib_event_breakpoints): Update.
2073
2074 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2075
2076 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2077 when unwrapping single-field structs.
2078
2079 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * dwarf2read.c: Remove includes.
2082
2083 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * ui-out.c (ui_out::call_do_message): Silence
2086 -Wformat-nonliteral warning.
2087
2088 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2091 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2092 include: readline/tilde.h.
2093
2094 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2095
2096 * remote.c (remote_target::get_trace_status): Remove declaration of
2097 trace_regblock_size.
2098
2099 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2100
2101 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2102 (show_user): Remove declaration of cmdlist.
2103 * cli/cli-cmds.h (max_user_call_depth): Declare.
2104 * cli/cli-script.c (execute_user_command): Remove declaration
2105 of max_user_call_depth.
2106
2107 2019-10-11 Jim Wilson <jimw@sifive.com>
2108
2109 * gdbsupport/print-utils.h (pulongest): Fix comment.
2110 (plongest): Likewise.
2111 (phex): Add missing comment, mention leading zeros.
2112 (phex_nz): Add mention of no leading zeros to comment.
2113
2114 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2115 plongest instead of unsigned long long cast.
2116
2117 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2118
2119 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2120 for external_editor_command and gdbtk_test.
2121
2122 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2123
2124 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2125 * varobj.c (varobjdebug): Move comment to...
2126 * varobj.h (varobjdebug): ...here, and declare.
2127
2128 2019-10-09 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2131 erase_data_content.
2132
2133 2019-10-09 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2136 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2137 * tui/tui-command.c (tui_cmd_window::resize)
2138 (tui_refresh_cmd_win): Update.
2139 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2140 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2141 * tui/tui-data.c (~tui_gen_win_info): Remove.
2142 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2143 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2144 (tui_redisplay_readline, tui_mld_flush)
2145 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2146 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2147 (tui_data_window::erase_data_content)
2148 (tui_data_item_window::rerender)
2149 (tui_data_item_window::refresh_window): Update.
2150 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2151 (box_win, tui_gen_win_info::make_window)
2152 (tui_gen_win_info::make_visible): Update.
2153 (tui_delete_win): Remove.
2154 * tui/tui-winsource.c
2155 (tui_source_window_base::do_erase_source_content): Update.
2156 (tui_show_source_line, tui_source_window_base::update_tab_width)
2157 (tui_source_window_base::update_exec_info): Update.
2158 * tui/tui-data.h (struct curses_deleter): New.
2159 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2160 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2161
2162 2019-10-09 Tom Tromey <tom@tromey.com>
2163
2164 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2165
2166 2019-10-09 Tom Tromey <tom@tromey.com>
2167
2168 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2169 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2170
2171 2019-10-09 Tom Tromey <tom@tromey.com>
2172
2173 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2174 window height directly.
2175 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2176 declare.
2177 * tui/tui-layout.c (tui_default_win_height): Remove.
2178 (tui_default_win_viewport_height): Remove.
2179
2180 2019-10-09 Tom Tromey <tom@tromey.com>
2181
2182 * tui/tui.h: Remove comments.
2183
2184 2019-10-09 Tom de Vries <tdevries@suse.de>
2185
2186 * python/lib/gdb/printer/bound_registers.py: Use
2187 '^builtin_type_bound128' as regexp argument for
2188 add_builtin_pretty_printer.
2189
2190 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2191
2192 * guile/guile.c (guile_extension_script_ops): Remove forward
2193 declaration and mark as static.
2194 (guile_script_ops): Likewise.
2195 (extension_language_guile): Move further down in the file so
2196 it can reference the definitions for guile_{extension_,}script_ops.
2197
2198 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2199
2200 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2201 except SORTL, DFLTCC, and KDSA.
2202
2203 2019-10-08 Tom Tromey <tromey@adacore.com>
2204
2205 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2206 (struct safe_symbol_file_add_args): Remove.
2207
2208 2019-10-08 Tom Tromey <tromey@adacore.com>
2209
2210 * windows-nat.c: Don't include buildsym-legacy.h.
2211
2212 2019-10-08 Tom Tromey <tromey@adacore.com>
2213
2214 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2215
2216 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2217
2218 * gdbtypes.c (overload_debug): Move comment to header.
2219 * gdbtypes.h (overload_debug): Declare.
2220 * valops.c: Remove declaration of overload_debug, instead
2221 include gdbtypes.h.
2222
2223 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2224
2225 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2226 through _().
2227 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2228 move comment...
2229 * language.h (lang_frame_mismatch_warn): ... here. Also add
2230 declaration.
2231 * top.c (lang_frame_mismatch_warn): Remove declaration.
2232 (check_frame_language_change): Pass lang_frame_mismatch_warn
2233 through _().
2234
2235 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2236
2237 * c-lang.h (vtbl_ptr_name): Declare.
2238 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2239 it from the header.
2240 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2241
2242 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2243
2244 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2245 gdb_static_assert.
2246
2247 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2248
2249 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2250 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2251 * ctfread.c: New file.
2252 * ctfread.h: New file.
2253 * elfread.c: Include ctfread.h.
2254 (struct elfinfo text_p): New member ctfsect.
2255 (elf_locate_sections): Mark CTF section.
2256 (elf_symfile_read): Call elfctf_build_psymtabs.
2257 * Makefile.in (LIBCTF): Add.
2258 (CLIBS): Use it.
2259 (CDEPS): Likewise.
2260 (DIST): Add ctfread.c.
2261
2262 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * ctfread.c (struct nextfield): Renamed to ...
2265 (struct ctf_nextfield): ... this.
2266 (struct field_info): Renamed to ...
2267 (strut ctf_field_info): ... this.
2268 (attach_fields_to_type): Update for renamed structures.
2269 (ctf_add_member_cb): Likewise.
2270 (ctf_add_enum_member_cb): Likewise.
2271 (process_struct_members): Likewise.
2272 (process_enum_type): Likewise.
2273
2274 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2275
2276 * tracectf.h: Rename, was ctf.h.
2277 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2278 * tracefile.c: Likewise.
2279 * tracepoint.c: Remove unused include ctf.h.
2280 * mi/mi-main.c: Likewise.
2281 * Makefile.in Replace ctf.c with tracectf.c.
2282
2283 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2284
2285 * version.in: Change version number to "9.0.50.DATE-git".
2286
2287 2019-10-03 Tom Tromey <tom@tromey.com>
2288
2289 PR rust/24976:
2290 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2291
2292 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2295 cp_search_name_hash.
2296 * NEWS: Add entry about nested function support.
2297
2298 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2299 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2302 for nested static variables when searchin VAR_DOMAIN.
2303 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2304 global scope, update comment.
2305 (add_partial_subprogram): Call add_partial_subprogram recursively
2306 for nested subroutines when processinng Fortran.
2307 (load_partial_dies): Process the child entities of a subprogram
2308 when processing Fortran.
2309 (partial_die_parent_scope): Handle building scope
2310 for Fortran nested functions.
2311 (process_die): Record that nested functions have a scope.
2312 (new_symbol): Always record Fortran subprograms on the global
2313 symbol list.
2314 (determine_prefix): How to build the prefix for Fortran
2315 subprograms.
2316
2317 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2320 have just sent the thread a SIGSTOP and are waiting for it to
2321 arrive.
2322
2323 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * btrace.c (btrace_add_pc): Remove whitespace before the template
2326 parameter in 'std::vector <...>'.
2327 (parse_xml_btrace_block): Likewise.
2328 (btrace_maint_decode_pt): Likewise.
2329 (btrace_maint_update_packets): Likewise.
2330 (btrace_maint_print_packets): Likewise.
2331 * btrace.h (struct btrace_maint_info): Likewise.
2332 * dwarf2read.c (struct type_unit_group): Likewise.
2333 (build_type_psymtabs_reader): Likewise.
2334 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2335 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2336 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2337
2338 2019-10-03 Tom de Vries <tdevries@suse.de>
2339
2340 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2341 the first line of the help text for set/show style metadata.
2342
2343 2019-10-02 Tom Tromey <tromey@adacore.com>
2344
2345 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2346 * gdbsupport/common-inferior.c: New file.
2347 * infcmd.c (startup_with_shell): Don't define.
2348 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2349 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2350 * inferior.h (startup_with_shell): Don't declare.
2351
2352 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2353
2354 * gdbsupport/gdb_assert.h: Include errors.h.
2355 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2356
2357 2019-10-02 Tom Tromey <tromey@adacore.com>
2358
2359 * NEWS: Add $_ada_exception entry.
2360 * ada-lang.c (struct ada_catchpoint): Add constructor.
2361 <m_kind>: New member.
2362 (allocate_location_exception, re_set_exception): Remove
2363 "ex" parameter.
2364 (should_stop_exception): Compute $_ada_exception.
2365 (check_status_exception, print_it_exception)
2366 (print_one_exception, print_mention_exception): Remove
2367 "ex" parameter.
2368 (allocate_location_catch_exception, re_set_catch_exception)
2369 (check_status_exception, print_it_catch_exception)
2370 (print_one_catch_exception, print_mention_catch_exception)
2371 (print_recreate_catch_exception)
2372 (allocate_location_catch_exception_unhandled)
2373 (re_set_catch_exception_unhandled)
2374 (check_status_exception, print_it_catch_exception_unhandled)
2375 (print_one_catch_exception_unhandled)
2376 (print_mention_catch_exception_unhandled)
2377 (print_recreate_catch_exception_unhandled)
2378 (allocate_location_catch_assert, re_set_catch_assert)
2379 (check_status_assert, print_it_catch_assert)
2380 (print_one_catch_assert, print_mention_catch_assert)
2381 (print_recreate_catch_assert)
2382 (allocate_location_catch_handlers, re_set_catch_handlers)
2383 (check_status_handlers, print_it_catch_handlers)
2384 (print_one_catch_handlers, print_mention_catch_handlers)
2385 (print_recreate_catch_handlers): Remove.
2386 (create_ada_exception_catchpoint): Update.
2387 (initialize_ada_catchpoint_ops): Update.
2388
2389 2019-10-02 Tom Tromey <tromey@adacore.com>
2390
2391 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2392 (create_excep_cond_exprs): Simplify exception string computation.
2393 (ada_exception_catchpoint_cond_string): Likewise.
2394
2395 2019-10-02 Tom Tromey <tromey@adacore.com>
2396
2397 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2398 * ada-lang.c (lesseq_defined_than): Handle
2399 LOC_STATIC.
2400 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2401 parameter.
2402 (dwarf2_has_info): Likewise.
2403 (new_symbol): Set maybe_copied on symbol when
2404 appropriate.
2405 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2406 parameter.
2407 <can_copy>: New member.
2408 * elfread.c (record_minimal_symbol): Set maybe_copied
2409 on symbol when appropriate.
2410 (elf_symfile_read): Update call to dwarf2_has_info.
2411 * minsyms.c (lookup_minimal_symbol_linkage): New
2412 function.
2413 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2414 * symtab.c (get_symbol_address, get_msymbol_address):
2415 New functions.
2416 * symtab.h (get_symbol_address, get_msymbol_address):
2417 Declare.
2418 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2419 maybe_copied.
2420 (struct symbol, struct minimal_symbol) <maybe_copied>:
2421 New member.
2422
2423 2019-10-02 Tom Tromey <tromey@adacore.com>
2424
2425 * source.c (struct current_source_location): New.
2426 (current_source_key): New global.
2427 (current_source_symtab, current_source_line)
2428 (current_source_pspace): Remove.
2429 (get_source_location): New function.
2430 (get_current_source_symtab_and_line)
2431 (set_default_source_symtab_and_line)
2432 (set_current_source_symtab_and_line)
2433 (clear_current_source_symtab_and_line, select_source_symtab)
2434 (info_source_command, print_source_lines_base)
2435 (info_line_command, search_command_helper, _initialize_source):
2436 Update.
2437
2438 2019-10-02 Tom Tromey <tromey@adacore.com>
2439
2440 * source.c (select_source_symtab): Don't call
2441 decode_line_with_current_source.
2442
2443 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 * symtab.c (lookup_global_symbol): Search global block.
2446
2447 2019-10-02 Tom Tromey <tromey@adacore.com>
2448
2449 * coffread.c (process_coff_symbol): Update.
2450 * dwarf2read.c (var_decode_location, new_symbol): Update.
2451 * mdebugread.c (parse_symbol): Update.
2452 * objfiles.c (relocate_one_symbol): Update.
2453 * stabsread.c (define_symbol, fix_common_block)
2454 (scan_file_globals): Update.
2455 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2456 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2457 * xcoffread.c (process_xcoff_symbol): Update.
2458
2459 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2460
2461 * MAINTAINERS: Update my email address.
2462
2463 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2466 std::vector.
2467 (build_type_psymtabs_reader): Update for std::vector.
2468 (build_type_psymtab_dependencies): Likewise.
2469 * dwarf2read.h: Remove use of DEF_VEC_P.
2470 (typedef sig_type_ptr): Delete.
2471
2472 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2473
2474 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2475 to std::vector.
2476 (btrace_maint_decode_pt): Likewise, and move allocation of the
2477 vector outside of the loop.
2478 (btrace_maint_update_packets): Update to handle change from VEC to
2479 std::vector.
2480 (btrace_maint_print_packets): Likewise.
2481 (maint_info_btrace_cmd): Likewise.
2482 * btrace.h: Remove use of DEF_VEC_O.
2483 (typedef btrace_pt_packet_s): Delete.
2484 (struct btrace_maint_info) <packets>: Change fromm VEC to
2485 std::vector.
2486 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2487
2488 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2489
2490 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2491 make accesses into the vector constant references.
2492 (btrace_add_pc): Update for std::vector.
2493 (btrace_stitch_bts): Likewise.
2494 (parse_xml_btrace_block): Likewise.
2495 (btrace_maint_update_packets): Likewise.
2496 (btrace_maint_print_packets): Likewise.
2497 (maint_info_btrace_cmd): Likewise.
2498 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2499 std::vector.
2500 (btrace_data::empty): Likewise.
2501 (btrace_data_append): Likewise.
2502 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2503 (typedef btrace_block_s): Delete.
2504 (struct btrace_block): Add constructor.
2505 (struct btrace_data_bts) <blocks>: Change to std::vector.
2506 * nat/linux-btrace.c (perf_event_read_bts): Update for
2507 std::vector.
2508 (linux_read_bts): Likewise.
2509
2510 2019-10-01 Tom Tromey <tom@tromey.com>
2511
2512 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2513
2514 2019-10-01 Tom Tromey <tom@tromey.com>
2515
2516 * stack.c (print_frame, info_frame_command_core): Use
2517 styled_string.
2518 * linux-thread-db.c (try_thread_db_load_1)
2519 (try_thread_db_load_from_pdir_1): Use styled_string.
2520 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2521 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2522 (maybe_print_unsupported_script_warning)
2523 (maybe_print_script_not_found_warning): Use styled_string.
2524 * ada-lang.c (user_select_syms): Use styled_string.
2525
2526 2019-10-01 Tom Tromey <tom@tromey.com>
2527
2528 * p-lang.c (pascal_printstr): Use metadata style.
2529 * value.c (show_convenience): Use metadata style.
2530 * valprint.c (valprint_check_validity, val_print_optimized_out)
2531 (val_print_not_saved, val_print_unavailable)
2532 (val_print_invalid_address, generic_val_print, val_print)
2533 (value_check_printable, val_print_array_elements): Use metadata
2534 style.
2535 * ui-out.h (class ui_out) <field_fmt>: New overload.
2536 <do_field_fmt>: Add style parameter.
2537 * ui-out.c (ui_out::field_fmt): New overload.
2538 * typeprint.c (type_print_unknown_return_type)
2539 (val_print_not_allocated, val_print_not_associated): Use metadata
2540 style.
2541 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2542 parameter.
2543 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2544 * tracepoint.c (tvariables_info_1): Use metadata style.
2545 * stack.c (print_frame_arg, print_frame_info, print_frame)
2546 (info_frame_command_core): Use metadata style.
2547 * skip.c (info_skip_command): Use metadata style.
2548 * rust-lang.c (rust_print_enum): Use metadata style.
2549 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2550 metadata style.
2551 * python/py-framefilter.c (py_print_single_arg): Use metadata
2552 style.
2553 * printcmd.c (do_one_display, print_variable_and_value): Use
2554 metadata style.
2555 * p-valprint.c (pascal_val_print)
2556 (pascal_object_print_value_fields): Use metadata style.
2557 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2558 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2559 parameter.
2560 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2561 * m2-valprint.c (m2_print_long_set): Use metadata style.
2562 * m2-typeprint.c (m2_print_type): Use metadata style.
2563 * infcmd.c (print_return_value_1): Use metadata style.
2564 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2565 * f-valprint.c (info_common_command_for_block): Use metadata
2566 style.
2567 * f-typeprint.c (f_type_print_base): Use metadata style.
2568 * expprint.c (print_subexp_standard): Use metadata style.
2569 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2570 * cli/cli-style.h (class cli_style_option): Add constructor.
2571 (metadata_style): Declare.
2572 * cli/cli-style.c (metadata_style): New global.
2573 (_initialize_cli_style): Register metadata style.
2574 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2575 parameter.
2576 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2577 * c-typeprint.c (c_type_print_base_struct_union)
2578 (c_type_print_base_1): Use metadata style.
2579 * breakpoint.c (watchpoint_value_print)
2580 (print_one_breakpoint_location): Use metadata style.
2581 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2582 style.
2583 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2584 style.
2585 * ada-valprint.c (val_print_packed_array_elements, printstr)
2586 (print_field_values, ada_val_print_ref, ada_val_print): Use
2587 metadata style.
2588 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2589 style.
2590 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2591 style.
2592 * ada-lang.c (user_select_syms): Use metadata style.
2593
2594 2019-10-01 Tom Tromey <tom@tromey.com>
2595
2596 * cli/cli-cmds.c (pwd_command): Style output.
2597
2598 2019-10-01 Pedro Alves <palves@redhat.com>
2599 Tom Tromey <tom@tromey.com>
2600
2601 * symtab.c (print_symbol_info): Use %ps.
2602 (print_msymbol_info): Use %ps.
2603 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2604 * printcmd.c (print_variable_and_value): Use %ps.
2605 * macrocmd.c (show_pp_source_pos): Use %ps.
2606 * infrun.c (print_exited_reason): Use ui_out::message.
2607 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2608 (describe_other_breakpoints): Use ui_out::message and new
2609 formats.
2610 (say_where): Use new formats.
2611 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2612 and new formats.
2613
2614 2019-10-01 Pedro Alves <palves@redhat.com>
2615 Tom Tromey <tom@tromey.com>
2616
2617 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2618 (test_gdb_formats): New function.
2619 (run_tests): Call it.
2620 (test_format_specifier): Update.
2621 * utils.h (fputs_filtered): Update comment.
2622 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2623 (fputs_styled_unfiltered): Declare.
2624 * utils.c (fputs_styled_unfiltered): New function.
2625 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2626 (vfprintf_filtered): Update.
2627 (vfprintf_unfiltered, vprintf_filtered): Update.
2628 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2629 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2630 disallow_ui_out_field>: New constants.
2631 (enum class field_kind): New.
2632 (struct base_field_s, struct signed_field_s): New.
2633 (signed_field): New function.
2634 (struct string_field_s): New.
2635 (string_field): New function.
2636 (struct styled_string_s): New.
2637 (styled_string): New function.
2638 (class ui_out) <message>: Add comment.
2639 <vmessage, call_do_message>: New methods.
2640 <do_message>: Add style parameter.
2641 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2642 methods.
2643 (ui_out::message): Rewrite.
2644 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2645 parameter.
2646 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2647 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2648 gdb_extensions parameter.
2649 (class format_piece): Add parameter to constructor.
2650 (n_int_args): New field.
2651 * gdbsupport/format.c (format_pieces::format_pieces): Add
2652 gdb_extensions parameter. Handle '*'.
2653 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2654 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2655 vfprintf_styled_no_gdbfmt.
2656 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2657 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2658 unfiltered output.
2659 * ui-style.h (struct ui_file_style) <ptr>: New method.
2660
2661 2019-10-01 Tom Tromey <tom@tromey.com>
2662
2663 * unittests/format_pieces-selftests.c: Update. Add final format.
2664 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2665 empty literal pieces.
2666
2667 2019-10-01 Tom Tromey <tom@tromey.com>
2668
2669 * ui-out.h (enum class ui_out_style_kind): Remove.
2670 (class ui_out) <field_string, field_stsream, do_field_string>:
2671 Change type of "style".
2672 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2673 (ui_out::field_string): Update.
2674 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2675 of "style".
2676 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2677 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2678 * stack.c (print_frame_arg, print_frame_info, print_frame):
2679 Update.
2680 * source.c (print_source_lines_base): Update.
2681 * solib.c (info_sharedlibrary_command): Update.
2682 * skip.c (info_skip_command): Update.
2683 * record-btrace.c (btrace_call_history_src_line)
2684 (btrace_call_history): Update.
2685 * python/py-framefilter.c (py_print_frame): Update.
2686 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2687 "style".
2688 * mi/mi-out.c (mi_ui_out::do_table_header)
2689 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2690 (mi_ui_out::do_field_string): Update.
2691 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2692 Update.
2693 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2694 "style".
2695 * cli-out.c (cli_ui_out::do_table_header)
2696 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2697 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2698 (cli_ui_out::do_field_fmt): Update.
2699 * breakpoint.c (print_breakpoint_location): Update.
2700 (update_static_tracepoint): Update.
2701
2702 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2703
2704 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2705 conversion of gdb_datadir.
2706 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2707 remove not needed c_str ().
2708
2709 2019-09-30 Ali Tamur <tamur@google.com>
2710
2711 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2712 (dwarf2_string_attr): Likewise.
2713
2714 2019-09-30 Ali Tamur <tamur@google.com>
2715
2716 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2717 (process_full_type_unit): Likewise.
2718 (dump_die_shallow): Likewise.
2719 (cu_debug_loc_section): Likewise.
2720
2721 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2722
2723 * minsyms.c (compare_minimal_symbols): Rename to...
2724 (minimal_symbol_is_less_than): ...this, and adjust to STL
2725 conventions (return bool, take arguments as references)
2726 (minimal_symbol_reader::install): Call std::sort instead
2727 of qsort.
2728
2729 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2730
2731 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2732 hash and why.
2733 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2734 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2735
2736 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2739 * psympriv.h (add_psymbol_to_list): Move comment here and update
2740 it.
2741
2742 2019-09-29 Tom de Vries <tdevries@suse.de>
2743
2744 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2745 Use $tmpdir/$(basename "$output_file").dwz instead of
2746 "${output_file}.dwz".
2747
2748 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 PR gdb/25045
2751 * hppa-linux-nat.c: Include gdbarch.h.
2752
2753 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2754
2755 * blockframe.c (find_pc_partial_function): Change return type to bool.
2756 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2757 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2758 (stub_gnu_ifunc_resolve_name): Likewise.
2759 * symtab.c (compare_filenames_for_search): Likewise.
2760 (compare_glob_filenames_for_search): Likewise.
2761 (matching_obj_sections): Likewise.
2762 (symbol_matches_domain): Likewise.
2763 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2764 (find_line_pc): Change return type to bool.
2765 (find_line_pc_range): Likewise.
2766 (producer_is_realview): Likewise.
2767 * symtab.h (symbol_matches_domain): Likewise.
2768 (find_pc_partial_function): Likewise.
2769 (find_pc_line_pc_range): Likewise.
2770 (in_gnu_ifunc_stub): Likewise.
2771 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2772 (find_line_pc): Likewise.
2773 (find_line_pc_range): Likewise.
2774 (matching_obj_sections): Likewise.
2775 (find_line_symtab): Change out parameter to bool.
2776 (producer_is_realview): Change return type to bool.
2777 (compare_filenames_for_search): Likewise.
2778 (compare_glob_filenames_for_search): Likewise.
2779
2780 2019-09-26 Tom Tromey <tom@tromey.com>
2781
2782 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2783 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2784 * gdb_usleep.h: Remove.
2785 * gdb_usleep.c: Remove.
2786 * utils.c: Don't include gdb_usleep.h.
2787
2788 2019-09-26 Tom Tromey <tromey@adacore.com>
2789
2790 * python/py-type.c (type_to_type_object): Call check_typedef
2791 for stub types.
2792
2793 2019-09-26 Tom Tromey <tom@tromey.com>
2794
2795 * utils.h (initialize_utils): Don't declare.
2796 * top.c (gdb_init): Don't call initialize_utils.
2797 * utils.c (initialize_utils): Remove. Move contents...
2798 (_initialize_utils): ... here.
2799
2800 2019-09-25 Tom Tromey <tom@tromey.com>
2801
2802 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2803 * utils.h (make_hex_string): Don't declare.
2804 * utils.c (make_hex_string): Remove.
2805
2806 2019-09-24 Tom de Vries <tdevries@suse.de>
2807
2808 PR gdb/23815
2809 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2810 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2811
2812 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2813
2814 * NEWS: Mention new simulator port for PRU.
2815
2816 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2817
2818 * ada-exp.y (write_object_remaining): Update.
2819 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2820 and eliminate the static buffer.
2821 (ada_decode_symbol): Update.
2822 (ada_la_decode): Update.
2823 (ada_sniff_from_mangled_name): Update.
2824 (is_valid_name_for_wild_match): Update.
2825 (ada_lookup_name_info::matches): Update and simplify.
2826 (name_matches_regex): Update.
2827 (ada_add_global_exceptions): Update.
2828 * ada-lang.h (ada_decode): Update signature.
2829 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2830 * dwarf-index-write.c (debug_names::insert): Update.
2831
2832 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2833
2834 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2835 formatting.
2836
2837 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2840 Change "nonzero" to "true" in documentation.
2841
2842 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2843
2844 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2845 (_initialize_darwin_solib): Don't set
2846 darwin_so_ops.lookup_lib_global_symbol.
2847 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2848 set_gdbarch_iterate_over_objfiles_in_search_order.
2849 (elf_lookup_lib_symbol): Rename to...
2850 (svr4_iterate_over_objfiles_in_search_order): this, and update
2851 to iterate semantics.
2852 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2853 * solib.c (solib_global_lookup): Remove.
2854 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2855 (solib_global_lookup): Remove.
2856 * symtab.c (lookup_global_or_static_symbol): Remove call to
2857 solib_global_lookup.
2858
2859 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2860
2861 * NEWS: Move entries about default MI version now being
2862 version 3, and about the GDB/MI fix for multi-location
2863 breakpoints to the "since GDB 8.3" section.
2864
2865 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2866
2867 GDB 8.3.1 released.
2868
2869 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2870
2871 * NEWS: Mention that Cell/B.E. debugging support was removed.
2872 * MAINTAINERS: Remove spu target.
2873
2874 * config/djgpp/fnchange.lst: Remove entries for removed files.
2875
2876 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2877 spu-multiarch.o, and spu-tdep.o.
2878 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2879 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2880 spu-multiarch.c, and spu-tdep.c.
2881 * spu-linux-nat.c: Remove file.
2882 * spu-multiarch.c: Remove file.
2883 * spu-tdep.c: Remove file.
2884 * spu-tdep.h: Remove file.
2885 * solib-spu.c: Remove file.
2886 * solib-spu.h: Remove file.
2887
2888 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2889 * configure.nat (spu-linux): Remove.
2890 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2891 solib-multiarch.o from gdb_target_obs.
2892 (spu*-*-*): Remove.
2893
2894 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2895 feature flag.
2896 (ppc_linux_no_features): Update.
2897 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2898 Cell/B.E. support.
2899 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2900 (tdesc_powerpc_cell64l): Likewise.
2901 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2902 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2903 Cell/B.E. support.
2904 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2905 Do not include "features/rs6000/powerpc-cell32l.c" or
2906 "features/rs6000/powerpc-cell64l.c".
2907 (ppc_linux_spu_section): Remove.
2908 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2909 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2910 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2911 (ppc_linux_spe_context_lookup): Remove.
2912 (ppc_linux_spe_context_inferior_created): Remove.
2913 (ppc_linux_spe_context_solib_loaded): Remove.
2914 (ppc_linux_spe_context_solib_unloaded): Remove.
2915 (ppc_linux_spe_context): Remove.
2916 (struct ppu2spu_cache): Remove.
2917 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2918 (struct ppu2spu_data): Remove.
2919 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2920 ppu2spu_unwind): Remove.
2921 (ppc_linux_init_abi): Remove Cell/B.E. support.
2922 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2923
2924 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2925 (rs6000/powerpc-cell64l-expedite): Likewise
2926 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2927 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2928 rs6000/powerpc-cell64l.xml.
2929 * features/rs6000/powerpc-cell32l.xml: Remove.
2930 * features/rs6000/powerpc-cell64l.xml: Likewise.
2931 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2932 * features/rs6000/powerpc-cell64l.c: Likewise.
2933 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2934 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2935 * regformats/reg-spu.dat: Remove.
2936
2937 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2938 * corelow.c (struct spuid_list): Remove.
2939 (add_to_spuid_list): Remove.
2940 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2941 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2942 (remote_protocol_features): Remove associated entries.
2943 (_initialize_remote): No longer initialize them.
2944 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2945 * linux-nat.c (SPUFS_MAGIC): Remove.
2946 (linux_proc_xfer_spu): Remove.
2947 (spu_enumerate_spu_ids): Remove.
2948 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2949 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2950 (linux_make_corefile_notes): No longer call it.
2951
2952 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2953 (cooked_write_test): Likewise.
2954
2955 2019-09-20 Tom Tromey <tom@tromey.com>
2956
2957 * NEWS: Mention case-sensitivity of TUI commands.
2958 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2959 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2960 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2961
2962 2019-09-20 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-source.c (tui_source_window::set_contents): Use
2965 make_unique_xstrdup.
2966 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2967 make_unique_xstrdup.
2968
2969 2019-09-20 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-data.c: Remove separator comments.
2972 * tui/tui-layout.c: Remove separator comments.
2973 * tui/tui-win.c: Remove separator comments.
2974 * tui/tui-wingeneral.c: Remove separator comments.
2975
2976 2019-09-20 Tom Tromey <tom@tromey.com>
2977
2978 * tui/tui.h (strcat_to_buf): Don't declare.
2979 * tui/tui.c (strcat_to_buf): Remove.
2980
2981 2019-09-20 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2984 from "fullname".
2985 * tui/tui-source.c (tui_source_window::set_contents)
2986 (tui_source_window::location_matches_p)
2987 (tui_source_window::maybe_update): Update.
2988
2989 2019-09-20 Tom Tromey <tom@tromey.com>
2990
2991 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2992 Update.
2993 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2994 prefix.
2995 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2996 (tui_data_window::line_from_reg_element_no)
2997 (tui_data_window::first_reg_element_no_inline)
2998 (tui_data_window::show_registers)
2999 (tui_data_window::show_register_group)
3000 (tui_data_window::display_registers_from)
3001 (tui_data_window::display_registers_from_line)
3002 (tui_data_window::first_data_item_displayed)
3003 (tui_data_window::delete_data_content_windows)
3004 (tui_data_window::erase_data_content)
3005 (tui_data_window::do_scroll_vertical)
3006 (tui_data_window::refresh_window)
3007 (tui_data_window::check_register_values): Update.
3008
3009 2019-09-20 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3012 (struct tui_locator_window) <full_name, proc_name>: Now
3013 std::string.
3014 * tui/tui-stack.c (tui_locator_window::make_status_line)
3015 (tui_locator_window::set_locator_fullname)
3016 (tui_locator_window::set_locator_info): Update.
3017 * tui/tui-source.c (tui_source_window::set_contents)
3018 (tui_source_window::showing_source_p): Update.
3019
3020 2019-09-20 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3023 Don't call tui_locator_win_info_ptr.
3024
3025 2019-09-20 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3028
3029 2019-09-20 Tom Tromey <tom@tromey.com>
3030
3031 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3032 height for locator.
3033 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3034 * tui/tui-layout.c (show_source_disasm_command, show_data)
3035 (show_source_or_disasm_and_command): Use 1 as height for locator.
3036
3037 2019-09-20 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui.c (tui_enable): Update.
3040 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3041 Update.
3042 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3043 Update.
3044 * tui/tui-data.c (win_resized): Now bool.
3045 (tui_win_resized): Return bool.
3046 (tui_set_win_resized_to): Accept a bool.
3047
3048 2019-09-20 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3051 Change type of "refresh_values_only".
3052 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3053 type of "refresh_values_only".
3054
3055 2019-09-20 Tom Tromey <tom@tromey.com>
3056
3057 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3058 std::string.
3059 (tui_disassemble): Add "pos" parameter.
3060 (tui_disasm_window::set_contents): Simplify.
3061
3062 2019-09-20 Tom Tromey <tom@tromey.com>
3063
3064 * tui/tui-winsource.h (struct tui_source_window_base)
3065 <show_source_content>: Now private.
3066 * tui/tui-winsource.c
3067 (tui_source_window_base::show_source_content): Don't handle empty
3068 content case.
3069
3070 2019-09-20 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-layout.c (show_source_disasm_command)
3073 (show_source_or_disasm_and_command): Don't call
3074 show_source_content.
3075
3076 2019-09-20 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3079 Declare.
3080 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3081 from tui_make_status_line.
3082 (tui_locator_window::rerender): Update.
3083
3084 2019-09-20 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3087 (tui_locator_window::rerender): Update.
3088
3089 2019-09-20 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-winsource.h (struct tui_source_window_base)
3092 <~tui_source_window_base>: Don't declare.
3093 <fullname>: Remove.
3094 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3095 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3096 member.
3097 * tui/tui-source.c (tui_source_window::set_contents): Update.
3098 (tui_source_window::location_matches_p)
3099 (tui_source_window::maybe_update): Update.
3100
3101 2019-09-20 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-winsource.h (~tui_source_element): Remove.
3104 (tui_source_element): Update.
3105 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3106 * tui/tui-winsource.c (tui_show_source_line): Update.
3107 * tui/tui-source.c (tui_source_window::set_contents): Update.
3108 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3109
3110 2019-09-20 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3113 declare.
3114 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3115 tui_clear_source_windows_detail.
3116 * tui/tui-winsource.h (struct tui_source_window_base)
3117 <clear_detail>: Don't declare.
3118 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3119 Remove.
3120 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3121
3122 2019-09-20 Tom Tromey <tromey@adacore.com>
3123
3124 PR ada/24919:
3125 * block.c (contained_in): Fix final return value.
3126
3127 2019-09-20 Alan Modra <amodra@gmail.com>
3128
3129 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3130 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3131 (read_indirect_string_from_dwz): Use bfd accessor.
3132 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3133 * machoread.c (macho_symfile_read_all_oso): Likewise.
3134 * solib.c (solib_bfd_open): Likewise.
3135
3136 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3137
3138 * eval.c: Move declaration of overload_resolution to...
3139 * value.h: ...here.
3140
3141 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3142
3143 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3144 * arm-linux-tdep.c: Likewise.
3145 * arm-nbsd-nat.c: Likewise.
3146 * arm-tdep.h: Declare arm_apcs_32.
3147 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3148
3149 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3150
3151 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3152 * dwarf2read.h: Declare dwarf_always_disassemble.
3153
3154 2019-09-19 Tom de Vries <tdevries@suse.de>
3155
3156 PR gdb/25009
3157 * source-cache.c (source_cache::ensure): Catch exception thrown during
3158 construction of the highlighter.
3159
3160 2019-09-18 Alan Modra <amodra@gmail.com>
3161
3162 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3163 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3164 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3165 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3166 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3167 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3168 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3169 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3170 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3171 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3172 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3173 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3174 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3175 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3176 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3177 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3178 * mi/mi-interp.c: Update throughout for bfd section macro and
3179 function changes.
3180 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3181 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3182
3183 2019-09-18 Tom Tromey <tom@tromey.com>
3184
3185 * NEWS: Add entry.
3186 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3187 call rl_initialize.
3188 (tui_enable): Do not call rl_initialize.
3189
3190 2019-09-18 Christian Groessler <chris@groessler.org>
3191
3192 * alpha-linux-nat.c: Include gdbarch.h.
3193
3194 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * ui-file.c: Include cli/cli-style.h.
3197 (term_cli_styling): Remove cli_styling declaration.
3198
3199 2019-09-18 Alan Modra <amodra@gmail.com>
3200
3201 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3202 to bfd_asymbol_section.
3203
3204 2019-09-18 Alan Modra <amodra@gmail.com>
3205
3206 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3207 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3208 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3209
3210 2019-09-18 Alan Modra <amodra@gmail.com>
3211
3212 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3213 * spu-linux-nat.c (spu_bfd_open): Likewise.
3214
3215 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3216
3217 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3218 to bool to match definition in dwarf2read.c.
3219
3220 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3221
3222 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3223 (print_signatures): Likewise.
3224 (trust_pad_over_xvs): Likewise.
3225 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3226 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3227 * arm-linux-nat.c (arm_apcs_32): Likewise.
3228 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3229 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3230 * arm-tdep.c (arm_debug): Likewise.
3231 (arm_apcs_32): Likewise.
3232 * auto-load.c (debug_auto_load): Likewise.
3233 (auto_load_gdb_scripts): Likewise.
3234 (global_auto_load): Likewise.
3235 (auto_load_local_gdbinit): Likewise.
3236 (auto_load_local_gdbinit_loaded): Likewise.
3237 * auto-load.h (global_auto_load): Likewise.
3238 (auto_load_local_gdbinit): Likewise.
3239 (auto_load_local_gdbinit_loaded): Likewise.
3240 * breakpoint.c (disconnected_dprintf): Likewise.
3241 (breakpoint_proceeded): Likewise.
3242 (automatic_hardware_breakpoints): Likewise.
3243 (always_inserted_mode): Likewise.
3244 (target_exact_watchpoints): Likewise.
3245 (_initialize_breakpoint): Update.
3246 * breakpoint.h (target_exact_watchpoints): Change to bool.
3247 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3248 * cli/cli-cmds.c (trace_commands): Likewise.
3249 * cli/cli-cmds.h (trace_commands): Likewise.
3250 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3251 to bool*.
3252 * cli/cli-logging.c (logging_overwrite): Change to bool.
3253 (logging_redirect): Likewise.
3254 (debug_redirect): Likewise.
3255 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3256 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3257 to bool.
3258 <boolean_option_def>: Update.
3259 (struct flag_option_def): Change default type of Context to bool
3260 from int.
3261 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3262 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3263 (get_setshow_command_value_string): Likewise.
3264 * cli/cli-style.c (cli_styling): Change to bool.
3265 (source_styling): Likewise.
3266 * cli/cli-style.h (source_styling): Likewise.
3267 (cli_styling): Likewise.
3268 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3269 to bool.
3270 * command.h (var_types): Update comment.
3271 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3272 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3273 bool.
3274 (debug_compile_cplus_scopes): Likewise.
3275 * compile/compile-internal.h (compile_debug): Likewise.
3276 * compile/compile.c (compile_debug): Likewise.
3277 (struct compile_options) <raw>: Likewise.
3278 * cp-support.c (catch_demangler_crashes): Likewise.
3279 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3280 (usr_cmd_cris_dwarf2_cfi): Likewise.
3281 * csky-tdep.c (csky_debug): Likewise.
3282 * darwin-nat.c (enable_mach_exceptions): Likewise.
3283 * dcache.c (dcache_enabled_p): Likewise.
3284 * defs.h (info_verbose): Likewise.
3285 * demangle.c (demangle): Likewise.
3286 (asm_demangle): Likewise.
3287 * dwarf-index-cache.c (debug_index_cache): Likewise.
3288 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3289 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3290 * dwarf2read.c (check_physname): Likewise.
3291 (use_deprecated_index_sections): Likewise.
3292 (dwarf_always_disassemble): Likewise.
3293 * eval.c (overload_resolution): Likewise.
3294 * event-top.c (set_editing_cmd_var): Likewise.
3295 (exec_done_display_p): Likewise.
3296 * event-top.h (set_editing_cmd_var): Likewise.
3297 (exec_done_display_p): Likewise.
3298 * exec.c (write_files): Likewise.
3299 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3300 (debug_fbsd_nat): Likewise.
3301 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3302 Likewise.
3303 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3304 <backtrace_past_entry> Likewise.
3305 * gdb-demangle.h (demangle): Likewise.
3306 (asm_demangle): Likewise.
3307 * gdb_bfd.c (bfd_sharing): Likewise.
3308 * gdbcore.h (write_files): Likewise.
3309 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3310 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3311 * gdbthread.h (print_thread_events): Likewise.
3312 * gdbtypes.c (opaque_type_resolution): Likewise.
3313 (strict_type_checking): Likewise.
3314 * gnu-nat.c (gnu_debug_flag): Likewise.
3315 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3316 * guile/scm-param.c (pascm_variable): Add boolval.
3317 (add_setshow_generic): Update.
3318 (pascm_param_value): Update.
3319 (pascm_set_param_value_x): Update.
3320 * hppa-tdep.c (hppa_debug): Change to bool..
3321 * infcall.c (may_call_functions_p): Likewise.
3322 (coerce_float_to_double_p): Likewise.
3323 (unwind_on_signal_p): Likewise.
3324 (unwind_on_terminating_exception_p): Likewise.
3325 * infcmd.c (startup_with_shell): Likewise.
3326 * inferior.c (print_inferior_events): Likewise.
3327 * inferior.h (startup_with_shell): Likewise.
3328 (print_inferior_events): Likewise.
3329 * infrun.c (step_stop_if_no_debug): Likewise.
3330 (detach_fork): Likewise.
3331 (debug_displaced): Likewise.
3332 (disable_randomization): Likewise.
3333 (non_stop): Likewise.
3334 (non_stop_1): Likewise.
3335 (observer_mode): Likewise.
3336 (observer_mode_1): Likewise.
3337 (set_observer_mode): Update.
3338 (sched_multi): Change to bool.
3339 * infrun.h (debug_displaced): Likewise.
3340 (sched_multi): Likewise.
3341 (step_stop_if_no_debug): Likewise.
3342 (non_stop): Likewise.
3343 (disable_randomization): Likewise.
3344 * linux-tdep.c (use_coredump_filter): Likewise.
3345 (dump_excluded_mappings): Likewise.
3346 * linux-thread-db.c (auto_load_thread_db): Likewise.
3347 (check_thread_db_on_load): Likewise.
3348 * main.c (captured_main_1): Update.
3349 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3350 xx2_opt, boolean_opt>: Change to bool.
3351 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3352 * maint.c (maintenance_profile_p): Likewise.
3353 (per_command_time): Likewise.
3354 (per_command_space): Likewise.
3355 (per_command_symtab): Likewise.
3356 * memattr.c (inaccessible_by_default): Likewise.
3357 * mi/mi-main.c (mi_async): Likewise.
3358 (mi_async_1): Likewise.
3359 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3360 * nat/fork-inferior.h (startup_with_shell): Likewise.
3361 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3362 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3363 * nios2-tdep.c (nios2_debug): Likewise.
3364 * or1k-tdep.c (or1k_debug): Likewise.
3365 * parse.c (parser_debug): Likewise.
3366 * parser-defs.h (parser_debug): Likewise.
3367 * printcmd.c (print_symbol_filename): Likewise.
3368 * proc-api.c (procfs_trace): Likewise.
3369 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3370 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3371 (set_parameter_value): Update.
3372 (add_setshow_generic): Update.
3373 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3374 to bool*.
3375 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3376 int*.
3377 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3378 * record-btrace.c (record_btrace_target::store_registers): Update.
3379 * record-full.c (record_full_memory_query): Change to bool.
3380 (record_full_stop_at_limit): Likewise.
3381 * record-full.h (record_full_memory_query): Likewise.
3382 * remote-notif.c (notif_debug): Likewise.
3383 * remote-notif.h (notif_debug): Likewise.
3384 * remote.c (use_range_stepping): Likewise.
3385 (interrupt_on_connect): Likewise.
3386 (remote_break): Likewise.
3387 * ser-tcp.c (tcp_auto_retry): Likewise.
3388 * ser-unix.c (serial_hwflow): Likewise.
3389 * skip.c (debug_skip): Likewise.
3390 * solib-aix.c (solib_aix_debug): Likewise.
3391 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3392 (spu_auto_flush_cache_p): Likewise.
3393 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3394 Likewise.
3395 (struct info_print_options) <quiet>: Likewise.
3396 * symfile-debug.c (debug_symfile): Likewise.
3397 * symfile.c (auto_solib_add): Likewise.
3398 (separate_debug_file_debug): Likewise.
3399 * symfile.h (auto_solib_add): Likewise.
3400 (separate_debug_file_debug): Likewise.
3401 * symtab.c (basenames_may_differ): Likewise.
3402 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3403 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3404 (struct info_types_options) <quiet>: Likewise.
3405 * symtab.h (demangle): Likewise.
3406 (basenames_may_differ): Likewise.
3407 * target-dcache.c (stack_cache_enabled_1): Likewise.
3408 (code_cache_enabled_1): Likewise.
3409 * target.c (trust_readonly): Likewise.
3410 (may_write_registers): Likewise.
3411 (may_write_memory): Likewise.
3412 (may_insert_breakpoints): Likewise.
3413 (may_insert_tracepoints): Likewise.
3414 (may_insert_fast_tracepoints): Likewise.
3415 (may_stop): Likewise.
3416 (auto_connect_native_target): Likewise.
3417 (target_stop_and_wait): Update.
3418 (target_async_permitted): Change to bool.
3419 (target_async_permitted_1): Likewise.
3420 (may_write_registers_1): Likewise.
3421 (may_write_memory_1): Likewise.
3422 (may_insert_breakpoints_1): Likewise.
3423 (may_insert_tracepoints_1): Likewise.
3424 (may_insert_fast_tracepoints_1): Likewise.
3425 (may_stop_1): Likewise.
3426 * target.h (target_async_permitted): Likewise.
3427 (may_write_registers): Likewise.
3428 (may_write_memory): Likewise.
3429 (may_insert_breakpoints): Likewise.
3430 (may_insert_tracepoints): Likewise.
3431 (may_insert_fast_tracepoints): Likewise.
3432 (may_stop): Likewise.
3433 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3434 (make_thread_apply_all_options_def_group): Change argument from int*
3435 to bool*.
3436 (thread_apply_all_command): Update.
3437 (print_thread_events): Change to bool.
3438 * top.c (confirm): Likewise.
3439 (command_editing_p): Likewise.
3440 (history_expansion_p): Likewise.
3441 (write_history_p): Likewise.
3442 (info_verbose): Likewise.
3443 * top.h (confirm): Likewise.
3444 (history_expansion_p): Likewise.
3445 * tracepoint.c (disconnected_tracing): Likewise.
3446 (circular_trace_buffer): Likewise.
3447 * typeprint.c (print_methods): Likewise.
3448 (print_typedefs): Likewise.
3449 * utils.c (debug_timestamp): Likewise.
3450 (sevenbit_strings): Likewise.
3451 (pagination_enabled): Likewise.
3452 * utils.h (sevenbit_strings): Likewise.
3453 (pagination_enabled): Likewise.
3454 * valops.c (overload_resolution): Likewise.
3455 * valprint.h (struct value_print_options) <prettyformat_arrays,
3456 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3457 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3458 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3459 Likewise.
3460 * windows-nat.c (new_console): Likewise.
3461 (cygwin_exceptions): Likewise.
3462 (new_group): Likewise.
3463 (debug_exec): Likewise.
3464 (debug_events): Likewise.
3465 (debug_memory): Likewise.
3466 (debug_exceptions): Likewise.
3467 (useshell): Likewise.
3468 * windows-tdep.c (maint_display_all_tib): Likewise.
3469 * xml-support.c (debug_xml): Likewise.
3470
3471 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3472
3473 * source.c (prepare_path_for_appending): New function.
3474 (openp): Make use of new function.
3475 (find_and_open_source): Search for the compilation directory and
3476 source file as a relative path beneath the directory search path.
3477
3478 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3479
3480 * source-cache.c (source_cache::get_line_charpos): Catch
3481 exceptions and return false, this matches the behaviour documented
3482 in the header file.
3483
3484 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3485
3486 * ada-tasks.c (info_task): Remove quoting of the task's name.
3487
3488 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3489
3490 * symfile.c (auto_solib_add): Replace comment with a reference
3491 to the header file.
3492
3493 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3494
3495 * NEWS: Mention that gdb can now be compiled with Python 3
3496 on Windows.
3497
3498 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * maint.c (maint_print_section_data::maint_print_section_data):
3501 Force use of 'float log10 (float)' by casting the argument to
3502 float.
3503
3504 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * maint.c: Add 'cmath' include.
3507 (struct maint_print_section_data): New structure.
3508 (print_section_index): New function.
3509 (print_bfd_section_info): Add header comment, small whitespace
3510 cleanup, and update to call new print_section_index function.
3511 (print_objfile_section_info): Likewise.
3512 (maint_obj_section_from_bfd_section): New function.
3513 (print_bfd_section_info_maybe_relocated): New function.
3514 (maintenance_info_sections): Add header comment, always use
3515 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3516
3517 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3520 inner scope, add check that the objfile has psymtabs before
3521 checking psymtabs_addrmap.
3522 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3523
3524 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3525
3526 * NEWS: Announce that Ada task names are now shown at more places,
3527 and between quotes (except in info task output).
3528 * gdb/ada-tasks.c (task_to_str): New function.
3529 (display_current_task_id): Call task_to_str.
3530 (task_command_1): Likewise.
3531 (print_ada_task_info): In non-mi mode, Properly align headers and data
3532 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3533
3534 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3535
3536 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3537 prstatus.pr_lwp.pr_info instead of making it up.
3538
3539 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3540
3541 * auto-load.c (auto_load_expand_dir_vars): Update.
3542 * defs.h (gdb_datadir): Change to std::string.
3543 (python_libdir): Likewise.
3544 (relocate_gdb_directory): Change return type to std::string.
3545 * guile/guile.c (gdbscm_data_directory): Update.
3546 (initialize_scheme_side): Update.
3547 * jit.c (jit_reader_dir): Change to std::string.
3548 (jit_reader_load_command): Update.
3549 * main.c (gdb_datadir): Change to std::string.
3550 (python_libdir): Likewise.
3551 (set_gdb_data_directory): Update.
3552 (relocate_path): Change to return std::string.
3553 (relocate_gdb_directory): Change to return std::string.
3554 (relocate_gdbinit_path_maybe_in_datadir): Update.
3555 (captured_main_1): Update.
3556 * python/python.c (do_start_initialization): Update.
3557 * top.c (show_gdb_datadir): Update.
3558 * xml-syscall.c (xml_init_syscalls_info): Update.
3559 (init_syscalls_info): Update.
3560
3561 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3562
3563 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3564 out of get_init_files.
3565 (get_init_files): Update.
3566
3567 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3568
3569 * main.c (get_init_files): Change to use std::string.
3570 (captured_main_1): Update.
3571 (print_gdb_help): Update.
3572
3573 2019-09-11 Ali Tamur <tamur@google.com>
3574
3575 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3576 implementation.
3577
3578 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3579
3580 * dbxread.c (read_dbx_symtab): Update.
3581 * dwarf2read.c (load_partial_dies): Update.
3582 * mdebugread.c (parse_partial_symbols): Update.
3583 (handle_psymbol_enumerators): Update.
3584 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3585 * psymtab.c (add_psymbol_to_bcache): Likewise.
3586 (add_psymbol_to_list): Likewise.
3587 * symtab.c (symbol_set_names): Likewise.
3588 * symtab.h (symbol_set_names): Likewise.
3589 * xcoffread.c (scan_xcoff_symtab): Update.
3590
3591 2019-09-11 Tom Tromey <tom@tromey.com>
3592
3593 * symfile-mem.c (symbol_file_add_from_memory): Use
3594 bfd_set_filename.
3595 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3596 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3597
3598 2019-09-10 Tom Tromey <tromey@adacore.com>
3599
3600 * dwarf-index-write.c (write_psymbols): Extend error message.
3601 (debug_names::insert): Add Ada code.
3602 (debug_names::write_psymbols): Remove Ada check.
3603 (debug_names) <m_string_obstack>: New member.
3604 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3605 (gdb_index_symbol_name_matcher::matches): Remove.
3606 (mapped_index_base::find_name_components_bounds): Add "lang"
3607 parameter.
3608 (mapped_index_base::build_name_components): Also split names
3609 according to Ada syntax.
3610 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3611 type of "match_callback".
3612 (check_match, check_find_bounds_finds)
3613 (dw2_expand_symtabs_matching): Update.
3614 (dw2_debug_names_iterator): Add new constructor.
3615 (dw2_debug_names_map_matching_symbols): New function.
3616 (dw2_debug_names_expand_symtabs_matching): Update.
3617 (dwarf2_debug_names_functions): Use
3618 dw2_debug_names_map_matching_symbols.
3619
3620 2019-09-10 Tom Tromey <tromey@adacore.com>
3621
3622 * dwarf2read.c (dw2_get_file_names_reader): Add the
3623 CU's file name to the results.
3624
3625 2019-09-10 Tom Tromey <tromey@adacore.com>
3626
3627 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3628 map_matching_symbols. Update.
3629 * dwarf2read.c (dw2_map_matching_symbols): Update.
3630 * psymtab.c (match_partial_symbol): Change type; update.
3631 (psym_map_matching_symbols): Likewise.
3632 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3633 type; update.
3634 * symfile.h (struct quick_symbol_functions)
3635 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3636 Remove "match".
3637
3638 2019-09-10 Tom Tromey <tromey@adacore.com>
3639
3640 * psymtab.c (map_block): Remove.
3641 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3642 * symtab.c (iterate_over_symbols_terminated): New function.
3643 * symtab.c (iterate_over_symbols_terminated): Declare.
3644
3645 2019-09-10 Tom Tromey <tromey@adacore.com>
3646
3647 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3648 * language.h (struct language_defn) <la_iterate_over_symbols>:
3649 Return bool.
3650 * symtab.c (iterate_over_symbols): Return bool.
3651 * symtab.h (iterate_over_symbols): Return bool.
3652
3653 2019-09-10 Tom Tromey <tromey@adacore.com>
3654
3655 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3656 (add_nonlocal_symbols): Update.
3657 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3658 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3659 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3660 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3661 Change type of "callback". Remove "data".
3662
3663
3664 2019-09-09 Ali Tamur <tamur@google.com>
3665
3666 * dwarf2read.c (comp_unit_head): Update comment.
3667 (dwarf2_dwo_name): New function declaration.
3668 (dwarf_unit_type_name): New function declaration.
3669 (read_comp_unit_head): Add support for new compilation units,
3670 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3671 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3672 (currently named as "signature") in their header. Also clarify error
3673 messages.
3674 (lookup_dwo_id): New function. Returns the dwo id of the given
3675 compile unit.
3676 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3677 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3678 functions.
3679 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3680 (dwarf2_dwo_name): Get the dwo name if present.
3681 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3682 purposes.
3683
3684 2019-09-09 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3687
3688 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3689
3690 * python/python.c (do_start_initialization): Make progname_copy static,
3691 to avoid a leak report.
3692
3693 2019-09-08 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3696
3697 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3700 Change type to gdb::optional<block_enum>.
3701 (dw2_symtab_iter_init): Change block_index parameter type
3702 to gdb::optional<block_enum>.
3703 (dw2_lookup_symbol): Change block_index parameter
3704 type to block_enum.c
3705 (dw2_debug_names_lookup_symbol): Likewise.
3706 * psymtab.c (psym_lookup_symbol): Likewise.
3707 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3708 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3709 Likewise.
3710
3711 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3712
3713 * defs.h (relocate_gdb_directory): Change int to bool in
3714 signature and rename flag to relocatable.
3715 * main.c (relocate_path): Likewise.
3716 (relocate_gdb_directory): Likewise.
3717
3718 2019-09-06 Alan Modra <amodra@gmail.com>
3719
3720 * coffread.c (coff_symfile_read): Constify filename variable.
3721 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3722 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3723 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3724 * solib.c (reload_shared_libraries_1): Likewise.
3725 * symfile.c (reread_symbols): Likewise.
3726 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3727 * solib-darwin.c (darwin_bfd_open): Likewise.
3728 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3729
3730 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3733 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3734
3735 2019-09-03 Tom Tromey <tromey@adacore.com>
3736
3737 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3738 types.
3739 (has_negatives): Unbias a range type bound.
3740 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3741 * gdbtypes.c (operator==): Handle new field.
3742 (create_range_type): Add "bias" parameter.
3743 (create_static_range_type, resolve_dynamic_range): Update.
3744 * gdbtypes.h (struct range_bounds) <bias>: New member.
3745 (create_range_type): Add bias parameter.
3746 * printcmd.c (print_scalar_formatted): Unbias range types.
3747 * value.c (unpack_long): Unbias range types.
3748 (pack_long): Bias range types.
3749
3750 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3751
3752 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3753 probe arguments.
3754
3755 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3756
3757 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3758 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3759 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3760 (compile_probe_arg): Likewise.
3761 * probe.h (get_argument_count): Likewise.
3762 * solib-svr4.c (solib_event_probe_action): Likewise.
3763 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3764
3765 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3766
3767 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3768 code to here...
3769 (svr4_create_solib_event_breakpoints): ...from here.
3770
3771 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3772
3773 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3774 suffix from warning message.
3775
3776 2019-08-30 Tom Tromey <tom@tromey.com>
3777
3778 * tui/tui-winsource.h (struct tui_source_window_base)
3779 <refresh_all>: Don't declare.
3780 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3781 Remove.
3782 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3783 tui_show_locator_content.
3784 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3785 declare.
3786 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3787 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3788 declare.
3789
3790 2019-08-30 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3793
3794 2019-08-30 Tom Tromey <tom@tromey.com>
3795
3796 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3797 Remove unnecessary forward declarations.
3798
3799 2019-08-30 Tom Tromey <tom@tromey.com>
3800
3801 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3802 rerender.
3803 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3804 tui_show_locator_content.
3805
3806 2019-08-30 Tom Tromey <tom@tromey.com>
3807
3808 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3809 (tui_locator_window::rerender): Rewrite using body of previous
3810 tui_show_locator_content.
3811
3812 2019-08-30 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3815 set_locator_fullname>: New methods.
3816 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3817 Rename from tui_set_locator_fullname.
3818 (tui_locator_window::set_locator_info): Rename from
3819 tui_set_locator_info. Return bool.
3820 (tui_update_locator_fullname, tui_show_frame_info): Update.
3821
3822 2019-08-30 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3825
3826 2019-08-30 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3829 call touchwin.
3830
3831 2019-08-30 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-wingeneral.c (box_win): Assume win_info and
3834 win_info->handle cannot be NULL.
3835
3836 2019-08-30 Tom Tromey <tom@tromey.com>
3837
3838 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3839 refresh_window>: Declare.
3840 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3841 resize.
3842 (tui_data_item_window::rerender): Rename from
3843 tui_display_register.
3844 (tui_data_item_window::refresh_window): New method.
3845 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3846 no-op.
3847
3848 2019-08-30 Tom Tromey <tom@tromey.com>
3849
3850 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3851 regs_column_count, current_group>: Move later. Now private.
3852 <get_current_group>: New method.
3853 * tui/tui-regs.c (tui_reg_command): Update.
3854 * tui/tui-layout.c (tui_set_layout): Update.
3855
3856 2019-08-30 Tom Tromey <tom@tromey.com>
3857
3858 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3859 (tui_data_window::rerender): Don't call
3860 check_and_display_highlight_if_needed.
3861 (tui_data_window::refresh_all): Remove call to
3862 erase_data_content.
3863
3864 2019-08-30 Tom Tromey <tom@tromey.com>
3865
3866 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3867 (tui_data_window::display_registers_from)
3868 (tui_data_window::display_reg_element_at_line)
3869 (tui_data_window::display_registers_from_line): Remove checks of
3870 "empty".
3871
3872 2019-08-30 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3875 Don't declare.
3876 * tui/tui-regs.c (tui_data_window::show_registers): Call
3877 rerender.
3878 (tui_data_window::rerender): Rename from display_all_data.
3879 (tui_data_window::rerender): Remove old implementation.
3880
3881 2019-08-30 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3884 text.
3885 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3886
3887 2019-08-29 Bernhard Wodok <barto@gmx.net>
3888 Sergio Durigan Junior <sergiodj@redhat.com>
3889
3890 PR win32/24284
3891 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3892
3893 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3896 when searching for types.
3897
3898 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * f-lang.c (f_language_defn): Use f_print_typedef.
3901 * f-lang.h (f_print_typedef): Declare.
3902 * f-typeprint.c (f_print_typedef): Define.
3903
3904 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3905
3906 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3907
3908 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * cli/cli-utils.c (info_print_options_defs): Delete.
3911 (make_info_print_options_def_group): Delete.
3912 (extract_info_print_options): Delete.
3913 (info_print_command_completer): Delete.
3914 (info_print_args_help): Add extra parameter, and optionally
3915 include text about -n flag.
3916 * cli/cli-utils.h (struct info_print_options): Delete.
3917 (extract_info_print_options): Delete declaration.
3918 (info_print_command_completer): Delete declaration.
3919 (info_print_args_help): Add extra parameter, extend header
3920 comment.
3921 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3922 search_symbols.
3923 * stack.c (struct info_print_options): New type.
3924 (info_print_options_defs): New file scoped variable.
3925 (make_info_print_options_def_group): New static function.
3926 (info_print_command_completer): New static function.
3927 (info_locals_command): Update to use new local functions.
3928 (info_args_command): Likewise.
3929 (_initialize_stack): Add extra parameter to calls to
3930 info_print_args_help.
3931 * symtab.c (search_symbols): Add extra parameter, use this to
3932 possibly excluse non-debug symbols.
3933 (symtab_symbol_info): Add extra parameter, which is passed on to
3934 search_symbols.
3935 (struct info_print_options): New type.
3936 (info_print_options_defs): New file scoped variable.
3937 (make_info_print_options_def_group): New static function.
3938 (info_print_command_completer): New static function.
3939 (info_variables_command): Update to use local functions, and pass
3940 extra parameter through to symtab_symbol_info.
3941 (info_functions_command): Likewise.
3942 (info_types_command): Pass additional argument through to
3943 symtab_symbol_info.
3944 (rbreak_command): Pass extra argument to search_symbols.
3945 (_initialize_symtab): Add extra arguments for calls to
3946 info_print_args_help, and update help text for 'info variables',
3947 'whereis', and 'info functions' commands.
3948 * symtab.h (search_symbols): Add extra argument to declaration.
3949 * NEWS: Mention new flags.
3950
3951 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3952
3953 * symtab.c (lookup_static_symbol): Call the new function (and move
3954 it down to be next to lookup_global_symbol).
3955 (struct global_sym_lookup_data): Add block_enum member and rename to...
3956 (struct global_or_static_sym_lookup_data): ...this.
3957 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3958 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3959 (lookup_symbol_global_or_static_iterator_cb): ...this.
3960 (lookup_global_or_static_symbol): New function.
3961 (lookup_global_symbol): Call new function.
3962
3963 2019-08-26 Tom de Vries <tdevries@suse.de>
3964
3965 PR c++/24852
3966 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3967 when pc_probe.prob == NULL.
3968
3969 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3972 variable symbol_linkage to symbol_linkage_.
3973
3974 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3977 represent whether the symbol is static, dynamic, or we don't
3978 know.
3979
3980 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3981
3982 * gdb/rx-tdep.c (rx_register_names): New.
3983 (rx_register_name): Delete.
3984 (rx_psw_type): Delete.
3985 (rx_fpsw_type): Delete.
3986 (rx_register_type): Delete.
3987 (rx_gdbarch_init): Convert target-descriptions.
3988 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3989 * gdb/features/Makefile: Add rx.xml.
3990 * gdb/features/rx.xml: New.
3991 * gdb/features/rx.c: Generated.
3992 * gdb/NEWS: Mention target description support.
3993
3994 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3995
3996 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3997 *slot_ptr.
3998
3999 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4000
4001 * configure.ac: Don't check for 'dlfcn.h' (moved to
4002 gdbsupport/common.m4).
4003 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4004 'gdbsupport/'.
4005 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4006 * compile/compile-c-support.c: Include
4007 'gdbsupport/gdb-dlfcn.h'.
4008 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4009 * gdb-dlfcn.c: Move to...
4010 * gdbsupport/gdb-dlfcn.c: ... here.
4011 * gdb-dlfcn.h: Move to...
4012 * gdbsupport/gdb-dlfcn.h: ... here.
4013
4014 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4015
4016 * nios2-tdep.c (struct reg_value): Improve comments. Make
4017 the offset field signed.
4018
4019 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4020
4021 * python/lib/gdb/__init__.py (_execute_file): New function.
4022 * python/python.c (python_run_simple_file): Call gdb._execute_file
4023 on Windows.
4024
4025 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4028 all uses as this was never set to anything but a zero value.
4029
4030 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4031
4032 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4033
4034 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4035
4036 * tui/tui-data.h (tui_gen_win_info): Add an =default
4037 move constructor, required by some GCC versions.
4038
4039 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4040
4041 * go32-nat.c (go32_sysinfo): Add hygon_p.
4042
4043 2019-08-20 Tom Tromey <tom@tromey.com>
4044
4045 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4046 line_from_reg_element_no, first_reg_element_no_inline,
4047 display_all_data, delete_data_content_windows,
4048 erase_data_content>: Now private.
4049
4050 2019-08-20 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4053 (tui_unhighlight_win, tui_highlight_win)
4054 (tui_win_info::make_window): Update.
4055 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4056
4057 2019-08-20 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4060 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4061 (MAX_PID_WIDTH): Move to tui-stack.c.
4062 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4063 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4064 (MAX_PID_WIDTH): Move from tui-data.h.
4065
4066 2019-08-20 Tom Tromey <tom@tromey.com>
4067
4068 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4069 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4070 (box_win): Update.
4071 (tui_gen_win_info::make_window): Rename from tui_make_window.
4072 (tui_win_info::make_window): New method.
4073 (tui_gen_win_info::make_visible): Update.
4074 * tui/tui-source.c (tui_source_window::set_contents): Update.
4075 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4076 (tui_data_window::display_registers_from): Update.
4077 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4078 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4079 Declare.
4080 <can_box>: Remove.
4081 <title>: Remove.
4082 (struct tui_win_info) <make_window>: Declare.
4083 <can_box>: Now virtual.
4084 <title>: New member.
4085 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4086 * tui/tui-command.c (tui_cmd_window::resize): Update.
4087
4088 2019-08-20 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4091 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4092 (tui_data_window::check_register_values): Update.
4093
4094 2019-08-20 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-regs.h (struct tui_data_window): Use
4097 DISABLE_COPY_AND_ASSIGN.
4098 <regs_content>: Change type, removing unique_ptr.
4099 <tui_data_window>: Add move constructor.
4100 * tui/tui-regs.c (tui_data_window::show_registers)
4101 (tui_data_window::show_register_group)
4102 (tui_data_window::display_registers_from)
4103 (tui_data_window::display_registers_from)
4104 (tui_data_window::first_data_item_displayed)
4105 (tui_data_window::delete_data_content_windows)
4106 (tui_data_window::rerender, tui_data_window::refresh_window)
4107 (tui_data_window::check_register_values): Update.
4108
4109 2019-08-20 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4112 show_register_group>: Declare.
4113 (tui_show_register_group): Don't declare.
4114 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4115 tui_show_registers.
4116 (tui_data_window::show_register_group): Rename from
4117 tui_show_register_group.
4118 (tui_data_window::check_register_values, tui_reg_command):
4119 Update.
4120 * tui/tui-layout.c (tui_set_layout): Update.
4121
4122 2019-08-20 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4125 Declare.
4126 (tui_check_register_values): Don't declare.
4127 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4128 from tui_check_register_values.
4129 * tui/tui-hooks.c (tui_register_changed): Update.
4130
4131 2019-08-20 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-regs.c (tui_reg_layout): Move later.
4134 (tui_show_registers): Don't enable TUI mode or change layout.
4135
4136 2019-08-20 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-regs.h (struct tui_data_item_window)
4139 <~tui_data_item_window>: Remove.
4140 <content>: Now a unique_xmalloc_ptr.
4141 * tui/tui-regs.c (tui_register_format): Return a
4142 unique_xmalloc_ptr.
4143 (tui_get_register): Update.
4144 (~tui_data_item_window): Remove.
4145 (tui_data_window::display_registers_from, tui_display_register):
4146 Update.
4147 * tui/tui-io.h (tui_expand_tabs): Update.
4148 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4149 Remove "col" parameter.
4150
4151 2019-08-20 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4154 field.
4155 * tui/tui-regs.c (~tui_data_item_window): Update.
4156
4157 2019-08-20 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4160 earlier.
4161
4162 2019-08-20 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4165
4166 2019-08-20 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-source.h (struct tui_source_window): Update.
4169 * tui/tui-regs.c (tui_show_registers): Update.
4170 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4171 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4172 (NO_REGS_STRING): Remove defines.
4173
4174 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4175
4176 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4177 unnecessary thread walk if remote doesn't support the packet.
4178
4179 2019-08-19 Tom Tromey <tromey@adacore.com>
4180
4181 * python/py-value.c (value_has_field): Fix indentation.
4182
4183 2019-08-19 Tom Tromey <tromey@adacore.com>
4184
4185 * printcmd.c (do_one_display, info_display_command): Update.
4186 * block.h (contained_in): Return bool. Add allow_nested
4187 parameter.
4188 * block.c (contained_in): Return bool. Add allow_nested
4189 parameter.
4190
4191 2019-08-19 Tom Tromey <tom@tromey.com>
4192
4193 * configure: Rebuild.
4194 * configure.ac: Disallow the combination of -static-libstdc++ and
4195 source highlight.
4196 * source-cache.c (get_language_name): Handle rust.
4197 (source_cache::get_source_lines): Ignore highlighting exceptions.
4198
4199 2019-08-16 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4202 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4203 (struct tui_source_window_base) <make_visible, refresh_window,
4204 resize>: Remove methods.
4205 <execution_info>: Remove field.
4206 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4207 (tui_show_source_line, tui_source_window_base)
4208 (~tui_source_window_base): Update.
4209 (tui_source_window_base::resize)
4210 (tui_source_window_base::make_visible)
4211 (tui_source_window_base::refresh_window): Remove.
4212 (tui_source_window_base::update_exec_info): Update.
4213 * tui/tui-source.c (tui_source_window::set_contents): Update.
4214 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4215
4216 2019-08-16 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4219 deprecated_query_hook.
4220
4221 2019-08-16 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4224 (tui_update_source_windows_with_line): Update.
4225 * tui/tui-source.h (struct tui_source_window)
4226 <show_symtab_source>: Declare.
4227 (tui_show_symtab_source): Don't declare.
4228 * tui/tui-source.c (tui_show_symtab_source): Rename from
4229 tui_show_symtab_source.
4230
4231 2019-08-16 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-winsource.h (struct tui_source_window_base)
4234 <set_contents>: Declare.
4235 * tui/tui-winsource.c
4236 (tui_source_window_base::update_source_window_as_is): Update.
4237 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4238 Declare.
4239 (tui_set_source_content): Don't declare.
4240 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4241 tui_set_source_content.
4242 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4243 Declare.
4244 (tui_set_disassem_content): Don't declare.
4245 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4246 tui_set_disassem_content.
4247
4248 2019-08-16 Tom Tromey <tom@tromey.com>
4249
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <update_breakpoint_info>: Declare.
4252 (tui_update_breakpoint_info): Don't declare.
4253 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4254 (tui_update_all_breakpoint_info): Update.
4255 (tui_source_window_base::update_breakpoint_info): Rename from
4256 tui_update_breakpoint_info.
4257 (tui_source_window_base::update_exec_info): Update.
4258
4259 2019-08-16 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-winsource.h (struct tui_source_window_base)
4262 <update_source_window>: Declare.
4263 (tui_update_source_window): Don't declare.
4264 * tui/tui-winsource.c
4265 (tui_source_window_base::update_source_window): Rename from
4266 tui_update_source_window.
4267 (tui_source_window_base::rerender): Update.
4268 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4269 * tui/tui-disasm.c (tui_show_disassem)
4270 (tui_show_disassem_and_update_source)
4271 (tui_disasm_window::maybe_update): Update.
4272
4273 2019-08-16 Tom Tromey <tom@tromey.com>
4274
4275 * tui/tui-winsource.h (struct tui_source_window_base)
4276 <update_source_window_as_is>: Declare.
4277 (tui_update_source_window_as_is): Don't declare.
4278 * tui/tui-winsource.c (tui_update_source_window): Update
4279 (tui_source_window_base::update_source_window_as_is): Rename from
4280 tui_update_source_window_as_is.
4281 (tui_source_window_base::refill): Update.
4282 * tui/tui-source.c (tui_show_symtab_source): Update.
4283 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4284 Update.
4285
4286 2019-08-16 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-winsource.h (tui_update_source_window)
4289 (tui_update_source_window_as_is): Remove "noerror" parameter.
4290 * tui/tui-winsource.c (tui_update_source_window)
4291 (tui_update_source_window_as_is): Remove "noerror" parameter.
4292 (tui_update_source_windows_with_addr)
4293 (tui_update_source_windows_with_line)
4294 (tui_source_window_base::rerender)
4295 (tui_source_window_base::refill): Update.
4296 * tui/tui-source.h (tui_set_source_content)
4297 (tui_show_symtab_source): Remove "noerror" parameter.
4298 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4299 parameter.
4300 (tui_show_symtab_source): Likewise.
4301 (tui_source_window::maybe_update): Update.
4302 * tui/tui-disasm.c (tui_show_disassem)
4303 (tui_show_disassem_and_update_source)
4304 (tui_disasm_window::do_scroll_vertical)
4305 (tui_disasm_window::maybe_update): Update.
4306
4307 2019-08-16 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui.c (tui_is_window_visible): Update.
4310 * tui/tui-wingeneral.c (tui_make_window)
4311 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4312 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4313 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4314 (tui_set_win_height_command, parse_scrolling_args): Update.
4315 * tui/tui-source.c (tui_source_window::style_changed): Update.
4316 * tui/tui-regs.c (tui_show_registers)
4317 (tui_data_window::first_data_item_displayed)
4318 (tui_data_window::delete_data_content_windows)
4319 (tui_check_register_values, tui_reg_command): Update.
4320 * tui/tui-disasm.c (tui_show_disassem): Update.
4321 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4322 method.
4323 <is_visible>: Remove field.
4324 * tui/tui-data.c (tui_next_win, tui_prev_win)
4325 (tui_delete_invisible_windows): Update.
4326
4327 2019-08-16 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-winsource.h (struct tui_source_window_base)
4330 <m_has_locator>: Remove.
4331 * tui/tui-layout.c (show_source_disasm_command, show_data)
4332 (show_source_or_disasm_and_command): Update.
4333
4334 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4335
4336 * NEWS (Other MI changes): New subsection.
4337 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4338 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4339 * arch-utils.c (default_get_pc_address_flags): New function.
4340 * arch-utils.h (default_get_pc_address_flags): New declaration.
4341 * gdbarch.sh: Add get_pc_address_flags.
4342 * gdbarch.c: Regenerate.
4343 * gdbarch.h: Likewise.
4344 * stack.c (print_pc): New function.
4345 (print_frame_info) (print_frame): Call print_pc.
4346
4347 2019-08-16 Tom de Vries <tdevries@suse.de>
4348
4349 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4350 print_objfile_section_info.
4351
4352 2019-08-15 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4355 calling update_cmdwin_start_line.
4356 * tui/tui-winsource.h (struct tui_source_window_base)
4357 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4358 <rerender>: Declare.
4359 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4360 Call rerender.
4361 (tui_source_window_base::set_new_height): Remove.
4362 (tui_source_window_base::rerender): Rename from
4363 do_make_visible_with_new_height.
4364 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4365 resize method.
4366 (tui_win_info::make_invisible_and_set_new_height)
4367 (tui_win_info::make_visible_with_new_height): Remove.
4368 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4369 Declare.
4370 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4371 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4372 do_make_visible_with_new_height>: Don't declare.
4373 <rerender>: Declare.
4374 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4375 set_new_height.
4376 (tui_data_window::do_make_visible_with_new_height): Remove.
4377 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4378 call tui_show_locator_content.
4379 (tui_gen_win_info::resize): Call rerender.
4380 (show_source_or_disasm_and_command): Don't call
4381 tui_show_locator_content.
4382 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4383 method.
4384 (struct tui_win_info) <rerender>: Declare.
4385 <set_new_height, make_invisible_and_set_new_height,
4386 make_visible_with_new_height>: Don't declare.
4387 * tui/tui-data.c (tui_win_list::rerender): New method.
4388 * tui/tui-command.h (struct tui_cmd_window)
4389 <do_make_visible_with_new_height>: Don't declare.
4390 * tui/tui-command.c
4391 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4392
4393 2019-08-15 Tom Tromey <tromey@adacore.com>
4394
4395 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4396 * ada-lang.c (ada_enum_name): Likewise.
4397
4398 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4399
4400 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4401 leading underscore.
4402 (GdbOutputErrorFile): Likewise.
4403 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4404 accordingly.
4405 (execute_unwinders): Rename to have a leading underscore.
4406 (auto_load_packages): Likewise.
4407 (global scope): Adjust call to auto_load_packages accordingly.
4408 (GdbSetPythonDirectory): Likewise.
4409 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4410 instead of execute_unwinders.
4411
4412 2019-08-15 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4415 (show_data): Don't change window visibility.
4416 (tui_gen_win_info::resize): Remove special case for command
4417 window. Use wresize, when available.
4418 (show_source_or_disasm_and_command): Don't change window
4419 visibility.
4420 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4421 <make_visible>: New method.
4422 * tui/tui-command.c (tui_cmd_window::resize): New method.
4423
4424 2019-08-15 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4427 (struct tui_source_windows): New.
4428 * tui/tui-winsource.c (tui_display_main): Update.
4429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4430 (new_height_ok, parse_scrolling_args): Update.
4431 * tui/tui-layout.c (show_layout, show_data): Update.
4432 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4433 (tui_add_to_source_windows): Don't declare.
4434 * tui/tui-data.c (source_windows, tui_source_windows)
4435 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4436
4437 2019-08-15 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4440 Rename from reset.
4441 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4442 * tui/tui-layout.c (show_source_disasm_command, show_data):
4443 Update.
4444 (tui_gen_win_info::resize): Rename.
4445 (show_source_or_disasm_and_command): Update.
4446 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4447 reset.
4448
4449 2019-08-15 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4452 * tui/tui-interp.c (tui_interp::init): Don't call
4453 tui_initialize_static_data.
4454 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4455
4456 2019-08-15 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4459 examine tui_win_list.
4460
4461 2019-08-15 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4464 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4465 tui_clear_source_content.
4466 (tui_clear_source_content): Remove.
4467 (tui_source_window_base::do_erase_source_content): Hoist call to
4468 content.clear().
4469 * tui/tui-stack.c (tui_show_frame_info): Don't call
4470 tui_clear_source_content.
4471
4472 2019-08-15 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui-winsource.h (struct tui_source_window_base)
4475 <do_erase_source_content>: New method.
4476 <erase_source_content>: New method.
4477 (tui_erase_source_content): Don't declare.
4478 * tui/tui-winsource.c (tui_clear_source_content): Update.
4479 (tui_source_window_base::do_erase_source_content): Rename from
4480 tui_erase_source_content.
4481 (tui_source_window_base::show_source_content): Update.
4482 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4483 * tui/tui-source.h (struct tui_source_window)
4484 <erase_source_content>: New method.
4485 * tui/tui-disasm.h (struct tui_disasm_window)
4486 <erase_source_content>: New method.
4487
4488 2019-08-15 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4491 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4492 constructor.
4493 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4494 * tui/tui-source.c (tui_set_source_content): Update.
4495 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4496
4497 2019-08-15 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4500 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4501 tui-source.c.
4502 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4503 Declare.
4504 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4505 method.
4506 (tui_source_window::maybe_update): Update.
4507
4508 2019-08-15 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4511 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4512 tui-disasm.c.
4513 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4514 Declare.
4515 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4516 method.
4517 (tui_disasm_window::maybe_update): Update.
4518
4519 2019-08-15 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-winsource.h (struct tui_source_window_base)
4522 <maybe_update>: Declare.
4523 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4524 method.
4525 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4526 Declare.
4527 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4528 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4529 Declare.
4530 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4531
4532 2019-08-15 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4535
4536 2019-08-15 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-wingeneral.c: Include tui-stack.h.
4539 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4540 (struct tui_locator_window): Move from tui-data.h.
4541 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4542 (tui_initialize_static_data): Move from tui-data.c.
4543 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4544 (struct tui_locator_window): Move to tui-stack.c.
4545 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4546 (tui_initialize_static_data): Move to tui-stack.c.
4547
4548 2019-08-15 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-layout.c (show_source_disasm_command)
4551 (show_source_or_disasm_and_command): Use make_visible method, not
4552 tui_make_window.
4553 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4554 Remove.
4555
4556 2019-08-15 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-wingeneral.h (tui_make_window): Update.
4559 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4560 parameter.
4561 (tui_gen_win_info::make_visible): Update.
4562 * tui/tui-regs.c (tui_data_window::display_registers_from):
4563 Update.
4564 * tui/tui-layout.c (show_source_disasm_command)
4565 (show_source_or_disasm_and_command): Update.
4566 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4567 (enum tui_box): Remove.
4568 (struct tui_win_info) <can_box>: New method.
4569 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4570 method.
4571
4572 2019-08-15 Tom de Vries <tdevries@suse.de>
4573
4574 * linux-nat-trad.c: Include gdbarch.h.
4575
4576 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4577
4578 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4579 register sizes.
4580
4581 2019-08-14 Tom Tromey <tromey@adacore.com>
4582
4583 * darwin-nat.c: Include gdbarch.h.
4584 * darwin-nat-info.c: Include gdbarch.h.
4585
4586 2019-08-13 Tom Tromey <tom@tromey.com>
4587
4588 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4589 Remove.
4590 * tui/tui-data.c (tui_initialize_static_data): Update.
4591
4592 2019-08-13 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-winsource.h (struct tui_exec_info_window)
4595 <~tui_exec_info_window, maybe_allocate_content, get_content,
4596 m_content>: Remove.
4597 (struct tui_source_window_base) <set_exec_info_content,
4598 show_exec_info_content>: Don't declare.
4599 * tui/tui-winsource.c
4600 (tui_exec_info_window::maybe_allocate_content): Remove.
4601 (tui_source_window_base::update_exec_info): Rename from
4602 set_exec_info_content.
4603 (tui_source_window_base::show_exec_info_content)
4604 (tui_source_window_base::update_exec_info): Remove.
4605
4606 2019-08-13 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4609 declare.
4610 * tui/tui-winsource.c (tui_update_source_window_as_is)
4611 (tui_update_source_windows_with_addr, tui_erase_source_content):
4612 Update.
4613 (tui_clear_exec_info_content): Remove.
4614
4615 2019-08-13 Tom Tromey <tom@tromey.com>
4616
4617 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4618 declare.
4619 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4620 call tui_erase_exec_info_content.
4621 (tui_clear_exec_info_content): Rename from
4622 tui_erase_exec_info_content.
4623 (tui_clear_exec_info_content): Delete.
4624
4625 2019-08-13 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-winsource.h (struct tui_source_window_base)
4628 <show_exec_info_content>: Declare.
4629 (tui_show_exec_info_content): Don't declare.
4630 * tui/tui-winsource.c
4631 (tui_source_window_base::show_exec_info_content): Rename from
4632 tui_show_exec_info_content.
4633 (tui_source_window_base::update_exec_info): Update.
4634
4635 2019-08-13 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4638 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4639 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4640 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4641 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4642 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4643 ... here.
4644
4645 2019-08-13 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-winsource.h (struct tui_source_window_base)
4648 <update_exec_info>: Declare.
4649 (tui_update_exec_info): Don't declare.
4650 * tui/tui-winsource.c (tui_update_source_window_as_is)
4651 (tui_source_window_base::refresh_all)
4652 (tui_update_all_breakpoint_info): Update.
4653 (tui_source_window_base::update_exec_info): Rename from
4654 tui_update_exec_info.
4655 * tui/tui-stack.c (tui_show_frame_info): Update.
4656
4657 2019-08-13 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-winsource.h (struct tui_source_window_base)
4660 <set_exec_info_content>: Declare.
4661 (tui_set_exec_info_content): Don't declare.
4662 * tui/tui-winsource.c
4663 (tui_source_window_base::set_exec_info_content): Rename from
4664 tui_set_exec_info_content.
4665 (tui_update_exec_info): Update.
4666
4667 2019-08-13 Tom Tromey <tom@tromey.com>
4668
4669 * tui/tui-winsource.h (struct tui_source_window_base)
4670 <show_source_content>: Declare.
4671 (tui_show_source_content): Don't declare.
4672 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4673 (tui_source_window_base::show_source_content): Rename from
4674 tui_show_source_content.
4675 (tui_source_window_base::refresh_all): Update.
4676 * tui/tui-layout.c (show_source_disasm_command)
4677 (show_source_or_disasm_and_command): Update.
4678
4679 2019-08-13 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-winsource.c (tui_erase_source_content)
4682 (tui_show_source_content, tui_source_window_base::refresh_all):
4683 Update.
4684 * tui/tui-wingeneral.h
4685 (tui_check_and_display_highlight_if_needed): Don't declare.
4686 * tui/tui-wingeneral.c
4687 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4688 check_and_display_highlight_if_needed.
4689 * tui/tui-win.c (tui_rehighlight_all)
4690 (tui_win_info::make_visible_with_new_height): Update.
4691 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4692 (tui_data_window::erase_data_content)
4693 (tui_data_window::display_all_data): Update.
4694 * tui/tui-data.h (struct tui_win_info)
4695 <check_and_display_highlight_if_needed>: Declare.
4696
4697 2019-08-13 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-win.c (tui_resize_all): Call
4700 tui_delete_invisible_windows.
4701 * tui/tui-layout.c (show_layout): Call
4702 tui_delete_invisible_windows.
4703 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4704 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4705
4706 2019-08-13 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4709 tui_add_win_to_layout.
4710
4711 2019-08-13 Tom Tromey <tom@tromey.com>
4712
4713 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4714 * tui/tui-layout.c (tui_default_win_height): Now static.
4715
4716 2019-08-13 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4719 single switch.
4720 (show_source_disasm_command, show_source_or_disasm_and_command):
4721 Don't check current layout.
4722
4723 2019-08-13 Tom Tromey <tom@tromey.com>
4724
4725 * tui/tui-wingeneral.c (make_all_visible): Remove.
4726 (tui_make_all_invisible): Simplify.
4727 * tui/tui-layout.c (tui_make_all_invisible): Move from
4728 tui-wingeneral.c; simplify.
4729 (show_layout): Hoist call to tui_make_all_invisible.
4730 (show_data): Don't call tui_make_all_invisible.
4731
4732 2019-08-13 Tom Tromey <tom@tromey.com>
4733
4734 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4735 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4736
4737 2019-08-13 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4740 tui-data.c.
4741 (show_source_disasm_command, show_data)
4742 (show_source_or_disasm_and_command): Don't use
4743 tui_set_current_layout_to.
4744 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4745 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4746 tui-layout.c.
4747 (tui_set_current_layout_to): Remove.
4748
4749 2019-08-13 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-layout.c (tui_set_layout): Update.
4752 * tui/tui-data.h (struct tui_layout_def): Remove.
4753 (tui_layout_def): Don't declare.
4754 * tui/tui-data.c (layout_def): Remove.
4755 (tui_layout_def): Remove.
4756
4757 2019-08-13 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-winsource.h (struct tui_source_window_base)
4760 <clear_detail>: No longer "override".
4761 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4762 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4763 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4764 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4765 Remove.
4766 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4767
4768 2019-08-13 Tom Tromey <tromey@adacore.com>
4769
4770 * tracepoint.c: Don't include readline.h or history.h.
4771
4772 2019-08-12 Tom Tromey <tom@tromey.com>
4773
4774 * configure: Rebuild.
4775 * configure.ac: Check for readline 7.
4776 * NEWS: Mention readline 7 requirement.
4777 * README: Update.
4778
4779 2019-08-12 Tom Tromey <tom@tromey.com>
4780
4781 * mingw-hdep.c (gdb_select): Remove readline hack.
4782
4783 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4784
4785 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4786 when the function fails.
4787
4788 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4789
4790 * s390-tdep.c (s390_type_align): New function.
4791 (s390_gdbarch_init): Set it as type_align gdbarch method.
4792
4793 2019-08-09 Tom de Vries <tdevries@suse.de>
4794
4795 PR gdb/24591
4796 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4797 pc_low with relocation offset.
4798
4799 2019-08-07 Tom Tromey <tromey@adacore.com>
4800
4801 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4802 (print_frame_args): Update.
4803 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4804 Update.
4805 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4806 * frame.h (struct frame_arg): Add initializers.
4807 <error>: Now a unique_xmalloc_ptr.
4808
4809 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4810
4811 * NEWS: Expand the Pointer Authentication entry.
4812 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4813 (aarch64_frame_unmask_lr): ... to this.
4814 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4815 Call aarch64_frame_unmask_lr.
4816 * frame.c (struct frame_info): Add "masked" variable.
4817 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4818 (fprint_frame): Check for masked pc.
4819 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4820 declarations.
4821 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4822 * stack.c (print_frame): Check for masked pc.
4823
4824 2019-08-06 Tom Tromey <tom@tromey.com>
4825
4826 * stabsread.c (patch_block_stabs, read_one_struct_field)
4827 (read_enum_type): Use obstack_strndup.
4828 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4829 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4830 * dwarf2read.c (guess_full_die_structure_name)
4831 (anonymous_struct_prefix): Use obstack_strndup.
4832 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4833 * c-exp.y (yylex): Use obstack_strndup.
4834 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4835 (write_var_or_type): Use obstack_strndup.
4836
4837 2019-08-06 Tom Tromey <tom@tromey.com>
4838
4839 * symfile.c (reread_symbols): Use obstack_strdup.
4840 * stabsread.c (read_type): Use obstack_strdup.
4841 * gdb_obstack.h (obstack_strdup): New overload.
4842 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4843 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4844 (dwarf2_canonicalize_name): Use obstack_strdup.
4845 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4846 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4847 Use obstack_strdup.
4848
4849 2019-08-06 Tom Tromey <tom@tromey.com>
4850
4851 * gdb_obstack.h (obstack_strdup): Define.
4852 * gdb_obstack.c (obstack_strdup): Don't define.
4853
4854 2019-08-06 Tom Tromey <tom@tromey.com>
4855
4856 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4857 obstack_strdup.
4858 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4859 obstack_strdup.
4860 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4861 * stabsread.c (common_block_start): Use obstack_strdup.
4862 * objfiles.c (set_objfile_main_name, objfile): Use
4863 obstack_strdup.
4864 * namespace.c (add_using_directive): Use obstack_strdup.
4865 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4866 * jit.c (finalize_symtab): Use obstack_strdup.
4867 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4868 (guess_partial_die_structure_name, partial_die_info::fixup)
4869 (dwarf2_name): Use obstack_strdup.
4870 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4871 obstack_strdup.
4872 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4873 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4874 obstack_strdup.
4875 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4876
4877 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4878
4879 * unittests/help-doc-selftests.c: New file.
4880 * Makefile.in: Add the new file.
4881
4882 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4883
4884 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4885 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4886 the full first line, except when FOR_VALUE_PREFIX. In this case,
4887 the trailing '.' is not output, and the first character is uppercased.
4888 (print_help_for_command): Update call to print_doc_line.
4889 (print_doc_of_command): Likewise.
4890 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4891 * cli/cli-option.c (append_indented_doc): Do not append newline.
4892 (build_help_option): Append newline after first appended_indented_doc
4893 only if a second call is done.
4894 (build_help): Append 2 new lines before each option, except the first
4895 one.
4896 * compile/compile.c (_initialize_compile): Add new lines after
4897 %OPTIONS%, when not at the end of the help.
4898 Change help doc or code
4899 producing the help doc to respect the invariants.
4900 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4901 Also removed the new line after 'Options:', as all other commands
4902 do not put an empty line between 'Options:' and the first option.
4903 * printcmd.c (_initialize_printcmd): Likewise.
4904 * stack.c (_initialize_stack): Likewise.
4905 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4906 incorrectly telling COMMAND is optional.
4907 * ada-lang.c (_initialize_ada_language): Change help doc or code
4908 producing the help doc to respect the invariants.
4909 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4910 * breakpoint.c (_initialize_breakpoint): Likewise.
4911 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4912 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4913 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4914 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4915 _initialize_cli_style): Likewise.
4916 * corelow.c (core_target_info): Likewise.
4917 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4918 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4919 * filesystem.c (_initialize_filesystem): Likewise.
4920 * frame.c (_initialize_frame): Likewise.
4921 * gnu-nat.c (add_task_commands): Likewise.
4922 * infcall.c (_initialize_infcall): Likewise.
4923 * infcmd.c (_initialize_infcmd): Likewise.
4924 * interps.c (_initialize_interpreter): Likewise.
4925 * language.c (_initialize_language): Likewise.
4926 * linux-fork.c (_initialize_linux_fork): Likewise.
4927 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4928 * maint.c (_initialize_maint_cmds): Likewise.
4929 * memattr.c (_initialize_mem): Likewise.
4930 * printcmd.c (_initialize_printcmd): Likewise.
4931 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4932 _RegEx): Likewise.
4933 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4934 * record-btrace.c (_initialize_record_btrace): Likewise.
4935 * record-full.c (_initialize_record_full): Likewise.
4936 * record.c (_initialize_record): Likewise.
4937 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4938 * regcache.c (_initialize_regcache): Likewise.
4939 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4940 _initialize_remote): Likewise.
4941 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4942 * serial.c (_initialize_serial): Likewise.
4943 * skip.c (_initialize_step_skip): Likewise.
4944 * source.c (_initialize_source): Likewise.
4945 * stack.c (_initialize_stack): Likewise.
4946 * symfile.c (_initialize_symfile): Likewise.
4947 * symtab.c (_initialize_symtab): Likewise.
4948 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4949 * top.c (init_main): Likewise.
4950 * tracefile-tfile.c (tfile_target_info): Likewise.
4951 * tracepoint.c (_initialize_tracepoint): Likewise.
4952 * tui/tui-win.c (_initialize_tui_win): Likewise.
4953 * utils.c (add_internal_problem_command): Likewise.
4954 * valprint.c (value_print_option_defs): Likewise.
4955
4956 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4957
4958 PR build/24886
4959 * configure.ac: Drop enable-libmcheck support.
4960 * configure, config.in: Rebuild.
4961 * libmcheck.m4: Remove.
4962 * acinclude.m4: Don't include it.
4963 * Makefile.in: Don't distribute it.
4964 * top.c (print_gdb_configuration): Don't mention it.
4965
4966 2019-08-06 Tom Tromey <tom@tromey.com>
4967
4968 * utils.c (set_output_style): Sometimes pass stream to
4969 emit_style_escape.
4970 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4971 * record-btrace.c (btrace_insn_history): Update.
4972 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4973 method.
4974 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4975 Update initializers.
4976 <m_uiout>: New field.
4977 <m_di>: Move lower.
4978 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4979 Remove "uiout" parameter.
4980 (dump_insns): Update.
4981 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4982 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4983
4984 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4985
4986 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4987 (error_in_psymtab_expansion): Likewise.
4988 (lookup_symbol_via_quick_fns): Likewise.
4989 (basic_lookup_transparent_type_quick): Likewise.
4990 (basic_lookup_transparent_type_1): Likewise.
4991
4992 2019-08-06 Tom Tromey <tromey@adacore.com>
4993
4994 * source.c (last_source_error): Now bool.
4995 (print_source_lines_base): Make "noprint" bool. Only open
4996 source file when last_source_visited changes.
4997
4998 2019-08-06 Tom Tromey <tromey@adacore.com>
4999
5000 * annotate.c (annotate_source_line): Use g_source_cache.
5001 * source-cache.c (source_cache::get_plain_source_lines): Change
5002 parameters. Populate m_offset_cache.
5003 (source_cache::ensure): New method.
5004 (source_cache::get_line_charpos): New method.
5005 (extract_lines): Move lower. Change parameters.
5006 (source_cache::get_source_lines): Move lower.
5007 * source-cache.h (class source_cache): Update comment.
5008 <get_line_charpos>: New method.
5009 <get_source_lines>: Update comment.
5010 <clear>: Clear m_offset_cache.
5011 <get_plain_source_lines>: Change parameters.
5012 <ensure>: New method
5013 <m_offset_cache>: New member.
5014 * source.c (forget_cached_source_info_for_objfile): Update.
5015 (info_source_command): Use g_source_cache.
5016 (find_source_lines, open_source_file_with_line_charpos): Remove.
5017 (print_source_lines_base, search_command_helper): Use g_source_cache.
5018 * source.h (open_source_file_with_line_charpos): Don't declare.
5019 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5020 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5021 Use g_source_cache.
5022
5023 2019-08-06 Tom Tromey <tromey@adacore.com>
5024
5025 * source-cache.c (source_cache::get_plain_source_lines):
5026 Remove "first_line" and "last_line" parameters.
5027 (source_cache::get_source_lines): Cache plain text.
5028 * source-cache.h (class source_cache)
5029 <get_plain_source_lines>: Update.
5030
5031 2019-08-06 Tom Tromey <tromey@adacore.com>
5032
5033 * source-cache.c (extract_lines): No longer a method.
5034 Changed type of parameter. Include final newline.
5035 (selftests::extract_lines_test): New function.
5036 (_initialize_source_cache): Likewise.
5037 * source-cache.h (class source_cache)
5038 <extract_lines>: Don't declare.
5039
5040 2019-08-06 Tom Tromey <tromey@adacore.com>
5041
5042 * breakpoint.c (init_breakpoint_sal): Update.
5043 (breakpoint): Update.
5044 * breakpoint.h (struct breakpoint) <filter>: Now a
5045 unique_xmalloc_ptr.
5046
5047 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5048
5049 * NEWS: Mention dictionary access on blocks.
5050 * python/py-block.c (blpy_getitem): New function.
5051 (block_object_as_mapping): New struct.
5052 (block_object_type): Use new struct for tp_as_mapping field.
5053
5054 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5055
5056 * objfiles.h (objfile): Add a comment describing partial symbols.
5057
5058 2019-08-05 Tom Tromey <tromey@adacore.com>
5059
5060 * compile/compile.c (_initialize_compile): Use _(), not N_().
5061 * thread.c (_initialize_thread): Use _(), not N_().
5062 * stack.c (_initialize_stack): Use _(), not N_().
5063 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5064
5065 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5066
5067 * dwarf2read.c (struct dw2_symtab_iterator):
5068 <want_specific_block>: Remove.
5069 <block_index>: Change type to gdb::optional.
5070 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5071 change type of BLOCK_INDEX parameter to gdb::optional.
5072 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5073 (dw2_lookup_symbol): Don't pass argument for
5074 WANT_SPECIFIC_BLOCK.
5075 (dw2_expand_symtabs_for_function): Don't pass argument for
5076 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5077 (class dw2_debug_names_iterator)
5078 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5079 parameter, change BLOCK_INDEX type to gdb::optional.
5080 <m_want_specific_block>: Remove.
5081 <m_block_index>: Change type to gdb::optional.
5082 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5083 gdb::optional. Re-write in function of gdb::optional.
5084 (dw2_debug_names_lookup_symbol): Don't pass argument for
5085 WANT_SPECIFIC_BLOCK.
5086 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5087 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5088 BLOCK_INDEX.
5089
5090 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5091
5092 * NEWS: Mention changes to "info sources" command.
5093
5094 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5095
5096 * symtab.c (filename_partial_match_opts): New struct type.
5097 (struct output_source_filename_data): New members
5098 regexp, c_regexp, partial_match.
5099 (output_source_filename): Use new members to decide to print file.
5100 (info_sources_option_defs): New variable.
5101 (make_info_sources_options_def_group, print_info_sources_header,
5102 info_sources_command_completer):
5103 New functions.
5104 (info_sources_command): Read new optional arguments.
5105 (_initialize_symtab): Update info sources help.
5106
5107 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5108
5109 * ada-lang.c (exception_support_info_v0): Renamed from...
5110 (default_exception_support_info): ... this. Create new
5111 definition for v1.
5112 (ada_has_this_exception_support): Look up catch_handlers_sym.
5113 (ada_exception_support_info_sniffer): Try v0 after default.
5114
5115 2019-08-01 Tom Tromey <tromey@adacore.com>
5116
5117 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5118 gdbarch.h.
5119
5120 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5121
5122 * s12z-tdep.c: Fix include path for s12z-opc.h.
5123
5124 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5125
5126 * NEWS: Require GNU make 3.82.
5127
5128 2019-07-16 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5131 declare.
5132
5133 2019-07-30 Tom Tromey <tromey@adacore.com>
5134
5135 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5136
5137 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5138
5139 * printcmd.c (print_address_symbolic): Print negative offsets.
5140 (build_address_symbolic): Force signed arithmetic when computing
5141 offset.
5142
5143 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5144
5145 PR/24474: Add a function to lookup static variables.
5146 * NEWS: Mention this new function.
5147 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5148 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5149 * python/python.c (python_GdbMethods): Add new function.
5150
5151 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5152
5153 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5154 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5155 (objfpy_lookup_static_symbol): New function.
5156 (objfile_object_methods): Add new functions.
5157
5158 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5159
5160 * NEWS: Mention 'set|show print frame-info'. Mention new
5161 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5162 backtrace argument. Mention that python frame filtering code
5163 is now consistent with what 'backtrace' command prints.
5164
5165 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5166
5167 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5168 comments.
5169 (print_frame_info_auto, print_frame_info_source_line,
5170 print_frame_info_location, print_frame_info_source_and_location,
5171 print_frame_info_location_and_address, print_frame_info_short_location):
5172 New declarations.
5173 (struct frame_print_options): New member print_frame_info.
5174 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5175 * stack.h (get_user_print_what_frame_info): New declaration.
5176 (frame_show_address): New declaration.
5177 * stack.c (print_frame_arguments_choices): New value 'presence'.
5178 (print_frame_info_auto, print_frame_info_source_line,
5179 print_frame_info_location, print_frame_info_source_and_location,
5180 print_frame_info_location_and_address, print_frame_info_short_location,
5181 print_frame_info_choices, print_frame_info_print_what): New definitions.
5182 (print_frame_args): Only print dots for args if print frame-arguments
5183 is 'presence'.
5184 (frame_print_option_defs): New element for "frame-info".
5185 (get_user_print_what_frame_info): New function.
5186 (frame_show_address): Make non static. Move comment to stack.h.
5187 (print_frame_info_to_print_what): New function.
5188 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5189 to decide what to print.
5190 (backtrace_command_1): Handle the new print_frame_arguments_presence
5191 value.
5192 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5193 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5194 (py_print_frame): In non-mi mode, use LOCATION as default for
5195 print_what, similarly to frame information printed directly by
5196 backtrace command. Handle frame-info user option in non MI mode.
5197
5198 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5199
5200 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5201 Add case for debugging 32-bit target on 64-bit host. Revise
5202 comment.
5203
5204 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5205
5206 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5207 instead of find_function_entry_range_from_pc.
5208
5209 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5210
5211 * stack.c (find_frame_funname): Remove code which preferred
5212 minsym over symtab sym in "certain pathological cases".
5213
5214 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5215 parameter. Change type of "do_demangle" to bool.
5216 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5217 Pass suitable "prefer_sym_over_minsym" flag to
5218 build_address_symbolic(). Don't output "+" for negative offsets.
5219 * printcmd.c (print_address_symbolic): Update invocation of
5220 build_address_symbolic to include a "prefer_sym_over_minsym"
5221 flag.
5222 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5223 Restrict cases in which use of minimal symbol is preferred to that
5224 of a found symbol. Update comments.
5225
5226 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5227 for entry pc when entry pc is out of range for that FDE.
5228
5229 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5230
5231 PR gdb/24839:
5232 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5233 type.
5234
5235 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5236
5237 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5238 this function's Python signature.
5239
5240
5241 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5242
5243 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5244 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5245 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5246 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5247 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5248
5249
5250 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5251
5252 * h8300-tdep.c (h8300_register_name_common): New.
5253 h8300_register_name): Use h8300_register_name_common.
5254 (h8300s_register_name): Likewise.
5255 (h8300sx_register_name): Likewise.
5256 (h8300h_register_nam): New.
5257 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5258
5259
5260 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5261
5262 * arm-tdep.c (arm_skip_cmse_entry): New function.
5263 (arm_is_sgstubs_section): New function.
5264 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5265
5266 2019-07-22 Tom Tromey <tom@tromey.com>
5267
5268 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5269 Don't self-assign.
5270
5271 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5272
5273 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5274 type_print.
5275
5276 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5279 so that GDB doesn't match any msymbols when searching in the
5280 TYPES_DOMAIN.
5281 (print_symbol_info): Print using typedef_print or type_print based
5282 on the type of the symbol. Add updated FIXME comment moved from...
5283 (_initialize_symtab): ... move and update FIXME comment to above.
5284
5285 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * NEWS: Mention adding -q option to "info types".
5288 * symtab.c (struct info_types_options): New struct.
5289 (info_types_options_defs): New variable.
5290 (make_info_types_options_def_group): New function.
5291 (info_types_command): Use gdb::option framework to parse options.
5292 (info_types_command_completer): New function.
5293 (_initialize_symtab): Extend the help text on "info types" and
5294 register command completer.
5295
5296 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5297
5298 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5299 (lookup_symbol_in_objfile): Change int to block_enum and add a
5300 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5301
5302 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5303
5304 * MAINTAINERS (Write After Approval): Add self.
5305
5306 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5307
5308 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5309 instruction to the dummy code region.
5310
5311 2019-07-19 Tom Tromey <tromey@adacore.com>
5312
5313 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5314 (ARGSUSED, PARAMS, __func__): Remove rules.
5315
5316 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5317
5318 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5319 * features/arm/arm-with-iwmmxt.c: Remove.
5320 * features/arm/arm-with-iwmmxt.xml: Remove.
5321 * features/arm/arm-with-m-fpa-layout.c: Remove.
5322 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5323 * features/arm/arm-with-m-vfp-d16.c: Remove.
5324 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5325 * features/arm/arm-with-m.c: Remove.
5326 * features/arm/arm-with-m.xml: Remove.
5327 * features/arm/arm-with-neon.c: Remove.
5328 * features/arm/arm-with-neon.xml: Remove.
5329 * features/arm/arm-with-vfpv2.c: Remove.
5330 * features/arm/arm-with-vfpv2.xml: Remove.
5331 * features/arm/arm-with-vfpv3.c: Remove.
5332 * features/arm/arm-with-vfpv3.xml: Remove.
5333
5334 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5335
5336 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5337
5338 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5339
5340 * arch/aarch32.c (aarch32_create_target_description): Create
5341 target descriptions using features.
5342 * arch/arm.c (arm_create_target_description)
5343 (arm_create_mprofile_target_description): Likewise.
5344 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5345
5346 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5347
5348 * Makefile.in: Add new files.
5349 * aarch32-tdep.c: New file.
5350 * aarch32-tdep.h: New file.
5351 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5352 Call aarch32_read_description.
5353 * arch/aarch32.c: New file.
5354 * arch/aarch32.h: New file.
5355 * arch/arm.c (arm_create_target_description)
5356 (arm_create_mprofile_target_description): New function.
5357 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5358 (arm_create_target_description)
5359 (arm_create_mprofile_target_description): New declaration.
5360 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5361 read_description functions.
5362 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5363 Likewise.
5364 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5365 * arm-tdep.c (tdesc_arm_list): New variable.
5366 (arm_register_g_packet_guesses): Call create description functions.
5367 (arm_read_description) (arm_read_mprofile_description): New
5368 function.
5369 * arm-tdep.h (arm_read_description)
5370 (arm_read_mprofile_description): Add declaration.
5371 * configure.tgt: Add new files.
5372
5373 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5374
5375 * top.c (new_ui_command): Open specified terminal just once.
5376
5377 2019-07-18 Tom Tromey <tromey@adacore.com>
5378
5379 * symtab.c (main_name): Constify return type.
5380 * symfile.c (set_initial_language): Update.
5381 * symtab.h (main_name): Constify return type.
5382
5383 2019-07-17 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-winsource.c (tui_update_source_window)
5386 (tui_update_source_window_as_is)
5387 (tui_update_source_windows_with_line): Remove return.
5388 * tui/tui-disasm.c (tui_show_disassem)
5389 (tui_show_disassem_and_update_source): Remove return.
5390 * tui/tui.c (tui_reset): Remove return.
5391 * tui/tui-wingeneral.c
5392 (tui_check_and_display_highlight_if_needed): Remove return.
5393
5394 2019-07-17 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5397
5398 2019-07-17 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-winsource.h (struct tui_exec_info_window)
5401 (struct tui_source_window_base): Move from tui-data.h.
5402 * tui/tui-winsource.c: Move many method definitions from
5403 elsewhere. Remove "structuring" comments.
5404 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5405 (tui_source_window_base::refresh_window): Move to
5406 tui-winsource.c.
5407 * tui/tui-win.c (tui_source_window_base::refresh_all)
5408 (tui_source_window_base::update_tab_width)
5409 (tui_source_window_base::set_new_height)
5410 (tui_source_window_base::do_make_visible_with_new_height): Move to
5411 tui-winsource.c.
5412 * tui/tui-source.h: Update.
5413 * tui/tui-source.c (tui_source_window_base::reset): Move to
5414 tui-winsource.c.
5415 * tui/tui-disasm.h: Update.
5416 * tui/tui-data.h (struct tui_exec_info_window): Move to
5417 tui-winsource.h.
5418 (struct tui_source_window_base): Likewise.
5419 * tui/tui-data.c (tui_source_window_base::clear_detail)
5420 (tui_source_window_base, ~tui_source_window_base): Move to
5421 tui-winsource.c.
5422
5423 2019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-win.c (tui_resize_all)
5426 (tui_source_window_base::update_tab_width)
5427 (tui_adjust_win_heights): Update.
5428 (tui_win_info::make_invisible_and_set_new_height): Rename from
5429 make_invisible_and_set_new_height.
5430 * tui/tui-data.h (struct tui_win_info)
5431 <make_invisible_and_set_new_height>: New method.
5432
5433 2019-07-17 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui.c: Update.
5436 * tui/tui-source.h (struct tui_source_window): Move from
5437 tui-data.h.
5438 * tui/tui-layout.c: Update.
5439 * tui/tui-disasm.c: Update.
5440 * tui/tui-data.h (struct tui_source_window): Move to
5441 tui-source.h.
5442
5443 2019-07-17 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5446 tui-data.h.
5447 * tui/tui-data.h (struct tui_disasm_window): Move to
5448 tui-disasm.h.
5449
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-regs.h (struct tui_data_item_window): Move from
5453 tui-data.h.
5454 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5455 * tui/tui-data.h (struct tui_data_item_window): Move to
5456 tui-regs.h.
5457 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5458
5459 2019-07-17 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui.c: Update.
5462 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5463 (tui_cmd_window::max_height): Move to tui-command.c.
5464 * tui/tui-layout.c: Update.
5465 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5466 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5467 tui-command.c.
5468 * tui/tui-command.h (struct tui_cmd_window): Move from
5469 tui-data.h.
5470 * tui/tui-command.c: Remove "structuring" comments.
5471 (tui_cmd_window::clear_detail)
5472 (tui_cmd_window::do_make_visible_with_new_height)
5473 (tui_cmd_window::max_height): Move from elsewhere.
5474
5475 2019-07-17 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5478 Now static.
5479 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5480 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5481
5482 2019-07-17 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui.c: Update.
5485 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5486 tui-regs.c.
5487 * tui/tui-windata.h: Remove file.
5488 * tui/tui-windata.c: Remove file.
5489 * tui/tui-win.c (tui_data_window::set_new_height)
5490 (tui_data_window::do_make_visible_with_new_height): Move to
5491 tui-regs.c.
5492 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5493 * tui/tui-regs.c: Remove "structuring" comments.
5494 (tui_data_window::first_data_item_displayed)
5495 (tui_data_window::delete_data_content_windows)
5496 (tui_data_window::erase_data_content)
5497 (tui_data_window::display_all_data)
5498 (tui_data_window::refresh_all)
5499 (tui_data_window::do_scroll_vertical)
5500 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5501 (tui_data_window::do_make_visible_with_new_height)
5502 (tui_data_window::refresh_window): Move from elsewhere.
5503 (_initialize_tui_regs): Move to end of file.
5504 * tui/tui-layout.c: Update.
5505 * tui/tui-hooks.c: Update.
5506 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5507 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5508 tui-regs.c.
5509 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5510
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5514 seen.
5515
5516 2019-07-17 Tom Tromey <tom@tromey.com>
5517
5518 * tui/tui-win.c (tui_source_window_base::set_new_height)
5519 (tui_source_window_base::do_make_visible_with_new_height): Use
5520 m_has_locator field directly.
5521 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5522 method.
5523 (struct tui_source_window_base) <has_locator>: Likewise.
5524
5525 2019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5528 Don't declare.
5529 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5530 Remove.
5531 * tui/tui-win.c (tui_source_window_base::set_new_height)
5532 (tui_source_window_base::set_new_height)
5533 (make_invisible_and_set_new_height)
5534 (tui_source_window_base::do_make_visible_with_new_height)
5535 (tui_source_window_base::do_make_visible_with_new_height):
5536 Update.
5537 * tui/tui-layout.c (show_source_disasm_command, show_data)
5538 (show_source_or_disasm_and_command): Update.
5539 * tui/tui-layout.c (show_layout): Update.
5540
5541 2019-07-17 Tom Tromey <tom@tromey.com>
5542
5543 * tui/tui-layout.c (make_data_window): Remove.
5544 (show_data): Unify creation and re-initialization cases.
5545
5546 2019-07-17 Tom Tromey <tom@tromey.com>
5547
5548 * tui/tui-layout.c (make_source_window, make_disasm_window):
5549 Remove.
5550 (show_data): Unify creation and re-initialization cases.
5551
5552 2019-07-17 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-layout.c (make_command_window): Remove.
5555 (show_source_disasm_command, show_source_or_disasm_and_command):
5556 Unify creation and re-initialization cases.
5557
5558 2019-07-17 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5561 creation and re-initialization cases.
5562
5563 2019-07-17 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-regs.c (tui_get_register): Return void.
5566
5567 2019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5570 Simplify.
5571
5572 2019-07-17 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5575 resetting.
5576
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5580 * tui/tui-regs.c (tui_reg_layout): New function.
5581 (tui_show_registers, tui_reg_command): Use it.
5582 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5583 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5584 parameters.
5585 (tui_layout_command): Remove.
5586
5587 2019-07-17 Tom Tromey <tom@tromey.com>
5588
5589 * tui/tui-layout.h (tui/tui-layout): Return void.
5590 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5591
5592 2019-07-17 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-layout.c (show_source_disasm_command, show_data):
5595 Update.
5596 (reset_locator): Remove.
5597 (show_source_or_disasm_and_command): Update.
5598
5599 2019-07-17 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-source.c (tui_source_window_base::reset): Remove
5602 win_type parameter.
5603 * tui/tui-layout.c (make_command_window, make_source_window)
5604 (make_disasm_window, make_data_window)
5605 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5606 (reset_locator, show_source_or_disasm_and_command): Update.
5607 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5608 win_type parameter.
5609 (struct tui_source_window_base) <reset>: Likewise.
5610
5611 2019-07-17 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-layout.c (show_source_disasm_command): Use
5614 reset_locator.
5615 (reset_locator): New function.
5616 (init_and_make_win): Remove.
5617 (show_source_or_disasm_and_command): Use reset_locator.
5618
5619 2019-07-17 Tom Tromey <tom@tromey.com>
5620
5621 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5622 condition.
5623 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5624 Remove condition.
5625 * tui/tui-source.c (tui_source_window_base::reset): New method.
5626 * tui/tui-layout.c (make_command_window): Don't call
5627 init_and_make_win.
5628 (make_source_window, make_disasm_window): Don't call
5629 make_source_or_disasm_window.
5630 (make_data_window): Don't call init_and_make_win. Change calling
5631 convention.
5632 (show_source_disasm_command, show_data): Simplify.
5633 (make_source_or_disasm_window): Remove.
5634 (show_source_or_disasm_and_command): Simplify.
5635 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5636 (struct tui_source_window_base) <reset>: Likewise.
5637 <execution_info>: Remove initializer.
5638 * tui/tui-data.c (tui_source_window_base): Initialize
5639 execution_info.
5640
5641 2019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5644 variable.
5645
5646 2019-07-17 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui.c (tui_rl_other_window): Update.
5649 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5650 superclass method first. Always iterate over regs_content.
5651 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5652 method.
5653 * tui/tui-win.c (tui_set_focus_command): Update.
5654
5655 2019-07-17 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-win.c (tui_set_focus_command): Rename from
5658 tui_set_focus. Call tui_enable.
5659 (tui_set_focus_command): Remove.
5660
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5664 refresh_window.
5665 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5666 touchwin.
5667 (tui_data_window::refresh_window): Call refresh_window on data
5668 items. Always call superclass refresh_window.
5669 (tui_win_info::refresh): Remove.
5670 (tui_source_window_base::refresh_window): Update.
5671 (tui_refresh_all): Update.
5672 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5673 refresh_window.
5674 (show_source_or_disasm_and_command): Likewise.
5675 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5676 (struct tui_source_window_base) <refresh>: Likewise.
5677
5678 2019-07-17 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-winsource.c (tui_clear_source_content)
5681 (tui_show_source_content): Update.
5682 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5683 whether content is empty.
5684 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5685 Remove.
5686
5687 2019-07-17 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5690 window's contents.
5691 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5692 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5693
5694 2019-07-17 Tom Tromey <tom@tromey.com>
5695
5696 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5697 (struct tui_data_item_window): Update.
5698
5699 2019-07-17 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5702 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5703 defines.
5704
5705 2019-07-17 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-winsource.h (tui_erase_source_content)
5708 (tui_clear_source_content): Remove "display_prompt" parameter.
5709 * tui/tui-winsource.c (tui_update_source_window_as_is)
5710 (tui_update_source_windows_with_addr): Update.
5711 (tui_clear_source_content): Remove "display_prompt" parameter.
5712 (tui_erase_source_content): Likewise. Simplify.
5713 (tui_show_source_content): Update.
5714 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5715 * tui/tui-stack.c (tui_show_frame_info): Update.
5716 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5717 Remove defines.
5718
5719 2019-07-17 Tom Tromey <tom@tromey.com>
5720
5721 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5722 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5723 parameter.
5724 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5725 parameter.
5726
5727 2019-07-17 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-winsource.c (tui_clear_source_content)
5730 (tui_show_source_content, tui_show_exec_info_content)
5731 (tui_clear_exec_info_content): Update.
5732 * tui/tui-stack.c (tui_show_locator_content): Update.
5733 (tui_show_frame_info): Update.
5734 * tui/tui-source.h (tui_source_window): Don't declare.
5735 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5736 from tui_source_is_displayed.
5737 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5738 Remove field.
5739 (struct tui_source_window_base) <content_in_use>: New field. Now
5740 bool.
5741 (struct tui_source_window) <showing_source_p>: New method.
5742 (TUI_SRC_WIN): Change cast.
5743 * tui/tui-data.c (tui_initialize_static_data): Update.
5744
5745 2019-07-17 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5748 location_matches_p.
5749 * tui/tui-source.c (tui_source_window::location_matches_p): New
5750 method.
5751 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5752 method.
5753 * tui/tui-data.h (struct tui_source_window_base)
5754 <location_matches_p>: New method.
5755 (struct tui_source_window, struct tui_disasm_window)
5756 <location_matches_p>: Likewise.
5757
5758 2019-07-17 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-win.c (tui_set_win_height_command): Rename from
5761 tui_set_win_height.
5762 (tui_set_win_height_command): Remove.
5763
5764 2019-07-17 Tom Tromey <tom@tromey.com>
5765
5766 * tui/tui-source.c (tui_source_window): New constructor. Add
5767 observer.
5768 (~tui_source_window): New destructor.
5769 (tui_source_window::style_changed): New method.
5770 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5771 (tui_attach_detach_observers): Update.
5772 * tui/tui-data.h (struct tui_source_window): Make constructor not
5773 inline. Add destructor.
5774 (struct tui_source_window) <style_changed>: New method.
5775 <m_observable>: New member.
5776
5777 2019-07-17 Tom Tromey <tom@tromey.com>
5778
5779 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5780 * tui/tui-win.c (tui_resize_all): Fix typo.
5781
5782 2019-07-17 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5785 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5786 (tui_refresh_all): Remove "list" parameter. Use foreach.
5787 * tui/tui-win.c (window_name_completer): Use foreach.
5788 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5789 (update_tab_width): Likewise.
5790 * tui/tui-layout.c (show_layout): Update.
5791 * tui/tui-data.h (class tui_window_iterator): New.
5792 (struct all_tui_windows): New.
5793 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5794
5795 2019-07-17 Tom Tromey <tom@tromey.com>
5796
5797 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5798 parameter. Don't reference globals.
5799 (tui_reg_command): Update.
5800
5801 2019-07-17 Tom Tromey <tom@tromey.com>
5802
5803 * tui/tui-regs.c (tui_show_registers): Simplify.
5804
5805 2019-07-17 Tom Tromey <tom@tromey.com>
5806
5807 * tui/tui-regs.c (tui_show_registers): Update.
5808 (tui_show_register_group): Add win_info parameter.
5809
5810 2019-07-17 Tom Tromey <tom@tromey.com>
5811
5812 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5813 Rename from tui_display_reg_element_at_line.
5814 (tui_data_window::display_registers_from_line): Update.
5815 * tui/tui-data.h (struct tui_data_window)
5816 <display_reg_element_at_line>: New method.
5817
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-regs.h (tui_display_registers_from)
5821 (tui_display_registers_from_line): Don't declare.
5822 * tui/tui-windata.c (tui_data_window::display_all_data)
5823 (tui_data_window::refresh_all)
5824 (tui_data_window::do_scroll_vertical): Update.
5825 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5826 from tui_display_registers_from.
5827 (tui_display_reg_element_at_line): Update.
5828 (tui_data_window::display_registers_from_line): Rename from
5829 tui_display_registers_from_line.
5830 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5831 display_registers_from_line>: New methods.
5832
5833 2019-07-17 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5836 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5837 from tui_erase_data_content.
5838 (tui_data_window::display_all_data)
5839 (tui_data_window::refresh_all)
5840 (tui_data_window::do_scroll_vertical): Update.
5841 * tui/tui-regs.c (tui_show_registers): Update.
5842 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5843 New method.
5844
5845 2019-07-17 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5848 declare.
5849 * tui/tui-windata.c
5850 (tui_data_window::delete_data_content_windows): Rename from
5851 tui_delete_data_content_windows.
5852 (tui_data_window::display_all_data)
5853 (tui_data_window::do_scroll_vertical): Update.
5854 * tui/tui-data.h (struct tui_data_window)
5855 <delete_data_content_windows>: New method.
5856
5857 2019-07-17 Tom Tromey <tom@tromey.com>
5858
5859 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5860 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5861
5862 2019-07-17 Tom Tromey <tom@tromey.com>
5863
5864 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5865 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5866 from tui_display_all_data.
5867 * tui/tui-win.c
5868 (tui_data_window::do_make_visible_with_new_height): Update.
5869 * tui/tui-regs.c (tui_show_registers): Update.
5870 * tui/tui-layout.c (tui_set_layout): Update.
5871 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5872 method.
5873
5874 2019-07-17 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5877 * tui/tui-windata.c (tui_display_data_from): Remove.
5878 (tui_data_window::refresh_all): Update.
5879
5880 2019-07-17 Tom Tromey <tom@tromey.com>
5881
5882 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5883 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5884 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5885 tui_display_registers_from_line.
5886 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5887 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5888 "force_display" parameter.
5889
5890 2019-07-17 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5893 declare.
5894 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5895 Rename from tui_first_reg_element_no_inline.
5896 (tui_display_reg_element_at_line)
5897 (tui_display_registers_from_line): Update.
5898 * tui/tui-data.h (struct tui_data_window)
5899 <first_reg_element_no_inline>: New method.
5900
5901 2019-07-17 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui-windata.c (tui_display_data_from)
5904 (tui_data_window::do_scroll_vertical): Update.
5905 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5906 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5907 Rename from tui_line_from_reg_element_no.
5908 (tui_display_registers_from_line): Update.
5909 * tui/tui-data.h (struct tui_data_window)
5910 <line_from_reg_element_no>: New method.
5911
5912 2019-07-17 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5915 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5916 tui_last_regs_line_no.
5917 (tui_display_reg_element_at_line)
5918 (tui_display_registers_from_line): Update.
5919 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5920 method.
5921
5922 2019-07-17 Tom Tromey <tom@tromey.com>
5923
5924 PR tui/24722:
5925 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5926 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5927 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5928 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5929 (tui_update_breakpoint_info): Likewise.
5930 * tui/tui-hooks.c (tui_event_create_breakpoint)
5931 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5932 Update.
5933
5934 2019-07-17 Tom Tromey <tom@tromey.com>
5935
5936 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5937
5938 2019-07-17 Tom Tromey <tom@tromey.com>
5939
5940 * tui/tui-winsource.c (tui_update_source_window_as_is)
5941 (tui_update_source_windows_with_addr): Update.
5942 * tui/tui-source.h (tui_set_source_content)
5943 (tui_show_symtab_source): Add "win_info" parameter.
5944 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5945 parameter.
5946 (tui_show_symtab_source): Likewise.
5947
5948 2019-07-17 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-wingeneral.c
5951 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5952
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5956 (struct tui_cmd_window) <can_scroll>: New method.
5957 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5958 method.
5959
5960 2019-07-17 Tom Tromey <tromey@adacore.com>
5961
5962 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5963 do_field_signed>: Rename. Change type of "value".
5964 * ui-out.c (ui_out::field_signed): Rename from field_int.
5965 Change type of "value".
5966 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5967 type of "value".
5968 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5969 do_field_int. Change type of "value".
5970 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5971 do_field_int. Change type of "value".
5972 * tracepoint.c (trace_status_mi, tfind_1)
5973 (print_one_static_tracepoint_marker): Update.
5974 * thread.c (print_thread_info_1, print_selected_thread_frame):
5975 Update.
5976 * stack.c (print_frame, print_frame_info): Update.
5977 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5978 Update.
5979 * source.c (print_source_lines_base): Update.
5980 * skip.c (info_skip_command): Update.
5981 * record-btrace.c (btrace_ui_out_decode_error)
5982 (btrace_call_history_src_line): Update.
5983 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5984 Update.
5985 * progspace.c (print_program_space): Update.
5986 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5987 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5988 do_field_int. Change type of "value".
5989 * mi/mi-out.c (mi_ui_out::do_table_begin)
5990 (mi_ui_out::do_table_header): Update.
5991 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5992 type of "value".
5993 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5994 (mi_cmd_data_list_changed_registers, output_register)
5995 (mi_cmd_data_read_memory, mi_load_progress)
5996 (mi_cmd_trace_frame_collected): Update.
5997 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5998 Update.
5999 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6000 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6001 (mi_cmd_var_list_children, varobj_update_one): Update.
6002 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6003 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6005 * inferior.c (print_inferior): Update.
6006 * gdb_bfd.c (print_one_bfd): Update.
6007 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6008 Update.
6009 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6010 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6011 do_field_int. Change type of "value".
6012 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6013 do_field_int. Change type of "value".
6014 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6015 (print_one_breakpoint_location, print_it_catch_fork)
6016 (print_one_catch_fork, print_it_catch_vfork)
6017 (print_one_catch_vfork, print_it_catch_solib)
6018 (print_it_catch_exec, print_it_ranged_breakpoint)
6019 (print_mention_watchpoint, print_mention_masked_watchpoint)
6020 (bkpt_print_it, update_static_tracepoint): Update.
6021 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6022 * break-catch-syscall.c (print_it_catch_syscall): Update.
6023 * ada-tasks.c (print_ada_task_info): Update.
6024 * ada-lang.c (print_it_exception, print_mention_exception):
6025 Update.
6026
6027 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6028
6029 PR breakpoints/24541
6030 * gdbarch.c: Regenerate.
6031 * gdbarch.h: Regenerate.
6032 * gdbarch.sh: Adjust return type and parameter types for
6033 'stap_adjust_register'.
6034 (i386_stap_adjust_register): Adjust signature and return new
6035 register name.
6036 * stap-probe.c (stap_parse_register_operand): Adjust use of
6037 'gdbarch_stap_adjust_register'.
6038
6039 2019-07-17 Tom Tromey <tromey@adacore.com>
6040
6041 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6042 declare VEC.
6043 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6044 std::vector.
6045 (struct s390_process_info): Add initializers.
6046 (s390_add_process): Use new.
6047 (s390_linux_nat_target::low_forget_process): Use delete.
6048 (s390_linux_nat_target::low_new_fork)
6049 (s390_linux_nat_target::stopped_by_watchpoint)
6050 (s390_linux_nat_target::low_prepare_to_resume)
6051 (s390_linux_nat_target::insert_watchpoint)
6052 (s390_linux_nat_target::insert_hw_breakpoint)
6053 (s390_linux_nat_target::remove_watchpoint)
6054 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6055
6056 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6057
6058 * aarch64-fbsd-nat.c: Include regcache.h.
6059 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6060 argument.
6061 (aarch64_fbsd_nat_target::fetch_registers)
6062 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6063 variable.
6064 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6065
6066 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6067
6068 * fbsd-nat.c: Include gdbarch.h.
6069
6070 2019-07-15 Tom Tromey <tromey@adacore.com>
6071
6072 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6073
6074 2019-07-15 Tom Tromey <tromey@adacore.com>
6075
6076 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6077 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6078 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6079 * cli-out.c (cli_ui_out::do_field_int): New method.
6080 * ui-out.c (ui_out::field_unsigned): New method.
6081 * symfile.c (generic_load): Use field_unsigned.
6082 (print_transfer_performance): Likewise.
6083 * record-btrace.c (ui_out_field_uint): Remove.
6084 (btrace_call_history_insn_range, btrace_call_history): Use
6085 field_unsigned.
6086 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6087 field_unsigned.
6088 * ui-out.h (class ui_out) <field_unsigned>: New method.
6089 <do_field_unsigned>: Likewise.
6090
6091 2019-07-15 Tom Tromey <tromey@adacore.com>
6092
6093 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6094 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6095 * target.c (flash_erase_command): Use field_string.
6096 * infrun.c (print_signal_received_reason): Use field_string.
6097 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6098 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6099 field_string.
6100 * ada-tasks.c (print_ada_task_info): Use field_string.
6101
6102 2019-07-15 Tom Tromey <tromey@adacore.com>
6103
6104 * target.c (flash_erase_command): Use field_core_addr.
6105 * symfile.c (generic_load): Use field_core_addr.
6106 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6107 Use field_core_addr.
6108 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6109 field_core_addr.
6110
6111 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6114 value if its desired type is smaller than a CORE_ADDR and signed.
6115
6116 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6117
6118 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6119 of changes to field names, and use new is_reference field to
6120 decide if a property is a reference or not.
6121 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6122 field.
6123 (struct dwarf2_property_baton): Update header comment, rename
6124 'referenced_type' to 'property_type' and update comments.
6125 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6126 default property type, store in property baton, update to take
6127 accound of renamed field.
6128 (read_func_scope): Update call to attr_to_dynamic_prop.
6129 (read_array_type): Likewise.
6130 (dwarf2_per_cu_addr_sized_int_type): New function.
6131 (read_subrange_index_type): Move type finding code to
6132 dwarf2_per_cu_addr_sized_int_type.
6133 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6134 (dwarf2_per_cu_addr_type): New function.
6135 (set_die_type): Update calls to attr_to_dynamic_prop.
6136
6137 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * dwarf2read.c (read_subrange_index_type): New function.
6140 (read_subrange_type): Move code into new function and call it.
6141 * gdbtypes.c (create_range_type): Add some asserts.
6142
6143 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6146 update return statements.
6147 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6148 declaration, and update comment to match.
6149 * gdbtypes.c (resolve_dynamic_array): Update call to
6150 dwarf2_evaluate_property to match new return type.
6151
6152 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * valarith.c (value_subscripted_rvalue): Change lowerbound
6155 parameter type from int to LONGEST.
6156 * value.h (value_subscripted_rvalue): Likewise in declaration.
6157
6158 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6159
6160 * cli/cli-utils.c (info_print_command_completer): New function.
6161 * cli/cli-utils.h: Add 'completer.h' include, and forward
6162 declaration for 'struct cmd_list_element'.
6163 (info_print_command_completer): Declare.
6164 * stack.c (_initialize_stack): Add completer for 'info locals' and
6165 'info args'.
6166 * symtab.c (_initialize_symtab): Add completer for 'info
6167 variables' and 'info functions'.
6168 * NEWS: Mention completion for additional info commands.
6169
6170 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6171
6172 * cli/cli-utils.c (extract_info_print_args): Delete.
6173 (extract_arg_maybe_quoted): Delete.
6174 (info_print_options_defs): New variable.
6175 (make_info_print_options_def_group): New function.
6176 (extract_info_print_options): Define new function.
6177 * cli/cli-utils.h (extract_info_print_args): Delete.
6178 (struct info_print_options): New structure.
6179 (extract_info_print_options): Declare new function.
6180 * stack.c (info_locals_command): Update to use new
6181 extract_info_print_options, also add a header comment.
6182 (info_args_command): Likewise.
6183 * symtab.c (info_variables_command): Likewise.
6184 (info_functions_command): Likewise.
6185
6186 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6187
6188 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6189 to extract string arguments.
6190 * common/common-utils.c (extract_string_maybe_quoted): New function.
6191 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6192
6193 2019-07-11 Tom Tromey <tromey@adacore.com>
6194
6195 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6196 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6197 * top.h (gdbinit): Don't declare.
6198 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6199 into...
6200 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6201 * top.c (gdb_init): Don't call init_cli_cmds.
6202 (gdbinit): Remove.
6203 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6204
6205 2019-07-11 Tom Tromey <tromey@adacore.com>
6206
6207 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6208 after it has been moved.
6209
6210 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * valops.c (value_must_coerce_to_target): Change return type to
6213 bool.
6214 * value.h (value_must_coerce_to_target): Likewise.
6215
6216 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * breakpoint.c (is_hardware_watchpoint): Remove
6219 forward-declaration.
6220 (is_masked_watchpoint): Change return type to bool.
6221 (is_tracepoint): Likewise.
6222 (is_breakpoint): Likewise.
6223 (is_hardware_watchpoint): Likewise.
6224 (is_watchpoint): Likewise.
6225 (is_no_memory_software_watchpoint): Likewise.
6226 (is_catchpoint): Likewise.
6227 (breakpoint_1): Make FILTER parameter's return type bool.
6228 is_masked_watchpoint): Change return type to bool.
6229 (save_breakpoints): Make FILTER parameter's return type bool.
6230 * breakpoint.h (is_breakpoint): Change return type to bool.
6231 (is_watchpoint): Likewise.
6232 (is_catchpoint): Likewise.
6233 (is_tracepoint): Likewise.
6234
6235 2019-07-10 Tom Tromey <tom@tromey.com>
6236
6237 * defs.h: Don't include gdbarch.h.
6238 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6239 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6240 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6241 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6242 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6243 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6244 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6245 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6246 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6247 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6248 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6249 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6250 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6251 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6252 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6253 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6254 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6255 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6256 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6257 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6258 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6259 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6260 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6261 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6262 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6263 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6264 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6265
6266 2019-07-10 Tom Tromey <tromey@adacore.com>
6267
6268 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6269 * breakpoint.c (init_ada_exception_breakpoint): Register as
6270 bp_catchpoint.
6271 (print_one_breakpoint_location, print_one_breakpoint): Use
6272 is_ada_exception_catchpoint.
6273 * ada-lang.c (class ada_catchpoint_location): Pass
6274 bp_loc_software_breakpoint to bp_location constructor.
6275 (is_ada_exception_catchpoint): New function.
6276
6277 2019-07-10 Tom Tromey <tromey@adacore.com>
6278
6279 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6280 VEC.
6281 (struct arm_exidx_entry): New method operator<.
6282 (struct arm_exidx_data) <section_maps>: Change type.
6283 (arm_exidx_data_free): Remove.
6284 (arm_exidx_data_key): Change type. Move lower.
6285 (arm_exidx_new_objfile): Update.
6286 (arm_compare_exidx_entries): Remove.
6287 (arm_find_exidx_entry, _initialize_arm_tdep)
6288
6289 2019-07-10 Tom Tromey <tromey@adacore.com>
6290
6291 * solib-spu.c (ocl_program_data_key): Change type.
6292 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6293 Update.
6294
6295 2019-07-10 Tom Tromey <tromey@adacore.com>
6296
6297 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6298 (struct solib_aix_inferior_data) <library_list>: Change type.
6299 (solib_aix_inferior_data_handle): Change type.
6300 (get_solib_aix_inferior_data): Update.
6301 (solib_aix_free_library_list): Remove.
6302 (library_list_start_library): Update.
6303 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6304 return type.
6305 (solib_aix_get_library_list)
6306 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6307 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6308
6309 2019-07-10 Tom Tromey <tromey@adacore.com>
6310
6311 * solib-dsbt.c (struct dsbt_info): Add initializers.
6312 (solib_dsbt_pspace_data): Change type.
6313 (dsbt_pspace_data_cleanup): Remove.
6314 (get_dsbt_info, _initialize_dsbt_solib): Update.
6315
6316 2019-07-10 Tom Tromey <tromey@adacore.com>
6317
6318 * spu-tdep.c (spu_overlay_data): Change type.
6319 (spu_get_overlay_table, spu_overlay_new_objfile)
6320 (_initialize_spu_tdep): Update.
6321
6322 2019-07-10 Tom Tromey <tromey@adacore.com>
6323
6324 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6325 destructor.
6326 (dbx_objfile_data_key): Change type and declare later.
6327 (DBX_SYMFILE_INFO): Rewrite.
6328 * dbxread.c (dbx_objfile_data_key): Change type.
6329 (dbx_symfile_init): Update.
6330 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6331 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6332 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6333
6334 2019-07-10 Tom Tromey <tromey@adacore.com>
6335
6336 * jit.c (jit_program_space_key): Change type. Move lower.
6337 (get_jit_program_space_data): Update.
6338 (jit_program_space_data_cleanup): Remove.
6339 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6340 Update.
6341 (struct jit_program_space_data): Add initializers.
6342
6343 2019-07-10 Tom Tromey <tromey@adacore.com>
6344
6345 * solib-darwin.c (struct darwin_info): Add initializers.
6346 (solib_darwin_pspace_data): Change type.
6347 (darwin_pspace_data_cleanup): Remove.
6348 (get_darwin_info, _initialize_darwin_solib): Update.
6349
6350 2019-07-10 Tom Tromey <tromey@adacore.com>
6351
6352 * remote-sim.c (struct sim_inferior_data): Add initializers,
6353 constructor, and destructor.
6354 (sim_inferior_data_key): Change type. Move lower.
6355 (check_for_duplicate_sim_descriptor): Update.
6356 (get_sim_inferior_data): Use new. Update.
6357 (~sim_inferior_data_cleanup): Rename from
6358 sim_inferior_data_cleanup. Simplify.
6359 (gdbsim_close_inferior, simulator_command)
6360 (sim_command_completer, _initialize_remote_sim): Update.
6361 (next_pid, INITIAL_PID): Move earlier.
6362
6363 2019-07-10 Tom Tromey <tromey@adacore.com>
6364
6365 * python/python-internal.h (create_thread_object): Return
6366 gdbpy_ref.
6367 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6368 * python/py-inferior.c (struct threadlist_entry): Add
6369 constructor.
6370 <thread_obj>: Now a gdbpy_ref.
6371 (thread_to_thread_object): Update.
6372 (add_thread_object): Use new.
6373 (delete_thread_object): Use delete.
6374 (infpy_threads): Update.
6375 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6376 GIL.
6377
6378 2019-07-10 Tom Tromey <tromey@adacore.com>
6379
6380 * valops.c (value_cast): Specialize error message for Ada.
6381
6382 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6383
6384 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6385
6386 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6389 bpstat_should_step): Return bool, adjust comments.
6390 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6391 bpstat_should_step): Likewise.
6392
6393 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6394
6395 * features/Makefile: Use feature target descriptions for Arm.
6396 * features/arm/arm-core.c: Generate new file.
6397 * features/arm/arm-fpa.c: Likewise.
6398 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6399 * features/arm/arm-m-profile.c: Likewise.
6400 * features/arm/arm-vfpv2.c: Likewise.
6401 * features/arm/arm-vfpv3.c: Likewise.
6402 * features/arm/xscale-iwmmxt.c: Likewise.
6403 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6404
6405 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6406
6407 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6408 ptrace earlier.
6409
6410 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6411
6412 * features/aarch64-pauth.c: Regenerate.
6413
6414 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6417 bool.
6418 (bpstat_what): Use false instead of 0.
6419
6420 2019-07-09 Pedro Alves <palves@redhat.com>
6421
6422 * break-catch-throw.c (is_exception_catchpoint): New.
6423 * breakpoint.c (print_one_breakpoint_location): New parameter
6424 'raw_loc'. Handle it. Use
6425 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6426 looking at the breakpoint's type.
6427 (print_one_breakpoint): If handling "maint info breakpoints", also
6428 print locations of exception catchpoints.
6429 * breakpoint.h (is_exception_catchpoint): Declare.
6430
6431 2019-07-09 Pedro Alves <palves@redhat.com>
6432
6433 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6434 "addr" field.
6435 (allocate_location_exception_catchpoint): New.
6436 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6437 (initialize_throw_catchpoint_ops): Install
6438 allocate_location_exception_catchpoint as allocate_location
6439 method.
6440 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6441 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6442 bp_loc_other.
6443 (breakpoint_address_is_meaningful): Delete.
6444 (bl_address_is_meaningful): New.
6445 (breakpoint_locations_match): Adjust comment.
6446 (bp_location_from_bp_type): New, factored out of...
6447 (bp_location::bp_location(breakpoint *)): ... this.
6448 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6449 factored out of...
6450 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6451 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6452 breakpoint_address_is_meaningful.
6453 (bp_locations_compare): Adjust comment.
6454 (update_global_location_list): Use bl_address_is_meaningful
6455 instead of breakpoint_address_is_meaningful.
6456 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6457 explicit.
6458 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6459 * python/py-breakpoint.c (bppy_get_location): No longer check
6460 whether location is null.
6461
6462 2019-07-09 Pedro Alves <palves@redhat.com>
6463
6464 PR c++/15468
6465 * breakpoint.c (print_one_breakpoint_location): Remove
6466 single-location assert.
6467
6468 2019-07-09 Tom Tromey <tom@tromey.com>
6469
6470 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6471 * configure: Rebuild.
6472 * configure.ac: Change common to gdbsupport.
6473 * gdbsupport: Rename from common.
6474 * acinclude.m4: Change common to gdbsupport.
6475 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6476 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6477 gdbsupport.
6478 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6479 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6480 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6481 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6482 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6483 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6484 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6485 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6486 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6487 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6488 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6489 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6490 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6491 coff-pe-read.c, command.h, compile/compile-c-support.c,
6492 compile/compile-c.h, compile/compile-cplus-symbols.c,
6493 compile/compile-cplus-types.c, compile/compile-cplus.h,
6494 compile/compile-loc2c.c, compile/compile.c, completer.c,
6495 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6496 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6497 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6498 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6499 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6500 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6501 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6502 features/aarch64-core.c, features/aarch64-fpu.c,
6503 features/aarch64-pauth.c, features/aarch64-sve.c,
6504 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6505 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6506 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6507 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6508 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6509 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6510 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6511 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6512 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6513 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6514 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6515 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6516 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6517 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6518 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6519 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6520 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6521 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6522 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6523 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6524 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6525 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6526 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6527 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6528 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6529 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6530 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6531 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6532 minsyms.c, mips-linux-tdep.c, namespace.h,
6533 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6534 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6535 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6536 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6537 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6538 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6539 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6540 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6541 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6542 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6543 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6544 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6545 procfs.c, producer.c, progspace.h, psymtab.h,
6546 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6547 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6548 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6549 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6550 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6551 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6552 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6553 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6554 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6555 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6556 target-memory.c, target.c, target.h, target/waitstatus.c,
6557 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6558 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6559 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6560 unittests/array-view-selftests.c,
6561 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6562 unittests/common-utils-selftests.c,
6563 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6564 unittests/format_pieces-selftests.c,
6565 unittests/function-view-selftests.c,
6566 unittests/lookup_name_info-selftests.c,
6567 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6568 unittests/mkdir-recursive-selftests.c,
6569 unittests/observable-selftests.c,
6570 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6571 unittests/parse-connection-spec-selftests.c,
6572 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6573 unittests/scoped_fd-selftests.c,
6574 unittests/scoped_mmap-selftests.c,
6575 unittests/scoped_restore-selftests.c,
6576 unittests/string_view-selftests.c, unittests/style-selftests.c,
6577 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6578 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6579 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6580 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6581 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6582 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6583
6584 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6587 bool value.
6588 (decode_digits_ordinary): Set explicit_line field in sal.
6589 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6590 symtab_and_line that was set on an explicit line number in
6591 assembler code. Do always update the recorded symtab and line if
6592 we do skip the prologue.
6593
6594 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * breakpoint.c (set_breakpoint_location_function): Remove
6597 explicit_loc parameter.
6598 (momentary_breakpoint_from_master): Update call to
6599 set_breakpoint_location_function.
6600 (add_location_to_breakpoint): Likewise.
6601
6602 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6605 required features based on default bfd type when no specific bfd
6606 is present.
6607
6608 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6609
6610 * NEWS: Mention that GDB printf and eval commands can now print
6611 C-style and Ada-style convenience var strings without
6612 calling the inferior.
6613 * printcmd.c (printf_c_string): Locally print GDB internal var
6614 instead of transiting via the inferior.
6615 (printf_wide_c_string): Likewise.
6616
6617 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6618
6619 PR breakpoints/25011
6620 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6621
6622 2019-07-04 Tom Tromey <tom@tromey.com>
6623
6624 PR tui/24724:
6625 * tui/tui-winsource.c (tui_clear_source_content): Update.
6626 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6627 (tui_update_breakpoint_info): Update.
6628 (tui_set_exec_info_content): Update.
6629 * tui/tui-source.c (tui_set_source_content_nil): Update.
6630 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6631 has_break.
6632 * tui/tui-data.h (enum tui_bp_flag): New.
6633 (tui_bp_flags): New enum flags type.
6634 (struct tui_source_element) <break_mode>: Change type. Rename
6635 from has_break.
6636 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6637 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6638 constants.
6639 * tui/tui-winsource.h: Fix comment.
6640
6641 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6642
6643 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6644 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6645 (store_fpregs_to_thread)
6646 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6647 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6648 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6649 (IWMMXT_REGS_SIZE): Add define.
6650 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6651 (fetch_vfp_regs, store_vfp_regs)
6652 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6653 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6654
6655 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6656
6657 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6658 defines.
6659 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6660 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6661 (ARM_INT_REGISTER_SIZE): ...to this.
6662 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6663 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6664 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6665 (arm_linux_collect_gregset, supply_nwfpe_register)
6666 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6667 defines.
6668 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6669 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6670 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6671 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6672 (arm_return_in_memory, arm_store_return_value)
6673 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6674 (arm_record_ld_st_multiple): Likewise.
6675 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6676 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6677
6678 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6679
6680 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6681 AARCH64_DISPLACED_MODIFIED_INSNS.
6682 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6683 (aarch64_displaced_step_copy_insn): Likewise.
6684 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6685 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6686 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6687 ARM_DISPLACED_MODIFIED_INSNS.
6688 * arm-tdep.c (arm_gdbarch_init): Likewise.
6689 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6690 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6691 (struct arm_displaced_step_closure): Use
6692 ARM_DISPLACED_MODIFIED_INSNS.
6693
6694 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6695
6696 * features/Makefile: Remove unused xml files.
6697 * features/aarch64.xml: Remove.
6698 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6699 * features/i386/amd64-avx-avx512.xml: Remove.
6700 * features/i386/amd64-avx-linux.xml: Remove.
6701 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6702 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6703 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6704 * features/i386/amd64-avx-mpx.xml: Remove.
6705 * features/i386/amd64-avx.xml: Remove.
6706 * features/i386/amd64-linux.xml: Remove.
6707 * features/i386/amd64-mpx-linux.xml: Remove.
6708 * features/i386/amd64-mpx.xml: Remove.
6709 * features/i386/amd64.xml: Remove.
6710 * features/i386/i386-avx-avx512-linux.xml: Remove.
6711 * features/i386/i386-avx-avx512.xml: Remove.
6712 * features/i386/i386-avx-linux.xml: Remove.
6713 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6714 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6715 * features/i386/i386-avx-mpx-linux.xml: Remove.
6716 * features/i386/i386-avx-mpx.xml: Remove.
6717 * features/i386/i386-avx.xml: Remove.
6718 * features/i386/i386-linux.xml: Remove.
6719 * features/i386/i386-mmx-linux.xml: Remove.
6720 * features/i386/i386-mmx.xml: Remove.
6721 * features/i386/i386-mpx-linux.xml: Remove.
6722 * features/i386/i386-mpx.xml: Remove.
6723 * features/i386/i386.xml: Remove.
6724 * features/i386/x32-avx-avx512-linux.xml: Remove.
6725 * features/i386/x32-avx-linux.xml: Remove.
6726 * features/i386/x32-linux.xml: Remove.
6727
6728 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6729
6730 * regformats/aarch64.dat: Remove.
6731 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6732 * regformats/i386/amd64-avx-linux.dat: Remove.
6733 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6734 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6735 * regformats/i386/amd64-linux.dat: Remove.
6736 * regformats/i386/amd64-mpx-linux.dat: Remove.
6737 * regformats/i386/amd64.dat: Remove.
6738 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6739 * regformats/i386/i386-avx-linux.dat: Remove.
6740 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6741 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6742 * regformats/i386/i386-linux.dat: Remove.
6743 * regformats/i386/i386-mmx-linux.dat: Remove.
6744 * regformats/i386/i386-mpx-linux.dat: Remove.
6745 * regformats/i386/i386.dat: Remove.
6746 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6747 * regformats/i386/x32-avx-linux.dat: Remove.
6748 * regformats/i386/x32-linux.dat: Remove.
6749
6750 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6751
6752 * aarch64-tdep.c: Remove xml self tests.
6753 * amd64-linux-tdep.c: Likewise.
6754 * amd64-tdep.c: Likewise.
6755 * i386-linux-tdep.c: Likewise.
6756 * i386-tdep.c: Likewise.
6757
6758 2019-07-03 Pedro Alves <palves@redhat.com>
6759
6760 PR cli/24732
6761 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6762 (pipe_cmd_option_defs): New.
6763 (make_pipe_cmd_options_def_group): New.
6764 (pipe_command): Use gdb::option::process_options.
6765 (pipe_command_completer): New function.
6766 (_initialize_cli_cmds): Install completer for "pipe" command.
6767
6768 2019-07-03 Pedro Alves <palves@redhat.com>
6769
6770 * cli/cli-option.c (union option_value) <string>: New field.
6771 (struct option_def_and_value): Add ctor, move ctor, dtor and
6772 use DISABLE_COPY_AND_ASSIGN.
6773 (option_def_and_value::clear_value): New.
6774 (parse_option, save_option_value_in_ctx, get_val_type_str)
6775 (add_setshow_cmds_for_options): Handle var_string.
6776 * cli-option.h (union option_def::var_address) <string>: New
6777 field.
6778 (struct string_option_def): New.
6779 * maint-test-options.c (struct test_options_opts): Add default
6780 ctor and use DISABLE_COPY_AND_ASSIGN.
6781 <string_opt>: New field.
6782 (test_options_opts::~test_options_opts): New.
6783 (test_options_opts::dump): Also dump "-string".
6784 (test_options_option_defs): Install "string.
6785
6786 2019-07-03 Pedro Alves <palves@redhat.com>
6787
6788 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6789 option_value with a null enumeration.
6790 (complete_options): Save the option values in the context.
6791 (save_option_value_in_ctx): New, factored out from ...
6792 (process_options): ... here.
6793 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6794 of the function.
6795 * maint-test-options.c (test_options_opts::dump): New, factored
6796 out from ...
6797 (maintenance_test_options_command_mode): ... here.
6798 (maintenance_test_options_command_completion_result): Delete.
6799 (maintenance_test_options_command_completion_text): Update
6800 comment.
6801 (maintenance_show_test_options_completion_result): Change
6802 prototype. Just print
6803 maintenance_test_options_command_completion_text.
6804 (save_completion_result): New.
6805 (maintenance_test_options_completer_mode): Pass options context to
6806 complete_options, and then save a dump.
6807 (_initialize_maint_test_options): Use add_cmd to install "maint
6808 show test-options-completion-result".
6809
6810 2019-07-03 Pedro Alves <palves@redhat.com>
6811
6812 * NEWS (New commands): Mention "with" and "maint with".
6813 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6814 (with_command, with_command_completer): New.
6815 (pipe_command): Adjust to new repeat_previous
6816 interface.
6817 (_initialize_cli_cmds): Install the "with" command and its "w"
6818 alias.
6819 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6820 declarations.
6821 * cli/cli-setshow.c (parse_cli_var_uinteger)
6822 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6823 argument strings for all var_types.
6824 (get_setshow_command_value_string): New, factored out from ...
6825 (do_show_command): ... this.
6826 * cli/cli-setshow.h: Include <string>.
6827 (get_setshow_command_value_string): Declare.
6828 * command.h (repeat_previous): Now returns const char *. Adjust
6829 comment.
6830 * maint.c: Include "cli/cli-cmds.h".
6831 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6832 (_initialize_maint_cmds): Register the "maintenance with" command.
6833 * top.c (repeat_previous): Move bits from pipe_command here:
6834 Return the saved command line, if any; error out if there's no
6835 command to relaunch.
6836
6837 2019-07-03 Pedro Alves <palves@redhat.com>
6838
6839 * NEWS (New commands): Mention "maint set/show test-settings"
6840 instead of "maint test-settings".
6841 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6842 (maintenance_test_settings_set_list): Rename to ...
6843 (maintenance_set_test_settings_list): ... this.
6844 (maintenance_test_settings_show_list): Rename to ...
6845 (maintenance_show_test_settings_list): ... this.
6846 (maintenance_test_settings_cmd): Delete.
6847 (maintenance_test_settings_set_cmd): ...
6848 (maintenance_set_test_settings_cmd): ... this.
6849 (maintenance_test_settings_show_cmd): ...
6850 (maintenance_show_test_settings_cmd): ... this.
6851 (maintenance_test_settings_show_value_cmd):
6852 (maintenance_show_test_settings_value_cmd): ... this.
6853 (_initialize_maint_test_settings): No longer install the "maint
6854 test-settings" prefix command. Rename "maint test-settings set"
6855 to "maint set test-settings", and "maint test-settings show" to
6856 "maint show test-settings". Adjust all subcommands.
6857
6858 2019-07-03 Pedro Alves <palves@redhat.com>
6859
6860 * maint-test-settings.c: Fix file's intro comment. Replace all
6861 references to "test-options" with references to "test-settings",
6862 in comments.
6863
6864 2019-07-03 Pedro Alves <palves@redhat.com>
6865
6866 * maint-test-settings.c (maintenance_test_settings_xxx)
6867 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6868 New.
6869 (maintenance_test_settings_enums): Use them.
6870 (maintenance_test_settings_enum): Default to
6871 maintenance_test_settings_xxx.
6872 (_initialize_maint_test_settings): Initialize
6873 MAINTENANCE_TEST_SETTINGS_FILENAME.
6874
6875 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * breakpoint.h (remove_breakpoints_inf): Change return type to
6878 void, move function documentation here.
6879 * breakpoint.c (remove_breakpoints_inf): Change return type to
6880 void, move function documentation to header.
6881
6882 2019-07-02 Pedro Alves <palves@redhat.com>
6883
6884 * NEWS (Completion improvements): Mention "info threads".
6885 * thread.c (struct info_threads_opts, info_threads_option_defs)
6886 (make_info_threads_options_def_group): New.
6887 (info_threads_command): Use gdb::option::process_options.
6888 (info_threads_command_completer): New.
6889 (_initialize_thread): Use gdb::option::build_help to build the
6890 help text for "info threads".
6891
6892 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6893
6894 * defs.h (generic_load): Move from here...
6895 * symfile.h (generic_load): ... to here. Rename name parameter
6896 to args.
6897 * symfile.c (generic_load): Add comment.
6898
6899 2019-07-01 Tom Tromey <tromey@adacore.com>
6900
6901 * dwarf2read.c
6902 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6903 declaration of without_params. Fix formatting.
6904
6905 2019-07-01 Tom Tromey <tromey@adacore.com>
6906
6907 * ada-exp.y (find_primitive_type): Update.
6908 * ada-lang.h (ada_lookup_symbol): Update.
6909 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6910 parameter.
6911 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6912
6913 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6914
6915 PR breakpoints/24541
6916 * gdbarch.c: Regenerate.
6917 * gdbarch.h: Regenerate.
6918 * gdbarch.sh: Add 'stap_adjust_register'.
6919 * i386-tdep.c: Include '<unordered_set>'.
6920 (i386_stap_adjust_register): New function.
6921 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6922 * stap-probe.c (stap_parse_register_operand): Call
6923 'gdbarch_stap_adjust_register'.
6924
6925 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6926
6927 PR python/24742
6928 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6929 * python/python.c (do_start_initialization): Use 'xmalloc'
6930 instead of 'PyMem_Malloc'.
6931
6932 2019-06-28 Tom Tromey <tromey@adacore.com>
6933
6934 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6935 for Ada.
6936
6937 2019-06-27 Tom Tromey <tromey@adacore.com>
6938
6939 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6940 objfile_key.
6941 (arm_find_mapping_symbol, arm_record_special_symbol)
6942 (_initialize_arm_tdep): Update.
6943 (arm_objfile_data_free): Remove.
6944
6945 2019-06-27 Tom Tromey <tromey@adacore.com>
6946
6947 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6948 to cp_print_static_field.
6949
6950 2019-06-26 Tom Tromey <tromey@adacore.com>
6951
6952 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6953 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6954 declare.
6955
6956 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6957
6958 * features/aarch64-core.c (create_feature_aarch64_core):
6959 Regenerate.
6960 * features/aarch64-core.xml: Add cpsr flags.
6961
6962 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6963
6964 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6965 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6966
6967 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6968
6969 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6970 field.
6971 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6972 use.
6973 (arm_record_special_symbol): Don't insert new symbol in sorted
6974 position, push it at the end.
6975
6976 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6977
6978 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6979 (arm_mapping_symbol_s): Remove.
6980 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6981 (arm_mapping_symbol_vec): New typedef.
6982 (struct arm_per_objfile): Add constructor.
6983 <section_maps>: Change type to
6984 std::unique_ptr<arm_mapping_symbol_vec[]>.
6985 (arm_compare_mapping_symbols): Remove.
6986 (arm_find_mapping_symbol): Adjust to section_maps type change.
6987 (arm_objfile_data_free): Call delete on arm_per_objfile.
6988 (arm_record_special_symbol): Adjust to section_maps type change.
6989 Allocate arm_per_objfile with new.
6990
6991 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6992
6993 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6994 with the command prefix.
6995
6996 2019-06-25 Tom Tromey <tom@tromey.com>
6997
6998 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6999 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7000
7001 2019-06-25 Tom Tromey <tom@tromey.com>
7002
7003 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7004 type.
7005 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7006 protected.
7007
7008 2019-06-25 Tom Tromey <tom@tromey.com>
7009
7010 * tui/tui-winsource.c
7011 (tui_source_window_base::set_is_exec_point_at): Add check against
7012 LOA_ADDRESS.
7013
7014 2019-06-25 Tom Tromey <tom@tromey.com>
7015
7016 * tui/tui-source.c (tui_set_source_content): Don't check before
7017 xfree.
7018 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7019
7020 2019-06-25 Tom Tromey <tom@tromey.com>
7021
7022 * tui/tui-winsource.h (tui_update_source_window_as_is)
7023 (tui_alloc_source_buffer, tui_line_is_displayed)
7024 (tui_addr_is_displayed): Change type of win_info.
7025 * tui/tui-winsource.c (tui_update_source_window_as_is)
7026 (tui_clear_source_content, tui_show_source_line)
7027 (tui_show_source_content, tui_source_window_base::refill)
7028 (tui_source_window_base::set_is_exec_point_at)
7029 (tui_source_window_base::set_is_exec_point_at)
7030 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7031 (tui_alloc_source_buffer, tui_line_is_displayed)
7032 (tui_addr_is_displayed): Change type of win_info. Update.
7033 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7034 (tui_source_window_base::do_make_visible_with_new_height):
7035 Update.
7036 * tui/tui-source.c (tui_set_source_content)
7037 (tui_set_source_content_nil)
7038 (tui_source_window::do_scroll_vertical): Update.
7039 * tui/tui-layout.c (show_layout): Update.
7040 * tui/tui-disasm.c (tui_set_disassem_content)
7041 (tui_disasm_window::do_scroll_vertical): Update.
7042 * tui/tui-data.h (tui_win_content): Remove.
7043 (struct tui_gen_win_info) <content, content_size>: Remove.
7044 (struct tui_source_element): Add initializers and destructor.
7045 (union tui_which_element, struct tui_win_element): Remove.
7046 (struct tui_source_window_base) <content>: New field.
7047 (struct tui_data_window): Remove destructor.
7048 (tui_alloc_content, tui_free_win_content)
7049 (tui_free_all_source_wins_content): Don't declare.
7050 * tui/tui-data.c (tui_initialize_static_data): Update.
7051 (init_content_element, tui_alloc_content): Remove.
7052 (~tui_gen_win_info): Update.
7053 (~tui_data_window, tui_free_all_source_wins_content)
7054 (tui_free_win_content, free_content, free_content_elements):
7055 Remove.
7056
7057 2019-06-25 Tom Tromey <tom@tromey.com>
7058
7059 * tui/tui-winsource.h (tui_clear_source_content)
7060 (tui_erase_source_content, tui_show_source_content): Change type
7061 of win_info.
7062 * tui/tui-winsource.c (tui_clear_source_content)
7063 (tui_erase_source_content, tui_show_source_content): Change type
7064 of win_info.
7065 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7066 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7067 win_info.
7068 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7069 win_info.
7070 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7071
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-winsource.c (tui_clear_source_content)
7075 (tui_source_window_base::set_is_exec_point_at): Update.
7076 * tui/tui-source.c (tui_set_source_content_nil): Update.
7077 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7078 a bool.
7079 * tui/tui-data.c (init_content_element): Update.
7080
7081 2019-06-25 Tom Tromey <tom@tromey.com>
7082
7083 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7084 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7085 * tui/tui-layout.c (init_and_make_win): Update.
7086 * tui/tui.h (enum tui_win_type): Update.
7087 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7088 tui_win_is_auxillary.
7089 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7090 tui_win_is_auxillary.
7091
7092 2019-06-25 Tom Tromey <tom@tromey.com>
7093
7094 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7095 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7096 (tui_delete_data_content_windows, tui_display_all_data)
7097 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7098 Update.
7099 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7100 * tui/tui-regs.c (tui_last_regs_line_no)
7101 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7102 (tui_show_registers): Update.
7103 (tui_show_register_group): Return void. Update.
7104 (tui_display_registers_from, tui_display_reg_element_at_line)
7105 (tui_display_registers_from_line, tui_check_register_values):
7106 Update.
7107 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7108 member.
7109 (struct tui_data_window) <regs_content>: Now a std::vector.
7110 <regs_content_count>: Remove.
7111 (tui_add_content_elements, tui_free_data_content): Don't declare.
7112 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7113 (init_content_element): Remove DATA_WIN case. Add assert.
7114 (tui_add_content_elements): Remove.
7115 (tui_data_window): Update.
7116 (tui_free_data_content): Remove.
7117 (free_content_elements): Remove DATA_WIN case.
7118
7119 2019-06-25 Tom Tromey <tom@tromey.com>
7120
7121 * tui/tui-data.c (tui_data_item_window): Update.
7122 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7123 * tui/tui-windata.c (tui_display_all_data)
7124 (tui_display_data_from_line): Update.
7125 (tui_check_data_values): Remove.
7126 * tui/tui-regs.c (tui_show_register_group)
7127 (tui_display_reg_element_at_line): Update.
7128 * tui/tui-hooks.c (tui_register_changed)
7129 (tui_refresh_frame_and_register_information): Call
7130 tui_check_register_values.
7131 * tui/tui-data.h (struct tui_data_window) <data_content,
7132 data_content_count, data_type>: Remove.
7133 (enum tui_data_type): Remove.
7134
7135 * tui/tui-data.c (tui_data_window::clear_detail)
7136 (~tui_data_window): Update.
7137
7138 2019-06-25 Tom Tromey <tom@tromey.com>
7139
7140 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7141 declare.
7142 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7143 Rename from tui_first_data_item_displayed. Update.
7144 (tui_data_window::refresh_all)
7145 (tui_data_window::do_scroll_vertical): Update.
7146 * tui/tui-data.h (struct tui_data_window)
7147 <first_data_item_displayed>: Declare new method.
7148
7149 2019-06-25 Tom Tromey <tom@tromey.com>
7150
7151 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7152 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7153 contents...
7154 (tui_initialize_static_data): ...here.
7155
7156 2019-06-25 Tom Tromey <tom@tromey.com>
7157
7158 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7159 (tui_display_registers_from, tui_check_register_values): Update.
7160 (tui_display_register): Remove win_info parameter; update.
7161 (tui_get_register): Change type of parameters.
7162 * tui/tui-data.h (struct tui_data_element): Remove.
7163 (union tui_which_element) <data>: Remove.
7164 <data_window>: Change type.
7165 (struct tui_data_item_window): New.
7166 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7167 case. Add assert.
7168 (~tui_data_item_window): New destructor.
7169 (free_content_elements): Remove DATA_ITEM_WIN case.
7170
7171 2019-06-25 Tom Tromey <tom@tromey.com>
7172
7173 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7174 Remove.
7175
7176 2019-06-25 Tom Tromey <tom@tromey.com>
7177
7178 * tui/tui-data.h (struct tui_command_element): Remove.
7179 (union tui_which_element) <command>: Remove.
7180 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7181 assert.
7182 (free_content_elements): Remove CMD_WIN case.
7183
7184 2019-06-25 Tom Tromey <tom@tromey.com>
7185
7186 * tui/tui-layout.c (tui_set_layout): Update.
7187 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7188 * tui/tui-data.c (layout_def): Update.
7189
7190 2019-06-25 Tom Tromey <tom@tromey.com>
7191
7192 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7193 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7194 (tui_source_window_base::set_new_height): Update.
7195 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7196 Update.
7197 (tui_set_locator_fullname, tui_set_locator_info)
7198 (tui_show_frame_info): Update.
7199 * tui/tui-source.c (tui_set_source_content)
7200 (tui_source_is_displayed): Update.
7201 * tui/tui-layout.c (show_source_disasm_command, show_data)
7202 (show_source_or_disasm_and_command): Update.
7203 * tui/tui-disasm.c (tui_set_disassem_content)
7204 (tui_get_begin_asm_address): Update.
7205 * tui/tui-data.h (struct tui_locator_element): Remove.
7206 (union tui_which_element) <locator>: Remove.
7207 (struct tui_locator_window): New.
7208 (tui_locator_win_info_ptr): Change return type.
7209 * tui/tui-data.c (_locator): Change type.
7210 (tui_locator_win_info_ptr): Change return type.
7211 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7212 (tui_alloc_content): Add assert.
7213
7214 2019-06-25 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-winsource.c
7217 (tui_exec_info_window::maybe_allocate_content): New method.
7218 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7219 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7220 (make_source_or_disasm_window): Add cast.
7221 * tui/tui-data.h (union tui_which_element) <simple_string>:
7222 Remove.
7223 (struct tui_source_info): New.
7224 (struct tui_source_window_base) <execution_info>: Change type.
7225 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7226 case, and add assert.
7227 (tui_alloc_content): Add assert.
7228
7229 2019-06-25 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7232 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7233 * tui/tui-data.c (tui_alloc_win_info): Remove.
7234
7235 2019-06-25 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7238 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7239 can_highlight.
7240
7241 2019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7244 make_visible_with_new_height method.
7245 (tui_win_info::make_visible_with_new_height): New method.
7246 (tui_source_window_base::do_make_visible_with_new_height)
7247 (tui_data_window::do_make_visible_with_new_height)
7248 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7249 (make_visible_with_new_height): Remove.
7250 (tui_resize_all, tui_adjust_win_heights): Use
7251 make_visible_with_new_height method.
7252 * tui/tui-data.h (struct tui_win_info)
7253 <do_make_visible_with_new_height, make_visible_with_new_height>:
7254 New methods.
7255 (struct tui_source_window_base, struct tui_data_window)
7256 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7257 methods.
7258
7259 2019-06-25 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7262 method.
7263 (update_tab_width): Call update_tab_width method.
7264 * tui/tui-data.h (struct tui_win_info)
7265 (struct tui_source_window_base) <update_tab_width>: New methods.
7266
7267 2019-06-25 Tom Tromey <tom@tromey.com>
7268
7269 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7270 parameter.
7271 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7272 parameter.
7273 (tui_gen_win_info::make_visible): Update.
7274 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7275 parameter.
7276 * tui/tui-data.h (enum tui_box): New enum.
7277 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7278
7279 2019-06-25 Tom Tromey <tom@tromey.com>
7280
7281 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7282 init_and_make_win for EXEC_INFO_WIN.
7283 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7284 longer inline.
7285 (struct tui_win_info) <~tui_win_info>: Inline.
7286 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7287 Don't declare.
7288 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7289 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7290 Remove.
7291 (tui_initialize_static_data): Update.
7292 (~tui_gen_win_info): Handle more cleanup here.
7293 (~tui_source_window_base): Delete "execution_info".
7294 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7295
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-layout.c (make_command_window): Don't set
7299 can_highlight.
7300 (show_source_disasm_command): Call the reset method.
7301 (show_data): Don't set can_highlight. Call the reset method.
7302 (tui_gen_win_info::reset): Rename from init_gen_win_info
7303 (init_and_make_win): Simplify. Return tui_gen_win_info.
7304 (show_source_or_disasm_and_command): Call the reset method.
7305 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7306 (struct tui_cmd_window): Set can_highlight.
7307
7308 2019-06-25 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7311 from make_visible.
7312 (tui_make_visible, tui_make_invisible): Rewrite.
7313 (tui_win_info::make_visible): Remove.
7314 (tui_source_window_base::make_visible): Update.
7315 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7316 method. Moved from...
7317 (struct tui_win_info) <make_visible>: ...here.
7318
7319 2019-06-25 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-winsource.c
7322 (tui_source_window_base::do_scroll_horizontal): Remove direction
7323 parameter.
7324 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7325 direction parameter.
7326 * tui/tui-win.c (tui_win_info::forward_scroll)
7327 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7328 (tui_win_info::right_scroll): Update.
7329 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7330 direction parameter.
7331 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7332 direction parameter.
7333 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7334 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7335 Remove direction parameter.
7336 (struct tui_source_window_base, struct tui_source_window)
7337 (struct tui_disasm_window, struct tui_data_window)
7338 (struct tui_cmd_window): Update.
7339
7340 2019-06-25 Tom Tromey <tom@tromey.com>
7341
7342 * tui/tui-winsource.h (tui_set_exec_info_content)
7343 (tui_show_exec_info_content, tui_erase_exec_info_content)
7344 (tui_clear_exec_info_content, tui_update_exec_info): Change
7345 argument to tui_source_window_base.
7346 * tui/tui-winsource.c (tui_set_exec_info_content)
7347 (tui_show_exec_info_content, tui_erase_exec_info_content)
7348 (tui_clear_exec_info_content, tui_update_exec_info): Change
7349 argument to tui_source_window_base.
7350
7351 2019-06-25 Tom Tromey <tom@tromey.com>
7352
7353 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7354 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7355
7356 2019-06-25 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7359 check.
7360
7361 2019-06-25 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7364 type to void.
7365 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7366 type to void.
7367 * tui/tui-source.c (tui_set_source_content): Update.
7368 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7369
7370 2019-06-25 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-win.c (window_name_completer, tui_set_focus)
7373 (tui_all_windows_info): Use name method.
7374 * tui/tui-data.h (struct tui_gen_win_info)
7375 (struct tui_source_window, struct tui_disasm_window)
7376 (struct tui_data_window, struct tui_cmd_window) <name>: New
7377 method.
7378 (tui_win_name): Don't declare.
7379 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7380 (tui_win_name): Remove.
7381
7382 2019-06-25 Tom Tromey <tom@tromey.com>
7383
7384 * tui/tui-winsource.h (tui_update_source_window)
7385 (tui_update_source_window_as_is): Change parameter type.
7386 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7387 to be a tui_source_window_base.
7388 (tui_update_source_window_as_is): Likewise.
7389 * tui/tui-win.c (make_visible_with_new_height): Update.
7390
7391 2019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-winsource.c (tui_erase_source_content)
7394 (tui_show_source_content, tui_show_exec_info_content)
7395 (tui_erase_exec_info_content): Use refresh_window method.
7396 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7397 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7398 from tui_refresh_win.
7399 (tui_data_window::refresh_window): New method.
7400 (tui_win_info::refresh, tui_source_window_base::refresh)
7401 (tui_refresh_all): Use refresh_window method.
7402 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7403 method.
7404 * tui/tui-regs.c (tui_display_register): Call refresh_window
7405 method.
7406 * tui/tui-layout.c (show_source_disasm_command)
7407 (show_source_or_disasm_and_command): Call refresh_window method.
7408 * tui/tui-data.h (struct tui_gen_win_info)
7409 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7410 New method.
7411
7412 2019-06-25 Tom Tromey <tom@tromey.com>
7413
7414 * tui/tui.c (tui_rl_other_window, tui_enable)
7415 (tui_is_window_visible, tui_get_command_dimension): Update.
7416 * tui/tui-winsource.c (tui_update_source_window_as_is)
7417 (tui_clear_source_content, tui_erase_source_content)
7418 (tui_show_source_line, tui_source_window_base::refill)
7419 (tui_source_window_base::do_scroll_horizontal)
7420 (tui_source_window_base::set_is_exec_point_at)
7421 (tui_update_breakpoint_info, tui_set_exec_info_content)
7422 (tui_alloc_source_buffer, tui_line_is_displayed)
7423 (tui_addr_is_displayed): Update.
7424 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7425 (tui_check_and_display_highlight_if_needed)
7426 (tui_win_info::make_visible, tui_win_info::refresh)
7427 (tui_refresh_all): Update.
7428 * tui/tui-windata.c (tui_first_data_item_displayed)
7429 (tui_delete_data_content_windows, tui_erase_data_content)
7430 (tui_display_all_data, tui_data_window::refresh_all)
7431 (tui_check_data_values): Update.
7432 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7433 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7434 (tui_win_info::backward_scroll, tui_refresh_all_win)
7435 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7436 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7437 (tui_source_window_base::set_new_height)
7438 (tui_data_window::set_new_height)
7439 (make_invisible_and_set_new_height)
7440 (make_visible_with_new_height, new_height_ok)
7441 (parse_scrolling_args): Update.
7442 * tui/tui-stack.c (tui_show_frame_info): Update.
7443 * tui/tui-source.c (tui_set_source_content)
7444 (tui_set_source_content_nil, tui_source_is_displayed)
7445 (tui_source_window::do_scroll_vertical): Update.
7446 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7447 (tui_display_registers_from, tui_display_reg_element_at_line)
7448 (tui_check_register_values, tui_reg_command): Update.
7449 * tui/tui-layout.c (tui_default_win_height)
7450 (show_source_disasm_command, show_data, init_and_make_win)
7451 (show_source_or_disasm_and_command): Update.
7452 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7453 (tui_redisplay_readline, tui_mld_flush)
7454 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7455 (tui_getc): Update.
7456 * tui/tui-disasm.c (tui_set_disassem_content)
7457 (tui_disasm_window::do_scroll_vertical): Update.
7458 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7459 Now virtual.
7460 (struct tui_win_info): Derive from tui_gen_win_info.
7461 <~tui_win_info>: Mark as override.
7462 <generic>: Remove member.
7463 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7464 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7465 (~tui_data_window, ~tui_win_info)
7466 (tui_free_all_source_wins_content): Update.
7467 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7468
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-layout.c (init_and_make_win): Use new.
7472 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7473 destructor, initializers.
7474 (tui_alloc_generic_win_info): Don't declare.
7475 * tui/tui-data.c (_locator): Add argument to constructor.
7476 (source_win, disasm_win): New globals.
7477 (exec_info): Remove.
7478 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7479 Update.
7480 (tui_alloc_generic_win_info): Remove.
7481 (init_content_element): Use new.
7482 (tui_win_info::tui_win_info): Update.
7483 (free_content_elements) <case DATA_WIN>: Use delete.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7488 * tui/tui-windata.c (tui_first_data_item_displayed)
7489 (tui_delete_data_content_windows): Update.
7490 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7491 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7492 (tui_display_registers_from, tui_check_register_values): Update.
7493 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7494 pointer.
7495 * tui/tui-data.c (init_content_element): Update. Allocate the new
7496 window.
7497 (tui_free_data_content): Update.
7498 (free_content_elements) <case DATA_WIN>: Free the window.
7499
7500 2019-06-25 Tom Tromey <tom@tromey.com>
7501
7502 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7503 Update.
7504 * tui/tui-layout.c (make_command_window)
7505 (show_source_disasm_command, show_data, init_and_make_win)
7506 (show_source_or_disasm_and_command): Update.
7507 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7508 method.
7509 <can_highight, is_highlighted>: Now bool.
7510 (tui_set_win_highlight): Don't declare.
7511 * tui/tui-data.c (tui_set_win_highlight): Remove.
7512
7513 2019-06-25 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-wingeneral.c (make_visible): Remove check of window
7516 type.
7517
7518 2019-06-25 Tom Tromey <tom@tromey.com>
7519
7520 * tui/tui-win.c (tui_win_info::max_height)
7521 (tui_cmd_window::max_height): New methods.
7522 (new_height_ok): Call max_height.
7523 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7524 <max_height>: New method.
7525
7526 2019-06-25 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-win.c (tui_source_window_base::set_new_height)
7529 (tui_data_window::set_new_height): New methods.
7530 (make_invisible_and_set_new_height): Call set_new_height method.
7531 * tui/tui-data.h (struct tui_win_info)
7532 (struct tui_source_window_base, struct tui_data_window)
7533 <set_new_height>: New method.
7534
7535 2019-06-25 Tom Tromey <tom@tromey.com>
7536
7537 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7538 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7539 tui_refresh_data_win.
7540 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7541 method.
7542 (tui_refresh_all_win): Call the refresh_all method.
7543 (tui_set_focus): Likewise.
7544 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7545 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7546 Likewise.
7547
7548 2019-06-25 Tom Tromey <tom@tromey.com>
7549
7550 * tui/tui-winsource.h (tui_refill_source_window)
7551 (tui_set_is_exec_point_at): Don't declare.
7552 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7553 (tui_source_window_base::refill): Rename from
7554 tui_refill_source_window.
7555 (tui_source_window_base::do_scroll_horizontal): Update.
7556 (tui_source_window_base::set_is_exec_point_at): Rename from
7557 tui_set_is_exec_point_at.
7558 (tui_update_all_breakpoint_info): Update.
7559 * tui/tui-stack.c (tui_show_frame_info): Update.
7560 * tui/tui-layout.c (show_data): Add cast.
7561 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7562 * tui/tui-data.h (struct tui_source_window_base) <refill,
7563 set_is_exec_point_at>: New methods.
7564 (tui_source_windows, tui_add_to_source_windows): Update types.
7565 (tui_add_to_source_windows): Remove redundant declaration.
7566 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7567 (tui_source_windows): Change return type.
7568 (tui_clear_source_windows_detail): Update.
7569 (tui_add_to_source_windows): Change type of parameter.
7570 (tui_free_all_source_wins_content): Update.
7571
7572 2019-06-25 Tom Tromey <tom@tromey.com>
7573
7574 * tui/tui-wingeneral.c (tui_win_info::refresh)
7575 (tui_source_window_base::refresh): New methods.
7576 (tui_refresh_all): Call the refresh method.
7577 * tui/tui-data.h (struct tui_win_info)
7578 (struct tui_source_window_base) <refresh>: New method.
7579
7580 2019-06-25 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui.h (tui_is_window_visible): Return bool.
7583 * tui/tui.c (tui_is_window_visible): Return bool.
7584 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7585 (tui_make_visible, tui_make_invisible)
7586 (tui_win_info::make_visible)
7587 (tui_source_window_base::make_visible, make_all_visible)
7588 (tui_make_all_visible, tui_make_all_invisible): Update.
7589 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7590 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7591 bool.
7592 (struct tui_win_info, struct tui_source_window_base)
7593 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7594 * tui/tui-data.c (tui_init_generic_part): Update.
7595
7596 2019-06-25 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7599 (tui_source_window_base::make_visible): New methods.
7600 (make_all_visible): Make method call.
7601 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7602 (struct tui_source_window_base, struct tui_cmd_window): Override
7603 make_visible.
7604 (tui_win_is_source_type): Don't declare.
7605 * tui/tui-data.c (tui_win_is_source_type): Remove.
7606
7607 2019-06-25 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7610 NULL check.
7611
7612 2019-06-25 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7615 Inline constructor. Add initializers for members.
7616 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7617 constructors; now inline in class.
7618
7619 2019-06-25 Tom Tromey <tom@tromey.com>
7620
7621 * tui/tui-regs.c (tui_show_registers): Update.
7622 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7623 bool.
7624 * tui/tui-data.c (tui_data_window::clear_detail)
7625 (tui_data_window): Update.
7626
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-windata.c (tui_display_all_data)
7630 (tui_display_data_from_line, tui_display_data_from)
7631 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7632 Update.
7633 * tui/tui-regs.c (tui_last_regs_line_no)
7634 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7635 (tui_show_registers, tui_show_register_group)
7636 (tui_display_registers_from, tui_display_reg_element_at_line)
7637 (tui_display_registers_from_line, tui_check_register_values)
7638 (tui_reg_next, tui_reg_prev): Update.
7639 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7640 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7641 tui_data_window.
7642 (struct tui_win_info) <detail>: Remove. Add new fields from
7643 tui_data_info.
7644 (TUI_DATA_WIN): Add cast.
7645 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7646 (~tui_data_window): Simplify.
7647
7648 2019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-layout.c (show_source_disasm_command)
7651 (show_source_or_disasm_and_command): Update.
7652 * tui/tui-io.c (update_cmdwin_start_line)
7653 (tui_redisplay_readline): Update.
7654 * tui/tui-data.h (struct tui_command_info): Remove.
7655 (struct tui_win_info) <detail>: Remove command_info member.
7656 (struct tui_data_window) <start_line>: New member, from
7657 tui_command_info.
7658 (TUI_CMD_WIN): Add casts.
7659
7660 2019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-winsource.c (tui_update_source_window)
7663 (tui_refill_source_window)
7664 (tui_source_window_base::do_scroll_horizontal)
7665 (tui_update_breakpoint_info, tui_set_exec_info_content)
7666 (tui_show_exec_info_content, tui_erase_exec_info_content)
7667 (tui_clear_exec_info_content): Update.
7668 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7669 Update.
7670 * tui/tui-win.c (make_invisible_and_set_new_height)
7671 (make_visible_with_new_height): Update.
7672 * tui/tui-source.c (tui_set_source_content)
7673 (tui_show_symtab_source): Update.
7674 * tui/tui-layout.c (extract_display_start_addr)
7675 (show_source_disasm_command, show_data)
7676 (make_source_or_disasm_window)
7677 (show_source_or_disasm_and_command): Update.
7678 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7679 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7680 "gdbarch".
7681 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7682 to tui_source_window_base.
7683 (struct tui_win_info) <detail>: Remove source_info member.
7684 (struct tui_source_window_base) <has_locator>: Inline.
7685 Move contents from tui_source_info; rename has_locator member to
7686 m_has_locator.
7687 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7688 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7689 header file.
7690 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7691 Simplify.
7692 (tui_free_all_source_wins_content): Cast to
7693 tui_source_window_base.
7694
7695 2019-06-25 Tom Tromey <tom@tromey.com>
7696
7697 * tui/tui-win.c (make_invisible_and_set_new_height)
7698 (make_visible_with_new_height): Call has_locator method.
7699 * tui/tui-layout.c (show_source_disasm_command, show_data)
7700 (show_source_or_disasm_and_command): Update for bool change.
7701 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7702 (tui_win_info) <has_locator>: New method.
7703 (struct tui_source_window_base) <has_locator>: New method.
7704 (tui_win_has_locator): Don't declare.
7705 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7706 from tui_win_has_locator.
7707 (tui_source_window_base): Use false, not FALSE.
7708
7709 2019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7712 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7713 clear_detail method directly.
7714 (tui_clear_win_detail): Remove.
7715
7716 2019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7719 "this", not TUI_DISASM_WIN.
7720
7721 2019-06-25 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7724 declare.
7725 * tui/tui-winsource.c
7726 (tui_source_window_base::do_scroll_horizontal): Rename from
7727 tui_horizontal_source_scroll.
7728 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7729 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7730 from tui_vertical_data_scroll.
7731 * tui/tui-win.h (tui_scroll): Don't declare.
7732 * tui/tui-win.c (tui_win_info::forward_scroll)
7733 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7734 (tui_win_info::right_scroll): Rename and update.
7735 (tui_scroll_forward_command, tui_scroll_backward_command)
7736 (tui_scroll_left_command, tui_scroll_right_command): Update.
7737 (tui_scroll): Remove.
7738 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7739 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7740 from tui_vertical_source_scroll.
7741 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7742 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7743 from tui_vertical_disassem_scroll.
7744 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7745 do_scroll_horizontal>: New methods.
7746 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7747 Likewise.
7748 (struct tui_source_window_base): Add do_scroll_horizontal.
7749 (struct tui_source_window, struct tui_disasm_window): Add
7750 do_scroll_vertical.
7751 (struct tui_data_window, struct tui_cmd_window): Add
7752 do_scroll_horizontal and do_scroll_vertical.
7753 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7754
7755 2019-06-25 Tom Tromey <tom@tromey.com>
7756
7757 * tui/tui-data.h (struct tui_source_window_base): New struct.
7758 (struct tui_source_window): Derive from tui_source_window_base.
7759 (struct tui_disasm_window): New struct.
7760 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7761 from tui_source_window::clear_detail.
7762 (tui_source_window_base): Rename from tui_source_window.
7763 (~tui_source_window_base): Rename from ~tui_source_window.
7764 (tui_alloc_win_info): Create a tui_disasm_window.
7765
7766 2019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-data.h (struct tui_source_window)
7769 (struct tui_data_window): Declare destructors.
7770 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7771 destructors.
7772 (tui_win_info): Simplify.
7773
7774 2019-06-25 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-winsource.c (tui_display_main)
7777 (tui_update_source_windows_with_addr)
7778 (tui_update_all_breakpoint_info): Update.
7779 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7780 (new_height_ok, parse_scrolling_args): Update.
7781 * tui/tui-stack.c (tui_show_frame_info): Update.
7782 * tui/tui-data.h (struct tui_list): Remove.
7783 (tui_source_windows): Return a reference to a std::vector.
7784 * tui/tui-data.c (source_windows): Now a std::vector.
7785 (tui_source_windows): Change return type.
7786 (tui_clear_source_windows): Rewrite.
7787 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7788 (tui_free_all_source_wins_content): Rewrite.
7789
7790 2019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7793 (struct tui_data_window, struct tui_cmd_window): Declare
7794 clear_detail method.
7795 * tui/tui-data.c (tui_source_window::clear_detail)
7796 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7797 methods.
7798 (tui_clear_win_detail): Simplify.
7799
7800 2019-06-25 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-layout.c (make_source_window, make_disasm_window)
7803 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7804 Return the new window.
7805 (show_source_disasm_command, show_data)
7806 (show_source_or_disasm_and_command): Update.
7807
7808 2019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7811 parameter. Return the new window.
7812 (show_source_disasm_command): Update and remove NULL check.
7813 (show_source_or_disasm_and_command): Update.
7814
7815 2019-06-25 Tom Tromey <tom@tromey.com>
7816
7817 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7818
7819 2019-06-25 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-data.h (struct tui_win_info): Make constructor
7822 protected. Make destructor virtual. Add initializers.
7823 (tui_source_window, tui_data_window, tui_cmd_window): New
7824 classes.
7825 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7826 constructor. Add "type" parameter.
7827 (tui_source_window, tui_data_window, tui_cmd_window): New
7828 constructors.
7829 (tui_alloc_win_info): Instantiate the appropriate subclass.
7830
7831 2019-06-25 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-win.c (tui_resize_all): Use delete.
7834 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7835 destructor.
7836 (tui_free_window): Don't declare.
7837 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7838 Update.
7839
7840 2019-06-25 Tom Tromey <tom@tromey.com>
7841
7842 * tui/tui-data.h (struct tui_win_info): Add constructor.
7843 * tui/tui-data.c (tui_alloc_win_info): Use new.
7844 (tui_free_window): Use delete.
7845
7846 2019-06-22 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7849 declare.
7850 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7851
7852 2019-06-22 Tom Tromey <tom@tromey.com>
7853
7854 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7855 declare.
7856 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7857
7858 2019-06-22 Tom de Vries <tdevries@suse.de>
7859
7860 * dwarf2read.c (create_addrmap_from_aranges)
7861 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7862 instead of '%zu'.
7863
7864 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2read.h (dwarf2_section_info_def): Remove.
7867 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7868 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7869 std::vector<dwarf2_section_info>.
7870 (struct dwo_file) <~dwo_file>: Remove.
7871 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7872 types field.
7873 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7874 (dwarf2_read_debug_names): Likewise.
7875 (create_debug_types_hash_table): Change parameter type to
7876 array_view, adjust code accordingly.
7877 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7878 (partial_die_info::fixup): Likewise.
7879 (determine_prefix): Likewise.
7880 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7881
7882 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7885 gdb_bfd_ref_ptr.
7886 <~dwo_file>: Remove call to gdb_bfd_unref.
7887 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7888 gdb_bfd_ref_ptr::get.
7889
7890 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7891
7892 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7893 type to htab_up.
7894 * dwarf2read.c (struct dwo_file): Initialize fields.
7895 <~dwo_file>: New.
7896 (free_dwo_file): Remove, move content to ~dwo_file.
7897 (struct dwo_file_deleter): Remove.
7898 (dwo_file_up>: Remove custom deleter.
7899 (free_dwo_files): Remove.
7900 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7901 dwo_files.
7902 (process_skeletonless_type_units): Call unique_ptr::get.
7903 (allocate_dwo_file_hash_table): Add deleter to created hash
7904 table. Change return type to htab_up.
7905 (lookup_dwo_file_slot): Don't memset dwo_file, call
7906 unique_ptr::get.
7907 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7908 (create_dwo_unit_in_dwp_v2): Likewise.
7909 (open_and_init_dwo_file): Likewise.
7910 (free_dwo_file_from_slot): Remove.
7911
7912 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7913
7914 * dwarf2read.h (struct dwarf2_section_info) <readin,
7915 is_virtual>: Change type to bool.
7916 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7917 true instead of 1.
7918
7919 2019-06-19 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-data.h (tui_init_content_element): Don't declare.
7922
7923 2019-06-19 Tom Tromey <tom@tromey.com>
7924
7925 * tui/tui-data.h (tui_init_win_info): Don't declare.
7926
7927 2019-06-19 Tom de Vries <tdevries@suse.de>
7928
7929 * dwarf2read.h (abstract_to_concrete): Change type to
7930 std::unordered_map<sect_offset, std::vector<sect_offset>,
7931 gdb::hash_enum<sect_offset>>.
7932
7933 2019-06-19 Tom Tromey <tromey@adacore.com>
7934
7935 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7936 EVAL_AVOID_SIDE_EFFECTS specially.
7937
7938 2019-06-19 Tom Tromey <tromey@adacore.com>
7939
7940 * source-cache.c (highlighter): New global.
7941 (source_cache::get_source_lines): Create a highlighter on demand.
7942
7943 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * defs.h (deprecated_interactive_hook): Delete declaration.
7946 * interps.c (clear_interpreter_hooks): Remove use of
7947 deprecated_interactive_hook.
7948 * top.c (deprecated_interactive_hook): Delete definition.
7949 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7950
7951 2019-06-18 Tom de Vries <tdevries@suse.de>
7952
7953 PR gdb/24515
7954 * dwarf2read.h (abstract_to_concrete): Change type from
7955 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7956 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7957 * dwarf2read.c (read_variable): Update.
7958 (dwarf2_fetch_die_loc_sect_off): Update.
7959
7960 2019-06-17 Tom de Vries <tdevries@suse.de>
7961
7962 PR gdb/24617
7963 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7964 accessing parent[parent_len - 1].
7965
7966 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7967
7968 PR gdb/24364
7969 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7970 call dtrace_process_dof with NULL dof.
7971
7972 2019-06-16 Tom de Vries <tdevries@suse.de>
7973
7974 PR gdb/24445
7975 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7976
7977 2019-06-16 Tom Tromey <tom@tromey.com>
7978
7979 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7980 (make_all_visible): Use address of member.
7981
7982 2019-06-16 Tom Tromey <tom@tromey.com>
7983
7984 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7985 (tui_free_window, free_content, free_content_elements): Remove
7986 unnecessary cast.
7987 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7988 cast.
7989 * tui/tui-regs.c (tui_show_register_group)
7990 (tui_display_registers_from, tui_display_reg_element_at_line):
7991 Remove unnecessary cast.
7992
7993 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * linux-nat.c (normal_mask): Delete.
7996 (_initialize_linux_nat): Don't initialise normal_mask.
7997
7998 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7999
8000 PR gdb/24445
8001 * dwarf-index-write.h (write_psymtabs_to_index): Add
8002 dwz_basename parameter.
8003 * dwarf-index-write.c (write_gdbindex): Move file writing to
8004 write_gdbindex_1. Change return type void.
8005 (assert_file_size): Move up, remove filename parameter.
8006 (write_gdbindex_1): New function.
8007 (write_debug_names): Change return type to void, call
8008 assert_file_size.
8009 (struct index_wip_file): New struct.
8010 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8011 file logic to index_wip_file. Write index for dwz file if
8012 needed.
8013 (save_gdb_index_command): Pass basename of dwz file, if present.
8014 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8015 build-id of dwz file, if present.
8016 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8017 (dwarf2_get_dwz_file): Likewise.
8018 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8019 (dwarf2_get_dwz_file): Likewise.
8020
8021 2019-06-16 Tom Tromey <tom@tromey.com>
8022
8023 * coffread.c (process_coff_symbol): Use xstrdup.
8024 * value.c (create_internalvar): Use xstrdup.
8025
8026 2019-06-16 Tom Tromey <tom@tromey.com>
8027
8028 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8029 * breakpoint.c (stopin_command, stopat_command)
8030 (until_break_command, decode_location_default): Remove unnecessary
8031 cast.
8032 * utils.c (subset_compare): Remove unnecessary cast.
8033 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8034 cast.
8035 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8036 cast.
8037 * infcmd.c (path_command): Remove unnecessary cast.
8038 * coffread.c (decode_type): Remove unnecessary cast.
8039 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8040 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8041 * tui/tui-stack.c (tui_show_locator_content)
8042 (tui_show_frame_info): Remove unnecessary cast.
8043 * tui/tui-win.c (tui_scroll_forward_command)
8044 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8045 (parse_scrolling_args): Remove unnecessary cast.
8046 * tui/tui-data.c (init_win_info, tui_del_window)
8047 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8048 (free_content_elements): Remove unnecessary cast.
8049 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8050 unnecessary cast.
8051 * tui/tui-source.c (tui_set_source_content)
8052 (tui_vertical_source_scroll): Remove unnecessary cast.
8053 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8054 cast.
8055 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8056 * tui/tui-regs.c (tui_display_registers_from)
8057 (tui_display_register): Remove unnecessary cast.
8058 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8059 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8060 (make_visible): Remove unnecessary cast.
8061 * tui/tui-winsource.c (tui_erase_source_content)
8062 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8063 unnecessary cast.
8064 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8065 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8066 * stabsread.c (read_type, read_array_type, read_range_type):
8067 Remove unnecessary cast.
8068 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8069 (parse_symbol, parse_type, upgrade_type, parse_external)
8070 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8071 unnecessary cast.
8072 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8073
8074 2019-06-16 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-data.c (tui_alloc_generic_win_info)
8077 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8078 checks.
8079
8080 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8081 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * f-typeprint.c (f_print_type): Don't return early for not
8084 associated or not allocated types.
8085 (f_type_print_varspec_suffix): Add print_rank parameter and print
8086 ranks of array types in case they dangling.
8087 (f_type_print_base): Add print_rank parameter.
8088
8089 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8090
8091 * NEWS: Mention new MI commands.
8092 * break-catch-throw.c (enum exception_event_kind): Move to
8093 breakpoint.h.
8094 (print_mention_exception_catchpoint): Output text as a single
8095 message.
8096 (catch_exception_command_1): Rename to...
8097 (catch_exception_event): ...this, make non-static, update header
8098 command, and change some parameter types.
8099 (catch_catch_command): Update for changes to
8100 catch_exception_command_1.
8101 (catch_throw_command): Likewise.
8102 (catch_rethrow_command): Likewise.
8103 * breakpoint.c (enum exception_event_kind): Delete.
8104 * breakpoint.h (enum exception_event_kind): Moved here from
8105 break-catch-throw.c.
8106 (catch_exception_event): Declare.
8107 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8108 (mi_cmd_catch_throw): New function.
8109 (mi_cmd_catch_rethrow): New function.
8110 (mi_cmd_catch_catch): New function.
8111 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8112 'catch-catch' entries.
8113 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8114 (mi_cmd_catch_rethrow): Declare.
8115 (mi_cmd_catch_catch): Declare.
8116
8117 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * annotate.c (annotate_source_line): Change return type to void,
8120 update implementation to match.
8121 * annotate.h (annotate_source_line): Change return type to void,
8122 update header comment.
8123 * stack.c (print_frame_info): Don't change what frame information
8124 is printed based on whether annotations are on or not.
8125
8126 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8129 (annotate_source): Make static.
8130 (annotate_source_line): Moved from source.c and renamed from
8131 identify_source_line. Update the return type.
8132 * annotate.h (annotate_source): Delete declaration.
8133 (annotate_source_line): Declaration moved from source.h, and
8134 renamed from identify_source_line. Return type updated.
8135 * source.c (identify_source_line): Moved to annotate.c and renamed
8136 to annotate_source_line.
8137 (info_line_command): Remove check of annotation_level.
8138 * source.h (identify_source_line): Move declaration to annotate.h
8139 and rename to annotate_source_line.
8140 * stack.c: Add 'annotate.h' include.
8141 (print_frame_info): Remove check of annotation_level before
8142 calling annotate_source_line.
8143
8144 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * source-cache.c (source_cache::get_plain_source_lines): Use
8147 open_source_file_with_line_charpos instead of just
8148 open_source_file, remove call to find_source_lines.
8149 (source_cache::get_source_lines): Likewise.
8150 * source.c (find_source_lines): Make static.
8151 (get_filename_and_charpos): Renamed into...
8152 (open_source_file_with_line_charpos): ..this along with changes to
8153 return a scoped_fd, and some other minor clean ups.
8154 (identify_source_line): Use open_source_file_with_line_charpos.
8155 (search_command_helper): Use open_source_file_with_line_charpos
8156 instead of just open_source_file, remove call to
8157 find_source_lines.
8158 * source.h (open_source_file_with_line_charpos): Declare new
8159 function.
8160 (find_source_lines): Delete declaration.
8161
8162 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8163
8164 * source.c (get_filename_and_charpos): Remove fullname
8165 parameter.
8166 (identify_source_line): Update call to get_filename_and_charpos.
8167
8168 2019-06-14 Tom Tromey <tromey@adacore.com>
8169
8170 PR gdb/24502:
8171 * ui-style.h (skip_ansi_escape): Update comment.
8172 * ui-file.h (class no_terminal_escape_file): New class.
8173 * ui-file.c (no_terminal_escape_file::write)
8174 (no_terminal_escape_file::puts): New methods.
8175 * cli/cli-logging.c (handle_redirections): Use
8176 no_terminal_escape_file.
8177
8178 2019-06-14 Tom Tromey <tromey@adacore.com>
8179
8180 * NEWS: Move convenience variable news above Python news.
8181
8182 2019-06-14 Tom Tromey <tom@tromey.com>
8183
8184 * gnulib: Move directory to top-level.
8185 * configure.ac: Don't configure gnulib.
8186 * configure: Rebuild.
8187 * common/common-defs.h: Use new path to gnulib.
8188 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8189 (GNULIB_H): Remove.
8190 (INCGNU): Look in new gnulib location.
8191 (HFILES_NO_SRCDIR): Remove gnulib files.
8192 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8193 (generated_files): Remove GNULIB_H.
8194 ($(LIBGNU), all-lib): Remove targets.
8195 (distclean): Don't mention GNULIB_BUILDDIR.
8196 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8197
8198 2019-06-14 Tom Tromey <tromey@adacore.com>
8199
8200 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8201 Warn if symbol file does not provide any symbols.
8202
8203 2019-06-14 Tom Tromey <tromey@adacore.com>
8204
8205 * source.c (find_and_open_source): Respect basenames_may_differ.
8206
8207 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8208
8209 * annotate.c (annotate_breakpoints_invalid): Make use of
8210 scoped_restore_terminal_state.
8211 (annotate_frames_invalid): Likewise.
8212
8213 2019-06-14 Tom Tromey <tromey@adacore.com>
8214
8215 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8216 allow assignment to an internalvar.
8217
8218 2019-06-14 Tom Tromey <tromey@adacore.com>
8219
8220 * ada-lex.l: Allow "_" in attribute names.
8221
8222 2019-06-14 Tom Tromey <tromey@adacore.com>
8223
8224 PR gdb/24653:
8225 * regcache.c (registers_changed): Don't call alloca.
8226 * top.c (execute_command): Don't call alloca.
8227
8228 2019-06-13 Pedro Alves <palves@redhat.com>
8229
8230 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8231 'expression'. When parsing an expression, error out if there's
8232 junk after "unlimited".
8233 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8234 (do_set_command): Adjust calls to is_unlimited_literal.
8235
8236 2019-06-13 Pedro Alves <palves@redhat.com>
8237
8238 * compile/compile.c (make_compile_options_def_group): Add braces
8239 around array_view initializer.
8240 * thread.c (make_thread_apply_all_options_def_group)
8241 (make_thread_apply_all_options_def_group): Likewise.
8242
8243 2019-06-13 Pedro Alves <palves@redhat.com>
8244
8245 * NEWS (New commands): Mention "maint test-options
8246 require-delimiter", "maint test-options unknown-is-error", "maint
8247 test-options unknown-is-operand" and "maint show
8248 test-options-completion-result".
8249 (New command options, command completion): New section.
8250 (Completion improvements): New section.
8251 Mention that you can abbreviate "unlimited".
8252
8253 2019-06-13 Pedro Alves <palves@redhat.com>
8254
8255 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8256 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8257 * unittests/cli-utils-selftests.c (test_parse_flags)
8258 (test_parse_flags_qcs): Delete.
8259 (test_cli_utils): Don't call deleted functions.
8260
8261 2019-06-13 Pedro Alves <palves@redhat.com>
8262
8263 * thread.c: Include "cli/cli-option.h".
8264 (tp_array_compar_ascending): Global.
8265 (tp_array_compar): Delete function.
8266 (tp_array_compar_ascending, tp_array_compar_descending): New
8267 functions.
8268 (ascending_option_def, qcs_flag_option_def)
8269 (thr_qcs_flags_option_defs)
8270 (make_thread_apply_all_options_def_group)
8271 (make_thread_apply_options_def_group): New.
8272 (thread_apply_all_command): Use gdb::option::process_options.
8273 (thread_apply_command_completer)
8274 (thread_apply_all_command_completer): New.
8275 (thread_apply_command): Use gdb::option::process_options.
8276 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8277 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8278 to generate help text of "thread apply". Adjust "taas"'s help.
8279 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8280 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8281
8282 2019-06-13 Pedro Alves <palves@redhat.com>
8283
8284 * thread.c (thread_apply_command): Check for invalid TID with
8285 isdigit instead of !isalpha.
8286
8287 2019-06-13 Pedro Alves <palves@redhat.com>
8288
8289 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8290 (validate_flags_qcs): New.
8291 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8292 (validate_flags_qcs): Declare.
8293 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8294 (make_frame_apply_options_def_group): New.
8295 (frame_apply_command_count): Process options with
8296 gdb::option::process_options.
8297 (frame_apply_completer): New.
8298 (frame_apply_level_completer, frame_apply_all_completer)
8299 (frame_apply_completer): New.
8300 (_initialize_stack): Update help of "frame apply", "frame apply
8301 level", "frame apply all" and "faas" to mention supported options
8302 and install command completers.
8303 * stack.h (frame_apply_all_completer): Declare.
8304 * thread.c: Include "stack.h".
8305 (tfaas_command): Add "--".
8306 (_initialize_thread): Update help "tfaas" to mention supported
8307 options and install command completer.
8308
8309 2019-06-13 Pedro Alves <palves@redhat.com>
8310
8311 * completer.c (complete_nested_command_line): New.
8312 (gdb_completion_word_break_characters_throw): Add assertion.
8313 * completer.h (complete_nested_command_line): Declare.
8314
8315 2019-06-13 Pedro Alves <palves@redhat.com>
8316
8317 * stack.c (parse_backtrace_qualifiers): New.
8318 (backtrace_command): Use it.
8319 (backtrace_command_completer): Complete on qualifiers.
8320
8321 2019-06-13 Pedro Alves <palves@redhat.com>
8322
8323 * frame.c: Include "cli/cli-option.h.
8324 (user_set_backtrace_options): New.
8325 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8326 Delete.
8327 (get_prev_frame): Adjust.
8328 (boolean_option_def, uinteger_option_def)
8329 (set_backtrace_option_defs): New.
8330 (_initialize_frame): Adjust and use
8331 gdb::option::add_setshow_cmds_for_options to install "set
8332 backtrace past-main" and "set backtrace past-entry".
8333 * frame.h: Include "cli/cli-option.h".
8334 (struct frame_print_options): Forward declare.
8335 (print_frame_arguments_all, print_frame_arguments_scalars)
8336 (print_frame_arguments_none): Declare.
8337 (print_entry_values): Delete declaration.
8338 (struct frame_print_options, user_frame_print_options): New.
8339 (struct set_backtrace_options): New.
8340 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8341 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8342 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8343 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8344 (list_args_or_locals): Add frame_print_options parameter.
8345 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8346 * python/py-framefilter.c (enumerate_args): Pass down
8347 USER_FRAME_PRINT_OPTIONS.
8348 * stack.c: Include "cli/cli-option.h".
8349 (print_frame_arguments_all, print_frame_arguments_scalars)
8350 (print_frame_arguments_none): Declare.
8351 (print_raw_frame_arguments, print_entry_values): Delete.
8352 (user_frame_print_options): New.
8353 (boolean_option_def, enum_option_def, frame_print_option_defs):
8354 New.
8355 (struct backtrace_cmd_options): New.
8356 (bt_flag_option_def): New.
8357 (backtrace_command_option_defs): New.
8358 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8359 (print_frame_arg, read_frame_arg, print_frame_args)
8360 (print_frame_info, print_frame): Add frame_print_options parameter
8361 and use it.
8362 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8363 (backtrace_command_1): Add frame_print_options and
8364 backtrace_cmd_options parameters and use them.
8365 (make_backtrace_options_def_group): New.
8366 (backtrace_command): Process command options with
8367 gdb::option::process_options.
8368 (backtrace_command_completer): New.
8369 (_initialize_stack): Extend "backtrace"'s help to mention
8370 supported options. Install completer for "backtrace".
8371 Install some settings commands with add_setshow_cmds_for_options.
8372
8373 2019-06-13 Pedro Alves <palves@redhat.com>
8374
8375 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8376 and that "set/show print raw frame-arguments" are now deprecated.
8377
8378 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8379 command.
8380 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8381 * stack.c (_initialize_stack): Install "set/show print
8382 raw-frame-arguments", and deprecate "set/show print raw
8383 frame-arguments".
8384 * valprint.c (_initialize_valprint): Deprecate "set/show print
8385 raw".
8386
8387 2019-06-13 Pedro Alves <palves@redhat.com>
8388
8389 * compile/compile.c (struct compile_options): New.
8390 (compile_flag_option_def, compile_command_option_defs)
8391 (make_compile_options_def_group): New.
8392 (compile_file_command): Handle options with
8393 gdb::option::process_options.
8394 (compile_file_command_completer): New function.
8395 (compile_code_command): Handle options with
8396 gdb::option::process_options.
8397 (compile_code_command_completer): New function.
8398 (_initialize_compiler): Install completers for "compile code" and
8399 "compile file". Mention available options in "compile code" and
8400 "compile code"'s help.
8401 * completer.c (advance_to_completion_word): New, factored out from
8402 ...
8403 (advance_to_expression_complete_word_point): ... this.
8404 (advance_to_filename_complete_word_point): New.
8405 * completer.h (advance_to_filename_complete_word_point): New
8406 declaration.
8407
8408 2019-06-13 Pedro Alves <palves@redhat.com>
8409
8410 * compile/compile.c: Include "cli/cli-option.h".
8411 (compile_print_value): Scope data pointer is now a
8412 value_print_options pointer; adjust.
8413 (compile_print_command): Process options. Scope data pointer is
8414 now a value_print_options pointer; adjust.
8415 (_initialize_compile): Update "compile print"'s help to include
8416 supported options. Install a completer for "compile print".
8417 * cp-valprint.c (show_vtblprint, show_objectprint)
8418 (show_static_field_print): Delete.
8419 (_initialize_cp_valprint): Don't install "set print
8420 static-members", "set print vtbl", "set print object" here.
8421 * printcmd.c: Include "cli/cli-option.h" and
8422 "common/gdb_optional.h".
8423 (print_command_parse_format): Rework to fill in a
8424 value_print_options instead of a format_data.
8425 (print_value): Change parameter type from format_data pointer to
8426 value_print_options reference. Adjust.
8427 (print_command_1): Process options. Adjust to pass down a
8428 value_print_options.
8429 (print_command_completer): New.
8430 (_initialize_printcmd): Install print_command_completer as
8431 handle_brkchars completer for the "print" command. Update
8432 "print"'s help to include supported options.
8433 * valprint.c: Include "cli/cli-option.h".
8434 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8435 here from cp-valprint.c.
8436 (boolean_option_def, uinteger_option_def)
8437 (value_print_option_defs, make_value_print_options_def_group):
8438 New. Use gdb::option::add_setshow_cmds_for_options to install
8439 "set print elements", "set print null-stop", "set print repeats",
8440 "set print pretty", "set print union", "set print array", "set
8441 print address", "set print symbol", "set print array-indexes".
8442 * valprint.h: Include <string> and "cli/cli-option.h".
8443 (make_value_print_options_def_group): Declare.
8444 (print_value): Change parameter type from format_data pointer to
8445 value_print_options reference.
8446 (print_command_completer): Declare.
8447
8448 2019-06-13 Pedro Alves <palves@redhat.com>
8449
8450 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8451 (COMMON_SFILES): Add maint-test-settings.c.
8452 * cli/cli-decode.c (boolean_enums): New global, factored out from
8453 ...
8454 (add_setshow_boolean_cmd): ... here.
8455 * cli/cli-decode.h (boolean_enums): Declare.
8456 * cli/cli-option.c: New file.
8457 * cli/cli-option.h: New file.
8458 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8459 factored out from ...
8460 (parse_cli_boolean_value(const char *)): ... this.
8461 (is_unlimited_literal): Change parameter type to pointer to
8462 pointer. Adjust and advance ARG pointer.
8463 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8464 (parse_cli_var_enum): New, factored out from ...
8465 (do_set_command): ... this. Adjust.
8466 * cli/cli-setshow.h (parse_cli_boolean_value)
8467 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8468 (parse_cli_var_enum): Declare.
8469 * cli/cli-utils.c: Include "cli/cli-option.h".
8470 (get_ulongest): New.
8471 * cli/cli-utils.h (get_ulongest): Declare.
8472 (check_for_argument): New overloads.
8473 * maint-test-options.c: New file.
8474
8475 2019-06-13 Pedro Alves <palves@redhat.com>
8476
8477 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8478 parse a range if "-" is at the end of the string.
8479
8480 2019-06-13 Pedro Alves <palves@redhat.com>
8481
8482 * cli/cli-setshow.c (parse_auto_binary_operation)
8483 (parse_cli_boolean_value): Don't allow "o".
8484
8485 2019-06-13 Pedro Alves <palves@redhat.com>
8486
8487 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8488 * NEWS: Mention maint test-settings KIND.
8489 * maint-test-settings.c: New file.
8490
8491 2019-06-13 Pedro Alves <palves@redhat.com>
8492
8493 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8494 completer.
8495 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8496 "set" completers.
8497
8498 2019-06-13 Pedro Alves <palves@redhat.com>
8499
8500 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8501 after item.
8502
8503 2019-06-13 Pedro Alves <palves@redhat.com>
8504
8505 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8506
8507 2019-06-13 Pedro Alves <palves@redhat.com>
8508
8509 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8510 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8511 call.
8512 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8513 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8514 calls.
8515 (check_for_argument): Skip spaces after argument.
8516
8517 2019-06-13 Pedro Alves <palves@redhat.com>
8518
8519 * thread.c (thread_apply_command): Adjust TID parsing.
8520 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8521 detected before end of string.
8522 (tid_is_in_list): Error out if LIST is invalid.
8523
8524 2019-06-13 Pedro Alves <palves@redhat.com>
8525
8526 * completer.c (complete_line_internal_1): Rewind completion word
8527 point.
8528 (completion_tracker::advance_custom_word_point_by): Change
8529 parameter type to int.
8530 * completer.h (completion_tracker::advance_custom_word_point_by):
8531 Likewise.
8532
8533 2019-06-13 Pedro Alves <palves@redhat.com>
8534
8535 * completer.c (advance_to_completion_word): Handle delimiters.
8536
8537 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8538
8539 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8540
8541 2019-06-11 Tom Tromey <tom@tromey.com>
8542
8543 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8544 (xmalloc_failed): Move to alloc.c.
8545 * alloc.c: New file.
8546 * Makefile.in (COMMON_SFILES): Add alloc.c.
8547
8548 2019-06-11 Tom Tromey <tom@tromey.com>
8549
8550 * nat/linux-waitpid.c: Don't include server.h.
8551 (linux_debug): Remove.
8552 (my_waitpid): Update.
8553
8554 2019-06-11 Tom Tromey <tromey@adacore.com>
8555
8556 * infcall.c (_initialize_infcall): Remove trailing newline from
8557 help.
8558 * user-regs.c (_initialize_user_regs): Remove trailing newline
8559 from help.
8560 * typeprint.c (_initialize_typeprint): Remove trailing newline
8561 from help.
8562 * reverse.c (_initialize_reverse): Remove trailing newlines from
8563 help.
8564 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8565 from help.
8566 * language.c (add_set_language_command): Remove trailing newline
8567 from help.
8568 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8569 help.
8570 * disasm.c (_initialize_disasm): Remove trailing newline from
8571 help.
8572 * top.c (init_main): Remove trailing newline from help.
8573 * interps.c (_initialize_interpreter): Remove trailing newline
8574 from help.
8575 * btrace.c (_initialize_btrace): Remove trailing newlines from
8576 help.
8577 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8578 from help.
8579 * python/python.c (_initialize_python): Remove trailing newline
8580 from help.
8581 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8582 help.
8583 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8584 from help. Reformat some text.
8585 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8586 from help.
8587 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8588 newline from help.
8589
8590 2019-06-11 Tom Tromey <tromey@adacore.com>
8591
8592 * darwin-nat.c (darwin_decode_exception_message)
8593 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8594
8595 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * valops.c (value_slice): Check for not allocated or not
8598 associated values.
8599
8600 2019-06-10 Tom de Vries <tdevries@suse.de>
8601
8602 PR gdb/24618
8603 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8604 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8605 invalid.
8606
8607 2019-06-10 Tom de Vries <tdevries@suse.de>
8608
8609 PR gdb/24611
8610 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8611 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8612
8613 2019-06-10 Tom de Vries <tdevries@suse.de>
8614
8615 PR symtab/24545
8616 * symtab.c (struct demangled_name_entry): Add language field.
8617 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8618 static minimal symbol". Set and use language field.
8619
8620 2019-06-10 Tom Tromey <tromey@adacore.com>
8621
8622 * ada-lang.c (_initialize_ada_language): Update help text.
8623
8624 2019-06-10 Tom Tromey <tromey@adacore.com>
8625
8626 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8627 with a newline.
8628 * guile/guile.c (handle_boot_error): Don't end warning with a
8629 newline.
8630 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8631 warning with a newline.
8632 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8633 newline.
8634 (s12z_frame_cache): Likewise.
8635 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8636 a newline.
8637 * solib-svr4.c (disable_probes_interface): Don't end warning with
8638 a newline.
8639 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8640 newline.
8641 * python/python.c (do_finish_initialization): Don't end warning
8642 with a newline.
8643
8644 2019-06-10 Tom Tromey <tom@tromey.com>
8645
8646 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8647 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8648 gdbpy_enter.
8649
8650 2019-06-10 Tom Tromey <tromey@adacore.com>
8651
8652 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8653 data.
8654 (elf_new_init): Don't call stabsread_new_init.
8655 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8656 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8657 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8658
8659 2019-06-10 Tom de Vries <tdevries@suse.de>
8660
8661 PR symtab/16264
8662 PR symtab/24517
8663 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8664
8665 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8666
8667 * source.c (find_and_open_source): Also rewrite relative file
8668 names.
8669
8670 2019-04-26 Amos Bird <amosbird@gmail.com>
8671
8672 * annotate.c (annotate_thread_exited): Add "thread-exited"
8673 annotation.
8674
8675 2019-06-06 Tom Tromey <tromey@adacore.com>
8676
8677 * maint.h (class scoped_command_stats): Use
8678 DISABLE_COPY_AND_ASSIGN.
8679 <print_time>: New method.
8680 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8681 print_time.
8682 (scoped_command_stats::print_time): New method.
8683
8684 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8685
8686 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8687 instructions of lengths 6 or 8 bytes.
8688
8689 2019-06-04 Pedro Alves <palves@redhat.com>
8690
8691 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8692
8693 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8694 * breakpoint.c (condition_completer): Likewise.
8695 * cli/cli-dump.c (scan_expression): Likewise.
8696 * common/filestuff.c (mkdir_recursive): Likewise.
8697 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8698 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8699 (gdb_abspath): Likewise.
8700 * compile/compile-cplus-types.c
8701 (compile_cplus_instance::decl_name): Likewise.
8702 * completer.c (complete_explicit_location):
8703 (signal_completer, reg_or_group_completer_1): Likewise.
8704 * cp-support.c (cp_remove_params_if_any): Likewise.
8705 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8706 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8707 * infcmd.c (strip_bg_char): Likewise.
8708 * linespec.c (copy_token_string): Likewise.
8709 * mi/mi-main.c (output_cores): Likewise.
8710 * psymtab.c (psymtab_search_name):
8711 * symfile.c (test_set_ext_lang_command): Likewise.
8712 * target.c (target_fileio_read_stralloc): Likewise.
8713 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8714 * value.c (complete_internalvar): Likewise.
8715
8716 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8717
8718 Add objfile property to gdb.Type.
8719 * NEWS: Mention Python API addition.
8720 * python/py-type.c (typy_get_objfile): New method.
8721
8722 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8723
8724 * NEWS: Mention the new set|show style [title|highlight].
8725 Mention changes to "show style", "help" and "apropos".
8726
8727 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8728
8729 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8730 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8731 instead of print_help_for_command.
8732 (print_doc_of_command): New function.
8733 (help_list): Add 'apropos -v word' suggestion.
8734 (print_help_for_command): Style the command name using title style.
8735 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8736 (_initialize_cli_cmds): Describe -v in apropos_command help.
8737
8738 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8739
8740 * cli/cli-style.h (cli_style_option): Add name in constructor,
8741 add m_name class member, add constructor with intensity,
8742 add name class function.
8743 (cli_style_option::add_setshow_commands): Remove name argument.
8744 (highlight_style, title_style): New styles.
8745 * cli/cli-style.c (do_show): New function that shows a style
8746 characteristic styling the style name with itself.
8747 (set_style_name): New function.
8748 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8749 Update all callers according to the changes in cli/cli-style.h.
8750 * utils.h (fputs_highlighted): New function.
8751 * utils.c (fputs_highlighted): Likewise.
8752
8753 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8754
8755 * NEWS: Mention new pipe command and new convenience variables.
8756
8757 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8758
8759 * cli/cli-cmds.c (pipe_command): New function.
8760 (_initialize_cli_cmds): Call add_com for pipe_command.
8761 Define | as an alias for pipe.
8762 (exit_status_set_internal_vars): New function.
8763 (shell_escape): Call exit_status_set_internal_vars.
8764 cli/cli-decode.c (find_command_name_length): Recognize | as
8765 a single character command.
8766
8767 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8768
8769 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8770 top.c (execute_command_to_ui_file): New function, mostly a copy
8771 of execute_command_to_string.
8772 (execute_command_to_string): Implement by calling
8773 execute_command_to_ui_file.
8774
8775 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8776
8777 * top.h (saved_command_line): Remove declaration.
8778 * top.c (previous_saved_command_line, previous_repeat_arguments):
8779 New variables.
8780 (saved_command_line): Make static, define together with other
8781 'repeat variables'.
8782 (dont_repeat): Clear repeat_arguments.
8783 (repeat_previous, get_saved_command_line, save_command_line):
8784 New functions.
8785 (gdb_init): Initialize saved_command_line
8786 and previous_saved_command_line.
8787 * main.c (captured_main_1): Remove saved_command_line initialization.
8788 * event-top.c (handle_line_of_input): Update to use
8789 the new 'repeat' related functions instead of direct access to
8790 saved_command_line.
8791 * command.h (repeat_previous, get_saved_command_line,
8792 save_command_line): New declarations.
8793 (dont_repeat): Add comment.
8794
8795 2019-05-30 Tom Tromey <tromey@adacore.com>
8796
8797 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8798 Fix comment.
8799 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8800
8801 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8802
8803 PR cli/24587
8804 * completer.c (complete): Initialize variable word.
8805
8806 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8807
8808 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8809 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8810 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8811 'body' is NULL to the outter 'if', protecting the '!is_define'
8812 situation as well.
8813
8814 2019-05-29 Tom Tromey <tromey@adacore.com>
8815
8816 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8817 (dwarf_unknown): New function.
8818 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8819 (dwarf_type_encoding_name): Use dwarf_unknown.
8820
8821 2019-05-29 Tom Tromey <tromey@adacore.com>
8822
8823 PR c++/20020:
8824 * cp-valprint.c (cp_print_value_fields): Call
8825 cp_print_static_field inside "try".
8826
8827 2019-05-29 Tom Tromey <tromey@adacore.com>
8828
8829 * inflow.c (struct terminal_info): Add default operator=.
8830 * configure: Rebuild.
8831 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8832 -Wdeprecated-copy-dtor, -Wredundant-move.
8833
8834 2019-05-29 Tom Tromey <tromey@adacore.com>
8835
8836 * NEWS: Add entry.
8837 * infcmd.c (print_return_value_1): Handle finish_print
8838 option.
8839 (show_print_finish): New function.
8840 (_initialize_infcmd): Add "set/show print finish" commands.
8841 * valprint.c (user_print_options): Initialize new member.
8842 * valprint.h (struct value_print_options) <finish_print>: New
8843 member.
8844
8845 2019-05-28 Tom Tromey <tromey@adacore.com>
8846
8847 * ada-lang.c (ada_remove_Xbn_suffix)
8848 (find_old_style_renaming_symbol)
8849 (parse_old_style_renaming): Remove.
8850 (ada_find_renaming_symbol): Don't call
8851 find_old_style_renaming_symbol.
8852 (ada_is_renaming_symbol): Rename from
8853 ada_find_renaming_symbol. Remove "block" parameter. Return
8854 bool. Now static.
8855 (ada_read_var_value): Update and simplify.
8856 * ada-exp.y (write_var_or_type): Remove old code.
8857
8858 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8859
8860 PR gdb/25010
8861 * event-top.c: Remove include comment.
8862 * inflow.c (class scoped_ignore_sigttou): Move from here...
8863 * inflow.h (class scoped_ignore_sigttou): ...to here.
8864 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8865 * top.c: Remove include comment.
8866
8867 2019-05-27 Tom Tromey <tom@tromey.com>
8868
8869 * NEWS: Fix typo.
8870
8871 2019-05-22 Tom Tromey <tromey@adacore.com>
8872
8873 * target.c (target_follow_exec): Constify parameter.
8874 * target-delegates.c: Rebuild.
8875 * remote.c (remote_target::follow_exec): Constify parameter.
8876 * infrun.c (follow_exec): Constify parameter.
8877 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8878 (target_follow_exec): Likewise.
8879
8880 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8881
8882 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8883 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8884
8885 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8886
8887 * NEWS: Add debugredirect and testsuite sections.
8888
8889 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8890
8891 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8892 target descriptions using exclusively floating point register name
8893 aliases.
8894
8895 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 PR gdb/18644:
8898 * f-lang.c (build_fortran_types): Handle the case where
8899 gdbarch_floatformat_for_type returns a nullptr.
8900
8901 2019-05-21 Tom de Vries <tdevries@suse.de>
8902
8903 PR cli/24587
8904 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8905
8906 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8907
8908 PR gdb/18644:
8909 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8910 16-byte floats.
8911 * i386-tdep.c (i386_floatformat_for_type): Use
8912 floatformats_ia64_quad for the 16-byte floating point component
8913 within a fortran 32-byte complex number.
8914
8915 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8916
8917 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8918 delete default constructor.
8919 (find_partial_die): Update to return const struct.
8920 (partial_die_parent_scope): Move variable declaration into scope
8921 of its use and change its type to auto.
8922 (guess_partial_die_structure_name): Likewise.
8923 (partial_die_info::fixup): Likewise.
8924
8925 2019-05-17 Tom Tromey <tromey@adacore.com>
8926
8927 * source.c (find_and_open_source): Remove cast.
8928
8929 2019-05-17 Tom Tromey <tromey@adacore.com>
8930
8931 * annotate.c (annotate_source): Make "filename" const.
8932 * annotate.h (annotate_source): Use const.
8933
8934 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8935
8936 * disasm.c (set_disassembler_options): Send errors to stderr.
8937
8938 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8939
8940 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8941 (cli_interp_base::set_logging): Check debug_redirect.
8942 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8943 * cli/cli-logging.c (debug_redirect): Add static variable.
8944 (pop_output_files): Add default param.
8945 (handle_redirections): Print debug setting.
8946 (show_logging_command): Likewise.
8947 (_initialize_cli_logging): Add debugredirect command.
8948 * interps.c (current_interp_set_logging): Add debug_redirect
8949 parameter.
8950 * interps.h (set_logging): Add debug_redirect parameter.
8951 (current_interp_set_logging): Likewise.
8952 * mi/mi-common.h: Likewise.
8953 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8954
8955 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8956 Tom Tromey <tromey@adacore.com>
8957
8958 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8959 directly.
8960 * cli/cli-interp.h (make_logging_output): Remove declaration.
8961 * cli/cli-logging.c (make_logging_output): Remove function.
8962 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8963 directly.
8964 * ui-file.c (tee_file::tee_file): Remove bools.
8965 (tee_file::~tee_file): Remove deletes.
8966 * ui-file.h (tee_file): Remove bools.
8967
8968 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8969
8970 * mi/mi-cmds.h (mi_cmd_complete): New function.
8971 * mi/mi-main.c (mi_cmd_complete): Likewise.
8972 * mi/mi-cmds.c: Define new MI command -complete.
8973 * NEWS: Mention new -complete command.
8974
8975 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8976
8977 * completer.h (complete): New function.
8978 * completer.c (complete): Likewise.
8979 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8980 function defined in completer.h.
8981
8982 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8983
8984 * MAINTAINERS (Write After Approval): Add myself.
8985
8986 2019-05-17 Tom de Vries <tdevries@suse.de>
8987
8988 PR gdb/24094
8989 * dwarf2read.c (struct cu_partial_die_info): New struct.
8990 (find_partial_die): Return cu_partial_die_info.
8991 (partial_die_parent_scope, guess_partial_die_structure_name)
8992 (partial_die_info::fixup): Handle new return type of find_partial_die.
8993
8994 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8995
8996 PR breakpoints/24541
8997 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8998 "std::string", simplifying the algorithm.
8999
9000 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9001
9002 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9003 (stap_static_probe_ops::get_probes): Likewise.
9004
9005 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9006
9007 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9008 '-')" and "else if".
9009 (stap_parse_single_operand): Join checks for
9010 "gdbarch_stap_parse_special_token_p" and
9011 "gdbarch_stap_parse_special_token" in the same "if" statement.
9012 Invert check when verifying for operation on register
9013 displacement.
9014
9015 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9016
9017 * stap-probe.c (stap_get_opcode): Update comment.
9018 (stap_get_expected_argument_type): Likewise.
9019 (handle_stap_probe): Likewise.
9020
9021 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9022
9023 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9024 return type to 'bool'. Adjust comment. Use 'bool' when
9025 appropriate.
9026 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9027 * stap-probe.c (stap_parse_argument_1): Likewise.
9028 (stap_is_operator): Likewise.
9029 (stap_is_generic_prefix): Likewise.
9030 (stap_is_register_prefix): Likewise.
9031 (stap_is_register_indirection_prefix): Likewise.
9032 (stap_is_integer_prefix): Likewise.
9033 (stap_generic_check_suffix): Likewise.
9034 (stap_check_integer_suffix): Likewise.
9035 (stap_check_register_suffix): Likewise.
9036 (stap_check_register_indirection_suffix): Likewise.
9037 (stap_parse_register_operand): Likewise.
9038 (stap_parse_single_operand): Likewise.
9039 (stap_parse_argument_1): Likewise.
9040 (stap_probe::get_argument_count): Likewise.
9041 (stap_is_operator): Likewise.
9042
9043 2019-05-16 Tom Tromey <tromey@adacore.com>
9044
9045 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9046 keyword to foreach.
9047
9048 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * linux-thread-db.c (try_thread_db_load_1): Change return type
9051 to bool.
9052 (try_thread_db_load): Likewise.
9053 (try_thread_db_load_from_pdir_1): Likewise.
9054 (try_thread_db_load_from_pdir): Likewise.
9055 (try_thread_db_load_from_sdir): Likewise.
9056 (try_thread_db_load_from_dir): Likewise.
9057 (thread_db_load_search): Likewise.
9058 (has_libpthread): Likewise.
9059 (thread_db_load): Likewise.
9060
9061 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9062
9063 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9064 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9065 NULL, and complain/return if that's the case.
9066
9067 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9068
9069 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9070 (advance, posn, abstract_read_memory): New functions.
9071 [struct mem_read_abstraction]: New struct.
9072 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9073
9074 2019-05-14 Tom Tromey <tromey@adacore.com>
9075
9076 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9077 value is not lval_memory.
9078
9079 2019-05-14 Tom Tromey <tromey@adacore.com>
9080
9081 * solib.c (info_sharedlibrary_command): Style the file name.
9082
9083 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9084
9085 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9086 (aarch64_vnv_type): Likewise.
9087 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9088 * common/tdesc.c: Likewise.
9089 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9090 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9091 * features/aarch64-fpu.xml: Add ieee half view.
9092 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9093 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9094 * gdbtypes.h (struct builtin_type): Likewise.
9095 (struct objfile_type): Likewise.
9096
9097 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9098
9099 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9100 typo.
9101 * location.h (string_to_event_location): Likewise.
9102
9103 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9104
9105 GDB 8.3 released.
9106
9107 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9108
9109 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9110 New variable declaration.
9111 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9112 New variable.
9113 (print_one_breakpoint): Use ui_out::test_flags and new global
9114 variable to compute use_fixed_output.
9115 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9116 Remove.
9117 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9118 (mi_multi_location_breakpoint_output_fixed): Remove.
9119 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9120 new variable.
9121 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9122 fix_multi_location_breakpoint_output flag if version >= 3.
9123 * ui-out.h (enum ui_out_flag)
9124 <fix_multi_location_breakpoint_output>: New enumerator.
9125
9126 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9129
9130 2019-05-10 Tom Tromey <tromey@adacore.com>
9131
9132 * ada-lang.c (catch_ada_completer): New function.
9133 (_initialize_ada_language): Use it.
9134
9135 2019-05-10 Tom Tromey <tromey@adacore.com>
9136
9137 * thread.c (print_thread_info): Make "requested_threads" const.
9138 * gdbthread.h (print_thread_info): Make "requested_threads"
9139 const.
9140 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9141 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9142
9143 2019-05-08 Tom Tromey <tom@tromey.com>
9144
9145 * gdbtypes.c (objfile_type_data): Change type.
9146 (objfile_type, _initialize_gdbtypes): Update.
9147
9148 2019-05-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9151 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9152 (_initialize_dwarf2_frame): Update.
9153
9154 2019-05-08 Tom Tromey <tom@tromey.com>
9155
9156 * objc-lang.c (objc_objfile_data): Change type.
9157 (find_methods): Update.
9158 (_initialize_objc_lang): Remove.
9159
9160 2019-05-08 Tom Tromey <tom@tromey.com>
9161
9162 * stabsread.c (rs6000_builtin_type_data): Change type.
9163 (rs6000_builtin_type, _initialize_stabsread): Update.
9164
9165 2019-05-08 Tom Tromey <tom@tromey.com>
9166
9167 * mips-tdep.c (mips_pdr_data): Remove.
9168 (_initialize_mips_tdep): Update.
9169
9170 2019-05-08 Tom Tromey <tom@tromey.com>
9171
9172 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9173 (hppa_init_objfile_priv_data, read_unwind_info)
9174 (find_unwind_entry, _initialize_hppa_tdep): Update.
9175
9176 2019-05-08 Tom Tromey <tom@tromey.com>
9177
9178 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9179 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9180 on obstack.
9181 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9182
9183 2019-05-08 Tom Tromey <tom@tromey.com>
9184
9185 * mdebugread.c (basic_type_data): Change type.
9186 (basic_type, _initialize_mdebugread): Update.
9187
9188 2019-05-08 Tom Tromey <tom@tromey.com>
9189
9190 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9191
9192 2019-05-08 Tom Tromey <tom@tromey.com>
9193
9194 * nto-tdep.c (nto_inferior_data_reg): Change type.
9195 (nto_inferior_data): Update.
9196 (nto_inferior_data_cleanup, nto_new_inferior_data)
9197 (_initialize_nto_tdep): Remove.
9198 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9199
9200 2019-05-08 Tom Tromey <tom@tromey.com>
9201
9202 * ada-lang.c (struct ada_inferior_data): Add initializers.
9203 (ada_inferior_data): Change type.
9204 (ada_inferior_data_cleanup): Remove.
9205 (get_ada_inferior_data, ada_inferior_exit)
9206 (struct ada_pspace_data): Add initializers, destructor.
9207 (ada_pspace_data_handle): Change type.
9208 (get_ada_pspace_data): Update.
9209 (ada_pspace_data_cleanup): Remove.
9210
9211 2019-05-08 Tom Tromey <tom@tromey.com>
9212
9213 * coffread.c (struct coff_symfile_info): Add initializers.
9214 (coff_objfile_data_key): Move lower. Change type.
9215 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9216 Update.
9217 (coff_free_info): Remove.
9218
9219 2019-05-08 Tom Tromey <tom@tromey.com>
9220
9221 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9222 (fbsd_pspace_data_handle): Move lower. Change type.
9223 (get_fbsd_pspace_data): Update.
9224 (fbsd_pspace_data_cleanup): Remove.
9225 (_initialize_fbsd_tdep): Update.
9226
9227 2019-05-08 Tom Tromey <tom@tromey.com>
9228
9229 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9230 (get_ada_tasks_pspace_data): Update.
9231 (ada_tasks_pspace_data_cleanup): Remove.
9232 (_initialize_tasks): Update.
9233 (ada_tasks_inferior_data_handle): Change type.
9234 (get_ada_tasks_inferior_data): Update.
9235 (ada_tasks_inferior_data_cleanup): Remove.
9236 (struct ada_tasks_pspace_data): Add initializers.
9237
9238 2019-05-08 Tom Tromey <tom@tromey.com>
9239
9240 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9241 * symfile-debug.c (debug_sym_get_probes): Change type.
9242 * stap-probe.c (handle_stap_probe):
9243 (stap_static_probe_ops::get_probes): Change type.
9244 * probe.h (class static_probe_ops) <get_probes>: Change type.
9245 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9246 (parse_probes_in_pspace): Update.
9247 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9248 Update.
9249 (any_static_probe_ops::get_probes): Change type.
9250 * elfread.c (elfread_data): New typedef.
9251 (probe_key): Change type.
9252 (elf_get_probes): Likewise. Update.
9253 (probe_key_free): Remove.
9254 (_initialize_elfread): Update.
9255 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9256 Change type.
9257 (dtrace_process_dof_probe, dtrace_process_dof)
9258 (dtrace_static_probe_ops::get_probe): Change type.
9259
9260 2019-05-08 Tom Tromey <tom@tromey.com>
9261
9262 * xcoffread.c (struct xcoff_symfile_info): Rename from
9263 coff_symfile_info. Add initializers.
9264 (xcoff_objfile_data_key): Move lower. Change type.
9265 (XCOFF_DATA): Rewrite.
9266 (xcoff_free_info): Remove.
9267 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9268 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9269 (xcoff_initial_scan): Update.
9270
9271 2019-05-08 Tom Tromey <tom@tromey.com>
9272
9273 * solib-svr4.c (struct svr4_info): Add initializers and
9274 destructor.
9275 <probes_table>: Now an htab_up.
9276 (solib_svr4_pspace_data): Change type.
9277 (free_probes_table): Simplify.
9278 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9279 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9280 (probes_table_remove_objfile_probes, register_solib_event_probe)
9281 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9282 (_initialize_svr4_solib): Update.
9283
9284 2019-05-08 Tom Tromey <tom@tromey.com>
9285
9286 * remote.c (remote_pspace_data): Change type.
9287 (remote_pspace_data_cleanup): Remove.
9288 (get_remote_exec_file, set_pspace_remote_exec_file)
9289 (_initialize_remote): Update.
9290
9291 2019-05-08 Tom Tromey <tom@tromey.com>
9292
9293 * breakpoint.c (breakpoint_objfile_key): Change type.
9294 (get_breakpoint_objfile_data): Update.
9295 (free_breakpoint_objfile_data): Remove.
9296 (_initialize_breakpoint): Update.
9297
9298 2019-05-08 Tom Tromey <tom@tromey.com>
9299
9300 * linux-tdep.c (struct linux_info): Add initializers.
9301 (linux_inferior_data): Move. Change type.
9302 (invalidate_linux_cache_inf): Update.
9303 (linux_inferior_data_cleanup): Remove.
9304 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9305
9306 2019-05-08 Tom Tromey <tom@tromey.com>
9307
9308 * auxv.c (auxv_inferior_data): Move. Change type.
9309 (auxv_inferior_data_cleanup): Remove.
9310 (invalidate_auxv_cache_inf): Rewrite.
9311 (get_auxv_inferior_data, _initialize_auxv): Update.
9312
9313 2019-05-08 Tom Tromey <tom@tromey.com>
9314
9315 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9316 (symfile_debug_objfile_data_key): Change type.
9317 (symfile_debug_installed, debug_qf_has_symbols)
9318 (debug_qf_find_last_source_symtab)
9319 (debug_qf_forget_cached_source_info)
9320 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9321 (debug_qf_print_stats, debug_qf_dump)
9322 (debug_qf_expand_symtabs_for_function)
9323 (debug_qf_expand_all_symtabs)
9324 (debug_qf_expand_symtabs_with_fullname)
9325 (debug_qf_map_matching_symbols)
9326 (debug_qf_expand_symtabs_matching)
9327 (debug_qf_find_pc_sect_compunit_symtab)
9328 (debug_qf_map_symbol_filenames)
9329 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9330 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9331 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9332 (debug_sym_read_linetable, debug_sym_relocate): Update.
9333 (symfile_debug_free_objfile): Remove.
9334 (install_symfile_debug_logging, _initialize_symfile_debug):
9335 Update.
9336
9337 2019-05-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9340 allocate_on_obstack.
9341 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9342 (get_dwarf2_per_objfile): Update.
9343 (set_dwarf2_per_objfile): Remove.
9344 (dwarf2_has_info, dwarf2_get_section_info): Update.
9345 (dwarf2_free_objfile): Remove.
9346 (_initialize_dwarf2_read): Update.
9347
9348 2019-05-08 Tom Tromey <tom@tromey.com>
9349
9350 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9351 initializers.
9352 <unsupported_script_warning_printed,
9353 script_not_found_warning_printed>: Now bool.
9354 (auto_load_pspace_data): Change type.
9355 (~auto_load_pspace_info): Rename from
9356 auto_load_pspace_data_cleanup.
9357 (get_auto_load_pspace_data, init_loaded_scripts_info)
9358 (clear_section_scripts, maybe_print_unsupported_script_warning)
9359 (maybe_print_script_not_found_warning, _initialize_auto_load):
9360 Update.
9361
9362 2019-05-08 Tom Tromey <tom@tromey.com>
9363
9364 * objfiles.c (objfile_pspace_info): Add destructor and
9365 initializers.
9366 (objfiles_pspace_data): Change type.
9367 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9368 (get_objfile_pspace_data): Update.
9369 (objfiles_bfd_data): Change type.
9370 (get_objfile_bfd_data): Update.
9371 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9372
9373 2019-05-08 Tom Tromey <tom@tromey.com>
9374
9375 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9376 Change type.
9377 (get_catch_syscall_inferior_data): Update.
9378 (catch_syscall_inferior_data_cleanup): Remove.
9379 (_initialize_break_catch_syscall): Update.
9380
9381 2019-05-08 Tom Tromey <tom@tromey.com>
9382
9383 * inflow.c (struct terminal_info): Add destructor and
9384 initializers.
9385 (inflow_inferior_data): Change type.
9386 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9387 (get_inflow_inferior_data, inflow_inferior_exit)
9388 (swap_terminal_info, _initialize_inflow): Update.
9389
9390 2019-05-08 Tom Tromey <tom@tromey.com>
9391
9392 * target-dcache.c (target_dcache_cleanup): Remove.
9393 (target_dcache_aspace_key): Change type.
9394 (target_dcache_init_p, target_dcache_invalidate)
9395 (target_dcache_get, target_dcache_get_or_init)
9396 (_initialize_target_dcache): Update.
9397 * dcache.h (struct dcache_deleter): New.
9398
9399 2019-05-08 Tom Tromey <tom@tromey.com>
9400
9401 * symtab.c (struct symbol_cache): Add destructor and
9402 initializers.
9403 (symbol_cache_key): Move. Change type.
9404 (make_symbol_cache, free_symbol_cache): Remove.
9405 (get_symbol_cache): Update.
9406 (symbol_cache_cleanup): Remove.
9407 (ALL_PSPACES, symbol_cache_flush)
9408 (maintenance_print_symbol_cache)
9409 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9410 Update.
9411
9412 2019-05-08 Tom Tromey <tom@tromey.com>
9413
9414 * symtab.c (struct main_info): Add destructor and initializers.
9415 (main_progspace_key): Move. Change type.
9416 (get_main_info): Update.
9417 (main_info_cleanup): Remove.
9418 (_initialize_symtab): Update.
9419
9420 2019-05-08 Tom Tromey <tom@tromey.com>
9421
9422 * registry.h (DECLARE_REGISTRY): Define the _key class.
9423
9424 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * NEWS: Merge two 'New commands' sections.
9427
9428 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9429
9430 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9431 parameter and use Ada language definition instead.
9432 (ada_val_print_ptr): Remove unused language parameter.
9433 (ada_val_print_num): Remove language parameter and use Ada language
9434 definition instead.
9435 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9436 parameter.
9437 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9438 parameter and use Ada language definition instead.
9439 (ada_val_print_1): Update all ada_val_print_xxx calls.
9440 Remove language parameter.
9441 (ada_val_print): Update ada_val_print_1 call.
9442
9443 2019-05-08 Tom Tromey <tromey@adacore.com>
9444
9445 * remote.c (remote_hw_watchpoint_limit)
9446 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9447 Now static.
9448
9449 2019-05-08 Tom Tromey <tromey@adacore.com>
9450
9451 * maint.c (_initialize_maint_cmds): Move initialization code to
9452 remote.c.
9453 (watchdog, show_watchdog): Move to remote.c.
9454 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9455 "watchdog" static.
9456 (_initialize_remote): Move initialization code from maint.c.
9457 * defs.h (watchdog): Don't declare.
9458
9459 2019-05-08 Tom Tromey <tromey@adacore.com>
9460
9461 * tui/tui-interp.c: Include main.h.
9462 * interps.c: Include main.h.
9463 * main.h (interpreter_p): Declare.
9464 * defs.h (interpreter_p): Don't declare.
9465
9466 2019-05-08 Tom Tromey <tromey@adacore.com>
9467
9468 * dwarf2loc.c: Include dwarf2read.h.
9469 * defs.h (read_unsigned_leb128): Don't declare.
9470 * dwarf2read.h (read_unsigned_leb128): Declare.
9471
9472 2019-05-08 Tom Tromey <tromey@adacore.com>
9473
9474 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9475 method.
9476
9477 2019-05-08 Tom Tromey <tromey@adacore.com>
9478
9479 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9480 when no wrap column is set.
9481
9482 2019-05-08 Tom Tromey <tromey@adacore.com>
9483
9484 * c-lang.c (c_get_string): Handle non-C-style arrays.
9485
9486 2019-05-08 Tom Tromey <tromey@adacore.com>
9487
9488 * typeprint.c (print_offset_data::update): Print the bit offset,
9489 not the number of bits remaining.
9490
9491 2019-05-08 Tom Tromey <tromey@adacore.com>
9492
9493 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9494 padding at end of comment.
9495
9496 2019-05-08 Tom Tromey <tromey@adacore.com>
9497
9498 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9499 Compare main types.
9500
9501 2019-05-06 Tom Tromey <tom@tromey.com>
9502
9503 * common/scoped_mmap.c: Include common-defs.h.
9504 * common/scoped_mmap.h: Don't include config.h.
9505
9506 2019-05-04 Tom Tromey <tom@tromey.com>
9507
9508 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9509 (struct aarch64_call_info): Add initializers.
9510 <si>: Now a std::vector.
9511 (pass_on_stack, aarch64_push_dummy_call): Update.
9512
9513 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9514 Tom Tromey <tom@tromey.com>
9515
9516 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9517 (ppc_threads): Now a std::vector. Now static.
9518 (hwdebug_find_thread_points_by_tid)
9519 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9520 Update.
9521
9522 2019-05-04 Tom Tromey <tom@tromey.com>
9523
9524 * arc-tdep.c (arc_tdesc_init): Return bool.
9525
9526 2019-05-04 Tom Tromey <tom@tromey.com>
9527
9528 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9529 Use gdb_assert_not_reached.
9530
9531 2019-05-04 Tom Tromey <tom@tromey.com>
9532
9533 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9534 "false".
9535
9536 2019-05-04 Tom Tromey <tom@tromey.com>
9537
9538 * arc-tdep.c (arc_tdesc_init): Use bool.
9539
9540 2019-05-04 Tom Tromey <tom@tromey.com>
9541
9542 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9543
9544 2019-05-04 Tom Tromey <tom@tromey.com>
9545
9546 * cli/cli-cmds.c (valid_command_p): Return bool.
9547
9548 2019-05-04 Tom Tromey <tom@tromey.com>
9549
9550 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9551 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9552
9553 2019-05-04 Raul Tambre <raul@tambre.ee>
9554
9555 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9556 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9557 operator for comparison.
9558
9559 2019-05-04 Tom Tromey <tom@tromey.com>
9560
9561 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9562 (lookup_partial_symbol, print_partial_symbols)
9563 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9564 (psymbol_compare): Update.
9565 (add_psymbol_to_bcache): Clear the entire psymbol.
9566 (maintenance_check_psymtabs): Update.
9567 * psympriv.h (struct partial_symbol): Don't derive from
9568 general_symbol_info.
9569 <obj_section, unrelocated_address, address,
9570 set_unrelocated_address>: Update.
9571 <ginfo>: New member.
9572 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9573 (debug_names::write_psymbols): Update.
9574
9575 2019-05-04 Tom de Vries <tdevries@suse.de>
9576
9577 * contrib/cc-with-tweaks.sh: Support -n arg.
9578
9579 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9580
9581 * corelow.c (core_target::detach): Ensure frame cache and
9582 register caches are cleared.
9583 inferior.c (exit_inferior_1): Likewise.
9584
9585 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9586 Tom Tromey <tom@tromey.com>
9587
9588 * dictionary.c (collate_pending_symbols_by_language): Remove
9589 "struct" from foreach.
9590 * symtab.c (lookup_global_symbol_from_objfile)
9591 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9592 foreach.
9593 * ser-tcp.c (net_open): Remove "struct" from foreach.
9594 * objfiles.c (objfile_relocate, objfile_rebase)
9595 (objfile_has_symbols): Remove "struct" from foreach.
9596 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9597 from foreach.
9598 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9599 foreach.
9600 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9601 "struct" from foreach.
9602 * ada-lang.c (create_excep_cond_exprs)
9603 (ada_exception_catchpoint_cond_string): Remove "struct" from
9604 foreach.
9605
9606 2019-05-03 Tom Tromey <tromey@adacore.com>
9607
9608 * ada-exp.y (convert_char_literal): Check suffix of each
9609 enumerator.
9610
9611 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9612
9613 PR ada/21406:
9614 * ada-exp.y (yywrap): Don't define.
9615 * ada-lex.l (%option): Add noyywrap
9616 (yywrap): Remove.
9617
9618 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9619
9620 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9621 _WIN32_WINNT to the XP level, unless already defined to a higher
9622 level.
9623
9624 * unittests/parse-connection-spec-selftests.c:
9625 * ser-tcp.c:
9626 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9627 override.
9628
9629 * symfile.c (find_separate_debug_file): Remove colon from the
9630 drive spec of DOS/Windows file names of the target, so that the
9631 file name produced from DEBUGDIR and the target's directory will
9632 be valid on DOS/Windows systems.
9633
9634 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * rust-lang.c (val_print_struct): Handle printing structures
9637 containing strings.
9638
9639 2019-05-02 Tom Tromey <tromey@adacore.com>
9640
9641 * valarith.c (_initialize_valarith): Remove.
9642
9643 2019-05-01 Tom Tromey <tromey@adacore.com>
9644
9645 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9646 bitfields.
9647
9648 2019-05-01 Tom Tromey <tromey@adacore.com>
9649
9650 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9651 for big-endian copies.
9652
9653 2019-04-30 Ali Tamur <tamur@google.com>
9654 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9655 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9656 (read_3_bytes): New function.
9657
9658 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9659
9660 * windows-nat.c (main_thread_id): Delete.
9661 (handle_output_debug_string): Replace main_thread_id by
9662 current_event.dwThreadId.
9663 (fake_create_process): Likewise.
9664 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9665 Do not set main_thread_id.
9666 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9667 current_event.dwThreadId.
9668 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9669
9670 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9671
9672 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9673 Use current_event.dwThreadId instead of main_thread_id.
9674
9675 2019-04-30 Tom Tromey <tromey@adacore.com>
9676
9677 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9678 (create_excep_cond_exprs): Iterate over program spaces.
9679 (ada_exception_catchpoint_cond_string): Examine all minimal
9680 symbols for exception types.
9681
9682 2019-04-30 Tom Tromey <tromey@adacore.com>
9683
9684 PR c++/24470:
9685 * dwarf2read.c (process_structure_scope): Handle case where type
9686 has template parameters but no symbol was created.
9687
9688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9689 Chris January <chris.january@arm.com>
9690
9691 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9692 qualifier.
9693 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9694
9695 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9696
9697 * f-typeprint.c (f_print_type): Update rules for printing
9698 whitespace.
9699 (f_type_print_varspec_suffix): Likewise.
9700
9701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9702 Chris January <chris.january@arm.com>
9703
9704 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9705 function arguments.
9706
9707 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9708
9709 * f-lang.c (build_fortran_types): Change name of void type to
9710 lower case.
9711 * f-typeprint.c (f_type_print_base): Print the name of the void
9712 type, rather than a fixed string.
9713 * f-valprint.c (f_decorations): Use lower case void string.
9714
9715 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9716 Chris January <chris.january@arm.com>
9717
9718 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9719 types for Fortran.
9720
9721 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9722 Chris January <chris.january@arm.com>
9723 David Lecomber <david.lecomber@arm.com>
9724
9725 * f-exp.y (BINOP_INTRINSIC): New token.
9726 (exp): New parser rule handling BINOP_INTRINSIC.
9727 (f77_keywords): Add new builtin procedures.
9728 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9729 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9730 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9731 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9732 (print_unop_subexp_f): New function.
9733 (print_binop_subexp_f): New function.
9734 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9735 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9736 (dump_subexp_body_f): Likewise.
9737 (operator_check_f): Likewise.
9738 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9739 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9740
9741 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9742
9743 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9744 UNOP_KIND.
9745 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9746 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9747 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9748 (operator_length_f): New fuction.
9749 (print_subexp_f): New function.
9750 (op_name_f): New function.
9751 (dump_subexp_body_f): New function.
9752 (operator_check_f): New function.
9753 (exp_descriptor_f): Replace standard expression handling functions
9754 with new functions.
9755 * gdb/fortran-operator.def: New file.
9756 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9757 * gdb/std-operator.def: Remove UNOP_KIND.
9758
9759 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9760
9761 * std-operator.def: Remove unbalanced, stray double quote
9762 character.
9763
9764 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9765 Chris January <chris.january@arm.com>
9766 Daniel Everett <daniel.everett@arm.com>
9767 Nick Forrington <nick.forrington@arm.com>
9768 Richard Bunt <richard.bunt@arm.com>
9769
9770 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9771 of depth when printing anonymous structs or unions.
9772 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9773 Don't print either the top-level value, or the children if the
9774 max-depth is exceeded.
9775 (ppscm_print_children): When printing the key of a map, allow one
9776 extra level of depth.
9777 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9778 print either the top-level value, or the children if the max-depth
9779 is exceeded.
9780 (print_children): When printing the key of a map, allow one extra
9781 level of depth.
9782 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9783 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9784 (user_print_options): Initialise max_depth field.
9785 (val_print_scalar_or_string_type_p): New function.
9786 (val_print): Check to see if the max depth has been reached.
9787 (val_print_check_max_depth): Define new function.
9788 (show_print_max_depth): New function.
9789 (_initialize_valprint): Add 'print max-depth' option.
9790 * valprint.h (struct value_print_options) <max_depth>: New field.
9791 (val_print_check_max_depth): Declare new function.
9792 * NEWS: Document new feature.
9793
9794 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9795
9796 * ada-lang.c (ada_language_defn): Initialise new field.
9797 * c-lang.c (c_is_string_type_p): New function.
9798 (c_language_defn): Initialise new field.
9799 (cplus_language_defn): Initialise new field.
9800 (asm_language_defn): Initialise new field.
9801 (minimal_language_defn): Initialise new field.
9802 * c-lang.h (c_is_string_type_p): Declare new function.
9803 * d-lang.c (d_language_defn): Initialise new field.
9804 * f-lang.c (f_is_string_type_p): New function.
9805 (f_language_defn): Initialise new field.
9806 * go-lang.c (go_is_string_type_p): New function.
9807 (go_language_defn): Initialise new field.
9808 * language.c (default_is_string_type_p): New function.
9809 (unknown_language_defn): Initialise new field.
9810 (auto_language_defn): Initialise new field.
9811 * language.h (struct language_defn) <la_is_string_type_p>: New
9812 member variable.
9813 (default_is_string_type_p): Declare new function.
9814 * m2-lang.c (m2_language_defn): Initialise new field.
9815 * objc-lang.c (objc_language_defn): Initialise new field.
9816 * opencl-lang.c (opencl_language_defn): Initialise new field.
9817 * p-lang.c (pascal_is_string_type_p): New function.
9818 (pascal_language_defn): Initialise new field.
9819 * rust-lang.c (rust_is_string_type_p): New function.
9820 (rust_language_defn): Initialise new field.
9821
9822 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9825 New field.
9826 * ada-lang.c (ada_language_defn): Initialise new field.
9827 * c-lang.c (c_language_defn): Likewise.
9828 (cplus_language_defn): Likewise.
9829 (asm_language_defn): Likewise.
9830 (minimal_language_defn): Likewise.
9831 * d-lang.c (d_language_defn): Likewise.
9832 * f-lang.c (f_language_defn): Likewise.
9833 * go-lang.c (go_language_defn): Likewise.
9834 * language.c (unknown_language_defn): Likewise.
9835 (auto_language_defn): Likewise.
9836 * m2-lang.c (m2_language_defn): Likewise.
9837 * objc-lang.c (objc_language_defn): Likewise.
9838 * opencl-lang.c (opencl_language_defn): Likewise.
9839 * p-lang.c (pascal_language_defn): Likewise.
9840 * rust-lang.c (rust_language_defn): Likewise.
9841
9842 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9843
9844 * ada-lang.c (ada_is_character_type): Change return type to bool.
9845 (ada_is_string_type): Likewise.
9846 * ada-lang.h (ada_is_character_type): Update declaration
9847 (ada_is_string_type): Likewise.
9848
9849 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9850
9851 Support style in 'frame|thread apply'
9852
9853 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9854 * record.c (record_start, record_stop): Update callers of
9855 execute_command_to_string with false.
9856 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9857 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9858 methods.
9859 (class string_file): New constructor with term_out parameter.
9860 Override methods term_out and can_emit_style_escape. New member
9861 term_out.
9862 (class stdio_file): Override can_emit_style_escape.
9863 (class tee_file): Override term_out and can_emit_style_escape.
9864 * utils.h (can_emit_style_escape): Remove.
9865 * utils.c (can_emit_style_escape): Likewise.
9866 Update all callers of can_emit_style_escape (SOMESTREAM) to
9867 SOMESTREAM->can_emit_style_escape.
9868 * source-cache.c (source_cache::get_source_lines): Likewise.
9869 * stack.c (frame_apply_command_count): Call execute_command_to_string
9870 passing the term_out characteristic of the current gdb_stdout.
9871 * thread.c (thr_try_catch_cmd): Likewise.
9872 * top.c (execute_command_to_string): pass term_out parameter
9873 to construct the string_file for the command output.
9874 * ui-file.c (term_cli_styling): New function (most code moved
9875 from utils.c can_emit_style_escape).
9876 (string_file::string_file, string_file::can_emit_style_escape,
9877 stdio_file::can_emit_style_escape, tee_file::term_out,
9878 tee_file::can_emit_style_escape): New functions.
9879
9880 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881
9882 * NEWS: Mention the new set|show may-call-functions.
9883 * infcall.c (may_call_functions_p): New variable.
9884 (show_may_call_functions_p): New function.
9885 (call_function_by_hand_dummy): Throws an error if not
9886 may-call-functions.
9887 (_initialize_infcall): Call add_setshow_boolean_cmd for
9888 may-call-functions.
9889
9890 2019-04-25 Keith Seitz <keiths@redhat.com>
9891
9892 PR c++/24367
9893 * cp-support.c (inspect_type): Don't attempt substitutions
9894 of symbol with the same name.
9895
9896 2019-04-25 Tom Tromey <tromey@adacore.com>
9897
9898 PR gdb/24475:
9899 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9900 static.
9901
9902 2019-04-25 Tom Tromey <tromey@adacore.com>
9903
9904 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9905 rvalue reference.
9906 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9907 (gdb_xml_parser::parse): Use std::move.
9908 * python/python-internal.h (gdbpy_convert_exception): Take a const
9909 reference.
9910 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9911 std::move.
9912 * python/py-utils.c (gdbpy_convert_exception): Take a const
9913 reference.
9914 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9915 Use std::move.
9916 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9917 Use std::move.
9918 * mi/mi-main.c (mi_print_exception): Take a const reference.
9919 * main.c (handle_command_errors): Take a const reference.
9920 * linespec.c (parse_linespec): Use std::move.
9921 * infcall.c (run_inferior_call): Use std::move.
9922 (call_function_by_hand_dummy): Use std::move.
9923 * exec.c (try_open_exec_file): Use std::move.
9924 * exceptions.h (exception_print, exception_fprintf)
9925 (exception_print_same): Update.
9926 * exceptions.c (print_exception, exception_print)
9927 (exception_fprintf, exception_print_same): Change parameters to
9928 const reference.
9929 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9930 * common/new-op.c: Use std::move.
9931 * common/common-exceptions.h (struct gdb_exception): Add move
9932 constructor.
9933 (struct gdb_exception_error, struct gdb_exception_quit, struct
9934 gdb_quit_bad_alloc): Change constructor to move constructor.
9935 (throw_exception): Change parameter to rvalue reference.
9936 * common/common-exceptions.c (throw_exception): Take rvalue
9937 reference.
9938 * cli/cli-interp.c (safe_execute_command): Use std::move.
9939 * breakpoint.c (insert_bp_location, location_to_sals): Use
9940 std::move.
9941
9942 2019-04-25 Tom Tromey <tromey@adacore.com>
9943
9944 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9945 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9946 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9947 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9948 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9949 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9950 guile/scm-value.c: Use unpack.
9951 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9952 gdbscm_gdb_exception.
9953 (gdbscm_throw_gdb_exception): Likewise.
9954 (struct gdbscm_gdb_exception): New.
9955 (unpack): New function.
9956 (gdbscm_wrap): Use unpack.
9957
9958 2019-04-25 Tom Tromey <tromey@adacore.com>
9959
9960 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9961 (gdb_rl_callback_handler): Use std::move.
9962 * common/common-exceptions.h (struct gdb_exception): Add move
9963 assignment operator.
9964 (throw_exception_sjlj): Change "exception" to const reference.
9965 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9966 (throw_exception_sjlj): Change "exception" to const reference.
9967
9968 2019-04-25 Tom Tromey <tromey@adacore.com>
9969
9970 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9971 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9972 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9973 Update.
9974 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9975 Update.
9976 * mi/mi-interp.c (mi_interp::exec): Update.
9977 * linespec.c (parse_linespec): Update.
9978 * infcall.c (run_inferior_call): Update.
9979 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9980 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9981 (gdbscm_lookup_global_symbol): Update.
9982 * guile/scm-param.c (gdbscm_parameter_value): Update.
9983 * guile/scm-frame.c (gdbscm_frame_read_register)
9984 (gdbscm_frame_read_var): Update.
9985 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9986 * exec.c (try_open_exec_file): Update.
9987 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9988 (gdb_rl_callback_handler): Update.
9989 * common/common-exceptions.h (exception_none): Don't declare.
9990 * common/common-exceptions.c (exception_none): Don't define.
9991 (struct catcher) <exception>: Update.
9992 * cli/cli-interp.c (safe_execute_command): Update.
9993 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9994
9995 2019-04-25 Ali Tamur <tamur@google.com>
9996
9997 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9998 (read_attribute_value): Likewise.
9999 (dwarf2_read_addr_index): Update comment.
10000 (read_str_index): Add DW_FORM_strx.
10001 (dwarf2_string_attr): Likewise.
10002 (dwarf2_const_value_attr): Likewise.
10003 (dump_die_shallow): Likewise.
10004 (dwarf2_fetch_constant_bytes): Likewise.
10005 (skip_form_bytes): Likewise.
10006 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10007
10008 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10009
10010 PR corefiles/11608
10011 PR corefiles/18187
10012 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10013 OFFSET. Verify if current mapping contains an ELF header.
10014 (linux_find_memory_regions_full): Adjust call to
10015 dump_mapping_p.
10016
10017 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10018 Kang Li <kanglictf@gmail.com>
10019
10020 PR gdb/21600
10021
10022 * dwarf2-frame.c (read_initial_length): Be consistent about using
10023 unsigned representation of length.
10024 (decode_frame_entry_1): Likewise. Check for wraparound of
10025 end pointer as well as buffer overflow.
10026
10027 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10028
10029 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10030 "vq".
10031
10032 2019-04-24 Tom Tromey <tromey@adacore.com>
10033
10034 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10035
10036 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10037
10038 * s12z-tdep.c (s12z_unwind_pc): Delete.
10039 (s12z_unwind_sp): Delete.
10040 (s12z_gdbarch_init): Don't register deleted functions with
10041 gdbarch.
10042
10043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10044
10045 * rl78-tdep.c (rl78_unwind_sp): Delete.
10046 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10047
10048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10049
10050 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10051 (xstormy16_unwind_pc): Delete.
10052 (xstormy16_dummy_id): Delete.
10053 (xstormy16_gdbarch_init): Don't register deleted functions with
10054 gdbarch.
10055
10056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10057
10058 * vax-tdep.c (vax_unwind_pc): Delete.
10059 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10060
10061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10062
10063 * v850-tdep.c (v850_unwind_sp): Delete.
10064 (v850_unwind_pc): Delete.
10065 (v850_dummy_id): Delete.
10066 (v850_gdbarch_init): Don't register deleted functions with
10067 gdbarch.
10068
10069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10070
10071 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10072 (tilegx_unwind_pc): Delete.
10073 (tilegx_unwind_dummy_id): Delete.
10074 (tilegx_gdbarch_init): Don't register deleted functions with
10075 gdbarch.
10076
10077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10078
10079 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10080 (tic6x_dummy_id): Delete.
10081 (tic6x_gdbarch_init): Don't register deleted functions with
10082 gdbarch.
10083
10084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10085
10086 * sparc-tdep.c (sparc_unwind_pc): Delete.
10087 (sparc32_gdbarch_init): Don't register deleted function with
10088 gdbarch.
10089
10090 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10091
10092 * sh-tdep.c (sh_unwind_sp): Delete.
10093 (sh_unwind_pc): Delete.
10094 (sh_dummy_id): Delete.
10095 (sh_gdbarch_init): Don't register deleted functions with
10096 gdbarch.
10097
10098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10099
10100 * score-tdep.c (score_unwind_sp): Delete.
10101 (score_unwind_pc): Delete.
10102 (score_dummy_id): Delete.
10103 (score_gdbarch_init): Don't register deleted functions with
10104 gdbarch.
10105
10106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10107
10108 * rx-tdep.c (rx_unwind_pc): Delete.
10109 (rx_unwind_sp): Delete.
10110 (rx_dummy_id): Delete.
10111 (rx_gdbarch_init): Don't register deleted functions with
10112 gdbarch. Update comment.
10113
10114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10115
10116 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10117 (rs6000_dummy_id): Delete.
10118 (rs6000_gdbarch_init): Don't register deleted functions with
10119 gdbarch.
10120
10121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10122
10123 * or1k-tdep.c (or1k_dummy_id): Delete.
10124 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10125
10126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 * nios2-tdep.c (nios2_dummy_id): Delete.
10129 (nios2_unwind_sp): Delete.
10130 (nios2_gdbarch_init): Don't register deleted functions with
10131 gdbarch.
10132
10133 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10134
10135 * nds32-tdep.c (nds32_dummy_id): Delete.
10136 (nds32_unwind_pc): Delete.
10137 (nds32_unwind_sp): Delete.
10138 (nds32_gdbarch_init): Don't register deleted functions with
10139 gdbarch.
10140
10141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10142
10143 * msp430-tdep.c (msp430_unwind_pc): Delete.
10144 (msp430_unwind_sp): Delete.
10145 (msp430_dummy_id): Delete.
10146 (msp430_gdbarch_init): Don't register deleted functions with
10147 gdbarch.
10148
10149 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10150
10151 * moxie-tdep.c (moxie_unwind_sp): Delete.
10152 (moxie_unwind_pc): Delete.
10153 (moxie_dummy_id): Delete.
10154 (moxie_gdbarch_init): Don't register deleted functions with
10155 gdbarch.
10156
10157 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10160 (mn10300_unwind_pc): Delete.
10161 (mn10300_unwind_sp): Delete.
10162 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10163 mn10300_unwind_sp.
10164 (mn10300_frame_unwind_init): Don't register deleted functions with
10165 gdbarch.
10166
10167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10168
10169 * mep-tdep.c (mep_unwind_pc): Delete.
10170 (mep_unwind_sp): Delete.
10171 (mep_dummy_id): Delete.
10172 (mep_gdbarch_init): Don't register deleted functions with
10173 gdbarch.
10174
10175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10176
10177 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10178 (m68hc11_unwind_sp): Delete.
10179 (m68hc11_gdbarch_init): Don't register deleted functions with
10180 gdbarch.
10181
10182 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10183
10184 * m32r-tdep.c (m32r_unwind_sp): Delete.
10185 (m32r_unwind_pc): Delete.
10186 (m32r_dummy_id): Delete.
10187 (m32r_gdbarch_init): Don't register deleted functions with
10188 gdbarch.
10189
10190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * m32c-tdep.c (m32c_unwind_pc): Delete.
10193 (m32c_unwind_sp): Delete.
10194 (m32c_dummy_id): Delete.
10195 (m32c_gdbarch_init): Don't register deleted functions with
10196 gdbarch.
10197
10198 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10199
10200 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10201 (lm32_unwind_pc): Delete.
10202 (lm32_dummy_id): Delete.
10203 (lm32_gdbarch_init): Don't register deleted functions with
10204 gdbarch.
10205
10206 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10209 (iq2000_unwind_pc): Delete.
10210 (iq2000_dummy_id): Delete.
10211 (iq2000_gdbarch_init): Don't register deleted functions with
10212 gdbarch.
10213
10214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * nds32-tdep.c (nds32_type_align): Delete.
10217 (nds32_push_dummy_call): Use type_align instead.
10218
10219 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * arm-tdep.c (arm_type_align): Only handle vector override case.
10222 (arm_push_dummy_call): Use type_align.
10223 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10224
10225 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10226
10227 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10228 case.
10229 (pass_on_stack): Use type_align.
10230 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10231 function.
10232
10233 2019-04-23 Tom Tromey <tromey@adacore.com>
10234
10235 * dwarf2read.c (line_header::file_name_at): Remove unused
10236 overload.
10237
10238 2019-04-23 Tom de Vries <tdevries@suse.de>
10239
10240 PR gdb/24438
10241 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10242 invocation.
10243
10244
10245 2019-03-27 Ali Tamur <tamur@google.com>
10246
10247 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10248 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10249 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10250 (dwarf_expr_context::get_addr_index): Likewise
10251 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10252 (symbol_needs_eval_context::get_addr_index): Likewise
10253 (disassemble_dwarf_expression): Add DW_OP_addrx
10254 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10255 (read_cutu_die_from_dwo): Update comment
10256 (skip_one_die): Add DW_FORM_addrx
10257 (read_attribute_value): Likewise
10258 (var_decode_location): Add DW_OP_addrx
10259 (dwarf2_const_value_attr): Add DW_FORM_addrx
10260 (dump_die_shallow): Likewise
10261 (dwarf2_fetch_constant_bytes): Likewise
10262 (decode_locdesc): Add DW_OP_addrx
10263 (skip_form_bytes): Add DW_FORM_addrx
10264
10265 2019-04-22 Ali Tamur <tamur@google.com>
10266
10267 * MAINTAINERS (Write After Approval): Add self.
10268
10269 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10272 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10273 (open_symbol_file_object): Likewise.
10274 (svr4_default_sos): Add info parameter.
10275 (svr4_read_so_list): Likewise.
10276 (svr4_current_sos_direct): Adjust functions calls to pass down
10277 info.
10278 (svr4_current_sos_1): Add info parameter.
10279 (svr4_current_sos): Call get_svr4_info, pass info down to
10280 svr4_current_sos_1.
10281 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10282 get_svr4_info.
10283 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10284 get_svr4_info.
10285 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10286 to get_svr4_info.
10287 (probes_table_remove_objfile_probes): Likewise.
10288 (register_solib_event_probe): Add info parameter.
10289 (solist_update_incremental): Pass info parameter down to
10290 svr4_read_so_list.
10291 (disable_probes_interface): Add info parameter.
10292 (svr4_handle_solib_event): Pass current_program_space to
10293 get_svr4_info. Adjust disable_probes_interface cleanup.
10294 (svr4_create_probe_breakpoints): Add info parameter, pass it
10295 down to register_solib_event_probe.
10296 (svr4_create_solib_event_breakpoints): Add info parameter,
10297 pass it down to svr4_create_probe_breakpoints.
10298 (enable_break): Pass info down to
10299 svr4_create_solib_event_breakpoints.
10300 (svr4_solib_create_inferior_hook): Pass current_program_space to
10301 get_svr4_info.
10302 (svr4_clear_solib): Likewise.
10303
10304 2019-04-22 Pedro Alves <palves@redhat.com>
10305
10306 * solib-svr4.c (svr4_free_objfile_observer): New.
10307 (probe_and_action::objfile): New field.
10308 (probes_table_htab_remove_objfile_probes)
10309 (probes_table_remove_objfile_probes): New functions.
10310 (register_solib_event_probe): Add 'objfile' parameter. Store it
10311 in the new probe_and_action. Don't store the probe in 'lookup'.
10312 (svr4_create_probe_breakpoints): Pass objfile to
10313 register_solib_event_probe.
10314 (_initialize_svr4_solib): Register a free_objfile observer.
10315
10316 2019-04-19 Tom Tromey <tom@tromey.com>
10317
10318 * common/queue.h: Remove.
10319
10320 2019-04-19 Tom Tromey <tom@tromey.com>
10321
10322 * event-loop.c: Don't include "common/queue.h".
10323
10324 2019-04-19 Tom Tromey <tom@tromey.com>
10325
10326 * remote.c (remote_target): Use delete.
10327 * remote-notif.h: Include <list>, not "common/queue.h".
10328 (notif_client_p): Remove typedef.
10329 (remote_notif_state): Add constructor, destructor, initializer.
10330 <notif_queue>: Now a std::list.
10331 (remote_notif_state_xfree): Don't declare.
10332 * remote-notif.c (remote_notif_process, handle_notification)
10333 (remote_notif_state_allocate): Update.
10334 (~remote_notif_state): Rename from remote_notif_state_xfree.
10335
10336 2019-04-19 Tom Tromey <tom@tromey.com>
10337
10338 * symfile.c (reread_symbols): Update.
10339 * objfiles.c (objfile_register_static_link)
10340 (objfile_lookup_static_link): Update
10341 (~objfile) Don't delete static_links.
10342 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10343
10344 2019-04-19 Tom Tromey <tom@tromey.com>
10345
10346 * type-stack.h (struct type_stack) <insert>: Constify string.
10347 * type-stack.c (type_stack::insert): Constify string.
10348 * gdbtypes.h (lookup_template_type): Update.
10349 (address_space_name_to_int): Update.
10350 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10351 const.
10352 (lookup_template_type): Make name const.
10353 * c-exp.y: Update rules.
10354 (lex_one_token, classify_name, classify_inner_name)
10355 (c_print_token): Update.
10356 * p-exp.y: Update rules.
10357 (yylex): Update.
10358 * f-exp.y: Update rules.
10359 (yylex): Update.
10360 * d-exp.y: Update rules.
10361 (lex_one_token, classify_name, classify_inner_name): Update.
10362 * parse.c (write_dollar_variable, copy_name): Return std::string.
10363 * parser-defs.h (copy_name): Change return type.
10364 * m2-exp.y: Update rules.
10365 (yylex): Update.
10366 * go-exp.y (lex_one_token): Update.
10367 Update rules.
10368 (classify_unsafe_function, classify_packaged_name)
10369 (classify_name, yylex): Update.
10370
10371 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10372
10373 * configure.ac: add --enable-source-highlight switch.
10374 * configure: Regenerate.
10375 * top.c (print_gdb_version): plumb --enable-source-highlight
10376 status to "show configuration".
10377
10378 2019-04-19 Tom Tromey <tromey@adacore.com>
10379
10380 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10381 Check ADA_TYPE_P.
10382 (empty_record, ada_template_to_fixed_record_type_1)
10383 (template_to_static_fixed_type)
10384 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10385 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10386 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10387 macros.
10388
10389 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10390
10391 PR symtab/24423:
10392 * source.c (print_source_lines_base): Advance "iter" when a
10393 control character is seen.
10394
10395 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10396
10397 * inferior.h (struct infcall_suspend_state_deleter):
10398 Catch exception in destructor to avoid crash.
10399
10400 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10401
10402 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10403 close to the add_com "shell".
10404
10405 2019-04-18 Tom Tromey <tromey@adacore.com>
10406
10407 * process-stratum-target.h (class process_stratum_target)
10408 <stratum>: Add "final".
10409
10410 2019-04-17 Tom Tromey <tromey@adacore.com>
10411
10412 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10413 against nullptr before use.
10414
10415 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10416
10417 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10418
10419 2019-04-17 Jim Wilson <jimw@sifive.com>
10420 Andrew Burgess <andrew.burgess@embecosm.com>
10421
10422 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10423 code read might fail, assume 4-byte breakpoint in that case.
10424
10425 2019-04-15 Leszek Swirski <leszeks@google.com>
10426
10427 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10428 rather than a hand-rolled POD check when checking for forced MEMORY
10429 classification.
10430
10431 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10432
10433 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10434 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10435 function.
10436 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10437 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10438 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10439 declaration.
10440
10441 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10442
10443 * aarch64-linux-nat.c
10444 (aarch64_linux_nat_target::thread_architecture): Add override.
10445 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10446 each VQ.
10447
10448 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10449
10450 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10451
10452 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10453
10454 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10455 target types of size 96-bits, add some additional comments, and
10456 check that the builtin type we found was the correct size.
10457
10458 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10459
10460 * utils.c (prompt_for_continue): Don't restore the styling at the
10461 end, as applied_style has the wrong value. This fixes styling in
10462 long lists of file names that are interrupted by the "Continue?"
10463 prompt.
10464
10465 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10468 * c-lang.c (c_language_defn): Likewise.
10469 (cplus_language_defn): Likewise.
10470 (asm_language_defn): Likewise.
10471 (minimal_language_defn): Likewise.
10472 * d-lang.c (d_language_defn): Likewise.
10473 * f-lang.c (f_language_defn): Likewise.
10474 * go-lang.c (go_language_defn): Likewise.
10475 * language.c (unknown_language_defn): Likewise.
10476 (auto_language_defn): Likewise.
10477 * language.h (struct language_defn): Remove la_magic field.
10478 (LANG_MAGIC): Delete.
10479 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10480 * objc-lang.c (objc_language_defn): Likewise.
10481 * opencl-lang.c (opencl_language_defn): Likewise.
10482 * p-lang.c (pascal_language_defn): Likewise.
10483 * rust-lang.c (rust_language_defn): Likewise.
10484
10485 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10486
10487 * riscv-tdep.c (riscv_type_align): New function.
10488 (riscv_type_alignment): Delete.
10489 (riscv_arg_location): Use 'type_align'.
10490 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10491
10492 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * gdbtypes.c (type_align): A struct with no non-static fields also
10495 has alignment of 1.
10496
10497 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10500 component to 0.
10501 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10502 member.
10503 (riscv_struct_info::analyse): New implementation using new
10504 analyse_inner member function.
10505 (riscv_struct_info::field_offset): New member function.
10506 (riscv_struct_info::m_offsets): New member variable.
10507 (riscv_struct_info::analyse_inner): New private member function,
10508 takes the old implementation of riscv_struct_info::analyse but
10509 extended to track field offsets.
10510 (riscv_call_arg_struct): Update the struct folding special cases
10511 to handle cases where empty C++ structs, which are non-zero
10512 length, are found.
10513 (riscv_arg_location): Initialise the length of each location, a
10514 non-zero length now indicates the location is in use.
10515 (riscv_push_dummy_call): Allow for the first location having a
10516 non-zero offset when setting up arguments.
10517 (riscv_return_value): Likewise, but for return values.
10518
10519 2019-04-11 Tom Tromey <tromey@adacore.com>
10520
10521 * utils.c (internal_vproblem): Make "msg" const.
10522
10523 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10524
10525 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10526 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10527 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10528 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10529
10530 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10531
10532 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10533 function.
10534 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10535 of amd64_collect_native_gregset.
10536 (amd64_linux_nat_target::store_registers): Likewise.
10537
10538 2019-04-10 Tom Tromey <tom@tromey.com>
10539
10540 * symtab.c (lookup_global_symbol_from_objfile)
10541 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10542 * objfiles.h (class separate_debug_iterator): New.
10543 (class separate_debug_range): New.
10544 (struct objfile) <separate_debug_objfiles>: New method.
10545 (objfile_separate_debug_iterate): Don't declare.
10546 * objfiles.c (separate_debug_iterator::operator++): Rename from
10547 objfile_separate_debug_iterate.
10548 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10549 iterator.
10550 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10551 iterator.
10552
10553 2019-04-10 Tom Tromey <tom@tromey.com>
10554
10555 * symfile.c (reread_symbols): Remove old comment.
10556 * objfiles.c (free_all_objfiles): Fix a typo.
10557
10558 2019-04-10 Tom Tromey <tom@tromey.com>
10559
10560 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10561 * minsyms.c (lookup_minimal_symbol): Use foreach.
10562 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10563 (lookup_minimal_symbol_solib_trampoline): Likewise.
10564 * symfile.c (reread_symbols): Use foreach.
10565
10566 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10567 Tom Tromey <tromey@adacore.com>
10568
10569 PR rust/24414:
10570 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10571 (rust_lex_int_test): Change "value" to be LONGEST.
10572 (rust_lex_tests): Add test for long integer literal.
10573
10574 2019-04-09 Tom Tromey <tromey@adacore.com>
10575
10576 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10577 to bool.
10578 (extended_remote_target::attach): Update.
10579 (remote_target::remote_notice_new_inferior): Update.
10580 (remote_target::add_current_inferior_and_thread): Update.
10581 * inferior.c (exit_inferior_1): Use "false".
10582 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10583
10584 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10585
10586 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10587 the "start" command.
10588
10589 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10590
10591 * python/py-inferior.c (infpy_thread_from_thread_handle):
10592 Adjust comments to reflect renaming of thread_from_thread_handle
10593 to thread_from_handle. Adjust keywords. Fix type error message.
10594 (inferior_object_methods): Add thread_from_handle. Retain
10595 thread_from_thread_handle, but mark it as deprecated.
10596
10597 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10598
10599 * gdbthread.h (find_thread_by_handle): Revise declaration.
10600 * thread.c (find_thread_by_handle): Likewise. Adjust
10601 implementation too.
10602 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10603 support for buffer objects as handles.
10604
10605 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10606
10607 * python/py-infthread.c (thpy_thread_handle): New function.
10608 (thread_object_methods): Register thpy_thread_handle.
10609
10610 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10611
10612 * gdbthread.h (thread_to_thread_handle): Declare.
10613 * thread.c (gdbtypes.h): Include.
10614 (thread_to_thread_handle): New function.
10615
10616 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10617 (target_thread_info_to_thread_handle): Declare.
10618 * target.c (target_thread_info_to_thread_handle): New function.
10619 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10620 * target-delegates.c: Regenerate.
10621
10622 * linux-thread-db.c (class thread_db_target): Add method
10623 thread_info_to_thread_handle.
10624 (thread_db_target::thread_info_to_thread_handle): Define.
10625 * remote.c (class remote_target): Add new method
10626 thread_info_to_thread_handle.
10627 (remote_target::thread_info_to_thread_handle): Define.
10628
10629 2019-04-08 Pedro Alves <palves@redhat.com>
10630
10631 * common/common-exceptions.c (throw_exception): Don't create
10632 named object to throw; throw directly.
10633 (throw_it): Likewise. Don't initialize gdb_exception::message
10634 here, with new; pass FMT and AP to the ctor instead.
10635 * common/common-exceptions.h: Include <string>.
10636 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10637 const char *, va_list)): New ctor. Use std::make_shared.
10638 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10639 errors)): Delete.
10640 (gdb_exception_error::gdb_exception_error(enum errors, const char
10641 *, va_list)): New.
10642 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10643 Add assertion.
10644 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10645 errors)): Delete.
10646 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10647 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10648 Add assertion.
10649
10650 2019-04-08 Tom Tromey <tom@tromey.com>
10651
10652 * valops.c (value_rtti_indirect_type): Replace throw_exception
10653 with throw.
10654 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10655 with throw.
10656 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10657 throw.
10658 * target.c (target_translate_tls_address): Replace throw_exception
10659 with throw.
10660 * stack.c (frame_apply_command_count): Replace throw_exception
10661 with throw.
10662 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10663 throw.
10664 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10665 with throw.
10666 * rs6000-tdep.c (rs6000_frame_cache)
10667 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10668 * remote.c: Replace throw_exception with throw.
10669 * record-full.c (record_full_message, record_full_wait_1)
10670 (record_full_restore): Replace throw_exception with throw.
10671 * record-btrace.c:
10672 (get_thread_current_frame_id, record_btrace_start_replaying)
10673 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10674 (cmd_record_btrace_start): Replace throw_exception with throw.
10675 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10676 throw.
10677 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10678 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10679 * linespec.c:
10680 (find_linespec_symbols): Replace throw_exception with throw.
10681 * infrun.c (displaced_step_prepare, resume): Replace
10682 throw_exception with throw.
10683 * infcmd.c (post_create_inferior): Replace throw_exception with
10684 throw.
10685 * inf-loop.c (inferior_event_handler): Replace throw_exception
10686 with throw.
10687 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10688 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10689 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10690 (get_prev_frame_always, get_frame_pc_if_available)
10691 (get_frame_address_in_block_if_available, get_frame_language):
10692 Replace throw_exception with throw.
10693 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10694 throw_exception with throw.
10695 * eval.c (fetch_subexp_value, evaluate_var_value)
10696 (evaluate_funcall, evaluate_subexp_standard): Replace
10697 throw_exception with throw.
10698 * dwarf2loc.c (call_site_find_chain)
10699 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10700 Replace throw_exception with throw.
10701 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10702 with throw.
10703 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10704 throw.
10705 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10706 * completer.c (complete_line_internal): Replace throw_exception
10707 with throw.
10708 * compile/compile-object-run.c (compile_object_run): Replace
10709 throw_exception with throw.
10710 * cli/cli-script.c (process_next_line): Replace throw_exception
10711 with throw.
10712 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10713 (btrace_enable, btrace_maint_update_pt_packets): Replace
10714 throw_exception with throw.
10715 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10716 throw_exception with throw.
10717 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10718 throw_exception with throw.
10719 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10720 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10721 * aarch64-tdep.c (aarch64_make_prologue_cache)
10722 (aarch64_make_stub_cache): Replace throw_exception with throw.
10723
10724 2019-04-08 Tom Tromey <tom@tromey.com>
10725
10726 * common/common-exceptions.c (throw_exception): Rename from
10727 throw_exception_cxx. Remove old copy. Make argument const.
10728 (throw_it): Create and throw exception objects directly.
10729 * common/common-exceptions.h (throw_exception): Make argument
10730 const.
10731 (struct gdb_exception_error): Add constructor.
10732 (struct gdb_exception_quit): Add constructor.
10733
10734 2019-04-08 Tom Tromey <tom@tromey.com>
10735
10736 * common/common-exceptions.h (exception_rethrow): Don't declare.
10737 (TRY_SJLJ): Update comment.
10738 (TRY, CATCH, END_CATCH): Remove.
10739 * common/common-exceptions.c (exception_rethrow): Remove.
10740
10741 2019-04-08 Tom Tromey <tom@tromey.com>
10742
10743 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10744 Remove.
10745 (gdb_exception_error): Rename from
10746 gdb_exception_RETURN_MASK_ERROR.
10747 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10748 (gdb_quit_bad_alloc): Update.
10749 * aarch64-tdep.c: Update.
10750 * ada-lang.c: Update.
10751 * ada-typeprint.c: Update.
10752 * ada-valprint.c: Update.
10753 * amd64-tdep.c: Update.
10754 * arch-utils.c: Update.
10755 * break-catch-throw.c: Update.
10756 * breakpoint.c: Update.
10757 * btrace.c: Update.
10758 * c-varobj.c: Update.
10759 * cli/cli-cmds.c: Update.
10760 * cli/cli-interp.c: Update.
10761 * cli/cli-script.c: Update.
10762 * common/common-exceptions.c: Update.
10763 * common/new-op.c: Update.
10764 * common/selftest.c: Update.
10765 * compile/compile-c-symbols.c: Update.
10766 * compile/compile-cplus-symbols.c: Update.
10767 * compile/compile-object-load.c: Update.
10768 * compile/compile-object-run.c: Update.
10769 * completer.c: Update.
10770 * corelow.c: Update.
10771 * cp-abi.c: Update.
10772 * cp-support.c: Update.
10773 * cp-valprint.c: Update.
10774 * darwin-nat.c: Update.
10775 * disasm-selftests.c: Update.
10776 * dtrace-probe.c: Update.
10777 * dwarf-index-cache.c: Update.
10778 * dwarf-index-write.c: Update.
10779 * dwarf2-frame-tailcall.c: Update.
10780 * dwarf2-frame.c: Update.
10781 * dwarf2loc.c: Update.
10782 * dwarf2read.c: Update.
10783 * eval.c: Update.
10784 * event-loop.c: Update.
10785 * event-top.c: Update.
10786 * exec.c: Update.
10787 * f-valprint.c: Update.
10788 * fbsd-tdep.c: Update.
10789 * frame-unwind.c: Update.
10790 * frame.c: Update.
10791 * gdbtypes.c: Update.
10792 * gnu-v3-abi.c: Update.
10793 * guile/guile-internal.h: Update.
10794 * guile/scm-block.c: Update.
10795 * guile/scm-breakpoint.c: Update.
10796 * guile/scm-cmd.c: Update.
10797 * guile/scm-disasm.c: Update.
10798 * guile/scm-frame.c: Update.
10799 * guile/scm-lazy-string.c: Update.
10800 * guile/scm-math.c: Update.
10801 * guile/scm-param.c: Update.
10802 * guile/scm-ports.c: Update.
10803 * guile/scm-pretty-print.c: Update.
10804 * guile/scm-symbol.c: Update.
10805 * guile/scm-symtab.c: Update.
10806 * guile/scm-type.c: Update.
10807 * guile/scm-value.c: Update.
10808 * i386-linux-tdep.c: Update.
10809 * i386-tdep.c: Update.
10810 * inf-loop.c: Update.
10811 * infcall.c: Update.
10812 * infcmd.c: Update.
10813 * infrun.c: Update.
10814 * jit.c: Update.
10815 * language.c: Update.
10816 * linespec.c: Update.
10817 * linux-fork.c: Update.
10818 * linux-nat.c: Update.
10819 * linux-tdep.c: Update.
10820 * linux-thread-db.c: Update.
10821 * main.c: Update.
10822 * mi/mi-cmd-break.c: Update.
10823 * mi/mi-cmd-stack.c: Update.
10824 * mi/mi-interp.c: Update.
10825 * mi/mi-main.c: Update.
10826 * objc-lang.c: Update.
10827 * p-valprint.c: Update.
10828 * parse.c: Update.
10829 * ppc-linux-tdep.c: Update.
10830 * printcmd.c: Update.
10831 * python/py-arch.c: Update.
10832 * python/py-breakpoint.c: Update.
10833 * python/py-cmd.c: Update.
10834 * python/py-finishbreakpoint.c: Update.
10835 * python/py-frame.c: Update.
10836 * python/py-framefilter.c: Update.
10837 * python/py-gdb-readline.c: Update.
10838 * python/py-inferior.c: Update.
10839 * python/py-infthread.c: Update.
10840 * python/py-lazy-string.c: Update.
10841 * python/py-linetable.c: Update.
10842 * python/py-objfile.c: Update.
10843 * python/py-param.c: Update.
10844 * python/py-prettyprint.c: Update.
10845 * python/py-progspace.c: Update.
10846 * python/py-record-btrace.c: Update.
10847 * python/py-record.c: Update.
10848 * python/py-symbol.c: Update.
10849 * python/py-type.c: Update.
10850 * python/py-unwind.c: Update.
10851 * python/py-utils.c: Update.
10852 * python/py-value.c: Update.
10853 * python/python.c: Update.
10854 * record-btrace.c: Update.
10855 * record-full.c: Update.
10856 * remote-fileio.c: Update.
10857 * remote.c: Update.
10858 * riscv-tdep.c: Update.
10859 * rs6000-aix-tdep.c: Update.
10860 * rs6000-tdep.c: Update.
10861 * rust-exp.y: Update.
10862 * rust-lang.c: Update.
10863 * s390-tdep.c: Update.
10864 * selftest-arch.c: Update.
10865 * solib-dsbt.c: Update.
10866 * solib-frv.c: Update.
10867 * solib-spu.c: Update.
10868 * solib-svr4.c: Update.
10869 * solib.c: Update.
10870 * sparc64-linux-tdep.c: Update.
10871 * stack.c: Update.
10872 * symfile-mem.c: Update.
10873 * symmisc.c: Update.
10874 * target.c: Update.
10875 * thread.c: Update.
10876 * top.c: Update.
10877 * tracefile-tfile.c: Update.
10878 * tui/tui.c: Update.
10879 * typeprint.c: Update.
10880 * unittests/cli-utils-selftests.c: Update.
10881 * unittests/parse-connection-spec-selftests.c: Update.
10882 * valops.c: Update.
10883 * valprint.c: Update.
10884 * value.c: Update.
10885 * varobj.c: Update.
10886 * windows-nat.c: Update.
10887 * x86-linux-nat.c: Update.
10888 * xml-support.c: Update.
10889
10890 2019-04-08 Tom Tromey <tom@tromey.com>
10891
10892 * xml-support.c: Use C++ exception handling.
10893 * x86-linux-nat.c: Use C++ exception handling.
10894 * windows-nat.c: Use C++ exception handling.
10895 * varobj.c: Use C++ exception handling.
10896 * value.c: Use C++ exception handling.
10897 * valprint.c: Use C++ exception handling.
10898 * valops.c: Use C++ exception handling.
10899 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10900 handling.
10901 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10902 * typeprint.c: Use C++ exception handling.
10903 * tui/tui.c: Use C++ exception handling.
10904 * tracefile-tfile.c: Use C++ exception handling.
10905 * top.c: Use C++ exception handling.
10906 * thread.c: Use C++ exception handling.
10907 * target.c: Use C++ exception handling.
10908 * symmisc.c: Use C++ exception handling.
10909 * symfile-mem.c: Use C++ exception handling.
10910 * stack.c: Use C++ exception handling.
10911 * sparc64-linux-tdep.c: Use C++ exception handling.
10912 * solib.c: Use C++ exception handling.
10913 * solib-svr4.c: Use C++ exception handling.
10914 * solib-spu.c: Use C++ exception handling.
10915 * solib-frv.c: Use C++ exception handling.
10916 * solib-dsbt.c: Use C++ exception handling.
10917 * selftest-arch.c: Use C++ exception handling.
10918 * s390-tdep.c: Use C++ exception handling.
10919 * rust-lang.c: Use C++ exception handling.
10920 * rust-exp.y: Use C++ exception handling.
10921 * rs6000-tdep.c: Use C++ exception handling.
10922 * rs6000-aix-tdep.c: Use C++ exception handling.
10923 * riscv-tdep.c: Use C++ exception handling.
10924 * remote.c: Use C++ exception handling.
10925 * remote-fileio.c: Use C++ exception handling.
10926 * record-full.c: Use C++ exception handling.
10927 * record-btrace.c: Use C++ exception handling.
10928 * python/python.c: Use C++ exception handling.
10929 * python/py-value.c: Use C++ exception handling.
10930 * python/py-utils.c: Use C++ exception handling.
10931 * python/py-unwind.c: Use C++ exception handling.
10932 * python/py-type.c: Use C++ exception handling.
10933 * python/py-symbol.c: Use C++ exception handling.
10934 * python/py-record.c: Use C++ exception handling.
10935 * python/py-record-btrace.c: Use C++ exception handling.
10936 * python/py-progspace.c: Use C++ exception handling.
10937 * python/py-prettyprint.c: Use C++ exception handling.
10938 * python/py-param.c: Use C++ exception handling.
10939 * python/py-objfile.c: Use C++ exception handling.
10940 * python/py-linetable.c: Use C++ exception handling.
10941 * python/py-lazy-string.c: Use C++ exception handling.
10942 * python/py-infthread.c: Use C++ exception handling.
10943 * python/py-inferior.c: Use C++ exception handling.
10944 * python/py-gdb-readline.c: Use C++ exception handling.
10945 * python/py-framefilter.c: Use C++ exception handling.
10946 * python/py-frame.c: Use C++ exception handling.
10947 * python/py-finishbreakpoint.c: Use C++ exception handling.
10948 * python/py-cmd.c: Use C++ exception handling.
10949 * python/py-breakpoint.c: Use C++ exception handling.
10950 * python/py-arch.c: Use C++ exception handling.
10951 * printcmd.c: Use C++ exception handling.
10952 * ppc-linux-tdep.c: Use C++ exception handling.
10953 * parse.c: Use C++ exception handling.
10954 * p-valprint.c: Use C++ exception handling.
10955 * objc-lang.c: Use C++ exception handling.
10956 * mi/mi-main.c: Use C++ exception handling.
10957 * mi/mi-interp.c: Use C++ exception handling.
10958 * mi/mi-cmd-stack.c: Use C++ exception handling.
10959 * mi/mi-cmd-break.c: Use C++ exception handling.
10960 * main.c: Use C++ exception handling.
10961 * linux-thread-db.c: Use C++ exception handling.
10962 * linux-tdep.c: Use C++ exception handling.
10963 * linux-nat.c: Use C++ exception handling.
10964 * linux-fork.c: Use C++ exception handling.
10965 * linespec.c: Use C++ exception handling.
10966 * language.c: Use C++ exception handling.
10967 * jit.c: Use C++ exception handling.
10968 * infrun.c: Use C++ exception handling.
10969 * infcmd.c: Use C++ exception handling.
10970 * infcall.c: Use C++ exception handling.
10971 * inf-loop.c: Use C++ exception handling.
10972 * i386-tdep.c: Use C++ exception handling.
10973 * i386-linux-tdep.c: Use C++ exception handling.
10974 * guile/scm-value.c: Use C++ exception handling.
10975 * guile/scm-type.c: Use C++ exception handling.
10976 * guile/scm-symtab.c: Use C++ exception handling.
10977 * guile/scm-symbol.c: Use C++ exception handling.
10978 * guile/scm-pretty-print.c: Use C++ exception handling.
10979 * guile/scm-ports.c: Use C++ exception handling.
10980 * guile/scm-param.c: Use C++ exception handling.
10981 * guile/scm-math.c: Use C++ exception handling.
10982 * guile/scm-lazy-string.c: Use C++ exception handling.
10983 * guile/scm-frame.c: Use C++ exception handling.
10984 * guile/scm-disasm.c: Use C++ exception handling.
10985 * guile/scm-cmd.c: Use C++ exception handling.
10986 * guile/scm-breakpoint.c: Use C++ exception handling.
10987 * guile/scm-block.c: Use C++ exception handling.
10988 * guile/guile-internal.h: Use C++ exception handling.
10989 * gnu-v3-abi.c: Use C++ exception handling.
10990 * gdbtypes.c: Use C++ exception handling.
10991 * frame.c: Use C++ exception handling.
10992 * frame-unwind.c: Use C++ exception handling.
10993 * fbsd-tdep.c: Use C++ exception handling.
10994 * f-valprint.c: Use C++ exception handling.
10995 * exec.c: Use C++ exception handling.
10996 * event-top.c: Use C++ exception handling.
10997 * event-loop.c: Use C++ exception handling.
10998 * eval.c: Use C++ exception handling.
10999 * dwarf2read.c: Use C++ exception handling.
11000 * dwarf2loc.c: Use C++ exception handling.
11001 * dwarf2-frame.c: Use C++ exception handling.
11002 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11003 * dwarf-index-write.c: Use C++ exception handling.
11004 * dwarf-index-cache.c: Use C++ exception handling.
11005 * dtrace-probe.c: Use C++ exception handling.
11006 * disasm-selftests.c: Use C++ exception handling.
11007 * darwin-nat.c: Use C++ exception handling.
11008 * cp-valprint.c: Use C++ exception handling.
11009 * cp-support.c: Use C++ exception handling.
11010 * cp-abi.c: Use C++ exception handling.
11011 * corelow.c: Use C++ exception handling.
11012 * completer.c: Use C++ exception handling.
11013 * compile/compile-object-run.c: Use C++ exception handling.
11014 * compile/compile-object-load.c: Use C++ exception handling.
11015 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11016 * compile/compile-c-symbols.c: Use C++ exception handling.
11017 * common/selftest.c: Use C++ exception handling.
11018 * common/new-op.c: Use C++ exception handling.
11019 * cli/cli-script.c: Use C++ exception handling.
11020 * cli/cli-interp.c: Use C++ exception handling.
11021 * cli/cli-cmds.c: Use C++ exception handling.
11022 * c-varobj.c: Use C++ exception handling.
11023 * btrace.c: Use C++ exception handling.
11024 * breakpoint.c: Use C++ exception handling.
11025 * break-catch-throw.c: Use C++ exception handling.
11026 * arch-utils.c: Use C++ exception handling.
11027 * amd64-tdep.c: Use C++ exception handling.
11028 * ada-valprint.c: Use C++ exception handling.
11029 * ada-typeprint.c: Use C++ exception handling.
11030 * ada-lang.c: Use C++ exception handling.
11031 * aarch64-tdep.c: Use C++ exception handling.
11032
11033 2019-04-08 Tom Tromey <tom@tromey.com>
11034
11035 * xml-support.c (gdb_xml_parser::parse): Update.
11036 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11037 * value.c (show_convenience): Update.
11038 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11039 (test_parse_flags_qcs): Update.
11040 * thread.c (thr_try_catch_cmd): Update.
11041 * target.c (target_translate_tls_address): Update.
11042 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11043 (info_frame_command_core, frame_apply_command_count): Update.
11044 * rust-exp.y (rust_lex_exception_test): Update.
11045 * riscv-tdep.c (riscv_print_one_register_info): Update.
11046 * remote.c (remote_target::enable_btrace): Update.
11047 * record-btrace.c (record_btrace_enable_warn): Update.
11048 * python/py-utils.c (gdbpy_convert_exception): Update.
11049 * printcmd.c (do_one_display, print_variable_and_value): Update.
11050 * mi/mi-main.c (mi_print_exception): Update.
11051 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11052 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11053 * linux-nat.c (linux_nat_target::attach): Update.
11054 * linux-fork.c (class scoped_switch_fork_info): Update.
11055 * infrun.c (displaced_step_prepare): Update.
11056 * infcall.c (call_function_by_hand_dummy): Update.
11057 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11058 * gnu-v3-abi.c (print_one_vtable): Update.
11059 * frame.c (get_prev_frame_always): Update.
11060 * f-valprint.c (info_common_command_for_block): Update.
11061 * exec.c (try_open_exec_file): Update.
11062 * exceptions.c (print_exception, exception_print)
11063 (exception_fprintf, exception_print_same): Update.
11064 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11065 * dwarf-index-cache.c (index_cache::store)
11066 (index_cache::lookup_gdb_index): Update.
11067 * darwin-nat.c (maybe_cache_shell): Update.
11068 * cp-valprint.c (cp_print_value_fields): Update.
11069 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11070 (gcc_cplus_symbol_address): Update.
11071 * compile/compile-c-symbols.c (gcc_convert_symbol)
11072 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11073 * common/selftest.c: Update.
11074 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11075 a std::string.
11076 (exception_try_scope_entry, exception_try_scope_exit): Don't
11077 declare.
11078 (struct exception_try_scope): Remove.
11079 (TRY): Don't use exception_try_scope.
11080 (struct gdb_exception): Add constructor, operator=.
11081 <what>: New method.
11082 (struct gdb_exception_RETURN_MASK_ALL)
11083 (struct gdb_exception_RETURN_MASK_ERROR)
11084 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11085 (struct gdb_quit_bad_alloc): Update.
11086 * common/common-exceptions.c (exception_none): Change
11087 initializer.
11088 (struct catcher) <state, exception>: Initialize inline.
11089 <prev>: Remove member.
11090 (current_catcher): Remove.
11091 (catchers): New global.
11092 (exceptions_state_mc_init): Simplify.
11093 (catcher_pop): Remove.
11094 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11095 (try_scope_depth, exception_try_scope_entry)
11096 (exception_try_scope_exit): Remove.
11097 (throw_exception_sjlj): Update.
11098 (exception_messages, exception_messages_size): Remove.
11099 (throw_it): Simplify.
11100 (gdb_exception_sliced_copy): Remove.
11101 (throw_exception_cxx): Update.
11102 * cli/cli-script.c (script_from_file): Update.
11103 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11104 Update.
11105 * ada-valprint.c (ada_val_print): Update.
11106 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11107 (create_excep_cond_exprs): Update.
11108
11109 2019-04-08 Tom Tromey <tom@tromey.com>
11110
11111 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11112 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11113 (TRY, CATCH, END_CATCH): Remove some definitions.
11114 * common/common-exceptions.c: Don't use GDB_XCPT.
11115 (catcher_list_size): Remove.
11116 (throw_exception, throw_it): Simplify.
11117
11118 2019-04-05 Tom Tromey <tom@tromey.com>
11119
11120 Revert the header-sorting patch.
11121 * ft32-tdep.c: Revert.
11122 * frv-tdep.c: Revert.
11123 * frv-linux-tdep.c: Revert.
11124 * frame.c: Revert.
11125 * frame-unwind.c: Revert.
11126 * frame-base.c: Revert.
11127 * fork-child.c: Revert.
11128 * findvar.c: Revert.
11129 * findcmd.c: Revert.
11130 * filesystem.c: Revert.
11131 * filename-seen-cache.h: Revert.
11132 * filename-seen-cache.c: Revert.
11133 * fbsd-tdep.c: Revert.
11134 * fbsd-nat.h: Revert.
11135 * fbsd-nat.c: Revert.
11136 * f-valprint.c: Revert.
11137 * f-typeprint.c: Revert.
11138 * f-lang.c: Revert.
11139 * extension.h: Revert.
11140 * extension.c: Revert.
11141 * extension-priv.h: Revert.
11142 * expprint.c: Revert.
11143 * exec.h: Revert.
11144 * exec.c: Revert.
11145 * exceptions.c: Revert.
11146 * event-top.c: Revert.
11147 * event-loop.c: Revert.
11148 * eval.c: Revert.
11149 * elfread.c: Revert.
11150 * dwarf2read.h: Revert.
11151 * dwarf2read.c: Revert.
11152 * dwarf2loc.c: Revert.
11153 * dwarf2expr.h: Revert.
11154 * dwarf2expr.c: Revert.
11155 * dwarf2-frame.c: Revert.
11156 * dwarf2-frame-tailcall.c: Revert.
11157 * dwarf-index-write.h: Revert.
11158 * dwarf-index-write.c: Revert.
11159 * dwarf-index-common.c: Revert.
11160 * dwarf-index-cache.h: Revert.
11161 * dwarf-index-cache.c: Revert.
11162 * dummy-frame.c: Revert.
11163 * dtrace-probe.c: Revert.
11164 * disasm.h: Revert.
11165 * disasm.c: Revert.
11166 * disasm-selftests.c: Revert.
11167 * dictionary.c: Revert.
11168 * dicos-tdep.c: Revert.
11169 * demangle.c: Revert.
11170 * dcache.h: Revert.
11171 * dcache.c: Revert.
11172 * darwin-nat.h: Revert.
11173 * darwin-nat.c: Revert.
11174 * darwin-nat-info.c: Revert.
11175 * d-valprint.c: Revert.
11176 * d-namespace.c: Revert.
11177 * d-lang.c: Revert.
11178 * ctf.c: Revert.
11179 * csky-tdep.c: Revert.
11180 * csky-linux-tdep.c: Revert.
11181 * cris-tdep.c: Revert.
11182 * cris-linux-tdep.c: Revert.
11183 * cp-valprint.c: Revert.
11184 * cp-support.c: Revert.
11185 * cp-namespace.c: Revert.
11186 * cp-abi.c: Revert.
11187 * corelow.c: Revert.
11188 * corefile.c: Revert.
11189 * continuations.c: Revert.
11190 * completer.h: Revert.
11191 * completer.c: Revert.
11192 * complaints.c: Revert.
11193 * coffread.c: Revert.
11194 * coff-pe-read.c: Revert.
11195 * cli-out.h: Revert.
11196 * cli-out.c: Revert.
11197 * charset.c: Revert.
11198 * c-varobj.c: Revert.
11199 * c-valprint.c: Revert.
11200 * c-typeprint.c: Revert.
11201 * c-lang.c: Revert.
11202 * buildsym.c: Revert.
11203 * buildsym-legacy.c: Revert.
11204 * build-id.h: Revert.
11205 * build-id.c: Revert.
11206 * btrace.c: Revert.
11207 * bsd-uthread.c: Revert.
11208 * breakpoint.h: Revert.
11209 * breakpoint.c: Revert.
11210 * break-catch-throw.c: Revert.
11211 * break-catch-syscall.c: Revert.
11212 * break-catch-sig.c: Revert.
11213 * blockframe.c: Revert.
11214 * block.c: Revert.
11215 * bfin-tdep.c: Revert.
11216 * bfin-linux-tdep.c: Revert.
11217 * bfd-target.c: Revert.
11218 * bcache.c: Revert.
11219 * ax-general.c: Revert.
11220 * ax-gdb.h: Revert.
11221 * ax-gdb.c: Revert.
11222 * avr-tdep.c: Revert.
11223 * auxv.c: Revert.
11224 * auto-load.c: Revert.
11225 * arm-wince-tdep.c: Revert.
11226 * arm-tdep.c: Revert.
11227 * arm-symbian-tdep.c: Revert.
11228 * arm-pikeos-tdep.c: Revert.
11229 * arm-obsd-tdep.c: Revert.
11230 * arm-nbsd-tdep.c: Revert.
11231 * arm-nbsd-nat.c: Revert.
11232 * arm-linux-tdep.c: Revert.
11233 * arm-linux-nat.c: Revert.
11234 * arm-fbsd-tdep.c: Revert.
11235 * arm-fbsd-nat.c: Revert.
11236 * arm-bsd-tdep.c: Revert.
11237 * arch-utils.c: Revert.
11238 * arc-tdep.c: Revert.
11239 * arc-newlib-tdep.c: Revert.
11240 * annotate.h: Revert.
11241 * annotate.c: Revert.
11242 * amd64-windows-tdep.c: Revert.
11243 * amd64-windows-nat.c: Revert.
11244 * amd64-tdep.c: Revert.
11245 * amd64-sol2-tdep.c: Revert.
11246 * amd64-obsd-tdep.c: Revert.
11247 * amd64-obsd-nat.c: Revert.
11248 * amd64-nbsd-tdep.c: Revert.
11249 * amd64-nbsd-nat.c: Revert.
11250 * amd64-nat.c: Revert.
11251 * amd64-linux-tdep.c: Revert.
11252 * amd64-linux-nat.c: Revert.
11253 * amd64-fbsd-tdep.c: Revert.
11254 * amd64-fbsd-nat.c: Revert.
11255 * amd64-dicos-tdep.c: Revert.
11256 * amd64-darwin-tdep.c: Revert.
11257 * amd64-bsd-nat.c: Revert.
11258 * alpha-tdep.c: Revert.
11259 * alpha-obsd-tdep.c: Revert.
11260 * alpha-nbsd-tdep.c: Revert.
11261 * alpha-mdebug-tdep.c: Revert.
11262 * alpha-linux-tdep.c: Revert.
11263 * alpha-linux-nat.c: Revert.
11264 * alpha-bsd-tdep.c: Revert.
11265 * alpha-bsd-nat.c: Revert.
11266 * aix-thread.c: Revert.
11267 * agent.c: Revert.
11268 * addrmap.c: Revert.
11269 * ada-varobj.c: Revert.
11270 * ada-valprint.c: Revert.
11271 * ada-typeprint.c: Revert.
11272 * ada-tasks.c: Revert.
11273 * ada-lang.c: Revert.
11274 * aarch64-tdep.c: Revert.
11275 * aarch64-ravenscar-thread.c: Revert.
11276 * aarch64-newlib-tdep.c: Revert.
11277 * aarch64-linux-tdep.c: Revert.
11278 * aarch64-linux-nat.c: Revert.
11279 * aarch64-fbsd-tdep.c: Revert.
11280 * aarch64-fbsd-nat.c: Revert.
11281 * aarch32-linux-nat.c: Revert.
11282
11283 2019-04-05 Tom Tromey <tom@tromey.com>
11284
11285 * ft32-tdep.c: Sort headers.
11286 * frv-tdep.c: Sort headers.
11287 * frv-linux-tdep.c: Sort headers.
11288 * frame.c: Sort headers.
11289 * frame-unwind.c: Sort headers.
11290 * frame-base.c: Sort headers.
11291 * fork-child.c: Sort headers.
11292 * findvar.c: Sort headers.
11293 * findcmd.c: Sort headers.
11294 * filesystem.c: Sort headers.
11295 * filename-seen-cache.h: Sort headers.
11296 * filename-seen-cache.c: Sort headers.
11297 * fbsd-tdep.c: Sort headers.
11298 * fbsd-nat.h: Sort headers.
11299 * fbsd-nat.c: Sort headers.
11300 * f-valprint.c: Sort headers.
11301 * f-typeprint.c: Sort headers.
11302 * f-lang.c: Sort headers.
11303 * extension.h: Sort headers.
11304 * extension.c: Sort headers.
11305 * extension-priv.h: Sort headers.
11306 * expprint.c: Sort headers.
11307 * exec.h: Sort headers.
11308 * exec.c: Sort headers.
11309 * exceptions.c: Sort headers.
11310 * event-top.c: Sort headers.
11311 * event-loop.c: Sort headers.
11312 * eval.c: Sort headers.
11313 * elfread.c: Sort headers.
11314 * dwarf2read.h: Sort headers.
11315 * dwarf2read.c: Sort headers.
11316 * dwarf2loc.c: Sort headers.
11317 * dwarf2expr.h: Sort headers.
11318 * dwarf2expr.c: Sort headers.
11319 * dwarf2-frame.c: Sort headers.
11320 * dwarf2-frame-tailcall.c: Sort headers.
11321 * dwarf-index-write.h: Sort headers.
11322 * dwarf-index-write.c: Sort headers.
11323 * dwarf-index-common.c: Sort headers.
11324 * dwarf-index-cache.h: Sort headers.
11325 * dwarf-index-cache.c: Sort headers.
11326 * dummy-frame.c: Sort headers.
11327 * dtrace-probe.c: Sort headers.
11328 * disasm.h: Sort headers.
11329 * disasm.c: Sort headers.
11330 * disasm-selftests.c: Sort headers.
11331 * dictionary.c: Sort headers.
11332 * dicos-tdep.c: Sort headers.
11333 * demangle.c: Sort headers.
11334 * dcache.h: Sort headers.
11335 * dcache.c: Sort headers.
11336 * darwin-nat.h: Sort headers.
11337 * darwin-nat.c: Sort headers.
11338 * darwin-nat-info.c: Sort headers.
11339 * d-valprint.c: Sort headers.
11340 * d-namespace.c: Sort headers.
11341 * d-lang.c: Sort headers.
11342 * ctf.c: Sort headers.
11343 * csky-tdep.c: Sort headers.
11344 * csky-linux-tdep.c: Sort headers.
11345 * cris-tdep.c: Sort headers.
11346 * cris-linux-tdep.c: Sort headers.
11347 * cp-valprint.c: Sort headers.
11348 * cp-support.c: Sort headers.
11349 * cp-namespace.c: Sort headers.
11350 * cp-abi.c: Sort headers.
11351 * corelow.c: Sort headers.
11352 * corefile.c: Sort headers.
11353 * continuations.c: Sort headers.
11354 * completer.h: Sort headers.
11355 * completer.c: Sort headers.
11356 * complaints.c: Sort headers.
11357 * coffread.c: Sort headers.
11358 * coff-pe-read.c: Sort headers.
11359 * cli-out.h: Sort headers.
11360 * cli-out.c: Sort headers.
11361 * charset.c: Sort headers.
11362 * c-varobj.c: Sort headers.
11363 * c-valprint.c: Sort headers.
11364 * c-typeprint.c: Sort headers.
11365 * c-lang.c: Sort headers.
11366 * buildsym.c: Sort headers.
11367 * buildsym-legacy.c: Sort headers.
11368 * build-id.h: Sort headers.
11369 * build-id.c: Sort headers.
11370 * btrace.c: Sort headers.
11371 * bsd-uthread.c: Sort headers.
11372 * breakpoint.h: Sort headers.
11373 * breakpoint.c: Sort headers.
11374 * break-catch-throw.c: Sort headers.
11375 * break-catch-syscall.c: Sort headers.
11376 * break-catch-sig.c: Sort headers.
11377 * blockframe.c: Sort headers.
11378 * block.c: Sort headers.
11379 * bfin-tdep.c: Sort headers.
11380 * bfin-linux-tdep.c: Sort headers.
11381 * bfd-target.c: Sort headers.
11382 * bcache.c: Sort headers.
11383 * ax-general.c: Sort headers.
11384 * ax-gdb.h: Sort headers.
11385 * ax-gdb.c: Sort headers.
11386 * avr-tdep.c: Sort headers.
11387 * auxv.c: Sort headers.
11388 * auto-load.c: Sort headers.
11389 * arm-wince-tdep.c: Sort headers.
11390 * arm-tdep.c: Sort headers.
11391 * arm-symbian-tdep.c: Sort headers.
11392 * arm-pikeos-tdep.c: Sort headers.
11393 * arm-obsd-tdep.c: Sort headers.
11394 * arm-nbsd-tdep.c: Sort headers.
11395 * arm-nbsd-nat.c: Sort headers.
11396 * arm-linux-tdep.c: Sort headers.
11397 * arm-linux-nat.c: Sort headers.
11398 * arm-fbsd-tdep.c: Sort headers.
11399 * arm-fbsd-nat.c: Sort headers.
11400 * arm-bsd-tdep.c: Sort headers.
11401 * arch-utils.c: Sort headers.
11402 * arc-tdep.c: Sort headers.
11403 * arc-newlib-tdep.c: Sort headers.
11404 * annotate.h: Sort headers.
11405 * annotate.c: Sort headers.
11406 * amd64-windows-tdep.c: Sort headers.
11407 * amd64-windows-nat.c: Sort headers.
11408 * amd64-tdep.c: Sort headers.
11409 * amd64-sol2-tdep.c: Sort headers.
11410 * amd64-obsd-tdep.c: Sort headers.
11411 * amd64-obsd-nat.c: Sort headers.
11412 * amd64-nbsd-tdep.c: Sort headers.
11413 * amd64-nbsd-nat.c: Sort headers.
11414 * amd64-nat.c: Sort headers.
11415 * amd64-linux-tdep.c: Sort headers.
11416 * amd64-linux-nat.c: Sort headers.
11417 * amd64-fbsd-tdep.c: Sort headers.
11418 * amd64-fbsd-nat.c: Sort headers.
11419 * amd64-dicos-tdep.c: Sort headers.
11420 * amd64-darwin-tdep.c: Sort headers.
11421 * amd64-bsd-nat.c: Sort headers.
11422 * alpha-tdep.c: Sort headers.
11423 * alpha-obsd-tdep.c: Sort headers.
11424 * alpha-nbsd-tdep.c: Sort headers.
11425 * alpha-mdebug-tdep.c: Sort headers.
11426 * alpha-linux-tdep.c: Sort headers.
11427 * alpha-linux-nat.c: Sort headers.
11428 * alpha-bsd-tdep.c: Sort headers.
11429 * alpha-bsd-nat.c: Sort headers.
11430 * aix-thread.c: Sort headers.
11431 * agent.c: Sort headers.
11432 * addrmap.c: Sort headers.
11433 * ada-varobj.c: Sort headers.
11434 * ada-valprint.c: Sort headers.
11435 * ada-typeprint.c: Sort headers.
11436 * ada-tasks.c: Sort headers.
11437 * ada-lang.c: Sort headers.
11438 * aarch64-tdep.c: Sort headers.
11439 * aarch64-ravenscar-thread.c: Sort headers.
11440 * aarch64-newlib-tdep.c: Sort headers.
11441 * aarch64-linux-tdep.c: Sort headers.
11442 * aarch64-linux-nat.c: Sort headers.
11443 * aarch64-fbsd-tdep.c: Sort headers.
11444 * aarch64-fbsd-nat.c: Sort headers.
11445 * aarch32-linux-nat.c: Sort headers.
11446
11447 2019-04-04 Tom Tromey <tom@tromey.com>
11448
11449 * varobj.c (varobj_create): Update.
11450 * rust-exp.y (struct rust_parser) <update_innermost_block,
11451 lookup_symbol>: New methods.
11452 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11453 Rename.
11454 (rust_parser::rust_lookup_type)
11455 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11456 * printcmd.c (display_command, do_one_display): Update.
11457 * parser-defs.h (struct parser_state) <parser_state>: Add
11458 "tracker" parameter.
11459 (block_tracker): New member.
11460 (class innermost_block_tracker) <innermost_block_tracker>: Add
11461 "types" parameter.
11462 <reset>: Remove method.
11463 (innermost_block): Don't declare.
11464 (null_post_parser): Update.
11465 * parse.c (innermost_block): Remove global.
11466 (write_dollar_variable): Update.
11467 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11468 Remove "tracker_types" parameter.
11469 (parse_expression): Add "tracker" parameter.
11470 (parse_expression_for_completion): Update.
11471 (null_post_parser): Add "tracker" parameter.
11472 * p-exp.y: Update rules.
11473 * m2-exp.y: Update rules.
11474 * language.h (struct language_defn) <la_post_parser>: Add
11475 "tracker" parameter.
11476 * go-exp.y: Update rules.
11477 * f-exp.y: Update rules.
11478 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11479 parameter.
11480 * d-exp.y: Update rules.
11481 * c-exp.y: Update rules.
11482 * breakpoint.c (set_breakpoint_condition): Create an
11483 innermost_block_tracker.
11484 (watch_command_1): Likewise.
11485 * ada-lang.c (resolve): Add "tracker" parameter.
11486 (resolve_subexp): Likewise.
11487 * ada-exp.y (write_var_from_sym): Update.
11488
11489 2019-04-04 Tom Tromey <tom@tromey.com>
11490
11491 * type-stack.h: New file.
11492 * type-stack.c: New file.
11493 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11494 type-stack.h.
11495 (insert_into_type_stack, insert_type, push_type, push_type_int)
11496 (insert_type_address_space, pop_type, pop_type_int)
11497 (pop_typelist, pop_type_stack, append_type_stack)
11498 (push_type_stack, get_type_stack, push_typelist)
11499 (follow_type_instance_flags, follow_types): Don't declare.
11500 * parse.c (type_stack): Remove global.
11501 (parse_exp_in_context): Update.
11502 (insert_into_type_stack, insert_type, push_type, push_type_int)
11503 (insert_type_address_space, pop_type, pop_type_int)
11504 (pop_typelist, pop_type_stack, append_type_stack)
11505 (push_type_stack, get_type_stack, push_typelist)
11506 (follow_type_instance_flags, follow_types): Remove (moved to
11507 type-stack.c).
11508 * f-exp.y (type_stack): New global.
11509 Update rules.
11510 (push_kind_type, f_parse): Update.
11511 * d-exp.y (type_stack): New global.
11512 Update rules.
11513 (d_parse): Update.
11514 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11515 Update rules.
11516 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11517 (HFILES_NO_SRCDIR): Add type-stack.h.
11518
11519 2019-04-04 Tom Tromey <tom@tromey.com>
11520
11521 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11522 (rust_parser::convert_ast_to_expression, rust_parse)
11523 (rust_lex_test_completion, rust_lex_tests): Update.
11524 * parser-defs.h (struct expr_completion_state): New.
11525 (struct parser_state) <parser_state>: Add completion parameter.
11526 <mark_struct_expression, mark_completion_tag>: New methods.
11527 <parse_completion, m_completion_state>: New members.
11528 (prefixify_expression, null_post_parser): Update.
11529 (mark_struct_expression, mark_completion_tag): Don't declare.
11530 * parse.c (parse_completion, expout_last_struct)
11531 (expout_tag_completion_type, expout_completion_name): Remove
11532 globals.
11533 (parser_state::mark_struct_expression)
11534 (parser_state::mark_completion_tag): Now methods.
11535 (prefixify_expression): Add last_struct parameter.
11536 (prefixify_subexp): Likewise.
11537 (parse_exp_1): Update.
11538 (parse_exp_in_context): Add cstate parameter. Update.
11539 (parse_expression_for_completion): Create an
11540 expr_completion_state.
11541 (null_post_parser): Add "completion" parameter.
11542 * p-exp.y: Update rules.
11543 (yylex): Update.
11544 * language.h (struct language_defn) <la_post_parser>: Add
11545 "completing" parameter.
11546 * go-exp.y: Update rules.
11547 (lex_one_token): Update.
11548 * expression.h (parse_completion): Don't declare.
11549 * d-exp.y: Update rules.
11550 (lex_one_token): Update rules.
11551 * c-exp.y: Update rules.
11552 (lex_one_token): Update.
11553 * ada-lang.c (resolve): Add "parse_completion" parameter.
11554 (resolve_subexp): Likewise.
11555 (ada_resolve_function): Likewise.
11556
11557 2019-04-04 Tom Tromey <tom@tromey.com>
11558
11559 * parser-defs.h (struct parser_state) <start_arglist,
11560 end_arglist>: New methods.
11561 <arglist_len, m_funcall_chain>: New members.
11562 (arglist_len, start_arglist, end_arglist): Don't declare.
11563 * parse.c (arglist_len, funcall_chain): Remove global.
11564 (start_arglist, end_arglist): Remove functions.
11565 (parse_exp_in_context): Update.
11566 * p-exp.y: Update rules.
11567 * m2-exp.y: Update rules.
11568 * go-exp.y: Update rules.
11569 * f-exp.y: Update rules.
11570 * d-exp.y: Update rules.
11571 * c-exp.y: Update rules.
11572
11573 2019-04-04 Tom Tromey <tom@tromey.com>
11574
11575 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11576 lex_operator, push_back>: New methods.
11577 Update all rules.
11578 (rust_parser::lex_hex, lex_escape): Rename and update.
11579 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11580 (rust_parser::lex_operator): Rename and update.
11581 (rust_parser::lex_number, rustyylex, rustyyerror)
11582 (rust_lex_test_init, rust_lex_test_sequence)
11583 (rust_lex_test_push_back, rust_lex_tests): Update.
11584 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11585 parameter.
11586 <lexptr, prev_lexptr>: New members.
11587 (lexptr, prev_lexptr): Don't declare.
11588 * parse.c (lexptr, prev_lexptr): Remove globals.
11589 (parse_exp_in_context): Update.
11590 * p-exp.y (yylex, yyerror): Update.
11591 * m2-exp.y (parse_number, yylex, yyerror): Update.
11592 * go-exp.y (lex_one_token, yyerror): Update.
11593 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11594 * d-exp.y (lex_one_token, yyerror): Update.
11595 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11596 (lex_one_token, yyerror): Update.
11597 * ada-lex.l (YY_INPUT): Update.
11598 (rewind_to_char): Update.
11599 * ada-exp.y (yyerror): Update.
11600
11601 2019-04-04 Tom Tromey <tom@tromey.com>
11602
11603 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11604 * parser-defs.h (struct parser_state) <parser_state>: Add new
11605 parameter.
11606 <comma_terminates>: New member.
11607 (comma_terminates): Don't declare global.
11608 * parse.c (comma_terminates): Remove global.
11609 (parse_exp_in_context): Update.
11610 * p-exp.y (yylex): Update.
11611 * m2-exp.y (yylex): Update.
11612 * go-exp.y (lex_one_token): Update.
11613 * f-exp.y (yylex): Update.
11614 * d-exp.y (lex_one_token): Update.
11615 * c-exp.y (lex_one_token): Update.
11616 * ada-lex.l: Update.
11617
11618 2019-04-04 Tom Tromey <tom@tromey.com>
11619
11620 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11621 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11622 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11623 * parser-defs.h (paren_depth): Don't declare.
11624 * parse.c (paren_depth): Remove global.
11625 (parse_exp_in_context): Update.
11626 * p-exp.y (paren_depth): New global.
11627 (pascal_parse): Initialize it.
11628 * m2-exp.y (paren_depth): New global.
11629 (m2_parse): Initialize it.
11630 * go-exp.y (paren_depth): New global.
11631 (go_parse): Initialize it.
11632 * f-exp.y (paren_depth): New global.
11633 (f_parse): Initialize it.
11634 * d-exp.y (paren_depth): New global.
11635 (d_parse): Initialize it.
11636 * c-exp.y (paren_depth): New global.
11637 (c_parse): Initialize it.
11638 * ada-lex.l (paren_depth): New global.
11639 (lexer_init): Initialize it.
11640
11641 2019-04-04 Tom Tromey <tom@tromey.com>
11642
11643 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11644 (rust_parser::convert_ast_to_type)
11645 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11646 * parser-defs.h (struct parser_state) <parser_state>: Add
11647 parameters. Initialize new members.
11648 <expression_context_block, expression_context_pc>: New members.
11649 * parse.c (expression_context_block, expression_context_pc):
11650 Remove globals.
11651 (parse_exp_in_context): Update.
11652 * p-exp.y: Update all rules.
11653 (yylex): Update.
11654 * m2-exp.y: Update all rules.
11655 (yylex): Update.
11656 * go-exp.y (yylex): Update.
11657 * f-exp.y (yylex): Update.
11658 * d-exp.y: Update all rules.
11659 (yylex): Update.
11660 * c-exp.y: Update all rules.
11661 (lex_one_token, classify_name, yylex, c_parse): Update.
11662 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11663
11664 2019-04-04 Tom Tromey <tom@tromey.com>
11665
11666 * gdbarch.h, gdbarch.c: Rebuild.
11667 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11668 * stap-probe.h:
11669 (struct stap_parse_info): Replace "parser_state" with
11670 "expr_builder".
11671 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11672 (parser_state): New class.
11673 * parse.c (expr_builder): Rename.
11674 (expr_builder::release): Rename.
11675 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11676 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11677 (write_exp_elt_longcst, write_exp_elt_floatcst)
11678 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11679 (write_exp_string_vector, write_exp_bitstring)
11680 (write_exp_msymbol, mark_struct_expression)
11681 (write_dollar_variable)
11682 (insert_type_address_space, increase_expout_size): Replace
11683 "parser_state" with "expr_builder".
11684 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11685 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11686 "parser_state" with "expr_builder".
11687
11688 2019-04-04 Tom Tromey <tom@tromey.com>
11689
11690 * rust-exp.y: Replace "parse_language" with method call.
11691 * p-exp.y:
11692 (yylex): Replace "parse_language" with method call.
11693 * m2-exp.y:
11694 (yylex): Replace "parse_language" with method call.
11695 * go-exp.y (classify_name): Replace "parse_language" with method
11696 call.
11697 * f-exp.y (yylex): Replace "parse_language" with method call.
11698 * d-exp.y (lex_one_token): Replace "parse_language" with method
11699 call.
11700 * c-exp.y:
11701 (lex_one_token, classify_name, yylex): Replace "parse_language"
11702 with method call.
11703 * ada-exp.y (find_primitive_type, type_char)
11704 (type_system_address): Replace "parse_language" with method call.
11705
11706 2019-04-04 Tom Tromey <tom@tromey.com>
11707
11708 * rust-exp.y: Replace "parse_gdbarch" with method call.
11709 * parse.c (write_dollar_variable, insert_type_address_space):
11710 Replace "parse_gdbarch" with method call.
11711 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11712 call.
11713 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11714 call.
11715 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11716 "parse_gdbarch" with method call.
11717 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11718 with method call.
11719 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11720 "parse_gdbarch" with method call.
11721 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11722 "parse_gdbarch" with method call.
11723 * c-exp.y (parse_type, parse_number, classify_name): Replace
11724 "parse_gdbarch" with method call.
11725 * ada-lex.l: Replace "parse_gdbarch" with method call.
11726 * ada-exp.y (parse_type, find_primitive_type, type_char)
11727 (type_system_address): Replace "parse_gdbarch" with method call.
11728
11729 2019-04-04 Tom Tromey <tom@tromey.com>
11730
11731 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11732 * stap-probe.c (stap_parse_argument): Update.
11733 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11734 initial_size parameter.
11735 * rust-exp.y (rust_lex_tests): Update.
11736 * parse.c (parser_state): Update.
11737 (parse_exp_in_context): Update.
11738 * parser-defs.h (struct parser_state) <parser_state>: Remove
11739 "initial_size" parameter.
11740
11741 2019-04-04 Tom Tromey <tom@tromey.com>
11742
11743 * parser-defs.h (increase_expout_size): Don't declare.
11744 * parse.c (increase_expout_size): Now static.
11745
11746 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11747
11748 * gnu-nat.c (gnu_nat_target::wait): Fix
11749 target_waitstatus_to_string call.
11750
11751 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11752
11753 * eval.c (evaluate_subexp_standard): Handle internal functions
11754 during Fortran function call handling.
11755
11756 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11757
11758 * NEWS: Mention new internal functions.
11759 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11760 (read_base_type): Use dwarf2_init_complex_target_type.
11761 * value.c (creal_internal_fn): New function.
11762 (cimag_internal_fn): New function.
11763 (_initialize_values): Register new internal functions.
11764
11765 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11766
11767 * infrun.c (stop_all_threads): If debug_infrun, always
11768 trace the wait status after wait_one, using
11769 target_waitstatus_to_string and target_pid_to_str.
11770 (handle_inferior_event): Replace various trace of
11771 wait status kind by a single trace.
11772 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11773 wait status kind image by target_waitstatus_to_string.
11774 * target/waitstatus.c (target_waitstatus_to_string): Fix
11775 obsolete comment.
11776
11777 2019-04-01 Tom Tromey <tromey@adacore.com>
11778
11779 PR symtab/23331:
11780 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11781
11782 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11783 Pedro Alves <palves@redhat.com>
11784
11785 * top.c (quit_force): Call 'finalize_values'.
11786 * value.c (finalize_values): New function.
11787 * value.h (finalize_values): Declare.
11788
11789 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11790
11791 * NEWS: Announce $_gdb_major and $_gdb_minor.
11792
11793 * top.c (init_gdb_version_vars): New function.
11794 (gdb_init): Call init_gdb_version_vars.
11795
11796 2019-03-29 Tom Tromey <tromey@adacore.com>
11797
11798 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11799 help text. Remove dead code.
11800
11801 2019-03-29 Keith Seitz <keiths@redhat.com>
11802
11803 From Siddhesh Poyarekar:
11804 * f-lang.h (f77_get_upperbound): Return LONGEST.
11805 (f77_get_lowerbound): Likewise.
11806 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11807 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11808 print them.
11809 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11810 plongest to format print it.
11811 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11812 (f77_get_upperbound): Likewise.
11813 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11814 LOWER_BOUND to LONGEST.
11815 (f77_create_arrayprint_offset_tbl): Likewise.
11816
11817 2019-03-29 Keith Seitz <keiths@redhat.com>
11818
11819 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11820 %s/pulongest for TYPE_LENGTH instead of %d in format
11821 strings.
11822 * ada-typerint.c (ada_print_type): Likewise.
11823 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11824 * compile/compile-c-support.c (generate_register_struct): Likewise.
11825 * gdbtypes.c (recursive_dump_type): Likewise.
11826 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11827 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11828 instead of %d in format strings.
11829 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11830 to std::min to ULONGEST.
11831 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11832 instead of %d in format strings.
11833 * tracepoint.c (info_scope_command): Likewise.
11834 * typeprint.c (print_offset_data::update)
11835 (print_offset_data::finish): Likewise.
11836 * xtensa-tdep.c (xtensa_store_return_value)
11837 (xtensa_push_dummy_call): Likewise.
11838
11839 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11840
11841 * windows-nat.c (display_selector): Fixed format specifications
11842 for 64-bit Cygwin.
11843
11844 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11845
11846 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11847
11848 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11849
11850 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11851 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11852 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11853 (nios2_linux_init_abi): Install it.
11854
11855 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11856
11857 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11858
11859 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11860
11861 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11862
11863 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11864 Tom Tromey <tromey@adacore.com>
11865
11866 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11867
11868 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11869
11870 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11871 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11872 method to compute the bounds of range types. Also print "[evaluated]"
11873 if the bounds' values come from a dynamic evaluation.
11874
11875 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11878 whitespace when pretty printing is on.
11879
11880 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11881
11882 * ppc-linux-nat.c: Add include.
11883
11884 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11885
11886 * NEWS: Mention AArch64 Pointer Authentication.
11887
11888 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11889
11890 * arm-linux-nat.c: Add include.
11891
11892 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11893
11894 * source-cache.c (source_cache::get_source_lines): Re-read
11895 fullname after calling open_source_file.
11896
11897 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11898
11899 * NEWS: Mention TLS support for FreeBSD.
11900
11901 2019-03-25 Tom Tromey <tromey@adacore.com>
11902
11903 * minsyms.c (BUNCH_SIZE): Update comment.
11904 (~minimal_symbol_reader): Remove old comment.
11905 (compact_minimal_symbols): Update comment.
11906 (minimal_symbol_reader::install): Remove old comment. Update
11907 other comments.
11908
11909 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11910
11911 * s390-linux-nat.c: Add include.
11912
11913 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11914
11915 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11916 Call linux_get_hwcap.
11917 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11918 Likewise.
11919 (aarch64_linux_get_hwcap): Remove function.
11920 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11921 declaration.
11922 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11923 linux_get_hwcap.
11924 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11925 * linux-tdep.c (linux_get_hwcap): Add function.
11926 (linux_get_hwcap2): Likewise.
11927 * linux-tdep.h (linux_get_hwcap): Add declaration.
11928 (linux_get_hwcap2): Likewise.
11929 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11930 (ppc_linux_get_hwcap2): Likewise.
11931 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11932 linux_get_hwcap.
11933 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11934 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11935 (ppc_linux_nat_target::read_description): Likewise.
11936 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11937 * s390-linux-nat.c: Likewise.
11938 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11939
11940 2019-03-24 Tom Tromey <tom@tromey.com>
11941
11942 * ada-lang.c (standard_lookup): Simplify initialization.
11943 (ada_lookup_symbol_nonlocal): Simplify return.
11944 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11945 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11946 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11947 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11948 initialization.
11949 * solib.c (solib_global_lookup): Simplify.
11950 * symtab.c (null_block_symbol): Remove.
11951 (symbol_cache_lookup): Simplify returns.
11952 (lookup_language_this): Simplify returns.
11953 (lookup_symbol_aux): Simplify return.
11954 (lookup_local_symbol): Simplify returns.
11955 (lookup_global_symbol_from_objfile): Simplify return.
11956 (lookup_symbol_in_objfile_symtabs)
11957 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11958 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11959 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11960 * cp-namespace.c (cp_lookup_bare_symbol)
11961 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11962 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11963 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11964 (cp_lookup_symbol_via_imports): Simplify initialization.
11965 (find_symbol_in_baseclass): Likewise.
11966 * symtab.h (null_block_symbol): Remove.
11967 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11968 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11969 (d_lookup_symbol_module): Likewise.
11970 (find_symbol_in_baseclass): Simplify initialization.
11971
11972 2019-03-24 Tom Tromey <tom@tromey.com>
11973
11974 * expression.h: Don't include symtab.h.
11975 (struct block): Forward declare.
11976
11977 2019-03-24 Tom Tromey <tom@tromey.com>
11978
11979 * c-exp.y (typebase): Remove casts.
11980 * gdbtypes.c (lookup_unsigned_typename, )
11981 (lookup_signed_typename): Remove cast.
11982 * eval.c (parse_to_comma_and_eval): Remove cast.
11983 * parse.c (write_dollar_variable): Remove cast.
11984 * block.h (struct block) <superblock>: Now const.
11985 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11986 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11987 (map_block): Make "block" const.
11988 * symfile.h (struct quick_symbol_functions)
11989 <map_matching_symbols>: Constify block argument to "callback".
11990 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11991 const.
11992 (find_pc_sect_compunit_symtab): Make "b" const.
11993 (find_symbol_at_address): Likewise.
11994 (search_symbols): Likewise.
11995 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11996 (dw2_debug_names_lookup_symbol): Likewise.
11997 (dw2_map_matching_symbols): Update.
11998 * p-valprint.c (pascal_val_print): Remove "block".
11999 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12000 (aux_add_nonlocal_symbols): Make "block" const.
12001 (resolve_subexp): Remove cast.
12002 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12003 const.
12004 (iterate_over_file_blocks): Likewise.
12005 * f-exp.y (%union) <bval>: Remove.
12006 * coffread.c (patch_opaque_types): Make "b" const.
12007 * spu-tdep.c (spu_catch_start): Make "block" const.
12008 * c-valprint.c (print_unpacked_pointer): Remove "block".
12009 * symmisc.c (dump_symtab_1): Make "b" const.
12010 (block_depth): Make "block" const.
12011 * d-exp.y (%union) <bval>: Remove.
12012 * cp-support.h (cp_lookup_rtti_type): Update.
12013 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12014 * psymtab.c (psym_lookup_symbol): Make "block" const.
12015 (maintenance_check_psymtabs): Make "b" const.
12016 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12017 (enumerate_locals, enumerate_args): Update.
12018 * python/py-symtab.c (stpy_global_block): Make "block" const.
12019 (stpy_static_block): Likewise.
12020 * inline-frame.c (block_starting_point_at): Make "new_block"
12021 const.
12022 * block.c (find_block_in_blockvector): Make return type const.
12023 (blockvector_for_pc_sect): Make "b" const.
12024 (find_block_in_blockvector): Make "b" const.
12025
12026 2019-03-23 Tom Tromey <tom@tromey.com>
12027
12028 * varobj.c (varobj_create): Update.
12029 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12030 * printcmd.c (display_command, do_one_display): Don't reset
12031 innermost_block.
12032 * parser-defs.h (enum innermost_block_tracker_type): Move to
12033 expression.h.
12034 (innermost_block): Update comment.
12035 * parse.c (parse_exp_1): Add tracker_types parameter.
12036 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12037 tracker_types parameter. Reset innermost_block.
12038 (parse_exp_in_context): Remove.
12039 (parse_expression_for_completion): Update.
12040 * objfiles.c (~objfile): Don't reset expression_context_block or
12041 innermost_block.
12042 * expression.h (enum innermost_block_tracker_type): Move from
12043 parser-defs.h.
12044 (parse_exp_1): Add tracker_types parameter.
12045 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12046 reset innermost_block.
12047
12048 2019-03-23 Tom Tromey <tom@tromey.com>
12049
12050 * objfiles.h: Include bcache.h.
12051
12052 2019-03-23 Tom Tromey <tom@tromey.com>
12053
12054 * linespec.c (get_current_search_block): Use
12055 scoped_restore_current_language.
12056 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12057
12058 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12059 Jiong Wang <jiong.wang@arm.com>
12060
12061 * aarch64-linux-tdep.c
12062 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12063 section.
12064 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12065
12066 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12067 Jiong Wang <jiong.wang@arm.com>
12068
12069 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12070 instructions.
12071 (aarch64_analyze_prologue_test): Add PACIASP test.
12072 (aarch64_prologue_prev_register): Unmask PC value.
12073
12074 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12075 Jiong Wang <jiong.wang@arm.com>
12076
12077 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12078 (aarch64_dwarf2_prev_register): Unmask PC value.
12079 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12080 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12081 DW_CFA_AARCH64_negate_ra_state.
12082 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12083
12084 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12085 Jiong Wang <jiong.wang@arm.com>
12086
12087 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12088 registers.
12089 (aarch64_pseudo_register_name): Likewise.
12090 (aarch64_pseudo_register_type): Likewise.
12091 (aarch64_pseudo_register_reggroup_p): Likewise.
12092 (aarch64_gdbarch_init): Add pauth registers.
12093 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12094 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12095 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12096 (struct gdbarch_tdep): Add regnum for ra_state.
12097
12098 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12099 Jiong Wang <jiong.wang@arm.com>
12100
12101 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12102
12103 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12104 Jiong Wang <jiong.wang@arm.com>
12105
12106 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12107 function.
12108 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12109 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12110 (aarch64_gdbarch_init): Add puth registers.
12111 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12112 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12113 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12114
12115 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12116 Jiong Wang <jiong.wang@arm.com>
12117
12118 * aarch64-linux-nat.c
12119 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12120 * aarch64-linux-tdep.c
12121 (aarch64_linux_core_read_description): Likewise.
12122 (aarch64_linux_get_hwcap): New function.
12123 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12124 (aarch64_linux_get_hwcap): New declaration.
12125
12126 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12127 Jiong Wang <jiong.wang@arm.com>
12128
12129 * aarch64-linux-nat.c
12130 (aarch64_linux_nat_target::read_description): Add pauth param.
12131 * aarch64-linux-tdep.c
12132 (aarch64_linux_core_read_description): Likewise.
12133 * aarch64-tdep.c (struct target_desc): Add in pauth.
12134 (aarch64_read_description): Add pauth param.
12135 (aarch64_gdbarch_init): Likewise.
12136 * aarch64-tdep.h (aarch64_read_description): Likewise.
12137 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12138 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12139 * features/Makefile: Add new files.
12140 * features/aarch64-pauth.c: New file.
12141 * features/aarch64-pauth.xml: New file.
12142
12143 2019-03-20 Tom Tromey <tromey@adacore.com>
12144
12145 * infrun.c (handle_inferior_event): Rename from
12146 handle_inferior_event_1. Create a scoped_value_mark.
12147 (handle_inferior_event): Remove.
12148
12149 2019-03-19 Tom Tromey <tromey@adacore.com>
12150
12151 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12152 * infrun.h (print_stop_event): Add "displays" parameter.
12153 * infrun.c (print_stop_event): Add "displays" parameter.
12154
12155 2019-03-19 Pedro Alves <palves@redhat.com>
12156
12157 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12158 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12159 to -1. Fix TABs vs spaces.
12160 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12161 * tui/tui-out.h (tui_ui_out) Add intro comments.
12162 <m_line, m_start_of_line>: In-class initialize, and add describing
12163 comment.
12164
12165 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12166
12167 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12168 variable names.
12169 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12170
12171 2019-03-18 Pedro Alves <palves@redhat.com>
12172 Eli Zaretskii <eliz@gnu.org>
12173
12174 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12175 m_line and m_start_of_line.
12176
12177 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12178
12179 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12180 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12181 it returns a newline. This fixes a regression in TU mode, whereby
12182 the next line is output on the same screen line as the user input.
12183
12184 2019-03-18 Tom Tromey <tromey@adacore.com>
12185
12186 * minsyms.c (minimal_symbol_reader::install): Remove call to
12187 obstack_blank.
12188
12189 2019-03-18 Pedro Alves <palves@redhat.com>
12190
12191 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12192 New globals.
12193 (apply_style): New, factored out from ...
12194 (apply_ansi_escape): ... this. Handle reverse video mode.
12195 (tui_set_reverse_mode): New function.
12196 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12197 * tui/tui-winsource.c (tui_show_source_line): Use
12198 tui_set_reverse_mode instead of setting A_STANDOUT.
12199 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12200 New setter methods.
12201
12202 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12203
12204 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12205 Handle tabs.
12206
12207 2019-03-18 Tom Tromey <tromey@adacore.com>
12208
12209 * ada-lang.c (empty_array): Add "high" parameter.
12210 (ada_evaluate_subexp): Update.
12211
12212 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12213
12214 * unittests/string_view-selftests.c: Define
12215 _initialize_string_view_selftests unconditionally.
12216
12217 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12218
12219 PR gdb/24350
12220 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12221
12222 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12223
12224 PR gdb/24351
12225 * windows-nat.c (display_selector): Fix format specifiers.
12226
12227 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12228
12229 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12230 tui_refill_source_window instead of tui_refresh_win, to update the
12231 current execution line. This fixes redisplay of the current line
12232 when stepping through the code with "next" or "step".
12233
12234 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12235
12236 * source-cache.c (source_cache::get_source_lines): Call
12237 find_source_lines to initialize s->nlines. This fixes vertical
12238 scrolling of TUI source window when the DOWN arrow is pressed.
12239
12240 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12241
12242 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12243 linux-thread-db.c (_initialize_thread_db): Likewise.
12244
12245 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12246
12247 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12248 wclrtoeol in tui_show_source_line". This reverts changes made in
12249 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12250
12251 2019-03-15 Tom Tromey <tom@tromey.com>
12252
12253 * symtab.h (struct minimal_symbol): Derive from
12254 general_symbol_info.
12255 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12256 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12257 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12258 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12259 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12260 (MSYMBOL_SEARCH_NAME): Update.
12261 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12262 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12263 * minsyms.c (minimal_symbol_reader::record_full): Update.
12264
12265 2019-03-15 Tom Tromey <tom@tromey.com>
12266
12267 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12268
12269 2019-03-15 Tom Tromey <tom@tromey.com>
12270
12271 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12272 unique_xmalloc_ptr.
12273 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12274 Update.
12275 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12276 (build_minimal_symbol_hash_tables)
12277 (minimal_symbol_reader::install): Update.
12278
12279 2019-03-15 Tom Tromey <tom@tromey.com>
12280
12281 * symtab.c (create_demangled_names_hash): Update.
12282 (symbol_set_names): Update.
12283 * objfiles.h (struct objfile_per_bfd_storage)
12284 <demangled_names_hash>: Now an htab_up.
12285 * objfiles.c (objfile_per_bfd_storage): Simplify.
12286
12287 2019-03-15 Tom Tromey <tom@tromey.com>
12288
12289 * objfiles.h (struct objfile_per_bfd_storage): Declare
12290 destructor.
12291 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12292 New.
12293 (get_objfile_bfd_data): Use new. Don't initialize
12294 language_of_main.
12295 (free_objfile_per_bfd_storage): Remove.
12296 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12297
12298 2019-03-15 Tom Tromey <tom@tromey.com>
12299
12300 * symfile.c (reread_symbols): Update.
12301 * objfiles.c (objfile::objfile): Update.
12302 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12303 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12304 comment.
12305 (minimal_symbol_reader::install): Update.
12306 (terminate_minimal_symbol_table): Remove.
12307 * jit.c (jit_object_close_impl): Update.
12308
12309 2019-03-15 Tom Tromey <tom@tromey.com>
12310
12311 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12312 initializations.
12313
12314 2019-03-15 Tom Tromey <tom@tromey.com>
12315
12316 * objfiles.h (struct objfile_per_bfd_storage)
12317 <demangled_hash_languages>: Now a bitset.
12318 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12319 (lookup_minimal_symbol): Update.
12320
12321 2019-03-15 Tom Tromey <tom@tromey.com>
12322
12323 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12324 Don't return the symbol.
12325 * coffread.c (record_minimal_symbol): Use record_full.
12326
12327 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12328
12329 The MS-Windows port of ncurses fails to switch to a color pair if
12330 one or both of the colors are the implicit default colors. This
12331 change records the default colors when TUI is initialized, and
12332 then specifies them explicitly when a color pair uses the default
12333 colors. This allows color styling in TUI mode on MS-Windows.
12334
12335 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12336 ncurses_norm_attr.
12337 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12338 colors in ncurses_norm_attr.
12339 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12340 "none", replace it with the default color recorded in
12341 ncurses_norm_attr.
12342
12343 2019-03-14 Tom Tromey <tromey@adacore.com>
12344
12345 * source-cache.h (class source_cache) <get_source_lines>: Return
12346 std::string.
12347 * source-cache.c (source_cache::extract_lines): Handle case where
12348 first_pos==npos. Return std::string.
12349 (source_cache::get_source_lines): Update.
12350
12351 2019-03-14 Tom Tromey <tromey@adacore.com>
12352
12353 * NEWS: Add item for "style sources" commands.
12354 * source-cache.c (source_cache::get_source_lines): Check
12355 source_styling.
12356 * cli/cli-style.c (source_styling): New global.
12357 (_initialize_cli_style): Add "style sources" commands.
12358 (show_style_sources): New function.
12359 * cli/cli-style.h (source_styling): Declare.
12360
12361 2019-03-14 Pedro Alves <palves@redhat.com>
12362 Tom Tromey <tromey@adacore.com>
12363
12364 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12365 * tui/tui-winsource.c (tui_refill_source_window): New function,
12366 from...
12367 (tui_horizontal_source_scroll): ... here. Move some logic.
12368 * cli/cli-style.c (set_style_enabled): Notify new observable.
12369 * tui/tui-hooks.c (tui_redisplay_source): New function.
12370 (tui_attach_detach_observers): Attach or detach
12371 tui_redisplay_source.
12372 * observable.h (source_styling_changed): New observable.
12373 * observable.c: Define source_styling_changed observable.
12374
12375 2019-03-13 Tom Tromey <tromey@adacore.com>
12376
12377 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12378 (i386_gnu_nat_target::store_registers): Update.
12379 * target-debug.h (target_debug_print_std_string): New macro.
12380 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12381 * windows-tdep.c (display_one_tib): Update.
12382 * tui/tui-stack.c (tui_make_status_line): Update.
12383 * top.c (print_inferior_quit_action): Update.
12384 * thread.c (thr_try_catch_cmd): Update.
12385 (add_thread_with_info): Update.
12386 (thread_target_id_str): Update.
12387 (thr_try_catch_cmd): Update.
12388 (thread_command): Update.
12389 (thread_find_command): Update.
12390 * record-btrace.c (record_btrace_target::info_record)
12391 (record_btrace_resume_thread, record_btrace_target::resume)
12392 (record_btrace_cancel_resume, record_btrace_step_thread)
12393 (record_btrace_target::wait, record_btrace_target::wait)
12394 (record_btrace_target::wait, record_btrace_target::stop): Update.
12395 * progspace.c (print_program_space): Update.
12396 * process-stratum-target.c
12397 (process_stratum_target::thread_address_space): Update.
12398 * linux-fork.c (linux_fork_mourn_inferior)
12399 (detach_checkpoint_command, info_checkpoints_command)
12400 (linux_fork_context): Update.
12401 (linux_fork_detach): Update.
12402 (class scoped_switch_fork_info): Update.
12403 (delete_checkpoint_command): Update.
12404 * infrun.c (follow_fork_inferior): Update.
12405 (follow_fork_inferior): Update.
12406 (proceed_after_vfork_done): Update.
12407 (handle_vfork_child_exec_or_exit): Update.
12408 (follow_exec): Update.
12409 (displaced_step_prepare_throw): Update.
12410 (displaced_step_restore): Update.
12411 (start_step_over): Update.
12412 (resume_1): Update.
12413 (clear_proceed_status_thread): Update.
12414 (proceed): Update.
12415 (print_target_wait_results): Update.
12416 (do_target_wait): Update.
12417 (context_switch): Update.
12418 (stop_all_threads): Update.
12419 (restart_threads): Update.
12420 (finish_step_over): Update.
12421 (handle_signal_stop): Update.
12422 (switch_back_to_stepped_thread): Update.
12423 (keep_going_pass_signal): Update.
12424 (print_exited_reason): Update.
12425 (normal_stop): Update.
12426 * inferior.c (inferior_pid_to_str): Change return type.
12427 (print_selected_inferior): Update.
12428 (add_inferior): Update.
12429 (detach_inferior): Update.
12430 * dummy-frame.c (fprint_dummy_frames): Update.
12431 * dcache.c (dcache_info_1): Update.
12432 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12433 (btrace_fetch, btrace_clear): Update.
12434 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12435 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12436 type.
12437 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12438 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12439 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12440 * gdbarch.c, gdbarch.h: Rebuild.
12441 * gdbarch.sh (core_pid_to_str): Change return type.
12442 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12443 return type.
12444 (windows_nat_target::pid_to_str): Change return type.
12445 (windows_delete_thread): Update.
12446 (windows_nat_target::attach): Update.
12447 (windows_nat_target::files_info): Update.
12448 * target-delegates.c: Rebuild.
12449 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12450 return type.
12451 (sol_thread_target::pid_to_str): Change return type.
12452 * remote.c (class remote_target) <pid_to_str>: Change return
12453 type.
12454 (remote_target::pid_to_str): Change return type.
12455 (extended_remote_target::attach, remote_target::remote_stop_ns)
12456 (remote_target::remote_notif_remove_queued_reply)
12457 (remote_target::push_stop_reply, remote_target::disable_btrace):
12458 Update.
12459 (extended_remote_target::attach): Update.
12460 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12461 type.
12462 (gdbsim_target::pid_to_str): Change return type.
12463 * ravenscar-thread.c (struct ravenscar_thread_target)
12464 <pid_to_str>: Change return type.
12465 (ravenscar_thread_target::pid_to_str): Change return type.
12466 * procfs.c (class procfs_target) <pid_to_str>: Change return
12467 type.
12468 (procfs_target::pid_to_str): Change return type.
12469 (procfs_target::attach): Update.
12470 (procfs_target::detach): Update.
12471 (procfs_target::fetch_registers): Update.
12472 (procfs_target::store_registers): Update.
12473 (procfs_target::wait): Update.
12474 (procfs_target::files_info): Update.
12475 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12476 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12477 return type.
12478 (nto_procfs_target::pid_to_str): Change return type.
12479 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12480 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12481 return type.
12482 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12483 (exit_lwp): Update.
12484 (attach_proc_task_lwp_callback, get_detach_signal)
12485 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12486 (linux_nat_target::resume, wait_lwp, stop_callback)
12487 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12488 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12489 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12490 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12491 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12492 type.
12493 (inf_ptrace_target::attach): Update.
12494 (inf_ptrace_target::files_info): Update.
12495 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12496 type.
12497 (go32_nat_target::pid_to_str): Change return type.
12498 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12499 (gnu_nat_target::wait): Update.
12500 (gnu_nat_target::wait): Update.
12501 (gnu_nat_target::resume): Update.
12502 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12503 (fbsd_nat_target::wait): Update.
12504 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12505 type.
12506 (darwin_nat_target::attach): Update.
12507 * corelow.c (class core_target) <pid_to_str>: Change return type.
12508 (core_target::pid_to_str): Change return type.
12509 * target.c (normal_pid_to_str): Change return type.
12510 (default_pid_to_str): Likewise.
12511 (target_pid_to_str): Change return type.
12512 (target_translate_tls_address): Update.
12513 (target_announce_detach): Update.
12514 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12515 return type.
12516 (bsd_uthread_target::pid_to_str): Change return type.
12517 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12518 type.
12519 (bsd_kvm_target::pid_to_str): Change return type.
12520 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12521 return type.
12522 (aix_thread_target::pid_to_str): Change return type.
12523 * target.h (struct target_ops) <pid_to_str>: Change return type.
12524 (target_pid_to_str, normal_pid_to_str): Likewise.
12525 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12526 type.
12527 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12528 type.
12529 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12530 return type.
12531 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12532 type.
12533 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12534 type.
12535 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12536 return type.
12537
12538 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12539
12540 * NEWS: Mention that the new default MI version is 3. Mention
12541 changes to the output of commands and events that deal with
12542 multi-location breakpoints.
12543 * breakpoint.c: Include "mi/mi-out.h".
12544 (print_one_breakpoint): Change output syntax if using MI version
12545 >= 3.
12546 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12547 New.
12548 (mi_multi_location_breakpoint_output_fixed): New.
12549 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12550 (mi_cmd_fix_multi_location_breakpoint_output): New.
12551 (mi_multi_location_breakpoint_output_fixed): New.
12552 * mi/mi-cmds.c (mi_cmds): Register command
12553 -fix-multi-location-breakpoint-output.
12554 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12555 interpreter "mi".
12556
12557 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12558
12559 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12560 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12561 instantiate mi_ui_out based on interpreter name.
12562 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12563 * mi/mi-main.c (mi_load_progress): Likewise.
12564
12565 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12566
12567 * NEWS: Combine separate "New targets" sections for 8.3.
12568
12569 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12570
12571 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12572 (ppcfbsd_init_abi): Install gdbarch
12573 "fetch_tls_load_module_address" and "get_thread_local_address"
12574 methods.
12575
12576 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12577
12578 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12579 (riscv_fbsd_init_abi): Install gdbarch
12580 "fetch_tls_load_module_address" and "get_thread_local_address"
12581 methods.
12582
12583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12584
12585 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12586 (i386fbsd_init_abi): Install gdbarch
12587 "fetch_tls_load_module_address" and "get_thread_local_address"
12588 methods.
12589
12590 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12591
12592 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12593 (amd64fbsd_init_abi): Install gdbarch
12594 "fetch_tls_load_module_address" and "get_thread_local_address"
12595 methods.
12596
12597 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12598
12599 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12600 (struct fbsd_pspace_data): New type.
12601 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12602 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12603 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12604 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12605 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12606
12607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12608
12609 * gdbtypes.c (lookup_struct_elt): New function.
12610 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12611 * gdbtypes.h (struct struct_elt): New type.
12612 (lookup_struct_elt): New prototype.
12613
12614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12615
12616 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12617 remove disabled code block.
12618
12619 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12620
12621 * gdbarch.sh (get_thread_local_address): New method.
12622 * gdbarch.h, gdbarch.c: Regenerate.
12623 * target.c (target_translate_tls_address): Use
12624 gdbarch_get_thread_local_address if present instead of
12625 target::get_thread_local_address.
12626
12627 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12628
12629 * target.h (target::get_thread_local_address): Update comment.
12630
12631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12632
12633 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12634 objfile->separate_debug_objfile_backlink if not NULL.
12635
12636 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12637
12638 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12639 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12640 (amd64bsd_store_inferior_registers): Likewise.
12641 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12642 Enable segment base registers.
12643 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12644 PT_GETFSBASE and PT_GETGSBASE.
12645 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12646 PT_SETGSBASE.
12647 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12648 segment base registers.
12649 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12650
12651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12652
12653 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12654 Update calls to i386_target_description to add 'segments'
12655 parameter.
12656 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12657 add segment base registers.
12658 * arch/i386.c (i386_create_target_description): Add 'segments'
12659 parameter to enable segment base registers.
12660 * arch/i386.h (i386_create_target_description): Likewise.
12661 * features/i386/32bit-segments.xml: New file.
12662 * features/i386/32bit-segments.c: Generate.
12663 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12664 call to i386_target_description to add 'segments' parameter.
12665 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12666 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12667 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12668 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12669 if feature is present.
12670 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12671 Add 'segments' parameter to call to i386_target_description.
12672 (i386_target_description): Add 'segments' parameter to enable
12673 segment base registers.
12674 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12675 to call to i386_target_description.
12676 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12677 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12678 Define I386_NUM_REGS.
12679 (i386_target_description): Add 'segments' parameter to enable
12680 segment base registers.
12681
12682 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12683
12684 PR/24325
12685 * source-cache.c: #undef open and close, to avoid unresolved
12686 externals during linking.
12687
12688 2019-03-12 Tom Tromey <tromey@adacore.com>
12689
12690 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12691 const. Add initializers.
12692 (_initialize_remote): Don't initialize ptid globals.
12693
12694 2019-03-12 Pedro Alves <palves@redhat.com>
12695
12696 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12697
12698 2019-03-12 Pedro Alves <palves@redhat.com>
12699
12700 * cp-name-parser.y (main): Remove unused 'len' variable.
12701
12702 2019-03-12 Tom Tromey <tromey@adacore.com>
12703
12704 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12705 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12706
12707 2019-03-12 Tom Tromey <tromey@adacore.com>
12708
12709 * linux-nat.c (iterate_over_lwps): Update.
12710 (stop_callback): Remove parameter.
12711 (stop_wait_callback, detach_callback, resume_set_callback)
12712 (select_singlestep_lwp_callback, set_ignore_sigint)
12713 (status_callback, resumed_callback, resume_clear_callback)
12714 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12715 data parameter.
12716 (linux_nat_target::detach, linux_nat_target::resume)
12717 (linux_stop_and_wait_all_lwps, select_event_lwp)
12718 (linux_nat_filter_event, linux_nat_wait_1)
12719 (linux_nat_target::kill, linux_nat_target::stop)
12720 (linux_nat_target::stop): Update.
12721 (linux_nat_resume_callback): Change type.
12722 (resume_stopped_resumed_lwps, count_events_callback)
12723 (select_event_lwp_callback): Likewise.
12724 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12725 * arm-linux-nat.c (struct update_registers_data): Remove.
12726 (update_registers_callback): Change type.
12727 (arm_linux_insert_hw_breakpoint1): Update.
12728 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12729 parameter.
12730 (x86_linux_dr_set_addr): Update.
12731 (x86_linux_dr_set_control): Update.
12732 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12733 (iterate_over_lwps): Use gdb::function_view.
12734 * nat/aarch64-linux-hw-point.c (struct
12735 aarch64_dr_update_callback_param): Remove.
12736 (debug_reg_change_callback): Change type.
12737 (aarch64_notify_debug_reg_change): Update.
12738 * s390-linux-nat.c (s390_refresh_per_info): Update.
12739
12740 2019-03-11 Tom Tromey <tromey@adacore.com>
12741
12742 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12743 redundant assignment to "this_cu".
12744
12745 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12746
12747 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12748
12749 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12752 from...
12753 (rank_one_type): ... this.
12754
12755 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12756
12757 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12758 from...
12759 (rank_one_type): ... this.
12760
12761 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12762
12763 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12764 from...
12765 (rank_one_type): ... this.
12766
12767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12770 from...
12771 (rank_one_type): ... this.
12772
12773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12774
12775 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12776 from...
12777 (rank_one_type): ... this.
12778
12779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12780
12781 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12782 from...
12783 (rank_one_type): ... this.
12784
12785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12788 from...
12789 (rank_one_type): ... this.
12790
12791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12792
12793 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12794 from...
12795 (rank_one_type): ... this.
12796
12797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12800 from...
12801 (rank_one_type): ... this.
12802
12803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12804
12805 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12806 from...
12807 (rank_one_type): ... this.
12808
12809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12810
12811 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12812 from...
12813 (rank_one_type): ... this.
12814
12815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12816
12817 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12818 from...
12819 (rank_one_type): ... this.
12820
12821 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12822
12823 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12824 inferior-events' shows the example events.
12825
12826 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12827
12828 Support styling on native MS-Windows console
12829
12830 PR/24315
12831 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12832 on MS-Windows if $TERM is not defined.
12833
12834 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12835
12836 * posix-hdep.c (gdb_console_fputs):
12837 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12838 functions.
12839 * ui-file.h (gdb_console_fputs): Add prototype.
12840
12841 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12842 back to fputs only if the former returns zero.
12843
12844 2019-03-07 Tom Tromey <tom@tromey.com>
12845
12846 * symmisc.c (print_symbol_bcache_statistics): Update.
12847 (print_objfile_statistics): Update.
12848 * symfile.c (allocate_symtab): Update.
12849 * stabsread.c: Don't include bcache.h.
12850 * psymtab.h (struct psymbol_bcache): Don't declare.
12851 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12852 (psymbol_bcache_init, psymbol_bcache_free)
12853 (psymbol_bcache_get_bcache): Don't declare.
12854 * psymtab.c (struct psymbol_bcache): Remove.
12855 (psymtab_storage::psymtab_storage): Update.
12856 (psymtab_storage::~psymtab_storage): Update.
12857 (psymbol_bcache_init, psymbol_bcache_free)
12858 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12859 (add_psymbol_to_bcache): Update.
12860 (allocate_psymtab): Update.
12861 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12862 macro_cache>: No longer pointers.
12863 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12864 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12865 * macrotab.c (macro_bcache): Update.
12866 * macroexp.c: Don't include bcache.h.
12867 * gdbtypes.c (check_types_worklist): Update.
12868 (types_deeply_equal): Remove TRY/CATCH. Update.
12869 * elfread.c (elf_symtab_read): Update.
12870 * dwarf2read.c: Don't include bcache.h.
12871 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12872 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12873 (print_bcache_statistics, bcache_memory_used): Don't declare.
12874 (struct bcache): Move from bcache.c. Add constructor, destructor,
12875 methods. Rename all data members.
12876 * bcache.c (struct bcache): Move to bcache.h.
12877 (bcache::expand_hash_table): Rename from expand_hash_table.
12878 (bcache): Remove.
12879 (bcache::insert): Rename from bcache_full.
12880 (bcache::compare): Rename from bcache_compare.
12881 (bcache_xmalloc): Remove.
12882 (bcache::~bcache): Rename from bcache_xfree.
12883 (bcache::print_statistics): Rename from print_bcache_statistics.
12884 (bcache::memory_used): Rename from bcache_memory_used.
12885
12886 2019-03-07 Pedro Alves <palves@redhat.com>
12887
12888 * infrun.c (normal_stop): Also check for
12889 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12890
12891 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12892
12893 * f-lang.c (value_from_host_double): Moved to...
12894 * value.c (value_from_host_double): ...here.
12895 * value.h (value_from_host_double): Declare.
12896 * guile/scm-math.c (vlscm_convert_typed_number): Use
12897 value_from_host_double.
12898 (vlscm_convert_number): Likewise.
12899 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12900 * python/py-value.c (convert_value_from_python): Likewise.
12901
12902 2019-03-06 Tom Tromey <tom@tromey.com>
12903
12904 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12905
12906 2019-03-06 Tom Tromey <tom@tromey.com>
12907
12908 * utils.h (free_current_contents): Don't declare.
12909 * utils.c (free_current_contents): Remove.
12910
12911 2019-03-06 Tom Tromey <tom@tromey.com>
12912
12913 * top.c (quit_force): Update.
12914 * main.c (captured_command_loop): Update.
12915 * common/new-op.c (operator new): Update.
12916 * common/common-exceptions.c (struct catcher)
12917 <save_cleanup_chain>: Remove member.
12918 (exceptions_state_mc_init): Update.
12919 (exception_try_scope_entry): Return nullptr.
12920 (exception_try_scope_exit, exception_rethrow)
12921 (throw_exception_sjlj, throw_exception_cxx): Update.
12922 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12923 (all_cleanups, do_cleanups, discard_cleanups)
12924 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12925 (restore_cleanups, restore_final_cleanups): Don't declare.
12926 (do_final_cleanups): Remove parameter.
12927 * common/cleanups.c (cleanup_chain, make_cleanup)
12928 (make_cleanup_dtor, all_cleanups, do_cleanups)
12929 (discard_my_cleanups, discard_cleanups)
12930 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12931 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12932 (null_cleanup): Remove.
12933 (do_final_cleanups): Remove parameter.
12934
12935 2019-03-06 Tom Tromey <tom@tromey.com>
12936
12937 * remote.c (remote_target::remote_parse_stop_reply): Use
12938 unique_xmalloc_ptr.
12939
12940 2019-03-06 Tom Tromey <tom@tromey.com>
12941
12942 * stabsread.c (struct stabs_field_info): Rename from field_info.
12943 <list, fnlist>: Add initializers.
12944 <obstack>: New member.
12945 (read_member_functions, read_struct_fields, read_baseclasses):
12946 Allocate on obstack. Don't use cleanups.
12947 (read_one_struct_field, read_member_functions, read_struct_fields)
12948 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12949 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12950 (read_struct_type): Update.
12951
12952 2019-03-06 Tom Tromey <tom@tromey.com>
12953
12954 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12955 * common/filestuff.h (make_cleanup_close): Don't declare.
12956 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12957 Remove.
12958
12959 2019-03-06 Tom Tromey <tom@tromey.com>
12960
12961 * solib-aix.c: Use make_scope_exit.
12962
12963 2019-03-06 Tom Tromey <tom@tromey.com>
12964
12965 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12966 Use make_scope_exit.
12967
12968 2019-03-06 Tom Tromey <tom@tromey.com>
12969
12970 * solib-svr4.c (disable_probes_interface): Remove parameter.
12971 (svr4_handle_solib_event): Use make_scope_exit.
12972
12973 2019-03-06 Tom Tromey <tom@tromey.com>
12974
12975 * remote.c (struct stop_reply_deleter): Remove.
12976 (stop_reply_up): Update.
12977 (struct stop_reply): Derive from notif_event. Don't typedef.
12978 <regcache>: Now a std::vector.
12979 (stop_reply_xfree): Remove.
12980 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12981 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12982 (remote_target::discard_pending_stop_replies): Use delete.
12983 (remote_target::remote_parse_stop_reply): Update.
12984 (remote_target::process_stop_reply): Update.
12985 * remote-notif.h (struct notif_event): Add virtual destructor.
12986 Remove "dtr" member.
12987 (struct notif_client) <alloc_event>: Return a unique_ptr.
12988 (notif_event_xfree): Don't declare.
12989 (notif_event_up): New typedef.
12990 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12991 (notif_event_xfree, do_notif_event_xfree): Remove.
12992 (remote_notif_state_xfree): Update.
12993
12994 2019-03-06 Tom Tromey <tom@tromey.com>
12995
12996 * infrun.c (displaced_step_clear_cleanup): Now a
12997 forward_scope_exit type.
12998 (displaced_step_prepare_throw): Update.
12999 (displaced_step_fixup): Update.
13000
13001 2019-03-06 Tom Tromey <tom@tromey.com>
13002
13003 * inferior.h (class inferior): Update comment.
13004 * gdbthread.h (class thread_info): Update comment.
13005
13006 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13007 Tom Tromey <tom@tromey.com>
13008
13009 * stabsread.h (struct stab_section_list): Remove.
13010 (coffstab_build_psymtabs): Update.
13011 * dbxread.c (symbuf_sections): Now a std::vector.
13012 (sect_idx): New global.
13013 (fill_symbuf): Update.
13014 (coffstab_build_psymtabs): Change type of stabsects parameter.
13015 Update.
13016 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13017 std::vector.
13018 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13019 (coff_locate_sections): Update.
13020 (coff_symfile_read): Remove cleanups. Update.
13021 (init_stringtab): Add storage parameter.
13022 (free_stringtab, free_stringtab_cleanup): Remove.
13023 (init_lineno): Add storage parameter.
13024 (free_linetab, free_linetab_cleanup): Remove.
13025
13026 2019-03-06 Pedro Alves <palves@redhat.com>
13027
13028 * linux-fork.c (fork_info::clobber_regs): Delete.
13029 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13030 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13031 comment. Adjust.
13032 (scoped_switch_fork_info::scoped_switch_fork_info)
13033 (checkpoint_command, linux_fork_context): Adjust
13034 fork_save_infrun_state calls.
13035
13036 2019-03-06 Pedro Alves <palves@redhat.com>
13037
13038 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13039 (inf_has_multiple_threads): Return 'bool' and rewrite using
13040 inferior_info::threads().
13041
13042 2019-03-06 Pedro Alves <palves@redhat.com>
13043
13044 * linux-fork.c: Include <list>.
13045 (fork_list): Now a std::list instance.
13046 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13047 (forks_exist_p, find_last_fork): Adjust.
13048 (new_fork): Delete.
13049 (one_fork_p): New.
13050 (add_fork): Adjust.
13051 (free_fork): Delete, folded into fork_info::~fork_info().
13052 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13053 Adjust.
13054 (init_fork_list): Delete.
13055 (linux_fork_killall, linux_fork_mourn_inferior)
13056 (linux_fork_detach, info_checkpoints_command): Adjust.
13057 (_initialize_linux_fork): No longer call init_fork_list.
13058
13059 2019-03-06 Pedro Alves <palves@redhat.com>
13060
13061 * linux-fork.c (new_fork): New, split out of ...
13062 (add_fork): ... this. Return void. Move "first fork" special
13063 case from here, to ...
13064 (checkpoint_command): ... here.
13065 * linux-linux.h (add_fork): Return void.
13066
13067 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13068
13069 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13070
13071 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13072 Chris January <chris.january@arm.com>
13073 David Lecomber <david.lecomber@arm.com>
13074
13075 * f-exp.y: New token, UNOP_INTRINSIC.
13076 (exp): New pattern using UNOP_INTRINSIC token.
13077 (f77_keywords): Add 'abs' keyword.
13078 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13079 (value_from_host_double): New function.
13080 (evaluate_subexp_f): Support UNOP_ABS.
13081
13082 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13083
13084 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13085 types.
13086
13087 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13088
13089 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13090 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13091 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13092
13093 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13094
13095 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13096
13097 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13098 Chris January <chris.january@arm.com>
13099
13100 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13101 * f-exp.y: Define 'KIND' token.
13102 (exp): New pattern for KIND expressions.
13103 (ptype): Handle types with a kind extension.
13104 (direct_abs_decl): Extend to spot kind extensions.
13105 (f77_keywords): Add 'kind' to the list.
13106 (push_kind_type): New function.
13107 (convert_to_kind_type): New function.
13108 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13109 * parse.c (operator_length_standard): Likewise.
13110 * parser-defs.h (enum type_pieces): Add tp_kind.
13111 * std-operator.def: Add UNOP_KIND.
13112
13113 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13114
13115 * f-exp.y (f_parse): Set yydebug.
13116
13117 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * f-lang.c (evaluate_subexp_f): New function.
13120 (exp_descriptor_f): New global.
13121 (f_language_defn): Use exp_descriptor_f instead of
13122 exp_descriptor_standard.
13123
13124 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * f-exp.y (struct token): Add comments.
13127 (dot_ops): Remove uppercase versions and the end marker.
13128 (f77_keywords): Likewise.
13129 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13130 entries in the dot_ops array are case insensitive, and use
13131 strncasecmp to compare strings. Also some whitespace cleanup in
13132 this area. Similar for the f77_keywords array, except entries in
13133 this list might be case sensitive.
13134
13135 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13136
13137 * f-exp.y (struct f77_boolean_val): Add comments.
13138 (boolean_values): Remove uppercase versions, and end marker.
13139 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13140 and use strncasecmp to achieve case insensitivity. Additionally,
13141 perform whitespace cleanup around this code.
13142
13143 2019-03-06 Tom Tromey <tromey@adacore.com>
13144
13145 * remote-sim.c (gdbsim_target_open): Use result of
13146 gdb_argv::release.
13147
13148 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13149 Dirk Schubert <dirk.schubert@arm.com>
13150 Chris January <chris.january@arm.com>
13151
13152 * eval.c (evaluate_subexp_standard): Call Fortran argument
13153 wrapping logic.
13154 * f-lang.c (struct value): A value which can be passed into a
13155 Fortran function call.
13156 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13157 where appropriate.
13158 (struct type): Value ready for a Fortran function call.
13159 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13160 is needed.
13161 * f-lang.h (fortran_argument_convert): Declaration.
13162 (fortran_preserve_arg_pointer): Declaration.
13163 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13164
13165 2019-03-05 Tom Tromey <tromey@adacore.com>
13166
13167 * python/py-prettyprint.c (print_string_repr): Remove #if.
13168 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13169
13170 2019-03-05 Tom Tromey <tromey@adacore.com>
13171
13172 * target.c (the_dummy_target): Move later. Change type to
13173 "dummy_target".
13174 (initialize_targets): Don't initialize the_dummy_target.
13175
13176 2019-03-05 Tom Tromey <tromey@adacore.com>
13177
13178 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13179 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13180
13181 2019-03-05 Tom Tromey <tromey@adacore.com>
13182
13183 * windows-nat.c (windows_nat_target::attach)
13184 (windows_nat_target::detach): Don't call gdb_flush.
13185 * valprint.c (generic_val_print, val_print, val_print_string):
13186 Don't call gdb_flush.
13187 * utils.c (defaulted_query): Don't call gdb_flush.
13188 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13189 * target.c (target_announce_detach): Don't call gdb_flush.
13190 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13191 * remote.c (extended_remote_target::attach): Don't call
13192 gdb_flush.
13193 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13194 * printcmd.c (do_examine): Don't call gdb_flush.
13195 (info_display_command): Don't call gdb_flush.
13196 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13197 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13198 * memattr.c (info_mem_command): Don't call gdb_flush.
13199 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13200 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13201 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13202 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13203 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13204 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13205 (gnu_nat_target::detach): Don't call gdb_flush.
13206 * f-valprint.c (f_val_print): Don't call gdb_flush.
13207 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13208 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13209 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13210 gdb_flush.
13211 * c-valprint.c (c_val_print): Don't call gdb_flush.
13212 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13213
13214 2019-03-05 Tom Tromey <tromey@adacore.com>
13215
13216 * varobj.c (update_dynamic_varobj_children): Update.
13217 (install_default_visualizer): Use reset, not release.
13218 * value.c (set_internalvar): Update.
13219 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13220 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13221 ATTRIBUTE_UNUSED_RESULT.
13222
13223 2019-03-05 Tom Tromey <tromey@adacore.com>
13224
13225 * remote.c (class scoped_remote_fd) <release>: Add
13226 ATTRIBUTE_UNUSED_RESULT.
13227
13228 2019-03-05 Tom Tromey <tromey@adacore.com>
13229
13230 * macroexp.c (struct macro_buffer) <release>: Add
13231 ATTRIBUTE_UNUSED_RESULT.
13232
13233 2019-03-05 Tom Tromey <tromey@adacore.com>
13234
13235 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13236 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13237 ATTRIBUTE_UNUSED_RESULT.
13238
13239 2019-03-05 Tom Tromey <tromey@adacore.com>
13240
13241 * common/scoped_fd.h (class scoped_fd) <release>: Add
13242 ATTRIBUTE_UNUSED_RESULT.
13243
13244 2019-03-05 Tom Tromey <tromey@adacore.com>
13245
13246 * parser-defs.h (struct parser_state) <release>: Add
13247 ATTRIBUTE_UNUSED_RESULT.
13248
13249 2019-03-05 Tom Tromey <tromey@adacore.com>
13250
13251 * utils.h (class gdb_argv) <release>: Add
13252 ATTRIBUTE_UNUSED_RESULT.
13253 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13254
13255 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13256
13257 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13258 for-loop range, to avoid compiler warnings.
13259
13260 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13261 avoid compiler warnings about unused variables.
13262
13263 * NEWS: Mention end of support for native debugging on MS-Windows
13264 before XP.
13265
13266 PR gdb/24292
13267 * common/netstuff.c:
13268 * gdbserver/gdbreplay.c
13269 * gdbserver/remote-utils.c:
13270 * ser-tcp.c:
13271 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13272 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13273 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13274 'getaddrinfo' and 'freeaddrinfo' were not available before
13275 Windows XP, and mingw.org's MinGW headers by default define
13276 _WIN32_WINNT to 0x500.
13277
13278 2019-03-01 Gary Benson <gbenson@redhat.com>
13279
13280 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13281
13282 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13283 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13284
13285 PR gdb/8527
13286 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13287 set_sigint_trap, clear_sigint_trap.
13288
13289 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13290
13291 * target.c (target_detach): Clear the regcache and the
13292 frame cache.
13293
13294 2019-02-27 Pedro Alves <palves@redhat.com>
13295
13296 * utils.c (set_screen_size): When we cap the height/width sizes,
13297 tweak the corresponding command variable to show "unlimited":
13298
13299 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13300 Pedro Alves <palves@redhat.com>
13301
13302 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13303 before calling rl_set_screen_size.
13304
13305 2019-02-27 Tom Tromey <tromey@adacore.com>
13306
13307 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13308 define.
13309 * python/py-value.c: Remove Python 2.4 workaround.
13310 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13311 workaround.
13312 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13313 Python 2.4 workaround.
13314 * python/python-internal.h: Remove Python 2.4 comment.
13315 (Py_ssize_t): Don't define.
13316 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13317 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13318 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13319 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13320 * python/python.c (do_start_initialization): Remove Python 2.4
13321 workaround.
13322 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13323 (print_children): Remove Python 2.4 workaround.
13324 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13325 workaround.
13326 (CHARBUFFERPROC_NAME): Remove.
13327 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13328 Python 2.4 workaround.
13329
13330 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13331
13332 * NEWS: Note minimum Python version.
13333
13334 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13335
13336 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13337 code from these functions. Remove corresponding ifdefs. Use
13338 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13339 Remove gotos and target of gotos.
13340 (infpy_search_memory): Likewise.
13341
13342 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13343
13344 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13345 (hppa_gdbarch_init): Don't register deleted functions with
13346 gdbarch.
13347
13348 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13349
13350 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13351 (h8300_unwind_sp): Delete.
13352 (h8300_dummy_id): Delete.
13353 (h8300_gdbarch_init): Don't register deleted functions with
13354 gdbarch.
13355
13356 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13357
13358 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13359 (ft32_unwind_pc): Delete.
13360 (ft32_unwind_sp): Delete.
13361 (ft32_gdbarch_init): Don't register deleted functions with
13362 gdbarch.
13363
13364 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13365
13366 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13367 (frv_unwind_pc): Delete.
13368 (frv_unwind_sp): Delete.
13369 (frv_gdbarch_init): Don't register deleted functions with
13370 gdbarch.
13371
13372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13375 (riscv_unwind_pc): Delete.
13376 (riscv_unwind_sp): Delete.
13377 (riscv_gdbarch_init): Don't register deleted functions with
13378 gdbarch.
13379
13380 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13381
13382 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13383 (csky_unwind_pc): Delete.
13384 (csky_unwind_sp): Delete.
13385 (csky_gdbarch_init): Don't register deleted functions with
13386 gdbarch.
13387
13388 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13389
13390 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13391 (cris_unwind_pc): Delete.
13392 (cris_unwind_sp): Delete.
13393 (cris_gdbarch_init): Don't register deleted functions with
13394 gdbarch.
13395
13396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13397
13398 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13399 (bfin_unwind_pc): Delete.
13400 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13401
13402 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13403
13404 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13405 (arm_unwind_pc): Delete.
13406 (arm_unwind_sp): Delete.
13407 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13408
13409 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13410
13411 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13412 (arc_unwind_pc): Delete.
13413 (arc_unwind_sp): Delete.
13414 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13415
13416 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13417
13418 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13419 (alpha_unwind_pc): Delete.
13420 (alpha_gdbarch_init): Don't register deleted functions with
13421 gdbarch.
13422
13423 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13424
13425 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13426 (aarch64_unwind_pc): Delete.
13427 (aarch64_unwind_sp): Delete.
13428 (aarch64_gdbarch_init): Don't register deleted functions with
13429 gdbarch.
13430
13431 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13432
13433 * gdbtypes.c (type_align): Don't consider static members when
13434 computing structure alignment.
13435
13436 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13437
13438 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13439 return 0 for other types.
13440 * arch-utils.c (default_type_align): Always return 0.
13441 * gdbarch.h: Regenerate.
13442 * gdbarch.sh (type_align): Extend comment.
13443 * gdbtypes.c (type_align): Add additional comments, always call
13444 gdbarch_type_align before applying the default rules.
13445 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13446 generic code will then apply a suitable default.
13447 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13448 types, return 0 for other types.
13449
13450 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13451
13452 * NEWS: Create a new section for the next release branch.
13453 Rename the section of the current branch, now that it has
13454 been cut.
13455
13456 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13457
13458 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13459 * version.in: Bump version to 8.3.50.DATE-git.
13460
13461 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * aix-thread.c (ptid_cmp): Remove unused variable.
13464 (get_signaled_thread): Likewise.
13465 (store_regs_user_thread): Likewise.
13466 (store_regs_kernel_thread): Likewise.
13467 (fetch_regs_kernel_thread): Remove shadowed variable.
13468
13469 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13470
13471 * features/riscv/32bit-cpu.xml: Add register numbers.
13472 * features/riscv/32bit-fpu.c: Regenerate.
13473 * features/riscv/32bit-fpu.xml: Add register numbers.
13474 * features/riscv/64bit-cpu.xml: Add register numbers.
13475 * features/riscv/64bit-fpu.c: Regenerate.
13476 * features/riscv/64bit-fpu.xml: Add register numbers.
13477
13478 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13479
13480 * NEWS: Mention two argument form of gdb.Value constructor.
13481 * python/py-value.c (convert_buffer_and_type_to_value): New
13482 function.
13483 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13484 Add support for handling an optional second argument. Call
13485 convert_buffer_and_type_to_value as appropriate.
13486 * python/python-internal.h (Py_buffer_deleter): New struct.
13487 (Py_buffer_up): New typedef.
13488
13489 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13490
13491 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13492 instead of releasing ownership.
13493
13494 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13495
13496 * dwarf2read.c (open_and_init_dwp_file): Call
13497 elf_numsections instead of bfd_count_sections to initialize
13498 dwp_file->num_sections.
13499
13500 2019-02-25 Tom Tromey <tromey@adacore.com>
13501
13502 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13503
13504 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13505
13506 * gcore.in: Add '--readnever' option when invoking GDB.
13507
13508 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13509
13510 * MAINTAINERS: Update my email address.
13511
13512 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13513
13514 * build-id.c (build_id_to_debug_bfd_1): New function.
13515 (build_id_to_debug_bfd): Look for separate debug file in
13516 sysroot.
13517
13518 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * gdbarch.sh: Update the copyright year range that is placed into
13521 generated files.
13522
13523 2019-02-22 Keith Seitz <keiths@redhat.com>
13524
13525 PR symtab/23853
13526 * linespec.c (create_sals_line_offset): Search for the default
13527 symtab's filename instead of its fullname.
13528
13529 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13530
13531 * NEWS: Update style defaults.
13532
13533 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13534
13535 * main.c (captured_main_1): Disable styling in batch mode.
13536
13537 2019-02-20 Tom Tromey <tom@tromey.com>
13538
13539 * symtab.c (symtab_symbol_info): Fix typos.
13540
13541 2019-02-20 Tom Tromey <tromey@adacore.com>
13542
13543 * findcmd.c (_initialize_mem_search): Use upper case for
13544 metasyntactic variables.
13545
13546 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13547
13548 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13549 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13550
13551 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13552
13553 * top.h (source_file_name): Change to std::string.
13554 * top.c (source_file_name): Likewise.
13555 (command_line_input): Adjust.
13556 * cli/cli-script.c (script_from_file): Adjust.
13557
13558 2019-02-19 Tom Tromey <tromey@adacore.com>
13559
13560 * ravenscar-thread.c
13561 (ravenscar_thread_target::update_thread_list): Don't call
13562 ada_build_task_list.
13563 * ada-lang.h (ada_build_task_list): Don't declare.
13564 * ada-tasks.c (struct ada_tasks_inferior_data)
13565 <task_list_valid_p>: Now bool.
13566 (read_known_tasks, ada_task_list_changed)
13567 (ada_tasks_invalidate_inferior_data): Update.
13568 (read_known_tasks_array): Return bool.
13569 (read_known_tasks_list): Likewise.
13570 (read_known_tasks): Return void.
13571 (ada_build_task_list): Now static.
13572
13573 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13574
13575 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13576 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13577
13578 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13579
13580 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13581 variant for ada_tasks_pspace_data_handle and
13582 ada_tasks_inferior_data_handle.
13583 (ada_tasks_pspace_data_cleanup): New function.
13584 (ada_tasks_inferior_data_cleanup): New function.
13585
13586 2019-02-17 Tom Tromey <tom@tromey.com>
13587
13588 * macrotab.h (macro_source_fullname): Return a std::string.
13589 * macrotab.c (macro_include, check_for_redefinition)
13590 (macro_undef, macro_lookup_definition, foreach_macro)
13591 (foreach_macro_in_scope): Update.
13592 (macro_source_fullname): Return a std::string.
13593 * macrocmd.c (show_pp_source_pos): Update.
13594
13595 2019-02-17 Tom Tromey <tom@tromey.com>
13596
13597 * macrocmd.c (show_pp_source_pos): Style the file names.
13598
13599 2019-02-17 Tom Tromey <tom@tromey.com>
13600
13601 PR tui/24197:
13602 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13603
13604 2019-02-17 Tom Tromey <tom@tromey.com>
13605
13606 * ada-lang.c (user_select_syms): Use filtered printing.
13607 * utils.c (wrap_style): New global.
13608 (desired_style): Remove.
13609 (emit_style_escape): Add stream parameter.
13610 (set_output_style, reset_terminal_style, prompt_for_continue):
13611 Update.
13612 (flush_wrap_buffer): Only flush gdb_stdout.
13613 (wrap_here): Set wrap_style.
13614 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13615 treat escape sequences as a character. Change when wrap buffer is
13616 flushed.
13617 (fputs_styled): Do not set the output style when the default is
13618 requested.
13619 * ui-style.h (struct ui_file_style) <is_default>: New method.
13620 * source.c (print_source_lines_base): Emit escape sequences in one
13621 piece.
13622
13623 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13624
13625 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13626 integers and enumeration types.
13627
13628 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13629
13630 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13631 instead of lookup_symbol_in_language
13632 (do_exact_match): New function.
13633 (ada_get_symbol_name_matcher): Return do_exact_match when
13634 doing a verbatim match.
13635
13636 2019-02-15 Tom Tromey <tromey@adacore.com>
13637
13638 * ravenscar-thread.c (ravenscar_thread_target::resume)
13639 (ravenscar_thread_target::wait): Special case wildcard requests.
13640
13641 2019-02-15 Tom Tromey <tromey@adacore.com>
13642
13643 * ravenscar-thread.c (base_ptid): Remove.
13644 (struct ravenscar_thread_target) <close>: New method.
13645 <m_base_ptid>: New member.
13646 <update_inferior_ptid, active_task, task_is_currently_active,
13647 runtime_initialized>: Declare methods.
13648 <ravenscar_thread_target>: Add constructor.
13649 (ravenscar_thread_target::task_is_currently_active)
13650 (ravenscar_thread_target::update_inferior_ptid)
13651 (ravenscar_runtime_initialized): Rename. Now methods.
13652 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13653 (ravenscar_thread_target::update_thread_list): Update.
13654 (ravenscar_thread_target::active_task): Now method.
13655 (ravenscar_thread_target::store_registers)
13656 (ravenscar_thread_target::prepare_to_store)
13657 (ravenscar_thread_target::prepare_to_store)
13658 (ravenscar_thread_target::mourn_inferior): Update.
13659 (ravenscar_inferior_created): Use "new" to create target.
13660 (ravenscar_thread_target::get_ada_task_ptid): Update.
13661 (_initialize_ravenscar): Don't initialize base_ptid.
13662 (ravenscar_ops): Remove global.
13663
13664 2019-02-15 Tom Tromey <tromey@adacore.com>
13665
13666 * target.h (push_target): Declare new overload.
13667 * target.c (push_target): New overload, taking an rvalue reference.
13668 * remote.c (remote_target::open_1): Use push_target overload.
13669 * corelow.c (core_target_open): Use push_target overload.
13670
13671 2019-02-15 Tom Tromey <tromey@adacore.com>
13672
13673 * ravenscar-thread.c (is_ravenscar_task)
13674 (ravenscar_task_is_currently_active): Return bool.
13675 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13676 (_initialize_ravenscar): Remove "(void)".
13677 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13678 Return bool.
13679
13680 2019-02-15 Tom Tromey <tromey@adacore.com>
13681
13682 * ravenscar-thread.c (ravenscar_runtime_initializer)
13683 (has_ravenscar_runtime, get_running_thread_id)
13684 (ravenscar_thread_target::resume): Fix indentation.
13685
13686 2019-02-15 Tom Tromey <tromey@adacore.com>
13687
13688 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13689 from ravenscar_arch_ops.
13690 (sparc_ravenscar_ops::fetch_registers)
13691 (sparc_ravenscar_ops::store_registers): Now methods.
13692 (sparc_ravenscar_prepare_to_store): Remove.
13693 (sparc_ravenscar_ops): Redefine.
13694 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13695 methods and destructor. Remove members.
13696 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13697 (ravenscar_thread_target::store_registers)
13698 (ravenscar_thread_target::prepare_to_store): Update.
13699 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13700 Remove.
13701 (struct ppc_ravenscar_powerpc_ops): Derive from
13702 ravenscar_arch_ops.
13703 (ppc_ravenscar_powerpc_ops::fetch_registers)
13704 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13705 (ppc_ravenscar_powerpc_ops): Redefine.
13706 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13707 (ppc_ravenscar_e500_ops::fetch_registers)
13708 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13709 (ppc_ravenscar_e500_ops): Redefine.
13710 * aarch64-ravenscar-thread.c
13711 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13712 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13713 (aarch64_ravenscar_fetch_registers)
13714 (aarch64_ravenscar_store_registers): Now methods.
13715 (aarch64_ravenscar_ops): Redefine.
13716
13717 2019-02-15 Tom Tromey <tromey@adacore.com>
13718
13719 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13720 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13721 (ravenscar_thread_target::stopped_by_watchpoint)
13722 (ravenscar_thread_target::stopped_data_address)
13723 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13724
13725 2019-02-15 Tom Tromey <tromey@adacore.com>
13726
13727 * ravenscar-thread.c: Fix some typos.
13728
13729 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13730 Tom Tromey <tromey@adacore.com>
13731
13732 * ada-lang.c (ada_exception_sal): Change addr_string to a
13733 std::string.
13734 (create_ada_exception_catchpoint): Update.
13735
13736 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13737 Tom Tromey <tromey@adacore.com>
13738
13739 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13740 (bp_location_ops): Remove.
13741 (base_breakpoint_allocate_location): Update.
13742 (free_bp_location): Update.
13743 * ada-lang.c (class ada_catchpoint_location)
13744 <ada_catchpoint_location>: Remove ops parameter.
13745 (ada_catchpoint_location_dtor): Remove.
13746 (ada_catchpoint_location_ops): Remove.
13747 (allocate_location_exception): Update.
13748 * breakpoint.h (struct bp_location_ops): Remove.
13749 (class bp_location) <bp_location>: Remove bp_location_ops
13750 parameter.
13751 <~bp_location>: Add destructor.
13752 <ops>: Remove.
13753
13754 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13755 Pedro Alves <palves@redhat.com>
13756
13757 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13758 'PATH_MAX'.
13759
13760 2019-02-14 David Michael <fedora.dm0@gmail.com>
13761 Samuel Thibault <samuel.thibault@gnu.org>
13762 Thomas Schwinge <thomas@codesourcery.com>
13763
13764 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13765 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13766
13767 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13768
13769 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13770 (check_empty): Use "const char *".
13771
13772 * gnu-nat.c (gnu_nat_target::detach): Instead of
13773 'detach_inferior (pid)' call
13774 'detach_inferior (find_inferior_pid (pid))'.
13775
13776 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13777 'nat/fork-inferior.o'.
13778 * gnu-nat.c: #include "nat/fork-inferior.h".
13779
13780 * gnu-nat.c (gnu_nat_target::detach): Instead of
13781 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13782 * gnu-nat.h: #include "inf-child.h".
13783 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13784 'i386_gnu_nat_target::fetch_registers'.
13785 (gnu_store_registers): Rename/move to
13786 'i386_gnu_nat_target::store_registers'.
13787
13788 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13789 * gnu-nat.h (mach_thread_info): New function.
13790 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13791
13792 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13793
13794 2019-02-14 Frederic Konrad <konrad@adacore.com>
13795
13796 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13797
13798 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13799
13800 * windows-nat.c (windows_add_thread): Add new parameter
13801 "main_thread_p" with default value set to false. Update
13802 function documentation as well as all callers.
13803 (windows_delete_thread): Likewise.
13804 (fake_create_process): Update call to windows_add_thread.
13805 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13806 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13807 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13808 call to windows_delete_thread.
13809
13810 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13811
13812 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13813
13814 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13815
13816 * symfile.c (find_separate_debug_file): Use canonical path of
13817 sysroot with child_path instead of gdb_sysroot if it is valid.
13818
13819 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13820
13821 * symfile.c (find_separate_debug_file): Use child_path to
13822 determine if an object file is under a sysroot.
13823
13824 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13825
13826 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13827 unittests/child-path-selftests.c.
13828 * common/pathstuff.c (child_path): New function.
13829 * common/pathstuff.h (child_path): New prototype.
13830 * unittests/child-path-selftests.c: New file.
13831
13832 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13833
13834 * symfile.c (find_separate_debug_file): Look for separate debug
13835 files in debug directories under the sysroot.
13836
13837 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13838
13839 * symtab.h (struct minimal_symbol data_p): New const method.
13840 (struct minimal_symbol text_p): Likewise.
13841 * symtab.c (output_source_filename): Use file name style
13842 to print file name.
13843 (print_symbol_info): Likewise.
13844 (print_msymbol_info): Use address style to print addresses.
13845 Use function name style to print executable text symbols.
13846 (expand_symtab_containing_pc): Use data_p.
13847 (find_pc_sect_compunit_symtab): Likewise.
13848
13849 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13850
13851 * breakpoint.c (describe_other_breakpoints): Use address style
13852 to print addresses.
13853 (say_where): Likewise.
13854
13855 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13856
13857 * ada-typeprint.c (print_func_type): Print function name
13858 style to print function name.
13859 * c-typeprint.c (c_print_type_1): Likewise.
13860
13861 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13862
13863 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13864 for execve.
13865
13866 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13867
13868 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13869 type_stack.
13870
13871 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13872
13873 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13874 TYPE_CODE_REF types.
13875
13876 2019-02-08 Jim Wilson <jimw@sifive.com>
13877
13878 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13879 (riscv_linux_fregset): New.
13880 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13881
13882 2019-02-07 Tom Tromey <tom@tromey.com>
13883
13884 * thread.c (thread_cancel_execution_command): Update.
13885 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13886 methods.
13887 (struct thread_fsm_ops): Remove.
13888 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13889 (thread_fsm_should_stop, thread_fsm_return_value)
13890 (thread_fsm_set_finished, thread_fsm_finished_p)
13891 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13892 Don't declare.
13893 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13894 * infrun.c (clear_proceed_status_thread)
13895 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13896 (print_stop_event): Update.
13897 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13898 Add constructor.
13899 (step_command_fsm_ops): Remove.
13900 (new_step_command_fsm): Remove.
13901 (step_1): Update.
13902 (step_command_fsm::should_stop): Rename from
13903 step_command_fsm_should_stop.
13904 (step_command_fsm::clean_up): Rename from
13905 step_command_fsm_clean_up.
13906 (step_command_fsm::do_async_reply_reason): Rename from
13907 step_command_fsm_async_reply_reason.
13908 (struct until_next_fsm): Inherit from thread_fsm. Add
13909 constructor.
13910 (until_next_fsm_ops): Remove.
13911 (new_until_next_fsm): Remove.
13912 (until_next_fsm::should_stop): Rename from
13913 until_next_fsm_should_stop.
13914 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13915 (until_next_fsm::do_async_reply_reason): Rename from
13916 until_next_fsm_async_reply_reason.
13917 (struct finish_command_fsm): Inherit from thread_fsm. Add
13918 constructor. Change type of breakpoint.
13919 (finish_command_fsm_ops): Remove.
13920 (new_finish_command_fsm): Remove.
13921 (finish_command_fsm::should_stop): Rename from
13922 finish_command_fsm_should_stop.
13923 (finish_command_fsm::clean_up): Rename from
13924 finish_command_fsm_clean_up.
13925 (finish_command_fsm::return_value): Rename from
13926 finish_command_fsm_return_value.
13927 (finish_command_fsm::do_async_reply_reason): Rename from
13928 finish_command_fsm_async_reply_reason.
13929 (finish_command): Update.
13930 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13931 Add constructor.
13932 (call_thread_fsm_ops): Remove.
13933 (call_thread_fsm::call_thread_fsm): Rename from
13934 new_call_thread_fsm.
13935 (call_thread_fsm::should_stop): Rename from
13936 call_thread_fsm_should_stop.
13937 (call_thread_fsm::should_notify_stop): Rename from
13938 call_thread_fsm_should_notify_stop.
13939 (run_inferior_call, call_function_by_hand_dummy): Update.
13940 * cli/cli-interp.c (should_print_stop_to_console): Update.
13941 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13942 Add constructor. Change type of location_breakpoint,
13943 caller_breakpoint.
13944 (until_break_fsm_ops): Remove.
13945 (new_until_break_fsm): Remove.
13946 (until_break_fsm::should_stop): Rename from
13947 until_break_fsm_should_stop.
13948 (until_break_fsm::clean_up): Rename from
13949 until_break_fsm_clean_up.
13950 (until_break_fsm::do_async_reply_reason): Rename from
13951 until_break_fsm_async_reply_reason.
13952 (until_break_command): Update.
13953 * thread-fsm.c: Remove.
13954 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13955
13956 2019-02-07 Tom Tromey <tom@tromey.com>
13957
13958 * yy-remap.h: Add include guard.
13959 * xtensa-tdep.h: Add include guard.
13960 * xcoffread.h: Rename include guard.
13961 * varobj-iter.h: Add include guard.
13962 * tui/tui.h: Rename include guard.
13963 * tui/tui-winsource.h: Rename include guard.
13964 * tui/tui-wingeneral.h: Rename include guard.
13965 * tui/tui-windata.h: Rename include guard.
13966 * tui/tui-win.h: Rename include guard.
13967 * tui/tui-stack.h: Rename include guard.
13968 * tui/tui-source.h: Rename include guard.
13969 * tui/tui-regs.h: Rename include guard.
13970 * tui/tui-out.h: Rename include guard.
13971 * tui/tui-layout.h: Rename include guard.
13972 * tui/tui-io.h: Rename include guard.
13973 * tui/tui-hooks.h: Rename include guard.
13974 * tui/tui-file.h: Rename include guard.
13975 * tui/tui-disasm.h: Rename include guard.
13976 * tui/tui-data.h: Rename include guard.
13977 * tui/tui-command.h: Rename include guard.
13978 * tic6x-tdep.h: Add include guard.
13979 * target/waitstatus.h: Rename include guard.
13980 * target/wait.h: Rename include guard.
13981 * target/target.h: Rename include guard.
13982 * target/resume.h: Rename include guard.
13983 * target-float.h: Rename include guard.
13984 * stabsread.h: Add include guard.
13985 * rs6000-tdep.h: Add include guard.
13986 * riscv-fbsd-tdep.h: Add include guard.
13987 * regformats/regdef.h: Rename include guard.
13988 * record.h: Rename include guard.
13989 * python/python.h: Rename include guard.
13990 * python/python-internal.h: Rename include guard.
13991 * python/py-stopevent.h: Rename include guard.
13992 * python/py-ref.h: Rename include guard.
13993 * python/py-record.h: Rename include guard.
13994 * python/py-record-full.h: Rename include guard.
13995 * python/py-record-btrace.h: Rename include guard.
13996 * python/py-instruction.h: Rename include guard.
13997 * python/py-events.h: Rename include guard.
13998 * python/py-event.h: Rename include guard.
13999 * procfs.h: Add include guard.
14000 * proc-utils.h: Add include guard.
14001 * p-lang.h: Add include guard.
14002 * or1k-tdep.h: Rename include guard.
14003 * observable.h: Rename include guard.
14004 * nto-tdep.h: Rename include guard.
14005 * nat/x86-linux.h: Rename include guard.
14006 * nat/x86-linux-dregs.h: Rename include guard.
14007 * nat/x86-gcc-cpuid.h: Add include guard.
14008 * nat/x86-dregs.h: Rename include guard.
14009 * nat/x86-cpuid.h: Rename include guard.
14010 * nat/ppc-linux.h: Rename include guard.
14011 * nat/mips-linux-watch.h: Rename include guard.
14012 * nat/linux-waitpid.h: Rename include guard.
14013 * nat/linux-ptrace.h: Rename include guard.
14014 * nat/linux-procfs.h: Rename include guard.
14015 * nat/linux-osdata.h: Rename include guard.
14016 * nat/linux-nat.h: Rename include guard.
14017 * nat/linux-namespaces.h: Rename include guard.
14018 * nat/linux-btrace.h: Rename include guard.
14019 * nat/glibc_thread_db.h: Rename include guard.
14020 * nat/gdb_thread_db.h: Rename include guard.
14021 * nat/gdb_ptrace.h: Rename include guard.
14022 * nat/fork-inferior.h: Rename include guard.
14023 * nat/amd64-linux-siginfo.h: Rename include guard.
14024 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14025 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14026 * nat/aarch64-linux.h: Rename include guard.
14027 * nat/aarch64-linux-hw-point.h: Rename include guard.
14028 * mn10300-tdep.h: Add include guard.
14029 * mips-linux-tdep.h: Add include guard.
14030 * mi/mi-parse.h: Rename include guard.
14031 * mi/mi-out.h: Rename include guard.
14032 * mi/mi-main.h: Rename include guard.
14033 * mi/mi-interp.h: Rename include guard.
14034 * mi/mi-getopt.h: Rename include guard.
14035 * mi/mi-console.h: Rename include guard.
14036 * mi/mi-common.h: Rename include guard.
14037 * mi/mi-cmds.h: Rename include guard.
14038 * mi/mi-cmd-break.h: Rename include guard.
14039 * m2-lang.h: Add include guard.
14040 * location.h: Rename include guard.
14041 * linux-record.h: Rename include guard.
14042 * linux-nat.h: Add include guard.
14043 * linux-fork.h: Add include guard.
14044 * i386-darwin-tdep.h: Rename include guard.
14045 * hppa-linux-offsets.h: Add include guard.
14046 * guile/guile.h: Rename include guard.
14047 * guile/guile-internal.h: Rename include guard.
14048 * gnu-nat.h: Rename include guard.
14049 * gdb-stabs.h: Rename include guard.
14050 * frv-tdep.h: Add include guard.
14051 * f-lang.h: Add include guard.
14052 * event-loop.h: Add include guard.
14053 * darwin-nat.h: Rename include guard.
14054 * cp-abi.h: Rename include guard.
14055 * config/sparc/nm-sol2.h: Rename include guard.
14056 * config/nm-nto.h: Rename include guard.
14057 * config/nm-linux.h: Add include guard.
14058 * config/i386/nm-i386gnu.h: Rename include guard.
14059 * config/djgpp/nl_types.h: Rename include guard.
14060 * config/djgpp/langinfo.h: Rename include guard.
14061 * compile/gcc-cp-plugin.h: Add include guard.
14062 * compile/gcc-c-plugin.h: Add include guard.
14063 * compile/compile.h: Rename include guard.
14064 * compile/compile-object-run.h: Rename include guard.
14065 * compile/compile-object-load.h: Rename include guard.
14066 * compile/compile-internal.h: Rename include guard.
14067 * compile/compile-cplus.h: Rename include guard.
14068 * compile/compile-c.h: Rename include guard.
14069 * common/xml-utils.h: Rename include guard.
14070 * common/x86-xstate.h: Rename include guard.
14071 * common/version.h: Rename include guard.
14072 * common/vec.h: Rename include guard.
14073 * common/tdesc.h: Rename include guard.
14074 * common/selftest.h: Rename include guard.
14075 * common/scoped_restore.h: Rename include guard.
14076 * common/scoped_mmap.h: Rename include guard.
14077 * common/scoped_fd.h: Rename include guard.
14078 * common/safe-iterator.h: Rename include guard.
14079 * common/run-time-clock.h: Rename include guard.
14080 * common/refcounted-object.h: Rename include guard.
14081 * common/queue.h: Rename include guard.
14082 * common/ptid.h: Rename include guard.
14083 * common/print-utils.h: Rename include guard.
14084 * common/preprocessor.h: Rename include guard.
14085 * common/pathstuff.h: Rename include guard.
14086 * common/observable.h: Rename include guard.
14087 * common/netstuff.h: Rename include guard.
14088 * common/job-control.h: Rename include guard.
14089 * common/host-defs.h: Rename include guard.
14090 * common/gdb_wait.h: Rename include guard.
14091 * common/gdb_vecs.h: Rename include guard.
14092 * common/gdb_unlinker.h: Rename include guard.
14093 * common/gdb_unique_ptr.h: Rename include guard.
14094 * common/gdb_tilde_expand.h: Rename include guard.
14095 * common/gdb_sys_time.h: Rename include guard.
14096 * common/gdb_string_view.h: Rename include guard.
14097 * common/gdb_splay_tree.h: Rename include guard.
14098 * common/gdb_setjmp.h: Rename include guard.
14099 * common/gdb_ref_ptr.h: Rename include guard.
14100 * common/gdb_optional.h: Rename include guard.
14101 * common/gdb_locale.h: Rename include guard.
14102 * common/gdb_assert.h: Rename include guard.
14103 * common/filtered-iterator.h: Rename include guard.
14104 * common/filestuff.h: Rename include guard.
14105 * common/fileio.h: Rename include guard.
14106 * common/environ.h: Rename include guard.
14107 * common/common-utils.h: Rename include guard.
14108 * common/common-types.h: Rename include guard.
14109 * common/common-regcache.h: Rename include guard.
14110 * common/common-inferior.h: Rename include guard.
14111 * common/common-gdbthread.h: Rename include guard.
14112 * common/common-exceptions.h: Rename include guard.
14113 * common/common-defs.h: Rename include guard.
14114 * common/common-debug.h: Rename include guard.
14115 * common/cleanups.h: Rename include guard.
14116 * common/buffer.h: Rename include guard.
14117 * common/btrace-common.h: Rename include guard.
14118 * common/break-common.h: Rename include guard.
14119 * cli/cli-utils.h: Rename include guard.
14120 * cli/cli-style.h: Rename include guard.
14121 * cli/cli-setshow.h: Rename include guard.
14122 * cli/cli-script.h: Rename include guard.
14123 * cli/cli-interp.h: Rename include guard.
14124 * cli/cli-decode.h: Rename include guard.
14125 * cli/cli-cmds.h: Rename include guard.
14126 * charset-list.h: Add include guard.
14127 * buildsym-legacy.h: Rename include guard.
14128 * bfin-tdep.h: Add include guard.
14129 * ax.h: Rename include guard.
14130 * arm-linux-tdep.h: Add include guard.
14131 * arm-fbsd-tdep.h: Add include guard.
14132 * arch/xtensa.h: Rename include guard.
14133 * arch/tic6x.h: Add include guard.
14134 * arch/i386.h: Add include guard.
14135 * arch/arm.h: Rename include guard.
14136 * arch/arm-linux.h: Rename include guard.
14137 * arch/arm-get-next-pcs.h: Rename include guard.
14138 * arch/amd64.h: Add include guard.
14139 * arch/aarch64-insn.h: Rename include guard.
14140 * arch-utils.h: Rename include guard.
14141 * annotate.h: Add include guard.
14142 * amd64-darwin-tdep.h: Rename include guard.
14143 * aarch64-linux-tdep.h: Add include guard.
14144 * aarch64-fbsd-tdep.h: Add include guard.
14145 * aarch32-linux-nat.h: Add include guard.
14146
14147 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14148
14149 * macrotab.c (macro_define_internal): New function that
14150 factorizes macro_define_object_internal and macro_define_function
14151 code.
14152 (macro_define_object_internal): Use macro_define_internal.
14153 (macro_define_function): Likewise.
14154
14155 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14156
14157 * macrocmd.c (extract_identifier): Return
14158 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14159 callers.
14160
14161 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14162
14163 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14164
14165 2019-02-05 Tom Tromey <tom@tromey.com>
14166
14167 * target.c (target_stack::unpush): Move assertion earlier.
14168
14169 2019-01-30 Tom Tromey <tom@tromey.com>
14170
14171 PR python/23615:
14172 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14173 (gdbpy_parse_and_eval): Likewise.
14174 * python/python-internal.h (gdbpy_allow_threads): New class.
14175
14176 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14177
14178 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14179 (aarch64_fbsd_fpregmap): Move earlier.
14180 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14181 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14182 instead of individual calls to trad_frame_set_reg_addr.
14183 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14184 earlier.
14185 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14186 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14187 instead of individual calls to trad_frame_set_reg_addr.
14188
14189 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14190
14191 * CONTRIBUTE: Replace contribution list with wiki link.
14192
14193 2019-01-25 Tom Tromey <tom@tromey.com>
14194
14195 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14196
14197 2019-01-25 Tom Tromey <tom@tromey.com>
14198
14199 * xtensa-linux-nat.c: Fix common/ includes.
14200 * xml-support.h: Fix common/ includes.
14201 * xml-support.c: Fix common/ includes.
14202 * x86-linux-nat.c: Fix common/ includes.
14203 * windows-nat.c: Fix common/ includes.
14204 * varobj.h: Fix common/ includes.
14205 * varobj.c: Fix common/ includes.
14206 * value.c: Fix common/ includes.
14207 * valops.c: Fix common/ includes.
14208 * utils.c: Fix common/ includes.
14209 * unittests/xml-utils-selftests.c: Fix common/ includes.
14210 * unittests/utils-selftests.c: Fix common/ includes.
14211 * unittests/unpack-selftests.c: Fix common/ includes.
14212 * unittests/tracepoint-selftests.c: Fix common/ includes.
14213 * unittests/style-selftests.c: Fix common/ includes.
14214 * unittests/string_view-selftests.c: Fix common/ includes.
14215 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14216 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14217 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14218 * unittests/rsp-low-selftests.c: Fix common/ includes.
14219 * unittests/parse-connection-spec-selftests.c: Fix common/
14220 includes.
14221 * unittests/optional-selftests.c: Fix common/ includes.
14222 * unittests/offset-type-selftests.c: Fix common/ includes.
14223 * unittests/observable-selftests.c: Fix common/ includes.
14224 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14225 * unittests/memrange-selftests.c: Fix common/ includes.
14226 * unittests/memory-map-selftests.c: Fix common/ includes.
14227 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14228 * unittests/function-view-selftests.c: Fix common/ includes.
14229 * unittests/environ-selftests.c: Fix common/ includes.
14230 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14231 * unittests/common-utils-selftests.c: Fix common/ includes.
14232 * unittests/cli-utils-selftests.c: Fix common/ includes.
14233 * unittests/array-view-selftests.c: Fix common/ includes.
14234 * ui-file.c: Fix common/ includes.
14235 * tui/tui-io.c: Fix common/ includes.
14236 * tracepoint.h: Fix common/ includes.
14237 * tracepoint.c: Fix common/ includes.
14238 * tracefile-tfile.c: Fix common/ includes.
14239 * top.h: Fix common/ includes.
14240 * top.c: Fix common/ includes.
14241 * thread.c: Fix common/ includes.
14242 * target/waitstatus.h: Fix common/ includes.
14243 * target/waitstatus.c: Fix common/ includes.
14244 * target.h: Fix common/ includes.
14245 * target.c: Fix common/ includes.
14246 * target-memory.c: Fix common/ includes.
14247 * target-descriptions.c: Fix common/ includes.
14248 * symtab.h: Fix common/ includes.
14249 * symfile.c: Fix common/ includes.
14250 * stap-probe.c: Fix common/ includes.
14251 * spu-linux-nat.c: Fix common/ includes.
14252 * sparc-nat.c: Fix common/ includes.
14253 * source.c: Fix common/ includes.
14254 * solib.c: Fix common/ includes.
14255 * solib-target.c: Fix common/ includes.
14256 * ser-unix.c: Fix common/ includes.
14257 * ser-tcp.c: Fix common/ includes.
14258 * ser-pipe.c: Fix common/ includes.
14259 * ser-base.c: Fix common/ includes.
14260 * selftest-arch.c: Fix common/ includes.
14261 * s12z-tdep.c: Fix common/ includes.
14262 * rust-exp.y: Fix common/ includes.
14263 * rs6000-aix-tdep.c: Fix common/ includes.
14264 * riscv-tdep.c: Fix common/ includes.
14265 * remote.c: Fix common/ includes.
14266 * remote-notif.h: Fix common/ includes.
14267 * remote-fileio.h: Fix common/ includes.
14268 * remote-fileio.c: Fix common/ includes.
14269 * regcache.h: Fix common/ includes.
14270 * regcache.c: Fix common/ includes.
14271 * record-btrace.c: Fix common/ includes.
14272 * python/python.c: Fix common/ includes.
14273 * python/py-type.c: Fix common/ includes.
14274 * python/py-inferior.c: Fix common/ includes.
14275 * progspace.h: Fix common/ includes.
14276 * producer.c: Fix common/ includes.
14277 * procfs.c: Fix common/ includes.
14278 * proc-api.c: Fix common/ includes.
14279 * printcmd.c: Fix common/ includes.
14280 * ppc-linux-nat.c: Fix common/ includes.
14281 * parser-defs.h: Fix common/ includes.
14282 * osdata.c: Fix common/ includes.
14283 * obsd-nat.c: Fix common/ includes.
14284 * nat/x86-linux.c: Fix common/ includes.
14285 * nat/x86-linux-dregs.c: Fix common/ includes.
14286 * nat/x86-dregs.h: Fix common/ includes.
14287 * nat/x86-dregs.c: Fix common/ includes.
14288 * nat/ppc-linux.c: Fix common/ includes.
14289 * nat/mips-linux-watch.h: Fix common/ includes.
14290 * nat/mips-linux-watch.c: Fix common/ includes.
14291 * nat/linux-waitpid.c: Fix common/ includes.
14292 * nat/linux-ptrace.h: Fix common/ includes.
14293 * nat/linux-ptrace.c: Fix common/ includes.
14294 * nat/linux-procfs.c: Fix common/ includes.
14295 * nat/linux-personality.c: Fix common/ includes.
14296 * nat/linux-osdata.c: Fix common/ includes.
14297 * nat/linux-namespaces.c: Fix common/ includes.
14298 * nat/linux-btrace.h: Fix common/ includes.
14299 * nat/linux-btrace.c: Fix common/ includes.
14300 * nat/fork-inferior.c: Fix common/ includes.
14301 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14302 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14303 * nat/aarch64-linux.c: Fix common/ includes.
14304 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14305 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14306 * namespace.h: Fix common/ includes.
14307 * mips-linux-tdep.c: Fix common/ includes.
14308 * minsyms.c: Fix common/ includes.
14309 * mi/mi-parse.h: Fix common/ includes.
14310 * mi/mi-main.c: Fix common/ includes.
14311 * mi/mi-cmd-env.c: Fix common/ includes.
14312 * memrange.h: Fix common/ includes.
14313 * memattr.c: Fix common/ includes.
14314 * maint.h: Fix common/ includes.
14315 * maint.c: Fix common/ includes.
14316 * main.c: Fix common/ includes.
14317 * machoread.c: Fix common/ includes.
14318 * location.c: Fix common/ includes.
14319 * linux-thread-db.c: Fix common/ includes.
14320 * linux-nat.c: Fix common/ includes.
14321 * linux-fork.c: Fix common/ includes.
14322 * inline-frame.c: Fix common/ includes.
14323 * infrun.c: Fix common/ includes.
14324 * inflow.c: Fix common/ includes.
14325 * inferior.h: Fix common/ includes.
14326 * inferior.c: Fix common/ includes.
14327 * infcmd.c: Fix common/ includes.
14328 * inf-ptrace.c: Fix common/ includes.
14329 * inf-child.c: Fix common/ includes.
14330 * ia64-linux-nat.c: Fix common/ includes.
14331 * i387-tdep.c: Fix common/ includes.
14332 * i386-tdep.c: Fix common/ includes.
14333 * i386-linux-tdep.c: Fix common/ includes.
14334 * i386-linux-nat.c: Fix common/ includes.
14335 * i386-go32-tdep.c: Fix common/ includes.
14336 * i386-fbsd-tdep.c: Fix common/ includes.
14337 * i386-fbsd-nat.c: Fix common/ includes.
14338 * guile/scm-type.c: Fix common/ includes.
14339 * guile/guile.c: Fix common/ includes.
14340 * go32-nat.c: Fix common/ includes.
14341 * gnu-nat.c: Fix common/ includes.
14342 * gdbthread.h: Fix common/ includes.
14343 * gdbarch-selftests.c: Fix common/ includes.
14344 * gdb_usleep.c: Fix common/ includes.
14345 * gdb_select.h: Fix common/ includes.
14346 * gdb_bfd.c: Fix common/ includes.
14347 * gcore.c: Fix common/ includes.
14348 * fork-child.c: Fix common/ includes.
14349 * findvar.c: Fix common/ includes.
14350 * fbsd-nat.c: Fix common/ includes.
14351 * event-top.c: Fix common/ includes.
14352 * event-loop.c: Fix common/ includes.
14353 * dwarf2read.c: Fix common/ includes.
14354 * dwarf2loc.c: Fix common/ includes.
14355 * dwarf2-frame.c: Fix common/ includes.
14356 * dwarf-index-cache.c: Fix common/ includes.
14357 * dtrace-probe.c: Fix common/ includes.
14358 * disasm-selftests.c: Fix common/ includes.
14359 * defs.h: Fix common/ includes.
14360 * csky-tdep.c: Fix common/ includes.
14361 * cp-valprint.c: Fix common/ includes.
14362 * cp-support.h: Fix common/ includes.
14363 * cp-support.c: Fix common/ includes.
14364 * corelow.c: Fix common/ includes.
14365 * completer.h: Fix common/ includes.
14366 * completer.c: Fix common/ includes.
14367 * compile/compile.c: Fix common/ includes.
14368 * compile/compile-loc2c.c: Fix common/ includes.
14369 * compile/compile-cplus-types.c: Fix common/ includes.
14370 * compile/compile-cplus-symbols.c: Fix common/ includes.
14371 * command.h: Fix common/ includes.
14372 * cli/cli-dump.c: Fix common/ includes.
14373 * cli/cli-cmds.c: Fix common/ includes.
14374 * charset.c: Fix common/ includes.
14375 * build-id.c: Fix common/ includes.
14376 * btrace.h: Fix common/ includes.
14377 * btrace.c: Fix common/ includes.
14378 * breakpoint.h: Fix common/ includes.
14379 * breakpoint.c: Fix common/ includes.
14380 * ax.h:
14381 (enum agent_op): Fix common/ includes.
14382 * ax-general.c (struct aop_map): Fix common/ includes.
14383 * ax-gdb.c: Fix common/ includes.
14384 * auxv.c: Fix common/ includes.
14385 * auto-load.c: Fix common/ includes.
14386 * arm-tdep.c: Fix common/ includes.
14387 * arch/riscv.c: Fix common/ includes.
14388 * arch/ppc-linux-common.c: Fix common/ includes.
14389 * arch/i386.c: Fix common/ includes.
14390 * arch/arm.c: Fix common/ includes.
14391 * arch/arm-linux.c: Fix common/ includes.
14392 * arch/arm-get-next-pcs.c: Fix common/ includes.
14393 * arch/amd64.c: Fix common/ includes.
14394 * arch/aarch64.c: Fix common/ includes.
14395 * arch/aarch64-insn.c: Fix common/ includes.
14396 * arch-utils.c: Fix common/ includes.
14397 * amd64-windows-tdep.c: Fix common/ includes.
14398 * amd64-tdep.c: Fix common/ includes.
14399 * amd64-sol2-tdep.c: Fix common/ includes.
14400 * amd64-obsd-tdep.c: Fix common/ includes.
14401 * amd64-nbsd-tdep.c: Fix common/ includes.
14402 * amd64-linux-tdep.c: Fix common/ includes.
14403 * amd64-linux-nat.c: Fix common/ includes.
14404 * amd64-fbsd-tdep.c: Fix common/ includes.
14405 * amd64-fbsd-nat.c: Fix common/ includes.
14406 * amd64-dicos-tdep.c: Fix common/ includes.
14407 * amd64-darwin-tdep.c: Fix common/ includes.
14408 * agent.c: Fix common/ includes.
14409 * ada-lang.h: Fix common/ includes.
14410 * ada-lang.c: Fix common/ includes.
14411 * aarch64-tdep.c: Fix common/ includes.
14412
14413 2019-01-25 Tom Tromey <tom@tromey.com>
14414
14415 * common/create-version.sh: Use common/version.h.
14416
14417 2019-01-24 Pedro Alves <palves@redhat.com>
14418
14419 * infrun.c (signal_stop, signal_print, signal_program)
14420 (signal_catch, signal_pass): Now arrays instead of pointers.
14421 (update_signals_program_target, do_target_resume)
14422 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14423 * linux-nat.c (linux_nat_target::pass_signals)
14424 (linux_nat_target::create_inferior, linux_nat_target::attach):
14425 Adjust.
14426 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14427 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14428 * procfs.c (procfs_target::pass_signals): Adjust.
14429 * record-full.c (record_full_target::resume): Adjust.
14430 * remote.c (remote_target::pass_signals)
14431 (remote_target::program_signals): Adjust.
14432 * target-debug.h (target_debug_print_signals): Now takes a
14433 gdb::array_view as parameter. Adjust.
14434 * target.h (target_ops) <pass_signals, program_signals>: Replace
14435 pointer and length parameters with gdb::array_view.
14436 (target_pass_signals, target_program_signals): Likewise.
14437 * target-delegates.c: Regenerate.
14438
14439 2019-01-24 Pedro Alves <palves@redhat.com>
14440
14441 * common/forward-scope-exit.h
14442 (forward_scope_exit::forward_scope_exit): Pass arguments to
14443 m_bind_function directly, instead of creating a std::bind and
14444 copying that.
14445
14446 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14447
14448 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14449 for static members.
14450 (pass_in_v_vfp_candidate): Likewise.
14451
14452 2019-01-23 Tom Tromey <tom@tromey.com>
14453 Pedro Alves <palves@redhat.com>
14454
14455 * regcache.c (class regcache_invalidator): Remove.
14456 (regcache::raw_write): Use make_scope_exit.
14457
14458 2019-01-23 Tom Tromey <tom@tromey.com>
14459
14460 * ui-out.h (class ui_out_emit_type): Update comment.
14461
14462 2019-01-23 Tom Tromey <tom@tromey.com>
14463
14464 * infrun.c (fetch_inferior_event): Update comment.
14465
14466 2019-01-23 Tom Tromey <tom@tromey.com>
14467 Pedro Alves <palves@redhat.com>
14468
14469 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14470 parameter.
14471 (fetch_inferior_event): Use SCOPE_EXIT.
14472
14473
14474 2019-01-23 Tom Tromey <tom@tromey.com>
14475 Pedro Alves <palves@redhat.com>
14476
14477 * infrun.c (disable_thread_events): Delete.
14478 (stop_all_threads): Use SCOPE_EXIT.
14479
14480 2019-01-23 Tom Tromey <tom@tromey.com>
14481 Pedro Alves <palves@redhat.com>
14482
14483 * symfile.c: Include forward-scope-exit.h.
14484 (clear_symtab_users_cleanup): Replace forward declaration with
14485 a FORWARD_SCOPE_EXIT.
14486 (syms_from_objfile_1): Use the forward_scope_exit and
14487 gdb::optional instead of cleanup_function.
14488 (reread_symbols): Use the forward_scope_exit instead of
14489 cleanup_function.
14490 (clear_symtab_users_cleanup): Remove function.
14491
14492 2019-01-23 Tom Tromey <tom@tromey.com>
14493 Pedro Alves <palves@redhat.com>
14494
14495 * linux-nat.c: Include scope-exit.h.
14496 (cleanup_target_stop): Remove.
14497 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14498 SCOPE_EXIT.
14499
14500 2019-01-23 Tom Tromey <tom@tromey.com>
14501 Pedro Alves <palves@redhat.com>
14502
14503 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14504 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14505
14506 2019-01-23 Tom Tromey <tom@tromey.com>
14507 Andrew Burgess <andrew.burgess@embecosm.com>
14508 Pedro Alves <palves@redhat.com>
14509
14510 * infrun.c (fetch_inferior_event): Use scope_exit.
14511 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14512 * top.c (execute_command): Use scope_exit.
14513 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14514 * utils.c (do_bpstat_clear_actions_cleanup)
14515 (make_bpstat_clear_actions_cleanup): Remove.
14516
14517 2019-01-23 Tom Tromey <tom@tromey.com>
14518 Pedro Alves <palves@redhat.com>
14519
14520 * infrun.c: Include "common/scope-exit.h"
14521 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14522 (wait_for_inferior): Use SCOPE_EXIT.
14523 (fetch_inferior_event): Use scope_exit.
14524
14525 2019-01-23 Tom Tromey <tom@tromey.com>
14526 Pedro Alves <palves@redhat.com>
14527
14528 * breakpoint.c (create_breakpoint): Remove cleanup.
14529
14530 2019-01-23 Tom Tromey <tom@tromey.com>
14531 Andrew Burgess <andrew.burgess@embecosm.com>
14532 Pedro Alves <palves@redhat.com>
14533
14534 2019-01-23 Pedro Alves <palves@redhat.com>
14535
14536 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14537
14538 2019-01-23 Pedro Alves <palves@redhat.com>
14539 Andrew Burgess <andrew.burgess@embecosm.com>
14540
14541 * gdbthread.h: Include "common/forward-scope-exit.h".
14542 (scoped_finish_thread_state): Redefine custom class in terms of
14543 forward_scope_exit.
14544
14545 2019-01-23 Pedro Alves <palves@redhat.com>
14546 Andrew Burgess <andrew.burgess@embecosm.com>
14547
14548 * common/forward-scope-exit.h: New file.
14549
14550 2019-01-23 Pedro Alves <palves@redhat.com>
14551 Andrew Burgess <andrew.burgess@embecosm.com>
14552 Tom Tromey <tom@tromey.com>
14553
14554 * common/scope-exit.h: New file.
14555
14556 2019-01-23 Pedro Alves <palves@redhat.com>
14557
14558 * common/preprocessor.h (ESC): Rename to ...
14559 (ESC_PARENS): ... this.
14560 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14561 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14562
14563 2019-01-23 Tom Tromey <tom@tromey.com>
14564
14565 * language.h (class scoped_switch_to_sym_language_if_auto):
14566 Initialize m_lang in both cases.
14567
14568 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14569
14570 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14571 with XCNEW.
14572
14573 2019-01-22 Tom Tromey <tom@tromey.com>
14574
14575 * corelow.c: Do not include sys/file.h.
14576
14577 2019-01-22 Tom Tromey <tom@tromey.com>
14578
14579 * tui/tui-wingeneral.h: Include gdb_curses.h.
14580
14581 2019-01-22 Tom Tromey <tom@tromey.com>
14582
14583 * source-cache.h (class source_cache) <get_source_lines,
14584 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14585
14586 2019-01-22 Tom Tromey <tom@tromey.com>
14587
14588 * remote-fileio.h (struct remote_target): Declare.
14589
14590 2019-01-22 Tom Tromey <tom@tromey.com>
14591
14592 * python/py-arch.c: Do not include py-ref.h.
14593 * python/py-bpevent.c: Do not include py-ref.h.
14594 * python/py-cmd.c: Do not include py-ref.h.
14595 * python/py-continueevent.c: Do not include py-ref.h.
14596 * python/py-event.h: Do not include py-ref.h.
14597 * python/py-evtregistry.c: Do not include py-ref.h.
14598 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14599 * python/py-frame.c: Do not include py-ref.h.
14600 * python/py-framefilter.c: Do not include py-ref.h.
14601 * python/py-function.c: Do not include py-ref.h.
14602 * python/py-infevents.c: Do not include py-ref.h.
14603 * python/py-linetable.c: Do not include py-ref.h.
14604 * python/py-objfile.c: Do not include py-ref.h.
14605 * python/py-param.c: Do not include py-ref.h.
14606 * python/py-prettyprint.c: Do not include py-ref.h.
14607 * python/py-progspace.c: Do not include py-ref.h.
14608 * python/py-symbol.c: Do not include py-ref.h.
14609 * python/py-symtab.c: Do not include py-ref.h.
14610 * python/py-type.c: Do not include py-ref.h.
14611 * python/py-unwind.c: Do not include py-ref.h.
14612 * python/py-utils.c: Do not include py-ref.h.
14613 * python/py-value.c: Do not include py-ref.h.
14614 * python/py-varobj.c: Do not include py-ref.h.
14615 * python/py-xmethods.c: Do not include py-ref.h.
14616 * python/python.c: Do not include py-ref.h.
14617 * varobj.c: Do not include py-ref.h.
14618
14619 2019-01-22 Tom Tromey <tom@tromey.com>
14620
14621 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14622 keyword for bcache.
14623
14624 2019-01-22 Tom Tromey <tom@tromey.com>
14625
14626 * compile/compile-cplus-types.c: Remove a comment by #include.
14627
14628 2019-01-22 Tom Tromey <tom@tromey.com>
14629
14630 * compile/gcc-c-plugin.h: Include compile-internal.h.
14631
14632 2019-01-22 Tom Tromey <tom@tromey.com>
14633
14634 * stabsread.c (EXTERN): Do not define.
14635 (symnum, next_symbol_text_func, processing_gcc_compilation)
14636 (within_function, global_sym_chain, global_stabs)
14637 (previous_stab_code, this_object_header_files)
14638 (n_this_object_header_files)
14639 (n_allocated_this_object_header_files): Define.
14640 * stabsread.h (EXTERN): Never define. Use "extern".
14641
14642 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14643
14644 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14645 history_value.
14646
14647 2019-01-21 Tom Tromey <tom@tromey.com>
14648
14649 * ui-out.c: Fix includes.
14650 * tui/tui-source.c: Fix includes.
14651 * target.c: Fix includes.
14652 * remote.c: Fix includes.
14653 * regcache.c: Fix includes.
14654 * python/py-block.c: Fix includes.
14655 * printcmd.c: Fix includes.
14656 * or1k-tdep.c: Fix includes.
14657 * mi/mi-main.c: Fix includes.
14658 * m32r-tdep.c: Fix includes.
14659 * csky-tdep.c: Fix includes.
14660 * compile/compile-cplus-types.c: Fix includes.
14661 * cli/cli-interp.c: Fix includes.
14662
14663 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14664
14665 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14666 for padding.
14667
14668 2019-01-16 Tom Tromey <tom@tromey.com>
14669
14670 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14671 earlier.
14672 (struct objfile) <msymbols_range>: Move from top level.
14673 <msymbols>: New method.
14674 (class objfile_msymbols): Remove.
14675 * symtab.c (default_collect_symbol_completion_matches_break_on):
14676 Update.
14677 * symmisc.c (dump_msymbols): Update.
14678 * stabsread.c (scan_file_globals): Update.
14679 * objc-lang.c (info_selectors_command, info_classes_command)
14680 (find_methods): Update.
14681 * minsyms.c (find_solib_trampoline_target): Update.
14682 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14683 * coffread.c (coff_symfile_read): Update.
14684 * ada-lang.c (ada_lookup_simple_minsym)
14685 (ada_collect_symbol_completion_matches): Update.
14686
14687 2019-01-16 Tom Tromey <tom@tromey.com>
14688
14689 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14690 type. Remove no-argument constructor.
14691 <iterator::operator++>: Simplify.
14692 <begin>: Update.
14693 <end>: Use minimal_symbol_count.
14694
14695 2019-01-16 Tom Tromey <tom@tromey.com>
14696
14697 * objfiles.h (struct objfile) <psymtabs>: New method.
14698 (class objfile_psymtabs): Remove.
14699 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14700 typedef.
14701 <range>: New method.
14702 (require_partial_symbols): Change return type.
14703 * psymtab.c (require_partial_symbols)
14704 (psym_expand_symtabs_matching): Update.
14705 * mdebugread.c (parse_partial_symbols): Update.
14706 * dbxread.c (dbx_end_psymtab): Update.
14707
14708 2019-01-15 Tom Tromey <tom@tromey.com>
14709
14710 * symtab.c (lookup_objfile_from_block)
14711 (lookup_symbol_in_objfile_symtabs)
14712 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14713 (find_line_symtab, info_sources_command)
14714 (default_collect_symbol_completion_matches_break_on)
14715 (make_source_files_completion_list): Update.
14716 * symmisc.c (print_objfile_statistics, dump_objfile)
14717 (maintenance_print_symbols, maintenance_info_symtabs)
14718 (maintenance_check_symtabs, maintenance_info_line_tables):
14719 Update.
14720 * source.c (select_source_symtab)
14721 (forget_cached_source_info_for_objfile): Update.
14722 * objfiles.h (class objfile_compunits): Remove.
14723 (struct objfile) <compunits_range>: New typedef.
14724 (compunits): New method.
14725 * objfiles.c (objfile_relocate1): Update.
14726 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14727 * maint.c (count_symtabs_and_blocks): Update.
14728 * linespec.c (iterate_over_all_matching_symtabs): Update.
14729 * cp-support.c (add_symbol_overload_list_qualified): Update.
14730 * coffread.c (coff_symtab_read): Update.
14731 * ada-lang.c (add_nonlocal_symbols)
14732 (ada_collect_symbol_completion_matches)
14733 (ada_add_global_exceptions): Update.
14734
14735 2019-01-15 Tom Tromey <tom@tromey.com>
14736
14737 * progspace.h (program_space) <objfiles_safe_range>: New
14738 typedef.
14739 <objfiles_safe>: New method.
14740 * objfiles.h (class all_objfiles_safe): Remove.
14741 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14742 * jit.c (jit_inferior_exit_hook): Update.
14743
14744 2019-01-17 Tom Tromey <tom@tromey.com>
14745
14746 * progspace.h (program_space) <objfiles_range>: New typedef.
14747 <objfiles>: New method.
14748 <objfiles_head>: Rename from objfiles.
14749 (object_files): Update.
14750 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14751 * guile/scm-pretty-print.c
14752 (ppscm_find_pretty_printer_from_objfiles): Update.
14753 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14754 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14755 Update.
14756 * python/py-progspace.c (pspy_get_objfiles): Update.
14757 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14758 Update.
14759 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14760 (objfpy_lookup_objfile_by_build_id): Update.
14761 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14762 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14763 Update.
14764 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14765 (expand_symtab_containing_pc, lookup_objfile_from_block)
14766 (lookup_static_symbol, basic_lookup_transparent_type)
14767 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14768 (find_line_symtab, info_sources_command)
14769 (default_collect_symbol_completion_matches_break_on)
14770 (make_source_files_completion_list, find_main_name): Update.
14771 * symmisc.c (print_symbol_bcache_statistics)
14772 (print_objfile_statistics, maintenance_print_symbols)
14773 (maintenance_print_msymbols, maintenance_print_objfiles)
14774 (maintenance_info_symtabs, maintenance_check_symtabs)
14775 (maintenance_expand_symtabs, maintenance_info_line_tables):
14776 Update.
14777 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14778 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14779 (map_overlay_command, unmap_overlay_command)
14780 (simple_overlay_update, expand_symtabs_matching)
14781 (map_symbol_filenames): Update.
14782 * symfile-debug.c (set_debug_symfile): Update.
14783 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14784 Update.
14785 * source.c (select_source_symtab, forget_cached_source_info):
14786 Update.
14787 * solib.c (solib_read_symbols): Update.
14788 * solib-spu.c (append_ocl_sos): Update.
14789 * psymtab.c (maintenance_print_psymbols)
14790 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14791 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14792 * printcmd.c (info_symbol_command): Update.
14793 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14794 Update.
14795 * objfiles.h (class all_objfiles): Remove.
14796 * objfiles.c (have_partial_symbols, have_full_symbols)
14797 (have_minimal_symbols, qsort_cmp, update_section_map)
14798 (shared_objfile_contains_address_p)
14799 (default_iterate_over_objfiles_in_search_order): Update.
14800 * objc-lang.c (info_selectors_command, info_classes_command)
14801 (find_methods): Update.
14802 * minsyms.c (find_solib_trampoline_target): Update.
14803 * maint.c (maintenance_info_sections)
14804 (maintenance_translate_address, count_symtabs_and_blocks):
14805 Update.
14806 * main.c (captured_main_1): Update.
14807 * linux-thread-db.c (try_thread_db_load_from_pdir)
14808 (has_libpthread): Update.
14809 * linespec.c (iterate_over_all_matching_symtabs)
14810 (search_minsyms_for_name): Update.
14811 * jit.c (jit_find_objf_with_entry_addr): Update.
14812 * hppa-tdep.c (find_unwind_entry)
14813 (hppa_lookup_stub_minimal_symbol): Update.
14814 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14815 Update.
14816 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14817 (elf_gnu_ifunc_resolve_by_got): Update.
14818 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14819 * dwarf-index-write.c (save_gdb_index_command): Update.
14820 * cp-support.c (add_symbol_overload_list_qualified): Update.
14821 * breakpoint.c (create_overlay_event_breakpoint)
14822 (create_longjmp_master_breakpoint)
14823 (create_std_terminate_master_breakpoint)
14824 (create_exception_master_breakpoint): Update.
14825 * blockframe.c (find_pc_partial_function): Update.
14826 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14827 (ada_collect_symbol_completion_matches)
14828 (ada_add_global_exceptions): Update.
14829
14830 2019-01-17 Tom Tromey <tom@tromey.com>
14831
14832 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14833 declare VEC.
14834 (solib_target_parse_libraries): Change return type.
14835 (library_list_start_segment, library_list_start_section)
14836 (library_list_end_library, library_list_start_library); Update.
14837 (solib_target_free_library_list): Remove.
14838 (solib_target_parse_libraries): Remove cleanup. Change return
14839 type.
14840 (solib_target_current_sos): Update.
14841
14842 2019-01-17 Tom Tromey <tromey@bapiya>
14843
14844 * valprint.c: Replace "the the" with "the".
14845 * symtab.c: Replace "the the" with "the".
14846 * solib.c: Replace "the the" with "the".
14847 * solib-dsbt.c: Replace "the the" with "the".
14848 * linespec.c: Replace "the the" with "the".
14849 * dwarf2loc.h: Replace "the the" with "the".
14850 * amd64-windows-tdep.c: Replace "the the" with "the".
14851 * aarch64-tdep.c: Replace "the the" with "the".
14852
14853 2019-01-16 Keith Seitz <keiths@redhat.com>
14854
14855 PR gdb/23773
14856 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14857 <builder>: Rename to ..
14858 <m_builder>: ... this and make private.
14859 (dwarf2_cu::get_builder): New method. Change all users of
14860 `builder' to use this method.
14861 (dwarf2_start_symtab): Move to ...
14862 (dwarf2_cu::start_symtab): ... here. Update all callers
14863 (setup_type_unit_groups): Move to ...
14864 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14865 callers.
14866 (dwarf2_cu::reset_builder): New method.
14867 (process_full_compunit, process_full_type_unit): Use
14868 dwarf2_cu::reset_builder.
14869 (follow_die_offset): Record the ancestor CU if it is different
14870 from the followed DIE's CU.
14871 (follow_die_sig_1): Likewise.
14872
14873 2019-01-15 Tom Tromey <tom@tromey.com>
14874
14875 * remote.c (class remote_state) <buf>: Now a char_vector.
14876 <buf_size>: Remove.
14877 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14878 parameter.
14879 (remote_target::getpkt_or_notif_sane_1)
14880 (remote_target::getpkt_sane)
14881 (remote_target::getpkt_or_notif_sane): Likewise.
14882 (class remote_target) <putpkt>: New overload.
14883 (remote_target::read_frame): Change type of "buf_p". Remove
14884 sizeof_p parameter.
14885 (packet_ok): New overload.
14886 (packet_check_result): New overload.
14887 Update all uses.
14888
14889 2019-01-14 Tom Tromey <tom@tromey.com>
14890
14891 * remote-notif.c (handle_notification, remote_notif_ack)
14892 (remote_notif_parse): Make "buf" const.
14893 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14894 const.
14895 (remote_notif_parse, remote_notif_ack, handle_notification):
14896 Likewise.
14897 * remote.c (remote_notif_stop_parse): Make "buf" const.
14898 (remote_target::remote_parse_stop_reply): Make "buf" const.
14899 (remote_notif_stop_ack): Make "buf" const.
14900
14901 2019-01-14 Tom Tromey <tom@tromey.com>
14902
14903 * remote.c (remote_console_output): Make parameter const.
14904
14905 2019-01-14 Tom Tromey <tom@tromey.com>
14906
14907 * target-debug.h (target_debug_print_signals): Constify.
14908 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14909 * procfs.c (procfs_target::pass_signals): Update.
14910 * linux-nat.c (linux_nat_target::pass_signals): Update.
14911 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14912 * target-delegates.c: Rebuild.
14913 * remote.c (remote_target::program_signals): Update.
14914 (remote_target::pass_signals): Update.
14915 * target.c (target_pass_signals): Constify argument.
14916 (target_program_signals): Likewise.
14917 * target.h (struct target_ops) <pass_signals, program_signals>:
14918 Constify argument.
14919 (target_pass_signals, target_program_signals): Constify argument.
14920
14921 2019-01-14 Tom Tromey <tom@tromey.com>
14922
14923 PR tui/28819:
14924 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14925
14926 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14927
14928 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14929 field.
14930 * rs6000-tdep.c: Include reggroups.h.
14931 (IS_V_ALIAS_PSEUDOREG): Define.
14932 (rs6000_register_name): Return names for the "vX" aliases.
14933 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14934 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14935 aliases. Call default_register_reggroup_p for all other
14936 pseudo-registers.
14937 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14938 New functions.
14939 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14940 Handle "vX" aliases.
14941 (v_alias_pseudo_register_collect): New function.
14942 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14943 (rs6000_gdbarch_init): Initialize "vX" aliases as
14944 pseudo-registers. Restore registration of
14945 rs6000_pseudo_register_reggroup_p with
14946 set_tdesc_pseudo_register_reggroup_p.
14947
14948 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14949
14950 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14951 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14952 set_gdbarch_num_pseudo_regs.
14953
14954 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14955
14956 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14957 Remove arg prefixname, add do_set and do_show.
14958 Add member functions set_list and show_list.
14959 * cli/cli-style.c (class cli_style_option): Update accordingly.
14960 (style_set_list): Move to file scope.
14961 (style_show_list): Likewise.
14962 (set_style): Call help_list.
14963 (show_style): Call cmd_show_list.
14964 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14965 Update to use the new macro.
14966
14967 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14968
14969 * ada-lang.c (_initialize_ada_language): Expand the help text
14970 for the "catch exception" command.
14971
14972 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14973
14974 * symtab.c (matching_obj_sections): Initialize obj,
14975 declare it closer to its usage.
14976
14977 2019-01-10 Tom Tromey <tom@tromey.com>
14978
14979 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14980 (basic_inf_threads_range): Remove.
14981 (inf_threads_range, inf_non_exited_threads_range)
14982 (safe_inf_threads_range): Use next_adapter.
14983
14984 2019-01-10 Keith Seitz <keiths@redhat.com>
14985
14986 PR gdb/23712
14987 PR symtab/23010
14988 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14989 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14990
14991 2019-01-10 Keith Seitz <keiths@redhat.com>
14992
14993 PR gdb/23712
14994 PR symtab/23010
14995 * dictionary.c (pending_to_vector): Remove.
14996 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14997 Remove _1 suffix, replacing functions of the same name. Update
14998 all callers.
14999 (dict_create_hashed, dict_create_hashed_expandable)
15000 (dict_create_linear, dict_create_linear_expandable, dict_free)
15001 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15002 Make functions static.
15003
15004 2019-01-10 Keith Seitz <keiths@redhat.com>
15005
15006 PR gdb/23712
15007 PR symtab/23010
15008 * dictionary.h (struct dictionary): Replace declaration with
15009 multidictionary.
15010 (dict_create_hashed, dict_create_hashed_expandable)
15011 (dict_create_linear, dict_create_linear_expandable)
15012 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15013 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15014 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15015 taking multidictionary argument.
15016 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15017 * block.h (struct block) <dict>: Change to multidictionary
15018 and rename `multidict'.
15019 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15020 symmisc.c: Update all dictionary references to multidictionary.
15021
15022 2019-01-10 Keith Seitz <keiths@redhat.com>
15023
15024 PR gdb/23712
15025 PR symtab/23010
15026 * dictionary.c: Include unordered_map.
15027 (pending_to_vector): New function.
15028 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15029 Rewrite the non-"_1" functions to take vector instead
15030 of linked list.
15031 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15032 "new" _1 versions of the same name.
15033 (multidictionary): Define.
15034 (std::hash<enum language): New definition.
15035 (collate_pending_symbols_by_language, mdict_create_hashed)
15036 (mdict_create_hashed_expandable, mdict_create_linear)
15037 (mdict_create_linear_expandable, mdict_free)
15038 (find_language_dictionary, create_new_language_dictionary)
15039 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15040 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15041 (mdict_size, mdict_empty): New functions.
15042 * dictionary.h (mdict_iterator): Define.
15043
15044 2019-01-10 Pedro Alves <palves@redhat.com>
15045
15046 * breakpoint.c (read_uploaded_action)
15047 (create_tracepoint_from_upload): Adjust to use
15048 gdb::unique_xmalloc_ptr.
15049 * ctf.c (ctf_write_uploaded_tp):
15050 (SET_ARRAY_FIELD): Use emplace_back.
15051 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15052 * tracefile-tfile.c (tfile_write_uploaded_tp):
15053 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15054 gdb::unique_xmalloc_ptr.
15055 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15056 at_string, cond_string, cmd_strings>: Replace char pointers
15057 with gdb::unique_xmalloc_ptr.
15058
15059 2019-01-10 Pedro Alves <palves@redhat.com>
15060
15061 * solib-target.c (library_list_start_library): Don't xstrdup name.
15062
15063 2019-01-10 Pedro Alves <palves@redhat.com>
15064
15065 * mdebugread.c (parse_partial_symbols): Use
15066 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15067
15068 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15069
15070 * linux-fork.c (scoped_switch_fork_info)
15071 <~scoped_switch_fork_info>: Fix incorrect variable name.
15072
15073 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15074
15075 * linux-fork.c (scoped_switch_fork_info)
15076 <scoped_switch_fork_info>: Make explicit.
15077 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15078
15079 2019-01-10 Tom Tromey <tom@tromey.com>
15080
15081 * objfiles.h (objfile::reset_psymtabs): Update.
15082 * objfiles.c (objfile::objfile): Update.
15083 * psymtab.h (psymtab_storage::obstack): Update.
15084 (psymtab_storage::m_obstack): Use gdb::optional.
15085 (class psymtab_storage): Update comment. Remove objfile
15086 parameter.
15087 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15088
15089 2019-01-10 Tom Tromey <tom@tromey.com>
15090
15091 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15092 <free_psymtabs>: Now private.
15093 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15094 (allocate_psymtab): Use new method.
15095
15096 2019-01-10 Tom Tromey <tom@tromey.com>
15097
15098 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15099 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15100 * mdebugread.c (parse_partial_symbols): Use
15101 allocate_dependencies.
15102 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15103 allocate_dependencies.
15104 (process_psymtab_comp_unit_reader)
15105 (build_type_psymtab_dependencies): Likewise.
15106 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15107
15108 2019-01-10 Tom Tromey <tom@tromey.com>
15109
15110 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15111 PSYMBOL_SET_LANGUAGE.
15112 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15113
15114 2019-01-10 Tom Tromey <tom@tromey.com>
15115
15116 * psymtab.h (psymtab_storage::obstack): New method.
15117 <m_obstack>: Rename from obstack; now private.
15118 * psymtab.c (psymtab_storage): Update.
15119 * dwarf2read.c (create_addrmap_from_index)
15120 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15121 Update.
15122
15123 2019-01-10 Tom Tromey <tom@tromey.com>
15124
15125 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15126 * objfiles.h (objfile::reset_psymtabs): New method.
15127
15128 2019-01-10 Tom Tromey <tom@tromey.com>
15129
15130 * symmisc.c (print_symbol_bcache_statistics): Update.
15131 (print_objfile_statistics): Update.
15132 * symfile.c (reread_symbols): Update.
15133 * psymtab.h (class psymtab_storage): New.
15134 * psymtab.c (psymtab_storage): New constructor.
15135 (~psymtab_storage): New destructor.
15136 (require_partial_symbols): Update.
15137 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15138 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15139 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15140 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15141 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15142 (start_psymtab_common, end_psymtab_common)
15143 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15144 (allocate_psymtab): Update.
15145 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15146 Update.
15147 (dump_psymtab_addrmap, maintenance_print_psymbols)
15148 (maintenance_check_psymtabs): Update.
15149 (class objfile_psymtabs): Move to objfiles.h.
15150 * psympriv.h (discard_psymtab): Now inline.
15151 (psymtab_discarder::psymtab_discarder): Update.
15152 (psymtab_discarder::~psymtab_discarder): Update.
15153 (ALL_OBJFILE_PSYMTABS): Rewrite.
15154 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15155 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15156 Remove fields.
15157 <partial_symtabs>: New field.
15158 (class objfile_psymtabs): Move from psymtab.h. Update.
15159 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15160 psymbol_cache.
15161 (objfile::~objfile): Don't destroy psymbol_cache.
15162 * mdebugread.c (parse_partial_symbols): Update.
15163 * dwarf2read.c (create_addrmap_from_index)
15164 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15165 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15166 (add_partial_subprogram, dwarf2_ranges_read): Update.
15167 * dwarf-index-write.c (write_address_map)
15168 (write_one_signatured_type, recursively_write_psymbols)
15169 (class debug_names, class debug_names, write_psymtabs_to_index):
15170 Update.
15171
15172 2019-01-10 Tom Tromey <tom@tromey.com>
15173
15174 * symtab.h (SYMBOL_SET_NAMES): Update.
15175 (symbol_set_names): Update.
15176 (MSYMBOL_SET_NAMES): Update.
15177 * symtab.c (symbol_set_names): Change argument to be an
15178 objfile_per_bfd_storage.
15179 * psymtab.c (add_psymbol_to_bcache): Update.
15180 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15181
15182 2019-01-10 Tom Tromey <tom@tromey.com>
15183
15184 * symtab.c (create_demangled_names_hash): Change argument to be an
15185 objfile_per_bfd_storage.
15186 (symbol_set_names): Update.
15187
15188 2019-01-10 Tom Tromey <tom@tromey.com>
15189
15190 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15191 init_psymbol_list.
15192 * psymtab.c (init_psymbol_list): Do nothing if already called.
15193 * psympriv.h (init_psymbol_list): Add comment.
15194 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15195 init_psymbol_list.
15196 * dbxread.c (dbx_symfile_read): Unconditionally call
15197 init_psymbol_list.
15198
15199 2019-01-10 Tom Tromey <tom@tromey.com>
15200
15201 * xcoffread.c (scan_xcoff_symtab): Update.
15202 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15203 "where".
15204 * mdebugread.c (parse_partial_symbols)
15205 (handle_psymbol_enumerators): Update.
15206 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15207 * dbxread.c (read_dbx_symtab): Update.
15208 * psympriv.h (psymbol_placement): New enum.
15209 (add_psymbol_to_list): Update.
15210
15211 2019-01-10 Tom Tromey <tom@tromey.com>
15212
15213 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15214 static_psymbols parameters.
15215 (scan_xcoff_symtab): Update.
15216 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15217 static_psymbols parameters.
15218 * psympriv.h (start_psymtab_common): Update.
15219 * mdebugread.c (parse_partial_symbols): Update.
15220 * dwarf2read.c (create_partial_symtab): Update.
15221 * dbxread.c (read_dbx_symtab): Update.
15222 (start_psymtab): Remove global_psymbols and static_psymbols
15223 parameters.
15224
15225 2019-01-10 Tom Tromey <tom@tromey.com>
15226
15227 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15228 * psymtab.c (allocate_psymtab): Add comment.
15229 * psympriv.h (allocate_psymtab): Add comment.
15230 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15231 initializations.
15232 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15233
15234 2019-01-10 Tom Tromey <tom@tromey.com>
15235
15236 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15237 Don't declare.
15238 * mipsread.c: Include mdebugread.h.
15239 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15240 Declare.
15241 * elfread.c: Include mdebugread.h.
15242
15243 2019-01-09 Tom Tromey <tom@tromey.com>
15244
15245 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15246 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15247 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15248 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15249 (psym_lookup_symbol, psym_find_last_source_symtab)
15250 (psym_forget_cached_source_info, psym_print_stats)
15251 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15252 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15253 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15254 (psym_find_compunit_symtab_by_address)
15255 (maintenance_print_psymbols, maintenance_info_psymtabs)
15256 (maintenance_check_psymtabs): Use ranged for.
15257 * psymtab.h (class objfile_psymtabs): New.
15258 (require_partial_symbols): Return objfile_psymtabs.
15259 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15260
15261 2019-01-09 Tom Tromey <tom@tromey.com>
15262
15263 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15264 (find_pc_mapped_section, list_overlays_command)
15265 (map_overlay_command, unmap_overlay_command)
15266 (simple_overlay_update): Use all_objfiles.
15267 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15268 * printcmd.c (info_symbol_command): Use all_objfiles.
15269 * objfiles.h (ALL_OBJSECTIONS): Remove.
15270 * maint.c (maintenance_translate_address): Use all_objfiles.
15271 * gcore.c (gcore_create_callback): Use all_objfiles.
15272 (objfile_find_memory_regions): Likewise.
15273
15274 2019-01-09 Tom Tromey <tom@tromey.com>
15275
15276 * symtab.c (find_line_symtab, info_sources_command)
15277 (make_source_files_completion_list): Use objfile_compunits.
15278 * source.c (select_source_symtab): Use objfile_compunits.
15279 * objfiles.h (struct objfile): Update comment.
15280 (ALL_OBJFILES): Remove.
15281 (ALL_FILETABS): Remove.
15282 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15283 objfile_compunits.
15284
15285 2019-01-09 Tom Tromey <tom@tromey.com>
15286
15287 * symmisc.c (print_objfile_statistics, dump_objfile)
15288 (maintenance_print_symbols): Use compunit_filetabs.
15289 * source.c (forget_cached_source_info_for_objfile): Use
15290 compunit_filetabs.
15291 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15292 (ALL_FILETABS): Use compunit_filetabs.
15293 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15294 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15295
15296 2019-01-09 Tom Tromey <tom@tromey.com>
15297
15298 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15299 (compunit_filetabs): New.
15300 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15301 compunit_filetabs.
15302 (info_sources_command, make_source_files_completion_list): Remove
15303 declaration.
15304 * symmisc.c (print_objfile_statistics, dump_objfile)
15305 (maintenance_print_symbols): Remove declaration.
15306 (maintenance_info_symtabs): Use compunit_filetabs.
15307 (maintenance_info_line_tables): Likewise.
15308 * source.c (select_source_symtab): Change local variable name.
15309 (forget_cached_source_info_for_objfile): Remove declaration.
15310 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15311 * objfiles.c (objfile_relocate1): Remove declaration.
15312 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15313 declaration.
15314 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15315 * coffread.c (coff_symtab_read): Remove declaration.
15316 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15317 compunit_filetabs.
15318
15319 2019-01-09 Tom Tromey <tom@tromey.com>
15320
15321 * symtab.c (lookup_objfile_from_block)
15322 (find_pc_sect_compunit_symtab, search_symbols)
15323 (default_collect_symbol_completion_matches_break_on): Use
15324 objfile_compunits.
15325 * objfiles.h (ALL_COMPUNITS): Remove.
15326 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15327 * cp-support.c (add_symbol_overload_list_qualified): Use
15328 objfile_compunits.
15329 * ada-lang.c (ada_collect_symbol_completion_matches)
15330 (ada_add_global_exceptions): Use objfile_compunits.
15331
15332 2019-01-09 Tom Tromey <tom@tromey.com>
15333
15334 * source.c (select_source_symtab)
15335 (forget_cached_source_info_for_objfile): Remove declaration.
15336 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15337 declaration.
15338 * maint.c (count_symtabs_and_blocks): Remove declaration.
15339 * cp-support.c (add_symbol_overload_list_qualified): Remove
15340 declaration.
15341 * coffread.c (coff_symtab_read): Remove declaration.
15342 * symtab.c (lookup_symbol_in_objfile_symtabs)
15343 (basic_lookup_transparent_type_1): Use objfile_compunits.
15344 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15345 (info_sources_command, search_symbols)
15346 (default_collect_symbol_completion_matches_break_on)
15347 (make_source_files_completion_list): Remove declaration.
15348 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15349 (ada_collect_symbol_completion_matches)
15350 (ada_add_global_exceptions): Remove declaration.
15351 * linespec.c (iterate_over_all_matching_symtabs): Use
15352 objfile_compunits.
15353 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15354 (class objfile_compunits): New.
15355 (ALL_COMPUNITS): Use objfile_compunits.
15356 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15357 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15358 objfile_compunits.
15359 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15360
15361 2019-01-09 Tom Tromey <tom@tromey.com>
15362
15363 * symtab.c (search_symbols)
15364 (default_collect_symbol_completion_matches_break_on): Use
15365 objfile_msymbols.
15366 * ada-lang.c (ada_lookup_simple_minsym)
15367 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15368 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15369 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15370 objfile_msymbols.
15371 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15372 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15373 * objc-lang.c (find_methods): Use objfile_msymbols.
15374 (info_selectors_command, info_classes_command): Likewise.
15375 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15376 * objfiles.h (class objfile_msymbols): New.
15377 (ALL_OBJFILE_MSYMBOLS): Remove.
15378 (ALL_MSYMBOLS): Remove.
15379
15380 2019-01-09 Tom Tromey <tom@tromey.com>
15381
15382 * common/next-iterator.h (next_adapter): Add Iterator template
15383 parameter.
15384 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15385 (class all_objfiles_safe): New.
15386 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15387 * objfiles.c (put_objfile_before): Update comment.
15388 (add_separate_debug_objfile): Likewise.
15389 (free_all_objfiles): Use all_objfiles_safe.
15390 (objfile_purge_solibs): Likewise.
15391
15392 2019-01-09 Tom Tromey <tom@tromey.com>
15393
15394 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15395 (expand_symtab_containing_pc, lookup_static_symbol)
15396 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15397 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15398 all_objfiles.
15399 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15400 * breakpoint.c (create_overlay_event_breakpoint)
15401 (create_longjmp_master_breakpoint)
15402 (create_std_terminate_master_breakpoint)
15403 (create_exception_master_breakpoint): Use all_objfiles.
15404 * linux-thread-db.c (try_thread_db_load_from_pdir)
15405 (has_libpthread): Use all_objfiles.
15406 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15407 * linespec.c (iterate_over_all_matching_symtabs)
15408 (search_minsyms_for_name): Use all_objfiles.
15409 * maint.c (maintenance_info_sections): Use all_objfiles.
15410 * main.c (captured_main_1): Use all_objfiles.
15411 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15412 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15413 * guile/scm-pretty-print.c
15414 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15415 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15416 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15417 (maintenance_print_msymbols): Use all_objfiles.
15418 * source.c (select_source_symtab): Use all_objfiles.
15419 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15420 * symfile.c (remove_symbol_file_command)
15421 (expand_symtabs_matching, map_symbol_filenames): Use
15422 all_objfiles.
15423 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15424 all_objfiles.
15425 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15426 * objc-lang.c (find_methods): Use all_objfiles.
15427 * objfiles.c (have_partial_symbols, have_full_symbols)
15428 (have_minimal_symbols, qsort_cmp)
15429 (default_iterate_over_objfiles_in_search_order): Use
15430 all_objfiles.
15431 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15432 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15433 (maintenance_check_psymtabs): Use all_objfiles.
15434 (ALL_PSYMTABS): Remove.
15435 * compile/compile-object-run.c (do_module_cleanup): Use
15436 all_objfiles.
15437 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15438 * cp-support.c (add_symbol_overload_list_qualified): Use
15439 all_objfiles.
15440 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15441 Use all_objfiles.
15442 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15443 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15444 all_objfiles.
15445 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15446 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15447 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15448 Uses all_objfiles.
15449 * solib.c (solib_read_symbols): Use all_objfiles
15450
15451 2019-01-09 Tom Tromey <tom@tromey.com>
15452
15453 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15454 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15455 all_objfiles.
15456 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15457 * symmisc.c (print_symbol_bcache_statistics)
15458 (print_objfile_statistics, maintenance_print_objfiles)
15459 (maintenance_info_symtabs, maintenance_check_symtabs)
15460 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15461 all_objfiles.
15462 * source.c (forget_cached_source_info): Use all_objfiles.
15463 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15464 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15465 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15466 * objfiles.c (update_section_map): Use all_objfiles.
15467 (shared_objfile_contains_address_p): Likewise.
15468 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15469 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15470
15471 2019-01-09 Tom Tromey <tom@tromey.com>
15472
15473 * common/next-iterator.h: New file.
15474 * objfiles.h (class all_objfiles): New.
15475 (struct objfile_iterator): New.
15476
15477 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15478
15479 * NEWS: Move the description of the changed "frame", "select-frame",
15480 and "info frame" commands to the Changed commands section.
15481
15482 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15483
15484 * gdbtypes.c (check_stub_method_group): Remove handling of old
15485 mangling schemes.
15486 * linespec.c (find_methods): Likewise.
15487 * stabsread.c (read_member_functions): Likewise.
15488 * valops.c (search_struct_method): Likewise.
15489 (value_struct_elt_for_reference): Likewise.
15490 * NEWS: Mention this change.
15491
15492 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15493
15494 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15495 print_source_lines.
15496 * source.c (print_source_lines_base): Update line number check.
15497 (print_source_lines): New function.
15498 (source_lines_range::source_lines_range): New function.
15499 * source.h (class source_lines_range): New class.
15500 (print_source_lines): New declaration.
15501
15502 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15503
15504 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15505
15506 2019-01-08 Tom Tromey <tom@tromey.com>
15507 Simon Marchi <simon.marchi@ericsson.com>
15508
15509 PR gdb/24060
15510 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15511 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15512 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15513 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15514 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15515 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15516
15517 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15518
15519 * source.c (select_source_symtab): Move header comment to
15520 declaration in source.h.
15521 (forget_cached_source_info_for_objfile): Likewise.
15522 (forget_cached_source_info): Likewise.
15523 (identify_source_line): Likewise.
15524 * source.h (identify_source_line): Move declaration from symtab.h
15525 and add comment from source.c
15526 (print_source_lines): Likewise.
15527 (forget_cached_source_info_for_objfile): Likewise.
15528 (forget_cached_source_info): Likewise.
15529 (select_source_symtab): Likewise.
15530 (enum print_source_lines_flag): Move definition from symtab.h.
15531 * symtab.h (identify_source_line): Move declaration to source.h.
15532 (print_source_lines): Likewise.
15533 (forget_cached_source_info_for_objfile): Likewise.
15534 (forget_cached_source_info): Likewise.
15535 (select_source_symtab): Likewise.
15536 (enum print_source_lines_flag): Move definition to source.h.
15537 * tui/tui-hooks.c: Add 'source.h' include.
15538
15539 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15540
15541 * source.c (print_source_lines_base): Handle requests to print
15542 reverse line number sequences, and guard against empty lines
15543 string.
15544
15545 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15546
15547 * source.c (print_source_lines_base): Fix skip of '\r' if next
15548 character is '\n'.
15549
15550 2019-01-06 Tom Tromey <tom@tromey.com>
15551
15552 * c-exp.y (struct c_parse_state) <macro_original_text,
15553 expansion_obstack>: New member.
15554 (macro_original_text, expansion_obstack): Remove globals.
15555 (scan_macro_expansion, scanning_macro_expansion)
15556 (finished_macro_expansion): Update.
15557 (scan_macro_cleanup): Remove.
15558 (yylex, c_parse): Update.
15559
15560 2019-01-06 Tom Tromey <tom@tromey.com>
15561
15562 * c-exp.y (struct c_parse_state) <strings>: New member.
15563 (operator_stoken): Update.
15564
15565 2019-01-06 Tom Tromey <tom@tromey.com>
15566
15567 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15568 (union type_stack_elt) <typelist_val>: Now a pointer to
15569 std::vector.
15570 (type_stack_cleanup): Don't declare.
15571 (push_typelist): Update.
15572 * parse.c (pop_typelist): Return a std::vector.
15573 (push_typelist): Take a std::vector.
15574 (follow_types): Update. Do not free args.
15575 (type_stack_cleanup): Remove.
15576 * c-exp.y (struct c_parse_state): New.
15577 (cpstate): New global.
15578 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15579 (nonempty_typelist): Update.
15580 (func_mod): Create a new vector.
15581 (c_parse): Create a c_parse_state.
15582 (check_parameter_typelist): Do not delete params.
15583 (function_method): Update. Do not delete type_list.
15584
15585 2019-01-06 Tom Tromey <tom@tromey.com>
15586
15587 PR gdb/28155:
15588 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15589 check_typedef.
15590 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15591 (print_return_value): Likewise.
15592
15593 2019-01-05 Tom Tromey <tom@tromey.com>
15594
15595 * contrib/cleanup_check.py: Remove.
15596 * contrib/gcc-with-excheck: Remove.
15597 * contrib/exsummary.py: Remove.
15598 * contrib/excheck.py: Remove.
15599
15600 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15601
15602 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15603 NULL. Initialize tpprev to NULL instead of assigning it
15604 to NULL on the next statement.
15605 * windows-nat.c (windows_delete_thread): Remove check for
15606 main_thread_id before printing thread exit notifications.
15607 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15608 Remove thread ID check against main_thread_id.
15609 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15610 windows_delete_thread.
15611 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15612
15613 2019-01-04 Tom Tromey <tom@tromey.com>
15614
15615 * compile/compile.c (_initialize_compile): Use upper case for
15616 metasyntactic variables.
15617 * symmisc.c (_initialize_symmisc): Use upper case for
15618 metasyntactic variables.
15619 * psymtab.c (_initialize_psymtab): Use upper case for
15620 metasyntactic variables.
15621 * demangle.c (demangle_command): Use upper case for metasyntactic
15622 variables.
15623 (_initialize_demangler): Likewise.
15624 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15625 variables.
15626
15627 2019-01-03 Tom Tromey <tom@tromey.com>
15628
15629 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15630
15631 2019-01-03 Tom Tromey <tom@tromey.com>
15632
15633 * python/py-symtab.c (salpy_str): Update.
15634 (struct salpy_sal_object) <symtab>: Now a PyObject.
15635 (salpy_dealloc): Update.
15636 (del_objfile_sal): Use gdbpy_ref.
15637
15638 2019-01-03 Tom Tromey <tom@tromey.com>
15639
15640 * python/py-type.c (convert_field): Use new_reference. Return
15641 gdbpy_ref.
15642 (make_fielditem): Return gdbpy_ref.
15643 (typy_fields): Update.
15644 (typy_getitem): Update.
15645 (field_name): Return gdbpy_ref. Use new_reference.
15646 (typy_iterator_iternext): Update.
15647
15648 2019-01-03 Tom Tromey <tom@tromey.com>
15649
15650 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15651
15652 2019-01-03 Tom Tromey <tom@tromey.com>
15653
15654 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15655 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15656 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15657 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15658 (pspy_set_type_printers): Likewise.
15659 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15660 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15661 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15662 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15663 (objfpy_set_type_printers): Likewise.
15664
15665 2019-01-03 Tom Tromey <tom@tromey.com>
15666
15667 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15668 (gdbpy_print_stack): Use gdbpy_err_fetch.
15669 * python/python-internal.h (class gdbpy_err_fetch): New class.
15670 (class gdbpy_enter) <m_error_type, m_error_value,
15671 m_error_traceback>: Remove.
15672 <m_error>: New member.
15673 (gdbpy_exception_to_string): Don't declare.
15674 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15675 * python/py-value.c (convert_value_from_python): Use
15676 gdbpy_err_fetch.
15677 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15678 gdbpy_exception_to_string.
15679 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15680 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15681 gdbpy_err_fetch.
15682
15683 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15684
15685 * linux-nat.c (delete_lwp_cleanup): Delete.
15686 (struct lwp_deleter): New struct.
15687 (lwp_info_up): New typedef.
15688 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15689 lwp_info_up.
15690
15691 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15692
15693 * linux-fork.c (class scoped_switch_fork_info): New class.
15694 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15695
15696 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15697
15698 * valops.c (find_overload_match): Remove use of null_cleanup, and
15699 calls to do_cleanups.
15700
15701 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15702
15703 * compile/compile-cplus-types.c
15704 (compile_cplus_instance::decl_name): Handle changes to
15705 cp_func_name.
15706 * cp-support.c (cp_func_name): Update header comment, update
15707 return type.
15708 * cp-support.h (cp_func_name): Update return type in declaration.
15709 * valops.c (find_overload_match): Move temp_func local to top
15710 level of function and change its type. Use temp_func to hold and
15711 delete temporary string obtained from cp_func_name.
15712
15713 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15714
15715 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15716 gdb::char_vector, remove cleanup, and update uses of `msg`.
15717
15718 2019-01-03 Jim Wilson <jimw@sifive.com>
15719
15720 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15721
15722 2019-01-02 Tom Tromey <tom@tromey.com>
15723
15724 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15725 (tdesc_parse_xml): Remove cleanups.
15726 * target-descriptions.h (make_cleanup_free_target_description):
15727 Don't declare.
15728 (target_desc_deleter): New struct.
15729 (target_desc_up): New typedef.
15730 * target-descriptions.c (target_desc_deleter::operator()): Rename
15731 from free_target_description.
15732 (make_cleanup_free_target_description): Remove.
15733
15734 2019-01-02 Tom Tromey <tom@tromey.com>
15735
15736 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15737 constructor, destructor.
15738 (linespec_parser): Remove typedef.
15739 (~linespec_parser): Rename from linespec_parser_delete.
15740 (linespec_lex_to_end, linespec_complete_label)
15741 (linespec_complete): Update.
15742 (decode_line_full): Remove cleanups.
15743 (decode_line_1): Update.
15744
15745 2019-01-02 Tom Tromey <tom@tromey.com>
15746
15747 * python/python-internal.h (inferior_to_inferior_object): Change
15748 return type.
15749 * python/py-exitedevent.c (create_exited_event_object): Update.
15750 * python/py-inferior.c (inferior_to_inferior_object): Return
15751 gdbpy_ref.
15752 (python_new_inferior, python_inferior_deleted)
15753 (thread_to_thread_object, delete_thread_object)
15754 (build_inferior_list, gdbpy_selected_inferior): Update.
15755 * python/py-infthread.c (create_thread_object): Update. Also fail
15756 if inferior_to_inferior_object fails.
15757
15758 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15759
15760 * inferior.h (class inferior) <displaced_step_state>: New field.
15761 * infrun.h (struct displaced_step_state): Move here from
15762 infrun.c. Initialize fields, add constructor.
15763 <inf>: Remove field.
15764 <reset>: New method.
15765 * infrun.c (struct displaced_step_inferior_state): Move to
15766 infrun.h.
15767 (displaced_step_inferior_states): Remove.
15768 (get_displaced_stepping_state): Adust.
15769 (displaced_step_in_progress_any_inferior): Adjust.
15770 (displaced_step_in_progress_thread): Adjust.
15771 (displaced_step_in_progress): Adjust.
15772 (add_displaced_stepping_state): Remove.
15773 (get_displaced_step_closure_by_addr): Adjust.
15774 (remove_displaced_stepping_state): Remove.
15775 (infrun_inferior_exit): Call displaced_step_state.reset.
15776 (use_displaced_stepping): Don't check for NULL.
15777 (displaced_step_prepare_throw): Call
15778 get_displaced_stepping_state.
15779 (displaced_step_fixup): Don't check for NULL.
15780 (prepare_for_detach): Don't check for NULL.
15781
15782 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15783
15784 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15785 in case of call that did not complete.
15786
15787 2019-01-02 Andrey Utkin <autkin@undo.io>
15788
15789 * symfile.c (find_separate_debug_file): Fix search of debug files for
15790 remote debuggee.
15791
15792 2019-01-02 Tom Tromey <tom@tromey.com>
15793
15794 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15795 indentation.
15796 * python/py-frame.c (frapy_older): Remove cast.
15797 (frapy_newer): Likewise.
15798 * python/py-breakpoint.c (local_setattro): Remove cast.
15799 * python/py-arch.c (archpy_name): Remove local variable.
15800 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15801
15802 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15803
15804 * unittests/basic_string_view/element_access/char/empty.cc:
15805 Fix year range in copyright header.
15806
15807 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15808
15809 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15810 Delete.
15811 <operator==>: Update with for removed field.
15812 <hash>: Likewise.
15813 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15814 <isa_features>: ...this.
15815 <abi_features>: New field.
15816 (riscv_isa_flen): Update comment.
15817 (riscv_abi_xlen): New declaration.
15818 (riscv_abi_flen): New declaration.
15819 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15820 isa_features.
15821 (riscv_abi_xlen): New function.
15822 (riscv_isa_flen): Update to get answer from isa_features.
15823 (riscv_abi_flen): New function.
15824 (riscv_has_fp_abi): Update to get answer from abi_features.
15825 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15826 xlen and flen.
15827 (riscv_call_info) <xlen, flen>: Update comment.
15828 (riscv_call_arg_struct): Remove invalid assertions
15829 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15830 is removed.
15831 (riscv_gdbarch_init): Gather isa features and abi features
15832 separately, ensure both match on the gdbarch when reusing an old
15833 gdbarch. Relax an error check to allow 32-bit abi float to run on
15834 a target with 64-bit float hardware.
15835
15836 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15837
15838 * source.c (search_command_helper): Stop reverse search
15839 when line 1 has been searched.
15840
15841 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15842
15843 * record-full.c (record_full_base_target::close): Rewrite
15844 record_full_core_buf_list free logic.
15845
15846 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15847
15848 * break-catch-syscall.c (print_one_catch_syscall): xfree
15849 the last text.
15850
15851 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15852
15853 * top.c (print_gdb_version): Update Copyright year in version
15854 message.
15855
15856 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15857
15858 Update copyright year range in all GDB files.
15859
15860 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15861
15862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15863
15864 For older changes see ChangeLog-2018.
15865 \f
15866 Local Variables:
15867 mode: change-log
15868 left-margin: 8
15869 fill-column: 74
15870 version-control: never
15871 coding: utf-8
15872 End:
15873
This page took 0.4164 seconds and 4 git commands to generate.