4f36f3db285f9ee9ef0f5a98f69856966e82253a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
4 '-symbol-info-types', and '-symbol-info-variables'.
5 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
6 (mi_cmd_symbol_info_types): Declare.
7 (mi_cmd_symbol_info_variables): Declare.
8 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
9 (output_debug_symbol): New function.
10 (output_nondebug_symbol): New function.
11 (mi_symbol_info): New function.
12 (mi_info_functions_or_variables): New function.
13 (mi_cmd_symbol_info_functions): New function.
14 (mi_cmd_symbol_info_types): New function.
15 (mi_cmd_symbol_info_variables): New function.
16 * NEWS: Mention new commands.
17
18 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * symtab.c (symbol_to_info_string): New function, most content
21 moved from print_symbol_info, but updated to return a std::string.
22 (print_symbol_info): Update to use symbol_to_info_string and print
23 returned string.
24 * symtab.h (symbol_to_info_string): Declare new function.
25
26 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * python/python.c (gdbpy_rbreak): Convert to using
29 global_symbol_searcher.
30 * symtab.c (file_matches): Convert return type to bool, change
31 file list to std::vector, update header comment.
32 (search_symbols): Rename to...
33 (global_symbol_searcher::search): ...this and update now its
34 a member function of global_symbol_searcher. Take account of the
35 changes to file_matches.
36 (symtab_symbol_info): Convert to using global_symbol_searcher.
37 (rbreak_command): Likewise.
38 (search_module_symbols): Likewise.
39 * symtab.h (enum symbol_search): Update comment.
40 (search_symbols): Remove declaration.
41 (class global_symbol_searcher): New class.
42
43 2019-11-26 Tom Tromey <tromey@adacore.com>
44
45 * cp-support.c (_initialize_cp_support): Conditionally initialize
46 gdb_demangle_attempt_core_dump.
47
48 2019-11-26 Tom Tromey <tom@tromey.com>
49
50 * python/py-function.c (fnpy_init): Update.
51 * value.h (add_internal_function): Adjust declaration.
52 * value.c (function_destroyer): Remove.
53 (do_add_internal_function): Don't set destroyer or copy name.
54 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
55 Set name_allocated.
56 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
57 (cmdpy_init): Set name_allocated.
58 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
59 member.
60 (~cmd_list_element): Free "name" if needed.
61
62 2019-11-26 Tom Tromey <tom@tromey.com>
63
64 * value.h (add_internal_function): Add new overload. Move
65 documentation from value.h.
66 * value.c (do_add_internal_function): New function.
67 (add_internal_function): Use it. Add new overload.
68 (function_destroyer): Don't free doc.
69 * python/py-function.c (fnpy_init): Update.
70
71 2019-11-26 Tom Tromey <tom@tromey.com>
72
73 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
74 (cmdpy_init): Set "doc_allocated".
75
76 2019-11-26 Tom Tromey <tom@tromey.com>
77
78 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
79 name of worker thread.
80 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
81 pthread_setname_np.
82 * configure, config.in: Rebuild.
83
84 2019-11-26 Tom Tromey <tom@tromey.com>
85
86 * python/python.c (class gdbpy_gil): New.
87 (struct gdbpy_event): Add constructor, destructor, operator().
88 (gdbpy_post_event): Use run_on_main_thread.
89 (gdbpy_initialize_events): Remove.
90 (do_start_initialization): Update.
91
92 2019-11-26 Tom Tromey <tom@tromey.com>
93
94 * NEWS: Add entry.
95 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
96 commands. Call update_thread_pool_size.
97 (update_thread_pool_size, maintenance_set_worker_threads): New
98 functions.
99 (n_worker_threads): New global.
100
101 2019-11-26 Christian Biesinger <cbiesinger@google.com>
102 Tom Tromey <tom@tromey.com>
103
104 * minsyms.c (minimal_symbol_reader::install): Use
105 parallel_for_each.
106 * gdbsupport/parallel-for.h: New file.
107 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
108
109 2019-11-26 Christian Biesinger <cbiesinger@google.com>
110 Tom Tromey <tom@tromey.com>
111
112 * gdbsupport/thread-pool.h: New file.
113 * gdbsupport/thread-pool.c: New file.
114 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
115 (HFILES_NO_SRCDIR): Add thread-pool.h.
116
117 2019-11-26 Tom Tromey <tom@tromey.com>
118
119 * event-top.h (thread_local_segv_handler): Declare.
120 * event-top.c (thread_local_segv_handler): New global.
121 (install_handle_sigsegv, handle_sigsegv): New functions.
122 (async_init_signals): Install SIGSEGV handler.
123 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
124 thread-local.
125 (report_failed_demangle): New function.
126 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
127 handler-setting code, instead use segv_handler. Run warning code
128 on main thread.
129
130 2019-11-26 Tom Tromey <tom@tromey.com>
131
132 * run-on-main-thread.c: New file.
133 * run-on-main-thread.h: New file.
134 * unittests/main-thread-selftests.c: New file.
135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
136 main-thread-selftests.c.
137 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
138 (COMMON_SFILES): Add run-on-main-thread.c.
139
140 2019-11-26 Tom Tromey <tom@tromey.com>
141
142 * main.c (setup_alternate_signal_stack): Remove.
143 (captured_main_1): Use gdb::alternate_signal_stack.
144 * gdbsupport/alt-stack.h: New file.
145
146 2019-11-26 Tom Tromey <tom@tromey.com>
147
148 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
149 Remove comment.
150 (save_original_signals_state, restore_original_signals_state): Use
151 gdb_sigmask.
152 * linux-nat.c (block_child_signals, restore_child_signals_mask)
153 (_initialize_linux_nat): Use gdb_sigmask.
154 * guile/guile.c (_initialize_guile): Use block_signals.
155 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
156 * gdbsupport/gdb-sigmask.h: New file.
157 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
158 * cp-support.c (gdb_demangle): Use gdb_sigmask.
159 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
160 pthread_sigmask.
161 * configure, config.in: Rebuild.
162 * gdbsupport/block-signals.h: New file.
163
164 2019-11-26 Tom Tromey <tom@tromey.com>
165
166 * acinclude.m4: Include ax_pthread.m4.
167 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
168 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
169 (CLIBS): Use PTHREAD_LIBS.
170 (aclocal_m4_deps): Add ax_pthread.m4.
171 * config.in, configure: Rebuild.
172 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
173
174 2019-11-26 Tom Tromey <tom@tromey.com>
175
176 * symtab.h (struct minimal_symbol) <name_set>: New member.
177 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
178 Don't call symbol_set_names.
179 (minimal_symbol_reader::install): Call symbol_set_names.
180
181 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
182
183 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
184 restore_active_ext_lang, as GIL is needed for (indirectly)
185 called PyOS_InterruptOccurred.
186
187 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
188
189 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
190 definition.
191
192 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
193
194 * remote-sim.c (simulator_command): Make static, remove
195 declaration.
196
197 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
198
199 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
200 static.
201 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
202 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
203 (main): Likewise.
204 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
205 (main): Likewise.
206 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
207 (main): Likewise.
208 * unittests/basic_string_view/element_access/char/1.cc (test01):
209 Likewise.
210 (main): Likewise.
211 * unittests/basic_string_view/element_access/char/empty.cc (main):
212 Likewise.
213 * unittests/basic_string_view/element_access/char/front_back.cc
214 (test01): Likewise.
215 (main): Likewise.
216 * unittests/basic_string_view/inserters/char/2.cc (test05):
217 Likewise.
218 (main): Likewise.
219 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
220 (test01): Likewise.
221 (main): Likewise.
222 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
223 (test01): Likewise.
224 (main): Likewise.
225 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
226 Likewise.
227 * unittests/basic_string_view/operations/compare/char/1.cc
228 (test01): Likewise.
229 (main): Likewise.
230 * unittests/basic_string_view/operations/compare/char/13650.cc
231 (test01): Likewise.
232 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
233 Likewise.
234 (main): Likewise.
235 * unittests/basic_string_view/operations/data/char/1.cc (test01):
236 Likewise.
237 (main): Likewise.
238 * unittests/basic_string_view/operations/find/char/1.cc (test01):
239 Likewise.
240 (main): Likewise.
241 * unittests/basic_string_view/operations/find/char/2.cc (test02):
242 Likewise.
243 (main): Likewise.
244 * unittests/basic_string_view/operations/find/char/3.cc (test03):
245 Likewise.
246 (main): Likewise.
247 * unittests/basic_string_view/operations/find/char/4.cc (main):
248 Likewise.
249 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
250 Likewise.
251 (main): Likewise.
252 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
253 Likewise.
254 (main): Likewise.
255 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
256 Likewise.
257 (main): Likewise.
258 * unittests/basic_string_view/operations/substr/char/1.cc
259 (test01): Likewise.
260 (main): Likewise.
261 * unittests/basic_string_view/operators/char/2.cc (main):
262 Likewise.
263 * unittests/optional/assignment/1.cc (test): Likewise.
264 * unittests/optional/assignment/2.cc (test): Likewise.
265 * unittests/optional/assignment/3.cc (test): Likewise.
266 * unittests/optional/assignment/4.cc (test): Likewise.
267 * unittests/optional/assignment/5.cc (test): Likewise.
268 * unittests/optional/assignment/6.cc (test): Likewise.
269 * unittests/optional/assignment/7.cc (test): Likewise.
270 * unittests/optional/cons/copy.cc (test): Likewise.
271 * unittests/optional/cons/default.cc (test): Likewise.
272 * unittests/optional/cons/move.cc (test): Likewise.
273 * unittests/optional/cons/value.cc (test): Likewise.
274 * unittests/optional/in_place.cc (test): Likewise.
275 * unittests/optional/observers/1.cc (test): Likewise.
276 * unittests/optional/observers/2.cc (test): Likewise.
277
278 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
279
280 * tui-win.h (tui_set_var_cmd): Remove.
281 * tui-win.c (tui_set_var_cmd): Make static.
282
283 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
284
285 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
286 rbreak_command_wrapper): Remove.
287 * symtab.c (rbreak_command_wrapper): Remove.
288
289 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
290
291 * inferior.h (info_terminal_command): Remove declaration.
292 * inflow.c (info_terminal_command): Make static.
293
294 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
295
296 * inferior.c (exit_inferior_silent): Remove.
297
298 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
299
300 * dictionary.c (dict_empty, mdict_empty): Remove.
301 * dictionary.c (mdict_empty): Remove.
302
303 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
304
305 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
306 (arc_insn_get_memory_offset): Likewise.
307 (arc_insn_dump): Likewise.
308 * cp-support.c (test_cp_symbol_name_matches): Likewise.
309 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
310 * dictionary.c (dict_iterator_next): Likewise.
311 (dict_iter_match_first): Likewise.
312 (dict_iter_match_next): Likewise.
313 * f-lang.c (evaluate_subexp_f): Likewise.
314 * hppa-tdep.c (hppa_read_pc): Likewise.
315 * i386-tdep.c (i386_floatformat_for_type): Likewise.
316 * parse.c (write_exp_elt_msym): Likewise.
317 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
318 * remote.c (remote_packet_size): Likewise.
319 (remote_notif_stop_parse): Likewise.
320 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
321 * s12z-tdep.c (s12z_disassemble_info): Likewise.
322 * source.c (prepare_path_for_appending): Likewise.
323 * sparc64-linux-tdep.c
324 (sparc64_linux_handle_segmentation_fault); Likewise.
325 * stack.c (frame_selection_by_function_completer): Likewise.
326
327 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
328
329 * completer.c (set_gdb_completion_word_break_characters):
330 Remove.
331
332 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
333
334 * dwarf-index-write.c: Include dwarf-index-write.h.
335 * mi/mi-interp.c: Include mi/mi-interp.h.
336
337 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
338
339 * aarch32-tdep.c: Include aarch32-tdep.h.
340 * aarch32-tdep.h: Forward-declare struct target_desc.
341
342 2019-11-26 Christian Biesinger <cbiesinger@google.com>
343
344 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
345 strerror.
346 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
347 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
348
349 2019-11-25 Tom de Vries <tdevries@suse.de>
350
351 * contrib/words.sh: Add -c option.
352
353 2019-11-25 Christian Biesinger <cbiesinger@google.com>
354
355 * solib.c (solib_find_1): Change int to bool.
356 (exec_file_find): Change int to bool.
357 (solib_find): Change int to bool.
358 (solib_read_symbols): Change int to bool.
359 (solib_used): Change int to bool.
360 (solib_add): Change int to bool.
361 (info_sharedlibrary_command): Change int to bool.
362 (solib_contains_address_p): Change int to bool.
363 (solib_keep_data_in_core): Change int to bool.
364 (in_solib_dynsym_resolve_code): Change int to bool.
365 (reload_shared_libraries_1): Change int to bool.
366 (gdb_sysroot_changed): Change int to bool.
367 * solib.h (solib_read_symbols): Change int to bool.
368 (solib_contains_address_p): Change int to bool.
369 (solib_keep_data_in_core): Change int to bool.
370 (in_solib_dynsym_resolve_code): Change int to bool.
371 (libpthread_name_p): Change int to bool.
372
373 2019-11-25 Luis Machado <luis.machado@linaro.org>
374
375 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
376 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
377 (remote_packet_max_chars): New static global.
378 (show_remote_packet_max_chars): New function.
379 (remote_target::putpkt_binary): Adjust to use new
380 remote_packet_max_chars option.
381 (remote_target::getpkt_or_notif_sane_1): Likewise.
382 (_initialize_remote): Register new remote-packet-max-chars option.
383
384 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
385
386 * m68k-linux-nat.c: Include gdbarch.h.
387
388 2019-11-24 Tom Tromey <tom@tromey.com>
389
390 * symfile.c (read_symbols): Update.
391 * psymtab.c (require_partial_symbols): Change type of "verbose" to
392 bool.
393 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
394 (psym_lookup_symbol, psym_find_last_source_symtab)
395 (psym_forget_cached_source_info, psym_print_stats)
396 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
397 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
398 (psym_map_matching_symbols, psym_expand_symtabs_matching)
399 (psym_find_compunit_symtab_by_address)
400 (maintenance_print_psymbols, maintenance_info_psymtabs)
401 (maintenance_check_psymtabs): Update.
402 * psymtab.h (require_partial_symbols): Change type of "verbose" to
403 bool.
404
405 2019-11-22 Tom Tromey <tom@tromey.com>
406
407 * observable.h: Update comments.
408
409 2019-11-22 Tom Tromey <tromey@adacore.com>
410
411 * ada-tasks.c (ada_task_is_alive): Make parameter const.
412 (print_ada_task_info): Don't try to fetch thread id if task is not
413 alive.
414
415 2019-11-22 Christian Biesinger <cbiesinger@google.com>
416
417 * ada-exp.y: Update.
418 * ada-lang.c (sort_choices): Update.
419 (ada_print_symbol_signature): Update.
420 (resolve_subexp): Update.
421 (ada_parse_renaming): Update.
422 (ada_read_renaming_var_value): Update.
423 (lesseq_defined_than): Update.
424 (remove_extra_symbols): Update.
425 (remove_irrelevant_renamings): Update.
426 (ada_add_block_symbols): Update.
427 (ada_collect_symbol_completion_matches): Update.
428 (ada_is_renaming_symbol): Update.
429 (aggregate_assign_from_choices): Update.
430 (ada_evaluate_subexp): Update.
431 (ada_has_this_exception_support): Update.
432 (ada_is_non_standard_exception_sym): Update.
433 (ada_add_exceptions_from_frame): Update.
434 (ada_add_global_exceptions): Update.
435 (ada_print_subexp): Update.
436 * ax-gdb.c (gen_var_ref): Update.
437 (gen_maybe_namespace_elt): Update.
438 (gen_expr_for_cast): Update.
439 (gen_expr): Update.
440 * block.h: Update.
441 * blockframe.c (find_pc_partial_function): Update.
442 * breakpoint.c (print_breakpoint_location): Update.
443 (update_static_tracepoint): Update.
444 * btrace.c (ftrace_print_function_name): Update.
445 (ftrace_function_switched): Update.
446 * buildsym.c (find_symbol_in_list): Update.
447 * c-exp.y: Update.
448 * c-typeprint.c (c_print_typedef): Update.
449 (c_type_print_template_args): Update.
450 * cli/cli-cmds.c (edit_command): Update.
451 (list_command): Update.
452 (print_sal_location): Update.
453 * coffread.c (patch_opaque_types): Update.
454 (process_coff_symbol): Update.
455 (coff_read_enum_type): Update.
456 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
457 (convert_one_symbol): Update.
458 (hash_symname): Update.
459 (eq_symname): Update.
460 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
461 * compile/compile-cplus-types.c (debug_print_scope): Update.
462 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
463 * compile/compile-object-load.c (get_out_value_type): Update.
464 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
465 (search_symbol_list): Update.
466 (cp_lookup_symbol_imports_or_template): Update.
467 * cp-support.c (overload_list_add_symbol): Update.
468 * ctfread.c (psymtab_to_symtab): Update.
469 * dbxread.c (cp_set_block_scope): Update.
470 * dictionary.c (iter_match_first_hashed): Update.
471 (iter_match_next_hashed): Update.
472 (insert_symbol_hashed): Update.
473 (iter_match_next_linear): Update.
474 * dictionary.h: Update.
475 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
476 (locexpr_describe_location_piece): Update.
477 (locexpr_describe_location_1): Update.
478 (locexpr_generate_c_location): Update.
479 (loclist_describe_location): Update.
480 (loclist_generate_c_location): Update.
481 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
482 (read_func_scope): Update.
483 (process_enumeration_scope): Update.
484 (new_symbol): Update.
485 (dwarf2_const_value): Update.
486 (dwarf2_symbol_mark_computed): Update.
487 * eval.c (evaluate_funcall): Update.
488 (evaluate_subexp_standard): Update.
489 * expprint.c (print_subexp_standard): Update.
490 (dump_subexp_body_standard): Update.
491 * f-valprint.c (info_common_command_for_block): Update.
492 * findvar.c (get_hosting_frame): Update.
493 (default_read_var_value): Update.
494 * go-lang.c (go_symbol_package_name): Update.
495 * guile/scm-block.c (bkscm_print_block_smob): Update.
496 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
497 (gdbscm_symbol_name): Update.
498 (gdbscm_symbol_linkage_name): Update.
499 (gdbscm_symbol_print_name): Update.
500 * infcall.c (get_function_name): Update.
501 * infcmd.c (jump_command): Update.
502 (finish_command): Update.
503 * infrun.c (insert_exception_resume_breakpoint): Update.
504 * linespec.c (canonicalize_linespec): Update.
505 (create_sals_line_offset): Update.
506 (convert_linespec_to_sals): Update.
507 (complete_label): Update.
508 (find_label_symbols_in_block): Update.
509 * m2-typeprint.c (m2_print_typedef): Update.
510 * mdebugread.c (mdebug_reg_to_regnum): Update.
511 (parse_symbol): Update.
512 (mylookup_symbol): Update.
513 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
514 (list_args_or_locals): Update.
515 * objc-lang.c (compare_selectors): Update.
516 (info_selectors_command): Update.
517 (compare_classes): Update.
518 (info_classes_command): Update.
519 (find_imps): Update.
520 * p-typeprint.c (pascal_print_typedef): Update.
521 * printcmd.c (build_address_symbolic): Update.
522 (info_address_command): Update.
523 (print_variable_and_value): Update.
524 * python/py-framefilter.c (extract_sym): Update.
525 (py_print_single_arg): Update.
526 * python/py-symbol.c (sympy_str): Update.
527 (sympy_get_name): Update.
528 (sympy_get_linkage_name): Update.
529 * python/python.c (gdbpy_rbreak): Update.
530 * record-btrace.c (btrace_get_bfun_name): Update.
531 (btrace_call_history): Update.
532 * rust-lang.c (rust_print_typedef): Update.
533 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
534 * stabsread.c (stab_reg_to_regnum): Update.
535 (define_symbol): Update.
536 (read_enum_type): Update.
537 (common_block_end): Update.
538 (cleanup_undefined_types_1): Update.
539 (scan_file_globals): Update.
540 * stack.c (print_frame_arg): Update.
541 (print_frame_args): Update.
542 (find_frame_funname): Update.
543 (info_frame_command_core): Update.
544 (iterate_over_block_locals): Update.
545 (print_block_frame_labels): Update.
546 (do_print_variable_and_value): Update.
547 (iterate_over_block_arg_vars): Update.
548 (return_command): Update.
549 * symmisc.c (dump_symtab_1): Update.
550 (print_symbol): Update.
551 * symtab.c (eq_symbol_entry): Update.
552 (symbol_cache_dump): Update.
553 (lookup_language_this): Update.
554 (find_pc_sect_line): Update.
555 (skip_prologue_sal): Update.
556 (symbol_search::compare_search_syms): Update.
557 (treg_matches_sym_type_name): Update.
558 (search_symbols): Update.
559 (print_symbol_info): Update.
560 (rbreak_command): Update.
561 (completion_list_add_symbol): Update.
562 (find_gnu_ifunc): Update.
563 (get_symbol_address): Update.
564 (search_module_symbols): Update.
565 (info_module_subcommand): Update.
566 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
567 (SYMBOL_LINKAGE_NAME): Remove.
568 (SYMBOL_DEMANGLED_NAME): Remove.
569 (SYMBOL_PRINT_NAME): Remove.
570 (SYMBOL_SEARCH_NAME): Remove.
571 * tracepoint.c (set_traceframe_context): Update.
572 (validate_actionline): Update.
573 (collection_list::collect_symbol): Update.
574 (encode_actions_1): Update.
575 (info_scope_command): Update.
576 (print_one_static_tracepoint_marker): Update.
577 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
578 * valops.c (address_of_variable): Update.
579 (find_overload_match): Update.
580 (find_oload_champ): Update.
581
582 2019-11-22 Christian Biesinger <cbiesinger@google.com>
583
584 * ada-lang.c (ada_lookup_simple_minsym): Update.
585 (ada_collect_symbol_completion_matches): Update.
586 * ada-tasks.c (read_atcb): Update.
587 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
588 (amd64_windows_skip_trampoline_code): Update.
589 * arm-tdep.c (skip_prologue_function): Update.
590 (arm_skip_stack_protector): Update.
591 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
592 (arm_wince_skip_main_prologue): Update.
593 * ax-gdb.c (gen_expr): Update.
594 * block.c (call_site_for_pc): Update.
595 * blockframe.c (find_pc_partial_function): Update.
596 * breakpoint.c (set_breakpoint_location_function): Update.
597 * btrace.c (ftrace_print_function_name): Update.
598 (ftrace_function_switched): Update.
599 * c-valprint.c (print_unpacked_pointer): Update.
600 * coffread.c (coff_symfile_read): Update.
601 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
602 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
603 * dwarf-index-write.c (write_psymbols): Update.
604 * dwarf2loc.c (call_site_to_target_addr): Update.
605 (func_verify_no_selftailcall): Update.
606 (tailcall_dump): Update.
607 (call_site_find_chain_1): Update.
608 (dwarf_expr_reg_to_entry_parameter): Update.
609 * elfread.c (elf_gnu_ifunc_record_cache): Update.
610 * eval.c (evaluate_funcall): Update.
611 (evaluate_subexp_standard): Update.
612 (evaluate_subexp_for_sizeof): Update.
613 * expprint.c (print_subexp_standard): Update.
614 (dump_subexp_body_standard): Update.
615 * frame.c (get_prev_frame_always_1): Update.
616 * frv-tdep.c (frv_skip_main_prologue): Update.
617 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
618 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
619 (gnuv3_get_typename_from_type_info): Update.
620 (gnuv3_skip_trampoline): Update.
621 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
622 * i386-tdep.c (i386_skip_main_prologue): Update.
623 (i386_pe_skip_trampoline_code): Update.
624 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
625 * infcall.c (get_function_name): Update.
626 * linespec.c (minsym_found): Update.
627 * linux-fork.c (info_checkpoints_command): Update.
628 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
629 (m32c_m16c_pointer_to_address): Update.
630 * maint.c (maintenance_translate_address): Update.
631 * minsyms.c (add_minsym_to_hash_table): Update.
632 (add_minsym_to_demangled_hash_table): Update.
633 (lookup_minimal_symbol_mangled): Update.
634 (lookup_minimal_symbol_demangled): Update.
635 (lookup_minimal_symbol_linkage): Update.
636 (lookup_minimal_symbol_text): Update.
637 (lookup_minimal_symbol_by_pc_name): Update.
638 (minimal_symbol_is_less_than): Update.
639 (compact_minimal_symbols): Update.
640 (build_minimal_symbol_hash_tables): Update.
641 (find_solib_trampoline_target): Update.
642 * mips-tdep.c (mips_stub_frame_sniffer): Update.
643 (mips_skip_pic_trampoline_code): Update.
644 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
645 * objc-lang.c (info_selectors_command): Update.
646 (info_classes_command): Update.
647 (find_methods): Update.
648 (find_imps): Update.
649 * p-valprint.c (pascal_val_print): Update.
650 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
652 * printcmd.c (build_address_symbolic): Update.
653 (info_symbol_command): Update.
654 * psymtab.c (psymbol_name_matches): Update.
655 (match_partial_symbol): Update.
656 (lookup_partial_symbol): Update.
657 (print_partial_symbols): Update.
658 (sort_pst_symbols): Update.
659 (maintenance_check_psymtabs): Update.
660 * python/py-framefilter.c (py_print_frame): Update.
661 * python/python.c (gdbpy_rbreak): Update.
662 * record-btrace.c (btrace_get_bfun_name): Update.
663 (btrace_call_history): Update.
664 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
665 (rs6000_skip_trampoline_code): Update.
666 * sol-thread.c (info_cb): Update.
667 * stabsread.c (scan_file_globals): Update.
668 * stack.c (find_frame_funname): Update.
669 (info_frame_command_core): Update.
670 * symmisc.c (dump_msymbols): Update.
671 * symtab.c (symbol_natural_name): Rename to..,
672 (general_symbol_info::natural_name): ...this.
673 (symbol_demangled_name): Rename to...
674 (general_symbol_info::demangled_name): ...this.
675 (symbol_search_name): Rename to...
676 (general_symbol_info::search_name): ...this.
677 (symbol_matches_search_name): Update.
678 (find_pc_sect_line): Update.
679 (skip_prologue_sal): Update.
680 (search_symbols): Update.
681 (print_msymbol_info): Update.
682 (rbreak_command): Update.
683 (completion_list_add_msymbol): Update.
684 (completion_list_objc_symbol): Update.
685 (get_msymbol_address): Update.
686 * symtab.h (struct general_symbol_info): Add member functions
687 natural_name (), linkage_name (), print_name (), demangled_name (),
688 and search_name ().
689 (SYMBOL_NATURAL_NAME): Update.
690 (symbol_natural_name): Move to a member function on general_symbol_info.
691 (SYMBOL_DEMANGLED_NAME): Update.
692 (symbol_demangled_name): Move to a member function on
693 general_symbol_info.
694 (SYMBOL_SEARCH_NAME): Update.
695 (symbol_search_name): Move to a member function on general_symbol_info.
696 (MSYMBOL_NATURAL_NAME): Remove.
697 (MSYMBOL_LINKAGE_NAME): Remove.
698 (MSYMBOL_PRINT_NAME): Remove.
699 (MSYMBOL_DEMANGLED_NAME): Remove.
700 (MSYMBOL_SEARCH_NAME): Remove.
701 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
702
703 2019-11-22 Christian Biesinger <cbiesinger@google.com>
704
705 * symtab.c (create_demangled_names_hash): Use per_bfd->
706 minimal_symbol_count for computing the initial size, if greater
707 than our default size.
708
709 2019-11-22 Tom de Vries <tdevries@suse.de>
710
711 * contrib/words.sh: Improve words extraction.
712
713 2019-11-22 Tom de Vries <tdevries@suse.de>
714
715 * contrib/words.sh: Combine sed invocations.
716
717 2019-11-21 Christian Biesinger <cbiesinger@google.com>
718
719 * Makefile.in: Update.
720 * demangle.c: Rename to...
721 * gdb-demangle.c: ..this.
722 (is_cplus_marker): Change return type to bool.
723 (_initialize_demangler): Rename to...
724 (_initialize_gdb_demangle): ...this.
725 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
726 * symtab.h (demangle): Remove declaration; instead include
727 gdb-demangle.h.
728
729 2019-11-21 Tom Tromey <tromey@adacore.com>
730
731 * gdbsupport/format.c (format_pieces): Parse %I64d.
732 * unittests/format_pieces-selftests.c (test_windows_formats): New
733 function.
734 (run_tests): Call it.
735
736 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
737
738 Byte reverse display of variables with DW_END_big, DW_END_little
739 (DW_AT_endianity) dwarf attributes if different than the native
740 byte order.
741 * ada-lang.c (ada_value_binop):
742 Use type_byte_order instead of gdbarch_byte_order.
743 * ada-valprint.c (printstr):
744 (ada_val_print_string):
745 * ada-lang.c (value_pointer):
746 (ada_value_binop):
747 Use type_byte_order instead of gdbarch_byte_order.
748 * c-lang.c (c_get_string):
749 Use type_byte_order instead of gdbarch_byte_order.
750 * c-valprint.c (c_val_print_array):
751 Use type_byte_order instead of gdbarch_byte_order.
752 * cp-valprint.c (cp_print_class_member):
753 Use type_byte_order instead of gdbarch_byte_order.
754 * dwarf2loc.c (rw_pieced_value):
755 Use type_byte_order instead of gdbarch_byte_order.
756 * dwarf2read.c (read_base_type): Handle DW_END_big,
757 DW_END_little
758 * f-lang.c (f_get_encoding):
759 Use type_byte_order instead of gdbarch_byte_order.
760 * findvar.c (default_read_var_value):
761 Use type_byte_order instead of gdbarch_byte_order.
762 * gdbtypes.c (check_types_equal):
763 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
764 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
765 and TYPE_ENDIANITY_LITTLE if set.
766 (type_byte_order): new function.
767 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
768 (struct main_type) <flag_endianity_not_default>:
769 New field.
770 (type_byte_order): New function.
771 * infcmd.c (default_print_one_register_info):
772 Use type_byte_order instead of gdbarch_byte_order.
773 * p-lang.c (pascal_printstr):
774 Use type_byte_order instead of gdbarch_byte_order.
775 * p-valprint.c (pascal_val_print):
776 Use type_byte_order instead of gdbarch_byte_order.
777 * printcmd.c (print_scalar_formatted):
778 Use type_byte_order instead of gdbarch_byte_order.
779 * solib-darwin.c (darwin_current_sos):
780 Use type_byte_order instead of gdbarch_byte_order.
781 * solib-svr4.c (solib_svr4_r_ldsomap):
782 Use type_byte_order instead of gdbarch_byte_order.
783 * stap-probe.c (stap_modify_semaphore):
784 Use type_byte_order instead of gdbarch_byte_order.
785 * target-float.c (target_float_same_format_p):
786 Use type_byte_order instead of gdbarch_byte_order.
787 * valarith.c (scalar_binop):
788 (value_bit_index):
789 Use type_byte_order instead of gdbarch_byte_order.
790 * valops.c (value_cast):
791 Use type_byte_order instead of gdbarch_byte_order.
792 * valprint.c (generic_emit_char):
793 (generic_printstr):
794 (val_print_string):
795 Use type_byte_order instead of gdbarch_byte_order.
796 * value.c (unpack_long):
797 (unpack_bits_as_long):
798 (unpack_value_bitfield):
799 (modify_field):
800 (pack_long):
801 (pack_unsigned_long):
802 Use type_byte_order instead of gdbarch_byte_order.
803 * findvar.c (unsigned_pointer_to_address):
804 (signed_pointer_to_address):
805 (unsigned_address_to_pointer):
806 (address_to_signed_pointer):
807 (default_read_var_value):
808 (default_value_from_register):
809 Use type_byte_order instead of gdbarch_byte_order.
810 * gnu-v3-abi.c (gnuv3_make_method_ptr):
811 Use type_byte_order instead of gdbarch_byte_order.
812 * riscv-tdep.c (riscv_print_one_register_info):
813 Use type_byte_order instead of gdbarch_byte_order.
814
815 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
818 (current_ui_gdb_stdin_ptr): Likewise.
819 (current_ui_gdb_stderr_ptr): Likewise.
820 (current_ui_gdb_stdlog_ptr): Likewise.
821 (current_ui_current_uiout_ptr): Likewise.
822 (gen_ret_current_ui_field_ptr): Remove.
823
824 2019-11-21 Tom de Vries <tdevries@suse.de>
825
826 PR gdb/24956
827 * cli/cli-script.c (execute_control_command): Only switch to
828 INTERP_CONSOLE's ui_out when INTERP_MI is active.
829
830 2019-11-19 Tom Tromey <tom@tromey.com>
831
832 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
833 Now static. Change type of "name".
834 (tui_set_win_height_command): Don't copy "arg".
835 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
836 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
837
838 2019-11-19 Ali Tamur <tamur@google.com>
839
840 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
841 "if (attr != nullptr)".
842 (dwarf2_find_base_address): Likewise.
843 (dwarf2_build_include_psymtabs): Likewise.
844 (read_cutu_die_from_dwo): Likewise.
845 (read_func_scope): Likewise.
846 (read_call_site_scope): Likewise.
847 (dwarf2_get_pc_bounds): Likewise.
848 (dwarf2_record_block_ranges): Likewise.
849 (dwarf2_add_field): Likewise.
850 (dwarf2_add_member_fn): Likewise.
851 (read_structure_type): Likewise.
852 (read_enumeration_type): Likewise.
853 (read_array_type): Likewise.
854 (read_array_order): Likewise.
855 (read_set_type): Likewise.
856 (read_common_block): Likewise.
857 (read_tag_reference_type): Likewise.
858 (read_tag_string_type): Likewise.
859 (read_subroutine_type): Likewise.
860 (read_base_type): Likewise.
861 (read_subrange_type): Likewise.
862 (new_symbol): Likewise.
863 (prepare_one_comp_unit): Likewise.
864
865 2019-11-19 Tom Tromey <tromey@adacore.com>
866
867 * windows-nat.c (windows_nat_target::attach): Include GetLastError
868 result in error when DebugActiveProcess fails.
869
870 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
871 Pedro Alves <palves@redhat.com>
872
873 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
874 * target.c (target_stack::push): Call 'unpush' if there's a
875 target on top of the stack.
876
877 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
878
879 * python/py-block.c (blpy_dealloc): Call tp_free.
880 (blpy_block_syms_dealloc): Likewise.
881 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
882 * python/py-inferior.c (infpy_dealloc): Likewise.
883 * python/py-lazy-string.c (stpy_dealloc): Likewise.
884 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
885 * python/py-symbol.c (sympy_dealloc): Likewise.
886 * python/py-symtab.c (stpy_dealloc): Likewise.
887 * python/py-type.c (typy_iterator_dealloc): Likewise.
888
889 2019-11-18 Christian Biesinger <cbiesinger@google.com>
890
891 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
892 constructor instead of using a class initializer.
893
894 2019-11-15 Christian Biesinger <cbiesinger@google.com>
895
896 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
897 * configure: Regenerate.
898 * configure.ac: Don't source common.host.
899 * gdbsupport/common.host: Remove.
900 * gdbsupport/mingw-strerror.c: Remove.
901 * gdbsupport/posix-strerror.c: Rename to...
902 * gdbsupport/safe-strerror.c: ...this.
903
904 2019-11-15 Christian Biesinger <cbiesinger@google.com>
905
906 * maint.c (scoped_command_stats::print_time): Use localtime_r
907 instead of localtime (provided through gnulib if necessary).
908 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
909 of ctime.
910
911 2019-11-15 Christian Biesinger <cbiesinger@google.com>
912
913 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
914 avoid compile errors.
915
916 2019-11-15 Christian Biesinger <cbiesinger@google.com>
917
918 * config.in: Regenerate.
919 * configure: Regenerate.
920 * gdbsupport/common.m4: No longer check for strerror_r.
921 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
922 POSIX version of strerror_r, now that gnulib provides it if
923 necessary.
924
925 2019-11-14 Christian Biesinger <cbiesinger@google.com>
926
927 * README (`configure' options): Update.
928
929 2019-11-14 Tom Tromey <tromey@adacore.com>
930
931 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
932 expected type for the RHS if the LHS is a convenience variable.
933
934 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
937 Provide explicit default and copy constructor.
938
939 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
940
941 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
942 only call Py_INCREF (newbp) in the bppy_pending_object case.
943
944 2019-11-13 Tom Tromey <tromey@adacore.com>
945
946 PR build/25182:
947 * psympriv.h (partial_symbol): Remove static assert.
948 * symtab.h (general_symbol_info, symbol): Remove static assert.
949
950 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * gdbsupport/format.c (format_pieces::format_pieces): Support
953 printf 'z' size modifier.
954 * gdbsupport/format.h (enum argclass): Add size_t_arg.
955 * printcmd.c (ui_printf): Handle size_t_arg.
956 * ui-out.c (ui_out::vmessage): Likewise.
957 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
958 function.
959 (run_tests): Call test_format_int_sizes.
960
961 2019-11-12 Christian Biesinger <cbiesinger@google.com>
962
963 * ada-exp.y (write_ambiguous_var): Update.
964 * buildsym.c (add_symbol_to_list): Update.
965 * dwarf2read.c (read_variable): Update.
966 (new_symbol): Update.
967 * jit.c (finalize_symtab): Update.
968 * language.c (language_alloc_type_symbol): Update.
969 * symtab.c (fixup_symbol_section): Update.
970 (initialize_objfile_symbol_1): Move code to...
971 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
972 (allocate_symbol): Update.
973 (allocate_template_symbol): Update.
974 (get_symbol_address): Update.
975 * symtab.h (struct symbol): Inherit from general_symbol_info instead
976 of having as a field, and add a constructor.
977 (SYMBOL_VALUE): Update.
978 (SYMBOL_VALUE_ADDRESS): Update.
979 (SET_SYMBOL_VALUE_ADDRESS): Update.
980 (SYMBOL_VALUE_BYTES): Update.
981 (SYMBOL_VALUE_COMMON_BLOCK): Update.
982 (SYMBOL_BLOCK_VALUE): Update.
983 (SYMBOL_VALUE_CHAIN): Update.
984 (SYMBOL_LANGUAGE): Update.
985 (SYMBOL_SECTION): Update.
986 (SYMBOL_OBJ_SECTION): Update.
987 (SYMBOL_SET_LANGUAGE): Update.
988 (SYMBOL_SET_LINKAGE_NAME): Update.
989 (SYMBOL_SET_NAMES): Update.
990 (SYMBOL_NATURAL_NAME): Update.
991 (SYMBOL_LINKAGE_NAME): Update.
992 (SYMBOL_DEMANGLED_NAME): Update.
993 (SYMBOL_SEARCH_NAME): Update.
994 (SYMBOL_MATCHES_SEARCH_NAME): Update.
995 (struct symbol): Update.
996 (struct template_symbol): Update.
997 (struct rust_vtable_symbol): Update.
998 * xcoffread.c (SYMBOL_DUP): Update.
999
1000 2019-11-12 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-layout.c (show_layout): Set current_layout.
1003 (show_source_disasm_command, show_data)
1004 (show_source_or_disasm_and_command): Don't set current_layout.
1005
1006 2019-11-12 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1009
1010 2019-11-12 Tom Tromey <tom@tromey.com>
1011
1012 * tui/tui-win.c (resize_message): New global.
1013 (show_tui_resize_message): New function.
1014 (tui_async_resize_screen): Print message if requested.
1015 (_initialize_tui_win): Add tui-resize-message setting.
1016 * NEWS: Add entry for new commands.
1017
1018 2019-11-11 Tom Tromey <tom@tromey.com>
1019
1020 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1021 functions.
1022
1023 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1024
1025 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1026
1027 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1030 function.
1031 * python/python-internal.h (gdbpy_lookup_static_symbols):
1032 Declare new function.
1033 * python/python.c (python_GdbMethods): Add
1034 gdb.lookup_static_symbols method.
1035 * NEWS: Mention gdb.lookup_static_symbols.
1036
1037 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1040 static block of current object file first. Also fix typo in
1041 header comment.
1042
1043 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * stack.c (set_last_displayed_sal): Delete.
1046 (last_displayed_sal_valid): Delete.
1047 (last_displayed_pspace): Delete.
1048 (last_displayed_addr): Delete.
1049 (last_displayed_symtab): Delete.
1050 (last_displayed_line): Delete.
1051 (class last_displayed_symtab_info_type): New.
1052 (last_displayed_symtab_info): New static global variable.
1053 (print_frame_info): Call methods on last_displayed_symtab_info.
1054 (clear_last_displayed_sal): Update header comment, and make use of
1055 last_displayed_symtab_info.
1056 (last_displayed_sal_is_valid): Likewise.
1057 (get_last_displayed_pspace): Likewise.
1058 (get_last_displayed_addr): Likewise.
1059 (get_last_displayed_symtab): Likewise.
1060 (get_last_displayed_line): Likewise.
1061 (get_last_displayed_sal): Likewise.
1062 * stack.h (clear_last_displayed_sal): Update header comment.
1063 (last_displayed_sal_is_valid): Likewise.
1064 (get_last_displayed_pspace): Likewise.
1065 (get_last_displayed_addr): Likewise.
1066 (get_last_displayed_symtab): Likewise.
1067 (get_last_displayed_line): Likewise.
1068 (get_last_displayed_sal): Likewise.
1069
1070 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * stack.c (frame_show_address): Convert return type to bool.
1073 * stack.h (frame_show_address): Likewise, and update header
1074 comment.
1075
1076 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1079 * unittests/vec-utils-selftests.c: New file.
1080 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1081
1082 2019-11-10 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1085 (tui_highlight_win): Likewise.
1086 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1087 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1088 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1089 Don't set can_highlight.
1090
1091 2019-11-10 Tom Tromey <tom@tromey.com>
1092
1093 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1094 Remove unused declaration.
1095
1096 2019-11-08 Tom Tromey <tromey@adacore.com>
1097
1098 * top.c (read_command_file): Update.
1099 (command_line_input): Make return type const.
1100 * python/py-gdb-readline.c: Update.
1101 * linespec.c (decode_line_2): Update.
1102 * defs.h (command_line_input): Make return type const.
1103 * cli/cli-script.c (read_next_line): Make return type const.
1104 * ada-lang.c (get_selections): Update.
1105
1106 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1107
1108 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1109 * mi/mi-main.c (output_cores): Likewise.
1110 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1111 (linux_xfer_osdata_modules): Likewise.
1112 * remote.c (register_remote_support_xml): Likewise.
1113 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1114 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1115
1116 2019-11-06 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui-interp.c: Don't include readline.h.
1119 * tui/tui-hooks.c: Don't include readline.h.
1120 * symmisc.c: Include tilde.h, not readline.h.
1121 * symfile.c: Include tilde.h, not readline.h.
1122 * source.c: Include tilde.h, not readline.h.
1123 * solib.c: Include tilde.h, not readline.h.
1124 * psymtab.c: Include tilde.h, not readline.h.
1125 * exec.c: Include tilde.h, not readline.h.
1126 * corelow.c: Include tilde.h, not readline.h.
1127 * cli/cli-dump.c: Include tilde.h, not readline.h.
1128 * cli/cli-cmds.c: Don't include readline.h.
1129
1130 2019-11-05 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1133 (tui_disassemble): Set addr_size.
1134 (tui_disasm_window::set_contents): Use addr_size.
1135
1136 2019-11-05 Tom Tromey <tom@tromey.com>
1137
1138 * rust-lang.c (rust_language_defn): Update.
1139 * python/py-value.c (valpy_string): Call c_get_string.
1140 * p-lang.c (pascal_language_defn): Update.
1141 * opencl-lang.c (opencl_language_defn): Update.
1142 * objc-lang.c (objc_language_defn): Update.
1143 * m2-lang.c (m2_language_defn): Update.
1144 * language.c (unknown_language_defn, auto_language_defn): Update.
1145 (default_get_string): Remove.
1146 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1147 * go-lang.c (go_language_defn): Update.
1148 * f-lang.c (f_language_defn): Update.
1149 * d-lang.c (d_language_defn): Update.
1150 * c-lang.c (c_language_defn, cplus_language_defn)
1151 (asm_language_defn, minimal_language_defn): Update.
1152 * ada-lang.c (ada_language_defn): Update.
1153 * language.h (struct language_defn) <la_get_string>: Remove.
1154 (LA_GET_STRING): Remove.
1155 (default_get_string): Don't declare.
1156
1157 2019-11-05 Tom Tromey <tom@tromey.com>
1158
1159 * tui/tui-source.h (struct tui_source_window): Inline
1160 constructor. Remove destructor.
1161 <style_changed, m_observable>: Move to superclass.
1162 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1163 (struct tui_source_window_base): Move private members to end.
1164 <style_changed, m_observable>: Move from tui_source_window.
1165 * tui/tui-winsource.c (tui_copy_source_line): Move from
1166 tui-source.c. Rename from copy_source_line. Add special handling
1167 for negative line number.
1168 (tui_source_window_base::style_changed): Move from
1169 tui_source_window.
1170 (tui_source_window_base): Register observer.
1171 (~tui_source_window_base): New.
1172 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1173 rename.
1174 (tui_source_window::set_contents): Use tui_copy_source_line.
1175 (tui_source_window::tui_source_window): Move to tui-source.h.
1176 (tui_source_window::~tui_source_window): Remove.
1177 (tui_source_window::style_changed): Move to superclass.
1178 * tui/tui-disasm.c (tui_disassemble): Create string file with
1179 styling, when possible. Add "addr_size" parameter.
1180 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1181 Don't compute maximum size.
1182 (len_without_escapes): New function
1183
1184 2019-11-05 Tom Tromey <tom@tromey.com>
1185
1186 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1187 std::string.
1188 * tui/tui-winsource.c (tui_show_source_line): Update.
1189 * tui/tui-source.c (tui_source_window::set_contents): Update.
1190 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1191
1192 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1193
1194 * symtab.h (gdb_static_assert): Put && operator at the beginning
1195 of the line instead of the end.
1196
1197 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1198
1199 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1200 and sizeof (symbol).
1201 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1202
1203 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1204
1205 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1206 * configure.host: Mark *-*-solaris2.10* obsolete.
1207 * configure.tgt: Mark Solaris < 11 obsolete.
1208 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1209 Update target triplet.
1210
1211 2019-11-01 Tom Tromey <tromey@adacore.com>
1212
1213 * utils.c (print_sys_errmsg): Simplify.
1214
1215 2019-11-01 Tom Tromey <tromey@adacore.com>
1216
1217 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1218
1219 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1220
1221 * configure: Regenerate.
1222 * configure.ac: Remove check for strerror_r.
1223 * gdbsupport/common.m4: Check for strerror_r.
1224
1225 2019-11-01 Luis Machado <luis.machado@linaro.org>
1226
1227 PR gdb/25124
1228
1229 * arm-tdep.c (arm_per_objfile): Rename to ...
1230 (arm_per_bfd): ... this.
1231 (arm_objfile_data_key): Rename to ...
1232 (arm_bfd_data_key): ... this.
1233 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1234 data.
1235 (arm_record_special_symbol): Likewise.
1236
1237 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1240 end.
1241 * c-typeprint.c (c_print_typedef): Likewise.
1242 * f-typeprint.c (f_print_typedef): Likewise.
1243 * m2-typeprint.c (m2_print_typedef): Likewise.
1244 * p-typeprint.c (pascal_print_typedef): Likewise.
1245 * rust-lang.c (rust_print_typedef): Likewise.
1246 * symtab.c (print_symbol_info): Print a newline after calling
1247 typedef_print.
1248
1249 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * symtab.c (info_module_cmdlist): New variable.
1252 (info_module_command): New function.
1253 (search_module_symbols): New function.
1254 (info_module_subcommand): New function.
1255 (struct info_modules_var_func_options): New struct.
1256 (info_modules_var_func_options_defs): New variable.
1257 (make_info_modules_var_func_options_def_group): New function.
1258 (info_module_functions_command): New function.
1259 (info_module_variables_command): New function.
1260 (info_module_var_func_command_completer): New function.
1261 (_initialize_symtab): Register new 'info module functions' and
1262 'info module variables' commands.
1263 * symtab.h (typedef symbol_search_in_module): New typedef.
1264 (search_module_symbols): Declare new function.
1265 * NEWS: Mention new commands.
1266
1267 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1270 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1271 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1272 MODULES_DOMAIN.
1273 (scan_partial_symbols): Only create partial module symbols for non
1274 declarations.
1275 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1276 and MODULES_DOMAIN.
1277 * symtab.c (search_domain_name): Likewise.
1278 (search_symbols): Likewise.
1279 (print_symbol_info): Likewise.
1280 (symtab_symbol_info): Likewise.
1281 (info_modules_command): New function.
1282 (_initialize_symtab): Register 'info modules' command.
1283 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1284 * NEWS: Mention new 'info modules' command.
1285
1286 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1287
1288 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1289 and $_gdb_maint_setting_str.
1290
1291 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1292
1293 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1294 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1295 (str_value_from_setting, gdb_setting_str_internal_fn)
1296 (gdb_maint_setting_str_internal_fn): New functions.
1297 (_initialize_cli_cmds): Define the new convenience functions.
1298 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1299 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1300
1301 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1302
1303 * agent.c (set_can_use_agent): When the setting is turned on,
1304 look up agent symbols if we don't have them yet.
1305 (agent_new_objfile): Don't look up agent symbols when the agent
1306 setting is off.
1307
1308 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1309
1310 * config.in: Regenerate.
1311
1312 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1313
1314 * configure: Regenerate.
1315 * configure.ac: Check for strerror_r.
1316 * gdbsupport/common-utils.h (safe_strerror): Change return value
1317 to const char * and document that this function is now threadsafe.
1318 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1319 thread_local and call strerror_r, if available.
1320 * utils.c (perror_string): Update.
1321 (print_sys_errmsg): Update.
1322
1323 2019-10-31 Luis Machado <luis.machado@linaro.org>
1324
1325 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1326 objfile_key.
1327 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1328 objfile to fetch per-bfd data.
1329 (arm_find_exidx_entry): Likewise.
1330
1331 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1332
1333 * gdbsupport/agent.c (debug_agent): Change type to bool.
1334 (use_agent): Likewise.
1335 (all_agent_symbols_look_up): Likewise.
1336 (agent_loaded_p): Change return value to bool.
1337 (agent_look_up_symbols): Update.
1338 (agent_capability_check): Change return value to bool.
1339 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1340 (debug_agent): Change type to bool.
1341 (use_agent): Likewise.
1342 (agent_capability_check): Change return value to bool.
1343
1344 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1345
1346 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1347 (build_minimal_symbol_hash_tables): Code to clear the table moved
1348 to clear_minimal_symbol_hash_tables.
1349 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1350 when needed.
1351
1352 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * infcmd.c: Remove includes.
1355 * infrun.c: Remove includes.
1356
1357 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1360 (grow_vect): Remove declaration.
1361 (ada_type_of_array): Remove declaration.
1362 (ada_update_initial_language): Remove declaration.
1363 (ada_fold_name): Remove declaration.
1364 (ada_fill_in_ada_prototype): Remove declaration.
1365 (user_select_syms): Remove declaration.
1366 (get_selections): Remove declaration.
1367 (ada_tag_type): Remove declaration.
1368 (ada_value_tag): Remove declaration.
1369 (ada_is_others_clause): Remove declaration.
1370 (ada_in_variant): Remove declaration.
1371 (ada_value_struct_elt): Remove declaration.
1372 (ada_attribute_name): Remove declaration.
1373 (ada_system_address_type): Remove declaration.
1374 * ada-lang.c (ada_watch_location_expression): Make static.
1375 (GROW_VECT): Move here from ada-lang.h.
1376 (grow_vect): Make static.
1377 (ada_update_initial_language): Make static.
1378 (ada_fold_name): Make static.
1379 (ada_type_of_array): Make static.
1380 (encoded_ordered_before): Move up.
1381 (sort_choices): Move up.
1382 (print_signatures): Move up.
1383 (ada_print_symbol_signature): Move up.
1384 (get_selections): Move up and make static.
1385 (user_select_syms): Move up and make static.
1386 (ada_value_struct_elt): Move up and make static.
1387 (ada_tag_type): Make static.
1388 (ada_value_tag): Make static.
1389 (ada_is_others_clause): Make static.
1390 (ada_in_variant): Make static.
1391 (ada_attribute_name): Make static.
1392
1393 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * ada-lang.c: Remove includes.
1396 * ada-typeprint.c: Remove includes.
1397 * ada-valprint.c: Remove includes.
1398
1399 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * addrmap.c: Add static assertions of type size, moved from
1402 _initialize_addrmap.
1403 (_initialize_addrmap): Remove.
1404
1405 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1406
1407 * coffread.c (record_minimal_symbol): Update.
1408 (process_coff_symbol): Update.
1409 * dbxread.c (read_dbx_symtab): Update.
1410 * dwarf2read.c (add_partial_symbol): Update.
1411 (fixup_go_packaging): Update.
1412 (load_partial_dies): Update.
1413 (new_symbol): Update.
1414 * elfread.c (record_minimal_symbol): Change signature to use
1415 gdb::string_view instead of name+len.
1416 (elf_symtab_read): Update.
1417 (elf_rel_plt_read): Update.
1418 * mdebugread.c (parse_partial_symbols): Update.
1419 (handle_psymbol_enumerators): Update.
1420 (new_symbol): Update.
1421 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1422 to use gdb::string_view instead of name+len.
1423 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1424 * psympriv.h (add_psymbol_to_list): Likewise.
1425 * psymtab.c (add_psymbol_to_bcache): Likewise.
1426 (add_psymbol_to_list): Likewise.
1427 * stabsread.c (define_symbol): Update.
1428 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1429 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1430 (symbol_set_names): Likewise.
1431 * xcoffread.c (scan_xcoff_symtab): Update.
1432
1433 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1434
1435 * symtab.h (symbol_set_names): Document that copy_name must be
1436 set to true for non-nullterminated strings.
1437 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1438 linkage_name if the entry was not found and we need to demangle.
1439
1440 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1441
1442 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1443 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1444 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1445 * gdbsupport/gdb_binary_search.h: New file.
1446
1447 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1448
1449 * NEWS: Mention new --with-system-gdbinit-dir option.
1450 * config.in: Regenerate.
1451 * configure: Regenerate.
1452 * configure.ac: Add new option --with-system-gdbinit-dir.
1453 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1454 for a ".gdb" suffix.
1455 * main.c (get_init_files): Change system_gdbinit argument to
1456 a vector and return the files in SYSTEM_GDBINIT_DIR in
1457 addition to SYSTEM_GDBINIT.
1458 (captured_main_1): Update.
1459 (print_gdb_help): Update.
1460 * top.c (print_gdb_configuration): Also print the value of
1461 SYSTEM_GDBINIT_DIR.
1462
1463 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1464
1465 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1466 that takes gdb::string_view arguments.
1467
1468 2019-10-26 Tom de Vries <tdevries@suse.de>
1469
1470 * aarch64-linux-tdep.c: Fix typos in comments.
1471 * aarch64-tdep.c: Same.
1472 * ada-lang.c: Same.
1473 * amd64-nat.c: Same.
1474 * arc-tdep.c: Same.
1475 * arch/aarch64-insn.c: Same.
1476 * block.c: Same.
1477 * breakpoint.h: Same.
1478 * btrace.h: Same.
1479 * c-varobj.c: Same.
1480 * cli/cli-decode.c: Same.
1481 * cli/cli-script.c: Same.
1482 * cli/cli-utils.h: Same.
1483 * coff-pe-read.c: Same.
1484 * coffread.c: Same.
1485 * compile/compile-cplus-symbols.c: Same.
1486 * compile/compile-object-run.c: Same.
1487 * completer.c: Same.
1488 * corelow.c: Same.
1489 * cp-support.c: Same.
1490 * demangle.c: Same.
1491 * dwarf-index-write.c: Same.
1492 * dwarf2-frame.c: Same.
1493 * dwarf2-frame.h: Same.
1494 * eval.c: Same.
1495 * frame-base.h: Same.
1496 * frame.h: Same.
1497 * gdbcmd.h: Same.
1498 * gdbtypes.h: Same.
1499 * gnu-nat.c: Same.
1500 * guile/scm-objfile.c: Same.
1501 * i386-tdep.c: Same.
1502 * i386-tdep.h: Same.
1503 * infcall.c: Same.
1504 * infcall.h: Same.
1505 * linux-nat.c: Same.
1506 * m68k-tdep.c: Same.
1507 * macroexp.c: Same.
1508 * memattr.c: Same.
1509 * mi/mi-cmd-disas.c: Same.
1510 * mi/mi-getopt.h: Same.
1511 * mi/mi-main.c: Same.
1512 * minsyms.c: Same.
1513 * nat/aarch64-sve-linux-sigcontext.h: Same.
1514 * objfiles.h: Same.
1515 * ppc-linux-nat.c: Same.
1516 * ppc-linux-tdep.c: Same.
1517 * ppc-tdep.h: Same.
1518 * progspace.h: Same.
1519 * prologue-value.h: Same.
1520 * python/py-evtregistry.c: Same.
1521 * python/py-instruction.h: Same.
1522 * record-btrace.c: Same.
1523 * record-full.c: Same.
1524 * remote.c: Same.
1525 * rs6000-tdep.c: Same.
1526 * ser-tcp.c: Same.
1527 * sol-thread.c: Same.
1528 * sparc-sol2-tdep.c: Same.
1529 * sparc64-tdep.c: Same.
1530 * stabsread.c: Same.
1531 * symfile.c: Same.
1532 * symtab.h: Same.
1533 * target.c: Same.
1534 * tracepoint.c: Same.
1535 * tui/tui-data.h: Same.
1536 * tui/tui-io.c: Same.
1537 * tui/tui-win.c: Same.
1538 * tui/tui.c: Same.
1539 * unittests/rsp-low-selftests.c: Same.
1540 * user-regs.h: Same.
1541 * utils.c: Same.
1542 * utils.h: Same.
1543 * valarith.c: Same.
1544 * valops.c: Same.
1545 * valprint.c: Same.
1546 * valprint.h: Same.
1547 * value.c: Same.
1548 * value.h: Same.
1549 * varobj.c: Same.
1550 * x86-nat.h: Same.
1551 * xtensa-tdep.c: Same.
1552
1553 2019-10-25 Ali Tamur <tamur@google.com>
1554
1555 * charset.c (find_charset_names): Reflect API change.
1556
1557 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1558
1559 * symtab.c (struct demangled_name_entry): Change demangled name
1560 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1561 part of the struct anymore.
1562 (symbol_set_names): No longer obstack allocate + copy the demangled
1563 name, just store the allocated name from bfd.
1564
1565 2019-10-25 Tom Tromey <tromey@adacore.com>
1566
1567 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1568 (bsearch_cie_cmp, add_cie): Remove.
1569 (find_cie): Reimplement.
1570 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1571 (dwarf2_build_frame_info): Update.
1572
1573 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1574
1575 PR gdb/25126
1576 * symfile.c (reread_symbols): Call forget_cached_source_info to
1577 clear the stale source cache.
1578
1579 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1580
1581 * configure: Regenerate.
1582 * configure.ac: Remove code that sets python_has_threads.
1583
1584 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1585
1586 * config.in: Regenerate.
1587 * configure: Regenerate.
1588 * configure.ac: Remove the code that uses sed to get the python
1589 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1590
1591 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1594 error paths.
1595
1596 2019-10-23 Tom Tromey <tom@tromey.com>
1597
1598 * arc-tdep.c: Remove ".." from include.
1599 * frv-tdep.c: Remove ".." from include.
1600 * lm32-tdep.c: Remove ".." from include.
1601 * microblaze-tdep.c: Remove ".." from include.
1602 * or1k-tdep.h: Remove ".." from include.
1603 * s12z-tdep.c: Remove ".." from include.
1604 * Makefile.in (OPCODES_CFLAGS): Add comment.
1605 (TOP_CFLAGS): New variable.
1606 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1607
1608 2019-10-23 Tom Tromey <tom@tromey.com>
1609
1610 * Makefile.in (READLINE_DIR): Update.
1611
1612 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1613
1614 * infcall.c (call_function_by_hand_dummy): Fix the function
1615 comment. And extract out a code section into...
1616 (reserve_stack_space): ...this new function.
1617
1618 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1619
1620 * infcall.c (value_arg_coerce): Remove an unused parameter.
1621 (call_function_by_hand_dummy): Update the call to
1622 'value_arg_coerce'.
1623
1624 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1625
1626 * infcall.c (call_function_by_hand_dummy): Refactor.
1627
1628 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1629
1630 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1631
1632 2019-10-23 Tom Tromey <tom@tromey.com>
1633
1634 * configure: Rebuild.
1635 * configure.ac: Don't check for sigprocmask.
1636 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1637
1638 2019-10-23 Tom Tromey <tom@tromey.com>
1639
1640 * configure: Rebuild.
1641 * acinclude.m4: Use m4_include, not sinclude.
1642
1643 2019-10-23 Tom de Vries <tdevries@suse.de>
1644
1645 PR breakpoints/24687
1646 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1647
1648 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1649
1650 * symtab.c (struct demangled_name_entry) <language>: Change from
1651 bitfield to regular variable.
1652
1653 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1654
1655 * symtab.c (struct demangled_name_entry): Add a constructor.
1656 (free_demangled_name_entry): New function to call the destructor
1657 for demangled_name_entry.
1658 (create_demangled_names_hash): Pass free_demangled_name_entry to
1659 htab_create_alloc.
1660 (symbol_set_names): Call placement new for demangled_name_entry.
1661 * utils.c: No longer include xxhash.h here, now that fast_hash
1662 is inlined in the header.
1663 * utils.h: Instead, include it here.
1664
1665 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1666
1667 * Makefile.in: Link with libxxhash.
1668 * config.in: Regenerate.
1669 * configure: Regenerate.
1670 * configure.ac: Search for libxxhash.
1671 * utils.c (fast_hash): Use xxhash if present.
1672
1673 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1674
1675 * utils.h (fast_hash): New function.
1676 * symtab.c (hash_demangled_name_entry): Call new function
1677 fast_hash.
1678
1679 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1680
1681 * symtab.c (struct demangled_name_entry): Change type of mangled
1682 to gdb::string_view. Also adds a constructor that takes the
1683 mangled name.
1684 (hash_demangled_name_entry): Update.
1685 (eq_demangled_name_entry): Update.
1686 (free_demangled_name_entry): New function to call the destructor
1687 now that this is not a POD anymore.
1688 (create_demangled_names_hash): Pass free_demangled_name_entry to
1689 htab_create_alloc.
1690 (symbol_set_names): Update.
1691
1692 2019-10-21 Ali Tamur <tamu@google.com>
1693
1694 * dwarf2read.c (dir_index): Change type.
1695 (file_name_index): Likewise.
1696 (line_header::include_dir_at): Change comment and implementation on
1697 whether it is DWARF 5.
1698 (line_header::is_valid_file_index): New function.
1699 (line_header::file_name_at): Change comment and implementation on
1700 whether it is DWARF 5.
1701 (line_header::file_names): Change to private field renamed as
1702 m_file_names and introduce a new accessor method.
1703 (line_header::file_names_size): New method.
1704 (line_header::include_dirs): Change to private field and rename as
1705 m_include_dirs.
1706 (dw2_get_file_names_reader): Define local var at a smaller scope and
1707 reflect API change.
1708 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1709 (process_structure_scope): Likewise.
1710 (line_header::add_include_dir): Change message and reflect renaming.
1711 (line_header::add_file_name): Likewise.
1712 (read_formatted_entries): Handle DW_FORM_data16.
1713 (dwarf_decode_line_header): Fix line header length calculation.
1714 (psymtab_include_file_name): Change comment and API.
1715 (lnp_state_machine::m_file): Update comment and reflect type change.
1716 (lnp_state_machine::record_line): Reflect type change.
1717 (dwarf_decode_lines): Reflect API change.
1718 (file_file_name): Likewise.
1719 (file_full_name): Likewise.
1720
1721 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1724
1725 2019-10-21 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1728
1729 2019-10-21 Tom Tromey <tom@tromey.com>
1730
1731 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1732 NM_H. Use AC_CONFIG_LINKS.
1733 * configure: Rebuild.
1734 * Makefile.in (NM_H): New variable.
1735 (generated_files): Add NM_H. Remove gcore.
1736 (nm.h, stamp-nmh): New targets.
1737
1738 2019-10-20 Tom Tromey <tom@tromey.com>
1739
1740 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1741 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1742 obsolete comment.
1743 (put_objfile_before): Now static.
1744
1745 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * gdbsupport/common-utils.h (startswith): Change return type to
1748 bool.
1749
1750 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1751
1752 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1753 * breakpoint.c (bp_locations_compare): Rename to...
1754 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1755 (update_global_location_list): Use std::sort instead of qsort.
1756 * buildsym.c (compare_line_numbers): Rename to...
1757 (lte_is_less_than): ...this, and change to std::sort semantics.
1758 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1759 instead of qsort.
1760 * disasm.c (compare_lines): Rename to...
1761 (line_is_less_than): ...this, and change to std::sort semantics.
1762 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1763 of qsort.
1764 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1765 (fde_is_less_than): ...this, and change to std::sort semantics.
1766 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1767 * mdebugread.c (compare_blocks):
1768 (block_is_less_than): ...this, and change to std::sort semantics.
1769 (sort_blocks): Call std::sort instead of qsort.
1770 * objfiles.c (qsort_cmp): Rename to...
1771 (sort_cmp): ...this, and change to std::sort semantics.
1772 (update_section_map): Call std::sort instead of qsort.
1773 * remote.c (compare_pnums): Remove.
1774 (map_regcache_remote_table): Call std::sort instead of qsort.
1775 * utils.c (compare_positive_ints): Remove.
1776 * utils.h (compare_positive_ints): Remove.
1777 * xcoffread.c (compare_lte): Remove.
1778 (arrange_linetable): Call std::sort instead of qsort.
1779
1780 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1781
1782 * symfile.c (init_entry_point_info): Fix typo.
1783 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1784
1785 2019-10-18 Tom de Vries <tdevries@suse.de>
1786
1787 * aarch64-tdep.c: Fix typos in comments.
1788 * ada-lang.c: Same.
1789 * ada-tasks.c: Same.
1790 * alpha-tdep.c: Same.
1791 * alpha-tdep.h: Same.
1792 * amd64-nat.c: Same.
1793 * amd64-windows-tdep.c: Same.
1794 * arc-tdep.c: Same.
1795 * arc-tdep.h: Same.
1796 * arch-utils.c: Same.
1797 * arm-nbsd-tdep.c: Same.
1798 * arm-tdep.c: Same.
1799 * ax-gdb.c: Same.
1800 * blockframe.c: Same.
1801 * btrace.c: Same.
1802 * c-varobj.c: Same.
1803 * coff-pe-read.c: Same.
1804 * coffread.c: Same.
1805 * cris-tdep.c: Same.
1806 * darwin-nat.c: Same.
1807 * dbxread.c: Same.
1808 * dcache.c: Same.
1809 * disasm.c: Same.
1810 * dtrace-probe.c: Same.
1811 * dwarf-index-write.c: Same.
1812 * dwarf2-frame-tailcall.c: Same.
1813 * dwarf2-frame.c: Same.
1814 * dwarf2read.c: Same.
1815 * eval.c: Same.
1816 * exceptions.c: Same.
1817 * fbsd-tdep.c: Same.
1818 * findvar.c: Same.
1819 * frame.c: Same.
1820 * frv-tdep.c: Same.
1821 * gnu-v3-abi.c: Same.
1822 * go32-nat.c: Same.
1823 * h8300-tdep.c: Same.
1824 * hppa-tdep.c: Same.
1825 * i386-linux-tdep.c: Same.
1826 * i386-tdep.c: Same.
1827 * ia64-libunwind-tdep.c: Same.
1828 * ia64-tdep.c: Same.
1829 * infcmd.c: Same.
1830 * infrun.c: Same.
1831 * linespec.c: Same.
1832 * linux-nat.c: Same.
1833 * linux-thread-db.c: Same.
1834 * machoread.c: Same.
1835 * mdebugread.c: Same.
1836 * mep-tdep.c: Same.
1837 * mn10300-tdep.c: Same.
1838 * namespace.c: Same.
1839 * objfiles.c: Same.
1840 * opencl-lang.c: Same.
1841 * or1k-tdep.c: Same.
1842 * osabi.c: Same.
1843 * ppc-linux-nat.c: Same.
1844 * ppc-linux-tdep.c: Same.
1845 * ppc-sysv-tdep.c: Same.
1846 * printcmd.c: Same.
1847 * procfs.c: Same.
1848 * record-btrace.c: Same.
1849 * record-full.c: Same.
1850 * remote-fileio.c: Same.
1851 * remote.c: Same.
1852 * rs6000-tdep.c: Same.
1853 * s12z-tdep.c: Same.
1854 * score-tdep.c: Same.
1855 * ser-base.c: Same.
1856 * ser-go32.c: Same.
1857 * skip.c: Same.
1858 * sol-thread.c: Same.
1859 * solib-svr4.c: Same.
1860 * solib.c: Same.
1861 * source.c: Same.
1862 * sparc-nat.c: Same.
1863 * sparc-sol2-tdep.c: Same.
1864 * sparc-tdep.c: Same.
1865 * sparc64-tdep.c: Same.
1866 * stabsread.c: Same.
1867 * stack.c: Same.
1868 * symfile.c: Same.
1869 * symtab.c: Same.
1870 * target-descriptions.c: Same.
1871 * target-float.c: Same.
1872 * thread.c: Same.
1873 * utils.c: Same.
1874 * valops.c: Same.
1875 * valprint.c: Same.
1876 * value.c: Same.
1877 * varobj.c: Same.
1878 * windows-nat.c: Same.
1879 * xcoffread.c: Same.
1880 * xstormy16-tdep.c: Same.
1881 * xtensa-tdep.c: Same.
1882
1883 2019-10-17 Tom Tromey <tromey@adacore.com>
1884
1885 * configure: Rebuild.
1886 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1887 in AC_CONFIG_FILES invocation.
1888 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1889 new-style config.status invocation.
1890
1891 2019-10-17 Tom de Vries <tdevries@suse.de>
1892
1893 * arm-nbsd-nat.c: Fix typos in comments.
1894 * arm-tdep.c: Same.
1895 * darwin-nat-info.c: Same.
1896 * dwarf2read.c: Same.
1897 * elfread.c: Same.
1898 * event-top.c: Same.
1899 * findvar.c: Same.
1900 * gdbtypes.c: Same.
1901 * hppa-tdep.c: Same.
1902 * i386-tdep.c: Same.
1903 * jit.c: Same.
1904 * main.c: Same.
1905 * mdebugread.c: Same.
1906 * moxie-tdep.c: Same.
1907 * nto-procfs.c: Same.
1908 * osabi.c: Same.
1909 * ppc-linux-tdep.c: Same.
1910 * remote.c: Same.
1911 * riscv-tdep.c: Same.
1912 * s390-tdep.c: Same.
1913 * sh-tdep.c: Same.
1914 * sparc-linux-tdep.c: Same.
1915 * sparc-nat.c: Same.
1916 * stack.c: Same.
1917 * target-descriptions.c: Same.
1918 * top.c: Same.
1919 * varobj.c: Same.
1920
1921 2019-10-16 Tom Tromey <tom@tromey.com>
1922
1923 * objfiles.h (struct objfile) <original_name>: Now const.
1924
1925 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1926
1927 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1928 pass on to sigsetjmp's second argument.
1929 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1930
1931 2019-10-16 Keith Seitz <keiths@redhat.com>
1932
1933 PR gdb/23567
1934 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1935 sections whose size is greater than the file size.
1936
1937 2019-10-16 Jim Wilson <jimw@sifive.com>
1938
1939 * riscv-tdep.c (riscv_gcc_target_options): New.
1940 (riscv_gnu_triplet_regexp): New.
1941 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1942 set_gdbarch_gnu_triplet_regexp.
1943
1944 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1945
1946 * Makefile.in: Add xml-builtin.h.
1947 * features/feature_to_c.sh: Add an include for xml-builtin.h
1948 to ensure that the compiler checks that the types match.
1949 * xml-builtin.h: New file.
1950 * xml-support.c (fetch_xml_builtin): Add missing const.
1951 * xml-support.h: Remove declaration of xml_builtins.
1952
1953 2019-10-16 Tom de Vries <tdevries@suse.de>
1954
1955 PR tdep/25096
1956 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1957 (amd64_classify_aggregate): ... here.
1958 (amd64_classify_aggregate_field): Handled fiels of nested structs
1959 recursively.
1960
1961 2019-10-16 Tom de Vries <tdevries@suse.de>
1962
1963 PR tdep/24104
1964 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1965 that handles 'theclass'.
1966
1967 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * linespec.c (decode_digits_ordinary): Update comment.
1970 * make-target-delegates: No longer need to handle VEC case.
1971 * memrange.c (normalize_mem_ranges): Update comment.
1972 * namespace.c (add_using_directive): Update comment.
1973 * objc-lang.c (uniquify_strings): Update comment.
1974 * ppc-linux-nat.c (struct thread_points): Update comment.
1975 * probe.h (find_probes_in_objfile): Update comment.
1976 * target.h (enum flash_preserve_mode): Update comment.
1977 * varobj.c (varobj_restrict_range): Update comment.
1978 * varobj.h (varobj_list_children): Update comment.
1979
1980 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * Makefile.in: Remove references to vec.h and vec.c.
1983 * aarch64-tdep.c: No longer include vec.h.
1984 * ada-lang.c: Likewise.
1985 * ada-lang.h: Likewise.
1986 * arm-tdep.c: Likewise.
1987 * ax.h: Likewise.
1988 * breakpoint.h: Likewise.
1989 * charset.c: Likewise.
1990 * cp-support.h: Likewise.
1991 * dtrace-probe.c: Likewise.
1992 * dwarf2read.c: Likewise.
1993 * extension.h: Likewise.
1994 * gdb_bfd.c: Likewise.
1995 * gdbsupport/gdb_vecs.h: Likewise.
1996 * gdbsupport/vec.c: Remove.
1997 * gdbsupport/vec.h: Remove.
1998 * gdbthread.h: Likewise.
1999 * guile/scm-type.c: Likewise.
2000 * inline-frame.c: Likewise.
2001 * machoread.c: Likewise.
2002 * memattr.c: Likewise.
2003 * memrange.h: Likewise.
2004 * namespace.h: Likewise.
2005 * nat/linux-btrace.h: Likewise.
2006 * osdata.c: Likewise.
2007 * parser-defs.h: Likewise.
2008 * progspace.h: Likewise.
2009 * python/py-type.c: Likewise.
2010 * record-btrace.c: Likewise.
2011 * rust-exp.y: Likewise.
2012 * solib-target.c: Likewise.
2013 * stap-probe.c: Likewise.
2014 * target-descriptions.c: Likewise.
2015 * target-memory.c: Likewise.
2016 * target.h: Likewise.
2017 * varobj.c: Likewise.
2018 * varobj.h: Likewise.
2019 * xml-support.h: Likewise.
2020
2021 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2024 Update for new std::vector based implementation.
2025 (process_psymtab_comp_unit_reader): Likewise.
2026 (scan_partial_symbols): Likewise.
2027 (recursively_compute_inclusions): Likewise.
2028 (compute_compunit_symtab_includes): Likewise.
2029 (process_imported_unit_die): Likewise.
2030 (queue_and_load_dwo_tu): Likewise.
2031 (follow_die_sig_1): Likewise.
2032 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2033 (typedef dwarf2_per_cu_ptr): Remove.
2034 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2035 function.
2036 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2037 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2038 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2039 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2040 std::vector.
2041
2042 2019-10-15 Tom Tromey <tromey@adacore.com>
2043
2044 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2045 TID.
2046
2047 2019-10-15 Tom Tromey <tromey@adacore.com>
2048
2049 * windows-nat.c (windows_nat_target::fetch_registers)
2050 (windows_nat_target::store_registers): Rename "pid" to "tid".
2051
2052 2019-10-15 Tom Tromey <tromey@adacore.com>
2053
2054 * gdbarch.h, gdbarch.c: Rebuild.
2055 * gdbarch.sh (gcc_target_options): Change return type to
2056 std::string.
2057 * compile/compile.c (get_args): Update.
2058 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2059 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2060 std::string.
2061 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2062 std::string.
2063 * arch-utils.c (default_gcc_target_options): Return std::string.
2064 * arch-utils.h (default_gcc_target_options): Return std::string.
2065 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2066
2067 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2068
2069 * breakpoint.c (breakpoint_chain): Make static.
2070 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2071 of accessing breakpoint_chain.
2072
2073 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2074
2075 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2076 to a gdb::function_view and return value to bool.
2077 * breakpoint.h (iterate_over_breakpoints): Likewise.
2078 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2079 (pop_dummy_frame): Update.
2080 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2081 (gdbscm_breakpoints): Update.
2082 * python/py-breakpoint.c (build_bp_list): Update.
2083 (gdbpy_breakpoints): Update.
2084 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2085 Update.
2086 (bpfinishpy_handle_stop): Update.
2087 (bpfinishpy_handle_exit): Update.
2088 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2089 (svr4_update_solib_event_breakpoints): Update.
2090
2091 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2092
2093 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2094 when unwrapping single-field structs.
2095
2096 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * dwarf2read.c: Remove includes.
2099
2100 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2101
2102 * ui-out.c (ui_out::call_do_message): Silence
2103 -Wformat-nonliteral warning.
2104
2105 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2108 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2109 include: readline/tilde.h.
2110
2111 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2112
2113 * remote.c (remote_target::get_trace_status): Remove declaration of
2114 trace_regblock_size.
2115
2116 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2117
2118 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2119 (show_user): Remove declaration of cmdlist.
2120 * cli/cli-cmds.h (max_user_call_depth): Declare.
2121 * cli/cli-script.c (execute_user_command): Remove declaration
2122 of max_user_call_depth.
2123
2124 2019-10-11 Jim Wilson <jimw@sifive.com>
2125
2126 * gdbsupport/print-utils.h (pulongest): Fix comment.
2127 (plongest): Likewise.
2128 (phex): Add missing comment, mention leading zeros.
2129 (phex_nz): Add mention of no leading zeros to comment.
2130
2131 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2132 plongest instead of unsigned long long cast.
2133
2134 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2135
2136 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2137 for external_editor_command and gdbtk_test.
2138
2139 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2140
2141 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2142 * varobj.c (varobjdebug): Move comment to...
2143 * varobj.h (varobjdebug): ...here, and declare.
2144
2145 2019-10-09 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2148 erase_data_content.
2149
2150 2019-10-09 Tom Tromey <tom@tromey.com>
2151
2152 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2153 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2154 * tui/tui-command.c (tui_cmd_window::resize)
2155 (tui_refresh_cmd_win): Update.
2156 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2157 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2158 * tui/tui-data.c (~tui_gen_win_info): Remove.
2159 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2160 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2161 (tui_redisplay_readline, tui_mld_flush)
2162 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2163 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2164 (tui_data_window::erase_data_content)
2165 (tui_data_item_window::rerender)
2166 (tui_data_item_window::refresh_window): Update.
2167 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2168 (box_win, tui_gen_win_info::make_window)
2169 (tui_gen_win_info::make_visible): Update.
2170 (tui_delete_win): Remove.
2171 * tui/tui-winsource.c
2172 (tui_source_window_base::do_erase_source_content): Update.
2173 (tui_show_source_line, tui_source_window_base::update_tab_width)
2174 (tui_source_window_base::update_exec_info): Update.
2175 * tui/tui-data.h (struct curses_deleter): New.
2176 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2177 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2178
2179 2019-10-09 Tom Tromey <tom@tromey.com>
2180
2181 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2182
2183 2019-10-09 Tom Tromey <tom@tromey.com>
2184
2185 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2186 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2187
2188 2019-10-09 Tom Tromey <tom@tromey.com>
2189
2190 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2191 window height directly.
2192 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2193 declare.
2194 * tui/tui-layout.c (tui_default_win_height): Remove.
2195 (tui_default_win_viewport_height): Remove.
2196
2197 2019-10-09 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui.h: Remove comments.
2200
2201 2019-10-09 Tom de Vries <tdevries@suse.de>
2202
2203 * python/lib/gdb/printer/bound_registers.py: Use
2204 '^builtin_type_bound128' as regexp argument for
2205 add_builtin_pretty_printer.
2206
2207 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2208
2209 * guile/guile.c (guile_extension_script_ops): Remove forward
2210 declaration and mark as static.
2211 (guile_script_ops): Likewise.
2212 (extension_language_guile): Move further down in the file so
2213 it can reference the definitions for guile_{extension_,}script_ops.
2214
2215 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2216
2217 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2218 except SORTL, DFLTCC, and KDSA.
2219
2220 2019-10-08 Tom Tromey <tromey@adacore.com>
2221
2222 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2223 (struct safe_symbol_file_add_args): Remove.
2224
2225 2019-10-08 Tom Tromey <tromey@adacore.com>
2226
2227 * windows-nat.c: Don't include buildsym-legacy.h.
2228
2229 2019-10-08 Tom Tromey <tromey@adacore.com>
2230
2231 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2232
2233 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2234
2235 * gdbtypes.c (overload_debug): Move comment to header.
2236 * gdbtypes.h (overload_debug): Declare.
2237 * valops.c: Remove declaration of overload_debug, instead
2238 include gdbtypes.h.
2239
2240 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2241
2242 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2243 through _().
2244 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2245 move comment...
2246 * language.h (lang_frame_mismatch_warn): ... here. Also add
2247 declaration.
2248 * top.c (lang_frame_mismatch_warn): Remove declaration.
2249 (check_frame_language_change): Pass lang_frame_mismatch_warn
2250 through _().
2251
2252 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2253
2254 * c-lang.h (vtbl_ptr_name): Declare.
2255 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2256 it from the header.
2257 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2258
2259 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2260
2261 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2262 gdb_static_assert.
2263
2264 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2265
2266 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2267 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2268 * ctfread.c: New file.
2269 * ctfread.h: New file.
2270 * elfread.c: Include ctfread.h.
2271 (struct elfinfo text_p): New member ctfsect.
2272 (elf_locate_sections): Mark CTF section.
2273 (elf_symfile_read): Call elfctf_build_psymtabs.
2274 * Makefile.in (LIBCTF): Add.
2275 (CLIBS): Use it.
2276 (CDEPS): Likewise.
2277 (DIST): Add ctfread.c.
2278
2279 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * ctfread.c (struct nextfield): Renamed to ...
2282 (struct ctf_nextfield): ... this.
2283 (struct field_info): Renamed to ...
2284 (strut ctf_field_info): ... this.
2285 (attach_fields_to_type): Update for renamed structures.
2286 (ctf_add_member_cb): Likewise.
2287 (ctf_add_enum_member_cb): Likewise.
2288 (process_struct_members): Likewise.
2289 (process_enum_type): Likewise.
2290
2291 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2292
2293 * tracectf.h: Rename, was ctf.h.
2294 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2295 * tracefile.c: Likewise.
2296 * tracepoint.c: Remove unused include ctf.h.
2297 * mi/mi-main.c: Likewise.
2298 * Makefile.in Replace ctf.c with tracectf.c.
2299
2300 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2301
2302 * version.in: Change version number to "9.0.50.DATE-git".
2303
2304 2019-10-03 Tom Tromey <tom@tromey.com>
2305
2306 PR rust/24976:
2307 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2308
2309 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2312 cp_search_name_hash.
2313 * NEWS: Add entry about nested function support.
2314
2315 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2316 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2319 for nested static variables when searchin VAR_DOMAIN.
2320 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2321 global scope, update comment.
2322 (add_partial_subprogram): Call add_partial_subprogram recursively
2323 for nested subroutines when processinng Fortran.
2324 (load_partial_dies): Process the child entities of a subprogram
2325 when processing Fortran.
2326 (partial_die_parent_scope): Handle building scope
2327 for Fortran nested functions.
2328 (process_die): Record that nested functions have a scope.
2329 (new_symbol): Always record Fortran subprograms on the global
2330 symbol list.
2331 (determine_prefix): How to build the prefix for Fortran
2332 subprograms.
2333
2334 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2337 have just sent the thread a SIGSTOP and are waiting for it to
2338 arrive.
2339
2340 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2341
2342 * btrace.c (btrace_add_pc): Remove whitespace before the template
2343 parameter in 'std::vector <...>'.
2344 (parse_xml_btrace_block): Likewise.
2345 (btrace_maint_decode_pt): Likewise.
2346 (btrace_maint_update_packets): Likewise.
2347 (btrace_maint_print_packets): Likewise.
2348 * btrace.h (struct btrace_maint_info): Likewise.
2349 * dwarf2read.c (struct type_unit_group): Likewise.
2350 (build_type_psymtabs_reader): Likewise.
2351 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2352 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2353 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2354
2355 2019-10-03 Tom de Vries <tdevries@suse.de>
2356
2357 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2358 the first line of the help text for set/show style metadata.
2359
2360 2019-10-02 Tom Tromey <tromey@adacore.com>
2361
2362 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2363 * gdbsupport/common-inferior.c: New file.
2364 * infcmd.c (startup_with_shell): Don't define.
2365 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2366 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2367 * inferior.h (startup_with_shell): Don't declare.
2368
2369 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2370
2371 * gdbsupport/gdb_assert.h: Include errors.h.
2372 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2373
2374 2019-10-02 Tom Tromey <tromey@adacore.com>
2375
2376 * NEWS: Add $_ada_exception entry.
2377 * ada-lang.c (struct ada_catchpoint): Add constructor.
2378 <m_kind>: New member.
2379 (allocate_location_exception, re_set_exception): Remove
2380 "ex" parameter.
2381 (should_stop_exception): Compute $_ada_exception.
2382 (check_status_exception, print_it_exception)
2383 (print_one_exception, print_mention_exception): Remove
2384 "ex" parameter.
2385 (allocate_location_catch_exception, re_set_catch_exception)
2386 (check_status_exception, print_it_catch_exception)
2387 (print_one_catch_exception, print_mention_catch_exception)
2388 (print_recreate_catch_exception)
2389 (allocate_location_catch_exception_unhandled)
2390 (re_set_catch_exception_unhandled)
2391 (check_status_exception, print_it_catch_exception_unhandled)
2392 (print_one_catch_exception_unhandled)
2393 (print_mention_catch_exception_unhandled)
2394 (print_recreate_catch_exception_unhandled)
2395 (allocate_location_catch_assert, re_set_catch_assert)
2396 (check_status_assert, print_it_catch_assert)
2397 (print_one_catch_assert, print_mention_catch_assert)
2398 (print_recreate_catch_assert)
2399 (allocate_location_catch_handlers, re_set_catch_handlers)
2400 (check_status_handlers, print_it_catch_handlers)
2401 (print_one_catch_handlers, print_mention_catch_handlers)
2402 (print_recreate_catch_handlers): Remove.
2403 (create_ada_exception_catchpoint): Update.
2404 (initialize_ada_catchpoint_ops): Update.
2405
2406 2019-10-02 Tom Tromey <tromey@adacore.com>
2407
2408 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2409 (create_excep_cond_exprs): Simplify exception string computation.
2410 (ada_exception_catchpoint_cond_string): Likewise.
2411
2412 2019-10-02 Tom Tromey <tromey@adacore.com>
2413
2414 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2415 * ada-lang.c (lesseq_defined_than): Handle
2416 LOC_STATIC.
2417 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2418 parameter.
2419 (dwarf2_has_info): Likewise.
2420 (new_symbol): Set maybe_copied on symbol when
2421 appropriate.
2422 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2423 parameter.
2424 <can_copy>: New member.
2425 * elfread.c (record_minimal_symbol): Set maybe_copied
2426 on symbol when appropriate.
2427 (elf_symfile_read): Update call to dwarf2_has_info.
2428 * minsyms.c (lookup_minimal_symbol_linkage): New
2429 function.
2430 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2431 * symtab.c (get_symbol_address, get_msymbol_address):
2432 New functions.
2433 * symtab.h (get_symbol_address, get_msymbol_address):
2434 Declare.
2435 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2436 maybe_copied.
2437 (struct symbol, struct minimal_symbol) <maybe_copied>:
2438 New member.
2439
2440 2019-10-02 Tom Tromey <tromey@adacore.com>
2441
2442 * source.c (struct current_source_location): New.
2443 (current_source_key): New global.
2444 (current_source_symtab, current_source_line)
2445 (current_source_pspace): Remove.
2446 (get_source_location): New function.
2447 (get_current_source_symtab_and_line)
2448 (set_default_source_symtab_and_line)
2449 (set_current_source_symtab_and_line)
2450 (clear_current_source_symtab_and_line, select_source_symtab)
2451 (info_source_command, print_source_lines_base)
2452 (info_line_command, search_command_helper, _initialize_source):
2453 Update.
2454
2455 2019-10-02 Tom Tromey <tromey@adacore.com>
2456
2457 * source.c (select_source_symtab): Don't call
2458 decode_line_with_current_source.
2459
2460 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * symtab.c (lookup_global_symbol): Search global block.
2463
2464 2019-10-02 Tom Tromey <tromey@adacore.com>
2465
2466 * coffread.c (process_coff_symbol): Update.
2467 * dwarf2read.c (var_decode_location, new_symbol): Update.
2468 * mdebugread.c (parse_symbol): Update.
2469 * objfiles.c (relocate_one_symbol): Update.
2470 * stabsread.c (define_symbol, fix_common_block)
2471 (scan_file_globals): Update.
2472 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2473 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2474 * xcoffread.c (process_xcoff_symbol): Update.
2475
2476 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2477
2478 * MAINTAINERS: Update my email address.
2479
2480 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2483 std::vector.
2484 (build_type_psymtabs_reader): Update for std::vector.
2485 (build_type_psymtab_dependencies): Likewise.
2486 * dwarf2read.h: Remove use of DEF_VEC_P.
2487 (typedef sig_type_ptr): Delete.
2488
2489 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2492 to std::vector.
2493 (btrace_maint_decode_pt): Likewise, and move allocation of the
2494 vector outside of the loop.
2495 (btrace_maint_update_packets): Update to handle change from VEC to
2496 std::vector.
2497 (btrace_maint_print_packets): Likewise.
2498 (maint_info_btrace_cmd): Likewise.
2499 * btrace.h: Remove use of DEF_VEC_O.
2500 (typedef btrace_pt_packet_s): Delete.
2501 (struct btrace_maint_info) <packets>: Change fromm VEC to
2502 std::vector.
2503 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2504
2505 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2508 make accesses into the vector constant references.
2509 (btrace_add_pc): Update for std::vector.
2510 (btrace_stitch_bts): Likewise.
2511 (parse_xml_btrace_block): Likewise.
2512 (btrace_maint_update_packets): Likewise.
2513 (btrace_maint_print_packets): Likewise.
2514 (maint_info_btrace_cmd): Likewise.
2515 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2516 std::vector.
2517 (btrace_data::empty): Likewise.
2518 (btrace_data_append): Likewise.
2519 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2520 (typedef btrace_block_s): Delete.
2521 (struct btrace_block): Add constructor.
2522 (struct btrace_data_bts) <blocks>: Change to std::vector.
2523 * nat/linux-btrace.c (perf_event_read_bts): Update for
2524 std::vector.
2525 (linux_read_bts): Likewise.
2526
2527 2019-10-01 Tom Tromey <tom@tromey.com>
2528
2529 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2530
2531 2019-10-01 Tom Tromey <tom@tromey.com>
2532
2533 * stack.c (print_frame, info_frame_command_core): Use
2534 styled_string.
2535 * linux-thread-db.c (try_thread_db_load_1)
2536 (try_thread_db_load_from_pdir_1): Use styled_string.
2537 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2538 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2539 (maybe_print_unsupported_script_warning)
2540 (maybe_print_script_not_found_warning): Use styled_string.
2541 * ada-lang.c (user_select_syms): Use styled_string.
2542
2543 2019-10-01 Tom Tromey <tom@tromey.com>
2544
2545 * p-lang.c (pascal_printstr): Use metadata style.
2546 * value.c (show_convenience): Use metadata style.
2547 * valprint.c (valprint_check_validity, val_print_optimized_out)
2548 (val_print_not_saved, val_print_unavailable)
2549 (val_print_invalid_address, generic_val_print, val_print)
2550 (value_check_printable, val_print_array_elements): Use metadata
2551 style.
2552 * ui-out.h (class ui_out) <field_fmt>: New overload.
2553 <do_field_fmt>: Add style parameter.
2554 * ui-out.c (ui_out::field_fmt): New overload.
2555 * typeprint.c (type_print_unknown_return_type)
2556 (val_print_not_allocated, val_print_not_associated): Use metadata
2557 style.
2558 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2559 parameter.
2560 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2561 * tracepoint.c (tvariables_info_1): Use metadata style.
2562 * stack.c (print_frame_arg, print_frame_info, print_frame)
2563 (info_frame_command_core): Use metadata style.
2564 * skip.c (info_skip_command): Use metadata style.
2565 * rust-lang.c (rust_print_enum): Use metadata style.
2566 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2567 metadata style.
2568 * python/py-framefilter.c (py_print_single_arg): Use metadata
2569 style.
2570 * printcmd.c (do_one_display, print_variable_and_value): Use
2571 metadata style.
2572 * p-valprint.c (pascal_val_print)
2573 (pascal_object_print_value_fields): Use metadata style.
2574 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2575 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2576 parameter.
2577 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2578 * m2-valprint.c (m2_print_long_set): Use metadata style.
2579 * m2-typeprint.c (m2_print_type): Use metadata style.
2580 * infcmd.c (print_return_value_1): Use metadata style.
2581 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2582 * f-valprint.c (info_common_command_for_block): Use metadata
2583 style.
2584 * f-typeprint.c (f_type_print_base): Use metadata style.
2585 * expprint.c (print_subexp_standard): Use metadata style.
2586 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2587 * cli/cli-style.h (class cli_style_option): Add constructor.
2588 (metadata_style): Declare.
2589 * cli/cli-style.c (metadata_style): New global.
2590 (_initialize_cli_style): Register metadata style.
2591 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2592 parameter.
2593 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2594 * c-typeprint.c (c_type_print_base_struct_union)
2595 (c_type_print_base_1): Use metadata style.
2596 * breakpoint.c (watchpoint_value_print)
2597 (print_one_breakpoint_location): Use metadata style.
2598 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2599 style.
2600 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2601 style.
2602 * ada-valprint.c (val_print_packed_array_elements, printstr)
2603 (print_field_values, ada_val_print_ref, ada_val_print): Use
2604 metadata style.
2605 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2606 style.
2607 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2608 style.
2609 * ada-lang.c (user_select_syms): Use metadata style.
2610
2611 2019-10-01 Tom Tromey <tom@tromey.com>
2612
2613 * cli/cli-cmds.c (pwd_command): Style output.
2614
2615 2019-10-01 Pedro Alves <palves@redhat.com>
2616 Tom Tromey <tom@tromey.com>
2617
2618 * symtab.c (print_symbol_info): Use %ps.
2619 (print_msymbol_info): Use %ps.
2620 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2621 * printcmd.c (print_variable_and_value): Use %ps.
2622 * macrocmd.c (show_pp_source_pos): Use %ps.
2623 * infrun.c (print_exited_reason): Use ui_out::message.
2624 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2625 (describe_other_breakpoints): Use ui_out::message and new
2626 formats.
2627 (say_where): Use new formats.
2628 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2629 and new formats.
2630
2631 2019-10-01 Pedro Alves <palves@redhat.com>
2632 Tom Tromey <tom@tromey.com>
2633
2634 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2635 (test_gdb_formats): New function.
2636 (run_tests): Call it.
2637 (test_format_specifier): Update.
2638 * utils.h (fputs_filtered): Update comment.
2639 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2640 (fputs_styled_unfiltered): Declare.
2641 * utils.c (fputs_styled_unfiltered): New function.
2642 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2643 (vfprintf_filtered): Update.
2644 (vfprintf_unfiltered, vprintf_filtered): Update.
2645 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2646 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2647 disallow_ui_out_field>: New constants.
2648 (enum class field_kind): New.
2649 (struct base_field_s, struct signed_field_s): New.
2650 (signed_field): New function.
2651 (struct string_field_s): New.
2652 (string_field): New function.
2653 (struct styled_string_s): New.
2654 (styled_string): New function.
2655 (class ui_out) <message>: Add comment.
2656 <vmessage, call_do_message>: New methods.
2657 <do_message>: Add style parameter.
2658 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2659 methods.
2660 (ui_out::message): Rewrite.
2661 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2662 parameter.
2663 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2664 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2665 gdb_extensions parameter.
2666 (class format_piece): Add parameter to constructor.
2667 (n_int_args): New field.
2668 * gdbsupport/format.c (format_pieces::format_pieces): Add
2669 gdb_extensions parameter. Handle '*'.
2670 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2671 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2672 vfprintf_styled_no_gdbfmt.
2673 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2674 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2675 unfiltered output.
2676 * ui-style.h (struct ui_file_style) <ptr>: New method.
2677
2678 2019-10-01 Tom Tromey <tom@tromey.com>
2679
2680 * unittests/format_pieces-selftests.c: Update. Add final format.
2681 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2682 empty literal pieces.
2683
2684 2019-10-01 Tom Tromey <tom@tromey.com>
2685
2686 * ui-out.h (enum class ui_out_style_kind): Remove.
2687 (class ui_out) <field_string, field_stsream, do_field_string>:
2688 Change type of "style".
2689 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2690 (ui_out::field_string): Update.
2691 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2692 of "style".
2693 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2694 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2695 * stack.c (print_frame_arg, print_frame_info, print_frame):
2696 Update.
2697 * source.c (print_source_lines_base): Update.
2698 * solib.c (info_sharedlibrary_command): Update.
2699 * skip.c (info_skip_command): Update.
2700 * record-btrace.c (btrace_call_history_src_line)
2701 (btrace_call_history): Update.
2702 * python/py-framefilter.c (py_print_frame): Update.
2703 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2704 "style".
2705 * mi/mi-out.c (mi_ui_out::do_table_header)
2706 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2707 (mi_ui_out::do_field_string): Update.
2708 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2709 Update.
2710 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2711 "style".
2712 * cli-out.c (cli_ui_out::do_table_header)
2713 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2714 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2715 (cli_ui_out::do_field_fmt): Update.
2716 * breakpoint.c (print_breakpoint_location): Update.
2717 (update_static_tracepoint): Update.
2718
2719 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2720
2721 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2722 conversion of gdb_datadir.
2723 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2724 remove not needed c_str ().
2725
2726 2019-09-30 Ali Tamur <tamur@google.com>
2727
2728 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2729 (dwarf2_string_attr): Likewise.
2730
2731 2019-09-30 Ali Tamur <tamur@google.com>
2732
2733 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2734 (process_full_type_unit): Likewise.
2735 (dump_die_shallow): Likewise.
2736 (cu_debug_loc_section): Likewise.
2737
2738 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2739
2740 * minsyms.c (compare_minimal_symbols): Rename to...
2741 (minimal_symbol_is_less_than): ...this, and adjust to STL
2742 conventions (return bool, take arguments as references)
2743 (minimal_symbol_reader::install): Call std::sort instead
2744 of qsort.
2745
2746 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2747
2748 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2749 hash and why.
2750 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2751 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2752
2753 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2756 * psympriv.h (add_psymbol_to_list): Move comment here and update
2757 it.
2758
2759 2019-09-29 Tom de Vries <tdevries@suse.de>
2760
2761 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2762 Use $tmpdir/$(basename "$output_file").dwz instead of
2763 "${output_file}.dwz".
2764
2765 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 PR gdb/25045
2768 * hppa-linux-nat.c: Include gdbarch.h.
2769
2770 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2771
2772 * blockframe.c (find_pc_partial_function): Change return type to bool.
2773 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2774 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2775 (stub_gnu_ifunc_resolve_name): Likewise.
2776 * symtab.c (compare_filenames_for_search): Likewise.
2777 (compare_glob_filenames_for_search): Likewise.
2778 (matching_obj_sections): Likewise.
2779 (symbol_matches_domain): Likewise.
2780 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2781 (find_line_pc): Change return type to bool.
2782 (find_line_pc_range): Likewise.
2783 (producer_is_realview): Likewise.
2784 * symtab.h (symbol_matches_domain): Likewise.
2785 (find_pc_partial_function): Likewise.
2786 (find_pc_line_pc_range): Likewise.
2787 (in_gnu_ifunc_stub): Likewise.
2788 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2789 (find_line_pc): Likewise.
2790 (find_line_pc_range): Likewise.
2791 (matching_obj_sections): Likewise.
2792 (find_line_symtab): Change out parameter to bool.
2793 (producer_is_realview): Change return type to bool.
2794 (compare_filenames_for_search): Likewise.
2795 (compare_glob_filenames_for_search): Likewise.
2796
2797 2019-09-26 Tom Tromey <tom@tromey.com>
2798
2799 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2800 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2801 * gdb_usleep.h: Remove.
2802 * gdb_usleep.c: Remove.
2803 * utils.c: Don't include gdb_usleep.h.
2804
2805 2019-09-26 Tom Tromey <tromey@adacore.com>
2806
2807 * python/py-type.c (type_to_type_object): Call check_typedef
2808 for stub types.
2809
2810 2019-09-26 Tom Tromey <tom@tromey.com>
2811
2812 * utils.h (initialize_utils): Don't declare.
2813 * top.c (gdb_init): Don't call initialize_utils.
2814 * utils.c (initialize_utils): Remove. Move contents...
2815 (_initialize_utils): ... here.
2816
2817 2019-09-25 Tom Tromey <tom@tromey.com>
2818
2819 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2820 * utils.h (make_hex_string): Don't declare.
2821 * utils.c (make_hex_string): Remove.
2822
2823 2019-09-24 Tom de Vries <tdevries@suse.de>
2824
2825 PR gdb/23815
2826 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2827 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2828
2829 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2830
2831 * NEWS: Mention new simulator port for PRU.
2832
2833 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2834
2835 * ada-exp.y (write_object_remaining): Update.
2836 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2837 and eliminate the static buffer.
2838 (ada_decode_symbol): Update.
2839 (ada_la_decode): Update.
2840 (ada_sniff_from_mangled_name): Update.
2841 (is_valid_name_for_wild_match): Update.
2842 (ada_lookup_name_info::matches): Update and simplify.
2843 (name_matches_regex): Update.
2844 (ada_add_global_exceptions): Update.
2845 * ada-lang.h (ada_decode): Update signature.
2846 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2847 * dwarf-index-write.c (debug_names::insert): Update.
2848
2849 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2850
2851 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2852 formatting.
2853
2854 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2857 Change "nonzero" to "true" in documentation.
2858
2859 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2860
2861 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2862 (_initialize_darwin_solib): Don't set
2863 darwin_so_ops.lookup_lib_global_symbol.
2864 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2865 set_gdbarch_iterate_over_objfiles_in_search_order.
2866 (elf_lookup_lib_symbol): Rename to...
2867 (svr4_iterate_over_objfiles_in_search_order): this, and update
2868 to iterate semantics.
2869 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2870 * solib.c (solib_global_lookup): Remove.
2871 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2872 (solib_global_lookup): Remove.
2873 * symtab.c (lookup_global_or_static_symbol): Remove call to
2874 solib_global_lookup.
2875
2876 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2877
2878 * NEWS: Move entries about default MI version now being
2879 version 3, and about the GDB/MI fix for multi-location
2880 breakpoints to the "since GDB 8.3" section.
2881
2882 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2883
2884 GDB 8.3.1 released.
2885
2886 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2887
2888 * NEWS: Mention that Cell/B.E. debugging support was removed.
2889 * MAINTAINERS: Remove spu target.
2890
2891 * config/djgpp/fnchange.lst: Remove entries for removed files.
2892
2893 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2894 spu-multiarch.o, and spu-tdep.o.
2895 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2896 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2897 spu-multiarch.c, and spu-tdep.c.
2898 * spu-linux-nat.c: Remove file.
2899 * spu-multiarch.c: Remove file.
2900 * spu-tdep.c: Remove file.
2901 * spu-tdep.h: Remove file.
2902 * solib-spu.c: Remove file.
2903 * solib-spu.h: Remove file.
2904
2905 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2906 * configure.nat (spu-linux): Remove.
2907 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2908 solib-multiarch.o from gdb_target_obs.
2909 (spu*-*-*): Remove.
2910
2911 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2912 feature flag.
2913 (ppc_linux_no_features): Update.
2914 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2915 Cell/B.E. support.
2916 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2917 (tdesc_powerpc_cell64l): Likewise.
2918 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2919 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2920 Cell/B.E. support.
2921 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2922 Do not include "features/rs6000/powerpc-cell32l.c" or
2923 "features/rs6000/powerpc-cell64l.c".
2924 (ppc_linux_spu_section): Remove.
2925 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2926 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2927 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2928 (ppc_linux_spe_context_lookup): Remove.
2929 (ppc_linux_spe_context_inferior_created): Remove.
2930 (ppc_linux_spe_context_solib_loaded): Remove.
2931 (ppc_linux_spe_context_solib_unloaded): Remove.
2932 (ppc_linux_spe_context): Remove.
2933 (struct ppu2spu_cache): Remove.
2934 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2935 (struct ppu2spu_data): Remove.
2936 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2937 ppu2spu_unwind): Remove.
2938 (ppc_linux_init_abi): Remove Cell/B.E. support.
2939 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2940
2941 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2942 (rs6000/powerpc-cell64l-expedite): Likewise
2943 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2944 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2945 rs6000/powerpc-cell64l.xml.
2946 * features/rs6000/powerpc-cell32l.xml: Remove.
2947 * features/rs6000/powerpc-cell64l.xml: Likewise.
2948 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2949 * features/rs6000/powerpc-cell64l.c: Likewise.
2950 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2951 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2952 * regformats/reg-spu.dat: Remove.
2953
2954 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2955 * corelow.c (struct spuid_list): Remove.
2956 (add_to_spuid_list): Remove.
2957 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2958 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2959 (remote_protocol_features): Remove associated entries.
2960 (_initialize_remote): No longer initialize them.
2961 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2962 * linux-nat.c (SPUFS_MAGIC): Remove.
2963 (linux_proc_xfer_spu): Remove.
2964 (spu_enumerate_spu_ids): Remove.
2965 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2966 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2967 (linux_make_corefile_notes): No longer call it.
2968
2969 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2970 (cooked_write_test): Likewise.
2971
2972 2019-09-20 Tom Tromey <tom@tromey.com>
2973
2974 * NEWS: Mention case-sensitivity of TUI commands.
2975 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2976 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2977 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2978
2979 2019-09-20 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-source.c (tui_source_window::set_contents): Use
2982 make_unique_xstrdup.
2983 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2984 make_unique_xstrdup.
2985
2986 2019-09-20 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-data.c: Remove separator comments.
2989 * tui/tui-layout.c: Remove separator comments.
2990 * tui/tui-win.c: Remove separator comments.
2991 * tui/tui-wingeneral.c: Remove separator comments.
2992
2993 2019-09-20 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui.h (strcat_to_buf): Don't declare.
2996 * tui/tui.c (strcat_to_buf): Remove.
2997
2998 2019-09-20 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3001 from "fullname".
3002 * tui/tui-source.c (tui_source_window::set_contents)
3003 (tui_source_window::location_matches_p)
3004 (tui_source_window::maybe_update): Update.
3005
3006 2019-09-20 Tom Tromey <tom@tromey.com>
3007
3008 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3009 Update.
3010 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3011 prefix.
3012 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3013 (tui_data_window::line_from_reg_element_no)
3014 (tui_data_window::first_reg_element_no_inline)
3015 (tui_data_window::show_registers)
3016 (tui_data_window::show_register_group)
3017 (tui_data_window::display_registers_from)
3018 (tui_data_window::display_registers_from_line)
3019 (tui_data_window::first_data_item_displayed)
3020 (tui_data_window::delete_data_content_windows)
3021 (tui_data_window::erase_data_content)
3022 (tui_data_window::do_scroll_vertical)
3023 (tui_data_window::refresh_window)
3024 (tui_data_window::check_register_values): Update.
3025
3026 2019-09-20 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3029 (struct tui_locator_window) <full_name, proc_name>: Now
3030 std::string.
3031 * tui/tui-stack.c (tui_locator_window::make_status_line)
3032 (tui_locator_window::set_locator_fullname)
3033 (tui_locator_window::set_locator_info): Update.
3034 * tui/tui-source.c (tui_source_window::set_contents)
3035 (tui_source_window::showing_source_p): Update.
3036
3037 2019-09-20 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3040 Don't call tui_locator_win_info_ptr.
3041
3042 2019-09-20 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3045
3046 2019-09-20 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3049 height for locator.
3050 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3051 * tui/tui-layout.c (show_source_disasm_command, show_data)
3052 (show_source_or_disasm_and_command): Use 1 as height for locator.
3053
3054 2019-09-20 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui.c (tui_enable): Update.
3057 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3058 Update.
3059 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3060 Update.
3061 * tui/tui-data.c (win_resized): Now bool.
3062 (tui_win_resized): Return bool.
3063 (tui_set_win_resized_to): Accept a bool.
3064
3065 2019-09-20 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3068 Change type of "refresh_values_only".
3069 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3070 type of "refresh_values_only".
3071
3072 2019-09-20 Tom Tromey <tom@tromey.com>
3073
3074 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3075 std::string.
3076 (tui_disassemble): Add "pos" parameter.
3077 (tui_disasm_window::set_contents): Simplify.
3078
3079 2019-09-20 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-winsource.h (struct tui_source_window_base)
3082 <show_source_content>: Now private.
3083 * tui/tui-winsource.c
3084 (tui_source_window_base::show_source_content): Don't handle empty
3085 content case.
3086
3087 2019-09-20 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-layout.c (show_source_disasm_command)
3090 (show_source_or_disasm_and_command): Don't call
3091 show_source_content.
3092
3093 2019-09-20 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3096 Declare.
3097 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3098 from tui_make_status_line.
3099 (tui_locator_window::rerender): Update.
3100
3101 2019-09-20 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3104 (tui_locator_window::rerender): Update.
3105
3106 2019-09-20 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-winsource.h (struct tui_source_window_base)
3109 <~tui_source_window_base>: Don't declare.
3110 <fullname>: Remove.
3111 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3112 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3113 member.
3114 * tui/tui-source.c (tui_source_window::set_contents): Update.
3115 (tui_source_window::location_matches_p)
3116 (tui_source_window::maybe_update): Update.
3117
3118 2019-09-20 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-winsource.h (~tui_source_element): Remove.
3121 (tui_source_element): Update.
3122 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3123 * tui/tui-winsource.c (tui_show_source_line): Update.
3124 * tui/tui-source.c (tui_source_window::set_contents): Update.
3125 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3126
3127 2019-09-20 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3130 declare.
3131 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3132 tui_clear_source_windows_detail.
3133 * tui/tui-winsource.h (struct tui_source_window_base)
3134 <clear_detail>: Don't declare.
3135 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3136 Remove.
3137 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3138
3139 2019-09-20 Tom Tromey <tromey@adacore.com>
3140
3141 PR ada/24919:
3142 * block.c (contained_in): Fix final return value.
3143
3144 2019-09-20 Alan Modra <amodra@gmail.com>
3145
3146 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3147 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3148 (read_indirect_string_from_dwz): Use bfd accessor.
3149 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3150 * machoread.c (macho_symfile_read_all_oso): Likewise.
3151 * solib.c (solib_bfd_open): Likewise.
3152
3153 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3154
3155 * eval.c: Move declaration of overload_resolution to...
3156 * value.h: ...here.
3157
3158 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3159
3160 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3161 * arm-linux-tdep.c: Likewise.
3162 * arm-nbsd-nat.c: Likewise.
3163 * arm-tdep.h: Declare arm_apcs_32.
3164 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3165
3166 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3167
3168 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3169 * dwarf2read.h: Declare dwarf_always_disassemble.
3170
3171 2019-09-19 Tom de Vries <tdevries@suse.de>
3172
3173 PR gdb/25009
3174 * source-cache.c (source_cache::ensure): Catch exception thrown during
3175 construction of the highlighter.
3176
3177 2019-09-18 Alan Modra <amodra@gmail.com>
3178
3179 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3180 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3181 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3182 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3183 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3184 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3185 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3186 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3187 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3188 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3189 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3190 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3191 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3192 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3193 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3194 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3195 * mi/mi-interp.c: Update throughout for bfd section macro and
3196 function changes.
3197 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3198 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3199
3200 2019-09-18 Tom Tromey <tom@tromey.com>
3201
3202 * NEWS: Add entry.
3203 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3204 call rl_initialize.
3205 (tui_enable): Do not call rl_initialize.
3206
3207 2019-09-18 Christian Groessler <chris@groessler.org>
3208
3209 * alpha-linux-nat.c: Include gdbarch.h.
3210
3211 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3212
3213 * ui-file.c: Include cli/cli-style.h.
3214 (term_cli_styling): Remove cli_styling declaration.
3215
3216 2019-09-18 Alan Modra <amodra@gmail.com>
3217
3218 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3219 to bfd_asymbol_section.
3220
3221 2019-09-18 Alan Modra <amodra@gmail.com>
3222
3223 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3224 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3225 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3226
3227 2019-09-18 Alan Modra <amodra@gmail.com>
3228
3229 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3230 * spu-linux-nat.c (spu_bfd_open): Likewise.
3231
3232 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3233
3234 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3235 to bool to match definition in dwarf2read.c.
3236
3237 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3238
3239 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3240 (print_signatures): Likewise.
3241 (trust_pad_over_xvs): Likewise.
3242 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3243 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3244 * arm-linux-nat.c (arm_apcs_32): Likewise.
3245 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3246 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3247 * arm-tdep.c (arm_debug): Likewise.
3248 (arm_apcs_32): Likewise.
3249 * auto-load.c (debug_auto_load): Likewise.
3250 (auto_load_gdb_scripts): Likewise.
3251 (global_auto_load): Likewise.
3252 (auto_load_local_gdbinit): Likewise.
3253 (auto_load_local_gdbinit_loaded): Likewise.
3254 * auto-load.h (global_auto_load): Likewise.
3255 (auto_load_local_gdbinit): Likewise.
3256 (auto_load_local_gdbinit_loaded): Likewise.
3257 * breakpoint.c (disconnected_dprintf): Likewise.
3258 (breakpoint_proceeded): Likewise.
3259 (automatic_hardware_breakpoints): Likewise.
3260 (always_inserted_mode): Likewise.
3261 (target_exact_watchpoints): Likewise.
3262 (_initialize_breakpoint): Update.
3263 * breakpoint.h (target_exact_watchpoints): Change to bool.
3264 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3265 * cli/cli-cmds.c (trace_commands): Likewise.
3266 * cli/cli-cmds.h (trace_commands): Likewise.
3267 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3268 to bool*.
3269 * cli/cli-logging.c (logging_overwrite): Change to bool.
3270 (logging_redirect): Likewise.
3271 (debug_redirect): Likewise.
3272 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3273 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3274 to bool.
3275 <boolean_option_def>: Update.
3276 (struct flag_option_def): Change default type of Context to bool
3277 from int.
3278 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3279 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3280 (get_setshow_command_value_string): Likewise.
3281 * cli/cli-style.c (cli_styling): Change to bool.
3282 (source_styling): Likewise.
3283 * cli/cli-style.h (source_styling): Likewise.
3284 (cli_styling): Likewise.
3285 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3286 to bool.
3287 * command.h (var_types): Update comment.
3288 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3289 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3290 bool.
3291 (debug_compile_cplus_scopes): Likewise.
3292 * compile/compile-internal.h (compile_debug): Likewise.
3293 * compile/compile.c (compile_debug): Likewise.
3294 (struct compile_options) <raw>: Likewise.
3295 * cp-support.c (catch_demangler_crashes): Likewise.
3296 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3297 (usr_cmd_cris_dwarf2_cfi): Likewise.
3298 * csky-tdep.c (csky_debug): Likewise.
3299 * darwin-nat.c (enable_mach_exceptions): Likewise.
3300 * dcache.c (dcache_enabled_p): Likewise.
3301 * defs.h (info_verbose): Likewise.
3302 * demangle.c (demangle): Likewise.
3303 (asm_demangle): Likewise.
3304 * dwarf-index-cache.c (debug_index_cache): Likewise.
3305 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3306 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3307 * dwarf2read.c (check_physname): Likewise.
3308 (use_deprecated_index_sections): Likewise.
3309 (dwarf_always_disassemble): Likewise.
3310 * eval.c (overload_resolution): Likewise.
3311 * event-top.c (set_editing_cmd_var): Likewise.
3312 (exec_done_display_p): Likewise.
3313 * event-top.h (set_editing_cmd_var): Likewise.
3314 (exec_done_display_p): Likewise.
3315 * exec.c (write_files): Likewise.
3316 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3317 (debug_fbsd_nat): Likewise.
3318 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3319 Likewise.
3320 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3321 <backtrace_past_entry> Likewise.
3322 * gdb-demangle.h (demangle): Likewise.
3323 (asm_demangle): Likewise.
3324 * gdb_bfd.c (bfd_sharing): Likewise.
3325 * gdbcore.h (write_files): Likewise.
3326 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3327 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3328 * gdbthread.h (print_thread_events): Likewise.
3329 * gdbtypes.c (opaque_type_resolution): Likewise.
3330 (strict_type_checking): Likewise.
3331 * gnu-nat.c (gnu_debug_flag): Likewise.
3332 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3333 * guile/scm-param.c (pascm_variable): Add boolval.
3334 (add_setshow_generic): Update.
3335 (pascm_param_value): Update.
3336 (pascm_set_param_value_x): Update.
3337 * hppa-tdep.c (hppa_debug): Change to bool..
3338 * infcall.c (may_call_functions_p): Likewise.
3339 (coerce_float_to_double_p): Likewise.
3340 (unwind_on_signal_p): Likewise.
3341 (unwind_on_terminating_exception_p): Likewise.
3342 * infcmd.c (startup_with_shell): Likewise.
3343 * inferior.c (print_inferior_events): Likewise.
3344 * inferior.h (startup_with_shell): Likewise.
3345 (print_inferior_events): Likewise.
3346 * infrun.c (step_stop_if_no_debug): Likewise.
3347 (detach_fork): Likewise.
3348 (debug_displaced): Likewise.
3349 (disable_randomization): Likewise.
3350 (non_stop): Likewise.
3351 (non_stop_1): Likewise.
3352 (observer_mode): Likewise.
3353 (observer_mode_1): Likewise.
3354 (set_observer_mode): Update.
3355 (sched_multi): Change to bool.
3356 * infrun.h (debug_displaced): Likewise.
3357 (sched_multi): Likewise.
3358 (step_stop_if_no_debug): Likewise.
3359 (non_stop): Likewise.
3360 (disable_randomization): Likewise.
3361 * linux-tdep.c (use_coredump_filter): Likewise.
3362 (dump_excluded_mappings): Likewise.
3363 * linux-thread-db.c (auto_load_thread_db): Likewise.
3364 (check_thread_db_on_load): Likewise.
3365 * main.c (captured_main_1): Update.
3366 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3367 xx2_opt, boolean_opt>: Change to bool.
3368 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3369 * maint.c (maintenance_profile_p): Likewise.
3370 (per_command_time): Likewise.
3371 (per_command_space): Likewise.
3372 (per_command_symtab): Likewise.
3373 * memattr.c (inaccessible_by_default): Likewise.
3374 * mi/mi-main.c (mi_async): Likewise.
3375 (mi_async_1): Likewise.
3376 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3377 * nat/fork-inferior.h (startup_with_shell): Likewise.
3378 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3379 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3380 * nios2-tdep.c (nios2_debug): Likewise.
3381 * or1k-tdep.c (or1k_debug): Likewise.
3382 * parse.c (parser_debug): Likewise.
3383 * parser-defs.h (parser_debug): Likewise.
3384 * printcmd.c (print_symbol_filename): Likewise.
3385 * proc-api.c (procfs_trace): Likewise.
3386 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3387 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3388 (set_parameter_value): Update.
3389 (add_setshow_generic): Update.
3390 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3391 to bool*.
3392 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3393 int*.
3394 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3395 * record-btrace.c (record_btrace_target::store_registers): Update.
3396 * record-full.c (record_full_memory_query): Change to bool.
3397 (record_full_stop_at_limit): Likewise.
3398 * record-full.h (record_full_memory_query): Likewise.
3399 * remote-notif.c (notif_debug): Likewise.
3400 * remote-notif.h (notif_debug): Likewise.
3401 * remote.c (use_range_stepping): Likewise.
3402 (interrupt_on_connect): Likewise.
3403 (remote_break): Likewise.
3404 * ser-tcp.c (tcp_auto_retry): Likewise.
3405 * ser-unix.c (serial_hwflow): Likewise.
3406 * skip.c (debug_skip): Likewise.
3407 * solib-aix.c (solib_aix_debug): Likewise.
3408 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3409 (spu_auto_flush_cache_p): Likewise.
3410 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3411 Likewise.
3412 (struct info_print_options) <quiet>: Likewise.
3413 * symfile-debug.c (debug_symfile): Likewise.
3414 * symfile.c (auto_solib_add): Likewise.
3415 (separate_debug_file_debug): Likewise.
3416 * symfile.h (auto_solib_add): Likewise.
3417 (separate_debug_file_debug): Likewise.
3418 * symtab.c (basenames_may_differ): Likewise.
3419 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3420 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3421 (struct info_types_options) <quiet>: Likewise.
3422 * symtab.h (demangle): Likewise.
3423 (basenames_may_differ): Likewise.
3424 * target-dcache.c (stack_cache_enabled_1): Likewise.
3425 (code_cache_enabled_1): Likewise.
3426 * target.c (trust_readonly): 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 (auto_connect_native_target): Likewise.
3434 (target_stop_and_wait): Update.
3435 (target_async_permitted): Change to bool.
3436 (target_async_permitted_1): Likewise.
3437 (may_write_registers_1): Likewise.
3438 (may_write_memory_1): Likewise.
3439 (may_insert_breakpoints_1): Likewise.
3440 (may_insert_tracepoints_1): Likewise.
3441 (may_insert_fast_tracepoints_1): Likewise.
3442 (may_stop_1): Likewise.
3443 * target.h (target_async_permitted): Likewise.
3444 (may_write_registers): Likewise.
3445 (may_write_memory): Likewise.
3446 (may_insert_breakpoints): Likewise.
3447 (may_insert_tracepoints): Likewise.
3448 (may_insert_fast_tracepoints): Likewise.
3449 (may_stop): Likewise.
3450 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3451 (make_thread_apply_all_options_def_group): Change argument from int*
3452 to bool*.
3453 (thread_apply_all_command): Update.
3454 (print_thread_events): Change to bool.
3455 * top.c (confirm): Likewise.
3456 (command_editing_p): Likewise.
3457 (history_expansion_p): Likewise.
3458 (write_history_p): Likewise.
3459 (info_verbose): Likewise.
3460 * top.h (confirm): Likewise.
3461 (history_expansion_p): Likewise.
3462 * tracepoint.c (disconnected_tracing): Likewise.
3463 (circular_trace_buffer): Likewise.
3464 * typeprint.c (print_methods): Likewise.
3465 (print_typedefs): Likewise.
3466 * utils.c (debug_timestamp): Likewise.
3467 (sevenbit_strings): Likewise.
3468 (pagination_enabled): Likewise.
3469 * utils.h (sevenbit_strings): Likewise.
3470 (pagination_enabled): Likewise.
3471 * valops.c (overload_resolution): Likewise.
3472 * valprint.h (struct value_print_options) <prettyformat_arrays,
3473 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3474 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3475 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3476 Likewise.
3477 * windows-nat.c (new_console): Likewise.
3478 (cygwin_exceptions): Likewise.
3479 (new_group): Likewise.
3480 (debug_exec): Likewise.
3481 (debug_events): Likewise.
3482 (debug_memory): Likewise.
3483 (debug_exceptions): Likewise.
3484 (useshell): Likewise.
3485 * windows-tdep.c (maint_display_all_tib): Likewise.
3486 * xml-support.c (debug_xml): Likewise.
3487
3488 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3489
3490 * source.c (prepare_path_for_appending): New function.
3491 (openp): Make use of new function.
3492 (find_and_open_source): Search for the compilation directory and
3493 source file as a relative path beneath the directory search path.
3494
3495 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * source-cache.c (source_cache::get_line_charpos): Catch
3498 exceptions and return false, this matches the behaviour documented
3499 in the header file.
3500
3501 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3502
3503 * ada-tasks.c (info_task): Remove quoting of the task's name.
3504
3505 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3506
3507 * symfile.c (auto_solib_add): Replace comment with a reference
3508 to the header file.
3509
3510 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3511
3512 * NEWS: Mention that gdb can now be compiled with Python 3
3513 on Windows.
3514
3515 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * maint.c (maint_print_section_data::maint_print_section_data):
3518 Force use of 'float log10 (float)' by casting the argument to
3519 float.
3520
3521 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3522
3523 * maint.c: Add 'cmath' include.
3524 (struct maint_print_section_data): New structure.
3525 (print_section_index): New function.
3526 (print_bfd_section_info): Add header comment, small whitespace
3527 cleanup, and update to call new print_section_index function.
3528 (print_objfile_section_info): Likewise.
3529 (maint_obj_section_from_bfd_section): New function.
3530 (print_bfd_section_info_maybe_relocated): New function.
3531 (maintenance_info_sections): Add header comment, always use
3532 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3533
3534 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3537 inner scope, add check that the objfile has psymtabs before
3538 checking psymtabs_addrmap.
3539 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3540
3541 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3542
3543 * NEWS: Announce that Ada task names are now shown at more places,
3544 and between quotes (except in info task output).
3545 * gdb/ada-tasks.c (task_to_str): New function.
3546 (display_current_task_id): Call task_to_str.
3547 (task_command_1): Likewise.
3548 (print_ada_task_info): In non-mi mode, Properly align headers and data
3549 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3550
3551 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3552
3553 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3554 prstatus.pr_lwp.pr_info instead of making it up.
3555
3556 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3557
3558 * auto-load.c (auto_load_expand_dir_vars): Update.
3559 * defs.h (gdb_datadir): Change to std::string.
3560 (python_libdir): Likewise.
3561 (relocate_gdb_directory): Change return type to std::string.
3562 * guile/guile.c (gdbscm_data_directory): Update.
3563 (initialize_scheme_side): Update.
3564 * jit.c (jit_reader_dir): Change to std::string.
3565 (jit_reader_load_command): Update.
3566 * main.c (gdb_datadir): Change to std::string.
3567 (python_libdir): Likewise.
3568 (set_gdb_data_directory): Update.
3569 (relocate_path): Change to return std::string.
3570 (relocate_gdb_directory): Change to return std::string.
3571 (relocate_gdbinit_path_maybe_in_datadir): Update.
3572 (captured_main_1): Update.
3573 * python/python.c (do_start_initialization): Update.
3574 * top.c (show_gdb_datadir): Update.
3575 * xml-syscall.c (xml_init_syscalls_info): Update.
3576 (init_syscalls_info): Update.
3577
3578 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3579
3580 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3581 out of get_init_files.
3582 (get_init_files): Update.
3583
3584 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3585
3586 * main.c (get_init_files): Change to use std::string.
3587 (captured_main_1): Update.
3588 (print_gdb_help): Update.
3589
3590 2019-09-11 Ali Tamur <tamur@google.com>
3591
3592 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3593 implementation.
3594
3595 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3596
3597 * dbxread.c (read_dbx_symtab): Update.
3598 * dwarf2read.c (load_partial_dies): Update.
3599 * mdebugread.c (parse_partial_symbols): Update.
3600 (handle_psymbol_enumerators): Update.
3601 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3602 * psymtab.c (add_psymbol_to_bcache): Likewise.
3603 (add_psymbol_to_list): Likewise.
3604 * symtab.c (symbol_set_names): Likewise.
3605 * symtab.h (symbol_set_names): Likewise.
3606 * xcoffread.c (scan_xcoff_symtab): Update.
3607
3608 2019-09-11 Tom Tromey <tom@tromey.com>
3609
3610 * symfile-mem.c (symbol_file_add_from_memory): Use
3611 bfd_set_filename.
3612 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3613 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3614
3615 2019-09-10 Tom Tromey <tromey@adacore.com>
3616
3617 * dwarf-index-write.c (write_psymbols): Extend error message.
3618 (debug_names::insert): Add Ada code.
3619 (debug_names::write_psymbols): Remove Ada check.
3620 (debug_names) <m_string_obstack>: New member.
3621 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3622 (gdb_index_symbol_name_matcher::matches): Remove.
3623 (mapped_index_base::find_name_components_bounds): Add "lang"
3624 parameter.
3625 (mapped_index_base::build_name_components): Also split names
3626 according to Ada syntax.
3627 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3628 type of "match_callback".
3629 (check_match, check_find_bounds_finds)
3630 (dw2_expand_symtabs_matching): Update.
3631 (dw2_debug_names_iterator): Add new constructor.
3632 (dw2_debug_names_map_matching_symbols): New function.
3633 (dw2_debug_names_expand_symtabs_matching): Update.
3634 (dwarf2_debug_names_functions): Use
3635 dw2_debug_names_map_matching_symbols.
3636
3637 2019-09-10 Tom Tromey <tromey@adacore.com>
3638
3639 * dwarf2read.c (dw2_get_file_names_reader): Add the
3640 CU's file name to the results.
3641
3642 2019-09-10 Tom Tromey <tromey@adacore.com>
3643
3644 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3645 map_matching_symbols. Update.
3646 * dwarf2read.c (dw2_map_matching_symbols): Update.
3647 * psymtab.c (match_partial_symbol): Change type; update.
3648 (psym_map_matching_symbols): Likewise.
3649 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3650 type; update.
3651 * symfile.h (struct quick_symbol_functions)
3652 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3653 Remove "match".
3654
3655 2019-09-10 Tom Tromey <tromey@adacore.com>
3656
3657 * psymtab.c (map_block): Remove.
3658 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3659 * symtab.c (iterate_over_symbols_terminated): New function.
3660 * symtab.c (iterate_over_symbols_terminated): Declare.
3661
3662 2019-09-10 Tom Tromey <tromey@adacore.com>
3663
3664 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3665 * language.h (struct language_defn) <la_iterate_over_symbols>:
3666 Return bool.
3667 * symtab.c (iterate_over_symbols): Return bool.
3668 * symtab.h (iterate_over_symbols): Return bool.
3669
3670 2019-09-10 Tom Tromey <tromey@adacore.com>
3671
3672 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3673 (add_nonlocal_symbols): Update.
3674 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3675 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3676 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3677 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3678 Change type of "callback". Remove "data".
3679
3680
3681 2019-09-09 Ali Tamur <tamur@google.com>
3682
3683 * dwarf2read.c (comp_unit_head): Update comment.
3684 (dwarf2_dwo_name): New function declaration.
3685 (dwarf_unit_type_name): New function declaration.
3686 (read_comp_unit_head): Add support for new compilation units,
3687 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3688 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3689 (currently named as "signature") in their header. Also clarify error
3690 messages.
3691 (lookup_dwo_id): New function. Returns the dwo id of the given
3692 compile unit.
3693 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3694 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3695 functions.
3696 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3697 (dwarf2_dwo_name): Get the dwo name if present.
3698 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3699 purposes.
3700
3701 2019-09-09 Tom Tromey <tom@tromey.com>
3702
3703 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3704
3705 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3706
3707 * python/python.c (do_start_initialization): Make progname_copy static,
3708 to avoid a leak report.
3709
3710 2019-09-08 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3713
3714 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3715
3716 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3717 Change type to gdb::optional<block_enum>.
3718 (dw2_symtab_iter_init): Change block_index parameter type
3719 to gdb::optional<block_enum>.
3720 (dw2_lookup_symbol): Change block_index parameter
3721 type to block_enum.c
3722 (dw2_debug_names_lookup_symbol): Likewise.
3723 * psymtab.c (psym_lookup_symbol): Likewise.
3724 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3725 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3726 Likewise.
3727
3728 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3729
3730 * defs.h (relocate_gdb_directory): Change int to bool in
3731 signature and rename flag to relocatable.
3732 * main.c (relocate_path): Likewise.
3733 (relocate_gdb_directory): Likewise.
3734
3735 2019-09-06 Alan Modra <amodra@gmail.com>
3736
3737 * coffread.c (coff_symfile_read): Constify filename variable.
3738 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3739 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3740 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3741 * solib.c (reload_shared_libraries_1): Likewise.
3742 * symfile.c (reread_symbols): Likewise.
3743 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3744 * solib-darwin.c (darwin_bfd_open): Likewise.
3745 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3746
3747 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3750 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3751
3752 2019-09-03 Tom Tromey <tromey@adacore.com>
3753
3754 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3755 types.
3756 (has_negatives): Unbias a range type bound.
3757 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3758 * gdbtypes.c (operator==): Handle new field.
3759 (create_range_type): Add "bias" parameter.
3760 (create_static_range_type, resolve_dynamic_range): Update.
3761 * gdbtypes.h (struct range_bounds) <bias>: New member.
3762 (create_range_type): Add bias parameter.
3763 * printcmd.c (print_scalar_formatted): Unbias range types.
3764 * value.c (unpack_long): Unbias range types.
3765 (pack_long): Bias range types.
3766
3767 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3768
3769 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3770 probe arguments.
3771
3772 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3773
3774 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3775 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3776 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3777 (compile_probe_arg): Likewise.
3778 * probe.h (get_argument_count): Likewise.
3779 * solib-svr4.c (solib_event_probe_action): Likewise.
3780 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3781
3782 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3783
3784 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3785 code to here...
3786 (svr4_create_solib_event_breakpoints): ...from here.
3787
3788 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3789
3790 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3791 suffix from warning message.
3792
3793 2019-08-30 Tom Tromey <tom@tromey.com>
3794
3795 * tui/tui-winsource.h (struct tui_source_window_base)
3796 <refresh_all>: Don't declare.
3797 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3798 Remove.
3799 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3800 tui_show_locator_content.
3801 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3802 declare.
3803 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3804 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3805 declare.
3806
3807 2019-08-30 Tom Tromey <tom@tromey.com>
3808
3809 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3810
3811 2019-08-30 Tom Tromey <tom@tromey.com>
3812
3813 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3814 Remove unnecessary forward declarations.
3815
3816 2019-08-30 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3819 rerender.
3820 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3821 tui_show_locator_content.
3822
3823 2019-08-30 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3826 (tui_locator_window::rerender): Rewrite using body of previous
3827 tui_show_locator_content.
3828
3829 2019-08-30 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3832 set_locator_fullname>: New methods.
3833 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3834 Rename from tui_set_locator_fullname.
3835 (tui_locator_window::set_locator_info): Rename from
3836 tui_set_locator_info. Return bool.
3837 (tui_update_locator_fullname, tui_show_frame_info): Update.
3838
3839 2019-08-30 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3842
3843 2019-08-30 Tom Tromey <tom@tromey.com>
3844
3845 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3846 call touchwin.
3847
3848 2019-08-30 Tom Tromey <tom@tromey.com>
3849
3850 * tui/tui-wingeneral.c (box_win): Assume win_info and
3851 win_info->handle cannot be NULL.
3852
3853 2019-08-30 Tom Tromey <tom@tromey.com>
3854
3855 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3856 refresh_window>: Declare.
3857 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3858 resize.
3859 (tui_data_item_window::rerender): Rename from
3860 tui_display_register.
3861 (tui_data_item_window::refresh_window): New method.
3862 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3863 no-op.
3864
3865 2019-08-30 Tom Tromey <tom@tromey.com>
3866
3867 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3868 regs_column_count, current_group>: Move later. Now private.
3869 <get_current_group>: New method.
3870 * tui/tui-regs.c (tui_reg_command): Update.
3871 * tui/tui-layout.c (tui_set_layout): Update.
3872
3873 2019-08-30 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3876 (tui_data_window::rerender): Don't call
3877 check_and_display_highlight_if_needed.
3878 (tui_data_window::refresh_all): Remove call to
3879 erase_data_content.
3880
3881 2019-08-30 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3884 (tui_data_window::display_registers_from)
3885 (tui_data_window::display_reg_element_at_line)
3886 (tui_data_window::display_registers_from_line): Remove checks of
3887 "empty".
3888
3889 2019-08-30 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3892 Don't declare.
3893 * tui/tui-regs.c (tui_data_window::show_registers): Call
3894 rerender.
3895 (tui_data_window::rerender): Rename from display_all_data.
3896 (tui_data_window::rerender): Remove old implementation.
3897
3898 2019-08-30 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3901 text.
3902 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3903
3904 2019-08-29 Bernhard Wodok <barto@gmx.net>
3905 Sergio Durigan Junior <sergiodj@redhat.com>
3906
3907 PR win32/24284
3908 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3909
3910 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3913 when searching for types.
3914
3915 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * f-lang.c (f_language_defn): Use f_print_typedef.
3918 * f-lang.h (f_print_typedef): Declare.
3919 * f-typeprint.c (f_print_typedef): Define.
3920
3921 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3922
3923 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3924
3925 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * cli/cli-utils.c (info_print_options_defs): Delete.
3928 (make_info_print_options_def_group): Delete.
3929 (extract_info_print_options): Delete.
3930 (info_print_command_completer): Delete.
3931 (info_print_args_help): Add extra parameter, and optionally
3932 include text about -n flag.
3933 * cli/cli-utils.h (struct info_print_options): Delete.
3934 (extract_info_print_options): Delete declaration.
3935 (info_print_command_completer): Delete declaration.
3936 (info_print_args_help): Add extra parameter, extend header
3937 comment.
3938 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3939 search_symbols.
3940 * stack.c (struct info_print_options): New type.
3941 (info_print_options_defs): New file scoped variable.
3942 (make_info_print_options_def_group): New static function.
3943 (info_print_command_completer): New static function.
3944 (info_locals_command): Update to use new local functions.
3945 (info_args_command): Likewise.
3946 (_initialize_stack): Add extra parameter to calls to
3947 info_print_args_help.
3948 * symtab.c (search_symbols): Add extra parameter, use this to
3949 possibly excluse non-debug symbols.
3950 (symtab_symbol_info): Add extra parameter, which is passed on to
3951 search_symbols.
3952 (struct info_print_options): New type.
3953 (info_print_options_defs): New file scoped variable.
3954 (make_info_print_options_def_group): New static function.
3955 (info_print_command_completer): New static function.
3956 (info_variables_command): Update to use local functions, and pass
3957 extra parameter through to symtab_symbol_info.
3958 (info_functions_command): Likewise.
3959 (info_types_command): Pass additional argument through to
3960 symtab_symbol_info.
3961 (rbreak_command): Pass extra argument to search_symbols.
3962 (_initialize_symtab): Add extra arguments for calls to
3963 info_print_args_help, and update help text for 'info variables',
3964 'whereis', and 'info functions' commands.
3965 * symtab.h (search_symbols): Add extra argument to declaration.
3966 * NEWS: Mention new flags.
3967
3968 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3969
3970 * symtab.c (lookup_static_symbol): Call the new function (and move
3971 it down to be next to lookup_global_symbol).
3972 (struct global_sym_lookup_data): Add block_enum member and rename to...
3973 (struct global_or_static_sym_lookup_data): ...this.
3974 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3975 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3976 (lookup_symbol_global_or_static_iterator_cb): ...this.
3977 (lookup_global_or_static_symbol): New function.
3978 (lookup_global_symbol): Call new function.
3979
3980 2019-08-26 Tom de Vries <tdevries@suse.de>
3981
3982 PR c++/24852
3983 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3984 when pc_probe.prob == NULL.
3985
3986 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3989 variable symbol_linkage to symbol_linkage_.
3990
3991 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3994 represent whether the symbol is static, dynamic, or we don't
3995 know.
3996
3997 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3998
3999 * gdb/rx-tdep.c (rx_register_names): New.
4000 (rx_register_name): Delete.
4001 (rx_psw_type): Delete.
4002 (rx_fpsw_type): Delete.
4003 (rx_register_type): Delete.
4004 (rx_gdbarch_init): Convert target-descriptions.
4005 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4006 * gdb/features/Makefile: Add rx.xml.
4007 * gdb/features/rx.xml: New.
4008 * gdb/features/rx.c: Generated.
4009 * gdb/NEWS: Mention target description support.
4010
4011 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4012
4013 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4014 *slot_ptr.
4015
4016 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4017
4018 * configure.ac: Don't check for 'dlfcn.h' (moved to
4019 gdbsupport/common.m4).
4020 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4021 'gdbsupport/'.
4022 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4023 * compile/compile-c-support.c: Include
4024 'gdbsupport/gdb-dlfcn.h'.
4025 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4026 * gdb-dlfcn.c: Move to...
4027 * gdbsupport/gdb-dlfcn.c: ... here.
4028 * gdb-dlfcn.h: Move to...
4029 * gdbsupport/gdb-dlfcn.h: ... here.
4030
4031 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4032
4033 * nios2-tdep.c (struct reg_value): Improve comments. Make
4034 the offset field signed.
4035
4036 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4037
4038 * python/lib/gdb/__init__.py (_execute_file): New function.
4039 * python/python.c (python_run_simple_file): Call gdb._execute_file
4040 on Windows.
4041
4042 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4043
4044 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4045 all uses as this was never set to anything but a zero value.
4046
4047 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4048
4049 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4050
4051 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4052
4053 * tui/tui-data.h (tui_gen_win_info): Add an =default
4054 move constructor, required by some GCC versions.
4055
4056 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4057
4058 * go32-nat.c (go32_sysinfo): Add hygon_p.
4059
4060 2019-08-20 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4063 line_from_reg_element_no, first_reg_element_no_inline,
4064 display_all_data, delete_data_content_windows,
4065 erase_data_content>: Now private.
4066
4067 2019-08-20 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4070 (tui_unhighlight_win, tui_highlight_win)
4071 (tui_win_info::make_window): Update.
4072 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4073
4074 2019-08-20 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4077 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4078 (MAX_PID_WIDTH): Move to tui-stack.c.
4079 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4080 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4081 (MAX_PID_WIDTH): Move from tui-data.h.
4082
4083 2019-08-20 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4086 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4087 (box_win): Update.
4088 (tui_gen_win_info::make_window): Rename from tui_make_window.
4089 (tui_win_info::make_window): New method.
4090 (tui_gen_win_info::make_visible): Update.
4091 * tui/tui-source.c (tui_source_window::set_contents): Update.
4092 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4093 (tui_data_window::display_registers_from): Update.
4094 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4095 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4096 Declare.
4097 <can_box>: Remove.
4098 <title>: Remove.
4099 (struct tui_win_info) <make_window>: Declare.
4100 <can_box>: Now virtual.
4101 <title>: New member.
4102 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4103 * tui/tui-command.c (tui_cmd_window::resize): Update.
4104
4105 2019-08-20 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4108 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4109 (tui_data_window::check_register_values): Update.
4110
4111 2019-08-20 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-regs.h (struct tui_data_window): Use
4114 DISABLE_COPY_AND_ASSIGN.
4115 <regs_content>: Change type, removing unique_ptr.
4116 <tui_data_window>: Add move constructor.
4117 * tui/tui-regs.c (tui_data_window::show_registers)
4118 (tui_data_window::show_register_group)
4119 (tui_data_window::display_registers_from)
4120 (tui_data_window::display_registers_from)
4121 (tui_data_window::first_data_item_displayed)
4122 (tui_data_window::delete_data_content_windows)
4123 (tui_data_window::rerender, tui_data_window::refresh_window)
4124 (tui_data_window::check_register_values): Update.
4125
4126 2019-08-20 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4129 show_register_group>: Declare.
4130 (tui_show_register_group): Don't declare.
4131 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4132 tui_show_registers.
4133 (tui_data_window::show_register_group): Rename from
4134 tui_show_register_group.
4135 (tui_data_window::check_register_values, tui_reg_command):
4136 Update.
4137 * tui/tui-layout.c (tui_set_layout): Update.
4138
4139 2019-08-20 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4142 Declare.
4143 (tui_check_register_values): Don't declare.
4144 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4145 from tui_check_register_values.
4146 * tui/tui-hooks.c (tui_register_changed): Update.
4147
4148 2019-08-20 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-regs.c (tui_reg_layout): Move later.
4151 (tui_show_registers): Don't enable TUI mode or change layout.
4152
4153 2019-08-20 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-regs.h (struct tui_data_item_window)
4156 <~tui_data_item_window>: Remove.
4157 <content>: Now a unique_xmalloc_ptr.
4158 * tui/tui-regs.c (tui_register_format): Return a
4159 unique_xmalloc_ptr.
4160 (tui_get_register): Update.
4161 (~tui_data_item_window): Remove.
4162 (tui_data_window::display_registers_from, tui_display_register):
4163 Update.
4164 * tui/tui-io.h (tui_expand_tabs): Update.
4165 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4166 Remove "col" parameter.
4167
4168 2019-08-20 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4171 field.
4172 * tui/tui-regs.c (~tui_data_item_window): Update.
4173
4174 2019-08-20 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4177 earlier.
4178
4179 2019-08-20 Tom Tromey <tom@tromey.com>
4180
4181 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4182
4183 2019-08-20 Tom Tromey <tom@tromey.com>
4184
4185 * tui/tui-source.h (struct tui_source_window): Update.
4186 * tui/tui-regs.c (tui_show_registers): Update.
4187 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4188 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4189 (NO_REGS_STRING): Remove defines.
4190
4191 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4192
4193 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4194 unnecessary thread walk if remote doesn't support the packet.
4195
4196 2019-08-19 Tom Tromey <tromey@adacore.com>
4197
4198 * python/py-value.c (value_has_field): Fix indentation.
4199
4200 2019-08-19 Tom Tromey <tromey@adacore.com>
4201
4202 * printcmd.c (do_one_display, info_display_command): Update.
4203 * block.h (contained_in): Return bool. Add allow_nested
4204 parameter.
4205 * block.c (contained_in): Return bool. Add allow_nested
4206 parameter.
4207
4208 2019-08-19 Tom Tromey <tom@tromey.com>
4209
4210 * configure: Rebuild.
4211 * configure.ac: Disallow the combination of -static-libstdc++ and
4212 source highlight.
4213 * source-cache.c (get_language_name): Handle rust.
4214 (source_cache::get_source_lines): Ignore highlighting exceptions.
4215
4216 2019-08-16 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4219 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4220 (struct tui_source_window_base) <make_visible, refresh_window,
4221 resize>: Remove methods.
4222 <execution_info>: Remove field.
4223 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4224 (tui_show_source_line, tui_source_window_base)
4225 (~tui_source_window_base): Update.
4226 (tui_source_window_base::resize)
4227 (tui_source_window_base::make_visible)
4228 (tui_source_window_base::refresh_window): Remove.
4229 (tui_source_window_base::update_exec_info): Update.
4230 * tui/tui-source.c (tui_source_window::set_contents): Update.
4231 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4232
4233 2019-08-16 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4236 deprecated_query_hook.
4237
4238 2019-08-16 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4241 (tui_update_source_windows_with_line): Update.
4242 * tui/tui-source.h (struct tui_source_window)
4243 <show_symtab_source>: Declare.
4244 (tui_show_symtab_source): Don't declare.
4245 * tui/tui-source.c (tui_show_symtab_source): Rename from
4246 tui_show_symtab_source.
4247
4248 2019-08-16 Tom Tromey <tom@tromey.com>
4249
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <set_contents>: Declare.
4252 * tui/tui-winsource.c
4253 (tui_source_window_base::update_source_window_as_is): Update.
4254 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4255 Declare.
4256 (tui_set_source_content): Don't declare.
4257 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4258 tui_set_source_content.
4259 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4260 Declare.
4261 (tui_set_disassem_content): Don't declare.
4262 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4263 tui_set_disassem_content.
4264
4265 2019-08-16 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-winsource.h (struct tui_source_window_base)
4268 <update_breakpoint_info>: Declare.
4269 (tui_update_breakpoint_info): Don't declare.
4270 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4271 (tui_update_all_breakpoint_info): Update.
4272 (tui_source_window_base::update_breakpoint_info): Rename from
4273 tui_update_breakpoint_info.
4274 (tui_source_window_base::update_exec_info): Update.
4275
4276 2019-08-16 Tom Tromey <tom@tromey.com>
4277
4278 * tui/tui-winsource.h (struct tui_source_window_base)
4279 <update_source_window>: Declare.
4280 (tui_update_source_window): Don't declare.
4281 * tui/tui-winsource.c
4282 (tui_source_window_base::update_source_window): Rename from
4283 tui_update_source_window.
4284 (tui_source_window_base::rerender): Update.
4285 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4286 * tui/tui-disasm.c (tui_show_disassem)
4287 (tui_show_disassem_and_update_source)
4288 (tui_disasm_window::maybe_update): Update.
4289
4290 2019-08-16 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.h (struct tui_source_window_base)
4293 <update_source_window_as_is>: Declare.
4294 (tui_update_source_window_as_is): Don't declare.
4295 * tui/tui-winsource.c (tui_update_source_window): Update
4296 (tui_source_window_base::update_source_window_as_is): Rename from
4297 tui_update_source_window_as_is.
4298 (tui_source_window_base::refill): Update.
4299 * tui/tui-source.c (tui_show_symtab_source): Update.
4300 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4301 Update.
4302
4303 2019-08-16 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-winsource.h (tui_update_source_window)
4306 (tui_update_source_window_as_is): Remove "noerror" parameter.
4307 * tui/tui-winsource.c (tui_update_source_window)
4308 (tui_update_source_window_as_is): Remove "noerror" parameter.
4309 (tui_update_source_windows_with_addr)
4310 (tui_update_source_windows_with_line)
4311 (tui_source_window_base::rerender)
4312 (tui_source_window_base::refill): Update.
4313 * tui/tui-source.h (tui_set_source_content)
4314 (tui_show_symtab_source): Remove "noerror" parameter.
4315 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4316 parameter.
4317 (tui_show_symtab_source): Likewise.
4318 (tui_source_window::maybe_update): Update.
4319 * tui/tui-disasm.c (tui_show_disassem)
4320 (tui_show_disassem_and_update_source)
4321 (tui_disasm_window::do_scroll_vertical)
4322 (tui_disasm_window::maybe_update): Update.
4323
4324 2019-08-16 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui.c (tui_is_window_visible): Update.
4327 * tui/tui-wingeneral.c (tui_make_window)
4328 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4329 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4330 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4331 (tui_set_win_height_command, parse_scrolling_args): Update.
4332 * tui/tui-source.c (tui_source_window::style_changed): Update.
4333 * tui/tui-regs.c (tui_show_registers)
4334 (tui_data_window::first_data_item_displayed)
4335 (tui_data_window::delete_data_content_windows)
4336 (tui_check_register_values, tui_reg_command): Update.
4337 * tui/tui-disasm.c (tui_show_disassem): Update.
4338 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4339 method.
4340 <is_visible>: Remove field.
4341 * tui/tui-data.c (tui_next_win, tui_prev_win)
4342 (tui_delete_invisible_windows): Update.
4343
4344 2019-08-16 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-winsource.h (struct tui_source_window_base)
4347 <m_has_locator>: Remove.
4348 * tui/tui-layout.c (show_source_disasm_command, show_data)
4349 (show_source_or_disasm_and_command): Update.
4350
4351 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4352
4353 * NEWS (Other MI changes): New subsection.
4354 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4355 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4356 * arch-utils.c (default_get_pc_address_flags): New function.
4357 * arch-utils.h (default_get_pc_address_flags): New declaration.
4358 * gdbarch.sh: Add get_pc_address_flags.
4359 * gdbarch.c: Regenerate.
4360 * gdbarch.h: Likewise.
4361 * stack.c (print_pc): New function.
4362 (print_frame_info) (print_frame): Call print_pc.
4363
4364 2019-08-16 Tom de Vries <tdevries@suse.de>
4365
4366 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4367 print_objfile_section_info.
4368
4369 2019-08-15 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4372 calling update_cmdwin_start_line.
4373 * tui/tui-winsource.h (struct tui_source_window_base)
4374 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4375 <rerender>: Declare.
4376 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4377 Call rerender.
4378 (tui_source_window_base::set_new_height): Remove.
4379 (tui_source_window_base::rerender): Rename from
4380 do_make_visible_with_new_height.
4381 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4382 resize method.
4383 (tui_win_info::make_invisible_and_set_new_height)
4384 (tui_win_info::make_visible_with_new_height): Remove.
4385 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4386 Declare.
4387 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4388 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4389 do_make_visible_with_new_height>: Don't declare.
4390 <rerender>: Declare.
4391 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4392 set_new_height.
4393 (tui_data_window::do_make_visible_with_new_height): Remove.
4394 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4395 call tui_show_locator_content.
4396 (tui_gen_win_info::resize): Call rerender.
4397 (show_source_or_disasm_and_command): Don't call
4398 tui_show_locator_content.
4399 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4400 method.
4401 (struct tui_win_info) <rerender>: Declare.
4402 <set_new_height, make_invisible_and_set_new_height,
4403 make_visible_with_new_height>: Don't declare.
4404 * tui/tui-data.c (tui_win_list::rerender): New method.
4405 * tui/tui-command.h (struct tui_cmd_window)
4406 <do_make_visible_with_new_height>: Don't declare.
4407 * tui/tui-command.c
4408 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4409
4410 2019-08-15 Tom Tromey <tromey@adacore.com>
4411
4412 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4413 * ada-lang.c (ada_enum_name): Likewise.
4414
4415 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4416
4417 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4418 leading underscore.
4419 (GdbOutputErrorFile): Likewise.
4420 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4421 accordingly.
4422 (execute_unwinders): Rename to have a leading underscore.
4423 (auto_load_packages): Likewise.
4424 (global scope): Adjust call to auto_load_packages accordingly.
4425 (GdbSetPythonDirectory): Likewise.
4426 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4427 instead of execute_unwinders.
4428
4429 2019-08-15 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4432 (show_data): Don't change window visibility.
4433 (tui_gen_win_info::resize): Remove special case for command
4434 window. Use wresize, when available.
4435 (show_source_or_disasm_and_command): Don't change window
4436 visibility.
4437 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4438 <make_visible>: New method.
4439 * tui/tui-command.c (tui_cmd_window::resize): New method.
4440
4441 2019-08-15 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4444 (struct tui_source_windows): New.
4445 * tui/tui-winsource.c (tui_display_main): Update.
4446 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4447 (new_height_ok, parse_scrolling_args): Update.
4448 * tui/tui-layout.c (show_layout, show_data): Update.
4449 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4450 (tui_add_to_source_windows): Don't declare.
4451 * tui/tui-data.c (source_windows, tui_source_windows)
4452 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4453
4454 2019-08-15 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4457 Rename from reset.
4458 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4459 * tui/tui-layout.c (show_source_disasm_command, show_data):
4460 Update.
4461 (tui_gen_win_info::resize): Rename.
4462 (show_source_or_disasm_and_command): Update.
4463 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4464 reset.
4465
4466 2019-08-15 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4469 * tui/tui-interp.c (tui_interp::init): Don't call
4470 tui_initialize_static_data.
4471 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4472
4473 2019-08-15 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4476 examine tui_win_list.
4477
4478 2019-08-15 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4481 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4482 tui_clear_source_content.
4483 (tui_clear_source_content): Remove.
4484 (tui_source_window_base::do_erase_source_content): Hoist call to
4485 content.clear().
4486 * tui/tui-stack.c (tui_show_frame_info): Don't call
4487 tui_clear_source_content.
4488
4489 2019-08-15 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-winsource.h (struct tui_source_window_base)
4492 <do_erase_source_content>: New method.
4493 <erase_source_content>: New method.
4494 (tui_erase_source_content): Don't declare.
4495 * tui/tui-winsource.c (tui_clear_source_content): Update.
4496 (tui_source_window_base::do_erase_source_content): Rename from
4497 tui_erase_source_content.
4498 (tui_source_window_base::show_source_content): Update.
4499 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4500 * tui/tui-source.h (struct tui_source_window)
4501 <erase_source_content>: New method.
4502 * tui/tui-disasm.h (struct tui_disasm_window)
4503 <erase_source_content>: New method.
4504
4505 2019-08-15 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4508 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4509 constructor.
4510 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4511 * tui/tui-source.c (tui_set_source_content): Update.
4512 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4513
4514 2019-08-15 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4517 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4518 tui-source.c.
4519 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4520 Declare.
4521 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4522 method.
4523 (tui_source_window::maybe_update): Update.
4524
4525 2019-08-15 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4528 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4529 tui-disasm.c.
4530 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4531 Declare.
4532 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4533 method.
4534 (tui_disasm_window::maybe_update): Update.
4535
4536 2019-08-15 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-winsource.h (struct tui_source_window_base)
4539 <maybe_update>: Declare.
4540 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4541 method.
4542 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4543 Declare.
4544 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4545 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4546 Declare.
4547 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4548
4549 2019-08-15 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4552
4553 2019-08-15 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-wingeneral.c: Include tui-stack.h.
4556 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4557 (struct tui_locator_window): Move from tui-data.h.
4558 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4559 (tui_initialize_static_data): Move from tui-data.c.
4560 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4561 (struct tui_locator_window): Move to tui-stack.c.
4562 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4563 (tui_initialize_static_data): Move to tui-stack.c.
4564
4565 2019-08-15 Tom Tromey <tom@tromey.com>
4566
4567 * tui/tui-layout.c (show_source_disasm_command)
4568 (show_source_or_disasm_and_command): Use make_visible method, not
4569 tui_make_window.
4570 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4571 Remove.
4572
4573 2019-08-15 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-wingeneral.h (tui_make_window): Update.
4576 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4577 parameter.
4578 (tui_gen_win_info::make_visible): Update.
4579 * tui/tui-regs.c (tui_data_window::display_registers_from):
4580 Update.
4581 * tui/tui-layout.c (show_source_disasm_command)
4582 (show_source_or_disasm_and_command): Update.
4583 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4584 (enum tui_box): Remove.
4585 (struct tui_win_info) <can_box>: New method.
4586 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4587 method.
4588
4589 2019-08-15 Tom de Vries <tdevries@suse.de>
4590
4591 * linux-nat-trad.c: Include gdbarch.h.
4592
4593 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4594
4595 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4596 register sizes.
4597
4598 2019-08-14 Tom Tromey <tromey@adacore.com>
4599
4600 * darwin-nat.c: Include gdbarch.h.
4601 * darwin-nat-info.c: Include gdbarch.h.
4602
4603 2019-08-13 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4606 Remove.
4607 * tui/tui-data.c (tui_initialize_static_data): Update.
4608
4609 2019-08-13 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-winsource.h (struct tui_exec_info_window)
4612 <~tui_exec_info_window, maybe_allocate_content, get_content,
4613 m_content>: Remove.
4614 (struct tui_source_window_base) <set_exec_info_content,
4615 show_exec_info_content>: Don't declare.
4616 * tui/tui-winsource.c
4617 (tui_exec_info_window::maybe_allocate_content): Remove.
4618 (tui_source_window_base::update_exec_info): Rename from
4619 set_exec_info_content.
4620 (tui_source_window_base::show_exec_info_content)
4621 (tui_source_window_base::update_exec_info): Remove.
4622
4623 2019-08-13 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4626 declare.
4627 * tui/tui-winsource.c (tui_update_source_window_as_is)
4628 (tui_update_source_windows_with_addr, tui_erase_source_content):
4629 Update.
4630 (tui_clear_exec_info_content): Remove.
4631
4632 2019-08-13 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4635 declare.
4636 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4637 call tui_erase_exec_info_content.
4638 (tui_clear_exec_info_content): Rename from
4639 tui_erase_exec_info_content.
4640 (tui_clear_exec_info_content): Delete.
4641
4642 2019-08-13 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-winsource.h (struct tui_source_window_base)
4645 <show_exec_info_content>: Declare.
4646 (tui_show_exec_info_content): Don't declare.
4647 * tui/tui-winsource.c
4648 (tui_source_window_base::show_exec_info_content): Rename from
4649 tui_show_exec_info_content.
4650 (tui_source_window_base::update_exec_info): Update.
4651
4652 2019-08-13 Tom Tromey <tom@tromey.com>
4653
4654 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4655 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4656 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4657 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4658 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4659 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4660 ... here.
4661
4662 2019-08-13 Tom Tromey <tom@tromey.com>
4663
4664 * tui/tui-winsource.h (struct tui_source_window_base)
4665 <update_exec_info>: Declare.
4666 (tui_update_exec_info): Don't declare.
4667 * tui/tui-winsource.c (tui_update_source_window_as_is)
4668 (tui_source_window_base::refresh_all)
4669 (tui_update_all_breakpoint_info): Update.
4670 (tui_source_window_base::update_exec_info): Rename from
4671 tui_update_exec_info.
4672 * tui/tui-stack.c (tui_show_frame_info): Update.
4673
4674 2019-08-13 Tom Tromey <tom@tromey.com>
4675
4676 * tui/tui-winsource.h (struct tui_source_window_base)
4677 <set_exec_info_content>: Declare.
4678 (tui_set_exec_info_content): Don't declare.
4679 * tui/tui-winsource.c
4680 (tui_source_window_base::set_exec_info_content): Rename from
4681 tui_set_exec_info_content.
4682 (tui_update_exec_info): Update.
4683
4684 2019-08-13 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-winsource.h (struct tui_source_window_base)
4687 <show_source_content>: Declare.
4688 (tui_show_source_content): Don't declare.
4689 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4690 (tui_source_window_base::show_source_content): Rename from
4691 tui_show_source_content.
4692 (tui_source_window_base::refresh_all): Update.
4693 * tui/tui-layout.c (show_source_disasm_command)
4694 (show_source_or_disasm_and_command): Update.
4695
4696 2019-08-13 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-winsource.c (tui_erase_source_content)
4699 (tui_show_source_content, tui_source_window_base::refresh_all):
4700 Update.
4701 * tui/tui-wingeneral.h
4702 (tui_check_and_display_highlight_if_needed): Don't declare.
4703 * tui/tui-wingeneral.c
4704 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4705 check_and_display_highlight_if_needed.
4706 * tui/tui-win.c (tui_rehighlight_all)
4707 (tui_win_info::make_visible_with_new_height): Update.
4708 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4709 (tui_data_window::erase_data_content)
4710 (tui_data_window::display_all_data): Update.
4711 * tui/tui-data.h (struct tui_win_info)
4712 <check_and_display_highlight_if_needed>: Declare.
4713
4714 2019-08-13 Tom Tromey <tom@tromey.com>
4715
4716 * tui/tui-win.c (tui_resize_all): Call
4717 tui_delete_invisible_windows.
4718 * tui/tui-layout.c (show_layout): Call
4719 tui_delete_invisible_windows.
4720 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4721 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4722
4723 2019-08-13 Tom Tromey <tom@tromey.com>
4724
4725 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4726 tui_add_win_to_layout.
4727
4728 2019-08-13 Tom Tromey <tom@tromey.com>
4729
4730 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4731 * tui/tui-layout.c (tui_default_win_height): Now static.
4732
4733 2019-08-13 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4736 single switch.
4737 (show_source_disasm_command, show_source_or_disasm_and_command):
4738 Don't check current layout.
4739
4740 2019-08-13 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-wingeneral.c (make_all_visible): Remove.
4743 (tui_make_all_invisible): Simplify.
4744 * tui/tui-layout.c (tui_make_all_invisible): Move from
4745 tui-wingeneral.c; simplify.
4746 (show_layout): Hoist call to tui_make_all_invisible.
4747 (show_data): Don't call tui_make_all_invisible.
4748
4749 2019-08-13 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4752 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4753
4754 2019-08-13 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4757 tui-data.c.
4758 (show_source_disasm_command, show_data)
4759 (show_source_or_disasm_and_command): Don't use
4760 tui_set_current_layout_to.
4761 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4762 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4763 tui-layout.c.
4764 (tui_set_current_layout_to): Remove.
4765
4766 2019-08-13 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-layout.c (tui_set_layout): Update.
4769 * tui/tui-data.h (struct tui_layout_def): Remove.
4770 (tui_layout_def): Don't declare.
4771 * tui/tui-data.c (layout_def): Remove.
4772 (tui_layout_def): Remove.
4773
4774 2019-08-13 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-winsource.h (struct tui_source_window_base)
4777 <clear_detail>: No longer "override".
4778 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4779 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4780 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4781 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4782 Remove.
4783 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4784
4785 2019-08-13 Tom Tromey <tromey@adacore.com>
4786
4787 * tracepoint.c: Don't include readline.h or history.h.
4788
4789 2019-08-12 Tom Tromey <tom@tromey.com>
4790
4791 * configure: Rebuild.
4792 * configure.ac: Check for readline 7.
4793 * NEWS: Mention readline 7 requirement.
4794 * README: Update.
4795
4796 2019-08-12 Tom Tromey <tom@tromey.com>
4797
4798 * mingw-hdep.c (gdb_select): Remove readline hack.
4799
4800 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4801
4802 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4803 when the function fails.
4804
4805 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4806
4807 * s390-tdep.c (s390_type_align): New function.
4808 (s390_gdbarch_init): Set it as type_align gdbarch method.
4809
4810 2019-08-09 Tom de Vries <tdevries@suse.de>
4811
4812 PR gdb/24591
4813 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4814 pc_low with relocation offset.
4815
4816 2019-08-07 Tom Tromey <tromey@adacore.com>
4817
4818 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4819 (print_frame_args): Update.
4820 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4821 Update.
4822 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4823 * frame.h (struct frame_arg): Add initializers.
4824 <error>: Now a unique_xmalloc_ptr.
4825
4826 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4827
4828 * NEWS: Expand the Pointer Authentication entry.
4829 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4830 (aarch64_frame_unmask_lr): ... to this.
4831 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4832 Call aarch64_frame_unmask_lr.
4833 * frame.c (struct frame_info): Add "masked" variable.
4834 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4835 (fprint_frame): Check for masked pc.
4836 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4837 declarations.
4838 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4839 * stack.c (print_frame): Check for masked pc.
4840
4841 2019-08-06 Tom Tromey <tom@tromey.com>
4842
4843 * stabsread.c (patch_block_stabs, read_one_struct_field)
4844 (read_enum_type): Use obstack_strndup.
4845 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4846 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4847 * dwarf2read.c (guess_full_die_structure_name)
4848 (anonymous_struct_prefix): Use obstack_strndup.
4849 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4850 * c-exp.y (yylex): Use obstack_strndup.
4851 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4852 (write_var_or_type): Use obstack_strndup.
4853
4854 2019-08-06 Tom Tromey <tom@tromey.com>
4855
4856 * symfile.c (reread_symbols): Use obstack_strdup.
4857 * stabsread.c (read_type): Use obstack_strdup.
4858 * gdb_obstack.h (obstack_strdup): New overload.
4859 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4860 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4861 (dwarf2_canonicalize_name): Use obstack_strdup.
4862 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4863 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4864 Use obstack_strdup.
4865
4866 2019-08-06 Tom Tromey <tom@tromey.com>
4867
4868 * gdb_obstack.h (obstack_strdup): Define.
4869 * gdb_obstack.c (obstack_strdup): Don't define.
4870
4871 2019-08-06 Tom Tromey <tom@tromey.com>
4872
4873 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4874 obstack_strdup.
4875 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4876 obstack_strdup.
4877 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4878 * stabsread.c (common_block_start): Use obstack_strdup.
4879 * objfiles.c (set_objfile_main_name, objfile): Use
4880 obstack_strdup.
4881 * namespace.c (add_using_directive): Use obstack_strdup.
4882 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4883 * jit.c (finalize_symtab): Use obstack_strdup.
4884 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4885 (guess_partial_die_structure_name, partial_die_info::fixup)
4886 (dwarf2_name): Use obstack_strdup.
4887 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4888 obstack_strdup.
4889 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4890 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4891 obstack_strdup.
4892 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4893
4894 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895
4896 * unittests/help-doc-selftests.c: New file.
4897 * Makefile.in: Add the new file.
4898
4899 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4900
4901 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4902 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4903 the full first line, except when FOR_VALUE_PREFIX. In this case,
4904 the trailing '.' is not output, and the first character is uppercased.
4905 (print_help_for_command): Update call to print_doc_line.
4906 (print_doc_of_command): Likewise.
4907 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4908 * cli/cli-option.c (append_indented_doc): Do not append newline.
4909 (build_help_option): Append newline after first appended_indented_doc
4910 only if a second call is done.
4911 (build_help): Append 2 new lines before each option, except the first
4912 one.
4913 * compile/compile.c (_initialize_compile): Add new lines after
4914 %OPTIONS%, when not at the end of the help.
4915 Change help doc or code
4916 producing the help doc to respect the invariants.
4917 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4918 Also removed the new line after 'Options:', as all other commands
4919 do not put an empty line between 'Options:' and the first option.
4920 * printcmd.c (_initialize_printcmd): Likewise.
4921 * stack.c (_initialize_stack): Likewise.
4922 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4923 incorrectly telling COMMAND is optional.
4924 * ada-lang.c (_initialize_ada_language): Change help doc or code
4925 producing the help doc to respect the invariants.
4926 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4927 * breakpoint.c (_initialize_breakpoint): Likewise.
4928 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4929 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4930 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4931 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4932 _initialize_cli_style): Likewise.
4933 * corelow.c (core_target_info): Likewise.
4934 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4935 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4936 * filesystem.c (_initialize_filesystem): Likewise.
4937 * frame.c (_initialize_frame): Likewise.
4938 * gnu-nat.c (add_task_commands): Likewise.
4939 * infcall.c (_initialize_infcall): Likewise.
4940 * infcmd.c (_initialize_infcmd): Likewise.
4941 * interps.c (_initialize_interpreter): Likewise.
4942 * language.c (_initialize_language): Likewise.
4943 * linux-fork.c (_initialize_linux_fork): Likewise.
4944 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4945 * maint.c (_initialize_maint_cmds): Likewise.
4946 * memattr.c (_initialize_mem): Likewise.
4947 * printcmd.c (_initialize_printcmd): Likewise.
4948 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4949 _RegEx): Likewise.
4950 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4951 * record-btrace.c (_initialize_record_btrace): Likewise.
4952 * record-full.c (_initialize_record_full): Likewise.
4953 * record.c (_initialize_record): Likewise.
4954 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4955 * regcache.c (_initialize_regcache): Likewise.
4956 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4957 _initialize_remote): Likewise.
4958 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4959 * serial.c (_initialize_serial): Likewise.
4960 * skip.c (_initialize_step_skip): Likewise.
4961 * source.c (_initialize_source): Likewise.
4962 * stack.c (_initialize_stack): Likewise.
4963 * symfile.c (_initialize_symfile): Likewise.
4964 * symtab.c (_initialize_symtab): Likewise.
4965 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4966 * top.c (init_main): Likewise.
4967 * tracefile-tfile.c (tfile_target_info): Likewise.
4968 * tracepoint.c (_initialize_tracepoint): Likewise.
4969 * tui/tui-win.c (_initialize_tui_win): Likewise.
4970 * utils.c (add_internal_problem_command): Likewise.
4971 * valprint.c (value_print_option_defs): Likewise.
4972
4973 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4974
4975 PR build/24886
4976 * configure.ac: Drop enable-libmcheck support.
4977 * configure, config.in: Rebuild.
4978 * libmcheck.m4: Remove.
4979 * acinclude.m4: Don't include it.
4980 * Makefile.in: Don't distribute it.
4981 * top.c (print_gdb_configuration): Don't mention it.
4982
4983 2019-08-06 Tom Tromey <tom@tromey.com>
4984
4985 * utils.c (set_output_style): Sometimes pass stream to
4986 emit_style_escape.
4987 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4988 * record-btrace.c (btrace_insn_history): Update.
4989 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4990 method.
4991 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4992 Update initializers.
4993 <m_uiout>: New field.
4994 <m_di>: Move lower.
4995 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4996 Remove "uiout" parameter.
4997 (dump_insns): Update.
4998 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4999 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5000
5001 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5002
5003 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5004 (error_in_psymtab_expansion): Likewise.
5005 (lookup_symbol_via_quick_fns): Likewise.
5006 (basic_lookup_transparent_type_quick): Likewise.
5007 (basic_lookup_transparent_type_1): Likewise.
5008
5009 2019-08-06 Tom Tromey <tromey@adacore.com>
5010
5011 * source.c (last_source_error): Now bool.
5012 (print_source_lines_base): Make "noprint" bool. Only open
5013 source file when last_source_visited changes.
5014
5015 2019-08-06 Tom Tromey <tromey@adacore.com>
5016
5017 * annotate.c (annotate_source_line): Use g_source_cache.
5018 * source-cache.c (source_cache::get_plain_source_lines): Change
5019 parameters. Populate m_offset_cache.
5020 (source_cache::ensure): New method.
5021 (source_cache::get_line_charpos): New method.
5022 (extract_lines): Move lower. Change parameters.
5023 (source_cache::get_source_lines): Move lower.
5024 * source-cache.h (class source_cache): Update comment.
5025 <get_line_charpos>: New method.
5026 <get_source_lines>: Update comment.
5027 <clear>: Clear m_offset_cache.
5028 <get_plain_source_lines>: Change parameters.
5029 <ensure>: New method
5030 <m_offset_cache>: New member.
5031 * source.c (forget_cached_source_info_for_objfile): Update.
5032 (info_source_command): Use g_source_cache.
5033 (find_source_lines, open_source_file_with_line_charpos): Remove.
5034 (print_source_lines_base, search_command_helper): Use g_source_cache.
5035 * source.h (open_source_file_with_line_charpos): Don't declare.
5036 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5037 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5038 Use g_source_cache.
5039
5040 2019-08-06 Tom Tromey <tromey@adacore.com>
5041
5042 * source-cache.c (source_cache::get_plain_source_lines):
5043 Remove "first_line" and "last_line" parameters.
5044 (source_cache::get_source_lines): Cache plain text.
5045 * source-cache.h (class source_cache)
5046 <get_plain_source_lines>: Update.
5047
5048 2019-08-06 Tom Tromey <tromey@adacore.com>
5049
5050 * source-cache.c (extract_lines): No longer a method.
5051 Changed type of parameter. Include final newline.
5052 (selftests::extract_lines_test): New function.
5053 (_initialize_source_cache): Likewise.
5054 * source-cache.h (class source_cache)
5055 <extract_lines>: Don't declare.
5056
5057 2019-08-06 Tom Tromey <tromey@adacore.com>
5058
5059 * breakpoint.c (init_breakpoint_sal): Update.
5060 (breakpoint): Update.
5061 * breakpoint.h (struct breakpoint) <filter>: Now a
5062 unique_xmalloc_ptr.
5063
5064 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5065
5066 * NEWS: Mention dictionary access on blocks.
5067 * python/py-block.c (blpy_getitem): New function.
5068 (block_object_as_mapping): New struct.
5069 (block_object_type): Use new struct for tp_as_mapping field.
5070
5071 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5072
5073 * objfiles.h (objfile): Add a comment describing partial symbols.
5074
5075 2019-08-05 Tom Tromey <tromey@adacore.com>
5076
5077 * compile/compile.c (_initialize_compile): Use _(), not N_().
5078 * thread.c (_initialize_thread): Use _(), not N_().
5079 * stack.c (_initialize_stack): Use _(), not N_().
5080 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5081
5082 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5083
5084 * dwarf2read.c (struct dw2_symtab_iterator):
5085 <want_specific_block>: Remove.
5086 <block_index>: Change type to gdb::optional.
5087 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5088 change type of BLOCK_INDEX parameter to gdb::optional.
5089 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5090 (dw2_lookup_symbol): Don't pass argument for
5091 WANT_SPECIFIC_BLOCK.
5092 (dw2_expand_symtabs_for_function): Don't pass argument for
5093 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5094 (class dw2_debug_names_iterator)
5095 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5096 parameter, change BLOCK_INDEX type to gdb::optional.
5097 <m_want_specific_block>: Remove.
5098 <m_block_index>: Change type to gdb::optional.
5099 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5100 gdb::optional. Re-write in function of gdb::optional.
5101 (dw2_debug_names_lookup_symbol): Don't pass argument for
5102 WANT_SPECIFIC_BLOCK.
5103 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5104 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5105 BLOCK_INDEX.
5106
5107 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5108
5109 * NEWS: Mention changes to "info sources" command.
5110
5111 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5112
5113 * symtab.c (filename_partial_match_opts): New struct type.
5114 (struct output_source_filename_data): New members
5115 regexp, c_regexp, partial_match.
5116 (output_source_filename): Use new members to decide to print file.
5117 (info_sources_option_defs): New variable.
5118 (make_info_sources_options_def_group, print_info_sources_header,
5119 info_sources_command_completer):
5120 New functions.
5121 (info_sources_command): Read new optional arguments.
5122 (_initialize_symtab): Update info sources help.
5123
5124 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5125
5126 * ada-lang.c (exception_support_info_v0): Renamed from...
5127 (default_exception_support_info): ... this. Create new
5128 definition for v1.
5129 (ada_has_this_exception_support): Look up catch_handlers_sym.
5130 (ada_exception_support_info_sniffer): Try v0 after default.
5131
5132 2019-08-01 Tom Tromey <tromey@adacore.com>
5133
5134 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5135 gdbarch.h.
5136
5137 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5138
5139 * s12z-tdep.c: Fix include path for s12z-opc.h.
5140
5141 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5142
5143 * NEWS: Require GNU make 3.82.
5144
5145 2019-07-16 Tom Tromey <tom@tromey.com>
5146
5147 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5148 declare.
5149
5150 2019-07-30 Tom Tromey <tromey@adacore.com>
5151
5152 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5153
5154 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5155
5156 * printcmd.c (print_address_symbolic): Print negative offsets.
5157 (build_address_symbolic): Force signed arithmetic when computing
5158 offset.
5159
5160 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5161
5162 PR/24474: Add a function to lookup static variables.
5163 * NEWS: Mention this new function.
5164 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5165 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5166 * python/python.c (python_GdbMethods): Add new function.
5167
5168 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5169
5170 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5171 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5172 (objfpy_lookup_static_symbol): New function.
5173 (objfile_object_methods): Add new functions.
5174
5175 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5176
5177 * NEWS: Mention 'set|show print frame-info'. Mention new
5178 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5179 backtrace argument. Mention that python frame filtering code
5180 is now consistent with what 'backtrace' command prints.
5181
5182 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5183
5184 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5185 comments.
5186 (print_frame_info_auto, print_frame_info_source_line,
5187 print_frame_info_location, print_frame_info_source_and_location,
5188 print_frame_info_location_and_address, print_frame_info_short_location):
5189 New declarations.
5190 (struct frame_print_options): New member print_frame_info.
5191 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5192 * stack.h (get_user_print_what_frame_info): New declaration.
5193 (frame_show_address): New declaration.
5194 * stack.c (print_frame_arguments_choices): New value 'presence'.
5195 (print_frame_info_auto, print_frame_info_source_line,
5196 print_frame_info_location, print_frame_info_source_and_location,
5197 print_frame_info_location_and_address, print_frame_info_short_location,
5198 print_frame_info_choices, print_frame_info_print_what): New definitions.
5199 (print_frame_args): Only print dots for args if print frame-arguments
5200 is 'presence'.
5201 (frame_print_option_defs): New element for "frame-info".
5202 (get_user_print_what_frame_info): New function.
5203 (frame_show_address): Make non static. Move comment to stack.h.
5204 (print_frame_info_to_print_what): New function.
5205 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5206 to decide what to print.
5207 (backtrace_command_1): Handle the new print_frame_arguments_presence
5208 value.
5209 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5210 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5211 (py_print_frame): In non-mi mode, use LOCATION as default for
5212 print_what, similarly to frame information printed directly by
5213 backtrace command. Handle frame-info user option in non MI mode.
5214
5215 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5216
5217 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5218 Add case for debugging 32-bit target on 64-bit host. Revise
5219 comment.
5220
5221 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5222
5223 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5224 instead of find_function_entry_range_from_pc.
5225
5226 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5227
5228 * stack.c (find_frame_funname): Remove code which preferred
5229 minsym over symtab sym in "certain pathological cases".
5230
5231 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5232 parameter. Change type of "do_demangle" to bool.
5233 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5234 Pass suitable "prefer_sym_over_minsym" flag to
5235 build_address_symbolic(). Don't output "+" for negative offsets.
5236 * printcmd.c (print_address_symbolic): Update invocation of
5237 build_address_symbolic to include a "prefer_sym_over_minsym"
5238 flag.
5239 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5240 Restrict cases in which use of minimal symbol is preferred to that
5241 of a found symbol. Update comments.
5242
5243 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5244 for entry pc when entry pc is out of range for that FDE.
5245
5246 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5247
5248 PR gdb/24839:
5249 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5250 type.
5251
5252 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5253
5254 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5255 this function's Python signature.
5256
5257
5258 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5259
5260 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5261 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5262 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5263 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5264 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5265
5266
5267 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5268
5269 * h8300-tdep.c (h8300_register_name_common): New.
5270 h8300_register_name): Use h8300_register_name_common.
5271 (h8300s_register_name): Likewise.
5272 (h8300sx_register_name): Likewise.
5273 (h8300h_register_nam): New.
5274 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5275
5276
5277 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5278
5279 * arm-tdep.c (arm_skip_cmse_entry): New function.
5280 (arm_is_sgstubs_section): New function.
5281 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5282
5283 2019-07-22 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5286 Don't self-assign.
5287
5288 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5291 type_print.
5292
5293 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5296 so that GDB doesn't match any msymbols when searching in the
5297 TYPES_DOMAIN.
5298 (print_symbol_info): Print using typedef_print or type_print based
5299 on the type of the symbol. Add updated FIXME comment moved from...
5300 (_initialize_symtab): ... move and update FIXME comment to above.
5301
5302 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * NEWS: Mention adding -q option to "info types".
5305 * symtab.c (struct info_types_options): New struct.
5306 (info_types_options_defs): New variable.
5307 (make_info_types_options_def_group): New function.
5308 (info_types_command): Use gdb::option framework to parse options.
5309 (info_types_command_completer): New function.
5310 (_initialize_symtab): Extend the help text on "info types" and
5311 register command completer.
5312
5313 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5314
5315 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5316 (lookup_symbol_in_objfile): Change int to block_enum and add a
5317 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5318
5319 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5320
5321 * MAINTAINERS (Write After Approval): Add self.
5322
5323 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5326 instruction to the dummy code region.
5327
5328 2019-07-19 Tom Tromey <tromey@adacore.com>
5329
5330 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5331 (ARGSUSED, PARAMS, __func__): Remove rules.
5332
5333 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5334
5335 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5336 * features/arm/arm-with-iwmmxt.c: Remove.
5337 * features/arm/arm-with-iwmmxt.xml: Remove.
5338 * features/arm/arm-with-m-fpa-layout.c: Remove.
5339 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5340 * features/arm/arm-with-m-vfp-d16.c: Remove.
5341 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5342 * features/arm/arm-with-m.c: Remove.
5343 * features/arm/arm-with-m.xml: Remove.
5344 * features/arm/arm-with-neon.c: Remove.
5345 * features/arm/arm-with-neon.xml: Remove.
5346 * features/arm/arm-with-vfpv2.c: Remove.
5347 * features/arm/arm-with-vfpv2.xml: Remove.
5348 * features/arm/arm-with-vfpv3.c: Remove.
5349 * features/arm/arm-with-vfpv3.xml: Remove.
5350
5351 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5352
5353 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5354
5355 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5356
5357 * arch/aarch32.c (aarch32_create_target_description): Create
5358 target descriptions using features.
5359 * arch/arm.c (arm_create_target_description)
5360 (arm_create_mprofile_target_description): Likewise.
5361 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5362
5363 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5364
5365 * Makefile.in: Add new files.
5366 * aarch32-tdep.c: New file.
5367 * aarch32-tdep.h: New file.
5368 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5369 Call aarch32_read_description.
5370 * arch/aarch32.c: New file.
5371 * arch/aarch32.h: New file.
5372 * arch/arm.c (arm_create_target_description)
5373 (arm_create_mprofile_target_description): New function.
5374 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5375 (arm_create_target_description)
5376 (arm_create_mprofile_target_description): New declaration.
5377 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5378 read_description functions.
5379 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5380 Likewise.
5381 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5382 * arm-tdep.c (tdesc_arm_list): New variable.
5383 (arm_register_g_packet_guesses): Call create description functions.
5384 (arm_read_description) (arm_read_mprofile_description): New
5385 function.
5386 * arm-tdep.h (arm_read_description)
5387 (arm_read_mprofile_description): Add declaration.
5388 * configure.tgt: Add new files.
5389
5390 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5391
5392 * top.c (new_ui_command): Open specified terminal just once.
5393
5394 2019-07-18 Tom Tromey <tromey@adacore.com>
5395
5396 * symtab.c (main_name): Constify return type.
5397 * symfile.c (set_initial_language): Update.
5398 * symtab.h (main_name): Constify return type.
5399
5400 2019-07-17 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-winsource.c (tui_update_source_window)
5403 (tui_update_source_window_as_is)
5404 (tui_update_source_windows_with_line): Remove return.
5405 * tui/tui-disasm.c (tui_show_disassem)
5406 (tui_show_disassem_and_update_source): Remove return.
5407 * tui/tui.c (tui_reset): Remove return.
5408 * tui/tui-wingeneral.c
5409 (tui_check_and_display_highlight_if_needed): Remove return.
5410
5411 2019-07-17 Tom Tromey <tom@tromey.com>
5412
5413 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5414
5415 2019-07-17 Tom Tromey <tom@tromey.com>
5416
5417 * tui/tui-winsource.h (struct tui_exec_info_window)
5418 (struct tui_source_window_base): Move from tui-data.h.
5419 * tui/tui-winsource.c: Move many method definitions from
5420 elsewhere. Remove "structuring" comments.
5421 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5422 (tui_source_window_base::refresh_window): Move to
5423 tui-winsource.c.
5424 * tui/tui-win.c (tui_source_window_base::refresh_all)
5425 (tui_source_window_base::update_tab_width)
5426 (tui_source_window_base::set_new_height)
5427 (tui_source_window_base::do_make_visible_with_new_height): Move to
5428 tui-winsource.c.
5429 * tui/tui-source.h: Update.
5430 * tui/tui-source.c (tui_source_window_base::reset): Move to
5431 tui-winsource.c.
5432 * tui/tui-disasm.h: Update.
5433 * tui/tui-data.h (struct tui_exec_info_window): Move to
5434 tui-winsource.h.
5435 (struct tui_source_window_base): Likewise.
5436 * tui/tui-data.c (tui_source_window_base::clear_detail)
5437 (tui_source_window_base, ~tui_source_window_base): Move to
5438 tui-winsource.c.
5439
5440 2019-07-17 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-win.c (tui_resize_all)
5443 (tui_source_window_base::update_tab_width)
5444 (tui_adjust_win_heights): Update.
5445 (tui_win_info::make_invisible_and_set_new_height): Rename from
5446 make_invisible_and_set_new_height.
5447 * tui/tui-data.h (struct tui_win_info)
5448 <make_invisible_and_set_new_height>: New method.
5449
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui.c: Update.
5453 * tui/tui-source.h (struct tui_source_window): Move from
5454 tui-data.h.
5455 * tui/tui-layout.c: Update.
5456 * tui/tui-disasm.c: Update.
5457 * tui/tui-data.h (struct tui_source_window): Move to
5458 tui-source.h.
5459
5460 2019-07-17 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5463 tui-data.h.
5464 * tui/tui-data.h (struct tui_disasm_window): Move to
5465 tui-disasm.h.
5466
5467 2019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-regs.h (struct tui_data_item_window): Move from
5470 tui-data.h.
5471 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5472 * tui/tui-data.h (struct tui_data_item_window): Move to
5473 tui-regs.h.
5474 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5475
5476 2019-07-17 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui.c: Update.
5479 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5480 (tui_cmd_window::max_height): Move to tui-command.c.
5481 * tui/tui-layout.c: Update.
5482 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5483 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5484 tui-command.c.
5485 * tui/tui-command.h (struct tui_cmd_window): Move from
5486 tui-data.h.
5487 * tui/tui-command.c: Remove "structuring" comments.
5488 (tui_cmd_window::clear_detail)
5489 (tui_cmd_window::do_make_visible_with_new_height)
5490 (tui_cmd_window::max_height): Move from elsewhere.
5491
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5495 Now static.
5496 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5497 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5498
5499 2019-07-17 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui.c: Update.
5502 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5503 tui-regs.c.
5504 * tui/tui-windata.h: Remove file.
5505 * tui/tui-windata.c: Remove file.
5506 * tui/tui-win.c (tui_data_window::set_new_height)
5507 (tui_data_window::do_make_visible_with_new_height): Move to
5508 tui-regs.c.
5509 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5510 * tui/tui-regs.c: Remove "structuring" comments.
5511 (tui_data_window::first_data_item_displayed)
5512 (tui_data_window::delete_data_content_windows)
5513 (tui_data_window::erase_data_content)
5514 (tui_data_window::display_all_data)
5515 (tui_data_window::refresh_all)
5516 (tui_data_window::do_scroll_vertical)
5517 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5518 (tui_data_window::do_make_visible_with_new_height)
5519 (tui_data_window::refresh_window): Move from elsewhere.
5520 (_initialize_tui_regs): Move to end of file.
5521 * tui/tui-layout.c: Update.
5522 * tui/tui-hooks.c: Update.
5523 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5524 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5525 tui-regs.c.
5526 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5527
5528 2019-07-17 Tom Tromey <tom@tromey.com>
5529
5530 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5531 seen.
5532
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-win.c (tui_source_window_base::set_new_height)
5536 (tui_source_window_base::do_make_visible_with_new_height): Use
5537 m_has_locator field directly.
5538 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5539 method.
5540 (struct tui_source_window_base) <has_locator>: Likewise.
5541
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5545 Don't declare.
5546 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5547 Remove.
5548 * tui/tui-win.c (tui_source_window_base::set_new_height)
5549 (tui_source_window_base::set_new_height)
5550 (make_invisible_and_set_new_height)
5551 (tui_source_window_base::do_make_visible_with_new_height)
5552 (tui_source_window_base::do_make_visible_with_new_height):
5553 Update.
5554 * tui/tui-layout.c (show_source_disasm_command, show_data)
5555 (show_source_or_disasm_and_command): Update.
5556 * tui/tui-layout.c (show_layout): Update.
5557
5558 2019-07-17 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-layout.c (make_data_window): Remove.
5561 (show_data): Unify creation and re-initialization cases.
5562
5563 2019-07-17 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-layout.c (make_source_window, make_disasm_window):
5566 Remove.
5567 (show_data): Unify creation and re-initialization cases.
5568
5569 2019-07-17 Tom Tromey <tom@tromey.com>
5570
5571 * tui/tui-layout.c (make_command_window): Remove.
5572 (show_source_disasm_command, show_source_or_disasm_and_command):
5573 Unify creation and re-initialization cases.
5574
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5578 creation and re-initialization cases.
5579
5580 2019-07-17 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui-regs.c (tui_get_register): Return void.
5583
5584 2019-07-17 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5587 Simplify.
5588
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5592 resetting.
5593
5594 2019-07-17 Tom Tromey <tom@tromey.com>
5595
5596 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5597 * tui/tui-regs.c (tui_reg_layout): New function.
5598 (tui_show_registers, tui_reg_command): Use it.
5599 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5600 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5601 parameters.
5602 (tui_layout_command): Remove.
5603
5604 2019-07-17 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-layout.h (tui/tui-layout): Return void.
5607 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5608
5609 2019-07-17 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui-layout.c (show_source_disasm_command, show_data):
5612 Update.
5613 (reset_locator): Remove.
5614 (show_source_or_disasm_and_command): Update.
5615
5616 2019-07-17 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-source.c (tui_source_window_base::reset): Remove
5619 win_type parameter.
5620 * tui/tui-layout.c (make_command_window, make_source_window)
5621 (make_disasm_window, make_data_window)
5622 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5623 (reset_locator, show_source_or_disasm_and_command): Update.
5624 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5625 win_type parameter.
5626 (struct tui_source_window_base) <reset>: Likewise.
5627
5628 2019-07-17 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-layout.c (show_source_disasm_command): Use
5631 reset_locator.
5632 (reset_locator): New function.
5633 (init_and_make_win): Remove.
5634 (show_source_or_disasm_and_command): Use reset_locator.
5635
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5639 condition.
5640 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5641 Remove condition.
5642 * tui/tui-source.c (tui_source_window_base::reset): New method.
5643 * tui/tui-layout.c (make_command_window): Don't call
5644 init_and_make_win.
5645 (make_source_window, make_disasm_window): Don't call
5646 make_source_or_disasm_window.
5647 (make_data_window): Don't call init_and_make_win. Change calling
5648 convention.
5649 (show_source_disasm_command, show_data): Simplify.
5650 (make_source_or_disasm_window): Remove.
5651 (show_source_or_disasm_and_command): Simplify.
5652 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5653 (struct tui_source_window_base) <reset>: Likewise.
5654 <execution_info>: Remove initializer.
5655 * tui/tui-data.c (tui_source_window_base): Initialize
5656 execution_info.
5657
5658 2019-07-17 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5661 variable.
5662
5663 2019-07-17 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui.c (tui_rl_other_window): Update.
5666 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5667 superclass method first. Always iterate over regs_content.
5668 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5669 method.
5670 * tui/tui-win.c (tui_set_focus_command): Update.
5671
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-win.c (tui_set_focus_command): Rename from
5675 tui_set_focus. Call tui_enable.
5676 (tui_set_focus_command): Remove.
5677
5678 2019-07-17 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5681 refresh_window.
5682 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5683 touchwin.
5684 (tui_data_window::refresh_window): Call refresh_window on data
5685 items. Always call superclass refresh_window.
5686 (tui_win_info::refresh): Remove.
5687 (tui_source_window_base::refresh_window): Update.
5688 (tui_refresh_all): Update.
5689 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5690 refresh_window.
5691 (show_source_or_disasm_and_command): Likewise.
5692 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5693 (struct tui_source_window_base) <refresh>: Likewise.
5694
5695 2019-07-17 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-winsource.c (tui_clear_source_content)
5698 (tui_show_source_content): Update.
5699 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5700 whether content is empty.
5701 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5702 Remove.
5703
5704 2019-07-17 Tom Tromey <tom@tromey.com>
5705
5706 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5707 window's contents.
5708 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5709 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5710
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5714 (struct tui_data_item_window): Update.
5715
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5719 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5720 defines.
5721
5722 2019-07-17 Tom Tromey <tom@tromey.com>
5723
5724 * tui/tui-winsource.h (tui_erase_source_content)
5725 (tui_clear_source_content): Remove "display_prompt" parameter.
5726 * tui/tui-winsource.c (tui_update_source_window_as_is)
5727 (tui_update_source_windows_with_addr): Update.
5728 (tui_clear_source_content): Remove "display_prompt" parameter.
5729 (tui_erase_source_content): Likewise. Simplify.
5730 (tui_show_source_content): Update.
5731 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5732 * tui/tui-stack.c (tui_show_frame_info): Update.
5733 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5734 Remove defines.
5735
5736 2019-07-17 Tom Tromey <tom@tromey.com>
5737
5738 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5739 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5740 parameter.
5741 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5742 parameter.
5743
5744 2019-07-17 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-winsource.c (tui_clear_source_content)
5747 (tui_show_source_content, tui_show_exec_info_content)
5748 (tui_clear_exec_info_content): Update.
5749 * tui/tui-stack.c (tui_show_locator_content): Update.
5750 (tui_show_frame_info): Update.
5751 * tui/tui-source.h (tui_source_window): Don't declare.
5752 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5753 from tui_source_is_displayed.
5754 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5755 Remove field.
5756 (struct tui_source_window_base) <content_in_use>: New field. Now
5757 bool.
5758 (struct tui_source_window) <showing_source_p>: New method.
5759 (TUI_SRC_WIN): Change cast.
5760 * tui/tui-data.c (tui_initialize_static_data): Update.
5761
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5765 location_matches_p.
5766 * tui/tui-source.c (tui_source_window::location_matches_p): New
5767 method.
5768 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5769 method.
5770 * tui/tui-data.h (struct tui_source_window_base)
5771 <location_matches_p>: New method.
5772 (struct tui_source_window, struct tui_disasm_window)
5773 <location_matches_p>: Likewise.
5774
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-win.c (tui_set_win_height_command): Rename from
5778 tui_set_win_height.
5779 (tui_set_win_height_command): Remove.
5780
5781 2019-07-17 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui-source.c (tui_source_window): New constructor. Add
5784 observer.
5785 (~tui_source_window): New destructor.
5786 (tui_source_window::style_changed): New method.
5787 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5788 (tui_attach_detach_observers): Update.
5789 * tui/tui-data.h (struct tui_source_window): Make constructor not
5790 inline. Add destructor.
5791 (struct tui_source_window) <style_changed>: New method.
5792 <m_observable>: New member.
5793
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5797 * tui/tui-win.c (tui_resize_all): Fix typo.
5798
5799 2019-07-17 Tom Tromey <tom@tromey.com>
5800
5801 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5802 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5803 (tui_refresh_all): Remove "list" parameter. Use foreach.
5804 * tui/tui-win.c (window_name_completer): Use foreach.
5805 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5806 (update_tab_width): Likewise.
5807 * tui/tui-layout.c (show_layout): Update.
5808 * tui/tui-data.h (class tui_window_iterator): New.
5809 (struct all_tui_windows): New.
5810 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5811
5812 2019-07-17 Tom Tromey <tom@tromey.com>
5813
5814 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5815 parameter. Don't reference globals.
5816 (tui_reg_command): Update.
5817
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-regs.c (tui_show_registers): Simplify.
5821
5822 2019-07-17 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-regs.c (tui_show_registers): Update.
5825 (tui_show_register_group): Add win_info parameter.
5826
5827 2019-07-17 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5830 Rename from tui_display_reg_element_at_line.
5831 (tui_data_window::display_registers_from_line): Update.
5832 * tui/tui-data.h (struct tui_data_window)
5833 <display_reg_element_at_line>: New method.
5834
5835 2019-07-17 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-regs.h (tui_display_registers_from)
5838 (tui_display_registers_from_line): Don't declare.
5839 * tui/tui-windata.c (tui_data_window::display_all_data)
5840 (tui_data_window::refresh_all)
5841 (tui_data_window::do_scroll_vertical): Update.
5842 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5843 from tui_display_registers_from.
5844 (tui_display_reg_element_at_line): Update.
5845 (tui_data_window::display_registers_from_line): Rename from
5846 tui_display_registers_from_line.
5847 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5848 display_registers_from_line>: New methods.
5849
5850 2019-07-17 Tom Tromey <tom@tromey.com>
5851
5852 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5853 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5854 from tui_erase_data_content.
5855 (tui_data_window::display_all_data)
5856 (tui_data_window::refresh_all)
5857 (tui_data_window::do_scroll_vertical): Update.
5858 * tui/tui-regs.c (tui_show_registers): Update.
5859 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5860 New method.
5861
5862 2019-07-17 Tom Tromey <tom@tromey.com>
5863
5864 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5865 declare.
5866 * tui/tui-windata.c
5867 (tui_data_window::delete_data_content_windows): Rename from
5868 tui_delete_data_content_windows.
5869 (tui_data_window::display_all_data)
5870 (tui_data_window::do_scroll_vertical): Update.
5871 * tui/tui-data.h (struct tui_data_window)
5872 <delete_data_content_windows>: New method.
5873
5874 2019-07-17 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5877 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5878
5879 2019-07-17 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5882 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5883 from tui_display_all_data.
5884 * tui/tui-win.c
5885 (tui_data_window::do_make_visible_with_new_height): Update.
5886 * tui/tui-regs.c (tui_show_registers): Update.
5887 * tui/tui-layout.c (tui_set_layout): Update.
5888 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5889 method.
5890
5891 2019-07-17 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5894 * tui/tui-windata.c (tui_display_data_from): Remove.
5895 (tui_data_window::refresh_all): Update.
5896
5897 2019-07-17 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5900 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5901 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5902 tui_display_registers_from_line.
5903 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5904 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5905 "force_display" parameter.
5906
5907 2019-07-17 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5910 declare.
5911 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5912 Rename from tui_first_reg_element_no_inline.
5913 (tui_display_reg_element_at_line)
5914 (tui_display_registers_from_line): Update.
5915 * tui/tui-data.h (struct tui_data_window)
5916 <first_reg_element_no_inline>: New method.
5917
5918 2019-07-17 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-windata.c (tui_display_data_from)
5921 (tui_data_window::do_scroll_vertical): Update.
5922 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5923 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5924 Rename from tui_line_from_reg_element_no.
5925 (tui_display_registers_from_line): Update.
5926 * tui/tui-data.h (struct tui_data_window)
5927 <line_from_reg_element_no>: New method.
5928
5929 2019-07-17 Tom Tromey <tom@tromey.com>
5930
5931 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5932 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5933 tui_last_regs_line_no.
5934 (tui_display_reg_element_at_line)
5935 (tui_display_registers_from_line): Update.
5936 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5937 method.
5938
5939 2019-07-17 Tom Tromey <tom@tromey.com>
5940
5941 PR tui/24722:
5942 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5943 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5944 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5945 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5946 (tui_update_breakpoint_info): Likewise.
5947 * tui/tui-hooks.c (tui_event_create_breakpoint)
5948 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5949 Update.
5950
5951 2019-07-17 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5954
5955 2019-07-17 Tom Tromey <tom@tromey.com>
5956
5957 * tui/tui-winsource.c (tui_update_source_window_as_is)
5958 (tui_update_source_windows_with_addr): Update.
5959 * tui/tui-source.h (tui_set_source_content)
5960 (tui_show_symtab_source): Add "win_info" parameter.
5961 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5962 parameter.
5963 (tui_show_symtab_source): Likewise.
5964
5965 2019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-wingeneral.c
5968 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5969
5970 2019-07-17 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5973 (struct tui_cmd_window) <can_scroll>: New method.
5974 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5975 method.
5976
5977 2019-07-17 Tom Tromey <tromey@adacore.com>
5978
5979 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5980 do_field_signed>: Rename. Change type of "value".
5981 * ui-out.c (ui_out::field_signed): Rename from field_int.
5982 Change type of "value".
5983 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5984 type of "value".
5985 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5986 do_field_int. Change type of "value".
5987 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5988 do_field_int. Change type of "value".
5989 * tracepoint.c (trace_status_mi, tfind_1)
5990 (print_one_static_tracepoint_marker): Update.
5991 * thread.c (print_thread_info_1, print_selected_thread_frame):
5992 Update.
5993 * stack.c (print_frame, print_frame_info): Update.
5994 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5995 Update.
5996 * source.c (print_source_lines_base): Update.
5997 * skip.c (info_skip_command): Update.
5998 * record-btrace.c (btrace_ui_out_decode_error)
5999 (btrace_call_history_src_line): Update.
6000 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6001 Update.
6002 * progspace.c (print_program_space): Update.
6003 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6004 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6005 do_field_int. Change type of "value".
6006 * mi/mi-out.c (mi_ui_out::do_table_begin)
6007 (mi_ui_out::do_table_header): Update.
6008 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6009 type of "value".
6010 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6011 (mi_cmd_data_list_changed_registers, output_register)
6012 (mi_cmd_data_read_memory, mi_load_progress)
6013 (mi_cmd_trace_frame_collected): Update.
6014 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6015 Update.
6016 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6017 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6018 (mi_cmd_var_list_children, varobj_update_one): Update.
6019 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6020 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6021 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6022 * inferior.c (print_inferior): Update.
6023 * gdb_bfd.c (print_one_bfd): Update.
6024 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6025 Update.
6026 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6027 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6028 do_field_int. Change type of "value".
6029 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6030 do_field_int. Change type of "value".
6031 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6032 (print_one_breakpoint_location, print_it_catch_fork)
6033 (print_one_catch_fork, print_it_catch_vfork)
6034 (print_one_catch_vfork, print_it_catch_solib)
6035 (print_it_catch_exec, print_it_ranged_breakpoint)
6036 (print_mention_watchpoint, print_mention_masked_watchpoint)
6037 (bkpt_print_it, update_static_tracepoint): Update.
6038 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6039 * break-catch-syscall.c (print_it_catch_syscall): Update.
6040 * ada-tasks.c (print_ada_task_info): Update.
6041 * ada-lang.c (print_it_exception, print_mention_exception):
6042 Update.
6043
6044 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 PR breakpoints/24541
6047 * gdbarch.c: Regenerate.
6048 * gdbarch.h: Regenerate.
6049 * gdbarch.sh: Adjust return type and parameter types for
6050 'stap_adjust_register'.
6051 (i386_stap_adjust_register): Adjust signature and return new
6052 register name.
6053 * stap-probe.c (stap_parse_register_operand): Adjust use of
6054 'gdbarch_stap_adjust_register'.
6055
6056 2019-07-17 Tom Tromey <tromey@adacore.com>
6057
6058 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6059 declare VEC.
6060 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6061 std::vector.
6062 (struct s390_process_info): Add initializers.
6063 (s390_add_process): Use new.
6064 (s390_linux_nat_target::low_forget_process): Use delete.
6065 (s390_linux_nat_target::low_new_fork)
6066 (s390_linux_nat_target::stopped_by_watchpoint)
6067 (s390_linux_nat_target::low_prepare_to_resume)
6068 (s390_linux_nat_target::insert_watchpoint)
6069 (s390_linux_nat_target::insert_hw_breakpoint)
6070 (s390_linux_nat_target::remove_watchpoint)
6071 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6072
6073 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6074
6075 * aarch64-fbsd-nat.c: Include regcache.h.
6076 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6077 argument.
6078 (aarch64_fbsd_nat_target::fetch_registers)
6079 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6080 variable.
6081 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6082
6083 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6084
6085 * fbsd-nat.c: Include gdbarch.h.
6086
6087 2019-07-15 Tom Tromey <tromey@adacore.com>
6088
6089 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6090
6091 2019-07-15 Tom Tromey <tromey@adacore.com>
6092
6093 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6094 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6095 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6096 * cli-out.c (cli_ui_out::do_field_int): New method.
6097 * ui-out.c (ui_out::field_unsigned): New method.
6098 * symfile.c (generic_load): Use field_unsigned.
6099 (print_transfer_performance): Likewise.
6100 * record-btrace.c (ui_out_field_uint): Remove.
6101 (btrace_call_history_insn_range, btrace_call_history): Use
6102 field_unsigned.
6103 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6104 field_unsigned.
6105 * ui-out.h (class ui_out) <field_unsigned>: New method.
6106 <do_field_unsigned>: Likewise.
6107
6108 2019-07-15 Tom Tromey <tromey@adacore.com>
6109
6110 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6111 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6112 * target.c (flash_erase_command): Use field_string.
6113 * infrun.c (print_signal_received_reason): Use field_string.
6114 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6115 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6116 field_string.
6117 * ada-tasks.c (print_ada_task_info): Use field_string.
6118
6119 2019-07-15 Tom Tromey <tromey@adacore.com>
6120
6121 * target.c (flash_erase_command): Use field_core_addr.
6122 * symfile.c (generic_load): Use field_core_addr.
6123 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6124 Use field_core_addr.
6125 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6126 field_core_addr.
6127
6128 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6131 value if its desired type is smaller than a CORE_ADDR and signed.
6132
6133 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6134
6135 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6136 of changes to field names, and use new is_reference field to
6137 decide if a property is a reference or not.
6138 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6139 field.
6140 (struct dwarf2_property_baton): Update header comment, rename
6141 'referenced_type' to 'property_type' and update comments.
6142 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6143 default property type, store in property baton, update to take
6144 accound of renamed field.
6145 (read_func_scope): Update call to attr_to_dynamic_prop.
6146 (read_array_type): Likewise.
6147 (dwarf2_per_cu_addr_sized_int_type): New function.
6148 (read_subrange_index_type): Move type finding code to
6149 dwarf2_per_cu_addr_sized_int_type.
6150 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6151 (dwarf2_per_cu_addr_type): New function.
6152 (set_die_type): Update calls to attr_to_dynamic_prop.
6153
6154 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 * dwarf2read.c (read_subrange_index_type): New function.
6157 (read_subrange_type): Move code into new function and call it.
6158 * gdbtypes.c (create_range_type): Add some asserts.
6159
6160 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6163 update return statements.
6164 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6165 declaration, and update comment to match.
6166 * gdbtypes.c (resolve_dynamic_array): Update call to
6167 dwarf2_evaluate_property to match new return type.
6168
6169 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * valarith.c (value_subscripted_rvalue): Change lowerbound
6172 parameter type from int to LONGEST.
6173 * value.h (value_subscripted_rvalue): Likewise in declaration.
6174
6175 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6176
6177 * cli/cli-utils.c (info_print_command_completer): New function.
6178 * cli/cli-utils.h: Add 'completer.h' include, and forward
6179 declaration for 'struct cmd_list_element'.
6180 (info_print_command_completer): Declare.
6181 * stack.c (_initialize_stack): Add completer for 'info locals' and
6182 'info args'.
6183 * symtab.c (_initialize_symtab): Add completer for 'info
6184 variables' and 'info functions'.
6185 * NEWS: Mention completion for additional info commands.
6186
6187 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * cli/cli-utils.c (extract_info_print_args): Delete.
6190 (extract_arg_maybe_quoted): Delete.
6191 (info_print_options_defs): New variable.
6192 (make_info_print_options_def_group): New function.
6193 (extract_info_print_options): Define new function.
6194 * cli/cli-utils.h (extract_info_print_args): Delete.
6195 (struct info_print_options): New structure.
6196 (extract_info_print_options): Declare new function.
6197 * stack.c (info_locals_command): Update to use new
6198 extract_info_print_options, also add a header comment.
6199 (info_args_command): Likewise.
6200 * symtab.c (info_variables_command): Likewise.
6201 (info_functions_command): Likewise.
6202
6203 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6206 to extract string arguments.
6207 * common/common-utils.c (extract_string_maybe_quoted): New function.
6208 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6209
6210 2019-07-11 Tom Tromey <tromey@adacore.com>
6211
6212 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6213 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6214 * top.h (gdbinit): Don't declare.
6215 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6216 into...
6217 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6218 * top.c (gdb_init): Don't call init_cli_cmds.
6219 (gdbinit): Remove.
6220 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6221
6222 2019-07-11 Tom Tromey <tromey@adacore.com>
6223
6224 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6225 after it has been moved.
6226
6227 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 * valops.c (value_must_coerce_to_target): Change return type to
6230 bool.
6231 * value.h (value_must_coerce_to_target): Likewise.
6232
6233 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * breakpoint.c (is_hardware_watchpoint): Remove
6236 forward-declaration.
6237 (is_masked_watchpoint): Change return type to bool.
6238 (is_tracepoint): Likewise.
6239 (is_breakpoint): Likewise.
6240 (is_hardware_watchpoint): Likewise.
6241 (is_watchpoint): Likewise.
6242 (is_no_memory_software_watchpoint): Likewise.
6243 (is_catchpoint): Likewise.
6244 (breakpoint_1): Make FILTER parameter's return type bool.
6245 is_masked_watchpoint): Change return type to bool.
6246 (save_breakpoints): Make FILTER parameter's return type bool.
6247 * breakpoint.h (is_breakpoint): Change return type to bool.
6248 (is_watchpoint): Likewise.
6249 (is_catchpoint): Likewise.
6250 (is_tracepoint): Likewise.
6251
6252 2019-07-10 Tom Tromey <tom@tromey.com>
6253
6254 * defs.h: Don't include gdbarch.h.
6255 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6256 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6257 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6258 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6259 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6260 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6261 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6262 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6263 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6264 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6265 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6266 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6267 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6268 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6269 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6270 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6271 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6272 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6273 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6274 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6275 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6276 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6277 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6278 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6279 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6280 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6281 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6282
6283 2019-07-10 Tom Tromey <tromey@adacore.com>
6284
6285 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6286 * breakpoint.c (init_ada_exception_breakpoint): Register as
6287 bp_catchpoint.
6288 (print_one_breakpoint_location, print_one_breakpoint): Use
6289 is_ada_exception_catchpoint.
6290 * ada-lang.c (class ada_catchpoint_location): Pass
6291 bp_loc_software_breakpoint to bp_location constructor.
6292 (is_ada_exception_catchpoint): New function.
6293
6294 2019-07-10 Tom Tromey <tromey@adacore.com>
6295
6296 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6297 VEC.
6298 (struct arm_exidx_entry): New method operator<.
6299 (struct arm_exidx_data) <section_maps>: Change type.
6300 (arm_exidx_data_free): Remove.
6301 (arm_exidx_data_key): Change type. Move lower.
6302 (arm_exidx_new_objfile): Update.
6303 (arm_compare_exidx_entries): Remove.
6304 (arm_find_exidx_entry, _initialize_arm_tdep)
6305
6306 2019-07-10 Tom Tromey <tromey@adacore.com>
6307
6308 * solib-spu.c (ocl_program_data_key): Change type.
6309 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6310 Update.
6311
6312 2019-07-10 Tom Tromey <tromey@adacore.com>
6313
6314 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6315 (struct solib_aix_inferior_data) <library_list>: Change type.
6316 (solib_aix_inferior_data_handle): Change type.
6317 (get_solib_aix_inferior_data): Update.
6318 (solib_aix_free_library_list): Remove.
6319 (library_list_start_library): Update.
6320 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6321 return type.
6322 (solib_aix_get_library_list)
6323 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6324 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6325
6326 2019-07-10 Tom Tromey <tromey@adacore.com>
6327
6328 * solib-dsbt.c (struct dsbt_info): Add initializers.
6329 (solib_dsbt_pspace_data): Change type.
6330 (dsbt_pspace_data_cleanup): Remove.
6331 (get_dsbt_info, _initialize_dsbt_solib): Update.
6332
6333 2019-07-10 Tom Tromey <tromey@adacore.com>
6334
6335 * spu-tdep.c (spu_overlay_data): Change type.
6336 (spu_get_overlay_table, spu_overlay_new_objfile)
6337 (_initialize_spu_tdep): Update.
6338
6339 2019-07-10 Tom Tromey <tromey@adacore.com>
6340
6341 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6342 destructor.
6343 (dbx_objfile_data_key): Change type and declare later.
6344 (DBX_SYMFILE_INFO): Rewrite.
6345 * dbxread.c (dbx_objfile_data_key): Change type.
6346 (dbx_symfile_init): Update.
6347 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6348 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6349 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6350
6351 2019-07-10 Tom Tromey <tromey@adacore.com>
6352
6353 * jit.c (jit_program_space_key): Change type. Move lower.
6354 (get_jit_program_space_data): Update.
6355 (jit_program_space_data_cleanup): Remove.
6356 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6357 Update.
6358 (struct jit_program_space_data): Add initializers.
6359
6360 2019-07-10 Tom Tromey <tromey@adacore.com>
6361
6362 * solib-darwin.c (struct darwin_info): Add initializers.
6363 (solib_darwin_pspace_data): Change type.
6364 (darwin_pspace_data_cleanup): Remove.
6365 (get_darwin_info, _initialize_darwin_solib): Update.
6366
6367 2019-07-10 Tom Tromey <tromey@adacore.com>
6368
6369 * remote-sim.c (struct sim_inferior_data): Add initializers,
6370 constructor, and destructor.
6371 (sim_inferior_data_key): Change type. Move lower.
6372 (check_for_duplicate_sim_descriptor): Update.
6373 (get_sim_inferior_data): Use new. Update.
6374 (~sim_inferior_data_cleanup): Rename from
6375 sim_inferior_data_cleanup. Simplify.
6376 (gdbsim_close_inferior, simulator_command)
6377 (sim_command_completer, _initialize_remote_sim): Update.
6378 (next_pid, INITIAL_PID): Move earlier.
6379
6380 2019-07-10 Tom Tromey <tromey@adacore.com>
6381
6382 * python/python-internal.h (create_thread_object): Return
6383 gdbpy_ref.
6384 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6385 * python/py-inferior.c (struct threadlist_entry): Add
6386 constructor.
6387 <thread_obj>: Now a gdbpy_ref.
6388 (thread_to_thread_object): Update.
6389 (add_thread_object): Use new.
6390 (delete_thread_object): Use delete.
6391 (infpy_threads): Update.
6392 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6393 GIL.
6394
6395 2019-07-10 Tom Tromey <tromey@adacore.com>
6396
6397 * valops.c (value_cast): Specialize error message for Ada.
6398
6399 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6402
6403 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6406 bpstat_should_step): Return bool, adjust comments.
6407 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6408 bpstat_should_step): Likewise.
6409
6410 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6411
6412 * features/Makefile: Use feature target descriptions for Arm.
6413 * features/arm/arm-core.c: Generate new file.
6414 * features/arm/arm-fpa.c: Likewise.
6415 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6416 * features/arm/arm-m-profile.c: Likewise.
6417 * features/arm/arm-vfpv2.c: Likewise.
6418 * features/arm/arm-vfpv3.c: Likewise.
6419 * features/arm/xscale-iwmmxt.c: Likewise.
6420 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6421
6422 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6423
6424 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6425 ptrace earlier.
6426
6427 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6428
6429 * features/aarch64-pauth.c: Regenerate.
6430
6431 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6434 bool.
6435 (bpstat_what): Use false instead of 0.
6436
6437 2019-07-09 Pedro Alves <palves@redhat.com>
6438
6439 * break-catch-throw.c (is_exception_catchpoint): New.
6440 * breakpoint.c (print_one_breakpoint_location): New parameter
6441 'raw_loc'. Handle it. Use
6442 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6443 looking at the breakpoint's type.
6444 (print_one_breakpoint): If handling "maint info breakpoints", also
6445 print locations of exception catchpoints.
6446 * breakpoint.h (is_exception_catchpoint): Declare.
6447
6448 2019-07-09 Pedro Alves <palves@redhat.com>
6449
6450 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6451 "addr" field.
6452 (allocate_location_exception_catchpoint): New.
6453 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6454 (initialize_throw_catchpoint_ops): Install
6455 allocate_location_exception_catchpoint as allocate_location
6456 method.
6457 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6458 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6459 bp_loc_other.
6460 (breakpoint_address_is_meaningful): Delete.
6461 (bl_address_is_meaningful): New.
6462 (breakpoint_locations_match): Adjust comment.
6463 (bp_location_from_bp_type): New, factored out of...
6464 (bp_location::bp_location(breakpoint *)): ... this.
6465 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6466 factored out of...
6467 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6468 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6469 breakpoint_address_is_meaningful.
6470 (bp_locations_compare): Adjust comment.
6471 (update_global_location_list): Use bl_address_is_meaningful
6472 instead of breakpoint_address_is_meaningful.
6473 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6474 explicit.
6475 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6476 * python/py-breakpoint.c (bppy_get_location): No longer check
6477 whether location is null.
6478
6479 2019-07-09 Pedro Alves <palves@redhat.com>
6480
6481 PR c++/15468
6482 * breakpoint.c (print_one_breakpoint_location): Remove
6483 single-location assert.
6484
6485 2019-07-09 Tom Tromey <tom@tromey.com>
6486
6487 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6488 * configure: Rebuild.
6489 * configure.ac: Change common to gdbsupport.
6490 * gdbsupport: Rename from common.
6491 * acinclude.m4: Change common to gdbsupport.
6492 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6493 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6494 gdbsupport.
6495 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6496 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6497 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6498 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6499 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6500 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6501 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6502 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6503 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6504 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6505 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6506 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6507 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6508 coff-pe-read.c, command.h, compile/compile-c-support.c,
6509 compile/compile-c.h, compile/compile-cplus-symbols.c,
6510 compile/compile-cplus-types.c, compile/compile-cplus.h,
6511 compile/compile-loc2c.c, compile/compile.c, completer.c,
6512 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6513 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6514 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6515 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6516 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6517 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6518 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6519 features/aarch64-core.c, features/aarch64-fpu.c,
6520 features/aarch64-pauth.c, features/aarch64-sve.c,
6521 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6522 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6523 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6524 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6525 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6526 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6527 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6528 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6529 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6530 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6531 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6532 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6533 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6534 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6535 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6536 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6537 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6538 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6539 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6540 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6541 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6542 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6543 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6544 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6545 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6546 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6547 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6548 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6549 minsyms.c, mips-linux-tdep.c, namespace.h,
6550 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6551 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6552 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6553 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6554 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6555 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6556 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6557 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6558 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6559 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6560 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6561 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6562 procfs.c, producer.c, progspace.h, psymtab.h,
6563 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6564 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6565 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6566 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6567 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6568 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6569 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6570 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6571 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6572 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6573 target-memory.c, target.c, target.h, target/waitstatus.c,
6574 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6575 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6576 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6577 unittests/array-view-selftests.c,
6578 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6579 unittests/common-utils-selftests.c,
6580 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6581 unittests/format_pieces-selftests.c,
6582 unittests/function-view-selftests.c,
6583 unittests/lookup_name_info-selftests.c,
6584 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6585 unittests/mkdir-recursive-selftests.c,
6586 unittests/observable-selftests.c,
6587 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6588 unittests/parse-connection-spec-selftests.c,
6589 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6590 unittests/scoped_fd-selftests.c,
6591 unittests/scoped_mmap-selftests.c,
6592 unittests/scoped_restore-selftests.c,
6593 unittests/string_view-selftests.c, unittests/style-selftests.c,
6594 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6595 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6596 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6597 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6598 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6599 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6600
6601 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6602
6603 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6604 bool value.
6605 (decode_digits_ordinary): Set explicit_line field in sal.
6606 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6607 symtab_and_line that was set on an explicit line number in
6608 assembler code. Do always update the recorded symtab and line if
6609 we do skip the prologue.
6610
6611 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * breakpoint.c (set_breakpoint_location_function): Remove
6614 explicit_loc parameter.
6615 (momentary_breakpoint_from_master): Update call to
6616 set_breakpoint_location_function.
6617 (add_location_to_breakpoint): Likewise.
6618
6619 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6622 required features based on default bfd type when no specific bfd
6623 is present.
6624
6625 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6626
6627 * NEWS: Mention that GDB printf and eval commands can now print
6628 C-style and Ada-style convenience var strings without
6629 calling the inferior.
6630 * printcmd.c (printf_c_string): Locally print GDB internal var
6631 instead of transiting via the inferior.
6632 (printf_wide_c_string): Likewise.
6633
6634 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6635
6636 PR breakpoints/25011
6637 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6638
6639 2019-07-04 Tom Tromey <tom@tromey.com>
6640
6641 PR tui/24724:
6642 * tui/tui-winsource.c (tui_clear_source_content): Update.
6643 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6644 (tui_update_breakpoint_info): Update.
6645 (tui_set_exec_info_content): Update.
6646 * tui/tui-source.c (tui_set_source_content_nil): Update.
6647 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6648 has_break.
6649 * tui/tui-data.h (enum tui_bp_flag): New.
6650 (tui_bp_flags): New enum flags type.
6651 (struct tui_source_element) <break_mode>: Change type. Rename
6652 from has_break.
6653 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6654 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6655 constants.
6656 * tui/tui-winsource.h: Fix comment.
6657
6658 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6659
6660 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6661 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6662 (store_fpregs_to_thread)
6663 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6664 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6665 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6666 (IWMMXT_REGS_SIZE): Add define.
6667 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6668 (fetch_vfp_regs, store_vfp_regs)
6669 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6670 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6671
6672 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6673
6674 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6675 defines.
6676 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6677 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6678 (ARM_INT_REGISTER_SIZE): ...to this.
6679 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6680 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6681 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6682 (arm_linux_collect_gregset, supply_nwfpe_register)
6683 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6684 defines.
6685 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6686 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6687 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6688 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6689 (arm_return_in_memory, arm_store_return_value)
6690 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6691 (arm_record_ld_st_multiple): Likewise.
6692 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6693 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6694
6695 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6696
6697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6698 AARCH64_DISPLACED_MODIFIED_INSNS.
6699 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6700 (aarch64_displaced_step_copy_insn): Likewise.
6701 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6702 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6703 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6704 ARM_DISPLACED_MODIFIED_INSNS.
6705 * arm-tdep.c (arm_gdbarch_init): Likewise.
6706 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6707 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6708 (struct arm_displaced_step_closure): Use
6709 ARM_DISPLACED_MODIFIED_INSNS.
6710
6711 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6712
6713 * features/Makefile: Remove unused xml files.
6714 * features/aarch64.xml: Remove.
6715 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6716 * features/i386/amd64-avx-avx512.xml: Remove.
6717 * features/i386/amd64-avx-linux.xml: Remove.
6718 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6719 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6720 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6721 * features/i386/amd64-avx-mpx.xml: Remove.
6722 * features/i386/amd64-avx.xml: Remove.
6723 * features/i386/amd64-linux.xml: Remove.
6724 * features/i386/amd64-mpx-linux.xml: Remove.
6725 * features/i386/amd64-mpx.xml: Remove.
6726 * features/i386/amd64.xml: Remove.
6727 * features/i386/i386-avx-avx512-linux.xml: Remove.
6728 * features/i386/i386-avx-avx512.xml: Remove.
6729 * features/i386/i386-avx-linux.xml: Remove.
6730 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6731 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6732 * features/i386/i386-avx-mpx-linux.xml: Remove.
6733 * features/i386/i386-avx-mpx.xml: Remove.
6734 * features/i386/i386-avx.xml: Remove.
6735 * features/i386/i386-linux.xml: Remove.
6736 * features/i386/i386-mmx-linux.xml: Remove.
6737 * features/i386/i386-mmx.xml: Remove.
6738 * features/i386/i386-mpx-linux.xml: Remove.
6739 * features/i386/i386-mpx.xml: Remove.
6740 * features/i386/i386.xml: Remove.
6741 * features/i386/x32-avx-avx512-linux.xml: Remove.
6742 * features/i386/x32-avx-linux.xml: Remove.
6743 * features/i386/x32-linux.xml: Remove.
6744
6745 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6746
6747 * regformats/aarch64.dat: Remove.
6748 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6749 * regformats/i386/amd64-avx-linux.dat: Remove.
6750 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6751 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6752 * regformats/i386/amd64-linux.dat: Remove.
6753 * regformats/i386/amd64-mpx-linux.dat: Remove.
6754 * regformats/i386/amd64.dat: Remove.
6755 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6756 * regformats/i386/i386-avx-linux.dat: Remove.
6757 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6758 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6759 * regformats/i386/i386-linux.dat: Remove.
6760 * regformats/i386/i386-mmx-linux.dat: Remove.
6761 * regformats/i386/i386-mpx-linux.dat: Remove.
6762 * regformats/i386/i386.dat: Remove.
6763 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6764 * regformats/i386/x32-avx-linux.dat: Remove.
6765 * regformats/i386/x32-linux.dat: Remove.
6766
6767 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6768
6769 * aarch64-tdep.c: Remove xml self tests.
6770 * amd64-linux-tdep.c: Likewise.
6771 * amd64-tdep.c: Likewise.
6772 * i386-linux-tdep.c: Likewise.
6773 * i386-tdep.c: Likewise.
6774
6775 2019-07-03 Pedro Alves <palves@redhat.com>
6776
6777 PR cli/24732
6778 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6779 (pipe_cmd_option_defs): New.
6780 (make_pipe_cmd_options_def_group): New.
6781 (pipe_command): Use gdb::option::process_options.
6782 (pipe_command_completer): New function.
6783 (_initialize_cli_cmds): Install completer for "pipe" command.
6784
6785 2019-07-03 Pedro Alves <palves@redhat.com>
6786
6787 * cli/cli-option.c (union option_value) <string>: New field.
6788 (struct option_def_and_value): Add ctor, move ctor, dtor and
6789 use DISABLE_COPY_AND_ASSIGN.
6790 (option_def_and_value::clear_value): New.
6791 (parse_option, save_option_value_in_ctx, get_val_type_str)
6792 (add_setshow_cmds_for_options): Handle var_string.
6793 * cli-option.h (union option_def::var_address) <string>: New
6794 field.
6795 (struct string_option_def): New.
6796 * maint-test-options.c (struct test_options_opts): Add default
6797 ctor and use DISABLE_COPY_AND_ASSIGN.
6798 <string_opt>: New field.
6799 (test_options_opts::~test_options_opts): New.
6800 (test_options_opts::dump): Also dump "-string".
6801 (test_options_option_defs): Install "string.
6802
6803 2019-07-03 Pedro Alves <palves@redhat.com>
6804
6805 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6806 option_value with a null enumeration.
6807 (complete_options): Save the option values in the context.
6808 (save_option_value_in_ctx): New, factored out from ...
6809 (process_options): ... here.
6810 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6811 of the function.
6812 * maint-test-options.c (test_options_opts::dump): New, factored
6813 out from ...
6814 (maintenance_test_options_command_mode): ... here.
6815 (maintenance_test_options_command_completion_result): Delete.
6816 (maintenance_test_options_command_completion_text): Update
6817 comment.
6818 (maintenance_show_test_options_completion_result): Change
6819 prototype. Just print
6820 maintenance_test_options_command_completion_text.
6821 (save_completion_result): New.
6822 (maintenance_test_options_completer_mode): Pass options context to
6823 complete_options, and then save a dump.
6824 (_initialize_maint_test_options): Use add_cmd to install "maint
6825 show test-options-completion-result".
6826
6827 2019-07-03 Pedro Alves <palves@redhat.com>
6828
6829 * NEWS (New commands): Mention "with" and "maint with".
6830 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6831 (with_command, with_command_completer): New.
6832 (pipe_command): Adjust to new repeat_previous
6833 interface.
6834 (_initialize_cli_cmds): Install the "with" command and its "w"
6835 alias.
6836 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6837 declarations.
6838 * cli/cli-setshow.c (parse_cli_var_uinteger)
6839 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6840 argument strings for all var_types.
6841 (get_setshow_command_value_string): New, factored out from ...
6842 (do_show_command): ... this.
6843 * cli/cli-setshow.h: Include <string>.
6844 (get_setshow_command_value_string): Declare.
6845 * command.h (repeat_previous): Now returns const char *. Adjust
6846 comment.
6847 * maint.c: Include "cli/cli-cmds.h".
6848 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6849 (_initialize_maint_cmds): Register the "maintenance with" command.
6850 * top.c (repeat_previous): Move bits from pipe_command here:
6851 Return the saved command line, if any; error out if there's no
6852 command to relaunch.
6853
6854 2019-07-03 Pedro Alves <palves@redhat.com>
6855
6856 * NEWS (New commands): Mention "maint set/show test-settings"
6857 instead of "maint test-settings".
6858 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6859 (maintenance_test_settings_set_list): Rename to ...
6860 (maintenance_set_test_settings_list): ... this.
6861 (maintenance_test_settings_show_list): Rename to ...
6862 (maintenance_show_test_settings_list): ... this.
6863 (maintenance_test_settings_cmd): Delete.
6864 (maintenance_test_settings_set_cmd): ...
6865 (maintenance_set_test_settings_cmd): ... this.
6866 (maintenance_test_settings_show_cmd): ...
6867 (maintenance_show_test_settings_cmd): ... this.
6868 (maintenance_test_settings_show_value_cmd):
6869 (maintenance_show_test_settings_value_cmd): ... this.
6870 (_initialize_maint_test_settings): No longer install the "maint
6871 test-settings" prefix command. Rename "maint test-settings set"
6872 to "maint set test-settings", and "maint test-settings show" to
6873 "maint show test-settings". Adjust all subcommands.
6874
6875 2019-07-03 Pedro Alves <palves@redhat.com>
6876
6877 * maint-test-settings.c: Fix file's intro comment. Replace all
6878 references to "test-options" with references to "test-settings",
6879 in comments.
6880
6881 2019-07-03 Pedro Alves <palves@redhat.com>
6882
6883 * maint-test-settings.c (maintenance_test_settings_xxx)
6884 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6885 New.
6886 (maintenance_test_settings_enums): Use them.
6887 (maintenance_test_settings_enum): Default to
6888 maintenance_test_settings_xxx.
6889 (_initialize_maint_test_settings): Initialize
6890 MAINTENANCE_TEST_SETTINGS_FILENAME.
6891
6892 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6893
6894 * breakpoint.h (remove_breakpoints_inf): Change return type to
6895 void, move function documentation here.
6896 * breakpoint.c (remove_breakpoints_inf): Change return type to
6897 void, move function documentation to header.
6898
6899 2019-07-02 Pedro Alves <palves@redhat.com>
6900
6901 * NEWS (Completion improvements): Mention "info threads".
6902 * thread.c (struct info_threads_opts, info_threads_option_defs)
6903 (make_info_threads_options_def_group): New.
6904 (info_threads_command): Use gdb::option::process_options.
6905 (info_threads_command_completer): New.
6906 (_initialize_thread): Use gdb::option::build_help to build the
6907 help text for "info threads".
6908
6909 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6910
6911 * defs.h (generic_load): Move from here...
6912 * symfile.h (generic_load): ... to here. Rename name parameter
6913 to args.
6914 * symfile.c (generic_load): Add comment.
6915
6916 2019-07-01 Tom Tromey <tromey@adacore.com>
6917
6918 * dwarf2read.c
6919 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6920 declaration of without_params. Fix formatting.
6921
6922 2019-07-01 Tom Tromey <tromey@adacore.com>
6923
6924 * ada-exp.y (find_primitive_type): Update.
6925 * ada-lang.h (ada_lookup_symbol): Update.
6926 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6927 parameter.
6928 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6929
6930 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6931
6932 PR breakpoints/24541
6933 * gdbarch.c: Regenerate.
6934 * gdbarch.h: Regenerate.
6935 * gdbarch.sh: Add 'stap_adjust_register'.
6936 * i386-tdep.c: Include '<unordered_set>'.
6937 (i386_stap_adjust_register): New function.
6938 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6939 * stap-probe.c (stap_parse_register_operand): Call
6940 'gdbarch_stap_adjust_register'.
6941
6942 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6943
6944 PR python/24742
6945 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6946 * python/python.c (do_start_initialization): Use 'xmalloc'
6947 instead of 'PyMem_Malloc'.
6948
6949 2019-06-28 Tom Tromey <tromey@adacore.com>
6950
6951 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6952 for Ada.
6953
6954 2019-06-27 Tom Tromey <tromey@adacore.com>
6955
6956 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6957 objfile_key.
6958 (arm_find_mapping_symbol, arm_record_special_symbol)
6959 (_initialize_arm_tdep): Update.
6960 (arm_objfile_data_free): Remove.
6961
6962 2019-06-27 Tom Tromey <tromey@adacore.com>
6963
6964 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6965 to cp_print_static_field.
6966
6967 2019-06-26 Tom Tromey <tromey@adacore.com>
6968
6969 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6970 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6971 declare.
6972
6973 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6974
6975 * features/aarch64-core.c (create_feature_aarch64_core):
6976 Regenerate.
6977 * features/aarch64-core.xml: Add cpsr flags.
6978
6979 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6980
6981 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6982 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6983
6984 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6985
6986 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6987 field.
6988 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6989 use.
6990 (arm_record_special_symbol): Don't insert new symbol in sorted
6991 position, push it at the end.
6992
6993 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6994
6995 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6996 (arm_mapping_symbol_s): Remove.
6997 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6998 (arm_mapping_symbol_vec): New typedef.
6999 (struct arm_per_objfile): Add constructor.
7000 <section_maps>: Change type to
7001 std::unique_ptr<arm_mapping_symbol_vec[]>.
7002 (arm_compare_mapping_symbols): Remove.
7003 (arm_find_mapping_symbol): Adjust to section_maps type change.
7004 (arm_objfile_data_free): Call delete on arm_per_objfile.
7005 (arm_record_special_symbol): Adjust to section_maps type change.
7006 Allocate arm_per_objfile with new.
7007
7008 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7009
7010 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7011 with the command prefix.
7012
7013 2019-06-25 Tom Tromey <tom@tromey.com>
7014
7015 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7016 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7017
7018 2019-06-25 Tom Tromey <tom@tromey.com>
7019
7020 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7021 type.
7022 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7023 protected.
7024
7025 2019-06-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-winsource.c
7028 (tui_source_window_base::set_is_exec_point_at): Add check against
7029 LOA_ADDRESS.
7030
7031 2019-06-25 Tom Tromey <tom@tromey.com>
7032
7033 * tui/tui-source.c (tui_set_source_content): Don't check before
7034 xfree.
7035 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7036
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7038
7039 * tui/tui-winsource.h (tui_update_source_window_as_is)
7040 (tui_alloc_source_buffer, tui_line_is_displayed)
7041 (tui_addr_is_displayed): Change type of win_info.
7042 * tui/tui-winsource.c (tui_update_source_window_as_is)
7043 (tui_clear_source_content, tui_show_source_line)
7044 (tui_show_source_content, tui_source_window_base::refill)
7045 (tui_source_window_base::set_is_exec_point_at)
7046 (tui_source_window_base::set_is_exec_point_at)
7047 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7048 (tui_alloc_source_buffer, tui_line_is_displayed)
7049 (tui_addr_is_displayed): Change type of win_info. Update.
7050 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7051 (tui_source_window_base::do_make_visible_with_new_height):
7052 Update.
7053 * tui/tui-source.c (tui_set_source_content)
7054 (tui_set_source_content_nil)
7055 (tui_source_window::do_scroll_vertical): Update.
7056 * tui/tui-layout.c (show_layout): Update.
7057 * tui/tui-disasm.c (tui_set_disassem_content)
7058 (tui_disasm_window::do_scroll_vertical): Update.
7059 * tui/tui-data.h (tui_win_content): Remove.
7060 (struct tui_gen_win_info) <content, content_size>: Remove.
7061 (struct tui_source_element): Add initializers and destructor.
7062 (union tui_which_element, struct tui_win_element): Remove.
7063 (struct tui_source_window_base) <content>: New field.
7064 (struct tui_data_window): Remove destructor.
7065 (tui_alloc_content, tui_free_win_content)
7066 (tui_free_all_source_wins_content): Don't declare.
7067 * tui/tui-data.c (tui_initialize_static_data): Update.
7068 (init_content_element, tui_alloc_content): Remove.
7069 (~tui_gen_win_info): Update.
7070 (~tui_data_window, tui_free_all_source_wins_content)
7071 (tui_free_win_content, free_content, free_content_elements):
7072 Remove.
7073
7074 2019-06-25 Tom Tromey <tom@tromey.com>
7075
7076 * tui/tui-winsource.h (tui_clear_source_content)
7077 (tui_erase_source_content, tui_show_source_content): Change type
7078 of win_info.
7079 * tui/tui-winsource.c (tui_clear_source_content)
7080 (tui_erase_source_content, tui_show_source_content): Change type
7081 of win_info.
7082 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7083 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7084 win_info.
7085 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7086 win_info.
7087 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7088
7089 2019-06-25 Tom Tromey <tom@tromey.com>
7090
7091 * tui/tui-winsource.c (tui_clear_source_content)
7092 (tui_source_window_base::set_is_exec_point_at): Update.
7093 * tui/tui-source.c (tui_set_source_content_nil): Update.
7094 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7095 a bool.
7096 * tui/tui-data.c (init_content_element): Update.
7097
7098 2019-06-25 Tom Tromey <tom@tromey.com>
7099
7100 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7101 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7102 * tui/tui-layout.c (init_and_make_win): Update.
7103 * tui/tui.h (enum tui_win_type): Update.
7104 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7105 tui_win_is_auxillary.
7106 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7107 tui_win_is_auxillary.
7108
7109 2019-06-25 Tom Tromey <tom@tromey.com>
7110
7111 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7112 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7113 (tui_delete_data_content_windows, tui_display_all_data)
7114 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7115 Update.
7116 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7117 * tui/tui-regs.c (tui_last_regs_line_no)
7118 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7119 (tui_show_registers): Update.
7120 (tui_show_register_group): Return void. Update.
7121 (tui_display_registers_from, tui_display_reg_element_at_line)
7122 (tui_display_registers_from_line, tui_check_register_values):
7123 Update.
7124 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7125 member.
7126 (struct tui_data_window) <regs_content>: Now a std::vector.
7127 <regs_content_count>: Remove.
7128 (tui_add_content_elements, tui_free_data_content): Don't declare.
7129 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7130 (init_content_element): Remove DATA_WIN case. Add assert.
7131 (tui_add_content_elements): Remove.
7132 (tui_data_window): Update.
7133 (tui_free_data_content): Remove.
7134 (free_content_elements): Remove DATA_WIN case.
7135
7136 2019-06-25 Tom Tromey <tom@tromey.com>
7137
7138 * tui/tui-data.c (tui_data_item_window): Update.
7139 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7140 * tui/tui-windata.c (tui_display_all_data)
7141 (tui_display_data_from_line): Update.
7142 (tui_check_data_values): Remove.
7143 * tui/tui-regs.c (tui_show_register_group)
7144 (tui_display_reg_element_at_line): Update.
7145 * tui/tui-hooks.c (tui_register_changed)
7146 (tui_refresh_frame_and_register_information): Call
7147 tui_check_register_values.
7148 * tui/tui-data.h (struct tui_data_window) <data_content,
7149 data_content_count, data_type>: Remove.
7150 (enum tui_data_type): Remove.
7151
7152 * tui/tui-data.c (tui_data_window::clear_detail)
7153 (~tui_data_window): Update.
7154
7155 2019-06-25 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7158 declare.
7159 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7160 Rename from tui_first_data_item_displayed. Update.
7161 (tui_data_window::refresh_all)
7162 (tui_data_window::do_scroll_vertical): Update.
7163 * tui/tui-data.h (struct tui_data_window)
7164 <first_data_item_displayed>: Declare new method.
7165
7166 2019-06-25 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7169 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7170 contents...
7171 (tui_initialize_static_data): ...here.
7172
7173 2019-06-25 Tom Tromey <tom@tromey.com>
7174
7175 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7176 (tui_display_registers_from, tui_check_register_values): Update.
7177 (tui_display_register): Remove win_info parameter; update.
7178 (tui_get_register): Change type of parameters.
7179 * tui/tui-data.h (struct tui_data_element): Remove.
7180 (union tui_which_element) <data>: Remove.
7181 <data_window>: Change type.
7182 (struct tui_data_item_window): New.
7183 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7184 case. Add assert.
7185 (~tui_data_item_window): New destructor.
7186 (free_content_elements): Remove DATA_ITEM_WIN case.
7187
7188 2019-06-25 Tom Tromey <tom@tromey.com>
7189
7190 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7191 Remove.
7192
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-data.h (struct tui_command_element): Remove.
7196 (union tui_which_element) <command>: Remove.
7197 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7198 assert.
7199 (free_content_elements): Remove CMD_WIN case.
7200
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-layout.c (tui_set_layout): Update.
7204 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7205 * tui/tui-data.c (layout_def): Update.
7206
7207 2019-06-25 Tom Tromey <tom@tromey.com>
7208
7209 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7210 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7211 (tui_source_window_base::set_new_height): Update.
7212 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7213 Update.
7214 (tui_set_locator_fullname, tui_set_locator_info)
7215 (tui_show_frame_info): Update.
7216 * tui/tui-source.c (tui_set_source_content)
7217 (tui_source_is_displayed): Update.
7218 * tui/tui-layout.c (show_source_disasm_command, show_data)
7219 (show_source_or_disasm_and_command): Update.
7220 * tui/tui-disasm.c (tui_set_disassem_content)
7221 (tui_get_begin_asm_address): Update.
7222 * tui/tui-data.h (struct tui_locator_element): Remove.
7223 (union tui_which_element) <locator>: Remove.
7224 (struct tui_locator_window): New.
7225 (tui_locator_win_info_ptr): Change return type.
7226 * tui/tui-data.c (_locator): Change type.
7227 (tui_locator_win_info_ptr): Change return type.
7228 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7229 (tui_alloc_content): Add assert.
7230
7231 2019-06-25 Tom Tromey <tom@tromey.com>
7232
7233 * tui/tui-winsource.c
7234 (tui_exec_info_window::maybe_allocate_content): New method.
7235 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7236 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7237 (make_source_or_disasm_window): Add cast.
7238 * tui/tui-data.h (union tui_which_element) <simple_string>:
7239 Remove.
7240 (struct tui_source_info): New.
7241 (struct tui_source_window_base) <execution_info>: Change type.
7242 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7243 case, and add assert.
7244 (tui_alloc_content): Add assert.
7245
7246 2019-06-25 Tom Tromey <tom@tromey.com>
7247
7248 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7249 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7250 * tui/tui-data.c (tui_alloc_win_info): Remove.
7251
7252 2019-06-25 Tom Tromey <tom@tromey.com>
7253
7254 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7255 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7256 can_highlight.
7257
7258 2019-06-25 Tom Tromey <tom@tromey.com>
7259
7260 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7261 make_visible_with_new_height method.
7262 (tui_win_info::make_visible_with_new_height): New method.
7263 (tui_source_window_base::do_make_visible_with_new_height)
7264 (tui_data_window::do_make_visible_with_new_height)
7265 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7266 (make_visible_with_new_height): Remove.
7267 (tui_resize_all, tui_adjust_win_heights): Use
7268 make_visible_with_new_height method.
7269 * tui/tui-data.h (struct tui_win_info)
7270 <do_make_visible_with_new_height, make_visible_with_new_height>:
7271 New methods.
7272 (struct tui_source_window_base, struct tui_data_window)
7273 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7274 methods.
7275
7276 2019-06-25 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7279 method.
7280 (update_tab_width): Call update_tab_width method.
7281 * tui/tui-data.h (struct tui_win_info)
7282 (struct tui_source_window_base) <update_tab_width>: New methods.
7283
7284 2019-06-25 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7287 parameter.
7288 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7289 parameter.
7290 (tui_gen_win_info::make_visible): Update.
7291 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7292 parameter.
7293 * tui/tui-data.h (enum tui_box): New enum.
7294 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7295
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7299 init_and_make_win for EXEC_INFO_WIN.
7300 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7301 longer inline.
7302 (struct tui_win_info) <~tui_win_info>: Inline.
7303 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7304 Don't declare.
7305 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7306 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7307 Remove.
7308 (tui_initialize_static_data): Update.
7309 (~tui_gen_win_info): Handle more cleanup here.
7310 (~tui_source_window_base): Delete "execution_info".
7311 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7312
7313 2019-06-25 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-layout.c (make_command_window): Don't set
7316 can_highlight.
7317 (show_source_disasm_command): Call the reset method.
7318 (show_data): Don't set can_highlight. Call the reset method.
7319 (tui_gen_win_info::reset): Rename from init_gen_win_info
7320 (init_and_make_win): Simplify. Return tui_gen_win_info.
7321 (show_source_or_disasm_and_command): Call the reset method.
7322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7323 (struct tui_cmd_window): Set can_highlight.
7324
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7326
7327 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7328 from make_visible.
7329 (tui_make_visible, tui_make_invisible): Rewrite.
7330 (tui_win_info::make_visible): Remove.
7331 (tui_source_window_base::make_visible): Update.
7332 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7333 method. Moved from...
7334 (struct tui_win_info) <make_visible>: ...here.
7335
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-winsource.c
7339 (tui_source_window_base::do_scroll_horizontal): Remove direction
7340 parameter.
7341 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7342 direction parameter.
7343 * tui/tui-win.c (tui_win_info::forward_scroll)
7344 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7345 (tui_win_info::right_scroll): Update.
7346 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7347 direction parameter.
7348 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7349 direction parameter.
7350 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7351 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7352 Remove direction parameter.
7353 (struct tui_source_window_base, struct tui_source_window)
7354 (struct tui_disasm_window, struct tui_data_window)
7355 (struct tui_cmd_window): Update.
7356
7357 2019-06-25 Tom Tromey <tom@tromey.com>
7358
7359 * tui/tui-winsource.h (tui_set_exec_info_content)
7360 (tui_show_exec_info_content, tui_erase_exec_info_content)
7361 (tui_clear_exec_info_content, tui_update_exec_info): Change
7362 argument to tui_source_window_base.
7363 * tui/tui-winsource.c (tui_set_exec_info_content)
7364 (tui_show_exec_info_content, tui_erase_exec_info_content)
7365 (tui_clear_exec_info_content, tui_update_exec_info): Change
7366 argument to tui_source_window_base.
7367
7368 2019-06-25 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7371 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7372
7373 2019-06-25 Tom Tromey <tom@tromey.com>
7374
7375 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7376 check.
7377
7378 2019-06-25 Tom Tromey <tom@tromey.com>
7379
7380 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7381 type to void.
7382 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7383 type to void.
7384 * tui/tui-source.c (tui_set_source_content): Update.
7385 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7386
7387 2019-06-25 Tom Tromey <tom@tromey.com>
7388
7389 * tui/tui-win.c (window_name_completer, tui_set_focus)
7390 (tui_all_windows_info): Use name method.
7391 * tui/tui-data.h (struct tui_gen_win_info)
7392 (struct tui_source_window, struct tui_disasm_window)
7393 (struct tui_data_window, struct tui_cmd_window) <name>: New
7394 method.
7395 (tui_win_name): Don't declare.
7396 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7397 (tui_win_name): Remove.
7398
7399 2019-06-25 Tom Tromey <tom@tromey.com>
7400
7401 * tui/tui-winsource.h (tui_update_source_window)
7402 (tui_update_source_window_as_is): Change parameter type.
7403 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7404 to be a tui_source_window_base.
7405 (tui_update_source_window_as_is): Likewise.
7406 * tui/tui-win.c (make_visible_with_new_height): Update.
7407
7408 2019-06-25 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-winsource.c (tui_erase_source_content)
7411 (tui_show_source_content, tui_show_exec_info_content)
7412 (tui_erase_exec_info_content): Use refresh_window method.
7413 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7414 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7415 from tui_refresh_win.
7416 (tui_data_window::refresh_window): New method.
7417 (tui_win_info::refresh, tui_source_window_base::refresh)
7418 (tui_refresh_all): Use refresh_window method.
7419 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7420 method.
7421 * tui/tui-regs.c (tui_display_register): Call refresh_window
7422 method.
7423 * tui/tui-layout.c (show_source_disasm_command)
7424 (show_source_or_disasm_and_command): Call refresh_window method.
7425 * tui/tui-data.h (struct tui_gen_win_info)
7426 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7427 New method.
7428
7429 2019-06-25 Tom Tromey <tom@tromey.com>
7430
7431 * tui/tui.c (tui_rl_other_window, tui_enable)
7432 (tui_is_window_visible, tui_get_command_dimension): Update.
7433 * tui/tui-winsource.c (tui_update_source_window_as_is)
7434 (tui_clear_source_content, tui_erase_source_content)
7435 (tui_show_source_line, tui_source_window_base::refill)
7436 (tui_source_window_base::do_scroll_horizontal)
7437 (tui_source_window_base::set_is_exec_point_at)
7438 (tui_update_breakpoint_info, tui_set_exec_info_content)
7439 (tui_alloc_source_buffer, tui_line_is_displayed)
7440 (tui_addr_is_displayed): Update.
7441 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7442 (tui_check_and_display_highlight_if_needed)
7443 (tui_win_info::make_visible, tui_win_info::refresh)
7444 (tui_refresh_all): Update.
7445 * tui/tui-windata.c (tui_first_data_item_displayed)
7446 (tui_delete_data_content_windows, tui_erase_data_content)
7447 (tui_display_all_data, tui_data_window::refresh_all)
7448 (tui_check_data_values): Update.
7449 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7450 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7451 (tui_win_info::backward_scroll, tui_refresh_all_win)
7452 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7453 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7454 (tui_source_window_base::set_new_height)
7455 (tui_data_window::set_new_height)
7456 (make_invisible_and_set_new_height)
7457 (make_visible_with_new_height, new_height_ok)
7458 (parse_scrolling_args): Update.
7459 * tui/tui-stack.c (tui_show_frame_info): Update.
7460 * tui/tui-source.c (tui_set_source_content)
7461 (tui_set_source_content_nil, tui_source_is_displayed)
7462 (tui_source_window::do_scroll_vertical): Update.
7463 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7464 (tui_display_registers_from, tui_display_reg_element_at_line)
7465 (tui_check_register_values, tui_reg_command): Update.
7466 * tui/tui-layout.c (tui_default_win_height)
7467 (show_source_disasm_command, show_data, init_and_make_win)
7468 (show_source_or_disasm_and_command): Update.
7469 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7470 (tui_redisplay_readline, tui_mld_flush)
7471 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7472 (tui_getc): Update.
7473 * tui/tui-disasm.c (tui_set_disassem_content)
7474 (tui_disasm_window::do_scroll_vertical): Update.
7475 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7476 Now virtual.
7477 (struct tui_win_info): Derive from tui_gen_win_info.
7478 <~tui_win_info>: Mark as override.
7479 <generic>: Remove member.
7480 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7481 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7482 (~tui_data_window, ~tui_win_info)
7483 (tui_free_all_source_wins_content): Update.
7484 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7485
7486 2019-06-25 Tom Tromey <tom@tromey.com>
7487
7488 * tui/tui-layout.c (init_and_make_win): Use new.
7489 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7490 destructor, initializers.
7491 (tui_alloc_generic_win_info): Don't declare.
7492 * tui/tui-data.c (_locator): Add argument to constructor.
7493 (source_win, disasm_win): New globals.
7494 (exec_info): Remove.
7495 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7496 Update.
7497 (tui_alloc_generic_win_info): Remove.
7498 (init_content_element): Use new.
7499 (tui_win_info::tui_win_info): Update.
7500 (free_content_elements) <case DATA_WIN>: Use delete.
7501
7502 2019-06-25 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7505 * tui/tui-windata.c (tui_first_data_item_displayed)
7506 (tui_delete_data_content_windows): Update.
7507 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7508 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7509 (tui_display_registers_from, tui_check_register_values): Update.
7510 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7511 pointer.
7512 * tui/tui-data.c (init_content_element): Update. Allocate the new
7513 window.
7514 (tui_free_data_content): Update.
7515 (free_content_elements) <case DATA_WIN>: Free the window.
7516
7517 2019-06-25 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7520 Update.
7521 * tui/tui-layout.c (make_command_window)
7522 (show_source_disasm_command, show_data, init_and_make_win)
7523 (show_source_or_disasm_and_command): Update.
7524 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7525 method.
7526 <can_highight, is_highlighted>: Now bool.
7527 (tui_set_win_highlight): Don't declare.
7528 * tui/tui-data.c (tui_set_win_highlight): Remove.
7529
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-wingeneral.c (make_visible): Remove check of window
7533 type.
7534
7535 2019-06-25 Tom Tromey <tom@tromey.com>
7536
7537 * tui/tui-win.c (tui_win_info::max_height)
7538 (tui_cmd_window::max_height): New methods.
7539 (new_height_ok): Call max_height.
7540 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7541 <max_height>: New method.
7542
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-win.c (tui_source_window_base::set_new_height)
7546 (tui_data_window::set_new_height): New methods.
7547 (make_invisible_and_set_new_height): Call set_new_height method.
7548 * tui/tui-data.h (struct tui_win_info)
7549 (struct tui_source_window_base, struct tui_data_window)
7550 <set_new_height>: New method.
7551
7552 2019-06-25 Tom Tromey <tom@tromey.com>
7553
7554 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7555 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7556 tui_refresh_data_win.
7557 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7558 method.
7559 (tui_refresh_all_win): Call the refresh_all method.
7560 (tui_set_focus): Likewise.
7561 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7562 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7563 Likewise.
7564
7565 2019-06-25 Tom Tromey <tom@tromey.com>
7566
7567 * tui/tui-winsource.h (tui_refill_source_window)
7568 (tui_set_is_exec_point_at): Don't declare.
7569 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7570 (tui_source_window_base::refill): Rename from
7571 tui_refill_source_window.
7572 (tui_source_window_base::do_scroll_horizontal): Update.
7573 (tui_source_window_base::set_is_exec_point_at): Rename from
7574 tui_set_is_exec_point_at.
7575 (tui_update_all_breakpoint_info): Update.
7576 * tui/tui-stack.c (tui_show_frame_info): Update.
7577 * tui/tui-layout.c (show_data): Add cast.
7578 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7579 * tui/tui-data.h (struct tui_source_window_base) <refill,
7580 set_is_exec_point_at>: New methods.
7581 (tui_source_windows, tui_add_to_source_windows): Update types.
7582 (tui_add_to_source_windows): Remove redundant declaration.
7583 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7584 (tui_source_windows): Change return type.
7585 (tui_clear_source_windows_detail): Update.
7586 (tui_add_to_source_windows): Change type of parameter.
7587 (tui_free_all_source_wins_content): Update.
7588
7589 2019-06-25 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-wingeneral.c (tui_win_info::refresh)
7592 (tui_source_window_base::refresh): New methods.
7593 (tui_refresh_all): Call the refresh method.
7594 * tui/tui-data.h (struct tui_win_info)
7595 (struct tui_source_window_base) <refresh>: New method.
7596
7597 2019-06-25 Tom Tromey <tom@tromey.com>
7598
7599 * tui/tui.h (tui_is_window_visible): Return bool.
7600 * tui/tui.c (tui_is_window_visible): Return bool.
7601 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7602 (tui_make_visible, tui_make_invisible)
7603 (tui_win_info::make_visible)
7604 (tui_source_window_base::make_visible, make_all_visible)
7605 (tui_make_all_visible, tui_make_all_invisible): Update.
7606 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7607 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7608 bool.
7609 (struct tui_win_info, struct tui_source_window_base)
7610 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7611 * tui/tui-data.c (tui_init_generic_part): Update.
7612
7613 2019-06-25 Tom Tromey <tom@tromey.com>
7614
7615 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7616 (tui_source_window_base::make_visible): New methods.
7617 (make_all_visible): Make method call.
7618 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7619 (struct tui_source_window_base, struct tui_cmd_window): Override
7620 make_visible.
7621 (tui_win_is_source_type): Don't declare.
7622 * tui/tui-data.c (tui_win_is_source_type): Remove.
7623
7624 2019-06-25 Tom Tromey <tom@tromey.com>
7625
7626 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7627 NULL check.
7628
7629 2019-06-25 Tom Tromey <tom@tromey.com>
7630
7631 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7632 Inline constructor. Add initializers for members.
7633 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7634 constructors; now inline in class.
7635
7636 2019-06-25 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-regs.c (tui_show_registers): Update.
7639 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7640 bool.
7641 * tui/tui-data.c (tui_data_window::clear_detail)
7642 (tui_data_window): Update.
7643
7644 2019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-windata.c (tui_display_all_data)
7647 (tui_display_data_from_line, tui_display_data_from)
7648 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7649 Update.
7650 * tui/tui-regs.c (tui_last_regs_line_no)
7651 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7652 (tui_show_registers, tui_show_register_group)
7653 (tui_display_registers_from, tui_display_reg_element_at_line)
7654 (tui_display_registers_from_line, tui_check_register_values)
7655 (tui_reg_next, tui_reg_prev): Update.
7656 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7657 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7658 tui_data_window.
7659 (struct tui_win_info) <detail>: Remove. Add new fields from
7660 tui_data_info.
7661 (TUI_DATA_WIN): Add cast.
7662 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7663 (~tui_data_window): Simplify.
7664
7665 2019-06-25 Tom Tromey <tom@tromey.com>
7666
7667 * tui/tui-layout.c (show_source_disasm_command)
7668 (show_source_or_disasm_and_command): Update.
7669 * tui/tui-io.c (update_cmdwin_start_line)
7670 (tui_redisplay_readline): Update.
7671 * tui/tui-data.h (struct tui_command_info): Remove.
7672 (struct tui_win_info) <detail>: Remove command_info member.
7673 (struct tui_data_window) <start_line>: New member, from
7674 tui_command_info.
7675 (TUI_CMD_WIN): Add casts.
7676
7677 2019-06-25 Tom Tromey <tom@tromey.com>
7678
7679 * tui/tui-winsource.c (tui_update_source_window)
7680 (tui_refill_source_window)
7681 (tui_source_window_base::do_scroll_horizontal)
7682 (tui_update_breakpoint_info, tui_set_exec_info_content)
7683 (tui_show_exec_info_content, tui_erase_exec_info_content)
7684 (tui_clear_exec_info_content): Update.
7685 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7686 Update.
7687 * tui/tui-win.c (make_invisible_and_set_new_height)
7688 (make_visible_with_new_height): Update.
7689 * tui/tui-source.c (tui_set_source_content)
7690 (tui_show_symtab_source): Update.
7691 * tui/tui-layout.c (extract_display_start_addr)
7692 (show_source_disasm_command, show_data)
7693 (make_source_or_disasm_window)
7694 (show_source_or_disasm_and_command): Update.
7695 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7696 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7697 "gdbarch".
7698 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7699 to tui_source_window_base.
7700 (struct tui_win_info) <detail>: Remove source_info member.
7701 (struct tui_source_window_base) <has_locator>: Inline.
7702 Move contents from tui_source_info; rename has_locator member to
7703 m_has_locator.
7704 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7705 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7706 header file.
7707 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7708 Simplify.
7709 (tui_free_all_source_wins_content): Cast to
7710 tui_source_window_base.
7711
7712 2019-06-25 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-win.c (make_invisible_and_set_new_height)
7715 (make_visible_with_new_height): Call has_locator method.
7716 * tui/tui-layout.c (show_source_disasm_command, show_data)
7717 (show_source_or_disasm_and_command): Update for bool change.
7718 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7719 (tui_win_info) <has_locator>: New method.
7720 (struct tui_source_window_base) <has_locator>: New method.
7721 (tui_win_has_locator): Don't declare.
7722 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7723 from tui_win_has_locator.
7724 (tui_source_window_base): Use false, not FALSE.
7725
7726 2019-06-25 Tom Tromey <tom@tromey.com>
7727
7728 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7729 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7730 clear_detail method directly.
7731 (tui_clear_win_detail): Remove.
7732
7733 2019-06-25 Tom Tromey <tom@tromey.com>
7734
7735 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7736 "this", not TUI_DISASM_WIN.
7737
7738 2019-06-25 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7741 declare.
7742 * tui/tui-winsource.c
7743 (tui_source_window_base::do_scroll_horizontal): Rename from
7744 tui_horizontal_source_scroll.
7745 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7746 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7747 from tui_vertical_data_scroll.
7748 * tui/tui-win.h (tui_scroll): Don't declare.
7749 * tui/tui-win.c (tui_win_info::forward_scroll)
7750 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7751 (tui_win_info::right_scroll): Rename and update.
7752 (tui_scroll_forward_command, tui_scroll_backward_command)
7753 (tui_scroll_left_command, tui_scroll_right_command): Update.
7754 (tui_scroll): Remove.
7755 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7756 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7757 from tui_vertical_source_scroll.
7758 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7759 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7760 from tui_vertical_disassem_scroll.
7761 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7762 do_scroll_horizontal>: New methods.
7763 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7764 Likewise.
7765 (struct tui_source_window_base): Add do_scroll_horizontal.
7766 (struct tui_source_window, struct tui_disasm_window): Add
7767 do_scroll_vertical.
7768 (struct tui_data_window, struct tui_cmd_window): Add
7769 do_scroll_horizontal and do_scroll_vertical.
7770 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7771
7772 2019-06-25 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-data.h (struct tui_source_window_base): New struct.
7775 (struct tui_source_window): Derive from tui_source_window_base.
7776 (struct tui_disasm_window): New struct.
7777 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7778 from tui_source_window::clear_detail.
7779 (tui_source_window_base): Rename from tui_source_window.
7780 (~tui_source_window_base): Rename from ~tui_source_window.
7781 (tui_alloc_win_info): Create a tui_disasm_window.
7782
7783 2019-06-25 Tom Tromey <tom@tromey.com>
7784
7785 * tui/tui-data.h (struct tui_source_window)
7786 (struct tui_data_window): Declare destructors.
7787 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7788 destructors.
7789 (tui_win_info): Simplify.
7790
7791 2019-06-25 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-winsource.c (tui_display_main)
7794 (tui_update_source_windows_with_addr)
7795 (tui_update_all_breakpoint_info): Update.
7796 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7797 (new_height_ok, parse_scrolling_args): Update.
7798 * tui/tui-stack.c (tui_show_frame_info): Update.
7799 * tui/tui-data.h (struct tui_list): Remove.
7800 (tui_source_windows): Return a reference to a std::vector.
7801 * tui/tui-data.c (source_windows): Now a std::vector.
7802 (tui_source_windows): Change return type.
7803 (tui_clear_source_windows): Rewrite.
7804 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7805 (tui_free_all_source_wins_content): Rewrite.
7806
7807 2019-06-25 Tom Tromey <tom@tromey.com>
7808
7809 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7810 (struct tui_data_window, struct tui_cmd_window): Declare
7811 clear_detail method.
7812 * tui/tui-data.c (tui_source_window::clear_detail)
7813 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7814 methods.
7815 (tui_clear_win_detail): Simplify.
7816
7817 2019-06-25 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-layout.c (make_source_window, make_disasm_window)
7820 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7821 Return the new window.
7822 (show_source_disasm_command, show_data)
7823 (show_source_or_disasm_and_command): Update.
7824
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7828 parameter. Return the new window.
7829 (show_source_disasm_command): Update and remove NULL check.
7830 (show_source_or_disasm_and_command): Update.
7831
7832 2019-06-25 Tom Tromey <tom@tromey.com>
7833
7834 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7835
7836 2019-06-25 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-data.h (struct tui_win_info): Make constructor
7839 protected. Make destructor virtual. Add initializers.
7840 (tui_source_window, tui_data_window, tui_cmd_window): New
7841 classes.
7842 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7843 constructor. Add "type" parameter.
7844 (tui_source_window, tui_data_window, tui_cmd_window): New
7845 constructors.
7846 (tui_alloc_win_info): Instantiate the appropriate subclass.
7847
7848 2019-06-25 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-win.c (tui_resize_all): Use delete.
7851 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7852 destructor.
7853 (tui_free_window): Don't declare.
7854 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7855 Update.
7856
7857 2019-06-25 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-data.h (struct tui_win_info): Add constructor.
7860 * tui/tui-data.c (tui_alloc_win_info): Use new.
7861 (tui_free_window): Use delete.
7862
7863 2019-06-22 Tom Tromey <tom@tromey.com>
7864
7865 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7866 declare.
7867 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7868
7869 2019-06-22 Tom Tromey <tom@tromey.com>
7870
7871 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7872 declare.
7873 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7874
7875 2019-06-22 Tom de Vries <tdevries@suse.de>
7876
7877 * dwarf2read.c (create_addrmap_from_aranges)
7878 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7879 instead of '%zu'.
7880
7881 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * dwarf2read.h (dwarf2_section_info_def): Remove.
7884 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7885 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7886 std::vector<dwarf2_section_info>.
7887 (struct dwo_file) <~dwo_file>: Remove.
7888 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7889 types field.
7890 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7891 (dwarf2_read_debug_names): Likewise.
7892 (create_debug_types_hash_table): Change parameter type to
7893 array_view, adjust code accordingly.
7894 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7895 (partial_die_info::fixup): Likewise.
7896 (determine_prefix): Likewise.
7897 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7898
7899 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7900
7901 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7902 gdb_bfd_ref_ptr.
7903 <~dwo_file>: Remove call to gdb_bfd_unref.
7904 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7905 gdb_bfd_ref_ptr::get.
7906
7907 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7908
7909 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7910 type to htab_up.
7911 * dwarf2read.c (struct dwo_file): Initialize fields.
7912 <~dwo_file>: New.
7913 (free_dwo_file): Remove, move content to ~dwo_file.
7914 (struct dwo_file_deleter): Remove.
7915 (dwo_file_up>: Remove custom deleter.
7916 (free_dwo_files): Remove.
7917 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7918 dwo_files.
7919 (process_skeletonless_type_units): Call unique_ptr::get.
7920 (allocate_dwo_file_hash_table): Add deleter to created hash
7921 table. Change return type to htab_up.
7922 (lookup_dwo_file_slot): Don't memset dwo_file, call
7923 unique_ptr::get.
7924 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7925 (create_dwo_unit_in_dwp_v2): Likewise.
7926 (open_and_init_dwo_file): Likewise.
7927 (free_dwo_file_from_slot): Remove.
7928
7929 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7930
7931 * dwarf2read.h (struct dwarf2_section_info) <readin,
7932 is_virtual>: Change type to bool.
7933 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7934 true instead of 1.
7935
7936 2019-06-19 Tom Tromey <tom@tromey.com>
7937
7938 * tui/tui-data.h (tui_init_content_element): Don't declare.
7939
7940 2019-06-19 Tom Tromey <tom@tromey.com>
7941
7942 * tui/tui-data.h (tui_init_win_info): Don't declare.
7943
7944 2019-06-19 Tom de Vries <tdevries@suse.de>
7945
7946 * dwarf2read.h (abstract_to_concrete): Change type to
7947 std::unordered_map<sect_offset, std::vector<sect_offset>,
7948 gdb::hash_enum<sect_offset>>.
7949
7950 2019-06-19 Tom Tromey <tromey@adacore.com>
7951
7952 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7953 EVAL_AVOID_SIDE_EFFECTS specially.
7954
7955 2019-06-19 Tom Tromey <tromey@adacore.com>
7956
7957 * source-cache.c (highlighter): New global.
7958 (source_cache::get_source_lines): Create a highlighter on demand.
7959
7960 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * defs.h (deprecated_interactive_hook): Delete declaration.
7963 * interps.c (clear_interpreter_hooks): Remove use of
7964 deprecated_interactive_hook.
7965 * top.c (deprecated_interactive_hook): Delete definition.
7966 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7967
7968 2019-06-18 Tom de Vries <tdevries@suse.de>
7969
7970 PR gdb/24515
7971 * dwarf2read.h (abstract_to_concrete): Change type from
7972 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7973 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7974 * dwarf2read.c (read_variable): Update.
7975 (dwarf2_fetch_die_loc_sect_off): Update.
7976
7977 2019-06-17 Tom de Vries <tdevries@suse.de>
7978
7979 PR gdb/24617
7980 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7981 accessing parent[parent_len - 1].
7982
7983 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7984
7985 PR gdb/24364
7986 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7987 call dtrace_process_dof with NULL dof.
7988
7989 2019-06-16 Tom de Vries <tdevries@suse.de>
7990
7991 PR gdb/24445
7992 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7993
7994 2019-06-16 Tom Tromey <tom@tromey.com>
7995
7996 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7997 (make_all_visible): Use address of member.
7998
7999 2019-06-16 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8002 (tui_free_window, free_content, free_content_elements): Remove
8003 unnecessary cast.
8004 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8005 cast.
8006 * tui/tui-regs.c (tui_show_register_group)
8007 (tui_display_registers_from, tui_display_reg_element_at_line):
8008 Remove unnecessary cast.
8009
8010 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * linux-nat.c (normal_mask): Delete.
8013 (_initialize_linux_nat): Don't initialise normal_mask.
8014
8015 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8016
8017 PR gdb/24445
8018 * dwarf-index-write.h (write_psymtabs_to_index): Add
8019 dwz_basename parameter.
8020 * dwarf-index-write.c (write_gdbindex): Move file writing to
8021 write_gdbindex_1. Change return type void.
8022 (assert_file_size): Move up, remove filename parameter.
8023 (write_gdbindex_1): New function.
8024 (write_debug_names): Change return type to void, call
8025 assert_file_size.
8026 (struct index_wip_file): New struct.
8027 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8028 file logic to index_wip_file. Write index for dwz file if
8029 needed.
8030 (save_gdb_index_command): Pass basename of dwz file, if present.
8031 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8032 build-id of dwz file, if present.
8033 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8034 (dwarf2_get_dwz_file): Likewise.
8035 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8036 (dwarf2_get_dwz_file): Likewise.
8037
8038 2019-06-16 Tom Tromey <tom@tromey.com>
8039
8040 * coffread.c (process_coff_symbol): Use xstrdup.
8041 * value.c (create_internalvar): Use xstrdup.
8042
8043 2019-06-16 Tom Tromey <tom@tromey.com>
8044
8045 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8046 * breakpoint.c (stopin_command, stopat_command)
8047 (until_break_command, decode_location_default): Remove unnecessary
8048 cast.
8049 * utils.c (subset_compare): Remove unnecessary cast.
8050 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8051 cast.
8052 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8053 cast.
8054 * infcmd.c (path_command): Remove unnecessary cast.
8055 * coffread.c (decode_type): Remove unnecessary cast.
8056 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8057 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8058 * tui/tui-stack.c (tui_show_locator_content)
8059 (tui_show_frame_info): Remove unnecessary cast.
8060 * tui/tui-win.c (tui_scroll_forward_command)
8061 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8062 (parse_scrolling_args): Remove unnecessary cast.
8063 * tui/tui-data.c (init_win_info, tui_del_window)
8064 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8065 (free_content_elements): Remove unnecessary cast.
8066 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8067 unnecessary cast.
8068 * tui/tui-source.c (tui_set_source_content)
8069 (tui_vertical_source_scroll): Remove unnecessary cast.
8070 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8071 cast.
8072 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8073 * tui/tui-regs.c (tui_display_registers_from)
8074 (tui_display_register): Remove unnecessary cast.
8075 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8076 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8077 (make_visible): Remove unnecessary cast.
8078 * tui/tui-winsource.c (tui_erase_source_content)
8079 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8080 unnecessary cast.
8081 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8082 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8083 * stabsread.c (read_type, read_array_type, read_range_type):
8084 Remove unnecessary cast.
8085 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8086 (parse_symbol, parse_type, upgrade_type, parse_external)
8087 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8088 unnecessary cast.
8089 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8090
8091 2019-06-16 Tom Tromey <tom@tromey.com>
8092
8093 * tui/tui-data.c (tui_alloc_generic_win_info)
8094 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8095 checks.
8096
8097 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8098 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * f-typeprint.c (f_print_type): Don't return early for not
8101 associated or not allocated types.
8102 (f_type_print_varspec_suffix): Add print_rank parameter and print
8103 ranks of array types in case they dangling.
8104 (f_type_print_base): Add print_rank parameter.
8105
8106 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * NEWS: Mention new MI commands.
8109 * break-catch-throw.c (enum exception_event_kind): Move to
8110 breakpoint.h.
8111 (print_mention_exception_catchpoint): Output text as a single
8112 message.
8113 (catch_exception_command_1): Rename to...
8114 (catch_exception_event): ...this, make non-static, update header
8115 command, and change some parameter types.
8116 (catch_catch_command): Update for changes to
8117 catch_exception_command_1.
8118 (catch_throw_command): Likewise.
8119 (catch_rethrow_command): Likewise.
8120 * breakpoint.c (enum exception_event_kind): Delete.
8121 * breakpoint.h (enum exception_event_kind): Moved here from
8122 break-catch-throw.c.
8123 (catch_exception_event): Declare.
8124 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8125 (mi_cmd_catch_throw): New function.
8126 (mi_cmd_catch_rethrow): New function.
8127 (mi_cmd_catch_catch): New function.
8128 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8129 'catch-catch' entries.
8130 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8131 (mi_cmd_catch_rethrow): Declare.
8132 (mi_cmd_catch_catch): Declare.
8133
8134 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * annotate.c (annotate_source_line): Change return type to void,
8137 update implementation to match.
8138 * annotate.h (annotate_source_line): Change return type to void,
8139 update header comment.
8140 * stack.c (print_frame_info): Don't change what frame information
8141 is printed based on whether annotations are on or not.
8142
8143 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8144
8145 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8146 (annotate_source): Make static.
8147 (annotate_source_line): Moved from source.c and renamed from
8148 identify_source_line. Update the return type.
8149 * annotate.h (annotate_source): Delete declaration.
8150 (annotate_source_line): Declaration moved from source.h, and
8151 renamed from identify_source_line. Return type updated.
8152 * source.c (identify_source_line): Moved to annotate.c and renamed
8153 to annotate_source_line.
8154 (info_line_command): Remove check of annotation_level.
8155 * source.h (identify_source_line): Move declaration to annotate.h
8156 and rename to annotate_source_line.
8157 * stack.c: Add 'annotate.h' include.
8158 (print_frame_info): Remove check of annotation_level before
8159 calling annotate_source_line.
8160
8161 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * source-cache.c (source_cache::get_plain_source_lines): Use
8164 open_source_file_with_line_charpos instead of just
8165 open_source_file, remove call to find_source_lines.
8166 (source_cache::get_source_lines): Likewise.
8167 * source.c (find_source_lines): Make static.
8168 (get_filename_and_charpos): Renamed into...
8169 (open_source_file_with_line_charpos): ..this along with changes to
8170 return a scoped_fd, and some other minor clean ups.
8171 (identify_source_line): Use open_source_file_with_line_charpos.
8172 (search_command_helper): Use open_source_file_with_line_charpos
8173 instead of just open_source_file, remove call to
8174 find_source_lines.
8175 * source.h (open_source_file_with_line_charpos): Declare new
8176 function.
8177 (find_source_lines): Delete declaration.
8178
8179 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * source.c (get_filename_and_charpos): Remove fullname
8182 parameter.
8183 (identify_source_line): Update call to get_filename_and_charpos.
8184
8185 2019-06-14 Tom Tromey <tromey@adacore.com>
8186
8187 PR gdb/24502:
8188 * ui-style.h (skip_ansi_escape): Update comment.
8189 * ui-file.h (class no_terminal_escape_file): New class.
8190 * ui-file.c (no_terminal_escape_file::write)
8191 (no_terminal_escape_file::puts): New methods.
8192 * cli/cli-logging.c (handle_redirections): Use
8193 no_terminal_escape_file.
8194
8195 2019-06-14 Tom Tromey <tromey@adacore.com>
8196
8197 * NEWS: Move convenience variable news above Python news.
8198
8199 2019-06-14 Tom Tromey <tom@tromey.com>
8200
8201 * gnulib: Move directory to top-level.
8202 * configure.ac: Don't configure gnulib.
8203 * configure: Rebuild.
8204 * common/common-defs.h: Use new path to gnulib.
8205 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8206 (GNULIB_H): Remove.
8207 (INCGNU): Look in new gnulib location.
8208 (HFILES_NO_SRCDIR): Remove gnulib files.
8209 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8210 (generated_files): Remove GNULIB_H.
8211 ($(LIBGNU), all-lib): Remove targets.
8212 (distclean): Don't mention GNULIB_BUILDDIR.
8213 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8214
8215 2019-06-14 Tom Tromey <tromey@adacore.com>
8216
8217 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8218 Warn if symbol file does not provide any symbols.
8219
8220 2019-06-14 Tom Tromey <tromey@adacore.com>
8221
8222 * source.c (find_and_open_source): Respect basenames_may_differ.
8223
8224 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * annotate.c (annotate_breakpoints_invalid): Make use of
8227 scoped_restore_terminal_state.
8228 (annotate_frames_invalid): Likewise.
8229
8230 2019-06-14 Tom Tromey <tromey@adacore.com>
8231
8232 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8233 allow assignment to an internalvar.
8234
8235 2019-06-14 Tom Tromey <tromey@adacore.com>
8236
8237 * ada-lex.l: Allow "_" in attribute names.
8238
8239 2019-06-14 Tom Tromey <tromey@adacore.com>
8240
8241 PR gdb/24653:
8242 * regcache.c (registers_changed): Don't call alloca.
8243 * top.c (execute_command): Don't call alloca.
8244
8245 2019-06-13 Pedro Alves <palves@redhat.com>
8246
8247 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8248 'expression'. When parsing an expression, error out if there's
8249 junk after "unlimited".
8250 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8251 (do_set_command): Adjust calls to is_unlimited_literal.
8252
8253 2019-06-13 Pedro Alves <palves@redhat.com>
8254
8255 * compile/compile.c (make_compile_options_def_group): Add braces
8256 around array_view initializer.
8257 * thread.c (make_thread_apply_all_options_def_group)
8258 (make_thread_apply_all_options_def_group): Likewise.
8259
8260 2019-06-13 Pedro Alves <palves@redhat.com>
8261
8262 * NEWS (New commands): Mention "maint test-options
8263 require-delimiter", "maint test-options unknown-is-error", "maint
8264 test-options unknown-is-operand" and "maint show
8265 test-options-completion-result".
8266 (New command options, command completion): New section.
8267 (Completion improvements): New section.
8268 Mention that you can abbreviate "unlimited".
8269
8270 2019-06-13 Pedro Alves <palves@redhat.com>
8271
8272 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8273 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8274 * unittests/cli-utils-selftests.c (test_parse_flags)
8275 (test_parse_flags_qcs): Delete.
8276 (test_cli_utils): Don't call deleted functions.
8277
8278 2019-06-13 Pedro Alves <palves@redhat.com>
8279
8280 * thread.c: Include "cli/cli-option.h".
8281 (tp_array_compar_ascending): Global.
8282 (tp_array_compar): Delete function.
8283 (tp_array_compar_ascending, tp_array_compar_descending): New
8284 functions.
8285 (ascending_option_def, qcs_flag_option_def)
8286 (thr_qcs_flags_option_defs)
8287 (make_thread_apply_all_options_def_group)
8288 (make_thread_apply_options_def_group): New.
8289 (thread_apply_all_command): Use gdb::option::process_options.
8290 (thread_apply_command_completer)
8291 (thread_apply_all_command_completer): New.
8292 (thread_apply_command): Use gdb::option::process_options.
8293 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8294 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8295 to generate help text of "thread apply". Adjust "taas"'s help.
8296 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8297 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8298
8299 2019-06-13 Pedro Alves <palves@redhat.com>
8300
8301 * thread.c (thread_apply_command): Check for invalid TID with
8302 isdigit instead of !isalpha.
8303
8304 2019-06-13 Pedro Alves <palves@redhat.com>
8305
8306 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8307 (validate_flags_qcs): New.
8308 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8309 (validate_flags_qcs): Declare.
8310 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8311 (make_frame_apply_options_def_group): New.
8312 (frame_apply_command_count): Process options with
8313 gdb::option::process_options.
8314 (frame_apply_completer): New.
8315 (frame_apply_level_completer, frame_apply_all_completer)
8316 (frame_apply_completer): New.
8317 (_initialize_stack): Update help of "frame apply", "frame apply
8318 level", "frame apply all" and "faas" to mention supported options
8319 and install command completers.
8320 * stack.h (frame_apply_all_completer): Declare.
8321 * thread.c: Include "stack.h".
8322 (tfaas_command): Add "--".
8323 (_initialize_thread): Update help "tfaas" to mention supported
8324 options and install command completer.
8325
8326 2019-06-13 Pedro Alves <palves@redhat.com>
8327
8328 * completer.c (complete_nested_command_line): New.
8329 (gdb_completion_word_break_characters_throw): Add assertion.
8330 * completer.h (complete_nested_command_line): Declare.
8331
8332 2019-06-13 Pedro Alves <palves@redhat.com>
8333
8334 * stack.c (parse_backtrace_qualifiers): New.
8335 (backtrace_command): Use it.
8336 (backtrace_command_completer): Complete on qualifiers.
8337
8338 2019-06-13 Pedro Alves <palves@redhat.com>
8339
8340 * frame.c: Include "cli/cli-option.h.
8341 (user_set_backtrace_options): New.
8342 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8343 Delete.
8344 (get_prev_frame): Adjust.
8345 (boolean_option_def, uinteger_option_def)
8346 (set_backtrace_option_defs): New.
8347 (_initialize_frame): Adjust and use
8348 gdb::option::add_setshow_cmds_for_options to install "set
8349 backtrace past-main" and "set backtrace past-entry".
8350 * frame.h: Include "cli/cli-option.h".
8351 (struct frame_print_options): Forward declare.
8352 (print_frame_arguments_all, print_frame_arguments_scalars)
8353 (print_frame_arguments_none): Declare.
8354 (print_entry_values): Delete declaration.
8355 (struct frame_print_options, user_frame_print_options): New.
8356 (struct set_backtrace_options): New.
8357 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8358 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8359 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8360 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8361 (list_args_or_locals): Add frame_print_options parameter.
8362 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8363 * python/py-framefilter.c (enumerate_args): Pass down
8364 USER_FRAME_PRINT_OPTIONS.
8365 * stack.c: Include "cli/cli-option.h".
8366 (print_frame_arguments_all, print_frame_arguments_scalars)
8367 (print_frame_arguments_none): Declare.
8368 (print_raw_frame_arguments, print_entry_values): Delete.
8369 (user_frame_print_options): New.
8370 (boolean_option_def, enum_option_def, frame_print_option_defs):
8371 New.
8372 (struct backtrace_cmd_options): New.
8373 (bt_flag_option_def): New.
8374 (backtrace_command_option_defs): New.
8375 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8376 (print_frame_arg, read_frame_arg, print_frame_args)
8377 (print_frame_info, print_frame): Add frame_print_options parameter
8378 and use it.
8379 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8380 (backtrace_command_1): Add frame_print_options and
8381 backtrace_cmd_options parameters and use them.
8382 (make_backtrace_options_def_group): New.
8383 (backtrace_command): Process command options with
8384 gdb::option::process_options.
8385 (backtrace_command_completer): New.
8386 (_initialize_stack): Extend "backtrace"'s help to mention
8387 supported options. Install completer for "backtrace".
8388 Install some settings commands with add_setshow_cmds_for_options.
8389
8390 2019-06-13 Pedro Alves <palves@redhat.com>
8391
8392 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8393 and that "set/show print raw frame-arguments" are now deprecated.
8394
8395 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8396 command.
8397 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8398 * stack.c (_initialize_stack): Install "set/show print
8399 raw-frame-arguments", and deprecate "set/show print raw
8400 frame-arguments".
8401 * valprint.c (_initialize_valprint): Deprecate "set/show print
8402 raw".
8403
8404 2019-06-13 Pedro Alves <palves@redhat.com>
8405
8406 * compile/compile.c (struct compile_options): New.
8407 (compile_flag_option_def, compile_command_option_defs)
8408 (make_compile_options_def_group): New.
8409 (compile_file_command): Handle options with
8410 gdb::option::process_options.
8411 (compile_file_command_completer): New function.
8412 (compile_code_command): Handle options with
8413 gdb::option::process_options.
8414 (compile_code_command_completer): New function.
8415 (_initialize_compiler): Install completers for "compile code" and
8416 "compile file". Mention available options in "compile code" and
8417 "compile code"'s help.
8418 * completer.c (advance_to_completion_word): New, factored out from
8419 ...
8420 (advance_to_expression_complete_word_point): ... this.
8421 (advance_to_filename_complete_word_point): New.
8422 * completer.h (advance_to_filename_complete_word_point): New
8423 declaration.
8424
8425 2019-06-13 Pedro Alves <palves@redhat.com>
8426
8427 * compile/compile.c: Include "cli/cli-option.h".
8428 (compile_print_value): Scope data pointer is now a
8429 value_print_options pointer; adjust.
8430 (compile_print_command): Process options. Scope data pointer is
8431 now a value_print_options pointer; adjust.
8432 (_initialize_compile): Update "compile print"'s help to include
8433 supported options. Install a completer for "compile print".
8434 * cp-valprint.c (show_vtblprint, show_objectprint)
8435 (show_static_field_print): Delete.
8436 (_initialize_cp_valprint): Don't install "set print
8437 static-members", "set print vtbl", "set print object" here.
8438 * printcmd.c: Include "cli/cli-option.h" and
8439 "common/gdb_optional.h".
8440 (print_command_parse_format): Rework to fill in a
8441 value_print_options instead of a format_data.
8442 (print_value): Change parameter type from format_data pointer to
8443 value_print_options reference. Adjust.
8444 (print_command_1): Process options. Adjust to pass down a
8445 value_print_options.
8446 (print_command_completer): New.
8447 (_initialize_printcmd): Install print_command_completer as
8448 handle_brkchars completer for the "print" command. Update
8449 "print"'s help to include supported options.
8450 * valprint.c: Include "cli/cli-option.h".
8451 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8452 here from cp-valprint.c.
8453 (boolean_option_def, uinteger_option_def)
8454 (value_print_option_defs, make_value_print_options_def_group):
8455 New. Use gdb::option::add_setshow_cmds_for_options to install
8456 "set print elements", "set print null-stop", "set print repeats",
8457 "set print pretty", "set print union", "set print array", "set
8458 print address", "set print symbol", "set print array-indexes".
8459 * valprint.h: Include <string> and "cli/cli-option.h".
8460 (make_value_print_options_def_group): Declare.
8461 (print_value): Change parameter type from format_data pointer to
8462 value_print_options reference.
8463 (print_command_completer): Declare.
8464
8465 2019-06-13 Pedro Alves <palves@redhat.com>
8466
8467 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8468 (COMMON_SFILES): Add maint-test-settings.c.
8469 * cli/cli-decode.c (boolean_enums): New global, factored out from
8470 ...
8471 (add_setshow_boolean_cmd): ... here.
8472 * cli/cli-decode.h (boolean_enums): Declare.
8473 * cli/cli-option.c: New file.
8474 * cli/cli-option.h: New file.
8475 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8476 factored out from ...
8477 (parse_cli_boolean_value(const char *)): ... this.
8478 (is_unlimited_literal): Change parameter type to pointer to
8479 pointer. Adjust and advance ARG pointer.
8480 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8481 (parse_cli_var_enum): New, factored out from ...
8482 (do_set_command): ... this. Adjust.
8483 * cli/cli-setshow.h (parse_cli_boolean_value)
8484 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8485 (parse_cli_var_enum): Declare.
8486 * cli/cli-utils.c: Include "cli/cli-option.h".
8487 (get_ulongest): New.
8488 * cli/cli-utils.h (get_ulongest): Declare.
8489 (check_for_argument): New overloads.
8490 * maint-test-options.c: New file.
8491
8492 2019-06-13 Pedro Alves <palves@redhat.com>
8493
8494 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8495 parse a range if "-" is at the end of the string.
8496
8497 2019-06-13 Pedro Alves <palves@redhat.com>
8498
8499 * cli/cli-setshow.c (parse_auto_binary_operation)
8500 (parse_cli_boolean_value): Don't allow "o".
8501
8502 2019-06-13 Pedro Alves <palves@redhat.com>
8503
8504 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8505 * NEWS: Mention maint test-settings KIND.
8506 * maint-test-settings.c: New file.
8507
8508 2019-06-13 Pedro Alves <palves@redhat.com>
8509
8510 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8511 completer.
8512 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8513 "set" completers.
8514
8515 2019-06-13 Pedro Alves <palves@redhat.com>
8516
8517 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8518 after item.
8519
8520 2019-06-13 Pedro Alves <palves@redhat.com>
8521
8522 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8523
8524 2019-06-13 Pedro Alves <palves@redhat.com>
8525
8526 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8527 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8528 call.
8529 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8530 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8531 calls.
8532 (check_for_argument): Skip spaces after argument.
8533
8534 2019-06-13 Pedro Alves <palves@redhat.com>
8535
8536 * thread.c (thread_apply_command): Adjust TID parsing.
8537 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8538 detected before end of string.
8539 (tid_is_in_list): Error out if LIST is invalid.
8540
8541 2019-06-13 Pedro Alves <palves@redhat.com>
8542
8543 * completer.c (complete_line_internal_1): Rewind completion word
8544 point.
8545 (completion_tracker::advance_custom_word_point_by): Change
8546 parameter type to int.
8547 * completer.h (completion_tracker::advance_custom_word_point_by):
8548 Likewise.
8549
8550 2019-06-13 Pedro Alves <palves@redhat.com>
8551
8552 * completer.c (advance_to_completion_word): Handle delimiters.
8553
8554 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8555
8556 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8557
8558 2019-06-11 Tom Tromey <tom@tromey.com>
8559
8560 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8561 (xmalloc_failed): Move to alloc.c.
8562 * alloc.c: New file.
8563 * Makefile.in (COMMON_SFILES): Add alloc.c.
8564
8565 2019-06-11 Tom Tromey <tom@tromey.com>
8566
8567 * nat/linux-waitpid.c: Don't include server.h.
8568 (linux_debug): Remove.
8569 (my_waitpid): Update.
8570
8571 2019-06-11 Tom Tromey <tromey@adacore.com>
8572
8573 * infcall.c (_initialize_infcall): Remove trailing newline from
8574 help.
8575 * user-regs.c (_initialize_user_regs): Remove trailing newline
8576 from help.
8577 * typeprint.c (_initialize_typeprint): Remove trailing newline
8578 from help.
8579 * reverse.c (_initialize_reverse): Remove trailing newlines from
8580 help.
8581 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8582 from help.
8583 * language.c (add_set_language_command): Remove trailing newline
8584 from help.
8585 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8586 help.
8587 * disasm.c (_initialize_disasm): Remove trailing newline from
8588 help.
8589 * top.c (init_main): Remove trailing newline from help.
8590 * interps.c (_initialize_interpreter): Remove trailing newline
8591 from help.
8592 * btrace.c (_initialize_btrace): Remove trailing newlines from
8593 help.
8594 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8595 from help.
8596 * python/python.c (_initialize_python): Remove trailing newline
8597 from help.
8598 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8599 help.
8600 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8601 from help. Reformat some text.
8602 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8603 from help.
8604 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8605 newline from help.
8606
8607 2019-06-11 Tom Tromey <tromey@adacore.com>
8608
8609 * darwin-nat.c (darwin_decode_exception_message)
8610 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8611
8612 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * valops.c (value_slice): Check for not allocated or not
8615 associated values.
8616
8617 2019-06-10 Tom de Vries <tdevries@suse.de>
8618
8619 PR gdb/24618
8620 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8621 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8622 invalid.
8623
8624 2019-06-10 Tom de Vries <tdevries@suse.de>
8625
8626 PR gdb/24611
8627 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8628 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8629
8630 2019-06-10 Tom de Vries <tdevries@suse.de>
8631
8632 PR symtab/24545
8633 * symtab.c (struct demangled_name_entry): Add language field.
8634 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8635 static minimal symbol". Set and use language field.
8636
8637 2019-06-10 Tom Tromey <tromey@adacore.com>
8638
8639 * ada-lang.c (_initialize_ada_language): Update help text.
8640
8641 2019-06-10 Tom Tromey <tromey@adacore.com>
8642
8643 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8644 with a newline.
8645 * guile/guile.c (handle_boot_error): Don't end warning with a
8646 newline.
8647 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8648 warning with a newline.
8649 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8650 newline.
8651 (s12z_frame_cache): Likewise.
8652 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8653 a newline.
8654 * solib-svr4.c (disable_probes_interface): Don't end warning with
8655 a newline.
8656 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8657 newline.
8658 * python/python.c (do_finish_initialization): Don't end warning
8659 with a newline.
8660
8661 2019-06-10 Tom Tromey <tom@tromey.com>
8662
8663 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8664 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8665 gdbpy_enter.
8666
8667 2019-06-10 Tom Tromey <tromey@adacore.com>
8668
8669 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8670 data.
8671 (elf_new_init): Don't call stabsread_new_init.
8672 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8673 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8674 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8675
8676 2019-06-10 Tom de Vries <tdevries@suse.de>
8677
8678 PR symtab/16264
8679 PR symtab/24517
8680 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8681
8682 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8683
8684 * source.c (find_and_open_source): Also rewrite relative file
8685 names.
8686
8687 2019-04-26 Amos Bird <amosbird@gmail.com>
8688
8689 * annotate.c (annotate_thread_exited): Add "thread-exited"
8690 annotation.
8691
8692 2019-06-06 Tom Tromey <tromey@adacore.com>
8693
8694 * maint.h (class scoped_command_stats): Use
8695 DISABLE_COPY_AND_ASSIGN.
8696 <print_time>: New method.
8697 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8698 print_time.
8699 (scoped_command_stats::print_time): New method.
8700
8701 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8702
8703 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8704 instructions of lengths 6 or 8 bytes.
8705
8706 2019-06-04 Pedro Alves <palves@redhat.com>
8707
8708 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8709
8710 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8711 * breakpoint.c (condition_completer): Likewise.
8712 * cli/cli-dump.c (scan_expression): Likewise.
8713 * common/filestuff.c (mkdir_recursive): Likewise.
8714 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8715 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8716 (gdb_abspath): Likewise.
8717 * compile/compile-cplus-types.c
8718 (compile_cplus_instance::decl_name): Likewise.
8719 * completer.c (complete_explicit_location):
8720 (signal_completer, reg_or_group_completer_1): Likewise.
8721 * cp-support.c (cp_remove_params_if_any): Likewise.
8722 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8723 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8724 * infcmd.c (strip_bg_char): Likewise.
8725 * linespec.c (copy_token_string): Likewise.
8726 * mi/mi-main.c (output_cores): Likewise.
8727 * psymtab.c (psymtab_search_name):
8728 * symfile.c (test_set_ext_lang_command): Likewise.
8729 * target.c (target_fileio_read_stralloc): Likewise.
8730 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8731 * value.c (complete_internalvar): Likewise.
8732
8733 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8734
8735 Add objfile property to gdb.Type.
8736 * NEWS: Mention Python API addition.
8737 * python/py-type.c (typy_get_objfile): New method.
8738
8739 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8740
8741 * NEWS: Mention the new set|show style [title|highlight].
8742 Mention changes to "show style", "help" and "apropos".
8743
8744 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8745
8746 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8747 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8748 instead of print_help_for_command.
8749 (print_doc_of_command): New function.
8750 (help_list): Add 'apropos -v word' suggestion.
8751 (print_help_for_command): Style the command name using title style.
8752 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8753 (_initialize_cli_cmds): Describe -v in apropos_command help.
8754
8755 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8756
8757 * cli/cli-style.h (cli_style_option): Add name in constructor,
8758 add m_name class member, add constructor with intensity,
8759 add name class function.
8760 (cli_style_option::add_setshow_commands): Remove name argument.
8761 (highlight_style, title_style): New styles.
8762 * cli/cli-style.c (do_show): New function that shows a style
8763 characteristic styling the style name with itself.
8764 (set_style_name): New function.
8765 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8766 Update all callers according to the changes in cli/cli-style.h.
8767 * utils.h (fputs_highlighted): New function.
8768 * utils.c (fputs_highlighted): Likewise.
8769
8770 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8771
8772 * NEWS: Mention new pipe command and new convenience variables.
8773
8774 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8775
8776 * cli/cli-cmds.c (pipe_command): New function.
8777 (_initialize_cli_cmds): Call add_com for pipe_command.
8778 Define | as an alias for pipe.
8779 (exit_status_set_internal_vars): New function.
8780 (shell_escape): Call exit_status_set_internal_vars.
8781 cli/cli-decode.c (find_command_name_length): Recognize | as
8782 a single character command.
8783
8784 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8785
8786 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8787 top.c (execute_command_to_ui_file): New function, mostly a copy
8788 of execute_command_to_string.
8789 (execute_command_to_string): Implement by calling
8790 execute_command_to_ui_file.
8791
8792 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793
8794 * top.h (saved_command_line): Remove declaration.
8795 * top.c (previous_saved_command_line, previous_repeat_arguments):
8796 New variables.
8797 (saved_command_line): Make static, define together with other
8798 'repeat variables'.
8799 (dont_repeat): Clear repeat_arguments.
8800 (repeat_previous, get_saved_command_line, save_command_line):
8801 New functions.
8802 (gdb_init): Initialize saved_command_line
8803 and previous_saved_command_line.
8804 * main.c (captured_main_1): Remove saved_command_line initialization.
8805 * event-top.c (handle_line_of_input): Update to use
8806 the new 'repeat' related functions instead of direct access to
8807 saved_command_line.
8808 * command.h (repeat_previous, get_saved_command_line,
8809 save_command_line): New declarations.
8810 (dont_repeat): Add comment.
8811
8812 2019-05-30 Tom Tromey <tromey@adacore.com>
8813
8814 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8815 Fix comment.
8816 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8817
8818 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8819
8820 PR cli/24587
8821 * completer.c (complete): Initialize variable word.
8822
8823 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8824
8825 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8826 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8827 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8828 'body' is NULL to the outter 'if', protecting the '!is_define'
8829 situation as well.
8830
8831 2019-05-29 Tom Tromey <tromey@adacore.com>
8832
8833 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8834 (dwarf_unknown): New function.
8835 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8836 (dwarf_type_encoding_name): Use dwarf_unknown.
8837
8838 2019-05-29 Tom Tromey <tromey@adacore.com>
8839
8840 PR c++/20020:
8841 * cp-valprint.c (cp_print_value_fields): Call
8842 cp_print_static_field inside "try".
8843
8844 2019-05-29 Tom Tromey <tromey@adacore.com>
8845
8846 * inflow.c (struct terminal_info): Add default operator=.
8847 * configure: Rebuild.
8848 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8849 -Wdeprecated-copy-dtor, -Wredundant-move.
8850
8851 2019-05-29 Tom Tromey <tromey@adacore.com>
8852
8853 * NEWS: Add entry.
8854 * infcmd.c (print_return_value_1): Handle finish_print
8855 option.
8856 (show_print_finish): New function.
8857 (_initialize_infcmd): Add "set/show print finish" commands.
8858 * valprint.c (user_print_options): Initialize new member.
8859 * valprint.h (struct value_print_options) <finish_print>: New
8860 member.
8861
8862 2019-05-28 Tom Tromey <tromey@adacore.com>
8863
8864 * ada-lang.c (ada_remove_Xbn_suffix)
8865 (find_old_style_renaming_symbol)
8866 (parse_old_style_renaming): Remove.
8867 (ada_find_renaming_symbol): Don't call
8868 find_old_style_renaming_symbol.
8869 (ada_is_renaming_symbol): Rename from
8870 ada_find_renaming_symbol. Remove "block" parameter. Return
8871 bool. Now static.
8872 (ada_read_var_value): Update and simplify.
8873 * ada-exp.y (write_var_or_type): Remove old code.
8874
8875 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8876
8877 PR gdb/25010
8878 * event-top.c: Remove include comment.
8879 * inflow.c (class scoped_ignore_sigttou): Move from here...
8880 * inflow.h (class scoped_ignore_sigttou): ...to here.
8881 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8882 * top.c: Remove include comment.
8883
8884 2019-05-27 Tom Tromey <tom@tromey.com>
8885
8886 * NEWS: Fix typo.
8887
8888 2019-05-22 Tom Tromey <tromey@adacore.com>
8889
8890 * target.c (target_follow_exec): Constify parameter.
8891 * target-delegates.c: Rebuild.
8892 * remote.c (remote_target::follow_exec): Constify parameter.
8893 * infrun.c (follow_exec): Constify parameter.
8894 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8895 (target_follow_exec): Likewise.
8896
8897 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8898
8899 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8900 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8901
8902 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8903
8904 * NEWS: Add debugredirect and testsuite sections.
8905
8906 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8907
8908 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8909 target descriptions using exclusively floating point register name
8910 aliases.
8911
8912 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8913
8914 PR gdb/18644:
8915 * f-lang.c (build_fortran_types): Handle the case where
8916 gdbarch_floatformat_for_type returns a nullptr.
8917
8918 2019-05-21 Tom de Vries <tdevries@suse.de>
8919
8920 PR cli/24587
8921 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8922
8923 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 PR gdb/18644:
8926 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8927 16-byte floats.
8928 * i386-tdep.c (i386_floatformat_for_type): Use
8929 floatformats_ia64_quad for the 16-byte floating point component
8930 within a fortran 32-byte complex number.
8931
8932 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8933
8934 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8935 delete default constructor.
8936 (find_partial_die): Update to return const struct.
8937 (partial_die_parent_scope): Move variable declaration into scope
8938 of its use and change its type to auto.
8939 (guess_partial_die_structure_name): Likewise.
8940 (partial_die_info::fixup): Likewise.
8941
8942 2019-05-17 Tom Tromey <tromey@adacore.com>
8943
8944 * source.c (find_and_open_source): Remove cast.
8945
8946 2019-05-17 Tom Tromey <tromey@adacore.com>
8947
8948 * annotate.c (annotate_source): Make "filename" const.
8949 * annotate.h (annotate_source): Use const.
8950
8951 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8952
8953 * disasm.c (set_disassembler_options): Send errors to stderr.
8954
8955 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8956
8957 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8958 (cli_interp_base::set_logging): Check debug_redirect.
8959 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8960 * cli/cli-logging.c (debug_redirect): Add static variable.
8961 (pop_output_files): Add default param.
8962 (handle_redirections): Print debug setting.
8963 (show_logging_command): Likewise.
8964 (_initialize_cli_logging): Add debugredirect command.
8965 * interps.c (current_interp_set_logging): Add debug_redirect
8966 parameter.
8967 * interps.h (set_logging): Add debug_redirect parameter.
8968 (current_interp_set_logging): Likewise.
8969 * mi/mi-common.h: Likewise.
8970 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8971
8972 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8973 Tom Tromey <tromey@adacore.com>
8974
8975 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8976 directly.
8977 * cli/cli-interp.h (make_logging_output): Remove declaration.
8978 * cli/cli-logging.c (make_logging_output): Remove function.
8979 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8980 directly.
8981 * ui-file.c (tee_file::tee_file): Remove bools.
8982 (tee_file::~tee_file): Remove deletes.
8983 * ui-file.h (tee_file): Remove bools.
8984
8985 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8986
8987 * mi/mi-cmds.h (mi_cmd_complete): New function.
8988 * mi/mi-main.c (mi_cmd_complete): Likewise.
8989 * mi/mi-cmds.c: Define new MI command -complete.
8990 * NEWS: Mention new -complete command.
8991
8992 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8993
8994 * completer.h (complete): New function.
8995 * completer.c (complete): Likewise.
8996 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8997 function defined in completer.h.
8998
8999 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9000
9001 * MAINTAINERS (Write After Approval): Add myself.
9002
9003 2019-05-17 Tom de Vries <tdevries@suse.de>
9004
9005 PR gdb/24094
9006 * dwarf2read.c (struct cu_partial_die_info): New struct.
9007 (find_partial_die): Return cu_partial_die_info.
9008 (partial_die_parent_scope, guess_partial_die_structure_name)
9009 (partial_die_info::fixup): Handle new return type of find_partial_die.
9010
9011 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9012
9013 PR breakpoints/24541
9014 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9015 "std::string", simplifying the algorithm.
9016
9017 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9018
9019 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9020 (stap_static_probe_ops::get_probes): Likewise.
9021
9022 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9023
9024 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9025 '-')" and "else if".
9026 (stap_parse_single_operand): Join checks for
9027 "gdbarch_stap_parse_special_token_p" and
9028 "gdbarch_stap_parse_special_token" in the same "if" statement.
9029 Invert check when verifying for operation on register
9030 displacement.
9031
9032 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9033
9034 * stap-probe.c (stap_get_opcode): Update comment.
9035 (stap_get_expected_argument_type): Likewise.
9036 (handle_stap_probe): Likewise.
9037
9038 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9039
9040 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9041 return type to 'bool'. Adjust comment. Use 'bool' when
9042 appropriate.
9043 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9044 * stap-probe.c (stap_parse_argument_1): Likewise.
9045 (stap_is_operator): Likewise.
9046 (stap_is_generic_prefix): Likewise.
9047 (stap_is_register_prefix): Likewise.
9048 (stap_is_register_indirection_prefix): Likewise.
9049 (stap_is_integer_prefix): Likewise.
9050 (stap_generic_check_suffix): Likewise.
9051 (stap_check_integer_suffix): Likewise.
9052 (stap_check_register_suffix): Likewise.
9053 (stap_check_register_indirection_suffix): Likewise.
9054 (stap_parse_register_operand): Likewise.
9055 (stap_parse_single_operand): Likewise.
9056 (stap_parse_argument_1): Likewise.
9057 (stap_probe::get_argument_count): Likewise.
9058 (stap_is_operator): Likewise.
9059
9060 2019-05-16 Tom Tromey <tromey@adacore.com>
9061
9062 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9063 keyword to foreach.
9064
9065 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * linux-thread-db.c (try_thread_db_load_1): Change return type
9068 to bool.
9069 (try_thread_db_load): Likewise.
9070 (try_thread_db_load_from_pdir_1): Likewise.
9071 (try_thread_db_load_from_pdir): Likewise.
9072 (try_thread_db_load_from_sdir): Likewise.
9073 (try_thread_db_load_from_dir): Likewise.
9074 (thread_db_load_search): Likewise.
9075 (has_libpthread): Likewise.
9076 (thread_db_load): Likewise.
9077
9078 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9079
9080 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9081 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9082 NULL, and complain/return if that's the case.
9083
9084 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9085
9086 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9087 (advance, posn, abstract_read_memory): New functions.
9088 [struct mem_read_abstraction]: New struct.
9089 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9090
9091 2019-05-14 Tom Tromey <tromey@adacore.com>
9092
9093 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9094 value is not lval_memory.
9095
9096 2019-05-14 Tom Tromey <tromey@adacore.com>
9097
9098 * solib.c (info_sharedlibrary_command): Style the file name.
9099
9100 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9101
9102 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9103 (aarch64_vnv_type): Likewise.
9104 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9105 * common/tdesc.c: Likewise.
9106 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9107 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9108 * features/aarch64-fpu.xml: Add ieee half view.
9109 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9110 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9111 * gdbtypes.h (struct builtin_type): Likewise.
9112 (struct objfile_type): Likewise.
9113
9114 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9115
9116 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9117 typo.
9118 * location.h (string_to_event_location): Likewise.
9119
9120 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9121
9122 GDB 8.3 released.
9123
9124 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9125
9126 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9127 New variable declaration.
9128 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9129 New variable.
9130 (print_one_breakpoint): Use ui_out::test_flags and new global
9131 variable to compute use_fixed_output.
9132 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9133 Remove.
9134 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9135 (mi_multi_location_breakpoint_output_fixed): Remove.
9136 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9137 new variable.
9138 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9139 fix_multi_location_breakpoint_output flag if version >= 3.
9140 * ui-out.h (enum ui_out_flag)
9141 <fix_multi_location_breakpoint_output>: New enumerator.
9142
9143 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9144
9145 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9146
9147 2019-05-10 Tom Tromey <tromey@adacore.com>
9148
9149 * ada-lang.c (catch_ada_completer): New function.
9150 (_initialize_ada_language): Use it.
9151
9152 2019-05-10 Tom Tromey <tromey@adacore.com>
9153
9154 * thread.c (print_thread_info): Make "requested_threads" const.
9155 * gdbthread.h (print_thread_info): Make "requested_threads"
9156 const.
9157 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9158 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9159
9160 2019-05-08 Tom Tromey <tom@tromey.com>
9161
9162 * gdbtypes.c (objfile_type_data): Change type.
9163 (objfile_type, _initialize_gdbtypes): Update.
9164
9165 2019-05-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9168 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9169 (_initialize_dwarf2_frame): Update.
9170
9171 2019-05-08 Tom Tromey <tom@tromey.com>
9172
9173 * objc-lang.c (objc_objfile_data): Change type.
9174 (find_methods): Update.
9175 (_initialize_objc_lang): Remove.
9176
9177 2019-05-08 Tom Tromey <tom@tromey.com>
9178
9179 * stabsread.c (rs6000_builtin_type_data): Change type.
9180 (rs6000_builtin_type, _initialize_stabsread): Update.
9181
9182 2019-05-08 Tom Tromey <tom@tromey.com>
9183
9184 * mips-tdep.c (mips_pdr_data): Remove.
9185 (_initialize_mips_tdep): Update.
9186
9187 2019-05-08 Tom Tromey <tom@tromey.com>
9188
9189 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9190 (hppa_init_objfile_priv_data, read_unwind_info)
9191 (find_unwind_entry, _initialize_hppa_tdep): Update.
9192
9193 2019-05-08 Tom Tromey <tom@tromey.com>
9194
9195 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9196 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9197 on obstack.
9198 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9199
9200 2019-05-08 Tom Tromey <tom@tromey.com>
9201
9202 * mdebugread.c (basic_type_data): Change type.
9203 (basic_type, _initialize_mdebugread): Update.
9204
9205 2019-05-08 Tom Tromey <tom@tromey.com>
9206
9207 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9208
9209 2019-05-08 Tom Tromey <tom@tromey.com>
9210
9211 * nto-tdep.c (nto_inferior_data_reg): Change type.
9212 (nto_inferior_data): Update.
9213 (nto_inferior_data_cleanup, nto_new_inferior_data)
9214 (_initialize_nto_tdep): Remove.
9215 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9216
9217 2019-05-08 Tom Tromey <tom@tromey.com>
9218
9219 * ada-lang.c (struct ada_inferior_data): Add initializers.
9220 (ada_inferior_data): Change type.
9221 (ada_inferior_data_cleanup): Remove.
9222 (get_ada_inferior_data, ada_inferior_exit)
9223 (struct ada_pspace_data): Add initializers, destructor.
9224 (ada_pspace_data_handle): Change type.
9225 (get_ada_pspace_data): Update.
9226 (ada_pspace_data_cleanup): Remove.
9227
9228 2019-05-08 Tom Tromey <tom@tromey.com>
9229
9230 * coffread.c (struct coff_symfile_info): Add initializers.
9231 (coff_objfile_data_key): Move lower. Change type.
9232 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9233 Update.
9234 (coff_free_info): Remove.
9235
9236 2019-05-08 Tom Tromey <tom@tromey.com>
9237
9238 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9239 (fbsd_pspace_data_handle): Move lower. Change type.
9240 (get_fbsd_pspace_data): Update.
9241 (fbsd_pspace_data_cleanup): Remove.
9242 (_initialize_fbsd_tdep): Update.
9243
9244 2019-05-08 Tom Tromey <tom@tromey.com>
9245
9246 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9247 (get_ada_tasks_pspace_data): Update.
9248 (ada_tasks_pspace_data_cleanup): Remove.
9249 (_initialize_tasks): Update.
9250 (ada_tasks_inferior_data_handle): Change type.
9251 (get_ada_tasks_inferior_data): Update.
9252 (ada_tasks_inferior_data_cleanup): Remove.
9253 (struct ada_tasks_pspace_data): Add initializers.
9254
9255 2019-05-08 Tom Tromey <tom@tromey.com>
9256
9257 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9258 * symfile-debug.c (debug_sym_get_probes): Change type.
9259 * stap-probe.c (handle_stap_probe):
9260 (stap_static_probe_ops::get_probes): Change type.
9261 * probe.h (class static_probe_ops) <get_probes>: Change type.
9262 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9263 (parse_probes_in_pspace): Update.
9264 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9265 Update.
9266 (any_static_probe_ops::get_probes): Change type.
9267 * elfread.c (elfread_data): New typedef.
9268 (probe_key): Change type.
9269 (elf_get_probes): Likewise. Update.
9270 (probe_key_free): Remove.
9271 (_initialize_elfread): Update.
9272 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9273 Change type.
9274 (dtrace_process_dof_probe, dtrace_process_dof)
9275 (dtrace_static_probe_ops::get_probe): Change type.
9276
9277 2019-05-08 Tom Tromey <tom@tromey.com>
9278
9279 * xcoffread.c (struct xcoff_symfile_info): Rename from
9280 coff_symfile_info. Add initializers.
9281 (xcoff_objfile_data_key): Move lower. Change type.
9282 (XCOFF_DATA): Rewrite.
9283 (xcoff_free_info): Remove.
9284 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9285 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9286 (xcoff_initial_scan): Update.
9287
9288 2019-05-08 Tom Tromey <tom@tromey.com>
9289
9290 * solib-svr4.c (struct svr4_info): Add initializers and
9291 destructor.
9292 <probes_table>: Now an htab_up.
9293 (solib_svr4_pspace_data): Change type.
9294 (free_probes_table): Simplify.
9295 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9296 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9297 (probes_table_remove_objfile_probes, register_solib_event_probe)
9298 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9299 (_initialize_svr4_solib): Update.
9300
9301 2019-05-08 Tom Tromey <tom@tromey.com>
9302
9303 * remote.c (remote_pspace_data): Change type.
9304 (remote_pspace_data_cleanup): Remove.
9305 (get_remote_exec_file, set_pspace_remote_exec_file)
9306 (_initialize_remote): Update.
9307
9308 2019-05-08 Tom Tromey <tom@tromey.com>
9309
9310 * breakpoint.c (breakpoint_objfile_key): Change type.
9311 (get_breakpoint_objfile_data): Update.
9312 (free_breakpoint_objfile_data): Remove.
9313 (_initialize_breakpoint): Update.
9314
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9316
9317 * linux-tdep.c (struct linux_info): Add initializers.
9318 (linux_inferior_data): Move. Change type.
9319 (invalidate_linux_cache_inf): Update.
9320 (linux_inferior_data_cleanup): Remove.
9321 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9322
9323 2019-05-08 Tom Tromey <tom@tromey.com>
9324
9325 * auxv.c (auxv_inferior_data): Move. Change type.
9326 (auxv_inferior_data_cleanup): Remove.
9327 (invalidate_auxv_cache_inf): Rewrite.
9328 (get_auxv_inferior_data, _initialize_auxv): Update.
9329
9330 2019-05-08 Tom Tromey <tom@tromey.com>
9331
9332 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9333 (symfile_debug_objfile_data_key): Change type.
9334 (symfile_debug_installed, debug_qf_has_symbols)
9335 (debug_qf_find_last_source_symtab)
9336 (debug_qf_forget_cached_source_info)
9337 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9338 (debug_qf_print_stats, debug_qf_dump)
9339 (debug_qf_expand_symtabs_for_function)
9340 (debug_qf_expand_all_symtabs)
9341 (debug_qf_expand_symtabs_with_fullname)
9342 (debug_qf_map_matching_symbols)
9343 (debug_qf_expand_symtabs_matching)
9344 (debug_qf_find_pc_sect_compunit_symtab)
9345 (debug_qf_map_symbol_filenames)
9346 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9347 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9348 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9349 (debug_sym_read_linetable, debug_sym_relocate): Update.
9350 (symfile_debug_free_objfile): Remove.
9351 (install_symfile_debug_logging, _initialize_symfile_debug):
9352 Update.
9353
9354 2019-05-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9357 allocate_on_obstack.
9358 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9359 (get_dwarf2_per_objfile): Update.
9360 (set_dwarf2_per_objfile): Remove.
9361 (dwarf2_has_info, dwarf2_get_section_info): Update.
9362 (dwarf2_free_objfile): Remove.
9363 (_initialize_dwarf2_read): Update.
9364
9365 2019-05-08 Tom Tromey <tom@tromey.com>
9366
9367 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9368 initializers.
9369 <unsupported_script_warning_printed,
9370 script_not_found_warning_printed>: Now bool.
9371 (auto_load_pspace_data): Change type.
9372 (~auto_load_pspace_info): Rename from
9373 auto_load_pspace_data_cleanup.
9374 (get_auto_load_pspace_data, init_loaded_scripts_info)
9375 (clear_section_scripts, maybe_print_unsupported_script_warning)
9376 (maybe_print_script_not_found_warning, _initialize_auto_load):
9377 Update.
9378
9379 2019-05-08 Tom Tromey <tom@tromey.com>
9380
9381 * objfiles.c (objfile_pspace_info): Add destructor and
9382 initializers.
9383 (objfiles_pspace_data): Change type.
9384 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9385 (get_objfile_pspace_data): Update.
9386 (objfiles_bfd_data): Change type.
9387 (get_objfile_bfd_data): Update.
9388 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9389
9390 2019-05-08 Tom Tromey <tom@tromey.com>
9391
9392 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9393 Change type.
9394 (get_catch_syscall_inferior_data): Update.
9395 (catch_syscall_inferior_data_cleanup): Remove.
9396 (_initialize_break_catch_syscall): Update.
9397
9398 2019-05-08 Tom Tromey <tom@tromey.com>
9399
9400 * inflow.c (struct terminal_info): Add destructor and
9401 initializers.
9402 (inflow_inferior_data): Change type.
9403 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9404 (get_inflow_inferior_data, inflow_inferior_exit)
9405 (swap_terminal_info, _initialize_inflow): Update.
9406
9407 2019-05-08 Tom Tromey <tom@tromey.com>
9408
9409 * target-dcache.c (target_dcache_cleanup): Remove.
9410 (target_dcache_aspace_key): Change type.
9411 (target_dcache_init_p, target_dcache_invalidate)
9412 (target_dcache_get, target_dcache_get_or_init)
9413 (_initialize_target_dcache): Update.
9414 * dcache.h (struct dcache_deleter): New.
9415
9416 2019-05-08 Tom Tromey <tom@tromey.com>
9417
9418 * symtab.c (struct symbol_cache): Add destructor and
9419 initializers.
9420 (symbol_cache_key): Move. Change type.
9421 (make_symbol_cache, free_symbol_cache): Remove.
9422 (get_symbol_cache): Update.
9423 (symbol_cache_cleanup): Remove.
9424 (ALL_PSPACES, symbol_cache_flush)
9425 (maintenance_print_symbol_cache)
9426 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9427 Update.
9428
9429 2019-05-08 Tom Tromey <tom@tromey.com>
9430
9431 * symtab.c (struct main_info): Add destructor and initializers.
9432 (main_progspace_key): Move. Change type.
9433 (get_main_info): Update.
9434 (main_info_cleanup): Remove.
9435 (_initialize_symtab): Update.
9436
9437 2019-05-08 Tom Tromey <tom@tromey.com>
9438
9439 * registry.h (DECLARE_REGISTRY): Define the _key class.
9440
9441 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * NEWS: Merge two 'New commands' sections.
9444
9445 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9446
9447 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9448 parameter and use Ada language definition instead.
9449 (ada_val_print_ptr): Remove unused language parameter.
9450 (ada_val_print_num): Remove language parameter and use Ada language
9451 definition instead.
9452 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9453 parameter.
9454 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9455 parameter and use Ada language definition instead.
9456 (ada_val_print_1): Update all ada_val_print_xxx calls.
9457 Remove language parameter.
9458 (ada_val_print): Update ada_val_print_1 call.
9459
9460 2019-05-08 Tom Tromey <tromey@adacore.com>
9461
9462 * remote.c (remote_hw_watchpoint_limit)
9463 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9464 Now static.
9465
9466 2019-05-08 Tom Tromey <tromey@adacore.com>
9467
9468 * maint.c (_initialize_maint_cmds): Move initialization code to
9469 remote.c.
9470 (watchdog, show_watchdog): Move to remote.c.
9471 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9472 "watchdog" static.
9473 (_initialize_remote): Move initialization code from maint.c.
9474 * defs.h (watchdog): Don't declare.
9475
9476 2019-05-08 Tom Tromey <tromey@adacore.com>
9477
9478 * tui/tui-interp.c: Include main.h.
9479 * interps.c: Include main.h.
9480 * main.h (interpreter_p): Declare.
9481 * defs.h (interpreter_p): Don't declare.
9482
9483 2019-05-08 Tom Tromey <tromey@adacore.com>
9484
9485 * dwarf2loc.c: Include dwarf2read.h.
9486 * defs.h (read_unsigned_leb128): Don't declare.
9487 * dwarf2read.h (read_unsigned_leb128): Declare.
9488
9489 2019-05-08 Tom Tromey <tromey@adacore.com>
9490
9491 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9492 method.
9493
9494 2019-05-08 Tom Tromey <tromey@adacore.com>
9495
9496 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9497 when no wrap column is set.
9498
9499 2019-05-08 Tom Tromey <tromey@adacore.com>
9500
9501 * c-lang.c (c_get_string): Handle non-C-style arrays.
9502
9503 2019-05-08 Tom Tromey <tromey@adacore.com>
9504
9505 * typeprint.c (print_offset_data::update): Print the bit offset,
9506 not the number of bits remaining.
9507
9508 2019-05-08 Tom Tromey <tromey@adacore.com>
9509
9510 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9511 padding at end of comment.
9512
9513 2019-05-08 Tom Tromey <tromey@adacore.com>
9514
9515 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9516 Compare main types.
9517
9518 2019-05-06 Tom Tromey <tom@tromey.com>
9519
9520 * common/scoped_mmap.c: Include common-defs.h.
9521 * common/scoped_mmap.h: Don't include config.h.
9522
9523 2019-05-04 Tom Tromey <tom@tromey.com>
9524
9525 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9526 (struct aarch64_call_info): Add initializers.
9527 <si>: Now a std::vector.
9528 (pass_on_stack, aarch64_push_dummy_call): Update.
9529
9530 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9531 Tom Tromey <tom@tromey.com>
9532
9533 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9534 (ppc_threads): Now a std::vector. Now static.
9535 (hwdebug_find_thread_points_by_tid)
9536 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9537 Update.
9538
9539 2019-05-04 Tom Tromey <tom@tromey.com>
9540
9541 * arc-tdep.c (arc_tdesc_init): Return bool.
9542
9543 2019-05-04 Tom Tromey <tom@tromey.com>
9544
9545 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9546 Use gdb_assert_not_reached.
9547
9548 2019-05-04 Tom Tromey <tom@tromey.com>
9549
9550 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9551 "false".
9552
9553 2019-05-04 Tom Tromey <tom@tromey.com>
9554
9555 * arc-tdep.c (arc_tdesc_init): Use bool.
9556
9557 2019-05-04 Tom Tromey <tom@tromey.com>
9558
9559 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9560
9561 2019-05-04 Tom Tromey <tom@tromey.com>
9562
9563 * cli/cli-cmds.c (valid_command_p): Return bool.
9564
9565 2019-05-04 Tom Tromey <tom@tromey.com>
9566
9567 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9568 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9569
9570 2019-05-04 Raul Tambre <raul@tambre.ee>
9571
9572 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9573 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9574 operator for comparison.
9575
9576 2019-05-04 Tom Tromey <tom@tromey.com>
9577
9578 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9579 (lookup_partial_symbol, print_partial_symbols)
9580 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9581 (psymbol_compare): Update.
9582 (add_psymbol_to_bcache): Clear the entire psymbol.
9583 (maintenance_check_psymtabs): Update.
9584 * psympriv.h (struct partial_symbol): Don't derive from
9585 general_symbol_info.
9586 <obj_section, unrelocated_address, address,
9587 set_unrelocated_address>: Update.
9588 <ginfo>: New member.
9589 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9590 (debug_names::write_psymbols): Update.
9591
9592 2019-05-04 Tom de Vries <tdevries@suse.de>
9593
9594 * contrib/cc-with-tweaks.sh: Support -n arg.
9595
9596 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9597
9598 * corelow.c (core_target::detach): Ensure frame cache and
9599 register caches are cleared.
9600 inferior.c (exit_inferior_1): Likewise.
9601
9602 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9603 Tom Tromey <tom@tromey.com>
9604
9605 * dictionary.c (collate_pending_symbols_by_language): Remove
9606 "struct" from foreach.
9607 * symtab.c (lookup_global_symbol_from_objfile)
9608 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9609 foreach.
9610 * ser-tcp.c (net_open): Remove "struct" from foreach.
9611 * objfiles.c (objfile_relocate, objfile_rebase)
9612 (objfile_has_symbols): Remove "struct" from foreach.
9613 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9614 from foreach.
9615 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9616 foreach.
9617 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9618 "struct" from foreach.
9619 * ada-lang.c (create_excep_cond_exprs)
9620 (ada_exception_catchpoint_cond_string): Remove "struct" from
9621 foreach.
9622
9623 2019-05-03 Tom Tromey <tromey@adacore.com>
9624
9625 * ada-exp.y (convert_char_literal): Check suffix of each
9626 enumerator.
9627
9628 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9629
9630 PR ada/21406:
9631 * ada-exp.y (yywrap): Don't define.
9632 * ada-lex.l (%option): Add noyywrap
9633 (yywrap): Remove.
9634
9635 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9636
9637 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9638 _WIN32_WINNT to the XP level, unless already defined to a higher
9639 level.
9640
9641 * unittests/parse-connection-spec-selftests.c:
9642 * ser-tcp.c:
9643 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9644 override.
9645
9646 * symfile.c (find_separate_debug_file): Remove colon from the
9647 drive spec of DOS/Windows file names of the target, so that the
9648 file name produced from DEBUGDIR and the target's directory will
9649 be valid on DOS/Windows systems.
9650
9651 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * rust-lang.c (val_print_struct): Handle printing structures
9654 containing strings.
9655
9656 2019-05-02 Tom Tromey <tromey@adacore.com>
9657
9658 * valarith.c (_initialize_valarith): Remove.
9659
9660 2019-05-01 Tom Tromey <tromey@adacore.com>
9661
9662 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9663 bitfields.
9664
9665 2019-05-01 Tom Tromey <tromey@adacore.com>
9666
9667 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9668 for big-endian copies.
9669
9670 2019-04-30 Ali Tamur <tamur@google.com>
9671 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9672 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9673 (read_3_bytes): New function.
9674
9675 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9676
9677 * windows-nat.c (main_thread_id): Delete.
9678 (handle_output_debug_string): Replace main_thread_id by
9679 current_event.dwThreadId.
9680 (fake_create_process): Likewise.
9681 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9682 Do not set main_thread_id.
9683 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9684 current_event.dwThreadId.
9685 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9686
9687 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9688
9689 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9690 Use current_event.dwThreadId instead of main_thread_id.
9691
9692 2019-04-30 Tom Tromey <tromey@adacore.com>
9693
9694 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9695 (create_excep_cond_exprs): Iterate over program spaces.
9696 (ada_exception_catchpoint_cond_string): Examine all minimal
9697 symbols for exception types.
9698
9699 2019-04-30 Tom Tromey <tromey@adacore.com>
9700
9701 PR c++/24470:
9702 * dwarf2read.c (process_structure_scope): Handle case where type
9703 has template parameters but no symbol was created.
9704
9705 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9706 Chris January <chris.january@arm.com>
9707
9708 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9709 qualifier.
9710 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9711
9712 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9713
9714 * f-typeprint.c (f_print_type): Update rules for printing
9715 whitespace.
9716 (f_type_print_varspec_suffix): Likewise.
9717
9718 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9719 Chris January <chris.january@arm.com>
9720
9721 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9722 function arguments.
9723
9724 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9725
9726 * f-lang.c (build_fortran_types): Change name of void type to
9727 lower case.
9728 * f-typeprint.c (f_type_print_base): Print the name of the void
9729 type, rather than a fixed string.
9730 * f-valprint.c (f_decorations): Use lower case void string.
9731
9732 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9733 Chris January <chris.january@arm.com>
9734
9735 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9736 types for Fortran.
9737
9738 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9739 Chris January <chris.january@arm.com>
9740 David Lecomber <david.lecomber@arm.com>
9741
9742 * f-exp.y (BINOP_INTRINSIC): New token.
9743 (exp): New parser rule handling BINOP_INTRINSIC.
9744 (f77_keywords): Add new builtin procedures.
9745 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9746 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9747 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9748 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9749 (print_unop_subexp_f): New function.
9750 (print_binop_subexp_f): New function.
9751 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9752 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9753 (dump_subexp_body_f): Likewise.
9754 (operator_check_f): Likewise.
9755 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9756 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9757
9758 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9761 UNOP_KIND.
9762 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9763 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9764 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9765 (operator_length_f): New fuction.
9766 (print_subexp_f): New function.
9767 (op_name_f): New function.
9768 (dump_subexp_body_f): New function.
9769 (operator_check_f): New function.
9770 (exp_descriptor_f): Replace standard expression handling functions
9771 with new functions.
9772 * gdb/fortran-operator.def: New file.
9773 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9774 * gdb/std-operator.def: Remove UNOP_KIND.
9775
9776 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9777
9778 * std-operator.def: Remove unbalanced, stray double quote
9779 character.
9780
9781 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9782 Chris January <chris.january@arm.com>
9783 Daniel Everett <daniel.everett@arm.com>
9784 Nick Forrington <nick.forrington@arm.com>
9785 Richard Bunt <richard.bunt@arm.com>
9786
9787 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9788 of depth when printing anonymous structs or unions.
9789 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9790 Don't print either the top-level value, or the children if the
9791 max-depth is exceeded.
9792 (ppscm_print_children): When printing the key of a map, allow one
9793 extra level of depth.
9794 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9795 print either the top-level value, or the children if the max-depth
9796 is exceeded.
9797 (print_children): When printing the key of a map, allow one extra
9798 level of depth.
9799 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9800 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9801 (user_print_options): Initialise max_depth field.
9802 (val_print_scalar_or_string_type_p): New function.
9803 (val_print): Check to see if the max depth has been reached.
9804 (val_print_check_max_depth): Define new function.
9805 (show_print_max_depth): New function.
9806 (_initialize_valprint): Add 'print max-depth' option.
9807 * valprint.h (struct value_print_options) <max_depth>: New field.
9808 (val_print_check_max_depth): Declare new function.
9809 * NEWS: Document new feature.
9810
9811 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9812
9813 * ada-lang.c (ada_language_defn): Initialise new field.
9814 * c-lang.c (c_is_string_type_p): New function.
9815 (c_language_defn): Initialise new field.
9816 (cplus_language_defn): Initialise new field.
9817 (asm_language_defn): Initialise new field.
9818 (minimal_language_defn): Initialise new field.
9819 * c-lang.h (c_is_string_type_p): Declare new function.
9820 * d-lang.c (d_language_defn): Initialise new field.
9821 * f-lang.c (f_is_string_type_p): New function.
9822 (f_language_defn): Initialise new field.
9823 * go-lang.c (go_is_string_type_p): New function.
9824 (go_language_defn): Initialise new field.
9825 * language.c (default_is_string_type_p): New function.
9826 (unknown_language_defn): Initialise new field.
9827 (auto_language_defn): Initialise new field.
9828 * language.h (struct language_defn) <la_is_string_type_p>: New
9829 member variable.
9830 (default_is_string_type_p): Declare new function.
9831 * m2-lang.c (m2_language_defn): Initialise new field.
9832 * objc-lang.c (objc_language_defn): Initialise new field.
9833 * opencl-lang.c (opencl_language_defn): Initialise new field.
9834 * p-lang.c (pascal_is_string_type_p): New function.
9835 (pascal_language_defn): Initialise new field.
9836 * rust-lang.c (rust_is_string_type_p): New function.
9837 (rust_language_defn): Initialise new field.
9838
9839 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9840
9841 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9842 New field.
9843 * ada-lang.c (ada_language_defn): Initialise new field.
9844 * c-lang.c (c_language_defn): Likewise.
9845 (cplus_language_defn): Likewise.
9846 (asm_language_defn): Likewise.
9847 (minimal_language_defn): Likewise.
9848 * d-lang.c (d_language_defn): Likewise.
9849 * f-lang.c (f_language_defn): Likewise.
9850 * go-lang.c (go_language_defn): Likewise.
9851 * language.c (unknown_language_defn): Likewise.
9852 (auto_language_defn): Likewise.
9853 * m2-lang.c (m2_language_defn): Likewise.
9854 * objc-lang.c (objc_language_defn): Likewise.
9855 * opencl-lang.c (opencl_language_defn): Likewise.
9856 * p-lang.c (pascal_language_defn): Likewise.
9857 * rust-lang.c (rust_language_defn): Likewise.
9858
9859 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9860
9861 * ada-lang.c (ada_is_character_type): Change return type to bool.
9862 (ada_is_string_type): Likewise.
9863 * ada-lang.h (ada_is_character_type): Update declaration
9864 (ada_is_string_type): Likewise.
9865
9866 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9867
9868 Support style in 'frame|thread apply'
9869
9870 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9871 * record.c (record_start, record_stop): Update callers of
9872 execute_command_to_string with false.
9873 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9874 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9875 methods.
9876 (class string_file): New constructor with term_out parameter.
9877 Override methods term_out and can_emit_style_escape. New member
9878 term_out.
9879 (class stdio_file): Override can_emit_style_escape.
9880 (class tee_file): Override term_out and can_emit_style_escape.
9881 * utils.h (can_emit_style_escape): Remove.
9882 * utils.c (can_emit_style_escape): Likewise.
9883 Update all callers of can_emit_style_escape (SOMESTREAM) to
9884 SOMESTREAM->can_emit_style_escape.
9885 * source-cache.c (source_cache::get_source_lines): Likewise.
9886 * stack.c (frame_apply_command_count): Call execute_command_to_string
9887 passing the term_out characteristic of the current gdb_stdout.
9888 * thread.c (thr_try_catch_cmd): Likewise.
9889 * top.c (execute_command_to_string): pass term_out parameter
9890 to construct the string_file for the command output.
9891 * ui-file.c (term_cli_styling): New function (most code moved
9892 from utils.c can_emit_style_escape).
9893 (string_file::string_file, string_file::can_emit_style_escape,
9894 stdio_file::can_emit_style_escape, tee_file::term_out,
9895 tee_file::can_emit_style_escape): New functions.
9896
9897 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9898
9899 * NEWS: Mention the new set|show may-call-functions.
9900 * infcall.c (may_call_functions_p): New variable.
9901 (show_may_call_functions_p): New function.
9902 (call_function_by_hand_dummy): Throws an error if not
9903 may-call-functions.
9904 (_initialize_infcall): Call add_setshow_boolean_cmd for
9905 may-call-functions.
9906
9907 2019-04-25 Keith Seitz <keiths@redhat.com>
9908
9909 PR c++/24367
9910 * cp-support.c (inspect_type): Don't attempt substitutions
9911 of symbol with the same name.
9912
9913 2019-04-25 Tom Tromey <tromey@adacore.com>
9914
9915 PR gdb/24475:
9916 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9917 static.
9918
9919 2019-04-25 Tom Tromey <tromey@adacore.com>
9920
9921 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9922 rvalue reference.
9923 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9924 (gdb_xml_parser::parse): Use std::move.
9925 * python/python-internal.h (gdbpy_convert_exception): Take a const
9926 reference.
9927 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9928 std::move.
9929 * python/py-utils.c (gdbpy_convert_exception): Take a const
9930 reference.
9931 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9932 Use std::move.
9933 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9934 Use std::move.
9935 * mi/mi-main.c (mi_print_exception): Take a const reference.
9936 * main.c (handle_command_errors): Take a const reference.
9937 * linespec.c (parse_linespec): Use std::move.
9938 * infcall.c (run_inferior_call): Use std::move.
9939 (call_function_by_hand_dummy): Use std::move.
9940 * exec.c (try_open_exec_file): Use std::move.
9941 * exceptions.h (exception_print, exception_fprintf)
9942 (exception_print_same): Update.
9943 * exceptions.c (print_exception, exception_print)
9944 (exception_fprintf, exception_print_same): Change parameters to
9945 const reference.
9946 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9947 * common/new-op.c: Use std::move.
9948 * common/common-exceptions.h (struct gdb_exception): Add move
9949 constructor.
9950 (struct gdb_exception_error, struct gdb_exception_quit, struct
9951 gdb_quit_bad_alloc): Change constructor to move constructor.
9952 (throw_exception): Change parameter to rvalue reference.
9953 * common/common-exceptions.c (throw_exception): Take rvalue
9954 reference.
9955 * cli/cli-interp.c (safe_execute_command): Use std::move.
9956 * breakpoint.c (insert_bp_location, location_to_sals): Use
9957 std::move.
9958
9959 2019-04-25 Tom Tromey <tromey@adacore.com>
9960
9961 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9962 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9963 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9964 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9965 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9966 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9967 guile/scm-value.c: Use unpack.
9968 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9969 gdbscm_gdb_exception.
9970 (gdbscm_throw_gdb_exception): Likewise.
9971 (struct gdbscm_gdb_exception): New.
9972 (unpack): New function.
9973 (gdbscm_wrap): Use unpack.
9974
9975 2019-04-25 Tom Tromey <tromey@adacore.com>
9976
9977 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9978 (gdb_rl_callback_handler): Use std::move.
9979 * common/common-exceptions.h (struct gdb_exception): Add move
9980 assignment operator.
9981 (throw_exception_sjlj): Change "exception" to const reference.
9982 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9983 (throw_exception_sjlj): Change "exception" to const reference.
9984
9985 2019-04-25 Tom Tromey <tromey@adacore.com>
9986
9987 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9988 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9989 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9990 Update.
9991 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9992 Update.
9993 * mi/mi-interp.c (mi_interp::exec): Update.
9994 * linespec.c (parse_linespec): Update.
9995 * infcall.c (run_inferior_call): Update.
9996 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9997 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9998 (gdbscm_lookup_global_symbol): Update.
9999 * guile/scm-param.c (gdbscm_parameter_value): Update.
10000 * guile/scm-frame.c (gdbscm_frame_read_register)
10001 (gdbscm_frame_read_var): Update.
10002 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10003 * exec.c (try_open_exec_file): Update.
10004 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10005 (gdb_rl_callback_handler): Update.
10006 * common/common-exceptions.h (exception_none): Don't declare.
10007 * common/common-exceptions.c (exception_none): Don't define.
10008 (struct catcher) <exception>: Update.
10009 * cli/cli-interp.c (safe_execute_command): Update.
10010 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10011
10012 2019-04-25 Ali Tamur <tamur@google.com>
10013
10014 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10015 (read_attribute_value): Likewise.
10016 (dwarf2_read_addr_index): Update comment.
10017 (read_str_index): Add DW_FORM_strx.
10018 (dwarf2_string_attr): Likewise.
10019 (dwarf2_const_value_attr): Likewise.
10020 (dump_die_shallow): Likewise.
10021 (dwarf2_fetch_constant_bytes): Likewise.
10022 (skip_form_bytes): Likewise.
10023 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10024
10025 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10026
10027 PR corefiles/11608
10028 PR corefiles/18187
10029 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10030 OFFSET. Verify if current mapping contains an ELF header.
10031 (linux_find_memory_regions_full): Adjust call to
10032 dump_mapping_p.
10033
10034 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10035 Kang Li <kanglictf@gmail.com>
10036
10037 PR gdb/21600
10038
10039 * dwarf2-frame.c (read_initial_length): Be consistent about using
10040 unsigned representation of length.
10041 (decode_frame_entry_1): Likewise. Check for wraparound of
10042 end pointer as well as buffer overflow.
10043
10044 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10045
10046 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10047 "vq".
10048
10049 2019-04-24 Tom Tromey <tromey@adacore.com>
10050
10051 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10052
10053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10054
10055 * s12z-tdep.c (s12z_unwind_pc): Delete.
10056 (s12z_unwind_sp): Delete.
10057 (s12z_gdbarch_init): Don't register deleted functions with
10058 gdbarch.
10059
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * rl78-tdep.c (rl78_unwind_sp): Delete.
10063 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10064
10065 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10066
10067 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10068 (xstormy16_unwind_pc): Delete.
10069 (xstormy16_dummy_id): Delete.
10070 (xstormy16_gdbarch_init): Don't register deleted functions with
10071 gdbarch.
10072
10073 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10074
10075 * vax-tdep.c (vax_unwind_pc): Delete.
10076 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10077
10078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10079
10080 * v850-tdep.c (v850_unwind_sp): Delete.
10081 (v850_unwind_pc): Delete.
10082 (v850_dummy_id): Delete.
10083 (v850_gdbarch_init): Don't register deleted functions with
10084 gdbarch.
10085
10086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10087
10088 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10089 (tilegx_unwind_pc): Delete.
10090 (tilegx_unwind_dummy_id): Delete.
10091 (tilegx_gdbarch_init): Don't register deleted functions with
10092 gdbarch.
10093
10094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10095
10096 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10097 (tic6x_dummy_id): Delete.
10098 (tic6x_gdbarch_init): Don't register deleted functions with
10099 gdbarch.
10100
10101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * sparc-tdep.c (sparc_unwind_pc): Delete.
10104 (sparc32_gdbarch_init): Don't register deleted function with
10105 gdbarch.
10106
10107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10108
10109 * sh-tdep.c (sh_unwind_sp): Delete.
10110 (sh_unwind_pc): Delete.
10111 (sh_dummy_id): Delete.
10112 (sh_gdbarch_init): Don't register deleted functions with
10113 gdbarch.
10114
10115 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10116
10117 * score-tdep.c (score_unwind_sp): Delete.
10118 (score_unwind_pc): Delete.
10119 (score_dummy_id): Delete.
10120 (score_gdbarch_init): Don't register deleted functions with
10121 gdbarch.
10122
10123 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 * rx-tdep.c (rx_unwind_pc): Delete.
10126 (rx_unwind_sp): Delete.
10127 (rx_dummy_id): Delete.
10128 (rx_gdbarch_init): Don't register deleted functions with
10129 gdbarch. Update comment.
10130
10131 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10134 (rs6000_dummy_id): Delete.
10135 (rs6000_gdbarch_init): Don't register deleted functions with
10136 gdbarch.
10137
10138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * or1k-tdep.c (or1k_dummy_id): Delete.
10141 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10142
10143 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10144
10145 * nios2-tdep.c (nios2_dummy_id): Delete.
10146 (nios2_unwind_sp): Delete.
10147 (nios2_gdbarch_init): Don't register deleted functions with
10148 gdbarch.
10149
10150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10151
10152 * nds32-tdep.c (nds32_dummy_id): Delete.
10153 (nds32_unwind_pc): Delete.
10154 (nds32_unwind_sp): Delete.
10155 (nds32_gdbarch_init): Don't register deleted functions with
10156 gdbarch.
10157
10158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 * msp430-tdep.c (msp430_unwind_pc): Delete.
10161 (msp430_unwind_sp): Delete.
10162 (msp430_dummy_id): Delete.
10163 (msp430_gdbarch_init): Don't register deleted functions with
10164 gdbarch.
10165
10166 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10167
10168 * moxie-tdep.c (moxie_unwind_sp): Delete.
10169 (moxie_unwind_pc): Delete.
10170 (moxie_dummy_id): Delete.
10171 (moxie_gdbarch_init): Don't register deleted functions with
10172 gdbarch.
10173
10174 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10177 (mn10300_unwind_pc): Delete.
10178 (mn10300_unwind_sp): Delete.
10179 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10180 mn10300_unwind_sp.
10181 (mn10300_frame_unwind_init): Don't register deleted functions with
10182 gdbarch.
10183
10184 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * mep-tdep.c (mep_unwind_pc): Delete.
10187 (mep_unwind_sp): Delete.
10188 (mep_dummy_id): Delete.
10189 (mep_gdbarch_init): Don't register deleted functions with
10190 gdbarch.
10191
10192 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10193
10194 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10195 (m68hc11_unwind_sp): Delete.
10196 (m68hc11_gdbarch_init): Don't register deleted functions with
10197 gdbarch.
10198
10199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10200
10201 * m32r-tdep.c (m32r_unwind_sp): Delete.
10202 (m32r_unwind_pc): Delete.
10203 (m32r_dummy_id): Delete.
10204 (m32r_gdbarch_init): Don't register deleted functions with
10205 gdbarch.
10206
10207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * m32c-tdep.c (m32c_unwind_pc): Delete.
10210 (m32c_unwind_sp): Delete.
10211 (m32c_dummy_id): Delete.
10212 (m32c_gdbarch_init): Don't register deleted functions with
10213 gdbarch.
10214
10215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10216
10217 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10218 (lm32_unwind_pc): Delete.
10219 (lm32_dummy_id): Delete.
10220 (lm32_gdbarch_init): Don't register deleted functions with
10221 gdbarch.
10222
10223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10224
10225 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10226 (iq2000_unwind_pc): Delete.
10227 (iq2000_dummy_id): Delete.
10228 (iq2000_gdbarch_init): Don't register deleted functions with
10229 gdbarch.
10230
10231 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10232
10233 * nds32-tdep.c (nds32_type_align): Delete.
10234 (nds32_push_dummy_call): Use type_align instead.
10235
10236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * arm-tdep.c (arm_type_align): Only handle vector override case.
10239 (arm_push_dummy_call): Use type_align.
10240 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10241
10242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10243
10244 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10245 case.
10246 (pass_on_stack): Use type_align.
10247 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10248 function.
10249
10250 2019-04-23 Tom Tromey <tromey@adacore.com>
10251
10252 * dwarf2read.c (line_header::file_name_at): Remove unused
10253 overload.
10254
10255 2019-04-23 Tom de Vries <tdevries@suse.de>
10256
10257 PR gdb/24438
10258 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10259 invocation.
10260
10261
10262 2019-03-27 Ali Tamur <tamur@google.com>
10263
10264 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10265 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10266 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10267 (dwarf_expr_context::get_addr_index): Likewise
10268 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10269 (symbol_needs_eval_context::get_addr_index): Likewise
10270 (disassemble_dwarf_expression): Add DW_OP_addrx
10271 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10272 (read_cutu_die_from_dwo): Update comment
10273 (skip_one_die): Add DW_FORM_addrx
10274 (read_attribute_value): Likewise
10275 (var_decode_location): Add DW_OP_addrx
10276 (dwarf2_const_value_attr): Add DW_FORM_addrx
10277 (dump_die_shallow): Likewise
10278 (dwarf2_fetch_constant_bytes): Likewise
10279 (decode_locdesc): Add DW_OP_addrx
10280 (skip_form_bytes): Add DW_FORM_addrx
10281
10282 2019-04-22 Ali Tamur <tamur@google.com>
10283
10284 * MAINTAINERS (Write After Approval): Add self.
10285
10286 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10289 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10290 (open_symbol_file_object): Likewise.
10291 (svr4_default_sos): Add info parameter.
10292 (svr4_read_so_list): Likewise.
10293 (svr4_current_sos_direct): Adjust functions calls to pass down
10294 info.
10295 (svr4_current_sos_1): Add info parameter.
10296 (svr4_current_sos): Call get_svr4_info, pass info down to
10297 svr4_current_sos_1.
10298 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10299 get_svr4_info.
10300 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10301 get_svr4_info.
10302 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10303 to get_svr4_info.
10304 (probes_table_remove_objfile_probes): Likewise.
10305 (register_solib_event_probe): Add info parameter.
10306 (solist_update_incremental): Pass info parameter down to
10307 svr4_read_so_list.
10308 (disable_probes_interface): Add info parameter.
10309 (svr4_handle_solib_event): Pass current_program_space to
10310 get_svr4_info. Adjust disable_probes_interface cleanup.
10311 (svr4_create_probe_breakpoints): Add info parameter, pass it
10312 down to register_solib_event_probe.
10313 (svr4_create_solib_event_breakpoints): Add info parameter,
10314 pass it down to svr4_create_probe_breakpoints.
10315 (enable_break): Pass info down to
10316 svr4_create_solib_event_breakpoints.
10317 (svr4_solib_create_inferior_hook): Pass current_program_space to
10318 get_svr4_info.
10319 (svr4_clear_solib): Likewise.
10320
10321 2019-04-22 Pedro Alves <palves@redhat.com>
10322
10323 * solib-svr4.c (svr4_free_objfile_observer): New.
10324 (probe_and_action::objfile): New field.
10325 (probes_table_htab_remove_objfile_probes)
10326 (probes_table_remove_objfile_probes): New functions.
10327 (register_solib_event_probe): Add 'objfile' parameter. Store it
10328 in the new probe_and_action. Don't store the probe in 'lookup'.
10329 (svr4_create_probe_breakpoints): Pass objfile to
10330 register_solib_event_probe.
10331 (_initialize_svr4_solib): Register a free_objfile observer.
10332
10333 2019-04-19 Tom Tromey <tom@tromey.com>
10334
10335 * common/queue.h: Remove.
10336
10337 2019-04-19 Tom Tromey <tom@tromey.com>
10338
10339 * event-loop.c: Don't include "common/queue.h".
10340
10341 2019-04-19 Tom Tromey <tom@tromey.com>
10342
10343 * remote.c (remote_target): Use delete.
10344 * remote-notif.h: Include <list>, not "common/queue.h".
10345 (notif_client_p): Remove typedef.
10346 (remote_notif_state): Add constructor, destructor, initializer.
10347 <notif_queue>: Now a std::list.
10348 (remote_notif_state_xfree): Don't declare.
10349 * remote-notif.c (remote_notif_process, handle_notification)
10350 (remote_notif_state_allocate): Update.
10351 (~remote_notif_state): Rename from remote_notif_state_xfree.
10352
10353 2019-04-19 Tom Tromey <tom@tromey.com>
10354
10355 * symfile.c (reread_symbols): Update.
10356 * objfiles.c (objfile_register_static_link)
10357 (objfile_lookup_static_link): Update
10358 (~objfile) Don't delete static_links.
10359 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10360
10361 2019-04-19 Tom Tromey <tom@tromey.com>
10362
10363 * type-stack.h (struct type_stack) <insert>: Constify string.
10364 * type-stack.c (type_stack::insert): Constify string.
10365 * gdbtypes.h (lookup_template_type): Update.
10366 (address_space_name_to_int): Update.
10367 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10368 const.
10369 (lookup_template_type): Make name const.
10370 * c-exp.y: Update rules.
10371 (lex_one_token, classify_name, classify_inner_name)
10372 (c_print_token): Update.
10373 * p-exp.y: Update rules.
10374 (yylex): Update.
10375 * f-exp.y: Update rules.
10376 (yylex): Update.
10377 * d-exp.y: Update rules.
10378 (lex_one_token, classify_name, classify_inner_name): Update.
10379 * parse.c (write_dollar_variable, copy_name): Return std::string.
10380 * parser-defs.h (copy_name): Change return type.
10381 * m2-exp.y: Update rules.
10382 (yylex): Update.
10383 * go-exp.y (lex_one_token): Update.
10384 Update rules.
10385 (classify_unsafe_function, classify_packaged_name)
10386 (classify_name, yylex): Update.
10387
10388 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10389
10390 * configure.ac: add --enable-source-highlight switch.
10391 * configure: Regenerate.
10392 * top.c (print_gdb_version): plumb --enable-source-highlight
10393 status to "show configuration".
10394
10395 2019-04-19 Tom Tromey <tromey@adacore.com>
10396
10397 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10398 Check ADA_TYPE_P.
10399 (empty_record, ada_template_to_fixed_record_type_1)
10400 (template_to_static_fixed_type)
10401 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10402 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10403 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10404 macros.
10405
10406 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10407
10408 PR symtab/24423:
10409 * source.c (print_source_lines_base): Advance "iter" when a
10410 control character is seen.
10411
10412 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10413
10414 * inferior.h (struct infcall_suspend_state_deleter):
10415 Catch exception in destructor to avoid crash.
10416
10417 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10418
10419 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10420 close to the add_com "shell".
10421
10422 2019-04-18 Tom Tromey <tromey@adacore.com>
10423
10424 * process-stratum-target.h (class process_stratum_target)
10425 <stratum>: Add "final".
10426
10427 2019-04-17 Tom Tromey <tromey@adacore.com>
10428
10429 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10430 against nullptr before use.
10431
10432 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10433
10434 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10435
10436 2019-04-17 Jim Wilson <jimw@sifive.com>
10437 Andrew Burgess <andrew.burgess@embecosm.com>
10438
10439 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10440 code read might fail, assume 4-byte breakpoint in that case.
10441
10442 2019-04-15 Leszek Swirski <leszeks@google.com>
10443
10444 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10445 rather than a hand-rolled POD check when checking for forced MEMORY
10446 classification.
10447
10448 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10449
10450 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10451 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10452 function.
10453 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10454 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10455 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10456 declaration.
10457
10458 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10459
10460 * aarch64-linux-nat.c
10461 (aarch64_linux_nat_target::thread_architecture): Add override.
10462 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10463 each VQ.
10464
10465 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10466
10467 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10468
10469 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10470
10471 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10472 target types of size 96-bits, add some additional comments, and
10473 check that the builtin type we found was the correct size.
10474
10475 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10476
10477 * utils.c (prompt_for_continue): Don't restore the styling at the
10478 end, as applied_style has the wrong value. This fixes styling in
10479 long lists of file names that are interrupted by the "Continue?"
10480 prompt.
10481
10482 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10483
10484 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10485 * c-lang.c (c_language_defn): Likewise.
10486 (cplus_language_defn): Likewise.
10487 (asm_language_defn): Likewise.
10488 (minimal_language_defn): Likewise.
10489 * d-lang.c (d_language_defn): Likewise.
10490 * f-lang.c (f_language_defn): Likewise.
10491 * go-lang.c (go_language_defn): Likewise.
10492 * language.c (unknown_language_defn): Likewise.
10493 (auto_language_defn): Likewise.
10494 * language.h (struct language_defn): Remove la_magic field.
10495 (LANG_MAGIC): Delete.
10496 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10497 * objc-lang.c (objc_language_defn): Likewise.
10498 * opencl-lang.c (opencl_language_defn): Likewise.
10499 * p-lang.c (pascal_language_defn): Likewise.
10500 * rust-lang.c (rust_language_defn): Likewise.
10501
10502 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * riscv-tdep.c (riscv_type_align): New function.
10505 (riscv_type_alignment): Delete.
10506 (riscv_arg_location): Use 'type_align'.
10507 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10508
10509 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10510
10511 * gdbtypes.c (type_align): A struct with no non-static fields also
10512 has alignment of 1.
10513
10514 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10515
10516 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10517 component to 0.
10518 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10519 member.
10520 (riscv_struct_info::analyse): New implementation using new
10521 analyse_inner member function.
10522 (riscv_struct_info::field_offset): New member function.
10523 (riscv_struct_info::m_offsets): New member variable.
10524 (riscv_struct_info::analyse_inner): New private member function,
10525 takes the old implementation of riscv_struct_info::analyse but
10526 extended to track field offsets.
10527 (riscv_call_arg_struct): Update the struct folding special cases
10528 to handle cases where empty C++ structs, which are non-zero
10529 length, are found.
10530 (riscv_arg_location): Initialise the length of each location, a
10531 non-zero length now indicates the location is in use.
10532 (riscv_push_dummy_call): Allow for the first location having a
10533 non-zero offset when setting up arguments.
10534 (riscv_return_value): Likewise, but for return values.
10535
10536 2019-04-11 Tom Tromey <tromey@adacore.com>
10537
10538 * utils.c (internal_vproblem): Make "msg" const.
10539
10540 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10541
10542 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10543 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10544 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10545 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10546
10547 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10548
10549 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10550 function.
10551 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10552 of amd64_collect_native_gregset.
10553 (amd64_linux_nat_target::store_registers): Likewise.
10554
10555 2019-04-10 Tom Tromey <tom@tromey.com>
10556
10557 * symtab.c (lookup_global_symbol_from_objfile)
10558 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10559 * objfiles.h (class separate_debug_iterator): New.
10560 (class separate_debug_range): New.
10561 (struct objfile) <separate_debug_objfiles>: New method.
10562 (objfile_separate_debug_iterate): Don't declare.
10563 * objfiles.c (separate_debug_iterator::operator++): Rename from
10564 objfile_separate_debug_iterate.
10565 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10566 iterator.
10567 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10568 iterator.
10569
10570 2019-04-10 Tom Tromey <tom@tromey.com>
10571
10572 * symfile.c (reread_symbols): Remove old comment.
10573 * objfiles.c (free_all_objfiles): Fix a typo.
10574
10575 2019-04-10 Tom Tromey <tom@tromey.com>
10576
10577 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10578 * minsyms.c (lookup_minimal_symbol): Use foreach.
10579 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10580 (lookup_minimal_symbol_solib_trampoline): Likewise.
10581 * symfile.c (reread_symbols): Use foreach.
10582
10583 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10584 Tom Tromey <tromey@adacore.com>
10585
10586 PR rust/24414:
10587 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10588 (rust_lex_int_test): Change "value" to be LONGEST.
10589 (rust_lex_tests): Add test for long integer literal.
10590
10591 2019-04-09 Tom Tromey <tromey@adacore.com>
10592
10593 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10594 to bool.
10595 (extended_remote_target::attach): Update.
10596 (remote_target::remote_notice_new_inferior): Update.
10597 (remote_target::add_current_inferior_and_thread): Update.
10598 * inferior.c (exit_inferior_1): Use "false".
10599 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10600
10601 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10602
10603 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10604 the "start" command.
10605
10606 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10607
10608 * python/py-inferior.c (infpy_thread_from_thread_handle):
10609 Adjust comments to reflect renaming of thread_from_thread_handle
10610 to thread_from_handle. Adjust keywords. Fix type error message.
10611 (inferior_object_methods): Add thread_from_handle. Retain
10612 thread_from_thread_handle, but mark it as deprecated.
10613
10614 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10615
10616 * gdbthread.h (find_thread_by_handle): Revise declaration.
10617 * thread.c (find_thread_by_handle): Likewise. Adjust
10618 implementation too.
10619 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10620 support for buffer objects as handles.
10621
10622 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10623
10624 * python/py-infthread.c (thpy_thread_handle): New function.
10625 (thread_object_methods): Register thpy_thread_handle.
10626
10627 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10628
10629 * gdbthread.h (thread_to_thread_handle): Declare.
10630 * thread.c (gdbtypes.h): Include.
10631 (thread_to_thread_handle): New function.
10632
10633 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10634 (target_thread_info_to_thread_handle): Declare.
10635 * target.c (target_thread_info_to_thread_handle): New function.
10636 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10637 * target-delegates.c: Regenerate.
10638
10639 * linux-thread-db.c (class thread_db_target): Add method
10640 thread_info_to_thread_handle.
10641 (thread_db_target::thread_info_to_thread_handle): Define.
10642 * remote.c (class remote_target): Add new method
10643 thread_info_to_thread_handle.
10644 (remote_target::thread_info_to_thread_handle): Define.
10645
10646 2019-04-08 Pedro Alves <palves@redhat.com>
10647
10648 * common/common-exceptions.c (throw_exception): Don't create
10649 named object to throw; throw directly.
10650 (throw_it): Likewise. Don't initialize gdb_exception::message
10651 here, with new; pass FMT and AP to the ctor instead.
10652 * common/common-exceptions.h: Include <string>.
10653 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10654 const char *, va_list)): New ctor. Use std::make_shared.
10655 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10656 errors)): Delete.
10657 (gdb_exception_error::gdb_exception_error(enum errors, const char
10658 *, va_list)): New.
10659 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10660 Add assertion.
10661 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10662 errors)): Delete.
10663 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10664 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10665 Add assertion.
10666
10667 2019-04-08 Tom Tromey <tom@tromey.com>
10668
10669 * valops.c (value_rtti_indirect_type): Replace throw_exception
10670 with throw.
10671 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10672 with throw.
10673 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10674 throw.
10675 * target.c (target_translate_tls_address): Replace throw_exception
10676 with throw.
10677 * stack.c (frame_apply_command_count): Replace throw_exception
10678 with throw.
10679 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10680 throw.
10681 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10682 with throw.
10683 * rs6000-tdep.c (rs6000_frame_cache)
10684 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10685 * remote.c: Replace throw_exception with throw.
10686 * record-full.c (record_full_message, record_full_wait_1)
10687 (record_full_restore): Replace throw_exception with throw.
10688 * record-btrace.c:
10689 (get_thread_current_frame_id, record_btrace_start_replaying)
10690 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10691 (cmd_record_btrace_start): Replace throw_exception with throw.
10692 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10693 throw.
10694 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10695 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10696 * linespec.c:
10697 (find_linespec_symbols): Replace throw_exception with throw.
10698 * infrun.c (displaced_step_prepare, resume): Replace
10699 throw_exception with throw.
10700 * infcmd.c (post_create_inferior): Replace throw_exception with
10701 throw.
10702 * inf-loop.c (inferior_event_handler): Replace throw_exception
10703 with throw.
10704 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10705 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10706 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10707 (get_prev_frame_always, get_frame_pc_if_available)
10708 (get_frame_address_in_block_if_available, get_frame_language):
10709 Replace throw_exception with throw.
10710 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10711 throw_exception with throw.
10712 * eval.c (fetch_subexp_value, evaluate_var_value)
10713 (evaluate_funcall, evaluate_subexp_standard): Replace
10714 throw_exception with throw.
10715 * dwarf2loc.c (call_site_find_chain)
10716 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10717 Replace throw_exception with throw.
10718 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10719 with throw.
10720 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10721 throw.
10722 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10723 * completer.c (complete_line_internal): Replace throw_exception
10724 with throw.
10725 * compile/compile-object-run.c (compile_object_run): Replace
10726 throw_exception with throw.
10727 * cli/cli-script.c (process_next_line): Replace throw_exception
10728 with throw.
10729 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10730 (btrace_enable, btrace_maint_update_pt_packets): Replace
10731 throw_exception with throw.
10732 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10733 throw_exception with throw.
10734 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10735 throw_exception with throw.
10736 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10737 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10738 * aarch64-tdep.c (aarch64_make_prologue_cache)
10739 (aarch64_make_stub_cache): Replace throw_exception with throw.
10740
10741 2019-04-08 Tom Tromey <tom@tromey.com>
10742
10743 * common/common-exceptions.c (throw_exception): Rename from
10744 throw_exception_cxx. Remove old copy. Make argument const.
10745 (throw_it): Create and throw exception objects directly.
10746 * common/common-exceptions.h (throw_exception): Make argument
10747 const.
10748 (struct gdb_exception_error): Add constructor.
10749 (struct gdb_exception_quit): Add constructor.
10750
10751 2019-04-08 Tom Tromey <tom@tromey.com>
10752
10753 * common/common-exceptions.h (exception_rethrow): Don't declare.
10754 (TRY_SJLJ): Update comment.
10755 (TRY, CATCH, END_CATCH): Remove.
10756 * common/common-exceptions.c (exception_rethrow): Remove.
10757
10758 2019-04-08 Tom Tromey <tom@tromey.com>
10759
10760 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10761 Remove.
10762 (gdb_exception_error): Rename from
10763 gdb_exception_RETURN_MASK_ERROR.
10764 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10765 (gdb_quit_bad_alloc): Update.
10766 * aarch64-tdep.c: Update.
10767 * ada-lang.c: Update.
10768 * ada-typeprint.c: Update.
10769 * ada-valprint.c: Update.
10770 * amd64-tdep.c: Update.
10771 * arch-utils.c: Update.
10772 * break-catch-throw.c: Update.
10773 * breakpoint.c: Update.
10774 * btrace.c: Update.
10775 * c-varobj.c: Update.
10776 * cli/cli-cmds.c: Update.
10777 * cli/cli-interp.c: Update.
10778 * cli/cli-script.c: Update.
10779 * common/common-exceptions.c: Update.
10780 * common/new-op.c: Update.
10781 * common/selftest.c: Update.
10782 * compile/compile-c-symbols.c: Update.
10783 * compile/compile-cplus-symbols.c: Update.
10784 * compile/compile-object-load.c: Update.
10785 * compile/compile-object-run.c: Update.
10786 * completer.c: Update.
10787 * corelow.c: Update.
10788 * cp-abi.c: Update.
10789 * cp-support.c: Update.
10790 * cp-valprint.c: Update.
10791 * darwin-nat.c: Update.
10792 * disasm-selftests.c: Update.
10793 * dtrace-probe.c: Update.
10794 * dwarf-index-cache.c: Update.
10795 * dwarf-index-write.c: Update.
10796 * dwarf2-frame-tailcall.c: Update.
10797 * dwarf2-frame.c: Update.
10798 * dwarf2loc.c: Update.
10799 * dwarf2read.c: Update.
10800 * eval.c: Update.
10801 * event-loop.c: Update.
10802 * event-top.c: Update.
10803 * exec.c: Update.
10804 * f-valprint.c: Update.
10805 * fbsd-tdep.c: Update.
10806 * frame-unwind.c: Update.
10807 * frame.c: Update.
10808 * gdbtypes.c: Update.
10809 * gnu-v3-abi.c: Update.
10810 * guile/guile-internal.h: Update.
10811 * guile/scm-block.c: Update.
10812 * guile/scm-breakpoint.c: Update.
10813 * guile/scm-cmd.c: Update.
10814 * guile/scm-disasm.c: Update.
10815 * guile/scm-frame.c: Update.
10816 * guile/scm-lazy-string.c: Update.
10817 * guile/scm-math.c: Update.
10818 * guile/scm-param.c: Update.
10819 * guile/scm-ports.c: Update.
10820 * guile/scm-pretty-print.c: Update.
10821 * guile/scm-symbol.c: Update.
10822 * guile/scm-symtab.c: Update.
10823 * guile/scm-type.c: Update.
10824 * guile/scm-value.c: Update.
10825 * i386-linux-tdep.c: Update.
10826 * i386-tdep.c: Update.
10827 * inf-loop.c: Update.
10828 * infcall.c: Update.
10829 * infcmd.c: Update.
10830 * infrun.c: Update.
10831 * jit.c: Update.
10832 * language.c: Update.
10833 * linespec.c: Update.
10834 * linux-fork.c: Update.
10835 * linux-nat.c: Update.
10836 * linux-tdep.c: Update.
10837 * linux-thread-db.c: Update.
10838 * main.c: Update.
10839 * mi/mi-cmd-break.c: Update.
10840 * mi/mi-cmd-stack.c: Update.
10841 * mi/mi-interp.c: Update.
10842 * mi/mi-main.c: Update.
10843 * objc-lang.c: Update.
10844 * p-valprint.c: Update.
10845 * parse.c: Update.
10846 * ppc-linux-tdep.c: Update.
10847 * printcmd.c: Update.
10848 * python/py-arch.c: Update.
10849 * python/py-breakpoint.c: Update.
10850 * python/py-cmd.c: Update.
10851 * python/py-finishbreakpoint.c: Update.
10852 * python/py-frame.c: Update.
10853 * python/py-framefilter.c: Update.
10854 * python/py-gdb-readline.c: Update.
10855 * python/py-inferior.c: Update.
10856 * python/py-infthread.c: Update.
10857 * python/py-lazy-string.c: Update.
10858 * python/py-linetable.c: Update.
10859 * python/py-objfile.c: Update.
10860 * python/py-param.c: Update.
10861 * python/py-prettyprint.c: Update.
10862 * python/py-progspace.c: Update.
10863 * python/py-record-btrace.c: Update.
10864 * python/py-record.c: Update.
10865 * python/py-symbol.c: Update.
10866 * python/py-type.c: Update.
10867 * python/py-unwind.c: Update.
10868 * python/py-utils.c: Update.
10869 * python/py-value.c: Update.
10870 * python/python.c: Update.
10871 * record-btrace.c: Update.
10872 * record-full.c: Update.
10873 * remote-fileio.c: Update.
10874 * remote.c: Update.
10875 * riscv-tdep.c: Update.
10876 * rs6000-aix-tdep.c: Update.
10877 * rs6000-tdep.c: Update.
10878 * rust-exp.y: Update.
10879 * rust-lang.c: Update.
10880 * s390-tdep.c: Update.
10881 * selftest-arch.c: Update.
10882 * solib-dsbt.c: Update.
10883 * solib-frv.c: Update.
10884 * solib-spu.c: Update.
10885 * solib-svr4.c: Update.
10886 * solib.c: Update.
10887 * sparc64-linux-tdep.c: Update.
10888 * stack.c: Update.
10889 * symfile-mem.c: Update.
10890 * symmisc.c: Update.
10891 * target.c: Update.
10892 * thread.c: Update.
10893 * top.c: Update.
10894 * tracefile-tfile.c: Update.
10895 * tui/tui.c: Update.
10896 * typeprint.c: Update.
10897 * unittests/cli-utils-selftests.c: Update.
10898 * unittests/parse-connection-spec-selftests.c: Update.
10899 * valops.c: Update.
10900 * valprint.c: Update.
10901 * value.c: Update.
10902 * varobj.c: Update.
10903 * windows-nat.c: Update.
10904 * x86-linux-nat.c: Update.
10905 * xml-support.c: Update.
10906
10907 2019-04-08 Tom Tromey <tom@tromey.com>
10908
10909 * xml-support.c: Use C++ exception handling.
10910 * x86-linux-nat.c: Use C++ exception handling.
10911 * windows-nat.c: Use C++ exception handling.
10912 * varobj.c: Use C++ exception handling.
10913 * value.c: Use C++ exception handling.
10914 * valprint.c: Use C++ exception handling.
10915 * valops.c: Use C++ exception handling.
10916 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10917 handling.
10918 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10919 * typeprint.c: Use C++ exception handling.
10920 * tui/tui.c: Use C++ exception handling.
10921 * tracefile-tfile.c: Use C++ exception handling.
10922 * top.c: Use C++ exception handling.
10923 * thread.c: Use C++ exception handling.
10924 * target.c: Use C++ exception handling.
10925 * symmisc.c: Use C++ exception handling.
10926 * symfile-mem.c: Use C++ exception handling.
10927 * stack.c: Use C++ exception handling.
10928 * sparc64-linux-tdep.c: Use C++ exception handling.
10929 * solib.c: Use C++ exception handling.
10930 * solib-svr4.c: Use C++ exception handling.
10931 * solib-spu.c: Use C++ exception handling.
10932 * solib-frv.c: Use C++ exception handling.
10933 * solib-dsbt.c: Use C++ exception handling.
10934 * selftest-arch.c: Use C++ exception handling.
10935 * s390-tdep.c: Use C++ exception handling.
10936 * rust-lang.c: Use C++ exception handling.
10937 * rust-exp.y: Use C++ exception handling.
10938 * rs6000-tdep.c: Use C++ exception handling.
10939 * rs6000-aix-tdep.c: Use C++ exception handling.
10940 * riscv-tdep.c: Use C++ exception handling.
10941 * remote.c: Use C++ exception handling.
10942 * remote-fileio.c: Use C++ exception handling.
10943 * record-full.c: Use C++ exception handling.
10944 * record-btrace.c: Use C++ exception handling.
10945 * python/python.c: Use C++ exception handling.
10946 * python/py-value.c: Use C++ exception handling.
10947 * python/py-utils.c: Use C++ exception handling.
10948 * python/py-unwind.c: Use C++ exception handling.
10949 * python/py-type.c: Use C++ exception handling.
10950 * python/py-symbol.c: Use C++ exception handling.
10951 * python/py-record.c: Use C++ exception handling.
10952 * python/py-record-btrace.c: Use C++ exception handling.
10953 * python/py-progspace.c: Use C++ exception handling.
10954 * python/py-prettyprint.c: Use C++ exception handling.
10955 * python/py-param.c: Use C++ exception handling.
10956 * python/py-objfile.c: Use C++ exception handling.
10957 * python/py-linetable.c: Use C++ exception handling.
10958 * python/py-lazy-string.c: Use C++ exception handling.
10959 * python/py-infthread.c: Use C++ exception handling.
10960 * python/py-inferior.c: Use C++ exception handling.
10961 * python/py-gdb-readline.c: Use C++ exception handling.
10962 * python/py-framefilter.c: Use C++ exception handling.
10963 * python/py-frame.c: Use C++ exception handling.
10964 * python/py-finishbreakpoint.c: Use C++ exception handling.
10965 * python/py-cmd.c: Use C++ exception handling.
10966 * python/py-breakpoint.c: Use C++ exception handling.
10967 * python/py-arch.c: Use C++ exception handling.
10968 * printcmd.c: Use C++ exception handling.
10969 * ppc-linux-tdep.c: Use C++ exception handling.
10970 * parse.c: Use C++ exception handling.
10971 * p-valprint.c: Use C++ exception handling.
10972 * objc-lang.c: Use C++ exception handling.
10973 * mi/mi-main.c: Use C++ exception handling.
10974 * mi/mi-interp.c: Use C++ exception handling.
10975 * mi/mi-cmd-stack.c: Use C++ exception handling.
10976 * mi/mi-cmd-break.c: Use C++ exception handling.
10977 * main.c: Use C++ exception handling.
10978 * linux-thread-db.c: Use C++ exception handling.
10979 * linux-tdep.c: Use C++ exception handling.
10980 * linux-nat.c: Use C++ exception handling.
10981 * linux-fork.c: Use C++ exception handling.
10982 * linespec.c: Use C++ exception handling.
10983 * language.c: Use C++ exception handling.
10984 * jit.c: Use C++ exception handling.
10985 * infrun.c: Use C++ exception handling.
10986 * infcmd.c: Use C++ exception handling.
10987 * infcall.c: Use C++ exception handling.
10988 * inf-loop.c: Use C++ exception handling.
10989 * i386-tdep.c: Use C++ exception handling.
10990 * i386-linux-tdep.c: Use C++ exception handling.
10991 * guile/scm-value.c: Use C++ exception handling.
10992 * guile/scm-type.c: Use C++ exception handling.
10993 * guile/scm-symtab.c: Use C++ exception handling.
10994 * guile/scm-symbol.c: Use C++ exception handling.
10995 * guile/scm-pretty-print.c: Use C++ exception handling.
10996 * guile/scm-ports.c: Use C++ exception handling.
10997 * guile/scm-param.c: Use C++ exception handling.
10998 * guile/scm-math.c: Use C++ exception handling.
10999 * guile/scm-lazy-string.c: Use C++ exception handling.
11000 * guile/scm-frame.c: Use C++ exception handling.
11001 * guile/scm-disasm.c: Use C++ exception handling.
11002 * guile/scm-cmd.c: Use C++ exception handling.
11003 * guile/scm-breakpoint.c: Use C++ exception handling.
11004 * guile/scm-block.c: Use C++ exception handling.
11005 * guile/guile-internal.h: Use C++ exception handling.
11006 * gnu-v3-abi.c: Use C++ exception handling.
11007 * gdbtypes.c: Use C++ exception handling.
11008 * frame.c: Use C++ exception handling.
11009 * frame-unwind.c: Use C++ exception handling.
11010 * fbsd-tdep.c: Use C++ exception handling.
11011 * f-valprint.c: Use C++ exception handling.
11012 * exec.c: Use C++ exception handling.
11013 * event-top.c: Use C++ exception handling.
11014 * event-loop.c: Use C++ exception handling.
11015 * eval.c: Use C++ exception handling.
11016 * dwarf2read.c: Use C++ exception handling.
11017 * dwarf2loc.c: Use C++ exception handling.
11018 * dwarf2-frame.c: Use C++ exception handling.
11019 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11020 * dwarf-index-write.c: Use C++ exception handling.
11021 * dwarf-index-cache.c: Use C++ exception handling.
11022 * dtrace-probe.c: Use C++ exception handling.
11023 * disasm-selftests.c: Use C++ exception handling.
11024 * darwin-nat.c: Use C++ exception handling.
11025 * cp-valprint.c: Use C++ exception handling.
11026 * cp-support.c: Use C++ exception handling.
11027 * cp-abi.c: Use C++ exception handling.
11028 * corelow.c: Use C++ exception handling.
11029 * completer.c: Use C++ exception handling.
11030 * compile/compile-object-run.c: Use C++ exception handling.
11031 * compile/compile-object-load.c: Use C++ exception handling.
11032 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11033 * compile/compile-c-symbols.c: Use C++ exception handling.
11034 * common/selftest.c: Use C++ exception handling.
11035 * common/new-op.c: Use C++ exception handling.
11036 * cli/cli-script.c: Use C++ exception handling.
11037 * cli/cli-interp.c: Use C++ exception handling.
11038 * cli/cli-cmds.c: Use C++ exception handling.
11039 * c-varobj.c: Use C++ exception handling.
11040 * btrace.c: Use C++ exception handling.
11041 * breakpoint.c: Use C++ exception handling.
11042 * break-catch-throw.c: Use C++ exception handling.
11043 * arch-utils.c: Use C++ exception handling.
11044 * amd64-tdep.c: Use C++ exception handling.
11045 * ada-valprint.c: Use C++ exception handling.
11046 * ada-typeprint.c: Use C++ exception handling.
11047 * ada-lang.c: Use C++ exception handling.
11048 * aarch64-tdep.c: Use C++ exception handling.
11049
11050 2019-04-08 Tom Tromey <tom@tromey.com>
11051
11052 * xml-support.c (gdb_xml_parser::parse): Update.
11053 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11054 * value.c (show_convenience): Update.
11055 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11056 (test_parse_flags_qcs): Update.
11057 * thread.c (thr_try_catch_cmd): Update.
11058 * target.c (target_translate_tls_address): Update.
11059 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11060 (info_frame_command_core, frame_apply_command_count): Update.
11061 * rust-exp.y (rust_lex_exception_test): Update.
11062 * riscv-tdep.c (riscv_print_one_register_info): Update.
11063 * remote.c (remote_target::enable_btrace): Update.
11064 * record-btrace.c (record_btrace_enable_warn): Update.
11065 * python/py-utils.c (gdbpy_convert_exception): Update.
11066 * printcmd.c (do_one_display, print_variable_and_value): Update.
11067 * mi/mi-main.c (mi_print_exception): Update.
11068 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11069 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11070 * linux-nat.c (linux_nat_target::attach): Update.
11071 * linux-fork.c (class scoped_switch_fork_info): Update.
11072 * infrun.c (displaced_step_prepare): Update.
11073 * infcall.c (call_function_by_hand_dummy): Update.
11074 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11075 * gnu-v3-abi.c (print_one_vtable): Update.
11076 * frame.c (get_prev_frame_always): Update.
11077 * f-valprint.c (info_common_command_for_block): Update.
11078 * exec.c (try_open_exec_file): Update.
11079 * exceptions.c (print_exception, exception_print)
11080 (exception_fprintf, exception_print_same): Update.
11081 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11082 * dwarf-index-cache.c (index_cache::store)
11083 (index_cache::lookup_gdb_index): Update.
11084 * darwin-nat.c (maybe_cache_shell): Update.
11085 * cp-valprint.c (cp_print_value_fields): Update.
11086 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11087 (gcc_cplus_symbol_address): Update.
11088 * compile/compile-c-symbols.c (gcc_convert_symbol)
11089 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11090 * common/selftest.c: Update.
11091 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11092 a std::string.
11093 (exception_try_scope_entry, exception_try_scope_exit): Don't
11094 declare.
11095 (struct exception_try_scope): Remove.
11096 (TRY): Don't use exception_try_scope.
11097 (struct gdb_exception): Add constructor, operator=.
11098 <what>: New method.
11099 (struct gdb_exception_RETURN_MASK_ALL)
11100 (struct gdb_exception_RETURN_MASK_ERROR)
11101 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11102 (struct gdb_quit_bad_alloc): Update.
11103 * common/common-exceptions.c (exception_none): Change
11104 initializer.
11105 (struct catcher) <state, exception>: Initialize inline.
11106 <prev>: Remove member.
11107 (current_catcher): Remove.
11108 (catchers): New global.
11109 (exceptions_state_mc_init): Simplify.
11110 (catcher_pop): Remove.
11111 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11112 (try_scope_depth, exception_try_scope_entry)
11113 (exception_try_scope_exit): Remove.
11114 (throw_exception_sjlj): Update.
11115 (exception_messages, exception_messages_size): Remove.
11116 (throw_it): Simplify.
11117 (gdb_exception_sliced_copy): Remove.
11118 (throw_exception_cxx): Update.
11119 * cli/cli-script.c (script_from_file): Update.
11120 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11121 Update.
11122 * ada-valprint.c (ada_val_print): Update.
11123 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11124 (create_excep_cond_exprs): Update.
11125
11126 2019-04-08 Tom Tromey <tom@tromey.com>
11127
11128 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11129 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11130 (TRY, CATCH, END_CATCH): Remove some definitions.
11131 * common/common-exceptions.c: Don't use GDB_XCPT.
11132 (catcher_list_size): Remove.
11133 (throw_exception, throw_it): Simplify.
11134
11135 2019-04-05 Tom Tromey <tom@tromey.com>
11136
11137 Revert the header-sorting patch.
11138 * ft32-tdep.c: Revert.
11139 * frv-tdep.c: Revert.
11140 * frv-linux-tdep.c: Revert.
11141 * frame.c: Revert.
11142 * frame-unwind.c: Revert.
11143 * frame-base.c: Revert.
11144 * fork-child.c: Revert.
11145 * findvar.c: Revert.
11146 * findcmd.c: Revert.
11147 * filesystem.c: Revert.
11148 * filename-seen-cache.h: Revert.
11149 * filename-seen-cache.c: Revert.
11150 * fbsd-tdep.c: Revert.
11151 * fbsd-nat.h: Revert.
11152 * fbsd-nat.c: Revert.
11153 * f-valprint.c: Revert.
11154 * f-typeprint.c: Revert.
11155 * f-lang.c: Revert.
11156 * extension.h: Revert.
11157 * extension.c: Revert.
11158 * extension-priv.h: Revert.
11159 * expprint.c: Revert.
11160 * exec.h: Revert.
11161 * exec.c: Revert.
11162 * exceptions.c: Revert.
11163 * event-top.c: Revert.
11164 * event-loop.c: Revert.
11165 * eval.c: Revert.
11166 * elfread.c: Revert.
11167 * dwarf2read.h: Revert.
11168 * dwarf2read.c: Revert.
11169 * dwarf2loc.c: Revert.
11170 * dwarf2expr.h: Revert.
11171 * dwarf2expr.c: Revert.
11172 * dwarf2-frame.c: Revert.
11173 * dwarf2-frame-tailcall.c: Revert.
11174 * dwarf-index-write.h: Revert.
11175 * dwarf-index-write.c: Revert.
11176 * dwarf-index-common.c: Revert.
11177 * dwarf-index-cache.h: Revert.
11178 * dwarf-index-cache.c: Revert.
11179 * dummy-frame.c: Revert.
11180 * dtrace-probe.c: Revert.
11181 * disasm.h: Revert.
11182 * disasm.c: Revert.
11183 * disasm-selftests.c: Revert.
11184 * dictionary.c: Revert.
11185 * dicos-tdep.c: Revert.
11186 * demangle.c: Revert.
11187 * dcache.h: Revert.
11188 * dcache.c: Revert.
11189 * darwin-nat.h: Revert.
11190 * darwin-nat.c: Revert.
11191 * darwin-nat-info.c: Revert.
11192 * d-valprint.c: Revert.
11193 * d-namespace.c: Revert.
11194 * d-lang.c: Revert.
11195 * ctf.c: Revert.
11196 * csky-tdep.c: Revert.
11197 * csky-linux-tdep.c: Revert.
11198 * cris-tdep.c: Revert.
11199 * cris-linux-tdep.c: Revert.
11200 * cp-valprint.c: Revert.
11201 * cp-support.c: Revert.
11202 * cp-namespace.c: Revert.
11203 * cp-abi.c: Revert.
11204 * corelow.c: Revert.
11205 * corefile.c: Revert.
11206 * continuations.c: Revert.
11207 * completer.h: Revert.
11208 * completer.c: Revert.
11209 * complaints.c: Revert.
11210 * coffread.c: Revert.
11211 * coff-pe-read.c: Revert.
11212 * cli-out.h: Revert.
11213 * cli-out.c: Revert.
11214 * charset.c: Revert.
11215 * c-varobj.c: Revert.
11216 * c-valprint.c: Revert.
11217 * c-typeprint.c: Revert.
11218 * c-lang.c: Revert.
11219 * buildsym.c: Revert.
11220 * buildsym-legacy.c: Revert.
11221 * build-id.h: Revert.
11222 * build-id.c: Revert.
11223 * btrace.c: Revert.
11224 * bsd-uthread.c: Revert.
11225 * breakpoint.h: Revert.
11226 * breakpoint.c: Revert.
11227 * break-catch-throw.c: Revert.
11228 * break-catch-syscall.c: Revert.
11229 * break-catch-sig.c: Revert.
11230 * blockframe.c: Revert.
11231 * block.c: Revert.
11232 * bfin-tdep.c: Revert.
11233 * bfin-linux-tdep.c: Revert.
11234 * bfd-target.c: Revert.
11235 * bcache.c: Revert.
11236 * ax-general.c: Revert.
11237 * ax-gdb.h: Revert.
11238 * ax-gdb.c: Revert.
11239 * avr-tdep.c: Revert.
11240 * auxv.c: Revert.
11241 * auto-load.c: Revert.
11242 * arm-wince-tdep.c: Revert.
11243 * arm-tdep.c: Revert.
11244 * arm-symbian-tdep.c: Revert.
11245 * arm-pikeos-tdep.c: Revert.
11246 * arm-obsd-tdep.c: Revert.
11247 * arm-nbsd-tdep.c: Revert.
11248 * arm-nbsd-nat.c: Revert.
11249 * arm-linux-tdep.c: Revert.
11250 * arm-linux-nat.c: Revert.
11251 * arm-fbsd-tdep.c: Revert.
11252 * arm-fbsd-nat.c: Revert.
11253 * arm-bsd-tdep.c: Revert.
11254 * arch-utils.c: Revert.
11255 * arc-tdep.c: Revert.
11256 * arc-newlib-tdep.c: Revert.
11257 * annotate.h: Revert.
11258 * annotate.c: Revert.
11259 * amd64-windows-tdep.c: Revert.
11260 * amd64-windows-nat.c: Revert.
11261 * amd64-tdep.c: Revert.
11262 * amd64-sol2-tdep.c: Revert.
11263 * amd64-obsd-tdep.c: Revert.
11264 * amd64-obsd-nat.c: Revert.
11265 * amd64-nbsd-tdep.c: Revert.
11266 * amd64-nbsd-nat.c: Revert.
11267 * amd64-nat.c: Revert.
11268 * amd64-linux-tdep.c: Revert.
11269 * amd64-linux-nat.c: Revert.
11270 * amd64-fbsd-tdep.c: Revert.
11271 * amd64-fbsd-nat.c: Revert.
11272 * amd64-dicos-tdep.c: Revert.
11273 * amd64-darwin-tdep.c: Revert.
11274 * amd64-bsd-nat.c: Revert.
11275 * alpha-tdep.c: Revert.
11276 * alpha-obsd-tdep.c: Revert.
11277 * alpha-nbsd-tdep.c: Revert.
11278 * alpha-mdebug-tdep.c: Revert.
11279 * alpha-linux-tdep.c: Revert.
11280 * alpha-linux-nat.c: Revert.
11281 * alpha-bsd-tdep.c: Revert.
11282 * alpha-bsd-nat.c: Revert.
11283 * aix-thread.c: Revert.
11284 * agent.c: Revert.
11285 * addrmap.c: Revert.
11286 * ada-varobj.c: Revert.
11287 * ada-valprint.c: Revert.
11288 * ada-typeprint.c: Revert.
11289 * ada-tasks.c: Revert.
11290 * ada-lang.c: Revert.
11291 * aarch64-tdep.c: Revert.
11292 * aarch64-ravenscar-thread.c: Revert.
11293 * aarch64-newlib-tdep.c: Revert.
11294 * aarch64-linux-tdep.c: Revert.
11295 * aarch64-linux-nat.c: Revert.
11296 * aarch64-fbsd-tdep.c: Revert.
11297 * aarch64-fbsd-nat.c: Revert.
11298 * aarch32-linux-nat.c: Revert.
11299
11300 2019-04-05 Tom Tromey <tom@tromey.com>
11301
11302 * ft32-tdep.c: Sort headers.
11303 * frv-tdep.c: Sort headers.
11304 * frv-linux-tdep.c: Sort headers.
11305 * frame.c: Sort headers.
11306 * frame-unwind.c: Sort headers.
11307 * frame-base.c: Sort headers.
11308 * fork-child.c: Sort headers.
11309 * findvar.c: Sort headers.
11310 * findcmd.c: Sort headers.
11311 * filesystem.c: Sort headers.
11312 * filename-seen-cache.h: Sort headers.
11313 * filename-seen-cache.c: Sort headers.
11314 * fbsd-tdep.c: Sort headers.
11315 * fbsd-nat.h: Sort headers.
11316 * fbsd-nat.c: Sort headers.
11317 * f-valprint.c: Sort headers.
11318 * f-typeprint.c: Sort headers.
11319 * f-lang.c: Sort headers.
11320 * extension.h: Sort headers.
11321 * extension.c: Sort headers.
11322 * extension-priv.h: Sort headers.
11323 * expprint.c: Sort headers.
11324 * exec.h: Sort headers.
11325 * exec.c: Sort headers.
11326 * exceptions.c: Sort headers.
11327 * event-top.c: Sort headers.
11328 * event-loop.c: Sort headers.
11329 * eval.c: Sort headers.
11330 * elfread.c: Sort headers.
11331 * dwarf2read.h: Sort headers.
11332 * dwarf2read.c: Sort headers.
11333 * dwarf2loc.c: Sort headers.
11334 * dwarf2expr.h: Sort headers.
11335 * dwarf2expr.c: Sort headers.
11336 * dwarf2-frame.c: Sort headers.
11337 * dwarf2-frame-tailcall.c: Sort headers.
11338 * dwarf-index-write.h: Sort headers.
11339 * dwarf-index-write.c: Sort headers.
11340 * dwarf-index-common.c: Sort headers.
11341 * dwarf-index-cache.h: Sort headers.
11342 * dwarf-index-cache.c: Sort headers.
11343 * dummy-frame.c: Sort headers.
11344 * dtrace-probe.c: Sort headers.
11345 * disasm.h: Sort headers.
11346 * disasm.c: Sort headers.
11347 * disasm-selftests.c: Sort headers.
11348 * dictionary.c: Sort headers.
11349 * dicos-tdep.c: Sort headers.
11350 * demangle.c: Sort headers.
11351 * dcache.h: Sort headers.
11352 * dcache.c: Sort headers.
11353 * darwin-nat.h: Sort headers.
11354 * darwin-nat.c: Sort headers.
11355 * darwin-nat-info.c: Sort headers.
11356 * d-valprint.c: Sort headers.
11357 * d-namespace.c: Sort headers.
11358 * d-lang.c: Sort headers.
11359 * ctf.c: Sort headers.
11360 * csky-tdep.c: Sort headers.
11361 * csky-linux-tdep.c: Sort headers.
11362 * cris-tdep.c: Sort headers.
11363 * cris-linux-tdep.c: Sort headers.
11364 * cp-valprint.c: Sort headers.
11365 * cp-support.c: Sort headers.
11366 * cp-namespace.c: Sort headers.
11367 * cp-abi.c: Sort headers.
11368 * corelow.c: Sort headers.
11369 * corefile.c: Sort headers.
11370 * continuations.c: Sort headers.
11371 * completer.h: Sort headers.
11372 * completer.c: Sort headers.
11373 * complaints.c: Sort headers.
11374 * coffread.c: Sort headers.
11375 * coff-pe-read.c: Sort headers.
11376 * cli-out.h: Sort headers.
11377 * cli-out.c: Sort headers.
11378 * charset.c: Sort headers.
11379 * c-varobj.c: Sort headers.
11380 * c-valprint.c: Sort headers.
11381 * c-typeprint.c: Sort headers.
11382 * c-lang.c: Sort headers.
11383 * buildsym.c: Sort headers.
11384 * buildsym-legacy.c: Sort headers.
11385 * build-id.h: Sort headers.
11386 * build-id.c: Sort headers.
11387 * btrace.c: Sort headers.
11388 * bsd-uthread.c: Sort headers.
11389 * breakpoint.h: Sort headers.
11390 * breakpoint.c: Sort headers.
11391 * break-catch-throw.c: Sort headers.
11392 * break-catch-syscall.c: Sort headers.
11393 * break-catch-sig.c: Sort headers.
11394 * blockframe.c: Sort headers.
11395 * block.c: Sort headers.
11396 * bfin-tdep.c: Sort headers.
11397 * bfin-linux-tdep.c: Sort headers.
11398 * bfd-target.c: Sort headers.
11399 * bcache.c: Sort headers.
11400 * ax-general.c: Sort headers.
11401 * ax-gdb.h: Sort headers.
11402 * ax-gdb.c: Sort headers.
11403 * avr-tdep.c: Sort headers.
11404 * auxv.c: Sort headers.
11405 * auto-load.c: Sort headers.
11406 * arm-wince-tdep.c: Sort headers.
11407 * arm-tdep.c: Sort headers.
11408 * arm-symbian-tdep.c: Sort headers.
11409 * arm-pikeos-tdep.c: Sort headers.
11410 * arm-obsd-tdep.c: Sort headers.
11411 * arm-nbsd-tdep.c: Sort headers.
11412 * arm-nbsd-nat.c: Sort headers.
11413 * arm-linux-tdep.c: Sort headers.
11414 * arm-linux-nat.c: Sort headers.
11415 * arm-fbsd-tdep.c: Sort headers.
11416 * arm-fbsd-nat.c: Sort headers.
11417 * arm-bsd-tdep.c: Sort headers.
11418 * arch-utils.c: Sort headers.
11419 * arc-tdep.c: Sort headers.
11420 * arc-newlib-tdep.c: Sort headers.
11421 * annotate.h: Sort headers.
11422 * annotate.c: Sort headers.
11423 * amd64-windows-tdep.c: Sort headers.
11424 * amd64-windows-nat.c: Sort headers.
11425 * amd64-tdep.c: Sort headers.
11426 * amd64-sol2-tdep.c: Sort headers.
11427 * amd64-obsd-tdep.c: Sort headers.
11428 * amd64-obsd-nat.c: Sort headers.
11429 * amd64-nbsd-tdep.c: Sort headers.
11430 * amd64-nbsd-nat.c: Sort headers.
11431 * amd64-nat.c: Sort headers.
11432 * amd64-linux-tdep.c: Sort headers.
11433 * amd64-linux-nat.c: Sort headers.
11434 * amd64-fbsd-tdep.c: Sort headers.
11435 * amd64-fbsd-nat.c: Sort headers.
11436 * amd64-dicos-tdep.c: Sort headers.
11437 * amd64-darwin-tdep.c: Sort headers.
11438 * amd64-bsd-nat.c: Sort headers.
11439 * alpha-tdep.c: Sort headers.
11440 * alpha-obsd-tdep.c: Sort headers.
11441 * alpha-nbsd-tdep.c: Sort headers.
11442 * alpha-mdebug-tdep.c: Sort headers.
11443 * alpha-linux-tdep.c: Sort headers.
11444 * alpha-linux-nat.c: Sort headers.
11445 * alpha-bsd-tdep.c: Sort headers.
11446 * alpha-bsd-nat.c: Sort headers.
11447 * aix-thread.c: Sort headers.
11448 * agent.c: Sort headers.
11449 * addrmap.c: Sort headers.
11450 * ada-varobj.c: Sort headers.
11451 * ada-valprint.c: Sort headers.
11452 * ada-typeprint.c: Sort headers.
11453 * ada-tasks.c: Sort headers.
11454 * ada-lang.c: Sort headers.
11455 * aarch64-tdep.c: Sort headers.
11456 * aarch64-ravenscar-thread.c: Sort headers.
11457 * aarch64-newlib-tdep.c: Sort headers.
11458 * aarch64-linux-tdep.c: Sort headers.
11459 * aarch64-linux-nat.c: Sort headers.
11460 * aarch64-fbsd-tdep.c: Sort headers.
11461 * aarch64-fbsd-nat.c: Sort headers.
11462 * aarch32-linux-nat.c: Sort headers.
11463
11464 2019-04-04 Tom Tromey <tom@tromey.com>
11465
11466 * varobj.c (varobj_create): Update.
11467 * rust-exp.y (struct rust_parser) <update_innermost_block,
11468 lookup_symbol>: New methods.
11469 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11470 Rename.
11471 (rust_parser::rust_lookup_type)
11472 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11473 * printcmd.c (display_command, do_one_display): Update.
11474 * parser-defs.h (struct parser_state) <parser_state>: Add
11475 "tracker" parameter.
11476 (block_tracker): New member.
11477 (class innermost_block_tracker) <innermost_block_tracker>: Add
11478 "types" parameter.
11479 <reset>: Remove method.
11480 (innermost_block): Don't declare.
11481 (null_post_parser): Update.
11482 * parse.c (innermost_block): Remove global.
11483 (write_dollar_variable): Update.
11484 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11485 Remove "tracker_types" parameter.
11486 (parse_expression): Add "tracker" parameter.
11487 (parse_expression_for_completion): Update.
11488 (null_post_parser): Add "tracker" parameter.
11489 * p-exp.y: Update rules.
11490 * m2-exp.y: Update rules.
11491 * language.h (struct language_defn) <la_post_parser>: Add
11492 "tracker" parameter.
11493 * go-exp.y: Update rules.
11494 * f-exp.y: Update rules.
11495 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11496 parameter.
11497 * d-exp.y: Update rules.
11498 * c-exp.y: Update rules.
11499 * breakpoint.c (set_breakpoint_condition): Create an
11500 innermost_block_tracker.
11501 (watch_command_1): Likewise.
11502 * ada-lang.c (resolve): Add "tracker" parameter.
11503 (resolve_subexp): Likewise.
11504 * ada-exp.y (write_var_from_sym): Update.
11505
11506 2019-04-04 Tom Tromey <tom@tromey.com>
11507
11508 * type-stack.h: New file.
11509 * type-stack.c: New file.
11510 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11511 type-stack.h.
11512 (insert_into_type_stack, insert_type, push_type, push_type_int)
11513 (insert_type_address_space, pop_type, pop_type_int)
11514 (pop_typelist, pop_type_stack, append_type_stack)
11515 (push_type_stack, get_type_stack, push_typelist)
11516 (follow_type_instance_flags, follow_types): Don't declare.
11517 * parse.c (type_stack): Remove global.
11518 (parse_exp_in_context): Update.
11519 (insert_into_type_stack, insert_type, push_type, push_type_int)
11520 (insert_type_address_space, pop_type, pop_type_int)
11521 (pop_typelist, pop_type_stack, append_type_stack)
11522 (push_type_stack, get_type_stack, push_typelist)
11523 (follow_type_instance_flags, follow_types): Remove (moved to
11524 type-stack.c).
11525 * f-exp.y (type_stack): New global.
11526 Update rules.
11527 (push_kind_type, f_parse): Update.
11528 * d-exp.y (type_stack): New global.
11529 Update rules.
11530 (d_parse): Update.
11531 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11532 Update rules.
11533 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11534 (HFILES_NO_SRCDIR): Add type-stack.h.
11535
11536 2019-04-04 Tom Tromey <tom@tromey.com>
11537
11538 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11539 (rust_parser::convert_ast_to_expression, rust_parse)
11540 (rust_lex_test_completion, rust_lex_tests): Update.
11541 * parser-defs.h (struct expr_completion_state): New.
11542 (struct parser_state) <parser_state>: Add completion parameter.
11543 <mark_struct_expression, mark_completion_tag>: New methods.
11544 <parse_completion, m_completion_state>: New members.
11545 (prefixify_expression, null_post_parser): Update.
11546 (mark_struct_expression, mark_completion_tag): Don't declare.
11547 * parse.c (parse_completion, expout_last_struct)
11548 (expout_tag_completion_type, expout_completion_name): Remove
11549 globals.
11550 (parser_state::mark_struct_expression)
11551 (parser_state::mark_completion_tag): Now methods.
11552 (prefixify_expression): Add last_struct parameter.
11553 (prefixify_subexp): Likewise.
11554 (parse_exp_1): Update.
11555 (parse_exp_in_context): Add cstate parameter. Update.
11556 (parse_expression_for_completion): Create an
11557 expr_completion_state.
11558 (null_post_parser): Add "completion" parameter.
11559 * p-exp.y: Update rules.
11560 (yylex): Update.
11561 * language.h (struct language_defn) <la_post_parser>: Add
11562 "completing" parameter.
11563 * go-exp.y: Update rules.
11564 (lex_one_token): Update.
11565 * expression.h (parse_completion): Don't declare.
11566 * d-exp.y: Update rules.
11567 (lex_one_token): Update rules.
11568 * c-exp.y: Update rules.
11569 (lex_one_token): Update.
11570 * ada-lang.c (resolve): Add "parse_completion" parameter.
11571 (resolve_subexp): Likewise.
11572 (ada_resolve_function): Likewise.
11573
11574 2019-04-04 Tom Tromey <tom@tromey.com>
11575
11576 * parser-defs.h (struct parser_state) <start_arglist,
11577 end_arglist>: New methods.
11578 <arglist_len, m_funcall_chain>: New members.
11579 (arglist_len, start_arglist, end_arglist): Don't declare.
11580 * parse.c (arglist_len, funcall_chain): Remove global.
11581 (start_arglist, end_arglist): Remove functions.
11582 (parse_exp_in_context): Update.
11583 * p-exp.y: Update rules.
11584 * m2-exp.y: Update rules.
11585 * go-exp.y: Update rules.
11586 * f-exp.y: Update rules.
11587 * d-exp.y: Update rules.
11588 * c-exp.y: Update rules.
11589
11590 2019-04-04 Tom Tromey <tom@tromey.com>
11591
11592 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11593 lex_operator, push_back>: New methods.
11594 Update all rules.
11595 (rust_parser::lex_hex, lex_escape): Rename and update.
11596 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11597 (rust_parser::lex_operator): Rename and update.
11598 (rust_parser::lex_number, rustyylex, rustyyerror)
11599 (rust_lex_test_init, rust_lex_test_sequence)
11600 (rust_lex_test_push_back, rust_lex_tests): Update.
11601 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11602 parameter.
11603 <lexptr, prev_lexptr>: New members.
11604 (lexptr, prev_lexptr): Don't declare.
11605 * parse.c (lexptr, prev_lexptr): Remove globals.
11606 (parse_exp_in_context): Update.
11607 * p-exp.y (yylex, yyerror): Update.
11608 * m2-exp.y (parse_number, yylex, yyerror): Update.
11609 * go-exp.y (lex_one_token, yyerror): Update.
11610 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11611 * d-exp.y (lex_one_token, yyerror): Update.
11612 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11613 (lex_one_token, yyerror): Update.
11614 * ada-lex.l (YY_INPUT): Update.
11615 (rewind_to_char): Update.
11616 * ada-exp.y (yyerror): Update.
11617
11618 2019-04-04 Tom Tromey <tom@tromey.com>
11619
11620 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11621 * parser-defs.h (struct parser_state) <parser_state>: Add new
11622 parameter.
11623 <comma_terminates>: New member.
11624 (comma_terminates): Don't declare global.
11625 * parse.c (comma_terminates): Remove global.
11626 (parse_exp_in_context): Update.
11627 * p-exp.y (yylex): Update.
11628 * m2-exp.y (yylex): Update.
11629 * go-exp.y (lex_one_token): Update.
11630 * f-exp.y (yylex): Update.
11631 * d-exp.y (lex_one_token): Update.
11632 * c-exp.y (lex_one_token): Update.
11633 * ada-lex.l: Update.
11634
11635 2019-04-04 Tom Tromey <tom@tromey.com>
11636
11637 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11638 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11639 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11640 * parser-defs.h (paren_depth): Don't declare.
11641 * parse.c (paren_depth): Remove global.
11642 (parse_exp_in_context): Update.
11643 * p-exp.y (paren_depth): New global.
11644 (pascal_parse): Initialize it.
11645 * m2-exp.y (paren_depth): New global.
11646 (m2_parse): Initialize it.
11647 * go-exp.y (paren_depth): New global.
11648 (go_parse): Initialize it.
11649 * f-exp.y (paren_depth): New global.
11650 (f_parse): Initialize it.
11651 * d-exp.y (paren_depth): New global.
11652 (d_parse): Initialize it.
11653 * c-exp.y (paren_depth): New global.
11654 (c_parse): Initialize it.
11655 * ada-lex.l (paren_depth): New global.
11656 (lexer_init): Initialize it.
11657
11658 2019-04-04 Tom Tromey <tom@tromey.com>
11659
11660 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11661 (rust_parser::convert_ast_to_type)
11662 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11663 * parser-defs.h (struct parser_state) <parser_state>: Add
11664 parameters. Initialize new members.
11665 <expression_context_block, expression_context_pc>: New members.
11666 * parse.c (expression_context_block, expression_context_pc):
11667 Remove globals.
11668 (parse_exp_in_context): Update.
11669 * p-exp.y: Update all rules.
11670 (yylex): Update.
11671 * m2-exp.y: Update all rules.
11672 (yylex): Update.
11673 * go-exp.y (yylex): Update.
11674 * f-exp.y (yylex): Update.
11675 * d-exp.y: Update all rules.
11676 (yylex): Update.
11677 * c-exp.y: Update all rules.
11678 (lex_one_token, classify_name, yylex, c_parse): Update.
11679 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11680
11681 2019-04-04 Tom Tromey <tom@tromey.com>
11682
11683 * gdbarch.h, gdbarch.c: Rebuild.
11684 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11685 * stap-probe.h:
11686 (struct stap_parse_info): Replace "parser_state" with
11687 "expr_builder".
11688 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11689 (parser_state): New class.
11690 * parse.c (expr_builder): Rename.
11691 (expr_builder::release): Rename.
11692 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11693 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11694 (write_exp_elt_longcst, write_exp_elt_floatcst)
11695 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11696 (write_exp_string_vector, write_exp_bitstring)
11697 (write_exp_msymbol, mark_struct_expression)
11698 (write_dollar_variable)
11699 (insert_type_address_space, increase_expout_size): Replace
11700 "parser_state" with "expr_builder".
11701 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11702 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11703 "parser_state" with "expr_builder".
11704
11705 2019-04-04 Tom Tromey <tom@tromey.com>
11706
11707 * rust-exp.y: Replace "parse_language" with method call.
11708 * p-exp.y:
11709 (yylex): Replace "parse_language" with method call.
11710 * m2-exp.y:
11711 (yylex): Replace "parse_language" with method call.
11712 * go-exp.y (classify_name): Replace "parse_language" with method
11713 call.
11714 * f-exp.y (yylex): Replace "parse_language" with method call.
11715 * d-exp.y (lex_one_token): Replace "parse_language" with method
11716 call.
11717 * c-exp.y:
11718 (lex_one_token, classify_name, yylex): Replace "parse_language"
11719 with method call.
11720 * ada-exp.y (find_primitive_type, type_char)
11721 (type_system_address): Replace "parse_language" with method call.
11722
11723 2019-04-04 Tom Tromey <tom@tromey.com>
11724
11725 * rust-exp.y: Replace "parse_gdbarch" with method call.
11726 * parse.c (write_dollar_variable, insert_type_address_space):
11727 Replace "parse_gdbarch" with method call.
11728 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11729 call.
11730 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11731 call.
11732 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11733 "parse_gdbarch" with method call.
11734 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11735 with method call.
11736 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11737 "parse_gdbarch" with method call.
11738 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11739 "parse_gdbarch" with method call.
11740 * c-exp.y (parse_type, parse_number, classify_name): Replace
11741 "parse_gdbarch" with method call.
11742 * ada-lex.l: Replace "parse_gdbarch" with method call.
11743 * ada-exp.y (parse_type, find_primitive_type, type_char)
11744 (type_system_address): Replace "parse_gdbarch" with method call.
11745
11746 2019-04-04 Tom Tromey <tom@tromey.com>
11747
11748 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11749 * stap-probe.c (stap_parse_argument): Update.
11750 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11751 initial_size parameter.
11752 * rust-exp.y (rust_lex_tests): Update.
11753 * parse.c (parser_state): Update.
11754 (parse_exp_in_context): Update.
11755 * parser-defs.h (struct parser_state) <parser_state>: Remove
11756 "initial_size" parameter.
11757
11758 2019-04-04 Tom Tromey <tom@tromey.com>
11759
11760 * parser-defs.h (increase_expout_size): Don't declare.
11761 * parse.c (increase_expout_size): Now static.
11762
11763 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11764
11765 * gnu-nat.c (gnu_nat_target::wait): Fix
11766 target_waitstatus_to_string call.
11767
11768 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11769
11770 * eval.c (evaluate_subexp_standard): Handle internal functions
11771 during Fortran function call handling.
11772
11773 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11774
11775 * NEWS: Mention new internal functions.
11776 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11777 (read_base_type): Use dwarf2_init_complex_target_type.
11778 * value.c (creal_internal_fn): New function.
11779 (cimag_internal_fn): New function.
11780 (_initialize_values): Register new internal functions.
11781
11782 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11783
11784 * infrun.c (stop_all_threads): If debug_infrun, always
11785 trace the wait status after wait_one, using
11786 target_waitstatus_to_string and target_pid_to_str.
11787 (handle_inferior_event): Replace various trace of
11788 wait status kind by a single trace.
11789 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11790 wait status kind image by target_waitstatus_to_string.
11791 * target/waitstatus.c (target_waitstatus_to_string): Fix
11792 obsolete comment.
11793
11794 2019-04-01 Tom Tromey <tromey@adacore.com>
11795
11796 PR symtab/23331:
11797 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11798
11799 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11800 Pedro Alves <palves@redhat.com>
11801
11802 * top.c (quit_force): Call 'finalize_values'.
11803 * value.c (finalize_values): New function.
11804 * value.h (finalize_values): Declare.
11805
11806 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11807
11808 * NEWS: Announce $_gdb_major and $_gdb_minor.
11809
11810 * top.c (init_gdb_version_vars): New function.
11811 (gdb_init): Call init_gdb_version_vars.
11812
11813 2019-03-29 Tom Tromey <tromey@adacore.com>
11814
11815 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11816 help text. Remove dead code.
11817
11818 2019-03-29 Keith Seitz <keiths@redhat.com>
11819
11820 From Siddhesh Poyarekar:
11821 * f-lang.h (f77_get_upperbound): Return LONGEST.
11822 (f77_get_lowerbound): Likewise.
11823 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11824 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11825 print them.
11826 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11827 plongest to format print it.
11828 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11829 (f77_get_upperbound): Likewise.
11830 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11831 LOWER_BOUND to LONGEST.
11832 (f77_create_arrayprint_offset_tbl): Likewise.
11833
11834 2019-03-29 Keith Seitz <keiths@redhat.com>
11835
11836 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11837 %s/pulongest for TYPE_LENGTH instead of %d in format
11838 strings.
11839 * ada-typerint.c (ada_print_type): Likewise.
11840 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11841 * compile/compile-c-support.c (generate_register_struct): Likewise.
11842 * gdbtypes.c (recursive_dump_type): Likewise.
11843 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11844 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11845 instead of %d in format strings.
11846 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11847 to std::min to ULONGEST.
11848 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11849 instead of %d in format strings.
11850 * tracepoint.c (info_scope_command): Likewise.
11851 * typeprint.c (print_offset_data::update)
11852 (print_offset_data::finish): Likewise.
11853 * xtensa-tdep.c (xtensa_store_return_value)
11854 (xtensa_push_dummy_call): Likewise.
11855
11856 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11857
11858 * windows-nat.c (display_selector): Fixed format specifications
11859 for 64-bit Cygwin.
11860
11861 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11862
11863 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11864
11865 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11866
11867 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11868 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11869 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11870 (nios2_linux_init_abi): Install it.
11871
11872 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11873
11874 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11875
11876 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11877
11878 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11879
11880 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11881 Tom Tromey <tromey@adacore.com>
11882
11883 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11884
11885 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11886
11887 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11888 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11889 method to compute the bounds of range types. Also print "[evaluated]"
11890 if the bounds' values come from a dynamic evaluation.
11891
11892 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11893
11894 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11895 whitespace when pretty printing is on.
11896
11897 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11898
11899 * ppc-linux-nat.c: Add include.
11900
11901 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11902
11903 * NEWS: Mention AArch64 Pointer Authentication.
11904
11905 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11906
11907 * arm-linux-nat.c: Add include.
11908
11909 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11910
11911 * source-cache.c (source_cache::get_source_lines): Re-read
11912 fullname after calling open_source_file.
11913
11914 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11915
11916 * NEWS: Mention TLS support for FreeBSD.
11917
11918 2019-03-25 Tom Tromey <tromey@adacore.com>
11919
11920 * minsyms.c (BUNCH_SIZE): Update comment.
11921 (~minimal_symbol_reader): Remove old comment.
11922 (compact_minimal_symbols): Update comment.
11923 (minimal_symbol_reader::install): Remove old comment. Update
11924 other comments.
11925
11926 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11927
11928 * s390-linux-nat.c: Add include.
11929
11930 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11931
11932 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11933 Call linux_get_hwcap.
11934 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11935 Likewise.
11936 (aarch64_linux_get_hwcap): Remove function.
11937 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11938 declaration.
11939 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11940 linux_get_hwcap.
11941 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11942 * linux-tdep.c (linux_get_hwcap): Add function.
11943 (linux_get_hwcap2): Likewise.
11944 * linux-tdep.h (linux_get_hwcap): Add declaration.
11945 (linux_get_hwcap2): Likewise.
11946 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11947 (ppc_linux_get_hwcap2): Likewise.
11948 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11949 linux_get_hwcap.
11950 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11951 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11952 (ppc_linux_nat_target::read_description): Likewise.
11953 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11954 * s390-linux-nat.c: Likewise.
11955 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11956
11957 2019-03-24 Tom Tromey <tom@tromey.com>
11958
11959 * ada-lang.c (standard_lookup): Simplify initialization.
11960 (ada_lookup_symbol_nonlocal): Simplify return.
11961 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11962 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11963 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11964 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11965 initialization.
11966 * solib.c (solib_global_lookup): Simplify.
11967 * symtab.c (null_block_symbol): Remove.
11968 (symbol_cache_lookup): Simplify returns.
11969 (lookup_language_this): Simplify returns.
11970 (lookup_symbol_aux): Simplify return.
11971 (lookup_local_symbol): Simplify returns.
11972 (lookup_global_symbol_from_objfile): Simplify return.
11973 (lookup_symbol_in_objfile_symtabs)
11974 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11975 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11976 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11977 * cp-namespace.c (cp_lookup_bare_symbol)
11978 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11979 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11980 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11981 (cp_lookup_symbol_via_imports): Simplify initialization.
11982 (find_symbol_in_baseclass): Likewise.
11983 * symtab.h (null_block_symbol): Remove.
11984 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11985 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11986 (d_lookup_symbol_module): Likewise.
11987 (find_symbol_in_baseclass): Simplify initialization.
11988
11989 2019-03-24 Tom Tromey <tom@tromey.com>
11990
11991 * expression.h: Don't include symtab.h.
11992 (struct block): Forward declare.
11993
11994 2019-03-24 Tom Tromey <tom@tromey.com>
11995
11996 * c-exp.y (typebase): Remove casts.
11997 * gdbtypes.c (lookup_unsigned_typename, )
11998 (lookup_signed_typename): Remove cast.
11999 * eval.c (parse_to_comma_and_eval): Remove cast.
12000 * parse.c (write_dollar_variable): Remove cast.
12001 * block.h (struct block) <superblock>: Now const.
12002 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12003 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12004 (map_block): Make "block" const.
12005 * symfile.h (struct quick_symbol_functions)
12006 <map_matching_symbols>: Constify block argument to "callback".
12007 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12008 const.
12009 (find_pc_sect_compunit_symtab): Make "b" const.
12010 (find_symbol_at_address): Likewise.
12011 (search_symbols): Likewise.
12012 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12013 (dw2_debug_names_lookup_symbol): Likewise.
12014 (dw2_map_matching_symbols): Update.
12015 * p-valprint.c (pascal_val_print): Remove "block".
12016 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12017 (aux_add_nonlocal_symbols): Make "block" const.
12018 (resolve_subexp): Remove cast.
12019 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12020 const.
12021 (iterate_over_file_blocks): Likewise.
12022 * f-exp.y (%union) <bval>: Remove.
12023 * coffread.c (patch_opaque_types): Make "b" const.
12024 * spu-tdep.c (spu_catch_start): Make "block" const.
12025 * c-valprint.c (print_unpacked_pointer): Remove "block".
12026 * symmisc.c (dump_symtab_1): Make "b" const.
12027 (block_depth): Make "block" const.
12028 * d-exp.y (%union) <bval>: Remove.
12029 * cp-support.h (cp_lookup_rtti_type): Update.
12030 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12031 * psymtab.c (psym_lookup_symbol): Make "block" const.
12032 (maintenance_check_psymtabs): Make "b" const.
12033 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12034 (enumerate_locals, enumerate_args): Update.
12035 * python/py-symtab.c (stpy_global_block): Make "block" const.
12036 (stpy_static_block): Likewise.
12037 * inline-frame.c (block_starting_point_at): Make "new_block"
12038 const.
12039 * block.c (find_block_in_blockvector): Make return type const.
12040 (blockvector_for_pc_sect): Make "b" const.
12041 (find_block_in_blockvector): Make "b" const.
12042
12043 2019-03-23 Tom Tromey <tom@tromey.com>
12044
12045 * varobj.c (varobj_create): Update.
12046 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12047 * printcmd.c (display_command, do_one_display): Don't reset
12048 innermost_block.
12049 * parser-defs.h (enum innermost_block_tracker_type): Move to
12050 expression.h.
12051 (innermost_block): Update comment.
12052 * parse.c (parse_exp_1): Add tracker_types parameter.
12053 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12054 tracker_types parameter. Reset innermost_block.
12055 (parse_exp_in_context): Remove.
12056 (parse_expression_for_completion): Update.
12057 * objfiles.c (~objfile): Don't reset expression_context_block or
12058 innermost_block.
12059 * expression.h (enum innermost_block_tracker_type): Move from
12060 parser-defs.h.
12061 (parse_exp_1): Add tracker_types parameter.
12062 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12063 reset innermost_block.
12064
12065 2019-03-23 Tom Tromey <tom@tromey.com>
12066
12067 * objfiles.h: Include bcache.h.
12068
12069 2019-03-23 Tom Tromey <tom@tromey.com>
12070
12071 * linespec.c (get_current_search_block): Use
12072 scoped_restore_current_language.
12073 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12074
12075 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12076 Jiong Wang <jiong.wang@arm.com>
12077
12078 * aarch64-linux-tdep.c
12079 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12080 section.
12081 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12082
12083 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12084 Jiong Wang <jiong.wang@arm.com>
12085
12086 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12087 instructions.
12088 (aarch64_analyze_prologue_test): Add PACIASP test.
12089 (aarch64_prologue_prev_register): Unmask PC value.
12090
12091 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12092 Jiong Wang <jiong.wang@arm.com>
12093
12094 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12095 (aarch64_dwarf2_prev_register): Unmask PC value.
12096 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12097 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12098 DW_CFA_AARCH64_negate_ra_state.
12099 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12100
12101 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12102 Jiong Wang <jiong.wang@arm.com>
12103
12104 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12105 registers.
12106 (aarch64_pseudo_register_name): Likewise.
12107 (aarch64_pseudo_register_type): Likewise.
12108 (aarch64_pseudo_register_reggroup_p): Likewise.
12109 (aarch64_gdbarch_init): Add pauth registers.
12110 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12111 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12112 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12113 (struct gdbarch_tdep): Add regnum for ra_state.
12114
12115 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12116 Jiong Wang <jiong.wang@arm.com>
12117
12118 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12119
12120 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12121 Jiong Wang <jiong.wang@arm.com>
12122
12123 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12124 function.
12125 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12126 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12127 (aarch64_gdbarch_init): Add puth registers.
12128 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12129 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12130 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12131
12132 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12133 Jiong Wang <jiong.wang@arm.com>
12134
12135 * aarch64-linux-nat.c
12136 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12137 * aarch64-linux-tdep.c
12138 (aarch64_linux_core_read_description): Likewise.
12139 (aarch64_linux_get_hwcap): New function.
12140 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12141 (aarch64_linux_get_hwcap): New declaration.
12142
12143 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12144 Jiong Wang <jiong.wang@arm.com>
12145
12146 * aarch64-linux-nat.c
12147 (aarch64_linux_nat_target::read_description): Add pauth param.
12148 * aarch64-linux-tdep.c
12149 (aarch64_linux_core_read_description): Likewise.
12150 * aarch64-tdep.c (struct target_desc): Add in pauth.
12151 (aarch64_read_description): Add pauth param.
12152 (aarch64_gdbarch_init): Likewise.
12153 * aarch64-tdep.h (aarch64_read_description): Likewise.
12154 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12155 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12156 * features/Makefile: Add new files.
12157 * features/aarch64-pauth.c: New file.
12158 * features/aarch64-pauth.xml: New file.
12159
12160 2019-03-20 Tom Tromey <tromey@adacore.com>
12161
12162 * infrun.c (handle_inferior_event): Rename from
12163 handle_inferior_event_1. Create a scoped_value_mark.
12164 (handle_inferior_event): Remove.
12165
12166 2019-03-19 Tom Tromey <tromey@adacore.com>
12167
12168 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12169 * infrun.h (print_stop_event): Add "displays" parameter.
12170 * infrun.c (print_stop_event): Add "displays" parameter.
12171
12172 2019-03-19 Pedro Alves <palves@redhat.com>
12173
12174 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12175 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12176 to -1. Fix TABs vs spaces.
12177 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12178 * tui/tui-out.h (tui_ui_out) Add intro comments.
12179 <m_line, m_start_of_line>: In-class initialize, and add describing
12180 comment.
12181
12182 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12183
12184 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12185 variable names.
12186 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12187
12188 2019-03-18 Pedro Alves <palves@redhat.com>
12189 Eli Zaretskii <eliz@gnu.org>
12190
12191 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12192 m_line and m_start_of_line.
12193
12194 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12195
12196 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12197 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12198 it returns a newline. This fixes a regression in TU mode, whereby
12199 the next line is output on the same screen line as the user input.
12200
12201 2019-03-18 Tom Tromey <tromey@adacore.com>
12202
12203 * minsyms.c (minimal_symbol_reader::install): Remove call to
12204 obstack_blank.
12205
12206 2019-03-18 Pedro Alves <palves@redhat.com>
12207
12208 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12209 New globals.
12210 (apply_style): New, factored out from ...
12211 (apply_ansi_escape): ... this. Handle reverse video mode.
12212 (tui_set_reverse_mode): New function.
12213 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12214 * tui/tui-winsource.c (tui_show_source_line): Use
12215 tui_set_reverse_mode instead of setting A_STANDOUT.
12216 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12217 New setter methods.
12218
12219 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12220
12221 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12222 Handle tabs.
12223
12224 2019-03-18 Tom Tromey <tromey@adacore.com>
12225
12226 * ada-lang.c (empty_array): Add "high" parameter.
12227 (ada_evaluate_subexp): Update.
12228
12229 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12230
12231 * unittests/string_view-selftests.c: Define
12232 _initialize_string_view_selftests unconditionally.
12233
12234 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12235
12236 PR gdb/24350
12237 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12238
12239 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12240
12241 PR gdb/24351
12242 * windows-nat.c (display_selector): Fix format specifiers.
12243
12244 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12245
12246 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12247 tui_refill_source_window instead of tui_refresh_win, to update the
12248 current execution line. This fixes redisplay of the current line
12249 when stepping through the code with "next" or "step".
12250
12251 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12252
12253 * source-cache.c (source_cache::get_source_lines): Call
12254 find_source_lines to initialize s->nlines. This fixes vertical
12255 scrolling of TUI source window when the DOWN arrow is pressed.
12256
12257 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12258
12259 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12260 linux-thread-db.c (_initialize_thread_db): Likewise.
12261
12262 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12263
12264 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12265 wclrtoeol in tui_show_source_line". This reverts changes made in
12266 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12267
12268 2019-03-15 Tom Tromey <tom@tromey.com>
12269
12270 * symtab.h (struct minimal_symbol): Derive from
12271 general_symbol_info.
12272 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12273 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12274 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12275 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12276 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12277 (MSYMBOL_SEARCH_NAME): Update.
12278 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12279 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12280 * minsyms.c (minimal_symbol_reader::record_full): Update.
12281
12282 2019-03-15 Tom Tromey <tom@tromey.com>
12283
12284 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12285
12286 2019-03-15 Tom Tromey <tom@tromey.com>
12287
12288 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12289 unique_xmalloc_ptr.
12290 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12291 Update.
12292 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12293 (build_minimal_symbol_hash_tables)
12294 (minimal_symbol_reader::install): Update.
12295
12296 2019-03-15 Tom Tromey <tom@tromey.com>
12297
12298 * symtab.c (create_demangled_names_hash): Update.
12299 (symbol_set_names): Update.
12300 * objfiles.h (struct objfile_per_bfd_storage)
12301 <demangled_names_hash>: Now an htab_up.
12302 * objfiles.c (objfile_per_bfd_storage): Simplify.
12303
12304 2019-03-15 Tom Tromey <tom@tromey.com>
12305
12306 * objfiles.h (struct objfile_per_bfd_storage): Declare
12307 destructor.
12308 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12309 New.
12310 (get_objfile_bfd_data): Use new. Don't initialize
12311 language_of_main.
12312 (free_objfile_per_bfd_storage): Remove.
12313 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12314
12315 2019-03-15 Tom Tromey <tom@tromey.com>
12316
12317 * symfile.c (reread_symbols): Update.
12318 * objfiles.c (objfile::objfile): Update.
12319 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12320 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12321 comment.
12322 (minimal_symbol_reader::install): Update.
12323 (terminate_minimal_symbol_table): Remove.
12324 * jit.c (jit_object_close_impl): Update.
12325
12326 2019-03-15 Tom Tromey <tom@tromey.com>
12327
12328 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12329 initializations.
12330
12331 2019-03-15 Tom Tromey <tom@tromey.com>
12332
12333 * objfiles.h (struct objfile_per_bfd_storage)
12334 <demangled_hash_languages>: Now a bitset.
12335 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12336 (lookup_minimal_symbol): Update.
12337
12338 2019-03-15 Tom Tromey <tom@tromey.com>
12339
12340 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12341 Don't return the symbol.
12342 * coffread.c (record_minimal_symbol): Use record_full.
12343
12344 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12345
12346 The MS-Windows port of ncurses fails to switch to a color pair if
12347 one or both of the colors are the implicit default colors. This
12348 change records the default colors when TUI is initialized, and
12349 then specifies them explicitly when a color pair uses the default
12350 colors. This allows color styling in TUI mode on MS-Windows.
12351
12352 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12353 ncurses_norm_attr.
12354 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12355 colors in ncurses_norm_attr.
12356 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12357 "none", replace it with the default color recorded in
12358 ncurses_norm_attr.
12359
12360 2019-03-14 Tom Tromey <tromey@adacore.com>
12361
12362 * source-cache.h (class source_cache) <get_source_lines>: Return
12363 std::string.
12364 * source-cache.c (source_cache::extract_lines): Handle case where
12365 first_pos==npos. Return std::string.
12366 (source_cache::get_source_lines): Update.
12367
12368 2019-03-14 Tom Tromey <tromey@adacore.com>
12369
12370 * NEWS: Add item for "style sources" commands.
12371 * source-cache.c (source_cache::get_source_lines): Check
12372 source_styling.
12373 * cli/cli-style.c (source_styling): New global.
12374 (_initialize_cli_style): Add "style sources" commands.
12375 (show_style_sources): New function.
12376 * cli/cli-style.h (source_styling): Declare.
12377
12378 2019-03-14 Pedro Alves <palves@redhat.com>
12379 Tom Tromey <tromey@adacore.com>
12380
12381 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12382 * tui/tui-winsource.c (tui_refill_source_window): New function,
12383 from...
12384 (tui_horizontal_source_scroll): ... here. Move some logic.
12385 * cli/cli-style.c (set_style_enabled): Notify new observable.
12386 * tui/tui-hooks.c (tui_redisplay_source): New function.
12387 (tui_attach_detach_observers): Attach or detach
12388 tui_redisplay_source.
12389 * observable.h (source_styling_changed): New observable.
12390 * observable.c: Define source_styling_changed observable.
12391
12392 2019-03-13 Tom Tromey <tromey@adacore.com>
12393
12394 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12395 (i386_gnu_nat_target::store_registers): Update.
12396 * target-debug.h (target_debug_print_std_string): New macro.
12397 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12398 * windows-tdep.c (display_one_tib): Update.
12399 * tui/tui-stack.c (tui_make_status_line): Update.
12400 * top.c (print_inferior_quit_action): Update.
12401 * thread.c (thr_try_catch_cmd): Update.
12402 (add_thread_with_info): Update.
12403 (thread_target_id_str): Update.
12404 (thr_try_catch_cmd): Update.
12405 (thread_command): Update.
12406 (thread_find_command): Update.
12407 * record-btrace.c (record_btrace_target::info_record)
12408 (record_btrace_resume_thread, record_btrace_target::resume)
12409 (record_btrace_cancel_resume, record_btrace_step_thread)
12410 (record_btrace_target::wait, record_btrace_target::wait)
12411 (record_btrace_target::wait, record_btrace_target::stop): Update.
12412 * progspace.c (print_program_space): Update.
12413 * process-stratum-target.c
12414 (process_stratum_target::thread_address_space): Update.
12415 * linux-fork.c (linux_fork_mourn_inferior)
12416 (detach_checkpoint_command, info_checkpoints_command)
12417 (linux_fork_context): Update.
12418 (linux_fork_detach): Update.
12419 (class scoped_switch_fork_info): Update.
12420 (delete_checkpoint_command): Update.
12421 * infrun.c (follow_fork_inferior): Update.
12422 (follow_fork_inferior): Update.
12423 (proceed_after_vfork_done): Update.
12424 (handle_vfork_child_exec_or_exit): Update.
12425 (follow_exec): Update.
12426 (displaced_step_prepare_throw): Update.
12427 (displaced_step_restore): Update.
12428 (start_step_over): Update.
12429 (resume_1): Update.
12430 (clear_proceed_status_thread): Update.
12431 (proceed): Update.
12432 (print_target_wait_results): Update.
12433 (do_target_wait): Update.
12434 (context_switch): Update.
12435 (stop_all_threads): Update.
12436 (restart_threads): Update.
12437 (finish_step_over): Update.
12438 (handle_signal_stop): Update.
12439 (switch_back_to_stepped_thread): Update.
12440 (keep_going_pass_signal): Update.
12441 (print_exited_reason): Update.
12442 (normal_stop): Update.
12443 * inferior.c (inferior_pid_to_str): Change return type.
12444 (print_selected_inferior): Update.
12445 (add_inferior): Update.
12446 (detach_inferior): Update.
12447 * dummy-frame.c (fprint_dummy_frames): Update.
12448 * dcache.c (dcache_info_1): Update.
12449 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12450 (btrace_fetch, btrace_clear): Update.
12451 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12452 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12453 type.
12454 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12455 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12456 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12457 * gdbarch.c, gdbarch.h: Rebuild.
12458 * gdbarch.sh (core_pid_to_str): Change return type.
12459 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12460 return type.
12461 (windows_nat_target::pid_to_str): Change return type.
12462 (windows_delete_thread): Update.
12463 (windows_nat_target::attach): Update.
12464 (windows_nat_target::files_info): Update.
12465 * target-delegates.c: Rebuild.
12466 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12467 return type.
12468 (sol_thread_target::pid_to_str): Change return type.
12469 * remote.c (class remote_target) <pid_to_str>: Change return
12470 type.
12471 (remote_target::pid_to_str): Change return type.
12472 (extended_remote_target::attach, remote_target::remote_stop_ns)
12473 (remote_target::remote_notif_remove_queued_reply)
12474 (remote_target::push_stop_reply, remote_target::disable_btrace):
12475 Update.
12476 (extended_remote_target::attach): Update.
12477 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12478 type.
12479 (gdbsim_target::pid_to_str): Change return type.
12480 * ravenscar-thread.c (struct ravenscar_thread_target)
12481 <pid_to_str>: Change return type.
12482 (ravenscar_thread_target::pid_to_str): Change return type.
12483 * procfs.c (class procfs_target) <pid_to_str>: Change return
12484 type.
12485 (procfs_target::pid_to_str): Change return type.
12486 (procfs_target::attach): Update.
12487 (procfs_target::detach): Update.
12488 (procfs_target::fetch_registers): Update.
12489 (procfs_target::store_registers): Update.
12490 (procfs_target::wait): Update.
12491 (procfs_target::files_info): Update.
12492 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12493 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12494 return type.
12495 (nto_procfs_target::pid_to_str): Change return type.
12496 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12497 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12498 return type.
12499 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12500 (exit_lwp): Update.
12501 (attach_proc_task_lwp_callback, get_detach_signal)
12502 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12503 (linux_nat_target::resume, wait_lwp, stop_callback)
12504 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12505 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12506 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12507 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12508 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12509 type.
12510 (inf_ptrace_target::attach): Update.
12511 (inf_ptrace_target::files_info): Update.
12512 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12513 type.
12514 (go32_nat_target::pid_to_str): Change return type.
12515 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12516 (gnu_nat_target::wait): Update.
12517 (gnu_nat_target::wait): Update.
12518 (gnu_nat_target::resume): Update.
12519 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12520 (fbsd_nat_target::wait): Update.
12521 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12522 type.
12523 (darwin_nat_target::attach): Update.
12524 * corelow.c (class core_target) <pid_to_str>: Change return type.
12525 (core_target::pid_to_str): Change return type.
12526 * target.c (normal_pid_to_str): Change return type.
12527 (default_pid_to_str): Likewise.
12528 (target_pid_to_str): Change return type.
12529 (target_translate_tls_address): Update.
12530 (target_announce_detach): Update.
12531 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12532 return type.
12533 (bsd_uthread_target::pid_to_str): Change return type.
12534 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12535 type.
12536 (bsd_kvm_target::pid_to_str): Change return type.
12537 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12538 return type.
12539 (aix_thread_target::pid_to_str): Change return type.
12540 * target.h (struct target_ops) <pid_to_str>: Change return type.
12541 (target_pid_to_str, normal_pid_to_str): Likewise.
12542 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12543 type.
12544 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12545 type.
12546 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12547 return type.
12548 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12549 type.
12550 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12551 type.
12552 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12553 return type.
12554
12555 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12556
12557 * NEWS: Mention that the new default MI version is 3. Mention
12558 changes to the output of commands and events that deal with
12559 multi-location breakpoints.
12560 * breakpoint.c: Include "mi/mi-out.h".
12561 (print_one_breakpoint): Change output syntax if using MI version
12562 >= 3.
12563 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12564 New.
12565 (mi_multi_location_breakpoint_output_fixed): New.
12566 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12567 (mi_cmd_fix_multi_location_breakpoint_output): New.
12568 (mi_multi_location_breakpoint_output_fixed): New.
12569 * mi/mi-cmds.c (mi_cmds): Register command
12570 -fix-multi-location-breakpoint-output.
12571 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12572 interpreter "mi".
12573
12574 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12577 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12578 instantiate mi_ui_out based on interpreter name.
12579 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12580 * mi/mi-main.c (mi_load_progress): Likewise.
12581
12582 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12583
12584 * NEWS: Combine separate "New targets" sections for 8.3.
12585
12586 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12587
12588 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12589 (ppcfbsd_init_abi): Install gdbarch
12590 "fetch_tls_load_module_address" and "get_thread_local_address"
12591 methods.
12592
12593 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12594
12595 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12596 (riscv_fbsd_init_abi): Install gdbarch
12597 "fetch_tls_load_module_address" and "get_thread_local_address"
12598 methods.
12599
12600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12601
12602 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12603 (i386fbsd_init_abi): Install gdbarch
12604 "fetch_tls_load_module_address" and "get_thread_local_address"
12605 methods.
12606
12607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12608
12609 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12610 (amd64fbsd_init_abi): Install gdbarch
12611 "fetch_tls_load_module_address" and "get_thread_local_address"
12612 methods.
12613
12614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12615
12616 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12617 (struct fbsd_pspace_data): New type.
12618 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12619 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12620 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12621 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12622 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12623
12624 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12625
12626 * gdbtypes.c (lookup_struct_elt): New function.
12627 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12628 * gdbtypes.h (struct struct_elt): New type.
12629 (lookup_struct_elt): New prototype.
12630
12631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12632
12633 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12634 remove disabled code block.
12635
12636 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12637
12638 * gdbarch.sh (get_thread_local_address): New method.
12639 * gdbarch.h, gdbarch.c: Regenerate.
12640 * target.c (target_translate_tls_address): Use
12641 gdbarch_get_thread_local_address if present instead of
12642 target::get_thread_local_address.
12643
12644 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12645
12646 * target.h (target::get_thread_local_address): Update comment.
12647
12648 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12649
12650 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12651 objfile->separate_debug_objfile_backlink if not NULL.
12652
12653 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12654
12655 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12656 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12657 (amd64bsd_store_inferior_registers): Likewise.
12658 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12659 Enable segment base registers.
12660 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12661 PT_GETFSBASE and PT_GETGSBASE.
12662 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12663 PT_SETGSBASE.
12664 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12665 segment base registers.
12666 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12667
12668 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12669
12670 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12671 Update calls to i386_target_description to add 'segments'
12672 parameter.
12673 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12674 add segment base registers.
12675 * arch/i386.c (i386_create_target_description): Add 'segments'
12676 parameter to enable segment base registers.
12677 * arch/i386.h (i386_create_target_description): Likewise.
12678 * features/i386/32bit-segments.xml: New file.
12679 * features/i386/32bit-segments.c: Generate.
12680 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12681 call to i386_target_description to add 'segments' parameter.
12682 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12683 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12684 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12685 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12686 if feature is present.
12687 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12688 Add 'segments' parameter to call to i386_target_description.
12689 (i386_target_description): Add 'segments' parameter to enable
12690 segment base registers.
12691 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12692 to call to i386_target_description.
12693 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12694 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12695 Define I386_NUM_REGS.
12696 (i386_target_description): Add 'segments' parameter to enable
12697 segment base registers.
12698
12699 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12700
12701 PR/24325
12702 * source-cache.c: #undef open and close, to avoid unresolved
12703 externals during linking.
12704
12705 2019-03-12 Tom Tromey <tromey@adacore.com>
12706
12707 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12708 const. Add initializers.
12709 (_initialize_remote): Don't initialize ptid globals.
12710
12711 2019-03-12 Pedro Alves <palves@redhat.com>
12712
12713 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12714
12715 2019-03-12 Pedro Alves <palves@redhat.com>
12716
12717 * cp-name-parser.y (main): Remove unused 'len' variable.
12718
12719 2019-03-12 Tom Tromey <tromey@adacore.com>
12720
12721 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12722 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12723
12724 2019-03-12 Tom Tromey <tromey@adacore.com>
12725
12726 * linux-nat.c (iterate_over_lwps): Update.
12727 (stop_callback): Remove parameter.
12728 (stop_wait_callback, detach_callback, resume_set_callback)
12729 (select_singlestep_lwp_callback, set_ignore_sigint)
12730 (status_callback, resumed_callback, resume_clear_callback)
12731 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12732 data parameter.
12733 (linux_nat_target::detach, linux_nat_target::resume)
12734 (linux_stop_and_wait_all_lwps, select_event_lwp)
12735 (linux_nat_filter_event, linux_nat_wait_1)
12736 (linux_nat_target::kill, linux_nat_target::stop)
12737 (linux_nat_target::stop): Update.
12738 (linux_nat_resume_callback): Change type.
12739 (resume_stopped_resumed_lwps, count_events_callback)
12740 (select_event_lwp_callback): Likewise.
12741 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12742 * arm-linux-nat.c (struct update_registers_data): Remove.
12743 (update_registers_callback): Change type.
12744 (arm_linux_insert_hw_breakpoint1): Update.
12745 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12746 parameter.
12747 (x86_linux_dr_set_addr): Update.
12748 (x86_linux_dr_set_control): Update.
12749 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12750 (iterate_over_lwps): Use gdb::function_view.
12751 * nat/aarch64-linux-hw-point.c (struct
12752 aarch64_dr_update_callback_param): Remove.
12753 (debug_reg_change_callback): Change type.
12754 (aarch64_notify_debug_reg_change): Update.
12755 * s390-linux-nat.c (s390_refresh_per_info): Update.
12756
12757 2019-03-11 Tom Tromey <tromey@adacore.com>
12758
12759 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12760 redundant assignment to "this_cu".
12761
12762 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12765
12766 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12767
12768 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12769 from...
12770 (rank_one_type): ... this.
12771
12772 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12773
12774 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12775 from...
12776 (rank_one_type): ... this.
12777
12778 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12779
12780 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12781 from...
12782 (rank_one_type): ... this.
12783
12784 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12785
12786 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12787 from...
12788 (rank_one_type): ... this.
12789
12790 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12791
12792 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12793 from...
12794 (rank_one_type): ... this.
12795
12796 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12797
12798 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12799 from...
12800 (rank_one_type): ... this.
12801
12802 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12803
12804 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12805 from...
12806 (rank_one_type): ... this.
12807
12808 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12809
12810 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12811 from...
12812 (rank_one_type): ... this.
12813
12814 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12815
12816 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12817 from...
12818 (rank_one_type): ... this.
12819
12820 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12821
12822 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12823 from...
12824 (rank_one_type): ... this.
12825
12826 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12827
12828 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12829 from...
12830 (rank_one_type): ... this.
12831
12832 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12833
12834 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12835 from...
12836 (rank_one_type): ... this.
12837
12838 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12839
12840 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12841 inferior-events' shows the example events.
12842
12843 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12844
12845 Support styling on native MS-Windows console
12846
12847 PR/24315
12848 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12849 on MS-Windows if $TERM is not defined.
12850
12851 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12852
12853 * posix-hdep.c (gdb_console_fputs):
12854 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12855 functions.
12856 * ui-file.h (gdb_console_fputs): Add prototype.
12857
12858 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12859 back to fputs only if the former returns zero.
12860
12861 2019-03-07 Tom Tromey <tom@tromey.com>
12862
12863 * symmisc.c (print_symbol_bcache_statistics): Update.
12864 (print_objfile_statistics): Update.
12865 * symfile.c (allocate_symtab): Update.
12866 * stabsread.c: Don't include bcache.h.
12867 * psymtab.h (struct psymbol_bcache): Don't declare.
12868 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12869 (psymbol_bcache_init, psymbol_bcache_free)
12870 (psymbol_bcache_get_bcache): Don't declare.
12871 * psymtab.c (struct psymbol_bcache): Remove.
12872 (psymtab_storage::psymtab_storage): Update.
12873 (psymtab_storage::~psymtab_storage): Update.
12874 (psymbol_bcache_init, psymbol_bcache_free)
12875 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12876 (add_psymbol_to_bcache): Update.
12877 (allocate_psymtab): Update.
12878 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12879 macro_cache>: No longer pointers.
12880 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12881 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12882 * macrotab.c (macro_bcache): Update.
12883 * macroexp.c: Don't include bcache.h.
12884 * gdbtypes.c (check_types_worklist): Update.
12885 (types_deeply_equal): Remove TRY/CATCH. Update.
12886 * elfread.c (elf_symtab_read): Update.
12887 * dwarf2read.c: Don't include bcache.h.
12888 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12889 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12890 (print_bcache_statistics, bcache_memory_used): Don't declare.
12891 (struct bcache): Move from bcache.c. Add constructor, destructor,
12892 methods. Rename all data members.
12893 * bcache.c (struct bcache): Move to bcache.h.
12894 (bcache::expand_hash_table): Rename from expand_hash_table.
12895 (bcache): Remove.
12896 (bcache::insert): Rename from bcache_full.
12897 (bcache::compare): Rename from bcache_compare.
12898 (bcache_xmalloc): Remove.
12899 (bcache::~bcache): Rename from bcache_xfree.
12900 (bcache::print_statistics): Rename from print_bcache_statistics.
12901 (bcache::memory_used): Rename from bcache_memory_used.
12902
12903 2019-03-07 Pedro Alves <palves@redhat.com>
12904
12905 * infrun.c (normal_stop): Also check for
12906 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12907
12908 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12909
12910 * f-lang.c (value_from_host_double): Moved to...
12911 * value.c (value_from_host_double): ...here.
12912 * value.h (value_from_host_double): Declare.
12913 * guile/scm-math.c (vlscm_convert_typed_number): Use
12914 value_from_host_double.
12915 (vlscm_convert_number): Likewise.
12916 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12917 * python/py-value.c (convert_value_from_python): Likewise.
12918
12919 2019-03-06 Tom Tromey <tom@tromey.com>
12920
12921 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12922
12923 2019-03-06 Tom Tromey <tom@tromey.com>
12924
12925 * utils.h (free_current_contents): Don't declare.
12926 * utils.c (free_current_contents): Remove.
12927
12928 2019-03-06 Tom Tromey <tom@tromey.com>
12929
12930 * top.c (quit_force): Update.
12931 * main.c (captured_command_loop): Update.
12932 * common/new-op.c (operator new): Update.
12933 * common/common-exceptions.c (struct catcher)
12934 <save_cleanup_chain>: Remove member.
12935 (exceptions_state_mc_init): Update.
12936 (exception_try_scope_entry): Return nullptr.
12937 (exception_try_scope_exit, exception_rethrow)
12938 (throw_exception_sjlj, throw_exception_cxx): Update.
12939 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12940 (all_cleanups, do_cleanups, discard_cleanups)
12941 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12942 (restore_cleanups, restore_final_cleanups): Don't declare.
12943 (do_final_cleanups): Remove parameter.
12944 * common/cleanups.c (cleanup_chain, make_cleanup)
12945 (make_cleanup_dtor, all_cleanups, do_cleanups)
12946 (discard_my_cleanups, discard_cleanups)
12947 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12948 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12949 (null_cleanup): Remove.
12950 (do_final_cleanups): Remove parameter.
12951
12952 2019-03-06 Tom Tromey <tom@tromey.com>
12953
12954 * remote.c (remote_target::remote_parse_stop_reply): Use
12955 unique_xmalloc_ptr.
12956
12957 2019-03-06 Tom Tromey <tom@tromey.com>
12958
12959 * stabsread.c (struct stabs_field_info): Rename from field_info.
12960 <list, fnlist>: Add initializers.
12961 <obstack>: New member.
12962 (read_member_functions, read_struct_fields, read_baseclasses):
12963 Allocate on obstack. Don't use cleanups.
12964 (read_one_struct_field, read_member_functions, read_struct_fields)
12965 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12966 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12967 (read_struct_type): Update.
12968
12969 2019-03-06 Tom Tromey <tom@tromey.com>
12970
12971 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12972 * common/filestuff.h (make_cleanup_close): Don't declare.
12973 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12974 Remove.
12975
12976 2019-03-06 Tom Tromey <tom@tromey.com>
12977
12978 * solib-aix.c: Use make_scope_exit.
12979
12980 2019-03-06 Tom Tromey <tom@tromey.com>
12981
12982 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12983 Use make_scope_exit.
12984
12985 2019-03-06 Tom Tromey <tom@tromey.com>
12986
12987 * solib-svr4.c (disable_probes_interface): Remove parameter.
12988 (svr4_handle_solib_event): Use make_scope_exit.
12989
12990 2019-03-06 Tom Tromey <tom@tromey.com>
12991
12992 * remote.c (struct stop_reply_deleter): Remove.
12993 (stop_reply_up): Update.
12994 (struct stop_reply): Derive from notif_event. Don't typedef.
12995 <regcache>: Now a std::vector.
12996 (stop_reply_xfree): Remove.
12997 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12998 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12999 (remote_target::discard_pending_stop_replies): Use delete.
13000 (remote_target::remote_parse_stop_reply): Update.
13001 (remote_target::process_stop_reply): Update.
13002 * remote-notif.h (struct notif_event): Add virtual destructor.
13003 Remove "dtr" member.
13004 (struct notif_client) <alloc_event>: Return a unique_ptr.
13005 (notif_event_xfree): Don't declare.
13006 (notif_event_up): New typedef.
13007 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13008 (notif_event_xfree, do_notif_event_xfree): Remove.
13009 (remote_notif_state_xfree): Update.
13010
13011 2019-03-06 Tom Tromey <tom@tromey.com>
13012
13013 * infrun.c (displaced_step_clear_cleanup): Now a
13014 forward_scope_exit type.
13015 (displaced_step_prepare_throw): Update.
13016 (displaced_step_fixup): Update.
13017
13018 2019-03-06 Tom Tromey <tom@tromey.com>
13019
13020 * inferior.h (class inferior): Update comment.
13021 * gdbthread.h (class thread_info): Update comment.
13022
13023 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13024 Tom Tromey <tom@tromey.com>
13025
13026 * stabsread.h (struct stab_section_list): Remove.
13027 (coffstab_build_psymtabs): Update.
13028 * dbxread.c (symbuf_sections): Now a std::vector.
13029 (sect_idx): New global.
13030 (fill_symbuf): Update.
13031 (coffstab_build_psymtabs): Change type of stabsects parameter.
13032 Update.
13033 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13034 std::vector.
13035 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13036 (coff_locate_sections): Update.
13037 (coff_symfile_read): Remove cleanups. Update.
13038 (init_stringtab): Add storage parameter.
13039 (free_stringtab, free_stringtab_cleanup): Remove.
13040 (init_lineno): Add storage parameter.
13041 (free_linetab, free_linetab_cleanup): Remove.
13042
13043 2019-03-06 Pedro Alves <palves@redhat.com>
13044
13045 * linux-fork.c (fork_info::clobber_regs): Delete.
13046 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13047 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13048 comment. Adjust.
13049 (scoped_switch_fork_info::scoped_switch_fork_info)
13050 (checkpoint_command, linux_fork_context): Adjust
13051 fork_save_infrun_state calls.
13052
13053 2019-03-06 Pedro Alves <palves@redhat.com>
13054
13055 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13056 (inf_has_multiple_threads): Return 'bool' and rewrite using
13057 inferior_info::threads().
13058
13059 2019-03-06 Pedro Alves <palves@redhat.com>
13060
13061 * linux-fork.c: Include <list>.
13062 (fork_list): Now a std::list instance.
13063 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13064 (forks_exist_p, find_last_fork): Adjust.
13065 (new_fork): Delete.
13066 (one_fork_p): New.
13067 (add_fork): Adjust.
13068 (free_fork): Delete, folded into fork_info::~fork_info().
13069 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13070 Adjust.
13071 (init_fork_list): Delete.
13072 (linux_fork_killall, linux_fork_mourn_inferior)
13073 (linux_fork_detach, info_checkpoints_command): Adjust.
13074 (_initialize_linux_fork): No longer call init_fork_list.
13075
13076 2019-03-06 Pedro Alves <palves@redhat.com>
13077
13078 * linux-fork.c (new_fork): New, split out of ...
13079 (add_fork): ... this. Return void. Move "first fork" special
13080 case from here, to ...
13081 (checkpoint_command): ... here.
13082 * linux-linux.h (add_fork): Return void.
13083
13084 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13085
13086 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13087
13088 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13089 Chris January <chris.january@arm.com>
13090 David Lecomber <david.lecomber@arm.com>
13091
13092 * f-exp.y: New token, UNOP_INTRINSIC.
13093 (exp): New pattern using UNOP_INTRINSIC token.
13094 (f77_keywords): Add 'abs' keyword.
13095 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13096 (value_from_host_double): New function.
13097 (evaluate_subexp_f): Support UNOP_ABS.
13098
13099 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13100
13101 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13102 types.
13103
13104 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13105
13106 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13107 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13108 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13109
13110 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13111
13112 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13113
13114 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13115 Chris January <chris.january@arm.com>
13116
13117 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13118 * f-exp.y: Define 'KIND' token.
13119 (exp): New pattern for KIND expressions.
13120 (ptype): Handle types with a kind extension.
13121 (direct_abs_decl): Extend to spot kind extensions.
13122 (f77_keywords): Add 'kind' to the list.
13123 (push_kind_type): New function.
13124 (convert_to_kind_type): New function.
13125 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13126 * parse.c (operator_length_standard): Likewise.
13127 * parser-defs.h (enum type_pieces): Add tp_kind.
13128 * std-operator.def: Add UNOP_KIND.
13129
13130 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13131
13132 * f-exp.y (f_parse): Set yydebug.
13133
13134 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13135
13136 * f-lang.c (evaluate_subexp_f): New function.
13137 (exp_descriptor_f): New global.
13138 (f_language_defn): Use exp_descriptor_f instead of
13139 exp_descriptor_standard.
13140
13141 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13142
13143 * f-exp.y (struct token): Add comments.
13144 (dot_ops): Remove uppercase versions and the end marker.
13145 (f77_keywords): Likewise.
13146 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13147 entries in the dot_ops array are case insensitive, and use
13148 strncasecmp to compare strings. Also some whitespace cleanup in
13149 this area. Similar for the f77_keywords array, except entries in
13150 this list might be case sensitive.
13151
13152 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13153
13154 * f-exp.y (struct f77_boolean_val): Add comments.
13155 (boolean_values): Remove uppercase versions, and end marker.
13156 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13157 and use strncasecmp to achieve case insensitivity. Additionally,
13158 perform whitespace cleanup around this code.
13159
13160 2019-03-06 Tom Tromey <tromey@adacore.com>
13161
13162 * remote-sim.c (gdbsim_target_open): Use result of
13163 gdb_argv::release.
13164
13165 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13166 Dirk Schubert <dirk.schubert@arm.com>
13167 Chris January <chris.january@arm.com>
13168
13169 * eval.c (evaluate_subexp_standard): Call Fortran argument
13170 wrapping logic.
13171 * f-lang.c (struct value): A value which can be passed into a
13172 Fortran function call.
13173 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13174 where appropriate.
13175 (struct type): Value ready for a Fortran function call.
13176 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13177 is needed.
13178 * f-lang.h (fortran_argument_convert): Declaration.
13179 (fortran_preserve_arg_pointer): Declaration.
13180 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13181
13182 2019-03-05 Tom Tromey <tromey@adacore.com>
13183
13184 * python/py-prettyprint.c (print_string_repr): Remove #if.
13185 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13186
13187 2019-03-05 Tom Tromey <tromey@adacore.com>
13188
13189 * target.c (the_dummy_target): Move later. Change type to
13190 "dummy_target".
13191 (initialize_targets): Don't initialize the_dummy_target.
13192
13193 2019-03-05 Tom Tromey <tromey@adacore.com>
13194
13195 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13196 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13197
13198 2019-03-05 Tom Tromey <tromey@adacore.com>
13199
13200 * windows-nat.c (windows_nat_target::attach)
13201 (windows_nat_target::detach): Don't call gdb_flush.
13202 * valprint.c (generic_val_print, val_print, val_print_string):
13203 Don't call gdb_flush.
13204 * utils.c (defaulted_query): Don't call gdb_flush.
13205 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13206 * target.c (target_announce_detach): Don't call gdb_flush.
13207 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13208 * remote.c (extended_remote_target::attach): Don't call
13209 gdb_flush.
13210 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13211 * printcmd.c (do_examine): Don't call gdb_flush.
13212 (info_display_command): Don't call gdb_flush.
13213 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13214 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13215 * memattr.c (info_mem_command): Don't call gdb_flush.
13216 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13217 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13218 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13219 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13220 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13221 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13222 (gnu_nat_target::detach): Don't call gdb_flush.
13223 * f-valprint.c (f_val_print): Don't call gdb_flush.
13224 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13225 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13226 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13227 gdb_flush.
13228 * c-valprint.c (c_val_print): Don't call gdb_flush.
13229 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13230
13231 2019-03-05 Tom Tromey <tromey@adacore.com>
13232
13233 * varobj.c (update_dynamic_varobj_children): Update.
13234 (install_default_visualizer): Use reset, not release.
13235 * value.c (set_internalvar): Update.
13236 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13237 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13238 ATTRIBUTE_UNUSED_RESULT.
13239
13240 2019-03-05 Tom Tromey <tromey@adacore.com>
13241
13242 * remote.c (class scoped_remote_fd) <release>: Add
13243 ATTRIBUTE_UNUSED_RESULT.
13244
13245 2019-03-05 Tom Tromey <tromey@adacore.com>
13246
13247 * macroexp.c (struct macro_buffer) <release>: Add
13248 ATTRIBUTE_UNUSED_RESULT.
13249
13250 2019-03-05 Tom Tromey <tromey@adacore.com>
13251
13252 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13253 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13254 ATTRIBUTE_UNUSED_RESULT.
13255
13256 2019-03-05 Tom Tromey <tromey@adacore.com>
13257
13258 * common/scoped_fd.h (class scoped_fd) <release>: Add
13259 ATTRIBUTE_UNUSED_RESULT.
13260
13261 2019-03-05 Tom Tromey <tromey@adacore.com>
13262
13263 * parser-defs.h (struct parser_state) <release>: Add
13264 ATTRIBUTE_UNUSED_RESULT.
13265
13266 2019-03-05 Tom Tromey <tromey@adacore.com>
13267
13268 * utils.h (class gdb_argv) <release>: Add
13269 ATTRIBUTE_UNUSED_RESULT.
13270 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13271
13272 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13273
13274 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13275 for-loop range, to avoid compiler warnings.
13276
13277 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13278 avoid compiler warnings about unused variables.
13279
13280 * NEWS: Mention end of support for native debugging on MS-Windows
13281 before XP.
13282
13283 PR gdb/24292
13284 * common/netstuff.c:
13285 * gdbserver/gdbreplay.c
13286 * gdbserver/remote-utils.c:
13287 * ser-tcp.c:
13288 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13289 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13290 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13291 'getaddrinfo' and 'freeaddrinfo' were not available before
13292 Windows XP, and mingw.org's MinGW headers by default define
13293 _WIN32_WINNT to 0x500.
13294
13295 2019-03-01 Gary Benson <gbenson@redhat.com>
13296
13297 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13298
13299 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13300 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13301
13302 PR gdb/8527
13303 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13304 set_sigint_trap, clear_sigint_trap.
13305
13306 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13307
13308 * target.c (target_detach): Clear the regcache and the
13309 frame cache.
13310
13311 2019-02-27 Pedro Alves <palves@redhat.com>
13312
13313 * utils.c (set_screen_size): When we cap the height/width sizes,
13314 tweak the corresponding command variable to show "unlimited":
13315
13316 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13317 Pedro Alves <palves@redhat.com>
13318
13319 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13320 before calling rl_set_screen_size.
13321
13322 2019-02-27 Tom Tromey <tromey@adacore.com>
13323
13324 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13325 define.
13326 * python/py-value.c: Remove Python 2.4 workaround.
13327 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13328 workaround.
13329 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13330 Python 2.4 workaround.
13331 * python/python-internal.h: Remove Python 2.4 comment.
13332 (Py_ssize_t): Don't define.
13333 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13334 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13335 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13336 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13337 * python/python.c (do_start_initialization): Remove Python 2.4
13338 workaround.
13339 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13340 (print_children): Remove Python 2.4 workaround.
13341 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13342 workaround.
13343 (CHARBUFFERPROC_NAME): Remove.
13344 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13345 Python 2.4 workaround.
13346
13347 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13348
13349 * NEWS: Note minimum Python version.
13350
13351 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13352
13353 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13354 code from these functions. Remove corresponding ifdefs. Use
13355 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13356 Remove gotos and target of gotos.
13357 (infpy_search_memory): Likewise.
13358
13359 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13360
13361 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13362 (hppa_gdbarch_init): Don't register deleted functions with
13363 gdbarch.
13364
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13368 (h8300_unwind_sp): Delete.
13369 (h8300_dummy_id): Delete.
13370 (h8300_gdbarch_init): Don't register deleted functions with
13371 gdbarch.
13372
13373 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13374
13375 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13376 (ft32_unwind_pc): Delete.
13377 (ft32_unwind_sp): Delete.
13378 (ft32_gdbarch_init): Don't register deleted functions with
13379 gdbarch.
13380
13381 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13382
13383 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13384 (frv_unwind_pc): Delete.
13385 (frv_unwind_sp): Delete.
13386 (frv_gdbarch_init): Don't register deleted functions with
13387 gdbarch.
13388
13389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13390
13391 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13392 (riscv_unwind_pc): Delete.
13393 (riscv_unwind_sp): Delete.
13394 (riscv_gdbarch_init): Don't register deleted functions with
13395 gdbarch.
13396
13397 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13398
13399 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13400 (csky_unwind_pc): Delete.
13401 (csky_unwind_sp): Delete.
13402 (csky_gdbarch_init): Don't register deleted functions with
13403 gdbarch.
13404
13405 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13406
13407 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13408 (cris_unwind_pc): Delete.
13409 (cris_unwind_sp): Delete.
13410 (cris_gdbarch_init): Don't register deleted functions with
13411 gdbarch.
13412
13413 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13414
13415 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13416 (bfin_unwind_pc): Delete.
13417 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13418
13419 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13420
13421 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13422 (arm_unwind_pc): Delete.
13423 (arm_unwind_sp): Delete.
13424 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13425
13426 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13427
13428 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13429 (arc_unwind_pc): Delete.
13430 (arc_unwind_sp): Delete.
13431 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13432
13433 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13434
13435 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13436 (alpha_unwind_pc): Delete.
13437 (alpha_gdbarch_init): Don't register deleted functions with
13438 gdbarch.
13439
13440 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13441
13442 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13443 (aarch64_unwind_pc): Delete.
13444 (aarch64_unwind_sp): Delete.
13445 (aarch64_gdbarch_init): Don't register deleted functions with
13446 gdbarch.
13447
13448 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13449
13450 * gdbtypes.c (type_align): Don't consider static members when
13451 computing structure alignment.
13452
13453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13454
13455 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13456 return 0 for other types.
13457 * arch-utils.c (default_type_align): Always return 0.
13458 * gdbarch.h: Regenerate.
13459 * gdbarch.sh (type_align): Extend comment.
13460 * gdbtypes.c (type_align): Add additional comments, always call
13461 gdbarch_type_align before applying the default rules.
13462 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13463 generic code will then apply a suitable default.
13464 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13465 types, return 0 for other types.
13466
13467 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13468
13469 * NEWS: Create a new section for the next release branch.
13470 Rename the section of the current branch, now that it has
13471 been cut.
13472
13473 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13474
13475 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13476 * version.in: Bump version to 8.3.50.DATE-git.
13477
13478 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13479
13480 * aix-thread.c (ptid_cmp): Remove unused variable.
13481 (get_signaled_thread): Likewise.
13482 (store_regs_user_thread): Likewise.
13483 (store_regs_kernel_thread): Likewise.
13484 (fetch_regs_kernel_thread): Remove shadowed variable.
13485
13486 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13487
13488 * features/riscv/32bit-cpu.xml: Add register numbers.
13489 * features/riscv/32bit-fpu.c: Regenerate.
13490 * features/riscv/32bit-fpu.xml: Add register numbers.
13491 * features/riscv/64bit-cpu.xml: Add register numbers.
13492 * features/riscv/64bit-fpu.c: Regenerate.
13493 * features/riscv/64bit-fpu.xml: Add register numbers.
13494
13495 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13496
13497 * NEWS: Mention two argument form of gdb.Value constructor.
13498 * python/py-value.c (convert_buffer_and_type_to_value): New
13499 function.
13500 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13501 Add support for handling an optional second argument. Call
13502 convert_buffer_and_type_to_value as appropriate.
13503 * python/python-internal.h (Py_buffer_deleter): New struct.
13504 (Py_buffer_up): New typedef.
13505
13506 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13507
13508 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13509 instead of releasing ownership.
13510
13511 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13512
13513 * dwarf2read.c (open_and_init_dwp_file): Call
13514 elf_numsections instead of bfd_count_sections to initialize
13515 dwp_file->num_sections.
13516
13517 2019-02-25 Tom Tromey <tromey@adacore.com>
13518
13519 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13520
13521 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13522
13523 * gcore.in: Add '--readnever' option when invoking GDB.
13524
13525 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13526
13527 * MAINTAINERS: Update my email address.
13528
13529 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13530
13531 * build-id.c (build_id_to_debug_bfd_1): New function.
13532 (build_id_to_debug_bfd): Look for separate debug file in
13533 sysroot.
13534
13535 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13536
13537 * gdbarch.sh: Update the copyright year range that is placed into
13538 generated files.
13539
13540 2019-02-22 Keith Seitz <keiths@redhat.com>
13541
13542 PR symtab/23853
13543 * linespec.c (create_sals_line_offset): Search for the default
13544 symtab's filename instead of its fullname.
13545
13546 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13547
13548 * NEWS: Update style defaults.
13549
13550 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13551
13552 * main.c (captured_main_1): Disable styling in batch mode.
13553
13554 2019-02-20 Tom Tromey <tom@tromey.com>
13555
13556 * symtab.c (symtab_symbol_info): Fix typos.
13557
13558 2019-02-20 Tom Tromey <tromey@adacore.com>
13559
13560 * findcmd.c (_initialize_mem_search): Use upper case for
13561 metasyntactic variables.
13562
13563 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13564
13565 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13566 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13567
13568 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13569
13570 * top.h (source_file_name): Change to std::string.
13571 * top.c (source_file_name): Likewise.
13572 (command_line_input): Adjust.
13573 * cli/cli-script.c (script_from_file): Adjust.
13574
13575 2019-02-19 Tom Tromey <tromey@adacore.com>
13576
13577 * ravenscar-thread.c
13578 (ravenscar_thread_target::update_thread_list): Don't call
13579 ada_build_task_list.
13580 * ada-lang.h (ada_build_task_list): Don't declare.
13581 * ada-tasks.c (struct ada_tasks_inferior_data)
13582 <task_list_valid_p>: Now bool.
13583 (read_known_tasks, ada_task_list_changed)
13584 (ada_tasks_invalidate_inferior_data): Update.
13585 (read_known_tasks_array): Return bool.
13586 (read_known_tasks_list): Likewise.
13587 (read_known_tasks): Return void.
13588 (ada_build_task_list): Now static.
13589
13590 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13591
13592 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13593 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13594
13595 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13596
13597 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13598 variant for ada_tasks_pspace_data_handle and
13599 ada_tasks_inferior_data_handle.
13600 (ada_tasks_pspace_data_cleanup): New function.
13601 (ada_tasks_inferior_data_cleanup): New function.
13602
13603 2019-02-17 Tom Tromey <tom@tromey.com>
13604
13605 * macrotab.h (macro_source_fullname): Return a std::string.
13606 * macrotab.c (macro_include, check_for_redefinition)
13607 (macro_undef, macro_lookup_definition, foreach_macro)
13608 (foreach_macro_in_scope): Update.
13609 (macro_source_fullname): Return a std::string.
13610 * macrocmd.c (show_pp_source_pos): Update.
13611
13612 2019-02-17 Tom Tromey <tom@tromey.com>
13613
13614 * macrocmd.c (show_pp_source_pos): Style the file names.
13615
13616 2019-02-17 Tom Tromey <tom@tromey.com>
13617
13618 PR tui/24197:
13619 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13620
13621 2019-02-17 Tom Tromey <tom@tromey.com>
13622
13623 * ada-lang.c (user_select_syms): Use filtered printing.
13624 * utils.c (wrap_style): New global.
13625 (desired_style): Remove.
13626 (emit_style_escape): Add stream parameter.
13627 (set_output_style, reset_terminal_style, prompt_for_continue):
13628 Update.
13629 (flush_wrap_buffer): Only flush gdb_stdout.
13630 (wrap_here): Set wrap_style.
13631 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13632 treat escape sequences as a character. Change when wrap buffer is
13633 flushed.
13634 (fputs_styled): Do not set the output style when the default is
13635 requested.
13636 * ui-style.h (struct ui_file_style) <is_default>: New method.
13637 * source.c (print_source_lines_base): Emit escape sequences in one
13638 piece.
13639
13640 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13641
13642 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13643 integers and enumeration types.
13644
13645 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13646
13647 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13648 instead of lookup_symbol_in_language
13649 (do_exact_match): New function.
13650 (ada_get_symbol_name_matcher): Return do_exact_match when
13651 doing a verbatim match.
13652
13653 2019-02-15 Tom Tromey <tromey@adacore.com>
13654
13655 * ravenscar-thread.c (ravenscar_thread_target::resume)
13656 (ravenscar_thread_target::wait): Special case wildcard requests.
13657
13658 2019-02-15 Tom Tromey <tromey@adacore.com>
13659
13660 * ravenscar-thread.c (base_ptid): Remove.
13661 (struct ravenscar_thread_target) <close>: New method.
13662 <m_base_ptid>: New member.
13663 <update_inferior_ptid, active_task, task_is_currently_active,
13664 runtime_initialized>: Declare methods.
13665 <ravenscar_thread_target>: Add constructor.
13666 (ravenscar_thread_target::task_is_currently_active)
13667 (ravenscar_thread_target::update_inferior_ptid)
13668 (ravenscar_runtime_initialized): Rename. Now methods.
13669 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13670 (ravenscar_thread_target::update_thread_list): Update.
13671 (ravenscar_thread_target::active_task): Now method.
13672 (ravenscar_thread_target::store_registers)
13673 (ravenscar_thread_target::prepare_to_store)
13674 (ravenscar_thread_target::prepare_to_store)
13675 (ravenscar_thread_target::mourn_inferior): Update.
13676 (ravenscar_inferior_created): Use "new" to create target.
13677 (ravenscar_thread_target::get_ada_task_ptid): Update.
13678 (_initialize_ravenscar): Don't initialize base_ptid.
13679 (ravenscar_ops): Remove global.
13680
13681 2019-02-15 Tom Tromey <tromey@adacore.com>
13682
13683 * target.h (push_target): Declare new overload.
13684 * target.c (push_target): New overload, taking an rvalue reference.
13685 * remote.c (remote_target::open_1): Use push_target overload.
13686 * corelow.c (core_target_open): Use push_target overload.
13687
13688 2019-02-15 Tom Tromey <tromey@adacore.com>
13689
13690 * ravenscar-thread.c (is_ravenscar_task)
13691 (ravenscar_task_is_currently_active): Return bool.
13692 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13693 (_initialize_ravenscar): Remove "(void)".
13694 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13695 Return bool.
13696
13697 2019-02-15 Tom Tromey <tromey@adacore.com>
13698
13699 * ravenscar-thread.c (ravenscar_runtime_initializer)
13700 (has_ravenscar_runtime, get_running_thread_id)
13701 (ravenscar_thread_target::resume): Fix indentation.
13702
13703 2019-02-15 Tom Tromey <tromey@adacore.com>
13704
13705 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13706 from ravenscar_arch_ops.
13707 (sparc_ravenscar_ops::fetch_registers)
13708 (sparc_ravenscar_ops::store_registers): Now methods.
13709 (sparc_ravenscar_prepare_to_store): Remove.
13710 (sparc_ravenscar_ops): Redefine.
13711 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13712 methods and destructor. Remove members.
13713 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13714 (ravenscar_thread_target::store_registers)
13715 (ravenscar_thread_target::prepare_to_store): Update.
13716 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13717 Remove.
13718 (struct ppc_ravenscar_powerpc_ops): Derive from
13719 ravenscar_arch_ops.
13720 (ppc_ravenscar_powerpc_ops::fetch_registers)
13721 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13722 (ppc_ravenscar_powerpc_ops): Redefine.
13723 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13724 (ppc_ravenscar_e500_ops::fetch_registers)
13725 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13726 (ppc_ravenscar_e500_ops): Redefine.
13727 * aarch64-ravenscar-thread.c
13728 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13729 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13730 (aarch64_ravenscar_fetch_registers)
13731 (aarch64_ravenscar_store_registers): Now methods.
13732 (aarch64_ravenscar_ops): Redefine.
13733
13734 2019-02-15 Tom Tromey <tromey@adacore.com>
13735
13736 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13737 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13738 (ravenscar_thread_target::stopped_by_watchpoint)
13739 (ravenscar_thread_target::stopped_data_address)
13740 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13741
13742 2019-02-15 Tom Tromey <tromey@adacore.com>
13743
13744 * ravenscar-thread.c: Fix some typos.
13745
13746 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13747 Tom Tromey <tromey@adacore.com>
13748
13749 * ada-lang.c (ada_exception_sal): Change addr_string to a
13750 std::string.
13751 (create_ada_exception_catchpoint): Update.
13752
13753 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13754 Tom Tromey <tromey@adacore.com>
13755
13756 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13757 (bp_location_ops): Remove.
13758 (base_breakpoint_allocate_location): Update.
13759 (free_bp_location): Update.
13760 * ada-lang.c (class ada_catchpoint_location)
13761 <ada_catchpoint_location>: Remove ops parameter.
13762 (ada_catchpoint_location_dtor): Remove.
13763 (ada_catchpoint_location_ops): Remove.
13764 (allocate_location_exception): Update.
13765 * breakpoint.h (struct bp_location_ops): Remove.
13766 (class bp_location) <bp_location>: Remove bp_location_ops
13767 parameter.
13768 <~bp_location>: Add destructor.
13769 <ops>: Remove.
13770
13771 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13772 Pedro Alves <palves@redhat.com>
13773
13774 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13775 'PATH_MAX'.
13776
13777 2019-02-14 David Michael <fedora.dm0@gmail.com>
13778 Samuel Thibault <samuel.thibault@gnu.org>
13779 Thomas Schwinge <thomas@codesourcery.com>
13780
13781 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13782 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13783
13784 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13785
13786 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13787 (check_empty): Use "const char *".
13788
13789 * gnu-nat.c (gnu_nat_target::detach): Instead of
13790 'detach_inferior (pid)' call
13791 'detach_inferior (find_inferior_pid (pid))'.
13792
13793 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13794 'nat/fork-inferior.o'.
13795 * gnu-nat.c: #include "nat/fork-inferior.h".
13796
13797 * gnu-nat.c (gnu_nat_target::detach): Instead of
13798 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13799 * gnu-nat.h: #include "inf-child.h".
13800 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13801 'i386_gnu_nat_target::fetch_registers'.
13802 (gnu_store_registers): Rename/move to
13803 'i386_gnu_nat_target::store_registers'.
13804
13805 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13806 * gnu-nat.h (mach_thread_info): New function.
13807 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13808
13809 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13810
13811 2019-02-14 Frederic Konrad <konrad@adacore.com>
13812
13813 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13814
13815 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13816
13817 * windows-nat.c (windows_add_thread): Add new parameter
13818 "main_thread_p" with default value set to false. Update
13819 function documentation as well as all callers.
13820 (windows_delete_thread): Likewise.
13821 (fake_create_process): Update call to windows_add_thread.
13822 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13823 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13824 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13825 call to windows_delete_thread.
13826
13827 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13828
13829 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13830
13831 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13832
13833 * symfile.c (find_separate_debug_file): Use canonical path of
13834 sysroot with child_path instead of gdb_sysroot if it is valid.
13835
13836 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13837
13838 * symfile.c (find_separate_debug_file): Use child_path to
13839 determine if an object file is under a sysroot.
13840
13841 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13842
13843 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13844 unittests/child-path-selftests.c.
13845 * common/pathstuff.c (child_path): New function.
13846 * common/pathstuff.h (child_path): New prototype.
13847 * unittests/child-path-selftests.c: New file.
13848
13849 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13850
13851 * symfile.c (find_separate_debug_file): Look for separate debug
13852 files in debug directories under the sysroot.
13853
13854 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13855
13856 * symtab.h (struct minimal_symbol data_p): New const method.
13857 (struct minimal_symbol text_p): Likewise.
13858 * symtab.c (output_source_filename): Use file name style
13859 to print file name.
13860 (print_symbol_info): Likewise.
13861 (print_msymbol_info): Use address style to print addresses.
13862 Use function name style to print executable text symbols.
13863 (expand_symtab_containing_pc): Use data_p.
13864 (find_pc_sect_compunit_symtab): Likewise.
13865
13866 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13867
13868 * breakpoint.c (describe_other_breakpoints): Use address style
13869 to print addresses.
13870 (say_where): Likewise.
13871
13872 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13873
13874 * ada-typeprint.c (print_func_type): Print function name
13875 style to print function name.
13876 * c-typeprint.c (c_print_type_1): Likewise.
13877
13878 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13879
13880 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13881 for execve.
13882
13883 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13884
13885 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13886 type_stack.
13887
13888 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13889
13890 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13891 TYPE_CODE_REF types.
13892
13893 2019-02-08 Jim Wilson <jimw@sifive.com>
13894
13895 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13896 (riscv_linux_fregset): New.
13897 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13898
13899 2019-02-07 Tom Tromey <tom@tromey.com>
13900
13901 * thread.c (thread_cancel_execution_command): Update.
13902 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13903 methods.
13904 (struct thread_fsm_ops): Remove.
13905 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13906 (thread_fsm_should_stop, thread_fsm_return_value)
13907 (thread_fsm_set_finished, thread_fsm_finished_p)
13908 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13909 Don't declare.
13910 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13911 * infrun.c (clear_proceed_status_thread)
13912 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13913 (print_stop_event): Update.
13914 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13915 Add constructor.
13916 (step_command_fsm_ops): Remove.
13917 (new_step_command_fsm): Remove.
13918 (step_1): Update.
13919 (step_command_fsm::should_stop): Rename from
13920 step_command_fsm_should_stop.
13921 (step_command_fsm::clean_up): Rename from
13922 step_command_fsm_clean_up.
13923 (step_command_fsm::do_async_reply_reason): Rename from
13924 step_command_fsm_async_reply_reason.
13925 (struct until_next_fsm): Inherit from thread_fsm. Add
13926 constructor.
13927 (until_next_fsm_ops): Remove.
13928 (new_until_next_fsm): Remove.
13929 (until_next_fsm::should_stop): Rename from
13930 until_next_fsm_should_stop.
13931 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13932 (until_next_fsm::do_async_reply_reason): Rename from
13933 until_next_fsm_async_reply_reason.
13934 (struct finish_command_fsm): Inherit from thread_fsm. Add
13935 constructor. Change type of breakpoint.
13936 (finish_command_fsm_ops): Remove.
13937 (new_finish_command_fsm): Remove.
13938 (finish_command_fsm::should_stop): Rename from
13939 finish_command_fsm_should_stop.
13940 (finish_command_fsm::clean_up): Rename from
13941 finish_command_fsm_clean_up.
13942 (finish_command_fsm::return_value): Rename from
13943 finish_command_fsm_return_value.
13944 (finish_command_fsm::do_async_reply_reason): Rename from
13945 finish_command_fsm_async_reply_reason.
13946 (finish_command): Update.
13947 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13948 Add constructor.
13949 (call_thread_fsm_ops): Remove.
13950 (call_thread_fsm::call_thread_fsm): Rename from
13951 new_call_thread_fsm.
13952 (call_thread_fsm::should_stop): Rename from
13953 call_thread_fsm_should_stop.
13954 (call_thread_fsm::should_notify_stop): Rename from
13955 call_thread_fsm_should_notify_stop.
13956 (run_inferior_call, call_function_by_hand_dummy): Update.
13957 * cli/cli-interp.c (should_print_stop_to_console): Update.
13958 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13959 Add constructor. Change type of location_breakpoint,
13960 caller_breakpoint.
13961 (until_break_fsm_ops): Remove.
13962 (new_until_break_fsm): Remove.
13963 (until_break_fsm::should_stop): Rename from
13964 until_break_fsm_should_stop.
13965 (until_break_fsm::clean_up): Rename from
13966 until_break_fsm_clean_up.
13967 (until_break_fsm::do_async_reply_reason): Rename from
13968 until_break_fsm_async_reply_reason.
13969 (until_break_command): Update.
13970 * thread-fsm.c: Remove.
13971 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13972
13973 2019-02-07 Tom Tromey <tom@tromey.com>
13974
13975 * yy-remap.h: Add include guard.
13976 * xtensa-tdep.h: Add include guard.
13977 * xcoffread.h: Rename include guard.
13978 * varobj-iter.h: Add include guard.
13979 * tui/tui.h: Rename include guard.
13980 * tui/tui-winsource.h: Rename include guard.
13981 * tui/tui-wingeneral.h: Rename include guard.
13982 * tui/tui-windata.h: Rename include guard.
13983 * tui/tui-win.h: Rename include guard.
13984 * tui/tui-stack.h: Rename include guard.
13985 * tui/tui-source.h: Rename include guard.
13986 * tui/tui-regs.h: Rename include guard.
13987 * tui/tui-out.h: Rename include guard.
13988 * tui/tui-layout.h: Rename include guard.
13989 * tui/tui-io.h: Rename include guard.
13990 * tui/tui-hooks.h: Rename include guard.
13991 * tui/tui-file.h: Rename include guard.
13992 * tui/tui-disasm.h: Rename include guard.
13993 * tui/tui-data.h: Rename include guard.
13994 * tui/tui-command.h: Rename include guard.
13995 * tic6x-tdep.h: Add include guard.
13996 * target/waitstatus.h: Rename include guard.
13997 * target/wait.h: Rename include guard.
13998 * target/target.h: Rename include guard.
13999 * target/resume.h: Rename include guard.
14000 * target-float.h: Rename include guard.
14001 * stabsread.h: Add include guard.
14002 * rs6000-tdep.h: Add include guard.
14003 * riscv-fbsd-tdep.h: Add include guard.
14004 * regformats/regdef.h: Rename include guard.
14005 * record.h: Rename include guard.
14006 * python/python.h: Rename include guard.
14007 * python/python-internal.h: Rename include guard.
14008 * python/py-stopevent.h: Rename include guard.
14009 * python/py-ref.h: Rename include guard.
14010 * python/py-record.h: Rename include guard.
14011 * python/py-record-full.h: Rename include guard.
14012 * python/py-record-btrace.h: Rename include guard.
14013 * python/py-instruction.h: Rename include guard.
14014 * python/py-events.h: Rename include guard.
14015 * python/py-event.h: Rename include guard.
14016 * procfs.h: Add include guard.
14017 * proc-utils.h: Add include guard.
14018 * p-lang.h: Add include guard.
14019 * or1k-tdep.h: Rename include guard.
14020 * observable.h: Rename include guard.
14021 * nto-tdep.h: Rename include guard.
14022 * nat/x86-linux.h: Rename include guard.
14023 * nat/x86-linux-dregs.h: Rename include guard.
14024 * nat/x86-gcc-cpuid.h: Add include guard.
14025 * nat/x86-dregs.h: Rename include guard.
14026 * nat/x86-cpuid.h: Rename include guard.
14027 * nat/ppc-linux.h: Rename include guard.
14028 * nat/mips-linux-watch.h: Rename include guard.
14029 * nat/linux-waitpid.h: Rename include guard.
14030 * nat/linux-ptrace.h: Rename include guard.
14031 * nat/linux-procfs.h: Rename include guard.
14032 * nat/linux-osdata.h: Rename include guard.
14033 * nat/linux-nat.h: Rename include guard.
14034 * nat/linux-namespaces.h: Rename include guard.
14035 * nat/linux-btrace.h: Rename include guard.
14036 * nat/glibc_thread_db.h: Rename include guard.
14037 * nat/gdb_thread_db.h: Rename include guard.
14038 * nat/gdb_ptrace.h: Rename include guard.
14039 * nat/fork-inferior.h: Rename include guard.
14040 * nat/amd64-linux-siginfo.h: Rename include guard.
14041 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14042 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14043 * nat/aarch64-linux.h: Rename include guard.
14044 * nat/aarch64-linux-hw-point.h: Rename include guard.
14045 * mn10300-tdep.h: Add include guard.
14046 * mips-linux-tdep.h: Add include guard.
14047 * mi/mi-parse.h: Rename include guard.
14048 * mi/mi-out.h: Rename include guard.
14049 * mi/mi-main.h: Rename include guard.
14050 * mi/mi-interp.h: Rename include guard.
14051 * mi/mi-getopt.h: Rename include guard.
14052 * mi/mi-console.h: Rename include guard.
14053 * mi/mi-common.h: Rename include guard.
14054 * mi/mi-cmds.h: Rename include guard.
14055 * mi/mi-cmd-break.h: Rename include guard.
14056 * m2-lang.h: Add include guard.
14057 * location.h: Rename include guard.
14058 * linux-record.h: Rename include guard.
14059 * linux-nat.h: Add include guard.
14060 * linux-fork.h: Add include guard.
14061 * i386-darwin-tdep.h: Rename include guard.
14062 * hppa-linux-offsets.h: Add include guard.
14063 * guile/guile.h: Rename include guard.
14064 * guile/guile-internal.h: Rename include guard.
14065 * gnu-nat.h: Rename include guard.
14066 * gdb-stabs.h: Rename include guard.
14067 * frv-tdep.h: Add include guard.
14068 * f-lang.h: Add include guard.
14069 * event-loop.h: Add include guard.
14070 * darwin-nat.h: Rename include guard.
14071 * cp-abi.h: Rename include guard.
14072 * config/sparc/nm-sol2.h: Rename include guard.
14073 * config/nm-nto.h: Rename include guard.
14074 * config/nm-linux.h: Add include guard.
14075 * config/i386/nm-i386gnu.h: Rename include guard.
14076 * config/djgpp/nl_types.h: Rename include guard.
14077 * config/djgpp/langinfo.h: Rename include guard.
14078 * compile/gcc-cp-plugin.h: Add include guard.
14079 * compile/gcc-c-plugin.h: Add include guard.
14080 * compile/compile.h: Rename include guard.
14081 * compile/compile-object-run.h: Rename include guard.
14082 * compile/compile-object-load.h: Rename include guard.
14083 * compile/compile-internal.h: Rename include guard.
14084 * compile/compile-cplus.h: Rename include guard.
14085 * compile/compile-c.h: Rename include guard.
14086 * common/xml-utils.h: Rename include guard.
14087 * common/x86-xstate.h: Rename include guard.
14088 * common/version.h: Rename include guard.
14089 * common/vec.h: Rename include guard.
14090 * common/tdesc.h: Rename include guard.
14091 * common/selftest.h: Rename include guard.
14092 * common/scoped_restore.h: Rename include guard.
14093 * common/scoped_mmap.h: Rename include guard.
14094 * common/scoped_fd.h: Rename include guard.
14095 * common/safe-iterator.h: Rename include guard.
14096 * common/run-time-clock.h: Rename include guard.
14097 * common/refcounted-object.h: Rename include guard.
14098 * common/queue.h: Rename include guard.
14099 * common/ptid.h: Rename include guard.
14100 * common/print-utils.h: Rename include guard.
14101 * common/preprocessor.h: Rename include guard.
14102 * common/pathstuff.h: Rename include guard.
14103 * common/observable.h: Rename include guard.
14104 * common/netstuff.h: Rename include guard.
14105 * common/job-control.h: Rename include guard.
14106 * common/host-defs.h: Rename include guard.
14107 * common/gdb_wait.h: Rename include guard.
14108 * common/gdb_vecs.h: Rename include guard.
14109 * common/gdb_unlinker.h: Rename include guard.
14110 * common/gdb_unique_ptr.h: Rename include guard.
14111 * common/gdb_tilde_expand.h: Rename include guard.
14112 * common/gdb_sys_time.h: Rename include guard.
14113 * common/gdb_string_view.h: Rename include guard.
14114 * common/gdb_splay_tree.h: Rename include guard.
14115 * common/gdb_setjmp.h: Rename include guard.
14116 * common/gdb_ref_ptr.h: Rename include guard.
14117 * common/gdb_optional.h: Rename include guard.
14118 * common/gdb_locale.h: Rename include guard.
14119 * common/gdb_assert.h: Rename include guard.
14120 * common/filtered-iterator.h: Rename include guard.
14121 * common/filestuff.h: Rename include guard.
14122 * common/fileio.h: Rename include guard.
14123 * common/environ.h: Rename include guard.
14124 * common/common-utils.h: Rename include guard.
14125 * common/common-types.h: Rename include guard.
14126 * common/common-regcache.h: Rename include guard.
14127 * common/common-inferior.h: Rename include guard.
14128 * common/common-gdbthread.h: Rename include guard.
14129 * common/common-exceptions.h: Rename include guard.
14130 * common/common-defs.h: Rename include guard.
14131 * common/common-debug.h: Rename include guard.
14132 * common/cleanups.h: Rename include guard.
14133 * common/buffer.h: Rename include guard.
14134 * common/btrace-common.h: Rename include guard.
14135 * common/break-common.h: Rename include guard.
14136 * cli/cli-utils.h: Rename include guard.
14137 * cli/cli-style.h: Rename include guard.
14138 * cli/cli-setshow.h: Rename include guard.
14139 * cli/cli-script.h: Rename include guard.
14140 * cli/cli-interp.h: Rename include guard.
14141 * cli/cli-decode.h: Rename include guard.
14142 * cli/cli-cmds.h: Rename include guard.
14143 * charset-list.h: Add include guard.
14144 * buildsym-legacy.h: Rename include guard.
14145 * bfin-tdep.h: Add include guard.
14146 * ax.h: Rename include guard.
14147 * arm-linux-tdep.h: Add include guard.
14148 * arm-fbsd-tdep.h: Add include guard.
14149 * arch/xtensa.h: Rename include guard.
14150 * arch/tic6x.h: Add include guard.
14151 * arch/i386.h: Add include guard.
14152 * arch/arm.h: Rename include guard.
14153 * arch/arm-linux.h: Rename include guard.
14154 * arch/arm-get-next-pcs.h: Rename include guard.
14155 * arch/amd64.h: Add include guard.
14156 * arch/aarch64-insn.h: Rename include guard.
14157 * arch-utils.h: Rename include guard.
14158 * annotate.h: Add include guard.
14159 * amd64-darwin-tdep.h: Rename include guard.
14160 * aarch64-linux-tdep.h: Add include guard.
14161 * aarch64-fbsd-tdep.h: Add include guard.
14162 * aarch32-linux-nat.h: Add include guard.
14163
14164 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14165
14166 * macrotab.c (macro_define_internal): New function that
14167 factorizes macro_define_object_internal and macro_define_function
14168 code.
14169 (macro_define_object_internal): Use macro_define_internal.
14170 (macro_define_function): Likewise.
14171
14172 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14173
14174 * macrocmd.c (extract_identifier): Return
14175 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14176 callers.
14177
14178 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14179
14180 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14181
14182 2019-02-05 Tom Tromey <tom@tromey.com>
14183
14184 * target.c (target_stack::unpush): Move assertion earlier.
14185
14186 2019-01-30 Tom Tromey <tom@tromey.com>
14187
14188 PR python/23615:
14189 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14190 (gdbpy_parse_and_eval): Likewise.
14191 * python/python-internal.h (gdbpy_allow_threads): New class.
14192
14193 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14194
14195 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14196 (aarch64_fbsd_fpregmap): Move earlier.
14197 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14198 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14199 instead of individual calls to trad_frame_set_reg_addr.
14200 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14201 earlier.
14202 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14203 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14204 instead of individual calls to trad_frame_set_reg_addr.
14205
14206 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14207
14208 * CONTRIBUTE: Replace contribution list with wiki link.
14209
14210 2019-01-25 Tom Tromey <tom@tromey.com>
14211
14212 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14213
14214 2019-01-25 Tom Tromey <tom@tromey.com>
14215
14216 * xtensa-linux-nat.c: Fix common/ includes.
14217 * xml-support.h: Fix common/ includes.
14218 * xml-support.c: Fix common/ includes.
14219 * x86-linux-nat.c: Fix common/ includes.
14220 * windows-nat.c: Fix common/ includes.
14221 * varobj.h: Fix common/ includes.
14222 * varobj.c: Fix common/ includes.
14223 * value.c: Fix common/ includes.
14224 * valops.c: Fix common/ includes.
14225 * utils.c: Fix common/ includes.
14226 * unittests/xml-utils-selftests.c: Fix common/ includes.
14227 * unittests/utils-selftests.c: Fix common/ includes.
14228 * unittests/unpack-selftests.c: Fix common/ includes.
14229 * unittests/tracepoint-selftests.c: Fix common/ includes.
14230 * unittests/style-selftests.c: Fix common/ includes.
14231 * unittests/string_view-selftests.c: Fix common/ includes.
14232 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14233 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14234 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14235 * unittests/rsp-low-selftests.c: Fix common/ includes.
14236 * unittests/parse-connection-spec-selftests.c: Fix common/
14237 includes.
14238 * unittests/optional-selftests.c: Fix common/ includes.
14239 * unittests/offset-type-selftests.c: Fix common/ includes.
14240 * unittests/observable-selftests.c: Fix common/ includes.
14241 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14242 * unittests/memrange-selftests.c: Fix common/ includes.
14243 * unittests/memory-map-selftests.c: Fix common/ includes.
14244 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14245 * unittests/function-view-selftests.c: Fix common/ includes.
14246 * unittests/environ-selftests.c: Fix common/ includes.
14247 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14248 * unittests/common-utils-selftests.c: Fix common/ includes.
14249 * unittests/cli-utils-selftests.c: Fix common/ includes.
14250 * unittests/array-view-selftests.c: Fix common/ includes.
14251 * ui-file.c: Fix common/ includes.
14252 * tui/tui-io.c: Fix common/ includes.
14253 * tracepoint.h: Fix common/ includes.
14254 * tracepoint.c: Fix common/ includes.
14255 * tracefile-tfile.c: Fix common/ includes.
14256 * top.h: Fix common/ includes.
14257 * top.c: Fix common/ includes.
14258 * thread.c: Fix common/ includes.
14259 * target/waitstatus.h: Fix common/ includes.
14260 * target/waitstatus.c: Fix common/ includes.
14261 * target.h: Fix common/ includes.
14262 * target.c: Fix common/ includes.
14263 * target-memory.c: Fix common/ includes.
14264 * target-descriptions.c: Fix common/ includes.
14265 * symtab.h: Fix common/ includes.
14266 * symfile.c: Fix common/ includes.
14267 * stap-probe.c: Fix common/ includes.
14268 * spu-linux-nat.c: Fix common/ includes.
14269 * sparc-nat.c: Fix common/ includes.
14270 * source.c: Fix common/ includes.
14271 * solib.c: Fix common/ includes.
14272 * solib-target.c: Fix common/ includes.
14273 * ser-unix.c: Fix common/ includes.
14274 * ser-tcp.c: Fix common/ includes.
14275 * ser-pipe.c: Fix common/ includes.
14276 * ser-base.c: Fix common/ includes.
14277 * selftest-arch.c: Fix common/ includes.
14278 * s12z-tdep.c: Fix common/ includes.
14279 * rust-exp.y: Fix common/ includes.
14280 * rs6000-aix-tdep.c: Fix common/ includes.
14281 * riscv-tdep.c: Fix common/ includes.
14282 * remote.c: Fix common/ includes.
14283 * remote-notif.h: Fix common/ includes.
14284 * remote-fileio.h: Fix common/ includes.
14285 * remote-fileio.c: Fix common/ includes.
14286 * regcache.h: Fix common/ includes.
14287 * regcache.c: Fix common/ includes.
14288 * record-btrace.c: Fix common/ includes.
14289 * python/python.c: Fix common/ includes.
14290 * python/py-type.c: Fix common/ includes.
14291 * python/py-inferior.c: Fix common/ includes.
14292 * progspace.h: Fix common/ includes.
14293 * producer.c: Fix common/ includes.
14294 * procfs.c: Fix common/ includes.
14295 * proc-api.c: Fix common/ includes.
14296 * printcmd.c: Fix common/ includes.
14297 * ppc-linux-nat.c: Fix common/ includes.
14298 * parser-defs.h: Fix common/ includes.
14299 * osdata.c: Fix common/ includes.
14300 * obsd-nat.c: Fix common/ includes.
14301 * nat/x86-linux.c: Fix common/ includes.
14302 * nat/x86-linux-dregs.c: Fix common/ includes.
14303 * nat/x86-dregs.h: Fix common/ includes.
14304 * nat/x86-dregs.c: Fix common/ includes.
14305 * nat/ppc-linux.c: Fix common/ includes.
14306 * nat/mips-linux-watch.h: Fix common/ includes.
14307 * nat/mips-linux-watch.c: Fix common/ includes.
14308 * nat/linux-waitpid.c: Fix common/ includes.
14309 * nat/linux-ptrace.h: Fix common/ includes.
14310 * nat/linux-ptrace.c: Fix common/ includes.
14311 * nat/linux-procfs.c: Fix common/ includes.
14312 * nat/linux-personality.c: Fix common/ includes.
14313 * nat/linux-osdata.c: Fix common/ includes.
14314 * nat/linux-namespaces.c: Fix common/ includes.
14315 * nat/linux-btrace.h: Fix common/ includes.
14316 * nat/linux-btrace.c: Fix common/ includes.
14317 * nat/fork-inferior.c: Fix common/ includes.
14318 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14319 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14320 * nat/aarch64-linux.c: Fix common/ includes.
14321 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14322 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14323 * namespace.h: Fix common/ includes.
14324 * mips-linux-tdep.c: Fix common/ includes.
14325 * minsyms.c: Fix common/ includes.
14326 * mi/mi-parse.h: Fix common/ includes.
14327 * mi/mi-main.c: Fix common/ includes.
14328 * mi/mi-cmd-env.c: Fix common/ includes.
14329 * memrange.h: Fix common/ includes.
14330 * memattr.c: Fix common/ includes.
14331 * maint.h: Fix common/ includes.
14332 * maint.c: Fix common/ includes.
14333 * main.c: Fix common/ includes.
14334 * machoread.c: Fix common/ includes.
14335 * location.c: Fix common/ includes.
14336 * linux-thread-db.c: Fix common/ includes.
14337 * linux-nat.c: Fix common/ includes.
14338 * linux-fork.c: Fix common/ includes.
14339 * inline-frame.c: Fix common/ includes.
14340 * infrun.c: Fix common/ includes.
14341 * inflow.c: Fix common/ includes.
14342 * inferior.h: Fix common/ includes.
14343 * inferior.c: Fix common/ includes.
14344 * infcmd.c: Fix common/ includes.
14345 * inf-ptrace.c: Fix common/ includes.
14346 * inf-child.c: Fix common/ includes.
14347 * ia64-linux-nat.c: Fix common/ includes.
14348 * i387-tdep.c: Fix common/ includes.
14349 * i386-tdep.c: Fix common/ includes.
14350 * i386-linux-tdep.c: Fix common/ includes.
14351 * i386-linux-nat.c: Fix common/ includes.
14352 * i386-go32-tdep.c: Fix common/ includes.
14353 * i386-fbsd-tdep.c: Fix common/ includes.
14354 * i386-fbsd-nat.c: Fix common/ includes.
14355 * guile/scm-type.c: Fix common/ includes.
14356 * guile/guile.c: Fix common/ includes.
14357 * go32-nat.c: Fix common/ includes.
14358 * gnu-nat.c: Fix common/ includes.
14359 * gdbthread.h: Fix common/ includes.
14360 * gdbarch-selftests.c: Fix common/ includes.
14361 * gdb_usleep.c: Fix common/ includes.
14362 * gdb_select.h: Fix common/ includes.
14363 * gdb_bfd.c: Fix common/ includes.
14364 * gcore.c: Fix common/ includes.
14365 * fork-child.c: Fix common/ includes.
14366 * findvar.c: Fix common/ includes.
14367 * fbsd-nat.c: Fix common/ includes.
14368 * event-top.c: Fix common/ includes.
14369 * event-loop.c: Fix common/ includes.
14370 * dwarf2read.c: Fix common/ includes.
14371 * dwarf2loc.c: Fix common/ includes.
14372 * dwarf2-frame.c: Fix common/ includes.
14373 * dwarf-index-cache.c: Fix common/ includes.
14374 * dtrace-probe.c: Fix common/ includes.
14375 * disasm-selftests.c: Fix common/ includes.
14376 * defs.h: Fix common/ includes.
14377 * csky-tdep.c: Fix common/ includes.
14378 * cp-valprint.c: Fix common/ includes.
14379 * cp-support.h: Fix common/ includes.
14380 * cp-support.c: Fix common/ includes.
14381 * corelow.c: Fix common/ includes.
14382 * completer.h: Fix common/ includes.
14383 * completer.c: Fix common/ includes.
14384 * compile/compile.c: Fix common/ includes.
14385 * compile/compile-loc2c.c: Fix common/ includes.
14386 * compile/compile-cplus-types.c: Fix common/ includes.
14387 * compile/compile-cplus-symbols.c: Fix common/ includes.
14388 * command.h: Fix common/ includes.
14389 * cli/cli-dump.c: Fix common/ includes.
14390 * cli/cli-cmds.c: Fix common/ includes.
14391 * charset.c: Fix common/ includes.
14392 * build-id.c: Fix common/ includes.
14393 * btrace.h: Fix common/ includes.
14394 * btrace.c: Fix common/ includes.
14395 * breakpoint.h: Fix common/ includes.
14396 * breakpoint.c: Fix common/ includes.
14397 * ax.h:
14398 (enum agent_op): Fix common/ includes.
14399 * ax-general.c (struct aop_map): Fix common/ includes.
14400 * ax-gdb.c: Fix common/ includes.
14401 * auxv.c: Fix common/ includes.
14402 * auto-load.c: Fix common/ includes.
14403 * arm-tdep.c: Fix common/ includes.
14404 * arch/riscv.c: Fix common/ includes.
14405 * arch/ppc-linux-common.c: Fix common/ includes.
14406 * arch/i386.c: Fix common/ includes.
14407 * arch/arm.c: Fix common/ includes.
14408 * arch/arm-linux.c: Fix common/ includes.
14409 * arch/arm-get-next-pcs.c: Fix common/ includes.
14410 * arch/amd64.c: Fix common/ includes.
14411 * arch/aarch64.c: Fix common/ includes.
14412 * arch/aarch64-insn.c: Fix common/ includes.
14413 * arch-utils.c: Fix common/ includes.
14414 * amd64-windows-tdep.c: Fix common/ includes.
14415 * amd64-tdep.c: Fix common/ includes.
14416 * amd64-sol2-tdep.c: Fix common/ includes.
14417 * amd64-obsd-tdep.c: Fix common/ includes.
14418 * amd64-nbsd-tdep.c: Fix common/ includes.
14419 * amd64-linux-tdep.c: Fix common/ includes.
14420 * amd64-linux-nat.c: Fix common/ includes.
14421 * amd64-fbsd-tdep.c: Fix common/ includes.
14422 * amd64-fbsd-nat.c: Fix common/ includes.
14423 * amd64-dicos-tdep.c: Fix common/ includes.
14424 * amd64-darwin-tdep.c: Fix common/ includes.
14425 * agent.c: Fix common/ includes.
14426 * ada-lang.h: Fix common/ includes.
14427 * ada-lang.c: Fix common/ includes.
14428 * aarch64-tdep.c: Fix common/ includes.
14429
14430 2019-01-25 Tom Tromey <tom@tromey.com>
14431
14432 * common/create-version.sh: Use common/version.h.
14433
14434 2019-01-24 Pedro Alves <palves@redhat.com>
14435
14436 * infrun.c (signal_stop, signal_print, signal_program)
14437 (signal_catch, signal_pass): Now arrays instead of pointers.
14438 (update_signals_program_target, do_target_resume)
14439 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14440 * linux-nat.c (linux_nat_target::pass_signals)
14441 (linux_nat_target::create_inferior, linux_nat_target::attach):
14442 Adjust.
14443 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14444 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14445 * procfs.c (procfs_target::pass_signals): Adjust.
14446 * record-full.c (record_full_target::resume): Adjust.
14447 * remote.c (remote_target::pass_signals)
14448 (remote_target::program_signals): Adjust.
14449 * target-debug.h (target_debug_print_signals): Now takes a
14450 gdb::array_view as parameter. Adjust.
14451 * target.h (target_ops) <pass_signals, program_signals>: Replace
14452 pointer and length parameters with gdb::array_view.
14453 (target_pass_signals, target_program_signals): Likewise.
14454 * target-delegates.c: Regenerate.
14455
14456 2019-01-24 Pedro Alves <palves@redhat.com>
14457
14458 * common/forward-scope-exit.h
14459 (forward_scope_exit::forward_scope_exit): Pass arguments to
14460 m_bind_function directly, instead of creating a std::bind and
14461 copying that.
14462
14463 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14464
14465 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14466 for static members.
14467 (pass_in_v_vfp_candidate): Likewise.
14468
14469 2019-01-23 Tom Tromey <tom@tromey.com>
14470 Pedro Alves <palves@redhat.com>
14471
14472 * regcache.c (class regcache_invalidator): Remove.
14473 (regcache::raw_write): Use make_scope_exit.
14474
14475 2019-01-23 Tom Tromey <tom@tromey.com>
14476
14477 * ui-out.h (class ui_out_emit_type): Update comment.
14478
14479 2019-01-23 Tom Tromey <tom@tromey.com>
14480
14481 * infrun.c (fetch_inferior_event): Update comment.
14482
14483 2019-01-23 Tom Tromey <tom@tromey.com>
14484 Pedro Alves <palves@redhat.com>
14485
14486 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14487 parameter.
14488 (fetch_inferior_event): Use SCOPE_EXIT.
14489
14490
14491 2019-01-23 Tom Tromey <tom@tromey.com>
14492 Pedro Alves <palves@redhat.com>
14493
14494 * infrun.c (disable_thread_events): Delete.
14495 (stop_all_threads): Use SCOPE_EXIT.
14496
14497 2019-01-23 Tom Tromey <tom@tromey.com>
14498 Pedro Alves <palves@redhat.com>
14499
14500 * symfile.c: Include forward-scope-exit.h.
14501 (clear_symtab_users_cleanup): Replace forward declaration with
14502 a FORWARD_SCOPE_EXIT.
14503 (syms_from_objfile_1): Use the forward_scope_exit and
14504 gdb::optional instead of cleanup_function.
14505 (reread_symbols): Use the forward_scope_exit instead of
14506 cleanup_function.
14507 (clear_symtab_users_cleanup): Remove function.
14508
14509 2019-01-23 Tom Tromey <tom@tromey.com>
14510 Pedro Alves <palves@redhat.com>
14511
14512 * linux-nat.c: Include scope-exit.h.
14513 (cleanup_target_stop): Remove.
14514 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14515 SCOPE_EXIT.
14516
14517 2019-01-23 Tom Tromey <tom@tromey.com>
14518 Pedro Alves <palves@redhat.com>
14519
14520 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14521 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14522
14523 2019-01-23 Tom Tromey <tom@tromey.com>
14524 Andrew Burgess <andrew.burgess@embecosm.com>
14525 Pedro Alves <palves@redhat.com>
14526
14527 * infrun.c (fetch_inferior_event): Use scope_exit.
14528 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14529 * top.c (execute_command): Use scope_exit.
14530 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14531 * utils.c (do_bpstat_clear_actions_cleanup)
14532 (make_bpstat_clear_actions_cleanup): Remove.
14533
14534 2019-01-23 Tom Tromey <tom@tromey.com>
14535 Pedro Alves <palves@redhat.com>
14536
14537 * infrun.c: Include "common/scope-exit.h"
14538 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14539 (wait_for_inferior): Use SCOPE_EXIT.
14540 (fetch_inferior_event): Use scope_exit.
14541
14542 2019-01-23 Tom Tromey <tom@tromey.com>
14543 Pedro Alves <palves@redhat.com>
14544
14545 * breakpoint.c (create_breakpoint): Remove cleanup.
14546
14547 2019-01-23 Tom Tromey <tom@tromey.com>
14548 Andrew Burgess <andrew.burgess@embecosm.com>
14549 Pedro Alves <palves@redhat.com>
14550
14551 2019-01-23 Pedro Alves <palves@redhat.com>
14552
14553 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14554
14555 2019-01-23 Pedro Alves <palves@redhat.com>
14556 Andrew Burgess <andrew.burgess@embecosm.com>
14557
14558 * gdbthread.h: Include "common/forward-scope-exit.h".
14559 (scoped_finish_thread_state): Redefine custom class in terms of
14560 forward_scope_exit.
14561
14562 2019-01-23 Pedro Alves <palves@redhat.com>
14563 Andrew Burgess <andrew.burgess@embecosm.com>
14564
14565 * common/forward-scope-exit.h: New file.
14566
14567 2019-01-23 Pedro Alves <palves@redhat.com>
14568 Andrew Burgess <andrew.burgess@embecosm.com>
14569 Tom Tromey <tom@tromey.com>
14570
14571 * common/scope-exit.h: New file.
14572
14573 2019-01-23 Pedro Alves <palves@redhat.com>
14574
14575 * common/preprocessor.h (ESC): Rename to ...
14576 (ESC_PARENS): ... this.
14577 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14578 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14579
14580 2019-01-23 Tom Tromey <tom@tromey.com>
14581
14582 * language.h (class scoped_switch_to_sym_language_if_auto):
14583 Initialize m_lang in both cases.
14584
14585 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14586
14587 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14588 with XCNEW.
14589
14590 2019-01-22 Tom Tromey <tom@tromey.com>
14591
14592 * corelow.c: Do not include sys/file.h.
14593
14594 2019-01-22 Tom Tromey <tom@tromey.com>
14595
14596 * tui/tui-wingeneral.h: Include gdb_curses.h.
14597
14598 2019-01-22 Tom Tromey <tom@tromey.com>
14599
14600 * source-cache.h (class source_cache) <get_source_lines,
14601 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14602
14603 2019-01-22 Tom Tromey <tom@tromey.com>
14604
14605 * remote-fileio.h (struct remote_target): Declare.
14606
14607 2019-01-22 Tom Tromey <tom@tromey.com>
14608
14609 * python/py-arch.c: Do not include py-ref.h.
14610 * python/py-bpevent.c: Do not include py-ref.h.
14611 * python/py-cmd.c: Do not include py-ref.h.
14612 * python/py-continueevent.c: Do not include py-ref.h.
14613 * python/py-event.h: Do not include py-ref.h.
14614 * python/py-evtregistry.c: Do not include py-ref.h.
14615 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14616 * python/py-frame.c: Do not include py-ref.h.
14617 * python/py-framefilter.c: Do not include py-ref.h.
14618 * python/py-function.c: Do not include py-ref.h.
14619 * python/py-infevents.c: Do not include py-ref.h.
14620 * python/py-linetable.c: Do not include py-ref.h.
14621 * python/py-objfile.c: Do not include py-ref.h.
14622 * python/py-param.c: Do not include py-ref.h.
14623 * python/py-prettyprint.c: Do not include py-ref.h.
14624 * python/py-progspace.c: Do not include py-ref.h.
14625 * python/py-symbol.c: Do not include py-ref.h.
14626 * python/py-symtab.c: Do not include py-ref.h.
14627 * python/py-type.c: Do not include py-ref.h.
14628 * python/py-unwind.c: Do not include py-ref.h.
14629 * python/py-utils.c: Do not include py-ref.h.
14630 * python/py-value.c: Do not include py-ref.h.
14631 * python/py-varobj.c: Do not include py-ref.h.
14632 * python/py-xmethods.c: Do not include py-ref.h.
14633 * python/python.c: Do not include py-ref.h.
14634 * varobj.c: Do not include py-ref.h.
14635
14636 2019-01-22 Tom Tromey <tom@tromey.com>
14637
14638 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14639 keyword for bcache.
14640
14641 2019-01-22 Tom Tromey <tom@tromey.com>
14642
14643 * compile/compile-cplus-types.c: Remove a comment by #include.
14644
14645 2019-01-22 Tom Tromey <tom@tromey.com>
14646
14647 * compile/gcc-c-plugin.h: Include compile-internal.h.
14648
14649 2019-01-22 Tom Tromey <tom@tromey.com>
14650
14651 * stabsread.c (EXTERN): Do not define.
14652 (symnum, next_symbol_text_func, processing_gcc_compilation)
14653 (within_function, global_sym_chain, global_stabs)
14654 (previous_stab_code, this_object_header_files)
14655 (n_this_object_header_files)
14656 (n_allocated_this_object_header_files): Define.
14657 * stabsread.h (EXTERN): Never define. Use "extern".
14658
14659 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14660
14661 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14662 history_value.
14663
14664 2019-01-21 Tom Tromey <tom@tromey.com>
14665
14666 * ui-out.c: Fix includes.
14667 * tui/tui-source.c: Fix includes.
14668 * target.c: Fix includes.
14669 * remote.c: Fix includes.
14670 * regcache.c: Fix includes.
14671 * python/py-block.c: Fix includes.
14672 * printcmd.c: Fix includes.
14673 * or1k-tdep.c: Fix includes.
14674 * mi/mi-main.c: Fix includes.
14675 * m32r-tdep.c: Fix includes.
14676 * csky-tdep.c: Fix includes.
14677 * compile/compile-cplus-types.c: Fix includes.
14678 * cli/cli-interp.c: Fix includes.
14679
14680 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14681
14682 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14683 for padding.
14684
14685 2019-01-16 Tom Tromey <tom@tromey.com>
14686
14687 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14688 earlier.
14689 (struct objfile) <msymbols_range>: Move from top level.
14690 <msymbols>: New method.
14691 (class objfile_msymbols): Remove.
14692 * symtab.c (default_collect_symbol_completion_matches_break_on):
14693 Update.
14694 * symmisc.c (dump_msymbols): Update.
14695 * stabsread.c (scan_file_globals): Update.
14696 * objc-lang.c (info_selectors_command, info_classes_command)
14697 (find_methods): Update.
14698 * minsyms.c (find_solib_trampoline_target): Update.
14699 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14700 * coffread.c (coff_symfile_read): Update.
14701 * ada-lang.c (ada_lookup_simple_minsym)
14702 (ada_collect_symbol_completion_matches): Update.
14703
14704 2019-01-16 Tom Tromey <tom@tromey.com>
14705
14706 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14707 type. Remove no-argument constructor.
14708 <iterator::operator++>: Simplify.
14709 <begin>: Update.
14710 <end>: Use minimal_symbol_count.
14711
14712 2019-01-16 Tom Tromey <tom@tromey.com>
14713
14714 * objfiles.h (struct objfile) <psymtabs>: New method.
14715 (class objfile_psymtabs): Remove.
14716 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14717 typedef.
14718 <range>: New method.
14719 (require_partial_symbols): Change return type.
14720 * psymtab.c (require_partial_symbols)
14721 (psym_expand_symtabs_matching): Update.
14722 * mdebugread.c (parse_partial_symbols): Update.
14723 * dbxread.c (dbx_end_psymtab): Update.
14724
14725 2019-01-15 Tom Tromey <tom@tromey.com>
14726
14727 * symtab.c (lookup_objfile_from_block)
14728 (lookup_symbol_in_objfile_symtabs)
14729 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14730 (find_line_symtab, info_sources_command)
14731 (default_collect_symbol_completion_matches_break_on)
14732 (make_source_files_completion_list): Update.
14733 * symmisc.c (print_objfile_statistics, dump_objfile)
14734 (maintenance_print_symbols, maintenance_info_symtabs)
14735 (maintenance_check_symtabs, maintenance_info_line_tables):
14736 Update.
14737 * source.c (select_source_symtab)
14738 (forget_cached_source_info_for_objfile): Update.
14739 * objfiles.h (class objfile_compunits): Remove.
14740 (struct objfile) <compunits_range>: New typedef.
14741 (compunits): New method.
14742 * objfiles.c (objfile_relocate1): Update.
14743 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14744 * maint.c (count_symtabs_and_blocks): Update.
14745 * linespec.c (iterate_over_all_matching_symtabs): Update.
14746 * cp-support.c (add_symbol_overload_list_qualified): Update.
14747 * coffread.c (coff_symtab_read): Update.
14748 * ada-lang.c (add_nonlocal_symbols)
14749 (ada_collect_symbol_completion_matches)
14750 (ada_add_global_exceptions): Update.
14751
14752 2019-01-15 Tom Tromey <tom@tromey.com>
14753
14754 * progspace.h (program_space) <objfiles_safe_range>: New
14755 typedef.
14756 <objfiles_safe>: New method.
14757 * objfiles.h (class all_objfiles_safe): Remove.
14758 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14759 * jit.c (jit_inferior_exit_hook): Update.
14760
14761 2019-01-17 Tom Tromey <tom@tromey.com>
14762
14763 * progspace.h (program_space) <objfiles_range>: New typedef.
14764 <objfiles>: New method.
14765 <objfiles_head>: Rename from objfiles.
14766 (object_files): Update.
14767 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14768 * guile/scm-pretty-print.c
14769 (ppscm_find_pretty_printer_from_objfiles): Update.
14770 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14771 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14772 Update.
14773 * python/py-progspace.c (pspy_get_objfiles): Update.
14774 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14775 Update.
14776 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14777 (objfpy_lookup_objfile_by_build_id): Update.
14778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14779 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14780 Update.
14781 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14782 (expand_symtab_containing_pc, lookup_objfile_from_block)
14783 (lookup_static_symbol, basic_lookup_transparent_type)
14784 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14785 (find_line_symtab, info_sources_command)
14786 (default_collect_symbol_completion_matches_break_on)
14787 (make_source_files_completion_list, find_main_name): Update.
14788 * symmisc.c (print_symbol_bcache_statistics)
14789 (print_objfile_statistics, maintenance_print_symbols)
14790 (maintenance_print_msymbols, maintenance_print_objfiles)
14791 (maintenance_info_symtabs, maintenance_check_symtabs)
14792 (maintenance_expand_symtabs, maintenance_info_line_tables):
14793 Update.
14794 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14795 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14796 (map_overlay_command, unmap_overlay_command)
14797 (simple_overlay_update, expand_symtabs_matching)
14798 (map_symbol_filenames): Update.
14799 * symfile-debug.c (set_debug_symfile): Update.
14800 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14801 Update.
14802 * source.c (select_source_symtab, forget_cached_source_info):
14803 Update.
14804 * solib.c (solib_read_symbols): Update.
14805 * solib-spu.c (append_ocl_sos): Update.
14806 * psymtab.c (maintenance_print_psymbols)
14807 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14808 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14809 * printcmd.c (info_symbol_command): Update.
14810 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14811 Update.
14812 * objfiles.h (class all_objfiles): Remove.
14813 * objfiles.c (have_partial_symbols, have_full_symbols)
14814 (have_minimal_symbols, qsort_cmp, update_section_map)
14815 (shared_objfile_contains_address_p)
14816 (default_iterate_over_objfiles_in_search_order): Update.
14817 * objc-lang.c (info_selectors_command, info_classes_command)
14818 (find_methods): Update.
14819 * minsyms.c (find_solib_trampoline_target): Update.
14820 * maint.c (maintenance_info_sections)
14821 (maintenance_translate_address, count_symtabs_and_blocks):
14822 Update.
14823 * main.c (captured_main_1): Update.
14824 * linux-thread-db.c (try_thread_db_load_from_pdir)
14825 (has_libpthread): Update.
14826 * linespec.c (iterate_over_all_matching_symtabs)
14827 (search_minsyms_for_name): Update.
14828 * jit.c (jit_find_objf_with_entry_addr): Update.
14829 * hppa-tdep.c (find_unwind_entry)
14830 (hppa_lookup_stub_minimal_symbol): Update.
14831 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14832 Update.
14833 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14834 (elf_gnu_ifunc_resolve_by_got): Update.
14835 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14836 * dwarf-index-write.c (save_gdb_index_command): Update.
14837 * cp-support.c (add_symbol_overload_list_qualified): Update.
14838 * breakpoint.c (create_overlay_event_breakpoint)
14839 (create_longjmp_master_breakpoint)
14840 (create_std_terminate_master_breakpoint)
14841 (create_exception_master_breakpoint): Update.
14842 * blockframe.c (find_pc_partial_function): Update.
14843 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14844 (ada_collect_symbol_completion_matches)
14845 (ada_add_global_exceptions): Update.
14846
14847 2019-01-17 Tom Tromey <tom@tromey.com>
14848
14849 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14850 declare VEC.
14851 (solib_target_parse_libraries): Change return type.
14852 (library_list_start_segment, library_list_start_section)
14853 (library_list_end_library, library_list_start_library); Update.
14854 (solib_target_free_library_list): Remove.
14855 (solib_target_parse_libraries): Remove cleanup. Change return
14856 type.
14857 (solib_target_current_sos): Update.
14858
14859 2019-01-17 Tom Tromey <tromey@bapiya>
14860
14861 * valprint.c: Replace "the the" with "the".
14862 * symtab.c: Replace "the the" with "the".
14863 * solib.c: Replace "the the" with "the".
14864 * solib-dsbt.c: Replace "the the" with "the".
14865 * linespec.c: Replace "the the" with "the".
14866 * dwarf2loc.h: Replace "the the" with "the".
14867 * amd64-windows-tdep.c: Replace "the the" with "the".
14868 * aarch64-tdep.c: Replace "the the" with "the".
14869
14870 2019-01-16 Keith Seitz <keiths@redhat.com>
14871
14872 PR gdb/23773
14873 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14874 <builder>: Rename to ..
14875 <m_builder>: ... this and make private.
14876 (dwarf2_cu::get_builder): New method. Change all users of
14877 `builder' to use this method.
14878 (dwarf2_start_symtab): Move to ...
14879 (dwarf2_cu::start_symtab): ... here. Update all callers
14880 (setup_type_unit_groups): Move to ...
14881 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14882 callers.
14883 (dwarf2_cu::reset_builder): New method.
14884 (process_full_compunit, process_full_type_unit): Use
14885 dwarf2_cu::reset_builder.
14886 (follow_die_offset): Record the ancestor CU if it is different
14887 from the followed DIE's CU.
14888 (follow_die_sig_1): Likewise.
14889
14890 2019-01-15 Tom Tromey <tom@tromey.com>
14891
14892 * remote.c (class remote_state) <buf>: Now a char_vector.
14893 <buf_size>: Remove.
14894 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14895 parameter.
14896 (remote_target::getpkt_or_notif_sane_1)
14897 (remote_target::getpkt_sane)
14898 (remote_target::getpkt_or_notif_sane): Likewise.
14899 (class remote_target) <putpkt>: New overload.
14900 (remote_target::read_frame): Change type of "buf_p". Remove
14901 sizeof_p parameter.
14902 (packet_ok): New overload.
14903 (packet_check_result): New overload.
14904 Update all uses.
14905
14906 2019-01-14 Tom Tromey <tom@tromey.com>
14907
14908 * remote-notif.c (handle_notification, remote_notif_ack)
14909 (remote_notif_parse): Make "buf" const.
14910 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14911 const.
14912 (remote_notif_parse, remote_notif_ack, handle_notification):
14913 Likewise.
14914 * remote.c (remote_notif_stop_parse): Make "buf" const.
14915 (remote_target::remote_parse_stop_reply): Make "buf" const.
14916 (remote_notif_stop_ack): Make "buf" const.
14917
14918 2019-01-14 Tom Tromey <tom@tromey.com>
14919
14920 * remote.c (remote_console_output): Make parameter const.
14921
14922 2019-01-14 Tom Tromey <tom@tromey.com>
14923
14924 * target-debug.h (target_debug_print_signals): Constify.
14925 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14926 * procfs.c (procfs_target::pass_signals): Update.
14927 * linux-nat.c (linux_nat_target::pass_signals): Update.
14928 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14929 * target-delegates.c: Rebuild.
14930 * remote.c (remote_target::program_signals): Update.
14931 (remote_target::pass_signals): Update.
14932 * target.c (target_pass_signals): Constify argument.
14933 (target_program_signals): Likewise.
14934 * target.h (struct target_ops) <pass_signals, program_signals>:
14935 Constify argument.
14936 (target_pass_signals, target_program_signals): Constify argument.
14937
14938 2019-01-14 Tom Tromey <tom@tromey.com>
14939
14940 PR tui/28819:
14941 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14942
14943 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14944
14945 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14946 field.
14947 * rs6000-tdep.c: Include reggroups.h.
14948 (IS_V_ALIAS_PSEUDOREG): Define.
14949 (rs6000_register_name): Return names for the "vX" aliases.
14950 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14951 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14952 aliases. Call default_register_reggroup_p for all other
14953 pseudo-registers.
14954 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14955 New functions.
14956 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14957 Handle "vX" aliases.
14958 (v_alias_pseudo_register_collect): New function.
14959 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14960 (rs6000_gdbarch_init): Initialize "vX" aliases as
14961 pseudo-registers. Restore registration of
14962 rs6000_pseudo_register_reggroup_p with
14963 set_tdesc_pseudo_register_reggroup_p.
14964
14965 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14966
14967 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14968 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14969 set_gdbarch_num_pseudo_regs.
14970
14971 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14972
14973 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14974 Remove arg prefixname, add do_set and do_show.
14975 Add member functions set_list and show_list.
14976 * cli/cli-style.c (class cli_style_option): Update accordingly.
14977 (style_set_list): Move to file scope.
14978 (style_show_list): Likewise.
14979 (set_style): Call help_list.
14980 (show_style): Call cmd_show_list.
14981 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14982 Update to use the new macro.
14983
14984 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14985
14986 * ada-lang.c (_initialize_ada_language): Expand the help text
14987 for the "catch exception" command.
14988
14989 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14990
14991 * symtab.c (matching_obj_sections): Initialize obj,
14992 declare it closer to its usage.
14993
14994 2019-01-10 Tom Tromey <tom@tromey.com>
14995
14996 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14997 (basic_inf_threads_range): Remove.
14998 (inf_threads_range, inf_non_exited_threads_range)
14999 (safe_inf_threads_range): Use next_adapter.
15000
15001 2019-01-10 Keith Seitz <keiths@redhat.com>
15002
15003 PR gdb/23712
15004 PR symtab/23010
15005 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15006 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15007
15008 2019-01-10 Keith Seitz <keiths@redhat.com>
15009
15010 PR gdb/23712
15011 PR symtab/23010
15012 * dictionary.c (pending_to_vector): Remove.
15013 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15014 Remove _1 suffix, replacing functions of the same name. Update
15015 all callers.
15016 (dict_create_hashed, dict_create_hashed_expandable)
15017 (dict_create_linear, dict_create_linear_expandable, dict_free)
15018 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15019 Make functions static.
15020
15021 2019-01-10 Keith Seitz <keiths@redhat.com>
15022
15023 PR gdb/23712
15024 PR symtab/23010
15025 * dictionary.h (struct dictionary): Replace declaration with
15026 multidictionary.
15027 (dict_create_hashed, dict_create_hashed_expandable)
15028 (dict_create_linear, dict_create_linear_expandable)
15029 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15030 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15031 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15032 taking multidictionary argument.
15033 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15034 * block.h (struct block) <dict>: Change to multidictionary
15035 and rename `multidict'.
15036 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15037 symmisc.c: Update all dictionary references to multidictionary.
15038
15039 2019-01-10 Keith Seitz <keiths@redhat.com>
15040
15041 PR gdb/23712
15042 PR symtab/23010
15043 * dictionary.c: Include unordered_map.
15044 (pending_to_vector): New function.
15045 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15046 Rewrite the non-"_1" functions to take vector instead
15047 of linked list.
15048 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15049 "new" _1 versions of the same name.
15050 (multidictionary): Define.
15051 (std::hash<enum language): New definition.
15052 (collate_pending_symbols_by_language, mdict_create_hashed)
15053 (mdict_create_hashed_expandable, mdict_create_linear)
15054 (mdict_create_linear_expandable, mdict_free)
15055 (find_language_dictionary, create_new_language_dictionary)
15056 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15057 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15058 (mdict_size, mdict_empty): New functions.
15059 * dictionary.h (mdict_iterator): Define.
15060
15061 2019-01-10 Pedro Alves <palves@redhat.com>
15062
15063 * breakpoint.c (read_uploaded_action)
15064 (create_tracepoint_from_upload): Adjust to use
15065 gdb::unique_xmalloc_ptr.
15066 * ctf.c (ctf_write_uploaded_tp):
15067 (SET_ARRAY_FIELD): Use emplace_back.
15068 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15069 * tracefile-tfile.c (tfile_write_uploaded_tp):
15070 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15071 gdb::unique_xmalloc_ptr.
15072 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15073 at_string, cond_string, cmd_strings>: Replace char pointers
15074 with gdb::unique_xmalloc_ptr.
15075
15076 2019-01-10 Pedro Alves <palves@redhat.com>
15077
15078 * solib-target.c (library_list_start_library): Don't xstrdup name.
15079
15080 2019-01-10 Pedro Alves <palves@redhat.com>
15081
15082 * mdebugread.c (parse_partial_symbols): Use
15083 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15084
15085 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15086
15087 * linux-fork.c (scoped_switch_fork_info)
15088 <~scoped_switch_fork_info>: Fix incorrect variable name.
15089
15090 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15091
15092 * linux-fork.c (scoped_switch_fork_info)
15093 <scoped_switch_fork_info>: Make explicit.
15094 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15095
15096 2019-01-10 Tom Tromey <tom@tromey.com>
15097
15098 * objfiles.h (objfile::reset_psymtabs): Update.
15099 * objfiles.c (objfile::objfile): Update.
15100 * psymtab.h (psymtab_storage::obstack): Update.
15101 (psymtab_storage::m_obstack): Use gdb::optional.
15102 (class psymtab_storage): Update comment. Remove objfile
15103 parameter.
15104 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15105
15106 2019-01-10 Tom Tromey <tom@tromey.com>
15107
15108 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15109 <free_psymtabs>: Now private.
15110 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15111 (allocate_psymtab): Use new method.
15112
15113 2019-01-10 Tom Tromey <tom@tromey.com>
15114
15115 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15116 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15117 * mdebugread.c (parse_partial_symbols): Use
15118 allocate_dependencies.
15119 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15120 allocate_dependencies.
15121 (process_psymtab_comp_unit_reader)
15122 (build_type_psymtab_dependencies): Likewise.
15123 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15124
15125 2019-01-10 Tom Tromey <tom@tromey.com>
15126
15127 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15128 PSYMBOL_SET_LANGUAGE.
15129 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15130
15131 2019-01-10 Tom Tromey <tom@tromey.com>
15132
15133 * psymtab.h (psymtab_storage::obstack): New method.
15134 <m_obstack>: Rename from obstack; now private.
15135 * psymtab.c (psymtab_storage): Update.
15136 * dwarf2read.c (create_addrmap_from_index)
15137 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15138 Update.
15139
15140 2019-01-10 Tom Tromey <tom@tromey.com>
15141
15142 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15143 * objfiles.h (objfile::reset_psymtabs): New method.
15144
15145 2019-01-10 Tom Tromey <tom@tromey.com>
15146
15147 * symmisc.c (print_symbol_bcache_statistics): Update.
15148 (print_objfile_statistics): Update.
15149 * symfile.c (reread_symbols): Update.
15150 * psymtab.h (class psymtab_storage): New.
15151 * psymtab.c (psymtab_storage): New constructor.
15152 (~psymtab_storage): New destructor.
15153 (require_partial_symbols): Update.
15154 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15155 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15156 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15157 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15158 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15159 (start_psymtab_common, end_psymtab_common)
15160 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15161 (allocate_psymtab): Update.
15162 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15163 Update.
15164 (dump_psymtab_addrmap, maintenance_print_psymbols)
15165 (maintenance_check_psymtabs): Update.
15166 (class objfile_psymtabs): Move to objfiles.h.
15167 * psympriv.h (discard_psymtab): Now inline.
15168 (psymtab_discarder::psymtab_discarder): Update.
15169 (psymtab_discarder::~psymtab_discarder): Update.
15170 (ALL_OBJFILE_PSYMTABS): Rewrite.
15171 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15172 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15173 Remove fields.
15174 <partial_symtabs>: New field.
15175 (class objfile_psymtabs): Move from psymtab.h. Update.
15176 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15177 psymbol_cache.
15178 (objfile::~objfile): Don't destroy psymbol_cache.
15179 * mdebugread.c (parse_partial_symbols): Update.
15180 * dwarf2read.c (create_addrmap_from_index)
15181 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15182 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15183 (add_partial_subprogram, dwarf2_ranges_read): Update.
15184 * dwarf-index-write.c (write_address_map)
15185 (write_one_signatured_type, recursively_write_psymbols)
15186 (class debug_names, class debug_names, write_psymtabs_to_index):
15187 Update.
15188
15189 2019-01-10 Tom Tromey <tom@tromey.com>
15190
15191 * symtab.h (SYMBOL_SET_NAMES): Update.
15192 (symbol_set_names): Update.
15193 (MSYMBOL_SET_NAMES): Update.
15194 * symtab.c (symbol_set_names): Change argument to be an
15195 objfile_per_bfd_storage.
15196 * psymtab.c (add_psymbol_to_bcache): Update.
15197 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15198
15199 2019-01-10 Tom Tromey <tom@tromey.com>
15200
15201 * symtab.c (create_demangled_names_hash): Change argument to be an
15202 objfile_per_bfd_storage.
15203 (symbol_set_names): Update.
15204
15205 2019-01-10 Tom Tromey <tom@tromey.com>
15206
15207 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15208 init_psymbol_list.
15209 * psymtab.c (init_psymbol_list): Do nothing if already called.
15210 * psympriv.h (init_psymbol_list): Add comment.
15211 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15212 init_psymbol_list.
15213 * dbxread.c (dbx_symfile_read): Unconditionally call
15214 init_psymbol_list.
15215
15216 2019-01-10 Tom Tromey <tom@tromey.com>
15217
15218 * xcoffread.c (scan_xcoff_symtab): Update.
15219 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15220 "where".
15221 * mdebugread.c (parse_partial_symbols)
15222 (handle_psymbol_enumerators): Update.
15223 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15224 * dbxread.c (read_dbx_symtab): Update.
15225 * psympriv.h (psymbol_placement): New enum.
15226 (add_psymbol_to_list): Update.
15227
15228 2019-01-10 Tom Tromey <tom@tromey.com>
15229
15230 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15231 static_psymbols parameters.
15232 (scan_xcoff_symtab): Update.
15233 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15234 static_psymbols parameters.
15235 * psympriv.h (start_psymtab_common): Update.
15236 * mdebugread.c (parse_partial_symbols): Update.
15237 * dwarf2read.c (create_partial_symtab): Update.
15238 * dbxread.c (read_dbx_symtab): Update.
15239 (start_psymtab): Remove global_psymbols and static_psymbols
15240 parameters.
15241
15242 2019-01-10 Tom Tromey <tom@tromey.com>
15243
15244 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15245 * psymtab.c (allocate_psymtab): Add comment.
15246 * psympriv.h (allocate_psymtab): Add comment.
15247 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15248 initializations.
15249 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15250
15251 2019-01-10 Tom Tromey <tom@tromey.com>
15252
15253 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15254 Don't declare.
15255 * mipsread.c: Include mdebugread.h.
15256 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15257 Declare.
15258 * elfread.c: Include mdebugread.h.
15259
15260 2019-01-09 Tom Tromey <tom@tromey.com>
15261
15262 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15263 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15264 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15265 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15266 (psym_lookup_symbol, psym_find_last_source_symtab)
15267 (psym_forget_cached_source_info, psym_print_stats)
15268 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15269 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15270 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15271 (psym_find_compunit_symtab_by_address)
15272 (maintenance_print_psymbols, maintenance_info_psymtabs)
15273 (maintenance_check_psymtabs): Use ranged for.
15274 * psymtab.h (class objfile_psymtabs): New.
15275 (require_partial_symbols): Return objfile_psymtabs.
15276 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15277
15278 2019-01-09 Tom Tromey <tom@tromey.com>
15279
15280 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15281 (find_pc_mapped_section, list_overlays_command)
15282 (map_overlay_command, unmap_overlay_command)
15283 (simple_overlay_update): Use all_objfiles.
15284 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15285 * printcmd.c (info_symbol_command): Use all_objfiles.
15286 * objfiles.h (ALL_OBJSECTIONS): Remove.
15287 * maint.c (maintenance_translate_address): Use all_objfiles.
15288 * gcore.c (gcore_create_callback): Use all_objfiles.
15289 (objfile_find_memory_regions): Likewise.
15290
15291 2019-01-09 Tom Tromey <tom@tromey.com>
15292
15293 * symtab.c (find_line_symtab, info_sources_command)
15294 (make_source_files_completion_list): Use objfile_compunits.
15295 * source.c (select_source_symtab): Use objfile_compunits.
15296 * objfiles.h (struct objfile): Update comment.
15297 (ALL_OBJFILES): Remove.
15298 (ALL_FILETABS): Remove.
15299 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15300 objfile_compunits.
15301
15302 2019-01-09 Tom Tromey <tom@tromey.com>
15303
15304 * symmisc.c (print_objfile_statistics, dump_objfile)
15305 (maintenance_print_symbols): Use compunit_filetabs.
15306 * source.c (forget_cached_source_info_for_objfile): Use
15307 compunit_filetabs.
15308 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15309 (ALL_FILETABS): Use compunit_filetabs.
15310 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15311 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15312
15313 2019-01-09 Tom Tromey <tom@tromey.com>
15314
15315 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15316 (compunit_filetabs): New.
15317 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15318 compunit_filetabs.
15319 (info_sources_command, make_source_files_completion_list): Remove
15320 declaration.
15321 * symmisc.c (print_objfile_statistics, dump_objfile)
15322 (maintenance_print_symbols): Remove declaration.
15323 (maintenance_info_symtabs): Use compunit_filetabs.
15324 (maintenance_info_line_tables): Likewise.
15325 * source.c (select_source_symtab): Change local variable name.
15326 (forget_cached_source_info_for_objfile): Remove declaration.
15327 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15328 * objfiles.c (objfile_relocate1): Remove declaration.
15329 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15330 declaration.
15331 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15332 * coffread.c (coff_symtab_read): Remove declaration.
15333 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15334 compunit_filetabs.
15335
15336 2019-01-09 Tom Tromey <tom@tromey.com>
15337
15338 * symtab.c (lookup_objfile_from_block)
15339 (find_pc_sect_compunit_symtab, search_symbols)
15340 (default_collect_symbol_completion_matches_break_on): Use
15341 objfile_compunits.
15342 * objfiles.h (ALL_COMPUNITS): Remove.
15343 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15344 * cp-support.c (add_symbol_overload_list_qualified): Use
15345 objfile_compunits.
15346 * ada-lang.c (ada_collect_symbol_completion_matches)
15347 (ada_add_global_exceptions): Use objfile_compunits.
15348
15349 2019-01-09 Tom Tromey <tom@tromey.com>
15350
15351 * source.c (select_source_symtab)
15352 (forget_cached_source_info_for_objfile): Remove declaration.
15353 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15354 declaration.
15355 * maint.c (count_symtabs_and_blocks): Remove declaration.
15356 * cp-support.c (add_symbol_overload_list_qualified): Remove
15357 declaration.
15358 * coffread.c (coff_symtab_read): Remove declaration.
15359 * symtab.c (lookup_symbol_in_objfile_symtabs)
15360 (basic_lookup_transparent_type_1): Use objfile_compunits.
15361 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15362 (info_sources_command, search_symbols)
15363 (default_collect_symbol_completion_matches_break_on)
15364 (make_source_files_completion_list): Remove declaration.
15365 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15366 (ada_collect_symbol_completion_matches)
15367 (ada_add_global_exceptions): Remove declaration.
15368 * linespec.c (iterate_over_all_matching_symtabs): Use
15369 objfile_compunits.
15370 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15371 (class objfile_compunits): New.
15372 (ALL_COMPUNITS): Use objfile_compunits.
15373 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15374 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15375 objfile_compunits.
15376 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15377
15378 2019-01-09 Tom Tromey <tom@tromey.com>
15379
15380 * symtab.c (search_symbols)
15381 (default_collect_symbol_completion_matches_break_on): Use
15382 objfile_msymbols.
15383 * ada-lang.c (ada_lookup_simple_minsym)
15384 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15385 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15386 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15387 objfile_msymbols.
15388 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15389 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15390 * objc-lang.c (find_methods): Use objfile_msymbols.
15391 (info_selectors_command, info_classes_command): Likewise.
15392 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15393 * objfiles.h (class objfile_msymbols): New.
15394 (ALL_OBJFILE_MSYMBOLS): Remove.
15395 (ALL_MSYMBOLS): Remove.
15396
15397 2019-01-09 Tom Tromey <tom@tromey.com>
15398
15399 * common/next-iterator.h (next_adapter): Add Iterator template
15400 parameter.
15401 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15402 (class all_objfiles_safe): New.
15403 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15404 * objfiles.c (put_objfile_before): Update comment.
15405 (add_separate_debug_objfile): Likewise.
15406 (free_all_objfiles): Use all_objfiles_safe.
15407 (objfile_purge_solibs): Likewise.
15408
15409 2019-01-09 Tom Tromey <tom@tromey.com>
15410
15411 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15412 (expand_symtab_containing_pc, lookup_static_symbol)
15413 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15414 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15415 all_objfiles.
15416 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15417 * breakpoint.c (create_overlay_event_breakpoint)
15418 (create_longjmp_master_breakpoint)
15419 (create_std_terminate_master_breakpoint)
15420 (create_exception_master_breakpoint): Use all_objfiles.
15421 * linux-thread-db.c (try_thread_db_load_from_pdir)
15422 (has_libpthread): Use all_objfiles.
15423 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15424 * linespec.c (iterate_over_all_matching_symtabs)
15425 (search_minsyms_for_name): Use all_objfiles.
15426 * maint.c (maintenance_info_sections): Use all_objfiles.
15427 * main.c (captured_main_1): Use all_objfiles.
15428 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15429 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15430 * guile/scm-pretty-print.c
15431 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15432 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15433 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15434 (maintenance_print_msymbols): Use all_objfiles.
15435 * source.c (select_source_symtab): Use all_objfiles.
15436 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15437 * symfile.c (remove_symbol_file_command)
15438 (expand_symtabs_matching, map_symbol_filenames): Use
15439 all_objfiles.
15440 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15441 all_objfiles.
15442 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15443 * objc-lang.c (find_methods): Use all_objfiles.
15444 * objfiles.c (have_partial_symbols, have_full_symbols)
15445 (have_minimal_symbols, qsort_cmp)
15446 (default_iterate_over_objfiles_in_search_order): Use
15447 all_objfiles.
15448 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15449 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15450 (maintenance_check_psymtabs): Use all_objfiles.
15451 (ALL_PSYMTABS): Remove.
15452 * compile/compile-object-run.c (do_module_cleanup): Use
15453 all_objfiles.
15454 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15455 * cp-support.c (add_symbol_overload_list_qualified): Use
15456 all_objfiles.
15457 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15458 Use all_objfiles.
15459 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15460 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15461 all_objfiles.
15462 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15463 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15464 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15465 Uses all_objfiles.
15466 * solib.c (solib_read_symbols): Use all_objfiles
15467
15468 2019-01-09 Tom Tromey <tom@tromey.com>
15469
15470 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15471 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15472 all_objfiles.
15473 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15474 * symmisc.c (print_symbol_bcache_statistics)
15475 (print_objfile_statistics, maintenance_print_objfiles)
15476 (maintenance_info_symtabs, maintenance_check_symtabs)
15477 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15478 all_objfiles.
15479 * source.c (forget_cached_source_info): Use all_objfiles.
15480 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15481 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15482 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15483 * objfiles.c (update_section_map): Use all_objfiles.
15484 (shared_objfile_contains_address_p): Likewise.
15485 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15486 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15487
15488 2019-01-09 Tom Tromey <tom@tromey.com>
15489
15490 * common/next-iterator.h: New file.
15491 * objfiles.h (class all_objfiles): New.
15492 (struct objfile_iterator): New.
15493
15494 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15495
15496 * NEWS: Move the description of the changed "frame", "select-frame",
15497 and "info frame" commands to the Changed commands section.
15498
15499 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15500
15501 * gdbtypes.c (check_stub_method_group): Remove handling of old
15502 mangling schemes.
15503 * linespec.c (find_methods): Likewise.
15504 * stabsread.c (read_member_functions): Likewise.
15505 * valops.c (search_struct_method): Likewise.
15506 (value_struct_elt_for_reference): Likewise.
15507 * NEWS: Mention this change.
15508
15509 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15510
15511 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15512 print_source_lines.
15513 * source.c (print_source_lines_base): Update line number check.
15514 (print_source_lines): New function.
15515 (source_lines_range::source_lines_range): New function.
15516 * source.h (class source_lines_range): New class.
15517 (print_source_lines): New declaration.
15518
15519 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15520
15521 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15522
15523 2019-01-08 Tom Tromey <tom@tromey.com>
15524 Simon Marchi <simon.marchi@ericsson.com>
15525
15526 PR gdb/24060
15527 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15528 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15529 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15530 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15531 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15532 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15533
15534 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15535
15536 * source.c (select_source_symtab): Move header comment to
15537 declaration in source.h.
15538 (forget_cached_source_info_for_objfile): Likewise.
15539 (forget_cached_source_info): Likewise.
15540 (identify_source_line): Likewise.
15541 * source.h (identify_source_line): Move declaration from symtab.h
15542 and add comment from source.c
15543 (print_source_lines): Likewise.
15544 (forget_cached_source_info_for_objfile): Likewise.
15545 (forget_cached_source_info): Likewise.
15546 (select_source_symtab): Likewise.
15547 (enum print_source_lines_flag): Move definition from symtab.h.
15548 * symtab.h (identify_source_line): Move declaration to source.h.
15549 (print_source_lines): Likewise.
15550 (forget_cached_source_info_for_objfile): Likewise.
15551 (forget_cached_source_info): Likewise.
15552 (select_source_symtab): Likewise.
15553 (enum print_source_lines_flag): Move definition to source.h.
15554 * tui/tui-hooks.c: Add 'source.h' include.
15555
15556 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15557
15558 * source.c (print_source_lines_base): Handle requests to print
15559 reverse line number sequences, and guard against empty lines
15560 string.
15561
15562 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15563
15564 * source.c (print_source_lines_base): Fix skip of '\r' if next
15565 character is '\n'.
15566
15567 2019-01-06 Tom Tromey <tom@tromey.com>
15568
15569 * c-exp.y (struct c_parse_state) <macro_original_text,
15570 expansion_obstack>: New member.
15571 (macro_original_text, expansion_obstack): Remove globals.
15572 (scan_macro_expansion, scanning_macro_expansion)
15573 (finished_macro_expansion): Update.
15574 (scan_macro_cleanup): Remove.
15575 (yylex, c_parse): Update.
15576
15577 2019-01-06 Tom Tromey <tom@tromey.com>
15578
15579 * c-exp.y (struct c_parse_state) <strings>: New member.
15580 (operator_stoken): Update.
15581
15582 2019-01-06 Tom Tromey <tom@tromey.com>
15583
15584 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15585 (union type_stack_elt) <typelist_val>: Now a pointer to
15586 std::vector.
15587 (type_stack_cleanup): Don't declare.
15588 (push_typelist): Update.
15589 * parse.c (pop_typelist): Return a std::vector.
15590 (push_typelist): Take a std::vector.
15591 (follow_types): Update. Do not free args.
15592 (type_stack_cleanup): Remove.
15593 * c-exp.y (struct c_parse_state): New.
15594 (cpstate): New global.
15595 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15596 (nonempty_typelist): Update.
15597 (func_mod): Create a new vector.
15598 (c_parse): Create a c_parse_state.
15599 (check_parameter_typelist): Do not delete params.
15600 (function_method): Update. Do not delete type_list.
15601
15602 2019-01-06 Tom Tromey <tom@tromey.com>
15603
15604 PR gdb/28155:
15605 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15606 check_typedef.
15607 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15608 (print_return_value): Likewise.
15609
15610 2019-01-05 Tom Tromey <tom@tromey.com>
15611
15612 * contrib/cleanup_check.py: Remove.
15613 * contrib/gcc-with-excheck: Remove.
15614 * contrib/exsummary.py: Remove.
15615 * contrib/excheck.py: Remove.
15616
15617 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15618
15619 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15620 NULL. Initialize tpprev to NULL instead of assigning it
15621 to NULL on the next statement.
15622 * windows-nat.c (windows_delete_thread): Remove check for
15623 main_thread_id before printing thread exit notifications.
15624 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15625 Remove thread ID check against main_thread_id.
15626 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15627 windows_delete_thread.
15628 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15629
15630 2019-01-04 Tom Tromey <tom@tromey.com>
15631
15632 * compile/compile.c (_initialize_compile): Use upper case for
15633 metasyntactic variables.
15634 * symmisc.c (_initialize_symmisc): Use upper case for
15635 metasyntactic variables.
15636 * psymtab.c (_initialize_psymtab): Use upper case for
15637 metasyntactic variables.
15638 * demangle.c (demangle_command): Use upper case for metasyntactic
15639 variables.
15640 (_initialize_demangler): Likewise.
15641 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15642 variables.
15643
15644 2019-01-03 Tom Tromey <tom@tromey.com>
15645
15646 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15647
15648 2019-01-03 Tom Tromey <tom@tromey.com>
15649
15650 * python/py-symtab.c (salpy_str): Update.
15651 (struct salpy_sal_object) <symtab>: Now a PyObject.
15652 (salpy_dealloc): Update.
15653 (del_objfile_sal): Use gdbpy_ref.
15654
15655 2019-01-03 Tom Tromey <tom@tromey.com>
15656
15657 * python/py-type.c (convert_field): Use new_reference. Return
15658 gdbpy_ref.
15659 (make_fielditem): Return gdbpy_ref.
15660 (typy_fields): Update.
15661 (typy_getitem): Update.
15662 (field_name): Return gdbpy_ref. Use new_reference.
15663 (typy_iterator_iternext): Update.
15664
15665 2019-01-03 Tom Tromey <tom@tromey.com>
15666
15667 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15668
15669 2019-01-03 Tom Tromey <tom@tromey.com>
15670
15671 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15672 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15673 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15674 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15675 (pspy_set_type_printers): Likewise.
15676 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15677 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15678 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15679 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15680 (objfpy_set_type_printers): Likewise.
15681
15682 2019-01-03 Tom Tromey <tom@tromey.com>
15683
15684 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15685 (gdbpy_print_stack): Use gdbpy_err_fetch.
15686 * python/python-internal.h (class gdbpy_err_fetch): New class.
15687 (class gdbpy_enter) <m_error_type, m_error_value,
15688 m_error_traceback>: Remove.
15689 <m_error>: New member.
15690 (gdbpy_exception_to_string): Don't declare.
15691 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15692 * python/py-value.c (convert_value_from_python): Use
15693 gdbpy_err_fetch.
15694 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15695 gdbpy_exception_to_string.
15696 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15697 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15698 gdbpy_err_fetch.
15699
15700 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15701
15702 * linux-nat.c (delete_lwp_cleanup): Delete.
15703 (struct lwp_deleter): New struct.
15704 (lwp_info_up): New typedef.
15705 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15706 lwp_info_up.
15707
15708 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15709
15710 * linux-fork.c (class scoped_switch_fork_info): New class.
15711 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15712
15713 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15714
15715 * valops.c (find_overload_match): Remove use of null_cleanup, and
15716 calls to do_cleanups.
15717
15718 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15719
15720 * compile/compile-cplus-types.c
15721 (compile_cplus_instance::decl_name): Handle changes to
15722 cp_func_name.
15723 * cp-support.c (cp_func_name): Update header comment, update
15724 return type.
15725 * cp-support.h (cp_func_name): Update return type in declaration.
15726 * valops.c (find_overload_match): Move temp_func local to top
15727 level of function and change its type. Use temp_func to hold and
15728 delete temporary string obtained from cp_func_name.
15729
15730 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15731
15732 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15733 gdb::char_vector, remove cleanup, and update uses of `msg`.
15734
15735 2019-01-03 Jim Wilson <jimw@sifive.com>
15736
15737 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15738
15739 2019-01-02 Tom Tromey <tom@tromey.com>
15740
15741 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15742 (tdesc_parse_xml): Remove cleanups.
15743 * target-descriptions.h (make_cleanup_free_target_description):
15744 Don't declare.
15745 (target_desc_deleter): New struct.
15746 (target_desc_up): New typedef.
15747 * target-descriptions.c (target_desc_deleter::operator()): Rename
15748 from free_target_description.
15749 (make_cleanup_free_target_description): Remove.
15750
15751 2019-01-02 Tom Tromey <tom@tromey.com>
15752
15753 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15754 constructor, destructor.
15755 (linespec_parser): Remove typedef.
15756 (~linespec_parser): Rename from linespec_parser_delete.
15757 (linespec_lex_to_end, linespec_complete_label)
15758 (linespec_complete): Update.
15759 (decode_line_full): Remove cleanups.
15760 (decode_line_1): Update.
15761
15762 2019-01-02 Tom Tromey <tom@tromey.com>
15763
15764 * python/python-internal.h (inferior_to_inferior_object): Change
15765 return type.
15766 * python/py-exitedevent.c (create_exited_event_object): Update.
15767 * python/py-inferior.c (inferior_to_inferior_object): Return
15768 gdbpy_ref.
15769 (python_new_inferior, python_inferior_deleted)
15770 (thread_to_thread_object, delete_thread_object)
15771 (build_inferior_list, gdbpy_selected_inferior): Update.
15772 * python/py-infthread.c (create_thread_object): Update. Also fail
15773 if inferior_to_inferior_object fails.
15774
15775 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15776
15777 * inferior.h (class inferior) <displaced_step_state>: New field.
15778 * infrun.h (struct displaced_step_state): Move here from
15779 infrun.c. Initialize fields, add constructor.
15780 <inf>: Remove field.
15781 <reset>: New method.
15782 * infrun.c (struct displaced_step_inferior_state): Move to
15783 infrun.h.
15784 (displaced_step_inferior_states): Remove.
15785 (get_displaced_stepping_state): Adust.
15786 (displaced_step_in_progress_any_inferior): Adjust.
15787 (displaced_step_in_progress_thread): Adjust.
15788 (displaced_step_in_progress): Adjust.
15789 (add_displaced_stepping_state): Remove.
15790 (get_displaced_step_closure_by_addr): Adjust.
15791 (remove_displaced_stepping_state): Remove.
15792 (infrun_inferior_exit): Call displaced_step_state.reset.
15793 (use_displaced_stepping): Don't check for NULL.
15794 (displaced_step_prepare_throw): Call
15795 get_displaced_stepping_state.
15796 (displaced_step_fixup): Don't check for NULL.
15797 (prepare_for_detach): Don't check for NULL.
15798
15799 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15800
15801 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15802 in case of call that did not complete.
15803
15804 2019-01-02 Andrey Utkin <autkin@undo.io>
15805
15806 * symfile.c (find_separate_debug_file): Fix search of debug files for
15807 remote debuggee.
15808
15809 2019-01-02 Tom Tromey <tom@tromey.com>
15810
15811 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15812 indentation.
15813 * python/py-frame.c (frapy_older): Remove cast.
15814 (frapy_newer): Likewise.
15815 * python/py-breakpoint.c (local_setattro): Remove cast.
15816 * python/py-arch.c (archpy_name): Remove local variable.
15817 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15818
15819 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15820
15821 * unittests/basic_string_view/element_access/char/empty.cc:
15822 Fix year range in copyright header.
15823
15824 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15825
15826 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15827 Delete.
15828 <operator==>: Update with for removed field.
15829 <hash>: Likewise.
15830 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15831 <isa_features>: ...this.
15832 <abi_features>: New field.
15833 (riscv_isa_flen): Update comment.
15834 (riscv_abi_xlen): New declaration.
15835 (riscv_abi_flen): New declaration.
15836 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15837 isa_features.
15838 (riscv_abi_xlen): New function.
15839 (riscv_isa_flen): Update to get answer from isa_features.
15840 (riscv_abi_flen): New function.
15841 (riscv_has_fp_abi): Update to get answer from abi_features.
15842 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15843 xlen and flen.
15844 (riscv_call_info) <xlen, flen>: Update comment.
15845 (riscv_call_arg_struct): Remove invalid assertions
15846 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15847 is removed.
15848 (riscv_gdbarch_init): Gather isa features and abi features
15849 separately, ensure both match on the gdbarch when reusing an old
15850 gdbarch. Relax an error check to allow 32-bit abi float to run on
15851 a target with 64-bit float hardware.
15852
15853 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15854
15855 * source.c (search_command_helper): Stop reverse search
15856 when line 1 has been searched.
15857
15858 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15859
15860 * record-full.c (record_full_base_target::close): Rewrite
15861 record_full_core_buf_list free logic.
15862
15863 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15864
15865 * break-catch-syscall.c (print_one_catch_syscall): xfree
15866 the last text.
15867
15868 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15869
15870 * top.c (print_gdb_version): Update Copyright year in version
15871 message.
15872
15873 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15874
15875 Update copyright year range in all GDB files.
15876
15877 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15878
15879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15880
15881 For older changes see ChangeLog-2018.
15882 \f
15883 Local Variables:
15884 mode: change-log
15885 left-margin: 8
15886 fill-column: 74
15887 version-control: never
15888 coding: utf-8
15889 End:
15890
This page took 0.503504 seconds and 4 git commands to generate.