4b7e5066970431629ad1f8ff51dea380f3348d5c
[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): Improve debug output.
4
5 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6
7 * valops.c (find_oload_champ): Print part of debug messages
8 before the badness vector is std::move'd.
9
10 2019-11-28 Tom Tromey <tom@tromey.com>
11
12 * value.c (creal_internal_fn): Fix comment.
13
14 2019-11-28 Tom Tromey <tom@tromey.com>
15
16 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
17 flag_bound_evaluated>: Now unsigned.
18
19 2019-11-28 Tom Tromey <tom@tromey.com>
20
21 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
22 declare.
23
24 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
25
26 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
27 debug output.
28 * jit.c (jit_unregister_code): Add debug print to match
29 `jit_register_code`.
30
31 2019-11-27 Christian Biesinger <cbiesinger@google.com>
32
33 * NEWS: Mention the new multithreaded symbol loading.
34
35 2019-11-27 Christian Biesinger <cbiesinger@google.com>
36
37 * maint.c (n_worker_threads): Default to 0.
38 (worker_threads_disabled): New function.
39 * maint.h (worker_threads_disabled): New function.
40 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
41 here if worker_threads_disabled () is true.
42 (minimal_symbol_reader::install): Skip all threading if
43 worker_threads_disabled () is true.
44
45 2019-11-27 Christian Biesinger <cbiesinger@google.com>
46
47 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
48 hash code if possible.
49 (add_minsym_to_demangled_hash_table): Likewise.
50 (minimal_symbol_reader::install): Compute the hash codes for msymbol
51 on the background thread.
52 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
53 Add these fields.
54
55 2019-11-27 Christian Biesinger <cbiesinger@google.com>
56
57 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
58 of the mangled name on the background thread.
59 * symtab.c (symbol_set_names): Allow passing in the hash of the
60 linkage_name.
61 * symtab.h (symbol_set_names): Likewise.
62
63 2019-11-27 Kevin Buettner <kevinb@redhat.com>
64
65 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
66 physnames are computed for inherited DIEs.
67
68 2019-11-27 Tom Tromey <tromey@adacore.com>
69
70 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
71 backslashes.
72 * cp-support.c: Remove unnecessary backslashes.
73
74 2019-11-27 Christian Biesinger <cbiesinger@google.com>
75
76 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
77 with sym->set_linkage_name.
78 * coffread.c (coff_read_enum_type): Likewise.
79 * mdebugread.c (parse_symbol): Likewise.
80 * stabsread.c (patch_block_stabs): Likewise.
81 (define_symbol): Likewise.
82 (read_enum_type): Likewise.
83 (common_block_end): Likewise.
84 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
85 function.
86 (SYMBOL_SET_LINKAGE_NAME): Remove.
87 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
88 with sym->set_linkage_name.
89
90 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
93 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
94 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
95 * NEWS: Mention new MI command.
96
97 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
100 '-symbol-info-types', and '-symbol-info-variables'.
101 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
102 (mi_cmd_symbol_info_types): Declare.
103 (mi_cmd_symbol_info_variables): Declare.
104 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
105 (output_debug_symbol): New function.
106 (output_nondebug_symbol): New function.
107 (mi_symbol_info): New function.
108 (mi_info_functions_or_variables): New function.
109 (mi_cmd_symbol_info_functions): New function.
110 (mi_cmd_symbol_info_types): New function.
111 (mi_cmd_symbol_info_variables): New function.
112 * NEWS: Mention new commands.
113
114 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * symtab.c (symbol_to_info_string): New function, most content
117 moved from print_symbol_info, but updated to return a std::string.
118 (print_symbol_info): Update to use symbol_to_info_string and print
119 returned string.
120 * symtab.h (symbol_to_info_string): Declare new function.
121
122 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * python/python.c (gdbpy_rbreak): Convert to using
125 global_symbol_searcher.
126 * symtab.c (file_matches): Convert return type to bool, change
127 file list to std::vector, update header comment.
128 (search_symbols): Rename to...
129 (global_symbol_searcher::search): ...this and update now its
130 a member function of global_symbol_searcher. Take account of the
131 changes to file_matches.
132 (symtab_symbol_info): Convert to using global_symbol_searcher.
133 (rbreak_command): Likewise.
134 (search_module_symbols): Likewise.
135 * symtab.h (enum symbol_search): Update comment.
136 (search_symbols): Remove declaration.
137 (class global_symbol_searcher): New class.
138
139 2019-11-26 Tom Tromey <tromey@adacore.com>
140
141 * cp-support.c (_initialize_cp_support): Conditionally initialize
142 gdb_demangle_attempt_core_dump.
143
144 2019-11-26 Tom Tromey <tom@tromey.com>
145
146 * python/py-function.c (fnpy_init): Update.
147 * value.h (add_internal_function): Adjust declaration.
148 * value.c (function_destroyer): Remove.
149 (do_add_internal_function): Don't set destroyer or copy name.
150 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
151 Set name_allocated.
152 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
153 (cmdpy_init): Set name_allocated.
154 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
155 member.
156 (~cmd_list_element): Free "name" if needed.
157
158 2019-11-26 Tom Tromey <tom@tromey.com>
159
160 * value.h (add_internal_function): Add new overload. Move
161 documentation from value.h.
162 * value.c (do_add_internal_function): New function.
163 (add_internal_function): Use it. Add new overload.
164 (function_destroyer): Don't free doc.
165 * python/py-function.c (fnpy_init): Update.
166
167 2019-11-26 Tom Tromey <tom@tromey.com>
168
169 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
170 (cmdpy_init): Set "doc_allocated".
171
172 2019-11-26 Tom Tromey <tom@tromey.com>
173
174 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
175 name of worker thread.
176 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
177 pthread_setname_np.
178 * configure, config.in: Rebuild.
179
180 2019-11-26 Tom Tromey <tom@tromey.com>
181
182 * python/python.c (class gdbpy_gil): New.
183 (struct gdbpy_event): Add constructor, destructor, operator().
184 (gdbpy_post_event): Use run_on_main_thread.
185 (gdbpy_initialize_events): Remove.
186 (do_start_initialization): Update.
187
188 2019-11-26 Tom Tromey <tom@tromey.com>
189
190 * NEWS: Add entry.
191 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
192 commands. Call update_thread_pool_size.
193 (update_thread_pool_size, maintenance_set_worker_threads): New
194 functions.
195 (n_worker_threads): New global.
196
197 2019-11-26 Christian Biesinger <cbiesinger@google.com>
198 Tom Tromey <tom@tromey.com>
199
200 * minsyms.c (minimal_symbol_reader::install): Use
201 parallel_for_each.
202 * gdbsupport/parallel-for.h: New file.
203 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
204
205 2019-11-26 Christian Biesinger <cbiesinger@google.com>
206 Tom Tromey <tom@tromey.com>
207
208 * gdbsupport/thread-pool.h: New file.
209 * gdbsupport/thread-pool.c: New file.
210 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
211 (HFILES_NO_SRCDIR): Add thread-pool.h.
212
213 2019-11-26 Tom Tromey <tom@tromey.com>
214
215 * event-top.h (thread_local_segv_handler): Declare.
216 * event-top.c (thread_local_segv_handler): New global.
217 (install_handle_sigsegv, handle_sigsegv): New functions.
218 (async_init_signals): Install SIGSEGV handler.
219 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
220 thread-local.
221 (report_failed_demangle): New function.
222 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
223 handler-setting code, instead use segv_handler. Run warning code
224 on main thread.
225
226 2019-11-26 Tom Tromey <tom@tromey.com>
227
228 * run-on-main-thread.c: New file.
229 * run-on-main-thread.h: New file.
230 * unittests/main-thread-selftests.c: New file.
231 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
232 main-thread-selftests.c.
233 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
234 (COMMON_SFILES): Add run-on-main-thread.c.
235
236 2019-11-26 Tom Tromey <tom@tromey.com>
237
238 * main.c (setup_alternate_signal_stack): Remove.
239 (captured_main_1): Use gdb::alternate_signal_stack.
240 * gdbsupport/alt-stack.h: New file.
241
242 2019-11-26 Tom Tromey <tom@tromey.com>
243
244 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
245 Remove comment.
246 (save_original_signals_state, restore_original_signals_state): Use
247 gdb_sigmask.
248 * linux-nat.c (block_child_signals, restore_child_signals_mask)
249 (_initialize_linux_nat): Use gdb_sigmask.
250 * guile/guile.c (_initialize_guile): Use block_signals.
251 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
252 * gdbsupport/gdb-sigmask.h: New file.
253 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
254 * cp-support.c (gdb_demangle): Use gdb_sigmask.
255 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
256 pthread_sigmask.
257 * configure, config.in: Rebuild.
258 * gdbsupport/block-signals.h: New file.
259
260 2019-11-26 Tom Tromey <tom@tromey.com>
261
262 * acinclude.m4: Include ax_pthread.m4.
263 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
264 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
265 (CLIBS): Use PTHREAD_LIBS.
266 (aclocal_m4_deps): Add ax_pthread.m4.
267 * config.in, configure: Rebuild.
268 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
269
270 2019-11-26 Tom Tromey <tom@tromey.com>
271
272 * symtab.h (struct minimal_symbol) <name_set>: New member.
273 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
274 Don't call symbol_set_names.
275 (minimal_symbol_reader::install): Call symbol_set_names.
276
277 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
278
279 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
280 restore_active_ext_lang, as GIL is needed for (indirectly)
281 called PyOS_InterruptOccurred.
282
283 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
284
285 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
286 definition.
287
288 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
289
290 * remote-sim.c (simulator_command): Make static, remove
291 declaration.
292
293 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
294
295 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
296 static.
297 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
298 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
299 (main): Likewise.
300 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
301 (main): Likewise.
302 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
303 (main): Likewise.
304 * unittests/basic_string_view/element_access/char/1.cc (test01):
305 Likewise.
306 (main): Likewise.
307 * unittests/basic_string_view/element_access/char/empty.cc (main):
308 Likewise.
309 * unittests/basic_string_view/element_access/char/front_back.cc
310 (test01): Likewise.
311 (main): Likewise.
312 * unittests/basic_string_view/inserters/char/2.cc (test05):
313 Likewise.
314 (main): Likewise.
315 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
316 (test01): Likewise.
317 (main): Likewise.
318 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
319 (test01): Likewise.
320 (main): Likewise.
321 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
322 Likewise.
323 * unittests/basic_string_view/operations/compare/char/1.cc
324 (test01): Likewise.
325 (main): Likewise.
326 * unittests/basic_string_view/operations/compare/char/13650.cc
327 (test01): Likewise.
328 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
329 Likewise.
330 (main): Likewise.
331 * unittests/basic_string_view/operations/data/char/1.cc (test01):
332 Likewise.
333 (main): Likewise.
334 * unittests/basic_string_view/operations/find/char/1.cc (test01):
335 Likewise.
336 (main): Likewise.
337 * unittests/basic_string_view/operations/find/char/2.cc (test02):
338 Likewise.
339 (main): Likewise.
340 * unittests/basic_string_view/operations/find/char/3.cc (test03):
341 Likewise.
342 (main): Likewise.
343 * unittests/basic_string_view/operations/find/char/4.cc (main):
344 Likewise.
345 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
346 Likewise.
347 (main): Likewise.
348 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
349 Likewise.
350 (main): Likewise.
351 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
352 Likewise.
353 (main): Likewise.
354 * unittests/basic_string_view/operations/substr/char/1.cc
355 (test01): Likewise.
356 (main): Likewise.
357 * unittests/basic_string_view/operators/char/2.cc (main):
358 Likewise.
359 * unittests/optional/assignment/1.cc (test): Likewise.
360 * unittests/optional/assignment/2.cc (test): Likewise.
361 * unittests/optional/assignment/3.cc (test): Likewise.
362 * unittests/optional/assignment/4.cc (test): Likewise.
363 * unittests/optional/assignment/5.cc (test): Likewise.
364 * unittests/optional/assignment/6.cc (test): Likewise.
365 * unittests/optional/assignment/7.cc (test): Likewise.
366 * unittests/optional/cons/copy.cc (test): Likewise.
367 * unittests/optional/cons/default.cc (test): Likewise.
368 * unittests/optional/cons/move.cc (test): Likewise.
369 * unittests/optional/cons/value.cc (test): Likewise.
370 * unittests/optional/in_place.cc (test): Likewise.
371 * unittests/optional/observers/1.cc (test): Likewise.
372 * unittests/optional/observers/2.cc (test): Likewise.
373
374 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
375
376 * tui-win.h (tui_set_var_cmd): Remove.
377 * tui-win.c (tui_set_var_cmd): Make static.
378
379 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
380
381 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
382 rbreak_command_wrapper): Remove.
383 * symtab.c (rbreak_command_wrapper): Remove.
384
385 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
386
387 * inferior.h (info_terminal_command): Remove declaration.
388 * inflow.c (info_terminal_command): Make static.
389
390 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
391
392 * inferior.c (exit_inferior_silent): Remove.
393
394 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
395
396 * dictionary.c (dict_empty, mdict_empty): Remove.
397 * dictionary.c (mdict_empty): Remove.
398
399 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
400
401 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
402 (arc_insn_get_memory_offset): Likewise.
403 (arc_insn_dump): Likewise.
404 * cp-support.c (test_cp_symbol_name_matches): Likewise.
405 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
406 * dictionary.c (dict_iterator_next): Likewise.
407 (dict_iter_match_first): Likewise.
408 (dict_iter_match_next): Likewise.
409 * f-lang.c (evaluate_subexp_f): Likewise.
410 * hppa-tdep.c (hppa_read_pc): Likewise.
411 * i386-tdep.c (i386_floatformat_for_type): Likewise.
412 * parse.c (write_exp_elt_msym): Likewise.
413 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
414 * remote.c (remote_packet_size): Likewise.
415 (remote_notif_stop_parse): Likewise.
416 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
417 * s12z-tdep.c (s12z_disassemble_info): Likewise.
418 * source.c (prepare_path_for_appending): Likewise.
419 * sparc64-linux-tdep.c
420 (sparc64_linux_handle_segmentation_fault); Likewise.
421 * stack.c (frame_selection_by_function_completer): Likewise.
422
423 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
424
425 * completer.c (set_gdb_completion_word_break_characters):
426 Remove.
427
428 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
429
430 * dwarf-index-write.c: Include dwarf-index-write.h.
431 * mi/mi-interp.c: Include mi/mi-interp.h.
432
433 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
434
435 * aarch32-tdep.c: Include aarch32-tdep.h.
436 * aarch32-tdep.h: Forward-declare struct target_desc.
437
438 2019-11-26 Christian Biesinger <cbiesinger@google.com>
439
440 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
441 strerror.
442 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
443 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
444
445 2019-11-25 Tom de Vries <tdevries@suse.de>
446
447 * contrib/words.sh: Add -c option.
448
449 2019-11-25 Christian Biesinger <cbiesinger@google.com>
450
451 * solib.c (solib_find_1): Change int to bool.
452 (exec_file_find): Change int to bool.
453 (solib_find): Change int to bool.
454 (solib_read_symbols): Change int to bool.
455 (solib_used): Change int to bool.
456 (solib_add): Change int to bool.
457 (info_sharedlibrary_command): Change int to bool.
458 (solib_contains_address_p): Change int to bool.
459 (solib_keep_data_in_core): Change int to bool.
460 (in_solib_dynsym_resolve_code): Change int to bool.
461 (reload_shared_libraries_1): Change int to bool.
462 (gdb_sysroot_changed): Change int to bool.
463 * solib.h (solib_read_symbols): Change int to bool.
464 (solib_contains_address_p): Change int to bool.
465 (solib_keep_data_in_core): Change int to bool.
466 (in_solib_dynsym_resolve_code): Change int to bool.
467 (libpthread_name_p): Change int to bool.
468
469 2019-11-25 Luis Machado <luis.machado@linaro.org>
470
471 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
472 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
473 (remote_packet_max_chars): New static global.
474 (show_remote_packet_max_chars): New function.
475 (remote_target::putpkt_binary): Adjust to use new
476 remote_packet_max_chars option.
477 (remote_target::getpkt_or_notif_sane_1): Likewise.
478 (_initialize_remote): Register new remote-packet-max-chars option.
479
480 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
481
482 * m68k-linux-nat.c: Include gdbarch.h.
483
484 2019-11-24 Tom Tromey <tom@tromey.com>
485
486 * symfile.c (read_symbols): Update.
487 * psymtab.c (require_partial_symbols): Change type of "verbose" to
488 bool.
489 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
490 (psym_lookup_symbol, psym_find_last_source_symtab)
491 (psym_forget_cached_source_info, psym_print_stats)
492 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
493 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
494 (psym_map_matching_symbols, psym_expand_symtabs_matching)
495 (psym_find_compunit_symtab_by_address)
496 (maintenance_print_psymbols, maintenance_info_psymtabs)
497 (maintenance_check_psymtabs): Update.
498 * psymtab.h (require_partial_symbols): Change type of "verbose" to
499 bool.
500
501 2019-11-22 Tom Tromey <tom@tromey.com>
502
503 * observable.h: Update comments.
504
505 2019-11-22 Tom Tromey <tromey@adacore.com>
506
507 * ada-tasks.c (ada_task_is_alive): Make parameter const.
508 (print_ada_task_info): Don't try to fetch thread id if task is not
509 alive.
510
511 2019-11-22 Christian Biesinger <cbiesinger@google.com>
512
513 * ada-exp.y: Update.
514 * ada-lang.c (sort_choices): Update.
515 (ada_print_symbol_signature): Update.
516 (resolve_subexp): Update.
517 (ada_parse_renaming): Update.
518 (ada_read_renaming_var_value): Update.
519 (lesseq_defined_than): Update.
520 (remove_extra_symbols): Update.
521 (remove_irrelevant_renamings): Update.
522 (ada_add_block_symbols): Update.
523 (ada_collect_symbol_completion_matches): Update.
524 (ada_is_renaming_symbol): Update.
525 (aggregate_assign_from_choices): Update.
526 (ada_evaluate_subexp): Update.
527 (ada_has_this_exception_support): Update.
528 (ada_is_non_standard_exception_sym): Update.
529 (ada_add_exceptions_from_frame): Update.
530 (ada_add_global_exceptions): Update.
531 (ada_print_subexp): Update.
532 * ax-gdb.c (gen_var_ref): Update.
533 (gen_maybe_namespace_elt): Update.
534 (gen_expr_for_cast): Update.
535 (gen_expr): Update.
536 * block.h: Update.
537 * blockframe.c (find_pc_partial_function): Update.
538 * breakpoint.c (print_breakpoint_location): Update.
539 (update_static_tracepoint): Update.
540 * btrace.c (ftrace_print_function_name): Update.
541 (ftrace_function_switched): Update.
542 * buildsym.c (find_symbol_in_list): Update.
543 * c-exp.y: Update.
544 * c-typeprint.c (c_print_typedef): Update.
545 (c_type_print_template_args): Update.
546 * cli/cli-cmds.c (edit_command): Update.
547 (list_command): Update.
548 (print_sal_location): Update.
549 * coffread.c (patch_opaque_types): Update.
550 (process_coff_symbol): Update.
551 (coff_read_enum_type): Update.
552 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
553 (convert_one_symbol): Update.
554 (hash_symname): Update.
555 (eq_symname): Update.
556 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
557 * compile/compile-cplus-types.c (debug_print_scope): Update.
558 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
559 * compile/compile-object-load.c (get_out_value_type): Update.
560 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
561 (search_symbol_list): Update.
562 (cp_lookup_symbol_imports_or_template): Update.
563 * cp-support.c (overload_list_add_symbol): Update.
564 * ctfread.c (psymtab_to_symtab): Update.
565 * dbxread.c (cp_set_block_scope): Update.
566 * dictionary.c (iter_match_first_hashed): Update.
567 (iter_match_next_hashed): Update.
568 (insert_symbol_hashed): Update.
569 (iter_match_next_linear): Update.
570 * dictionary.h: Update.
571 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
572 (locexpr_describe_location_piece): Update.
573 (locexpr_describe_location_1): Update.
574 (locexpr_generate_c_location): Update.
575 (loclist_describe_location): Update.
576 (loclist_generate_c_location): Update.
577 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
578 (read_func_scope): Update.
579 (process_enumeration_scope): Update.
580 (new_symbol): Update.
581 (dwarf2_const_value): Update.
582 (dwarf2_symbol_mark_computed): Update.
583 * eval.c (evaluate_funcall): Update.
584 (evaluate_subexp_standard): Update.
585 * expprint.c (print_subexp_standard): Update.
586 (dump_subexp_body_standard): Update.
587 * f-valprint.c (info_common_command_for_block): Update.
588 * findvar.c (get_hosting_frame): Update.
589 (default_read_var_value): Update.
590 * go-lang.c (go_symbol_package_name): Update.
591 * guile/scm-block.c (bkscm_print_block_smob): Update.
592 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
593 (gdbscm_symbol_name): Update.
594 (gdbscm_symbol_linkage_name): Update.
595 (gdbscm_symbol_print_name): Update.
596 * infcall.c (get_function_name): Update.
597 * infcmd.c (jump_command): Update.
598 (finish_command): Update.
599 * infrun.c (insert_exception_resume_breakpoint): Update.
600 * linespec.c (canonicalize_linespec): Update.
601 (create_sals_line_offset): Update.
602 (convert_linespec_to_sals): Update.
603 (complete_label): Update.
604 (find_label_symbols_in_block): Update.
605 * m2-typeprint.c (m2_print_typedef): Update.
606 * mdebugread.c (mdebug_reg_to_regnum): Update.
607 (parse_symbol): Update.
608 (mylookup_symbol): Update.
609 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
610 (list_args_or_locals): Update.
611 * objc-lang.c (compare_selectors): Update.
612 (info_selectors_command): Update.
613 (compare_classes): Update.
614 (info_classes_command): Update.
615 (find_imps): Update.
616 * p-typeprint.c (pascal_print_typedef): Update.
617 * printcmd.c (build_address_symbolic): Update.
618 (info_address_command): Update.
619 (print_variable_and_value): Update.
620 * python/py-framefilter.c (extract_sym): Update.
621 (py_print_single_arg): Update.
622 * python/py-symbol.c (sympy_str): Update.
623 (sympy_get_name): Update.
624 (sympy_get_linkage_name): Update.
625 * python/python.c (gdbpy_rbreak): Update.
626 * record-btrace.c (btrace_get_bfun_name): Update.
627 (btrace_call_history): Update.
628 * rust-lang.c (rust_print_typedef): Update.
629 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
630 * stabsread.c (stab_reg_to_regnum): Update.
631 (define_symbol): Update.
632 (read_enum_type): Update.
633 (common_block_end): Update.
634 (cleanup_undefined_types_1): Update.
635 (scan_file_globals): Update.
636 * stack.c (print_frame_arg): Update.
637 (print_frame_args): Update.
638 (find_frame_funname): Update.
639 (info_frame_command_core): Update.
640 (iterate_over_block_locals): Update.
641 (print_block_frame_labels): Update.
642 (do_print_variable_and_value): Update.
643 (iterate_over_block_arg_vars): Update.
644 (return_command): Update.
645 * symmisc.c (dump_symtab_1): Update.
646 (print_symbol): Update.
647 * symtab.c (eq_symbol_entry): Update.
648 (symbol_cache_dump): Update.
649 (lookup_language_this): Update.
650 (find_pc_sect_line): Update.
651 (skip_prologue_sal): Update.
652 (symbol_search::compare_search_syms): Update.
653 (treg_matches_sym_type_name): Update.
654 (search_symbols): Update.
655 (print_symbol_info): Update.
656 (rbreak_command): Update.
657 (completion_list_add_symbol): Update.
658 (find_gnu_ifunc): Update.
659 (get_symbol_address): Update.
660 (search_module_symbols): Update.
661 (info_module_subcommand): Update.
662 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
663 (SYMBOL_LINKAGE_NAME): Remove.
664 (SYMBOL_DEMANGLED_NAME): Remove.
665 (SYMBOL_PRINT_NAME): Remove.
666 (SYMBOL_SEARCH_NAME): Remove.
667 * tracepoint.c (set_traceframe_context): Update.
668 (validate_actionline): Update.
669 (collection_list::collect_symbol): Update.
670 (encode_actions_1): Update.
671 (info_scope_command): Update.
672 (print_one_static_tracepoint_marker): Update.
673 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
674 * valops.c (address_of_variable): Update.
675 (find_overload_match): Update.
676 (find_oload_champ): Update.
677
678 2019-11-22 Christian Biesinger <cbiesinger@google.com>
679
680 * ada-lang.c (ada_lookup_simple_minsym): Update.
681 (ada_collect_symbol_completion_matches): Update.
682 * ada-tasks.c (read_atcb): Update.
683 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
684 (amd64_windows_skip_trampoline_code): Update.
685 * arm-tdep.c (skip_prologue_function): Update.
686 (arm_skip_stack_protector): Update.
687 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
688 (arm_wince_skip_main_prologue): Update.
689 * ax-gdb.c (gen_expr): Update.
690 * block.c (call_site_for_pc): Update.
691 * blockframe.c (find_pc_partial_function): Update.
692 * breakpoint.c (set_breakpoint_location_function): Update.
693 * btrace.c (ftrace_print_function_name): Update.
694 (ftrace_function_switched): Update.
695 * c-valprint.c (print_unpacked_pointer): Update.
696 * coffread.c (coff_symfile_read): Update.
697 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
698 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
699 * dwarf-index-write.c (write_psymbols): Update.
700 * dwarf2loc.c (call_site_to_target_addr): Update.
701 (func_verify_no_selftailcall): Update.
702 (tailcall_dump): Update.
703 (call_site_find_chain_1): Update.
704 (dwarf_expr_reg_to_entry_parameter): Update.
705 * elfread.c (elf_gnu_ifunc_record_cache): Update.
706 * eval.c (evaluate_funcall): Update.
707 (evaluate_subexp_standard): Update.
708 (evaluate_subexp_for_sizeof): Update.
709 * expprint.c (print_subexp_standard): Update.
710 (dump_subexp_body_standard): Update.
711 * frame.c (get_prev_frame_always_1): Update.
712 * frv-tdep.c (frv_skip_main_prologue): Update.
713 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
714 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
715 (gnuv3_get_typename_from_type_info): Update.
716 (gnuv3_skip_trampoline): Update.
717 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
718 * i386-tdep.c (i386_skip_main_prologue): Update.
719 (i386_pe_skip_trampoline_code): Update.
720 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
721 * infcall.c (get_function_name): Update.
722 * linespec.c (minsym_found): Update.
723 * linux-fork.c (info_checkpoints_command): Update.
724 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
725 (m32c_m16c_pointer_to_address): Update.
726 * maint.c (maintenance_translate_address): Update.
727 * minsyms.c (add_minsym_to_hash_table): Update.
728 (add_minsym_to_demangled_hash_table): Update.
729 (lookup_minimal_symbol_mangled): Update.
730 (lookup_minimal_symbol_demangled): Update.
731 (lookup_minimal_symbol_linkage): Update.
732 (lookup_minimal_symbol_text): Update.
733 (lookup_minimal_symbol_by_pc_name): Update.
734 (minimal_symbol_is_less_than): Update.
735 (compact_minimal_symbols): Update.
736 (build_minimal_symbol_hash_tables): Update.
737 (find_solib_trampoline_target): Update.
738 * mips-tdep.c (mips_stub_frame_sniffer): Update.
739 (mips_skip_pic_trampoline_code): Update.
740 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
741 * objc-lang.c (info_selectors_command): Update.
742 (info_classes_command): Update.
743 (find_methods): Update.
744 (find_imps): Update.
745 * p-valprint.c (pascal_val_print): Update.
746 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
747 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
748 * printcmd.c (build_address_symbolic): Update.
749 (info_symbol_command): Update.
750 * psymtab.c (psymbol_name_matches): Update.
751 (match_partial_symbol): Update.
752 (lookup_partial_symbol): Update.
753 (print_partial_symbols): Update.
754 (sort_pst_symbols): Update.
755 (maintenance_check_psymtabs): Update.
756 * python/py-framefilter.c (py_print_frame): Update.
757 * python/python.c (gdbpy_rbreak): Update.
758 * record-btrace.c (btrace_get_bfun_name): Update.
759 (btrace_call_history): Update.
760 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
761 (rs6000_skip_trampoline_code): Update.
762 * sol-thread.c (info_cb): Update.
763 * stabsread.c (scan_file_globals): Update.
764 * stack.c (find_frame_funname): Update.
765 (info_frame_command_core): Update.
766 * symmisc.c (dump_msymbols): Update.
767 * symtab.c (symbol_natural_name): Rename to..,
768 (general_symbol_info::natural_name): ...this.
769 (symbol_demangled_name): Rename to...
770 (general_symbol_info::demangled_name): ...this.
771 (symbol_search_name): Rename to...
772 (general_symbol_info::search_name): ...this.
773 (symbol_matches_search_name): Update.
774 (find_pc_sect_line): Update.
775 (skip_prologue_sal): Update.
776 (search_symbols): Update.
777 (print_msymbol_info): Update.
778 (rbreak_command): Update.
779 (completion_list_add_msymbol): Update.
780 (completion_list_objc_symbol): Update.
781 (get_msymbol_address): Update.
782 * symtab.h (struct general_symbol_info): Add member functions
783 natural_name (), linkage_name (), print_name (), demangled_name (),
784 and search_name ().
785 (SYMBOL_NATURAL_NAME): Update.
786 (symbol_natural_name): Move to a member function on general_symbol_info.
787 (SYMBOL_DEMANGLED_NAME): Update.
788 (symbol_demangled_name): Move to a member function on
789 general_symbol_info.
790 (SYMBOL_SEARCH_NAME): Update.
791 (symbol_search_name): Move to a member function on general_symbol_info.
792 (MSYMBOL_NATURAL_NAME): Remove.
793 (MSYMBOL_LINKAGE_NAME): Remove.
794 (MSYMBOL_PRINT_NAME): Remove.
795 (MSYMBOL_DEMANGLED_NAME): Remove.
796 (MSYMBOL_SEARCH_NAME): Remove.
797 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
798
799 2019-11-22 Christian Biesinger <cbiesinger@google.com>
800
801 * symtab.c (create_demangled_names_hash): Use per_bfd->
802 minimal_symbol_count for computing the initial size, if greater
803 than our default size.
804
805 2019-11-22 Tom de Vries <tdevries@suse.de>
806
807 * contrib/words.sh: Improve words extraction.
808
809 2019-11-22 Tom de Vries <tdevries@suse.de>
810
811 * contrib/words.sh: Combine sed invocations.
812
813 2019-11-21 Christian Biesinger <cbiesinger@google.com>
814
815 * Makefile.in: Update.
816 * demangle.c: Rename to...
817 * gdb-demangle.c: ..this.
818 (is_cplus_marker): Change return type to bool.
819 (_initialize_demangler): Rename to...
820 (_initialize_gdb_demangle): ...this.
821 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
822 * symtab.h (demangle): Remove declaration; instead include
823 gdb-demangle.h.
824
825 2019-11-21 Tom Tromey <tromey@adacore.com>
826
827 * gdbsupport/format.c (format_pieces): Parse %I64d.
828 * unittests/format_pieces-selftests.c (test_windows_formats): New
829 function.
830 (run_tests): Call it.
831
832 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
833
834 Byte reverse display of variables with DW_END_big, DW_END_little
835 (DW_AT_endianity) dwarf attributes if different than the native
836 byte order.
837 * ada-lang.c (ada_value_binop):
838 Use type_byte_order instead of gdbarch_byte_order.
839 * ada-valprint.c (printstr):
840 (ada_val_print_string):
841 * ada-lang.c (value_pointer):
842 (ada_value_binop):
843 Use type_byte_order instead of gdbarch_byte_order.
844 * c-lang.c (c_get_string):
845 Use type_byte_order instead of gdbarch_byte_order.
846 * c-valprint.c (c_val_print_array):
847 Use type_byte_order instead of gdbarch_byte_order.
848 * cp-valprint.c (cp_print_class_member):
849 Use type_byte_order instead of gdbarch_byte_order.
850 * dwarf2loc.c (rw_pieced_value):
851 Use type_byte_order instead of gdbarch_byte_order.
852 * dwarf2read.c (read_base_type): Handle DW_END_big,
853 DW_END_little
854 * f-lang.c (f_get_encoding):
855 Use type_byte_order instead of gdbarch_byte_order.
856 * findvar.c (default_read_var_value):
857 Use type_byte_order instead of gdbarch_byte_order.
858 * gdbtypes.c (check_types_equal):
859 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
860 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
861 and TYPE_ENDIANITY_LITTLE if set.
862 (type_byte_order): new function.
863 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
864 (struct main_type) <flag_endianity_not_default>:
865 New field.
866 (type_byte_order): New function.
867 * infcmd.c (default_print_one_register_info):
868 Use type_byte_order instead of gdbarch_byte_order.
869 * p-lang.c (pascal_printstr):
870 Use type_byte_order instead of gdbarch_byte_order.
871 * p-valprint.c (pascal_val_print):
872 Use type_byte_order instead of gdbarch_byte_order.
873 * printcmd.c (print_scalar_formatted):
874 Use type_byte_order instead of gdbarch_byte_order.
875 * solib-darwin.c (darwin_current_sos):
876 Use type_byte_order instead of gdbarch_byte_order.
877 * solib-svr4.c (solib_svr4_r_ldsomap):
878 Use type_byte_order instead of gdbarch_byte_order.
879 * stap-probe.c (stap_modify_semaphore):
880 Use type_byte_order instead of gdbarch_byte_order.
881 * target-float.c (target_float_same_format_p):
882 Use type_byte_order instead of gdbarch_byte_order.
883 * valarith.c (scalar_binop):
884 (value_bit_index):
885 Use type_byte_order instead of gdbarch_byte_order.
886 * valops.c (value_cast):
887 Use type_byte_order instead of gdbarch_byte_order.
888 * valprint.c (generic_emit_char):
889 (generic_printstr):
890 (val_print_string):
891 Use type_byte_order instead of gdbarch_byte_order.
892 * value.c (unpack_long):
893 (unpack_bits_as_long):
894 (unpack_value_bitfield):
895 (modify_field):
896 (pack_long):
897 (pack_unsigned_long):
898 Use type_byte_order instead of gdbarch_byte_order.
899 * findvar.c (unsigned_pointer_to_address):
900 (signed_pointer_to_address):
901 (unsigned_address_to_pointer):
902 (address_to_signed_pointer):
903 (default_read_var_value):
904 (default_value_from_register):
905 Use type_byte_order instead of gdbarch_byte_order.
906 * gnu-v3-abi.c (gnuv3_make_method_ptr):
907 Use type_byte_order instead of gdbarch_byte_order.
908 * riscv-tdep.c (riscv_print_one_register_info):
909 Use type_byte_order instead of gdbarch_byte_order.
910
911 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
912
913 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
914 (current_ui_gdb_stdin_ptr): Likewise.
915 (current_ui_gdb_stderr_ptr): Likewise.
916 (current_ui_gdb_stdlog_ptr): Likewise.
917 (current_ui_current_uiout_ptr): Likewise.
918 (gen_ret_current_ui_field_ptr): Remove.
919
920 2019-11-21 Tom de Vries <tdevries@suse.de>
921
922 PR gdb/24956
923 * cli/cli-script.c (execute_control_command): Only switch to
924 INTERP_CONSOLE's ui_out when INTERP_MI is active.
925
926 2019-11-19 Tom Tromey <tom@tromey.com>
927
928 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
929 Now static. Change type of "name".
930 (tui_set_win_height_command): Don't copy "arg".
931 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
932 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
933
934 2019-11-19 Ali Tamur <tamur@google.com>
935
936 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
937 "if (attr != nullptr)".
938 (dwarf2_find_base_address): Likewise.
939 (dwarf2_build_include_psymtabs): Likewise.
940 (read_cutu_die_from_dwo): Likewise.
941 (read_func_scope): Likewise.
942 (read_call_site_scope): Likewise.
943 (dwarf2_get_pc_bounds): Likewise.
944 (dwarf2_record_block_ranges): Likewise.
945 (dwarf2_add_field): Likewise.
946 (dwarf2_add_member_fn): Likewise.
947 (read_structure_type): Likewise.
948 (read_enumeration_type): Likewise.
949 (read_array_type): Likewise.
950 (read_array_order): Likewise.
951 (read_set_type): Likewise.
952 (read_common_block): Likewise.
953 (read_tag_reference_type): Likewise.
954 (read_tag_string_type): Likewise.
955 (read_subroutine_type): Likewise.
956 (read_base_type): Likewise.
957 (read_subrange_type): Likewise.
958 (new_symbol): Likewise.
959 (prepare_one_comp_unit): Likewise.
960
961 2019-11-19 Tom Tromey <tromey@adacore.com>
962
963 * windows-nat.c (windows_nat_target::attach): Include GetLastError
964 result in error when DebugActiveProcess fails.
965
966 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
967 Pedro Alves <palves@redhat.com>
968
969 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
970 * target.c (target_stack::push): Call 'unpush' if there's a
971 target on top of the stack.
972
973 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
974
975 * python/py-block.c (blpy_dealloc): Call tp_free.
976 (blpy_block_syms_dealloc): Likewise.
977 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
978 * python/py-inferior.c (infpy_dealloc): Likewise.
979 * python/py-lazy-string.c (stpy_dealloc): Likewise.
980 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
981 * python/py-symbol.c (sympy_dealloc): Likewise.
982 * python/py-symtab.c (stpy_dealloc): Likewise.
983 * python/py-type.c (typy_iterator_dealloc): Likewise.
984
985 2019-11-18 Christian Biesinger <cbiesinger@google.com>
986
987 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
988 constructor instead of using a class initializer.
989
990 2019-11-15 Christian Biesinger <cbiesinger@google.com>
991
992 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
993 * configure: Regenerate.
994 * configure.ac: Don't source common.host.
995 * gdbsupport/common.host: Remove.
996 * gdbsupport/mingw-strerror.c: Remove.
997 * gdbsupport/posix-strerror.c: Rename to...
998 * gdbsupport/safe-strerror.c: ...this.
999
1000 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1001
1002 * maint.c (scoped_command_stats::print_time): Use localtime_r
1003 instead of localtime (provided through gnulib if necessary).
1004 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1005 of ctime.
1006
1007 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1008
1009 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1010 avoid compile errors.
1011
1012 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1013
1014 * config.in: Regenerate.
1015 * configure: Regenerate.
1016 * gdbsupport/common.m4: No longer check for strerror_r.
1017 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1018 POSIX version of strerror_r, now that gnulib provides it if
1019 necessary.
1020
1021 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1022
1023 * README (`configure' options): Update.
1024
1025 2019-11-14 Tom Tromey <tromey@adacore.com>
1026
1027 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1028 expected type for the RHS if the LHS is a convenience variable.
1029
1030 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1033 Provide explicit default and copy constructor.
1034
1035 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1036
1037 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1038 only call Py_INCREF (newbp) in the bppy_pending_object case.
1039
1040 2019-11-13 Tom Tromey <tromey@adacore.com>
1041
1042 PR build/25182:
1043 * psympriv.h (partial_symbol): Remove static assert.
1044 * symtab.h (general_symbol_info, symbol): Remove static assert.
1045
1046 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * gdbsupport/format.c (format_pieces::format_pieces): Support
1049 printf 'z' size modifier.
1050 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1051 * printcmd.c (ui_printf): Handle size_t_arg.
1052 * ui-out.c (ui_out::vmessage): Likewise.
1053 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1054 function.
1055 (run_tests): Call test_format_int_sizes.
1056
1057 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1058
1059 * ada-exp.y (write_ambiguous_var): Update.
1060 * buildsym.c (add_symbol_to_list): Update.
1061 * dwarf2read.c (read_variable): Update.
1062 (new_symbol): Update.
1063 * jit.c (finalize_symtab): Update.
1064 * language.c (language_alloc_type_symbol): Update.
1065 * symtab.c (fixup_symbol_section): Update.
1066 (initialize_objfile_symbol_1): Move code to...
1067 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1068 (allocate_symbol): Update.
1069 (allocate_template_symbol): Update.
1070 (get_symbol_address): Update.
1071 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1072 of having as a field, and add a constructor.
1073 (SYMBOL_VALUE): Update.
1074 (SYMBOL_VALUE_ADDRESS): Update.
1075 (SET_SYMBOL_VALUE_ADDRESS): Update.
1076 (SYMBOL_VALUE_BYTES): Update.
1077 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1078 (SYMBOL_BLOCK_VALUE): Update.
1079 (SYMBOL_VALUE_CHAIN): Update.
1080 (SYMBOL_LANGUAGE): Update.
1081 (SYMBOL_SECTION): Update.
1082 (SYMBOL_OBJ_SECTION): Update.
1083 (SYMBOL_SET_LANGUAGE): Update.
1084 (SYMBOL_SET_LINKAGE_NAME): Update.
1085 (SYMBOL_SET_NAMES): Update.
1086 (SYMBOL_NATURAL_NAME): Update.
1087 (SYMBOL_LINKAGE_NAME): Update.
1088 (SYMBOL_DEMANGLED_NAME): Update.
1089 (SYMBOL_SEARCH_NAME): Update.
1090 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1091 (struct symbol): Update.
1092 (struct template_symbol): Update.
1093 (struct rust_vtable_symbol): Update.
1094 * xcoffread.c (SYMBOL_DUP): Update.
1095
1096 2019-11-12 Tom Tromey <tom@tromey.com>
1097
1098 * tui/tui-layout.c (show_layout): Set current_layout.
1099 (show_source_disasm_command, show_data)
1100 (show_source_or_disasm_and_command): Don't set current_layout.
1101
1102 2019-11-12 Tom Tromey <tom@tromey.com>
1103
1104 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1105
1106 2019-11-12 Tom Tromey <tom@tromey.com>
1107
1108 * tui/tui-win.c (resize_message): New global.
1109 (show_tui_resize_message): New function.
1110 (tui_async_resize_screen): Print message if requested.
1111 (_initialize_tui_win): Add tui-resize-message setting.
1112 * NEWS: Add entry for new commands.
1113
1114 2019-11-11 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1117 functions.
1118
1119 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1120
1121 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1122
1123 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1126 function.
1127 * python/python-internal.h (gdbpy_lookup_static_symbols):
1128 Declare new function.
1129 * python/python.c (python_GdbMethods): Add
1130 gdb.lookup_static_symbols method.
1131 * NEWS: Mention gdb.lookup_static_symbols.
1132
1133 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1136 static block of current object file first. Also fix typo in
1137 header comment.
1138
1139 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * stack.c (set_last_displayed_sal): Delete.
1142 (last_displayed_sal_valid): Delete.
1143 (last_displayed_pspace): Delete.
1144 (last_displayed_addr): Delete.
1145 (last_displayed_symtab): Delete.
1146 (last_displayed_line): Delete.
1147 (class last_displayed_symtab_info_type): New.
1148 (last_displayed_symtab_info): New static global variable.
1149 (print_frame_info): Call methods on last_displayed_symtab_info.
1150 (clear_last_displayed_sal): Update header comment, and make use of
1151 last_displayed_symtab_info.
1152 (last_displayed_sal_is_valid): Likewise.
1153 (get_last_displayed_pspace): Likewise.
1154 (get_last_displayed_addr): Likewise.
1155 (get_last_displayed_symtab): Likewise.
1156 (get_last_displayed_line): Likewise.
1157 (get_last_displayed_sal): Likewise.
1158 * stack.h (clear_last_displayed_sal): Update header comment.
1159 (last_displayed_sal_is_valid): Likewise.
1160 (get_last_displayed_pspace): Likewise.
1161 (get_last_displayed_addr): Likewise.
1162 (get_last_displayed_symtab): Likewise.
1163 (get_last_displayed_line): Likewise.
1164 (get_last_displayed_sal): Likewise.
1165
1166 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * stack.c (frame_show_address): Convert return type to bool.
1169 * stack.h (frame_show_address): Likewise, and update header
1170 comment.
1171
1172 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1175 * unittests/vec-utils-selftests.c: New file.
1176 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1177
1178 2019-11-10 Tom Tromey <tom@tromey.com>
1179
1180 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1181 (tui_highlight_win): Likewise.
1182 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1183 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1184 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1185 Don't set can_highlight.
1186
1187 2019-11-10 Tom Tromey <tom@tromey.com>
1188
1189 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1190 Remove unused declaration.
1191
1192 2019-11-08 Tom Tromey <tromey@adacore.com>
1193
1194 * top.c (read_command_file): Update.
1195 (command_line_input): Make return type const.
1196 * python/py-gdb-readline.c: Update.
1197 * linespec.c (decode_line_2): Update.
1198 * defs.h (command_line_input): Make return type const.
1199 * cli/cli-script.c (read_next_line): Make return type const.
1200 * ada-lang.c (get_selections): Update.
1201
1202 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1203
1204 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1205 * mi/mi-main.c (output_cores): Likewise.
1206 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1207 (linux_xfer_osdata_modules): Likewise.
1208 * remote.c (register_remote_support_xml): Likewise.
1209 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1210 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1211
1212 2019-11-06 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-interp.c: Don't include readline.h.
1215 * tui/tui-hooks.c: Don't include readline.h.
1216 * symmisc.c: Include tilde.h, not readline.h.
1217 * symfile.c: Include tilde.h, not readline.h.
1218 * source.c: Include tilde.h, not readline.h.
1219 * solib.c: Include tilde.h, not readline.h.
1220 * psymtab.c: Include tilde.h, not readline.h.
1221 * exec.c: Include tilde.h, not readline.h.
1222 * corelow.c: Include tilde.h, not readline.h.
1223 * cli/cli-dump.c: Include tilde.h, not readline.h.
1224 * cli/cli-cmds.c: Don't include readline.h.
1225
1226 2019-11-05 Tom Tromey <tom@tromey.com>
1227
1228 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1229 (tui_disassemble): Set addr_size.
1230 (tui_disasm_window::set_contents): Use addr_size.
1231
1232 2019-11-05 Tom Tromey <tom@tromey.com>
1233
1234 * rust-lang.c (rust_language_defn): Update.
1235 * python/py-value.c (valpy_string): Call c_get_string.
1236 * p-lang.c (pascal_language_defn): Update.
1237 * opencl-lang.c (opencl_language_defn): Update.
1238 * objc-lang.c (objc_language_defn): Update.
1239 * m2-lang.c (m2_language_defn): Update.
1240 * language.c (unknown_language_defn, auto_language_defn): Update.
1241 (default_get_string): Remove.
1242 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1243 * go-lang.c (go_language_defn): Update.
1244 * f-lang.c (f_language_defn): Update.
1245 * d-lang.c (d_language_defn): Update.
1246 * c-lang.c (c_language_defn, cplus_language_defn)
1247 (asm_language_defn, minimal_language_defn): Update.
1248 * ada-lang.c (ada_language_defn): Update.
1249 * language.h (struct language_defn) <la_get_string>: Remove.
1250 (LA_GET_STRING): Remove.
1251 (default_get_string): Don't declare.
1252
1253 2019-11-05 Tom Tromey <tom@tromey.com>
1254
1255 * tui/tui-source.h (struct tui_source_window): Inline
1256 constructor. Remove destructor.
1257 <style_changed, m_observable>: Move to superclass.
1258 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1259 (struct tui_source_window_base): Move private members to end.
1260 <style_changed, m_observable>: Move from tui_source_window.
1261 * tui/tui-winsource.c (tui_copy_source_line): Move from
1262 tui-source.c. Rename from copy_source_line. Add special handling
1263 for negative line number.
1264 (tui_source_window_base::style_changed): Move from
1265 tui_source_window.
1266 (tui_source_window_base): Register observer.
1267 (~tui_source_window_base): New.
1268 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1269 rename.
1270 (tui_source_window::set_contents): Use tui_copy_source_line.
1271 (tui_source_window::tui_source_window): Move to tui-source.h.
1272 (tui_source_window::~tui_source_window): Remove.
1273 (tui_source_window::style_changed): Move to superclass.
1274 * tui/tui-disasm.c (tui_disassemble): Create string file with
1275 styling, when possible. Add "addr_size" parameter.
1276 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1277 Don't compute maximum size.
1278 (len_without_escapes): New function
1279
1280 2019-11-05 Tom Tromey <tom@tromey.com>
1281
1282 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1283 std::string.
1284 * tui/tui-winsource.c (tui_show_source_line): Update.
1285 * tui/tui-source.c (tui_source_window::set_contents): Update.
1286 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1287
1288 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1289
1290 * symtab.h (gdb_static_assert): Put && operator at the beginning
1291 of the line instead of the end.
1292
1293 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1294
1295 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1296 and sizeof (symbol).
1297 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1298
1299 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1300
1301 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1302 * configure.host: Mark *-*-solaris2.10* obsolete.
1303 * configure.tgt: Mark Solaris < 11 obsolete.
1304 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1305 Update target triplet.
1306
1307 2019-11-01 Tom Tromey <tromey@adacore.com>
1308
1309 * utils.c (print_sys_errmsg): Simplify.
1310
1311 2019-11-01 Tom Tromey <tromey@adacore.com>
1312
1313 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1314
1315 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1316
1317 * configure: Regenerate.
1318 * configure.ac: Remove check for strerror_r.
1319 * gdbsupport/common.m4: Check for strerror_r.
1320
1321 2019-11-01 Luis Machado <luis.machado@linaro.org>
1322
1323 PR gdb/25124
1324
1325 * arm-tdep.c (arm_per_objfile): Rename to ...
1326 (arm_per_bfd): ... this.
1327 (arm_objfile_data_key): Rename to ...
1328 (arm_bfd_data_key): ... this.
1329 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1330 data.
1331 (arm_record_special_symbol): Likewise.
1332
1333 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1336 end.
1337 * c-typeprint.c (c_print_typedef): Likewise.
1338 * f-typeprint.c (f_print_typedef): Likewise.
1339 * m2-typeprint.c (m2_print_typedef): Likewise.
1340 * p-typeprint.c (pascal_print_typedef): Likewise.
1341 * rust-lang.c (rust_print_typedef): Likewise.
1342 * symtab.c (print_symbol_info): Print a newline after calling
1343 typedef_print.
1344
1345 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * symtab.c (info_module_cmdlist): New variable.
1348 (info_module_command): New function.
1349 (search_module_symbols): New function.
1350 (info_module_subcommand): New function.
1351 (struct info_modules_var_func_options): New struct.
1352 (info_modules_var_func_options_defs): New variable.
1353 (make_info_modules_var_func_options_def_group): New function.
1354 (info_module_functions_command): New function.
1355 (info_module_variables_command): New function.
1356 (info_module_var_func_command_completer): New function.
1357 (_initialize_symtab): Register new 'info module functions' and
1358 'info module variables' commands.
1359 * symtab.h (typedef symbol_search_in_module): New typedef.
1360 (search_module_symbols): Declare new function.
1361 * NEWS: Mention new commands.
1362
1363 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1364
1365 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1366 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1367 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1368 MODULES_DOMAIN.
1369 (scan_partial_symbols): Only create partial module symbols for non
1370 declarations.
1371 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1372 and MODULES_DOMAIN.
1373 * symtab.c (search_domain_name): Likewise.
1374 (search_symbols): Likewise.
1375 (print_symbol_info): Likewise.
1376 (symtab_symbol_info): Likewise.
1377 (info_modules_command): New function.
1378 (_initialize_symtab): Register 'info modules' command.
1379 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1380 * NEWS: Mention new 'info modules' command.
1381
1382 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1383
1384 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1385 and $_gdb_maint_setting_str.
1386
1387 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1388
1389 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1390 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1391 (str_value_from_setting, gdb_setting_str_internal_fn)
1392 (gdb_maint_setting_str_internal_fn): New functions.
1393 (_initialize_cli_cmds): Define the new convenience functions.
1394 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1395 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1396
1397 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1398
1399 * agent.c (set_can_use_agent): When the setting is turned on,
1400 look up agent symbols if we don't have them yet.
1401 (agent_new_objfile): Don't look up agent symbols when the agent
1402 setting is off.
1403
1404 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1405
1406 * config.in: Regenerate.
1407
1408 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1409
1410 * configure: Regenerate.
1411 * configure.ac: Check for strerror_r.
1412 * gdbsupport/common-utils.h (safe_strerror): Change return value
1413 to const char * and document that this function is now threadsafe.
1414 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1415 thread_local and call strerror_r, if available.
1416 * utils.c (perror_string): Update.
1417 (print_sys_errmsg): Update.
1418
1419 2019-10-31 Luis Machado <luis.machado@linaro.org>
1420
1421 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1422 objfile_key.
1423 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1424 objfile to fetch per-bfd data.
1425 (arm_find_exidx_entry): Likewise.
1426
1427 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1428
1429 * gdbsupport/agent.c (debug_agent): Change type to bool.
1430 (use_agent): Likewise.
1431 (all_agent_symbols_look_up): Likewise.
1432 (agent_loaded_p): Change return value to bool.
1433 (agent_look_up_symbols): Update.
1434 (agent_capability_check): Change return value to bool.
1435 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1436 (debug_agent): Change type to bool.
1437 (use_agent): Likewise.
1438 (agent_capability_check): Change return value to bool.
1439
1440 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1441
1442 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1443 (build_minimal_symbol_hash_tables): Code to clear the table moved
1444 to clear_minimal_symbol_hash_tables.
1445 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1446 when needed.
1447
1448 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * infcmd.c: Remove includes.
1451 * infrun.c: Remove includes.
1452
1453 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1456 (grow_vect): Remove declaration.
1457 (ada_type_of_array): Remove declaration.
1458 (ada_update_initial_language): Remove declaration.
1459 (ada_fold_name): Remove declaration.
1460 (ada_fill_in_ada_prototype): Remove declaration.
1461 (user_select_syms): Remove declaration.
1462 (get_selections): Remove declaration.
1463 (ada_tag_type): Remove declaration.
1464 (ada_value_tag): Remove declaration.
1465 (ada_is_others_clause): Remove declaration.
1466 (ada_in_variant): Remove declaration.
1467 (ada_value_struct_elt): Remove declaration.
1468 (ada_attribute_name): Remove declaration.
1469 (ada_system_address_type): Remove declaration.
1470 * ada-lang.c (ada_watch_location_expression): Make static.
1471 (GROW_VECT): Move here from ada-lang.h.
1472 (grow_vect): Make static.
1473 (ada_update_initial_language): Make static.
1474 (ada_fold_name): Make static.
1475 (ada_type_of_array): Make static.
1476 (encoded_ordered_before): Move up.
1477 (sort_choices): Move up.
1478 (print_signatures): Move up.
1479 (ada_print_symbol_signature): Move up.
1480 (get_selections): Move up and make static.
1481 (user_select_syms): Move up and make static.
1482 (ada_value_struct_elt): Move up and make static.
1483 (ada_tag_type): Make static.
1484 (ada_value_tag): Make static.
1485 (ada_is_others_clause): Make static.
1486 (ada_in_variant): Make static.
1487 (ada_attribute_name): Make static.
1488
1489 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * ada-lang.c: Remove includes.
1492 * ada-typeprint.c: Remove includes.
1493 * ada-valprint.c: Remove includes.
1494
1495 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * addrmap.c: Add static assertions of type size, moved from
1498 _initialize_addrmap.
1499 (_initialize_addrmap): Remove.
1500
1501 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1502
1503 * coffread.c (record_minimal_symbol): Update.
1504 (process_coff_symbol): Update.
1505 * dbxread.c (read_dbx_symtab): Update.
1506 * dwarf2read.c (add_partial_symbol): Update.
1507 (fixup_go_packaging): Update.
1508 (load_partial_dies): Update.
1509 (new_symbol): Update.
1510 * elfread.c (record_minimal_symbol): Change signature to use
1511 gdb::string_view instead of name+len.
1512 (elf_symtab_read): Update.
1513 (elf_rel_plt_read): Update.
1514 * mdebugread.c (parse_partial_symbols): Update.
1515 (handle_psymbol_enumerators): Update.
1516 (new_symbol): Update.
1517 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1518 to use gdb::string_view instead of name+len.
1519 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1520 * psympriv.h (add_psymbol_to_list): Likewise.
1521 * psymtab.c (add_psymbol_to_bcache): Likewise.
1522 (add_psymbol_to_list): Likewise.
1523 * stabsread.c (define_symbol): Update.
1524 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1525 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1526 (symbol_set_names): Likewise.
1527 * xcoffread.c (scan_xcoff_symtab): Update.
1528
1529 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1530
1531 * symtab.h (symbol_set_names): Document that copy_name must be
1532 set to true for non-nullterminated strings.
1533 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1534 linkage_name if the entry was not found and we need to demangle.
1535
1536 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1537
1538 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1539 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1540 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1541 * gdbsupport/gdb_binary_search.h: New file.
1542
1543 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1544
1545 * NEWS: Mention new --with-system-gdbinit-dir option.
1546 * config.in: Regenerate.
1547 * configure: Regenerate.
1548 * configure.ac: Add new option --with-system-gdbinit-dir.
1549 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1550 for a ".gdb" suffix.
1551 * main.c (get_init_files): Change system_gdbinit argument to
1552 a vector and return the files in SYSTEM_GDBINIT_DIR in
1553 addition to SYSTEM_GDBINIT.
1554 (captured_main_1): Update.
1555 (print_gdb_help): Update.
1556 * top.c (print_gdb_configuration): Also print the value of
1557 SYSTEM_GDBINIT_DIR.
1558
1559 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1560
1561 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1562 that takes gdb::string_view arguments.
1563
1564 2019-10-26 Tom de Vries <tdevries@suse.de>
1565
1566 * aarch64-linux-tdep.c: Fix typos in comments.
1567 * aarch64-tdep.c: Same.
1568 * ada-lang.c: Same.
1569 * amd64-nat.c: Same.
1570 * arc-tdep.c: Same.
1571 * arch/aarch64-insn.c: Same.
1572 * block.c: Same.
1573 * breakpoint.h: Same.
1574 * btrace.h: Same.
1575 * c-varobj.c: Same.
1576 * cli/cli-decode.c: Same.
1577 * cli/cli-script.c: Same.
1578 * cli/cli-utils.h: Same.
1579 * coff-pe-read.c: Same.
1580 * coffread.c: Same.
1581 * compile/compile-cplus-symbols.c: Same.
1582 * compile/compile-object-run.c: Same.
1583 * completer.c: Same.
1584 * corelow.c: Same.
1585 * cp-support.c: Same.
1586 * demangle.c: Same.
1587 * dwarf-index-write.c: Same.
1588 * dwarf2-frame.c: Same.
1589 * dwarf2-frame.h: Same.
1590 * eval.c: Same.
1591 * frame-base.h: Same.
1592 * frame.h: Same.
1593 * gdbcmd.h: Same.
1594 * gdbtypes.h: Same.
1595 * gnu-nat.c: Same.
1596 * guile/scm-objfile.c: Same.
1597 * i386-tdep.c: Same.
1598 * i386-tdep.h: Same.
1599 * infcall.c: Same.
1600 * infcall.h: Same.
1601 * linux-nat.c: Same.
1602 * m68k-tdep.c: Same.
1603 * macroexp.c: Same.
1604 * memattr.c: Same.
1605 * mi/mi-cmd-disas.c: Same.
1606 * mi/mi-getopt.h: Same.
1607 * mi/mi-main.c: Same.
1608 * minsyms.c: Same.
1609 * nat/aarch64-sve-linux-sigcontext.h: Same.
1610 * objfiles.h: Same.
1611 * ppc-linux-nat.c: Same.
1612 * ppc-linux-tdep.c: Same.
1613 * ppc-tdep.h: Same.
1614 * progspace.h: Same.
1615 * prologue-value.h: Same.
1616 * python/py-evtregistry.c: Same.
1617 * python/py-instruction.h: Same.
1618 * record-btrace.c: Same.
1619 * record-full.c: Same.
1620 * remote.c: Same.
1621 * rs6000-tdep.c: Same.
1622 * ser-tcp.c: Same.
1623 * sol-thread.c: Same.
1624 * sparc-sol2-tdep.c: Same.
1625 * sparc64-tdep.c: Same.
1626 * stabsread.c: Same.
1627 * symfile.c: Same.
1628 * symtab.h: Same.
1629 * target.c: Same.
1630 * tracepoint.c: Same.
1631 * tui/tui-data.h: Same.
1632 * tui/tui-io.c: Same.
1633 * tui/tui-win.c: Same.
1634 * tui/tui.c: Same.
1635 * unittests/rsp-low-selftests.c: Same.
1636 * user-regs.h: Same.
1637 * utils.c: Same.
1638 * utils.h: Same.
1639 * valarith.c: Same.
1640 * valops.c: Same.
1641 * valprint.c: Same.
1642 * valprint.h: Same.
1643 * value.c: Same.
1644 * value.h: Same.
1645 * varobj.c: Same.
1646 * x86-nat.h: Same.
1647 * xtensa-tdep.c: Same.
1648
1649 2019-10-25 Ali Tamur <tamur@google.com>
1650
1651 * charset.c (find_charset_names): Reflect API change.
1652
1653 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1654
1655 * symtab.c (struct demangled_name_entry): Change demangled name
1656 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1657 part of the struct anymore.
1658 (symbol_set_names): No longer obstack allocate + copy the demangled
1659 name, just store the allocated name from bfd.
1660
1661 2019-10-25 Tom Tromey <tromey@adacore.com>
1662
1663 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1664 (bsearch_cie_cmp, add_cie): Remove.
1665 (find_cie): Reimplement.
1666 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1667 (dwarf2_build_frame_info): Update.
1668
1669 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 PR gdb/25126
1672 * symfile.c (reread_symbols): Call forget_cached_source_info to
1673 clear the stale source cache.
1674
1675 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1676
1677 * configure: Regenerate.
1678 * configure.ac: Remove code that sets python_has_threads.
1679
1680 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1681
1682 * config.in: Regenerate.
1683 * configure: Regenerate.
1684 * configure.ac: Remove the code that uses sed to get the python
1685 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1686
1687 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1690 error paths.
1691
1692 2019-10-23 Tom Tromey <tom@tromey.com>
1693
1694 * arc-tdep.c: Remove ".." from include.
1695 * frv-tdep.c: Remove ".." from include.
1696 * lm32-tdep.c: Remove ".." from include.
1697 * microblaze-tdep.c: Remove ".." from include.
1698 * or1k-tdep.h: Remove ".." from include.
1699 * s12z-tdep.c: Remove ".." from include.
1700 * Makefile.in (OPCODES_CFLAGS): Add comment.
1701 (TOP_CFLAGS): New variable.
1702 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1703
1704 2019-10-23 Tom Tromey <tom@tromey.com>
1705
1706 * Makefile.in (READLINE_DIR): Update.
1707
1708 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1709
1710 * infcall.c (call_function_by_hand_dummy): Fix the function
1711 comment. And extract out a code section into...
1712 (reserve_stack_space): ...this new function.
1713
1714 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1715
1716 * infcall.c (value_arg_coerce): Remove an unused parameter.
1717 (call_function_by_hand_dummy): Update the call to
1718 'value_arg_coerce'.
1719
1720 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1721
1722 * infcall.c (call_function_by_hand_dummy): Refactor.
1723
1724 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725
1726 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1727
1728 2019-10-23 Tom Tromey <tom@tromey.com>
1729
1730 * configure: Rebuild.
1731 * configure.ac: Don't check for sigprocmask.
1732 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1733
1734 2019-10-23 Tom Tromey <tom@tromey.com>
1735
1736 * configure: Rebuild.
1737 * acinclude.m4: Use m4_include, not sinclude.
1738
1739 2019-10-23 Tom de Vries <tdevries@suse.de>
1740
1741 PR breakpoints/24687
1742 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1743
1744 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1745
1746 * symtab.c (struct demangled_name_entry) <language>: Change from
1747 bitfield to regular variable.
1748
1749 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1750
1751 * symtab.c (struct demangled_name_entry): Add a constructor.
1752 (free_demangled_name_entry): New function to call the destructor
1753 for demangled_name_entry.
1754 (create_demangled_names_hash): Pass free_demangled_name_entry to
1755 htab_create_alloc.
1756 (symbol_set_names): Call placement new for demangled_name_entry.
1757 * utils.c: No longer include xxhash.h here, now that fast_hash
1758 is inlined in the header.
1759 * utils.h: Instead, include it here.
1760
1761 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1762
1763 * Makefile.in: Link with libxxhash.
1764 * config.in: Regenerate.
1765 * configure: Regenerate.
1766 * configure.ac: Search for libxxhash.
1767 * utils.c (fast_hash): Use xxhash if present.
1768
1769 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1770
1771 * utils.h (fast_hash): New function.
1772 * symtab.c (hash_demangled_name_entry): Call new function
1773 fast_hash.
1774
1775 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1776
1777 * symtab.c (struct demangled_name_entry): Change type of mangled
1778 to gdb::string_view. Also adds a constructor that takes the
1779 mangled name.
1780 (hash_demangled_name_entry): Update.
1781 (eq_demangled_name_entry): Update.
1782 (free_demangled_name_entry): New function to call the destructor
1783 now that this is not a POD anymore.
1784 (create_demangled_names_hash): Pass free_demangled_name_entry to
1785 htab_create_alloc.
1786 (symbol_set_names): Update.
1787
1788 2019-10-21 Ali Tamur <tamu@google.com>
1789
1790 * dwarf2read.c (dir_index): Change type.
1791 (file_name_index): Likewise.
1792 (line_header::include_dir_at): Change comment and implementation on
1793 whether it is DWARF 5.
1794 (line_header::is_valid_file_index): New function.
1795 (line_header::file_name_at): Change comment and implementation on
1796 whether it is DWARF 5.
1797 (line_header::file_names): Change to private field renamed as
1798 m_file_names and introduce a new accessor method.
1799 (line_header::file_names_size): New method.
1800 (line_header::include_dirs): Change to private field and rename as
1801 m_include_dirs.
1802 (dw2_get_file_names_reader): Define local var at a smaller scope and
1803 reflect API change.
1804 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1805 (process_structure_scope): Likewise.
1806 (line_header::add_include_dir): Change message and reflect renaming.
1807 (line_header::add_file_name): Likewise.
1808 (read_formatted_entries): Handle DW_FORM_data16.
1809 (dwarf_decode_line_header): Fix line header length calculation.
1810 (psymtab_include_file_name): Change comment and API.
1811 (lnp_state_machine::m_file): Update comment and reflect type change.
1812 (lnp_state_machine::record_line): Reflect type change.
1813 (dwarf_decode_lines): Reflect API change.
1814 (file_file_name): Likewise.
1815 (file_full_name): Likewise.
1816
1817 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1820
1821 2019-10-21 Tom Tromey <tom@tromey.com>
1822
1823 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1824
1825 2019-10-21 Tom Tromey <tom@tromey.com>
1826
1827 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1828 NM_H. Use AC_CONFIG_LINKS.
1829 * configure: Rebuild.
1830 * Makefile.in (NM_H): New variable.
1831 (generated_files): Add NM_H. Remove gcore.
1832 (nm.h, stamp-nmh): New targets.
1833
1834 2019-10-20 Tom Tromey <tom@tromey.com>
1835
1836 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1837 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1838 obsolete comment.
1839 (put_objfile_before): Now static.
1840
1841 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * gdbsupport/common-utils.h (startswith): Change return type to
1844 bool.
1845
1846 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1847
1848 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1849 * breakpoint.c (bp_locations_compare): Rename to...
1850 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1851 (update_global_location_list): Use std::sort instead of qsort.
1852 * buildsym.c (compare_line_numbers): Rename to...
1853 (lte_is_less_than): ...this, and change to std::sort semantics.
1854 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1855 instead of qsort.
1856 * disasm.c (compare_lines): Rename to...
1857 (line_is_less_than): ...this, and change to std::sort semantics.
1858 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1859 of qsort.
1860 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1861 (fde_is_less_than): ...this, and change to std::sort semantics.
1862 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1863 * mdebugread.c (compare_blocks):
1864 (block_is_less_than): ...this, and change to std::sort semantics.
1865 (sort_blocks): Call std::sort instead of qsort.
1866 * objfiles.c (qsort_cmp): Rename to...
1867 (sort_cmp): ...this, and change to std::sort semantics.
1868 (update_section_map): Call std::sort instead of qsort.
1869 * remote.c (compare_pnums): Remove.
1870 (map_regcache_remote_table): Call std::sort instead of qsort.
1871 * utils.c (compare_positive_ints): Remove.
1872 * utils.h (compare_positive_ints): Remove.
1873 * xcoffread.c (compare_lte): Remove.
1874 (arrange_linetable): Call std::sort instead of qsort.
1875
1876 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1877
1878 * symfile.c (init_entry_point_info): Fix typo.
1879 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1880
1881 2019-10-18 Tom de Vries <tdevries@suse.de>
1882
1883 * aarch64-tdep.c: Fix typos in comments.
1884 * ada-lang.c: Same.
1885 * ada-tasks.c: Same.
1886 * alpha-tdep.c: Same.
1887 * alpha-tdep.h: Same.
1888 * amd64-nat.c: Same.
1889 * amd64-windows-tdep.c: Same.
1890 * arc-tdep.c: Same.
1891 * arc-tdep.h: Same.
1892 * arch-utils.c: Same.
1893 * arm-nbsd-tdep.c: Same.
1894 * arm-tdep.c: Same.
1895 * ax-gdb.c: Same.
1896 * blockframe.c: Same.
1897 * btrace.c: Same.
1898 * c-varobj.c: Same.
1899 * coff-pe-read.c: Same.
1900 * coffread.c: Same.
1901 * cris-tdep.c: Same.
1902 * darwin-nat.c: Same.
1903 * dbxread.c: Same.
1904 * dcache.c: Same.
1905 * disasm.c: Same.
1906 * dtrace-probe.c: Same.
1907 * dwarf-index-write.c: Same.
1908 * dwarf2-frame-tailcall.c: Same.
1909 * dwarf2-frame.c: Same.
1910 * dwarf2read.c: Same.
1911 * eval.c: Same.
1912 * exceptions.c: Same.
1913 * fbsd-tdep.c: Same.
1914 * findvar.c: Same.
1915 * frame.c: Same.
1916 * frv-tdep.c: Same.
1917 * gnu-v3-abi.c: Same.
1918 * go32-nat.c: Same.
1919 * h8300-tdep.c: Same.
1920 * hppa-tdep.c: Same.
1921 * i386-linux-tdep.c: Same.
1922 * i386-tdep.c: Same.
1923 * ia64-libunwind-tdep.c: Same.
1924 * ia64-tdep.c: Same.
1925 * infcmd.c: Same.
1926 * infrun.c: Same.
1927 * linespec.c: Same.
1928 * linux-nat.c: Same.
1929 * linux-thread-db.c: Same.
1930 * machoread.c: Same.
1931 * mdebugread.c: Same.
1932 * mep-tdep.c: Same.
1933 * mn10300-tdep.c: Same.
1934 * namespace.c: Same.
1935 * objfiles.c: Same.
1936 * opencl-lang.c: Same.
1937 * or1k-tdep.c: Same.
1938 * osabi.c: Same.
1939 * ppc-linux-nat.c: Same.
1940 * ppc-linux-tdep.c: Same.
1941 * ppc-sysv-tdep.c: Same.
1942 * printcmd.c: Same.
1943 * procfs.c: Same.
1944 * record-btrace.c: Same.
1945 * record-full.c: Same.
1946 * remote-fileio.c: Same.
1947 * remote.c: Same.
1948 * rs6000-tdep.c: Same.
1949 * s12z-tdep.c: Same.
1950 * score-tdep.c: Same.
1951 * ser-base.c: Same.
1952 * ser-go32.c: Same.
1953 * skip.c: Same.
1954 * sol-thread.c: Same.
1955 * solib-svr4.c: Same.
1956 * solib.c: Same.
1957 * source.c: Same.
1958 * sparc-nat.c: Same.
1959 * sparc-sol2-tdep.c: Same.
1960 * sparc-tdep.c: Same.
1961 * sparc64-tdep.c: Same.
1962 * stabsread.c: Same.
1963 * stack.c: Same.
1964 * symfile.c: Same.
1965 * symtab.c: Same.
1966 * target-descriptions.c: Same.
1967 * target-float.c: Same.
1968 * thread.c: Same.
1969 * utils.c: Same.
1970 * valops.c: Same.
1971 * valprint.c: Same.
1972 * value.c: Same.
1973 * varobj.c: Same.
1974 * windows-nat.c: Same.
1975 * xcoffread.c: Same.
1976 * xstormy16-tdep.c: Same.
1977 * xtensa-tdep.c: Same.
1978
1979 2019-10-17 Tom Tromey <tromey@adacore.com>
1980
1981 * configure: Rebuild.
1982 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1983 in AC_CONFIG_FILES invocation.
1984 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1985 new-style config.status invocation.
1986
1987 2019-10-17 Tom de Vries <tdevries@suse.de>
1988
1989 * arm-nbsd-nat.c: Fix typos in comments.
1990 * arm-tdep.c: Same.
1991 * darwin-nat-info.c: Same.
1992 * dwarf2read.c: Same.
1993 * elfread.c: Same.
1994 * event-top.c: Same.
1995 * findvar.c: Same.
1996 * gdbtypes.c: Same.
1997 * hppa-tdep.c: Same.
1998 * i386-tdep.c: Same.
1999 * jit.c: Same.
2000 * main.c: Same.
2001 * mdebugread.c: Same.
2002 * moxie-tdep.c: Same.
2003 * nto-procfs.c: Same.
2004 * osabi.c: Same.
2005 * ppc-linux-tdep.c: Same.
2006 * remote.c: Same.
2007 * riscv-tdep.c: Same.
2008 * s390-tdep.c: Same.
2009 * sh-tdep.c: Same.
2010 * sparc-linux-tdep.c: Same.
2011 * sparc-nat.c: Same.
2012 * stack.c: Same.
2013 * target-descriptions.c: Same.
2014 * top.c: Same.
2015 * varobj.c: Same.
2016
2017 2019-10-16 Tom Tromey <tom@tromey.com>
2018
2019 * objfiles.h (struct objfile) <original_name>: Now const.
2020
2021 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2022
2023 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2024 pass on to sigsetjmp's second argument.
2025 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2026
2027 2019-10-16 Keith Seitz <keiths@redhat.com>
2028
2029 PR gdb/23567
2030 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2031 sections whose size is greater than the file size.
2032
2033 2019-10-16 Jim Wilson <jimw@sifive.com>
2034
2035 * riscv-tdep.c (riscv_gcc_target_options): New.
2036 (riscv_gnu_triplet_regexp): New.
2037 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2038 set_gdbarch_gnu_triplet_regexp.
2039
2040 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2041
2042 * Makefile.in: Add xml-builtin.h.
2043 * features/feature_to_c.sh: Add an include for xml-builtin.h
2044 to ensure that the compiler checks that the types match.
2045 * xml-builtin.h: New file.
2046 * xml-support.c (fetch_xml_builtin): Add missing const.
2047 * xml-support.h: Remove declaration of xml_builtins.
2048
2049 2019-10-16 Tom de Vries <tdevries@suse.de>
2050
2051 PR tdep/25096
2052 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2053 (amd64_classify_aggregate): ... here.
2054 (amd64_classify_aggregate_field): Handled fiels of nested structs
2055 recursively.
2056
2057 2019-10-16 Tom de Vries <tdevries@suse.de>
2058
2059 PR tdep/24104
2060 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2061 that handles 'theclass'.
2062
2063 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * linespec.c (decode_digits_ordinary): Update comment.
2066 * make-target-delegates: No longer need to handle VEC case.
2067 * memrange.c (normalize_mem_ranges): Update comment.
2068 * namespace.c (add_using_directive): Update comment.
2069 * objc-lang.c (uniquify_strings): Update comment.
2070 * ppc-linux-nat.c (struct thread_points): Update comment.
2071 * probe.h (find_probes_in_objfile): Update comment.
2072 * target.h (enum flash_preserve_mode): Update comment.
2073 * varobj.c (varobj_restrict_range): Update comment.
2074 * varobj.h (varobj_list_children): Update comment.
2075
2076 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * Makefile.in: Remove references to vec.h and vec.c.
2079 * aarch64-tdep.c: No longer include vec.h.
2080 * ada-lang.c: Likewise.
2081 * ada-lang.h: Likewise.
2082 * arm-tdep.c: Likewise.
2083 * ax.h: Likewise.
2084 * breakpoint.h: Likewise.
2085 * charset.c: Likewise.
2086 * cp-support.h: Likewise.
2087 * dtrace-probe.c: Likewise.
2088 * dwarf2read.c: Likewise.
2089 * extension.h: Likewise.
2090 * gdb_bfd.c: Likewise.
2091 * gdbsupport/gdb_vecs.h: Likewise.
2092 * gdbsupport/vec.c: Remove.
2093 * gdbsupport/vec.h: Remove.
2094 * gdbthread.h: Likewise.
2095 * guile/scm-type.c: Likewise.
2096 * inline-frame.c: Likewise.
2097 * machoread.c: Likewise.
2098 * memattr.c: Likewise.
2099 * memrange.h: Likewise.
2100 * namespace.h: Likewise.
2101 * nat/linux-btrace.h: Likewise.
2102 * osdata.c: Likewise.
2103 * parser-defs.h: Likewise.
2104 * progspace.h: Likewise.
2105 * python/py-type.c: Likewise.
2106 * record-btrace.c: Likewise.
2107 * rust-exp.y: Likewise.
2108 * solib-target.c: Likewise.
2109 * stap-probe.c: Likewise.
2110 * target-descriptions.c: Likewise.
2111 * target-memory.c: Likewise.
2112 * target.h: Likewise.
2113 * varobj.c: Likewise.
2114 * varobj.h: Likewise.
2115 * xml-support.h: Likewise.
2116
2117 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2120 Update for new std::vector based implementation.
2121 (process_psymtab_comp_unit_reader): Likewise.
2122 (scan_partial_symbols): Likewise.
2123 (recursively_compute_inclusions): Likewise.
2124 (compute_compunit_symtab_includes): Likewise.
2125 (process_imported_unit_die): Likewise.
2126 (queue_and_load_dwo_tu): Likewise.
2127 (follow_die_sig_1): Likewise.
2128 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2129 (typedef dwarf2_per_cu_ptr): Remove.
2130 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2131 function.
2132 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2133 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2134 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2135 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2136 std::vector.
2137
2138 2019-10-15 Tom Tromey <tromey@adacore.com>
2139
2140 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2141 TID.
2142
2143 2019-10-15 Tom Tromey <tromey@adacore.com>
2144
2145 * windows-nat.c (windows_nat_target::fetch_registers)
2146 (windows_nat_target::store_registers): Rename "pid" to "tid".
2147
2148 2019-10-15 Tom Tromey <tromey@adacore.com>
2149
2150 * gdbarch.h, gdbarch.c: Rebuild.
2151 * gdbarch.sh (gcc_target_options): Change return type to
2152 std::string.
2153 * compile/compile.c (get_args): Update.
2154 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2155 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2156 std::string.
2157 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2158 std::string.
2159 * arch-utils.c (default_gcc_target_options): Return std::string.
2160 * arch-utils.h (default_gcc_target_options): Return std::string.
2161 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2162
2163 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2164
2165 * breakpoint.c (breakpoint_chain): Make static.
2166 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2167 of accessing breakpoint_chain.
2168
2169 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2170
2171 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2172 to a gdb::function_view and return value to bool.
2173 * breakpoint.h (iterate_over_breakpoints): Likewise.
2174 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2175 (pop_dummy_frame): Update.
2176 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2177 (gdbscm_breakpoints): Update.
2178 * python/py-breakpoint.c (build_bp_list): Update.
2179 (gdbpy_breakpoints): Update.
2180 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2181 Update.
2182 (bpfinishpy_handle_stop): Update.
2183 (bpfinishpy_handle_exit): Update.
2184 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2185 (svr4_update_solib_event_breakpoints): Update.
2186
2187 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2188
2189 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2190 when unwrapping single-field structs.
2191
2192 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * dwarf2read.c: Remove includes.
2195
2196 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * ui-out.c (ui_out::call_do_message): Silence
2199 -Wformat-nonliteral warning.
2200
2201 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2204 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2205 include: readline/tilde.h.
2206
2207 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2208
2209 * remote.c (remote_target::get_trace_status): Remove declaration of
2210 trace_regblock_size.
2211
2212 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2213
2214 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2215 (show_user): Remove declaration of cmdlist.
2216 * cli/cli-cmds.h (max_user_call_depth): Declare.
2217 * cli/cli-script.c (execute_user_command): Remove declaration
2218 of max_user_call_depth.
2219
2220 2019-10-11 Jim Wilson <jimw@sifive.com>
2221
2222 * gdbsupport/print-utils.h (pulongest): Fix comment.
2223 (plongest): Likewise.
2224 (phex): Add missing comment, mention leading zeros.
2225 (phex_nz): Add mention of no leading zeros to comment.
2226
2227 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2228 plongest instead of unsigned long long cast.
2229
2230 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2231
2232 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2233 for external_editor_command and gdbtk_test.
2234
2235 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2236
2237 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2238 * varobj.c (varobjdebug): Move comment to...
2239 * varobj.h (varobjdebug): ...here, and declare.
2240
2241 2019-10-09 Tom Tromey <tom@tromey.com>
2242
2243 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2244 erase_data_content.
2245
2246 2019-10-09 Tom Tromey <tom@tromey.com>
2247
2248 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2249 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2250 * tui/tui-command.c (tui_cmd_window::resize)
2251 (tui_refresh_cmd_win): Update.
2252 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2253 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2254 * tui/tui-data.c (~tui_gen_win_info): Remove.
2255 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2256 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2257 (tui_redisplay_readline, tui_mld_flush)
2258 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2259 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2260 (tui_data_window::erase_data_content)
2261 (tui_data_item_window::rerender)
2262 (tui_data_item_window::refresh_window): Update.
2263 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2264 (box_win, tui_gen_win_info::make_window)
2265 (tui_gen_win_info::make_visible): Update.
2266 (tui_delete_win): Remove.
2267 * tui/tui-winsource.c
2268 (tui_source_window_base::do_erase_source_content): Update.
2269 (tui_show_source_line, tui_source_window_base::update_tab_width)
2270 (tui_source_window_base::update_exec_info): Update.
2271 * tui/tui-data.h (struct curses_deleter): New.
2272 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2273 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2274
2275 2019-10-09 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2278
2279 2019-10-09 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2282 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2283
2284 2019-10-09 Tom Tromey <tom@tromey.com>
2285
2286 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2287 window height directly.
2288 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2289 declare.
2290 * tui/tui-layout.c (tui_default_win_height): Remove.
2291 (tui_default_win_viewport_height): Remove.
2292
2293 2019-10-09 Tom Tromey <tom@tromey.com>
2294
2295 * tui/tui.h: Remove comments.
2296
2297 2019-10-09 Tom de Vries <tdevries@suse.de>
2298
2299 * python/lib/gdb/printer/bound_registers.py: Use
2300 '^builtin_type_bound128' as regexp argument for
2301 add_builtin_pretty_printer.
2302
2303 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2304
2305 * guile/guile.c (guile_extension_script_ops): Remove forward
2306 declaration and mark as static.
2307 (guile_script_ops): Likewise.
2308 (extension_language_guile): Move further down in the file so
2309 it can reference the definitions for guile_{extension_,}script_ops.
2310
2311 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2312
2313 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2314 except SORTL, DFLTCC, and KDSA.
2315
2316 2019-10-08 Tom Tromey <tromey@adacore.com>
2317
2318 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2319 (struct safe_symbol_file_add_args): Remove.
2320
2321 2019-10-08 Tom Tromey <tromey@adacore.com>
2322
2323 * windows-nat.c: Don't include buildsym-legacy.h.
2324
2325 2019-10-08 Tom Tromey <tromey@adacore.com>
2326
2327 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2328
2329 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2330
2331 * gdbtypes.c (overload_debug): Move comment to header.
2332 * gdbtypes.h (overload_debug): Declare.
2333 * valops.c: Remove declaration of overload_debug, instead
2334 include gdbtypes.h.
2335
2336 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2337
2338 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2339 through _().
2340 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2341 move comment...
2342 * language.h (lang_frame_mismatch_warn): ... here. Also add
2343 declaration.
2344 * top.c (lang_frame_mismatch_warn): Remove declaration.
2345 (check_frame_language_change): Pass lang_frame_mismatch_warn
2346 through _().
2347
2348 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2349
2350 * c-lang.h (vtbl_ptr_name): Declare.
2351 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2352 it from the header.
2353 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2354
2355 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2356
2357 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2358 gdb_static_assert.
2359
2360 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2361
2362 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2363 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2364 * ctfread.c: New file.
2365 * ctfread.h: New file.
2366 * elfread.c: Include ctfread.h.
2367 (struct elfinfo text_p): New member ctfsect.
2368 (elf_locate_sections): Mark CTF section.
2369 (elf_symfile_read): Call elfctf_build_psymtabs.
2370 * Makefile.in (LIBCTF): Add.
2371 (CLIBS): Use it.
2372 (CDEPS): Likewise.
2373 (DIST): Add ctfread.c.
2374
2375 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * ctfread.c (struct nextfield): Renamed to ...
2378 (struct ctf_nextfield): ... this.
2379 (struct field_info): Renamed to ...
2380 (strut ctf_field_info): ... this.
2381 (attach_fields_to_type): Update for renamed structures.
2382 (ctf_add_member_cb): Likewise.
2383 (ctf_add_enum_member_cb): Likewise.
2384 (process_struct_members): Likewise.
2385 (process_enum_type): Likewise.
2386
2387 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2388
2389 * tracectf.h: Rename, was ctf.h.
2390 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2391 * tracefile.c: Likewise.
2392 * tracepoint.c: Remove unused include ctf.h.
2393 * mi/mi-main.c: Likewise.
2394 * Makefile.in Replace ctf.c with tracectf.c.
2395
2396 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2397
2398 * version.in: Change version number to "9.0.50.DATE-git".
2399
2400 2019-10-03 Tom Tromey <tom@tromey.com>
2401
2402 PR rust/24976:
2403 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2404
2405 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2406
2407 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2408 cp_search_name_hash.
2409 * NEWS: Add entry about nested function support.
2410
2411 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2412 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2415 for nested static variables when searchin VAR_DOMAIN.
2416 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2417 global scope, update comment.
2418 (add_partial_subprogram): Call add_partial_subprogram recursively
2419 for nested subroutines when processinng Fortran.
2420 (load_partial_dies): Process the child entities of a subprogram
2421 when processing Fortran.
2422 (partial_die_parent_scope): Handle building scope
2423 for Fortran nested functions.
2424 (process_die): Record that nested functions have a scope.
2425 (new_symbol): Always record Fortran subprograms on the global
2426 symbol list.
2427 (determine_prefix): How to build the prefix for Fortran
2428 subprograms.
2429
2430 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2433 have just sent the thread a SIGSTOP and are waiting for it to
2434 arrive.
2435
2436 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * btrace.c (btrace_add_pc): Remove whitespace before the template
2439 parameter in 'std::vector <...>'.
2440 (parse_xml_btrace_block): Likewise.
2441 (btrace_maint_decode_pt): Likewise.
2442 (btrace_maint_update_packets): Likewise.
2443 (btrace_maint_print_packets): Likewise.
2444 * btrace.h (struct btrace_maint_info): Likewise.
2445 * dwarf2read.c (struct type_unit_group): Likewise.
2446 (build_type_psymtabs_reader): Likewise.
2447 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2448 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2449 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2450
2451 2019-10-03 Tom de Vries <tdevries@suse.de>
2452
2453 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2454 the first line of the help text for set/show style metadata.
2455
2456 2019-10-02 Tom Tromey <tromey@adacore.com>
2457
2458 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2459 * gdbsupport/common-inferior.c: New file.
2460 * infcmd.c (startup_with_shell): Don't define.
2461 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2462 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2463 * inferior.h (startup_with_shell): Don't declare.
2464
2465 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2466
2467 * gdbsupport/gdb_assert.h: Include errors.h.
2468 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2469
2470 2019-10-02 Tom Tromey <tromey@adacore.com>
2471
2472 * NEWS: Add $_ada_exception entry.
2473 * ada-lang.c (struct ada_catchpoint): Add constructor.
2474 <m_kind>: New member.
2475 (allocate_location_exception, re_set_exception): Remove
2476 "ex" parameter.
2477 (should_stop_exception): Compute $_ada_exception.
2478 (check_status_exception, print_it_exception)
2479 (print_one_exception, print_mention_exception): Remove
2480 "ex" parameter.
2481 (allocate_location_catch_exception, re_set_catch_exception)
2482 (check_status_exception, print_it_catch_exception)
2483 (print_one_catch_exception, print_mention_catch_exception)
2484 (print_recreate_catch_exception)
2485 (allocate_location_catch_exception_unhandled)
2486 (re_set_catch_exception_unhandled)
2487 (check_status_exception, print_it_catch_exception_unhandled)
2488 (print_one_catch_exception_unhandled)
2489 (print_mention_catch_exception_unhandled)
2490 (print_recreate_catch_exception_unhandled)
2491 (allocate_location_catch_assert, re_set_catch_assert)
2492 (check_status_assert, print_it_catch_assert)
2493 (print_one_catch_assert, print_mention_catch_assert)
2494 (print_recreate_catch_assert)
2495 (allocate_location_catch_handlers, re_set_catch_handlers)
2496 (check_status_handlers, print_it_catch_handlers)
2497 (print_one_catch_handlers, print_mention_catch_handlers)
2498 (print_recreate_catch_handlers): Remove.
2499 (create_ada_exception_catchpoint): Update.
2500 (initialize_ada_catchpoint_ops): Update.
2501
2502 2019-10-02 Tom Tromey <tromey@adacore.com>
2503
2504 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2505 (create_excep_cond_exprs): Simplify exception string computation.
2506 (ada_exception_catchpoint_cond_string): Likewise.
2507
2508 2019-10-02 Tom Tromey <tromey@adacore.com>
2509
2510 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2511 * ada-lang.c (lesseq_defined_than): Handle
2512 LOC_STATIC.
2513 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2514 parameter.
2515 (dwarf2_has_info): Likewise.
2516 (new_symbol): Set maybe_copied on symbol when
2517 appropriate.
2518 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2519 parameter.
2520 <can_copy>: New member.
2521 * elfread.c (record_minimal_symbol): Set maybe_copied
2522 on symbol when appropriate.
2523 (elf_symfile_read): Update call to dwarf2_has_info.
2524 * minsyms.c (lookup_minimal_symbol_linkage): New
2525 function.
2526 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2527 * symtab.c (get_symbol_address, get_msymbol_address):
2528 New functions.
2529 * symtab.h (get_symbol_address, get_msymbol_address):
2530 Declare.
2531 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2532 maybe_copied.
2533 (struct symbol, struct minimal_symbol) <maybe_copied>:
2534 New member.
2535
2536 2019-10-02 Tom Tromey <tromey@adacore.com>
2537
2538 * source.c (struct current_source_location): New.
2539 (current_source_key): New global.
2540 (current_source_symtab, current_source_line)
2541 (current_source_pspace): Remove.
2542 (get_source_location): New function.
2543 (get_current_source_symtab_and_line)
2544 (set_default_source_symtab_and_line)
2545 (set_current_source_symtab_and_line)
2546 (clear_current_source_symtab_and_line, select_source_symtab)
2547 (info_source_command, print_source_lines_base)
2548 (info_line_command, search_command_helper, _initialize_source):
2549 Update.
2550
2551 2019-10-02 Tom Tromey <tromey@adacore.com>
2552
2553 * source.c (select_source_symtab): Don't call
2554 decode_line_with_current_source.
2555
2556 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * symtab.c (lookup_global_symbol): Search global block.
2559
2560 2019-10-02 Tom Tromey <tromey@adacore.com>
2561
2562 * coffread.c (process_coff_symbol): Update.
2563 * dwarf2read.c (var_decode_location, new_symbol): Update.
2564 * mdebugread.c (parse_symbol): Update.
2565 * objfiles.c (relocate_one_symbol): Update.
2566 * stabsread.c (define_symbol, fix_common_block)
2567 (scan_file_globals): Update.
2568 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2569 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2570 * xcoffread.c (process_xcoff_symbol): Update.
2571
2572 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2573
2574 * MAINTAINERS: Update my email address.
2575
2576 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2579 std::vector.
2580 (build_type_psymtabs_reader): Update for std::vector.
2581 (build_type_psymtab_dependencies): Likewise.
2582 * dwarf2read.h: Remove use of DEF_VEC_P.
2583 (typedef sig_type_ptr): Delete.
2584
2585 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2588 to std::vector.
2589 (btrace_maint_decode_pt): Likewise, and move allocation of the
2590 vector outside of the loop.
2591 (btrace_maint_update_packets): Update to handle change from VEC to
2592 std::vector.
2593 (btrace_maint_print_packets): Likewise.
2594 (maint_info_btrace_cmd): Likewise.
2595 * btrace.h: Remove use of DEF_VEC_O.
2596 (typedef btrace_pt_packet_s): Delete.
2597 (struct btrace_maint_info) <packets>: Change fromm VEC to
2598 std::vector.
2599 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2600
2601 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2604 make accesses into the vector constant references.
2605 (btrace_add_pc): Update for std::vector.
2606 (btrace_stitch_bts): Likewise.
2607 (parse_xml_btrace_block): Likewise.
2608 (btrace_maint_update_packets): Likewise.
2609 (btrace_maint_print_packets): Likewise.
2610 (maint_info_btrace_cmd): Likewise.
2611 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2612 std::vector.
2613 (btrace_data::empty): Likewise.
2614 (btrace_data_append): Likewise.
2615 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2616 (typedef btrace_block_s): Delete.
2617 (struct btrace_block): Add constructor.
2618 (struct btrace_data_bts) <blocks>: Change to std::vector.
2619 * nat/linux-btrace.c (perf_event_read_bts): Update for
2620 std::vector.
2621 (linux_read_bts): Likewise.
2622
2623 2019-10-01 Tom Tromey <tom@tromey.com>
2624
2625 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2626
2627 2019-10-01 Tom Tromey <tom@tromey.com>
2628
2629 * stack.c (print_frame, info_frame_command_core): Use
2630 styled_string.
2631 * linux-thread-db.c (try_thread_db_load_1)
2632 (try_thread_db_load_from_pdir_1): Use styled_string.
2633 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2634 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2635 (maybe_print_unsupported_script_warning)
2636 (maybe_print_script_not_found_warning): Use styled_string.
2637 * ada-lang.c (user_select_syms): Use styled_string.
2638
2639 2019-10-01 Tom Tromey <tom@tromey.com>
2640
2641 * p-lang.c (pascal_printstr): Use metadata style.
2642 * value.c (show_convenience): Use metadata style.
2643 * valprint.c (valprint_check_validity, val_print_optimized_out)
2644 (val_print_not_saved, val_print_unavailable)
2645 (val_print_invalid_address, generic_val_print, val_print)
2646 (value_check_printable, val_print_array_elements): Use metadata
2647 style.
2648 * ui-out.h (class ui_out) <field_fmt>: New overload.
2649 <do_field_fmt>: Add style parameter.
2650 * ui-out.c (ui_out::field_fmt): New overload.
2651 * typeprint.c (type_print_unknown_return_type)
2652 (val_print_not_allocated, val_print_not_associated): Use metadata
2653 style.
2654 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2655 parameter.
2656 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2657 * tracepoint.c (tvariables_info_1): Use metadata style.
2658 * stack.c (print_frame_arg, print_frame_info, print_frame)
2659 (info_frame_command_core): Use metadata style.
2660 * skip.c (info_skip_command): Use metadata style.
2661 * rust-lang.c (rust_print_enum): Use metadata style.
2662 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2663 metadata style.
2664 * python/py-framefilter.c (py_print_single_arg): Use metadata
2665 style.
2666 * printcmd.c (do_one_display, print_variable_and_value): Use
2667 metadata style.
2668 * p-valprint.c (pascal_val_print)
2669 (pascal_object_print_value_fields): Use metadata style.
2670 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2671 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2672 parameter.
2673 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2674 * m2-valprint.c (m2_print_long_set): Use metadata style.
2675 * m2-typeprint.c (m2_print_type): Use metadata style.
2676 * infcmd.c (print_return_value_1): Use metadata style.
2677 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2678 * f-valprint.c (info_common_command_for_block): Use metadata
2679 style.
2680 * f-typeprint.c (f_type_print_base): Use metadata style.
2681 * expprint.c (print_subexp_standard): Use metadata style.
2682 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2683 * cli/cli-style.h (class cli_style_option): Add constructor.
2684 (metadata_style): Declare.
2685 * cli/cli-style.c (metadata_style): New global.
2686 (_initialize_cli_style): Register metadata style.
2687 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2688 parameter.
2689 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2690 * c-typeprint.c (c_type_print_base_struct_union)
2691 (c_type_print_base_1): Use metadata style.
2692 * breakpoint.c (watchpoint_value_print)
2693 (print_one_breakpoint_location): Use metadata style.
2694 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2695 style.
2696 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2697 style.
2698 * ada-valprint.c (val_print_packed_array_elements, printstr)
2699 (print_field_values, ada_val_print_ref, ada_val_print): Use
2700 metadata style.
2701 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2702 style.
2703 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2704 style.
2705 * ada-lang.c (user_select_syms): Use metadata style.
2706
2707 2019-10-01 Tom Tromey <tom@tromey.com>
2708
2709 * cli/cli-cmds.c (pwd_command): Style output.
2710
2711 2019-10-01 Pedro Alves <palves@redhat.com>
2712 Tom Tromey <tom@tromey.com>
2713
2714 * symtab.c (print_symbol_info): Use %ps.
2715 (print_msymbol_info): Use %ps.
2716 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2717 * printcmd.c (print_variable_and_value): Use %ps.
2718 * macrocmd.c (show_pp_source_pos): Use %ps.
2719 * infrun.c (print_exited_reason): Use ui_out::message.
2720 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2721 (describe_other_breakpoints): Use ui_out::message and new
2722 formats.
2723 (say_where): Use new formats.
2724 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2725 and new formats.
2726
2727 2019-10-01 Pedro Alves <palves@redhat.com>
2728 Tom Tromey <tom@tromey.com>
2729
2730 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2731 (test_gdb_formats): New function.
2732 (run_tests): Call it.
2733 (test_format_specifier): Update.
2734 * utils.h (fputs_filtered): Update comment.
2735 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2736 (fputs_styled_unfiltered): Declare.
2737 * utils.c (fputs_styled_unfiltered): New function.
2738 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2739 (vfprintf_filtered): Update.
2740 (vfprintf_unfiltered, vprintf_filtered): Update.
2741 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2742 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2743 disallow_ui_out_field>: New constants.
2744 (enum class field_kind): New.
2745 (struct base_field_s, struct signed_field_s): New.
2746 (signed_field): New function.
2747 (struct string_field_s): New.
2748 (string_field): New function.
2749 (struct styled_string_s): New.
2750 (styled_string): New function.
2751 (class ui_out) <message>: Add comment.
2752 <vmessage, call_do_message>: New methods.
2753 <do_message>: Add style parameter.
2754 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2755 methods.
2756 (ui_out::message): Rewrite.
2757 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2758 parameter.
2759 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2760 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2761 gdb_extensions parameter.
2762 (class format_piece): Add parameter to constructor.
2763 (n_int_args): New field.
2764 * gdbsupport/format.c (format_pieces::format_pieces): Add
2765 gdb_extensions parameter. Handle '*'.
2766 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2767 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2768 vfprintf_styled_no_gdbfmt.
2769 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2770 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2771 unfiltered output.
2772 * ui-style.h (struct ui_file_style) <ptr>: New method.
2773
2774 2019-10-01 Tom Tromey <tom@tromey.com>
2775
2776 * unittests/format_pieces-selftests.c: Update. Add final format.
2777 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2778 empty literal pieces.
2779
2780 2019-10-01 Tom Tromey <tom@tromey.com>
2781
2782 * ui-out.h (enum class ui_out_style_kind): Remove.
2783 (class ui_out) <field_string, field_stsream, do_field_string>:
2784 Change type of "style".
2785 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2786 (ui_out::field_string): Update.
2787 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2788 of "style".
2789 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2790 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2791 * stack.c (print_frame_arg, print_frame_info, print_frame):
2792 Update.
2793 * source.c (print_source_lines_base): Update.
2794 * solib.c (info_sharedlibrary_command): Update.
2795 * skip.c (info_skip_command): Update.
2796 * record-btrace.c (btrace_call_history_src_line)
2797 (btrace_call_history): Update.
2798 * python/py-framefilter.c (py_print_frame): Update.
2799 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2800 "style".
2801 * mi/mi-out.c (mi_ui_out::do_table_header)
2802 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2803 (mi_ui_out::do_field_string): Update.
2804 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2805 Update.
2806 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2807 "style".
2808 * cli-out.c (cli_ui_out::do_table_header)
2809 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2810 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2811 (cli_ui_out::do_field_fmt): Update.
2812 * breakpoint.c (print_breakpoint_location): Update.
2813 (update_static_tracepoint): Update.
2814
2815 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2816
2817 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2818 conversion of gdb_datadir.
2819 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2820 remove not needed c_str ().
2821
2822 2019-09-30 Ali Tamur <tamur@google.com>
2823
2824 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2825 (dwarf2_string_attr): Likewise.
2826
2827 2019-09-30 Ali Tamur <tamur@google.com>
2828
2829 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2830 (process_full_type_unit): Likewise.
2831 (dump_die_shallow): Likewise.
2832 (cu_debug_loc_section): Likewise.
2833
2834 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2835
2836 * minsyms.c (compare_minimal_symbols): Rename to...
2837 (minimal_symbol_is_less_than): ...this, and adjust to STL
2838 conventions (return bool, take arguments as references)
2839 (minimal_symbol_reader::install): Call std::sort instead
2840 of qsort.
2841
2842 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2843
2844 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2845 hash and why.
2846 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2847 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2848
2849 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2850
2851 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2852 * psympriv.h (add_psymbol_to_list): Move comment here and update
2853 it.
2854
2855 2019-09-29 Tom de Vries <tdevries@suse.de>
2856
2857 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2858 Use $tmpdir/$(basename "$output_file").dwz instead of
2859 "${output_file}.dwz".
2860
2861 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 PR gdb/25045
2864 * hppa-linux-nat.c: Include gdbarch.h.
2865
2866 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2867
2868 * blockframe.c (find_pc_partial_function): Change return type to bool.
2869 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2870 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2871 (stub_gnu_ifunc_resolve_name): Likewise.
2872 * symtab.c (compare_filenames_for_search): Likewise.
2873 (compare_glob_filenames_for_search): Likewise.
2874 (matching_obj_sections): Likewise.
2875 (symbol_matches_domain): Likewise.
2876 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2877 (find_line_pc): Change return type to bool.
2878 (find_line_pc_range): Likewise.
2879 (producer_is_realview): Likewise.
2880 * symtab.h (symbol_matches_domain): Likewise.
2881 (find_pc_partial_function): Likewise.
2882 (find_pc_line_pc_range): Likewise.
2883 (in_gnu_ifunc_stub): Likewise.
2884 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2885 (find_line_pc): Likewise.
2886 (find_line_pc_range): Likewise.
2887 (matching_obj_sections): Likewise.
2888 (find_line_symtab): Change out parameter to bool.
2889 (producer_is_realview): Change return type to bool.
2890 (compare_filenames_for_search): Likewise.
2891 (compare_glob_filenames_for_search): Likewise.
2892
2893 2019-09-26 Tom Tromey <tom@tromey.com>
2894
2895 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2896 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2897 * gdb_usleep.h: Remove.
2898 * gdb_usleep.c: Remove.
2899 * utils.c: Don't include gdb_usleep.h.
2900
2901 2019-09-26 Tom Tromey <tromey@adacore.com>
2902
2903 * python/py-type.c (type_to_type_object): Call check_typedef
2904 for stub types.
2905
2906 2019-09-26 Tom Tromey <tom@tromey.com>
2907
2908 * utils.h (initialize_utils): Don't declare.
2909 * top.c (gdb_init): Don't call initialize_utils.
2910 * utils.c (initialize_utils): Remove. Move contents...
2911 (_initialize_utils): ... here.
2912
2913 2019-09-25 Tom Tromey <tom@tromey.com>
2914
2915 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2916 * utils.h (make_hex_string): Don't declare.
2917 * utils.c (make_hex_string): Remove.
2918
2919 2019-09-24 Tom de Vries <tdevries@suse.de>
2920
2921 PR gdb/23815
2922 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2923 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2924
2925 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2926
2927 * NEWS: Mention new simulator port for PRU.
2928
2929 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2930
2931 * ada-exp.y (write_object_remaining): Update.
2932 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2933 and eliminate the static buffer.
2934 (ada_decode_symbol): Update.
2935 (ada_la_decode): Update.
2936 (ada_sniff_from_mangled_name): Update.
2937 (is_valid_name_for_wild_match): Update.
2938 (ada_lookup_name_info::matches): Update and simplify.
2939 (name_matches_regex): Update.
2940 (ada_add_global_exceptions): Update.
2941 * ada-lang.h (ada_decode): Update signature.
2942 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2943 * dwarf-index-write.c (debug_names::insert): Update.
2944
2945 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2948 formatting.
2949
2950 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2953 Change "nonzero" to "true" in documentation.
2954
2955 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2956
2957 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2958 (_initialize_darwin_solib): Don't set
2959 darwin_so_ops.lookup_lib_global_symbol.
2960 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2961 set_gdbarch_iterate_over_objfiles_in_search_order.
2962 (elf_lookup_lib_symbol): Rename to...
2963 (svr4_iterate_over_objfiles_in_search_order): this, and update
2964 to iterate semantics.
2965 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2966 * solib.c (solib_global_lookup): Remove.
2967 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2968 (solib_global_lookup): Remove.
2969 * symtab.c (lookup_global_or_static_symbol): Remove call to
2970 solib_global_lookup.
2971
2972 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2973
2974 * NEWS: Move entries about default MI version now being
2975 version 3, and about the GDB/MI fix for multi-location
2976 breakpoints to the "since GDB 8.3" section.
2977
2978 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2979
2980 GDB 8.3.1 released.
2981
2982 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2983
2984 * NEWS: Mention that Cell/B.E. debugging support was removed.
2985 * MAINTAINERS: Remove spu target.
2986
2987 * config/djgpp/fnchange.lst: Remove entries for removed files.
2988
2989 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2990 spu-multiarch.o, and spu-tdep.o.
2991 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2992 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2993 spu-multiarch.c, and spu-tdep.c.
2994 * spu-linux-nat.c: Remove file.
2995 * spu-multiarch.c: Remove file.
2996 * spu-tdep.c: Remove file.
2997 * spu-tdep.h: Remove file.
2998 * solib-spu.c: Remove file.
2999 * solib-spu.h: Remove file.
3000
3001 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3002 * configure.nat (spu-linux): Remove.
3003 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3004 solib-multiarch.o from gdb_target_obs.
3005 (spu*-*-*): Remove.
3006
3007 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3008 feature flag.
3009 (ppc_linux_no_features): Update.
3010 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3011 Cell/B.E. support.
3012 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3013 (tdesc_powerpc_cell64l): Likewise.
3014 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3015 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3016 Cell/B.E. support.
3017 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3018 Do not include "features/rs6000/powerpc-cell32l.c" or
3019 "features/rs6000/powerpc-cell64l.c".
3020 (ppc_linux_spu_section): Remove.
3021 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3022 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3023 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3024 (ppc_linux_spe_context_lookup): Remove.
3025 (ppc_linux_spe_context_inferior_created): Remove.
3026 (ppc_linux_spe_context_solib_loaded): Remove.
3027 (ppc_linux_spe_context_solib_unloaded): Remove.
3028 (ppc_linux_spe_context): Remove.
3029 (struct ppu2spu_cache): Remove.
3030 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3031 (struct ppu2spu_data): Remove.
3032 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3033 ppu2spu_unwind): Remove.
3034 (ppc_linux_init_abi): Remove Cell/B.E. support.
3035 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3036
3037 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3038 (rs6000/powerpc-cell64l-expedite): Likewise
3039 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3040 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3041 rs6000/powerpc-cell64l.xml.
3042 * features/rs6000/powerpc-cell32l.xml: Remove.
3043 * features/rs6000/powerpc-cell64l.xml: Likewise.
3044 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3045 * features/rs6000/powerpc-cell64l.c: Likewise.
3046 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3047 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3048 * regformats/reg-spu.dat: Remove.
3049
3050 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3051 * corelow.c (struct spuid_list): Remove.
3052 (add_to_spuid_list): Remove.
3053 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3054 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3055 (remote_protocol_features): Remove associated entries.
3056 (_initialize_remote): No longer initialize them.
3057 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3058 * linux-nat.c (SPUFS_MAGIC): Remove.
3059 (linux_proc_xfer_spu): Remove.
3060 (spu_enumerate_spu_ids): Remove.
3061 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3062 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3063 (linux_make_corefile_notes): No longer call it.
3064
3065 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3066 (cooked_write_test): Likewise.
3067
3068 2019-09-20 Tom Tromey <tom@tromey.com>
3069
3070 * NEWS: Mention case-sensitivity of TUI commands.
3071 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3072 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3073 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3074
3075 2019-09-20 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-source.c (tui_source_window::set_contents): Use
3078 make_unique_xstrdup.
3079 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3080 make_unique_xstrdup.
3081
3082 2019-09-20 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-data.c: Remove separator comments.
3085 * tui/tui-layout.c: Remove separator comments.
3086 * tui/tui-win.c: Remove separator comments.
3087 * tui/tui-wingeneral.c: Remove separator comments.
3088
3089 2019-09-20 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui.h (strcat_to_buf): Don't declare.
3092 * tui/tui.c (strcat_to_buf): Remove.
3093
3094 2019-09-20 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3097 from "fullname".
3098 * tui/tui-source.c (tui_source_window::set_contents)
3099 (tui_source_window::location_matches_p)
3100 (tui_source_window::maybe_update): Update.
3101
3102 2019-09-20 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3105 Update.
3106 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3107 prefix.
3108 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3109 (tui_data_window::line_from_reg_element_no)
3110 (tui_data_window::first_reg_element_no_inline)
3111 (tui_data_window::show_registers)
3112 (tui_data_window::show_register_group)
3113 (tui_data_window::display_registers_from)
3114 (tui_data_window::display_registers_from_line)
3115 (tui_data_window::first_data_item_displayed)
3116 (tui_data_window::delete_data_content_windows)
3117 (tui_data_window::erase_data_content)
3118 (tui_data_window::do_scroll_vertical)
3119 (tui_data_window::refresh_window)
3120 (tui_data_window::check_register_values): Update.
3121
3122 2019-09-20 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3125 (struct tui_locator_window) <full_name, proc_name>: Now
3126 std::string.
3127 * tui/tui-stack.c (tui_locator_window::make_status_line)
3128 (tui_locator_window::set_locator_fullname)
3129 (tui_locator_window::set_locator_info): Update.
3130 * tui/tui-source.c (tui_source_window::set_contents)
3131 (tui_source_window::showing_source_p): Update.
3132
3133 2019-09-20 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3136 Don't call tui_locator_win_info_ptr.
3137
3138 2019-09-20 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3141
3142 2019-09-20 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3145 height for locator.
3146 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3147 * tui/tui-layout.c (show_source_disasm_command, show_data)
3148 (show_source_or_disasm_and_command): Use 1 as height for locator.
3149
3150 2019-09-20 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui.c (tui_enable): Update.
3153 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3154 Update.
3155 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3156 Update.
3157 * tui/tui-data.c (win_resized): Now bool.
3158 (tui_win_resized): Return bool.
3159 (tui_set_win_resized_to): Accept a bool.
3160
3161 2019-09-20 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3164 Change type of "refresh_values_only".
3165 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3166 type of "refresh_values_only".
3167
3168 2019-09-20 Tom Tromey <tom@tromey.com>
3169
3170 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3171 std::string.
3172 (tui_disassemble): Add "pos" parameter.
3173 (tui_disasm_window::set_contents): Simplify.
3174
3175 2019-09-20 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <show_source_content>: Now private.
3179 * tui/tui-winsource.c
3180 (tui_source_window_base::show_source_content): Don't handle empty
3181 content case.
3182
3183 2019-09-20 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-layout.c (show_source_disasm_command)
3186 (show_source_or_disasm_and_command): Don't call
3187 show_source_content.
3188
3189 2019-09-20 Tom Tromey <tom@tromey.com>
3190
3191 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3192 Declare.
3193 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3194 from tui_make_status_line.
3195 (tui_locator_window::rerender): Update.
3196
3197 2019-09-20 Tom Tromey <tom@tromey.com>
3198
3199 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3200 (tui_locator_window::rerender): Update.
3201
3202 2019-09-20 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-winsource.h (struct tui_source_window_base)
3205 <~tui_source_window_base>: Don't declare.
3206 <fullname>: Remove.
3207 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3208 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3209 member.
3210 * tui/tui-source.c (tui_source_window::set_contents): Update.
3211 (tui_source_window::location_matches_p)
3212 (tui_source_window::maybe_update): Update.
3213
3214 2019-09-20 Tom Tromey <tom@tromey.com>
3215
3216 * tui/tui-winsource.h (~tui_source_element): Remove.
3217 (tui_source_element): Update.
3218 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3219 * tui/tui-winsource.c (tui_show_source_line): Update.
3220 * tui/tui-source.c (tui_source_window::set_contents): Update.
3221 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3222
3223 2019-09-20 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3226 declare.
3227 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3228 tui_clear_source_windows_detail.
3229 * tui/tui-winsource.h (struct tui_source_window_base)
3230 <clear_detail>: Don't declare.
3231 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3232 Remove.
3233 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3234
3235 2019-09-20 Tom Tromey <tromey@adacore.com>
3236
3237 PR ada/24919:
3238 * block.c (contained_in): Fix final return value.
3239
3240 2019-09-20 Alan Modra <amodra@gmail.com>
3241
3242 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3243 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3244 (read_indirect_string_from_dwz): Use bfd accessor.
3245 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3246 * machoread.c (macho_symfile_read_all_oso): Likewise.
3247 * solib.c (solib_bfd_open): Likewise.
3248
3249 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3250
3251 * eval.c: Move declaration of overload_resolution to...
3252 * value.h: ...here.
3253
3254 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3255
3256 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3257 * arm-linux-tdep.c: Likewise.
3258 * arm-nbsd-nat.c: Likewise.
3259 * arm-tdep.h: Declare arm_apcs_32.
3260 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3261
3262 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3263
3264 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3265 * dwarf2read.h: Declare dwarf_always_disassemble.
3266
3267 2019-09-19 Tom de Vries <tdevries@suse.de>
3268
3269 PR gdb/25009
3270 * source-cache.c (source_cache::ensure): Catch exception thrown during
3271 construction of the highlighter.
3272
3273 2019-09-18 Alan Modra <amodra@gmail.com>
3274
3275 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3276 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3277 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3278 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3279 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3280 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3281 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3282 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3283 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3284 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3285 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3286 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3287 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3288 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3289 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3290 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3291 * mi/mi-interp.c: Update throughout for bfd section macro and
3292 function changes.
3293 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3294 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3295
3296 2019-09-18 Tom Tromey <tom@tromey.com>
3297
3298 * NEWS: Add entry.
3299 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3300 call rl_initialize.
3301 (tui_enable): Do not call rl_initialize.
3302
3303 2019-09-18 Christian Groessler <chris@groessler.org>
3304
3305 * alpha-linux-nat.c: Include gdbarch.h.
3306
3307 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3308
3309 * ui-file.c: Include cli/cli-style.h.
3310 (term_cli_styling): Remove cli_styling declaration.
3311
3312 2019-09-18 Alan Modra <amodra@gmail.com>
3313
3314 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3315 to bfd_asymbol_section.
3316
3317 2019-09-18 Alan Modra <amodra@gmail.com>
3318
3319 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3320 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3321 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3322
3323 2019-09-18 Alan Modra <amodra@gmail.com>
3324
3325 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3326 * spu-linux-nat.c (spu_bfd_open): Likewise.
3327
3328 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3329
3330 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3331 to bool to match definition in dwarf2read.c.
3332
3333 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3334
3335 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3336 (print_signatures): Likewise.
3337 (trust_pad_over_xvs): Likewise.
3338 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3339 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3340 * arm-linux-nat.c (arm_apcs_32): Likewise.
3341 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3342 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3343 * arm-tdep.c (arm_debug): Likewise.
3344 (arm_apcs_32): Likewise.
3345 * auto-load.c (debug_auto_load): Likewise.
3346 (auto_load_gdb_scripts): Likewise.
3347 (global_auto_load): Likewise.
3348 (auto_load_local_gdbinit): Likewise.
3349 (auto_load_local_gdbinit_loaded): Likewise.
3350 * auto-load.h (global_auto_load): Likewise.
3351 (auto_load_local_gdbinit): Likewise.
3352 (auto_load_local_gdbinit_loaded): Likewise.
3353 * breakpoint.c (disconnected_dprintf): Likewise.
3354 (breakpoint_proceeded): Likewise.
3355 (automatic_hardware_breakpoints): Likewise.
3356 (always_inserted_mode): Likewise.
3357 (target_exact_watchpoints): Likewise.
3358 (_initialize_breakpoint): Update.
3359 * breakpoint.h (target_exact_watchpoints): Change to bool.
3360 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3361 * cli/cli-cmds.c (trace_commands): Likewise.
3362 * cli/cli-cmds.h (trace_commands): Likewise.
3363 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3364 to bool*.
3365 * cli/cli-logging.c (logging_overwrite): Change to bool.
3366 (logging_redirect): Likewise.
3367 (debug_redirect): Likewise.
3368 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3369 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3370 to bool.
3371 <boolean_option_def>: Update.
3372 (struct flag_option_def): Change default type of Context to bool
3373 from int.
3374 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3375 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3376 (get_setshow_command_value_string): Likewise.
3377 * cli/cli-style.c (cli_styling): Change to bool.
3378 (source_styling): Likewise.
3379 * cli/cli-style.h (source_styling): Likewise.
3380 (cli_styling): Likewise.
3381 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3382 to bool.
3383 * command.h (var_types): Update comment.
3384 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3385 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3386 bool.
3387 (debug_compile_cplus_scopes): Likewise.
3388 * compile/compile-internal.h (compile_debug): Likewise.
3389 * compile/compile.c (compile_debug): Likewise.
3390 (struct compile_options) <raw>: Likewise.
3391 * cp-support.c (catch_demangler_crashes): Likewise.
3392 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3393 (usr_cmd_cris_dwarf2_cfi): Likewise.
3394 * csky-tdep.c (csky_debug): Likewise.
3395 * darwin-nat.c (enable_mach_exceptions): Likewise.
3396 * dcache.c (dcache_enabled_p): Likewise.
3397 * defs.h (info_verbose): Likewise.
3398 * demangle.c (demangle): Likewise.
3399 (asm_demangle): Likewise.
3400 * dwarf-index-cache.c (debug_index_cache): Likewise.
3401 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3402 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3403 * dwarf2read.c (check_physname): Likewise.
3404 (use_deprecated_index_sections): Likewise.
3405 (dwarf_always_disassemble): Likewise.
3406 * eval.c (overload_resolution): Likewise.
3407 * event-top.c (set_editing_cmd_var): Likewise.
3408 (exec_done_display_p): Likewise.
3409 * event-top.h (set_editing_cmd_var): Likewise.
3410 (exec_done_display_p): Likewise.
3411 * exec.c (write_files): Likewise.
3412 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3413 (debug_fbsd_nat): Likewise.
3414 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3415 Likewise.
3416 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3417 <backtrace_past_entry> Likewise.
3418 * gdb-demangle.h (demangle): Likewise.
3419 (asm_demangle): Likewise.
3420 * gdb_bfd.c (bfd_sharing): Likewise.
3421 * gdbcore.h (write_files): Likewise.
3422 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3423 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3424 * gdbthread.h (print_thread_events): Likewise.
3425 * gdbtypes.c (opaque_type_resolution): Likewise.
3426 (strict_type_checking): Likewise.
3427 * gnu-nat.c (gnu_debug_flag): Likewise.
3428 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3429 * guile/scm-param.c (pascm_variable): Add boolval.
3430 (add_setshow_generic): Update.
3431 (pascm_param_value): Update.
3432 (pascm_set_param_value_x): Update.
3433 * hppa-tdep.c (hppa_debug): Change to bool..
3434 * infcall.c (may_call_functions_p): Likewise.
3435 (coerce_float_to_double_p): Likewise.
3436 (unwind_on_signal_p): Likewise.
3437 (unwind_on_terminating_exception_p): Likewise.
3438 * infcmd.c (startup_with_shell): Likewise.
3439 * inferior.c (print_inferior_events): Likewise.
3440 * inferior.h (startup_with_shell): Likewise.
3441 (print_inferior_events): Likewise.
3442 * infrun.c (step_stop_if_no_debug): Likewise.
3443 (detach_fork): Likewise.
3444 (debug_displaced): Likewise.
3445 (disable_randomization): Likewise.
3446 (non_stop): Likewise.
3447 (non_stop_1): Likewise.
3448 (observer_mode): Likewise.
3449 (observer_mode_1): Likewise.
3450 (set_observer_mode): Update.
3451 (sched_multi): Change to bool.
3452 * infrun.h (debug_displaced): Likewise.
3453 (sched_multi): Likewise.
3454 (step_stop_if_no_debug): Likewise.
3455 (non_stop): Likewise.
3456 (disable_randomization): Likewise.
3457 * linux-tdep.c (use_coredump_filter): Likewise.
3458 (dump_excluded_mappings): Likewise.
3459 * linux-thread-db.c (auto_load_thread_db): Likewise.
3460 (check_thread_db_on_load): Likewise.
3461 * main.c (captured_main_1): Update.
3462 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3463 xx2_opt, boolean_opt>: Change to bool.
3464 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3465 * maint.c (maintenance_profile_p): Likewise.
3466 (per_command_time): Likewise.
3467 (per_command_space): Likewise.
3468 (per_command_symtab): Likewise.
3469 * memattr.c (inaccessible_by_default): Likewise.
3470 * mi/mi-main.c (mi_async): Likewise.
3471 (mi_async_1): Likewise.
3472 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3473 * nat/fork-inferior.h (startup_with_shell): Likewise.
3474 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3475 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3476 * nios2-tdep.c (nios2_debug): Likewise.
3477 * or1k-tdep.c (or1k_debug): Likewise.
3478 * parse.c (parser_debug): Likewise.
3479 * parser-defs.h (parser_debug): Likewise.
3480 * printcmd.c (print_symbol_filename): Likewise.
3481 * proc-api.c (procfs_trace): Likewise.
3482 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3483 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3484 (set_parameter_value): Update.
3485 (add_setshow_generic): Update.
3486 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3487 to bool*.
3488 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3489 int*.
3490 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3491 * record-btrace.c (record_btrace_target::store_registers): Update.
3492 * record-full.c (record_full_memory_query): Change to bool.
3493 (record_full_stop_at_limit): Likewise.
3494 * record-full.h (record_full_memory_query): Likewise.
3495 * remote-notif.c (notif_debug): Likewise.
3496 * remote-notif.h (notif_debug): Likewise.
3497 * remote.c (use_range_stepping): Likewise.
3498 (interrupt_on_connect): Likewise.
3499 (remote_break): Likewise.
3500 * ser-tcp.c (tcp_auto_retry): Likewise.
3501 * ser-unix.c (serial_hwflow): Likewise.
3502 * skip.c (debug_skip): Likewise.
3503 * solib-aix.c (solib_aix_debug): Likewise.
3504 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3505 (spu_auto_flush_cache_p): Likewise.
3506 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3507 Likewise.
3508 (struct info_print_options) <quiet>: Likewise.
3509 * symfile-debug.c (debug_symfile): Likewise.
3510 * symfile.c (auto_solib_add): Likewise.
3511 (separate_debug_file_debug): Likewise.
3512 * symfile.h (auto_solib_add): Likewise.
3513 (separate_debug_file_debug): Likewise.
3514 * symtab.c (basenames_may_differ): Likewise.
3515 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3516 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3517 (struct info_types_options) <quiet>: Likewise.
3518 * symtab.h (demangle): Likewise.
3519 (basenames_may_differ): Likewise.
3520 * target-dcache.c (stack_cache_enabled_1): Likewise.
3521 (code_cache_enabled_1): Likewise.
3522 * target.c (trust_readonly): Likewise.
3523 (may_write_registers): Likewise.
3524 (may_write_memory): Likewise.
3525 (may_insert_breakpoints): Likewise.
3526 (may_insert_tracepoints): Likewise.
3527 (may_insert_fast_tracepoints): Likewise.
3528 (may_stop): Likewise.
3529 (auto_connect_native_target): Likewise.
3530 (target_stop_and_wait): Update.
3531 (target_async_permitted): Change to bool.
3532 (target_async_permitted_1): Likewise.
3533 (may_write_registers_1): Likewise.
3534 (may_write_memory_1): Likewise.
3535 (may_insert_breakpoints_1): Likewise.
3536 (may_insert_tracepoints_1): Likewise.
3537 (may_insert_fast_tracepoints_1): Likewise.
3538 (may_stop_1): Likewise.
3539 * target.h (target_async_permitted): Likewise.
3540 (may_write_registers): Likewise.
3541 (may_write_memory): Likewise.
3542 (may_insert_breakpoints): Likewise.
3543 (may_insert_tracepoints): Likewise.
3544 (may_insert_fast_tracepoints): Likewise.
3545 (may_stop): Likewise.
3546 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3547 (make_thread_apply_all_options_def_group): Change argument from int*
3548 to bool*.
3549 (thread_apply_all_command): Update.
3550 (print_thread_events): Change to bool.
3551 * top.c (confirm): Likewise.
3552 (command_editing_p): Likewise.
3553 (history_expansion_p): Likewise.
3554 (write_history_p): Likewise.
3555 (info_verbose): Likewise.
3556 * top.h (confirm): Likewise.
3557 (history_expansion_p): Likewise.
3558 * tracepoint.c (disconnected_tracing): Likewise.
3559 (circular_trace_buffer): Likewise.
3560 * typeprint.c (print_methods): Likewise.
3561 (print_typedefs): Likewise.
3562 * utils.c (debug_timestamp): Likewise.
3563 (sevenbit_strings): Likewise.
3564 (pagination_enabled): Likewise.
3565 * utils.h (sevenbit_strings): Likewise.
3566 (pagination_enabled): Likewise.
3567 * valops.c (overload_resolution): Likewise.
3568 * valprint.h (struct value_print_options) <prettyformat_arrays,
3569 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3570 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3571 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3572 Likewise.
3573 * windows-nat.c (new_console): Likewise.
3574 (cygwin_exceptions): Likewise.
3575 (new_group): Likewise.
3576 (debug_exec): Likewise.
3577 (debug_events): Likewise.
3578 (debug_memory): Likewise.
3579 (debug_exceptions): Likewise.
3580 (useshell): Likewise.
3581 * windows-tdep.c (maint_display_all_tib): Likewise.
3582 * xml-support.c (debug_xml): Likewise.
3583
3584 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3585
3586 * source.c (prepare_path_for_appending): New function.
3587 (openp): Make use of new function.
3588 (find_and_open_source): Search for the compilation directory and
3589 source file as a relative path beneath the directory search path.
3590
3591 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * source-cache.c (source_cache::get_line_charpos): Catch
3594 exceptions and return false, this matches the behaviour documented
3595 in the header file.
3596
3597 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3598
3599 * ada-tasks.c (info_task): Remove quoting of the task's name.
3600
3601 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3602
3603 * symfile.c (auto_solib_add): Replace comment with a reference
3604 to the header file.
3605
3606 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3607
3608 * NEWS: Mention that gdb can now be compiled with Python 3
3609 on Windows.
3610
3611 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3612
3613 * maint.c (maint_print_section_data::maint_print_section_data):
3614 Force use of 'float log10 (float)' by casting the argument to
3615 float.
3616
3617 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * maint.c: Add 'cmath' include.
3620 (struct maint_print_section_data): New structure.
3621 (print_section_index): New function.
3622 (print_bfd_section_info): Add header comment, small whitespace
3623 cleanup, and update to call new print_section_index function.
3624 (print_objfile_section_info): Likewise.
3625 (maint_obj_section_from_bfd_section): New function.
3626 (print_bfd_section_info_maybe_relocated): New function.
3627 (maintenance_info_sections): Add header comment, always use
3628 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3629
3630 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3631
3632 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3633 inner scope, add check that the objfile has psymtabs before
3634 checking psymtabs_addrmap.
3635 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3636
3637 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3638
3639 * NEWS: Announce that Ada task names are now shown at more places,
3640 and between quotes (except in info task output).
3641 * gdb/ada-tasks.c (task_to_str): New function.
3642 (display_current_task_id): Call task_to_str.
3643 (task_command_1): Likewise.
3644 (print_ada_task_info): In non-mi mode, Properly align headers and data
3645 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3646
3647 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3648
3649 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3650 prstatus.pr_lwp.pr_info instead of making it up.
3651
3652 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3653
3654 * auto-load.c (auto_load_expand_dir_vars): Update.
3655 * defs.h (gdb_datadir): Change to std::string.
3656 (python_libdir): Likewise.
3657 (relocate_gdb_directory): Change return type to std::string.
3658 * guile/guile.c (gdbscm_data_directory): Update.
3659 (initialize_scheme_side): Update.
3660 * jit.c (jit_reader_dir): Change to std::string.
3661 (jit_reader_load_command): Update.
3662 * main.c (gdb_datadir): Change to std::string.
3663 (python_libdir): Likewise.
3664 (set_gdb_data_directory): Update.
3665 (relocate_path): Change to return std::string.
3666 (relocate_gdb_directory): Change to return std::string.
3667 (relocate_gdbinit_path_maybe_in_datadir): Update.
3668 (captured_main_1): Update.
3669 * python/python.c (do_start_initialization): Update.
3670 * top.c (show_gdb_datadir): Update.
3671 * xml-syscall.c (xml_init_syscalls_info): Update.
3672 (init_syscalls_info): Update.
3673
3674 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3675
3676 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3677 out of get_init_files.
3678 (get_init_files): Update.
3679
3680 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3681
3682 * main.c (get_init_files): Change to use std::string.
3683 (captured_main_1): Update.
3684 (print_gdb_help): Update.
3685
3686 2019-09-11 Ali Tamur <tamur@google.com>
3687
3688 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3689 implementation.
3690
3691 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3692
3693 * dbxread.c (read_dbx_symtab): Update.
3694 * dwarf2read.c (load_partial_dies): Update.
3695 * mdebugread.c (parse_partial_symbols): Update.
3696 (handle_psymbol_enumerators): Update.
3697 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3698 * psymtab.c (add_psymbol_to_bcache): Likewise.
3699 (add_psymbol_to_list): Likewise.
3700 * symtab.c (symbol_set_names): Likewise.
3701 * symtab.h (symbol_set_names): Likewise.
3702 * xcoffread.c (scan_xcoff_symtab): Update.
3703
3704 2019-09-11 Tom Tromey <tom@tromey.com>
3705
3706 * symfile-mem.c (symbol_file_add_from_memory): Use
3707 bfd_set_filename.
3708 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3709 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3710
3711 2019-09-10 Tom Tromey <tromey@adacore.com>
3712
3713 * dwarf-index-write.c (write_psymbols): Extend error message.
3714 (debug_names::insert): Add Ada code.
3715 (debug_names::write_psymbols): Remove Ada check.
3716 (debug_names) <m_string_obstack>: New member.
3717 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3718 (gdb_index_symbol_name_matcher::matches): Remove.
3719 (mapped_index_base::find_name_components_bounds): Add "lang"
3720 parameter.
3721 (mapped_index_base::build_name_components): Also split names
3722 according to Ada syntax.
3723 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3724 type of "match_callback".
3725 (check_match, check_find_bounds_finds)
3726 (dw2_expand_symtabs_matching): Update.
3727 (dw2_debug_names_iterator): Add new constructor.
3728 (dw2_debug_names_map_matching_symbols): New function.
3729 (dw2_debug_names_expand_symtabs_matching): Update.
3730 (dwarf2_debug_names_functions): Use
3731 dw2_debug_names_map_matching_symbols.
3732
3733 2019-09-10 Tom Tromey <tromey@adacore.com>
3734
3735 * dwarf2read.c (dw2_get_file_names_reader): Add the
3736 CU's file name to the results.
3737
3738 2019-09-10 Tom Tromey <tromey@adacore.com>
3739
3740 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3741 map_matching_symbols. Update.
3742 * dwarf2read.c (dw2_map_matching_symbols): Update.
3743 * psymtab.c (match_partial_symbol): Change type; update.
3744 (psym_map_matching_symbols): Likewise.
3745 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3746 type; update.
3747 * symfile.h (struct quick_symbol_functions)
3748 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3749 Remove "match".
3750
3751 2019-09-10 Tom Tromey <tromey@adacore.com>
3752
3753 * psymtab.c (map_block): Remove.
3754 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3755 * symtab.c (iterate_over_symbols_terminated): New function.
3756 * symtab.c (iterate_over_symbols_terminated): Declare.
3757
3758 2019-09-10 Tom Tromey <tromey@adacore.com>
3759
3760 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3761 * language.h (struct language_defn) <la_iterate_over_symbols>:
3762 Return bool.
3763 * symtab.c (iterate_over_symbols): Return bool.
3764 * symtab.h (iterate_over_symbols): Return bool.
3765
3766 2019-09-10 Tom Tromey <tromey@adacore.com>
3767
3768 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3769 (add_nonlocal_symbols): Update.
3770 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3771 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3772 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3773 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3774 Change type of "callback". Remove "data".
3775
3776
3777 2019-09-09 Ali Tamur <tamur@google.com>
3778
3779 * dwarf2read.c (comp_unit_head): Update comment.
3780 (dwarf2_dwo_name): New function declaration.
3781 (dwarf_unit_type_name): New function declaration.
3782 (read_comp_unit_head): Add support for new compilation units,
3783 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3784 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3785 (currently named as "signature") in their header. Also clarify error
3786 messages.
3787 (lookup_dwo_id): New function. Returns the dwo id of the given
3788 compile unit.
3789 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3790 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3791 functions.
3792 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3793 (dwarf2_dwo_name): Get the dwo name if present.
3794 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3795 purposes.
3796
3797 2019-09-09 Tom Tromey <tom@tromey.com>
3798
3799 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3800
3801 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3802
3803 * python/python.c (do_start_initialization): Make progname_copy static,
3804 to avoid a leak report.
3805
3806 2019-09-08 Tom Tromey <tom@tromey.com>
3807
3808 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3809
3810 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3813 Change type to gdb::optional<block_enum>.
3814 (dw2_symtab_iter_init): Change block_index parameter type
3815 to gdb::optional<block_enum>.
3816 (dw2_lookup_symbol): Change block_index parameter
3817 type to block_enum.c
3818 (dw2_debug_names_lookup_symbol): Likewise.
3819 * psymtab.c (psym_lookup_symbol): Likewise.
3820 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3821 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3822 Likewise.
3823
3824 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3825
3826 * defs.h (relocate_gdb_directory): Change int to bool in
3827 signature and rename flag to relocatable.
3828 * main.c (relocate_path): Likewise.
3829 (relocate_gdb_directory): Likewise.
3830
3831 2019-09-06 Alan Modra <amodra@gmail.com>
3832
3833 * coffread.c (coff_symfile_read): Constify filename variable.
3834 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3835 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3836 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3837 * solib.c (reload_shared_libraries_1): Likewise.
3838 * symfile.c (reread_symbols): Likewise.
3839 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3840 * solib-darwin.c (darwin_bfd_open): Likewise.
3841 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3842
3843 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3844
3845 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3846 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3847
3848 2019-09-03 Tom Tromey <tromey@adacore.com>
3849
3850 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3851 types.
3852 (has_negatives): Unbias a range type bound.
3853 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3854 * gdbtypes.c (operator==): Handle new field.
3855 (create_range_type): Add "bias" parameter.
3856 (create_static_range_type, resolve_dynamic_range): Update.
3857 * gdbtypes.h (struct range_bounds) <bias>: New member.
3858 (create_range_type): Add bias parameter.
3859 * printcmd.c (print_scalar_formatted): Unbias range types.
3860 * value.c (unpack_long): Unbias range types.
3861 (pack_long): Bias range types.
3862
3863 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3864
3865 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3866 probe arguments.
3867
3868 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3869
3870 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3871 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3872 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3873 (compile_probe_arg): Likewise.
3874 * probe.h (get_argument_count): Likewise.
3875 * solib-svr4.c (solib_event_probe_action): Likewise.
3876 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3877
3878 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3879
3880 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3881 code to here...
3882 (svr4_create_solib_event_breakpoints): ...from here.
3883
3884 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3885
3886 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3887 suffix from warning message.
3888
3889 2019-08-30 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-winsource.h (struct tui_source_window_base)
3892 <refresh_all>: Don't declare.
3893 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3894 Remove.
3895 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3896 tui_show_locator_content.
3897 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3898 declare.
3899 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3900 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3901 declare.
3902
3903 2019-08-30 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3906
3907 2019-08-30 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3910 Remove unnecessary forward declarations.
3911
3912 2019-08-30 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3915 rerender.
3916 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3917 tui_show_locator_content.
3918
3919 2019-08-30 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3922 (tui_locator_window::rerender): Rewrite using body of previous
3923 tui_show_locator_content.
3924
3925 2019-08-30 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3928 set_locator_fullname>: New methods.
3929 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3930 Rename from tui_set_locator_fullname.
3931 (tui_locator_window::set_locator_info): Rename from
3932 tui_set_locator_info. Return bool.
3933 (tui_update_locator_fullname, tui_show_frame_info): Update.
3934
3935 2019-08-30 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3938
3939 2019-08-30 Tom Tromey <tom@tromey.com>
3940
3941 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3942 call touchwin.
3943
3944 2019-08-30 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-wingeneral.c (box_win): Assume win_info and
3947 win_info->handle cannot be NULL.
3948
3949 2019-08-30 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3952 refresh_window>: Declare.
3953 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3954 resize.
3955 (tui_data_item_window::rerender): Rename from
3956 tui_display_register.
3957 (tui_data_item_window::refresh_window): New method.
3958 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3959 no-op.
3960
3961 2019-08-30 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3964 regs_column_count, current_group>: Move later. Now private.
3965 <get_current_group>: New method.
3966 * tui/tui-regs.c (tui_reg_command): Update.
3967 * tui/tui-layout.c (tui_set_layout): Update.
3968
3969 2019-08-30 Tom Tromey <tom@tromey.com>
3970
3971 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3972 (tui_data_window::rerender): Don't call
3973 check_and_display_highlight_if_needed.
3974 (tui_data_window::refresh_all): Remove call to
3975 erase_data_content.
3976
3977 2019-08-30 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3980 (tui_data_window::display_registers_from)
3981 (tui_data_window::display_reg_element_at_line)
3982 (tui_data_window::display_registers_from_line): Remove checks of
3983 "empty".
3984
3985 2019-08-30 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3988 Don't declare.
3989 * tui/tui-regs.c (tui_data_window::show_registers): Call
3990 rerender.
3991 (tui_data_window::rerender): Rename from display_all_data.
3992 (tui_data_window::rerender): Remove old implementation.
3993
3994 2019-08-30 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3997 text.
3998 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3999
4000 2019-08-29 Bernhard Wodok <barto@gmx.net>
4001 Sergio Durigan Junior <sergiodj@redhat.com>
4002
4003 PR win32/24284
4004 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4005
4006 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4007
4008 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4009 when searching for types.
4010
4011 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4012
4013 * f-lang.c (f_language_defn): Use f_print_typedef.
4014 * f-lang.h (f_print_typedef): Declare.
4015 * f-typeprint.c (f_print_typedef): Define.
4016
4017 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4018
4019 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4020
4021 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * cli/cli-utils.c (info_print_options_defs): Delete.
4024 (make_info_print_options_def_group): Delete.
4025 (extract_info_print_options): Delete.
4026 (info_print_command_completer): Delete.
4027 (info_print_args_help): Add extra parameter, and optionally
4028 include text about -n flag.
4029 * cli/cli-utils.h (struct info_print_options): Delete.
4030 (extract_info_print_options): Delete declaration.
4031 (info_print_command_completer): Delete declaration.
4032 (info_print_args_help): Add extra parameter, extend header
4033 comment.
4034 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4035 search_symbols.
4036 * stack.c (struct info_print_options): New type.
4037 (info_print_options_defs): New file scoped variable.
4038 (make_info_print_options_def_group): New static function.
4039 (info_print_command_completer): New static function.
4040 (info_locals_command): Update to use new local functions.
4041 (info_args_command): Likewise.
4042 (_initialize_stack): Add extra parameter to calls to
4043 info_print_args_help.
4044 * symtab.c (search_symbols): Add extra parameter, use this to
4045 possibly excluse non-debug symbols.
4046 (symtab_symbol_info): Add extra parameter, which is passed on to
4047 search_symbols.
4048 (struct info_print_options): New type.
4049 (info_print_options_defs): New file scoped variable.
4050 (make_info_print_options_def_group): New static function.
4051 (info_print_command_completer): New static function.
4052 (info_variables_command): Update to use local functions, and pass
4053 extra parameter through to symtab_symbol_info.
4054 (info_functions_command): Likewise.
4055 (info_types_command): Pass additional argument through to
4056 symtab_symbol_info.
4057 (rbreak_command): Pass extra argument to search_symbols.
4058 (_initialize_symtab): Add extra arguments for calls to
4059 info_print_args_help, and update help text for 'info variables',
4060 'whereis', and 'info functions' commands.
4061 * symtab.h (search_symbols): Add extra argument to declaration.
4062 * NEWS: Mention new flags.
4063
4064 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4065
4066 * symtab.c (lookup_static_symbol): Call the new function (and move
4067 it down to be next to lookup_global_symbol).
4068 (struct global_sym_lookup_data): Add block_enum member and rename to...
4069 (struct global_or_static_sym_lookup_data): ...this.
4070 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4071 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4072 (lookup_symbol_global_or_static_iterator_cb): ...this.
4073 (lookup_global_or_static_symbol): New function.
4074 (lookup_global_symbol): Call new function.
4075
4076 2019-08-26 Tom de Vries <tdevries@suse.de>
4077
4078 PR c++/24852
4079 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4080 when pc_probe.prob == NULL.
4081
4082 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4085 variable symbol_linkage to symbol_linkage_.
4086
4087 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4090 represent whether the symbol is static, dynamic, or we don't
4091 know.
4092
4093 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4094
4095 * gdb/rx-tdep.c (rx_register_names): New.
4096 (rx_register_name): Delete.
4097 (rx_psw_type): Delete.
4098 (rx_fpsw_type): Delete.
4099 (rx_register_type): Delete.
4100 (rx_gdbarch_init): Convert target-descriptions.
4101 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4102 * gdb/features/Makefile: Add rx.xml.
4103 * gdb/features/rx.xml: New.
4104 * gdb/features/rx.c: Generated.
4105 * gdb/NEWS: Mention target description support.
4106
4107 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4108
4109 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4110 *slot_ptr.
4111
4112 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4113
4114 * configure.ac: Don't check for 'dlfcn.h' (moved to
4115 gdbsupport/common.m4).
4116 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4117 'gdbsupport/'.
4118 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4119 * compile/compile-c-support.c: Include
4120 'gdbsupport/gdb-dlfcn.h'.
4121 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4122 * gdb-dlfcn.c: Move to...
4123 * gdbsupport/gdb-dlfcn.c: ... here.
4124 * gdb-dlfcn.h: Move to...
4125 * gdbsupport/gdb-dlfcn.h: ... here.
4126
4127 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4128
4129 * nios2-tdep.c (struct reg_value): Improve comments. Make
4130 the offset field signed.
4131
4132 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4133
4134 * python/lib/gdb/__init__.py (_execute_file): New function.
4135 * python/python.c (python_run_simple_file): Call gdb._execute_file
4136 on Windows.
4137
4138 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4141 all uses as this was never set to anything but a zero value.
4142
4143 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4144
4145 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4146
4147 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4148
4149 * tui/tui-data.h (tui_gen_win_info): Add an =default
4150 move constructor, required by some GCC versions.
4151
4152 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4153
4154 * go32-nat.c (go32_sysinfo): Add hygon_p.
4155
4156 2019-08-20 Tom Tromey <tom@tromey.com>
4157
4158 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4159 line_from_reg_element_no, first_reg_element_no_inline,
4160 display_all_data, delete_data_content_windows,
4161 erase_data_content>: Now private.
4162
4163 2019-08-20 Tom Tromey <tom@tromey.com>
4164
4165 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4166 (tui_unhighlight_win, tui_highlight_win)
4167 (tui_win_info::make_window): Update.
4168 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4169
4170 2019-08-20 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4173 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4174 (MAX_PID_WIDTH): Move to tui-stack.c.
4175 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4176 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4177 (MAX_PID_WIDTH): Move from tui-data.h.
4178
4179 2019-08-20 Tom Tromey <tom@tromey.com>
4180
4181 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4182 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4183 (box_win): Update.
4184 (tui_gen_win_info::make_window): Rename from tui_make_window.
4185 (tui_win_info::make_window): New method.
4186 (tui_gen_win_info::make_visible): Update.
4187 * tui/tui-source.c (tui_source_window::set_contents): Update.
4188 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4189 (tui_data_window::display_registers_from): Update.
4190 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4191 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4192 Declare.
4193 <can_box>: Remove.
4194 <title>: Remove.
4195 (struct tui_win_info) <make_window>: Declare.
4196 <can_box>: Now virtual.
4197 <title>: New member.
4198 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4199 * tui/tui-command.c (tui_cmd_window::resize): Update.
4200
4201 2019-08-20 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4204 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4205 (tui_data_window::check_register_values): Update.
4206
4207 2019-08-20 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-regs.h (struct tui_data_window): Use
4210 DISABLE_COPY_AND_ASSIGN.
4211 <regs_content>: Change type, removing unique_ptr.
4212 <tui_data_window>: Add move constructor.
4213 * tui/tui-regs.c (tui_data_window::show_registers)
4214 (tui_data_window::show_register_group)
4215 (tui_data_window::display_registers_from)
4216 (tui_data_window::display_registers_from)
4217 (tui_data_window::first_data_item_displayed)
4218 (tui_data_window::delete_data_content_windows)
4219 (tui_data_window::rerender, tui_data_window::refresh_window)
4220 (tui_data_window::check_register_values): Update.
4221
4222 2019-08-20 Tom Tromey <tom@tromey.com>
4223
4224 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4225 show_register_group>: Declare.
4226 (tui_show_register_group): Don't declare.
4227 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4228 tui_show_registers.
4229 (tui_data_window::show_register_group): Rename from
4230 tui_show_register_group.
4231 (tui_data_window::check_register_values, tui_reg_command):
4232 Update.
4233 * tui/tui-layout.c (tui_set_layout): Update.
4234
4235 2019-08-20 Tom Tromey <tom@tromey.com>
4236
4237 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4238 Declare.
4239 (tui_check_register_values): Don't declare.
4240 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4241 from tui_check_register_values.
4242 * tui/tui-hooks.c (tui_register_changed): Update.
4243
4244 2019-08-20 Tom Tromey <tom@tromey.com>
4245
4246 * tui/tui-regs.c (tui_reg_layout): Move later.
4247 (tui_show_registers): Don't enable TUI mode or change layout.
4248
4249 2019-08-20 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-regs.h (struct tui_data_item_window)
4252 <~tui_data_item_window>: Remove.
4253 <content>: Now a unique_xmalloc_ptr.
4254 * tui/tui-regs.c (tui_register_format): Return a
4255 unique_xmalloc_ptr.
4256 (tui_get_register): Update.
4257 (~tui_data_item_window): Remove.
4258 (tui_data_window::display_registers_from, tui_display_register):
4259 Update.
4260 * tui/tui-io.h (tui_expand_tabs): Update.
4261 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4262 Remove "col" parameter.
4263
4264 2019-08-20 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4267 field.
4268 * tui/tui-regs.c (~tui_data_item_window): Update.
4269
4270 2019-08-20 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4273 earlier.
4274
4275 2019-08-20 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4278
4279 2019-08-20 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-source.h (struct tui_source_window): Update.
4282 * tui/tui-regs.c (tui_show_registers): Update.
4283 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4284 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4285 (NO_REGS_STRING): Remove defines.
4286
4287 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4288
4289 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4290 unnecessary thread walk if remote doesn't support the packet.
4291
4292 2019-08-19 Tom Tromey <tromey@adacore.com>
4293
4294 * python/py-value.c (value_has_field): Fix indentation.
4295
4296 2019-08-19 Tom Tromey <tromey@adacore.com>
4297
4298 * printcmd.c (do_one_display, info_display_command): Update.
4299 * block.h (contained_in): Return bool. Add allow_nested
4300 parameter.
4301 * block.c (contained_in): Return bool. Add allow_nested
4302 parameter.
4303
4304 2019-08-19 Tom Tromey <tom@tromey.com>
4305
4306 * configure: Rebuild.
4307 * configure.ac: Disallow the combination of -static-libstdc++ and
4308 source highlight.
4309 * source-cache.c (get_language_name): Handle rust.
4310 (source_cache::get_source_lines): Ignore highlighting exceptions.
4311
4312 2019-08-16 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4315 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4316 (struct tui_source_window_base) <make_visible, refresh_window,
4317 resize>: Remove methods.
4318 <execution_info>: Remove field.
4319 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4320 (tui_show_source_line, tui_source_window_base)
4321 (~tui_source_window_base): Update.
4322 (tui_source_window_base::resize)
4323 (tui_source_window_base::make_visible)
4324 (tui_source_window_base::refresh_window): Remove.
4325 (tui_source_window_base::update_exec_info): Update.
4326 * tui/tui-source.c (tui_source_window::set_contents): Update.
4327 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4328
4329 2019-08-16 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4332 deprecated_query_hook.
4333
4334 2019-08-16 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4337 (tui_update_source_windows_with_line): Update.
4338 * tui/tui-source.h (struct tui_source_window)
4339 <show_symtab_source>: Declare.
4340 (tui_show_symtab_source): Don't declare.
4341 * tui/tui-source.c (tui_show_symtab_source): Rename from
4342 tui_show_symtab_source.
4343
4344 2019-08-16 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-winsource.h (struct tui_source_window_base)
4347 <set_contents>: Declare.
4348 * tui/tui-winsource.c
4349 (tui_source_window_base::update_source_window_as_is): Update.
4350 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4351 Declare.
4352 (tui_set_source_content): Don't declare.
4353 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4354 tui_set_source_content.
4355 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4356 Declare.
4357 (tui_set_disassem_content): Don't declare.
4358 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4359 tui_set_disassem_content.
4360
4361 2019-08-16 Tom Tromey <tom@tromey.com>
4362
4363 * tui/tui-winsource.h (struct tui_source_window_base)
4364 <update_breakpoint_info>: Declare.
4365 (tui_update_breakpoint_info): Don't declare.
4366 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4367 (tui_update_all_breakpoint_info): Update.
4368 (tui_source_window_base::update_breakpoint_info): Rename from
4369 tui_update_breakpoint_info.
4370 (tui_source_window_base::update_exec_info): Update.
4371
4372 2019-08-16 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-winsource.h (struct tui_source_window_base)
4375 <update_source_window>: Declare.
4376 (tui_update_source_window): Don't declare.
4377 * tui/tui-winsource.c
4378 (tui_source_window_base::update_source_window): Rename from
4379 tui_update_source_window.
4380 (tui_source_window_base::rerender): Update.
4381 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4382 * tui/tui-disasm.c (tui_show_disassem)
4383 (tui_show_disassem_and_update_source)
4384 (tui_disasm_window::maybe_update): Update.
4385
4386 2019-08-16 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-winsource.h (struct tui_source_window_base)
4389 <update_source_window_as_is>: Declare.
4390 (tui_update_source_window_as_is): Don't declare.
4391 * tui/tui-winsource.c (tui_update_source_window): Update
4392 (tui_source_window_base::update_source_window_as_is): Rename from
4393 tui_update_source_window_as_is.
4394 (tui_source_window_base::refill): Update.
4395 * tui/tui-source.c (tui_show_symtab_source): Update.
4396 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4397 Update.
4398
4399 2019-08-16 Tom Tromey <tom@tromey.com>
4400
4401 * tui/tui-winsource.h (tui_update_source_window)
4402 (tui_update_source_window_as_is): Remove "noerror" parameter.
4403 * tui/tui-winsource.c (tui_update_source_window)
4404 (tui_update_source_window_as_is): Remove "noerror" parameter.
4405 (tui_update_source_windows_with_addr)
4406 (tui_update_source_windows_with_line)
4407 (tui_source_window_base::rerender)
4408 (tui_source_window_base::refill): Update.
4409 * tui/tui-source.h (tui_set_source_content)
4410 (tui_show_symtab_source): Remove "noerror" parameter.
4411 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4412 parameter.
4413 (tui_show_symtab_source): Likewise.
4414 (tui_source_window::maybe_update): Update.
4415 * tui/tui-disasm.c (tui_show_disassem)
4416 (tui_show_disassem_and_update_source)
4417 (tui_disasm_window::do_scroll_vertical)
4418 (tui_disasm_window::maybe_update): Update.
4419
4420 2019-08-16 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui.c (tui_is_window_visible): Update.
4423 * tui/tui-wingeneral.c (tui_make_window)
4424 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4425 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4426 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4427 (tui_set_win_height_command, parse_scrolling_args): Update.
4428 * tui/tui-source.c (tui_source_window::style_changed): Update.
4429 * tui/tui-regs.c (tui_show_registers)
4430 (tui_data_window::first_data_item_displayed)
4431 (tui_data_window::delete_data_content_windows)
4432 (tui_check_register_values, tui_reg_command): Update.
4433 * tui/tui-disasm.c (tui_show_disassem): Update.
4434 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4435 method.
4436 <is_visible>: Remove field.
4437 * tui/tui-data.c (tui_next_win, tui_prev_win)
4438 (tui_delete_invisible_windows): Update.
4439
4440 2019-08-16 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-winsource.h (struct tui_source_window_base)
4443 <m_has_locator>: Remove.
4444 * tui/tui-layout.c (show_source_disasm_command, show_data)
4445 (show_source_or_disasm_and_command): Update.
4446
4447 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4448
4449 * NEWS (Other MI changes): New subsection.
4450 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4451 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4452 * arch-utils.c (default_get_pc_address_flags): New function.
4453 * arch-utils.h (default_get_pc_address_flags): New declaration.
4454 * gdbarch.sh: Add get_pc_address_flags.
4455 * gdbarch.c: Regenerate.
4456 * gdbarch.h: Likewise.
4457 * stack.c (print_pc): New function.
4458 (print_frame_info) (print_frame): Call print_pc.
4459
4460 2019-08-16 Tom de Vries <tdevries@suse.de>
4461
4462 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4463 print_objfile_section_info.
4464
4465 2019-08-15 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4468 calling update_cmdwin_start_line.
4469 * tui/tui-winsource.h (struct tui_source_window_base)
4470 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4471 <rerender>: Declare.
4472 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4473 Call rerender.
4474 (tui_source_window_base::set_new_height): Remove.
4475 (tui_source_window_base::rerender): Rename from
4476 do_make_visible_with_new_height.
4477 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4478 resize method.
4479 (tui_win_info::make_invisible_and_set_new_height)
4480 (tui_win_info::make_visible_with_new_height): Remove.
4481 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4482 Declare.
4483 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4484 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4485 do_make_visible_with_new_height>: Don't declare.
4486 <rerender>: Declare.
4487 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4488 set_new_height.
4489 (tui_data_window::do_make_visible_with_new_height): Remove.
4490 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4491 call tui_show_locator_content.
4492 (tui_gen_win_info::resize): Call rerender.
4493 (show_source_or_disasm_and_command): Don't call
4494 tui_show_locator_content.
4495 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4496 method.
4497 (struct tui_win_info) <rerender>: Declare.
4498 <set_new_height, make_invisible_and_set_new_height,
4499 make_visible_with_new_height>: Don't declare.
4500 * tui/tui-data.c (tui_win_list::rerender): New method.
4501 * tui/tui-command.h (struct tui_cmd_window)
4502 <do_make_visible_with_new_height>: Don't declare.
4503 * tui/tui-command.c
4504 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4505
4506 2019-08-15 Tom Tromey <tromey@adacore.com>
4507
4508 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4509 * ada-lang.c (ada_enum_name): Likewise.
4510
4511 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4512
4513 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4514 leading underscore.
4515 (GdbOutputErrorFile): Likewise.
4516 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4517 accordingly.
4518 (execute_unwinders): Rename to have a leading underscore.
4519 (auto_load_packages): Likewise.
4520 (global scope): Adjust call to auto_load_packages accordingly.
4521 (GdbSetPythonDirectory): Likewise.
4522 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4523 instead of execute_unwinders.
4524
4525 2019-08-15 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4528 (show_data): Don't change window visibility.
4529 (tui_gen_win_info::resize): Remove special case for command
4530 window. Use wresize, when available.
4531 (show_source_or_disasm_and_command): Don't change window
4532 visibility.
4533 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4534 <make_visible>: New method.
4535 * tui/tui-command.c (tui_cmd_window::resize): New method.
4536
4537 2019-08-15 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4540 (struct tui_source_windows): New.
4541 * tui/tui-winsource.c (tui_display_main): Update.
4542 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4543 (new_height_ok, parse_scrolling_args): Update.
4544 * tui/tui-layout.c (show_layout, show_data): Update.
4545 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4546 (tui_add_to_source_windows): Don't declare.
4547 * tui/tui-data.c (source_windows, tui_source_windows)
4548 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4549
4550 2019-08-15 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4553 Rename from reset.
4554 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4555 * tui/tui-layout.c (show_source_disasm_command, show_data):
4556 Update.
4557 (tui_gen_win_info::resize): Rename.
4558 (show_source_or_disasm_and_command): Update.
4559 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4560 reset.
4561
4562 2019-08-15 Tom Tromey <tom@tromey.com>
4563
4564 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4565 * tui/tui-interp.c (tui_interp::init): Don't call
4566 tui_initialize_static_data.
4567 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4568
4569 2019-08-15 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4572 examine tui_win_list.
4573
4574 2019-08-15 Tom Tromey <tom@tromey.com>
4575
4576 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4577 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4578 tui_clear_source_content.
4579 (tui_clear_source_content): Remove.
4580 (tui_source_window_base::do_erase_source_content): Hoist call to
4581 content.clear().
4582 * tui/tui-stack.c (tui_show_frame_info): Don't call
4583 tui_clear_source_content.
4584
4585 2019-08-15 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-winsource.h (struct tui_source_window_base)
4588 <do_erase_source_content>: New method.
4589 <erase_source_content>: New method.
4590 (tui_erase_source_content): Don't declare.
4591 * tui/tui-winsource.c (tui_clear_source_content): Update.
4592 (tui_source_window_base::do_erase_source_content): Rename from
4593 tui_erase_source_content.
4594 (tui_source_window_base::show_source_content): Update.
4595 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4596 * tui/tui-source.h (struct tui_source_window)
4597 <erase_source_content>: New method.
4598 * tui/tui-disasm.h (struct tui_disasm_window)
4599 <erase_source_content>: New method.
4600
4601 2019-08-15 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4604 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4605 constructor.
4606 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4607 * tui/tui-source.c (tui_set_source_content): Update.
4608 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4609
4610 2019-08-15 Tom Tromey <tom@tromey.com>
4611
4612 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4613 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4614 tui-source.c.
4615 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4616 Declare.
4617 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4618 method.
4619 (tui_source_window::maybe_update): Update.
4620
4621 2019-08-15 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4624 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4625 tui-disasm.c.
4626 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4627 Declare.
4628 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4629 method.
4630 (tui_disasm_window::maybe_update): Update.
4631
4632 2019-08-15 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-winsource.h (struct tui_source_window_base)
4635 <maybe_update>: Declare.
4636 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4637 method.
4638 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4639 Declare.
4640 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4641 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4642 Declare.
4643 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4644
4645 2019-08-15 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4648
4649 2019-08-15 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-wingeneral.c: Include tui-stack.h.
4652 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4653 (struct tui_locator_window): Move from tui-data.h.
4654 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4655 (tui_initialize_static_data): Move from tui-data.c.
4656 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4657 (struct tui_locator_window): Move to tui-stack.c.
4658 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4659 (tui_initialize_static_data): Move to tui-stack.c.
4660
4661 2019-08-15 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-layout.c (show_source_disasm_command)
4664 (show_source_or_disasm_and_command): Use make_visible method, not
4665 tui_make_window.
4666 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4667 Remove.
4668
4669 2019-08-15 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-wingeneral.h (tui_make_window): Update.
4672 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4673 parameter.
4674 (tui_gen_win_info::make_visible): Update.
4675 * tui/tui-regs.c (tui_data_window::display_registers_from):
4676 Update.
4677 * tui/tui-layout.c (show_source_disasm_command)
4678 (show_source_or_disasm_and_command): Update.
4679 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4680 (enum tui_box): Remove.
4681 (struct tui_win_info) <can_box>: New method.
4682 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4683 method.
4684
4685 2019-08-15 Tom de Vries <tdevries@suse.de>
4686
4687 * linux-nat-trad.c: Include gdbarch.h.
4688
4689 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4690
4691 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4692 register sizes.
4693
4694 2019-08-14 Tom Tromey <tromey@adacore.com>
4695
4696 * darwin-nat.c: Include gdbarch.h.
4697 * darwin-nat-info.c: Include gdbarch.h.
4698
4699 2019-08-13 Tom Tromey <tom@tromey.com>
4700
4701 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4702 Remove.
4703 * tui/tui-data.c (tui_initialize_static_data): Update.
4704
4705 2019-08-13 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-winsource.h (struct tui_exec_info_window)
4708 <~tui_exec_info_window, maybe_allocate_content, get_content,
4709 m_content>: Remove.
4710 (struct tui_source_window_base) <set_exec_info_content,
4711 show_exec_info_content>: Don't declare.
4712 * tui/tui-winsource.c
4713 (tui_exec_info_window::maybe_allocate_content): Remove.
4714 (tui_source_window_base::update_exec_info): Rename from
4715 set_exec_info_content.
4716 (tui_source_window_base::show_exec_info_content)
4717 (tui_source_window_base::update_exec_info): Remove.
4718
4719 2019-08-13 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4722 declare.
4723 * tui/tui-winsource.c (tui_update_source_window_as_is)
4724 (tui_update_source_windows_with_addr, tui_erase_source_content):
4725 Update.
4726 (tui_clear_exec_info_content): Remove.
4727
4728 2019-08-13 Tom Tromey <tom@tromey.com>
4729
4730 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4731 declare.
4732 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4733 call tui_erase_exec_info_content.
4734 (tui_clear_exec_info_content): Rename from
4735 tui_erase_exec_info_content.
4736 (tui_clear_exec_info_content): Delete.
4737
4738 2019-08-13 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-winsource.h (struct tui_source_window_base)
4741 <show_exec_info_content>: Declare.
4742 (tui_show_exec_info_content): Don't declare.
4743 * tui/tui-winsource.c
4744 (tui_source_window_base::show_exec_info_content): Rename from
4745 tui_show_exec_info_content.
4746 (tui_source_window_base::update_exec_info): Update.
4747
4748 2019-08-13 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4751 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4752 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4753 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4754 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4755 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4756 ... here.
4757
4758 2019-08-13 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-winsource.h (struct tui_source_window_base)
4761 <update_exec_info>: Declare.
4762 (tui_update_exec_info): Don't declare.
4763 * tui/tui-winsource.c (tui_update_source_window_as_is)
4764 (tui_source_window_base::refresh_all)
4765 (tui_update_all_breakpoint_info): Update.
4766 (tui_source_window_base::update_exec_info): Rename from
4767 tui_update_exec_info.
4768 * tui/tui-stack.c (tui_show_frame_info): Update.
4769
4770 2019-08-13 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-winsource.h (struct tui_source_window_base)
4773 <set_exec_info_content>: Declare.
4774 (tui_set_exec_info_content): Don't declare.
4775 * tui/tui-winsource.c
4776 (tui_source_window_base::set_exec_info_content): Rename from
4777 tui_set_exec_info_content.
4778 (tui_update_exec_info): Update.
4779
4780 2019-08-13 Tom Tromey <tom@tromey.com>
4781
4782 * tui/tui-winsource.h (struct tui_source_window_base)
4783 <show_source_content>: Declare.
4784 (tui_show_source_content): Don't declare.
4785 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4786 (tui_source_window_base::show_source_content): Rename from
4787 tui_show_source_content.
4788 (tui_source_window_base::refresh_all): Update.
4789 * tui/tui-layout.c (show_source_disasm_command)
4790 (show_source_or_disasm_and_command): Update.
4791
4792 2019-08-13 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-winsource.c (tui_erase_source_content)
4795 (tui_show_source_content, tui_source_window_base::refresh_all):
4796 Update.
4797 * tui/tui-wingeneral.h
4798 (tui_check_and_display_highlight_if_needed): Don't declare.
4799 * tui/tui-wingeneral.c
4800 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4801 check_and_display_highlight_if_needed.
4802 * tui/tui-win.c (tui_rehighlight_all)
4803 (tui_win_info::make_visible_with_new_height): Update.
4804 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4805 (tui_data_window::erase_data_content)
4806 (tui_data_window::display_all_data): Update.
4807 * tui/tui-data.h (struct tui_win_info)
4808 <check_and_display_highlight_if_needed>: Declare.
4809
4810 2019-08-13 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-win.c (tui_resize_all): Call
4813 tui_delete_invisible_windows.
4814 * tui/tui-layout.c (show_layout): Call
4815 tui_delete_invisible_windows.
4816 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4817 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4818
4819 2019-08-13 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4822 tui_add_win_to_layout.
4823
4824 2019-08-13 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4827 * tui/tui-layout.c (tui_default_win_height): Now static.
4828
4829 2019-08-13 Tom Tromey <tom@tromey.com>
4830
4831 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4832 single switch.
4833 (show_source_disasm_command, show_source_or_disasm_and_command):
4834 Don't check current layout.
4835
4836 2019-08-13 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-wingeneral.c (make_all_visible): Remove.
4839 (tui_make_all_invisible): Simplify.
4840 * tui/tui-layout.c (tui_make_all_invisible): Move from
4841 tui-wingeneral.c; simplify.
4842 (show_layout): Hoist call to tui_make_all_invisible.
4843 (show_data): Don't call tui_make_all_invisible.
4844
4845 2019-08-13 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4848 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4849
4850 2019-08-13 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4853 tui-data.c.
4854 (show_source_disasm_command, show_data)
4855 (show_source_or_disasm_and_command): Don't use
4856 tui_set_current_layout_to.
4857 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4858 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4859 tui-layout.c.
4860 (tui_set_current_layout_to): Remove.
4861
4862 2019-08-13 Tom Tromey <tom@tromey.com>
4863
4864 * tui/tui-layout.c (tui_set_layout): Update.
4865 * tui/tui-data.h (struct tui_layout_def): Remove.
4866 (tui_layout_def): Don't declare.
4867 * tui/tui-data.c (layout_def): Remove.
4868 (tui_layout_def): Remove.
4869
4870 2019-08-13 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-winsource.h (struct tui_source_window_base)
4873 <clear_detail>: No longer "override".
4874 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4875 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4876 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4877 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4878 Remove.
4879 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4880
4881 2019-08-13 Tom Tromey <tromey@adacore.com>
4882
4883 * tracepoint.c: Don't include readline.h or history.h.
4884
4885 2019-08-12 Tom Tromey <tom@tromey.com>
4886
4887 * configure: Rebuild.
4888 * configure.ac: Check for readline 7.
4889 * NEWS: Mention readline 7 requirement.
4890 * README: Update.
4891
4892 2019-08-12 Tom Tromey <tom@tromey.com>
4893
4894 * mingw-hdep.c (gdb_select): Remove readline hack.
4895
4896 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4897
4898 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4899 when the function fails.
4900
4901 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4902
4903 * s390-tdep.c (s390_type_align): New function.
4904 (s390_gdbarch_init): Set it as type_align gdbarch method.
4905
4906 2019-08-09 Tom de Vries <tdevries@suse.de>
4907
4908 PR gdb/24591
4909 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4910 pc_low with relocation offset.
4911
4912 2019-08-07 Tom Tromey <tromey@adacore.com>
4913
4914 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4915 (print_frame_args): Update.
4916 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4917 Update.
4918 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4919 * frame.h (struct frame_arg): Add initializers.
4920 <error>: Now a unique_xmalloc_ptr.
4921
4922 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4923
4924 * NEWS: Expand the Pointer Authentication entry.
4925 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4926 (aarch64_frame_unmask_lr): ... to this.
4927 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4928 Call aarch64_frame_unmask_lr.
4929 * frame.c (struct frame_info): Add "masked" variable.
4930 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4931 (fprint_frame): Check for masked pc.
4932 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4933 declarations.
4934 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4935 * stack.c (print_frame): Check for masked pc.
4936
4937 2019-08-06 Tom Tromey <tom@tromey.com>
4938
4939 * stabsread.c (patch_block_stabs, read_one_struct_field)
4940 (read_enum_type): Use obstack_strndup.
4941 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4942 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4943 * dwarf2read.c (guess_full_die_structure_name)
4944 (anonymous_struct_prefix): Use obstack_strndup.
4945 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4946 * c-exp.y (yylex): Use obstack_strndup.
4947 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4948 (write_var_or_type): Use obstack_strndup.
4949
4950 2019-08-06 Tom Tromey <tom@tromey.com>
4951
4952 * symfile.c (reread_symbols): Use obstack_strdup.
4953 * stabsread.c (read_type): Use obstack_strdup.
4954 * gdb_obstack.h (obstack_strdup): New overload.
4955 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4956 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4957 (dwarf2_canonicalize_name): Use obstack_strdup.
4958 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4959 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4960 Use obstack_strdup.
4961
4962 2019-08-06 Tom Tromey <tom@tromey.com>
4963
4964 * gdb_obstack.h (obstack_strdup): Define.
4965 * gdb_obstack.c (obstack_strdup): Don't define.
4966
4967 2019-08-06 Tom Tromey <tom@tromey.com>
4968
4969 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4970 obstack_strdup.
4971 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4972 obstack_strdup.
4973 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4974 * stabsread.c (common_block_start): Use obstack_strdup.
4975 * objfiles.c (set_objfile_main_name, objfile): Use
4976 obstack_strdup.
4977 * namespace.c (add_using_directive): Use obstack_strdup.
4978 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4979 * jit.c (finalize_symtab): Use obstack_strdup.
4980 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4981 (guess_partial_die_structure_name, partial_die_info::fixup)
4982 (dwarf2_name): Use obstack_strdup.
4983 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4984 obstack_strdup.
4985 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4986 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4987 obstack_strdup.
4988 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4989
4990 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4991
4992 * unittests/help-doc-selftests.c: New file.
4993 * Makefile.in: Add the new file.
4994
4995 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4996
4997 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4998 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4999 the full first line, except when FOR_VALUE_PREFIX. In this case,
5000 the trailing '.' is not output, and the first character is uppercased.
5001 (print_help_for_command): Update call to print_doc_line.
5002 (print_doc_of_command): Likewise.
5003 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5004 * cli/cli-option.c (append_indented_doc): Do not append newline.
5005 (build_help_option): Append newline after first appended_indented_doc
5006 only if a second call is done.
5007 (build_help): Append 2 new lines before each option, except the first
5008 one.
5009 * compile/compile.c (_initialize_compile): Add new lines after
5010 %OPTIONS%, when not at the end of the help.
5011 Change help doc or code
5012 producing the help doc to respect the invariants.
5013 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5014 Also removed the new line after 'Options:', as all other commands
5015 do not put an empty line between 'Options:' and the first option.
5016 * printcmd.c (_initialize_printcmd): Likewise.
5017 * stack.c (_initialize_stack): Likewise.
5018 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5019 incorrectly telling COMMAND is optional.
5020 * ada-lang.c (_initialize_ada_language): Change help doc or code
5021 producing the help doc to respect the invariants.
5022 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5023 * breakpoint.c (_initialize_breakpoint): Likewise.
5024 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5025 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5026 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5027 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5028 _initialize_cli_style): Likewise.
5029 * corelow.c (core_target_info): Likewise.
5030 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5031 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5032 * filesystem.c (_initialize_filesystem): Likewise.
5033 * frame.c (_initialize_frame): Likewise.
5034 * gnu-nat.c (add_task_commands): Likewise.
5035 * infcall.c (_initialize_infcall): Likewise.
5036 * infcmd.c (_initialize_infcmd): Likewise.
5037 * interps.c (_initialize_interpreter): Likewise.
5038 * language.c (_initialize_language): Likewise.
5039 * linux-fork.c (_initialize_linux_fork): Likewise.
5040 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5041 * maint.c (_initialize_maint_cmds): Likewise.
5042 * memattr.c (_initialize_mem): Likewise.
5043 * printcmd.c (_initialize_printcmd): Likewise.
5044 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5045 _RegEx): Likewise.
5046 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5047 * record-btrace.c (_initialize_record_btrace): Likewise.
5048 * record-full.c (_initialize_record_full): Likewise.
5049 * record.c (_initialize_record): Likewise.
5050 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5051 * regcache.c (_initialize_regcache): Likewise.
5052 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5053 _initialize_remote): Likewise.
5054 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5055 * serial.c (_initialize_serial): Likewise.
5056 * skip.c (_initialize_step_skip): Likewise.
5057 * source.c (_initialize_source): Likewise.
5058 * stack.c (_initialize_stack): Likewise.
5059 * symfile.c (_initialize_symfile): Likewise.
5060 * symtab.c (_initialize_symtab): Likewise.
5061 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5062 * top.c (init_main): Likewise.
5063 * tracefile-tfile.c (tfile_target_info): Likewise.
5064 * tracepoint.c (_initialize_tracepoint): Likewise.
5065 * tui/tui-win.c (_initialize_tui_win): Likewise.
5066 * utils.c (add_internal_problem_command): Likewise.
5067 * valprint.c (value_print_option_defs): Likewise.
5068
5069 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5070
5071 PR build/24886
5072 * configure.ac: Drop enable-libmcheck support.
5073 * configure, config.in: Rebuild.
5074 * libmcheck.m4: Remove.
5075 * acinclude.m4: Don't include it.
5076 * Makefile.in: Don't distribute it.
5077 * top.c (print_gdb_configuration): Don't mention it.
5078
5079 2019-08-06 Tom Tromey <tom@tromey.com>
5080
5081 * utils.c (set_output_style): Sometimes pass stream to
5082 emit_style_escape.
5083 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5084 * record-btrace.c (btrace_insn_history): Update.
5085 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5086 method.
5087 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5088 Update initializers.
5089 <m_uiout>: New field.
5090 <m_di>: Move lower.
5091 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5092 Remove "uiout" parameter.
5093 (dump_insns): Update.
5094 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5095 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5096
5097 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5098
5099 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5100 (error_in_psymtab_expansion): Likewise.
5101 (lookup_symbol_via_quick_fns): Likewise.
5102 (basic_lookup_transparent_type_quick): Likewise.
5103 (basic_lookup_transparent_type_1): Likewise.
5104
5105 2019-08-06 Tom Tromey <tromey@adacore.com>
5106
5107 * source.c (last_source_error): Now bool.
5108 (print_source_lines_base): Make "noprint" bool. Only open
5109 source file when last_source_visited changes.
5110
5111 2019-08-06 Tom Tromey <tromey@adacore.com>
5112
5113 * annotate.c (annotate_source_line): Use g_source_cache.
5114 * source-cache.c (source_cache::get_plain_source_lines): Change
5115 parameters. Populate m_offset_cache.
5116 (source_cache::ensure): New method.
5117 (source_cache::get_line_charpos): New method.
5118 (extract_lines): Move lower. Change parameters.
5119 (source_cache::get_source_lines): Move lower.
5120 * source-cache.h (class source_cache): Update comment.
5121 <get_line_charpos>: New method.
5122 <get_source_lines>: Update comment.
5123 <clear>: Clear m_offset_cache.
5124 <get_plain_source_lines>: Change parameters.
5125 <ensure>: New method
5126 <m_offset_cache>: New member.
5127 * source.c (forget_cached_source_info_for_objfile): Update.
5128 (info_source_command): Use g_source_cache.
5129 (find_source_lines, open_source_file_with_line_charpos): Remove.
5130 (print_source_lines_base, search_command_helper): Use g_source_cache.
5131 * source.h (open_source_file_with_line_charpos): Don't declare.
5132 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5133 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5134 Use g_source_cache.
5135
5136 2019-08-06 Tom Tromey <tromey@adacore.com>
5137
5138 * source-cache.c (source_cache::get_plain_source_lines):
5139 Remove "first_line" and "last_line" parameters.
5140 (source_cache::get_source_lines): Cache plain text.
5141 * source-cache.h (class source_cache)
5142 <get_plain_source_lines>: Update.
5143
5144 2019-08-06 Tom Tromey <tromey@adacore.com>
5145
5146 * source-cache.c (extract_lines): No longer a method.
5147 Changed type of parameter. Include final newline.
5148 (selftests::extract_lines_test): New function.
5149 (_initialize_source_cache): Likewise.
5150 * source-cache.h (class source_cache)
5151 <extract_lines>: Don't declare.
5152
5153 2019-08-06 Tom Tromey <tromey@adacore.com>
5154
5155 * breakpoint.c (init_breakpoint_sal): Update.
5156 (breakpoint): Update.
5157 * breakpoint.h (struct breakpoint) <filter>: Now a
5158 unique_xmalloc_ptr.
5159
5160 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5161
5162 * NEWS: Mention dictionary access on blocks.
5163 * python/py-block.c (blpy_getitem): New function.
5164 (block_object_as_mapping): New struct.
5165 (block_object_type): Use new struct for tp_as_mapping field.
5166
5167 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5168
5169 * objfiles.h (objfile): Add a comment describing partial symbols.
5170
5171 2019-08-05 Tom Tromey <tromey@adacore.com>
5172
5173 * compile/compile.c (_initialize_compile): Use _(), not N_().
5174 * thread.c (_initialize_thread): Use _(), not N_().
5175 * stack.c (_initialize_stack): Use _(), not N_().
5176 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5177
5178 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5179
5180 * dwarf2read.c (struct dw2_symtab_iterator):
5181 <want_specific_block>: Remove.
5182 <block_index>: Change type to gdb::optional.
5183 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5184 change type of BLOCK_INDEX parameter to gdb::optional.
5185 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5186 (dw2_lookup_symbol): Don't pass argument for
5187 WANT_SPECIFIC_BLOCK.
5188 (dw2_expand_symtabs_for_function): Don't pass argument for
5189 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5190 (class dw2_debug_names_iterator)
5191 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5192 parameter, change BLOCK_INDEX type to gdb::optional.
5193 <m_want_specific_block>: Remove.
5194 <m_block_index>: Change type to gdb::optional.
5195 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5196 gdb::optional. Re-write in function of gdb::optional.
5197 (dw2_debug_names_lookup_symbol): Don't pass argument for
5198 WANT_SPECIFIC_BLOCK.
5199 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5200 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5201 BLOCK_INDEX.
5202
5203 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5204
5205 * NEWS: Mention changes to "info sources" command.
5206
5207 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5208
5209 * symtab.c (filename_partial_match_opts): New struct type.
5210 (struct output_source_filename_data): New members
5211 regexp, c_regexp, partial_match.
5212 (output_source_filename): Use new members to decide to print file.
5213 (info_sources_option_defs): New variable.
5214 (make_info_sources_options_def_group, print_info_sources_header,
5215 info_sources_command_completer):
5216 New functions.
5217 (info_sources_command): Read new optional arguments.
5218 (_initialize_symtab): Update info sources help.
5219
5220 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5221
5222 * ada-lang.c (exception_support_info_v0): Renamed from...
5223 (default_exception_support_info): ... this. Create new
5224 definition for v1.
5225 (ada_has_this_exception_support): Look up catch_handlers_sym.
5226 (ada_exception_support_info_sniffer): Try v0 after default.
5227
5228 2019-08-01 Tom Tromey <tromey@adacore.com>
5229
5230 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5231 gdbarch.h.
5232
5233 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5234
5235 * s12z-tdep.c: Fix include path for s12z-opc.h.
5236
5237 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5238
5239 * NEWS: Require GNU make 3.82.
5240
5241 2019-07-16 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5244 declare.
5245
5246 2019-07-30 Tom Tromey <tromey@adacore.com>
5247
5248 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5249
5250 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5251
5252 * printcmd.c (print_address_symbolic): Print negative offsets.
5253 (build_address_symbolic): Force signed arithmetic when computing
5254 offset.
5255
5256 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5257
5258 PR/24474: Add a function to lookup static variables.
5259 * NEWS: Mention this new function.
5260 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5261 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5262 * python/python.c (python_GdbMethods): Add new function.
5263
5264 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5265
5266 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5267 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5268 (objfpy_lookup_static_symbol): New function.
5269 (objfile_object_methods): Add new functions.
5270
5271 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5272
5273 * NEWS: Mention 'set|show print frame-info'. Mention new
5274 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5275 backtrace argument. Mention that python frame filtering code
5276 is now consistent with what 'backtrace' command prints.
5277
5278 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5279
5280 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5281 comments.
5282 (print_frame_info_auto, print_frame_info_source_line,
5283 print_frame_info_location, print_frame_info_source_and_location,
5284 print_frame_info_location_and_address, print_frame_info_short_location):
5285 New declarations.
5286 (struct frame_print_options): New member print_frame_info.
5287 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5288 * stack.h (get_user_print_what_frame_info): New declaration.
5289 (frame_show_address): New declaration.
5290 * stack.c (print_frame_arguments_choices): New value 'presence'.
5291 (print_frame_info_auto, print_frame_info_source_line,
5292 print_frame_info_location, print_frame_info_source_and_location,
5293 print_frame_info_location_and_address, print_frame_info_short_location,
5294 print_frame_info_choices, print_frame_info_print_what): New definitions.
5295 (print_frame_args): Only print dots for args if print frame-arguments
5296 is 'presence'.
5297 (frame_print_option_defs): New element for "frame-info".
5298 (get_user_print_what_frame_info): New function.
5299 (frame_show_address): Make non static. Move comment to stack.h.
5300 (print_frame_info_to_print_what): New function.
5301 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5302 to decide what to print.
5303 (backtrace_command_1): Handle the new print_frame_arguments_presence
5304 value.
5305 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5306 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5307 (py_print_frame): In non-mi mode, use LOCATION as default for
5308 print_what, similarly to frame information printed directly by
5309 backtrace command. Handle frame-info user option in non MI mode.
5310
5311 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5312
5313 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5314 Add case for debugging 32-bit target on 64-bit host. Revise
5315 comment.
5316
5317 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5318
5319 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5320 instead of find_function_entry_range_from_pc.
5321
5322 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5323
5324 * stack.c (find_frame_funname): Remove code which preferred
5325 minsym over symtab sym in "certain pathological cases".
5326
5327 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5328 parameter. Change type of "do_demangle" to bool.
5329 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5330 Pass suitable "prefer_sym_over_minsym" flag to
5331 build_address_symbolic(). Don't output "+" for negative offsets.
5332 * printcmd.c (print_address_symbolic): Update invocation of
5333 build_address_symbolic to include a "prefer_sym_over_minsym"
5334 flag.
5335 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5336 Restrict cases in which use of minimal symbol is preferred to that
5337 of a found symbol. Update comments.
5338
5339 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5340 for entry pc when entry pc is out of range for that FDE.
5341
5342 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5343
5344 PR gdb/24839:
5345 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5346 type.
5347
5348 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5349
5350 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5351 this function's Python signature.
5352
5353
5354 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5355
5356 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5357 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5358 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5359 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5360 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5361
5362
5363 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5364
5365 * h8300-tdep.c (h8300_register_name_common): New.
5366 h8300_register_name): Use h8300_register_name_common.
5367 (h8300s_register_name): Likewise.
5368 (h8300sx_register_name): Likewise.
5369 (h8300h_register_nam): New.
5370 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5371
5372
5373 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5374
5375 * arm-tdep.c (arm_skip_cmse_entry): New function.
5376 (arm_is_sgstubs_section): New function.
5377 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5378
5379 2019-07-22 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5382 Don't self-assign.
5383
5384 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5387 type_print.
5388
5389 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5392 so that GDB doesn't match any msymbols when searching in the
5393 TYPES_DOMAIN.
5394 (print_symbol_info): Print using typedef_print or type_print based
5395 on the type of the symbol. Add updated FIXME comment moved from...
5396 (_initialize_symtab): ... move and update FIXME comment to above.
5397
5398 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * NEWS: Mention adding -q option to "info types".
5401 * symtab.c (struct info_types_options): New struct.
5402 (info_types_options_defs): New variable.
5403 (make_info_types_options_def_group): New function.
5404 (info_types_command): Use gdb::option framework to parse options.
5405 (info_types_command_completer): New function.
5406 (_initialize_symtab): Extend the help text on "info types" and
5407 register command completer.
5408
5409 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5410
5411 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5412 (lookup_symbol_in_objfile): Change int to block_enum and add a
5413 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5414
5415 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5416
5417 * MAINTAINERS (Write After Approval): Add self.
5418
5419 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5422 instruction to the dummy code region.
5423
5424 2019-07-19 Tom Tromey <tromey@adacore.com>
5425
5426 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5427 (ARGSUSED, PARAMS, __func__): Remove rules.
5428
5429 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5430
5431 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5432 * features/arm/arm-with-iwmmxt.c: Remove.
5433 * features/arm/arm-with-iwmmxt.xml: Remove.
5434 * features/arm/arm-with-m-fpa-layout.c: Remove.
5435 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5436 * features/arm/arm-with-m-vfp-d16.c: Remove.
5437 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5438 * features/arm/arm-with-m.c: Remove.
5439 * features/arm/arm-with-m.xml: Remove.
5440 * features/arm/arm-with-neon.c: Remove.
5441 * features/arm/arm-with-neon.xml: Remove.
5442 * features/arm/arm-with-vfpv2.c: Remove.
5443 * features/arm/arm-with-vfpv2.xml: Remove.
5444 * features/arm/arm-with-vfpv3.c: Remove.
5445 * features/arm/arm-with-vfpv3.xml: Remove.
5446
5447 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5448
5449 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5450
5451 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5452
5453 * arch/aarch32.c (aarch32_create_target_description): Create
5454 target descriptions using features.
5455 * arch/arm.c (arm_create_target_description)
5456 (arm_create_mprofile_target_description): Likewise.
5457 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5458
5459 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5460
5461 * Makefile.in: Add new files.
5462 * aarch32-tdep.c: New file.
5463 * aarch32-tdep.h: New file.
5464 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5465 Call aarch32_read_description.
5466 * arch/aarch32.c: New file.
5467 * arch/aarch32.h: New file.
5468 * arch/arm.c (arm_create_target_description)
5469 (arm_create_mprofile_target_description): New function.
5470 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5471 (arm_create_target_description)
5472 (arm_create_mprofile_target_description): New declaration.
5473 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5474 read_description functions.
5475 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5476 Likewise.
5477 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5478 * arm-tdep.c (tdesc_arm_list): New variable.
5479 (arm_register_g_packet_guesses): Call create description functions.
5480 (arm_read_description) (arm_read_mprofile_description): New
5481 function.
5482 * arm-tdep.h (arm_read_description)
5483 (arm_read_mprofile_description): Add declaration.
5484 * configure.tgt: Add new files.
5485
5486 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5487
5488 * top.c (new_ui_command): Open specified terminal just once.
5489
5490 2019-07-18 Tom Tromey <tromey@adacore.com>
5491
5492 * symtab.c (main_name): Constify return type.
5493 * symfile.c (set_initial_language): Update.
5494 * symtab.h (main_name): Constify return type.
5495
5496 2019-07-17 Tom Tromey <tom@tromey.com>
5497
5498 * tui/tui-winsource.c (tui_update_source_window)
5499 (tui_update_source_window_as_is)
5500 (tui_update_source_windows_with_line): Remove return.
5501 * tui/tui-disasm.c (tui_show_disassem)
5502 (tui_show_disassem_and_update_source): Remove return.
5503 * tui/tui.c (tui_reset): Remove return.
5504 * tui/tui-wingeneral.c
5505 (tui_check_and_display_highlight_if_needed): Remove return.
5506
5507 2019-07-17 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5510
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-winsource.h (struct tui_exec_info_window)
5514 (struct tui_source_window_base): Move from tui-data.h.
5515 * tui/tui-winsource.c: Move many method definitions from
5516 elsewhere. Remove "structuring" comments.
5517 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5518 (tui_source_window_base::refresh_window): Move to
5519 tui-winsource.c.
5520 * tui/tui-win.c (tui_source_window_base::refresh_all)
5521 (tui_source_window_base::update_tab_width)
5522 (tui_source_window_base::set_new_height)
5523 (tui_source_window_base::do_make_visible_with_new_height): Move to
5524 tui-winsource.c.
5525 * tui/tui-source.h: Update.
5526 * tui/tui-source.c (tui_source_window_base::reset): Move to
5527 tui-winsource.c.
5528 * tui/tui-disasm.h: Update.
5529 * tui/tui-data.h (struct tui_exec_info_window): Move to
5530 tui-winsource.h.
5531 (struct tui_source_window_base): Likewise.
5532 * tui/tui-data.c (tui_source_window_base::clear_detail)
5533 (tui_source_window_base, ~tui_source_window_base): Move to
5534 tui-winsource.c.
5535
5536 2019-07-17 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-win.c (tui_resize_all)
5539 (tui_source_window_base::update_tab_width)
5540 (tui_adjust_win_heights): Update.
5541 (tui_win_info::make_invisible_and_set_new_height): Rename from
5542 make_invisible_and_set_new_height.
5543 * tui/tui-data.h (struct tui_win_info)
5544 <make_invisible_and_set_new_height>: New method.
5545
5546 2019-07-17 Tom Tromey <tom@tromey.com>
5547
5548 * tui/tui.c: Update.
5549 * tui/tui-source.h (struct tui_source_window): Move from
5550 tui-data.h.
5551 * tui/tui-layout.c: Update.
5552 * tui/tui-disasm.c: Update.
5553 * tui/tui-data.h (struct tui_source_window): Move to
5554 tui-source.h.
5555
5556 2019-07-17 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5559 tui-data.h.
5560 * tui/tui-data.h (struct tui_disasm_window): Move to
5561 tui-disasm.h.
5562
5563 2019-07-17 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-regs.h (struct tui_data_item_window): Move from
5566 tui-data.h.
5567 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5568 * tui/tui-data.h (struct tui_data_item_window): Move to
5569 tui-regs.h.
5570 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5571
5572 2019-07-17 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui.c: Update.
5575 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5576 (tui_cmd_window::max_height): Move to tui-command.c.
5577 * tui/tui-layout.c: Update.
5578 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5579 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5580 tui-command.c.
5581 * tui/tui-command.h (struct tui_cmd_window): Move from
5582 tui-data.h.
5583 * tui/tui-command.c: Remove "structuring" comments.
5584 (tui_cmd_window::clear_detail)
5585 (tui_cmd_window::do_make_visible_with_new_height)
5586 (tui_cmd_window::max_height): Move from elsewhere.
5587
5588 2019-07-17 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5591 Now static.
5592 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5593 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5594
5595 2019-07-17 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui.c: Update.
5598 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5599 tui-regs.c.
5600 * tui/tui-windata.h: Remove file.
5601 * tui/tui-windata.c: Remove file.
5602 * tui/tui-win.c (tui_data_window::set_new_height)
5603 (tui_data_window::do_make_visible_with_new_height): Move to
5604 tui-regs.c.
5605 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5606 * tui/tui-regs.c: Remove "structuring" comments.
5607 (tui_data_window::first_data_item_displayed)
5608 (tui_data_window::delete_data_content_windows)
5609 (tui_data_window::erase_data_content)
5610 (tui_data_window::display_all_data)
5611 (tui_data_window::refresh_all)
5612 (tui_data_window::do_scroll_vertical)
5613 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5614 (tui_data_window::do_make_visible_with_new_height)
5615 (tui_data_window::refresh_window): Move from elsewhere.
5616 (_initialize_tui_regs): Move to end of file.
5617 * tui/tui-layout.c: Update.
5618 * tui/tui-hooks.c: Update.
5619 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5620 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5621 tui-regs.c.
5622 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5623
5624 2019-07-17 Tom Tromey <tom@tromey.com>
5625
5626 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5627 seen.
5628
5629 2019-07-17 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-win.c (tui_source_window_base::set_new_height)
5632 (tui_source_window_base::do_make_visible_with_new_height): Use
5633 m_has_locator field directly.
5634 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5635 method.
5636 (struct tui_source_window_base) <has_locator>: Likewise.
5637
5638 2019-07-17 Tom Tromey <tom@tromey.com>
5639
5640 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5641 Don't declare.
5642 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5643 Remove.
5644 * tui/tui-win.c (tui_source_window_base::set_new_height)
5645 (tui_source_window_base::set_new_height)
5646 (make_invisible_and_set_new_height)
5647 (tui_source_window_base::do_make_visible_with_new_height)
5648 (tui_source_window_base::do_make_visible_with_new_height):
5649 Update.
5650 * tui/tui-layout.c (show_source_disasm_command, show_data)
5651 (show_source_or_disasm_and_command): Update.
5652 * tui/tui-layout.c (show_layout): Update.
5653
5654 2019-07-17 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-layout.c (make_data_window): Remove.
5657 (show_data): Unify creation and re-initialization cases.
5658
5659 2019-07-17 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-layout.c (make_source_window, make_disasm_window):
5662 Remove.
5663 (show_data): Unify creation and re-initialization cases.
5664
5665 2019-07-17 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-layout.c (make_command_window): Remove.
5668 (show_source_disasm_command, show_source_or_disasm_and_command):
5669 Unify creation and re-initialization cases.
5670
5671 2019-07-17 Tom Tromey <tom@tromey.com>
5672
5673 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5674 creation and re-initialization cases.
5675
5676 2019-07-17 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-regs.c (tui_get_register): Return void.
5679
5680 2019-07-17 Tom Tromey <tom@tromey.com>
5681
5682 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5683 Simplify.
5684
5685 2019-07-17 Tom Tromey <tom@tromey.com>
5686
5687 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5688 resetting.
5689
5690 2019-07-17 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5693 * tui/tui-regs.c (tui_reg_layout): New function.
5694 (tui_show_registers, tui_reg_command): Use it.
5695 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5696 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5697 parameters.
5698 (tui_layout_command): Remove.
5699
5700 2019-07-17 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-layout.h (tui/tui-layout): Return void.
5703 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5704
5705 2019-07-17 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-layout.c (show_source_disasm_command, show_data):
5708 Update.
5709 (reset_locator): Remove.
5710 (show_source_or_disasm_and_command): Update.
5711
5712 2019-07-17 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-source.c (tui_source_window_base::reset): Remove
5715 win_type parameter.
5716 * tui/tui-layout.c (make_command_window, make_source_window)
5717 (make_disasm_window, make_data_window)
5718 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5719 (reset_locator, show_source_or_disasm_and_command): Update.
5720 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5721 win_type parameter.
5722 (struct tui_source_window_base) <reset>: Likewise.
5723
5724 2019-07-17 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-layout.c (show_source_disasm_command): Use
5727 reset_locator.
5728 (reset_locator): New function.
5729 (init_and_make_win): Remove.
5730 (show_source_or_disasm_and_command): Use reset_locator.
5731
5732 2019-07-17 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5735 condition.
5736 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5737 Remove condition.
5738 * tui/tui-source.c (tui_source_window_base::reset): New method.
5739 * tui/tui-layout.c (make_command_window): Don't call
5740 init_and_make_win.
5741 (make_source_window, make_disasm_window): Don't call
5742 make_source_or_disasm_window.
5743 (make_data_window): Don't call init_and_make_win. Change calling
5744 convention.
5745 (show_source_disasm_command, show_data): Simplify.
5746 (make_source_or_disasm_window): Remove.
5747 (show_source_or_disasm_and_command): Simplify.
5748 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5749 (struct tui_source_window_base) <reset>: Likewise.
5750 <execution_info>: Remove initializer.
5751 * tui/tui-data.c (tui_source_window_base): Initialize
5752 execution_info.
5753
5754 2019-07-17 Tom Tromey <tom@tromey.com>
5755
5756 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5757 variable.
5758
5759 2019-07-17 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui.c (tui_rl_other_window): Update.
5762 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5763 superclass method first. Always iterate over regs_content.
5764 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5765 method.
5766 * tui/tui-win.c (tui_set_focus_command): Update.
5767
5768 2019-07-17 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-win.c (tui_set_focus_command): Rename from
5771 tui_set_focus. Call tui_enable.
5772 (tui_set_focus_command): Remove.
5773
5774 2019-07-17 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5777 refresh_window.
5778 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5779 touchwin.
5780 (tui_data_window::refresh_window): Call refresh_window on data
5781 items. Always call superclass refresh_window.
5782 (tui_win_info::refresh): Remove.
5783 (tui_source_window_base::refresh_window): Update.
5784 (tui_refresh_all): Update.
5785 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5786 refresh_window.
5787 (show_source_or_disasm_and_command): Likewise.
5788 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5789 (struct tui_source_window_base) <refresh>: Likewise.
5790
5791 2019-07-17 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-winsource.c (tui_clear_source_content)
5794 (tui_show_source_content): Update.
5795 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5796 whether content is empty.
5797 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5798 Remove.
5799
5800 2019-07-17 Tom Tromey <tom@tromey.com>
5801
5802 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5803 window's contents.
5804 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5805 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5806
5807 2019-07-17 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5810 (struct tui_data_item_window): Update.
5811
5812 2019-07-17 Tom Tromey <tom@tromey.com>
5813
5814 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5815 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5816 defines.
5817
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-winsource.h (tui_erase_source_content)
5821 (tui_clear_source_content): Remove "display_prompt" parameter.
5822 * tui/tui-winsource.c (tui_update_source_window_as_is)
5823 (tui_update_source_windows_with_addr): Update.
5824 (tui_clear_source_content): Remove "display_prompt" parameter.
5825 (tui_erase_source_content): Likewise. Simplify.
5826 (tui_show_source_content): Update.
5827 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5828 * tui/tui-stack.c (tui_show_frame_info): Update.
5829 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5830 Remove defines.
5831
5832 2019-07-17 Tom Tromey <tom@tromey.com>
5833
5834 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5835 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5836 parameter.
5837 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5838 parameter.
5839
5840 2019-07-17 Tom Tromey <tom@tromey.com>
5841
5842 * tui/tui-winsource.c (tui_clear_source_content)
5843 (tui_show_source_content, tui_show_exec_info_content)
5844 (tui_clear_exec_info_content): Update.
5845 * tui/tui-stack.c (tui_show_locator_content): Update.
5846 (tui_show_frame_info): Update.
5847 * tui/tui-source.h (tui_source_window): Don't declare.
5848 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5849 from tui_source_is_displayed.
5850 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5851 Remove field.
5852 (struct tui_source_window_base) <content_in_use>: New field. Now
5853 bool.
5854 (struct tui_source_window) <showing_source_p>: New method.
5855 (TUI_SRC_WIN): Change cast.
5856 * tui/tui-data.c (tui_initialize_static_data): Update.
5857
5858 2019-07-17 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5861 location_matches_p.
5862 * tui/tui-source.c (tui_source_window::location_matches_p): New
5863 method.
5864 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5865 method.
5866 * tui/tui-data.h (struct tui_source_window_base)
5867 <location_matches_p>: New method.
5868 (struct tui_source_window, struct tui_disasm_window)
5869 <location_matches_p>: Likewise.
5870
5871 2019-07-17 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-win.c (tui_set_win_height_command): Rename from
5874 tui_set_win_height.
5875 (tui_set_win_height_command): Remove.
5876
5877 2019-07-17 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-source.c (tui_source_window): New constructor. Add
5880 observer.
5881 (~tui_source_window): New destructor.
5882 (tui_source_window::style_changed): New method.
5883 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5884 (tui_attach_detach_observers): Update.
5885 * tui/tui-data.h (struct tui_source_window): Make constructor not
5886 inline. Add destructor.
5887 (struct tui_source_window) <style_changed>: New method.
5888 <m_observable>: New member.
5889
5890 2019-07-17 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5893 * tui/tui-win.c (tui_resize_all): Fix typo.
5894
5895 2019-07-17 Tom Tromey <tom@tromey.com>
5896
5897 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5898 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5899 (tui_refresh_all): Remove "list" parameter. Use foreach.
5900 * tui/tui-win.c (window_name_completer): Use foreach.
5901 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5902 (update_tab_width): Likewise.
5903 * tui/tui-layout.c (show_layout): Update.
5904 * tui/tui-data.h (class tui_window_iterator): New.
5905 (struct all_tui_windows): New.
5906 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5907
5908 2019-07-17 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5911 parameter. Don't reference globals.
5912 (tui_reg_command): Update.
5913
5914 2019-07-17 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-regs.c (tui_show_registers): Simplify.
5917
5918 2019-07-17 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-regs.c (tui_show_registers): Update.
5921 (tui_show_register_group): Add win_info parameter.
5922
5923 2019-07-17 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5926 Rename from tui_display_reg_element_at_line.
5927 (tui_data_window::display_registers_from_line): Update.
5928 * tui/tui-data.h (struct tui_data_window)
5929 <display_reg_element_at_line>: New method.
5930
5931 2019-07-17 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-regs.h (tui_display_registers_from)
5934 (tui_display_registers_from_line): Don't declare.
5935 * tui/tui-windata.c (tui_data_window::display_all_data)
5936 (tui_data_window::refresh_all)
5937 (tui_data_window::do_scroll_vertical): Update.
5938 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5939 from tui_display_registers_from.
5940 (tui_display_reg_element_at_line): Update.
5941 (tui_data_window::display_registers_from_line): Rename from
5942 tui_display_registers_from_line.
5943 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5944 display_registers_from_line>: New methods.
5945
5946 2019-07-17 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5949 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5950 from tui_erase_data_content.
5951 (tui_data_window::display_all_data)
5952 (tui_data_window::refresh_all)
5953 (tui_data_window::do_scroll_vertical): Update.
5954 * tui/tui-regs.c (tui_show_registers): Update.
5955 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5956 New method.
5957
5958 2019-07-17 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5961 declare.
5962 * tui/tui-windata.c
5963 (tui_data_window::delete_data_content_windows): Rename from
5964 tui_delete_data_content_windows.
5965 (tui_data_window::display_all_data)
5966 (tui_data_window::do_scroll_vertical): Update.
5967 * tui/tui-data.h (struct tui_data_window)
5968 <delete_data_content_windows>: New method.
5969
5970 2019-07-17 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5973 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5974
5975 2019-07-17 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5978 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5979 from tui_display_all_data.
5980 * tui/tui-win.c
5981 (tui_data_window::do_make_visible_with_new_height): Update.
5982 * tui/tui-regs.c (tui_show_registers): Update.
5983 * tui/tui-layout.c (tui_set_layout): Update.
5984 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5985 method.
5986
5987 2019-07-17 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5990 * tui/tui-windata.c (tui_display_data_from): Remove.
5991 (tui_data_window::refresh_all): Update.
5992
5993 2019-07-17 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5996 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5997 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5998 tui_display_registers_from_line.
5999 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6000 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6001 "force_display" parameter.
6002
6003 2019-07-17 Tom Tromey <tom@tromey.com>
6004
6005 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6006 declare.
6007 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6008 Rename from tui_first_reg_element_no_inline.
6009 (tui_display_reg_element_at_line)
6010 (tui_display_registers_from_line): Update.
6011 * tui/tui-data.h (struct tui_data_window)
6012 <first_reg_element_no_inline>: New method.
6013
6014 2019-07-17 Tom Tromey <tom@tromey.com>
6015
6016 * tui/tui-windata.c (tui_display_data_from)
6017 (tui_data_window::do_scroll_vertical): Update.
6018 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6019 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6020 Rename from tui_line_from_reg_element_no.
6021 (tui_display_registers_from_line): Update.
6022 * tui/tui-data.h (struct tui_data_window)
6023 <line_from_reg_element_no>: New method.
6024
6025 2019-07-17 Tom Tromey <tom@tromey.com>
6026
6027 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6028 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6029 tui_last_regs_line_no.
6030 (tui_display_reg_element_at_line)
6031 (tui_display_registers_from_line): Update.
6032 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6033 method.
6034
6035 2019-07-17 Tom Tromey <tom@tromey.com>
6036
6037 PR tui/24722:
6038 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6039 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6040 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6041 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6042 (tui_update_breakpoint_info): Likewise.
6043 * tui/tui-hooks.c (tui_event_create_breakpoint)
6044 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6045 Update.
6046
6047 2019-07-17 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6050
6051 2019-07-17 Tom Tromey <tom@tromey.com>
6052
6053 * tui/tui-winsource.c (tui_update_source_window_as_is)
6054 (tui_update_source_windows_with_addr): Update.
6055 * tui/tui-source.h (tui_set_source_content)
6056 (tui_show_symtab_source): Add "win_info" parameter.
6057 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6058 parameter.
6059 (tui_show_symtab_source): Likewise.
6060
6061 2019-07-17 Tom Tromey <tom@tromey.com>
6062
6063 * tui/tui-wingeneral.c
6064 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6065
6066 2019-07-17 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6069 (struct tui_cmd_window) <can_scroll>: New method.
6070 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6071 method.
6072
6073 2019-07-17 Tom Tromey <tromey@adacore.com>
6074
6075 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6076 do_field_signed>: Rename. Change type of "value".
6077 * ui-out.c (ui_out::field_signed): Rename from field_int.
6078 Change type of "value".
6079 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6080 type of "value".
6081 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6082 do_field_int. Change type of "value".
6083 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6084 do_field_int. Change type of "value".
6085 * tracepoint.c (trace_status_mi, tfind_1)
6086 (print_one_static_tracepoint_marker): Update.
6087 * thread.c (print_thread_info_1, print_selected_thread_frame):
6088 Update.
6089 * stack.c (print_frame, print_frame_info): Update.
6090 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6091 Update.
6092 * source.c (print_source_lines_base): Update.
6093 * skip.c (info_skip_command): Update.
6094 * record-btrace.c (btrace_ui_out_decode_error)
6095 (btrace_call_history_src_line): Update.
6096 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6097 Update.
6098 * progspace.c (print_program_space): Update.
6099 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6100 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6101 do_field_int. Change type of "value".
6102 * mi/mi-out.c (mi_ui_out::do_table_begin)
6103 (mi_ui_out::do_table_header): Update.
6104 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6105 type of "value".
6106 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6107 (mi_cmd_data_list_changed_registers, output_register)
6108 (mi_cmd_data_read_memory, mi_load_progress)
6109 (mi_cmd_trace_frame_collected): Update.
6110 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6111 Update.
6112 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6113 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6114 (mi_cmd_var_list_children, varobj_update_one): Update.
6115 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6116 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6117 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6118 * inferior.c (print_inferior): Update.
6119 * gdb_bfd.c (print_one_bfd): Update.
6120 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6121 Update.
6122 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6123 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6124 do_field_int. Change type of "value".
6125 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6126 do_field_int. Change type of "value".
6127 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6128 (print_one_breakpoint_location, print_it_catch_fork)
6129 (print_one_catch_fork, print_it_catch_vfork)
6130 (print_one_catch_vfork, print_it_catch_solib)
6131 (print_it_catch_exec, print_it_ranged_breakpoint)
6132 (print_mention_watchpoint, print_mention_masked_watchpoint)
6133 (bkpt_print_it, update_static_tracepoint): Update.
6134 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6135 * break-catch-syscall.c (print_it_catch_syscall): Update.
6136 * ada-tasks.c (print_ada_task_info): Update.
6137 * ada-lang.c (print_it_exception, print_mention_exception):
6138 Update.
6139
6140 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6141
6142 PR breakpoints/24541
6143 * gdbarch.c: Regenerate.
6144 * gdbarch.h: Regenerate.
6145 * gdbarch.sh: Adjust return type and parameter types for
6146 'stap_adjust_register'.
6147 (i386_stap_adjust_register): Adjust signature and return new
6148 register name.
6149 * stap-probe.c (stap_parse_register_operand): Adjust use of
6150 'gdbarch_stap_adjust_register'.
6151
6152 2019-07-17 Tom Tromey <tromey@adacore.com>
6153
6154 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6155 declare VEC.
6156 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6157 std::vector.
6158 (struct s390_process_info): Add initializers.
6159 (s390_add_process): Use new.
6160 (s390_linux_nat_target::low_forget_process): Use delete.
6161 (s390_linux_nat_target::low_new_fork)
6162 (s390_linux_nat_target::stopped_by_watchpoint)
6163 (s390_linux_nat_target::low_prepare_to_resume)
6164 (s390_linux_nat_target::insert_watchpoint)
6165 (s390_linux_nat_target::insert_hw_breakpoint)
6166 (s390_linux_nat_target::remove_watchpoint)
6167 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6168
6169 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6170
6171 * aarch64-fbsd-nat.c: Include regcache.h.
6172 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6173 argument.
6174 (aarch64_fbsd_nat_target::fetch_registers)
6175 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6176 variable.
6177 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6178
6179 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6180
6181 * fbsd-nat.c: Include gdbarch.h.
6182
6183 2019-07-15 Tom Tromey <tromey@adacore.com>
6184
6185 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6186
6187 2019-07-15 Tom Tromey <tromey@adacore.com>
6188
6189 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6190 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6191 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6192 * cli-out.c (cli_ui_out::do_field_int): New method.
6193 * ui-out.c (ui_out::field_unsigned): New method.
6194 * symfile.c (generic_load): Use field_unsigned.
6195 (print_transfer_performance): Likewise.
6196 * record-btrace.c (ui_out_field_uint): Remove.
6197 (btrace_call_history_insn_range, btrace_call_history): Use
6198 field_unsigned.
6199 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6200 field_unsigned.
6201 * ui-out.h (class ui_out) <field_unsigned>: New method.
6202 <do_field_unsigned>: Likewise.
6203
6204 2019-07-15 Tom Tromey <tromey@adacore.com>
6205
6206 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6207 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6208 * target.c (flash_erase_command): Use field_string.
6209 * infrun.c (print_signal_received_reason): Use field_string.
6210 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6211 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6212 field_string.
6213 * ada-tasks.c (print_ada_task_info): Use field_string.
6214
6215 2019-07-15 Tom Tromey <tromey@adacore.com>
6216
6217 * target.c (flash_erase_command): Use field_core_addr.
6218 * symfile.c (generic_load): Use field_core_addr.
6219 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6220 Use field_core_addr.
6221 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6222 field_core_addr.
6223
6224 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6225
6226 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6227 value if its desired type is smaller than a CORE_ADDR and signed.
6228
6229 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6232 of changes to field names, and use new is_reference field to
6233 decide if a property is a reference or not.
6234 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6235 field.
6236 (struct dwarf2_property_baton): Update header comment, rename
6237 'referenced_type' to 'property_type' and update comments.
6238 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6239 default property type, store in property baton, update to take
6240 accound of renamed field.
6241 (read_func_scope): Update call to attr_to_dynamic_prop.
6242 (read_array_type): Likewise.
6243 (dwarf2_per_cu_addr_sized_int_type): New function.
6244 (read_subrange_index_type): Move type finding code to
6245 dwarf2_per_cu_addr_sized_int_type.
6246 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6247 (dwarf2_per_cu_addr_type): New function.
6248 (set_die_type): Update calls to attr_to_dynamic_prop.
6249
6250 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * dwarf2read.c (read_subrange_index_type): New function.
6253 (read_subrange_type): Move code into new function and call it.
6254 * gdbtypes.c (create_range_type): Add some asserts.
6255
6256 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6259 update return statements.
6260 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6261 declaration, and update comment to match.
6262 * gdbtypes.c (resolve_dynamic_array): Update call to
6263 dwarf2_evaluate_property to match new return type.
6264
6265 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 * valarith.c (value_subscripted_rvalue): Change lowerbound
6268 parameter type from int to LONGEST.
6269 * value.h (value_subscripted_rvalue): Likewise in declaration.
6270
6271 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * cli/cli-utils.c (info_print_command_completer): New function.
6274 * cli/cli-utils.h: Add 'completer.h' include, and forward
6275 declaration for 'struct cmd_list_element'.
6276 (info_print_command_completer): Declare.
6277 * stack.c (_initialize_stack): Add completer for 'info locals' and
6278 'info args'.
6279 * symtab.c (_initialize_symtab): Add completer for 'info
6280 variables' and 'info functions'.
6281 * NEWS: Mention completion for additional info commands.
6282
6283 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * cli/cli-utils.c (extract_info_print_args): Delete.
6286 (extract_arg_maybe_quoted): Delete.
6287 (info_print_options_defs): New variable.
6288 (make_info_print_options_def_group): New function.
6289 (extract_info_print_options): Define new function.
6290 * cli/cli-utils.h (extract_info_print_args): Delete.
6291 (struct info_print_options): New structure.
6292 (extract_info_print_options): Declare new function.
6293 * stack.c (info_locals_command): Update to use new
6294 extract_info_print_options, also add a header comment.
6295 (info_args_command): Likewise.
6296 * symtab.c (info_variables_command): Likewise.
6297 (info_functions_command): Likewise.
6298
6299 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6302 to extract string arguments.
6303 * common/common-utils.c (extract_string_maybe_quoted): New function.
6304 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6305
6306 2019-07-11 Tom Tromey <tromey@adacore.com>
6307
6308 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6309 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6310 * top.h (gdbinit): Don't declare.
6311 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6312 into...
6313 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6314 * top.c (gdb_init): Don't call init_cli_cmds.
6315 (gdbinit): Remove.
6316 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6317
6318 2019-07-11 Tom Tromey <tromey@adacore.com>
6319
6320 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6321 after it has been moved.
6322
6323 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * valops.c (value_must_coerce_to_target): Change return type to
6326 bool.
6327 * value.h (value_must_coerce_to_target): Likewise.
6328
6329 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * breakpoint.c (is_hardware_watchpoint): Remove
6332 forward-declaration.
6333 (is_masked_watchpoint): Change return type to bool.
6334 (is_tracepoint): Likewise.
6335 (is_breakpoint): Likewise.
6336 (is_hardware_watchpoint): Likewise.
6337 (is_watchpoint): Likewise.
6338 (is_no_memory_software_watchpoint): Likewise.
6339 (is_catchpoint): Likewise.
6340 (breakpoint_1): Make FILTER parameter's return type bool.
6341 is_masked_watchpoint): Change return type to bool.
6342 (save_breakpoints): Make FILTER parameter's return type bool.
6343 * breakpoint.h (is_breakpoint): Change return type to bool.
6344 (is_watchpoint): Likewise.
6345 (is_catchpoint): Likewise.
6346 (is_tracepoint): Likewise.
6347
6348 2019-07-10 Tom Tromey <tom@tromey.com>
6349
6350 * defs.h: Don't include gdbarch.h.
6351 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6352 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6353 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6354 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6355 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6356 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6357 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6358 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6359 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6360 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6361 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6362 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6363 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6364 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6365 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6366 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6367 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6368 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6369 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6370 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6371 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6372 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6373 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6374 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6375 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6376 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6377 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6378
6379 2019-07-10 Tom Tromey <tromey@adacore.com>
6380
6381 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6382 * breakpoint.c (init_ada_exception_breakpoint): Register as
6383 bp_catchpoint.
6384 (print_one_breakpoint_location, print_one_breakpoint): Use
6385 is_ada_exception_catchpoint.
6386 * ada-lang.c (class ada_catchpoint_location): Pass
6387 bp_loc_software_breakpoint to bp_location constructor.
6388 (is_ada_exception_catchpoint): New function.
6389
6390 2019-07-10 Tom Tromey <tromey@adacore.com>
6391
6392 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6393 VEC.
6394 (struct arm_exidx_entry): New method operator<.
6395 (struct arm_exidx_data) <section_maps>: Change type.
6396 (arm_exidx_data_free): Remove.
6397 (arm_exidx_data_key): Change type. Move lower.
6398 (arm_exidx_new_objfile): Update.
6399 (arm_compare_exidx_entries): Remove.
6400 (arm_find_exidx_entry, _initialize_arm_tdep)
6401
6402 2019-07-10 Tom Tromey <tromey@adacore.com>
6403
6404 * solib-spu.c (ocl_program_data_key): Change type.
6405 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6406 Update.
6407
6408 2019-07-10 Tom Tromey <tromey@adacore.com>
6409
6410 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6411 (struct solib_aix_inferior_data) <library_list>: Change type.
6412 (solib_aix_inferior_data_handle): Change type.
6413 (get_solib_aix_inferior_data): Update.
6414 (solib_aix_free_library_list): Remove.
6415 (library_list_start_library): Update.
6416 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6417 return type.
6418 (solib_aix_get_library_list)
6419 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6420 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6421
6422 2019-07-10 Tom Tromey <tromey@adacore.com>
6423
6424 * solib-dsbt.c (struct dsbt_info): Add initializers.
6425 (solib_dsbt_pspace_data): Change type.
6426 (dsbt_pspace_data_cleanup): Remove.
6427 (get_dsbt_info, _initialize_dsbt_solib): Update.
6428
6429 2019-07-10 Tom Tromey <tromey@adacore.com>
6430
6431 * spu-tdep.c (spu_overlay_data): Change type.
6432 (spu_get_overlay_table, spu_overlay_new_objfile)
6433 (_initialize_spu_tdep): Update.
6434
6435 2019-07-10 Tom Tromey <tromey@adacore.com>
6436
6437 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6438 destructor.
6439 (dbx_objfile_data_key): Change type and declare later.
6440 (DBX_SYMFILE_INFO): Rewrite.
6441 * dbxread.c (dbx_objfile_data_key): Change type.
6442 (dbx_symfile_init): Update.
6443 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6444 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6445 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6446
6447 2019-07-10 Tom Tromey <tromey@adacore.com>
6448
6449 * jit.c (jit_program_space_key): Change type. Move lower.
6450 (get_jit_program_space_data): Update.
6451 (jit_program_space_data_cleanup): Remove.
6452 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6453 Update.
6454 (struct jit_program_space_data): Add initializers.
6455
6456 2019-07-10 Tom Tromey <tromey@adacore.com>
6457
6458 * solib-darwin.c (struct darwin_info): Add initializers.
6459 (solib_darwin_pspace_data): Change type.
6460 (darwin_pspace_data_cleanup): Remove.
6461 (get_darwin_info, _initialize_darwin_solib): Update.
6462
6463 2019-07-10 Tom Tromey <tromey@adacore.com>
6464
6465 * remote-sim.c (struct sim_inferior_data): Add initializers,
6466 constructor, and destructor.
6467 (sim_inferior_data_key): Change type. Move lower.
6468 (check_for_duplicate_sim_descriptor): Update.
6469 (get_sim_inferior_data): Use new. Update.
6470 (~sim_inferior_data_cleanup): Rename from
6471 sim_inferior_data_cleanup. Simplify.
6472 (gdbsim_close_inferior, simulator_command)
6473 (sim_command_completer, _initialize_remote_sim): Update.
6474 (next_pid, INITIAL_PID): Move earlier.
6475
6476 2019-07-10 Tom Tromey <tromey@adacore.com>
6477
6478 * python/python-internal.h (create_thread_object): Return
6479 gdbpy_ref.
6480 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6481 * python/py-inferior.c (struct threadlist_entry): Add
6482 constructor.
6483 <thread_obj>: Now a gdbpy_ref.
6484 (thread_to_thread_object): Update.
6485 (add_thread_object): Use new.
6486 (delete_thread_object): Use delete.
6487 (infpy_threads): Update.
6488 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6489 GIL.
6490
6491 2019-07-10 Tom Tromey <tromey@adacore.com>
6492
6493 * valops.c (value_cast): Specialize error message for Ada.
6494
6495 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6498
6499 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6500
6501 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6502 bpstat_should_step): Return bool, adjust comments.
6503 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6504 bpstat_should_step): Likewise.
6505
6506 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6507
6508 * features/Makefile: Use feature target descriptions for Arm.
6509 * features/arm/arm-core.c: Generate new file.
6510 * features/arm/arm-fpa.c: Likewise.
6511 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6512 * features/arm/arm-m-profile.c: Likewise.
6513 * features/arm/arm-vfpv2.c: Likewise.
6514 * features/arm/arm-vfpv3.c: Likewise.
6515 * features/arm/xscale-iwmmxt.c: Likewise.
6516 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6517
6518 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6519
6520 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6521 ptrace earlier.
6522
6523 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6524
6525 * features/aarch64-pauth.c: Regenerate.
6526
6527 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6530 bool.
6531 (bpstat_what): Use false instead of 0.
6532
6533 2019-07-09 Pedro Alves <palves@redhat.com>
6534
6535 * break-catch-throw.c (is_exception_catchpoint): New.
6536 * breakpoint.c (print_one_breakpoint_location): New parameter
6537 'raw_loc'. Handle it. Use
6538 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6539 looking at the breakpoint's type.
6540 (print_one_breakpoint): If handling "maint info breakpoints", also
6541 print locations of exception catchpoints.
6542 * breakpoint.h (is_exception_catchpoint): Declare.
6543
6544 2019-07-09 Pedro Alves <palves@redhat.com>
6545
6546 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6547 "addr" field.
6548 (allocate_location_exception_catchpoint): New.
6549 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6550 (initialize_throw_catchpoint_ops): Install
6551 allocate_location_exception_catchpoint as allocate_location
6552 method.
6553 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6554 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6555 bp_loc_other.
6556 (breakpoint_address_is_meaningful): Delete.
6557 (bl_address_is_meaningful): New.
6558 (breakpoint_locations_match): Adjust comment.
6559 (bp_location_from_bp_type): New, factored out of...
6560 (bp_location::bp_location(breakpoint *)): ... this.
6561 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6562 factored out of...
6563 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6564 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6565 breakpoint_address_is_meaningful.
6566 (bp_locations_compare): Adjust comment.
6567 (update_global_location_list): Use bl_address_is_meaningful
6568 instead of breakpoint_address_is_meaningful.
6569 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6570 explicit.
6571 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6572 * python/py-breakpoint.c (bppy_get_location): No longer check
6573 whether location is null.
6574
6575 2019-07-09 Pedro Alves <palves@redhat.com>
6576
6577 PR c++/15468
6578 * breakpoint.c (print_one_breakpoint_location): Remove
6579 single-location assert.
6580
6581 2019-07-09 Tom Tromey <tom@tromey.com>
6582
6583 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6584 * configure: Rebuild.
6585 * configure.ac: Change common to gdbsupport.
6586 * gdbsupport: Rename from common.
6587 * acinclude.m4: Change common to gdbsupport.
6588 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6589 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6590 gdbsupport.
6591 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6592 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6593 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6594 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6595 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6596 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6597 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6598 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6599 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6600 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6601 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6602 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6603 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6604 coff-pe-read.c, command.h, compile/compile-c-support.c,
6605 compile/compile-c.h, compile/compile-cplus-symbols.c,
6606 compile/compile-cplus-types.c, compile/compile-cplus.h,
6607 compile/compile-loc2c.c, compile/compile.c, completer.c,
6608 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6609 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6610 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6611 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6612 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6613 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6614 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6615 features/aarch64-core.c, features/aarch64-fpu.c,
6616 features/aarch64-pauth.c, features/aarch64-sve.c,
6617 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6618 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6619 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6620 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6621 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6622 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6623 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6624 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6625 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6626 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6627 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6628 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6629 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6630 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6631 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6632 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6633 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6634 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6635 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6636 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6637 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6638 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6639 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6640 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6641 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6642 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6643 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6644 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6645 minsyms.c, mips-linux-tdep.c, namespace.h,
6646 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6647 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6648 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6649 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6650 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6651 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6652 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6653 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6654 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6655 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6656 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6657 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6658 procfs.c, producer.c, progspace.h, psymtab.h,
6659 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6660 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6661 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6662 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6663 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6664 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6665 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6666 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6667 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6668 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6669 target-memory.c, target.c, target.h, target/waitstatus.c,
6670 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6671 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6672 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6673 unittests/array-view-selftests.c,
6674 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6675 unittests/common-utils-selftests.c,
6676 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6677 unittests/format_pieces-selftests.c,
6678 unittests/function-view-selftests.c,
6679 unittests/lookup_name_info-selftests.c,
6680 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6681 unittests/mkdir-recursive-selftests.c,
6682 unittests/observable-selftests.c,
6683 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6684 unittests/parse-connection-spec-selftests.c,
6685 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6686 unittests/scoped_fd-selftests.c,
6687 unittests/scoped_mmap-selftests.c,
6688 unittests/scoped_restore-selftests.c,
6689 unittests/string_view-selftests.c, unittests/style-selftests.c,
6690 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6691 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6692 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6693 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6694 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6695 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6696
6697 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6700 bool value.
6701 (decode_digits_ordinary): Set explicit_line field in sal.
6702 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6703 symtab_and_line that was set on an explicit line number in
6704 assembler code. Do always update the recorded symtab and line if
6705 we do skip the prologue.
6706
6707 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * breakpoint.c (set_breakpoint_location_function): Remove
6710 explicit_loc parameter.
6711 (momentary_breakpoint_from_master): Update call to
6712 set_breakpoint_location_function.
6713 (add_location_to_breakpoint): Likewise.
6714
6715 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6716
6717 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6718 required features based on default bfd type when no specific bfd
6719 is present.
6720
6721 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6722
6723 * NEWS: Mention that GDB printf and eval commands can now print
6724 C-style and Ada-style convenience var strings without
6725 calling the inferior.
6726 * printcmd.c (printf_c_string): Locally print GDB internal var
6727 instead of transiting via the inferior.
6728 (printf_wide_c_string): Likewise.
6729
6730 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6731
6732 PR breakpoints/25011
6733 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6734
6735 2019-07-04 Tom Tromey <tom@tromey.com>
6736
6737 PR tui/24724:
6738 * tui/tui-winsource.c (tui_clear_source_content): Update.
6739 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6740 (tui_update_breakpoint_info): Update.
6741 (tui_set_exec_info_content): Update.
6742 * tui/tui-source.c (tui_set_source_content_nil): Update.
6743 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6744 has_break.
6745 * tui/tui-data.h (enum tui_bp_flag): New.
6746 (tui_bp_flags): New enum flags type.
6747 (struct tui_source_element) <break_mode>: Change type. Rename
6748 from has_break.
6749 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6750 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6751 constants.
6752 * tui/tui-winsource.h: Fix comment.
6753
6754 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6755
6756 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6757 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6758 (store_fpregs_to_thread)
6759 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6760 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6761 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6762 (IWMMXT_REGS_SIZE): Add define.
6763 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6764 (fetch_vfp_regs, store_vfp_regs)
6765 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6766 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6767
6768 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6769
6770 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6771 defines.
6772 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6773 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6774 (ARM_INT_REGISTER_SIZE): ...to this.
6775 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6776 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6777 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6778 (arm_linux_collect_gregset, supply_nwfpe_register)
6779 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6780 defines.
6781 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6782 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6783 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6784 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6785 (arm_return_in_memory, arm_store_return_value)
6786 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6787 (arm_record_ld_st_multiple): Likewise.
6788 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6789 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6790
6791 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6792
6793 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6794 AARCH64_DISPLACED_MODIFIED_INSNS.
6795 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6796 (aarch64_displaced_step_copy_insn): Likewise.
6797 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6798 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6799 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6800 ARM_DISPLACED_MODIFIED_INSNS.
6801 * arm-tdep.c (arm_gdbarch_init): Likewise.
6802 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6803 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6804 (struct arm_displaced_step_closure): Use
6805 ARM_DISPLACED_MODIFIED_INSNS.
6806
6807 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6808
6809 * features/Makefile: Remove unused xml files.
6810 * features/aarch64.xml: Remove.
6811 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6812 * features/i386/amd64-avx-avx512.xml: Remove.
6813 * features/i386/amd64-avx-linux.xml: Remove.
6814 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6815 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6816 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6817 * features/i386/amd64-avx-mpx.xml: Remove.
6818 * features/i386/amd64-avx.xml: Remove.
6819 * features/i386/amd64-linux.xml: Remove.
6820 * features/i386/amd64-mpx-linux.xml: Remove.
6821 * features/i386/amd64-mpx.xml: Remove.
6822 * features/i386/amd64.xml: Remove.
6823 * features/i386/i386-avx-avx512-linux.xml: Remove.
6824 * features/i386/i386-avx-avx512.xml: Remove.
6825 * features/i386/i386-avx-linux.xml: Remove.
6826 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6827 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6828 * features/i386/i386-avx-mpx-linux.xml: Remove.
6829 * features/i386/i386-avx-mpx.xml: Remove.
6830 * features/i386/i386-avx.xml: Remove.
6831 * features/i386/i386-linux.xml: Remove.
6832 * features/i386/i386-mmx-linux.xml: Remove.
6833 * features/i386/i386-mmx.xml: Remove.
6834 * features/i386/i386-mpx-linux.xml: Remove.
6835 * features/i386/i386-mpx.xml: Remove.
6836 * features/i386/i386.xml: Remove.
6837 * features/i386/x32-avx-avx512-linux.xml: Remove.
6838 * features/i386/x32-avx-linux.xml: Remove.
6839 * features/i386/x32-linux.xml: Remove.
6840
6841 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6842
6843 * regformats/aarch64.dat: Remove.
6844 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6845 * regformats/i386/amd64-avx-linux.dat: Remove.
6846 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6847 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6848 * regformats/i386/amd64-linux.dat: Remove.
6849 * regformats/i386/amd64-mpx-linux.dat: Remove.
6850 * regformats/i386/amd64.dat: Remove.
6851 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6852 * regformats/i386/i386-avx-linux.dat: Remove.
6853 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6854 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6855 * regformats/i386/i386-linux.dat: Remove.
6856 * regformats/i386/i386-mmx-linux.dat: Remove.
6857 * regformats/i386/i386-mpx-linux.dat: Remove.
6858 * regformats/i386/i386.dat: Remove.
6859 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6860 * regformats/i386/x32-avx-linux.dat: Remove.
6861 * regformats/i386/x32-linux.dat: Remove.
6862
6863 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6864
6865 * aarch64-tdep.c: Remove xml self tests.
6866 * amd64-linux-tdep.c: Likewise.
6867 * amd64-tdep.c: Likewise.
6868 * i386-linux-tdep.c: Likewise.
6869 * i386-tdep.c: Likewise.
6870
6871 2019-07-03 Pedro Alves <palves@redhat.com>
6872
6873 PR cli/24732
6874 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6875 (pipe_cmd_option_defs): New.
6876 (make_pipe_cmd_options_def_group): New.
6877 (pipe_command): Use gdb::option::process_options.
6878 (pipe_command_completer): New function.
6879 (_initialize_cli_cmds): Install completer for "pipe" command.
6880
6881 2019-07-03 Pedro Alves <palves@redhat.com>
6882
6883 * cli/cli-option.c (union option_value) <string>: New field.
6884 (struct option_def_and_value): Add ctor, move ctor, dtor and
6885 use DISABLE_COPY_AND_ASSIGN.
6886 (option_def_and_value::clear_value): New.
6887 (parse_option, save_option_value_in_ctx, get_val_type_str)
6888 (add_setshow_cmds_for_options): Handle var_string.
6889 * cli-option.h (union option_def::var_address) <string>: New
6890 field.
6891 (struct string_option_def): New.
6892 * maint-test-options.c (struct test_options_opts): Add default
6893 ctor and use DISABLE_COPY_AND_ASSIGN.
6894 <string_opt>: New field.
6895 (test_options_opts::~test_options_opts): New.
6896 (test_options_opts::dump): Also dump "-string".
6897 (test_options_option_defs): Install "string.
6898
6899 2019-07-03 Pedro Alves <palves@redhat.com>
6900
6901 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6902 option_value with a null enumeration.
6903 (complete_options): Save the option values in the context.
6904 (save_option_value_in_ctx): New, factored out from ...
6905 (process_options): ... here.
6906 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6907 of the function.
6908 * maint-test-options.c (test_options_opts::dump): New, factored
6909 out from ...
6910 (maintenance_test_options_command_mode): ... here.
6911 (maintenance_test_options_command_completion_result): Delete.
6912 (maintenance_test_options_command_completion_text): Update
6913 comment.
6914 (maintenance_show_test_options_completion_result): Change
6915 prototype. Just print
6916 maintenance_test_options_command_completion_text.
6917 (save_completion_result): New.
6918 (maintenance_test_options_completer_mode): Pass options context to
6919 complete_options, and then save a dump.
6920 (_initialize_maint_test_options): Use add_cmd to install "maint
6921 show test-options-completion-result".
6922
6923 2019-07-03 Pedro Alves <palves@redhat.com>
6924
6925 * NEWS (New commands): Mention "with" and "maint with".
6926 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6927 (with_command, with_command_completer): New.
6928 (pipe_command): Adjust to new repeat_previous
6929 interface.
6930 (_initialize_cli_cmds): Install the "with" command and its "w"
6931 alias.
6932 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6933 declarations.
6934 * cli/cli-setshow.c (parse_cli_var_uinteger)
6935 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6936 argument strings for all var_types.
6937 (get_setshow_command_value_string): New, factored out from ...
6938 (do_show_command): ... this.
6939 * cli/cli-setshow.h: Include <string>.
6940 (get_setshow_command_value_string): Declare.
6941 * command.h (repeat_previous): Now returns const char *. Adjust
6942 comment.
6943 * maint.c: Include "cli/cli-cmds.h".
6944 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6945 (_initialize_maint_cmds): Register the "maintenance with" command.
6946 * top.c (repeat_previous): Move bits from pipe_command here:
6947 Return the saved command line, if any; error out if there's no
6948 command to relaunch.
6949
6950 2019-07-03 Pedro Alves <palves@redhat.com>
6951
6952 * NEWS (New commands): Mention "maint set/show test-settings"
6953 instead of "maint test-settings".
6954 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6955 (maintenance_test_settings_set_list): Rename to ...
6956 (maintenance_set_test_settings_list): ... this.
6957 (maintenance_test_settings_show_list): Rename to ...
6958 (maintenance_show_test_settings_list): ... this.
6959 (maintenance_test_settings_cmd): Delete.
6960 (maintenance_test_settings_set_cmd): ...
6961 (maintenance_set_test_settings_cmd): ... this.
6962 (maintenance_test_settings_show_cmd): ...
6963 (maintenance_show_test_settings_cmd): ... this.
6964 (maintenance_test_settings_show_value_cmd):
6965 (maintenance_show_test_settings_value_cmd): ... this.
6966 (_initialize_maint_test_settings): No longer install the "maint
6967 test-settings" prefix command. Rename "maint test-settings set"
6968 to "maint set test-settings", and "maint test-settings show" to
6969 "maint show test-settings". Adjust all subcommands.
6970
6971 2019-07-03 Pedro Alves <palves@redhat.com>
6972
6973 * maint-test-settings.c: Fix file's intro comment. Replace all
6974 references to "test-options" with references to "test-settings",
6975 in comments.
6976
6977 2019-07-03 Pedro Alves <palves@redhat.com>
6978
6979 * maint-test-settings.c (maintenance_test_settings_xxx)
6980 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6981 New.
6982 (maintenance_test_settings_enums): Use them.
6983 (maintenance_test_settings_enum): Default to
6984 maintenance_test_settings_xxx.
6985 (_initialize_maint_test_settings): Initialize
6986 MAINTENANCE_TEST_SETTINGS_FILENAME.
6987
6988 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6989
6990 * breakpoint.h (remove_breakpoints_inf): Change return type to
6991 void, move function documentation here.
6992 * breakpoint.c (remove_breakpoints_inf): Change return type to
6993 void, move function documentation to header.
6994
6995 2019-07-02 Pedro Alves <palves@redhat.com>
6996
6997 * NEWS (Completion improvements): Mention "info threads".
6998 * thread.c (struct info_threads_opts, info_threads_option_defs)
6999 (make_info_threads_options_def_group): New.
7000 (info_threads_command): Use gdb::option::process_options.
7001 (info_threads_command_completer): New.
7002 (_initialize_thread): Use gdb::option::build_help to build the
7003 help text for "info threads".
7004
7005 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * defs.h (generic_load): Move from here...
7008 * symfile.h (generic_load): ... to here. Rename name parameter
7009 to args.
7010 * symfile.c (generic_load): Add comment.
7011
7012 2019-07-01 Tom Tromey <tromey@adacore.com>
7013
7014 * dwarf2read.c
7015 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7016 declaration of without_params. Fix formatting.
7017
7018 2019-07-01 Tom Tromey <tromey@adacore.com>
7019
7020 * ada-exp.y (find_primitive_type): Update.
7021 * ada-lang.h (ada_lookup_symbol): Update.
7022 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7023 parameter.
7024 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7025
7026 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7027
7028 PR breakpoints/24541
7029 * gdbarch.c: Regenerate.
7030 * gdbarch.h: Regenerate.
7031 * gdbarch.sh: Add 'stap_adjust_register'.
7032 * i386-tdep.c: Include '<unordered_set>'.
7033 (i386_stap_adjust_register): New function.
7034 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7035 * stap-probe.c (stap_parse_register_operand): Call
7036 'gdbarch_stap_adjust_register'.
7037
7038 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7039
7040 PR python/24742
7041 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7042 * python/python.c (do_start_initialization): Use 'xmalloc'
7043 instead of 'PyMem_Malloc'.
7044
7045 2019-06-28 Tom Tromey <tromey@adacore.com>
7046
7047 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7048 for Ada.
7049
7050 2019-06-27 Tom Tromey <tromey@adacore.com>
7051
7052 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7053 objfile_key.
7054 (arm_find_mapping_symbol, arm_record_special_symbol)
7055 (_initialize_arm_tdep): Update.
7056 (arm_objfile_data_free): Remove.
7057
7058 2019-06-27 Tom Tromey <tromey@adacore.com>
7059
7060 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7061 to cp_print_static_field.
7062
7063 2019-06-26 Tom Tromey <tromey@adacore.com>
7064
7065 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7066 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7067 declare.
7068
7069 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7070
7071 * features/aarch64-core.c (create_feature_aarch64_core):
7072 Regenerate.
7073 * features/aarch64-core.xml: Add cpsr flags.
7074
7075 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7076
7077 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7078 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7079
7080 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7081
7082 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7083 field.
7084 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7085 use.
7086 (arm_record_special_symbol): Don't insert new symbol in sorted
7087 position, push it at the end.
7088
7089 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7090
7091 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7092 (arm_mapping_symbol_s): Remove.
7093 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7094 (arm_mapping_symbol_vec): New typedef.
7095 (struct arm_per_objfile): Add constructor.
7096 <section_maps>: Change type to
7097 std::unique_ptr<arm_mapping_symbol_vec[]>.
7098 (arm_compare_mapping_symbols): Remove.
7099 (arm_find_mapping_symbol): Adjust to section_maps type change.
7100 (arm_objfile_data_free): Call delete on arm_per_objfile.
7101 (arm_record_special_symbol): Adjust to section_maps type change.
7102 Allocate arm_per_objfile with new.
7103
7104 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7105
7106 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7107 with the command prefix.
7108
7109 2019-06-25 Tom Tromey <tom@tromey.com>
7110
7111 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7112 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7113
7114 2019-06-25 Tom Tromey <tom@tromey.com>
7115
7116 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7117 type.
7118 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7119 protected.
7120
7121 2019-06-25 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-winsource.c
7124 (tui_source_window_base::set_is_exec_point_at): Add check against
7125 LOA_ADDRESS.
7126
7127 2019-06-25 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui-source.c (tui_set_source_content): Don't check before
7130 xfree.
7131 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7132
7133 2019-06-25 Tom Tromey <tom@tromey.com>
7134
7135 * tui/tui-winsource.h (tui_update_source_window_as_is)
7136 (tui_alloc_source_buffer, tui_line_is_displayed)
7137 (tui_addr_is_displayed): Change type of win_info.
7138 * tui/tui-winsource.c (tui_update_source_window_as_is)
7139 (tui_clear_source_content, tui_show_source_line)
7140 (tui_show_source_content, tui_source_window_base::refill)
7141 (tui_source_window_base::set_is_exec_point_at)
7142 (tui_source_window_base::set_is_exec_point_at)
7143 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7144 (tui_alloc_source_buffer, tui_line_is_displayed)
7145 (tui_addr_is_displayed): Change type of win_info. Update.
7146 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7147 (tui_source_window_base::do_make_visible_with_new_height):
7148 Update.
7149 * tui/tui-source.c (tui_set_source_content)
7150 (tui_set_source_content_nil)
7151 (tui_source_window::do_scroll_vertical): Update.
7152 * tui/tui-layout.c (show_layout): Update.
7153 * tui/tui-disasm.c (tui_set_disassem_content)
7154 (tui_disasm_window::do_scroll_vertical): Update.
7155 * tui/tui-data.h (tui_win_content): Remove.
7156 (struct tui_gen_win_info) <content, content_size>: Remove.
7157 (struct tui_source_element): Add initializers and destructor.
7158 (union tui_which_element, struct tui_win_element): Remove.
7159 (struct tui_source_window_base) <content>: New field.
7160 (struct tui_data_window): Remove destructor.
7161 (tui_alloc_content, tui_free_win_content)
7162 (tui_free_all_source_wins_content): Don't declare.
7163 * tui/tui-data.c (tui_initialize_static_data): Update.
7164 (init_content_element, tui_alloc_content): Remove.
7165 (~tui_gen_win_info): Update.
7166 (~tui_data_window, tui_free_all_source_wins_content)
7167 (tui_free_win_content, free_content, free_content_elements):
7168 Remove.
7169
7170 2019-06-25 Tom Tromey <tom@tromey.com>
7171
7172 * tui/tui-winsource.h (tui_clear_source_content)
7173 (tui_erase_source_content, tui_show_source_content): Change type
7174 of win_info.
7175 * tui/tui-winsource.c (tui_clear_source_content)
7176 (tui_erase_source_content, tui_show_source_content): Change type
7177 of win_info.
7178 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7179 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7180 win_info.
7181 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7182 win_info.
7183 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7184
7185 2019-06-25 Tom Tromey <tom@tromey.com>
7186
7187 * tui/tui-winsource.c (tui_clear_source_content)
7188 (tui_source_window_base::set_is_exec_point_at): Update.
7189 * tui/tui-source.c (tui_set_source_content_nil): Update.
7190 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7191 a bool.
7192 * tui/tui-data.c (init_content_element): Update.
7193
7194 2019-06-25 Tom Tromey <tom@tromey.com>
7195
7196 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7197 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7198 * tui/tui-layout.c (init_and_make_win): Update.
7199 * tui/tui.h (enum tui_win_type): Update.
7200 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7201 tui_win_is_auxillary.
7202 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7203 tui_win_is_auxillary.
7204
7205 2019-06-25 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7208 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7209 (tui_delete_data_content_windows, tui_display_all_data)
7210 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7211 Update.
7212 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7213 * tui/tui-regs.c (tui_last_regs_line_no)
7214 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7215 (tui_show_registers): Update.
7216 (tui_show_register_group): Return void. Update.
7217 (tui_display_registers_from, tui_display_reg_element_at_line)
7218 (tui_display_registers_from_line, tui_check_register_values):
7219 Update.
7220 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7221 member.
7222 (struct tui_data_window) <regs_content>: Now a std::vector.
7223 <regs_content_count>: Remove.
7224 (tui_add_content_elements, tui_free_data_content): Don't declare.
7225 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7226 (init_content_element): Remove DATA_WIN case. Add assert.
7227 (tui_add_content_elements): Remove.
7228 (tui_data_window): Update.
7229 (tui_free_data_content): Remove.
7230 (free_content_elements): Remove DATA_WIN case.
7231
7232 2019-06-25 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-data.c (tui_data_item_window): Update.
7235 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7236 * tui/tui-windata.c (tui_display_all_data)
7237 (tui_display_data_from_line): Update.
7238 (tui_check_data_values): Remove.
7239 * tui/tui-regs.c (tui_show_register_group)
7240 (tui_display_reg_element_at_line): Update.
7241 * tui/tui-hooks.c (tui_register_changed)
7242 (tui_refresh_frame_and_register_information): Call
7243 tui_check_register_values.
7244 * tui/tui-data.h (struct tui_data_window) <data_content,
7245 data_content_count, data_type>: Remove.
7246 (enum tui_data_type): Remove.
7247
7248 * tui/tui-data.c (tui_data_window::clear_detail)
7249 (~tui_data_window): Update.
7250
7251 2019-06-25 Tom Tromey <tom@tromey.com>
7252
7253 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7254 declare.
7255 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7256 Rename from tui_first_data_item_displayed. Update.
7257 (tui_data_window::refresh_all)
7258 (tui_data_window::do_scroll_vertical): Update.
7259 * tui/tui-data.h (struct tui_data_window)
7260 <first_data_item_displayed>: Declare new method.
7261
7262 2019-06-25 Tom Tromey <tom@tromey.com>
7263
7264 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7265 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7266 contents...
7267 (tui_initialize_static_data): ...here.
7268
7269 2019-06-25 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7272 (tui_display_registers_from, tui_check_register_values): Update.
7273 (tui_display_register): Remove win_info parameter; update.
7274 (tui_get_register): Change type of parameters.
7275 * tui/tui-data.h (struct tui_data_element): Remove.
7276 (union tui_which_element) <data>: Remove.
7277 <data_window>: Change type.
7278 (struct tui_data_item_window): New.
7279 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7280 case. Add assert.
7281 (~tui_data_item_window): New destructor.
7282 (free_content_elements): Remove DATA_ITEM_WIN case.
7283
7284 2019-06-25 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7287 Remove.
7288
7289 2019-06-25 Tom Tromey <tom@tromey.com>
7290
7291 * tui/tui-data.h (struct tui_command_element): Remove.
7292 (union tui_which_element) <command>: Remove.
7293 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7294 assert.
7295 (free_content_elements): Remove CMD_WIN case.
7296
7297 2019-06-25 Tom Tromey <tom@tromey.com>
7298
7299 * tui/tui-layout.c (tui_set_layout): Update.
7300 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7301 * tui/tui-data.c (layout_def): Update.
7302
7303 2019-06-25 Tom Tromey <tom@tromey.com>
7304
7305 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7306 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7307 (tui_source_window_base::set_new_height): Update.
7308 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7309 Update.
7310 (tui_set_locator_fullname, tui_set_locator_info)
7311 (tui_show_frame_info): Update.
7312 * tui/tui-source.c (tui_set_source_content)
7313 (tui_source_is_displayed): Update.
7314 * tui/tui-layout.c (show_source_disasm_command, show_data)
7315 (show_source_or_disasm_and_command): Update.
7316 * tui/tui-disasm.c (tui_set_disassem_content)
7317 (tui_get_begin_asm_address): Update.
7318 * tui/tui-data.h (struct tui_locator_element): Remove.
7319 (union tui_which_element) <locator>: Remove.
7320 (struct tui_locator_window): New.
7321 (tui_locator_win_info_ptr): Change return type.
7322 * tui/tui-data.c (_locator): Change type.
7323 (tui_locator_win_info_ptr): Change return type.
7324 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7325 (tui_alloc_content): Add assert.
7326
7327 2019-06-25 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-winsource.c
7330 (tui_exec_info_window::maybe_allocate_content): New method.
7331 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7332 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7333 (make_source_or_disasm_window): Add cast.
7334 * tui/tui-data.h (union tui_which_element) <simple_string>:
7335 Remove.
7336 (struct tui_source_info): New.
7337 (struct tui_source_window_base) <execution_info>: Change type.
7338 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7339 case, and add assert.
7340 (tui_alloc_content): Add assert.
7341
7342 2019-06-25 Tom Tromey <tom@tromey.com>
7343
7344 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7345 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7346 * tui/tui-data.c (tui_alloc_win_info): Remove.
7347
7348 2019-06-25 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7351 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7352 can_highlight.
7353
7354 2019-06-25 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7357 make_visible_with_new_height method.
7358 (tui_win_info::make_visible_with_new_height): New method.
7359 (tui_source_window_base::do_make_visible_with_new_height)
7360 (tui_data_window::do_make_visible_with_new_height)
7361 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7362 (make_visible_with_new_height): Remove.
7363 (tui_resize_all, tui_adjust_win_heights): Use
7364 make_visible_with_new_height method.
7365 * tui/tui-data.h (struct tui_win_info)
7366 <do_make_visible_with_new_height, make_visible_with_new_height>:
7367 New methods.
7368 (struct tui_source_window_base, struct tui_data_window)
7369 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7370 methods.
7371
7372 2019-06-25 Tom Tromey <tom@tromey.com>
7373
7374 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7375 method.
7376 (update_tab_width): Call update_tab_width method.
7377 * tui/tui-data.h (struct tui_win_info)
7378 (struct tui_source_window_base) <update_tab_width>: New methods.
7379
7380 2019-06-25 Tom Tromey <tom@tromey.com>
7381
7382 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7383 parameter.
7384 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7385 parameter.
7386 (tui_gen_win_info::make_visible): Update.
7387 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7388 parameter.
7389 * tui/tui-data.h (enum tui_box): New enum.
7390 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7391
7392 2019-06-25 Tom Tromey <tom@tromey.com>
7393
7394 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7395 init_and_make_win for EXEC_INFO_WIN.
7396 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7397 longer inline.
7398 (struct tui_win_info) <~tui_win_info>: Inline.
7399 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7400 Don't declare.
7401 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7402 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7403 Remove.
7404 (tui_initialize_static_data): Update.
7405 (~tui_gen_win_info): Handle more cleanup here.
7406 (~tui_source_window_base): Delete "execution_info".
7407 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7408
7409 2019-06-25 Tom Tromey <tom@tromey.com>
7410
7411 * tui/tui-layout.c (make_command_window): Don't set
7412 can_highlight.
7413 (show_source_disasm_command): Call the reset method.
7414 (show_data): Don't set can_highlight. Call the reset method.
7415 (tui_gen_win_info::reset): Rename from init_gen_win_info
7416 (init_and_make_win): Simplify. Return tui_gen_win_info.
7417 (show_source_or_disasm_and_command): Call the reset method.
7418 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7419 (struct tui_cmd_window): Set can_highlight.
7420
7421 2019-06-25 Tom Tromey <tom@tromey.com>
7422
7423 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7424 from make_visible.
7425 (tui_make_visible, tui_make_invisible): Rewrite.
7426 (tui_win_info::make_visible): Remove.
7427 (tui_source_window_base::make_visible): Update.
7428 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7429 method. Moved from...
7430 (struct tui_win_info) <make_visible>: ...here.
7431
7432 2019-06-25 Tom Tromey <tom@tromey.com>
7433
7434 * tui/tui-winsource.c
7435 (tui_source_window_base::do_scroll_horizontal): Remove direction
7436 parameter.
7437 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7438 direction parameter.
7439 * tui/tui-win.c (tui_win_info::forward_scroll)
7440 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7441 (tui_win_info::right_scroll): Update.
7442 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7443 direction parameter.
7444 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7445 direction parameter.
7446 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7447 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7448 Remove direction parameter.
7449 (struct tui_source_window_base, struct tui_source_window)
7450 (struct tui_disasm_window, struct tui_data_window)
7451 (struct tui_cmd_window): Update.
7452
7453 2019-06-25 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-winsource.h (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 * tui/tui-winsource.c (tui_set_exec_info_content)
7460 (tui_show_exec_info_content, tui_erase_exec_info_content)
7461 (tui_clear_exec_info_content, tui_update_exec_info): Change
7462 argument to tui_source_window_base.
7463
7464 2019-06-25 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7467 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7468
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7472 check.
7473
7474 2019-06-25 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7477 type to void.
7478 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7479 type to void.
7480 * tui/tui-source.c (tui_set_source_content): Update.
7481 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7482
7483 2019-06-25 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui-win.c (window_name_completer, tui_set_focus)
7486 (tui_all_windows_info): Use name method.
7487 * tui/tui-data.h (struct tui_gen_win_info)
7488 (struct tui_source_window, struct tui_disasm_window)
7489 (struct tui_data_window, struct tui_cmd_window) <name>: New
7490 method.
7491 (tui_win_name): Don't declare.
7492 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7493 (tui_win_name): Remove.
7494
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui-winsource.h (tui_update_source_window)
7498 (tui_update_source_window_as_is): Change parameter type.
7499 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7500 to be a tui_source_window_base.
7501 (tui_update_source_window_as_is): Likewise.
7502 * tui/tui-win.c (make_visible_with_new_height): Update.
7503
7504 2019-06-25 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-winsource.c (tui_erase_source_content)
7507 (tui_show_source_content, tui_show_exec_info_content)
7508 (tui_erase_exec_info_content): Use refresh_window method.
7509 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7510 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7511 from tui_refresh_win.
7512 (tui_data_window::refresh_window): New method.
7513 (tui_win_info::refresh, tui_source_window_base::refresh)
7514 (tui_refresh_all): Use refresh_window method.
7515 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7516 method.
7517 * tui/tui-regs.c (tui_display_register): Call refresh_window
7518 method.
7519 * tui/tui-layout.c (show_source_disasm_command)
7520 (show_source_or_disasm_and_command): Call refresh_window method.
7521 * tui/tui-data.h (struct tui_gen_win_info)
7522 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7523 New method.
7524
7525 2019-06-25 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui.c (tui_rl_other_window, tui_enable)
7528 (tui_is_window_visible, tui_get_command_dimension): Update.
7529 * tui/tui-winsource.c (tui_update_source_window_as_is)
7530 (tui_clear_source_content, tui_erase_source_content)
7531 (tui_show_source_line, tui_source_window_base::refill)
7532 (tui_source_window_base::do_scroll_horizontal)
7533 (tui_source_window_base::set_is_exec_point_at)
7534 (tui_update_breakpoint_info, tui_set_exec_info_content)
7535 (tui_alloc_source_buffer, tui_line_is_displayed)
7536 (tui_addr_is_displayed): Update.
7537 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7538 (tui_check_and_display_highlight_if_needed)
7539 (tui_win_info::make_visible, tui_win_info::refresh)
7540 (tui_refresh_all): Update.
7541 * tui/tui-windata.c (tui_first_data_item_displayed)
7542 (tui_delete_data_content_windows, tui_erase_data_content)
7543 (tui_display_all_data, tui_data_window::refresh_all)
7544 (tui_check_data_values): Update.
7545 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7546 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7547 (tui_win_info::backward_scroll, tui_refresh_all_win)
7548 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7549 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7550 (tui_source_window_base::set_new_height)
7551 (tui_data_window::set_new_height)
7552 (make_invisible_and_set_new_height)
7553 (make_visible_with_new_height, new_height_ok)
7554 (parse_scrolling_args): Update.
7555 * tui/tui-stack.c (tui_show_frame_info): Update.
7556 * tui/tui-source.c (tui_set_source_content)
7557 (tui_set_source_content_nil, tui_source_is_displayed)
7558 (tui_source_window::do_scroll_vertical): Update.
7559 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7560 (tui_display_registers_from, tui_display_reg_element_at_line)
7561 (tui_check_register_values, tui_reg_command): Update.
7562 * tui/tui-layout.c (tui_default_win_height)
7563 (show_source_disasm_command, show_data, init_and_make_win)
7564 (show_source_or_disasm_and_command): Update.
7565 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7566 (tui_redisplay_readline, tui_mld_flush)
7567 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7568 (tui_getc): Update.
7569 * tui/tui-disasm.c (tui_set_disassem_content)
7570 (tui_disasm_window::do_scroll_vertical): Update.
7571 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7572 Now virtual.
7573 (struct tui_win_info): Derive from tui_gen_win_info.
7574 <~tui_win_info>: Mark as override.
7575 <generic>: Remove member.
7576 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7577 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7578 (~tui_data_window, ~tui_win_info)
7579 (tui_free_all_source_wins_content): Update.
7580 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7581
7582 2019-06-25 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-layout.c (init_and_make_win): Use new.
7585 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7586 destructor, initializers.
7587 (tui_alloc_generic_win_info): Don't declare.
7588 * tui/tui-data.c (_locator): Add argument to constructor.
7589 (source_win, disasm_win): New globals.
7590 (exec_info): Remove.
7591 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7592 Update.
7593 (tui_alloc_generic_win_info): Remove.
7594 (init_content_element): Use new.
7595 (tui_win_info::tui_win_info): Update.
7596 (free_content_elements) <case DATA_WIN>: Use delete.
7597
7598 2019-06-25 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7601 * tui/tui-windata.c (tui_first_data_item_displayed)
7602 (tui_delete_data_content_windows): Update.
7603 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7604 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7605 (tui_display_registers_from, tui_check_register_values): Update.
7606 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7607 pointer.
7608 * tui/tui-data.c (init_content_element): Update. Allocate the new
7609 window.
7610 (tui_free_data_content): Update.
7611 (free_content_elements) <case DATA_WIN>: Free the window.
7612
7613 2019-06-25 Tom Tromey <tom@tromey.com>
7614
7615 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7616 Update.
7617 * tui/tui-layout.c (make_command_window)
7618 (show_source_disasm_command, show_data, init_and_make_win)
7619 (show_source_or_disasm_and_command): Update.
7620 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7621 method.
7622 <can_highight, is_highlighted>: Now bool.
7623 (tui_set_win_highlight): Don't declare.
7624 * tui/tui-data.c (tui_set_win_highlight): Remove.
7625
7626 2019-06-25 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-wingeneral.c (make_visible): Remove check of window
7629 type.
7630
7631 2019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-win.c (tui_win_info::max_height)
7634 (tui_cmd_window::max_height): New methods.
7635 (new_height_ok): Call max_height.
7636 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7637 <max_height>: New method.
7638
7639 2019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-win.c (tui_source_window_base::set_new_height)
7642 (tui_data_window::set_new_height): New methods.
7643 (make_invisible_and_set_new_height): Call set_new_height method.
7644 * tui/tui-data.h (struct tui_win_info)
7645 (struct tui_source_window_base, struct tui_data_window)
7646 <set_new_height>: New method.
7647
7648 2019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7651 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7652 tui_refresh_data_win.
7653 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7654 method.
7655 (tui_refresh_all_win): Call the refresh_all method.
7656 (tui_set_focus): Likewise.
7657 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7658 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7659 Likewise.
7660
7661 2019-06-25 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-winsource.h (tui_refill_source_window)
7664 (tui_set_is_exec_point_at): Don't declare.
7665 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7666 (tui_source_window_base::refill): Rename from
7667 tui_refill_source_window.
7668 (tui_source_window_base::do_scroll_horizontal): Update.
7669 (tui_source_window_base::set_is_exec_point_at): Rename from
7670 tui_set_is_exec_point_at.
7671 (tui_update_all_breakpoint_info): Update.
7672 * tui/tui-stack.c (tui_show_frame_info): Update.
7673 * tui/tui-layout.c (show_data): Add cast.
7674 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7675 * tui/tui-data.h (struct tui_source_window_base) <refill,
7676 set_is_exec_point_at>: New methods.
7677 (tui_source_windows, tui_add_to_source_windows): Update types.
7678 (tui_add_to_source_windows): Remove redundant declaration.
7679 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7680 (tui_source_windows): Change return type.
7681 (tui_clear_source_windows_detail): Update.
7682 (tui_add_to_source_windows): Change type of parameter.
7683 (tui_free_all_source_wins_content): Update.
7684
7685 2019-06-25 Tom Tromey <tom@tromey.com>
7686
7687 * tui/tui-wingeneral.c (tui_win_info::refresh)
7688 (tui_source_window_base::refresh): New methods.
7689 (tui_refresh_all): Call the refresh method.
7690 * tui/tui-data.h (struct tui_win_info)
7691 (struct tui_source_window_base) <refresh>: New method.
7692
7693 2019-06-25 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui.h (tui_is_window_visible): Return bool.
7696 * tui/tui.c (tui_is_window_visible): Return bool.
7697 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7698 (tui_make_visible, tui_make_invisible)
7699 (tui_win_info::make_visible)
7700 (tui_source_window_base::make_visible, make_all_visible)
7701 (tui_make_all_visible, tui_make_all_invisible): Update.
7702 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7703 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7704 bool.
7705 (struct tui_win_info, struct tui_source_window_base)
7706 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7707 * tui/tui-data.c (tui_init_generic_part): Update.
7708
7709 2019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7712 (tui_source_window_base::make_visible): New methods.
7713 (make_all_visible): Make method call.
7714 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7715 (struct tui_source_window_base, struct tui_cmd_window): Override
7716 make_visible.
7717 (tui_win_is_source_type): Don't declare.
7718 * tui/tui-data.c (tui_win_is_source_type): Remove.
7719
7720 2019-06-25 Tom Tromey <tom@tromey.com>
7721
7722 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7723 NULL check.
7724
7725 2019-06-25 Tom Tromey <tom@tromey.com>
7726
7727 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7728 Inline constructor. Add initializers for members.
7729 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7730 constructors; now inline in class.
7731
7732 2019-06-25 Tom Tromey <tom@tromey.com>
7733
7734 * tui/tui-regs.c (tui_show_registers): Update.
7735 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7736 bool.
7737 * tui/tui-data.c (tui_data_window::clear_detail)
7738 (tui_data_window): Update.
7739
7740 2019-06-25 Tom Tromey <tom@tromey.com>
7741
7742 * tui/tui-windata.c (tui_display_all_data)
7743 (tui_display_data_from_line, tui_display_data_from)
7744 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7745 Update.
7746 * tui/tui-regs.c (tui_last_regs_line_no)
7747 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7748 (tui_show_registers, tui_show_register_group)
7749 (tui_display_registers_from, tui_display_reg_element_at_line)
7750 (tui_display_registers_from_line, tui_check_register_values)
7751 (tui_reg_next, tui_reg_prev): Update.
7752 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7753 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7754 tui_data_window.
7755 (struct tui_win_info) <detail>: Remove. Add new fields from
7756 tui_data_info.
7757 (TUI_DATA_WIN): Add cast.
7758 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7759 (~tui_data_window): Simplify.
7760
7761 2019-06-25 Tom Tromey <tom@tromey.com>
7762
7763 * tui/tui-layout.c (show_source_disasm_command)
7764 (show_source_or_disasm_and_command): Update.
7765 * tui/tui-io.c (update_cmdwin_start_line)
7766 (tui_redisplay_readline): Update.
7767 * tui/tui-data.h (struct tui_command_info): Remove.
7768 (struct tui_win_info) <detail>: Remove command_info member.
7769 (struct tui_data_window) <start_line>: New member, from
7770 tui_command_info.
7771 (TUI_CMD_WIN): Add casts.
7772
7773 2019-06-25 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-winsource.c (tui_update_source_window)
7776 (tui_refill_source_window)
7777 (tui_source_window_base::do_scroll_horizontal)
7778 (tui_update_breakpoint_info, tui_set_exec_info_content)
7779 (tui_show_exec_info_content, tui_erase_exec_info_content)
7780 (tui_clear_exec_info_content): Update.
7781 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7782 Update.
7783 * tui/tui-win.c (make_invisible_and_set_new_height)
7784 (make_visible_with_new_height): Update.
7785 * tui/tui-source.c (tui_set_source_content)
7786 (tui_show_symtab_source): Update.
7787 * tui/tui-layout.c (extract_display_start_addr)
7788 (show_source_disasm_command, show_data)
7789 (make_source_or_disasm_window)
7790 (show_source_or_disasm_and_command): Update.
7791 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7792 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7793 "gdbarch".
7794 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7795 to tui_source_window_base.
7796 (struct tui_win_info) <detail>: Remove source_info member.
7797 (struct tui_source_window_base) <has_locator>: Inline.
7798 Move contents from tui_source_info; rename has_locator member to
7799 m_has_locator.
7800 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7801 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7802 header file.
7803 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7804 Simplify.
7805 (tui_free_all_source_wins_content): Cast to
7806 tui_source_window_base.
7807
7808 2019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-win.c (make_invisible_and_set_new_height)
7811 (make_visible_with_new_height): Call has_locator method.
7812 * tui/tui-layout.c (show_source_disasm_command, show_data)
7813 (show_source_or_disasm_and_command): Update for bool change.
7814 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7815 (tui_win_info) <has_locator>: New method.
7816 (struct tui_source_window_base) <has_locator>: New method.
7817 (tui_win_has_locator): Don't declare.
7818 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7819 from tui_win_has_locator.
7820 (tui_source_window_base): Use false, not FALSE.
7821
7822 2019-06-25 Tom Tromey <tom@tromey.com>
7823
7824 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7825 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7826 clear_detail method directly.
7827 (tui_clear_win_detail): Remove.
7828
7829 2019-06-25 Tom Tromey <tom@tromey.com>
7830
7831 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7832 "this", not TUI_DISASM_WIN.
7833
7834 2019-06-25 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7837 declare.
7838 * tui/tui-winsource.c
7839 (tui_source_window_base::do_scroll_horizontal): Rename from
7840 tui_horizontal_source_scroll.
7841 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7842 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7843 from tui_vertical_data_scroll.
7844 * tui/tui-win.h (tui_scroll): Don't declare.
7845 * tui/tui-win.c (tui_win_info::forward_scroll)
7846 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7847 (tui_win_info::right_scroll): Rename and update.
7848 (tui_scroll_forward_command, tui_scroll_backward_command)
7849 (tui_scroll_left_command, tui_scroll_right_command): Update.
7850 (tui_scroll): Remove.
7851 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7852 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7853 from tui_vertical_source_scroll.
7854 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7855 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7856 from tui_vertical_disassem_scroll.
7857 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7858 do_scroll_horizontal>: New methods.
7859 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7860 Likewise.
7861 (struct tui_source_window_base): Add do_scroll_horizontal.
7862 (struct tui_source_window, struct tui_disasm_window): Add
7863 do_scroll_vertical.
7864 (struct tui_data_window, struct tui_cmd_window): Add
7865 do_scroll_horizontal and do_scroll_vertical.
7866 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7867
7868 2019-06-25 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-data.h (struct tui_source_window_base): New struct.
7871 (struct tui_source_window): Derive from tui_source_window_base.
7872 (struct tui_disasm_window): New struct.
7873 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7874 from tui_source_window::clear_detail.
7875 (tui_source_window_base): Rename from tui_source_window.
7876 (~tui_source_window_base): Rename from ~tui_source_window.
7877 (tui_alloc_win_info): Create a tui_disasm_window.
7878
7879 2019-06-25 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-data.h (struct tui_source_window)
7882 (struct tui_data_window): Declare destructors.
7883 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7884 destructors.
7885 (tui_win_info): Simplify.
7886
7887 2019-06-25 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-winsource.c (tui_display_main)
7890 (tui_update_source_windows_with_addr)
7891 (tui_update_all_breakpoint_info): Update.
7892 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7893 (new_height_ok, parse_scrolling_args): Update.
7894 * tui/tui-stack.c (tui_show_frame_info): Update.
7895 * tui/tui-data.h (struct tui_list): Remove.
7896 (tui_source_windows): Return a reference to a std::vector.
7897 * tui/tui-data.c (source_windows): Now a std::vector.
7898 (tui_source_windows): Change return type.
7899 (tui_clear_source_windows): Rewrite.
7900 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7901 (tui_free_all_source_wins_content): Rewrite.
7902
7903 2019-06-25 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7906 (struct tui_data_window, struct tui_cmd_window): Declare
7907 clear_detail method.
7908 * tui/tui-data.c (tui_source_window::clear_detail)
7909 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7910 methods.
7911 (tui_clear_win_detail): Simplify.
7912
7913 2019-06-25 Tom Tromey <tom@tromey.com>
7914
7915 * tui/tui-layout.c (make_source_window, make_disasm_window)
7916 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7917 Return the new window.
7918 (show_source_disasm_command, show_data)
7919 (show_source_or_disasm_and_command): Update.
7920
7921 2019-06-25 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7924 parameter. Return the new window.
7925 (show_source_disasm_command): Update and remove NULL check.
7926 (show_source_or_disasm_and_command): Update.
7927
7928 2019-06-25 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7931
7932 2019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui-data.h (struct tui_win_info): Make constructor
7935 protected. Make destructor virtual. Add initializers.
7936 (tui_source_window, tui_data_window, tui_cmd_window): New
7937 classes.
7938 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7939 constructor. Add "type" parameter.
7940 (tui_source_window, tui_data_window, tui_cmd_window): New
7941 constructors.
7942 (tui_alloc_win_info): Instantiate the appropriate subclass.
7943
7944 2019-06-25 Tom Tromey <tom@tromey.com>
7945
7946 * tui/tui-win.c (tui_resize_all): Use delete.
7947 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7948 destructor.
7949 (tui_free_window): Don't declare.
7950 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7951 Update.
7952
7953 2019-06-25 Tom Tromey <tom@tromey.com>
7954
7955 * tui/tui-data.h (struct tui_win_info): Add constructor.
7956 * tui/tui-data.c (tui_alloc_win_info): Use new.
7957 (tui_free_window): Use delete.
7958
7959 2019-06-22 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7962 declare.
7963 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7964
7965 2019-06-22 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7968 declare.
7969 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7970
7971 2019-06-22 Tom de Vries <tdevries@suse.de>
7972
7973 * dwarf2read.c (create_addrmap_from_aranges)
7974 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7975 instead of '%zu'.
7976
7977 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * dwarf2read.h (dwarf2_section_info_def): Remove.
7980 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7981 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7982 std::vector<dwarf2_section_info>.
7983 (struct dwo_file) <~dwo_file>: Remove.
7984 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7985 types field.
7986 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7987 (dwarf2_read_debug_names): Likewise.
7988 (create_debug_types_hash_table): Change parameter type to
7989 array_view, adjust code accordingly.
7990 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7991 (partial_die_info::fixup): Likewise.
7992 (determine_prefix): Likewise.
7993 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7994
7995 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7996
7997 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7998 gdb_bfd_ref_ptr.
7999 <~dwo_file>: Remove call to gdb_bfd_unref.
8000 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8001 gdb_bfd_ref_ptr::get.
8002
8003 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8004
8005 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8006 type to htab_up.
8007 * dwarf2read.c (struct dwo_file): Initialize fields.
8008 <~dwo_file>: New.
8009 (free_dwo_file): Remove, move content to ~dwo_file.
8010 (struct dwo_file_deleter): Remove.
8011 (dwo_file_up>: Remove custom deleter.
8012 (free_dwo_files): Remove.
8013 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8014 dwo_files.
8015 (process_skeletonless_type_units): Call unique_ptr::get.
8016 (allocate_dwo_file_hash_table): Add deleter to created hash
8017 table. Change return type to htab_up.
8018 (lookup_dwo_file_slot): Don't memset dwo_file, call
8019 unique_ptr::get.
8020 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8021 (create_dwo_unit_in_dwp_v2): Likewise.
8022 (open_and_init_dwo_file): Likewise.
8023 (free_dwo_file_from_slot): Remove.
8024
8025 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8026
8027 * dwarf2read.h (struct dwarf2_section_info) <readin,
8028 is_virtual>: Change type to bool.
8029 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8030 true instead of 1.
8031
8032 2019-06-19 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-data.h (tui_init_content_element): Don't declare.
8035
8036 2019-06-19 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui-data.h (tui_init_win_info): Don't declare.
8039
8040 2019-06-19 Tom de Vries <tdevries@suse.de>
8041
8042 * dwarf2read.h (abstract_to_concrete): Change type to
8043 std::unordered_map<sect_offset, std::vector<sect_offset>,
8044 gdb::hash_enum<sect_offset>>.
8045
8046 2019-06-19 Tom Tromey <tromey@adacore.com>
8047
8048 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8049 EVAL_AVOID_SIDE_EFFECTS specially.
8050
8051 2019-06-19 Tom Tromey <tromey@adacore.com>
8052
8053 * source-cache.c (highlighter): New global.
8054 (source_cache::get_source_lines): Create a highlighter on demand.
8055
8056 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8057
8058 * defs.h (deprecated_interactive_hook): Delete declaration.
8059 * interps.c (clear_interpreter_hooks): Remove use of
8060 deprecated_interactive_hook.
8061 * top.c (deprecated_interactive_hook): Delete definition.
8062 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8063
8064 2019-06-18 Tom de Vries <tdevries@suse.de>
8065
8066 PR gdb/24515
8067 * dwarf2read.h (abstract_to_concrete): Change type from
8068 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8069 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8070 * dwarf2read.c (read_variable): Update.
8071 (dwarf2_fetch_die_loc_sect_off): Update.
8072
8073 2019-06-17 Tom de Vries <tdevries@suse.de>
8074
8075 PR gdb/24617
8076 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8077 accessing parent[parent_len - 1].
8078
8079 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8080
8081 PR gdb/24364
8082 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8083 call dtrace_process_dof with NULL dof.
8084
8085 2019-06-16 Tom de Vries <tdevries@suse.de>
8086
8087 PR gdb/24445
8088 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8089
8090 2019-06-16 Tom Tromey <tom@tromey.com>
8091
8092 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8093 (make_all_visible): Use address of member.
8094
8095 2019-06-16 Tom Tromey <tom@tromey.com>
8096
8097 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8098 (tui_free_window, free_content, free_content_elements): Remove
8099 unnecessary cast.
8100 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8101 cast.
8102 * tui/tui-regs.c (tui_show_register_group)
8103 (tui_display_registers_from, tui_display_reg_element_at_line):
8104 Remove unnecessary cast.
8105
8106 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * linux-nat.c (normal_mask): Delete.
8109 (_initialize_linux_nat): Don't initialise normal_mask.
8110
8111 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8112
8113 PR gdb/24445
8114 * dwarf-index-write.h (write_psymtabs_to_index): Add
8115 dwz_basename parameter.
8116 * dwarf-index-write.c (write_gdbindex): Move file writing to
8117 write_gdbindex_1. Change return type void.
8118 (assert_file_size): Move up, remove filename parameter.
8119 (write_gdbindex_1): New function.
8120 (write_debug_names): Change return type to void, call
8121 assert_file_size.
8122 (struct index_wip_file): New struct.
8123 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8124 file logic to index_wip_file. Write index for dwz file if
8125 needed.
8126 (save_gdb_index_command): Pass basename of dwz file, if present.
8127 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8128 build-id of dwz file, if present.
8129 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8130 (dwarf2_get_dwz_file): Likewise.
8131 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8132 (dwarf2_get_dwz_file): Likewise.
8133
8134 2019-06-16 Tom Tromey <tom@tromey.com>
8135
8136 * coffread.c (process_coff_symbol): Use xstrdup.
8137 * value.c (create_internalvar): Use xstrdup.
8138
8139 2019-06-16 Tom Tromey <tom@tromey.com>
8140
8141 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8142 * breakpoint.c (stopin_command, stopat_command)
8143 (until_break_command, decode_location_default): Remove unnecessary
8144 cast.
8145 * utils.c (subset_compare): Remove unnecessary cast.
8146 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8147 cast.
8148 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8149 cast.
8150 * infcmd.c (path_command): Remove unnecessary cast.
8151 * coffread.c (decode_type): Remove unnecessary cast.
8152 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8153 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8154 * tui/tui-stack.c (tui_show_locator_content)
8155 (tui_show_frame_info): Remove unnecessary cast.
8156 * tui/tui-win.c (tui_scroll_forward_command)
8157 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8158 (parse_scrolling_args): Remove unnecessary cast.
8159 * tui/tui-data.c (init_win_info, tui_del_window)
8160 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8161 (free_content_elements): Remove unnecessary cast.
8162 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8163 unnecessary cast.
8164 * tui/tui-source.c (tui_set_source_content)
8165 (tui_vertical_source_scroll): Remove unnecessary cast.
8166 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8167 cast.
8168 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8169 * tui/tui-regs.c (tui_display_registers_from)
8170 (tui_display_register): Remove unnecessary cast.
8171 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8172 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8173 (make_visible): Remove unnecessary cast.
8174 * tui/tui-winsource.c (tui_erase_source_content)
8175 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8176 unnecessary cast.
8177 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8178 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8179 * stabsread.c (read_type, read_array_type, read_range_type):
8180 Remove unnecessary cast.
8181 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8182 (parse_symbol, parse_type, upgrade_type, parse_external)
8183 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8184 unnecessary cast.
8185 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8186
8187 2019-06-16 Tom Tromey <tom@tromey.com>
8188
8189 * tui/tui-data.c (tui_alloc_generic_win_info)
8190 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8191 checks.
8192
8193 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8194 Andrew Burgess <andrew.burgess@embecosm.com>
8195
8196 * f-typeprint.c (f_print_type): Don't return early for not
8197 associated or not allocated types.
8198 (f_type_print_varspec_suffix): Add print_rank parameter and print
8199 ranks of array types in case they dangling.
8200 (f_type_print_base): Add print_rank parameter.
8201
8202 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8203
8204 * NEWS: Mention new MI commands.
8205 * break-catch-throw.c (enum exception_event_kind): Move to
8206 breakpoint.h.
8207 (print_mention_exception_catchpoint): Output text as a single
8208 message.
8209 (catch_exception_command_1): Rename to...
8210 (catch_exception_event): ...this, make non-static, update header
8211 command, and change some parameter types.
8212 (catch_catch_command): Update for changes to
8213 catch_exception_command_1.
8214 (catch_throw_command): Likewise.
8215 (catch_rethrow_command): Likewise.
8216 * breakpoint.c (enum exception_event_kind): Delete.
8217 * breakpoint.h (enum exception_event_kind): Moved here from
8218 break-catch-throw.c.
8219 (catch_exception_event): Declare.
8220 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8221 (mi_cmd_catch_throw): New function.
8222 (mi_cmd_catch_rethrow): New function.
8223 (mi_cmd_catch_catch): New function.
8224 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8225 'catch-catch' entries.
8226 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8227 (mi_cmd_catch_rethrow): Declare.
8228 (mi_cmd_catch_catch): Declare.
8229
8230 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8231
8232 * annotate.c (annotate_source_line): Change return type to void,
8233 update implementation to match.
8234 * annotate.h (annotate_source_line): Change return type to void,
8235 update header comment.
8236 * stack.c (print_frame_info): Don't change what frame information
8237 is printed based on whether annotations are on or not.
8238
8239 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8242 (annotate_source): Make static.
8243 (annotate_source_line): Moved from source.c and renamed from
8244 identify_source_line. Update the return type.
8245 * annotate.h (annotate_source): Delete declaration.
8246 (annotate_source_line): Declaration moved from source.h, and
8247 renamed from identify_source_line. Return type updated.
8248 * source.c (identify_source_line): Moved to annotate.c and renamed
8249 to annotate_source_line.
8250 (info_line_command): Remove check of annotation_level.
8251 * source.h (identify_source_line): Move declaration to annotate.h
8252 and rename to annotate_source_line.
8253 * stack.c: Add 'annotate.h' include.
8254 (print_frame_info): Remove check of annotation_level before
8255 calling annotate_source_line.
8256
8257 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8258
8259 * source-cache.c (source_cache::get_plain_source_lines): Use
8260 open_source_file_with_line_charpos instead of just
8261 open_source_file, remove call to find_source_lines.
8262 (source_cache::get_source_lines): Likewise.
8263 * source.c (find_source_lines): Make static.
8264 (get_filename_and_charpos): Renamed into...
8265 (open_source_file_with_line_charpos): ..this along with changes to
8266 return a scoped_fd, and some other minor clean ups.
8267 (identify_source_line): Use open_source_file_with_line_charpos.
8268 (search_command_helper): Use open_source_file_with_line_charpos
8269 instead of just open_source_file, remove call to
8270 find_source_lines.
8271 * source.h (open_source_file_with_line_charpos): Declare new
8272 function.
8273 (find_source_lines): Delete declaration.
8274
8275 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8276
8277 * source.c (get_filename_and_charpos): Remove fullname
8278 parameter.
8279 (identify_source_line): Update call to get_filename_and_charpos.
8280
8281 2019-06-14 Tom Tromey <tromey@adacore.com>
8282
8283 PR gdb/24502:
8284 * ui-style.h (skip_ansi_escape): Update comment.
8285 * ui-file.h (class no_terminal_escape_file): New class.
8286 * ui-file.c (no_terminal_escape_file::write)
8287 (no_terminal_escape_file::puts): New methods.
8288 * cli/cli-logging.c (handle_redirections): Use
8289 no_terminal_escape_file.
8290
8291 2019-06-14 Tom Tromey <tromey@adacore.com>
8292
8293 * NEWS: Move convenience variable news above Python news.
8294
8295 2019-06-14 Tom Tromey <tom@tromey.com>
8296
8297 * gnulib: Move directory to top-level.
8298 * configure.ac: Don't configure gnulib.
8299 * configure: Rebuild.
8300 * common/common-defs.h: Use new path to gnulib.
8301 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8302 (GNULIB_H): Remove.
8303 (INCGNU): Look in new gnulib location.
8304 (HFILES_NO_SRCDIR): Remove gnulib files.
8305 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8306 (generated_files): Remove GNULIB_H.
8307 ($(LIBGNU), all-lib): Remove targets.
8308 (distclean): Don't mention GNULIB_BUILDDIR.
8309 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8310
8311 2019-06-14 Tom Tromey <tromey@adacore.com>
8312
8313 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8314 Warn if symbol file does not provide any symbols.
8315
8316 2019-06-14 Tom Tromey <tromey@adacore.com>
8317
8318 * source.c (find_and_open_source): Respect basenames_may_differ.
8319
8320 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * annotate.c (annotate_breakpoints_invalid): Make use of
8323 scoped_restore_terminal_state.
8324 (annotate_frames_invalid): Likewise.
8325
8326 2019-06-14 Tom Tromey <tromey@adacore.com>
8327
8328 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8329 allow assignment to an internalvar.
8330
8331 2019-06-14 Tom Tromey <tromey@adacore.com>
8332
8333 * ada-lex.l: Allow "_" in attribute names.
8334
8335 2019-06-14 Tom Tromey <tromey@adacore.com>
8336
8337 PR gdb/24653:
8338 * regcache.c (registers_changed): Don't call alloca.
8339 * top.c (execute_command): Don't call alloca.
8340
8341 2019-06-13 Pedro Alves <palves@redhat.com>
8342
8343 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8344 'expression'. When parsing an expression, error out if there's
8345 junk after "unlimited".
8346 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8347 (do_set_command): Adjust calls to is_unlimited_literal.
8348
8349 2019-06-13 Pedro Alves <palves@redhat.com>
8350
8351 * compile/compile.c (make_compile_options_def_group): Add braces
8352 around array_view initializer.
8353 * thread.c (make_thread_apply_all_options_def_group)
8354 (make_thread_apply_all_options_def_group): Likewise.
8355
8356 2019-06-13 Pedro Alves <palves@redhat.com>
8357
8358 * NEWS (New commands): Mention "maint test-options
8359 require-delimiter", "maint test-options unknown-is-error", "maint
8360 test-options unknown-is-operand" and "maint show
8361 test-options-completion-result".
8362 (New command options, command completion): New section.
8363 (Completion improvements): New section.
8364 Mention that you can abbreviate "unlimited".
8365
8366 2019-06-13 Pedro Alves <palves@redhat.com>
8367
8368 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8369 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8370 * unittests/cli-utils-selftests.c (test_parse_flags)
8371 (test_parse_flags_qcs): Delete.
8372 (test_cli_utils): Don't call deleted functions.
8373
8374 2019-06-13 Pedro Alves <palves@redhat.com>
8375
8376 * thread.c: Include "cli/cli-option.h".
8377 (tp_array_compar_ascending): Global.
8378 (tp_array_compar): Delete function.
8379 (tp_array_compar_ascending, tp_array_compar_descending): New
8380 functions.
8381 (ascending_option_def, qcs_flag_option_def)
8382 (thr_qcs_flags_option_defs)
8383 (make_thread_apply_all_options_def_group)
8384 (make_thread_apply_options_def_group): New.
8385 (thread_apply_all_command): Use gdb::option::process_options.
8386 (thread_apply_command_completer)
8387 (thread_apply_all_command_completer): New.
8388 (thread_apply_command): Use gdb::option::process_options.
8389 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8390 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8391 to generate help text of "thread apply". Adjust "taas"'s help.
8392 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8393 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8394
8395 2019-06-13 Pedro Alves <palves@redhat.com>
8396
8397 * thread.c (thread_apply_command): Check for invalid TID with
8398 isdigit instead of !isalpha.
8399
8400 2019-06-13 Pedro Alves <palves@redhat.com>
8401
8402 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8403 (validate_flags_qcs): New.
8404 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8405 (validate_flags_qcs): Declare.
8406 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8407 (make_frame_apply_options_def_group): New.
8408 (frame_apply_command_count): Process options with
8409 gdb::option::process_options.
8410 (frame_apply_completer): New.
8411 (frame_apply_level_completer, frame_apply_all_completer)
8412 (frame_apply_completer): New.
8413 (_initialize_stack): Update help of "frame apply", "frame apply
8414 level", "frame apply all" and "faas" to mention supported options
8415 and install command completers.
8416 * stack.h (frame_apply_all_completer): Declare.
8417 * thread.c: Include "stack.h".
8418 (tfaas_command): Add "--".
8419 (_initialize_thread): Update help "tfaas" to mention supported
8420 options and install command completer.
8421
8422 2019-06-13 Pedro Alves <palves@redhat.com>
8423
8424 * completer.c (complete_nested_command_line): New.
8425 (gdb_completion_word_break_characters_throw): Add assertion.
8426 * completer.h (complete_nested_command_line): Declare.
8427
8428 2019-06-13 Pedro Alves <palves@redhat.com>
8429
8430 * stack.c (parse_backtrace_qualifiers): New.
8431 (backtrace_command): Use it.
8432 (backtrace_command_completer): Complete on qualifiers.
8433
8434 2019-06-13 Pedro Alves <palves@redhat.com>
8435
8436 * frame.c: Include "cli/cli-option.h.
8437 (user_set_backtrace_options): New.
8438 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8439 Delete.
8440 (get_prev_frame): Adjust.
8441 (boolean_option_def, uinteger_option_def)
8442 (set_backtrace_option_defs): New.
8443 (_initialize_frame): Adjust and use
8444 gdb::option::add_setshow_cmds_for_options to install "set
8445 backtrace past-main" and "set backtrace past-entry".
8446 * frame.h: Include "cli/cli-option.h".
8447 (struct frame_print_options): Forward declare.
8448 (print_frame_arguments_all, print_frame_arguments_scalars)
8449 (print_frame_arguments_none): Declare.
8450 (print_entry_values): Delete declaration.
8451 (struct frame_print_options, user_frame_print_options): New.
8452 (struct set_backtrace_options): New.
8453 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8454 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8455 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8456 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8457 (list_args_or_locals): Add frame_print_options parameter.
8458 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8459 * python/py-framefilter.c (enumerate_args): Pass down
8460 USER_FRAME_PRINT_OPTIONS.
8461 * stack.c: Include "cli/cli-option.h".
8462 (print_frame_arguments_all, print_frame_arguments_scalars)
8463 (print_frame_arguments_none): Declare.
8464 (print_raw_frame_arguments, print_entry_values): Delete.
8465 (user_frame_print_options): New.
8466 (boolean_option_def, enum_option_def, frame_print_option_defs):
8467 New.
8468 (struct backtrace_cmd_options): New.
8469 (bt_flag_option_def): New.
8470 (backtrace_command_option_defs): New.
8471 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8472 (print_frame_arg, read_frame_arg, print_frame_args)
8473 (print_frame_info, print_frame): Add frame_print_options parameter
8474 and use it.
8475 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8476 (backtrace_command_1): Add frame_print_options and
8477 backtrace_cmd_options parameters and use them.
8478 (make_backtrace_options_def_group): New.
8479 (backtrace_command): Process command options with
8480 gdb::option::process_options.
8481 (backtrace_command_completer): New.
8482 (_initialize_stack): Extend "backtrace"'s help to mention
8483 supported options. Install completer for "backtrace".
8484 Install some settings commands with add_setshow_cmds_for_options.
8485
8486 2019-06-13 Pedro Alves <palves@redhat.com>
8487
8488 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8489 and that "set/show print raw frame-arguments" are now deprecated.
8490
8491 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8492 command.
8493 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8494 * stack.c (_initialize_stack): Install "set/show print
8495 raw-frame-arguments", and deprecate "set/show print raw
8496 frame-arguments".
8497 * valprint.c (_initialize_valprint): Deprecate "set/show print
8498 raw".
8499
8500 2019-06-13 Pedro Alves <palves@redhat.com>
8501
8502 * compile/compile.c (struct compile_options): New.
8503 (compile_flag_option_def, compile_command_option_defs)
8504 (make_compile_options_def_group): New.
8505 (compile_file_command): Handle options with
8506 gdb::option::process_options.
8507 (compile_file_command_completer): New function.
8508 (compile_code_command): Handle options with
8509 gdb::option::process_options.
8510 (compile_code_command_completer): New function.
8511 (_initialize_compiler): Install completers for "compile code" and
8512 "compile file". Mention available options in "compile code" and
8513 "compile code"'s help.
8514 * completer.c (advance_to_completion_word): New, factored out from
8515 ...
8516 (advance_to_expression_complete_word_point): ... this.
8517 (advance_to_filename_complete_word_point): New.
8518 * completer.h (advance_to_filename_complete_word_point): New
8519 declaration.
8520
8521 2019-06-13 Pedro Alves <palves@redhat.com>
8522
8523 * compile/compile.c: Include "cli/cli-option.h".
8524 (compile_print_value): Scope data pointer is now a
8525 value_print_options pointer; adjust.
8526 (compile_print_command): Process options. Scope data pointer is
8527 now a value_print_options pointer; adjust.
8528 (_initialize_compile): Update "compile print"'s help to include
8529 supported options. Install a completer for "compile print".
8530 * cp-valprint.c (show_vtblprint, show_objectprint)
8531 (show_static_field_print): Delete.
8532 (_initialize_cp_valprint): Don't install "set print
8533 static-members", "set print vtbl", "set print object" here.
8534 * printcmd.c: Include "cli/cli-option.h" and
8535 "common/gdb_optional.h".
8536 (print_command_parse_format): Rework to fill in a
8537 value_print_options instead of a format_data.
8538 (print_value): Change parameter type from format_data pointer to
8539 value_print_options reference. Adjust.
8540 (print_command_1): Process options. Adjust to pass down a
8541 value_print_options.
8542 (print_command_completer): New.
8543 (_initialize_printcmd): Install print_command_completer as
8544 handle_brkchars completer for the "print" command. Update
8545 "print"'s help to include supported options.
8546 * valprint.c: Include "cli/cli-option.h".
8547 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8548 here from cp-valprint.c.
8549 (boolean_option_def, uinteger_option_def)
8550 (value_print_option_defs, make_value_print_options_def_group):
8551 New. Use gdb::option::add_setshow_cmds_for_options to install
8552 "set print elements", "set print null-stop", "set print repeats",
8553 "set print pretty", "set print union", "set print array", "set
8554 print address", "set print symbol", "set print array-indexes".
8555 * valprint.h: Include <string> and "cli/cli-option.h".
8556 (make_value_print_options_def_group): Declare.
8557 (print_value): Change parameter type from format_data pointer to
8558 value_print_options reference.
8559 (print_command_completer): Declare.
8560
8561 2019-06-13 Pedro Alves <palves@redhat.com>
8562
8563 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8564 (COMMON_SFILES): Add maint-test-settings.c.
8565 * cli/cli-decode.c (boolean_enums): New global, factored out from
8566 ...
8567 (add_setshow_boolean_cmd): ... here.
8568 * cli/cli-decode.h (boolean_enums): Declare.
8569 * cli/cli-option.c: New file.
8570 * cli/cli-option.h: New file.
8571 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8572 factored out from ...
8573 (parse_cli_boolean_value(const char *)): ... this.
8574 (is_unlimited_literal): Change parameter type to pointer to
8575 pointer. Adjust and advance ARG pointer.
8576 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8577 (parse_cli_var_enum): New, factored out from ...
8578 (do_set_command): ... this. Adjust.
8579 * cli/cli-setshow.h (parse_cli_boolean_value)
8580 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8581 (parse_cli_var_enum): Declare.
8582 * cli/cli-utils.c: Include "cli/cli-option.h".
8583 (get_ulongest): New.
8584 * cli/cli-utils.h (get_ulongest): Declare.
8585 (check_for_argument): New overloads.
8586 * maint-test-options.c: New file.
8587
8588 2019-06-13 Pedro Alves <palves@redhat.com>
8589
8590 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8591 parse a range if "-" is at the end of the string.
8592
8593 2019-06-13 Pedro Alves <palves@redhat.com>
8594
8595 * cli/cli-setshow.c (parse_auto_binary_operation)
8596 (parse_cli_boolean_value): Don't allow "o".
8597
8598 2019-06-13 Pedro Alves <palves@redhat.com>
8599
8600 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8601 * NEWS: Mention maint test-settings KIND.
8602 * maint-test-settings.c: New file.
8603
8604 2019-06-13 Pedro Alves <palves@redhat.com>
8605
8606 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8607 completer.
8608 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8609 "set" completers.
8610
8611 2019-06-13 Pedro Alves <palves@redhat.com>
8612
8613 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8614 after item.
8615
8616 2019-06-13 Pedro Alves <palves@redhat.com>
8617
8618 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8619
8620 2019-06-13 Pedro Alves <palves@redhat.com>
8621
8622 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8623 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8624 call.
8625 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8626 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8627 calls.
8628 (check_for_argument): Skip spaces after argument.
8629
8630 2019-06-13 Pedro Alves <palves@redhat.com>
8631
8632 * thread.c (thread_apply_command): Adjust TID parsing.
8633 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8634 detected before end of string.
8635 (tid_is_in_list): Error out if LIST is invalid.
8636
8637 2019-06-13 Pedro Alves <palves@redhat.com>
8638
8639 * completer.c (complete_line_internal_1): Rewind completion word
8640 point.
8641 (completion_tracker::advance_custom_word_point_by): Change
8642 parameter type to int.
8643 * completer.h (completion_tracker::advance_custom_word_point_by):
8644 Likewise.
8645
8646 2019-06-13 Pedro Alves <palves@redhat.com>
8647
8648 * completer.c (advance_to_completion_word): Handle delimiters.
8649
8650 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8651
8652 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8653
8654 2019-06-11 Tom Tromey <tom@tromey.com>
8655
8656 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8657 (xmalloc_failed): Move to alloc.c.
8658 * alloc.c: New file.
8659 * Makefile.in (COMMON_SFILES): Add alloc.c.
8660
8661 2019-06-11 Tom Tromey <tom@tromey.com>
8662
8663 * nat/linux-waitpid.c: Don't include server.h.
8664 (linux_debug): Remove.
8665 (my_waitpid): Update.
8666
8667 2019-06-11 Tom Tromey <tromey@adacore.com>
8668
8669 * infcall.c (_initialize_infcall): Remove trailing newline from
8670 help.
8671 * user-regs.c (_initialize_user_regs): Remove trailing newline
8672 from help.
8673 * typeprint.c (_initialize_typeprint): Remove trailing newline
8674 from help.
8675 * reverse.c (_initialize_reverse): Remove trailing newlines from
8676 help.
8677 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8678 from help.
8679 * language.c (add_set_language_command): Remove trailing newline
8680 from help.
8681 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8682 help.
8683 * disasm.c (_initialize_disasm): Remove trailing newline from
8684 help.
8685 * top.c (init_main): Remove trailing newline from help.
8686 * interps.c (_initialize_interpreter): Remove trailing newline
8687 from help.
8688 * btrace.c (_initialize_btrace): Remove trailing newlines from
8689 help.
8690 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8691 from help.
8692 * python/python.c (_initialize_python): Remove trailing newline
8693 from help.
8694 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8695 help.
8696 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8697 from help. Reformat some text.
8698 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8699 from help.
8700 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8701 newline from help.
8702
8703 2019-06-11 Tom Tromey <tromey@adacore.com>
8704
8705 * darwin-nat.c (darwin_decode_exception_message)
8706 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8707
8708 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8709
8710 * valops.c (value_slice): Check for not allocated or not
8711 associated values.
8712
8713 2019-06-10 Tom de Vries <tdevries@suse.de>
8714
8715 PR gdb/24618
8716 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8717 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8718 invalid.
8719
8720 2019-06-10 Tom de Vries <tdevries@suse.de>
8721
8722 PR gdb/24611
8723 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8724 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8725
8726 2019-06-10 Tom de Vries <tdevries@suse.de>
8727
8728 PR symtab/24545
8729 * symtab.c (struct demangled_name_entry): Add language field.
8730 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8731 static minimal symbol". Set and use language field.
8732
8733 2019-06-10 Tom Tromey <tromey@adacore.com>
8734
8735 * ada-lang.c (_initialize_ada_language): Update help text.
8736
8737 2019-06-10 Tom Tromey <tromey@adacore.com>
8738
8739 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8740 with a newline.
8741 * guile/guile.c (handle_boot_error): Don't end warning with a
8742 newline.
8743 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8744 warning with a newline.
8745 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8746 newline.
8747 (s12z_frame_cache): Likewise.
8748 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8749 a newline.
8750 * solib-svr4.c (disable_probes_interface): Don't end warning with
8751 a newline.
8752 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8753 newline.
8754 * python/python.c (do_finish_initialization): Don't end warning
8755 with a newline.
8756
8757 2019-06-10 Tom Tromey <tom@tromey.com>
8758
8759 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8760 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8761 gdbpy_enter.
8762
8763 2019-06-10 Tom Tromey <tromey@adacore.com>
8764
8765 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8766 data.
8767 (elf_new_init): Don't call stabsread_new_init.
8768 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8769 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8770 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8771
8772 2019-06-10 Tom de Vries <tdevries@suse.de>
8773
8774 PR symtab/16264
8775 PR symtab/24517
8776 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8777
8778 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8779
8780 * source.c (find_and_open_source): Also rewrite relative file
8781 names.
8782
8783 2019-04-26 Amos Bird <amosbird@gmail.com>
8784
8785 * annotate.c (annotate_thread_exited): Add "thread-exited"
8786 annotation.
8787
8788 2019-06-06 Tom Tromey <tromey@adacore.com>
8789
8790 * maint.h (class scoped_command_stats): Use
8791 DISABLE_COPY_AND_ASSIGN.
8792 <print_time>: New method.
8793 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8794 print_time.
8795 (scoped_command_stats::print_time): New method.
8796
8797 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8798
8799 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8800 instructions of lengths 6 or 8 bytes.
8801
8802 2019-06-04 Pedro Alves <palves@redhat.com>
8803
8804 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8805
8806 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8807 * breakpoint.c (condition_completer): Likewise.
8808 * cli/cli-dump.c (scan_expression): Likewise.
8809 * common/filestuff.c (mkdir_recursive): Likewise.
8810 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8811 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8812 (gdb_abspath): Likewise.
8813 * compile/compile-cplus-types.c
8814 (compile_cplus_instance::decl_name): Likewise.
8815 * completer.c (complete_explicit_location):
8816 (signal_completer, reg_or_group_completer_1): Likewise.
8817 * cp-support.c (cp_remove_params_if_any): Likewise.
8818 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8819 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8820 * infcmd.c (strip_bg_char): Likewise.
8821 * linespec.c (copy_token_string): Likewise.
8822 * mi/mi-main.c (output_cores): Likewise.
8823 * psymtab.c (psymtab_search_name):
8824 * symfile.c (test_set_ext_lang_command): Likewise.
8825 * target.c (target_fileio_read_stralloc): Likewise.
8826 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8827 * value.c (complete_internalvar): Likewise.
8828
8829 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8830
8831 Add objfile property to gdb.Type.
8832 * NEWS: Mention Python API addition.
8833 * python/py-type.c (typy_get_objfile): New method.
8834
8835 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8836
8837 * NEWS: Mention the new set|show style [title|highlight].
8838 Mention changes to "show style", "help" and "apropos".
8839
8840 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8841
8842 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8843 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8844 instead of print_help_for_command.
8845 (print_doc_of_command): New function.
8846 (help_list): Add 'apropos -v word' suggestion.
8847 (print_help_for_command): Style the command name using title style.
8848 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8849 (_initialize_cli_cmds): Describe -v in apropos_command help.
8850
8851 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8852
8853 * cli/cli-style.h (cli_style_option): Add name in constructor,
8854 add m_name class member, add constructor with intensity,
8855 add name class function.
8856 (cli_style_option::add_setshow_commands): Remove name argument.
8857 (highlight_style, title_style): New styles.
8858 * cli/cli-style.c (do_show): New function that shows a style
8859 characteristic styling the style name with itself.
8860 (set_style_name): New function.
8861 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8862 Update all callers according to the changes in cli/cli-style.h.
8863 * utils.h (fputs_highlighted): New function.
8864 * utils.c (fputs_highlighted): Likewise.
8865
8866 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8867
8868 * NEWS: Mention new pipe command and new convenience variables.
8869
8870 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8871
8872 * cli/cli-cmds.c (pipe_command): New function.
8873 (_initialize_cli_cmds): Call add_com for pipe_command.
8874 Define | as an alias for pipe.
8875 (exit_status_set_internal_vars): New function.
8876 (shell_escape): Call exit_status_set_internal_vars.
8877 cli/cli-decode.c (find_command_name_length): Recognize | as
8878 a single character command.
8879
8880 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8881
8882 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8883 top.c (execute_command_to_ui_file): New function, mostly a copy
8884 of execute_command_to_string.
8885 (execute_command_to_string): Implement by calling
8886 execute_command_to_ui_file.
8887
8888 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8889
8890 * top.h (saved_command_line): Remove declaration.
8891 * top.c (previous_saved_command_line, previous_repeat_arguments):
8892 New variables.
8893 (saved_command_line): Make static, define together with other
8894 'repeat variables'.
8895 (dont_repeat): Clear repeat_arguments.
8896 (repeat_previous, get_saved_command_line, save_command_line):
8897 New functions.
8898 (gdb_init): Initialize saved_command_line
8899 and previous_saved_command_line.
8900 * main.c (captured_main_1): Remove saved_command_line initialization.
8901 * event-top.c (handle_line_of_input): Update to use
8902 the new 'repeat' related functions instead of direct access to
8903 saved_command_line.
8904 * command.h (repeat_previous, get_saved_command_line,
8905 save_command_line): New declarations.
8906 (dont_repeat): Add comment.
8907
8908 2019-05-30 Tom Tromey <tromey@adacore.com>
8909
8910 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8911 Fix comment.
8912 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8913
8914 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8915
8916 PR cli/24587
8917 * completer.c (complete): Initialize variable word.
8918
8919 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8920
8921 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8922 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8923 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8924 'body' is NULL to the outter 'if', protecting the '!is_define'
8925 situation as well.
8926
8927 2019-05-29 Tom Tromey <tromey@adacore.com>
8928
8929 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8930 (dwarf_unknown): New function.
8931 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8932 (dwarf_type_encoding_name): Use dwarf_unknown.
8933
8934 2019-05-29 Tom Tromey <tromey@adacore.com>
8935
8936 PR c++/20020:
8937 * cp-valprint.c (cp_print_value_fields): Call
8938 cp_print_static_field inside "try".
8939
8940 2019-05-29 Tom Tromey <tromey@adacore.com>
8941
8942 * inflow.c (struct terminal_info): Add default operator=.
8943 * configure: Rebuild.
8944 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8945 -Wdeprecated-copy-dtor, -Wredundant-move.
8946
8947 2019-05-29 Tom Tromey <tromey@adacore.com>
8948
8949 * NEWS: Add entry.
8950 * infcmd.c (print_return_value_1): Handle finish_print
8951 option.
8952 (show_print_finish): New function.
8953 (_initialize_infcmd): Add "set/show print finish" commands.
8954 * valprint.c (user_print_options): Initialize new member.
8955 * valprint.h (struct value_print_options) <finish_print>: New
8956 member.
8957
8958 2019-05-28 Tom Tromey <tromey@adacore.com>
8959
8960 * ada-lang.c (ada_remove_Xbn_suffix)
8961 (find_old_style_renaming_symbol)
8962 (parse_old_style_renaming): Remove.
8963 (ada_find_renaming_symbol): Don't call
8964 find_old_style_renaming_symbol.
8965 (ada_is_renaming_symbol): Rename from
8966 ada_find_renaming_symbol. Remove "block" parameter. Return
8967 bool. Now static.
8968 (ada_read_var_value): Update and simplify.
8969 * ada-exp.y (write_var_or_type): Remove old code.
8970
8971 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8972
8973 PR gdb/25010
8974 * event-top.c: Remove include comment.
8975 * inflow.c (class scoped_ignore_sigttou): Move from here...
8976 * inflow.h (class scoped_ignore_sigttou): ...to here.
8977 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8978 * top.c: Remove include comment.
8979
8980 2019-05-27 Tom Tromey <tom@tromey.com>
8981
8982 * NEWS: Fix typo.
8983
8984 2019-05-22 Tom Tromey <tromey@adacore.com>
8985
8986 * target.c (target_follow_exec): Constify parameter.
8987 * target-delegates.c: Rebuild.
8988 * remote.c (remote_target::follow_exec): Constify parameter.
8989 * infrun.c (follow_exec): Constify parameter.
8990 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8991 (target_follow_exec): Likewise.
8992
8993 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8994
8995 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8996 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8997
8998 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8999
9000 * NEWS: Add debugredirect and testsuite sections.
9001
9002 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9003
9004 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9005 target descriptions using exclusively floating point register name
9006 aliases.
9007
9008 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 PR gdb/18644:
9011 * f-lang.c (build_fortran_types): Handle the case where
9012 gdbarch_floatformat_for_type returns a nullptr.
9013
9014 2019-05-21 Tom de Vries <tdevries@suse.de>
9015
9016 PR cli/24587
9017 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9018
9019 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9020
9021 PR gdb/18644:
9022 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9023 16-byte floats.
9024 * i386-tdep.c (i386_floatformat_for_type): Use
9025 floatformats_ia64_quad for the 16-byte floating point component
9026 within a fortran 32-byte complex number.
9027
9028 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9029
9030 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9031 delete default constructor.
9032 (find_partial_die): Update to return const struct.
9033 (partial_die_parent_scope): Move variable declaration into scope
9034 of its use and change its type to auto.
9035 (guess_partial_die_structure_name): Likewise.
9036 (partial_die_info::fixup): Likewise.
9037
9038 2019-05-17 Tom Tromey <tromey@adacore.com>
9039
9040 * source.c (find_and_open_source): Remove cast.
9041
9042 2019-05-17 Tom Tromey <tromey@adacore.com>
9043
9044 * annotate.c (annotate_source): Make "filename" const.
9045 * annotate.h (annotate_source): Use const.
9046
9047 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9048
9049 * disasm.c (set_disassembler_options): Send errors to stderr.
9050
9051 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9052
9053 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9054 (cli_interp_base::set_logging): Check debug_redirect.
9055 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9056 * cli/cli-logging.c (debug_redirect): Add static variable.
9057 (pop_output_files): Add default param.
9058 (handle_redirections): Print debug setting.
9059 (show_logging_command): Likewise.
9060 (_initialize_cli_logging): Add debugredirect command.
9061 * interps.c (current_interp_set_logging): Add debug_redirect
9062 parameter.
9063 * interps.h (set_logging): Add debug_redirect parameter.
9064 (current_interp_set_logging): Likewise.
9065 * mi/mi-common.h: Likewise.
9066 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9067
9068 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9069 Tom Tromey <tromey@adacore.com>
9070
9071 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9072 directly.
9073 * cli/cli-interp.h (make_logging_output): Remove declaration.
9074 * cli/cli-logging.c (make_logging_output): Remove function.
9075 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9076 directly.
9077 * ui-file.c (tee_file::tee_file): Remove bools.
9078 (tee_file::~tee_file): Remove deletes.
9079 * ui-file.h (tee_file): Remove bools.
9080
9081 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9082
9083 * mi/mi-cmds.h (mi_cmd_complete): New function.
9084 * mi/mi-main.c (mi_cmd_complete): Likewise.
9085 * mi/mi-cmds.c: Define new MI command -complete.
9086 * NEWS: Mention new -complete command.
9087
9088 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9089
9090 * completer.h (complete): New function.
9091 * completer.c (complete): Likewise.
9092 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9093 function defined in completer.h.
9094
9095 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9096
9097 * MAINTAINERS (Write After Approval): Add myself.
9098
9099 2019-05-17 Tom de Vries <tdevries@suse.de>
9100
9101 PR gdb/24094
9102 * dwarf2read.c (struct cu_partial_die_info): New struct.
9103 (find_partial_die): Return cu_partial_die_info.
9104 (partial_die_parent_scope, guess_partial_die_structure_name)
9105 (partial_die_info::fixup): Handle new return type of find_partial_die.
9106
9107 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9108
9109 PR breakpoints/24541
9110 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9111 "std::string", simplifying the algorithm.
9112
9113 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9114
9115 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9116 (stap_static_probe_ops::get_probes): Likewise.
9117
9118 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9119
9120 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9121 '-')" and "else if".
9122 (stap_parse_single_operand): Join checks for
9123 "gdbarch_stap_parse_special_token_p" and
9124 "gdbarch_stap_parse_special_token" in the same "if" statement.
9125 Invert check when verifying for operation on register
9126 displacement.
9127
9128 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9129
9130 * stap-probe.c (stap_get_opcode): Update comment.
9131 (stap_get_expected_argument_type): Likewise.
9132 (handle_stap_probe): Likewise.
9133
9134 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9135
9136 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9137 return type to 'bool'. Adjust comment. Use 'bool' when
9138 appropriate.
9139 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9140 * stap-probe.c (stap_parse_argument_1): Likewise.
9141 (stap_is_operator): Likewise.
9142 (stap_is_generic_prefix): Likewise.
9143 (stap_is_register_prefix): Likewise.
9144 (stap_is_register_indirection_prefix): Likewise.
9145 (stap_is_integer_prefix): Likewise.
9146 (stap_generic_check_suffix): Likewise.
9147 (stap_check_integer_suffix): Likewise.
9148 (stap_check_register_suffix): Likewise.
9149 (stap_check_register_indirection_suffix): Likewise.
9150 (stap_parse_register_operand): Likewise.
9151 (stap_parse_single_operand): Likewise.
9152 (stap_parse_argument_1): Likewise.
9153 (stap_probe::get_argument_count): Likewise.
9154 (stap_is_operator): Likewise.
9155
9156 2019-05-16 Tom Tromey <tromey@adacore.com>
9157
9158 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9159 keyword to foreach.
9160
9161 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * linux-thread-db.c (try_thread_db_load_1): Change return type
9164 to bool.
9165 (try_thread_db_load): Likewise.
9166 (try_thread_db_load_from_pdir_1): Likewise.
9167 (try_thread_db_load_from_pdir): Likewise.
9168 (try_thread_db_load_from_sdir): Likewise.
9169 (try_thread_db_load_from_dir): Likewise.
9170 (thread_db_load_search): Likewise.
9171 (has_libpthread): Likewise.
9172 (thread_db_load): Likewise.
9173
9174 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9175
9176 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9177 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9178 NULL, and complain/return if that's the case.
9179
9180 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9181
9182 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9183 (advance, posn, abstract_read_memory): New functions.
9184 [struct mem_read_abstraction]: New struct.
9185 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9186
9187 2019-05-14 Tom Tromey <tromey@adacore.com>
9188
9189 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9190 value is not lval_memory.
9191
9192 2019-05-14 Tom Tromey <tromey@adacore.com>
9193
9194 * solib.c (info_sharedlibrary_command): Style the file name.
9195
9196 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9197
9198 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9199 (aarch64_vnv_type): Likewise.
9200 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9201 * common/tdesc.c: Likewise.
9202 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9203 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9204 * features/aarch64-fpu.xml: Add ieee half view.
9205 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9206 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9207 * gdbtypes.h (struct builtin_type): Likewise.
9208 (struct objfile_type): Likewise.
9209
9210 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9211
9212 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9213 typo.
9214 * location.h (string_to_event_location): Likewise.
9215
9216 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9217
9218 GDB 8.3 released.
9219
9220 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9223 New variable declaration.
9224 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9225 New variable.
9226 (print_one_breakpoint): Use ui_out::test_flags and new global
9227 variable to compute use_fixed_output.
9228 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9229 Remove.
9230 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9231 (mi_multi_location_breakpoint_output_fixed): Remove.
9232 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9233 new variable.
9234 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9235 fix_multi_location_breakpoint_output flag if version >= 3.
9236 * ui-out.h (enum ui_out_flag)
9237 <fix_multi_location_breakpoint_output>: New enumerator.
9238
9239 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9242
9243 2019-05-10 Tom Tromey <tromey@adacore.com>
9244
9245 * ada-lang.c (catch_ada_completer): New function.
9246 (_initialize_ada_language): Use it.
9247
9248 2019-05-10 Tom Tromey <tromey@adacore.com>
9249
9250 * thread.c (print_thread_info): Make "requested_threads" const.
9251 * gdbthread.h (print_thread_info): Make "requested_threads"
9252 const.
9253 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9254 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9255
9256 2019-05-08 Tom Tromey <tom@tromey.com>
9257
9258 * gdbtypes.c (objfile_type_data): Change type.
9259 (objfile_type, _initialize_gdbtypes): Update.
9260
9261 2019-05-08 Tom Tromey <tom@tromey.com>
9262
9263 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9264 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9265 (_initialize_dwarf2_frame): Update.
9266
9267 2019-05-08 Tom Tromey <tom@tromey.com>
9268
9269 * objc-lang.c (objc_objfile_data): Change type.
9270 (find_methods): Update.
9271 (_initialize_objc_lang): Remove.
9272
9273 2019-05-08 Tom Tromey <tom@tromey.com>
9274
9275 * stabsread.c (rs6000_builtin_type_data): Change type.
9276 (rs6000_builtin_type, _initialize_stabsread): Update.
9277
9278 2019-05-08 Tom Tromey <tom@tromey.com>
9279
9280 * mips-tdep.c (mips_pdr_data): Remove.
9281 (_initialize_mips_tdep): Update.
9282
9283 2019-05-08 Tom Tromey <tom@tromey.com>
9284
9285 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9286 (hppa_init_objfile_priv_data, read_unwind_info)
9287 (find_unwind_entry, _initialize_hppa_tdep): Update.
9288
9289 2019-05-08 Tom Tromey <tom@tromey.com>
9290
9291 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9292 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9293 on obstack.
9294 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9295
9296 2019-05-08 Tom Tromey <tom@tromey.com>
9297
9298 * mdebugread.c (basic_type_data): Change type.
9299 (basic_type, _initialize_mdebugread): Update.
9300
9301 2019-05-08 Tom Tromey <tom@tromey.com>
9302
9303 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9304
9305 2019-05-08 Tom Tromey <tom@tromey.com>
9306
9307 * nto-tdep.c (nto_inferior_data_reg): Change type.
9308 (nto_inferior_data): Update.
9309 (nto_inferior_data_cleanup, nto_new_inferior_data)
9310 (_initialize_nto_tdep): Remove.
9311 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9312
9313 2019-05-08 Tom Tromey <tom@tromey.com>
9314
9315 * ada-lang.c (struct ada_inferior_data): Add initializers.
9316 (ada_inferior_data): Change type.
9317 (ada_inferior_data_cleanup): Remove.
9318 (get_ada_inferior_data, ada_inferior_exit)
9319 (struct ada_pspace_data): Add initializers, destructor.
9320 (ada_pspace_data_handle): Change type.
9321 (get_ada_pspace_data): Update.
9322 (ada_pspace_data_cleanup): Remove.
9323
9324 2019-05-08 Tom Tromey <tom@tromey.com>
9325
9326 * coffread.c (struct coff_symfile_info): Add initializers.
9327 (coff_objfile_data_key): Move lower. Change type.
9328 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9329 Update.
9330 (coff_free_info): Remove.
9331
9332 2019-05-08 Tom Tromey <tom@tromey.com>
9333
9334 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9335 (fbsd_pspace_data_handle): Move lower. Change type.
9336 (get_fbsd_pspace_data): Update.
9337 (fbsd_pspace_data_cleanup): Remove.
9338 (_initialize_fbsd_tdep): Update.
9339
9340 2019-05-08 Tom Tromey <tom@tromey.com>
9341
9342 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9343 (get_ada_tasks_pspace_data): Update.
9344 (ada_tasks_pspace_data_cleanup): Remove.
9345 (_initialize_tasks): Update.
9346 (ada_tasks_inferior_data_handle): Change type.
9347 (get_ada_tasks_inferior_data): Update.
9348 (ada_tasks_inferior_data_cleanup): Remove.
9349 (struct ada_tasks_pspace_data): Add initializers.
9350
9351 2019-05-08 Tom Tromey <tom@tromey.com>
9352
9353 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9354 * symfile-debug.c (debug_sym_get_probes): Change type.
9355 * stap-probe.c (handle_stap_probe):
9356 (stap_static_probe_ops::get_probes): Change type.
9357 * probe.h (class static_probe_ops) <get_probes>: Change type.
9358 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9359 (parse_probes_in_pspace): Update.
9360 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9361 Update.
9362 (any_static_probe_ops::get_probes): Change type.
9363 * elfread.c (elfread_data): New typedef.
9364 (probe_key): Change type.
9365 (elf_get_probes): Likewise. Update.
9366 (probe_key_free): Remove.
9367 (_initialize_elfread): Update.
9368 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9369 Change type.
9370 (dtrace_process_dof_probe, dtrace_process_dof)
9371 (dtrace_static_probe_ops::get_probe): Change type.
9372
9373 2019-05-08 Tom Tromey <tom@tromey.com>
9374
9375 * xcoffread.c (struct xcoff_symfile_info): Rename from
9376 coff_symfile_info. Add initializers.
9377 (xcoff_objfile_data_key): Move lower. Change type.
9378 (XCOFF_DATA): Rewrite.
9379 (xcoff_free_info): Remove.
9380 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9381 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9382 (xcoff_initial_scan): Update.
9383
9384 2019-05-08 Tom Tromey <tom@tromey.com>
9385
9386 * solib-svr4.c (struct svr4_info): Add initializers and
9387 destructor.
9388 <probes_table>: Now an htab_up.
9389 (solib_svr4_pspace_data): Change type.
9390 (free_probes_table): Simplify.
9391 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9392 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9393 (probes_table_remove_objfile_probes, register_solib_event_probe)
9394 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9395 (_initialize_svr4_solib): Update.
9396
9397 2019-05-08 Tom Tromey <tom@tromey.com>
9398
9399 * remote.c (remote_pspace_data): Change type.
9400 (remote_pspace_data_cleanup): Remove.
9401 (get_remote_exec_file, set_pspace_remote_exec_file)
9402 (_initialize_remote): Update.
9403
9404 2019-05-08 Tom Tromey <tom@tromey.com>
9405
9406 * breakpoint.c (breakpoint_objfile_key): Change type.
9407 (get_breakpoint_objfile_data): Update.
9408 (free_breakpoint_objfile_data): Remove.
9409 (_initialize_breakpoint): Update.
9410
9411 2019-05-08 Tom Tromey <tom@tromey.com>
9412
9413 * linux-tdep.c (struct linux_info): Add initializers.
9414 (linux_inferior_data): Move. Change type.
9415 (invalidate_linux_cache_inf): Update.
9416 (linux_inferior_data_cleanup): Remove.
9417 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9418
9419 2019-05-08 Tom Tromey <tom@tromey.com>
9420
9421 * auxv.c (auxv_inferior_data): Move. Change type.
9422 (auxv_inferior_data_cleanup): Remove.
9423 (invalidate_auxv_cache_inf): Rewrite.
9424 (get_auxv_inferior_data, _initialize_auxv): Update.
9425
9426 2019-05-08 Tom Tromey <tom@tromey.com>
9427
9428 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9429 (symfile_debug_objfile_data_key): Change type.
9430 (symfile_debug_installed, debug_qf_has_symbols)
9431 (debug_qf_find_last_source_symtab)
9432 (debug_qf_forget_cached_source_info)
9433 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9434 (debug_qf_print_stats, debug_qf_dump)
9435 (debug_qf_expand_symtabs_for_function)
9436 (debug_qf_expand_all_symtabs)
9437 (debug_qf_expand_symtabs_with_fullname)
9438 (debug_qf_map_matching_symbols)
9439 (debug_qf_expand_symtabs_matching)
9440 (debug_qf_find_pc_sect_compunit_symtab)
9441 (debug_qf_map_symbol_filenames)
9442 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9443 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9444 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9445 (debug_sym_read_linetable, debug_sym_relocate): Update.
9446 (symfile_debug_free_objfile): Remove.
9447 (install_symfile_debug_logging, _initialize_symfile_debug):
9448 Update.
9449
9450 2019-05-08 Tom Tromey <tom@tromey.com>
9451
9452 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9453 allocate_on_obstack.
9454 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9455 (get_dwarf2_per_objfile): Update.
9456 (set_dwarf2_per_objfile): Remove.
9457 (dwarf2_has_info, dwarf2_get_section_info): Update.
9458 (dwarf2_free_objfile): Remove.
9459 (_initialize_dwarf2_read): Update.
9460
9461 2019-05-08 Tom Tromey <tom@tromey.com>
9462
9463 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9464 initializers.
9465 <unsupported_script_warning_printed,
9466 script_not_found_warning_printed>: Now bool.
9467 (auto_load_pspace_data): Change type.
9468 (~auto_load_pspace_info): Rename from
9469 auto_load_pspace_data_cleanup.
9470 (get_auto_load_pspace_data, init_loaded_scripts_info)
9471 (clear_section_scripts, maybe_print_unsupported_script_warning)
9472 (maybe_print_script_not_found_warning, _initialize_auto_load):
9473 Update.
9474
9475 2019-05-08 Tom Tromey <tom@tromey.com>
9476
9477 * objfiles.c (objfile_pspace_info): Add destructor and
9478 initializers.
9479 (objfiles_pspace_data): Change type.
9480 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9481 (get_objfile_pspace_data): Update.
9482 (objfiles_bfd_data): Change type.
9483 (get_objfile_bfd_data): Update.
9484 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9485
9486 2019-05-08 Tom Tromey <tom@tromey.com>
9487
9488 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9489 Change type.
9490 (get_catch_syscall_inferior_data): Update.
9491 (catch_syscall_inferior_data_cleanup): Remove.
9492 (_initialize_break_catch_syscall): Update.
9493
9494 2019-05-08 Tom Tromey <tom@tromey.com>
9495
9496 * inflow.c (struct terminal_info): Add destructor and
9497 initializers.
9498 (inflow_inferior_data): Change type.
9499 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9500 (get_inflow_inferior_data, inflow_inferior_exit)
9501 (swap_terminal_info, _initialize_inflow): Update.
9502
9503 2019-05-08 Tom Tromey <tom@tromey.com>
9504
9505 * target-dcache.c (target_dcache_cleanup): Remove.
9506 (target_dcache_aspace_key): Change type.
9507 (target_dcache_init_p, target_dcache_invalidate)
9508 (target_dcache_get, target_dcache_get_or_init)
9509 (_initialize_target_dcache): Update.
9510 * dcache.h (struct dcache_deleter): New.
9511
9512 2019-05-08 Tom Tromey <tom@tromey.com>
9513
9514 * symtab.c (struct symbol_cache): Add destructor and
9515 initializers.
9516 (symbol_cache_key): Move. Change type.
9517 (make_symbol_cache, free_symbol_cache): Remove.
9518 (get_symbol_cache): Update.
9519 (symbol_cache_cleanup): Remove.
9520 (ALL_PSPACES, symbol_cache_flush)
9521 (maintenance_print_symbol_cache)
9522 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9523 Update.
9524
9525 2019-05-08 Tom Tromey <tom@tromey.com>
9526
9527 * symtab.c (struct main_info): Add destructor and initializers.
9528 (main_progspace_key): Move. Change type.
9529 (get_main_info): Update.
9530 (main_info_cleanup): Remove.
9531 (_initialize_symtab): Update.
9532
9533 2019-05-08 Tom Tromey <tom@tromey.com>
9534
9535 * registry.h (DECLARE_REGISTRY): Define the _key class.
9536
9537 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9538
9539 * NEWS: Merge two 'New commands' sections.
9540
9541 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9542
9543 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9544 parameter and use Ada language definition instead.
9545 (ada_val_print_ptr): Remove unused language parameter.
9546 (ada_val_print_num): Remove language parameter and use Ada language
9547 definition instead.
9548 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9549 parameter.
9550 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9551 parameter and use Ada language definition instead.
9552 (ada_val_print_1): Update all ada_val_print_xxx calls.
9553 Remove language parameter.
9554 (ada_val_print): Update ada_val_print_1 call.
9555
9556 2019-05-08 Tom Tromey <tromey@adacore.com>
9557
9558 * remote.c (remote_hw_watchpoint_limit)
9559 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9560 Now static.
9561
9562 2019-05-08 Tom Tromey <tromey@adacore.com>
9563
9564 * maint.c (_initialize_maint_cmds): Move initialization code to
9565 remote.c.
9566 (watchdog, show_watchdog): Move to remote.c.
9567 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9568 "watchdog" static.
9569 (_initialize_remote): Move initialization code from maint.c.
9570 * defs.h (watchdog): Don't declare.
9571
9572 2019-05-08 Tom Tromey <tromey@adacore.com>
9573
9574 * tui/tui-interp.c: Include main.h.
9575 * interps.c: Include main.h.
9576 * main.h (interpreter_p): Declare.
9577 * defs.h (interpreter_p): Don't declare.
9578
9579 2019-05-08 Tom Tromey <tromey@adacore.com>
9580
9581 * dwarf2loc.c: Include dwarf2read.h.
9582 * defs.h (read_unsigned_leb128): Don't declare.
9583 * dwarf2read.h (read_unsigned_leb128): Declare.
9584
9585 2019-05-08 Tom Tromey <tromey@adacore.com>
9586
9587 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9588 method.
9589
9590 2019-05-08 Tom Tromey <tromey@adacore.com>
9591
9592 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9593 when no wrap column is set.
9594
9595 2019-05-08 Tom Tromey <tromey@adacore.com>
9596
9597 * c-lang.c (c_get_string): Handle non-C-style arrays.
9598
9599 2019-05-08 Tom Tromey <tromey@adacore.com>
9600
9601 * typeprint.c (print_offset_data::update): Print the bit offset,
9602 not the number of bits remaining.
9603
9604 2019-05-08 Tom Tromey <tromey@adacore.com>
9605
9606 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9607 padding at end of comment.
9608
9609 2019-05-08 Tom Tromey <tromey@adacore.com>
9610
9611 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9612 Compare main types.
9613
9614 2019-05-06 Tom Tromey <tom@tromey.com>
9615
9616 * common/scoped_mmap.c: Include common-defs.h.
9617 * common/scoped_mmap.h: Don't include config.h.
9618
9619 2019-05-04 Tom Tromey <tom@tromey.com>
9620
9621 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9622 (struct aarch64_call_info): Add initializers.
9623 <si>: Now a std::vector.
9624 (pass_on_stack, aarch64_push_dummy_call): Update.
9625
9626 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9627 Tom Tromey <tom@tromey.com>
9628
9629 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9630 (ppc_threads): Now a std::vector. Now static.
9631 (hwdebug_find_thread_points_by_tid)
9632 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9633 Update.
9634
9635 2019-05-04 Tom Tromey <tom@tromey.com>
9636
9637 * arc-tdep.c (arc_tdesc_init): Return bool.
9638
9639 2019-05-04 Tom Tromey <tom@tromey.com>
9640
9641 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9642 Use gdb_assert_not_reached.
9643
9644 2019-05-04 Tom Tromey <tom@tromey.com>
9645
9646 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9647 "false".
9648
9649 2019-05-04 Tom Tromey <tom@tromey.com>
9650
9651 * arc-tdep.c (arc_tdesc_init): Use bool.
9652
9653 2019-05-04 Tom Tromey <tom@tromey.com>
9654
9655 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9656
9657 2019-05-04 Tom Tromey <tom@tromey.com>
9658
9659 * cli/cli-cmds.c (valid_command_p): Return bool.
9660
9661 2019-05-04 Tom Tromey <tom@tromey.com>
9662
9663 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9664 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9665
9666 2019-05-04 Raul Tambre <raul@tambre.ee>
9667
9668 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9669 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9670 operator for comparison.
9671
9672 2019-05-04 Tom Tromey <tom@tromey.com>
9673
9674 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9675 (lookup_partial_symbol, print_partial_symbols)
9676 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9677 (psymbol_compare): Update.
9678 (add_psymbol_to_bcache): Clear the entire psymbol.
9679 (maintenance_check_psymtabs): Update.
9680 * psympriv.h (struct partial_symbol): Don't derive from
9681 general_symbol_info.
9682 <obj_section, unrelocated_address, address,
9683 set_unrelocated_address>: Update.
9684 <ginfo>: New member.
9685 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9686 (debug_names::write_psymbols): Update.
9687
9688 2019-05-04 Tom de Vries <tdevries@suse.de>
9689
9690 * contrib/cc-with-tweaks.sh: Support -n arg.
9691
9692 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9693
9694 * corelow.c (core_target::detach): Ensure frame cache and
9695 register caches are cleared.
9696 inferior.c (exit_inferior_1): Likewise.
9697
9698 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9699 Tom Tromey <tom@tromey.com>
9700
9701 * dictionary.c (collate_pending_symbols_by_language): Remove
9702 "struct" from foreach.
9703 * symtab.c (lookup_global_symbol_from_objfile)
9704 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9705 foreach.
9706 * ser-tcp.c (net_open): Remove "struct" from foreach.
9707 * objfiles.c (objfile_relocate, objfile_rebase)
9708 (objfile_has_symbols): Remove "struct" from foreach.
9709 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9710 from foreach.
9711 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9712 foreach.
9713 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9714 "struct" from foreach.
9715 * ada-lang.c (create_excep_cond_exprs)
9716 (ada_exception_catchpoint_cond_string): Remove "struct" from
9717 foreach.
9718
9719 2019-05-03 Tom Tromey <tromey@adacore.com>
9720
9721 * ada-exp.y (convert_char_literal): Check suffix of each
9722 enumerator.
9723
9724 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9725
9726 PR ada/21406:
9727 * ada-exp.y (yywrap): Don't define.
9728 * ada-lex.l (%option): Add noyywrap
9729 (yywrap): Remove.
9730
9731 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9732
9733 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9734 _WIN32_WINNT to the XP level, unless already defined to a higher
9735 level.
9736
9737 * unittests/parse-connection-spec-selftests.c:
9738 * ser-tcp.c:
9739 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9740 override.
9741
9742 * symfile.c (find_separate_debug_file): Remove colon from the
9743 drive spec of DOS/Windows file names of the target, so that the
9744 file name produced from DEBUGDIR and the target's directory will
9745 be valid on DOS/Windows systems.
9746
9747 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9748
9749 * rust-lang.c (val_print_struct): Handle printing structures
9750 containing strings.
9751
9752 2019-05-02 Tom Tromey <tromey@adacore.com>
9753
9754 * valarith.c (_initialize_valarith): Remove.
9755
9756 2019-05-01 Tom Tromey <tromey@adacore.com>
9757
9758 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9759 bitfields.
9760
9761 2019-05-01 Tom Tromey <tromey@adacore.com>
9762
9763 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9764 for big-endian copies.
9765
9766 2019-04-30 Ali Tamur <tamur@google.com>
9767 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9768 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9769 (read_3_bytes): New function.
9770
9771 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9772
9773 * windows-nat.c (main_thread_id): Delete.
9774 (handle_output_debug_string): Replace main_thread_id by
9775 current_event.dwThreadId.
9776 (fake_create_process): Likewise.
9777 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9778 Do not set main_thread_id.
9779 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9780 current_event.dwThreadId.
9781 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9782
9783 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9784
9785 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9786 Use current_event.dwThreadId instead of main_thread_id.
9787
9788 2019-04-30 Tom Tromey <tromey@adacore.com>
9789
9790 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9791 (create_excep_cond_exprs): Iterate over program spaces.
9792 (ada_exception_catchpoint_cond_string): Examine all minimal
9793 symbols for exception types.
9794
9795 2019-04-30 Tom Tromey <tromey@adacore.com>
9796
9797 PR c++/24470:
9798 * dwarf2read.c (process_structure_scope): Handle case where type
9799 has template parameters but no symbol was created.
9800
9801 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9802 Chris January <chris.january@arm.com>
9803
9804 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9805 qualifier.
9806 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9807
9808 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9809
9810 * f-typeprint.c (f_print_type): Update rules for printing
9811 whitespace.
9812 (f_type_print_varspec_suffix): Likewise.
9813
9814 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9815 Chris January <chris.january@arm.com>
9816
9817 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9818 function arguments.
9819
9820 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9821
9822 * f-lang.c (build_fortran_types): Change name of void type to
9823 lower case.
9824 * f-typeprint.c (f_type_print_base): Print the name of the void
9825 type, rather than a fixed string.
9826 * f-valprint.c (f_decorations): Use lower case void string.
9827
9828 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9829 Chris January <chris.january@arm.com>
9830
9831 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9832 types for Fortran.
9833
9834 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9835 Chris January <chris.january@arm.com>
9836 David Lecomber <david.lecomber@arm.com>
9837
9838 * f-exp.y (BINOP_INTRINSIC): New token.
9839 (exp): New parser rule handling BINOP_INTRINSIC.
9840 (f77_keywords): Add new builtin procedures.
9841 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9842 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9843 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9844 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9845 (print_unop_subexp_f): New function.
9846 (print_binop_subexp_f): New function.
9847 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9848 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9849 (dump_subexp_body_f): Likewise.
9850 (operator_check_f): Likewise.
9851 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9852 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9853
9854 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9855
9856 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9857 UNOP_KIND.
9858 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9859 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9860 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9861 (operator_length_f): New fuction.
9862 (print_subexp_f): New function.
9863 (op_name_f): New function.
9864 (dump_subexp_body_f): New function.
9865 (operator_check_f): New function.
9866 (exp_descriptor_f): Replace standard expression handling functions
9867 with new functions.
9868 * gdb/fortran-operator.def: New file.
9869 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9870 * gdb/std-operator.def: Remove UNOP_KIND.
9871
9872 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9873
9874 * std-operator.def: Remove unbalanced, stray double quote
9875 character.
9876
9877 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9878 Chris January <chris.january@arm.com>
9879 Daniel Everett <daniel.everett@arm.com>
9880 Nick Forrington <nick.forrington@arm.com>
9881 Richard Bunt <richard.bunt@arm.com>
9882
9883 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9884 of depth when printing anonymous structs or unions.
9885 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9886 Don't print either the top-level value, or the children if the
9887 max-depth is exceeded.
9888 (ppscm_print_children): When printing the key of a map, allow one
9889 extra level of depth.
9890 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9891 print either the top-level value, or the children if the max-depth
9892 is exceeded.
9893 (print_children): When printing the key of a map, allow one extra
9894 level of depth.
9895 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9896 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9897 (user_print_options): Initialise max_depth field.
9898 (val_print_scalar_or_string_type_p): New function.
9899 (val_print): Check to see if the max depth has been reached.
9900 (val_print_check_max_depth): Define new function.
9901 (show_print_max_depth): New function.
9902 (_initialize_valprint): Add 'print max-depth' option.
9903 * valprint.h (struct value_print_options) <max_depth>: New field.
9904 (val_print_check_max_depth): Declare new function.
9905 * NEWS: Document new feature.
9906
9907 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9908
9909 * ada-lang.c (ada_language_defn): Initialise new field.
9910 * c-lang.c (c_is_string_type_p): New function.
9911 (c_language_defn): Initialise new field.
9912 (cplus_language_defn): Initialise new field.
9913 (asm_language_defn): Initialise new field.
9914 (minimal_language_defn): Initialise new field.
9915 * c-lang.h (c_is_string_type_p): Declare new function.
9916 * d-lang.c (d_language_defn): Initialise new field.
9917 * f-lang.c (f_is_string_type_p): New function.
9918 (f_language_defn): Initialise new field.
9919 * go-lang.c (go_is_string_type_p): New function.
9920 (go_language_defn): Initialise new field.
9921 * language.c (default_is_string_type_p): New function.
9922 (unknown_language_defn): Initialise new field.
9923 (auto_language_defn): Initialise new field.
9924 * language.h (struct language_defn) <la_is_string_type_p>: New
9925 member variable.
9926 (default_is_string_type_p): Declare new function.
9927 * m2-lang.c (m2_language_defn): Initialise new field.
9928 * objc-lang.c (objc_language_defn): Initialise new field.
9929 * opencl-lang.c (opencl_language_defn): Initialise new field.
9930 * p-lang.c (pascal_is_string_type_p): New function.
9931 (pascal_language_defn): Initialise new field.
9932 * rust-lang.c (rust_is_string_type_p): New function.
9933 (rust_language_defn): Initialise new field.
9934
9935 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9938 New field.
9939 * ada-lang.c (ada_language_defn): Initialise new field.
9940 * c-lang.c (c_language_defn): Likewise.
9941 (cplus_language_defn): Likewise.
9942 (asm_language_defn): Likewise.
9943 (minimal_language_defn): Likewise.
9944 * d-lang.c (d_language_defn): Likewise.
9945 * f-lang.c (f_language_defn): Likewise.
9946 * go-lang.c (go_language_defn): Likewise.
9947 * language.c (unknown_language_defn): Likewise.
9948 (auto_language_defn): Likewise.
9949 * m2-lang.c (m2_language_defn): Likewise.
9950 * objc-lang.c (objc_language_defn): Likewise.
9951 * opencl-lang.c (opencl_language_defn): Likewise.
9952 * p-lang.c (pascal_language_defn): Likewise.
9953 * rust-lang.c (rust_language_defn): Likewise.
9954
9955 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9956
9957 * ada-lang.c (ada_is_character_type): Change return type to bool.
9958 (ada_is_string_type): Likewise.
9959 * ada-lang.h (ada_is_character_type): Update declaration
9960 (ada_is_string_type): Likewise.
9961
9962 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9963
9964 Support style in 'frame|thread apply'
9965
9966 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9967 * record.c (record_start, record_stop): Update callers of
9968 execute_command_to_string with false.
9969 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9970 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9971 methods.
9972 (class string_file): New constructor with term_out parameter.
9973 Override methods term_out and can_emit_style_escape. New member
9974 term_out.
9975 (class stdio_file): Override can_emit_style_escape.
9976 (class tee_file): Override term_out and can_emit_style_escape.
9977 * utils.h (can_emit_style_escape): Remove.
9978 * utils.c (can_emit_style_escape): Likewise.
9979 Update all callers of can_emit_style_escape (SOMESTREAM) to
9980 SOMESTREAM->can_emit_style_escape.
9981 * source-cache.c (source_cache::get_source_lines): Likewise.
9982 * stack.c (frame_apply_command_count): Call execute_command_to_string
9983 passing the term_out characteristic of the current gdb_stdout.
9984 * thread.c (thr_try_catch_cmd): Likewise.
9985 * top.c (execute_command_to_string): pass term_out parameter
9986 to construct the string_file for the command output.
9987 * ui-file.c (term_cli_styling): New function (most code moved
9988 from utils.c can_emit_style_escape).
9989 (string_file::string_file, string_file::can_emit_style_escape,
9990 stdio_file::can_emit_style_escape, tee_file::term_out,
9991 tee_file::can_emit_style_escape): New functions.
9992
9993 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9994
9995 * NEWS: Mention the new set|show may-call-functions.
9996 * infcall.c (may_call_functions_p): New variable.
9997 (show_may_call_functions_p): New function.
9998 (call_function_by_hand_dummy): Throws an error if not
9999 may-call-functions.
10000 (_initialize_infcall): Call add_setshow_boolean_cmd for
10001 may-call-functions.
10002
10003 2019-04-25 Keith Seitz <keiths@redhat.com>
10004
10005 PR c++/24367
10006 * cp-support.c (inspect_type): Don't attempt substitutions
10007 of symbol with the same name.
10008
10009 2019-04-25 Tom Tromey <tromey@adacore.com>
10010
10011 PR gdb/24475:
10012 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10013 static.
10014
10015 2019-04-25 Tom Tromey <tromey@adacore.com>
10016
10017 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10018 rvalue reference.
10019 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10020 (gdb_xml_parser::parse): Use std::move.
10021 * python/python-internal.h (gdbpy_convert_exception): Take a const
10022 reference.
10023 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10024 std::move.
10025 * python/py-utils.c (gdbpy_convert_exception): Take a const
10026 reference.
10027 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10028 Use std::move.
10029 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10030 Use std::move.
10031 * mi/mi-main.c (mi_print_exception): Take a const reference.
10032 * main.c (handle_command_errors): Take a const reference.
10033 * linespec.c (parse_linespec): Use std::move.
10034 * infcall.c (run_inferior_call): Use std::move.
10035 (call_function_by_hand_dummy): Use std::move.
10036 * exec.c (try_open_exec_file): Use std::move.
10037 * exceptions.h (exception_print, exception_fprintf)
10038 (exception_print_same): Update.
10039 * exceptions.c (print_exception, exception_print)
10040 (exception_fprintf, exception_print_same): Change parameters to
10041 const reference.
10042 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10043 * common/new-op.c: Use std::move.
10044 * common/common-exceptions.h (struct gdb_exception): Add move
10045 constructor.
10046 (struct gdb_exception_error, struct gdb_exception_quit, struct
10047 gdb_quit_bad_alloc): Change constructor to move constructor.
10048 (throw_exception): Change parameter to rvalue reference.
10049 * common/common-exceptions.c (throw_exception): Take rvalue
10050 reference.
10051 * cli/cli-interp.c (safe_execute_command): Use std::move.
10052 * breakpoint.c (insert_bp_location, location_to_sals): Use
10053 std::move.
10054
10055 2019-04-25 Tom Tromey <tromey@adacore.com>
10056
10057 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10058 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10059 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10060 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10061 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10062 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10063 guile/scm-value.c: Use unpack.
10064 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10065 gdbscm_gdb_exception.
10066 (gdbscm_throw_gdb_exception): Likewise.
10067 (struct gdbscm_gdb_exception): New.
10068 (unpack): New function.
10069 (gdbscm_wrap): Use unpack.
10070
10071 2019-04-25 Tom Tromey <tromey@adacore.com>
10072
10073 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10074 (gdb_rl_callback_handler): Use std::move.
10075 * common/common-exceptions.h (struct gdb_exception): Add move
10076 assignment operator.
10077 (throw_exception_sjlj): Change "exception" to const reference.
10078 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10079 (throw_exception_sjlj): Change "exception" to const reference.
10080
10081 2019-04-25 Tom Tromey <tromey@adacore.com>
10082
10083 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10084 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10085 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10086 Update.
10087 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10088 Update.
10089 * mi/mi-interp.c (mi_interp::exec): Update.
10090 * linespec.c (parse_linespec): Update.
10091 * infcall.c (run_inferior_call): Update.
10092 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10093 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10094 (gdbscm_lookup_global_symbol): Update.
10095 * guile/scm-param.c (gdbscm_parameter_value): Update.
10096 * guile/scm-frame.c (gdbscm_frame_read_register)
10097 (gdbscm_frame_read_var): Update.
10098 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10099 * exec.c (try_open_exec_file): Update.
10100 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10101 (gdb_rl_callback_handler): Update.
10102 * common/common-exceptions.h (exception_none): Don't declare.
10103 * common/common-exceptions.c (exception_none): Don't define.
10104 (struct catcher) <exception>: Update.
10105 * cli/cli-interp.c (safe_execute_command): Update.
10106 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10107
10108 2019-04-25 Ali Tamur <tamur@google.com>
10109
10110 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10111 (read_attribute_value): Likewise.
10112 (dwarf2_read_addr_index): Update comment.
10113 (read_str_index): Add DW_FORM_strx.
10114 (dwarf2_string_attr): Likewise.
10115 (dwarf2_const_value_attr): Likewise.
10116 (dump_die_shallow): Likewise.
10117 (dwarf2_fetch_constant_bytes): Likewise.
10118 (skip_form_bytes): Likewise.
10119 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10120
10121 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10122
10123 PR corefiles/11608
10124 PR corefiles/18187
10125 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10126 OFFSET. Verify if current mapping contains an ELF header.
10127 (linux_find_memory_regions_full): Adjust call to
10128 dump_mapping_p.
10129
10130 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10131 Kang Li <kanglictf@gmail.com>
10132
10133 PR gdb/21600
10134
10135 * dwarf2-frame.c (read_initial_length): Be consistent about using
10136 unsigned representation of length.
10137 (decode_frame_entry_1): Likewise. Check for wraparound of
10138 end pointer as well as buffer overflow.
10139
10140 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10141
10142 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10143 "vq".
10144
10145 2019-04-24 Tom Tromey <tromey@adacore.com>
10146
10147 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10148
10149 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10150
10151 * s12z-tdep.c (s12z_unwind_pc): Delete.
10152 (s12z_unwind_sp): Delete.
10153 (s12z_gdbarch_init): Don't register deleted functions with
10154 gdbarch.
10155
10156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10157
10158 * rl78-tdep.c (rl78_unwind_sp): Delete.
10159 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10160
10161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10164 (xstormy16_unwind_pc): Delete.
10165 (xstormy16_dummy_id): Delete.
10166 (xstormy16_gdbarch_init): Don't register deleted functions with
10167 gdbarch.
10168
10169 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10170
10171 * vax-tdep.c (vax_unwind_pc): Delete.
10172 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10173
10174 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * v850-tdep.c (v850_unwind_sp): Delete.
10177 (v850_unwind_pc): Delete.
10178 (v850_dummy_id): Delete.
10179 (v850_gdbarch_init): Don't register deleted functions with
10180 gdbarch.
10181
10182 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10183
10184 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10185 (tilegx_unwind_pc): Delete.
10186 (tilegx_unwind_dummy_id): Delete.
10187 (tilegx_gdbarch_init): Don't register deleted functions with
10188 gdbarch.
10189
10190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10193 (tic6x_dummy_id): Delete.
10194 (tic6x_gdbarch_init): Don't register deleted functions with
10195 gdbarch.
10196
10197 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * sparc-tdep.c (sparc_unwind_pc): Delete.
10200 (sparc32_gdbarch_init): Don't register deleted function with
10201 gdbarch.
10202
10203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * sh-tdep.c (sh_unwind_sp): Delete.
10206 (sh_unwind_pc): Delete.
10207 (sh_dummy_id): Delete.
10208 (sh_gdbarch_init): Don't register deleted functions with
10209 gdbarch.
10210
10211 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * score-tdep.c (score_unwind_sp): Delete.
10214 (score_unwind_pc): Delete.
10215 (score_dummy_id): Delete.
10216 (score_gdbarch_init): Don't register deleted functions with
10217 gdbarch.
10218
10219 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * rx-tdep.c (rx_unwind_pc): Delete.
10222 (rx_unwind_sp): Delete.
10223 (rx_dummy_id): Delete.
10224 (rx_gdbarch_init): Don't register deleted functions with
10225 gdbarch. Update comment.
10226
10227 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10228
10229 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10230 (rs6000_dummy_id): Delete.
10231 (rs6000_gdbarch_init): Don't register deleted functions with
10232 gdbarch.
10233
10234 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10235
10236 * or1k-tdep.c (or1k_dummy_id): Delete.
10237 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10238
10239 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10240
10241 * nios2-tdep.c (nios2_dummy_id): Delete.
10242 (nios2_unwind_sp): Delete.
10243 (nios2_gdbarch_init): Don't register deleted functions with
10244 gdbarch.
10245
10246 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10247
10248 * nds32-tdep.c (nds32_dummy_id): Delete.
10249 (nds32_unwind_pc): Delete.
10250 (nds32_unwind_sp): Delete.
10251 (nds32_gdbarch_init): Don't register deleted functions with
10252 gdbarch.
10253
10254 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * msp430-tdep.c (msp430_unwind_pc): Delete.
10257 (msp430_unwind_sp): Delete.
10258 (msp430_dummy_id): Delete.
10259 (msp430_gdbarch_init): Don't register deleted functions with
10260 gdbarch.
10261
10262 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10263
10264 * moxie-tdep.c (moxie_unwind_sp): Delete.
10265 (moxie_unwind_pc): Delete.
10266 (moxie_dummy_id): Delete.
10267 (moxie_gdbarch_init): Don't register deleted functions with
10268 gdbarch.
10269
10270 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10273 (mn10300_unwind_pc): Delete.
10274 (mn10300_unwind_sp): Delete.
10275 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10276 mn10300_unwind_sp.
10277 (mn10300_frame_unwind_init): Don't register deleted functions with
10278 gdbarch.
10279
10280 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * mep-tdep.c (mep_unwind_pc): Delete.
10283 (mep_unwind_sp): Delete.
10284 (mep_dummy_id): Delete.
10285 (mep_gdbarch_init): Don't register deleted functions with
10286 gdbarch.
10287
10288 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10291 (m68hc11_unwind_sp): Delete.
10292 (m68hc11_gdbarch_init): Don't register deleted functions with
10293 gdbarch.
10294
10295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * m32r-tdep.c (m32r_unwind_sp): Delete.
10298 (m32r_unwind_pc): Delete.
10299 (m32r_dummy_id): Delete.
10300 (m32r_gdbarch_init): Don't register deleted functions with
10301 gdbarch.
10302
10303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10304
10305 * m32c-tdep.c (m32c_unwind_pc): Delete.
10306 (m32c_unwind_sp): Delete.
10307 (m32c_dummy_id): Delete.
10308 (m32c_gdbarch_init): Don't register deleted functions with
10309 gdbarch.
10310
10311 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10314 (lm32_unwind_pc): Delete.
10315 (lm32_dummy_id): Delete.
10316 (lm32_gdbarch_init): Don't register deleted functions with
10317 gdbarch.
10318
10319 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10320
10321 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10322 (iq2000_unwind_pc): Delete.
10323 (iq2000_dummy_id): Delete.
10324 (iq2000_gdbarch_init): Don't register deleted functions with
10325 gdbarch.
10326
10327 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10328
10329 * nds32-tdep.c (nds32_type_align): Delete.
10330 (nds32_push_dummy_call): Use type_align instead.
10331
10332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10333
10334 * arm-tdep.c (arm_type_align): Only handle vector override case.
10335 (arm_push_dummy_call): Use type_align.
10336 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10337
10338 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10339
10340 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10341 case.
10342 (pass_on_stack): Use type_align.
10343 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10344 function.
10345
10346 2019-04-23 Tom Tromey <tromey@adacore.com>
10347
10348 * dwarf2read.c (line_header::file_name_at): Remove unused
10349 overload.
10350
10351 2019-04-23 Tom de Vries <tdevries@suse.de>
10352
10353 PR gdb/24438
10354 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10355 invocation.
10356
10357
10358 2019-03-27 Ali Tamur <tamur@google.com>
10359
10360 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10361 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10362 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10363 (dwarf_expr_context::get_addr_index): Likewise
10364 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10365 (symbol_needs_eval_context::get_addr_index): Likewise
10366 (disassemble_dwarf_expression): Add DW_OP_addrx
10367 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10368 (read_cutu_die_from_dwo): Update comment
10369 (skip_one_die): Add DW_FORM_addrx
10370 (read_attribute_value): Likewise
10371 (var_decode_location): Add DW_OP_addrx
10372 (dwarf2_const_value_attr): Add DW_FORM_addrx
10373 (dump_die_shallow): Likewise
10374 (dwarf2_fetch_constant_bytes): Likewise
10375 (decode_locdesc): Add DW_OP_addrx
10376 (skip_form_bytes): Add DW_FORM_addrx
10377
10378 2019-04-22 Ali Tamur <tamur@google.com>
10379
10380 * MAINTAINERS (Write After Approval): Add self.
10381
10382 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10385 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10386 (open_symbol_file_object): Likewise.
10387 (svr4_default_sos): Add info parameter.
10388 (svr4_read_so_list): Likewise.
10389 (svr4_current_sos_direct): Adjust functions calls to pass down
10390 info.
10391 (svr4_current_sos_1): Add info parameter.
10392 (svr4_current_sos): Call get_svr4_info, pass info down to
10393 svr4_current_sos_1.
10394 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10395 get_svr4_info.
10396 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10397 get_svr4_info.
10398 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10399 to get_svr4_info.
10400 (probes_table_remove_objfile_probes): Likewise.
10401 (register_solib_event_probe): Add info parameter.
10402 (solist_update_incremental): Pass info parameter down to
10403 svr4_read_so_list.
10404 (disable_probes_interface): Add info parameter.
10405 (svr4_handle_solib_event): Pass current_program_space to
10406 get_svr4_info. Adjust disable_probes_interface cleanup.
10407 (svr4_create_probe_breakpoints): Add info parameter, pass it
10408 down to register_solib_event_probe.
10409 (svr4_create_solib_event_breakpoints): Add info parameter,
10410 pass it down to svr4_create_probe_breakpoints.
10411 (enable_break): Pass info down to
10412 svr4_create_solib_event_breakpoints.
10413 (svr4_solib_create_inferior_hook): Pass current_program_space to
10414 get_svr4_info.
10415 (svr4_clear_solib): Likewise.
10416
10417 2019-04-22 Pedro Alves <palves@redhat.com>
10418
10419 * solib-svr4.c (svr4_free_objfile_observer): New.
10420 (probe_and_action::objfile): New field.
10421 (probes_table_htab_remove_objfile_probes)
10422 (probes_table_remove_objfile_probes): New functions.
10423 (register_solib_event_probe): Add 'objfile' parameter. Store it
10424 in the new probe_and_action. Don't store the probe in 'lookup'.
10425 (svr4_create_probe_breakpoints): Pass objfile to
10426 register_solib_event_probe.
10427 (_initialize_svr4_solib): Register a free_objfile observer.
10428
10429 2019-04-19 Tom Tromey <tom@tromey.com>
10430
10431 * common/queue.h: Remove.
10432
10433 2019-04-19 Tom Tromey <tom@tromey.com>
10434
10435 * event-loop.c: Don't include "common/queue.h".
10436
10437 2019-04-19 Tom Tromey <tom@tromey.com>
10438
10439 * remote.c (remote_target): Use delete.
10440 * remote-notif.h: Include <list>, not "common/queue.h".
10441 (notif_client_p): Remove typedef.
10442 (remote_notif_state): Add constructor, destructor, initializer.
10443 <notif_queue>: Now a std::list.
10444 (remote_notif_state_xfree): Don't declare.
10445 * remote-notif.c (remote_notif_process, handle_notification)
10446 (remote_notif_state_allocate): Update.
10447 (~remote_notif_state): Rename from remote_notif_state_xfree.
10448
10449 2019-04-19 Tom Tromey <tom@tromey.com>
10450
10451 * symfile.c (reread_symbols): Update.
10452 * objfiles.c (objfile_register_static_link)
10453 (objfile_lookup_static_link): Update
10454 (~objfile) Don't delete static_links.
10455 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10456
10457 2019-04-19 Tom Tromey <tom@tromey.com>
10458
10459 * type-stack.h (struct type_stack) <insert>: Constify string.
10460 * type-stack.c (type_stack::insert): Constify string.
10461 * gdbtypes.h (lookup_template_type): Update.
10462 (address_space_name_to_int): Update.
10463 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10464 const.
10465 (lookup_template_type): Make name const.
10466 * c-exp.y: Update rules.
10467 (lex_one_token, classify_name, classify_inner_name)
10468 (c_print_token): Update.
10469 * p-exp.y: Update rules.
10470 (yylex): Update.
10471 * f-exp.y: Update rules.
10472 (yylex): Update.
10473 * d-exp.y: Update rules.
10474 (lex_one_token, classify_name, classify_inner_name): Update.
10475 * parse.c (write_dollar_variable, copy_name): Return std::string.
10476 * parser-defs.h (copy_name): Change return type.
10477 * m2-exp.y: Update rules.
10478 (yylex): Update.
10479 * go-exp.y (lex_one_token): Update.
10480 Update rules.
10481 (classify_unsafe_function, classify_packaged_name)
10482 (classify_name, yylex): Update.
10483
10484 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10485
10486 * configure.ac: add --enable-source-highlight switch.
10487 * configure: Regenerate.
10488 * top.c (print_gdb_version): plumb --enable-source-highlight
10489 status to "show configuration".
10490
10491 2019-04-19 Tom Tromey <tromey@adacore.com>
10492
10493 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10494 Check ADA_TYPE_P.
10495 (empty_record, ada_template_to_fixed_record_type_1)
10496 (template_to_static_fixed_type)
10497 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10498 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10499 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10500 macros.
10501
10502 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10503
10504 PR symtab/24423:
10505 * source.c (print_source_lines_base): Advance "iter" when a
10506 control character is seen.
10507
10508 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10509
10510 * inferior.h (struct infcall_suspend_state_deleter):
10511 Catch exception in destructor to avoid crash.
10512
10513 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10514
10515 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10516 close to the add_com "shell".
10517
10518 2019-04-18 Tom Tromey <tromey@adacore.com>
10519
10520 * process-stratum-target.h (class process_stratum_target)
10521 <stratum>: Add "final".
10522
10523 2019-04-17 Tom Tromey <tromey@adacore.com>
10524
10525 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10526 against nullptr before use.
10527
10528 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10529
10530 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10531
10532 2019-04-17 Jim Wilson <jimw@sifive.com>
10533 Andrew Burgess <andrew.burgess@embecosm.com>
10534
10535 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10536 code read might fail, assume 4-byte breakpoint in that case.
10537
10538 2019-04-15 Leszek Swirski <leszeks@google.com>
10539
10540 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10541 rather than a hand-rolled POD check when checking for forced MEMORY
10542 classification.
10543
10544 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10545
10546 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10547 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10548 function.
10549 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10550 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10551 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10552 declaration.
10553
10554 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10555
10556 * aarch64-linux-nat.c
10557 (aarch64_linux_nat_target::thread_architecture): Add override.
10558 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10559 each VQ.
10560
10561 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10562
10563 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10564
10565 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10566
10567 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10568 target types of size 96-bits, add some additional comments, and
10569 check that the builtin type we found was the correct size.
10570
10571 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10572
10573 * utils.c (prompt_for_continue): Don't restore the styling at the
10574 end, as applied_style has the wrong value. This fixes styling in
10575 long lists of file names that are interrupted by the "Continue?"
10576 prompt.
10577
10578 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10579
10580 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10581 * c-lang.c (c_language_defn): Likewise.
10582 (cplus_language_defn): Likewise.
10583 (asm_language_defn): Likewise.
10584 (minimal_language_defn): Likewise.
10585 * d-lang.c (d_language_defn): Likewise.
10586 * f-lang.c (f_language_defn): Likewise.
10587 * go-lang.c (go_language_defn): Likewise.
10588 * language.c (unknown_language_defn): Likewise.
10589 (auto_language_defn): Likewise.
10590 * language.h (struct language_defn): Remove la_magic field.
10591 (LANG_MAGIC): Delete.
10592 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10593 * objc-lang.c (objc_language_defn): Likewise.
10594 * opencl-lang.c (opencl_language_defn): Likewise.
10595 * p-lang.c (pascal_language_defn): Likewise.
10596 * rust-lang.c (rust_language_defn): Likewise.
10597
10598 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * riscv-tdep.c (riscv_type_align): New function.
10601 (riscv_type_alignment): Delete.
10602 (riscv_arg_location): Use 'type_align'.
10603 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10604
10605 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10606
10607 * gdbtypes.c (type_align): A struct with no non-static fields also
10608 has alignment of 1.
10609
10610 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10613 component to 0.
10614 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10615 member.
10616 (riscv_struct_info::analyse): New implementation using new
10617 analyse_inner member function.
10618 (riscv_struct_info::field_offset): New member function.
10619 (riscv_struct_info::m_offsets): New member variable.
10620 (riscv_struct_info::analyse_inner): New private member function,
10621 takes the old implementation of riscv_struct_info::analyse but
10622 extended to track field offsets.
10623 (riscv_call_arg_struct): Update the struct folding special cases
10624 to handle cases where empty C++ structs, which are non-zero
10625 length, are found.
10626 (riscv_arg_location): Initialise the length of each location, a
10627 non-zero length now indicates the location is in use.
10628 (riscv_push_dummy_call): Allow for the first location having a
10629 non-zero offset when setting up arguments.
10630 (riscv_return_value): Likewise, but for return values.
10631
10632 2019-04-11 Tom Tromey <tromey@adacore.com>
10633
10634 * utils.c (internal_vproblem): Make "msg" const.
10635
10636 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10637
10638 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10639 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10640 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10641 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10642
10643 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10644
10645 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10646 function.
10647 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10648 of amd64_collect_native_gregset.
10649 (amd64_linux_nat_target::store_registers): Likewise.
10650
10651 2019-04-10 Tom Tromey <tom@tromey.com>
10652
10653 * symtab.c (lookup_global_symbol_from_objfile)
10654 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10655 * objfiles.h (class separate_debug_iterator): New.
10656 (class separate_debug_range): New.
10657 (struct objfile) <separate_debug_objfiles>: New method.
10658 (objfile_separate_debug_iterate): Don't declare.
10659 * objfiles.c (separate_debug_iterator::operator++): Rename from
10660 objfile_separate_debug_iterate.
10661 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10662 iterator.
10663 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10664 iterator.
10665
10666 2019-04-10 Tom Tromey <tom@tromey.com>
10667
10668 * symfile.c (reread_symbols): Remove old comment.
10669 * objfiles.c (free_all_objfiles): Fix a typo.
10670
10671 2019-04-10 Tom Tromey <tom@tromey.com>
10672
10673 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10674 * minsyms.c (lookup_minimal_symbol): Use foreach.
10675 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10676 (lookup_minimal_symbol_solib_trampoline): Likewise.
10677 * symfile.c (reread_symbols): Use foreach.
10678
10679 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10680 Tom Tromey <tromey@adacore.com>
10681
10682 PR rust/24414:
10683 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10684 (rust_lex_int_test): Change "value" to be LONGEST.
10685 (rust_lex_tests): Add test for long integer literal.
10686
10687 2019-04-09 Tom Tromey <tromey@adacore.com>
10688
10689 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10690 to bool.
10691 (extended_remote_target::attach): Update.
10692 (remote_target::remote_notice_new_inferior): Update.
10693 (remote_target::add_current_inferior_and_thread): Update.
10694 * inferior.c (exit_inferior_1): Use "false".
10695 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10696
10697 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10698
10699 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10700 the "start" command.
10701
10702 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10703
10704 * python/py-inferior.c (infpy_thread_from_thread_handle):
10705 Adjust comments to reflect renaming of thread_from_thread_handle
10706 to thread_from_handle. Adjust keywords. Fix type error message.
10707 (inferior_object_methods): Add thread_from_handle. Retain
10708 thread_from_thread_handle, but mark it as deprecated.
10709
10710 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10711
10712 * gdbthread.h (find_thread_by_handle): Revise declaration.
10713 * thread.c (find_thread_by_handle): Likewise. Adjust
10714 implementation too.
10715 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10716 support for buffer objects as handles.
10717
10718 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10719
10720 * python/py-infthread.c (thpy_thread_handle): New function.
10721 (thread_object_methods): Register thpy_thread_handle.
10722
10723 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10724
10725 * gdbthread.h (thread_to_thread_handle): Declare.
10726 * thread.c (gdbtypes.h): Include.
10727 (thread_to_thread_handle): New function.
10728
10729 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10730 (target_thread_info_to_thread_handle): Declare.
10731 * target.c (target_thread_info_to_thread_handle): New function.
10732 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10733 * target-delegates.c: Regenerate.
10734
10735 * linux-thread-db.c (class thread_db_target): Add method
10736 thread_info_to_thread_handle.
10737 (thread_db_target::thread_info_to_thread_handle): Define.
10738 * remote.c (class remote_target): Add new method
10739 thread_info_to_thread_handle.
10740 (remote_target::thread_info_to_thread_handle): Define.
10741
10742 2019-04-08 Pedro Alves <palves@redhat.com>
10743
10744 * common/common-exceptions.c (throw_exception): Don't create
10745 named object to throw; throw directly.
10746 (throw_it): Likewise. Don't initialize gdb_exception::message
10747 here, with new; pass FMT and AP to the ctor instead.
10748 * common/common-exceptions.h: Include <string>.
10749 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10750 const char *, va_list)): New ctor. Use std::make_shared.
10751 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10752 errors)): Delete.
10753 (gdb_exception_error::gdb_exception_error(enum errors, const char
10754 *, va_list)): New.
10755 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10756 Add assertion.
10757 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10758 errors)): Delete.
10759 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10760 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10761 Add assertion.
10762
10763 2019-04-08 Tom Tromey <tom@tromey.com>
10764
10765 * valops.c (value_rtti_indirect_type): Replace throw_exception
10766 with throw.
10767 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10768 with throw.
10769 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10770 throw.
10771 * target.c (target_translate_tls_address): Replace throw_exception
10772 with throw.
10773 * stack.c (frame_apply_command_count): Replace throw_exception
10774 with throw.
10775 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10776 throw.
10777 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10778 with throw.
10779 * rs6000-tdep.c (rs6000_frame_cache)
10780 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10781 * remote.c: Replace throw_exception with throw.
10782 * record-full.c (record_full_message, record_full_wait_1)
10783 (record_full_restore): Replace throw_exception with throw.
10784 * record-btrace.c:
10785 (get_thread_current_frame_id, record_btrace_start_replaying)
10786 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10787 (cmd_record_btrace_start): Replace throw_exception with throw.
10788 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10789 throw.
10790 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10791 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10792 * linespec.c:
10793 (find_linespec_symbols): Replace throw_exception with throw.
10794 * infrun.c (displaced_step_prepare, resume): Replace
10795 throw_exception with throw.
10796 * infcmd.c (post_create_inferior): Replace throw_exception with
10797 throw.
10798 * inf-loop.c (inferior_event_handler): Replace throw_exception
10799 with throw.
10800 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10801 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10802 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10803 (get_prev_frame_always, get_frame_pc_if_available)
10804 (get_frame_address_in_block_if_available, get_frame_language):
10805 Replace throw_exception with throw.
10806 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10807 throw_exception with throw.
10808 * eval.c (fetch_subexp_value, evaluate_var_value)
10809 (evaluate_funcall, evaluate_subexp_standard): Replace
10810 throw_exception with throw.
10811 * dwarf2loc.c (call_site_find_chain)
10812 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10813 Replace throw_exception with throw.
10814 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10815 with throw.
10816 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10817 throw.
10818 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10819 * completer.c (complete_line_internal): Replace throw_exception
10820 with throw.
10821 * compile/compile-object-run.c (compile_object_run): Replace
10822 throw_exception with throw.
10823 * cli/cli-script.c (process_next_line): Replace throw_exception
10824 with throw.
10825 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10826 (btrace_enable, btrace_maint_update_pt_packets): Replace
10827 throw_exception with throw.
10828 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10829 throw_exception with throw.
10830 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10831 throw_exception with throw.
10832 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10833 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10834 * aarch64-tdep.c (aarch64_make_prologue_cache)
10835 (aarch64_make_stub_cache): Replace throw_exception with throw.
10836
10837 2019-04-08 Tom Tromey <tom@tromey.com>
10838
10839 * common/common-exceptions.c (throw_exception): Rename from
10840 throw_exception_cxx. Remove old copy. Make argument const.
10841 (throw_it): Create and throw exception objects directly.
10842 * common/common-exceptions.h (throw_exception): Make argument
10843 const.
10844 (struct gdb_exception_error): Add constructor.
10845 (struct gdb_exception_quit): Add constructor.
10846
10847 2019-04-08 Tom Tromey <tom@tromey.com>
10848
10849 * common/common-exceptions.h (exception_rethrow): Don't declare.
10850 (TRY_SJLJ): Update comment.
10851 (TRY, CATCH, END_CATCH): Remove.
10852 * common/common-exceptions.c (exception_rethrow): Remove.
10853
10854 2019-04-08 Tom Tromey <tom@tromey.com>
10855
10856 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10857 Remove.
10858 (gdb_exception_error): Rename from
10859 gdb_exception_RETURN_MASK_ERROR.
10860 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10861 (gdb_quit_bad_alloc): Update.
10862 * aarch64-tdep.c: Update.
10863 * ada-lang.c: Update.
10864 * ada-typeprint.c: Update.
10865 * ada-valprint.c: Update.
10866 * amd64-tdep.c: Update.
10867 * arch-utils.c: Update.
10868 * break-catch-throw.c: Update.
10869 * breakpoint.c: Update.
10870 * btrace.c: Update.
10871 * c-varobj.c: Update.
10872 * cli/cli-cmds.c: Update.
10873 * cli/cli-interp.c: Update.
10874 * cli/cli-script.c: Update.
10875 * common/common-exceptions.c: Update.
10876 * common/new-op.c: Update.
10877 * common/selftest.c: Update.
10878 * compile/compile-c-symbols.c: Update.
10879 * compile/compile-cplus-symbols.c: Update.
10880 * compile/compile-object-load.c: Update.
10881 * compile/compile-object-run.c: Update.
10882 * completer.c: Update.
10883 * corelow.c: Update.
10884 * cp-abi.c: Update.
10885 * cp-support.c: Update.
10886 * cp-valprint.c: Update.
10887 * darwin-nat.c: Update.
10888 * disasm-selftests.c: Update.
10889 * dtrace-probe.c: Update.
10890 * dwarf-index-cache.c: Update.
10891 * dwarf-index-write.c: Update.
10892 * dwarf2-frame-tailcall.c: Update.
10893 * dwarf2-frame.c: Update.
10894 * dwarf2loc.c: Update.
10895 * dwarf2read.c: Update.
10896 * eval.c: Update.
10897 * event-loop.c: Update.
10898 * event-top.c: Update.
10899 * exec.c: Update.
10900 * f-valprint.c: Update.
10901 * fbsd-tdep.c: Update.
10902 * frame-unwind.c: Update.
10903 * frame.c: Update.
10904 * gdbtypes.c: Update.
10905 * gnu-v3-abi.c: Update.
10906 * guile/guile-internal.h: Update.
10907 * guile/scm-block.c: Update.
10908 * guile/scm-breakpoint.c: Update.
10909 * guile/scm-cmd.c: Update.
10910 * guile/scm-disasm.c: Update.
10911 * guile/scm-frame.c: Update.
10912 * guile/scm-lazy-string.c: Update.
10913 * guile/scm-math.c: Update.
10914 * guile/scm-param.c: Update.
10915 * guile/scm-ports.c: Update.
10916 * guile/scm-pretty-print.c: Update.
10917 * guile/scm-symbol.c: Update.
10918 * guile/scm-symtab.c: Update.
10919 * guile/scm-type.c: Update.
10920 * guile/scm-value.c: Update.
10921 * i386-linux-tdep.c: Update.
10922 * i386-tdep.c: Update.
10923 * inf-loop.c: Update.
10924 * infcall.c: Update.
10925 * infcmd.c: Update.
10926 * infrun.c: Update.
10927 * jit.c: Update.
10928 * language.c: Update.
10929 * linespec.c: Update.
10930 * linux-fork.c: Update.
10931 * linux-nat.c: Update.
10932 * linux-tdep.c: Update.
10933 * linux-thread-db.c: Update.
10934 * main.c: Update.
10935 * mi/mi-cmd-break.c: Update.
10936 * mi/mi-cmd-stack.c: Update.
10937 * mi/mi-interp.c: Update.
10938 * mi/mi-main.c: Update.
10939 * objc-lang.c: Update.
10940 * p-valprint.c: Update.
10941 * parse.c: Update.
10942 * ppc-linux-tdep.c: Update.
10943 * printcmd.c: Update.
10944 * python/py-arch.c: Update.
10945 * python/py-breakpoint.c: Update.
10946 * python/py-cmd.c: Update.
10947 * python/py-finishbreakpoint.c: Update.
10948 * python/py-frame.c: Update.
10949 * python/py-framefilter.c: Update.
10950 * python/py-gdb-readline.c: Update.
10951 * python/py-inferior.c: Update.
10952 * python/py-infthread.c: Update.
10953 * python/py-lazy-string.c: Update.
10954 * python/py-linetable.c: Update.
10955 * python/py-objfile.c: Update.
10956 * python/py-param.c: Update.
10957 * python/py-prettyprint.c: Update.
10958 * python/py-progspace.c: Update.
10959 * python/py-record-btrace.c: Update.
10960 * python/py-record.c: Update.
10961 * python/py-symbol.c: Update.
10962 * python/py-type.c: Update.
10963 * python/py-unwind.c: Update.
10964 * python/py-utils.c: Update.
10965 * python/py-value.c: Update.
10966 * python/python.c: Update.
10967 * record-btrace.c: Update.
10968 * record-full.c: Update.
10969 * remote-fileio.c: Update.
10970 * remote.c: Update.
10971 * riscv-tdep.c: Update.
10972 * rs6000-aix-tdep.c: Update.
10973 * rs6000-tdep.c: Update.
10974 * rust-exp.y: Update.
10975 * rust-lang.c: Update.
10976 * s390-tdep.c: Update.
10977 * selftest-arch.c: Update.
10978 * solib-dsbt.c: Update.
10979 * solib-frv.c: Update.
10980 * solib-spu.c: Update.
10981 * solib-svr4.c: Update.
10982 * solib.c: Update.
10983 * sparc64-linux-tdep.c: Update.
10984 * stack.c: Update.
10985 * symfile-mem.c: Update.
10986 * symmisc.c: Update.
10987 * target.c: Update.
10988 * thread.c: Update.
10989 * top.c: Update.
10990 * tracefile-tfile.c: Update.
10991 * tui/tui.c: Update.
10992 * typeprint.c: Update.
10993 * unittests/cli-utils-selftests.c: Update.
10994 * unittests/parse-connection-spec-selftests.c: Update.
10995 * valops.c: Update.
10996 * valprint.c: Update.
10997 * value.c: Update.
10998 * varobj.c: Update.
10999 * windows-nat.c: Update.
11000 * x86-linux-nat.c: Update.
11001 * xml-support.c: Update.
11002
11003 2019-04-08 Tom Tromey <tom@tromey.com>
11004
11005 * xml-support.c: Use C++ exception handling.
11006 * x86-linux-nat.c: Use C++ exception handling.
11007 * windows-nat.c: Use C++ exception handling.
11008 * varobj.c: Use C++ exception handling.
11009 * value.c: Use C++ exception handling.
11010 * valprint.c: Use C++ exception handling.
11011 * valops.c: Use C++ exception handling.
11012 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11013 handling.
11014 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11015 * typeprint.c: Use C++ exception handling.
11016 * tui/tui.c: Use C++ exception handling.
11017 * tracefile-tfile.c: Use C++ exception handling.
11018 * top.c: Use C++ exception handling.
11019 * thread.c: Use C++ exception handling.
11020 * target.c: Use C++ exception handling.
11021 * symmisc.c: Use C++ exception handling.
11022 * symfile-mem.c: Use C++ exception handling.
11023 * stack.c: Use C++ exception handling.
11024 * sparc64-linux-tdep.c: Use C++ exception handling.
11025 * solib.c: Use C++ exception handling.
11026 * solib-svr4.c: Use C++ exception handling.
11027 * solib-spu.c: Use C++ exception handling.
11028 * solib-frv.c: Use C++ exception handling.
11029 * solib-dsbt.c: Use C++ exception handling.
11030 * selftest-arch.c: Use C++ exception handling.
11031 * s390-tdep.c: Use C++ exception handling.
11032 * rust-lang.c: Use C++ exception handling.
11033 * rust-exp.y: Use C++ exception handling.
11034 * rs6000-tdep.c: Use C++ exception handling.
11035 * rs6000-aix-tdep.c: Use C++ exception handling.
11036 * riscv-tdep.c: Use C++ exception handling.
11037 * remote.c: Use C++ exception handling.
11038 * remote-fileio.c: Use C++ exception handling.
11039 * record-full.c: Use C++ exception handling.
11040 * record-btrace.c: Use C++ exception handling.
11041 * python/python.c: Use C++ exception handling.
11042 * python/py-value.c: Use C++ exception handling.
11043 * python/py-utils.c: Use C++ exception handling.
11044 * python/py-unwind.c: Use C++ exception handling.
11045 * python/py-type.c: Use C++ exception handling.
11046 * python/py-symbol.c: Use C++ exception handling.
11047 * python/py-record.c: Use C++ exception handling.
11048 * python/py-record-btrace.c: Use C++ exception handling.
11049 * python/py-progspace.c: Use C++ exception handling.
11050 * python/py-prettyprint.c: Use C++ exception handling.
11051 * python/py-param.c: Use C++ exception handling.
11052 * python/py-objfile.c: Use C++ exception handling.
11053 * python/py-linetable.c: Use C++ exception handling.
11054 * python/py-lazy-string.c: Use C++ exception handling.
11055 * python/py-infthread.c: Use C++ exception handling.
11056 * python/py-inferior.c: Use C++ exception handling.
11057 * python/py-gdb-readline.c: Use C++ exception handling.
11058 * python/py-framefilter.c: Use C++ exception handling.
11059 * python/py-frame.c: Use C++ exception handling.
11060 * python/py-finishbreakpoint.c: Use C++ exception handling.
11061 * python/py-cmd.c: Use C++ exception handling.
11062 * python/py-breakpoint.c: Use C++ exception handling.
11063 * python/py-arch.c: Use C++ exception handling.
11064 * printcmd.c: Use C++ exception handling.
11065 * ppc-linux-tdep.c: Use C++ exception handling.
11066 * parse.c: Use C++ exception handling.
11067 * p-valprint.c: Use C++ exception handling.
11068 * objc-lang.c: Use C++ exception handling.
11069 * mi/mi-main.c: Use C++ exception handling.
11070 * mi/mi-interp.c: Use C++ exception handling.
11071 * mi/mi-cmd-stack.c: Use C++ exception handling.
11072 * mi/mi-cmd-break.c: Use C++ exception handling.
11073 * main.c: Use C++ exception handling.
11074 * linux-thread-db.c: Use C++ exception handling.
11075 * linux-tdep.c: Use C++ exception handling.
11076 * linux-nat.c: Use C++ exception handling.
11077 * linux-fork.c: Use C++ exception handling.
11078 * linespec.c: Use C++ exception handling.
11079 * language.c: Use C++ exception handling.
11080 * jit.c: Use C++ exception handling.
11081 * infrun.c: Use C++ exception handling.
11082 * infcmd.c: Use C++ exception handling.
11083 * infcall.c: Use C++ exception handling.
11084 * inf-loop.c: Use C++ exception handling.
11085 * i386-tdep.c: Use C++ exception handling.
11086 * i386-linux-tdep.c: Use C++ exception handling.
11087 * guile/scm-value.c: Use C++ exception handling.
11088 * guile/scm-type.c: Use C++ exception handling.
11089 * guile/scm-symtab.c: Use C++ exception handling.
11090 * guile/scm-symbol.c: Use C++ exception handling.
11091 * guile/scm-pretty-print.c: Use C++ exception handling.
11092 * guile/scm-ports.c: Use C++ exception handling.
11093 * guile/scm-param.c: Use C++ exception handling.
11094 * guile/scm-math.c: Use C++ exception handling.
11095 * guile/scm-lazy-string.c: Use C++ exception handling.
11096 * guile/scm-frame.c: Use C++ exception handling.
11097 * guile/scm-disasm.c: Use C++ exception handling.
11098 * guile/scm-cmd.c: Use C++ exception handling.
11099 * guile/scm-breakpoint.c: Use C++ exception handling.
11100 * guile/scm-block.c: Use C++ exception handling.
11101 * guile/guile-internal.h: Use C++ exception handling.
11102 * gnu-v3-abi.c: Use C++ exception handling.
11103 * gdbtypes.c: Use C++ exception handling.
11104 * frame.c: Use C++ exception handling.
11105 * frame-unwind.c: Use C++ exception handling.
11106 * fbsd-tdep.c: Use C++ exception handling.
11107 * f-valprint.c: Use C++ exception handling.
11108 * exec.c: Use C++ exception handling.
11109 * event-top.c: Use C++ exception handling.
11110 * event-loop.c: Use C++ exception handling.
11111 * eval.c: Use C++ exception handling.
11112 * dwarf2read.c: Use C++ exception handling.
11113 * dwarf2loc.c: Use C++ exception handling.
11114 * dwarf2-frame.c: Use C++ exception handling.
11115 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11116 * dwarf-index-write.c: Use C++ exception handling.
11117 * dwarf-index-cache.c: Use C++ exception handling.
11118 * dtrace-probe.c: Use C++ exception handling.
11119 * disasm-selftests.c: Use C++ exception handling.
11120 * darwin-nat.c: Use C++ exception handling.
11121 * cp-valprint.c: Use C++ exception handling.
11122 * cp-support.c: Use C++ exception handling.
11123 * cp-abi.c: Use C++ exception handling.
11124 * corelow.c: Use C++ exception handling.
11125 * completer.c: Use C++ exception handling.
11126 * compile/compile-object-run.c: Use C++ exception handling.
11127 * compile/compile-object-load.c: Use C++ exception handling.
11128 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11129 * compile/compile-c-symbols.c: Use C++ exception handling.
11130 * common/selftest.c: Use C++ exception handling.
11131 * common/new-op.c: Use C++ exception handling.
11132 * cli/cli-script.c: Use C++ exception handling.
11133 * cli/cli-interp.c: Use C++ exception handling.
11134 * cli/cli-cmds.c: Use C++ exception handling.
11135 * c-varobj.c: Use C++ exception handling.
11136 * btrace.c: Use C++ exception handling.
11137 * breakpoint.c: Use C++ exception handling.
11138 * break-catch-throw.c: Use C++ exception handling.
11139 * arch-utils.c: Use C++ exception handling.
11140 * amd64-tdep.c: Use C++ exception handling.
11141 * ada-valprint.c: Use C++ exception handling.
11142 * ada-typeprint.c: Use C++ exception handling.
11143 * ada-lang.c: Use C++ exception handling.
11144 * aarch64-tdep.c: Use C++ exception handling.
11145
11146 2019-04-08 Tom Tromey <tom@tromey.com>
11147
11148 * xml-support.c (gdb_xml_parser::parse): Update.
11149 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11150 * value.c (show_convenience): Update.
11151 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11152 (test_parse_flags_qcs): Update.
11153 * thread.c (thr_try_catch_cmd): Update.
11154 * target.c (target_translate_tls_address): Update.
11155 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11156 (info_frame_command_core, frame_apply_command_count): Update.
11157 * rust-exp.y (rust_lex_exception_test): Update.
11158 * riscv-tdep.c (riscv_print_one_register_info): Update.
11159 * remote.c (remote_target::enable_btrace): Update.
11160 * record-btrace.c (record_btrace_enable_warn): Update.
11161 * python/py-utils.c (gdbpy_convert_exception): Update.
11162 * printcmd.c (do_one_display, print_variable_and_value): Update.
11163 * mi/mi-main.c (mi_print_exception): Update.
11164 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11165 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11166 * linux-nat.c (linux_nat_target::attach): Update.
11167 * linux-fork.c (class scoped_switch_fork_info): Update.
11168 * infrun.c (displaced_step_prepare): Update.
11169 * infcall.c (call_function_by_hand_dummy): Update.
11170 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11171 * gnu-v3-abi.c (print_one_vtable): Update.
11172 * frame.c (get_prev_frame_always): Update.
11173 * f-valprint.c (info_common_command_for_block): Update.
11174 * exec.c (try_open_exec_file): Update.
11175 * exceptions.c (print_exception, exception_print)
11176 (exception_fprintf, exception_print_same): Update.
11177 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11178 * dwarf-index-cache.c (index_cache::store)
11179 (index_cache::lookup_gdb_index): Update.
11180 * darwin-nat.c (maybe_cache_shell): Update.
11181 * cp-valprint.c (cp_print_value_fields): Update.
11182 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11183 (gcc_cplus_symbol_address): Update.
11184 * compile/compile-c-symbols.c (gcc_convert_symbol)
11185 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11186 * common/selftest.c: Update.
11187 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11188 a std::string.
11189 (exception_try_scope_entry, exception_try_scope_exit): Don't
11190 declare.
11191 (struct exception_try_scope): Remove.
11192 (TRY): Don't use exception_try_scope.
11193 (struct gdb_exception): Add constructor, operator=.
11194 <what>: New method.
11195 (struct gdb_exception_RETURN_MASK_ALL)
11196 (struct gdb_exception_RETURN_MASK_ERROR)
11197 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11198 (struct gdb_quit_bad_alloc): Update.
11199 * common/common-exceptions.c (exception_none): Change
11200 initializer.
11201 (struct catcher) <state, exception>: Initialize inline.
11202 <prev>: Remove member.
11203 (current_catcher): Remove.
11204 (catchers): New global.
11205 (exceptions_state_mc_init): Simplify.
11206 (catcher_pop): Remove.
11207 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11208 (try_scope_depth, exception_try_scope_entry)
11209 (exception_try_scope_exit): Remove.
11210 (throw_exception_sjlj): Update.
11211 (exception_messages, exception_messages_size): Remove.
11212 (throw_it): Simplify.
11213 (gdb_exception_sliced_copy): Remove.
11214 (throw_exception_cxx): Update.
11215 * cli/cli-script.c (script_from_file): Update.
11216 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11217 Update.
11218 * ada-valprint.c (ada_val_print): Update.
11219 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11220 (create_excep_cond_exprs): Update.
11221
11222 2019-04-08 Tom Tromey <tom@tromey.com>
11223
11224 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11225 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11226 (TRY, CATCH, END_CATCH): Remove some definitions.
11227 * common/common-exceptions.c: Don't use GDB_XCPT.
11228 (catcher_list_size): Remove.
11229 (throw_exception, throw_it): Simplify.
11230
11231 2019-04-05 Tom Tromey <tom@tromey.com>
11232
11233 Revert the header-sorting patch.
11234 * ft32-tdep.c: Revert.
11235 * frv-tdep.c: Revert.
11236 * frv-linux-tdep.c: Revert.
11237 * frame.c: Revert.
11238 * frame-unwind.c: Revert.
11239 * frame-base.c: Revert.
11240 * fork-child.c: Revert.
11241 * findvar.c: Revert.
11242 * findcmd.c: Revert.
11243 * filesystem.c: Revert.
11244 * filename-seen-cache.h: Revert.
11245 * filename-seen-cache.c: Revert.
11246 * fbsd-tdep.c: Revert.
11247 * fbsd-nat.h: Revert.
11248 * fbsd-nat.c: Revert.
11249 * f-valprint.c: Revert.
11250 * f-typeprint.c: Revert.
11251 * f-lang.c: Revert.
11252 * extension.h: Revert.
11253 * extension.c: Revert.
11254 * extension-priv.h: Revert.
11255 * expprint.c: Revert.
11256 * exec.h: Revert.
11257 * exec.c: Revert.
11258 * exceptions.c: Revert.
11259 * event-top.c: Revert.
11260 * event-loop.c: Revert.
11261 * eval.c: Revert.
11262 * elfread.c: Revert.
11263 * dwarf2read.h: Revert.
11264 * dwarf2read.c: Revert.
11265 * dwarf2loc.c: Revert.
11266 * dwarf2expr.h: Revert.
11267 * dwarf2expr.c: Revert.
11268 * dwarf2-frame.c: Revert.
11269 * dwarf2-frame-tailcall.c: Revert.
11270 * dwarf-index-write.h: Revert.
11271 * dwarf-index-write.c: Revert.
11272 * dwarf-index-common.c: Revert.
11273 * dwarf-index-cache.h: Revert.
11274 * dwarf-index-cache.c: Revert.
11275 * dummy-frame.c: Revert.
11276 * dtrace-probe.c: Revert.
11277 * disasm.h: Revert.
11278 * disasm.c: Revert.
11279 * disasm-selftests.c: Revert.
11280 * dictionary.c: Revert.
11281 * dicos-tdep.c: Revert.
11282 * demangle.c: Revert.
11283 * dcache.h: Revert.
11284 * dcache.c: Revert.
11285 * darwin-nat.h: Revert.
11286 * darwin-nat.c: Revert.
11287 * darwin-nat-info.c: Revert.
11288 * d-valprint.c: Revert.
11289 * d-namespace.c: Revert.
11290 * d-lang.c: Revert.
11291 * ctf.c: Revert.
11292 * csky-tdep.c: Revert.
11293 * csky-linux-tdep.c: Revert.
11294 * cris-tdep.c: Revert.
11295 * cris-linux-tdep.c: Revert.
11296 * cp-valprint.c: Revert.
11297 * cp-support.c: Revert.
11298 * cp-namespace.c: Revert.
11299 * cp-abi.c: Revert.
11300 * corelow.c: Revert.
11301 * corefile.c: Revert.
11302 * continuations.c: Revert.
11303 * completer.h: Revert.
11304 * completer.c: Revert.
11305 * complaints.c: Revert.
11306 * coffread.c: Revert.
11307 * coff-pe-read.c: Revert.
11308 * cli-out.h: Revert.
11309 * cli-out.c: Revert.
11310 * charset.c: Revert.
11311 * c-varobj.c: Revert.
11312 * c-valprint.c: Revert.
11313 * c-typeprint.c: Revert.
11314 * c-lang.c: Revert.
11315 * buildsym.c: Revert.
11316 * buildsym-legacy.c: Revert.
11317 * build-id.h: Revert.
11318 * build-id.c: Revert.
11319 * btrace.c: Revert.
11320 * bsd-uthread.c: Revert.
11321 * breakpoint.h: Revert.
11322 * breakpoint.c: Revert.
11323 * break-catch-throw.c: Revert.
11324 * break-catch-syscall.c: Revert.
11325 * break-catch-sig.c: Revert.
11326 * blockframe.c: Revert.
11327 * block.c: Revert.
11328 * bfin-tdep.c: Revert.
11329 * bfin-linux-tdep.c: Revert.
11330 * bfd-target.c: Revert.
11331 * bcache.c: Revert.
11332 * ax-general.c: Revert.
11333 * ax-gdb.h: Revert.
11334 * ax-gdb.c: Revert.
11335 * avr-tdep.c: Revert.
11336 * auxv.c: Revert.
11337 * auto-load.c: Revert.
11338 * arm-wince-tdep.c: Revert.
11339 * arm-tdep.c: Revert.
11340 * arm-symbian-tdep.c: Revert.
11341 * arm-pikeos-tdep.c: Revert.
11342 * arm-obsd-tdep.c: Revert.
11343 * arm-nbsd-tdep.c: Revert.
11344 * arm-nbsd-nat.c: Revert.
11345 * arm-linux-tdep.c: Revert.
11346 * arm-linux-nat.c: Revert.
11347 * arm-fbsd-tdep.c: Revert.
11348 * arm-fbsd-nat.c: Revert.
11349 * arm-bsd-tdep.c: Revert.
11350 * arch-utils.c: Revert.
11351 * arc-tdep.c: Revert.
11352 * arc-newlib-tdep.c: Revert.
11353 * annotate.h: Revert.
11354 * annotate.c: Revert.
11355 * amd64-windows-tdep.c: Revert.
11356 * amd64-windows-nat.c: Revert.
11357 * amd64-tdep.c: Revert.
11358 * amd64-sol2-tdep.c: Revert.
11359 * amd64-obsd-tdep.c: Revert.
11360 * amd64-obsd-nat.c: Revert.
11361 * amd64-nbsd-tdep.c: Revert.
11362 * amd64-nbsd-nat.c: Revert.
11363 * amd64-nat.c: Revert.
11364 * amd64-linux-tdep.c: Revert.
11365 * amd64-linux-nat.c: Revert.
11366 * amd64-fbsd-tdep.c: Revert.
11367 * amd64-fbsd-nat.c: Revert.
11368 * amd64-dicos-tdep.c: Revert.
11369 * amd64-darwin-tdep.c: Revert.
11370 * amd64-bsd-nat.c: Revert.
11371 * alpha-tdep.c: Revert.
11372 * alpha-obsd-tdep.c: Revert.
11373 * alpha-nbsd-tdep.c: Revert.
11374 * alpha-mdebug-tdep.c: Revert.
11375 * alpha-linux-tdep.c: Revert.
11376 * alpha-linux-nat.c: Revert.
11377 * alpha-bsd-tdep.c: Revert.
11378 * alpha-bsd-nat.c: Revert.
11379 * aix-thread.c: Revert.
11380 * agent.c: Revert.
11381 * addrmap.c: Revert.
11382 * ada-varobj.c: Revert.
11383 * ada-valprint.c: Revert.
11384 * ada-typeprint.c: Revert.
11385 * ada-tasks.c: Revert.
11386 * ada-lang.c: Revert.
11387 * aarch64-tdep.c: Revert.
11388 * aarch64-ravenscar-thread.c: Revert.
11389 * aarch64-newlib-tdep.c: Revert.
11390 * aarch64-linux-tdep.c: Revert.
11391 * aarch64-linux-nat.c: Revert.
11392 * aarch64-fbsd-tdep.c: Revert.
11393 * aarch64-fbsd-nat.c: Revert.
11394 * aarch32-linux-nat.c: Revert.
11395
11396 2019-04-05 Tom Tromey <tom@tromey.com>
11397
11398 * ft32-tdep.c: Sort headers.
11399 * frv-tdep.c: Sort headers.
11400 * frv-linux-tdep.c: Sort headers.
11401 * frame.c: Sort headers.
11402 * frame-unwind.c: Sort headers.
11403 * frame-base.c: Sort headers.
11404 * fork-child.c: Sort headers.
11405 * findvar.c: Sort headers.
11406 * findcmd.c: Sort headers.
11407 * filesystem.c: Sort headers.
11408 * filename-seen-cache.h: Sort headers.
11409 * filename-seen-cache.c: Sort headers.
11410 * fbsd-tdep.c: Sort headers.
11411 * fbsd-nat.h: Sort headers.
11412 * fbsd-nat.c: Sort headers.
11413 * f-valprint.c: Sort headers.
11414 * f-typeprint.c: Sort headers.
11415 * f-lang.c: Sort headers.
11416 * extension.h: Sort headers.
11417 * extension.c: Sort headers.
11418 * extension-priv.h: Sort headers.
11419 * expprint.c: Sort headers.
11420 * exec.h: Sort headers.
11421 * exec.c: Sort headers.
11422 * exceptions.c: Sort headers.
11423 * event-top.c: Sort headers.
11424 * event-loop.c: Sort headers.
11425 * eval.c: Sort headers.
11426 * elfread.c: Sort headers.
11427 * dwarf2read.h: Sort headers.
11428 * dwarf2read.c: Sort headers.
11429 * dwarf2loc.c: Sort headers.
11430 * dwarf2expr.h: Sort headers.
11431 * dwarf2expr.c: Sort headers.
11432 * dwarf2-frame.c: Sort headers.
11433 * dwarf2-frame-tailcall.c: Sort headers.
11434 * dwarf-index-write.h: Sort headers.
11435 * dwarf-index-write.c: Sort headers.
11436 * dwarf-index-common.c: Sort headers.
11437 * dwarf-index-cache.h: Sort headers.
11438 * dwarf-index-cache.c: Sort headers.
11439 * dummy-frame.c: Sort headers.
11440 * dtrace-probe.c: Sort headers.
11441 * disasm.h: Sort headers.
11442 * disasm.c: Sort headers.
11443 * disasm-selftests.c: Sort headers.
11444 * dictionary.c: Sort headers.
11445 * dicos-tdep.c: Sort headers.
11446 * demangle.c: Sort headers.
11447 * dcache.h: Sort headers.
11448 * dcache.c: Sort headers.
11449 * darwin-nat.h: Sort headers.
11450 * darwin-nat.c: Sort headers.
11451 * darwin-nat-info.c: Sort headers.
11452 * d-valprint.c: Sort headers.
11453 * d-namespace.c: Sort headers.
11454 * d-lang.c: Sort headers.
11455 * ctf.c: Sort headers.
11456 * csky-tdep.c: Sort headers.
11457 * csky-linux-tdep.c: Sort headers.
11458 * cris-tdep.c: Sort headers.
11459 * cris-linux-tdep.c: Sort headers.
11460 * cp-valprint.c: Sort headers.
11461 * cp-support.c: Sort headers.
11462 * cp-namespace.c: Sort headers.
11463 * cp-abi.c: Sort headers.
11464 * corelow.c: Sort headers.
11465 * corefile.c: Sort headers.
11466 * continuations.c: Sort headers.
11467 * completer.h: Sort headers.
11468 * completer.c: Sort headers.
11469 * complaints.c: Sort headers.
11470 * coffread.c: Sort headers.
11471 * coff-pe-read.c: Sort headers.
11472 * cli-out.h: Sort headers.
11473 * cli-out.c: Sort headers.
11474 * charset.c: Sort headers.
11475 * c-varobj.c: Sort headers.
11476 * c-valprint.c: Sort headers.
11477 * c-typeprint.c: Sort headers.
11478 * c-lang.c: Sort headers.
11479 * buildsym.c: Sort headers.
11480 * buildsym-legacy.c: Sort headers.
11481 * build-id.h: Sort headers.
11482 * build-id.c: Sort headers.
11483 * btrace.c: Sort headers.
11484 * bsd-uthread.c: Sort headers.
11485 * breakpoint.h: Sort headers.
11486 * breakpoint.c: Sort headers.
11487 * break-catch-throw.c: Sort headers.
11488 * break-catch-syscall.c: Sort headers.
11489 * break-catch-sig.c: Sort headers.
11490 * blockframe.c: Sort headers.
11491 * block.c: Sort headers.
11492 * bfin-tdep.c: Sort headers.
11493 * bfin-linux-tdep.c: Sort headers.
11494 * bfd-target.c: Sort headers.
11495 * bcache.c: Sort headers.
11496 * ax-general.c: Sort headers.
11497 * ax-gdb.h: Sort headers.
11498 * ax-gdb.c: Sort headers.
11499 * avr-tdep.c: Sort headers.
11500 * auxv.c: Sort headers.
11501 * auto-load.c: Sort headers.
11502 * arm-wince-tdep.c: Sort headers.
11503 * arm-tdep.c: Sort headers.
11504 * arm-symbian-tdep.c: Sort headers.
11505 * arm-pikeos-tdep.c: Sort headers.
11506 * arm-obsd-tdep.c: Sort headers.
11507 * arm-nbsd-tdep.c: Sort headers.
11508 * arm-nbsd-nat.c: Sort headers.
11509 * arm-linux-tdep.c: Sort headers.
11510 * arm-linux-nat.c: Sort headers.
11511 * arm-fbsd-tdep.c: Sort headers.
11512 * arm-fbsd-nat.c: Sort headers.
11513 * arm-bsd-tdep.c: Sort headers.
11514 * arch-utils.c: Sort headers.
11515 * arc-tdep.c: Sort headers.
11516 * arc-newlib-tdep.c: Sort headers.
11517 * annotate.h: Sort headers.
11518 * annotate.c: Sort headers.
11519 * amd64-windows-tdep.c: Sort headers.
11520 * amd64-windows-nat.c: Sort headers.
11521 * amd64-tdep.c: Sort headers.
11522 * amd64-sol2-tdep.c: Sort headers.
11523 * amd64-obsd-tdep.c: Sort headers.
11524 * amd64-obsd-nat.c: Sort headers.
11525 * amd64-nbsd-tdep.c: Sort headers.
11526 * amd64-nbsd-nat.c: Sort headers.
11527 * amd64-nat.c: Sort headers.
11528 * amd64-linux-tdep.c: Sort headers.
11529 * amd64-linux-nat.c: Sort headers.
11530 * amd64-fbsd-tdep.c: Sort headers.
11531 * amd64-fbsd-nat.c: Sort headers.
11532 * amd64-dicos-tdep.c: Sort headers.
11533 * amd64-darwin-tdep.c: Sort headers.
11534 * amd64-bsd-nat.c: Sort headers.
11535 * alpha-tdep.c: Sort headers.
11536 * alpha-obsd-tdep.c: Sort headers.
11537 * alpha-nbsd-tdep.c: Sort headers.
11538 * alpha-mdebug-tdep.c: Sort headers.
11539 * alpha-linux-tdep.c: Sort headers.
11540 * alpha-linux-nat.c: Sort headers.
11541 * alpha-bsd-tdep.c: Sort headers.
11542 * alpha-bsd-nat.c: Sort headers.
11543 * aix-thread.c: Sort headers.
11544 * agent.c: Sort headers.
11545 * addrmap.c: Sort headers.
11546 * ada-varobj.c: Sort headers.
11547 * ada-valprint.c: Sort headers.
11548 * ada-typeprint.c: Sort headers.
11549 * ada-tasks.c: Sort headers.
11550 * ada-lang.c: Sort headers.
11551 * aarch64-tdep.c: Sort headers.
11552 * aarch64-ravenscar-thread.c: Sort headers.
11553 * aarch64-newlib-tdep.c: Sort headers.
11554 * aarch64-linux-tdep.c: Sort headers.
11555 * aarch64-linux-nat.c: Sort headers.
11556 * aarch64-fbsd-tdep.c: Sort headers.
11557 * aarch64-fbsd-nat.c: Sort headers.
11558 * aarch32-linux-nat.c: Sort headers.
11559
11560 2019-04-04 Tom Tromey <tom@tromey.com>
11561
11562 * varobj.c (varobj_create): Update.
11563 * rust-exp.y (struct rust_parser) <update_innermost_block,
11564 lookup_symbol>: New methods.
11565 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11566 Rename.
11567 (rust_parser::rust_lookup_type)
11568 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11569 * printcmd.c (display_command, do_one_display): Update.
11570 * parser-defs.h (struct parser_state) <parser_state>: Add
11571 "tracker" parameter.
11572 (block_tracker): New member.
11573 (class innermost_block_tracker) <innermost_block_tracker>: Add
11574 "types" parameter.
11575 <reset>: Remove method.
11576 (innermost_block): Don't declare.
11577 (null_post_parser): Update.
11578 * parse.c (innermost_block): Remove global.
11579 (write_dollar_variable): Update.
11580 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11581 Remove "tracker_types" parameter.
11582 (parse_expression): Add "tracker" parameter.
11583 (parse_expression_for_completion): Update.
11584 (null_post_parser): Add "tracker" parameter.
11585 * p-exp.y: Update rules.
11586 * m2-exp.y: Update rules.
11587 * language.h (struct language_defn) <la_post_parser>: Add
11588 "tracker" parameter.
11589 * go-exp.y: Update rules.
11590 * f-exp.y: Update rules.
11591 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11592 parameter.
11593 * d-exp.y: Update rules.
11594 * c-exp.y: Update rules.
11595 * breakpoint.c (set_breakpoint_condition): Create an
11596 innermost_block_tracker.
11597 (watch_command_1): Likewise.
11598 * ada-lang.c (resolve): Add "tracker" parameter.
11599 (resolve_subexp): Likewise.
11600 * ada-exp.y (write_var_from_sym): Update.
11601
11602 2019-04-04 Tom Tromey <tom@tromey.com>
11603
11604 * type-stack.h: New file.
11605 * type-stack.c: New file.
11606 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11607 type-stack.h.
11608 (insert_into_type_stack, insert_type, push_type, push_type_int)
11609 (insert_type_address_space, pop_type, pop_type_int)
11610 (pop_typelist, pop_type_stack, append_type_stack)
11611 (push_type_stack, get_type_stack, push_typelist)
11612 (follow_type_instance_flags, follow_types): Don't declare.
11613 * parse.c (type_stack): Remove global.
11614 (parse_exp_in_context): Update.
11615 (insert_into_type_stack, insert_type, push_type, push_type_int)
11616 (insert_type_address_space, pop_type, pop_type_int)
11617 (pop_typelist, pop_type_stack, append_type_stack)
11618 (push_type_stack, get_type_stack, push_typelist)
11619 (follow_type_instance_flags, follow_types): Remove (moved to
11620 type-stack.c).
11621 * f-exp.y (type_stack): New global.
11622 Update rules.
11623 (push_kind_type, f_parse): Update.
11624 * d-exp.y (type_stack): New global.
11625 Update rules.
11626 (d_parse): Update.
11627 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11628 Update rules.
11629 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11630 (HFILES_NO_SRCDIR): Add type-stack.h.
11631
11632 2019-04-04 Tom Tromey <tom@tromey.com>
11633
11634 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11635 (rust_parser::convert_ast_to_expression, rust_parse)
11636 (rust_lex_test_completion, rust_lex_tests): Update.
11637 * parser-defs.h (struct expr_completion_state): New.
11638 (struct parser_state) <parser_state>: Add completion parameter.
11639 <mark_struct_expression, mark_completion_tag>: New methods.
11640 <parse_completion, m_completion_state>: New members.
11641 (prefixify_expression, null_post_parser): Update.
11642 (mark_struct_expression, mark_completion_tag): Don't declare.
11643 * parse.c (parse_completion, expout_last_struct)
11644 (expout_tag_completion_type, expout_completion_name): Remove
11645 globals.
11646 (parser_state::mark_struct_expression)
11647 (parser_state::mark_completion_tag): Now methods.
11648 (prefixify_expression): Add last_struct parameter.
11649 (prefixify_subexp): Likewise.
11650 (parse_exp_1): Update.
11651 (parse_exp_in_context): Add cstate parameter. Update.
11652 (parse_expression_for_completion): Create an
11653 expr_completion_state.
11654 (null_post_parser): Add "completion" parameter.
11655 * p-exp.y: Update rules.
11656 (yylex): Update.
11657 * language.h (struct language_defn) <la_post_parser>: Add
11658 "completing" parameter.
11659 * go-exp.y: Update rules.
11660 (lex_one_token): Update.
11661 * expression.h (parse_completion): Don't declare.
11662 * d-exp.y: Update rules.
11663 (lex_one_token): Update rules.
11664 * c-exp.y: Update rules.
11665 (lex_one_token): Update.
11666 * ada-lang.c (resolve): Add "parse_completion" parameter.
11667 (resolve_subexp): Likewise.
11668 (ada_resolve_function): Likewise.
11669
11670 2019-04-04 Tom Tromey <tom@tromey.com>
11671
11672 * parser-defs.h (struct parser_state) <start_arglist,
11673 end_arglist>: New methods.
11674 <arglist_len, m_funcall_chain>: New members.
11675 (arglist_len, start_arglist, end_arglist): Don't declare.
11676 * parse.c (arglist_len, funcall_chain): Remove global.
11677 (start_arglist, end_arglist): Remove functions.
11678 (parse_exp_in_context): Update.
11679 * p-exp.y: Update rules.
11680 * m2-exp.y: Update rules.
11681 * go-exp.y: Update rules.
11682 * f-exp.y: Update rules.
11683 * d-exp.y: Update rules.
11684 * c-exp.y: Update rules.
11685
11686 2019-04-04 Tom Tromey <tom@tromey.com>
11687
11688 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11689 lex_operator, push_back>: New methods.
11690 Update all rules.
11691 (rust_parser::lex_hex, lex_escape): Rename and update.
11692 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11693 (rust_parser::lex_operator): Rename and update.
11694 (rust_parser::lex_number, rustyylex, rustyyerror)
11695 (rust_lex_test_init, rust_lex_test_sequence)
11696 (rust_lex_test_push_back, rust_lex_tests): Update.
11697 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11698 parameter.
11699 <lexptr, prev_lexptr>: New members.
11700 (lexptr, prev_lexptr): Don't declare.
11701 * parse.c (lexptr, prev_lexptr): Remove globals.
11702 (parse_exp_in_context): Update.
11703 * p-exp.y (yylex, yyerror): Update.
11704 * m2-exp.y (parse_number, yylex, yyerror): Update.
11705 * go-exp.y (lex_one_token, yyerror): Update.
11706 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11707 * d-exp.y (lex_one_token, yyerror): Update.
11708 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11709 (lex_one_token, yyerror): Update.
11710 * ada-lex.l (YY_INPUT): Update.
11711 (rewind_to_char): Update.
11712 * ada-exp.y (yyerror): Update.
11713
11714 2019-04-04 Tom Tromey <tom@tromey.com>
11715
11716 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11717 * parser-defs.h (struct parser_state) <parser_state>: Add new
11718 parameter.
11719 <comma_terminates>: New member.
11720 (comma_terminates): Don't declare global.
11721 * parse.c (comma_terminates): Remove global.
11722 (parse_exp_in_context): Update.
11723 * p-exp.y (yylex): Update.
11724 * m2-exp.y (yylex): Update.
11725 * go-exp.y (lex_one_token): Update.
11726 * f-exp.y (yylex): Update.
11727 * d-exp.y (lex_one_token): Update.
11728 * c-exp.y (lex_one_token): Update.
11729 * ada-lex.l: Update.
11730
11731 2019-04-04 Tom Tromey <tom@tromey.com>
11732
11733 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11734 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11735 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11736 * parser-defs.h (paren_depth): Don't declare.
11737 * parse.c (paren_depth): Remove global.
11738 (parse_exp_in_context): Update.
11739 * p-exp.y (paren_depth): New global.
11740 (pascal_parse): Initialize it.
11741 * m2-exp.y (paren_depth): New global.
11742 (m2_parse): Initialize it.
11743 * go-exp.y (paren_depth): New global.
11744 (go_parse): Initialize it.
11745 * f-exp.y (paren_depth): New global.
11746 (f_parse): Initialize it.
11747 * d-exp.y (paren_depth): New global.
11748 (d_parse): Initialize it.
11749 * c-exp.y (paren_depth): New global.
11750 (c_parse): Initialize it.
11751 * ada-lex.l (paren_depth): New global.
11752 (lexer_init): Initialize it.
11753
11754 2019-04-04 Tom Tromey <tom@tromey.com>
11755
11756 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11757 (rust_parser::convert_ast_to_type)
11758 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11759 * parser-defs.h (struct parser_state) <parser_state>: Add
11760 parameters. Initialize new members.
11761 <expression_context_block, expression_context_pc>: New members.
11762 * parse.c (expression_context_block, expression_context_pc):
11763 Remove globals.
11764 (parse_exp_in_context): Update.
11765 * p-exp.y: Update all rules.
11766 (yylex): Update.
11767 * m2-exp.y: Update all rules.
11768 (yylex): Update.
11769 * go-exp.y (yylex): Update.
11770 * f-exp.y (yylex): Update.
11771 * d-exp.y: Update all rules.
11772 (yylex): Update.
11773 * c-exp.y: Update all rules.
11774 (lex_one_token, classify_name, yylex, c_parse): Update.
11775 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11776
11777 2019-04-04 Tom Tromey <tom@tromey.com>
11778
11779 * gdbarch.h, gdbarch.c: Rebuild.
11780 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11781 * stap-probe.h:
11782 (struct stap_parse_info): Replace "parser_state" with
11783 "expr_builder".
11784 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11785 (parser_state): New class.
11786 * parse.c (expr_builder): Rename.
11787 (expr_builder::release): Rename.
11788 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11789 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11790 (write_exp_elt_longcst, write_exp_elt_floatcst)
11791 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11792 (write_exp_string_vector, write_exp_bitstring)
11793 (write_exp_msymbol, mark_struct_expression)
11794 (write_dollar_variable)
11795 (insert_type_address_space, increase_expout_size): Replace
11796 "parser_state" with "expr_builder".
11797 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11798 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11799 "parser_state" with "expr_builder".
11800
11801 2019-04-04 Tom Tromey <tom@tromey.com>
11802
11803 * rust-exp.y: Replace "parse_language" with method call.
11804 * p-exp.y:
11805 (yylex): Replace "parse_language" with method call.
11806 * m2-exp.y:
11807 (yylex): Replace "parse_language" with method call.
11808 * go-exp.y (classify_name): Replace "parse_language" with method
11809 call.
11810 * f-exp.y (yylex): Replace "parse_language" with method call.
11811 * d-exp.y (lex_one_token): Replace "parse_language" with method
11812 call.
11813 * c-exp.y:
11814 (lex_one_token, classify_name, yylex): Replace "parse_language"
11815 with method call.
11816 * ada-exp.y (find_primitive_type, type_char)
11817 (type_system_address): Replace "parse_language" with method call.
11818
11819 2019-04-04 Tom Tromey <tom@tromey.com>
11820
11821 * rust-exp.y: Replace "parse_gdbarch" with method call.
11822 * parse.c (write_dollar_variable, insert_type_address_space):
11823 Replace "parse_gdbarch" with method call.
11824 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11825 call.
11826 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11827 call.
11828 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11829 "parse_gdbarch" with method call.
11830 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11831 with method call.
11832 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11833 "parse_gdbarch" with method call.
11834 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11835 "parse_gdbarch" with method call.
11836 * c-exp.y (parse_type, parse_number, classify_name): Replace
11837 "parse_gdbarch" with method call.
11838 * ada-lex.l: Replace "parse_gdbarch" with method call.
11839 * ada-exp.y (parse_type, find_primitive_type, type_char)
11840 (type_system_address): Replace "parse_gdbarch" with method call.
11841
11842 2019-04-04 Tom Tromey <tom@tromey.com>
11843
11844 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11845 * stap-probe.c (stap_parse_argument): Update.
11846 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11847 initial_size parameter.
11848 * rust-exp.y (rust_lex_tests): Update.
11849 * parse.c (parser_state): Update.
11850 (parse_exp_in_context): Update.
11851 * parser-defs.h (struct parser_state) <parser_state>: Remove
11852 "initial_size" parameter.
11853
11854 2019-04-04 Tom Tromey <tom@tromey.com>
11855
11856 * parser-defs.h (increase_expout_size): Don't declare.
11857 * parse.c (increase_expout_size): Now static.
11858
11859 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11860
11861 * gnu-nat.c (gnu_nat_target::wait): Fix
11862 target_waitstatus_to_string call.
11863
11864 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11865
11866 * eval.c (evaluate_subexp_standard): Handle internal functions
11867 during Fortran function call handling.
11868
11869 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11870
11871 * NEWS: Mention new internal functions.
11872 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11873 (read_base_type): Use dwarf2_init_complex_target_type.
11874 * value.c (creal_internal_fn): New function.
11875 (cimag_internal_fn): New function.
11876 (_initialize_values): Register new internal functions.
11877
11878 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11879
11880 * infrun.c (stop_all_threads): If debug_infrun, always
11881 trace the wait status after wait_one, using
11882 target_waitstatus_to_string and target_pid_to_str.
11883 (handle_inferior_event): Replace various trace of
11884 wait status kind by a single trace.
11885 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11886 wait status kind image by target_waitstatus_to_string.
11887 * target/waitstatus.c (target_waitstatus_to_string): Fix
11888 obsolete comment.
11889
11890 2019-04-01 Tom Tromey <tromey@adacore.com>
11891
11892 PR symtab/23331:
11893 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11894
11895 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11896 Pedro Alves <palves@redhat.com>
11897
11898 * top.c (quit_force): Call 'finalize_values'.
11899 * value.c (finalize_values): New function.
11900 * value.h (finalize_values): Declare.
11901
11902 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11903
11904 * NEWS: Announce $_gdb_major and $_gdb_minor.
11905
11906 * top.c (init_gdb_version_vars): New function.
11907 (gdb_init): Call init_gdb_version_vars.
11908
11909 2019-03-29 Tom Tromey <tromey@adacore.com>
11910
11911 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11912 help text. Remove dead code.
11913
11914 2019-03-29 Keith Seitz <keiths@redhat.com>
11915
11916 From Siddhesh Poyarekar:
11917 * f-lang.h (f77_get_upperbound): Return LONGEST.
11918 (f77_get_lowerbound): Likewise.
11919 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11920 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11921 print them.
11922 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11923 plongest to format print it.
11924 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11925 (f77_get_upperbound): Likewise.
11926 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11927 LOWER_BOUND to LONGEST.
11928 (f77_create_arrayprint_offset_tbl): Likewise.
11929
11930 2019-03-29 Keith Seitz <keiths@redhat.com>
11931
11932 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11933 %s/pulongest for TYPE_LENGTH instead of %d in format
11934 strings.
11935 * ada-typerint.c (ada_print_type): Likewise.
11936 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11937 * compile/compile-c-support.c (generate_register_struct): Likewise.
11938 * gdbtypes.c (recursive_dump_type): Likewise.
11939 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11940 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11941 instead of %d in format strings.
11942 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11943 to std::min to ULONGEST.
11944 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11945 instead of %d in format strings.
11946 * tracepoint.c (info_scope_command): Likewise.
11947 * typeprint.c (print_offset_data::update)
11948 (print_offset_data::finish): Likewise.
11949 * xtensa-tdep.c (xtensa_store_return_value)
11950 (xtensa_push_dummy_call): Likewise.
11951
11952 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11953
11954 * windows-nat.c (display_selector): Fixed format specifications
11955 for 64-bit Cygwin.
11956
11957 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11958
11959 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11960
11961 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11962
11963 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11964 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11965 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11966 (nios2_linux_init_abi): Install it.
11967
11968 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11969
11970 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11971
11972 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11973
11974 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11975
11976 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11977 Tom Tromey <tromey@adacore.com>
11978
11979 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11980
11981 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11982
11983 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11984 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11985 method to compute the bounds of range types. Also print "[evaluated]"
11986 if the bounds' values come from a dynamic evaluation.
11987
11988 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11989
11990 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11991 whitespace when pretty printing is on.
11992
11993 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11994
11995 * ppc-linux-nat.c: Add include.
11996
11997 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11998
11999 * NEWS: Mention AArch64 Pointer Authentication.
12000
12001 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12002
12003 * arm-linux-nat.c: Add include.
12004
12005 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12006
12007 * source-cache.c (source_cache::get_source_lines): Re-read
12008 fullname after calling open_source_file.
12009
12010 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12011
12012 * NEWS: Mention TLS support for FreeBSD.
12013
12014 2019-03-25 Tom Tromey <tromey@adacore.com>
12015
12016 * minsyms.c (BUNCH_SIZE): Update comment.
12017 (~minimal_symbol_reader): Remove old comment.
12018 (compact_minimal_symbols): Update comment.
12019 (minimal_symbol_reader::install): Remove old comment. Update
12020 other comments.
12021
12022 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12023
12024 * s390-linux-nat.c: Add include.
12025
12026 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12027
12028 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12029 Call linux_get_hwcap.
12030 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12031 Likewise.
12032 (aarch64_linux_get_hwcap): Remove function.
12033 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12034 declaration.
12035 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12036 linux_get_hwcap.
12037 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12038 * linux-tdep.c (linux_get_hwcap): Add function.
12039 (linux_get_hwcap2): Likewise.
12040 * linux-tdep.h (linux_get_hwcap): Add declaration.
12041 (linux_get_hwcap2): Likewise.
12042 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12043 (ppc_linux_get_hwcap2): Likewise.
12044 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12045 linux_get_hwcap.
12046 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12047 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12048 (ppc_linux_nat_target::read_description): Likewise.
12049 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12050 * s390-linux-nat.c: Likewise.
12051 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12052
12053 2019-03-24 Tom Tromey <tom@tromey.com>
12054
12055 * ada-lang.c (standard_lookup): Simplify initialization.
12056 (ada_lookup_symbol_nonlocal): Simplify return.
12057 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12058 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12059 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12060 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12061 initialization.
12062 * solib.c (solib_global_lookup): Simplify.
12063 * symtab.c (null_block_symbol): Remove.
12064 (symbol_cache_lookup): Simplify returns.
12065 (lookup_language_this): Simplify returns.
12066 (lookup_symbol_aux): Simplify return.
12067 (lookup_local_symbol): Simplify returns.
12068 (lookup_global_symbol_from_objfile): Simplify return.
12069 (lookup_symbol_in_objfile_symtabs)
12070 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12071 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12072 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12073 * cp-namespace.c (cp_lookup_bare_symbol)
12074 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12075 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12076 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12077 (cp_lookup_symbol_via_imports): Simplify initialization.
12078 (find_symbol_in_baseclass): Likewise.
12079 * symtab.h (null_block_symbol): Remove.
12080 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12081 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12082 (d_lookup_symbol_module): Likewise.
12083 (find_symbol_in_baseclass): Simplify initialization.
12084
12085 2019-03-24 Tom Tromey <tom@tromey.com>
12086
12087 * expression.h: Don't include symtab.h.
12088 (struct block): Forward declare.
12089
12090 2019-03-24 Tom Tromey <tom@tromey.com>
12091
12092 * c-exp.y (typebase): Remove casts.
12093 * gdbtypes.c (lookup_unsigned_typename, )
12094 (lookup_signed_typename): Remove cast.
12095 * eval.c (parse_to_comma_and_eval): Remove cast.
12096 * parse.c (write_dollar_variable): Remove cast.
12097 * block.h (struct block) <superblock>: Now const.
12098 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12099 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12100 (map_block): Make "block" const.
12101 * symfile.h (struct quick_symbol_functions)
12102 <map_matching_symbols>: Constify block argument to "callback".
12103 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12104 const.
12105 (find_pc_sect_compunit_symtab): Make "b" const.
12106 (find_symbol_at_address): Likewise.
12107 (search_symbols): Likewise.
12108 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12109 (dw2_debug_names_lookup_symbol): Likewise.
12110 (dw2_map_matching_symbols): Update.
12111 * p-valprint.c (pascal_val_print): Remove "block".
12112 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12113 (aux_add_nonlocal_symbols): Make "block" const.
12114 (resolve_subexp): Remove cast.
12115 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12116 const.
12117 (iterate_over_file_blocks): Likewise.
12118 * f-exp.y (%union) <bval>: Remove.
12119 * coffread.c (patch_opaque_types): Make "b" const.
12120 * spu-tdep.c (spu_catch_start): Make "block" const.
12121 * c-valprint.c (print_unpacked_pointer): Remove "block".
12122 * symmisc.c (dump_symtab_1): Make "b" const.
12123 (block_depth): Make "block" const.
12124 * d-exp.y (%union) <bval>: Remove.
12125 * cp-support.h (cp_lookup_rtti_type): Update.
12126 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12127 * psymtab.c (psym_lookup_symbol): Make "block" const.
12128 (maintenance_check_psymtabs): Make "b" const.
12129 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12130 (enumerate_locals, enumerate_args): Update.
12131 * python/py-symtab.c (stpy_global_block): Make "block" const.
12132 (stpy_static_block): Likewise.
12133 * inline-frame.c (block_starting_point_at): Make "new_block"
12134 const.
12135 * block.c (find_block_in_blockvector): Make return type const.
12136 (blockvector_for_pc_sect): Make "b" const.
12137 (find_block_in_blockvector): Make "b" const.
12138
12139 2019-03-23 Tom Tromey <tom@tromey.com>
12140
12141 * varobj.c (varobj_create): Update.
12142 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12143 * printcmd.c (display_command, do_one_display): Don't reset
12144 innermost_block.
12145 * parser-defs.h (enum innermost_block_tracker_type): Move to
12146 expression.h.
12147 (innermost_block): Update comment.
12148 * parse.c (parse_exp_1): Add tracker_types parameter.
12149 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12150 tracker_types parameter. Reset innermost_block.
12151 (parse_exp_in_context): Remove.
12152 (parse_expression_for_completion): Update.
12153 * objfiles.c (~objfile): Don't reset expression_context_block or
12154 innermost_block.
12155 * expression.h (enum innermost_block_tracker_type): Move from
12156 parser-defs.h.
12157 (parse_exp_1): Add tracker_types parameter.
12158 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12159 reset innermost_block.
12160
12161 2019-03-23 Tom Tromey <tom@tromey.com>
12162
12163 * objfiles.h: Include bcache.h.
12164
12165 2019-03-23 Tom Tromey <tom@tromey.com>
12166
12167 * linespec.c (get_current_search_block): Use
12168 scoped_restore_current_language.
12169 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12170
12171 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12172 Jiong Wang <jiong.wang@arm.com>
12173
12174 * aarch64-linux-tdep.c
12175 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12176 section.
12177 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12178
12179 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12180 Jiong Wang <jiong.wang@arm.com>
12181
12182 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12183 instructions.
12184 (aarch64_analyze_prologue_test): Add PACIASP test.
12185 (aarch64_prologue_prev_register): Unmask PC value.
12186
12187 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12188 Jiong Wang <jiong.wang@arm.com>
12189
12190 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12191 (aarch64_dwarf2_prev_register): Unmask PC value.
12192 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12193 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12194 DW_CFA_AARCH64_negate_ra_state.
12195 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12196
12197 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12198 Jiong Wang <jiong.wang@arm.com>
12199
12200 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12201 registers.
12202 (aarch64_pseudo_register_name): Likewise.
12203 (aarch64_pseudo_register_type): Likewise.
12204 (aarch64_pseudo_register_reggroup_p): Likewise.
12205 (aarch64_gdbarch_init): Add pauth registers.
12206 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12207 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12208 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12209 (struct gdbarch_tdep): Add regnum for ra_state.
12210
12211 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12212 Jiong Wang <jiong.wang@arm.com>
12213
12214 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12215
12216 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12217 Jiong Wang <jiong.wang@arm.com>
12218
12219 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12220 function.
12221 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12222 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12223 (aarch64_gdbarch_init): Add puth registers.
12224 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12225 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12226 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12227
12228 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12229 Jiong Wang <jiong.wang@arm.com>
12230
12231 * aarch64-linux-nat.c
12232 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12233 * aarch64-linux-tdep.c
12234 (aarch64_linux_core_read_description): Likewise.
12235 (aarch64_linux_get_hwcap): New function.
12236 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12237 (aarch64_linux_get_hwcap): New declaration.
12238
12239 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12240 Jiong Wang <jiong.wang@arm.com>
12241
12242 * aarch64-linux-nat.c
12243 (aarch64_linux_nat_target::read_description): Add pauth param.
12244 * aarch64-linux-tdep.c
12245 (aarch64_linux_core_read_description): Likewise.
12246 * aarch64-tdep.c (struct target_desc): Add in pauth.
12247 (aarch64_read_description): Add pauth param.
12248 (aarch64_gdbarch_init): Likewise.
12249 * aarch64-tdep.h (aarch64_read_description): Likewise.
12250 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12251 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12252 * features/Makefile: Add new files.
12253 * features/aarch64-pauth.c: New file.
12254 * features/aarch64-pauth.xml: New file.
12255
12256 2019-03-20 Tom Tromey <tromey@adacore.com>
12257
12258 * infrun.c (handle_inferior_event): Rename from
12259 handle_inferior_event_1. Create a scoped_value_mark.
12260 (handle_inferior_event): Remove.
12261
12262 2019-03-19 Tom Tromey <tromey@adacore.com>
12263
12264 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12265 * infrun.h (print_stop_event): Add "displays" parameter.
12266 * infrun.c (print_stop_event): Add "displays" parameter.
12267
12268 2019-03-19 Pedro Alves <palves@redhat.com>
12269
12270 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12271 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12272 to -1. Fix TABs vs spaces.
12273 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12274 * tui/tui-out.h (tui_ui_out) Add intro comments.
12275 <m_line, m_start_of_line>: In-class initialize, and add describing
12276 comment.
12277
12278 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12279
12280 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12281 variable names.
12282 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12283
12284 2019-03-18 Pedro Alves <palves@redhat.com>
12285 Eli Zaretskii <eliz@gnu.org>
12286
12287 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12288 m_line and m_start_of_line.
12289
12290 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12291
12292 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12293 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12294 it returns a newline. This fixes a regression in TU mode, whereby
12295 the next line is output on the same screen line as the user input.
12296
12297 2019-03-18 Tom Tromey <tromey@adacore.com>
12298
12299 * minsyms.c (minimal_symbol_reader::install): Remove call to
12300 obstack_blank.
12301
12302 2019-03-18 Pedro Alves <palves@redhat.com>
12303
12304 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12305 New globals.
12306 (apply_style): New, factored out from ...
12307 (apply_ansi_escape): ... this. Handle reverse video mode.
12308 (tui_set_reverse_mode): New function.
12309 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12310 * tui/tui-winsource.c (tui_show_source_line): Use
12311 tui_set_reverse_mode instead of setting A_STANDOUT.
12312 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12313 New setter methods.
12314
12315 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12316
12317 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12318 Handle tabs.
12319
12320 2019-03-18 Tom Tromey <tromey@adacore.com>
12321
12322 * ada-lang.c (empty_array): Add "high" parameter.
12323 (ada_evaluate_subexp): Update.
12324
12325 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12326
12327 * unittests/string_view-selftests.c: Define
12328 _initialize_string_view_selftests unconditionally.
12329
12330 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12331
12332 PR gdb/24350
12333 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12334
12335 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12336
12337 PR gdb/24351
12338 * windows-nat.c (display_selector): Fix format specifiers.
12339
12340 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12341
12342 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12343 tui_refill_source_window instead of tui_refresh_win, to update the
12344 current execution line. This fixes redisplay of the current line
12345 when stepping through the code with "next" or "step".
12346
12347 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12348
12349 * source-cache.c (source_cache::get_source_lines): Call
12350 find_source_lines to initialize s->nlines. This fixes vertical
12351 scrolling of TUI source window when the DOWN arrow is pressed.
12352
12353 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12354
12355 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12356 linux-thread-db.c (_initialize_thread_db): Likewise.
12357
12358 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12359
12360 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12361 wclrtoeol in tui_show_source_line". This reverts changes made in
12362 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12363
12364 2019-03-15 Tom Tromey <tom@tromey.com>
12365
12366 * symtab.h (struct minimal_symbol): Derive from
12367 general_symbol_info.
12368 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12369 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12370 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12371 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12372 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12373 (MSYMBOL_SEARCH_NAME): Update.
12374 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12375 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12376 * minsyms.c (minimal_symbol_reader::record_full): Update.
12377
12378 2019-03-15 Tom Tromey <tom@tromey.com>
12379
12380 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12381
12382 2019-03-15 Tom Tromey <tom@tromey.com>
12383
12384 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12385 unique_xmalloc_ptr.
12386 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12387 Update.
12388 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12389 (build_minimal_symbol_hash_tables)
12390 (minimal_symbol_reader::install): Update.
12391
12392 2019-03-15 Tom Tromey <tom@tromey.com>
12393
12394 * symtab.c (create_demangled_names_hash): Update.
12395 (symbol_set_names): Update.
12396 * objfiles.h (struct objfile_per_bfd_storage)
12397 <demangled_names_hash>: Now an htab_up.
12398 * objfiles.c (objfile_per_bfd_storage): Simplify.
12399
12400 2019-03-15 Tom Tromey <tom@tromey.com>
12401
12402 * objfiles.h (struct objfile_per_bfd_storage): Declare
12403 destructor.
12404 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12405 New.
12406 (get_objfile_bfd_data): Use new. Don't initialize
12407 language_of_main.
12408 (free_objfile_per_bfd_storage): Remove.
12409 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12410
12411 2019-03-15 Tom Tromey <tom@tromey.com>
12412
12413 * symfile.c (reread_symbols): Update.
12414 * objfiles.c (objfile::objfile): Update.
12415 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12416 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12417 comment.
12418 (minimal_symbol_reader::install): Update.
12419 (terminate_minimal_symbol_table): Remove.
12420 * jit.c (jit_object_close_impl): Update.
12421
12422 2019-03-15 Tom Tromey <tom@tromey.com>
12423
12424 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12425 initializations.
12426
12427 2019-03-15 Tom Tromey <tom@tromey.com>
12428
12429 * objfiles.h (struct objfile_per_bfd_storage)
12430 <demangled_hash_languages>: Now a bitset.
12431 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12432 (lookup_minimal_symbol): Update.
12433
12434 2019-03-15 Tom Tromey <tom@tromey.com>
12435
12436 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12437 Don't return the symbol.
12438 * coffread.c (record_minimal_symbol): Use record_full.
12439
12440 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12441
12442 The MS-Windows port of ncurses fails to switch to a color pair if
12443 one or both of the colors are the implicit default colors. This
12444 change records the default colors when TUI is initialized, and
12445 then specifies them explicitly when a color pair uses the default
12446 colors. This allows color styling in TUI mode on MS-Windows.
12447
12448 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12449 ncurses_norm_attr.
12450 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12451 colors in ncurses_norm_attr.
12452 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12453 "none", replace it with the default color recorded in
12454 ncurses_norm_attr.
12455
12456 2019-03-14 Tom Tromey <tromey@adacore.com>
12457
12458 * source-cache.h (class source_cache) <get_source_lines>: Return
12459 std::string.
12460 * source-cache.c (source_cache::extract_lines): Handle case where
12461 first_pos==npos. Return std::string.
12462 (source_cache::get_source_lines): Update.
12463
12464 2019-03-14 Tom Tromey <tromey@adacore.com>
12465
12466 * NEWS: Add item for "style sources" commands.
12467 * source-cache.c (source_cache::get_source_lines): Check
12468 source_styling.
12469 * cli/cli-style.c (source_styling): New global.
12470 (_initialize_cli_style): Add "style sources" commands.
12471 (show_style_sources): New function.
12472 * cli/cli-style.h (source_styling): Declare.
12473
12474 2019-03-14 Pedro Alves <palves@redhat.com>
12475 Tom Tromey <tromey@adacore.com>
12476
12477 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12478 * tui/tui-winsource.c (tui_refill_source_window): New function,
12479 from...
12480 (tui_horizontal_source_scroll): ... here. Move some logic.
12481 * cli/cli-style.c (set_style_enabled): Notify new observable.
12482 * tui/tui-hooks.c (tui_redisplay_source): New function.
12483 (tui_attach_detach_observers): Attach or detach
12484 tui_redisplay_source.
12485 * observable.h (source_styling_changed): New observable.
12486 * observable.c: Define source_styling_changed observable.
12487
12488 2019-03-13 Tom Tromey <tromey@adacore.com>
12489
12490 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12491 (i386_gnu_nat_target::store_registers): Update.
12492 * target-debug.h (target_debug_print_std_string): New macro.
12493 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12494 * windows-tdep.c (display_one_tib): Update.
12495 * tui/tui-stack.c (tui_make_status_line): Update.
12496 * top.c (print_inferior_quit_action): Update.
12497 * thread.c (thr_try_catch_cmd): Update.
12498 (add_thread_with_info): Update.
12499 (thread_target_id_str): Update.
12500 (thr_try_catch_cmd): Update.
12501 (thread_command): Update.
12502 (thread_find_command): Update.
12503 * record-btrace.c (record_btrace_target::info_record)
12504 (record_btrace_resume_thread, record_btrace_target::resume)
12505 (record_btrace_cancel_resume, record_btrace_step_thread)
12506 (record_btrace_target::wait, record_btrace_target::wait)
12507 (record_btrace_target::wait, record_btrace_target::stop): Update.
12508 * progspace.c (print_program_space): Update.
12509 * process-stratum-target.c
12510 (process_stratum_target::thread_address_space): Update.
12511 * linux-fork.c (linux_fork_mourn_inferior)
12512 (detach_checkpoint_command, info_checkpoints_command)
12513 (linux_fork_context): Update.
12514 (linux_fork_detach): Update.
12515 (class scoped_switch_fork_info): Update.
12516 (delete_checkpoint_command): Update.
12517 * infrun.c (follow_fork_inferior): Update.
12518 (follow_fork_inferior): Update.
12519 (proceed_after_vfork_done): Update.
12520 (handle_vfork_child_exec_or_exit): Update.
12521 (follow_exec): Update.
12522 (displaced_step_prepare_throw): Update.
12523 (displaced_step_restore): Update.
12524 (start_step_over): Update.
12525 (resume_1): Update.
12526 (clear_proceed_status_thread): Update.
12527 (proceed): Update.
12528 (print_target_wait_results): Update.
12529 (do_target_wait): Update.
12530 (context_switch): Update.
12531 (stop_all_threads): Update.
12532 (restart_threads): Update.
12533 (finish_step_over): Update.
12534 (handle_signal_stop): Update.
12535 (switch_back_to_stepped_thread): Update.
12536 (keep_going_pass_signal): Update.
12537 (print_exited_reason): Update.
12538 (normal_stop): Update.
12539 * inferior.c (inferior_pid_to_str): Change return type.
12540 (print_selected_inferior): Update.
12541 (add_inferior): Update.
12542 (detach_inferior): Update.
12543 * dummy-frame.c (fprint_dummy_frames): Update.
12544 * dcache.c (dcache_info_1): Update.
12545 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12546 (btrace_fetch, btrace_clear): Update.
12547 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12548 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12549 type.
12550 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12551 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12552 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12553 * gdbarch.c, gdbarch.h: Rebuild.
12554 * gdbarch.sh (core_pid_to_str): Change return type.
12555 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12556 return type.
12557 (windows_nat_target::pid_to_str): Change return type.
12558 (windows_delete_thread): Update.
12559 (windows_nat_target::attach): Update.
12560 (windows_nat_target::files_info): Update.
12561 * target-delegates.c: Rebuild.
12562 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12563 return type.
12564 (sol_thread_target::pid_to_str): Change return type.
12565 * remote.c (class remote_target) <pid_to_str>: Change return
12566 type.
12567 (remote_target::pid_to_str): Change return type.
12568 (extended_remote_target::attach, remote_target::remote_stop_ns)
12569 (remote_target::remote_notif_remove_queued_reply)
12570 (remote_target::push_stop_reply, remote_target::disable_btrace):
12571 Update.
12572 (extended_remote_target::attach): Update.
12573 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12574 type.
12575 (gdbsim_target::pid_to_str): Change return type.
12576 * ravenscar-thread.c (struct ravenscar_thread_target)
12577 <pid_to_str>: Change return type.
12578 (ravenscar_thread_target::pid_to_str): Change return type.
12579 * procfs.c (class procfs_target) <pid_to_str>: Change return
12580 type.
12581 (procfs_target::pid_to_str): Change return type.
12582 (procfs_target::attach): Update.
12583 (procfs_target::detach): Update.
12584 (procfs_target::fetch_registers): Update.
12585 (procfs_target::store_registers): Update.
12586 (procfs_target::wait): Update.
12587 (procfs_target::files_info): Update.
12588 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12589 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12590 return type.
12591 (nto_procfs_target::pid_to_str): Change return type.
12592 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12593 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12594 return type.
12595 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12596 (exit_lwp): Update.
12597 (attach_proc_task_lwp_callback, get_detach_signal)
12598 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12599 (linux_nat_target::resume, wait_lwp, stop_callback)
12600 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12601 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12602 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12603 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12604 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12605 type.
12606 (inf_ptrace_target::attach): Update.
12607 (inf_ptrace_target::files_info): Update.
12608 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12609 type.
12610 (go32_nat_target::pid_to_str): Change return type.
12611 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12612 (gnu_nat_target::wait): Update.
12613 (gnu_nat_target::wait): Update.
12614 (gnu_nat_target::resume): Update.
12615 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12616 (fbsd_nat_target::wait): Update.
12617 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12618 type.
12619 (darwin_nat_target::attach): Update.
12620 * corelow.c (class core_target) <pid_to_str>: Change return type.
12621 (core_target::pid_to_str): Change return type.
12622 * target.c (normal_pid_to_str): Change return type.
12623 (default_pid_to_str): Likewise.
12624 (target_pid_to_str): Change return type.
12625 (target_translate_tls_address): Update.
12626 (target_announce_detach): Update.
12627 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12628 return type.
12629 (bsd_uthread_target::pid_to_str): Change return type.
12630 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12631 type.
12632 (bsd_kvm_target::pid_to_str): Change return type.
12633 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12634 return type.
12635 (aix_thread_target::pid_to_str): Change return type.
12636 * target.h (struct target_ops) <pid_to_str>: Change return type.
12637 (target_pid_to_str, normal_pid_to_str): Likewise.
12638 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12639 type.
12640 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12641 type.
12642 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12643 return type.
12644 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12645 type.
12646 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12647 type.
12648 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12649 return type.
12650
12651 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12652
12653 * NEWS: Mention that the new default MI version is 3. Mention
12654 changes to the output of commands and events that deal with
12655 multi-location breakpoints.
12656 * breakpoint.c: Include "mi/mi-out.h".
12657 (print_one_breakpoint): Change output syntax if using MI version
12658 >= 3.
12659 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12660 New.
12661 (mi_multi_location_breakpoint_output_fixed): New.
12662 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12663 (mi_cmd_fix_multi_location_breakpoint_output): New.
12664 (mi_multi_location_breakpoint_output_fixed): New.
12665 * mi/mi-cmds.c (mi_cmds): Register command
12666 -fix-multi-location-breakpoint-output.
12667 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12668 interpreter "mi".
12669
12670 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12671
12672 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12673 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12674 instantiate mi_ui_out based on interpreter name.
12675 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12676 * mi/mi-main.c (mi_load_progress): Likewise.
12677
12678 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12679
12680 * NEWS: Combine separate "New targets" sections for 8.3.
12681
12682 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12683
12684 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12685 (ppcfbsd_init_abi): Install gdbarch
12686 "fetch_tls_load_module_address" and "get_thread_local_address"
12687 methods.
12688
12689 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12690
12691 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12692 (riscv_fbsd_init_abi): Install gdbarch
12693 "fetch_tls_load_module_address" and "get_thread_local_address"
12694 methods.
12695
12696 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12697
12698 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12699 (i386fbsd_init_abi): Install gdbarch
12700 "fetch_tls_load_module_address" and "get_thread_local_address"
12701 methods.
12702
12703 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12704
12705 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12706 (amd64fbsd_init_abi): Install gdbarch
12707 "fetch_tls_load_module_address" and "get_thread_local_address"
12708 methods.
12709
12710 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12711
12712 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12713 (struct fbsd_pspace_data): New type.
12714 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12715 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12716 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12717 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12718 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12719
12720 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12721
12722 * gdbtypes.c (lookup_struct_elt): New function.
12723 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12724 * gdbtypes.h (struct struct_elt): New type.
12725 (lookup_struct_elt): New prototype.
12726
12727 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12728
12729 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12730 remove disabled code block.
12731
12732 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12733
12734 * gdbarch.sh (get_thread_local_address): New method.
12735 * gdbarch.h, gdbarch.c: Regenerate.
12736 * target.c (target_translate_tls_address): Use
12737 gdbarch_get_thread_local_address if present instead of
12738 target::get_thread_local_address.
12739
12740 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12741
12742 * target.h (target::get_thread_local_address): Update comment.
12743
12744 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12745
12746 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12747 objfile->separate_debug_objfile_backlink if not NULL.
12748
12749 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12750
12751 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12752 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12753 (amd64bsd_store_inferior_registers): Likewise.
12754 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12755 Enable segment base registers.
12756 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12757 PT_GETFSBASE and PT_GETGSBASE.
12758 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12759 PT_SETGSBASE.
12760 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12761 segment base registers.
12762 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12763
12764 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12765
12766 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12767 Update calls to i386_target_description to add 'segments'
12768 parameter.
12769 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12770 add segment base registers.
12771 * arch/i386.c (i386_create_target_description): Add 'segments'
12772 parameter to enable segment base registers.
12773 * arch/i386.h (i386_create_target_description): Likewise.
12774 * features/i386/32bit-segments.xml: New file.
12775 * features/i386/32bit-segments.c: Generate.
12776 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12777 call to i386_target_description to add 'segments' parameter.
12778 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12779 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12780 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12781 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12782 if feature is present.
12783 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12784 Add 'segments' parameter to call to i386_target_description.
12785 (i386_target_description): Add 'segments' parameter to enable
12786 segment base registers.
12787 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12788 to call to i386_target_description.
12789 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12790 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12791 Define I386_NUM_REGS.
12792 (i386_target_description): Add 'segments' parameter to enable
12793 segment base registers.
12794
12795 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12796
12797 PR/24325
12798 * source-cache.c: #undef open and close, to avoid unresolved
12799 externals during linking.
12800
12801 2019-03-12 Tom Tromey <tromey@adacore.com>
12802
12803 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12804 const. Add initializers.
12805 (_initialize_remote): Don't initialize ptid globals.
12806
12807 2019-03-12 Pedro Alves <palves@redhat.com>
12808
12809 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12810
12811 2019-03-12 Pedro Alves <palves@redhat.com>
12812
12813 * cp-name-parser.y (main): Remove unused 'len' variable.
12814
12815 2019-03-12 Tom Tromey <tromey@adacore.com>
12816
12817 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12818 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12819
12820 2019-03-12 Tom Tromey <tromey@adacore.com>
12821
12822 * linux-nat.c (iterate_over_lwps): Update.
12823 (stop_callback): Remove parameter.
12824 (stop_wait_callback, detach_callback, resume_set_callback)
12825 (select_singlestep_lwp_callback, set_ignore_sigint)
12826 (status_callback, resumed_callback, resume_clear_callback)
12827 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12828 data parameter.
12829 (linux_nat_target::detach, linux_nat_target::resume)
12830 (linux_stop_and_wait_all_lwps, select_event_lwp)
12831 (linux_nat_filter_event, linux_nat_wait_1)
12832 (linux_nat_target::kill, linux_nat_target::stop)
12833 (linux_nat_target::stop): Update.
12834 (linux_nat_resume_callback): Change type.
12835 (resume_stopped_resumed_lwps, count_events_callback)
12836 (select_event_lwp_callback): Likewise.
12837 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12838 * arm-linux-nat.c (struct update_registers_data): Remove.
12839 (update_registers_callback): Change type.
12840 (arm_linux_insert_hw_breakpoint1): Update.
12841 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12842 parameter.
12843 (x86_linux_dr_set_addr): Update.
12844 (x86_linux_dr_set_control): Update.
12845 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12846 (iterate_over_lwps): Use gdb::function_view.
12847 * nat/aarch64-linux-hw-point.c (struct
12848 aarch64_dr_update_callback_param): Remove.
12849 (debug_reg_change_callback): Change type.
12850 (aarch64_notify_debug_reg_change): Update.
12851 * s390-linux-nat.c (s390_refresh_per_info): Update.
12852
12853 2019-03-11 Tom Tromey <tromey@adacore.com>
12854
12855 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12856 redundant assignment to "this_cu".
12857
12858 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12859
12860 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12861
12862 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12863
12864 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12865 from...
12866 (rank_one_type): ... this.
12867
12868 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12869
12870 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12871 from...
12872 (rank_one_type): ... this.
12873
12874 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12875
12876 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12877 from...
12878 (rank_one_type): ... this.
12879
12880 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12881
12882 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12883 from...
12884 (rank_one_type): ... this.
12885
12886 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12887
12888 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12889 from...
12890 (rank_one_type): ... this.
12891
12892 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12893
12894 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12895 from...
12896 (rank_one_type): ... this.
12897
12898 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12901 from...
12902 (rank_one_type): ... this.
12903
12904 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12905
12906 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12907 from...
12908 (rank_one_type): ... this.
12909
12910 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12911
12912 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12913 from...
12914 (rank_one_type): ... this.
12915
12916 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12917
12918 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12919 from...
12920 (rank_one_type): ... this.
12921
12922 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12923
12924 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12925 from...
12926 (rank_one_type): ... this.
12927
12928 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12929
12930 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12931 from...
12932 (rank_one_type): ... this.
12933
12934 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12935
12936 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12937 inferior-events' shows the example events.
12938
12939 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12940
12941 Support styling on native MS-Windows console
12942
12943 PR/24315
12944 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12945 on MS-Windows if $TERM is not defined.
12946
12947 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12948
12949 * posix-hdep.c (gdb_console_fputs):
12950 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12951 functions.
12952 * ui-file.h (gdb_console_fputs): Add prototype.
12953
12954 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12955 back to fputs only if the former returns zero.
12956
12957 2019-03-07 Tom Tromey <tom@tromey.com>
12958
12959 * symmisc.c (print_symbol_bcache_statistics): Update.
12960 (print_objfile_statistics): Update.
12961 * symfile.c (allocate_symtab): Update.
12962 * stabsread.c: Don't include bcache.h.
12963 * psymtab.h (struct psymbol_bcache): Don't declare.
12964 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12965 (psymbol_bcache_init, psymbol_bcache_free)
12966 (psymbol_bcache_get_bcache): Don't declare.
12967 * psymtab.c (struct psymbol_bcache): Remove.
12968 (psymtab_storage::psymtab_storage): Update.
12969 (psymtab_storage::~psymtab_storage): Update.
12970 (psymbol_bcache_init, psymbol_bcache_free)
12971 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12972 (add_psymbol_to_bcache): Update.
12973 (allocate_psymtab): Update.
12974 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12975 macro_cache>: No longer pointers.
12976 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12977 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12978 * macrotab.c (macro_bcache): Update.
12979 * macroexp.c: Don't include bcache.h.
12980 * gdbtypes.c (check_types_worklist): Update.
12981 (types_deeply_equal): Remove TRY/CATCH. Update.
12982 * elfread.c (elf_symtab_read): Update.
12983 * dwarf2read.c: Don't include bcache.h.
12984 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12985 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12986 (print_bcache_statistics, bcache_memory_used): Don't declare.
12987 (struct bcache): Move from bcache.c. Add constructor, destructor,
12988 methods. Rename all data members.
12989 * bcache.c (struct bcache): Move to bcache.h.
12990 (bcache::expand_hash_table): Rename from expand_hash_table.
12991 (bcache): Remove.
12992 (bcache::insert): Rename from bcache_full.
12993 (bcache::compare): Rename from bcache_compare.
12994 (bcache_xmalloc): Remove.
12995 (bcache::~bcache): Rename from bcache_xfree.
12996 (bcache::print_statistics): Rename from print_bcache_statistics.
12997 (bcache::memory_used): Rename from bcache_memory_used.
12998
12999 2019-03-07 Pedro Alves <palves@redhat.com>
13000
13001 * infrun.c (normal_stop): Also check for
13002 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13003
13004 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13005
13006 * f-lang.c (value_from_host_double): Moved to...
13007 * value.c (value_from_host_double): ...here.
13008 * value.h (value_from_host_double): Declare.
13009 * guile/scm-math.c (vlscm_convert_typed_number): Use
13010 value_from_host_double.
13011 (vlscm_convert_number): Likewise.
13012 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13013 * python/py-value.c (convert_value_from_python): Likewise.
13014
13015 2019-03-06 Tom Tromey <tom@tromey.com>
13016
13017 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13018
13019 2019-03-06 Tom Tromey <tom@tromey.com>
13020
13021 * utils.h (free_current_contents): Don't declare.
13022 * utils.c (free_current_contents): Remove.
13023
13024 2019-03-06 Tom Tromey <tom@tromey.com>
13025
13026 * top.c (quit_force): Update.
13027 * main.c (captured_command_loop): Update.
13028 * common/new-op.c (operator new): Update.
13029 * common/common-exceptions.c (struct catcher)
13030 <save_cleanup_chain>: Remove member.
13031 (exceptions_state_mc_init): Update.
13032 (exception_try_scope_entry): Return nullptr.
13033 (exception_try_scope_exit, exception_rethrow)
13034 (throw_exception_sjlj, throw_exception_cxx): Update.
13035 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13036 (all_cleanups, do_cleanups, discard_cleanups)
13037 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13038 (restore_cleanups, restore_final_cleanups): Don't declare.
13039 (do_final_cleanups): Remove parameter.
13040 * common/cleanups.c (cleanup_chain, make_cleanup)
13041 (make_cleanup_dtor, all_cleanups, do_cleanups)
13042 (discard_my_cleanups, discard_cleanups)
13043 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13044 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13045 (null_cleanup): Remove.
13046 (do_final_cleanups): Remove parameter.
13047
13048 2019-03-06 Tom Tromey <tom@tromey.com>
13049
13050 * remote.c (remote_target::remote_parse_stop_reply): Use
13051 unique_xmalloc_ptr.
13052
13053 2019-03-06 Tom Tromey <tom@tromey.com>
13054
13055 * stabsread.c (struct stabs_field_info): Rename from field_info.
13056 <list, fnlist>: Add initializers.
13057 <obstack>: New member.
13058 (read_member_functions, read_struct_fields, read_baseclasses):
13059 Allocate on obstack. Don't use cleanups.
13060 (read_one_struct_field, read_member_functions, read_struct_fields)
13061 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13062 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13063 (read_struct_type): Update.
13064
13065 2019-03-06 Tom Tromey <tom@tromey.com>
13066
13067 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13068 * common/filestuff.h (make_cleanup_close): Don't declare.
13069 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13070 Remove.
13071
13072 2019-03-06 Tom Tromey <tom@tromey.com>
13073
13074 * solib-aix.c: Use make_scope_exit.
13075
13076 2019-03-06 Tom Tromey <tom@tromey.com>
13077
13078 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13079 Use make_scope_exit.
13080
13081 2019-03-06 Tom Tromey <tom@tromey.com>
13082
13083 * solib-svr4.c (disable_probes_interface): Remove parameter.
13084 (svr4_handle_solib_event): Use make_scope_exit.
13085
13086 2019-03-06 Tom Tromey <tom@tromey.com>
13087
13088 * remote.c (struct stop_reply_deleter): Remove.
13089 (stop_reply_up): Update.
13090 (struct stop_reply): Derive from notif_event. Don't typedef.
13091 <regcache>: Now a std::vector.
13092 (stop_reply_xfree): Remove.
13093 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13094 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13095 (remote_target::discard_pending_stop_replies): Use delete.
13096 (remote_target::remote_parse_stop_reply): Update.
13097 (remote_target::process_stop_reply): Update.
13098 * remote-notif.h (struct notif_event): Add virtual destructor.
13099 Remove "dtr" member.
13100 (struct notif_client) <alloc_event>: Return a unique_ptr.
13101 (notif_event_xfree): Don't declare.
13102 (notif_event_up): New typedef.
13103 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13104 (notif_event_xfree, do_notif_event_xfree): Remove.
13105 (remote_notif_state_xfree): Update.
13106
13107 2019-03-06 Tom Tromey <tom@tromey.com>
13108
13109 * infrun.c (displaced_step_clear_cleanup): Now a
13110 forward_scope_exit type.
13111 (displaced_step_prepare_throw): Update.
13112 (displaced_step_fixup): Update.
13113
13114 2019-03-06 Tom Tromey <tom@tromey.com>
13115
13116 * inferior.h (class inferior): Update comment.
13117 * gdbthread.h (class thread_info): Update comment.
13118
13119 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13120 Tom Tromey <tom@tromey.com>
13121
13122 * stabsread.h (struct stab_section_list): Remove.
13123 (coffstab_build_psymtabs): Update.
13124 * dbxread.c (symbuf_sections): Now a std::vector.
13125 (sect_idx): New global.
13126 (fill_symbuf): Update.
13127 (coffstab_build_psymtabs): Change type of stabsects parameter.
13128 Update.
13129 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13130 std::vector.
13131 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13132 (coff_locate_sections): Update.
13133 (coff_symfile_read): Remove cleanups. Update.
13134 (init_stringtab): Add storage parameter.
13135 (free_stringtab, free_stringtab_cleanup): Remove.
13136 (init_lineno): Add storage parameter.
13137 (free_linetab, free_linetab_cleanup): Remove.
13138
13139 2019-03-06 Pedro Alves <palves@redhat.com>
13140
13141 * linux-fork.c (fork_info::clobber_regs): Delete.
13142 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13143 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13144 comment. Adjust.
13145 (scoped_switch_fork_info::scoped_switch_fork_info)
13146 (checkpoint_command, linux_fork_context): Adjust
13147 fork_save_infrun_state calls.
13148
13149 2019-03-06 Pedro Alves <palves@redhat.com>
13150
13151 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13152 (inf_has_multiple_threads): Return 'bool' and rewrite using
13153 inferior_info::threads().
13154
13155 2019-03-06 Pedro Alves <palves@redhat.com>
13156
13157 * linux-fork.c: Include <list>.
13158 (fork_list): Now a std::list instance.
13159 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13160 (forks_exist_p, find_last_fork): Adjust.
13161 (new_fork): Delete.
13162 (one_fork_p): New.
13163 (add_fork): Adjust.
13164 (free_fork): Delete, folded into fork_info::~fork_info().
13165 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13166 Adjust.
13167 (init_fork_list): Delete.
13168 (linux_fork_killall, linux_fork_mourn_inferior)
13169 (linux_fork_detach, info_checkpoints_command): Adjust.
13170 (_initialize_linux_fork): No longer call init_fork_list.
13171
13172 2019-03-06 Pedro Alves <palves@redhat.com>
13173
13174 * linux-fork.c (new_fork): New, split out of ...
13175 (add_fork): ... this. Return void. Move "first fork" special
13176 case from here, to ...
13177 (checkpoint_command): ... here.
13178 * linux-linux.h (add_fork): Return void.
13179
13180 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13181
13182 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13183
13184 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13185 Chris January <chris.january@arm.com>
13186 David Lecomber <david.lecomber@arm.com>
13187
13188 * f-exp.y: New token, UNOP_INTRINSIC.
13189 (exp): New pattern using UNOP_INTRINSIC token.
13190 (f77_keywords): Add 'abs' keyword.
13191 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13192 (value_from_host_double): New function.
13193 (evaluate_subexp_f): Support UNOP_ABS.
13194
13195 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13196
13197 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13198 types.
13199
13200 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13201
13202 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13203 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13204 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13205
13206 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13207
13208 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13209
13210 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13211 Chris January <chris.january@arm.com>
13212
13213 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13214 * f-exp.y: Define 'KIND' token.
13215 (exp): New pattern for KIND expressions.
13216 (ptype): Handle types with a kind extension.
13217 (direct_abs_decl): Extend to spot kind extensions.
13218 (f77_keywords): Add 'kind' to the list.
13219 (push_kind_type): New function.
13220 (convert_to_kind_type): New function.
13221 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13222 * parse.c (operator_length_standard): Likewise.
13223 * parser-defs.h (enum type_pieces): Add tp_kind.
13224 * std-operator.def: Add UNOP_KIND.
13225
13226 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * f-exp.y (f_parse): Set yydebug.
13229
13230 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * f-lang.c (evaluate_subexp_f): New function.
13233 (exp_descriptor_f): New global.
13234 (f_language_defn): Use exp_descriptor_f instead of
13235 exp_descriptor_standard.
13236
13237 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * f-exp.y (struct token): Add comments.
13240 (dot_ops): Remove uppercase versions and the end marker.
13241 (f77_keywords): Likewise.
13242 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13243 entries in the dot_ops array are case insensitive, and use
13244 strncasecmp to compare strings. Also some whitespace cleanup in
13245 this area. Similar for the f77_keywords array, except entries in
13246 this list might be case sensitive.
13247
13248 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13249
13250 * f-exp.y (struct f77_boolean_val): Add comments.
13251 (boolean_values): Remove uppercase versions, and end marker.
13252 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13253 and use strncasecmp to achieve case insensitivity. Additionally,
13254 perform whitespace cleanup around this code.
13255
13256 2019-03-06 Tom Tromey <tromey@adacore.com>
13257
13258 * remote-sim.c (gdbsim_target_open): Use result of
13259 gdb_argv::release.
13260
13261 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13262 Dirk Schubert <dirk.schubert@arm.com>
13263 Chris January <chris.january@arm.com>
13264
13265 * eval.c (evaluate_subexp_standard): Call Fortran argument
13266 wrapping logic.
13267 * f-lang.c (struct value): A value which can be passed into a
13268 Fortran function call.
13269 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13270 where appropriate.
13271 (struct type): Value ready for a Fortran function call.
13272 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13273 is needed.
13274 * f-lang.h (fortran_argument_convert): Declaration.
13275 (fortran_preserve_arg_pointer): Declaration.
13276 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13277
13278 2019-03-05 Tom Tromey <tromey@adacore.com>
13279
13280 * python/py-prettyprint.c (print_string_repr): Remove #if.
13281 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13282
13283 2019-03-05 Tom Tromey <tromey@adacore.com>
13284
13285 * target.c (the_dummy_target): Move later. Change type to
13286 "dummy_target".
13287 (initialize_targets): Don't initialize the_dummy_target.
13288
13289 2019-03-05 Tom Tromey <tromey@adacore.com>
13290
13291 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13292 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13293
13294 2019-03-05 Tom Tromey <tromey@adacore.com>
13295
13296 * windows-nat.c (windows_nat_target::attach)
13297 (windows_nat_target::detach): Don't call gdb_flush.
13298 * valprint.c (generic_val_print, val_print, val_print_string):
13299 Don't call gdb_flush.
13300 * utils.c (defaulted_query): Don't call gdb_flush.
13301 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13302 * target.c (target_announce_detach): Don't call gdb_flush.
13303 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13304 * remote.c (extended_remote_target::attach): Don't call
13305 gdb_flush.
13306 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13307 * printcmd.c (do_examine): Don't call gdb_flush.
13308 (info_display_command): Don't call gdb_flush.
13309 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13310 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13311 * memattr.c (info_mem_command): Don't call gdb_flush.
13312 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13313 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13314 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13315 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13316 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13317 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13318 (gnu_nat_target::detach): Don't call gdb_flush.
13319 * f-valprint.c (f_val_print): Don't call gdb_flush.
13320 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13321 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13322 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13323 gdb_flush.
13324 * c-valprint.c (c_val_print): Don't call gdb_flush.
13325 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13326
13327 2019-03-05 Tom Tromey <tromey@adacore.com>
13328
13329 * varobj.c (update_dynamic_varobj_children): Update.
13330 (install_default_visualizer): Use reset, not release.
13331 * value.c (set_internalvar): Update.
13332 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13333 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13334 ATTRIBUTE_UNUSED_RESULT.
13335
13336 2019-03-05 Tom Tromey <tromey@adacore.com>
13337
13338 * remote.c (class scoped_remote_fd) <release>: Add
13339 ATTRIBUTE_UNUSED_RESULT.
13340
13341 2019-03-05 Tom Tromey <tromey@adacore.com>
13342
13343 * macroexp.c (struct macro_buffer) <release>: Add
13344 ATTRIBUTE_UNUSED_RESULT.
13345
13346 2019-03-05 Tom Tromey <tromey@adacore.com>
13347
13348 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13349 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13350 ATTRIBUTE_UNUSED_RESULT.
13351
13352 2019-03-05 Tom Tromey <tromey@adacore.com>
13353
13354 * common/scoped_fd.h (class scoped_fd) <release>: Add
13355 ATTRIBUTE_UNUSED_RESULT.
13356
13357 2019-03-05 Tom Tromey <tromey@adacore.com>
13358
13359 * parser-defs.h (struct parser_state) <release>: Add
13360 ATTRIBUTE_UNUSED_RESULT.
13361
13362 2019-03-05 Tom Tromey <tromey@adacore.com>
13363
13364 * utils.h (class gdb_argv) <release>: Add
13365 ATTRIBUTE_UNUSED_RESULT.
13366 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13367
13368 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13369
13370 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13371 for-loop range, to avoid compiler warnings.
13372
13373 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13374 avoid compiler warnings about unused variables.
13375
13376 * NEWS: Mention end of support for native debugging on MS-Windows
13377 before XP.
13378
13379 PR gdb/24292
13380 * common/netstuff.c:
13381 * gdbserver/gdbreplay.c
13382 * gdbserver/remote-utils.c:
13383 * ser-tcp.c:
13384 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13385 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13386 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13387 'getaddrinfo' and 'freeaddrinfo' were not available before
13388 Windows XP, and mingw.org's MinGW headers by default define
13389 _WIN32_WINNT to 0x500.
13390
13391 2019-03-01 Gary Benson <gbenson@redhat.com>
13392
13393 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13394
13395 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13396 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13397
13398 PR gdb/8527
13399 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13400 set_sigint_trap, clear_sigint_trap.
13401
13402 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13403
13404 * target.c (target_detach): Clear the regcache and the
13405 frame cache.
13406
13407 2019-02-27 Pedro Alves <palves@redhat.com>
13408
13409 * utils.c (set_screen_size): When we cap the height/width sizes,
13410 tweak the corresponding command variable to show "unlimited":
13411
13412 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13413 Pedro Alves <palves@redhat.com>
13414
13415 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13416 before calling rl_set_screen_size.
13417
13418 2019-02-27 Tom Tromey <tromey@adacore.com>
13419
13420 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13421 define.
13422 * python/py-value.c: Remove Python 2.4 workaround.
13423 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13424 workaround.
13425 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13426 Python 2.4 workaround.
13427 * python/python-internal.h: Remove Python 2.4 comment.
13428 (Py_ssize_t): Don't define.
13429 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13430 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13431 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13432 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13433 * python/python.c (do_start_initialization): Remove Python 2.4
13434 workaround.
13435 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13436 (print_children): Remove Python 2.4 workaround.
13437 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13438 workaround.
13439 (CHARBUFFERPROC_NAME): Remove.
13440 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13441 Python 2.4 workaround.
13442
13443 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13444
13445 * NEWS: Note minimum Python version.
13446
13447 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13448
13449 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13450 code from these functions. Remove corresponding ifdefs. Use
13451 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13452 Remove gotos and target of gotos.
13453 (infpy_search_memory): Likewise.
13454
13455 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13456
13457 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13458 (hppa_gdbarch_init): Don't register deleted functions with
13459 gdbarch.
13460
13461 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13462
13463 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13464 (h8300_unwind_sp): Delete.
13465 (h8300_dummy_id): Delete.
13466 (h8300_gdbarch_init): Don't register deleted functions with
13467 gdbarch.
13468
13469 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13470
13471 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13472 (ft32_unwind_pc): Delete.
13473 (ft32_unwind_sp): Delete.
13474 (ft32_gdbarch_init): Don't register deleted functions with
13475 gdbarch.
13476
13477 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13478
13479 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13480 (frv_unwind_pc): Delete.
13481 (frv_unwind_sp): Delete.
13482 (frv_gdbarch_init): Don't register deleted functions with
13483 gdbarch.
13484
13485 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13488 (riscv_unwind_pc): Delete.
13489 (riscv_unwind_sp): Delete.
13490 (riscv_gdbarch_init): Don't register deleted functions with
13491 gdbarch.
13492
13493 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13494
13495 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13496 (csky_unwind_pc): Delete.
13497 (csky_unwind_sp): Delete.
13498 (csky_gdbarch_init): Don't register deleted functions with
13499 gdbarch.
13500
13501 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13502
13503 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13504 (cris_unwind_pc): Delete.
13505 (cris_unwind_sp): Delete.
13506 (cris_gdbarch_init): Don't register deleted functions with
13507 gdbarch.
13508
13509 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13510
13511 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13512 (bfin_unwind_pc): Delete.
13513 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13514
13515 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13516
13517 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13518 (arm_unwind_pc): Delete.
13519 (arm_unwind_sp): Delete.
13520 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13521
13522 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13523
13524 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13525 (arc_unwind_pc): Delete.
13526 (arc_unwind_sp): Delete.
13527 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13528
13529 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13530
13531 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13532 (alpha_unwind_pc): Delete.
13533 (alpha_gdbarch_init): Don't register deleted functions with
13534 gdbarch.
13535
13536 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13537
13538 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13539 (aarch64_unwind_pc): Delete.
13540 (aarch64_unwind_sp): Delete.
13541 (aarch64_gdbarch_init): Don't register deleted functions with
13542 gdbarch.
13543
13544 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13545
13546 * gdbtypes.c (type_align): Don't consider static members when
13547 computing structure alignment.
13548
13549 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13550
13551 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13552 return 0 for other types.
13553 * arch-utils.c (default_type_align): Always return 0.
13554 * gdbarch.h: Regenerate.
13555 * gdbarch.sh (type_align): Extend comment.
13556 * gdbtypes.c (type_align): Add additional comments, always call
13557 gdbarch_type_align before applying the default rules.
13558 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13559 generic code will then apply a suitable default.
13560 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13561 types, return 0 for other types.
13562
13563 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13564
13565 * NEWS: Create a new section for the next release branch.
13566 Rename the section of the current branch, now that it has
13567 been cut.
13568
13569 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13570
13571 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13572 * version.in: Bump version to 8.3.50.DATE-git.
13573
13574 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13575
13576 * aix-thread.c (ptid_cmp): Remove unused variable.
13577 (get_signaled_thread): Likewise.
13578 (store_regs_user_thread): Likewise.
13579 (store_regs_kernel_thread): Likewise.
13580 (fetch_regs_kernel_thread): Remove shadowed variable.
13581
13582 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13583
13584 * features/riscv/32bit-cpu.xml: Add register numbers.
13585 * features/riscv/32bit-fpu.c: Regenerate.
13586 * features/riscv/32bit-fpu.xml: Add register numbers.
13587 * features/riscv/64bit-cpu.xml: Add register numbers.
13588 * features/riscv/64bit-fpu.c: Regenerate.
13589 * features/riscv/64bit-fpu.xml: Add register numbers.
13590
13591 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13592
13593 * NEWS: Mention two argument form of gdb.Value constructor.
13594 * python/py-value.c (convert_buffer_and_type_to_value): New
13595 function.
13596 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13597 Add support for handling an optional second argument. Call
13598 convert_buffer_and_type_to_value as appropriate.
13599 * python/python-internal.h (Py_buffer_deleter): New struct.
13600 (Py_buffer_up): New typedef.
13601
13602 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13603
13604 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13605 instead of releasing ownership.
13606
13607 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13608
13609 * dwarf2read.c (open_and_init_dwp_file): Call
13610 elf_numsections instead of bfd_count_sections to initialize
13611 dwp_file->num_sections.
13612
13613 2019-02-25 Tom Tromey <tromey@adacore.com>
13614
13615 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13616
13617 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13618
13619 * gcore.in: Add '--readnever' option when invoking GDB.
13620
13621 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13622
13623 * MAINTAINERS: Update my email address.
13624
13625 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13626
13627 * build-id.c (build_id_to_debug_bfd_1): New function.
13628 (build_id_to_debug_bfd): Look for separate debug file in
13629 sysroot.
13630
13631 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13632
13633 * gdbarch.sh: Update the copyright year range that is placed into
13634 generated files.
13635
13636 2019-02-22 Keith Seitz <keiths@redhat.com>
13637
13638 PR symtab/23853
13639 * linespec.c (create_sals_line_offset): Search for the default
13640 symtab's filename instead of its fullname.
13641
13642 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13643
13644 * NEWS: Update style defaults.
13645
13646 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13647
13648 * main.c (captured_main_1): Disable styling in batch mode.
13649
13650 2019-02-20 Tom Tromey <tom@tromey.com>
13651
13652 * symtab.c (symtab_symbol_info): Fix typos.
13653
13654 2019-02-20 Tom Tromey <tromey@adacore.com>
13655
13656 * findcmd.c (_initialize_mem_search): Use upper case for
13657 metasyntactic variables.
13658
13659 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13660
13661 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13662 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13663
13664 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13665
13666 * top.h (source_file_name): Change to std::string.
13667 * top.c (source_file_name): Likewise.
13668 (command_line_input): Adjust.
13669 * cli/cli-script.c (script_from_file): Adjust.
13670
13671 2019-02-19 Tom Tromey <tromey@adacore.com>
13672
13673 * ravenscar-thread.c
13674 (ravenscar_thread_target::update_thread_list): Don't call
13675 ada_build_task_list.
13676 * ada-lang.h (ada_build_task_list): Don't declare.
13677 * ada-tasks.c (struct ada_tasks_inferior_data)
13678 <task_list_valid_p>: Now bool.
13679 (read_known_tasks, ada_task_list_changed)
13680 (ada_tasks_invalidate_inferior_data): Update.
13681 (read_known_tasks_array): Return bool.
13682 (read_known_tasks_list): Likewise.
13683 (read_known_tasks): Return void.
13684 (ada_build_task_list): Now static.
13685
13686 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13687
13688 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13689 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13690
13691 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13692
13693 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13694 variant for ada_tasks_pspace_data_handle and
13695 ada_tasks_inferior_data_handle.
13696 (ada_tasks_pspace_data_cleanup): New function.
13697 (ada_tasks_inferior_data_cleanup): New function.
13698
13699 2019-02-17 Tom Tromey <tom@tromey.com>
13700
13701 * macrotab.h (macro_source_fullname): Return a std::string.
13702 * macrotab.c (macro_include, check_for_redefinition)
13703 (macro_undef, macro_lookup_definition, foreach_macro)
13704 (foreach_macro_in_scope): Update.
13705 (macro_source_fullname): Return a std::string.
13706 * macrocmd.c (show_pp_source_pos): Update.
13707
13708 2019-02-17 Tom Tromey <tom@tromey.com>
13709
13710 * macrocmd.c (show_pp_source_pos): Style the file names.
13711
13712 2019-02-17 Tom Tromey <tom@tromey.com>
13713
13714 PR tui/24197:
13715 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13716
13717 2019-02-17 Tom Tromey <tom@tromey.com>
13718
13719 * ada-lang.c (user_select_syms): Use filtered printing.
13720 * utils.c (wrap_style): New global.
13721 (desired_style): Remove.
13722 (emit_style_escape): Add stream parameter.
13723 (set_output_style, reset_terminal_style, prompt_for_continue):
13724 Update.
13725 (flush_wrap_buffer): Only flush gdb_stdout.
13726 (wrap_here): Set wrap_style.
13727 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13728 treat escape sequences as a character. Change when wrap buffer is
13729 flushed.
13730 (fputs_styled): Do not set the output style when the default is
13731 requested.
13732 * ui-style.h (struct ui_file_style) <is_default>: New method.
13733 * source.c (print_source_lines_base): Emit escape sequences in one
13734 piece.
13735
13736 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13737
13738 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13739 integers and enumeration types.
13740
13741 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13742
13743 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13744 instead of lookup_symbol_in_language
13745 (do_exact_match): New function.
13746 (ada_get_symbol_name_matcher): Return do_exact_match when
13747 doing a verbatim match.
13748
13749 2019-02-15 Tom Tromey <tromey@adacore.com>
13750
13751 * ravenscar-thread.c (ravenscar_thread_target::resume)
13752 (ravenscar_thread_target::wait): Special case wildcard requests.
13753
13754 2019-02-15 Tom Tromey <tromey@adacore.com>
13755
13756 * ravenscar-thread.c (base_ptid): Remove.
13757 (struct ravenscar_thread_target) <close>: New method.
13758 <m_base_ptid>: New member.
13759 <update_inferior_ptid, active_task, task_is_currently_active,
13760 runtime_initialized>: Declare methods.
13761 <ravenscar_thread_target>: Add constructor.
13762 (ravenscar_thread_target::task_is_currently_active)
13763 (ravenscar_thread_target::update_inferior_ptid)
13764 (ravenscar_runtime_initialized): Rename. Now methods.
13765 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13766 (ravenscar_thread_target::update_thread_list): Update.
13767 (ravenscar_thread_target::active_task): Now method.
13768 (ravenscar_thread_target::store_registers)
13769 (ravenscar_thread_target::prepare_to_store)
13770 (ravenscar_thread_target::prepare_to_store)
13771 (ravenscar_thread_target::mourn_inferior): Update.
13772 (ravenscar_inferior_created): Use "new" to create target.
13773 (ravenscar_thread_target::get_ada_task_ptid): Update.
13774 (_initialize_ravenscar): Don't initialize base_ptid.
13775 (ravenscar_ops): Remove global.
13776
13777 2019-02-15 Tom Tromey <tromey@adacore.com>
13778
13779 * target.h (push_target): Declare new overload.
13780 * target.c (push_target): New overload, taking an rvalue reference.
13781 * remote.c (remote_target::open_1): Use push_target overload.
13782 * corelow.c (core_target_open): Use push_target overload.
13783
13784 2019-02-15 Tom Tromey <tromey@adacore.com>
13785
13786 * ravenscar-thread.c (is_ravenscar_task)
13787 (ravenscar_task_is_currently_active): Return bool.
13788 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13789 (_initialize_ravenscar): Remove "(void)".
13790 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13791 Return bool.
13792
13793 2019-02-15 Tom Tromey <tromey@adacore.com>
13794
13795 * ravenscar-thread.c (ravenscar_runtime_initializer)
13796 (has_ravenscar_runtime, get_running_thread_id)
13797 (ravenscar_thread_target::resume): Fix indentation.
13798
13799 2019-02-15 Tom Tromey <tromey@adacore.com>
13800
13801 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13802 from ravenscar_arch_ops.
13803 (sparc_ravenscar_ops::fetch_registers)
13804 (sparc_ravenscar_ops::store_registers): Now methods.
13805 (sparc_ravenscar_prepare_to_store): Remove.
13806 (sparc_ravenscar_ops): Redefine.
13807 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13808 methods and destructor. Remove members.
13809 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13810 (ravenscar_thread_target::store_registers)
13811 (ravenscar_thread_target::prepare_to_store): Update.
13812 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13813 Remove.
13814 (struct ppc_ravenscar_powerpc_ops): Derive from
13815 ravenscar_arch_ops.
13816 (ppc_ravenscar_powerpc_ops::fetch_registers)
13817 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13818 (ppc_ravenscar_powerpc_ops): Redefine.
13819 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13820 (ppc_ravenscar_e500_ops::fetch_registers)
13821 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13822 (ppc_ravenscar_e500_ops): Redefine.
13823 * aarch64-ravenscar-thread.c
13824 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13825 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13826 (aarch64_ravenscar_fetch_registers)
13827 (aarch64_ravenscar_store_registers): Now methods.
13828 (aarch64_ravenscar_ops): Redefine.
13829
13830 2019-02-15 Tom Tromey <tromey@adacore.com>
13831
13832 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13833 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13834 (ravenscar_thread_target::stopped_by_watchpoint)
13835 (ravenscar_thread_target::stopped_data_address)
13836 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13837
13838 2019-02-15 Tom Tromey <tromey@adacore.com>
13839
13840 * ravenscar-thread.c: Fix some typos.
13841
13842 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13843 Tom Tromey <tromey@adacore.com>
13844
13845 * ada-lang.c (ada_exception_sal): Change addr_string to a
13846 std::string.
13847 (create_ada_exception_catchpoint): Update.
13848
13849 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13850 Tom Tromey <tromey@adacore.com>
13851
13852 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13853 (bp_location_ops): Remove.
13854 (base_breakpoint_allocate_location): Update.
13855 (free_bp_location): Update.
13856 * ada-lang.c (class ada_catchpoint_location)
13857 <ada_catchpoint_location>: Remove ops parameter.
13858 (ada_catchpoint_location_dtor): Remove.
13859 (ada_catchpoint_location_ops): Remove.
13860 (allocate_location_exception): Update.
13861 * breakpoint.h (struct bp_location_ops): Remove.
13862 (class bp_location) <bp_location>: Remove bp_location_ops
13863 parameter.
13864 <~bp_location>: Add destructor.
13865 <ops>: Remove.
13866
13867 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13868 Pedro Alves <palves@redhat.com>
13869
13870 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13871 'PATH_MAX'.
13872
13873 2019-02-14 David Michael <fedora.dm0@gmail.com>
13874 Samuel Thibault <samuel.thibault@gnu.org>
13875 Thomas Schwinge <thomas@codesourcery.com>
13876
13877 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13878 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13879
13880 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13881
13882 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13883 (check_empty): Use "const char *".
13884
13885 * gnu-nat.c (gnu_nat_target::detach): Instead of
13886 'detach_inferior (pid)' call
13887 'detach_inferior (find_inferior_pid (pid))'.
13888
13889 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13890 'nat/fork-inferior.o'.
13891 * gnu-nat.c: #include "nat/fork-inferior.h".
13892
13893 * gnu-nat.c (gnu_nat_target::detach): Instead of
13894 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13895 * gnu-nat.h: #include "inf-child.h".
13896 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13897 'i386_gnu_nat_target::fetch_registers'.
13898 (gnu_store_registers): Rename/move to
13899 'i386_gnu_nat_target::store_registers'.
13900
13901 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13902 * gnu-nat.h (mach_thread_info): New function.
13903 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13904
13905 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13906
13907 2019-02-14 Frederic Konrad <konrad@adacore.com>
13908
13909 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13910
13911 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13912
13913 * windows-nat.c (windows_add_thread): Add new parameter
13914 "main_thread_p" with default value set to false. Update
13915 function documentation as well as all callers.
13916 (windows_delete_thread): Likewise.
13917 (fake_create_process): Update call to windows_add_thread.
13918 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13919 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13920 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13921 call to windows_delete_thread.
13922
13923 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13924
13925 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13926
13927 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13928
13929 * symfile.c (find_separate_debug_file): Use canonical path of
13930 sysroot with child_path instead of gdb_sysroot if it is valid.
13931
13932 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13933
13934 * symfile.c (find_separate_debug_file): Use child_path to
13935 determine if an object file is under a sysroot.
13936
13937 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13938
13939 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13940 unittests/child-path-selftests.c.
13941 * common/pathstuff.c (child_path): New function.
13942 * common/pathstuff.h (child_path): New prototype.
13943 * unittests/child-path-selftests.c: New file.
13944
13945 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13946
13947 * symfile.c (find_separate_debug_file): Look for separate debug
13948 files in debug directories under the sysroot.
13949
13950 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13951
13952 * symtab.h (struct minimal_symbol data_p): New const method.
13953 (struct minimal_symbol text_p): Likewise.
13954 * symtab.c (output_source_filename): Use file name style
13955 to print file name.
13956 (print_symbol_info): Likewise.
13957 (print_msymbol_info): Use address style to print addresses.
13958 Use function name style to print executable text symbols.
13959 (expand_symtab_containing_pc): Use data_p.
13960 (find_pc_sect_compunit_symtab): Likewise.
13961
13962 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13963
13964 * breakpoint.c (describe_other_breakpoints): Use address style
13965 to print addresses.
13966 (say_where): Likewise.
13967
13968 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13969
13970 * ada-typeprint.c (print_func_type): Print function name
13971 style to print function name.
13972 * c-typeprint.c (c_print_type_1): Likewise.
13973
13974 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13975
13976 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13977 for execve.
13978
13979 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13980
13981 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13982 type_stack.
13983
13984 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13985
13986 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13987 TYPE_CODE_REF types.
13988
13989 2019-02-08 Jim Wilson <jimw@sifive.com>
13990
13991 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13992 (riscv_linux_fregset): New.
13993 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13994
13995 2019-02-07 Tom Tromey <tom@tromey.com>
13996
13997 * thread.c (thread_cancel_execution_command): Update.
13998 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13999 methods.
14000 (struct thread_fsm_ops): Remove.
14001 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14002 (thread_fsm_should_stop, thread_fsm_return_value)
14003 (thread_fsm_set_finished, thread_fsm_finished_p)
14004 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14005 Don't declare.
14006 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14007 * infrun.c (clear_proceed_status_thread)
14008 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14009 (print_stop_event): Update.
14010 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14011 Add constructor.
14012 (step_command_fsm_ops): Remove.
14013 (new_step_command_fsm): Remove.
14014 (step_1): Update.
14015 (step_command_fsm::should_stop): Rename from
14016 step_command_fsm_should_stop.
14017 (step_command_fsm::clean_up): Rename from
14018 step_command_fsm_clean_up.
14019 (step_command_fsm::do_async_reply_reason): Rename from
14020 step_command_fsm_async_reply_reason.
14021 (struct until_next_fsm): Inherit from thread_fsm. Add
14022 constructor.
14023 (until_next_fsm_ops): Remove.
14024 (new_until_next_fsm): Remove.
14025 (until_next_fsm::should_stop): Rename from
14026 until_next_fsm_should_stop.
14027 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14028 (until_next_fsm::do_async_reply_reason): Rename from
14029 until_next_fsm_async_reply_reason.
14030 (struct finish_command_fsm): Inherit from thread_fsm. Add
14031 constructor. Change type of breakpoint.
14032 (finish_command_fsm_ops): Remove.
14033 (new_finish_command_fsm): Remove.
14034 (finish_command_fsm::should_stop): Rename from
14035 finish_command_fsm_should_stop.
14036 (finish_command_fsm::clean_up): Rename from
14037 finish_command_fsm_clean_up.
14038 (finish_command_fsm::return_value): Rename from
14039 finish_command_fsm_return_value.
14040 (finish_command_fsm::do_async_reply_reason): Rename from
14041 finish_command_fsm_async_reply_reason.
14042 (finish_command): Update.
14043 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14044 Add constructor.
14045 (call_thread_fsm_ops): Remove.
14046 (call_thread_fsm::call_thread_fsm): Rename from
14047 new_call_thread_fsm.
14048 (call_thread_fsm::should_stop): Rename from
14049 call_thread_fsm_should_stop.
14050 (call_thread_fsm::should_notify_stop): Rename from
14051 call_thread_fsm_should_notify_stop.
14052 (run_inferior_call, call_function_by_hand_dummy): Update.
14053 * cli/cli-interp.c (should_print_stop_to_console): Update.
14054 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14055 Add constructor. Change type of location_breakpoint,
14056 caller_breakpoint.
14057 (until_break_fsm_ops): Remove.
14058 (new_until_break_fsm): Remove.
14059 (until_break_fsm::should_stop): Rename from
14060 until_break_fsm_should_stop.
14061 (until_break_fsm::clean_up): Rename from
14062 until_break_fsm_clean_up.
14063 (until_break_fsm::do_async_reply_reason): Rename from
14064 until_break_fsm_async_reply_reason.
14065 (until_break_command): Update.
14066 * thread-fsm.c: Remove.
14067 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14068
14069 2019-02-07 Tom Tromey <tom@tromey.com>
14070
14071 * yy-remap.h: Add include guard.
14072 * xtensa-tdep.h: Add include guard.
14073 * xcoffread.h: Rename include guard.
14074 * varobj-iter.h: Add include guard.
14075 * tui/tui.h: Rename include guard.
14076 * tui/tui-winsource.h: Rename include guard.
14077 * tui/tui-wingeneral.h: Rename include guard.
14078 * tui/tui-windata.h: Rename include guard.
14079 * tui/tui-win.h: Rename include guard.
14080 * tui/tui-stack.h: Rename include guard.
14081 * tui/tui-source.h: Rename include guard.
14082 * tui/tui-regs.h: Rename include guard.
14083 * tui/tui-out.h: Rename include guard.
14084 * tui/tui-layout.h: Rename include guard.
14085 * tui/tui-io.h: Rename include guard.
14086 * tui/tui-hooks.h: Rename include guard.
14087 * tui/tui-file.h: Rename include guard.
14088 * tui/tui-disasm.h: Rename include guard.
14089 * tui/tui-data.h: Rename include guard.
14090 * tui/tui-command.h: Rename include guard.
14091 * tic6x-tdep.h: Add include guard.
14092 * target/waitstatus.h: Rename include guard.
14093 * target/wait.h: Rename include guard.
14094 * target/target.h: Rename include guard.
14095 * target/resume.h: Rename include guard.
14096 * target-float.h: Rename include guard.
14097 * stabsread.h: Add include guard.
14098 * rs6000-tdep.h: Add include guard.
14099 * riscv-fbsd-tdep.h: Add include guard.
14100 * regformats/regdef.h: Rename include guard.
14101 * record.h: Rename include guard.
14102 * python/python.h: Rename include guard.
14103 * python/python-internal.h: Rename include guard.
14104 * python/py-stopevent.h: Rename include guard.
14105 * python/py-ref.h: Rename include guard.
14106 * python/py-record.h: Rename include guard.
14107 * python/py-record-full.h: Rename include guard.
14108 * python/py-record-btrace.h: Rename include guard.
14109 * python/py-instruction.h: Rename include guard.
14110 * python/py-events.h: Rename include guard.
14111 * python/py-event.h: Rename include guard.
14112 * procfs.h: Add include guard.
14113 * proc-utils.h: Add include guard.
14114 * p-lang.h: Add include guard.
14115 * or1k-tdep.h: Rename include guard.
14116 * observable.h: Rename include guard.
14117 * nto-tdep.h: Rename include guard.
14118 * nat/x86-linux.h: Rename include guard.
14119 * nat/x86-linux-dregs.h: Rename include guard.
14120 * nat/x86-gcc-cpuid.h: Add include guard.
14121 * nat/x86-dregs.h: Rename include guard.
14122 * nat/x86-cpuid.h: Rename include guard.
14123 * nat/ppc-linux.h: Rename include guard.
14124 * nat/mips-linux-watch.h: Rename include guard.
14125 * nat/linux-waitpid.h: Rename include guard.
14126 * nat/linux-ptrace.h: Rename include guard.
14127 * nat/linux-procfs.h: Rename include guard.
14128 * nat/linux-osdata.h: Rename include guard.
14129 * nat/linux-nat.h: Rename include guard.
14130 * nat/linux-namespaces.h: Rename include guard.
14131 * nat/linux-btrace.h: Rename include guard.
14132 * nat/glibc_thread_db.h: Rename include guard.
14133 * nat/gdb_thread_db.h: Rename include guard.
14134 * nat/gdb_ptrace.h: Rename include guard.
14135 * nat/fork-inferior.h: Rename include guard.
14136 * nat/amd64-linux-siginfo.h: Rename include guard.
14137 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14138 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14139 * nat/aarch64-linux.h: Rename include guard.
14140 * nat/aarch64-linux-hw-point.h: Rename include guard.
14141 * mn10300-tdep.h: Add include guard.
14142 * mips-linux-tdep.h: Add include guard.
14143 * mi/mi-parse.h: Rename include guard.
14144 * mi/mi-out.h: Rename include guard.
14145 * mi/mi-main.h: Rename include guard.
14146 * mi/mi-interp.h: Rename include guard.
14147 * mi/mi-getopt.h: Rename include guard.
14148 * mi/mi-console.h: Rename include guard.
14149 * mi/mi-common.h: Rename include guard.
14150 * mi/mi-cmds.h: Rename include guard.
14151 * mi/mi-cmd-break.h: Rename include guard.
14152 * m2-lang.h: Add include guard.
14153 * location.h: Rename include guard.
14154 * linux-record.h: Rename include guard.
14155 * linux-nat.h: Add include guard.
14156 * linux-fork.h: Add include guard.
14157 * i386-darwin-tdep.h: Rename include guard.
14158 * hppa-linux-offsets.h: Add include guard.
14159 * guile/guile.h: Rename include guard.
14160 * guile/guile-internal.h: Rename include guard.
14161 * gnu-nat.h: Rename include guard.
14162 * gdb-stabs.h: Rename include guard.
14163 * frv-tdep.h: Add include guard.
14164 * f-lang.h: Add include guard.
14165 * event-loop.h: Add include guard.
14166 * darwin-nat.h: Rename include guard.
14167 * cp-abi.h: Rename include guard.
14168 * config/sparc/nm-sol2.h: Rename include guard.
14169 * config/nm-nto.h: Rename include guard.
14170 * config/nm-linux.h: Add include guard.
14171 * config/i386/nm-i386gnu.h: Rename include guard.
14172 * config/djgpp/nl_types.h: Rename include guard.
14173 * config/djgpp/langinfo.h: Rename include guard.
14174 * compile/gcc-cp-plugin.h: Add include guard.
14175 * compile/gcc-c-plugin.h: Add include guard.
14176 * compile/compile.h: Rename include guard.
14177 * compile/compile-object-run.h: Rename include guard.
14178 * compile/compile-object-load.h: Rename include guard.
14179 * compile/compile-internal.h: Rename include guard.
14180 * compile/compile-cplus.h: Rename include guard.
14181 * compile/compile-c.h: Rename include guard.
14182 * common/xml-utils.h: Rename include guard.
14183 * common/x86-xstate.h: Rename include guard.
14184 * common/version.h: Rename include guard.
14185 * common/vec.h: Rename include guard.
14186 * common/tdesc.h: Rename include guard.
14187 * common/selftest.h: Rename include guard.
14188 * common/scoped_restore.h: Rename include guard.
14189 * common/scoped_mmap.h: Rename include guard.
14190 * common/scoped_fd.h: Rename include guard.
14191 * common/safe-iterator.h: Rename include guard.
14192 * common/run-time-clock.h: Rename include guard.
14193 * common/refcounted-object.h: Rename include guard.
14194 * common/queue.h: Rename include guard.
14195 * common/ptid.h: Rename include guard.
14196 * common/print-utils.h: Rename include guard.
14197 * common/preprocessor.h: Rename include guard.
14198 * common/pathstuff.h: Rename include guard.
14199 * common/observable.h: Rename include guard.
14200 * common/netstuff.h: Rename include guard.
14201 * common/job-control.h: Rename include guard.
14202 * common/host-defs.h: Rename include guard.
14203 * common/gdb_wait.h: Rename include guard.
14204 * common/gdb_vecs.h: Rename include guard.
14205 * common/gdb_unlinker.h: Rename include guard.
14206 * common/gdb_unique_ptr.h: Rename include guard.
14207 * common/gdb_tilde_expand.h: Rename include guard.
14208 * common/gdb_sys_time.h: Rename include guard.
14209 * common/gdb_string_view.h: Rename include guard.
14210 * common/gdb_splay_tree.h: Rename include guard.
14211 * common/gdb_setjmp.h: Rename include guard.
14212 * common/gdb_ref_ptr.h: Rename include guard.
14213 * common/gdb_optional.h: Rename include guard.
14214 * common/gdb_locale.h: Rename include guard.
14215 * common/gdb_assert.h: Rename include guard.
14216 * common/filtered-iterator.h: Rename include guard.
14217 * common/filestuff.h: Rename include guard.
14218 * common/fileio.h: Rename include guard.
14219 * common/environ.h: Rename include guard.
14220 * common/common-utils.h: Rename include guard.
14221 * common/common-types.h: Rename include guard.
14222 * common/common-regcache.h: Rename include guard.
14223 * common/common-inferior.h: Rename include guard.
14224 * common/common-gdbthread.h: Rename include guard.
14225 * common/common-exceptions.h: Rename include guard.
14226 * common/common-defs.h: Rename include guard.
14227 * common/common-debug.h: Rename include guard.
14228 * common/cleanups.h: Rename include guard.
14229 * common/buffer.h: Rename include guard.
14230 * common/btrace-common.h: Rename include guard.
14231 * common/break-common.h: Rename include guard.
14232 * cli/cli-utils.h: Rename include guard.
14233 * cli/cli-style.h: Rename include guard.
14234 * cli/cli-setshow.h: Rename include guard.
14235 * cli/cli-script.h: Rename include guard.
14236 * cli/cli-interp.h: Rename include guard.
14237 * cli/cli-decode.h: Rename include guard.
14238 * cli/cli-cmds.h: Rename include guard.
14239 * charset-list.h: Add include guard.
14240 * buildsym-legacy.h: Rename include guard.
14241 * bfin-tdep.h: Add include guard.
14242 * ax.h: Rename include guard.
14243 * arm-linux-tdep.h: Add include guard.
14244 * arm-fbsd-tdep.h: Add include guard.
14245 * arch/xtensa.h: Rename include guard.
14246 * arch/tic6x.h: Add include guard.
14247 * arch/i386.h: Add include guard.
14248 * arch/arm.h: Rename include guard.
14249 * arch/arm-linux.h: Rename include guard.
14250 * arch/arm-get-next-pcs.h: Rename include guard.
14251 * arch/amd64.h: Add include guard.
14252 * arch/aarch64-insn.h: Rename include guard.
14253 * arch-utils.h: Rename include guard.
14254 * annotate.h: Add include guard.
14255 * amd64-darwin-tdep.h: Rename include guard.
14256 * aarch64-linux-tdep.h: Add include guard.
14257 * aarch64-fbsd-tdep.h: Add include guard.
14258 * aarch32-linux-nat.h: Add include guard.
14259
14260 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14261
14262 * macrotab.c (macro_define_internal): New function that
14263 factorizes macro_define_object_internal and macro_define_function
14264 code.
14265 (macro_define_object_internal): Use macro_define_internal.
14266 (macro_define_function): Likewise.
14267
14268 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14269
14270 * macrocmd.c (extract_identifier): Return
14271 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14272 callers.
14273
14274 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14275
14276 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14277
14278 2019-02-05 Tom Tromey <tom@tromey.com>
14279
14280 * target.c (target_stack::unpush): Move assertion earlier.
14281
14282 2019-01-30 Tom Tromey <tom@tromey.com>
14283
14284 PR python/23615:
14285 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14286 (gdbpy_parse_and_eval): Likewise.
14287 * python/python-internal.h (gdbpy_allow_threads): New class.
14288
14289 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14290
14291 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14292 (aarch64_fbsd_fpregmap): Move earlier.
14293 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14294 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14295 instead of individual calls to trad_frame_set_reg_addr.
14296 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14297 earlier.
14298 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14299 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14300 instead of individual calls to trad_frame_set_reg_addr.
14301
14302 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14303
14304 * CONTRIBUTE: Replace contribution list with wiki link.
14305
14306 2019-01-25 Tom Tromey <tom@tromey.com>
14307
14308 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14309
14310 2019-01-25 Tom Tromey <tom@tromey.com>
14311
14312 * xtensa-linux-nat.c: Fix common/ includes.
14313 * xml-support.h: Fix common/ includes.
14314 * xml-support.c: Fix common/ includes.
14315 * x86-linux-nat.c: Fix common/ includes.
14316 * windows-nat.c: Fix common/ includes.
14317 * varobj.h: Fix common/ includes.
14318 * varobj.c: Fix common/ includes.
14319 * value.c: Fix common/ includes.
14320 * valops.c: Fix common/ includes.
14321 * utils.c: Fix common/ includes.
14322 * unittests/xml-utils-selftests.c: Fix common/ includes.
14323 * unittests/utils-selftests.c: Fix common/ includes.
14324 * unittests/unpack-selftests.c: Fix common/ includes.
14325 * unittests/tracepoint-selftests.c: Fix common/ includes.
14326 * unittests/style-selftests.c: Fix common/ includes.
14327 * unittests/string_view-selftests.c: Fix common/ includes.
14328 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14329 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14330 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14331 * unittests/rsp-low-selftests.c: Fix common/ includes.
14332 * unittests/parse-connection-spec-selftests.c: Fix common/
14333 includes.
14334 * unittests/optional-selftests.c: Fix common/ includes.
14335 * unittests/offset-type-selftests.c: Fix common/ includes.
14336 * unittests/observable-selftests.c: Fix common/ includes.
14337 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14338 * unittests/memrange-selftests.c: Fix common/ includes.
14339 * unittests/memory-map-selftests.c: Fix common/ includes.
14340 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14341 * unittests/function-view-selftests.c: Fix common/ includes.
14342 * unittests/environ-selftests.c: Fix common/ includes.
14343 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14344 * unittests/common-utils-selftests.c: Fix common/ includes.
14345 * unittests/cli-utils-selftests.c: Fix common/ includes.
14346 * unittests/array-view-selftests.c: Fix common/ includes.
14347 * ui-file.c: Fix common/ includes.
14348 * tui/tui-io.c: Fix common/ includes.
14349 * tracepoint.h: Fix common/ includes.
14350 * tracepoint.c: Fix common/ includes.
14351 * tracefile-tfile.c: Fix common/ includes.
14352 * top.h: Fix common/ includes.
14353 * top.c: Fix common/ includes.
14354 * thread.c: Fix common/ includes.
14355 * target/waitstatus.h: Fix common/ includes.
14356 * target/waitstatus.c: Fix common/ includes.
14357 * target.h: Fix common/ includes.
14358 * target.c: Fix common/ includes.
14359 * target-memory.c: Fix common/ includes.
14360 * target-descriptions.c: Fix common/ includes.
14361 * symtab.h: Fix common/ includes.
14362 * symfile.c: Fix common/ includes.
14363 * stap-probe.c: Fix common/ includes.
14364 * spu-linux-nat.c: Fix common/ includes.
14365 * sparc-nat.c: Fix common/ includes.
14366 * source.c: Fix common/ includes.
14367 * solib.c: Fix common/ includes.
14368 * solib-target.c: Fix common/ includes.
14369 * ser-unix.c: Fix common/ includes.
14370 * ser-tcp.c: Fix common/ includes.
14371 * ser-pipe.c: Fix common/ includes.
14372 * ser-base.c: Fix common/ includes.
14373 * selftest-arch.c: Fix common/ includes.
14374 * s12z-tdep.c: Fix common/ includes.
14375 * rust-exp.y: Fix common/ includes.
14376 * rs6000-aix-tdep.c: Fix common/ includes.
14377 * riscv-tdep.c: Fix common/ includes.
14378 * remote.c: Fix common/ includes.
14379 * remote-notif.h: Fix common/ includes.
14380 * remote-fileio.h: Fix common/ includes.
14381 * remote-fileio.c: Fix common/ includes.
14382 * regcache.h: Fix common/ includes.
14383 * regcache.c: Fix common/ includes.
14384 * record-btrace.c: Fix common/ includes.
14385 * python/python.c: Fix common/ includes.
14386 * python/py-type.c: Fix common/ includes.
14387 * python/py-inferior.c: Fix common/ includes.
14388 * progspace.h: Fix common/ includes.
14389 * producer.c: Fix common/ includes.
14390 * procfs.c: Fix common/ includes.
14391 * proc-api.c: Fix common/ includes.
14392 * printcmd.c: Fix common/ includes.
14393 * ppc-linux-nat.c: Fix common/ includes.
14394 * parser-defs.h: Fix common/ includes.
14395 * osdata.c: Fix common/ includes.
14396 * obsd-nat.c: Fix common/ includes.
14397 * nat/x86-linux.c: Fix common/ includes.
14398 * nat/x86-linux-dregs.c: Fix common/ includes.
14399 * nat/x86-dregs.h: Fix common/ includes.
14400 * nat/x86-dregs.c: Fix common/ includes.
14401 * nat/ppc-linux.c: Fix common/ includes.
14402 * nat/mips-linux-watch.h: Fix common/ includes.
14403 * nat/mips-linux-watch.c: Fix common/ includes.
14404 * nat/linux-waitpid.c: Fix common/ includes.
14405 * nat/linux-ptrace.h: Fix common/ includes.
14406 * nat/linux-ptrace.c: Fix common/ includes.
14407 * nat/linux-procfs.c: Fix common/ includes.
14408 * nat/linux-personality.c: Fix common/ includes.
14409 * nat/linux-osdata.c: Fix common/ includes.
14410 * nat/linux-namespaces.c: Fix common/ includes.
14411 * nat/linux-btrace.h: Fix common/ includes.
14412 * nat/linux-btrace.c: Fix common/ includes.
14413 * nat/fork-inferior.c: Fix common/ includes.
14414 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14415 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14416 * nat/aarch64-linux.c: Fix common/ includes.
14417 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14418 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14419 * namespace.h: Fix common/ includes.
14420 * mips-linux-tdep.c: Fix common/ includes.
14421 * minsyms.c: Fix common/ includes.
14422 * mi/mi-parse.h: Fix common/ includes.
14423 * mi/mi-main.c: Fix common/ includes.
14424 * mi/mi-cmd-env.c: Fix common/ includes.
14425 * memrange.h: Fix common/ includes.
14426 * memattr.c: Fix common/ includes.
14427 * maint.h: Fix common/ includes.
14428 * maint.c: Fix common/ includes.
14429 * main.c: Fix common/ includes.
14430 * machoread.c: Fix common/ includes.
14431 * location.c: Fix common/ includes.
14432 * linux-thread-db.c: Fix common/ includes.
14433 * linux-nat.c: Fix common/ includes.
14434 * linux-fork.c: Fix common/ includes.
14435 * inline-frame.c: Fix common/ includes.
14436 * infrun.c: Fix common/ includes.
14437 * inflow.c: Fix common/ includes.
14438 * inferior.h: Fix common/ includes.
14439 * inferior.c: Fix common/ includes.
14440 * infcmd.c: Fix common/ includes.
14441 * inf-ptrace.c: Fix common/ includes.
14442 * inf-child.c: Fix common/ includes.
14443 * ia64-linux-nat.c: Fix common/ includes.
14444 * i387-tdep.c: Fix common/ includes.
14445 * i386-tdep.c: Fix common/ includes.
14446 * i386-linux-tdep.c: Fix common/ includes.
14447 * i386-linux-nat.c: Fix common/ includes.
14448 * i386-go32-tdep.c: Fix common/ includes.
14449 * i386-fbsd-tdep.c: Fix common/ includes.
14450 * i386-fbsd-nat.c: Fix common/ includes.
14451 * guile/scm-type.c: Fix common/ includes.
14452 * guile/guile.c: Fix common/ includes.
14453 * go32-nat.c: Fix common/ includes.
14454 * gnu-nat.c: Fix common/ includes.
14455 * gdbthread.h: Fix common/ includes.
14456 * gdbarch-selftests.c: Fix common/ includes.
14457 * gdb_usleep.c: Fix common/ includes.
14458 * gdb_select.h: Fix common/ includes.
14459 * gdb_bfd.c: Fix common/ includes.
14460 * gcore.c: Fix common/ includes.
14461 * fork-child.c: Fix common/ includes.
14462 * findvar.c: Fix common/ includes.
14463 * fbsd-nat.c: Fix common/ includes.
14464 * event-top.c: Fix common/ includes.
14465 * event-loop.c: Fix common/ includes.
14466 * dwarf2read.c: Fix common/ includes.
14467 * dwarf2loc.c: Fix common/ includes.
14468 * dwarf2-frame.c: Fix common/ includes.
14469 * dwarf-index-cache.c: Fix common/ includes.
14470 * dtrace-probe.c: Fix common/ includes.
14471 * disasm-selftests.c: Fix common/ includes.
14472 * defs.h: Fix common/ includes.
14473 * csky-tdep.c: Fix common/ includes.
14474 * cp-valprint.c: Fix common/ includes.
14475 * cp-support.h: Fix common/ includes.
14476 * cp-support.c: Fix common/ includes.
14477 * corelow.c: Fix common/ includes.
14478 * completer.h: Fix common/ includes.
14479 * completer.c: Fix common/ includes.
14480 * compile/compile.c: Fix common/ includes.
14481 * compile/compile-loc2c.c: Fix common/ includes.
14482 * compile/compile-cplus-types.c: Fix common/ includes.
14483 * compile/compile-cplus-symbols.c: Fix common/ includes.
14484 * command.h: Fix common/ includes.
14485 * cli/cli-dump.c: Fix common/ includes.
14486 * cli/cli-cmds.c: Fix common/ includes.
14487 * charset.c: Fix common/ includes.
14488 * build-id.c: Fix common/ includes.
14489 * btrace.h: Fix common/ includes.
14490 * btrace.c: Fix common/ includes.
14491 * breakpoint.h: Fix common/ includes.
14492 * breakpoint.c: Fix common/ includes.
14493 * ax.h:
14494 (enum agent_op): Fix common/ includes.
14495 * ax-general.c (struct aop_map): Fix common/ includes.
14496 * ax-gdb.c: Fix common/ includes.
14497 * auxv.c: Fix common/ includes.
14498 * auto-load.c: Fix common/ includes.
14499 * arm-tdep.c: Fix common/ includes.
14500 * arch/riscv.c: Fix common/ includes.
14501 * arch/ppc-linux-common.c: Fix common/ includes.
14502 * arch/i386.c: Fix common/ includes.
14503 * arch/arm.c: Fix common/ includes.
14504 * arch/arm-linux.c: Fix common/ includes.
14505 * arch/arm-get-next-pcs.c: Fix common/ includes.
14506 * arch/amd64.c: Fix common/ includes.
14507 * arch/aarch64.c: Fix common/ includes.
14508 * arch/aarch64-insn.c: Fix common/ includes.
14509 * arch-utils.c: Fix common/ includes.
14510 * amd64-windows-tdep.c: Fix common/ includes.
14511 * amd64-tdep.c: Fix common/ includes.
14512 * amd64-sol2-tdep.c: Fix common/ includes.
14513 * amd64-obsd-tdep.c: Fix common/ includes.
14514 * amd64-nbsd-tdep.c: Fix common/ includes.
14515 * amd64-linux-tdep.c: Fix common/ includes.
14516 * amd64-linux-nat.c: Fix common/ includes.
14517 * amd64-fbsd-tdep.c: Fix common/ includes.
14518 * amd64-fbsd-nat.c: Fix common/ includes.
14519 * amd64-dicos-tdep.c: Fix common/ includes.
14520 * amd64-darwin-tdep.c: Fix common/ includes.
14521 * agent.c: Fix common/ includes.
14522 * ada-lang.h: Fix common/ includes.
14523 * ada-lang.c: Fix common/ includes.
14524 * aarch64-tdep.c: Fix common/ includes.
14525
14526 2019-01-25 Tom Tromey <tom@tromey.com>
14527
14528 * common/create-version.sh: Use common/version.h.
14529
14530 2019-01-24 Pedro Alves <palves@redhat.com>
14531
14532 * infrun.c (signal_stop, signal_print, signal_program)
14533 (signal_catch, signal_pass): Now arrays instead of pointers.
14534 (update_signals_program_target, do_target_resume)
14535 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14536 * linux-nat.c (linux_nat_target::pass_signals)
14537 (linux_nat_target::create_inferior, linux_nat_target::attach):
14538 Adjust.
14539 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14540 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14541 * procfs.c (procfs_target::pass_signals): Adjust.
14542 * record-full.c (record_full_target::resume): Adjust.
14543 * remote.c (remote_target::pass_signals)
14544 (remote_target::program_signals): Adjust.
14545 * target-debug.h (target_debug_print_signals): Now takes a
14546 gdb::array_view as parameter. Adjust.
14547 * target.h (target_ops) <pass_signals, program_signals>: Replace
14548 pointer and length parameters with gdb::array_view.
14549 (target_pass_signals, target_program_signals): Likewise.
14550 * target-delegates.c: Regenerate.
14551
14552 2019-01-24 Pedro Alves <palves@redhat.com>
14553
14554 * common/forward-scope-exit.h
14555 (forward_scope_exit::forward_scope_exit): Pass arguments to
14556 m_bind_function directly, instead of creating a std::bind and
14557 copying that.
14558
14559 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14560
14561 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14562 for static members.
14563 (pass_in_v_vfp_candidate): Likewise.
14564
14565 2019-01-23 Tom Tromey <tom@tromey.com>
14566 Pedro Alves <palves@redhat.com>
14567
14568 * regcache.c (class regcache_invalidator): Remove.
14569 (regcache::raw_write): Use make_scope_exit.
14570
14571 2019-01-23 Tom Tromey <tom@tromey.com>
14572
14573 * ui-out.h (class ui_out_emit_type): Update comment.
14574
14575 2019-01-23 Tom Tromey <tom@tromey.com>
14576
14577 * infrun.c (fetch_inferior_event): Update comment.
14578
14579 2019-01-23 Tom Tromey <tom@tromey.com>
14580 Pedro Alves <palves@redhat.com>
14581
14582 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14583 parameter.
14584 (fetch_inferior_event): Use SCOPE_EXIT.
14585
14586
14587 2019-01-23 Tom Tromey <tom@tromey.com>
14588 Pedro Alves <palves@redhat.com>
14589
14590 * infrun.c (disable_thread_events): Delete.
14591 (stop_all_threads): Use SCOPE_EXIT.
14592
14593 2019-01-23 Tom Tromey <tom@tromey.com>
14594 Pedro Alves <palves@redhat.com>
14595
14596 * symfile.c: Include forward-scope-exit.h.
14597 (clear_symtab_users_cleanup): Replace forward declaration with
14598 a FORWARD_SCOPE_EXIT.
14599 (syms_from_objfile_1): Use the forward_scope_exit and
14600 gdb::optional instead of cleanup_function.
14601 (reread_symbols): Use the forward_scope_exit instead of
14602 cleanup_function.
14603 (clear_symtab_users_cleanup): Remove function.
14604
14605 2019-01-23 Tom Tromey <tom@tromey.com>
14606 Pedro Alves <palves@redhat.com>
14607
14608 * linux-nat.c: Include scope-exit.h.
14609 (cleanup_target_stop): Remove.
14610 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14611 SCOPE_EXIT.
14612
14613 2019-01-23 Tom Tromey <tom@tromey.com>
14614 Pedro Alves <palves@redhat.com>
14615
14616 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14617 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14618
14619 2019-01-23 Tom Tromey <tom@tromey.com>
14620 Andrew Burgess <andrew.burgess@embecosm.com>
14621 Pedro Alves <palves@redhat.com>
14622
14623 * infrun.c (fetch_inferior_event): Use scope_exit.
14624 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14625 * top.c (execute_command): Use scope_exit.
14626 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14627 * utils.c (do_bpstat_clear_actions_cleanup)
14628 (make_bpstat_clear_actions_cleanup): Remove.
14629
14630 2019-01-23 Tom Tromey <tom@tromey.com>
14631 Pedro Alves <palves@redhat.com>
14632
14633 * infrun.c: Include "common/scope-exit.h"
14634 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14635 (wait_for_inferior): Use SCOPE_EXIT.
14636 (fetch_inferior_event): Use scope_exit.
14637
14638 2019-01-23 Tom Tromey <tom@tromey.com>
14639 Pedro Alves <palves@redhat.com>
14640
14641 * breakpoint.c (create_breakpoint): Remove cleanup.
14642
14643 2019-01-23 Tom Tromey <tom@tromey.com>
14644 Andrew Burgess <andrew.burgess@embecosm.com>
14645 Pedro Alves <palves@redhat.com>
14646
14647 2019-01-23 Pedro Alves <palves@redhat.com>
14648
14649 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14650
14651 2019-01-23 Pedro Alves <palves@redhat.com>
14652 Andrew Burgess <andrew.burgess@embecosm.com>
14653
14654 * gdbthread.h: Include "common/forward-scope-exit.h".
14655 (scoped_finish_thread_state): Redefine custom class in terms of
14656 forward_scope_exit.
14657
14658 2019-01-23 Pedro Alves <palves@redhat.com>
14659 Andrew Burgess <andrew.burgess@embecosm.com>
14660
14661 * common/forward-scope-exit.h: New file.
14662
14663 2019-01-23 Pedro Alves <palves@redhat.com>
14664 Andrew Burgess <andrew.burgess@embecosm.com>
14665 Tom Tromey <tom@tromey.com>
14666
14667 * common/scope-exit.h: New file.
14668
14669 2019-01-23 Pedro Alves <palves@redhat.com>
14670
14671 * common/preprocessor.h (ESC): Rename to ...
14672 (ESC_PARENS): ... this.
14673 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14674 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14675
14676 2019-01-23 Tom Tromey <tom@tromey.com>
14677
14678 * language.h (class scoped_switch_to_sym_language_if_auto):
14679 Initialize m_lang in both cases.
14680
14681 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14682
14683 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14684 with XCNEW.
14685
14686 2019-01-22 Tom Tromey <tom@tromey.com>
14687
14688 * corelow.c: Do not include sys/file.h.
14689
14690 2019-01-22 Tom Tromey <tom@tromey.com>
14691
14692 * tui/tui-wingeneral.h: Include gdb_curses.h.
14693
14694 2019-01-22 Tom Tromey <tom@tromey.com>
14695
14696 * source-cache.h (class source_cache) <get_source_lines,
14697 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14698
14699 2019-01-22 Tom Tromey <tom@tromey.com>
14700
14701 * remote-fileio.h (struct remote_target): Declare.
14702
14703 2019-01-22 Tom Tromey <tom@tromey.com>
14704
14705 * python/py-arch.c: Do not include py-ref.h.
14706 * python/py-bpevent.c: Do not include py-ref.h.
14707 * python/py-cmd.c: Do not include py-ref.h.
14708 * python/py-continueevent.c: Do not include py-ref.h.
14709 * python/py-event.h: Do not include py-ref.h.
14710 * python/py-evtregistry.c: Do not include py-ref.h.
14711 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14712 * python/py-frame.c: Do not include py-ref.h.
14713 * python/py-framefilter.c: Do not include py-ref.h.
14714 * python/py-function.c: Do not include py-ref.h.
14715 * python/py-infevents.c: Do not include py-ref.h.
14716 * python/py-linetable.c: Do not include py-ref.h.
14717 * python/py-objfile.c: Do not include py-ref.h.
14718 * python/py-param.c: Do not include py-ref.h.
14719 * python/py-prettyprint.c: Do not include py-ref.h.
14720 * python/py-progspace.c: Do not include py-ref.h.
14721 * python/py-symbol.c: Do not include py-ref.h.
14722 * python/py-symtab.c: Do not include py-ref.h.
14723 * python/py-type.c: Do not include py-ref.h.
14724 * python/py-unwind.c: Do not include py-ref.h.
14725 * python/py-utils.c: Do not include py-ref.h.
14726 * python/py-value.c: Do not include py-ref.h.
14727 * python/py-varobj.c: Do not include py-ref.h.
14728 * python/py-xmethods.c: Do not include py-ref.h.
14729 * python/python.c: Do not include py-ref.h.
14730 * varobj.c: Do not include py-ref.h.
14731
14732 2019-01-22 Tom Tromey <tom@tromey.com>
14733
14734 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14735 keyword for bcache.
14736
14737 2019-01-22 Tom Tromey <tom@tromey.com>
14738
14739 * compile/compile-cplus-types.c: Remove a comment by #include.
14740
14741 2019-01-22 Tom Tromey <tom@tromey.com>
14742
14743 * compile/gcc-c-plugin.h: Include compile-internal.h.
14744
14745 2019-01-22 Tom Tromey <tom@tromey.com>
14746
14747 * stabsread.c (EXTERN): Do not define.
14748 (symnum, next_symbol_text_func, processing_gcc_compilation)
14749 (within_function, global_sym_chain, global_stabs)
14750 (previous_stab_code, this_object_header_files)
14751 (n_this_object_header_files)
14752 (n_allocated_this_object_header_files): Define.
14753 * stabsread.h (EXTERN): Never define. Use "extern".
14754
14755 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14756
14757 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14758 history_value.
14759
14760 2019-01-21 Tom Tromey <tom@tromey.com>
14761
14762 * ui-out.c: Fix includes.
14763 * tui/tui-source.c: Fix includes.
14764 * target.c: Fix includes.
14765 * remote.c: Fix includes.
14766 * regcache.c: Fix includes.
14767 * python/py-block.c: Fix includes.
14768 * printcmd.c: Fix includes.
14769 * or1k-tdep.c: Fix includes.
14770 * mi/mi-main.c: Fix includes.
14771 * m32r-tdep.c: Fix includes.
14772 * csky-tdep.c: Fix includes.
14773 * compile/compile-cplus-types.c: Fix includes.
14774 * cli/cli-interp.c: Fix includes.
14775
14776 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14777
14778 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14779 for padding.
14780
14781 2019-01-16 Tom Tromey <tom@tromey.com>
14782
14783 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14784 earlier.
14785 (struct objfile) <msymbols_range>: Move from top level.
14786 <msymbols>: New method.
14787 (class objfile_msymbols): Remove.
14788 * symtab.c (default_collect_symbol_completion_matches_break_on):
14789 Update.
14790 * symmisc.c (dump_msymbols): Update.
14791 * stabsread.c (scan_file_globals): Update.
14792 * objc-lang.c (info_selectors_command, info_classes_command)
14793 (find_methods): Update.
14794 * minsyms.c (find_solib_trampoline_target): Update.
14795 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14796 * coffread.c (coff_symfile_read): Update.
14797 * ada-lang.c (ada_lookup_simple_minsym)
14798 (ada_collect_symbol_completion_matches): Update.
14799
14800 2019-01-16 Tom Tromey <tom@tromey.com>
14801
14802 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14803 type. Remove no-argument constructor.
14804 <iterator::operator++>: Simplify.
14805 <begin>: Update.
14806 <end>: Use minimal_symbol_count.
14807
14808 2019-01-16 Tom Tromey <tom@tromey.com>
14809
14810 * objfiles.h (struct objfile) <psymtabs>: New method.
14811 (class objfile_psymtabs): Remove.
14812 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14813 typedef.
14814 <range>: New method.
14815 (require_partial_symbols): Change return type.
14816 * psymtab.c (require_partial_symbols)
14817 (psym_expand_symtabs_matching): Update.
14818 * mdebugread.c (parse_partial_symbols): Update.
14819 * dbxread.c (dbx_end_psymtab): Update.
14820
14821 2019-01-15 Tom Tromey <tom@tromey.com>
14822
14823 * symtab.c (lookup_objfile_from_block)
14824 (lookup_symbol_in_objfile_symtabs)
14825 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14826 (find_line_symtab, info_sources_command)
14827 (default_collect_symbol_completion_matches_break_on)
14828 (make_source_files_completion_list): Update.
14829 * symmisc.c (print_objfile_statistics, dump_objfile)
14830 (maintenance_print_symbols, maintenance_info_symtabs)
14831 (maintenance_check_symtabs, maintenance_info_line_tables):
14832 Update.
14833 * source.c (select_source_symtab)
14834 (forget_cached_source_info_for_objfile): Update.
14835 * objfiles.h (class objfile_compunits): Remove.
14836 (struct objfile) <compunits_range>: New typedef.
14837 (compunits): New method.
14838 * objfiles.c (objfile_relocate1): Update.
14839 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14840 * maint.c (count_symtabs_and_blocks): Update.
14841 * linespec.c (iterate_over_all_matching_symtabs): Update.
14842 * cp-support.c (add_symbol_overload_list_qualified): Update.
14843 * coffread.c (coff_symtab_read): Update.
14844 * ada-lang.c (add_nonlocal_symbols)
14845 (ada_collect_symbol_completion_matches)
14846 (ada_add_global_exceptions): Update.
14847
14848 2019-01-15 Tom Tromey <tom@tromey.com>
14849
14850 * progspace.h (program_space) <objfiles_safe_range>: New
14851 typedef.
14852 <objfiles_safe>: New method.
14853 * objfiles.h (class all_objfiles_safe): Remove.
14854 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14855 * jit.c (jit_inferior_exit_hook): Update.
14856
14857 2019-01-17 Tom Tromey <tom@tromey.com>
14858
14859 * progspace.h (program_space) <objfiles_range>: New typedef.
14860 <objfiles>: New method.
14861 <objfiles_head>: Rename from objfiles.
14862 (object_files): Update.
14863 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14864 * guile/scm-pretty-print.c
14865 (ppscm_find_pretty_printer_from_objfiles): Update.
14866 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14867 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14868 Update.
14869 * python/py-progspace.c (pspy_get_objfiles): Update.
14870 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14871 Update.
14872 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14873 (objfpy_lookup_objfile_by_build_id): Update.
14874 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14875 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14876 Update.
14877 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14878 (expand_symtab_containing_pc, lookup_objfile_from_block)
14879 (lookup_static_symbol, basic_lookup_transparent_type)
14880 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14881 (find_line_symtab, info_sources_command)
14882 (default_collect_symbol_completion_matches_break_on)
14883 (make_source_files_completion_list, find_main_name): Update.
14884 * symmisc.c (print_symbol_bcache_statistics)
14885 (print_objfile_statistics, maintenance_print_symbols)
14886 (maintenance_print_msymbols, maintenance_print_objfiles)
14887 (maintenance_info_symtabs, maintenance_check_symtabs)
14888 (maintenance_expand_symtabs, maintenance_info_line_tables):
14889 Update.
14890 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14891 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14892 (map_overlay_command, unmap_overlay_command)
14893 (simple_overlay_update, expand_symtabs_matching)
14894 (map_symbol_filenames): Update.
14895 * symfile-debug.c (set_debug_symfile): Update.
14896 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14897 Update.
14898 * source.c (select_source_symtab, forget_cached_source_info):
14899 Update.
14900 * solib.c (solib_read_symbols): Update.
14901 * solib-spu.c (append_ocl_sos): Update.
14902 * psymtab.c (maintenance_print_psymbols)
14903 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14904 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14905 * printcmd.c (info_symbol_command): Update.
14906 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14907 Update.
14908 * objfiles.h (class all_objfiles): Remove.
14909 * objfiles.c (have_partial_symbols, have_full_symbols)
14910 (have_minimal_symbols, qsort_cmp, update_section_map)
14911 (shared_objfile_contains_address_p)
14912 (default_iterate_over_objfiles_in_search_order): Update.
14913 * objc-lang.c (info_selectors_command, info_classes_command)
14914 (find_methods): Update.
14915 * minsyms.c (find_solib_trampoline_target): Update.
14916 * maint.c (maintenance_info_sections)
14917 (maintenance_translate_address, count_symtabs_and_blocks):
14918 Update.
14919 * main.c (captured_main_1): Update.
14920 * linux-thread-db.c (try_thread_db_load_from_pdir)
14921 (has_libpthread): Update.
14922 * linespec.c (iterate_over_all_matching_symtabs)
14923 (search_minsyms_for_name): Update.
14924 * jit.c (jit_find_objf_with_entry_addr): Update.
14925 * hppa-tdep.c (find_unwind_entry)
14926 (hppa_lookup_stub_minimal_symbol): Update.
14927 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14928 Update.
14929 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14930 (elf_gnu_ifunc_resolve_by_got): Update.
14931 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14932 * dwarf-index-write.c (save_gdb_index_command): Update.
14933 * cp-support.c (add_symbol_overload_list_qualified): Update.
14934 * breakpoint.c (create_overlay_event_breakpoint)
14935 (create_longjmp_master_breakpoint)
14936 (create_std_terminate_master_breakpoint)
14937 (create_exception_master_breakpoint): Update.
14938 * blockframe.c (find_pc_partial_function): Update.
14939 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14940 (ada_collect_symbol_completion_matches)
14941 (ada_add_global_exceptions): Update.
14942
14943 2019-01-17 Tom Tromey <tom@tromey.com>
14944
14945 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14946 declare VEC.
14947 (solib_target_parse_libraries): Change return type.
14948 (library_list_start_segment, library_list_start_section)
14949 (library_list_end_library, library_list_start_library); Update.
14950 (solib_target_free_library_list): Remove.
14951 (solib_target_parse_libraries): Remove cleanup. Change return
14952 type.
14953 (solib_target_current_sos): Update.
14954
14955 2019-01-17 Tom Tromey <tromey@bapiya>
14956
14957 * valprint.c: Replace "the the" with "the".
14958 * symtab.c: Replace "the the" with "the".
14959 * solib.c: Replace "the the" with "the".
14960 * solib-dsbt.c: Replace "the the" with "the".
14961 * linespec.c: Replace "the the" with "the".
14962 * dwarf2loc.h: Replace "the the" with "the".
14963 * amd64-windows-tdep.c: Replace "the the" with "the".
14964 * aarch64-tdep.c: Replace "the the" with "the".
14965
14966 2019-01-16 Keith Seitz <keiths@redhat.com>
14967
14968 PR gdb/23773
14969 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14970 <builder>: Rename to ..
14971 <m_builder>: ... this and make private.
14972 (dwarf2_cu::get_builder): New method. Change all users of
14973 `builder' to use this method.
14974 (dwarf2_start_symtab): Move to ...
14975 (dwarf2_cu::start_symtab): ... here. Update all callers
14976 (setup_type_unit_groups): Move to ...
14977 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14978 callers.
14979 (dwarf2_cu::reset_builder): New method.
14980 (process_full_compunit, process_full_type_unit): Use
14981 dwarf2_cu::reset_builder.
14982 (follow_die_offset): Record the ancestor CU if it is different
14983 from the followed DIE's CU.
14984 (follow_die_sig_1): Likewise.
14985
14986 2019-01-15 Tom Tromey <tom@tromey.com>
14987
14988 * remote.c (class remote_state) <buf>: Now a char_vector.
14989 <buf_size>: Remove.
14990 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14991 parameter.
14992 (remote_target::getpkt_or_notif_sane_1)
14993 (remote_target::getpkt_sane)
14994 (remote_target::getpkt_or_notif_sane): Likewise.
14995 (class remote_target) <putpkt>: New overload.
14996 (remote_target::read_frame): Change type of "buf_p". Remove
14997 sizeof_p parameter.
14998 (packet_ok): New overload.
14999 (packet_check_result): New overload.
15000 Update all uses.
15001
15002 2019-01-14 Tom Tromey <tom@tromey.com>
15003
15004 * remote-notif.c (handle_notification, remote_notif_ack)
15005 (remote_notif_parse): Make "buf" const.
15006 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15007 const.
15008 (remote_notif_parse, remote_notif_ack, handle_notification):
15009 Likewise.
15010 * remote.c (remote_notif_stop_parse): Make "buf" const.
15011 (remote_target::remote_parse_stop_reply): Make "buf" const.
15012 (remote_notif_stop_ack): Make "buf" const.
15013
15014 2019-01-14 Tom Tromey <tom@tromey.com>
15015
15016 * remote.c (remote_console_output): Make parameter const.
15017
15018 2019-01-14 Tom Tromey <tom@tromey.com>
15019
15020 * target-debug.h (target_debug_print_signals): Constify.
15021 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15022 * procfs.c (procfs_target::pass_signals): Update.
15023 * linux-nat.c (linux_nat_target::pass_signals): Update.
15024 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15025 * target-delegates.c: Rebuild.
15026 * remote.c (remote_target::program_signals): Update.
15027 (remote_target::pass_signals): Update.
15028 * target.c (target_pass_signals): Constify argument.
15029 (target_program_signals): Likewise.
15030 * target.h (struct target_ops) <pass_signals, program_signals>:
15031 Constify argument.
15032 (target_pass_signals, target_program_signals): Constify argument.
15033
15034 2019-01-14 Tom Tromey <tom@tromey.com>
15035
15036 PR tui/28819:
15037 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15038
15039 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15040
15041 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15042 field.
15043 * rs6000-tdep.c: Include reggroups.h.
15044 (IS_V_ALIAS_PSEUDOREG): Define.
15045 (rs6000_register_name): Return names for the "vX" aliases.
15046 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15047 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15048 aliases. Call default_register_reggroup_p for all other
15049 pseudo-registers.
15050 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15051 New functions.
15052 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15053 Handle "vX" aliases.
15054 (v_alias_pseudo_register_collect): New function.
15055 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15056 (rs6000_gdbarch_init): Initialize "vX" aliases as
15057 pseudo-registers. Restore registration of
15058 rs6000_pseudo_register_reggroup_p with
15059 set_tdesc_pseudo_register_reggroup_p.
15060
15061 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15062
15063 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15064 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15065 set_gdbarch_num_pseudo_regs.
15066
15067 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15068
15069 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15070 Remove arg prefixname, add do_set and do_show.
15071 Add member functions set_list and show_list.
15072 * cli/cli-style.c (class cli_style_option): Update accordingly.
15073 (style_set_list): Move to file scope.
15074 (style_show_list): Likewise.
15075 (set_style): Call help_list.
15076 (show_style): Call cmd_show_list.
15077 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15078 Update to use the new macro.
15079
15080 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15081
15082 * ada-lang.c (_initialize_ada_language): Expand the help text
15083 for the "catch exception" command.
15084
15085 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15086
15087 * symtab.c (matching_obj_sections): Initialize obj,
15088 declare it closer to its usage.
15089
15090 2019-01-10 Tom Tromey <tom@tromey.com>
15091
15092 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15093 (basic_inf_threads_range): Remove.
15094 (inf_threads_range, inf_non_exited_threads_range)
15095 (safe_inf_threads_range): Use next_adapter.
15096
15097 2019-01-10 Keith Seitz <keiths@redhat.com>
15098
15099 PR gdb/23712
15100 PR symtab/23010
15101 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15102 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15103
15104 2019-01-10 Keith Seitz <keiths@redhat.com>
15105
15106 PR gdb/23712
15107 PR symtab/23010
15108 * dictionary.c (pending_to_vector): Remove.
15109 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15110 Remove _1 suffix, replacing functions of the same name. Update
15111 all callers.
15112 (dict_create_hashed, dict_create_hashed_expandable)
15113 (dict_create_linear, dict_create_linear_expandable, dict_free)
15114 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15115 Make functions static.
15116
15117 2019-01-10 Keith Seitz <keiths@redhat.com>
15118
15119 PR gdb/23712
15120 PR symtab/23010
15121 * dictionary.h (struct dictionary): Replace declaration with
15122 multidictionary.
15123 (dict_create_hashed, dict_create_hashed_expandable)
15124 (dict_create_linear, dict_create_linear_expandable)
15125 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15126 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15127 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15128 taking multidictionary argument.
15129 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15130 * block.h (struct block) <dict>: Change to multidictionary
15131 and rename `multidict'.
15132 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15133 symmisc.c: Update all dictionary references to multidictionary.
15134
15135 2019-01-10 Keith Seitz <keiths@redhat.com>
15136
15137 PR gdb/23712
15138 PR symtab/23010
15139 * dictionary.c: Include unordered_map.
15140 (pending_to_vector): New function.
15141 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15142 Rewrite the non-"_1" functions to take vector instead
15143 of linked list.
15144 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15145 "new" _1 versions of the same name.
15146 (multidictionary): Define.
15147 (std::hash<enum language): New definition.
15148 (collate_pending_symbols_by_language, mdict_create_hashed)
15149 (mdict_create_hashed_expandable, mdict_create_linear)
15150 (mdict_create_linear_expandable, mdict_free)
15151 (find_language_dictionary, create_new_language_dictionary)
15152 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15153 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15154 (mdict_size, mdict_empty): New functions.
15155 * dictionary.h (mdict_iterator): Define.
15156
15157 2019-01-10 Pedro Alves <palves@redhat.com>
15158
15159 * breakpoint.c (read_uploaded_action)
15160 (create_tracepoint_from_upload): Adjust to use
15161 gdb::unique_xmalloc_ptr.
15162 * ctf.c (ctf_write_uploaded_tp):
15163 (SET_ARRAY_FIELD): Use emplace_back.
15164 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15165 * tracefile-tfile.c (tfile_write_uploaded_tp):
15166 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15167 gdb::unique_xmalloc_ptr.
15168 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15169 at_string, cond_string, cmd_strings>: Replace char pointers
15170 with gdb::unique_xmalloc_ptr.
15171
15172 2019-01-10 Pedro Alves <palves@redhat.com>
15173
15174 * solib-target.c (library_list_start_library): Don't xstrdup name.
15175
15176 2019-01-10 Pedro Alves <palves@redhat.com>
15177
15178 * mdebugread.c (parse_partial_symbols): Use
15179 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15180
15181 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15182
15183 * linux-fork.c (scoped_switch_fork_info)
15184 <~scoped_switch_fork_info>: Fix incorrect variable name.
15185
15186 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15187
15188 * linux-fork.c (scoped_switch_fork_info)
15189 <scoped_switch_fork_info>: Make explicit.
15190 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15191
15192 2019-01-10 Tom Tromey <tom@tromey.com>
15193
15194 * objfiles.h (objfile::reset_psymtabs): Update.
15195 * objfiles.c (objfile::objfile): Update.
15196 * psymtab.h (psymtab_storage::obstack): Update.
15197 (psymtab_storage::m_obstack): Use gdb::optional.
15198 (class psymtab_storage): Update comment. Remove objfile
15199 parameter.
15200 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15201
15202 2019-01-10 Tom Tromey <tom@tromey.com>
15203
15204 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15205 <free_psymtabs>: Now private.
15206 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15207 (allocate_psymtab): Use new method.
15208
15209 2019-01-10 Tom Tromey <tom@tromey.com>
15210
15211 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15212 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15213 * mdebugread.c (parse_partial_symbols): Use
15214 allocate_dependencies.
15215 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15216 allocate_dependencies.
15217 (process_psymtab_comp_unit_reader)
15218 (build_type_psymtab_dependencies): Likewise.
15219 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15220
15221 2019-01-10 Tom Tromey <tom@tromey.com>
15222
15223 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15224 PSYMBOL_SET_LANGUAGE.
15225 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15226
15227 2019-01-10 Tom Tromey <tom@tromey.com>
15228
15229 * psymtab.h (psymtab_storage::obstack): New method.
15230 <m_obstack>: Rename from obstack; now private.
15231 * psymtab.c (psymtab_storage): Update.
15232 * dwarf2read.c (create_addrmap_from_index)
15233 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15234 Update.
15235
15236 2019-01-10 Tom Tromey <tom@tromey.com>
15237
15238 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15239 * objfiles.h (objfile::reset_psymtabs): New method.
15240
15241 2019-01-10 Tom Tromey <tom@tromey.com>
15242
15243 * symmisc.c (print_symbol_bcache_statistics): Update.
15244 (print_objfile_statistics): Update.
15245 * symfile.c (reread_symbols): Update.
15246 * psymtab.h (class psymtab_storage): New.
15247 * psymtab.c (psymtab_storage): New constructor.
15248 (~psymtab_storage): New destructor.
15249 (require_partial_symbols): Update.
15250 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15251 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15252 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15253 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15254 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15255 (start_psymtab_common, end_psymtab_common)
15256 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15257 (allocate_psymtab): Update.
15258 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15259 Update.
15260 (dump_psymtab_addrmap, maintenance_print_psymbols)
15261 (maintenance_check_psymtabs): Update.
15262 (class objfile_psymtabs): Move to objfiles.h.
15263 * psympriv.h (discard_psymtab): Now inline.
15264 (psymtab_discarder::psymtab_discarder): Update.
15265 (psymtab_discarder::~psymtab_discarder): Update.
15266 (ALL_OBJFILE_PSYMTABS): Rewrite.
15267 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15268 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15269 Remove fields.
15270 <partial_symtabs>: New field.
15271 (class objfile_psymtabs): Move from psymtab.h. Update.
15272 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15273 psymbol_cache.
15274 (objfile::~objfile): Don't destroy psymbol_cache.
15275 * mdebugread.c (parse_partial_symbols): Update.
15276 * dwarf2read.c (create_addrmap_from_index)
15277 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15278 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15279 (add_partial_subprogram, dwarf2_ranges_read): Update.
15280 * dwarf-index-write.c (write_address_map)
15281 (write_one_signatured_type, recursively_write_psymbols)
15282 (class debug_names, class debug_names, write_psymtabs_to_index):
15283 Update.
15284
15285 2019-01-10 Tom Tromey <tom@tromey.com>
15286
15287 * symtab.h (SYMBOL_SET_NAMES): Update.
15288 (symbol_set_names): Update.
15289 (MSYMBOL_SET_NAMES): Update.
15290 * symtab.c (symbol_set_names): Change argument to be an
15291 objfile_per_bfd_storage.
15292 * psymtab.c (add_psymbol_to_bcache): Update.
15293 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15294
15295 2019-01-10 Tom Tromey <tom@tromey.com>
15296
15297 * symtab.c (create_demangled_names_hash): Change argument to be an
15298 objfile_per_bfd_storage.
15299 (symbol_set_names): Update.
15300
15301 2019-01-10 Tom Tromey <tom@tromey.com>
15302
15303 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15304 init_psymbol_list.
15305 * psymtab.c (init_psymbol_list): Do nothing if already called.
15306 * psympriv.h (init_psymbol_list): Add comment.
15307 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15308 init_psymbol_list.
15309 * dbxread.c (dbx_symfile_read): Unconditionally call
15310 init_psymbol_list.
15311
15312 2019-01-10 Tom Tromey <tom@tromey.com>
15313
15314 * xcoffread.c (scan_xcoff_symtab): Update.
15315 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15316 "where".
15317 * mdebugread.c (parse_partial_symbols)
15318 (handle_psymbol_enumerators): Update.
15319 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15320 * dbxread.c (read_dbx_symtab): Update.
15321 * psympriv.h (psymbol_placement): New enum.
15322 (add_psymbol_to_list): Update.
15323
15324 2019-01-10 Tom Tromey <tom@tromey.com>
15325
15326 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15327 static_psymbols parameters.
15328 (scan_xcoff_symtab): Update.
15329 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15330 static_psymbols parameters.
15331 * psympriv.h (start_psymtab_common): Update.
15332 * mdebugread.c (parse_partial_symbols): Update.
15333 * dwarf2read.c (create_partial_symtab): Update.
15334 * dbxread.c (read_dbx_symtab): Update.
15335 (start_psymtab): Remove global_psymbols and static_psymbols
15336 parameters.
15337
15338 2019-01-10 Tom Tromey <tom@tromey.com>
15339
15340 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15341 * psymtab.c (allocate_psymtab): Add comment.
15342 * psympriv.h (allocate_psymtab): Add comment.
15343 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15344 initializations.
15345 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15346
15347 2019-01-10 Tom Tromey <tom@tromey.com>
15348
15349 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15350 Don't declare.
15351 * mipsread.c: Include mdebugread.h.
15352 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15353 Declare.
15354 * elfread.c: Include mdebugread.h.
15355
15356 2019-01-09 Tom Tromey <tom@tromey.com>
15357
15358 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15359 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15360 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15361 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15362 (psym_lookup_symbol, psym_find_last_source_symtab)
15363 (psym_forget_cached_source_info, psym_print_stats)
15364 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15365 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15366 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15367 (psym_find_compunit_symtab_by_address)
15368 (maintenance_print_psymbols, maintenance_info_psymtabs)
15369 (maintenance_check_psymtabs): Use ranged for.
15370 * psymtab.h (class objfile_psymtabs): New.
15371 (require_partial_symbols): Return objfile_psymtabs.
15372 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15373
15374 2019-01-09 Tom Tromey <tom@tromey.com>
15375
15376 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15377 (find_pc_mapped_section, list_overlays_command)
15378 (map_overlay_command, unmap_overlay_command)
15379 (simple_overlay_update): Use all_objfiles.
15380 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15381 * printcmd.c (info_symbol_command): Use all_objfiles.
15382 * objfiles.h (ALL_OBJSECTIONS): Remove.
15383 * maint.c (maintenance_translate_address): Use all_objfiles.
15384 * gcore.c (gcore_create_callback): Use all_objfiles.
15385 (objfile_find_memory_regions): Likewise.
15386
15387 2019-01-09 Tom Tromey <tom@tromey.com>
15388
15389 * symtab.c (find_line_symtab, info_sources_command)
15390 (make_source_files_completion_list): Use objfile_compunits.
15391 * source.c (select_source_symtab): Use objfile_compunits.
15392 * objfiles.h (struct objfile): Update comment.
15393 (ALL_OBJFILES): Remove.
15394 (ALL_FILETABS): Remove.
15395 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15396 objfile_compunits.
15397
15398 2019-01-09 Tom Tromey <tom@tromey.com>
15399
15400 * symmisc.c (print_objfile_statistics, dump_objfile)
15401 (maintenance_print_symbols): Use compunit_filetabs.
15402 * source.c (forget_cached_source_info_for_objfile): Use
15403 compunit_filetabs.
15404 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15405 (ALL_FILETABS): Use compunit_filetabs.
15406 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15407 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15408
15409 2019-01-09 Tom Tromey <tom@tromey.com>
15410
15411 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15412 (compunit_filetabs): New.
15413 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15414 compunit_filetabs.
15415 (info_sources_command, make_source_files_completion_list): Remove
15416 declaration.
15417 * symmisc.c (print_objfile_statistics, dump_objfile)
15418 (maintenance_print_symbols): Remove declaration.
15419 (maintenance_info_symtabs): Use compunit_filetabs.
15420 (maintenance_info_line_tables): Likewise.
15421 * source.c (select_source_symtab): Change local variable name.
15422 (forget_cached_source_info_for_objfile): Remove declaration.
15423 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15424 * objfiles.c (objfile_relocate1): Remove declaration.
15425 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15426 declaration.
15427 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15428 * coffread.c (coff_symtab_read): Remove declaration.
15429 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15430 compunit_filetabs.
15431
15432 2019-01-09 Tom Tromey <tom@tromey.com>
15433
15434 * symtab.c (lookup_objfile_from_block)
15435 (find_pc_sect_compunit_symtab, search_symbols)
15436 (default_collect_symbol_completion_matches_break_on): Use
15437 objfile_compunits.
15438 * objfiles.h (ALL_COMPUNITS): Remove.
15439 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15440 * cp-support.c (add_symbol_overload_list_qualified): Use
15441 objfile_compunits.
15442 * ada-lang.c (ada_collect_symbol_completion_matches)
15443 (ada_add_global_exceptions): Use objfile_compunits.
15444
15445 2019-01-09 Tom Tromey <tom@tromey.com>
15446
15447 * source.c (select_source_symtab)
15448 (forget_cached_source_info_for_objfile): Remove declaration.
15449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15450 declaration.
15451 * maint.c (count_symtabs_and_blocks): Remove declaration.
15452 * cp-support.c (add_symbol_overload_list_qualified): Remove
15453 declaration.
15454 * coffread.c (coff_symtab_read): Remove declaration.
15455 * symtab.c (lookup_symbol_in_objfile_symtabs)
15456 (basic_lookup_transparent_type_1): Use objfile_compunits.
15457 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15458 (info_sources_command, search_symbols)
15459 (default_collect_symbol_completion_matches_break_on)
15460 (make_source_files_completion_list): Remove declaration.
15461 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15462 (ada_collect_symbol_completion_matches)
15463 (ada_add_global_exceptions): Remove declaration.
15464 * linespec.c (iterate_over_all_matching_symtabs): Use
15465 objfile_compunits.
15466 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15467 (class objfile_compunits): New.
15468 (ALL_COMPUNITS): Use objfile_compunits.
15469 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15470 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15471 objfile_compunits.
15472 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15473
15474 2019-01-09 Tom Tromey <tom@tromey.com>
15475
15476 * symtab.c (search_symbols)
15477 (default_collect_symbol_completion_matches_break_on): Use
15478 objfile_msymbols.
15479 * ada-lang.c (ada_lookup_simple_minsym)
15480 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15481 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15482 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15483 objfile_msymbols.
15484 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15485 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15486 * objc-lang.c (find_methods): Use objfile_msymbols.
15487 (info_selectors_command, info_classes_command): Likewise.
15488 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15489 * objfiles.h (class objfile_msymbols): New.
15490 (ALL_OBJFILE_MSYMBOLS): Remove.
15491 (ALL_MSYMBOLS): Remove.
15492
15493 2019-01-09 Tom Tromey <tom@tromey.com>
15494
15495 * common/next-iterator.h (next_adapter): Add Iterator template
15496 parameter.
15497 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15498 (class all_objfiles_safe): New.
15499 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15500 * objfiles.c (put_objfile_before): Update comment.
15501 (add_separate_debug_objfile): Likewise.
15502 (free_all_objfiles): Use all_objfiles_safe.
15503 (objfile_purge_solibs): Likewise.
15504
15505 2019-01-09 Tom Tromey <tom@tromey.com>
15506
15507 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15508 (expand_symtab_containing_pc, lookup_static_symbol)
15509 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15510 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15511 all_objfiles.
15512 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15513 * breakpoint.c (create_overlay_event_breakpoint)
15514 (create_longjmp_master_breakpoint)
15515 (create_std_terminate_master_breakpoint)
15516 (create_exception_master_breakpoint): Use all_objfiles.
15517 * linux-thread-db.c (try_thread_db_load_from_pdir)
15518 (has_libpthread): Use all_objfiles.
15519 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15520 * linespec.c (iterate_over_all_matching_symtabs)
15521 (search_minsyms_for_name): Use all_objfiles.
15522 * maint.c (maintenance_info_sections): Use all_objfiles.
15523 * main.c (captured_main_1): Use all_objfiles.
15524 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15525 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15526 * guile/scm-pretty-print.c
15527 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15528 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15529 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15530 (maintenance_print_msymbols): Use all_objfiles.
15531 * source.c (select_source_symtab): Use all_objfiles.
15532 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15533 * symfile.c (remove_symbol_file_command)
15534 (expand_symtabs_matching, map_symbol_filenames): Use
15535 all_objfiles.
15536 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15537 all_objfiles.
15538 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15539 * objc-lang.c (find_methods): Use all_objfiles.
15540 * objfiles.c (have_partial_symbols, have_full_symbols)
15541 (have_minimal_symbols, qsort_cmp)
15542 (default_iterate_over_objfiles_in_search_order): Use
15543 all_objfiles.
15544 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15545 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15546 (maintenance_check_psymtabs): Use all_objfiles.
15547 (ALL_PSYMTABS): Remove.
15548 * compile/compile-object-run.c (do_module_cleanup): Use
15549 all_objfiles.
15550 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15551 * cp-support.c (add_symbol_overload_list_qualified): Use
15552 all_objfiles.
15553 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15554 Use all_objfiles.
15555 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15556 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15557 all_objfiles.
15558 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15559 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15560 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15561 Uses all_objfiles.
15562 * solib.c (solib_read_symbols): Use all_objfiles
15563
15564 2019-01-09 Tom Tromey <tom@tromey.com>
15565
15566 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15567 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15568 all_objfiles.
15569 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15570 * symmisc.c (print_symbol_bcache_statistics)
15571 (print_objfile_statistics, maintenance_print_objfiles)
15572 (maintenance_info_symtabs, maintenance_check_symtabs)
15573 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15574 all_objfiles.
15575 * source.c (forget_cached_source_info): Use all_objfiles.
15576 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15577 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15578 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15579 * objfiles.c (update_section_map): Use all_objfiles.
15580 (shared_objfile_contains_address_p): Likewise.
15581 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15582 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15583
15584 2019-01-09 Tom Tromey <tom@tromey.com>
15585
15586 * common/next-iterator.h: New file.
15587 * objfiles.h (class all_objfiles): New.
15588 (struct objfile_iterator): New.
15589
15590 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15591
15592 * NEWS: Move the description of the changed "frame", "select-frame",
15593 and "info frame" commands to the Changed commands section.
15594
15595 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15596
15597 * gdbtypes.c (check_stub_method_group): Remove handling of old
15598 mangling schemes.
15599 * linespec.c (find_methods): Likewise.
15600 * stabsread.c (read_member_functions): Likewise.
15601 * valops.c (search_struct_method): Likewise.
15602 (value_struct_elt_for_reference): Likewise.
15603 * NEWS: Mention this change.
15604
15605 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15606
15607 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15608 print_source_lines.
15609 * source.c (print_source_lines_base): Update line number check.
15610 (print_source_lines): New function.
15611 (source_lines_range::source_lines_range): New function.
15612 * source.h (class source_lines_range): New class.
15613 (print_source_lines): New declaration.
15614
15615 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15616
15617 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15618
15619 2019-01-08 Tom Tromey <tom@tromey.com>
15620 Simon Marchi <simon.marchi@ericsson.com>
15621
15622 PR gdb/24060
15623 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15624 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15625 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15626 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15627 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15628 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15629
15630 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15631
15632 * source.c (select_source_symtab): Move header comment to
15633 declaration in source.h.
15634 (forget_cached_source_info_for_objfile): Likewise.
15635 (forget_cached_source_info): Likewise.
15636 (identify_source_line): Likewise.
15637 * source.h (identify_source_line): Move declaration from symtab.h
15638 and add comment from source.c
15639 (print_source_lines): Likewise.
15640 (forget_cached_source_info_for_objfile): Likewise.
15641 (forget_cached_source_info): Likewise.
15642 (select_source_symtab): Likewise.
15643 (enum print_source_lines_flag): Move definition from symtab.h.
15644 * symtab.h (identify_source_line): Move declaration to source.h.
15645 (print_source_lines): Likewise.
15646 (forget_cached_source_info_for_objfile): Likewise.
15647 (forget_cached_source_info): Likewise.
15648 (select_source_symtab): Likewise.
15649 (enum print_source_lines_flag): Move definition to source.h.
15650 * tui/tui-hooks.c: Add 'source.h' include.
15651
15652 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15653
15654 * source.c (print_source_lines_base): Handle requests to print
15655 reverse line number sequences, and guard against empty lines
15656 string.
15657
15658 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15659
15660 * source.c (print_source_lines_base): Fix skip of '\r' if next
15661 character is '\n'.
15662
15663 2019-01-06 Tom Tromey <tom@tromey.com>
15664
15665 * c-exp.y (struct c_parse_state) <macro_original_text,
15666 expansion_obstack>: New member.
15667 (macro_original_text, expansion_obstack): Remove globals.
15668 (scan_macro_expansion, scanning_macro_expansion)
15669 (finished_macro_expansion): Update.
15670 (scan_macro_cleanup): Remove.
15671 (yylex, c_parse): Update.
15672
15673 2019-01-06 Tom Tromey <tom@tromey.com>
15674
15675 * c-exp.y (struct c_parse_state) <strings>: New member.
15676 (operator_stoken): Update.
15677
15678 2019-01-06 Tom Tromey <tom@tromey.com>
15679
15680 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15681 (union type_stack_elt) <typelist_val>: Now a pointer to
15682 std::vector.
15683 (type_stack_cleanup): Don't declare.
15684 (push_typelist): Update.
15685 * parse.c (pop_typelist): Return a std::vector.
15686 (push_typelist): Take a std::vector.
15687 (follow_types): Update. Do not free args.
15688 (type_stack_cleanup): Remove.
15689 * c-exp.y (struct c_parse_state): New.
15690 (cpstate): New global.
15691 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15692 (nonempty_typelist): Update.
15693 (func_mod): Create a new vector.
15694 (c_parse): Create a c_parse_state.
15695 (check_parameter_typelist): Do not delete params.
15696 (function_method): Update. Do not delete type_list.
15697
15698 2019-01-06 Tom Tromey <tom@tromey.com>
15699
15700 PR gdb/28155:
15701 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15702 check_typedef.
15703 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15704 (print_return_value): Likewise.
15705
15706 2019-01-05 Tom Tromey <tom@tromey.com>
15707
15708 * contrib/cleanup_check.py: Remove.
15709 * contrib/gcc-with-excheck: Remove.
15710 * contrib/exsummary.py: Remove.
15711 * contrib/excheck.py: Remove.
15712
15713 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15714
15715 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15716 NULL. Initialize tpprev to NULL instead of assigning it
15717 to NULL on the next statement.
15718 * windows-nat.c (windows_delete_thread): Remove check for
15719 main_thread_id before printing thread exit notifications.
15720 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15721 Remove thread ID check against main_thread_id.
15722 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15723 windows_delete_thread.
15724 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15725
15726 2019-01-04 Tom Tromey <tom@tromey.com>
15727
15728 * compile/compile.c (_initialize_compile): Use upper case for
15729 metasyntactic variables.
15730 * symmisc.c (_initialize_symmisc): Use upper case for
15731 metasyntactic variables.
15732 * psymtab.c (_initialize_psymtab): Use upper case for
15733 metasyntactic variables.
15734 * demangle.c (demangle_command): Use upper case for metasyntactic
15735 variables.
15736 (_initialize_demangler): Likewise.
15737 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15738 variables.
15739
15740 2019-01-03 Tom Tromey <tom@tromey.com>
15741
15742 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15743
15744 2019-01-03 Tom Tromey <tom@tromey.com>
15745
15746 * python/py-symtab.c (salpy_str): Update.
15747 (struct salpy_sal_object) <symtab>: Now a PyObject.
15748 (salpy_dealloc): Update.
15749 (del_objfile_sal): Use gdbpy_ref.
15750
15751 2019-01-03 Tom Tromey <tom@tromey.com>
15752
15753 * python/py-type.c (convert_field): Use new_reference. Return
15754 gdbpy_ref.
15755 (make_fielditem): Return gdbpy_ref.
15756 (typy_fields): Update.
15757 (typy_getitem): Update.
15758 (field_name): Return gdbpy_ref. Use new_reference.
15759 (typy_iterator_iternext): Update.
15760
15761 2019-01-03 Tom Tromey <tom@tromey.com>
15762
15763 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15764
15765 2019-01-03 Tom Tromey <tom@tromey.com>
15766
15767 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15768 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15769 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15770 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15771 (pspy_set_type_printers): Likewise.
15772 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15773 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15774 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15775 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15776 (objfpy_set_type_printers): Likewise.
15777
15778 2019-01-03 Tom Tromey <tom@tromey.com>
15779
15780 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15781 (gdbpy_print_stack): Use gdbpy_err_fetch.
15782 * python/python-internal.h (class gdbpy_err_fetch): New class.
15783 (class gdbpy_enter) <m_error_type, m_error_value,
15784 m_error_traceback>: Remove.
15785 <m_error>: New member.
15786 (gdbpy_exception_to_string): Don't declare.
15787 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15788 * python/py-value.c (convert_value_from_python): Use
15789 gdbpy_err_fetch.
15790 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15791 gdbpy_exception_to_string.
15792 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15793 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15794 gdbpy_err_fetch.
15795
15796 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15797
15798 * linux-nat.c (delete_lwp_cleanup): Delete.
15799 (struct lwp_deleter): New struct.
15800 (lwp_info_up): New typedef.
15801 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15802 lwp_info_up.
15803
15804 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15805
15806 * linux-fork.c (class scoped_switch_fork_info): New class.
15807 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15808
15809 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15810
15811 * valops.c (find_overload_match): Remove use of null_cleanup, and
15812 calls to do_cleanups.
15813
15814 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15815
15816 * compile/compile-cplus-types.c
15817 (compile_cplus_instance::decl_name): Handle changes to
15818 cp_func_name.
15819 * cp-support.c (cp_func_name): Update header comment, update
15820 return type.
15821 * cp-support.h (cp_func_name): Update return type in declaration.
15822 * valops.c (find_overload_match): Move temp_func local to top
15823 level of function and change its type. Use temp_func to hold and
15824 delete temporary string obtained from cp_func_name.
15825
15826 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15827
15828 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15829 gdb::char_vector, remove cleanup, and update uses of `msg`.
15830
15831 2019-01-03 Jim Wilson <jimw@sifive.com>
15832
15833 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15834
15835 2019-01-02 Tom Tromey <tom@tromey.com>
15836
15837 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15838 (tdesc_parse_xml): Remove cleanups.
15839 * target-descriptions.h (make_cleanup_free_target_description):
15840 Don't declare.
15841 (target_desc_deleter): New struct.
15842 (target_desc_up): New typedef.
15843 * target-descriptions.c (target_desc_deleter::operator()): Rename
15844 from free_target_description.
15845 (make_cleanup_free_target_description): Remove.
15846
15847 2019-01-02 Tom Tromey <tom@tromey.com>
15848
15849 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15850 constructor, destructor.
15851 (linespec_parser): Remove typedef.
15852 (~linespec_parser): Rename from linespec_parser_delete.
15853 (linespec_lex_to_end, linespec_complete_label)
15854 (linespec_complete): Update.
15855 (decode_line_full): Remove cleanups.
15856 (decode_line_1): Update.
15857
15858 2019-01-02 Tom Tromey <tom@tromey.com>
15859
15860 * python/python-internal.h (inferior_to_inferior_object): Change
15861 return type.
15862 * python/py-exitedevent.c (create_exited_event_object): Update.
15863 * python/py-inferior.c (inferior_to_inferior_object): Return
15864 gdbpy_ref.
15865 (python_new_inferior, python_inferior_deleted)
15866 (thread_to_thread_object, delete_thread_object)
15867 (build_inferior_list, gdbpy_selected_inferior): Update.
15868 * python/py-infthread.c (create_thread_object): Update. Also fail
15869 if inferior_to_inferior_object fails.
15870
15871 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15872
15873 * inferior.h (class inferior) <displaced_step_state>: New field.
15874 * infrun.h (struct displaced_step_state): Move here from
15875 infrun.c. Initialize fields, add constructor.
15876 <inf>: Remove field.
15877 <reset>: New method.
15878 * infrun.c (struct displaced_step_inferior_state): Move to
15879 infrun.h.
15880 (displaced_step_inferior_states): Remove.
15881 (get_displaced_stepping_state): Adust.
15882 (displaced_step_in_progress_any_inferior): Adjust.
15883 (displaced_step_in_progress_thread): Adjust.
15884 (displaced_step_in_progress): Adjust.
15885 (add_displaced_stepping_state): Remove.
15886 (get_displaced_step_closure_by_addr): Adjust.
15887 (remove_displaced_stepping_state): Remove.
15888 (infrun_inferior_exit): Call displaced_step_state.reset.
15889 (use_displaced_stepping): Don't check for NULL.
15890 (displaced_step_prepare_throw): Call
15891 get_displaced_stepping_state.
15892 (displaced_step_fixup): Don't check for NULL.
15893 (prepare_for_detach): Don't check for NULL.
15894
15895 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15896
15897 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15898 in case of call that did not complete.
15899
15900 2019-01-02 Andrey Utkin <autkin@undo.io>
15901
15902 * symfile.c (find_separate_debug_file): Fix search of debug files for
15903 remote debuggee.
15904
15905 2019-01-02 Tom Tromey <tom@tromey.com>
15906
15907 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15908 indentation.
15909 * python/py-frame.c (frapy_older): Remove cast.
15910 (frapy_newer): Likewise.
15911 * python/py-breakpoint.c (local_setattro): Remove cast.
15912 * python/py-arch.c (archpy_name): Remove local variable.
15913 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15914
15915 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15916
15917 * unittests/basic_string_view/element_access/char/empty.cc:
15918 Fix year range in copyright header.
15919
15920 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15921
15922 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15923 Delete.
15924 <operator==>: Update with for removed field.
15925 <hash>: Likewise.
15926 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15927 <isa_features>: ...this.
15928 <abi_features>: New field.
15929 (riscv_isa_flen): Update comment.
15930 (riscv_abi_xlen): New declaration.
15931 (riscv_abi_flen): New declaration.
15932 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15933 isa_features.
15934 (riscv_abi_xlen): New function.
15935 (riscv_isa_flen): Update to get answer from isa_features.
15936 (riscv_abi_flen): New function.
15937 (riscv_has_fp_abi): Update to get answer from abi_features.
15938 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15939 xlen and flen.
15940 (riscv_call_info) <xlen, flen>: Update comment.
15941 (riscv_call_arg_struct): Remove invalid assertions
15942 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15943 is removed.
15944 (riscv_gdbarch_init): Gather isa features and abi features
15945 separately, ensure both match on the gdbarch when reusing an old
15946 gdbarch. Relax an error check to allow 32-bit abi float to run on
15947 a target with 64-bit float hardware.
15948
15949 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15950
15951 * source.c (search_command_helper): Stop reverse search
15952 when line 1 has been searched.
15953
15954 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15955
15956 * record-full.c (record_full_base_target::close): Rewrite
15957 record_full_core_buf_list free logic.
15958
15959 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15960
15961 * break-catch-syscall.c (print_one_catch_syscall): xfree
15962 the last text.
15963
15964 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15965
15966 * top.c (print_gdb_version): Update Copyright year in version
15967 message.
15968
15969 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15970
15971 Update copyright year range in all GDB files.
15972
15973 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15974
15975 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15976
15977 For older changes see ChangeLog-2018.
15978 \f
15979 Local Variables:
15980 mode: change-log
15981 left-margin: 8
15982 fill-column: 74
15983 version-control: never
15984 coding: utf-8
15985 End:
15986
This page took 0.366823 seconds and 4 git commands to generate.