ce8286af9801db9866fc1f88a148666e2ca2e022
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-28 Tom Tromey <tom@tromey.com>
2
3 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
4 declare.
5
6 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
7
8 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
9 debug output.
10 * jit.c (jit_unregister_code): Add debug print to match
11 `jit_register_code`.
12
13 2019-11-27 Christian Biesinger <cbiesinger@google.com>
14
15 * NEWS: Mention the new multithreaded symbol loading.
16
17 2019-11-27 Christian Biesinger <cbiesinger@google.com>
18
19 * maint.c (n_worker_threads): Default to 0.
20 (worker_threads_disabled): New function.
21 * maint.h (worker_threads_disabled): New function.
22 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
23 here if worker_threads_disabled () is true.
24 (minimal_symbol_reader::install): Skip all threading if
25 worker_threads_disabled () is true.
26
27 2019-11-27 Christian Biesinger <cbiesinger@google.com>
28
29 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
30 hash code if possible.
31 (add_minsym_to_demangled_hash_table): Likewise.
32 (minimal_symbol_reader::install): Compute the hash codes for msymbol
33 on the background thread.
34 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
35 Add these fields.
36
37 2019-11-27 Christian Biesinger <cbiesinger@google.com>
38
39 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
40 of the mangled name on the background thread.
41 * symtab.c (symbol_set_names): Allow passing in the hash of the
42 linkage_name.
43 * symtab.h (symbol_set_names): Likewise.
44
45 2019-11-27 Kevin Buettner <kevinb@redhat.com>
46
47 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
48 physnames are computed for inherited DIEs.
49
50 2019-11-27 Tom Tromey <tromey@adacore.com>
51
52 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
53 backslashes.
54 * cp-support.c: Remove unnecessary backslashes.
55
56 2019-11-27 Christian Biesinger <cbiesinger@google.com>
57
58 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
59 with sym->set_linkage_name.
60 * coffread.c (coff_read_enum_type): Likewise.
61 * mdebugread.c (parse_symbol): Likewise.
62 * stabsread.c (patch_block_stabs): Likewise.
63 (define_symbol): Likewise.
64 (read_enum_type): Likewise.
65 (common_block_end): Likewise.
66 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
67 function.
68 (SYMBOL_SET_LINKAGE_NAME): Remove.
69 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
70 with sym->set_linkage_name.
71
72 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
75 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
76 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
77 * NEWS: Mention new MI command.
78
79 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
80
81 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
82 '-symbol-info-types', and '-symbol-info-variables'.
83 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
84 (mi_cmd_symbol_info_types): Declare.
85 (mi_cmd_symbol_info_variables): Declare.
86 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
87 (output_debug_symbol): New function.
88 (output_nondebug_symbol): New function.
89 (mi_symbol_info): New function.
90 (mi_info_functions_or_variables): New function.
91 (mi_cmd_symbol_info_functions): New function.
92 (mi_cmd_symbol_info_types): New function.
93 (mi_cmd_symbol_info_variables): New function.
94 * NEWS: Mention new commands.
95
96 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * symtab.c (symbol_to_info_string): New function, most content
99 moved from print_symbol_info, but updated to return a std::string.
100 (print_symbol_info): Update to use symbol_to_info_string and print
101 returned string.
102 * symtab.h (symbol_to_info_string): Declare new function.
103
104 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
105
106 * python/python.c (gdbpy_rbreak): Convert to using
107 global_symbol_searcher.
108 * symtab.c (file_matches): Convert return type to bool, change
109 file list to std::vector, update header comment.
110 (search_symbols): Rename to...
111 (global_symbol_searcher::search): ...this and update now its
112 a member function of global_symbol_searcher. Take account of the
113 changes to file_matches.
114 (symtab_symbol_info): Convert to using global_symbol_searcher.
115 (rbreak_command): Likewise.
116 (search_module_symbols): Likewise.
117 * symtab.h (enum symbol_search): Update comment.
118 (search_symbols): Remove declaration.
119 (class global_symbol_searcher): New class.
120
121 2019-11-26 Tom Tromey <tromey@adacore.com>
122
123 * cp-support.c (_initialize_cp_support): Conditionally initialize
124 gdb_demangle_attempt_core_dump.
125
126 2019-11-26 Tom Tromey <tom@tromey.com>
127
128 * python/py-function.c (fnpy_init): Update.
129 * value.h (add_internal_function): Adjust declaration.
130 * value.c (function_destroyer): Remove.
131 (do_add_internal_function): Don't set destroyer or copy name.
132 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
133 Set name_allocated.
134 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
135 (cmdpy_init): Set name_allocated.
136 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
137 member.
138 (~cmd_list_element): Free "name" if needed.
139
140 2019-11-26 Tom Tromey <tom@tromey.com>
141
142 * value.h (add_internal_function): Add new overload. Move
143 documentation from value.h.
144 * value.c (do_add_internal_function): New function.
145 (add_internal_function): Use it. Add new overload.
146 (function_destroyer): Don't free doc.
147 * python/py-function.c (fnpy_init): Update.
148
149 2019-11-26 Tom Tromey <tom@tromey.com>
150
151 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
152 (cmdpy_init): Set "doc_allocated".
153
154 2019-11-26 Tom Tromey <tom@tromey.com>
155
156 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
157 name of worker thread.
158 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
159 pthread_setname_np.
160 * configure, config.in: Rebuild.
161
162 2019-11-26 Tom Tromey <tom@tromey.com>
163
164 * python/python.c (class gdbpy_gil): New.
165 (struct gdbpy_event): Add constructor, destructor, operator().
166 (gdbpy_post_event): Use run_on_main_thread.
167 (gdbpy_initialize_events): Remove.
168 (do_start_initialization): Update.
169
170 2019-11-26 Tom Tromey <tom@tromey.com>
171
172 * NEWS: Add entry.
173 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
174 commands. Call update_thread_pool_size.
175 (update_thread_pool_size, maintenance_set_worker_threads): New
176 functions.
177 (n_worker_threads): New global.
178
179 2019-11-26 Christian Biesinger <cbiesinger@google.com>
180 Tom Tromey <tom@tromey.com>
181
182 * minsyms.c (minimal_symbol_reader::install): Use
183 parallel_for_each.
184 * gdbsupport/parallel-for.h: New file.
185 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
186
187 2019-11-26 Christian Biesinger <cbiesinger@google.com>
188 Tom Tromey <tom@tromey.com>
189
190 * gdbsupport/thread-pool.h: New file.
191 * gdbsupport/thread-pool.c: New file.
192 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
193 (HFILES_NO_SRCDIR): Add thread-pool.h.
194
195 2019-11-26 Tom Tromey <tom@tromey.com>
196
197 * event-top.h (thread_local_segv_handler): Declare.
198 * event-top.c (thread_local_segv_handler): New global.
199 (install_handle_sigsegv, handle_sigsegv): New functions.
200 (async_init_signals): Install SIGSEGV handler.
201 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
202 thread-local.
203 (report_failed_demangle): New function.
204 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
205 handler-setting code, instead use segv_handler. Run warning code
206 on main thread.
207
208 2019-11-26 Tom Tromey <tom@tromey.com>
209
210 * run-on-main-thread.c: New file.
211 * run-on-main-thread.h: New file.
212 * unittests/main-thread-selftests.c: New file.
213 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
214 main-thread-selftests.c.
215 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
216 (COMMON_SFILES): Add run-on-main-thread.c.
217
218 2019-11-26 Tom Tromey <tom@tromey.com>
219
220 * main.c (setup_alternate_signal_stack): Remove.
221 (captured_main_1): Use gdb::alternate_signal_stack.
222 * gdbsupport/alt-stack.h: New file.
223
224 2019-11-26 Tom Tromey <tom@tromey.com>
225
226 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
227 Remove comment.
228 (save_original_signals_state, restore_original_signals_state): Use
229 gdb_sigmask.
230 * linux-nat.c (block_child_signals, restore_child_signals_mask)
231 (_initialize_linux_nat): Use gdb_sigmask.
232 * guile/guile.c (_initialize_guile): Use block_signals.
233 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
234 * gdbsupport/gdb-sigmask.h: New file.
235 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
236 * cp-support.c (gdb_demangle): Use gdb_sigmask.
237 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
238 pthread_sigmask.
239 * configure, config.in: Rebuild.
240 * gdbsupport/block-signals.h: New file.
241
242 2019-11-26 Tom Tromey <tom@tromey.com>
243
244 * acinclude.m4: Include ax_pthread.m4.
245 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
246 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
247 (CLIBS): Use PTHREAD_LIBS.
248 (aclocal_m4_deps): Add ax_pthread.m4.
249 * config.in, configure: Rebuild.
250 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
251
252 2019-11-26 Tom Tromey <tom@tromey.com>
253
254 * symtab.h (struct minimal_symbol) <name_set>: New member.
255 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
256 Don't call symbol_set_names.
257 (minimal_symbol_reader::install): Call symbol_set_names.
258
259 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
260
261 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
262 restore_active_ext_lang, as GIL is needed for (indirectly)
263 called PyOS_InterruptOccurred.
264
265 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
266
267 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
268 definition.
269
270 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
271
272 * remote-sim.c (simulator_command): Make static, remove
273 declaration.
274
275 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
276
277 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
278 static.
279 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
280 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
281 (main): Likewise.
282 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
283 (main): Likewise.
284 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
285 (main): Likewise.
286 * unittests/basic_string_view/element_access/char/1.cc (test01):
287 Likewise.
288 (main): Likewise.
289 * unittests/basic_string_view/element_access/char/empty.cc (main):
290 Likewise.
291 * unittests/basic_string_view/element_access/char/front_back.cc
292 (test01): Likewise.
293 (main): Likewise.
294 * unittests/basic_string_view/inserters/char/2.cc (test05):
295 Likewise.
296 (main): Likewise.
297 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
298 (test01): Likewise.
299 (main): Likewise.
300 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
301 (test01): Likewise.
302 (main): Likewise.
303 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
304 Likewise.
305 * unittests/basic_string_view/operations/compare/char/1.cc
306 (test01): Likewise.
307 (main): Likewise.
308 * unittests/basic_string_view/operations/compare/char/13650.cc
309 (test01): Likewise.
310 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
311 Likewise.
312 (main): Likewise.
313 * unittests/basic_string_view/operations/data/char/1.cc (test01):
314 Likewise.
315 (main): Likewise.
316 * unittests/basic_string_view/operations/find/char/1.cc (test01):
317 Likewise.
318 (main): Likewise.
319 * unittests/basic_string_view/operations/find/char/2.cc (test02):
320 Likewise.
321 (main): Likewise.
322 * unittests/basic_string_view/operations/find/char/3.cc (test03):
323 Likewise.
324 (main): Likewise.
325 * unittests/basic_string_view/operations/find/char/4.cc (main):
326 Likewise.
327 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
328 Likewise.
329 (main): Likewise.
330 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
331 Likewise.
332 (main): Likewise.
333 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
334 Likewise.
335 (main): Likewise.
336 * unittests/basic_string_view/operations/substr/char/1.cc
337 (test01): Likewise.
338 (main): Likewise.
339 * unittests/basic_string_view/operators/char/2.cc (main):
340 Likewise.
341 * unittests/optional/assignment/1.cc (test): Likewise.
342 * unittests/optional/assignment/2.cc (test): Likewise.
343 * unittests/optional/assignment/3.cc (test): Likewise.
344 * unittests/optional/assignment/4.cc (test): Likewise.
345 * unittests/optional/assignment/5.cc (test): Likewise.
346 * unittests/optional/assignment/6.cc (test): Likewise.
347 * unittests/optional/assignment/7.cc (test): Likewise.
348 * unittests/optional/cons/copy.cc (test): Likewise.
349 * unittests/optional/cons/default.cc (test): Likewise.
350 * unittests/optional/cons/move.cc (test): Likewise.
351 * unittests/optional/cons/value.cc (test): Likewise.
352 * unittests/optional/in_place.cc (test): Likewise.
353 * unittests/optional/observers/1.cc (test): Likewise.
354 * unittests/optional/observers/2.cc (test): Likewise.
355
356 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
357
358 * tui-win.h (tui_set_var_cmd): Remove.
359 * tui-win.c (tui_set_var_cmd): Make static.
360
361 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
362
363 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
364 rbreak_command_wrapper): Remove.
365 * symtab.c (rbreak_command_wrapper): Remove.
366
367 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
368
369 * inferior.h (info_terminal_command): Remove declaration.
370 * inflow.c (info_terminal_command): Make static.
371
372 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
373
374 * inferior.c (exit_inferior_silent): Remove.
375
376 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
377
378 * dictionary.c (dict_empty, mdict_empty): Remove.
379 * dictionary.c (mdict_empty): Remove.
380
381 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
382
383 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
384 (arc_insn_get_memory_offset): Likewise.
385 (arc_insn_dump): Likewise.
386 * cp-support.c (test_cp_symbol_name_matches): Likewise.
387 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
388 * dictionary.c (dict_iterator_next): Likewise.
389 (dict_iter_match_first): Likewise.
390 (dict_iter_match_next): Likewise.
391 * f-lang.c (evaluate_subexp_f): Likewise.
392 * hppa-tdep.c (hppa_read_pc): Likewise.
393 * i386-tdep.c (i386_floatformat_for_type): Likewise.
394 * parse.c (write_exp_elt_msym): Likewise.
395 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
396 * remote.c (remote_packet_size): Likewise.
397 (remote_notif_stop_parse): Likewise.
398 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
399 * s12z-tdep.c (s12z_disassemble_info): Likewise.
400 * source.c (prepare_path_for_appending): Likewise.
401 * sparc64-linux-tdep.c
402 (sparc64_linux_handle_segmentation_fault); Likewise.
403 * stack.c (frame_selection_by_function_completer): Likewise.
404
405 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
406
407 * completer.c (set_gdb_completion_word_break_characters):
408 Remove.
409
410 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
411
412 * dwarf-index-write.c: Include dwarf-index-write.h.
413 * mi/mi-interp.c: Include mi/mi-interp.h.
414
415 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
416
417 * aarch32-tdep.c: Include aarch32-tdep.h.
418 * aarch32-tdep.h: Forward-declare struct target_desc.
419
420 2019-11-26 Christian Biesinger <cbiesinger@google.com>
421
422 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
423 strerror.
424 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
425 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
426
427 2019-11-25 Tom de Vries <tdevries@suse.de>
428
429 * contrib/words.sh: Add -c option.
430
431 2019-11-25 Christian Biesinger <cbiesinger@google.com>
432
433 * solib.c (solib_find_1): Change int to bool.
434 (exec_file_find): Change int to bool.
435 (solib_find): Change int to bool.
436 (solib_read_symbols): Change int to bool.
437 (solib_used): Change int to bool.
438 (solib_add): Change int to bool.
439 (info_sharedlibrary_command): Change int to bool.
440 (solib_contains_address_p): Change int to bool.
441 (solib_keep_data_in_core): Change int to bool.
442 (in_solib_dynsym_resolve_code): Change int to bool.
443 (reload_shared_libraries_1): Change int to bool.
444 (gdb_sysroot_changed): Change int to bool.
445 * solib.h (solib_read_symbols): Change int to bool.
446 (solib_contains_address_p): Change int to bool.
447 (solib_keep_data_in_core): Change int to bool.
448 (in_solib_dynsym_resolve_code): Change int to bool.
449 (libpthread_name_p): Change int to bool.
450
451 2019-11-25 Luis Machado <luis.machado@linaro.org>
452
453 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
454 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
455 (remote_packet_max_chars): New static global.
456 (show_remote_packet_max_chars): New function.
457 (remote_target::putpkt_binary): Adjust to use new
458 remote_packet_max_chars option.
459 (remote_target::getpkt_or_notif_sane_1): Likewise.
460 (_initialize_remote): Register new remote-packet-max-chars option.
461
462 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
463
464 * m68k-linux-nat.c: Include gdbarch.h.
465
466 2019-11-24 Tom Tromey <tom@tromey.com>
467
468 * symfile.c (read_symbols): Update.
469 * psymtab.c (require_partial_symbols): Change type of "verbose" to
470 bool.
471 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
472 (psym_lookup_symbol, psym_find_last_source_symtab)
473 (psym_forget_cached_source_info, psym_print_stats)
474 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
475 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
476 (psym_map_matching_symbols, psym_expand_symtabs_matching)
477 (psym_find_compunit_symtab_by_address)
478 (maintenance_print_psymbols, maintenance_info_psymtabs)
479 (maintenance_check_psymtabs): Update.
480 * psymtab.h (require_partial_symbols): Change type of "verbose" to
481 bool.
482
483 2019-11-22 Tom Tromey <tom@tromey.com>
484
485 * observable.h: Update comments.
486
487 2019-11-22 Tom Tromey <tromey@adacore.com>
488
489 * ada-tasks.c (ada_task_is_alive): Make parameter const.
490 (print_ada_task_info): Don't try to fetch thread id if task is not
491 alive.
492
493 2019-11-22 Christian Biesinger <cbiesinger@google.com>
494
495 * ada-exp.y: Update.
496 * ada-lang.c (sort_choices): Update.
497 (ada_print_symbol_signature): Update.
498 (resolve_subexp): Update.
499 (ada_parse_renaming): Update.
500 (ada_read_renaming_var_value): Update.
501 (lesseq_defined_than): Update.
502 (remove_extra_symbols): Update.
503 (remove_irrelevant_renamings): Update.
504 (ada_add_block_symbols): Update.
505 (ada_collect_symbol_completion_matches): Update.
506 (ada_is_renaming_symbol): Update.
507 (aggregate_assign_from_choices): Update.
508 (ada_evaluate_subexp): Update.
509 (ada_has_this_exception_support): Update.
510 (ada_is_non_standard_exception_sym): Update.
511 (ada_add_exceptions_from_frame): Update.
512 (ada_add_global_exceptions): Update.
513 (ada_print_subexp): Update.
514 * ax-gdb.c (gen_var_ref): Update.
515 (gen_maybe_namespace_elt): Update.
516 (gen_expr_for_cast): Update.
517 (gen_expr): Update.
518 * block.h: Update.
519 * blockframe.c (find_pc_partial_function): Update.
520 * breakpoint.c (print_breakpoint_location): Update.
521 (update_static_tracepoint): Update.
522 * btrace.c (ftrace_print_function_name): Update.
523 (ftrace_function_switched): Update.
524 * buildsym.c (find_symbol_in_list): Update.
525 * c-exp.y: Update.
526 * c-typeprint.c (c_print_typedef): Update.
527 (c_type_print_template_args): Update.
528 * cli/cli-cmds.c (edit_command): Update.
529 (list_command): Update.
530 (print_sal_location): Update.
531 * coffread.c (patch_opaque_types): Update.
532 (process_coff_symbol): Update.
533 (coff_read_enum_type): Update.
534 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
535 (convert_one_symbol): Update.
536 (hash_symname): Update.
537 (eq_symname): Update.
538 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
539 * compile/compile-cplus-types.c (debug_print_scope): Update.
540 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
541 * compile/compile-object-load.c (get_out_value_type): Update.
542 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
543 (search_symbol_list): Update.
544 (cp_lookup_symbol_imports_or_template): Update.
545 * cp-support.c (overload_list_add_symbol): Update.
546 * ctfread.c (psymtab_to_symtab): Update.
547 * dbxread.c (cp_set_block_scope): Update.
548 * dictionary.c (iter_match_first_hashed): Update.
549 (iter_match_next_hashed): Update.
550 (insert_symbol_hashed): Update.
551 (iter_match_next_linear): Update.
552 * dictionary.h: Update.
553 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
554 (locexpr_describe_location_piece): Update.
555 (locexpr_describe_location_1): Update.
556 (locexpr_generate_c_location): Update.
557 (loclist_describe_location): Update.
558 (loclist_generate_c_location): Update.
559 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
560 (read_func_scope): Update.
561 (process_enumeration_scope): Update.
562 (new_symbol): Update.
563 (dwarf2_const_value): Update.
564 (dwarf2_symbol_mark_computed): Update.
565 * eval.c (evaluate_funcall): Update.
566 (evaluate_subexp_standard): Update.
567 * expprint.c (print_subexp_standard): Update.
568 (dump_subexp_body_standard): Update.
569 * f-valprint.c (info_common_command_for_block): Update.
570 * findvar.c (get_hosting_frame): Update.
571 (default_read_var_value): Update.
572 * go-lang.c (go_symbol_package_name): Update.
573 * guile/scm-block.c (bkscm_print_block_smob): Update.
574 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
575 (gdbscm_symbol_name): Update.
576 (gdbscm_symbol_linkage_name): Update.
577 (gdbscm_symbol_print_name): Update.
578 * infcall.c (get_function_name): Update.
579 * infcmd.c (jump_command): Update.
580 (finish_command): Update.
581 * infrun.c (insert_exception_resume_breakpoint): Update.
582 * linespec.c (canonicalize_linespec): Update.
583 (create_sals_line_offset): Update.
584 (convert_linespec_to_sals): Update.
585 (complete_label): Update.
586 (find_label_symbols_in_block): Update.
587 * m2-typeprint.c (m2_print_typedef): Update.
588 * mdebugread.c (mdebug_reg_to_regnum): Update.
589 (parse_symbol): Update.
590 (mylookup_symbol): Update.
591 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
592 (list_args_or_locals): Update.
593 * objc-lang.c (compare_selectors): Update.
594 (info_selectors_command): Update.
595 (compare_classes): Update.
596 (info_classes_command): Update.
597 (find_imps): Update.
598 * p-typeprint.c (pascal_print_typedef): Update.
599 * printcmd.c (build_address_symbolic): Update.
600 (info_address_command): Update.
601 (print_variable_and_value): Update.
602 * python/py-framefilter.c (extract_sym): Update.
603 (py_print_single_arg): Update.
604 * python/py-symbol.c (sympy_str): Update.
605 (sympy_get_name): Update.
606 (sympy_get_linkage_name): Update.
607 * python/python.c (gdbpy_rbreak): Update.
608 * record-btrace.c (btrace_get_bfun_name): Update.
609 (btrace_call_history): Update.
610 * rust-lang.c (rust_print_typedef): Update.
611 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
612 * stabsread.c (stab_reg_to_regnum): Update.
613 (define_symbol): Update.
614 (read_enum_type): Update.
615 (common_block_end): Update.
616 (cleanup_undefined_types_1): Update.
617 (scan_file_globals): Update.
618 * stack.c (print_frame_arg): Update.
619 (print_frame_args): Update.
620 (find_frame_funname): Update.
621 (info_frame_command_core): Update.
622 (iterate_over_block_locals): Update.
623 (print_block_frame_labels): Update.
624 (do_print_variable_and_value): Update.
625 (iterate_over_block_arg_vars): Update.
626 (return_command): Update.
627 * symmisc.c (dump_symtab_1): Update.
628 (print_symbol): Update.
629 * symtab.c (eq_symbol_entry): Update.
630 (symbol_cache_dump): Update.
631 (lookup_language_this): Update.
632 (find_pc_sect_line): Update.
633 (skip_prologue_sal): Update.
634 (symbol_search::compare_search_syms): Update.
635 (treg_matches_sym_type_name): Update.
636 (search_symbols): Update.
637 (print_symbol_info): Update.
638 (rbreak_command): Update.
639 (completion_list_add_symbol): Update.
640 (find_gnu_ifunc): Update.
641 (get_symbol_address): Update.
642 (search_module_symbols): Update.
643 (info_module_subcommand): Update.
644 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
645 (SYMBOL_LINKAGE_NAME): Remove.
646 (SYMBOL_DEMANGLED_NAME): Remove.
647 (SYMBOL_PRINT_NAME): Remove.
648 (SYMBOL_SEARCH_NAME): Remove.
649 * tracepoint.c (set_traceframe_context): Update.
650 (validate_actionline): Update.
651 (collection_list::collect_symbol): Update.
652 (encode_actions_1): Update.
653 (info_scope_command): Update.
654 (print_one_static_tracepoint_marker): Update.
655 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
656 * valops.c (address_of_variable): Update.
657 (find_overload_match): Update.
658 (find_oload_champ): Update.
659
660 2019-11-22 Christian Biesinger <cbiesinger@google.com>
661
662 * ada-lang.c (ada_lookup_simple_minsym): Update.
663 (ada_collect_symbol_completion_matches): Update.
664 * ada-tasks.c (read_atcb): Update.
665 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
666 (amd64_windows_skip_trampoline_code): Update.
667 * arm-tdep.c (skip_prologue_function): Update.
668 (arm_skip_stack_protector): Update.
669 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
670 (arm_wince_skip_main_prologue): Update.
671 * ax-gdb.c (gen_expr): Update.
672 * block.c (call_site_for_pc): Update.
673 * blockframe.c (find_pc_partial_function): Update.
674 * breakpoint.c (set_breakpoint_location_function): Update.
675 * btrace.c (ftrace_print_function_name): Update.
676 (ftrace_function_switched): Update.
677 * c-valprint.c (print_unpacked_pointer): Update.
678 * coffread.c (coff_symfile_read): Update.
679 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
680 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
681 * dwarf-index-write.c (write_psymbols): Update.
682 * dwarf2loc.c (call_site_to_target_addr): Update.
683 (func_verify_no_selftailcall): Update.
684 (tailcall_dump): Update.
685 (call_site_find_chain_1): Update.
686 (dwarf_expr_reg_to_entry_parameter): Update.
687 * elfread.c (elf_gnu_ifunc_record_cache): Update.
688 * eval.c (evaluate_funcall): Update.
689 (evaluate_subexp_standard): Update.
690 (evaluate_subexp_for_sizeof): Update.
691 * expprint.c (print_subexp_standard): Update.
692 (dump_subexp_body_standard): Update.
693 * frame.c (get_prev_frame_always_1): Update.
694 * frv-tdep.c (frv_skip_main_prologue): Update.
695 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
696 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
697 (gnuv3_get_typename_from_type_info): Update.
698 (gnuv3_skip_trampoline): Update.
699 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
700 * i386-tdep.c (i386_skip_main_prologue): Update.
701 (i386_pe_skip_trampoline_code): Update.
702 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
703 * infcall.c (get_function_name): Update.
704 * linespec.c (minsym_found): Update.
705 * linux-fork.c (info_checkpoints_command): Update.
706 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
707 (m32c_m16c_pointer_to_address): Update.
708 * maint.c (maintenance_translate_address): Update.
709 * minsyms.c (add_minsym_to_hash_table): Update.
710 (add_minsym_to_demangled_hash_table): Update.
711 (lookup_minimal_symbol_mangled): Update.
712 (lookup_minimal_symbol_demangled): Update.
713 (lookup_minimal_symbol_linkage): Update.
714 (lookup_minimal_symbol_text): Update.
715 (lookup_minimal_symbol_by_pc_name): Update.
716 (minimal_symbol_is_less_than): Update.
717 (compact_minimal_symbols): Update.
718 (build_minimal_symbol_hash_tables): Update.
719 (find_solib_trampoline_target): Update.
720 * mips-tdep.c (mips_stub_frame_sniffer): Update.
721 (mips_skip_pic_trampoline_code): Update.
722 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
723 * objc-lang.c (info_selectors_command): Update.
724 (info_classes_command): Update.
725 (find_methods): Update.
726 (find_imps): Update.
727 * p-valprint.c (pascal_val_print): Update.
728 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
729 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
730 * printcmd.c (build_address_symbolic): Update.
731 (info_symbol_command): Update.
732 * psymtab.c (psymbol_name_matches): Update.
733 (match_partial_symbol): Update.
734 (lookup_partial_symbol): Update.
735 (print_partial_symbols): Update.
736 (sort_pst_symbols): Update.
737 (maintenance_check_psymtabs): Update.
738 * python/py-framefilter.c (py_print_frame): Update.
739 * python/python.c (gdbpy_rbreak): Update.
740 * record-btrace.c (btrace_get_bfun_name): Update.
741 (btrace_call_history): Update.
742 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
743 (rs6000_skip_trampoline_code): Update.
744 * sol-thread.c (info_cb): Update.
745 * stabsread.c (scan_file_globals): Update.
746 * stack.c (find_frame_funname): Update.
747 (info_frame_command_core): Update.
748 * symmisc.c (dump_msymbols): Update.
749 * symtab.c (symbol_natural_name): Rename to..,
750 (general_symbol_info::natural_name): ...this.
751 (symbol_demangled_name): Rename to...
752 (general_symbol_info::demangled_name): ...this.
753 (symbol_search_name): Rename to...
754 (general_symbol_info::search_name): ...this.
755 (symbol_matches_search_name): Update.
756 (find_pc_sect_line): Update.
757 (skip_prologue_sal): Update.
758 (search_symbols): Update.
759 (print_msymbol_info): Update.
760 (rbreak_command): Update.
761 (completion_list_add_msymbol): Update.
762 (completion_list_objc_symbol): Update.
763 (get_msymbol_address): Update.
764 * symtab.h (struct general_symbol_info): Add member functions
765 natural_name (), linkage_name (), print_name (), demangled_name (),
766 and search_name ().
767 (SYMBOL_NATURAL_NAME): Update.
768 (symbol_natural_name): Move to a member function on general_symbol_info.
769 (SYMBOL_DEMANGLED_NAME): Update.
770 (symbol_demangled_name): Move to a member function on
771 general_symbol_info.
772 (SYMBOL_SEARCH_NAME): Update.
773 (symbol_search_name): Move to a member function on general_symbol_info.
774 (MSYMBOL_NATURAL_NAME): Remove.
775 (MSYMBOL_LINKAGE_NAME): Remove.
776 (MSYMBOL_PRINT_NAME): Remove.
777 (MSYMBOL_DEMANGLED_NAME): Remove.
778 (MSYMBOL_SEARCH_NAME): Remove.
779 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
780
781 2019-11-22 Christian Biesinger <cbiesinger@google.com>
782
783 * symtab.c (create_demangled_names_hash): Use per_bfd->
784 minimal_symbol_count for computing the initial size, if greater
785 than our default size.
786
787 2019-11-22 Tom de Vries <tdevries@suse.de>
788
789 * contrib/words.sh: Improve words extraction.
790
791 2019-11-22 Tom de Vries <tdevries@suse.de>
792
793 * contrib/words.sh: Combine sed invocations.
794
795 2019-11-21 Christian Biesinger <cbiesinger@google.com>
796
797 * Makefile.in: Update.
798 * demangle.c: Rename to...
799 * gdb-demangle.c: ..this.
800 (is_cplus_marker): Change return type to bool.
801 (_initialize_demangler): Rename to...
802 (_initialize_gdb_demangle): ...this.
803 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
804 * symtab.h (demangle): Remove declaration; instead include
805 gdb-demangle.h.
806
807 2019-11-21 Tom Tromey <tromey@adacore.com>
808
809 * gdbsupport/format.c (format_pieces): Parse %I64d.
810 * unittests/format_pieces-selftests.c (test_windows_formats): New
811 function.
812 (run_tests): Call it.
813
814 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
815
816 Byte reverse display of variables with DW_END_big, DW_END_little
817 (DW_AT_endianity) dwarf attributes if different than the native
818 byte order.
819 * ada-lang.c (ada_value_binop):
820 Use type_byte_order instead of gdbarch_byte_order.
821 * ada-valprint.c (printstr):
822 (ada_val_print_string):
823 * ada-lang.c (value_pointer):
824 (ada_value_binop):
825 Use type_byte_order instead of gdbarch_byte_order.
826 * c-lang.c (c_get_string):
827 Use type_byte_order instead of gdbarch_byte_order.
828 * c-valprint.c (c_val_print_array):
829 Use type_byte_order instead of gdbarch_byte_order.
830 * cp-valprint.c (cp_print_class_member):
831 Use type_byte_order instead of gdbarch_byte_order.
832 * dwarf2loc.c (rw_pieced_value):
833 Use type_byte_order instead of gdbarch_byte_order.
834 * dwarf2read.c (read_base_type): Handle DW_END_big,
835 DW_END_little
836 * f-lang.c (f_get_encoding):
837 Use type_byte_order instead of gdbarch_byte_order.
838 * findvar.c (default_read_var_value):
839 Use type_byte_order instead of gdbarch_byte_order.
840 * gdbtypes.c (check_types_equal):
841 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
842 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
843 and TYPE_ENDIANITY_LITTLE if set.
844 (type_byte_order): new function.
845 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
846 (struct main_type) <flag_endianity_not_default>:
847 New field.
848 (type_byte_order): New function.
849 * infcmd.c (default_print_one_register_info):
850 Use type_byte_order instead of gdbarch_byte_order.
851 * p-lang.c (pascal_printstr):
852 Use type_byte_order instead of gdbarch_byte_order.
853 * p-valprint.c (pascal_val_print):
854 Use type_byte_order instead of gdbarch_byte_order.
855 * printcmd.c (print_scalar_formatted):
856 Use type_byte_order instead of gdbarch_byte_order.
857 * solib-darwin.c (darwin_current_sos):
858 Use type_byte_order instead of gdbarch_byte_order.
859 * solib-svr4.c (solib_svr4_r_ldsomap):
860 Use type_byte_order instead of gdbarch_byte_order.
861 * stap-probe.c (stap_modify_semaphore):
862 Use type_byte_order instead of gdbarch_byte_order.
863 * target-float.c (target_float_same_format_p):
864 Use type_byte_order instead of gdbarch_byte_order.
865 * valarith.c (scalar_binop):
866 (value_bit_index):
867 Use type_byte_order instead of gdbarch_byte_order.
868 * valops.c (value_cast):
869 Use type_byte_order instead of gdbarch_byte_order.
870 * valprint.c (generic_emit_char):
871 (generic_printstr):
872 (val_print_string):
873 Use type_byte_order instead of gdbarch_byte_order.
874 * value.c (unpack_long):
875 (unpack_bits_as_long):
876 (unpack_value_bitfield):
877 (modify_field):
878 (pack_long):
879 (pack_unsigned_long):
880 Use type_byte_order instead of gdbarch_byte_order.
881 * findvar.c (unsigned_pointer_to_address):
882 (signed_pointer_to_address):
883 (unsigned_address_to_pointer):
884 (address_to_signed_pointer):
885 (default_read_var_value):
886 (default_value_from_register):
887 Use type_byte_order instead of gdbarch_byte_order.
888 * gnu-v3-abi.c (gnuv3_make_method_ptr):
889 Use type_byte_order instead of gdbarch_byte_order.
890 * riscv-tdep.c (riscv_print_one_register_info):
891 Use type_byte_order instead of gdbarch_byte_order.
892
893 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
894
895 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
896 (current_ui_gdb_stdin_ptr): Likewise.
897 (current_ui_gdb_stderr_ptr): Likewise.
898 (current_ui_gdb_stdlog_ptr): Likewise.
899 (current_ui_current_uiout_ptr): Likewise.
900 (gen_ret_current_ui_field_ptr): Remove.
901
902 2019-11-21 Tom de Vries <tdevries@suse.de>
903
904 PR gdb/24956
905 * cli/cli-script.c (execute_control_command): Only switch to
906 INTERP_CONSOLE's ui_out when INTERP_MI is active.
907
908 2019-11-19 Tom Tromey <tom@tromey.com>
909
910 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
911 Now static. Change type of "name".
912 (tui_set_win_height_command): Don't copy "arg".
913 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
914 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
915
916 2019-11-19 Ali Tamur <tamur@google.com>
917
918 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
919 "if (attr != nullptr)".
920 (dwarf2_find_base_address): Likewise.
921 (dwarf2_build_include_psymtabs): Likewise.
922 (read_cutu_die_from_dwo): Likewise.
923 (read_func_scope): Likewise.
924 (read_call_site_scope): Likewise.
925 (dwarf2_get_pc_bounds): Likewise.
926 (dwarf2_record_block_ranges): Likewise.
927 (dwarf2_add_field): Likewise.
928 (dwarf2_add_member_fn): Likewise.
929 (read_structure_type): Likewise.
930 (read_enumeration_type): Likewise.
931 (read_array_type): Likewise.
932 (read_array_order): Likewise.
933 (read_set_type): Likewise.
934 (read_common_block): Likewise.
935 (read_tag_reference_type): Likewise.
936 (read_tag_string_type): Likewise.
937 (read_subroutine_type): Likewise.
938 (read_base_type): Likewise.
939 (read_subrange_type): Likewise.
940 (new_symbol): Likewise.
941 (prepare_one_comp_unit): Likewise.
942
943 2019-11-19 Tom Tromey <tromey@adacore.com>
944
945 * windows-nat.c (windows_nat_target::attach): Include GetLastError
946 result in error when DebugActiveProcess fails.
947
948 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
949 Pedro Alves <palves@redhat.com>
950
951 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
952 * target.c (target_stack::push): Call 'unpush' if there's a
953 target on top of the stack.
954
955 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
956
957 * python/py-block.c (blpy_dealloc): Call tp_free.
958 (blpy_block_syms_dealloc): Likewise.
959 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
960 * python/py-inferior.c (infpy_dealloc): Likewise.
961 * python/py-lazy-string.c (stpy_dealloc): Likewise.
962 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
963 * python/py-symbol.c (sympy_dealloc): Likewise.
964 * python/py-symtab.c (stpy_dealloc): Likewise.
965 * python/py-type.c (typy_iterator_dealloc): Likewise.
966
967 2019-11-18 Christian Biesinger <cbiesinger@google.com>
968
969 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
970 constructor instead of using a class initializer.
971
972 2019-11-15 Christian Biesinger <cbiesinger@google.com>
973
974 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
975 * configure: Regenerate.
976 * configure.ac: Don't source common.host.
977 * gdbsupport/common.host: Remove.
978 * gdbsupport/mingw-strerror.c: Remove.
979 * gdbsupport/posix-strerror.c: Rename to...
980 * gdbsupport/safe-strerror.c: ...this.
981
982 2019-11-15 Christian Biesinger <cbiesinger@google.com>
983
984 * maint.c (scoped_command_stats::print_time): Use localtime_r
985 instead of localtime (provided through gnulib if necessary).
986 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
987 of ctime.
988
989 2019-11-15 Christian Biesinger <cbiesinger@google.com>
990
991 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
992 avoid compile errors.
993
994 2019-11-15 Christian Biesinger <cbiesinger@google.com>
995
996 * config.in: Regenerate.
997 * configure: Regenerate.
998 * gdbsupport/common.m4: No longer check for strerror_r.
999 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1000 POSIX version of strerror_r, now that gnulib provides it if
1001 necessary.
1002
1003 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1004
1005 * README (`configure' options): Update.
1006
1007 2019-11-14 Tom Tromey <tromey@adacore.com>
1008
1009 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1010 expected type for the RHS if the LHS is a convenience variable.
1011
1012 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1015 Provide explicit default and copy constructor.
1016
1017 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1018
1019 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1020 only call Py_INCREF (newbp) in the bppy_pending_object case.
1021
1022 2019-11-13 Tom Tromey <tromey@adacore.com>
1023
1024 PR build/25182:
1025 * psympriv.h (partial_symbol): Remove static assert.
1026 * symtab.h (general_symbol_info, symbol): Remove static assert.
1027
1028 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * gdbsupport/format.c (format_pieces::format_pieces): Support
1031 printf 'z' size modifier.
1032 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1033 * printcmd.c (ui_printf): Handle size_t_arg.
1034 * ui-out.c (ui_out::vmessage): Likewise.
1035 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1036 function.
1037 (run_tests): Call test_format_int_sizes.
1038
1039 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1040
1041 * ada-exp.y (write_ambiguous_var): Update.
1042 * buildsym.c (add_symbol_to_list): Update.
1043 * dwarf2read.c (read_variable): Update.
1044 (new_symbol): Update.
1045 * jit.c (finalize_symtab): Update.
1046 * language.c (language_alloc_type_symbol): Update.
1047 * symtab.c (fixup_symbol_section): Update.
1048 (initialize_objfile_symbol_1): Move code to...
1049 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1050 (allocate_symbol): Update.
1051 (allocate_template_symbol): Update.
1052 (get_symbol_address): Update.
1053 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1054 of having as a field, and add a constructor.
1055 (SYMBOL_VALUE): Update.
1056 (SYMBOL_VALUE_ADDRESS): Update.
1057 (SET_SYMBOL_VALUE_ADDRESS): Update.
1058 (SYMBOL_VALUE_BYTES): Update.
1059 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1060 (SYMBOL_BLOCK_VALUE): Update.
1061 (SYMBOL_VALUE_CHAIN): Update.
1062 (SYMBOL_LANGUAGE): Update.
1063 (SYMBOL_SECTION): Update.
1064 (SYMBOL_OBJ_SECTION): Update.
1065 (SYMBOL_SET_LANGUAGE): Update.
1066 (SYMBOL_SET_LINKAGE_NAME): Update.
1067 (SYMBOL_SET_NAMES): Update.
1068 (SYMBOL_NATURAL_NAME): Update.
1069 (SYMBOL_LINKAGE_NAME): Update.
1070 (SYMBOL_DEMANGLED_NAME): Update.
1071 (SYMBOL_SEARCH_NAME): Update.
1072 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1073 (struct symbol): Update.
1074 (struct template_symbol): Update.
1075 (struct rust_vtable_symbol): Update.
1076 * xcoffread.c (SYMBOL_DUP): Update.
1077
1078 2019-11-12 Tom Tromey <tom@tromey.com>
1079
1080 * tui/tui-layout.c (show_layout): Set current_layout.
1081 (show_source_disasm_command, show_data)
1082 (show_source_or_disasm_and_command): Don't set current_layout.
1083
1084 2019-11-12 Tom Tromey <tom@tromey.com>
1085
1086 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1087
1088 2019-11-12 Tom Tromey <tom@tromey.com>
1089
1090 * tui/tui-win.c (resize_message): New global.
1091 (show_tui_resize_message): New function.
1092 (tui_async_resize_screen): Print message if requested.
1093 (_initialize_tui_win): Add tui-resize-message setting.
1094 * NEWS: Add entry for new commands.
1095
1096 2019-11-11 Tom Tromey <tom@tromey.com>
1097
1098 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1099 functions.
1100
1101 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1102
1103 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1104
1105 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1108 function.
1109 * python/python-internal.h (gdbpy_lookup_static_symbols):
1110 Declare new function.
1111 * python/python.c (python_GdbMethods): Add
1112 gdb.lookup_static_symbols method.
1113 * NEWS: Mention gdb.lookup_static_symbols.
1114
1115 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1118 static block of current object file first. Also fix typo in
1119 header comment.
1120
1121 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * stack.c (set_last_displayed_sal): Delete.
1124 (last_displayed_sal_valid): Delete.
1125 (last_displayed_pspace): Delete.
1126 (last_displayed_addr): Delete.
1127 (last_displayed_symtab): Delete.
1128 (last_displayed_line): Delete.
1129 (class last_displayed_symtab_info_type): New.
1130 (last_displayed_symtab_info): New static global variable.
1131 (print_frame_info): Call methods on last_displayed_symtab_info.
1132 (clear_last_displayed_sal): Update header comment, and make use of
1133 last_displayed_symtab_info.
1134 (last_displayed_sal_is_valid): Likewise.
1135 (get_last_displayed_pspace): Likewise.
1136 (get_last_displayed_addr): Likewise.
1137 (get_last_displayed_symtab): Likewise.
1138 (get_last_displayed_line): Likewise.
1139 (get_last_displayed_sal): Likewise.
1140 * stack.h (clear_last_displayed_sal): Update header comment.
1141 (last_displayed_sal_is_valid): Likewise.
1142 (get_last_displayed_pspace): Likewise.
1143 (get_last_displayed_addr): Likewise.
1144 (get_last_displayed_symtab): Likewise.
1145 (get_last_displayed_line): Likewise.
1146 (get_last_displayed_sal): Likewise.
1147
1148 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * stack.c (frame_show_address): Convert return type to bool.
1151 * stack.h (frame_show_address): Likewise, and update header
1152 comment.
1153
1154 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1157 * unittests/vec-utils-selftests.c: New file.
1158 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1159
1160 2019-11-10 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1163 (tui_highlight_win): Likewise.
1164 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1165 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1166 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1167 Don't set can_highlight.
1168
1169 2019-11-10 Tom Tromey <tom@tromey.com>
1170
1171 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1172 Remove unused declaration.
1173
1174 2019-11-08 Tom Tromey <tromey@adacore.com>
1175
1176 * top.c (read_command_file): Update.
1177 (command_line_input): Make return type const.
1178 * python/py-gdb-readline.c: Update.
1179 * linespec.c (decode_line_2): Update.
1180 * defs.h (command_line_input): Make return type const.
1181 * cli/cli-script.c (read_next_line): Make return type const.
1182 * ada-lang.c (get_selections): Update.
1183
1184 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1185
1186 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1187 * mi/mi-main.c (output_cores): Likewise.
1188 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1189 (linux_xfer_osdata_modules): Likewise.
1190 * remote.c (register_remote_support_xml): Likewise.
1191 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1192 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1193
1194 2019-11-06 Tom Tromey <tom@tromey.com>
1195
1196 * tui/tui-interp.c: Don't include readline.h.
1197 * tui/tui-hooks.c: Don't include readline.h.
1198 * symmisc.c: Include tilde.h, not readline.h.
1199 * symfile.c: Include tilde.h, not readline.h.
1200 * source.c: Include tilde.h, not readline.h.
1201 * solib.c: Include tilde.h, not readline.h.
1202 * psymtab.c: Include tilde.h, not readline.h.
1203 * exec.c: Include tilde.h, not readline.h.
1204 * corelow.c: Include tilde.h, not readline.h.
1205 * cli/cli-dump.c: Include tilde.h, not readline.h.
1206 * cli/cli-cmds.c: Don't include readline.h.
1207
1208 2019-11-05 Tom Tromey <tom@tromey.com>
1209
1210 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1211 (tui_disassemble): Set addr_size.
1212 (tui_disasm_window::set_contents): Use addr_size.
1213
1214 2019-11-05 Tom Tromey <tom@tromey.com>
1215
1216 * rust-lang.c (rust_language_defn): Update.
1217 * python/py-value.c (valpy_string): Call c_get_string.
1218 * p-lang.c (pascal_language_defn): Update.
1219 * opencl-lang.c (opencl_language_defn): Update.
1220 * objc-lang.c (objc_language_defn): Update.
1221 * m2-lang.c (m2_language_defn): Update.
1222 * language.c (unknown_language_defn, auto_language_defn): Update.
1223 (default_get_string): Remove.
1224 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1225 * go-lang.c (go_language_defn): Update.
1226 * f-lang.c (f_language_defn): Update.
1227 * d-lang.c (d_language_defn): Update.
1228 * c-lang.c (c_language_defn, cplus_language_defn)
1229 (asm_language_defn, minimal_language_defn): Update.
1230 * ada-lang.c (ada_language_defn): Update.
1231 * language.h (struct language_defn) <la_get_string>: Remove.
1232 (LA_GET_STRING): Remove.
1233 (default_get_string): Don't declare.
1234
1235 2019-11-05 Tom Tromey <tom@tromey.com>
1236
1237 * tui/tui-source.h (struct tui_source_window): Inline
1238 constructor. Remove destructor.
1239 <style_changed, m_observable>: Move to superclass.
1240 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1241 (struct tui_source_window_base): Move private members to end.
1242 <style_changed, m_observable>: Move from tui_source_window.
1243 * tui/tui-winsource.c (tui_copy_source_line): Move from
1244 tui-source.c. Rename from copy_source_line. Add special handling
1245 for negative line number.
1246 (tui_source_window_base::style_changed): Move from
1247 tui_source_window.
1248 (tui_source_window_base): Register observer.
1249 (~tui_source_window_base): New.
1250 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1251 rename.
1252 (tui_source_window::set_contents): Use tui_copy_source_line.
1253 (tui_source_window::tui_source_window): Move to tui-source.h.
1254 (tui_source_window::~tui_source_window): Remove.
1255 (tui_source_window::style_changed): Move to superclass.
1256 * tui/tui-disasm.c (tui_disassemble): Create string file with
1257 styling, when possible. Add "addr_size" parameter.
1258 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1259 Don't compute maximum size.
1260 (len_without_escapes): New function
1261
1262 2019-11-05 Tom Tromey <tom@tromey.com>
1263
1264 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1265 std::string.
1266 * tui/tui-winsource.c (tui_show_source_line): Update.
1267 * tui/tui-source.c (tui_source_window::set_contents): Update.
1268 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1269
1270 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1271
1272 * symtab.h (gdb_static_assert): Put && operator at the beginning
1273 of the line instead of the end.
1274
1275 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1276
1277 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1278 and sizeof (symbol).
1279 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1280
1281 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1282
1283 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1284 * configure.host: Mark *-*-solaris2.10* obsolete.
1285 * configure.tgt: Mark Solaris < 11 obsolete.
1286 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1287 Update target triplet.
1288
1289 2019-11-01 Tom Tromey <tromey@adacore.com>
1290
1291 * utils.c (print_sys_errmsg): Simplify.
1292
1293 2019-11-01 Tom Tromey <tromey@adacore.com>
1294
1295 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1296
1297 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1298
1299 * configure: Regenerate.
1300 * configure.ac: Remove check for strerror_r.
1301 * gdbsupport/common.m4: Check for strerror_r.
1302
1303 2019-11-01 Luis Machado <luis.machado@linaro.org>
1304
1305 PR gdb/25124
1306
1307 * arm-tdep.c (arm_per_objfile): Rename to ...
1308 (arm_per_bfd): ... this.
1309 (arm_objfile_data_key): Rename to ...
1310 (arm_bfd_data_key): ... this.
1311 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1312 data.
1313 (arm_record_special_symbol): Likewise.
1314
1315 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1318 end.
1319 * c-typeprint.c (c_print_typedef): Likewise.
1320 * f-typeprint.c (f_print_typedef): Likewise.
1321 * m2-typeprint.c (m2_print_typedef): Likewise.
1322 * p-typeprint.c (pascal_print_typedef): Likewise.
1323 * rust-lang.c (rust_print_typedef): Likewise.
1324 * symtab.c (print_symbol_info): Print a newline after calling
1325 typedef_print.
1326
1327 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * symtab.c (info_module_cmdlist): New variable.
1330 (info_module_command): New function.
1331 (search_module_symbols): New function.
1332 (info_module_subcommand): New function.
1333 (struct info_modules_var_func_options): New struct.
1334 (info_modules_var_func_options_defs): New variable.
1335 (make_info_modules_var_func_options_def_group): New function.
1336 (info_module_functions_command): New function.
1337 (info_module_variables_command): New function.
1338 (info_module_var_func_command_completer): New function.
1339 (_initialize_symtab): Register new 'info module functions' and
1340 'info module variables' commands.
1341 * symtab.h (typedef symbol_search_in_module): New typedef.
1342 (search_module_symbols): Declare new function.
1343 * NEWS: Mention new commands.
1344
1345 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1348 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1349 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1350 MODULES_DOMAIN.
1351 (scan_partial_symbols): Only create partial module symbols for non
1352 declarations.
1353 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1354 and MODULES_DOMAIN.
1355 * symtab.c (search_domain_name): Likewise.
1356 (search_symbols): Likewise.
1357 (print_symbol_info): Likewise.
1358 (symtab_symbol_info): Likewise.
1359 (info_modules_command): New function.
1360 (_initialize_symtab): Register 'info modules' command.
1361 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1362 * NEWS: Mention new 'info modules' command.
1363
1364 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1365
1366 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1367 and $_gdb_maint_setting_str.
1368
1369 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1370
1371 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1372 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1373 (str_value_from_setting, gdb_setting_str_internal_fn)
1374 (gdb_maint_setting_str_internal_fn): New functions.
1375 (_initialize_cli_cmds): Define the new convenience functions.
1376 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1377 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1378
1379 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1380
1381 * agent.c (set_can_use_agent): When the setting is turned on,
1382 look up agent symbols if we don't have them yet.
1383 (agent_new_objfile): Don't look up agent symbols when the agent
1384 setting is off.
1385
1386 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1387
1388 * config.in: Regenerate.
1389
1390 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1391
1392 * configure: Regenerate.
1393 * configure.ac: Check for strerror_r.
1394 * gdbsupport/common-utils.h (safe_strerror): Change return value
1395 to const char * and document that this function is now threadsafe.
1396 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1397 thread_local and call strerror_r, if available.
1398 * utils.c (perror_string): Update.
1399 (print_sys_errmsg): Update.
1400
1401 2019-10-31 Luis Machado <luis.machado@linaro.org>
1402
1403 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1404 objfile_key.
1405 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1406 objfile to fetch per-bfd data.
1407 (arm_find_exidx_entry): Likewise.
1408
1409 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1410
1411 * gdbsupport/agent.c (debug_agent): Change type to bool.
1412 (use_agent): Likewise.
1413 (all_agent_symbols_look_up): Likewise.
1414 (agent_loaded_p): Change return value to bool.
1415 (agent_look_up_symbols): Update.
1416 (agent_capability_check): Change return value to bool.
1417 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1418 (debug_agent): Change type to bool.
1419 (use_agent): Likewise.
1420 (agent_capability_check): Change return value to bool.
1421
1422 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1423
1424 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1425 (build_minimal_symbol_hash_tables): Code to clear the table moved
1426 to clear_minimal_symbol_hash_tables.
1427 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1428 when needed.
1429
1430 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * infcmd.c: Remove includes.
1433 * infrun.c: Remove includes.
1434
1435 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1438 (grow_vect): Remove declaration.
1439 (ada_type_of_array): Remove declaration.
1440 (ada_update_initial_language): Remove declaration.
1441 (ada_fold_name): Remove declaration.
1442 (ada_fill_in_ada_prototype): Remove declaration.
1443 (user_select_syms): Remove declaration.
1444 (get_selections): Remove declaration.
1445 (ada_tag_type): Remove declaration.
1446 (ada_value_tag): Remove declaration.
1447 (ada_is_others_clause): Remove declaration.
1448 (ada_in_variant): Remove declaration.
1449 (ada_value_struct_elt): Remove declaration.
1450 (ada_attribute_name): Remove declaration.
1451 (ada_system_address_type): Remove declaration.
1452 * ada-lang.c (ada_watch_location_expression): Make static.
1453 (GROW_VECT): Move here from ada-lang.h.
1454 (grow_vect): Make static.
1455 (ada_update_initial_language): Make static.
1456 (ada_fold_name): Make static.
1457 (ada_type_of_array): Make static.
1458 (encoded_ordered_before): Move up.
1459 (sort_choices): Move up.
1460 (print_signatures): Move up.
1461 (ada_print_symbol_signature): Move up.
1462 (get_selections): Move up and make static.
1463 (user_select_syms): Move up and make static.
1464 (ada_value_struct_elt): Move up and make static.
1465 (ada_tag_type): Make static.
1466 (ada_value_tag): Make static.
1467 (ada_is_others_clause): Make static.
1468 (ada_in_variant): Make static.
1469 (ada_attribute_name): Make static.
1470
1471 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1472
1473 * ada-lang.c: Remove includes.
1474 * ada-typeprint.c: Remove includes.
1475 * ada-valprint.c: Remove includes.
1476
1477 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * addrmap.c: Add static assertions of type size, moved from
1480 _initialize_addrmap.
1481 (_initialize_addrmap): Remove.
1482
1483 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1484
1485 * coffread.c (record_minimal_symbol): Update.
1486 (process_coff_symbol): Update.
1487 * dbxread.c (read_dbx_symtab): Update.
1488 * dwarf2read.c (add_partial_symbol): Update.
1489 (fixup_go_packaging): Update.
1490 (load_partial_dies): Update.
1491 (new_symbol): Update.
1492 * elfread.c (record_minimal_symbol): Change signature to use
1493 gdb::string_view instead of name+len.
1494 (elf_symtab_read): Update.
1495 (elf_rel_plt_read): Update.
1496 * mdebugread.c (parse_partial_symbols): Update.
1497 (handle_psymbol_enumerators): Update.
1498 (new_symbol): Update.
1499 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1500 to use gdb::string_view instead of name+len.
1501 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1502 * psympriv.h (add_psymbol_to_list): Likewise.
1503 * psymtab.c (add_psymbol_to_bcache): Likewise.
1504 (add_psymbol_to_list): Likewise.
1505 * stabsread.c (define_symbol): Update.
1506 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1507 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1508 (symbol_set_names): Likewise.
1509 * xcoffread.c (scan_xcoff_symtab): Update.
1510
1511 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1512
1513 * symtab.h (symbol_set_names): Document that copy_name must be
1514 set to true for non-nullterminated strings.
1515 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1516 linkage_name if the entry was not found and we need to demangle.
1517
1518 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1519
1520 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1521 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1522 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1523 * gdbsupport/gdb_binary_search.h: New file.
1524
1525 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1526
1527 * NEWS: Mention new --with-system-gdbinit-dir option.
1528 * config.in: Regenerate.
1529 * configure: Regenerate.
1530 * configure.ac: Add new option --with-system-gdbinit-dir.
1531 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1532 for a ".gdb" suffix.
1533 * main.c (get_init_files): Change system_gdbinit argument to
1534 a vector and return the files in SYSTEM_GDBINIT_DIR in
1535 addition to SYSTEM_GDBINIT.
1536 (captured_main_1): Update.
1537 (print_gdb_help): Update.
1538 * top.c (print_gdb_configuration): Also print the value of
1539 SYSTEM_GDBINIT_DIR.
1540
1541 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1542
1543 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1544 that takes gdb::string_view arguments.
1545
1546 2019-10-26 Tom de Vries <tdevries@suse.de>
1547
1548 * aarch64-linux-tdep.c: Fix typos in comments.
1549 * aarch64-tdep.c: Same.
1550 * ada-lang.c: Same.
1551 * amd64-nat.c: Same.
1552 * arc-tdep.c: Same.
1553 * arch/aarch64-insn.c: Same.
1554 * block.c: Same.
1555 * breakpoint.h: Same.
1556 * btrace.h: Same.
1557 * c-varobj.c: Same.
1558 * cli/cli-decode.c: Same.
1559 * cli/cli-script.c: Same.
1560 * cli/cli-utils.h: Same.
1561 * coff-pe-read.c: Same.
1562 * coffread.c: Same.
1563 * compile/compile-cplus-symbols.c: Same.
1564 * compile/compile-object-run.c: Same.
1565 * completer.c: Same.
1566 * corelow.c: Same.
1567 * cp-support.c: Same.
1568 * demangle.c: Same.
1569 * dwarf-index-write.c: Same.
1570 * dwarf2-frame.c: Same.
1571 * dwarf2-frame.h: Same.
1572 * eval.c: Same.
1573 * frame-base.h: Same.
1574 * frame.h: Same.
1575 * gdbcmd.h: Same.
1576 * gdbtypes.h: Same.
1577 * gnu-nat.c: Same.
1578 * guile/scm-objfile.c: Same.
1579 * i386-tdep.c: Same.
1580 * i386-tdep.h: Same.
1581 * infcall.c: Same.
1582 * infcall.h: Same.
1583 * linux-nat.c: Same.
1584 * m68k-tdep.c: Same.
1585 * macroexp.c: Same.
1586 * memattr.c: Same.
1587 * mi/mi-cmd-disas.c: Same.
1588 * mi/mi-getopt.h: Same.
1589 * mi/mi-main.c: Same.
1590 * minsyms.c: Same.
1591 * nat/aarch64-sve-linux-sigcontext.h: Same.
1592 * objfiles.h: Same.
1593 * ppc-linux-nat.c: Same.
1594 * ppc-linux-tdep.c: Same.
1595 * ppc-tdep.h: Same.
1596 * progspace.h: Same.
1597 * prologue-value.h: Same.
1598 * python/py-evtregistry.c: Same.
1599 * python/py-instruction.h: Same.
1600 * record-btrace.c: Same.
1601 * record-full.c: Same.
1602 * remote.c: Same.
1603 * rs6000-tdep.c: Same.
1604 * ser-tcp.c: Same.
1605 * sol-thread.c: Same.
1606 * sparc-sol2-tdep.c: Same.
1607 * sparc64-tdep.c: Same.
1608 * stabsread.c: Same.
1609 * symfile.c: Same.
1610 * symtab.h: Same.
1611 * target.c: Same.
1612 * tracepoint.c: Same.
1613 * tui/tui-data.h: Same.
1614 * tui/tui-io.c: Same.
1615 * tui/tui-win.c: Same.
1616 * tui/tui.c: Same.
1617 * unittests/rsp-low-selftests.c: Same.
1618 * user-regs.h: Same.
1619 * utils.c: Same.
1620 * utils.h: Same.
1621 * valarith.c: Same.
1622 * valops.c: Same.
1623 * valprint.c: Same.
1624 * valprint.h: Same.
1625 * value.c: Same.
1626 * value.h: Same.
1627 * varobj.c: Same.
1628 * x86-nat.h: Same.
1629 * xtensa-tdep.c: Same.
1630
1631 2019-10-25 Ali Tamur <tamur@google.com>
1632
1633 * charset.c (find_charset_names): Reflect API change.
1634
1635 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1636
1637 * symtab.c (struct demangled_name_entry): Change demangled name
1638 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1639 part of the struct anymore.
1640 (symbol_set_names): No longer obstack allocate + copy the demangled
1641 name, just store the allocated name from bfd.
1642
1643 2019-10-25 Tom Tromey <tromey@adacore.com>
1644
1645 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1646 (bsearch_cie_cmp, add_cie): Remove.
1647 (find_cie): Reimplement.
1648 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1649 (dwarf2_build_frame_info): Update.
1650
1651 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1652
1653 PR gdb/25126
1654 * symfile.c (reread_symbols): Call forget_cached_source_info to
1655 clear the stale source cache.
1656
1657 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1658
1659 * configure: Regenerate.
1660 * configure.ac: Remove code that sets python_has_threads.
1661
1662 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1663
1664 * config.in: Regenerate.
1665 * configure: Regenerate.
1666 * configure.ac: Remove the code that uses sed to get the python
1667 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1668
1669 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1672 error paths.
1673
1674 2019-10-23 Tom Tromey <tom@tromey.com>
1675
1676 * arc-tdep.c: Remove ".." from include.
1677 * frv-tdep.c: Remove ".." from include.
1678 * lm32-tdep.c: Remove ".." from include.
1679 * microblaze-tdep.c: Remove ".." from include.
1680 * or1k-tdep.h: Remove ".." from include.
1681 * s12z-tdep.c: Remove ".." from include.
1682 * Makefile.in (OPCODES_CFLAGS): Add comment.
1683 (TOP_CFLAGS): New variable.
1684 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1685
1686 2019-10-23 Tom Tromey <tom@tromey.com>
1687
1688 * Makefile.in (READLINE_DIR): Update.
1689
1690 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1691
1692 * infcall.c (call_function_by_hand_dummy): Fix the function
1693 comment. And extract out a code section into...
1694 (reserve_stack_space): ...this new function.
1695
1696 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697
1698 * infcall.c (value_arg_coerce): Remove an unused parameter.
1699 (call_function_by_hand_dummy): Update the call to
1700 'value_arg_coerce'.
1701
1702 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1703
1704 * infcall.c (call_function_by_hand_dummy): Refactor.
1705
1706 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707
1708 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1709
1710 2019-10-23 Tom Tromey <tom@tromey.com>
1711
1712 * configure: Rebuild.
1713 * configure.ac: Don't check for sigprocmask.
1714 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1715
1716 2019-10-23 Tom Tromey <tom@tromey.com>
1717
1718 * configure: Rebuild.
1719 * acinclude.m4: Use m4_include, not sinclude.
1720
1721 2019-10-23 Tom de Vries <tdevries@suse.de>
1722
1723 PR breakpoints/24687
1724 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1725
1726 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1727
1728 * symtab.c (struct demangled_name_entry) <language>: Change from
1729 bitfield to regular variable.
1730
1731 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1732
1733 * symtab.c (struct demangled_name_entry): Add a constructor.
1734 (free_demangled_name_entry): New function to call the destructor
1735 for demangled_name_entry.
1736 (create_demangled_names_hash): Pass free_demangled_name_entry to
1737 htab_create_alloc.
1738 (symbol_set_names): Call placement new for demangled_name_entry.
1739 * utils.c: No longer include xxhash.h here, now that fast_hash
1740 is inlined in the header.
1741 * utils.h: Instead, include it here.
1742
1743 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1744
1745 * Makefile.in: Link with libxxhash.
1746 * config.in: Regenerate.
1747 * configure: Regenerate.
1748 * configure.ac: Search for libxxhash.
1749 * utils.c (fast_hash): Use xxhash if present.
1750
1751 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1752
1753 * utils.h (fast_hash): New function.
1754 * symtab.c (hash_demangled_name_entry): Call new function
1755 fast_hash.
1756
1757 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1758
1759 * symtab.c (struct demangled_name_entry): Change type of mangled
1760 to gdb::string_view. Also adds a constructor that takes the
1761 mangled name.
1762 (hash_demangled_name_entry): Update.
1763 (eq_demangled_name_entry): Update.
1764 (free_demangled_name_entry): New function to call the destructor
1765 now that this is not a POD anymore.
1766 (create_demangled_names_hash): Pass free_demangled_name_entry to
1767 htab_create_alloc.
1768 (symbol_set_names): Update.
1769
1770 2019-10-21 Ali Tamur <tamu@google.com>
1771
1772 * dwarf2read.c (dir_index): Change type.
1773 (file_name_index): Likewise.
1774 (line_header::include_dir_at): Change comment and implementation on
1775 whether it is DWARF 5.
1776 (line_header::is_valid_file_index): New function.
1777 (line_header::file_name_at): Change comment and implementation on
1778 whether it is DWARF 5.
1779 (line_header::file_names): Change to private field renamed as
1780 m_file_names and introduce a new accessor method.
1781 (line_header::file_names_size): New method.
1782 (line_header::include_dirs): Change to private field and rename as
1783 m_include_dirs.
1784 (dw2_get_file_names_reader): Define local var at a smaller scope and
1785 reflect API change.
1786 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1787 (process_structure_scope): Likewise.
1788 (line_header::add_include_dir): Change message and reflect renaming.
1789 (line_header::add_file_name): Likewise.
1790 (read_formatted_entries): Handle DW_FORM_data16.
1791 (dwarf_decode_line_header): Fix line header length calculation.
1792 (psymtab_include_file_name): Change comment and API.
1793 (lnp_state_machine::m_file): Update comment and reflect type change.
1794 (lnp_state_machine::record_line): Reflect type change.
1795 (dwarf_decode_lines): Reflect API change.
1796 (file_file_name): Likewise.
1797 (file_full_name): Likewise.
1798
1799 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1802
1803 2019-10-21 Tom Tromey <tom@tromey.com>
1804
1805 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1806
1807 2019-10-21 Tom Tromey <tom@tromey.com>
1808
1809 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1810 NM_H. Use AC_CONFIG_LINKS.
1811 * configure: Rebuild.
1812 * Makefile.in (NM_H): New variable.
1813 (generated_files): Add NM_H. Remove gcore.
1814 (nm.h, stamp-nmh): New targets.
1815
1816 2019-10-20 Tom Tromey <tom@tromey.com>
1817
1818 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1819 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1820 obsolete comment.
1821 (put_objfile_before): Now static.
1822
1823 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * gdbsupport/common-utils.h (startswith): Change return type to
1826 bool.
1827
1828 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1829
1830 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1831 * breakpoint.c (bp_locations_compare): Rename to...
1832 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1833 (update_global_location_list): Use std::sort instead of qsort.
1834 * buildsym.c (compare_line_numbers): Rename to...
1835 (lte_is_less_than): ...this, and change to std::sort semantics.
1836 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1837 instead of qsort.
1838 * disasm.c (compare_lines): Rename to...
1839 (line_is_less_than): ...this, and change to std::sort semantics.
1840 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1841 of qsort.
1842 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1843 (fde_is_less_than): ...this, and change to std::sort semantics.
1844 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1845 * mdebugread.c (compare_blocks):
1846 (block_is_less_than): ...this, and change to std::sort semantics.
1847 (sort_blocks): Call std::sort instead of qsort.
1848 * objfiles.c (qsort_cmp): Rename to...
1849 (sort_cmp): ...this, and change to std::sort semantics.
1850 (update_section_map): Call std::sort instead of qsort.
1851 * remote.c (compare_pnums): Remove.
1852 (map_regcache_remote_table): Call std::sort instead of qsort.
1853 * utils.c (compare_positive_ints): Remove.
1854 * utils.h (compare_positive_ints): Remove.
1855 * xcoffread.c (compare_lte): Remove.
1856 (arrange_linetable): Call std::sort instead of qsort.
1857
1858 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1859
1860 * symfile.c (init_entry_point_info): Fix typo.
1861 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1862
1863 2019-10-18 Tom de Vries <tdevries@suse.de>
1864
1865 * aarch64-tdep.c: Fix typos in comments.
1866 * ada-lang.c: Same.
1867 * ada-tasks.c: Same.
1868 * alpha-tdep.c: Same.
1869 * alpha-tdep.h: Same.
1870 * amd64-nat.c: Same.
1871 * amd64-windows-tdep.c: Same.
1872 * arc-tdep.c: Same.
1873 * arc-tdep.h: Same.
1874 * arch-utils.c: Same.
1875 * arm-nbsd-tdep.c: Same.
1876 * arm-tdep.c: Same.
1877 * ax-gdb.c: Same.
1878 * blockframe.c: Same.
1879 * btrace.c: Same.
1880 * c-varobj.c: Same.
1881 * coff-pe-read.c: Same.
1882 * coffread.c: Same.
1883 * cris-tdep.c: Same.
1884 * darwin-nat.c: Same.
1885 * dbxread.c: Same.
1886 * dcache.c: Same.
1887 * disasm.c: Same.
1888 * dtrace-probe.c: Same.
1889 * dwarf-index-write.c: Same.
1890 * dwarf2-frame-tailcall.c: Same.
1891 * dwarf2-frame.c: Same.
1892 * dwarf2read.c: Same.
1893 * eval.c: Same.
1894 * exceptions.c: Same.
1895 * fbsd-tdep.c: Same.
1896 * findvar.c: Same.
1897 * frame.c: Same.
1898 * frv-tdep.c: Same.
1899 * gnu-v3-abi.c: Same.
1900 * go32-nat.c: Same.
1901 * h8300-tdep.c: Same.
1902 * hppa-tdep.c: Same.
1903 * i386-linux-tdep.c: Same.
1904 * i386-tdep.c: Same.
1905 * ia64-libunwind-tdep.c: Same.
1906 * ia64-tdep.c: Same.
1907 * infcmd.c: Same.
1908 * infrun.c: Same.
1909 * linespec.c: Same.
1910 * linux-nat.c: Same.
1911 * linux-thread-db.c: Same.
1912 * machoread.c: Same.
1913 * mdebugread.c: Same.
1914 * mep-tdep.c: Same.
1915 * mn10300-tdep.c: Same.
1916 * namespace.c: Same.
1917 * objfiles.c: Same.
1918 * opencl-lang.c: Same.
1919 * or1k-tdep.c: Same.
1920 * osabi.c: Same.
1921 * ppc-linux-nat.c: Same.
1922 * ppc-linux-tdep.c: Same.
1923 * ppc-sysv-tdep.c: Same.
1924 * printcmd.c: Same.
1925 * procfs.c: Same.
1926 * record-btrace.c: Same.
1927 * record-full.c: Same.
1928 * remote-fileio.c: Same.
1929 * remote.c: Same.
1930 * rs6000-tdep.c: Same.
1931 * s12z-tdep.c: Same.
1932 * score-tdep.c: Same.
1933 * ser-base.c: Same.
1934 * ser-go32.c: Same.
1935 * skip.c: Same.
1936 * sol-thread.c: Same.
1937 * solib-svr4.c: Same.
1938 * solib.c: Same.
1939 * source.c: Same.
1940 * sparc-nat.c: Same.
1941 * sparc-sol2-tdep.c: Same.
1942 * sparc-tdep.c: Same.
1943 * sparc64-tdep.c: Same.
1944 * stabsread.c: Same.
1945 * stack.c: Same.
1946 * symfile.c: Same.
1947 * symtab.c: Same.
1948 * target-descriptions.c: Same.
1949 * target-float.c: Same.
1950 * thread.c: Same.
1951 * utils.c: Same.
1952 * valops.c: Same.
1953 * valprint.c: Same.
1954 * value.c: Same.
1955 * varobj.c: Same.
1956 * windows-nat.c: Same.
1957 * xcoffread.c: Same.
1958 * xstormy16-tdep.c: Same.
1959 * xtensa-tdep.c: Same.
1960
1961 2019-10-17 Tom Tromey <tromey@adacore.com>
1962
1963 * configure: Rebuild.
1964 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1965 in AC_CONFIG_FILES invocation.
1966 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1967 new-style config.status invocation.
1968
1969 2019-10-17 Tom de Vries <tdevries@suse.de>
1970
1971 * arm-nbsd-nat.c: Fix typos in comments.
1972 * arm-tdep.c: Same.
1973 * darwin-nat-info.c: Same.
1974 * dwarf2read.c: Same.
1975 * elfread.c: Same.
1976 * event-top.c: Same.
1977 * findvar.c: Same.
1978 * gdbtypes.c: Same.
1979 * hppa-tdep.c: Same.
1980 * i386-tdep.c: Same.
1981 * jit.c: Same.
1982 * main.c: Same.
1983 * mdebugread.c: Same.
1984 * moxie-tdep.c: Same.
1985 * nto-procfs.c: Same.
1986 * osabi.c: Same.
1987 * ppc-linux-tdep.c: Same.
1988 * remote.c: Same.
1989 * riscv-tdep.c: Same.
1990 * s390-tdep.c: Same.
1991 * sh-tdep.c: Same.
1992 * sparc-linux-tdep.c: Same.
1993 * sparc-nat.c: Same.
1994 * stack.c: Same.
1995 * target-descriptions.c: Same.
1996 * top.c: Same.
1997 * varobj.c: Same.
1998
1999 2019-10-16 Tom Tromey <tom@tromey.com>
2000
2001 * objfiles.h (struct objfile) <original_name>: Now const.
2002
2003 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2004
2005 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2006 pass on to sigsetjmp's second argument.
2007 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2008
2009 2019-10-16 Keith Seitz <keiths@redhat.com>
2010
2011 PR gdb/23567
2012 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2013 sections whose size is greater than the file size.
2014
2015 2019-10-16 Jim Wilson <jimw@sifive.com>
2016
2017 * riscv-tdep.c (riscv_gcc_target_options): New.
2018 (riscv_gnu_triplet_regexp): New.
2019 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2020 set_gdbarch_gnu_triplet_regexp.
2021
2022 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2023
2024 * Makefile.in: Add xml-builtin.h.
2025 * features/feature_to_c.sh: Add an include for xml-builtin.h
2026 to ensure that the compiler checks that the types match.
2027 * xml-builtin.h: New file.
2028 * xml-support.c (fetch_xml_builtin): Add missing const.
2029 * xml-support.h: Remove declaration of xml_builtins.
2030
2031 2019-10-16 Tom de Vries <tdevries@suse.de>
2032
2033 PR tdep/25096
2034 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2035 (amd64_classify_aggregate): ... here.
2036 (amd64_classify_aggregate_field): Handled fiels of nested structs
2037 recursively.
2038
2039 2019-10-16 Tom de Vries <tdevries@suse.de>
2040
2041 PR tdep/24104
2042 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2043 that handles 'theclass'.
2044
2045 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * linespec.c (decode_digits_ordinary): Update comment.
2048 * make-target-delegates: No longer need to handle VEC case.
2049 * memrange.c (normalize_mem_ranges): Update comment.
2050 * namespace.c (add_using_directive): Update comment.
2051 * objc-lang.c (uniquify_strings): Update comment.
2052 * ppc-linux-nat.c (struct thread_points): Update comment.
2053 * probe.h (find_probes_in_objfile): Update comment.
2054 * target.h (enum flash_preserve_mode): Update comment.
2055 * varobj.c (varobj_restrict_range): Update comment.
2056 * varobj.h (varobj_list_children): Update comment.
2057
2058 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * Makefile.in: Remove references to vec.h and vec.c.
2061 * aarch64-tdep.c: No longer include vec.h.
2062 * ada-lang.c: Likewise.
2063 * ada-lang.h: Likewise.
2064 * arm-tdep.c: Likewise.
2065 * ax.h: Likewise.
2066 * breakpoint.h: Likewise.
2067 * charset.c: Likewise.
2068 * cp-support.h: Likewise.
2069 * dtrace-probe.c: Likewise.
2070 * dwarf2read.c: Likewise.
2071 * extension.h: Likewise.
2072 * gdb_bfd.c: Likewise.
2073 * gdbsupport/gdb_vecs.h: Likewise.
2074 * gdbsupport/vec.c: Remove.
2075 * gdbsupport/vec.h: Remove.
2076 * gdbthread.h: Likewise.
2077 * guile/scm-type.c: Likewise.
2078 * inline-frame.c: Likewise.
2079 * machoread.c: Likewise.
2080 * memattr.c: Likewise.
2081 * memrange.h: Likewise.
2082 * namespace.h: Likewise.
2083 * nat/linux-btrace.h: Likewise.
2084 * osdata.c: Likewise.
2085 * parser-defs.h: Likewise.
2086 * progspace.h: Likewise.
2087 * python/py-type.c: Likewise.
2088 * record-btrace.c: Likewise.
2089 * rust-exp.y: Likewise.
2090 * solib-target.c: Likewise.
2091 * stap-probe.c: Likewise.
2092 * target-descriptions.c: Likewise.
2093 * target-memory.c: Likewise.
2094 * target.h: Likewise.
2095 * varobj.c: Likewise.
2096 * varobj.h: Likewise.
2097 * xml-support.h: Likewise.
2098
2099 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2102 Update for new std::vector based implementation.
2103 (process_psymtab_comp_unit_reader): Likewise.
2104 (scan_partial_symbols): Likewise.
2105 (recursively_compute_inclusions): Likewise.
2106 (compute_compunit_symtab_includes): Likewise.
2107 (process_imported_unit_die): Likewise.
2108 (queue_and_load_dwo_tu): Likewise.
2109 (follow_die_sig_1): Likewise.
2110 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2111 (typedef dwarf2_per_cu_ptr): Remove.
2112 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2113 function.
2114 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2115 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2116 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2117 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2118 std::vector.
2119
2120 2019-10-15 Tom Tromey <tromey@adacore.com>
2121
2122 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2123 TID.
2124
2125 2019-10-15 Tom Tromey <tromey@adacore.com>
2126
2127 * windows-nat.c (windows_nat_target::fetch_registers)
2128 (windows_nat_target::store_registers): Rename "pid" to "tid".
2129
2130 2019-10-15 Tom Tromey <tromey@adacore.com>
2131
2132 * gdbarch.h, gdbarch.c: Rebuild.
2133 * gdbarch.sh (gcc_target_options): Change return type to
2134 std::string.
2135 * compile/compile.c (get_args): Update.
2136 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2137 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2138 std::string.
2139 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2140 std::string.
2141 * arch-utils.c (default_gcc_target_options): Return std::string.
2142 * arch-utils.h (default_gcc_target_options): Return std::string.
2143 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2144
2145 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2146
2147 * breakpoint.c (breakpoint_chain): Make static.
2148 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2149 of accessing breakpoint_chain.
2150
2151 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2152
2153 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2154 to a gdb::function_view and return value to bool.
2155 * breakpoint.h (iterate_over_breakpoints): Likewise.
2156 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2157 (pop_dummy_frame): Update.
2158 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2159 (gdbscm_breakpoints): Update.
2160 * python/py-breakpoint.c (build_bp_list): Update.
2161 (gdbpy_breakpoints): Update.
2162 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2163 Update.
2164 (bpfinishpy_handle_stop): Update.
2165 (bpfinishpy_handle_exit): Update.
2166 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2167 (svr4_update_solib_event_breakpoints): Update.
2168
2169 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2170
2171 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2172 when unwrapping single-field structs.
2173
2174 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * dwarf2read.c: Remove includes.
2177
2178 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * ui-out.c (ui_out::call_do_message): Silence
2181 -Wformat-nonliteral warning.
2182
2183 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2186 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2187 include: readline/tilde.h.
2188
2189 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2190
2191 * remote.c (remote_target::get_trace_status): Remove declaration of
2192 trace_regblock_size.
2193
2194 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2195
2196 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2197 (show_user): Remove declaration of cmdlist.
2198 * cli/cli-cmds.h (max_user_call_depth): Declare.
2199 * cli/cli-script.c (execute_user_command): Remove declaration
2200 of max_user_call_depth.
2201
2202 2019-10-11 Jim Wilson <jimw@sifive.com>
2203
2204 * gdbsupport/print-utils.h (pulongest): Fix comment.
2205 (plongest): Likewise.
2206 (phex): Add missing comment, mention leading zeros.
2207 (phex_nz): Add mention of no leading zeros to comment.
2208
2209 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2210 plongest instead of unsigned long long cast.
2211
2212 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2213
2214 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2215 for external_editor_command and gdbtk_test.
2216
2217 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2218
2219 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2220 * varobj.c (varobjdebug): Move comment to...
2221 * varobj.h (varobjdebug): ...here, and declare.
2222
2223 2019-10-09 Tom Tromey <tom@tromey.com>
2224
2225 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2226 erase_data_content.
2227
2228 2019-10-09 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2231 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2232 * tui/tui-command.c (tui_cmd_window::resize)
2233 (tui_refresh_cmd_win): Update.
2234 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2235 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2236 * tui/tui-data.c (~tui_gen_win_info): Remove.
2237 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2238 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2239 (tui_redisplay_readline, tui_mld_flush)
2240 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2241 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2242 (tui_data_window::erase_data_content)
2243 (tui_data_item_window::rerender)
2244 (tui_data_item_window::refresh_window): Update.
2245 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2246 (box_win, tui_gen_win_info::make_window)
2247 (tui_gen_win_info::make_visible): Update.
2248 (tui_delete_win): Remove.
2249 * tui/tui-winsource.c
2250 (tui_source_window_base::do_erase_source_content): Update.
2251 (tui_show_source_line, tui_source_window_base::update_tab_width)
2252 (tui_source_window_base::update_exec_info): Update.
2253 * tui/tui-data.h (struct curses_deleter): New.
2254 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2255 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2256
2257 2019-10-09 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2260
2261 2019-10-09 Tom Tromey <tom@tromey.com>
2262
2263 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2264 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2265
2266 2019-10-09 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2269 window height directly.
2270 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2271 declare.
2272 * tui/tui-layout.c (tui_default_win_height): Remove.
2273 (tui_default_win_viewport_height): Remove.
2274
2275 2019-10-09 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui.h: Remove comments.
2278
2279 2019-10-09 Tom de Vries <tdevries@suse.de>
2280
2281 * python/lib/gdb/printer/bound_registers.py: Use
2282 '^builtin_type_bound128' as regexp argument for
2283 add_builtin_pretty_printer.
2284
2285 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2286
2287 * guile/guile.c (guile_extension_script_ops): Remove forward
2288 declaration and mark as static.
2289 (guile_script_ops): Likewise.
2290 (extension_language_guile): Move further down in the file so
2291 it can reference the definitions for guile_{extension_,}script_ops.
2292
2293 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2294
2295 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2296 except SORTL, DFLTCC, and KDSA.
2297
2298 2019-10-08 Tom Tromey <tromey@adacore.com>
2299
2300 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2301 (struct safe_symbol_file_add_args): Remove.
2302
2303 2019-10-08 Tom Tromey <tromey@adacore.com>
2304
2305 * windows-nat.c: Don't include buildsym-legacy.h.
2306
2307 2019-10-08 Tom Tromey <tromey@adacore.com>
2308
2309 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2310
2311 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2312
2313 * gdbtypes.c (overload_debug): Move comment to header.
2314 * gdbtypes.h (overload_debug): Declare.
2315 * valops.c: Remove declaration of overload_debug, instead
2316 include gdbtypes.h.
2317
2318 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2319
2320 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2321 through _().
2322 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2323 move comment...
2324 * language.h (lang_frame_mismatch_warn): ... here. Also add
2325 declaration.
2326 * top.c (lang_frame_mismatch_warn): Remove declaration.
2327 (check_frame_language_change): Pass lang_frame_mismatch_warn
2328 through _().
2329
2330 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2331
2332 * c-lang.h (vtbl_ptr_name): Declare.
2333 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2334 it from the header.
2335 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2336
2337 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2338
2339 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2340 gdb_static_assert.
2341
2342 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2343
2344 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2345 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2346 * ctfread.c: New file.
2347 * ctfread.h: New file.
2348 * elfread.c: Include ctfread.h.
2349 (struct elfinfo text_p): New member ctfsect.
2350 (elf_locate_sections): Mark CTF section.
2351 (elf_symfile_read): Call elfctf_build_psymtabs.
2352 * Makefile.in (LIBCTF): Add.
2353 (CLIBS): Use it.
2354 (CDEPS): Likewise.
2355 (DIST): Add ctfread.c.
2356
2357 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * ctfread.c (struct nextfield): Renamed to ...
2360 (struct ctf_nextfield): ... this.
2361 (struct field_info): Renamed to ...
2362 (strut ctf_field_info): ... this.
2363 (attach_fields_to_type): Update for renamed structures.
2364 (ctf_add_member_cb): Likewise.
2365 (ctf_add_enum_member_cb): Likewise.
2366 (process_struct_members): Likewise.
2367 (process_enum_type): Likewise.
2368
2369 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2370
2371 * tracectf.h: Rename, was ctf.h.
2372 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2373 * tracefile.c: Likewise.
2374 * tracepoint.c: Remove unused include ctf.h.
2375 * mi/mi-main.c: Likewise.
2376 * Makefile.in Replace ctf.c with tracectf.c.
2377
2378 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2379
2380 * version.in: Change version number to "9.0.50.DATE-git".
2381
2382 2019-10-03 Tom Tromey <tom@tromey.com>
2383
2384 PR rust/24976:
2385 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2386
2387 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2390 cp_search_name_hash.
2391 * NEWS: Add entry about nested function support.
2392
2393 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2394 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2397 for nested static variables when searchin VAR_DOMAIN.
2398 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2399 global scope, update comment.
2400 (add_partial_subprogram): Call add_partial_subprogram recursively
2401 for nested subroutines when processinng Fortran.
2402 (load_partial_dies): Process the child entities of a subprogram
2403 when processing Fortran.
2404 (partial_die_parent_scope): Handle building scope
2405 for Fortran nested functions.
2406 (process_die): Record that nested functions have a scope.
2407 (new_symbol): Always record Fortran subprograms on the global
2408 symbol list.
2409 (determine_prefix): How to build the prefix for Fortran
2410 subprograms.
2411
2412 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2415 have just sent the thread a SIGSTOP and are waiting for it to
2416 arrive.
2417
2418 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * btrace.c (btrace_add_pc): Remove whitespace before the template
2421 parameter in 'std::vector <...>'.
2422 (parse_xml_btrace_block): Likewise.
2423 (btrace_maint_decode_pt): Likewise.
2424 (btrace_maint_update_packets): Likewise.
2425 (btrace_maint_print_packets): Likewise.
2426 * btrace.h (struct btrace_maint_info): Likewise.
2427 * dwarf2read.c (struct type_unit_group): Likewise.
2428 (build_type_psymtabs_reader): Likewise.
2429 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2430 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2431 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2432
2433 2019-10-03 Tom de Vries <tdevries@suse.de>
2434
2435 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2436 the first line of the help text for set/show style metadata.
2437
2438 2019-10-02 Tom Tromey <tromey@adacore.com>
2439
2440 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2441 * gdbsupport/common-inferior.c: New file.
2442 * infcmd.c (startup_with_shell): Don't define.
2443 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2444 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2445 * inferior.h (startup_with_shell): Don't declare.
2446
2447 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2448
2449 * gdbsupport/gdb_assert.h: Include errors.h.
2450 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2451
2452 2019-10-02 Tom Tromey <tromey@adacore.com>
2453
2454 * NEWS: Add $_ada_exception entry.
2455 * ada-lang.c (struct ada_catchpoint): Add constructor.
2456 <m_kind>: New member.
2457 (allocate_location_exception, re_set_exception): Remove
2458 "ex" parameter.
2459 (should_stop_exception): Compute $_ada_exception.
2460 (check_status_exception, print_it_exception)
2461 (print_one_exception, print_mention_exception): Remove
2462 "ex" parameter.
2463 (allocate_location_catch_exception, re_set_catch_exception)
2464 (check_status_exception, print_it_catch_exception)
2465 (print_one_catch_exception, print_mention_catch_exception)
2466 (print_recreate_catch_exception)
2467 (allocate_location_catch_exception_unhandled)
2468 (re_set_catch_exception_unhandled)
2469 (check_status_exception, print_it_catch_exception_unhandled)
2470 (print_one_catch_exception_unhandled)
2471 (print_mention_catch_exception_unhandled)
2472 (print_recreate_catch_exception_unhandled)
2473 (allocate_location_catch_assert, re_set_catch_assert)
2474 (check_status_assert, print_it_catch_assert)
2475 (print_one_catch_assert, print_mention_catch_assert)
2476 (print_recreate_catch_assert)
2477 (allocate_location_catch_handlers, re_set_catch_handlers)
2478 (check_status_handlers, print_it_catch_handlers)
2479 (print_one_catch_handlers, print_mention_catch_handlers)
2480 (print_recreate_catch_handlers): Remove.
2481 (create_ada_exception_catchpoint): Update.
2482 (initialize_ada_catchpoint_ops): Update.
2483
2484 2019-10-02 Tom Tromey <tromey@adacore.com>
2485
2486 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2487 (create_excep_cond_exprs): Simplify exception string computation.
2488 (ada_exception_catchpoint_cond_string): Likewise.
2489
2490 2019-10-02 Tom Tromey <tromey@adacore.com>
2491
2492 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2493 * ada-lang.c (lesseq_defined_than): Handle
2494 LOC_STATIC.
2495 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2496 parameter.
2497 (dwarf2_has_info): Likewise.
2498 (new_symbol): Set maybe_copied on symbol when
2499 appropriate.
2500 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2501 parameter.
2502 <can_copy>: New member.
2503 * elfread.c (record_minimal_symbol): Set maybe_copied
2504 on symbol when appropriate.
2505 (elf_symfile_read): Update call to dwarf2_has_info.
2506 * minsyms.c (lookup_minimal_symbol_linkage): New
2507 function.
2508 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2509 * symtab.c (get_symbol_address, get_msymbol_address):
2510 New functions.
2511 * symtab.h (get_symbol_address, get_msymbol_address):
2512 Declare.
2513 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2514 maybe_copied.
2515 (struct symbol, struct minimal_symbol) <maybe_copied>:
2516 New member.
2517
2518 2019-10-02 Tom Tromey <tromey@adacore.com>
2519
2520 * source.c (struct current_source_location): New.
2521 (current_source_key): New global.
2522 (current_source_symtab, current_source_line)
2523 (current_source_pspace): Remove.
2524 (get_source_location): New function.
2525 (get_current_source_symtab_and_line)
2526 (set_default_source_symtab_and_line)
2527 (set_current_source_symtab_and_line)
2528 (clear_current_source_symtab_and_line, select_source_symtab)
2529 (info_source_command, print_source_lines_base)
2530 (info_line_command, search_command_helper, _initialize_source):
2531 Update.
2532
2533 2019-10-02 Tom Tromey <tromey@adacore.com>
2534
2535 * source.c (select_source_symtab): Don't call
2536 decode_line_with_current_source.
2537
2538 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * symtab.c (lookup_global_symbol): Search global block.
2541
2542 2019-10-02 Tom Tromey <tromey@adacore.com>
2543
2544 * coffread.c (process_coff_symbol): Update.
2545 * dwarf2read.c (var_decode_location, new_symbol): Update.
2546 * mdebugread.c (parse_symbol): Update.
2547 * objfiles.c (relocate_one_symbol): Update.
2548 * stabsread.c (define_symbol, fix_common_block)
2549 (scan_file_globals): Update.
2550 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2551 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2552 * xcoffread.c (process_xcoff_symbol): Update.
2553
2554 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2555
2556 * MAINTAINERS: Update my email address.
2557
2558 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2561 std::vector.
2562 (build_type_psymtabs_reader): Update for std::vector.
2563 (build_type_psymtab_dependencies): Likewise.
2564 * dwarf2read.h: Remove use of DEF_VEC_P.
2565 (typedef sig_type_ptr): Delete.
2566
2567 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2570 to std::vector.
2571 (btrace_maint_decode_pt): Likewise, and move allocation of the
2572 vector outside of the loop.
2573 (btrace_maint_update_packets): Update to handle change from VEC to
2574 std::vector.
2575 (btrace_maint_print_packets): Likewise.
2576 (maint_info_btrace_cmd): Likewise.
2577 * btrace.h: Remove use of DEF_VEC_O.
2578 (typedef btrace_pt_packet_s): Delete.
2579 (struct btrace_maint_info) <packets>: Change fromm VEC to
2580 std::vector.
2581 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2582
2583 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2586 make accesses into the vector constant references.
2587 (btrace_add_pc): Update for std::vector.
2588 (btrace_stitch_bts): Likewise.
2589 (parse_xml_btrace_block): Likewise.
2590 (btrace_maint_update_packets): Likewise.
2591 (btrace_maint_print_packets): Likewise.
2592 (maint_info_btrace_cmd): Likewise.
2593 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2594 std::vector.
2595 (btrace_data::empty): Likewise.
2596 (btrace_data_append): Likewise.
2597 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2598 (typedef btrace_block_s): Delete.
2599 (struct btrace_block): Add constructor.
2600 (struct btrace_data_bts) <blocks>: Change to std::vector.
2601 * nat/linux-btrace.c (perf_event_read_bts): Update for
2602 std::vector.
2603 (linux_read_bts): Likewise.
2604
2605 2019-10-01 Tom Tromey <tom@tromey.com>
2606
2607 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2608
2609 2019-10-01 Tom Tromey <tom@tromey.com>
2610
2611 * stack.c (print_frame, info_frame_command_core): Use
2612 styled_string.
2613 * linux-thread-db.c (try_thread_db_load_1)
2614 (try_thread_db_load_from_pdir_1): Use styled_string.
2615 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2616 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2617 (maybe_print_unsupported_script_warning)
2618 (maybe_print_script_not_found_warning): Use styled_string.
2619 * ada-lang.c (user_select_syms): Use styled_string.
2620
2621 2019-10-01 Tom Tromey <tom@tromey.com>
2622
2623 * p-lang.c (pascal_printstr): Use metadata style.
2624 * value.c (show_convenience): Use metadata style.
2625 * valprint.c (valprint_check_validity, val_print_optimized_out)
2626 (val_print_not_saved, val_print_unavailable)
2627 (val_print_invalid_address, generic_val_print, val_print)
2628 (value_check_printable, val_print_array_elements): Use metadata
2629 style.
2630 * ui-out.h (class ui_out) <field_fmt>: New overload.
2631 <do_field_fmt>: Add style parameter.
2632 * ui-out.c (ui_out::field_fmt): New overload.
2633 * typeprint.c (type_print_unknown_return_type)
2634 (val_print_not_allocated, val_print_not_associated): Use metadata
2635 style.
2636 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2637 parameter.
2638 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2639 * tracepoint.c (tvariables_info_1): Use metadata style.
2640 * stack.c (print_frame_arg, print_frame_info, print_frame)
2641 (info_frame_command_core): Use metadata style.
2642 * skip.c (info_skip_command): Use metadata style.
2643 * rust-lang.c (rust_print_enum): Use metadata style.
2644 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2645 metadata style.
2646 * python/py-framefilter.c (py_print_single_arg): Use metadata
2647 style.
2648 * printcmd.c (do_one_display, print_variable_and_value): Use
2649 metadata style.
2650 * p-valprint.c (pascal_val_print)
2651 (pascal_object_print_value_fields): Use metadata style.
2652 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2653 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2654 parameter.
2655 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2656 * m2-valprint.c (m2_print_long_set): Use metadata style.
2657 * m2-typeprint.c (m2_print_type): Use metadata style.
2658 * infcmd.c (print_return_value_1): Use metadata style.
2659 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2660 * f-valprint.c (info_common_command_for_block): Use metadata
2661 style.
2662 * f-typeprint.c (f_type_print_base): Use metadata style.
2663 * expprint.c (print_subexp_standard): Use metadata style.
2664 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2665 * cli/cli-style.h (class cli_style_option): Add constructor.
2666 (metadata_style): Declare.
2667 * cli/cli-style.c (metadata_style): New global.
2668 (_initialize_cli_style): Register metadata style.
2669 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2670 parameter.
2671 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2672 * c-typeprint.c (c_type_print_base_struct_union)
2673 (c_type_print_base_1): Use metadata style.
2674 * breakpoint.c (watchpoint_value_print)
2675 (print_one_breakpoint_location): Use metadata style.
2676 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2677 style.
2678 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2679 style.
2680 * ada-valprint.c (val_print_packed_array_elements, printstr)
2681 (print_field_values, ada_val_print_ref, ada_val_print): Use
2682 metadata style.
2683 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2684 style.
2685 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2686 style.
2687 * ada-lang.c (user_select_syms): Use metadata style.
2688
2689 2019-10-01 Tom Tromey <tom@tromey.com>
2690
2691 * cli/cli-cmds.c (pwd_command): Style output.
2692
2693 2019-10-01 Pedro Alves <palves@redhat.com>
2694 Tom Tromey <tom@tromey.com>
2695
2696 * symtab.c (print_symbol_info): Use %ps.
2697 (print_msymbol_info): Use %ps.
2698 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2699 * printcmd.c (print_variable_and_value): Use %ps.
2700 * macrocmd.c (show_pp_source_pos): Use %ps.
2701 * infrun.c (print_exited_reason): Use ui_out::message.
2702 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2703 (describe_other_breakpoints): Use ui_out::message and new
2704 formats.
2705 (say_where): Use new formats.
2706 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2707 and new formats.
2708
2709 2019-10-01 Pedro Alves <palves@redhat.com>
2710 Tom Tromey <tom@tromey.com>
2711
2712 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2713 (test_gdb_formats): New function.
2714 (run_tests): Call it.
2715 (test_format_specifier): Update.
2716 * utils.h (fputs_filtered): Update comment.
2717 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2718 (fputs_styled_unfiltered): Declare.
2719 * utils.c (fputs_styled_unfiltered): New function.
2720 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2721 (vfprintf_filtered): Update.
2722 (vfprintf_unfiltered, vprintf_filtered): Update.
2723 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2724 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2725 disallow_ui_out_field>: New constants.
2726 (enum class field_kind): New.
2727 (struct base_field_s, struct signed_field_s): New.
2728 (signed_field): New function.
2729 (struct string_field_s): New.
2730 (string_field): New function.
2731 (struct styled_string_s): New.
2732 (styled_string): New function.
2733 (class ui_out) <message>: Add comment.
2734 <vmessage, call_do_message>: New methods.
2735 <do_message>: Add style parameter.
2736 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2737 methods.
2738 (ui_out::message): Rewrite.
2739 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2740 parameter.
2741 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2742 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2743 gdb_extensions parameter.
2744 (class format_piece): Add parameter to constructor.
2745 (n_int_args): New field.
2746 * gdbsupport/format.c (format_pieces::format_pieces): Add
2747 gdb_extensions parameter. Handle '*'.
2748 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2749 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2750 vfprintf_styled_no_gdbfmt.
2751 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2752 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2753 unfiltered output.
2754 * ui-style.h (struct ui_file_style) <ptr>: New method.
2755
2756 2019-10-01 Tom Tromey <tom@tromey.com>
2757
2758 * unittests/format_pieces-selftests.c: Update. Add final format.
2759 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2760 empty literal pieces.
2761
2762 2019-10-01 Tom Tromey <tom@tromey.com>
2763
2764 * ui-out.h (enum class ui_out_style_kind): Remove.
2765 (class ui_out) <field_string, field_stsream, do_field_string>:
2766 Change type of "style".
2767 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2768 (ui_out::field_string): Update.
2769 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2770 of "style".
2771 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2772 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2773 * stack.c (print_frame_arg, print_frame_info, print_frame):
2774 Update.
2775 * source.c (print_source_lines_base): Update.
2776 * solib.c (info_sharedlibrary_command): Update.
2777 * skip.c (info_skip_command): Update.
2778 * record-btrace.c (btrace_call_history_src_line)
2779 (btrace_call_history): Update.
2780 * python/py-framefilter.c (py_print_frame): Update.
2781 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2782 "style".
2783 * mi/mi-out.c (mi_ui_out::do_table_header)
2784 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2785 (mi_ui_out::do_field_string): Update.
2786 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2787 Update.
2788 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2789 "style".
2790 * cli-out.c (cli_ui_out::do_table_header)
2791 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2792 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2793 (cli_ui_out::do_field_fmt): Update.
2794 * breakpoint.c (print_breakpoint_location): Update.
2795 (update_static_tracepoint): Update.
2796
2797 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2798
2799 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2800 conversion of gdb_datadir.
2801 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2802 remove not needed c_str ().
2803
2804 2019-09-30 Ali Tamur <tamur@google.com>
2805
2806 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2807 (dwarf2_string_attr): Likewise.
2808
2809 2019-09-30 Ali Tamur <tamur@google.com>
2810
2811 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2812 (process_full_type_unit): Likewise.
2813 (dump_die_shallow): Likewise.
2814 (cu_debug_loc_section): Likewise.
2815
2816 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2817
2818 * minsyms.c (compare_minimal_symbols): Rename to...
2819 (minimal_symbol_is_less_than): ...this, and adjust to STL
2820 conventions (return bool, take arguments as references)
2821 (minimal_symbol_reader::install): Call std::sort instead
2822 of qsort.
2823
2824 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2825
2826 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2827 hash and why.
2828 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2829 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2830
2831 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2832
2833 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2834 * psympriv.h (add_psymbol_to_list): Move comment here and update
2835 it.
2836
2837 2019-09-29 Tom de Vries <tdevries@suse.de>
2838
2839 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2840 Use $tmpdir/$(basename "$output_file").dwz instead of
2841 "${output_file}.dwz".
2842
2843 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 PR gdb/25045
2846 * hppa-linux-nat.c: Include gdbarch.h.
2847
2848 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2849
2850 * blockframe.c (find_pc_partial_function): Change return type to bool.
2851 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2852 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2853 (stub_gnu_ifunc_resolve_name): Likewise.
2854 * symtab.c (compare_filenames_for_search): Likewise.
2855 (compare_glob_filenames_for_search): Likewise.
2856 (matching_obj_sections): Likewise.
2857 (symbol_matches_domain): Likewise.
2858 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2859 (find_line_pc): Change return type to bool.
2860 (find_line_pc_range): Likewise.
2861 (producer_is_realview): Likewise.
2862 * symtab.h (symbol_matches_domain): Likewise.
2863 (find_pc_partial_function): Likewise.
2864 (find_pc_line_pc_range): Likewise.
2865 (in_gnu_ifunc_stub): Likewise.
2866 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2867 (find_line_pc): Likewise.
2868 (find_line_pc_range): Likewise.
2869 (matching_obj_sections): Likewise.
2870 (find_line_symtab): Change out parameter to bool.
2871 (producer_is_realview): Change return type to bool.
2872 (compare_filenames_for_search): Likewise.
2873 (compare_glob_filenames_for_search): Likewise.
2874
2875 2019-09-26 Tom Tromey <tom@tromey.com>
2876
2877 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2878 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2879 * gdb_usleep.h: Remove.
2880 * gdb_usleep.c: Remove.
2881 * utils.c: Don't include gdb_usleep.h.
2882
2883 2019-09-26 Tom Tromey <tromey@adacore.com>
2884
2885 * python/py-type.c (type_to_type_object): Call check_typedef
2886 for stub types.
2887
2888 2019-09-26 Tom Tromey <tom@tromey.com>
2889
2890 * utils.h (initialize_utils): Don't declare.
2891 * top.c (gdb_init): Don't call initialize_utils.
2892 * utils.c (initialize_utils): Remove. Move contents...
2893 (_initialize_utils): ... here.
2894
2895 2019-09-25 Tom Tromey <tom@tromey.com>
2896
2897 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2898 * utils.h (make_hex_string): Don't declare.
2899 * utils.c (make_hex_string): Remove.
2900
2901 2019-09-24 Tom de Vries <tdevries@suse.de>
2902
2903 PR gdb/23815
2904 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2905 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2906
2907 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2908
2909 * NEWS: Mention new simulator port for PRU.
2910
2911 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2912
2913 * ada-exp.y (write_object_remaining): Update.
2914 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2915 and eliminate the static buffer.
2916 (ada_decode_symbol): Update.
2917 (ada_la_decode): Update.
2918 (ada_sniff_from_mangled_name): Update.
2919 (is_valid_name_for_wild_match): Update.
2920 (ada_lookup_name_info::matches): Update and simplify.
2921 (name_matches_regex): Update.
2922 (ada_add_global_exceptions): Update.
2923 * ada-lang.h (ada_decode): Update signature.
2924 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2925 * dwarf-index-write.c (debug_names::insert): Update.
2926
2927 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2930 formatting.
2931
2932 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2935 Change "nonzero" to "true" in documentation.
2936
2937 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2938
2939 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2940 (_initialize_darwin_solib): Don't set
2941 darwin_so_ops.lookup_lib_global_symbol.
2942 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2943 set_gdbarch_iterate_over_objfiles_in_search_order.
2944 (elf_lookup_lib_symbol): Rename to...
2945 (svr4_iterate_over_objfiles_in_search_order): this, and update
2946 to iterate semantics.
2947 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2948 * solib.c (solib_global_lookup): Remove.
2949 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2950 (solib_global_lookup): Remove.
2951 * symtab.c (lookup_global_or_static_symbol): Remove call to
2952 solib_global_lookup.
2953
2954 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2955
2956 * NEWS: Move entries about default MI version now being
2957 version 3, and about the GDB/MI fix for multi-location
2958 breakpoints to the "since GDB 8.3" section.
2959
2960 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2961
2962 GDB 8.3.1 released.
2963
2964 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2965
2966 * NEWS: Mention that Cell/B.E. debugging support was removed.
2967 * MAINTAINERS: Remove spu target.
2968
2969 * config/djgpp/fnchange.lst: Remove entries for removed files.
2970
2971 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2972 spu-multiarch.o, and spu-tdep.o.
2973 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2974 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2975 spu-multiarch.c, and spu-tdep.c.
2976 * spu-linux-nat.c: Remove file.
2977 * spu-multiarch.c: Remove file.
2978 * spu-tdep.c: Remove file.
2979 * spu-tdep.h: Remove file.
2980 * solib-spu.c: Remove file.
2981 * solib-spu.h: Remove file.
2982
2983 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2984 * configure.nat (spu-linux): Remove.
2985 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2986 solib-multiarch.o from gdb_target_obs.
2987 (spu*-*-*): Remove.
2988
2989 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2990 feature flag.
2991 (ppc_linux_no_features): Update.
2992 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2993 Cell/B.E. support.
2994 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2995 (tdesc_powerpc_cell64l): Likewise.
2996 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2997 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2998 Cell/B.E. support.
2999 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3000 Do not include "features/rs6000/powerpc-cell32l.c" or
3001 "features/rs6000/powerpc-cell64l.c".
3002 (ppc_linux_spu_section): Remove.
3003 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3004 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3005 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3006 (ppc_linux_spe_context_lookup): Remove.
3007 (ppc_linux_spe_context_inferior_created): Remove.
3008 (ppc_linux_spe_context_solib_loaded): Remove.
3009 (ppc_linux_spe_context_solib_unloaded): Remove.
3010 (ppc_linux_spe_context): Remove.
3011 (struct ppu2spu_cache): Remove.
3012 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3013 (struct ppu2spu_data): Remove.
3014 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3015 ppu2spu_unwind): Remove.
3016 (ppc_linux_init_abi): Remove Cell/B.E. support.
3017 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3018
3019 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3020 (rs6000/powerpc-cell64l-expedite): Likewise
3021 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3022 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3023 rs6000/powerpc-cell64l.xml.
3024 * features/rs6000/powerpc-cell32l.xml: Remove.
3025 * features/rs6000/powerpc-cell64l.xml: Likewise.
3026 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3027 * features/rs6000/powerpc-cell64l.c: Likewise.
3028 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3029 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3030 * regformats/reg-spu.dat: Remove.
3031
3032 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3033 * corelow.c (struct spuid_list): Remove.
3034 (add_to_spuid_list): Remove.
3035 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3036 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3037 (remote_protocol_features): Remove associated entries.
3038 (_initialize_remote): No longer initialize them.
3039 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3040 * linux-nat.c (SPUFS_MAGIC): Remove.
3041 (linux_proc_xfer_spu): Remove.
3042 (spu_enumerate_spu_ids): Remove.
3043 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3044 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3045 (linux_make_corefile_notes): No longer call it.
3046
3047 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3048 (cooked_write_test): Likewise.
3049
3050 2019-09-20 Tom Tromey <tom@tromey.com>
3051
3052 * NEWS: Mention case-sensitivity of TUI commands.
3053 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3054 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3055 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3056
3057 2019-09-20 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-source.c (tui_source_window::set_contents): Use
3060 make_unique_xstrdup.
3061 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3062 make_unique_xstrdup.
3063
3064 2019-09-20 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-data.c: Remove separator comments.
3067 * tui/tui-layout.c: Remove separator comments.
3068 * tui/tui-win.c: Remove separator comments.
3069 * tui/tui-wingeneral.c: Remove separator comments.
3070
3071 2019-09-20 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui.h (strcat_to_buf): Don't declare.
3074 * tui/tui.c (strcat_to_buf): Remove.
3075
3076 2019-09-20 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3079 from "fullname".
3080 * tui/tui-source.c (tui_source_window::set_contents)
3081 (tui_source_window::location_matches_p)
3082 (tui_source_window::maybe_update): Update.
3083
3084 2019-09-20 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3087 Update.
3088 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3089 prefix.
3090 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3091 (tui_data_window::line_from_reg_element_no)
3092 (tui_data_window::first_reg_element_no_inline)
3093 (tui_data_window::show_registers)
3094 (tui_data_window::show_register_group)
3095 (tui_data_window::display_registers_from)
3096 (tui_data_window::display_registers_from_line)
3097 (tui_data_window::first_data_item_displayed)
3098 (tui_data_window::delete_data_content_windows)
3099 (tui_data_window::erase_data_content)
3100 (tui_data_window::do_scroll_vertical)
3101 (tui_data_window::refresh_window)
3102 (tui_data_window::check_register_values): Update.
3103
3104 2019-09-20 Tom Tromey <tom@tromey.com>
3105
3106 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3107 (struct tui_locator_window) <full_name, proc_name>: Now
3108 std::string.
3109 * tui/tui-stack.c (tui_locator_window::make_status_line)
3110 (tui_locator_window::set_locator_fullname)
3111 (tui_locator_window::set_locator_info): Update.
3112 * tui/tui-source.c (tui_source_window::set_contents)
3113 (tui_source_window::showing_source_p): Update.
3114
3115 2019-09-20 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3118 Don't call tui_locator_win_info_ptr.
3119
3120 2019-09-20 Tom Tromey <tom@tromey.com>
3121
3122 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3123
3124 2019-09-20 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3127 height for locator.
3128 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3129 * tui/tui-layout.c (show_source_disasm_command, show_data)
3130 (show_source_or_disasm_and_command): Use 1 as height for locator.
3131
3132 2019-09-20 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui.c (tui_enable): Update.
3135 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3136 Update.
3137 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3138 Update.
3139 * tui/tui-data.c (win_resized): Now bool.
3140 (tui_win_resized): Return bool.
3141 (tui_set_win_resized_to): Accept a bool.
3142
3143 2019-09-20 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3146 Change type of "refresh_values_only".
3147 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3148 type of "refresh_values_only".
3149
3150 2019-09-20 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3153 std::string.
3154 (tui_disassemble): Add "pos" parameter.
3155 (tui_disasm_window::set_contents): Simplify.
3156
3157 2019-09-20 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-winsource.h (struct tui_source_window_base)
3160 <show_source_content>: Now private.
3161 * tui/tui-winsource.c
3162 (tui_source_window_base::show_source_content): Don't handle empty
3163 content case.
3164
3165 2019-09-20 Tom Tromey <tom@tromey.com>
3166
3167 * tui/tui-layout.c (show_source_disasm_command)
3168 (show_source_or_disasm_and_command): Don't call
3169 show_source_content.
3170
3171 2019-09-20 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3174 Declare.
3175 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3176 from tui_make_status_line.
3177 (tui_locator_window::rerender): Update.
3178
3179 2019-09-20 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3182 (tui_locator_window::rerender): Update.
3183
3184 2019-09-20 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-winsource.h (struct tui_source_window_base)
3187 <~tui_source_window_base>: Don't declare.
3188 <fullname>: Remove.
3189 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3190 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3191 member.
3192 * tui/tui-source.c (tui_source_window::set_contents): Update.
3193 (tui_source_window::location_matches_p)
3194 (tui_source_window::maybe_update): Update.
3195
3196 2019-09-20 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-winsource.h (~tui_source_element): Remove.
3199 (tui_source_element): Update.
3200 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3201 * tui/tui-winsource.c (tui_show_source_line): Update.
3202 * tui/tui-source.c (tui_source_window::set_contents): Update.
3203 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3204
3205 2019-09-20 Tom Tromey <tom@tromey.com>
3206
3207 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3208 declare.
3209 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3210 tui_clear_source_windows_detail.
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <clear_detail>: Don't declare.
3213 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3214 Remove.
3215 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3216
3217 2019-09-20 Tom Tromey <tromey@adacore.com>
3218
3219 PR ada/24919:
3220 * block.c (contained_in): Fix final return value.
3221
3222 2019-09-20 Alan Modra <amodra@gmail.com>
3223
3224 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3225 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3226 (read_indirect_string_from_dwz): Use bfd accessor.
3227 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3228 * machoread.c (macho_symfile_read_all_oso): Likewise.
3229 * solib.c (solib_bfd_open): Likewise.
3230
3231 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3232
3233 * eval.c: Move declaration of overload_resolution to...
3234 * value.h: ...here.
3235
3236 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3237
3238 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3239 * arm-linux-tdep.c: Likewise.
3240 * arm-nbsd-nat.c: Likewise.
3241 * arm-tdep.h: Declare arm_apcs_32.
3242 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3243
3244 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3245
3246 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3247 * dwarf2read.h: Declare dwarf_always_disassemble.
3248
3249 2019-09-19 Tom de Vries <tdevries@suse.de>
3250
3251 PR gdb/25009
3252 * source-cache.c (source_cache::ensure): Catch exception thrown during
3253 construction of the highlighter.
3254
3255 2019-09-18 Alan Modra <amodra@gmail.com>
3256
3257 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3258 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3259 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3260 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3261 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3262 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3263 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3264 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3265 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3266 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3267 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3268 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3269 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3270 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3271 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3272 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3273 * mi/mi-interp.c: Update throughout for bfd section macro and
3274 function changes.
3275 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3276 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3277
3278 2019-09-18 Tom Tromey <tom@tromey.com>
3279
3280 * NEWS: Add entry.
3281 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3282 call rl_initialize.
3283 (tui_enable): Do not call rl_initialize.
3284
3285 2019-09-18 Christian Groessler <chris@groessler.org>
3286
3287 * alpha-linux-nat.c: Include gdbarch.h.
3288
3289 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * ui-file.c: Include cli/cli-style.h.
3292 (term_cli_styling): Remove cli_styling declaration.
3293
3294 2019-09-18 Alan Modra <amodra@gmail.com>
3295
3296 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3297 to bfd_asymbol_section.
3298
3299 2019-09-18 Alan Modra <amodra@gmail.com>
3300
3301 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3302 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3303 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3304
3305 2019-09-18 Alan Modra <amodra@gmail.com>
3306
3307 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3308 * spu-linux-nat.c (spu_bfd_open): Likewise.
3309
3310 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3311
3312 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3313 to bool to match definition in dwarf2read.c.
3314
3315 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3316
3317 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3318 (print_signatures): Likewise.
3319 (trust_pad_over_xvs): Likewise.
3320 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3321 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3322 * arm-linux-nat.c (arm_apcs_32): Likewise.
3323 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3324 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3325 * arm-tdep.c (arm_debug): Likewise.
3326 (arm_apcs_32): Likewise.
3327 * auto-load.c (debug_auto_load): Likewise.
3328 (auto_load_gdb_scripts): Likewise.
3329 (global_auto_load): Likewise.
3330 (auto_load_local_gdbinit): Likewise.
3331 (auto_load_local_gdbinit_loaded): Likewise.
3332 * auto-load.h (global_auto_load): Likewise.
3333 (auto_load_local_gdbinit): Likewise.
3334 (auto_load_local_gdbinit_loaded): Likewise.
3335 * breakpoint.c (disconnected_dprintf): Likewise.
3336 (breakpoint_proceeded): Likewise.
3337 (automatic_hardware_breakpoints): Likewise.
3338 (always_inserted_mode): Likewise.
3339 (target_exact_watchpoints): Likewise.
3340 (_initialize_breakpoint): Update.
3341 * breakpoint.h (target_exact_watchpoints): Change to bool.
3342 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3343 * cli/cli-cmds.c (trace_commands): Likewise.
3344 * cli/cli-cmds.h (trace_commands): Likewise.
3345 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3346 to bool*.
3347 * cli/cli-logging.c (logging_overwrite): Change to bool.
3348 (logging_redirect): Likewise.
3349 (debug_redirect): Likewise.
3350 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3351 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3352 to bool.
3353 <boolean_option_def>: Update.
3354 (struct flag_option_def): Change default type of Context to bool
3355 from int.
3356 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3357 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3358 (get_setshow_command_value_string): Likewise.
3359 * cli/cli-style.c (cli_styling): Change to bool.
3360 (source_styling): Likewise.
3361 * cli/cli-style.h (source_styling): Likewise.
3362 (cli_styling): Likewise.
3363 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3364 to bool.
3365 * command.h (var_types): Update comment.
3366 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3367 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3368 bool.
3369 (debug_compile_cplus_scopes): Likewise.
3370 * compile/compile-internal.h (compile_debug): Likewise.
3371 * compile/compile.c (compile_debug): Likewise.
3372 (struct compile_options) <raw>: Likewise.
3373 * cp-support.c (catch_demangler_crashes): Likewise.
3374 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3375 (usr_cmd_cris_dwarf2_cfi): Likewise.
3376 * csky-tdep.c (csky_debug): Likewise.
3377 * darwin-nat.c (enable_mach_exceptions): Likewise.
3378 * dcache.c (dcache_enabled_p): Likewise.
3379 * defs.h (info_verbose): Likewise.
3380 * demangle.c (demangle): Likewise.
3381 (asm_demangle): Likewise.
3382 * dwarf-index-cache.c (debug_index_cache): Likewise.
3383 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3384 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3385 * dwarf2read.c (check_physname): Likewise.
3386 (use_deprecated_index_sections): Likewise.
3387 (dwarf_always_disassemble): Likewise.
3388 * eval.c (overload_resolution): Likewise.
3389 * event-top.c (set_editing_cmd_var): Likewise.
3390 (exec_done_display_p): Likewise.
3391 * event-top.h (set_editing_cmd_var): Likewise.
3392 (exec_done_display_p): Likewise.
3393 * exec.c (write_files): Likewise.
3394 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3395 (debug_fbsd_nat): Likewise.
3396 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3397 Likewise.
3398 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3399 <backtrace_past_entry> Likewise.
3400 * gdb-demangle.h (demangle): Likewise.
3401 (asm_demangle): Likewise.
3402 * gdb_bfd.c (bfd_sharing): Likewise.
3403 * gdbcore.h (write_files): Likewise.
3404 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3405 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3406 * gdbthread.h (print_thread_events): Likewise.
3407 * gdbtypes.c (opaque_type_resolution): Likewise.
3408 (strict_type_checking): Likewise.
3409 * gnu-nat.c (gnu_debug_flag): Likewise.
3410 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3411 * guile/scm-param.c (pascm_variable): Add boolval.
3412 (add_setshow_generic): Update.
3413 (pascm_param_value): Update.
3414 (pascm_set_param_value_x): Update.
3415 * hppa-tdep.c (hppa_debug): Change to bool..
3416 * infcall.c (may_call_functions_p): Likewise.
3417 (coerce_float_to_double_p): Likewise.
3418 (unwind_on_signal_p): Likewise.
3419 (unwind_on_terminating_exception_p): Likewise.
3420 * infcmd.c (startup_with_shell): Likewise.
3421 * inferior.c (print_inferior_events): Likewise.
3422 * inferior.h (startup_with_shell): Likewise.
3423 (print_inferior_events): Likewise.
3424 * infrun.c (step_stop_if_no_debug): Likewise.
3425 (detach_fork): Likewise.
3426 (debug_displaced): Likewise.
3427 (disable_randomization): Likewise.
3428 (non_stop): Likewise.
3429 (non_stop_1): Likewise.
3430 (observer_mode): Likewise.
3431 (observer_mode_1): Likewise.
3432 (set_observer_mode): Update.
3433 (sched_multi): Change to bool.
3434 * infrun.h (debug_displaced): Likewise.
3435 (sched_multi): Likewise.
3436 (step_stop_if_no_debug): Likewise.
3437 (non_stop): Likewise.
3438 (disable_randomization): Likewise.
3439 * linux-tdep.c (use_coredump_filter): Likewise.
3440 (dump_excluded_mappings): Likewise.
3441 * linux-thread-db.c (auto_load_thread_db): Likewise.
3442 (check_thread_db_on_load): Likewise.
3443 * main.c (captured_main_1): Update.
3444 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3445 xx2_opt, boolean_opt>: Change to bool.
3446 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3447 * maint.c (maintenance_profile_p): Likewise.
3448 (per_command_time): Likewise.
3449 (per_command_space): Likewise.
3450 (per_command_symtab): Likewise.
3451 * memattr.c (inaccessible_by_default): Likewise.
3452 * mi/mi-main.c (mi_async): Likewise.
3453 (mi_async_1): Likewise.
3454 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3455 * nat/fork-inferior.h (startup_with_shell): Likewise.
3456 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3457 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3458 * nios2-tdep.c (nios2_debug): Likewise.
3459 * or1k-tdep.c (or1k_debug): Likewise.
3460 * parse.c (parser_debug): Likewise.
3461 * parser-defs.h (parser_debug): Likewise.
3462 * printcmd.c (print_symbol_filename): Likewise.
3463 * proc-api.c (procfs_trace): Likewise.
3464 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3465 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3466 (set_parameter_value): Update.
3467 (add_setshow_generic): Update.
3468 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3469 to bool*.
3470 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3471 int*.
3472 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3473 * record-btrace.c (record_btrace_target::store_registers): Update.
3474 * record-full.c (record_full_memory_query): Change to bool.
3475 (record_full_stop_at_limit): Likewise.
3476 * record-full.h (record_full_memory_query): Likewise.
3477 * remote-notif.c (notif_debug): Likewise.
3478 * remote-notif.h (notif_debug): Likewise.
3479 * remote.c (use_range_stepping): Likewise.
3480 (interrupt_on_connect): Likewise.
3481 (remote_break): Likewise.
3482 * ser-tcp.c (tcp_auto_retry): Likewise.
3483 * ser-unix.c (serial_hwflow): Likewise.
3484 * skip.c (debug_skip): Likewise.
3485 * solib-aix.c (solib_aix_debug): Likewise.
3486 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3487 (spu_auto_flush_cache_p): Likewise.
3488 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3489 Likewise.
3490 (struct info_print_options) <quiet>: Likewise.
3491 * symfile-debug.c (debug_symfile): Likewise.
3492 * symfile.c (auto_solib_add): Likewise.
3493 (separate_debug_file_debug): Likewise.
3494 * symfile.h (auto_solib_add): Likewise.
3495 (separate_debug_file_debug): Likewise.
3496 * symtab.c (basenames_may_differ): Likewise.
3497 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3498 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3499 (struct info_types_options) <quiet>: Likewise.
3500 * symtab.h (demangle): Likewise.
3501 (basenames_may_differ): Likewise.
3502 * target-dcache.c (stack_cache_enabled_1): Likewise.
3503 (code_cache_enabled_1): Likewise.
3504 * target.c (trust_readonly): Likewise.
3505 (may_write_registers): Likewise.
3506 (may_write_memory): Likewise.
3507 (may_insert_breakpoints): Likewise.
3508 (may_insert_tracepoints): Likewise.
3509 (may_insert_fast_tracepoints): Likewise.
3510 (may_stop): Likewise.
3511 (auto_connect_native_target): Likewise.
3512 (target_stop_and_wait): Update.
3513 (target_async_permitted): Change to bool.
3514 (target_async_permitted_1): Likewise.
3515 (may_write_registers_1): Likewise.
3516 (may_write_memory_1): Likewise.
3517 (may_insert_breakpoints_1): Likewise.
3518 (may_insert_tracepoints_1): Likewise.
3519 (may_insert_fast_tracepoints_1): Likewise.
3520 (may_stop_1): Likewise.
3521 * target.h (target_async_permitted): Likewise.
3522 (may_write_registers): Likewise.
3523 (may_write_memory): Likewise.
3524 (may_insert_breakpoints): Likewise.
3525 (may_insert_tracepoints): Likewise.
3526 (may_insert_fast_tracepoints): Likewise.
3527 (may_stop): Likewise.
3528 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3529 (make_thread_apply_all_options_def_group): Change argument from int*
3530 to bool*.
3531 (thread_apply_all_command): Update.
3532 (print_thread_events): Change to bool.
3533 * top.c (confirm): Likewise.
3534 (command_editing_p): Likewise.
3535 (history_expansion_p): Likewise.
3536 (write_history_p): Likewise.
3537 (info_verbose): Likewise.
3538 * top.h (confirm): Likewise.
3539 (history_expansion_p): Likewise.
3540 * tracepoint.c (disconnected_tracing): Likewise.
3541 (circular_trace_buffer): Likewise.
3542 * typeprint.c (print_methods): Likewise.
3543 (print_typedefs): Likewise.
3544 * utils.c (debug_timestamp): Likewise.
3545 (sevenbit_strings): Likewise.
3546 (pagination_enabled): Likewise.
3547 * utils.h (sevenbit_strings): Likewise.
3548 (pagination_enabled): Likewise.
3549 * valops.c (overload_resolution): Likewise.
3550 * valprint.h (struct value_print_options) <prettyformat_arrays,
3551 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3552 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3553 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3554 Likewise.
3555 * windows-nat.c (new_console): Likewise.
3556 (cygwin_exceptions): Likewise.
3557 (new_group): Likewise.
3558 (debug_exec): Likewise.
3559 (debug_events): Likewise.
3560 (debug_memory): Likewise.
3561 (debug_exceptions): Likewise.
3562 (useshell): Likewise.
3563 * windows-tdep.c (maint_display_all_tib): Likewise.
3564 * xml-support.c (debug_xml): Likewise.
3565
3566 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3567
3568 * source.c (prepare_path_for_appending): New function.
3569 (openp): Make use of new function.
3570 (find_and_open_source): Search for the compilation directory and
3571 source file as a relative path beneath the directory search path.
3572
3573 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * source-cache.c (source_cache::get_line_charpos): Catch
3576 exceptions and return false, this matches the behaviour documented
3577 in the header file.
3578
3579 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3580
3581 * ada-tasks.c (info_task): Remove quoting of the task's name.
3582
3583 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3584
3585 * symfile.c (auto_solib_add): Replace comment with a reference
3586 to the header file.
3587
3588 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3589
3590 * NEWS: Mention that gdb can now be compiled with Python 3
3591 on Windows.
3592
3593 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3594
3595 * maint.c (maint_print_section_data::maint_print_section_data):
3596 Force use of 'float log10 (float)' by casting the argument to
3597 float.
3598
3599 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * maint.c: Add 'cmath' include.
3602 (struct maint_print_section_data): New structure.
3603 (print_section_index): New function.
3604 (print_bfd_section_info): Add header comment, small whitespace
3605 cleanup, and update to call new print_section_index function.
3606 (print_objfile_section_info): Likewise.
3607 (maint_obj_section_from_bfd_section): New function.
3608 (print_bfd_section_info_maybe_relocated): New function.
3609 (maintenance_info_sections): Add header comment, always use
3610 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3611
3612 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3615 inner scope, add check that the objfile has psymtabs before
3616 checking psymtabs_addrmap.
3617 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3618
3619 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3620
3621 * NEWS: Announce that Ada task names are now shown at more places,
3622 and between quotes (except in info task output).
3623 * gdb/ada-tasks.c (task_to_str): New function.
3624 (display_current_task_id): Call task_to_str.
3625 (task_command_1): Likewise.
3626 (print_ada_task_info): In non-mi mode, Properly align headers and data
3627 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3628
3629 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3630
3631 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3632 prstatus.pr_lwp.pr_info instead of making it up.
3633
3634 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3635
3636 * auto-load.c (auto_load_expand_dir_vars): Update.
3637 * defs.h (gdb_datadir): Change to std::string.
3638 (python_libdir): Likewise.
3639 (relocate_gdb_directory): Change return type to std::string.
3640 * guile/guile.c (gdbscm_data_directory): Update.
3641 (initialize_scheme_side): Update.
3642 * jit.c (jit_reader_dir): Change to std::string.
3643 (jit_reader_load_command): Update.
3644 * main.c (gdb_datadir): Change to std::string.
3645 (python_libdir): Likewise.
3646 (set_gdb_data_directory): Update.
3647 (relocate_path): Change to return std::string.
3648 (relocate_gdb_directory): Change to return std::string.
3649 (relocate_gdbinit_path_maybe_in_datadir): Update.
3650 (captured_main_1): Update.
3651 * python/python.c (do_start_initialization): Update.
3652 * top.c (show_gdb_datadir): Update.
3653 * xml-syscall.c (xml_init_syscalls_info): Update.
3654 (init_syscalls_info): Update.
3655
3656 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3657
3658 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3659 out of get_init_files.
3660 (get_init_files): Update.
3661
3662 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3663
3664 * main.c (get_init_files): Change to use std::string.
3665 (captured_main_1): Update.
3666 (print_gdb_help): Update.
3667
3668 2019-09-11 Ali Tamur <tamur@google.com>
3669
3670 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3671 implementation.
3672
3673 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3674
3675 * dbxread.c (read_dbx_symtab): Update.
3676 * dwarf2read.c (load_partial_dies): Update.
3677 * mdebugread.c (parse_partial_symbols): Update.
3678 (handle_psymbol_enumerators): Update.
3679 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3680 * psymtab.c (add_psymbol_to_bcache): Likewise.
3681 (add_psymbol_to_list): Likewise.
3682 * symtab.c (symbol_set_names): Likewise.
3683 * symtab.h (symbol_set_names): Likewise.
3684 * xcoffread.c (scan_xcoff_symtab): Update.
3685
3686 2019-09-11 Tom Tromey <tom@tromey.com>
3687
3688 * symfile-mem.c (symbol_file_add_from_memory): Use
3689 bfd_set_filename.
3690 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3691 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3692
3693 2019-09-10 Tom Tromey <tromey@adacore.com>
3694
3695 * dwarf-index-write.c (write_psymbols): Extend error message.
3696 (debug_names::insert): Add Ada code.
3697 (debug_names::write_psymbols): Remove Ada check.
3698 (debug_names) <m_string_obstack>: New member.
3699 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3700 (gdb_index_symbol_name_matcher::matches): Remove.
3701 (mapped_index_base::find_name_components_bounds): Add "lang"
3702 parameter.
3703 (mapped_index_base::build_name_components): Also split names
3704 according to Ada syntax.
3705 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3706 type of "match_callback".
3707 (check_match, check_find_bounds_finds)
3708 (dw2_expand_symtabs_matching): Update.
3709 (dw2_debug_names_iterator): Add new constructor.
3710 (dw2_debug_names_map_matching_symbols): New function.
3711 (dw2_debug_names_expand_symtabs_matching): Update.
3712 (dwarf2_debug_names_functions): Use
3713 dw2_debug_names_map_matching_symbols.
3714
3715 2019-09-10 Tom Tromey <tromey@adacore.com>
3716
3717 * dwarf2read.c (dw2_get_file_names_reader): Add the
3718 CU's file name to the results.
3719
3720 2019-09-10 Tom Tromey <tromey@adacore.com>
3721
3722 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3723 map_matching_symbols. Update.
3724 * dwarf2read.c (dw2_map_matching_symbols): Update.
3725 * psymtab.c (match_partial_symbol): Change type; update.
3726 (psym_map_matching_symbols): Likewise.
3727 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3728 type; update.
3729 * symfile.h (struct quick_symbol_functions)
3730 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3731 Remove "match".
3732
3733 2019-09-10 Tom Tromey <tromey@adacore.com>
3734
3735 * psymtab.c (map_block): Remove.
3736 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3737 * symtab.c (iterate_over_symbols_terminated): New function.
3738 * symtab.c (iterate_over_symbols_terminated): Declare.
3739
3740 2019-09-10 Tom Tromey <tromey@adacore.com>
3741
3742 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3743 * language.h (struct language_defn) <la_iterate_over_symbols>:
3744 Return bool.
3745 * symtab.c (iterate_over_symbols): Return bool.
3746 * symtab.h (iterate_over_symbols): Return bool.
3747
3748 2019-09-10 Tom Tromey <tromey@adacore.com>
3749
3750 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3751 (add_nonlocal_symbols): Update.
3752 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3753 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3754 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3755 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3756 Change type of "callback". Remove "data".
3757
3758
3759 2019-09-09 Ali Tamur <tamur@google.com>
3760
3761 * dwarf2read.c (comp_unit_head): Update comment.
3762 (dwarf2_dwo_name): New function declaration.
3763 (dwarf_unit_type_name): New function declaration.
3764 (read_comp_unit_head): Add support for new compilation units,
3765 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3766 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3767 (currently named as "signature") in their header. Also clarify error
3768 messages.
3769 (lookup_dwo_id): New function. Returns the dwo id of the given
3770 compile unit.
3771 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3772 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3773 functions.
3774 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3775 (dwarf2_dwo_name): Get the dwo name if present.
3776 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3777 purposes.
3778
3779 2019-09-09 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3782
3783 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3784
3785 * python/python.c (do_start_initialization): Make progname_copy static,
3786 to avoid a leak report.
3787
3788 2019-09-08 Tom Tromey <tom@tromey.com>
3789
3790 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3791
3792 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3795 Change type to gdb::optional<block_enum>.
3796 (dw2_symtab_iter_init): Change block_index parameter type
3797 to gdb::optional<block_enum>.
3798 (dw2_lookup_symbol): Change block_index parameter
3799 type to block_enum.c
3800 (dw2_debug_names_lookup_symbol): Likewise.
3801 * psymtab.c (psym_lookup_symbol): Likewise.
3802 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3803 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3804 Likewise.
3805
3806 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3807
3808 * defs.h (relocate_gdb_directory): Change int to bool in
3809 signature and rename flag to relocatable.
3810 * main.c (relocate_path): Likewise.
3811 (relocate_gdb_directory): Likewise.
3812
3813 2019-09-06 Alan Modra <amodra@gmail.com>
3814
3815 * coffread.c (coff_symfile_read): Constify filename variable.
3816 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3817 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3818 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3819 * solib.c (reload_shared_libraries_1): Likewise.
3820 * symfile.c (reread_symbols): Likewise.
3821 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3822 * solib-darwin.c (darwin_bfd_open): Likewise.
3823 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3824
3825 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3828 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3829
3830 2019-09-03 Tom Tromey <tromey@adacore.com>
3831
3832 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3833 types.
3834 (has_negatives): Unbias a range type bound.
3835 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3836 * gdbtypes.c (operator==): Handle new field.
3837 (create_range_type): Add "bias" parameter.
3838 (create_static_range_type, resolve_dynamic_range): Update.
3839 * gdbtypes.h (struct range_bounds) <bias>: New member.
3840 (create_range_type): Add bias parameter.
3841 * printcmd.c (print_scalar_formatted): Unbias range types.
3842 * value.c (unpack_long): Unbias range types.
3843 (pack_long): Bias range types.
3844
3845 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3846
3847 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3848 probe arguments.
3849
3850 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3851
3852 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3853 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3854 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3855 (compile_probe_arg): Likewise.
3856 * probe.h (get_argument_count): Likewise.
3857 * solib-svr4.c (solib_event_probe_action): Likewise.
3858 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3859
3860 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3861
3862 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3863 code to here...
3864 (svr4_create_solib_event_breakpoints): ...from here.
3865
3866 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3867
3868 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3869 suffix from warning message.
3870
3871 2019-08-30 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-winsource.h (struct tui_source_window_base)
3874 <refresh_all>: Don't declare.
3875 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3876 Remove.
3877 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3878 tui_show_locator_content.
3879 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3880 declare.
3881 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3882 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3883 declare.
3884
3885 2019-08-30 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3888
3889 2019-08-30 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3892 Remove unnecessary forward declarations.
3893
3894 2019-08-30 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3897 rerender.
3898 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3899 tui_show_locator_content.
3900
3901 2019-08-30 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3904 (tui_locator_window::rerender): Rewrite using body of previous
3905 tui_show_locator_content.
3906
3907 2019-08-30 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3910 set_locator_fullname>: New methods.
3911 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3912 Rename from tui_set_locator_fullname.
3913 (tui_locator_window::set_locator_info): Rename from
3914 tui_set_locator_info. Return bool.
3915 (tui_update_locator_fullname, tui_show_frame_info): Update.
3916
3917 2019-08-30 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3920
3921 2019-08-30 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3924 call touchwin.
3925
3926 2019-08-30 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-wingeneral.c (box_win): Assume win_info and
3929 win_info->handle cannot be NULL.
3930
3931 2019-08-30 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3934 refresh_window>: Declare.
3935 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3936 resize.
3937 (tui_data_item_window::rerender): Rename from
3938 tui_display_register.
3939 (tui_data_item_window::refresh_window): New method.
3940 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3941 no-op.
3942
3943 2019-08-30 Tom Tromey <tom@tromey.com>
3944
3945 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3946 regs_column_count, current_group>: Move later. Now private.
3947 <get_current_group>: New method.
3948 * tui/tui-regs.c (tui_reg_command): Update.
3949 * tui/tui-layout.c (tui_set_layout): Update.
3950
3951 2019-08-30 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3954 (tui_data_window::rerender): Don't call
3955 check_and_display_highlight_if_needed.
3956 (tui_data_window::refresh_all): Remove call to
3957 erase_data_content.
3958
3959 2019-08-30 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3962 (tui_data_window::display_registers_from)
3963 (tui_data_window::display_reg_element_at_line)
3964 (tui_data_window::display_registers_from_line): Remove checks of
3965 "empty".
3966
3967 2019-08-30 Tom Tromey <tom@tromey.com>
3968
3969 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3970 Don't declare.
3971 * tui/tui-regs.c (tui_data_window::show_registers): Call
3972 rerender.
3973 (tui_data_window::rerender): Rename from display_all_data.
3974 (tui_data_window::rerender): Remove old implementation.
3975
3976 2019-08-30 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3979 text.
3980 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3981
3982 2019-08-29 Bernhard Wodok <barto@gmx.net>
3983 Sergio Durigan Junior <sergiodj@redhat.com>
3984
3985 PR win32/24284
3986 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3987
3988 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3991 when searching for types.
3992
3993 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3994
3995 * f-lang.c (f_language_defn): Use f_print_typedef.
3996 * f-lang.h (f_print_typedef): Declare.
3997 * f-typeprint.c (f_print_typedef): Define.
3998
3999 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4000
4001 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4002
4003 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * cli/cli-utils.c (info_print_options_defs): Delete.
4006 (make_info_print_options_def_group): Delete.
4007 (extract_info_print_options): Delete.
4008 (info_print_command_completer): Delete.
4009 (info_print_args_help): Add extra parameter, and optionally
4010 include text about -n flag.
4011 * cli/cli-utils.h (struct info_print_options): Delete.
4012 (extract_info_print_options): Delete declaration.
4013 (info_print_command_completer): Delete declaration.
4014 (info_print_args_help): Add extra parameter, extend header
4015 comment.
4016 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4017 search_symbols.
4018 * stack.c (struct info_print_options): New type.
4019 (info_print_options_defs): New file scoped variable.
4020 (make_info_print_options_def_group): New static function.
4021 (info_print_command_completer): New static function.
4022 (info_locals_command): Update to use new local functions.
4023 (info_args_command): Likewise.
4024 (_initialize_stack): Add extra parameter to calls to
4025 info_print_args_help.
4026 * symtab.c (search_symbols): Add extra parameter, use this to
4027 possibly excluse non-debug symbols.
4028 (symtab_symbol_info): Add extra parameter, which is passed on to
4029 search_symbols.
4030 (struct info_print_options): New type.
4031 (info_print_options_defs): New file scoped variable.
4032 (make_info_print_options_def_group): New static function.
4033 (info_print_command_completer): New static function.
4034 (info_variables_command): Update to use local functions, and pass
4035 extra parameter through to symtab_symbol_info.
4036 (info_functions_command): Likewise.
4037 (info_types_command): Pass additional argument through to
4038 symtab_symbol_info.
4039 (rbreak_command): Pass extra argument to search_symbols.
4040 (_initialize_symtab): Add extra arguments for calls to
4041 info_print_args_help, and update help text for 'info variables',
4042 'whereis', and 'info functions' commands.
4043 * symtab.h (search_symbols): Add extra argument to declaration.
4044 * NEWS: Mention new flags.
4045
4046 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4047
4048 * symtab.c (lookup_static_symbol): Call the new function (and move
4049 it down to be next to lookup_global_symbol).
4050 (struct global_sym_lookup_data): Add block_enum member and rename to...
4051 (struct global_or_static_sym_lookup_data): ...this.
4052 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4053 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4054 (lookup_symbol_global_or_static_iterator_cb): ...this.
4055 (lookup_global_or_static_symbol): New function.
4056 (lookup_global_symbol): Call new function.
4057
4058 2019-08-26 Tom de Vries <tdevries@suse.de>
4059
4060 PR c++/24852
4061 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4062 when pc_probe.prob == NULL.
4063
4064 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4067 variable symbol_linkage to symbol_linkage_.
4068
4069 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4072 represent whether the symbol is static, dynamic, or we don't
4073 know.
4074
4075 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4076
4077 * gdb/rx-tdep.c (rx_register_names): New.
4078 (rx_register_name): Delete.
4079 (rx_psw_type): Delete.
4080 (rx_fpsw_type): Delete.
4081 (rx_register_type): Delete.
4082 (rx_gdbarch_init): Convert target-descriptions.
4083 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4084 * gdb/features/Makefile: Add rx.xml.
4085 * gdb/features/rx.xml: New.
4086 * gdb/features/rx.c: Generated.
4087 * gdb/NEWS: Mention target description support.
4088
4089 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4090
4091 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4092 *slot_ptr.
4093
4094 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4095
4096 * configure.ac: Don't check for 'dlfcn.h' (moved to
4097 gdbsupport/common.m4).
4098 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4099 'gdbsupport/'.
4100 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4101 * compile/compile-c-support.c: Include
4102 'gdbsupport/gdb-dlfcn.h'.
4103 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4104 * gdb-dlfcn.c: Move to...
4105 * gdbsupport/gdb-dlfcn.c: ... here.
4106 * gdb-dlfcn.h: Move to...
4107 * gdbsupport/gdb-dlfcn.h: ... here.
4108
4109 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4110
4111 * nios2-tdep.c (struct reg_value): Improve comments. Make
4112 the offset field signed.
4113
4114 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4115
4116 * python/lib/gdb/__init__.py (_execute_file): New function.
4117 * python/python.c (python_run_simple_file): Call gdb._execute_file
4118 on Windows.
4119
4120 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4121
4122 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4123 all uses as this was never set to anything but a zero value.
4124
4125 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4126
4127 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4128
4129 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4130
4131 * tui/tui-data.h (tui_gen_win_info): Add an =default
4132 move constructor, required by some GCC versions.
4133
4134 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4135
4136 * go32-nat.c (go32_sysinfo): Add hygon_p.
4137
4138 2019-08-20 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4141 line_from_reg_element_no, first_reg_element_no_inline,
4142 display_all_data, delete_data_content_windows,
4143 erase_data_content>: Now private.
4144
4145 2019-08-20 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4148 (tui_unhighlight_win, tui_highlight_win)
4149 (tui_win_info::make_window): Update.
4150 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4151
4152 2019-08-20 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4155 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4156 (MAX_PID_WIDTH): Move to tui-stack.c.
4157 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4158 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4159 (MAX_PID_WIDTH): Move from tui-data.h.
4160
4161 2019-08-20 Tom Tromey <tom@tromey.com>
4162
4163 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4164 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4165 (box_win): Update.
4166 (tui_gen_win_info::make_window): Rename from tui_make_window.
4167 (tui_win_info::make_window): New method.
4168 (tui_gen_win_info::make_visible): Update.
4169 * tui/tui-source.c (tui_source_window::set_contents): Update.
4170 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4171 (tui_data_window::display_registers_from): Update.
4172 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4173 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4174 Declare.
4175 <can_box>: Remove.
4176 <title>: Remove.
4177 (struct tui_win_info) <make_window>: Declare.
4178 <can_box>: Now virtual.
4179 <title>: New member.
4180 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4181 * tui/tui-command.c (tui_cmd_window::resize): Update.
4182
4183 2019-08-20 Tom Tromey <tom@tromey.com>
4184
4185 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4186 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4187 (tui_data_window::check_register_values): Update.
4188
4189 2019-08-20 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-regs.h (struct tui_data_window): Use
4192 DISABLE_COPY_AND_ASSIGN.
4193 <regs_content>: Change type, removing unique_ptr.
4194 <tui_data_window>: Add move constructor.
4195 * tui/tui-regs.c (tui_data_window::show_registers)
4196 (tui_data_window::show_register_group)
4197 (tui_data_window::display_registers_from)
4198 (tui_data_window::display_registers_from)
4199 (tui_data_window::first_data_item_displayed)
4200 (tui_data_window::delete_data_content_windows)
4201 (tui_data_window::rerender, tui_data_window::refresh_window)
4202 (tui_data_window::check_register_values): Update.
4203
4204 2019-08-20 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4207 show_register_group>: Declare.
4208 (tui_show_register_group): Don't declare.
4209 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4210 tui_show_registers.
4211 (tui_data_window::show_register_group): Rename from
4212 tui_show_register_group.
4213 (tui_data_window::check_register_values, tui_reg_command):
4214 Update.
4215 * tui/tui-layout.c (tui_set_layout): Update.
4216
4217 2019-08-20 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4220 Declare.
4221 (tui_check_register_values): Don't declare.
4222 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4223 from tui_check_register_values.
4224 * tui/tui-hooks.c (tui_register_changed): Update.
4225
4226 2019-08-20 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-regs.c (tui_reg_layout): Move later.
4229 (tui_show_registers): Don't enable TUI mode or change layout.
4230
4231 2019-08-20 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-regs.h (struct tui_data_item_window)
4234 <~tui_data_item_window>: Remove.
4235 <content>: Now a unique_xmalloc_ptr.
4236 * tui/tui-regs.c (tui_register_format): Return a
4237 unique_xmalloc_ptr.
4238 (tui_get_register): Update.
4239 (~tui_data_item_window): Remove.
4240 (tui_data_window::display_registers_from, tui_display_register):
4241 Update.
4242 * tui/tui-io.h (tui_expand_tabs): Update.
4243 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4244 Remove "col" parameter.
4245
4246 2019-08-20 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4249 field.
4250 * tui/tui-regs.c (~tui_data_item_window): Update.
4251
4252 2019-08-20 Tom Tromey <tom@tromey.com>
4253
4254 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4255 earlier.
4256
4257 2019-08-20 Tom Tromey <tom@tromey.com>
4258
4259 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4260
4261 2019-08-20 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-source.h (struct tui_source_window): Update.
4264 * tui/tui-regs.c (tui_show_registers): Update.
4265 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4266 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4267 (NO_REGS_STRING): Remove defines.
4268
4269 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4270
4271 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4272 unnecessary thread walk if remote doesn't support the packet.
4273
4274 2019-08-19 Tom Tromey <tromey@adacore.com>
4275
4276 * python/py-value.c (value_has_field): Fix indentation.
4277
4278 2019-08-19 Tom Tromey <tromey@adacore.com>
4279
4280 * printcmd.c (do_one_display, info_display_command): Update.
4281 * block.h (contained_in): Return bool. Add allow_nested
4282 parameter.
4283 * block.c (contained_in): Return bool. Add allow_nested
4284 parameter.
4285
4286 2019-08-19 Tom Tromey <tom@tromey.com>
4287
4288 * configure: Rebuild.
4289 * configure.ac: Disallow the combination of -static-libstdc++ and
4290 source highlight.
4291 * source-cache.c (get_language_name): Handle rust.
4292 (source_cache::get_source_lines): Ignore highlighting exceptions.
4293
4294 2019-08-16 Tom Tromey <tom@tromey.com>
4295
4296 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4297 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4298 (struct tui_source_window_base) <make_visible, refresh_window,
4299 resize>: Remove methods.
4300 <execution_info>: Remove field.
4301 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4302 (tui_show_source_line, tui_source_window_base)
4303 (~tui_source_window_base): Update.
4304 (tui_source_window_base::resize)
4305 (tui_source_window_base::make_visible)
4306 (tui_source_window_base::refresh_window): Remove.
4307 (tui_source_window_base::update_exec_info): Update.
4308 * tui/tui-source.c (tui_source_window::set_contents): Update.
4309 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4310
4311 2019-08-16 Tom Tromey <tom@tromey.com>
4312
4313 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4314 deprecated_query_hook.
4315
4316 2019-08-16 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4319 (tui_update_source_windows_with_line): Update.
4320 * tui/tui-source.h (struct tui_source_window)
4321 <show_symtab_source>: Declare.
4322 (tui_show_symtab_source): Don't declare.
4323 * tui/tui-source.c (tui_show_symtab_source): Rename from
4324 tui_show_symtab_source.
4325
4326 2019-08-16 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-winsource.h (struct tui_source_window_base)
4329 <set_contents>: Declare.
4330 * tui/tui-winsource.c
4331 (tui_source_window_base::update_source_window_as_is): Update.
4332 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4333 Declare.
4334 (tui_set_source_content): Don't declare.
4335 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4336 tui_set_source_content.
4337 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4338 Declare.
4339 (tui_set_disassem_content): Don't declare.
4340 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4341 tui_set_disassem_content.
4342
4343 2019-08-16 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-winsource.h (struct tui_source_window_base)
4346 <update_breakpoint_info>: Declare.
4347 (tui_update_breakpoint_info): Don't declare.
4348 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4349 (tui_update_all_breakpoint_info): Update.
4350 (tui_source_window_base::update_breakpoint_info): Rename from
4351 tui_update_breakpoint_info.
4352 (tui_source_window_base::update_exec_info): Update.
4353
4354 2019-08-16 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-winsource.h (struct tui_source_window_base)
4357 <update_source_window>: Declare.
4358 (tui_update_source_window): Don't declare.
4359 * tui/tui-winsource.c
4360 (tui_source_window_base::update_source_window): Rename from
4361 tui_update_source_window.
4362 (tui_source_window_base::rerender): Update.
4363 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4364 * tui/tui-disasm.c (tui_show_disassem)
4365 (tui_show_disassem_and_update_source)
4366 (tui_disasm_window::maybe_update): Update.
4367
4368 2019-08-16 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-winsource.h (struct tui_source_window_base)
4371 <update_source_window_as_is>: Declare.
4372 (tui_update_source_window_as_is): Don't declare.
4373 * tui/tui-winsource.c (tui_update_source_window): Update
4374 (tui_source_window_base::update_source_window_as_is): Rename from
4375 tui_update_source_window_as_is.
4376 (tui_source_window_base::refill): Update.
4377 * tui/tui-source.c (tui_show_symtab_source): Update.
4378 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4379 Update.
4380
4381 2019-08-16 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-winsource.h (tui_update_source_window)
4384 (tui_update_source_window_as_is): Remove "noerror" parameter.
4385 * tui/tui-winsource.c (tui_update_source_window)
4386 (tui_update_source_window_as_is): Remove "noerror" parameter.
4387 (tui_update_source_windows_with_addr)
4388 (tui_update_source_windows_with_line)
4389 (tui_source_window_base::rerender)
4390 (tui_source_window_base::refill): Update.
4391 * tui/tui-source.h (tui_set_source_content)
4392 (tui_show_symtab_source): Remove "noerror" parameter.
4393 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4394 parameter.
4395 (tui_show_symtab_source): Likewise.
4396 (tui_source_window::maybe_update): Update.
4397 * tui/tui-disasm.c (tui_show_disassem)
4398 (tui_show_disassem_and_update_source)
4399 (tui_disasm_window::do_scroll_vertical)
4400 (tui_disasm_window::maybe_update): Update.
4401
4402 2019-08-16 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui.c (tui_is_window_visible): Update.
4405 * tui/tui-wingeneral.c (tui_make_window)
4406 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4407 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4408 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4409 (tui_set_win_height_command, parse_scrolling_args): Update.
4410 * tui/tui-source.c (tui_source_window::style_changed): Update.
4411 * tui/tui-regs.c (tui_show_registers)
4412 (tui_data_window::first_data_item_displayed)
4413 (tui_data_window::delete_data_content_windows)
4414 (tui_check_register_values, tui_reg_command): Update.
4415 * tui/tui-disasm.c (tui_show_disassem): Update.
4416 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4417 method.
4418 <is_visible>: Remove field.
4419 * tui/tui-data.c (tui_next_win, tui_prev_win)
4420 (tui_delete_invisible_windows): Update.
4421
4422 2019-08-16 Tom Tromey <tom@tromey.com>
4423
4424 * tui/tui-winsource.h (struct tui_source_window_base)
4425 <m_has_locator>: Remove.
4426 * tui/tui-layout.c (show_source_disasm_command, show_data)
4427 (show_source_or_disasm_and_command): Update.
4428
4429 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4430
4431 * NEWS (Other MI changes): New subsection.
4432 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4433 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4434 * arch-utils.c (default_get_pc_address_flags): New function.
4435 * arch-utils.h (default_get_pc_address_flags): New declaration.
4436 * gdbarch.sh: Add get_pc_address_flags.
4437 * gdbarch.c: Regenerate.
4438 * gdbarch.h: Likewise.
4439 * stack.c (print_pc): New function.
4440 (print_frame_info) (print_frame): Call print_pc.
4441
4442 2019-08-16 Tom de Vries <tdevries@suse.de>
4443
4444 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4445 print_objfile_section_info.
4446
4447 2019-08-15 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4450 calling update_cmdwin_start_line.
4451 * tui/tui-winsource.h (struct tui_source_window_base)
4452 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4453 <rerender>: Declare.
4454 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4455 Call rerender.
4456 (tui_source_window_base::set_new_height): Remove.
4457 (tui_source_window_base::rerender): Rename from
4458 do_make_visible_with_new_height.
4459 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4460 resize method.
4461 (tui_win_info::make_invisible_and_set_new_height)
4462 (tui_win_info::make_visible_with_new_height): Remove.
4463 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4464 Declare.
4465 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4466 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4467 do_make_visible_with_new_height>: Don't declare.
4468 <rerender>: Declare.
4469 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4470 set_new_height.
4471 (tui_data_window::do_make_visible_with_new_height): Remove.
4472 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4473 call tui_show_locator_content.
4474 (tui_gen_win_info::resize): Call rerender.
4475 (show_source_or_disasm_and_command): Don't call
4476 tui_show_locator_content.
4477 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4478 method.
4479 (struct tui_win_info) <rerender>: Declare.
4480 <set_new_height, make_invisible_and_set_new_height,
4481 make_visible_with_new_height>: Don't declare.
4482 * tui/tui-data.c (tui_win_list::rerender): New method.
4483 * tui/tui-command.h (struct tui_cmd_window)
4484 <do_make_visible_with_new_height>: Don't declare.
4485 * tui/tui-command.c
4486 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4487
4488 2019-08-15 Tom Tromey <tromey@adacore.com>
4489
4490 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4491 * ada-lang.c (ada_enum_name): Likewise.
4492
4493 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4494
4495 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4496 leading underscore.
4497 (GdbOutputErrorFile): Likewise.
4498 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4499 accordingly.
4500 (execute_unwinders): Rename to have a leading underscore.
4501 (auto_load_packages): Likewise.
4502 (global scope): Adjust call to auto_load_packages accordingly.
4503 (GdbSetPythonDirectory): Likewise.
4504 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4505 instead of execute_unwinders.
4506
4507 2019-08-15 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4510 (show_data): Don't change window visibility.
4511 (tui_gen_win_info::resize): Remove special case for command
4512 window. Use wresize, when available.
4513 (show_source_or_disasm_and_command): Don't change window
4514 visibility.
4515 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4516 <make_visible>: New method.
4517 * tui/tui-command.c (tui_cmd_window::resize): New method.
4518
4519 2019-08-15 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4522 (struct tui_source_windows): New.
4523 * tui/tui-winsource.c (tui_display_main): Update.
4524 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4525 (new_height_ok, parse_scrolling_args): Update.
4526 * tui/tui-layout.c (show_layout, show_data): Update.
4527 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4528 (tui_add_to_source_windows): Don't declare.
4529 * tui/tui-data.c (source_windows, tui_source_windows)
4530 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4531
4532 2019-08-15 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4535 Rename from reset.
4536 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4537 * tui/tui-layout.c (show_source_disasm_command, show_data):
4538 Update.
4539 (tui_gen_win_info::resize): Rename.
4540 (show_source_or_disasm_and_command): Update.
4541 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4542 reset.
4543
4544 2019-08-15 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4547 * tui/tui-interp.c (tui_interp::init): Don't call
4548 tui_initialize_static_data.
4549 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4550
4551 2019-08-15 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4554 examine tui_win_list.
4555
4556 2019-08-15 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4559 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4560 tui_clear_source_content.
4561 (tui_clear_source_content): Remove.
4562 (tui_source_window_base::do_erase_source_content): Hoist call to
4563 content.clear().
4564 * tui/tui-stack.c (tui_show_frame_info): Don't call
4565 tui_clear_source_content.
4566
4567 2019-08-15 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-winsource.h (struct tui_source_window_base)
4570 <do_erase_source_content>: New method.
4571 <erase_source_content>: New method.
4572 (tui_erase_source_content): Don't declare.
4573 * tui/tui-winsource.c (tui_clear_source_content): Update.
4574 (tui_source_window_base::do_erase_source_content): Rename from
4575 tui_erase_source_content.
4576 (tui_source_window_base::show_source_content): Update.
4577 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4578 * tui/tui-source.h (struct tui_source_window)
4579 <erase_source_content>: New method.
4580 * tui/tui-disasm.h (struct tui_disasm_window)
4581 <erase_source_content>: New method.
4582
4583 2019-08-15 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4586 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4587 constructor.
4588 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4589 * tui/tui-source.c (tui_set_source_content): Update.
4590 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4591
4592 2019-08-15 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4595 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4596 tui-source.c.
4597 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4598 Declare.
4599 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4600 method.
4601 (tui_source_window::maybe_update): Update.
4602
4603 2019-08-15 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4606 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4607 tui-disasm.c.
4608 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4609 Declare.
4610 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4611 method.
4612 (tui_disasm_window::maybe_update): Update.
4613
4614 2019-08-15 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-winsource.h (struct tui_source_window_base)
4617 <maybe_update>: Declare.
4618 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4619 method.
4620 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4621 Declare.
4622 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4623 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4624 Declare.
4625 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4626
4627 2019-08-15 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4630
4631 2019-08-15 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-wingeneral.c: Include tui-stack.h.
4634 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4635 (struct tui_locator_window): Move from tui-data.h.
4636 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4637 (tui_initialize_static_data): Move from tui-data.c.
4638 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4639 (struct tui_locator_window): Move to tui-stack.c.
4640 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4641 (tui_initialize_static_data): Move to tui-stack.c.
4642
4643 2019-08-15 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-layout.c (show_source_disasm_command)
4646 (show_source_or_disasm_and_command): Use make_visible method, not
4647 tui_make_window.
4648 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4649 Remove.
4650
4651 2019-08-15 Tom Tromey <tom@tromey.com>
4652
4653 * tui/tui-wingeneral.h (tui_make_window): Update.
4654 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4655 parameter.
4656 (tui_gen_win_info::make_visible): Update.
4657 * tui/tui-regs.c (tui_data_window::display_registers_from):
4658 Update.
4659 * tui/tui-layout.c (show_source_disasm_command)
4660 (show_source_or_disasm_and_command): Update.
4661 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4662 (enum tui_box): Remove.
4663 (struct tui_win_info) <can_box>: New method.
4664 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4665 method.
4666
4667 2019-08-15 Tom de Vries <tdevries@suse.de>
4668
4669 * linux-nat-trad.c: Include gdbarch.h.
4670
4671 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4672
4673 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4674 register sizes.
4675
4676 2019-08-14 Tom Tromey <tromey@adacore.com>
4677
4678 * darwin-nat.c: Include gdbarch.h.
4679 * darwin-nat-info.c: Include gdbarch.h.
4680
4681 2019-08-13 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4684 Remove.
4685 * tui/tui-data.c (tui_initialize_static_data): Update.
4686
4687 2019-08-13 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-winsource.h (struct tui_exec_info_window)
4690 <~tui_exec_info_window, maybe_allocate_content, get_content,
4691 m_content>: Remove.
4692 (struct tui_source_window_base) <set_exec_info_content,
4693 show_exec_info_content>: Don't declare.
4694 * tui/tui-winsource.c
4695 (tui_exec_info_window::maybe_allocate_content): Remove.
4696 (tui_source_window_base::update_exec_info): Rename from
4697 set_exec_info_content.
4698 (tui_source_window_base::show_exec_info_content)
4699 (tui_source_window_base::update_exec_info): Remove.
4700
4701 2019-08-13 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4704 declare.
4705 * tui/tui-winsource.c (tui_update_source_window_as_is)
4706 (tui_update_source_windows_with_addr, tui_erase_source_content):
4707 Update.
4708 (tui_clear_exec_info_content): Remove.
4709
4710 2019-08-13 Tom Tromey <tom@tromey.com>
4711
4712 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4713 declare.
4714 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4715 call tui_erase_exec_info_content.
4716 (tui_clear_exec_info_content): Rename from
4717 tui_erase_exec_info_content.
4718 (tui_clear_exec_info_content): Delete.
4719
4720 2019-08-13 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-winsource.h (struct tui_source_window_base)
4723 <show_exec_info_content>: Declare.
4724 (tui_show_exec_info_content): Don't declare.
4725 * tui/tui-winsource.c
4726 (tui_source_window_base::show_exec_info_content): Rename from
4727 tui_show_exec_info_content.
4728 (tui_source_window_base::update_exec_info): Update.
4729
4730 2019-08-13 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4733 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4734 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4735 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4736 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4737 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4738 ... here.
4739
4740 2019-08-13 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-winsource.h (struct tui_source_window_base)
4743 <update_exec_info>: Declare.
4744 (tui_update_exec_info): Don't declare.
4745 * tui/tui-winsource.c (tui_update_source_window_as_is)
4746 (tui_source_window_base::refresh_all)
4747 (tui_update_all_breakpoint_info): Update.
4748 (tui_source_window_base::update_exec_info): Rename from
4749 tui_update_exec_info.
4750 * tui/tui-stack.c (tui_show_frame_info): Update.
4751
4752 2019-08-13 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui-winsource.h (struct tui_source_window_base)
4755 <set_exec_info_content>: Declare.
4756 (tui_set_exec_info_content): Don't declare.
4757 * tui/tui-winsource.c
4758 (tui_source_window_base::set_exec_info_content): Rename from
4759 tui_set_exec_info_content.
4760 (tui_update_exec_info): Update.
4761
4762 2019-08-13 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-winsource.h (struct tui_source_window_base)
4765 <show_source_content>: Declare.
4766 (tui_show_source_content): Don't declare.
4767 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4768 (tui_source_window_base::show_source_content): Rename from
4769 tui_show_source_content.
4770 (tui_source_window_base::refresh_all): Update.
4771 * tui/tui-layout.c (show_source_disasm_command)
4772 (show_source_or_disasm_and_command): Update.
4773
4774 2019-08-13 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-winsource.c (tui_erase_source_content)
4777 (tui_show_source_content, tui_source_window_base::refresh_all):
4778 Update.
4779 * tui/tui-wingeneral.h
4780 (tui_check_and_display_highlight_if_needed): Don't declare.
4781 * tui/tui-wingeneral.c
4782 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4783 check_and_display_highlight_if_needed.
4784 * tui/tui-win.c (tui_rehighlight_all)
4785 (tui_win_info::make_visible_with_new_height): Update.
4786 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4787 (tui_data_window::erase_data_content)
4788 (tui_data_window::display_all_data): Update.
4789 * tui/tui-data.h (struct tui_win_info)
4790 <check_and_display_highlight_if_needed>: Declare.
4791
4792 2019-08-13 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-win.c (tui_resize_all): Call
4795 tui_delete_invisible_windows.
4796 * tui/tui-layout.c (show_layout): Call
4797 tui_delete_invisible_windows.
4798 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4799 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4800
4801 2019-08-13 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4804 tui_add_win_to_layout.
4805
4806 2019-08-13 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4809 * tui/tui-layout.c (tui_default_win_height): Now static.
4810
4811 2019-08-13 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4814 single switch.
4815 (show_source_disasm_command, show_source_or_disasm_and_command):
4816 Don't check current layout.
4817
4818 2019-08-13 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-wingeneral.c (make_all_visible): Remove.
4821 (tui_make_all_invisible): Simplify.
4822 * tui/tui-layout.c (tui_make_all_invisible): Move from
4823 tui-wingeneral.c; simplify.
4824 (show_layout): Hoist call to tui_make_all_invisible.
4825 (show_data): Don't call tui_make_all_invisible.
4826
4827 2019-08-13 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4830 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4831
4832 2019-08-13 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4835 tui-data.c.
4836 (show_source_disasm_command, show_data)
4837 (show_source_or_disasm_and_command): Don't use
4838 tui_set_current_layout_to.
4839 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4840 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4841 tui-layout.c.
4842 (tui_set_current_layout_to): Remove.
4843
4844 2019-08-13 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-layout.c (tui_set_layout): Update.
4847 * tui/tui-data.h (struct tui_layout_def): Remove.
4848 (tui_layout_def): Don't declare.
4849 * tui/tui-data.c (layout_def): Remove.
4850 (tui_layout_def): Remove.
4851
4852 2019-08-13 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-winsource.h (struct tui_source_window_base)
4855 <clear_detail>: No longer "override".
4856 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4857 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4858 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4859 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4860 Remove.
4861 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4862
4863 2019-08-13 Tom Tromey <tromey@adacore.com>
4864
4865 * tracepoint.c: Don't include readline.h or history.h.
4866
4867 2019-08-12 Tom Tromey <tom@tromey.com>
4868
4869 * configure: Rebuild.
4870 * configure.ac: Check for readline 7.
4871 * NEWS: Mention readline 7 requirement.
4872 * README: Update.
4873
4874 2019-08-12 Tom Tromey <tom@tromey.com>
4875
4876 * mingw-hdep.c (gdb_select): Remove readline hack.
4877
4878 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4879
4880 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4881 when the function fails.
4882
4883 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4884
4885 * s390-tdep.c (s390_type_align): New function.
4886 (s390_gdbarch_init): Set it as type_align gdbarch method.
4887
4888 2019-08-09 Tom de Vries <tdevries@suse.de>
4889
4890 PR gdb/24591
4891 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4892 pc_low with relocation offset.
4893
4894 2019-08-07 Tom Tromey <tromey@adacore.com>
4895
4896 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4897 (print_frame_args): Update.
4898 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4899 Update.
4900 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4901 * frame.h (struct frame_arg): Add initializers.
4902 <error>: Now a unique_xmalloc_ptr.
4903
4904 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4905
4906 * NEWS: Expand the Pointer Authentication entry.
4907 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4908 (aarch64_frame_unmask_lr): ... to this.
4909 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4910 Call aarch64_frame_unmask_lr.
4911 * frame.c (struct frame_info): Add "masked" variable.
4912 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4913 (fprint_frame): Check for masked pc.
4914 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4915 declarations.
4916 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4917 * stack.c (print_frame): Check for masked pc.
4918
4919 2019-08-06 Tom Tromey <tom@tromey.com>
4920
4921 * stabsread.c (patch_block_stabs, read_one_struct_field)
4922 (read_enum_type): Use obstack_strndup.
4923 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4924 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4925 * dwarf2read.c (guess_full_die_structure_name)
4926 (anonymous_struct_prefix): Use obstack_strndup.
4927 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4928 * c-exp.y (yylex): Use obstack_strndup.
4929 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4930 (write_var_or_type): Use obstack_strndup.
4931
4932 2019-08-06 Tom Tromey <tom@tromey.com>
4933
4934 * symfile.c (reread_symbols): Use obstack_strdup.
4935 * stabsread.c (read_type): Use obstack_strdup.
4936 * gdb_obstack.h (obstack_strdup): New overload.
4937 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4938 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4939 (dwarf2_canonicalize_name): Use obstack_strdup.
4940 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4941 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4942 Use obstack_strdup.
4943
4944 2019-08-06 Tom Tromey <tom@tromey.com>
4945
4946 * gdb_obstack.h (obstack_strdup): Define.
4947 * gdb_obstack.c (obstack_strdup): Don't define.
4948
4949 2019-08-06 Tom Tromey <tom@tromey.com>
4950
4951 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4952 obstack_strdup.
4953 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4954 obstack_strdup.
4955 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4956 * stabsread.c (common_block_start): Use obstack_strdup.
4957 * objfiles.c (set_objfile_main_name, objfile): Use
4958 obstack_strdup.
4959 * namespace.c (add_using_directive): Use obstack_strdup.
4960 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4961 * jit.c (finalize_symtab): Use obstack_strdup.
4962 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4963 (guess_partial_die_structure_name, partial_die_info::fixup)
4964 (dwarf2_name): Use obstack_strdup.
4965 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4966 obstack_strdup.
4967 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4968 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4969 obstack_strdup.
4970 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4971
4972 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4973
4974 * unittests/help-doc-selftests.c: New file.
4975 * Makefile.in: Add the new file.
4976
4977 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4978
4979 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4980 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4981 the full first line, except when FOR_VALUE_PREFIX. In this case,
4982 the trailing '.' is not output, and the first character is uppercased.
4983 (print_help_for_command): Update call to print_doc_line.
4984 (print_doc_of_command): Likewise.
4985 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4986 * cli/cli-option.c (append_indented_doc): Do not append newline.
4987 (build_help_option): Append newline after first appended_indented_doc
4988 only if a second call is done.
4989 (build_help): Append 2 new lines before each option, except the first
4990 one.
4991 * compile/compile.c (_initialize_compile): Add new lines after
4992 %OPTIONS%, when not at the end of the help.
4993 Change help doc or code
4994 producing the help doc to respect the invariants.
4995 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4996 Also removed the new line after 'Options:', as all other commands
4997 do not put an empty line between 'Options:' and the first option.
4998 * printcmd.c (_initialize_printcmd): Likewise.
4999 * stack.c (_initialize_stack): Likewise.
5000 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5001 incorrectly telling COMMAND is optional.
5002 * ada-lang.c (_initialize_ada_language): Change help doc or code
5003 producing the help doc to respect the invariants.
5004 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5005 * breakpoint.c (_initialize_breakpoint): Likewise.
5006 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5007 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5008 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5009 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5010 _initialize_cli_style): Likewise.
5011 * corelow.c (core_target_info): Likewise.
5012 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5013 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5014 * filesystem.c (_initialize_filesystem): Likewise.
5015 * frame.c (_initialize_frame): Likewise.
5016 * gnu-nat.c (add_task_commands): Likewise.
5017 * infcall.c (_initialize_infcall): Likewise.
5018 * infcmd.c (_initialize_infcmd): Likewise.
5019 * interps.c (_initialize_interpreter): Likewise.
5020 * language.c (_initialize_language): Likewise.
5021 * linux-fork.c (_initialize_linux_fork): Likewise.
5022 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5023 * maint.c (_initialize_maint_cmds): Likewise.
5024 * memattr.c (_initialize_mem): Likewise.
5025 * printcmd.c (_initialize_printcmd): Likewise.
5026 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5027 _RegEx): Likewise.
5028 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5029 * record-btrace.c (_initialize_record_btrace): Likewise.
5030 * record-full.c (_initialize_record_full): Likewise.
5031 * record.c (_initialize_record): Likewise.
5032 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5033 * regcache.c (_initialize_regcache): Likewise.
5034 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5035 _initialize_remote): Likewise.
5036 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5037 * serial.c (_initialize_serial): Likewise.
5038 * skip.c (_initialize_step_skip): Likewise.
5039 * source.c (_initialize_source): Likewise.
5040 * stack.c (_initialize_stack): Likewise.
5041 * symfile.c (_initialize_symfile): Likewise.
5042 * symtab.c (_initialize_symtab): Likewise.
5043 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5044 * top.c (init_main): Likewise.
5045 * tracefile-tfile.c (tfile_target_info): Likewise.
5046 * tracepoint.c (_initialize_tracepoint): Likewise.
5047 * tui/tui-win.c (_initialize_tui_win): Likewise.
5048 * utils.c (add_internal_problem_command): Likewise.
5049 * valprint.c (value_print_option_defs): Likewise.
5050
5051 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5052
5053 PR build/24886
5054 * configure.ac: Drop enable-libmcheck support.
5055 * configure, config.in: Rebuild.
5056 * libmcheck.m4: Remove.
5057 * acinclude.m4: Don't include it.
5058 * Makefile.in: Don't distribute it.
5059 * top.c (print_gdb_configuration): Don't mention it.
5060
5061 2019-08-06 Tom Tromey <tom@tromey.com>
5062
5063 * utils.c (set_output_style): Sometimes pass stream to
5064 emit_style_escape.
5065 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5066 * record-btrace.c (btrace_insn_history): Update.
5067 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5068 method.
5069 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5070 Update initializers.
5071 <m_uiout>: New field.
5072 <m_di>: Move lower.
5073 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5074 Remove "uiout" parameter.
5075 (dump_insns): Update.
5076 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5077 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5078
5079 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5080
5081 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5082 (error_in_psymtab_expansion): Likewise.
5083 (lookup_symbol_via_quick_fns): Likewise.
5084 (basic_lookup_transparent_type_quick): Likewise.
5085 (basic_lookup_transparent_type_1): Likewise.
5086
5087 2019-08-06 Tom Tromey <tromey@adacore.com>
5088
5089 * source.c (last_source_error): Now bool.
5090 (print_source_lines_base): Make "noprint" bool. Only open
5091 source file when last_source_visited changes.
5092
5093 2019-08-06 Tom Tromey <tromey@adacore.com>
5094
5095 * annotate.c (annotate_source_line): Use g_source_cache.
5096 * source-cache.c (source_cache::get_plain_source_lines): Change
5097 parameters. Populate m_offset_cache.
5098 (source_cache::ensure): New method.
5099 (source_cache::get_line_charpos): New method.
5100 (extract_lines): Move lower. Change parameters.
5101 (source_cache::get_source_lines): Move lower.
5102 * source-cache.h (class source_cache): Update comment.
5103 <get_line_charpos>: New method.
5104 <get_source_lines>: Update comment.
5105 <clear>: Clear m_offset_cache.
5106 <get_plain_source_lines>: Change parameters.
5107 <ensure>: New method
5108 <m_offset_cache>: New member.
5109 * source.c (forget_cached_source_info_for_objfile): Update.
5110 (info_source_command): Use g_source_cache.
5111 (find_source_lines, open_source_file_with_line_charpos): Remove.
5112 (print_source_lines_base, search_command_helper): Use g_source_cache.
5113 * source.h (open_source_file_with_line_charpos): Don't declare.
5114 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5115 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5116 Use g_source_cache.
5117
5118 2019-08-06 Tom Tromey <tromey@adacore.com>
5119
5120 * source-cache.c (source_cache::get_plain_source_lines):
5121 Remove "first_line" and "last_line" parameters.
5122 (source_cache::get_source_lines): Cache plain text.
5123 * source-cache.h (class source_cache)
5124 <get_plain_source_lines>: Update.
5125
5126 2019-08-06 Tom Tromey <tromey@adacore.com>
5127
5128 * source-cache.c (extract_lines): No longer a method.
5129 Changed type of parameter. Include final newline.
5130 (selftests::extract_lines_test): New function.
5131 (_initialize_source_cache): Likewise.
5132 * source-cache.h (class source_cache)
5133 <extract_lines>: Don't declare.
5134
5135 2019-08-06 Tom Tromey <tromey@adacore.com>
5136
5137 * breakpoint.c (init_breakpoint_sal): Update.
5138 (breakpoint): Update.
5139 * breakpoint.h (struct breakpoint) <filter>: Now a
5140 unique_xmalloc_ptr.
5141
5142 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5143
5144 * NEWS: Mention dictionary access on blocks.
5145 * python/py-block.c (blpy_getitem): New function.
5146 (block_object_as_mapping): New struct.
5147 (block_object_type): Use new struct for tp_as_mapping field.
5148
5149 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5150
5151 * objfiles.h (objfile): Add a comment describing partial symbols.
5152
5153 2019-08-05 Tom Tromey <tromey@adacore.com>
5154
5155 * compile/compile.c (_initialize_compile): Use _(), not N_().
5156 * thread.c (_initialize_thread): Use _(), not N_().
5157 * stack.c (_initialize_stack): Use _(), not N_().
5158 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5159
5160 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * dwarf2read.c (struct dw2_symtab_iterator):
5163 <want_specific_block>: Remove.
5164 <block_index>: Change type to gdb::optional.
5165 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5166 change type of BLOCK_INDEX parameter to gdb::optional.
5167 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5168 (dw2_lookup_symbol): Don't pass argument for
5169 WANT_SPECIFIC_BLOCK.
5170 (dw2_expand_symtabs_for_function): Don't pass argument for
5171 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5172 (class dw2_debug_names_iterator)
5173 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5174 parameter, change BLOCK_INDEX type to gdb::optional.
5175 <m_want_specific_block>: Remove.
5176 <m_block_index>: Change type to gdb::optional.
5177 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5178 gdb::optional. Re-write in function of gdb::optional.
5179 (dw2_debug_names_lookup_symbol): Don't pass argument for
5180 WANT_SPECIFIC_BLOCK.
5181 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5182 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5183 BLOCK_INDEX.
5184
5185 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5186
5187 * NEWS: Mention changes to "info sources" command.
5188
5189 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5190
5191 * symtab.c (filename_partial_match_opts): New struct type.
5192 (struct output_source_filename_data): New members
5193 regexp, c_regexp, partial_match.
5194 (output_source_filename): Use new members to decide to print file.
5195 (info_sources_option_defs): New variable.
5196 (make_info_sources_options_def_group, print_info_sources_header,
5197 info_sources_command_completer):
5198 New functions.
5199 (info_sources_command): Read new optional arguments.
5200 (_initialize_symtab): Update info sources help.
5201
5202 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5203
5204 * ada-lang.c (exception_support_info_v0): Renamed from...
5205 (default_exception_support_info): ... this. Create new
5206 definition for v1.
5207 (ada_has_this_exception_support): Look up catch_handlers_sym.
5208 (ada_exception_support_info_sniffer): Try v0 after default.
5209
5210 2019-08-01 Tom Tromey <tromey@adacore.com>
5211
5212 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5213 gdbarch.h.
5214
5215 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5216
5217 * s12z-tdep.c: Fix include path for s12z-opc.h.
5218
5219 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5220
5221 * NEWS: Require GNU make 3.82.
5222
5223 2019-07-16 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5226 declare.
5227
5228 2019-07-30 Tom Tromey <tromey@adacore.com>
5229
5230 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5231
5232 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5233
5234 * printcmd.c (print_address_symbolic): Print negative offsets.
5235 (build_address_symbolic): Force signed arithmetic when computing
5236 offset.
5237
5238 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5239
5240 PR/24474: Add a function to lookup static variables.
5241 * NEWS: Mention this new function.
5242 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5243 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5244 * python/python.c (python_GdbMethods): Add new function.
5245
5246 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5247
5248 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5249 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5250 (objfpy_lookup_static_symbol): New function.
5251 (objfile_object_methods): Add new functions.
5252
5253 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5254
5255 * NEWS: Mention 'set|show print frame-info'. Mention new
5256 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5257 backtrace argument. Mention that python frame filtering code
5258 is now consistent with what 'backtrace' command prints.
5259
5260 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5261
5262 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5263 comments.
5264 (print_frame_info_auto, print_frame_info_source_line,
5265 print_frame_info_location, print_frame_info_source_and_location,
5266 print_frame_info_location_and_address, print_frame_info_short_location):
5267 New declarations.
5268 (struct frame_print_options): New member print_frame_info.
5269 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5270 * stack.h (get_user_print_what_frame_info): New declaration.
5271 (frame_show_address): New declaration.
5272 * stack.c (print_frame_arguments_choices): New value 'presence'.
5273 (print_frame_info_auto, print_frame_info_source_line,
5274 print_frame_info_location, print_frame_info_source_and_location,
5275 print_frame_info_location_and_address, print_frame_info_short_location,
5276 print_frame_info_choices, print_frame_info_print_what): New definitions.
5277 (print_frame_args): Only print dots for args if print frame-arguments
5278 is 'presence'.
5279 (frame_print_option_defs): New element for "frame-info".
5280 (get_user_print_what_frame_info): New function.
5281 (frame_show_address): Make non static. Move comment to stack.h.
5282 (print_frame_info_to_print_what): New function.
5283 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5284 to decide what to print.
5285 (backtrace_command_1): Handle the new print_frame_arguments_presence
5286 value.
5287 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5288 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5289 (py_print_frame): In non-mi mode, use LOCATION as default for
5290 print_what, similarly to frame information printed directly by
5291 backtrace command. Handle frame-info user option in non MI mode.
5292
5293 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5294
5295 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5296 Add case for debugging 32-bit target on 64-bit host. Revise
5297 comment.
5298
5299 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5300
5301 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5302 instead of find_function_entry_range_from_pc.
5303
5304 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5305
5306 * stack.c (find_frame_funname): Remove code which preferred
5307 minsym over symtab sym in "certain pathological cases".
5308
5309 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5310 parameter. Change type of "do_demangle" to bool.
5311 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5312 Pass suitable "prefer_sym_over_minsym" flag to
5313 build_address_symbolic(). Don't output "+" for negative offsets.
5314 * printcmd.c (print_address_symbolic): Update invocation of
5315 build_address_symbolic to include a "prefer_sym_over_minsym"
5316 flag.
5317 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5318 Restrict cases in which use of minimal symbol is preferred to that
5319 of a found symbol. Update comments.
5320
5321 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5322 for entry pc when entry pc is out of range for that FDE.
5323
5324 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5325
5326 PR gdb/24839:
5327 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5328 type.
5329
5330 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5331
5332 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5333 this function's Python signature.
5334
5335
5336 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5337
5338 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5339 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5340 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5341 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5342 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5343
5344
5345 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5346
5347 * h8300-tdep.c (h8300_register_name_common): New.
5348 h8300_register_name): Use h8300_register_name_common.
5349 (h8300s_register_name): Likewise.
5350 (h8300sx_register_name): Likewise.
5351 (h8300h_register_nam): New.
5352 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5353
5354
5355 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5356
5357 * arm-tdep.c (arm_skip_cmse_entry): New function.
5358 (arm_is_sgstubs_section): New function.
5359 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5360
5361 2019-07-22 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5364 Don't self-assign.
5365
5366 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5369 type_print.
5370
5371 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5372
5373 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5374 so that GDB doesn't match any msymbols when searching in the
5375 TYPES_DOMAIN.
5376 (print_symbol_info): Print using typedef_print or type_print based
5377 on the type of the symbol. Add updated FIXME comment moved from...
5378 (_initialize_symtab): ... move and update FIXME comment to above.
5379
5380 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * NEWS: Mention adding -q option to "info types".
5383 * symtab.c (struct info_types_options): New struct.
5384 (info_types_options_defs): New variable.
5385 (make_info_types_options_def_group): New function.
5386 (info_types_command): Use gdb::option framework to parse options.
5387 (info_types_command_completer): New function.
5388 (_initialize_symtab): Extend the help text on "info types" and
5389 register command completer.
5390
5391 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5392
5393 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5394 (lookup_symbol_in_objfile): Change int to block_enum and add a
5395 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5396
5397 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5398
5399 * MAINTAINERS (Write After Approval): Add self.
5400
5401 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5404 instruction to the dummy code region.
5405
5406 2019-07-19 Tom Tromey <tromey@adacore.com>
5407
5408 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5409 (ARGSUSED, PARAMS, __func__): Remove rules.
5410
5411 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5412
5413 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5414 * features/arm/arm-with-iwmmxt.c: Remove.
5415 * features/arm/arm-with-iwmmxt.xml: Remove.
5416 * features/arm/arm-with-m-fpa-layout.c: Remove.
5417 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5418 * features/arm/arm-with-m-vfp-d16.c: Remove.
5419 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5420 * features/arm/arm-with-m.c: Remove.
5421 * features/arm/arm-with-m.xml: Remove.
5422 * features/arm/arm-with-neon.c: Remove.
5423 * features/arm/arm-with-neon.xml: Remove.
5424 * features/arm/arm-with-vfpv2.c: Remove.
5425 * features/arm/arm-with-vfpv2.xml: Remove.
5426 * features/arm/arm-with-vfpv3.c: Remove.
5427 * features/arm/arm-with-vfpv3.xml: Remove.
5428
5429 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5430
5431 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5432
5433 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5434
5435 * arch/aarch32.c (aarch32_create_target_description): Create
5436 target descriptions using features.
5437 * arch/arm.c (arm_create_target_description)
5438 (arm_create_mprofile_target_description): Likewise.
5439 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5440
5441 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5442
5443 * Makefile.in: Add new files.
5444 * aarch32-tdep.c: New file.
5445 * aarch32-tdep.h: New file.
5446 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5447 Call aarch32_read_description.
5448 * arch/aarch32.c: New file.
5449 * arch/aarch32.h: New file.
5450 * arch/arm.c (arm_create_target_description)
5451 (arm_create_mprofile_target_description): New function.
5452 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5453 (arm_create_target_description)
5454 (arm_create_mprofile_target_description): New declaration.
5455 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5456 read_description functions.
5457 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5458 Likewise.
5459 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5460 * arm-tdep.c (tdesc_arm_list): New variable.
5461 (arm_register_g_packet_guesses): Call create description functions.
5462 (arm_read_description) (arm_read_mprofile_description): New
5463 function.
5464 * arm-tdep.h (arm_read_description)
5465 (arm_read_mprofile_description): Add declaration.
5466 * configure.tgt: Add new files.
5467
5468 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5469
5470 * top.c (new_ui_command): Open specified terminal just once.
5471
5472 2019-07-18 Tom Tromey <tromey@adacore.com>
5473
5474 * symtab.c (main_name): Constify return type.
5475 * symfile.c (set_initial_language): Update.
5476 * symtab.h (main_name): Constify return type.
5477
5478 2019-07-17 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-winsource.c (tui_update_source_window)
5481 (tui_update_source_window_as_is)
5482 (tui_update_source_windows_with_line): Remove return.
5483 * tui/tui-disasm.c (tui_show_disassem)
5484 (tui_show_disassem_and_update_source): Remove return.
5485 * tui/tui.c (tui_reset): Remove return.
5486 * tui/tui-wingeneral.c
5487 (tui_check_and_display_highlight_if_needed): Remove return.
5488
5489 2019-07-17 Tom Tromey <tom@tromey.com>
5490
5491 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5492
5493 2019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-winsource.h (struct tui_exec_info_window)
5496 (struct tui_source_window_base): Move from tui-data.h.
5497 * tui/tui-winsource.c: Move many method definitions from
5498 elsewhere. Remove "structuring" comments.
5499 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5500 (tui_source_window_base::refresh_window): Move to
5501 tui-winsource.c.
5502 * tui/tui-win.c (tui_source_window_base::refresh_all)
5503 (tui_source_window_base::update_tab_width)
5504 (tui_source_window_base::set_new_height)
5505 (tui_source_window_base::do_make_visible_with_new_height): Move to
5506 tui-winsource.c.
5507 * tui/tui-source.h: Update.
5508 * tui/tui-source.c (tui_source_window_base::reset): Move to
5509 tui-winsource.c.
5510 * tui/tui-disasm.h: Update.
5511 * tui/tui-data.h (struct tui_exec_info_window): Move to
5512 tui-winsource.h.
5513 (struct tui_source_window_base): Likewise.
5514 * tui/tui-data.c (tui_source_window_base::clear_detail)
5515 (tui_source_window_base, ~tui_source_window_base): Move to
5516 tui-winsource.c.
5517
5518 2019-07-17 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-win.c (tui_resize_all)
5521 (tui_source_window_base::update_tab_width)
5522 (tui_adjust_win_heights): Update.
5523 (tui_win_info::make_invisible_and_set_new_height): Rename from
5524 make_invisible_and_set_new_height.
5525 * tui/tui-data.h (struct tui_win_info)
5526 <make_invisible_and_set_new_height>: New method.
5527
5528 2019-07-17 Tom Tromey <tom@tromey.com>
5529
5530 * tui/tui.c: Update.
5531 * tui/tui-source.h (struct tui_source_window): Move from
5532 tui-data.h.
5533 * tui/tui-layout.c: Update.
5534 * tui/tui-disasm.c: Update.
5535 * tui/tui-data.h (struct tui_source_window): Move to
5536 tui-source.h.
5537
5538 2019-07-17 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5541 tui-data.h.
5542 * tui/tui-data.h (struct tui_disasm_window): Move to
5543 tui-disasm.h.
5544
5545 2019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-regs.h (struct tui_data_item_window): Move from
5548 tui-data.h.
5549 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5550 * tui/tui-data.h (struct tui_data_item_window): Move to
5551 tui-regs.h.
5552 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5553
5554 2019-07-17 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui.c: Update.
5557 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5558 (tui_cmd_window::max_height): Move to tui-command.c.
5559 * tui/tui-layout.c: Update.
5560 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5561 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5562 tui-command.c.
5563 * tui/tui-command.h (struct tui_cmd_window): Move from
5564 tui-data.h.
5565 * tui/tui-command.c: Remove "structuring" comments.
5566 (tui_cmd_window::clear_detail)
5567 (tui_cmd_window::do_make_visible_with_new_height)
5568 (tui_cmd_window::max_height): Move from elsewhere.
5569
5570 2019-07-17 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5573 Now static.
5574 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5575 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5576
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui.c: Update.
5580 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5581 tui-regs.c.
5582 * tui/tui-windata.h: Remove file.
5583 * tui/tui-windata.c: Remove file.
5584 * tui/tui-win.c (tui_data_window::set_new_height)
5585 (tui_data_window::do_make_visible_with_new_height): Move to
5586 tui-regs.c.
5587 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5588 * tui/tui-regs.c: Remove "structuring" comments.
5589 (tui_data_window::first_data_item_displayed)
5590 (tui_data_window::delete_data_content_windows)
5591 (tui_data_window::erase_data_content)
5592 (tui_data_window::display_all_data)
5593 (tui_data_window::refresh_all)
5594 (tui_data_window::do_scroll_vertical)
5595 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5596 (tui_data_window::do_make_visible_with_new_height)
5597 (tui_data_window::refresh_window): Move from elsewhere.
5598 (_initialize_tui_regs): Move to end of file.
5599 * tui/tui-layout.c: Update.
5600 * tui/tui-hooks.c: Update.
5601 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5602 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5603 tui-regs.c.
5604 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5605
5606 2019-07-17 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5609 seen.
5610
5611 2019-07-17 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-win.c (tui_source_window_base::set_new_height)
5614 (tui_source_window_base::do_make_visible_with_new_height): Use
5615 m_has_locator field directly.
5616 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5617 method.
5618 (struct tui_source_window_base) <has_locator>: Likewise.
5619
5620 2019-07-17 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5623 Don't declare.
5624 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5625 Remove.
5626 * tui/tui-win.c (tui_source_window_base::set_new_height)
5627 (tui_source_window_base::set_new_height)
5628 (make_invisible_and_set_new_height)
5629 (tui_source_window_base::do_make_visible_with_new_height)
5630 (tui_source_window_base::do_make_visible_with_new_height):
5631 Update.
5632 * tui/tui-layout.c (show_source_disasm_command, show_data)
5633 (show_source_or_disasm_and_command): Update.
5634 * tui/tui-layout.c (show_layout): Update.
5635
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-layout.c (make_data_window): Remove.
5639 (show_data): Unify creation and re-initialization cases.
5640
5641 2019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-layout.c (make_source_window, make_disasm_window):
5644 Remove.
5645 (show_data): Unify creation and re-initialization cases.
5646
5647 2019-07-17 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-layout.c (make_command_window): Remove.
5650 (show_source_disasm_command, show_source_or_disasm_and_command):
5651 Unify creation and re-initialization cases.
5652
5653 2019-07-17 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5656 creation and re-initialization cases.
5657
5658 2019-07-17 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-regs.c (tui_get_register): Return void.
5661
5662 2019-07-17 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5665 Simplify.
5666
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5670 resetting.
5671
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5675 * tui/tui-regs.c (tui_reg_layout): New function.
5676 (tui_show_registers, tui_reg_command): Use it.
5677 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5678 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5679 parameters.
5680 (tui_layout_command): Remove.
5681
5682 2019-07-17 Tom Tromey <tom@tromey.com>
5683
5684 * tui/tui-layout.h (tui/tui-layout): Return void.
5685 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5686
5687 2019-07-17 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-layout.c (show_source_disasm_command, show_data):
5690 Update.
5691 (reset_locator): Remove.
5692 (show_source_or_disasm_and_command): Update.
5693
5694 2019-07-17 Tom Tromey <tom@tromey.com>
5695
5696 * tui/tui-source.c (tui_source_window_base::reset): Remove
5697 win_type parameter.
5698 * tui/tui-layout.c (make_command_window, make_source_window)
5699 (make_disasm_window, make_data_window)
5700 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5701 (reset_locator, show_source_or_disasm_and_command): Update.
5702 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5703 win_type parameter.
5704 (struct tui_source_window_base) <reset>: Likewise.
5705
5706 2019-07-17 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-layout.c (show_source_disasm_command): Use
5709 reset_locator.
5710 (reset_locator): New function.
5711 (init_and_make_win): Remove.
5712 (show_source_or_disasm_and_command): Use reset_locator.
5713
5714 2019-07-17 Tom Tromey <tom@tromey.com>
5715
5716 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5717 condition.
5718 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5719 Remove condition.
5720 * tui/tui-source.c (tui_source_window_base::reset): New method.
5721 * tui/tui-layout.c (make_command_window): Don't call
5722 init_and_make_win.
5723 (make_source_window, make_disasm_window): Don't call
5724 make_source_or_disasm_window.
5725 (make_data_window): Don't call init_and_make_win. Change calling
5726 convention.
5727 (show_source_disasm_command, show_data): Simplify.
5728 (make_source_or_disasm_window): Remove.
5729 (show_source_or_disasm_and_command): Simplify.
5730 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5731 (struct tui_source_window_base) <reset>: Likewise.
5732 <execution_info>: Remove initializer.
5733 * tui/tui-data.c (tui_source_window_base): Initialize
5734 execution_info.
5735
5736 2019-07-17 Tom Tromey <tom@tromey.com>
5737
5738 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5739 variable.
5740
5741 2019-07-17 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui.c (tui_rl_other_window): Update.
5744 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5745 superclass method first. Always iterate over regs_content.
5746 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5747 method.
5748 * tui/tui-win.c (tui_set_focus_command): Update.
5749
5750 2019-07-17 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-win.c (tui_set_focus_command): Rename from
5753 tui_set_focus. Call tui_enable.
5754 (tui_set_focus_command): Remove.
5755
5756 2019-07-17 Tom Tromey <tom@tromey.com>
5757
5758 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5759 refresh_window.
5760 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5761 touchwin.
5762 (tui_data_window::refresh_window): Call refresh_window on data
5763 items. Always call superclass refresh_window.
5764 (tui_win_info::refresh): Remove.
5765 (tui_source_window_base::refresh_window): Update.
5766 (tui_refresh_all): Update.
5767 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5768 refresh_window.
5769 (show_source_or_disasm_and_command): Likewise.
5770 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5771 (struct tui_source_window_base) <refresh>: Likewise.
5772
5773 2019-07-17 Tom Tromey <tom@tromey.com>
5774
5775 * tui/tui-winsource.c (tui_clear_source_content)
5776 (tui_show_source_content): Update.
5777 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5778 whether content is empty.
5779 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5780 Remove.
5781
5782 2019-07-17 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5785 window's contents.
5786 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5787 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5788
5789 2019-07-17 Tom Tromey <tom@tromey.com>
5790
5791 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5792 (struct tui_data_item_window): Update.
5793
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5797 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5798 defines.
5799
5800 2019-07-17 Tom Tromey <tom@tromey.com>
5801
5802 * tui/tui-winsource.h (tui_erase_source_content)
5803 (tui_clear_source_content): Remove "display_prompt" parameter.
5804 * tui/tui-winsource.c (tui_update_source_window_as_is)
5805 (tui_update_source_windows_with_addr): Update.
5806 (tui_clear_source_content): Remove "display_prompt" parameter.
5807 (tui_erase_source_content): Likewise. Simplify.
5808 (tui_show_source_content): Update.
5809 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5810 * tui/tui-stack.c (tui_show_frame_info): Update.
5811 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5812 Remove defines.
5813
5814 2019-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5817 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5818 parameter.
5819 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5820 parameter.
5821
5822 2019-07-17 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-winsource.c (tui_clear_source_content)
5825 (tui_show_source_content, tui_show_exec_info_content)
5826 (tui_clear_exec_info_content): Update.
5827 * tui/tui-stack.c (tui_show_locator_content): Update.
5828 (tui_show_frame_info): Update.
5829 * tui/tui-source.h (tui_source_window): Don't declare.
5830 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5831 from tui_source_is_displayed.
5832 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5833 Remove field.
5834 (struct tui_source_window_base) <content_in_use>: New field. Now
5835 bool.
5836 (struct tui_source_window) <showing_source_p>: New method.
5837 (TUI_SRC_WIN): Change cast.
5838 * tui/tui-data.c (tui_initialize_static_data): Update.
5839
5840 2019-07-17 Tom Tromey <tom@tromey.com>
5841
5842 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5843 location_matches_p.
5844 * tui/tui-source.c (tui_source_window::location_matches_p): New
5845 method.
5846 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5847 method.
5848 * tui/tui-data.h (struct tui_source_window_base)
5849 <location_matches_p>: New method.
5850 (struct tui_source_window, struct tui_disasm_window)
5851 <location_matches_p>: Likewise.
5852
5853 2019-07-17 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-win.c (tui_set_win_height_command): Rename from
5856 tui_set_win_height.
5857 (tui_set_win_height_command): Remove.
5858
5859 2019-07-17 Tom Tromey <tom@tromey.com>
5860
5861 * tui/tui-source.c (tui_source_window): New constructor. Add
5862 observer.
5863 (~tui_source_window): New destructor.
5864 (tui_source_window::style_changed): New method.
5865 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5866 (tui_attach_detach_observers): Update.
5867 * tui/tui-data.h (struct tui_source_window): Make constructor not
5868 inline. Add destructor.
5869 (struct tui_source_window) <style_changed>: New method.
5870 <m_observable>: New member.
5871
5872 2019-07-17 Tom Tromey <tom@tromey.com>
5873
5874 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5875 * tui/tui-win.c (tui_resize_all): Fix typo.
5876
5877 2019-07-17 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5880 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5881 (tui_refresh_all): Remove "list" parameter. Use foreach.
5882 * tui/tui-win.c (window_name_completer): Use foreach.
5883 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5884 (update_tab_width): Likewise.
5885 * tui/tui-layout.c (show_layout): Update.
5886 * tui/tui-data.h (class tui_window_iterator): New.
5887 (struct all_tui_windows): New.
5888 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5889
5890 2019-07-17 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5893 parameter. Don't reference globals.
5894 (tui_reg_command): Update.
5895
5896 2019-07-17 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-regs.c (tui_show_registers): Simplify.
5899
5900 2019-07-17 Tom Tromey <tom@tromey.com>
5901
5902 * tui/tui-regs.c (tui_show_registers): Update.
5903 (tui_show_register_group): Add win_info parameter.
5904
5905 2019-07-17 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5908 Rename from tui_display_reg_element_at_line.
5909 (tui_data_window::display_registers_from_line): Update.
5910 * tui/tui-data.h (struct tui_data_window)
5911 <display_reg_element_at_line>: New method.
5912
5913 2019-07-17 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-regs.h (tui_display_registers_from)
5916 (tui_display_registers_from_line): Don't declare.
5917 * tui/tui-windata.c (tui_data_window::display_all_data)
5918 (tui_data_window::refresh_all)
5919 (tui_data_window::do_scroll_vertical): Update.
5920 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5921 from tui_display_registers_from.
5922 (tui_display_reg_element_at_line): Update.
5923 (tui_data_window::display_registers_from_line): Rename from
5924 tui_display_registers_from_line.
5925 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5926 display_registers_from_line>: New methods.
5927
5928 2019-07-17 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5931 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5932 from tui_erase_data_content.
5933 (tui_data_window::display_all_data)
5934 (tui_data_window::refresh_all)
5935 (tui_data_window::do_scroll_vertical): Update.
5936 * tui/tui-regs.c (tui_show_registers): Update.
5937 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5938 New method.
5939
5940 2019-07-17 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5943 declare.
5944 * tui/tui-windata.c
5945 (tui_data_window::delete_data_content_windows): Rename from
5946 tui_delete_data_content_windows.
5947 (tui_data_window::display_all_data)
5948 (tui_data_window::do_scroll_vertical): Update.
5949 * tui/tui-data.h (struct tui_data_window)
5950 <delete_data_content_windows>: New method.
5951
5952 2019-07-17 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5955 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5956
5957 2019-07-17 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5960 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5961 from tui_display_all_data.
5962 * tui/tui-win.c
5963 (tui_data_window::do_make_visible_with_new_height): Update.
5964 * tui/tui-regs.c (tui_show_registers): Update.
5965 * tui/tui-layout.c (tui_set_layout): Update.
5966 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5967 method.
5968
5969 2019-07-17 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5972 * tui/tui-windata.c (tui_display_data_from): Remove.
5973 (tui_data_window::refresh_all): Update.
5974
5975 2019-07-17 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5978 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5979 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5980 tui_display_registers_from_line.
5981 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5982 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5983 "force_display" parameter.
5984
5985 2019-07-17 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5988 declare.
5989 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5990 Rename from tui_first_reg_element_no_inline.
5991 (tui_display_reg_element_at_line)
5992 (tui_display_registers_from_line): Update.
5993 * tui/tui-data.h (struct tui_data_window)
5994 <first_reg_element_no_inline>: New method.
5995
5996 2019-07-17 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-windata.c (tui_display_data_from)
5999 (tui_data_window::do_scroll_vertical): Update.
6000 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6001 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6002 Rename from tui_line_from_reg_element_no.
6003 (tui_display_registers_from_line): Update.
6004 * tui/tui-data.h (struct tui_data_window)
6005 <line_from_reg_element_no>: New method.
6006
6007 2019-07-17 Tom Tromey <tom@tromey.com>
6008
6009 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6010 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6011 tui_last_regs_line_no.
6012 (tui_display_reg_element_at_line)
6013 (tui_display_registers_from_line): Update.
6014 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6015 method.
6016
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 PR tui/24722:
6020 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6021 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6022 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6023 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6024 (tui_update_breakpoint_info): Likewise.
6025 * tui/tui-hooks.c (tui_event_create_breakpoint)
6026 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6027 Update.
6028
6029 2019-07-17 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6032
6033 2019-07-17 Tom Tromey <tom@tromey.com>
6034
6035 * tui/tui-winsource.c (tui_update_source_window_as_is)
6036 (tui_update_source_windows_with_addr): Update.
6037 * tui/tui-source.h (tui_set_source_content)
6038 (tui_show_symtab_source): Add "win_info" parameter.
6039 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6040 parameter.
6041 (tui_show_symtab_source): Likewise.
6042
6043 2019-07-17 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-wingeneral.c
6046 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6047
6048 2019-07-17 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6051 (struct tui_cmd_window) <can_scroll>: New method.
6052 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6053 method.
6054
6055 2019-07-17 Tom Tromey <tromey@adacore.com>
6056
6057 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6058 do_field_signed>: Rename. Change type of "value".
6059 * ui-out.c (ui_out::field_signed): Rename from field_int.
6060 Change type of "value".
6061 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6062 type of "value".
6063 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6064 do_field_int. Change type of "value".
6065 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6066 do_field_int. Change type of "value".
6067 * tracepoint.c (trace_status_mi, tfind_1)
6068 (print_one_static_tracepoint_marker): Update.
6069 * thread.c (print_thread_info_1, print_selected_thread_frame):
6070 Update.
6071 * stack.c (print_frame, print_frame_info): Update.
6072 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6073 Update.
6074 * source.c (print_source_lines_base): Update.
6075 * skip.c (info_skip_command): Update.
6076 * record-btrace.c (btrace_ui_out_decode_error)
6077 (btrace_call_history_src_line): Update.
6078 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6079 Update.
6080 * progspace.c (print_program_space): Update.
6081 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6082 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6083 do_field_int. Change type of "value".
6084 * mi/mi-out.c (mi_ui_out::do_table_begin)
6085 (mi_ui_out::do_table_header): Update.
6086 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6087 type of "value".
6088 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6089 (mi_cmd_data_list_changed_registers, output_register)
6090 (mi_cmd_data_read_memory, mi_load_progress)
6091 (mi_cmd_trace_frame_collected): Update.
6092 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6093 Update.
6094 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6095 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6096 (mi_cmd_var_list_children, varobj_update_one): Update.
6097 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6098 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6099 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6100 * inferior.c (print_inferior): Update.
6101 * gdb_bfd.c (print_one_bfd): Update.
6102 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6103 Update.
6104 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6105 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6106 do_field_int. Change type of "value".
6107 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6108 do_field_int. Change type of "value".
6109 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6110 (print_one_breakpoint_location, print_it_catch_fork)
6111 (print_one_catch_fork, print_it_catch_vfork)
6112 (print_one_catch_vfork, print_it_catch_solib)
6113 (print_it_catch_exec, print_it_ranged_breakpoint)
6114 (print_mention_watchpoint, print_mention_masked_watchpoint)
6115 (bkpt_print_it, update_static_tracepoint): Update.
6116 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6117 * break-catch-syscall.c (print_it_catch_syscall): Update.
6118 * ada-tasks.c (print_ada_task_info): Update.
6119 * ada-lang.c (print_it_exception, print_mention_exception):
6120 Update.
6121
6122 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6123
6124 PR breakpoints/24541
6125 * gdbarch.c: Regenerate.
6126 * gdbarch.h: Regenerate.
6127 * gdbarch.sh: Adjust return type and parameter types for
6128 'stap_adjust_register'.
6129 (i386_stap_adjust_register): Adjust signature and return new
6130 register name.
6131 * stap-probe.c (stap_parse_register_operand): Adjust use of
6132 'gdbarch_stap_adjust_register'.
6133
6134 2019-07-17 Tom Tromey <tromey@adacore.com>
6135
6136 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6137 declare VEC.
6138 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6139 std::vector.
6140 (struct s390_process_info): Add initializers.
6141 (s390_add_process): Use new.
6142 (s390_linux_nat_target::low_forget_process): Use delete.
6143 (s390_linux_nat_target::low_new_fork)
6144 (s390_linux_nat_target::stopped_by_watchpoint)
6145 (s390_linux_nat_target::low_prepare_to_resume)
6146 (s390_linux_nat_target::insert_watchpoint)
6147 (s390_linux_nat_target::insert_hw_breakpoint)
6148 (s390_linux_nat_target::remove_watchpoint)
6149 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6150
6151 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6152
6153 * aarch64-fbsd-nat.c: Include regcache.h.
6154 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6155 argument.
6156 (aarch64_fbsd_nat_target::fetch_registers)
6157 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6158 variable.
6159 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6160
6161 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6162
6163 * fbsd-nat.c: Include gdbarch.h.
6164
6165 2019-07-15 Tom Tromey <tromey@adacore.com>
6166
6167 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6168
6169 2019-07-15 Tom Tromey <tromey@adacore.com>
6170
6171 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6172 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6173 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6174 * cli-out.c (cli_ui_out::do_field_int): New method.
6175 * ui-out.c (ui_out::field_unsigned): New method.
6176 * symfile.c (generic_load): Use field_unsigned.
6177 (print_transfer_performance): Likewise.
6178 * record-btrace.c (ui_out_field_uint): Remove.
6179 (btrace_call_history_insn_range, btrace_call_history): Use
6180 field_unsigned.
6181 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6182 field_unsigned.
6183 * ui-out.h (class ui_out) <field_unsigned>: New method.
6184 <do_field_unsigned>: Likewise.
6185
6186 2019-07-15 Tom Tromey <tromey@adacore.com>
6187
6188 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6189 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6190 * target.c (flash_erase_command): Use field_string.
6191 * infrun.c (print_signal_received_reason): Use field_string.
6192 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6193 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6194 field_string.
6195 * ada-tasks.c (print_ada_task_info): Use field_string.
6196
6197 2019-07-15 Tom Tromey <tromey@adacore.com>
6198
6199 * target.c (flash_erase_command): Use field_core_addr.
6200 * symfile.c (generic_load): Use field_core_addr.
6201 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6202 Use field_core_addr.
6203 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6204 field_core_addr.
6205
6206 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6209 value if its desired type is smaller than a CORE_ADDR and signed.
6210
6211 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6214 of changes to field names, and use new is_reference field to
6215 decide if a property is a reference or not.
6216 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6217 field.
6218 (struct dwarf2_property_baton): Update header comment, rename
6219 'referenced_type' to 'property_type' and update comments.
6220 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6221 default property type, store in property baton, update to take
6222 accound of renamed field.
6223 (read_func_scope): Update call to attr_to_dynamic_prop.
6224 (read_array_type): Likewise.
6225 (dwarf2_per_cu_addr_sized_int_type): New function.
6226 (read_subrange_index_type): Move type finding code to
6227 dwarf2_per_cu_addr_sized_int_type.
6228 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6229 (dwarf2_per_cu_addr_type): New function.
6230 (set_die_type): Update calls to attr_to_dynamic_prop.
6231
6232 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6233
6234 * dwarf2read.c (read_subrange_index_type): New function.
6235 (read_subrange_type): Move code into new function and call it.
6236 * gdbtypes.c (create_range_type): Add some asserts.
6237
6238 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6241 update return statements.
6242 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6243 declaration, and update comment to match.
6244 * gdbtypes.c (resolve_dynamic_array): Update call to
6245 dwarf2_evaluate_property to match new return type.
6246
6247 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * valarith.c (value_subscripted_rvalue): Change lowerbound
6250 parameter type from int to LONGEST.
6251 * value.h (value_subscripted_rvalue): Likewise in declaration.
6252
6253 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * cli/cli-utils.c (info_print_command_completer): New function.
6256 * cli/cli-utils.h: Add 'completer.h' include, and forward
6257 declaration for 'struct cmd_list_element'.
6258 (info_print_command_completer): Declare.
6259 * stack.c (_initialize_stack): Add completer for 'info locals' and
6260 'info args'.
6261 * symtab.c (_initialize_symtab): Add completer for 'info
6262 variables' and 'info functions'.
6263 * NEWS: Mention completion for additional info commands.
6264
6265 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 * cli/cli-utils.c (extract_info_print_args): Delete.
6268 (extract_arg_maybe_quoted): Delete.
6269 (info_print_options_defs): New variable.
6270 (make_info_print_options_def_group): New function.
6271 (extract_info_print_options): Define new function.
6272 * cli/cli-utils.h (extract_info_print_args): Delete.
6273 (struct info_print_options): New structure.
6274 (extract_info_print_options): Declare new function.
6275 * stack.c (info_locals_command): Update to use new
6276 extract_info_print_options, also add a header comment.
6277 (info_args_command): Likewise.
6278 * symtab.c (info_variables_command): Likewise.
6279 (info_functions_command): Likewise.
6280
6281 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6282
6283 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6284 to extract string arguments.
6285 * common/common-utils.c (extract_string_maybe_quoted): New function.
6286 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6287
6288 2019-07-11 Tom Tromey <tromey@adacore.com>
6289
6290 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6291 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6292 * top.h (gdbinit): Don't declare.
6293 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6294 into...
6295 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6296 * top.c (gdb_init): Don't call init_cli_cmds.
6297 (gdbinit): Remove.
6298 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6299
6300 2019-07-11 Tom Tromey <tromey@adacore.com>
6301
6302 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6303 after it has been moved.
6304
6305 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6306
6307 * valops.c (value_must_coerce_to_target): Change return type to
6308 bool.
6309 * value.h (value_must_coerce_to_target): Likewise.
6310
6311 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * breakpoint.c (is_hardware_watchpoint): Remove
6314 forward-declaration.
6315 (is_masked_watchpoint): Change return type to bool.
6316 (is_tracepoint): Likewise.
6317 (is_breakpoint): Likewise.
6318 (is_hardware_watchpoint): Likewise.
6319 (is_watchpoint): Likewise.
6320 (is_no_memory_software_watchpoint): Likewise.
6321 (is_catchpoint): Likewise.
6322 (breakpoint_1): Make FILTER parameter's return type bool.
6323 is_masked_watchpoint): Change return type to bool.
6324 (save_breakpoints): Make FILTER parameter's return type bool.
6325 * breakpoint.h (is_breakpoint): Change return type to bool.
6326 (is_watchpoint): Likewise.
6327 (is_catchpoint): Likewise.
6328 (is_tracepoint): Likewise.
6329
6330 2019-07-10 Tom Tromey <tom@tromey.com>
6331
6332 * defs.h: Don't include gdbarch.h.
6333 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6334 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6335 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6336 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6337 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6338 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6339 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6340 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6341 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6342 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6343 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6344 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6345 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6346 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6347 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6348 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6349 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6350 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6351 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6352 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6353 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6354 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6355 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6356 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6357 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6358 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6359 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6360
6361 2019-07-10 Tom Tromey <tromey@adacore.com>
6362
6363 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6364 * breakpoint.c (init_ada_exception_breakpoint): Register as
6365 bp_catchpoint.
6366 (print_one_breakpoint_location, print_one_breakpoint): Use
6367 is_ada_exception_catchpoint.
6368 * ada-lang.c (class ada_catchpoint_location): Pass
6369 bp_loc_software_breakpoint to bp_location constructor.
6370 (is_ada_exception_catchpoint): New function.
6371
6372 2019-07-10 Tom Tromey <tromey@adacore.com>
6373
6374 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6375 VEC.
6376 (struct arm_exidx_entry): New method operator<.
6377 (struct arm_exidx_data) <section_maps>: Change type.
6378 (arm_exidx_data_free): Remove.
6379 (arm_exidx_data_key): Change type. Move lower.
6380 (arm_exidx_new_objfile): Update.
6381 (arm_compare_exidx_entries): Remove.
6382 (arm_find_exidx_entry, _initialize_arm_tdep)
6383
6384 2019-07-10 Tom Tromey <tromey@adacore.com>
6385
6386 * solib-spu.c (ocl_program_data_key): Change type.
6387 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6388 Update.
6389
6390 2019-07-10 Tom Tromey <tromey@adacore.com>
6391
6392 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6393 (struct solib_aix_inferior_data) <library_list>: Change type.
6394 (solib_aix_inferior_data_handle): Change type.
6395 (get_solib_aix_inferior_data): Update.
6396 (solib_aix_free_library_list): Remove.
6397 (library_list_start_library): Update.
6398 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6399 return type.
6400 (solib_aix_get_library_list)
6401 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6402 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6403
6404 2019-07-10 Tom Tromey <tromey@adacore.com>
6405
6406 * solib-dsbt.c (struct dsbt_info): Add initializers.
6407 (solib_dsbt_pspace_data): Change type.
6408 (dsbt_pspace_data_cleanup): Remove.
6409 (get_dsbt_info, _initialize_dsbt_solib): Update.
6410
6411 2019-07-10 Tom Tromey <tromey@adacore.com>
6412
6413 * spu-tdep.c (spu_overlay_data): Change type.
6414 (spu_get_overlay_table, spu_overlay_new_objfile)
6415 (_initialize_spu_tdep): Update.
6416
6417 2019-07-10 Tom Tromey <tromey@adacore.com>
6418
6419 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6420 destructor.
6421 (dbx_objfile_data_key): Change type and declare later.
6422 (DBX_SYMFILE_INFO): Rewrite.
6423 * dbxread.c (dbx_objfile_data_key): Change type.
6424 (dbx_symfile_init): Update.
6425 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6426 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6427 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6428
6429 2019-07-10 Tom Tromey <tromey@adacore.com>
6430
6431 * jit.c (jit_program_space_key): Change type. Move lower.
6432 (get_jit_program_space_data): Update.
6433 (jit_program_space_data_cleanup): Remove.
6434 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6435 Update.
6436 (struct jit_program_space_data): Add initializers.
6437
6438 2019-07-10 Tom Tromey <tromey@adacore.com>
6439
6440 * solib-darwin.c (struct darwin_info): Add initializers.
6441 (solib_darwin_pspace_data): Change type.
6442 (darwin_pspace_data_cleanup): Remove.
6443 (get_darwin_info, _initialize_darwin_solib): Update.
6444
6445 2019-07-10 Tom Tromey <tromey@adacore.com>
6446
6447 * remote-sim.c (struct sim_inferior_data): Add initializers,
6448 constructor, and destructor.
6449 (sim_inferior_data_key): Change type. Move lower.
6450 (check_for_duplicate_sim_descriptor): Update.
6451 (get_sim_inferior_data): Use new. Update.
6452 (~sim_inferior_data_cleanup): Rename from
6453 sim_inferior_data_cleanup. Simplify.
6454 (gdbsim_close_inferior, simulator_command)
6455 (sim_command_completer, _initialize_remote_sim): Update.
6456 (next_pid, INITIAL_PID): Move earlier.
6457
6458 2019-07-10 Tom Tromey <tromey@adacore.com>
6459
6460 * python/python-internal.h (create_thread_object): Return
6461 gdbpy_ref.
6462 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6463 * python/py-inferior.c (struct threadlist_entry): Add
6464 constructor.
6465 <thread_obj>: Now a gdbpy_ref.
6466 (thread_to_thread_object): Update.
6467 (add_thread_object): Use new.
6468 (delete_thread_object): Use delete.
6469 (infpy_threads): Update.
6470 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6471 GIL.
6472
6473 2019-07-10 Tom Tromey <tromey@adacore.com>
6474
6475 * valops.c (value_cast): Specialize error message for Ada.
6476
6477 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6480
6481 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6484 bpstat_should_step): Return bool, adjust comments.
6485 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6486 bpstat_should_step): Likewise.
6487
6488 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6489
6490 * features/Makefile: Use feature target descriptions for Arm.
6491 * features/arm/arm-core.c: Generate new file.
6492 * features/arm/arm-fpa.c: Likewise.
6493 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6494 * features/arm/arm-m-profile.c: Likewise.
6495 * features/arm/arm-vfpv2.c: Likewise.
6496 * features/arm/arm-vfpv3.c: Likewise.
6497 * features/arm/xscale-iwmmxt.c: Likewise.
6498 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6499
6500 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6501
6502 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6503 ptrace earlier.
6504
6505 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6506
6507 * features/aarch64-pauth.c: Regenerate.
6508
6509 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6512 bool.
6513 (bpstat_what): Use false instead of 0.
6514
6515 2019-07-09 Pedro Alves <palves@redhat.com>
6516
6517 * break-catch-throw.c (is_exception_catchpoint): New.
6518 * breakpoint.c (print_one_breakpoint_location): New parameter
6519 'raw_loc'. Handle it. Use
6520 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6521 looking at the breakpoint's type.
6522 (print_one_breakpoint): If handling "maint info breakpoints", also
6523 print locations of exception catchpoints.
6524 * breakpoint.h (is_exception_catchpoint): Declare.
6525
6526 2019-07-09 Pedro Alves <palves@redhat.com>
6527
6528 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6529 "addr" field.
6530 (allocate_location_exception_catchpoint): New.
6531 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6532 (initialize_throw_catchpoint_ops): Install
6533 allocate_location_exception_catchpoint as allocate_location
6534 method.
6535 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6536 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6537 bp_loc_other.
6538 (breakpoint_address_is_meaningful): Delete.
6539 (bl_address_is_meaningful): New.
6540 (breakpoint_locations_match): Adjust comment.
6541 (bp_location_from_bp_type): New, factored out of...
6542 (bp_location::bp_location(breakpoint *)): ... this.
6543 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6544 factored out of...
6545 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6546 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6547 breakpoint_address_is_meaningful.
6548 (bp_locations_compare): Adjust comment.
6549 (update_global_location_list): Use bl_address_is_meaningful
6550 instead of breakpoint_address_is_meaningful.
6551 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6552 explicit.
6553 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6554 * python/py-breakpoint.c (bppy_get_location): No longer check
6555 whether location is null.
6556
6557 2019-07-09 Pedro Alves <palves@redhat.com>
6558
6559 PR c++/15468
6560 * breakpoint.c (print_one_breakpoint_location): Remove
6561 single-location assert.
6562
6563 2019-07-09 Tom Tromey <tom@tromey.com>
6564
6565 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6566 * configure: Rebuild.
6567 * configure.ac: Change common to gdbsupport.
6568 * gdbsupport: Rename from common.
6569 * acinclude.m4: Change common to gdbsupport.
6570 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6571 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6572 gdbsupport.
6573 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6574 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6575 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6576 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6577 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6578 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6579 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6580 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6581 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6582 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6583 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6584 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6585 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6586 coff-pe-read.c, command.h, compile/compile-c-support.c,
6587 compile/compile-c.h, compile/compile-cplus-symbols.c,
6588 compile/compile-cplus-types.c, compile/compile-cplus.h,
6589 compile/compile-loc2c.c, compile/compile.c, completer.c,
6590 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6591 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6592 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6593 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6594 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6595 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6596 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6597 features/aarch64-core.c, features/aarch64-fpu.c,
6598 features/aarch64-pauth.c, features/aarch64-sve.c,
6599 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6600 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6601 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6602 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6603 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6604 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6605 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6606 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6607 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6608 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6609 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6610 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6611 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6612 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6613 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6614 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6615 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6616 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6617 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6618 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6619 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6620 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6621 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6622 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6623 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6624 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6625 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6626 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6627 minsyms.c, mips-linux-tdep.c, namespace.h,
6628 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6629 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6630 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6631 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6632 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6633 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6634 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6635 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6636 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6637 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6638 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6639 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6640 procfs.c, producer.c, progspace.h, psymtab.h,
6641 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6642 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6643 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6644 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6645 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6646 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6647 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6648 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6649 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6650 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6651 target-memory.c, target.c, target.h, target/waitstatus.c,
6652 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6653 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6654 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6655 unittests/array-view-selftests.c,
6656 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6657 unittests/common-utils-selftests.c,
6658 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6659 unittests/format_pieces-selftests.c,
6660 unittests/function-view-selftests.c,
6661 unittests/lookup_name_info-selftests.c,
6662 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6663 unittests/mkdir-recursive-selftests.c,
6664 unittests/observable-selftests.c,
6665 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6666 unittests/parse-connection-spec-selftests.c,
6667 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6668 unittests/scoped_fd-selftests.c,
6669 unittests/scoped_mmap-selftests.c,
6670 unittests/scoped_restore-selftests.c,
6671 unittests/string_view-selftests.c, unittests/style-selftests.c,
6672 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6673 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6674 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6675 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6676 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6677 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6678
6679 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6680
6681 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6682 bool value.
6683 (decode_digits_ordinary): Set explicit_line field in sal.
6684 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6685 symtab_and_line that was set on an explicit line number in
6686 assembler code. Do always update the recorded symtab and line if
6687 we do skip the prologue.
6688
6689 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * breakpoint.c (set_breakpoint_location_function): Remove
6692 explicit_loc parameter.
6693 (momentary_breakpoint_from_master): Update call to
6694 set_breakpoint_location_function.
6695 (add_location_to_breakpoint): Likewise.
6696
6697 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6700 required features based on default bfd type when no specific bfd
6701 is present.
6702
6703 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6704
6705 * NEWS: Mention that GDB printf and eval commands can now print
6706 C-style and Ada-style convenience var strings without
6707 calling the inferior.
6708 * printcmd.c (printf_c_string): Locally print GDB internal var
6709 instead of transiting via the inferior.
6710 (printf_wide_c_string): Likewise.
6711
6712 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6713
6714 PR breakpoints/25011
6715 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6716
6717 2019-07-04 Tom Tromey <tom@tromey.com>
6718
6719 PR tui/24724:
6720 * tui/tui-winsource.c (tui_clear_source_content): Update.
6721 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6722 (tui_update_breakpoint_info): Update.
6723 (tui_set_exec_info_content): Update.
6724 * tui/tui-source.c (tui_set_source_content_nil): Update.
6725 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6726 has_break.
6727 * tui/tui-data.h (enum tui_bp_flag): New.
6728 (tui_bp_flags): New enum flags type.
6729 (struct tui_source_element) <break_mode>: Change type. Rename
6730 from has_break.
6731 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6732 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6733 constants.
6734 * tui/tui-winsource.h: Fix comment.
6735
6736 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6737
6738 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6739 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6740 (store_fpregs_to_thread)
6741 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6742 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6743 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6744 (IWMMXT_REGS_SIZE): Add define.
6745 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6746 (fetch_vfp_regs, store_vfp_regs)
6747 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6748 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6749
6750 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6751
6752 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6753 defines.
6754 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6755 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6756 (ARM_INT_REGISTER_SIZE): ...to this.
6757 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6758 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6759 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6760 (arm_linux_collect_gregset, supply_nwfpe_register)
6761 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6762 defines.
6763 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6764 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6765 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6766 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6767 (arm_return_in_memory, arm_store_return_value)
6768 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6769 (arm_record_ld_st_multiple): Likewise.
6770 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6771 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6772
6773 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6774
6775 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6776 AARCH64_DISPLACED_MODIFIED_INSNS.
6777 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6778 (aarch64_displaced_step_copy_insn): Likewise.
6779 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6780 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6781 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6782 ARM_DISPLACED_MODIFIED_INSNS.
6783 * arm-tdep.c (arm_gdbarch_init): Likewise.
6784 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6785 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6786 (struct arm_displaced_step_closure): Use
6787 ARM_DISPLACED_MODIFIED_INSNS.
6788
6789 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6790
6791 * features/Makefile: Remove unused xml files.
6792 * features/aarch64.xml: Remove.
6793 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6794 * features/i386/amd64-avx-avx512.xml: Remove.
6795 * features/i386/amd64-avx-linux.xml: Remove.
6796 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6797 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6798 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6799 * features/i386/amd64-avx-mpx.xml: Remove.
6800 * features/i386/amd64-avx.xml: Remove.
6801 * features/i386/amd64-linux.xml: Remove.
6802 * features/i386/amd64-mpx-linux.xml: Remove.
6803 * features/i386/amd64-mpx.xml: Remove.
6804 * features/i386/amd64.xml: Remove.
6805 * features/i386/i386-avx-avx512-linux.xml: Remove.
6806 * features/i386/i386-avx-avx512.xml: Remove.
6807 * features/i386/i386-avx-linux.xml: Remove.
6808 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6809 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6810 * features/i386/i386-avx-mpx-linux.xml: Remove.
6811 * features/i386/i386-avx-mpx.xml: Remove.
6812 * features/i386/i386-avx.xml: Remove.
6813 * features/i386/i386-linux.xml: Remove.
6814 * features/i386/i386-mmx-linux.xml: Remove.
6815 * features/i386/i386-mmx.xml: Remove.
6816 * features/i386/i386-mpx-linux.xml: Remove.
6817 * features/i386/i386-mpx.xml: Remove.
6818 * features/i386/i386.xml: Remove.
6819 * features/i386/x32-avx-avx512-linux.xml: Remove.
6820 * features/i386/x32-avx-linux.xml: Remove.
6821 * features/i386/x32-linux.xml: Remove.
6822
6823 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6824
6825 * regformats/aarch64.dat: Remove.
6826 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6827 * regformats/i386/amd64-avx-linux.dat: Remove.
6828 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6829 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6830 * regformats/i386/amd64-linux.dat: Remove.
6831 * regformats/i386/amd64-mpx-linux.dat: Remove.
6832 * regformats/i386/amd64.dat: Remove.
6833 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6834 * regformats/i386/i386-avx-linux.dat: Remove.
6835 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6836 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6837 * regformats/i386/i386-linux.dat: Remove.
6838 * regformats/i386/i386-mmx-linux.dat: Remove.
6839 * regformats/i386/i386-mpx-linux.dat: Remove.
6840 * regformats/i386/i386.dat: Remove.
6841 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6842 * regformats/i386/x32-avx-linux.dat: Remove.
6843 * regformats/i386/x32-linux.dat: Remove.
6844
6845 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6846
6847 * aarch64-tdep.c: Remove xml self tests.
6848 * amd64-linux-tdep.c: Likewise.
6849 * amd64-tdep.c: Likewise.
6850 * i386-linux-tdep.c: Likewise.
6851 * i386-tdep.c: Likewise.
6852
6853 2019-07-03 Pedro Alves <palves@redhat.com>
6854
6855 PR cli/24732
6856 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6857 (pipe_cmd_option_defs): New.
6858 (make_pipe_cmd_options_def_group): New.
6859 (pipe_command): Use gdb::option::process_options.
6860 (pipe_command_completer): New function.
6861 (_initialize_cli_cmds): Install completer for "pipe" command.
6862
6863 2019-07-03 Pedro Alves <palves@redhat.com>
6864
6865 * cli/cli-option.c (union option_value) <string>: New field.
6866 (struct option_def_and_value): Add ctor, move ctor, dtor and
6867 use DISABLE_COPY_AND_ASSIGN.
6868 (option_def_and_value::clear_value): New.
6869 (parse_option, save_option_value_in_ctx, get_val_type_str)
6870 (add_setshow_cmds_for_options): Handle var_string.
6871 * cli-option.h (union option_def::var_address) <string>: New
6872 field.
6873 (struct string_option_def): New.
6874 * maint-test-options.c (struct test_options_opts): Add default
6875 ctor and use DISABLE_COPY_AND_ASSIGN.
6876 <string_opt>: New field.
6877 (test_options_opts::~test_options_opts): New.
6878 (test_options_opts::dump): Also dump "-string".
6879 (test_options_option_defs): Install "string.
6880
6881 2019-07-03 Pedro Alves <palves@redhat.com>
6882
6883 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6884 option_value with a null enumeration.
6885 (complete_options): Save the option values in the context.
6886 (save_option_value_in_ctx): New, factored out from ...
6887 (process_options): ... here.
6888 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6889 of the function.
6890 * maint-test-options.c (test_options_opts::dump): New, factored
6891 out from ...
6892 (maintenance_test_options_command_mode): ... here.
6893 (maintenance_test_options_command_completion_result): Delete.
6894 (maintenance_test_options_command_completion_text): Update
6895 comment.
6896 (maintenance_show_test_options_completion_result): Change
6897 prototype. Just print
6898 maintenance_test_options_command_completion_text.
6899 (save_completion_result): New.
6900 (maintenance_test_options_completer_mode): Pass options context to
6901 complete_options, and then save a dump.
6902 (_initialize_maint_test_options): Use add_cmd to install "maint
6903 show test-options-completion-result".
6904
6905 2019-07-03 Pedro Alves <palves@redhat.com>
6906
6907 * NEWS (New commands): Mention "with" and "maint with".
6908 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6909 (with_command, with_command_completer): New.
6910 (pipe_command): Adjust to new repeat_previous
6911 interface.
6912 (_initialize_cli_cmds): Install the "with" command and its "w"
6913 alias.
6914 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6915 declarations.
6916 * cli/cli-setshow.c (parse_cli_var_uinteger)
6917 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6918 argument strings for all var_types.
6919 (get_setshow_command_value_string): New, factored out from ...
6920 (do_show_command): ... this.
6921 * cli/cli-setshow.h: Include <string>.
6922 (get_setshow_command_value_string): Declare.
6923 * command.h (repeat_previous): Now returns const char *. Adjust
6924 comment.
6925 * maint.c: Include "cli/cli-cmds.h".
6926 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6927 (_initialize_maint_cmds): Register the "maintenance with" command.
6928 * top.c (repeat_previous): Move bits from pipe_command here:
6929 Return the saved command line, if any; error out if there's no
6930 command to relaunch.
6931
6932 2019-07-03 Pedro Alves <palves@redhat.com>
6933
6934 * NEWS (New commands): Mention "maint set/show test-settings"
6935 instead of "maint test-settings".
6936 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6937 (maintenance_test_settings_set_list): Rename to ...
6938 (maintenance_set_test_settings_list): ... this.
6939 (maintenance_test_settings_show_list): Rename to ...
6940 (maintenance_show_test_settings_list): ... this.
6941 (maintenance_test_settings_cmd): Delete.
6942 (maintenance_test_settings_set_cmd): ...
6943 (maintenance_set_test_settings_cmd): ... this.
6944 (maintenance_test_settings_show_cmd): ...
6945 (maintenance_show_test_settings_cmd): ... this.
6946 (maintenance_test_settings_show_value_cmd):
6947 (maintenance_show_test_settings_value_cmd): ... this.
6948 (_initialize_maint_test_settings): No longer install the "maint
6949 test-settings" prefix command. Rename "maint test-settings set"
6950 to "maint set test-settings", and "maint test-settings show" to
6951 "maint show test-settings". Adjust all subcommands.
6952
6953 2019-07-03 Pedro Alves <palves@redhat.com>
6954
6955 * maint-test-settings.c: Fix file's intro comment. Replace all
6956 references to "test-options" with references to "test-settings",
6957 in comments.
6958
6959 2019-07-03 Pedro Alves <palves@redhat.com>
6960
6961 * maint-test-settings.c (maintenance_test_settings_xxx)
6962 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6963 New.
6964 (maintenance_test_settings_enums): Use them.
6965 (maintenance_test_settings_enum): Default to
6966 maintenance_test_settings_xxx.
6967 (_initialize_maint_test_settings): Initialize
6968 MAINTENANCE_TEST_SETTINGS_FILENAME.
6969
6970 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * breakpoint.h (remove_breakpoints_inf): Change return type to
6973 void, move function documentation here.
6974 * breakpoint.c (remove_breakpoints_inf): Change return type to
6975 void, move function documentation to header.
6976
6977 2019-07-02 Pedro Alves <palves@redhat.com>
6978
6979 * NEWS (Completion improvements): Mention "info threads".
6980 * thread.c (struct info_threads_opts, info_threads_option_defs)
6981 (make_info_threads_options_def_group): New.
6982 (info_threads_command): Use gdb::option::process_options.
6983 (info_threads_command_completer): New.
6984 (_initialize_thread): Use gdb::option::build_help to build the
6985 help text for "info threads".
6986
6987 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6988
6989 * defs.h (generic_load): Move from here...
6990 * symfile.h (generic_load): ... to here. Rename name parameter
6991 to args.
6992 * symfile.c (generic_load): Add comment.
6993
6994 2019-07-01 Tom Tromey <tromey@adacore.com>
6995
6996 * dwarf2read.c
6997 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6998 declaration of without_params. Fix formatting.
6999
7000 2019-07-01 Tom Tromey <tromey@adacore.com>
7001
7002 * ada-exp.y (find_primitive_type): Update.
7003 * ada-lang.h (ada_lookup_symbol): Update.
7004 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7005 parameter.
7006 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7007
7008 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7009
7010 PR breakpoints/24541
7011 * gdbarch.c: Regenerate.
7012 * gdbarch.h: Regenerate.
7013 * gdbarch.sh: Add 'stap_adjust_register'.
7014 * i386-tdep.c: Include '<unordered_set>'.
7015 (i386_stap_adjust_register): New function.
7016 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7017 * stap-probe.c (stap_parse_register_operand): Call
7018 'gdbarch_stap_adjust_register'.
7019
7020 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7021
7022 PR python/24742
7023 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7024 * python/python.c (do_start_initialization): Use 'xmalloc'
7025 instead of 'PyMem_Malloc'.
7026
7027 2019-06-28 Tom Tromey <tromey@adacore.com>
7028
7029 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7030 for Ada.
7031
7032 2019-06-27 Tom Tromey <tromey@adacore.com>
7033
7034 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7035 objfile_key.
7036 (arm_find_mapping_symbol, arm_record_special_symbol)
7037 (_initialize_arm_tdep): Update.
7038 (arm_objfile_data_free): Remove.
7039
7040 2019-06-27 Tom Tromey <tromey@adacore.com>
7041
7042 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7043 to cp_print_static_field.
7044
7045 2019-06-26 Tom Tromey <tromey@adacore.com>
7046
7047 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7048 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7049 declare.
7050
7051 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7052
7053 * features/aarch64-core.c (create_feature_aarch64_core):
7054 Regenerate.
7055 * features/aarch64-core.xml: Add cpsr flags.
7056
7057 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7058
7059 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7060 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7061
7062 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7063
7064 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7065 field.
7066 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7067 use.
7068 (arm_record_special_symbol): Don't insert new symbol in sorted
7069 position, push it at the end.
7070
7071 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7072
7073 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7074 (arm_mapping_symbol_s): Remove.
7075 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7076 (arm_mapping_symbol_vec): New typedef.
7077 (struct arm_per_objfile): Add constructor.
7078 <section_maps>: Change type to
7079 std::unique_ptr<arm_mapping_symbol_vec[]>.
7080 (arm_compare_mapping_symbols): Remove.
7081 (arm_find_mapping_symbol): Adjust to section_maps type change.
7082 (arm_objfile_data_free): Call delete on arm_per_objfile.
7083 (arm_record_special_symbol): Adjust to section_maps type change.
7084 Allocate arm_per_objfile with new.
7085
7086 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7087
7088 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7089 with the command prefix.
7090
7091 2019-06-25 Tom Tromey <tom@tromey.com>
7092
7093 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7094 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7095
7096 2019-06-25 Tom Tromey <tom@tromey.com>
7097
7098 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7099 type.
7100 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7101 protected.
7102
7103 2019-06-25 Tom Tromey <tom@tromey.com>
7104
7105 * tui/tui-winsource.c
7106 (tui_source_window_base::set_is_exec_point_at): Add check against
7107 LOA_ADDRESS.
7108
7109 2019-06-25 Tom Tromey <tom@tromey.com>
7110
7111 * tui/tui-source.c (tui_set_source_content): Don't check before
7112 xfree.
7113 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7114
7115 2019-06-25 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-winsource.h (tui_update_source_window_as_is)
7118 (tui_alloc_source_buffer, tui_line_is_displayed)
7119 (tui_addr_is_displayed): Change type of win_info.
7120 * tui/tui-winsource.c (tui_update_source_window_as_is)
7121 (tui_clear_source_content, tui_show_source_line)
7122 (tui_show_source_content, tui_source_window_base::refill)
7123 (tui_source_window_base::set_is_exec_point_at)
7124 (tui_source_window_base::set_is_exec_point_at)
7125 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7126 (tui_alloc_source_buffer, tui_line_is_displayed)
7127 (tui_addr_is_displayed): Change type of win_info. Update.
7128 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7129 (tui_source_window_base::do_make_visible_with_new_height):
7130 Update.
7131 * tui/tui-source.c (tui_set_source_content)
7132 (tui_set_source_content_nil)
7133 (tui_source_window::do_scroll_vertical): Update.
7134 * tui/tui-layout.c (show_layout): Update.
7135 * tui/tui-disasm.c (tui_set_disassem_content)
7136 (tui_disasm_window::do_scroll_vertical): Update.
7137 * tui/tui-data.h (tui_win_content): Remove.
7138 (struct tui_gen_win_info) <content, content_size>: Remove.
7139 (struct tui_source_element): Add initializers and destructor.
7140 (union tui_which_element, struct tui_win_element): Remove.
7141 (struct tui_source_window_base) <content>: New field.
7142 (struct tui_data_window): Remove destructor.
7143 (tui_alloc_content, tui_free_win_content)
7144 (tui_free_all_source_wins_content): Don't declare.
7145 * tui/tui-data.c (tui_initialize_static_data): Update.
7146 (init_content_element, tui_alloc_content): Remove.
7147 (~tui_gen_win_info): Update.
7148 (~tui_data_window, tui_free_all_source_wins_content)
7149 (tui_free_win_content, free_content, free_content_elements):
7150 Remove.
7151
7152 2019-06-25 Tom Tromey <tom@tromey.com>
7153
7154 * tui/tui-winsource.h (tui_clear_source_content)
7155 (tui_erase_source_content, tui_show_source_content): Change type
7156 of win_info.
7157 * tui/tui-winsource.c (tui_clear_source_content)
7158 (tui_erase_source_content, tui_show_source_content): Change type
7159 of win_info.
7160 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7161 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7162 win_info.
7163 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7164 win_info.
7165 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7166
7167 2019-06-25 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-winsource.c (tui_clear_source_content)
7170 (tui_source_window_base::set_is_exec_point_at): Update.
7171 * tui/tui-source.c (tui_set_source_content_nil): Update.
7172 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7173 a bool.
7174 * tui/tui-data.c (init_content_element): Update.
7175
7176 2019-06-25 Tom Tromey <tom@tromey.com>
7177
7178 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7179 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7180 * tui/tui-layout.c (init_and_make_win): Update.
7181 * tui/tui.h (enum tui_win_type): Update.
7182 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7183 tui_win_is_auxillary.
7184 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7185 tui_win_is_auxillary.
7186
7187 2019-06-25 Tom Tromey <tom@tromey.com>
7188
7189 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7190 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7191 (tui_delete_data_content_windows, tui_display_all_data)
7192 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7193 Update.
7194 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7195 * tui/tui-regs.c (tui_last_regs_line_no)
7196 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7197 (tui_show_registers): Update.
7198 (tui_show_register_group): Return void. Update.
7199 (tui_display_registers_from, tui_display_reg_element_at_line)
7200 (tui_display_registers_from_line, tui_check_register_values):
7201 Update.
7202 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7203 member.
7204 (struct tui_data_window) <regs_content>: Now a std::vector.
7205 <regs_content_count>: Remove.
7206 (tui_add_content_elements, tui_free_data_content): Don't declare.
7207 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7208 (init_content_element): Remove DATA_WIN case. Add assert.
7209 (tui_add_content_elements): Remove.
7210 (tui_data_window): Update.
7211 (tui_free_data_content): Remove.
7212 (free_content_elements): Remove DATA_WIN case.
7213
7214 2019-06-25 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-data.c (tui_data_item_window): Update.
7217 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7218 * tui/tui-windata.c (tui_display_all_data)
7219 (tui_display_data_from_line): Update.
7220 (tui_check_data_values): Remove.
7221 * tui/tui-regs.c (tui_show_register_group)
7222 (tui_display_reg_element_at_line): Update.
7223 * tui/tui-hooks.c (tui_register_changed)
7224 (tui_refresh_frame_and_register_information): Call
7225 tui_check_register_values.
7226 * tui/tui-data.h (struct tui_data_window) <data_content,
7227 data_content_count, data_type>: Remove.
7228 (enum tui_data_type): Remove.
7229
7230 * tui/tui-data.c (tui_data_window::clear_detail)
7231 (~tui_data_window): Update.
7232
7233 2019-06-25 Tom Tromey <tom@tromey.com>
7234
7235 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7236 declare.
7237 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7238 Rename from tui_first_data_item_displayed. Update.
7239 (tui_data_window::refresh_all)
7240 (tui_data_window::do_scroll_vertical): Update.
7241 * tui/tui-data.h (struct tui_data_window)
7242 <first_data_item_displayed>: Declare new method.
7243
7244 2019-06-25 Tom Tromey <tom@tromey.com>
7245
7246 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7247 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7248 contents...
7249 (tui_initialize_static_data): ...here.
7250
7251 2019-06-25 Tom Tromey <tom@tromey.com>
7252
7253 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7254 (tui_display_registers_from, tui_check_register_values): Update.
7255 (tui_display_register): Remove win_info parameter; update.
7256 (tui_get_register): Change type of parameters.
7257 * tui/tui-data.h (struct tui_data_element): Remove.
7258 (union tui_which_element) <data>: Remove.
7259 <data_window>: Change type.
7260 (struct tui_data_item_window): New.
7261 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7262 case. Add assert.
7263 (~tui_data_item_window): New destructor.
7264 (free_content_elements): Remove DATA_ITEM_WIN case.
7265
7266 2019-06-25 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7269 Remove.
7270
7271 2019-06-25 Tom Tromey <tom@tromey.com>
7272
7273 * tui/tui-data.h (struct tui_command_element): Remove.
7274 (union tui_which_element) <command>: Remove.
7275 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7276 assert.
7277 (free_content_elements): Remove CMD_WIN case.
7278
7279 2019-06-25 Tom Tromey <tom@tromey.com>
7280
7281 * tui/tui-layout.c (tui_set_layout): Update.
7282 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7283 * tui/tui-data.c (layout_def): Update.
7284
7285 2019-06-25 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7288 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7289 (tui_source_window_base::set_new_height): Update.
7290 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7291 Update.
7292 (tui_set_locator_fullname, tui_set_locator_info)
7293 (tui_show_frame_info): Update.
7294 * tui/tui-source.c (tui_set_source_content)
7295 (tui_source_is_displayed): Update.
7296 * tui/tui-layout.c (show_source_disasm_command, show_data)
7297 (show_source_or_disasm_and_command): Update.
7298 * tui/tui-disasm.c (tui_set_disassem_content)
7299 (tui_get_begin_asm_address): Update.
7300 * tui/tui-data.h (struct tui_locator_element): Remove.
7301 (union tui_which_element) <locator>: Remove.
7302 (struct tui_locator_window): New.
7303 (tui_locator_win_info_ptr): Change return type.
7304 * tui/tui-data.c (_locator): Change type.
7305 (tui_locator_win_info_ptr): Change return type.
7306 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7307 (tui_alloc_content): Add assert.
7308
7309 2019-06-25 Tom Tromey <tom@tromey.com>
7310
7311 * tui/tui-winsource.c
7312 (tui_exec_info_window::maybe_allocate_content): New method.
7313 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7314 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7315 (make_source_or_disasm_window): Add cast.
7316 * tui/tui-data.h (union tui_which_element) <simple_string>:
7317 Remove.
7318 (struct tui_source_info): New.
7319 (struct tui_source_window_base) <execution_info>: Change type.
7320 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7321 case, and add assert.
7322 (tui_alloc_content): Add assert.
7323
7324 2019-06-25 Tom Tromey <tom@tromey.com>
7325
7326 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7327 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7328 * tui/tui-data.c (tui_alloc_win_info): Remove.
7329
7330 2019-06-25 Tom Tromey <tom@tromey.com>
7331
7332 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7333 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7334 can_highlight.
7335
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7339 make_visible_with_new_height method.
7340 (tui_win_info::make_visible_with_new_height): New method.
7341 (tui_source_window_base::do_make_visible_with_new_height)
7342 (tui_data_window::do_make_visible_with_new_height)
7343 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7344 (make_visible_with_new_height): Remove.
7345 (tui_resize_all, tui_adjust_win_heights): Use
7346 make_visible_with_new_height method.
7347 * tui/tui-data.h (struct tui_win_info)
7348 <do_make_visible_with_new_height, make_visible_with_new_height>:
7349 New methods.
7350 (struct tui_source_window_base, struct tui_data_window)
7351 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7352 methods.
7353
7354 2019-06-25 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7357 method.
7358 (update_tab_width): Call update_tab_width method.
7359 * tui/tui-data.h (struct tui_win_info)
7360 (struct tui_source_window_base) <update_tab_width>: New methods.
7361
7362 2019-06-25 Tom Tromey <tom@tromey.com>
7363
7364 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7365 parameter.
7366 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7367 parameter.
7368 (tui_gen_win_info::make_visible): Update.
7369 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7370 parameter.
7371 * tui/tui-data.h (enum tui_box): New enum.
7372 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7373
7374 2019-06-25 Tom Tromey <tom@tromey.com>
7375
7376 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7377 init_and_make_win for EXEC_INFO_WIN.
7378 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7379 longer inline.
7380 (struct tui_win_info) <~tui_win_info>: Inline.
7381 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7382 Don't declare.
7383 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7384 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7385 Remove.
7386 (tui_initialize_static_data): Update.
7387 (~tui_gen_win_info): Handle more cleanup here.
7388 (~tui_source_window_base): Delete "execution_info".
7389 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7390
7391 2019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-layout.c (make_command_window): Don't set
7394 can_highlight.
7395 (show_source_disasm_command): Call the reset method.
7396 (show_data): Don't set can_highlight. Call the reset method.
7397 (tui_gen_win_info::reset): Rename from init_gen_win_info
7398 (init_and_make_win): Simplify. Return tui_gen_win_info.
7399 (show_source_or_disasm_and_command): Call the reset method.
7400 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7401 (struct tui_cmd_window): Set can_highlight.
7402
7403 2019-06-25 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7406 from make_visible.
7407 (tui_make_visible, tui_make_invisible): Rewrite.
7408 (tui_win_info::make_visible): Remove.
7409 (tui_source_window_base::make_visible): Update.
7410 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7411 method. Moved from...
7412 (struct tui_win_info) <make_visible>: ...here.
7413
7414 2019-06-25 Tom Tromey <tom@tromey.com>
7415
7416 * tui/tui-winsource.c
7417 (tui_source_window_base::do_scroll_horizontal): Remove direction
7418 parameter.
7419 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7420 direction parameter.
7421 * tui/tui-win.c (tui_win_info::forward_scroll)
7422 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7423 (tui_win_info::right_scroll): Update.
7424 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7425 direction parameter.
7426 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7427 direction parameter.
7428 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7429 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7430 Remove direction parameter.
7431 (struct tui_source_window_base, struct tui_source_window)
7432 (struct tui_disasm_window, struct tui_data_window)
7433 (struct tui_cmd_window): Update.
7434
7435 2019-06-25 Tom Tromey <tom@tromey.com>
7436
7437 * tui/tui-winsource.h (tui_set_exec_info_content)
7438 (tui_show_exec_info_content, tui_erase_exec_info_content)
7439 (tui_clear_exec_info_content, tui_update_exec_info): Change
7440 argument to tui_source_window_base.
7441 * tui/tui-winsource.c (tui_set_exec_info_content)
7442 (tui_show_exec_info_content, tui_erase_exec_info_content)
7443 (tui_clear_exec_info_content, tui_update_exec_info): Change
7444 argument to tui_source_window_base.
7445
7446 2019-06-25 Tom Tromey <tom@tromey.com>
7447
7448 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7449 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7450
7451 2019-06-25 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7454 check.
7455
7456 2019-06-25 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7459 type to void.
7460 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7461 type to void.
7462 * tui/tui-source.c (tui_set_source_content): Update.
7463 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7464
7465 2019-06-25 Tom Tromey <tom@tromey.com>
7466
7467 * tui/tui-win.c (window_name_completer, tui_set_focus)
7468 (tui_all_windows_info): Use name method.
7469 * tui/tui-data.h (struct tui_gen_win_info)
7470 (struct tui_source_window, struct tui_disasm_window)
7471 (struct tui_data_window, struct tui_cmd_window) <name>: New
7472 method.
7473 (tui_win_name): Don't declare.
7474 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7475 (tui_win_name): Remove.
7476
7477 2019-06-25 Tom Tromey <tom@tromey.com>
7478
7479 * tui/tui-winsource.h (tui_update_source_window)
7480 (tui_update_source_window_as_is): Change parameter type.
7481 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7482 to be a tui_source_window_base.
7483 (tui_update_source_window_as_is): Likewise.
7484 * tui/tui-win.c (make_visible_with_new_height): Update.
7485
7486 2019-06-25 Tom Tromey <tom@tromey.com>
7487
7488 * tui/tui-winsource.c (tui_erase_source_content)
7489 (tui_show_source_content, tui_show_exec_info_content)
7490 (tui_erase_exec_info_content): Use refresh_window method.
7491 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7492 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7493 from tui_refresh_win.
7494 (tui_data_window::refresh_window): New method.
7495 (tui_win_info::refresh, tui_source_window_base::refresh)
7496 (tui_refresh_all): Use refresh_window method.
7497 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7498 method.
7499 * tui/tui-regs.c (tui_display_register): Call refresh_window
7500 method.
7501 * tui/tui-layout.c (show_source_disasm_command)
7502 (show_source_or_disasm_and_command): Call refresh_window method.
7503 * tui/tui-data.h (struct tui_gen_win_info)
7504 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7505 New method.
7506
7507 2019-06-25 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui.c (tui_rl_other_window, tui_enable)
7510 (tui_is_window_visible, tui_get_command_dimension): Update.
7511 * tui/tui-winsource.c (tui_update_source_window_as_is)
7512 (tui_clear_source_content, tui_erase_source_content)
7513 (tui_show_source_line, tui_source_window_base::refill)
7514 (tui_source_window_base::do_scroll_horizontal)
7515 (tui_source_window_base::set_is_exec_point_at)
7516 (tui_update_breakpoint_info, tui_set_exec_info_content)
7517 (tui_alloc_source_buffer, tui_line_is_displayed)
7518 (tui_addr_is_displayed): Update.
7519 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7520 (tui_check_and_display_highlight_if_needed)
7521 (tui_win_info::make_visible, tui_win_info::refresh)
7522 (tui_refresh_all): Update.
7523 * tui/tui-windata.c (tui_first_data_item_displayed)
7524 (tui_delete_data_content_windows, tui_erase_data_content)
7525 (tui_display_all_data, tui_data_window::refresh_all)
7526 (tui_check_data_values): Update.
7527 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7528 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7529 (tui_win_info::backward_scroll, tui_refresh_all_win)
7530 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7531 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7532 (tui_source_window_base::set_new_height)
7533 (tui_data_window::set_new_height)
7534 (make_invisible_and_set_new_height)
7535 (make_visible_with_new_height, new_height_ok)
7536 (parse_scrolling_args): Update.
7537 * tui/tui-stack.c (tui_show_frame_info): Update.
7538 * tui/tui-source.c (tui_set_source_content)
7539 (tui_set_source_content_nil, tui_source_is_displayed)
7540 (tui_source_window::do_scroll_vertical): Update.
7541 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7542 (tui_display_registers_from, tui_display_reg_element_at_line)
7543 (tui_check_register_values, tui_reg_command): Update.
7544 * tui/tui-layout.c (tui_default_win_height)
7545 (show_source_disasm_command, show_data, init_and_make_win)
7546 (show_source_or_disasm_and_command): Update.
7547 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7548 (tui_redisplay_readline, tui_mld_flush)
7549 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7550 (tui_getc): Update.
7551 * tui/tui-disasm.c (tui_set_disassem_content)
7552 (tui_disasm_window::do_scroll_vertical): Update.
7553 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7554 Now virtual.
7555 (struct tui_win_info): Derive from tui_gen_win_info.
7556 <~tui_win_info>: Mark as override.
7557 <generic>: Remove member.
7558 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7559 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7560 (~tui_data_window, ~tui_win_info)
7561 (tui_free_all_source_wins_content): Update.
7562 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7563
7564 2019-06-25 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui-layout.c (init_and_make_win): Use new.
7567 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7568 destructor, initializers.
7569 (tui_alloc_generic_win_info): Don't declare.
7570 * tui/tui-data.c (_locator): Add argument to constructor.
7571 (source_win, disasm_win): New globals.
7572 (exec_info): Remove.
7573 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7574 Update.
7575 (tui_alloc_generic_win_info): Remove.
7576 (init_content_element): Use new.
7577 (tui_win_info::tui_win_info): Update.
7578 (free_content_elements) <case DATA_WIN>: Use delete.
7579
7580 2019-06-25 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7583 * tui/tui-windata.c (tui_first_data_item_displayed)
7584 (tui_delete_data_content_windows): Update.
7585 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7586 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7587 (tui_display_registers_from, tui_check_register_values): Update.
7588 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7589 pointer.
7590 * tui/tui-data.c (init_content_element): Update. Allocate the new
7591 window.
7592 (tui_free_data_content): Update.
7593 (free_content_elements) <case DATA_WIN>: Free the window.
7594
7595 2019-06-25 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7598 Update.
7599 * tui/tui-layout.c (make_command_window)
7600 (show_source_disasm_command, show_data, init_and_make_win)
7601 (show_source_or_disasm_and_command): Update.
7602 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7603 method.
7604 <can_highight, is_highlighted>: Now bool.
7605 (tui_set_win_highlight): Don't declare.
7606 * tui/tui-data.c (tui_set_win_highlight): Remove.
7607
7608 2019-06-25 Tom Tromey <tom@tromey.com>
7609
7610 * tui/tui-wingeneral.c (make_visible): Remove check of window
7611 type.
7612
7613 2019-06-25 Tom Tromey <tom@tromey.com>
7614
7615 * tui/tui-win.c (tui_win_info::max_height)
7616 (tui_cmd_window::max_height): New methods.
7617 (new_height_ok): Call max_height.
7618 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7619 <max_height>: New method.
7620
7621 2019-06-25 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-win.c (tui_source_window_base::set_new_height)
7624 (tui_data_window::set_new_height): New methods.
7625 (make_invisible_and_set_new_height): Call set_new_height method.
7626 * tui/tui-data.h (struct tui_win_info)
7627 (struct tui_source_window_base, struct tui_data_window)
7628 <set_new_height>: New method.
7629
7630 2019-06-25 Tom Tromey <tom@tromey.com>
7631
7632 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7633 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7634 tui_refresh_data_win.
7635 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7636 method.
7637 (tui_refresh_all_win): Call the refresh_all method.
7638 (tui_set_focus): Likewise.
7639 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7640 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7641 Likewise.
7642
7643 2019-06-25 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-winsource.h (tui_refill_source_window)
7646 (tui_set_is_exec_point_at): Don't declare.
7647 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7648 (tui_source_window_base::refill): Rename from
7649 tui_refill_source_window.
7650 (tui_source_window_base::do_scroll_horizontal): Update.
7651 (tui_source_window_base::set_is_exec_point_at): Rename from
7652 tui_set_is_exec_point_at.
7653 (tui_update_all_breakpoint_info): Update.
7654 * tui/tui-stack.c (tui_show_frame_info): Update.
7655 * tui/tui-layout.c (show_data): Add cast.
7656 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7657 * tui/tui-data.h (struct tui_source_window_base) <refill,
7658 set_is_exec_point_at>: New methods.
7659 (tui_source_windows, tui_add_to_source_windows): Update types.
7660 (tui_add_to_source_windows): Remove redundant declaration.
7661 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7662 (tui_source_windows): Change return type.
7663 (tui_clear_source_windows_detail): Update.
7664 (tui_add_to_source_windows): Change type of parameter.
7665 (tui_free_all_source_wins_content): Update.
7666
7667 2019-06-25 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-wingeneral.c (tui_win_info::refresh)
7670 (tui_source_window_base::refresh): New methods.
7671 (tui_refresh_all): Call the refresh method.
7672 * tui/tui-data.h (struct tui_win_info)
7673 (struct tui_source_window_base) <refresh>: New method.
7674
7675 2019-06-25 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui.h (tui_is_window_visible): Return bool.
7678 * tui/tui.c (tui_is_window_visible): Return bool.
7679 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7680 (tui_make_visible, tui_make_invisible)
7681 (tui_win_info::make_visible)
7682 (tui_source_window_base::make_visible, make_all_visible)
7683 (tui_make_all_visible, tui_make_all_invisible): Update.
7684 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7685 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7686 bool.
7687 (struct tui_win_info, struct tui_source_window_base)
7688 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7689 * tui/tui-data.c (tui_init_generic_part): Update.
7690
7691 2019-06-25 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7694 (tui_source_window_base::make_visible): New methods.
7695 (make_all_visible): Make method call.
7696 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7697 (struct tui_source_window_base, struct tui_cmd_window): Override
7698 make_visible.
7699 (tui_win_is_source_type): Don't declare.
7700 * tui/tui-data.c (tui_win_is_source_type): Remove.
7701
7702 2019-06-25 Tom Tromey <tom@tromey.com>
7703
7704 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7705 NULL check.
7706
7707 2019-06-25 Tom Tromey <tom@tromey.com>
7708
7709 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7710 Inline constructor. Add initializers for members.
7711 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7712 constructors; now inline in class.
7713
7714 2019-06-25 Tom Tromey <tom@tromey.com>
7715
7716 * tui/tui-regs.c (tui_show_registers): Update.
7717 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7718 bool.
7719 * tui/tui-data.c (tui_data_window::clear_detail)
7720 (tui_data_window): Update.
7721
7722 2019-06-25 Tom Tromey <tom@tromey.com>
7723
7724 * tui/tui-windata.c (tui_display_all_data)
7725 (tui_display_data_from_line, tui_display_data_from)
7726 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7727 Update.
7728 * tui/tui-regs.c (tui_last_regs_line_no)
7729 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7730 (tui_show_registers, tui_show_register_group)
7731 (tui_display_registers_from, tui_display_reg_element_at_line)
7732 (tui_display_registers_from_line, tui_check_register_values)
7733 (tui_reg_next, tui_reg_prev): Update.
7734 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7735 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7736 tui_data_window.
7737 (struct tui_win_info) <detail>: Remove. Add new fields from
7738 tui_data_info.
7739 (TUI_DATA_WIN): Add cast.
7740 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7741 (~tui_data_window): Simplify.
7742
7743 2019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-layout.c (show_source_disasm_command)
7746 (show_source_or_disasm_and_command): Update.
7747 * tui/tui-io.c (update_cmdwin_start_line)
7748 (tui_redisplay_readline): Update.
7749 * tui/tui-data.h (struct tui_command_info): Remove.
7750 (struct tui_win_info) <detail>: Remove command_info member.
7751 (struct tui_data_window) <start_line>: New member, from
7752 tui_command_info.
7753 (TUI_CMD_WIN): Add casts.
7754
7755 2019-06-25 Tom Tromey <tom@tromey.com>
7756
7757 * tui/tui-winsource.c (tui_update_source_window)
7758 (tui_refill_source_window)
7759 (tui_source_window_base::do_scroll_horizontal)
7760 (tui_update_breakpoint_info, tui_set_exec_info_content)
7761 (tui_show_exec_info_content, tui_erase_exec_info_content)
7762 (tui_clear_exec_info_content): Update.
7763 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7764 Update.
7765 * tui/tui-win.c (make_invisible_and_set_new_height)
7766 (make_visible_with_new_height): Update.
7767 * tui/tui-source.c (tui_set_source_content)
7768 (tui_show_symtab_source): Update.
7769 * tui/tui-layout.c (extract_display_start_addr)
7770 (show_source_disasm_command, show_data)
7771 (make_source_or_disasm_window)
7772 (show_source_or_disasm_and_command): Update.
7773 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7774 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7775 "gdbarch".
7776 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7777 to tui_source_window_base.
7778 (struct tui_win_info) <detail>: Remove source_info member.
7779 (struct tui_source_window_base) <has_locator>: Inline.
7780 Move contents from tui_source_info; rename has_locator member to
7781 m_has_locator.
7782 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7783 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7784 header file.
7785 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7786 Simplify.
7787 (tui_free_all_source_wins_content): Cast to
7788 tui_source_window_base.
7789
7790 2019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-win.c (make_invisible_and_set_new_height)
7793 (make_visible_with_new_height): Call has_locator method.
7794 * tui/tui-layout.c (show_source_disasm_command, show_data)
7795 (show_source_or_disasm_and_command): Update for bool change.
7796 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7797 (tui_win_info) <has_locator>: New method.
7798 (struct tui_source_window_base) <has_locator>: New method.
7799 (tui_win_has_locator): Don't declare.
7800 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7801 from tui_win_has_locator.
7802 (tui_source_window_base): Use false, not FALSE.
7803
7804 2019-06-25 Tom Tromey <tom@tromey.com>
7805
7806 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7807 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7808 clear_detail method directly.
7809 (tui_clear_win_detail): Remove.
7810
7811 2019-06-25 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7814 "this", not TUI_DISASM_WIN.
7815
7816 2019-06-25 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7819 declare.
7820 * tui/tui-winsource.c
7821 (tui_source_window_base::do_scroll_horizontal): Rename from
7822 tui_horizontal_source_scroll.
7823 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7824 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7825 from tui_vertical_data_scroll.
7826 * tui/tui-win.h (tui_scroll): Don't declare.
7827 * tui/tui-win.c (tui_win_info::forward_scroll)
7828 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7829 (tui_win_info::right_scroll): Rename and update.
7830 (tui_scroll_forward_command, tui_scroll_backward_command)
7831 (tui_scroll_left_command, tui_scroll_right_command): Update.
7832 (tui_scroll): Remove.
7833 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7834 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7835 from tui_vertical_source_scroll.
7836 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7837 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7838 from tui_vertical_disassem_scroll.
7839 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7840 do_scroll_horizontal>: New methods.
7841 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7842 Likewise.
7843 (struct tui_source_window_base): Add do_scroll_horizontal.
7844 (struct tui_source_window, struct tui_disasm_window): Add
7845 do_scroll_vertical.
7846 (struct tui_data_window, struct tui_cmd_window): Add
7847 do_scroll_horizontal and do_scroll_vertical.
7848 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7849
7850 2019-06-25 Tom Tromey <tom@tromey.com>
7851
7852 * tui/tui-data.h (struct tui_source_window_base): New struct.
7853 (struct tui_source_window): Derive from tui_source_window_base.
7854 (struct tui_disasm_window): New struct.
7855 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7856 from tui_source_window::clear_detail.
7857 (tui_source_window_base): Rename from tui_source_window.
7858 (~tui_source_window_base): Rename from ~tui_source_window.
7859 (tui_alloc_win_info): Create a tui_disasm_window.
7860
7861 2019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-data.h (struct tui_source_window)
7864 (struct tui_data_window): Declare destructors.
7865 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7866 destructors.
7867 (tui_win_info): Simplify.
7868
7869 2019-06-25 Tom Tromey <tom@tromey.com>
7870
7871 * tui/tui-winsource.c (tui_display_main)
7872 (tui_update_source_windows_with_addr)
7873 (tui_update_all_breakpoint_info): Update.
7874 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7875 (new_height_ok, parse_scrolling_args): Update.
7876 * tui/tui-stack.c (tui_show_frame_info): Update.
7877 * tui/tui-data.h (struct tui_list): Remove.
7878 (tui_source_windows): Return a reference to a std::vector.
7879 * tui/tui-data.c (source_windows): Now a std::vector.
7880 (tui_source_windows): Change return type.
7881 (tui_clear_source_windows): Rewrite.
7882 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7883 (tui_free_all_source_wins_content): Rewrite.
7884
7885 2019-06-25 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7888 (struct tui_data_window, struct tui_cmd_window): Declare
7889 clear_detail method.
7890 * tui/tui-data.c (tui_source_window::clear_detail)
7891 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7892 methods.
7893 (tui_clear_win_detail): Simplify.
7894
7895 2019-06-25 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-layout.c (make_source_window, make_disasm_window)
7898 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7899 Return the new window.
7900 (show_source_disasm_command, show_data)
7901 (show_source_or_disasm_and_command): Update.
7902
7903 2019-06-25 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7906 parameter. Return the new window.
7907 (show_source_disasm_command): Update and remove NULL check.
7908 (show_source_or_disasm_and_command): Update.
7909
7910 2019-06-25 Tom Tromey <tom@tromey.com>
7911
7912 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7913
7914 2019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-data.h (struct tui_win_info): Make constructor
7917 protected. Make destructor virtual. Add initializers.
7918 (tui_source_window, tui_data_window, tui_cmd_window): New
7919 classes.
7920 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7921 constructor. Add "type" parameter.
7922 (tui_source_window, tui_data_window, tui_cmd_window): New
7923 constructors.
7924 (tui_alloc_win_info): Instantiate the appropriate subclass.
7925
7926 2019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-win.c (tui_resize_all): Use delete.
7929 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7930 destructor.
7931 (tui_free_window): Don't declare.
7932 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7933 Update.
7934
7935 2019-06-25 Tom Tromey <tom@tromey.com>
7936
7937 * tui/tui-data.h (struct tui_win_info): Add constructor.
7938 * tui/tui-data.c (tui_alloc_win_info): Use new.
7939 (tui_free_window): Use delete.
7940
7941 2019-06-22 Tom Tromey <tom@tromey.com>
7942
7943 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7944 declare.
7945 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7946
7947 2019-06-22 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7950 declare.
7951 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7952
7953 2019-06-22 Tom de Vries <tdevries@suse.de>
7954
7955 * dwarf2read.c (create_addrmap_from_aranges)
7956 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7957 instead of '%zu'.
7958
7959 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * dwarf2read.h (dwarf2_section_info_def): Remove.
7962 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7963 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7964 std::vector<dwarf2_section_info>.
7965 (struct dwo_file) <~dwo_file>: Remove.
7966 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7967 types field.
7968 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7969 (dwarf2_read_debug_names): Likewise.
7970 (create_debug_types_hash_table): Change parameter type to
7971 array_view, adjust code accordingly.
7972 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7973 (partial_die_info::fixup): Likewise.
7974 (determine_prefix): Likewise.
7975 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7976
7977 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7978
7979 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7980 gdb_bfd_ref_ptr.
7981 <~dwo_file>: Remove call to gdb_bfd_unref.
7982 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7983 gdb_bfd_ref_ptr::get.
7984
7985 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7986
7987 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7988 type to htab_up.
7989 * dwarf2read.c (struct dwo_file): Initialize fields.
7990 <~dwo_file>: New.
7991 (free_dwo_file): Remove, move content to ~dwo_file.
7992 (struct dwo_file_deleter): Remove.
7993 (dwo_file_up>: Remove custom deleter.
7994 (free_dwo_files): Remove.
7995 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7996 dwo_files.
7997 (process_skeletonless_type_units): Call unique_ptr::get.
7998 (allocate_dwo_file_hash_table): Add deleter to created hash
7999 table. Change return type to htab_up.
8000 (lookup_dwo_file_slot): Don't memset dwo_file, call
8001 unique_ptr::get.
8002 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8003 (create_dwo_unit_in_dwp_v2): Likewise.
8004 (open_and_init_dwo_file): Likewise.
8005 (free_dwo_file_from_slot): Remove.
8006
8007 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8008
8009 * dwarf2read.h (struct dwarf2_section_info) <readin,
8010 is_virtual>: Change type to bool.
8011 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8012 true instead of 1.
8013
8014 2019-06-19 Tom Tromey <tom@tromey.com>
8015
8016 * tui/tui-data.h (tui_init_content_element): Don't declare.
8017
8018 2019-06-19 Tom Tromey <tom@tromey.com>
8019
8020 * tui/tui-data.h (tui_init_win_info): Don't declare.
8021
8022 2019-06-19 Tom de Vries <tdevries@suse.de>
8023
8024 * dwarf2read.h (abstract_to_concrete): Change type to
8025 std::unordered_map<sect_offset, std::vector<sect_offset>,
8026 gdb::hash_enum<sect_offset>>.
8027
8028 2019-06-19 Tom Tromey <tromey@adacore.com>
8029
8030 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8031 EVAL_AVOID_SIDE_EFFECTS specially.
8032
8033 2019-06-19 Tom Tromey <tromey@adacore.com>
8034
8035 * source-cache.c (highlighter): New global.
8036 (source_cache::get_source_lines): Create a highlighter on demand.
8037
8038 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * defs.h (deprecated_interactive_hook): Delete declaration.
8041 * interps.c (clear_interpreter_hooks): Remove use of
8042 deprecated_interactive_hook.
8043 * top.c (deprecated_interactive_hook): Delete definition.
8044 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8045
8046 2019-06-18 Tom de Vries <tdevries@suse.de>
8047
8048 PR gdb/24515
8049 * dwarf2read.h (abstract_to_concrete): Change type from
8050 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8051 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8052 * dwarf2read.c (read_variable): Update.
8053 (dwarf2_fetch_die_loc_sect_off): Update.
8054
8055 2019-06-17 Tom de Vries <tdevries@suse.de>
8056
8057 PR gdb/24617
8058 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8059 accessing parent[parent_len - 1].
8060
8061 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8062
8063 PR gdb/24364
8064 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8065 call dtrace_process_dof with NULL dof.
8066
8067 2019-06-16 Tom de Vries <tdevries@suse.de>
8068
8069 PR gdb/24445
8070 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8071
8072 2019-06-16 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8075 (make_all_visible): Use address of member.
8076
8077 2019-06-16 Tom Tromey <tom@tromey.com>
8078
8079 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8080 (tui_free_window, free_content, free_content_elements): Remove
8081 unnecessary cast.
8082 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8083 cast.
8084 * tui/tui-regs.c (tui_show_register_group)
8085 (tui_display_registers_from, tui_display_reg_element_at_line):
8086 Remove unnecessary cast.
8087
8088 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * linux-nat.c (normal_mask): Delete.
8091 (_initialize_linux_nat): Don't initialise normal_mask.
8092
8093 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8094
8095 PR gdb/24445
8096 * dwarf-index-write.h (write_psymtabs_to_index): Add
8097 dwz_basename parameter.
8098 * dwarf-index-write.c (write_gdbindex): Move file writing to
8099 write_gdbindex_1. Change return type void.
8100 (assert_file_size): Move up, remove filename parameter.
8101 (write_gdbindex_1): New function.
8102 (write_debug_names): Change return type to void, call
8103 assert_file_size.
8104 (struct index_wip_file): New struct.
8105 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8106 file logic to index_wip_file. Write index for dwz file if
8107 needed.
8108 (save_gdb_index_command): Pass basename of dwz file, if present.
8109 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8110 build-id of dwz file, if present.
8111 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8112 (dwarf2_get_dwz_file): Likewise.
8113 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8114 (dwarf2_get_dwz_file): Likewise.
8115
8116 2019-06-16 Tom Tromey <tom@tromey.com>
8117
8118 * coffread.c (process_coff_symbol): Use xstrdup.
8119 * value.c (create_internalvar): Use xstrdup.
8120
8121 2019-06-16 Tom Tromey <tom@tromey.com>
8122
8123 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8124 * breakpoint.c (stopin_command, stopat_command)
8125 (until_break_command, decode_location_default): Remove unnecessary
8126 cast.
8127 * utils.c (subset_compare): Remove unnecessary cast.
8128 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8129 cast.
8130 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8131 cast.
8132 * infcmd.c (path_command): Remove unnecessary cast.
8133 * coffread.c (decode_type): Remove unnecessary cast.
8134 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8135 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8136 * tui/tui-stack.c (tui_show_locator_content)
8137 (tui_show_frame_info): Remove unnecessary cast.
8138 * tui/tui-win.c (tui_scroll_forward_command)
8139 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8140 (parse_scrolling_args): Remove unnecessary cast.
8141 * tui/tui-data.c (init_win_info, tui_del_window)
8142 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8143 (free_content_elements): Remove unnecessary cast.
8144 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8145 unnecessary cast.
8146 * tui/tui-source.c (tui_set_source_content)
8147 (tui_vertical_source_scroll): Remove unnecessary cast.
8148 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8149 cast.
8150 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8151 * tui/tui-regs.c (tui_display_registers_from)
8152 (tui_display_register): Remove unnecessary cast.
8153 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8154 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8155 (make_visible): Remove unnecessary cast.
8156 * tui/tui-winsource.c (tui_erase_source_content)
8157 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8158 unnecessary cast.
8159 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8160 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8161 * stabsread.c (read_type, read_array_type, read_range_type):
8162 Remove unnecessary cast.
8163 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8164 (parse_symbol, parse_type, upgrade_type, parse_external)
8165 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8166 unnecessary cast.
8167 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8168
8169 2019-06-16 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui-data.c (tui_alloc_generic_win_info)
8172 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8173 checks.
8174
8175 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8176 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * f-typeprint.c (f_print_type): Don't return early for not
8179 associated or not allocated types.
8180 (f_type_print_varspec_suffix): Add print_rank parameter and print
8181 ranks of array types in case they dangling.
8182 (f_type_print_base): Add print_rank parameter.
8183
8184 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * NEWS: Mention new MI commands.
8187 * break-catch-throw.c (enum exception_event_kind): Move to
8188 breakpoint.h.
8189 (print_mention_exception_catchpoint): Output text as a single
8190 message.
8191 (catch_exception_command_1): Rename to...
8192 (catch_exception_event): ...this, make non-static, update header
8193 command, and change some parameter types.
8194 (catch_catch_command): Update for changes to
8195 catch_exception_command_1.
8196 (catch_throw_command): Likewise.
8197 (catch_rethrow_command): Likewise.
8198 * breakpoint.c (enum exception_event_kind): Delete.
8199 * breakpoint.h (enum exception_event_kind): Moved here from
8200 break-catch-throw.c.
8201 (catch_exception_event): Declare.
8202 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8203 (mi_cmd_catch_throw): New function.
8204 (mi_cmd_catch_rethrow): New function.
8205 (mi_cmd_catch_catch): New function.
8206 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8207 'catch-catch' entries.
8208 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8209 (mi_cmd_catch_rethrow): Declare.
8210 (mi_cmd_catch_catch): Declare.
8211
8212 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8213
8214 * annotate.c (annotate_source_line): Change return type to void,
8215 update implementation to match.
8216 * annotate.h (annotate_source_line): Change return type to void,
8217 update header comment.
8218 * stack.c (print_frame_info): Don't change what frame information
8219 is printed based on whether annotations are on or not.
8220
8221 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8222
8223 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8224 (annotate_source): Make static.
8225 (annotate_source_line): Moved from source.c and renamed from
8226 identify_source_line. Update the return type.
8227 * annotate.h (annotate_source): Delete declaration.
8228 (annotate_source_line): Declaration moved from source.h, and
8229 renamed from identify_source_line. Return type updated.
8230 * source.c (identify_source_line): Moved to annotate.c and renamed
8231 to annotate_source_line.
8232 (info_line_command): Remove check of annotation_level.
8233 * source.h (identify_source_line): Move declaration to annotate.h
8234 and rename to annotate_source_line.
8235 * stack.c: Add 'annotate.h' include.
8236 (print_frame_info): Remove check of annotation_level before
8237 calling annotate_source_line.
8238
8239 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * source-cache.c (source_cache::get_plain_source_lines): Use
8242 open_source_file_with_line_charpos instead of just
8243 open_source_file, remove call to find_source_lines.
8244 (source_cache::get_source_lines): Likewise.
8245 * source.c (find_source_lines): Make static.
8246 (get_filename_and_charpos): Renamed into...
8247 (open_source_file_with_line_charpos): ..this along with changes to
8248 return a scoped_fd, and some other minor clean ups.
8249 (identify_source_line): Use open_source_file_with_line_charpos.
8250 (search_command_helper): Use open_source_file_with_line_charpos
8251 instead of just open_source_file, remove call to
8252 find_source_lines.
8253 * source.h (open_source_file_with_line_charpos): Declare new
8254 function.
8255 (find_source_lines): Delete declaration.
8256
8257 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * source.c (get_filename_and_charpos): Remove fullname
8260 parameter.
8261 (identify_source_line): Update call to get_filename_and_charpos.
8262
8263 2019-06-14 Tom Tromey <tromey@adacore.com>
8264
8265 PR gdb/24502:
8266 * ui-style.h (skip_ansi_escape): Update comment.
8267 * ui-file.h (class no_terminal_escape_file): New class.
8268 * ui-file.c (no_terminal_escape_file::write)
8269 (no_terminal_escape_file::puts): New methods.
8270 * cli/cli-logging.c (handle_redirections): Use
8271 no_terminal_escape_file.
8272
8273 2019-06-14 Tom Tromey <tromey@adacore.com>
8274
8275 * NEWS: Move convenience variable news above Python news.
8276
8277 2019-06-14 Tom Tromey <tom@tromey.com>
8278
8279 * gnulib: Move directory to top-level.
8280 * configure.ac: Don't configure gnulib.
8281 * configure: Rebuild.
8282 * common/common-defs.h: Use new path to gnulib.
8283 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8284 (GNULIB_H): Remove.
8285 (INCGNU): Look in new gnulib location.
8286 (HFILES_NO_SRCDIR): Remove gnulib files.
8287 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8288 (generated_files): Remove GNULIB_H.
8289 ($(LIBGNU), all-lib): Remove targets.
8290 (distclean): Don't mention GNULIB_BUILDDIR.
8291 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8292
8293 2019-06-14 Tom Tromey <tromey@adacore.com>
8294
8295 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8296 Warn if symbol file does not provide any symbols.
8297
8298 2019-06-14 Tom Tromey <tromey@adacore.com>
8299
8300 * source.c (find_and_open_source): Respect basenames_may_differ.
8301
8302 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * annotate.c (annotate_breakpoints_invalid): Make use of
8305 scoped_restore_terminal_state.
8306 (annotate_frames_invalid): Likewise.
8307
8308 2019-06-14 Tom Tromey <tromey@adacore.com>
8309
8310 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8311 allow assignment to an internalvar.
8312
8313 2019-06-14 Tom Tromey <tromey@adacore.com>
8314
8315 * ada-lex.l: Allow "_" in attribute names.
8316
8317 2019-06-14 Tom Tromey <tromey@adacore.com>
8318
8319 PR gdb/24653:
8320 * regcache.c (registers_changed): Don't call alloca.
8321 * top.c (execute_command): Don't call alloca.
8322
8323 2019-06-13 Pedro Alves <palves@redhat.com>
8324
8325 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8326 'expression'. When parsing an expression, error out if there's
8327 junk after "unlimited".
8328 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8329 (do_set_command): Adjust calls to is_unlimited_literal.
8330
8331 2019-06-13 Pedro Alves <palves@redhat.com>
8332
8333 * compile/compile.c (make_compile_options_def_group): Add braces
8334 around array_view initializer.
8335 * thread.c (make_thread_apply_all_options_def_group)
8336 (make_thread_apply_all_options_def_group): Likewise.
8337
8338 2019-06-13 Pedro Alves <palves@redhat.com>
8339
8340 * NEWS (New commands): Mention "maint test-options
8341 require-delimiter", "maint test-options unknown-is-error", "maint
8342 test-options unknown-is-operand" and "maint show
8343 test-options-completion-result".
8344 (New command options, command completion): New section.
8345 (Completion improvements): New section.
8346 Mention that you can abbreviate "unlimited".
8347
8348 2019-06-13 Pedro Alves <palves@redhat.com>
8349
8350 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8351 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8352 * unittests/cli-utils-selftests.c (test_parse_flags)
8353 (test_parse_flags_qcs): Delete.
8354 (test_cli_utils): Don't call deleted functions.
8355
8356 2019-06-13 Pedro Alves <palves@redhat.com>
8357
8358 * thread.c: Include "cli/cli-option.h".
8359 (tp_array_compar_ascending): Global.
8360 (tp_array_compar): Delete function.
8361 (tp_array_compar_ascending, tp_array_compar_descending): New
8362 functions.
8363 (ascending_option_def, qcs_flag_option_def)
8364 (thr_qcs_flags_option_defs)
8365 (make_thread_apply_all_options_def_group)
8366 (make_thread_apply_options_def_group): New.
8367 (thread_apply_all_command): Use gdb::option::process_options.
8368 (thread_apply_command_completer)
8369 (thread_apply_all_command_completer): New.
8370 (thread_apply_command): Use gdb::option::process_options.
8371 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8372 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8373 to generate help text of "thread apply". Adjust "taas"'s help.
8374 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8375 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8376
8377 2019-06-13 Pedro Alves <palves@redhat.com>
8378
8379 * thread.c (thread_apply_command): Check for invalid TID with
8380 isdigit instead of !isalpha.
8381
8382 2019-06-13 Pedro Alves <palves@redhat.com>
8383
8384 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8385 (validate_flags_qcs): New.
8386 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8387 (validate_flags_qcs): Declare.
8388 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8389 (make_frame_apply_options_def_group): New.
8390 (frame_apply_command_count): Process options with
8391 gdb::option::process_options.
8392 (frame_apply_completer): New.
8393 (frame_apply_level_completer, frame_apply_all_completer)
8394 (frame_apply_completer): New.
8395 (_initialize_stack): Update help of "frame apply", "frame apply
8396 level", "frame apply all" and "faas" to mention supported options
8397 and install command completers.
8398 * stack.h (frame_apply_all_completer): Declare.
8399 * thread.c: Include "stack.h".
8400 (tfaas_command): Add "--".
8401 (_initialize_thread): Update help "tfaas" to mention supported
8402 options and install command completer.
8403
8404 2019-06-13 Pedro Alves <palves@redhat.com>
8405
8406 * completer.c (complete_nested_command_line): New.
8407 (gdb_completion_word_break_characters_throw): Add assertion.
8408 * completer.h (complete_nested_command_line): Declare.
8409
8410 2019-06-13 Pedro Alves <palves@redhat.com>
8411
8412 * stack.c (parse_backtrace_qualifiers): New.
8413 (backtrace_command): Use it.
8414 (backtrace_command_completer): Complete on qualifiers.
8415
8416 2019-06-13 Pedro Alves <palves@redhat.com>
8417
8418 * frame.c: Include "cli/cli-option.h.
8419 (user_set_backtrace_options): New.
8420 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8421 Delete.
8422 (get_prev_frame): Adjust.
8423 (boolean_option_def, uinteger_option_def)
8424 (set_backtrace_option_defs): New.
8425 (_initialize_frame): Adjust and use
8426 gdb::option::add_setshow_cmds_for_options to install "set
8427 backtrace past-main" and "set backtrace past-entry".
8428 * frame.h: Include "cli/cli-option.h".
8429 (struct frame_print_options): Forward declare.
8430 (print_frame_arguments_all, print_frame_arguments_scalars)
8431 (print_frame_arguments_none): Declare.
8432 (print_entry_values): Delete declaration.
8433 (struct frame_print_options, user_frame_print_options): New.
8434 (struct set_backtrace_options): New.
8435 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8436 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8437 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8438 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8439 (list_args_or_locals): Add frame_print_options parameter.
8440 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8441 * python/py-framefilter.c (enumerate_args): Pass down
8442 USER_FRAME_PRINT_OPTIONS.
8443 * stack.c: Include "cli/cli-option.h".
8444 (print_frame_arguments_all, print_frame_arguments_scalars)
8445 (print_frame_arguments_none): Declare.
8446 (print_raw_frame_arguments, print_entry_values): Delete.
8447 (user_frame_print_options): New.
8448 (boolean_option_def, enum_option_def, frame_print_option_defs):
8449 New.
8450 (struct backtrace_cmd_options): New.
8451 (bt_flag_option_def): New.
8452 (backtrace_command_option_defs): New.
8453 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8454 (print_frame_arg, read_frame_arg, print_frame_args)
8455 (print_frame_info, print_frame): Add frame_print_options parameter
8456 and use it.
8457 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8458 (backtrace_command_1): Add frame_print_options and
8459 backtrace_cmd_options parameters and use them.
8460 (make_backtrace_options_def_group): New.
8461 (backtrace_command): Process command options with
8462 gdb::option::process_options.
8463 (backtrace_command_completer): New.
8464 (_initialize_stack): Extend "backtrace"'s help to mention
8465 supported options. Install completer for "backtrace".
8466 Install some settings commands with add_setshow_cmds_for_options.
8467
8468 2019-06-13 Pedro Alves <palves@redhat.com>
8469
8470 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8471 and that "set/show print raw frame-arguments" are now deprecated.
8472
8473 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8474 command.
8475 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8476 * stack.c (_initialize_stack): Install "set/show print
8477 raw-frame-arguments", and deprecate "set/show print raw
8478 frame-arguments".
8479 * valprint.c (_initialize_valprint): Deprecate "set/show print
8480 raw".
8481
8482 2019-06-13 Pedro Alves <palves@redhat.com>
8483
8484 * compile/compile.c (struct compile_options): New.
8485 (compile_flag_option_def, compile_command_option_defs)
8486 (make_compile_options_def_group): New.
8487 (compile_file_command): Handle options with
8488 gdb::option::process_options.
8489 (compile_file_command_completer): New function.
8490 (compile_code_command): Handle options with
8491 gdb::option::process_options.
8492 (compile_code_command_completer): New function.
8493 (_initialize_compiler): Install completers for "compile code" and
8494 "compile file". Mention available options in "compile code" and
8495 "compile code"'s help.
8496 * completer.c (advance_to_completion_word): New, factored out from
8497 ...
8498 (advance_to_expression_complete_word_point): ... this.
8499 (advance_to_filename_complete_word_point): New.
8500 * completer.h (advance_to_filename_complete_word_point): New
8501 declaration.
8502
8503 2019-06-13 Pedro Alves <palves@redhat.com>
8504
8505 * compile/compile.c: Include "cli/cli-option.h".
8506 (compile_print_value): Scope data pointer is now a
8507 value_print_options pointer; adjust.
8508 (compile_print_command): Process options. Scope data pointer is
8509 now a value_print_options pointer; adjust.
8510 (_initialize_compile): Update "compile print"'s help to include
8511 supported options. Install a completer for "compile print".
8512 * cp-valprint.c (show_vtblprint, show_objectprint)
8513 (show_static_field_print): Delete.
8514 (_initialize_cp_valprint): Don't install "set print
8515 static-members", "set print vtbl", "set print object" here.
8516 * printcmd.c: Include "cli/cli-option.h" and
8517 "common/gdb_optional.h".
8518 (print_command_parse_format): Rework to fill in a
8519 value_print_options instead of a format_data.
8520 (print_value): Change parameter type from format_data pointer to
8521 value_print_options reference. Adjust.
8522 (print_command_1): Process options. Adjust to pass down a
8523 value_print_options.
8524 (print_command_completer): New.
8525 (_initialize_printcmd): Install print_command_completer as
8526 handle_brkchars completer for the "print" command. Update
8527 "print"'s help to include supported options.
8528 * valprint.c: Include "cli/cli-option.h".
8529 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8530 here from cp-valprint.c.
8531 (boolean_option_def, uinteger_option_def)
8532 (value_print_option_defs, make_value_print_options_def_group):
8533 New. Use gdb::option::add_setshow_cmds_for_options to install
8534 "set print elements", "set print null-stop", "set print repeats",
8535 "set print pretty", "set print union", "set print array", "set
8536 print address", "set print symbol", "set print array-indexes".
8537 * valprint.h: Include <string> and "cli/cli-option.h".
8538 (make_value_print_options_def_group): Declare.
8539 (print_value): Change parameter type from format_data pointer to
8540 value_print_options reference.
8541 (print_command_completer): Declare.
8542
8543 2019-06-13 Pedro Alves <palves@redhat.com>
8544
8545 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8546 (COMMON_SFILES): Add maint-test-settings.c.
8547 * cli/cli-decode.c (boolean_enums): New global, factored out from
8548 ...
8549 (add_setshow_boolean_cmd): ... here.
8550 * cli/cli-decode.h (boolean_enums): Declare.
8551 * cli/cli-option.c: New file.
8552 * cli/cli-option.h: New file.
8553 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8554 factored out from ...
8555 (parse_cli_boolean_value(const char *)): ... this.
8556 (is_unlimited_literal): Change parameter type to pointer to
8557 pointer. Adjust and advance ARG pointer.
8558 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8559 (parse_cli_var_enum): New, factored out from ...
8560 (do_set_command): ... this. Adjust.
8561 * cli/cli-setshow.h (parse_cli_boolean_value)
8562 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8563 (parse_cli_var_enum): Declare.
8564 * cli/cli-utils.c: Include "cli/cli-option.h".
8565 (get_ulongest): New.
8566 * cli/cli-utils.h (get_ulongest): Declare.
8567 (check_for_argument): New overloads.
8568 * maint-test-options.c: New file.
8569
8570 2019-06-13 Pedro Alves <palves@redhat.com>
8571
8572 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8573 parse a range if "-" is at the end of the string.
8574
8575 2019-06-13 Pedro Alves <palves@redhat.com>
8576
8577 * cli/cli-setshow.c (parse_auto_binary_operation)
8578 (parse_cli_boolean_value): Don't allow "o".
8579
8580 2019-06-13 Pedro Alves <palves@redhat.com>
8581
8582 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8583 * NEWS: Mention maint test-settings KIND.
8584 * maint-test-settings.c: New file.
8585
8586 2019-06-13 Pedro Alves <palves@redhat.com>
8587
8588 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8589 completer.
8590 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8591 "set" completers.
8592
8593 2019-06-13 Pedro Alves <palves@redhat.com>
8594
8595 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8596 after item.
8597
8598 2019-06-13 Pedro Alves <palves@redhat.com>
8599
8600 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8601
8602 2019-06-13 Pedro Alves <palves@redhat.com>
8603
8604 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8605 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8606 call.
8607 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8608 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8609 calls.
8610 (check_for_argument): Skip spaces after argument.
8611
8612 2019-06-13 Pedro Alves <palves@redhat.com>
8613
8614 * thread.c (thread_apply_command): Adjust TID parsing.
8615 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8616 detected before end of string.
8617 (tid_is_in_list): Error out if LIST is invalid.
8618
8619 2019-06-13 Pedro Alves <palves@redhat.com>
8620
8621 * completer.c (complete_line_internal_1): Rewind completion word
8622 point.
8623 (completion_tracker::advance_custom_word_point_by): Change
8624 parameter type to int.
8625 * completer.h (completion_tracker::advance_custom_word_point_by):
8626 Likewise.
8627
8628 2019-06-13 Pedro Alves <palves@redhat.com>
8629
8630 * completer.c (advance_to_completion_word): Handle delimiters.
8631
8632 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8633
8634 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8635
8636 2019-06-11 Tom Tromey <tom@tromey.com>
8637
8638 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8639 (xmalloc_failed): Move to alloc.c.
8640 * alloc.c: New file.
8641 * Makefile.in (COMMON_SFILES): Add alloc.c.
8642
8643 2019-06-11 Tom Tromey <tom@tromey.com>
8644
8645 * nat/linux-waitpid.c: Don't include server.h.
8646 (linux_debug): Remove.
8647 (my_waitpid): Update.
8648
8649 2019-06-11 Tom Tromey <tromey@adacore.com>
8650
8651 * infcall.c (_initialize_infcall): Remove trailing newline from
8652 help.
8653 * user-regs.c (_initialize_user_regs): Remove trailing newline
8654 from help.
8655 * typeprint.c (_initialize_typeprint): Remove trailing newline
8656 from help.
8657 * reverse.c (_initialize_reverse): Remove trailing newlines from
8658 help.
8659 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8660 from help.
8661 * language.c (add_set_language_command): Remove trailing newline
8662 from help.
8663 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8664 help.
8665 * disasm.c (_initialize_disasm): Remove trailing newline from
8666 help.
8667 * top.c (init_main): Remove trailing newline from help.
8668 * interps.c (_initialize_interpreter): Remove trailing newline
8669 from help.
8670 * btrace.c (_initialize_btrace): Remove trailing newlines from
8671 help.
8672 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8673 from help.
8674 * python/python.c (_initialize_python): Remove trailing newline
8675 from help.
8676 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8677 help.
8678 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8679 from help. Reformat some text.
8680 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8681 from help.
8682 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8683 newline from help.
8684
8685 2019-06-11 Tom Tromey <tromey@adacore.com>
8686
8687 * darwin-nat.c (darwin_decode_exception_message)
8688 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8689
8690 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8691
8692 * valops.c (value_slice): Check for not allocated or not
8693 associated values.
8694
8695 2019-06-10 Tom de Vries <tdevries@suse.de>
8696
8697 PR gdb/24618
8698 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8699 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8700 invalid.
8701
8702 2019-06-10 Tom de Vries <tdevries@suse.de>
8703
8704 PR gdb/24611
8705 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8706 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8707
8708 2019-06-10 Tom de Vries <tdevries@suse.de>
8709
8710 PR symtab/24545
8711 * symtab.c (struct demangled_name_entry): Add language field.
8712 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8713 static minimal symbol". Set and use language field.
8714
8715 2019-06-10 Tom Tromey <tromey@adacore.com>
8716
8717 * ada-lang.c (_initialize_ada_language): Update help text.
8718
8719 2019-06-10 Tom Tromey <tromey@adacore.com>
8720
8721 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8722 with a newline.
8723 * guile/guile.c (handle_boot_error): Don't end warning with a
8724 newline.
8725 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8726 warning with a newline.
8727 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8728 newline.
8729 (s12z_frame_cache): Likewise.
8730 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8731 a newline.
8732 * solib-svr4.c (disable_probes_interface): Don't end warning with
8733 a newline.
8734 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8735 newline.
8736 * python/python.c (do_finish_initialization): Don't end warning
8737 with a newline.
8738
8739 2019-06-10 Tom Tromey <tom@tromey.com>
8740
8741 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8742 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8743 gdbpy_enter.
8744
8745 2019-06-10 Tom Tromey <tromey@adacore.com>
8746
8747 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8748 data.
8749 (elf_new_init): Don't call stabsread_new_init.
8750 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8751 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8752 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8753
8754 2019-06-10 Tom de Vries <tdevries@suse.de>
8755
8756 PR symtab/16264
8757 PR symtab/24517
8758 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8759
8760 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8761
8762 * source.c (find_and_open_source): Also rewrite relative file
8763 names.
8764
8765 2019-04-26 Amos Bird <amosbird@gmail.com>
8766
8767 * annotate.c (annotate_thread_exited): Add "thread-exited"
8768 annotation.
8769
8770 2019-06-06 Tom Tromey <tromey@adacore.com>
8771
8772 * maint.h (class scoped_command_stats): Use
8773 DISABLE_COPY_AND_ASSIGN.
8774 <print_time>: New method.
8775 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8776 print_time.
8777 (scoped_command_stats::print_time): New method.
8778
8779 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8782 instructions of lengths 6 or 8 bytes.
8783
8784 2019-06-04 Pedro Alves <palves@redhat.com>
8785
8786 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8787
8788 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8789 * breakpoint.c (condition_completer): Likewise.
8790 * cli/cli-dump.c (scan_expression): Likewise.
8791 * common/filestuff.c (mkdir_recursive): Likewise.
8792 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8793 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8794 (gdb_abspath): Likewise.
8795 * compile/compile-cplus-types.c
8796 (compile_cplus_instance::decl_name): Likewise.
8797 * completer.c (complete_explicit_location):
8798 (signal_completer, reg_or_group_completer_1): Likewise.
8799 * cp-support.c (cp_remove_params_if_any): Likewise.
8800 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8801 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8802 * infcmd.c (strip_bg_char): Likewise.
8803 * linespec.c (copy_token_string): Likewise.
8804 * mi/mi-main.c (output_cores): Likewise.
8805 * psymtab.c (psymtab_search_name):
8806 * symfile.c (test_set_ext_lang_command): Likewise.
8807 * target.c (target_fileio_read_stralloc): Likewise.
8808 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8809 * value.c (complete_internalvar): Likewise.
8810
8811 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8812
8813 Add objfile property to gdb.Type.
8814 * NEWS: Mention Python API addition.
8815 * python/py-type.c (typy_get_objfile): New method.
8816
8817 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8818
8819 * NEWS: Mention the new set|show style [title|highlight].
8820 Mention changes to "show style", "help" and "apropos".
8821
8822 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823
8824 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8825 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8826 instead of print_help_for_command.
8827 (print_doc_of_command): New function.
8828 (help_list): Add 'apropos -v word' suggestion.
8829 (print_help_for_command): Style the command name using title style.
8830 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8831 (_initialize_cli_cmds): Describe -v in apropos_command help.
8832
8833 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8834
8835 * cli/cli-style.h (cli_style_option): Add name in constructor,
8836 add m_name class member, add constructor with intensity,
8837 add name class function.
8838 (cli_style_option::add_setshow_commands): Remove name argument.
8839 (highlight_style, title_style): New styles.
8840 * cli/cli-style.c (do_show): New function that shows a style
8841 characteristic styling the style name with itself.
8842 (set_style_name): New function.
8843 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8844 Update all callers according to the changes in cli/cli-style.h.
8845 * utils.h (fputs_highlighted): New function.
8846 * utils.c (fputs_highlighted): Likewise.
8847
8848 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8849
8850 * NEWS: Mention new pipe command and new convenience variables.
8851
8852 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8853
8854 * cli/cli-cmds.c (pipe_command): New function.
8855 (_initialize_cli_cmds): Call add_com for pipe_command.
8856 Define | as an alias for pipe.
8857 (exit_status_set_internal_vars): New function.
8858 (shell_escape): Call exit_status_set_internal_vars.
8859 cli/cli-decode.c (find_command_name_length): Recognize | as
8860 a single character command.
8861
8862 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8863
8864 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8865 top.c (execute_command_to_ui_file): New function, mostly a copy
8866 of execute_command_to_string.
8867 (execute_command_to_string): Implement by calling
8868 execute_command_to_ui_file.
8869
8870 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8871
8872 * top.h (saved_command_line): Remove declaration.
8873 * top.c (previous_saved_command_line, previous_repeat_arguments):
8874 New variables.
8875 (saved_command_line): Make static, define together with other
8876 'repeat variables'.
8877 (dont_repeat): Clear repeat_arguments.
8878 (repeat_previous, get_saved_command_line, save_command_line):
8879 New functions.
8880 (gdb_init): Initialize saved_command_line
8881 and previous_saved_command_line.
8882 * main.c (captured_main_1): Remove saved_command_line initialization.
8883 * event-top.c (handle_line_of_input): Update to use
8884 the new 'repeat' related functions instead of direct access to
8885 saved_command_line.
8886 * command.h (repeat_previous, get_saved_command_line,
8887 save_command_line): New declarations.
8888 (dont_repeat): Add comment.
8889
8890 2019-05-30 Tom Tromey <tromey@adacore.com>
8891
8892 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8893 Fix comment.
8894 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8895
8896 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8897
8898 PR cli/24587
8899 * completer.c (complete): Initialize variable word.
8900
8901 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8902
8903 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8904 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8905 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8906 'body' is NULL to the outter 'if', protecting the '!is_define'
8907 situation as well.
8908
8909 2019-05-29 Tom Tromey <tromey@adacore.com>
8910
8911 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8912 (dwarf_unknown): New function.
8913 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8914 (dwarf_type_encoding_name): Use dwarf_unknown.
8915
8916 2019-05-29 Tom Tromey <tromey@adacore.com>
8917
8918 PR c++/20020:
8919 * cp-valprint.c (cp_print_value_fields): Call
8920 cp_print_static_field inside "try".
8921
8922 2019-05-29 Tom Tromey <tromey@adacore.com>
8923
8924 * inflow.c (struct terminal_info): Add default operator=.
8925 * configure: Rebuild.
8926 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8927 -Wdeprecated-copy-dtor, -Wredundant-move.
8928
8929 2019-05-29 Tom Tromey <tromey@adacore.com>
8930
8931 * NEWS: Add entry.
8932 * infcmd.c (print_return_value_1): Handle finish_print
8933 option.
8934 (show_print_finish): New function.
8935 (_initialize_infcmd): Add "set/show print finish" commands.
8936 * valprint.c (user_print_options): Initialize new member.
8937 * valprint.h (struct value_print_options) <finish_print>: New
8938 member.
8939
8940 2019-05-28 Tom Tromey <tromey@adacore.com>
8941
8942 * ada-lang.c (ada_remove_Xbn_suffix)
8943 (find_old_style_renaming_symbol)
8944 (parse_old_style_renaming): Remove.
8945 (ada_find_renaming_symbol): Don't call
8946 find_old_style_renaming_symbol.
8947 (ada_is_renaming_symbol): Rename from
8948 ada_find_renaming_symbol. Remove "block" parameter. Return
8949 bool. Now static.
8950 (ada_read_var_value): Update and simplify.
8951 * ada-exp.y (write_var_or_type): Remove old code.
8952
8953 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8954
8955 PR gdb/25010
8956 * event-top.c: Remove include comment.
8957 * inflow.c (class scoped_ignore_sigttou): Move from here...
8958 * inflow.h (class scoped_ignore_sigttou): ...to here.
8959 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8960 * top.c: Remove include comment.
8961
8962 2019-05-27 Tom Tromey <tom@tromey.com>
8963
8964 * NEWS: Fix typo.
8965
8966 2019-05-22 Tom Tromey <tromey@adacore.com>
8967
8968 * target.c (target_follow_exec): Constify parameter.
8969 * target-delegates.c: Rebuild.
8970 * remote.c (remote_target::follow_exec): Constify parameter.
8971 * infrun.c (follow_exec): Constify parameter.
8972 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8973 (target_follow_exec): Likewise.
8974
8975 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8976
8977 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8978 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8979
8980 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8981
8982 * NEWS: Add debugredirect and testsuite sections.
8983
8984 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8985
8986 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8987 target descriptions using exclusively floating point register name
8988 aliases.
8989
8990 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8991
8992 PR gdb/18644:
8993 * f-lang.c (build_fortran_types): Handle the case where
8994 gdbarch_floatformat_for_type returns a nullptr.
8995
8996 2019-05-21 Tom de Vries <tdevries@suse.de>
8997
8998 PR cli/24587
8999 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9000
9001 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 PR gdb/18644:
9004 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9005 16-byte floats.
9006 * i386-tdep.c (i386_floatformat_for_type): Use
9007 floatformats_ia64_quad for the 16-byte floating point component
9008 within a fortran 32-byte complex number.
9009
9010 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9013 delete default constructor.
9014 (find_partial_die): Update to return const struct.
9015 (partial_die_parent_scope): Move variable declaration into scope
9016 of its use and change its type to auto.
9017 (guess_partial_die_structure_name): Likewise.
9018 (partial_die_info::fixup): Likewise.
9019
9020 2019-05-17 Tom Tromey <tromey@adacore.com>
9021
9022 * source.c (find_and_open_source): Remove cast.
9023
9024 2019-05-17 Tom Tromey <tromey@adacore.com>
9025
9026 * annotate.c (annotate_source): Make "filename" const.
9027 * annotate.h (annotate_source): Use const.
9028
9029 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9030
9031 * disasm.c (set_disassembler_options): Send errors to stderr.
9032
9033 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9034
9035 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9036 (cli_interp_base::set_logging): Check debug_redirect.
9037 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9038 * cli/cli-logging.c (debug_redirect): Add static variable.
9039 (pop_output_files): Add default param.
9040 (handle_redirections): Print debug setting.
9041 (show_logging_command): Likewise.
9042 (_initialize_cli_logging): Add debugredirect command.
9043 * interps.c (current_interp_set_logging): Add debug_redirect
9044 parameter.
9045 * interps.h (set_logging): Add debug_redirect parameter.
9046 (current_interp_set_logging): Likewise.
9047 * mi/mi-common.h: Likewise.
9048 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9049
9050 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9051 Tom Tromey <tromey@adacore.com>
9052
9053 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9054 directly.
9055 * cli/cli-interp.h (make_logging_output): Remove declaration.
9056 * cli/cli-logging.c (make_logging_output): Remove function.
9057 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9058 directly.
9059 * ui-file.c (tee_file::tee_file): Remove bools.
9060 (tee_file::~tee_file): Remove deletes.
9061 * ui-file.h (tee_file): Remove bools.
9062
9063 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9064
9065 * mi/mi-cmds.h (mi_cmd_complete): New function.
9066 * mi/mi-main.c (mi_cmd_complete): Likewise.
9067 * mi/mi-cmds.c: Define new MI command -complete.
9068 * NEWS: Mention new -complete command.
9069
9070 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9071
9072 * completer.h (complete): New function.
9073 * completer.c (complete): Likewise.
9074 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9075 function defined in completer.h.
9076
9077 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9078
9079 * MAINTAINERS (Write After Approval): Add myself.
9080
9081 2019-05-17 Tom de Vries <tdevries@suse.de>
9082
9083 PR gdb/24094
9084 * dwarf2read.c (struct cu_partial_die_info): New struct.
9085 (find_partial_die): Return cu_partial_die_info.
9086 (partial_die_parent_scope, guess_partial_die_structure_name)
9087 (partial_die_info::fixup): Handle new return type of find_partial_die.
9088
9089 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9090
9091 PR breakpoints/24541
9092 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9093 "std::string", simplifying the algorithm.
9094
9095 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9096
9097 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9098 (stap_static_probe_ops::get_probes): Likewise.
9099
9100 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9101
9102 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9103 '-')" and "else if".
9104 (stap_parse_single_operand): Join checks for
9105 "gdbarch_stap_parse_special_token_p" and
9106 "gdbarch_stap_parse_special_token" in the same "if" statement.
9107 Invert check when verifying for operation on register
9108 displacement.
9109
9110 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9111
9112 * stap-probe.c (stap_get_opcode): Update comment.
9113 (stap_get_expected_argument_type): Likewise.
9114 (handle_stap_probe): Likewise.
9115
9116 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9117
9118 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9119 return type to 'bool'. Adjust comment. Use 'bool' when
9120 appropriate.
9121 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9122 * stap-probe.c (stap_parse_argument_1): Likewise.
9123 (stap_is_operator): Likewise.
9124 (stap_is_generic_prefix): Likewise.
9125 (stap_is_register_prefix): Likewise.
9126 (stap_is_register_indirection_prefix): Likewise.
9127 (stap_is_integer_prefix): Likewise.
9128 (stap_generic_check_suffix): Likewise.
9129 (stap_check_integer_suffix): Likewise.
9130 (stap_check_register_suffix): Likewise.
9131 (stap_check_register_indirection_suffix): Likewise.
9132 (stap_parse_register_operand): Likewise.
9133 (stap_parse_single_operand): Likewise.
9134 (stap_parse_argument_1): Likewise.
9135 (stap_probe::get_argument_count): Likewise.
9136 (stap_is_operator): Likewise.
9137
9138 2019-05-16 Tom Tromey <tromey@adacore.com>
9139
9140 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9141 keyword to foreach.
9142
9143 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9144
9145 * linux-thread-db.c (try_thread_db_load_1): Change return type
9146 to bool.
9147 (try_thread_db_load): Likewise.
9148 (try_thread_db_load_from_pdir_1): Likewise.
9149 (try_thread_db_load_from_pdir): Likewise.
9150 (try_thread_db_load_from_sdir): Likewise.
9151 (try_thread_db_load_from_dir): Likewise.
9152 (thread_db_load_search): Likewise.
9153 (has_libpthread): Likewise.
9154 (thread_db_load): Likewise.
9155
9156 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9157
9158 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9159 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9160 NULL, and complain/return if that's the case.
9161
9162 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9163
9164 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9165 (advance, posn, abstract_read_memory): New functions.
9166 [struct mem_read_abstraction]: New struct.
9167 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9168
9169 2019-05-14 Tom Tromey <tromey@adacore.com>
9170
9171 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9172 value is not lval_memory.
9173
9174 2019-05-14 Tom Tromey <tromey@adacore.com>
9175
9176 * solib.c (info_sharedlibrary_command): Style the file name.
9177
9178 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9179
9180 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9181 (aarch64_vnv_type): Likewise.
9182 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9183 * common/tdesc.c: Likewise.
9184 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9185 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9186 * features/aarch64-fpu.xml: Add ieee half view.
9187 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9188 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9189 * gdbtypes.h (struct builtin_type): Likewise.
9190 (struct objfile_type): Likewise.
9191
9192 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9193
9194 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9195 typo.
9196 * location.h (string_to_event_location): Likewise.
9197
9198 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9199
9200 GDB 8.3 released.
9201
9202 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9205 New variable declaration.
9206 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9207 New variable.
9208 (print_one_breakpoint): Use ui_out::test_flags and new global
9209 variable to compute use_fixed_output.
9210 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9211 Remove.
9212 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9213 (mi_multi_location_breakpoint_output_fixed): Remove.
9214 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9215 new variable.
9216 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9217 fix_multi_location_breakpoint_output flag if version >= 3.
9218 * ui-out.h (enum ui_out_flag)
9219 <fix_multi_location_breakpoint_output>: New enumerator.
9220
9221 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9224
9225 2019-05-10 Tom Tromey <tromey@adacore.com>
9226
9227 * ada-lang.c (catch_ada_completer): New function.
9228 (_initialize_ada_language): Use it.
9229
9230 2019-05-10 Tom Tromey <tromey@adacore.com>
9231
9232 * thread.c (print_thread_info): Make "requested_threads" const.
9233 * gdbthread.h (print_thread_info): Make "requested_threads"
9234 const.
9235 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9236 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9237
9238 2019-05-08 Tom Tromey <tom@tromey.com>
9239
9240 * gdbtypes.c (objfile_type_data): Change type.
9241 (objfile_type, _initialize_gdbtypes): Update.
9242
9243 2019-05-08 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9246 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9247 (_initialize_dwarf2_frame): Update.
9248
9249 2019-05-08 Tom Tromey <tom@tromey.com>
9250
9251 * objc-lang.c (objc_objfile_data): Change type.
9252 (find_methods): Update.
9253 (_initialize_objc_lang): Remove.
9254
9255 2019-05-08 Tom Tromey <tom@tromey.com>
9256
9257 * stabsread.c (rs6000_builtin_type_data): Change type.
9258 (rs6000_builtin_type, _initialize_stabsread): Update.
9259
9260 2019-05-08 Tom Tromey <tom@tromey.com>
9261
9262 * mips-tdep.c (mips_pdr_data): Remove.
9263 (_initialize_mips_tdep): Update.
9264
9265 2019-05-08 Tom Tromey <tom@tromey.com>
9266
9267 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9268 (hppa_init_objfile_priv_data, read_unwind_info)
9269 (find_unwind_entry, _initialize_hppa_tdep): Update.
9270
9271 2019-05-08 Tom Tromey <tom@tromey.com>
9272
9273 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9274 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9275 on obstack.
9276 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9277
9278 2019-05-08 Tom Tromey <tom@tromey.com>
9279
9280 * mdebugread.c (basic_type_data): Change type.
9281 (basic_type, _initialize_mdebugread): Update.
9282
9283 2019-05-08 Tom Tromey <tom@tromey.com>
9284
9285 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9286
9287 2019-05-08 Tom Tromey <tom@tromey.com>
9288
9289 * nto-tdep.c (nto_inferior_data_reg): Change type.
9290 (nto_inferior_data): Update.
9291 (nto_inferior_data_cleanup, nto_new_inferior_data)
9292 (_initialize_nto_tdep): Remove.
9293 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9294
9295 2019-05-08 Tom Tromey <tom@tromey.com>
9296
9297 * ada-lang.c (struct ada_inferior_data): Add initializers.
9298 (ada_inferior_data): Change type.
9299 (ada_inferior_data_cleanup): Remove.
9300 (get_ada_inferior_data, ada_inferior_exit)
9301 (struct ada_pspace_data): Add initializers, destructor.
9302 (ada_pspace_data_handle): Change type.
9303 (get_ada_pspace_data): Update.
9304 (ada_pspace_data_cleanup): Remove.
9305
9306 2019-05-08 Tom Tromey <tom@tromey.com>
9307
9308 * coffread.c (struct coff_symfile_info): Add initializers.
9309 (coff_objfile_data_key): Move lower. Change type.
9310 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9311 Update.
9312 (coff_free_info): Remove.
9313
9314 2019-05-08 Tom Tromey <tom@tromey.com>
9315
9316 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9317 (fbsd_pspace_data_handle): Move lower. Change type.
9318 (get_fbsd_pspace_data): Update.
9319 (fbsd_pspace_data_cleanup): Remove.
9320 (_initialize_fbsd_tdep): Update.
9321
9322 2019-05-08 Tom Tromey <tom@tromey.com>
9323
9324 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9325 (get_ada_tasks_pspace_data): Update.
9326 (ada_tasks_pspace_data_cleanup): Remove.
9327 (_initialize_tasks): Update.
9328 (ada_tasks_inferior_data_handle): Change type.
9329 (get_ada_tasks_inferior_data): Update.
9330 (ada_tasks_inferior_data_cleanup): Remove.
9331 (struct ada_tasks_pspace_data): Add initializers.
9332
9333 2019-05-08 Tom Tromey <tom@tromey.com>
9334
9335 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9336 * symfile-debug.c (debug_sym_get_probes): Change type.
9337 * stap-probe.c (handle_stap_probe):
9338 (stap_static_probe_ops::get_probes): Change type.
9339 * probe.h (class static_probe_ops) <get_probes>: Change type.
9340 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9341 (parse_probes_in_pspace): Update.
9342 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9343 Update.
9344 (any_static_probe_ops::get_probes): Change type.
9345 * elfread.c (elfread_data): New typedef.
9346 (probe_key): Change type.
9347 (elf_get_probes): Likewise. Update.
9348 (probe_key_free): Remove.
9349 (_initialize_elfread): Update.
9350 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9351 Change type.
9352 (dtrace_process_dof_probe, dtrace_process_dof)
9353 (dtrace_static_probe_ops::get_probe): Change type.
9354
9355 2019-05-08 Tom Tromey <tom@tromey.com>
9356
9357 * xcoffread.c (struct xcoff_symfile_info): Rename from
9358 coff_symfile_info. Add initializers.
9359 (xcoff_objfile_data_key): Move lower. Change type.
9360 (XCOFF_DATA): Rewrite.
9361 (xcoff_free_info): Remove.
9362 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9363 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9364 (xcoff_initial_scan): Update.
9365
9366 2019-05-08 Tom Tromey <tom@tromey.com>
9367
9368 * solib-svr4.c (struct svr4_info): Add initializers and
9369 destructor.
9370 <probes_table>: Now an htab_up.
9371 (solib_svr4_pspace_data): Change type.
9372 (free_probes_table): Simplify.
9373 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9374 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9375 (probes_table_remove_objfile_probes, register_solib_event_probe)
9376 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9377 (_initialize_svr4_solib): Update.
9378
9379 2019-05-08 Tom Tromey <tom@tromey.com>
9380
9381 * remote.c (remote_pspace_data): Change type.
9382 (remote_pspace_data_cleanup): Remove.
9383 (get_remote_exec_file, set_pspace_remote_exec_file)
9384 (_initialize_remote): Update.
9385
9386 2019-05-08 Tom Tromey <tom@tromey.com>
9387
9388 * breakpoint.c (breakpoint_objfile_key): Change type.
9389 (get_breakpoint_objfile_data): Update.
9390 (free_breakpoint_objfile_data): Remove.
9391 (_initialize_breakpoint): Update.
9392
9393 2019-05-08 Tom Tromey <tom@tromey.com>
9394
9395 * linux-tdep.c (struct linux_info): Add initializers.
9396 (linux_inferior_data): Move. Change type.
9397 (invalidate_linux_cache_inf): Update.
9398 (linux_inferior_data_cleanup): Remove.
9399 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9400
9401 2019-05-08 Tom Tromey <tom@tromey.com>
9402
9403 * auxv.c (auxv_inferior_data): Move. Change type.
9404 (auxv_inferior_data_cleanup): Remove.
9405 (invalidate_auxv_cache_inf): Rewrite.
9406 (get_auxv_inferior_data, _initialize_auxv): Update.
9407
9408 2019-05-08 Tom Tromey <tom@tromey.com>
9409
9410 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9411 (symfile_debug_objfile_data_key): Change type.
9412 (symfile_debug_installed, debug_qf_has_symbols)
9413 (debug_qf_find_last_source_symtab)
9414 (debug_qf_forget_cached_source_info)
9415 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9416 (debug_qf_print_stats, debug_qf_dump)
9417 (debug_qf_expand_symtabs_for_function)
9418 (debug_qf_expand_all_symtabs)
9419 (debug_qf_expand_symtabs_with_fullname)
9420 (debug_qf_map_matching_symbols)
9421 (debug_qf_expand_symtabs_matching)
9422 (debug_qf_find_pc_sect_compunit_symtab)
9423 (debug_qf_map_symbol_filenames)
9424 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9425 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9426 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9427 (debug_sym_read_linetable, debug_sym_relocate): Update.
9428 (symfile_debug_free_objfile): Remove.
9429 (install_symfile_debug_logging, _initialize_symfile_debug):
9430 Update.
9431
9432 2019-05-08 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9435 allocate_on_obstack.
9436 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9437 (get_dwarf2_per_objfile): Update.
9438 (set_dwarf2_per_objfile): Remove.
9439 (dwarf2_has_info, dwarf2_get_section_info): Update.
9440 (dwarf2_free_objfile): Remove.
9441 (_initialize_dwarf2_read): Update.
9442
9443 2019-05-08 Tom Tromey <tom@tromey.com>
9444
9445 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9446 initializers.
9447 <unsupported_script_warning_printed,
9448 script_not_found_warning_printed>: Now bool.
9449 (auto_load_pspace_data): Change type.
9450 (~auto_load_pspace_info): Rename from
9451 auto_load_pspace_data_cleanup.
9452 (get_auto_load_pspace_data, init_loaded_scripts_info)
9453 (clear_section_scripts, maybe_print_unsupported_script_warning)
9454 (maybe_print_script_not_found_warning, _initialize_auto_load):
9455 Update.
9456
9457 2019-05-08 Tom Tromey <tom@tromey.com>
9458
9459 * objfiles.c (objfile_pspace_info): Add destructor and
9460 initializers.
9461 (objfiles_pspace_data): Change type.
9462 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9463 (get_objfile_pspace_data): Update.
9464 (objfiles_bfd_data): Change type.
9465 (get_objfile_bfd_data): Update.
9466 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9467
9468 2019-05-08 Tom Tromey <tom@tromey.com>
9469
9470 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9471 Change type.
9472 (get_catch_syscall_inferior_data): Update.
9473 (catch_syscall_inferior_data_cleanup): Remove.
9474 (_initialize_break_catch_syscall): Update.
9475
9476 2019-05-08 Tom Tromey <tom@tromey.com>
9477
9478 * inflow.c (struct terminal_info): Add destructor and
9479 initializers.
9480 (inflow_inferior_data): Change type.
9481 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9482 (get_inflow_inferior_data, inflow_inferior_exit)
9483 (swap_terminal_info, _initialize_inflow): Update.
9484
9485 2019-05-08 Tom Tromey <tom@tromey.com>
9486
9487 * target-dcache.c (target_dcache_cleanup): Remove.
9488 (target_dcache_aspace_key): Change type.
9489 (target_dcache_init_p, target_dcache_invalidate)
9490 (target_dcache_get, target_dcache_get_or_init)
9491 (_initialize_target_dcache): Update.
9492 * dcache.h (struct dcache_deleter): New.
9493
9494 2019-05-08 Tom Tromey <tom@tromey.com>
9495
9496 * symtab.c (struct symbol_cache): Add destructor and
9497 initializers.
9498 (symbol_cache_key): Move. Change type.
9499 (make_symbol_cache, free_symbol_cache): Remove.
9500 (get_symbol_cache): Update.
9501 (symbol_cache_cleanup): Remove.
9502 (ALL_PSPACES, symbol_cache_flush)
9503 (maintenance_print_symbol_cache)
9504 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9505 Update.
9506
9507 2019-05-08 Tom Tromey <tom@tromey.com>
9508
9509 * symtab.c (struct main_info): Add destructor and initializers.
9510 (main_progspace_key): Move. Change type.
9511 (get_main_info): Update.
9512 (main_info_cleanup): Remove.
9513 (_initialize_symtab): Update.
9514
9515 2019-05-08 Tom Tromey <tom@tromey.com>
9516
9517 * registry.h (DECLARE_REGISTRY): Define the _key class.
9518
9519 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9520
9521 * NEWS: Merge two 'New commands' sections.
9522
9523 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9524
9525 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9526 parameter and use Ada language definition instead.
9527 (ada_val_print_ptr): Remove unused language parameter.
9528 (ada_val_print_num): Remove language parameter and use Ada language
9529 definition instead.
9530 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9531 parameter.
9532 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9533 parameter and use Ada language definition instead.
9534 (ada_val_print_1): Update all ada_val_print_xxx calls.
9535 Remove language parameter.
9536 (ada_val_print): Update ada_val_print_1 call.
9537
9538 2019-05-08 Tom Tromey <tromey@adacore.com>
9539
9540 * remote.c (remote_hw_watchpoint_limit)
9541 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9542 Now static.
9543
9544 2019-05-08 Tom Tromey <tromey@adacore.com>
9545
9546 * maint.c (_initialize_maint_cmds): Move initialization code to
9547 remote.c.
9548 (watchdog, show_watchdog): Move to remote.c.
9549 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9550 "watchdog" static.
9551 (_initialize_remote): Move initialization code from maint.c.
9552 * defs.h (watchdog): Don't declare.
9553
9554 2019-05-08 Tom Tromey <tromey@adacore.com>
9555
9556 * tui/tui-interp.c: Include main.h.
9557 * interps.c: Include main.h.
9558 * main.h (interpreter_p): Declare.
9559 * defs.h (interpreter_p): Don't declare.
9560
9561 2019-05-08 Tom Tromey <tromey@adacore.com>
9562
9563 * dwarf2loc.c: Include dwarf2read.h.
9564 * defs.h (read_unsigned_leb128): Don't declare.
9565 * dwarf2read.h (read_unsigned_leb128): Declare.
9566
9567 2019-05-08 Tom Tromey <tromey@adacore.com>
9568
9569 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9570 method.
9571
9572 2019-05-08 Tom Tromey <tromey@adacore.com>
9573
9574 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9575 when no wrap column is set.
9576
9577 2019-05-08 Tom Tromey <tromey@adacore.com>
9578
9579 * c-lang.c (c_get_string): Handle non-C-style arrays.
9580
9581 2019-05-08 Tom Tromey <tromey@adacore.com>
9582
9583 * typeprint.c (print_offset_data::update): Print the bit offset,
9584 not the number of bits remaining.
9585
9586 2019-05-08 Tom Tromey <tromey@adacore.com>
9587
9588 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9589 padding at end of comment.
9590
9591 2019-05-08 Tom Tromey <tromey@adacore.com>
9592
9593 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9594 Compare main types.
9595
9596 2019-05-06 Tom Tromey <tom@tromey.com>
9597
9598 * common/scoped_mmap.c: Include common-defs.h.
9599 * common/scoped_mmap.h: Don't include config.h.
9600
9601 2019-05-04 Tom Tromey <tom@tromey.com>
9602
9603 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9604 (struct aarch64_call_info): Add initializers.
9605 <si>: Now a std::vector.
9606 (pass_on_stack, aarch64_push_dummy_call): Update.
9607
9608 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9609 Tom Tromey <tom@tromey.com>
9610
9611 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9612 (ppc_threads): Now a std::vector. Now static.
9613 (hwdebug_find_thread_points_by_tid)
9614 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9615 Update.
9616
9617 2019-05-04 Tom Tromey <tom@tromey.com>
9618
9619 * arc-tdep.c (arc_tdesc_init): Return bool.
9620
9621 2019-05-04 Tom Tromey <tom@tromey.com>
9622
9623 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9624 Use gdb_assert_not_reached.
9625
9626 2019-05-04 Tom Tromey <tom@tromey.com>
9627
9628 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9629 "false".
9630
9631 2019-05-04 Tom Tromey <tom@tromey.com>
9632
9633 * arc-tdep.c (arc_tdesc_init): Use bool.
9634
9635 2019-05-04 Tom Tromey <tom@tromey.com>
9636
9637 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9638
9639 2019-05-04 Tom Tromey <tom@tromey.com>
9640
9641 * cli/cli-cmds.c (valid_command_p): Return bool.
9642
9643 2019-05-04 Tom Tromey <tom@tromey.com>
9644
9645 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9646 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9647
9648 2019-05-04 Raul Tambre <raul@tambre.ee>
9649
9650 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9651 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9652 operator for comparison.
9653
9654 2019-05-04 Tom Tromey <tom@tromey.com>
9655
9656 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9657 (lookup_partial_symbol, print_partial_symbols)
9658 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9659 (psymbol_compare): Update.
9660 (add_psymbol_to_bcache): Clear the entire psymbol.
9661 (maintenance_check_psymtabs): Update.
9662 * psympriv.h (struct partial_symbol): Don't derive from
9663 general_symbol_info.
9664 <obj_section, unrelocated_address, address,
9665 set_unrelocated_address>: Update.
9666 <ginfo>: New member.
9667 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9668 (debug_names::write_psymbols): Update.
9669
9670 2019-05-04 Tom de Vries <tdevries@suse.de>
9671
9672 * contrib/cc-with-tweaks.sh: Support -n arg.
9673
9674 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9675
9676 * corelow.c (core_target::detach): Ensure frame cache and
9677 register caches are cleared.
9678 inferior.c (exit_inferior_1): Likewise.
9679
9680 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9681 Tom Tromey <tom@tromey.com>
9682
9683 * dictionary.c (collate_pending_symbols_by_language): Remove
9684 "struct" from foreach.
9685 * symtab.c (lookup_global_symbol_from_objfile)
9686 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9687 foreach.
9688 * ser-tcp.c (net_open): Remove "struct" from foreach.
9689 * objfiles.c (objfile_relocate, objfile_rebase)
9690 (objfile_has_symbols): Remove "struct" from foreach.
9691 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9692 from foreach.
9693 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9694 foreach.
9695 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9696 "struct" from foreach.
9697 * ada-lang.c (create_excep_cond_exprs)
9698 (ada_exception_catchpoint_cond_string): Remove "struct" from
9699 foreach.
9700
9701 2019-05-03 Tom Tromey <tromey@adacore.com>
9702
9703 * ada-exp.y (convert_char_literal): Check suffix of each
9704 enumerator.
9705
9706 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9707
9708 PR ada/21406:
9709 * ada-exp.y (yywrap): Don't define.
9710 * ada-lex.l (%option): Add noyywrap
9711 (yywrap): Remove.
9712
9713 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9714
9715 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9716 _WIN32_WINNT to the XP level, unless already defined to a higher
9717 level.
9718
9719 * unittests/parse-connection-spec-selftests.c:
9720 * ser-tcp.c:
9721 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9722 override.
9723
9724 * symfile.c (find_separate_debug_file): Remove colon from the
9725 drive spec of DOS/Windows file names of the target, so that the
9726 file name produced from DEBUGDIR and the target's directory will
9727 be valid on DOS/Windows systems.
9728
9729 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9730
9731 * rust-lang.c (val_print_struct): Handle printing structures
9732 containing strings.
9733
9734 2019-05-02 Tom Tromey <tromey@adacore.com>
9735
9736 * valarith.c (_initialize_valarith): Remove.
9737
9738 2019-05-01 Tom Tromey <tromey@adacore.com>
9739
9740 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9741 bitfields.
9742
9743 2019-05-01 Tom Tromey <tromey@adacore.com>
9744
9745 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9746 for big-endian copies.
9747
9748 2019-04-30 Ali Tamur <tamur@google.com>
9749 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9750 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9751 (read_3_bytes): New function.
9752
9753 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9754
9755 * windows-nat.c (main_thread_id): Delete.
9756 (handle_output_debug_string): Replace main_thread_id by
9757 current_event.dwThreadId.
9758 (fake_create_process): Likewise.
9759 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9760 Do not set main_thread_id.
9761 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9762 current_event.dwThreadId.
9763 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9764
9765 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9766
9767 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9768 Use current_event.dwThreadId instead of main_thread_id.
9769
9770 2019-04-30 Tom Tromey <tromey@adacore.com>
9771
9772 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9773 (create_excep_cond_exprs): Iterate over program spaces.
9774 (ada_exception_catchpoint_cond_string): Examine all minimal
9775 symbols for exception types.
9776
9777 2019-04-30 Tom Tromey <tromey@adacore.com>
9778
9779 PR c++/24470:
9780 * dwarf2read.c (process_structure_scope): Handle case where type
9781 has template parameters but no symbol was created.
9782
9783 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9784 Chris January <chris.january@arm.com>
9785
9786 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9787 qualifier.
9788 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9789
9790 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9791
9792 * f-typeprint.c (f_print_type): Update rules for printing
9793 whitespace.
9794 (f_type_print_varspec_suffix): Likewise.
9795
9796 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9797 Chris January <chris.january@arm.com>
9798
9799 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9800 function arguments.
9801
9802 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 * f-lang.c (build_fortran_types): Change name of void type to
9805 lower case.
9806 * f-typeprint.c (f_type_print_base): Print the name of the void
9807 type, rather than a fixed string.
9808 * f-valprint.c (f_decorations): Use lower case void string.
9809
9810 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9811 Chris January <chris.january@arm.com>
9812
9813 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9814 types for Fortran.
9815
9816 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9817 Chris January <chris.january@arm.com>
9818 David Lecomber <david.lecomber@arm.com>
9819
9820 * f-exp.y (BINOP_INTRINSIC): New token.
9821 (exp): New parser rule handling BINOP_INTRINSIC.
9822 (f77_keywords): Add new builtin procedures.
9823 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9824 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9825 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9826 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9827 (print_unop_subexp_f): New function.
9828 (print_binop_subexp_f): New function.
9829 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9830 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9831 (dump_subexp_body_f): Likewise.
9832 (operator_check_f): Likewise.
9833 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9834 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9835
9836 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9839 UNOP_KIND.
9840 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9841 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9842 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9843 (operator_length_f): New fuction.
9844 (print_subexp_f): New function.
9845 (op_name_f): New function.
9846 (dump_subexp_body_f): New function.
9847 (operator_check_f): New function.
9848 (exp_descriptor_f): Replace standard expression handling functions
9849 with new functions.
9850 * gdb/fortran-operator.def: New file.
9851 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9852 * gdb/std-operator.def: Remove UNOP_KIND.
9853
9854 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9855
9856 * std-operator.def: Remove unbalanced, stray double quote
9857 character.
9858
9859 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9860 Chris January <chris.january@arm.com>
9861 Daniel Everett <daniel.everett@arm.com>
9862 Nick Forrington <nick.forrington@arm.com>
9863 Richard Bunt <richard.bunt@arm.com>
9864
9865 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9866 of depth when printing anonymous structs or unions.
9867 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9868 Don't print either the top-level value, or the children if the
9869 max-depth is exceeded.
9870 (ppscm_print_children): When printing the key of a map, allow one
9871 extra level of depth.
9872 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9873 print either the top-level value, or the children if the max-depth
9874 is exceeded.
9875 (print_children): When printing the key of a map, allow one extra
9876 level of depth.
9877 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9878 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9879 (user_print_options): Initialise max_depth field.
9880 (val_print_scalar_or_string_type_p): New function.
9881 (val_print): Check to see if the max depth has been reached.
9882 (val_print_check_max_depth): Define new function.
9883 (show_print_max_depth): New function.
9884 (_initialize_valprint): Add 'print max-depth' option.
9885 * valprint.h (struct value_print_options) <max_depth>: New field.
9886 (val_print_check_max_depth): Declare new function.
9887 * NEWS: Document new feature.
9888
9889 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9890
9891 * ada-lang.c (ada_language_defn): Initialise new field.
9892 * c-lang.c (c_is_string_type_p): New function.
9893 (c_language_defn): Initialise new field.
9894 (cplus_language_defn): Initialise new field.
9895 (asm_language_defn): Initialise new field.
9896 (minimal_language_defn): Initialise new field.
9897 * c-lang.h (c_is_string_type_p): Declare new function.
9898 * d-lang.c (d_language_defn): Initialise new field.
9899 * f-lang.c (f_is_string_type_p): New function.
9900 (f_language_defn): Initialise new field.
9901 * go-lang.c (go_is_string_type_p): New function.
9902 (go_language_defn): Initialise new field.
9903 * language.c (default_is_string_type_p): New function.
9904 (unknown_language_defn): Initialise new field.
9905 (auto_language_defn): Initialise new field.
9906 * language.h (struct language_defn) <la_is_string_type_p>: New
9907 member variable.
9908 (default_is_string_type_p): Declare new function.
9909 * m2-lang.c (m2_language_defn): Initialise new field.
9910 * objc-lang.c (objc_language_defn): Initialise new field.
9911 * opencl-lang.c (opencl_language_defn): Initialise new field.
9912 * p-lang.c (pascal_is_string_type_p): New function.
9913 (pascal_language_defn): Initialise new field.
9914 * rust-lang.c (rust_is_string_type_p): New function.
9915 (rust_language_defn): Initialise new field.
9916
9917 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9918
9919 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9920 New field.
9921 * ada-lang.c (ada_language_defn): Initialise new field.
9922 * c-lang.c (c_language_defn): Likewise.
9923 (cplus_language_defn): Likewise.
9924 (asm_language_defn): Likewise.
9925 (minimal_language_defn): Likewise.
9926 * d-lang.c (d_language_defn): Likewise.
9927 * f-lang.c (f_language_defn): Likewise.
9928 * go-lang.c (go_language_defn): Likewise.
9929 * language.c (unknown_language_defn): Likewise.
9930 (auto_language_defn): Likewise.
9931 * m2-lang.c (m2_language_defn): Likewise.
9932 * objc-lang.c (objc_language_defn): Likewise.
9933 * opencl-lang.c (opencl_language_defn): Likewise.
9934 * p-lang.c (pascal_language_defn): Likewise.
9935 * rust-lang.c (rust_language_defn): Likewise.
9936
9937 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * ada-lang.c (ada_is_character_type): Change return type to bool.
9940 (ada_is_string_type): Likewise.
9941 * ada-lang.h (ada_is_character_type): Update declaration
9942 (ada_is_string_type): Likewise.
9943
9944 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9945
9946 Support style in 'frame|thread apply'
9947
9948 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9949 * record.c (record_start, record_stop): Update callers of
9950 execute_command_to_string with false.
9951 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9952 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9953 methods.
9954 (class string_file): New constructor with term_out parameter.
9955 Override methods term_out and can_emit_style_escape. New member
9956 term_out.
9957 (class stdio_file): Override can_emit_style_escape.
9958 (class tee_file): Override term_out and can_emit_style_escape.
9959 * utils.h (can_emit_style_escape): Remove.
9960 * utils.c (can_emit_style_escape): Likewise.
9961 Update all callers of can_emit_style_escape (SOMESTREAM) to
9962 SOMESTREAM->can_emit_style_escape.
9963 * source-cache.c (source_cache::get_source_lines): Likewise.
9964 * stack.c (frame_apply_command_count): Call execute_command_to_string
9965 passing the term_out characteristic of the current gdb_stdout.
9966 * thread.c (thr_try_catch_cmd): Likewise.
9967 * top.c (execute_command_to_string): pass term_out parameter
9968 to construct the string_file for the command output.
9969 * ui-file.c (term_cli_styling): New function (most code moved
9970 from utils.c can_emit_style_escape).
9971 (string_file::string_file, string_file::can_emit_style_escape,
9972 stdio_file::can_emit_style_escape, tee_file::term_out,
9973 tee_file::can_emit_style_escape): New functions.
9974
9975 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9976
9977 * NEWS: Mention the new set|show may-call-functions.
9978 * infcall.c (may_call_functions_p): New variable.
9979 (show_may_call_functions_p): New function.
9980 (call_function_by_hand_dummy): Throws an error if not
9981 may-call-functions.
9982 (_initialize_infcall): Call add_setshow_boolean_cmd for
9983 may-call-functions.
9984
9985 2019-04-25 Keith Seitz <keiths@redhat.com>
9986
9987 PR c++/24367
9988 * cp-support.c (inspect_type): Don't attempt substitutions
9989 of symbol with the same name.
9990
9991 2019-04-25 Tom Tromey <tromey@adacore.com>
9992
9993 PR gdb/24475:
9994 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9995 static.
9996
9997 2019-04-25 Tom Tromey <tromey@adacore.com>
9998
9999 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10000 rvalue reference.
10001 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10002 (gdb_xml_parser::parse): Use std::move.
10003 * python/python-internal.h (gdbpy_convert_exception): Take a const
10004 reference.
10005 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10006 std::move.
10007 * python/py-utils.c (gdbpy_convert_exception): Take a const
10008 reference.
10009 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10010 Use std::move.
10011 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10012 Use std::move.
10013 * mi/mi-main.c (mi_print_exception): Take a const reference.
10014 * main.c (handle_command_errors): Take a const reference.
10015 * linespec.c (parse_linespec): Use std::move.
10016 * infcall.c (run_inferior_call): Use std::move.
10017 (call_function_by_hand_dummy): Use std::move.
10018 * exec.c (try_open_exec_file): Use std::move.
10019 * exceptions.h (exception_print, exception_fprintf)
10020 (exception_print_same): Update.
10021 * exceptions.c (print_exception, exception_print)
10022 (exception_fprintf, exception_print_same): Change parameters to
10023 const reference.
10024 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10025 * common/new-op.c: Use std::move.
10026 * common/common-exceptions.h (struct gdb_exception): Add move
10027 constructor.
10028 (struct gdb_exception_error, struct gdb_exception_quit, struct
10029 gdb_quit_bad_alloc): Change constructor to move constructor.
10030 (throw_exception): Change parameter to rvalue reference.
10031 * common/common-exceptions.c (throw_exception): Take rvalue
10032 reference.
10033 * cli/cli-interp.c (safe_execute_command): Use std::move.
10034 * breakpoint.c (insert_bp_location, location_to_sals): Use
10035 std::move.
10036
10037 2019-04-25 Tom Tromey <tromey@adacore.com>
10038
10039 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10040 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10041 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10042 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10043 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10044 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10045 guile/scm-value.c: Use unpack.
10046 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10047 gdbscm_gdb_exception.
10048 (gdbscm_throw_gdb_exception): Likewise.
10049 (struct gdbscm_gdb_exception): New.
10050 (unpack): New function.
10051 (gdbscm_wrap): Use unpack.
10052
10053 2019-04-25 Tom Tromey <tromey@adacore.com>
10054
10055 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10056 (gdb_rl_callback_handler): Use std::move.
10057 * common/common-exceptions.h (struct gdb_exception): Add move
10058 assignment operator.
10059 (throw_exception_sjlj): Change "exception" to const reference.
10060 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10061 (throw_exception_sjlj): Change "exception" to const reference.
10062
10063 2019-04-25 Tom Tromey <tromey@adacore.com>
10064
10065 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10066 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10067 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10068 Update.
10069 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10070 Update.
10071 * mi/mi-interp.c (mi_interp::exec): Update.
10072 * linespec.c (parse_linespec): Update.
10073 * infcall.c (run_inferior_call): Update.
10074 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10075 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10076 (gdbscm_lookup_global_symbol): Update.
10077 * guile/scm-param.c (gdbscm_parameter_value): Update.
10078 * guile/scm-frame.c (gdbscm_frame_read_register)
10079 (gdbscm_frame_read_var): Update.
10080 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10081 * exec.c (try_open_exec_file): Update.
10082 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10083 (gdb_rl_callback_handler): Update.
10084 * common/common-exceptions.h (exception_none): Don't declare.
10085 * common/common-exceptions.c (exception_none): Don't define.
10086 (struct catcher) <exception>: Update.
10087 * cli/cli-interp.c (safe_execute_command): Update.
10088 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10089
10090 2019-04-25 Ali Tamur <tamur@google.com>
10091
10092 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10093 (read_attribute_value): Likewise.
10094 (dwarf2_read_addr_index): Update comment.
10095 (read_str_index): Add DW_FORM_strx.
10096 (dwarf2_string_attr): Likewise.
10097 (dwarf2_const_value_attr): Likewise.
10098 (dump_die_shallow): Likewise.
10099 (dwarf2_fetch_constant_bytes): Likewise.
10100 (skip_form_bytes): Likewise.
10101 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10102
10103 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10104
10105 PR corefiles/11608
10106 PR corefiles/18187
10107 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10108 OFFSET. Verify if current mapping contains an ELF header.
10109 (linux_find_memory_regions_full): Adjust call to
10110 dump_mapping_p.
10111
10112 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10113 Kang Li <kanglictf@gmail.com>
10114
10115 PR gdb/21600
10116
10117 * dwarf2-frame.c (read_initial_length): Be consistent about using
10118 unsigned representation of length.
10119 (decode_frame_entry_1): Likewise. Check for wraparound of
10120 end pointer as well as buffer overflow.
10121
10122 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10123
10124 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10125 "vq".
10126
10127 2019-04-24 Tom Tromey <tromey@adacore.com>
10128
10129 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10130
10131 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * s12z-tdep.c (s12z_unwind_pc): Delete.
10134 (s12z_unwind_sp): Delete.
10135 (s12z_gdbarch_init): Don't register deleted functions with
10136 gdbarch.
10137
10138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * rl78-tdep.c (rl78_unwind_sp): Delete.
10141 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10142
10143 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10144
10145 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10146 (xstormy16_unwind_pc): Delete.
10147 (xstormy16_dummy_id): Delete.
10148 (xstormy16_gdbarch_init): Don't register deleted functions with
10149 gdbarch.
10150
10151 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10152
10153 * vax-tdep.c (vax_unwind_pc): Delete.
10154 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10155
10156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10157
10158 * v850-tdep.c (v850_unwind_sp): Delete.
10159 (v850_unwind_pc): Delete.
10160 (v850_dummy_id): Delete.
10161 (v850_gdbarch_init): Don't register deleted functions with
10162 gdbarch.
10163
10164 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10165
10166 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10167 (tilegx_unwind_pc): Delete.
10168 (tilegx_unwind_dummy_id): Delete.
10169 (tilegx_gdbarch_init): Don't register deleted functions with
10170 gdbarch.
10171
10172 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10175 (tic6x_dummy_id): Delete.
10176 (tic6x_gdbarch_init): Don't register deleted functions with
10177 gdbarch.
10178
10179 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10180
10181 * sparc-tdep.c (sparc_unwind_pc): Delete.
10182 (sparc32_gdbarch_init): Don't register deleted function with
10183 gdbarch.
10184
10185 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10186
10187 * sh-tdep.c (sh_unwind_sp): Delete.
10188 (sh_unwind_pc): Delete.
10189 (sh_dummy_id): Delete.
10190 (sh_gdbarch_init): Don't register deleted functions with
10191 gdbarch.
10192
10193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * score-tdep.c (score_unwind_sp): Delete.
10196 (score_unwind_pc): Delete.
10197 (score_dummy_id): Delete.
10198 (score_gdbarch_init): Don't register deleted functions with
10199 gdbarch.
10200
10201 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * rx-tdep.c (rx_unwind_pc): Delete.
10204 (rx_unwind_sp): Delete.
10205 (rx_dummy_id): Delete.
10206 (rx_gdbarch_init): Don't register deleted functions with
10207 gdbarch. Update comment.
10208
10209 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10210
10211 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10212 (rs6000_dummy_id): Delete.
10213 (rs6000_gdbarch_init): Don't register deleted functions with
10214 gdbarch.
10215
10216 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10217
10218 * or1k-tdep.c (or1k_dummy_id): Delete.
10219 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10220
10221 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * nios2-tdep.c (nios2_dummy_id): Delete.
10224 (nios2_unwind_sp): Delete.
10225 (nios2_gdbarch_init): Don't register deleted functions with
10226 gdbarch.
10227
10228 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10229
10230 * nds32-tdep.c (nds32_dummy_id): Delete.
10231 (nds32_unwind_pc): Delete.
10232 (nds32_unwind_sp): Delete.
10233 (nds32_gdbarch_init): Don't register deleted functions with
10234 gdbarch.
10235
10236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * msp430-tdep.c (msp430_unwind_pc): Delete.
10239 (msp430_unwind_sp): Delete.
10240 (msp430_dummy_id): Delete.
10241 (msp430_gdbarch_init): Don't register deleted functions with
10242 gdbarch.
10243
10244 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * moxie-tdep.c (moxie_unwind_sp): Delete.
10247 (moxie_unwind_pc): Delete.
10248 (moxie_dummy_id): Delete.
10249 (moxie_gdbarch_init): Don't register deleted functions with
10250 gdbarch.
10251
10252 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10253
10254 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10255 (mn10300_unwind_pc): Delete.
10256 (mn10300_unwind_sp): Delete.
10257 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10258 mn10300_unwind_sp.
10259 (mn10300_frame_unwind_init): Don't register deleted functions with
10260 gdbarch.
10261
10262 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10263
10264 * mep-tdep.c (mep_unwind_pc): Delete.
10265 (mep_unwind_sp): Delete.
10266 (mep_dummy_id): Delete.
10267 (mep_gdbarch_init): Don't register deleted functions with
10268 gdbarch.
10269
10270 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10273 (m68hc11_unwind_sp): Delete.
10274 (m68hc11_gdbarch_init): Don't register deleted functions with
10275 gdbarch.
10276
10277 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * m32r-tdep.c (m32r_unwind_sp): Delete.
10280 (m32r_unwind_pc): Delete.
10281 (m32r_dummy_id): Delete.
10282 (m32r_gdbarch_init): Don't register deleted functions with
10283 gdbarch.
10284
10285 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10286
10287 * m32c-tdep.c (m32c_unwind_pc): Delete.
10288 (m32c_unwind_sp): Delete.
10289 (m32c_dummy_id): Delete.
10290 (m32c_gdbarch_init): Don't register deleted functions with
10291 gdbarch.
10292
10293 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10296 (lm32_unwind_pc): Delete.
10297 (lm32_dummy_id): Delete.
10298 (lm32_gdbarch_init): Don't register deleted functions with
10299 gdbarch.
10300
10301 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10302
10303 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10304 (iq2000_unwind_pc): Delete.
10305 (iq2000_dummy_id): Delete.
10306 (iq2000_gdbarch_init): Don't register deleted functions with
10307 gdbarch.
10308
10309 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10310
10311 * nds32-tdep.c (nds32_type_align): Delete.
10312 (nds32_push_dummy_call): Use type_align instead.
10313
10314 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * arm-tdep.c (arm_type_align): Only handle vector override case.
10317 (arm_push_dummy_call): Use type_align.
10318 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10319
10320 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10321
10322 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10323 case.
10324 (pass_on_stack): Use type_align.
10325 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10326 function.
10327
10328 2019-04-23 Tom Tromey <tromey@adacore.com>
10329
10330 * dwarf2read.c (line_header::file_name_at): Remove unused
10331 overload.
10332
10333 2019-04-23 Tom de Vries <tdevries@suse.de>
10334
10335 PR gdb/24438
10336 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10337 invocation.
10338
10339
10340 2019-03-27 Ali Tamur <tamur@google.com>
10341
10342 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10343 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10344 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10345 (dwarf_expr_context::get_addr_index): Likewise
10346 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10347 (symbol_needs_eval_context::get_addr_index): Likewise
10348 (disassemble_dwarf_expression): Add DW_OP_addrx
10349 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10350 (read_cutu_die_from_dwo): Update comment
10351 (skip_one_die): Add DW_FORM_addrx
10352 (read_attribute_value): Likewise
10353 (var_decode_location): Add DW_OP_addrx
10354 (dwarf2_const_value_attr): Add DW_FORM_addrx
10355 (dump_die_shallow): Likewise
10356 (dwarf2_fetch_constant_bytes): Likewise
10357 (decode_locdesc): Add DW_OP_addrx
10358 (skip_form_bytes): Add DW_FORM_addrx
10359
10360 2019-04-22 Ali Tamur <tamur@google.com>
10361
10362 * MAINTAINERS (Write After Approval): Add self.
10363
10364 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10367 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10368 (open_symbol_file_object): Likewise.
10369 (svr4_default_sos): Add info parameter.
10370 (svr4_read_so_list): Likewise.
10371 (svr4_current_sos_direct): Adjust functions calls to pass down
10372 info.
10373 (svr4_current_sos_1): Add info parameter.
10374 (svr4_current_sos): Call get_svr4_info, pass info down to
10375 svr4_current_sos_1.
10376 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10377 get_svr4_info.
10378 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10379 get_svr4_info.
10380 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10381 to get_svr4_info.
10382 (probes_table_remove_objfile_probes): Likewise.
10383 (register_solib_event_probe): Add info parameter.
10384 (solist_update_incremental): Pass info parameter down to
10385 svr4_read_so_list.
10386 (disable_probes_interface): Add info parameter.
10387 (svr4_handle_solib_event): Pass current_program_space to
10388 get_svr4_info. Adjust disable_probes_interface cleanup.
10389 (svr4_create_probe_breakpoints): Add info parameter, pass it
10390 down to register_solib_event_probe.
10391 (svr4_create_solib_event_breakpoints): Add info parameter,
10392 pass it down to svr4_create_probe_breakpoints.
10393 (enable_break): Pass info down to
10394 svr4_create_solib_event_breakpoints.
10395 (svr4_solib_create_inferior_hook): Pass current_program_space to
10396 get_svr4_info.
10397 (svr4_clear_solib): Likewise.
10398
10399 2019-04-22 Pedro Alves <palves@redhat.com>
10400
10401 * solib-svr4.c (svr4_free_objfile_observer): New.
10402 (probe_and_action::objfile): New field.
10403 (probes_table_htab_remove_objfile_probes)
10404 (probes_table_remove_objfile_probes): New functions.
10405 (register_solib_event_probe): Add 'objfile' parameter. Store it
10406 in the new probe_and_action. Don't store the probe in 'lookup'.
10407 (svr4_create_probe_breakpoints): Pass objfile to
10408 register_solib_event_probe.
10409 (_initialize_svr4_solib): Register a free_objfile observer.
10410
10411 2019-04-19 Tom Tromey <tom@tromey.com>
10412
10413 * common/queue.h: Remove.
10414
10415 2019-04-19 Tom Tromey <tom@tromey.com>
10416
10417 * event-loop.c: Don't include "common/queue.h".
10418
10419 2019-04-19 Tom Tromey <tom@tromey.com>
10420
10421 * remote.c (remote_target): Use delete.
10422 * remote-notif.h: Include <list>, not "common/queue.h".
10423 (notif_client_p): Remove typedef.
10424 (remote_notif_state): Add constructor, destructor, initializer.
10425 <notif_queue>: Now a std::list.
10426 (remote_notif_state_xfree): Don't declare.
10427 * remote-notif.c (remote_notif_process, handle_notification)
10428 (remote_notif_state_allocate): Update.
10429 (~remote_notif_state): Rename from remote_notif_state_xfree.
10430
10431 2019-04-19 Tom Tromey <tom@tromey.com>
10432
10433 * symfile.c (reread_symbols): Update.
10434 * objfiles.c (objfile_register_static_link)
10435 (objfile_lookup_static_link): Update
10436 (~objfile) Don't delete static_links.
10437 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10438
10439 2019-04-19 Tom Tromey <tom@tromey.com>
10440
10441 * type-stack.h (struct type_stack) <insert>: Constify string.
10442 * type-stack.c (type_stack::insert): Constify string.
10443 * gdbtypes.h (lookup_template_type): Update.
10444 (address_space_name_to_int): Update.
10445 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10446 const.
10447 (lookup_template_type): Make name const.
10448 * c-exp.y: Update rules.
10449 (lex_one_token, classify_name, classify_inner_name)
10450 (c_print_token): Update.
10451 * p-exp.y: Update rules.
10452 (yylex): Update.
10453 * f-exp.y: Update rules.
10454 (yylex): Update.
10455 * d-exp.y: Update rules.
10456 (lex_one_token, classify_name, classify_inner_name): Update.
10457 * parse.c (write_dollar_variable, copy_name): Return std::string.
10458 * parser-defs.h (copy_name): Change return type.
10459 * m2-exp.y: Update rules.
10460 (yylex): Update.
10461 * go-exp.y (lex_one_token): Update.
10462 Update rules.
10463 (classify_unsafe_function, classify_packaged_name)
10464 (classify_name, yylex): Update.
10465
10466 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10467
10468 * configure.ac: add --enable-source-highlight switch.
10469 * configure: Regenerate.
10470 * top.c (print_gdb_version): plumb --enable-source-highlight
10471 status to "show configuration".
10472
10473 2019-04-19 Tom Tromey <tromey@adacore.com>
10474
10475 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10476 Check ADA_TYPE_P.
10477 (empty_record, ada_template_to_fixed_record_type_1)
10478 (template_to_static_fixed_type)
10479 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10480 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10481 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10482 macros.
10483
10484 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10485
10486 PR symtab/24423:
10487 * source.c (print_source_lines_base): Advance "iter" when a
10488 control character is seen.
10489
10490 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10491
10492 * inferior.h (struct infcall_suspend_state_deleter):
10493 Catch exception in destructor to avoid crash.
10494
10495 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10496
10497 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10498 close to the add_com "shell".
10499
10500 2019-04-18 Tom Tromey <tromey@adacore.com>
10501
10502 * process-stratum-target.h (class process_stratum_target)
10503 <stratum>: Add "final".
10504
10505 2019-04-17 Tom Tromey <tromey@adacore.com>
10506
10507 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10508 against nullptr before use.
10509
10510 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10511
10512 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10513
10514 2019-04-17 Jim Wilson <jimw@sifive.com>
10515 Andrew Burgess <andrew.burgess@embecosm.com>
10516
10517 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10518 code read might fail, assume 4-byte breakpoint in that case.
10519
10520 2019-04-15 Leszek Swirski <leszeks@google.com>
10521
10522 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10523 rather than a hand-rolled POD check when checking for forced MEMORY
10524 classification.
10525
10526 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10527
10528 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10529 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10530 function.
10531 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10532 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10533 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10534 declaration.
10535
10536 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10537
10538 * aarch64-linux-nat.c
10539 (aarch64_linux_nat_target::thread_architecture): Add override.
10540 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10541 each VQ.
10542
10543 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10544
10545 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10546
10547 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10548
10549 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10550 target types of size 96-bits, add some additional comments, and
10551 check that the builtin type we found was the correct size.
10552
10553 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10554
10555 * utils.c (prompt_for_continue): Don't restore the styling at the
10556 end, as applied_style has the wrong value. This fixes styling in
10557 long lists of file names that are interrupted by the "Continue?"
10558 prompt.
10559
10560 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10561
10562 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10563 * c-lang.c (c_language_defn): Likewise.
10564 (cplus_language_defn): Likewise.
10565 (asm_language_defn): Likewise.
10566 (minimal_language_defn): Likewise.
10567 * d-lang.c (d_language_defn): Likewise.
10568 * f-lang.c (f_language_defn): Likewise.
10569 * go-lang.c (go_language_defn): Likewise.
10570 * language.c (unknown_language_defn): Likewise.
10571 (auto_language_defn): Likewise.
10572 * language.h (struct language_defn): Remove la_magic field.
10573 (LANG_MAGIC): Delete.
10574 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10575 * objc-lang.c (objc_language_defn): Likewise.
10576 * opencl-lang.c (opencl_language_defn): Likewise.
10577 * p-lang.c (pascal_language_defn): Likewise.
10578 * rust-lang.c (rust_language_defn): Likewise.
10579
10580 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10581
10582 * riscv-tdep.c (riscv_type_align): New function.
10583 (riscv_type_alignment): Delete.
10584 (riscv_arg_location): Use 'type_align'.
10585 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10586
10587 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10588
10589 * gdbtypes.c (type_align): A struct with no non-static fields also
10590 has alignment of 1.
10591
10592 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10593
10594 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10595 component to 0.
10596 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10597 member.
10598 (riscv_struct_info::analyse): New implementation using new
10599 analyse_inner member function.
10600 (riscv_struct_info::field_offset): New member function.
10601 (riscv_struct_info::m_offsets): New member variable.
10602 (riscv_struct_info::analyse_inner): New private member function,
10603 takes the old implementation of riscv_struct_info::analyse but
10604 extended to track field offsets.
10605 (riscv_call_arg_struct): Update the struct folding special cases
10606 to handle cases where empty C++ structs, which are non-zero
10607 length, are found.
10608 (riscv_arg_location): Initialise the length of each location, a
10609 non-zero length now indicates the location is in use.
10610 (riscv_push_dummy_call): Allow for the first location having a
10611 non-zero offset when setting up arguments.
10612 (riscv_return_value): Likewise, but for return values.
10613
10614 2019-04-11 Tom Tromey <tromey@adacore.com>
10615
10616 * utils.c (internal_vproblem): Make "msg" const.
10617
10618 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10619
10620 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10621 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10622 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10623 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10624
10625 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10626
10627 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10628 function.
10629 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10630 of amd64_collect_native_gregset.
10631 (amd64_linux_nat_target::store_registers): Likewise.
10632
10633 2019-04-10 Tom Tromey <tom@tromey.com>
10634
10635 * symtab.c (lookup_global_symbol_from_objfile)
10636 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10637 * objfiles.h (class separate_debug_iterator): New.
10638 (class separate_debug_range): New.
10639 (struct objfile) <separate_debug_objfiles>: New method.
10640 (objfile_separate_debug_iterate): Don't declare.
10641 * objfiles.c (separate_debug_iterator::operator++): Rename from
10642 objfile_separate_debug_iterate.
10643 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10644 iterator.
10645 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10646 iterator.
10647
10648 2019-04-10 Tom Tromey <tom@tromey.com>
10649
10650 * symfile.c (reread_symbols): Remove old comment.
10651 * objfiles.c (free_all_objfiles): Fix a typo.
10652
10653 2019-04-10 Tom Tromey <tom@tromey.com>
10654
10655 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10656 * minsyms.c (lookup_minimal_symbol): Use foreach.
10657 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10658 (lookup_minimal_symbol_solib_trampoline): Likewise.
10659 * symfile.c (reread_symbols): Use foreach.
10660
10661 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10662 Tom Tromey <tromey@adacore.com>
10663
10664 PR rust/24414:
10665 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10666 (rust_lex_int_test): Change "value" to be LONGEST.
10667 (rust_lex_tests): Add test for long integer literal.
10668
10669 2019-04-09 Tom Tromey <tromey@adacore.com>
10670
10671 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10672 to bool.
10673 (extended_remote_target::attach): Update.
10674 (remote_target::remote_notice_new_inferior): Update.
10675 (remote_target::add_current_inferior_and_thread): Update.
10676 * inferior.c (exit_inferior_1): Use "false".
10677 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10678
10679 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10682 the "start" command.
10683
10684 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10685
10686 * python/py-inferior.c (infpy_thread_from_thread_handle):
10687 Adjust comments to reflect renaming of thread_from_thread_handle
10688 to thread_from_handle. Adjust keywords. Fix type error message.
10689 (inferior_object_methods): Add thread_from_handle. Retain
10690 thread_from_thread_handle, but mark it as deprecated.
10691
10692 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10693
10694 * gdbthread.h (find_thread_by_handle): Revise declaration.
10695 * thread.c (find_thread_by_handle): Likewise. Adjust
10696 implementation too.
10697 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10698 support for buffer objects as handles.
10699
10700 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10701
10702 * python/py-infthread.c (thpy_thread_handle): New function.
10703 (thread_object_methods): Register thpy_thread_handle.
10704
10705 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10706
10707 * gdbthread.h (thread_to_thread_handle): Declare.
10708 * thread.c (gdbtypes.h): Include.
10709 (thread_to_thread_handle): New function.
10710
10711 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10712 (target_thread_info_to_thread_handle): Declare.
10713 * target.c (target_thread_info_to_thread_handle): New function.
10714 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10715 * target-delegates.c: Regenerate.
10716
10717 * linux-thread-db.c (class thread_db_target): Add method
10718 thread_info_to_thread_handle.
10719 (thread_db_target::thread_info_to_thread_handle): Define.
10720 * remote.c (class remote_target): Add new method
10721 thread_info_to_thread_handle.
10722 (remote_target::thread_info_to_thread_handle): Define.
10723
10724 2019-04-08 Pedro Alves <palves@redhat.com>
10725
10726 * common/common-exceptions.c (throw_exception): Don't create
10727 named object to throw; throw directly.
10728 (throw_it): Likewise. Don't initialize gdb_exception::message
10729 here, with new; pass FMT and AP to the ctor instead.
10730 * common/common-exceptions.h: Include <string>.
10731 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10732 const char *, va_list)): New ctor. Use std::make_shared.
10733 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10734 errors)): Delete.
10735 (gdb_exception_error::gdb_exception_error(enum errors, const char
10736 *, va_list)): New.
10737 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10738 Add assertion.
10739 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10740 errors)): Delete.
10741 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10742 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10743 Add assertion.
10744
10745 2019-04-08 Tom Tromey <tom@tromey.com>
10746
10747 * valops.c (value_rtti_indirect_type): Replace throw_exception
10748 with throw.
10749 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10750 with throw.
10751 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10752 throw.
10753 * target.c (target_translate_tls_address): Replace throw_exception
10754 with throw.
10755 * stack.c (frame_apply_command_count): Replace throw_exception
10756 with throw.
10757 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10758 throw.
10759 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10760 with throw.
10761 * rs6000-tdep.c (rs6000_frame_cache)
10762 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10763 * remote.c: Replace throw_exception with throw.
10764 * record-full.c (record_full_message, record_full_wait_1)
10765 (record_full_restore): Replace throw_exception with throw.
10766 * record-btrace.c:
10767 (get_thread_current_frame_id, record_btrace_start_replaying)
10768 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10769 (cmd_record_btrace_start): Replace throw_exception with throw.
10770 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10771 throw.
10772 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10773 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10774 * linespec.c:
10775 (find_linespec_symbols): Replace throw_exception with throw.
10776 * infrun.c (displaced_step_prepare, resume): Replace
10777 throw_exception with throw.
10778 * infcmd.c (post_create_inferior): Replace throw_exception with
10779 throw.
10780 * inf-loop.c (inferior_event_handler): Replace throw_exception
10781 with throw.
10782 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10783 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10784 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10785 (get_prev_frame_always, get_frame_pc_if_available)
10786 (get_frame_address_in_block_if_available, get_frame_language):
10787 Replace throw_exception with throw.
10788 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10789 throw_exception with throw.
10790 * eval.c (fetch_subexp_value, evaluate_var_value)
10791 (evaluate_funcall, evaluate_subexp_standard): Replace
10792 throw_exception with throw.
10793 * dwarf2loc.c (call_site_find_chain)
10794 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10795 Replace throw_exception with throw.
10796 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10797 with throw.
10798 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10799 throw.
10800 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10801 * completer.c (complete_line_internal): Replace throw_exception
10802 with throw.
10803 * compile/compile-object-run.c (compile_object_run): Replace
10804 throw_exception with throw.
10805 * cli/cli-script.c (process_next_line): Replace throw_exception
10806 with throw.
10807 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10808 (btrace_enable, btrace_maint_update_pt_packets): Replace
10809 throw_exception with throw.
10810 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10811 throw_exception with throw.
10812 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10813 throw_exception with throw.
10814 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10815 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10816 * aarch64-tdep.c (aarch64_make_prologue_cache)
10817 (aarch64_make_stub_cache): Replace throw_exception with throw.
10818
10819 2019-04-08 Tom Tromey <tom@tromey.com>
10820
10821 * common/common-exceptions.c (throw_exception): Rename from
10822 throw_exception_cxx. Remove old copy. Make argument const.
10823 (throw_it): Create and throw exception objects directly.
10824 * common/common-exceptions.h (throw_exception): Make argument
10825 const.
10826 (struct gdb_exception_error): Add constructor.
10827 (struct gdb_exception_quit): Add constructor.
10828
10829 2019-04-08 Tom Tromey <tom@tromey.com>
10830
10831 * common/common-exceptions.h (exception_rethrow): Don't declare.
10832 (TRY_SJLJ): Update comment.
10833 (TRY, CATCH, END_CATCH): Remove.
10834 * common/common-exceptions.c (exception_rethrow): Remove.
10835
10836 2019-04-08 Tom Tromey <tom@tromey.com>
10837
10838 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10839 Remove.
10840 (gdb_exception_error): Rename from
10841 gdb_exception_RETURN_MASK_ERROR.
10842 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10843 (gdb_quit_bad_alloc): Update.
10844 * aarch64-tdep.c: Update.
10845 * ada-lang.c: Update.
10846 * ada-typeprint.c: Update.
10847 * ada-valprint.c: Update.
10848 * amd64-tdep.c: Update.
10849 * arch-utils.c: Update.
10850 * break-catch-throw.c: Update.
10851 * breakpoint.c: Update.
10852 * btrace.c: Update.
10853 * c-varobj.c: Update.
10854 * cli/cli-cmds.c: Update.
10855 * cli/cli-interp.c: Update.
10856 * cli/cli-script.c: Update.
10857 * common/common-exceptions.c: Update.
10858 * common/new-op.c: Update.
10859 * common/selftest.c: Update.
10860 * compile/compile-c-symbols.c: Update.
10861 * compile/compile-cplus-symbols.c: Update.
10862 * compile/compile-object-load.c: Update.
10863 * compile/compile-object-run.c: Update.
10864 * completer.c: Update.
10865 * corelow.c: Update.
10866 * cp-abi.c: Update.
10867 * cp-support.c: Update.
10868 * cp-valprint.c: Update.
10869 * darwin-nat.c: Update.
10870 * disasm-selftests.c: Update.
10871 * dtrace-probe.c: Update.
10872 * dwarf-index-cache.c: Update.
10873 * dwarf-index-write.c: Update.
10874 * dwarf2-frame-tailcall.c: Update.
10875 * dwarf2-frame.c: Update.
10876 * dwarf2loc.c: Update.
10877 * dwarf2read.c: Update.
10878 * eval.c: Update.
10879 * event-loop.c: Update.
10880 * event-top.c: Update.
10881 * exec.c: Update.
10882 * f-valprint.c: Update.
10883 * fbsd-tdep.c: Update.
10884 * frame-unwind.c: Update.
10885 * frame.c: Update.
10886 * gdbtypes.c: Update.
10887 * gnu-v3-abi.c: Update.
10888 * guile/guile-internal.h: Update.
10889 * guile/scm-block.c: Update.
10890 * guile/scm-breakpoint.c: Update.
10891 * guile/scm-cmd.c: Update.
10892 * guile/scm-disasm.c: Update.
10893 * guile/scm-frame.c: Update.
10894 * guile/scm-lazy-string.c: Update.
10895 * guile/scm-math.c: Update.
10896 * guile/scm-param.c: Update.
10897 * guile/scm-ports.c: Update.
10898 * guile/scm-pretty-print.c: Update.
10899 * guile/scm-symbol.c: Update.
10900 * guile/scm-symtab.c: Update.
10901 * guile/scm-type.c: Update.
10902 * guile/scm-value.c: Update.
10903 * i386-linux-tdep.c: Update.
10904 * i386-tdep.c: Update.
10905 * inf-loop.c: Update.
10906 * infcall.c: Update.
10907 * infcmd.c: Update.
10908 * infrun.c: Update.
10909 * jit.c: Update.
10910 * language.c: Update.
10911 * linespec.c: Update.
10912 * linux-fork.c: Update.
10913 * linux-nat.c: Update.
10914 * linux-tdep.c: Update.
10915 * linux-thread-db.c: Update.
10916 * main.c: Update.
10917 * mi/mi-cmd-break.c: Update.
10918 * mi/mi-cmd-stack.c: Update.
10919 * mi/mi-interp.c: Update.
10920 * mi/mi-main.c: Update.
10921 * objc-lang.c: Update.
10922 * p-valprint.c: Update.
10923 * parse.c: Update.
10924 * ppc-linux-tdep.c: Update.
10925 * printcmd.c: Update.
10926 * python/py-arch.c: Update.
10927 * python/py-breakpoint.c: Update.
10928 * python/py-cmd.c: Update.
10929 * python/py-finishbreakpoint.c: Update.
10930 * python/py-frame.c: Update.
10931 * python/py-framefilter.c: Update.
10932 * python/py-gdb-readline.c: Update.
10933 * python/py-inferior.c: Update.
10934 * python/py-infthread.c: Update.
10935 * python/py-lazy-string.c: Update.
10936 * python/py-linetable.c: Update.
10937 * python/py-objfile.c: Update.
10938 * python/py-param.c: Update.
10939 * python/py-prettyprint.c: Update.
10940 * python/py-progspace.c: Update.
10941 * python/py-record-btrace.c: Update.
10942 * python/py-record.c: Update.
10943 * python/py-symbol.c: Update.
10944 * python/py-type.c: Update.
10945 * python/py-unwind.c: Update.
10946 * python/py-utils.c: Update.
10947 * python/py-value.c: Update.
10948 * python/python.c: Update.
10949 * record-btrace.c: Update.
10950 * record-full.c: Update.
10951 * remote-fileio.c: Update.
10952 * remote.c: Update.
10953 * riscv-tdep.c: Update.
10954 * rs6000-aix-tdep.c: Update.
10955 * rs6000-tdep.c: Update.
10956 * rust-exp.y: Update.
10957 * rust-lang.c: Update.
10958 * s390-tdep.c: Update.
10959 * selftest-arch.c: Update.
10960 * solib-dsbt.c: Update.
10961 * solib-frv.c: Update.
10962 * solib-spu.c: Update.
10963 * solib-svr4.c: Update.
10964 * solib.c: Update.
10965 * sparc64-linux-tdep.c: Update.
10966 * stack.c: Update.
10967 * symfile-mem.c: Update.
10968 * symmisc.c: Update.
10969 * target.c: Update.
10970 * thread.c: Update.
10971 * top.c: Update.
10972 * tracefile-tfile.c: Update.
10973 * tui/tui.c: Update.
10974 * typeprint.c: Update.
10975 * unittests/cli-utils-selftests.c: Update.
10976 * unittests/parse-connection-spec-selftests.c: Update.
10977 * valops.c: Update.
10978 * valprint.c: Update.
10979 * value.c: Update.
10980 * varobj.c: Update.
10981 * windows-nat.c: Update.
10982 * x86-linux-nat.c: Update.
10983 * xml-support.c: Update.
10984
10985 2019-04-08 Tom Tromey <tom@tromey.com>
10986
10987 * xml-support.c: Use C++ exception handling.
10988 * x86-linux-nat.c: Use C++ exception handling.
10989 * windows-nat.c: Use C++ exception handling.
10990 * varobj.c: Use C++ exception handling.
10991 * value.c: Use C++ exception handling.
10992 * valprint.c: Use C++ exception handling.
10993 * valops.c: Use C++ exception handling.
10994 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10995 handling.
10996 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10997 * typeprint.c: Use C++ exception handling.
10998 * tui/tui.c: Use C++ exception handling.
10999 * tracefile-tfile.c: Use C++ exception handling.
11000 * top.c: Use C++ exception handling.
11001 * thread.c: Use C++ exception handling.
11002 * target.c: Use C++ exception handling.
11003 * symmisc.c: Use C++ exception handling.
11004 * symfile-mem.c: Use C++ exception handling.
11005 * stack.c: Use C++ exception handling.
11006 * sparc64-linux-tdep.c: Use C++ exception handling.
11007 * solib.c: Use C++ exception handling.
11008 * solib-svr4.c: Use C++ exception handling.
11009 * solib-spu.c: Use C++ exception handling.
11010 * solib-frv.c: Use C++ exception handling.
11011 * solib-dsbt.c: Use C++ exception handling.
11012 * selftest-arch.c: Use C++ exception handling.
11013 * s390-tdep.c: Use C++ exception handling.
11014 * rust-lang.c: Use C++ exception handling.
11015 * rust-exp.y: Use C++ exception handling.
11016 * rs6000-tdep.c: Use C++ exception handling.
11017 * rs6000-aix-tdep.c: Use C++ exception handling.
11018 * riscv-tdep.c: Use C++ exception handling.
11019 * remote.c: Use C++ exception handling.
11020 * remote-fileio.c: Use C++ exception handling.
11021 * record-full.c: Use C++ exception handling.
11022 * record-btrace.c: Use C++ exception handling.
11023 * python/python.c: Use C++ exception handling.
11024 * python/py-value.c: Use C++ exception handling.
11025 * python/py-utils.c: Use C++ exception handling.
11026 * python/py-unwind.c: Use C++ exception handling.
11027 * python/py-type.c: Use C++ exception handling.
11028 * python/py-symbol.c: Use C++ exception handling.
11029 * python/py-record.c: Use C++ exception handling.
11030 * python/py-record-btrace.c: Use C++ exception handling.
11031 * python/py-progspace.c: Use C++ exception handling.
11032 * python/py-prettyprint.c: Use C++ exception handling.
11033 * python/py-param.c: Use C++ exception handling.
11034 * python/py-objfile.c: Use C++ exception handling.
11035 * python/py-linetable.c: Use C++ exception handling.
11036 * python/py-lazy-string.c: Use C++ exception handling.
11037 * python/py-infthread.c: Use C++ exception handling.
11038 * python/py-inferior.c: Use C++ exception handling.
11039 * python/py-gdb-readline.c: Use C++ exception handling.
11040 * python/py-framefilter.c: Use C++ exception handling.
11041 * python/py-frame.c: Use C++ exception handling.
11042 * python/py-finishbreakpoint.c: Use C++ exception handling.
11043 * python/py-cmd.c: Use C++ exception handling.
11044 * python/py-breakpoint.c: Use C++ exception handling.
11045 * python/py-arch.c: Use C++ exception handling.
11046 * printcmd.c: Use C++ exception handling.
11047 * ppc-linux-tdep.c: Use C++ exception handling.
11048 * parse.c: Use C++ exception handling.
11049 * p-valprint.c: Use C++ exception handling.
11050 * objc-lang.c: Use C++ exception handling.
11051 * mi/mi-main.c: Use C++ exception handling.
11052 * mi/mi-interp.c: Use C++ exception handling.
11053 * mi/mi-cmd-stack.c: Use C++ exception handling.
11054 * mi/mi-cmd-break.c: Use C++ exception handling.
11055 * main.c: Use C++ exception handling.
11056 * linux-thread-db.c: Use C++ exception handling.
11057 * linux-tdep.c: Use C++ exception handling.
11058 * linux-nat.c: Use C++ exception handling.
11059 * linux-fork.c: Use C++ exception handling.
11060 * linespec.c: Use C++ exception handling.
11061 * language.c: Use C++ exception handling.
11062 * jit.c: Use C++ exception handling.
11063 * infrun.c: Use C++ exception handling.
11064 * infcmd.c: Use C++ exception handling.
11065 * infcall.c: Use C++ exception handling.
11066 * inf-loop.c: Use C++ exception handling.
11067 * i386-tdep.c: Use C++ exception handling.
11068 * i386-linux-tdep.c: Use C++ exception handling.
11069 * guile/scm-value.c: Use C++ exception handling.
11070 * guile/scm-type.c: Use C++ exception handling.
11071 * guile/scm-symtab.c: Use C++ exception handling.
11072 * guile/scm-symbol.c: Use C++ exception handling.
11073 * guile/scm-pretty-print.c: Use C++ exception handling.
11074 * guile/scm-ports.c: Use C++ exception handling.
11075 * guile/scm-param.c: Use C++ exception handling.
11076 * guile/scm-math.c: Use C++ exception handling.
11077 * guile/scm-lazy-string.c: Use C++ exception handling.
11078 * guile/scm-frame.c: Use C++ exception handling.
11079 * guile/scm-disasm.c: Use C++ exception handling.
11080 * guile/scm-cmd.c: Use C++ exception handling.
11081 * guile/scm-breakpoint.c: Use C++ exception handling.
11082 * guile/scm-block.c: Use C++ exception handling.
11083 * guile/guile-internal.h: Use C++ exception handling.
11084 * gnu-v3-abi.c: Use C++ exception handling.
11085 * gdbtypes.c: Use C++ exception handling.
11086 * frame.c: Use C++ exception handling.
11087 * frame-unwind.c: Use C++ exception handling.
11088 * fbsd-tdep.c: Use C++ exception handling.
11089 * f-valprint.c: Use C++ exception handling.
11090 * exec.c: Use C++ exception handling.
11091 * event-top.c: Use C++ exception handling.
11092 * event-loop.c: Use C++ exception handling.
11093 * eval.c: Use C++ exception handling.
11094 * dwarf2read.c: Use C++ exception handling.
11095 * dwarf2loc.c: Use C++ exception handling.
11096 * dwarf2-frame.c: Use C++ exception handling.
11097 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11098 * dwarf-index-write.c: Use C++ exception handling.
11099 * dwarf-index-cache.c: Use C++ exception handling.
11100 * dtrace-probe.c: Use C++ exception handling.
11101 * disasm-selftests.c: Use C++ exception handling.
11102 * darwin-nat.c: Use C++ exception handling.
11103 * cp-valprint.c: Use C++ exception handling.
11104 * cp-support.c: Use C++ exception handling.
11105 * cp-abi.c: Use C++ exception handling.
11106 * corelow.c: Use C++ exception handling.
11107 * completer.c: Use C++ exception handling.
11108 * compile/compile-object-run.c: Use C++ exception handling.
11109 * compile/compile-object-load.c: Use C++ exception handling.
11110 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11111 * compile/compile-c-symbols.c: Use C++ exception handling.
11112 * common/selftest.c: Use C++ exception handling.
11113 * common/new-op.c: Use C++ exception handling.
11114 * cli/cli-script.c: Use C++ exception handling.
11115 * cli/cli-interp.c: Use C++ exception handling.
11116 * cli/cli-cmds.c: Use C++ exception handling.
11117 * c-varobj.c: Use C++ exception handling.
11118 * btrace.c: Use C++ exception handling.
11119 * breakpoint.c: Use C++ exception handling.
11120 * break-catch-throw.c: Use C++ exception handling.
11121 * arch-utils.c: Use C++ exception handling.
11122 * amd64-tdep.c: Use C++ exception handling.
11123 * ada-valprint.c: Use C++ exception handling.
11124 * ada-typeprint.c: Use C++ exception handling.
11125 * ada-lang.c: Use C++ exception handling.
11126 * aarch64-tdep.c: Use C++ exception handling.
11127
11128 2019-04-08 Tom Tromey <tom@tromey.com>
11129
11130 * xml-support.c (gdb_xml_parser::parse): Update.
11131 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11132 * value.c (show_convenience): Update.
11133 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11134 (test_parse_flags_qcs): Update.
11135 * thread.c (thr_try_catch_cmd): Update.
11136 * target.c (target_translate_tls_address): Update.
11137 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11138 (info_frame_command_core, frame_apply_command_count): Update.
11139 * rust-exp.y (rust_lex_exception_test): Update.
11140 * riscv-tdep.c (riscv_print_one_register_info): Update.
11141 * remote.c (remote_target::enable_btrace): Update.
11142 * record-btrace.c (record_btrace_enable_warn): Update.
11143 * python/py-utils.c (gdbpy_convert_exception): Update.
11144 * printcmd.c (do_one_display, print_variable_and_value): Update.
11145 * mi/mi-main.c (mi_print_exception): Update.
11146 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11147 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11148 * linux-nat.c (linux_nat_target::attach): Update.
11149 * linux-fork.c (class scoped_switch_fork_info): Update.
11150 * infrun.c (displaced_step_prepare): Update.
11151 * infcall.c (call_function_by_hand_dummy): Update.
11152 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11153 * gnu-v3-abi.c (print_one_vtable): Update.
11154 * frame.c (get_prev_frame_always): Update.
11155 * f-valprint.c (info_common_command_for_block): Update.
11156 * exec.c (try_open_exec_file): Update.
11157 * exceptions.c (print_exception, exception_print)
11158 (exception_fprintf, exception_print_same): Update.
11159 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11160 * dwarf-index-cache.c (index_cache::store)
11161 (index_cache::lookup_gdb_index): Update.
11162 * darwin-nat.c (maybe_cache_shell): Update.
11163 * cp-valprint.c (cp_print_value_fields): Update.
11164 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11165 (gcc_cplus_symbol_address): Update.
11166 * compile/compile-c-symbols.c (gcc_convert_symbol)
11167 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11168 * common/selftest.c: Update.
11169 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11170 a std::string.
11171 (exception_try_scope_entry, exception_try_scope_exit): Don't
11172 declare.
11173 (struct exception_try_scope): Remove.
11174 (TRY): Don't use exception_try_scope.
11175 (struct gdb_exception): Add constructor, operator=.
11176 <what>: New method.
11177 (struct gdb_exception_RETURN_MASK_ALL)
11178 (struct gdb_exception_RETURN_MASK_ERROR)
11179 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11180 (struct gdb_quit_bad_alloc): Update.
11181 * common/common-exceptions.c (exception_none): Change
11182 initializer.
11183 (struct catcher) <state, exception>: Initialize inline.
11184 <prev>: Remove member.
11185 (current_catcher): Remove.
11186 (catchers): New global.
11187 (exceptions_state_mc_init): Simplify.
11188 (catcher_pop): Remove.
11189 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11190 (try_scope_depth, exception_try_scope_entry)
11191 (exception_try_scope_exit): Remove.
11192 (throw_exception_sjlj): Update.
11193 (exception_messages, exception_messages_size): Remove.
11194 (throw_it): Simplify.
11195 (gdb_exception_sliced_copy): Remove.
11196 (throw_exception_cxx): Update.
11197 * cli/cli-script.c (script_from_file): Update.
11198 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11199 Update.
11200 * ada-valprint.c (ada_val_print): Update.
11201 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11202 (create_excep_cond_exprs): Update.
11203
11204 2019-04-08 Tom Tromey <tom@tromey.com>
11205
11206 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11207 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11208 (TRY, CATCH, END_CATCH): Remove some definitions.
11209 * common/common-exceptions.c: Don't use GDB_XCPT.
11210 (catcher_list_size): Remove.
11211 (throw_exception, throw_it): Simplify.
11212
11213 2019-04-05 Tom Tromey <tom@tromey.com>
11214
11215 Revert the header-sorting patch.
11216 * ft32-tdep.c: Revert.
11217 * frv-tdep.c: Revert.
11218 * frv-linux-tdep.c: Revert.
11219 * frame.c: Revert.
11220 * frame-unwind.c: Revert.
11221 * frame-base.c: Revert.
11222 * fork-child.c: Revert.
11223 * findvar.c: Revert.
11224 * findcmd.c: Revert.
11225 * filesystem.c: Revert.
11226 * filename-seen-cache.h: Revert.
11227 * filename-seen-cache.c: Revert.
11228 * fbsd-tdep.c: Revert.
11229 * fbsd-nat.h: Revert.
11230 * fbsd-nat.c: Revert.
11231 * f-valprint.c: Revert.
11232 * f-typeprint.c: Revert.
11233 * f-lang.c: Revert.
11234 * extension.h: Revert.
11235 * extension.c: Revert.
11236 * extension-priv.h: Revert.
11237 * expprint.c: Revert.
11238 * exec.h: Revert.
11239 * exec.c: Revert.
11240 * exceptions.c: Revert.
11241 * event-top.c: Revert.
11242 * event-loop.c: Revert.
11243 * eval.c: Revert.
11244 * elfread.c: Revert.
11245 * dwarf2read.h: Revert.
11246 * dwarf2read.c: Revert.
11247 * dwarf2loc.c: Revert.
11248 * dwarf2expr.h: Revert.
11249 * dwarf2expr.c: Revert.
11250 * dwarf2-frame.c: Revert.
11251 * dwarf2-frame-tailcall.c: Revert.
11252 * dwarf-index-write.h: Revert.
11253 * dwarf-index-write.c: Revert.
11254 * dwarf-index-common.c: Revert.
11255 * dwarf-index-cache.h: Revert.
11256 * dwarf-index-cache.c: Revert.
11257 * dummy-frame.c: Revert.
11258 * dtrace-probe.c: Revert.
11259 * disasm.h: Revert.
11260 * disasm.c: Revert.
11261 * disasm-selftests.c: Revert.
11262 * dictionary.c: Revert.
11263 * dicos-tdep.c: Revert.
11264 * demangle.c: Revert.
11265 * dcache.h: Revert.
11266 * dcache.c: Revert.
11267 * darwin-nat.h: Revert.
11268 * darwin-nat.c: Revert.
11269 * darwin-nat-info.c: Revert.
11270 * d-valprint.c: Revert.
11271 * d-namespace.c: Revert.
11272 * d-lang.c: Revert.
11273 * ctf.c: Revert.
11274 * csky-tdep.c: Revert.
11275 * csky-linux-tdep.c: Revert.
11276 * cris-tdep.c: Revert.
11277 * cris-linux-tdep.c: Revert.
11278 * cp-valprint.c: Revert.
11279 * cp-support.c: Revert.
11280 * cp-namespace.c: Revert.
11281 * cp-abi.c: Revert.
11282 * corelow.c: Revert.
11283 * corefile.c: Revert.
11284 * continuations.c: Revert.
11285 * completer.h: Revert.
11286 * completer.c: Revert.
11287 * complaints.c: Revert.
11288 * coffread.c: Revert.
11289 * coff-pe-read.c: Revert.
11290 * cli-out.h: Revert.
11291 * cli-out.c: Revert.
11292 * charset.c: Revert.
11293 * c-varobj.c: Revert.
11294 * c-valprint.c: Revert.
11295 * c-typeprint.c: Revert.
11296 * c-lang.c: Revert.
11297 * buildsym.c: Revert.
11298 * buildsym-legacy.c: Revert.
11299 * build-id.h: Revert.
11300 * build-id.c: Revert.
11301 * btrace.c: Revert.
11302 * bsd-uthread.c: Revert.
11303 * breakpoint.h: Revert.
11304 * breakpoint.c: Revert.
11305 * break-catch-throw.c: Revert.
11306 * break-catch-syscall.c: Revert.
11307 * break-catch-sig.c: Revert.
11308 * blockframe.c: Revert.
11309 * block.c: Revert.
11310 * bfin-tdep.c: Revert.
11311 * bfin-linux-tdep.c: Revert.
11312 * bfd-target.c: Revert.
11313 * bcache.c: Revert.
11314 * ax-general.c: Revert.
11315 * ax-gdb.h: Revert.
11316 * ax-gdb.c: Revert.
11317 * avr-tdep.c: Revert.
11318 * auxv.c: Revert.
11319 * auto-load.c: Revert.
11320 * arm-wince-tdep.c: Revert.
11321 * arm-tdep.c: Revert.
11322 * arm-symbian-tdep.c: Revert.
11323 * arm-pikeos-tdep.c: Revert.
11324 * arm-obsd-tdep.c: Revert.
11325 * arm-nbsd-tdep.c: Revert.
11326 * arm-nbsd-nat.c: Revert.
11327 * arm-linux-tdep.c: Revert.
11328 * arm-linux-nat.c: Revert.
11329 * arm-fbsd-tdep.c: Revert.
11330 * arm-fbsd-nat.c: Revert.
11331 * arm-bsd-tdep.c: Revert.
11332 * arch-utils.c: Revert.
11333 * arc-tdep.c: Revert.
11334 * arc-newlib-tdep.c: Revert.
11335 * annotate.h: Revert.
11336 * annotate.c: Revert.
11337 * amd64-windows-tdep.c: Revert.
11338 * amd64-windows-nat.c: Revert.
11339 * amd64-tdep.c: Revert.
11340 * amd64-sol2-tdep.c: Revert.
11341 * amd64-obsd-tdep.c: Revert.
11342 * amd64-obsd-nat.c: Revert.
11343 * amd64-nbsd-tdep.c: Revert.
11344 * amd64-nbsd-nat.c: Revert.
11345 * amd64-nat.c: Revert.
11346 * amd64-linux-tdep.c: Revert.
11347 * amd64-linux-nat.c: Revert.
11348 * amd64-fbsd-tdep.c: Revert.
11349 * amd64-fbsd-nat.c: Revert.
11350 * amd64-dicos-tdep.c: Revert.
11351 * amd64-darwin-tdep.c: Revert.
11352 * amd64-bsd-nat.c: Revert.
11353 * alpha-tdep.c: Revert.
11354 * alpha-obsd-tdep.c: Revert.
11355 * alpha-nbsd-tdep.c: Revert.
11356 * alpha-mdebug-tdep.c: Revert.
11357 * alpha-linux-tdep.c: Revert.
11358 * alpha-linux-nat.c: Revert.
11359 * alpha-bsd-tdep.c: Revert.
11360 * alpha-bsd-nat.c: Revert.
11361 * aix-thread.c: Revert.
11362 * agent.c: Revert.
11363 * addrmap.c: Revert.
11364 * ada-varobj.c: Revert.
11365 * ada-valprint.c: Revert.
11366 * ada-typeprint.c: Revert.
11367 * ada-tasks.c: Revert.
11368 * ada-lang.c: Revert.
11369 * aarch64-tdep.c: Revert.
11370 * aarch64-ravenscar-thread.c: Revert.
11371 * aarch64-newlib-tdep.c: Revert.
11372 * aarch64-linux-tdep.c: Revert.
11373 * aarch64-linux-nat.c: Revert.
11374 * aarch64-fbsd-tdep.c: Revert.
11375 * aarch64-fbsd-nat.c: Revert.
11376 * aarch32-linux-nat.c: Revert.
11377
11378 2019-04-05 Tom Tromey <tom@tromey.com>
11379
11380 * ft32-tdep.c: Sort headers.
11381 * frv-tdep.c: Sort headers.
11382 * frv-linux-tdep.c: Sort headers.
11383 * frame.c: Sort headers.
11384 * frame-unwind.c: Sort headers.
11385 * frame-base.c: Sort headers.
11386 * fork-child.c: Sort headers.
11387 * findvar.c: Sort headers.
11388 * findcmd.c: Sort headers.
11389 * filesystem.c: Sort headers.
11390 * filename-seen-cache.h: Sort headers.
11391 * filename-seen-cache.c: Sort headers.
11392 * fbsd-tdep.c: Sort headers.
11393 * fbsd-nat.h: Sort headers.
11394 * fbsd-nat.c: Sort headers.
11395 * f-valprint.c: Sort headers.
11396 * f-typeprint.c: Sort headers.
11397 * f-lang.c: Sort headers.
11398 * extension.h: Sort headers.
11399 * extension.c: Sort headers.
11400 * extension-priv.h: Sort headers.
11401 * expprint.c: Sort headers.
11402 * exec.h: Sort headers.
11403 * exec.c: Sort headers.
11404 * exceptions.c: Sort headers.
11405 * event-top.c: Sort headers.
11406 * event-loop.c: Sort headers.
11407 * eval.c: Sort headers.
11408 * elfread.c: Sort headers.
11409 * dwarf2read.h: Sort headers.
11410 * dwarf2read.c: Sort headers.
11411 * dwarf2loc.c: Sort headers.
11412 * dwarf2expr.h: Sort headers.
11413 * dwarf2expr.c: Sort headers.
11414 * dwarf2-frame.c: Sort headers.
11415 * dwarf2-frame-tailcall.c: Sort headers.
11416 * dwarf-index-write.h: Sort headers.
11417 * dwarf-index-write.c: Sort headers.
11418 * dwarf-index-common.c: Sort headers.
11419 * dwarf-index-cache.h: Sort headers.
11420 * dwarf-index-cache.c: Sort headers.
11421 * dummy-frame.c: Sort headers.
11422 * dtrace-probe.c: Sort headers.
11423 * disasm.h: Sort headers.
11424 * disasm.c: Sort headers.
11425 * disasm-selftests.c: Sort headers.
11426 * dictionary.c: Sort headers.
11427 * dicos-tdep.c: Sort headers.
11428 * demangle.c: Sort headers.
11429 * dcache.h: Sort headers.
11430 * dcache.c: Sort headers.
11431 * darwin-nat.h: Sort headers.
11432 * darwin-nat.c: Sort headers.
11433 * darwin-nat-info.c: Sort headers.
11434 * d-valprint.c: Sort headers.
11435 * d-namespace.c: Sort headers.
11436 * d-lang.c: Sort headers.
11437 * ctf.c: Sort headers.
11438 * csky-tdep.c: Sort headers.
11439 * csky-linux-tdep.c: Sort headers.
11440 * cris-tdep.c: Sort headers.
11441 * cris-linux-tdep.c: Sort headers.
11442 * cp-valprint.c: Sort headers.
11443 * cp-support.c: Sort headers.
11444 * cp-namespace.c: Sort headers.
11445 * cp-abi.c: Sort headers.
11446 * corelow.c: Sort headers.
11447 * corefile.c: Sort headers.
11448 * continuations.c: Sort headers.
11449 * completer.h: Sort headers.
11450 * completer.c: Sort headers.
11451 * complaints.c: Sort headers.
11452 * coffread.c: Sort headers.
11453 * coff-pe-read.c: Sort headers.
11454 * cli-out.h: Sort headers.
11455 * cli-out.c: Sort headers.
11456 * charset.c: Sort headers.
11457 * c-varobj.c: Sort headers.
11458 * c-valprint.c: Sort headers.
11459 * c-typeprint.c: Sort headers.
11460 * c-lang.c: Sort headers.
11461 * buildsym.c: Sort headers.
11462 * buildsym-legacy.c: Sort headers.
11463 * build-id.h: Sort headers.
11464 * build-id.c: Sort headers.
11465 * btrace.c: Sort headers.
11466 * bsd-uthread.c: Sort headers.
11467 * breakpoint.h: Sort headers.
11468 * breakpoint.c: Sort headers.
11469 * break-catch-throw.c: Sort headers.
11470 * break-catch-syscall.c: Sort headers.
11471 * break-catch-sig.c: Sort headers.
11472 * blockframe.c: Sort headers.
11473 * block.c: Sort headers.
11474 * bfin-tdep.c: Sort headers.
11475 * bfin-linux-tdep.c: Sort headers.
11476 * bfd-target.c: Sort headers.
11477 * bcache.c: Sort headers.
11478 * ax-general.c: Sort headers.
11479 * ax-gdb.h: Sort headers.
11480 * ax-gdb.c: Sort headers.
11481 * avr-tdep.c: Sort headers.
11482 * auxv.c: Sort headers.
11483 * auto-load.c: Sort headers.
11484 * arm-wince-tdep.c: Sort headers.
11485 * arm-tdep.c: Sort headers.
11486 * arm-symbian-tdep.c: Sort headers.
11487 * arm-pikeos-tdep.c: Sort headers.
11488 * arm-obsd-tdep.c: Sort headers.
11489 * arm-nbsd-tdep.c: Sort headers.
11490 * arm-nbsd-nat.c: Sort headers.
11491 * arm-linux-tdep.c: Sort headers.
11492 * arm-linux-nat.c: Sort headers.
11493 * arm-fbsd-tdep.c: Sort headers.
11494 * arm-fbsd-nat.c: Sort headers.
11495 * arm-bsd-tdep.c: Sort headers.
11496 * arch-utils.c: Sort headers.
11497 * arc-tdep.c: Sort headers.
11498 * arc-newlib-tdep.c: Sort headers.
11499 * annotate.h: Sort headers.
11500 * annotate.c: Sort headers.
11501 * amd64-windows-tdep.c: Sort headers.
11502 * amd64-windows-nat.c: Sort headers.
11503 * amd64-tdep.c: Sort headers.
11504 * amd64-sol2-tdep.c: Sort headers.
11505 * amd64-obsd-tdep.c: Sort headers.
11506 * amd64-obsd-nat.c: Sort headers.
11507 * amd64-nbsd-tdep.c: Sort headers.
11508 * amd64-nbsd-nat.c: Sort headers.
11509 * amd64-nat.c: Sort headers.
11510 * amd64-linux-tdep.c: Sort headers.
11511 * amd64-linux-nat.c: Sort headers.
11512 * amd64-fbsd-tdep.c: Sort headers.
11513 * amd64-fbsd-nat.c: Sort headers.
11514 * amd64-dicos-tdep.c: Sort headers.
11515 * amd64-darwin-tdep.c: Sort headers.
11516 * amd64-bsd-nat.c: Sort headers.
11517 * alpha-tdep.c: Sort headers.
11518 * alpha-obsd-tdep.c: Sort headers.
11519 * alpha-nbsd-tdep.c: Sort headers.
11520 * alpha-mdebug-tdep.c: Sort headers.
11521 * alpha-linux-tdep.c: Sort headers.
11522 * alpha-linux-nat.c: Sort headers.
11523 * alpha-bsd-tdep.c: Sort headers.
11524 * alpha-bsd-nat.c: Sort headers.
11525 * aix-thread.c: Sort headers.
11526 * agent.c: Sort headers.
11527 * addrmap.c: Sort headers.
11528 * ada-varobj.c: Sort headers.
11529 * ada-valprint.c: Sort headers.
11530 * ada-typeprint.c: Sort headers.
11531 * ada-tasks.c: Sort headers.
11532 * ada-lang.c: Sort headers.
11533 * aarch64-tdep.c: Sort headers.
11534 * aarch64-ravenscar-thread.c: Sort headers.
11535 * aarch64-newlib-tdep.c: Sort headers.
11536 * aarch64-linux-tdep.c: Sort headers.
11537 * aarch64-linux-nat.c: Sort headers.
11538 * aarch64-fbsd-tdep.c: Sort headers.
11539 * aarch64-fbsd-nat.c: Sort headers.
11540 * aarch32-linux-nat.c: Sort headers.
11541
11542 2019-04-04 Tom Tromey <tom@tromey.com>
11543
11544 * varobj.c (varobj_create): Update.
11545 * rust-exp.y (struct rust_parser) <update_innermost_block,
11546 lookup_symbol>: New methods.
11547 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11548 Rename.
11549 (rust_parser::rust_lookup_type)
11550 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11551 * printcmd.c (display_command, do_one_display): Update.
11552 * parser-defs.h (struct parser_state) <parser_state>: Add
11553 "tracker" parameter.
11554 (block_tracker): New member.
11555 (class innermost_block_tracker) <innermost_block_tracker>: Add
11556 "types" parameter.
11557 <reset>: Remove method.
11558 (innermost_block): Don't declare.
11559 (null_post_parser): Update.
11560 * parse.c (innermost_block): Remove global.
11561 (write_dollar_variable): Update.
11562 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11563 Remove "tracker_types" parameter.
11564 (parse_expression): Add "tracker" parameter.
11565 (parse_expression_for_completion): Update.
11566 (null_post_parser): Add "tracker" parameter.
11567 * p-exp.y: Update rules.
11568 * m2-exp.y: Update rules.
11569 * language.h (struct language_defn) <la_post_parser>: Add
11570 "tracker" parameter.
11571 * go-exp.y: Update rules.
11572 * f-exp.y: Update rules.
11573 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11574 parameter.
11575 * d-exp.y: Update rules.
11576 * c-exp.y: Update rules.
11577 * breakpoint.c (set_breakpoint_condition): Create an
11578 innermost_block_tracker.
11579 (watch_command_1): Likewise.
11580 * ada-lang.c (resolve): Add "tracker" parameter.
11581 (resolve_subexp): Likewise.
11582 * ada-exp.y (write_var_from_sym): Update.
11583
11584 2019-04-04 Tom Tromey <tom@tromey.com>
11585
11586 * type-stack.h: New file.
11587 * type-stack.c: New file.
11588 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11589 type-stack.h.
11590 (insert_into_type_stack, insert_type, push_type, push_type_int)
11591 (insert_type_address_space, pop_type, pop_type_int)
11592 (pop_typelist, pop_type_stack, append_type_stack)
11593 (push_type_stack, get_type_stack, push_typelist)
11594 (follow_type_instance_flags, follow_types): Don't declare.
11595 * parse.c (type_stack): Remove global.
11596 (parse_exp_in_context): Update.
11597 (insert_into_type_stack, insert_type, push_type, push_type_int)
11598 (insert_type_address_space, pop_type, pop_type_int)
11599 (pop_typelist, pop_type_stack, append_type_stack)
11600 (push_type_stack, get_type_stack, push_typelist)
11601 (follow_type_instance_flags, follow_types): Remove (moved to
11602 type-stack.c).
11603 * f-exp.y (type_stack): New global.
11604 Update rules.
11605 (push_kind_type, f_parse): Update.
11606 * d-exp.y (type_stack): New global.
11607 Update rules.
11608 (d_parse): Update.
11609 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11610 Update rules.
11611 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11612 (HFILES_NO_SRCDIR): Add type-stack.h.
11613
11614 2019-04-04 Tom Tromey <tom@tromey.com>
11615
11616 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11617 (rust_parser::convert_ast_to_expression, rust_parse)
11618 (rust_lex_test_completion, rust_lex_tests): Update.
11619 * parser-defs.h (struct expr_completion_state): New.
11620 (struct parser_state) <parser_state>: Add completion parameter.
11621 <mark_struct_expression, mark_completion_tag>: New methods.
11622 <parse_completion, m_completion_state>: New members.
11623 (prefixify_expression, null_post_parser): Update.
11624 (mark_struct_expression, mark_completion_tag): Don't declare.
11625 * parse.c (parse_completion, expout_last_struct)
11626 (expout_tag_completion_type, expout_completion_name): Remove
11627 globals.
11628 (parser_state::mark_struct_expression)
11629 (parser_state::mark_completion_tag): Now methods.
11630 (prefixify_expression): Add last_struct parameter.
11631 (prefixify_subexp): Likewise.
11632 (parse_exp_1): Update.
11633 (parse_exp_in_context): Add cstate parameter. Update.
11634 (parse_expression_for_completion): Create an
11635 expr_completion_state.
11636 (null_post_parser): Add "completion" parameter.
11637 * p-exp.y: Update rules.
11638 (yylex): Update.
11639 * language.h (struct language_defn) <la_post_parser>: Add
11640 "completing" parameter.
11641 * go-exp.y: Update rules.
11642 (lex_one_token): Update.
11643 * expression.h (parse_completion): Don't declare.
11644 * d-exp.y: Update rules.
11645 (lex_one_token): Update rules.
11646 * c-exp.y: Update rules.
11647 (lex_one_token): Update.
11648 * ada-lang.c (resolve): Add "parse_completion" parameter.
11649 (resolve_subexp): Likewise.
11650 (ada_resolve_function): Likewise.
11651
11652 2019-04-04 Tom Tromey <tom@tromey.com>
11653
11654 * parser-defs.h (struct parser_state) <start_arglist,
11655 end_arglist>: New methods.
11656 <arglist_len, m_funcall_chain>: New members.
11657 (arglist_len, start_arglist, end_arglist): Don't declare.
11658 * parse.c (arglist_len, funcall_chain): Remove global.
11659 (start_arglist, end_arglist): Remove functions.
11660 (parse_exp_in_context): Update.
11661 * p-exp.y: Update rules.
11662 * m2-exp.y: Update rules.
11663 * go-exp.y: Update rules.
11664 * f-exp.y: Update rules.
11665 * d-exp.y: Update rules.
11666 * c-exp.y: Update rules.
11667
11668 2019-04-04 Tom Tromey <tom@tromey.com>
11669
11670 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11671 lex_operator, push_back>: New methods.
11672 Update all rules.
11673 (rust_parser::lex_hex, lex_escape): Rename and update.
11674 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11675 (rust_parser::lex_operator): Rename and update.
11676 (rust_parser::lex_number, rustyylex, rustyyerror)
11677 (rust_lex_test_init, rust_lex_test_sequence)
11678 (rust_lex_test_push_back, rust_lex_tests): Update.
11679 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11680 parameter.
11681 <lexptr, prev_lexptr>: New members.
11682 (lexptr, prev_lexptr): Don't declare.
11683 * parse.c (lexptr, prev_lexptr): Remove globals.
11684 (parse_exp_in_context): Update.
11685 * p-exp.y (yylex, yyerror): Update.
11686 * m2-exp.y (parse_number, yylex, yyerror): Update.
11687 * go-exp.y (lex_one_token, yyerror): Update.
11688 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11689 * d-exp.y (lex_one_token, yyerror): Update.
11690 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11691 (lex_one_token, yyerror): Update.
11692 * ada-lex.l (YY_INPUT): Update.
11693 (rewind_to_char): Update.
11694 * ada-exp.y (yyerror): Update.
11695
11696 2019-04-04 Tom Tromey <tom@tromey.com>
11697
11698 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11699 * parser-defs.h (struct parser_state) <parser_state>: Add new
11700 parameter.
11701 <comma_terminates>: New member.
11702 (comma_terminates): Don't declare global.
11703 * parse.c (comma_terminates): Remove global.
11704 (parse_exp_in_context): Update.
11705 * p-exp.y (yylex): Update.
11706 * m2-exp.y (yylex): Update.
11707 * go-exp.y (lex_one_token): Update.
11708 * f-exp.y (yylex): Update.
11709 * d-exp.y (lex_one_token): Update.
11710 * c-exp.y (lex_one_token): Update.
11711 * ada-lex.l: Update.
11712
11713 2019-04-04 Tom Tromey <tom@tromey.com>
11714
11715 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11716 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11717 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11718 * parser-defs.h (paren_depth): Don't declare.
11719 * parse.c (paren_depth): Remove global.
11720 (parse_exp_in_context): Update.
11721 * p-exp.y (paren_depth): New global.
11722 (pascal_parse): Initialize it.
11723 * m2-exp.y (paren_depth): New global.
11724 (m2_parse): Initialize it.
11725 * go-exp.y (paren_depth): New global.
11726 (go_parse): Initialize it.
11727 * f-exp.y (paren_depth): New global.
11728 (f_parse): Initialize it.
11729 * d-exp.y (paren_depth): New global.
11730 (d_parse): Initialize it.
11731 * c-exp.y (paren_depth): New global.
11732 (c_parse): Initialize it.
11733 * ada-lex.l (paren_depth): New global.
11734 (lexer_init): Initialize it.
11735
11736 2019-04-04 Tom Tromey <tom@tromey.com>
11737
11738 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11739 (rust_parser::convert_ast_to_type)
11740 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11741 * parser-defs.h (struct parser_state) <parser_state>: Add
11742 parameters. Initialize new members.
11743 <expression_context_block, expression_context_pc>: New members.
11744 * parse.c (expression_context_block, expression_context_pc):
11745 Remove globals.
11746 (parse_exp_in_context): Update.
11747 * p-exp.y: Update all rules.
11748 (yylex): Update.
11749 * m2-exp.y: Update all rules.
11750 (yylex): Update.
11751 * go-exp.y (yylex): Update.
11752 * f-exp.y (yylex): Update.
11753 * d-exp.y: Update all rules.
11754 (yylex): Update.
11755 * c-exp.y: Update all rules.
11756 (lex_one_token, classify_name, yylex, c_parse): Update.
11757 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11758
11759 2019-04-04 Tom Tromey <tom@tromey.com>
11760
11761 * gdbarch.h, gdbarch.c: Rebuild.
11762 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11763 * stap-probe.h:
11764 (struct stap_parse_info): Replace "parser_state" with
11765 "expr_builder".
11766 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11767 (parser_state): New class.
11768 * parse.c (expr_builder): Rename.
11769 (expr_builder::release): Rename.
11770 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11771 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11772 (write_exp_elt_longcst, write_exp_elt_floatcst)
11773 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11774 (write_exp_string_vector, write_exp_bitstring)
11775 (write_exp_msymbol, mark_struct_expression)
11776 (write_dollar_variable)
11777 (insert_type_address_space, increase_expout_size): Replace
11778 "parser_state" with "expr_builder".
11779 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11780 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11781 "parser_state" with "expr_builder".
11782
11783 2019-04-04 Tom Tromey <tom@tromey.com>
11784
11785 * rust-exp.y: Replace "parse_language" with method call.
11786 * p-exp.y:
11787 (yylex): Replace "parse_language" with method call.
11788 * m2-exp.y:
11789 (yylex): Replace "parse_language" with method call.
11790 * go-exp.y (classify_name): Replace "parse_language" with method
11791 call.
11792 * f-exp.y (yylex): Replace "parse_language" with method call.
11793 * d-exp.y (lex_one_token): Replace "parse_language" with method
11794 call.
11795 * c-exp.y:
11796 (lex_one_token, classify_name, yylex): Replace "parse_language"
11797 with method call.
11798 * ada-exp.y (find_primitive_type, type_char)
11799 (type_system_address): Replace "parse_language" with method call.
11800
11801 2019-04-04 Tom Tromey <tom@tromey.com>
11802
11803 * rust-exp.y: Replace "parse_gdbarch" with method call.
11804 * parse.c (write_dollar_variable, insert_type_address_space):
11805 Replace "parse_gdbarch" with method call.
11806 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11807 call.
11808 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11809 call.
11810 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11811 "parse_gdbarch" with method call.
11812 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11813 with method call.
11814 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11815 "parse_gdbarch" with method call.
11816 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11817 "parse_gdbarch" with method call.
11818 * c-exp.y (parse_type, parse_number, classify_name): Replace
11819 "parse_gdbarch" with method call.
11820 * ada-lex.l: Replace "parse_gdbarch" with method call.
11821 * ada-exp.y (parse_type, find_primitive_type, type_char)
11822 (type_system_address): Replace "parse_gdbarch" with method call.
11823
11824 2019-04-04 Tom Tromey <tom@tromey.com>
11825
11826 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11827 * stap-probe.c (stap_parse_argument): Update.
11828 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11829 initial_size parameter.
11830 * rust-exp.y (rust_lex_tests): Update.
11831 * parse.c (parser_state): Update.
11832 (parse_exp_in_context): Update.
11833 * parser-defs.h (struct parser_state) <parser_state>: Remove
11834 "initial_size" parameter.
11835
11836 2019-04-04 Tom Tromey <tom@tromey.com>
11837
11838 * parser-defs.h (increase_expout_size): Don't declare.
11839 * parse.c (increase_expout_size): Now static.
11840
11841 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11842
11843 * gnu-nat.c (gnu_nat_target::wait): Fix
11844 target_waitstatus_to_string call.
11845
11846 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11847
11848 * eval.c (evaluate_subexp_standard): Handle internal functions
11849 during Fortran function call handling.
11850
11851 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11852
11853 * NEWS: Mention new internal functions.
11854 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11855 (read_base_type): Use dwarf2_init_complex_target_type.
11856 * value.c (creal_internal_fn): New function.
11857 (cimag_internal_fn): New function.
11858 (_initialize_values): Register new internal functions.
11859
11860 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11861
11862 * infrun.c (stop_all_threads): If debug_infrun, always
11863 trace the wait status after wait_one, using
11864 target_waitstatus_to_string and target_pid_to_str.
11865 (handle_inferior_event): Replace various trace of
11866 wait status kind by a single trace.
11867 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11868 wait status kind image by target_waitstatus_to_string.
11869 * target/waitstatus.c (target_waitstatus_to_string): Fix
11870 obsolete comment.
11871
11872 2019-04-01 Tom Tromey <tromey@adacore.com>
11873
11874 PR symtab/23331:
11875 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11876
11877 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11878 Pedro Alves <palves@redhat.com>
11879
11880 * top.c (quit_force): Call 'finalize_values'.
11881 * value.c (finalize_values): New function.
11882 * value.h (finalize_values): Declare.
11883
11884 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11885
11886 * NEWS: Announce $_gdb_major and $_gdb_minor.
11887
11888 * top.c (init_gdb_version_vars): New function.
11889 (gdb_init): Call init_gdb_version_vars.
11890
11891 2019-03-29 Tom Tromey <tromey@adacore.com>
11892
11893 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11894 help text. Remove dead code.
11895
11896 2019-03-29 Keith Seitz <keiths@redhat.com>
11897
11898 From Siddhesh Poyarekar:
11899 * f-lang.h (f77_get_upperbound): Return LONGEST.
11900 (f77_get_lowerbound): Likewise.
11901 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11902 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11903 print them.
11904 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11905 plongest to format print it.
11906 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11907 (f77_get_upperbound): Likewise.
11908 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11909 LOWER_BOUND to LONGEST.
11910 (f77_create_arrayprint_offset_tbl): Likewise.
11911
11912 2019-03-29 Keith Seitz <keiths@redhat.com>
11913
11914 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11915 %s/pulongest for TYPE_LENGTH instead of %d in format
11916 strings.
11917 * ada-typerint.c (ada_print_type): Likewise.
11918 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11919 * compile/compile-c-support.c (generate_register_struct): Likewise.
11920 * gdbtypes.c (recursive_dump_type): Likewise.
11921 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11922 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11923 instead of %d in format strings.
11924 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11925 to std::min to ULONGEST.
11926 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11927 instead of %d in format strings.
11928 * tracepoint.c (info_scope_command): Likewise.
11929 * typeprint.c (print_offset_data::update)
11930 (print_offset_data::finish): Likewise.
11931 * xtensa-tdep.c (xtensa_store_return_value)
11932 (xtensa_push_dummy_call): Likewise.
11933
11934 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11935
11936 * windows-nat.c (display_selector): Fixed format specifications
11937 for 64-bit Cygwin.
11938
11939 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11940
11941 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11942
11943 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11944
11945 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11946 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11947 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11948 (nios2_linux_init_abi): Install it.
11949
11950 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11951
11952 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11953
11954 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11955
11956 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11957
11958 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11959 Tom Tromey <tromey@adacore.com>
11960
11961 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11962
11963 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11964
11965 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11966 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11967 method to compute the bounds of range types. Also print "[evaluated]"
11968 if the bounds' values come from a dynamic evaluation.
11969
11970 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11971
11972 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11973 whitespace when pretty printing is on.
11974
11975 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11976
11977 * ppc-linux-nat.c: Add include.
11978
11979 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11980
11981 * NEWS: Mention AArch64 Pointer Authentication.
11982
11983 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11984
11985 * arm-linux-nat.c: Add include.
11986
11987 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11988
11989 * source-cache.c (source_cache::get_source_lines): Re-read
11990 fullname after calling open_source_file.
11991
11992 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11993
11994 * NEWS: Mention TLS support for FreeBSD.
11995
11996 2019-03-25 Tom Tromey <tromey@adacore.com>
11997
11998 * minsyms.c (BUNCH_SIZE): Update comment.
11999 (~minimal_symbol_reader): Remove old comment.
12000 (compact_minimal_symbols): Update comment.
12001 (minimal_symbol_reader::install): Remove old comment. Update
12002 other comments.
12003
12004 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12005
12006 * s390-linux-nat.c: Add include.
12007
12008 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12009
12010 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12011 Call linux_get_hwcap.
12012 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12013 Likewise.
12014 (aarch64_linux_get_hwcap): Remove function.
12015 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12016 declaration.
12017 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12018 linux_get_hwcap.
12019 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12020 * linux-tdep.c (linux_get_hwcap): Add function.
12021 (linux_get_hwcap2): Likewise.
12022 * linux-tdep.h (linux_get_hwcap): Add declaration.
12023 (linux_get_hwcap2): Likewise.
12024 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12025 (ppc_linux_get_hwcap2): Likewise.
12026 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12027 linux_get_hwcap.
12028 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12029 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12030 (ppc_linux_nat_target::read_description): Likewise.
12031 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12032 * s390-linux-nat.c: Likewise.
12033 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12034
12035 2019-03-24 Tom Tromey <tom@tromey.com>
12036
12037 * ada-lang.c (standard_lookup): Simplify initialization.
12038 (ada_lookup_symbol_nonlocal): Simplify return.
12039 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12040 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12041 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12042 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12043 initialization.
12044 * solib.c (solib_global_lookup): Simplify.
12045 * symtab.c (null_block_symbol): Remove.
12046 (symbol_cache_lookup): Simplify returns.
12047 (lookup_language_this): Simplify returns.
12048 (lookup_symbol_aux): Simplify return.
12049 (lookup_local_symbol): Simplify returns.
12050 (lookup_global_symbol_from_objfile): Simplify return.
12051 (lookup_symbol_in_objfile_symtabs)
12052 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12053 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12054 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12055 * cp-namespace.c (cp_lookup_bare_symbol)
12056 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12057 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12058 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12059 (cp_lookup_symbol_via_imports): Simplify initialization.
12060 (find_symbol_in_baseclass): Likewise.
12061 * symtab.h (null_block_symbol): Remove.
12062 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12063 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12064 (d_lookup_symbol_module): Likewise.
12065 (find_symbol_in_baseclass): Simplify initialization.
12066
12067 2019-03-24 Tom Tromey <tom@tromey.com>
12068
12069 * expression.h: Don't include symtab.h.
12070 (struct block): Forward declare.
12071
12072 2019-03-24 Tom Tromey <tom@tromey.com>
12073
12074 * c-exp.y (typebase): Remove casts.
12075 * gdbtypes.c (lookup_unsigned_typename, )
12076 (lookup_signed_typename): Remove cast.
12077 * eval.c (parse_to_comma_and_eval): Remove cast.
12078 * parse.c (write_dollar_variable): Remove cast.
12079 * block.h (struct block) <superblock>: Now const.
12080 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12081 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12082 (map_block): Make "block" const.
12083 * symfile.h (struct quick_symbol_functions)
12084 <map_matching_symbols>: Constify block argument to "callback".
12085 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12086 const.
12087 (find_pc_sect_compunit_symtab): Make "b" const.
12088 (find_symbol_at_address): Likewise.
12089 (search_symbols): Likewise.
12090 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12091 (dw2_debug_names_lookup_symbol): Likewise.
12092 (dw2_map_matching_symbols): Update.
12093 * p-valprint.c (pascal_val_print): Remove "block".
12094 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12095 (aux_add_nonlocal_symbols): Make "block" const.
12096 (resolve_subexp): Remove cast.
12097 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12098 const.
12099 (iterate_over_file_blocks): Likewise.
12100 * f-exp.y (%union) <bval>: Remove.
12101 * coffread.c (patch_opaque_types): Make "b" const.
12102 * spu-tdep.c (spu_catch_start): Make "block" const.
12103 * c-valprint.c (print_unpacked_pointer): Remove "block".
12104 * symmisc.c (dump_symtab_1): Make "b" const.
12105 (block_depth): Make "block" const.
12106 * d-exp.y (%union) <bval>: Remove.
12107 * cp-support.h (cp_lookup_rtti_type): Update.
12108 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12109 * psymtab.c (psym_lookup_symbol): Make "block" const.
12110 (maintenance_check_psymtabs): Make "b" const.
12111 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12112 (enumerate_locals, enumerate_args): Update.
12113 * python/py-symtab.c (stpy_global_block): Make "block" const.
12114 (stpy_static_block): Likewise.
12115 * inline-frame.c (block_starting_point_at): Make "new_block"
12116 const.
12117 * block.c (find_block_in_blockvector): Make return type const.
12118 (blockvector_for_pc_sect): Make "b" const.
12119 (find_block_in_blockvector): Make "b" const.
12120
12121 2019-03-23 Tom Tromey <tom@tromey.com>
12122
12123 * varobj.c (varobj_create): Update.
12124 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12125 * printcmd.c (display_command, do_one_display): Don't reset
12126 innermost_block.
12127 * parser-defs.h (enum innermost_block_tracker_type): Move to
12128 expression.h.
12129 (innermost_block): Update comment.
12130 * parse.c (parse_exp_1): Add tracker_types parameter.
12131 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12132 tracker_types parameter. Reset innermost_block.
12133 (parse_exp_in_context): Remove.
12134 (parse_expression_for_completion): Update.
12135 * objfiles.c (~objfile): Don't reset expression_context_block or
12136 innermost_block.
12137 * expression.h (enum innermost_block_tracker_type): Move from
12138 parser-defs.h.
12139 (parse_exp_1): Add tracker_types parameter.
12140 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12141 reset innermost_block.
12142
12143 2019-03-23 Tom Tromey <tom@tromey.com>
12144
12145 * objfiles.h: Include bcache.h.
12146
12147 2019-03-23 Tom Tromey <tom@tromey.com>
12148
12149 * linespec.c (get_current_search_block): Use
12150 scoped_restore_current_language.
12151 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12152
12153 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12154 Jiong Wang <jiong.wang@arm.com>
12155
12156 * aarch64-linux-tdep.c
12157 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12158 section.
12159 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12160
12161 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12162 Jiong Wang <jiong.wang@arm.com>
12163
12164 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12165 instructions.
12166 (aarch64_analyze_prologue_test): Add PACIASP test.
12167 (aarch64_prologue_prev_register): Unmask PC value.
12168
12169 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12170 Jiong Wang <jiong.wang@arm.com>
12171
12172 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12173 (aarch64_dwarf2_prev_register): Unmask PC value.
12174 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12175 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12176 DW_CFA_AARCH64_negate_ra_state.
12177 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12178
12179 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12180 Jiong Wang <jiong.wang@arm.com>
12181
12182 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12183 registers.
12184 (aarch64_pseudo_register_name): Likewise.
12185 (aarch64_pseudo_register_type): Likewise.
12186 (aarch64_pseudo_register_reggroup_p): Likewise.
12187 (aarch64_gdbarch_init): Add pauth registers.
12188 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12189 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12190 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12191 (struct gdbarch_tdep): Add regnum for ra_state.
12192
12193 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12194 Jiong Wang <jiong.wang@arm.com>
12195
12196 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12197
12198 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12199 Jiong Wang <jiong.wang@arm.com>
12200
12201 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12202 function.
12203 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12204 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12205 (aarch64_gdbarch_init): Add puth registers.
12206 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12207 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12208 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12209
12210 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12211 Jiong Wang <jiong.wang@arm.com>
12212
12213 * aarch64-linux-nat.c
12214 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12215 * aarch64-linux-tdep.c
12216 (aarch64_linux_core_read_description): Likewise.
12217 (aarch64_linux_get_hwcap): New function.
12218 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12219 (aarch64_linux_get_hwcap): New declaration.
12220
12221 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12222 Jiong Wang <jiong.wang@arm.com>
12223
12224 * aarch64-linux-nat.c
12225 (aarch64_linux_nat_target::read_description): Add pauth param.
12226 * aarch64-linux-tdep.c
12227 (aarch64_linux_core_read_description): Likewise.
12228 * aarch64-tdep.c (struct target_desc): Add in pauth.
12229 (aarch64_read_description): Add pauth param.
12230 (aarch64_gdbarch_init): Likewise.
12231 * aarch64-tdep.h (aarch64_read_description): Likewise.
12232 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12233 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12234 * features/Makefile: Add new files.
12235 * features/aarch64-pauth.c: New file.
12236 * features/aarch64-pauth.xml: New file.
12237
12238 2019-03-20 Tom Tromey <tromey@adacore.com>
12239
12240 * infrun.c (handle_inferior_event): Rename from
12241 handle_inferior_event_1. Create a scoped_value_mark.
12242 (handle_inferior_event): Remove.
12243
12244 2019-03-19 Tom Tromey <tromey@adacore.com>
12245
12246 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12247 * infrun.h (print_stop_event): Add "displays" parameter.
12248 * infrun.c (print_stop_event): Add "displays" parameter.
12249
12250 2019-03-19 Pedro Alves <palves@redhat.com>
12251
12252 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12253 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12254 to -1. Fix TABs vs spaces.
12255 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12256 * tui/tui-out.h (tui_ui_out) Add intro comments.
12257 <m_line, m_start_of_line>: In-class initialize, and add describing
12258 comment.
12259
12260 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12261
12262 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12263 variable names.
12264 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12265
12266 2019-03-18 Pedro Alves <palves@redhat.com>
12267 Eli Zaretskii <eliz@gnu.org>
12268
12269 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12270 m_line and m_start_of_line.
12271
12272 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12273
12274 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12275 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12276 it returns a newline. This fixes a regression in TU mode, whereby
12277 the next line is output on the same screen line as the user input.
12278
12279 2019-03-18 Tom Tromey <tromey@adacore.com>
12280
12281 * minsyms.c (minimal_symbol_reader::install): Remove call to
12282 obstack_blank.
12283
12284 2019-03-18 Pedro Alves <palves@redhat.com>
12285
12286 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12287 New globals.
12288 (apply_style): New, factored out from ...
12289 (apply_ansi_escape): ... this. Handle reverse video mode.
12290 (tui_set_reverse_mode): New function.
12291 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12292 * tui/tui-winsource.c (tui_show_source_line): Use
12293 tui_set_reverse_mode instead of setting A_STANDOUT.
12294 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12295 New setter methods.
12296
12297 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12298
12299 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12300 Handle tabs.
12301
12302 2019-03-18 Tom Tromey <tromey@adacore.com>
12303
12304 * ada-lang.c (empty_array): Add "high" parameter.
12305 (ada_evaluate_subexp): Update.
12306
12307 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12308
12309 * unittests/string_view-selftests.c: Define
12310 _initialize_string_view_selftests unconditionally.
12311
12312 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12313
12314 PR gdb/24350
12315 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12316
12317 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12318
12319 PR gdb/24351
12320 * windows-nat.c (display_selector): Fix format specifiers.
12321
12322 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12323
12324 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12325 tui_refill_source_window instead of tui_refresh_win, to update the
12326 current execution line. This fixes redisplay of the current line
12327 when stepping through the code with "next" or "step".
12328
12329 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12330
12331 * source-cache.c (source_cache::get_source_lines): Call
12332 find_source_lines to initialize s->nlines. This fixes vertical
12333 scrolling of TUI source window when the DOWN arrow is pressed.
12334
12335 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12336
12337 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12338 linux-thread-db.c (_initialize_thread_db): Likewise.
12339
12340 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12341
12342 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12343 wclrtoeol in tui_show_source_line". This reverts changes made in
12344 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12345
12346 2019-03-15 Tom Tromey <tom@tromey.com>
12347
12348 * symtab.h (struct minimal_symbol): Derive from
12349 general_symbol_info.
12350 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12351 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12352 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12353 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12354 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12355 (MSYMBOL_SEARCH_NAME): Update.
12356 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12357 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12358 * minsyms.c (minimal_symbol_reader::record_full): Update.
12359
12360 2019-03-15 Tom Tromey <tom@tromey.com>
12361
12362 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12363
12364 2019-03-15 Tom Tromey <tom@tromey.com>
12365
12366 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12367 unique_xmalloc_ptr.
12368 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12369 Update.
12370 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12371 (build_minimal_symbol_hash_tables)
12372 (minimal_symbol_reader::install): Update.
12373
12374 2019-03-15 Tom Tromey <tom@tromey.com>
12375
12376 * symtab.c (create_demangled_names_hash): Update.
12377 (symbol_set_names): Update.
12378 * objfiles.h (struct objfile_per_bfd_storage)
12379 <demangled_names_hash>: Now an htab_up.
12380 * objfiles.c (objfile_per_bfd_storage): Simplify.
12381
12382 2019-03-15 Tom Tromey <tom@tromey.com>
12383
12384 * objfiles.h (struct objfile_per_bfd_storage): Declare
12385 destructor.
12386 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12387 New.
12388 (get_objfile_bfd_data): Use new. Don't initialize
12389 language_of_main.
12390 (free_objfile_per_bfd_storage): Remove.
12391 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12392
12393 2019-03-15 Tom Tromey <tom@tromey.com>
12394
12395 * symfile.c (reread_symbols): Update.
12396 * objfiles.c (objfile::objfile): Update.
12397 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12398 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12399 comment.
12400 (minimal_symbol_reader::install): Update.
12401 (terminate_minimal_symbol_table): Remove.
12402 * jit.c (jit_object_close_impl): Update.
12403
12404 2019-03-15 Tom Tromey <tom@tromey.com>
12405
12406 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12407 initializations.
12408
12409 2019-03-15 Tom Tromey <tom@tromey.com>
12410
12411 * objfiles.h (struct objfile_per_bfd_storage)
12412 <demangled_hash_languages>: Now a bitset.
12413 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12414 (lookup_minimal_symbol): Update.
12415
12416 2019-03-15 Tom Tromey <tom@tromey.com>
12417
12418 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12419 Don't return the symbol.
12420 * coffread.c (record_minimal_symbol): Use record_full.
12421
12422 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12423
12424 The MS-Windows port of ncurses fails to switch to a color pair if
12425 one or both of the colors are the implicit default colors. This
12426 change records the default colors when TUI is initialized, and
12427 then specifies them explicitly when a color pair uses the default
12428 colors. This allows color styling in TUI mode on MS-Windows.
12429
12430 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12431 ncurses_norm_attr.
12432 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12433 colors in ncurses_norm_attr.
12434 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12435 "none", replace it with the default color recorded in
12436 ncurses_norm_attr.
12437
12438 2019-03-14 Tom Tromey <tromey@adacore.com>
12439
12440 * source-cache.h (class source_cache) <get_source_lines>: Return
12441 std::string.
12442 * source-cache.c (source_cache::extract_lines): Handle case where
12443 first_pos==npos. Return std::string.
12444 (source_cache::get_source_lines): Update.
12445
12446 2019-03-14 Tom Tromey <tromey@adacore.com>
12447
12448 * NEWS: Add item for "style sources" commands.
12449 * source-cache.c (source_cache::get_source_lines): Check
12450 source_styling.
12451 * cli/cli-style.c (source_styling): New global.
12452 (_initialize_cli_style): Add "style sources" commands.
12453 (show_style_sources): New function.
12454 * cli/cli-style.h (source_styling): Declare.
12455
12456 2019-03-14 Pedro Alves <palves@redhat.com>
12457 Tom Tromey <tromey@adacore.com>
12458
12459 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12460 * tui/tui-winsource.c (tui_refill_source_window): New function,
12461 from...
12462 (tui_horizontal_source_scroll): ... here. Move some logic.
12463 * cli/cli-style.c (set_style_enabled): Notify new observable.
12464 * tui/tui-hooks.c (tui_redisplay_source): New function.
12465 (tui_attach_detach_observers): Attach or detach
12466 tui_redisplay_source.
12467 * observable.h (source_styling_changed): New observable.
12468 * observable.c: Define source_styling_changed observable.
12469
12470 2019-03-13 Tom Tromey <tromey@adacore.com>
12471
12472 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12473 (i386_gnu_nat_target::store_registers): Update.
12474 * target-debug.h (target_debug_print_std_string): New macro.
12475 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12476 * windows-tdep.c (display_one_tib): Update.
12477 * tui/tui-stack.c (tui_make_status_line): Update.
12478 * top.c (print_inferior_quit_action): Update.
12479 * thread.c (thr_try_catch_cmd): Update.
12480 (add_thread_with_info): Update.
12481 (thread_target_id_str): Update.
12482 (thr_try_catch_cmd): Update.
12483 (thread_command): Update.
12484 (thread_find_command): Update.
12485 * record-btrace.c (record_btrace_target::info_record)
12486 (record_btrace_resume_thread, record_btrace_target::resume)
12487 (record_btrace_cancel_resume, record_btrace_step_thread)
12488 (record_btrace_target::wait, record_btrace_target::wait)
12489 (record_btrace_target::wait, record_btrace_target::stop): Update.
12490 * progspace.c (print_program_space): Update.
12491 * process-stratum-target.c
12492 (process_stratum_target::thread_address_space): Update.
12493 * linux-fork.c (linux_fork_mourn_inferior)
12494 (detach_checkpoint_command, info_checkpoints_command)
12495 (linux_fork_context): Update.
12496 (linux_fork_detach): Update.
12497 (class scoped_switch_fork_info): Update.
12498 (delete_checkpoint_command): Update.
12499 * infrun.c (follow_fork_inferior): Update.
12500 (follow_fork_inferior): Update.
12501 (proceed_after_vfork_done): Update.
12502 (handle_vfork_child_exec_or_exit): Update.
12503 (follow_exec): Update.
12504 (displaced_step_prepare_throw): Update.
12505 (displaced_step_restore): Update.
12506 (start_step_over): Update.
12507 (resume_1): Update.
12508 (clear_proceed_status_thread): Update.
12509 (proceed): Update.
12510 (print_target_wait_results): Update.
12511 (do_target_wait): Update.
12512 (context_switch): Update.
12513 (stop_all_threads): Update.
12514 (restart_threads): Update.
12515 (finish_step_over): Update.
12516 (handle_signal_stop): Update.
12517 (switch_back_to_stepped_thread): Update.
12518 (keep_going_pass_signal): Update.
12519 (print_exited_reason): Update.
12520 (normal_stop): Update.
12521 * inferior.c (inferior_pid_to_str): Change return type.
12522 (print_selected_inferior): Update.
12523 (add_inferior): Update.
12524 (detach_inferior): Update.
12525 * dummy-frame.c (fprint_dummy_frames): Update.
12526 * dcache.c (dcache_info_1): Update.
12527 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12528 (btrace_fetch, btrace_clear): Update.
12529 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12530 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12531 type.
12532 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12533 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12534 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12535 * gdbarch.c, gdbarch.h: Rebuild.
12536 * gdbarch.sh (core_pid_to_str): Change return type.
12537 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12538 return type.
12539 (windows_nat_target::pid_to_str): Change return type.
12540 (windows_delete_thread): Update.
12541 (windows_nat_target::attach): Update.
12542 (windows_nat_target::files_info): Update.
12543 * target-delegates.c: Rebuild.
12544 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12545 return type.
12546 (sol_thread_target::pid_to_str): Change return type.
12547 * remote.c (class remote_target) <pid_to_str>: Change return
12548 type.
12549 (remote_target::pid_to_str): Change return type.
12550 (extended_remote_target::attach, remote_target::remote_stop_ns)
12551 (remote_target::remote_notif_remove_queued_reply)
12552 (remote_target::push_stop_reply, remote_target::disable_btrace):
12553 Update.
12554 (extended_remote_target::attach): Update.
12555 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12556 type.
12557 (gdbsim_target::pid_to_str): Change return type.
12558 * ravenscar-thread.c (struct ravenscar_thread_target)
12559 <pid_to_str>: Change return type.
12560 (ravenscar_thread_target::pid_to_str): Change return type.
12561 * procfs.c (class procfs_target) <pid_to_str>: Change return
12562 type.
12563 (procfs_target::pid_to_str): Change return type.
12564 (procfs_target::attach): Update.
12565 (procfs_target::detach): Update.
12566 (procfs_target::fetch_registers): Update.
12567 (procfs_target::store_registers): Update.
12568 (procfs_target::wait): Update.
12569 (procfs_target::files_info): Update.
12570 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12571 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12572 return type.
12573 (nto_procfs_target::pid_to_str): Change return type.
12574 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12575 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12576 return type.
12577 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12578 (exit_lwp): Update.
12579 (attach_proc_task_lwp_callback, get_detach_signal)
12580 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12581 (linux_nat_target::resume, wait_lwp, stop_callback)
12582 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12583 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12584 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12585 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12586 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12587 type.
12588 (inf_ptrace_target::attach): Update.
12589 (inf_ptrace_target::files_info): Update.
12590 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12591 type.
12592 (go32_nat_target::pid_to_str): Change return type.
12593 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12594 (gnu_nat_target::wait): Update.
12595 (gnu_nat_target::wait): Update.
12596 (gnu_nat_target::resume): Update.
12597 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12598 (fbsd_nat_target::wait): Update.
12599 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12600 type.
12601 (darwin_nat_target::attach): Update.
12602 * corelow.c (class core_target) <pid_to_str>: Change return type.
12603 (core_target::pid_to_str): Change return type.
12604 * target.c (normal_pid_to_str): Change return type.
12605 (default_pid_to_str): Likewise.
12606 (target_pid_to_str): Change return type.
12607 (target_translate_tls_address): Update.
12608 (target_announce_detach): Update.
12609 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12610 return type.
12611 (bsd_uthread_target::pid_to_str): Change return type.
12612 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12613 type.
12614 (bsd_kvm_target::pid_to_str): Change return type.
12615 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12616 return type.
12617 (aix_thread_target::pid_to_str): Change return type.
12618 * target.h (struct target_ops) <pid_to_str>: Change return type.
12619 (target_pid_to_str, normal_pid_to_str): Likewise.
12620 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12621 type.
12622 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12623 type.
12624 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12625 return type.
12626 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12627 type.
12628 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12629 type.
12630 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12631 return type.
12632
12633 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12634
12635 * NEWS: Mention that the new default MI version is 3. Mention
12636 changes to the output of commands and events that deal with
12637 multi-location breakpoints.
12638 * breakpoint.c: Include "mi/mi-out.h".
12639 (print_one_breakpoint): Change output syntax if using MI version
12640 >= 3.
12641 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12642 New.
12643 (mi_multi_location_breakpoint_output_fixed): New.
12644 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12645 (mi_cmd_fix_multi_location_breakpoint_output): New.
12646 (mi_multi_location_breakpoint_output_fixed): New.
12647 * mi/mi-cmds.c (mi_cmds): Register command
12648 -fix-multi-location-breakpoint-output.
12649 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12650 interpreter "mi".
12651
12652 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12653
12654 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12655 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12656 instantiate mi_ui_out based on interpreter name.
12657 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12658 * mi/mi-main.c (mi_load_progress): Likewise.
12659
12660 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12661
12662 * NEWS: Combine separate "New targets" sections for 8.3.
12663
12664 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12665
12666 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12667 (ppcfbsd_init_abi): Install gdbarch
12668 "fetch_tls_load_module_address" and "get_thread_local_address"
12669 methods.
12670
12671 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12672
12673 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12674 (riscv_fbsd_init_abi): Install gdbarch
12675 "fetch_tls_load_module_address" and "get_thread_local_address"
12676 methods.
12677
12678 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12679
12680 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12681 (i386fbsd_init_abi): Install gdbarch
12682 "fetch_tls_load_module_address" and "get_thread_local_address"
12683 methods.
12684
12685 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12686
12687 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12688 (amd64fbsd_init_abi): Install gdbarch
12689 "fetch_tls_load_module_address" and "get_thread_local_address"
12690 methods.
12691
12692 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12693
12694 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12695 (struct fbsd_pspace_data): New type.
12696 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12697 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12698 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12699 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12700 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12701
12702 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12703
12704 * gdbtypes.c (lookup_struct_elt): New function.
12705 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12706 * gdbtypes.h (struct struct_elt): New type.
12707 (lookup_struct_elt): New prototype.
12708
12709 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12710
12711 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12712 remove disabled code block.
12713
12714 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12715
12716 * gdbarch.sh (get_thread_local_address): New method.
12717 * gdbarch.h, gdbarch.c: Regenerate.
12718 * target.c (target_translate_tls_address): Use
12719 gdbarch_get_thread_local_address if present instead of
12720 target::get_thread_local_address.
12721
12722 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12723
12724 * target.h (target::get_thread_local_address): Update comment.
12725
12726 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12727
12728 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12729 objfile->separate_debug_objfile_backlink if not NULL.
12730
12731 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12732
12733 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12734 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12735 (amd64bsd_store_inferior_registers): Likewise.
12736 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12737 Enable segment base registers.
12738 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12739 PT_GETFSBASE and PT_GETGSBASE.
12740 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12741 PT_SETGSBASE.
12742 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12743 segment base registers.
12744 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12745
12746 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12747
12748 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12749 Update calls to i386_target_description to add 'segments'
12750 parameter.
12751 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12752 add segment base registers.
12753 * arch/i386.c (i386_create_target_description): Add 'segments'
12754 parameter to enable segment base registers.
12755 * arch/i386.h (i386_create_target_description): Likewise.
12756 * features/i386/32bit-segments.xml: New file.
12757 * features/i386/32bit-segments.c: Generate.
12758 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12759 call to i386_target_description to add 'segments' parameter.
12760 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12761 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12762 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12763 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12764 if feature is present.
12765 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12766 Add 'segments' parameter to call to i386_target_description.
12767 (i386_target_description): Add 'segments' parameter to enable
12768 segment base registers.
12769 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12770 to call to i386_target_description.
12771 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12772 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12773 Define I386_NUM_REGS.
12774 (i386_target_description): Add 'segments' parameter to enable
12775 segment base registers.
12776
12777 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12778
12779 PR/24325
12780 * source-cache.c: #undef open and close, to avoid unresolved
12781 externals during linking.
12782
12783 2019-03-12 Tom Tromey <tromey@adacore.com>
12784
12785 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12786 const. Add initializers.
12787 (_initialize_remote): Don't initialize ptid globals.
12788
12789 2019-03-12 Pedro Alves <palves@redhat.com>
12790
12791 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12792
12793 2019-03-12 Pedro Alves <palves@redhat.com>
12794
12795 * cp-name-parser.y (main): Remove unused 'len' variable.
12796
12797 2019-03-12 Tom Tromey <tromey@adacore.com>
12798
12799 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12800 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12801
12802 2019-03-12 Tom Tromey <tromey@adacore.com>
12803
12804 * linux-nat.c (iterate_over_lwps): Update.
12805 (stop_callback): Remove parameter.
12806 (stop_wait_callback, detach_callback, resume_set_callback)
12807 (select_singlestep_lwp_callback, set_ignore_sigint)
12808 (status_callback, resumed_callback, resume_clear_callback)
12809 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12810 data parameter.
12811 (linux_nat_target::detach, linux_nat_target::resume)
12812 (linux_stop_and_wait_all_lwps, select_event_lwp)
12813 (linux_nat_filter_event, linux_nat_wait_1)
12814 (linux_nat_target::kill, linux_nat_target::stop)
12815 (linux_nat_target::stop): Update.
12816 (linux_nat_resume_callback): Change type.
12817 (resume_stopped_resumed_lwps, count_events_callback)
12818 (select_event_lwp_callback): Likewise.
12819 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12820 * arm-linux-nat.c (struct update_registers_data): Remove.
12821 (update_registers_callback): Change type.
12822 (arm_linux_insert_hw_breakpoint1): Update.
12823 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12824 parameter.
12825 (x86_linux_dr_set_addr): Update.
12826 (x86_linux_dr_set_control): Update.
12827 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12828 (iterate_over_lwps): Use gdb::function_view.
12829 * nat/aarch64-linux-hw-point.c (struct
12830 aarch64_dr_update_callback_param): Remove.
12831 (debug_reg_change_callback): Change type.
12832 (aarch64_notify_debug_reg_change): Update.
12833 * s390-linux-nat.c (s390_refresh_per_info): Update.
12834
12835 2019-03-11 Tom Tromey <tromey@adacore.com>
12836
12837 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12838 redundant assignment to "this_cu".
12839
12840 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12841
12842 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12843
12844 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12845
12846 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12847 from...
12848 (rank_one_type): ... this.
12849
12850 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12851
12852 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12853 from...
12854 (rank_one_type): ... this.
12855
12856 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12857
12858 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12859 from...
12860 (rank_one_type): ... this.
12861
12862 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12863
12864 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12865 from...
12866 (rank_one_type): ... this.
12867
12868 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12869
12870 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12871 from...
12872 (rank_one_type): ... this.
12873
12874 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12875
12876 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12877 from...
12878 (rank_one_type): ... this.
12879
12880 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12881
12882 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12883 from...
12884 (rank_one_type): ... this.
12885
12886 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12887
12888 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12889 from...
12890 (rank_one_type): ... this.
12891
12892 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12893
12894 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12895 from...
12896 (rank_one_type): ... this.
12897
12898 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12901 from...
12902 (rank_one_type): ... this.
12903
12904 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12905
12906 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12907 from...
12908 (rank_one_type): ... this.
12909
12910 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12911
12912 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12913 from...
12914 (rank_one_type): ... this.
12915
12916 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12917
12918 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12919 inferior-events' shows the example events.
12920
12921 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12922
12923 Support styling on native MS-Windows console
12924
12925 PR/24315
12926 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12927 on MS-Windows if $TERM is not defined.
12928
12929 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12930
12931 * posix-hdep.c (gdb_console_fputs):
12932 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12933 functions.
12934 * ui-file.h (gdb_console_fputs): Add prototype.
12935
12936 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12937 back to fputs only if the former returns zero.
12938
12939 2019-03-07 Tom Tromey <tom@tromey.com>
12940
12941 * symmisc.c (print_symbol_bcache_statistics): Update.
12942 (print_objfile_statistics): Update.
12943 * symfile.c (allocate_symtab): Update.
12944 * stabsread.c: Don't include bcache.h.
12945 * psymtab.h (struct psymbol_bcache): Don't declare.
12946 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12947 (psymbol_bcache_init, psymbol_bcache_free)
12948 (psymbol_bcache_get_bcache): Don't declare.
12949 * psymtab.c (struct psymbol_bcache): Remove.
12950 (psymtab_storage::psymtab_storage): Update.
12951 (psymtab_storage::~psymtab_storage): Update.
12952 (psymbol_bcache_init, psymbol_bcache_free)
12953 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12954 (add_psymbol_to_bcache): Update.
12955 (allocate_psymtab): Update.
12956 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12957 macro_cache>: No longer pointers.
12958 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12959 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12960 * macrotab.c (macro_bcache): Update.
12961 * macroexp.c: Don't include bcache.h.
12962 * gdbtypes.c (check_types_worklist): Update.
12963 (types_deeply_equal): Remove TRY/CATCH. Update.
12964 * elfread.c (elf_symtab_read): Update.
12965 * dwarf2read.c: Don't include bcache.h.
12966 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12967 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12968 (print_bcache_statistics, bcache_memory_used): Don't declare.
12969 (struct bcache): Move from bcache.c. Add constructor, destructor,
12970 methods. Rename all data members.
12971 * bcache.c (struct bcache): Move to bcache.h.
12972 (bcache::expand_hash_table): Rename from expand_hash_table.
12973 (bcache): Remove.
12974 (bcache::insert): Rename from bcache_full.
12975 (bcache::compare): Rename from bcache_compare.
12976 (bcache_xmalloc): Remove.
12977 (bcache::~bcache): Rename from bcache_xfree.
12978 (bcache::print_statistics): Rename from print_bcache_statistics.
12979 (bcache::memory_used): Rename from bcache_memory_used.
12980
12981 2019-03-07 Pedro Alves <palves@redhat.com>
12982
12983 * infrun.c (normal_stop): Also check for
12984 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12985
12986 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12987
12988 * f-lang.c (value_from_host_double): Moved to...
12989 * value.c (value_from_host_double): ...here.
12990 * value.h (value_from_host_double): Declare.
12991 * guile/scm-math.c (vlscm_convert_typed_number): Use
12992 value_from_host_double.
12993 (vlscm_convert_number): Likewise.
12994 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12995 * python/py-value.c (convert_value_from_python): Likewise.
12996
12997 2019-03-06 Tom Tromey <tom@tromey.com>
12998
12999 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13000
13001 2019-03-06 Tom Tromey <tom@tromey.com>
13002
13003 * utils.h (free_current_contents): Don't declare.
13004 * utils.c (free_current_contents): Remove.
13005
13006 2019-03-06 Tom Tromey <tom@tromey.com>
13007
13008 * top.c (quit_force): Update.
13009 * main.c (captured_command_loop): Update.
13010 * common/new-op.c (operator new): Update.
13011 * common/common-exceptions.c (struct catcher)
13012 <save_cleanup_chain>: Remove member.
13013 (exceptions_state_mc_init): Update.
13014 (exception_try_scope_entry): Return nullptr.
13015 (exception_try_scope_exit, exception_rethrow)
13016 (throw_exception_sjlj, throw_exception_cxx): Update.
13017 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13018 (all_cleanups, do_cleanups, discard_cleanups)
13019 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13020 (restore_cleanups, restore_final_cleanups): Don't declare.
13021 (do_final_cleanups): Remove parameter.
13022 * common/cleanups.c (cleanup_chain, make_cleanup)
13023 (make_cleanup_dtor, all_cleanups, do_cleanups)
13024 (discard_my_cleanups, discard_cleanups)
13025 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13026 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13027 (null_cleanup): Remove.
13028 (do_final_cleanups): Remove parameter.
13029
13030 2019-03-06 Tom Tromey <tom@tromey.com>
13031
13032 * remote.c (remote_target::remote_parse_stop_reply): Use
13033 unique_xmalloc_ptr.
13034
13035 2019-03-06 Tom Tromey <tom@tromey.com>
13036
13037 * stabsread.c (struct stabs_field_info): Rename from field_info.
13038 <list, fnlist>: Add initializers.
13039 <obstack>: New member.
13040 (read_member_functions, read_struct_fields, read_baseclasses):
13041 Allocate on obstack. Don't use cleanups.
13042 (read_one_struct_field, read_member_functions, read_struct_fields)
13043 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13044 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13045 (read_struct_type): Update.
13046
13047 2019-03-06 Tom Tromey <tom@tromey.com>
13048
13049 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13050 * common/filestuff.h (make_cleanup_close): Don't declare.
13051 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13052 Remove.
13053
13054 2019-03-06 Tom Tromey <tom@tromey.com>
13055
13056 * solib-aix.c: Use make_scope_exit.
13057
13058 2019-03-06 Tom Tromey <tom@tromey.com>
13059
13060 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13061 Use make_scope_exit.
13062
13063 2019-03-06 Tom Tromey <tom@tromey.com>
13064
13065 * solib-svr4.c (disable_probes_interface): Remove parameter.
13066 (svr4_handle_solib_event): Use make_scope_exit.
13067
13068 2019-03-06 Tom Tromey <tom@tromey.com>
13069
13070 * remote.c (struct stop_reply_deleter): Remove.
13071 (stop_reply_up): Update.
13072 (struct stop_reply): Derive from notif_event. Don't typedef.
13073 <regcache>: Now a std::vector.
13074 (stop_reply_xfree): Remove.
13075 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13076 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13077 (remote_target::discard_pending_stop_replies): Use delete.
13078 (remote_target::remote_parse_stop_reply): Update.
13079 (remote_target::process_stop_reply): Update.
13080 * remote-notif.h (struct notif_event): Add virtual destructor.
13081 Remove "dtr" member.
13082 (struct notif_client) <alloc_event>: Return a unique_ptr.
13083 (notif_event_xfree): Don't declare.
13084 (notif_event_up): New typedef.
13085 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13086 (notif_event_xfree, do_notif_event_xfree): Remove.
13087 (remote_notif_state_xfree): Update.
13088
13089 2019-03-06 Tom Tromey <tom@tromey.com>
13090
13091 * infrun.c (displaced_step_clear_cleanup): Now a
13092 forward_scope_exit type.
13093 (displaced_step_prepare_throw): Update.
13094 (displaced_step_fixup): Update.
13095
13096 2019-03-06 Tom Tromey <tom@tromey.com>
13097
13098 * inferior.h (class inferior): Update comment.
13099 * gdbthread.h (class thread_info): Update comment.
13100
13101 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13102 Tom Tromey <tom@tromey.com>
13103
13104 * stabsread.h (struct stab_section_list): Remove.
13105 (coffstab_build_psymtabs): Update.
13106 * dbxread.c (symbuf_sections): Now a std::vector.
13107 (sect_idx): New global.
13108 (fill_symbuf): Update.
13109 (coffstab_build_psymtabs): Change type of stabsects parameter.
13110 Update.
13111 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13112 std::vector.
13113 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13114 (coff_locate_sections): Update.
13115 (coff_symfile_read): Remove cleanups. Update.
13116 (init_stringtab): Add storage parameter.
13117 (free_stringtab, free_stringtab_cleanup): Remove.
13118 (init_lineno): Add storage parameter.
13119 (free_linetab, free_linetab_cleanup): Remove.
13120
13121 2019-03-06 Pedro Alves <palves@redhat.com>
13122
13123 * linux-fork.c (fork_info::clobber_regs): Delete.
13124 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13125 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13126 comment. Adjust.
13127 (scoped_switch_fork_info::scoped_switch_fork_info)
13128 (checkpoint_command, linux_fork_context): Adjust
13129 fork_save_infrun_state calls.
13130
13131 2019-03-06 Pedro Alves <palves@redhat.com>
13132
13133 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13134 (inf_has_multiple_threads): Return 'bool' and rewrite using
13135 inferior_info::threads().
13136
13137 2019-03-06 Pedro Alves <palves@redhat.com>
13138
13139 * linux-fork.c: Include <list>.
13140 (fork_list): Now a std::list instance.
13141 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13142 (forks_exist_p, find_last_fork): Adjust.
13143 (new_fork): Delete.
13144 (one_fork_p): New.
13145 (add_fork): Adjust.
13146 (free_fork): Delete, folded into fork_info::~fork_info().
13147 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13148 Adjust.
13149 (init_fork_list): Delete.
13150 (linux_fork_killall, linux_fork_mourn_inferior)
13151 (linux_fork_detach, info_checkpoints_command): Adjust.
13152 (_initialize_linux_fork): No longer call init_fork_list.
13153
13154 2019-03-06 Pedro Alves <palves@redhat.com>
13155
13156 * linux-fork.c (new_fork): New, split out of ...
13157 (add_fork): ... this. Return void. Move "first fork" special
13158 case from here, to ...
13159 (checkpoint_command): ... here.
13160 * linux-linux.h (add_fork): Return void.
13161
13162 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13163
13164 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13165
13166 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13167 Chris January <chris.january@arm.com>
13168 David Lecomber <david.lecomber@arm.com>
13169
13170 * f-exp.y: New token, UNOP_INTRINSIC.
13171 (exp): New pattern using UNOP_INTRINSIC token.
13172 (f77_keywords): Add 'abs' keyword.
13173 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13174 (value_from_host_double): New function.
13175 (evaluate_subexp_f): Support UNOP_ABS.
13176
13177 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13178
13179 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13180 types.
13181
13182 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13185 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13186 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13187
13188 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13189
13190 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13191
13192 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13193 Chris January <chris.january@arm.com>
13194
13195 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13196 * f-exp.y: Define 'KIND' token.
13197 (exp): New pattern for KIND expressions.
13198 (ptype): Handle types with a kind extension.
13199 (direct_abs_decl): Extend to spot kind extensions.
13200 (f77_keywords): Add 'kind' to the list.
13201 (push_kind_type): New function.
13202 (convert_to_kind_type): New function.
13203 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13204 * parse.c (operator_length_standard): Likewise.
13205 * parser-defs.h (enum type_pieces): Add tp_kind.
13206 * std-operator.def: Add UNOP_KIND.
13207
13208 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13209
13210 * f-exp.y (f_parse): Set yydebug.
13211
13212 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13213
13214 * f-lang.c (evaluate_subexp_f): New function.
13215 (exp_descriptor_f): New global.
13216 (f_language_defn): Use exp_descriptor_f instead of
13217 exp_descriptor_standard.
13218
13219 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13220
13221 * f-exp.y (struct token): Add comments.
13222 (dot_ops): Remove uppercase versions and the end marker.
13223 (f77_keywords): Likewise.
13224 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13225 entries in the dot_ops array are case insensitive, and use
13226 strncasecmp to compare strings. Also some whitespace cleanup in
13227 this area. Similar for the f77_keywords array, except entries in
13228 this list might be case sensitive.
13229
13230 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * f-exp.y (struct f77_boolean_val): Add comments.
13233 (boolean_values): Remove uppercase versions, and end marker.
13234 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13235 and use strncasecmp to achieve case insensitivity. Additionally,
13236 perform whitespace cleanup around this code.
13237
13238 2019-03-06 Tom Tromey <tromey@adacore.com>
13239
13240 * remote-sim.c (gdbsim_target_open): Use result of
13241 gdb_argv::release.
13242
13243 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13244 Dirk Schubert <dirk.schubert@arm.com>
13245 Chris January <chris.january@arm.com>
13246
13247 * eval.c (evaluate_subexp_standard): Call Fortran argument
13248 wrapping logic.
13249 * f-lang.c (struct value): A value which can be passed into a
13250 Fortran function call.
13251 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13252 where appropriate.
13253 (struct type): Value ready for a Fortran function call.
13254 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13255 is needed.
13256 * f-lang.h (fortran_argument_convert): Declaration.
13257 (fortran_preserve_arg_pointer): Declaration.
13258 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13259
13260 2019-03-05 Tom Tromey <tromey@adacore.com>
13261
13262 * python/py-prettyprint.c (print_string_repr): Remove #if.
13263 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13264
13265 2019-03-05 Tom Tromey <tromey@adacore.com>
13266
13267 * target.c (the_dummy_target): Move later. Change type to
13268 "dummy_target".
13269 (initialize_targets): Don't initialize the_dummy_target.
13270
13271 2019-03-05 Tom Tromey <tromey@adacore.com>
13272
13273 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13274 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13275
13276 2019-03-05 Tom Tromey <tromey@adacore.com>
13277
13278 * windows-nat.c (windows_nat_target::attach)
13279 (windows_nat_target::detach): Don't call gdb_flush.
13280 * valprint.c (generic_val_print, val_print, val_print_string):
13281 Don't call gdb_flush.
13282 * utils.c (defaulted_query): Don't call gdb_flush.
13283 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13284 * target.c (target_announce_detach): Don't call gdb_flush.
13285 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13286 * remote.c (extended_remote_target::attach): Don't call
13287 gdb_flush.
13288 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13289 * printcmd.c (do_examine): Don't call gdb_flush.
13290 (info_display_command): Don't call gdb_flush.
13291 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13292 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13293 * memattr.c (info_mem_command): Don't call gdb_flush.
13294 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13295 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13296 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13297 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13298 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13299 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13300 (gnu_nat_target::detach): Don't call gdb_flush.
13301 * f-valprint.c (f_val_print): Don't call gdb_flush.
13302 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13303 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13304 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13305 gdb_flush.
13306 * c-valprint.c (c_val_print): Don't call gdb_flush.
13307 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13308
13309 2019-03-05 Tom Tromey <tromey@adacore.com>
13310
13311 * varobj.c (update_dynamic_varobj_children): Update.
13312 (install_default_visualizer): Use reset, not release.
13313 * value.c (set_internalvar): Update.
13314 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13315 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13316 ATTRIBUTE_UNUSED_RESULT.
13317
13318 2019-03-05 Tom Tromey <tromey@adacore.com>
13319
13320 * remote.c (class scoped_remote_fd) <release>: Add
13321 ATTRIBUTE_UNUSED_RESULT.
13322
13323 2019-03-05 Tom Tromey <tromey@adacore.com>
13324
13325 * macroexp.c (struct macro_buffer) <release>: Add
13326 ATTRIBUTE_UNUSED_RESULT.
13327
13328 2019-03-05 Tom Tromey <tromey@adacore.com>
13329
13330 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13331 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13332 ATTRIBUTE_UNUSED_RESULT.
13333
13334 2019-03-05 Tom Tromey <tromey@adacore.com>
13335
13336 * common/scoped_fd.h (class scoped_fd) <release>: Add
13337 ATTRIBUTE_UNUSED_RESULT.
13338
13339 2019-03-05 Tom Tromey <tromey@adacore.com>
13340
13341 * parser-defs.h (struct parser_state) <release>: Add
13342 ATTRIBUTE_UNUSED_RESULT.
13343
13344 2019-03-05 Tom Tromey <tromey@adacore.com>
13345
13346 * utils.h (class gdb_argv) <release>: Add
13347 ATTRIBUTE_UNUSED_RESULT.
13348 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13349
13350 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13351
13352 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13353 for-loop range, to avoid compiler warnings.
13354
13355 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13356 avoid compiler warnings about unused variables.
13357
13358 * NEWS: Mention end of support for native debugging on MS-Windows
13359 before XP.
13360
13361 PR gdb/24292
13362 * common/netstuff.c:
13363 * gdbserver/gdbreplay.c
13364 * gdbserver/remote-utils.c:
13365 * ser-tcp.c:
13366 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13367 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13368 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13369 'getaddrinfo' and 'freeaddrinfo' were not available before
13370 Windows XP, and mingw.org's MinGW headers by default define
13371 _WIN32_WINNT to 0x500.
13372
13373 2019-03-01 Gary Benson <gbenson@redhat.com>
13374
13375 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13376
13377 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13378 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13379
13380 PR gdb/8527
13381 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13382 set_sigint_trap, clear_sigint_trap.
13383
13384 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13385
13386 * target.c (target_detach): Clear the regcache and the
13387 frame cache.
13388
13389 2019-02-27 Pedro Alves <palves@redhat.com>
13390
13391 * utils.c (set_screen_size): When we cap the height/width sizes,
13392 tweak the corresponding command variable to show "unlimited":
13393
13394 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13395 Pedro Alves <palves@redhat.com>
13396
13397 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13398 before calling rl_set_screen_size.
13399
13400 2019-02-27 Tom Tromey <tromey@adacore.com>
13401
13402 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13403 define.
13404 * python/py-value.c: Remove Python 2.4 workaround.
13405 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13406 workaround.
13407 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13408 Python 2.4 workaround.
13409 * python/python-internal.h: Remove Python 2.4 comment.
13410 (Py_ssize_t): Don't define.
13411 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13412 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13413 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13414 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13415 * python/python.c (do_start_initialization): Remove Python 2.4
13416 workaround.
13417 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13418 (print_children): Remove Python 2.4 workaround.
13419 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13420 workaround.
13421 (CHARBUFFERPROC_NAME): Remove.
13422 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13423 Python 2.4 workaround.
13424
13425 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13426
13427 * NEWS: Note minimum Python version.
13428
13429 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13430
13431 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13432 code from these functions. Remove corresponding ifdefs. Use
13433 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13434 Remove gotos and target of gotos.
13435 (infpy_search_memory): Likewise.
13436
13437 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13438
13439 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13440 (hppa_gdbarch_init): Don't register deleted functions with
13441 gdbarch.
13442
13443 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13444
13445 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13446 (h8300_unwind_sp): Delete.
13447 (h8300_dummy_id): Delete.
13448 (h8300_gdbarch_init): Don't register deleted functions with
13449 gdbarch.
13450
13451 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13454 (ft32_unwind_pc): Delete.
13455 (ft32_unwind_sp): Delete.
13456 (ft32_gdbarch_init): Don't register deleted functions with
13457 gdbarch.
13458
13459 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13460
13461 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13462 (frv_unwind_pc): Delete.
13463 (frv_unwind_sp): Delete.
13464 (frv_gdbarch_init): Don't register deleted functions with
13465 gdbarch.
13466
13467 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13468
13469 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13470 (riscv_unwind_pc): Delete.
13471 (riscv_unwind_sp): Delete.
13472 (riscv_gdbarch_init): Don't register deleted functions with
13473 gdbarch.
13474
13475 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13478 (csky_unwind_pc): Delete.
13479 (csky_unwind_sp): Delete.
13480 (csky_gdbarch_init): Don't register deleted functions with
13481 gdbarch.
13482
13483 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13486 (cris_unwind_pc): Delete.
13487 (cris_unwind_sp): Delete.
13488 (cris_gdbarch_init): Don't register deleted functions with
13489 gdbarch.
13490
13491 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13492
13493 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13494 (bfin_unwind_pc): Delete.
13495 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13496
13497 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13498
13499 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13500 (arm_unwind_pc): Delete.
13501 (arm_unwind_sp): Delete.
13502 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13503
13504 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13505
13506 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13507 (arc_unwind_pc): Delete.
13508 (arc_unwind_sp): Delete.
13509 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13510
13511 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13514 (alpha_unwind_pc): Delete.
13515 (alpha_gdbarch_init): Don't register deleted functions with
13516 gdbarch.
13517
13518 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13521 (aarch64_unwind_pc): Delete.
13522 (aarch64_unwind_sp): Delete.
13523 (aarch64_gdbarch_init): Don't register deleted functions with
13524 gdbarch.
13525
13526 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13527
13528 * gdbtypes.c (type_align): Don't consider static members when
13529 computing structure alignment.
13530
13531 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13534 return 0 for other types.
13535 * arch-utils.c (default_type_align): Always return 0.
13536 * gdbarch.h: Regenerate.
13537 * gdbarch.sh (type_align): Extend comment.
13538 * gdbtypes.c (type_align): Add additional comments, always call
13539 gdbarch_type_align before applying the default rules.
13540 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13541 generic code will then apply a suitable default.
13542 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13543 types, return 0 for other types.
13544
13545 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13546
13547 * NEWS: Create a new section for the next release branch.
13548 Rename the section of the current branch, now that it has
13549 been cut.
13550
13551 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13552
13553 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13554 * version.in: Bump version to 8.3.50.DATE-git.
13555
13556 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13557
13558 * aix-thread.c (ptid_cmp): Remove unused variable.
13559 (get_signaled_thread): Likewise.
13560 (store_regs_user_thread): Likewise.
13561 (store_regs_kernel_thread): Likewise.
13562 (fetch_regs_kernel_thread): Remove shadowed variable.
13563
13564 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13565
13566 * features/riscv/32bit-cpu.xml: Add register numbers.
13567 * features/riscv/32bit-fpu.c: Regenerate.
13568 * features/riscv/32bit-fpu.xml: Add register numbers.
13569 * features/riscv/64bit-cpu.xml: Add register numbers.
13570 * features/riscv/64bit-fpu.c: Regenerate.
13571 * features/riscv/64bit-fpu.xml: Add register numbers.
13572
13573 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13574
13575 * NEWS: Mention two argument form of gdb.Value constructor.
13576 * python/py-value.c (convert_buffer_and_type_to_value): New
13577 function.
13578 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13579 Add support for handling an optional second argument. Call
13580 convert_buffer_and_type_to_value as appropriate.
13581 * python/python-internal.h (Py_buffer_deleter): New struct.
13582 (Py_buffer_up): New typedef.
13583
13584 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13585
13586 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13587 instead of releasing ownership.
13588
13589 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13590
13591 * dwarf2read.c (open_and_init_dwp_file): Call
13592 elf_numsections instead of bfd_count_sections to initialize
13593 dwp_file->num_sections.
13594
13595 2019-02-25 Tom Tromey <tromey@adacore.com>
13596
13597 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13598
13599 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13600
13601 * gcore.in: Add '--readnever' option when invoking GDB.
13602
13603 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13604
13605 * MAINTAINERS: Update my email address.
13606
13607 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13608
13609 * build-id.c (build_id_to_debug_bfd_1): New function.
13610 (build_id_to_debug_bfd): Look for separate debug file in
13611 sysroot.
13612
13613 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13614
13615 * gdbarch.sh: Update the copyright year range that is placed into
13616 generated files.
13617
13618 2019-02-22 Keith Seitz <keiths@redhat.com>
13619
13620 PR symtab/23853
13621 * linespec.c (create_sals_line_offset): Search for the default
13622 symtab's filename instead of its fullname.
13623
13624 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13625
13626 * NEWS: Update style defaults.
13627
13628 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13629
13630 * main.c (captured_main_1): Disable styling in batch mode.
13631
13632 2019-02-20 Tom Tromey <tom@tromey.com>
13633
13634 * symtab.c (symtab_symbol_info): Fix typos.
13635
13636 2019-02-20 Tom Tromey <tromey@adacore.com>
13637
13638 * findcmd.c (_initialize_mem_search): Use upper case for
13639 metasyntactic variables.
13640
13641 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13642
13643 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13644 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13645
13646 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13647
13648 * top.h (source_file_name): Change to std::string.
13649 * top.c (source_file_name): Likewise.
13650 (command_line_input): Adjust.
13651 * cli/cli-script.c (script_from_file): Adjust.
13652
13653 2019-02-19 Tom Tromey <tromey@adacore.com>
13654
13655 * ravenscar-thread.c
13656 (ravenscar_thread_target::update_thread_list): Don't call
13657 ada_build_task_list.
13658 * ada-lang.h (ada_build_task_list): Don't declare.
13659 * ada-tasks.c (struct ada_tasks_inferior_data)
13660 <task_list_valid_p>: Now bool.
13661 (read_known_tasks, ada_task_list_changed)
13662 (ada_tasks_invalidate_inferior_data): Update.
13663 (read_known_tasks_array): Return bool.
13664 (read_known_tasks_list): Likewise.
13665 (read_known_tasks): Return void.
13666 (ada_build_task_list): Now static.
13667
13668 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13671 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13672
13673 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13674
13675 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13676 variant for ada_tasks_pspace_data_handle and
13677 ada_tasks_inferior_data_handle.
13678 (ada_tasks_pspace_data_cleanup): New function.
13679 (ada_tasks_inferior_data_cleanup): New function.
13680
13681 2019-02-17 Tom Tromey <tom@tromey.com>
13682
13683 * macrotab.h (macro_source_fullname): Return a std::string.
13684 * macrotab.c (macro_include, check_for_redefinition)
13685 (macro_undef, macro_lookup_definition, foreach_macro)
13686 (foreach_macro_in_scope): Update.
13687 (macro_source_fullname): Return a std::string.
13688 * macrocmd.c (show_pp_source_pos): Update.
13689
13690 2019-02-17 Tom Tromey <tom@tromey.com>
13691
13692 * macrocmd.c (show_pp_source_pos): Style the file names.
13693
13694 2019-02-17 Tom Tromey <tom@tromey.com>
13695
13696 PR tui/24197:
13697 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13698
13699 2019-02-17 Tom Tromey <tom@tromey.com>
13700
13701 * ada-lang.c (user_select_syms): Use filtered printing.
13702 * utils.c (wrap_style): New global.
13703 (desired_style): Remove.
13704 (emit_style_escape): Add stream parameter.
13705 (set_output_style, reset_terminal_style, prompt_for_continue):
13706 Update.
13707 (flush_wrap_buffer): Only flush gdb_stdout.
13708 (wrap_here): Set wrap_style.
13709 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13710 treat escape sequences as a character. Change when wrap buffer is
13711 flushed.
13712 (fputs_styled): Do not set the output style when the default is
13713 requested.
13714 * ui-style.h (struct ui_file_style) <is_default>: New method.
13715 * source.c (print_source_lines_base): Emit escape sequences in one
13716 piece.
13717
13718 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13719
13720 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13721 integers and enumeration types.
13722
13723 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13724
13725 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13726 instead of lookup_symbol_in_language
13727 (do_exact_match): New function.
13728 (ada_get_symbol_name_matcher): Return do_exact_match when
13729 doing a verbatim match.
13730
13731 2019-02-15 Tom Tromey <tromey@adacore.com>
13732
13733 * ravenscar-thread.c (ravenscar_thread_target::resume)
13734 (ravenscar_thread_target::wait): Special case wildcard requests.
13735
13736 2019-02-15 Tom Tromey <tromey@adacore.com>
13737
13738 * ravenscar-thread.c (base_ptid): Remove.
13739 (struct ravenscar_thread_target) <close>: New method.
13740 <m_base_ptid>: New member.
13741 <update_inferior_ptid, active_task, task_is_currently_active,
13742 runtime_initialized>: Declare methods.
13743 <ravenscar_thread_target>: Add constructor.
13744 (ravenscar_thread_target::task_is_currently_active)
13745 (ravenscar_thread_target::update_inferior_ptid)
13746 (ravenscar_runtime_initialized): Rename. Now methods.
13747 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13748 (ravenscar_thread_target::update_thread_list): Update.
13749 (ravenscar_thread_target::active_task): Now method.
13750 (ravenscar_thread_target::store_registers)
13751 (ravenscar_thread_target::prepare_to_store)
13752 (ravenscar_thread_target::prepare_to_store)
13753 (ravenscar_thread_target::mourn_inferior): Update.
13754 (ravenscar_inferior_created): Use "new" to create target.
13755 (ravenscar_thread_target::get_ada_task_ptid): Update.
13756 (_initialize_ravenscar): Don't initialize base_ptid.
13757 (ravenscar_ops): Remove global.
13758
13759 2019-02-15 Tom Tromey <tromey@adacore.com>
13760
13761 * target.h (push_target): Declare new overload.
13762 * target.c (push_target): New overload, taking an rvalue reference.
13763 * remote.c (remote_target::open_1): Use push_target overload.
13764 * corelow.c (core_target_open): Use push_target overload.
13765
13766 2019-02-15 Tom Tromey <tromey@adacore.com>
13767
13768 * ravenscar-thread.c (is_ravenscar_task)
13769 (ravenscar_task_is_currently_active): Return bool.
13770 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13771 (_initialize_ravenscar): Remove "(void)".
13772 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13773 Return bool.
13774
13775 2019-02-15 Tom Tromey <tromey@adacore.com>
13776
13777 * ravenscar-thread.c (ravenscar_runtime_initializer)
13778 (has_ravenscar_runtime, get_running_thread_id)
13779 (ravenscar_thread_target::resume): Fix indentation.
13780
13781 2019-02-15 Tom Tromey <tromey@adacore.com>
13782
13783 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13784 from ravenscar_arch_ops.
13785 (sparc_ravenscar_ops::fetch_registers)
13786 (sparc_ravenscar_ops::store_registers): Now methods.
13787 (sparc_ravenscar_prepare_to_store): Remove.
13788 (sparc_ravenscar_ops): Redefine.
13789 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13790 methods and destructor. Remove members.
13791 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13792 (ravenscar_thread_target::store_registers)
13793 (ravenscar_thread_target::prepare_to_store): Update.
13794 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13795 Remove.
13796 (struct ppc_ravenscar_powerpc_ops): Derive from
13797 ravenscar_arch_ops.
13798 (ppc_ravenscar_powerpc_ops::fetch_registers)
13799 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13800 (ppc_ravenscar_powerpc_ops): Redefine.
13801 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13802 (ppc_ravenscar_e500_ops::fetch_registers)
13803 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13804 (ppc_ravenscar_e500_ops): Redefine.
13805 * aarch64-ravenscar-thread.c
13806 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13807 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13808 (aarch64_ravenscar_fetch_registers)
13809 (aarch64_ravenscar_store_registers): Now methods.
13810 (aarch64_ravenscar_ops): Redefine.
13811
13812 2019-02-15 Tom Tromey <tromey@adacore.com>
13813
13814 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13815 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13816 (ravenscar_thread_target::stopped_by_watchpoint)
13817 (ravenscar_thread_target::stopped_data_address)
13818 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13819
13820 2019-02-15 Tom Tromey <tromey@adacore.com>
13821
13822 * ravenscar-thread.c: Fix some typos.
13823
13824 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13825 Tom Tromey <tromey@adacore.com>
13826
13827 * ada-lang.c (ada_exception_sal): Change addr_string to a
13828 std::string.
13829 (create_ada_exception_catchpoint): Update.
13830
13831 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13832 Tom Tromey <tromey@adacore.com>
13833
13834 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13835 (bp_location_ops): Remove.
13836 (base_breakpoint_allocate_location): Update.
13837 (free_bp_location): Update.
13838 * ada-lang.c (class ada_catchpoint_location)
13839 <ada_catchpoint_location>: Remove ops parameter.
13840 (ada_catchpoint_location_dtor): Remove.
13841 (ada_catchpoint_location_ops): Remove.
13842 (allocate_location_exception): Update.
13843 * breakpoint.h (struct bp_location_ops): Remove.
13844 (class bp_location) <bp_location>: Remove bp_location_ops
13845 parameter.
13846 <~bp_location>: Add destructor.
13847 <ops>: Remove.
13848
13849 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13850 Pedro Alves <palves@redhat.com>
13851
13852 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13853 'PATH_MAX'.
13854
13855 2019-02-14 David Michael <fedora.dm0@gmail.com>
13856 Samuel Thibault <samuel.thibault@gnu.org>
13857 Thomas Schwinge <thomas@codesourcery.com>
13858
13859 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13860 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13861
13862 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13863
13864 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13865 (check_empty): Use "const char *".
13866
13867 * gnu-nat.c (gnu_nat_target::detach): Instead of
13868 'detach_inferior (pid)' call
13869 'detach_inferior (find_inferior_pid (pid))'.
13870
13871 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13872 'nat/fork-inferior.o'.
13873 * gnu-nat.c: #include "nat/fork-inferior.h".
13874
13875 * gnu-nat.c (gnu_nat_target::detach): Instead of
13876 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13877 * gnu-nat.h: #include "inf-child.h".
13878 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13879 'i386_gnu_nat_target::fetch_registers'.
13880 (gnu_store_registers): Rename/move to
13881 'i386_gnu_nat_target::store_registers'.
13882
13883 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13884 * gnu-nat.h (mach_thread_info): New function.
13885 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13886
13887 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13888
13889 2019-02-14 Frederic Konrad <konrad@adacore.com>
13890
13891 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13892
13893 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13894
13895 * windows-nat.c (windows_add_thread): Add new parameter
13896 "main_thread_p" with default value set to false. Update
13897 function documentation as well as all callers.
13898 (windows_delete_thread): Likewise.
13899 (fake_create_process): Update call to windows_add_thread.
13900 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13901 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13902 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13903 call to windows_delete_thread.
13904
13905 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13906
13907 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13908
13909 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13910
13911 * symfile.c (find_separate_debug_file): Use canonical path of
13912 sysroot with child_path instead of gdb_sysroot if it is valid.
13913
13914 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13915
13916 * symfile.c (find_separate_debug_file): Use child_path to
13917 determine if an object file is under a sysroot.
13918
13919 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13920
13921 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13922 unittests/child-path-selftests.c.
13923 * common/pathstuff.c (child_path): New function.
13924 * common/pathstuff.h (child_path): New prototype.
13925 * unittests/child-path-selftests.c: New file.
13926
13927 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13928
13929 * symfile.c (find_separate_debug_file): Look for separate debug
13930 files in debug directories under the sysroot.
13931
13932 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13933
13934 * symtab.h (struct minimal_symbol data_p): New const method.
13935 (struct minimal_symbol text_p): Likewise.
13936 * symtab.c (output_source_filename): Use file name style
13937 to print file name.
13938 (print_symbol_info): Likewise.
13939 (print_msymbol_info): Use address style to print addresses.
13940 Use function name style to print executable text symbols.
13941 (expand_symtab_containing_pc): Use data_p.
13942 (find_pc_sect_compunit_symtab): Likewise.
13943
13944 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13945
13946 * breakpoint.c (describe_other_breakpoints): Use address style
13947 to print addresses.
13948 (say_where): Likewise.
13949
13950 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13951
13952 * ada-typeprint.c (print_func_type): Print function name
13953 style to print function name.
13954 * c-typeprint.c (c_print_type_1): Likewise.
13955
13956 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13957
13958 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13959 for execve.
13960
13961 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13962
13963 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13964 type_stack.
13965
13966 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13967
13968 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13969 TYPE_CODE_REF types.
13970
13971 2019-02-08 Jim Wilson <jimw@sifive.com>
13972
13973 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13974 (riscv_linux_fregset): New.
13975 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13976
13977 2019-02-07 Tom Tromey <tom@tromey.com>
13978
13979 * thread.c (thread_cancel_execution_command): Update.
13980 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13981 methods.
13982 (struct thread_fsm_ops): Remove.
13983 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13984 (thread_fsm_should_stop, thread_fsm_return_value)
13985 (thread_fsm_set_finished, thread_fsm_finished_p)
13986 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13987 Don't declare.
13988 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13989 * infrun.c (clear_proceed_status_thread)
13990 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13991 (print_stop_event): Update.
13992 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13993 Add constructor.
13994 (step_command_fsm_ops): Remove.
13995 (new_step_command_fsm): Remove.
13996 (step_1): Update.
13997 (step_command_fsm::should_stop): Rename from
13998 step_command_fsm_should_stop.
13999 (step_command_fsm::clean_up): Rename from
14000 step_command_fsm_clean_up.
14001 (step_command_fsm::do_async_reply_reason): Rename from
14002 step_command_fsm_async_reply_reason.
14003 (struct until_next_fsm): Inherit from thread_fsm. Add
14004 constructor.
14005 (until_next_fsm_ops): Remove.
14006 (new_until_next_fsm): Remove.
14007 (until_next_fsm::should_stop): Rename from
14008 until_next_fsm_should_stop.
14009 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14010 (until_next_fsm::do_async_reply_reason): Rename from
14011 until_next_fsm_async_reply_reason.
14012 (struct finish_command_fsm): Inherit from thread_fsm. Add
14013 constructor. Change type of breakpoint.
14014 (finish_command_fsm_ops): Remove.
14015 (new_finish_command_fsm): Remove.
14016 (finish_command_fsm::should_stop): Rename from
14017 finish_command_fsm_should_stop.
14018 (finish_command_fsm::clean_up): Rename from
14019 finish_command_fsm_clean_up.
14020 (finish_command_fsm::return_value): Rename from
14021 finish_command_fsm_return_value.
14022 (finish_command_fsm::do_async_reply_reason): Rename from
14023 finish_command_fsm_async_reply_reason.
14024 (finish_command): Update.
14025 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14026 Add constructor.
14027 (call_thread_fsm_ops): Remove.
14028 (call_thread_fsm::call_thread_fsm): Rename from
14029 new_call_thread_fsm.
14030 (call_thread_fsm::should_stop): Rename from
14031 call_thread_fsm_should_stop.
14032 (call_thread_fsm::should_notify_stop): Rename from
14033 call_thread_fsm_should_notify_stop.
14034 (run_inferior_call, call_function_by_hand_dummy): Update.
14035 * cli/cli-interp.c (should_print_stop_to_console): Update.
14036 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14037 Add constructor. Change type of location_breakpoint,
14038 caller_breakpoint.
14039 (until_break_fsm_ops): Remove.
14040 (new_until_break_fsm): Remove.
14041 (until_break_fsm::should_stop): Rename from
14042 until_break_fsm_should_stop.
14043 (until_break_fsm::clean_up): Rename from
14044 until_break_fsm_clean_up.
14045 (until_break_fsm::do_async_reply_reason): Rename from
14046 until_break_fsm_async_reply_reason.
14047 (until_break_command): Update.
14048 * thread-fsm.c: Remove.
14049 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14050
14051 2019-02-07 Tom Tromey <tom@tromey.com>
14052
14053 * yy-remap.h: Add include guard.
14054 * xtensa-tdep.h: Add include guard.
14055 * xcoffread.h: Rename include guard.
14056 * varobj-iter.h: Add include guard.
14057 * tui/tui.h: Rename include guard.
14058 * tui/tui-winsource.h: Rename include guard.
14059 * tui/tui-wingeneral.h: Rename include guard.
14060 * tui/tui-windata.h: Rename include guard.
14061 * tui/tui-win.h: Rename include guard.
14062 * tui/tui-stack.h: Rename include guard.
14063 * tui/tui-source.h: Rename include guard.
14064 * tui/tui-regs.h: Rename include guard.
14065 * tui/tui-out.h: Rename include guard.
14066 * tui/tui-layout.h: Rename include guard.
14067 * tui/tui-io.h: Rename include guard.
14068 * tui/tui-hooks.h: Rename include guard.
14069 * tui/tui-file.h: Rename include guard.
14070 * tui/tui-disasm.h: Rename include guard.
14071 * tui/tui-data.h: Rename include guard.
14072 * tui/tui-command.h: Rename include guard.
14073 * tic6x-tdep.h: Add include guard.
14074 * target/waitstatus.h: Rename include guard.
14075 * target/wait.h: Rename include guard.
14076 * target/target.h: Rename include guard.
14077 * target/resume.h: Rename include guard.
14078 * target-float.h: Rename include guard.
14079 * stabsread.h: Add include guard.
14080 * rs6000-tdep.h: Add include guard.
14081 * riscv-fbsd-tdep.h: Add include guard.
14082 * regformats/regdef.h: Rename include guard.
14083 * record.h: Rename include guard.
14084 * python/python.h: Rename include guard.
14085 * python/python-internal.h: Rename include guard.
14086 * python/py-stopevent.h: Rename include guard.
14087 * python/py-ref.h: Rename include guard.
14088 * python/py-record.h: Rename include guard.
14089 * python/py-record-full.h: Rename include guard.
14090 * python/py-record-btrace.h: Rename include guard.
14091 * python/py-instruction.h: Rename include guard.
14092 * python/py-events.h: Rename include guard.
14093 * python/py-event.h: Rename include guard.
14094 * procfs.h: Add include guard.
14095 * proc-utils.h: Add include guard.
14096 * p-lang.h: Add include guard.
14097 * or1k-tdep.h: Rename include guard.
14098 * observable.h: Rename include guard.
14099 * nto-tdep.h: Rename include guard.
14100 * nat/x86-linux.h: Rename include guard.
14101 * nat/x86-linux-dregs.h: Rename include guard.
14102 * nat/x86-gcc-cpuid.h: Add include guard.
14103 * nat/x86-dregs.h: Rename include guard.
14104 * nat/x86-cpuid.h: Rename include guard.
14105 * nat/ppc-linux.h: Rename include guard.
14106 * nat/mips-linux-watch.h: Rename include guard.
14107 * nat/linux-waitpid.h: Rename include guard.
14108 * nat/linux-ptrace.h: Rename include guard.
14109 * nat/linux-procfs.h: Rename include guard.
14110 * nat/linux-osdata.h: Rename include guard.
14111 * nat/linux-nat.h: Rename include guard.
14112 * nat/linux-namespaces.h: Rename include guard.
14113 * nat/linux-btrace.h: Rename include guard.
14114 * nat/glibc_thread_db.h: Rename include guard.
14115 * nat/gdb_thread_db.h: Rename include guard.
14116 * nat/gdb_ptrace.h: Rename include guard.
14117 * nat/fork-inferior.h: Rename include guard.
14118 * nat/amd64-linux-siginfo.h: Rename include guard.
14119 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14120 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14121 * nat/aarch64-linux.h: Rename include guard.
14122 * nat/aarch64-linux-hw-point.h: Rename include guard.
14123 * mn10300-tdep.h: Add include guard.
14124 * mips-linux-tdep.h: Add include guard.
14125 * mi/mi-parse.h: Rename include guard.
14126 * mi/mi-out.h: Rename include guard.
14127 * mi/mi-main.h: Rename include guard.
14128 * mi/mi-interp.h: Rename include guard.
14129 * mi/mi-getopt.h: Rename include guard.
14130 * mi/mi-console.h: Rename include guard.
14131 * mi/mi-common.h: Rename include guard.
14132 * mi/mi-cmds.h: Rename include guard.
14133 * mi/mi-cmd-break.h: Rename include guard.
14134 * m2-lang.h: Add include guard.
14135 * location.h: Rename include guard.
14136 * linux-record.h: Rename include guard.
14137 * linux-nat.h: Add include guard.
14138 * linux-fork.h: Add include guard.
14139 * i386-darwin-tdep.h: Rename include guard.
14140 * hppa-linux-offsets.h: Add include guard.
14141 * guile/guile.h: Rename include guard.
14142 * guile/guile-internal.h: Rename include guard.
14143 * gnu-nat.h: Rename include guard.
14144 * gdb-stabs.h: Rename include guard.
14145 * frv-tdep.h: Add include guard.
14146 * f-lang.h: Add include guard.
14147 * event-loop.h: Add include guard.
14148 * darwin-nat.h: Rename include guard.
14149 * cp-abi.h: Rename include guard.
14150 * config/sparc/nm-sol2.h: Rename include guard.
14151 * config/nm-nto.h: Rename include guard.
14152 * config/nm-linux.h: Add include guard.
14153 * config/i386/nm-i386gnu.h: Rename include guard.
14154 * config/djgpp/nl_types.h: Rename include guard.
14155 * config/djgpp/langinfo.h: Rename include guard.
14156 * compile/gcc-cp-plugin.h: Add include guard.
14157 * compile/gcc-c-plugin.h: Add include guard.
14158 * compile/compile.h: Rename include guard.
14159 * compile/compile-object-run.h: Rename include guard.
14160 * compile/compile-object-load.h: Rename include guard.
14161 * compile/compile-internal.h: Rename include guard.
14162 * compile/compile-cplus.h: Rename include guard.
14163 * compile/compile-c.h: Rename include guard.
14164 * common/xml-utils.h: Rename include guard.
14165 * common/x86-xstate.h: Rename include guard.
14166 * common/version.h: Rename include guard.
14167 * common/vec.h: Rename include guard.
14168 * common/tdesc.h: Rename include guard.
14169 * common/selftest.h: Rename include guard.
14170 * common/scoped_restore.h: Rename include guard.
14171 * common/scoped_mmap.h: Rename include guard.
14172 * common/scoped_fd.h: Rename include guard.
14173 * common/safe-iterator.h: Rename include guard.
14174 * common/run-time-clock.h: Rename include guard.
14175 * common/refcounted-object.h: Rename include guard.
14176 * common/queue.h: Rename include guard.
14177 * common/ptid.h: Rename include guard.
14178 * common/print-utils.h: Rename include guard.
14179 * common/preprocessor.h: Rename include guard.
14180 * common/pathstuff.h: Rename include guard.
14181 * common/observable.h: Rename include guard.
14182 * common/netstuff.h: Rename include guard.
14183 * common/job-control.h: Rename include guard.
14184 * common/host-defs.h: Rename include guard.
14185 * common/gdb_wait.h: Rename include guard.
14186 * common/gdb_vecs.h: Rename include guard.
14187 * common/gdb_unlinker.h: Rename include guard.
14188 * common/gdb_unique_ptr.h: Rename include guard.
14189 * common/gdb_tilde_expand.h: Rename include guard.
14190 * common/gdb_sys_time.h: Rename include guard.
14191 * common/gdb_string_view.h: Rename include guard.
14192 * common/gdb_splay_tree.h: Rename include guard.
14193 * common/gdb_setjmp.h: Rename include guard.
14194 * common/gdb_ref_ptr.h: Rename include guard.
14195 * common/gdb_optional.h: Rename include guard.
14196 * common/gdb_locale.h: Rename include guard.
14197 * common/gdb_assert.h: Rename include guard.
14198 * common/filtered-iterator.h: Rename include guard.
14199 * common/filestuff.h: Rename include guard.
14200 * common/fileio.h: Rename include guard.
14201 * common/environ.h: Rename include guard.
14202 * common/common-utils.h: Rename include guard.
14203 * common/common-types.h: Rename include guard.
14204 * common/common-regcache.h: Rename include guard.
14205 * common/common-inferior.h: Rename include guard.
14206 * common/common-gdbthread.h: Rename include guard.
14207 * common/common-exceptions.h: Rename include guard.
14208 * common/common-defs.h: Rename include guard.
14209 * common/common-debug.h: Rename include guard.
14210 * common/cleanups.h: Rename include guard.
14211 * common/buffer.h: Rename include guard.
14212 * common/btrace-common.h: Rename include guard.
14213 * common/break-common.h: Rename include guard.
14214 * cli/cli-utils.h: Rename include guard.
14215 * cli/cli-style.h: Rename include guard.
14216 * cli/cli-setshow.h: Rename include guard.
14217 * cli/cli-script.h: Rename include guard.
14218 * cli/cli-interp.h: Rename include guard.
14219 * cli/cli-decode.h: Rename include guard.
14220 * cli/cli-cmds.h: Rename include guard.
14221 * charset-list.h: Add include guard.
14222 * buildsym-legacy.h: Rename include guard.
14223 * bfin-tdep.h: Add include guard.
14224 * ax.h: Rename include guard.
14225 * arm-linux-tdep.h: Add include guard.
14226 * arm-fbsd-tdep.h: Add include guard.
14227 * arch/xtensa.h: Rename include guard.
14228 * arch/tic6x.h: Add include guard.
14229 * arch/i386.h: Add include guard.
14230 * arch/arm.h: Rename include guard.
14231 * arch/arm-linux.h: Rename include guard.
14232 * arch/arm-get-next-pcs.h: Rename include guard.
14233 * arch/amd64.h: Add include guard.
14234 * arch/aarch64-insn.h: Rename include guard.
14235 * arch-utils.h: Rename include guard.
14236 * annotate.h: Add include guard.
14237 * amd64-darwin-tdep.h: Rename include guard.
14238 * aarch64-linux-tdep.h: Add include guard.
14239 * aarch64-fbsd-tdep.h: Add include guard.
14240 * aarch32-linux-nat.h: Add include guard.
14241
14242 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14243
14244 * macrotab.c (macro_define_internal): New function that
14245 factorizes macro_define_object_internal and macro_define_function
14246 code.
14247 (macro_define_object_internal): Use macro_define_internal.
14248 (macro_define_function): Likewise.
14249
14250 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14251
14252 * macrocmd.c (extract_identifier): Return
14253 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14254 callers.
14255
14256 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14257
14258 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14259
14260 2019-02-05 Tom Tromey <tom@tromey.com>
14261
14262 * target.c (target_stack::unpush): Move assertion earlier.
14263
14264 2019-01-30 Tom Tromey <tom@tromey.com>
14265
14266 PR python/23615:
14267 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14268 (gdbpy_parse_and_eval): Likewise.
14269 * python/python-internal.h (gdbpy_allow_threads): New class.
14270
14271 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14272
14273 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14274 (aarch64_fbsd_fpregmap): Move earlier.
14275 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14276 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14277 instead of individual calls to trad_frame_set_reg_addr.
14278 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14279 earlier.
14280 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14281 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14282 instead of individual calls to trad_frame_set_reg_addr.
14283
14284 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14285
14286 * CONTRIBUTE: Replace contribution list with wiki link.
14287
14288 2019-01-25 Tom Tromey <tom@tromey.com>
14289
14290 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14291
14292 2019-01-25 Tom Tromey <tom@tromey.com>
14293
14294 * xtensa-linux-nat.c: Fix common/ includes.
14295 * xml-support.h: Fix common/ includes.
14296 * xml-support.c: Fix common/ includes.
14297 * x86-linux-nat.c: Fix common/ includes.
14298 * windows-nat.c: Fix common/ includes.
14299 * varobj.h: Fix common/ includes.
14300 * varobj.c: Fix common/ includes.
14301 * value.c: Fix common/ includes.
14302 * valops.c: Fix common/ includes.
14303 * utils.c: Fix common/ includes.
14304 * unittests/xml-utils-selftests.c: Fix common/ includes.
14305 * unittests/utils-selftests.c: Fix common/ includes.
14306 * unittests/unpack-selftests.c: Fix common/ includes.
14307 * unittests/tracepoint-selftests.c: Fix common/ includes.
14308 * unittests/style-selftests.c: Fix common/ includes.
14309 * unittests/string_view-selftests.c: Fix common/ includes.
14310 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14311 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14312 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14313 * unittests/rsp-low-selftests.c: Fix common/ includes.
14314 * unittests/parse-connection-spec-selftests.c: Fix common/
14315 includes.
14316 * unittests/optional-selftests.c: Fix common/ includes.
14317 * unittests/offset-type-selftests.c: Fix common/ includes.
14318 * unittests/observable-selftests.c: Fix common/ includes.
14319 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14320 * unittests/memrange-selftests.c: Fix common/ includes.
14321 * unittests/memory-map-selftests.c: Fix common/ includes.
14322 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14323 * unittests/function-view-selftests.c: Fix common/ includes.
14324 * unittests/environ-selftests.c: Fix common/ includes.
14325 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14326 * unittests/common-utils-selftests.c: Fix common/ includes.
14327 * unittests/cli-utils-selftests.c: Fix common/ includes.
14328 * unittests/array-view-selftests.c: Fix common/ includes.
14329 * ui-file.c: Fix common/ includes.
14330 * tui/tui-io.c: Fix common/ includes.
14331 * tracepoint.h: Fix common/ includes.
14332 * tracepoint.c: Fix common/ includes.
14333 * tracefile-tfile.c: Fix common/ includes.
14334 * top.h: Fix common/ includes.
14335 * top.c: Fix common/ includes.
14336 * thread.c: Fix common/ includes.
14337 * target/waitstatus.h: Fix common/ includes.
14338 * target/waitstatus.c: Fix common/ includes.
14339 * target.h: Fix common/ includes.
14340 * target.c: Fix common/ includes.
14341 * target-memory.c: Fix common/ includes.
14342 * target-descriptions.c: Fix common/ includes.
14343 * symtab.h: Fix common/ includes.
14344 * symfile.c: Fix common/ includes.
14345 * stap-probe.c: Fix common/ includes.
14346 * spu-linux-nat.c: Fix common/ includes.
14347 * sparc-nat.c: Fix common/ includes.
14348 * source.c: Fix common/ includes.
14349 * solib.c: Fix common/ includes.
14350 * solib-target.c: Fix common/ includes.
14351 * ser-unix.c: Fix common/ includes.
14352 * ser-tcp.c: Fix common/ includes.
14353 * ser-pipe.c: Fix common/ includes.
14354 * ser-base.c: Fix common/ includes.
14355 * selftest-arch.c: Fix common/ includes.
14356 * s12z-tdep.c: Fix common/ includes.
14357 * rust-exp.y: Fix common/ includes.
14358 * rs6000-aix-tdep.c: Fix common/ includes.
14359 * riscv-tdep.c: Fix common/ includes.
14360 * remote.c: Fix common/ includes.
14361 * remote-notif.h: Fix common/ includes.
14362 * remote-fileio.h: Fix common/ includes.
14363 * remote-fileio.c: Fix common/ includes.
14364 * regcache.h: Fix common/ includes.
14365 * regcache.c: Fix common/ includes.
14366 * record-btrace.c: Fix common/ includes.
14367 * python/python.c: Fix common/ includes.
14368 * python/py-type.c: Fix common/ includes.
14369 * python/py-inferior.c: Fix common/ includes.
14370 * progspace.h: Fix common/ includes.
14371 * producer.c: Fix common/ includes.
14372 * procfs.c: Fix common/ includes.
14373 * proc-api.c: Fix common/ includes.
14374 * printcmd.c: Fix common/ includes.
14375 * ppc-linux-nat.c: Fix common/ includes.
14376 * parser-defs.h: Fix common/ includes.
14377 * osdata.c: Fix common/ includes.
14378 * obsd-nat.c: Fix common/ includes.
14379 * nat/x86-linux.c: Fix common/ includes.
14380 * nat/x86-linux-dregs.c: Fix common/ includes.
14381 * nat/x86-dregs.h: Fix common/ includes.
14382 * nat/x86-dregs.c: Fix common/ includes.
14383 * nat/ppc-linux.c: Fix common/ includes.
14384 * nat/mips-linux-watch.h: Fix common/ includes.
14385 * nat/mips-linux-watch.c: Fix common/ includes.
14386 * nat/linux-waitpid.c: Fix common/ includes.
14387 * nat/linux-ptrace.h: Fix common/ includes.
14388 * nat/linux-ptrace.c: Fix common/ includes.
14389 * nat/linux-procfs.c: Fix common/ includes.
14390 * nat/linux-personality.c: Fix common/ includes.
14391 * nat/linux-osdata.c: Fix common/ includes.
14392 * nat/linux-namespaces.c: Fix common/ includes.
14393 * nat/linux-btrace.h: Fix common/ includes.
14394 * nat/linux-btrace.c: Fix common/ includes.
14395 * nat/fork-inferior.c: Fix common/ includes.
14396 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14397 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14398 * nat/aarch64-linux.c: Fix common/ includes.
14399 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14400 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14401 * namespace.h: Fix common/ includes.
14402 * mips-linux-tdep.c: Fix common/ includes.
14403 * minsyms.c: Fix common/ includes.
14404 * mi/mi-parse.h: Fix common/ includes.
14405 * mi/mi-main.c: Fix common/ includes.
14406 * mi/mi-cmd-env.c: Fix common/ includes.
14407 * memrange.h: Fix common/ includes.
14408 * memattr.c: Fix common/ includes.
14409 * maint.h: Fix common/ includes.
14410 * maint.c: Fix common/ includes.
14411 * main.c: Fix common/ includes.
14412 * machoread.c: Fix common/ includes.
14413 * location.c: Fix common/ includes.
14414 * linux-thread-db.c: Fix common/ includes.
14415 * linux-nat.c: Fix common/ includes.
14416 * linux-fork.c: Fix common/ includes.
14417 * inline-frame.c: Fix common/ includes.
14418 * infrun.c: Fix common/ includes.
14419 * inflow.c: Fix common/ includes.
14420 * inferior.h: Fix common/ includes.
14421 * inferior.c: Fix common/ includes.
14422 * infcmd.c: Fix common/ includes.
14423 * inf-ptrace.c: Fix common/ includes.
14424 * inf-child.c: Fix common/ includes.
14425 * ia64-linux-nat.c: Fix common/ includes.
14426 * i387-tdep.c: Fix common/ includes.
14427 * i386-tdep.c: Fix common/ includes.
14428 * i386-linux-tdep.c: Fix common/ includes.
14429 * i386-linux-nat.c: Fix common/ includes.
14430 * i386-go32-tdep.c: Fix common/ includes.
14431 * i386-fbsd-tdep.c: Fix common/ includes.
14432 * i386-fbsd-nat.c: Fix common/ includes.
14433 * guile/scm-type.c: Fix common/ includes.
14434 * guile/guile.c: Fix common/ includes.
14435 * go32-nat.c: Fix common/ includes.
14436 * gnu-nat.c: Fix common/ includes.
14437 * gdbthread.h: Fix common/ includes.
14438 * gdbarch-selftests.c: Fix common/ includes.
14439 * gdb_usleep.c: Fix common/ includes.
14440 * gdb_select.h: Fix common/ includes.
14441 * gdb_bfd.c: Fix common/ includes.
14442 * gcore.c: Fix common/ includes.
14443 * fork-child.c: Fix common/ includes.
14444 * findvar.c: Fix common/ includes.
14445 * fbsd-nat.c: Fix common/ includes.
14446 * event-top.c: Fix common/ includes.
14447 * event-loop.c: Fix common/ includes.
14448 * dwarf2read.c: Fix common/ includes.
14449 * dwarf2loc.c: Fix common/ includes.
14450 * dwarf2-frame.c: Fix common/ includes.
14451 * dwarf-index-cache.c: Fix common/ includes.
14452 * dtrace-probe.c: Fix common/ includes.
14453 * disasm-selftests.c: Fix common/ includes.
14454 * defs.h: Fix common/ includes.
14455 * csky-tdep.c: Fix common/ includes.
14456 * cp-valprint.c: Fix common/ includes.
14457 * cp-support.h: Fix common/ includes.
14458 * cp-support.c: Fix common/ includes.
14459 * corelow.c: Fix common/ includes.
14460 * completer.h: Fix common/ includes.
14461 * completer.c: Fix common/ includes.
14462 * compile/compile.c: Fix common/ includes.
14463 * compile/compile-loc2c.c: Fix common/ includes.
14464 * compile/compile-cplus-types.c: Fix common/ includes.
14465 * compile/compile-cplus-symbols.c: Fix common/ includes.
14466 * command.h: Fix common/ includes.
14467 * cli/cli-dump.c: Fix common/ includes.
14468 * cli/cli-cmds.c: Fix common/ includes.
14469 * charset.c: Fix common/ includes.
14470 * build-id.c: Fix common/ includes.
14471 * btrace.h: Fix common/ includes.
14472 * btrace.c: Fix common/ includes.
14473 * breakpoint.h: Fix common/ includes.
14474 * breakpoint.c: Fix common/ includes.
14475 * ax.h:
14476 (enum agent_op): Fix common/ includes.
14477 * ax-general.c (struct aop_map): Fix common/ includes.
14478 * ax-gdb.c: Fix common/ includes.
14479 * auxv.c: Fix common/ includes.
14480 * auto-load.c: Fix common/ includes.
14481 * arm-tdep.c: Fix common/ includes.
14482 * arch/riscv.c: Fix common/ includes.
14483 * arch/ppc-linux-common.c: Fix common/ includes.
14484 * arch/i386.c: Fix common/ includes.
14485 * arch/arm.c: Fix common/ includes.
14486 * arch/arm-linux.c: Fix common/ includes.
14487 * arch/arm-get-next-pcs.c: Fix common/ includes.
14488 * arch/amd64.c: Fix common/ includes.
14489 * arch/aarch64.c: Fix common/ includes.
14490 * arch/aarch64-insn.c: Fix common/ includes.
14491 * arch-utils.c: Fix common/ includes.
14492 * amd64-windows-tdep.c: Fix common/ includes.
14493 * amd64-tdep.c: Fix common/ includes.
14494 * amd64-sol2-tdep.c: Fix common/ includes.
14495 * amd64-obsd-tdep.c: Fix common/ includes.
14496 * amd64-nbsd-tdep.c: Fix common/ includes.
14497 * amd64-linux-tdep.c: Fix common/ includes.
14498 * amd64-linux-nat.c: Fix common/ includes.
14499 * amd64-fbsd-tdep.c: Fix common/ includes.
14500 * amd64-fbsd-nat.c: Fix common/ includes.
14501 * amd64-dicos-tdep.c: Fix common/ includes.
14502 * amd64-darwin-tdep.c: Fix common/ includes.
14503 * agent.c: Fix common/ includes.
14504 * ada-lang.h: Fix common/ includes.
14505 * ada-lang.c: Fix common/ includes.
14506 * aarch64-tdep.c: Fix common/ includes.
14507
14508 2019-01-25 Tom Tromey <tom@tromey.com>
14509
14510 * common/create-version.sh: Use common/version.h.
14511
14512 2019-01-24 Pedro Alves <palves@redhat.com>
14513
14514 * infrun.c (signal_stop, signal_print, signal_program)
14515 (signal_catch, signal_pass): Now arrays instead of pointers.
14516 (update_signals_program_target, do_target_resume)
14517 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14518 * linux-nat.c (linux_nat_target::pass_signals)
14519 (linux_nat_target::create_inferior, linux_nat_target::attach):
14520 Adjust.
14521 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14522 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14523 * procfs.c (procfs_target::pass_signals): Adjust.
14524 * record-full.c (record_full_target::resume): Adjust.
14525 * remote.c (remote_target::pass_signals)
14526 (remote_target::program_signals): Adjust.
14527 * target-debug.h (target_debug_print_signals): Now takes a
14528 gdb::array_view as parameter. Adjust.
14529 * target.h (target_ops) <pass_signals, program_signals>: Replace
14530 pointer and length parameters with gdb::array_view.
14531 (target_pass_signals, target_program_signals): Likewise.
14532 * target-delegates.c: Regenerate.
14533
14534 2019-01-24 Pedro Alves <palves@redhat.com>
14535
14536 * common/forward-scope-exit.h
14537 (forward_scope_exit::forward_scope_exit): Pass arguments to
14538 m_bind_function directly, instead of creating a std::bind and
14539 copying that.
14540
14541 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14542
14543 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14544 for static members.
14545 (pass_in_v_vfp_candidate): Likewise.
14546
14547 2019-01-23 Tom Tromey <tom@tromey.com>
14548 Pedro Alves <palves@redhat.com>
14549
14550 * regcache.c (class regcache_invalidator): Remove.
14551 (regcache::raw_write): Use make_scope_exit.
14552
14553 2019-01-23 Tom Tromey <tom@tromey.com>
14554
14555 * ui-out.h (class ui_out_emit_type): Update comment.
14556
14557 2019-01-23 Tom Tromey <tom@tromey.com>
14558
14559 * infrun.c (fetch_inferior_event): Update comment.
14560
14561 2019-01-23 Tom Tromey <tom@tromey.com>
14562 Pedro Alves <palves@redhat.com>
14563
14564 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14565 parameter.
14566 (fetch_inferior_event): Use SCOPE_EXIT.
14567
14568
14569 2019-01-23 Tom Tromey <tom@tromey.com>
14570 Pedro Alves <palves@redhat.com>
14571
14572 * infrun.c (disable_thread_events): Delete.
14573 (stop_all_threads): Use SCOPE_EXIT.
14574
14575 2019-01-23 Tom Tromey <tom@tromey.com>
14576 Pedro Alves <palves@redhat.com>
14577
14578 * symfile.c: Include forward-scope-exit.h.
14579 (clear_symtab_users_cleanup): Replace forward declaration with
14580 a FORWARD_SCOPE_EXIT.
14581 (syms_from_objfile_1): Use the forward_scope_exit and
14582 gdb::optional instead of cleanup_function.
14583 (reread_symbols): Use the forward_scope_exit instead of
14584 cleanup_function.
14585 (clear_symtab_users_cleanup): Remove function.
14586
14587 2019-01-23 Tom Tromey <tom@tromey.com>
14588 Pedro Alves <palves@redhat.com>
14589
14590 * linux-nat.c: Include scope-exit.h.
14591 (cleanup_target_stop): Remove.
14592 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14593 SCOPE_EXIT.
14594
14595 2019-01-23 Tom Tromey <tom@tromey.com>
14596 Pedro Alves <palves@redhat.com>
14597
14598 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14599 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14600
14601 2019-01-23 Tom Tromey <tom@tromey.com>
14602 Andrew Burgess <andrew.burgess@embecosm.com>
14603 Pedro Alves <palves@redhat.com>
14604
14605 * infrun.c (fetch_inferior_event): Use scope_exit.
14606 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14607 * top.c (execute_command): Use scope_exit.
14608 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14609 * utils.c (do_bpstat_clear_actions_cleanup)
14610 (make_bpstat_clear_actions_cleanup): Remove.
14611
14612 2019-01-23 Tom Tromey <tom@tromey.com>
14613 Pedro Alves <palves@redhat.com>
14614
14615 * infrun.c: Include "common/scope-exit.h"
14616 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14617 (wait_for_inferior): Use SCOPE_EXIT.
14618 (fetch_inferior_event): Use scope_exit.
14619
14620 2019-01-23 Tom Tromey <tom@tromey.com>
14621 Pedro Alves <palves@redhat.com>
14622
14623 * breakpoint.c (create_breakpoint): Remove cleanup.
14624
14625 2019-01-23 Tom Tromey <tom@tromey.com>
14626 Andrew Burgess <andrew.burgess@embecosm.com>
14627 Pedro Alves <palves@redhat.com>
14628
14629 2019-01-23 Pedro Alves <palves@redhat.com>
14630
14631 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14632
14633 2019-01-23 Pedro Alves <palves@redhat.com>
14634 Andrew Burgess <andrew.burgess@embecosm.com>
14635
14636 * gdbthread.h: Include "common/forward-scope-exit.h".
14637 (scoped_finish_thread_state): Redefine custom class in terms of
14638 forward_scope_exit.
14639
14640 2019-01-23 Pedro Alves <palves@redhat.com>
14641 Andrew Burgess <andrew.burgess@embecosm.com>
14642
14643 * common/forward-scope-exit.h: New file.
14644
14645 2019-01-23 Pedro Alves <palves@redhat.com>
14646 Andrew Burgess <andrew.burgess@embecosm.com>
14647 Tom Tromey <tom@tromey.com>
14648
14649 * common/scope-exit.h: New file.
14650
14651 2019-01-23 Pedro Alves <palves@redhat.com>
14652
14653 * common/preprocessor.h (ESC): Rename to ...
14654 (ESC_PARENS): ... this.
14655 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14656 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14657
14658 2019-01-23 Tom Tromey <tom@tromey.com>
14659
14660 * language.h (class scoped_switch_to_sym_language_if_auto):
14661 Initialize m_lang in both cases.
14662
14663 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14664
14665 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14666 with XCNEW.
14667
14668 2019-01-22 Tom Tromey <tom@tromey.com>
14669
14670 * corelow.c: Do not include sys/file.h.
14671
14672 2019-01-22 Tom Tromey <tom@tromey.com>
14673
14674 * tui/tui-wingeneral.h: Include gdb_curses.h.
14675
14676 2019-01-22 Tom Tromey <tom@tromey.com>
14677
14678 * source-cache.h (class source_cache) <get_source_lines,
14679 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14680
14681 2019-01-22 Tom Tromey <tom@tromey.com>
14682
14683 * remote-fileio.h (struct remote_target): Declare.
14684
14685 2019-01-22 Tom Tromey <tom@tromey.com>
14686
14687 * python/py-arch.c: Do not include py-ref.h.
14688 * python/py-bpevent.c: Do not include py-ref.h.
14689 * python/py-cmd.c: Do not include py-ref.h.
14690 * python/py-continueevent.c: Do not include py-ref.h.
14691 * python/py-event.h: Do not include py-ref.h.
14692 * python/py-evtregistry.c: Do not include py-ref.h.
14693 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14694 * python/py-frame.c: Do not include py-ref.h.
14695 * python/py-framefilter.c: Do not include py-ref.h.
14696 * python/py-function.c: Do not include py-ref.h.
14697 * python/py-infevents.c: Do not include py-ref.h.
14698 * python/py-linetable.c: Do not include py-ref.h.
14699 * python/py-objfile.c: Do not include py-ref.h.
14700 * python/py-param.c: Do not include py-ref.h.
14701 * python/py-prettyprint.c: Do not include py-ref.h.
14702 * python/py-progspace.c: Do not include py-ref.h.
14703 * python/py-symbol.c: Do not include py-ref.h.
14704 * python/py-symtab.c: Do not include py-ref.h.
14705 * python/py-type.c: Do not include py-ref.h.
14706 * python/py-unwind.c: Do not include py-ref.h.
14707 * python/py-utils.c: Do not include py-ref.h.
14708 * python/py-value.c: Do not include py-ref.h.
14709 * python/py-varobj.c: Do not include py-ref.h.
14710 * python/py-xmethods.c: Do not include py-ref.h.
14711 * python/python.c: Do not include py-ref.h.
14712 * varobj.c: Do not include py-ref.h.
14713
14714 2019-01-22 Tom Tromey <tom@tromey.com>
14715
14716 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14717 keyword for bcache.
14718
14719 2019-01-22 Tom Tromey <tom@tromey.com>
14720
14721 * compile/compile-cplus-types.c: Remove a comment by #include.
14722
14723 2019-01-22 Tom Tromey <tom@tromey.com>
14724
14725 * compile/gcc-c-plugin.h: Include compile-internal.h.
14726
14727 2019-01-22 Tom Tromey <tom@tromey.com>
14728
14729 * stabsread.c (EXTERN): Do not define.
14730 (symnum, next_symbol_text_func, processing_gcc_compilation)
14731 (within_function, global_sym_chain, global_stabs)
14732 (previous_stab_code, this_object_header_files)
14733 (n_this_object_header_files)
14734 (n_allocated_this_object_header_files): Define.
14735 * stabsread.h (EXTERN): Never define. Use "extern".
14736
14737 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14738
14739 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14740 history_value.
14741
14742 2019-01-21 Tom Tromey <tom@tromey.com>
14743
14744 * ui-out.c: Fix includes.
14745 * tui/tui-source.c: Fix includes.
14746 * target.c: Fix includes.
14747 * remote.c: Fix includes.
14748 * regcache.c: Fix includes.
14749 * python/py-block.c: Fix includes.
14750 * printcmd.c: Fix includes.
14751 * or1k-tdep.c: Fix includes.
14752 * mi/mi-main.c: Fix includes.
14753 * m32r-tdep.c: Fix includes.
14754 * csky-tdep.c: Fix includes.
14755 * compile/compile-cplus-types.c: Fix includes.
14756 * cli/cli-interp.c: Fix includes.
14757
14758 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14759
14760 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14761 for padding.
14762
14763 2019-01-16 Tom Tromey <tom@tromey.com>
14764
14765 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14766 earlier.
14767 (struct objfile) <msymbols_range>: Move from top level.
14768 <msymbols>: New method.
14769 (class objfile_msymbols): Remove.
14770 * symtab.c (default_collect_symbol_completion_matches_break_on):
14771 Update.
14772 * symmisc.c (dump_msymbols): Update.
14773 * stabsread.c (scan_file_globals): Update.
14774 * objc-lang.c (info_selectors_command, info_classes_command)
14775 (find_methods): Update.
14776 * minsyms.c (find_solib_trampoline_target): Update.
14777 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14778 * coffread.c (coff_symfile_read): Update.
14779 * ada-lang.c (ada_lookup_simple_minsym)
14780 (ada_collect_symbol_completion_matches): Update.
14781
14782 2019-01-16 Tom Tromey <tom@tromey.com>
14783
14784 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14785 type. Remove no-argument constructor.
14786 <iterator::operator++>: Simplify.
14787 <begin>: Update.
14788 <end>: Use minimal_symbol_count.
14789
14790 2019-01-16 Tom Tromey <tom@tromey.com>
14791
14792 * objfiles.h (struct objfile) <psymtabs>: New method.
14793 (class objfile_psymtabs): Remove.
14794 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14795 typedef.
14796 <range>: New method.
14797 (require_partial_symbols): Change return type.
14798 * psymtab.c (require_partial_symbols)
14799 (psym_expand_symtabs_matching): Update.
14800 * mdebugread.c (parse_partial_symbols): Update.
14801 * dbxread.c (dbx_end_psymtab): Update.
14802
14803 2019-01-15 Tom Tromey <tom@tromey.com>
14804
14805 * symtab.c (lookup_objfile_from_block)
14806 (lookup_symbol_in_objfile_symtabs)
14807 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14808 (find_line_symtab, info_sources_command)
14809 (default_collect_symbol_completion_matches_break_on)
14810 (make_source_files_completion_list): Update.
14811 * symmisc.c (print_objfile_statistics, dump_objfile)
14812 (maintenance_print_symbols, maintenance_info_symtabs)
14813 (maintenance_check_symtabs, maintenance_info_line_tables):
14814 Update.
14815 * source.c (select_source_symtab)
14816 (forget_cached_source_info_for_objfile): Update.
14817 * objfiles.h (class objfile_compunits): Remove.
14818 (struct objfile) <compunits_range>: New typedef.
14819 (compunits): New method.
14820 * objfiles.c (objfile_relocate1): Update.
14821 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14822 * maint.c (count_symtabs_and_blocks): Update.
14823 * linespec.c (iterate_over_all_matching_symtabs): Update.
14824 * cp-support.c (add_symbol_overload_list_qualified): Update.
14825 * coffread.c (coff_symtab_read): Update.
14826 * ada-lang.c (add_nonlocal_symbols)
14827 (ada_collect_symbol_completion_matches)
14828 (ada_add_global_exceptions): Update.
14829
14830 2019-01-15 Tom Tromey <tom@tromey.com>
14831
14832 * progspace.h (program_space) <objfiles_safe_range>: New
14833 typedef.
14834 <objfiles_safe>: New method.
14835 * objfiles.h (class all_objfiles_safe): Remove.
14836 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14837 * jit.c (jit_inferior_exit_hook): Update.
14838
14839 2019-01-17 Tom Tromey <tom@tromey.com>
14840
14841 * progspace.h (program_space) <objfiles_range>: New typedef.
14842 <objfiles>: New method.
14843 <objfiles_head>: Rename from objfiles.
14844 (object_files): Update.
14845 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14846 * guile/scm-pretty-print.c
14847 (ppscm_find_pretty_printer_from_objfiles): Update.
14848 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14849 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14850 Update.
14851 * python/py-progspace.c (pspy_get_objfiles): Update.
14852 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14853 Update.
14854 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14855 (objfpy_lookup_objfile_by_build_id): Update.
14856 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14857 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14858 Update.
14859 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14860 (expand_symtab_containing_pc, lookup_objfile_from_block)
14861 (lookup_static_symbol, basic_lookup_transparent_type)
14862 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14863 (find_line_symtab, info_sources_command)
14864 (default_collect_symbol_completion_matches_break_on)
14865 (make_source_files_completion_list, find_main_name): Update.
14866 * symmisc.c (print_symbol_bcache_statistics)
14867 (print_objfile_statistics, maintenance_print_symbols)
14868 (maintenance_print_msymbols, maintenance_print_objfiles)
14869 (maintenance_info_symtabs, maintenance_check_symtabs)
14870 (maintenance_expand_symtabs, maintenance_info_line_tables):
14871 Update.
14872 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14873 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14874 (map_overlay_command, unmap_overlay_command)
14875 (simple_overlay_update, expand_symtabs_matching)
14876 (map_symbol_filenames): Update.
14877 * symfile-debug.c (set_debug_symfile): Update.
14878 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14879 Update.
14880 * source.c (select_source_symtab, forget_cached_source_info):
14881 Update.
14882 * solib.c (solib_read_symbols): Update.
14883 * solib-spu.c (append_ocl_sos): Update.
14884 * psymtab.c (maintenance_print_psymbols)
14885 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14886 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14887 * printcmd.c (info_symbol_command): Update.
14888 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14889 Update.
14890 * objfiles.h (class all_objfiles): Remove.
14891 * objfiles.c (have_partial_symbols, have_full_symbols)
14892 (have_minimal_symbols, qsort_cmp, update_section_map)
14893 (shared_objfile_contains_address_p)
14894 (default_iterate_over_objfiles_in_search_order): Update.
14895 * objc-lang.c (info_selectors_command, info_classes_command)
14896 (find_methods): Update.
14897 * minsyms.c (find_solib_trampoline_target): Update.
14898 * maint.c (maintenance_info_sections)
14899 (maintenance_translate_address, count_symtabs_and_blocks):
14900 Update.
14901 * main.c (captured_main_1): Update.
14902 * linux-thread-db.c (try_thread_db_load_from_pdir)
14903 (has_libpthread): Update.
14904 * linespec.c (iterate_over_all_matching_symtabs)
14905 (search_minsyms_for_name): Update.
14906 * jit.c (jit_find_objf_with_entry_addr): Update.
14907 * hppa-tdep.c (find_unwind_entry)
14908 (hppa_lookup_stub_minimal_symbol): Update.
14909 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14910 Update.
14911 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14912 (elf_gnu_ifunc_resolve_by_got): Update.
14913 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14914 * dwarf-index-write.c (save_gdb_index_command): Update.
14915 * cp-support.c (add_symbol_overload_list_qualified): Update.
14916 * breakpoint.c (create_overlay_event_breakpoint)
14917 (create_longjmp_master_breakpoint)
14918 (create_std_terminate_master_breakpoint)
14919 (create_exception_master_breakpoint): Update.
14920 * blockframe.c (find_pc_partial_function): Update.
14921 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14922 (ada_collect_symbol_completion_matches)
14923 (ada_add_global_exceptions): Update.
14924
14925 2019-01-17 Tom Tromey <tom@tromey.com>
14926
14927 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14928 declare VEC.
14929 (solib_target_parse_libraries): Change return type.
14930 (library_list_start_segment, library_list_start_section)
14931 (library_list_end_library, library_list_start_library); Update.
14932 (solib_target_free_library_list): Remove.
14933 (solib_target_parse_libraries): Remove cleanup. Change return
14934 type.
14935 (solib_target_current_sos): Update.
14936
14937 2019-01-17 Tom Tromey <tromey@bapiya>
14938
14939 * valprint.c: Replace "the the" with "the".
14940 * symtab.c: Replace "the the" with "the".
14941 * solib.c: Replace "the the" with "the".
14942 * solib-dsbt.c: Replace "the the" with "the".
14943 * linespec.c: Replace "the the" with "the".
14944 * dwarf2loc.h: Replace "the the" with "the".
14945 * amd64-windows-tdep.c: Replace "the the" with "the".
14946 * aarch64-tdep.c: Replace "the the" with "the".
14947
14948 2019-01-16 Keith Seitz <keiths@redhat.com>
14949
14950 PR gdb/23773
14951 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14952 <builder>: Rename to ..
14953 <m_builder>: ... this and make private.
14954 (dwarf2_cu::get_builder): New method. Change all users of
14955 `builder' to use this method.
14956 (dwarf2_start_symtab): Move to ...
14957 (dwarf2_cu::start_symtab): ... here. Update all callers
14958 (setup_type_unit_groups): Move to ...
14959 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14960 callers.
14961 (dwarf2_cu::reset_builder): New method.
14962 (process_full_compunit, process_full_type_unit): Use
14963 dwarf2_cu::reset_builder.
14964 (follow_die_offset): Record the ancestor CU if it is different
14965 from the followed DIE's CU.
14966 (follow_die_sig_1): Likewise.
14967
14968 2019-01-15 Tom Tromey <tom@tromey.com>
14969
14970 * remote.c (class remote_state) <buf>: Now a char_vector.
14971 <buf_size>: Remove.
14972 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14973 parameter.
14974 (remote_target::getpkt_or_notif_sane_1)
14975 (remote_target::getpkt_sane)
14976 (remote_target::getpkt_or_notif_sane): Likewise.
14977 (class remote_target) <putpkt>: New overload.
14978 (remote_target::read_frame): Change type of "buf_p". Remove
14979 sizeof_p parameter.
14980 (packet_ok): New overload.
14981 (packet_check_result): New overload.
14982 Update all uses.
14983
14984 2019-01-14 Tom Tromey <tom@tromey.com>
14985
14986 * remote-notif.c (handle_notification, remote_notif_ack)
14987 (remote_notif_parse): Make "buf" const.
14988 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14989 const.
14990 (remote_notif_parse, remote_notif_ack, handle_notification):
14991 Likewise.
14992 * remote.c (remote_notif_stop_parse): Make "buf" const.
14993 (remote_target::remote_parse_stop_reply): Make "buf" const.
14994 (remote_notif_stop_ack): Make "buf" const.
14995
14996 2019-01-14 Tom Tromey <tom@tromey.com>
14997
14998 * remote.c (remote_console_output): Make parameter const.
14999
15000 2019-01-14 Tom Tromey <tom@tromey.com>
15001
15002 * target-debug.h (target_debug_print_signals): Constify.
15003 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15004 * procfs.c (procfs_target::pass_signals): Update.
15005 * linux-nat.c (linux_nat_target::pass_signals): Update.
15006 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15007 * target-delegates.c: Rebuild.
15008 * remote.c (remote_target::program_signals): Update.
15009 (remote_target::pass_signals): Update.
15010 * target.c (target_pass_signals): Constify argument.
15011 (target_program_signals): Likewise.
15012 * target.h (struct target_ops) <pass_signals, program_signals>:
15013 Constify argument.
15014 (target_pass_signals, target_program_signals): Constify argument.
15015
15016 2019-01-14 Tom Tromey <tom@tromey.com>
15017
15018 PR tui/28819:
15019 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15020
15021 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15022
15023 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15024 field.
15025 * rs6000-tdep.c: Include reggroups.h.
15026 (IS_V_ALIAS_PSEUDOREG): Define.
15027 (rs6000_register_name): Return names for the "vX" aliases.
15028 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15029 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15030 aliases. Call default_register_reggroup_p for all other
15031 pseudo-registers.
15032 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15033 New functions.
15034 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15035 Handle "vX" aliases.
15036 (v_alias_pseudo_register_collect): New function.
15037 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15038 (rs6000_gdbarch_init): Initialize "vX" aliases as
15039 pseudo-registers. Restore registration of
15040 rs6000_pseudo_register_reggroup_p with
15041 set_tdesc_pseudo_register_reggroup_p.
15042
15043 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15044
15045 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15046 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15047 set_gdbarch_num_pseudo_regs.
15048
15049 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15050
15051 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15052 Remove arg prefixname, add do_set and do_show.
15053 Add member functions set_list and show_list.
15054 * cli/cli-style.c (class cli_style_option): Update accordingly.
15055 (style_set_list): Move to file scope.
15056 (style_show_list): Likewise.
15057 (set_style): Call help_list.
15058 (show_style): Call cmd_show_list.
15059 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15060 Update to use the new macro.
15061
15062 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15063
15064 * ada-lang.c (_initialize_ada_language): Expand the help text
15065 for the "catch exception" command.
15066
15067 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15068
15069 * symtab.c (matching_obj_sections): Initialize obj,
15070 declare it closer to its usage.
15071
15072 2019-01-10 Tom Tromey <tom@tromey.com>
15073
15074 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15075 (basic_inf_threads_range): Remove.
15076 (inf_threads_range, inf_non_exited_threads_range)
15077 (safe_inf_threads_range): Use next_adapter.
15078
15079 2019-01-10 Keith Seitz <keiths@redhat.com>
15080
15081 PR gdb/23712
15082 PR symtab/23010
15083 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15084 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15085
15086 2019-01-10 Keith Seitz <keiths@redhat.com>
15087
15088 PR gdb/23712
15089 PR symtab/23010
15090 * dictionary.c (pending_to_vector): Remove.
15091 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15092 Remove _1 suffix, replacing functions of the same name. Update
15093 all callers.
15094 (dict_create_hashed, dict_create_hashed_expandable)
15095 (dict_create_linear, dict_create_linear_expandable, dict_free)
15096 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15097 Make functions static.
15098
15099 2019-01-10 Keith Seitz <keiths@redhat.com>
15100
15101 PR gdb/23712
15102 PR symtab/23010
15103 * dictionary.h (struct dictionary): Replace declaration with
15104 multidictionary.
15105 (dict_create_hashed, dict_create_hashed_expandable)
15106 (dict_create_linear, dict_create_linear_expandable)
15107 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15108 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15109 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15110 taking multidictionary argument.
15111 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15112 * block.h (struct block) <dict>: Change to multidictionary
15113 and rename `multidict'.
15114 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15115 symmisc.c: Update all dictionary references to multidictionary.
15116
15117 2019-01-10 Keith Seitz <keiths@redhat.com>
15118
15119 PR gdb/23712
15120 PR symtab/23010
15121 * dictionary.c: Include unordered_map.
15122 (pending_to_vector): New function.
15123 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15124 Rewrite the non-"_1" functions to take vector instead
15125 of linked list.
15126 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15127 "new" _1 versions of the same name.
15128 (multidictionary): Define.
15129 (std::hash<enum language): New definition.
15130 (collate_pending_symbols_by_language, mdict_create_hashed)
15131 (mdict_create_hashed_expandable, mdict_create_linear)
15132 (mdict_create_linear_expandable, mdict_free)
15133 (find_language_dictionary, create_new_language_dictionary)
15134 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15135 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15136 (mdict_size, mdict_empty): New functions.
15137 * dictionary.h (mdict_iterator): Define.
15138
15139 2019-01-10 Pedro Alves <palves@redhat.com>
15140
15141 * breakpoint.c (read_uploaded_action)
15142 (create_tracepoint_from_upload): Adjust to use
15143 gdb::unique_xmalloc_ptr.
15144 * ctf.c (ctf_write_uploaded_tp):
15145 (SET_ARRAY_FIELD): Use emplace_back.
15146 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15147 * tracefile-tfile.c (tfile_write_uploaded_tp):
15148 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15149 gdb::unique_xmalloc_ptr.
15150 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15151 at_string, cond_string, cmd_strings>: Replace char pointers
15152 with gdb::unique_xmalloc_ptr.
15153
15154 2019-01-10 Pedro Alves <palves@redhat.com>
15155
15156 * solib-target.c (library_list_start_library): Don't xstrdup name.
15157
15158 2019-01-10 Pedro Alves <palves@redhat.com>
15159
15160 * mdebugread.c (parse_partial_symbols): Use
15161 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15162
15163 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15164
15165 * linux-fork.c (scoped_switch_fork_info)
15166 <~scoped_switch_fork_info>: Fix incorrect variable name.
15167
15168 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15169
15170 * linux-fork.c (scoped_switch_fork_info)
15171 <scoped_switch_fork_info>: Make explicit.
15172 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15173
15174 2019-01-10 Tom Tromey <tom@tromey.com>
15175
15176 * objfiles.h (objfile::reset_psymtabs): Update.
15177 * objfiles.c (objfile::objfile): Update.
15178 * psymtab.h (psymtab_storage::obstack): Update.
15179 (psymtab_storage::m_obstack): Use gdb::optional.
15180 (class psymtab_storage): Update comment. Remove objfile
15181 parameter.
15182 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15183
15184 2019-01-10 Tom Tromey <tom@tromey.com>
15185
15186 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15187 <free_psymtabs>: Now private.
15188 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15189 (allocate_psymtab): Use new method.
15190
15191 2019-01-10 Tom Tromey <tom@tromey.com>
15192
15193 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15194 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15195 * mdebugread.c (parse_partial_symbols): Use
15196 allocate_dependencies.
15197 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15198 allocate_dependencies.
15199 (process_psymtab_comp_unit_reader)
15200 (build_type_psymtab_dependencies): Likewise.
15201 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15202
15203 2019-01-10 Tom Tromey <tom@tromey.com>
15204
15205 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15206 PSYMBOL_SET_LANGUAGE.
15207 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15208
15209 2019-01-10 Tom Tromey <tom@tromey.com>
15210
15211 * psymtab.h (psymtab_storage::obstack): New method.
15212 <m_obstack>: Rename from obstack; now private.
15213 * psymtab.c (psymtab_storage): Update.
15214 * dwarf2read.c (create_addrmap_from_index)
15215 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15216 Update.
15217
15218 2019-01-10 Tom Tromey <tom@tromey.com>
15219
15220 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15221 * objfiles.h (objfile::reset_psymtabs): New method.
15222
15223 2019-01-10 Tom Tromey <tom@tromey.com>
15224
15225 * symmisc.c (print_symbol_bcache_statistics): Update.
15226 (print_objfile_statistics): Update.
15227 * symfile.c (reread_symbols): Update.
15228 * psymtab.h (class psymtab_storage): New.
15229 * psymtab.c (psymtab_storage): New constructor.
15230 (~psymtab_storage): New destructor.
15231 (require_partial_symbols): Update.
15232 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15233 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15234 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15235 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15236 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15237 (start_psymtab_common, end_psymtab_common)
15238 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15239 (allocate_psymtab): Update.
15240 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15241 Update.
15242 (dump_psymtab_addrmap, maintenance_print_psymbols)
15243 (maintenance_check_psymtabs): Update.
15244 (class objfile_psymtabs): Move to objfiles.h.
15245 * psympriv.h (discard_psymtab): Now inline.
15246 (psymtab_discarder::psymtab_discarder): Update.
15247 (psymtab_discarder::~psymtab_discarder): Update.
15248 (ALL_OBJFILE_PSYMTABS): Rewrite.
15249 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15250 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15251 Remove fields.
15252 <partial_symtabs>: New field.
15253 (class objfile_psymtabs): Move from psymtab.h. Update.
15254 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15255 psymbol_cache.
15256 (objfile::~objfile): Don't destroy psymbol_cache.
15257 * mdebugread.c (parse_partial_symbols): Update.
15258 * dwarf2read.c (create_addrmap_from_index)
15259 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15260 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15261 (add_partial_subprogram, dwarf2_ranges_read): Update.
15262 * dwarf-index-write.c (write_address_map)
15263 (write_one_signatured_type, recursively_write_psymbols)
15264 (class debug_names, class debug_names, write_psymtabs_to_index):
15265 Update.
15266
15267 2019-01-10 Tom Tromey <tom@tromey.com>
15268
15269 * symtab.h (SYMBOL_SET_NAMES): Update.
15270 (symbol_set_names): Update.
15271 (MSYMBOL_SET_NAMES): Update.
15272 * symtab.c (symbol_set_names): Change argument to be an
15273 objfile_per_bfd_storage.
15274 * psymtab.c (add_psymbol_to_bcache): Update.
15275 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15276
15277 2019-01-10 Tom Tromey <tom@tromey.com>
15278
15279 * symtab.c (create_demangled_names_hash): Change argument to be an
15280 objfile_per_bfd_storage.
15281 (symbol_set_names): Update.
15282
15283 2019-01-10 Tom Tromey <tom@tromey.com>
15284
15285 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15286 init_psymbol_list.
15287 * psymtab.c (init_psymbol_list): Do nothing if already called.
15288 * psympriv.h (init_psymbol_list): Add comment.
15289 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15290 init_psymbol_list.
15291 * dbxread.c (dbx_symfile_read): Unconditionally call
15292 init_psymbol_list.
15293
15294 2019-01-10 Tom Tromey <tom@tromey.com>
15295
15296 * xcoffread.c (scan_xcoff_symtab): Update.
15297 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15298 "where".
15299 * mdebugread.c (parse_partial_symbols)
15300 (handle_psymbol_enumerators): Update.
15301 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15302 * dbxread.c (read_dbx_symtab): Update.
15303 * psympriv.h (psymbol_placement): New enum.
15304 (add_psymbol_to_list): Update.
15305
15306 2019-01-10 Tom Tromey <tom@tromey.com>
15307
15308 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15309 static_psymbols parameters.
15310 (scan_xcoff_symtab): Update.
15311 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15312 static_psymbols parameters.
15313 * psympriv.h (start_psymtab_common): Update.
15314 * mdebugread.c (parse_partial_symbols): Update.
15315 * dwarf2read.c (create_partial_symtab): Update.
15316 * dbxread.c (read_dbx_symtab): Update.
15317 (start_psymtab): Remove global_psymbols and static_psymbols
15318 parameters.
15319
15320 2019-01-10 Tom Tromey <tom@tromey.com>
15321
15322 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15323 * psymtab.c (allocate_psymtab): Add comment.
15324 * psympriv.h (allocate_psymtab): Add comment.
15325 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15326 initializations.
15327 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15328
15329 2019-01-10 Tom Tromey <tom@tromey.com>
15330
15331 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15332 Don't declare.
15333 * mipsread.c: Include mdebugread.h.
15334 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15335 Declare.
15336 * elfread.c: Include mdebugread.h.
15337
15338 2019-01-09 Tom Tromey <tom@tromey.com>
15339
15340 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15341 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15342 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15343 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15344 (psym_lookup_symbol, psym_find_last_source_symtab)
15345 (psym_forget_cached_source_info, psym_print_stats)
15346 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15347 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15348 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15349 (psym_find_compunit_symtab_by_address)
15350 (maintenance_print_psymbols, maintenance_info_psymtabs)
15351 (maintenance_check_psymtabs): Use ranged for.
15352 * psymtab.h (class objfile_psymtabs): New.
15353 (require_partial_symbols): Return objfile_psymtabs.
15354 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15355
15356 2019-01-09 Tom Tromey <tom@tromey.com>
15357
15358 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15359 (find_pc_mapped_section, list_overlays_command)
15360 (map_overlay_command, unmap_overlay_command)
15361 (simple_overlay_update): Use all_objfiles.
15362 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15363 * printcmd.c (info_symbol_command): Use all_objfiles.
15364 * objfiles.h (ALL_OBJSECTIONS): Remove.
15365 * maint.c (maintenance_translate_address): Use all_objfiles.
15366 * gcore.c (gcore_create_callback): Use all_objfiles.
15367 (objfile_find_memory_regions): Likewise.
15368
15369 2019-01-09 Tom Tromey <tom@tromey.com>
15370
15371 * symtab.c (find_line_symtab, info_sources_command)
15372 (make_source_files_completion_list): Use objfile_compunits.
15373 * source.c (select_source_symtab): Use objfile_compunits.
15374 * objfiles.h (struct objfile): Update comment.
15375 (ALL_OBJFILES): Remove.
15376 (ALL_FILETABS): Remove.
15377 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15378 objfile_compunits.
15379
15380 2019-01-09 Tom Tromey <tom@tromey.com>
15381
15382 * symmisc.c (print_objfile_statistics, dump_objfile)
15383 (maintenance_print_symbols): Use compunit_filetabs.
15384 * source.c (forget_cached_source_info_for_objfile): Use
15385 compunit_filetabs.
15386 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15387 (ALL_FILETABS): Use compunit_filetabs.
15388 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15389 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15390
15391 2019-01-09 Tom Tromey <tom@tromey.com>
15392
15393 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15394 (compunit_filetabs): New.
15395 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15396 compunit_filetabs.
15397 (info_sources_command, make_source_files_completion_list): Remove
15398 declaration.
15399 * symmisc.c (print_objfile_statistics, dump_objfile)
15400 (maintenance_print_symbols): Remove declaration.
15401 (maintenance_info_symtabs): Use compunit_filetabs.
15402 (maintenance_info_line_tables): Likewise.
15403 * source.c (select_source_symtab): Change local variable name.
15404 (forget_cached_source_info_for_objfile): Remove declaration.
15405 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15406 * objfiles.c (objfile_relocate1): Remove declaration.
15407 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15408 declaration.
15409 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15410 * coffread.c (coff_symtab_read): Remove declaration.
15411 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15412 compunit_filetabs.
15413
15414 2019-01-09 Tom Tromey <tom@tromey.com>
15415
15416 * symtab.c (lookup_objfile_from_block)
15417 (find_pc_sect_compunit_symtab, search_symbols)
15418 (default_collect_symbol_completion_matches_break_on): Use
15419 objfile_compunits.
15420 * objfiles.h (ALL_COMPUNITS): Remove.
15421 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15422 * cp-support.c (add_symbol_overload_list_qualified): Use
15423 objfile_compunits.
15424 * ada-lang.c (ada_collect_symbol_completion_matches)
15425 (ada_add_global_exceptions): Use objfile_compunits.
15426
15427 2019-01-09 Tom Tromey <tom@tromey.com>
15428
15429 * source.c (select_source_symtab)
15430 (forget_cached_source_info_for_objfile): Remove declaration.
15431 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15432 declaration.
15433 * maint.c (count_symtabs_and_blocks): Remove declaration.
15434 * cp-support.c (add_symbol_overload_list_qualified): Remove
15435 declaration.
15436 * coffread.c (coff_symtab_read): Remove declaration.
15437 * symtab.c (lookup_symbol_in_objfile_symtabs)
15438 (basic_lookup_transparent_type_1): Use objfile_compunits.
15439 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15440 (info_sources_command, search_symbols)
15441 (default_collect_symbol_completion_matches_break_on)
15442 (make_source_files_completion_list): Remove declaration.
15443 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15444 (ada_collect_symbol_completion_matches)
15445 (ada_add_global_exceptions): Remove declaration.
15446 * linespec.c (iterate_over_all_matching_symtabs): Use
15447 objfile_compunits.
15448 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15449 (class objfile_compunits): New.
15450 (ALL_COMPUNITS): Use objfile_compunits.
15451 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15452 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15453 objfile_compunits.
15454 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15455
15456 2019-01-09 Tom Tromey <tom@tromey.com>
15457
15458 * symtab.c (search_symbols)
15459 (default_collect_symbol_completion_matches_break_on): Use
15460 objfile_msymbols.
15461 * ada-lang.c (ada_lookup_simple_minsym)
15462 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15463 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15464 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15465 objfile_msymbols.
15466 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15467 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15468 * objc-lang.c (find_methods): Use objfile_msymbols.
15469 (info_selectors_command, info_classes_command): Likewise.
15470 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15471 * objfiles.h (class objfile_msymbols): New.
15472 (ALL_OBJFILE_MSYMBOLS): Remove.
15473 (ALL_MSYMBOLS): Remove.
15474
15475 2019-01-09 Tom Tromey <tom@tromey.com>
15476
15477 * common/next-iterator.h (next_adapter): Add Iterator template
15478 parameter.
15479 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15480 (class all_objfiles_safe): New.
15481 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15482 * objfiles.c (put_objfile_before): Update comment.
15483 (add_separate_debug_objfile): Likewise.
15484 (free_all_objfiles): Use all_objfiles_safe.
15485 (objfile_purge_solibs): Likewise.
15486
15487 2019-01-09 Tom Tromey <tom@tromey.com>
15488
15489 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15490 (expand_symtab_containing_pc, lookup_static_symbol)
15491 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15492 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15493 all_objfiles.
15494 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15495 * breakpoint.c (create_overlay_event_breakpoint)
15496 (create_longjmp_master_breakpoint)
15497 (create_std_terminate_master_breakpoint)
15498 (create_exception_master_breakpoint): Use all_objfiles.
15499 * linux-thread-db.c (try_thread_db_load_from_pdir)
15500 (has_libpthread): Use all_objfiles.
15501 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15502 * linespec.c (iterate_over_all_matching_symtabs)
15503 (search_minsyms_for_name): Use all_objfiles.
15504 * maint.c (maintenance_info_sections): Use all_objfiles.
15505 * main.c (captured_main_1): Use all_objfiles.
15506 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15507 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15508 * guile/scm-pretty-print.c
15509 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15510 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15511 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15512 (maintenance_print_msymbols): Use all_objfiles.
15513 * source.c (select_source_symtab): Use all_objfiles.
15514 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15515 * symfile.c (remove_symbol_file_command)
15516 (expand_symtabs_matching, map_symbol_filenames): Use
15517 all_objfiles.
15518 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15519 all_objfiles.
15520 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15521 * objc-lang.c (find_methods): Use all_objfiles.
15522 * objfiles.c (have_partial_symbols, have_full_symbols)
15523 (have_minimal_symbols, qsort_cmp)
15524 (default_iterate_over_objfiles_in_search_order): Use
15525 all_objfiles.
15526 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15527 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15528 (maintenance_check_psymtabs): Use all_objfiles.
15529 (ALL_PSYMTABS): Remove.
15530 * compile/compile-object-run.c (do_module_cleanup): Use
15531 all_objfiles.
15532 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15533 * cp-support.c (add_symbol_overload_list_qualified): Use
15534 all_objfiles.
15535 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15536 Use all_objfiles.
15537 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15538 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15539 all_objfiles.
15540 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15541 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15542 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15543 Uses all_objfiles.
15544 * solib.c (solib_read_symbols): Use all_objfiles
15545
15546 2019-01-09 Tom Tromey <tom@tromey.com>
15547
15548 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15549 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15550 all_objfiles.
15551 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15552 * symmisc.c (print_symbol_bcache_statistics)
15553 (print_objfile_statistics, maintenance_print_objfiles)
15554 (maintenance_info_symtabs, maintenance_check_symtabs)
15555 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15556 all_objfiles.
15557 * source.c (forget_cached_source_info): Use all_objfiles.
15558 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15559 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15560 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15561 * objfiles.c (update_section_map): Use all_objfiles.
15562 (shared_objfile_contains_address_p): Likewise.
15563 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15564 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15565
15566 2019-01-09 Tom Tromey <tom@tromey.com>
15567
15568 * common/next-iterator.h: New file.
15569 * objfiles.h (class all_objfiles): New.
15570 (struct objfile_iterator): New.
15571
15572 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15573
15574 * NEWS: Move the description of the changed "frame", "select-frame",
15575 and "info frame" commands to the Changed commands section.
15576
15577 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15578
15579 * gdbtypes.c (check_stub_method_group): Remove handling of old
15580 mangling schemes.
15581 * linespec.c (find_methods): Likewise.
15582 * stabsread.c (read_member_functions): Likewise.
15583 * valops.c (search_struct_method): Likewise.
15584 (value_struct_elt_for_reference): Likewise.
15585 * NEWS: Mention this change.
15586
15587 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15588
15589 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15590 print_source_lines.
15591 * source.c (print_source_lines_base): Update line number check.
15592 (print_source_lines): New function.
15593 (source_lines_range::source_lines_range): New function.
15594 * source.h (class source_lines_range): New class.
15595 (print_source_lines): New declaration.
15596
15597 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15598
15599 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15600
15601 2019-01-08 Tom Tromey <tom@tromey.com>
15602 Simon Marchi <simon.marchi@ericsson.com>
15603
15604 PR gdb/24060
15605 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15606 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15607 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15608 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15609 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15610 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15611
15612 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15613
15614 * source.c (select_source_symtab): Move header comment to
15615 declaration in source.h.
15616 (forget_cached_source_info_for_objfile): Likewise.
15617 (forget_cached_source_info): Likewise.
15618 (identify_source_line): Likewise.
15619 * source.h (identify_source_line): Move declaration from symtab.h
15620 and add comment from source.c
15621 (print_source_lines): Likewise.
15622 (forget_cached_source_info_for_objfile): Likewise.
15623 (forget_cached_source_info): Likewise.
15624 (select_source_symtab): Likewise.
15625 (enum print_source_lines_flag): Move definition from symtab.h.
15626 * symtab.h (identify_source_line): Move declaration to source.h.
15627 (print_source_lines): Likewise.
15628 (forget_cached_source_info_for_objfile): Likewise.
15629 (forget_cached_source_info): Likewise.
15630 (select_source_symtab): Likewise.
15631 (enum print_source_lines_flag): Move definition to source.h.
15632 * tui/tui-hooks.c: Add 'source.h' include.
15633
15634 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15635
15636 * source.c (print_source_lines_base): Handle requests to print
15637 reverse line number sequences, and guard against empty lines
15638 string.
15639
15640 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15641
15642 * source.c (print_source_lines_base): Fix skip of '\r' if next
15643 character is '\n'.
15644
15645 2019-01-06 Tom Tromey <tom@tromey.com>
15646
15647 * c-exp.y (struct c_parse_state) <macro_original_text,
15648 expansion_obstack>: New member.
15649 (macro_original_text, expansion_obstack): Remove globals.
15650 (scan_macro_expansion, scanning_macro_expansion)
15651 (finished_macro_expansion): Update.
15652 (scan_macro_cleanup): Remove.
15653 (yylex, c_parse): Update.
15654
15655 2019-01-06 Tom Tromey <tom@tromey.com>
15656
15657 * c-exp.y (struct c_parse_state) <strings>: New member.
15658 (operator_stoken): Update.
15659
15660 2019-01-06 Tom Tromey <tom@tromey.com>
15661
15662 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15663 (union type_stack_elt) <typelist_val>: Now a pointer to
15664 std::vector.
15665 (type_stack_cleanup): Don't declare.
15666 (push_typelist): Update.
15667 * parse.c (pop_typelist): Return a std::vector.
15668 (push_typelist): Take a std::vector.
15669 (follow_types): Update. Do not free args.
15670 (type_stack_cleanup): Remove.
15671 * c-exp.y (struct c_parse_state): New.
15672 (cpstate): New global.
15673 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15674 (nonempty_typelist): Update.
15675 (func_mod): Create a new vector.
15676 (c_parse): Create a c_parse_state.
15677 (check_parameter_typelist): Do not delete params.
15678 (function_method): Update. Do not delete type_list.
15679
15680 2019-01-06 Tom Tromey <tom@tromey.com>
15681
15682 PR gdb/28155:
15683 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15684 check_typedef.
15685 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15686 (print_return_value): Likewise.
15687
15688 2019-01-05 Tom Tromey <tom@tromey.com>
15689
15690 * contrib/cleanup_check.py: Remove.
15691 * contrib/gcc-with-excheck: Remove.
15692 * contrib/exsummary.py: Remove.
15693 * contrib/excheck.py: Remove.
15694
15695 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15696
15697 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15698 NULL. Initialize tpprev to NULL instead of assigning it
15699 to NULL on the next statement.
15700 * windows-nat.c (windows_delete_thread): Remove check for
15701 main_thread_id before printing thread exit notifications.
15702 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15703 Remove thread ID check against main_thread_id.
15704 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15705 windows_delete_thread.
15706 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15707
15708 2019-01-04 Tom Tromey <tom@tromey.com>
15709
15710 * compile/compile.c (_initialize_compile): Use upper case for
15711 metasyntactic variables.
15712 * symmisc.c (_initialize_symmisc): Use upper case for
15713 metasyntactic variables.
15714 * psymtab.c (_initialize_psymtab): Use upper case for
15715 metasyntactic variables.
15716 * demangle.c (demangle_command): Use upper case for metasyntactic
15717 variables.
15718 (_initialize_demangler): Likewise.
15719 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15720 variables.
15721
15722 2019-01-03 Tom Tromey <tom@tromey.com>
15723
15724 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15725
15726 2019-01-03 Tom Tromey <tom@tromey.com>
15727
15728 * python/py-symtab.c (salpy_str): Update.
15729 (struct salpy_sal_object) <symtab>: Now a PyObject.
15730 (salpy_dealloc): Update.
15731 (del_objfile_sal): Use gdbpy_ref.
15732
15733 2019-01-03 Tom Tromey <tom@tromey.com>
15734
15735 * python/py-type.c (convert_field): Use new_reference. Return
15736 gdbpy_ref.
15737 (make_fielditem): Return gdbpy_ref.
15738 (typy_fields): Update.
15739 (typy_getitem): Update.
15740 (field_name): Return gdbpy_ref. Use new_reference.
15741 (typy_iterator_iternext): Update.
15742
15743 2019-01-03 Tom Tromey <tom@tromey.com>
15744
15745 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15746
15747 2019-01-03 Tom Tromey <tom@tromey.com>
15748
15749 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15750 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15751 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15752 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15753 (pspy_set_type_printers): Likewise.
15754 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15755 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15756 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15757 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15758 (objfpy_set_type_printers): Likewise.
15759
15760 2019-01-03 Tom Tromey <tom@tromey.com>
15761
15762 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15763 (gdbpy_print_stack): Use gdbpy_err_fetch.
15764 * python/python-internal.h (class gdbpy_err_fetch): New class.
15765 (class gdbpy_enter) <m_error_type, m_error_value,
15766 m_error_traceback>: Remove.
15767 <m_error>: New member.
15768 (gdbpy_exception_to_string): Don't declare.
15769 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15770 * python/py-value.c (convert_value_from_python): Use
15771 gdbpy_err_fetch.
15772 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15773 gdbpy_exception_to_string.
15774 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15775 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15776 gdbpy_err_fetch.
15777
15778 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15779
15780 * linux-nat.c (delete_lwp_cleanup): Delete.
15781 (struct lwp_deleter): New struct.
15782 (lwp_info_up): New typedef.
15783 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15784 lwp_info_up.
15785
15786 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15787
15788 * linux-fork.c (class scoped_switch_fork_info): New class.
15789 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15790
15791 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15792
15793 * valops.c (find_overload_match): Remove use of null_cleanup, and
15794 calls to do_cleanups.
15795
15796 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15797
15798 * compile/compile-cplus-types.c
15799 (compile_cplus_instance::decl_name): Handle changes to
15800 cp_func_name.
15801 * cp-support.c (cp_func_name): Update header comment, update
15802 return type.
15803 * cp-support.h (cp_func_name): Update return type in declaration.
15804 * valops.c (find_overload_match): Move temp_func local to top
15805 level of function and change its type. Use temp_func to hold and
15806 delete temporary string obtained from cp_func_name.
15807
15808 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15811 gdb::char_vector, remove cleanup, and update uses of `msg`.
15812
15813 2019-01-03 Jim Wilson <jimw@sifive.com>
15814
15815 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15816
15817 2019-01-02 Tom Tromey <tom@tromey.com>
15818
15819 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15820 (tdesc_parse_xml): Remove cleanups.
15821 * target-descriptions.h (make_cleanup_free_target_description):
15822 Don't declare.
15823 (target_desc_deleter): New struct.
15824 (target_desc_up): New typedef.
15825 * target-descriptions.c (target_desc_deleter::operator()): Rename
15826 from free_target_description.
15827 (make_cleanup_free_target_description): Remove.
15828
15829 2019-01-02 Tom Tromey <tom@tromey.com>
15830
15831 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15832 constructor, destructor.
15833 (linespec_parser): Remove typedef.
15834 (~linespec_parser): Rename from linespec_parser_delete.
15835 (linespec_lex_to_end, linespec_complete_label)
15836 (linespec_complete): Update.
15837 (decode_line_full): Remove cleanups.
15838 (decode_line_1): Update.
15839
15840 2019-01-02 Tom Tromey <tom@tromey.com>
15841
15842 * python/python-internal.h (inferior_to_inferior_object): Change
15843 return type.
15844 * python/py-exitedevent.c (create_exited_event_object): Update.
15845 * python/py-inferior.c (inferior_to_inferior_object): Return
15846 gdbpy_ref.
15847 (python_new_inferior, python_inferior_deleted)
15848 (thread_to_thread_object, delete_thread_object)
15849 (build_inferior_list, gdbpy_selected_inferior): Update.
15850 * python/py-infthread.c (create_thread_object): Update. Also fail
15851 if inferior_to_inferior_object fails.
15852
15853 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15854
15855 * inferior.h (class inferior) <displaced_step_state>: New field.
15856 * infrun.h (struct displaced_step_state): Move here from
15857 infrun.c. Initialize fields, add constructor.
15858 <inf>: Remove field.
15859 <reset>: New method.
15860 * infrun.c (struct displaced_step_inferior_state): Move to
15861 infrun.h.
15862 (displaced_step_inferior_states): Remove.
15863 (get_displaced_stepping_state): Adust.
15864 (displaced_step_in_progress_any_inferior): Adjust.
15865 (displaced_step_in_progress_thread): Adjust.
15866 (displaced_step_in_progress): Adjust.
15867 (add_displaced_stepping_state): Remove.
15868 (get_displaced_step_closure_by_addr): Adjust.
15869 (remove_displaced_stepping_state): Remove.
15870 (infrun_inferior_exit): Call displaced_step_state.reset.
15871 (use_displaced_stepping): Don't check for NULL.
15872 (displaced_step_prepare_throw): Call
15873 get_displaced_stepping_state.
15874 (displaced_step_fixup): Don't check for NULL.
15875 (prepare_for_detach): Don't check for NULL.
15876
15877 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15878
15879 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15880 in case of call that did not complete.
15881
15882 2019-01-02 Andrey Utkin <autkin@undo.io>
15883
15884 * symfile.c (find_separate_debug_file): Fix search of debug files for
15885 remote debuggee.
15886
15887 2019-01-02 Tom Tromey <tom@tromey.com>
15888
15889 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15890 indentation.
15891 * python/py-frame.c (frapy_older): Remove cast.
15892 (frapy_newer): Likewise.
15893 * python/py-breakpoint.c (local_setattro): Remove cast.
15894 * python/py-arch.c (archpy_name): Remove local variable.
15895 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15896
15897 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15898
15899 * unittests/basic_string_view/element_access/char/empty.cc:
15900 Fix year range in copyright header.
15901
15902 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15903
15904 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15905 Delete.
15906 <operator==>: Update with for removed field.
15907 <hash>: Likewise.
15908 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15909 <isa_features>: ...this.
15910 <abi_features>: New field.
15911 (riscv_isa_flen): Update comment.
15912 (riscv_abi_xlen): New declaration.
15913 (riscv_abi_flen): New declaration.
15914 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15915 isa_features.
15916 (riscv_abi_xlen): New function.
15917 (riscv_isa_flen): Update to get answer from isa_features.
15918 (riscv_abi_flen): New function.
15919 (riscv_has_fp_abi): Update to get answer from abi_features.
15920 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15921 xlen and flen.
15922 (riscv_call_info) <xlen, flen>: Update comment.
15923 (riscv_call_arg_struct): Remove invalid assertions
15924 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15925 is removed.
15926 (riscv_gdbarch_init): Gather isa features and abi features
15927 separately, ensure both match on the gdbarch when reusing an old
15928 gdbarch. Relax an error check to allow 32-bit abi float to run on
15929 a target with 64-bit float hardware.
15930
15931 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15932
15933 * source.c (search_command_helper): Stop reverse search
15934 when line 1 has been searched.
15935
15936 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15937
15938 * record-full.c (record_full_base_target::close): Rewrite
15939 record_full_core_buf_list free logic.
15940
15941 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15942
15943 * break-catch-syscall.c (print_one_catch_syscall): xfree
15944 the last text.
15945
15946 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15947
15948 * top.c (print_gdb_version): Update Copyright year in version
15949 message.
15950
15951 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15952
15953 Update copyright year range in all GDB files.
15954
15955 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15956
15957 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15958
15959 For older changes see ChangeLog-2018.
15960 \f
15961 Local Variables:
15962 mode: change-log
15963 left-margin: 8
15964 fill-column: 74
15965 version-control: never
15966 coding: utf-8
15967 End:
15968
This page took 0.465955 seconds and 3 git commands to generate.