a3c06705d970bab80ff31a5588a2dc2119c92477
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * valops.c (find_oload_champ): Print part of debug messages
4 before the badness vector is std::move'd.
5
6 2019-11-28 Tom Tromey <tom@tromey.com>
7
8 * value.c (creal_internal_fn): Fix comment.
9
10 2019-11-28 Tom Tromey <tom@tromey.com>
11
12 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
13 flag_bound_evaluated>: Now unsigned.
14
15 2019-11-28 Tom Tromey <tom@tromey.com>
16
17 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
18 declare.
19
20 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
21
22 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
23 debug output.
24 * jit.c (jit_unregister_code): Add debug print to match
25 `jit_register_code`.
26
27 2019-11-27 Christian Biesinger <cbiesinger@google.com>
28
29 * NEWS: Mention the new multithreaded symbol loading.
30
31 2019-11-27 Christian Biesinger <cbiesinger@google.com>
32
33 * maint.c (n_worker_threads): Default to 0.
34 (worker_threads_disabled): New function.
35 * maint.h (worker_threads_disabled): New function.
36 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
37 here if worker_threads_disabled () is true.
38 (minimal_symbol_reader::install): Skip all threading if
39 worker_threads_disabled () is true.
40
41 2019-11-27 Christian Biesinger <cbiesinger@google.com>
42
43 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
44 hash code if possible.
45 (add_minsym_to_demangled_hash_table): Likewise.
46 (minimal_symbol_reader::install): Compute the hash codes for msymbol
47 on the background thread.
48 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
49 Add these fields.
50
51 2019-11-27 Christian Biesinger <cbiesinger@google.com>
52
53 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
54 of the mangled name on the background thread.
55 * symtab.c (symbol_set_names): Allow passing in the hash of the
56 linkage_name.
57 * symtab.h (symbol_set_names): Likewise.
58
59 2019-11-27 Kevin Buettner <kevinb@redhat.com>
60
61 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
62 physnames are computed for inherited DIEs.
63
64 2019-11-27 Tom Tromey <tromey@adacore.com>
65
66 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
67 backslashes.
68 * cp-support.c: Remove unnecessary backslashes.
69
70 2019-11-27 Christian Biesinger <cbiesinger@google.com>
71
72 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
73 with sym->set_linkage_name.
74 * coffread.c (coff_read_enum_type): Likewise.
75 * mdebugread.c (parse_symbol): Likewise.
76 * stabsread.c (patch_block_stabs): Likewise.
77 (define_symbol): Likewise.
78 (read_enum_type): Likewise.
79 (common_block_end): Likewise.
80 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
81 function.
82 (SYMBOL_SET_LINKAGE_NAME): Remove.
83 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
84 with sym->set_linkage_name.
85
86 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
89 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
90 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
91 * NEWS: Mention new MI command.
92
93 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
94
95 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
96 '-symbol-info-types', and '-symbol-info-variables'.
97 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
98 (mi_cmd_symbol_info_types): Declare.
99 (mi_cmd_symbol_info_variables): Declare.
100 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
101 (output_debug_symbol): New function.
102 (output_nondebug_symbol): New function.
103 (mi_symbol_info): New function.
104 (mi_info_functions_or_variables): New function.
105 (mi_cmd_symbol_info_functions): New function.
106 (mi_cmd_symbol_info_types): New function.
107 (mi_cmd_symbol_info_variables): New function.
108 * NEWS: Mention new commands.
109
110 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * symtab.c (symbol_to_info_string): New function, most content
113 moved from print_symbol_info, but updated to return a std::string.
114 (print_symbol_info): Update to use symbol_to_info_string and print
115 returned string.
116 * symtab.h (symbol_to_info_string): Declare new function.
117
118 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * python/python.c (gdbpy_rbreak): Convert to using
121 global_symbol_searcher.
122 * symtab.c (file_matches): Convert return type to bool, change
123 file list to std::vector, update header comment.
124 (search_symbols): Rename to...
125 (global_symbol_searcher::search): ...this and update now its
126 a member function of global_symbol_searcher. Take account of the
127 changes to file_matches.
128 (symtab_symbol_info): Convert to using global_symbol_searcher.
129 (rbreak_command): Likewise.
130 (search_module_symbols): Likewise.
131 * symtab.h (enum symbol_search): Update comment.
132 (search_symbols): Remove declaration.
133 (class global_symbol_searcher): New class.
134
135 2019-11-26 Tom Tromey <tromey@adacore.com>
136
137 * cp-support.c (_initialize_cp_support): Conditionally initialize
138 gdb_demangle_attempt_core_dump.
139
140 2019-11-26 Tom Tromey <tom@tromey.com>
141
142 * python/py-function.c (fnpy_init): Update.
143 * value.h (add_internal_function): Adjust declaration.
144 * value.c (function_destroyer): Remove.
145 (do_add_internal_function): Don't set destroyer or copy name.
146 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
147 Set name_allocated.
148 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
149 (cmdpy_init): Set name_allocated.
150 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
151 member.
152 (~cmd_list_element): Free "name" if needed.
153
154 2019-11-26 Tom Tromey <tom@tromey.com>
155
156 * value.h (add_internal_function): Add new overload. Move
157 documentation from value.h.
158 * value.c (do_add_internal_function): New function.
159 (add_internal_function): Use it. Add new overload.
160 (function_destroyer): Don't free doc.
161 * python/py-function.c (fnpy_init): Update.
162
163 2019-11-26 Tom Tromey <tom@tromey.com>
164
165 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
166 (cmdpy_init): Set "doc_allocated".
167
168 2019-11-26 Tom Tromey <tom@tromey.com>
169
170 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
171 name of worker thread.
172 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
173 pthread_setname_np.
174 * configure, config.in: Rebuild.
175
176 2019-11-26 Tom Tromey <tom@tromey.com>
177
178 * python/python.c (class gdbpy_gil): New.
179 (struct gdbpy_event): Add constructor, destructor, operator().
180 (gdbpy_post_event): Use run_on_main_thread.
181 (gdbpy_initialize_events): Remove.
182 (do_start_initialization): Update.
183
184 2019-11-26 Tom Tromey <tom@tromey.com>
185
186 * NEWS: Add entry.
187 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
188 commands. Call update_thread_pool_size.
189 (update_thread_pool_size, maintenance_set_worker_threads): New
190 functions.
191 (n_worker_threads): New global.
192
193 2019-11-26 Christian Biesinger <cbiesinger@google.com>
194 Tom Tromey <tom@tromey.com>
195
196 * minsyms.c (minimal_symbol_reader::install): Use
197 parallel_for_each.
198 * gdbsupport/parallel-for.h: New file.
199 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
200
201 2019-11-26 Christian Biesinger <cbiesinger@google.com>
202 Tom Tromey <tom@tromey.com>
203
204 * gdbsupport/thread-pool.h: New file.
205 * gdbsupport/thread-pool.c: New file.
206 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
207 (HFILES_NO_SRCDIR): Add thread-pool.h.
208
209 2019-11-26 Tom Tromey <tom@tromey.com>
210
211 * event-top.h (thread_local_segv_handler): Declare.
212 * event-top.c (thread_local_segv_handler): New global.
213 (install_handle_sigsegv, handle_sigsegv): New functions.
214 (async_init_signals): Install SIGSEGV handler.
215 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
216 thread-local.
217 (report_failed_demangle): New function.
218 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
219 handler-setting code, instead use segv_handler. Run warning code
220 on main thread.
221
222 2019-11-26 Tom Tromey <tom@tromey.com>
223
224 * run-on-main-thread.c: New file.
225 * run-on-main-thread.h: New file.
226 * unittests/main-thread-selftests.c: New file.
227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
228 main-thread-selftests.c.
229 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
230 (COMMON_SFILES): Add run-on-main-thread.c.
231
232 2019-11-26 Tom Tromey <tom@tromey.com>
233
234 * main.c (setup_alternate_signal_stack): Remove.
235 (captured_main_1): Use gdb::alternate_signal_stack.
236 * gdbsupport/alt-stack.h: New file.
237
238 2019-11-26 Tom Tromey <tom@tromey.com>
239
240 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
241 Remove comment.
242 (save_original_signals_state, restore_original_signals_state): Use
243 gdb_sigmask.
244 * linux-nat.c (block_child_signals, restore_child_signals_mask)
245 (_initialize_linux_nat): Use gdb_sigmask.
246 * guile/guile.c (_initialize_guile): Use block_signals.
247 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
248 * gdbsupport/gdb-sigmask.h: New file.
249 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
250 * cp-support.c (gdb_demangle): Use gdb_sigmask.
251 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
252 pthread_sigmask.
253 * configure, config.in: Rebuild.
254 * gdbsupport/block-signals.h: New file.
255
256 2019-11-26 Tom Tromey <tom@tromey.com>
257
258 * acinclude.m4: Include ax_pthread.m4.
259 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
260 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
261 (CLIBS): Use PTHREAD_LIBS.
262 (aclocal_m4_deps): Add ax_pthread.m4.
263 * config.in, configure: Rebuild.
264 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
265
266 2019-11-26 Tom Tromey <tom@tromey.com>
267
268 * symtab.h (struct minimal_symbol) <name_set>: New member.
269 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
270 Don't call symbol_set_names.
271 (minimal_symbol_reader::install): Call symbol_set_names.
272
273 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
274
275 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
276 restore_active_ext_lang, as GIL is needed for (indirectly)
277 called PyOS_InterruptOccurred.
278
279 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
280
281 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
282 definition.
283
284 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
285
286 * remote-sim.c (simulator_command): Make static, remove
287 declaration.
288
289 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
290
291 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
292 static.
293 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
294 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
295 (main): Likewise.
296 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
297 (main): Likewise.
298 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
299 (main): Likewise.
300 * unittests/basic_string_view/element_access/char/1.cc (test01):
301 Likewise.
302 (main): Likewise.
303 * unittests/basic_string_view/element_access/char/empty.cc (main):
304 Likewise.
305 * unittests/basic_string_view/element_access/char/front_back.cc
306 (test01): Likewise.
307 (main): Likewise.
308 * unittests/basic_string_view/inserters/char/2.cc (test05):
309 Likewise.
310 (main): Likewise.
311 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
312 (test01): Likewise.
313 (main): Likewise.
314 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
315 (test01): Likewise.
316 (main): Likewise.
317 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
318 Likewise.
319 * unittests/basic_string_view/operations/compare/char/1.cc
320 (test01): Likewise.
321 (main): Likewise.
322 * unittests/basic_string_view/operations/compare/char/13650.cc
323 (test01): Likewise.
324 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
325 Likewise.
326 (main): Likewise.
327 * unittests/basic_string_view/operations/data/char/1.cc (test01):
328 Likewise.
329 (main): Likewise.
330 * unittests/basic_string_view/operations/find/char/1.cc (test01):
331 Likewise.
332 (main): Likewise.
333 * unittests/basic_string_view/operations/find/char/2.cc (test02):
334 Likewise.
335 (main): Likewise.
336 * unittests/basic_string_view/operations/find/char/3.cc (test03):
337 Likewise.
338 (main): Likewise.
339 * unittests/basic_string_view/operations/find/char/4.cc (main):
340 Likewise.
341 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
342 Likewise.
343 (main): Likewise.
344 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
345 Likewise.
346 (main): Likewise.
347 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
348 Likewise.
349 (main): Likewise.
350 * unittests/basic_string_view/operations/substr/char/1.cc
351 (test01): Likewise.
352 (main): Likewise.
353 * unittests/basic_string_view/operators/char/2.cc (main):
354 Likewise.
355 * unittests/optional/assignment/1.cc (test): Likewise.
356 * unittests/optional/assignment/2.cc (test): Likewise.
357 * unittests/optional/assignment/3.cc (test): Likewise.
358 * unittests/optional/assignment/4.cc (test): Likewise.
359 * unittests/optional/assignment/5.cc (test): Likewise.
360 * unittests/optional/assignment/6.cc (test): Likewise.
361 * unittests/optional/assignment/7.cc (test): Likewise.
362 * unittests/optional/cons/copy.cc (test): Likewise.
363 * unittests/optional/cons/default.cc (test): Likewise.
364 * unittests/optional/cons/move.cc (test): Likewise.
365 * unittests/optional/cons/value.cc (test): Likewise.
366 * unittests/optional/in_place.cc (test): Likewise.
367 * unittests/optional/observers/1.cc (test): Likewise.
368 * unittests/optional/observers/2.cc (test): Likewise.
369
370 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
371
372 * tui-win.h (tui_set_var_cmd): Remove.
373 * tui-win.c (tui_set_var_cmd): Make static.
374
375 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
376
377 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
378 rbreak_command_wrapper): Remove.
379 * symtab.c (rbreak_command_wrapper): Remove.
380
381 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
382
383 * inferior.h (info_terminal_command): Remove declaration.
384 * inflow.c (info_terminal_command): Make static.
385
386 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
387
388 * inferior.c (exit_inferior_silent): Remove.
389
390 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
391
392 * dictionary.c (dict_empty, mdict_empty): Remove.
393 * dictionary.c (mdict_empty): Remove.
394
395 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
396
397 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
398 (arc_insn_get_memory_offset): Likewise.
399 (arc_insn_dump): Likewise.
400 * cp-support.c (test_cp_symbol_name_matches): Likewise.
401 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
402 * dictionary.c (dict_iterator_next): Likewise.
403 (dict_iter_match_first): Likewise.
404 (dict_iter_match_next): Likewise.
405 * f-lang.c (evaluate_subexp_f): Likewise.
406 * hppa-tdep.c (hppa_read_pc): Likewise.
407 * i386-tdep.c (i386_floatformat_for_type): Likewise.
408 * parse.c (write_exp_elt_msym): Likewise.
409 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
410 * remote.c (remote_packet_size): Likewise.
411 (remote_notif_stop_parse): Likewise.
412 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
413 * s12z-tdep.c (s12z_disassemble_info): Likewise.
414 * source.c (prepare_path_for_appending): Likewise.
415 * sparc64-linux-tdep.c
416 (sparc64_linux_handle_segmentation_fault); Likewise.
417 * stack.c (frame_selection_by_function_completer): Likewise.
418
419 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
420
421 * completer.c (set_gdb_completion_word_break_characters):
422 Remove.
423
424 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
425
426 * dwarf-index-write.c: Include dwarf-index-write.h.
427 * mi/mi-interp.c: Include mi/mi-interp.h.
428
429 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
430
431 * aarch32-tdep.c: Include aarch32-tdep.h.
432 * aarch32-tdep.h: Forward-declare struct target_desc.
433
434 2019-11-26 Christian Biesinger <cbiesinger@google.com>
435
436 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
437 strerror.
438 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
439 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
440
441 2019-11-25 Tom de Vries <tdevries@suse.de>
442
443 * contrib/words.sh: Add -c option.
444
445 2019-11-25 Christian Biesinger <cbiesinger@google.com>
446
447 * solib.c (solib_find_1): Change int to bool.
448 (exec_file_find): Change int to bool.
449 (solib_find): Change int to bool.
450 (solib_read_symbols): Change int to bool.
451 (solib_used): Change int to bool.
452 (solib_add): Change int to bool.
453 (info_sharedlibrary_command): Change int to bool.
454 (solib_contains_address_p): Change int to bool.
455 (solib_keep_data_in_core): Change int to bool.
456 (in_solib_dynsym_resolve_code): Change int to bool.
457 (reload_shared_libraries_1): Change int to bool.
458 (gdb_sysroot_changed): Change int to bool.
459 * solib.h (solib_read_symbols): Change int to bool.
460 (solib_contains_address_p): Change int to bool.
461 (solib_keep_data_in_core): Change int to bool.
462 (in_solib_dynsym_resolve_code): Change int to bool.
463 (libpthread_name_p): Change int to bool.
464
465 2019-11-25 Luis Machado <luis.machado@linaro.org>
466
467 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
468 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
469 (remote_packet_max_chars): New static global.
470 (show_remote_packet_max_chars): New function.
471 (remote_target::putpkt_binary): Adjust to use new
472 remote_packet_max_chars option.
473 (remote_target::getpkt_or_notif_sane_1): Likewise.
474 (_initialize_remote): Register new remote-packet-max-chars option.
475
476 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
477
478 * m68k-linux-nat.c: Include gdbarch.h.
479
480 2019-11-24 Tom Tromey <tom@tromey.com>
481
482 * symfile.c (read_symbols): Update.
483 * psymtab.c (require_partial_symbols): Change type of "verbose" to
484 bool.
485 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
486 (psym_lookup_symbol, psym_find_last_source_symtab)
487 (psym_forget_cached_source_info, psym_print_stats)
488 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
489 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
490 (psym_map_matching_symbols, psym_expand_symtabs_matching)
491 (psym_find_compunit_symtab_by_address)
492 (maintenance_print_psymbols, maintenance_info_psymtabs)
493 (maintenance_check_psymtabs): Update.
494 * psymtab.h (require_partial_symbols): Change type of "verbose" to
495 bool.
496
497 2019-11-22 Tom Tromey <tom@tromey.com>
498
499 * observable.h: Update comments.
500
501 2019-11-22 Tom Tromey <tromey@adacore.com>
502
503 * ada-tasks.c (ada_task_is_alive): Make parameter const.
504 (print_ada_task_info): Don't try to fetch thread id if task is not
505 alive.
506
507 2019-11-22 Christian Biesinger <cbiesinger@google.com>
508
509 * ada-exp.y: Update.
510 * ada-lang.c (sort_choices): Update.
511 (ada_print_symbol_signature): Update.
512 (resolve_subexp): Update.
513 (ada_parse_renaming): Update.
514 (ada_read_renaming_var_value): Update.
515 (lesseq_defined_than): Update.
516 (remove_extra_symbols): Update.
517 (remove_irrelevant_renamings): Update.
518 (ada_add_block_symbols): Update.
519 (ada_collect_symbol_completion_matches): Update.
520 (ada_is_renaming_symbol): Update.
521 (aggregate_assign_from_choices): Update.
522 (ada_evaluate_subexp): Update.
523 (ada_has_this_exception_support): Update.
524 (ada_is_non_standard_exception_sym): Update.
525 (ada_add_exceptions_from_frame): Update.
526 (ada_add_global_exceptions): Update.
527 (ada_print_subexp): Update.
528 * ax-gdb.c (gen_var_ref): Update.
529 (gen_maybe_namespace_elt): Update.
530 (gen_expr_for_cast): Update.
531 (gen_expr): Update.
532 * block.h: Update.
533 * blockframe.c (find_pc_partial_function): Update.
534 * breakpoint.c (print_breakpoint_location): Update.
535 (update_static_tracepoint): Update.
536 * btrace.c (ftrace_print_function_name): Update.
537 (ftrace_function_switched): Update.
538 * buildsym.c (find_symbol_in_list): Update.
539 * c-exp.y: Update.
540 * c-typeprint.c (c_print_typedef): Update.
541 (c_type_print_template_args): Update.
542 * cli/cli-cmds.c (edit_command): Update.
543 (list_command): Update.
544 (print_sal_location): Update.
545 * coffread.c (patch_opaque_types): Update.
546 (process_coff_symbol): Update.
547 (coff_read_enum_type): Update.
548 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
549 (convert_one_symbol): Update.
550 (hash_symname): Update.
551 (eq_symname): Update.
552 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
553 * compile/compile-cplus-types.c (debug_print_scope): Update.
554 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
555 * compile/compile-object-load.c (get_out_value_type): Update.
556 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
557 (search_symbol_list): Update.
558 (cp_lookup_symbol_imports_or_template): Update.
559 * cp-support.c (overload_list_add_symbol): Update.
560 * ctfread.c (psymtab_to_symtab): Update.
561 * dbxread.c (cp_set_block_scope): Update.
562 * dictionary.c (iter_match_first_hashed): Update.
563 (iter_match_next_hashed): Update.
564 (insert_symbol_hashed): Update.
565 (iter_match_next_linear): Update.
566 * dictionary.h: Update.
567 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
568 (locexpr_describe_location_piece): Update.
569 (locexpr_describe_location_1): Update.
570 (locexpr_generate_c_location): Update.
571 (loclist_describe_location): Update.
572 (loclist_generate_c_location): Update.
573 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
574 (read_func_scope): Update.
575 (process_enumeration_scope): Update.
576 (new_symbol): Update.
577 (dwarf2_const_value): Update.
578 (dwarf2_symbol_mark_computed): Update.
579 * eval.c (evaluate_funcall): Update.
580 (evaluate_subexp_standard): Update.
581 * expprint.c (print_subexp_standard): Update.
582 (dump_subexp_body_standard): Update.
583 * f-valprint.c (info_common_command_for_block): Update.
584 * findvar.c (get_hosting_frame): Update.
585 (default_read_var_value): Update.
586 * go-lang.c (go_symbol_package_name): Update.
587 * guile/scm-block.c (bkscm_print_block_smob): Update.
588 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
589 (gdbscm_symbol_name): Update.
590 (gdbscm_symbol_linkage_name): Update.
591 (gdbscm_symbol_print_name): Update.
592 * infcall.c (get_function_name): Update.
593 * infcmd.c (jump_command): Update.
594 (finish_command): Update.
595 * infrun.c (insert_exception_resume_breakpoint): Update.
596 * linespec.c (canonicalize_linespec): Update.
597 (create_sals_line_offset): Update.
598 (convert_linespec_to_sals): Update.
599 (complete_label): Update.
600 (find_label_symbols_in_block): Update.
601 * m2-typeprint.c (m2_print_typedef): Update.
602 * mdebugread.c (mdebug_reg_to_regnum): Update.
603 (parse_symbol): Update.
604 (mylookup_symbol): Update.
605 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
606 (list_args_or_locals): Update.
607 * objc-lang.c (compare_selectors): Update.
608 (info_selectors_command): Update.
609 (compare_classes): Update.
610 (info_classes_command): Update.
611 (find_imps): Update.
612 * p-typeprint.c (pascal_print_typedef): Update.
613 * printcmd.c (build_address_symbolic): Update.
614 (info_address_command): Update.
615 (print_variable_and_value): Update.
616 * python/py-framefilter.c (extract_sym): Update.
617 (py_print_single_arg): Update.
618 * python/py-symbol.c (sympy_str): Update.
619 (sympy_get_name): Update.
620 (sympy_get_linkage_name): Update.
621 * python/python.c (gdbpy_rbreak): Update.
622 * record-btrace.c (btrace_get_bfun_name): Update.
623 (btrace_call_history): Update.
624 * rust-lang.c (rust_print_typedef): Update.
625 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
626 * stabsread.c (stab_reg_to_regnum): Update.
627 (define_symbol): Update.
628 (read_enum_type): Update.
629 (common_block_end): Update.
630 (cleanup_undefined_types_1): Update.
631 (scan_file_globals): Update.
632 * stack.c (print_frame_arg): Update.
633 (print_frame_args): Update.
634 (find_frame_funname): Update.
635 (info_frame_command_core): Update.
636 (iterate_over_block_locals): Update.
637 (print_block_frame_labels): Update.
638 (do_print_variable_and_value): Update.
639 (iterate_over_block_arg_vars): Update.
640 (return_command): Update.
641 * symmisc.c (dump_symtab_1): Update.
642 (print_symbol): Update.
643 * symtab.c (eq_symbol_entry): Update.
644 (symbol_cache_dump): Update.
645 (lookup_language_this): Update.
646 (find_pc_sect_line): Update.
647 (skip_prologue_sal): Update.
648 (symbol_search::compare_search_syms): Update.
649 (treg_matches_sym_type_name): Update.
650 (search_symbols): Update.
651 (print_symbol_info): Update.
652 (rbreak_command): Update.
653 (completion_list_add_symbol): Update.
654 (find_gnu_ifunc): Update.
655 (get_symbol_address): Update.
656 (search_module_symbols): Update.
657 (info_module_subcommand): Update.
658 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
659 (SYMBOL_LINKAGE_NAME): Remove.
660 (SYMBOL_DEMANGLED_NAME): Remove.
661 (SYMBOL_PRINT_NAME): Remove.
662 (SYMBOL_SEARCH_NAME): Remove.
663 * tracepoint.c (set_traceframe_context): Update.
664 (validate_actionline): Update.
665 (collection_list::collect_symbol): Update.
666 (encode_actions_1): Update.
667 (info_scope_command): Update.
668 (print_one_static_tracepoint_marker): Update.
669 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
670 * valops.c (address_of_variable): Update.
671 (find_overload_match): Update.
672 (find_oload_champ): Update.
673
674 2019-11-22 Christian Biesinger <cbiesinger@google.com>
675
676 * ada-lang.c (ada_lookup_simple_minsym): Update.
677 (ada_collect_symbol_completion_matches): Update.
678 * ada-tasks.c (read_atcb): Update.
679 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
680 (amd64_windows_skip_trampoline_code): Update.
681 * arm-tdep.c (skip_prologue_function): Update.
682 (arm_skip_stack_protector): Update.
683 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
684 (arm_wince_skip_main_prologue): Update.
685 * ax-gdb.c (gen_expr): Update.
686 * block.c (call_site_for_pc): Update.
687 * blockframe.c (find_pc_partial_function): Update.
688 * breakpoint.c (set_breakpoint_location_function): Update.
689 * btrace.c (ftrace_print_function_name): Update.
690 (ftrace_function_switched): Update.
691 * c-valprint.c (print_unpacked_pointer): Update.
692 * coffread.c (coff_symfile_read): Update.
693 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
694 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
695 * dwarf-index-write.c (write_psymbols): Update.
696 * dwarf2loc.c (call_site_to_target_addr): Update.
697 (func_verify_no_selftailcall): Update.
698 (tailcall_dump): Update.
699 (call_site_find_chain_1): Update.
700 (dwarf_expr_reg_to_entry_parameter): Update.
701 * elfread.c (elf_gnu_ifunc_record_cache): Update.
702 * eval.c (evaluate_funcall): Update.
703 (evaluate_subexp_standard): Update.
704 (evaluate_subexp_for_sizeof): Update.
705 * expprint.c (print_subexp_standard): Update.
706 (dump_subexp_body_standard): Update.
707 * frame.c (get_prev_frame_always_1): Update.
708 * frv-tdep.c (frv_skip_main_prologue): Update.
709 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
710 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
711 (gnuv3_get_typename_from_type_info): Update.
712 (gnuv3_skip_trampoline): Update.
713 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
714 * i386-tdep.c (i386_skip_main_prologue): Update.
715 (i386_pe_skip_trampoline_code): Update.
716 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
717 * infcall.c (get_function_name): Update.
718 * linespec.c (minsym_found): Update.
719 * linux-fork.c (info_checkpoints_command): Update.
720 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
721 (m32c_m16c_pointer_to_address): Update.
722 * maint.c (maintenance_translate_address): Update.
723 * minsyms.c (add_minsym_to_hash_table): Update.
724 (add_minsym_to_demangled_hash_table): Update.
725 (lookup_minimal_symbol_mangled): Update.
726 (lookup_minimal_symbol_demangled): Update.
727 (lookup_minimal_symbol_linkage): Update.
728 (lookup_minimal_symbol_text): Update.
729 (lookup_minimal_symbol_by_pc_name): Update.
730 (minimal_symbol_is_less_than): Update.
731 (compact_minimal_symbols): Update.
732 (build_minimal_symbol_hash_tables): Update.
733 (find_solib_trampoline_target): Update.
734 * mips-tdep.c (mips_stub_frame_sniffer): Update.
735 (mips_skip_pic_trampoline_code): Update.
736 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
737 * objc-lang.c (info_selectors_command): Update.
738 (info_classes_command): Update.
739 (find_methods): Update.
740 (find_imps): Update.
741 * p-valprint.c (pascal_val_print): Update.
742 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
743 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
744 * printcmd.c (build_address_symbolic): Update.
745 (info_symbol_command): Update.
746 * psymtab.c (psymbol_name_matches): Update.
747 (match_partial_symbol): Update.
748 (lookup_partial_symbol): Update.
749 (print_partial_symbols): Update.
750 (sort_pst_symbols): Update.
751 (maintenance_check_psymtabs): Update.
752 * python/py-framefilter.c (py_print_frame): Update.
753 * python/python.c (gdbpy_rbreak): Update.
754 * record-btrace.c (btrace_get_bfun_name): Update.
755 (btrace_call_history): Update.
756 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
757 (rs6000_skip_trampoline_code): Update.
758 * sol-thread.c (info_cb): Update.
759 * stabsread.c (scan_file_globals): Update.
760 * stack.c (find_frame_funname): Update.
761 (info_frame_command_core): Update.
762 * symmisc.c (dump_msymbols): Update.
763 * symtab.c (symbol_natural_name): Rename to..,
764 (general_symbol_info::natural_name): ...this.
765 (symbol_demangled_name): Rename to...
766 (general_symbol_info::demangled_name): ...this.
767 (symbol_search_name): Rename to...
768 (general_symbol_info::search_name): ...this.
769 (symbol_matches_search_name): Update.
770 (find_pc_sect_line): Update.
771 (skip_prologue_sal): Update.
772 (search_symbols): Update.
773 (print_msymbol_info): Update.
774 (rbreak_command): Update.
775 (completion_list_add_msymbol): Update.
776 (completion_list_objc_symbol): Update.
777 (get_msymbol_address): Update.
778 * symtab.h (struct general_symbol_info): Add member functions
779 natural_name (), linkage_name (), print_name (), demangled_name (),
780 and search_name ().
781 (SYMBOL_NATURAL_NAME): Update.
782 (symbol_natural_name): Move to a member function on general_symbol_info.
783 (SYMBOL_DEMANGLED_NAME): Update.
784 (symbol_demangled_name): Move to a member function on
785 general_symbol_info.
786 (SYMBOL_SEARCH_NAME): Update.
787 (symbol_search_name): Move to a member function on general_symbol_info.
788 (MSYMBOL_NATURAL_NAME): Remove.
789 (MSYMBOL_LINKAGE_NAME): Remove.
790 (MSYMBOL_PRINT_NAME): Remove.
791 (MSYMBOL_DEMANGLED_NAME): Remove.
792 (MSYMBOL_SEARCH_NAME): Remove.
793 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
794
795 2019-11-22 Christian Biesinger <cbiesinger@google.com>
796
797 * symtab.c (create_demangled_names_hash): Use per_bfd->
798 minimal_symbol_count for computing the initial size, if greater
799 than our default size.
800
801 2019-11-22 Tom de Vries <tdevries@suse.de>
802
803 * contrib/words.sh: Improve words extraction.
804
805 2019-11-22 Tom de Vries <tdevries@suse.de>
806
807 * contrib/words.sh: Combine sed invocations.
808
809 2019-11-21 Christian Biesinger <cbiesinger@google.com>
810
811 * Makefile.in: Update.
812 * demangle.c: Rename to...
813 * gdb-demangle.c: ..this.
814 (is_cplus_marker): Change return type to bool.
815 (_initialize_demangler): Rename to...
816 (_initialize_gdb_demangle): ...this.
817 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
818 * symtab.h (demangle): Remove declaration; instead include
819 gdb-demangle.h.
820
821 2019-11-21 Tom Tromey <tromey@adacore.com>
822
823 * gdbsupport/format.c (format_pieces): Parse %I64d.
824 * unittests/format_pieces-selftests.c (test_windows_formats): New
825 function.
826 (run_tests): Call it.
827
828 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
829
830 Byte reverse display of variables with DW_END_big, DW_END_little
831 (DW_AT_endianity) dwarf attributes if different than the native
832 byte order.
833 * ada-lang.c (ada_value_binop):
834 Use type_byte_order instead of gdbarch_byte_order.
835 * ada-valprint.c (printstr):
836 (ada_val_print_string):
837 * ada-lang.c (value_pointer):
838 (ada_value_binop):
839 Use type_byte_order instead of gdbarch_byte_order.
840 * c-lang.c (c_get_string):
841 Use type_byte_order instead of gdbarch_byte_order.
842 * c-valprint.c (c_val_print_array):
843 Use type_byte_order instead of gdbarch_byte_order.
844 * cp-valprint.c (cp_print_class_member):
845 Use type_byte_order instead of gdbarch_byte_order.
846 * dwarf2loc.c (rw_pieced_value):
847 Use type_byte_order instead of gdbarch_byte_order.
848 * dwarf2read.c (read_base_type): Handle DW_END_big,
849 DW_END_little
850 * f-lang.c (f_get_encoding):
851 Use type_byte_order instead of gdbarch_byte_order.
852 * findvar.c (default_read_var_value):
853 Use type_byte_order instead of gdbarch_byte_order.
854 * gdbtypes.c (check_types_equal):
855 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
856 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
857 and TYPE_ENDIANITY_LITTLE if set.
858 (type_byte_order): new function.
859 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
860 (struct main_type) <flag_endianity_not_default>:
861 New field.
862 (type_byte_order): New function.
863 * infcmd.c (default_print_one_register_info):
864 Use type_byte_order instead of gdbarch_byte_order.
865 * p-lang.c (pascal_printstr):
866 Use type_byte_order instead of gdbarch_byte_order.
867 * p-valprint.c (pascal_val_print):
868 Use type_byte_order instead of gdbarch_byte_order.
869 * printcmd.c (print_scalar_formatted):
870 Use type_byte_order instead of gdbarch_byte_order.
871 * solib-darwin.c (darwin_current_sos):
872 Use type_byte_order instead of gdbarch_byte_order.
873 * solib-svr4.c (solib_svr4_r_ldsomap):
874 Use type_byte_order instead of gdbarch_byte_order.
875 * stap-probe.c (stap_modify_semaphore):
876 Use type_byte_order instead of gdbarch_byte_order.
877 * target-float.c (target_float_same_format_p):
878 Use type_byte_order instead of gdbarch_byte_order.
879 * valarith.c (scalar_binop):
880 (value_bit_index):
881 Use type_byte_order instead of gdbarch_byte_order.
882 * valops.c (value_cast):
883 Use type_byte_order instead of gdbarch_byte_order.
884 * valprint.c (generic_emit_char):
885 (generic_printstr):
886 (val_print_string):
887 Use type_byte_order instead of gdbarch_byte_order.
888 * value.c (unpack_long):
889 (unpack_bits_as_long):
890 (unpack_value_bitfield):
891 (modify_field):
892 (pack_long):
893 (pack_unsigned_long):
894 Use type_byte_order instead of gdbarch_byte_order.
895 * findvar.c (unsigned_pointer_to_address):
896 (signed_pointer_to_address):
897 (unsigned_address_to_pointer):
898 (address_to_signed_pointer):
899 (default_read_var_value):
900 (default_value_from_register):
901 Use type_byte_order instead of gdbarch_byte_order.
902 * gnu-v3-abi.c (gnuv3_make_method_ptr):
903 Use type_byte_order instead of gdbarch_byte_order.
904 * riscv-tdep.c (riscv_print_one_register_info):
905 Use type_byte_order instead of gdbarch_byte_order.
906
907 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
910 (current_ui_gdb_stdin_ptr): Likewise.
911 (current_ui_gdb_stderr_ptr): Likewise.
912 (current_ui_gdb_stdlog_ptr): Likewise.
913 (current_ui_current_uiout_ptr): Likewise.
914 (gen_ret_current_ui_field_ptr): Remove.
915
916 2019-11-21 Tom de Vries <tdevries@suse.de>
917
918 PR gdb/24956
919 * cli/cli-script.c (execute_control_command): Only switch to
920 INTERP_CONSOLE's ui_out when INTERP_MI is active.
921
922 2019-11-19 Tom Tromey <tom@tromey.com>
923
924 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
925 Now static. Change type of "name".
926 (tui_set_win_height_command): Don't copy "arg".
927 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
928 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
929
930 2019-11-19 Ali Tamur <tamur@google.com>
931
932 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
933 "if (attr != nullptr)".
934 (dwarf2_find_base_address): Likewise.
935 (dwarf2_build_include_psymtabs): Likewise.
936 (read_cutu_die_from_dwo): Likewise.
937 (read_func_scope): Likewise.
938 (read_call_site_scope): Likewise.
939 (dwarf2_get_pc_bounds): Likewise.
940 (dwarf2_record_block_ranges): Likewise.
941 (dwarf2_add_field): Likewise.
942 (dwarf2_add_member_fn): Likewise.
943 (read_structure_type): Likewise.
944 (read_enumeration_type): Likewise.
945 (read_array_type): Likewise.
946 (read_array_order): Likewise.
947 (read_set_type): Likewise.
948 (read_common_block): Likewise.
949 (read_tag_reference_type): Likewise.
950 (read_tag_string_type): Likewise.
951 (read_subroutine_type): Likewise.
952 (read_base_type): Likewise.
953 (read_subrange_type): Likewise.
954 (new_symbol): Likewise.
955 (prepare_one_comp_unit): Likewise.
956
957 2019-11-19 Tom Tromey <tromey@adacore.com>
958
959 * windows-nat.c (windows_nat_target::attach): Include GetLastError
960 result in error when DebugActiveProcess fails.
961
962 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
963 Pedro Alves <palves@redhat.com>
964
965 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
966 * target.c (target_stack::push): Call 'unpush' if there's a
967 target on top of the stack.
968
969 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
970
971 * python/py-block.c (blpy_dealloc): Call tp_free.
972 (blpy_block_syms_dealloc): Likewise.
973 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
974 * python/py-inferior.c (infpy_dealloc): Likewise.
975 * python/py-lazy-string.c (stpy_dealloc): Likewise.
976 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
977 * python/py-symbol.c (sympy_dealloc): Likewise.
978 * python/py-symtab.c (stpy_dealloc): Likewise.
979 * python/py-type.c (typy_iterator_dealloc): Likewise.
980
981 2019-11-18 Christian Biesinger <cbiesinger@google.com>
982
983 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
984 constructor instead of using a class initializer.
985
986 2019-11-15 Christian Biesinger <cbiesinger@google.com>
987
988 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
989 * configure: Regenerate.
990 * configure.ac: Don't source common.host.
991 * gdbsupport/common.host: Remove.
992 * gdbsupport/mingw-strerror.c: Remove.
993 * gdbsupport/posix-strerror.c: Rename to...
994 * gdbsupport/safe-strerror.c: ...this.
995
996 2019-11-15 Christian Biesinger <cbiesinger@google.com>
997
998 * maint.c (scoped_command_stats::print_time): Use localtime_r
999 instead of localtime (provided through gnulib if necessary).
1000 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1001 of ctime.
1002
1003 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1004
1005 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1006 avoid compile errors.
1007
1008 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1009
1010 * config.in: Regenerate.
1011 * configure: Regenerate.
1012 * gdbsupport/common.m4: No longer check for strerror_r.
1013 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1014 POSIX version of strerror_r, now that gnulib provides it if
1015 necessary.
1016
1017 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1018
1019 * README (`configure' options): Update.
1020
1021 2019-11-14 Tom Tromey <tromey@adacore.com>
1022
1023 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1024 expected type for the RHS if the LHS is a convenience variable.
1025
1026 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1029 Provide explicit default and copy constructor.
1030
1031 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1032
1033 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1034 only call Py_INCREF (newbp) in the bppy_pending_object case.
1035
1036 2019-11-13 Tom Tromey <tromey@adacore.com>
1037
1038 PR build/25182:
1039 * psympriv.h (partial_symbol): Remove static assert.
1040 * symtab.h (general_symbol_info, symbol): Remove static assert.
1041
1042 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * gdbsupport/format.c (format_pieces::format_pieces): Support
1045 printf 'z' size modifier.
1046 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1047 * printcmd.c (ui_printf): Handle size_t_arg.
1048 * ui-out.c (ui_out::vmessage): Likewise.
1049 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1050 function.
1051 (run_tests): Call test_format_int_sizes.
1052
1053 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1054
1055 * ada-exp.y (write_ambiguous_var): Update.
1056 * buildsym.c (add_symbol_to_list): Update.
1057 * dwarf2read.c (read_variable): Update.
1058 (new_symbol): Update.
1059 * jit.c (finalize_symtab): Update.
1060 * language.c (language_alloc_type_symbol): Update.
1061 * symtab.c (fixup_symbol_section): Update.
1062 (initialize_objfile_symbol_1): Move code to...
1063 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1064 (allocate_symbol): Update.
1065 (allocate_template_symbol): Update.
1066 (get_symbol_address): Update.
1067 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1068 of having as a field, and add a constructor.
1069 (SYMBOL_VALUE): Update.
1070 (SYMBOL_VALUE_ADDRESS): Update.
1071 (SET_SYMBOL_VALUE_ADDRESS): Update.
1072 (SYMBOL_VALUE_BYTES): Update.
1073 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1074 (SYMBOL_BLOCK_VALUE): Update.
1075 (SYMBOL_VALUE_CHAIN): Update.
1076 (SYMBOL_LANGUAGE): Update.
1077 (SYMBOL_SECTION): Update.
1078 (SYMBOL_OBJ_SECTION): Update.
1079 (SYMBOL_SET_LANGUAGE): Update.
1080 (SYMBOL_SET_LINKAGE_NAME): Update.
1081 (SYMBOL_SET_NAMES): Update.
1082 (SYMBOL_NATURAL_NAME): Update.
1083 (SYMBOL_LINKAGE_NAME): Update.
1084 (SYMBOL_DEMANGLED_NAME): Update.
1085 (SYMBOL_SEARCH_NAME): Update.
1086 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1087 (struct symbol): Update.
1088 (struct template_symbol): Update.
1089 (struct rust_vtable_symbol): Update.
1090 * xcoffread.c (SYMBOL_DUP): Update.
1091
1092 2019-11-12 Tom Tromey <tom@tromey.com>
1093
1094 * tui/tui-layout.c (show_layout): Set current_layout.
1095 (show_source_disasm_command, show_data)
1096 (show_source_or_disasm_and_command): Don't set current_layout.
1097
1098 2019-11-12 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1101
1102 2019-11-12 Tom Tromey <tom@tromey.com>
1103
1104 * tui/tui-win.c (resize_message): New global.
1105 (show_tui_resize_message): New function.
1106 (tui_async_resize_screen): Print message if requested.
1107 (_initialize_tui_win): Add tui-resize-message setting.
1108 * NEWS: Add entry for new commands.
1109
1110 2019-11-11 Tom Tromey <tom@tromey.com>
1111
1112 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1113 functions.
1114
1115 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1116
1117 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1118
1119 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1122 function.
1123 * python/python-internal.h (gdbpy_lookup_static_symbols):
1124 Declare new function.
1125 * python/python.c (python_GdbMethods): Add
1126 gdb.lookup_static_symbols method.
1127 * NEWS: Mention gdb.lookup_static_symbols.
1128
1129 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1132 static block of current object file first. Also fix typo in
1133 header comment.
1134
1135 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * stack.c (set_last_displayed_sal): Delete.
1138 (last_displayed_sal_valid): Delete.
1139 (last_displayed_pspace): Delete.
1140 (last_displayed_addr): Delete.
1141 (last_displayed_symtab): Delete.
1142 (last_displayed_line): Delete.
1143 (class last_displayed_symtab_info_type): New.
1144 (last_displayed_symtab_info): New static global variable.
1145 (print_frame_info): Call methods on last_displayed_symtab_info.
1146 (clear_last_displayed_sal): Update header comment, and make use of
1147 last_displayed_symtab_info.
1148 (last_displayed_sal_is_valid): Likewise.
1149 (get_last_displayed_pspace): Likewise.
1150 (get_last_displayed_addr): Likewise.
1151 (get_last_displayed_symtab): Likewise.
1152 (get_last_displayed_line): Likewise.
1153 (get_last_displayed_sal): Likewise.
1154 * stack.h (clear_last_displayed_sal): Update header comment.
1155 (last_displayed_sal_is_valid): Likewise.
1156 (get_last_displayed_pspace): Likewise.
1157 (get_last_displayed_addr): Likewise.
1158 (get_last_displayed_symtab): Likewise.
1159 (get_last_displayed_line): Likewise.
1160 (get_last_displayed_sal): Likewise.
1161
1162 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * stack.c (frame_show_address): Convert return type to bool.
1165 * stack.h (frame_show_address): Likewise, and update header
1166 comment.
1167
1168 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1171 * unittests/vec-utils-selftests.c: New file.
1172 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1173
1174 2019-11-10 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1177 (tui_highlight_win): Likewise.
1178 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1179 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1180 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1181 Don't set can_highlight.
1182
1183 2019-11-10 Tom Tromey <tom@tromey.com>
1184
1185 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1186 Remove unused declaration.
1187
1188 2019-11-08 Tom Tromey <tromey@adacore.com>
1189
1190 * top.c (read_command_file): Update.
1191 (command_line_input): Make return type const.
1192 * python/py-gdb-readline.c: Update.
1193 * linespec.c (decode_line_2): Update.
1194 * defs.h (command_line_input): Make return type const.
1195 * cli/cli-script.c (read_next_line): Make return type const.
1196 * ada-lang.c (get_selections): Update.
1197
1198 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1199
1200 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1201 * mi/mi-main.c (output_cores): Likewise.
1202 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1203 (linux_xfer_osdata_modules): Likewise.
1204 * remote.c (register_remote_support_xml): Likewise.
1205 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1206 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1207
1208 2019-11-06 Tom Tromey <tom@tromey.com>
1209
1210 * tui/tui-interp.c: Don't include readline.h.
1211 * tui/tui-hooks.c: Don't include readline.h.
1212 * symmisc.c: Include tilde.h, not readline.h.
1213 * symfile.c: Include tilde.h, not readline.h.
1214 * source.c: Include tilde.h, not readline.h.
1215 * solib.c: Include tilde.h, not readline.h.
1216 * psymtab.c: Include tilde.h, not readline.h.
1217 * exec.c: Include tilde.h, not readline.h.
1218 * corelow.c: Include tilde.h, not readline.h.
1219 * cli/cli-dump.c: Include tilde.h, not readline.h.
1220 * cli/cli-cmds.c: Don't include readline.h.
1221
1222 2019-11-05 Tom Tromey <tom@tromey.com>
1223
1224 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1225 (tui_disassemble): Set addr_size.
1226 (tui_disasm_window::set_contents): Use addr_size.
1227
1228 2019-11-05 Tom Tromey <tom@tromey.com>
1229
1230 * rust-lang.c (rust_language_defn): Update.
1231 * python/py-value.c (valpy_string): Call c_get_string.
1232 * p-lang.c (pascal_language_defn): Update.
1233 * opencl-lang.c (opencl_language_defn): Update.
1234 * objc-lang.c (objc_language_defn): Update.
1235 * m2-lang.c (m2_language_defn): Update.
1236 * language.c (unknown_language_defn, auto_language_defn): Update.
1237 (default_get_string): Remove.
1238 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1239 * go-lang.c (go_language_defn): Update.
1240 * f-lang.c (f_language_defn): Update.
1241 * d-lang.c (d_language_defn): Update.
1242 * c-lang.c (c_language_defn, cplus_language_defn)
1243 (asm_language_defn, minimal_language_defn): Update.
1244 * ada-lang.c (ada_language_defn): Update.
1245 * language.h (struct language_defn) <la_get_string>: Remove.
1246 (LA_GET_STRING): Remove.
1247 (default_get_string): Don't declare.
1248
1249 2019-11-05 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-source.h (struct tui_source_window): Inline
1252 constructor. Remove destructor.
1253 <style_changed, m_observable>: Move to superclass.
1254 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1255 (struct tui_source_window_base): Move private members to end.
1256 <style_changed, m_observable>: Move from tui_source_window.
1257 * tui/tui-winsource.c (tui_copy_source_line): Move from
1258 tui-source.c. Rename from copy_source_line. Add special handling
1259 for negative line number.
1260 (tui_source_window_base::style_changed): Move from
1261 tui_source_window.
1262 (tui_source_window_base): Register observer.
1263 (~tui_source_window_base): New.
1264 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1265 rename.
1266 (tui_source_window::set_contents): Use tui_copy_source_line.
1267 (tui_source_window::tui_source_window): Move to tui-source.h.
1268 (tui_source_window::~tui_source_window): Remove.
1269 (tui_source_window::style_changed): Move to superclass.
1270 * tui/tui-disasm.c (tui_disassemble): Create string file with
1271 styling, when possible. Add "addr_size" parameter.
1272 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1273 Don't compute maximum size.
1274 (len_without_escapes): New function
1275
1276 2019-11-05 Tom Tromey <tom@tromey.com>
1277
1278 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1279 std::string.
1280 * tui/tui-winsource.c (tui_show_source_line): Update.
1281 * tui/tui-source.c (tui_source_window::set_contents): Update.
1282 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1283
1284 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1285
1286 * symtab.h (gdb_static_assert): Put && operator at the beginning
1287 of the line instead of the end.
1288
1289 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1290
1291 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1292 and sizeof (symbol).
1293 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1294
1295 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1296
1297 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1298 * configure.host: Mark *-*-solaris2.10* obsolete.
1299 * configure.tgt: Mark Solaris < 11 obsolete.
1300 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1301 Update target triplet.
1302
1303 2019-11-01 Tom Tromey <tromey@adacore.com>
1304
1305 * utils.c (print_sys_errmsg): Simplify.
1306
1307 2019-11-01 Tom Tromey <tromey@adacore.com>
1308
1309 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1310
1311 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1312
1313 * configure: Regenerate.
1314 * configure.ac: Remove check for strerror_r.
1315 * gdbsupport/common.m4: Check for strerror_r.
1316
1317 2019-11-01 Luis Machado <luis.machado@linaro.org>
1318
1319 PR gdb/25124
1320
1321 * arm-tdep.c (arm_per_objfile): Rename to ...
1322 (arm_per_bfd): ... this.
1323 (arm_objfile_data_key): Rename to ...
1324 (arm_bfd_data_key): ... this.
1325 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1326 data.
1327 (arm_record_special_symbol): Likewise.
1328
1329 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1332 end.
1333 * c-typeprint.c (c_print_typedef): Likewise.
1334 * f-typeprint.c (f_print_typedef): Likewise.
1335 * m2-typeprint.c (m2_print_typedef): Likewise.
1336 * p-typeprint.c (pascal_print_typedef): Likewise.
1337 * rust-lang.c (rust_print_typedef): Likewise.
1338 * symtab.c (print_symbol_info): Print a newline after calling
1339 typedef_print.
1340
1341 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * symtab.c (info_module_cmdlist): New variable.
1344 (info_module_command): New function.
1345 (search_module_symbols): New function.
1346 (info_module_subcommand): New function.
1347 (struct info_modules_var_func_options): New struct.
1348 (info_modules_var_func_options_defs): New variable.
1349 (make_info_modules_var_func_options_def_group): New function.
1350 (info_module_functions_command): New function.
1351 (info_module_variables_command): New function.
1352 (info_module_var_func_command_completer): New function.
1353 (_initialize_symtab): Register new 'info module functions' and
1354 'info module variables' commands.
1355 * symtab.h (typedef symbol_search_in_module): New typedef.
1356 (search_module_symbols): Declare new function.
1357 * NEWS: Mention new commands.
1358
1359 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1362 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1363 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1364 MODULES_DOMAIN.
1365 (scan_partial_symbols): Only create partial module symbols for non
1366 declarations.
1367 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1368 and MODULES_DOMAIN.
1369 * symtab.c (search_domain_name): Likewise.
1370 (search_symbols): Likewise.
1371 (print_symbol_info): Likewise.
1372 (symtab_symbol_info): Likewise.
1373 (info_modules_command): New function.
1374 (_initialize_symtab): Register 'info modules' command.
1375 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1376 * NEWS: Mention new 'info modules' command.
1377
1378 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1379
1380 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1381 and $_gdb_maint_setting_str.
1382
1383 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1384
1385 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1386 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1387 (str_value_from_setting, gdb_setting_str_internal_fn)
1388 (gdb_maint_setting_str_internal_fn): New functions.
1389 (_initialize_cli_cmds): Define the new convenience functions.
1390 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1391 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1392
1393 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1394
1395 * agent.c (set_can_use_agent): When the setting is turned on,
1396 look up agent symbols if we don't have them yet.
1397 (agent_new_objfile): Don't look up agent symbols when the agent
1398 setting is off.
1399
1400 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1401
1402 * config.in: Regenerate.
1403
1404 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1405
1406 * configure: Regenerate.
1407 * configure.ac: Check for strerror_r.
1408 * gdbsupport/common-utils.h (safe_strerror): Change return value
1409 to const char * and document that this function is now threadsafe.
1410 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1411 thread_local and call strerror_r, if available.
1412 * utils.c (perror_string): Update.
1413 (print_sys_errmsg): Update.
1414
1415 2019-10-31 Luis Machado <luis.machado@linaro.org>
1416
1417 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1418 objfile_key.
1419 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1420 objfile to fetch per-bfd data.
1421 (arm_find_exidx_entry): Likewise.
1422
1423 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1424
1425 * gdbsupport/agent.c (debug_agent): Change type to bool.
1426 (use_agent): Likewise.
1427 (all_agent_symbols_look_up): Likewise.
1428 (agent_loaded_p): Change return value to bool.
1429 (agent_look_up_symbols): Update.
1430 (agent_capability_check): Change return value to bool.
1431 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1432 (debug_agent): Change type to bool.
1433 (use_agent): Likewise.
1434 (agent_capability_check): Change return value to bool.
1435
1436 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1437
1438 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1439 (build_minimal_symbol_hash_tables): Code to clear the table moved
1440 to clear_minimal_symbol_hash_tables.
1441 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1442 when needed.
1443
1444 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * infcmd.c: Remove includes.
1447 * infrun.c: Remove includes.
1448
1449 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1452 (grow_vect): Remove declaration.
1453 (ada_type_of_array): Remove declaration.
1454 (ada_update_initial_language): Remove declaration.
1455 (ada_fold_name): Remove declaration.
1456 (ada_fill_in_ada_prototype): Remove declaration.
1457 (user_select_syms): Remove declaration.
1458 (get_selections): Remove declaration.
1459 (ada_tag_type): Remove declaration.
1460 (ada_value_tag): Remove declaration.
1461 (ada_is_others_clause): Remove declaration.
1462 (ada_in_variant): Remove declaration.
1463 (ada_value_struct_elt): Remove declaration.
1464 (ada_attribute_name): Remove declaration.
1465 (ada_system_address_type): Remove declaration.
1466 * ada-lang.c (ada_watch_location_expression): Make static.
1467 (GROW_VECT): Move here from ada-lang.h.
1468 (grow_vect): Make static.
1469 (ada_update_initial_language): Make static.
1470 (ada_fold_name): Make static.
1471 (ada_type_of_array): Make static.
1472 (encoded_ordered_before): Move up.
1473 (sort_choices): Move up.
1474 (print_signatures): Move up.
1475 (ada_print_symbol_signature): Move up.
1476 (get_selections): Move up and make static.
1477 (user_select_syms): Move up and make static.
1478 (ada_value_struct_elt): Move up and make static.
1479 (ada_tag_type): Make static.
1480 (ada_value_tag): Make static.
1481 (ada_is_others_clause): Make static.
1482 (ada_in_variant): Make static.
1483 (ada_attribute_name): Make static.
1484
1485 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1486
1487 * ada-lang.c: Remove includes.
1488 * ada-typeprint.c: Remove includes.
1489 * ada-valprint.c: Remove includes.
1490
1491 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * addrmap.c: Add static assertions of type size, moved from
1494 _initialize_addrmap.
1495 (_initialize_addrmap): Remove.
1496
1497 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1498
1499 * coffread.c (record_minimal_symbol): Update.
1500 (process_coff_symbol): Update.
1501 * dbxread.c (read_dbx_symtab): Update.
1502 * dwarf2read.c (add_partial_symbol): Update.
1503 (fixup_go_packaging): Update.
1504 (load_partial_dies): Update.
1505 (new_symbol): Update.
1506 * elfread.c (record_minimal_symbol): Change signature to use
1507 gdb::string_view instead of name+len.
1508 (elf_symtab_read): Update.
1509 (elf_rel_plt_read): Update.
1510 * mdebugread.c (parse_partial_symbols): Update.
1511 (handle_psymbol_enumerators): Update.
1512 (new_symbol): Update.
1513 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1514 to use gdb::string_view instead of name+len.
1515 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1516 * psympriv.h (add_psymbol_to_list): Likewise.
1517 * psymtab.c (add_psymbol_to_bcache): Likewise.
1518 (add_psymbol_to_list): Likewise.
1519 * stabsread.c (define_symbol): Update.
1520 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1521 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1522 (symbol_set_names): Likewise.
1523 * xcoffread.c (scan_xcoff_symtab): Update.
1524
1525 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1526
1527 * symtab.h (symbol_set_names): Document that copy_name must be
1528 set to true for non-nullterminated strings.
1529 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1530 linkage_name if the entry was not found and we need to demangle.
1531
1532 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1533
1534 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1535 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1536 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1537 * gdbsupport/gdb_binary_search.h: New file.
1538
1539 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1540
1541 * NEWS: Mention new --with-system-gdbinit-dir option.
1542 * config.in: Regenerate.
1543 * configure: Regenerate.
1544 * configure.ac: Add new option --with-system-gdbinit-dir.
1545 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1546 for a ".gdb" suffix.
1547 * main.c (get_init_files): Change system_gdbinit argument to
1548 a vector and return the files in SYSTEM_GDBINIT_DIR in
1549 addition to SYSTEM_GDBINIT.
1550 (captured_main_1): Update.
1551 (print_gdb_help): Update.
1552 * top.c (print_gdb_configuration): Also print the value of
1553 SYSTEM_GDBINIT_DIR.
1554
1555 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1556
1557 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1558 that takes gdb::string_view arguments.
1559
1560 2019-10-26 Tom de Vries <tdevries@suse.de>
1561
1562 * aarch64-linux-tdep.c: Fix typos in comments.
1563 * aarch64-tdep.c: Same.
1564 * ada-lang.c: Same.
1565 * amd64-nat.c: Same.
1566 * arc-tdep.c: Same.
1567 * arch/aarch64-insn.c: Same.
1568 * block.c: Same.
1569 * breakpoint.h: Same.
1570 * btrace.h: Same.
1571 * c-varobj.c: Same.
1572 * cli/cli-decode.c: Same.
1573 * cli/cli-script.c: Same.
1574 * cli/cli-utils.h: Same.
1575 * coff-pe-read.c: Same.
1576 * coffread.c: Same.
1577 * compile/compile-cplus-symbols.c: Same.
1578 * compile/compile-object-run.c: Same.
1579 * completer.c: Same.
1580 * corelow.c: Same.
1581 * cp-support.c: Same.
1582 * demangle.c: Same.
1583 * dwarf-index-write.c: Same.
1584 * dwarf2-frame.c: Same.
1585 * dwarf2-frame.h: Same.
1586 * eval.c: Same.
1587 * frame-base.h: Same.
1588 * frame.h: Same.
1589 * gdbcmd.h: Same.
1590 * gdbtypes.h: Same.
1591 * gnu-nat.c: Same.
1592 * guile/scm-objfile.c: Same.
1593 * i386-tdep.c: Same.
1594 * i386-tdep.h: Same.
1595 * infcall.c: Same.
1596 * infcall.h: Same.
1597 * linux-nat.c: Same.
1598 * m68k-tdep.c: Same.
1599 * macroexp.c: Same.
1600 * memattr.c: Same.
1601 * mi/mi-cmd-disas.c: Same.
1602 * mi/mi-getopt.h: Same.
1603 * mi/mi-main.c: Same.
1604 * minsyms.c: Same.
1605 * nat/aarch64-sve-linux-sigcontext.h: Same.
1606 * objfiles.h: Same.
1607 * ppc-linux-nat.c: Same.
1608 * ppc-linux-tdep.c: Same.
1609 * ppc-tdep.h: Same.
1610 * progspace.h: Same.
1611 * prologue-value.h: Same.
1612 * python/py-evtregistry.c: Same.
1613 * python/py-instruction.h: Same.
1614 * record-btrace.c: Same.
1615 * record-full.c: Same.
1616 * remote.c: Same.
1617 * rs6000-tdep.c: Same.
1618 * ser-tcp.c: Same.
1619 * sol-thread.c: Same.
1620 * sparc-sol2-tdep.c: Same.
1621 * sparc64-tdep.c: Same.
1622 * stabsread.c: Same.
1623 * symfile.c: Same.
1624 * symtab.h: Same.
1625 * target.c: Same.
1626 * tracepoint.c: Same.
1627 * tui/tui-data.h: Same.
1628 * tui/tui-io.c: Same.
1629 * tui/tui-win.c: Same.
1630 * tui/tui.c: Same.
1631 * unittests/rsp-low-selftests.c: Same.
1632 * user-regs.h: Same.
1633 * utils.c: Same.
1634 * utils.h: Same.
1635 * valarith.c: Same.
1636 * valops.c: Same.
1637 * valprint.c: Same.
1638 * valprint.h: Same.
1639 * value.c: Same.
1640 * value.h: Same.
1641 * varobj.c: Same.
1642 * x86-nat.h: Same.
1643 * xtensa-tdep.c: Same.
1644
1645 2019-10-25 Ali Tamur <tamur@google.com>
1646
1647 * charset.c (find_charset_names): Reflect API change.
1648
1649 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1650
1651 * symtab.c (struct demangled_name_entry): Change demangled name
1652 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1653 part of the struct anymore.
1654 (symbol_set_names): No longer obstack allocate + copy the demangled
1655 name, just store the allocated name from bfd.
1656
1657 2019-10-25 Tom Tromey <tromey@adacore.com>
1658
1659 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1660 (bsearch_cie_cmp, add_cie): Remove.
1661 (find_cie): Reimplement.
1662 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1663 (dwarf2_build_frame_info): Update.
1664
1665 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 PR gdb/25126
1668 * symfile.c (reread_symbols): Call forget_cached_source_info to
1669 clear the stale source cache.
1670
1671 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1672
1673 * configure: Regenerate.
1674 * configure.ac: Remove code that sets python_has_threads.
1675
1676 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1677
1678 * config.in: Regenerate.
1679 * configure: Regenerate.
1680 * configure.ac: Remove the code that uses sed to get the python
1681 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1682
1683 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1686 error paths.
1687
1688 2019-10-23 Tom Tromey <tom@tromey.com>
1689
1690 * arc-tdep.c: Remove ".." from include.
1691 * frv-tdep.c: Remove ".." from include.
1692 * lm32-tdep.c: Remove ".." from include.
1693 * microblaze-tdep.c: Remove ".." from include.
1694 * or1k-tdep.h: Remove ".." from include.
1695 * s12z-tdep.c: Remove ".." from include.
1696 * Makefile.in (OPCODES_CFLAGS): Add comment.
1697 (TOP_CFLAGS): New variable.
1698 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1699
1700 2019-10-23 Tom Tromey <tom@tromey.com>
1701
1702 * Makefile.in (READLINE_DIR): Update.
1703
1704 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1705
1706 * infcall.c (call_function_by_hand_dummy): Fix the function
1707 comment. And extract out a code section into...
1708 (reserve_stack_space): ...this new function.
1709
1710 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1711
1712 * infcall.c (value_arg_coerce): Remove an unused parameter.
1713 (call_function_by_hand_dummy): Update the call to
1714 'value_arg_coerce'.
1715
1716 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1717
1718 * infcall.c (call_function_by_hand_dummy): Refactor.
1719
1720 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1721
1722 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1723
1724 2019-10-23 Tom Tromey <tom@tromey.com>
1725
1726 * configure: Rebuild.
1727 * configure.ac: Don't check for sigprocmask.
1728 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1729
1730 2019-10-23 Tom Tromey <tom@tromey.com>
1731
1732 * configure: Rebuild.
1733 * acinclude.m4: Use m4_include, not sinclude.
1734
1735 2019-10-23 Tom de Vries <tdevries@suse.de>
1736
1737 PR breakpoints/24687
1738 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1739
1740 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1741
1742 * symtab.c (struct demangled_name_entry) <language>: Change from
1743 bitfield to regular variable.
1744
1745 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1746
1747 * symtab.c (struct demangled_name_entry): Add a constructor.
1748 (free_demangled_name_entry): New function to call the destructor
1749 for demangled_name_entry.
1750 (create_demangled_names_hash): Pass free_demangled_name_entry to
1751 htab_create_alloc.
1752 (symbol_set_names): Call placement new for demangled_name_entry.
1753 * utils.c: No longer include xxhash.h here, now that fast_hash
1754 is inlined in the header.
1755 * utils.h: Instead, include it here.
1756
1757 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1758
1759 * Makefile.in: Link with libxxhash.
1760 * config.in: Regenerate.
1761 * configure: Regenerate.
1762 * configure.ac: Search for libxxhash.
1763 * utils.c (fast_hash): Use xxhash if present.
1764
1765 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1766
1767 * utils.h (fast_hash): New function.
1768 * symtab.c (hash_demangled_name_entry): Call new function
1769 fast_hash.
1770
1771 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1772
1773 * symtab.c (struct demangled_name_entry): Change type of mangled
1774 to gdb::string_view. Also adds a constructor that takes the
1775 mangled name.
1776 (hash_demangled_name_entry): Update.
1777 (eq_demangled_name_entry): Update.
1778 (free_demangled_name_entry): New function to call the destructor
1779 now that this is not a POD anymore.
1780 (create_demangled_names_hash): Pass free_demangled_name_entry to
1781 htab_create_alloc.
1782 (symbol_set_names): Update.
1783
1784 2019-10-21 Ali Tamur <tamu@google.com>
1785
1786 * dwarf2read.c (dir_index): Change type.
1787 (file_name_index): Likewise.
1788 (line_header::include_dir_at): Change comment and implementation on
1789 whether it is DWARF 5.
1790 (line_header::is_valid_file_index): New function.
1791 (line_header::file_name_at): Change comment and implementation on
1792 whether it is DWARF 5.
1793 (line_header::file_names): Change to private field renamed as
1794 m_file_names and introduce a new accessor method.
1795 (line_header::file_names_size): New method.
1796 (line_header::include_dirs): Change to private field and rename as
1797 m_include_dirs.
1798 (dw2_get_file_names_reader): Define local var at a smaller scope and
1799 reflect API change.
1800 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1801 (process_structure_scope): Likewise.
1802 (line_header::add_include_dir): Change message and reflect renaming.
1803 (line_header::add_file_name): Likewise.
1804 (read_formatted_entries): Handle DW_FORM_data16.
1805 (dwarf_decode_line_header): Fix line header length calculation.
1806 (psymtab_include_file_name): Change comment and API.
1807 (lnp_state_machine::m_file): Update comment and reflect type change.
1808 (lnp_state_machine::record_line): Reflect type change.
1809 (dwarf_decode_lines): Reflect API change.
1810 (file_file_name): Likewise.
1811 (file_full_name): Likewise.
1812
1813 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1816
1817 2019-10-21 Tom Tromey <tom@tromey.com>
1818
1819 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1820
1821 2019-10-21 Tom Tromey <tom@tromey.com>
1822
1823 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1824 NM_H. Use AC_CONFIG_LINKS.
1825 * configure: Rebuild.
1826 * Makefile.in (NM_H): New variable.
1827 (generated_files): Add NM_H. Remove gcore.
1828 (nm.h, stamp-nmh): New targets.
1829
1830 2019-10-20 Tom Tromey <tom@tromey.com>
1831
1832 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1833 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1834 obsolete comment.
1835 (put_objfile_before): Now static.
1836
1837 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * gdbsupport/common-utils.h (startswith): Change return type to
1840 bool.
1841
1842 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1843
1844 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1845 * breakpoint.c (bp_locations_compare): Rename to...
1846 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1847 (update_global_location_list): Use std::sort instead of qsort.
1848 * buildsym.c (compare_line_numbers): Rename to...
1849 (lte_is_less_than): ...this, and change to std::sort semantics.
1850 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1851 instead of qsort.
1852 * disasm.c (compare_lines): Rename to...
1853 (line_is_less_than): ...this, and change to std::sort semantics.
1854 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1855 of qsort.
1856 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1857 (fde_is_less_than): ...this, and change to std::sort semantics.
1858 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1859 * mdebugread.c (compare_blocks):
1860 (block_is_less_than): ...this, and change to std::sort semantics.
1861 (sort_blocks): Call std::sort instead of qsort.
1862 * objfiles.c (qsort_cmp): Rename to...
1863 (sort_cmp): ...this, and change to std::sort semantics.
1864 (update_section_map): Call std::sort instead of qsort.
1865 * remote.c (compare_pnums): Remove.
1866 (map_regcache_remote_table): Call std::sort instead of qsort.
1867 * utils.c (compare_positive_ints): Remove.
1868 * utils.h (compare_positive_ints): Remove.
1869 * xcoffread.c (compare_lte): Remove.
1870 (arrange_linetable): Call std::sort instead of qsort.
1871
1872 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1873
1874 * symfile.c (init_entry_point_info): Fix typo.
1875 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1876
1877 2019-10-18 Tom de Vries <tdevries@suse.de>
1878
1879 * aarch64-tdep.c: Fix typos in comments.
1880 * ada-lang.c: Same.
1881 * ada-tasks.c: Same.
1882 * alpha-tdep.c: Same.
1883 * alpha-tdep.h: Same.
1884 * amd64-nat.c: Same.
1885 * amd64-windows-tdep.c: Same.
1886 * arc-tdep.c: Same.
1887 * arc-tdep.h: Same.
1888 * arch-utils.c: Same.
1889 * arm-nbsd-tdep.c: Same.
1890 * arm-tdep.c: Same.
1891 * ax-gdb.c: Same.
1892 * blockframe.c: Same.
1893 * btrace.c: Same.
1894 * c-varobj.c: Same.
1895 * coff-pe-read.c: Same.
1896 * coffread.c: Same.
1897 * cris-tdep.c: Same.
1898 * darwin-nat.c: Same.
1899 * dbxread.c: Same.
1900 * dcache.c: Same.
1901 * disasm.c: Same.
1902 * dtrace-probe.c: Same.
1903 * dwarf-index-write.c: Same.
1904 * dwarf2-frame-tailcall.c: Same.
1905 * dwarf2-frame.c: Same.
1906 * dwarf2read.c: Same.
1907 * eval.c: Same.
1908 * exceptions.c: Same.
1909 * fbsd-tdep.c: Same.
1910 * findvar.c: Same.
1911 * frame.c: Same.
1912 * frv-tdep.c: Same.
1913 * gnu-v3-abi.c: Same.
1914 * go32-nat.c: Same.
1915 * h8300-tdep.c: Same.
1916 * hppa-tdep.c: Same.
1917 * i386-linux-tdep.c: Same.
1918 * i386-tdep.c: Same.
1919 * ia64-libunwind-tdep.c: Same.
1920 * ia64-tdep.c: Same.
1921 * infcmd.c: Same.
1922 * infrun.c: Same.
1923 * linespec.c: Same.
1924 * linux-nat.c: Same.
1925 * linux-thread-db.c: Same.
1926 * machoread.c: Same.
1927 * mdebugread.c: Same.
1928 * mep-tdep.c: Same.
1929 * mn10300-tdep.c: Same.
1930 * namespace.c: Same.
1931 * objfiles.c: Same.
1932 * opencl-lang.c: Same.
1933 * or1k-tdep.c: Same.
1934 * osabi.c: Same.
1935 * ppc-linux-nat.c: Same.
1936 * ppc-linux-tdep.c: Same.
1937 * ppc-sysv-tdep.c: Same.
1938 * printcmd.c: Same.
1939 * procfs.c: Same.
1940 * record-btrace.c: Same.
1941 * record-full.c: Same.
1942 * remote-fileio.c: Same.
1943 * remote.c: Same.
1944 * rs6000-tdep.c: Same.
1945 * s12z-tdep.c: Same.
1946 * score-tdep.c: Same.
1947 * ser-base.c: Same.
1948 * ser-go32.c: Same.
1949 * skip.c: Same.
1950 * sol-thread.c: Same.
1951 * solib-svr4.c: Same.
1952 * solib.c: Same.
1953 * source.c: Same.
1954 * sparc-nat.c: Same.
1955 * sparc-sol2-tdep.c: Same.
1956 * sparc-tdep.c: Same.
1957 * sparc64-tdep.c: Same.
1958 * stabsread.c: Same.
1959 * stack.c: Same.
1960 * symfile.c: Same.
1961 * symtab.c: Same.
1962 * target-descriptions.c: Same.
1963 * target-float.c: Same.
1964 * thread.c: Same.
1965 * utils.c: Same.
1966 * valops.c: Same.
1967 * valprint.c: Same.
1968 * value.c: Same.
1969 * varobj.c: Same.
1970 * windows-nat.c: Same.
1971 * xcoffread.c: Same.
1972 * xstormy16-tdep.c: Same.
1973 * xtensa-tdep.c: Same.
1974
1975 2019-10-17 Tom Tromey <tromey@adacore.com>
1976
1977 * configure: Rebuild.
1978 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1979 in AC_CONFIG_FILES invocation.
1980 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1981 new-style config.status invocation.
1982
1983 2019-10-17 Tom de Vries <tdevries@suse.de>
1984
1985 * arm-nbsd-nat.c: Fix typos in comments.
1986 * arm-tdep.c: Same.
1987 * darwin-nat-info.c: Same.
1988 * dwarf2read.c: Same.
1989 * elfread.c: Same.
1990 * event-top.c: Same.
1991 * findvar.c: Same.
1992 * gdbtypes.c: Same.
1993 * hppa-tdep.c: Same.
1994 * i386-tdep.c: Same.
1995 * jit.c: Same.
1996 * main.c: Same.
1997 * mdebugread.c: Same.
1998 * moxie-tdep.c: Same.
1999 * nto-procfs.c: Same.
2000 * osabi.c: Same.
2001 * ppc-linux-tdep.c: Same.
2002 * remote.c: Same.
2003 * riscv-tdep.c: Same.
2004 * s390-tdep.c: Same.
2005 * sh-tdep.c: Same.
2006 * sparc-linux-tdep.c: Same.
2007 * sparc-nat.c: Same.
2008 * stack.c: Same.
2009 * target-descriptions.c: Same.
2010 * top.c: Same.
2011 * varobj.c: Same.
2012
2013 2019-10-16 Tom Tromey <tom@tromey.com>
2014
2015 * objfiles.h (struct objfile) <original_name>: Now const.
2016
2017 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2018
2019 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2020 pass on to sigsetjmp's second argument.
2021 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2022
2023 2019-10-16 Keith Seitz <keiths@redhat.com>
2024
2025 PR gdb/23567
2026 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2027 sections whose size is greater than the file size.
2028
2029 2019-10-16 Jim Wilson <jimw@sifive.com>
2030
2031 * riscv-tdep.c (riscv_gcc_target_options): New.
2032 (riscv_gnu_triplet_regexp): New.
2033 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2034 set_gdbarch_gnu_triplet_regexp.
2035
2036 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2037
2038 * Makefile.in: Add xml-builtin.h.
2039 * features/feature_to_c.sh: Add an include for xml-builtin.h
2040 to ensure that the compiler checks that the types match.
2041 * xml-builtin.h: New file.
2042 * xml-support.c (fetch_xml_builtin): Add missing const.
2043 * xml-support.h: Remove declaration of xml_builtins.
2044
2045 2019-10-16 Tom de Vries <tdevries@suse.de>
2046
2047 PR tdep/25096
2048 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2049 (amd64_classify_aggregate): ... here.
2050 (amd64_classify_aggregate_field): Handled fiels of nested structs
2051 recursively.
2052
2053 2019-10-16 Tom de Vries <tdevries@suse.de>
2054
2055 PR tdep/24104
2056 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2057 that handles 'theclass'.
2058
2059 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * linespec.c (decode_digits_ordinary): Update comment.
2062 * make-target-delegates: No longer need to handle VEC case.
2063 * memrange.c (normalize_mem_ranges): Update comment.
2064 * namespace.c (add_using_directive): Update comment.
2065 * objc-lang.c (uniquify_strings): Update comment.
2066 * ppc-linux-nat.c (struct thread_points): Update comment.
2067 * probe.h (find_probes_in_objfile): Update comment.
2068 * target.h (enum flash_preserve_mode): Update comment.
2069 * varobj.c (varobj_restrict_range): Update comment.
2070 * varobj.h (varobj_list_children): Update comment.
2071
2072 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * Makefile.in: Remove references to vec.h and vec.c.
2075 * aarch64-tdep.c: No longer include vec.h.
2076 * ada-lang.c: Likewise.
2077 * ada-lang.h: Likewise.
2078 * arm-tdep.c: Likewise.
2079 * ax.h: Likewise.
2080 * breakpoint.h: Likewise.
2081 * charset.c: Likewise.
2082 * cp-support.h: Likewise.
2083 * dtrace-probe.c: Likewise.
2084 * dwarf2read.c: Likewise.
2085 * extension.h: Likewise.
2086 * gdb_bfd.c: Likewise.
2087 * gdbsupport/gdb_vecs.h: Likewise.
2088 * gdbsupport/vec.c: Remove.
2089 * gdbsupport/vec.h: Remove.
2090 * gdbthread.h: Likewise.
2091 * guile/scm-type.c: Likewise.
2092 * inline-frame.c: Likewise.
2093 * machoread.c: Likewise.
2094 * memattr.c: Likewise.
2095 * memrange.h: Likewise.
2096 * namespace.h: Likewise.
2097 * nat/linux-btrace.h: Likewise.
2098 * osdata.c: Likewise.
2099 * parser-defs.h: Likewise.
2100 * progspace.h: Likewise.
2101 * python/py-type.c: Likewise.
2102 * record-btrace.c: Likewise.
2103 * rust-exp.y: Likewise.
2104 * solib-target.c: Likewise.
2105 * stap-probe.c: Likewise.
2106 * target-descriptions.c: Likewise.
2107 * target-memory.c: Likewise.
2108 * target.h: Likewise.
2109 * varobj.c: Likewise.
2110 * varobj.h: Likewise.
2111 * xml-support.h: Likewise.
2112
2113 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2116 Update for new std::vector based implementation.
2117 (process_psymtab_comp_unit_reader): Likewise.
2118 (scan_partial_symbols): Likewise.
2119 (recursively_compute_inclusions): Likewise.
2120 (compute_compunit_symtab_includes): Likewise.
2121 (process_imported_unit_die): Likewise.
2122 (queue_and_load_dwo_tu): Likewise.
2123 (follow_die_sig_1): Likewise.
2124 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2125 (typedef dwarf2_per_cu_ptr): Remove.
2126 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2127 function.
2128 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2129 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2130 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2131 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2132 std::vector.
2133
2134 2019-10-15 Tom Tromey <tromey@adacore.com>
2135
2136 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2137 TID.
2138
2139 2019-10-15 Tom Tromey <tromey@adacore.com>
2140
2141 * windows-nat.c (windows_nat_target::fetch_registers)
2142 (windows_nat_target::store_registers): Rename "pid" to "tid".
2143
2144 2019-10-15 Tom Tromey <tromey@adacore.com>
2145
2146 * gdbarch.h, gdbarch.c: Rebuild.
2147 * gdbarch.sh (gcc_target_options): Change return type to
2148 std::string.
2149 * compile/compile.c (get_args): Update.
2150 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2151 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2152 std::string.
2153 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2154 std::string.
2155 * arch-utils.c (default_gcc_target_options): Return std::string.
2156 * arch-utils.h (default_gcc_target_options): Return std::string.
2157 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2158
2159 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2160
2161 * breakpoint.c (breakpoint_chain): Make static.
2162 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2163 of accessing breakpoint_chain.
2164
2165 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2166
2167 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2168 to a gdb::function_view and return value to bool.
2169 * breakpoint.h (iterate_over_breakpoints): Likewise.
2170 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2171 (pop_dummy_frame): Update.
2172 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2173 (gdbscm_breakpoints): Update.
2174 * python/py-breakpoint.c (build_bp_list): Update.
2175 (gdbpy_breakpoints): Update.
2176 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2177 Update.
2178 (bpfinishpy_handle_stop): Update.
2179 (bpfinishpy_handle_exit): Update.
2180 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2181 (svr4_update_solib_event_breakpoints): Update.
2182
2183 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2184
2185 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2186 when unwrapping single-field structs.
2187
2188 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * dwarf2read.c: Remove includes.
2191
2192 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * ui-out.c (ui_out::call_do_message): Silence
2195 -Wformat-nonliteral warning.
2196
2197 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2200 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2201 include: readline/tilde.h.
2202
2203 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2204
2205 * remote.c (remote_target::get_trace_status): Remove declaration of
2206 trace_regblock_size.
2207
2208 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2209
2210 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2211 (show_user): Remove declaration of cmdlist.
2212 * cli/cli-cmds.h (max_user_call_depth): Declare.
2213 * cli/cli-script.c (execute_user_command): Remove declaration
2214 of max_user_call_depth.
2215
2216 2019-10-11 Jim Wilson <jimw@sifive.com>
2217
2218 * gdbsupport/print-utils.h (pulongest): Fix comment.
2219 (plongest): Likewise.
2220 (phex): Add missing comment, mention leading zeros.
2221 (phex_nz): Add mention of no leading zeros to comment.
2222
2223 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2224 plongest instead of unsigned long long cast.
2225
2226 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2227
2228 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2229 for external_editor_command and gdbtk_test.
2230
2231 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2232
2233 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2234 * varobj.c (varobjdebug): Move comment to...
2235 * varobj.h (varobjdebug): ...here, and declare.
2236
2237 2019-10-09 Tom Tromey <tom@tromey.com>
2238
2239 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2240 erase_data_content.
2241
2242 2019-10-09 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2245 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2246 * tui/tui-command.c (tui_cmd_window::resize)
2247 (tui_refresh_cmd_win): Update.
2248 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2249 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2250 * tui/tui-data.c (~tui_gen_win_info): Remove.
2251 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2252 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2253 (tui_redisplay_readline, tui_mld_flush)
2254 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2255 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2256 (tui_data_window::erase_data_content)
2257 (tui_data_item_window::rerender)
2258 (tui_data_item_window::refresh_window): Update.
2259 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2260 (box_win, tui_gen_win_info::make_window)
2261 (tui_gen_win_info::make_visible): Update.
2262 (tui_delete_win): Remove.
2263 * tui/tui-winsource.c
2264 (tui_source_window_base::do_erase_source_content): Update.
2265 (tui_show_source_line, tui_source_window_base::update_tab_width)
2266 (tui_source_window_base::update_exec_info): Update.
2267 * tui/tui-data.h (struct curses_deleter): New.
2268 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2269 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2270
2271 2019-10-09 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2274
2275 2019-10-09 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2278 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2279
2280 2019-10-09 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2283 window height directly.
2284 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2285 declare.
2286 * tui/tui-layout.c (tui_default_win_height): Remove.
2287 (tui_default_win_viewport_height): Remove.
2288
2289 2019-10-09 Tom Tromey <tom@tromey.com>
2290
2291 * tui/tui.h: Remove comments.
2292
2293 2019-10-09 Tom de Vries <tdevries@suse.de>
2294
2295 * python/lib/gdb/printer/bound_registers.py: Use
2296 '^builtin_type_bound128' as regexp argument for
2297 add_builtin_pretty_printer.
2298
2299 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2300
2301 * guile/guile.c (guile_extension_script_ops): Remove forward
2302 declaration and mark as static.
2303 (guile_script_ops): Likewise.
2304 (extension_language_guile): Move further down in the file so
2305 it can reference the definitions for guile_{extension_,}script_ops.
2306
2307 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2308
2309 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2310 except SORTL, DFLTCC, and KDSA.
2311
2312 2019-10-08 Tom Tromey <tromey@adacore.com>
2313
2314 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2315 (struct safe_symbol_file_add_args): Remove.
2316
2317 2019-10-08 Tom Tromey <tromey@adacore.com>
2318
2319 * windows-nat.c: Don't include buildsym-legacy.h.
2320
2321 2019-10-08 Tom Tromey <tromey@adacore.com>
2322
2323 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2324
2325 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2326
2327 * gdbtypes.c (overload_debug): Move comment to header.
2328 * gdbtypes.h (overload_debug): Declare.
2329 * valops.c: Remove declaration of overload_debug, instead
2330 include gdbtypes.h.
2331
2332 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2333
2334 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2335 through _().
2336 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2337 move comment...
2338 * language.h (lang_frame_mismatch_warn): ... here. Also add
2339 declaration.
2340 * top.c (lang_frame_mismatch_warn): Remove declaration.
2341 (check_frame_language_change): Pass lang_frame_mismatch_warn
2342 through _().
2343
2344 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2345
2346 * c-lang.h (vtbl_ptr_name): Declare.
2347 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2348 it from the header.
2349 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2350
2351 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2352
2353 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2354 gdb_static_assert.
2355
2356 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2357
2358 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2359 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2360 * ctfread.c: New file.
2361 * ctfread.h: New file.
2362 * elfread.c: Include ctfread.h.
2363 (struct elfinfo text_p): New member ctfsect.
2364 (elf_locate_sections): Mark CTF section.
2365 (elf_symfile_read): Call elfctf_build_psymtabs.
2366 * Makefile.in (LIBCTF): Add.
2367 (CLIBS): Use it.
2368 (CDEPS): Likewise.
2369 (DIST): Add ctfread.c.
2370
2371 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * ctfread.c (struct nextfield): Renamed to ...
2374 (struct ctf_nextfield): ... this.
2375 (struct field_info): Renamed to ...
2376 (strut ctf_field_info): ... this.
2377 (attach_fields_to_type): Update for renamed structures.
2378 (ctf_add_member_cb): Likewise.
2379 (ctf_add_enum_member_cb): Likewise.
2380 (process_struct_members): Likewise.
2381 (process_enum_type): Likewise.
2382
2383 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2384
2385 * tracectf.h: Rename, was ctf.h.
2386 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2387 * tracefile.c: Likewise.
2388 * tracepoint.c: Remove unused include ctf.h.
2389 * mi/mi-main.c: Likewise.
2390 * Makefile.in Replace ctf.c with tracectf.c.
2391
2392 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2393
2394 * version.in: Change version number to "9.0.50.DATE-git".
2395
2396 2019-10-03 Tom Tromey <tom@tromey.com>
2397
2398 PR rust/24976:
2399 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2400
2401 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2404 cp_search_name_hash.
2405 * NEWS: Add entry about nested function support.
2406
2407 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2408 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2411 for nested static variables when searchin VAR_DOMAIN.
2412 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2413 global scope, update comment.
2414 (add_partial_subprogram): Call add_partial_subprogram recursively
2415 for nested subroutines when processinng Fortran.
2416 (load_partial_dies): Process the child entities of a subprogram
2417 when processing Fortran.
2418 (partial_die_parent_scope): Handle building scope
2419 for Fortran nested functions.
2420 (process_die): Record that nested functions have a scope.
2421 (new_symbol): Always record Fortran subprograms on the global
2422 symbol list.
2423 (determine_prefix): How to build the prefix for Fortran
2424 subprograms.
2425
2426 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2429 have just sent the thread a SIGSTOP and are waiting for it to
2430 arrive.
2431
2432 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2433
2434 * btrace.c (btrace_add_pc): Remove whitespace before the template
2435 parameter in 'std::vector <...>'.
2436 (parse_xml_btrace_block): Likewise.
2437 (btrace_maint_decode_pt): Likewise.
2438 (btrace_maint_update_packets): Likewise.
2439 (btrace_maint_print_packets): Likewise.
2440 * btrace.h (struct btrace_maint_info): Likewise.
2441 * dwarf2read.c (struct type_unit_group): Likewise.
2442 (build_type_psymtabs_reader): Likewise.
2443 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2444 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2445 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2446
2447 2019-10-03 Tom de Vries <tdevries@suse.de>
2448
2449 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2450 the first line of the help text for set/show style metadata.
2451
2452 2019-10-02 Tom Tromey <tromey@adacore.com>
2453
2454 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2455 * gdbsupport/common-inferior.c: New file.
2456 * infcmd.c (startup_with_shell): Don't define.
2457 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2458 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2459 * inferior.h (startup_with_shell): Don't declare.
2460
2461 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2462
2463 * gdbsupport/gdb_assert.h: Include errors.h.
2464 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2465
2466 2019-10-02 Tom Tromey <tromey@adacore.com>
2467
2468 * NEWS: Add $_ada_exception entry.
2469 * ada-lang.c (struct ada_catchpoint): Add constructor.
2470 <m_kind>: New member.
2471 (allocate_location_exception, re_set_exception): Remove
2472 "ex" parameter.
2473 (should_stop_exception): Compute $_ada_exception.
2474 (check_status_exception, print_it_exception)
2475 (print_one_exception, print_mention_exception): Remove
2476 "ex" parameter.
2477 (allocate_location_catch_exception, re_set_catch_exception)
2478 (check_status_exception, print_it_catch_exception)
2479 (print_one_catch_exception, print_mention_catch_exception)
2480 (print_recreate_catch_exception)
2481 (allocate_location_catch_exception_unhandled)
2482 (re_set_catch_exception_unhandled)
2483 (check_status_exception, print_it_catch_exception_unhandled)
2484 (print_one_catch_exception_unhandled)
2485 (print_mention_catch_exception_unhandled)
2486 (print_recreate_catch_exception_unhandled)
2487 (allocate_location_catch_assert, re_set_catch_assert)
2488 (check_status_assert, print_it_catch_assert)
2489 (print_one_catch_assert, print_mention_catch_assert)
2490 (print_recreate_catch_assert)
2491 (allocate_location_catch_handlers, re_set_catch_handlers)
2492 (check_status_handlers, print_it_catch_handlers)
2493 (print_one_catch_handlers, print_mention_catch_handlers)
2494 (print_recreate_catch_handlers): Remove.
2495 (create_ada_exception_catchpoint): Update.
2496 (initialize_ada_catchpoint_ops): Update.
2497
2498 2019-10-02 Tom Tromey <tromey@adacore.com>
2499
2500 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2501 (create_excep_cond_exprs): Simplify exception string computation.
2502 (ada_exception_catchpoint_cond_string): Likewise.
2503
2504 2019-10-02 Tom Tromey <tromey@adacore.com>
2505
2506 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2507 * ada-lang.c (lesseq_defined_than): Handle
2508 LOC_STATIC.
2509 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2510 parameter.
2511 (dwarf2_has_info): Likewise.
2512 (new_symbol): Set maybe_copied on symbol when
2513 appropriate.
2514 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2515 parameter.
2516 <can_copy>: New member.
2517 * elfread.c (record_minimal_symbol): Set maybe_copied
2518 on symbol when appropriate.
2519 (elf_symfile_read): Update call to dwarf2_has_info.
2520 * minsyms.c (lookup_minimal_symbol_linkage): New
2521 function.
2522 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2523 * symtab.c (get_symbol_address, get_msymbol_address):
2524 New functions.
2525 * symtab.h (get_symbol_address, get_msymbol_address):
2526 Declare.
2527 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2528 maybe_copied.
2529 (struct symbol, struct minimal_symbol) <maybe_copied>:
2530 New member.
2531
2532 2019-10-02 Tom Tromey <tromey@adacore.com>
2533
2534 * source.c (struct current_source_location): New.
2535 (current_source_key): New global.
2536 (current_source_symtab, current_source_line)
2537 (current_source_pspace): Remove.
2538 (get_source_location): New function.
2539 (get_current_source_symtab_and_line)
2540 (set_default_source_symtab_and_line)
2541 (set_current_source_symtab_and_line)
2542 (clear_current_source_symtab_and_line, select_source_symtab)
2543 (info_source_command, print_source_lines_base)
2544 (info_line_command, search_command_helper, _initialize_source):
2545 Update.
2546
2547 2019-10-02 Tom Tromey <tromey@adacore.com>
2548
2549 * source.c (select_source_symtab): Don't call
2550 decode_line_with_current_source.
2551
2552 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * symtab.c (lookup_global_symbol): Search global block.
2555
2556 2019-10-02 Tom Tromey <tromey@adacore.com>
2557
2558 * coffread.c (process_coff_symbol): Update.
2559 * dwarf2read.c (var_decode_location, new_symbol): Update.
2560 * mdebugread.c (parse_symbol): Update.
2561 * objfiles.c (relocate_one_symbol): Update.
2562 * stabsread.c (define_symbol, fix_common_block)
2563 (scan_file_globals): Update.
2564 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2565 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2566 * xcoffread.c (process_xcoff_symbol): Update.
2567
2568 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2569
2570 * MAINTAINERS: Update my email address.
2571
2572 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2575 std::vector.
2576 (build_type_psymtabs_reader): Update for std::vector.
2577 (build_type_psymtab_dependencies): Likewise.
2578 * dwarf2read.h: Remove use of DEF_VEC_P.
2579 (typedef sig_type_ptr): Delete.
2580
2581 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2584 to std::vector.
2585 (btrace_maint_decode_pt): Likewise, and move allocation of the
2586 vector outside of the loop.
2587 (btrace_maint_update_packets): Update to handle change from VEC to
2588 std::vector.
2589 (btrace_maint_print_packets): Likewise.
2590 (maint_info_btrace_cmd): Likewise.
2591 * btrace.h: Remove use of DEF_VEC_O.
2592 (typedef btrace_pt_packet_s): Delete.
2593 (struct btrace_maint_info) <packets>: Change fromm VEC to
2594 std::vector.
2595 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2596
2597 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2600 make accesses into the vector constant references.
2601 (btrace_add_pc): Update for std::vector.
2602 (btrace_stitch_bts): Likewise.
2603 (parse_xml_btrace_block): Likewise.
2604 (btrace_maint_update_packets): Likewise.
2605 (btrace_maint_print_packets): Likewise.
2606 (maint_info_btrace_cmd): Likewise.
2607 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2608 std::vector.
2609 (btrace_data::empty): Likewise.
2610 (btrace_data_append): Likewise.
2611 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2612 (typedef btrace_block_s): Delete.
2613 (struct btrace_block): Add constructor.
2614 (struct btrace_data_bts) <blocks>: Change to std::vector.
2615 * nat/linux-btrace.c (perf_event_read_bts): Update for
2616 std::vector.
2617 (linux_read_bts): Likewise.
2618
2619 2019-10-01 Tom Tromey <tom@tromey.com>
2620
2621 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2622
2623 2019-10-01 Tom Tromey <tom@tromey.com>
2624
2625 * stack.c (print_frame, info_frame_command_core): Use
2626 styled_string.
2627 * linux-thread-db.c (try_thread_db_load_1)
2628 (try_thread_db_load_from_pdir_1): Use styled_string.
2629 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2630 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2631 (maybe_print_unsupported_script_warning)
2632 (maybe_print_script_not_found_warning): Use styled_string.
2633 * ada-lang.c (user_select_syms): Use styled_string.
2634
2635 2019-10-01 Tom Tromey <tom@tromey.com>
2636
2637 * p-lang.c (pascal_printstr): Use metadata style.
2638 * value.c (show_convenience): Use metadata style.
2639 * valprint.c (valprint_check_validity, val_print_optimized_out)
2640 (val_print_not_saved, val_print_unavailable)
2641 (val_print_invalid_address, generic_val_print, val_print)
2642 (value_check_printable, val_print_array_elements): Use metadata
2643 style.
2644 * ui-out.h (class ui_out) <field_fmt>: New overload.
2645 <do_field_fmt>: Add style parameter.
2646 * ui-out.c (ui_out::field_fmt): New overload.
2647 * typeprint.c (type_print_unknown_return_type)
2648 (val_print_not_allocated, val_print_not_associated): Use metadata
2649 style.
2650 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2651 parameter.
2652 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2653 * tracepoint.c (tvariables_info_1): Use metadata style.
2654 * stack.c (print_frame_arg, print_frame_info, print_frame)
2655 (info_frame_command_core): Use metadata style.
2656 * skip.c (info_skip_command): Use metadata style.
2657 * rust-lang.c (rust_print_enum): Use metadata style.
2658 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2659 metadata style.
2660 * python/py-framefilter.c (py_print_single_arg): Use metadata
2661 style.
2662 * printcmd.c (do_one_display, print_variable_and_value): Use
2663 metadata style.
2664 * p-valprint.c (pascal_val_print)
2665 (pascal_object_print_value_fields): Use metadata style.
2666 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2667 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2668 parameter.
2669 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2670 * m2-valprint.c (m2_print_long_set): Use metadata style.
2671 * m2-typeprint.c (m2_print_type): Use metadata style.
2672 * infcmd.c (print_return_value_1): Use metadata style.
2673 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2674 * f-valprint.c (info_common_command_for_block): Use metadata
2675 style.
2676 * f-typeprint.c (f_type_print_base): Use metadata style.
2677 * expprint.c (print_subexp_standard): Use metadata style.
2678 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2679 * cli/cli-style.h (class cli_style_option): Add constructor.
2680 (metadata_style): Declare.
2681 * cli/cli-style.c (metadata_style): New global.
2682 (_initialize_cli_style): Register metadata style.
2683 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2684 parameter.
2685 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2686 * c-typeprint.c (c_type_print_base_struct_union)
2687 (c_type_print_base_1): Use metadata style.
2688 * breakpoint.c (watchpoint_value_print)
2689 (print_one_breakpoint_location): Use metadata style.
2690 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2691 style.
2692 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2693 style.
2694 * ada-valprint.c (val_print_packed_array_elements, printstr)
2695 (print_field_values, ada_val_print_ref, ada_val_print): Use
2696 metadata style.
2697 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2698 style.
2699 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2700 style.
2701 * ada-lang.c (user_select_syms): Use metadata style.
2702
2703 2019-10-01 Tom Tromey <tom@tromey.com>
2704
2705 * cli/cli-cmds.c (pwd_command): Style output.
2706
2707 2019-10-01 Pedro Alves <palves@redhat.com>
2708 Tom Tromey <tom@tromey.com>
2709
2710 * symtab.c (print_symbol_info): Use %ps.
2711 (print_msymbol_info): Use %ps.
2712 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2713 * printcmd.c (print_variable_and_value): Use %ps.
2714 * macrocmd.c (show_pp_source_pos): Use %ps.
2715 * infrun.c (print_exited_reason): Use ui_out::message.
2716 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2717 (describe_other_breakpoints): Use ui_out::message and new
2718 formats.
2719 (say_where): Use new formats.
2720 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2721 and new formats.
2722
2723 2019-10-01 Pedro Alves <palves@redhat.com>
2724 Tom Tromey <tom@tromey.com>
2725
2726 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2727 (test_gdb_formats): New function.
2728 (run_tests): Call it.
2729 (test_format_specifier): Update.
2730 * utils.h (fputs_filtered): Update comment.
2731 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2732 (fputs_styled_unfiltered): Declare.
2733 * utils.c (fputs_styled_unfiltered): New function.
2734 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2735 (vfprintf_filtered): Update.
2736 (vfprintf_unfiltered, vprintf_filtered): Update.
2737 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2738 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2739 disallow_ui_out_field>: New constants.
2740 (enum class field_kind): New.
2741 (struct base_field_s, struct signed_field_s): New.
2742 (signed_field): New function.
2743 (struct string_field_s): New.
2744 (string_field): New function.
2745 (struct styled_string_s): New.
2746 (styled_string): New function.
2747 (class ui_out) <message>: Add comment.
2748 <vmessage, call_do_message>: New methods.
2749 <do_message>: Add style parameter.
2750 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2751 methods.
2752 (ui_out::message): Rewrite.
2753 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2754 parameter.
2755 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2756 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2757 gdb_extensions parameter.
2758 (class format_piece): Add parameter to constructor.
2759 (n_int_args): New field.
2760 * gdbsupport/format.c (format_pieces::format_pieces): Add
2761 gdb_extensions parameter. Handle '*'.
2762 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2763 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2764 vfprintf_styled_no_gdbfmt.
2765 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2766 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2767 unfiltered output.
2768 * ui-style.h (struct ui_file_style) <ptr>: New method.
2769
2770 2019-10-01 Tom Tromey <tom@tromey.com>
2771
2772 * unittests/format_pieces-selftests.c: Update. Add final format.
2773 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2774 empty literal pieces.
2775
2776 2019-10-01 Tom Tromey <tom@tromey.com>
2777
2778 * ui-out.h (enum class ui_out_style_kind): Remove.
2779 (class ui_out) <field_string, field_stsream, do_field_string>:
2780 Change type of "style".
2781 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2782 (ui_out::field_string): Update.
2783 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2784 of "style".
2785 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2786 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2787 * stack.c (print_frame_arg, print_frame_info, print_frame):
2788 Update.
2789 * source.c (print_source_lines_base): Update.
2790 * solib.c (info_sharedlibrary_command): Update.
2791 * skip.c (info_skip_command): Update.
2792 * record-btrace.c (btrace_call_history_src_line)
2793 (btrace_call_history): Update.
2794 * python/py-framefilter.c (py_print_frame): Update.
2795 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2796 "style".
2797 * mi/mi-out.c (mi_ui_out::do_table_header)
2798 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2799 (mi_ui_out::do_field_string): Update.
2800 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2801 Update.
2802 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2803 "style".
2804 * cli-out.c (cli_ui_out::do_table_header)
2805 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2806 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2807 (cli_ui_out::do_field_fmt): Update.
2808 * breakpoint.c (print_breakpoint_location): Update.
2809 (update_static_tracepoint): Update.
2810
2811 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2812
2813 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2814 conversion of gdb_datadir.
2815 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2816 remove not needed c_str ().
2817
2818 2019-09-30 Ali Tamur <tamur@google.com>
2819
2820 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2821 (dwarf2_string_attr): Likewise.
2822
2823 2019-09-30 Ali Tamur <tamur@google.com>
2824
2825 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2826 (process_full_type_unit): Likewise.
2827 (dump_die_shallow): Likewise.
2828 (cu_debug_loc_section): Likewise.
2829
2830 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2831
2832 * minsyms.c (compare_minimal_symbols): Rename to...
2833 (minimal_symbol_is_less_than): ...this, and adjust to STL
2834 conventions (return bool, take arguments as references)
2835 (minimal_symbol_reader::install): Call std::sort instead
2836 of qsort.
2837
2838 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2839
2840 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2841 hash and why.
2842 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2843 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2844
2845 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2848 * psympriv.h (add_psymbol_to_list): Move comment here and update
2849 it.
2850
2851 2019-09-29 Tom de Vries <tdevries@suse.de>
2852
2853 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2854 Use $tmpdir/$(basename "$output_file").dwz instead of
2855 "${output_file}.dwz".
2856
2857 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 PR gdb/25045
2860 * hppa-linux-nat.c: Include gdbarch.h.
2861
2862 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2863
2864 * blockframe.c (find_pc_partial_function): Change return type to bool.
2865 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2866 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2867 (stub_gnu_ifunc_resolve_name): Likewise.
2868 * symtab.c (compare_filenames_for_search): Likewise.
2869 (compare_glob_filenames_for_search): Likewise.
2870 (matching_obj_sections): Likewise.
2871 (symbol_matches_domain): Likewise.
2872 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2873 (find_line_pc): Change return type to bool.
2874 (find_line_pc_range): Likewise.
2875 (producer_is_realview): Likewise.
2876 * symtab.h (symbol_matches_domain): Likewise.
2877 (find_pc_partial_function): Likewise.
2878 (find_pc_line_pc_range): Likewise.
2879 (in_gnu_ifunc_stub): Likewise.
2880 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2881 (find_line_pc): Likewise.
2882 (find_line_pc_range): Likewise.
2883 (matching_obj_sections): Likewise.
2884 (find_line_symtab): Change out parameter to bool.
2885 (producer_is_realview): Change return type to bool.
2886 (compare_filenames_for_search): Likewise.
2887 (compare_glob_filenames_for_search): Likewise.
2888
2889 2019-09-26 Tom Tromey <tom@tromey.com>
2890
2891 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2892 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2893 * gdb_usleep.h: Remove.
2894 * gdb_usleep.c: Remove.
2895 * utils.c: Don't include gdb_usleep.h.
2896
2897 2019-09-26 Tom Tromey <tromey@adacore.com>
2898
2899 * python/py-type.c (type_to_type_object): Call check_typedef
2900 for stub types.
2901
2902 2019-09-26 Tom Tromey <tom@tromey.com>
2903
2904 * utils.h (initialize_utils): Don't declare.
2905 * top.c (gdb_init): Don't call initialize_utils.
2906 * utils.c (initialize_utils): Remove. Move contents...
2907 (_initialize_utils): ... here.
2908
2909 2019-09-25 Tom Tromey <tom@tromey.com>
2910
2911 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2912 * utils.h (make_hex_string): Don't declare.
2913 * utils.c (make_hex_string): Remove.
2914
2915 2019-09-24 Tom de Vries <tdevries@suse.de>
2916
2917 PR gdb/23815
2918 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2919 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2920
2921 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2922
2923 * NEWS: Mention new simulator port for PRU.
2924
2925 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2926
2927 * ada-exp.y (write_object_remaining): Update.
2928 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2929 and eliminate the static buffer.
2930 (ada_decode_symbol): Update.
2931 (ada_la_decode): Update.
2932 (ada_sniff_from_mangled_name): Update.
2933 (is_valid_name_for_wild_match): Update.
2934 (ada_lookup_name_info::matches): Update and simplify.
2935 (name_matches_regex): Update.
2936 (ada_add_global_exceptions): Update.
2937 * ada-lang.h (ada_decode): Update signature.
2938 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2939 * dwarf-index-write.c (debug_names::insert): Update.
2940
2941 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2944 formatting.
2945
2946 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2949 Change "nonzero" to "true" in documentation.
2950
2951 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2952
2953 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2954 (_initialize_darwin_solib): Don't set
2955 darwin_so_ops.lookup_lib_global_symbol.
2956 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2957 set_gdbarch_iterate_over_objfiles_in_search_order.
2958 (elf_lookup_lib_symbol): Rename to...
2959 (svr4_iterate_over_objfiles_in_search_order): this, and update
2960 to iterate semantics.
2961 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2962 * solib.c (solib_global_lookup): Remove.
2963 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2964 (solib_global_lookup): Remove.
2965 * symtab.c (lookup_global_or_static_symbol): Remove call to
2966 solib_global_lookup.
2967
2968 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2969
2970 * NEWS: Move entries about default MI version now being
2971 version 3, and about the GDB/MI fix for multi-location
2972 breakpoints to the "since GDB 8.3" section.
2973
2974 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2975
2976 GDB 8.3.1 released.
2977
2978 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2979
2980 * NEWS: Mention that Cell/B.E. debugging support was removed.
2981 * MAINTAINERS: Remove spu target.
2982
2983 * config/djgpp/fnchange.lst: Remove entries for removed files.
2984
2985 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2986 spu-multiarch.o, and spu-tdep.o.
2987 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2988 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2989 spu-multiarch.c, and spu-tdep.c.
2990 * spu-linux-nat.c: Remove file.
2991 * spu-multiarch.c: Remove file.
2992 * spu-tdep.c: Remove file.
2993 * spu-tdep.h: Remove file.
2994 * solib-spu.c: Remove file.
2995 * solib-spu.h: Remove file.
2996
2997 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2998 * configure.nat (spu-linux): Remove.
2999 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3000 solib-multiarch.o from gdb_target_obs.
3001 (spu*-*-*): Remove.
3002
3003 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3004 feature flag.
3005 (ppc_linux_no_features): Update.
3006 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3007 Cell/B.E. support.
3008 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3009 (tdesc_powerpc_cell64l): Likewise.
3010 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3011 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3012 Cell/B.E. support.
3013 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3014 Do not include "features/rs6000/powerpc-cell32l.c" or
3015 "features/rs6000/powerpc-cell64l.c".
3016 (ppc_linux_spu_section): Remove.
3017 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3018 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3019 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3020 (ppc_linux_spe_context_lookup): Remove.
3021 (ppc_linux_spe_context_inferior_created): Remove.
3022 (ppc_linux_spe_context_solib_loaded): Remove.
3023 (ppc_linux_spe_context_solib_unloaded): Remove.
3024 (ppc_linux_spe_context): Remove.
3025 (struct ppu2spu_cache): Remove.
3026 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3027 (struct ppu2spu_data): Remove.
3028 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3029 ppu2spu_unwind): Remove.
3030 (ppc_linux_init_abi): Remove Cell/B.E. support.
3031 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3032
3033 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3034 (rs6000/powerpc-cell64l-expedite): Likewise
3035 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3036 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3037 rs6000/powerpc-cell64l.xml.
3038 * features/rs6000/powerpc-cell32l.xml: Remove.
3039 * features/rs6000/powerpc-cell64l.xml: Likewise.
3040 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3041 * features/rs6000/powerpc-cell64l.c: Likewise.
3042 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3043 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3044 * regformats/reg-spu.dat: Remove.
3045
3046 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3047 * corelow.c (struct spuid_list): Remove.
3048 (add_to_spuid_list): Remove.
3049 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3050 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3051 (remote_protocol_features): Remove associated entries.
3052 (_initialize_remote): No longer initialize them.
3053 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3054 * linux-nat.c (SPUFS_MAGIC): Remove.
3055 (linux_proc_xfer_spu): Remove.
3056 (spu_enumerate_spu_ids): Remove.
3057 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3058 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3059 (linux_make_corefile_notes): No longer call it.
3060
3061 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3062 (cooked_write_test): Likewise.
3063
3064 2019-09-20 Tom Tromey <tom@tromey.com>
3065
3066 * NEWS: Mention case-sensitivity of TUI commands.
3067 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3068 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3069 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3070
3071 2019-09-20 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui-source.c (tui_source_window::set_contents): Use
3074 make_unique_xstrdup.
3075 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3076 make_unique_xstrdup.
3077
3078 2019-09-20 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-data.c: Remove separator comments.
3081 * tui/tui-layout.c: Remove separator comments.
3082 * tui/tui-win.c: Remove separator comments.
3083 * tui/tui-wingeneral.c: Remove separator comments.
3084
3085 2019-09-20 Tom Tromey <tom@tromey.com>
3086
3087 * tui/tui.h (strcat_to_buf): Don't declare.
3088 * tui/tui.c (strcat_to_buf): Remove.
3089
3090 2019-09-20 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3093 from "fullname".
3094 * tui/tui-source.c (tui_source_window::set_contents)
3095 (tui_source_window::location_matches_p)
3096 (tui_source_window::maybe_update): Update.
3097
3098 2019-09-20 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3101 Update.
3102 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3103 prefix.
3104 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3105 (tui_data_window::line_from_reg_element_no)
3106 (tui_data_window::first_reg_element_no_inline)
3107 (tui_data_window::show_registers)
3108 (tui_data_window::show_register_group)
3109 (tui_data_window::display_registers_from)
3110 (tui_data_window::display_registers_from_line)
3111 (tui_data_window::first_data_item_displayed)
3112 (tui_data_window::delete_data_content_windows)
3113 (tui_data_window::erase_data_content)
3114 (tui_data_window::do_scroll_vertical)
3115 (tui_data_window::refresh_window)
3116 (tui_data_window::check_register_values): Update.
3117
3118 2019-09-20 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3121 (struct tui_locator_window) <full_name, proc_name>: Now
3122 std::string.
3123 * tui/tui-stack.c (tui_locator_window::make_status_line)
3124 (tui_locator_window::set_locator_fullname)
3125 (tui_locator_window::set_locator_info): Update.
3126 * tui/tui-source.c (tui_source_window::set_contents)
3127 (tui_source_window::showing_source_p): Update.
3128
3129 2019-09-20 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3132 Don't call tui_locator_win_info_ptr.
3133
3134 2019-09-20 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3137
3138 2019-09-20 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3141 height for locator.
3142 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3143 * tui/tui-layout.c (show_source_disasm_command, show_data)
3144 (show_source_or_disasm_and_command): Use 1 as height for locator.
3145
3146 2019-09-20 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui.c (tui_enable): Update.
3149 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3150 Update.
3151 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3152 Update.
3153 * tui/tui-data.c (win_resized): Now bool.
3154 (tui_win_resized): Return bool.
3155 (tui_set_win_resized_to): Accept a bool.
3156
3157 2019-09-20 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3160 Change type of "refresh_values_only".
3161 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3162 type of "refresh_values_only".
3163
3164 2019-09-20 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3167 std::string.
3168 (tui_disassemble): Add "pos" parameter.
3169 (tui_disasm_window::set_contents): Simplify.
3170
3171 2019-09-20 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-winsource.h (struct tui_source_window_base)
3174 <show_source_content>: Now private.
3175 * tui/tui-winsource.c
3176 (tui_source_window_base::show_source_content): Don't handle empty
3177 content case.
3178
3179 2019-09-20 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-layout.c (show_source_disasm_command)
3182 (show_source_or_disasm_and_command): Don't call
3183 show_source_content.
3184
3185 2019-09-20 Tom Tromey <tom@tromey.com>
3186
3187 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3188 Declare.
3189 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3190 from tui_make_status_line.
3191 (tui_locator_window::rerender): Update.
3192
3193 2019-09-20 Tom Tromey <tom@tromey.com>
3194
3195 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3196 (tui_locator_window::rerender): Update.
3197
3198 2019-09-20 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui-winsource.h (struct tui_source_window_base)
3201 <~tui_source_window_base>: Don't declare.
3202 <fullname>: Remove.
3203 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3204 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3205 member.
3206 * tui/tui-source.c (tui_source_window::set_contents): Update.
3207 (tui_source_window::location_matches_p)
3208 (tui_source_window::maybe_update): Update.
3209
3210 2019-09-20 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui-winsource.h (~tui_source_element): Remove.
3213 (tui_source_element): Update.
3214 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3215 * tui/tui-winsource.c (tui_show_source_line): Update.
3216 * tui/tui-source.c (tui_source_window::set_contents): Update.
3217 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3218
3219 2019-09-20 Tom Tromey <tom@tromey.com>
3220
3221 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3222 declare.
3223 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3224 tui_clear_source_windows_detail.
3225 * tui/tui-winsource.h (struct tui_source_window_base)
3226 <clear_detail>: Don't declare.
3227 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3228 Remove.
3229 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3230
3231 2019-09-20 Tom Tromey <tromey@adacore.com>
3232
3233 PR ada/24919:
3234 * block.c (contained_in): Fix final return value.
3235
3236 2019-09-20 Alan Modra <amodra@gmail.com>
3237
3238 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3239 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3240 (read_indirect_string_from_dwz): Use bfd accessor.
3241 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3242 * machoread.c (macho_symfile_read_all_oso): Likewise.
3243 * solib.c (solib_bfd_open): Likewise.
3244
3245 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3246
3247 * eval.c: Move declaration of overload_resolution to...
3248 * value.h: ...here.
3249
3250 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3251
3252 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3253 * arm-linux-tdep.c: Likewise.
3254 * arm-nbsd-nat.c: Likewise.
3255 * arm-tdep.h: Declare arm_apcs_32.
3256 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3257
3258 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3259
3260 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3261 * dwarf2read.h: Declare dwarf_always_disassemble.
3262
3263 2019-09-19 Tom de Vries <tdevries@suse.de>
3264
3265 PR gdb/25009
3266 * source-cache.c (source_cache::ensure): Catch exception thrown during
3267 construction of the highlighter.
3268
3269 2019-09-18 Alan Modra <amodra@gmail.com>
3270
3271 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3272 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3273 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3274 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3275 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3276 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3277 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3278 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3279 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3280 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3281 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3282 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3283 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3284 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3285 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3286 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3287 * mi/mi-interp.c: Update throughout for bfd section macro and
3288 function changes.
3289 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3290 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3291
3292 2019-09-18 Tom Tromey <tom@tromey.com>
3293
3294 * NEWS: Add entry.
3295 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3296 call rl_initialize.
3297 (tui_enable): Do not call rl_initialize.
3298
3299 2019-09-18 Christian Groessler <chris@groessler.org>
3300
3301 * alpha-linux-nat.c: Include gdbarch.h.
3302
3303 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * ui-file.c: Include cli/cli-style.h.
3306 (term_cli_styling): Remove cli_styling declaration.
3307
3308 2019-09-18 Alan Modra <amodra@gmail.com>
3309
3310 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3311 to bfd_asymbol_section.
3312
3313 2019-09-18 Alan Modra <amodra@gmail.com>
3314
3315 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3316 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3317 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3318
3319 2019-09-18 Alan Modra <amodra@gmail.com>
3320
3321 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3322 * spu-linux-nat.c (spu_bfd_open): Likewise.
3323
3324 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3325
3326 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3327 to bool to match definition in dwarf2read.c.
3328
3329 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3330
3331 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3332 (print_signatures): Likewise.
3333 (trust_pad_over_xvs): Likewise.
3334 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3335 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3336 * arm-linux-nat.c (arm_apcs_32): Likewise.
3337 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3338 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3339 * arm-tdep.c (arm_debug): Likewise.
3340 (arm_apcs_32): Likewise.
3341 * auto-load.c (debug_auto_load): Likewise.
3342 (auto_load_gdb_scripts): Likewise.
3343 (global_auto_load): Likewise.
3344 (auto_load_local_gdbinit): Likewise.
3345 (auto_load_local_gdbinit_loaded): Likewise.
3346 * auto-load.h (global_auto_load): Likewise.
3347 (auto_load_local_gdbinit): Likewise.
3348 (auto_load_local_gdbinit_loaded): Likewise.
3349 * breakpoint.c (disconnected_dprintf): Likewise.
3350 (breakpoint_proceeded): Likewise.
3351 (automatic_hardware_breakpoints): Likewise.
3352 (always_inserted_mode): Likewise.
3353 (target_exact_watchpoints): Likewise.
3354 (_initialize_breakpoint): Update.
3355 * breakpoint.h (target_exact_watchpoints): Change to bool.
3356 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3357 * cli/cli-cmds.c (trace_commands): Likewise.
3358 * cli/cli-cmds.h (trace_commands): Likewise.
3359 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3360 to bool*.
3361 * cli/cli-logging.c (logging_overwrite): Change to bool.
3362 (logging_redirect): Likewise.
3363 (debug_redirect): Likewise.
3364 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3365 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3366 to bool.
3367 <boolean_option_def>: Update.
3368 (struct flag_option_def): Change default type of Context to bool
3369 from int.
3370 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3371 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3372 (get_setshow_command_value_string): Likewise.
3373 * cli/cli-style.c (cli_styling): Change to bool.
3374 (source_styling): Likewise.
3375 * cli/cli-style.h (source_styling): Likewise.
3376 (cli_styling): Likewise.
3377 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3378 to bool.
3379 * command.h (var_types): Update comment.
3380 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3381 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3382 bool.
3383 (debug_compile_cplus_scopes): Likewise.
3384 * compile/compile-internal.h (compile_debug): Likewise.
3385 * compile/compile.c (compile_debug): Likewise.
3386 (struct compile_options) <raw>: Likewise.
3387 * cp-support.c (catch_demangler_crashes): Likewise.
3388 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3389 (usr_cmd_cris_dwarf2_cfi): Likewise.
3390 * csky-tdep.c (csky_debug): Likewise.
3391 * darwin-nat.c (enable_mach_exceptions): Likewise.
3392 * dcache.c (dcache_enabled_p): Likewise.
3393 * defs.h (info_verbose): Likewise.
3394 * demangle.c (demangle): Likewise.
3395 (asm_demangle): Likewise.
3396 * dwarf-index-cache.c (debug_index_cache): Likewise.
3397 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3398 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3399 * dwarf2read.c (check_physname): Likewise.
3400 (use_deprecated_index_sections): Likewise.
3401 (dwarf_always_disassemble): Likewise.
3402 * eval.c (overload_resolution): Likewise.
3403 * event-top.c (set_editing_cmd_var): Likewise.
3404 (exec_done_display_p): Likewise.
3405 * event-top.h (set_editing_cmd_var): Likewise.
3406 (exec_done_display_p): Likewise.
3407 * exec.c (write_files): Likewise.
3408 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3409 (debug_fbsd_nat): Likewise.
3410 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3411 Likewise.
3412 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3413 <backtrace_past_entry> Likewise.
3414 * gdb-demangle.h (demangle): Likewise.
3415 (asm_demangle): Likewise.
3416 * gdb_bfd.c (bfd_sharing): Likewise.
3417 * gdbcore.h (write_files): Likewise.
3418 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3419 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3420 * gdbthread.h (print_thread_events): Likewise.
3421 * gdbtypes.c (opaque_type_resolution): Likewise.
3422 (strict_type_checking): Likewise.
3423 * gnu-nat.c (gnu_debug_flag): Likewise.
3424 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3425 * guile/scm-param.c (pascm_variable): Add boolval.
3426 (add_setshow_generic): Update.
3427 (pascm_param_value): Update.
3428 (pascm_set_param_value_x): Update.
3429 * hppa-tdep.c (hppa_debug): Change to bool..
3430 * infcall.c (may_call_functions_p): Likewise.
3431 (coerce_float_to_double_p): Likewise.
3432 (unwind_on_signal_p): Likewise.
3433 (unwind_on_terminating_exception_p): Likewise.
3434 * infcmd.c (startup_with_shell): Likewise.
3435 * inferior.c (print_inferior_events): Likewise.
3436 * inferior.h (startup_with_shell): Likewise.
3437 (print_inferior_events): Likewise.
3438 * infrun.c (step_stop_if_no_debug): Likewise.
3439 (detach_fork): Likewise.
3440 (debug_displaced): Likewise.
3441 (disable_randomization): Likewise.
3442 (non_stop): Likewise.
3443 (non_stop_1): Likewise.
3444 (observer_mode): Likewise.
3445 (observer_mode_1): Likewise.
3446 (set_observer_mode): Update.
3447 (sched_multi): Change to bool.
3448 * infrun.h (debug_displaced): Likewise.
3449 (sched_multi): Likewise.
3450 (step_stop_if_no_debug): Likewise.
3451 (non_stop): Likewise.
3452 (disable_randomization): Likewise.
3453 * linux-tdep.c (use_coredump_filter): Likewise.
3454 (dump_excluded_mappings): Likewise.
3455 * linux-thread-db.c (auto_load_thread_db): Likewise.
3456 (check_thread_db_on_load): Likewise.
3457 * main.c (captured_main_1): Update.
3458 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3459 xx2_opt, boolean_opt>: Change to bool.
3460 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3461 * maint.c (maintenance_profile_p): Likewise.
3462 (per_command_time): Likewise.
3463 (per_command_space): Likewise.
3464 (per_command_symtab): Likewise.
3465 * memattr.c (inaccessible_by_default): Likewise.
3466 * mi/mi-main.c (mi_async): Likewise.
3467 (mi_async_1): Likewise.
3468 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3469 * nat/fork-inferior.h (startup_with_shell): Likewise.
3470 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3471 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3472 * nios2-tdep.c (nios2_debug): Likewise.
3473 * or1k-tdep.c (or1k_debug): Likewise.
3474 * parse.c (parser_debug): Likewise.
3475 * parser-defs.h (parser_debug): Likewise.
3476 * printcmd.c (print_symbol_filename): Likewise.
3477 * proc-api.c (procfs_trace): Likewise.
3478 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3479 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3480 (set_parameter_value): Update.
3481 (add_setshow_generic): Update.
3482 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3483 to bool*.
3484 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3485 int*.
3486 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3487 * record-btrace.c (record_btrace_target::store_registers): Update.
3488 * record-full.c (record_full_memory_query): Change to bool.
3489 (record_full_stop_at_limit): Likewise.
3490 * record-full.h (record_full_memory_query): Likewise.
3491 * remote-notif.c (notif_debug): Likewise.
3492 * remote-notif.h (notif_debug): Likewise.
3493 * remote.c (use_range_stepping): Likewise.
3494 (interrupt_on_connect): Likewise.
3495 (remote_break): Likewise.
3496 * ser-tcp.c (tcp_auto_retry): Likewise.
3497 * ser-unix.c (serial_hwflow): Likewise.
3498 * skip.c (debug_skip): Likewise.
3499 * solib-aix.c (solib_aix_debug): Likewise.
3500 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3501 (spu_auto_flush_cache_p): Likewise.
3502 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3503 Likewise.
3504 (struct info_print_options) <quiet>: Likewise.
3505 * symfile-debug.c (debug_symfile): Likewise.
3506 * symfile.c (auto_solib_add): Likewise.
3507 (separate_debug_file_debug): Likewise.
3508 * symfile.h (auto_solib_add): Likewise.
3509 (separate_debug_file_debug): Likewise.
3510 * symtab.c (basenames_may_differ): Likewise.
3511 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3512 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3513 (struct info_types_options) <quiet>: Likewise.
3514 * symtab.h (demangle): Likewise.
3515 (basenames_may_differ): Likewise.
3516 * target-dcache.c (stack_cache_enabled_1): Likewise.
3517 (code_cache_enabled_1): Likewise.
3518 * target.c (trust_readonly): Likewise.
3519 (may_write_registers): Likewise.
3520 (may_write_memory): Likewise.
3521 (may_insert_breakpoints): Likewise.
3522 (may_insert_tracepoints): Likewise.
3523 (may_insert_fast_tracepoints): Likewise.
3524 (may_stop): Likewise.
3525 (auto_connect_native_target): Likewise.
3526 (target_stop_and_wait): Update.
3527 (target_async_permitted): Change to bool.
3528 (target_async_permitted_1): Likewise.
3529 (may_write_registers_1): Likewise.
3530 (may_write_memory_1): Likewise.
3531 (may_insert_breakpoints_1): Likewise.
3532 (may_insert_tracepoints_1): Likewise.
3533 (may_insert_fast_tracepoints_1): Likewise.
3534 (may_stop_1): Likewise.
3535 * target.h (target_async_permitted): Likewise.
3536 (may_write_registers): Likewise.
3537 (may_write_memory): Likewise.
3538 (may_insert_breakpoints): Likewise.
3539 (may_insert_tracepoints): Likewise.
3540 (may_insert_fast_tracepoints): Likewise.
3541 (may_stop): Likewise.
3542 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3543 (make_thread_apply_all_options_def_group): Change argument from int*
3544 to bool*.
3545 (thread_apply_all_command): Update.
3546 (print_thread_events): Change to bool.
3547 * top.c (confirm): Likewise.
3548 (command_editing_p): Likewise.
3549 (history_expansion_p): Likewise.
3550 (write_history_p): Likewise.
3551 (info_verbose): Likewise.
3552 * top.h (confirm): Likewise.
3553 (history_expansion_p): Likewise.
3554 * tracepoint.c (disconnected_tracing): Likewise.
3555 (circular_trace_buffer): Likewise.
3556 * typeprint.c (print_methods): Likewise.
3557 (print_typedefs): Likewise.
3558 * utils.c (debug_timestamp): Likewise.
3559 (sevenbit_strings): Likewise.
3560 (pagination_enabled): Likewise.
3561 * utils.h (sevenbit_strings): Likewise.
3562 (pagination_enabled): Likewise.
3563 * valops.c (overload_resolution): Likewise.
3564 * valprint.h (struct value_print_options) <prettyformat_arrays,
3565 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3566 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3567 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3568 Likewise.
3569 * windows-nat.c (new_console): Likewise.
3570 (cygwin_exceptions): Likewise.
3571 (new_group): Likewise.
3572 (debug_exec): Likewise.
3573 (debug_events): Likewise.
3574 (debug_memory): Likewise.
3575 (debug_exceptions): Likewise.
3576 (useshell): Likewise.
3577 * windows-tdep.c (maint_display_all_tib): Likewise.
3578 * xml-support.c (debug_xml): Likewise.
3579
3580 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3581
3582 * source.c (prepare_path_for_appending): New function.
3583 (openp): Make use of new function.
3584 (find_and_open_source): Search for the compilation directory and
3585 source file as a relative path beneath the directory search path.
3586
3587 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * source-cache.c (source_cache::get_line_charpos): Catch
3590 exceptions and return false, this matches the behaviour documented
3591 in the header file.
3592
3593 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3594
3595 * ada-tasks.c (info_task): Remove quoting of the task's name.
3596
3597 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3598
3599 * symfile.c (auto_solib_add): Replace comment with a reference
3600 to the header file.
3601
3602 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3603
3604 * NEWS: Mention that gdb can now be compiled with Python 3
3605 on Windows.
3606
3607 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * maint.c (maint_print_section_data::maint_print_section_data):
3610 Force use of 'float log10 (float)' by casting the argument to
3611 float.
3612
3613 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * maint.c: Add 'cmath' include.
3616 (struct maint_print_section_data): New structure.
3617 (print_section_index): New function.
3618 (print_bfd_section_info): Add header comment, small whitespace
3619 cleanup, and update to call new print_section_index function.
3620 (print_objfile_section_info): Likewise.
3621 (maint_obj_section_from_bfd_section): New function.
3622 (print_bfd_section_info_maybe_relocated): New function.
3623 (maintenance_info_sections): Add header comment, always use
3624 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3625
3626 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3629 inner scope, add check that the objfile has psymtabs before
3630 checking psymtabs_addrmap.
3631 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3632
3633 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3634
3635 * NEWS: Announce that Ada task names are now shown at more places,
3636 and between quotes (except in info task output).
3637 * gdb/ada-tasks.c (task_to_str): New function.
3638 (display_current_task_id): Call task_to_str.
3639 (task_command_1): Likewise.
3640 (print_ada_task_info): In non-mi mode, Properly align headers and data
3641 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3642
3643 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3644
3645 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3646 prstatus.pr_lwp.pr_info instead of making it up.
3647
3648 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3649
3650 * auto-load.c (auto_load_expand_dir_vars): Update.
3651 * defs.h (gdb_datadir): Change to std::string.
3652 (python_libdir): Likewise.
3653 (relocate_gdb_directory): Change return type to std::string.
3654 * guile/guile.c (gdbscm_data_directory): Update.
3655 (initialize_scheme_side): Update.
3656 * jit.c (jit_reader_dir): Change to std::string.
3657 (jit_reader_load_command): Update.
3658 * main.c (gdb_datadir): Change to std::string.
3659 (python_libdir): Likewise.
3660 (set_gdb_data_directory): Update.
3661 (relocate_path): Change to return std::string.
3662 (relocate_gdb_directory): Change to return std::string.
3663 (relocate_gdbinit_path_maybe_in_datadir): Update.
3664 (captured_main_1): Update.
3665 * python/python.c (do_start_initialization): Update.
3666 * top.c (show_gdb_datadir): Update.
3667 * xml-syscall.c (xml_init_syscalls_info): Update.
3668 (init_syscalls_info): Update.
3669
3670 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3671
3672 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3673 out of get_init_files.
3674 (get_init_files): Update.
3675
3676 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3677
3678 * main.c (get_init_files): Change to use std::string.
3679 (captured_main_1): Update.
3680 (print_gdb_help): Update.
3681
3682 2019-09-11 Ali Tamur <tamur@google.com>
3683
3684 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3685 implementation.
3686
3687 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3688
3689 * dbxread.c (read_dbx_symtab): Update.
3690 * dwarf2read.c (load_partial_dies): Update.
3691 * mdebugread.c (parse_partial_symbols): Update.
3692 (handle_psymbol_enumerators): Update.
3693 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3694 * psymtab.c (add_psymbol_to_bcache): Likewise.
3695 (add_psymbol_to_list): Likewise.
3696 * symtab.c (symbol_set_names): Likewise.
3697 * symtab.h (symbol_set_names): Likewise.
3698 * xcoffread.c (scan_xcoff_symtab): Update.
3699
3700 2019-09-11 Tom Tromey <tom@tromey.com>
3701
3702 * symfile-mem.c (symbol_file_add_from_memory): Use
3703 bfd_set_filename.
3704 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3705 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3706
3707 2019-09-10 Tom Tromey <tromey@adacore.com>
3708
3709 * dwarf-index-write.c (write_psymbols): Extend error message.
3710 (debug_names::insert): Add Ada code.
3711 (debug_names::write_psymbols): Remove Ada check.
3712 (debug_names) <m_string_obstack>: New member.
3713 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3714 (gdb_index_symbol_name_matcher::matches): Remove.
3715 (mapped_index_base::find_name_components_bounds): Add "lang"
3716 parameter.
3717 (mapped_index_base::build_name_components): Also split names
3718 according to Ada syntax.
3719 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3720 type of "match_callback".
3721 (check_match, check_find_bounds_finds)
3722 (dw2_expand_symtabs_matching): Update.
3723 (dw2_debug_names_iterator): Add new constructor.
3724 (dw2_debug_names_map_matching_symbols): New function.
3725 (dw2_debug_names_expand_symtabs_matching): Update.
3726 (dwarf2_debug_names_functions): Use
3727 dw2_debug_names_map_matching_symbols.
3728
3729 2019-09-10 Tom Tromey <tromey@adacore.com>
3730
3731 * dwarf2read.c (dw2_get_file_names_reader): Add the
3732 CU's file name to the results.
3733
3734 2019-09-10 Tom Tromey <tromey@adacore.com>
3735
3736 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3737 map_matching_symbols. Update.
3738 * dwarf2read.c (dw2_map_matching_symbols): Update.
3739 * psymtab.c (match_partial_symbol): Change type; update.
3740 (psym_map_matching_symbols): Likewise.
3741 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3742 type; update.
3743 * symfile.h (struct quick_symbol_functions)
3744 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3745 Remove "match".
3746
3747 2019-09-10 Tom Tromey <tromey@adacore.com>
3748
3749 * psymtab.c (map_block): Remove.
3750 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3751 * symtab.c (iterate_over_symbols_terminated): New function.
3752 * symtab.c (iterate_over_symbols_terminated): Declare.
3753
3754 2019-09-10 Tom Tromey <tromey@adacore.com>
3755
3756 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3757 * language.h (struct language_defn) <la_iterate_over_symbols>:
3758 Return bool.
3759 * symtab.c (iterate_over_symbols): Return bool.
3760 * symtab.h (iterate_over_symbols): Return bool.
3761
3762 2019-09-10 Tom Tromey <tromey@adacore.com>
3763
3764 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3765 (add_nonlocal_symbols): Update.
3766 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3767 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3768 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3769 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3770 Change type of "callback". Remove "data".
3771
3772
3773 2019-09-09 Ali Tamur <tamur@google.com>
3774
3775 * dwarf2read.c (comp_unit_head): Update comment.
3776 (dwarf2_dwo_name): New function declaration.
3777 (dwarf_unit_type_name): New function declaration.
3778 (read_comp_unit_head): Add support for new compilation units,
3779 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3780 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3781 (currently named as "signature") in their header. Also clarify error
3782 messages.
3783 (lookup_dwo_id): New function. Returns the dwo id of the given
3784 compile unit.
3785 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3786 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3787 functions.
3788 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3789 (dwarf2_dwo_name): Get the dwo name if present.
3790 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3791 purposes.
3792
3793 2019-09-09 Tom Tromey <tom@tromey.com>
3794
3795 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3796
3797 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798
3799 * python/python.c (do_start_initialization): Make progname_copy static,
3800 to avoid a leak report.
3801
3802 2019-09-08 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3805
3806 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3809 Change type to gdb::optional<block_enum>.
3810 (dw2_symtab_iter_init): Change block_index parameter type
3811 to gdb::optional<block_enum>.
3812 (dw2_lookup_symbol): Change block_index parameter
3813 type to block_enum.c
3814 (dw2_debug_names_lookup_symbol): Likewise.
3815 * psymtab.c (psym_lookup_symbol): Likewise.
3816 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3817 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3818 Likewise.
3819
3820 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3821
3822 * defs.h (relocate_gdb_directory): Change int to bool in
3823 signature and rename flag to relocatable.
3824 * main.c (relocate_path): Likewise.
3825 (relocate_gdb_directory): Likewise.
3826
3827 2019-09-06 Alan Modra <amodra@gmail.com>
3828
3829 * coffread.c (coff_symfile_read): Constify filename variable.
3830 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3831 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3832 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3833 * solib.c (reload_shared_libraries_1): Likewise.
3834 * symfile.c (reread_symbols): Likewise.
3835 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3836 * solib-darwin.c (darwin_bfd_open): Likewise.
3837 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3838
3839 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3840
3841 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3842 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3843
3844 2019-09-03 Tom Tromey <tromey@adacore.com>
3845
3846 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3847 types.
3848 (has_negatives): Unbias a range type bound.
3849 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3850 * gdbtypes.c (operator==): Handle new field.
3851 (create_range_type): Add "bias" parameter.
3852 (create_static_range_type, resolve_dynamic_range): Update.
3853 * gdbtypes.h (struct range_bounds) <bias>: New member.
3854 (create_range_type): Add bias parameter.
3855 * printcmd.c (print_scalar_formatted): Unbias range types.
3856 * value.c (unpack_long): Unbias range types.
3857 (pack_long): Bias range types.
3858
3859 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3860
3861 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3862 probe arguments.
3863
3864 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3865
3866 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3867 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3868 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3869 (compile_probe_arg): Likewise.
3870 * probe.h (get_argument_count): Likewise.
3871 * solib-svr4.c (solib_event_probe_action): Likewise.
3872 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3873
3874 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3875
3876 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3877 code to here...
3878 (svr4_create_solib_event_breakpoints): ...from here.
3879
3880 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3881
3882 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3883 suffix from warning message.
3884
3885 2019-08-30 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-winsource.h (struct tui_source_window_base)
3888 <refresh_all>: Don't declare.
3889 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3890 Remove.
3891 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3892 tui_show_locator_content.
3893 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3894 declare.
3895 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3896 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3897 declare.
3898
3899 2019-08-30 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3902
3903 2019-08-30 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3906 Remove unnecessary forward declarations.
3907
3908 2019-08-30 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3911 rerender.
3912 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3913 tui_show_locator_content.
3914
3915 2019-08-30 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3918 (tui_locator_window::rerender): Rewrite using body of previous
3919 tui_show_locator_content.
3920
3921 2019-08-30 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3924 set_locator_fullname>: New methods.
3925 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3926 Rename from tui_set_locator_fullname.
3927 (tui_locator_window::set_locator_info): Rename from
3928 tui_set_locator_info. Return bool.
3929 (tui_update_locator_fullname, tui_show_frame_info): Update.
3930
3931 2019-08-30 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3934
3935 2019-08-30 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3938 call touchwin.
3939
3940 2019-08-30 Tom Tromey <tom@tromey.com>
3941
3942 * tui/tui-wingeneral.c (box_win): Assume win_info and
3943 win_info->handle cannot be NULL.
3944
3945 2019-08-30 Tom Tromey <tom@tromey.com>
3946
3947 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3948 refresh_window>: Declare.
3949 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3950 resize.
3951 (tui_data_item_window::rerender): Rename from
3952 tui_display_register.
3953 (tui_data_item_window::refresh_window): New method.
3954 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3955 no-op.
3956
3957 2019-08-30 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3960 regs_column_count, current_group>: Move later. Now private.
3961 <get_current_group>: New method.
3962 * tui/tui-regs.c (tui_reg_command): Update.
3963 * tui/tui-layout.c (tui_set_layout): Update.
3964
3965 2019-08-30 Tom Tromey <tom@tromey.com>
3966
3967 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3968 (tui_data_window::rerender): Don't call
3969 check_and_display_highlight_if_needed.
3970 (tui_data_window::refresh_all): Remove call to
3971 erase_data_content.
3972
3973 2019-08-30 Tom Tromey <tom@tromey.com>
3974
3975 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3976 (tui_data_window::display_registers_from)
3977 (tui_data_window::display_reg_element_at_line)
3978 (tui_data_window::display_registers_from_line): Remove checks of
3979 "empty".
3980
3981 2019-08-30 Tom Tromey <tom@tromey.com>
3982
3983 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3984 Don't declare.
3985 * tui/tui-regs.c (tui_data_window::show_registers): Call
3986 rerender.
3987 (tui_data_window::rerender): Rename from display_all_data.
3988 (tui_data_window::rerender): Remove old implementation.
3989
3990 2019-08-30 Tom Tromey <tom@tromey.com>
3991
3992 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3993 text.
3994 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3995
3996 2019-08-29 Bernhard Wodok <barto@gmx.net>
3997 Sergio Durigan Junior <sergiodj@redhat.com>
3998
3999 PR win32/24284
4000 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4001
4002 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4003
4004 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4005 when searching for types.
4006
4007 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4008
4009 * f-lang.c (f_language_defn): Use f_print_typedef.
4010 * f-lang.h (f_print_typedef): Declare.
4011 * f-typeprint.c (f_print_typedef): Define.
4012
4013 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4014
4015 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4016
4017 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * cli/cli-utils.c (info_print_options_defs): Delete.
4020 (make_info_print_options_def_group): Delete.
4021 (extract_info_print_options): Delete.
4022 (info_print_command_completer): Delete.
4023 (info_print_args_help): Add extra parameter, and optionally
4024 include text about -n flag.
4025 * cli/cli-utils.h (struct info_print_options): Delete.
4026 (extract_info_print_options): Delete declaration.
4027 (info_print_command_completer): Delete declaration.
4028 (info_print_args_help): Add extra parameter, extend header
4029 comment.
4030 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4031 search_symbols.
4032 * stack.c (struct info_print_options): New type.
4033 (info_print_options_defs): New file scoped variable.
4034 (make_info_print_options_def_group): New static function.
4035 (info_print_command_completer): New static function.
4036 (info_locals_command): Update to use new local functions.
4037 (info_args_command): Likewise.
4038 (_initialize_stack): Add extra parameter to calls to
4039 info_print_args_help.
4040 * symtab.c (search_symbols): Add extra parameter, use this to
4041 possibly excluse non-debug symbols.
4042 (symtab_symbol_info): Add extra parameter, which is passed on to
4043 search_symbols.
4044 (struct info_print_options): New type.
4045 (info_print_options_defs): New file scoped variable.
4046 (make_info_print_options_def_group): New static function.
4047 (info_print_command_completer): New static function.
4048 (info_variables_command): Update to use local functions, and pass
4049 extra parameter through to symtab_symbol_info.
4050 (info_functions_command): Likewise.
4051 (info_types_command): Pass additional argument through to
4052 symtab_symbol_info.
4053 (rbreak_command): Pass extra argument to search_symbols.
4054 (_initialize_symtab): Add extra arguments for calls to
4055 info_print_args_help, and update help text for 'info variables',
4056 'whereis', and 'info functions' commands.
4057 * symtab.h (search_symbols): Add extra argument to declaration.
4058 * NEWS: Mention new flags.
4059
4060 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4061
4062 * symtab.c (lookup_static_symbol): Call the new function (and move
4063 it down to be next to lookup_global_symbol).
4064 (struct global_sym_lookup_data): Add block_enum member and rename to...
4065 (struct global_or_static_sym_lookup_data): ...this.
4066 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4067 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4068 (lookup_symbol_global_or_static_iterator_cb): ...this.
4069 (lookup_global_or_static_symbol): New function.
4070 (lookup_global_symbol): Call new function.
4071
4072 2019-08-26 Tom de Vries <tdevries@suse.de>
4073
4074 PR c++/24852
4075 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4076 when pc_probe.prob == NULL.
4077
4078 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4081 variable symbol_linkage to symbol_linkage_.
4082
4083 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4086 represent whether the symbol is static, dynamic, or we don't
4087 know.
4088
4089 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4090
4091 * gdb/rx-tdep.c (rx_register_names): New.
4092 (rx_register_name): Delete.
4093 (rx_psw_type): Delete.
4094 (rx_fpsw_type): Delete.
4095 (rx_register_type): Delete.
4096 (rx_gdbarch_init): Convert target-descriptions.
4097 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4098 * gdb/features/Makefile: Add rx.xml.
4099 * gdb/features/rx.xml: New.
4100 * gdb/features/rx.c: Generated.
4101 * gdb/NEWS: Mention target description support.
4102
4103 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4104
4105 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4106 *slot_ptr.
4107
4108 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4109
4110 * configure.ac: Don't check for 'dlfcn.h' (moved to
4111 gdbsupport/common.m4).
4112 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4113 'gdbsupport/'.
4114 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4115 * compile/compile-c-support.c: Include
4116 'gdbsupport/gdb-dlfcn.h'.
4117 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4118 * gdb-dlfcn.c: Move to...
4119 * gdbsupport/gdb-dlfcn.c: ... here.
4120 * gdb-dlfcn.h: Move to...
4121 * gdbsupport/gdb-dlfcn.h: ... here.
4122
4123 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4124
4125 * nios2-tdep.c (struct reg_value): Improve comments. Make
4126 the offset field signed.
4127
4128 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4129
4130 * python/lib/gdb/__init__.py (_execute_file): New function.
4131 * python/python.c (python_run_simple_file): Call gdb._execute_file
4132 on Windows.
4133
4134 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4137 all uses as this was never set to anything but a zero value.
4138
4139 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4140
4141 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4142
4143 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4144
4145 * tui/tui-data.h (tui_gen_win_info): Add an =default
4146 move constructor, required by some GCC versions.
4147
4148 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4149
4150 * go32-nat.c (go32_sysinfo): Add hygon_p.
4151
4152 2019-08-20 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4155 line_from_reg_element_no, first_reg_element_no_inline,
4156 display_all_data, delete_data_content_windows,
4157 erase_data_content>: Now private.
4158
4159 2019-08-20 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4162 (tui_unhighlight_win, tui_highlight_win)
4163 (tui_win_info::make_window): Update.
4164 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4165
4166 2019-08-20 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4169 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4170 (MAX_PID_WIDTH): Move to tui-stack.c.
4171 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4172 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4173 (MAX_PID_WIDTH): Move from tui-data.h.
4174
4175 2019-08-20 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4178 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4179 (box_win): Update.
4180 (tui_gen_win_info::make_window): Rename from tui_make_window.
4181 (tui_win_info::make_window): New method.
4182 (tui_gen_win_info::make_visible): Update.
4183 * tui/tui-source.c (tui_source_window::set_contents): Update.
4184 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4185 (tui_data_window::display_registers_from): Update.
4186 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4187 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4188 Declare.
4189 <can_box>: Remove.
4190 <title>: Remove.
4191 (struct tui_win_info) <make_window>: Declare.
4192 <can_box>: Now virtual.
4193 <title>: New member.
4194 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4195 * tui/tui-command.c (tui_cmd_window::resize): Update.
4196
4197 2019-08-20 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4200 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4201 (tui_data_window::check_register_values): Update.
4202
4203 2019-08-20 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-regs.h (struct tui_data_window): Use
4206 DISABLE_COPY_AND_ASSIGN.
4207 <regs_content>: Change type, removing unique_ptr.
4208 <tui_data_window>: Add move constructor.
4209 * tui/tui-regs.c (tui_data_window::show_registers)
4210 (tui_data_window::show_register_group)
4211 (tui_data_window::display_registers_from)
4212 (tui_data_window::display_registers_from)
4213 (tui_data_window::first_data_item_displayed)
4214 (tui_data_window::delete_data_content_windows)
4215 (tui_data_window::rerender, tui_data_window::refresh_window)
4216 (tui_data_window::check_register_values): Update.
4217
4218 2019-08-20 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4221 show_register_group>: Declare.
4222 (tui_show_register_group): Don't declare.
4223 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4224 tui_show_registers.
4225 (tui_data_window::show_register_group): Rename from
4226 tui_show_register_group.
4227 (tui_data_window::check_register_values, tui_reg_command):
4228 Update.
4229 * tui/tui-layout.c (tui_set_layout): Update.
4230
4231 2019-08-20 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4234 Declare.
4235 (tui_check_register_values): Don't declare.
4236 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4237 from tui_check_register_values.
4238 * tui/tui-hooks.c (tui_register_changed): Update.
4239
4240 2019-08-20 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-regs.c (tui_reg_layout): Move later.
4243 (tui_show_registers): Don't enable TUI mode or change layout.
4244
4245 2019-08-20 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-regs.h (struct tui_data_item_window)
4248 <~tui_data_item_window>: Remove.
4249 <content>: Now a unique_xmalloc_ptr.
4250 * tui/tui-regs.c (tui_register_format): Return a
4251 unique_xmalloc_ptr.
4252 (tui_get_register): Update.
4253 (~tui_data_item_window): Remove.
4254 (tui_data_window::display_registers_from, tui_display_register):
4255 Update.
4256 * tui/tui-io.h (tui_expand_tabs): Update.
4257 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4258 Remove "col" parameter.
4259
4260 2019-08-20 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4263 field.
4264 * tui/tui-regs.c (~tui_data_item_window): Update.
4265
4266 2019-08-20 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4269 earlier.
4270
4271 2019-08-20 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4274
4275 2019-08-20 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-source.h (struct tui_source_window): Update.
4278 * tui/tui-regs.c (tui_show_registers): Update.
4279 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4280 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4281 (NO_REGS_STRING): Remove defines.
4282
4283 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4284
4285 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4286 unnecessary thread walk if remote doesn't support the packet.
4287
4288 2019-08-19 Tom Tromey <tromey@adacore.com>
4289
4290 * python/py-value.c (value_has_field): Fix indentation.
4291
4292 2019-08-19 Tom Tromey <tromey@adacore.com>
4293
4294 * printcmd.c (do_one_display, info_display_command): Update.
4295 * block.h (contained_in): Return bool. Add allow_nested
4296 parameter.
4297 * block.c (contained_in): Return bool. Add allow_nested
4298 parameter.
4299
4300 2019-08-19 Tom Tromey <tom@tromey.com>
4301
4302 * configure: Rebuild.
4303 * configure.ac: Disallow the combination of -static-libstdc++ and
4304 source highlight.
4305 * source-cache.c (get_language_name): Handle rust.
4306 (source_cache::get_source_lines): Ignore highlighting exceptions.
4307
4308 2019-08-16 Tom Tromey <tom@tromey.com>
4309
4310 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4311 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4312 (struct tui_source_window_base) <make_visible, refresh_window,
4313 resize>: Remove methods.
4314 <execution_info>: Remove field.
4315 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4316 (tui_show_source_line, tui_source_window_base)
4317 (~tui_source_window_base): Update.
4318 (tui_source_window_base::resize)
4319 (tui_source_window_base::make_visible)
4320 (tui_source_window_base::refresh_window): Remove.
4321 (tui_source_window_base::update_exec_info): Update.
4322 * tui/tui-source.c (tui_source_window::set_contents): Update.
4323 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4324
4325 2019-08-16 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4328 deprecated_query_hook.
4329
4330 2019-08-16 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4333 (tui_update_source_windows_with_line): Update.
4334 * tui/tui-source.h (struct tui_source_window)
4335 <show_symtab_source>: Declare.
4336 (tui_show_symtab_source): Don't declare.
4337 * tui/tui-source.c (tui_show_symtab_source): Rename from
4338 tui_show_symtab_source.
4339
4340 2019-08-16 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-winsource.h (struct tui_source_window_base)
4343 <set_contents>: Declare.
4344 * tui/tui-winsource.c
4345 (tui_source_window_base::update_source_window_as_is): Update.
4346 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4347 Declare.
4348 (tui_set_source_content): Don't declare.
4349 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4350 tui_set_source_content.
4351 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4352 Declare.
4353 (tui_set_disassem_content): Don't declare.
4354 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4355 tui_set_disassem_content.
4356
4357 2019-08-16 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-winsource.h (struct tui_source_window_base)
4360 <update_breakpoint_info>: Declare.
4361 (tui_update_breakpoint_info): Don't declare.
4362 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4363 (tui_update_all_breakpoint_info): Update.
4364 (tui_source_window_base::update_breakpoint_info): Rename from
4365 tui_update_breakpoint_info.
4366 (tui_source_window_base::update_exec_info): 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>: Declare.
4372 (tui_update_source_window): Don't declare.
4373 * tui/tui-winsource.c
4374 (tui_source_window_base::update_source_window): Rename from
4375 tui_update_source_window.
4376 (tui_source_window_base::rerender): Update.
4377 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4378 * tui/tui-disasm.c (tui_show_disassem)
4379 (tui_show_disassem_and_update_source)
4380 (tui_disasm_window::maybe_update): Update.
4381
4382 2019-08-16 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-winsource.h (struct tui_source_window_base)
4385 <update_source_window_as_is>: Declare.
4386 (tui_update_source_window_as_is): Don't declare.
4387 * tui/tui-winsource.c (tui_update_source_window): Update
4388 (tui_source_window_base::update_source_window_as_is): Rename from
4389 tui_update_source_window_as_is.
4390 (tui_source_window_base::refill): Update.
4391 * tui/tui-source.c (tui_show_symtab_source): Update.
4392 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4393 Update.
4394
4395 2019-08-16 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-winsource.h (tui_update_source_window)
4398 (tui_update_source_window_as_is): Remove "noerror" parameter.
4399 * tui/tui-winsource.c (tui_update_source_window)
4400 (tui_update_source_window_as_is): Remove "noerror" parameter.
4401 (tui_update_source_windows_with_addr)
4402 (tui_update_source_windows_with_line)
4403 (tui_source_window_base::rerender)
4404 (tui_source_window_base::refill): Update.
4405 * tui/tui-source.h (tui_set_source_content)
4406 (tui_show_symtab_source): Remove "noerror" parameter.
4407 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4408 parameter.
4409 (tui_show_symtab_source): Likewise.
4410 (tui_source_window::maybe_update): Update.
4411 * tui/tui-disasm.c (tui_show_disassem)
4412 (tui_show_disassem_and_update_source)
4413 (tui_disasm_window::do_scroll_vertical)
4414 (tui_disasm_window::maybe_update): Update.
4415
4416 2019-08-16 Tom Tromey <tom@tromey.com>
4417
4418 * tui/tui.c (tui_is_window_visible): Update.
4419 * tui/tui-wingeneral.c (tui_make_window)
4420 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4421 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4422 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4423 (tui_set_win_height_command, parse_scrolling_args): Update.
4424 * tui/tui-source.c (tui_source_window::style_changed): Update.
4425 * tui/tui-regs.c (tui_show_registers)
4426 (tui_data_window::first_data_item_displayed)
4427 (tui_data_window::delete_data_content_windows)
4428 (tui_check_register_values, tui_reg_command): Update.
4429 * tui/tui-disasm.c (tui_show_disassem): Update.
4430 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4431 method.
4432 <is_visible>: Remove field.
4433 * tui/tui-data.c (tui_next_win, tui_prev_win)
4434 (tui_delete_invisible_windows): Update.
4435
4436 2019-08-16 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-winsource.h (struct tui_source_window_base)
4439 <m_has_locator>: Remove.
4440 * tui/tui-layout.c (show_source_disasm_command, show_data)
4441 (show_source_or_disasm_and_command): Update.
4442
4443 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4444
4445 * NEWS (Other MI changes): New subsection.
4446 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4447 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4448 * arch-utils.c (default_get_pc_address_flags): New function.
4449 * arch-utils.h (default_get_pc_address_flags): New declaration.
4450 * gdbarch.sh: Add get_pc_address_flags.
4451 * gdbarch.c: Regenerate.
4452 * gdbarch.h: Likewise.
4453 * stack.c (print_pc): New function.
4454 (print_frame_info) (print_frame): Call print_pc.
4455
4456 2019-08-16 Tom de Vries <tdevries@suse.de>
4457
4458 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4459 print_objfile_section_info.
4460
4461 2019-08-15 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4464 calling update_cmdwin_start_line.
4465 * tui/tui-winsource.h (struct tui_source_window_base)
4466 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4467 <rerender>: Declare.
4468 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4469 Call rerender.
4470 (tui_source_window_base::set_new_height): Remove.
4471 (tui_source_window_base::rerender): Rename from
4472 do_make_visible_with_new_height.
4473 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4474 resize method.
4475 (tui_win_info::make_invisible_and_set_new_height)
4476 (tui_win_info::make_visible_with_new_height): Remove.
4477 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4478 Declare.
4479 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4480 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4481 do_make_visible_with_new_height>: Don't declare.
4482 <rerender>: Declare.
4483 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4484 set_new_height.
4485 (tui_data_window::do_make_visible_with_new_height): Remove.
4486 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4487 call tui_show_locator_content.
4488 (tui_gen_win_info::resize): Call rerender.
4489 (show_source_or_disasm_and_command): Don't call
4490 tui_show_locator_content.
4491 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4492 method.
4493 (struct tui_win_info) <rerender>: Declare.
4494 <set_new_height, make_invisible_and_set_new_height,
4495 make_visible_with_new_height>: Don't declare.
4496 * tui/tui-data.c (tui_win_list::rerender): New method.
4497 * tui/tui-command.h (struct tui_cmd_window)
4498 <do_make_visible_with_new_height>: Don't declare.
4499 * tui/tui-command.c
4500 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4501
4502 2019-08-15 Tom Tromey <tromey@adacore.com>
4503
4504 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4505 * ada-lang.c (ada_enum_name): Likewise.
4506
4507 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4508
4509 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4510 leading underscore.
4511 (GdbOutputErrorFile): Likewise.
4512 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4513 accordingly.
4514 (execute_unwinders): Rename to have a leading underscore.
4515 (auto_load_packages): Likewise.
4516 (global scope): Adjust call to auto_load_packages accordingly.
4517 (GdbSetPythonDirectory): Likewise.
4518 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4519 instead of execute_unwinders.
4520
4521 2019-08-15 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4524 (show_data): Don't change window visibility.
4525 (tui_gen_win_info::resize): Remove special case for command
4526 window. Use wresize, when available.
4527 (show_source_or_disasm_and_command): Don't change window
4528 visibility.
4529 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4530 <make_visible>: New method.
4531 * tui/tui-command.c (tui_cmd_window::resize): New method.
4532
4533 2019-08-15 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4536 (struct tui_source_windows): New.
4537 * tui/tui-winsource.c (tui_display_main): Update.
4538 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4539 (new_height_ok, parse_scrolling_args): Update.
4540 * tui/tui-layout.c (show_layout, show_data): Update.
4541 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4542 (tui_add_to_source_windows): Don't declare.
4543 * tui/tui-data.c (source_windows, tui_source_windows)
4544 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4545
4546 2019-08-15 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4549 Rename from reset.
4550 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4551 * tui/tui-layout.c (show_source_disasm_command, show_data):
4552 Update.
4553 (tui_gen_win_info::resize): Rename.
4554 (show_source_or_disasm_and_command): Update.
4555 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4556 reset.
4557
4558 2019-08-15 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4561 * tui/tui-interp.c (tui_interp::init): Don't call
4562 tui_initialize_static_data.
4563 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4564
4565 2019-08-15 Tom Tromey <tom@tromey.com>
4566
4567 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4568 examine tui_win_list.
4569
4570 2019-08-15 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4573 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4574 tui_clear_source_content.
4575 (tui_clear_source_content): Remove.
4576 (tui_source_window_base::do_erase_source_content): Hoist call to
4577 content.clear().
4578 * tui/tui-stack.c (tui_show_frame_info): Don't call
4579 tui_clear_source_content.
4580
4581 2019-08-15 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-winsource.h (struct tui_source_window_base)
4584 <do_erase_source_content>: New method.
4585 <erase_source_content>: New method.
4586 (tui_erase_source_content): Don't declare.
4587 * tui/tui-winsource.c (tui_clear_source_content): Update.
4588 (tui_source_window_base::do_erase_source_content): Rename from
4589 tui_erase_source_content.
4590 (tui_source_window_base::show_source_content): Update.
4591 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4592 * tui/tui-source.h (struct tui_source_window)
4593 <erase_source_content>: New method.
4594 * tui/tui-disasm.h (struct tui_disasm_window)
4595 <erase_source_content>: New method.
4596
4597 2019-08-15 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4600 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4601 constructor.
4602 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4603 * tui/tui-source.c (tui_set_source_content): Update.
4604 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4605
4606 2019-08-15 Tom Tromey <tom@tromey.com>
4607
4608 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4609 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4610 tui-source.c.
4611 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4612 Declare.
4613 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4614 method.
4615 (tui_source_window::maybe_update): Update.
4616
4617 2019-08-15 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4620 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4621 tui-disasm.c.
4622 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4623 Declare.
4624 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4625 method.
4626 (tui_disasm_window::maybe_update): Update.
4627
4628 2019-08-15 Tom Tromey <tom@tromey.com>
4629
4630 * tui/tui-winsource.h (struct tui_source_window_base)
4631 <maybe_update>: Declare.
4632 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4633 method.
4634 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4635 Declare.
4636 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4637 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4638 Declare.
4639 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4640
4641 2019-08-15 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4644
4645 2019-08-15 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-wingeneral.c: Include tui-stack.h.
4648 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4649 (struct tui_locator_window): Move from tui-data.h.
4650 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4651 (tui_initialize_static_data): Move from tui-data.c.
4652 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4653 (struct tui_locator_window): Move to tui-stack.c.
4654 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4655 (tui_initialize_static_data): Move to tui-stack.c.
4656
4657 2019-08-15 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-layout.c (show_source_disasm_command)
4660 (show_source_or_disasm_and_command): Use make_visible method, not
4661 tui_make_window.
4662 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4663 Remove.
4664
4665 2019-08-15 Tom Tromey <tom@tromey.com>
4666
4667 * tui/tui-wingeneral.h (tui_make_window): Update.
4668 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4669 parameter.
4670 (tui_gen_win_info::make_visible): Update.
4671 * tui/tui-regs.c (tui_data_window::display_registers_from):
4672 Update.
4673 * tui/tui-layout.c (show_source_disasm_command)
4674 (show_source_or_disasm_and_command): Update.
4675 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4676 (enum tui_box): Remove.
4677 (struct tui_win_info) <can_box>: New method.
4678 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4679 method.
4680
4681 2019-08-15 Tom de Vries <tdevries@suse.de>
4682
4683 * linux-nat-trad.c: Include gdbarch.h.
4684
4685 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4686
4687 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4688 register sizes.
4689
4690 2019-08-14 Tom Tromey <tromey@adacore.com>
4691
4692 * darwin-nat.c: Include gdbarch.h.
4693 * darwin-nat-info.c: Include gdbarch.h.
4694
4695 2019-08-13 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4698 Remove.
4699 * tui/tui-data.c (tui_initialize_static_data): Update.
4700
4701 2019-08-13 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-winsource.h (struct tui_exec_info_window)
4704 <~tui_exec_info_window, maybe_allocate_content, get_content,
4705 m_content>: Remove.
4706 (struct tui_source_window_base) <set_exec_info_content,
4707 show_exec_info_content>: Don't declare.
4708 * tui/tui-winsource.c
4709 (tui_exec_info_window::maybe_allocate_content): Remove.
4710 (tui_source_window_base::update_exec_info): Rename from
4711 set_exec_info_content.
4712 (tui_source_window_base::show_exec_info_content)
4713 (tui_source_window_base::update_exec_info): Remove.
4714
4715 2019-08-13 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4718 declare.
4719 * tui/tui-winsource.c (tui_update_source_window_as_is)
4720 (tui_update_source_windows_with_addr, tui_erase_source_content):
4721 Update.
4722 (tui_clear_exec_info_content): Remove.
4723
4724 2019-08-13 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4727 declare.
4728 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4729 call tui_erase_exec_info_content.
4730 (tui_clear_exec_info_content): Rename from
4731 tui_erase_exec_info_content.
4732 (tui_clear_exec_info_content): Delete.
4733
4734 2019-08-13 Tom Tromey <tom@tromey.com>
4735
4736 * tui/tui-winsource.h (struct tui_source_window_base)
4737 <show_exec_info_content>: Declare.
4738 (tui_show_exec_info_content): Don't declare.
4739 * tui/tui-winsource.c
4740 (tui_source_window_base::show_exec_info_content): Rename from
4741 tui_show_exec_info_content.
4742 (tui_source_window_base::update_exec_info): Update.
4743
4744 2019-08-13 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4747 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4748 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4749 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4750 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4751 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4752 ... here.
4753
4754 2019-08-13 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-winsource.h (struct tui_source_window_base)
4757 <update_exec_info>: Declare.
4758 (tui_update_exec_info): Don't declare.
4759 * tui/tui-winsource.c (tui_update_source_window_as_is)
4760 (tui_source_window_base::refresh_all)
4761 (tui_update_all_breakpoint_info): Update.
4762 (tui_source_window_base::update_exec_info): Rename from
4763 tui_update_exec_info.
4764 * tui/tui-stack.c (tui_show_frame_info): Update.
4765
4766 2019-08-13 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-winsource.h (struct tui_source_window_base)
4769 <set_exec_info_content>: Declare.
4770 (tui_set_exec_info_content): Don't declare.
4771 * tui/tui-winsource.c
4772 (tui_source_window_base::set_exec_info_content): Rename from
4773 tui_set_exec_info_content.
4774 (tui_update_exec_info): Update.
4775
4776 2019-08-13 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-winsource.h (struct tui_source_window_base)
4779 <show_source_content>: Declare.
4780 (tui_show_source_content): Don't declare.
4781 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4782 (tui_source_window_base::show_source_content): Rename from
4783 tui_show_source_content.
4784 (tui_source_window_base::refresh_all): Update.
4785 * tui/tui-layout.c (show_source_disasm_command)
4786 (show_source_or_disasm_and_command): Update.
4787
4788 2019-08-13 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-winsource.c (tui_erase_source_content)
4791 (tui_show_source_content, tui_source_window_base::refresh_all):
4792 Update.
4793 * tui/tui-wingeneral.h
4794 (tui_check_and_display_highlight_if_needed): Don't declare.
4795 * tui/tui-wingeneral.c
4796 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4797 check_and_display_highlight_if_needed.
4798 * tui/tui-win.c (tui_rehighlight_all)
4799 (tui_win_info::make_visible_with_new_height): Update.
4800 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4801 (tui_data_window::erase_data_content)
4802 (tui_data_window::display_all_data): Update.
4803 * tui/tui-data.h (struct tui_win_info)
4804 <check_and_display_highlight_if_needed>: Declare.
4805
4806 2019-08-13 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-win.c (tui_resize_all): Call
4809 tui_delete_invisible_windows.
4810 * tui/tui-layout.c (show_layout): Call
4811 tui_delete_invisible_windows.
4812 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4813 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4814
4815 2019-08-13 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4818 tui_add_win_to_layout.
4819
4820 2019-08-13 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4823 * tui/tui-layout.c (tui_default_win_height): Now static.
4824
4825 2019-08-13 Tom Tromey <tom@tromey.com>
4826
4827 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4828 single switch.
4829 (show_source_disasm_command, show_source_or_disasm_and_command):
4830 Don't check current layout.
4831
4832 2019-08-13 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-wingeneral.c (make_all_visible): Remove.
4835 (tui_make_all_invisible): Simplify.
4836 * tui/tui-layout.c (tui_make_all_invisible): Move from
4837 tui-wingeneral.c; simplify.
4838 (show_layout): Hoist call to tui_make_all_invisible.
4839 (show_data): Don't call tui_make_all_invisible.
4840
4841 2019-08-13 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4844 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4845
4846 2019-08-13 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4849 tui-data.c.
4850 (show_source_disasm_command, show_data)
4851 (show_source_or_disasm_and_command): Don't use
4852 tui_set_current_layout_to.
4853 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4854 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4855 tui-layout.c.
4856 (tui_set_current_layout_to): Remove.
4857
4858 2019-08-13 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-layout.c (tui_set_layout): Update.
4861 * tui/tui-data.h (struct tui_layout_def): Remove.
4862 (tui_layout_def): Don't declare.
4863 * tui/tui-data.c (layout_def): Remove.
4864 (tui_layout_def): Remove.
4865
4866 2019-08-13 Tom Tromey <tom@tromey.com>
4867
4868 * tui/tui-winsource.h (struct tui_source_window_base)
4869 <clear_detail>: No longer "override".
4870 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4871 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4872 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4873 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4874 Remove.
4875 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4876
4877 2019-08-13 Tom Tromey <tromey@adacore.com>
4878
4879 * tracepoint.c: Don't include readline.h or history.h.
4880
4881 2019-08-12 Tom Tromey <tom@tromey.com>
4882
4883 * configure: Rebuild.
4884 * configure.ac: Check for readline 7.
4885 * NEWS: Mention readline 7 requirement.
4886 * README: Update.
4887
4888 2019-08-12 Tom Tromey <tom@tromey.com>
4889
4890 * mingw-hdep.c (gdb_select): Remove readline hack.
4891
4892 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4893
4894 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4895 when the function fails.
4896
4897 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4898
4899 * s390-tdep.c (s390_type_align): New function.
4900 (s390_gdbarch_init): Set it as type_align gdbarch method.
4901
4902 2019-08-09 Tom de Vries <tdevries@suse.de>
4903
4904 PR gdb/24591
4905 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4906 pc_low with relocation offset.
4907
4908 2019-08-07 Tom Tromey <tromey@adacore.com>
4909
4910 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4911 (print_frame_args): Update.
4912 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4913 Update.
4914 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4915 * frame.h (struct frame_arg): Add initializers.
4916 <error>: Now a unique_xmalloc_ptr.
4917
4918 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4919
4920 * NEWS: Expand the Pointer Authentication entry.
4921 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4922 (aarch64_frame_unmask_lr): ... to this.
4923 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4924 Call aarch64_frame_unmask_lr.
4925 * frame.c (struct frame_info): Add "masked" variable.
4926 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4927 (fprint_frame): Check for masked pc.
4928 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4929 declarations.
4930 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4931 * stack.c (print_frame): Check for masked pc.
4932
4933 2019-08-06 Tom Tromey <tom@tromey.com>
4934
4935 * stabsread.c (patch_block_stabs, read_one_struct_field)
4936 (read_enum_type): Use obstack_strndup.
4937 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4938 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4939 * dwarf2read.c (guess_full_die_structure_name)
4940 (anonymous_struct_prefix): Use obstack_strndup.
4941 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4942 * c-exp.y (yylex): Use obstack_strndup.
4943 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4944 (write_var_or_type): Use obstack_strndup.
4945
4946 2019-08-06 Tom Tromey <tom@tromey.com>
4947
4948 * symfile.c (reread_symbols): Use obstack_strdup.
4949 * stabsread.c (read_type): Use obstack_strdup.
4950 * gdb_obstack.h (obstack_strdup): New overload.
4951 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4952 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4953 (dwarf2_canonicalize_name): Use obstack_strdup.
4954 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4955 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4956 Use obstack_strdup.
4957
4958 2019-08-06 Tom Tromey <tom@tromey.com>
4959
4960 * gdb_obstack.h (obstack_strdup): Define.
4961 * gdb_obstack.c (obstack_strdup): Don't define.
4962
4963 2019-08-06 Tom Tromey <tom@tromey.com>
4964
4965 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4966 obstack_strdup.
4967 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4968 obstack_strdup.
4969 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4970 * stabsread.c (common_block_start): Use obstack_strdup.
4971 * objfiles.c (set_objfile_main_name, objfile): Use
4972 obstack_strdup.
4973 * namespace.c (add_using_directive): Use obstack_strdup.
4974 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4975 * jit.c (finalize_symtab): Use obstack_strdup.
4976 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4977 (guess_partial_die_structure_name, partial_die_info::fixup)
4978 (dwarf2_name): Use obstack_strdup.
4979 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4980 obstack_strdup.
4981 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4982 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4983 obstack_strdup.
4984 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4985
4986 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4987
4988 * unittests/help-doc-selftests.c: New file.
4989 * Makefile.in: Add the new file.
4990
4991 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4994 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4995 the full first line, except when FOR_VALUE_PREFIX. In this case,
4996 the trailing '.' is not output, and the first character is uppercased.
4997 (print_help_for_command): Update call to print_doc_line.
4998 (print_doc_of_command): Likewise.
4999 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5000 * cli/cli-option.c (append_indented_doc): Do not append newline.
5001 (build_help_option): Append newline after first appended_indented_doc
5002 only if a second call is done.
5003 (build_help): Append 2 new lines before each option, except the first
5004 one.
5005 * compile/compile.c (_initialize_compile): Add new lines after
5006 %OPTIONS%, when not at the end of the help.
5007 Change help doc or code
5008 producing the help doc to respect the invariants.
5009 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5010 Also removed the new line after 'Options:', as all other commands
5011 do not put an empty line between 'Options:' and the first option.
5012 * printcmd.c (_initialize_printcmd): Likewise.
5013 * stack.c (_initialize_stack): Likewise.
5014 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5015 incorrectly telling COMMAND is optional.
5016 * ada-lang.c (_initialize_ada_language): Change help doc or code
5017 producing the help doc to respect the invariants.
5018 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5019 * breakpoint.c (_initialize_breakpoint): Likewise.
5020 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5021 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5022 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5023 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5024 _initialize_cli_style): Likewise.
5025 * corelow.c (core_target_info): Likewise.
5026 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5027 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5028 * filesystem.c (_initialize_filesystem): Likewise.
5029 * frame.c (_initialize_frame): Likewise.
5030 * gnu-nat.c (add_task_commands): Likewise.
5031 * infcall.c (_initialize_infcall): Likewise.
5032 * infcmd.c (_initialize_infcmd): Likewise.
5033 * interps.c (_initialize_interpreter): Likewise.
5034 * language.c (_initialize_language): Likewise.
5035 * linux-fork.c (_initialize_linux_fork): Likewise.
5036 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5037 * maint.c (_initialize_maint_cmds): Likewise.
5038 * memattr.c (_initialize_mem): Likewise.
5039 * printcmd.c (_initialize_printcmd): Likewise.
5040 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5041 _RegEx): Likewise.
5042 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5043 * record-btrace.c (_initialize_record_btrace): Likewise.
5044 * record-full.c (_initialize_record_full): Likewise.
5045 * record.c (_initialize_record): Likewise.
5046 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5047 * regcache.c (_initialize_regcache): Likewise.
5048 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5049 _initialize_remote): Likewise.
5050 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5051 * serial.c (_initialize_serial): Likewise.
5052 * skip.c (_initialize_step_skip): Likewise.
5053 * source.c (_initialize_source): Likewise.
5054 * stack.c (_initialize_stack): Likewise.
5055 * symfile.c (_initialize_symfile): Likewise.
5056 * symtab.c (_initialize_symtab): Likewise.
5057 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5058 * top.c (init_main): Likewise.
5059 * tracefile-tfile.c (tfile_target_info): Likewise.
5060 * tracepoint.c (_initialize_tracepoint): Likewise.
5061 * tui/tui-win.c (_initialize_tui_win): Likewise.
5062 * utils.c (add_internal_problem_command): Likewise.
5063 * valprint.c (value_print_option_defs): Likewise.
5064
5065 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5066
5067 PR build/24886
5068 * configure.ac: Drop enable-libmcheck support.
5069 * configure, config.in: Rebuild.
5070 * libmcheck.m4: Remove.
5071 * acinclude.m4: Don't include it.
5072 * Makefile.in: Don't distribute it.
5073 * top.c (print_gdb_configuration): Don't mention it.
5074
5075 2019-08-06 Tom Tromey <tom@tromey.com>
5076
5077 * utils.c (set_output_style): Sometimes pass stream to
5078 emit_style_escape.
5079 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5080 * record-btrace.c (btrace_insn_history): Update.
5081 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5082 method.
5083 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5084 Update initializers.
5085 <m_uiout>: New field.
5086 <m_di>: Move lower.
5087 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5088 Remove "uiout" parameter.
5089 (dump_insns): Update.
5090 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5091 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5092
5093 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5094
5095 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5096 (error_in_psymtab_expansion): Likewise.
5097 (lookup_symbol_via_quick_fns): Likewise.
5098 (basic_lookup_transparent_type_quick): Likewise.
5099 (basic_lookup_transparent_type_1): Likewise.
5100
5101 2019-08-06 Tom Tromey <tromey@adacore.com>
5102
5103 * source.c (last_source_error): Now bool.
5104 (print_source_lines_base): Make "noprint" bool. Only open
5105 source file when last_source_visited changes.
5106
5107 2019-08-06 Tom Tromey <tromey@adacore.com>
5108
5109 * annotate.c (annotate_source_line): Use g_source_cache.
5110 * source-cache.c (source_cache::get_plain_source_lines): Change
5111 parameters. Populate m_offset_cache.
5112 (source_cache::ensure): New method.
5113 (source_cache::get_line_charpos): New method.
5114 (extract_lines): Move lower. Change parameters.
5115 (source_cache::get_source_lines): Move lower.
5116 * source-cache.h (class source_cache): Update comment.
5117 <get_line_charpos>: New method.
5118 <get_source_lines>: Update comment.
5119 <clear>: Clear m_offset_cache.
5120 <get_plain_source_lines>: Change parameters.
5121 <ensure>: New method
5122 <m_offset_cache>: New member.
5123 * source.c (forget_cached_source_info_for_objfile): Update.
5124 (info_source_command): Use g_source_cache.
5125 (find_source_lines, open_source_file_with_line_charpos): Remove.
5126 (print_source_lines_base, search_command_helper): Use g_source_cache.
5127 * source.h (open_source_file_with_line_charpos): Don't declare.
5128 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5129 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5130 Use g_source_cache.
5131
5132 2019-08-06 Tom Tromey <tromey@adacore.com>
5133
5134 * source-cache.c (source_cache::get_plain_source_lines):
5135 Remove "first_line" and "last_line" parameters.
5136 (source_cache::get_source_lines): Cache plain text.
5137 * source-cache.h (class source_cache)
5138 <get_plain_source_lines>: Update.
5139
5140 2019-08-06 Tom Tromey <tromey@adacore.com>
5141
5142 * source-cache.c (extract_lines): No longer a method.
5143 Changed type of parameter. Include final newline.
5144 (selftests::extract_lines_test): New function.
5145 (_initialize_source_cache): Likewise.
5146 * source-cache.h (class source_cache)
5147 <extract_lines>: Don't declare.
5148
5149 2019-08-06 Tom Tromey <tromey@adacore.com>
5150
5151 * breakpoint.c (init_breakpoint_sal): Update.
5152 (breakpoint): Update.
5153 * breakpoint.h (struct breakpoint) <filter>: Now a
5154 unique_xmalloc_ptr.
5155
5156 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5157
5158 * NEWS: Mention dictionary access on blocks.
5159 * python/py-block.c (blpy_getitem): New function.
5160 (block_object_as_mapping): New struct.
5161 (block_object_type): Use new struct for tp_as_mapping field.
5162
5163 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5164
5165 * objfiles.h (objfile): Add a comment describing partial symbols.
5166
5167 2019-08-05 Tom Tromey <tromey@adacore.com>
5168
5169 * compile/compile.c (_initialize_compile): Use _(), not N_().
5170 * thread.c (_initialize_thread): Use _(), not N_().
5171 * stack.c (_initialize_stack): Use _(), not N_().
5172 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5173
5174 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5175
5176 * dwarf2read.c (struct dw2_symtab_iterator):
5177 <want_specific_block>: Remove.
5178 <block_index>: Change type to gdb::optional.
5179 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5180 change type of BLOCK_INDEX parameter to gdb::optional.
5181 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5182 (dw2_lookup_symbol): Don't pass argument for
5183 WANT_SPECIFIC_BLOCK.
5184 (dw2_expand_symtabs_for_function): Don't pass argument for
5185 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5186 (class dw2_debug_names_iterator)
5187 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5188 parameter, change BLOCK_INDEX type to gdb::optional.
5189 <m_want_specific_block>: Remove.
5190 <m_block_index>: Change type to gdb::optional.
5191 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5192 gdb::optional. Re-write in function of gdb::optional.
5193 (dw2_debug_names_lookup_symbol): Don't pass argument for
5194 WANT_SPECIFIC_BLOCK.
5195 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5196 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5197 BLOCK_INDEX.
5198
5199 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5200
5201 * NEWS: Mention changes to "info sources" command.
5202
5203 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5204
5205 * symtab.c (filename_partial_match_opts): New struct type.
5206 (struct output_source_filename_data): New members
5207 regexp, c_regexp, partial_match.
5208 (output_source_filename): Use new members to decide to print file.
5209 (info_sources_option_defs): New variable.
5210 (make_info_sources_options_def_group, print_info_sources_header,
5211 info_sources_command_completer):
5212 New functions.
5213 (info_sources_command): Read new optional arguments.
5214 (_initialize_symtab): Update info sources help.
5215
5216 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5217
5218 * ada-lang.c (exception_support_info_v0): Renamed from...
5219 (default_exception_support_info): ... this. Create new
5220 definition for v1.
5221 (ada_has_this_exception_support): Look up catch_handlers_sym.
5222 (ada_exception_support_info_sniffer): Try v0 after default.
5223
5224 2019-08-01 Tom Tromey <tromey@adacore.com>
5225
5226 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5227 gdbarch.h.
5228
5229 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5230
5231 * s12z-tdep.c: Fix include path for s12z-opc.h.
5232
5233 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5234
5235 * NEWS: Require GNU make 3.82.
5236
5237 2019-07-16 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5240 declare.
5241
5242 2019-07-30 Tom Tromey <tromey@adacore.com>
5243
5244 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5245
5246 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5247
5248 * printcmd.c (print_address_symbolic): Print negative offsets.
5249 (build_address_symbolic): Force signed arithmetic when computing
5250 offset.
5251
5252 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5253
5254 PR/24474: Add a function to lookup static variables.
5255 * NEWS: Mention this new function.
5256 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5257 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5258 * python/python.c (python_GdbMethods): Add new function.
5259
5260 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5261
5262 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5263 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5264 (objfpy_lookup_static_symbol): New function.
5265 (objfile_object_methods): Add new functions.
5266
5267 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5268
5269 * NEWS: Mention 'set|show print frame-info'. Mention new
5270 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5271 backtrace argument. Mention that python frame filtering code
5272 is now consistent with what 'backtrace' command prints.
5273
5274 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5275
5276 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5277 comments.
5278 (print_frame_info_auto, print_frame_info_source_line,
5279 print_frame_info_location, print_frame_info_source_and_location,
5280 print_frame_info_location_and_address, print_frame_info_short_location):
5281 New declarations.
5282 (struct frame_print_options): New member print_frame_info.
5283 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5284 * stack.h (get_user_print_what_frame_info): New declaration.
5285 (frame_show_address): New declaration.
5286 * stack.c (print_frame_arguments_choices): New value 'presence'.
5287 (print_frame_info_auto, print_frame_info_source_line,
5288 print_frame_info_location, print_frame_info_source_and_location,
5289 print_frame_info_location_and_address, print_frame_info_short_location,
5290 print_frame_info_choices, print_frame_info_print_what): New definitions.
5291 (print_frame_args): Only print dots for args if print frame-arguments
5292 is 'presence'.
5293 (frame_print_option_defs): New element for "frame-info".
5294 (get_user_print_what_frame_info): New function.
5295 (frame_show_address): Make non static. Move comment to stack.h.
5296 (print_frame_info_to_print_what): New function.
5297 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5298 to decide what to print.
5299 (backtrace_command_1): Handle the new print_frame_arguments_presence
5300 value.
5301 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5302 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5303 (py_print_frame): In non-mi mode, use LOCATION as default for
5304 print_what, similarly to frame information printed directly by
5305 backtrace command. Handle frame-info user option in non MI mode.
5306
5307 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5308
5309 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5310 Add case for debugging 32-bit target on 64-bit host. Revise
5311 comment.
5312
5313 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5314
5315 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5316 instead of find_function_entry_range_from_pc.
5317
5318 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5319
5320 * stack.c (find_frame_funname): Remove code which preferred
5321 minsym over symtab sym in "certain pathological cases".
5322
5323 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5324 parameter. Change type of "do_demangle" to bool.
5325 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5326 Pass suitable "prefer_sym_over_minsym" flag to
5327 build_address_symbolic(). Don't output "+" for negative offsets.
5328 * printcmd.c (print_address_symbolic): Update invocation of
5329 build_address_symbolic to include a "prefer_sym_over_minsym"
5330 flag.
5331 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5332 Restrict cases in which use of minimal symbol is preferred to that
5333 of a found symbol. Update comments.
5334
5335 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5336 for entry pc when entry pc is out of range for that FDE.
5337
5338 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5339
5340 PR gdb/24839:
5341 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5342 type.
5343
5344 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5345
5346 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5347 this function's Python signature.
5348
5349
5350 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5351
5352 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5353 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5354 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5355 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5356 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5357
5358
5359 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5360
5361 * h8300-tdep.c (h8300_register_name_common): New.
5362 h8300_register_name): Use h8300_register_name_common.
5363 (h8300s_register_name): Likewise.
5364 (h8300sx_register_name): Likewise.
5365 (h8300h_register_nam): New.
5366 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5367
5368
5369 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5370
5371 * arm-tdep.c (arm_skip_cmse_entry): New function.
5372 (arm_is_sgstubs_section): New function.
5373 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5374
5375 2019-07-22 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5378 Don't self-assign.
5379
5380 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5383 type_print.
5384
5385 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5388 so that GDB doesn't match any msymbols when searching in the
5389 TYPES_DOMAIN.
5390 (print_symbol_info): Print using typedef_print or type_print based
5391 on the type of the symbol. Add updated FIXME comment moved from...
5392 (_initialize_symtab): ... move and update FIXME comment to above.
5393
5394 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * NEWS: Mention adding -q option to "info types".
5397 * symtab.c (struct info_types_options): New struct.
5398 (info_types_options_defs): New variable.
5399 (make_info_types_options_def_group): New function.
5400 (info_types_command): Use gdb::option framework to parse options.
5401 (info_types_command_completer): New function.
5402 (_initialize_symtab): Extend the help text on "info types" and
5403 register command completer.
5404
5405 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5406
5407 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5408 (lookup_symbol_in_objfile): Change int to block_enum and add a
5409 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5410
5411 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5412
5413 * MAINTAINERS (Write After Approval): Add self.
5414
5415 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5418 instruction to the dummy code region.
5419
5420 2019-07-19 Tom Tromey <tromey@adacore.com>
5421
5422 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5423 (ARGSUSED, PARAMS, __func__): Remove rules.
5424
5425 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5426
5427 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5428 * features/arm/arm-with-iwmmxt.c: Remove.
5429 * features/arm/arm-with-iwmmxt.xml: Remove.
5430 * features/arm/arm-with-m-fpa-layout.c: Remove.
5431 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5432 * features/arm/arm-with-m-vfp-d16.c: Remove.
5433 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5434 * features/arm/arm-with-m.c: Remove.
5435 * features/arm/arm-with-m.xml: Remove.
5436 * features/arm/arm-with-neon.c: Remove.
5437 * features/arm/arm-with-neon.xml: Remove.
5438 * features/arm/arm-with-vfpv2.c: Remove.
5439 * features/arm/arm-with-vfpv2.xml: Remove.
5440 * features/arm/arm-with-vfpv3.c: Remove.
5441 * features/arm/arm-with-vfpv3.xml: Remove.
5442
5443 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5444
5445 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5446
5447 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5448
5449 * arch/aarch32.c (aarch32_create_target_description): Create
5450 target descriptions using features.
5451 * arch/arm.c (arm_create_target_description)
5452 (arm_create_mprofile_target_description): Likewise.
5453 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5454
5455 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5456
5457 * Makefile.in: Add new files.
5458 * aarch32-tdep.c: New file.
5459 * aarch32-tdep.h: New file.
5460 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5461 Call aarch32_read_description.
5462 * arch/aarch32.c: New file.
5463 * arch/aarch32.h: New file.
5464 * arch/arm.c (arm_create_target_description)
5465 (arm_create_mprofile_target_description): New function.
5466 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5467 (arm_create_target_description)
5468 (arm_create_mprofile_target_description): New declaration.
5469 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5470 read_description functions.
5471 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5472 Likewise.
5473 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5474 * arm-tdep.c (tdesc_arm_list): New variable.
5475 (arm_register_g_packet_guesses): Call create description functions.
5476 (arm_read_description) (arm_read_mprofile_description): New
5477 function.
5478 * arm-tdep.h (arm_read_description)
5479 (arm_read_mprofile_description): Add declaration.
5480 * configure.tgt: Add new files.
5481
5482 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5483
5484 * top.c (new_ui_command): Open specified terminal just once.
5485
5486 2019-07-18 Tom Tromey <tromey@adacore.com>
5487
5488 * symtab.c (main_name): Constify return type.
5489 * symfile.c (set_initial_language): Update.
5490 * symtab.h (main_name): Constify return type.
5491
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-winsource.c (tui_update_source_window)
5495 (tui_update_source_window_as_is)
5496 (tui_update_source_windows_with_line): Remove return.
5497 * tui/tui-disasm.c (tui_show_disassem)
5498 (tui_show_disassem_and_update_source): Remove return.
5499 * tui/tui.c (tui_reset): Remove return.
5500 * tui/tui-wingeneral.c
5501 (tui_check_and_display_highlight_if_needed): Remove return.
5502
5503 2019-07-17 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5506
5507 2019-07-17 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-winsource.h (struct tui_exec_info_window)
5510 (struct tui_source_window_base): Move from tui-data.h.
5511 * tui/tui-winsource.c: Move many method definitions from
5512 elsewhere. Remove "structuring" comments.
5513 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5514 (tui_source_window_base::refresh_window): Move to
5515 tui-winsource.c.
5516 * tui/tui-win.c (tui_source_window_base::refresh_all)
5517 (tui_source_window_base::update_tab_width)
5518 (tui_source_window_base::set_new_height)
5519 (tui_source_window_base::do_make_visible_with_new_height): Move to
5520 tui-winsource.c.
5521 * tui/tui-source.h: Update.
5522 * tui/tui-source.c (tui_source_window_base::reset): Move to
5523 tui-winsource.c.
5524 * tui/tui-disasm.h: Update.
5525 * tui/tui-data.h (struct tui_exec_info_window): Move to
5526 tui-winsource.h.
5527 (struct tui_source_window_base): Likewise.
5528 * tui/tui-data.c (tui_source_window_base::clear_detail)
5529 (tui_source_window_base, ~tui_source_window_base): Move to
5530 tui-winsource.c.
5531
5532 2019-07-17 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-win.c (tui_resize_all)
5535 (tui_source_window_base::update_tab_width)
5536 (tui_adjust_win_heights): Update.
5537 (tui_win_info::make_invisible_and_set_new_height): Rename from
5538 make_invisible_and_set_new_height.
5539 * tui/tui-data.h (struct tui_win_info)
5540 <make_invisible_and_set_new_height>: New method.
5541
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui.c: Update.
5545 * tui/tui-source.h (struct tui_source_window): Move from
5546 tui-data.h.
5547 * tui/tui-layout.c: Update.
5548 * tui/tui-disasm.c: Update.
5549 * tui/tui-data.h (struct tui_source_window): Move to
5550 tui-source.h.
5551
5552 2019-07-17 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5555 tui-data.h.
5556 * tui/tui-data.h (struct tui_disasm_window): Move to
5557 tui-disasm.h.
5558
5559 2019-07-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-regs.h (struct tui_data_item_window): Move from
5562 tui-data.h.
5563 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5564 * tui/tui-data.h (struct tui_data_item_window): Move to
5565 tui-regs.h.
5566 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5567
5568 2019-07-17 Tom Tromey <tom@tromey.com>
5569
5570 * tui/tui.c: Update.
5571 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5572 (tui_cmd_window::max_height): Move to tui-command.c.
5573 * tui/tui-layout.c: Update.
5574 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5575 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5576 tui-command.c.
5577 * tui/tui-command.h (struct tui_cmd_window): Move from
5578 tui-data.h.
5579 * tui/tui-command.c: Remove "structuring" comments.
5580 (tui_cmd_window::clear_detail)
5581 (tui_cmd_window::do_make_visible_with_new_height)
5582 (tui_cmd_window::max_height): Move from elsewhere.
5583
5584 2019-07-17 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5587 Now static.
5588 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5589 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5590
5591 2019-07-17 Tom Tromey <tom@tromey.com>
5592
5593 * tui/tui.c: Update.
5594 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5595 tui-regs.c.
5596 * tui/tui-windata.h: Remove file.
5597 * tui/tui-windata.c: Remove file.
5598 * tui/tui-win.c (tui_data_window::set_new_height)
5599 (tui_data_window::do_make_visible_with_new_height): Move to
5600 tui-regs.c.
5601 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5602 * tui/tui-regs.c: Remove "structuring" comments.
5603 (tui_data_window::first_data_item_displayed)
5604 (tui_data_window::delete_data_content_windows)
5605 (tui_data_window::erase_data_content)
5606 (tui_data_window::display_all_data)
5607 (tui_data_window::refresh_all)
5608 (tui_data_window::do_scroll_vertical)
5609 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5610 (tui_data_window::do_make_visible_with_new_height)
5611 (tui_data_window::refresh_window): Move from elsewhere.
5612 (_initialize_tui_regs): Move to end of file.
5613 * tui/tui-layout.c: Update.
5614 * tui/tui-hooks.c: Update.
5615 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5616 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5617 tui-regs.c.
5618 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5619
5620 2019-07-17 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5623 seen.
5624
5625 2019-07-17 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui-win.c (tui_source_window_base::set_new_height)
5628 (tui_source_window_base::do_make_visible_with_new_height): Use
5629 m_has_locator field directly.
5630 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5631 method.
5632 (struct tui_source_window_base) <has_locator>: Likewise.
5633
5634 2019-07-17 Tom Tromey <tom@tromey.com>
5635
5636 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5637 Don't declare.
5638 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5639 Remove.
5640 * tui/tui-win.c (tui_source_window_base::set_new_height)
5641 (tui_source_window_base::set_new_height)
5642 (make_invisible_and_set_new_height)
5643 (tui_source_window_base::do_make_visible_with_new_height)
5644 (tui_source_window_base::do_make_visible_with_new_height):
5645 Update.
5646 * tui/tui-layout.c (show_source_disasm_command, show_data)
5647 (show_source_or_disasm_and_command): Update.
5648 * tui/tui-layout.c (show_layout): Update.
5649
5650 2019-07-17 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-layout.c (make_data_window): Remove.
5653 (show_data): Unify creation and re-initialization cases.
5654
5655 2019-07-17 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-layout.c (make_source_window, make_disasm_window):
5658 Remove.
5659 (show_data): Unify creation and re-initialization cases.
5660
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-layout.c (make_command_window): Remove.
5664 (show_source_disasm_command, show_source_or_disasm_and_command):
5665 Unify creation and re-initialization cases.
5666
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5670 creation and re-initialization cases.
5671
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-regs.c (tui_get_register): Return void.
5675
5676 2019-07-17 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5679 Simplify.
5680
5681 2019-07-17 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5684 resetting.
5685
5686 2019-07-17 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5689 * tui/tui-regs.c (tui_reg_layout): New function.
5690 (tui_show_registers, tui_reg_command): Use it.
5691 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5692 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5693 parameters.
5694 (tui_layout_command): Remove.
5695
5696 2019-07-17 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-layout.h (tui/tui-layout): Return void.
5699 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5700
5701 2019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-layout.c (show_source_disasm_command, show_data):
5704 Update.
5705 (reset_locator): Remove.
5706 (show_source_or_disasm_and_command): Update.
5707
5708 2019-07-17 Tom Tromey <tom@tromey.com>
5709
5710 * tui/tui-source.c (tui_source_window_base::reset): Remove
5711 win_type parameter.
5712 * tui/tui-layout.c (make_command_window, make_source_window)
5713 (make_disasm_window, make_data_window)
5714 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5715 (reset_locator, show_source_or_disasm_and_command): Update.
5716 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5717 win_type parameter.
5718 (struct tui_source_window_base) <reset>: Likewise.
5719
5720 2019-07-17 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-layout.c (show_source_disasm_command): Use
5723 reset_locator.
5724 (reset_locator): New function.
5725 (init_and_make_win): Remove.
5726 (show_source_or_disasm_and_command): Use reset_locator.
5727
5728 2019-07-17 Tom Tromey <tom@tromey.com>
5729
5730 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5731 condition.
5732 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5733 Remove condition.
5734 * tui/tui-source.c (tui_source_window_base::reset): New method.
5735 * tui/tui-layout.c (make_command_window): Don't call
5736 init_and_make_win.
5737 (make_source_window, make_disasm_window): Don't call
5738 make_source_or_disasm_window.
5739 (make_data_window): Don't call init_and_make_win. Change calling
5740 convention.
5741 (show_source_disasm_command, show_data): Simplify.
5742 (make_source_or_disasm_window): Remove.
5743 (show_source_or_disasm_and_command): Simplify.
5744 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5745 (struct tui_source_window_base) <reset>: Likewise.
5746 <execution_info>: Remove initializer.
5747 * tui/tui-data.c (tui_source_window_base): Initialize
5748 execution_info.
5749
5750 2019-07-17 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5753 variable.
5754
5755 2019-07-17 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui.c (tui_rl_other_window): Update.
5758 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5759 superclass method first. Always iterate over regs_content.
5760 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5761 method.
5762 * tui/tui-win.c (tui_set_focus_command): Update.
5763
5764 2019-07-17 Tom Tromey <tom@tromey.com>
5765
5766 * tui/tui-win.c (tui_set_focus_command): Rename from
5767 tui_set_focus. Call tui_enable.
5768 (tui_set_focus_command): Remove.
5769
5770 2019-07-17 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5773 refresh_window.
5774 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5775 touchwin.
5776 (tui_data_window::refresh_window): Call refresh_window on data
5777 items. Always call superclass refresh_window.
5778 (tui_win_info::refresh): Remove.
5779 (tui_source_window_base::refresh_window): Update.
5780 (tui_refresh_all): Update.
5781 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5782 refresh_window.
5783 (show_source_or_disasm_and_command): Likewise.
5784 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5785 (struct tui_source_window_base) <refresh>: Likewise.
5786
5787 2019-07-17 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-winsource.c (tui_clear_source_content)
5790 (tui_show_source_content): Update.
5791 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5792 whether content is empty.
5793 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5794 Remove.
5795
5796 2019-07-17 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5799 window's contents.
5800 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5801 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5802
5803 2019-07-17 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5806 (struct tui_data_item_window): Update.
5807
5808 2019-07-17 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5811 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5812 defines.
5813
5814 2019-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-winsource.h (tui_erase_source_content)
5817 (tui_clear_source_content): Remove "display_prompt" parameter.
5818 * tui/tui-winsource.c (tui_update_source_window_as_is)
5819 (tui_update_source_windows_with_addr): Update.
5820 (tui_clear_source_content): Remove "display_prompt" parameter.
5821 (tui_erase_source_content): Likewise. Simplify.
5822 (tui_show_source_content): Update.
5823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5824 * tui/tui-stack.c (tui_show_frame_info): Update.
5825 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5826 Remove defines.
5827
5828 2019-07-17 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5831 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5832 parameter.
5833 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5834 parameter.
5835
5836 2019-07-17 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-winsource.c (tui_clear_source_content)
5839 (tui_show_source_content, tui_show_exec_info_content)
5840 (tui_clear_exec_info_content): Update.
5841 * tui/tui-stack.c (tui_show_locator_content): Update.
5842 (tui_show_frame_info): Update.
5843 * tui/tui-source.h (tui_source_window): Don't declare.
5844 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5845 from tui_source_is_displayed.
5846 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5847 Remove field.
5848 (struct tui_source_window_base) <content_in_use>: New field. Now
5849 bool.
5850 (struct tui_source_window) <showing_source_p>: New method.
5851 (TUI_SRC_WIN): Change cast.
5852 * tui/tui-data.c (tui_initialize_static_data): Update.
5853
5854 2019-07-17 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5857 location_matches_p.
5858 * tui/tui-source.c (tui_source_window::location_matches_p): New
5859 method.
5860 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5861 method.
5862 * tui/tui-data.h (struct tui_source_window_base)
5863 <location_matches_p>: New method.
5864 (struct tui_source_window, struct tui_disasm_window)
5865 <location_matches_p>: Likewise.
5866
5867 2019-07-17 Tom Tromey <tom@tromey.com>
5868
5869 * tui/tui-win.c (tui_set_win_height_command): Rename from
5870 tui_set_win_height.
5871 (tui_set_win_height_command): Remove.
5872
5873 2019-07-17 Tom Tromey <tom@tromey.com>
5874
5875 * tui/tui-source.c (tui_source_window): New constructor. Add
5876 observer.
5877 (~tui_source_window): New destructor.
5878 (tui_source_window::style_changed): New method.
5879 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5880 (tui_attach_detach_observers): Update.
5881 * tui/tui-data.h (struct tui_source_window): Make constructor not
5882 inline. Add destructor.
5883 (struct tui_source_window) <style_changed>: New method.
5884 <m_observable>: New member.
5885
5886 2019-07-17 Tom Tromey <tom@tromey.com>
5887
5888 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5889 * tui/tui-win.c (tui_resize_all): Fix typo.
5890
5891 2019-07-17 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5894 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5895 (tui_refresh_all): Remove "list" parameter. Use foreach.
5896 * tui/tui-win.c (window_name_completer): Use foreach.
5897 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5898 (update_tab_width): Likewise.
5899 * tui/tui-layout.c (show_layout): Update.
5900 * tui/tui-data.h (class tui_window_iterator): New.
5901 (struct all_tui_windows): New.
5902 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5903
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5907 parameter. Don't reference globals.
5908 (tui_reg_command): Update.
5909
5910 2019-07-17 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-regs.c (tui_show_registers): Simplify.
5913
5914 2019-07-17 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-regs.c (tui_show_registers): Update.
5917 (tui_show_register_group): Add win_info parameter.
5918
5919 2019-07-17 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5922 Rename from tui_display_reg_element_at_line.
5923 (tui_data_window::display_registers_from_line): Update.
5924 * tui/tui-data.h (struct tui_data_window)
5925 <display_reg_element_at_line>: New method.
5926
5927 2019-07-17 Tom Tromey <tom@tromey.com>
5928
5929 * tui/tui-regs.h (tui_display_registers_from)
5930 (tui_display_registers_from_line): Don't declare.
5931 * tui/tui-windata.c (tui_data_window::display_all_data)
5932 (tui_data_window::refresh_all)
5933 (tui_data_window::do_scroll_vertical): Update.
5934 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5935 from tui_display_registers_from.
5936 (tui_display_reg_element_at_line): Update.
5937 (tui_data_window::display_registers_from_line): Rename from
5938 tui_display_registers_from_line.
5939 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5940 display_registers_from_line>: New methods.
5941
5942 2019-07-17 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5945 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5946 from tui_erase_data_content.
5947 (tui_data_window::display_all_data)
5948 (tui_data_window::refresh_all)
5949 (tui_data_window::do_scroll_vertical): Update.
5950 * tui/tui-regs.c (tui_show_registers): Update.
5951 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5952 New method.
5953
5954 2019-07-17 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5957 declare.
5958 * tui/tui-windata.c
5959 (tui_data_window::delete_data_content_windows): Rename from
5960 tui_delete_data_content_windows.
5961 (tui_data_window::display_all_data)
5962 (tui_data_window::do_scroll_vertical): Update.
5963 * tui/tui-data.h (struct tui_data_window)
5964 <delete_data_content_windows>: New method.
5965
5966 2019-07-17 Tom Tromey <tom@tromey.com>
5967
5968 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5969 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5970
5971 2019-07-17 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5974 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5975 from tui_display_all_data.
5976 * tui/tui-win.c
5977 (tui_data_window::do_make_visible_with_new_height): Update.
5978 * tui/tui-regs.c (tui_show_registers): Update.
5979 * tui/tui-layout.c (tui_set_layout): Update.
5980 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5981 method.
5982
5983 2019-07-17 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5986 * tui/tui-windata.c (tui_display_data_from): Remove.
5987 (tui_data_window::refresh_all): Update.
5988
5989 2019-07-17 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5992 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5993 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5994 tui_display_registers_from_line.
5995 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5996 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5997 "force_display" parameter.
5998
5999 2019-07-17 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6002 declare.
6003 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6004 Rename from tui_first_reg_element_no_inline.
6005 (tui_display_reg_element_at_line)
6006 (tui_display_registers_from_line): Update.
6007 * tui/tui-data.h (struct tui_data_window)
6008 <first_reg_element_no_inline>: New method.
6009
6010 2019-07-17 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-windata.c (tui_display_data_from)
6013 (tui_data_window::do_scroll_vertical): Update.
6014 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6015 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6016 Rename from tui_line_from_reg_element_no.
6017 (tui_display_registers_from_line): Update.
6018 * tui/tui-data.h (struct tui_data_window)
6019 <line_from_reg_element_no>: New method.
6020
6021 2019-07-17 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6024 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6025 tui_last_regs_line_no.
6026 (tui_display_reg_element_at_line)
6027 (tui_display_registers_from_line): Update.
6028 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6029 method.
6030
6031 2019-07-17 Tom Tromey <tom@tromey.com>
6032
6033 PR tui/24722:
6034 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6035 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6036 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6037 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6038 (tui_update_breakpoint_info): Likewise.
6039 * tui/tui-hooks.c (tui_event_create_breakpoint)
6040 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6041 Update.
6042
6043 2019-07-17 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6046
6047 2019-07-17 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-winsource.c (tui_update_source_window_as_is)
6050 (tui_update_source_windows_with_addr): Update.
6051 * tui/tui-source.h (tui_set_source_content)
6052 (tui_show_symtab_source): Add "win_info" parameter.
6053 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6054 parameter.
6055 (tui_show_symtab_source): Likewise.
6056
6057 2019-07-17 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-wingeneral.c
6060 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6061
6062 2019-07-17 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6065 (struct tui_cmd_window) <can_scroll>: New method.
6066 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6067 method.
6068
6069 2019-07-17 Tom Tromey <tromey@adacore.com>
6070
6071 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6072 do_field_signed>: Rename. Change type of "value".
6073 * ui-out.c (ui_out::field_signed): Rename from field_int.
6074 Change type of "value".
6075 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6076 type of "value".
6077 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6078 do_field_int. Change type of "value".
6079 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6080 do_field_int. Change type of "value".
6081 * tracepoint.c (trace_status_mi, tfind_1)
6082 (print_one_static_tracepoint_marker): Update.
6083 * thread.c (print_thread_info_1, print_selected_thread_frame):
6084 Update.
6085 * stack.c (print_frame, print_frame_info): Update.
6086 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6087 Update.
6088 * source.c (print_source_lines_base): Update.
6089 * skip.c (info_skip_command): Update.
6090 * record-btrace.c (btrace_ui_out_decode_error)
6091 (btrace_call_history_src_line): Update.
6092 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6093 Update.
6094 * progspace.c (print_program_space): Update.
6095 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6096 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6097 do_field_int. Change type of "value".
6098 * mi/mi-out.c (mi_ui_out::do_table_begin)
6099 (mi_ui_out::do_table_header): Update.
6100 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6101 type of "value".
6102 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6103 (mi_cmd_data_list_changed_registers, output_register)
6104 (mi_cmd_data_read_memory, mi_load_progress)
6105 (mi_cmd_trace_frame_collected): Update.
6106 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6107 Update.
6108 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6109 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6110 (mi_cmd_var_list_children, varobj_update_one): Update.
6111 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6112 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6113 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6114 * inferior.c (print_inferior): Update.
6115 * gdb_bfd.c (print_one_bfd): Update.
6116 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6117 Update.
6118 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6119 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6120 do_field_int. Change type of "value".
6121 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6122 do_field_int. Change type of "value".
6123 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6124 (print_one_breakpoint_location, print_it_catch_fork)
6125 (print_one_catch_fork, print_it_catch_vfork)
6126 (print_one_catch_vfork, print_it_catch_solib)
6127 (print_it_catch_exec, print_it_ranged_breakpoint)
6128 (print_mention_watchpoint, print_mention_masked_watchpoint)
6129 (bkpt_print_it, update_static_tracepoint): Update.
6130 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6131 * break-catch-syscall.c (print_it_catch_syscall): Update.
6132 * ada-tasks.c (print_ada_task_info): Update.
6133 * ada-lang.c (print_it_exception, print_mention_exception):
6134 Update.
6135
6136 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 PR breakpoints/24541
6139 * gdbarch.c: Regenerate.
6140 * gdbarch.h: Regenerate.
6141 * gdbarch.sh: Adjust return type and parameter types for
6142 'stap_adjust_register'.
6143 (i386_stap_adjust_register): Adjust signature and return new
6144 register name.
6145 * stap-probe.c (stap_parse_register_operand): Adjust use of
6146 'gdbarch_stap_adjust_register'.
6147
6148 2019-07-17 Tom Tromey <tromey@adacore.com>
6149
6150 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6151 declare VEC.
6152 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6153 std::vector.
6154 (struct s390_process_info): Add initializers.
6155 (s390_add_process): Use new.
6156 (s390_linux_nat_target::low_forget_process): Use delete.
6157 (s390_linux_nat_target::low_new_fork)
6158 (s390_linux_nat_target::stopped_by_watchpoint)
6159 (s390_linux_nat_target::low_prepare_to_resume)
6160 (s390_linux_nat_target::insert_watchpoint)
6161 (s390_linux_nat_target::insert_hw_breakpoint)
6162 (s390_linux_nat_target::remove_watchpoint)
6163 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6164
6165 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6166
6167 * aarch64-fbsd-nat.c: Include regcache.h.
6168 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6169 argument.
6170 (aarch64_fbsd_nat_target::fetch_registers)
6171 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6172 variable.
6173 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6174
6175 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6176
6177 * fbsd-nat.c: Include gdbarch.h.
6178
6179 2019-07-15 Tom Tromey <tromey@adacore.com>
6180
6181 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6182
6183 2019-07-15 Tom Tromey <tromey@adacore.com>
6184
6185 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6186 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6187 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6188 * cli-out.c (cli_ui_out::do_field_int): New method.
6189 * ui-out.c (ui_out::field_unsigned): New method.
6190 * symfile.c (generic_load): Use field_unsigned.
6191 (print_transfer_performance): Likewise.
6192 * record-btrace.c (ui_out_field_uint): Remove.
6193 (btrace_call_history_insn_range, btrace_call_history): Use
6194 field_unsigned.
6195 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6196 field_unsigned.
6197 * ui-out.h (class ui_out) <field_unsigned>: New method.
6198 <do_field_unsigned>: Likewise.
6199
6200 2019-07-15 Tom Tromey <tromey@adacore.com>
6201
6202 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6203 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6204 * target.c (flash_erase_command): Use field_string.
6205 * infrun.c (print_signal_received_reason): Use field_string.
6206 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6207 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6208 field_string.
6209 * ada-tasks.c (print_ada_task_info): Use field_string.
6210
6211 2019-07-15 Tom Tromey <tromey@adacore.com>
6212
6213 * target.c (flash_erase_command): Use field_core_addr.
6214 * symfile.c (generic_load): Use field_core_addr.
6215 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6216 Use field_core_addr.
6217 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6218 field_core_addr.
6219
6220 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6221
6222 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6223 value if its desired type is smaller than a CORE_ADDR and signed.
6224
6225 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6228 of changes to field names, and use new is_reference field to
6229 decide if a property is a reference or not.
6230 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6231 field.
6232 (struct dwarf2_property_baton): Update header comment, rename
6233 'referenced_type' to 'property_type' and update comments.
6234 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6235 default property type, store in property baton, update to take
6236 accound of renamed field.
6237 (read_func_scope): Update call to attr_to_dynamic_prop.
6238 (read_array_type): Likewise.
6239 (dwarf2_per_cu_addr_sized_int_type): New function.
6240 (read_subrange_index_type): Move type finding code to
6241 dwarf2_per_cu_addr_sized_int_type.
6242 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6243 (dwarf2_per_cu_addr_type): New function.
6244 (set_die_type): Update calls to attr_to_dynamic_prop.
6245
6246 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * dwarf2read.c (read_subrange_index_type): New function.
6249 (read_subrange_type): Move code into new function and call it.
6250 * gdbtypes.c (create_range_type): Add some asserts.
6251
6252 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6255 update return statements.
6256 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6257 declaration, and update comment to match.
6258 * gdbtypes.c (resolve_dynamic_array): Update call to
6259 dwarf2_evaluate_property to match new return type.
6260
6261 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * valarith.c (value_subscripted_rvalue): Change lowerbound
6264 parameter type from int to LONGEST.
6265 * value.h (value_subscripted_rvalue): Likewise in declaration.
6266
6267 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * cli/cli-utils.c (info_print_command_completer): New function.
6270 * cli/cli-utils.h: Add 'completer.h' include, and forward
6271 declaration for 'struct cmd_list_element'.
6272 (info_print_command_completer): Declare.
6273 * stack.c (_initialize_stack): Add completer for 'info locals' and
6274 'info args'.
6275 * symtab.c (_initialize_symtab): Add completer for 'info
6276 variables' and 'info functions'.
6277 * NEWS: Mention completion for additional info commands.
6278
6279 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * cli/cli-utils.c (extract_info_print_args): Delete.
6282 (extract_arg_maybe_quoted): Delete.
6283 (info_print_options_defs): New variable.
6284 (make_info_print_options_def_group): New function.
6285 (extract_info_print_options): Define new function.
6286 * cli/cli-utils.h (extract_info_print_args): Delete.
6287 (struct info_print_options): New structure.
6288 (extract_info_print_options): Declare new function.
6289 * stack.c (info_locals_command): Update to use new
6290 extract_info_print_options, also add a header comment.
6291 (info_args_command): Likewise.
6292 * symtab.c (info_variables_command): Likewise.
6293 (info_functions_command): Likewise.
6294
6295 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6296
6297 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6298 to extract string arguments.
6299 * common/common-utils.c (extract_string_maybe_quoted): New function.
6300 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6301
6302 2019-07-11 Tom Tromey <tromey@adacore.com>
6303
6304 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6305 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6306 * top.h (gdbinit): Don't declare.
6307 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6308 into...
6309 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6310 * top.c (gdb_init): Don't call init_cli_cmds.
6311 (gdbinit): Remove.
6312 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6313
6314 2019-07-11 Tom Tromey <tromey@adacore.com>
6315
6316 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6317 after it has been moved.
6318
6319 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * valops.c (value_must_coerce_to_target): Change return type to
6322 bool.
6323 * value.h (value_must_coerce_to_target): Likewise.
6324
6325 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6326
6327 * breakpoint.c (is_hardware_watchpoint): Remove
6328 forward-declaration.
6329 (is_masked_watchpoint): Change return type to bool.
6330 (is_tracepoint): Likewise.
6331 (is_breakpoint): Likewise.
6332 (is_hardware_watchpoint): Likewise.
6333 (is_watchpoint): Likewise.
6334 (is_no_memory_software_watchpoint): Likewise.
6335 (is_catchpoint): Likewise.
6336 (breakpoint_1): Make FILTER parameter's return type bool.
6337 is_masked_watchpoint): Change return type to bool.
6338 (save_breakpoints): Make FILTER parameter's return type bool.
6339 * breakpoint.h (is_breakpoint): Change return type to bool.
6340 (is_watchpoint): Likewise.
6341 (is_catchpoint): Likewise.
6342 (is_tracepoint): Likewise.
6343
6344 2019-07-10 Tom Tromey <tom@tromey.com>
6345
6346 * defs.h: Don't include gdbarch.h.
6347 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6348 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6349 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6350 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6351 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6352 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6353 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6354 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6355 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6356 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6357 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6358 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6359 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6360 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6361 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6362 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6363 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6364 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6365 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6366 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6367 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6368 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6369 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6370 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6371 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6372 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6373 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6374
6375 2019-07-10 Tom Tromey <tromey@adacore.com>
6376
6377 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6378 * breakpoint.c (init_ada_exception_breakpoint): Register as
6379 bp_catchpoint.
6380 (print_one_breakpoint_location, print_one_breakpoint): Use
6381 is_ada_exception_catchpoint.
6382 * ada-lang.c (class ada_catchpoint_location): Pass
6383 bp_loc_software_breakpoint to bp_location constructor.
6384 (is_ada_exception_catchpoint): New function.
6385
6386 2019-07-10 Tom Tromey <tromey@adacore.com>
6387
6388 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6389 VEC.
6390 (struct arm_exidx_entry): New method operator<.
6391 (struct arm_exidx_data) <section_maps>: Change type.
6392 (arm_exidx_data_free): Remove.
6393 (arm_exidx_data_key): Change type. Move lower.
6394 (arm_exidx_new_objfile): Update.
6395 (arm_compare_exidx_entries): Remove.
6396 (arm_find_exidx_entry, _initialize_arm_tdep)
6397
6398 2019-07-10 Tom Tromey <tromey@adacore.com>
6399
6400 * solib-spu.c (ocl_program_data_key): Change type.
6401 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6402 Update.
6403
6404 2019-07-10 Tom Tromey <tromey@adacore.com>
6405
6406 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6407 (struct solib_aix_inferior_data) <library_list>: Change type.
6408 (solib_aix_inferior_data_handle): Change type.
6409 (get_solib_aix_inferior_data): Update.
6410 (solib_aix_free_library_list): Remove.
6411 (library_list_start_library): Update.
6412 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6413 return type.
6414 (solib_aix_get_library_list)
6415 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6416 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6417
6418 2019-07-10 Tom Tromey <tromey@adacore.com>
6419
6420 * solib-dsbt.c (struct dsbt_info): Add initializers.
6421 (solib_dsbt_pspace_data): Change type.
6422 (dsbt_pspace_data_cleanup): Remove.
6423 (get_dsbt_info, _initialize_dsbt_solib): Update.
6424
6425 2019-07-10 Tom Tromey <tromey@adacore.com>
6426
6427 * spu-tdep.c (spu_overlay_data): Change type.
6428 (spu_get_overlay_table, spu_overlay_new_objfile)
6429 (_initialize_spu_tdep): Update.
6430
6431 2019-07-10 Tom Tromey <tromey@adacore.com>
6432
6433 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6434 destructor.
6435 (dbx_objfile_data_key): Change type and declare later.
6436 (DBX_SYMFILE_INFO): Rewrite.
6437 * dbxread.c (dbx_objfile_data_key): Change type.
6438 (dbx_symfile_init): Update.
6439 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6440 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6441 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6442
6443 2019-07-10 Tom Tromey <tromey@adacore.com>
6444
6445 * jit.c (jit_program_space_key): Change type. Move lower.
6446 (get_jit_program_space_data): Update.
6447 (jit_program_space_data_cleanup): Remove.
6448 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6449 Update.
6450 (struct jit_program_space_data): Add initializers.
6451
6452 2019-07-10 Tom Tromey <tromey@adacore.com>
6453
6454 * solib-darwin.c (struct darwin_info): Add initializers.
6455 (solib_darwin_pspace_data): Change type.
6456 (darwin_pspace_data_cleanup): Remove.
6457 (get_darwin_info, _initialize_darwin_solib): Update.
6458
6459 2019-07-10 Tom Tromey <tromey@adacore.com>
6460
6461 * remote-sim.c (struct sim_inferior_data): Add initializers,
6462 constructor, and destructor.
6463 (sim_inferior_data_key): Change type. Move lower.
6464 (check_for_duplicate_sim_descriptor): Update.
6465 (get_sim_inferior_data): Use new. Update.
6466 (~sim_inferior_data_cleanup): Rename from
6467 sim_inferior_data_cleanup. Simplify.
6468 (gdbsim_close_inferior, simulator_command)
6469 (sim_command_completer, _initialize_remote_sim): Update.
6470 (next_pid, INITIAL_PID): Move earlier.
6471
6472 2019-07-10 Tom Tromey <tromey@adacore.com>
6473
6474 * python/python-internal.h (create_thread_object): Return
6475 gdbpy_ref.
6476 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6477 * python/py-inferior.c (struct threadlist_entry): Add
6478 constructor.
6479 <thread_obj>: Now a gdbpy_ref.
6480 (thread_to_thread_object): Update.
6481 (add_thread_object): Use new.
6482 (delete_thread_object): Use delete.
6483 (infpy_threads): Update.
6484 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6485 GIL.
6486
6487 2019-07-10 Tom Tromey <tromey@adacore.com>
6488
6489 * valops.c (value_cast): Specialize error message for Ada.
6490
6491 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6494
6495 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6498 bpstat_should_step): Return bool, adjust comments.
6499 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6500 bpstat_should_step): Likewise.
6501
6502 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6503
6504 * features/Makefile: Use feature target descriptions for Arm.
6505 * features/arm/arm-core.c: Generate new file.
6506 * features/arm/arm-fpa.c: Likewise.
6507 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6508 * features/arm/arm-m-profile.c: Likewise.
6509 * features/arm/arm-vfpv2.c: Likewise.
6510 * features/arm/arm-vfpv3.c: Likewise.
6511 * features/arm/xscale-iwmmxt.c: Likewise.
6512 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6513
6514 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6515
6516 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6517 ptrace earlier.
6518
6519 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6520
6521 * features/aarch64-pauth.c: Regenerate.
6522
6523 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6526 bool.
6527 (bpstat_what): Use false instead of 0.
6528
6529 2019-07-09 Pedro Alves <palves@redhat.com>
6530
6531 * break-catch-throw.c (is_exception_catchpoint): New.
6532 * breakpoint.c (print_one_breakpoint_location): New parameter
6533 'raw_loc'. Handle it. Use
6534 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6535 looking at the breakpoint's type.
6536 (print_one_breakpoint): If handling "maint info breakpoints", also
6537 print locations of exception catchpoints.
6538 * breakpoint.h (is_exception_catchpoint): Declare.
6539
6540 2019-07-09 Pedro Alves <palves@redhat.com>
6541
6542 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6543 "addr" field.
6544 (allocate_location_exception_catchpoint): New.
6545 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6546 (initialize_throw_catchpoint_ops): Install
6547 allocate_location_exception_catchpoint as allocate_location
6548 method.
6549 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6550 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6551 bp_loc_other.
6552 (breakpoint_address_is_meaningful): Delete.
6553 (bl_address_is_meaningful): New.
6554 (breakpoint_locations_match): Adjust comment.
6555 (bp_location_from_bp_type): New, factored out of...
6556 (bp_location::bp_location(breakpoint *)): ... this.
6557 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6558 factored out of...
6559 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6560 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6561 breakpoint_address_is_meaningful.
6562 (bp_locations_compare): Adjust comment.
6563 (update_global_location_list): Use bl_address_is_meaningful
6564 instead of breakpoint_address_is_meaningful.
6565 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6566 explicit.
6567 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6568 * python/py-breakpoint.c (bppy_get_location): No longer check
6569 whether location is null.
6570
6571 2019-07-09 Pedro Alves <palves@redhat.com>
6572
6573 PR c++/15468
6574 * breakpoint.c (print_one_breakpoint_location): Remove
6575 single-location assert.
6576
6577 2019-07-09 Tom Tromey <tom@tromey.com>
6578
6579 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6580 * configure: Rebuild.
6581 * configure.ac: Change common to gdbsupport.
6582 * gdbsupport: Rename from common.
6583 * acinclude.m4: Change common to gdbsupport.
6584 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6585 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6586 gdbsupport.
6587 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6588 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6589 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6590 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6591 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6592 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6593 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6594 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6595 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6596 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6597 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6598 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6599 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6600 coff-pe-read.c, command.h, compile/compile-c-support.c,
6601 compile/compile-c.h, compile/compile-cplus-symbols.c,
6602 compile/compile-cplus-types.c, compile/compile-cplus.h,
6603 compile/compile-loc2c.c, compile/compile.c, completer.c,
6604 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6605 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6606 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6607 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6608 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6609 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6610 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6611 features/aarch64-core.c, features/aarch64-fpu.c,
6612 features/aarch64-pauth.c, features/aarch64-sve.c,
6613 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6614 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6615 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6616 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6617 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6618 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6619 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6620 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6621 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6622 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6623 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6624 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6625 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6626 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6627 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6628 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6629 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6630 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6631 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6632 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6633 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6634 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6635 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6636 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6637 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6638 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6639 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6640 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6641 minsyms.c, mips-linux-tdep.c, namespace.h,
6642 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6643 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6644 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6645 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6646 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6647 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6648 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6649 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6650 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6651 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6652 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6653 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6654 procfs.c, producer.c, progspace.h, psymtab.h,
6655 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6656 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6657 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6658 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6659 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6660 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6661 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6662 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6663 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6664 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6665 target-memory.c, target.c, target.h, target/waitstatus.c,
6666 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6667 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6668 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6669 unittests/array-view-selftests.c,
6670 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6671 unittests/common-utils-selftests.c,
6672 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6673 unittests/format_pieces-selftests.c,
6674 unittests/function-view-selftests.c,
6675 unittests/lookup_name_info-selftests.c,
6676 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6677 unittests/mkdir-recursive-selftests.c,
6678 unittests/observable-selftests.c,
6679 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6680 unittests/parse-connection-spec-selftests.c,
6681 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6682 unittests/scoped_fd-selftests.c,
6683 unittests/scoped_mmap-selftests.c,
6684 unittests/scoped_restore-selftests.c,
6685 unittests/string_view-selftests.c, unittests/style-selftests.c,
6686 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6687 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6688 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6689 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6690 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6691 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6692
6693 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6696 bool value.
6697 (decode_digits_ordinary): Set explicit_line field in sal.
6698 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6699 symtab_and_line that was set on an explicit line number in
6700 assembler code. Do always update the recorded symtab and line if
6701 we do skip the prologue.
6702
6703 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * breakpoint.c (set_breakpoint_location_function): Remove
6706 explicit_loc parameter.
6707 (momentary_breakpoint_from_master): Update call to
6708 set_breakpoint_location_function.
6709 (add_location_to_breakpoint): Likewise.
6710
6711 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6714 required features based on default bfd type when no specific bfd
6715 is present.
6716
6717 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6718
6719 * NEWS: Mention that GDB printf and eval commands can now print
6720 C-style and Ada-style convenience var strings without
6721 calling the inferior.
6722 * printcmd.c (printf_c_string): Locally print GDB internal var
6723 instead of transiting via the inferior.
6724 (printf_wide_c_string): Likewise.
6725
6726 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6727
6728 PR breakpoints/25011
6729 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6730
6731 2019-07-04 Tom Tromey <tom@tromey.com>
6732
6733 PR tui/24724:
6734 * tui/tui-winsource.c (tui_clear_source_content): Update.
6735 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6736 (tui_update_breakpoint_info): Update.
6737 (tui_set_exec_info_content): Update.
6738 * tui/tui-source.c (tui_set_source_content_nil): Update.
6739 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6740 has_break.
6741 * tui/tui-data.h (enum tui_bp_flag): New.
6742 (tui_bp_flags): New enum flags type.
6743 (struct tui_source_element) <break_mode>: Change type. Rename
6744 from has_break.
6745 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6746 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6747 constants.
6748 * tui/tui-winsource.h: Fix comment.
6749
6750 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6751
6752 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6753 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6754 (store_fpregs_to_thread)
6755 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6756 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6757 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6758 (IWMMXT_REGS_SIZE): Add define.
6759 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6760 (fetch_vfp_regs, store_vfp_regs)
6761 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6762 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6763
6764 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6765
6766 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6767 defines.
6768 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6769 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6770 (ARM_INT_REGISTER_SIZE): ...to this.
6771 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6772 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6773 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6774 (arm_linux_collect_gregset, supply_nwfpe_register)
6775 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6776 defines.
6777 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6778 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6779 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6780 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6781 (arm_return_in_memory, arm_store_return_value)
6782 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6783 (arm_record_ld_st_multiple): Likewise.
6784 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6785 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6786
6787 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6788
6789 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6790 AARCH64_DISPLACED_MODIFIED_INSNS.
6791 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6792 (aarch64_displaced_step_copy_insn): Likewise.
6793 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6794 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6795 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6796 ARM_DISPLACED_MODIFIED_INSNS.
6797 * arm-tdep.c (arm_gdbarch_init): Likewise.
6798 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6799 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6800 (struct arm_displaced_step_closure): Use
6801 ARM_DISPLACED_MODIFIED_INSNS.
6802
6803 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6804
6805 * features/Makefile: Remove unused xml files.
6806 * features/aarch64.xml: Remove.
6807 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6808 * features/i386/amd64-avx-avx512.xml: Remove.
6809 * features/i386/amd64-avx-linux.xml: Remove.
6810 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6811 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6812 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6813 * features/i386/amd64-avx-mpx.xml: Remove.
6814 * features/i386/amd64-avx.xml: Remove.
6815 * features/i386/amd64-linux.xml: Remove.
6816 * features/i386/amd64-mpx-linux.xml: Remove.
6817 * features/i386/amd64-mpx.xml: Remove.
6818 * features/i386/amd64.xml: Remove.
6819 * features/i386/i386-avx-avx512-linux.xml: Remove.
6820 * features/i386/i386-avx-avx512.xml: Remove.
6821 * features/i386/i386-avx-linux.xml: Remove.
6822 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6823 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6824 * features/i386/i386-avx-mpx-linux.xml: Remove.
6825 * features/i386/i386-avx-mpx.xml: Remove.
6826 * features/i386/i386-avx.xml: Remove.
6827 * features/i386/i386-linux.xml: Remove.
6828 * features/i386/i386-mmx-linux.xml: Remove.
6829 * features/i386/i386-mmx.xml: Remove.
6830 * features/i386/i386-mpx-linux.xml: Remove.
6831 * features/i386/i386-mpx.xml: Remove.
6832 * features/i386/i386.xml: Remove.
6833 * features/i386/x32-avx-avx512-linux.xml: Remove.
6834 * features/i386/x32-avx-linux.xml: Remove.
6835 * features/i386/x32-linux.xml: Remove.
6836
6837 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6838
6839 * regformats/aarch64.dat: Remove.
6840 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6841 * regformats/i386/amd64-avx-linux.dat: Remove.
6842 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6843 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6844 * regformats/i386/amd64-linux.dat: Remove.
6845 * regformats/i386/amd64-mpx-linux.dat: Remove.
6846 * regformats/i386/amd64.dat: Remove.
6847 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6848 * regformats/i386/i386-avx-linux.dat: Remove.
6849 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6850 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6851 * regformats/i386/i386-linux.dat: Remove.
6852 * regformats/i386/i386-mmx-linux.dat: Remove.
6853 * regformats/i386/i386-mpx-linux.dat: Remove.
6854 * regformats/i386/i386.dat: Remove.
6855 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6856 * regformats/i386/x32-avx-linux.dat: Remove.
6857 * regformats/i386/x32-linux.dat: Remove.
6858
6859 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6860
6861 * aarch64-tdep.c: Remove xml self tests.
6862 * amd64-linux-tdep.c: Likewise.
6863 * amd64-tdep.c: Likewise.
6864 * i386-linux-tdep.c: Likewise.
6865 * i386-tdep.c: Likewise.
6866
6867 2019-07-03 Pedro Alves <palves@redhat.com>
6868
6869 PR cli/24732
6870 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6871 (pipe_cmd_option_defs): New.
6872 (make_pipe_cmd_options_def_group): New.
6873 (pipe_command): Use gdb::option::process_options.
6874 (pipe_command_completer): New function.
6875 (_initialize_cli_cmds): Install completer for "pipe" command.
6876
6877 2019-07-03 Pedro Alves <palves@redhat.com>
6878
6879 * cli/cli-option.c (union option_value) <string>: New field.
6880 (struct option_def_and_value): Add ctor, move ctor, dtor and
6881 use DISABLE_COPY_AND_ASSIGN.
6882 (option_def_and_value::clear_value): New.
6883 (parse_option, save_option_value_in_ctx, get_val_type_str)
6884 (add_setshow_cmds_for_options): Handle var_string.
6885 * cli-option.h (union option_def::var_address) <string>: New
6886 field.
6887 (struct string_option_def): New.
6888 * maint-test-options.c (struct test_options_opts): Add default
6889 ctor and use DISABLE_COPY_AND_ASSIGN.
6890 <string_opt>: New field.
6891 (test_options_opts::~test_options_opts): New.
6892 (test_options_opts::dump): Also dump "-string".
6893 (test_options_option_defs): Install "string.
6894
6895 2019-07-03 Pedro Alves <palves@redhat.com>
6896
6897 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6898 option_value with a null enumeration.
6899 (complete_options): Save the option values in the context.
6900 (save_option_value_in_ctx): New, factored out from ...
6901 (process_options): ... here.
6902 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6903 of the function.
6904 * maint-test-options.c (test_options_opts::dump): New, factored
6905 out from ...
6906 (maintenance_test_options_command_mode): ... here.
6907 (maintenance_test_options_command_completion_result): Delete.
6908 (maintenance_test_options_command_completion_text): Update
6909 comment.
6910 (maintenance_show_test_options_completion_result): Change
6911 prototype. Just print
6912 maintenance_test_options_command_completion_text.
6913 (save_completion_result): New.
6914 (maintenance_test_options_completer_mode): Pass options context to
6915 complete_options, and then save a dump.
6916 (_initialize_maint_test_options): Use add_cmd to install "maint
6917 show test-options-completion-result".
6918
6919 2019-07-03 Pedro Alves <palves@redhat.com>
6920
6921 * NEWS (New commands): Mention "with" and "maint with".
6922 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6923 (with_command, with_command_completer): New.
6924 (pipe_command): Adjust to new repeat_previous
6925 interface.
6926 (_initialize_cli_cmds): Install the "with" command and its "w"
6927 alias.
6928 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6929 declarations.
6930 * cli/cli-setshow.c (parse_cli_var_uinteger)
6931 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6932 argument strings for all var_types.
6933 (get_setshow_command_value_string): New, factored out from ...
6934 (do_show_command): ... this.
6935 * cli/cli-setshow.h: Include <string>.
6936 (get_setshow_command_value_string): Declare.
6937 * command.h (repeat_previous): Now returns const char *. Adjust
6938 comment.
6939 * maint.c: Include "cli/cli-cmds.h".
6940 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6941 (_initialize_maint_cmds): Register the "maintenance with" command.
6942 * top.c (repeat_previous): Move bits from pipe_command here:
6943 Return the saved command line, if any; error out if there's no
6944 command to relaunch.
6945
6946 2019-07-03 Pedro Alves <palves@redhat.com>
6947
6948 * NEWS (New commands): Mention "maint set/show test-settings"
6949 instead of "maint test-settings".
6950 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6951 (maintenance_test_settings_set_list): Rename to ...
6952 (maintenance_set_test_settings_list): ... this.
6953 (maintenance_test_settings_show_list): Rename to ...
6954 (maintenance_show_test_settings_list): ... this.
6955 (maintenance_test_settings_cmd): Delete.
6956 (maintenance_test_settings_set_cmd): ...
6957 (maintenance_set_test_settings_cmd): ... this.
6958 (maintenance_test_settings_show_cmd): ...
6959 (maintenance_show_test_settings_cmd): ... this.
6960 (maintenance_test_settings_show_value_cmd):
6961 (maintenance_show_test_settings_value_cmd): ... this.
6962 (_initialize_maint_test_settings): No longer install the "maint
6963 test-settings" prefix command. Rename "maint test-settings set"
6964 to "maint set test-settings", and "maint test-settings show" to
6965 "maint show test-settings". Adjust all subcommands.
6966
6967 2019-07-03 Pedro Alves <palves@redhat.com>
6968
6969 * maint-test-settings.c: Fix file's intro comment. Replace all
6970 references to "test-options" with references to "test-settings",
6971 in comments.
6972
6973 2019-07-03 Pedro Alves <palves@redhat.com>
6974
6975 * maint-test-settings.c (maintenance_test_settings_xxx)
6976 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6977 New.
6978 (maintenance_test_settings_enums): Use them.
6979 (maintenance_test_settings_enum): Default to
6980 maintenance_test_settings_xxx.
6981 (_initialize_maint_test_settings): Initialize
6982 MAINTENANCE_TEST_SETTINGS_FILENAME.
6983
6984 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6985
6986 * breakpoint.h (remove_breakpoints_inf): Change return type to
6987 void, move function documentation here.
6988 * breakpoint.c (remove_breakpoints_inf): Change return type to
6989 void, move function documentation to header.
6990
6991 2019-07-02 Pedro Alves <palves@redhat.com>
6992
6993 * NEWS (Completion improvements): Mention "info threads".
6994 * thread.c (struct info_threads_opts, info_threads_option_defs)
6995 (make_info_threads_options_def_group): New.
6996 (info_threads_command): Use gdb::option::process_options.
6997 (info_threads_command_completer): New.
6998 (_initialize_thread): Use gdb::option::build_help to build the
6999 help text for "info threads".
7000
7001 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * defs.h (generic_load): Move from here...
7004 * symfile.h (generic_load): ... to here. Rename name parameter
7005 to args.
7006 * symfile.c (generic_load): Add comment.
7007
7008 2019-07-01 Tom Tromey <tromey@adacore.com>
7009
7010 * dwarf2read.c
7011 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7012 declaration of without_params. Fix formatting.
7013
7014 2019-07-01 Tom Tromey <tromey@adacore.com>
7015
7016 * ada-exp.y (find_primitive_type): Update.
7017 * ada-lang.h (ada_lookup_symbol): Update.
7018 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7019 parameter.
7020 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7021
7022 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7023
7024 PR breakpoints/24541
7025 * gdbarch.c: Regenerate.
7026 * gdbarch.h: Regenerate.
7027 * gdbarch.sh: Add 'stap_adjust_register'.
7028 * i386-tdep.c: Include '<unordered_set>'.
7029 (i386_stap_adjust_register): New function.
7030 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7031 * stap-probe.c (stap_parse_register_operand): Call
7032 'gdbarch_stap_adjust_register'.
7033
7034 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7035
7036 PR python/24742
7037 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7038 * python/python.c (do_start_initialization): Use 'xmalloc'
7039 instead of 'PyMem_Malloc'.
7040
7041 2019-06-28 Tom Tromey <tromey@adacore.com>
7042
7043 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7044 for Ada.
7045
7046 2019-06-27 Tom Tromey <tromey@adacore.com>
7047
7048 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7049 objfile_key.
7050 (arm_find_mapping_symbol, arm_record_special_symbol)
7051 (_initialize_arm_tdep): Update.
7052 (arm_objfile_data_free): Remove.
7053
7054 2019-06-27 Tom Tromey <tromey@adacore.com>
7055
7056 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7057 to cp_print_static_field.
7058
7059 2019-06-26 Tom Tromey <tromey@adacore.com>
7060
7061 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7062 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7063 declare.
7064
7065 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7066
7067 * features/aarch64-core.c (create_feature_aarch64_core):
7068 Regenerate.
7069 * features/aarch64-core.xml: Add cpsr flags.
7070
7071 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7072
7073 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7074 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7075
7076 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7079 field.
7080 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7081 use.
7082 (arm_record_special_symbol): Don't insert new symbol in sorted
7083 position, push it at the end.
7084
7085 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7086
7087 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7088 (arm_mapping_symbol_s): Remove.
7089 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7090 (arm_mapping_symbol_vec): New typedef.
7091 (struct arm_per_objfile): Add constructor.
7092 <section_maps>: Change type to
7093 std::unique_ptr<arm_mapping_symbol_vec[]>.
7094 (arm_compare_mapping_symbols): Remove.
7095 (arm_find_mapping_symbol): Adjust to section_maps type change.
7096 (arm_objfile_data_free): Call delete on arm_per_objfile.
7097 (arm_record_special_symbol): Adjust to section_maps type change.
7098 Allocate arm_per_objfile with new.
7099
7100 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7101
7102 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7103 with the command prefix.
7104
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7108 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7109
7110 2019-06-25 Tom Tromey <tom@tromey.com>
7111
7112 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7113 type.
7114 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7115 protected.
7116
7117 2019-06-25 Tom Tromey <tom@tromey.com>
7118
7119 * tui/tui-winsource.c
7120 (tui_source_window_base::set_is_exec_point_at): Add check against
7121 LOA_ADDRESS.
7122
7123 2019-06-25 Tom Tromey <tom@tromey.com>
7124
7125 * tui/tui-source.c (tui_set_source_content): Don't check before
7126 xfree.
7127 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7128
7129 2019-06-25 Tom Tromey <tom@tromey.com>
7130
7131 * tui/tui-winsource.h (tui_update_source_window_as_is)
7132 (tui_alloc_source_buffer, tui_line_is_displayed)
7133 (tui_addr_is_displayed): Change type of win_info.
7134 * tui/tui-winsource.c (tui_update_source_window_as_is)
7135 (tui_clear_source_content, tui_show_source_line)
7136 (tui_show_source_content, tui_source_window_base::refill)
7137 (tui_source_window_base::set_is_exec_point_at)
7138 (tui_source_window_base::set_is_exec_point_at)
7139 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7140 (tui_alloc_source_buffer, tui_line_is_displayed)
7141 (tui_addr_is_displayed): Change type of win_info. Update.
7142 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7143 (tui_source_window_base::do_make_visible_with_new_height):
7144 Update.
7145 * tui/tui-source.c (tui_set_source_content)
7146 (tui_set_source_content_nil)
7147 (tui_source_window::do_scroll_vertical): Update.
7148 * tui/tui-layout.c (show_layout): Update.
7149 * tui/tui-disasm.c (tui_set_disassem_content)
7150 (tui_disasm_window::do_scroll_vertical): Update.
7151 * tui/tui-data.h (tui_win_content): Remove.
7152 (struct tui_gen_win_info) <content, content_size>: Remove.
7153 (struct tui_source_element): Add initializers and destructor.
7154 (union tui_which_element, struct tui_win_element): Remove.
7155 (struct tui_source_window_base) <content>: New field.
7156 (struct tui_data_window): Remove destructor.
7157 (tui_alloc_content, tui_free_win_content)
7158 (tui_free_all_source_wins_content): Don't declare.
7159 * tui/tui-data.c (tui_initialize_static_data): Update.
7160 (init_content_element, tui_alloc_content): Remove.
7161 (~tui_gen_win_info): Update.
7162 (~tui_data_window, tui_free_all_source_wins_content)
7163 (tui_free_win_content, free_content, free_content_elements):
7164 Remove.
7165
7166 2019-06-25 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-winsource.h (tui_clear_source_content)
7169 (tui_erase_source_content, tui_show_source_content): Change type
7170 of win_info.
7171 * tui/tui-winsource.c (tui_clear_source_content)
7172 (tui_erase_source_content, tui_show_source_content): Change type
7173 of win_info.
7174 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7175 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7176 win_info.
7177 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7178 win_info.
7179 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7180
7181 2019-06-25 Tom Tromey <tom@tromey.com>
7182
7183 * tui/tui-winsource.c (tui_clear_source_content)
7184 (tui_source_window_base::set_is_exec_point_at): Update.
7185 * tui/tui-source.c (tui_set_source_content_nil): Update.
7186 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7187 a bool.
7188 * tui/tui-data.c (init_content_element): Update.
7189
7190 2019-06-25 Tom Tromey <tom@tromey.com>
7191
7192 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7193 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7194 * tui/tui-layout.c (init_and_make_win): Update.
7195 * tui/tui.h (enum tui_win_type): Update.
7196 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7197 tui_win_is_auxillary.
7198 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7199 tui_win_is_auxillary.
7200
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7204 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7205 (tui_delete_data_content_windows, tui_display_all_data)
7206 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7207 Update.
7208 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7209 * tui/tui-regs.c (tui_last_regs_line_no)
7210 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7211 (tui_show_registers): Update.
7212 (tui_show_register_group): Return void. Update.
7213 (tui_display_registers_from, tui_display_reg_element_at_line)
7214 (tui_display_registers_from_line, tui_check_register_values):
7215 Update.
7216 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7217 member.
7218 (struct tui_data_window) <regs_content>: Now a std::vector.
7219 <regs_content_count>: Remove.
7220 (tui_add_content_elements, tui_free_data_content): Don't declare.
7221 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7222 (init_content_element): Remove DATA_WIN case. Add assert.
7223 (tui_add_content_elements): Remove.
7224 (tui_data_window): Update.
7225 (tui_free_data_content): Remove.
7226 (free_content_elements): Remove DATA_WIN case.
7227
7228 2019-06-25 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-data.c (tui_data_item_window): Update.
7231 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7232 * tui/tui-windata.c (tui_display_all_data)
7233 (tui_display_data_from_line): Update.
7234 (tui_check_data_values): Remove.
7235 * tui/tui-regs.c (tui_show_register_group)
7236 (tui_display_reg_element_at_line): Update.
7237 * tui/tui-hooks.c (tui_register_changed)
7238 (tui_refresh_frame_and_register_information): Call
7239 tui_check_register_values.
7240 * tui/tui-data.h (struct tui_data_window) <data_content,
7241 data_content_count, data_type>: Remove.
7242 (enum tui_data_type): Remove.
7243
7244 * tui/tui-data.c (tui_data_window::clear_detail)
7245 (~tui_data_window): Update.
7246
7247 2019-06-25 Tom Tromey <tom@tromey.com>
7248
7249 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7250 declare.
7251 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7252 Rename from tui_first_data_item_displayed. Update.
7253 (tui_data_window::refresh_all)
7254 (tui_data_window::do_scroll_vertical): Update.
7255 * tui/tui-data.h (struct tui_data_window)
7256 <first_data_item_displayed>: Declare new method.
7257
7258 2019-06-25 Tom Tromey <tom@tromey.com>
7259
7260 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7261 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7262 contents...
7263 (tui_initialize_static_data): ...here.
7264
7265 2019-06-25 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7268 (tui_display_registers_from, tui_check_register_values): Update.
7269 (tui_display_register): Remove win_info parameter; update.
7270 (tui_get_register): Change type of parameters.
7271 * tui/tui-data.h (struct tui_data_element): Remove.
7272 (union tui_which_element) <data>: Remove.
7273 <data_window>: Change type.
7274 (struct tui_data_item_window): New.
7275 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7276 case. Add assert.
7277 (~tui_data_item_window): New destructor.
7278 (free_content_elements): Remove DATA_ITEM_WIN case.
7279
7280 2019-06-25 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7283 Remove.
7284
7285 2019-06-25 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-data.h (struct tui_command_element): Remove.
7288 (union tui_which_element) <command>: Remove.
7289 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7290 assert.
7291 (free_content_elements): Remove CMD_WIN case.
7292
7293 2019-06-25 Tom Tromey <tom@tromey.com>
7294
7295 * tui/tui-layout.c (tui_set_layout): Update.
7296 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7297 * tui/tui-data.c (layout_def): Update.
7298
7299 2019-06-25 Tom Tromey <tom@tromey.com>
7300
7301 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7302 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7303 (tui_source_window_base::set_new_height): Update.
7304 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7305 Update.
7306 (tui_set_locator_fullname, tui_set_locator_info)
7307 (tui_show_frame_info): Update.
7308 * tui/tui-source.c (tui_set_source_content)
7309 (tui_source_is_displayed): Update.
7310 * tui/tui-layout.c (show_source_disasm_command, show_data)
7311 (show_source_or_disasm_and_command): Update.
7312 * tui/tui-disasm.c (tui_set_disassem_content)
7313 (tui_get_begin_asm_address): Update.
7314 * tui/tui-data.h (struct tui_locator_element): Remove.
7315 (union tui_which_element) <locator>: Remove.
7316 (struct tui_locator_window): New.
7317 (tui_locator_win_info_ptr): Change return type.
7318 * tui/tui-data.c (_locator): Change type.
7319 (tui_locator_win_info_ptr): Change return type.
7320 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7321 (tui_alloc_content): Add assert.
7322
7323 2019-06-25 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-winsource.c
7326 (tui_exec_info_window::maybe_allocate_content): New method.
7327 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7328 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7329 (make_source_or_disasm_window): Add cast.
7330 * tui/tui-data.h (union tui_which_element) <simple_string>:
7331 Remove.
7332 (struct tui_source_info): New.
7333 (struct tui_source_window_base) <execution_info>: Change type.
7334 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7335 case, and add assert.
7336 (tui_alloc_content): Add assert.
7337
7338 2019-06-25 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7341 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7342 * tui/tui-data.c (tui_alloc_win_info): Remove.
7343
7344 2019-06-25 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7347 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7348 can_highlight.
7349
7350 2019-06-25 Tom Tromey <tom@tromey.com>
7351
7352 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7353 make_visible_with_new_height method.
7354 (tui_win_info::make_visible_with_new_height): New method.
7355 (tui_source_window_base::do_make_visible_with_new_height)
7356 (tui_data_window::do_make_visible_with_new_height)
7357 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7358 (make_visible_with_new_height): Remove.
7359 (tui_resize_all, tui_adjust_win_heights): Use
7360 make_visible_with_new_height method.
7361 * tui/tui-data.h (struct tui_win_info)
7362 <do_make_visible_with_new_height, make_visible_with_new_height>:
7363 New methods.
7364 (struct tui_source_window_base, struct tui_data_window)
7365 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7366 methods.
7367
7368 2019-06-25 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7371 method.
7372 (update_tab_width): Call update_tab_width method.
7373 * tui/tui-data.h (struct tui_win_info)
7374 (struct tui_source_window_base) <update_tab_width>: New methods.
7375
7376 2019-06-25 Tom Tromey <tom@tromey.com>
7377
7378 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7379 parameter.
7380 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7381 parameter.
7382 (tui_gen_win_info::make_visible): Update.
7383 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7384 parameter.
7385 * tui/tui-data.h (enum tui_box): New enum.
7386 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7387
7388 2019-06-25 Tom Tromey <tom@tromey.com>
7389
7390 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7391 init_and_make_win for EXEC_INFO_WIN.
7392 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7393 longer inline.
7394 (struct tui_win_info) <~tui_win_info>: Inline.
7395 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7396 Don't declare.
7397 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7398 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7399 Remove.
7400 (tui_initialize_static_data): Update.
7401 (~tui_gen_win_info): Handle more cleanup here.
7402 (~tui_source_window_base): Delete "execution_info".
7403 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7404
7405 2019-06-25 Tom Tromey <tom@tromey.com>
7406
7407 * tui/tui-layout.c (make_command_window): Don't set
7408 can_highlight.
7409 (show_source_disasm_command): Call the reset method.
7410 (show_data): Don't set can_highlight. Call the reset method.
7411 (tui_gen_win_info::reset): Rename from init_gen_win_info
7412 (init_and_make_win): Simplify. Return tui_gen_win_info.
7413 (show_source_or_disasm_and_command): Call the reset method.
7414 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7415 (struct tui_cmd_window): Set can_highlight.
7416
7417 2019-06-25 Tom Tromey <tom@tromey.com>
7418
7419 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7420 from make_visible.
7421 (tui_make_visible, tui_make_invisible): Rewrite.
7422 (tui_win_info::make_visible): Remove.
7423 (tui_source_window_base::make_visible): Update.
7424 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7425 method. Moved from...
7426 (struct tui_win_info) <make_visible>: ...here.
7427
7428 2019-06-25 Tom Tromey <tom@tromey.com>
7429
7430 * tui/tui-winsource.c
7431 (tui_source_window_base::do_scroll_horizontal): Remove direction
7432 parameter.
7433 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7434 direction parameter.
7435 * tui/tui-win.c (tui_win_info::forward_scroll)
7436 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7437 (tui_win_info::right_scroll): Update.
7438 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7439 direction parameter.
7440 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7441 direction parameter.
7442 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7443 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7444 Remove direction parameter.
7445 (struct tui_source_window_base, struct tui_source_window)
7446 (struct tui_disasm_window, struct tui_data_window)
7447 (struct tui_cmd_window): Update.
7448
7449 2019-06-25 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-winsource.h (tui_set_exec_info_content)
7452 (tui_show_exec_info_content, tui_erase_exec_info_content)
7453 (tui_clear_exec_info_content, tui_update_exec_info): Change
7454 argument to tui_source_window_base.
7455 * tui/tui-winsource.c (tui_set_exec_info_content)
7456 (tui_show_exec_info_content, tui_erase_exec_info_content)
7457 (tui_clear_exec_info_content, tui_update_exec_info): Change
7458 argument to tui_source_window_base.
7459
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7463 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7464
7465 2019-06-25 Tom Tromey <tom@tromey.com>
7466
7467 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7468 check.
7469
7470 2019-06-25 Tom Tromey <tom@tromey.com>
7471
7472 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7473 type to void.
7474 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7475 type to void.
7476 * tui/tui-source.c (tui_set_source_content): Update.
7477 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7478
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-win.c (window_name_completer, tui_set_focus)
7482 (tui_all_windows_info): Use name method.
7483 * tui/tui-data.h (struct tui_gen_win_info)
7484 (struct tui_source_window, struct tui_disasm_window)
7485 (struct tui_data_window, struct tui_cmd_window) <name>: New
7486 method.
7487 (tui_win_name): Don't declare.
7488 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7489 (tui_win_name): Remove.
7490
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-winsource.h (tui_update_source_window)
7494 (tui_update_source_window_as_is): Change parameter type.
7495 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7496 to be a tui_source_window_base.
7497 (tui_update_source_window_as_is): Likewise.
7498 * tui/tui-win.c (make_visible_with_new_height): Update.
7499
7500 2019-06-25 Tom Tromey <tom@tromey.com>
7501
7502 * tui/tui-winsource.c (tui_erase_source_content)
7503 (tui_show_source_content, tui_show_exec_info_content)
7504 (tui_erase_exec_info_content): Use refresh_window method.
7505 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7506 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7507 from tui_refresh_win.
7508 (tui_data_window::refresh_window): New method.
7509 (tui_win_info::refresh, tui_source_window_base::refresh)
7510 (tui_refresh_all): Use refresh_window method.
7511 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7512 method.
7513 * tui/tui-regs.c (tui_display_register): Call refresh_window
7514 method.
7515 * tui/tui-layout.c (show_source_disasm_command)
7516 (show_source_or_disasm_and_command): Call refresh_window method.
7517 * tui/tui-data.h (struct tui_gen_win_info)
7518 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7519 New method.
7520
7521 2019-06-25 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui.c (tui_rl_other_window, tui_enable)
7524 (tui_is_window_visible, tui_get_command_dimension): Update.
7525 * tui/tui-winsource.c (tui_update_source_window_as_is)
7526 (tui_clear_source_content, tui_erase_source_content)
7527 (tui_show_source_line, tui_source_window_base::refill)
7528 (tui_source_window_base::do_scroll_horizontal)
7529 (tui_source_window_base::set_is_exec_point_at)
7530 (tui_update_breakpoint_info, tui_set_exec_info_content)
7531 (tui_alloc_source_buffer, tui_line_is_displayed)
7532 (tui_addr_is_displayed): Update.
7533 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7534 (tui_check_and_display_highlight_if_needed)
7535 (tui_win_info::make_visible, tui_win_info::refresh)
7536 (tui_refresh_all): Update.
7537 * tui/tui-windata.c (tui_first_data_item_displayed)
7538 (tui_delete_data_content_windows, tui_erase_data_content)
7539 (tui_display_all_data, tui_data_window::refresh_all)
7540 (tui_check_data_values): Update.
7541 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7542 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7543 (tui_win_info::backward_scroll, tui_refresh_all_win)
7544 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7545 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7546 (tui_source_window_base::set_new_height)
7547 (tui_data_window::set_new_height)
7548 (make_invisible_and_set_new_height)
7549 (make_visible_with_new_height, new_height_ok)
7550 (parse_scrolling_args): Update.
7551 * tui/tui-stack.c (tui_show_frame_info): Update.
7552 * tui/tui-source.c (tui_set_source_content)
7553 (tui_set_source_content_nil, tui_source_is_displayed)
7554 (tui_source_window::do_scroll_vertical): Update.
7555 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7556 (tui_display_registers_from, tui_display_reg_element_at_line)
7557 (tui_check_register_values, tui_reg_command): Update.
7558 * tui/tui-layout.c (tui_default_win_height)
7559 (show_source_disasm_command, show_data, init_and_make_win)
7560 (show_source_or_disasm_and_command): Update.
7561 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7562 (tui_redisplay_readline, tui_mld_flush)
7563 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7564 (tui_getc): Update.
7565 * tui/tui-disasm.c (tui_set_disassem_content)
7566 (tui_disasm_window::do_scroll_vertical): Update.
7567 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7568 Now virtual.
7569 (struct tui_win_info): Derive from tui_gen_win_info.
7570 <~tui_win_info>: Mark as override.
7571 <generic>: Remove member.
7572 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7573 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7574 (~tui_data_window, ~tui_win_info)
7575 (tui_free_all_source_wins_content): Update.
7576 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7577
7578 2019-06-25 Tom Tromey <tom@tromey.com>
7579
7580 * tui/tui-layout.c (init_and_make_win): Use new.
7581 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7582 destructor, initializers.
7583 (tui_alloc_generic_win_info): Don't declare.
7584 * tui/tui-data.c (_locator): Add argument to constructor.
7585 (source_win, disasm_win): New globals.
7586 (exec_info): Remove.
7587 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7588 Update.
7589 (tui_alloc_generic_win_info): Remove.
7590 (init_content_element): Use new.
7591 (tui_win_info::tui_win_info): Update.
7592 (free_content_elements) <case DATA_WIN>: Use delete.
7593
7594 2019-06-25 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7597 * tui/tui-windata.c (tui_first_data_item_displayed)
7598 (tui_delete_data_content_windows): Update.
7599 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7600 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7601 (tui_display_registers_from, tui_check_register_values): Update.
7602 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7603 pointer.
7604 * tui/tui-data.c (init_content_element): Update. Allocate the new
7605 window.
7606 (tui_free_data_content): Update.
7607 (free_content_elements) <case DATA_WIN>: Free the window.
7608
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7612 Update.
7613 * tui/tui-layout.c (make_command_window)
7614 (show_source_disasm_command, show_data, init_and_make_win)
7615 (show_source_or_disasm_and_command): Update.
7616 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7617 method.
7618 <can_highight, is_highlighted>: Now bool.
7619 (tui_set_win_highlight): Don't declare.
7620 * tui/tui-data.c (tui_set_win_highlight): Remove.
7621
7622 2019-06-25 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-wingeneral.c (make_visible): Remove check of window
7625 type.
7626
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-win.c (tui_win_info::max_height)
7630 (tui_cmd_window::max_height): New methods.
7631 (new_height_ok): Call max_height.
7632 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7633 <max_height>: New method.
7634
7635 2019-06-25 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-win.c (tui_source_window_base::set_new_height)
7638 (tui_data_window::set_new_height): New methods.
7639 (make_invisible_and_set_new_height): Call set_new_height method.
7640 * tui/tui-data.h (struct tui_win_info)
7641 (struct tui_source_window_base, struct tui_data_window)
7642 <set_new_height>: New method.
7643
7644 2019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7647 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7648 tui_refresh_data_win.
7649 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7650 method.
7651 (tui_refresh_all_win): Call the refresh_all method.
7652 (tui_set_focus): Likewise.
7653 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7654 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7655 Likewise.
7656
7657 2019-06-25 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-winsource.h (tui_refill_source_window)
7660 (tui_set_is_exec_point_at): Don't declare.
7661 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7662 (tui_source_window_base::refill): Rename from
7663 tui_refill_source_window.
7664 (tui_source_window_base::do_scroll_horizontal): Update.
7665 (tui_source_window_base::set_is_exec_point_at): Rename from
7666 tui_set_is_exec_point_at.
7667 (tui_update_all_breakpoint_info): Update.
7668 * tui/tui-stack.c (tui_show_frame_info): Update.
7669 * tui/tui-layout.c (show_data): Add cast.
7670 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7671 * tui/tui-data.h (struct tui_source_window_base) <refill,
7672 set_is_exec_point_at>: New methods.
7673 (tui_source_windows, tui_add_to_source_windows): Update types.
7674 (tui_add_to_source_windows): Remove redundant declaration.
7675 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7676 (tui_source_windows): Change return type.
7677 (tui_clear_source_windows_detail): Update.
7678 (tui_add_to_source_windows): Change type of parameter.
7679 (tui_free_all_source_wins_content): Update.
7680
7681 2019-06-25 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui-wingeneral.c (tui_win_info::refresh)
7684 (tui_source_window_base::refresh): New methods.
7685 (tui_refresh_all): Call the refresh method.
7686 * tui/tui-data.h (struct tui_win_info)
7687 (struct tui_source_window_base) <refresh>: New method.
7688
7689 2019-06-25 Tom Tromey <tom@tromey.com>
7690
7691 * tui/tui.h (tui_is_window_visible): Return bool.
7692 * tui/tui.c (tui_is_window_visible): Return bool.
7693 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7694 (tui_make_visible, tui_make_invisible)
7695 (tui_win_info::make_visible)
7696 (tui_source_window_base::make_visible, make_all_visible)
7697 (tui_make_all_visible, tui_make_all_invisible): Update.
7698 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7699 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7700 bool.
7701 (struct tui_win_info, struct tui_source_window_base)
7702 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7703 * tui/tui-data.c (tui_init_generic_part): Update.
7704
7705 2019-06-25 Tom Tromey <tom@tromey.com>
7706
7707 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7708 (tui_source_window_base::make_visible): New methods.
7709 (make_all_visible): Make method call.
7710 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7711 (struct tui_source_window_base, struct tui_cmd_window): Override
7712 make_visible.
7713 (tui_win_is_source_type): Don't declare.
7714 * tui/tui-data.c (tui_win_is_source_type): Remove.
7715
7716 2019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7719 NULL check.
7720
7721 2019-06-25 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7724 Inline constructor. Add initializers for members.
7725 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7726 constructors; now inline in class.
7727
7728 2019-06-25 Tom Tromey <tom@tromey.com>
7729
7730 * tui/tui-regs.c (tui_show_registers): Update.
7731 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7732 bool.
7733 * tui/tui-data.c (tui_data_window::clear_detail)
7734 (tui_data_window): Update.
7735
7736 2019-06-25 Tom Tromey <tom@tromey.com>
7737
7738 * tui/tui-windata.c (tui_display_all_data)
7739 (tui_display_data_from_line, tui_display_data_from)
7740 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7741 Update.
7742 * tui/tui-regs.c (tui_last_regs_line_no)
7743 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7744 (tui_show_registers, tui_show_register_group)
7745 (tui_display_registers_from, tui_display_reg_element_at_line)
7746 (tui_display_registers_from_line, tui_check_register_values)
7747 (tui_reg_next, tui_reg_prev): Update.
7748 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7749 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7750 tui_data_window.
7751 (struct tui_win_info) <detail>: Remove. Add new fields from
7752 tui_data_info.
7753 (TUI_DATA_WIN): Add cast.
7754 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7755 (~tui_data_window): Simplify.
7756
7757 2019-06-25 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-layout.c (show_source_disasm_command)
7760 (show_source_or_disasm_and_command): Update.
7761 * tui/tui-io.c (update_cmdwin_start_line)
7762 (tui_redisplay_readline): Update.
7763 * tui/tui-data.h (struct tui_command_info): Remove.
7764 (struct tui_win_info) <detail>: Remove command_info member.
7765 (struct tui_data_window) <start_line>: New member, from
7766 tui_command_info.
7767 (TUI_CMD_WIN): Add casts.
7768
7769 2019-06-25 Tom Tromey <tom@tromey.com>
7770
7771 * tui/tui-winsource.c (tui_update_source_window)
7772 (tui_refill_source_window)
7773 (tui_source_window_base::do_scroll_horizontal)
7774 (tui_update_breakpoint_info, tui_set_exec_info_content)
7775 (tui_show_exec_info_content, tui_erase_exec_info_content)
7776 (tui_clear_exec_info_content): Update.
7777 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7778 Update.
7779 * tui/tui-win.c (make_invisible_and_set_new_height)
7780 (make_visible_with_new_height): Update.
7781 * tui/tui-source.c (tui_set_source_content)
7782 (tui_show_symtab_source): Update.
7783 * tui/tui-layout.c (extract_display_start_addr)
7784 (show_source_disasm_command, show_data)
7785 (make_source_or_disasm_window)
7786 (show_source_or_disasm_and_command): Update.
7787 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7788 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7789 "gdbarch".
7790 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7791 to tui_source_window_base.
7792 (struct tui_win_info) <detail>: Remove source_info member.
7793 (struct tui_source_window_base) <has_locator>: Inline.
7794 Move contents from tui_source_info; rename has_locator member to
7795 m_has_locator.
7796 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7797 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7798 header file.
7799 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7800 Simplify.
7801 (tui_free_all_source_wins_content): Cast to
7802 tui_source_window_base.
7803
7804 2019-06-25 Tom Tromey <tom@tromey.com>
7805
7806 * tui/tui-win.c (make_invisible_and_set_new_height)
7807 (make_visible_with_new_height): Call has_locator method.
7808 * tui/tui-layout.c (show_source_disasm_command, show_data)
7809 (show_source_or_disasm_and_command): Update for bool change.
7810 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7811 (tui_win_info) <has_locator>: New method.
7812 (struct tui_source_window_base) <has_locator>: New method.
7813 (tui_win_has_locator): Don't declare.
7814 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7815 from tui_win_has_locator.
7816 (tui_source_window_base): Use false, not FALSE.
7817
7818 2019-06-25 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7821 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7822 clear_detail method directly.
7823 (tui_clear_win_detail): Remove.
7824
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7828 "this", not TUI_DISASM_WIN.
7829
7830 2019-06-25 Tom Tromey <tom@tromey.com>
7831
7832 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7833 declare.
7834 * tui/tui-winsource.c
7835 (tui_source_window_base::do_scroll_horizontal): Rename from
7836 tui_horizontal_source_scroll.
7837 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7838 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7839 from tui_vertical_data_scroll.
7840 * tui/tui-win.h (tui_scroll): Don't declare.
7841 * tui/tui-win.c (tui_win_info::forward_scroll)
7842 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7843 (tui_win_info::right_scroll): Rename and update.
7844 (tui_scroll_forward_command, tui_scroll_backward_command)
7845 (tui_scroll_left_command, tui_scroll_right_command): Update.
7846 (tui_scroll): Remove.
7847 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7848 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7849 from tui_vertical_source_scroll.
7850 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7851 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7852 from tui_vertical_disassem_scroll.
7853 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7854 do_scroll_horizontal>: New methods.
7855 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7856 Likewise.
7857 (struct tui_source_window_base): Add do_scroll_horizontal.
7858 (struct tui_source_window, struct tui_disasm_window): Add
7859 do_scroll_vertical.
7860 (struct tui_data_window, struct tui_cmd_window): Add
7861 do_scroll_horizontal and do_scroll_vertical.
7862 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7863
7864 2019-06-25 Tom Tromey <tom@tromey.com>
7865
7866 * tui/tui-data.h (struct tui_source_window_base): New struct.
7867 (struct tui_source_window): Derive from tui_source_window_base.
7868 (struct tui_disasm_window): New struct.
7869 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7870 from tui_source_window::clear_detail.
7871 (tui_source_window_base): Rename from tui_source_window.
7872 (~tui_source_window_base): Rename from ~tui_source_window.
7873 (tui_alloc_win_info): Create a tui_disasm_window.
7874
7875 2019-06-25 Tom Tromey <tom@tromey.com>
7876
7877 * tui/tui-data.h (struct tui_source_window)
7878 (struct tui_data_window): Declare destructors.
7879 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7880 destructors.
7881 (tui_win_info): Simplify.
7882
7883 2019-06-25 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui-winsource.c (tui_display_main)
7886 (tui_update_source_windows_with_addr)
7887 (tui_update_all_breakpoint_info): Update.
7888 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7889 (new_height_ok, parse_scrolling_args): Update.
7890 * tui/tui-stack.c (tui_show_frame_info): Update.
7891 * tui/tui-data.h (struct tui_list): Remove.
7892 (tui_source_windows): Return a reference to a std::vector.
7893 * tui/tui-data.c (source_windows): Now a std::vector.
7894 (tui_source_windows): Change return type.
7895 (tui_clear_source_windows): Rewrite.
7896 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7897 (tui_free_all_source_wins_content): Rewrite.
7898
7899 2019-06-25 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7902 (struct tui_data_window, struct tui_cmd_window): Declare
7903 clear_detail method.
7904 * tui/tui-data.c (tui_source_window::clear_detail)
7905 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7906 methods.
7907 (tui_clear_win_detail): Simplify.
7908
7909 2019-06-25 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-layout.c (make_source_window, make_disasm_window)
7912 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7913 Return the new window.
7914 (show_source_disasm_command, show_data)
7915 (show_source_or_disasm_and_command): Update.
7916
7917 2019-06-25 Tom Tromey <tom@tromey.com>
7918
7919 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7920 parameter. Return the new window.
7921 (show_source_disasm_command): Update and remove NULL check.
7922 (show_source_or_disasm_and_command): Update.
7923
7924 2019-06-25 Tom Tromey <tom@tromey.com>
7925
7926 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7927
7928 2019-06-25 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-data.h (struct tui_win_info): Make constructor
7931 protected. Make destructor virtual. Add initializers.
7932 (tui_source_window, tui_data_window, tui_cmd_window): New
7933 classes.
7934 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7935 constructor. Add "type" parameter.
7936 (tui_source_window, tui_data_window, tui_cmd_window): New
7937 constructors.
7938 (tui_alloc_win_info): Instantiate the appropriate subclass.
7939
7940 2019-06-25 Tom Tromey <tom@tromey.com>
7941
7942 * tui/tui-win.c (tui_resize_all): Use delete.
7943 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7944 destructor.
7945 (tui_free_window): Don't declare.
7946 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7947 Update.
7948
7949 2019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-data.h (struct tui_win_info): Add constructor.
7952 * tui/tui-data.c (tui_alloc_win_info): Use new.
7953 (tui_free_window): Use delete.
7954
7955 2019-06-22 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7958 declare.
7959 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7960
7961 2019-06-22 Tom Tromey <tom@tromey.com>
7962
7963 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7964 declare.
7965 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7966
7967 2019-06-22 Tom de Vries <tdevries@suse.de>
7968
7969 * dwarf2read.c (create_addrmap_from_aranges)
7970 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7971 instead of '%zu'.
7972
7973 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7974
7975 * dwarf2read.h (dwarf2_section_info_def): Remove.
7976 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7977 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7978 std::vector<dwarf2_section_info>.
7979 (struct dwo_file) <~dwo_file>: Remove.
7980 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7981 types field.
7982 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7983 (dwarf2_read_debug_names): Likewise.
7984 (create_debug_types_hash_table): Change parameter type to
7985 array_view, adjust code accordingly.
7986 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7987 (partial_die_info::fixup): Likewise.
7988 (determine_prefix): Likewise.
7989 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7990
7991 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7992
7993 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7994 gdb_bfd_ref_ptr.
7995 <~dwo_file>: Remove call to gdb_bfd_unref.
7996 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7997 gdb_bfd_ref_ptr::get.
7998
7999 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8000
8001 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8002 type to htab_up.
8003 * dwarf2read.c (struct dwo_file): Initialize fields.
8004 <~dwo_file>: New.
8005 (free_dwo_file): Remove, move content to ~dwo_file.
8006 (struct dwo_file_deleter): Remove.
8007 (dwo_file_up>: Remove custom deleter.
8008 (free_dwo_files): Remove.
8009 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8010 dwo_files.
8011 (process_skeletonless_type_units): Call unique_ptr::get.
8012 (allocate_dwo_file_hash_table): Add deleter to created hash
8013 table. Change return type to htab_up.
8014 (lookup_dwo_file_slot): Don't memset dwo_file, call
8015 unique_ptr::get.
8016 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8017 (create_dwo_unit_in_dwp_v2): Likewise.
8018 (open_and_init_dwo_file): Likewise.
8019 (free_dwo_file_from_slot): Remove.
8020
8021 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8022
8023 * dwarf2read.h (struct dwarf2_section_info) <readin,
8024 is_virtual>: Change type to bool.
8025 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8026 true instead of 1.
8027
8028 2019-06-19 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-data.h (tui_init_content_element): Don't declare.
8031
8032 2019-06-19 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-data.h (tui_init_win_info): Don't declare.
8035
8036 2019-06-19 Tom de Vries <tdevries@suse.de>
8037
8038 * dwarf2read.h (abstract_to_concrete): Change type to
8039 std::unordered_map<sect_offset, std::vector<sect_offset>,
8040 gdb::hash_enum<sect_offset>>.
8041
8042 2019-06-19 Tom Tromey <tromey@adacore.com>
8043
8044 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8045 EVAL_AVOID_SIDE_EFFECTS specially.
8046
8047 2019-06-19 Tom Tromey <tromey@adacore.com>
8048
8049 * source-cache.c (highlighter): New global.
8050 (source_cache::get_source_lines): Create a highlighter on demand.
8051
8052 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8053
8054 * defs.h (deprecated_interactive_hook): Delete declaration.
8055 * interps.c (clear_interpreter_hooks): Remove use of
8056 deprecated_interactive_hook.
8057 * top.c (deprecated_interactive_hook): Delete definition.
8058 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8059
8060 2019-06-18 Tom de Vries <tdevries@suse.de>
8061
8062 PR gdb/24515
8063 * dwarf2read.h (abstract_to_concrete): Change type from
8064 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8065 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8066 * dwarf2read.c (read_variable): Update.
8067 (dwarf2_fetch_die_loc_sect_off): Update.
8068
8069 2019-06-17 Tom de Vries <tdevries@suse.de>
8070
8071 PR gdb/24617
8072 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8073 accessing parent[parent_len - 1].
8074
8075 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8076
8077 PR gdb/24364
8078 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8079 call dtrace_process_dof with NULL dof.
8080
8081 2019-06-16 Tom de Vries <tdevries@suse.de>
8082
8083 PR gdb/24445
8084 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8085
8086 2019-06-16 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8089 (make_all_visible): Use address of member.
8090
8091 2019-06-16 Tom Tromey <tom@tromey.com>
8092
8093 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8094 (tui_free_window, free_content, free_content_elements): Remove
8095 unnecessary cast.
8096 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8097 cast.
8098 * tui/tui-regs.c (tui_show_register_group)
8099 (tui_display_registers_from, tui_display_reg_element_at_line):
8100 Remove unnecessary cast.
8101
8102 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * linux-nat.c (normal_mask): Delete.
8105 (_initialize_linux_nat): Don't initialise normal_mask.
8106
8107 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8108
8109 PR gdb/24445
8110 * dwarf-index-write.h (write_psymtabs_to_index): Add
8111 dwz_basename parameter.
8112 * dwarf-index-write.c (write_gdbindex): Move file writing to
8113 write_gdbindex_1. Change return type void.
8114 (assert_file_size): Move up, remove filename parameter.
8115 (write_gdbindex_1): New function.
8116 (write_debug_names): Change return type to void, call
8117 assert_file_size.
8118 (struct index_wip_file): New struct.
8119 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8120 file logic to index_wip_file. Write index for dwz file if
8121 needed.
8122 (save_gdb_index_command): Pass basename of dwz file, if present.
8123 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8124 build-id of dwz file, if present.
8125 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8126 (dwarf2_get_dwz_file): Likewise.
8127 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8128 (dwarf2_get_dwz_file): Likewise.
8129
8130 2019-06-16 Tom Tromey <tom@tromey.com>
8131
8132 * coffread.c (process_coff_symbol): Use xstrdup.
8133 * value.c (create_internalvar): Use xstrdup.
8134
8135 2019-06-16 Tom Tromey <tom@tromey.com>
8136
8137 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8138 * breakpoint.c (stopin_command, stopat_command)
8139 (until_break_command, decode_location_default): Remove unnecessary
8140 cast.
8141 * utils.c (subset_compare): Remove unnecessary cast.
8142 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8143 cast.
8144 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8145 cast.
8146 * infcmd.c (path_command): Remove unnecessary cast.
8147 * coffread.c (decode_type): Remove unnecessary cast.
8148 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8149 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8150 * tui/tui-stack.c (tui_show_locator_content)
8151 (tui_show_frame_info): Remove unnecessary cast.
8152 * tui/tui-win.c (tui_scroll_forward_command)
8153 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8154 (parse_scrolling_args): Remove unnecessary cast.
8155 * tui/tui-data.c (init_win_info, tui_del_window)
8156 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8157 (free_content_elements): Remove unnecessary cast.
8158 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8159 unnecessary cast.
8160 * tui/tui-source.c (tui_set_source_content)
8161 (tui_vertical_source_scroll): Remove unnecessary cast.
8162 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8163 cast.
8164 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8165 * tui/tui-regs.c (tui_display_registers_from)
8166 (tui_display_register): Remove unnecessary cast.
8167 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8168 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8169 (make_visible): Remove unnecessary cast.
8170 * tui/tui-winsource.c (tui_erase_source_content)
8171 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8172 unnecessary cast.
8173 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8174 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8175 * stabsread.c (read_type, read_array_type, read_range_type):
8176 Remove unnecessary cast.
8177 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8178 (parse_symbol, parse_type, upgrade_type, parse_external)
8179 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8180 unnecessary cast.
8181 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8182
8183 2019-06-16 Tom Tromey <tom@tromey.com>
8184
8185 * tui/tui-data.c (tui_alloc_generic_win_info)
8186 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8187 checks.
8188
8189 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8190 Andrew Burgess <andrew.burgess@embecosm.com>
8191
8192 * f-typeprint.c (f_print_type): Don't return early for not
8193 associated or not allocated types.
8194 (f_type_print_varspec_suffix): Add print_rank parameter and print
8195 ranks of array types in case they dangling.
8196 (f_type_print_base): Add print_rank parameter.
8197
8198 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * NEWS: Mention new MI commands.
8201 * break-catch-throw.c (enum exception_event_kind): Move to
8202 breakpoint.h.
8203 (print_mention_exception_catchpoint): Output text as a single
8204 message.
8205 (catch_exception_command_1): Rename to...
8206 (catch_exception_event): ...this, make non-static, update header
8207 command, and change some parameter types.
8208 (catch_catch_command): Update for changes to
8209 catch_exception_command_1.
8210 (catch_throw_command): Likewise.
8211 (catch_rethrow_command): Likewise.
8212 * breakpoint.c (enum exception_event_kind): Delete.
8213 * breakpoint.h (enum exception_event_kind): Moved here from
8214 break-catch-throw.c.
8215 (catch_exception_event): Declare.
8216 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8217 (mi_cmd_catch_throw): New function.
8218 (mi_cmd_catch_rethrow): New function.
8219 (mi_cmd_catch_catch): New function.
8220 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8221 'catch-catch' entries.
8222 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8223 (mi_cmd_catch_rethrow): Declare.
8224 (mi_cmd_catch_catch): Declare.
8225
8226 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8227
8228 * annotate.c (annotate_source_line): Change return type to void,
8229 update implementation to match.
8230 * annotate.h (annotate_source_line): Change return type to void,
8231 update header comment.
8232 * stack.c (print_frame_info): Don't change what frame information
8233 is printed based on whether annotations are on or not.
8234
8235 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8236
8237 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8238 (annotate_source): Make static.
8239 (annotate_source_line): Moved from source.c and renamed from
8240 identify_source_line. Update the return type.
8241 * annotate.h (annotate_source): Delete declaration.
8242 (annotate_source_line): Declaration moved from source.h, and
8243 renamed from identify_source_line. Return type updated.
8244 * source.c (identify_source_line): Moved to annotate.c and renamed
8245 to annotate_source_line.
8246 (info_line_command): Remove check of annotation_level.
8247 * source.h (identify_source_line): Move declaration to annotate.h
8248 and rename to annotate_source_line.
8249 * stack.c: Add 'annotate.h' include.
8250 (print_frame_info): Remove check of annotation_level before
8251 calling annotate_source_line.
8252
8253 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * source-cache.c (source_cache::get_plain_source_lines): Use
8256 open_source_file_with_line_charpos instead of just
8257 open_source_file, remove call to find_source_lines.
8258 (source_cache::get_source_lines): Likewise.
8259 * source.c (find_source_lines): Make static.
8260 (get_filename_and_charpos): Renamed into...
8261 (open_source_file_with_line_charpos): ..this along with changes to
8262 return a scoped_fd, and some other minor clean ups.
8263 (identify_source_line): Use open_source_file_with_line_charpos.
8264 (search_command_helper): Use open_source_file_with_line_charpos
8265 instead of just open_source_file, remove call to
8266 find_source_lines.
8267 * source.h (open_source_file_with_line_charpos): Declare new
8268 function.
8269 (find_source_lines): Delete declaration.
8270
8271 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * source.c (get_filename_and_charpos): Remove fullname
8274 parameter.
8275 (identify_source_line): Update call to get_filename_and_charpos.
8276
8277 2019-06-14 Tom Tromey <tromey@adacore.com>
8278
8279 PR gdb/24502:
8280 * ui-style.h (skip_ansi_escape): Update comment.
8281 * ui-file.h (class no_terminal_escape_file): New class.
8282 * ui-file.c (no_terminal_escape_file::write)
8283 (no_terminal_escape_file::puts): New methods.
8284 * cli/cli-logging.c (handle_redirections): Use
8285 no_terminal_escape_file.
8286
8287 2019-06-14 Tom Tromey <tromey@adacore.com>
8288
8289 * NEWS: Move convenience variable news above Python news.
8290
8291 2019-06-14 Tom Tromey <tom@tromey.com>
8292
8293 * gnulib: Move directory to top-level.
8294 * configure.ac: Don't configure gnulib.
8295 * configure: Rebuild.
8296 * common/common-defs.h: Use new path to gnulib.
8297 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8298 (GNULIB_H): Remove.
8299 (INCGNU): Look in new gnulib location.
8300 (HFILES_NO_SRCDIR): Remove gnulib files.
8301 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8302 (generated_files): Remove GNULIB_H.
8303 ($(LIBGNU), all-lib): Remove targets.
8304 (distclean): Don't mention GNULIB_BUILDDIR.
8305 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8306
8307 2019-06-14 Tom Tromey <tromey@adacore.com>
8308
8309 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8310 Warn if symbol file does not provide any symbols.
8311
8312 2019-06-14 Tom Tromey <tromey@adacore.com>
8313
8314 * source.c (find_and_open_source): Respect basenames_may_differ.
8315
8316 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8317
8318 * annotate.c (annotate_breakpoints_invalid): Make use of
8319 scoped_restore_terminal_state.
8320 (annotate_frames_invalid): Likewise.
8321
8322 2019-06-14 Tom Tromey <tromey@adacore.com>
8323
8324 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8325 allow assignment to an internalvar.
8326
8327 2019-06-14 Tom Tromey <tromey@adacore.com>
8328
8329 * ada-lex.l: Allow "_" in attribute names.
8330
8331 2019-06-14 Tom Tromey <tromey@adacore.com>
8332
8333 PR gdb/24653:
8334 * regcache.c (registers_changed): Don't call alloca.
8335 * top.c (execute_command): Don't call alloca.
8336
8337 2019-06-13 Pedro Alves <palves@redhat.com>
8338
8339 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8340 'expression'. When parsing an expression, error out if there's
8341 junk after "unlimited".
8342 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8343 (do_set_command): Adjust calls to is_unlimited_literal.
8344
8345 2019-06-13 Pedro Alves <palves@redhat.com>
8346
8347 * compile/compile.c (make_compile_options_def_group): Add braces
8348 around array_view initializer.
8349 * thread.c (make_thread_apply_all_options_def_group)
8350 (make_thread_apply_all_options_def_group): Likewise.
8351
8352 2019-06-13 Pedro Alves <palves@redhat.com>
8353
8354 * NEWS (New commands): Mention "maint test-options
8355 require-delimiter", "maint test-options unknown-is-error", "maint
8356 test-options unknown-is-operand" and "maint show
8357 test-options-completion-result".
8358 (New command options, command completion): New section.
8359 (Completion improvements): New section.
8360 Mention that you can abbreviate "unlimited".
8361
8362 2019-06-13 Pedro Alves <palves@redhat.com>
8363
8364 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8365 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8366 * unittests/cli-utils-selftests.c (test_parse_flags)
8367 (test_parse_flags_qcs): Delete.
8368 (test_cli_utils): Don't call deleted functions.
8369
8370 2019-06-13 Pedro Alves <palves@redhat.com>
8371
8372 * thread.c: Include "cli/cli-option.h".
8373 (tp_array_compar_ascending): Global.
8374 (tp_array_compar): Delete function.
8375 (tp_array_compar_ascending, tp_array_compar_descending): New
8376 functions.
8377 (ascending_option_def, qcs_flag_option_def)
8378 (thr_qcs_flags_option_defs)
8379 (make_thread_apply_all_options_def_group)
8380 (make_thread_apply_options_def_group): New.
8381 (thread_apply_all_command): Use gdb::option::process_options.
8382 (thread_apply_command_completer)
8383 (thread_apply_all_command_completer): New.
8384 (thread_apply_command): Use gdb::option::process_options.
8385 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8386 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8387 to generate help text of "thread apply". Adjust "taas"'s help.
8388 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8389 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8390
8391 2019-06-13 Pedro Alves <palves@redhat.com>
8392
8393 * thread.c (thread_apply_command): Check for invalid TID with
8394 isdigit instead of !isalpha.
8395
8396 2019-06-13 Pedro Alves <palves@redhat.com>
8397
8398 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8399 (validate_flags_qcs): New.
8400 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8401 (validate_flags_qcs): Declare.
8402 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8403 (make_frame_apply_options_def_group): New.
8404 (frame_apply_command_count): Process options with
8405 gdb::option::process_options.
8406 (frame_apply_completer): New.
8407 (frame_apply_level_completer, frame_apply_all_completer)
8408 (frame_apply_completer): New.
8409 (_initialize_stack): Update help of "frame apply", "frame apply
8410 level", "frame apply all" and "faas" to mention supported options
8411 and install command completers.
8412 * stack.h (frame_apply_all_completer): Declare.
8413 * thread.c: Include "stack.h".
8414 (tfaas_command): Add "--".
8415 (_initialize_thread): Update help "tfaas" to mention supported
8416 options and install command completer.
8417
8418 2019-06-13 Pedro Alves <palves@redhat.com>
8419
8420 * completer.c (complete_nested_command_line): New.
8421 (gdb_completion_word_break_characters_throw): Add assertion.
8422 * completer.h (complete_nested_command_line): Declare.
8423
8424 2019-06-13 Pedro Alves <palves@redhat.com>
8425
8426 * stack.c (parse_backtrace_qualifiers): New.
8427 (backtrace_command): Use it.
8428 (backtrace_command_completer): Complete on qualifiers.
8429
8430 2019-06-13 Pedro Alves <palves@redhat.com>
8431
8432 * frame.c: Include "cli/cli-option.h.
8433 (user_set_backtrace_options): New.
8434 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8435 Delete.
8436 (get_prev_frame): Adjust.
8437 (boolean_option_def, uinteger_option_def)
8438 (set_backtrace_option_defs): New.
8439 (_initialize_frame): Adjust and use
8440 gdb::option::add_setshow_cmds_for_options to install "set
8441 backtrace past-main" and "set backtrace past-entry".
8442 * frame.h: Include "cli/cli-option.h".
8443 (struct frame_print_options): Forward declare.
8444 (print_frame_arguments_all, print_frame_arguments_scalars)
8445 (print_frame_arguments_none): Declare.
8446 (print_entry_values): Delete declaration.
8447 (struct frame_print_options, user_frame_print_options): New.
8448 (struct set_backtrace_options): New.
8449 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8450 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8451 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8452 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8453 (list_args_or_locals): Add frame_print_options parameter.
8454 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8455 * python/py-framefilter.c (enumerate_args): Pass down
8456 USER_FRAME_PRINT_OPTIONS.
8457 * stack.c: Include "cli/cli-option.h".
8458 (print_frame_arguments_all, print_frame_arguments_scalars)
8459 (print_frame_arguments_none): Declare.
8460 (print_raw_frame_arguments, print_entry_values): Delete.
8461 (user_frame_print_options): New.
8462 (boolean_option_def, enum_option_def, frame_print_option_defs):
8463 New.
8464 (struct backtrace_cmd_options): New.
8465 (bt_flag_option_def): New.
8466 (backtrace_command_option_defs): New.
8467 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8468 (print_frame_arg, read_frame_arg, print_frame_args)
8469 (print_frame_info, print_frame): Add frame_print_options parameter
8470 and use it.
8471 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8472 (backtrace_command_1): Add frame_print_options and
8473 backtrace_cmd_options parameters and use them.
8474 (make_backtrace_options_def_group): New.
8475 (backtrace_command): Process command options with
8476 gdb::option::process_options.
8477 (backtrace_command_completer): New.
8478 (_initialize_stack): Extend "backtrace"'s help to mention
8479 supported options. Install completer for "backtrace".
8480 Install some settings commands with add_setshow_cmds_for_options.
8481
8482 2019-06-13 Pedro Alves <palves@redhat.com>
8483
8484 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8485 and that "set/show print raw frame-arguments" are now deprecated.
8486
8487 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8488 command.
8489 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8490 * stack.c (_initialize_stack): Install "set/show print
8491 raw-frame-arguments", and deprecate "set/show print raw
8492 frame-arguments".
8493 * valprint.c (_initialize_valprint): Deprecate "set/show print
8494 raw".
8495
8496 2019-06-13 Pedro Alves <palves@redhat.com>
8497
8498 * compile/compile.c (struct compile_options): New.
8499 (compile_flag_option_def, compile_command_option_defs)
8500 (make_compile_options_def_group): New.
8501 (compile_file_command): Handle options with
8502 gdb::option::process_options.
8503 (compile_file_command_completer): New function.
8504 (compile_code_command): Handle options with
8505 gdb::option::process_options.
8506 (compile_code_command_completer): New function.
8507 (_initialize_compiler): Install completers for "compile code" and
8508 "compile file". Mention available options in "compile code" and
8509 "compile code"'s help.
8510 * completer.c (advance_to_completion_word): New, factored out from
8511 ...
8512 (advance_to_expression_complete_word_point): ... this.
8513 (advance_to_filename_complete_word_point): New.
8514 * completer.h (advance_to_filename_complete_word_point): New
8515 declaration.
8516
8517 2019-06-13 Pedro Alves <palves@redhat.com>
8518
8519 * compile/compile.c: Include "cli/cli-option.h".
8520 (compile_print_value): Scope data pointer is now a
8521 value_print_options pointer; adjust.
8522 (compile_print_command): Process options. Scope data pointer is
8523 now a value_print_options pointer; adjust.
8524 (_initialize_compile): Update "compile print"'s help to include
8525 supported options. Install a completer for "compile print".
8526 * cp-valprint.c (show_vtblprint, show_objectprint)
8527 (show_static_field_print): Delete.
8528 (_initialize_cp_valprint): Don't install "set print
8529 static-members", "set print vtbl", "set print object" here.
8530 * printcmd.c: Include "cli/cli-option.h" and
8531 "common/gdb_optional.h".
8532 (print_command_parse_format): Rework to fill in a
8533 value_print_options instead of a format_data.
8534 (print_value): Change parameter type from format_data pointer to
8535 value_print_options reference. Adjust.
8536 (print_command_1): Process options. Adjust to pass down a
8537 value_print_options.
8538 (print_command_completer): New.
8539 (_initialize_printcmd): Install print_command_completer as
8540 handle_brkchars completer for the "print" command. Update
8541 "print"'s help to include supported options.
8542 * valprint.c: Include "cli/cli-option.h".
8543 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8544 here from cp-valprint.c.
8545 (boolean_option_def, uinteger_option_def)
8546 (value_print_option_defs, make_value_print_options_def_group):
8547 New. Use gdb::option::add_setshow_cmds_for_options to install
8548 "set print elements", "set print null-stop", "set print repeats",
8549 "set print pretty", "set print union", "set print array", "set
8550 print address", "set print symbol", "set print array-indexes".
8551 * valprint.h: Include <string> and "cli/cli-option.h".
8552 (make_value_print_options_def_group): Declare.
8553 (print_value): Change parameter type from format_data pointer to
8554 value_print_options reference.
8555 (print_command_completer): Declare.
8556
8557 2019-06-13 Pedro Alves <palves@redhat.com>
8558
8559 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8560 (COMMON_SFILES): Add maint-test-settings.c.
8561 * cli/cli-decode.c (boolean_enums): New global, factored out from
8562 ...
8563 (add_setshow_boolean_cmd): ... here.
8564 * cli/cli-decode.h (boolean_enums): Declare.
8565 * cli/cli-option.c: New file.
8566 * cli/cli-option.h: New file.
8567 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8568 factored out from ...
8569 (parse_cli_boolean_value(const char *)): ... this.
8570 (is_unlimited_literal): Change parameter type to pointer to
8571 pointer. Adjust and advance ARG pointer.
8572 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8573 (parse_cli_var_enum): New, factored out from ...
8574 (do_set_command): ... this. Adjust.
8575 * cli/cli-setshow.h (parse_cli_boolean_value)
8576 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8577 (parse_cli_var_enum): Declare.
8578 * cli/cli-utils.c: Include "cli/cli-option.h".
8579 (get_ulongest): New.
8580 * cli/cli-utils.h (get_ulongest): Declare.
8581 (check_for_argument): New overloads.
8582 * maint-test-options.c: New file.
8583
8584 2019-06-13 Pedro Alves <palves@redhat.com>
8585
8586 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8587 parse a range if "-" is at the end of the string.
8588
8589 2019-06-13 Pedro Alves <palves@redhat.com>
8590
8591 * cli/cli-setshow.c (parse_auto_binary_operation)
8592 (parse_cli_boolean_value): Don't allow "o".
8593
8594 2019-06-13 Pedro Alves <palves@redhat.com>
8595
8596 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8597 * NEWS: Mention maint test-settings KIND.
8598 * maint-test-settings.c: New file.
8599
8600 2019-06-13 Pedro Alves <palves@redhat.com>
8601
8602 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8603 completer.
8604 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8605 "set" completers.
8606
8607 2019-06-13 Pedro Alves <palves@redhat.com>
8608
8609 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8610 after item.
8611
8612 2019-06-13 Pedro Alves <palves@redhat.com>
8613
8614 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8615
8616 2019-06-13 Pedro Alves <palves@redhat.com>
8617
8618 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8619 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8620 call.
8621 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8622 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8623 calls.
8624 (check_for_argument): Skip spaces after argument.
8625
8626 2019-06-13 Pedro Alves <palves@redhat.com>
8627
8628 * thread.c (thread_apply_command): Adjust TID parsing.
8629 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8630 detected before end of string.
8631 (tid_is_in_list): Error out if LIST is invalid.
8632
8633 2019-06-13 Pedro Alves <palves@redhat.com>
8634
8635 * completer.c (complete_line_internal_1): Rewind completion word
8636 point.
8637 (completion_tracker::advance_custom_word_point_by): Change
8638 parameter type to int.
8639 * completer.h (completion_tracker::advance_custom_word_point_by):
8640 Likewise.
8641
8642 2019-06-13 Pedro Alves <palves@redhat.com>
8643
8644 * completer.c (advance_to_completion_word): Handle delimiters.
8645
8646 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8647
8648 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8649
8650 2019-06-11 Tom Tromey <tom@tromey.com>
8651
8652 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8653 (xmalloc_failed): Move to alloc.c.
8654 * alloc.c: New file.
8655 * Makefile.in (COMMON_SFILES): Add alloc.c.
8656
8657 2019-06-11 Tom Tromey <tom@tromey.com>
8658
8659 * nat/linux-waitpid.c: Don't include server.h.
8660 (linux_debug): Remove.
8661 (my_waitpid): Update.
8662
8663 2019-06-11 Tom Tromey <tromey@adacore.com>
8664
8665 * infcall.c (_initialize_infcall): Remove trailing newline from
8666 help.
8667 * user-regs.c (_initialize_user_regs): Remove trailing newline
8668 from help.
8669 * typeprint.c (_initialize_typeprint): Remove trailing newline
8670 from help.
8671 * reverse.c (_initialize_reverse): Remove trailing newlines from
8672 help.
8673 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8674 from help.
8675 * language.c (add_set_language_command): Remove trailing newline
8676 from help.
8677 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8678 help.
8679 * disasm.c (_initialize_disasm): Remove trailing newline from
8680 help.
8681 * top.c (init_main): Remove trailing newline from help.
8682 * interps.c (_initialize_interpreter): Remove trailing newline
8683 from help.
8684 * btrace.c (_initialize_btrace): Remove trailing newlines from
8685 help.
8686 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8687 from help.
8688 * python/python.c (_initialize_python): Remove trailing newline
8689 from help.
8690 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8691 help.
8692 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8693 from help. Reformat some text.
8694 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8695 from help.
8696 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8697 newline from help.
8698
8699 2019-06-11 Tom Tromey <tromey@adacore.com>
8700
8701 * darwin-nat.c (darwin_decode_exception_message)
8702 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8703
8704 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * valops.c (value_slice): Check for not allocated or not
8707 associated values.
8708
8709 2019-06-10 Tom de Vries <tdevries@suse.de>
8710
8711 PR gdb/24618
8712 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8713 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8714 invalid.
8715
8716 2019-06-10 Tom de Vries <tdevries@suse.de>
8717
8718 PR gdb/24611
8719 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8720 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8721
8722 2019-06-10 Tom de Vries <tdevries@suse.de>
8723
8724 PR symtab/24545
8725 * symtab.c (struct demangled_name_entry): Add language field.
8726 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8727 static minimal symbol". Set and use language field.
8728
8729 2019-06-10 Tom Tromey <tromey@adacore.com>
8730
8731 * ada-lang.c (_initialize_ada_language): Update help text.
8732
8733 2019-06-10 Tom Tromey <tromey@adacore.com>
8734
8735 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8736 with a newline.
8737 * guile/guile.c (handle_boot_error): Don't end warning with a
8738 newline.
8739 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8740 warning with a newline.
8741 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8742 newline.
8743 (s12z_frame_cache): Likewise.
8744 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8745 a newline.
8746 * solib-svr4.c (disable_probes_interface): Don't end warning with
8747 a newline.
8748 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8749 newline.
8750 * python/python.c (do_finish_initialization): Don't end warning
8751 with a newline.
8752
8753 2019-06-10 Tom Tromey <tom@tromey.com>
8754
8755 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8756 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8757 gdbpy_enter.
8758
8759 2019-06-10 Tom Tromey <tromey@adacore.com>
8760
8761 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8762 data.
8763 (elf_new_init): Don't call stabsread_new_init.
8764 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8765 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8766 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8767
8768 2019-06-10 Tom de Vries <tdevries@suse.de>
8769
8770 PR symtab/16264
8771 PR symtab/24517
8772 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8773
8774 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8775
8776 * source.c (find_and_open_source): Also rewrite relative file
8777 names.
8778
8779 2019-04-26 Amos Bird <amosbird@gmail.com>
8780
8781 * annotate.c (annotate_thread_exited): Add "thread-exited"
8782 annotation.
8783
8784 2019-06-06 Tom Tromey <tromey@adacore.com>
8785
8786 * maint.h (class scoped_command_stats): Use
8787 DISABLE_COPY_AND_ASSIGN.
8788 <print_time>: New method.
8789 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8790 print_time.
8791 (scoped_command_stats::print_time): New method.
8792
8793 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8796 instructions of lengths 6 or 8 bytes.
8797
8798 2019-06-04 Pedro Alves <palves@redhat.com>
8799
8800 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8801
8802 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8803 * breakpoint.c (condition_completer): Likewise.
8804 * cli/cli-dump.c (scan_expression): Likewise.
8805 * common/filestuff.c (mkdir_recursive): Likewise.
8806 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8807 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8808 (gdb_abspath): Likewise.
8809 * compile/compile-cplus-types.c
8810 (compile_cplus_instance::decl_name): Likewise.
8811 * completer.c (complete_explicit_location):
8812 (signal_completer, reg_or_group_completer_1): Likewise.
8813 * cp-support.c (cp_remove_params_if_any): Likewise.
8814 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8815 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8816 * infcmd.c (strip_bg_char): Likewise.
8817 * linespec.c (copy_token_string): Likewise.
8818 * mi/mi-main.c (output_cores): Likewise.
8819 * psymtab.c (psymtab_search_name):
8820 * symfile.c (test_set_ext_lang_command): Likewise.
8821 * target.c (target_fileio_read_stralloc): Likewise.
8822 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8823 * value.c (complete_internalvar): Likewise.
8824
8825 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8826
8827 Add objfile property to gdb.Type.
8828 * NEWS: Mention Python API addition.
8829 * python/py-type.c (typy_get_objfile): New method.
8830
8831 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8832
8833 * NEWS: Mention the new set|show style [title|highlight].
8834 Mention changes to "show style", "help" and "apropos".
8835
8836 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8837
8838 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8839 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8840 instead of print_help_for_command.
8841 (print_doc_of_command): New function.
8842 (help_list): Add 'apropos -v word' suggestion.
8843 (print_help_for_command): Style the command name using title style.
8844 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8845 (_initialize_cli_cmds): Describe -v in apropos_command help.
8846
8847 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8848
8849 * cli/cli-style.h (cli_style_option): Add name in constructor,
8850 add m_name class member, add constructor with intensity,
8851 add name class function.
8852 (cli_style_option::add_setshow_commands): Remove name argument.
8853 (highlight_style, title_style): New styles.
8854 * cli/cli-style.c (do_show): New function that shows a style
8855 characteristic styling the style name with itself.
8856 (set_style_name): New function.
8857 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8858 Update all callers according to the changes in cli/cli-style.h.
8859 * utils.h (fputs_highlighted): New function.
8860 * utils.c (fputs_highlighted): Likewise.
8861
8862 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8863
8864 * NEWS: Mention new pipe command and new convenience variables.
8865
8866 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8867
8868 * cli/cli-cmds.c (pipe_command): New function.
8869 (_initialize_cli_cmds): Call add_com for pipe_command.
8870 Define | as an alias for pipe.
8871 (exit_status_set_internal_vars): New function.
8872 (shell_escape): Call exit_status_set_internal_vars.
8873 cli/cli-decode.c (find_command_name_length): Recognize | as
8874 a single character command.
8875
8876 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8877
8878 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8879 top.c (execute_command_to_ui_file): New function, mostly a copy
8880 of execute_command_to_string.
8881 (execute_command_to_string): Implement by calling
8882 execute_command_to_ui_file.
8883
8884 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8885
8886 * top.h (saved_command_line): Remove declaration.
8887 * top.c (previous_saved_command_line, previous_repeat_arguments):
8888 New variables.
8889 (saved_command_line): Make static, define together with other
8890 'repeat variables'.
8891 (dont_repeat): Clear repeat_arguments.
8892 (repeat_previous, get_saved_command_line, save_command_line):
8893 New functions.
8894 (gdb_init): Initialize saved_command_line
8895 and previous_saved_command_line.
8896 * main.c (captured_main_1): Remove saved_command_line initialization.
8897 * event-top.c (handle_line_of_input): Update to use
8898 the new 'repeat' related functions instead of direct access to
8899 saved_command_line.
8900 * command.h (repeat_previous, get_saved_command_line,
8901 save_command_line): New declarations.
8902 (dont_repeat): Add comment.
8903
8904 2019-05-30 Tom Tromey <tromey@adacore.com>
8905
8906 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8907 Fix comment.
8908 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8909
8910 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8911
8912 PR cli/24587
8913 * completer.c (complete): Initialize variable word.
8914
8915 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8916
8917 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8918 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8919 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8920 'body' is NULL to the outter 'if', protecting the '!is_define'
8921 situation as well.
8922
8923 2019-05-29 Tom Tromey <tromey@adacore.com>
8924
8925 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8926 (dwarf_unknown): New function.
8927 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8928 (dwarf_type_encoding_name): Use dwarf_unknown.
8929
8930 2019-05-29 Tom Tromey <tromey@adacore.com>
8931
8932 PR c++/20020:
8933 * cp-valprint.c (cp_print_value_fields): Call
8934 cp_print_static_field inside "try".
8935
8936 2019-05-29 Tom Tromey <tromey@adacore.com>
8937
8938 * inflow.c (struct terminal_info): Add default operator=.
8939 * configure: Rebuild.
8940 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8941 -Wdeprecated-copy-dtor, -Wredundant-move.
8942
8943 2019-05-29 Tom Tromey <tromey@adacore.com>
8944
8945 * NEWS: Add entry.
8946 * infcmd.c (print_return_value_1): Handle finish_print
8947 option.
8948 (show_print_finish): New function.
8949 (_initialize_infcmd): Add "set/show print finish" commands.
8950 * valprint.c (user_print_options): Initialize new member.
8951 * valprint.h (struct value_print_options) <finish_print>: New
8952 member.
8953
8954 2019-05-28 Tom Tromey <tromey@adacore.com>
8955
8956 * ada-lang.c (ada_remove_Xbn_suffix)
8957 (find_old_style_renaming_symbol)
8958 (parse_old_style_renaming): Remove.
8959 (ada_find_renaming_symbol): Don't call
8960 find_old_style_renaming_symbol.
8961 (ada_is_renaming_symbol): Rename from
8962 ada_find_renaming_symbol. Remove "block" parameter. Return
8963 bool. Now static.
8964 (ada_read_var_value): Update and simplify.
8965 * ada-exp.y (write_var_or_type): Remove old code.
8966
8967 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8968
8969 PR gdb/25010
8970 * event-top.c: Remove include comment.
8971 * inflow.c (class scoped_ignore_sigttou): Move from here...
8972 * inflow.h (class scoped_ignore_sigttou): ...to here.
8973 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8974 * top.c: Remove include comment.
8975
8976 2019-05-27 Tom Tromey <tom@tromey.com>
8977
8978 * NEWS: Fix typo.
8979
8980 2019-05-22 Tom Tromey <tromey@adacore.com>
8981
8982 * target.c (target_follow_exec): Constify parameter.
8983 * target-delegates.c: Rebuild.
8984 * remote.c (remote_target::follow_exec): Constify parameter.
8985 * infrun.c (follow_exec): Constify parameter.
8986 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8987 (target_follow_exec): Likewise.
8988
8989 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8990
8991 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8992 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8993
8994 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8995
8996 * NEWS: Add debugredirect and testsuite sections.
8997
8998 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8999
9000 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9001 target descriptions using exclusively floating point register name
9002 aliases.
9003
9004 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9005
9006 PR gdb/18644:
9007 * f-lang.c (build_fortran_types): Handle the case where
9008 gdbarch_floatformat_for_type returns a nullptr.
9009
9010 2019-05-21 Tom de Vries <tdevries@suse.de>
9011
9012 PR cli/24587
9013 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9014
9015 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 PR gdb/18644:
9018 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9019 16-byte floats.
9020 * i386-tdep.c (i386_floatformat_for_type): Use
9021 floatformats_ia64_quad for the 16-byte floating point component
9022 within a fortran 32-byte complex number.
9023
9024 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9027 delete default constructor.
9028 (find_partial_die): Update to return const struct.
9029 (partial_die_parent_scope): Move variable declaration into scope
9030 of its use and change its type to auto.
9031 (guess_partial_die_structure_name): Likewise.
9032 (partial_die_info::fixup): Likewise.
9033
9034 2019-05-17 Tom Tromey <tromey@adacore.com>
9035
9036 * source.c (find_and_open_source): Remove cast.
9037
9038 2019-05-17 Tom Tromey <tromey@adacore.com>
9039
9040 * annotate.c (annotate_source): Make "filename" const.
9041 * annotate.h (annotate_source): Use const.
9042
9043 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9044
9045 * disasm.c (set_disassembler_options): Send errors to stderr.
9046
9047 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9048
9049 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9050 (cli_interp_base::set_logging): Check debug_redirect.
9051 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9052 * cli/cli-logging.c (debug_redirect): Add static variable.
9053 (pop_output_files): Add default param.
9054 (handle_redirections): Print debug setting.
9055 (show_logging_command): Likewise.
9056 (_initialize_cli_logging): Add debugredirect command.
9057 * interps.c (current_interp_set_logging): Add debug_redirect
9058 parameter.
9059 * interps.h (set_logging): Add debug_redirect parameter.
9060 (current_interp_set_logging): Likewise.
9061 * mi/mi-common.h: Likewise.
9062 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9063
9064 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9065 Tom Tromey <tromey@adacore.com>
9066
9067 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9068 directly.
9069 * cli/cli-interp.h (make_logging_output): Remove declaration.
9070 * cli/cli-logging.c (make_logging_output): Remove function.
9071 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9072 directly.
9073 * ui-file.c (tee_file::tee_file): Remove bools.
9074 (tee_file::~tee_file): Remove deletes.
9075 * ui-file.h (tee_file): Remove bools.
9076
9077 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9078
9079 * mi/mi-cmds.h (mi_cmd_complete): New function.
9080 * mi/mi-main.c (mi_cmd_complete): Likewise.
9081 * mi/mi-cmds.c: Define new MI command -complete.
9082 * NEWS: Mention new -complete command.
9083
9084 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9085
9086 * completer.h (complete): New function.
9087 * completer.c (complete): Likewise.
9088 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9089 function defined in completer.h.
9090
9091 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9092
9093 * MAINTAINERS (Write After Approval): Add myself.
9094
9095 2019-05-17 Tom de Vries <tdevries@suse.de>
9096
9097 PR gdb/24094
9098 * dwarf2read.c (struct cu_partial_die_info): New struct.
9099 (find_partial_die): Return cu_partial_die_info.
9100 (partial_die_parent_scope, guess_partial_die_structure_name)
9101 (partial_die_info::fixup): Handle new return type of find_partial_die.
9102
9103 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9104
9105 PR breakpoints/24541
9106 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9107 "std::string", simplifying the algorithm.
9108
9109 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9110
9111 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9112 (stap_static_probe_ops::get_probes): Likewise.
9113
9114 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9115
9116 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9117 '-')" and "else if".
9118 (stap_parse_single_operand): Join checks for
9119 "gdbarch_stap_parse_special_token_p" and
9120 "gdbarch_stap_parse_special_token" in the same "if" statement.
9121 Invert check when verifying for operation on register
9122 displacement.
9123
9124 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9125
9126 * stap-probe.c (stap_get_opcode): Update comment.
9127 (stap_get_expected_argument_type): Likewise.
9128 (handle_stap_probe): Likewise.
9129
9130 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9131
9132 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9133 return type to 'bool'. Adjust comment. Use 'bool' when
9134 appropriate.
9135 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9136 * stap-probe.c (stap_parse_argument_1): Likewise.
9137 (stap_is_operator): Likewise.
9138 (stap_is_generic_prefix): Likewise.
9139 (stap_is_register_prefix): Likewise.
9140 (stap_is_register_indirection_prefix): Likewise.
9141 (stap_is_integer_prefix): Likewise.
9142 (stap_generic_check_suffix): Likewise.
9143 (stap_check_integer_suffix): Likewise.
9144 (stap_check_register_suffix): Likewise.
9145 (stap_check_register_indirection_suffix): Likewise.
9146 (stap_parse_register_operand): Likewise.
9147 (stap_parse_single_operand): Likewise.
9148 (stap_parse_argument_1): Likewise.
9149 (stap_probe::get_argument_count): Likewise.
9150 (stap_is_operator): Likewise.
9151
9152 2019-05-16 Tom Tromey <tromey@adacore.com>
9153
9154 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9155 keyword to foreach.
9156
9157 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * linux-thread-db.c (try_thread_db_load_1): Change return type
9160 to bool.
9161 (try_thread_db_load): Likewise.
9162 (try_thread_db_load_from_pdir_1): Likewise.
9163 (try_thread_db_load_from_pdir): Likewise.
9164 (try_thread_db_load_from_sdir): Likewise.
9165 (try_thread_db_load_from_dir): Likewise.
9166 (thread_db_load_search): Likewise.
9167 (has_libpthread): Likewise.
9168 (thread_db_load): Likewise.
9169
9170 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9171
9172 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9173 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9174 NULL, and complain/return if that's the case.
9175
9176 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9177
9178 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9179 (advance, posn, abstract_read_memory): New functions.
9180 [struct mem_read_abstraction]: New struct.
9181 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9182
9183 2019-05-14 Tom Tromey <tromey@adacore.com>
9184
9185 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9186 value is not lval_memory.
9187
9188 2019-05-14 Tom Tromey <tromey@adacore.com>
9189
9190 * solib.c (info_sharedlibrary_command): Style the file name.
9191
9192 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9193
9194 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9195 (aarch64_vnv_type): Likewise.
9196 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9197 * common/tdesc.c: Likewise.
9198 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9199 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9200 * features/aarch64-fpu.xml: Add ieee half view.
9201 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9202 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9203 * gdbtypes.h (struct builtin_type): Likewise.
9204 (struct objfile_type): Likewise.
9205
9206 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9207
9208 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9209 typo.
9210 * location.h (string_to_event_location): Likewise.
9211
9212 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9213
9214 GDB 8.3 released.
9215
9216 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9219 New variable declaration.
9220 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9221 New variable.
9222 (print_one_breakpoint): Use ui_out::test_flags and new global
9223 variable to compute use_fixed_output.
9224 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9225 Remove.
9226 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9227 (mi_multi_location_breakpoint_output_fixed): Remove.
9228 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9229 new variable.
9230 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9231 fix_multi_location_breakpoint_output flag if version >= 3.
9232 * ui-out.h (enum ui_out_flag)
9233 <fix_multi_location_breakpoint_output>: New enumerator.
9234
9235 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9236
9237 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9238
9239 2019-05-10 Tom Tromey <tromey@adacore.com>
9240
9241 * ada-lang.c (catch_ada_completer): New function.
9242 (_initialize_ada_language): Use it.
9243
9244 2019-05-10 Tom Tromey <tromey@adacore.com>
9245
9246 * thread.c (print_thread_info): Make "requested_threads" const.
9247 * gdbthread.h (print_thread_info): Make "requested_threads"
9248 const.
9249 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9250 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9251
9252 2019-05-08 Tom Tromey <tom@tromey.com>
9253
9254 * gdbtypes.c (objfile_type_data): Change type.
9255 (objfile_type, _initialize_gdbtypes): Update.
9256
9257 2019-05-08 Tom Tromey <tom@tromey.com>
9258
9259 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9260 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9261 (_initialize_dwarf2_frame): Update.
9262
9263 2019-05-08 Tom Tromey <tom@tromey.com>
9264
9265 * objc-lang.c (objc_objfile_data): Change type.
9266 (find_methods): Update.
9267 (_initialize_objc_lang): Remove.
9268
9269 2019-05-08 Tom Tromey <tom@tromey.com>
9270
9271 * stabsread.c (rs6000_builtin_type_data): Change type.
9272 (rs6000_builtin_type, _initialize_stabsread): Update.
9273
9274 2019-05-08 Tom Tromey <tom@tromey.com>
9275
9276 * mips-tdep.c (mips_pdr_data): Remove.
9277 (_initialize_mips_tdep): Update.
9278
9279 2019-05-08 Tom Tromey <tom@tromey.com>
9280
9281 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9282 (hppa_init_objfile_priv_data, read_unwind_info)
9283 (find_unwind_entry, _initialize_hppa_tdep): Update.
9284
9285 2019-05-08 Tom Tromey <tom@tromey.com>
9286
9287 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9288 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9289 on obstack.
9290 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9291
9292 2019-05-08 Tom Tromey <tom@tromey.com>
9293
9294 * mdebugread.c (basic_type_data): Change type.
9295 (basic_type, _initialize_mdebugread): Update.
9296
9297 2019-05-08 Tom Tromey <tom@tromey.com>
9298
9299 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9300
9301 2019-05-08 Tom Tromey <tom@tromey.com>
9302
9303 * nto-tdep.c (nto_inferior_data_reg): Change type.
9304 (nto_inferior_data): Update.
9305 (nto_inferior_data_cleanup, nto_new_inferior_data)
9306 (_initialize_nto_tdep): Remove.
9307 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9308
9309 2019-05-08 Tom Tromey <tom@tromey.com>
9310
9311 * ada-lang.c (struct ada_inferior_data): Add initializers.
9312 (ada_inferior_data): Change type.
9313 (ada_inferior_data_cleanup): Remove.
9314 (get_ada_inferior_data, ada_inferior_exit)
9315 (struct ada_pspace_data): Add initializers, destructor.
9316 (ada_pspace_data_handle): Change type.
9317 (get_ada_pspace_data): Update.
9318 (ada_pspace_data_cleanup): Remove.
9319
9320 2019-05-08 Tom Tromey <tom@tromey.com>
9321
9322 * coffread.c (struct coff_symfile_info): Add initializers.
9323 (coff_objfile_data_key): Move lower. Change type.
9324 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9325 Update.
9326 (coff_free_info): Remove.
9327
9328 2019-05-08 Tom Tromey <tom@tromey.com>
9329
9330 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9331 (fbsd_pspace_data_handle): Move lower. Change type.
9332 (get_fbsd_pspace_data): Update.
9333 (fbsd_pspace_data_cleanup): Remove.
9334 (_initialize_fbsd_tdep): Update.
9335
9336 2019-05-08 Tom Tromey <tom@tromey.com>
9337
9338 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9339 (get_ada_tasks_pspace_data): Update.
9340 (ada_tasks_pspace_data_cleanup): Remove.
9341 (_initialize_tasks): Update.
9342 (ada_tasks_inferior_data_handle): Change type.
9343 (get_ada_tasks_inferior_data): Update.
9344 (ada_tasks_inferior_data_cleanup): Remove.
9345 (struct ada_tasks_pspace_data): Add initializers.
9346
9347 2019-05-08 Tom Tromey <tom@tromey.com>
9348
9349 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9350 * symfile-debug.c (debug_sym_get_probes): Change type.
9351 * stap-probe.c (handle_stap_probe):
9352 (stap_static_probe_ops::get_probes): Change type.
9353 * probe.h (class static_probe_ops) <get_probes>: Change type.
9354 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9355 (parse_probes_in_pspace): Update.
9356 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9357 Update.
9358 (any_static_probe_ops::get_probes): Change type.
9359 * elfread.c (elfread_data): New typedef.
9360 (probe_key): Change type.
9361 (elf_get_probes): Likewise. Update.
9362 (probe_key_free): Remove.
9363 (_initialize_elfread): Update.
9364 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9365 Change type.
9366 (dtrace_process_dof_probe, dtrace_process_dof)
9367 (dtrace_static_probe_ops::get_probe): Change type.
9368
9369 2019-05-08 Tom Tromey <tom@tromey.com>
9370
9371 * xcoffread.c (struct xcoff_symfile_info): Rename from
9372 coff_symfile_info. Add initializers.
9373 (xcoff_objfile_data_key): Move lower. Change type.
9374 (XCOFF_DATA): Rewrite.
9375 (xcoff_free_info): Remove.
9376 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9377 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9378 (xcoff_initial_scan): Update.
9379
9380 2019-05-08 Tom Tromey <tom@tromey.com>
9381
9382 * solib-svr4.c (struct svr4_info): Add initializers and
9383 destructor.
9384 <probes_table>: Now an htab_up.
9385 (solib_svr4_pspace_data): Change type.
9386 (free_probes_table): Simplify.
9387 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9388 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9389 (probes_table_remove_objfile_probes, register_solib_event_probe)
9390 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9391 (_initialize_svr4_solib): Update.
9392
9393 2019-05-08 Tom Tromey <tom@tromey.com>
9394
9395 * remote.c (remote_pspace_data): Change type.
9396 (remote_pspace_data_cleanup): Remove.
9397 (get_remote_exec_file, set_pspace_remote_exec_file)
9398 (_initialize_remote): Update.
9399
9400 2019-05-08 Tom Tromey <tom@tromey.com>
9401
9402 * breakpoint.c (breakpoint_objfile_key): Change type.
9403 (get_breakpoint_objfile_data): Update.
9404 (free_breakpoint_objfile_data): Remove.
9405 (_initialize_breakpoint): Update.
9406
9407 2019-05-08 Tom Tromey <tom@tromey.com>
9408
9409 * linux-tdep.c (struct linux_info): Add initializers.
9410 (linux_inferior_data): Move. Change type.
9411 (invalidate_linux_cache_inf): Update.
9412 (linux_inferior_data_cleanup): Remove.
9413 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9414
9415 2019-05-08 Tom Tromey <tom@tromey.com>
9416
9417 * auxv.c (auxv_inferior_data): Move. Change type.
9418 (auxv_inferior_data_cleanup): Remove.
9419 (invalidate_auxv_cache_inf): Rewrite.
9420 (get_auxv_inferior_data, _initialize_auxv): Update.
9421
9422 2019-05-08 Tom Tromey <tom@tromey.com>
9423
9424 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9425 (symfile_debug_objfile_data_key): Change type.
9426 (symfile_debug_installed, debug_qf_has_symbols)
9427 (debug_qf_find_last_source_symtab)
9428 (debug_qf_forget_cached_source_info)
9429 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9430 (debug_qf_print_stats, debug_qf_dump)
9431 (debug_qf_expand_symtabs_for_function)
9432 (debug_qf_expand_all_symtabs)
9433 (debug_qf_expand_symtabs_with_fullname)
9434 (debug_qf_map_matching_symbols)
9435 (debug_qf_expand_symtabs_matching)
9436 (debug_qf_find_pc_sect_compunit_symtab)
9437 (debug_qf_map_symbol_filenames)
9438 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9439 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9440 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9441 (debug_sym_read_linetable, debug_sym_relocate): Update.
9442 (symfile_debug_free_objfile): Remove.
9443 (install_symfile_debug_logging, _initialize_symfile_debug):
9444 Update.
9445
9446 2019-05-08 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9449 allocate_on_obstack.
9450 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9451 (get_dwarf2_per_objfile): Update.
9452 (set_dwarf2_per_objfile): Remove.
9453 (dwarf2_has_info, dwarf2_get_section_info): Update.
9454 (dwarf2_free_objfile): Remove.
9455 (_initialize_dwarf2_read): Update.
9456
9457 2019-05-08 Tom Tromey <tom@tromey.com>
9458
9459 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9460 initializers.
9461 <unsupported_script_warning_printed,
9462 script_not_found_warning_printed>: Now bool.
9463 (auto_load_pspace_data): Change type.
9464 (~auto_load_pspace_info): Rename from
9465 auto_load_pspace_data_cleanup.
9466 (get_auto_load_pspace_data, init_loaded_scripts_info)
9467 (clear_section_scripts, maybe_print_unsupported_script_warning)
9468 (maybe_print_script_not_found_warning, _initialize_auto_load):
9469 Update.
9470
9471 2019-05-08 Tom Tromey <tom@tromey.com>
9472
9473 * objfiles.c (objfile_pspace_info): Add destructor and
9474 initializers.
9475 (objfiles_pspace_data): Change type.
9476 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9477 (get_objfile_pspace_data): Update.
9478 (objfiles_bfd_data): Change type.
9479 (get_objfile_bfd_data): Update.
9480 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9481
9482 2019-05-08 Tom Tromey <tom@tromey.com>
9483
9484 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9485 Change type.
9486 (get_catch_syscall_inferior_data): Update.
9487 (catch_syscall_inferior_data_cleanup): Remove.
9488 (_initialize_break_catch_syscall): Update.
9489
9490 2019-05-08 Tom Tromey <tom@tromey.com>
9491
9492 * inflow.c (struct terminal_info): Add destructor and
9493 initializers.
9494 (inflow_inferior_data): Change type.
9495 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9496 (get_inflow_inferior_data, inflow_inferior_exit)
9497 (swap_terminal_info, _initialize_inflow): Update.
9498
9499 2019-05-08 Tom Tromey <tom@tromey.com>
9500
9501 * target-dcache.c (target_dcache_cleanup): Remove.
9502 (target_dcache_aspace_key): Change type.
9503 (target_dcache_init_p, target_dcache_invalidate)
9504 (target_dcache_get, target_dcache_get_or_init)
9505 (_initialize_target_dcache): Update.
9506 * dcache.h (struct dcache_deleter): New.
9507
9508 2019-05-08 Tom Tromey <tom@tromey.com>
9509
9510 * symtab.c (struct symbol_cache): Add destructor and
9511 initializers.
9512 (symbol_cache_key): Move. Change type.
9513 (make_symbol_cache, free_symbol_cache): Remove.
9514 (get_symbol_cache): Update.
9515 (symbol_cache_cleanup): Remove.
9516 (ALL_PSPACES, symbol_cache_flush)
9517 (maintenance_print_symbol_cache)
9518 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9519 Update.
9520
9521 2019-05-08 Tom Tromey <tom@tromey.com>
9522
9523 * symtab.c (struct main_info): Add destructor and initializers.
9524 (main_progspace_key): Move. Change type.
9525 (get_main_info): Update.
9526 (main_info_cleanup): Remove.
9527 (_initialize_symtab): Update.
9528
9529 2019-05-08 Tom Tromey <tom@tromey.com>
9530
9531 * registry.h (DECLARE_REGISTRY): Define the _key class.
9532
9533 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9534
9535 * NEWS: Merge two 'New commands' sections.
9536
9537 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9538
9539 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9540 parameter and use Ada language definition instead.
9541 (ada_val_print_ptr): Remove unused language parameter.
9542 (ada_val_print_num): Remove language parameter and use Ada language
9543 definition instead.
9544 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9545 parameter.
9546 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9547 parameter and use Ada language definition instead.
9548 (ada_val_print_1): Update all ada_val_print_xxx calls.
9549 Remove language parameter.
9550 (ada_val_print): Update ada_val_print_1 call.
9551
9552 2019-05-08 Tom Tromey <tromey@adacore.com>
9553
9554 * remote.c (remote_hw_watchpoint_limit)
9555 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9556 Now static.
9557
9558 2019-05-08 Tom Tromey <tromey@adacore.com>
9559
9560 * maint.c (_initialize_maint_cmds): Move initialization code to
9561 remote.c.
9562 (watchdog, show_watchdog): Move to remote.c.
9563 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9564 "watchdog" static.
9565 (_initialize_remote): Move initialization code from maint.c.
9566 * defs.h (watchdog): Don't declare.
9567
9568 2019-05-08 Tom Tromey <tromey@adacore.com>
9569
9570 * tui/tui-interp.c: Include main.h.
9571 * interps.c: Include main.h.
9572 * main.h (interpreter_p): Declare.
9573 * defs.h (interpreter_p): Don't declare.
9574
9575 2019-05-08 Tom Tromey <tromey@adacore.com>
9576
9577 * dwarf2loc.c: Include dwarf2read.h.
9578 * defs.h (read_unsigned_leb128): Don't declare.
9579 * dwarf2read.h (read_unsigned_leb128): Declare.
9580
9581 2019-05-08 Tom Tromey <tromey@adacore.com>
9582
9583 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9584 method.
9585
9586 2019-05-08 Tom Tromey <tromey@adacore.com>
9587
9588 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9589 when no wrap column is set.
9590
9591 2019-05-08 Tom Tromey <tromey@adacore.com>
9592
9593 * c-lang.c (c_get_string): Handle non-C-style arrays.
9594
9595 2019-05-08 Tom Tromey <tromey@adacore.com>
9596
9597 * typeprint.c (print_offset_data::update): Print the bit offset,
9598 not the number of bits remaining.
9599
9600 2019-05-08 Tom Tromey <tromey@adacore.com>
9601
9602 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9603 padding at end of comment.
9604
9605 2019-05-08 Tom Tromey <tromey@adacore.com>
9606
9607 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9608 Compare main types.
9609
9610 2019-05-06 Tom Tromey <tom@tromey.com>
9611
9612 * common/scoped_mmap.c: Include common-defs.h.
9613 * common/scoped_mmap.h: Don't include config.h.
9614
9615 2019-05-04 Tom Tromey <tom@tromey.com>
9616
9617 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9618 (struct aarch64_call_info): Add initializers.
9619 <si>: Now a std::vector.
9620 (pass_on_stack, aarch64_push_dummy_call): Update.
9621
9622 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9623 Tom Tromey <tom@tromey.com>
9624
9625 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9626 (ppc_threads): Now a std::vector. Now static.
9627 (hwdebug_find_thread_points_by_tid)
9628 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9629 Update.
9630
9631 2019-05-04 Tom Tromey <tom@tromey.com>
9632
9633 * arc-tdep.c (arc_tdesc_init): Return bool.
9634
9635 2019-05-04 Tom Tromey <tom@tromey.com>
9636
9637 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9638 Use gdb_assert_not_reached.
9639
9640 2019-05-04 Tom Tromey <tom@tromey.com>
9641
9642 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9643 "false".
9644
9645 2019-05-04 Tom Tromey <tom@tromey.com>
9646
9647 * arc-tdep.c (arc_tdesc_init): Use bool.
9648
9649 2019-05-04 Tom Tromey <tom@tromey.com>
9650
9651 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9652
9653 2019-05-04 Tom Tromey <tom@tromey.com>
9654
9655 * cli/cli-cmds.c (valid_command_p): Return bool.
9656
9657 2019-05-04 Tom Tromey <tom@tromey.com>
9658
9659 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9660 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9661
9662 2019-05-04 Raul Tambre <raul@tambre.ee>
9663
9664 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9665 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9666 operator for comparison.
9667
9668 2019-05-04 Tom Tromey <tom@tromey.com>
9669
9670 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9671 (lookup_partial_symbol, print_partial_symbols)
9672 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9673 (psymbol_compare): Update.
9674 (add_psymbol_to_bcache): Clear the entire psymbol.
9675 (maintenance_check_psymtabs): Update.
9676 * psympriv.h (struct partial_symbol): Don't derive from
9677 general_symbol_info.
9678 <obj_section, unrelocated_address, address,
9679 set_unrelocated_address>: Update.
9680 <ginfo>: New member.
9681 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9682 (debug_names::write_psymbols): Update.
9683
9684 2019-05-04 Tom de Vries <tdevries@suse.de>
9685
9686 * contrib/cc-with-tweaks.sh: Support -n arg.
9687
9688 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9689
9690 * corelow.c (core_target::detach): Ensure frame cache and
9691 register caches are cleared.
9692 inferior.c (exit_inferior_1): Likewise.
9693
9694 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9695 Tom Tromey <tom@tromey.com>
9696
9697 * dictionary.c (collate_pending_symbols_by_language): Remove
9698 "struct" from foreach.
9699 * symtab.c (lookup_global_symbol_from_objfile)
9700 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9701 foreach.
9702 * ser-tcp.c (net_open): Remove "struct" from foreach.
9703 * objfiles.c (objfile_relocate, objfile_rebase)
9704 (objfile_has_symbols): Remove "struct" from foreach.
9705 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9706 from foreach.
9707 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9708 foreach.
9709 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9710 "struct" from foreach.
9711 * ada-lang.c (create_excep_cond_exprs)
9712 (ada_exception_catchpoint_cond_string): Remove "struct" from
9713 foreach.
9714
9715 2019-05-03 Tom Tromey <tromey@adacore.com>
9716
9717 * ada-exp.y (convert_char_literal): Check suffix of each
9718 enumerator.
9719
9720 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9721
9722 PR ada/21406:
9723 * ada-exp.y (yywrap): Don't define.
9724 * ada-lex.l (%option): Add noyywrap
9725 (yywrap): Remove.
9726
9727 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9728
9729 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9730 _WIN32_WINNT to the XP level, unless already defined to a higher
9731 level.
9732
9733 * unittests/parse-connection-spec-selftests.c:
9734 * ser-tcp.c:
9735 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9736 override.
9737
9738 * symfile.c (find_separate_debug_file): Remove colon from the
9739 drive spec of DOS/Windows file names of the target, so that the
9740 file name produced from DEBUGDIR and the target's directory will
9741 be valid on DOS/Windows systems.
9742
9743 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9744
9745 * rust-lang.c (val_print_struct): Handle printing structures
9746 containing strings.
9747
9748 2019-05-02 Tom Tromey <tromey@adacore.com>
9749
9750 * valarith.c (_initialize_valarith): Remove.
9751
9752 2019-05-01 Tom Tromey <tromey@adacore.com>
9753
9754 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9755 bitfields.
9756
9757 2019-05-01 Tom Tromey <tromey@adacore.com>
9758
9759 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9760 for big-endian copies.
9761
9762 2019-04-30 Ali Tamur <tamur@google.com>
9763 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9764 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9765 (read_3_bytes): New function.
9766
9767 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9768
9769 * windows-nat.c (main_thread_id): Delete.
9770 (handle_output_debug_string): Replace main_thread_id by
9771 current_event.dwThreadId.
9772 (fake_create_process): Likewise.
9773 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9774 Do not set main_thread_id.
9775 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9776 current_event.dwThreadId.
9777 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9778
9779 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9780
9781 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9782 Use current_event.dwThreadId instead of main_thread_id.
9783
9784 2019-04-30 Tom Tromey <tromey@adacore.com>
9785
9786 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9787 (create_excep_cond_exprs): Iterate over program spaces.
9788 (ada_exception_catchpoint_cond_string): Examine all minimal
9789 symbols for exception types.
9790
9791 2019-04-30 Tom Tromey <tromey@adacore.com>
9792
9793 PR c++/24470:
9794 * dwarf2read.c (process_structure_scope): Handle case where type
9795 has template parameters but no symbol was created.
9796
9797 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9798 Chris January <chris.january@arm.com>
9799
9800 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9801 qualifier.
9802 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9803
9804 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 * f-typeprint.c (f_print_type): Update rules for printing
9807 whitespace.
9808 (f_type_print_varspec_suffix): Likewise.
9809
9810 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9811 Chris January <chris.january@arm.com>
9812
9813 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9814 function arguments.
9815
9816 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9817
9818 * f-lang.c (build_fortran_types): Change name of void type to
9819 lower case.
9820 * f-typeprint.c (f_type_print_base): Print the name of the void
9821 type, rather than a fixed string.
9822 * f-valprint.c (f_decorations): Use lower case void string.
9823
9824 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9825 Chris January <chris.january@arm.com>
9826
9827 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9828 types for Fortran.
9829
9830 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9831 Chris January <chris.january@arm.com>
9832 David Lecomber <david.lecomber@arm.com>
9833
9834 * f-exp.y (BINOP_INTRINSIC): New token.
9835 (exp): New parser rule handling BINOP_INTRINSIC.
9836 (f77_keywords): Add new builtin procedures.
9837 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9838 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9839 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9840 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9841 (print_unop_subexp_f): New function.
9842 (print_binop_subexp_f): New function.
9843 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9844 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9845 (dump_subexp_body_f): Likewise.
9846 (operator_check_f): Likewise.
9847 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9848 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9849
9850 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9851
9852 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9853 UNOP_KIND.
9854 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9855 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9856 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9857 (operator_length_f): New fuction.
9858 (print_subexp_f): New function.
9859 (op_name_f): New function.
9860 (dump_subexp_body_f): New function.
9861 (operator_check_f): New function.
9862 (exp_descriptor_f): Replace standard expression handling functions
9863 with new functions.
9864 * gdb/fortran-operator.def: New file.
9865 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9866 * gdb/std-operator.def: Remove UNOP_KIND.
9867
9868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * std-operator.def: Remove unbalanced, stray double quote
9871 character.
9872
9873 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9874 Chris January <chris.january@arm.com>
9875 Daniel Everett <daniel.everett@arm.com>
9876 Nick Forrington <nick.forrington@arm.com>
9877 Richard Bunt <richard.bunt@arm.com>
9878
9879 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9880 of depth when printing anonymous structs or unions.
9881 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9882 Don't print either the top-level value, or the children if the
9883 max-depth is exceeded.
9884 (ppscm_print_children): When printing the key of a map, allow one
9885 extra level of depth.
9886 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9887 print either the top-level value, or the children if the max-depth
9888 is exceeded.
9889 (print_children): When printing the key of a map, allow one extra
9890 level of depth.
9891 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9892 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9893 (user_print_options): Initialise max_depth field.
9894 (val_print_scalar_or_string_type_p): New function.
9895 (val_print): Check to see if the max depth has been reached.
9896 (val_print_check_max_depth): Define new function.
9897 (show_print_max_depth): New function.
9898 (_initialize_valprint): Add 'print max-depth' option.
9899 * valprint.h (struct value_print_options) <max_depth>: New field.
9900 (val_print_check_max_depth): Declare new function.
9901 * NEWS: Document new feature.
9902
9903 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * ada-lang.c (ada_language_defn): Initialise new field.
9906 * c-lang.c (c_is_string_type_p): New function.
9907 (c_language_defn): Initialise new field.
9908 (cplus_language_defn): Initialise new field.
9909 (asm_language_defn): Initialise new field.
9910 (minimal_language_defn): Initialise new field.
9911 * c-lang.h (c_is_string_type_p): Declare new function.
9912 * d-lang.c (d_language_defn): Initialise new field.
9913 * f-lang.c (f_is_string_type_p): New function.
9914 (f_language_defn): Initialise new field.
9915 * go-lang.c (go_is_string_type_p): New function.
9916 (go_language_defn): Initialise new field.
9917 * language.c (default_is_string_type_p): New function.
9918 (unknown_language_defn): Initialise new field.
9919 (auto_language_defn): Initialise new field.
9920 * language.h (struct language_defn) <la_is_string_type_p>: New
9921 member variable.
9922 (default_is_string_type_p): Declare new function.
9923 * m2-lang.c (m2_language_defn): Initialise new field.
9924 * objc-lang.c (objc_language_defn): Initialise new field.
9925 * opencl-lang.c (opencl_language_defn): Initialise new field.
9926 * p-lang.c (pascal_is_string_type_p): New function.
9927 (pascal_language_defn): Initialise new field.
9928 * rust-lang.c (rust_is_string_type_p): New function.
9929 (rust_language_defn): Initialise new field.
9930
9931 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9932
9933 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9934 New field.
9935 * ada-lang.c (ada_language_defn): Initialise new field.
9936 * c-lang.c (c_language_defn): Likewise.
9937 (cplus_language_defn): Likewise.
9938 (asm_language_defn): Likewise.
9939 (minimal_language_defn): Likewise.
9940 * d-lang.c (d_language_defn): Likewise.
9941 * f-lang.c (f_language_defn): Likewise.
9942 * go-lang.c (go_language_defn): Likewise.
9943 * language.c (unknown_language_defn): Likewise.
9944 (auto_language_defn): Likewise.
9945 * m2-lang.c (m2_language_defn): Likewise.
9946 * objc-lang.c (objc_language_defn): Likewise.
9947 * opencl-lang.c (opencl_language_defn): Likewise.
9948 * p-lang.c (pascal_language_defn): Likewise.
9949 * rust-lang.c (rust_language_defn): Likewise.
9950
9951 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 * ada-lang.c (ada_is_character_type): Change return type to bool.
9954 (ada_is_string_type): Likewise.
9955 * ada-lang.h (ada_is_character_type): Update declaration
9956 (ada_is_string_type): Likewise.
9957
9958 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9959
9960 Support style in 'frame|thread apply'
9961
9962 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9963 * record.c (record_start, record_stop): Update callers of
9964 execute_command_to_string with false.
9965 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9966 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9967 methods.
9968 (class string_file): New constructor with term_out parameter.
9969 Override methods term_out and can_emit_style_escape. New member
9970 term_out.
9971 (class stdio_file): Override can_emit_style_escape.
9972 (class tee_file): Override term_out and can_emit_style_escape.
9973 * utils.h (can_emit_style_escape): Remove.
9974 * utils.c (can_emit_style_escape): Likewise.
9975 Update all callers of can_emit_style_escape (SOMESTREAM) to
9976 SOMESTREAM->can_emit_style_escape.
9977 * source-cache.c (source_cache::get_source_lines): Likewise.
9978 * stack.c (frame_apply_command_count): Call execute_command_to_string
9979 passing the term_out characteristic of the current gdb_stdout.
9980 * thread.c (thr_try_catch_cmd): Likewise.
9981 * top.c (execute_command_to_string): pass term_out parameter
9982 to construct the string_file for the command output.
9983 * ui-file.c (term_cli_styling): New function (most code moved
9984 from utils.c can_emit_style_escape).
9985 (string_file::string_file, string_file::can_emit_style_escape,
9986 stdio_file::can_emit_style_escape, tee_file::term_out,
9987 tee_file::can_emit_style_escape): New functions.
9988
9989 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990
9991 * NEWS: Mention the new set|show may-call-functions.
9992 * infcall.c (may_call_functions_p): New variable.
9993 (show_may_call_functions_p): New function.
9994 (call_function_by_hand_dummy): Throws an error if not
9995 may-call-functions.
9996 (_initialize_infcall): Call add_setshow_boolean_cmd for
9997 may-call-functions.
9998
9999 2019-04-25 Keith Seitz <keiths@redhat.com>
10000
10001 PR c++/24367
10002 * cp-support.c (inspect_type): Don't attempt substitutions
10003 of symbol with the same name.
10004
10005 2019-04-25 Tom Tromey <tromey@adacore.com>
10006
10007 PR gdb/24475:
10008 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10009 static.
10010
10011 2019-04-25 Tom Tromey <tromey@adacore.com>
10012
10013 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10014 rvalue reference.
10015 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10016 (gdb_xml_parser::parse): Use std::move.
10017 * python/python-internal.h (gdbpy_convert_exception): Take a const
10018 reference.
10019 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10020 std::move.
10021 * python/py-utils.c (gdbpy_convert_exception): Take a const
10022 reference.
10023 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10024 Use std::move.
10025 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10026 Use std::move.
10027 * mi/mi-main.c (mi_print_exception): Take a const reference.
10028 * main.c (handle_command_errors): Take a const reference.
10029 * linespec.c (parse_linespec): Use std::move.
10030 * infcall.c (run_inferior_call): Use std::move.
10031 (call_function_by_hand_dummy): Use std::move.
10032 * exec.c (try_open_exec_file): Use std::move.
10033 * exceptions.h (exception_print, exception_fprintf)
10034 (exception_print_same): Update.
10035 * exceptions.c (print_exception, exception_print)
10036 (exception_fprintf, exception_print_same): Change parameters to
10037 const reference.
10038 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10039 * common/new-op.c: Use std::move.
10040 * common/common-exceptions.h (struct gdb_exception): Add move
10041 constructor.
10042 (struct gdb_exception_error, struct gdb_exception_quit, struct
10043 gdb_quit_bad_alloc): Change constructor to move constructor.
10044 (throw_exception): Change parameter to rvalue reference.
10045 * common/common-exceptions.c (throw_exception): Take rvalue
10046 reference.
10047 * cli/cli-interp.c (safe_execute_command): Use std::move.
10048 * breakpoint.c (insert_bp_location, location_to_sals): Use
10049 std::move.
10050
10051 2019-04-25 Tom Tromey <tromey@adacore.com>
10052
10053 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10054 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10055 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10056 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10057 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10058 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10059 guile/scm-value.c: Use unpack.
10060 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10061 gdbscm_gdb_exception.
10062 (gdbscm_throw_gdb_exception): Likewise.
10063 (struct gdbscm_gdb_exception): New.
10064 (unpack): New function.
10065 (gdbscm_wrap): Use unpack.
10066
10067 2019-04-25 Tom Tromey <tromey@adacore.com>
10068
10069 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10070 (gdb_rl_callback_handler): Use std::move.
10071 * common/common-exceptions.h (struct gdb_exception): Add move
10072 assignment operator.
10073 (throw_exception_sjlj): Change "exception" to const reference.
10074 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10075 (throw_exception_sjlj): Change "exception" to const reference.
10076
10077 2019-04-25 Tom Tromey <tromey@adacore.com>
10078
10079 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10080 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10081 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10082 Update.
10083 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10084 Update.
10085 * mi/mi-interp.c (mi_interp::exec): Update.
10086 * linespec.c (parse_linespec): Update.
10087 * infcall.c (run_inferior_call): Update.
10088 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10089 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10090 (gdbscm_lookup_global_symbol): Update.
10091 * guile/scm-param.c (gdbscm_parameter_value): Update.
10092 * guile/scm-frame.c (gdbscm_frame_read_register)
10093 (gdbscm_frame_read_var): Update.
10094 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10095 * exec.c (try_open_exec_file): Update.
10096 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10097 (gdb_rl_callback_handler): Update.
10098 * common/common-exceptions.h (exception_none): Don't declare.
10099 * common/common-exceptions.c (exception_none): Don't define.
10100 (struct catcher) <exception>: Update.
10101 * cli/cli-interp.c (safe_execute_command): Update.
10102 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10103
10104 2019-04-25 Ali Tamur <tamur@google.com>
10105
10106 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10107 (read_attribute_value): Likewise.
10108 (dwarf2_read_addr_index): Update comment.
10109 (read_str_index): Add DW_FORM_strx.
10110 (dwarf2_string_attr): Likewise.
10111 (dwarf2_const_value_attr): Likewise.
10112 (dump_die_shallow): Likewise.
10113 (dwarf2_fetch_constant_bytes): Likewise.
10114 (skip_form_bytes): Likewise.
10115 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10116
10117 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10118
10119 PR corefiles/11608
10120 PR corefiles/18187
10121 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10122 OFFSET. Verify if current mapping contains an ELF header.
10123 (linux_find_memory_regions_full): Adjust call to
10124 dump_mapping_p.
10125
10126 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10127 Kang Li <kanglictf@gmail.com>
10128
10129 PR gdb/21600
10130
10131 * dwarf2-frame.c (read_initial_length): Be consistent about using
10132 unsigned representation of length.
10133 (decode_frame_entry_1): Likewise. Check for wraparound of
10134 end pointer as well as buffer overflow.
10135
10136 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10137
10138 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10139 "vq".
10140
10141 2019-04-24 Tom Tromey <tromey@adacore.com>
10142
10143 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10144
10145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10146
10147 * s12z-tdep.c (s12z_unwind_pc): Delete.
10148 (s12z_unwind_sp): Delete.
10149 (s12z_gdbarch_init): Don't register deleted functions with
10150 gdbarch.
10151
10152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * rl78-tdep.c (rl78_unwind_sp): Delete.
10155 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10156
10157 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10160 (xstormy16_unwind_pc): Delete.
10161 (xstormy16_dummy_id): Delete.
10162 (xstormy16_gdbarch_init): Don't register deleted functions with
10163 gdbarch.
10164
10165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10166
10167 * vax-tdep.c (vax_unwind_pc): Delete.
10168 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10169
10170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * v850-tdep.c (v850_unwind_sp): Delete.
10173 (v850_unwind_pc): Delete.
10174 (v850_dummy_id): Delete.
10175 (v850_gdbarch_init): Don't register deleted functions with
10176 gdbarch.
10177
10178 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10179
10180 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10181 (tilegx_unwind_pc): Delete.
10182 (tilegx_unwind_dummy_id): Delete.
10183 (tilegx_gdbarch_init): Don't register deleted functions with
10184 gdbarch.
10185
10186 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10187
10188 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10189 (tic6x_dummy_id): Delete.
10190 (tic6x_gdbarch_init): Don't register deleted functions with
10191 gdbarch.
10192
10193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * sparc-tdep.c (sparc_unwind_pc): Delete.
10196 (sparc32_gdbarch_init): Don't register deleted function with
10197 gdbarch.
10198
10199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10200
10201 * sh-tdep.c (sh_unwind_sp): Delete.
10202 (sh_unwind_pc): Delete.
10203 (sh_dummy_id): Delete.
10204 (sh_gdbarch_init): Don't register deleted functions with
10205 gdbarch.
10206
10207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * score-tdep.c (score_unwind_sp): Delete.
10210 (score_unwind_pc): Delete.
10211 (score_dummy_id): Delete.
10212 (score_gdbarch_init): Don't register deleted functions with
10213 gdbarch.
10214
10215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10216
10217 * rx-tdep.c (rx_unwind_pc): Delete.
10218 (rx_unwind_sp): Delete.
10219 (rx_dummy_id): Delete.
10220 (rx_gdbarch_init): Don't register deleted functions with
10221 gdbarch. Update comment.
10222
10223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10224
10225 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10226 (rs6000_dummy_id): Delete.
10227 (rs6000_gdbarch_init): Don't register deleted functions with
10228 gdbarch.
10229
10230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10231
10232 * or1k-tdep.c (or1k_dummy_id): Delete.
10233 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10234
10235 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10236
10237 * nios2-tdep.c (nios2_dummy_id): Delete.
10238 (nios2_unwind_sp): Delete.
10239 (nios2_gdbarch_init): Don't register deleted functions with
10240 gdbarch.
10241
10242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10243
10244 * nds32-tdep.c (nds32_dummy_id): Delete.
10245 (nds32_unwind_pc): Delete.
10246 (nds32_unwind_sp): Delete.
10247 (nds32_gdbarch_init): Don't register deleted functions with
10248 gdbarch.
10249
10250 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10251
10252 * msp430-tdep.c (msp430_unwind_pc): Delete.
10253 (msp430_unwind_sp): Delete.
10254 (msp430_dummy_id): Delete.
10255 (msp430_gdbarch_init): Don't register deleted functions with
10256 gdbarch.
10257
10258 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * moxie-tdep.c (moxie_unwind_sp): Delete.
10261 (moxie_unwind_pc): Delete.
10262 (moxie_dummy_id): Delete.
10263 (moxie_gdbarch_init): Don't register deleted functions with
10264 gdbarch.
10265
10266 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10267
10268 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10269 (mn10300_unwind_pc): Delete.
10270 (mn10300_unwind_sp): Delete.
10271 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10272 mn10300_unwind_sp.
10273 (mn10300_frame_unwind_init): Don't register deleted functions with
10274 gdbarch.
10275
10276 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * mep-tdep.c (mep_unwind_pc): Delete.
10279 (mep_unwind_sp): Delete.
10280 (mep_dummy_id): Delete.
10281 (mep_gdbarch_init): Don't register deleted functions with
10282 gdbarch.
10283
10284 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10285
10286 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10287 (m68hc11_unwind_sp): Delete.
10288 (m68hc11_gdbarch_init): Don't register deleted functions with
10289 gdbarch.
10290
10291 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * m32r-tdep.c (m32r_unwind_sp): Delete.
10294 (m32r_unwind_pc): Delete.
10295 (m32r_dummy_id): Delete.
10296 (m32r_gdbarch_init): Don't register deleted functions with
10297 gdbarch.
10298
10299 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10300
10301 * m32c-tdep.c (m32c_unwind_pc): Delete.
10302 (m32c_unwind_sp): Delete.
10303 (m32c_dummy_id): Delete.
10304 (m32c_gdbarch_init): Don't register deleted functions with
10305 gdbarch.
10306
10307 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10308
10309 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10310 (lm32_unwind_pc): Delete.
10311 (lm32_dummy_id): Delete.
10312 (lm32_gdbarch_init): Don't register deleted functions with
10313 gdbarch.
10314
10315 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10316
10317 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10318 (iq2000_unwind_pc): Delete.
10319 (iq2000_dummy_id): Delete.
10320 (iq2000_gdbarch_init): Don't register deleted functions with
10321 gdbarch.
10322
10323 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * nds32-tdep.c (nds32_type_align): Delete.
10326 (nds32_push_dummy_call): Use type_align instead.
10327
10328 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10329
10330 * arm-tdep.c (arm_type_align): Only handle vector override case.
10331 (arm_push_dummy_call): Use type_align.
10332 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10333
10334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10337 case.
10338 (pass_on_stack): Use type_align.
10339 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10340 function.
10341
10342 2019-04-23 Tom Tromey <tromey@adacore.com>
10343
10344 * dwarf2read.c (line_header::file_name_at): Remove unused
10345 overload.
10346
10347 2019-04-23 Tom de Vries <tdevries@suse.de>
10348
10349 PR gdb/24438
10350 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10351 invocation.
10352
10353
10354 2019-03-27 Ali Tamur <tamur@google.com>
10355
10356 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10357 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10358 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10359 (dwarf_expr_context::get_addr_index): Likewise
10360 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10361 (symbol_needs_eval_context::get_addr_index): Likewise
10362 (disassemble_dwarf_expression): Add DW_OP_addrx
10363 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10364 (read_cutu_die_from_dwo): Update comment
10365 (skip_one_die): Add DW_FORM_addrx
10366 (read_attribute_value): Likewise
10367 (var_decode_location): Add DW_OP_addrx
10368 (dwarf2_const_value_attr): Add DW_FORM_addrx
10369 (dump_die_shallow): Likewise
10370 (dwarf2_fetch_constant_bytes): Likewise
10371 (decode_locdesc): Add DW_OP_addrx
10372 (skip_form_bytes): Add DW_FORM_addrx
10373
10374 2019-04-22 Ali Tamur <tamur@google.com>
10375
10376 * MAINTAINERS (Write After Approval): Add self.
10377
10378 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10381 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10382 (open_symbol_file_object): Likewise.
10383 (svr4_default_sos): Add info parameter.
10384 (svr4_read_so_list): Likewise.
10385 (svr4_current_sos_direct): Adjust functions calls to pass down
10386 info.
10387 (svr4_current_sos_1): Add info parameter.
10388 (svr4_current_sos): Call get_svr4_info, pass info down to
10389 svr4_current_sos_1.
10390 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10391 get_svr4_info.
10392 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10393 get_svr4_info.
10394 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10395 to get_svr4_info.
10396 (probes_table_remove_objfile_probes): Likewise.
10397 (register_solib_event_probe): Add info parameter.
10398 (solist_update_incremental): Pass info parameter down to
10399 svr4_read_so_list.
10400 (disable_probes_interface): Add info parameter.
10401 (svr4_handle_solib_event): Pass current_program_space to
10402 get_svr4_info. Adjust disable_probes_interface cleanup.
10403 (svr4_create_probe_breakpoints): Add info parameter, pass it
10404 down to register_solib_event_probe.
10405 (svr4_create_solib_event_breakpoints): Add info parameter,
10406 pass it down to svr4_create_probe_breakpoints.
10407 (enable_break): Pass info down to
10408 svr4_create_solib_event_breakpoints.
10409 (svr4_solib_create_inferior_hook): Pass current_program_space to
10410 get_svr4_info.
10411 (svr4_clear_solib): Likewise.
10412
10413 2019-04-22 Pedro Alves <palves@redhat.com>
10414
10415 * solib-svr4.c (svr4_free_objfile_observer): New.
10416 (probe_and_action::objfile): New field.
10417 (probes_table_htab_remove_objfile_probes)
10418 (probes_table_remove_objfile_probes): New functions.
10419 (register_solib_event_probe): Add 'objfile' parameter. Store it
10420 in the new probe_and_action. Don't store the probe in 'lookup'.
10421 (svr4_create_probe_breakpoints): Pass objfile to
10422 register_solib_event_probe.
10423 (_initialize_svr4_solib): Register a free_objfile observer.
10424
10425 2019-04-19 Tom Tromey <tom@tromey.com>
10426
10427 * common/queue.h: Remove.
10428
10429 2019-04-19 Tom Tromey <tom@tromey.com>
10430
10431 * event-loop.c: Don't include "common/queue.h".
10432
10433 2019-04-19 Tom Tromey <tom@tromey.com>
10434
10435 * remote.c (remote_target): Use delete.
10436 * remote-notif.h: Include <list>, not "common/queue.h".
10437 (notif_client_p): Remove typedef.
10438 (remote_notif_state): Add constructor, destructor, initializer.
10439 <notif_queue>: Now a std::list.
10440 (remote_notif_state_xfree): Don't declare.
10441 * remote-notif.c (remote_notif_process, handle_notification)
10442 (remote_notif_state_allocate): Update.
10443 (~remote_notif_state): Rename from remote_notif_state_xfree.
10444
10445 2019-04-19 Tom Tromey <tom@tromey.com>
10446
10447 * symfile.c (reread_symbols): Update.
10448 * objfiles.c (objfile_register_static_link)
10449 (objfile_lookup_static_link): Update
10450 (~objfile) Don't delete static_links.
10451 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10452
10453 2019-04-19 Tom Tromey <tom@tromey.com>
10454
10455 * type-stack.h (struct type_stack) <insert>: Constify string.
10456 * type-stack.c (type_stack::insert): Constify string.
10457 * gdbtypes.h (lookup_template_type): Update.
10458 (address_space_name_to_int): Update.
10459 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10460 const.
10461 (lookup_template_type): Make name const.
10462 * c-exp.y: Update rules.
10463 (lex_one_token, classify_name, classify_inner_name)
10464 (c_print_token): Update.
10465 * p-exp.y: Update rules.
10466 (yylex): Update.
10467 * f-exp.y: Update rules.
10468 (yylex): Update.
10469 * d-exp.y: Update rules.
10470 (lex_one_token, classify_name, classify_inner_name): Update.
10471 * parse.c (write_dollar_variable, copy_name): Return std::string.
10472 * parser-defs.h (copy_name): Change return type.
10473 * m2-exp.y: Update rules.
10474 (yylex): Update.
10475 * go-exp.y (lex_one_token): Update.
10476 Update rules.
10477 (classify_unsafe_function, classify_packaged_name)
10478 (classify_name, yylex): Update.
10479
10480 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10481
10482 * configure.ac: add --enable-source-highlight switch.
10483 * configure: Regenerate.
10484 * top.c (print_gdb_version): plumb --enable-source-highlight
10485 status to "show configuration".
10486
10487 2019-04-19 Tom Tromey <tromey@adacore.com>
10488
10489 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10490 Check ADA_TYPE_P.
10491 (empty_record, ada_template_to_fixed_record_type_1)
10492 (template_to_static_fixed_type)
10493 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10494 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10495 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10496 macros.
10497
10498 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10499
10500 PR symtab/24423:
10501 * source.c (print_source_lines_base): Advance "iter" when a
10502 control character is seen.
10503
10504 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10505
10506 * inferior.h (struct infcall_suspend_state_deleter):
10507 Catch exception in destructor to avoid crash.
10508
10509 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10510
10511 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10512 close to the add_com "shell".
10513
10514 2019-04-18 Tom Tromey <tromey@adacore.com>
10515
10516 * process-stratum-target.h (class process_stratum_target)
10517 <stratum>: Add "final".
10518
10519 2019-04-17 Tom Tromey <tromey@adacore.com>
10520
10521 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10522 against nullptr before use.
10523
10524 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10525
10526 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10527
10528 2019-04-17 Jim Wilson <jimw@sifive.com>
10529 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10532 code read might fail, assume 4-byte breakpoint in that case.
10533
10534 2019-04-15 Leszek Swirski <leszeks@google.com>
10535
10536 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10537 rather than a hand-rolled POD check when checking for forced MEMORY
10538 classification.
10539
10540 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10541
10542 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10543 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10544 function.
10545 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10546 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10547 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10548 declaration.
10549
10550 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10551
10552 * aarch64-linux-nat.c
10553 (aarch64_linux_nat_target::thread_architecture): Add override.
10554 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10555 each VQ.
10556
10557 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10558
10559 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10560
10561 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10564 target types of size 96-bits, add some additional comments, and
10565 check that the builtin type we found was the correct size.
10566
10567 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10568
10569 * utils.c (prompt_for_continue): Don't restore the styling at the
10570 end, as applied_style has the wrong value. This fixes styling in
10571 long lists of file names that are interrupted by the "Continue?"
10572 prompt.
10573
10574 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10575
10576 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10577 * c-lang.c (c_language_defn): Likewise.
10578 (cplus_language_defn): Likewise.
10579 (asm_language_defn): Likewise.
10580 (minimal_language_defn): Likewise.
10581 * d-lang.c (d_language_defn): Likewise.
10582 * f-lang.c (f_language_defn): Likewise.
10583 * go-lang.c (go_language_defn): Likewise.
10584 * language.c (unknown_language_defn): Likewise.
10585 (auto_language_defn): Likewise.
10586 * language.h (struct language_defn): Remove la_magic field.
10587 (LANG_MAGIC): Delete.
10588 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10589 * objc-lang.c (objc_language_defn): Likewise.
10590 * opencl-lang.c (opencl_language_defn): Likewise.
10591 * p-lang.c (pascal_language_defn): Likewise.
10592 * rust-lang.c (rust_language_defn): Likewise.
10593
10594 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * riscv-tdep.c (riscv_type_align): New function.
10597 (riscv_type_alignment): Delete.
10598 (riscv_arg_location): Use 'type_align'.
10599 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10600
10601 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10602
10603 * gdbtypes.c (type_align): A struct with no non-static fields also
10604 has alignment of 1.
10605
10606 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10607
10608 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10609 component to 0.
10610 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10611 member.
10612 (riscv_struct_info::analyse): New implementation using new
10613 analyse_inner member function.
10614 (riscv_struct_info::field_offset): New member function.
10615 (riscv_struct_info::m_offsets): New member variable.
10616 (riscv_struct_info::analyse_inner): New private member function,
10617 takes the old implementation of riscv_struct_info::analyse but
10618 extended to track field offsets.
10619 (riscv_call_arg_struct): Update the struct folding special cases
10620 to handle cases where empty C++ structs, which are non-zero
10621 length, are found.
10622 (riscv_arg_location): Initialise the length of each location, a
10623 non-zero length now indicates the location is in use.
10624 (riscv_push_dummy_call): Allow for the first location having a
10625 non-zero offset when setting up arguments.
10626 (riscv_return_value): Likewise, but for return values.
10627
10628 2019-04-11 Tom Tromey <tromey@adacore.com>
10629
10630 * utils.c (internal_vproblem): Make "msg" const.
10631
10632 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10633
10634 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10635 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10636 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10637 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10638
10639 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10640
10641 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10642 function.
10643 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10644 of amd64_collect_native_gregset.
10645 (amd64_linux_nat_target::store_registers): Likewise.
10646
10647 2019-04-10 Tom Tromey <tom@tromey.com>
10648
10649 * symtab.c (lookup_global_symbol_from_objfile)
10650 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10651 * objfiles.h (class separate_debug_iterator): New.
10652 (class separate_debug_range): New.
10653 (struct objfile) <separate_debug_objfiles>: New method.
10654 (objfile_separate_debug_iterate): Don't declare.
10655 * objfiles.c (separate_debug_iterator::operator++): Rename from
10656 objfile_separate_debug_iterate.
10657 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10658 iterator.
10659 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10660 iterator.
10661
10662 2019-04-10 Tom Tromey <tom@tromey.com>
10663
10664 * symfile.c (reread_symbols): Remove old comment.
10665 * objfiles.c (free_all_objfiles): Fix a typo.
10666
10667 2019-04-10 Tom Tromey <tom@tromey.com>
10668
10669 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10670 * minsyms.c (lookup_minimal_symbol): Use foreach.
10671 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10672 (lookup_minimal_symbol_solib_trampoline): Likewise.
10673 * symfile.c (reread_symbols): Use foreach.
10674
10675 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10676 Tom Tromey <tromey@adacore.com>
10677
10678 PR rust/24414:
10679 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10680 (rust_lex_int_test): Change "value" to be LONGEST.
10681 (rust_lex_tests): Add test for long integer literal.
10682
10683 2019-04-09 Tom Tromey <tromey@adacore.com>
10684
10685 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10686 to bool.
10687 (extended_remote_target::attach): Update.
10688 (remote_target::remote_notice_new_inferior): Update.
10689 (remote_target::add_current_inferior_and_thread): Update.
10690 * inferior.c (exit_inferior_1): Use "false".
10691 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10692
10693 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10696 the "start" command.
10697
10698 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10699
10700 * python/py-inferior.c (infpy_thread_from_thread_handle):
10701 Adjust comments to reflect renaming of thread_from_thread_handle
10702 to thread_from_handle. Adjust keywords. Fix type error message.
10703 (inferior_object_methods): Add thread_from_handle. Retain
10704 thread_from_thread_handle, but mark it as deprecated.
10705
10706 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10707
10708 * gdbthread.h (find_thread_by_handle): Revise declaration.
10709 * thread.c (find_thread_by_handle): Likewise. Adjust
10710 implementation too.
10711 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10712 support for buffer objects as handles.
10713
10714 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10715
10716 * python/py-infthread.c (thpy_thread_handle): New function.
10717 (thread_object_methods): Register thpy_thread_handle.
10718
10719 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10720
10721 * gdbthread.h (thread_to_thread_handle): Declare.
10722 * thread.c (gdbtypes.h): Include.
10723 (thread_to_thread_handle): New function.
10724
10725 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10726 (target_thread_info_to_thread_handle): Declare.
10727 * target.c (target_thread_info_to_thread_handle): New function.
10728 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10729 * target-delegates.c: Regenerate.
10730
10731 * linux-thread-db.c (class thread_db_target): Add method
10732 thread_info_to_thread_handle.
10733 (thread_db_target::thread_info_to_thread_handle): Define.
10734 * remote.c (class remote_target): Add new method
10735 thread_info_to_thread_handle.
10736 (remote_target::thread_info_to_thread_handle): Define.
10737
10738 2019-04-08 Pedro Alves <palves@redhat.com>
10739
10740 * common/common-exceptions.c (throw_exception): Don't create
10741 named object to throw; throw directly.
10742 (throw_it): Likewise. Don't initialize gdb_exception::message
10743 here, with new; pass FMT and AP to the ctor instead.
10744 * common/common-exceptions.h: Include <string>.
10745 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10746 const char *, va_list)): New ctor. Use std::make_shared.
10747 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10748 errors)): Delete.
10749 (gdb_exception_error::gdb_exception_error(enum errors, const char
10750 *, va_list)): New.
10751 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10752 Add assertion.
10753 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10754 errors)): Delete.
10755 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10756 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10757 Add assertion.
10758
10759 2019-04-08 Tom Tromey <tom@tromey.com>
10760
10761 * valops.c (value_rtti_indirect_type): Replace throw_exception
10762 with throw.
10763 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10764 with throw.
10765 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10766 throw.
10767 * target.c (target_translate_tls_address): Replace throw_exception
10768 with throw.
10769 * stack.c (frame_apply_command_count): Replace throw_exception
10770 with throw.
10771 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10772 throw.
10773 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10774 with throw.
10775 * rs6000-tdep.c (rs6000_frame_cache)
10776 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10777 * remote.c: Replace throw_exception with throw.
10778 * record-full.c (record_full_message, record_full_wait_1)
10779 (record_full_restore): Replace throw_exception with throw.
10780 * record-btrace.c:
10781 (get_thread_current_frame_id, record_btrace_start_replaying)
10782 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10783 (cmd_record_btrace_start): Replace throw_exception with throw.
10784 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10785 throw.
10786 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10787 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10788 * linespec.c:
10789 (find_linespec_symbols): Replace throw_exception with throw.
10790 * infrun.c (displaced_step_prepare, resume): Replace
10791 throw_exception with throw.
10792 * infcmd.c (post_create_inferior): Replace throw_exception with
10793 throw.
10794 * inf-loop.c (inferior_event_handler): Replace throw_exception
10795 with throw.
10796 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10797 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10798 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10799 (get_prev_frame_always, get_frame_pc_if_available)
10800 (get_frame_address_in_block_if_available, get_frame_language):
10801 Replace throw_exception with throw.
10802 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10803 throw_exception with throw.
10804 * eval.c (fetch_subexp_value, evaluate_var_value)
10805 (evaluate_funcall, evaluate_subexp_standard): Replace
10806 throw_exception with throw.
10807 * dwarf2loc.c (call_site_find_chain)
10808 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10809 Replace throw_exception with throw.
10810 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10811 with throw.
10812 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10813 throw.
10814 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10815 * completer.c (complete_line_internal): Replace throw_exception
10816 with throw.
10817 * compile/compile-object-run.c (compile_object_run): Replace
10818 throw_exception with throw.
10819 * cli/cli-script.c (process_next_line): Replace throw_exception
10820 with throw.
10821 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10822 (btrace_enable, btrace_maint_update_pt_packets): Replace
10823 throw_exception with throw.
10824 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10825 throw_exception with throw.
10826 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10827 throw_exception with throw.
10828 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10829 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10830 * aarch64-tdep.c (aarch64_make_prologue_cache)
10831 (aarch64_make_stub_cache): Replace throw_exception with throw.
10832
10833 2019-04-08 Tom Tromey <tom@tromey.com>
10834
10835 * common/common-exceptions.c (throw_exception): Rename from
10836 throw_exception_cxx. Remove old copy. Make argument const.
10837 (throw_it): Create and throw exception objects directly.
10838 * common/common-exceptions.h (throw_exception): Make argument
10839 const.
10840 (struct gdb_exception_error): Add constructor.
10841 (struct gdb_exception_quit): Add constructor.
10842
10843 2019-04-08 Tom Tromey <tom@tromey.com>
10844
10845 * common/common-exceptions.h (exception_rethrow): Don't declare.
10846 (TRY_SJLJ): Update comment.
10847 (TRY, CATCH, END_CATCH): Remove.
10848 * common/common-exceptions.c (exception_rethrow): Remove.
10849
10850 2019-04-08 Tom Tromey <tom@tromey.com>
10851
10852 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10853 Remove.
10854 (gdb_exception_error): Rename from
10855 gdb_exception_RETURN_MASK_ERROR.
10856 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10857 (gdb_quit_bad_alloc): Update.
10858 * aarch64-tdep.c: Update.
10859 * ada-lang.c: Update.
10860 * ada-typeprint.c: Update.
10861 * ada-valprint.c: Update.
10862 * amd64-tdep.c: Update.
10863 * arch-utils.c: Update.
10864 * break-catch-throw.c: Update.
10865 * breakpoint.c: Update.
10866 * btrace.c: Update.
10867 * c-varobj.c: Update.
10868 * cli/cli-cmds.c: Update.
10869 * cli/cli-interp.c: Update.
10870 * cli/cli-script.c: Update.
10871 * common/common-exceptions.c: Update.
10872 * common/new-op.c: Update.
10873 * common/selftest.c: Update.
10874 * compile/compile-c-symbols.c: Update.
10875 * compile/compile-cplus-symbols.c: Update.
10876 * compile/compile-object-load.c: Update.
10877 * compile/compile-object-run.c: Update.
10878 * completer.c: Update.
10879 * corelow.c: Update.
10880 * cp-abi.c: Update.
10881 * cp-support.c: Update.
10882 * cp-valprint.c: Update.
10883 * darwin-nat.c: Update.
10884 * disasm-selftests.c: Update.
10885 * dtrace-probe.c: Update.
10886 * dwarf-index-cache.c: Update.
10887 * dwarf-index-write.c: Update.
10888 * dwarf2-frame-tailcall.c: Update.
10889 * dwarf2-frame.c: Update.
10890 * dwarf2loc.c: Update.
10891 * dwarf2read.c: Update.
10892 * eval.c: Update.
10893 * event-loop.c: Update.
10894 * event-top.c: Update.
10895 * exec.c: Update.
10896 * f-valprint.c: Update.
10897 * fbsd-tdep.c: Update.
10898 * frame-unwind.c: Update.
10899 * frame.c: Update.
10900 * gdbtypes.c: Update.
10901 * gnu-v3-abi.c: Update.
10902 * guile/guile-internal.h: Update.
10903 * guile/scm-block.c: Update.
10904 * guile/scm-breakpoint.c: Update.
10905 * guile/scm-cmd.c: Update.
10906 * guile/scm-disasm.c: Update.
10907 * guile/scm-frame.c: Update.
10908 * guile/scm-lazy-string.c: Update.
10909 * guile/scm-math.c: Update.
10910 * guile/scm-param.c: Update.
10911 * guile/scm-ports.c: Update.
10912 * guile/scm-pretty-print.c: Update.
10913 * guile/scm-symbol.c: Update.
10914 * guile/scm-symtab.c: Update.
10915 * guile/scm-type.c: Update.
10916 * guile/scm-value.c: Update.
10917 * i386-linux-tdep.c: Update.
10918 * i386-tdep.c: Update.
10919 * inf-loop.c: Update.
10920 * infcall.c: Update.
10921 * infcmd.c: Update.
10922 * infrun.c: Update.
10923 * jit.c: Update.
10924 * language.c: Update.
10925 * linespec.c: Update.
10926 * linux-fork.c: Update.
10927 * linux-nat.c: Update.
10928 * linux-tdep.c: Update.
10929 * linux-thread-db.c: Update.
10930 * main.c: Update.
10931 * mi/mi-cmd-break.c: Update.
10932 * mi/mi-cmd-stack.c: Update.
10933 * mi/mi-interp.c: Update.
10934 * mi/mi-main.c: Update.
10935 * objc-lang.c: Update.
10936 * p-valprint.c: Update.
10937 * parse.c: Update.
10938 * ppc-linux-tdep.c: Update.
10939 * printcmd.c: Update.
10940 * python/py-arch.c: Update.
10941 * python/py-breakpoint.c: Update.
10942 * python/py-cmd.c: Update.
10943 * python/py-finishbreakpoint.c: Update.
10944 * python/py-frame.c: Update.
10945 * python/py-framefilter.c: Update.
10946 * python/py-gdb-readline.c: Update.
10947 * python/py-inferior.c: Update.
10948 * python/py-infthread.c: Update.
10949 * python/py-lazy-string.c: Update.
10950 * python/py-linetable.c: Update.
10951 * python/py-objfile.c: Update.
10952 * python/py-param.c: Update.
10953 * python/py-prettyprint.c: Update.
10954 * python/py-progspace.c: Update.
10955 * python/py-record-btrace.c: Update.
10956 * python/py-record.c: Update.
10957 * python/py-symbol.c: Update.
10958 * python/py-type.c: Update.
10959 * python/py-unwind.c: Update.
10960 * python/py-utils.c: Update.
10961 * python/py-value.c: Update.
10962 * python/python.c: Update.
10963 * record-btrace.c: Update.
10964 * record-full.c: Update.
10965 * remote-fileio.c: Update.
10966 * remote.c: Update.
10967 * riscv-tdep.c: Update.
10968 * rs6000-aix-tdep.c: Update.
10969 * rs6000-tdep.c: Update.
10970 * rust-exp.y: Update.
10971 * rust-lang.c: Update.
10972 * s390-tdep.c: Update.
10973 * selftest-arch.c: Update.
10974 * solib-dsbt.c: Update.
10975 * solib-frv.c: Update.
10976 * solib-spu.c: Update.
10977 * solib-svr4.c: Update.
10978 * solib.c: Update.
10979 * sparc64-linux-tdep.c: Update.
10980 * stack.c: Update.
10981 * symfile-mem.c: Update.
10982 * symmisc.c: Update.
10983 * target.c: Update.
10984 * thread.c: Update.
10985 * top.c: Update.
10986 * tracefile-tfile.c: Update.
10987 * tui/tui.c: Update.
10988 * typeprint.c: Update.
10989 * unittests/cli-utils-selftests.c: Update.
10990 * unittests/parse-connection-spec-selftests.c: Update.
10991 * valops.c: Update.
10992 * valprint.c: Update.
10993 * value.c: Update.
10994 * varobj.c: Update.
10995 * windows-nat.c: Update.
10996 * x86-linux-nat.c: Update.
10997 * xml-support.c: Update.
10998
10999 2019-04-08 Tom Tromey <tom@tromey.com>
11000
11001 * xml-support.c: Use C++ exception handling.
11002 * x86-linux-nat.c: Use C++ exception handling.
11003 * windows-nat.c: Use C++ exception handling.
11004 * varobj.c: Use C++ exception handling.
11005 * value.c: Use C++ exception handling.
11006 * valprint.c: Use C++ exception handling.
11007 * valops.c: Use C++ exception handling.
11008 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11009 handling.
11010 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11011 * typeprint.c: Use C++ exception handling.
11012 * tui/tui.c: Use C++ exception handling.
11013 * tracefile-tfile.c: Use C++ exception handling.
11014 * top.c: Use C++ exception handling.
11015 * thread.c: Use C++ exception handling.
11016 * target.c: Use C++ exception handling.
11017 * symmisc.c: Use C++ exception handling.
11018 * symfile-mem.c: Use C++ exception handling.
11019 * stack.c: Use C++ exception handling.
11020 * sparc64-linux-tdep.c: Use C++ exception handling.
11021 * solib.c: Use C++ exception handling.
11022 * solib-svr4.c: Use C++ exception handling.
11023 * solib-spu.c: Use C++ exception handling.
11024 * solib-frv.c: Use C++ exception handling.
11025 * solib-dsbt.c: Use C++ exception handling.
11026 * selftest-arch.c: Use C++ exception handling.
11027 * s390-tdep.c: Use C++ exception handling.
11028 * rust-lang.c: Use C++ exception handling.
11029 * rust-exp.y: Use C++ exception handling.
11030 * rs6000-tdep.c: Use C++ exception handling.
11031 * rs6000-aix-tdep.c: Use C++ exception handling.
11032 * riscv-tdep.c: Use C++ exception handling.
11033 * remote.c: Use C++ exception handling.
11034 * remote-fileio.c: Use C++ exception handling.
11035 * record-full.c: Use C++ exception handling.
11036 * record-btrace.c: Use C++ exception handling.
11037 * python/python.c: Use C++ exception handling.
11038 * python/py-value.c: Use C++ exception handling.
11039 * python/py-utils.c: Use C++ exception handling.
11040 * python/py-unwind.c: Use C++ exception handling.
11041 * python/py-type.c: Use C++ exception handling.
11042 * python/py-symbol.c: Use C++ exception handling.
11043 * python/py-record.c: Use C++ exception handling.
11044 * python/py-record-btrace.c: Use C++ exception handling.
11045 * python/py-progspace.c: Use C++ exception handling.
11046 * python/py-prettyprint.c: Use C++ exception handling.
11047 * python/py-param.c: Use C++ exception handling.
11048 * python/py-objfile.c: Use C++ exception handling.
11049 * python/py-linetable.c: Use C++ exception handling.
11050 * python/py-lazy-string.c: Use C++ exception handling.
11051 * python/py-infthread.c: Use C++ exception handling.
11052 * python/py-inferior.c: Use C++ exception handling.
11053 * python/py-gdb-readline.c: Use C++ exception handling.
11054 * python/py-framefilter.c: Use C++ exception handling.
11055 * python/py-frame.c: Use C++ exception handling.
11056 * python/py-finishbreakpoint.c: Use C++ exception handling.
11057 * python/py-cmd.c: Use C++ exception handling.
11058 * python/py-breakpoint.c: Use C++ exception handling.
11059 * python/py-arch.c: Use C++ exception handling.
11060 * printcmd.c: Use C++ exception handling.
11061 * ppc-linux-tdep.c: Use C++ exception handling.
11062 * parse.c: Use C++ exception handling.
11063 * p-valprint.c: Use C++ exception handling.
11064 * objc-lang.c: Use C++ exception handling.
11065 * mi/mi-main.c: Use C++ exception handling.
11066 * mi/mi-interp.c: Use C++ exception handling.
11067 * mi/mi-cmd-stack.c: Use C++ exception handling.
11068 * mi/mi-cmd-break.c: Use C++ exception handling.
11069 * main.c: Use C++ exception handling.
11070 * linux-thread-db.c: Use C++ exception handling.
11071 * linux-tdep.c: Use C++ exception handling.
11072 * linux-nat.c: Use C++ exception handling.
11073 * linux-fork.c: Use C++ exception handling.
11074 * linespec.c: Use C++ exception handling.
11075 * language.c: Use C++ exception handling.
11076 * jit.c: Use C++ exception handling.
11077 * infrun.c: Use C++ exception handling.
11078 * infcmd.c: Use C++ exception handling.
11079 * infcall.c: Use C++ exception handling.
11080 * inf-loop.c: Use C++ exception handling.
11081 * i386-tdep.c: Use C++ exception handling.
11082 * i386-linux-tdep.c: Use C++ exception handling.
11083 * guile/scm-value.c: Use C++ exception handling.
11084 * guile/scm-type.c: Use C++ exception handling.
11085 * guile/scm-symtab.c: Use C++ exception handling.
11086 * guile/scm-symbol.c: Use C++ exception handling.
11087 * guile/scm-pretty-print.c: Use C++ exception handling.
11088 * guile/scm-ports.c: Use C++ exception handling.
11089 * guile/scm-param.c: Use C++ exception handling.
11090 * guile/scm-math.c: Use C++ exception handling.
11091 * guile/scm-lazy-string.c: Use C++ exception handling.
11092 * guile/scm-frame.c: Use C++ exception handling.
11093 * guile/scm-disasm.c: Use C++ exception handling.
11094 * guile/scm-cmd.c: Use C++ exception handling.
11095 * guile/scm-breakpoint.c: Use C++ exception handling.
11096 * guile/scm-block.c: Use C++ exception handling.
11097 * guile/guile-internal.h: Use C++ exception handling.
11098 * gnu-v3-abi.c: Use C++ exception handling.
11099 * gdbtypes.c: Use C++ exception handling.
11100 * frame.c: Use C++ exception handling.
11101 * frame-unwind.c: Use C++ exception handling.
11102 * fbsd-tdep.c: Use C++ exception handling.
11103 * f-valprint.c: Use C++ exception handling.
11104 * exec.c: Use C++ exception handling.
11105 * event-top.c: Use C++ exception handling.
11106 * event-loop.c: Use C++ exception handling.
11107 * eval.c: Use C++ exception handling.
11108 * dwarf2read.c: Use C++ exception handling.
11109 * dwarf2loc.c: Use C++ exception handling.
11110 * dwarf2-frame.c: Use C++ exception handling.
11111 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11112 * dwarf-index-write.c: Use C++ exception handling.
11113 * dwarf-index-cache.c: Use C++ exception handling.
11114 * dtrace-probe.c: Use C++ exception handling.
11115 * disasm-selftests.c: Use C++ exception handling.
11116 * darwin-nat.c: Use C++ exception handling.
11117 * cp-valprint.c: Use C++ exception handling.
11118 * cp-support.c: Use C++ exception handling.
11119 * cp-abi.c: Use C++ exception handling.
11120 * corelow.c: Use C++ exception handling.
11121 * completer.c: Use C++ exception handling.
11122 * compile/compile-object-run.c: Use C++ exception handling.
11123 * compile/compile-object-load.c: Use C++ exception handling.
11124 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11125 * compile/compile-c-symbols.c: Use C++ exception handling.
11126 * common/selftest.c: Use C++ exception handling.
11127 * common/new-op.c: Use C++ exception handling.
11128 * cli/cli-script.c: Use C++ exception handling.
11129 * cli/cli-interp.c: Use C++ exception handling.
11130 * cli/cli-cmds.c: Use C++ exception handling.
11131 * c-varobj.c: Use C++ exception handling.
11132 * btrace.c: Use C++ exception handling.
11133 * breakpoint.c: Use C++ exception handling.
11134 * break-catch-throw.c: Use C++ exception handling.
11135 * arch-utils.c: Use C++ exception handling.
11136 * amd64-tdep.c: Use C++ exception handling.
11137 * ada-valprint.c: Use C++ exception handling.
11138 * ada-typeprint.c: Use C++ exception handling.
11139 * ada-lang.c: Use C++ exception handling.
11140 * aarch64-tdep.c: Use C++ exception handling.
11141
11142 2019-04-08 Tom Tromey <tom@tromey.com>
11143
11144 * xml-support.c (gdb_xml_parser::parse): Update.
11145 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11146 * value.c (show_convenience): Update.
11147 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11148 (test_parse_flags_qcs): Update.
11149 * thread.c (thr_try_catch_cmd): Update.
11150 * target.c (target_translate_tls_address): Update.
11151 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11152 (info_frame_command_core, frame_apply_command_count): Update.
11153 * rust-exp.y (rust_lex_exception_test): Update.
11154 * riscv-tdep.c (riscv_print_one_register_info): Update.
11155 * remote.c (remote_target::enable_btrace): Update.
11156 * record-btrace.c (record_btrace_enable_warn): Update.
11157 * python/py-utils.c (gdbpy_convert_exception): Update.
11158 * printcmd.c (do_one_display, print_variable_and_value): Update.
11159 * mi/mi-main.c (mi_print_exception): Update.
11160 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11161 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11162 * linux-nat.c (linux_nat_target::attach): Update.
11163 * linux-fork.c (class scoped_switch_fork_info): Update.
11164 * infrun.c (displaced_step_prepare): Update.
11165 * infcall.c (call_function_by_hand_dummy): Update.
11166 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11167 * gnu-v3-abi.c (print_one_vtable): Update.
11168 * frame.c (get_prev_frame_always): Update.
11169 * f-valprint.c (info_common_command_for_block): Update.
11170 * exec.c (try_open_exec_file): Update.
11171 * exceptions.c (print_exception, exception_print)
11172 (exception_fprintf, exception_print_same): Update.
11173 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11174 * dwarf-index-cache.c (index_cache::store)
11175 (index_cache::lookup_gdb_index): Update.
11176 * darwin-nat.c (maybe_cache_shell): Update.
11177 * cp-valprint.c (cp_print_value_fields): Update.
11178 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11179 (gcc_cplus_symbol_address): Update.
11180 * compile/compile-c-symbols.c (gcc_convert_symbol)
11181 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11182 * common/selftest.c: Update.
11183 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11184 a std::string.
11185 (exception_try_scope_entry, exception_try_scope_exit): Don't
11186 declare.
11187 (struct exception_try_scope): Remove.
11188 (TRY): Don't use exception_try_scope.
11189 (struct gdb_exception): Add constructor, operator=.
11190 <what>: New method.
11191 (struct gdb_exception_RETURN_MASK_ALL)
11192 (struct gdb_exception_RETURN_MASK_ERROR)
11193 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11194 (struct gdb_quit_bad_alloc): Update.
11195 * common/common-exceptions.c (exception_none): Change
11196 initializer.
11197 (struct catcher) <state, exception>: Initialize inline.
11198 <prev>: Remove member.
11199 (current_catcher): Remove.
11200 (catchers): New global.
11201 (exceptions_state_mc_init): Simplify.
11202 (catcher_pop): Remove.
11203 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11204 (try_scope_depth, exception_try_scope_entry)
11205 (exception_try_scope_exit): Remove.
11206 (throw_exception_sjlj): Update.
11207 (exception_messages, exception_messages_size): Remove.
11208 (throw_it): Simplify.
11209 (gdb_exception_sliced_copy): Remove.
11210 (throw_exception_cxx): Update.
11211 * cli/cli-script.c (script_from_file): Update.
11212 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11213 Update.
11214 * ada-valprint.c (ada_val_print): Update.
11215 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11216 (create_excep_cond_exprs): Update.
11217
11218 2019-04-08 Tom Tromey <tom@tromey.com>
11219
11220 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11221 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11222 (TRY, CATCH, END_CATCH): Remove some definitions.
11223 * common/common-exceptions.c: Don't use GDB_XCPT.
11224 (catcher_list_size): Remove.
11225 (throw_exception, throw_it): Simplify.
11226
11227 2019-04-05 Tom Tromey <tom@tromey.com>
11228
11229 Revert the header-sorting patch.
11230 * ft32-tdep.c: Revert.
11231 * frv-tdep.c: Revert.
11232 * frv-linux-tdep.c: Revert.
11233 * frame.c: Revert.
11234 * frame-unwind.c: Revert.
11235 * frame-base.c: Revert.
11236 * fork-child.c: Revert.
11237 * findvar.c: Revert.
11238 * findcmd.c: Revert.
11239 * filesystem.c: Revert.
11240 * filename-seen-cache.h: Revert.
11241 * filename-seen-cache.c: Revert.
11242 * fbsd-tdep.c: Revert.
11243 * fbsd-nat.h: Revert.
11244 * fbsd-nat.c: Revert.
11245 * f-valprint.c: Revert.
11246 * f-typeprint.c: Revert.
11247 * f-lang.c: Revert.
11248 * extension.h: Revert.
11249 * extension.c: Revert.
11250 * extension-priv.h: Revert.
11251 * expprint.c: Revert.
11252 * exec.h: Revert.
11253 * exec.c: Revert.
11254 * exceptions.c: Revert.
11255 * event-top.c: Revert.
11256 * event-loop.c: Revert.
11257 * eval.c: Revert.
11258 * elfread.c: Revert.
11259 * dwarf2read.h: Revert.
11260 * dwarf2read.c: Revert.
11261 * dwarf2loc.c: Revert.
11262 * dwarf2expr.h: Revert.
11263 * dwarf2expr.c: Revert.
11264 * dwarf2-frame.c: Revert.
11265 * dwarf2-frame-tailcall.c: Revert.
11266 * dwarf-index-write.h: Revert.
11267 * dwarf-index-write.c: Revert.
11268 * dwarf-index-common.c: Revert.
11269 * dwarf-index-cache.h: Revert.
11270 * dwarf-index-cache.c: Revert.
11271 * dummy-frame.c: Revert.
11272 * dtrace-probe.c: Revert.
11273 * disasm.h: Revert.
11274 * disasm.c: Revert.
11275 * disasm-selftests.c: Revert.
11276 * dictionary.c: Revert.
11277 * dicos-tdep.c: Revert.
11278 * demangle.c: Revert.
11279 * dcache.h: Revert.
11280 * dcache.c: Revert.
11281 * darwin-nat.h: Revert.
11282 * darwin-nat.c: Revert.
11283 * darwin-nat-info.c: Revert.
11284 * d-valprint.c: Revert.
11285 * d-namespace.c: Revert.
11286 * d-lang.c: Revert.
11287 * ctf.c: Revert.
11288 * csky-tdep.c: Revert.
11289 * csky-linux-tdep.c: Revert.
11290 * cris-tdep.c: Revert.
11291 * cris-linux-tdep.c: Revert.
11292 * cp-valprint.c: Revert.
11293 * cp-support.c: Revert.
11294 * cp-namespace.c: Revert.
11295 * cp-abi.c: Revert.
11296 * corelow.c: Revert.
11297 * corefile.c: Revert.
11298 * continuations.c: Revert.
11299 * completer.h: Revert.
11300 * completer.c: Revert.
11301 * complaints.c: Revert.
11302 * coffread.c: Revert.
11303 * coff-pe-read.c: Revert.
11304 * cli-out.h: Revert.
11305 * cli-out.c: Revert.
11306 * charset.c: Revert.
11307 * c-varobj.c: Revert.
11308 * c-valprint.c: Revert.
11309 * c-typeprint.c: Revert.
11310 * c-lang.c: Revert.
11311 * buildsym.c: Revert.
11312 * buildsym-legacy.c: Revert.
11313 * build-id.h: Revert.
11314 * build-id.c: Revert.
11315 * btrace.c: Revert.
11316 * bsd-uthread.c: Revert.
11317 * breakpoint.h: Revert.
11318 * breakpoint.c: Revert.
11319 * break-catch-throw.c: Revert.
11320 * break-catch-syscall.c: Revert.
11321 * break-catch-sig.c: Revert.
11322 * blockframe.c: Revert.
11323 * block.c: Revert.
11324 * bfin-tdep.c: Revert.
11325 * bfin-linux-tdep.c: Revert.
11326 * bfd-target.c: Revert.
11327 * bcache.c: Revert.
11328 * ax-general.c: Revert.
11329 * ax-gdb.h: Revert.
11330 * ax-gdb.c: Revert.
11331 * avr-tdep.c: Revert.
11332 * auxv.c: Revert.
11333 * auto-load.c: Revert.
11334 * arm-wince-tdep.c: Revert.
11335 * arm-tdep.c: Revert.
11336 * arm-symbian-tdep.c: Revert.
11337 * arm-pikeos-tdep.c: Revert.
11338 * arm-obsd-tdep.c: Revert.
11339 * arm-nbsd-tdep.c: Revert.
11340 * arm-nbsd-nat.c: Revert.
11341 * arm-linux-tdep.c: Revert.
11342 * arm-linux-nat.c: Revert.
11343 * arm-fbsd-tdep.c: Revert.
11344 * arm-fbsd-nat.c: Revert.
11345 * arm-bsd-tdep.c: Revert.
11346 * arch-utils.c: Revert.
11347 * arc-tdep.c: Revert.
11348 * arc-newlib-tdep.c: Revert.
11349 * annotate.h: Revert.
11350 * annotate.c: Revert.
11351 * amd64-windows-tdep.c: Revert.
11352 * amd64-windows-nat.c: Revert.
11353 * amd64-tdep.c: Revert.
11354 * amd64-sol2-tdep.c: Revert.
11355 * amd64-obsd-tdep.c: Revert.
11356 * amd64-obsd-nat.c: Revert.
11357 * amd64-nbsd-tdep.c: Revert.
11358 * amd64-nbsd-nat.c: Revert.
11359 * amd64-nat.c: Revert.
11360 * amd64-linux-tdep.c: Revert.
11361 * amd64-linux-nat.c: Revert.
11362 * amd64-fbsd-tdep.c: Revert.
11363 * amd64-fbsd-nat.c: Revert.
11364 * amd64-dicos-tdep.c: Revert.
11365 * amd64-darwin-tdep.c: Revert.
11366 * amd64-bsd-nat.c: Revert.
11367 * alpha-tdep.c: Revert.
11368 * alpha-obsd-tdep.c: Revert.
11369 * alpha-nbsd-tdep.c: Revert.
11370 * alpha-mdebug-tdep.c: Revert.
11371 * alpha-linux-tdep.c: Revert.
11372 * alpha-linux-nat.c: Revert.
11373 * alpha-bsd-tdep.c: Revert.
11374 * alpha-bsd-nat.c: Revert.
11375 * aix-thread.c: Revert.
11376 * agent.c: Revert.
11377 * addrmap.c: Revert.
11378 * ada-varobj.c: Revert.
11379 * ada-valprint.c: Revert.
11380 * ada-typeprint.c: Revert.
11381 * ada-tasks.c: Revert.
11382 * ada-lang.c: Revert.
11383 * aarch64-tdep.c: Revert.
11384 * aarch64-ravenscar-thread.c: Revert.
11385 * aarch64-newlib-tdep.c: Revert.
11386 * aarch64-linux-tdep.c: Revert.
11387 * aarch64-linux-nat.c: Revert.
11388 * aarch64-fbsd-tdep.c: Revert.
11389 * aarch64-fbsd-nat.c: Revert.
11390 * aarch32-linux-nat.c: Revert.
11391
11392 2019-04-05 Tom Tromey <tom@tromey.com>
11393
11394 * ft32-tdep.c: Sort headers.
11395 * frv-tdep.c: Sort headers.
11396 * frv-linux-tdep.c: Sort headers.
11397 * frame.c: Sort headers.
11398 * frame-unwind.c: Sort headers.
11399 * frame-base.c: Sort headers.
11400 * fork-child.c: Sort headers.
11401 * findvar.c: Sort headers.
11402 * findcmd.c: Sort headers.
11403 * filesystem.c: Sort headers.
11404 * filename-seen-cache.h: Sort headers.
11405 * filename-seen-cache.c: Sort headers.
11406 * fbsd-tdep.c: Sort headers.
11407 * fbsd-nat.h: Sort headers.
11408 * fbsd-nat.c: Sort headers.
11409 * f-valprint.c: Sort headers.
11410 * f-typeprint.c: Sort headers.
11411 * f-lang.c: Sort headers.
11412 * extension.h: Sort headers.
11413 * extension.c: Sort headers.
11414 * extension-priv.h: Sort headers.
11415 * expprint.c: Sort headers.
11416 * exec.h: Sort headers.
11417 * exec.c: Sort headers.
11418 * exceptions.c: Sort headers.
11419 * event-top.c: Sort headers.
11420 * event-loop.c: Sort headers.
11421 * eval.c: Sort headers.
11422 * elfread.c: Sort headers.
11423 * dwarf2read.h: Sort headers.
11424 * dwarf2read.c: Sort headers.
11425 * dwarf2loc.c: Sort headers.
11426 * dwarf2expr.h: Sort headers.
11427 * dwarf2expr.c: Sort headers.
11428 * dwarf2-frame.c: Sort headers.
11429 * dwarf2-frame-tailcall.c: Sort headers.
11430 * dwarf-index-write.h: Sort headers.
11431 * dwarf-index-write.c: Sort headers.
11432 * dwarf-index-common.c: Sort headers.
11433 * dwarf-index-cache.h: Sort headers.
11434 * dwarf-index-cache.c: Sort headers.
11435 * dummy-frame.c: Sort headers.
11436 * dtrace-probe.c: Sort headers.
11437 * disasm.h: Sort headers.
11438 * disasm.c: Sort headers.
11439 * disasm-selftests.c: Sort headers.
11440 * dictionary.c: Sort headers.
11441 * dicos-tdep.c: Sort headers.
11442 * demangle.c: Sort headers.
11443 * dcache.h: Sort headers.
11444 * dcache.c: Sort headers.
11445 * darwin-nat.h: Sort headers.
11446 * darwin-nat.c: Sort headers.
11447 * darwin-nat-info.c: Sort headers.
11448 * d-valprint.c: Sort headers.
11449 * d-namespace.c: Sort headers.
11450 * d-lang.c: Sort headers.
11451 * ctf.c: Sort headers.
11452 * csky-tdep.c: Sort headers.
11453 * csky-linux-tdep.c: Sort headers.
11454 * cris-tdep.c: Sort headers.
11455 * cris-linux-tdep.c: Sort headers.
11456 * cp-valprint.c: Sort headers.
11457 * cp-support.c: Sort headers.
11458 * cp-namespace.c: Sort headers.
11459 * cp-abi.c: Sort headers.
11460 * corelow.c: Sort headers.
11461 * corefile.c: Sort headers.
11462 * continuations.c: Sort headers.
11463 * completer.h: Sort headers.
11464 * completer.c: Sort headers.
11465 * complaints.c: Sort headers.
11466 * coffread.c: Sort headers.
11467 * coff-pe-read.c: Sort headers.
11468 * cli-out.h: Sort headers.
11469 * cli-out.c: Sort headers.
11470 * charset.c: Sort headers.
11471 * c-varobj.c: Sort headers.
11472 * c-valprint.c: Sort headers.
11473 * c-typeprint.c: Sort headers.
11474 * c-lang.c: Sort headers.
11475 * buildsym.c: Sort headers.
11476 * buildsym-legacy.c: Sort headers.
11477 * build-id.h: Sort headers.
11478 * build-id.c: Sort headers.
11479 * btrace.c: Sort headers.
11480 * bsd-uthread.c: Sort headers.
11481 * breakpoint.h: Sort headers.
11482 * breakpoint.c: Sort headers.
11483 * break-catch-throw.c: Sort headers.
11484 * break-catch-syscall.c: Sort headers.
11485 * break-catch-sig.c: Sort headers.
11486 * blockframe.c: Sort headers.
11487 * block.c: Sort headers.
11488 * bfin-tdep.c: Sort headers.
11489 * bfin-linux-tdep.c: Sort headers.
11490 * bfd-target.c: Sort headers.
11491 * bcache.c: Sort headers.
11492 * ax-general.c: Sort headers.
11493 * ax-gdb.h: Sort headers.
11494 * ax-gdb.c: Sort headers.
11495 * avr-tdep.c: Sort headers.
11496 * auxv.c: Sort headers.
11497 * auto-load.c: Sort headers.
11498 * arm-wince-tdep.c: Sort headers.
11499 * arm-tdep.c: Sort headers.
11500 * arm-symbian-tdep.c: Sort headers.
11501 * arm-pikeos-tdep.c: Sort headers.
11502 * arm-obsd-tdep.c: Sort headers.
11503 * arm-nbsd-tdep.c: Sort headers.
11504 * arm-nbsd-nat.c: Sort headers.
11505 * arm-linux-tdep.c: Sort headers.
11506 * arm-linux-nat.c: Sort headers.
11507 * arm-fbsd-tdep.c: Sort headers.
11508 * arm-fbsd-nat.c: Sort headers.
11509 * arm-bsd-tdep.c: Sort headers.
11510 * arch-utils.c: Sort headers.
11511 * arc-tdep.c: Sort headers.
11512 * arc-newlib-tdep.c: Sort headers.
11513 * annotate.h: Sort headers.
11514 * annotate.c: Sort headers.
11515 * amd64-windows-tdep.c: Sort headers.
11516 * amd64-windows-nat.c: Sort headers.
11517 * amd64-tdep.c: Sort headers.
11518 * amd64-sol2-tdep.c: Sort headers.
11519 * amd64-obsd-tdep.c: Sort headers.
11520 * amd64-obsd-nat.c: Sort headers.
11521 * amd64-nbsd-tdep.c: Sort headers.
11522 * amd64-nbsd-nat.c: Sort headers.
11523 * amd64-nat.c: Sort headers.
11524 * amd64-linux-tdep.c: Sort headers.
11525 * amd64-linux-nat.c: Sort headers.
11526 * amd64-fbsd-tdep.c: Sort headers.
11527 * amd64-fbsd-nat.c: Sort headers.
11528 * amd64-dicos-tdep.c: Sort headers.
11529 * amd64-darwin-tdep.c: Sort headers.
11530 * amd64-bsd-nat.c: Sort headers.
11531 * alpha-tdep.c: Sort headers.
11532 * alpha-obsd-tdep.c: Sort headers.
11533 * alpha-nbsd-tdep.c: Sort headers.
11534 * alpha-mdebug-tdep.c: Sort headers.
11535 * alpha-linux-tdep.c: Sort headers.
11536 * alpha-linux-nat.c: Sort headers.
11537 * alpha-bsd-tdep.c: Sort headers.
11538 * alpha-bsd-nat.c: Sort headers.
11539 * aix-thread.c: Sort headers.
11540 * agent.c: Sort headers.
11541 * addrmap.c: Sort headers.
11542 * ada-varobj.c: Sort headers.
11543 * ada-valprint.c: Sort headers.
11544 * ada-typeprint.c: Sort headers.
11545 * ada-tasks.c: Sort headers.
11546 * ada-lang.c: Sort headers.
11547 * aarch64-tdep.c: Sort headers.
11548 * aarch64-ravenscar-thread.c: Sort headers.
11549 * aarch64-newlib-tdep.c: Sort headers.
11550 * aarch64-linux-tdep.c: Sort headers.
11551 * aarch64-linux-nat.c: Sort headers.
11552 * aarch64-fbsd-tdep.c: Sort headers.
11553 * aarch64-fbsd-nat.c: Sort headers.
11554 * aarch32-linux-nat.c: Sort headers.
11555
11556 2019-04-04 Tom Tromey <tom@tromey.com>
11557
11558 * varobj.c (varobj_create): Update.
11559 * rust-exp.y (struct rust_parser) <update_innermost_block,
11560 lookup_symbol>: New methods.
11561 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11562 Rename.
11563 (rust_parser::rust_lookup_type)
11564 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11565 * printcmd.c (display_command, do_one_display): Update.
11566 * parser-defs.h (struct parser_state) <parser_state>: Add
11567 "tracker" parameter.
11568 (block_tracker): New member.
11569 (class innermost_block_tracker) <innermost_block_tracker>: Add
11570 "types" parameter.
11571 <reset>: Remove method.
11572 (innermost_block): Don't declare.
11573 (null_post_parser): Update.
11574 * parse.c (innermost_block): Remove global.
11575 (write_dollar_variable): Update.
11576 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11577 Remove "tracker_types" parameter.
11578 (parse_expression): Add "tracker" parameter.
11579 (parse_expression_for_completion): Update.
11580 (null_post_parser): Add "tracker" parameter.
11581 * p-exp.y: Update rules.
11582 * m2-exp.y: Update rules.
11583 * language.h (struct language_defn) <la_post_parser>: Add
11584 "tracker" parameter.
11585 * go-exp.y: Update rules.
11586 * f-exp.y: Update rules.
11587 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11588 parameter.
11589 * d-exp.y: Update rules.
11590 * c-exp.y: Update rules.
11591 * breakpoint.c (set_breakpoint_condition): Create an
11592 innermost_block_tracker.
11593 (watch_command_1): Likewise.
11594 * ada-lang.c (resolve): Add "tracker" parameter.
11595 (resolve_subexp): Likewise.
11596 * ada-exp.y (write_var_from_sym): Update.
11597
11598 2019-04-04 Tom Tromey <tom@tromey.com>
11599
11600 * type-stack.h: New file.
11601 * type-stack.c: New file.
11602 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11603 type-stack.h.
11604 (insert_into_type_stack, insert_type, push_type, push_type_int)
11605 (insert_type_address_space, pop_type, pop_type_int)
11606 (pop_typelist, pop_type_stack, append_type_stack)
11607 (push_type_stack, get_type_stack, push_typelist)
11608 (follow_type_instance_flags, follow_types): Don't declare.
11609 * parse.c (type_stack): Remove global.
11610 (parse_exp_in_context): Update.
11611 (insert_into_type_stack, insert_type, push_type, push_type_int)
11612 (insert_type_address_space, pop_type, pop_type_int)
11613 (pop_typelist, pop_type_stack, append_type_stack)
11614 (push_type_stack, get_type_stack, push_typelist)
11615 (follow_type_instance_flags, follow_types): Remove (moved to
11616 type-stack.c).
11617 * f-exp.y (type_stack): New global.
11618 Update rules.
11619 (push_kind_type, f_parse): Update.
11620 * d-exp.y (type_stack): New global.
11621 Update rules.
11622 (d_parse): Update.
11623 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11624 Update rules.
11625 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11626 (HFILES_NO_SRCDIR): Add type-stack.h.
11627
11628 2019-04-04 Tom Tromey <tom@tromey.com>
11629
11630 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11631 (rust_parser::convert_ast_to_expression, rust_parse)
11632 (rust_lex_test_completion, rust_lex_tests): Update.
11633 * parser-defs.h (struct expr_completion_state): New.
11634 (struct parser_state) <parser_state>: Add completion parameter.
11635 <mark_struct_expression, mark_completion_tag>: New methods.
11636 <parse_completion, m_completion_state>: New members.
11637 (prefixify_expression, null_post_parser): Update.
11638 (mark_struct_expression, mark_completion_tag): Don't declare.
11639 * parse.c (parse_completion, expout_last_struct)
11640 (expout_tag_completion_type, expout_completion_name): Remove
11641 globals.
11642 (parser_state::mark_struct_expression)
11643 (parser_state::mark_completion_tag): Now methods.
11644 (prefixify_expression): Add last_struct parameter.
11645 (prefixify_subexp): Likewise.
11646 (parse_exp_1): Update.
11647 (parse_exp_in_context): Add cstate parameter. Update.
11648 (parse_expression_for_completion): Create an
11649 expr_completion_state.
11650 (null_post_parser): Add "completion" parameter.
11651 * p-exp.y: Update rules.
11652 (yylex): Update.
11653 * language.h (struct language_defn) <la_post_parser>: Add
11654 "completing" parameter.
11655 * go-exp.y: Update rules.
11656 (lex_one_token): Update.
11657 * expression.h (parse_completion): Don't declare.
11658 * d-exp.y: Update rules.
11659 (lex_one_token): Update rules.
11660 * c-exp.y: Update rules.
11661 (lex_one_token): Update.
11662 * ada-lang.c (resolve): Add "parse_completion" parameter.
11663 (resolve_subexp): Likewise.
11664 (ada_resolve_function): Likewise.
11665
11666 2019-04-04 Tom Tromey <tom@tromey.com>
11667
11668 * parser-defs.h (struct parser_state) <start_arglist,
11669 end_arglist>: New methods.
11670 <arglist_len, m_funcall_chain>: New members.
11671 (arglist_len, start_arglist, end_arglist): Don't declare.
11672 * parse.c (arglist_len, funcall_chain): Remove global.
11673 (start_arglist, end_arglist): Remove functions.
11674 (parse_exp_in_context): Update.
11675 * p-exp.y: Update rules.
11676 * m2-exp.y: Update rules.
11677 * go-exp.y: Update rules.
11678 * f-exp.y: Update rules.
11679 * d-exp.y: Update rules.
11680 * c-exp.y: Update rules.
11681
11682 2019-04-04 Tom Tromey <tom@tromey.com>
11683
11684 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11685 lex_operator, push_back>: New methods.
11686 Update all rules.
11687 (rust_parser::lex_hex, lex_escape): Rename and update.
11688 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11689 (rust_parser::lex_operator): Rename and update.
11690 (rust_parser::lex_number, rustyylex, rustyyerror)
11691 (rust_lex_test_init, rust_lex_test_sequence)
11692 (rust_lex_test_push_back, rust_lex_tests): Update.
11693 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11694 parameter.
11695 <lexptr, prev_lexptr>: New members.
11696 (lexptr, prev_lexptr): Don't declare.
11697 * parse.c (lexptr, prev_lexptr): Remove globals.
11698 (parse_exp_in_context): Update.
11699 * p-exp.y (yylex, yyerror): Update.
11700 * m2-exp.y (parse_number, yylex, yyerror): Update.
11701 * go-exp.y (lex_one_token, yyerror): Update.
11702 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11703 * d-exp.y (lex_one_token, yyerror): Update.
11704 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11705 (lex_one_token, yyerror): Update.
11706 * ada-lex.l (YY_INPUT): Update.
11707 (rewind_to_char): Update.
11708 * ada-exp.y (yyerror): Update.
11709
11710 2019-04-04 Tom Tromey <tom@tromey.com>
11711
11712 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11713 * parser-defs.h (struct parser_state) <parser_state>: Add new
11714 parameter.
11715 <comma_terminates>: New member.
11716 (comma_terminates): Don't declare global.
11717 * parse.c (comma_terminates): Remove global.
11718 (parse_exp_in_context): Update.
11719 * p-exp.y (yylex): Update.
11720 * m2-exp.y (yylex): Update.
11721 * go-exp.y (lex_one_token): Update.
11722 * f-exp.y (yylex): Update.
11723 * d-exp.y (lex_one_token): Update.
11724 * c-exp.y (lex_one_token): Update.
11725 * ada-lex.l: Update.
11726
11727 2019-04-04 Tom Tromey <tom@tromey.com>
11728
11729 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11730 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11731 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11732 * parser-defs.h (paren_depth): Don't declare.
11733 * parse.c (paren_depth): Remove global.
11734 (parse_exp_in_context): Update.
11735 * p-exp.y (paren_depth): New global.
11736 (pascal_parse): Initialize it.
11737 * m2-exp.y (paren_depth): New global.
11738 (m2_parse): Initialize it.
11739 * go-exp.y (paren_depth): New global.
11740 (go_parse): Initialize it.
11741 * f-exp.y (paren_depth): New global.
11742 (f_parse): Initialize it.
11743 * d-exp.y (paren_depth): New global.
11744 (d_parse): Initialize it.
11745 * c-exp.y (paren_depth): New global.
11746 (c_parse): Initialize it.
11747 * ada-lex.l (paren_depth): New global.
11748 (lexer_init): Initialize it.
11749
11750 2019-04-04 Tom Tromey <tom@tromey.com>
11751
11752 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11753 (rust_parser::convert_ast_to_type)
11754 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11755 * parser-defs.h (struct parser_state) <parser_state>: Add
11756 parameters. Initialize new members.
11757 <expression_context_block, expression_context_pc>: New members.
11758 * parse.c (expression_context_block, expression_context_pc):
11759 Remove globals.
11760 (parse_exp_in_context): Update.
11761 * p-exp.y: Update all rules.
11762 (yylex): Update.
11763 * m2-exp.y: Update all rules.
11764 (yylex): Update.
11765 * go-exp.y (yylex): Update.
11766 * f-exp.y (yylex): Update.
11767 * d-exp.y: Update all rules.
11768 (yylex): Update.
11769 * c-exp.y: Update all rules.
11770 (lex_one_token, classify_name, yylex, c_parse): Update.
11771 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11772
11773 2019-04-04 Tom Tromey <tom@tromey.com>
11774
11775 * gdbarch.h, gdbarch.c: Rebuild.
11776 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11777 * stap-probe.h:
11778 (struct stap_parse_info): Replace "parser_state" with
11779 "expr_builder".
11780 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11781 (parser_state): New class.
11782 * parse.c (expr_builder): Rename.
11783 (expr_builder::release): Rename.
11784 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11785 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11786 (write_exp_elt_longcst, write_exp_elt_floatcst)
11787 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11788 (write_exp_string_vector, write_exp_bitstring)
11789 (write_exp_msymbol, mark_struct_expression)
11790 (write_dollar_variable)
11791 (insert_type_address_space, increase_expout_size): Replace
11792 "parser_state" with "expr_builder".
11793 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11794 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11795 "parser_state" with "expr_builder".
11796
11797 2019-04-04 Tom Tromey <tom@tromey.com>
11798
11799 * rust-exp.y: Replace "parse_language" with method call.
11800 * p-exp.y:
11801 (yylex): Replace "parse_language" with method call.
11802 * m2-exp.y:
11803 (yylex): Replace "parse_language" with method call.
11804 * go-exp.y (classify_name): Replace "parse_language" with method
11805 call.
11806 * f-exp.y (yylex): Replace "parse_language" with method call.
11807 * d-exp.y (lex_one_token): Replace "parse_language" with method
11808 call.
11809 * c-exp.y:
11810 (lex_one_token, classify_name, yylex): Replace "parse_language"
11811 with method call.
11812 * ada-exp.y (find_primitive_type, type_char)
11813 (type_system_address): Replace "parse_language" with method call.
11814
11815 2019-04-04 Tom Tromey <tom@tromey.com>
11816
11817 * rust-exp.y: Replace "parse_gdbarch" with method call.
11818 * parse.c (write_dollar_variable, insert_type_address_space):
11819 Replace "parse_gdbarch" with method call.
11820 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11821 call.
11822 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11823 call.
11824 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11825 "parse_gdbarch" with method call.
11826 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11827 with method call.
11828 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11829 "parse_gdbarch" with method call.
11830 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11831 "parse_gdbarch" with method call.
11832 * c-exp.y (parse_type, parse_number, classify_name): Replace
11833 "parse_gdbarch" with method call.
11834 * ada-lex.l: Replace "parse_gdbarch" with method call.
11835 * ada-exp.y (parse_type, find_primitive_type, type_char)
11836 (type_system_address): Replace "parse_gdbarch" with method call.
11837
11838 2019-04-04 Tom Tromey <tom@tromey.com>
11839
11840 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11841 * stap-probe.c (stap_parse_argument): Update.
11842 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11843 initial_size parameter.
11844 * rust-exp.y (rust_lex_tests): Update.
11845 * parse.c (parser_state): Update.
11846 (parse_exp_in_context): Update.
11847 * parser-defs.h (struct parser_state) <parser_state>: Remove
11848 "initial_size" parameter.
11849
11850 2019-04-04 Tom Tromey <tom@tromey.com>
11851
11852 * parser-defs.h (increase_expout_size): Don't declare.
11853 * parse.c (increase_expout_size): Now static.
11854
11855 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11856
11857 * gnu-nat.c (gnu_nat_target::wait): Fix
11858 target_waitstatus_to_string call.
11859
11860 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11861
11862 * eval.c (evaluate_subexp_standard): Handle internal functions
11863 during Fortran function call handling.
11864
11865 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11866
11867 * NEWS: Mention new internal functions.
11868 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11869 (read_base_type): Use dwarf2_init_complex_target_type.
11870 * value.c (creal_internal_fn): New function.
11871 (cimag_internal_fn): New function.
11872 (_initialize_values): Register new internal functions.
11873
11874 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11875
11876 * infrun.c (stop_all_threads): If debug_infrun, always
11877 trace the wait status after wait_one, using
11878 target_waitstatus_to_string and target_pid_to_str.
11879 (handle_inferior_event): Replace various trace of
11880 wait status kind by a single trace.
11881 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11882 wait status kind image by target_waitstatus_to_string.
11883 * target/waitstatus.c (target_waitstatus_to_string): Fix
11884 obsolete comment.
11885
11886 2019-04-01 Tom Tromey <tromey@adacore.com>
11887
11888 PR symtab/23331:
11889 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11890
11891 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11892 Pedro Alves <palves@redhat.com>
11893
11894 * top.c (quit_force): Call 'finalize_values'.
11895 * value.c (finalize_values): New function.
11896 * value.h (finalize_values): Declare.
11897
11898 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11899
11900 * NEWS: Announce $_gdb_major and $_gdb_minor.
11901
11902 * top.c (init_gdb_version_vars): New function.
11903 (gdb_init): Call init_gdb_version_vars.
11904
11905 2019-03-29 Tom Tromey <tromey@adacore.com>
11906
11907 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11908 help text. Remove dead code.
11909
11910 2019-03-29 Keith Seitz <keiths@redhat.com>
11911
11912 From Siddhesh Poyarekar:
11913 * f-lang.h (f77_get_upperbound): Return LONGEST.
11914 (f77_get_lowerbound): Likewise.
11915 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11916 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11917 print them.
11918 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11919 plongest to format print it.
11920 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11921 (f77_get_upperbound): Likewise.
11922 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11923 LOWER_BOUND to LONGEST.
11924 (f77_create_arrayprint_offset_tbl): Likewise.
11925
11926 2019-03-29 Keith Seitz <keiths@redhat.com>
11927
11928 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11929 %s/pulongest for TYPE_LENGTH instead of %d in format
11930 strings.
11931 * ada-typerint.c (ada_print_type): Likewise.
11932 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11933 * compile/compile-c-support.c (generate_register_struct): Likewise.
11934 * gdbtypes.c (recursive_dump_type): Likewise.
11935 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11936 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11937 instead of %d in format strings.
11938 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11939 to std::min to ULONGEST.
11940 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11941 instead of %d in format strings.
11942 * tracepoint.c (info_scope_command): Likewise.
11943 * typeprint.c (print_offset_data::update)
11944 (print_offset_data::finish): Likewise.
11945 * xtensa-tdep.c (xtensa_store_return_value)
11946 (xtensa_push_dummy_call): Likewise.
11947
11948 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11949
11950 * windows-nat.c (display_selector): Fixed format specifications
11951 for 64-bit Cygwin.
11952
11953 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11954
11955 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11956
11957 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11958
11959 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11960 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11961 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11962 (nios2_linux_init_abi): Install it.
11963
11964 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11965
11966 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11967
11968 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11969
11970 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11971
11972 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11973 Tom Tromey <tromey@adacore.com>
11974
11975 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11976
11977 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11978
11979 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11980 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11981 method to compute the bounds of range types. Also print "[evaluated]"
11982 if the bounds' values come from a dynamic evaluation.
11983
11984 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11985
11986 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11987 whitespace when pretty printing is on.
11988
11989 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11990
11991 * ppc-linux-nat.c: Add include.
11992
11993 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11994
11995 * NEWS: Mention AArch64 Pointer Authentication.
11996
11997 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11998
11999 * arm-linux-nat.c: Add include.
12000
12001 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12002
12003 * source-cache.c (source_cache::get_source_lines): Re-read
12004 fullname after calling open_source_file.
12005
12006 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12007
12008 * NEWS: Mention TLS support for FreeBSD.
12009
12010 2019-03-25 Tom Tromey <tromey@adacore.com>
12011
12012 * minsyms.c (BUNCH_SIZE): Update comment.
12013 (~minimal_symbol_reader): Remove old comment.
12014 (compact_minimal_symbols): Update comment.
12015 (minimal_symbol_reader::install): Remove old comment. Update
12016 other comments.
12017
12018 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12019
12020 * s390-linux-nat.c: Add include.
12021
12022 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12023
12024 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12025 Call linux_get_hwcap.
12026 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12027 Likewise.
12028 (aarch64_linux_get_hwcap): Remove function.
12029 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12030 declaration.
12031 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12032 linux_get_hwcap.
12033 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12034 * linux-tdep.c (linux_get_hwcap): Add function.
12035 (linux_get_hwcap2): Likewise.
12036 * linux-tdep.h (linux_get_hwcap): Add declaration.
12037 (linux_get_hwcap2): Likewise.
12038 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12039 (ppc_linux_get_hwcap2): Likewise.
12040 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12041 linux_get_hwcap.
12042 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12043 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12044 (ppc_linux_nat_target::read_description): Likewise.
12045 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12046 * s390-linux-nat.c: Likewise.
12047 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12048
12049 2019-03-24 Tom Tromey <tom@tromey.com>
12050
12051 * ada-lang.c (standard_lookup): Simplify initialization.
12052 (ada_lookup_symbol_nonlocal): Simplify return.
12053 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12054 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12055 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12056 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12057 initialization.
12058 * solib.c (solib_global_lookup): Simplify.
12059 * symtab.c (null_block_symbol): Remove.
12060 (symbol_cache_lookup): Simplify returns.
12061 (lookup_language_this): Simplify returns.
12062 (lookup_symbol_aux): Simplify return.
12063 (lookup_local_symbol): Simplify returns.
12064 (lookup_global_symbol_from_objfile): Simplify return.
12065 (lookup_symbol_in_objfile_symtabs)
12066 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12067 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12068 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12069 * cp-namespace.c (cp_lookup_bare_symbol)
12070 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12071 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12072 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12073 (cp_lookup_symbol_via_imports): Simplify initialization.
12074 (find_symbol_in_baseclass): Likewise.
12075 * symtab.h (null_block_symbol): Remove.
12076 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12077 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12078 (d_lookup_symbol_module): Likewise.
12079 (find_symbol_in_baseclass): Simplify initialization.
12080
12081 2019-03-24 Tom Tromey <tom@tromey.com>
12082
12083 * expression.h: Don't include symtab.h.
12084 (struct block): Forward declare.
12085
12086 2019-03-24 Tom Tromey <tom@tromey.com>
12087
12088 * c-exp.y (typebase): Remove casts.
12089 * gdbtypes.c (lookup_unsigned_typename, )
12090 (lookup_signed_typename): Remove cast.
12091 * eval.c (parse_to_comma_and_eval): Remove cast.
12092 * parse.c (write_dollar_variable): Remove cast.
12093 * block.h (struct block) <superblock>: Now const.
12094 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12095 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12096 (map_block): Make "block" const.
12097 * symfile.h (struct quick_symbol_functions)
12098 <map_matching_symbols>: Constify block argument to "callback".
12099 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12100 const.
12101 (find_pc_sect_compunit_symtab): Make "b" const.
12102 (find_symbol_at_address): Likewise.
12103 (search_symbols): Likewise.
12104 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12105 (dw2_debug_names_lookup_symbol): Likewise.
12106 (dw2_map_matching_symbols): Update.
12107 * p-valprint.c (pascal_val_print): Remove "block".
12108 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12109 (aux_add_nonlocal_symbols): Make "block" const.
12110 (resolve_subexp): Remove cast.
12111 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12112 const.
12113 (iterate_over_file_blocks): Likewise.
12114 * f-exp.y (%union) <bval>: Remove.
12115 * coffread.c (patch_opaque_types): Make "b" const.
12116 * spu-tdep.c (spu_catch_start): Make "block" const.
12117 * c-valprint.c (print_unpacked_pointer): Remove "block".
12118 * symmisc.c (dump_symtab_1): Make "b" const.
12119 (block_depth): Make "block" const.
12120 * d-exp.y (%union) <bval>: Remove.
12121 * cp-support.h (cp_lookup_rtti_type): Update.
12122 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12123 * psymtab.c (psym_lookup_symbol): Make "block" const.
12124 (maintenance_check_psymtabs): Make "b" const.
12125 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12126 (enumerate_locals, enumerate_args): Update.
12127 * python/py-symtab.c (stpy_global_block): Make "block" const.
12128 (stpy_static_block): Likewise.
12129 * inline-frame.c (block_starting_point_at): Make "new_block"
12130 const.
12131 * block.c (find_block_in_blockvector): Make return type const.
12132 (blockvector_for_pc_sect): Make "b" const.
12133 (find_block_in_blockvector): Make "b" const.
12134
12135 2019-03-23 Tom Tromey <tom@tromey.com>
12136
12137 * varobj.c (varobj_create): Update.
12138 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12139 * printcmd.c (display_command, do_one_display): Don't reset
12140 innermost_block.
12141 * parser-defs.h (enum innermost_block_tracker_type): Move to
12142 expression.h.
12143 (innermost_block): Update comment.
12144 * parse.c (parse_exp_1): Add tracker_types parameter.
12145 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12146 tracker_types parameter. Reset innermost_block.
12147 (parse_exp_in_context): Remove.
12148 (parse_expression_for_completion): Update.
12149 * objfiles.c (~objfile): Don't reset expression_context_block or
12150 innermost_block.
12151 * expression.h (enum innermost_block_tracker_type): Move from
12152 parser-defs.h.
12153 (parse_exp_1): Add tracker_types parameter.
12154 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12155 reset innermost_block.
12156
12157 2019-03-23 Tom Tromey <tom@tromey.com>
12158
12159 * objfiles.h: Include bcache.h.
12160
12161 2019-03-23 Tom Tromey <tom@tromey.com>
12162
12163 * linespec.c (get_current_search_block): Use
12164 scoped_restore_current_language.
12165 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12166
12167 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12168 Jiong Wang <jiong.wang@arm.com>
12169
12170 * aarch64-linux-tdep.c
12171 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12172 section.
12173 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12174
12175 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12176 Jiong Wang <jiong.wang@arm.com>
12177
12178 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12179 instructions.
12180 (aarch64_analyze_prologue_test): Add PACIASP test.
12181 (aarch64_prologue_prev_register): Unmask PC value.
12182
12183 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12184 Jiong Wang <jiong.wang@arm.com>
12185
12186 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12187 (aarch64_dwarf2_prev_register): Unmask PC value.
12188 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12189 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12190 DW_CFA_AARCH64_negate_ra_state.
12191 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12192
12193 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12194 Jiong Wang <jiong.wang@arm.com>
12195
12196 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12197 registers.
12198 (aarch64_pseudo_register_name): Likewise.
12199 (aarch64_pseudo_register_type): Likewise.
12200 (aarch64_pseudo_register_reggroup_p): Likewise.
12201 (aarch64_gdbarch_init): Add pauth registers.
12202 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12203 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12204 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12205 (struct gdbarch_tdep): Add regnum for ra_state.
12206
12207 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12208 Jiong Wang <jiong.wang@arm.com>
12209
12210 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12211
12212 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12213 Jiong Wang <jiong.wang@arm.com>
12214
12215 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12216 function.
12217 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12218 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12219 (aarch64_gdbarch_init): Add puth registers.
12220 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12221 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12222 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12223
12224 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12225 Jiong Wang <jiong.wang@arm.com>
12226
12227 * aarch64-linux-nat.c
12228 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12229 * aarch64-linux-tdep.c
12230 (aarch64_linux_core_read_description): Likewise.
12231 (aarch64_linux_get_hwcap): New function.
12232 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12233 (aarch64_linux_get_hwcap): New declaration.
12234
12235 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12236 Jiong Wang <jiong.wang@arm.com>
12237
12238 * aarch64-linux-nat.c
12239 (aarch64_linux_nat_target::read_description): Add pauth param.
12240 * aarch64-linux-tdep.c
12241 (aarch64_linux_core_read_description): Likewise.
12242 * aarch64-tdep.c (struct target_desc): Add in pauth.
12243 (aarch64_read_description): Add pauth param.
12244 (aarch64_gdbarch_init): Likewise.
12245 * aarch64-tdep.h (aarch64_read_description): Likewise.
12246 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12247 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12248 * features/Makefile: Add new files.
12249 * features/aarch64-pauth.c: New file.
12250 * features/aarch64-pauth.xml: New file.
12251
12252 2019-03-20 Tom Tromey <tromey@adacore.com>
12253
12254 * infrun.c (handle_inferior_event): Rename from
12255 handle_inferior_event_1. Create a scoped_value_mark.
12256 (handle_inferior_event): Remove.
12257
12258 2019-03-19 Tom Tromey <tromey@adacore.com>
12259
12260 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12261 * infrun.h (print_stop_event): Add "displays" parameter.
12262 * infrun.c (print_stop_event): Add "displays" parameter.
12263
12264 2019-03-19 Pedro Alves <palves@redhat.com>
12265
12266 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12267 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12268 to -1. Fix TABs vs spaces.
12269 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12270 * tui/tui-out.h (tui_ui_out) Add intro comments.
12271 <m_line, m_start_of_line>: In-class initialize, and add describing
12272 comment.
12273
12274 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12275
12276 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12277 variable names.
12278 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12279
12280 2019-03-18 Pedro Alves <palves@redhat.com>
12281 Eli Zaretskii <eliz@gnu.org>
12282
12283 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12284 m_line and m_start_of_line.
12285
12286 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12287
12288 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12289 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12290 it returns a newline. This fixes a regression in TU mode, whereby
12291 the next line is output on the same screen line as the user input.
12292
12293 2019-03-18 Tom Tromey <tromey@adacore.com>
12294
12295 * minsyms.c (minimal_symbol_reader::install): Remove call to
12296 obstack_blank.
12297
12298 2019-03-18 Pedro Alves <palves@redhat.com>
12299
12300 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12301 New globals.
12302 (apply_style): New, factored out from ...
12303 (apply_ansi_escape): ... this. Handle reverse video mode.
12304 (tui_set_reverse_mode): New function.
12305 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12306 * tui/tui-winsource.c (tui_show_source_line): Use
12307 tui_set_reverse_mode instead of setting A_STANDOUT.
12308 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12309 New setter methods.
12310
12311 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12312
12313 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12314 Handle tabs.
12315
12316 2019-03-18 Tom Tromey <tromey@adacore.com>
12317
12318 * ada-lang.c (empty_array): Add "high" parameter.
12319 (ada_evaluate_subexp): Update.
12320
12321 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12322
12323 * unittests/string_view-selftests.c: Define
12324 _initialize_string_view_selftests unconditionally.
12325
12326 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12327
12328 PR gdb/24350
12329 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12330
12331 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12332
12333 PR gdb/24351
12334 * windows-nat.c (display_selector): Fix format specifiers.
12335
12336 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12337
12338 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12339 tui_refill_source_window instead of tui_refresh_win, to update the
12340 current execution line. This fixes redisplay of the current line
12341 when stepping through the code with "next" or "step".
12342
12343 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12344
12345 * source-cache.c (source_cache::get_source_lines): Call
12346 find_source_lines to initialize s->nlines. This fixes vertical
12347 scrolling of TUI source window when the DOWN arrow is pressed.
12348
12349 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12350
12351 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12352 linux-thread-db.c (_initialize_thread_db): Likewise.
12353
12354 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12355
12356 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12357 wclrtoeol in tui_show_source_line". This reverts changes made in
12358 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12359
12360 2019-03-15 Tom Tromey <tom@tromey.com>
12361
12362 * symtab.h (struct minimal_symbol): Derive from
12363 general_symbol_info.
12364 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12365 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12366 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12367 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12368 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12369 (MSYMBOL_SEARCH_NAME): Update.
12370 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12371 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12372 * minsyms.c (minimal_symbol_reader::record_full): Update.
12373
12374 2019-03-15 Tom Tromey <tom@tromey.com>
12375
12376 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12377
12378 2019-03-15 Tom Tromey <tom@tromey.com>
12379
12380 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12381 unique_xmalloc_ptr.
12382 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12383 Update.
12384 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12385 (build_minimal_symbol_hash_tables)
12386 (minimal_symbol_reader::install): Update.
12387
12388 2019-03-15 Tom Tromey <tom@tromey.com>
12389
12390 * symtab.c (create_demangled_names_hash): Update.
12391 (symbol_set_names): Update.
12392 * objfiles.h (struct objfile_per_bfd_storage)
12393 <demangled_names_hash>: Now an htab_up.
12394 * objfiles.c (objfile_per_bfd_storage): Simplify.
12395
12396 2019-03-15 Tom Tromey <tom@tromey.com>
12397
12398 * objfiles.h (struct objfile_per_bfd_storage): Declare
12399 destructor.
12400 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12401 New.
12402 (get_objfile_bfd_data): Use new. Don't initialize
12403 language_of_main.
12404 (free_objfile_per_bfd_storage): Remove.
12405 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12406
12407 2019-03-15 Tom Tromey <tom@tromey.com>
12408
12409 * symfile.c (reread_symbols): Update.
12410 * objfiles.c (objfile::objfile): Update.
12411 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12412 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12413 comment.
12414 (minimal_symbol_reader::install): Update.
12415 (terminate_minimal_symbol_table): Remove.
12416 * jit.c (jit_object_close_impl): Update.
12417
12418 2019-03-15 Tom Tromey <tom@tromey.com>
12419
12420 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12421 initializations.
12422
12423 2019-03-15 Tom Tromey <tom@tromey.com>
12424
12425 * objfiles.h (struct objfile_per_bfd_storage)
12426 <demangled_hash_languages>: Now a bitset.
12427 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12428 (lookup_minimal_symbol): Update.
12429
12430 2019-03-15 Tom Tromey <tom@tromey.com>
12431
12432 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12433 Don't return the symbol.
12434 * coffread.c (record_minimal_symbol): Use record_full.
12435
12436 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12437
12438 The MS-Windows port of ncurses fails to switch to a color pair if
12439 one or both of the colors are the implicit default colors. This
12440 change records the default colors when TUI is initialized, and
12441 then specifies them explicitly when a color pair uses the default
12442 colors. This allows color styling in TUI mode on MS-Windows.
12443
12444 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12445 ncurses_norm_attr.
12446 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12447 colors in ncurses_norm_attr.
12448 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12449 "none", replace it with the default color recorded in
12450 ncurses_norm_attr.
12451
12452 2019-03-14 Tom Tromey <tromey@adacore.com>
12453
12454 * source-cache.h (class source_cache) <get_source_lines>: Return
12455 std::string.
12456 * source-cache.c (source_cache::extract_lines): Handle case where
12457 first_pos==npos. Return std::string.
12458 (source_cache::get_source_lines): Update.
12459
12460 2019-03-14 Tom Tromey <tromey@adacore.com>
12461
12462 * NEWS: Add item for "style sources" commands.
12463 * source-cache.c (source_cache::get_source_lines): Check
12464 source_styling.
12465 * cli/cli-style.c (source_styling): New global.
12466 (_initialize_cli_style): Add "style sources" commands.
12467 (show_style_sources): New function.
12468 * cli/cli-style.h (source_styling): Declare.
12469
12470 2019-03-14 Pedro Alves <palves@redhat.com>
12471 Tom Tromey <tromey@adacore.com>
12472
12473 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12474 * tui/tui-winsource.c (tui_refill_source_window): New function,
12475 from...
12476 (tui_horizontal_source_scroll): ... here. Move some logic.
12477 * cli/cli-style.c (set_style_enabled): Notify new observable.
12478 * tui/tui-hooks.c (tui_redisplay_source): New function.
12479 (tui_attach_detach_observers): Attach or detach
12480 tui_redisplay_source.
12481 * observable.h (source_styling_changed): New observable.
12482 * observable.c: Define source_styling_changed observable.
12483
12484 2019-03-13 Tom Tromey <tromey@adacore.com>
12485
12486 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12487 (i386_gnu_nat_target::store_registers): Update.
12488 * target-debug.h (target_debug_print_std_string): New macro.
12489 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12490 * windows-tdep.c (display_one_tib): Update.
12491 * tui/tui-stack.c (tui_make_status_line): Update.
12492 * top.c (print_inferior_quit_action): Update.
12493 * thread.c (thr_try_catch_cmd): Update.
12494 (add_thread_with_info): Update.
12495 (thread_target_id_str): Update.
12496 (thr_try_catch_cmd): Update.
12497 (thread_command): Update.
12498 (thread_find_command): Update.
12499 * record-btrace.c (record_btrace_target::info_record)
12500 (record_btrace_resume_thread, record_btrace_target::resume)
12501 (record_btrace_cancel_resume, record_btrace_step_thread)
12502 (record_btrace_target::wait, record_btrace_target::wait)
12503 (record_btrace_target::wait, record_btrace_target::stop): Update.
12504 * progspace.c (print_program_space): Update.
12505 * process-stratum-target.c
12506 (process_stratum_target::thread_address_space): Update.
12507 * linux-fork.c (linux_fork_mourn_inferior)
12508 (detach_checkpoint_command, info_checkpoints_command)
12509 (linux_fork_context): Update.
12510 (linux_fork_detach): Update.
12511 (class scoped_switch_fork_info): Update.
12512 (delete_checkpoint_command): Update.
12513 * infrun.c (follow_fork_inferior): Update.
12514 (follow_fork_inferior): Update.
12515 (proceed_after_vfork_done): Update.
12516 (handle_vfork_child_exec_or_exit): Update.
12517 (follow_exec): Update.
12518 (displaced_step_prepare_throw): Update.
12519 (displaced_step_restore): Update.
12520 (start_step_over): Update.
12521 (resume_1): Update.
12522 (clear_proceed_status_thread): Update.
12523 (proceed): Update.
12524 (print_target_wait_results): Update.
12525 (do_target_wait): Update.
12526 (context_switch): Update.
12527 (stop_all_threads): Update.
12528 (restart_threads): Update.
12529 (finish_step_over): Update.
12530 (handle_signal_stop): Update.
12531 (switch_back_to_stepped_thread): Update.
12532 (keep_going_pass_signal): Update.
12533 (print_exited_reason): Update.
12534 (normal_stop): Update.
12535 * inferior.c (inferior_pid_to_str): Change return type.
12536 (print_selected_inferior): Update.
12537 (add_inferior): Update.
12538 (detach_inferior): Update.
12539 * dummy-frame.c (fprint_dummy_frames): Update.
12540 * dcache.c (dcache_info_1): Update.
12541 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12542 (btrace_fetch, btrace_clear): Update.
12543 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12544 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12545 type.
12546 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12547 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12548 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12549 * gdbarch.c, gdbarch.h: Rebuild.
12550 * gdbarch.sh (core_pid_to_str): Change return type.
12551 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12552 return type.
12553 (windows_nat_target::pid_to_str): Change return type.
12554 (windows_delete_thread): Update.
12555 (windows_nat_target::attach): Update.
12556 (windows_nat_target::files_info): Update.
12557 * target-delegates.c: Rebuild.
12558 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12559 return type.
12560 (sol_thread_target::pid_to_str): Change return type.
12561 * remote.c (class remote_target) <pid_to_str>: Change return
12562 type.
12563 (remote_target::pid_to_str): Change return type.
12564 (extended_remote_target::attach, remote_target::remote_stop_ns)
12565 (remote_target::remote_notif_remove_queued_reply)
12566 (remote_target::push_stop_reply, remote_target::disable_btrace):
12567 Update.
12568 (extended_remote_target::attach): Update.
12569 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12570 type.
12571 (gdbsim_target::pid_to_str): Change return type.
12572 * ravenscar-thread.c (struct ravenscar_thread_target)
12573 <pid_to_str>: Change return type.
12574 (ravenscar_thread_target::pid_to_str): Change return type.
12575 * procfs.c (class procfs_target) <pid_to_str>: Change return
12576 type.
12577 (procfs_target::pid_to_str): Change return type.
12578 (procfs_target::attach): Update.
12579 (procfs_target::detach): Update.
12580 (procfs_target::fetch_registers): Update.
12581 (procfs_target::store_registers): Update.
12582 (procfs_target::wait): Update.
12583 (procfs_target::files_info): Update.
12584 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12585 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12586 return type.
12587 (nto_procfs_target::pid_to_str): Change return type.
12588 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12589 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12590 return type.
12591 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12592 (exit_lwp): Update.
12593 (attach_proc_task_lwp_callback, get_detach_signal)
12594 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12595 (linux_nat_target::resume, wait_lwp, stop_callback)
12596 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12597 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12598 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12599 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12600 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12601 type.
12602 (inf_ptrace_target::attach): Update.
12603 (inf_ptrace_target::files_info): Update.
12604 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12605 type.
12606 (go32_nat_target::pid_to_str): Change return type.
12607 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12608 (gnu_nat_target::wait): Update.
12609 (gnu_nat_target::wait): Update.
12610 (gnu_nat_target::resume): Update.
12611 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12612 (fbsd_nat_target::wait): Update.
12613 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12614 type.
12615 (darwin_nat_target::attach): Update.
12616 * corelow.c (class core_target) <pid_to_str>: Change return type.
12617 (core_target::pid_to_str): Change return type.
12618 * target.c (normal_pid_to_str): Change return type.
12619 (default_pid_to_str): Likewise.
12620 (target_pid_to_str): Change return type.
12621 (target_translate_tls_address): Update.
12622 (target_announce_detach): Update.
12623 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12624 return type.
12625 (bsd_uthread_target::pid_to_str): Change return type.
12626 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12627 type.
12628 (bsd_kvm_target::pid_to_str): Change return type.
12629 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12630 return type.
12631 (aix_thread_target::pid_to_str): Change return type.
12632 * target.h (struct target_ops) <pid_to_str>: Change return type.
12633 (target_pid_to_str, normal_pid_to_str): Likewise.
12634 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12635 type.
12636 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12637 type.
12638 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12639 return type.
12640 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12641 type.
12642 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12643 type.
12644 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12645 return type.
12646
12647 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12648
12649 * NEWS: Mention that the new default MI version is 3. Mention
12650 changes to the output of commands and events that deal with
12651 multi-location breakpoints.
12652 * breakpoint.c: Include "mi/mi-out.h".
12653 (print_one_breakpoint): Change output syntax if using MI version
12654 >= 3.
12655 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12656 New.
12657 (mi_multi_location_breakpoint_output_fixed): New.
12658 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12659 (mi_cmd_fix_multi_location_breakpoint_output): New.
12660 (mi_multi_location_breakpoint_output_fixed): New.
12661 * mi/mi-cmds.c (mi_cmds): Register command
12662 -fix-multi-location-breakpoint-output.
12663 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12664 interpreter "mi".
12665
12666 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12667
12668 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12669 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12670 instantiate mi_ui_out based on interpreter name.
12671 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12672 * mi/mi-main.c (mi_load_progress): Likewise.
12673
12674 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12675
12676 * NEWS: Combine separate "New targets" sections for 8.3.
12677
12678 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12679
12680 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12681 (ppcfbsd_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 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12688 (riscv_fbsd_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 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12695 (i386fbsd_init_abi): Install gdbarch
12696 "fetch_tls_load_module_address" and "get_thread_local_address"
12697 methods.
12698
12699 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12700
12701 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12702 (amd64fbsd_init_abi): Install gdbarch
12703 "fetch_tls_load_module_address" and "get_thread_local_address"
12704 methods.
12705
12706 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12707
12708 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12709 (struct fbsd_pspace_data): New type.
12710 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12711 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12712 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12713 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12714 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12715
12716 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12717
12718 * gdbtypes.c (lookup_struct_elt): New function.
12719 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12720 * gdbtypes.h (struct struct_elt): New type.
12721 (lookup_struct_elt): New prototype.
12722
12723 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12724
12725 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12726 remove disabled code block.
12727
12728 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12729
12730 * gdbarch.sh (get_thread_local_address): New method.
12731 * gdbarch.h, gdbarch.c: Regenerate.
12732 * target.c (target_translate_tls_address): Use
12733 gdbarch_get_thread_local_address if present instead of
12734 target::get_thread_local_address.
12735
12736 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12737
12738 * target.h (target::get_thread_local_address): Update comment.
12739
12740 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12741
12742 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12743 objfile->separate_debug_objfile_backlink if not NULL.
12744
12745 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12746
12747 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12748 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12749 (amd64bsd_store_inferior_registers): Likewise.
12750 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12751 Enable segment base registers.
12752 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12753 PT_GETFSBASE and PT_GETGSBASE.
12754 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12755 PT_SETGSBASE.
12756 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12757 segment base registers.
12758 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12759
12760 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12761
12762 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12763 Update calls to i386_target_description to add 'segments'
12764 parameter.
12765 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12766 add segment base registers.
12767 * arch/i386.c (i386_create_target_description): Add 'segments'
12768 parameter to enable segment base registers.
12769 * arch/i386.h (i386_create_target_description): Likewise.
12770 * features/i386/32bit-segments.xml: New file.
12771 * features/i386/32bit-segments.c: Generate.
12772 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12773 call to i386_target_description to add 'segments' parameter.
12774 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12775 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12776 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12777 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12778 if feature is present.
12779 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12780 Add 'segments' parameter to call to i386_target_description.
12781 (i386_target_description): Add 'segments' parameter to enable
12782 segment base registers.
12783 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12784 to call to i386_target_description.
12785 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12786 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12787 Define I386_NUM_REGS.
12788 (i386_target_description): Add 'segments' parameter to enable
12789 segment base registers.
12790
12791 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12792
12793 PR/24325
12794 * source-cache.c: #undef open and close, to avoid unresolved
12795 externals during linking.
12796
12797 2019-03-12 Tom Tromey <tromey@adacore.com>
12798
12799 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12800 const. Add initializers.
12801 (_initialize_remote): Don't initialize ptid globals.
12802
12803 2019-03-12 Pedro Alves <palves@redhat.com>
12804
12805 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12806
12807 2019-03-12 Pedro Alves <palves@redhat.com>
12808
12809 * cp-name-parser.y (main): Remove unused 'len' variable.
12810
12811 2019-03-12 Tom Tromey <tromey@adacore.com>
12812
12813 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12814 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12815
12816 2019-03-12 Tom Tromey <tromey@adacore.com>
12817
12818 * linux-nat.c (iterate_over_lwps): Update.
12819 (stop_callback): Remove parameter.
12820 (stop_wait_callback, detach_callback, resume_set_callback)
12821 (select_singlestep_lwp_callback, set_ignore_sigint)
12822 (status_callback, resumed_callback, resume_clear_callback)
12823 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12824 data parameter.
12825 (linux_nat_target::detach, linux_nat_target::resume)
12826 (linux_stop_and_wait_all_lwps, select_event_lwp)
12827 (linux_nat_filter_event, linux_nat_wait_1)
12828 (linux_nat_target::kill, linux_nat_target::stop)
12829 (linux_nat_target::stop): Update.
12830 (linux_nat_resume_callback): Change type.
12831 (resume_stopped_resumed_lwps, count_events_callback)
12832 (select_event_lwp_callback): Likewise.
12833 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12834 * arm-linux-nat.c (struct update_registers_data): Remove.
12835 (update_registers_callback): Change type.
12836 (arm_linux_insert_hw_breakpoint1): Update.
12837 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12838 parameter.
12839 (x86_linux_dr_set_addr): Update.
12840 (x86_linux_dr_set_control): Update.
12841 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12842 (iterate_over_lwps): Use gdb::function_view.
12843 * nat/aarch64-linux-hw-point.c (struct
12844 aarch64_dr_update_callback_param): Remove.
12845 (debug_reg_change_callback): Change type.
12846 (aarch64_notify_debug_reg_change): Update.
12847 * s390-linux-nat.c (s390_refresh_per_info): Update.
12848
12849 2019-03-11 Tom Tromey <tromey@adacore.com>
12850
12851 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12852 redundant assignment to "this_cu".
12853
12854 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12855
12856 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12857
12858 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12859
12860 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12861 from...
12862 (rank_one_type): ... this.
12863
12864 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12865
12866 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12867 from...
12868 (rank_one_type): ... this.
12869
12870 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12871
12872 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12873 from...
12874 (rank_one_type): ... this.
12875
12876 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12877
12878 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12879 from...
12880 (rank_one_type): ... this.
12881
12882 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12883
12884 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12885 from...
12886 (rank_one_type): ... this.
12887
12888 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12889
12890 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12891 from...
12892 (rank_one_type): ... this.
12893
12894 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12895
12896 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12897 from...
12898 (rank_one_type): ... this.
12899
12900 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12901
12902 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12903 from...
12904 (rank_one_type): ... this.
12905
12906 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12907
12908 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12909 from...
12910 (rank_one_type): ... this.
12911
12912 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12913
12914 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12915 from...
12916 (rank_one_type): ... this.
12917
12918 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12919
12920 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12921 from...
12922 (rank_one_type): ... this.
12923
12924 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12925
12926 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12927 from...
12928 (rank_one_type): ... this.
12929
12930 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12931
12932 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12933 inferior-events' shows the example events.
12934
12935 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12936
12937 Support styling on native MS-Windows console
12938
12939 PR/24315
12940 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12941 on MS-Windows if $TERM is not defined.
12942
12943 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12944
12945 * posix-hdep.c (gdb_console_fputs):
12946 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12947 functions.
12948 * ui-file.h (gdb_console_fputs): Add prototype.
12949
12950 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12951 back to fputs only if the former returns zero.
12952
12953 2019-03-07 Tom Tromey <tom@tromey.com>
12954
12955 * symmisc.c (print_symbol_bcache_statistics): Update.
12956 (print_objfile_statistics): Update.
12957 * symfile.c (allocate_symtab): Update.
12958 * stabsread.c: Don't include bcache.h.
12959 * psymtab.h (struct psymbol_bcache): Don't declare.
12960 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12961 (psymbol_bcache_init, psymbol_bcache_free)
12962 (psymbol_bcache_get_bcache): Don't declare.
12963 * psymtab.c (struct psymbol_bcache): Remove.
12964 (psymtab_storage::psymtab_storage): Update.
12965 (psymtab_storage::~psymtab_storage): Update.
12966 (psymbol_bcache_init, psymbol_bcache_free)
12967 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12968 (add_psymbol_to_bcache): Update.
12969 (allocate_psymtab): Update.
12970 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12971 macro_cache>: No longer pointers.
12972 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12973 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12974 * macrotab.c (macro_bcache): Update.
12975 * macroexp.c: Don't include bcache.h.
12976 * gdbtypes.c (check_types_worklist): Update.
12977 (types_deeply_equal): Remove TRY/CATCH. Update.
12978 * elfread.c (elf_symtab_read): Update.
12979 * dwarf2read.c: Don't include bcache.h.
12980 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12981 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12982 (print_bcache_statistics, bcache_memory_used): Don't declare.
12983 (struct bcache): Move from bcache.c. Add constructor, destructor,
12984 methods. Rename all data members.
12985 * bcache.c (struct bcache): Move to bcache.h.
12986 (bcache::expand_hash_table): Rename from expand_hash_table.
12987 (bcache): Remove.
12988 (bcache::insert): Rename from bcache_full.
12989 (bcache::compare): Rename from bcache_compare.
12990 (bcache_xmalloc): Remove.
12991 (bcache::~bcache): Rename from bcache_xfree.
12992 (bcache::print_statistics): Rename from print_bcache_statistics.
12993 (bcache::memory_used): Rename from bcache_memory_used.
12994
12995 2019-03-07 Pedro Alves <palves@redhat.com>
12996
12997 * infrun.c (normal_stop): Also check for
12998 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12999
13000 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13001
13002 * f-lang.c (value_from_host_double): Moved to...
13003 * value.c (value_from_host_double): ...here.
13004 * value.h (value_from_host_double): Declare.
13005 * guile/scm-math.c (vlscm_convert_typed_number): Use
13006 value_from_host_double.
13007 (vlscm_convert_number): Likewise.
13008 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13009 * python/py-value.c (convert_value_from_python): Likewise.
13010
13011 2019-03-06 Tom Tromey <tom@tromey.com>
13012
13013 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13014
13015 2019-03-06 Tom Tromey <tom@tromey.com>
13016
13017 * utils.h (free_current_contents): Don't declare.
13018 * utils.c (free_current_contents): Remove.
13019
13020 2019-03-06 Tom Tromey <tom@tromey.com>
13021
13022 * top.c (quit_force): Update.
13023 * main.c (captured_command_loop): Update.
13024 * common/new-op.c (operator new): Update.
13025 * common/common-exceptions.c (struct catcher)
13026 <save_cleanup_chain>: Remove member.
13027 (exceptions_state_mc_init): Update.
13028 (exception_try_scope_entry): Return nullptr.
13029 (exception_try_scope_exit, exception_rethrow)
13030 (throw_exception_sjlj, throw_exception_cxx): Update.
13031 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13032 (all_cleanups, do_cleanups, discard_cleanups)
13033 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13034 (restore_cleanups, restore_final_cleanups): Don't declare.
13035 (do_final_cleanups): Remove parameter.
13036 * common/cleanups.c (cleanup_chain, make_cleanup)
13037 (make_cleanup_dtor, all_cleanups, do_cleanups)
13038 (discard_my_cleanups, discard_cleanups)
13039 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13040 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13041 (null_cleanup): Remove.
13042 (do_final_cleanups): Remove parameter.
13043
13044 2019-03-06 Tom Tromey <tom@tromey.com>
13045
13046 * remote.c (remote_target::remote_parse_stop_reply): Use
13047 unique_xmalloc_ptr.
13048
13049 2019-03-06 Tom Tromey <tom@tromey.com>
13050
13051 * stabsread.c (struct stabs_field_info): Rename from field_info.
13052 <list, fnlist>: Add initializers.
13053 <obstack>: New member.
13054 (read_member_functions, read_struct_fields, read_baseclasses):
13055 Allocate on obstack. Don't use cleanups.
13056 (read_one_struct_field, read_member_functions, read_struct_fields)
13057 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13058 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13059 (read_struct_type): Update.
13060
13061 2019-03-06 Tom Tromey <tom@tromey.com>
13062
13063 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13064 * common/filestuff.h (make_cleanup_close): Don't declare.
13065 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13066 Remove.
13067
13068 2019-03-06 Tom Tromey <tom@tromey.com>
13069
13070 * solib-aix.c: Use make_scope_exit.
13071
13072 2019-03-06 Tom Tromey <tom@tromey.com>
13073
13074 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13075 Use make_scope_exit.
13076
13077 2019-03-06 Tom Tromey <tom@tromey.com>
13078
13079 * solib-svr4.c (disable_probes_interface): Remove parameter.
13080 (svr4_handle_solib_event): Use make_scope_exit.
13081
13082 2019-03-06 Tom Tromey <tom@tromey.com>
13083
13084 * remote.c (struct stop_reply_deleter): Remove.
13085 (stop_reply_up): Update.
13086 (struct stop_reply): Derive from notif_event. Don't typedef.
13087 <regcache>: Now a std::vector.
13088 (stop_reply_xfree): Remove.
13089 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13090 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13091 (remote_target::discard_pending_stop_replies): Use delete.
13092 (remote_target::remote_parse_stop_reply): Update.
13093 (remote_target::process_stop_reply): Update.
13094 * remote-notif.h (struct notif_event): Add virtual destructor.
13095 Remove "dtr" member.
13096 (struct notif_client) <alloc_event>: Return a unique_ptr.
13097 (notif_event_xfree): Don't declare.
13098 (notif_event_up): New typedef.
13099 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13100 (notif_event_xfree, do_notif_event_xfree): Remove.
13101 (remote_notif_state_xfree): Update.
13102
13103 2019-03-06 Tom Tromey <tom@tromey.com>
13104
13105 * infrun.c (displaced_step_clear_cleanup): Now a
13106 forward_scope_exit type.
13107 (displaced_step_prepare_throw): Update.
13108 (displaced_step_fixup): Update.
13109
13110 2019-03-06 Tom Tromey <tom@tromey.com>
13111
13112 * inferior.h (class inferior): Update comment.
13113 * gdbthread.h (class thread_info): Update comment.
13114
13115 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13116 Tom Tromey <tom@tromey.com>
13117
13118 * stabsread.h (struct stab_section_list): Remove.
13119 (coffstab_build_psymtabs): Update.
13120 * dbxread.c (symbuf_sections): Now a std::vector.
13121 (sect_idx): New global.
13122 (fill_symbuf): Update.
13123 (coffstab_build_psymtabs): Change type of stabsects parameter.
13124 Update.
13125 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13126 std::vector.
13127 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13128 (coff_locate_sections): Update.
13129 (coff_symfile_read): Remove cleanups. Update.
13130 (init_stringtab): Add storage parameter.
13131 (free_stringtab, free_stringtab_cleanup): Remove.
13132 (init_lineno): Add storage parameter.
13133 (free_linetab, free_linetab_cleanup): Remove.
13134
13135 2019-03-06 Pedro Alves <palves@redhat.com>
13136
13137 * linux-fork.c (fork_info::clobber_regs): Delete.
13138 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13139 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13140 comment. Adjust.
13141 (scoped_switch_fork_info::scoped_switch_fork_info)
13142 (checkpoint_command, linux_fork_context): Adjust
13143 fork_save_infrun_state calls.
13144
13145 2019-03-06 Pedro Alves <palves@redhat.com>
13146
13147 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13148 (inf_has_multiple_threads): Return 'bool' and rewrite using
13149 inferior_info::threads().
13150
13151 2019-03-06 Pedro Alves <palves@redhat.com>
13152
13153 * linux-fork.c: Include <list>.
13154 (fork_list): Now a std::list instance.
13155 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13156 (forks_exist_p, find_last_fork): Adjust.
13157 (new_fork): Delete.
13158 (one_fork_p): New.
13159 (add_fork): Adjust.
13160 (free_fork): Delete, folded into fork_info::~fork_info().
13161 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13162 Adjust.
13163 (init_fork_list): Delete.
13164 (linux_fork_killall, linux_fork_mourn_inferior)
13165 (linux_fork_detach, info_checkpoints_command): Adjust.
13166 (_initialize_linux_fork): No longer call init_fork_list.
13167
13168 2019-03-06 Pedro Alves <palves@redhat.com>
13169
13170 * linux-fork.c (new_fork): New, split out of ...
13171 (add_fork): ... this. Return void. Move "first fork" special
13172 case from here, to ...
13173 (checkpoint_command): ... here.
13174 * linux-linux.h (add_fork): Return void.
13175
13176 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13177
13178 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13179
13180 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13181 Chris January <chris.january@arm.com>
13182 David Lecomber <david.lecomber@arm.com>
13183
13184 * f-exp.y: New token, UNOP_INTRINSIC.
13185 (exp): New pattern using UNOP_INTRINSIC token.
13186 (f77_keywords): Add 'abs' keyword.
13187 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13188 (value_from_host_double): New function.
13189 (evaluate_subexp_f): Support UNOP_ABS.
13190
13191 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13192
13193 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13194 types.
13195
13196 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13197
13198 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13199 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13200 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13201
13202 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13203
13204 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13205
13206 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13207 Chris January <chris.january@arm.com>
13208
13209 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13210 * f-exp.y: Define 'KIND' token.
13211 (exp): New pattern for KIND expressions.
13212 (ptype): Handle types with a kind extension.
13213 (direct_abs_decl): Extend to spot kind extensions.
13214 (f77_keywords): Add 'kind' to the list.
13215 (push_kind_type): New function.
13216 (convert_to_kind_type): New function.
13217 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13218 * parse.c (operator_length_standard): Likewise.
13219 * parser-defs.h (enum type_pieces): Add tp_kind.
13220 * std-operator.def: Add UNOP_KIND.
13221
13222 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13223
13224 * f-exp.y (f_parse): Set yydebug.
13225
13226 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * f-lang.c (evaluate_subexp_f): New function.
13229 (exp_descriptor_f): New global.
13230 (f_language_defn): Use exp_descriptor_f instead of
13231 exp_descriptor_standard.
13232
13233 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * f-exp.y (struct token): Add comments.
13236 (dot_ops): Remove uppercase versions and the end marker.
13237 (f77_keywords): Likewise.
13238 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13239 entries in the dot_ops array are case insensitive, and use
13240 strncasecmp to compare strings. Also some whitespace cleanup in
13241 this area. Similar for the f77_keywords array, except entries in
13242 this list might be case sensitive.
13243
13244 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13245
13246 * f-exp.y (struct f77_boolean_val): Add comments.
13247 (boolean_values): Remove uppercase versions, and end marker.
13248 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13249 and use strncasecmp to achieve case insensitivity. Additionally,
13250 perform whitespace cleanup around this code.
13251
13252 2019-03-06 Tom Tromey <tromey@adacore.com>
13253
13254 * remote-sim.c (gdbsim_target_open): Use result of
13255 gdb_argv::release.
13256
13257 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13258 Dirk Schubert <dirk.schubert@arm.com>
13259 Chris January <chris.january@arm.com>
13260
13261 * eval.c (evaluate_subexp_standard): Call Fortran argument
13262 wrapping logic.
13263 * f-lang.c (struct value): A value which can be passed into a
13264 Fortran function call.
13265 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13266 where appropriate.
13267 (struct type): Value ready for a Fortran function call.
13268 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13269 is needed.
13270 * f-lang.h (fortran_argument_convert): Declaration.
13271 (fortran_preserve_arg_pointer): Declaration.
13272 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13273
13274 2019-03-05 Tom Tromey <tromey@adacore.com>
13275
13276 * python/py-prettyprint.c (print_string_repr): Remove #if.
13277 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13278
13279 2019-03-05 Tom Tromey <tromey@adacore.com>
13280
13281 * target.c (the_dummy_target): Move later. Change type to
13282 "dummy_target".
13283 (initialize_targets): Don't initialize the_dummy_target.
13284
13285 2019-03-05 Tom Tromey <tromey@adacore.com>
13286
13287 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13288 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13289
13290 2019-03-05 Tom Tromey <tromey@adacore.com>
13291
13292 * windows-nat.c (windows_nat_target::attach)
13293 (windows_nat_target::detach): Don't call gdb_flush.
13294 * valprint.c (generic_val_print, val_print, val_print_string):
13295 Don't call gdb_flush.
13296 * utils.c (defaulted_query): Don't call gdb_flush.
13297 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13298 * target.c (target_announce_detach): Don't call gdb_flush.
13299 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13300 * remote.c (extended_remote_target::attach): Don't call
13301 gdb_flush.
13302 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13303 * printcmd.c (do_examine): Don't call gdb_flush.
13304 (info_display_command): Don't call gdb_flush.
13305 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13306 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13307 * memattr.c (info_mem_command): Don't call gdb_flush.
13308 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13309 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13310 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13311 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13312 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13313 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13314 (gnu_nat_target::detach): Don't call gdb_flush.
13315 * f-valprint.c (f_val_print): Don't call gdb_flush.
13316 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13317 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13318 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13319 gdb_flush.
13320 * c-valprint.c (c_val_print): Don't call gdb_flush.
13321 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13322
13323 2019-03-05 Tom Tromey <tromey@adacore.com>
13324
13325 * varobj.c (update_dynamic_varobj_children): Update.
13326 (install_default_visualizer): Use reset, not release.
13327 * value.c (set_internalvar): Update.
13328 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13329 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13330 ATTRIBUTE_UNUSED_RESULT.
13331
13332 2019-03-05 Tom Tromey <tromey@adacore.com>
13333
13334 * remote.c (class scoped_remote_fd) <release>: Add
13335 ATTRIBUTE_UNUSED_RESULT.
13336
13337 2019-03-05 Tom Tromey <tromey@adacore.com>
13338
13339 * macroexp.c (struct macro_buffer) <release>: Add
13340 ATTRIBUTE_UNUSED_RESULT.
13341
13342 2019-03-05 Tom Tromey <tromey@adacore.com>
13343
13344 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13345 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13346 ATTRIBUTE_UNUSED_RESULT.
13347
13348 2019-03-05 Tom Tromey <tromey@adacore.com>
13349
13350 * common/scoped_fd.h (class scoped_fd) <release>: Add
13351 ATTRIBUTE_UNUSED_RESULT.
13352
13353 2019-03-05 Tom Tromey <tromey@adacore.com>
13354
13355 * parser-defs.h (struct parser_state) <release>: Add
13356 ATTRIBUTE_UNUSED_RESULT.
13357
13358 2019-03-05 Tom Tromey <tromey@adacore.com>
13359
13360 * utils.h (class gdb_argv) <release>: Add
13361 ATTRIBUTE_UNUSED_RESULT.
13362 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13363
13364 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13365
13366 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13367 for-loop range, to avoid compiler warnings.
13368
13369 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13370 avoid compiler warnings about unused variables.
13371
13372 * NEWS: Mention end of support for native debugging on MS-Windows
13373 before XP.
13374
13375 PR gdb/24292
13376 * common/netstuff.c:
13377 * gdbserver/gdbreplay.c
13378 * gdbserver/remote-utils.c:
13379 * ser-tcp.c:
13380 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13381 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13382 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13383 'getaddrinfo' and 'freeaddrinfo' were not available before
13384 Windows XP, and mingw.org's MinGW headers by default define
13385 _WIN32_WINNT to 0x500.
13386
13387 2019-03-01 Gary Benson <gbenson@redhat.com>
13388
13389 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13390
13391 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13392 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13393
13394 PR gdb/8527
13395 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13396 set_sigint_trap, clear_sigint_trap.
13397
13398 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13399
13400 * target.c (target_detach): Clear the regcache and the
13401 frame cache.
13402
13403 2019-02-27 Pedro Alves <palves@redhat.com>
13404
13405 * utils.c (set_screen_size): When we cap the height/width sizes,
13406 tweak the corresponding command variable to show "unlimited":
13407
13408 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13409 Pedro Alves <palves@redhat.com>
13410
13411 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13412 before calling rl_set_screen_size.
13413
13414 2019-02-27 Tom Tromey <tromey@adacore.com>
13415
13416 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13417 define.
13418 * python/py-value.c: Remove Python 2.4 workaround.
13419 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13420 workaround.
13421 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13422 Python 2.4 workaround.
13423 * python/python-internal.h: Remove Python 2.4 comment.
13424 (Py_ssize_t): Don't define.
13425 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13426 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13427 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13428 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13429 * python/python.c (do_start_initialization): Remove Python 2.4
13430 workaround.
13431 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13432 (print_children): Remove Python 2.4 workaround.
13433 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13434 workaround.
13435 (CHARBUFFERPROC_NAME): Remove.
13436 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13437 Python 2.4 workaround.
13438
13439 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13440
13441 * NEWS: Note minimum Python version.
13442
13443 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13444
13445 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13446 code from these functions. Remove corresponding ifdefs. Use
13447 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13448 Remove gotos and target of gotos.
13449 (infpy_search_memory): Likewise.
13450
13451 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13452
13453 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13454 (hppa_gdbarch_init): Don't register deleted functions with
13455 gdbarch.
13456
13457 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13458
13459 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13460 (h8300_unwind_sp): Delete.
13461 (h8300_dummy_id): Delete.
13462 (h8300_gdbarch_init): Don't register deleted functions with
13463 gdbarch.
13464
13465 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13466
13467 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13468 (ft32_unwind_pc): Delete.
13469 (ft32_unwind_sp): Delete.
13470 (ft32_gdbarch_init): Don't register deleted functions with
13471 gdbarch.
13472
13473 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13474
13475 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13476 (frv_unwind_pc): Delete.
13477 (frv_unwind_sp): Delete.
13478 (frv_gdbarch_init): Don't register deleted functions with
13479 gdbarch.
13480
13481 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13482
13483 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13484 (riscv_unwind_pc): Delete.
13485 (riscv_unwind_sp): Delete.
13486 (riscv_gdbarch_init): Don't register deleted functions with
13487 gdbarch.
13488
13489 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13492 (csky_unwind_pc): Delete.
13493 (csky_unwind_sp): Delete.
13494 (csky_gdbarch_init): Don't register deleted functions with
13495 gdbarch.
13496
13497 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13498
13499 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13500 (cris_unwind_pc): Delete.
13501 (cris_unwind_sp): Delete.
13502 (cris_gdbarch_init): Don't register deleted functions with
13503 gdbarch.
13504
13505 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13506
13507 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13508 (bfin_unwind_pc): Delete.
13509 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13510
13511 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13514 (arm_unwind_pc): Delete.
13515 (arm_unwind_sp): Delete.
13516 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13517
13518 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13521 (arc_unwind_pc): Delete.
13522 (arc_unwind_sp): Delete.
13523 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13524
13525 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13526
13527 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13528 (alpha_unwind_pc): Delete.
13529 (alpha_gdbarch_init): Don't register deleted functions with
13530 gdbarch.
13531
13532 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13533
13534 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13535 (aarch64_unwind_pc): Delete.
13536 (aarch64_unwind_sp): Delete.
13537 (aarch64_gdbarch_init): Don't register deleted functions with
13538 gdbarch.
13539
13540 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * gdbtypes.c (type_align): Don't consider static members when
13543 computing structure alignment.
13544
13545 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13546
13547 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13548 return 0 for other types.
13549 * arch-utils.c (default_type_align): Always return 0.
13550 * gdbarch.h: Regenerate.
13551 * gdbarch.sh (type_align): Extend comment.
13552 * gdbtypes.c (type_align): Add additional comments, always call
13553 gdbarch_type_align before applying the default rules.
13554 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13555 generic code will then apply a suitable default.
13556 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13557 types, return 0 for other types.
13558
13559 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13560
13561 * NEWS: Create a new section for the next release branch.
13562 Rename the section of the current branch, now that it has
13563 been cut.
13564
13565 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13566
13567 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13568 * version.in: Bump version to 8.3.50.DATE-git.
13569
13570 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13571
13572 * aix-thread.c (ptid_cmp): Remove unused variable.
13573 (get_signaled_thread): Likewise.
13574 (store_regs_user_thread): Likewise.
13575 (store_regs_kernel_thread): Likewise.
13576 (fetch_regs_kernel_thread): Remove shadowed variable.
13577
13578 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13579
13580 * features/riscv/32bit-cpu.xml: Add register numbers.
13581 * features/riscv/32bit-fpu.c: Regenerate.
13582 * features/riscv/32bit-fpu.xml: Add register numbers.
13583 * features/riscv/64bit-cpu.xml: Add register numbers.
13584 * features/riscv/64bit-fpu.c: Regenerate.
13585 * features/riscv/64bit-fpu.xml: Add register numbers.
13586
13587 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13588
13589 * NEWS: Mention two argument form of gdb.Value constructor.
13590 * python/py-value.c (convert_buffer_and_type_to_value): New
13591 function.
13592 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13593 Add support for handling an optional second argument. Call
13594 convert_buffer_and_type_to_value as appropriate.
13595 * python/python-internal.h (Py_buffer_deleter): New struct.
13596 (Py_buffer_up): New typedef.
13597
13598 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13599
13600 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13601 instead of releasing ownership.
13602
13603 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13604
13605 * dwarf2read.c (open_and_init_dwp_file): Call
13606 elf_numsections instead of bfd_count_sections to initialize
13607 dwp_file->num_sections.
13608
13609 2019-02-25 Tom Tromey <tromey@adacore.com>
13610
13611 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13612
13613 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13614
13615 * gcore.in: Add '--readnever' option when invoking GDB.
13616
13617 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13618
13619 * MAINTAINERS: Update my email address.
13620
13621 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13622
13623 * build-id.c (build_id_to_debug_bfd_1): New function.
13624 (build_id_to_debug_bfd): Look for separate debug file in
13625 sysroot.
13626
13627 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13628
13629 * gdbarch.sh: Update the copyright year range that is placed into
13630 generated files.
13631
13632 2019-02-22 Keith Seitz <keiths@redhat.com>
13633
13634 PR symtab/23853
13635 * linespec.c (create_sals_line_offset): Search for the default
13636 symtab's filename instead of its fullname.
13637
13638 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13639
13640 * NEWS: Update style defaults.
13641
13642 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13643
13644 * main.c (captured_main_1): Disable styling in batch mode.
13645
13646 2019-02-20 Tom Tromey <tom@tromey.com>
13647
13648 * symtab.c (symtab_symbol_info): Fix typos.
13649
13650 2019-02-20 Tom Tromey <tromey@adacore.com>
13651
13652 * findcmd.c (_initialize_mem_search): Use upper case for
13653 metasyntactic variables.
13654
13655 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13656
13657 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13658 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13659
13660 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13661
13662 * top.h (source_file_name): Change to std::string.
13663 * top.c (source_file_name): Likewise.
13664 (command_line_input): Adjust.
13665 * cli/cli-script.c (script_from_file): Adjust.
13666
13667 2019-02-19 Tom Tromey <tromey@adacore.com>
13668
13669 * ravenscar-thread.c
13670 (ravenscar_thread_target::update_thread_list): Don't call
13671 ada_build_task_list.
13672 * ada-lang.h (ada_build_task_list): Don't declare.
13673 * ada-tasks.c (struct ada_tasks_inferior_data)
13674 <task_list_valid_p>: Now bool.
13675 (read_known_tasks, ada_task_list_changed)
13676 (ada_tasks_invalidate_inferior_data): Update.
13677 (read_known_tasks_array): Return bool.
13678 (read_known_tasks_list): Likewise.
13679 (read_known_tasks): Return void.
13680 (ada_build_task_list): Now static.
13681
13682 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13683
13684 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13685 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13686
13687 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13688
13689 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13690 variant for ada_tasks_pspace_data_handle and
13691 ada_tasks_inferior_data_handle.
13692 (ada_tasks_pspace_data_cleanup): New function.
13693 (ada_tasks_inferior_data_cleanup): New function.
13694
13695 2019-02-17 Tom Tromey <tom@tromey.com>
13696
13697 * macrotab.h (macro_source_fullname): Return a std::string.
13698 * macrotab.c (macro_include, check_for_redefinition)
13699 (macro_undef, macro_lookup_definition, foreach_macro)
13700 (foreach_macro_in_scope): Update.
13701 (macro_source_fullname): Return a std::string.
13702 * macrocmd.c (show_pp_source_pos): Update.
13703
13704 2019-02-17 Tom Tromey <tom@tromey.com>
13705
13706 * macrocmd.c (show_pp_source_pos): Style the file names.
13707
13708 2019-02-17 Tom Tromey <tom@tromey.com>
13709
13710 PR tui/24197:
13711 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13712
13713 2019-02-17 Tom Tromey <tom@tromey.com>
13714
13715 * ada-lang.c (user_select_syms): Use filtered printing.
13716 * utils.c (wrap_style): New global.
13717 (desired_style): Remove.
13718 (emit_style_escape): Add stream parameter.
13719 (set_output_style, reset_terminal_style, prompt_for_continue):
13720 Update.
13721 (flush_wrap_buffer): Only flush gdb_stdout.
13722 (wrap_here): Set wrap_style.
13723 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13724 treat escape sequences as a character. Change when wrap buffer is
13725 flushed.
13726 (fputs_styled): Do not set the output style when the default is
13727 requested.
13728 * ui-style.h (struct ui_file_style) <is_default>: New method.
13729 * source.c (print_source_lines_base): Emit escape sequences in one
13730 piece.
13731
13732 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13733
13734 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13735 integers and enumeration types.
13736
13737 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13738
13739 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13740 instead of lookup_symbol_in_language
13741 (do_exact_match): New function.
13742 (ada_get_symbol_name_matcher): Return do_exact_match when
13743 doing a verbatim match.
13744
13745 2019-02-15 Tom Tromey <tromey@adacore.com>
13746
13747 * ravenscar-thread.c (ravenscar_thread_target::resume)
13748 (ravenscar_thread_target::wait): Special case wildcard requests.
13749
13750 2019-02-15 Tom Tromey <tromey@adacore.com>
13751
13752 * ravenscar-thread.c (base_ptid): Remove.
13753 (struct ravenscar_thread_target) <close>: New method.
13754 <m_base_ptid>: New member.
13755 <update_inferior_ptid, active_task, task_is_currently_active,
13756 runtime_initialized>: Declare methods.
13757 <ravenscar_thread_target>: Add constructor.
13758 (ravenscar_thread_target::task_is_currently_active)
13759 (ravenscar_thread_target::update_inferior_ptid)
13760 (ravenscar_runtime_initialized): Rename. Now methods.
13761 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13762 (ravenscar_thread_target::update_thread_list): Update.
13763 (ravenscar_thread_target::active_task): Now method.
13764 (ravenscar_thread_target::store_registers)
13765 (ravenscar_thread_target::prepare_to_store)
13766 (ravenscar_thread_target::prepare_to_store)
13767 (ravenscar_thread_target::mourn_inferior): Update.
13768 (ravenscar_inferior_created): Use "new" to create target.
13769 (ravenscar_thread_target::get_ada_task_ptid): Update.
13770 (_initialize_ravenscar): Don't initialize base_ptid.
13771 (ravenscar_ops): Remove global.
13772
13773 2019-02-15 Tom Tromey <tromey@adacore.com>
13774
13775 * target.h (push_target): Declare new overload.
13776 * target.c (push_target): New overload, taking an rvalue reference.
13777 * remote.c (remote_target::open_1): Use push_target overload.
13778 * corelow.c (core_target_open): Use push_target overload.
13779
13780 2019-02-15 Tom Tromey <tromey@adacore.com>
13781
13782 * ravenscar-thread.c (is_ravenscar_task)
13783 (ravenscar_task_is_currently_active): Return bool.
13784 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13785 (_initialize_ravenscar): Remove "(void)".
13786 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13787 Return bool.
13788
13789 2019-02-15 Tom Tromey <tromey@adacore.com>
13790
13791 * ravenscar-thread.c (ravenscar_runtime_initializer)
13792 (has_ravenscar_runtime, get_running_thread_id)
13793 (ravenscar_thread_target::resume): Fix indentation.
13794
13795 2019-02-15 Tom Tromey <tromey@adacore.com>
13796
13797 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13798 from ravenscar_arch_ops.
13799 (sparc_ravenscar_ops::fetch_registers)
13800 (sparc_ravenscar_ops::store_registers): Now methods.
13801 (sparc_ravenscar_prepare_to_store): Remove.
13802 (sparc_ravenscar_ops): Redefine.
13803 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13804 methods and destructor. Remove members.
13805 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13806 (ravenscar_thread_target::store_registers)
13807 (ravenscar_thread_target::prepare_to_store): Update.
13808 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13809 Remove.
13810 (struct ppc_ravenscar_powerpc_ops): Derive from
13811 ravenscar_arch_ops.
13812 (ppc_ravenscar_powerpc_ops::fetch_registers)
13813 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13814 (ppc_ravenscar_powerpc_ops): Redefine.
13815 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13816 (ppc_ravenscar_e500_ops::fetch_registers)
13817 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13818 (ppc_ravenscar_e500_ops): Redefine.
13819 * aarch64-ravenscar-thread.c
13820 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13821 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13822 (aarch64_ravenscar_fetch_registers)
13823 (aarch64_ravenscar_store_registers): Now methods.
13824 (aarch64_ravenscar_ops): Redefine.
13825
13826 2019-02-15 Tom Tromey <tromey@adacore.com>
13827
13828 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13829 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13830 (ravenscar_thread_target::stopped_by_watchpoint)
13831 (ravenscar_thread_target::stopped_data_address)
13832 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13833
13834 2019-02-15 Tom Tromey <tromey@adacore.com>
13835
13836 * ravenscar-thread.c: Fix some typos.
13837
13838 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13839 Tom Tromey <tromey@adacore.com>
13840
13841 * ada-lang.c (ada_exception_sal): Change addr_string to a
13842 std::string.
13843 (create_ada_exception_catchpoint): Update.
13844
13845 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13846 Tom Tromey <tromey@adacore.com>
13847
13848 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13849 (bp_location_ops): Remove.
13850 (base_breakpoint_allocate_location): Update.
13851 (free_bp_location): Update.
13852 * ada-lang.c (class ada_catchpoint_location)
13853 <ada_catchpoint_location>: Remove ops parameter.
13854 (ada_catchpoint_location_dtor): Remove.
13855 (ada_catchpoint_location_ops): Remove.
13856 (allocate_location_exception): Update.
13857 * breakpoint.h (struct bp_location_ops): Remove.
13858 (class bp_location) <bp_location>: Remove bp_location_ops
13859 parameter.
13860 <~bp_location>: Add destructor.
13861 <ops>: Remove.
13862
13863 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13864 Pedro Alves <palves@redhat.com>
13865
13866 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13867 'PATH_MAX'.
13868
13869 2019-02-14 David Michael <fedora.dm0@gmail.com>
13870 Samuel Thibault <samuel.thibault@gnu.org>
13871 Thomas Schwinge <thomas@codesourcery.com>
13872
13873 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13874 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13875
13876 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13877
13878 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13879 (check_empty): Use "const char *".
13880
13881 * gnu-nat.c (gnu_nat_target::detach): Instead of
13882 'detach_inferior (pid)' call
13883 'detach_inferior (find_inferior_pid (pid))'.
13884
13885 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13886 'nat/fork-inferior.o'.
13887 * gnu-nat.c: #include "nat/fork-inferior.h".
13888
13889 * gnu-nat.c (gnu_nat_target::detach): Instead of
13890 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13891 * gnu-nat.h: #include "inf-child.h".
13892 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13893 'i386_gnu_nat_target::fetch_registers'.
13894 (gnu_store_registers): Rename/move to
13895 'i386_gnu_nat_target::store_registers'.
13896
13897 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13898 * gnu-nat.h (mach_thread_info): New function.
13899 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13900
13901 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13902
13903 2019-02-14 Frederic Konrad <konrad@adacore.com>
13904
13905 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13906
13907 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13908
13909 * windows-nat.c (windows_add_thread): Add new parameter
13910 "main_thread_p" with default value set to false. Update
13911 function documentation as well as all callers.
13912 (windows_delete_thread): Likewise.
13913 (fake_create_process): Update call to windows_add_thread.
13914 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13915 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13916 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13917 call to windows_delete_thread.
13918
13919 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13920
13921 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13922
13923 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13924
13925 * symfile.c (find_separate_debug_file): Use canonical path of
13926 sysroot with child_path instead of gdb_sysroot if it is valid.
13927
13928 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13929
13930 * symfile.c (find_separate_debug_file): Use child_path to
13931 determine if an object file is under a sysroot.
13932
13933 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13934
13935 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13936 unittests/child-path-selftests.c.
13937 * common/pathstuff.c (child_path): New function.
13938 * common/pathstuff.h (child_path): New prototype.
13939 * unittests/child-path-selftests.c: New file.
13940
13941 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13942
13943 * symfile.c (find_separate_debug_file): Look for separate debug
13944 files in debug directories under the sysroot.
13945
13946 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13947
13948 * symtab.h (struct minimal_symbol data_p): New const method.
13949 (struct minimal_symbol text_p): Likewise.
13950 * symtab.c (output_source_filename): Use file name style
13951 to print file name.
13952 (print_symbol_info): Likewise.
13953 (print_msymbol_info): Use address style to print addresses.
13954 Use function name style to print executable text symbols.
13955 (expand_symtab_containing_pc): Use data_p.
13956 (find_pc_sect_compunit_symtab): Likewise.
13957
13958 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13959
13960 * breakpoint.c (describe_other_breakpoints): Use address style
13961 to print addresses.
13962 (say_where): Likewise.
13963
13964 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13965
13966 * ada-typeprint.c (print_func_type): Print function name
13967 style to print function name.
13968 * c-typeprint.c (c_print_type_1): Likewise.
13969
13970 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13971
13972 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13973 for execve.
13974
13975 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13976
13977 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13978 type_stack.
13979
13980 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13981
13982 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13983 TYPE_CODE_REF types.
13984
13985 2019-02-08 Jim Wilson <jimw@sifive.com>
13986
13987 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13988 (riscv_linux_fregset): New.
13989 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13990
13991 2019-02-07 Tom Tromey <tom@tromey.com>
13992
13993 * thread.c (thread_cancel_execution_command): Update.
13994 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13995 methods.
13996 (struct thread_fsm_ops): Remove.
13997 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13998 (thread_fsm_should_stop, thread_fsm_return_value)
13999 (thread_fsm_set_finished, thread_fsm_finished_p)
14000 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14001 Don't declare.
14002 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14003 * infrun.c (clear_proceed_status_thread)
14004 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14005 (print_stop_event): Update.
14006 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14007 Add constructor.
14008 (step_command_fsm_ops): Remove.
14009 (new_step_command_fsm): Remove.
14010 (step_1): Update.
14011 (step_command_fsm::should_stop): Rename from
14012 step_command_fsm_should_stop.
14013 (step_command_fsm::clean_up): Rename from
14014 step_command_fsm_clean_up.
14015 (step_command_fsm::do_async_reply_reason): Rename from
14016 step_command_fsm_async_reply_reason.
14017 (struct until_next_fsm): Inherit from thread_fsm. Add
14018 constructor.
14019 (until_next_fsm_ops): Remove.
14020 (new_until_next_fsm): Remove.
14021 (until_next_fsm::should_stop): Rename from
14022 until_next_fsm_should_stop.
14023 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14024 (until_next_fsm::do_async_reply_reason): Rename from
14025 until_next_fsm_async_reply_reason.
14026 (struct finish_command_fsm): Inherit from thread_fsm. Add
14027 constructor. Change type of breakpoint.
14028 (finish_command_fsm_ops): Remove.
14029 (new_finish_command_fsm): Remove.
14030 (finish_command_fsm::should_stop): Rename from
14031 finish_command_fsm_should_stop.
14032 (finish_command_fsm::clean_up): Rename from
14033 finish_command_fsm_clean_up.
14034 (finish_command_fsm::return_value): Rename from
14035 finish_command_fsm_return_value.
14036 (finish_command_fsm::do_async_reply_reason): Rename from
14037 finish_command_fsm_async_reply_reason.
14038 (finish_command): Update.
14039 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14040 Add constructor.
14041 (call_thread_fsm_ops): Remove.
14042 (call_thread_fsm::call_thread_fsm): Rename from
14043 new_call_thread_fsm.
14044 (call_thread_fsm::should_stop): Rename from
14045 call_thread_fsm_should_stop.
14046 (call_thread_fsm::should_notify_stop): Rename from
14047 call_thread_fsm_should_notify_stop.
14048 (run_inferior_call, call_function_by_hand_dummy): Update.
14049 * cli/cli-interp.c (should_print_stop_to_console): Update.
14050 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14051 Add constructor. Change type of location_breakpoint,
14052 caller_breakpoint.
14053 (until_break_fsm_ops): Remove.
14054 (new_until_break_fsm): Remove.
14055 (until_break_fsm::should_stop): Rename from
14056 until_break_fsm_should_stop.
14057 (until_break_fsm::clean_up): Rename from
14058 until_break_fsm_clean_up.
14059 (until_break_fsm::do_async_reply_reason): Rename from
14060 until_break_fsm_async_reply_reason.
14061 (until_break_command): Update.
14062 * thread-fsm.c: Remove.
14063 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14064
14065 2019-02-07 Tom Tromey <tom@tromey.com>
14066
14067 * yy-remap.h: Add include guard.
14068 * xtensa-tdep.h: Add include guard.
14069 * xcoffread.h: Rename include guard.
14070 * varobj-iter.h: Add include guard.
14071 * tui/tui.h: Rename include guard.
14072 * tui/tui-winsource.h: Rename include guard.
14073 * tui/tui-wingeneral.h: Rename include guard.
14074 * tui/tui-windata.h: Rename include guard.
14075 * tui/tui-win.h: Rename include guard.
14076 * tui/tui-stack.h: Rename include guard.
14077 * tui/tui-source.h: Rename include guard.
14078 * tui/tui-regs.h: Rename include guard.
14079 * tui/tui-out.h: Rename include guard.
14080 * tui/tui-layout.h: Rename include guard.
14081 * tui/tui-io.h: Rename include guard.
14082 * tui/tui-hooks.h: Rename include guard.
14083 * tui/tui-file.h: Rename include guard.
14084 * tui/tui-disasm.h: Rename include guard.
14085 * tui/tui-data.h: Rename include guard.
14086 * tui/tui-command.h: Rename include guard.
14087 * tic6x-tdep.h: Add include guard.
14088 * target/waitstatus.h: Rename include guard.
14089 * target/wait.h: Rename include guard.
14090 * target/target.h: Rename include guard.
14091 * target/resume.h: Rename include guard.
14092 * target-float.h: Rename include guard.
14093 * stabsread.h: Add include guard.
14094 * rs6000-tdep.h: Add include guard.
14095 * riscv-fbsd-tdep.h: Add include guard.
14096 * regformats/regdef.h: Rename include guard.
14097 * record.h: Rename include guard.
14098 * python/python.h: Rename include guard.
14099 * python/python-internal.h: Rename include guard.
14100 * python/py-stopevent.h: Rename include guard.
14101 * python/py-ref.h: Rename include guard.
14102 * python/py-record.h: Rename include guard.
14103 * python/py-record-full.h: Rename include guard.
14104 * python/py-record-btrace.h: Rename include guard.
14105 * python/py-instruction.h: Rename include guard.
14106 * python/py-events.h: Rename include guard.
14107 * python/py-event.h: Rename include guard.
14108 * procfs.h: Add include guard.
14109 * proc-utils.h: Add include guard.
14110 * p-lang.h: Add include guard.
14111 * or1k-tdep.h: Rename include guard.
14112 * observable.h: Rename include guard.
14113 * nto-tdep.h: Rename include guard.
14114 * nat/x86-linux.h: Rename include guard.
14115 * nat/x86-linux-dregs.h: Rename include guard.
14116 * nat/x86-gcc-cpuid.h: Add include guard.
14117 * nat/x86-dregs.h: Rename include guard.
14118 * nat/x86-cpuid.h: Rename include guard.
14119 * nat/ppc-linux.h: Rename include guard.
14120 * nat/mips-linux-watch.h: Rename include guard.
14121 * nat/linux-waitpid.h: Rename include guard.
14122 * nat/linux-ptrace.h: Rename include guard.
14123 * nat/linux-procfs.h: Rename include guard.
14124 * nat/linux-osdata.h: Rename include guard.
14125 * nat/linux-nat.h: Rename include guard.
14126 * nat/linux-namespaces.h: Rename include guard.
14127 * nat/linux-btrace.h: Rename include guard.
14128 * nat/glibc_thread_db.h: Rename include guard.
14129 * nat/gdb_thread_db.h: Rename include guard.
14130 * nat/gdb_ptrace.h: Rename include guard.
14131 * nat/fork-inferior.h: Rename include guard.
14132 * nat/amd64-linux-siginfo.h: Rename include guard.
14133 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14134 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14135 * nat/aarch64-linux.h: Rename include guard.
14136 * nat/aarch64-linux-hw-point.h: Rename include guard.
14137 * mn10300-tdep.h: Add include guard.
14138 * mips-linux-tdep.h: Add include guard.
14139 * mi/mi-parse.h: Rename include guard.
14140 * mi/mi-out.h: Rename include guard.
14141 * mi/mi-main.h: Rename include guard.
14142 * mi/mi-interp.h: Rename include guard.
14143 * mi/mi-getopt.h: Rename include guard.
14144 * mi/mi-console.h: Rename include guard.
14145 * mi/mi-common.h: Rename include guard.
14146 * mi/mi-cmds.h: Rename include guard.
14147 * mi/mi-cmd-break.h: Rename include guard.
14148 * m2-lang.h: Add include guard.
14149 * location.h: Rename include guard.
14150 * linux-record.h: Rename include guard.
14151 * linux-nat.h: Add include guard.
14152 * linux-fork.h: Add include guard.
14153 * i386-darwin-tdep.h: Rename include guard.
14154 * hppa-linux-offsets.h: Add include guard.
14155 * guile/guile.h: Rename include guard.
14156 * guile/guile-internal.h: Rename include guard.
14157 * gnu-nat.h: Rename include guard.
14158 * gdb-stabs.h: Rename include guard.
14159 * frv-tdep.h: Add include guard.
14160 * f-lang.h: Add include guard.
14161 * event-loop.h: Add include guard.
14162 * darwin-nat.h: Rename include guard.
14163 * cp-abi.h: Rename include guard.
14164 * config/sparc/nm-sol2.h: Rename include guard.
14165 * config/nm-nto.h: Rename include guard.
14166 * config/nm-linux.h: Add include guard.
14167 * config/i386/nm-i386gnu.h: Rename include guard.
14168 * config/djgpp/nl_types.h: Rename include guard.
14169 * config/djgpp/langinfo.h: Rename include guard.
14170 * compile/gcc-cp-plugin.h: Add include guard.
14171 * compile/gcc-c-plugin.h: Add include guard.
14172 * compile/compile.h: Rename include guard.
14173 * compile/compile-object-run.h: Rename include guard.
14174 * compile/compile-object-load.h: Rename include guard.
14175 * compile/compile-internal.h: Rename include guard.
14176 * compile/compile-cplus.h: Rename include guard.
14177 * compile/compile-c.h: Rename include guard.
14178 * common/xml-utils.h: Rename include guard.
14179 * common/x86-xstate.h: Rename include guard.
14180 * common/version.h: Rename include guard.
14181 * common/vec.h: Rename include guard.
14182 * common/tdesc.h: Rename include guard.
14183 * common/selftest.h: Rename include guard.
14184 * common/scoped_restore.h: Rename include guard.
14185 * common/scoped_mmap.h: Rename include guard.
14186 * common/scoped_fd.h: Rename include guard.
14187 * common/safe-iterator.h: Rename include guard.
14188 * common/run-time-clock.h: Rename include guard.
14189 * common/refcounted-object.h: Rename include guard.
14190 * common/queue.h: Rename include guard.
14191 * common/ptid.h: Rename include guard.
14192 * common/print-utils.h: Rename include guard.
14193 * common/preprocessor.h: Rename include guard.
14194 * common/pathstuff.h: Rename include guard.
14195 * common/observable.h: Rename include guard.
14196 * common/netstuff.h: Rename include guard.
14197 * common/job-control.h: Rename include guard.
14198 * common/host-defs.h: Rename include guard.
14199 * common/gdb_wait.h: Rename include guard.
14200 * common/gdb_vecs.h: Rename include guard.
14201 * common/gdb_unlinker.h: Rename include guard.
14202 * common/gdb_unique_ptr.h: Rename include guard.
14203 * common/gdb_tilde_expand.h: Rename include guard.
14204 * common/gdb_sys_time.h: Rename include guard.
14205 * common/gdb_string_view.h: Rename include guard.
14206 * common/gdb_splay_tree.h: Rename include guard.
14207 * common/gdb_setjmp.h: Rename include guard.
14208 * common/gdb_ref_ptr.h: Rename include guard.
14209 * common/gdb_optional.h: Rename include guard.
14210 * common/gdb_locale.h: Rename include guard.
14211 * common/gdb_assert.h: Rename include guard.
14212 * common/filtered-iterator.h: Rename include guard.
14213 * common/filestuff.h: Rename include guard.
14214 * common/fileio.h: Rename include guard.
14215 * common/environ.h: Rename include guard.
14216 * common/common-utils.h: Rename include guard.
14217 * common/common-types.h: Rename include guard.
14218 * common/common-regcache.h: Rename include guard.
14219 * common/common-inferior.h: Rename include guard.
14220 * common/common-gdbthread.h: Rename include guard.
14221 * common/common-exceptions.h: Rename include guard.
14222 * common/common-defs.h: Rename include guard.
14223 * common/common-debug.h: Rename include guard.
14224 * common/cleanups.h: Rename include guard.
14225 * common/buffer.h: Rename include guard.
14226 * common/btrace-common.h: Rename include guard.
14227 * common/break-common.h: Rename include guard.
14228 * cli/cli-utils.h: Rename include guard.
14229 * cli/cli-style.h: Rename include guard.
14230 * cli/cli-setshow.h: Rename include guard.
14231 * cli/cli-script.h: Rename include guard.
14232 * cli/cli-interp.h: Rename include guard.
14233 * cli/cli-decode.h: Rename include guard.
14234 * cli/cli-cmds.h: Rename include guard.
14235 * charset-list.h: Add include guard.
14236 * buildsym-legacy.h: Rename include guard.
14237 * bfin-tdep.h: Add include guard.
14238 * ax.h: Rename include guard.
14239 * arm-linux-tdep.h: Add include guard.
14240 * arm-fbsd-tdep.h: Add include guard.
14241 * arch/xtensa.h: Rename include guard.
14242 * arch/tic6x.h: Add include guard.
14243 * arch/i386.h: Add include guard.
14244 * arch/arm.h: Rename include guard.
14245 * arch/arm-linux.h: Rename include guard.
14246 * arch/arm-get-next-pcs.h: Rename include guard.
14247 * arch/amd64.h: Add include guard.
14248 * arch/aarch64-insn.h: Rename include guard.
14249 * arch-utils.h: Rename include guard.
14250 * annotate.h: Add include guard.
14251 * amd64-darwin-tdep.h: Rename include guard.
14252 * aarch64-linux-tdep.h: Add include guard.
14253 * aarch64-fbsd-tdep.h: Add include guard.
14254 * aarch32-linux-nat.h: Add include guard.
14255
14256 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14257
14258 * macrotab.c (macro_define_internal): New function that
14259 factorizes macro_define_object_internal and macro_define_function
14260 code.
14261 (macro_define_object_internal): Use macro_define_internal.
14262 (macro_define_function): Likewise.
14263
14264 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14265
14266 * macrocmd.c (extract_identifier): Return
14267 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14268 callers.
14269
14270 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14271
14272 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14273
14274 2019-02-05 Tom Tromey <tom@tromey.com>
14275
14276 * target.c (target_stack::unpush): Move assertion earlier.
14277
14278 2019-01-30 Tom Tromey <tom@tromey.com>
14279
14280 PR python/23615:
14281 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14282 (gdbpy_parse_and_eval): Likewise.
14283 * python/python-internal.h (gdbpy_allow_threads): New class.
14284
14285 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14286
14287 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14288 (aarch64_fbsd_fpregmap): Move earlier.
14289 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14290 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14291 instead of individual calls to trad_frame_set_reg_addr.
14292 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14293 earlier.
14294 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14295 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14296 instead of individual calls to trad_frame_set_reg_addr.
14297
14298 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14299
14300 * CONTRIBUTE: Replace contribution list with wiki link.
14301
14302 2019-01-25 Tom Tromey <tom@tromey.com>
14303
14304 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14305
14306 2019-01-25 Tom Tromey <tom@tromey.com>
14307
14308 * xtensa-linux-nat.c: Fix common/ includes.
14309 * xml-support.h: Fix common/ includes.
14310 * xml-support.c: Fix common/ includes.
14311 * x86-linux-nat.c: Fix common/ includes.
14312 * windows-nat.c: Fix common/ includes.
14313 * varobj.h: Fix common/ includes.
14314 * varobj.c: Fix common/ includes.
14315 * value.c: Fix common/ includes.
14316 * valops.c: Fix common/ includes.
14317 * utils.c: Fix common/ includes.
14318 * unittests/xml-utils-selftests.c: Fix common/ includes.
14319 * unittests/utils-selftests.c: Fix common/ includes.
14320 * unittests/unpack-selftests.c: Fix common/ includes.
14321 * unittests/tracepoint-selftests.c: Fix common/ includes.
14322 * unittests/style-selftests.c: Fix common/ includes.
14323 * unittests/string_view-selftests.c: Fix common/ includes.
14324 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14325 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14326 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14327 * unittests/rsp-low-selftests.c: Fix common/ includes.
14328 * unittests/parse-connection-spec-selftests.c: Fix common/
14329 includes.
14330 * unittests/optional-selftests.c: Fix common/ includes.
14331 * unittests/offset-type-selftests.c: Fix common/ includes.
14332 * unittests/observable-selftests.c: Fix common/ includes.
14333 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14334 * unittests/memrange-selftests.c: Fix common/ includes.
14335 * unittests/memory-map-selftests.c: Fix common/ includes.
14336 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14337 * unittests/function-view-selftests.c: Fix common/ includes.
14338 * unittests/environ-selftests.c: Fix common/ includes.
14339 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14340 * unittests/common-utils-selftests.c: Fix common/ includes.
14341 * unittests/cli-utils-selftests.c: Fix common/ includes.
14342 * unittests/array-view-selftests.c: Fix common/ includes.
14343 * ui-file.c: Fix common/ includes.
14344 * tui/tui-io.c: Fix common/ includes.
14345 * tracepoint.h: Fix common/ includes.
14346 * tracepoint.c: Fix common/ includes.
14347 * tracefile-tfile.c: Fix common/ includes.
14348 * top.h: Fix common/ includes.
14349 * top.c: Fix common/ includes.
14350 * thread.c: Fix common/ includes.
14351 * target/waitstatus.h: Fix common/ includes.
14352 * target/waitstatus.c: Fix common/ includes.
14353 * target.h: Fix common/ includes.
14354 * target.c: Fix common/ includes.
14355 * target-memory.c: Fix common/ includes.
14356 * target-descriptions.c: Fix common/ includes.
14357 * symtab.h: Fix common/ includes.
14358 * symfile.c: Fix common/ includes.
14359 * stap-probe.c: Fix common/ includes.
14360 * spu-linux-nat.c: Fix common/ includes.
14361 * sparc-nat.c: Fix common/ includes.
14362 * source.c: Fix common/ includes.
14363 * solib.c: Fix common/ includes.
14364 * solib-target.c: Fix common/ includes.
14365 * ser-unix.c: Fix common/ includes.
14366 * ser-tcp.c: Fix common/ includes.
14367 * ser-pipe.c: Fix common/ includes.
14368 * ser-base.c: Fix common/ includes.
14369 * selftest-arch.c: Fix common/ includes.
14370 * s12z-tdep.c: Fix common/ includes.
14371 * rust-exp.y: Fix common/ includes.
14372 * rs6000-aix-tdep.c: Fix common/ includes.
14373 * riscv-tdep.c: Fix common/ includes.
14374 * remote.c: Fix common/ includes.
14375 * remote-notif.h: Fix common/ includes.
14376 * remote-fileio.h: Fix common/ includes.
14377 * remote-fileio.c: Fix common/ includes.
14378 * regcache.h: Fix common/ includes.
14379 * regcache.c: Fix common/ includes.
14380 * record-btrace.c: Fix common/ includes.
14381 * python/python.c: Fix common/ includes.
14382 * python/py-type.c: Fix common/ includes.
14383 * python/py-inferior.c: Fix common/ includes.
14384 * progspace.h: Fix common/ includes.
14385 * producer.c: Fix common/ includes.
14386 * procfs.c: Fix common/ includes.
14387 * proc-api.c: Fix common/ includes.
14388 * printcmd.c: Fix common/ includes.
14389 * ppc-linux-nat.c: Fix common/ includes.
14390 * parser-defs.h: Fix common/ includes.
14391 * osdata.c: Fix common/ includes.
14392 * obsd-nat.c: Fix common/ includes.
14393 * nat/x86-linux.c: Fix common/ includes.
14394 * nat/x86-linux-dregs.c: Fix common/ includes.
14395 * nat/x86-dregs.h: Fix common/ includes.
14396 * nat/x86-dregs.c: Fix common/ includes.
14397 * nat/ppc-linux.c: Fix common/ includes.
14398 * nat/mips-linux-watch.h: Fix common/ includes.
14399 * nat/mips-linux-watch.c: Fix common/ includes.
14400 * nat/linux-waitpid.c: Fix common/ includes.
14401 * nat/linux-ptrace.h: Fix common/ includes.
14402 * nat/linux-ptrace.c: Fix common/ includes.
14403 * nat/linux-procfs.c: Fix common/ includes.
14404 * nat/linux-personality.c: Fix common/ includes.
14405 * nat/linux-osdata.c: Fix common/ includes.
14406 * nat/linux-namespaces.c: Fix common/ includes.
14407 * nat/linux-btrace.h: Fix common/ includes.
14408 * nat/linux-btrace.c: Fix common/ includes.
14409 * nat/fork-inferior.c: Fix common/ includes.
14410 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14411 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14412 * nat/aarch64-linux.c: Fix common/ includes.
14413 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14414 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14415 * namespace.h: Fix common/ includes.
14416 * mips-linux-tdep.c: Fix common/ includes.
14417 * minsyms.c: Fix common/ includes.
14418 * mi/mi-parse.h: Fix common/ includes.
14419 * mi/mi-main.c: Fix common/ includes.
14420 * mi/mi-cmd-env.c: Fix common/ includes.
14421 * memrange.h: Fix common/ includes.
14422 * memattr.c: Fix common/ includes.
14423 * maint.h: Fix common/ includes.
14424 * maint.c: Fix common/ includes.
14425 * main.c: Fix common/ includes.
14426 * machoread.c: Fix common/ includes.
14427 * location.c: Fix common/ includes.
14428 * linux-thread-db.c: Fix common/ includes.
14429 * linux-nat.c: Fix common/ includes.
14430 * linux-fork.c: Fix common/ includes.
14431 * inline-frame.c: Fix common/ includes.
14432 * infrun.c: Fix common/ includes.
14433 * inflow.c: Fix common/ includes.
14434 * inferior.h: Fix common/ includes.
14435 * inferior.c: Fix common/ includes.
14436 * infcmd.c: Fix common/ includes.
14437 * inf-ptrace.c: Fix common/ includes.
14438 * inf-child.c: Fix common/ includes.
14439 * ia64-linux-nat.c: Fix common/ includes.
14440 * i387-tdep.c: Fix common/ includes.
14441 * i386-tdep.c: Fix common/ includes.
14442 * i386-linux-tdep.c: Fix common/ includes.
14443 * i386-linux-nat.c: Fix common/ includes.
14444 * i386-go32-tdep.c: Fix common/ includes.
14445 * i386-fbsd-tdep.c: Fix common/ includes.
14446 * i386-fbsd-nat.c: Fix common/ includes.
14447 * guile/scm-type.c: Fix common/ includes.
14448 * guile/guile.c: Fix common/ includes.
14449 * go32-nat.c: Fix common/ includes.
14450 * gnu-nat.c: Fix common/ includes.
14451 * gdbthread.h: Fix common/ includes.
14452 * gdbarch-selftests.c: Fix common/ includes.
14453 * gdb_usleep.c: Fix common/ includes.
14454 * gdb_select.h: Fix common/ includes.
14455 * gdb_bfd.c: Fix common/ includes.
14456 * gcore.c: Fix common/ includes.
14457 * fork-child.c: Fix common/ includes.
14458 * findvar.c: Fix common/ includes.
14459 * fbsd-nat.c: Fix common/ includes.
14460 * event-top.c: Fix common/ includes.
14461 * event-loop.c: Fix common/ includes.
14462 * dwarf2read.c: Fix common/ includes.
14463 * dwarf2loc.c: Fix common/ includes.
14464 * dwarf2-frame.c: Fix common/ includes.
14465 * dwarf-index-cache.c: Fix common/ includes.
14466 * dtrace-probe.c: Fix common/ includes.
14467 * disasm-selftests.c: Fix common/ includes.
14468 * defs.h: Fix common/ includes.
14469 * csky-tdep.c: Fix common/ includes.
14470 * cp-valprint.c: Fix common/ includes.
14471 * cp-support.h: Fix common/ includes.
14472 * cp-support.c: Fix common/ includes.
14473 * corelow.c: Fix common/ includes.
14474 * completer.h: Fix common/ includes.
14475 * completer.c: Fix common/ includes.
14476 * compile/compile.c: Fix common/ includes.
14477 * compile/compile-loc2c.c: Fix common/ includes.
14478 * compile/compile-cplus-types.c: Fix common/ includes.
14479 * compile/compile-cplus-symbols.c: Fix common/ includes.
14480 * command.h: Fix common/ includes.
14481 * cli/cli-dump.c: Fix common/ includes.
14482 * cli/cli-cmds.c: Fix common/ includes.
14483 * charset.c: Fix common/ includes.
14484 * build-id.c: Fix common/ includes.
14485 * btrace.h: Fix common/ includes.
14486 * btrace.c: Fix common/ includes.
14487 * breakpoint.h: Fix common/ includes.
14488 * breakpoint.c: Fix common/ includes.
14489 * ax.h:
14490 (enum agent_op): Fix common/ includes.
14491 * ax-general.c (struct aop_map): Fix common/ includes.
14492 * ax-gdb.c: Fix common/ includes.
14493 * auxv.c: Fix common/ includes.
14494 * auto-load.c: Fix common/ includes.
14495 * arm-tdep.c: Fix common/ includes.
14496 * arch/riscv.c: Fix common/ includes.
14497 * arch/ppc-linux-common.c: Fix common/ includes.
14498 * arch/i386.c: Fix common/ includes.
14499 * arch/arm.c: Fix common/ includes.
14500 * arch/arm-linux.c: Fix common/ includes.
14501 * arch/arm-get-next-pcs.c: Fix common/ includes.
14502 * arch/amd64.c: Fix common/ includes.
14503 * arch/aarch64.c: Fix common/ includes.
14504 * arch/aarch64-insn.c: Fix common/ includes.
14505 * arch-utils.c: Fix common/ includes.
14506 * amd64-windows-tdep.c: Fix common/ includes.
14507 * amd64-tdep.c: Fix common/ includes.
14508 * amd64-sol2-tdep.c: Fix common/ includes.
14509 * amd64-obsd-tdep.c: Fix common/ includes.
14510 * amd64-nbsd-tdep.c: Fix common/ includes.
14511 * amd64-linux-tdep.c: Fix common/ includes.
14512 * amd64-linux-nat.c: Fix common/ includes.
14513 * amd64-fbsd-tdep.c: Fix common/ includes.
14514 * amd64-fbsd-nat.c: Fix common/ includes.
14515 * amd64-dicos-tdep.c: Fix common/ includes.
14516 * amd64-darwin-tdep.c: Fix common/ includes.
14517 * agent.c: Fix common/ includes.
14518 * ada-lang.h: Fix common/ includes.
14519 * ada-lang.c: Fix common/ includes.
14520 * aarch64-tdep.c: Fix common/ includes.
14521
14522 2019-01-25 Tom Tromey <tom@tromey.com>
14523
14524 * common/create-version.sh: Use common/version.h.
14525
14526 2019-01-24 Pedro Alves <palves@redhat.com>
14527
14528 * infrun.c (signal_stop, signal_print, signal_program)
14529 (signal_catch, signal_pass): Now arrays instead of pointers.
14530 (update_signals_program_target, do_target_resume)
14531 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14532 * linux-nat.c (linux_nat_target::pass_signals)
14533 (linux_nat_target::create_inferior, linux_nat_target::attach):
14534 Adjust.
14535 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14536 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14537 * procfs.c (procfs_target::pass_signals): Adjust.
14538 * record-full.c (record_full_target::resume): Adjust.
14539 * remote.c (remote_target::pass_signals)
14540 (remote_target::program_signals): Adjust.
14541 * target-debug.h (target_debug_print_signals): Now takes a
14542 gdb::array_view as parameter. Adjust.
14543 * target.h (target_ops) <pass_signals, program_signals>: Replace
14544 pointer and length parameters with gdb::array_view.
14545 (target_pass_signals, target_program_signals): Likewise.
14546 * target-delegates.c: Regenerate.
14547
14548 2019-01-24 Pedro Alves <palves@redhat.com>
14549
14550 * common/forward-scope-exit.h
14551 (forward_scope_exit::forward_scope_exit): Pass arguments to
14552 m_bind_function directly, instead of creating a std::bind and
14553 copying that.
14554
14555 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14556
14557 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14558 for static members.
14559 (pass_in_v_vfp_candidate): Likewise.
14560
14561 2019-01-23 Tom Tromey <tom@tromey.com>
14562 Pedro Alves <palves@redhat.com>
14563
14564 * regcache.c (class regcache_invalidator): Remove.
14565 (regcache::raw_write): Use make_scope_exit.
14566
14567 2019-01-23 Tom Tromey <tom@tromey.com>
14568
14569 * ui-out.h (class ui_out_emit_type): Update comment.
14570
14571 2019-01-23 Tom Tromey <tom@tromey.com>
14572
14573 * infrun.c (fetch_inferior_event): Update comment.
14574
14575 2019-01-23 Tom Tromey <tom@tromey.com>
14576 Pedro Alves <palves@redhat.com>
14577
14578 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14579 parameter.
14580 (fetch_inferior_event): Use SCOPE_EXIT.
14581
14582
14583 2019-01-23 Tom Tromey <tom@tromey.com>
14584 Pedro Alves <palves@redhat.com>
14585
14586 * infrun.c (disable_thread_events): Delete.
14587 (stop_all_threads): Use SCOPE_EXIT.
14588
14589 2019-01-23 Tom Tromey <tom@tromey.com>
14590 Pedro Alves <palves@redhat.com>
14591
14592 * symfile.c: Include forward-scope-exit.h.
14593 (clear_symtab_users_cleanup): Replace forward declaration with
14594 a FORWARD_SCOPE_EXIT.
14595 (syms_from_objfile_1): Use the forward_scope_exit and
14596 gdb::optional instead of cleanup_function.
14597 (reread_symbols): Use the forward_scope_exit instead of
14598 cleanup_function.
14599 (clear_symtab_users_cleanup): Remove function.
14600
14601 2019-01-23 Tom Tromey <tom@tromey.com>
14602 Pedro Alves <palves@redhat.com>
14603
14604 * linux-nat.c: Include scope-exit.h.
14605 (cleanup_target_stop): Remove.
14606 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14607 SCOPE_EXIT.
14608
14609 2019-01-23 Tom Tromey <tom@tromey.com>
14610 Pedro Alves <palves@redhat.com>
14611
14612 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14613 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14614
14615 2019-01-23 Tom Tromey <tom@tromey.com>
14616 Andrew Burgess <andrew.burgess@embecosm.com>
14617 Pedro Alves <palves@redhat.com>
14618
14619 * infrun.c (fetch_inferior_event): Use scope_exit.
14620 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14621 * top.c (execute_command): Use scope_exit.
14622 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14623 * utils.c (do_bpstat_clear_actions_cleanup)
14624 (make_bpstat_clear_actions_cleanup): Remove.
14625
14626 2019-01-23 Tom Tromey <tom@tromey.com>
14627 Pedro Alves <palves@redhat.com>
14628
14629 * infrun.c: Include "common/scope-exit.h"
14630 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14631 (wait_for_inferior): Use SCOPE_EXIT.
14632 (fetch_inferior_event): Use scope_exit.
14633
14634 2019-01-23 Tom Tromey <tom@tromey.com>
14635 Pedro Alves <palves@redhat.com>
14636
14637 * breakpoint.c (create_breakpoint): Remove cleanup.
14638
14639 2019-01-23 Tom Tromey <tom@tromey.com>
14640 Andrew Burgess <andrew.burgess@embecosm.com>
14641 Pedro Alves <palves@redhat.com>
14642
14643 2019-01-23 Pedro Alves <palves@redhat.com>
14644
14645 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14646
14647 2019-01-23 Pedro Alves <palves@redhat.com>
14648 Andrew Burgess <andrew.burgess@embecosm.com>
14649
14650 * gdbthread.h: Include "common/forward-scope-exit.h".
14651 (scoped_finish_thread_state): Redefine custom class in terms of
14652 forward_scope_exit.
14653
14654 2019-01-23 Pedro Alves <palves@redhat.com>
14655 Andrew Burgess <andrew.burgess@embecosm.com>
14656
14657 * common/forward-scope-exit.h: New file.
14658
14659 2019-01-23 Pedro Alves <palves@redhat.com>
14660 Andrew Burgess <andrew.burgess@embecosm.com>
14661 Tom Tromey <tom@tromey.com>
14662
14663 * common/scope-exit.h: New file.
14664
14665 2019-01-23 Pedro Alves <palves@redhat.com>
14666
14667 * common/preprocessor.h (ESC): Rename to ...
14668 (ESC_PARENS): ... this.
14669 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14670 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14671
14672 2019-01-23 Tom Tromey <tom@tromey.com>
14673
14674 * language.h (class scoped_switch_to_sym_language_if_auto):
14675 Initialize m_lang in both cases.
14676
14677 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14678
14679 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14680 with XCNEW.
14681
14682 2019-01-22 Tom Tromey <tom@tromey.com>
14683
14684 * corelow.c: Do not include sys/file.h.
14685
14686 2019-01-22 Tom Tromey <tom@tromey.com>
14687
14688 * tui/tui-wingeneral.h: Include gdb_curses.h.
14689
14690 2019-01-22 Tom Tromey <tom@tromey.com>
14691
14692 * source-cache.h (class source_cache) <get_source_lines,
14693 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14694
14695 2019-01-22 Tom Tromey <tom@tromey.com>
14696
14697 * remote-fileio.h (struct remote_target): Declare.
14698
14699 2019-01-22 Tom Tromey <tom@tromey.com>
14700
14701 * python/py-arch.c: Do not include py-ref.h.
14702 * python/py-bpevent.c: Do not include py-ref.h.
14703 * python/py-cmd.c: Do not include py-ref.h.
14704 * python/py-continueevent.c: Do not include py-ref.h.
14705 * python/py-event.h: Do not include py-ref.h.
14706 * python/py-evtregistry.c: Do not include py-ref.h.
14707 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14708 * python/py-frame.c: Do not include py-ref.h.
14709 * python/py-framefilter.c: Do not include py-ref.h.
14710 * python/py-function.c: Do not include py-ref.h.
14711 * python/py-infevents.c: Do not include py-ref.h.
14712 * python/py-linetable.c: Do not include py-ref.h.
14713 * python/py-objfile.c: Do not include py-ref.h.
14714 * python/py-param.c: Do not include py-ref.h.
14715 * python/py-prettyprint.c: Do not include py-ref.h.
14716 * python/py-progspace.c: Do not include py-ref.h.
14717 * python/py-symbol.c: Do not include py-ref.h.
14718 * python/py-symtab.c: Do not include py-ref.h.
14719 * python/py-type.c: Do not include py-ref.h.
14720 * python/py-unwind.c: Do not include py-ref.h.
14721 * python/py-utils.c: Do not include py-ref.h.
14722 * python/py-value.c: Do not include py-ref.h.
14723 * python/py-varobj.c: Do not include py-ref.h.
14724 * python/py-xmethods.c: Do not include py-ref.h.
14725 * python/python.c: Do not include py-ref.h.
14726 * varobj.c: Do not include py-ref.h.
14727
14728 2019-01-22 Tom Tromey <tom@tromey.com>
14729
14730 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14731 keyword for bcache.
14732
14733 2019-01-22 Tom Tromey <tom@tromey.com>
14734
14735 * compile/compile-cplus-types.c: Remove a comment by #include.
14736
14737 2019-01-22 Tom Tromey <tom@tromey.com>
14738
14739 * compile/gcc-c-plugin.h: Include compile-internal.h.
14740
14741 2019-01-22 Tom Tromey <tom@tromey.com>
14742
14743 * stabsread.c (EXTERN): Do not define.
14744 (symnum, next_symbol_text_func, processing_gcc_compilation)
14745 (within_function, global_sym_chain, global_stabs)
14746 (previous_stab_code, this_object_header_files)
14747 (n_this_object_header_files)
14748 (n_allocated_this_object_header_files): Define.
14749 * stabsread.h (EXTERN): Never define. Use "extern".
14750
14751 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14752
14753 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14754 history_value.
14755
14756 2019-01-21 Tom Tromey <tom@tromey.com>
14757
14758 * ui-out.c: Fix includes.
14759 * tui/tui-source.c: Fix includes.
14760 * target.c: Fix includes.
14761 * remote.c: Fix includes.
14762 * regcache.c: Fix includes.
14763 * python/py-block.c: Fix includes.
14764 * printcmd.c: Fix includes.
14765 * or1k-tdep.c: Fix includes.
14766 * mi/mi-main.c: Fix includes.
14767 * m32r-tdep.c: Fix includes.
14768 * csky-tdep.c: Fix includes.
14769 * compile/compile-cplus-types.c: Fix includes.
14770 * cli/cli-interp.c: Fix includes.
14771
14772 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14773
14774 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14775 for padding.
14776
14777 2019-01-16 Tom Tromey <tom@tromey.com>
14778
14779 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14780 earlier.
14781 (struct objfile) <msymbols_range>: Move from top level.
14782 <msymbols>: New method.
14783 (class objfile_msymbols): Remove.
14784 * symtab.c (default_collect_symbol_completion_matches_break_on):
14785 Update.
14786 * symmisc.c (dump_msymbols): Update.
14787 * stabsread.c (scan_file_globals): Update.
14788 * objc-lang.c (info_selectors_command, info_classes_command)
14789 (find_methods): Update.
14790 * minsyms.c (find_solib_trampoline_target): Update.
14791 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14792 * coffread.c (coff_symfile_read): Update.
14793 * ada-lang.c (ada_lookup_simple_minsym)
14794 (ada_collect_symbol_completion_matches): Update.
14795
14796 2019-01-16 Tom Tromey <tom@tromey.com>
14797
14798 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14799 type. Remove no-argument constructor.
14800 <iterator::operator++>: Simplify.
14801 <begin>: Update.
14802 <end>: Use minimal_symbol_count.
14803
14804 2019-01-16 Tom Tromey <tom@tromey.com>
14805
14806 * objfiles.h (struct objfile) <psymtabs>: New method.
14807 (class objfile_psymtabs): Remove.
14808 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14809 typedef.
14810 <range>: New method.
14811 (require_partial_symbols): Change return type.
14812 * psymtab.c (require_partial_symbols)
14813 (psym_expand_symtabs_matching): Update.
14814 * mdebugread.c (parse_partial_symbols): Update.
14815 * dbxread.c (dbx_end_psymtab): Update.
14816
14817 2019-01-15 Tom Tromey <tom@tromey.com>
14818
14819 * symtab.c (lookup_objfile_from_block)
14820 (lookup_symbol_in_objfile_symtabs)
14821 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14822 (find_line_symtab, info_sources_command)
14823 (default_collect_symbol_completion_matches_break_on)
14824 (make_source_files_completion_list): Update.
14825 * symmisc.c (print_objfile_statistics, dump_objfile)
14826 (maintenance_print_symbols, maintenance_info_symtabs)
14827 (maintenance_check_symtabs, maintenance_info_line_tables):
14828 Update.
14829 * source.c (select_source_symtab)
14830 (forget_cached_source_info_for_objfile): Update.
14831 * objfiles.h (class objfile_compunits): Remove.
14832 (struct objfile) <compunits_range>: New typedef.
14833 (compunits): New method.
14834 * objfiles.c (objfile_relocate1): Update.
14835 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14836 * maint.c (count_symtabs_and_blocks): Update.
14837 * linespec.c (iterate_over_all_matching_symtabs): Update.
14838 * cp-support.c (add_symbol_overload_list_qualified): Update.
14839 * coffread.c (coff_symtab_read): Update.
14840 * ada-lang.c (add_nonlocal_symbols)
14841 (ada_collect_symbol_completion_matches)
14842 (ada_add_global_exceptions): Update.
14843
14844 2019-01-15 Tom Tromey <tom@tromey.com>
14845
14846 * progspace.h (program_space) <objfiles_safe_range>: New
14847 typedef.
14848 <objfiles_safe>: New method.
14849 * objfiles.h (class all_objfiles_safe): Remove.
14850 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14851 * jit.c (jit_inferior_exit_hook): Update.
14852
14853 2019-01-17 Tom Tromey <tom@tromey.com>
14854
14855 * progspace.h (program_space) <objfiles_range>: New typedef.
14856 <objfiles>: New method.
14857 <objfiles_head>: Rename from objfiles.
14858 (object_files): Update.
14859 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14860 * guile/scm-pretty-print.c
14861 (ppscm_find_pretty_printer_from_objfiles): Update.
14862 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14863 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14864 Update.
14865 * python/py-progspace.c (pspy_get_objfiles): Update.
14866 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14867 Update.
14868 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14869 (objfpy_lookup_objfile_by_build_id): Update.
14870 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14871 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14872 Update.
14873 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14874 (expand_symtab_containing_pc, lookup_objfile_from_block)
14875 (lookup_static_symbol, basic_lookup_transparent_type)
14876 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14877 (find_line_symtab, info_sources_command)
14878 (default_collect_symbol_completion_matches_break_on)
14879 (make_source_files_completion_list, find_main_name): Update.
14880 * symmisc.c (print_symbol_bcache_statistics)
14881 (print_objfile_statistics, maintenance_print_symbols)
14882 (maintenance_print_msymbols, maintenance_print_objfiles)
14883 (maintenance_info_symtabs, maintenance_check_symtabs)
14884 (maintenance_expand_symtabs, maintenance_info_line_tables):
14885 Update.
14886 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14887 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14888 (map_overlay_command, unmap_overlay_command)
14889 (simple_overlay_update, expand_symtabs_matching)
14890 (map_symbol_filenames): Update.
14891 * symfile-debug.c (set_debug_symfile): Update.
14892 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14893 Update.
14894 * source.c (select_source_symtab, forget_cached_source_info):
14895 Update.
14896 * solib.c (solib_read_symbols): Update.
14897 * solib-spu.c (append_ocl_sos): Update.
14898 * psymtab.c (maintenance_print_psymbols)
14899 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14900 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14901 * printcmd.c (info_symbol_command): Update.
14902 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14903 Update.
14904 * objfiles.h (class all_objfiles): Remove.
14905 * objfiles.c (have_partial_symbols, have_full_symbols)
14906 (have_minimal_symbols, qsort_cmp, update_section_map)
14907 (shared_objfile_contains_address_p)
14908 (default_iterate_over_objfiles_in_search_order): Update.
14909 * objc-lang.c (info_selectors_command, info_classes_command)
14910 (find_methods): Update.
14911 * minsyms.c (find_solib_trampoline_target): Update.
14912 * maint.c (maintenance_info_sections)
14913 (maintenance_translate_address, count_symtabs_and_blocks):
14914 Update.
14915 * main.c (captured_main_1): Update.
14916 * linux-thread-db.c (try_thread_db_load_from_pdir)
14917 (has_libpthread): Update.
14918 * linespec.c (iterate_over_all_matching_symtabs)
14919 (search_minsyms_for_name): Update.
14920 * jit.c (jit_find_objf_with_entry_addr): Update.
14921 * hppa-tdep.c (find_unwind_entry)
14922 (hppa_lookup_stub_minimal_symbol): Update.
14923 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14924 Update.
14925 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14926 (elf_gnu_ifunc_resolve_by_got): Update.
14927 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14928 * dwarf-index-write.c (save_gdb_index_command): Update.
14929 * cp-support.c (add_symbol_overload_list_qualified): Update.
14930 * breakpoint.c (create_overlay_event_breakpoint)
14931 (create_longjmp_master_breakpoint)
14932 (create_std_terminate_master_breakpoint)
14933 (create_exception_master_breakpoint): Update.
14934 * blockframe.c (find_pc_partial_function): Update.
14935 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14936 (ada_collect_symbol_completion_matches)
14937 (ada_add_global_exceptions): Update.
14938
14939 2019-01-17 Tom Tromey <tom@tromey.com>
14940
14941 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14942 declare VEC.
14943 (solib_target_parse_libraries): Change return type.
14944 (library_list_start_segment, library_list_start_section)
14945 (library_list_end_library, library_list_start_library); Update.
14946 (solib_target_free_library_list): Remove.
14947 (solib_target_parse_libraries): Remove cleanup. Change return
14948 type.
14949 (solib_target_current_sos): Update.
14950
14951 2019-01-17 Tom Tromey <tromey@bapiya>
14952
14953 * valprint.c: Replace "the the" with "the".
14954 * symtab.c: Replace "the the" with "the".
14955 * solib.c: Replace "the the" with "the".
14956 * solib-dsbt.c: Replace "the the" with "the".
14957 * linespec.c: Replace "the the" with "the".
14958 * dwarf2loc.h: Replace "the the" with "the".
14959 * amd64-windows-tdep.c: Replace "the the" with "the".
14960 * aarch64-tdep.c: Replace "the the" with "the".
14961
14962 2019-01-16 Keith Seitz <keiths@redhat.com>
14963
14964 PR gdb/23773
14965 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14966 <builder>: Rename to ..
14967 <m_builder>: ... this and make private.
14968 (dwarf2_cu::get_builder): New method. Change all users of
14969 `builder' to use this method.
14970 (dwarf2_start_symtab): Move to ...
14971 (dwarf2_cu::start_symtab): ... here. Update all callers
14972 (setup_type_unit_groups): Move to ...
14973 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14974 callers.
14975 (dwarf2_cu::reset_builder): New method.
14976 (process_full_compunit, process_full_type_unit): Use
14977 dwarf2_cu::reset_builder.
14978 (follow_die_offset): Record the ancestor CU if it is different
14979 from the followed DIE's CU.
14980 (follow_die_sig_1): Likewise.
14981
14982 2019-01-15 Tom Tromey <tom@tromey.com>
14983
14984 * remote.c (class remote_state) <buf>: Now a char_vector.
14985 <buf_size>: Remove.
14986 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14987 parameter.
14988 (remote_target::getpkt_or_notif_sane_1)
14989 (remote_target::getpkt_sane)
14990 (remote_target::getpkt_or_notif_sane): Likewise.
14991 (class remote_target) <putpkt>: New overload.
14992 (remote_target::read_frame): Change type of "buf_p". Remove
14993 sizeof_p parameter.
14994 (packet_ok): New overload.
14995 (packet_check_result): New overload.
14996 Update all uses.
14997
14998 2019-01-14 Tom Tromey <tom@tromey.com>
14999
15000 * remote-notif.c (handle_notification, remote_notif_ack)
15001 (remote_notif_parse): Make "buf" const.
15002 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15003 const.
15004 (remote_notif_parse, remote_notif_ack, handle_notification):
15005 Likewise.
15006 * remote.c (remote_notif_stop_parse): Make "buf" const.
15007 (remote_target::remote_parse_stop_reply): Make "buf" const.
15008 (remote_notif_stop_ack): Make "buf" const.
15009
15010 2019-01-14 Tom Tromey <tom@tromey.com>
15011
15012 * remote.c (remote_console_output): Make parameter const.
15013
15014 2019-01-14 Tom Tromey <tom@tromey.com>
15015
15016 * target-debug.h (target_debug_print_signals): Constify.
15017 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15018 * procfs.c (procfs_target::pass_signals): Update.
15019 * linux-nat.c (linux_nat_target::pass_signals): Update.
15020 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15021 * target-delegates.c: Rebuild.
15022 * remote.c (remote_target::program_signals): Update.
15023 (remote_target::pass_signals): Update.
15024 * target.c (target_pass_signals): Constify argument.
15025 (target_program_signals): Likewise.
15026 * target.h (struct target_ops) <pass_signals, program_signals>:
15027 Constify argument.
15028 (target_pass_signals, target_program_signals): Constify argument.
15029
15030 2019-01-14 Tom Tromey <tom@tromey.com>
15031
15032 PR tui/28819:
15033 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15034
15035 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15036
15037 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15038 field.
15039 * rs6000-tdep.c: Include reggroups.h.
15040 (IS_V_ALIAS_PSEUDOREG): Define.
15041 (rs6000_register_name): Return names for the "vX" aliases.
15042 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15043 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15044 aliases. Call default_register_reggroup_p for all other
15045 pseudo-registers.
15046 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15047 New functions.
15048 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15049 Handle "vX" aliases.
15050 (v_alias_pseudo_register_collect): New function.
15051 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15052 (rs6000_gdbarch_init): Initialize "vX" aliases as
15053 pseudo-registers. Restore registration of
15054 rs6000_pseudo_register_reggroup_p with
15055 set_tdesc_pseudo_register_reggroup_p.
15056
15057 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15058
15059 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15060 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15061 set_gdbarch_num_pseudo_regs.
15062
15063 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15064
15065 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15066 Remove arg prefixname, add do_set and do_show.
15067 Add member functions set_list and show_list.
15068 * cli/cli-style.c (class cli_style_option): Update accordingly.
15069 (style_set_list): Move to file scope.
15070 (style_show_list): Likewise.
15071 (set_style): Call help_list.
15072 (show_style): Call cmd_show_list.
15073 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15074 Update to use the new macro.
15075
15076 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15077
15078 * ada-lang.c (_initialize_ada_language): Expand the help text
15079 for the "catch exception" command.
15080
15081 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15082
15083 * symtab.c (matching_obj_sections): Initialize obj,
15084 declare it closer to its usage.
15085
15086 2019-01-10 Tom Tromey <tom@tromey.com>
15087
15088 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15089 (basic_inf_threads_range): Remove.
15090 (inf_threads_range, inf_non_exited_threads_range)
15091 (safe_inf_threads_range): Use next_adapter.
15092
15093 2019-01-10 Keith Seitz <keiths@redhat.com>
15094
15095 PR gdb/23712
15096 PR symtab/23010
15097 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15098 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15099
15100 2019-01-10 Keith Seitz <keiths@redhat.com>
15101
15102 PR gdb/23712
15103 PR symtab/23010
15104 * dictionary.c (pending_to_vector): Remove.
15105 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15106 Remove _1 suffix, replacing functions of the same name. Update
15107 all callers.
15108 (dict_create_hashed, dict_create_hashed_expandable)
15109 (dict_create_linear, dict_create_linear_expandable, dict_free)
15110 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15111 Make functions static.
15112
15113 2019-01-10 Keith Seitz <keiths@redhat.com>
15114
15115 PR gdb/23712
15116 PR symtab/23010
15117 * dictionary.h (struct dictionary): Replace declaration with
15118 multidictionary.
15119 (dict_create_hashed, dict_create_hashed_expandable)
15120 (dict_create_linear, dict_create_linear_expandable)
15121 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15122 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15123 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15124 taking multidictionary argument.
15125 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15126 * block.h (struct block) <dict>: Change to multidictionary
15127 and rename `multidict'.
15128 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15129 symmisc.c: Update all dictionary references to multidictionary.
15130
15131 2019-01-10 Keith Seitz <keiths@redhat.com>
15132
15133 PR gdb/23712
15134 PR symtab/23010
15135 * dictionary.c: Include unordered_map.
15136 (pending_to_vector): New function.
15137 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15138 Rewrite the non-"_1" functions to take vector instead
15139 of linked list.
15140 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15141 "new" _1 versions of the same name.
15142 (multidictionary): Define.
15143 (std::hash<enum language): New definition.
15144 (collate_pending_symbols_by_language, mdict_create_hashed)
15145 (mdict_create_hashed_expandable, mdict_create_linear)
15146 (mdict_create_linear_expandable, mdict_free)
15147 (find_language_dictionary, create_new_language_dictionary)
15148 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15149 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15150 (mdict_size, mdict_empty): New functions.
15151 * dictionary.h (mdict_iterator): Define.
15152
15153 2019-01-10 Pedro Alves <palves@redhat.com>
15154
15155 * breakpoint.c (read_uploaded_action)
15156 (create_tracepoint_from_upload): Adjust to use
15157 gdb::unique_xmalloc_ptr.
15158 * ctf.c (ctf_write_uploaded_tp):
15159 (SET_ARRAY_FIELD): Use emplace_back.
15160 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15161 * tracefile-tfile.c (tfile_write_uploaded_tp):
15162 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15163 gdb::unique_xmalloc_ptr.
15164 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15165 at_string, cond_string, cmd_strings>: Replace char pointers
15166 with gdb::unique_xmalloc_ptr.
15167
15168 2019-01-10 Pedro Alves <palves@redhat.com>
15169
15170 * solib-target.c (library_list_start_library): Don't xstrdup name.
15171
15172 2019-01-10 Pedro Alves <palves@redhat.com>
15173
15174 * mdebugread.c (parse_partial_symbols): Use
15175 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15176
15177 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15178
15179 * linux-fork.c (scoped_switch_fork_info)
15180 <~scoped_switch_fork_info>: Fix incorrect variable name.
15181
15182 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15183
15184 * linux-fork.c (scoped_switch_fork_info)
15185 <scoped_switch_fork_info>: Make explicit.
15186 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15187
15188 2019-01-10 Tom Tromey <tom@tromey.com>
15189
15190 * objfiles.h (objfile::reset_psymtabs): Update.
15191 * objfiles.c (objfile::objfile): Update.
15192 * psymtab.h (psymtab_storage::obstack): Update.
15193 (psymtab_storage::m_obstack): Use gdb::optional.
15194 (class psymtab_storage): Update comment. Remove objfile
15195 parameter.
15196 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15197
15198 2019-01-10 Tom Tromey <tom@tromey.com>
15199
15200 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15201 <free_psymtabs>: Now private.
15202 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15203 (allocate_psymtab): Use new method.
15204
15205 2019-01-10 Tom Tromey <tom@tromey.com>
15206
15207 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15208 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15209 * mdebugread.c (parse_partial_symbols): Use
15210 allocate_dependencies.
15211 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15212 allocate_dependencies.
15213 (process_psymtab_comp_unit_reader)
15214 (build_type_psymtab_dependencies): Likewise.
15215 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15216
15217 2019-01-10 Tom Tromey <tom@tromey.com>
15218
15219 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15220 PSYMBOL_SET_LANGUAGE.
15221 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15222
15223 2019-01-10 Tom Tromey <tom@tromey.com>
15224
15225 * psymtab.h (psymtab_storage::obstack): New method.
15226 <m_obstack>: Rename from obstack; now private.
15227 * psymtab.c (psymtab_storage): Update.
15228 * dwarf2read.c (create_addrmap_from_index)
15229 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15230 Update.
15231
15232 2019-01-10 Tom Tromey <tom@tromey.com>
15233
15234 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15235 * objfiles.h (objfile::reset_psymtabs): New method.
15236
15237 2019-01-10 Tom Tromey <tom@tromey.com>
15238
15239 * symmisc.c (print_symbol_bcache_statistics): Update.
15240 (print_objfile_statistics): Update.
15241 * symfile.c (reread_symbols): Update.
15242 * psymtab.h (class psymtab_storage): New.
15243 * psymtab.c (psymtab_storage): New constructor.
15244 (~psymtab_storage): New destructor.
15245 (require_partial_symbols): Update.
15246 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15247 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15248 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15249 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15250 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15251 (start_psymtab_common, end_psymtab_common)
15252 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15253 (allocate_psymtab): Update.
15254 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15255 Update.
15256 (dump_psymtab_addrmap, maintenance_print_psymbols)
15257 (maintenance_check_psymtabs): Update.
15258 (class objfile_psymtabs): Move to objfiles.h.
15259 * psympriv.h (discard_psymtab): Now inline.
15260 (psymtab_discarder::psymtab_discarder): Update.
15261 (psymtab_discarder::~psymtab_discarder): Update.
15262 (ALL_OBJFILE_PSYMTABS): Rewrite.
15263 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15264 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15265 Remove fields.
15266 <partial_symtabs>: New field.
15267 (class objfile_psymtabs): Move from psymtab.h. Update.
15268 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15269 psymbol_cache.
15270 (objfile::~objfile): Don't destroy psymbol_cache.
15271 * mdebugread.c (parse_partial_symbols): Update.
15272 * dwarf2read.c (create_addrmap_from_index)
15273 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15274 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15275 (add_partial_subprogram, dwarf2_ranges_read): Update.
15276 * dwarf-index-write.c (write_address_map)
15277 (write_one_signatured_type, recursively_write_psymbols)
15278 (class debug_names, class debug_names, write_psymtabs_to_index):
15279 Update.
15280
15281 2019-01-10 Tom Tromey <tom@tromey.com>
15282
15283 * symtab.h (SYMBOL_SET_NAMES): Update.
15284 (symbol_set_names): Update.
15285 (MSYMBOL_SET_NAMES): Update.
15286 * symtab.c (symbol_set_names): Change argument to be an
15287 objfile_per_bfd_storage.
15288 * psymtab.c (add_psymbol_to_bcache): Update.
15289 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15290
15291 2019-01-10 Tom Tromey <tom@tromey.com>
15292
15293 * symtab.c (create_demangled_names_hash): Change argument to be an
15294 objfile_per_bfd_storage.
15295 (symbol_set_names): Update.
15296
15297 2019-01-10 Tom Tromey <tom@tromey.com>
15298
15299 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15300 init_psymbol_list.
15301 * psymtab.c (init_psymbol_list): Do nothing if already called.
15302 * psympriv.h (init_psymbol_list): Add comment.
15303 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15304 init_psymbol_list.
15305 * dbxread.c (dbx_symfile_read): Unconditionally call
15306 init_psymbol_list.
15307
15308 2019-01-10 Tom Tromey <tom@tromey.com>
15309
15310 * xcoffread.c (scan_xcoff_symtab): Update.
15311 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15312 "where".
15313 * mdebugread.c (parse_partial_symbols)
15314 (handle_psymbol_enumerators): Update.
15315 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15316 * dbxread.c (read_dbx_symtab): Update.
15317 * psympriv.h (psymbol_placement): New enum.
15318 (add_psymbol_to_list): Update.
15319
15320 2019-01-10 Tom Tromey <tom@tromey.com>
15321
15322 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15323 static_psymbols parameters.
15324 (scan_xcoff_symtab): Update.
15325 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15326 static_psymbols parameters.
15327 * psympriv.h (start_psymtab_common): Update.
15328 * mdebugread.c (parse_partial_symbols): Update.
15329 * dwarf2read.c (create_partial_symtab): Update.
15330 * dbxread.c (read_dbx_symtab): Update.
15331 (start_psymtab): Remove global_psymbols and static_psymbols
15332 parameters.
15333
15334 2019-01-10 Tom Tromey <tom@tromey.com>
15335
15336 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15337 * psymtab.c (allocate_psymtab): Add comment.
15338 * psympriv.h (allocate_psymtab): Add comment.
15339 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15340 initializations.
15341 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15342
15343 2019-01-10 Tom Tromey <tom@tromey.com>
15344
15345 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15346 Don't declare.
15347 * mipsread.c: Include mdebugread.h.
15348 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15349 Declare.
15350 * elfread.c: Include mdebugread.h.
15351
15352 2019-01-09 Tom Tromey <tom@tromey.com>
15353
15354 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15355 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15356 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15357 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15358 (psym_lookup_symbol, psym_find_last_source_symtab)
15359 (psym_forget_cached_source_info, psym_print_stats)
15360 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15361 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15362 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15363 (psym_find_compunit_symtab_by_address)
15364 (maintenance_print_psymbols, maintenance_info_psymtabs)
15365 (maintenance_check_psymtabs): Use ranged for.
15366 * psymtab.h (class objfile_psymtabs): New.
15367 (require_partial_symbols): Return objfile_psymtabs.
15368 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15369
15370 2019-01-09 Tom Tromey <tom@tromey.com>
15371
15372 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15373 (find_pc_mapped_section, list_overlays_command)
15374 (map_overlay_command, unmap_overlay_command)
15375 (simple_overlay_update): Use all_objfiles.
15376 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15377 * printcmd.c (info_symbol_command): Use all_objfiles.
15378 * objfiles.h (ALL_OBJSECTIONS): Remove.
15379 * maint.c (maintenance_translate_address): Use all_objfiles.
15380 * gcore.c (gcore_create_callback): Use all_objfiles.
15381 (objfile_find_memory_regions): Likewise.
15382
15383 2019-01-09 Tom Tromey <tom@tromey.com>
15384
15385 * symtab.c (find_line_symtab, info_sources_command)
15386 (make_source_files_completion_list): Use objfile_compunits.
15387 * source.c (select_source_symtab): Use objfile_compunits.
15388 * objfiles.h (struct objfile): Update comment.
15389 (ALL_OBJFILES): Remove.
15390 (ALL_FILETABS): Remove.
15391 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15392 objfile_compunits.
15393
15394 2019-01-09 Tom Tromey <tom@tromey.com>
15395
15396 * symmisc.c (print_objfile_statistics, dump_objfile)
15397 (maintenance_print_symbols): Use compunit_filetabs.
15398 * source.c (forget_cached_source_info_for_objfile): Use
15399 compunit_filetabs.
15400 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15401 (ALL_FILETABS): Use compunit_filetabs.
15402 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15403 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15404
15405 2019-01-09 Tom Tromey <tom@tromey.com>
15406
15407 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15408 (compunit_filetabs): New.
15409 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15410 compunit_filetabs.
15411 (info_sources_command, make_source_files_completion_list): Remove
15412 declaration.
15413 * symmisc.c (print_objfile_statistics, dump_objfile)
15414 (maintenance_print_symbols): Remove declaration.
15415 (maintenance_info_symtabs): Use compunit_filetabs.
15416 (maintenance_info_line_tables): Likewise.
15417 * source.c (select_source_symtab): Change local variable name.
15418 (forget_cached_source_info_for_objfile): Remove declaration.
15419 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15420 * objfiles.c (objfile_relocate1): Remove declaration.
15421 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15422 declaration.
15423 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15424 * coffread.c (coff_symtab_read): Remove declaration.
15425 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15426 compunit_filetabs.
15427
15428 2019-01-09 Tom Tromey <tom@tromey.com>
15429
15430 * symtab.c (lookup_objfile_from_block)
15431 (find_pc_sect_compunit_symtab, search_symbols)
15432 (default_collect_symbol_completion_matches_break_on): Use
15433 objfile_compunits.
15434 * objfiles.h (ALL_COMPUNITS): Remove.
15435 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15436 * cp-support.c (add_symbol_overload_list_qualified): Use
15437 objfile_compunits.
15438 * ada-lang.c (ada_collect_symbol_completion_matches)
15439 (ada_add_global_exceptions): Use objfile_compunits.
15440
15441 2019-01-09 Tom Tromey <tom@tromey.com>
15442
15443 * source.c (select_source_symtab)
15444 (forget_cached_source_info_for_objfile): Remove declaration.
15445 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15446 declaration.
15447 * maint.c (count_symtabs_and_blocks): Remove declaration.
15448 * cp-support.c (add_symbol_overload_list_qualified): Remove
15449 declaration.
15450 * coffread.c (coff_symtab_read): Remove declaration.
15451 * symtab.c (lookup_symbol_in_objfile_symtabs)
15452 (basic_lookup_transparent_type_1): Use objfile_compunits.
15453 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15454 (info_sources_command, search_symbols)
15455 (default_collect_symbol_completion_matches_break_on)
15456 (make_source_files_completion_list): Remove declaration.
15457 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15458 (ada_collect_symbol_completion_matches)
15459 (ada_add_global_exceptions): Remove declaration.
15460 * linespec.c (iterate_over_all_matching_symtabs): Use
15461 objfile_compunits.
15462 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15463 (class objfile_compunits): New.
15464 (ALL_COMPUNITS): Use objfile_compunits.
15465 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15466 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15467 objfile_compunits.
15468 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15469
15470 2019-01-09 Tom Tromey <tom@tromey.com>
15471
15472 * symtab.c (search_symbols)
15473 (default_collect_symbol_completion_matches_break_on): Use
15474 objfile_msymbols.
15475 * ada-lang.c (ada_lookup_simple_minsym)
15476 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15477 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15478 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15479 objfile_msymbols.
15480 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15481 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15482 * objc-lang.c (find_methods): Use objfile_msymbols.
15483 (info_selectors_command, info_classes_command): Likewise.
15484 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15485 * objfiles.h (class objfile_msymbols): New.
15486 (ALL_OBJFILE_MSYMBOLS): Remove.
15487 (ALL_MSYMBOLS): Remove.
15488
15489 2019-01-09 Tom Tromey <tom@tromey.com>
15490
15491 * common/next-iterator.h (next_adapter): Add Iterator template
15492 parameter.
15493 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15494 (class all_objfiles_safe): New.
15495 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15496 * objfiles.c (put_objfile_before): Update comment.
15497 (add_separate_debug_objfile): Likewise.
15498 (free_all_objfiles): Use all_objfiles_safe.
15499 (objfile_purge_solibs): Likewise.
15500
15501 2019-01-09 Tom Tromey <tom@tromey.com>
15502
15503 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15504 (expand_symtab_containing_pc, lookup_static_symbol)
15505 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15506 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15507 all_objfiles.
15508 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15509 * breakpoint.c (create_overlay_event_breakpoint)
15510 (create_longjmp_master_breakpoint)
15511 (create_std_terminate_master_breakpoint)
15512 (create_exception_master_breakpoint): Use all_objfiles.
15513 * linux-thread-db.c (try_thread_db_load_from_pdir)
15514 (has_libpthread): Use all_objfiles.
15515 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15516 * linespec.c (iterate_over_all_matching_symtabs)
15517 (search_minsyms_for_name): Use all_objfiles.
15518 * maint.c (maintenance_info_sections): Use all_objfiles.
15519 * main.c (captured_main_1): Use all_objfiles.
15520 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15521 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15522 * guile/scm-pretty-print.c
15523 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15524 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15525 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15526 (maintenance_print_msymbols): Use all_objfiles.
15527 * source.c (select_source_symtab): Use all_objfiles.
15528 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15529 * symfile.c (remove_symbol_file_command)
15530 (expand_symtabs_matching, map_symbol_filenames): Use
15531 all_objfiles.
15532 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15533 all_objfiles.
15534 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15535 * objc-lang.c (find_methods): Use all_objfiles.
15536 * objfiles.c (have_partial_symbols, have_full_symbols)
15537 (have_minimal_symbols, qsort_cmp)
15538 (default_iterate_over_objfiles_in_search_order): Use
15539 all_objfiles.
15540 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15541 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15542 (maintenance_check_psymtabs): Use all_objfiles.
15543 (ALL_PSYMTABS): Remove.
15544 * compile/compile-object-run.c (do_module_cleanup): Use
15545 all_objfiles.
15546 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15547 * cp-support.c (add_symbol_overload_list_qualified): Use
15548 all_objfiles.
15549 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15550 Use all_objfiles.
15551 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15552 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15553 all_objfiles.
15554 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15555 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15556 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15557 Uses all_objfiles.
15558 * solib.c (solib_read_symbols): Use all_objfiles
15559
15560 2019-01-09 Tom Tromey <tom@tromey.com>
15561
15562 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15563 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15564 all_objfiles.
15565 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15566 * symmisc.c (print_symbol_bcache_statistics)
15567 (print_objfile_statistics, maintenance_print_objfiles)
15568 (maintenance_info_symtabs, maintenance_check_symtabs)
15569 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15570 all_objfiles.
15571 * source.c (forget_cached_source_info): Use all_objfiles.
15572 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15573 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15574 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15575 * objfiles.c (update_section_map): Use all_objfiles.
15576 (shared_objfile_contains_address_p): Likewise.
15577 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15578 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15579
15580 2019-01-09 Tom Tromey <tom@tromey.com>
15581
15582 * common/next-iterator.h: New file.
15583 * objfiles.h (class all_objfiles): New.
15584 (struct objfile_iterator): New.
15585
15586 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15587
15588 * NEWS: Move the description of the changed "frame", "select-frame",
15589 and "info frame" commands to the Changed commands section.
15590
15591 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15592
15593 * gdbtypes.c (check_stub_method_group): Remove handling of old
15594 mangling schemes.
15595 * linespec.c (find_methods): Likewise.
15596 * stabsread.c (read_member_functions): Likewise.
15597 * valops.c (search_struct_method): Likewise.
15598 (value_struct_elt_for_reference): Likewise.
15599 * NEWS: Mention this change.
15600
15601 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15602
15603 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15604 print_source_lines.
15605 * source.c (print_source_lines_base): Update line number check.
15606 (print_source_lines): New function.
15607 (source_lines_range::source_lines_range): New function.
15608 * source.h (class source_lines_range): New class.
15609 (print_source_lines): New declaration.
15610
15611 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15612
15613 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15614
15615 2019-01-08 Tom Tromey <tom@tromey.com>
15616 Simon Marchi <simon.marchi@ericsson.com>
15617
15618 PR gdb/24060
15619 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15620 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15621 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15622 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15623 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15624 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15625
15626 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15627
15628 * source.c (select_source_symtab): Move header comment to
15629 declaration in source.h.
15630 (forget_cached_source_info_for_objfile): Likewise.
15631 (forget_cached_source_info): Likewise.
15632 (identify_source_line): Likewise.
15633 * source.h (identify_source_line): Move declaration from symtab.h
15634 and add comment from source.c
15635 (print_source_lines): Likewise.
15636 (forget_cached_source_info_for_objfile): Likewise.
15637 (forget_cached_source_info): Likewise.
15638 (select_source_symtab): Likewise.
15639 (enum print_source_lines_flag): Move definition from symtab.h.
15640 * symtab.h (identify_source_line): Move declaration to source.h.
15641 (print_source_lines): Likewise.
15642 (forget_cached_source_info_for_objfile): Likewise.
15643 (forget_cached_source_info): Likewise.
15644 (select_source_symtab): Likewise.
15645 (enum print_source_lines_flag): Move definition to source.h.
15646 * tui/tui-hooks.c: Add 'source.h' include.
15647
15648 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15649
15650 * source.c (print_source_lines_base): Handle requests to print
15651 reverse line number sequences, and guard against empty lines
15652 string.
15653
15654 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15655
15656 * source.c (print_source_lines_base): Fix skip of '\r' if next
15657 character is '\n'.
15658
15659 2019-01-06 Tom Tromey <tom@tromey.com>
15660
15661 * c-exp.y (struct c_parse_state) <macro_original_text,
15662 expansion_obstack>: New member.
15663 (macro_original_text, expansion_obstack): Remove globals.
15664 (scan_macro_expansion, scanning_macro_expansion)
15665 (finished_macro_expansion): Update.
15666 (scan_macro_cleanup): Remove.
15667 (yylex, c_parse): Update.
15668
15669 2019-01-06 Tom Tromey <tom@tromey.com>
15670
15671 * c-exp.y (struct c_parse_state) <strings>: New member.
15672 (operator_stoken): Update.
15673
15674 2019-01-06 Tom Tromey <tom@tromey.com>
15675
15676 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15677 (union type_stack_elt) <typelist_val>: Now a pointer to
15678 std::vector.
15679 (type_stack_cleanup): Don't declare.
15680 (push_typelist): Update.
15681 * parse.c (pop_typelist): Return a std::vector.
15682 (push_typelist): Take a std::vector.
15683 (follow_types): Update. Do not free args.
15684 (type_stack_cleanup): Remove.
15685 * c-exp.y (struct c_parse_state): New.
15686 (cpstate): New global.
15687 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15688 (nonempty_typelist): Update.
15689 (func_mod): Create a new vector.
15690 (c_parse): Create a c_parse_state.
15691 (check_parameter_typelist): Do not delete params.
15692 (function_method): Update. Do not delete type_list.
15693
15694 2019-01-06 Tom Tromey <tom@tromey.com>
15695
15696 PR gdb/28155:
15697 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15698 check_typedef.
15699 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15700 (print_return_value): Likewise.
15701
15702 2019-01-05 Tom Tromey <tom@tromey.com>
15703
15704 * contrib/cleanup_check.py: Remove.
15705 * contrib/gcc-with-excheck: Remove.
15706 * contrib/exsummary.py: Remove.
15707 * contrib/excheck.py: Remove.
15708
15709 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15710
15711 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15712 NULL. Initialize tpprev to NULL instead of assigning it
15713 to NULL on the next statement.
15714 * windows-nat.c (windows_delete_thread): Remove check for
15715 main_thread_id before printing thread exit notifications.
15716 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15717 Remove thread ID check against main_thread_id.
15718 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15719 windows_delete_thread.
15720 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15721
15722 2019-01-04 Tom Tromey <tom@tromey.com>
15723
15724 * compile/compile.c (_initialize_compile): Use upper case for
15725 metasyntactic variables.
15726 * symmisc.c (_initialize_symmisc): Use upper case for
15727 metasyntactic variables.
15728 * psymtab.c (_initialize_psymtab): Use upper case for
15729 metasyntactic variables.
15730 * demangle.c (demangle_command): Use upper case for metasyntactic
15731 variables.
15732 (_initialize_demangler): Likewise.
15733 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15734 variables.
15735
15736 2019-01-03 Tom Tromey <tom@tromey.com>
15737
15738 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15739
15740 2019-01-03 Tom Tromey <tom@tromey.com>
15741
15742 * python/py-symtab.c (salpy_str): Update.
15743 (struct salpy_sal_object) <symtab>: Now a PyObject.
15744 (salpy_dealloc): Update.
15745 (del_objfile_sal): Use gdbpy_ref.
15746
15747 2019-01-03 Tom Tromey <tom@tromey.com>
15748
15749 * python/py-type.c (convert_field): Use new_reference. Return
15750 gdbpy_ref.
15751 (make_fielditem): Return gdbpy_ref.
15752 (typy_fields): Update.
15753 (typy_getitem): Update.
15754 (field_name): Return gdbpy_ref. Use new_reference.
15755 (typy_iterator_iternext): Update.
15756
15757 2019-01-03 Tom Tromey <tom@tromey.com>
15758
15759 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15760
15761 2019-01-03 Tom Tromey <tom@tromey.com>
15762
15763 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15764 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15765 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15766 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15767 (pspy_set_type_printers): Likewise.
15768 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15769 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15770 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15771 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15772 (objfpy_set_type_printers): Likewise.
15773
15774 2019-01-03 Tom Tromey <tom@tromey.com>
15775
15776 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15777 (gdbpy_print_stack): Use gdbpy_err_fetch.
15778 * python/python-internal.h (class gdbpy_err_fetch): New class.
15779 (class gdbpy_enter) <m_error_type, m_error_value,
15780 m_error_traceback>: Remove.
15781 <m_error>: New member.
15782 (gdbpy_exception_to_string): Don't declare.
15783 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15784 * python/py-value.c (convert_value_from_python): Use
15785 gdbpy_err_fetch.
15786 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15787 gdbpy_exception_to_string.
15788 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15789 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15790 gdbpy_err_fetch.
15791
15792 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15793
15794 * linux-nat.c (delete_lwp_cleanup): Delete.
15795 (struct lwp_deleter): New struct.
15796 (lwp_info_up): New typedef.
15797 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15798 lwp_info_up.
15799
15800 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15801
15802 * linux-fork.c (class scoped_switch_fork_info): New class.
15803 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15804
15805 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15806
15807 * valops.c (find_overload_match): Remove use of null_cleanup, and
15808 calls to do_cleanups.
15809
15810 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15811
15812 * compile/compile-cplus-types.c
15813 (compile_cplus_instance::decl_name): Handle changes to
15814 cp_func_name.
15815 * cp-support.c (cp_func_name): Update header comment, update
15816 return type.
15817 * cp-support.h (cp_func_name): Update return type in declaration.
15818 * valops.c (find_overload_match): Move temp_func local to top
15819 level of function and change its type. Use temp_func to hold and
15820 delete temporary string obtained from cp_func_name.
15821
15822 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15823
15824 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15825 gdb::char_vector, remove cleanup, and update uses of `msg`.
15826
15827 2019-01-03 Jim Wilson <jimw@sifive.com>
15828
15829 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15830
15831 2019-01-02 Tom Tromey <tom@tromey.com>
15832
15833 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15834 (tdesc_parse_xml): Remove cleanups.
15835 * target-descriptions.h (make_cleanup_free_target_description):
15836 Don't declare.
15837 (target_desc_deleter): New struct.
15838 (target_desc_up): New typedef.
15839 * target-descriptions.c (target_desc_deleter::operator()): Rename
15840 from free_target_description.
15841 (make_cleanup_free_target_description): Remove.
15842
15843 2019-01-02 Tom Tromey <tom@tromey.com>
15844
15845 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15846 constructor, destructor.
15847 (linespec_parser): Remove typedef.
15848 (~linespec_parser): Rename from linespec_parser_delete.
15849 (linespec_lex_to_end, linespec_complete_label)
15850 (linespec_complete): Update.
15851 (decode_line_full): Remove cleanups.
15852 (decode_line_1): Update.
15853
15854 2019-01-02 Tom Tromey <tom@tromey.com>
15855
15856 * python/python-internal.h (inferior_to_inferior_object): Change
15857 return type.
15858 * python/py-exitedevent.c (create_exited_event_object): Update.
15859 * python/py-inferior.c (inferior_to_inferior_object): Return
15860 gdbpy_ref.
15861 (python_new_inferior, python_inferior_deleted)
15862 (thread_to_thread_object, delete_thread_object)
15863 (build_inferior_list, gdbpy_selected_inferior): Update.
15864 * python/py-infthread.c (create_thread_object): Update. Also fail
15865 if inferior_to_inferior_object fails.
15866
15867 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15868
15869 * inferior.h (class inferior) <displaced_step_state>: New field.
15870 * infrun.h (struct displaced_step_state): Move here from
15871 infrun.c. Initialize fields, add constructor.
15872 <inf>: Remove field.
15873 <reset>: New method.
15874 * infrun.c (struct displaced_step_inferior_state): Move to
15875 infrun.h.
15876 (displaced_step_inferior_states): Remove.
15877 (get_displaced_stepping_state): Adust.
15878 (displaced_step_in_progress_any_inferior): Adjust.
15879 (displaced_step_in_progress_thread): Adjust.
15880 (displaced_step_in_progress): Adjust.
15881 (add_displaced_stepping_state): Remove.
15882 (get_displaced_step_closure_by_addr): Adjust.
15883 (remove_displaced_stepping_state): Remove.
15884 (infrun_inferior_exit): Call displaced_step_state.reset.
15885 (use_displaced_stepping): Don't check for NULL.
15886 (displaced_step_prepare_throw): Call
15887 get_displaced_stepping_state.
15888 (displaced_step_fixup): Don't check for NULL.
15889 (prepare_for_detach): Don't check for NULL.
15890
15891 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15892
15893 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15894 in case of call that did not complete.
15895
15896 2019-01-02 Andrey Utkin <autkin@undo.io>
15897
15898 * symfile.c (find_separate_debug_file): Fix search of debug files for
15899 remote debuggee.
15900
15901 2019-01-02 Tom Tromey <tom@tromey.com>
15902
15903 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15904 indentation.
15905 * python/py-frame.c (frapy_older): Remove cast.
15906 (frapy_newer): Likewise.
15907 * python/py-breakpoint.c (local_setattro): Remove cast.
15908 * python/py-arch.c (archpy_name): Remove local variable.
15909 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15910
15911 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15912
15913 * unittests/basic_string_view/element_access/char/empty.cc:
15914 Fix year range in copyright header.
15915
15916 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15917
15918 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15919 Delete.
15920 <operator==>: Update with for removed field.
15921 <hash>: Likewise.
15922 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15923 <isa_features>: ...this.
15924 <abi_features>: New field.
15925 (riscv_isa_flen): Update comment.
15926 (riscv_abi_xlen): New declaration.
15927 (riscv_abi_flen): New declaration.
15928 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15929 isa_features.
15930 (riscv_abi_xlen): New function.
15931 (riscv_isa_flen): Update to get answer from isa_features.
15932 (riscv_abi_flen): New function.
15933 (riscv_has_fp_abi): Update to get answer from abi_features.
15934 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15935 xlen and flen.
15936 (riscv_call_info) <xlen, flen>: Update comment.
15937 (riscv_call_arg_struct): Remove invalid assertions
15938 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15939 is removed.
15940 (riscv_gdbarch_init): Gather isa features and abi features
15941 separately, ensure both match on the gdbarch when reusing an old
15942 gdbarch. Relax an error check to allow 32-bit abi float to run on
15943 a target with 64-bit float hardware.
15944
15945 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15946
15947 * source.c (search_command_helper): Stop reverse search
15948 when line 1 has been searched.
15949
15950 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15951
15952 * record-full.c (record_full_base_target::close): Rewrite
15953 record_full_core_buf_list free logic.
15954
15955 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15956
15957 * break-catch-syscall.c (print_one_catch_syscall): xfree
15958 the last text.
15959
15960 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15961
15962 * top.c (print_gdb_version): Update Copyright year in version
15963 message.
15964
15965 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15966
15967 Update copyright year range in all GDB files.
15968
15969 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15970
15971 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15972
15973 For older changes see ChangeLog-2018.
15974 \f
15975 Local Variables:
15976 mode: change-log
15977 left-margin: 8
15978 fill-column: 74
15979 version-control: never
15980 coding: utf-8
15981 End:
15982
This page took 0.368518 seconds and 4 git commands to generate.