d123622a42460939fc43e507a90c42767b224abd
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * cli/cli-script.c (do_define_command): Ensure a redefined
4 prefix command is kept as a prefix command.
5 (define_prefix_command): New function.
6 (show_user_1): Report user defined prefixes.
7 (_initialize_cli_script): Create the new 'define-prefix' command.
8 Add completers for 'define' and 'document'.
9 * top.c (execute_command): If command is a user-defined prefix only
10 command, report the list of commands for this prefix command.
11
12 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13
14 * valops.c (find_oload_champ): Improve debug output.
15
16 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17
18 * valops.c (find_oload_champ): Print part of debug messages
19 before the badness vector is std::move'd.
20
21 2019-11-28 Tom Tromey <tom@tromey.com>
22
23 * value.c (creal_internal_fn): Fix comment.
24
25 2019-11-28 Tom Tromey <tom@tromey.com>
26
27 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
28 flag_bound_evaluated>: Now unsigned.
29
30 2019-11-28 Tom Tromey <tom@tromey.com>
31
32 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
33 declare.
34
35 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
36
37 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
38 debug output.
39 * jit.c (jit_unregister_code): Add debug print to match
40 `jit_register_code`.
41
42 2019-11-27 Christian Biesinger <cbiesinger@google.com>
43
44 * NEWS: Mention the new multithreaded symbol loading.
45
46 2019-11-27 Christian Biesinger <cbiesinger@google.com>
47
48 * maint.c (n_worker_threads): Default to 0.
49 (worker_threads_disabled): New function.
50 * maint.h (worker_threads_disabled): New function.
51 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
52 here if worker_threads_disabled () is true.
53 (minimal_symbol_reader::install): Skip all threading if
54 worker_threads_disabled () is true.
55
56 2019-11-27 Christian Biesinger <cbiesinger@google.com>
57
58 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
59 hash code if possible.
60 (add_minsym_to_demangled_hash_table): Likewise.
61 (minimal_symbol_reader::install): Compute the hash codes for msymbol
62 on the background thread.
63 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
64 Add these fields.
65
66 2019-11-27 Christian Biesinger <cbiesinger@google.com>
67
68 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
69 of the mangled name on the background thread.
70 * symtab.c (symbol_set_names): Allow passing in the hash of the
71 linkage_name.
72 * symtab.h (symbol_set_names): Likewise.
73
74 2019-11-27 Kevin Buettner <kevinb@redhat.com>
75
76 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
77 physnames are computed for inherited DIEs.
78
79 2019-11-27 Tom Tromey <tromey@adacore.com>
80
81 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
82 backslashes.
83 * cp-support.c: Remove unnecessary backslashes.
84
85 2019-11-27 Christian Biesinger <cbiesinger@google.com>
86
87 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
88 with sym->set_linkage_name.
89 * coffread.c (coff_read_enum_type): Likewise.
90 * mdebugread.c (parse_symbol): Likewise.
91 * stabsread.c (patch_block_stabs): Likewise.
92 (define_symbol): Likewise.
93 (read_enum_type): Likewise.
94 (common_block_end): Likewise.
95 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
96 function.
97 (SYMBOL_SET_LINKAGE_NAME): Remove.
98 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
99 with sym->set_linkage_name.
100
101 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
104 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
105 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
106 * NEWS: Mention new MI command.
107
108 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
111 '-symbol-info-types', and '-symbol-info-variables'.
112 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
113 (mi_cmd_symbol_info_types): Declare.
114 (mi_cmd_symbol_info_variables): Declare.
115 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
116 (output_debug_symbol): New function.
117 (output_nondebug_symbol): New function.
118 (mi_symbol_info): New function.
119 (mi_info_functions_or_variables): New function.
120 (mi_cmd_symbol_info_functions): New function.
121 (mi_cmd_symbol_info_types): New function.
122 (mi_cmd_symbol_info_variables): New function.
123 * NEWS: Mention new commands.
124
125 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * symtab.c (symbol_to_info_string): New function, most content
128 moved from print_symbol_info, but updated to return a std::string.
129 (print_symbol_info): Update to use symbol_to_info_string and print
130 returned string.
131 * symtab.h (symbol_to_info_string): Declare new function.
132
133 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * python/python.c (gdbpy_rbreak): Convert to using
136 global_symbol_searcher.
137 * symtab.c (file_matches): Convert return type to bool, change
138 file list to std::vector, update header comment.
139 (search_symbols): Rename to...
140 (global_symbol_searcher::search): ...this and update now its
141 a member function of global_symbol_searcher. Take account of the
142 changes to file_matches.
143 (symtab_symbol_info): Convert to using global_symbol_searcher.
144 (rbreak_command): Likewise.
145 (search_module_symbols): Likewise.
146 * symtab.h (enum symbol_search): Update comment.
147 (search_symbols): Remove declaration.
148 (class global_symbol_searcher): New class.
149
150 2019-11-26 Tom Tromey <tromey@adacore.com>
151
152 * cp-support.c (_initialize_cp_support): Conditionally initialize
153 gdb_demangle_attempt_core_dump.
154
155 2019-11-26 Tom Tromey <tom@tromey.com>
156
157 * python/py-function.c (fnpy_init): Update.
158 * value.h (add_internal_function): Adjust declaration.
159 * value.c (function_destroyer): Remove.
160 (do_add_internal_function): Don't set destroyer or copy name.
161 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
162 Set name_allocated.
163 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
164 (cmdpy_init): Set name_allocated.
165 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
166 member.
167 (~cmd_list_element): Free "name" if needed.
168
169 2019-11-26 Tom Tromey <tom@tromey.com>
170
171 * value.h (add_internal_function): Add new overload. Move
172 documentation from value.h.
173 * value.c (do_add_internal_function): New function.
174 (add_internal_function): Use it. Add new overload.
175 (function_destroyer): Don't free doc.
176 * python/py-function.c (fnpy_init): Update.
177
178 2019-11-26 Tom Tromey <tom@tromey.com>
179
180 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
181 (cmdpy_init): Set "doc_allocated".
182
183 2019-11-26 Tom Tromey <tom@tromey.com>
184
185 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
186 name of worker thread.
187 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
188 pthread_setname_np.
189 * configure, config.in: Rebuild.
190
191 2019-11-26 Tom Tromey <tom@tromey.com>
192
193 * python/python.c (class gdbpy_gil): New.
194 (struct gdbpy_event): Add constructor, destructor, operator().
195 (gdbpy_post_event): Use run_on_main_thread.
196 (gdbpy_initialize_events): Remove.
197 (do_start_initialization): Update.
198
199 2019-11-26 Tom Tromey <tom@tromey.com>
200
201 * NEWS: Add entry.
202 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
203 commands. Call update_thread_pool_size.
204 (update_thread_pool_size, maintenance_set_worker_threads): New
205 functions.
206 (n_worker_threads): New global.
207
208 2019-11-26 Christian Biesinger <cbiesinger@google.com>
209 Tom Tromey <tom@tromey.com>
210
211 * minsyms.c (minimal_symbol_reader::install): Use
212 parallel_for_each.
213 * gdbsupport/parallel-for.h: New file.
214 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
215
216 2019-11-26 Christian Biesinger <cbiesinger@google.com>
217 Tom Tromey <tom@tromey.com>
218
219 * gdbsupport/thread-pool.h: New file.
220 * gdbsupport/thread-pool.c: New file.
221 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
222 (HFILES_NO_SRCDIR): Add thread-pool.h.
223
224 2019-11-26 Tom Tromey <tom@tromey.com>
225
226 * event-top.h (thread_local_segv_handler): Declare.
227 * event-top.c (thread_local_segv_handler): New global.
228 (install_handle_sigsegv, handle_sigsegv): New functions.
229 (async_init_signals): Install SIGSEGV handler.
230 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
231 thread-local.
232 (report_failed_demangle): New function.
233 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
234 handler-setting code, instead use segv_handler. Run warning code
235 on main thread.
236
237 2019-11-26 Tom Tromey <tom@tromey.com>
238
239 * run-on-main-thread.c: New file.
240 * run-on-main-thread.h: New file.
241 * unittests/main-thread-selftests.c: New file.
242 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
243 main-thread-selftests.c.
244 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
245 (COMMON_SFILES): Add run-on-main-thread.c.
246
247 2019-11-26 Tom Tromey <tom@tromey.com>
248
249 * main.c (setup_alternate_signal_stack): Remove.
250 (captured_main_1): Use gdb::alternate_signal_stack.
251 * gdbsupport/alt-stack.h: New file.
252
253 2019-11-26 Tom Tromey <tom@tromey.com>
254
255 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
256 Remove comment.
257 (save_original_signals_state, restore_original_signals_state): Use
258 gdb_sigmask.
259 * linux-nat.c (block_child_signals, restore_child_signals_mask)
260 (_initialize_linux_nat): Use gdb_sigmask.
261 * guile/guile.c (_initialize_guile): Use block_signals.
262 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
263 * gdbsupport/gdb-sigmask.h: New file.
264 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
265 * cp-support.c (gdb_demangle): Use gdb_sigmask.
266 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
267 pthread_sigmask.
268 * configure, config.in: Rebuild.
269 * gdbsupport/block-signals.h: New file.
270
271 2019-11-26 Tom Tromey <tom@tromey.com>
272
273 * acinclude.m4: Include ax_pthread.m4.
274 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
275 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
276 (CLIBS): Use PTHREAD_LIBS.
277 (aclocal_m4_deps): Add ax_pthread.m4.
278 * config.in, configure: Rebuild.
279 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
280
281 2019-11-26 Tom Tromey <tom@tromey.com>
282
283 * symtab.h (struct minimal_symbol) <name_set>: New member.
284 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
285 Don't call symbol_set_names.
286 (minimal_symbol_reader::install): Call symbol_set_names.
287
288 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
289
290 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
291 restore_active_ext_lang, as GIL is needed for (indirectly)
292 called PyOS_InterruptOccurred.
293
294 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
295
296 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
297 definition.
298
299 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
300
301 * remote-sim.c (simulator_command): Make static, remove
302 declaration.
303
304 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
305
306 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
307 static.
308 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
309 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
310 (main): Likewise.
311 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
312 (main): Likewise.
313 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
314 (main): Likewise.
315 * unittests/basic_string_view/element_access/char/1.cc (test01):
316 Likewise.
317 (main): Likewise.
318 * unittests/basic_string_view/element_access/char/empty.cc (main):
319 Likewise.
320 * unittests/basic_string_view/element_access/char/front_back.cc
321 (test01): Likewise.
322 (main): Likewise.
323 * unittests/basic_string_view/inserters/char/2.cc (test05):
324 Likewise.
325 (main): Likewise.
326 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
327 (test01): Likewise.
328 (main): Likewise.
329 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
330 (test01): Likewise.
331 (main): Likewise.
332 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
333 Likewise.
334 * unittests/basic_string_view/operations/compare/char/1.cc
335 (test01): Likewise.
336 (main): Likewise.
337 * unittests/basic_string_view/operations/compare/char/13650.cc
338 (test01): Likewise.
339 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
340 Likewise.
341 (main): Likewise.
342 * unittests/basic_string_view/operations/data/char/1.cc (test01):
343 Likewise.
344 (main): Likewise.
345 * unittests/basic_string_view/operations/find/char/1.cc (test01):
346 Likewise.
347 (main): Likewise.
348 * unittests/basic_string_view/operations/find/char/2.cc (test02):
349 Likewise.
350 (main): Likewise.
351 * unittests/basic_string_view/operations/find/char/3.cc (test03):
352 Likewise.
353 (main): Likewise.
354 * unittests/basic_string_view/operations/find/char/4.cc (main):
355 Likewise.
356 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
357 Likewise.
358 (main): Likewise.
359 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
360 Likewise.
361 (main): Likewise.
362 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
363 Likewise.
364 (main): Likewise.
365 * unittests/basic_string_view/operations/substr/char/1.cc
366 (test01): Likewise.
367 (main): Likewise.
368 * unittests/basic_string_view/operators/char/2.cc (main):
369 Likewise.
370 * unittests/optional/assignment/1.cc (test): Likewise.
371 * unittests/optional/assignment/2.cc (test): Likewise.
372 * unittests/optional/assignment/3.cc (test): Likewise.
373 * unittests/optional/assignment/4.cc (test): Likewise.
374 * unittests/optional/assignment/5.cc (test): Likewise.
375 * unittests/optional/assignment/6.cc (test): Likewise.
376 * unittests/optional/assignment/7.cc (test): Likewise.
377 * unittests/optional/cons/copy.cc (test): Likewise.
378 * unittests/optional/cons/default.cc (test): Likewise.
379 * unittests/optional/cons/move.cc (test): Likewise.
380 * unittests/optional/cons/value.cc (test): Likewise.
381 * unittests/optional/in_place.cc (test): Likewise.
382 * unittests/optional/observers/1.cc (test): Likewise.
383 * unittests/optional/observers/2.cc (test): Likewise.
384
385 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
386
387 * tui-win.h (tui_set_var_cmd): Remove.
388 * tui-win.c (tui_set_var_cmd): Make static.
389
390 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
391
392 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
393 rbreak_command_wrapper): Remove.
394 * symtab.c (rbreak_command_wrapper): Remove.
395
396 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
397
398 * inferior.h (info_terminal_command): Remove declaration.
399 * inflow.c (info_terminal_command): Make static.
400
401 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
402
403 * inferior.c (exit_inferior_silent): Remove.
404
405 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
406
407 * dictionary.c (dict_empty, mdict_empty): Remove.
408 * dictionary.c (mdict_empty): Remove.
409
410 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
411
412 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
413 (arc_insn_get_memory_offset): Likewise.
414 (arc_insn_dump): Likewise.
415 * cp-support.c (test_cp_symbol_name_matches): Likewise.
416 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
417 * dictionary.c (dict_iterator_next): Likewise.
418 (dict_iter_match_first): Likewise.
419 (dict_iter_match_next): Likewise.
420 * f-lang.c (evaluate_subexp_f): Likewise.
421 * hppa-tdep.c (hppa_read_pc): Likewise.
422 * i386-tdep.c (i386_floatformat_for_type): Likewise.
423 * parse.c (write_exp_elt_msym): Likewise.
424 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
425 * remote.c (remote_packet_size): Likewise.
426 (remote_notif_stop_parse): Likewise.
427 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
428 * s12z-tdep.c (s12z_disassemble_info): Likewise.
429 * source.c (prepare_path_for_appending): Likewise.
430 * sparc64-linux-tdep.c
431 (sparc64_linux_handle_segmentation_fault); Likewise.
432 * stack.c (frame_selection_by_function_completer): Likewise.
433
434 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
435
436 * completer.c (set_gdb_completion_word_break_characters):
437 Remove.
438
439 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
440
441 * dwarf-index-write.c: Include dwarf-index-write.h.
442 * mi/mi-interp.c: Include mi/mi-interp.h.
443
444 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
445
446 * aarch32-tdep.c: Include aarch32-tdep.h.
447 * aarch32-tdep.h: Forward-declare struct target_desc.
448
449 2019-11-26 Christian Biesinger <cbiesinger@google.com>
450
451 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
452 strerror.
453 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
454 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
455
456 2019-11-25 Tom de Vries <tdevries@suse.de>
457
458 * contrib/words.sh: Add -c option.
459
460 2019-11-25 Christian Biesinger <cbiesinger@google.com>
461
462 * solib.c (solib_find_1): Change int to bool.
463 (exec_file_find): Change int to bool.
464 (solib_find): Change int to bool.
465 (solib_read_symbols): Change int to bool.
466 (solib_used): Change int to bool.
467 (solib_add): Change int to bool.
468 (info_sharedlibrary_command): Change int to bool.
469 (solib_contains_address_p): Change int to bool.
470 (solib_keep_data_in_core): Change int to bool.
471 (in_solib_dynsym_resolve_code): Change int to bool.
472 (reload_shared_libraries_1): Change int to bool.
473 (gdb_sysroot_changed): Change int to bool.
474 * solib.h (solib_read_symbols): Change int to bool.
475 (solib_contains_address_p): Change int to bool.
476 (solib_keep_data_in_core): Change int to bool.
477 (in_solib_dynsym_resolve_code): Change int to bool.
478 (libpthread_name_p): Change int to bool.
479
480 2019-11-25 Luis Machado <luis.machado@linaro.org>
481
482 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
483 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
484 (remote_packet_max_chars): New static global.
485 (show_remote_packet_max_chars): New function.
486 (remote_target::putpkt_binary): Adjust to use new
487 remote_packet_max_chars option.
488 (remote_target::getpkt_or_notif_sane_1): Likewise.
489 (_initialize_remote): Register new remote-packet-max-chars option.
490
491 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
492
493 * m68k-linux-nat.c: Include gdbarch.h.
494
495 2019-11-24 Tom Tromey <tom@tromey.com>
496
497 * symfile.c (read_symbols): Update.
498 * psymtab.c (require_partial_symbols): Change type of "verbose" to
499 bool.
500 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
501 (psym_lookup_symbol, psym_find_last_source_symtab)
502 (psym_forget_cached_source_info, psym_print_stats)
503 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
504 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
505 (psym_map_matching_symbols, psym_expand_symtabs_matching)
506 (psym_find_compunit_symtab_by_address)
507 (maintenance_print_psymbols, maintenance_info_psymtabs)
508 (maintenance_check_psymtabs): Update.
509 * psymtab.h (require_partial_symbols): Change type of "verbose" to
510 bool.
511
512 2019-11-22 Tom Tromey <tom@tromey.com>
513
514 * observable.h: Update comments.
515
516 2019-11-22 Tom Tromey <tromey@adacore.com>
517
518 * ada-tasks.c (ada_task_is_alive): Make parameter const.
519 (print_ada_task_info): Don't try to fetch thread id if task is not
520 alive.
521
522 2019-11-22 Christian Biesinger <cbiesinger@google.com>
523
524 * ada-exp.y: Update.
525 * ada-lang.c (sort_choices): Update.
526 (ada_print_symbol_signature): Update.
527 (resolve_subexp): Update.
528 (ada_parse_renaming): Update.
529 (ada_read_renaming_var_value): Update.
530 (lesseq_defined_than): Update.
531 (remove_extra_symbols): Update.
532 (remove_irrelevant_renamings): Update.
533 (ada_add_block_symbols): Update.
534 (ada_collect_symbol_completion_matches): Update.
535 (ada_is_renaming_symbol): Update.
536 (aggregate_assign_from_choices): Update.
537 (ada_evaluate_subexp): Update.
538 (ada_has_this_exception_support): Update.
539 (ada_is_non_standard_exception_sym): Update.
540 (ada_add_exceptions_from_frame): Update.
541 (ada_add_global_exceptions): Update.
542 (ada_print_subexp): Update.
543 * ax-gdb.c (gen_var_ref): Update.
544 (gen_maybe_namespace_elt): Update.
545 (gen_expr_for_cast): Update.
546 (gen_expr): Update.
547 * block.h: Update.
548 * blockframe.c (find_pc_partial_function): Update.
549 * breakpoint.c (print_breakpoint_location): Update.
550 (update_static_tracepoint): Update.
551 * btrace.c (ftrace_print_function_name): Update.
552 (ftrace_function_switched): Update.
553 * buildsym.c (find_symbol_in_list): Update.
554 * c-exp.y: Update.
555 * c-typeprint.c (c_print_typedef): Update.
556 (c_type_print_template_args): Update.
557 * cli/cli-cmds.c (edit_command): Update.
558 (list_command): Update.
559 (print_sal_location): Update.
560 * coffread.c (patch_opaque_types): Update.
561 (process_coff_symbol): Update.
562 (coff_read_enum_type): Update.
563 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
564 (convert_one_symbol): Update.
565 (hash_symname): Update.
566 (eq_symname): Update.
567 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
568 * compile/compile-cplus-types.c (debug_print_scope): Update.
569 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
570 * compile/compile-object-load.c (get_out_value_type): Update.
571 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
572 (search_symbol_list): Update.
573 (cp_lookup_symbol_imports_or_template): Update.
574 * cp-support.c (overload_list_add_symbol): Update.
575 * ctfread.c (psymtab_to_symtab): Update.
576 * dbxread.c (cp_set_block_scope): Update.
577 * dictionary.c (iter_match_first_hashed): Update.
578 (iter_match_next_hashed): Update.
579 (insert_symbol_hashed): Update.
580 (iter_match_next_linear): Update.
581 * dictionary.h: Update.
582 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
583 (locexpr_describe_location_piece): Update.
584 (locexpr_describe_location_1): Update.
585 (locexpr_generate_c_location): Update.
586 (loclist_describe_location): Update.
587 (loclist_generate_c_location): Update.
588 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
589 (read_func_scope): Update.
590 (process_enumeration_scope): Update.
591 (new_symbol): Update.
592 (dwarf2_const_value): Update.
593 (dwarf2_symbol_mark_computed): Update.
594 * eval.c (evaluate_funcall): Update.
595 (evaluate_subexp_standard): Update.
596 * expprint.c (print_subexp_standard): Update.
597 (dump_subexp_body_standard): Update.
598 * f-valprint.c (info_common_command_for_block): Update.
599 * findvar.c (get_hosting_frame): Update.
600 (default_read_var_value): Update.
601 * go-lang.c (go_symbol_package_name): Update.
602 * guile/scm-block.c (bkscm_print_block_smob): Update.
603 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
604 (gdbscm_symbol_name): Update.
605 (gdbscm_symbol_linkage_name): Update.
606 (gdbscm_symbol_print_name): Update.
607 * infcall.c (get_function_name): Update.
608 * infcmd.c (jump_command): Update.
609 (finish_command): Update.
610 * infrun.c (insert_exception_resume_breakpoint): Update.
611 * linespec.c (canonicalize_linespec): Update.
612 (create_sals_line_offset): Update.
613 (convert_linespec_to_sals): Update.
614 (complete_label): Update.
615 (find_label_symbols_in_block): Update.
616 * m2-typeprint.c (m2_print_typedef): Update.
617 * mdebugread.c (mdebug_reg_to_regnum): Update.
618 (parse_symbol): Update.
619 (mylookup_symbol): Update.
620 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
621 (list_args_or_locals): Update.
622 * objc-lang.c (compare_selectors): Update.
623 (info_selectors_command): Update.
624 (compare_classes): Update.
625 (info_classes_command): Update.
626 (find_imps): Update.
627 * p-typeprint.c (pascal_print_typedef): Update.
628 * printcmd.c (build_address_symbolic): Update.
629 (info_address_command): Update.
630 (print_variable_and_value): Update.
631 * python/py-framefilter.c (extract_sym): Update.
632 (py_print_single_arg): Update.
633 * python/py-symbol.c (sympy_str): Update.
634 (sympy_get_name): Update.
635 (sympy_get_linkage_name): Update.
636 * python/python.c (gdbpy_rbreak): Update.
637 * record-btrace.c (btrace_get_bfun_name): Update.
638 (btrace_call_history): Update.
639 * rust-lang.c (rust_print_typedef): Update.
640 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
641 * stabsread.c (stab_reg_to_regnum): Update.
642 (define_symbol): Update.
643 (read_enum_type): Update.
644 (common_block_end): Update.
645 (cleanup_undefined_types_1): Update.
646 (scan_file_globals): Update.
647 * stack.c (print_frame_arg): Update.
648 (print_frame_args): Update.
649 (find_frame_funname): Update.
650 (info_frame_command_core): Update.
651 (iterate_over_block_locals): Update.
652 (print_block_frame_labels): Update.
653 (do_print_variable_and_value): Update.
654 (iterate_over_block_arg_vars): Update.
655 (return_command): Update.
656 * symmisc.c (dump_symtab_1): Update.
657 (print_symbol): Update.
658 * symtab.c (eq_symbol_entry): Update.
659 (symbol_cache_dump): Update.
660 (lookup_language_this): Update.
661 (find_pc_sect_line): Update.
662 (skip_prologue_sal): Update.
663 (symbol_search::compare_search_syms): Update.
664 (treg_matches_sym_type_name): Update.
665 (search_symbols): Update.
666 (print_symbol_info): Update.
667 (rbreak_command): Update.
668 (completion_list_add_symbol): Update.
669 (find_gnu_ifunc): Update.
670 (get_symbol_address): Update.
671 (search_module_symbols): Update.
672 (info_module_subcommand): Update.
673 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
674 (SYMBOL_LINKAGE_NAME): Remove.
675 (SYMBOL_DEMANGLED_NAME): Remove.
676 (SYMBOL_PRINT_NAME): Remove.
677 (SYMBOL_SEARCH_NAME): Remove.
678 * tracepoint.c (set_traceframe_context): Update.
679 (validate_actionline): Update.
680 (collection_list::collect_symbol): Update.
681 (encode_actions_1): Update.
682 (info_scope_command): Update.
683 (print_one_static_tracepoint_marker): Update.
684 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
685 * valops.c (address_of_variable): Update.
686 (find_overload_match): Update.
687 (find_oload_champ): Update.
688
689 2019-11-22 Christian Biesinger <cbiesinger@google.com>
690
691 * ada-lang.c (ada_lookup_simple_minsym): Update.
692 (ada_collect_symbol_completion_matches): Update.
693 * ada-tasks.c (read_atcb): Update.
694 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
695 (amd64_windows_skip_trampoline_code): Update.
696 * arm-tdep.c (skip_prologue_function): Update.
697 (arm_skip_stack_protector): Update.
698 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
699 (arm_wince_skip_main_prologue): Update.
700 * ax-gdb.c (gen_expr): Update.
701 * block.c (call_site_for_pc): Update.
702 * blockframe.c (find_pc_partial_function): Update.
703 * breakpoint.c (set_breakpoint_location_function): Update.
704 * btrace.c (ftrace_print_function_name): Update.
705 (ftrace_function_switched): Update.
706 * c-valprint.c (print_unpacked_pointer): Update.
707 * coffread.c (coff_symfile_read): Update.
708 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
709 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
710 * dwarf-index-write.c (write_psymbols): Update.
711 * dwarf2loc.c (call_site_to_target_addr): Update.
712 (func_verify_no_selftailcall): Update.
713 (tailcall_dump): Update.
714 (call_site_find_chain_1): Update.
715 (dwarf_expr_reg_to_entry_parameter): Update.
716 * elfread.c (elf_gnu_ifunc_record_cache): Update.
717 * eval.c (evaluate_funcall): Update.
718 (evaluate_subexp_standard): Update.
719 (evaluate_subexp_for_sizeof): Update.
720 * expprint.c (print_subexp_standard): Update.
721 (dump_subexp_body_standard): Update.
722 * frame.c (get_prev_frame_always_1): Update.
723 * frv-tdep.c (frv_skip_main_prologue): Update.
724 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
725 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
726 (gnuv3_get_typename_from_type_info): Update.
727 (gnuv3_skip_trampoline): Update.
728 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
729 * i386-tdep.c (i386_skip_main_prologue): Update.
730 (i386_pe_skip_trampoline_code): Update.
731 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
732 * infcall.c (get_function_name): Update.
733 * linespec.c (minsym_found): Update.
734 * linux-fork.c (info_checkpoints_command): Update.
735 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
736 (m32c_m16c_pointer_to_address): Update.
737 * maint.c (maintenance_translate_address): Update.
738 * minsyms.c (add_minsym_to_hash_table): Update.
739 (add_minsym_to_demangled_hash_table): Update.
740 (lookup_minimal_symbol_mangled): Update.
741 (lookup_minimal_symbol_demangled): Update.
742 (lookup_minimal_symbol_linkage): Update.
743 (lookup_minimal_symbol_text): Update.
744 (lookup_minimal_symbol_by_pc_name): Update.
745 (minimal_symbol_is_less_than): Update.
746 (compact_minimal_symbols): Update.
747 (build_minimal_symbol_hash_tables): Update.
748 (find_solib_trampoline_target): Update.
749 * mips-tdep.c (mips_stub_frame_sniffer): Update.
750 (mips_skip_pic_trampoline_code): Update.
751 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
752 * objc-lang.c (info_selectors_command): Update.
753 (info_classes_command): Update.
754 (find_methods): Update.
755 (find_imps): Update.
756 * p-valprint.c (pascal_val_print): Update.
757 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
758 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
759 * printcmd.c (build_address_symbolic): Update.
760 (info_symbol_command): Update.
761 * psymtab.c (psymbol_name_matches): Update.
762 (match_partial_symbol): Update.
763 (lookup_partial_symbol): Update.
764 (print_partial_symbols): Update.
765 (sort_pst_symbols): Update.
766 (maintenance_check_psymtabs): Update.
767 * python/py-framefilter.c (py_print_frame): Update.
768 * python/python.c (gdbpy_rbreak): Update.
769 * record-btrace.c (btrace_get_bfun_name): Update.
770 (btrace_call_history): Update.
771 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
772 (rs6000_skip_trampoline_code): Update.
773 * sol-thread.c (info_cb): Update.
774 * stabsread.c (scan_file_globals): Update.
775 * stack.c (find_frame_funname): Update.
776 (info_frame_command_core): Update.
777 * symmisc.c (dump_msymbols): Update.
778 * symtab.c (symbol_natural_name): Rename to..,
779 (general_symbol_info::natural_name): ...this.
780 (symbol_demangled_name): Rename to...
781 (general_symbol_info::demangled_name): ...this.
782 (symbol_search_name): Rename to...
783 (general_symbol_info::search_name): ...this.
784 (symbol_matches_search_name): Update.
785 (find_pc_sect_line): Update.
786 (skip_prologue_sal): Update.
787 (search_symbols): Update.
788 (print_msymbol_info): Update.
789 (rbreak_command): Update.
790 (completion_list_add_msymbol): Update.
791 (completion_list_objc_symbol): Update.
792 (get_msymbol_address): Update.
793 * symtab.h (struct general_symbol_info): Add member functions
794 natural_name (), linkage_name (), print_name (), demangled_name (),
795 and search_name ().
796 (SYMBOL_NATURAL_NAME): Update.
797 (symbol_natural_name): Move to a member function on general_symbol_info.
798 (SYMBOL_DEMANGLED_NAME): Update.
799 (symbol_demangled_name): Move to a member function on
800 general_symbol_info.
801 (SYMBOL_SEARCH_NAME): Update.
802 (symbol_search_name): Move to a member function on general_symbol_info.
803 (MSYMBOL_NATURAL_NAME): Remove.
804 (MSYMBOL_LINKAGE_NAME): Remove.
805 (MSYMBOL_PRINT_NAME): Remove.
806 (MSYMBOL_DEMANGLED_NAME): Remove.
807 (MSYMBOL_SEARCH_NAME): Remove.
808 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
809
810 2019-11-22 Christian Biesinger <cbiesinger@google.com>
811
812 * symtab.c (create_demangled_names_hash): Use per_bfd->
813 minimal_symbol_count for computing the initial size, if greater
814 than our default size.
815
816 2019-11-22 Tom de Vries <tdevries@suse.de>
817
818 * contrib/words.sh: Improve words extraction.
819
820 2019-11-22 Tom de Vries <tdevries@suse.de>
821
822 * contrib/words.sh: Combine sed invocations.
823
824 2019-11-21 Christian Biesinger <cbiesinger@google.com>
825
826 * Makefile.in: Update.
827 * demangle.c: Rename to...
828 * gdb-demangle.c: ..this.
829 (is_cplus_marker): Change return type to bool.
830 (_initialize_demangler): Rename to...
831 (_initialize_gdb_demangle): ...this.
832 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
833 * symtab.h (demangle): Remove declaration; instead include
834 gdb-demangle.h.
835
836 2019-11-21 Tom Tromey <tromey@adacore.com>
837
838 * gdbsupport/format.c (format_pieces): Parse %I64d.
839 * unittests/format_pieces-selftests.c (test_windows_formats): New
840 function.
841 (run_tests): Call it.
842
843 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
844
845 Byte reverse display of variables with DW_END_big, DW_END_little
846 (DW_AT_endianity) dwarf attributes if different than the native
847 byte order.
848 * ada-lang.c (ada_value_binop):
849 Use type_byte_order instead of gdbarch_byte_order.
850 * ada-valprint.c (printstr):
851 (ada_val_print_string):
852 * ada-lang.c (value_pointer):
853 (ada_value_binop):
854 Use type_byte_order instead of gdbarch_byte_order.
855 * c-lang.c (c_get_string):
856 Use type_byte_order instead of gdbarch_byte_order.
857 * c-valprint.c (c_val_print_array):
858 Use type_byte_order instead of gdbarch_byte_order.
859 * cp-valprint.c (cp_print_class_member):
860 Use type_byte_order instead of gdbarch_byte_order.
861 * dwarf2loc.c (rw_pieced_value):
862 Use type_byte_order instead of gdbarch_byte_order.
863 * dwarf2read.c (read_base_type): Handle DW_END_big,
864 DW_END_little
865 * f-lang.c (f_get_encoding):
866 Use type_byte_order instead of gdbarch_byte_order.
867 * findvar.c (default_read_var_value):
868 Use type_byte_order instead of gdbarch_byte_order.
869 * gdbtypes.c (check_types_equal):
870 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
871 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
872 and TYPE_ENDIANITY_LITTLE if set.
873 (type_byte_order): new function.
874 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
875 (struct main_type) <flag_endianity_not_default>:
876 New field.
877 (type_byte_order): New function.
878 * infcmd.c (default_print_one_register_info):
879 Use type_byte_order instead of gdbarch_byte_order.
880 * p-lang.c (pascal_printstr):
881 Use type_byte_order instead of gdbarch_byte_order.
882 * p-valprint.c (pascal_val_print):
883 Use type_byte_order instead of gdbarch_byte_order.
884 * printcmd.c (print_scalar_formatted):
885 Use type_byte_order instead of gdbarch_byte_order.
886 * solib-darwin.c (darwin_current_sos):
887 Use type_byte_order instead of gdbarch_byte_order.
888 * solib-svr4.c (solib_svr4_r_ldsomap):
889 Use type_byte_order instead of gdbarch_byte_order.
890 * stap-probe.c (stap_modify_semaphore):
891 Use type_byte_order instead of gdbarch_byte_order.
892 * target-float.c (target_float_same_format_p):
893 Use type_byte_order instead of gdbarch_byte_order.
894 * valarith.c (scalar_binop):
895 (value_bit_index):
896 Use type_byte_order instead of gdbarch_byte_order.
897 * valops.c (value_cast):
898 Use type_byte_order instead of gdbarch_byte_order.
899 * valprint.c (generic_emit_char):
900 (generic_printstr):
901 (val_print_string):
902 Use type_byte_order instead of gdbarch_byte_order.
903 * value.c (unpack_long):
904 (unpack_bits_as_long):
905 (unpack_value_bitfield):
906 (modify_field):
907 (pack_long):
908 (pack_unsigned_long):
909 Use type_byte_order instead of gdbarch_byte_order.
910 * findvar.c (unsigned_pointer_to_address):
911 (signed_pointer_to_address):
912 (unsigned_address_to_pointer):
913 (address_to_signed_pointer):
914 (default_read_var_value):
915 (default_value_from_register):
916 Use type_byte_order instead of gdbarch_byte_order.
917 * gnu-v3-abi.c (gnuv3_make_method_ptr):
918 Use type_byte_order instead of gdbarch_byte_order.
919 * riscv-tdep.c (riscv_print_one_register_info):
920 Use type_byte_order instead of gdbarch_byte_order.
921
922 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
925 (current_ui_gdb_stdin_ptr): Likewise.
926 (current_ui_gdb_stderr_ptr): Likewise.
927 (current_ui_gdb_stdlog_ptr): Likewise.
928 (current_ui_current_uiout_ptr): Likewise.
929 (gen_ret_current_ui_field_ptr): Remove.
930
931 2019-11-21 Tom de Vries <tdevries@suse.de>
932
933 PR gdb/24956
934 * cli/cli-script.c (execute_control_command): Only switch to
935 INTERP_CONSOLE's ui_out when INTERP_MI is active.
936
937 2019-11-19 Tom Tromey <tom@tromey.com>
938
939 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
940 Now static. Change type of "name".
941 (tui_set_win_height_command): Don't copy "arg".
942 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
943 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
944
945 2019-11-19 Ali Tamur <tamur@google.com>
946
947 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
948 "if (attr != nullptr)".
949 (dwarf2_find_base_address): Likewise.
950 (dwarf2_build_include_psymtabs): Likewise.
951 (read_cutu_die_from_dwo): Likewise.
952 (read_func_scope): Likewise.
953 (read_call_site_scope): Likewise.
954 (dwarf2_get_pc_bounds): Likewise.
955 (dwarf2_record_block_ranges): Likewise.
956 (dwarf2_add_field): Likewise.
957 (dwarf2_add_member_fn): Likewise.
958 (read_structure_type): Likewise.
959 (read_enumeration_type): Likewise.
960 (read_array_type): Likewise.
961 (read_array_order): Likewise.
962 (read_set_type): Likewise.
963 (read_common_block): Likewise.
964 (read_tag_reference_type): Likewise.
965 (read_tag_string_type): Likewise.
966 (read_subroutine_type): Likewise.
967 (read_base_type): Likewise.
968 (read_subrange_type): Likewise.
969 (new_symbol): Likewise.
970 (prepare_one_comp_unit): Likewise.
971
972 2019-11-19 Tom Tromey <tromey@adacore.com>
973
974 * windows-nat.c (windows_nat_target::attach): Include GetLastError
975 result in error when DebugActiveProcess fails.
976
977 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
978 Pedro Alves <palves@redhat.com>
979
980 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
981 * target.c (target_stack::push): Call 'unpush' if there's a
982 target on top of the stack.
983
984 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
985
986 * python/py-block.c (blpy_dealloc): Call tp_free.
987 (blpy_block_syms_dealloc): Likewise.
988 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
989 * python/py-inferior.c (infpy_dealloc): Likewise.
990 * python/py-lazy-string.c (stpy_dealloc): Likewise.
991 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
992 * python/py-symbol.c (sympy_dealloc): Likewise.
993 * python/py-symtab.c (stpy_dealloc): Likewise.
994 * python/py-type.c (typy_iterator_dealloc): Likewise.
995
996 2019-11-18 Christian Biesinger <cbiesinger@google.com>
997
998 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
999 constructor instead of using a class initializer.
1000
1001 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1002
1003 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1004 * configure: Regenerate.
1005 * configure.ac: Don't source common.host.
1006 * gdbsupport/common.host: Remove.
1007 * gdbsupport/mingw-strerror.c: Remove.
1008 * gdbsupport/posix-strerror.c: Rename to...
1009 * gdbsupport/safe-strerror.c: ...this.
1010
1011 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1012
1013 * maint.c (scoped_command_stats::print_time): Use localtime_r
1014 instead of localtime (provided through gnulib if necessary).
1015 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1016 of ctime.
1017
1018 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1019
1020 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1021 avoid compile errors.
1022
1023 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1024
1025 * config.in: Regenerate.
1026 * configure: Regenerate.
1027 * gdbsupport/common.m4: No longer check for strerror_r.
1028 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1029 POSIX version of strerror_r, now that gnulib provides it if
1030 necessary.
1031
1032 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1033
1034 * README (`configure' options): Update.
1035
1036 2019-11-14 Tom Tromey <tromey@adacore.com>
1037
1038 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1039 expected type for the RHS if the LHS is a convenience variable.
1040
1041 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1044 Provide explicit default and copy constructor.
1045
1046 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1047
1048 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1049 only call Py_INCREF (newbp) in the bppy_pending_object case.
1050
1051 2019-11-13 Tom Tromey <tromey@adacore.com>
1052
1053 PR build/25182:
1054 * psympriv.h (partial_symbol): Remove static assert.
1055 * symtab.h (general_symbol_info, symbol): Remove static assert.
1056
1057 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * gdbsupport/format.c (format_pieces::format_pieces): Support
1060 printf 'z' size modifier.
1061 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1062 * printcmd.c (ui_printf): Handle size_t_arg.
1063 * ui-out.c (ui_out::vmessage): Likewise.
1064 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1065 function.
1066 (run_tests): Call test_format_int_sizes.
1067
1068 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1069
1070 * ada-exp.y (write_ambiguous_var): Update.
1071 * buildsym.c (add_symbol_to_list): Update.
1072 * dwarf2read.c (read_variable): Update.
1073 (new_symbol): Update.
1074 * jit.c (finalize_symtab): Update.
1075 * language.c (language_alloc_type_symbol): Update.
1076 * symtab.c (fixup_symbol_section): Update.
1077 (initialize_objfile_symbol_1): Move code to...
1078 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1079 (allocate_symbol): Update.
1080 (allocate_template_symbol): Update.
1081 (get_symbol_address): Update.
1082 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1083 of having as a field, and add a constructor.
1084 (SYMBOL_VALUE): Update.
1085 (SYMBOL_VALUE_ADDRESS): Update.
1086 (SET_SYMBOL_VALUE_ADDRESS): Update.
1087 (SYMBOL_VALUE_BYTES): Update.
1088 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1089 (SYMBOL_BLOCK_VALUE): Update.
1090 (SYMBOL_VALUE_CHAIN): Update.
1091 (SYMBOL_LANGUAGE): Update.
1092 (SYMBOL_SECTION): Update.
1093 (SYMBOL_OBJ_SECTION): Update.
1094 (SYMBOL_SET_LANGUAGE): Update.
1095 (SYMBOL_SET_LINKAGE_NAME): Update.
1096 (SYMBOL_SET_NAMES): Update.
1097 (SYMBOL_NATURAL_NAME): Update.
1098 (SYMBOL_LINKAGE_NAME): Update.
1099 (SYMBOL_DEMANGLED_NAME): Update.
1100 (SYMBOL_SEARCH_NAME): Update.
1101 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1102 (struct symbol): Update.
1103 (struct template_symbol): Update.
1104 (struct rust_vtable_symbol): Update.
1105 * xcoffread.c (SYMBOL_DUP): Update.
1106
1107 2019-11-12 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-layout.c (show_layout): Set current_layout.
1110 (show_source_disasm_command, show_data)
1111 (show_source_or_disasm_and_command): Don't set current_layout.
1112
1113 2019-11-12 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1116
1117 2019-11-12 Tom Tromey <tom@tromey.com>
1118
1119 * tui/tui-win.c (resize_message): New global.
1120 (show_tui_resize_message): New function.
1121 (tui_async_resize_screen): Print message if requested.
1122 (_initialize_tui_win): Add tui-resize-message setting.
1123 * NEWS: Add entry for new commands.
1124
1125 2019-11-11 Tom Tromey <tom@tromey.com>
1126
1127 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1128 functions.
1129
1130 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1131
1132 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1133
1134 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1137 function.
1138 * python/python-internal.h (gdbpy_lookup_static_symbols):
1139 Declare new function.
1140 * python/python.c (python_GdbMethods): Add
1141 gdb.lookup_static_symbols method.
1142 * NEWS: Mention gdb.lookup_static_symbols.
1143
1144 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1147 static block of current object file first. Also fix typo in
1148 header comment.
1149
1150 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * stack.c (set_last_displayed_sal): Delete.
1153 (last_displayed_sal_valid): Delete.
1154 (last_displayed_pspace): Delete.
1155 (last_displayed_addr): Delete.
1156 (last_displayed_symtab): Delete.
1157 (last_displayed_line): Delete.
1158 (class last_displayed_symtab_info_type): New.
1159 (last_displayed_symtab_info): New static global variable.
1160 (print_frame_info): Call methods on last_displayed_symtab_info.
1161 (clear_last_displayed_sal): Update header comment, and make use of
1162 last_displayed_symtab_info.
1163 (last_displayed_sal_is_valid): Likewise.
1164 (get_last_displayed_pspace): Likewise.
1165 (get_last_displayed_addr): Likewise.
1166 (get_last_displayed_symtab): Likewise.
1167 (get_last_displayed_line): Likewise.
1168 (get_last_displayed_sal): Likewise.
1169 * stack.h (clear_last_displayed_sal): Update header comment.
1170 (last_displayed_sal_is_valid): Likewise.
1171 (get_last_displayed_pspace): Likewise.
1172 (get_last_displayed_addr): Likewise.
1173 (get_last_displayed_symtab): Likewise.
1174 (get_last_displayed_line): Likewise.
1175 (get_last_displayed_sal): Likewise.
1176
1177 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * stack.c (frame_show_address): Convert return type to bool.
1180 * stack.h (frame_show_address): Likewise, and update header
1181 comment.
1182
1183 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1186 * unittests/vec-utils-selftests.c: New file.
1187 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1188
1189 2019-11-10 Tom Tromey <tom@tromey.com>
1190
1191 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1192 (tui_highlight_win): Likewise.
1193 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1194 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1195 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1196 Don't set can_highlight.
1197
1198 2019-11-10 Tom Tromey <tom@tromey.com>
1199
1200 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1201 Remove unused declaration.
1202
1203 2019-11-08 Tom Tromey <tromey@adacore.com>
1204
1205 * top.c (read_command_file): Update.
1206 (command_line_input): Make return type const.
1207 * python/py-gdb-readline.c: Update.
1208 * linespec.c (decode_line_2): Update.
1209 * defs.h (command_line_input): Make return type const.
1210 * cli/cli-script.c (read_next_line): Make return type const.
1211 * ada-lang.c (get_selections): Update.
1212
1213 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1214
1215 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1216 * mi/mi-main.c (output_cores): Likewise.
1217 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1218 (linux_xfer_osdata_modules): Likewise.
1219 * remote.c (register_remote_support_xml): Likewise.
1220 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1221 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1222
1223 2019-11-06 Tom Tromey <tom@tromey.com>
1224
1225 * tui/tui-interp.c: Don't include readline.h.
1226 * tui/tui-hooks.c: Don't include readline.h.
1227 * symmisc.c: Include tilde.h, not readline.h.
1228 * symfile.c: Include tilde.h, not readline.h.
1229 * source.c: Include tilde.h, not readline.h.
1230 * solib.c: Include tilde.h, not readline.h.
1231 * psymtab.c: Include tilde.h, not readline.h.
1232 * exec.c: Include tilde.h, not readline.h.
1233 * corelow.c: Include tilde.h, not readline.h.
1234 * cli/cli-dump.c: Include tilde.h, not readline.h.
1235 * cli/cli-cmds.c: Don't include readline.h.
1236
1237 2019-11-05 Tom Tromey <tom@tromey.com>
1238
1239 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1240 (tui_disassemble): Set addr_size.
1241 (tui_disasm_window::set_contents): Use addr_size.
1242
1243 2019-11-05 Tom Tromey <tom@tromey.com>
1244
1245 * rust-lang.c (rust_language_defn): Update.
1246 * python/py-value.c (valpy_string): Call c_get_string.
1247 * p-lang.c (pascal_language_defn): Update.
1248 * opencl-lang.c (opencl_language_defn): Update.
1249 * objc-lang.c (objc_language_defn): Update.
1250 * m2-lang.c (m2_language_defn): Update.
1251 * language.c (unknown_language_defn, auto_language_defn): Update.
1252 (default_get_string): Remove.
1253 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1254 * go-lang.c (go_language_defn): Update.
1255 * f-lang.c (f_language_defn): Update.
1256 * d-lang.c (d_language_defn): Update.
1257 * c-lang.c (c_language_defn, cplus_language_defn)
1258 (asm_language_defn, minimal_language_defn): Update.
1259 * ada-lang.c (ada_language_defn): Update.
1260 * language.h (struct language_defn) <la_get_string>: Remove.
1261 (LA_GET_STRING): Remove.
1262 (default_get_string): Don't declare.
1263
1264 2019-11-05 Tom Tromey <tom@tromey.com>
1265
1266 * tui/tui-source.h (struct tui_source_window): Inline
1267 constructor. Remove destructor.
1268 <style_changed, m_observable>: Move to superclass.
1269 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1270 (struct tui_source_window_base): Move private members to end.
1271 <style_changed, m_observable>: Move from tui_source_window.
1272 * tui/tui-winsource.c (tui_copy_source_line): Move from
1273 tui-source.c. Rename from copy_source_line. Add special handling
1274 for negative line number.
1275 (tui_source_window_base::style_changed): Move from
1276 tui_source_window.
1277 (tui_source_window_base): Register observer.
1278 (~tui_source_window_base): New.
1279 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1280 rename.
1281 (tui_source_window::set_contents): Use tui_copy_source_line.
1282 (tui_source_window::tui_source_window): Move to tui-source.h.
1283 (tui_source_window::~tui_source_window): Remove.
1284 (tui_source_window::style_changed): Move to superclass.
1285 * tui/tui-disasm.c (tui_disassemble): Create string file with
1286 styling, when possible. Add "addr_size" parameter.
1287 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1288 Don't compute maximum size.
1289 (len_without_escapes): New function
1290
1291 2019-11-05 Tom Tromey <tom@tromey.com>
1292
1293 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1294 std::string.
1295 * tui/tui-winsource.c (tui_show_source_line): Update.
1296 * tui/tui-source.c (tui_source_window::set_contents): Update.
1297 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1298
1299 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1300
1301 * symtab.h (gdb_static_assert): Put && operator at the beginning
1302 of the line instead of the end.
1303
1304 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1305
1306 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1307 and sizeof (symbol).
1308 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1309
1310 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1311
1312 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1313 * configure.host: Mark *-*-solaris2.10* obsolete.
1314 * configure.tgt: Mark Solaris < 11 obsolete.
1315 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1316 Update target triplet.
1317
1318 2019-11-01 Tom Tromey <tromey@adacore.com>
1319
1320 * utils.c (print_sys_errmsg): Simplify.
1321
1322 2019-11-01 Tom Tromey <tromey@adacore.com>
1323
1324 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1325
1326 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1327
1328 * configure: Regenerate.
1329 * configure.ac: Remove check for strerror_r.
1330 * gdbsupport/common.m4: Check for strerror_r.
1331
1332 2019-11-01 Luis Machado <luis.machado@linaro.org>
1333
1334 PR gdb/25124
1335
1336 * arm-tdep.c (arm_per_objfile): Rename to ...
1337 (arm_per_bfd): ... this.
1338 (arm_objfile_data_key): Rename to ...
1339 (arm_bfd_data_key): ... this.
1340 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1341 data.
1342 (arm_record_special_symbol): Likewise.
1343
1344 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1347 end.
1348 * c-typeprint.c (c_print_typedef): Likewise.
1349 * f-typeprint.c (f_print_typedef): Likewise.
1350 * m2-typeprint.c (m2_print_typedef): Likewise.
1351 * p-typeprint.c (pascal_print_typedef): Likewise.
1352 * rust-lang.c (rust_print_typedef): Likewise.
1353 * symtab.c (print_symbol_info): Print a newline after calling
1354 typedef_print.
1355
1356 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * symtab.c (info_module_cmdlist): New variable.
1359 (info_module_command): New function.
1360 (search_module_symbols): New function.
1361 (info_module_subcommand): New function.
1362 (struct info_modules_var_func_options): New struct.
1363 (info_modules_var_func_options_defs): New variable.
1364 (make_info_modules_var_func_options_def_group): New function.
1365 (info_module_functions_command): New function.
1366 (info_module_variables_command): New function.
1367 (info_module_var_func_command_completer): New function.
1368 (_initialize_symtab): Register new 'info module functions' and
1369 'info module variables' commands.
1370 * symtab.h (typedef symbol_search_in_module): New typedef.
1371 (search_module_symbols): Declare new function.
1372 * NEWS: Mention new commands.
1373
1374 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1377 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1378 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1379 MODULES_DOMAIN.
1380 (scan_partial_symbols): Only create partial module symbols for non
1381 declarations.
1382 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1383 and MODULES_DOMAIN.
1384 * symtab.c (search_domain_name): Likewise.
1385 (search_symbols): Likewise.
1386 (print_symbol_info): Likewise.
1387 (symtab_symbol_info): Likewise.
1388 (info_modules_command): New function.
1389 (_initialize_symtab): Register 'info modules' command.
1390 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1391 * NEWS: Mention new 'info modules' command.
1392
1393 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1394
1395 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1396 and $_gdb_maint_setting_str.
1397
1398 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1399
1400 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1401 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1402 (str_value_from_setting, gdb_setting_str_internal_fn)
1403 (gdb_maint_setting_str_internal_fn): New functions.
1404 (_initialize_cli_cmds): Define the new convenience functions.
1405 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1406 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1407
1408 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1409
1410 * agent.c (set_can_use_agent): When the setting is turned on,
1411 look up agent symbols if we don't have them yet.
1412 (agent_new_objfile): Don't look up agent symbols when the agent
1413 setting is off.
1414
1415 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1416
1417 * config.in: Regenerate.
1418
1419 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1420
1421 * configure: Regenerate.
1422 * configure.ac: Check for strerror_r.
1423 * gdbsupport/common-utils.h (safe_strerror): Change return value
1424 to const char * and document that this function is now threadsafe.
1425 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1426 thread_local and call strerror_r, if available.
1427 * utils.c (perror_string): Update.
1428 (print_sys_errmsg): Update.
1429
1430 2019-10-31 Luis Machado <luis.machado@linaro.org>
1431
1432 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1433 objfile_key.
1434 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1435 objfile to fetch per-bfd data.
1436 (arm_find_exidx_entry): Likewise.
1437
1438 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1439
1440 * gdbsupport/agent.c (debug_agent): Change type to bool.
1441 (use_agent): Likewise.
1442 (all_agent_symbols_look_up): Likewise.
1443 (agent_loaded_p): Change return value to bool.
1444 (agent_look_up_symbols): Update.
1445 (agent_capability_check): Change return value to bool.
1446 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1447 (debug_agent): Change type to bool.
1448 (use_agent): Likewise.
1449 (agent_capability_check): Change return value to bool.
1450
1451 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1452
1453 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1454 (build_minimal_symbol_hash_tables): Code to clear the table moved
1455 to clear_minimal_symbol_hash_tables.
1456 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1457 when needed.
1458
1459 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 * infcmd.c: Remove includes.
1462 * infrun.c: Remove includes.
1463
1464 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1465
1466 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1467 (grow_vect): Remove declaration.
1468 (ada_type_of_array): Remove declaration.
1469 (ada_update_initial_language): Remove declaration.
1470 (ada_fold_name): Remove declaration.
1471 (ada_fill_in_ada_prototype): Remove declaration.
1472 (user_select_syms): Remove declaration.
1473 (get_selections): Remove declaration.
1474 (ada_tag_type): Remove declaration.
1475 (ada_value_tag): Remove declaration.
1476 (ada_is_others_clause): Remove declaration.
1477 (ada_in_variant): Remove declaration.
1478 (ada_value_struct_elt): Remove declaration.
1479 (ada_attribute_name): Remove declaration.
1480 (ada_system_address_type): Remove declaration.
1481 * ada-lang.c (ada_watch_location_expression): Make static.
1482 (GROW_VECT): Move here from ada-lang.h.
1483 (grow_vect): Make static.
1484 (ada_update_initial_language): Make static.
1485 (ada_fold_name): Make static.
1486 (ada_type_of_array): Make static.
1487 (encoded_ordered_before): Move up.
1488 (sort_choices): Move up.
1489 (print_signatures): Move up.
1490 (ada_print_symbol_signature): Move up.
1491 (get_selections): Move up and make static.
1492 (user_select_syms): Move up and make static.
1493 (ada_value_struct_elt): Move up and make static.
1494 (ada_tag_type): Make static.
1495 (ada_value_tag): Make static.
1496 (ada_is_others_clause): Make static.
1497 (ada_in_variant): Make static.
1498 (ada_attribute_name): Make static.
1499
1500 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * ada-lang.c: Remove includes.
1503 * ada-typeprint.c: Remove includes.
1504 * ada-valprint.c: Remove includes.
1505
1506 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * addrmap.c: Add static assertions of type size, moved from
1509 _initialize_addrmap.
1510 (_initialize_addrmap): Remove.
1511
1512 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1513
1514 * coffread.c (record_minimal_symbol): Update.
1515 (process_coff_symbol): Update.
1516 * dbxread.c (read_dbx_symtab): Update.
1517 * dwarf2read.c (add_partial_symbol): Update.
1518 (fixup_go_packaging): Update.
1519 (load_partial_dies): Update.
1520 (new_symbol): Update.
1521 * elfread.c (record_minimal_symbol): Change signature to use
1522 gdb::string_view instead of name+len.
1523 (elf_symtab_read): Update.
1524 (elf_rel_plt_read): Update.
1525 * mdebugread.c (parse_partial_symbols): Update.
1526 (handle_psymbol_enumerators): Update.
1527 (new_symbol): Update.
1528 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1529 to use gdb::string_view instead of name+len.
1530 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1531 * psympriv.h (add_psymbol_to_list): Likewise.
1532 * psymtab.c (add_psymbol_to_bcache): Likewise.
1533 (add_psymbol_to_list): Likewise.
1534 * stabsread.c (define_symbol): Update.
1535 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1536 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1537 (symbol_set_names): Likewise.
1538 * xcoffread.c (scan_xcoff_symtab): Update.
1539
1540 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1541
1542 * symtab.h (symbol_set_names): Document that copy_name must be
1543 set to true for non-nullterminated strings.
1544 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1545 linkage_name if the entry was not found and we need to demangle.
1546
1547 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1548
1549 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1550 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1551 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1552 * gdbsupport/gdb_binary_search.h: New file.
1553
1554 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1555
1556 * NEWS: Mention new --with-system-gdbinit-dir option.
1557 * config.in: Regenerate.
1558 * configure: Regenerate.
1559 * configure.ac: Add new option --with-system-gdbinit-dir.
1560 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1561 for a ".gdb" suffix.
1562 * main.c (get_init_files): Change system_gdbinit argument to
1563 a vector and return the files in SYSTEM_GDBINIT_DIR in
1564 addition to SYSTEM_GDBINIT.
1565 (captured_main_1): Update.
1566 (print_gdb_help): Update.
1567 * top.c (print_gdb_configuration): Also print the value of
1568 SYSTEM_GDBINIT_DIR.
1569
1570 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1571
1572 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1573 that takes gdb::string_view arguments.
1574
1575 2019-10-26 Tom de Vries <tdevries@suse.de>
1576
1577 * aarch64-linux-tdep.c: Fix typos in comments.
1578 * aarch64-tdep.c: Same.
1579 * ada-lang.c: Same.
1580 * amd64-nat.c: Same.
1581 * arc-tdep.c: Same.
1582 * arch/aarch64-insn.c: Same.
1583 * block.c: Same.
1584 * breakpoint.h: Same.
1585 * btrace.h: Same.
1586 * c-varobj.c: Same.
1587 * cli/cli-decode.c: Same.
1588 * cli/cli-script.c: Same.
1589 * cli/cli-utils.h: Same.
1590 * coff-pe-read.c: Same.
1591 * coffread.c: Same.
1592 * compile/compile-cplus-symbols.c: Same.
1593 * compile/compile-object-run.c: Same.
1594 * completer.c: Same.
1595 * corelow.c: Same.
1596 * cp-support.c: Same.
1597 * demangle.c: Same.
1598 * dwarf-index-write.c: Same.
1599 * dwarf2-frame.c: Same.
1600 * dwarf2-frame.h: Same.
1601 * eval.c: Same.
1602 * frame-base.h: Same.
1603 * frame.h: Same.
1604 * gdbcmd.h: Same.
1605 * gdbtypes.h: Same.
1606 * gnu-nat.c: Same.
1607 * guile/scm-objfile.c: Same.
1608 * i386-tdep.c: Same.
1609 * i386-tdep.h: Same.
1610 * infcall.c: Same.
1611 * infcall.h: Same.
1612 * linux-nat.c: Same.
1613 * m68k-tdep.c: Same.
1614 * macroexp.c: Same.
1615 * memattr.c: Same.
1616 * mi/mi-cmd-disas.c: Same.
1617 * mi/mi-getopt.h: Same.
1618 * mi/mi-main.c: Same.
1619 * minsyms.c: Same.
1620 * nat/aarch64-sve-linux-sigcontext.h: Same.
1621 * objfiles.h: Same.
1622 * ppc-linux-nat.c: Same.
1623 * ppc-linux-tdep.c: Same.
1624 * ppc-tdep.h: Same.
1625 * progspace.h: Same.
1626 * prologue-value.h: Same.
1627 * python/py-evtregistry.c: Same.
1628 * python/py-instruction.h: Same.
1629 * record-btrace.c: Same.
1630 * record-full.c: Same.
1631 * remote.c: Same.
1632 * rs6000-tdep.c: Same.
1633 * ser-tcp.c: Same.
1634 * sol-thread.c: Same.
1635 * sparc-sol2-tdep.c: Same.
1636 * sparc64-tdep.c: Same.
1637 * stabsread.c: Same.
1638 * symfile.c: Same.
1639 * symtab.h: Same.
1640 * target.c: Same.
1641 * tracepoint.c: Same.
1642 * tui/tui-data.h: Same.
1643 * tui/tui-io.c: Same.
1644 * tui/tui-win.c: Same.
1645 * tui/tui.c: Same.
1646 * unittests/rsp-low-selftests.c: Same.
1647 * user-regs.h: Same.
1648 * utils.c: Same.
1649 * utils.h: Same.
1650 * valarith.c: Same.
1651 * valops.c: Same.
1652 * valprint.c: Same.
1653 * valprint.h: Same.
1654 * value.c: Same.
1655 * value.h: Same.
1656 * varobj.c: Same.
1657 * x86-nat.h: Same.
1658 * xtensa-tdep.c: Same.
1659
1660 2019-10-25 Ali Tamur <tamur@google.com>
1661
1662 * charset.c (find_charset_names): Reflect API change.
1663
1664 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1665
1666 * symtab.c (struct demangled_name_entry): Change demangled name
1667 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1668 part of the struct anymore.
1669 (symbol_set_names): No longer obstack allocate + copy the demangled
1670 name, just store the allocated name from bfd.
1671
1672 2019-10-25 Tom Tromey <tromey@adacore.com>
1673
1674 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1675 (bsearch_cie_cmp, add_cie): Remove.
1676 (find_cie): Reimplement.
1677 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1678 (dwarf2_build_frame_info): Update.
1679
1680 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 PR gdb/25126
1683 * symfile.c (reread_symbols): Call forget_cached_source_info to
1684 clear the stale source cache.
1685
1686 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1687
1688 * configure: Regenerate.
1689 * configure.ac: Remove code that sets python_has_threads.
1690
1691 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1692
1693 * config.in: Regenerate.
1694 * configure: Regenerate.
1695 * configure.ac: Remove the code that uses sed to get the python
1696 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1697
1698 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1701 error paths.
1702
1703 2019-10-23 Tom Tromey <tom@tromey.com>
1704
1705 * arc-tdep.c: Remove ".." from include.
1706 * frv-tdep.c: Remove ".." from include.
1707 * lm32-tdep.c: Remove ".." from include.
1708 * microblaze-tdep.c: Remove ".." from include.
1709 * or1k-tdep.h: Remove ".." from include.
1710 * s12z-tdep.c: Remove ".." from include.
1711 * Makefile.in (OPCODES_CFLAGS): Add comment.
1712 (TOP_CFLAGS): New variable.
1713 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1714
1715 2019-10-23 Tom Tromey <tom@tromey.com>
1716
1717 * Makefile.in (READLINE_DIR): Update.
1718
1719 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1720
1721 * infcall.c (call_function_by_hand_dummy): Fix the function
1722 comment. And extract out a code section into...
1723 (reserve_stack_space): ...this new function.
1724
1725 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1726
1727 * infcall.c (value_arg_coerce): Remove an unused parameter.
1728 (call_function_by_hand_dummy): Update the call to
1729 'value_arg_coerce'.
1730
1731 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 * infcall.c (call_function_by_hand_dummy): Refactor.
1734
1735 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1736
1737 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1738
1739 2019-10-23 Tom Tromey <tom@tromey.com>
1740
1741 * configure: Rebuild.
1742 * configure.ac: Don't check for sigprocmask.
1743 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1744
1745 2019-10-23 Tom Tromey <tom@tromey.com>
1746
1747 * configure: Rebuild.
1748 * acinclude.m4: Use m4_include, not sinclude.
1749
1750 2019-10-23 Tom de Vries <tdevries@suse.de>
1751
1752 PR breakpoints/24687
1753 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1754
1755 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1756
1757 * symtab.c (struct demangled_name_entry) <language>: Change from
1758 bitfield to regular variable.
1759
1760 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1761
1762 * symtab.c (struct demangled_name_entry): Add a constructor.
1763 (free_demangled_name_entry): New function to call the destructor
1764 for demangled_name_entry.
1765 (create_demangled_names_hash): Pass free_demangled_name_entry to
1766 htab_create_alloc.
1767 (symbol_set_names): Call placement new for demangled_name_entry.
1768 * utils.c: No longer include xxhash.h here, now that fast_hash
1769 is inlined in the header.
1770 * utils.h: Instead, include it here.
1771
1772 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1773
1774 * Makefile.in: Link with libxxhash.
1775 * config.in: Regenerate.
1776 * configure: Regenerate.
1777 * configure.ac: Search for libxxhash.
1778 * utils.c (fast_hash): Use xxhash if present.
1779
1780 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1781
1782 * utils.h (fast_hash): New function.
1783 * symtab.c (hash_demangled_name_entry): Call new function
1784 fast_hash.
1785
1786 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1787
1788 * symtab.c (struct demangled_name_entry): Change type of mangled
1789 to gdb::string_view. Also adds a constructor that takes the
1790 mangled name.
1791 (hash_demangled_name_entry): Update.
1792 (eq_demangled_name_entry): Update.
1793 (free_demangled_name_entry): New function to call the destructor
1794 now that this is not a POD anymore.
1795 (create_demangled_names_hash): Pass free_demangled_name_entry to
1796 htab_create_alloc.
1797 (symbol_set_names): Update.
1798
1799 2019-10-21 Ali Tamur <tamu@google.com>
1800
1801 * dwarf2read.c (dir_index): Change type.
1802 (file_name_index): Likewise.
1803 (line_header::include_dir_at): Change comment and implementation on
1804 whether it is DWARF 5.
1805 (line_header::is_valid_file_index): New function.
1806 (line_header::file_name_at): Change comment and implementation on
1807 whether it is DWARF 5.
1808 (line_header::file_names): Change to private field renamed as
1809 m_file_names and introduce a new accessor method.
1810 (line_header::file_names_size): New method.
1811 (line_header::include_dirs): Change to private field and rename as
1812 m_include_dirs.
1813 (dw2_get_file_names_reader): Define local var at a smaller scope and
1814 reflect API change.
1815 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1816 (process_structure_scope): Likewise.
1817 (line_header::add_include_dir): Change message and reflect renaming.
1818 (line_header::add_file_name): Likewise.
1819 (read_formatted_entries): Handle DW_FORM_data16.
1820 (dwarf_decode_line_header): Fix line header length calculation.
1821 (psymtab_include_file_name): Change comment and API.
1822 (lnp_state_machine::m_file): Update comment and reflect type change.
1823 (lnp_state_machine::record_line): Reflect type change.
1824 (dwarf_decode_lines): Reflect API change.
1825 (file_file_name): Likewise.
1826 (file_full_name): Likewise.
1827
1828 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1829
1830 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1831
1832 2019-10-21 Tom Tromey <tom@tromey.com>
1833
1834 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1835
1836 2019-10-21 Tom Tromey <tom@tromey.com>
1837
1838 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1839 NM_H. Use AC_CONFIG_LINKS.
1840 * configure: Rebuild.
1841 * Makefile.in (NM_H): New variable.
1842 (generated_files): Add NM_H. Remove gcore.
1843 (nm.h, stamp-nmh): New targets.
1844
1845 2019-10-20 Tom Tromey <tom@tromey.com>
1846
1847 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1848 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1849 obsolete comment.
1850 (put_objfile_before): Now static.
1851
1852 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 * gdbsupport/common-utils.h (startswith): Change return type to
1855 bool.
1856
1857 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1858
1859 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1860 * breakpoint.c (bp_locations_compare): Rename to...
1861 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1862 (update_global_location_list): Use std::sort instead of qsort.
1863 * buildsym.c (compare_line_numbers): Rename to...
1864 (lte_is_less_than): ...this, and change to std::sort semantics.
1865 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1866 instead of qsort.
1867 * disasm.c (compare_lines): Rename to...
1868 (line_is_less_than): ...this, and change to std::sort semantics.
1869 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1870 of qsort.
1871 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1872 (fde_is_less_than): ...this, and change to std::sort semantics.
1873 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1874 * mdebugread.c (compare_blocks):
1875 (block_is_less_than): ...this, and change to std::sort semantics.
1876 (sort_blocks): Call std::sort instead of qsort.
1877 * objfiles.c (qsort_cmp): Rename to...
1878 (sort_cmp): ...this, and change to std::sort semantics.
1879 (update_section_map): Call std::sort instead of qsort.
1880 * remote.c (compare_pnums): Remove.
1881 (map_regcache_remote_table): Call std::sort instead of qsort.
1882 * utils.c (compare_positive_ints): Remove.
1883 * utils.h (compare_positive_ints): Remove.
1884 * xcoffread.c (compare_lte): Remove.
1885 (arrange_linetable): Call std::sort instead of qsort.
1886
1887 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1888
1889 * symfile.c (init_entry_point_info): Fix typo.
1890 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1891
1892 2019-10-18 Tom de Vries <tdevries@suse.de>
1893
1894 * aarch64-tdep.c: Fix typos in comments.
1895 * ada-lang.c: Same.
1896 * ada-tasks.c: Same.
1897 * alpha-tdep.c: Same.
1898 * alpha-tdep.h: Same.
1899 * amd64-nat.c: Same.
1900 * amd64-windows-tdep.c: Same.
1901 * arc-tdep.c: Same.
1902 * arc-tdep.h: Same.
1903 * arch-utils.c: Same.
1904 * arm-nbsd-tdep.c: Same.
1905 * arm-tdep.c: Same.
1906 * ax-gdb.c: Same.
1907 * blockframe.c: Same.
1908 * btrace.c: Same.
1909 * c-varobj.c: Same.
1910 * coff-pe-read.c: Same.
1911 * coffread.c: Same.
1912 * cris-tdep.c: Same.
1913 * darwin-nat.c: Same.
1914 * dbxread.c: Same.
1915 * dcache.c: Same.
1916 * disasm.c: Same.
1917 * dtrace-probe.c: Same.
1918 * dwarf-index-write.c: Same.
1919 * dwarf2-frame-tailcall.c: Same.
1920 * dwarf2-frame.c: Same.
1921 * dwarf2read.c: Same.
1922 * eval.c: Same.
1923 * exceptions.c: Same.
1924 * fbsd-tdep.c: Same.
1925 * findvar.c: Same.
1926 * frame.c: Same.
1927 * frv-tdep.c: Same.
1928 * gnu-v3-abi.c: Same.
1929 * go32-nat.c: Same.
1930 * h8300-tdep.c: Same.
1931 * hppa-tdep.c: Same.
1932 * i386-linux-tdep.c: Same.
1933 * i386-tdep.c: Same.
1934 * ia64-libunwind-tdep.c: Same.
1935 * ia64-tdep.c: Same.
1936 * infcmd.c: Same.
1937 * infrun.c: Same.
1938 * linespec.c: Same.
1939 * linux-nat.c: Same.
1940 * linux-thread-db.c: Same.
1941 * machoread.c: Same.
1942 * mdebugread.c: Same.
1943 * mep-tdep.c: Same.
1944 * mn10300-tdep.c: Same.
1945 * namespace.c: Same.
1946 * objfiles.c: Same.
1947 * opencl-lang.c: Same.
1948 * or1k-tdep.c: Same.
1949 * osabi.c: Same.
1950 * ppc-linux-nat.c: Same.
1951 * ppc-linux-tdep.c: Same.
1952 * ppc-sysv-tdep.c: Same.
1953 * printcmd.c: Same.
1954 * procfs.c: Same.
1955 * record-btrace.c: Same.
1956 * record-full.c: Same.
1957 * remote-fileio.c: Same.
1958 * remote.c: Same.
1959 * rs6000-tdep.c: Same.
1960 * s12z-tdep.c: Same.
1961 * score-tdep.c: Same.
1962 * ser-base.c: Same.
1963 * ser-go32.c: Same.
1964 * skip.c: Same.
1965 * sol-thread.c: Same.
1966 * solib-svr4.c: Same.
1967 * solib.c: Same.
1968 * source.c: Same.
1969 * sparc-nat.c: Same.
1970 * sparc-sol2-tdep.c: Same.
1971 * sparc-tdep.c: Same.
1972 * sparc64-tdep.c: Same.
1973 * stabsread.c: Same.
1974 * stack.c: Same.
1975 * symfile.c: Same.
1976 * symtab.c: Same.
1977 * target-descriptions.c: Same.
1978 * target-float.c: Same.
1979 * thread.c: Same.
1980 * utils.c: Same.
1981 * valops.c: Same.
1982 * valprint.c: Same.
1983 * value.c: Same.
1984 * varobj.c: Same.
1985 * windows-nat.c: Same.
1986 * xcoffread.c: Same.
1987 * xstormy16-tdep.c: Same.
1988 * xtensa-tdep.c: Same.
1989
1990 2019-10-17 Tom Tromey <tromey@adacore.com>
1991
1992 * configure: Rebuild.
1993 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1994 in AC_CONFIG_FILES invocation.
1995 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1996 new-style config.status invocation.
1997
1998 2019-10-17 Tom de Vries <tdevries@suse.de>
1999
2000 * arm-nbsd-nat.c: Fix typos in comments.
2001 * arm-tdep.c: Same.
2002 * darwin-nat-info.c: Same.
2003 * dwarf2read.c: Same.
2004 * elfread.c: Same.
2005 * event-top.c: Same.
2006 * findvar.c: Same.
2007 * gdbtypes.c: Same.
2008 * hppa-tdep.c: Same.
2009 * i386-tdep.c: Same.
2010 * jit.c: Same.
2011 * main.c: Same.
2012 * mdebugread.c: Same.
2013 * moxie-tdep.c: Same.
2014 * nto-procfs.c: Same.
2015 * osabi.c: Same.
2016 * ppc-linux-tdep.c: Same.
2017 * remote.c: Same.
2018 * riscv-tdep.c: Same.
2019 * s390-tdep.c: Same.
2020 * sh-tdep.c: Same.
2021 * sparc-linux-tdep.c: Same.
2022 * sparc-nat.c: Same.
2023 * stack.c: Same.
2024 * target-descriptions.c: Same.
2025 * top.c: Same.
2026 * varobj.c: Same.
2027
2028 2019-10-16 Tom Tromey <tom@tromey.com>
2029
2030 * objfiles.h (struct objfile) <original_name>: Now const.
2031
2032 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2033
2034 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2035 pass on to sigsetjmp's second argument.
2036 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2037
2038 2019-10-16 Keith Seitz <keiths@redhat.com>
2039
2040 PR gdb/23567
2041 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2042 sections whose size is greater than the file size.
2043
2044 2019-10-16 Jim Wilson <jimw@sifive.com>
2045
2046 * riscv-tdep.c (riscv_gcc_target_options): New.
2047 (riscv_gnu_triplet_regexp): New.
2048 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2049 set_gdbarch_gnu_triplet_regexp.
2050
2051 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2052
2053 * Makefile.in: Add xml-builtin.h.
2054 * features/feature_to_c.sh: Add an include for xml-builtin.h
2055 to ensure that the compiler checks that the types match.
2056 * xml-builtin.h: New file.
2057 * xml-support.c (fetch_xml_builtin): Add missing const.
2058 * xml-support.h: Remove declaration of xml_builtins.
2059
2060 2019-10-16 Tom de Vries <tdevries@suse.de>
2061
2062 PR tdep/25096
2063 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2064 (amd64_classify_aggregate): ... here.
2065 (amd64_classify_aggregate_field): Handled fiels of nested structs
2066 recursively.
2067
2068 2019-10-16 Tom de Vries <tdevries@suse.de>
2069
2070 PR tdep/24104
2071 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2072 that handles 'theclass'.
2073
2074 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * linespec.c (decode_digits_ordinary): Update comment.
2077 * make-target-delegates: No longer need to handle VEC case.
2078 * memrange.c (normalize_mem_ranges): Update comment.
2079 * namespace.c (add_using_directive): Update comment.
2080 * objc-lang.c (uniquify_strings): Update comment.
2081 * ppc-linux-nat.c (struct thread_points): Update comment.
2082 * probe.h (find_probes_in_objfile): Update comment.
2083 * target.h (enum flash_preserve_mode): Update comment.
2084 * varobj.c (varobj_restrict_range): Update comment.
2085 * varobj.h (varobj_list_children): Update comment.
2086
2087 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2088
2089 * Makefile.in: Remove references to vec.h and vec.c.
2090 * aarch64-tdep.c: No longer include vec.h.
2091 * ada-lang.c: Likewise.
2092 * ada-lang.h: Likewise.
2093 * arm-tdep.c: Likewise.
2094 * ax.h: Likewise.
2095 * breakpoint.h: Likewise.
2096 * charset.c: Likewise.
2097 * cp-support.h: Likewise.
2098 * dtrace-probe.c: Likewise.
2099 * dwarf2read.c: Likewise.
2100 * extension.h: Likewise.
2101 * gdb_bfd.c: Likewise.
2102 * gdbsupport/gdb_vecs.h: Likewise.
2103 * gdbsupport/vec.c: Remove.
2104 * gdbsupport/vec.h: Remove.
2105 * gdbthread.h: Likewise.
2106 * guile/scm-type.c: Likewise.
2107 * inline-frame.c: Likewise.
2108 * machoread.c: Likewise.
2109 * memattr.c: Likewise.
2110 * memrange.h: Likewise.
2111 * namespace.h: Likewise.
2112 * nat/linux-btrace.h: Likewise.
2113 * osdata.c: Likewise.
2114 * parser-defs.h: Likewise.
2115 * progspace.h: Likewise.
2116 * python/py-type.c: Likewise.
2117 * record-btrace.c: Likewise.
2118 * rust-exp.y: Likewise.
2119 * solib-target.c: Likewise.
2120 * stap-probe.c: Likewise.
2121 * target-descriptions.c: Likewise.
2122 * target-memory.c: Likewise.
2123 * target.h: Likewise.
2124 * varobj.c: Likewise.
2125 * varobj.h: Likewise.
2126 * xml-support.h: Likewise.
2127
2128 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2131 Update for new std::vector based implementation.
2132 (process_psymtab_comp_unit_reader): Likewise.
2133 (scan_partial_symbols): Likewise.
2134 (recursively_compute_inclusions): Likewise.
2135 (compute_compunit_symtab_includes): Likewise.
2136 (process_imported_unit_die): Likewise.
2137 (queue_and_load_dwo_tu): Likewise.
2138 (follow_die_sig_1): Likewise.
2139 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2140 (typedef dwarf2_per_cu_ptr): Remove.
2141 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2142 function.
2143 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2144 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2145 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2146 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2147 std::vector.
2148
2149 2019-10-15 Tom Tromey <tromey@adacore.com>
2150
2151 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2152 TID.
2153
2154 2019-10-15 Tom Tromey <tromey@adacore.com>
2155
2156 * windows-nat.c (windows_nat_target::fetch_registers)
2157 (windows_nat_target::store_registers): Rename "pid" to "tid".
2158
2159 2019-10-15 Tom Tromey <tromey@adacore.com>
2160
2161 * gdbarch.h, gdbarch.c: Rebuild.
2162 * gdbarch.sh (gcc_target_options): Change return type to
2163 std::string.
2164 * compile/compile.c (get_args): Update.
2165 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2166 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2167 std::string.
2168 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2169 std::string.
2170 * arch-utils.c (default_gcc_target_options): Return std::string.
2171 * arch-utils.h (default_gcc_target_options): Return std::string.
2172 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2173
2174 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2175
2176 * breakpoint.c (breakpoint_chain): Make static.
2177 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2178 of accessing breakpoint_chain.
2179
2180 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2181
2182 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2183 to a gdb::function_view and return value to bool.
2184 * breakpoint.h (iterate_over_breakpoints): Likewise.
2185 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2186 (pop_dummy_frame): Update.
2187 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2188 (gdbscm_breakpoints): Update.
2189 * python/py-breakpoint.c (build_bp_list): Update.
2190 (gdbpy_breakpoints): Update.
2191 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2192 Update.
2193 (bpfinishpy_handle_stop): Update.
2194 (bpfinishpy_handle_exit): Update.
2195 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2196 (svr4_update_solib_event_breakpoints): Update.
2197
2198 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2199
2200 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2201 when unwrapping single-field structs.
2202
2203 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * dwarf2read.c: Remove includes.
2206
2207 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * ui-out.c (ui_out::call_do_message): Silence
2210 -Wformat-nonliteral warning.
2211
2212 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2213
2214 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2215 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2216 include: readline/tilde.h.
2217
2218 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2219
2220 * remote.c (remote_target::get_trace_status): Remove declaration of
2221 trace_regblock_size.
2222
2223 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2224
2225 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2226 (show_user): Remove declaration of cmdlist.
2227 * cli/cli-cmds.h (max_user_call_depth): Declare.
2228 * cli/cli-script.c (execute_user_command): Remove declaration
2229 of max_user_call_depth.
2230
2231 2019-10-11 Jim Wilson <jimw@sifive.com>
2232
2233 * gdbsupport/print-utils.h (pulongest): Fix comment.
2234 (plongest): Likewise.
2235 (phex): Add missing comment, mention leading zeros.
2236 (phex_nz): Add mention of no leading zeros to comment.
2237
2238 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2239 plongest instead of unsigned long long cast.
2240
2241 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2242
2243 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2244 for external_editor_command and gdbtk_test.
2245
2246 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2247
2248 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2249 * varobj.c (varobjdebug): Move comment to...
2250 * varobj.h (varobjdebug): ...here, and declare.
2251
2252 2019-10-09 Tom Tromey <tom@tromey.com>
2253
2254 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2255 erase_data_content.
2256
2257 2019-10-09 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2260 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2261 * tui/tui-command.c (tui_cmd_window::resize)
2262 (tui_refresh_cmd_win): Update.
2263 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2264 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2265 * tui/tui-data.c (~tui_gen_win_info): Remove.
2266 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2267 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2268 (tui_redisplay_readline, tui_mld_flush)
2269 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2270 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2271 (tui_data_window::erase_data_content)
2272 (tui_data_item_window::rerender)
2273 (tui_data_item_window::refresh_window): Update.
2274 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2275 (box_win, tui_gen_win_info::make_window)
2276 (tui_gen_win_info::make_visible): Update.
2277 (tui_delete_win): Remove.
2278 * tui/tui-winsource.c
2279 (tui_source_window_base::do_erase_source_content): Update.
2280 (tui_show_source_line, tui_source_window_base::update_tab_width)
2281 (tui_source_window_base::update_exec_info): Update.
2282 * tui/tui-data.h (struct curses_deleter): New.
2283 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2284 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2285
2286 2019-10-09 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2289
2290 2019-10-09 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2293 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2294
2295 2019-10-09 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2298 window height directly.
2299 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2300 declare.
2301 * tui/tui-layout.c (tui_default_win_height): Remove.
2302 (tui_default_win_viewport_height): Remove.
2303
2304 2019-10-09 Tom Tromey <tom@tromey.com>
2305
2306 * tui/tui.h: Remove comments.
2307
2308 2019-10-09 Tom de Vries <tdevries@suse.de>
2309
2310 * python/lib/gdb/printer/bound_registers.py: Use
2311 '^builtin_type_bound128' as regexp argument for
2312 add_builtin_pretty_printer.
2313
2314 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2315
2316 * guile/guile.c (guile_extension_script_ops): Remove forward
2317 declaration and mark as static.
2318 (guile_script_ops): Likewise.
2319 (extension_language_guile): Move further down in the file so
2320 it can reference the definitions for guile_{extension_,}script_ops.
2321
2322 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2323
2324 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2325 except SORTL, DFLTCC, and KDSA.
2326
2327 2019-10-08 Tom Tromey <tromey@adacore.com>
2328
2329 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2330 (struct safe_symbol_file_add_args): Remove.
2331
2332 2019-10-08 Tom Tromey <tromey@adacore.com>
2333
2334 * windows-nat.c: Don't include buildsym-legacy.h.
2335
2336 2019-10-08 Tom Tromey <tromey@adacore.com>
2337
2338 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2339
2340 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2341
2342 * gdbtypes.c (overload_debug): Move comment to header.
2343 * gdbtypes.h (overload_debug): Declare.
2344 * valops.c: Remove declaration of overload_debug, instead
2345 include gdbtypes.h.
2346
2347 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2348
2349 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2350 through _().
2351 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2352 move comment...
2353 * language.h (lang_frame_mismatch_warn): ... here. Also add
2354 declaration.
2355 * top.c (lang_frame_mismatch_warn): Remove declaration.
2356 (check_frame_language_change): Pass lang_frame_mismatch_warn
2357 through _().
2358
2359 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2360
2361 * c-lang.h (vtbl_ptr_name): Declare.
2362 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2363 it from the header.
2364 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2365
2366 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2367
2368 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2369 gdb_static_assert.
2370
2371 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2372
2373 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2374 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2375 * ctfread.c: New file.
2376 * ctfread.h: New file.
2377 * elfread.c: Include ctfread.h.
2378 (struct elfinfo text_p): New member ctfsect.
2379 (elf_locate_sections): Mark CTF section.
2380 (elf_symfile_read): Call elfctf_build_psymtabs.
2381 * Makefile.in (LIBCTF): Add.
2382 (CLIBS): Use it.
2383 (CDEPS): Likewise.
2384 (DIST): Add ctfread.c.
2385
2386 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ctfread.c (struct nextfield): Renamed to ...
2389 (struct ctf_nextfield): ... this.
2390 (struct field_info): Renamed to ...
2391 (strut ctf_field_info): ... this.
2392 (attach_fields_to_type): Update for renamed structures.
2393 (ctf_add_member_cb): Likewise.
2394 (ctf_add_enum_member_cb): Likewise.
2395 (process_struct_members): Likewise.
2396 (process_enum_type): Likewise.
2397
2398 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2399
2400 * tracectf.h: Rename, was ctf.h.
2401 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2402 * tracefile.c: Likewise.
2403 * tracepoint.c: Remove unused include ctf.h.
2404 * mi/mi-main.c: Likewise.
2405 * Makefile.in Replace ctf.c with tracectf.c.
2406
2407 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2408
2409 * version.in: Change version number to "9.0.50.DATE-git".
2410
2411 2019-10-03 Tom Tromey <tom@tromey.com>
2412
2413 PR rust/24976:
2414 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2415
2416 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2419 cp_search_name_hash.
2420 * NEWS: Add entry about nested function support.
2421
2422 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2423 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2426 for nested static variables when searchin VAR_DOMAIN.
2427 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2428 global scope, update comment.
2429 (add_partial_subprogram): Call add_partial_subprogram recursively
2430 for nested subroutines when processinng Fortran.
2431 (load_partial_dies): Process the child entities of a subprogram
2432 when processing Fortran.
2433 (partial_die_parent_scope): Handle building scope
2434 for Fortran nested functions.
2435 (process_die): Record that nested functions have a scope.
2436 (new_symbol): Always record Fortran subprograms on the global
2437 symbol list.
2438 (determine_prefix): How to build the prefix for Fortran
2439 subprograms.
2440
2441 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2444 have just sent the thread a SIGSTOP and are waiting for it to
2445 arrive.
2446
2447 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * btrace.c (btrace_add_pc): Remove whitespace before the template
2450 parameter in 'std::vector <...>'.
2451 (parse_xml_btrace_block): Likewise.
2452 (btrace_maint_decode_pt): Likewise.
2453 (btrace_maint_update_packets): Likewise.
2454 (btrace_maint_print_packets): Likewise.
2455 * btrace.h (struct btrace_maint_info): Likewise.
2456 * dwarf2read.c (struct type_unit_group): Likewise.
2457 (build_type_psymtabs_reader): Likewise.
2458 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2459 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2460 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2461
2462 2019-10-03 Tom de Vries <tdevries@suse.de>
2463
2464 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2465 the first line of the help text for set/show style metadata.
2466
2467 2019-10-02 Tom Tromey <tromey@adacore.com>
2468
2469 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2470 * gdbsupport/common-inferior.c: New file.
2471 * infcmd.c (startup_with_shell): Don't define.
2472 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2473 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2474 * inferior.h (startup_with_shell): Don't declare.
2475
2476 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2477
2478 * gdbsupport/gdb_assert.h: Include errors.h.
2479 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2480
2481 2019-10-02 Tom Tromey <tromey@adacore.com>
2482
2483 * NEWS: Add $_ada_exception entry.
2484 * ada-lang.c (struct ada_catchpoint): Add constructor.
2485 <m_kind>: New member.
2486 (allocate_location_exception, re_set_exception): Remove
2487 "ex" parameter.
2488 (should_stop_exception): Compute $_ada_exception.
2489 (check_status_exception, print_it_exception)
2490 (print_one_exception, print_mention_exception): Remove
2491 "ex" parameter.
2492 (allocate_location_catch_exception, re_set_catch_exception)
2493 (check_status_exception, print_it_catch_exception)
2494 (print_one_catch_exception, print_mention_catch_exception)
2495 (print_recreate_catch_exception)
2496 (allocate_location_catch_exception_unhandled)
2497 (re_set_catch_exception_unhandled)
2498 (check_status_exception, print_it_catch_exception_unhandled)
2499 (print_one_catch_exception_unhandled)
2500 (print_mention_catch_exception_unhandled)
2501 (print_recreate_catch_exception_unhandled)
2502 (allocate_location_catch_assert, re_set_catch_assert)
2503 (check_status_assert, print_it_catch_assert)
2504 (print_one_catch_assert, print_mention_catch_assert)
2505 (print_recreate_catch_assert)
2506 (allocate_location_catch_handlers, re_set_catch_handlers)
2507 (check_status_handlers, print_it_catch_handlers)
2508 (print_one_catch_handlers, print_mention_catch_handlers)
2509 (print_recreate_catch_handlers): Remove.
2510 (create_ada_exception_catchpoint): Update.
2511 (initialize_ada_catchpoint_ops): Update.
2512
2513 2019-10-02 Tom Tromey <tromey@adacore.com>
2514
2515 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2516 (create_excep_cond_exprs): Simplify exception string computation.
2517 (ada_exception_catchpoint_cond_string): Likewise.
2518
2519 2019-10-02 Tom Tromey <tromey@adacore.com>
2520
2521 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2522 * ada-lang.c (lesseq_defined_than): Handle
2523 LOC_STATIC.
2524 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2525 parameter.
2526 (dwarf2_has_info): Likewise.
2527 (new_symbol): Set maybe_copied on symbol when
2528 appropriate.
2529 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2530 parameter.
2531 <can_copy>: New member.
2532 * elfread.c (record_minimal_symbol): Set maybe_copied
2533 on symbol when appropriate.
2534 (elf_symfile_read): Update call to dwarf2_has_info.
2535 * minsyms.c (lookup_minimal_symbol_linkage): New
2536 function.
2537 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2538 * symtab.c (get_symbol_address, get_msymbol_address):
2539 New functions.
2540 * symtab.h (get_symbol_address, get_msymbol_address):
2541 Declare.
2542 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2543 maybe_copied.
2544 (struct symbol, struct minimal_symbol) <maybe_copied>:
2545 New member.
2546
2547 2019-10-02 Tom Tromey <tromey@adacore.com>
2548
2549 * source.c (struct current_source_location): New.
2550 (current_source_key): New global.
2551 (current_source_symtab, current_source_line)
2552 (current_source_pspace): Remove.
2553 (get_source_location): New function.
2554 (get_current_source_symtab_and_line)
2555 (set_default_source_symtab_and_line)
2556 (set_current_source_symtab_and_line)
2557 (clear_current_source_symtab_and_line, select_source_symtab)
2558 (info_source_command, print_source_lines_base)
2559 (info_line_command, search_command_helper, _initialize_source):
2560 Update.
2561
2562 2019-10-02 Tom Tromey <tromey@adacore.com>
2563
2564 * source.c (select_source_symtab): Don't call
2565 decode_line_with_current_source.
2566
2567 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * symtab.c (lookup_global_symbol): Search global block.
2570
2571 2019-10-02 Tom Tromey <tromey@adacore.com>
2572
2573 * coffread.c (process_coff_symbol): Update.
2574 * dwarf2read.c (var_decode_location, new_symbol): Update.
2575 * mdebugread.c (parse_symbol): Update.
2576 * objfiles.c (relocate_one_symbol): Update.
2577 * stabsread.c (define_symbol, fix_common_block)
2578 (scan_file_globals): Update.
2579 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2580 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2581 * xcoffread.c (process_xcoff_symbol): Update.
2582
2583 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2584
2585 * MAINTAINERS: Update my email address.
2586
2587 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2590 std::vector.
2591 (build_type_psymtabs_reader): Update for std::vector.
2592 (build_type_psymtab_dependencies): Likewise.
2593 * dwarf2read.h: Remove use of DEF_VEC_P.
2594 (typedef sig_type_ptr): Delete.
2595
2596 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2599 to std::vector.
2600 (btrace_maint_decode_pt): Likewise, and move allocation of the
2601 vector outside of the loop.
2602 (btrace_maint_update_packets): Update to handle change from VEC to
2603 std::vector.
2604 (btrace_maint_print_packets): Likewise.
2605 (maint_info_btrace_cmd): Likewise.
2606 * btrace.h: Remove use of DEF_VEC_O.
2607 (typedef btrace_pt_packet_s): Delete.
2608 (struct btrace_maint_info) <packets>: Change fromm VEC to
2609 std::vector.
2610 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2611
2612 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2615 make accesses into the vector constant references.
2616 (btrace_add_pc): Update for std::vector.
2617 (btrace_stitch_bts): Likewise.
2618 (parse_xml_btrace_block): Likewise.
2619 (btrace_maint_update_packets): Likewise.
2620 (btrace_maint_print_packets): Likewise.
2621 (maint_info_btrace_cmd): Likewise.
2622 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2623 std::vector.
2624 (btrace_data::empty): Likewise.
2625 (btrace_data_append): Likewise.
2626 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2627 (typedef btrace_block_s): Delete.
2628 (struct btrace_block): Add constructor.
2629 (struct btrace_data_bts) <blocks>: Change to std::vector.
2630 * nat/linux-btrace.c (perf_event_read_bts): Update for
2631 std::vector.
2632 (linux_read_bts): Likewise.
2633
2634 2019-10-01 Tom Tromey <tom@tromey.com>
2635
2636 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2637
2638 2019-10-01 Tom Tromey <tom@tromey.com>
2639
2640 * stack.c (print_frame, info_frame_command_core): Use
2641 styled_string.
2642 * linux-thread-db.c (try_thread_db_load_1)
2643 (try_thread_db_load_from_pdir_1): Use styled_string.
2644 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2645 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2646 (maybe_print_unsupported_script_warning)
2647 (maybe_print_script_not_found_warning): Use styled_string.
2648 * ada-lang.c (user_select_syms): Use styled_string.
2649
2650 2019-10-01 Tom Tromey <tom@tromey.com>
2651
2652 * p-lang.c (pascal_printstr): Use metadata style.
2653 * value.c (show_convenience): Use metadata style.
2654 * valprint.c (valprint_check_validity, val_print_optimized_out)
2655 (val_print_not_saved, val_print_unavailable)
2656 (val_print_invalid_address, generic_val_print, val_print)
2657 (value_check_printable, val_print_array_elements): Use metadata
2658 style.
2659 * ui-out.h (class ui_out) <field_fmt>: New overload.
2660 <do_field_fmt>: Add style parameter.
2661 * ui-out.c (ui_out::field_fmt): New overload.
2662 * typeprint.c (type_print_unknown_return_type)
2663 (val_print_not_allocated, val_print_not_associated): Use metadata
2664 style.
2665 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2666 parameter.
2667 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2668 * tracepoint.c (tvariables_info_1): Use metadata style.
2669 * stack.c (print_frame_arg, print_frame_info, print_frame)
2670 (info_frame_command_core): Use metadata style.
2671 * skip.c (info_skip_command): Use metadata style.
2672 * rust-lang.c (rust_print_enum): Use metadata style.
2673 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2674 metadata style.
2675 * python/py-framefilter.c (py_print_single_arg): Use metadata
2676 style.
2677 * printcmd.c (do_one_display, print_variable_and_value): Use
2678 metadata style.
2679 * p-valprint.c (pascal_val_print)
2680 (pascal_object_print_value_fields): Use metadata style.
2681 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2682 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2683 parameter.
2684 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2685 * m2-valprint.c (m2_print_long_set): Use metadata style.
2686 * m2-typeprint.c (m2_print_type): Use metadata style.
2687 * infcmd.c (print_return_value_1): Use metadata style.
2688 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2689 * f-valprint.c (info_common_command_for_block): Use metadata
2690 style.
2691 * f-typeprint.c (f_type_print_base): Use metadata style.
2692 * expprint.c (print_subexp_standard): Use metadata style.
2693 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2694 * cli/cli-style.h (class cli_style_option): Add constructor.
2695 (metadata_style): Declare.
2696 * cli/cli-style.c (metadata_style): New global.
2697 (_initialize_cli_style): Register metadata style.
2698 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2699 parameter.
2700 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2701 * c-typeprint.c (c_type_print_base_struct_union)
2702 (c_type_print_base_1): Use metadata style.
2703 * breakpoint.c (watchpoint_value_print)
2704 (print_one_breakpoint_location): Use metadata style.
2705 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2706 style.
2707 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2708 style.
2709 * ada-valprint.c (val_print_packed_array_elements, printstr)
2710 (print_field_values, ada_val_print_ref, ada_val_print): Use
2711 metadata style.
2712 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2713 style.
2714 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2715 style.
2716 * ada-lang.c (user_select_syms): Use metadata style.
2717
2718 2019-10-01 Tom Tromey <tom@tromey.com>
2719
2720 * cli/cli-cmds.c (pwd_command): Style output.
2721
2722 2019-10-01 Pedro Alves <palves@redhat.com>
2723 Tom Tromey <tom@tromey.com>
2724
2725 * symtab.c (print_symbol_info): Use %ps.
2726 (print_msymbol_info): Use %ps.
2727 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2728 * printcmd.c (print_variable_and_value): Use %ps.
2729 * macrocmd.c (show_pp_source_pos): Use %ps.
2730 * infrun.c (print_exited_reason): Use ui_out::message.
2731 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2732 (describe_other_breakpoints): Use ui_out::message and new
2733 formats.
2734 (say_where): Use new formats.
2735 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2736 and new formats.
2737
2738 2019-10-01 Pedro Alves <palves@redhat.com>
2739 Tom Tromey <tom@tromey.com>
2740
2741 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2742 (test_gdb_formats): New function.
2743 (run_tests): Call it.
2744 (test_format_specifier): Update.
2745 * utils.h (fputs_filtered): Update comment.
2746 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2747 (fputs_styled_unfiltered): Declare.
2748 * utils.c (fputs_styled_unfiltered): New function.
2749 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2750 (vfprintf_filtered): Update.
2751 (vfprintf_unfiltered, vprintf_filtered): Update.
2752 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2753 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2754 disallow_ui_out_field>: New constants.
2755 (enum class field_kind): New.
2756 (struct base_field_s, struct signed_field_s): New.
2757 (signed_field): New function.
2758 (struct string_field_s): New.
2759 (string_field): New function.
2760 (struct styled_string_s): New.
2761 (styled_string): New function.
2762 (class ui_out) <message>: Add comment.
2763 <vmessage, call_do_message>: New methods.
2764 <do_message>: Add style parameter.
2765 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2766 methods.
2767 (ui_out::message): Rewrite.
2768 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2769 parameter.
2770 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2771 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2772 gdb_extensions parameter.
2773 (class format_piece): Add parameter to constructor.
2774 (n_int_args): New field.
2775 * gdbsupport/format.c (format_pieces::format_pieces): Add
2776 gdb_extensions parameter. Handle '*'.
2777 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2778 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2779 vfprintf_styled_no_gdbfmt.
2780 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2781 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2782 unfiltered output.
2783 * ui-style.h (struct ui_file_style) <ptr>: New method.
2784
2785 2019-10-01 Tom Tromey <tom@tromey.com>
2786
2787 * unittests/format_pieces-selftests.c: Update. Add final format.
2788 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2789 empty literal pieces.
2790
2791 2019-10-01 Tom Tromey <tom@tromey.com>
2792
2793 * ui-out.h (enum class ui_out_style_kind): Remove.
2794 (class ui_out) <field_string, field_stsream, do_field_string>:
2795 Change type of "style".
2796 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2797 (ui_out::field_string): Update.
2798 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2799 of "style".
2800 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2801 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2802 * stack.c (print_frame_arg, print_frame_info, print_frame):
2803 Update.
2804 * source.c (print_source_lines_base): Update.
2805 * solib.c (info_sharedlibrary_command): Update.
2806 * skip.c (info_skip_command): Update.
2807 * record-btrace.c (btrace_call_history_src_line)
2808 (btrace_call_history): Update.
2809 * python/py-framefilter.c (py_print_frame): Update.
2810 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2811 "style".
2812 * mi/mi-out.c (mi_ui_out::do_table_header)
2813 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2814 (mi_ui_out::do_field_string): Update.
2815 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2816 Update.
2817 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2818 "style".
2819 * cli-out.c (cli_ui_out::do_table_header)
2820 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2821 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2822 (cli_ui_out::do_field_fmt): Update.
2823 * breakpoint.c (print_breakpoint_location): Update.
2824 (update_static_tracepoint): Update.
2825
2826 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2827
2828 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2829 conversion of gdb_datadir.
2830 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2831 remove not needed c_str ().
2832
2833 2019-09-30 Ali Tamur <tamur@google.com>
2834
2835 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2836 (dwarf2_string_attr): Likewise.
2837
2838 2019-09-30 Ali Tamur <tamur@google.com>
2839
2840 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2841 (process_full_type_unit): Likewise.
2842 (dump_die_shallow): Likewise.
2843 (cu_debug_loc_section): Likewise.
2844
2845 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2846
2847 * minsyms.c (compare_minimal_symbols): Rename to...
2848 (minimal_symbol_is_less_than): ...this, and adjust to STL
2849 conventions (return bool, take arguments as references)
2850 (minimal_symbol_reader::install): Call std::sort instead
2851 of qsort.
2852
2853 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2854
2855 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2856 hash and why.
2857 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2858 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2859
2860 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2861
2862 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2863 * psympriv.h (add_psymbol_to_list): Move comment here and update
2864 it.
2865
2866 2019-09-29 Tom de Vries <tdevries@suse.de>
2867
2868 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2869 Use $tmpdir/$(basename "$output_file").dwz instead of
2870 "${output_file}.dwz".
2871
2872 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2873
2874 PR gdb/25045
2875 * hppa-linux-nat.c: Include gdbarch.h.
2876
2877 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2878
2879 * blockframe.c (find_pc_partial_function): Change return type to bool.
2880 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2881 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2882 (stub_gnu_ifunc_resolve_name): Likewise.
2883 * symtab.c (compare_filenames_for_search): Likewise.
2884 (compare_glob_filenames_for_search): Likewise.
2885 (matching_obj_sections): Likewise.
2886 (symbol_matches_domain): Likewise.
2887 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2888 (find_line_pc): Change return type to bool.
2889 (find_line_pc_range): Likewise.
2890 (producer_is_realview): Likewise.
2891 * symtab.h (symbol_matches_domain): Likewise.
2892 (find_pc_partial_function): Likewise.
2893 (find_pc_line_pc_range): Likewise.
2894 (in_gnu_ifunc_stub): Likewise.
2895 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2896 (find_line_pc): Likewise.
2897 (find_line_pc_range): Likewise.
2898 (matching_obj_sections): Likewise.
2899 (find_line_symtab): Change out parameter to bool.
2900 (producer_is_realview): Change return type to bool.
2901 (compare_filenames_for_search): Likewise.
2902 (compare_glob_filenames_for_search): Likewise.
2903
2904 2019-09-26 Tom Tromey <tom@tromey.com>
2905
2906 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2907 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2908 * gdb_usleep.h: Remove.
2909 * gdb_usleep.c: Remove.
2910 * utils.c: Don't include gdb_usleep.h.
2911
2912 2019-09-26 Tom Tromey <tromey@adacore.com>
2913
2914 * python/py-type.c (type_to_type_object): Call check_typedef
2915 for stub types.
2916
2917 2019-09-26 Tom Tromey <tom@tromey.com>
2918
2919 * utils.h (initialize_utils): Don't declare.
2920 * top.c (gdb_init): Don't call initialize_utils.
2921 * utils.c (initialize_utils): Remove. Move contents...
2922 (_initialize_utils): ... here.
2923
2924 2019-09-25 Tom Tromey <tom@tromey.com>
2925
2926 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2927 * utils.h (make_hex_string): Don't declare.
2928 * utils.c (make_hex_string): Remove.
2929
2930 2019-09-24 Tom de Vries <tdevries@suse.de>
2931
2932 PR gdb/23815
2933 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2934 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2935
2936 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2937
2938 * NEWS: Mention new simulator port for PRU.
2939
2940 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2941
2942 * ada-exp.y (write_object_remaining): Update.
2943 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2944 and eliminate the static buffer.
2945 (ada_decode_symbol): Update.
2946 (ada_la_decode): Update.
2947 (ada_sniff_from_mangled_name): Update.
2948 (is_valid_name_for_wild_match): Update.
2949 (ada_lookup_name_info::matches): Update and simplify.
2950 (name_matches_regex): Update.
2951 (ada_add_global_exceptions): Update.
2952 * ada-lang.h (ada_decode): Update signature.
2953 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2954 * dwarf-index-write.c (debug_names::insert): Update.
2955
2956 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2959 formatting.
2960
2961 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2964 Change "nonzero" to "true" in documentation.
2965
2966 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2967
2968 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2969 (_initialize_darwin_solib): Don't set
2970 darwin_so_ops.lookup_lib_global_symbol.
2971 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2972 set_gdbarch_iterate_over_objfiles_in_search_order.
2973 (elf_lookup_lib_symbol): Rename to...
2974 (svr4_iterate_over_objfiles_in_search_order): this, and update
2975 to iterate semantics.
2976 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2977 * solib.c (solib_global_lookup): Remove.
2978 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2979 (solib_global_lookup): Remove.
2980 * symtab.c (lookup_global_or_static_symbol): Remove call to
2981 solib_global_lookup.
2982
2983 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2984
2985 * NEWS: Move entries about default MI version now being
2986 version 3, and about the GDB/MI fix for multi-location
2987 breakpoints to the "since GDB 8.3" section.
2988
2989 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2990
2991 GDB 8.3.1 released.
2992
2993 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2994
2995 * NEWS: Mention that Cell/B.E. debugging support was removed.
2996 * MAINTAINERS: Remove spu target.
2997
2998 * config/djgpp/fnchange.lst: Remove entries for removed files.
2999
3000 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3001 spu-multiarch.o, and spu-tdep.o.
3002 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3003 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3004 spu-multiarch.c, and spu-tdep.c.
3005 * spu-linux-nat.c: Remove file.
3006 * spu-multiarch.c: Remove file.
3007 * spu-tdep.c: Remove file.
3008 * spu-tdep.h: Remove file.
3009 * solib-spu.c: Remove file.
3010 * solib-spu.h: Remove file.
3011
3012 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3013 * configure.nat (spu-linux): Remove.
3014 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3015 solib-multiarch.o from gdb_target_obs.
3016 (spu*-*-*): Remove.
3017
3018 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3019 feature flag.
3020 (ppc_linux_no_features): Update.
3021 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3022 Cell/B.E. support.
3023 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3024 (tdesc_powerpc_cell64l): Likewise.
3025 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3026 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3027 Cell/B.E. support.
3028 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3029 Do not include "features/rs6000/powerpc-cell32l.c" or
3030 "features/rs6000/powerpc-cell64l.c".
3031 (ppc_linux_spu_section): Remove.
3032 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3033 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3034 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3035 (ppc_linux_spe_context_lookup): Remove.
3036 (ppc_linux_spe_context_inferior_created): Remove.
3037 (ppc_linux_spe_context_solib_loaded): Remove.
3038 (ppc_linux_spe_context_solib_unloaded): Remove.
3039 (ppc_linux_spe_context): Remove.
3040 (struct ppu2spu_cache): Remove.
3041 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3042 (struct ppu2spu_data): Remove.
3043 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3044 ppu2spu_unwind): Remove.
3045 (ppc_linux_init_abi): Remove Cell/B.E. support.
3046 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3047
3048 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3049 (rs6000/powerpc-cell64l-expedite): Likewise
3050 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3051 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3052 rs6000/powerpc-cell64l.xml.
3053 * features/rs6000/powerpc-cell32l.xml: Remove.
3054 * features/rs6000/powerpc-cell64l.xml: Likewise.
3055 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3056 * features/rs6000/powerpc-cell64l.c: Likewise.
3057 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3058 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3059 * regformats/reg-spu.dat: Remove.
3060
3061 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3062 * corelow.c (struct spuid_list): Remove.
3063 (add_to_spuid_list): Remove.
3064 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3065 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3066 (remote_protocol_features): Remove associated entries.
3067 (_initialize_remote): No longer initialize them.
3068 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3069 * linux-nat.c (SPUFS_MAGIC): Remove.
3070 (linux_proc_xfer_spu): Remove.
3071 (spu_enumerate_spu_ids): Remove.
3072 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3073 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3074 (linux_make_corefile_notes): No longer call it.
3075
3076 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3077 (cooked_write_test): Likewise.
3078
3079 2019-09-20 Tom Tromey <tom@tromey.com>
3080
3081 * NEWS: Mention case-sensitivity of TUI commands.
3082 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3083 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3084 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3085
3086 2019-09-20 Tom Tromey <tom@tromey.com>
3087
3088 * tui/tui-source.c (tui_source_window::set_contents): Use
3089 make_unique_xstrdup.
3090 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3091 make_unique_xstrdup.
3092
3093 2019-09-20 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-data.c: Remove separator comments.
3096 * tui/tui-layout.c: Remove separator comments.
3097 * tui/tui-win.c: Remove separator comments.
3098 * tui/tui-wingeneral.c: Remove separator comments.
3099
3100 2019-09-20 Tom Tromey <tom@tromey.com>
3101
3102 * tui/tui.h (strcat_to_buf): Don't declare.
3103 * tui/tui.c (strcat_to_buf): Remove.
3104
3105 2019-09-20 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3108 from "fullname".
3109 * tui/tui-source.c (tui_source_window::set_contents)
3110 (tui_source_window::location_matches_p)
3111 (tui_source_window::maybe_update): Update.
3112
3113 2019-09-20 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3116 Update.
3117 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3118 prefix.
3119 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3120 (tui_data_window::line_from_reg_element_no)
3121 (tui_data_window::first_reg_element_no_inline)
3122 (tui_data_window::show_registers)
3123 (tui_data_window::show_register_group)
3124 (tui_data_window::display_registers_from)
3125 (tui_data_window::display_registers_from_line)
3126 (tui_data_window::first_data_item_displayed)
3127 (tui_data_window::delete_data_content_windows)
3128 (tui_data_window::erase_data_content)
3129 (tui_data_window::do_scroll_vertical)
3130 (tui_data_window::refresh_window)
3131 (tui_data_window::check_register_values): Update.
3132
3133 2019-09-20 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3136 (struct tui_locator_window) <full_name, proc_name>: Now
3137 std::string.
3138 * tui/tui-stack.c (tui_locator_window::make_status_line)
3139 (tui_locator_window::set_locator_fullname)
3140 (tui_locator_window::set_locator_info): Update.
3141 * tui/tui-source.c (tui_source_window::set_contents)
3142 (tui_source_window::showing_source_p): Update.
3143
3144 2019-09-20 Tom Tromey <tom@tromey.com>
3145
3146 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3147 Don't call tui_locator_win_info_ptr.
3148
3149 2019-09-20 Tom Tromey <tom@tromey.com>
3150
3151 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3152
3153 2019-09-20 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3156 height for locator.
3157 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3158 * tui/tui-layout.c (show_source_disasm_command, show_data)
3159 (show_source_or_disasm_and_command): Use 1 as height for locator.
3160
3161 2019-09-20 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui.c (tui_enable): Update.
3164 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3165 Update.
3166 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3167 Update.
3168 * tui/tui-data.c (win_resized): Now bool.
3169 (tui_win_resized): Return bool.
3170 (tui_set_win_resized_to): Accept a bool.
3171
3172 2019-09-20 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3175 Change type of "refresh_values_only".
3176 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3177 type of "refresh_values_only".
3178
3179 2019-09-20 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3182 std::string.
3183 (tui_disassemble): Add "pos" parameter.
3184 (tui_disasm_window::set_contents): Simplify.
3185
3186 2019-09-20 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-winsource.h (struct tui_source_window_base)
3189 <show_source_content>: Now private.
3190 * tui/tui-winsource.c
3191 (tui_source_window_base::show_source_content): Don't handle empty
3192 content case.
3193
3194 2019-09-20 Tom Tromey <tom@tromey.com>
3195
3196 * tui/tui-layout.c (show_source_disasm_command)
3197 (show_source_or_disasm_and_command): Don't call
3198 show_source_content.
3199
3200 2019-09-20 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3203 Declare.
3204 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3205 from tui_make_status_line.
3206 (tui_locator_window::rerender): Update.
3207
3208 2019-09-20 Tom Tromey <tom@tromey.com>
3209
3210 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3211 (tui_locator_window::rerender): Update.
3212
3213 2019-09-20 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-winsource.h (struct tui_source_window_base)
3216 <~tui_source_window_base>: Don't declare.
3217 <fullname>: Remove.
3218 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3219 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3220 member.
3221 * tui/tui-source.c (tui_source_window::set_contents): Update.
3222 (tui_source_window::location_matches_p)
3223 (tui_source_window::maybe_update): Update.
3224
3225 2019-09-20 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-winsource.h (~tui_source_element): Remove.
3228 (tui_source_element): Update.
3229 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3230 * tui/tui-winsource.c (tui_show_source_line): Update.
3231 * tui/tui-source.c (tui_source_window::set_contents): Update.
3232 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3233
3234 2019-09-20 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3237 declare.
3238 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3239 tui_clear_source_windows_detail.
3240 * tui/tui-winsource.h (struct tui_source_window_base)
3241 <clear_detail>: Don't declare.
3242 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3243 Remove.
3244 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3245
3246 2019-09-20 Tom Tromey <tromey@adacore.com>
3247
3248 PR ada/24919:
3249 * block.c (contained_in): Fix final return value.
3250
3251 2019-09-20 Alan Modra <amodra@gmail.com>
3252
3253 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3254 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3255 (read_indirect_string_from_dwz): Use bfd accessor.
3256 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3257 * machoread.c (macho_symfile_read_all_oso): Likewise.
3258 * solib.c (solib_bfd_open): Likewise.
3259
3260 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3261
3262 * eval.c: Move declaration of overload_resolution to...
3263 * value.h: ...here.
3264
3265 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3266
3267 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3268 * arm-linux-tdep.c: Likewise.
3269 * arm-nbsd-nat.c: Likewise.
3270 * arm-tdep.h: Declare arm_apcs_32.
3271 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3272
3273 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3274
3275 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3276 * dwarf2read.h: Declare dwarf_always_disassemble.
3277
3278 2019-09-19 Tom de Vries <tdevries@suse.de>
3279
3280 PR gdb/25009
3281 * source-cache.c (source_cache::ensure): Catch exception thrown during
3282 construction of the highlighter.
3283
3284 2019-09-18 Alan Modra <amodra@gmail.com>
3285
3286 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3287 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3288 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3289 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3290 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3291 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3292 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3293 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3294 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3295 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3296 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3297 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3298 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3299 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3300 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3301 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3302 * mi/mi-interp.c: Update throughout for bfd section macro and
3303 function changes.
3304 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3305 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3306
3307 2019-09-18 Tom Tromey <tom@tromey.com>
3308
3309 * NEWS: Add entry.
3310 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3311 call rl_initialize.
3312 (tui_enable): Do not call rl_initialize.
3313
3314 2019-09-18 Christian Groessler <chris@groessler.org>
3315
3316 * alpha-linux-nat.c: Include gdbarch.h.
3317
3318 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3319
3320 * ui-file.c: Include cli/cli-style.h.
3321 (term_cli_styling): Remove cli_styling declaration.
3322
3323 2019-09-18 Alan Modra <amodra@gmail.com>
3324
3325 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3326 to bfd_asymbol_section.
3327
3328 2019-09-18 Alan Modra <amodra@gmail.com>
3329
3330 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3331 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3332 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3333
3334 2019-09-18 Alan Modra <amodra@gmail.com>
3335
3336 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3337 * spu-linux-nat.c (spu_bfd_open): Likewise.
3338
3339 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3340
3341 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3342 to bool to match definition in dwarf2read.c.
3343
3344 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3345
3346 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3347 (print_signatures): Likewise.
3348 (trust_pad_over_xvs): Likewise.
3349 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3350 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3351 * arm-linux-nat.c (arm_apcs_32): Likewise.
3352 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3353 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3354 * arm-tdep.c (arm_debug): Likewise.
3355 (arm_apcs_32): Likewise.
3356 * auto-load.c (debug_auto_load): Likewise.
3357 (auto_load_gdb_scripts): Likewise.
3358 (global_auto_load): Likewise.
3359 (auto_load_local_gdbinit): Likewise.
3360 (auto_load_local_gdbinit_loaded): Likewise.
3361 * auto-load.h (global_auto_load): Likewise.
3362 (auto_load_local_gdbinit): Likewise.
3363 (auto_load_local_gdbinit_loaded): Likewise.
3364 * breakpoint.c (disconnected_dprintf): Likewise.
3365 (breakpoint_proceeded): Likewise.
3366 (automatic_hardware_breakpoints): Likewise.
3367 (always_inserted_mode): Likewise.
3368 (target_exact_watchpoints): Likewise.
3369 (_initialize_breakpoint): Update.
3370 * breakpoint.h (target_exact_watchpoints): Change to bool.
3371 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3372 * cli/cli-cmds.c (trace_commands): Likewise.
3373 * cli/cli-cmds.h (trace_commands): Likewise.
3374 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3375 to bool*.
3376 * cli/cli-logging.c (logging_overwrite): Change to bool.
3377 (logging_redirect): Likewise.
3378 (debug_redirect): Likewise.
3379 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3380 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3381 to bool.
3382 <boolean_option_def>: Update.
3383 (struct flag_option_def): Change default type of Context to bool
3384 from int.
3385 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3386 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3387 (get_setshow_command_value_string): Likewise.
3388 * cli/cli-style.c (cli_styling): Change to bool.
3389 (source_styling): Likewise.
3390 * cli/cli-style.h (source_styling): Likewise.
3391 (cli_styling): Likewise.
3392 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3393 to bool.
3394 * command.h (var_types): Update comment.
3395 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3396 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3397 bool.
3398 (debug_compile_cplus_scopes): Likewise.
3399 * compile/compile-internal.h (compile_debug): Likewise.
3400 * compile/compile.c (compile_debug): Likewise.
3401 (struct compile_options) <raw>: Likewise.
3402 * cp-support.c (catch_demangler_crashes): Likewise.
3403 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3404 (usr_cmd_cris_dwarf2_cfi): Likewise.
3405 * csky-tdep.c (csky_debug): Likewise.
3406 * darwin-nat.c (enable_mach_exceptions): Likewise.
3407 * dcache.c (dcache_enabled_p): Likewise.
3408 * defs.h (info_verbose): Likewise.
3409 * demangle.c (demangle): Likewise.
3410 (asm_demangle): Likewise.
3411 * dwarf-index-cache.c (debug_index_cache): Likewise.
3412 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3413 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3414 * dwarf2read.c (check_physname): Likewise.
3415 (use_deprecated_index_sections): Likewise.
3416 (dwarf_always_disassemble): Likewise.
3417 * eval.c (overload_resolution): Likewise.
3418 * event-top.c (set_editing_cmd_var): Likewise.
3419 (exec_done_display_p): Likewise.
3420 * event-top.h (set_editing_cmd_var): Likewise.
3421 (exec_done_display_p): Likewise.
3422 * exec.c (write_files): Likewise.
3423 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3424 (debug_fbsd_nat): Likewise.
3425 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3426 Likewise.
3427 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3428 <backtrace_past_entry> Likewise.
3429 * gdb-demangle.h (demangle): Likewise.
3430 (asm_demangle): Likewise.
3431 * gdb_bfd.c (bfd_sharing): Likewise.
3432 * gdbcore.h (write_files): Likewise.
3433 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3434 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3435 * gdbthread.h (print_thread_events): Likewise.
3436 * gdbtypes.c (opaque_type_resolution): Likewise.
3437 (strict_type_checking): Likewise.
3438 * gnu-nat.c (gnu_debug_flag): Likewise.
3439 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3440 * guile/scm-param.c (pascm_variable): Add boolval.
3441 (add_setshow_generic): Update.
3442 (pascm_param_value): Update.
3443 (pascm_set_param_value_x): Update.
3444 * hppa-tdep.c (hppa_debug): Change to bool..
3445 * infcall.c (may_call_functions_p): Likewise.
3446 (coerce_float_to_double_p): Likewise.
3447 (unwind_on_signal_p): Likewise.
3448 (unwind_on_terminating_exception_p): Likewise.
3449 * infcmd.c (startup_with_shell): Likewise.
3450 * inferior.c (print_inferior_events): Likewise.
3451 * inferior.h (startup_with_shell): Likewise.
3452 (print_inferior_events): Likewise.
3453 * infrun.c (step_stop_if_no_debug): Likewise.
3454 (detach_fork): Likewise.
3455 (debug_displaced): Likewise.
3456 (disable_randomization): Likewise.
3457 (non_stop): Likewise.
3458 (non_stop_1): Likewise.
3459 (observer_mode): Likewise.
3460 (observer_mode_1): Likewise.
3461 (set_observer_mode): Update.
3462 (sched_multi): Change to bool.
3463 * infrun.h (debug_displaced): Likewise.
3464 (sched_multi): Likewise.
3465 (step_stop_if_no_debug): Likewise.
3466 (non_stop): Likewise.
3467 (disable_randomization): Likewise.
3468 * linux-tdep.c (use_coredump_filter): Likewise.
3469 (dump_excluded_mappings): Likewise.
3470 * linux-thread-db.c (auto_load_thread_db): Likewise.
3471 (check_thread_db_on_load): Likewise.
3472 * main.c (captured_main_1): Update.
3473 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3474 xx2_opt, boolean_opt>: Change to bool.
3475 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3476 * maint.c (maintenance_profile_p): Likewise.
3477 (per_command_time): Likewise.
3478 (per_command_space): Likewise.
3479 (per_command_symtab): Likewise.
3480 * memattr.c (inaccessible_by_default): Likewise.
3481 * mi/mi-main.c (mi_async): Likewise.
3482 (mi_async_1): Likewise.
3483 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3484 * nat/fork-inferior.h (startup_with_shell): Likewise.
3485 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3486 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3487 * nios2-tdep.c (nios2_debug): Likewise.
3488 * or1k-tdep.c (or1k_debug): Likewise.
3489 * parse.c (parser_debug): Likewise.
3490 * parser-defs.h (parser_debug): Likewise.
3491 * printcmd.c (print_symbol_filename): Likewise.
3492 * proc-api.c (procfs_trace): Likewise.
3493 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3494 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3495 (set_parameter_value): Update.
3496 (add_setshow_generic): Update.
3497 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3498 to bool*.
3499 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3500 int*.
3501 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3502 * record-btrace.c (record_btrace_target::store_registers): Update.
3503 * record-full.c (record_full_memory_query): Change to bool.
3504 (record_full_stop_at_limit): Likewise.
3505 * record-full.h (record_full_memory_query): Likewise.
3506 * remote-notif.c (notif_debug): Likewise.
3507 * remote-notif.h (notif_debug): Likewise.
3508 * remote.c (use_range_stepping): Likewise.
3509 (interrupt_on_connect): Likewise.
3510 (remote_break): Likewise.
3511 * ser-tcp.c (tcp_auto_retry): Likewise.
3512 * ser-unix.c (serial_hwflow): Likewise.
3513 * skip.c (debug_skip): Likewise.
3514 * solib-aix.c (solib_aix_debug): Likewise.
3515 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3516 (spu_auto_flush_cache_p): Likewise.
3517 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3518 Likewise.
3519 (struct info_print_options) <quiet>: Likewise.
3520 * symfile-debug.c (debug_symfile): Likewise.
3521 * symfile.c (auto_solib_add): Likewise.
3522 (separate_debug_file_debug): Likewise.
3523 * symfile.h (auto_solib_add): Likewise.
3524 (separate_debug_file_debug): Likewise.
3525 * symtab.c (basenames_may_differ): Likewise.
3526 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3527 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3528 (struct info_types_options) <quiet>: Likewise.
3529 * symtab.h (demangle): Likewise.
3530 (basenames_may_differ): Likewise.
3531 * target-dcache.c (stack_cache_enabled_1): Likewise.
3532 (code_cache_enabled_1): Likewise.
3533 * target.c (trust_readonly): Likewise.
3534 (may_write_registers): Likewise.
3535 (may_write_memory): Likewise.
3536 (may_insert_breakpoints): Likewise.
3537 (may_insert_tracepoints): Likewise.
3538 (may_insert_fast_tracepoints): Likewise.
3539 (may_stop): Likewise.
3540 (auto_connect_native_target): Likewise.
3541 (target_stop_and_wait): Update.
3542 (target_async_permitted): Change to bool.
3543 (target_async_permitted_1): Likewise.
3544 (may_write_registers_1): Likewise.
3545 (may_write_memory_1): Likewise.
3546 (may_insert_breakpoints_1): Likewise.
3547 (may_insert_tracepoints_1): Likewise.
3548 (may_insert_fast_tracepoints_1): Likewise.
3549 (may_stop_1): Likewise.
3550 * target.h (target_async_permitted): Likewise.
3551 (may_write_registers): Likewise.
3552 (may_write_memory): Likewise.
3553 (may_insert_breakpoints): Likewise.
3554 (may_insert_tracepoints): Likewise.
3555 (may_insert_fast_tracepoints): Likewise.
3556 (may_stop): Likewise.
3557 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3558 (make_thread_apply_all_options_def_group): Change argument from int*
3559 to bool*.
3560 (thread_apply_all_command): Update.
3561 (print_thread_events): Change to bool.
3562 * top.c (confirm): Likewise.
3563 (command_editing_p): Likewise.
3564 (history_expansion_p): Likewise.
3565 (write_history_p): Likewise.
3566 (info_verbose): Likewise.
3567 * top.h (confirm): Likewise.
3568 (history_expansion_p): Likewise.
3569 * tracepoint.c (disconnected_tracing): Likewise.
3570 (circular_trace_buffer): Likewise.
3571 * typeprint.c (print_methods): Likewise.
3572 (print_typedefs): Likewise.
3573 * utils.c (debug_timestamp): Likewise.
3574 (sevenbit_strings): Likewise.
3575 (pagination_enabled): Likewise.
3576 * utils.h (sevenbit_strings): Likewise.
3577 (pagination_enabled): Likewise.
3578 * valops.c (overload_resolution): Likewise.
3579 * valprint.h (struct value_print_options) <prettyformat_arrays,
3580 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3581 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3582 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3583 Likewise.
3584 * windows-nat.c (new_console): Likewise.
3585 (cygwin_exceptions): Likewise.
3586 (new_group): Likewise.
3587 (debug_exec): Likewise.
3588 (debug_events): Likewise.
3589 (debug_memory): Likewise.
3590 (debug_exceptions): Likewise.
3591 (useshell): Likewise.
3592 * windows-tdep.c (maint_display_all_tib): Likewise.
3593 * xml-support.c (debug_xml): Likewise.
3594
3595 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3596
3597 * source.c (prepare_path_for_appending): New function.
3598 (openp): Make use of new function.
3599 (find_and_open_source): Search for the compilation directory and
3600 source file as a relative path beneath the directory search path.
3601
3602 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * source-cache.c (source_cache::get_line_charpos): Catch
3605 exceptions and return false, this matches the behaviour documented
3606 in the header file.
3607
3608 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3609
3610 * ada-tasks.c (info_task): Remove quoting of the task's name.
3611
3612 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3613
3614 * symfile.c (auto_solib_add): Replace comment with a reference
3615 to the header file.
3616
3617 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3618
3619 * NEWS: Mention that gdb can now be compiled with Python 3
3620 on Windows.
3621
3622 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * maint.c (maint_print_section_data::maint_print_section_data):
3625 Force use of 'float log10 (float)' by casting the argument to
3626 float.
3627
3628 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * maint.c: Add 'cmath' include.
3631 (struct maint_print_section_data): New structure.
3632 (print_section_index): New function.
3633 (print_bfd_section_info): Add header comment, small whitespace
3634 cleanup, and update to call new print_section_index function.
3635 (print_objfile_section_info): Likewise.
3636 (maint_obj_section_from_bfd_section): New function.
3637 (print_bfd_section_info_maybe_relocated): New function.
3638 (maintenance_info_sections): Add header comment, always use
3639 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3640
3641 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3642
3643 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3644 inner scope, add check that the objfile has psymtabs before
3645 checking psymtabs_addrmap.
3646 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3647
3648 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649
3650 * NEWS: Announce that Ada task names are now shown at more places,
3651 and between quotes (except in info task output).
3652 * gdb/ada-tasks.c (task_to_str): New function.
3653 (display_current_task_id): Call task_to_str.
3654 (task_command_1): Likewise.
3655 (print_ada_task_info): In non-mi mode, Properly align headers and data
3656 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3657
3658 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3659
3660 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3661 prstatus.pr_lwp.pr_info instead of making it up.
3662
3663 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3664
3665 * auto-load.c (auto_load_expand_dir_vars): Update.
3666 * defs.h (gdb_datadir): Change to std::string.
3667 (python_libdir): Likewise.
3668 (relocate_gdb_directory): Change return type to std::string.
3669 * guile/guile.c (gdbscm_data_directory): Update.
3670 (initialize_scheme_side): Update.
3671 * jit.c (jit_reader_dir): Change to std::string.
3672 (jit_reader_load_command): Update.
3673 * main.c (gdb_datadir): Change to std::string.
3674 (python_libdir): Likewise.
3675 (set_gdb_data_directory): Update.
3676 (relocate_path): Change to return std::string.
3677 (relocate_gdb_directory): Change to return std::string.
3678 (relocate_gdbinit_path_maybe_in_datadir): Update.
3679 (captured_main_1): Update.
3680 * python/python.c (do_start_initialization): Update.
3681 * top.c (show_gdb_datadir): Update.
3682 * xml-syscall.c (xml_init_syscalls_info): Update.
3683 (init_syscalls_info): Update.
3684
3685 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3686
3687 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3688 out of get_init_files.
3689 (get_init_files): Update.
3690
3691 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3692
3693 * main.c (get_init_files): Change to use std::string.
3694 (captured_main_1): Update.
3695 (print_gdb_help): Update.
3696
3697 2019-09-11 Ali Tamur <tamur@google.com>
3698
3699 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3700 implementation.
3701
3702 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3703
3704 * dbxread.c (read_dbx_symtab): Update.
3705 * dwarf2read.c (load_partial_dies): Update.
3706 * mdebugread.c (parse_partial_symbols): Update.
3707 (handle_psymbol_enumerators): Update.
3708 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3709 * psymtab.c (add_psymbol_to_bcache): Likewise.
3710 (add_psymbol_to_list): Likewise.
3711 * symtab.c (symbol_set_names): Likewise.
3712 * symtab.h (symbol_set_names): Likewise.
3713 * xcoffread.c (scan_xcoff_symtab): Update.
3714
3715 2019-09-11 Tom Tromey <tom@tromey.com>
3716
3717 * symfile-mem.c (symbol_file_add_from_memory): Use
3718 bfd_set_filename.
3719 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3720 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3721
3722 2019-09-10 Tom Tromey <tromey@adacore.com>
3723
3724 * dwarf-index-write.c (write_psymbols): Extend error message.
3725 (debug_names::insert): Add Ada code.
3726 (debug_names::write_psymbols): Remove Ada check.
3727 (debug_names) <m_string_obstack>: New member.
3728 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3729 (gdb_index_symbol_name_matcher::matches): Remove.
3730 (mapped_index_base::find_name_components_bounds): Add "lang"
3731 parameter.
3732 (mapped_index_base::build_name_components): Also split names
3733 according to Ada syntax.
3734 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3735 type of "match_callback".
3736 (check_match, check_find_bounds_finds)
3737 (dw2_expand_symtabs_matching): Update.
3738 (dw2_debug_names_iterator): Add new constructor.
3739 (dw2_debug_names_map_matching_symbols): New function.
3740 (dw2_debug_names_expand_symtabs_matching): Update.
3741 (dwarf2_debug_names_functions): Use
3742 dw2_debug_names_map_matching_symbols.
3743
3744 2019-09-10 Tom Tromey <tromey@adacore.com>
3745
3746 * dwarf2read.c (dw2_get_file_names_reader): Add the
3747 CU's file name to the results.
3748
3749 2019-09-10 Tom Tromey <tromey@adacore.com>
3750
3751 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3752 map_matching_symbols. Update.
3753 * dwarf2read.c (dw2_map_matching_symbols): Update.
3754 * psymtab.c (match_partial_symbol): Change type; update.
3755 (psym_map_matching_symbols): Likewise.
3756 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3757 type; update.
3758 * symfile.h (struct quick_symbol_functions)
3759 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3760 Remove "match".
3761
3762 2019-09-10 Tom Tromey <tromey@adacore.com>
3763
3764 * psymtab.c (map_block): Remove.
3765 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3766 * symtab.c (iterate_over_symbols_terminated): New function.
3767 * symtab.c (iterate_over_symbols_terminated): Declare.
3768
3769 2019-09-10 Tom Tromey <tromey@adacore.com>
3770
3771 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3772 * language.h (struct language_defn) <la_iterate_over_symbols>:
3773 Return bool.
3774 * symtab.c (iterate_over_symbols): Return bool.
3775 * symtab.h (iterate_over_symbols): Return bool.
3776
3777 2019-09-10 Tom Tromey <tromey@adacore.com>
3778
3779 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3780 (add_nonlocal_symbols): Update.
3781 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3782 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3783 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3784 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3785 Change type of "callback". Remove "data".
3786
3787
3788 2019-09-09 Ali Tamur <tamur@google.com>
3789
3790 * dwarf2read.c (comp_unit_head): Update comment.
3791 (dwarf2_dwo_name): New function declaration.
3792 (dwarf_unit_type_name): New function declaration.
3793 (read_comp_unit_head): Add support for new compilation units,
3794 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3795 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3796 (currently named as "signature") in their header. Also clarify error
3797 messages.
3798 (lookup_dwo_id): New function. Returns the dwo id of the given
3799 compile unit.
3800 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3801 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3802 functions.
3803 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3804 (dwarf2_dwo_name): Get the dwo name if present.
3805 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3806 purposes.
3807
3808 2019-09-09 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3811
3812 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3813
3814 * python/python.c (do_start_initialization): Make progname_copy static,
3815 to avoid a leak report.
3816
3817 2019-09-08 Tom Tromey <tom@tromey.com>
3818
3819 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3820
3821 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3824 Change type to gdb::optional<block_enum>.
3825 (dw2_symtab_iter_init): Change block_index parameter type
3826 to gdb::optional<block_enum>.
3827 (dw2_lookup_symbol): Change block_index parameter
3828 type to block_enum.c
3829 (dw2_debug_names_lookup_symbol): Likewise.
3830 * psymtab.c (psym_lookup_symbol): Likewise.
3831 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3832 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3833 Likewise.
3834
3835 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3836
3837 * defs.h (relocate_gdb_directory): Change int to bool in
3838 signature and rename flag to relocatable.
3839 * main.c (relocate_path): Likewise.
3840 (relocate_gdb_directory): Likewise.
3841
3842 2019-09-06 Alan Modra <amodra@gmail.com>
3843
3844 * coffread.c (coff_symfile_read): Constify filename variable.
3845 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3846 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3847 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3848 * solib.c (reload_shared_libraries_1): Likewise.
3849 * symfile.c (reread_symbols): Likewise.
3850 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3851 * solib-darwin.c (darwin_bfd_open): Likewise.
3852 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3853
3854 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3855
3856 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3857 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3858
3859 2019-09-03 Tom Tromey <tromey@adacore.com>
3860
3861 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3862 types.
3863 (has_negatives): Unbias a range type bound.
3864 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3865 * gdbtypes.c (operator==): Handle new field.
3866 (create_range_type): Add "bias" parameter.
3867 (create_static_range_type, resolve_dynamic_range): Update.
3868 * gdbtypes.h (struct range_bounds) <bias>: New member.
3869 (create_range_type): Add bias parameter.
3870 * printcmd.c (print_scalar_formatted): Unbias range types.
3871 * value.c (unpack_long): Unbias range types.
3872 (pack_long): Bias range types.
3873
3874 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3875
3876 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3877 probe arguments.
3878
3879 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3880
3881 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3882 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3883 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3884 (compile_probe_arg): Likewise.
3885 * probe.h (get_argument_count): Likewise.
3886 * solib-svr4.c (solib_event_probe_action): Likewise.
3887 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3888
3889 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3890
3891 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3892 code to here...
3893 (svr4_create_solib_event_breakpoints): ...from here.
3894
3895 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3896
3897 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3898 suffix from warning message.
3899
3900 2019-08-30 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-winsource.h (struct tui_source_window_base)
3903 <refresh_all>: Don't declare.
3904 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3905 Remove.
3906 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3907 tui_show_locator_content.
3908 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3909 declare.
3910 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3911 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3912 declare.
3913
3914 2019-08-30 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3917
3918 2019-08-30 Tom Tromey <tom@tromey.com>
3919
3920 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3921 Remove unnecessary forward declarations.
3922
3923 2019-08-30 Tom Tromey <tom@tromey.com>
3924
3925 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3926 rerender.
3927 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3928 tui_show_locator_content.
3929
3930 2019-08-30 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3933 (tui_locator_window::rerender): Rewrite using body of previous
3934 tui_show_locator_content.
3935
3936 2019-08-30 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3939 set_locator_fullname>: New methods.
3940 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3941 Rename from tui_set_locator_fullname.
3942 (tui_locator_window::set_locator_info): Rename from
3943 tui_set_locator_info. Return bool.
3944 (tui_update_locator_fullname, tui_show_frame_info): Update.
3945
3946 2019-08-30 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3949
3950 2019-08-30 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3953 call touchwin.
3954
3955 2019-08-30 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-wingeneral.c (box_win): Assume win_info and
3958 win_info->handle cannot be NULL.
3959
3960 2019-08-30 Tom Tromey <tom@tromey.com>
3961
3962 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3963 refresh_window>: Declare.
3964 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3965 resize.
3966 (tui_data_item_window::rerender): Rename from
3967 tui_display_register.
3968 (tui_data_item_window::refresh_window): New method.
3969 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3970 no-op.
3971
3972 2019-08-30 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3975 regs_column_count, current_group>: Move later. Now private.
3976 <get_current_group>: New method.
3977 * tui/tui-regs.c (tui_reg_command): Update.
3978 * tui/tui-layout.c (tui_set_layout): Update.
3979
3980 2019-08-30 Tom Tromey <tom@tromey.com>
3981
3982 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3983 (tui_data_window::rerender): Don't call
3984 check_and_display_highlight_if_needed.
3985 (tui_data_window::refresh_all): Remove call to
3986 erase_data_content.
3987
3988 2019-08-30 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3991 (tui_data_window::display_registers_from)
3992 (tui_data_window::display_reg_element_at_line)
3993 (tui_data_window::display_registers_from_line): Remove checks of
3994 "empty".
3995
3996 2019-08-30 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3999 Don't declare.
4000 * tui/tui-regs.c (tui_data_window::show_registers): Call
4001 rerender.
4002 (tui_data_window::rerender): Rename from display_all_data.
4003 (tui_data_window::rerender): Remove old implementation.
4004
4005 2019-08-30 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4008 text.
4009 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4010
4011 2019-08-29 Bernhard Wodok <barto@gmx.net>
4012 Sergio Durigan Junior <sergiodj@redhat.com>
4013
4014 PR win32/24284
4015 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4016
4017 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4020 when searching for types.
4021
4022 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * f-lang.c (f_language_defn): Use f_print_typedef.
4025 * f-lang.h (f_print_typedef): Declare.
4026 * f-typeprint.c (f_print_typedef): Define.
4027
4028 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4029
4030 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4031
4032 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * cli/cli-utils.c (info_print_options_defs): Delete.
4035 (make_info_print_options_def_group): Delete.
4036 (extract_info_print_options): Delete.
4037 (info_print_command_completer): Delete.
4038 (info_print_args_help): Add extra parameter, and optionally
4039 include text about -n flag.
4040 * cli/cli-utils.h (struct info_print_options): Delete.
4041 (extract_info_print_options): Delete declaration.
4042 (info_print_command_completer): Delete declaration.
4043 (info_print_args_help): Add extra parameter, extend header
4044 comment.
4045 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4046 search_symbols.
4047 * stack.c (struct info_print_options): New type.
4048 (info_print_options_defs): New file scoped variable.
4049 (make_info_print_options_def_group): New static function.
4050 (info_print_command_completer): New static function.
4051 (info_locals_command): Update to use new local functions.
4052 (info_args_command): Likewise.
4053 (_initialize_stack): Add extra parameter to calls to
4054 info_print_args_help.
4055 * symtab.c (search_symbols): Add extra parameter, use this to
4056 possibly excluse non-debug symbols.
4057 (symtab_symbol_info): Add extra parameter, which is passed on to
4058 search_symbols.
4059 (struct info_print_options): New type.
4060 (info_print_options_defs): New file scoped variable.
4061 (make_info_print_options_def_group): New static function.
4062 (info_print_command_completer): New static function.
4063 (info_variables_command): Update to use local functions, and pass
4064 extra parameter through to symtab_symbol_info.
4065 (info_functions_command): Likewise.
4066 (info_types_command): Pass additional argument through to
4067 symtab_symbol_info.
4068 (rbreak_command): Pass extra argument to search_symbols.
4069 (_initialize_symtab): Add extra arguments for calls to
4070 info_print_args_help, and update help text for 'info variables',
4071 'whereis', and 'info functions' commands.
4072 * symtab.h (search_symbols): Add extra argument to declaration.
4073 * NEWS: Mention new flags.
4074
4075 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4076
4077 * symtab.c (lookup_static_symbol): Call the new function (and move
4078 it down to be next to lookup_global_symbol).
4079 (struct global_sym_lookup_data): Add block_enum member and rename to...
4080 (struct global_or_static_sym_lookup_data): ...this.
4081 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4082 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4083 (lookup_symbol_global_or_static_iterator_cb): ...this.
4084 (lookup_global_or_static_symbol): New function.
4085 (lookup_global_symbol): Call new function.
4086
4087 2019-08-26 Tom de Vries <tdevries@suse.de>
4088
4089 PR c++/24852
4090 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4091 when pc_probe.prob == NULL.
4092
4093 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4096 variable symbol_linkage to symbol_linkage_.
4097
4098 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4101 represent whether the symbol is static, dynamic, or we don't
4102 know.
4103
4104 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4105
4106 * gdb/rx-tdep.c (rx_register_names): New.
4107 (rx_register_name): Delete.
4108 (rx_psw_type): Delete.
4109 (rx_fpsw_type): Delete.
4110 (rx_register_type): Delete.
4111 (rx_gdbarch_init): Convert target-descriptions.
4112 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4113 * gdb/features/Makefile: Add rx.xml.
4114 * gdb/features/rx.xml: New.
4115 * gdb/features/rx.c: Generated.
4116 * gdb/NEWS: Mention target description support.
4117
4118 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4119
4120 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4121 *slot_ptr.
4122
4123 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4124
4125 * configure.ac: Don't check for 'dlfcn.h' (moved to
4126 gdbsupport/common.m4).
4127 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4128 'gdbsupport/'.
4129 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4130 * compile/compile-c-support.c: Include
4131 'gdbsupport/gdb-dlfcn.h'.
4132 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4133 * gdb-dlfcn.c: Move to...
4134 * gdbsupport/gdb-dlfcn.c: ... here.
4135 * gdb-dlfcn.h: Move to...
4136 * gdbsupport/gdb-dlfcn.h: ... here.
4137
4138 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4139
4140 * nios2-tdep.c (struct reg_value): Improve comments. Make
4141 the offset field signed.
4142
4143 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4144
4145 * python/lib/gdb/__init__.py (_execute_file): New function.
4146 * python/python.c (python_run_simple_file): Call gdb._execute_file
4147 on Windows.
4148
4149 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4152 all uses as this was never set to anything but a zero value.
4153
4154 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4155
4156 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4157
4158 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4159
4160 * tui/tui-data.h (tui_gen_win_info): Add an =default
4161 move constructor, required by some GCC versions.
4162
4163 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4164
4165 * go32-nat.c (go32_sysinfo): Add hygon_p.
4166
4167 2019-08-20 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4170 line_from_reg_element_no, first_reg_element_no_inline,
4171 display_all_data, delete_data_content_windows,
4172 erase_data_content>: Now private.
4173
4174 2019-08-20 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4177 (tui_unhighlight_win, tui_highlight_win)
4178 (tui_win_info::make_window): Update.
4179 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4180
4181 2019-08-20 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4184 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4185 (MAX_PID_WIDTH): Move to tui-stack.c.
4186 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4187 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4188 (MAX_PID_WIDTH): Move from tui-data.h.
4189
4190 2019-08-20 Tom Tromey <tom@tromey.com>
4191
4192 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4193 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4194 (box_win): Update.
4195 (tui_gen_win_info::make_window): Rename from tui_make_window.
4196 (tui_win_info::make_window): New method.
4197 (tui_gen_win_info::make_visible): Update.
4198 * tui/tui-source.c (tui_source_window::set_contents): Update.
4199 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4200 (tui_data_window::display_registers_from): Update.
4201 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4202 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4203 Declare.
4204 <can_box>: Remove.
4205 <title>: Remove.
4206 (struct tui_win_info) <make_window>: Declare.
4207 <can_box>: Now virtual.
4208 <title>: New member.
4209 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4210 * tui/tui-command.c (tui_cmd_window::resize): Update.
4211
4212 2019-08-20 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4215 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4216 (tui_data_window::check_register_values): Update.
4217
4218 2019-08-20 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-regs.h (struct tui_data_window): Use
4221 DISABLE_COPY_AND_ASSIGN.
4222 <regs_content>: Change type, removing unique_ptr.
4223 <tui_data_window>: Add move constructor.
4224 * tui/tui-regs.c (tui_data_window::show_registers)
4225 (tui_data_window::show_register_group)
4226 (tui_data_window::display_registers_from)
4227 (tui_data_window::display_registers_from)
4228 (tui_data_window::first_data_item_displayed)
4229 (tui_data_window::delete_data_content_windows)
4230 (tui_data_window::rerender, tui_data_window::refresh_window)
4231 (tui_data_window::check_register_values): Update.
4232
4233 2019-08-20 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4236 show_register_group>: Declare.
4237 (tui_show_register_group): Don't declare.
4238 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4239 tui_show_registers.
4240 (tui_data_window::show_register_group): Rename from
4241 tui_show_register_group.
4242 (tui_data_window::check_register_values, tui_reg_command):
4243 Update.
4244 * tui/tui-layout.c (tui_set_layout): Update.
4245
4246 2019-08-20 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4249 Declare.
4250 (tui_check_register_values): Don't declare.
4251 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4252 from tui_check_register_values.
4253 * tui/tui-hooks.c (tui_register_changed): Update.
4254
4255 2019-08-20 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-regs.c (tui_reg_layout): Move later.
4258 (tui_show_registers): Don't enable TUI mode or change layout.
4259
4260 2019-08-20 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-regs.h (struct tui_data_item_window)
4263 <~tui_data_item_window>: Remove.
4264 <content>: Now a unique_xmalloc_ptr.
4265 * tui/tui-regs.c (tui_register_format): Return a
4266 unique_xmalloc_ptr.
4267 (tui_get_register): Update.
4268 (~tui_data_item_window): Remove.
4269 (tui_data_window::display_registers_from, tui_display_register):
4270 Update.
4271 * tui/tui-io.h (tui_expand_tabs): Update.
4272 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4273 Remove "col" parameter.
4274
4275 2019-08-20 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4278 field.
4279 * tui/tui-regs.c (~tui_data_item_window): Update.
4280
4281 2019-08-20 Tom Tromey <tom@tromey.com>
4282
4283 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4284 earlier.
4285
4286 2019-08-20 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4289
4290 2019-08-20 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-source.h (struct tui_source_window): Update.
4293 * tui/tui-regs.c (tui_show_registers): Update.
4294 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4295 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4296 (NO_REGS_STRING): Remove defines.
4297
4298 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4299
4300 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4301 unnecessary thread walk if remote doesn't support the packet.
4302
4303 2019-08-19 Tom Tromey <tromey@adacore.com>
4304
4305 * python/py-value.c (value_has_field): Fix indentation.
4306
4307 2019-08-19 Tom Tromey <tromey@adacore.com>
4308
4309 * printcmd.c (do_one_display, info_display_command): Update.
4310 * block.h (contained_in): Return bool. Add allow_nested
4311 parameter.
4312 * block.c (contained_in): Return bool. Add allow_nested
4313 parameter.
4314
4315 2019-08-19 Tom Tromey <tom@tromey.com>
4316
4317 * configure: Rebuild.
4318 * configure.ac: Disallow the combination of -static-libstdc++ and
4319 source highlight.
4320 * source-cache.c (get_language_name): Handle rust.
4321 (source_cache::get_source_lines): Ignore highlighting exceptions.
4322
4323 2019-08-16 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4326 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4327 (struct tui_source_window_base) <make_visible, refresh_window,
4328 resize>: Remove methods.
4329 <execution_info>: Remove field.
4330 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4331 (tui_show_source_line, tui_source_window_base)
4332 (~tui_source_window_base): Update.
4333 (tui_source_window_base::resize)
4334 (tui_source_window_base::make_visible)
4335 (tui_source_window_base::refresh_window): Remove.
4336 (tui_source_window_base::update_exec_info): Update.
4337 * tui/tui-source.c (tui_source_window::set_contents): Update.
4338 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4339
4340 2019-08-16 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4343 deprecated_query_hook.
4344
4345 2019-08-16 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4348 (tui_update_source_windows_with_line): Update.
4349 * tui/tui-source.h (struct tui_source_window)
4350 <show_symtab_source>: Declare.
4351 (tui_show_symtab_source): Don't declare.
4352 * tui/tui-source.c (tui_show_symtab_source): Rename from
4353 tui_show_symtab_source.
4354
4355 2019-08-16 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-winsource.h (struct tui_source_window_base)
4358 <set_contents>: Declare.
4359 * tui/tui-winsource.c
4360 (tui_source_window_base::update_source_window_as_is): Update.
4361 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4362 Declare.
4363 (tui_set_source_content): Don't declare.
4364 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4365 tui_set_source_content.
4366 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4367 Declare.
4368 (tui_set_disassem_content): Don't declare.
4369 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4370 tui_set_disassem_content.
4371
4372 2019-08-16 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-winsource.h (struct tui_source_window_base)
4375 <update_breakpoint_info>: Declare.
4376 (tui_update_breakpoint_info): Don't declare.
4377 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4378 (tui_update_all_breakpoint_info): Update.
4379 (tui_source_window_base::update_breakpoint_info): Rename from
4380 tui_update_breakpoint_info.
4381 (tui_source_window_base::update_exec_info): Update.
4382
4383 2019-08-16 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-winsource.h (struct tui_source_window_base)
4386 <update_source_window>: Declare.
4387 (tui_update_source_window): Don't declare.
4388 * tui/tui-winsource.c
4389 (tui_source_window_base::update_source_window): Rename from
4390 tui_update_source_window.
4391 (tui_source_window_base::rerender): Update.
4392 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4393 * tui/tui-disasm.c (tui_show_disassem)
4394 (tui_show_disassem_and_update_source)
4395 (tui_disasm_window::maybe_update): Update.
4396
4397 2019-08-16 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-winsource.h (struct tui_source_window_base)
4400 <update_source_window_as_is>: Declare.
4401 (tui_update_source_window_as_is): Don't declare.
4402 * tui/tui-winsource.c (tui_update_source_window): Update
4403 (tui_source_window_base::update_source_window_as_is): Rename from
4404 tui_update_source_window_as_is.
4405 (tui_source_window_base::refill): Update.
4406 * tui/tui-source.c (tui_show_symtab_source): Update.
4407 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4408 Update.
4409
4410 2019-08-16 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-winsource.h (tui_update_source_window)
4413 (tui_update_source_window_as_is): Remove "noerror" parameter.
4414 * tui/tui-winsource.c (tui_update_source_window)
4415 (tui_update_source_window_as_is): Remove "noerror" parameter.
4416 (tui_update_source_windows_with_addr)
4417 (tui_update_source_windows_with_line)
4418 (tui_source_window_base::rerender)
4419 (tui_source_window_base::refill): Update.
4420 * tui/tui-source.h (tui_set_source_content)
4421 (tui_show_symtab_source): Remove "noerror" parameter.
4422 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4423 parameter.
4424 (tui_show_symtab_source): Likewise.
4425 (tui_source_window::maybe_update): Update.
4426 * tui/tui-disasm.c (tui_show_disassem)
4427 (tui_show_disassem_and_update_source)
4428 (tui_disasm_window::do_scroll_vertical)
4429 (tui_disasm_window::maybe_update): Update.
4430
4431 2019-08-16 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui.c (tui_is_window_visible): Update.
4434 * tui/tui-wingeneral.c (tui_make_window)
4435 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4436 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4437 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4438 (tui_set_win_height_command, parse_scrolling_args): Update.
4439 * tui/tui-source.c (tui_source_window::style_changed): Update.
4440 * tui/tui-regs.c (tui_show_registers)
4441 (tui_data_window::first_data_item_displayed)
4442 (tui_data_window::delete_data_content_windows)
4443 (tui_check_register_values, tui_reg_command): Update.
4444 * tui/tui-disasm.c (tui_show_disassem): Update.
4445 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4446 method.
4447 <is_visible>: Remove field.
4448 * tui/tui-data.c (tui_next_win, tui_prev_win)
4449 (tui_delete_invisible_windows): Update.
4450
4451 2019-08-16 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-winsource.h (struct tui_source_window_base)
4454 <m_has_locator>: Remove.
4455 * tui/tui-layout.c (show_source_disasm_command, show_data)
4456 (show_source_or_disasm_and_command): Update.
4457
4458 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4459
4460 * NEWS (Other MI changes): New subsection.
4461 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4462 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4463 * arch-utils.c (default_get_pc_address_flags): New function.
4464 * arch-utils.h (default_get_pc_address_flags): New declaration.
4465 * gdbarch.sh: Add get_pc_address_flags.
4466 * gdbarch.c: Regenerate.
4467 * gdbarch.h: Likewise.
4468 * stack.c (print_pc): New function.
4469 (print_frame_info) (print_frame): Call print_pc.
4470
4471 2019-08-16 Tom de Vries <tdevries@suse.de>
4472
4473 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4474 print_objfile_section_info.
4475
4476 2019-08-15 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4479 calling update_cmdwin_start_line.
4480 * tui/tui-winsource.h (struct tui_source_window_base)
4481 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4482 <rerender>: Declare.
4483 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4484 Call rerender.
4485 (tui_source_window_base::set_new_height): Remove.
4486 (tui_source_window_base::rerender): Rename from
4487 do_make_visible_with_new_height.
4488 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4489 resize method.
4490 (tui_win_info::make_invisible_and_set_new_height)
4491 (tui_win_info::make_visible_with_new_height): Remove.
4492 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4493 Declare.
4494 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4495 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4496 do_make_visible_with_new_height>: Don't declare.
4497 <rerender>: Declare.
4498 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4499 set_new_height.
4500 (tui_data_window::do_make_visible_with_new_height): Remove.
4501 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4502 call tui_show_locator_content.
4503 (tui_gen_win_info::resize): Call rerender.
4504 (show_source_or_disasm_and_command): Don't call
4505 tui_show_locator_content.
4506 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4507 method.
4508 (struct tui_win_info) <rerender>: Declare.
4509 <set_new_height, make_invisible_and_set_new_height,
4510 make_visible_with_new_height>: Don't declare.
4511 * tui/tui-data.c (tui_win_list::rerender): New method.
4512 * tui/tui-command.h (struct tui_cmd_window)
4513 <do_make_visible_with_new_height>: Don't declare.
4514 * tui/tui-command.c
4515 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4516
4517 2019-08-15 Tom Tromey <tromey@adacore.com>
4518
4519 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4520 * ada-lang.c (ada_enum_name): Likewise.
4521
4522 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4523
4524 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4525 leading underscore.
4526 (GdbOutputErrorFile): Likewise.
4527 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4528 accordingly.
4529 (execute_unwinders): Rename to have a leading underscore.
4530 (auto_load_packages): Likewise.
4531 (global scope): Adjust call to auto_load_packages accordingly.
4532 (GdbSetPythonDirectory): Likewise.
4533 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4534 instead of execute_unwinders.
4535
4536 2019-08-15 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4539 (show_data): Don't change window visibility.
4540 (tui_gen_win_info::resize): Remove special case for command
4541 window. Use wresize, when available.
4542 (show_source_or_disasm_and_command): Don't change window
4543 visibility.
4544 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4545 <make_visible>: New method.
4546 * tui/tui-command.c (tui_cmd_window::resize): New method.
4547
4548 2019-08-15 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4551 (struct tui_source_windows): New.
4552 * tui/tui-winsource.c (tui_display_main): Update.
4553 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4554 (new_height_ok, parse_scrolling_args): Update.
4555 * tui/tui-layout.c (show_layout, show_data): Update.
4556 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4557 (tui_add_to_source_windows): Don't declare.
4558 * tui/tui-data.c (source_windows, tui_source_windows)
4559 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4560
4561 2019-08-15 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4564 Rename from reset.
4565 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4566 * tui/tui-layout.c (show_source_disasm_command, show_data):
4567 Update.
4568 (tui_gen_win_info::resize): Rename.
4569 (show_source_or_disasm_and_command): Update.
4570 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4571 reset.
4572
4573 2019-08-15 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4576 * tui/tui-interp.c (tui_interp::init): Don't call
4577 tui_initialize_static_data.
4578 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4579
4580 2019-08-15 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4583 examine tui_win_list.
4584
4585 2019-08-15 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4588 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4589 tui_clear_source_content.
4590 (tui_clear_source_content): Remove.
4591 (tui_source_window_base::do_erase_source_content): Hoist call to
4592 content.clear().
4593 * tui/tui-stack.c (tui_show_frame_info): Don't call
4594 tui_clear_source_content.
4595
4596 2019-08-15 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-winsource.h (struct tui_source_window_base)
4599 <do_erase_source_content>: New method.
4600 <erase_source_content>: New method.
4601 (tui_erase_source_content): Don't declare.
4602 * tui/tui-winsource.c (tui_clear_source_content): Update.
4603 (tui_source_window_base::do_erase_source_content): Rename from
4604 tui_erase_source_content.
4605 (tui_source_window_base::show_source_content): Update.
4606 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4607 * tui/tui-source.h (struct tui_source_window)
4608 <erase_source_content>: New method.
4609 * tui/tui-disasm.h (struct tui_disasm_window)
4610 <erase_source_content>: New method.
4611
4612 2019-08-15 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4615 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4616 constructor.
4617 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4618 * tui/tui-source.c (tui_set_source_content): Update.
4619 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4620
4621 2019-08-15 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4624 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4625 tui-source.c.
4626 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4627 Declare.
4628 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4629 method.
4630 (tui_source_window::maybe_update): Update.
4631
4632 2019-08-15 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4635 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4636 tui-disasm.c.
4637 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4638 Declare.
4639 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4640 method.
4641 (tui_disasm_window::maybe_update): Update.
4642
4643 2019-08-15 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-winsource.h (struct tui_source_window_base)
4646 <maybe_update>: Declare.
4647 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4648 method.
4649 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4650 Declare.
4651 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4652 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4653 Declare.
4654 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4655
4656 2019-08-15 Tom Tromey <tom@tromey.com>
4657
4658 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4659
4660 2019-08-15 Tom Tromey <tom@tromey.com>
4661
4662 * tui/tui-wingeneral.c: Include tui-stack.h.
4663 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4664 (struct tui_locator_window): Move from tui-data.h.
4665 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4666 (tui_initialize_static_data): Move from tui-data.c.
4667 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4668 (struct tui_locator_window): Move to tui-stack.c.
4669 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4670 (tui_initialize_static_data): Move to tui-stack.c.
4671
4672 2019-08-15 Tom Tromey <tom@tromey.com>
4673
4674 * tui/tui-layout.c (show_source_disasm_command)
4675 (show_source_or_disasm_and_command): Use make_visible method, not
4676 tui_make_window.
4677 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4678 Remove.
4679
4680 2019-08-15 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-wingeneral.h (tui_make_window): Update.
4683 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4684 parameter.
4685 (tui_gen_win_info::make_visible): Update.
4686 * tui/tui-regs.c (tui_data_window::display_registers_from):
4687 Update.
4688 * tui/tui-layout.c (show_source_disasm_command)
4689 (show_source_or_disasm_and_command): Update.
4690 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4691 (enum tui_box): Remove.
4692 (struct tui_win_info) <can_box>: New method.
4693 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4694 method.
4695
4696 2019-08-15 Tom de Vries <tdevries@suse.de>
4697
4698 * linux-nat-trad.c: Include gdbarch.h.
4699
4700 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4701
4702 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4703 register sizes.
4704
4705 2019-08-14 Tom Tromey <tromey@adacore.com>
4706
4707 * darwin-nat.c: Include gdbarch.h.
4708 * darwin-nat-info.c: Include gdbarch.h.
4709
4710 2019-08-13 Tom Tromey <tom@tromey.com>
4711
4712 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4713 Remove.
4714 * tui/tui-data.c (tui_initialize_static_data): Update.
4715
4716 2019-08-13 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-winsource.h (struct tui_exec_info_window)
4719 <~tui_exec_info_window, maybe_allocate_content, get_content,
4720 m_content>: Remove.
4721 (struct tui_source_window_base) <set_exec_info_content,
4722 show_exec_info_content>: Don't declare.
4723 * tui/tui-winsource.c
4724 (tui_exec_info_window::maybe_allocate_content): Remove.
4725 (tui_source_window_base::update_exec_info): Rename from
4726 set_exec_info_content.
4727 (tui_source_window_base::show_exec_info_content)
4728 (tui_source_window_base::update_exec_info): Remove.
4729
4730 2019-08-13 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4733 declare.
4734 * tui/tui-winsource.c (tui_update_source_window_as_is)
4735 (tui_update_source_windows_with_addr, tui_erase_source_content):
4736 Update.
4737 (tui_clear_exec_info_content): Remove.
4738
4739 2019-08-13 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4742 declare.
4743 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4744 call tui_erase_exec_info_content.
4745 (tui_clear_exec_info_content): Rename from
4746 tui_erase_exec_info_content.
4747 (tui_clear_exec_info_content): Delete.
4748
4749 2019-08-13 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-winsource.h (struct tui_source_window_base)
4752 <show_exec_info_content>: Declare.
4753 (tui_show_exec_info_content): Don't declare.
4754 * tui/tui-winsource.c
4755 (tui_source_window_base::show_exec_info_content): Rename from
4756 tui_show_exec_info_content.
4757 (tui_source_window_base::update_exec_info): Update.
4758
4759 2019-08-13 Tom Tromey <tom@tromey.com>
4760
4761 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4762 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4763 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4764 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4765 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4766 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4767 ... here.
4768
4769 2019-08-13 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-winsource.h (struct tui_source_window_base)
4772 <update_exec_info>: Declare.
4773 (tui_update_exec_info): Don't declare.
4774 * tui/tui-winsource.c (tui_update_source_window_as_is)
4775 (tui_source_window_base::refresh_all)
4776 (tui_update_all_breakpoint_info): Update.
4777 (tui_source_window_base::update_exec_info): Rename from
4778 tui_update_exec_info.
4779 * tui/tui-stack.c (tui_show_frame_info): Update.
4780
4781 2019-08-13 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-winsource.h (struct tui_source_window_base)
4784 <set_exec_info_content>: Declare.
4785 (tui_set_exec_info_content): Don't declare.
4786 * tui/tui-winsource.c
4787 (tui_source_window_base::set_exec_info_content): Rename from
4788 tui_set_exec_info_content.
4789 (tui_update_exec_info): Update.
4790
4791 2019-08-13 Tom Tromey <tom@tromey.com>
4792
4793 * tui/tui-winsource.h (struct tui_source_window_base)
4794 <show_source_content>: Declare.
4795 (tui_show_source_content): Don't declare.
4796 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4797 (tui_source_window_base::show_source_content): Rename from
4798 tui_show_source_content.
4799 (tui_source_window_base::refresh_all): Update.
4800 * tui/tui-layout.c (show_source_disasm_command)
4801 (show_source_or_disasm_and_command): Update.
4802
4803 2019-08-13 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-winsource.c (tui_erase_source_content)
4806 (tui_show_source_content, tui_source_window_base::refresh_all):
4807 Update.
4808 * tui/tui-wingeneral.h
4809 (tui_check_and_display_highlight_if_needed): Don't declare.
4810 * tui/tui-wingeneral.c
4811 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4812 check_and_display_highlight_if_needed.
4813 * tui/tui-win.c (tui_rehighlight_all)
4814 (tui_win_info::make_visible_with_new_height): Update.
4815 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4816 (tui_data_window::erase_data_content)
4817 (tui_data_window::display_all_data): Update.
4818 * tui/tui-data.h (struct tui_win_info)
4819 <check_and_display_highlight_if_needed>: Declare.
4820
4821 2019-08-13 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-win.c (tui_resize_all): Call
4824 tui_delete_invisible_windows.
4825 * tui/tui-layout.c (show_layout): Call
4826 tui_delete_invisible_windows.
4827 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4828 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4829
4830 2019-08-13 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4833 tui_add_win_to_layout.
4834
4835 2019-08-13 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4838 * tui/tui-layout.c (tui_default_win_height): Now static.
4839
4840 2019-08-13 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4843 single switch.
4844 (show_source_disasm_command, show_source_or_disasm_and_command):
4845 Don't check current layout.
4846
4847 2019-08-13 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-wingeneral.c (make_all_visible): Remove.
4850 (tui_make_all_invisible): Simplify.
4851 * tui/tui-layout.c (tui_make_all_invisible): Move from
4852 tui-wingeneral.c; simplify.
4853 (show_layout): Hoist call to tui_make_all_invisible.
4854 (show_data): Don't call tui_make_all_invisible.
4855
4856 2019-08-13 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4859 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4860
4861 2019-08-13 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4864 tui-data.c.
4865 (show_source_disasm_command, show_data)
4866 (show_source_or_disasm_and_command): Don't use
4867 tui_set_current_layout_to.
4868 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4869 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4870 tui-layout.c.
4871 (tui_set_current_layout_to): Remove.
4872
4873 2019-08-13 Tom Tromey <tom@tromey.com>
4874
4875 * tui/tui-layout.c (tui_set_layout): Update.
4876 * tui/tui-data.h (struct tui_layout_def): Remove.
4877 (tui_layout_def): Don't declare.
4878 * tui/tui-data.c (layout_def): Remove.
4879 (tui_layout_def): Remove.
4880
4881 2019-08-13 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-winsource.h (struct tui_source_window_base)
4884 <clear_detail>: No longer "override".
4885 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4886 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4887 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4888 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4889 Remove.
4890 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4891
4892 2019-08-13 Tom Tromey <tromey@adacore.com>
4893
4894 * tracepoint.c: Don't include readline.h or history.h.
4895
4896 2019-08-12 Tom Tromey <tom@tromey.com>
4897
4898 * configure: Rebuild.
4899 * configure.ac: Check for readline 7.
4900 * NEWS: Mention readline 7 requirement.
4901 * README: Update.
4902
4903 2019-08-12 Tom Tromey <tom@tromey.com>
4904
4905 * mingw-hdep.c (gdb_select): Remove readline hack.
4906
4907 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4908
4909 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4910 when the function fails.
4911
4912 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4913
4914 * s390-tdep.c (s390_type_align): New function.
4915 (s390_gdbarch_init): Set it as type_align gdbarch method.
4916
4917 2019-08-09 Tom de Vries <tdevries@suse.de>
4918
4919 PR gdb/24591
4920 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4921 pc_low with relocation offset.
4922
4923 2019-08-07 Tom Tromey <tromey@adacore.com>
4924
4925 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4926 (print_frame_args): Update.
4927 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4928 Update.
4929 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4930 * frame.h (struct frame_arg): Add initializers.
4931 <error>: Now a unique_xmalloc_ptr.
4932
4933 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4934
4935 * NEWS: Expand the Pointer Authentication entry.
4936 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4937 (aarch64_frame_unmask_lr): ... to this.
4938 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4939 Call aarch64_frame_unmask_lr.
4940 * frame.c (struct frame_info): Add "masked" variable.
4941 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4942 (fprint_frame): Check for masked pc.
4943 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4944 declarations.
4945 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4946 * stack.c (print_frame): Check for masked pc.
4947
4948 2019-08-06 Tom Tromey <tom@tromey.com>
4949
4950 * stabsread.c (patch_block_stabs, read_one_struct_field)
4951 (read_enum_type): Use obstack_strndup.
4952 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4953 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4954 * dwarf2read.c (guess_full_die_structure_name)
4955 (anonymous_struct_prefix): Use obstack_strndup.
4956 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4957 * c-exp.y (yylex): Use obstack_strndup.
4958 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4959 (write_var_or_type): Use obstack_strndup.
4960
4961 2019-08-06 Tom Tromey <tom@tromey.com>
4962
4963 * symfile.c (reread_symbols): Use obstack_strdup.
4964 * stabsread.c (read_type): Use obstack_strdup.
4965 * gdb_obstack.h (obstack_strdup): New overload.
4966 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4967 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4968 (dwarf2_canonicalize_name): Use obstack_strdup.
4969 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4970 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4971 Use obstack_strdup.
4972
4973 2019-08-06 Tom Tromey <tom@tromey.com>
4974
4975 * gdb_obstack.h (obstack_strdup): Define.
4976 * gdb_obstack.c (obstack_strdup): Don't define.
4977
4978 2019-08-06 Tom Tromey <tom@tromey.com>
4979
4980 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4981 obstack_strdup.
4982 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4983 obstack_strdup.
4984 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4985 * stabsread.c (common_block_start): Use obstack_strdup.
4986 * objfiles.c (set_objfile_main_name, objfile): Use
4987 obstack_strdup.
4988 * namespace.c (add_using_directive): Use obstack_strdup.
4989 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4990 * jit.c (finalize_symtab): Use obstack_strdup.
4991 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4992 (guess_partial_die_structure_name, partial_die_info::fixup)
4993 (dwarf2_name): Use obstack_strdup.
4994 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4995 obstack_strdup.
4996 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4997 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4998 obstack_strdup.
4999 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5000
5001 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5002
5003 * unittests/help-doc-selftests.c: New file.
5004 * Makefile.in: Add the new file.
5005
5006 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5007
5008 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5009 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5010 the full first line, except when FOR_VALUE_PREFIX. In this case,
5011 the trailing '.' is not output, and the first character is uppercased.
5012 (print_help_for_command): Update call to print_doc_line.
5013 (print_doc_of_command): Likewise.
5014 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5015 * cli/cli-option.c (append_indented_doc): Do not append newline.
5016 (build_help_option): Append newline after first appended_indented_doc
5017 only if a second call is done.
5018 (build_help): Append 2 new lines before each option, except the first
5019 one.
5020 * compile/compile.c (_initialize_compile): Add new lines after
5021 %OPTIONS%, when not at the end of the help.
5022 Change help doc or code
5023 producing the help doc to respect the invariants.
5024 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5025 Also removed the new line after 'Options:', as all other commands
5026 do not put an empty line between 'Options:' and the first option.
5027 * printcmd.c (_initialize_printcmd): Likewise.
5028 * stack.c (_initialize_stack): Likewise.
5029 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5030 incorrectly telling COMMAND is optional.
5031 * ada-lang.c (_initialize_ada_language): Change help doc or code
5032 producing the help doc to respect the invariants.
5033 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5034 * breakpoint.c (_initialize_breakpoint): Likewise.
5035 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5036 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5037 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5038 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5039 _initialize_cli_style): Likewise.
5040 * corelow.c (core_target_info): Likewise.
5041 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5042 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5043 * filesystem.c (_initialize_filesystem): Likewise.
5044 * frame.c (_initialize_frame): Likewise.
5045 * gnu-nat.c (add_task_commands): Likewise.
5046 * infcall.c (_initialize_infcall): Likewise.
5047 * infcmd.c (_initialize_infcmd): Likewise.
5048 * interps.c (_initialize_interpreter): Likewise.
5049 * language.c (_initialize_language): Likewise.
5050 * linux-fork.c (_initialize_linux_fork): Likewise.
5051 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5052 * maint.c (_initialize_maint_cmds): Likewise.
5053 * memattr.c (_initialize_mem): Likewise.
5054 * printcmd.c (_initialize_printcmd): Likewise.
5055 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5056 _RegEx): Likewise.
5057 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5058 * record-btrace.c (_initialize_record_btrace): Likewise.
5059 * record-full.c (_initialize_record_full): Likewise.
5060 * record.c (_initialize_record): Likewise.
5061 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5062 * regcache.c (_initialize_regcache): Likewise.
5063 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5064 _initialize_remote): Likewise.
5065 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5066 * serial.c (_initialize_serial): Likewise.
5067 * skip.c (_initialize_step_skip): Likewise.
5068 * source.c (_initialize_source): Likewise.
5069 * stack.c (_initialize_stack): Likewise.
5070 * symfile.c (_initialize_symfile): Likewise.
5071 * symtab.c (_initialize_symtab): Likewise.
5072 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5073 * top.c (init_main): Likewise.
5074 * tracefile-tfile.c (tfile_target_info): Likewise.
5075 * tracepoint.c (_initialize_tracepoint): Likewise.
5076 * tui/tui-win.c (_initialize_tui_win): Likewise.
5077 * utils.c (add_internal_problem_command): Likewise.
5078 * valprint.c (value_print_option_defs): Likewise.
5079
5080 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5081
5082 PR build/24886
5083 * configure.ac: Drop enable-libmcheck support.
5084 * configure, config.in: Rebuild.
5085 * libmcheck.m4: Remove.
5086 * acinclude.m4: Don't include it.
5087 * Makefile.in: Don't distribute it.
5088 * top.c (print_gdb_configuration): Don't mention it.
5089
5090 2019-08-06 Tom Tromey <tom@tromey.com>
5091
5092 * utils.c (set_output_style): Sometimes pass stream to
5093 emit_style_escape.
5094 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5095 * record-btrace.c (btrace_insn_history): Update.
5096 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5097 method.
5098 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5099 Update initializers.
5100 <m_uiout>: New field.
5101 <m_di>: Move lower.
5102 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5103 Remove "uiout" parameter.
5104 (dump_insns): Update.
5105 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5106 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5107
5108 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5109
5110 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5111 (error_in_psymtab_expansion): Likewise.
5112 (lookup_symbol_via_quick_fns): Likewise.
5113 (basic_lookup_transparent_type_quick): Likewise.
5114 (basic_lookup_transparent_type_1): Likewise.
5115
5116 2019-08-06 Tom Tromey <tromey@adacore.com>
5117
5118 * source.c (last_source_error): Now bool.
5119 (print_source_lines_base): Make "noprint" bool. Only open
5120 source file when last_source_visited changes.
5121
5122 2019-08-06 Tom Tromey <tromey@adacore.com>
5123
5124 * annotate.c (annotate_source_line): Use g_source_cache.
5125 * source-cache.c (source_cache::get_plain_source_lines): Change
5126 parameters. Populate m_offset_cache.
5127 (source_cache::ensure): New method.
5128 (source_cache::get_line_charpos): New method.
5129 (extract_lines): Move lower. Change parameters.
5130 (source_cache::get_source_lines): Move lower.
5131 * source-cache.h (class source_cache): Update comment.
5132 <get_line_charpos>: New method.
5133 <get_source_lines>: Update comment.
5134 <clear>: Clear m_offset_cache.
5135 <get_plain_source_lines>: Change parameters.
5136 <ensure>: New method
5137 <m_offset_cache>: New member.
5138 * source.c (forget_cached_source_info_for_objfile): Update.
5139 (info_source_command): Use g_source_cache.
5140 (find_source_lines, open_source_file_with_line_charpos): Remove.
5141 (print_source_lines_base, search_command_helper): Use g_source_cache.
5142 * source.h (open_source_file_with_line_charpos): Don't declare.
5143 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5144 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5145 Use g_source_cache.
5146
5147 2019-08-06 Tom Tromey <tromey@adacore.com>
5148
5149 * source-cache.c (source_cache::get_plain_source_lines):
5150 Remove "first_line" and "last_line" parameters.
5151 (source_cache::get_source_lines): Cache plain text.
5152 * source-cache.h (class source_cache)
5153 <get_plain_source_lines>: Update.
5154
5155 2019-08-06 Tom Tromey <tromey@adacore.com>
5156
5157 * source-cache.c (extract_lines): No longer a method.
5158 Changed type of parameter. Include final newline.
5159 (selftests::extract_lines_test): New function.
5160 (_initialize_source_cache): Likewise.
5161 * source-cache.h (class source_cache)
5162 <extract_lines>: Don't declare.
5163
5164 2019-08-06 Tom Tromey <tromey@adacore.com>
5165
5166 * breakpoint.c (init_breakpoint_sal): Update.
5167 (breakpoint): Update.
5168 * breakpoint.h (struct breakpoint) <filter>: Now a
5169 unique_xmalloc_ptr.
5170
5171 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5172
5173 * NEWS: Mention dictionary access on blocks.
5174 * python/py-block.c (blpy_getitem): New function.
5175 (block_object_as_mapping): New struct.
5176 (block_object_type): Use new struct for tp_as_mapping field.
5177
5178 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5179
5180 * objfiles.h (objfile): Add a comment describing partial symbols.
5181
5182 2019-08-05 Tom Tromey <tromey@adacore.com>
5183
5184 * compile/compile.c (_initialize_compile): Use _(), not N_().
5185 * thread.c (_initialize_thread): Use _(), not N_().
5186 * stack.c (_initialize_stack): Use _(), not N_().
5187 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5188
5189 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * dwarf2read.c (struct dw2_symtab_iterator):
5192 <want_specific_block>: Remove.
5193 <block_index>: Change type to gdb::optional.
5194 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5195 change type of BLOCK_INDEX parameter to gdb::optional.
5196 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5197 (dw2_lookup_symbol): Don't pass argument for
5198 WANT_SPECIFIC_BLOCK.
5199 (dw2_expand_symtabs_for_function): Don't pass argument for
5200 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5201 (class dw2_debug_names_iterator)
5202 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5203 parameter, change BLOCK_INDEX type to gdb::optional.
5204 <m_want_specific_block>: Remove.
5205 <m_block_index>: Change type to gdb::optional.
5206 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5207 gdb::optional. Re-write in function of gdb::optional.
5208 (dw2_debug_names_lookup_symbol): Don't pass argument for
5209 WANT_SPECIFIC_BLOCK.
5210 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5211 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5212 BLOCK_INDEX.
5213
5214 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5215
5216 * NEWS: Mention changes to "info sources" command.
5217
5218 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5219
5220 * symtab.c (filename_partial_match_opts): New struct type.
5221 (struct output_source_filename_data): New members
5222 regexp, c_regexp, partial_match.
5223 (output_source_filename): Use new members to decide to print file.
5224 (info_sources_option_defs): New variable.
5225 (make_info_sources_options_def_group, print_info_sources_header,
5226 info_sources_command_completer):
5227 New functions.
5228 (info_sources_command): Read new optional arguments.
5229 (_initialize_symtab): Update info sources help.
5230
5231 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5232
5233 * ada-lang.c (exception_support_info_v0): Renamed from...
5234 (default_exception_support_info): ... this. Create new
5235 definition for v1.
5236 (ada_has_this_exception_support): Look up catch_handlers_sym.
5237 (ada_exception_support_info_sniffer): Try v0 after default.
5238
5239 2019-08-01 Tom Tromey <tromey@adacore.com>
5240
5241 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5242 gdbarch.h.
5243
5244 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5245
5246 * s12z-tdep.c: Fix include path for s12z-opc.h.
5247
5248 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5249
5250 * NEWS: Require GNU make 3.82.
5251
5252 2019-07-16 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5255 declare.
5256
5257 2019-07-30 Tom Tromey <tromey@adacore.com>
5258
5259 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5260
5261 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5262
5263 * printcmd.c (print_address_symbolic): Print negative offsets.
5264 (build_address_symbolic): Force signed arithmetic when computing
5265 offset.
5266
5267 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5268
5269 PR/24474: Add a function to lookup static variables.
5270 * NEWS: Mention this new function.
5271 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5272 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5273 * python/python.c (python_GdbMethods): Add new function.
5274
5275 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5276
5277 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5278 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5279 (objfpy_lookup_static_symbol): New function.
5280 (objfile_object_methods): Add new functions.
5281
5282 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5283
5284 * NEWS: Mention 'set|show print frame-info'. Mention new
5285 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5286 backtrace argument. Mention that python frame filtering code
5287 is now consistent with what 'backtrace' command prints.
5288
5289 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5290
5291 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5292 comments.
5293 (print_frame_info_auto, print_frame_info_source_line,
5294 print_frame_info_location, print_frame_info_source_and_location,
5295 print_frame_info_location_and_address, print_frame_info_short_location):
5296 New declarations.
5297 (struct frame_print_options): New member print_frame_info.
5298 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5299 * stack.h (get_user_print_what_frame_info): New declaration.
5300 (frame_show_address): New declaration.
5301 * stack.c (print_frame_arguments_choices): New value 'presence'.
5302 (print_frame_info_auto, print_frame_info_source_line,
5303 print_frame_info_location, print_frame_info_source_and_location,
5304 print_frame_info_location_and_address, print_frame_info_short_location,
5305 print_frame_info_choices, print_frame_info_print_what): New definitions.
5306 (print_frame_args): Only print dots for args if print frame-arguments
5307 is 'presence'.
5308 (frame_print_option_defs): New element for "frame-info".
5309 (get_user_print_what_frame_info): New function.
5310 (frame_show_address): Make non static. Move comment to stack.h.
5311 (print_frame_info_to_print_what): New function.
5312 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5313 to decide what to print.
5314 (backtrace_command_1): Handle the new print_frame_arguments_presence
5315 value.
5316 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5317 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5318 (py_print_frame): In non-mi mode, use LOCATION as default for
5319 print_what, similarly to frame information printed directly by
5320 backtrace command. Handle frame-info user option in non MI mode.
5321
5322 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5323
5324 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5325 Add case for debugging 32-bit target on 64-bit host. Revise
5326 comment.
5327
5328 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5329
5330 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5331 instead of find_function_entry_range_from_pc.
5332
5333 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5334
5335 * stack.c (find_frame_funname): Remove code which preferred
5336 minsym over symtab sym in "certain pathological cases".
5337
5338 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5339 parameter. Change type of "do_demangle" to bool.
5340 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5341 Pass suitable "prefer_sym_over_minsym" flag to
5342 build_address_symbolic(). Don't output "+" for negative offsets.
5343 * printcmd.c (print_address_symbolic): Update invocation of
5344 build_address_symbolic to include a "prefer_sym_over_minsym"
5345 flag.
5346 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5347 Restrict cases in which use of minimal symbol is preferred to that
5348 of a found symbol. Update comments.
5349
5350 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5351 for entry pc when entry pc is out of range for that FDE.
5352
5353 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5354
5355 PR gdb/24839:
5356 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5357 type.
5358
5359 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5360
5361 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5362 this function's Python signature.
5363
5364
5365 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5366
5367 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5368 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5369 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5370 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5371 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5372
5373
5374 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5375
5376 * h8300-tdep.c (h8300_register_name_common): New.
5377 h8300_register_name): Use h8300_register_name_common.
5378 (h8300s_register_name): Likewise.
5379 (h8300sx_register_name): Likewise.
5380 (h8300h_register_nam): New.
5381 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5382
5383
5384 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5385
5386 * arm-tdep.c (arm_skip_cmse_entry): New function.
5387 (arm_is_sgstubs_section): New function.
5388 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5389
5390 2019-07-22 Tom Tromey <tom@tromey.com>
5391
5392 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5393 Don't self-assign.
5394
5395 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5398 type_print.
5399
5400 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5403 so that GDB doesn't match any msymbols when searching in the
5404 TYPES_DOMAIN.
5405 (print_symbol_info): Print using typedef_print or type_print based
5406 on the type of the symbol. Add updated FIXME comment moved from...
5407 (_initialize_symtab): ... move and update FIXME comment to above.
5408
5409 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * NEWS: Mention adding -q option to "info types".
5412 * symtab.c (struct info_types_options): New struct.
5413 (info_types_options_defs): New variable.
5414 (make_info_types_options_def_group): New function.
5415 (info_types_command): Use gdb::option framework to parse options.
5416 (info_types_command_completer): New function.
5417 (_initialize_symtab): Extend the help text on "info types" and
5418 register command completer.
5419
5420 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5421
5422 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5423 (lookup_symbol_in_objfile): Change int to block_enum and add a
5424 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5425
5426 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5427
5428 * MAINTAINERS (Write After Approval): Add self.
5429
5430 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5433 instruction to the dummy code region.
5434
5435 2019-07-19 Tom Tromey <tromey@adacore.com>
5436
5437 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5438 (ARGSUSED, PARAMS, __func__): Remove rules.
5439
5440 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5441
5442 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5443 * features/arm/arm-with-iwmmxt.c: Remove.
5444 * features/arm/arm-with-iwmmxt.xml: Remove.
5445 * features/arm/arm-with-m-fpa-layout.c: Remove.
5446 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5447 * features/arm/arm-with-m-vfp-d16.c: Remove.
5448 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5449 * features/arm/arm-with-m.c: Remove.
5450 * features/arm/arm-with-m.xml: Remove.
5451 * features/arm/arm-with-neon.c: Remove.
5452 * features/arm/arm-with-neon.xml: Remove.
5453 * features/arm/arm-with-vfpv2.c: Remove.
5454 * features/arm/arm-with-vfpv2.xml: Remove.
5455 * features/arm/arm-with-vfpv3.c: Remove.
5456 * features/arm/arm-with-vfpv3.xml: Remove.
5457
5458 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5459
5460 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5461
5462 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5463
5464 * arch/aarch32.c (aarch32_create_target_description): Create
5465 target descriptions using features.
5466 * arch/arm.c (arm_create_target_description)
5467 (arm_create_mprofile_target_description): Likewise.
5468 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5469
5470 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5471
5472 * Makefile.in: Add new files.
5473 * aarch32-tdep.c: New file.
5474 * aarch32-tdep.h: New file.
5475 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5476 Call aarch32_read_description.
5477 * arch/aarch32.c: New file.
5478 * arch/aarch32.h: New file.
5479 * arch/arm.c (arm_create_target_description)
5480 (arm_create_mprofile_target_description): New function.
5481 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5482 (arm_create_target_description)
5483 (arm_create_mprofile_target_description): New declaration.
5484 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5485 read_description functions.
5486 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5487 Likewise.
5488 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5489 * arm-tdep.c (tdesc_arm_list): New variable.
5490 (arm_register_g_packet_guesses): Call create description functions.
5491 (arm_read_description) (arm_read_mprofile_description): New
5492 function.
5493 * arm-tdep.h (arm_read_description)
5494 (arm_read_mprofile_description): Add declaration.
5495 * configure.tgt: Add new files.
5496
5497 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5498
5499 * top.c (new_ui_command): Open specified terminal just once.
5500
5501 2019-07-18 Tom Tromey <tromey@adacore.com>
5502
5503 * symtab.c (main_name): Constify return type.
5504 * symfile.c (set_initial_language): Update.
5505 * symtab.h (main_name): Constify return type.
5506
5507 2019-07-17 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-winsource.c (tui_update_source_window)
5510 (tui_update_source_window_as_is)
5511 (tui_update_source_windows_with_line): Remove return.
5512 * tui/tui-disasm.c (tui_show_disassem)
5513 (tui_show_disassem_and_update_source): Remove return.
5514 * tui/tui.c (tui_reset): Remove return.
5515 * tui/tui-wingeneral.c
5516 (tui_check_and_display_highlight_if_needed): Remove return.
5517
5518 2019-07-17 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5521
5522 2019-07-17 Tom Tromey <tom@tromey.com>
5523
5524 * tui/tui-winsource.h (struct tui_exec_info_window)
5525 (struct tui_source_window_base): Move from tui-data.h.
5526 * tui/tui-winsource.c: Move many method definitions from
5527 elsewhere. Remove "structuring" comments.
5528 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5529 (tui_source_window_base::refresh_window): Move to
5530 tui-winsource.c.
5531 * tui/tui-win.c (tui_source_window_base::refresh_all)
5532 (tui_source_window_base::update_tab_width)
5533 (tui_source_window_base::set_new_height)
5534 (tui_source_window_base::do_make_visible_with_new_height): Move to
5535 tui-winsource.c.
5536 * tui/tui-source.h: Update.
5537 * tui/tui-source.c (tui_source_window_base::reset): Move to
5538 tui-winsource.c.
5539 * tui/tui-disasm.h: Update.
5540 * tui/tui-data.h (struct tui_exec_info_window): Move to
5541 tui-winsource.h.
5542 (struct tui_source_window_base): Likewise.
5543 * tui/tui-data.c (tui_source_window_base::clear_detail)
5544 (tui_source_window_base, ~tui_source_window_base): Move to
5545 tui-winsource.c.
5546
5547 2019-07-17 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-win.c (tui_resize_all)
5550 (tui_source_window_base::update_tab_width)
5551 (tui_adjust_win_heights): Update.
5552 (tui_win_info::make_invisible_and_set_new_height): Rename from
5553 make_invisible_and_set_new_height.
5554 * tui/tui-data.h (struct tui_win_info)
5555 <make_invisible_and_set_new_height>: New method.
5556
5557 2019-07-17 Tom Tromey <tom@tromey.com>
5558
5559 * tui/tui.c: Update.
5560 * tui/tui-source.h (struct tui_source_window): Move from
5561 tui-data.h.
5562 * tui/tui-layout.c: Update.
5563 * tui/tui-disasm.c: Update.
5564 * tui/tui-data.h (struct tui_source_window): Move to
5565 tui-source.h.
5566
5567 2019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5570 tui-data.h.
5571 * tui/tui-data.h (struct tui_disasm_window): Move to
5572 tui-disasm.h.
5573
5574 2019-07-17 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-regs.h (struct tui_data_item_window): Move from
5577 tui-data.h.
5578 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5579 * tui/tui-data.h (struct tui_data_item_window): Move to
5580 tui-regs.h.
5581 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5582
5583 2019-07-17 Tom Tromey <tom@tromey.com>
5584
5585 * tui/tui.c: Update.
5586 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5587 (tui_cmd_window::max_height): Move to tui-command.c.
5588 * tui/tui-layout.c: Update.
5589 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5590 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5591 tui-command.c.
5592 * tui/tui-command.h (struct tui_cmd_window): Move from
5593 tui-data.h.
5594 * tui/tui-command.c: Remove "structuring" comments.
5595 (tui_cmd_window::clear_detail)
5596 (tui_cmd_window::do_make_visible_with_new_height)
5597 (tui_cmd_window::max_height): Move from elsewhere.
5598
5599 2019-07-17 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5602 Now static.
5603 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5604 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5605
5606 2019-07-17 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui.c: Update.
5609 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5610 tui-regs.c.
5611 * tui/tui-windata.h: Remove file.
5612 * tui/tui-windata.c: Remove file.
5613 * tui/tui-win.c (tui_data_window::set_new_height)
5614 (tui_data_window::do_make_visible_with_new_height): Move to
5615 tui-regs.c.
5616 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5617 * tui/tui-regs.c: Remove "structuring" comments.
5618 (tui_data_window::first_data_item_displayed)
5619 (tui_data_window::delete_data_content_windows)
5620 (tui_data_window::erase_data_content)
5621 (tui_data_window::display_all_data)
5622 (tui_data_window::refresh_all)
5623 (tui_data_window::do_scroll_vertical)
5624 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5625 (tui_data_window::do_make_visible_with_new_height)
5626 (tui_data_window::refresh_window): Move from elsewhere.
5627 (_initialize_tui_regs): Move to end of file.
5628 * tui/tui-layout.c: Update.
5629 * tui/tui-hooks.c: Update.
5630 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5631 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5632 tui-regs.c.
5633 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5634
5635 2019-07-17 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5638 seen.
5639
5640 2019-07-17 Tom Tromey <tom@tromey.com>
5641
5642 * tui/tui-win.c (tui_source_window_base::set_new_height)
5643 (tui_source_window_base::do_make_visible_with_new_height): Use
5644 m_has_locator field directly.
5645 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5646 method.
5647 (struct tui_source_window_base) <has_locator>: Likewise.
5648
5649 2019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5652 Don't declare.
5653 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5654 Remove.
5655 * tui/tui-win.c (tui_source_window_base::set_new_height)
5656 (tui_source_window_base::set_new_height)
5657 (make_invisible_and_set_new_height)
5658 (tui_source_window_base::do_make_visible_with_new_height)
5659 (tui_source_window_base::do_make_visible_with_new_height):
5660 Update.
5661 * tui/tui-layout.c (show_source_disasm_command, show_data)
5662 (show_source_or_disasm_and_command): Update.
5663 * tui/tui-layout.c (show_layout): Update.
5664
5665 2019-07-17 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-layout.c (make_data_window): Remove.
5668 (show_data): Unify creation and re-initialization cases.
5669
5670 2019-07-17 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-layout.c (make_source_window, make_disasm_window):
5673 Remove.
5674 (show_data): Unify creation and re-initialization cases.
5675
5676 2019-07-17 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-layout.c (make_command_window): Remove.
5679 (show_source_disasm_command, show_source_or_disasm_and_command):
5680 Unify creation and re-initialization cases.
5681
5682 2019-07-17 Tom Tromey <tom@tromey.com>
5683
5684 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5685 creation and re-initialization cases.
5686
5687 2019-07-17 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-regs.c (tui_get_register): Return void.
5690
5691 2019-07-17 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5694 Simplify.
5695
5696 2019-07-17 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5699 resetting.
5700
5701 2019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5704 * tui/tui-regs.c (tui_reg_layout): New function.
5705 (tui_show_registers, tui_reg_command): Use it.
5706 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5707 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5708 parameters.
5709 (tui_layout_command): Remove.
5710
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-layout.h (tui/tui-layout): Return void.
5714 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5715
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-layout.c (show_source_disasm_command, show_data):
5719 Update.
5720 (reset_locator): Remove.
5721 (show_source_or_disasm_and_command): Update.
5722
5723 2019-07-17 Tom Tromey <tom@tromey.com>
5724
5725 * tui/tui-source.c (tui_source_window_base::reset): Remove
5726 win_type parameter.
5727 * tui/tui-layout.c (make_command_window, make_source_window)
5728 (make_disasm_window, make_data_window)
5729 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5730 (reset_locator, show_source_or_disasm_and_command): Update.
5731 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5732 win_type parameter.
5733 (struct tui_source_window_base) <reset>: Likewise.
5734
5735 2019-07-17 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-layout.c (show_source_disasm_command): Use
5738 reset_locator.
5739 (reset_locator): New function.
5740 (init_and_make_win): Remove.
5741 (show_source_or_disasm_and_command): Use reset_locator.
5742
5743 2019-07-17 Tom Tromey <tom@tromey.com>
5744
5745 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5746 condition.
5747 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5748 Remove condition.
5749 * tui/tui-source.c (tui_source_window_base::reset): New method.
5750 * tui/tui-layout.c (make_command_window): Don't call
5751 init_and_make_win.
5752 (make_source_window, make_disasm_window): Don't call
5753 make_source_or_disasm_window.
5754 (make_data_window): Don't call init_and_make_win. Change calling
5755 convention.
5756 (show_source_disasm_command, show_data): Simplify.
5757 (make_source_or_disasm_window): Remove.
5758 (show_source_or_disasm_and_command): Simplify.
5759 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5760 (struct tui_source_window_base) <reset>: Likewise.
5761 <execution_info>: Remove initializer.
5762 * tui/tui-data.c (tui_source_window_base): Initialize
5763 execution_info.
5764
5765 2019-07-17 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5768 variable.
5769
5770 2019-07-17 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui.c (tui_rl_other_window): Update.
5773 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5774 superclass method first. Always iterate over regs_content.
5775 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5776 method.
5777 * tui/tui-win.c (tui_set_focus_command): Update.
5778
5779 2019-07-17 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-win.c (tui_set_focus_command): Rename from
5782 tui_set_focus. Call tui_enable.
5783 (tui_set_focus_command): Remove.
5784
5785 2019-07-17 Tom Tromey <tom@tromey.com>
5786
5787 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5788 refresh_window.
5789 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5790 touchwin.
5791 (tui_data_window::refresh_window): Call refresh_window on data
5792 items. Always call superclass refresh_window.
5793 (tui_win_info::refresh): Remove.
5794 (tui_source_window_base::refresh_window): Update.
5795 (tui_refresh_all): Update.
5796 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5797 refresh_window.
5798 (show_source_or_disasm_and_command): Likewise.
5799 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5800 (struct tui_source_window_base) <refresh>: Likewise.
5801
5802 2019-07-17 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-winsource.c (tui_clear_source_content)
5805 (tui_show_source_content): Update.
5806 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5807 whether content is empty.
5808 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5809 Remove.
5810
5811 2019-07-17 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5814 window's contents.
5815 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5816 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5817
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5821 (struct tui_data_item_window): Update.
5822
5823 2019-07-17 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5826 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5827 defines.
5828
5829 2019-07-17 Tom Tromey <tom@tromey.com>
5830
5831 * tui/tui-winsource.h (tui_erase_source_content)
5832 (tui_clear_source_content): Remove "display_prompt" parameter.
5833 * tui/tui-winsource.c (tui_update_source_window_as_is)
5834 (tui_update_source_windows_with_addr): Update.
5835 (tui_clear_source_content): Remove "display_prompt" parameter.
5836 (tui_erase_source_content): Likewise. Simplify.
5837 (tui_show_source_content): Update.
5838 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5839 * tui/tui-stack.c (tui_show_frame_info): Update.
5840 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5841 Remove defines.
5842
5843 2019-07-17 Tom Tromey <tom@tromey.com>
5844
5845 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5846 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5847 parameter.
5848 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5849 parameter.
5850
5851 2019-07-17 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-winsource.c (tui_clear_source_content)
5854 (tui_show_source_content, tui_show_exec_info_content)
5855 (tui_clear_exec_info_content): Update.
5856 * tui/tui-stack.c (tui_show_locator_content): Update.
5857 (tui_show_frame_info): Update.
5858 * tui/tui-source.h (tui_source_window): Don't declare.
5859 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5860 from tui_source_is_displayed.
5861 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5862 Remove field.
5863 (struct tui_source_window_base) <content_in_use>: New field. Now
5864 bool.
5865 (struct tui_source_window) <showing_source_p>: New method.
5866 (TUI_SRC_WIN): Change cast.
5867 * tui/tui-data.c (tui_initialize_static_data): Update.
5868
5869 2019-07-17 Tom Tromey <tom@tromey.com>
5870
5871 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5872 location_matches_p.
5873 * tui/tui-source.c (tui_source_window::location_matches_p): New
5874 method.
5875 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5876 method.
5877 * tui/tui-data.h (struct tui_source_window_base)
5878 <location_matches_p>: New method.
5879 (struct tui_source_window, struct tui_disasm_window)
5880 <location_matches_p>: Likewise.
5881
5882 2019-07-17 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-win.c (tui_set_win_height_command): Rename from
5885 tui_set_win_height.
5886 (tui_set_win_height_command): Remove.
5887
5888 2019-07-17 Tom Tromey <tom@tromey.com>
5889
5890 * tui/tui-source.c (tui_source_window): New constructor. Add
5891 observer.
5892 (~tui_source_window): New destructor.
5893 (tui_source_window::style_changed): New method.
5894 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5895 (tui_attach_detach_observers): Update.
5896 * tui/tui-data.h (struct tui_source_window): Make constructor not
5897 inline. Add destructor.
5898 (struct tui_source_window) <style_changed>: New method.
5899 <m_observable>: New member.
5900
5901 2019-07-17 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5904 * tui/tui-win.c (tui_resize_all): Fix typo.
5905
5906 2019-07-17 Tom Tromey <tom@tromey.com>
5907
5908 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5909 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5910 (tui_refresh_all): Remove "list" parameter. Use foreach.
5911 * tui/tui-win.c (window_name_completer): Use foreach.
5912 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5913 (update_tab_width): Likewise.
5914 * tui/tui-layout.c (show_layout): Update.
5915 * tui/tui-data.h (class tui_window_iterator): New.
5916 (struct all_tui_windows): New.
5917 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5918
5919 2019-07-17 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5922 parameter. Don't reference globals.
5923 (tui_reg_command): Update.
5924
5925 2019-07-17 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-regs.c (tui_show_registers): Simplify.
5928
5929 2019-07-17 Tom Tromey <tom@tromey.com>
5930
5931 * tui/tui-regs.c (tui_show_registers): Update.
5932 (tui_show_register_group): Add win_info parameter.
5933
5934 2019-07-17 Tom Tromey <tom@tromey.com>
5935
5936 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5937 Rename from tui_display_reg_element_at_line.
5938 (tui_data_window::display_registers_from_line): Update.
5939 * tui/tui-data.h (struct tui_data_window)
5940 <display_reg_element_at_line>: New method.
5941
5942 2019-07-17 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-regs.h (tui_display_registers_from)
5945 (tui_display_registers_from_line): Don't declare.
5946 * tui/tui-windata.c (tui_data_window::display_all_data)
5947 (tui_data_window::refresh_all)
5948 (tui_data_window::do_scroll_vertical): Update.
5949 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5950 from tui_display_registers_from.
5951 (tui_display_reg_element_at_line): Update.
5952 (tui_data_window::display_registers_from_line): Rename from
5953 tui_display_registers_from_line.
5954 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5955 display_registers_from_line>: New methods.
5956
5957 2019-07-17 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5960 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5961 from tui_erase_data_content.
5962 (tui_data_window::display_all_data)
5963 (tui_data_window::refresh_all)
5964 (tui_data_window::do_scroll_vertical): Update.
5965 * tui/tui-regs.c (tui_show_registers): Update.
5966 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5967 New method.
5968
5969 2019-07-17 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5972 declare.
5973 * tui/tui-windata.c
5974 (tui_data_window::delete_data_content_windows): Rename from
5975 tui_delete_data_content_windows.
5976 (tui_data_window::display_all_data)
5977 (tui_data_window::do_scroll_vertical): Update.
5978 * tui/tui-data.h (struct tui_data_window)
5979 <delete_data_content_windows>: New method.
5980
5981 2019-07-17 Tom Tromey <tom@tromey.com>
5982
5983 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5984 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5985
5986 2019-07-17 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5989 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5990 from tui_display_all_data.
5991 * tui/tui-win.c
5992 (tui_data_window::do_make_visible_with_new_height): Update.
5993 * tui/tui-regs.c (tui_show_registers): Update.
5994 * tui/tui-layout.c (tui_set_layout): Update.
5995 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5996 method.
5997
5998 2019-07-17 Tom Tromey <tom@tromey.com>
5999
6000 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6001 * tui/tui-windata.c (tui_display_data_from): Remove.
6002 (tui_data_window::refresh_all): Update.
6003
6004 2019-07-17 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6007 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6008 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6009 tui_display_registers_from_line.
6010 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6011 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6012 "force_display" parameter.
6013
6014 2019-07-17 Tom Tromey <tom@tromey.com>
6015
6016 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6017 declare.
6018 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6019 Rename from tui_first_reg_element_no_inline.
6020 (tui_display_reg_element_at_line)
6021 (tui_display_registers_from_line): Update.
6022 * tui/tui-data.h (struct tui_data_window)
6023 <first_reg_element_no_inline>: New method.
6024
6025 2019-07-17 Tom Tromey <tom@tromey.com>
6026
6027 * tui/tui-windata.c (tui_display_data_from)
6028 (tui_data_window::do_scroll_vertical): Update.
6029 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6030 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6031 Rename from tui_line_from_reg_element_no.
6032 (tui_display_registers_from_line): Update.
6033 * tui/tui-data.h (struct tui_data_window)
6034 <line_from_reg_element_no>: New method.
6035
6036 2019-07-17 Tom Tromey <tom@tromey.com>
6037
6038 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6039 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6040 tui_last_regs_line_no.
6041 (tui_display_reg_element_at_line)
6042 (tui_display_registers_from_line): Update.
6043 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6044 method.
6045
6046 2019-07-17 Tom Tromey <tom@tromey.com>
6047
6048 PR tui/24722:
6049 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6050 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6051 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6052 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6053 (tui_update_breakpoint_info): Likewise.
6054 * tui/tui-hooks.c (tui_event_create_breakpoint)
6055 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6056 Update.
6057
6058 2019-07-17 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6061
6062 2019-07-17 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-winsource.c (tui_update_source_window_as_is)
6065 (tui_update_source_windows_with_addr): Update.
6066 * tui/tui-source.h (tui_set_source_content)
6067 (tui_show_symtab_source): Add "win_info" parameter.
6068 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6069 parameter.
6070 (tui_show_symtab_source): Likewise.
6071
6072 2019-07-17 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-wingeneral.c
6075 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6076
6077 2019-07-17 Tom Tromey <tom@tromey.com>
6078
6079 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6080 (struct tui_cmd_window) <can_scroll>: New method.
6081 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6082 method.
6083
6084 2019-07-17 Tom Tromey <tromey@adacore.com>
6085
6086 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6087 do_field_signed>: Rename. Change type of "value".
6088 * ui-out.c (ui_out::field_signed): Rename from field_int.
6089 Change type of "value".
6090 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6091 type of "value".
6092 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6093 do_field_int. Change type of "value".
6094 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6095 do_field_int. Change type of "value".
6096 * tracepoint.c (trace_status_mi, tfind_1)
6097 (print_one_static_tracepoint_marker): Update.
6098 * thread.c (print_thread_info_1, print_selected_thread_frame):
6099 Update.
6100 * stack.c (print_frame, print_frame_info): Update.
6101 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6102 Update.
6103 * source.c (print_source_lines_base): Update.
6104 * skip.c (info_skip_command): Update.
6105 * record-btrace.c (btrace_ui_out_decode_error)
6106 (btrace_call_history_src_line): Update.
6107 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6108 Update.
6109 * progspace.c (print_program_space): Update.
6110 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6111 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6112 do_field_int. Change type of "value".
6113 * mi/mi-out.c (mi_ui_out::do_table_begin)
6114 (mi_ui_out::do_table_header): Update.
6115 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6116 type of "value".
6117 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6118 (mi_cmd_data_list_changed_registers, output_register)
6119 (mi_cmd_data_read_memory, mi_load_progress)
6120 (mi_cmd_trace_frame_collected): Update.
6121 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6122 Update.
6123 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6124 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6125 (mi_cmd_var_list_children, varobj_update_one): Update.
6126 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6127 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6128 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6129 * inferior.c (print_inferior): Update.
6130 * gdb_bfd.c (print_one_bfd): Update.
6131 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6132 Update.
6133 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6134 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6135 do_field_int. Change type of "value".
6136 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6137 do_field_int. Change type of "value".
6138 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6139 (print_one_breakpoint_location, print_it_catch_fork)
6140 (print_one_catch_fork, print_it_catch_vfork)
6141 (print_one_catch_vfork, print_it_catch_solib)
6142 (print_it_catch_exec, print_it_ranged_breakpoint)
6143 (print_mention_watchpoint, print_mention_masked_watchpoint)
6144 (bkpt_print_it, update_static_tracepoint): Update.
6145 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6146 * break-catch-syscall.c (print_it_catch_syscall): Update.
6147 * ada-tasks.c (print_ada_task_info): Update.
6148 * ada-lang.c (print_it_exception, print_mention_exception):
6149 Update.
6150
6151 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 PR breakpoints/24541
6154 * gdbarch.c: Regenerate.
6155 * gdbarch.h: Regenerate.
6156 * gdbarch.sh: Adjust return type and parameter types for
6157 'stap_adjust_register'.
6158 (i386_stap_adjust_register): Adjust signature and return new
6159 register name.
6160 * stap-probe.c (stap_parse_register_operand): Adjust use of
6161 'gdbarch_stap_adjust_register'.
6162
6163 2019-07-17 Tom Tromey <tromey@adacore.com>
6164
6165 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6166 declare VEC.
6167 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6168 std::vector.
6169 (struct s390_process_info): Add initializers.
6170 (s390_add_process): Use new.
6171 (s390_linux_nat_target::low_forget_process): Use delete.
6172 (s390_linux_nat_target::low_new_fork)
6173 (s390_linux_nat_target::stopped_by_watchpoint)
6174 (s390_linux_nat_target::low_prepare_to_resume)
6175 (s390_linux_nat_target::insert_watchpoint)
6176 (s390_linux_nat_target::insert_hw_breakpoint)
6177 (s390_linux_nat_target::remove_watchpoint)
6178 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6179
6180 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6181
6182 * aarch64-fbsd-nat.c: Include regcache.h.
6183 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6184 argument.
6185 (aarch64_fbsd_nat_target::fetch_registers)
6186 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6187 variable.
6188 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6189
6190 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6191
6192 * fbsd-nat.c: Include gdbarch.h.
6193
6194 2019-07-15 Tom Tromey <tromey@adacore.com>
6195
6196 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6197
6198 2019-07-15 Tom Tromey <tromey@adacore.com>
6199
6200 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6201 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6202 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6203 * cli-out.c (cli_ui_out::do_field_int): New method.
6204 * ui-out.c (ui_out::field_unsigned): New method.
6205 * symfile.c (generic_load): Use field_unsigned.
6206 (print_transfer_performance): Likewise.
6207 * record-btrace.c (ui_out_field_uint): Remove.
6208 (btrace_call_history_insn_range, btrace_call_history): Use
6209 field_unsigned.
6210 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6211 field_unsigned.
6212 * ui-out.h (class ui_out) <field_unsigned>: New method.
6213 <do_field_unsigned>: Likewise.
6214
6215 2019-07-15 Tom Tromey <tromey@adacore.com>
6216
6217 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6218 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6219 * target.c (flash_erase_command): Use field_string.
6220 * infrun.c (print_signal_received_reason): Use field_string.
6221 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6222 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6223 field_string.
6224 * ada-tasks.c (print_ada_task_info): Use field_string.
6225
6226 2019-07-15 Tom Tromey <tromey@adacore.com>
6227
6228 * target.c (flash_erase_command): Use field_core_addr.
6229 * symfile.c (generic_load): Use field_core_addr.
6230 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6231 Use field_core_addr.
6232 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6233 field_core_addr.
6234
6235 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6236
6237 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6238 value if its desired type is smaller than a CORE_ADDR and signed.
6239
6240 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6243 of changes to field names, and use new is_reference field to
6244 decide if a property is a reference or not.
6245 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6246 field.
6247 (struct dwarf2_property_baton): Update header comment, rename
6248 'referenced_type' to 'property_type' and update comments.
6249 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6250 default property type, store in property baton, update to take
6251 accound of renamed field.
6252 (read_func_scope): Update call to attr_to_dynamic_prop.
6253 (read_array_type): Likewise.
6254 (dwarf2_per_cu_addr_sized_int_type): New function.
6255 (read_subrange_index_type): Move type finding code to
6256 dwarf2_per_cu_addr_sized_int_type.
6257 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6258 (dwarf2_per_cu_addr_type): New function.
6259 (set_die_type): Update calls to attr_to_dynamic_prop.
6260
6261 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * dwarf2read.c (read_subrange_index_type): New function.
6264 (read_subrange_type): Move code into new function and call it.
6265 * gdbtypes.c (create_range_type): Add some asserts.
6266
6267 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6270 update return statements.
6271 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6272 declaration, and update comment to match.
6273 * gdbtypes.c (resolve_dynamic_array): Update call to
6274 dwarf2_evaluate_property to match new return type.
6275
6276 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * valarith.c (value_subscripted_rvalue): Change lowerbound
6279 parameter type from int to LONGEST.
6280 * value.h (value_subscripted_rvalue): Likewise in declaration.
6281
6282 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * cli/cli-utils.c (info_print_command_completer): New function.
6285 * cli/cli-utils.h: Add 'completer.h' include, and forward
6286 declaration for 'struct cmd_list_element'.
6287 (info_print_command_completer): Declare.
6288 * stack.c (_initialize_stack): Add completer for 'info locals' and
6289 'info args'.
6290 * symtab.c (_initialize_symtab): Add completer for 'info
6291 variables' and 'info functions'.
6292 * NEWS: Mention completion for additional info commands.
6293
6294 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * cli/cli-utils.c (extract_info_print_args): Delete.
6297 (extract_arg_maybe_quoted): Delete.
6298 (info_print_options_defs): New variable.
6299 (make_info_print_options_def_group): New function.
6300 (extract_info_print_options): Define new function.
6301 * cli/cli-utils.h (extract_info_print_args): Delete.
6302 (struct info_print_options): New structure.
6303 (extract_info_print_options): Declare new function.
6304 * stack.c (info_locals_command): Update to use new
6305 extract_info_print_options, also add a header comment.
6306 (info_args_command): Likewise.
6307 * symtab.c (info_variables_command): Likewise.
6308 (info_functions_command): Likewise.
6309
6310 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6311
6312 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6313 to extract string arguments.
6314 * common/common-utils.c (extract_string_maybe_quoted): New function.
6315 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6316
6317 2019-07-11 Tom Tromey <tromey@adacore.com>
6318
6319 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6320 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6321 * top.h (gdbinit): Don't declare.
6322 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6323 into...
6324 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6325 * top.c (gdb_init): Don't call init_cli_cmds.
6326 (gdbinit): Remove.
6327 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6328
6329 2019-07-11 Tom Tromey <tromey@adacore.com>
6330
6331 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6332 after it has been moved.
6333
6334 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * valops.c (value_must_coerce_to_target): Change return type to
6337 bool.
6338 * value.h (value_must_coerce_to_target): Likewise.
6339
6340 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * breakpoint.c (is_hardware_watchpoint): Remove
6343 forward-declaration.
6344 (is_masked_watchpoint): Change return type to bool.
6345 (is_tracepoint): Likewise.
6346 (is_breakpoint): Likewise.
6347 (is_hardware_watchpoint): Likewise.
6348 (is_watchpoint): Likewise.
6349 (is_no_memory_software_watchpoint): Likewise.
6350 (is_catchpoint): Likewise.
6351 (breakpoint_1): Make FILTER parameter's return type bool.
6352 is_masked_watchpoint): Change return type to bool.
6353 (save_breakpoints): Make FILTER parameter's return type bool.
6354 * breakpoint.h (is_breakpoint): Change return type to bool.
6355 (is_watchpoint): Likewise.
6356 (is_catchpoint): Likewise.
6357 (is_tracepoint): Likewise.
6358
6359 2019-07-10 Tom Tromey <tom@tromey.com>
6360
6361 * defs.h: Don't include gdbarch.h.
6362 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6363 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6364 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6365 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6366 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6367 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6368 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6369 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6370 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6371 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6372 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6373 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6374 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6375 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6376 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6377 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6378 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6379 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6380 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6381 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6382 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6383 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6384 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6385 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6386 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6387 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6388 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6389
6390 2019-07-10 Tom Tromey <tromey@adacore.com>
6391
6392 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6393 * breakpoint.c (init_ada_exception_breakpoint): Register as
6394 bp_catchpoint.
6395 (print_one_breakpoint_location, print_one_breakpoint): Use
6396 is_ada_exception_catchpoint.
6397 * ada-lang.c (class ada_catchpoint_location): Pass
6398 bp_loc_software_breakpoint to bp_location constructor.
6399 (is_ada_exception_catchpoint): New function.
6400
6401 2019-07-10 Tom Tromey <tromey@adacore.com>
6402
6403 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6404 VEC.
6405 (struct arm_exidx_entry): New method operator<.
6406 (struct arm_exidx_data) <section_maps>: Change type.
6407 (arm_exidx_data_free): Remove.
6408 (arm_exidx_data_key): Change type. Move lower.
6409 (arm_exidx_new_objfile): Update.
6410 (arm_compare_exidx_entries): Remove.
6411 (arm_find_exidx_entry, _initialize_arm_tdep)
6412
6413 2019-07-10 Tom Tromey <tromey@adacore.com>
6414
6415 * solib-spu.c (ocl_program_data_key): Change type.
6416 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6417 Update.
6418
6419 2019-07-10 Tom Tromey <tromey@adacore.com>
6420
6421 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6422 (struct solib_aix_inferior_data) <library_list>: Change type.
6423 (solib_aix_inferior_data_handle): Change type.
6424 (get_solib_aix_inferior_data): Update.
6425 (solib_aix_free_library_list): Remove.
6426 (library_list_start_library): Update.
6427 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6428 return type.
6429 (solib_aix_get_library_list)
6430 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6431 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6432
6433 2019-07-10 Tom Tromey <tromey@adacore.com>
6434
6435 * solib-dsbt.c (struct dsbt_info): Add initializers.
6436 (solib_dsbt_pspace_data): Change type.
6437 (dsbt_pspace_data_cleanup): Remove.
6438 (get_dsbt_info, _initialize_dsbt_solib): Update.
6439
6440 2019-07-10 Tom Tromey <tromey@adacore.com>
6441
6442 * spu-tdep.c (spu_overlay_data): Change type.
6443 (spu_get_overlay_table, spu_overlay_new_objfile)
6444 (_initialize_spu_tdep): Update.
6445
6446 2019-07-10 Tom Tromey <tromey@adacore.com>
6447
6448 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6449 destructor.
6450 (dbx_objfile_data_key): Change type and declare later.
6451 (DBX_SYMFILE_INFO): Rewrite.
6452 * dbxread.c (dbx_objfile_data_key): Change type.
6453 (dbx_symfile_init): Update.
6454 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6455 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6456 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6457
6458 2019-07-10 Tom Tromey <tromey@adacore.com>
6459
6460 * jit.c (jit_program_space_key): Change type. Move lower.
6461 (get_jit_program_space_data): Update.
6462 (jit_program_space_data_cleanup): Remove.
6463 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6464 Update.
6465 (struct jit_program_space_data): Add initializers.
6466
6467 2019-07-10 Tom Tromey <tromey@adacore.com>
6468
6469 * solib-darwin.c (struct darwin_info): Add initializers.
6470 (solib_darwin_pspace_data): Change type.
6471 (darwin_pspace_data_cleanup): Remove.
6472 (get_darwin_info, _initialize_darwin_solib): Update.
6473
6474 2019-07-10 Tom Tromey <tromey@adacore.com>
6475
6476 * remote-sim.c (struct sim_inferior_data): Add initializers,
6477 constructor, and destructor.
6478 (sim_inferior_data_key): Change type. Move lower.
6479 (check_for_duplicate_sim_descriptor): Update.
6480 (get_sim_inferior_data): Use new. Update.
6481 (~sim_inferior_data_cleanup): Rename from
6482 sim_inferior_data_cleanup. Simplify.
6483 (gdbsim_close_inferior, simulator_command)
6484 (sim_command_completer, _initialize_remote_sim): Update.
6485 (next_pid, INITIAL_PID): Move earlier.
6486
6487 2019-07-10 Tom Tromey <tromey@adacore.com>
6488
6489 * python/python-internal.h (create_thread_object): Return
6490 gdbpy_ref.
6491 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6492 * python/py-inferior.c (struct threadlist_entry): Add
6493 constructor.
6494 <thread_obj>: Now a gdbpy_ref.
6495 (thread_to_thread_object): Update.
6496 (add_thread_object): Use new.
6497 (delete_thread_object): Use delete.
6498 (infpy_threads): Update.
6499 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6500 GIL.
6501
6502 2019-07-10 Tom Tromey <tromey@adacore.com>
6503
6504 * valops.c (value_cast): Specialize error message for Ada.
6505
6506 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6509
6510 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6511
6512 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6513 bpstat_should_step): Return bool, adjust comments.
6514 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6515 bpstat_should_step): Likewise.
6516
6517 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6518
6519 * features/Makefile: Use feature target descriptions for Arm.
6520 * features/arm/arm-core.c: Generate new file.
6521 * features/arm/arm-fpa.c: Likewise.
6522 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6523 * features/arm/arm-m-profile.c: Likewise.
6524 * features/arm/arm-vfpv2.c: Likewise.
6525 * features/arm/arm-vfpv3.c: Likewise.
6526 * features/arm/xscale-iwmmxt.c: Likewise.
6527 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6528
6529 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6530
6531 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6532 ptrace earlier.
6533
6534 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6535
6536 * features/aarch64-pauth.c: Regenerate.
6537
6538 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6541 bool.
6542 (bpstat_what): Use false instead of 0.
6543
6544 2019-07-09 Pedro Alves <palves@redhat.com>
6545
6546 * break-catch-throw.c (is_exception_catchpoint): New.
6547 * breakpoint.c (print_one_breakpoint_location): New parameter
6548 'raw_loc'. Handle it. Use
6549 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6550 looking at the breakpoint's type.
6551 (print_one_breakpoint): If handling "maint info breakpoints", also
6552 print locations of exception catchpoints.
6553 * breakpoint.h (is_exception_catchpoint): Declare.
6554
6555 2019-07-09 Pedro Alves <palves@redhat.com>
6556
6557 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6558 "addr" field.
6559 (allocate_location_exception_catchpoint): New.
6560 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6561 (initialize_throw_catchpoint_ops): Install
6562 allocate_location_exception_catchpoint as allocate_location
6563 method.
6564 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6565 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6566 bp_loc_other.
6567 (breakpoint_address_is_meaningful): Delete.
6568 (bl_address_is_meaningful): New.
6569 (breakpoint_locations_match): Adjust comment.
6570 (bp_location_from_bp_type): New, factored out of...
6571 (bp_location::bp_location(breakpoint *)): ... this.
6572 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6573 factored out of...
6574 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6575 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6576 breakpoint_address_is_meaningful.
6577 (bp_locations_compare): Adjust comment.
6578 (update_global_location_list): Use bl_address_is_meaningful
6579 instead of breakpoint_address_is_meaningful.
6580 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6581 explicit.
6582 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6583 * python/py-breakpoint.c (bppy_get_location): No longer check
6584 whether location is null.
6585
6586 2019-07-09 Pedro Alves <palves@redhat.com>
6587
6588 PR c++/15468
6589 * breakpoint.c (print_one_breakpoint_location): Remove
6590 single-location assert.
6591
6592 2019-07-09 Tom Tromey <tom@tromey.com>
6593
6594 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6595 * configure: Rebuild.
6596 * configure.ac: Change common to gdbsupport.
6597 * gdbsupport: Rename from common.
6598 * acinclude.m4: Change common to gdbsupport.
6599 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6600 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6601 gdbsupport.
6602 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6603 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6604 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6605 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6606 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6607 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6608 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6609 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6610 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6611 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6612 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6613 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6614 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6615 coff-pe-read.c, command.h, compile/compile-c-support.c,
6616 compile/compile-c.h, compile/compile-cplus-symbols.c,
6617 compile/compile-cplus-types.c, compile/compile-cplus.h,
6618 compile/compile-loc2c.c, compile/compile.c, completer.c,
6619 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6620 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6621 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6622 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6623 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6624 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6625 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6626 features/aarch64-core.c, features/aarch64-fpu.c,
6627 features/aarch64-pauth.c, features/aarch64-sve.c,
6628 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6629 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6630 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6631 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6632 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6633 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6634 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6635 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6636 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6637 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6638 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6639 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6640 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6641 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6642 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6643 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6644 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6645 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6646 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6647 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6648 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6649 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6650 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6651 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6652 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6653 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6654 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6655 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6656 minsyms.c, mips-linux-tdep.c, namespace.h,
6657 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6658 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6659 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6660 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6661 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6662 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6663 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6664 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6665 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6666 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6667 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6668 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6669 procfs.c, producer.c, progspace.h, psymtab.h,
6670 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6671 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6672 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6673 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6674 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6675 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6676 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6677 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6678 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6679 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6680 target-memory.c, target.c, target.h, target/waitstatus.c,
6681 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6682 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6683 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6684 unittests/array-view-selftests.c,
6685 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6686 unittests/common-utils-selftests.c,
6687 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6688 unittests/format_pieces-selftests.c,
6689 unittests/function-view-selftests.c,
6690 unittests/lookup_name_info-selftests.c,
6691 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6692 unittests/mkdir-recursive-selftests.c,
6693 unittests/observable-selftests.c,
6694 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6695 unittests/parse-connection-spec-selftests.c,
6696 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6697 unittests/scoped_fd-selftests.c,
6698 unittests/scoped_mmap-selftests.c,
6699 unittests/scoped_restore-selftests.c,
6700 unittests/string_view-selftests.c, unittests/style-selftests.c,
6701 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6702 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6703 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6704 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6705 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6706 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6707
6708 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6711 bool value.
6712 (decode_digits_ordinary): Set explicit_line field in sal.
6713 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6714 symtab_and_line that was set on an explicit line number in
6715 assembler code. Do always update the recorded symtab and line if
6716 we do skip the prologue.
6717
6718 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * breakpoint.c (set_breakpoint_location_function): Remove
6721 explicit_loc parameter.
6722 (momentary_breakpoint_from_master): Update call to
6723 set_breakpoint_location_function.
6724 (add_location_to_breakpoint): Likewise.
6725
6726 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6727
6728 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6729 required features based on default bfd type when no specific bfd
6730 is present.
6731
6732 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6733
6734 * NEWS: Mention that GDB printf and eval commands can now print
6735 C-style and Ada-style convenience var strings without
6736 calling the inferior.
6737 * printcmd.c (printf_c_string): Locally print GDB internal var
6738 instead of transiting via the inferior.
6739 (printf_wide_c_string): Likewise.
6740
6741 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6742
6743 PR breakpoints/25011
6744 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6745
6746 2019-07-04 Tom Tromey <tom@tromey.com>
6747
6748 PR tui/24724:
6749 * tui/tui-winsource.c (tui_clear_source_content): Update.
6750 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6751 (tui_update_breakpoint_info): Update.
6752 (tui_set_exec_info_content): Update.
6753 * tui/tui-source.c (tui_set_source_content_nil): Update.
6754 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6755 has_break.
6756 * tui/tui-data.h (enum tui_bp_flag): New.
6757 (tui_bp_flags): New enum flags type.
6758 (struct tui_source_element) <break_mode>: Change type. Rename
6759 from has_break.
6760 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6761 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6762 constants.
6763 * tui/tui-winsource.h: Fix comment.
6764
6765 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6766
6767 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6768 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6769 (store_fpregs_to_thread)
6770 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6771 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6772 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6773 (IWMMXT_REGS_SIZE): Add define.
6774 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6775 (fetch_vfp_regs, store_vfp_regs)
6776 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6777 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6778
6779 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6780
6781 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6782 defines.
6783 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6784 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6785 (ARM_INT_REGISTER_SIZE): ...to this.
6786 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6787 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6788 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6789 (arm_linux_collect_gregset, supply_nwfpe_register)
6790 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6791 defines.
6792 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6793 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6794 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6795 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6796 (arm_return_in_memory, arm_store_return_value)
6797 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6798 (arm_record_ld_st_multiple): Likewise.
6799 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6800 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6801
6802 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6803
6804 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6805 AARCH64_DISPLACED_MODIFIED_INSNS.
6806 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6807 (aarch64_displaced_step_copy_insn): Likewise.
6808 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6809 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6810 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6811 ARM_DISPLACED_MODIFIED_INSNS.
6812 * arm-tdep.c (arm_gdbarch_init): Likewise.
6813 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6814 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6815 (struct arm_displaced_step_closure): Use
6816 ARM_DISPLACED_MODIFIED_INSNS.
6817
6818 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6819
6820 * features/Makefile: Remove unused xml files.
6821 * features/aarch64.xml: Remove.
6822 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6823 * features/i386/amd64-avx-avx512.xml: Remove.
6824 * features/i386/amd64-avx-linux.xml: Remove.
6825 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6826 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6827 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6828 * features/i386/amd64-avx-mpx.xml: Remove.
6829 * features/i386/amd64-avx.xml: Remove.
6830 * features/i386/amd64-linux.xml: Remove.
6831 * features/i386/amd64-mpx-linux.xml: Remove.
6832 * features/i386/amd64-mpx.xml: Remove.
6833 * features/i386/amd64.xml: Remove.
6834 * features/i386/i386-avx-avx512-linux.xml: Remove.
6835 * features/i386/i386-avx-avx512.xml: Remove.
6836 * features/i386/i386-avx-linux.xml: Remove.
6837 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6838 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6839 * features/i386/i386-avx-mpx-linux.xml: Remove.
6840 * features/i386/i386-avx-mpx.xml: Remove.
6841 * features/i386/i386-avx.xml: Remove.
6842 * features/i386/i386-linux.xml: Remove.
6843 * features/i386/i386-mmx-linux.xml: Remove.
6844 * features/i386/i386-mmx.xml: Remove.
6845 * features/i386/i386-mpx-linux.xml: Remove.
6846 * features/i386/i386-mpx.xml: Remove.
6847 * features/i386/i386.xml: Remove.
6848 * features/i386/x32-avx-avx512-linux.xml: Remove.
6849 * features/i386/x32-avx-linux.xml: Remove.
6850 * features/i386/x32-linux.xml: Remove.
6851
6852 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6853
6854 * regformats/aarch64.dat: Remove.
6855 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6856 * regformats/i386/amd64-avx-linux.dat: Remove.
6857 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6858 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6859 * regformats/i386/amd64-linux.dat: Remove.
6860 * regformats/i386/amd64-mpx-linux.dat: Remove.
6861 * regformats/i386/amd64.dat: Remove.
6862 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6863 * regformats/i386/i386-avx-linux.dat: Remove.
6864 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6865 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6866 * regformats/i386/i386-linux.dat: Remove.
6867 * regformats/i386/i386-mmx-linux.dat: Remove.
6868 * regformats/i386/i386-mpx-linux.dat: Remove.
6869 * regformats/i386/i386.dat: Remove.
6870 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6871 * regformats/i386/x32-avx-linux.dat: Remove.
6872 * regformats/i386/x32-linux.dat: Remove.
6873
6874 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6875
6876 * aarch64-tdep.c: Remove xml self tests.
6877 * amd64-linux-tdep.c: Likewise.
6878 * amd64-tdep.c: Likewise.
6879 * i386-linux-tdep.c: Likewise.
6880 * i386-tdep.c: Likewise.
6881
6882 2019-07-03 Pedro Alves <palves@redhat.com>
6883
6884 PR cli/24732
6885 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6886 (pipe_cmd_option_defs): New.
6887 (make_pipe_cmd_options_def_group): New.
6888 (pipe_command): Use gdb::option::process_options.
6889 (pipe_command_completer): New function.
6890 (_initialize_cli_cmds): Install completer for "pipe" command.
6891
6892 2019-07-03 Pedro Alves <palves@redhat.com>
6893
6894 * cli/cli-option.c (union option_value) <string>: New field.
6895 (struct option_def_and_value): Add ctor, move ctor, dtor and
6896 use DISABLE_COPY_AND_ASSIGN.
6897 (option_def_and_value::clear_value): New.
6898 (parse_option, save_option_value_in_ctx, get_val_type_str)
6899 (add_setshow_cmds_for_options): Handle var_string.
6900 * cli-option.h (union option_def::var_address) <string>: New
6901 field.
6902 (struct string_option_def): New.
6903 * maint-test-options.c (struct test_options_opts): Add default
6904 ctor and use DISABLE_COPY_AND_ASSIGN.
6905 <string_opt>: New field.
6906 (test_options_opts::~test_options_opts): New.
6907 (test_options_opts::dump): Also dump "-string".
6908 (test_options_option_defs): Install "string.
6909
6910 2019-07-03 Pedro Alves <palves@redhat.com>
6911
6912 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6913 option_value with a null enumeration.
6914 (complete_options): Save the option values in the context.
6915 (save_option_value_in_ctx): New, factored out from ...
6916 (process_options): ... here.
6917 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6918 of the function.
6919 * maint-test-options.c (test_options_opts::dump): New, factored
6920 out from ...
6921 (maintenance_test_options_command_mode): ... here.
6922 (maintenance_test_options_command_completion_result): Delete.
6923 (maintenance_test_options_command_completion_text): Update
6924 comment.
6925 (maintenance_show_test_options_completion_result): Change
6926 prototype. Just print
6927 maintenance_test_options_command_completion_text.
6928 (save_completion_result): New.
6929 (maintenance_test_options_completer_mode): Pass options context to
6930 complete_options, and then save a dump.
6931 (_initialize_maint_test_options): Use add_cmd to install "maint
6932 show test-options-completion-result".
6933
6934 2019-07-03 Pedro Alves <palves@redhat.com>
6935
6936 * NEWS (New commands): Mention "with" and "maint with".
6937 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6938 (with_command, with_command_completer): New.
6939 (pipe_command): Adjust to new repeat_previous
6940 interface.
6941 (_initialize_cli_cmds): Install the "with" command and its "w"
6942 alias.
6943 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6944 declarations.
6945 * cli/cli-setshow.c (parse_cli_var_uinteger)
6946 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6947 argument strings for all var_types.
6948 (get_setshow_command_value_string): New, factored out from ...
6949 (do_show_command): ... this.
6950 * cli/cli-setshow.h: Include <string>.
6951 (get_setshow_command_value_string): Declare.
6952 * command.h (repeat_previous): Now returns const char *. Adjust
6953 comment.
6954 * maint.c: Include "cli/cli-cmds.h".
6955 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6956 (_initialize_maint_cmds): Register the "maintenance with" command.
6957 * top.c (repeat_previous): Move bits from pipe_command here:
6958 Return the saved command line, if any; error out if there's no
6959 command to relaunch.
6960
6961 2019-07-03 Pedro Alves <palves@redhat.com>
6962
6963 * NEWS (New commands): Mention "maint set/show test-settings"
6964 instead of "maint test-settings".
6965 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6966 (maintenance_test_settings_set_list): Rename to ...
6967 (maintenance_set_test_settings_list): ... this.
6968 (maintenance_test_settings_show_list): Rename to ...
6969 (maintenance_show_test_settings_list): ... this.
6970 (maintenance_test_settings_cmd): Delete.
6971 (maintenance_test_settings_set_cmd): ...
6972 (maintenance_set_test_settings_cmd): ... this.
6973 (maintenance_test_settings_show_cmd): ...
6974 (maintenance_show_test_settings_cmd): ... this.
6975 (maintenance_test_settings_show_value_cmd):
6976 (maintenance_show_test_settings_value_cmd): ... this.
6977 (_initialize_maint_test_settings): No longer install the "maint
6978 test-settings" prefix command. Rename "maint test-settings set"
6979 to "maint set test-settings", and "maint test-settings show" to
6980 "maint show test-settings". Adjust all subcommands.
6981
6982 2019-07-03 Pedro Alves <palves@redhat.com>
6983
6984 * maint-test-settings.c: Fix file's intro comment. Replace all
6985 references to "test-options" with references to "test-settings",
6986 in comments.
6987
6988 2019-07-03 Pedro Alves <palves@redhat.com>
6989
6990 * maint-test-settings.c (maintenance_test_settings_xxx)
6991 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6992 New.
6993 (maintenance_test_settings_enums): Use them.
6994 (maintenance_test_settings_enum): Default to
6995 maintenance_test_settings_xxx.
6996 (_initialize_maint_test_settings): Initialize
6997 MAINTENANCE_TEST_SETTINGS_FILENAME.
6998
6999 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7000
7001 * breakpoint.h (remove_breakpoints_inf): Change return type to
7002 void, move function documentation here.
7003 * breakpoint.c (remove_breakpoints_inf): Change return type to
7004 void, move function documentation to header.
7005
7006 2019-07-02 Pedro Alves <palves@redhat.com>
7007
7008 * NEWS (Completion improvements): Mention "info threads".
7009 * thread.c (struct info_threads_opts, info_threads_option_defs)
7010 (make_info_threads_options_def_group): New.
7011 (info_threads_command): Use gdb::option::process_options.
7012 (info_threads_command_completer): New.
7013 (_initialize_thread): Use gdb::option::build_help to build the
7014 help text for "info threads".
7015
7016 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * defs.h (generic_load): Move from here...
7019 * symfile.h (generic_load): ... to here. Rename name parameter
7020 to args.
7021 * symfile.c (generic_load): Add comment.
7022
7023 2019-07-01 Tom Tromey <tromey@adacore.com>
7024
7025 * dwarf2read.c
7026 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7027 declaration of without_params. Fix formatting.
7028
7029 2019-07-01 Tom Tromey <tromey@adacore.com>
7030
7031 * ada-exp.y (find_primitive_type): Update.
7032 * ada-lang.h (ada_lookup_symbol): Update.
7033 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7034 parameter.
7035 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7036
7037 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7038
7039 PR breakpoints/24541
7040 * gdbarch.c: Regenerate.
7041 * gdbarch.h: Regenerate.
7042 * gdbarch.sh: Add 'stap_adjust_register'.
7043 * i386-tdep.c: Include '<unordered_set>'.
7044 (i386_stap_adjust_register): New function.
7045 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7046 * stap-probe.c (stap_parse_register_operand): Call
7047 'gdbarch_stap_adjust_register'.
7048
7049 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7050
7051 PR python/24742
7052 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7053 * python/python.c (do_start_initialization): Use 'xmalloc'
7054 instead of 'PyMem_Malloc'.
7055
7056 2019-06-28 Tom Tromey <tromey@adacore.com>
7057
7058 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7059 for Ada.
7060
7061 2019-06-27 Tom Tromey <tromey@adacore.com>
7062
7063 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7064 objfile_key.
7065 (arm_find_mapping_symbol, arm_record_special_symbol)
7066 (_initialize_arm_tdep): Update.
7067 (arm_objfile_data_free): Remove.
7068
7069 2019-06-27 Tom Tromey <tromey@adacore.com>
7070
7071 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7072 to cp_print_static_field.
7073
7074 2019-06-26 Tom Tromey <tromey@adacore.com>
7075
7076 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7077 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7078 declare.
7079
7080 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7081
7082 * features/aarch64-core.c (create_feature_aarch64_core):
7083 Regenerate.
7084 * features/aarch64-core.xml: Add cpsr flags.
7085
7086 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7087
7088 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7089 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7090
7091 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7092
7093 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7094 field.
7095 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7096 use.
7097 (arm_record_special_symbol): Don't insert new symbol in sorted
7098 position, push it at the end.
7099
7100 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7101
7102 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7103 (arm_mapping_symbol_s): Remove.
7104 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7105 (arm_mapping_symbol_vec): New typedef.
7106 (struct arm_per_objfile): Add constructor.
7107 <section_maps>: Change type to
7108 std::unique_ptr<arm_mapping_symbol_vec[]>.
7109 (arm_compare_mapping_symbols): Remove.
7110 (arm_find_mapping_symbol): Adjust to section_maps type change.
7111 (arm_objfile_data_free): Call delete on arm_per_objfile.
7112 (arm_record_special_symbol): Adjust to section_maps type change.
7113 Allocate arm_per_objfile with new.
7114
7115 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7116
7117 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7118 with the command prefix.
7119
7120 2019-06-25 Tom Tromey <tom@tromey.com>
7121
7122 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7123 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7124
7125 2019-06-25 Tom Tromey <tom@tromey.com>
7126
7127 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7128 type.
7129 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7130 protected.
7131
7132 2019-06-25 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui-winsource.c
7135 (tui_source_window_base::set_is_exec_point_at): Add check against
7136 LOA_ADDRESS.
7137
7138 2019-06-25 Tom Tromey <tom@tromey.com>
7139
7140 * tui/tui-source.c (tui_set_source_content): Don't check before
7141 xfree.
7142 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7143
7144 2019-06-25 Tom Tromey <tom@tromey.com>
7145
7146 * tui/tui-winsource.h (tui_update_source_window_as_is)
7147 (tui_alloc_source_buffer, tui_line_is_displayed)
7148 (tui_addr_is_displayed): Change type of win_info.
7149 * tui/tui-winsource.c (tui_update_source_window_as_is)
7150 (tui_clear_source_content, tui_show_source_line)
7151 (tui_show_source_content, tui_source_window_base::refill)
7152 (tui_source_window_base::set_is_exec_point_at)
7153 (tui_source_window_base::set_is_exec_point_at)
7154 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7155 (tui_alloc_source_buffer, tui_line_is_displayed)
7156 (tui_addr_is_displayed): Change type of win_info. Update.
7157 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7158 (tui_source_window_base::do_make_visible_with_new_height):
7159 Update.
7160 * tui/tui-source.c (tui_set_source_content)
7161 (tui_set_source_content_nil)
7162 (tui_source_window::do_scroll_vertical): Update.
7163 * tui/tui-layout.c (show_layout): Update.
7164 * tui/tui-disasm.c (tui_set_disassem_content)
7165 (tui_disasm_window::do_scroll_vertical): Update.
7166 * tui/tui-data.h (tui_win_content): Remove.
7167 (struct tui_gen_win_info) <content, content_size>: Remove.
7168 (struct tui_source_element): Add initializers and destructor.
7169 (union tui_which_element, struct tui_win_element): Remove.
7170 (struct tui_source_window_base) <content>: New field.
7171 (struct tui_data_window): Remove destructor.
7172 (tui_alloc_content, tui_free_win_content)
7173 (tui_free_all_source_wins_content): Don't declare.
7174 * tui/tui-data.c (tui_initialize_static_data): Update.
7175 (init_content_element, tui_alloc_content): Remove.
7176 (~tui_gen_win_info): Update.
7177 (~tui_data_window, tui_free_all_source_wins_content)
7178 (tui_free_win_content, free_content, free_content_elements):
7179 Remove.
7180
7181 2019-06-25 Tom Tromey <tom@tromey.com>
7182
7183 * tui/tui-winsource.h (tui_clear_source_content)
7184 (tui_erase_source_content, tui_show_source_content): Change type
7185 of win_info.
7186 * tui/tui-winsource.c (tui_clear_source_content)
7187 (tui_erase_source_content, tui_show_source_content): Change type
7188 of win_info.
7189 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7190 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7191 win_info.
7192 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7193 win_info.
7194 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7195
7196 2019-06-25 Tom Tromey <tom@tromey.com>
7197
7198 * tui/tui-winsource.c (tui_clear_source_content)
7199 (tui_source_window_base::set_is_exec_point_at): Update.
7200 * tui/tui-source.c (tui_set_source_content_nil): Update.
7201 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7202 a bool.
7203 * tui/tui-data.c (init_content_element): Update.
7204
7205 2019-06-25 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7208 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7209 * tui/tui-layout.c (init_and_make_win): Update.
7210 * tui/tui.h (enum tui_win_type): Update.
7211 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7212 tui_win_is_auxillary.
7213 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7214 tui_win_is_auxillary.
7215
7216 2019-06-25 Tom Tromey <tom@tromey.com>
7217
7218 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7219 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7220 (tui_delete_data_content_windows, tui_display_all_data)
7221 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7222 Update.
7223 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7224 * tui/tui-regs.c (tui_last_regs_line_no)
7225 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7226 (tui_show_registers): Update.
7227 (tui_show_register_group): Return void. Update.
7228 (tui_display_registers_from, tui_display_reg_element_at_line)
7229 (tui_display_registers_from_line, tui_check_register_values):
7230 Update.
7231 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7232 member.
7233 (struct tui_data_window) <regs_content>: Now a std::vector.
7234 <regs_content_count>: Remove.
7235 (tui_add_content_elements, tui_free_data_content): Don't declare.
7236 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7237 (init_content_element): Remove DATA_WIN case. Add assert.
7238 (tui_add_content_elements): Remove.
7239 (tui_data_window): Update.
7240 (tui_free_data_content): Remove.
7241 (free_content_elements): Remove DATA_WIN case.
7242
7243 2019-06-25 Tom Tromey <tom@tromey.com>
7244
7245 * tui/tui-data.c (tui_data_item_window): Update.
7246 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7247 * tui/tui-windata.c (tui_display_all_data)
7248 (tui_display_data_from_line): Update.
7249 (tui_check_data_values): Remove.
7250 * tui/tui-regs.c (tui_show_register_group)
7251 (tui_display_reg_element_at_line): Update.
7252 * tui/tui-hooks.c (tui_register_changed)
7253 (tui_refresh_frame_and_register_information): Call
7254 tui_check_register_values.
7255 * tui/tui-data.h (struct tui_data_window) <data_content,
7256 data_content_count, data_type>: Remove.
7257 (enum tui_data_type): Remove.
7258
7259 * tui/tui-data.c (tui_data_window::clear_detail)
7260 (~tui_data_window): Update.
7261
7262 2019-06-25 Tom Tromey <tom@tromey.com>
7263
7264 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7265 declare.
7266 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7267 Rename from tui_first_data_item_displayed. Update.
7268 (tui_data_window::refresh_all)
7269 (tui_data_window::do_scroll_vertical): Update.
7270 * tui/tui-data.h (struct tui_data_window)
7271 <first_data_item_displayed>: Declare new method.
7272
7273 2019-06-25 Tom Tromey <tom@tromey.com>
7274
7275 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7276 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7277 contents...
7278 (tui_initialize_static_data): ...here.
7279
7280 2019-06-25 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7283 (tui_display_registers_from, tui_check_register_values): Update.
7284 (tui_display_register): Remove win_info parameter; update.
7285 (tui_get_register): Change type of parameters.
7286 * tui/tui-data.h (struct tui_data_element): Remove.
7287 (union tui_which_element) <data>: Remove.
7288 <data_window>: Change type.
7289 (struct tui_data_item_window): New.
7290 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7291 case. Add assert.
7292 (~tui_data_item_window): New destructor.
7293 (free_content_elements): Remove DATA_ITEM_WIN case.
7294
7295 2019-06-25 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7298 Remove.
7299
7300 2019-06-25 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-data.h (struct tui_command_element): Remove.
7303 (union tui_which_element) <command>: Remove.
7304 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7305 assert.
7306 (free_content_elements): Remove CMD_WIN case.
7307
7308 2019-06-25 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-layout.c (tui_set_layout): Update.
7311 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7312 * tui/tui-data.c (layout_def): Update.
7313
7314 2019-06-25 Tom Tromey <tom@tromey.com>
7315
7316 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7317 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7318 (tui_source_window_base::set_new_height): Update.
7319 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7320 Update.
7321 (tui_set_locator_fullname, tui_set_locator_info)
7322 (tui_show_frame_info): Update.
7323 * tui/tui-source.c (tui_set_source_content)
7324 (tui_source_is_displayed): Update.
7325 * tui/tui-layout.c (show_source_disasm_command, show_data)
7326 (show_source_or_disasm_and_command): Update.
7327 * tui/tui-disasm.c (tui_set_disassem_content)
7328 (tui_get_begin_asm_address): Update.
7329 * tui/tui-data.h (struct tui_locator_element): Remove.
7330 (union tui_which_element) <locator>: Remove.
7331 (struct tui_locator_window): New.
7332 (tui_locator_win_info_ptr): Change return type.
7333 * tui/tui-data.c (_locator): Change type.
7334 (tui_locator_win_info_ptr): Change return type.
7335 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7336 (tui_alloc_content): Add assert.
7337
7338 2019-06-25 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-winsource.c
7341 (tui_exec_info_window::maybe_allocate_content): New method.
7342 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7343 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7344 (make_source_or_disasm_window): Add cast.
7345 * tui/tui-data.h (union tui_which_element) <simple_string>:
7346 Remove.
7347 (struct tui_source_info): New.
7348 (struct tui_source_window_base) <execution_info>: Change type.
7349 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7350 case, and add assert.
7351 (tui_alloc_content): Add assert.
7352
7353 2019-06-25 Tom Tromey <tom@tromey.com>
7354
7355 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7356 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7357 * tui/tui-data.c (tui_alloc_win_info): Remove.
7358
7359 2019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7362 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7363 can_highlight.
7364
7365 2019-06-25 Tom Tromey <tom@tromey.com>
7366
7367 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7368 make_visible_with_new_height method.
7369 (tui_win_info::make_visible_with_new_height): New method.
7370 (tui_source_window_base::do_make_visible_with_new_height)
7371 (tui_data_window::do_make_visible_with_new_height)
7372 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7373 (make_visible_with_new_height): Remove.
7374 (tui_resize_all, tui_adjust_win_heights): Use
7375 make_visible_with_new_height method.
7376 * tui/tui-data.h (struct tui_win_info)
7377 <do_make_visible_with_new_height, make_visible_with_new_height>:
7378 New methods.
7379 (struct tui_source_window_base, struct tui_data_window)
7380 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7381 methods.
7382
7383 2019-06-25 Tom Tromey <tom@tromey.com>
7384
7385 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7386 method.
7387 (update_tab_width): Call update_tab_width method.
7388 * tui/tui-data.h (struct tui_win_info)
7389 (struct tui_source_window_base) <update_tab_width>: New methods.
7390
7391 2019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7394 parameter.
7395 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7396 parameter.
7397 (tui_gen_win_info::make_visible): Update.
7398 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7399 parameter.
7400 * tui/tui-data.h (enum tui_box): New enum.
7401 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7402
7403 2019-06-25 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7406 init_and_make_win for EXEC_INFO_WIN.
7407 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7408 longer inline.
7409 (struct tui_win_info) <~tui_win_info>: Inline.
7410 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7411 Don't declare.
7412 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7413 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7414 Remove.
7415 (tui_initialize_static_data): Update.
7416 (~tui_gen_win_info): Handle more cleanup here.
7417 (~tui_source_window_base): Delete "execution_info".
7418 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7419
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-layout.c (make_command_window): Don't set
7423 can_highlight.
7424 (show_source_disasm_command): Call the reset method.
7425 (show_data): Don't set can_highlight. Call the reset method.
7426 (tui_gen_win_info::reset): Rename from init_gen_win_info
7427 (init_and_make_win): Simplify. Return tui_gen_win_info.
7428 (show_source_or_disasm_and_command): Call the reset method.
7429 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7430 (struct tui_cmd_window): Set can_highlight.
7431
7432 2019-06-25 Tom Tromey <tom@tromey.com>
7433
7434 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7435 from make_visible.
7436 (tui_make_visible, tui_make_invisible): Rewrite.
7437 (tui_win_info::make_visible): Remove.
7438 (tui_source_window_base::make_visible): Update.
7439 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7440 method. Moved from...
7441 (struct tui_win_info) <make_visible>: ...here.
7442
7443 2019-06-25 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-winsource.c
7446 (tui_source_window_base::do_scroll_horizontal): Remove direction
7447 parameter.
7448 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7449 direction parameter.
7450 * tui/tui-win.c (tui_win_info::forward_scroll)
7451 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7452 (tui_win_info::right_scroll): Update.
7453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7454 direction parameter.
7455 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7456 direction parameter.
7457 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7458 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7459 Remove direction parameter.
7460 (struct tui_source_window_base, struct tui_source_window)
7461 (struct tui_disasm_window, struct tui_data_window)
7462 (struct tui_cmd_window): Update.
7463
7464 2019-06-25 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-winsource.h (tui_set_exec_info_content)
7467 (tui_show_exec_info_content, tui_erase_exec_info_content)
7468 (tui_clear_exec_info_content, tui_update_exec_info): Change
7469 argument to tui_source_window_base.
7470 * tui/tui-winsource.c (tui_set_exec_info_content)
7471 (tui_show_exec_info_content, tui_erase_exec_info_content)
7472 (tui_clear_exec_info_content, tui_update_exec_info): Change
7473 argument to tui_source_window_base.
7474
7475 2019-06-25 Tom Tromey <tom@tromey.com>
7476
7477 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7478 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7479
7480 2019-06-25 Tom Tromey <tom@tromey.com>
7481
7482 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7483 check.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7488 type to void.
7489 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7490 type to void.
7491 * tui/tui-source.c (tui_set_source_content): Update.
7492 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7493
7494 2019-06-25 Tom Tromey <tom@tromey.com>
7495
7496 * tui/tui-win.c (window_name_completer, tui_set_focus)
7497 (tui_all_windows_info): Use name method.
7498 * tui/tui-data.h (struct tui_gen_win_info)
7499 (struct tui_source_window, struct tui_disasm_window)
7500 (struct tui_data_window, struct tui_cmd_window) <name>: New
7501 method.
7502 (tui_win_name): Don't declare.
7503 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7504 (tui_win_name): Remove.
7505
7506 2019-06-25 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui-winsource.h (tui_update_source_window)
7509 (tui_update_source_window_as_is): Change parameter type.
7510 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7511 to be a tui_source_window_base.
7512 (tui_update_source_window_as_is): Likewise.
7513 * tui/tui-win.c (make_visible_with_new_height): Update.
7514
7515 2019-06-25 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-winsource.c (tui_erase_source_content)
7518 (tui_show_source_content, tui_show_exec_info_content)
7519 (tui_erase_exec_info_content): Use refresh_window method.
7520 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7521 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7522 from tui_refresh_win.
7523 (tui_data_window::refresh_window): New method.
7524 (tui_win_info::refresh, tui_source_window_base::refresh)
7525 (tui_refresh_all): Use refresh_window method.
7526 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7527 method.
7528 * tui/tui-regs.c (tui_display_register): Call refresh_window
7529 method.
7530 * tui/tui-layout.c (show_source_disasm_command)
7531 (show_source_or_disasm_and_command): Call refresh_window method.
7532 * tui/tui-data.h (struct tui_gen_win_info)
7533 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7534 New method.
7535
7536 2019-06-25 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui.c (tui_rl_other_window, tui_enable)
7539 (tui_is_window_visible, tui_get_command_dimension): Update.
7540 * tui/tui-winsource.c (tui_update_source_window_as_is)
7541 (tui_clear_source_content, tui_erase_source_content)
7542 (tui_show_source_line, tui_source_window_base::refill)
7543 (tui_source_window_base::do_scroll_horizontal)
7544 (tui_source_window_base::set_is_exec_point_at)
7545 (tui_update_breakpoint_info, tui_set_exec_info_content)
7546 (tui_alloc_source_buffer, tui_line_is_displayed)
7547 (tui_addr_is_displayed): Update.
7548 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7549 (tui_check_and_display_highlight_if_needed)
7550 (tui_win_info::make_visible, tui_win_info::refresh)
7551 (tui_refresh_all): Update.
7552 * tui/tui-windata.c (tui_first_data_item_displayed)
7553 (tui_delete_data_content_windows, tui_erase_data_content)
7554 (tui_display_all_data, tui_data_window::refresh_all)
7555 (tui_check_data_values): Update.
7556 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7557 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7558 (tui_win_info::backward_scroll, tui_refresh_all_win)
7559 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7560 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7561 (tui_source_window_base::set_new_height)
7562 (tui_data_window::set_new_height)
7563 (make_invisible_and_set_new_height)
7564 (make_visible_with_new_height, new_height_ok)
7565 (parse_scrolling_args): Update.
7566 * tui/tui-stack.c (tui_show_frame_info): Update.
7567 * tui/tui-source.c (tui_set_source_content)
7568 (tui_set_source_content_nil, tui_source_is_displayed)
7569 (tui_source_window::do_scroll_vertical): Update.
7570 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7571 (tui_display_registers_from, tui_display_reg_element_at_line)
7572 (tui_check_register_values, tui_reg_command): Update.
7573 * tui/tui-layout.c (tui_default_win_height)
7574 (show_source_disasm_command, show_data, init_and_make_win)
7575 (show_source_or_disasm_and_command): Update.
7576 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7577 (tui_redisplay_readline, tui_mld_flush)
7578 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7579 (tui_getc): Update.
7580 * tui/tui-disasm.c (tui_set_disassem_content)
7581 (tui_disasm_window::do_scroll_vertical): Update.
7582 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7583 Now virtual.
7584 (struct tui_win_info): Derive from tui_gen_win_info.
7585 <~tui_win_info>: Mark as override.
7586 <generic>: Remove member.
7587 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7588 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7589 (~tui_data_window, ~tui_win_info)
7590 (tui_free_all_source_wins_content): Update.
7591 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7592
7593 2019-06-25 Tom Tromey <tom@tromey.com>
7594
7595 * tui/tui-layout.c (init_and_make_win): Use new.
7596 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7597 destructor, initializers.
7598 (tui_alloc_generic_win_info): Don't declare.
7599 * tui/tui-data.c (_locator): Add argument to constructor.
7600 (source_win, disasm_win): New globals.
7601 (exec_info): Remove.
7602 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7603 Update.
7604 (tui_alloc_generic_win_info): Remove.
7605 (init_content_element): Use new.
7606 (tui_win_info::tui_win_info): Update.
7607 (free_content_elements) <case DATA_WIN>: Use delete.
7608
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7612 * tui/tui-windata.c (tui_first_data_item_displayed)
7613 (tui_delete_data_content_windows): Update.
7614 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7615 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7616 (tui_display_registers_from, tui_check_register_values): Update.
7617 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7618 pointer.
7619 * tui/tui-data.c (init_content_element): Update. Allocate the new
7620 window.
7621 (tui_free_data_content): Update.
7622 (free_content_elements) <case DATA_WIN>: Free the window.
7623
7624 2019-06-25 Tom Tromey <tom@tromey.com>
7625
7626 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7627 Update.
7628 * tui/tui-layout.c (make_command_window)
7629 (show_source_disasm_command, show_data, init_and_make_win)
7630 (show_source_or_disasm_and_command): Update.
7631 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7632 method.
7633 <can_highight, is_highlighted>: Now bool.
7634 (tui_set_win_highlight): Don't declare.
7635 * tui/tui-data.c (tui_set_win_highlight): Remove.
7636
7637 2019-06-25 Tom Tromey <tom@tromey.com>
7638
7639 * tui/tui-wingeneral.c (make_visible): Remove check of window
7640 type.
7641
7642 2019-06-25 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-win.c (tui_win_info::max_height)
7645 (tui_cmd_window::max_height): New methods.
7646 (new_height_ok): Call max_height.
7647 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7648 <max_height>: New method.
7649
7650 2019-06-25 Tom Tromey <tom@tromey.com>
7651
7652 * tui/tui-win.c (tui_source_window_base::set_new_height)
7653 (tui_data_window::set_new_height): New methods.
7654 (make_invisible_and_set_new_height): Call set_new_height method.
7655 * tui/tui-data.h (struct tui_win_info)
7656 (struct tui_source_window_base, struct tui_data_window)
7657 <set_new_height>: New method.
7658
7659 2019-06-25 Tom Tromey <tom@tromey.com>
7660
7661 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7662 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7663 tui_refresh_data_win.
7664 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7665 method.
7666 (tui_refresh_all_win): Call the refresh_all method.
7667 (tui_set_focus): Likewise.
7668 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7669 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7670 Likewise.
7671
7672 2019-06-25 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-winsource.h (tui_refill_source_window)
7675 (tui_set_is_exec_point_at): Don't declare.
7676 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7677 (tui_source_window_base::refill): Rename from
7678 tui_refill_source_window.
7679 (tui_source_window_base::do_scroll_horizontal): Update.
7680 (tui_source_window_base::set_is_exec_point_at): Rename from
7681 tui_set_is_exec_point_at.
7682 (tui_update_all_breakpoint_info): Update.
7683 * tui/tui-stack.c (tui_show_frame_info): Update.
7684 * tui/tui-layout.c (show_data): Add cast.
7685 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7686 * tui/tui-data.h (struct tui_source_window_base) <refill,
7687 set_is_exec_point_at>: New methods.
7688 (tui_source_windows, tui_add_to_source_windows): Update types.
7689 (tui_add_to_source_windows): Remove redundant declaration.
7690 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7691 (tui_source_windows): Change return type.
7692 (tui_clear_source_windows_detail): Update.
7693 (tui_add_to_source_windows): Change type of parameter.
7694 (tui_free_all_source_wins_content): Update.
7695
7696 2019-06-25 Tom Tromey <tom@tromey.com>
7697
7698 * tui/tui-wingeneral.c (tui_win_info::refresh)
7699 (tui_source_window_base::refresh): New methods.
7700 (tui_refresh_all): Call the refresh method.
7701 * tui/tui-data.h (struct tui_win_info)
7702 (struct tui_source_window_base) <refresh>: New method.
7703
7704 2019-06-25 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui.h (tui_is_window_visible): Return bool.
7707 * tui/tui.c (tui_is_window_visible): Return bool.
7708 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7709 (tui_make_visible, tui_make_invisible)
7710 (tui_win_info::make_visible)
7711 (tui_source_window_base::make_visible, make_all_visible)
7712 (tui_make_all_visible, tui_make_all_invisible): Update.
7713 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7714 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7715 bool.
7716 (struct tui_win_info, struct tui_source_window_base)
7717 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7718 * tui/tui-data.c (tui_init_generic_part): Update.
7719
7720 2019-06-25 Tom Tromey <tom@tromey.com>
7721
7722 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7723 (tui_source_window_base::make_visible): New methods.
7724 (make_all_visible): Make method call.
7725 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7726 (struct tui_source_window_base, struct tui_cmd_window): Override
7727 make_visible.
7728 (tui_win_is_source_type): Don't declare.
7729 * tui/tui-data.c (tui_win_is_source_type): Remove.
7730
7731 2019-06-25 Tom Tromey <tom@tromey.com>
7732
7733 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7734 NULL check.
7735
7736 2019-06-25 Tom Tromey <tom@tromey.com>
7737
7738 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7739 Inline constructor. Add initializers for members.
7740 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7741 constructors; now inline in class.
7742
7743 2019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-regs.c (tui_show_registers): Update.
7746 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7747 bool.
7748 * tui/tui-data.c (tui_data_window::clear_detail)
7749 (tui_data_window): Update.
7750
7751 2019-06-25 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-windata.c (tui_display_all_data)
7754 (tui_display_data_from_line, tui_display_data_from)
7755 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7756 Update.
7757 * tui/tui-regs.c (tui_last_regs_line_no)
7758 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7759 (tui_show_registers, tui_show_register_group)
7760 (tui_display_registers_from, tui_display_reg_element_at_line)
7761 (tui_display_registers_from_line, tui_check_register_values)
7762 (tui_reg_next, tui_reg_prev): Update.
7763 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7764 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7765 tui_data_window.
7766 (struct tui_win_info) <detail>: Remove. Add new fields from
7767 tui_data_info.
7768 (TUI_DATA_WIN): Add cast.
7769 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7770 (~tui_data_window): Simplify.
7771
7772 2019-06-25 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-layout.c (show_source_disasm_command)
7775 (show_source_or_disasm_and_command): Update.
7776 * tui/tui-io.c (update_cmdwin_start_line)
7777 (tui_redisplay_readline): Update.
7778 * tui/tui-data.h (struct tui_command_info): Remove.
7779 (struct tui_win_info) <detail>: Remove command_info member.
7780 (struct tui_data_window) <start_line>: New member, from
7781 tui_command_info.
7782 (TUI_CMD_WIN): Add casts.
7783
7784 2019-06-25 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-winsource.c (tui_update_source_window)
7787 (tui_refill_source_window)
7788 (tui_source_window_base::do_scroll_horizontal)
7789 (tui_update_breakpoint_info, tui_set_exec_info_content)
7790 (tui_show_exec_info_content, tui_erase_exec_info_content)
7791 (tui_clear_exec_info_content): Update.
7792 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7793 Update.
7794 * tui/tui-win.c (make_invisible_and_set_new_height)
7795 (make_visible_with_new_height): Update.
7796 * tui/tui-source.c (tui_set_source_content)
7797 (tui_show_symtab_source): Update.
7798 * tui/tui-layout.c (extract_display_start_addr)
7799 (show_source_disasm_command, show_data)
7800 (make_source_or_disasm_window)
7801 (show_source_or_disasm_and_command): Update.
7802 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7803 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7804 "gdbarch".
7805 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7806 to tui_source_window_base.
7807 (struct tui_win_info) <detail>: Remove source_info member.
7808 (struct tui_source_window_base) <has_locator>: Inline.
7809 Move contents from tui_source_info; rename has_locator member to
7810 m_has_locator.
7811 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7812 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7813 header file.
7814 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7815 Simplify.
7816 (tui_free_all_source_wins_content): Cast to
7817 tui_source_window_base.
7818
7819 2019-06-25 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-win.c (make_invisible_and_set_new_height)
7822 (make_visible_with_new_height): Call has_locator method.
7823 * tui/tui-layout.c (show_source_disasm_command, show_data)
7824 (show_source_or_disasm_and_command): Update for bool change.
7825 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7826 (tui_win_info) <has_locator>: New method.
7827 (struct tui_source_window_base) <has_locator>: New method.
7828 (tui_win_has_locator): Don't declare.
7829 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7830 from tui_win_has_locator.
7831 (tui_source_window_base): Use false, not FALSE.
7832
7833 2019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7836 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7837 clear_detail method directly.
7838 (tui_clear_win_detail): Remove.
7839
7840 2019-06-25 Tom Tromey <tom@tromey.com>
7841
7842 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7843 "this", not TUI_DISASM_WIN.
7844
7845 2019-06-25 Tom Tromey <tom@tromey.com>
7846
7847 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7848 declare.
7849 * tui/tui-winsource.c
7850 (tui_source_window_base::do_scroll_horizontal): Rename from
7851 tui_horizontal_source_scroll.
7852 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7853 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7854 from tui_vertical_data_scroll.
7855 * tui/tui-win.h (tui_scroll): Don't declare.
7856 * tui/tui-win.c (tui_win_info::forward_scroll)
7857 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7858 (tui_win_info::right_scroll): Rename and update.
7859 (tui_scroll_forward_command, tui_scroll_backward_command)
7860 (tui_scroll_left_command, tui_scroll_right_command): Update.
7861 (tui_scroll): Remove.
7862 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7863 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7864 from tui_vertical_source_scroll.
7865 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7866 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7867 from tui_vertical_disassem_scroll.
7868 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7869 do_scroll_horizontal>: New methods.
7870 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7871 Likewise.
7872 (struct tui_source_window_base): Add do_scroll_horizontal.
7873 (struct tui_source_window, struct tui_disasm_window): Add
7874 do_scroll_vertical.
7875 (struct tui_data_window, struct tui_cmd_window): Add
7876 do_scroll_horizontal and do_scroll_vertical.
7877 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7878
7879 2019-06-25 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-data.h (struct tui_source_window_base): New struct.
7882 (struct tui_source_window): Derive from tui_source_window_base.
7883 (struct tui_disasm_window): New struct.
7884 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7885 from tui_source_window::clear_detail.
7886 (tui_source_window_base): Rename from tui_source_window.
7887 (~tui_source_window_base): Rename from ~tui_source_window.
7888 (tui_alloc_win_info): Create a tui_disasm_window.
7889
7890 2019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-data.h (struct tui_source_window)
7893 (struct tui_data_window): Declare destructors.
7894 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7895 destructors.
7896 (tui_win_info): Simplify.
7897
7898 2019-06-25 Tom Tromey <tom@tromey.com>
7899
7900 * tui/tui-winsource.c (tui_display_main)
7901 (tui_update_source_windows_with_addr)
7902 (tui_update_all_breakpoint_info): Update.
7903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7904 (new_height_ok, parse_scrolling_args): Update.
7905 * tui/tui-stack.c (tui_show_frame_info): Update.
7906 * tui/tui-data.h (struct tui_list): Remove.
7907 (tui_source_windows): Return a reference to a std::vector.
7908 * tui/tui-data.c (source_windows): Now a std::vector.
7909 (tui_source_windows): Change return type.
7910 (tui_clear_source_windows): Rewrite.
7911 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7912 (tui_free_all_source_wins_content): Rewrite.
7913
7914 2019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7917 (struct tui_data_window, struct tui_cmd_window): Declare
7918 clear_detail method.
7919 * tui/tui-data.c (tui_source_window::clear_detail)
7920 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7921 methods.
7922 (tui_clear_win_detail): Simplify.
7923
7924 2019-06-25 Tom Tromey <tom@tromey.com>
7925
7926 * tui/tui-layout.c (make_source_window, make_disasm_window)
7927 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7928 Return the new window.
7929 (show_source_disasm_command, show_data)
7930 (show_source_or_disasm_and_command): Update.
7931
7932 2019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7935 parameter. Return the new window.
7936 (show_source_disasm_command): Update and remove NULL check.
7937 (show_source_or_disasm_and_command): Update.
7938
7939 2019-06-25 Tom Tromey <tom@tromey.com>
7940
7941 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7942
7943 2019-06-25 Tom Tromey <tom@tromey.com>
7944
7945 * tui/tui-data.h (struct tui_win_info): Make constructor
7946 protected. Make destructor virtual. Add initializers.
7947 (tui_source_window, tui_data_window, tui_cmd_window): New
7948 classes.
7949 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7950 constructor. Add "type" parameter.
7951 (tui_source_window, tui_data_window, tui_cmd_window): New
7952 constructors.
7953 (tui_alloc_win_info): Instantiate the appropriate subclass.
7954
7955 2019-06-25 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-win.c (tui_resize_all): Use delete.
7958 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7959 destructor.
7960 (tui_free_window): Don't declare.
7961 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7962 Update.
7963
7964 2019-06-25 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-data.h (struct tui_win_info): Add constructor.
7967 * tui/tui-data.c (tui_alloc_win_info): Use new.
7968 (tui_free_window): Use delete.
7969
7970 2019-06-22 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7973 declare.
7974 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7975
7976 2019-06-22 Tom Tromey <tom@tromey.com>
7977
7978 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7979 declare.
7980 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7981
7982 2019-06-22 Tom de Vries <tdevries@suse.de>
7983
7984 * dwarf2read.c (create_addrmap_from_aranges)
7985 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7986 instead of '%zu'.
7987
7988 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * dwarf2read.h (dwarf2_section_info_def): Remove.
7991 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7992 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7993 std::vector<dwarf2_section_info>.
7994 (struct dwo_file) <~dwo_file>: Remove.
7995 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7996 types field.
7997 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7998 (dwarf2_read_debug_names): Likewise.
7999 (create_debug_types_hash_table): Change parameter type to
8000 array_view, adjust code accordingly.
8001 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8002 (partial_die_info::fixup): Likewise.
8003 (determine_prefix): Likewise.
8004 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8005
8006 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8007
8008 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8009 gdb_bfd_ref_ptr.
8010 <~dwo_file>: Remove call to gdb_bfd_unref.
8011 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8012 gdb_bfd_ref_ptr::get.
8013
8014 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8015
8016 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8017 type to htab_up.
8018 * dwarf2read.c (struct dwo_file): Initialize fields.
8019 <~dwo_file>: New.
8020 (free_dwo_file): Remove, move content to ~dwo_file.
8021 (struct dwo_file_deleter): Remove.
8022 (dwo_file_up>: Remove custom deleter.
8023 (free_dwo_files): Remove.
8024 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8025 dwo_files.
8026 (process_skeletonless_type_units): Call unique_ptr::get.
8027 (allocate_dwo_file_hash_table): Add deleter to created hash
8028 table. Change return type to htab_up.
8029 (lookup_dwo_file_slot): Don't memset dwo_file, call
8030 unique_ptr::get.
8031 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8032 (create_dwo_unit_in_dwp_v2): Likewise.
8033 (open_and_init_dwo_file): Likewise.
8034 (free_dwo_file_from_slot): Remove.
8035
8036 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8037
8038 * dwarf2read.h (struct dwarf2_section_info) <readin,
8039 is_virtual>: Change type to bool.
8040 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8041 true instead of 1.
8042
8043 2019-06-19 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-data.h (tui_init_content_element): Don't declare.
8046
8047 2019-06-19 Tom Tromey <tom@tromey.com>
8048
8049 * tui/tui-data.h (tui_init_win_info): Don't declare.
8050
8051 2019-06-19 Tom de Vries <tdevries@suse.de>
8052
8053 * dwarf2read.h (abstract_to_concrete): Change type to
8054 std::unordered_map<sect_offset, std::vector<sect_offset>,
8055 gdb::hash_enum<sect_offset>>.
8056
8057 2019-06-19 Tom Tromey <tromey@adacore.com>
8058
8059 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8060 EVAL_AVOID_SIDE_EFFECTS specially.
8061
8062 2019-06-19 Tom Tromey <tromey@adacore.com>
8063
8064 * source-cache.c (highlighter): New global.
8065 (source_cache::get_source_lines): Create a highlighter on demand.
8066
8067 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8068
8069 * defs.h (deprecated_interactive_hook): Delete declaration.
8070 * interps.c (clear_interpreter_hooks): Remove use of
8071 deprecated_interactive_hook.
8072 * top.c (deprecated_interactive_hook): Delete definition.
8073 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8074
8075 2019-06-18 Tom de Vries <tdevries@suse.de>
8076
8077 PR gdb/24515
8078 * dwarf2read.h (abstract_to_concrete): Change type from
8079 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8080 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8081 * dwarf2read.c (read_variable): Update.
8082 (dwarf2_fetch_die_loc_sect_off): Update.
8083
8084 2019-06-17 Tom de Vries <tdevries@suse.de>
8085
8086 PR gdb/24617
8087 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8088 accessing parent[parent_len - 1].
8089
8090 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8091
8092 PR gdb/24364
8093 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8094 call dtrace_process_dof with NULL dof.
8095
8096 2019-06-16 Tom de Vries <tdevries@suse.de>
8097
8098 PR gdb/24445
8099 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8100
8101 2019-06-16 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8104 (make_all_visible): Use address of member.
8105
8106 2019-06-16 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8109 (tui_free_window, free_content, free_content_elements): Remove
8110 unnecessary cast.
8111 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8112 cast.
8113 * tui/tui-regs.c (tui_show_register_group)
8114 (tui_display_registers_from, tui_display_reg_element_at_line):
8115 Remove unnecessary cast.
8116
8117 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * linux-nat.c (normal_mask): Delete.
8120 (_initialize_linux_nat): Don't initialise normal_mask.
8121
8122 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8123
8124 PR gdb/24445
8125 * dwarf-index-write.h (write_psymtabs_to_index): Add
8126 dwz_basename parameter.
8127 * dwarf-index-write.c (write_gdbindex): Move file writing to
8128 write_gdbindex_1. Change return type void.
8129 (assert_file_size): Move up, remove filename parameter.
8130 (write_gdbindex_1): New function.
8131 (write_debug_names): Change return type to void, call
8132 assert_file_size.
8133 (struct index_wip_file): New struct.
8134 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8135 file logic to index_wip_file. Write index for dwz file if
8136 needed.
8137 (save_gdb_index_command): Pass basename of dwz file, if present.
8138 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8139 build-id of dwz file, if present.
8140 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8141 (dwarf2_get_dwz_file): Likewise.
8142 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8143 (dwarf2_get_dwz_file): Likewise.
8144
8145 2019-06-16 Tom Tromey <tom@tromey.com>
8146
8147 * coffread.c (process_coff_symbol): Use xstrdup.
8148 * value.c (create_internalvar): Use xstrdup.
8149
8150 2019-06-16 Tom Tromey <tom@tromey.com>
8151
8152 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8153 * breakpoint.c (stopin_command, stopat_command)
8154 (until_break_command, decode_location_default): Remove unnecessary
8155 cast.
8156 * utils.c (subset_compare): Remove unnecessary cast.
8157 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8158 cast.
8159 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8160 cast.
8161 * infcmd.c (path_command): Remove unnecessary cast.
8162 * coffread.c (decode_type): Remove unnecessary cast.
8163 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8164 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8165 * tui/tui-stack.c (tui_show_locator_content)
8166 (tui_show_frame_info): Remove unnecessary cast.
8167 * tui/tui-win.c (tui_scroll_forward_command)
8168 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8169 (parse_scrolling_args): Remove unnecessary cast.
8170 * tui/tui-data.c (init_win_info, tui_del_window)
8171 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8172 (free_content_elements): Remove unnecessary cast.
8173 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8174 unnecessary cast.
8175 * tui/tui-source.c (tui_set_source_content)
8176 (tui_vertical_source_scroll): Remove unnecessary cast.
8177 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8178 cast.
8179 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8180 * tui/tui-regs.c (tui_display_registers_from)
8181 (tui_display_register): Remove unnecessary cast.
8182 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8183 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8184 (make_visible): Remove unnecessary cast.
8185 * tui/tui-winsource.c (tui_erase_source_content)
8186 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8187 unnecessary cast.
8188 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8189 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8190 * stabsread.c (read_type, read_array_type, read_range_type):
8191 Remove unnecessary cast.
8192 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8193 (parse_symbol, parse_type, upgrade_type, parse_external)
8194 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8195 unnecessary cast.
8196 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8197
8198 2019-06-16 Tom Tromey <tom@tromey.com>
8199
8200 * tui/tui-data.c (tui_alloc_generic_win_info)
8201 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8202 checks.
8203
8204 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8205 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * f-typeprint.c (f_print_type): Don't return early for not
8208 associated or not allocated types.
8209 (f_type_print_varspec_suffix): Add print_rank parameter and print
8210 ranks of array types in case they dangling.
8211 (f_type_print_base): Add print_rank parameter.
8212
8213 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * NEWS: Mention new MI commands.
8216 * break-catch-throw.c (enum exception_event_kind): Move to
8217 breakpoint.h.
8218 (print_mention_exception_catchpoint): Output text as a single
8219 message.
8220 (catch_exception_command_1): Rename to...
8221 (catch_exception_event): ...this, make non-static, update header
8222 command, and change some parameter types.
8223 (catch_catch_command): Update for changes to
8224 catch_exception_command_1.
8225 (catch_throw_command): Likewise.
8226 (catch_rethrow_command): Likewise.
8227 * breakpoint.c (enum exception_event_kind): Delete.
8228 * breakpoint.h (enum exception_event_kind): Moved here from
8229 break-catch-throw.c.
8230 (catch_exception_event): Declare.
8231 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8232 (mi_cmd_catch_throw): New function.
8233 (mi_cmd_catch_rethrow): New function.
8234 (mi_cmd_catch_catch): New function.
8235 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8236 'catch-catch' entries.
8237 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8238 (mi_cmd_catch_rethrow): Declare.
8239 (mi_cmd_catch_catch): Declare.
8240
8241 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8242
8243 * annotate.c (annotate_source_line): Change return type to void,
8244 update implementation to match.
8245 * annotate.h (annotate_source_line): Change return type to void,
8246 update header comment.
8247 * stack.c (print_frame_info): Don't change what frame information
8248 is printed based on whether annotations are on or not.
8249
8250 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8253 (annotate_source): Make static.
8254 (annotate_source_line): Moved from source.c and renamed from
8255 identify_source_line. Update the return type.
8256 * annotate.h (annotate_source): Delete declaration.
8257 (annotate_source_line): Declaration moved from source.h, and
8258 renamed from identify_source_line. Return type updated.
8259 * source.c (identify_source_line): Moved to annotate.c and renamed
8260 to annotate_source_line.
8261 (info_line_command): Remove check of annotation_level.
8262 * source.h (identify_source_line): Move declaration to annotate.h
8263 and rename to annotate_source_line.
8264 * stack.c: Add 'annotate.h' include.
8265 (print_frame_info): Remove check of annotation_level before
8266 calling annotate_source_line.
8267
8268 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8269
8270 * source-cache.c (source_cache::get_plain_source_lines): Use
8271 open_source_file_with_line_charpos instead of just
8272 open_source_file, remove call to find_source_lines.
8273 (source_cache::get_source_lines): Likewise.
8274 * source.c (find_source_lines): Make static.
8275 (get_filename_and_charpos): Renamed into...
8276 (open_source_file_with_line_charpos): ..this along with changes to
8277 return a scoped_fd, and some other minor clean ups.
8278 (identify_source_line): Use open_source_file_with_line_charpos.
8279 (search_command_helper): Use open_source_file_with_line_charpos
8280 instead of just open_source_file, remove call to
8281 find_source_lines.
8282 * source.h (open_source_file_with_line_charpos): Declare new
8283 function.
8284 (find_source_lines): Delete declaration.
8285
8286 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8287
8288 * source.c (get_filename_and_charpos): Remove fullname
8289 parameter.
8290 (identify_source_line): Update call to get_filename_and_charpos.
8291
8292 2019-06-14 Tom Tromey <tromey@adacore.com>
8293
8294 PR gdb/24502:
8295 * ui-style.h (skip_ansi_escape): Update comment.
8296 * ui-file.h (class no_terminal_escape_file): New class.
8297 * ui-file.c (no_terminal_escape_file::write)
8298 (no_terminal_escape_file::puts): New methods.
8299 * cli/cli-logging.c (handle_redirections): Use
8300 no_terminal_escape_file.
8301
8302 2019-06-14 Tom Tromey <tromey@adacore.com>
8303
8304 * NEWS: Move convenience variable news above Python news.
8305
8306 2019-06-14 Tom Tromey <tom@tromey.com>
8307
8308 * gnulib: Move directory to top-level.
8309 * configure.ac: Don't configure gnulib.
8310 * configure: Rebuild.
8311 * common/common-defs.h: Use new path to gnulib.
8312 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8313 (GNULIB_H): Remove.
8314 (INCGNU): Look in new gnulib location.
8315 (HFILES_NO_SRCDIR): Remove gnulib files.
8316 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8317 (generated_files): Remove GNULIB_H.
8318 ($(LIBGNU), all-lib): Remove targets.
8319 (distclean): Don't mention GNULIB_BUILDDIR.
8320 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8321
8322 2019-06-14 Tom Tromey <tromey@adacore.com>
8323
8324 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8325 Warn if symbol file does not provide any symbols.
8326
8327 2019-06-14 Tom Tromey <tromey@adacore.com>
8328
8329 * source.c (find_and_open_source): Respect basenames_may_differ.
8330
8331 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 * annotate.c (annotate_breakpoints_invalid): Make use of
8334 scoped_restore_terminal_state.
8335 (annotate_frames_invalid): Likewise.
8336
8337 2019-06-14 Tom Tromey <tromey@adacore.com>
8338
8339 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8340 allow assignment to an internalvar.
8341
8342 2019-06-14 Tom Tromey <tromey@adacore.com>
8343
8344 * ada-lex.l: Allow "_" in attribute names.
8345
8346 2019-06-14 Tom Tromey <tromey@adacore.com>
8347
8348 PR gdb/24653:
8349 * regcache.c (registers_changed): Don't call alloca.
8350 * top.c (execute_command): Don't call alloca.
8351
8352 2019-06-13 Pedro Alves <palves@redhat.com>
8353
8354 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8355 'expression'. When parsing an expression, error out if there's
8356 junk after "unlimited".
8357 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8358 (do_set_command): Adjust calls to is_unlimited_literal.
8359
8360 2019-06-13 Pedro Alves <palves@redhat.com>
8361
8362 * compile/compile.c (make_compile_options_def_group): Add braces
8363 around array_view initializer.
8364 * thread.c (make_thread_apply_all_options_def_group)
8365 (make_thread_apply_all_options_def_group): Likewise.
8366
8367 2019-06-13 Pedro Alves <palves@redhat.com>
8368
8369 * NEWS (New commands): Mention "maint test-options
8370 require-delimiter", "maint test-options unknown-is-error", "maint
8371 test-options unknown-is-operand" and "maint show
8372 test-options-completion-result".
8373 (New command options, command completion): New section.
8374 (Completion improvements): New section.
8375 Mention that you can abbreviate "unlimited".
8376
8377 2019-06-13 Pedro Alves <palves@redhat.com>
8378
8379 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8380 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8381 * unittests/cli-utils-selftests.c (test_parse_flags)
8382 (test_parse_flags_qcs): Delete.
8383 (test_cli_utils): Don't call deleted functions.
8384
8385 2019-06-13 Pedro Alves <palves@redhat.com>
8386
8387 * thread.c: Include "cli/cli-option.h".
8388 (tp_array_compar_ascending): Global.
8389 (tp_array_compar): Delete function.
8390 (tp_array_compar_ascending, tp_array_compar_descending): New
8391 functions.
8392 (ascending_option_def, qcs_flag_option_def)
8393 (thr_qcs_flags_option_defs)
8394 (make_thread_apply_all_options_def_group)
8395 (make_thread_apply_options_def_group): New.
8396 (thread_apply_all_command): Use gdb::option::process_options.
8397 (thread_apply_command_completer)
8398 (thread_apply_all_command_completer): New.
8399 (thread_apply_command): Use gdb::option::process_options.
8400 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8401 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8402 to generate help text of "thread apply". Adjust "taas"'s help.
8403 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8404 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8405
8406 2019-06-13 Pedro Alves <palves@redhat.com>
8407
8408 * thread.c (thread_apply_command): Check for invalid TID with
8409 isdigit instead of !isalpha.
8410
8411 2019-06-13 Pedro Alves <palves@redhat.com>
8412
8413 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8414 (validate_flags_qcs): New.
8415 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8416 (validate_flags_qcs): Declare.
8417 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8418 (make_frame_apply_options_def_group): New.
8419 (frame_apply_command_count): Process options with
8420 gdb::option::process_options.
8421 (frame_apply_completer): New.
8422 (frame_apply_level_completer, frame_apply_all_completer)
8423 (frame_apply_completer): New.
8424 (_initialize_stack): Update help of "frame apply", "frame apply
8425 level", "frame apply all" and "faas" to mention supported options
8426 and install command completers.
8427 * stack.h (frame_apply_all_completer): Declare.
8428 * thread.c: Include "stack.h".
8429 (tfaas_command): Add "--".
8430 (_initialize_thread): Update help "tfaas" to mention supported
8431 options and install command completer.
8432
8433 2019-06-13 Pedro Alves <palves@redhat.com>
8434
8435 * completer.c (complete_nested_command_line): New.
8436 (gdb_completion_word_break_characters_throw): Add assertion.
8437 * completer.h (complete_nested_command_line): Declare.
8438
8439 2019-06-13 Pedro Alves <palves@redhat.com>
8440
8441 * stack.c (parse_backtrace_qualifiers): New.
8442 (backtrace_command): Use it.
8443 (backtrace_command_completer): Complete on qualifiers.
8444
8445 2019-06-13 Pedro Alves <palves@redhat.com>
8446
8447 * frame.c: Include "cli/cli-option.h.
8448 (user_set_backtrace_options): New.
8449 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8450 Delete.
8451 (get_prev_frame): Adjust.
8452 (boolean_option_def, uinteger_option_def)
8453 (set_backtrace_option_defs): New.
8454 (_initialize_frame): Adjust and use
8455 gdb::option::add_setshow_cmds_for_options to install "set
8456 backtrace past-main" and "set backtrace past-entry".
8457 * frame.h: Include "cli/cli-option.h".
8458 (struct frame_print_options): Forward declare.
8459 (print_frame_arguments_all, print_frame_arguments_scalars)
8460 (print_frame_arguments_none): Declare.
8461 (print_entry_values): Delete declaration.
8462 (struct frame_print_options, user_frame_print_options): New.
8463 (struct set_backtrace_options): New.
8464 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8465 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8466 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8467 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8468 (list_args_or_locals): Add frame_print_options parameter.
8469 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8470 * python/py-framefilter.c (enumerate_args): Pass down
8471 USER_FRAME_PRINT_OPTIONS.
8472 * stack.c: Include "cli/cli-option.h".
8473 (print_frame_arguments_all, print_frame_arguments_scalars)
8474 (print_frame_arguments_none): Declare.
8475 (print_raw_frame_arguments, print_entry_values): Delete.
8476 (user_frame_print_options): New.
8477 (boolean_option_def, enum_option_def, frame_print_option_defs):
8478 New.
8479 (struct backtrace_cmd_options): New.
8480 (bt_flag_option_def): New.
8481 (backtrace_command_option_defs): New.
8482 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8483 (print_frame_arg, read_frame_arg, print_frame_args)
8484 (print_frame_info, print_frame): Add frame_print_options parameter
8485 and use it.
8486 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8487 (backtrace_command_1): Add frame_print_options and
8488 backtrace_cmd_options parameters and use them.
8489 (make_backtrace_options_def_group): New.
8490 (backtrace_command): Process command options with
8491 gdb::option::process_options.
8492 (backtrace_command_completer): New.
8493 (_initialize_stack): Extend "backtrace"'s help to mention
8494 supported options. Install completer for "backtrace".
8495 Install some settings commands with add_setshow_cmds_for_options.
8496
8497 2019-06-13 Pedro Alves <palves@redhat.com>
8498
8499 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8500 and that "set/show print raw frame-arguments" are now deprecated.
8501
8502 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8503 command.
8504 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8505 * stack.c (_initialize_stack): Install "set/show print
8506 raw-frame-arguments", and deprecate "set/show print raw
8507 frame-arguments".
8508 * valprint.c (_initialize_valprint): Deprecate "set/show print
8509 raw".
8510
8511 2019-06-13 Pedro Alves <palves@redhat.com>
8512
8513 * compile/compile.c (struct compile_options): New.
8514 (compile_flag_option_def, compile_command_option_defs)
8515 (make_compile_options_def_group): New.
8516 (compile_file_command): Handle options with
8517 gdb::option::process_options.
8518 (compile_file_command_completer): New function.
8519 (compile_code_command): Handle options with
8520 gdb::option::process_options.
8521 (compile_code_command_completer): New function.
8522 (_initialize_compiler): Install completers for "compile code" and
8523 "compile file". Mention available options in "compile code" and
8524 "compile code"'s help.
8525 * completer.c (advance_to_completion_word): New, factored out from
8526 ...
8527 (advance_to_expression_complete_word_point): ... this.
8528 (advance_to_filename_complete_word_point): New.
8529 * completer.h (advance_to_filename_complete_word_point): New
8530 declaration.
8531
8532 2019-06-13 Pedro Alves <palves@redhat.com>
8533
8534 * compile/compile.c: Include "cli/cli-option.h".
8535 (compile_print_value): Scope data pointer is now a
8536 value_print_options pointer; adjust.
8537 (compile_print_command): Process options. Scope data pointer is
8538 now a value_print_options pointer; adjust.
8539 (_initialize_compile): Update "compile print"'s help to include
8540 supported options. Install a completer for "compile print".
8541 * cp-valprint.c (show_vtblprint, show_objectprint)
8542 (show_static_field_print): Delete.
8543 (_initialize_cp_valprint): Don't install "set print
8544 static-members", "set print vtbl", "set print object" here.
8545 * printcmd.c: Include "cli/cli-option.h" and
8546 "common/gdb_optional.h".
8547 (print_command_parse_format): Rework to fill in a
8548 value_print_options instead of a format_data.
8549 (print_value): Change parameter type from format_data pointer to
8550 value_print_options reference. Adjust.
8551 (print_command_1): Process options. Adjust to pass down a
8552 value_print_options.
8553 (print_command_completer): New.
8554 (_initialize_printcmd): Install print_command_completer as
8555 handle_brkchars completer for the "print" command. Update
8556 "print"'s help to include supported options.
8557 * valprint.c: Include "cli/cli-option.h".
8558 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8559 here from cp-valprint.c.
8560 (boolean_option_def, uinteger_option_def)
8561 (value_print_option_defs, make_value_print_options_def_group):
8562 New. Use gdb::option::add_setshow_cmds_for_options to install
8563 "set print elements", "set print null-stop", "set print repeats",
8564 "set print pretty", "set print union", "set print array", "set
8565 print address", "set print symbol", "set print array-indexes".
8566 * valprint.h: Include <string> and "cli/cli-option.h".
8567 (make_value_print_options_def_group): Declare.
8568 (print_value): Change parameter type from format_data pointer to
8569 value_print_options reference.
8570 (print_command_completer): Declare.
8571
8572 2019-06-13 Pedro Alves <palves@redhat.com>
8573
8574 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8575 (COMMON_SFILES): Add maint-test-settings.c.
8576 * cli/cli-decode.c (boolean_enums): New global, factored out from
8577 ...
8578 (add_setshow_boolean_cmd): ... here.
8579 * cli/cli-decode.h (boolean_enums): Declare.
8580 * cli/cli-option.c: New file.
8581 * cli/cli-option.h: New file.
8582 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8583 factored out from ...
8584 (parse_cli_boolean_value(const char *)): ... this.
8585 (is_unlimited_literal): Change parameter type to pointer to
8586 pointer. Adjust and advance ARG pointer.
8587 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8588 (parse_cli_var_enum): New, factored out from ...
8589 (do_set_command): ... this. Adjust.
8590 * cli/cli-setshow.h (parse_cli_boolean_value)
8591 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8592 (parse_cli_var_enum): Declare.
8593 * cli/cli-utils.c: Include "cli/cli-option.h".
8594 (get_ulongest): New.
8595 * cli/cli-utils.h (get_ulongest): Declare.
8596 (check_for_argument): New overloads.
8597 * maint-test-options.c: New file.
8598
8599 2019-06-13 Pedro Alves <palves@redhat.com>
8600
8601 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8602 parse a range if "-" is at the end of the string.
8603
8604 2019-06-13 Pedro Alves <palves@redhat.com>
8605
8606 * cli/cli-setshow.c (parse_auto_binary_operation)
8607 (parse_cli_boolean_value): Don't allow "o".
8608
8609 2019-06-13 Pedro Alves <palves@redhat.com>
8610
8611 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8612 * NEWS: Mention maint test-settings KIND.
8613 * maint-test-settings.c: New file.
8614
8615 2019-06-13 Pedro Alves <palves@redhat.com>
8616
8617 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8618 completer.
8619 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8620 "set" completers.
8621
8622 2019-06-13 Pedro Alves <palves@redhat.com>
8623
8624 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8625 after item.
8626
8627 2019-06-13 Pedro Alves <palves@redhat.com>
8628
8629 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8630
8631 2019-06-13 Pedro Alves <palves@redhat.com>
8632
8633 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8634 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8635 call.
8636 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8637 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8638 calls.
8639 (check_for_argument): Skip spaces after argument.
8640
8641 2019-06-13 Pedro Alves <palves@redhat.com>
8642
8643 * thread.c (thread_apply_command): Adjust TID parsing.
8644 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8645 detected before end of string.
8646 (tid_is_in_list): Error out if LIST is invalid.
8647
8648 2019-06-13 Pedro Alves <palves@redhat.com>
8649
8650 * completer.c (complete_line_internal_1): Rewind completion word
8651 point.
8652 (completion_tracker::advance_custom_word_point_by): Change
8653 parameter type to int.
8654 * completer.h (completion_tracker::advance_custom_word_point_by):
8655 Likewise.
8656
8657 2019-06-13 Pedro Alves <palves@redhat.com>
8658
8659 * completer.c (advance_to_completion_word): Handle delimiters.
8660
8661 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8662
8663 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8664
8665 2019-06-11 Tom Tromey <tom@tromey.com>
8666
8667 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8668 (xmalloc_failed): Move to alloc.c.
8669 * alloc.c: New file.
8670 * Makefile.in (COMMON_SFILES): Add alloc.c.
8671
8672 2019-06-11 Tom Tromey <tom@tromey.com>
8673
8674 * nat/linux-waitpid.c: Don't include server.h.
8675 (linux_debug): Remove.
8676 (my_waitpid): Update.
8677
8678 2019-06-11 Tom Tromey <tromey@adacore.com>
8679
8680 * infcall.c (_initialize_infcall): Remove trailing newline from
8681 help.
8682 * user-regs.c (_initialize_user_regs): Remove trailing newline
8683 from help.
8684 * typeprint.c (_initialize_typeprint): Remove trailing newline
8685 from help.
8686 * reverse.c (_initialize_reverse): Remove trailing newlines from
8687 help.
8688 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8689 from help.
8690 * language.c (add_set_language_command): Remove trailing newline
8691 from help.
8692 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8693 help.
8694 * disasm.c (_initialize_disasm): Remove trailing newline from
8695 help.
8696 * top.c (init_main): Remove trailing newline from help.
8697 * interps.c (_initialize_interpreter): Remove trailing newline
8698 from help.
8699 * btrace.c (_initialize_btrace): Remove trailing newlines from
8700 help.
8701 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8702 from help.
8703 * python/python.c (_initialize_python): Remove trailing newline
8704 from help.
8705 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8706 help.
8707 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8708 from help. Reformat some text.
8709 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8710 from help.
8711 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8712 newline from help.
8713
8714 2019-06-11 Tom Tromey <tromey@adacore.com>
8715
8716 * darwin-nat.c (darwin_decode_exception_message)
8717 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8718
8719 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * valops.c (value_slice): Check for not allocated or not
8722 associated values.
8723
8724 2019-06-10 Tom de Vries <tdevries@suse.de>
8725
8726 PR gdb/24618
8727 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8728 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8729 invalid.
8730
8731 2019-06-10 Tom de Vries <tdevries@suse.de>
8732
8733 PR gdb/24611
8734 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8735 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8736
8737 2019-06-10 Tom de Vries <tdevries@suse.de>
8738
8739 PR symtab/24545
8740 * symtab.c (struct demangled_name_entry): Add language field.
8741 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8742 static minimal symbol". Set and use language field.
8743
8744 2019-06-10 Tom Tromey <tromey@adacore.com>
8745
8746 * ada-lang.c (_initialize_ada_language): Update help text.
8747
8748 2019-06-10 Tom Tromey <tromey@adacore.com>
8749
8750 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8751 with a newline.
8752 * guile/guile.c (handle_boot_error): Don't end warning with a
8753 newline.
8754 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8755 warning with a newline.
8756 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8757 newline.
8758 (s12z_frame_cache): Likewise.
8759 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8760 a newline.
8761 * solib-svr4.c (disable_probes_interface): Don't end warning with
8762 a newline.
8763 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8764 newline.
8765 * python/python.c (do_finish_initialization): Don't end warning
8766 with a newline.
8767
8768 2019-06-10 Tom Tromey <tom@tromey.com>
8769
8770 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8771 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8772 gdbpy_enter.
8773
8774 2019-06-10 Tom Tromey <tromey@adacore.com>
8775
8776 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8777 data.
8778 (elf_new_init): Don't call stabsread_new_init.
8779 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8780 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8781 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8782
8783 2019-06-10 Tom de Vries <tdevries@suse.de>
8784
8785 PR symtab/16264
8786 PR symtab/24517
8787 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8788
8789 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8790
8791 * source.c (find_and_open_source): Also rewrite relative file
8792 names.
8793
8794 2019-04-26 Amos Bird <amosbird@gmail.com>
8795
8796 * annotate.c (annotate_thread_exited): Add "thread-exited"
8797 annotation.
8798
8799 2019-06-06 Tom Tromey <tromey@adacore.com>
8800
8801 * maint.h (class scoped_command_stats): Use
8802 DISABLE_COPY_AND_ASSIGN.
8803 <print_time>: New method.
8804 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8805 print_time.
8806 (scoped_command_stats::print_time): New method.
8807
8808 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8811 instructions of lengths 6 or 8 bytes.
8812
8813 2019-06-04 Pedro Alves <palves@redhat.com>
8814
8815 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8816
8817 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8818 * breakpoint.c (condition_completer): Likewise.
8819 * cli/cli-dump.c (scan_expression): Likewise.
8820 * common/filestuff.c (mkdir_recursive): Likewise.
8821 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8822 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8823 (gdb_abspath): Likewise.
8824 * compile/compile-cplus-types.c
8825 (compile_cplus_instance::decl_name): Likewise.
8826 * completer.c (complete_explicit_location):
8827 (signal_completer, reg_or_group_completer_1): Likewise.
8828 * cp-support.c (cp_remove_params_if_any): Likewise.
8829 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8830 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8831 * infcmd.c (strip_bg_char): Likewise.
8832 * linespec.c (copy_token_string): Likewise.
8833 * mi/mi-main.c (output_cores): Likewise.
8834 * psymtab.c (psymtab_search_name):
8835 * symfile.c (test_set_ext_lang_command): Likewise.
8836 * target.c (target_fileio_read_stralloc): Likewise.
8837 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8838 * value.c (complete_internalvar): Likewise.
8839
8840 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8841
8842 Add objfile property to gdb.Type.
8843 * NEWS: Mention Python API addition.
8844 * python/py-type.c (typy_get_objfile): New method.
8845
8846 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8847
8848 * NEWS: Mention the new set|show style [title|highlight].
8849 Mention changes to "show style", "help" and "apropos".
8850
8851 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8852
8853 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8854 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8855 instead of print_help_for_command.
8856 (print_doc_of_command): New function.
8857 (help_list): Add 'apropos -v word' suggestion.
8858 (print_help_for_command): Style the command name using title style.
8859 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8860 (_initialize_cli_cmds): Describe -v in apropos_command help.
8861
8862 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8863
8864 * cli/cli-style.h (cli_style_option): Add name in constructor,
8865 add m_name class member, add constructor with intensity,
8866 add name class function.
8867 (cli_style_option::add_setshow_commands): Remove name argument.
8868 (highlight_style, title_style): New styles.
8869 * cli/cli-style.c (do_show): New function that shows a style
8870 characteristic styling the style name with itself.
8871 (set_style_name): New function.
8872 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8873 Update all callers according to the changes in cli/cli-style.h.
8874 * utils.h (fputs_highlighted): New function.
8875 * utils.c (fputs_highlighted): Likewise.
8876
8877 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8878
8879 * NEWS: Mention new pipe command and new convenience variables.
8880
8881 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8882
8883 * cli/cli-cmds.c (pipe_command): New function.
8884 (_initialize_cli_cmds): Call add_com for pipe_command.
8885 Define | as an alias for pipe.
8886 (exit_status_set_internal_vars): New function.
8887 (shell_escape): Call exit_status_set_internal_vars.
8888 cli/cli-decode.c (find_command_name_length): Recognize | as
8889 a single character command.
8890
8891 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8892
8893 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8894 top.c (execute_command_to_ui_file): New function, mostly a copy
8895 of execute_command_to_string.
8896 (execute_command_to_string): Implement by calling
8897 execute_command_to_ui_file.
8898
8899 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8900
8901 * top.h (saved_command_line): Remove declaration.
8902 * top.c (previous_saved_command_line, previous_repeat_arguments):
8903 New variables.
8904 (saved_command_line): Make static, define together with other
8905 'repeat variables'.
8906 (dont_repeat): Clear repeat_arguments.
8907 (repeat_previous, get_saved_command_line, save_command_line):
8908 New functions.
8909 (gdb_init): Initialize saved_command_line
8910 and previous_saved_command_line.
8911 * main.c (captured_main_1): Remove saved_command_line initialization.
8912 * event-top.c (handle_line_of_input): Update to use
8913 the new 'repeat' related functions instead of direct access to
8914 saved_command_line.
8915 * command.h (repeat_previous, get_saved_command_line,
8916 save_command_line): New declarations.
8917 (dont_repeat): Add comment.
8918
8919 2019-05-30 Tom Tromey <tromey@adacore.com>
8920
8921 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8922 Fix comment.
8923 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8924
8925 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8926
8927 PR cli/24587
8928 * completer.c (complete): Initialize variable word.
8929
8930 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8931
8932 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8933 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8934 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8935 'body' is NULL to the outter 'if', protecting the '!is_define'
8936 situation as well.
8937
8938 2019-05-29 Tom Tromey <tromey@adacore.com>
8939
8940 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8941 (dwarf_unknown): New function.
8942 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8943 (dwarf_type_encoding_name): Use dwarf_unknown.
8944
8945 2019-05-29 Tom Tromey <tromey@adacore.com>
8946
8947 PR c++/20020:
8948 * cp-valprint.c (cp_print_value_fields): Call
8949 cp_print_static_field inside "try".
8950
8951 2019-05-29 Tom Tromey <tromey@adacore.com>
8952
8953 * inflow.c (struct terminal_info): Add default operator=.
8954 * configure: Rebuild.
8955 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8956 -Wdeprecated-copy-dtor, -Wredundant-move.
8957
8958 2019-05-29 Tom Tromey <tromey@adacore.com>
8959
8960 * NEWS: Add entry.
8961 * infcmd.c (print_return_value_1): Handle finish_print
8962 option.
8963 (show_print_finish): New function.
8964 (_initialize_infcmd): Add "set/show print finish" commands.
8965 * valprint.c (user_print_options): Initialize new member.
8966 * valprint.h (struct value_print_options) <finish_print>: New
8967 member.
8968
8969 2019-05-28 Tom Tromey <tromey@adacore.com>
8970
8971 * ada-lang.c (ada_remove_Xbn_suffix)
8972 (find_old_style_renaming_symbol)
8973 (parse_old_style_renaming): Remove.
8974 (ada_find_renaming_symbol): Don't call
8975 find_old_style_renaming_symbol.
8976 (ada_is_renaming_symbol): Rename from
8977 ada_find_renaming_symbol. Remove "block" parameter. Return
8978 bool. Now static.
8979 (ada_read_var_value): Update and simplify.
8980 * ada-exp.y (write_var_or_type): Remove old code.
8981
8982 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8983
8984 PR gdb/25010
8985 * event-top.c: Remove include comment.
8986 * inflow.c (class scoped_ignore_sigttou): Move from here...
8987 * inflow.h (class scoped_ignore_sigttou): ...to here.
8988 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8989 * top.c: Remove include comment.
8990
8991 2019-05-27 Tom Tromey <tom@tromey.com>
8992
8993 * NEWS: Fix typo.
8994
8995 2019-05-22 Tom Tromey <tromey@adacore.com>
8996
8997 * target.c (target_follow_exec): Constify parameter.
8998 * target-delegates.c: Rebuild.
8999 * remote.c (remote_target::follow_exec): Constify parameter.
9000 * infrun.c (follow_exec): Constify parameter.
9001 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9002 (target_follow_exec): Likewise.
9003
9004 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9005
9006 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9007 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9008
9009 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9010
9011 * NEWS: Add debugredirect and testsuite sections.
9012
9013 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9014
9015 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9016 target descriptions using exclusively floating point register name
9017 aliases.
9018
9019 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9020
9021 PR gdb/18644:
9022 * f-lang.c (build_fortran_types): Handle the case where
9023 gdbarch_floatformat_for_type returns a nullptr.
9024
9025 2019-05-21 Tom de Vries <tdevries@suse.de>
9026
9027 PR cli/24587
9028 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9029
9030 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 PR gdb/18644:
9033 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9034 16-byte floats.
9035 * i386-tdep.c (i386_floatformat_for_type): Use
9036 floatformats_ia64_quad for the 16-byte floating point component
9037 within a fortran 32-byte complex number.
9038
9039 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9042 delete default constructor.
9043 (find_partial_die): Update to return const struct.
9044 (partial_die_parent_scope): Move variable declaration into scope
9045 of its use and change its type to auto.
9046 (guess_partial_die_structure_name): Likewise.
9047 (partial_die_info::fixup): Likewise.
9048
9049 2019-05-17 Tom Tromey <tromey@adacore.com>
9050
9051 * source.c (find_and_open_source): Remove cast.
9052
9053 2019-05-17 Tom Tromey <tromey@adacore.com>
9054
9055 * annotate.c (annotate_source): Make "filename" const.
9056 * annotate.h (annotate_source): Use const.
9057
9058 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9059
9060 * disasm.c (set_disassembler_options): Send errors to stderr.
9061
9062 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9063
9064 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9065 (cli_interp_base::set_logging): Check debug_redirect.
9066 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9067 * cli/cli-logging.c (debug_redirect): Add static variable.
9068 (pop_output_files): Add default param.
9069 (handle_redirections): Print debug setting.
9070 (show_logging_command): Likewise.
9071 (_initialize_cli_logging): Add debugredirect command.
9072 * interps.c (current_interp_set_logging): Add debug_redirect
9073 parameter.
9074 * interps.h (set_logging): Add debug_redirect parameter.
9075 (current_interp_set_logging): Likewise.
9076 * mi/mi-common.h: Likewise.
9077 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9078
9079 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9080 Tom Tromey <tromey@adacore.com>
9081
9082 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9083 directly.
9084 * cli/cli-interp.h (make_logging_output): Remove declaration.
9085 * cli/cli-logging.c (make_logging_output): Remove function.
9086 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9087 directly.
9088 * ui-file.c (tee_file::tee_file): Remove bools.
9089 (tee_file::~tee_file): Remove deletes.
9090 * ui-file.h (tee_file): Remove bools.
9091
9092 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9093
9094 * mi/mi-cmds.h (mi_cmd_complete): New function.
9095 * mi/mi-main.c (mi_cmd_complete): Likewise.
9096 * mi/mi-cmds.c: Define new MI command -complete.
9097 * NEWS: Mention new -complete command.
9098
9099 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9100
9101 * completer.h (complete): New function.
9102 * completer.c (complete): Likewise.
9103 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9104 function defined in completer.h.
9105
9106 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9107
9108 * MAINTAINERS (Write After Approval): Add myself.
9109
9110 2019-05-17 Tom de Vries <tdevries@suse.de>
9111
9112 PR gdb/24094
9113 * dwarf2read.c (struct cu_partial_die_info): New struct.
9114 (find_partial_die): Return cu_partial_die_info.
9115 (partial_die_parent_scope, guess_partial_die_structure_name)
9116 (partial_die_info::fixup): Handle new return type of find_partial_die.
9117
9118 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9119
9120 PR breakpoints/24541
9121 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9122 "std::string", simplifying the algorithm.
9123
9124 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9125
9126 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9127 (stap_static_probe_ops::get_probes): Likewise.
9128
9129 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9130
9131 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9132 '-')" and "else if".
9133 (stap_parse_single_operand): Join checks for
9134 "gdbarch_stap_parse_special_token_p" and
9135 "gdbarch_stap_parse_special_token" in the same "if" statement.
9136 Invert check when verifying for operation on register
9137 displacement.
9138
9139 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9140
9141 * stap-probe.c (stap_get_opcode): Update comment.
9142 (stap_get_expected_argument_type): Likewise.
9143 (handle_stap_probe): Likewise.
9144
9145 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9146
9147 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9148 return type to 'bool'. Adjust comment. Use 'bool' when
9149 appropriate.
9150 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9151 * stap-probe.c (stap_parse_argument_1): Likewise.
9152 (stap_is_operator): Likewise.
9153 (stap_is_generic_prefix): Likewise.
9154 (stap_is_register_prefix): Likewise.
9155 (stap_is_register_indirection_prefix): Likewise.
9156 (stap_is_integer_prefix): Likewise.
9157 (stap_generic_check_suffix): Likewise.
9158 (stap_check_integer_suffix): Likewise.
9159 (stap_check_register_suffix): Likewise.
9160 (stap_check_register_indirection_suffix): Likewise.
9161 (stap_parse_register_operand): Likewise.
9162 (stap_parse_single_operand): Likewise.
9163 (stap_parse_argument_1): Likewise.
9164 (stap_probe::get_argument_count): Likewise.
9165 (stap_is_operator): Likewise.
9166
9167 2019-05-16 Tom Tromey <tromey@adacore.com>
9168
9169 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9170 keyword to foreach.
9171
9172 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * linux-thread-db.c (try_thread_db_load_1): Change return type
9175 to bool.
9176 (try_thread_db_load): Likewise.
9177 (try_thread_db_load_from_pdir_1): Likewise.
9178 (try_thread_db_load_from_pdir): Likewise.
9179 (try_thread_db_load_from_sdir): Likewise.
9180 (try_thread_db_load_from_dir): Likewise.
9181 (thread_db_load_search): Likewise.
9182 (has_libpthread): Likewise.
9183 (thread_db_load): Likewise.
9184
9185 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9186
9187 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9188 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9189 NULL, and complain/return if that's the case.
9190
9191 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9192
9193 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9194 (advance, posn, abstract_read_memory): New functions.
9195 [struct mem_read_abstraction]: New struct.
9196 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9197
9198 2019-05-14 Tom Tromey <tromey@adacore.com>
9199
9200 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9201 value is not lval_memory.
9202
9203 2019-05-14 Tom Tromey <tromey@adacore.com>
9204
9205 * solib.c (info_sharedlibrary_command): Style the file name.
9206
9207 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9208
9209 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9210 (aarch64_vnv_type): Likewise.
9211 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9212 * common/tdesc.c: Likewise.
9213 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9214 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9215 * features/aarch64-fpu.xml: Add ieee half view.
9216 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9217 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9218 * gdbtypes.h (struct builtin_type): Likewise.
9219 (struct objfile_type): Likewise.
9220
9221 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9222
9223 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9224 typo.
9225 * location.h (string_to_event_location): Likewise.
9226
9227 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9228
9229 GDB 8.3 released.
9230
9231 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9234 New variable declaration.
9235 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9236 New variable.
9237 (print_one_breakpoint): Use ui_out::test_flags and new global
9238 variable to compute use_fixed_output.
9239 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9240 Remove.
9241 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9242 (mi_multi_location_breakpoint_output_fixed): Remove.
9243 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9244 new variable.
9245 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9246 fix_multi_location_breakpoint_output flag if version >= 3.
9247 * ui-out.h (enum ui_out_flag)
9248 <fix_multi_location_breakpoint_output>: New enumerator.
9249
9250 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9253
9254 2019-05-10 Tom Tromey <tromey@adacore.com>
9255
9256 * ada-lang.c (catch_ada_completer): New function.
9257 (_initialize_ada_language): Use it.
9258
9259 2019-05-10 Tom Tromey <tromey@adacore.com>
9260
9261 * thread.c (print_thread_info): Make "requested_threads" const.
9262 * gdbthread.h (print_thread_info): Make "requested_threads"
9263 const.
9264 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9265 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9266
9267 2019-05-08 Tom Tromey <tom@tromey.com>
9268
9269 * gdbtypes.c (objfile_type_data): Change type.
9270 (objfile_type, _initialize_gdbtypes): Update.
9271
9272 2019-05-08 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9275 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9276 (_initialize_dwarf2_frame): Update.
9277
9278 2019-05-08 Tom Tromey <tom@tromey.com>
9279
9280 * objc-lang.c (objc_objfile_data): Change type.
9281 (find_methods): Update.
9282 (_initialize_objc_lang): Remove.
9283
9284 2019-05-08 Tom Tromey <tom@tromey.com>
9285
9286 * stabsread.c (rs6000_builtin_type_data): Change type.
9287 (rs6000_builtin_type, _initialize_stabsread): Update.
9288
9289 2019-05-08 Tom Tromey <tom@tromey.com>
9290
9291 * mips-tdep.c (mips_pdr_data): Remove.
9292 (_initialize_mips_tdep): Update.
9293
9294 2019-05-08 Tom Tromey <tom@tromey.com>
9295
9296 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9297 (hppa_init_objfile_priv_data, read_unwind_info)
9298 (find_unwind_entry, _initialize_hppa_tdep): Update.
9299
9300 2019-05-08 Tom Tromey <tom@tromey.com>
9301
9302 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9303 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9304 on obstack.
9305 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9306
9307 2019-05-08 Tom Tromey <tom@tromey.com>
9308
9309 * mdebugread.c (basic_type_data): Change type.
9310 (basic_type, _initialize_mdebugread): Update.
9311
9312 2019-05-08 Tom Tromey <tom@tromey.com>
9313
9314 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9315
9316 2019-05-08 Tom Tromey <tom@tromey.com>
9317
9318 * nto-tdep.c (nto_inferior_data_reg): Change type.
9319 (nto_inferior_data): Update.
9320 (nto_inferior_data_cleanup, nto_new_inferior_data)
9321 (_initialize_nto_tdep): Remove.
9322 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9323
9324 2019-05-08 Tom Tromey <tom@tromey.com>
9325
9326 * ada-lang.c (struct ada_inferior_data): Add initializers.
9327 (ada_inferior_data): Change type.
9328 (ada_inferior_data_cleanup): Remove.
9329 (get_ada_inferior_data, ada_inferior_exit)
9330 (struct ada_pspace_data): Add initializers, destructor.
9331 (ada_pspace_data_handle): Change type.
9332 (get_ada_pspace_data): Update.
9333 (ada_pspace_data_cleanup): Remove.
9334
9335 2019-05-08 Tom Tromey <tom@tromey.com>
9336
9337 * coffread.c (struct coff_symfile_info): Add initializers.
9338 (coff_objfile_data_key): Move lower. Change type.
9339 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9340 Update.
9341 (coff_free_info): Remove.
9342
9343 2019-05-08 Tom Tromey <tom@tromey.com>
9344
9345 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9346 (fbsd_pspace_data_handle): Move lower. Change type.
9347 (get_fbsd_pspace_data): Update.
9348 (fbsd_pspace_data_cleanup): Remove.
9349 (_initialize_fbsd_tdep): Update.
9350
9351 2019-05-08 Tom Tromey <tom@tromey.com>
9352
9353 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9354 (get_ada_tasks_pspace_data): Update.
9355 (ada_tasks_pspace_data_cleanup): Remove.
9356 (_initialize_tasks): Update.
9357 (ada_tasks_inferior_data_handle): Change type.
9358 (get_ada_tasks_inferior_data): Update.
9359 (ada_tasks_inferior_data_cleanup): Remove.
9360 (struct ada_tasks_pspace_data): Add initializers.
9361
9362 2019-05-08 Tom Tromey <tom@tromey.com>
9363
9364 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9365 * symfile-debug.c (debug_sym_get_probes): Change type.
9366 * stap-probe.c (handle_stap_probe):
9367 (stap_static_probe_ops::get_probes): Change type.
9368 * probe.h (class static_probe_ops) <get_probes>: Change type.
9369 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9370 (parse_probes_in_pspace): Update.
9371 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9372 Update.
9373 (any_static_probe_ops::get_probes): Change type.
9374 * elfread.c (elfread_data): New typedef.
9375 (probe_key): Change type.
9376 (elf_get_probes): Likewise. Update.
9377 (probe_key_free): Remove.
9378 (_initialize_elfread): Update.
9379 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9380 Change type.
9381 (dtrace_process_dof_probe, dtrace_process_dof)
9382 (dtrace_static_probe_ops::get_probe): Change type.
9383
9384 2019-05-08 Tom Tromey <tom@tromey.com>
9385
9386 * xcoffread.c (struct xcoff_symfile_info): Rename from
9387 coff_symfile_info. Add initializers.
9388 (xcoff_objfile_data_key): Move lower. Change type.
9389 (XCOFF_DATA): Rewrite.
9390 (xcoff_free_info): Remove.
9391 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9392 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9393 (xcoff_initial_scan): Update.
9394
9395 2019-05-08 Tom Tromey <tom@tromey.com>
9396
9397 * solib-svr4.c (struct svr4_info): Add initializers and
9398 destructor.
9399 <probes_table>: Now an htab_up.
9400 (solib_svr4_pspace_data): Change type.
9401 (free_probes_table): Simplify.
9402 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9403 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9404 (probes_table_remove_objfile_probes, register_solib_event_probe)
9405 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9406 (_initialize_svr4_solib): Update.
9407
9408 2019-05-08 Tom Tromey <tom@tromey.com>
9409
9410 * remote.c (remote_pspace_data): Change type.
9411 (remote_pspace_data_cleanup): Remove.
9412 (get_remote_exec_file, set_pspace_remote_exec_file)
9413 (_initialize_remote): Update.
9414
9415 2019-05-08 Tom Tromey <tom@tromey.com>
9416
9417 * breakpoint.c (breakpoint_objfile_key): Change type.
9418 (get_breakpoint_objfile_data): Update.
9419 (free_breakpoint_objfile_data): Remove.
9420 (_initialize_breakpoint): Update.
9421
9422 2019-05-08 Tom Tromey <tom@tromey.com>
9423
9424 * linux-tdep.c (struct linux_info): Add initializers.
9425 (linux_inferior_data): Move. Change type.
9426 (invalidate_linux_cache_inf): Update.
9427 (linux_inferior_data_cleanup): Remove.
9428 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9429
9430 2019-05-08 Tom Tromey <tom@tromey.com>
9431
9432 * auxv.c (auxv_inferior_data): Move. Change type.
9433 (auxv_inferior_data_cleanup): Remove.
9434 (invalidate_auxv_cache_inf): Rewrite.
9435 (get_auxv_inferior_data, _initialize_auxv): Update.
9436
9437 2019-05-08 Tom Tromey <tom@tromey.com>
9438
9439 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9440 (symfile_debug_objfile_data_key): Change type.
9441 (symfile_debug_installed, debug_qf_has_symbols)
9442 (debug_qf_find_last_source_symtab)
9443 (debug_qf_forget_cached_source_info)
9444 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9445 (debug_qf_print_stats, debug_qf_dump)
9446 (debug_qf_expand_symtabs_for_function)
9447 (debug_qf_expand_all_symtabs)
9448 (debug_qf_expand_symtabs_with_fullname)
9449 (debug_qf_map_matching_symbols)
9450 (debug_qf_expand_symtabs_matching)
9451 (debug_qf_find_pc_sect_compunit_symtab)
9452 (debug_qf_map_symbol_filenames)
9453 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9454 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9455 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9456 (debug_sym_read_linetable, debug_sym_relocate): Update.
9457 (symfile_debug_free_objfile): Remove.
9458 (install_symfile_debug_logging, _initialize_symfile_debug):
9459 Update.
9460
9461 2019-05-08 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9464 allocate_on_obstack.
9465 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9466 (get_dwarf2_per_objfile): Update.
9467 (set_dwarf2_per_objfile): Remove.
9468 (dwarf2_has_info, dwarf2_get_section_info): Update.
9469 (dwarf2_free_objfile): Remove.
9470 (_initialize_dwarf2_read): Update.
9471
9472 2019-05-08 Tom Tromey <tom@tromey.com>
9473
9474 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9475 initializers.
9476 <unsupported_script_warning_printed,
9477 script_not_found_warning_printed>: Now bool.
9478 (auto_load_pspace_data): Change type.
9479 (~auto_load_pspace_info): Rename from
9480 auto_load_pspace_data_cleanup.
9481 (get_auto_load_pspace_data, init_loaded_scripts_info)
9482 (clear_section_scripts, maybe_print_unsupported_script_warning)
9483 (maybe_print_script_not_found_warning, _initialize_auto_load):
9484 Update.
9485
9486 2019-05-08 Tom Tromey <tom@tromey.com>
9487
9488 * objfiles.c (objfile_pspace_info): Add destructor and
9489 initializers.
9490 (objfiles_pspace_data): Change type.
9491 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9492 (get_objfile_pspace_data): Update.
9493 (objfiles_bfd_data): Change type.
9494 (get_objfile_bfd_data): Update.
9495 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9496
9497 2019-05-08 Tom Tromey <tom@tromey.com>
9498
9499 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9500 Change type.
9501 (get_catch_syscall_inferior_data): Update.
9502 (catch_syscall_inferior_data_cleanup): Remove.
9503 (_initialize_break_catch_syscall): Update.
9504
9505 2019-05-08 Tom Tromey <tom@tromey.com>
9506
9507 * inflow.c (struct terminal_info): Add destructor and
9508 initializers.
9509 (inflow_inferior_data): Change type.
9510 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9511 (get_inflow_inferior_data, inflow_inferior_exit)
9512 (swap_terminal_info, _initialize_inflow): Update.
9513
9514 2019-05-08 Tom Tromey <tom@tromey.com>
9515
9516 * target-dcache.c (target_dcache_cleanup): Remove.
9517 (target_dcache_aspace_key): Change type.
9518 (target_dcache_init_p, target_dcache_invalidate)
9519 (target_dcache_get, target_dcache_get_or_init)
9520 (_initialize_target_dcache): Update.
9521 * dcache.h (struct dcache_deleter): New.
9522
9523 2019-05-08 Tom Tromey <tom@tromey.com>
9524
9525 * symtab.c (struct symbol_cache): Add destructor and
9526 initializers.
9527 (symbol_cache_key): Move. Change type.
9528 (make_symbol_cache, free_symbol_cache): Remove.
9529 (get_symbol_cache): Update.
9530 (symbol_cache_cleanup): Remove.
9531 (ALL_PSPACES, symbol_cache_flush)
9532 (maintenance_print_symbol_cache)
9533 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9534 Update.
9535
9536 2019-05-08 Tom Tromey <tom@tromey.com>
9537
9538 * symtab.c (struct main_info): Add destructor and initializers.
9539 (main_progspace_key): Move. Change type.
9540 (get_main_info): Update.
9541 (main_info_cleanup): Remove.
9542 (_initialize_symtab): Update.
9543
9544 2019-05-08 Tom Tromey <tom@tromey.com>
9545
9546 * registry.h (DECLARE_REGISTRY): Define the _key class.
9547
9548 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * NEWS: Merge two 'New commands' sections.
9551
9552 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9553
9554 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9555 parameter and use Ada language definition instead.
9556 (ada_val_print_ptr): Remove unused language parameter.
9557 (ada_val_print_num): Remove language parameter and use Ada language
9558 definition instead.
9559 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9560 parameter.
9561 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9562 parameter and use Ada language definition instead.
9563 (ada_val_print_1): Update all ada_val_print_xxx calls.
9564 Remove language parameter.
9565 (ada_val_print): Update ada_val_print_1 call.
9566
9567 2019-05-08 Tom Tromey <tromey@adacore.com>
9568
9569 * remote.c (remote_hw_watchpoint_limit)
9570 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9571 Now static.
9572
9573 2019-05-08 Tom Tromey <tromey@adacore.com>
9574
9575 * maint.c (_initialize_maint_cmds): Move initialization code to
9576 remote.c.
9577 (watchdog, show_watchdog): Move to remote.c.
9578 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9579 "watchdog" static.
9580 (_initialize_remote): Move initialization code from maint.c.
9581 * defs.h (watchdog): Don't declare.
9582
9583 2019-05-08 Tom Tromey <tromey@adacore.com>
9584
9585 * tui/tui-interp.c: Include main.h.
9586 * interps.c: Include main.h.
9587 * main.h (interpreter_p): Declare.
9588 * defs.h (interpreter_p): Don't declare.
9589
9590 2019-05-08 Tom Tromey <tromey@adacore.com>
9591
9592 * dwarf2loc.c: Include dwarf2read.h.
9593 * defs.h (read_unsigned_leb128): Don't declare.
9594 * dwarf2read.h (read_unsigned_leb128): Declare.
9595
9596 2019-05-08 Tom Tromey <tromey@adacore.com>
9597
9598 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9599 method.
9600
9601 2019-05-08 Tom Tromey <tromey@adacore.com>
9602
9603 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9604 when no wrap column is set.
9605
9606 2019-05-08 Tom Tromey <tromey@adacore.com>
9607
9608 * c-lang.c (c_get_string): Handle non-C-style arrays.
9609
9610 2019-05-08 Tom Tromey <tromey@adacore.com>
9611
9612 * typeprint.c (print_offset_data::update): Print the bit offset,
9613 not the number of bits remaining.
9614
9615 2019-05-08 Tom Tromey <tromey@adacore.com>
9616
9617 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9618 padding at end of comment.
9619
9620 2019-05-08 Tom Tromey <tromey@adacore.com>
9621
9622 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9623 Compare main types.
9624
9625 2019-05-06 Tom Tromey <tom@tromey.com>
9626
9627 * common/scoped_mmap.c: Include common-defs.h.
9628 * common/scoped_mmap.h: Don't include config.h.
9629
9630 2019-05-04 Tom Tromey <tom@tromey.com>
9631
9632 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9633 (struct aarch64_call_info): Add initializers.
9634 <si>: Now a std::vector.
9635 (pass_on_stack, aarch64_push_dummy_call): Update.
9636
9637 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9638 Tom Tromey <tom@tromey.com>
9639
9640 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9641 (ppc_threads): Now a std::vector. Now static.
9642 (hwdebug_find_thread_points_by_tid)
9643 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9644 Update.
9645
9646 2019-05-04 Tom Tromey <tom@tromey.com>
9647
9648 * arc-tdep.c (arc_tdesc_init): Return bool.
9649
9650 2019-05-04 Tom Tromey <tom@tromey.com>
9651
9652 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9653 Use gdb_assert_not_reached.
9654
9655 2019-05-04 Tom Tromey <tom@tromey.com>
9656
9657 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9658 "false".
9659
9660 2019-05-04 Tom Tromey <tom@tromey.com>
9661
9662 * arc-tdep.c (arc_tdesc_init): Use bool.
9663
9664 2019-05-04 Tom Tromey <tom@tromey.com>
9665
9666 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9667
9668 2019-05-04 Tom Tromey <tom@tromey.com>
9669
9670 * cli/cli-cmds.c (valid_command_p): Return bool.
9671
9672 2019-05-04 Tom Tromey <tom@tromey.com>
9673
9674 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9675 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9676
9677 2019-05-04 Raul Tambre <raul@tambre.ee>
9678
9679 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9680 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9681 operator for comparison.
9682
9683 2019-05-04 Tom Tromey <tom@tromey.com>
9684
9685 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9686 (lookup_partial_symbol, print_partial_symbols)
9687 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9688 (psymbol_compare): Update.
9689 (add_psymbol_to_bcache): Clear the entire psymbol.
9690 (maintenance_check_psymtabs): Update.
9691 * psympriv.h (struct partial_symbol): Don't derive from
9692 general_symbol_info.
9693 <obj_section, unrelocated_address, address,
9694 set_unrelocated_address>: Update.
9695 <ginfo>: New member.
9696 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9697 (debug_names::write_psymbols): Update.
9698
9699 2019-05-04 Tom de Vries <tdevries@suse.de>
9700
9701 * contrib/cc-with-tweaks.sh: Support -n arg.
9702
9703 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9704
9705 * corelow.c (core_target::detach): Ensure frame cache and
9706 register caches are cleared.
9707 inferior.c (exit_inferior_1): Likewise.
9708
9709 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9710 Tom Tromey <tom@tromey.com>
9711
9712 * dictionary.c (collate_pending_symbols_by_language): Remove
9713 "struct" from foreach.
9714 * symtab.c (lookup_global_symbol_from_objfile)
9715 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9716 foreach.
9717 * ser-tcp.c (net_open): Remove "struct" from foreach.
9718 * objfiles.c (objfile_relocate, objfile_rebase)
9719 (objfile_has_symbols): Remove "struct" from foreach.
9720 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9721 from foreach.
9722 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9723 foreach.
9724 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9725 "struct" from foreach.
9726 * ada-lang.c (create_excep_cond_exprs)
9727 (ada_exception_catchpoint_cond_string): Remove "struct" from
9728 foreach.
9729
9730 2019-05-03 Tom Tromey <tromey@adacore.com>
9731
9732 * ada-exp.y (convert_char_literal): Check suffix of each
9733 enumerator.
9734
9735 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9736
9737 PR ada/21406:
9738 * ada-exp.y (yywrap): Don't define.
9739 * ada-lex.l (%option): Add noyywrap
9740 (yywrap): Remove.
9741
9742 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9743
9744 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9745 _WIN32_WINNT to the XP level, unless already defined to a higher
9746 level.
9747
9748 * unittests/parse-connection-spec-selftests.c:
9749 * ser-tcp.c:
9750 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9751 override.
9752
9753 * symfile.c (find_separate_debug_file): Remove colon from the
9754 drive spec of DOS/Windows file names of the target, so that the
9755 file name produced from DEBUGDIR and the target's directory will
9756 be valid on DOS/Windows systems.
9757
9758 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * rust-lang.c (val_print_struct): Handle printing structures
9761 containing strings.
9762
9763 2019-05-02 Tom Tromey <tromey@adacore.com>
9764
9765 * valarith.c (_initialize_valarith): Remove.
9766
9767 2019-05-01 Tom Tromey <tromey@adacore.com>
9768
9769 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9770 bitfields.
9771
9772 2019-05-01 Tom Tromey <tromey@adacore.com>
9773
9774 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9775 for big-endian copies.
9776
9777 2019-04-30 Ali Tamur <tamur@google.com>
9778 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9779 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9780 (read_3_bytes): New function.
9781
9782 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9783
9784 * windows-nat.c (main_thread_id): Delete.
9785 (handle_output_debug_string): Replace main_thread_id by
9786 current_event.dwThreadId.
9787 (fake_create_process): Likewise.
9788 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9789 Do not set main_thread_id.
9790 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9791 current_event.dwThreadId.
9792 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9793
9794 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9795
9796 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9797 Use current_event.dwThreadId instead of main_thread_id.
9798
9799 2019-04-30 Tom Tromey <tromey@adacore.com>
9800
9801 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9802 (create_excep_cond_exprs): Iterate over program spaces.
9803 (ada_exception_catchpoint_cond_string): Examine all minimal
9804 symbols for exception types.
9805
9806 2019-04-30 Tom Tromey <tromey@adacore.com>
9807
9808 PR c++/24470:
9809 * dwarf2read.c (process_structure_scope): Handle case where type
9810 has template parameters but no symbol was created.
9811
9812 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9813 Chris January <chris.january@arm.com>
9814
9815 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9816 qualifier.
9817 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9818
9819 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * f-typeprint.c (f_print_type): Update rules for printing
9822 whitespace.
9823 (f_type_print_varspec_suffix): Likewise.
9824
9825 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9826 Chris January <chris.january@arm.com>
9827
9828 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9829 function arguments.
9830
9831 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9832
9833 * f-lang.c (build_fortran_types): Change name of void type to
9834 lower case.
9835 * f-typeprint.c (f_type_print_base): Print the name of the void
9836 type, rather than a fixed string.
9837 * f-valprint.c (f_decorations): Use lower case void string.
9838
9839 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9840 Chris January <chris.january@arm.com>
9841
9842 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9843 types for Fortran.
9844
9845 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9846 Chris January <chris.january@arm.com>
9847 David Lecomber <david.lecomber@arm.com>
9848
9849 * f-exp.y (BINOP_INTRINSIC): New token.
9850 (exp): New parser rule handling BINOP_INTRINSIC.
9851 (f77_keywords): Add new builtin procedures.
9852 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9853 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9854 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9855 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9856 (print_unop_subexp_f): New function.
9857 (print_binop_subexp_f): New function.
9858 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9859 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9860 (dump_subexp_body_f): Likewise.
9861 (operator_check_f): Likewise.
9862 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9863 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9864
9865 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9866
9867 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9868 UNOP_KIND.
9869 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9870 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9871 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9872 (operator_length_f): New fuction.
9873 (print_subexp_f): New function.
9874 (op_name_f): New function.
9875 (dump_subexp_body_f): New function.
9876 (operator_check_f): New function.
9877 (exp_descriptor_f): Replace standard expression handling functions
9878 with new functions.
9879 * gdb/fortran-operator.def: New file.
9880 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9881 * gdb/std-operator.def: Remove UNOP_KIND.
9882
9883 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 * std-operator.def: Remove unbalanced, stray double quote
9886 character.
9887
9888 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9889 Chris January <chris.january@arm.com>
9890 Daniel Everett <daniel.everett@arm.com>
9891 Nick Forrington <nick.forrington@arm.com>
9892 Richard Bunt <richard.bunt@arm.com>
9893
9894 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9895 of depth when printing anonymous structs or unions.
9896 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9897 Don't print either the top-level value, or the children if the
9898 max-depth is exceeded.
9899 (ppscm_print_children): When printing the key of a map, allow one
9900 extra level of depth.
9901 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9902 print either the top-level value, or the children if the max-depth
9903 is exceeded.
9904 (print_children): When printing the key of a map, allow one extra
9905 level of depth.
9906 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9907 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9908 (user_print_options): Initialise max_depth field.
9909 (val_print_scalar_or_string_type_p): New function.
9910 (val_print): Check to see if the max depth has been reached.
9911 (val_print_check_max_depth): Define new function.
9912 (show_print_max_depth): New function.
9913 (_initialize_valprint): Add 'print max-depth' option.
9914 * valprint.h (struct value_print_options) <max_depth>: New field.
9915 (val_print_check_max_depth): Declare new function.
9916 * NEWS: Document new feature.
9917
9918 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9919
9920 * ada-lang.c (ada_language_defn): Initialise new field.
9921 * c-lang.c (c_is_string_type_p): New function.
9922 (c_language_defn): Initialise new field.
9923 (cplus_language_defn): Initialise new field.
9924 (asm_language_defn): Initialise new field.
9925 (minimal_language_defn): Initialise new field.
9926 * c-lang.h (c_is_string_type_p): Declare new function.
9927 * d-lang.c (d_language_defn): Initialise new field.
9928 * f-lang.c (f_is_string_type_p): New function.
9929 (f_language_defn): Initialise new field.
9930 * go-lang.c (go_is_string_type_p): New function.
9931 (go_language_defn): Initialise new field.
9932 * language.c (default_is_string_type_p): New function.
9933 (unknown_language_defn): Initialise new field.
9934 (auto_language_defn): Initialise new field.
9935 * language.h (struct language_defn) <la_is_string_type_p>: New
9936 member variable.
9937 (default_is_string_type_p): Declare new function.
9938 * m2-lang.c (m2_language_defn): Initialise new field.
9939 * objc-lang.c (objc_language_defn): Initialise new field.
9940 * opencl-lang.c (opencl_language_defn): Initialise new field.
9941 * p-lang.c (pascal_is_string_type_p): New function.
9942 (pascal_language_defn): Initialise new field.
9943 * rust-lang.c (rust_is_string_type_p): New function.
9944 (rust_language_defn): Initialise new field.
9945
9946 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9947
9948 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9949 New field.
9950 * ada-lang.c (ada_language_defn): Initialise new field.
9951 * c-lang.c (c_language_defn): Likewise.
9952 (cplus_language_defn): Likewise.
9953 (asm_language_defn): Likewise.
9954 (minimal_language_defn): Likewise.
9955 * d-lang.c (d_language_defn): Likewise.
9956 * f-lang.c (f_language_defn): Likewise.
9957 * go-lang.c (go_language_defn): Likewise.
9958 * language.c (unknown_language_defn): Likewise.
9959 (auto_language_defn): Likewise.
9960 * m2-lang.c (m2_language_defn): Likewise.
9961 * objc-lang.c (objc_language_defn): Likewise.
9962 * opencl-lang.c (opencl_language_defn): Likewise.
9963 * p-lang.c (pascal_language_defn): Likewise.
9964 * rust-lang.c (rust_language_defn): Likewise.
9965
9966 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9967
9968 * ada-lang.c (ada_is_character_type): Change return type to bool.
9969 (ada_is_string_type): Likewise.
9970 * ada-lang.h (ada_is_character_type): Update declaration
9971 (ada_is_string_type): Likewise.
9972
9973 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9974
9975 Support style in 'frame|thread apply'
9976
9977 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9978 * record.c (record_start, record_stop): Update callers of
9979 execute_command_to_string with false.
9980 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9981 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9982 methods.
9983 (class string_file): New constructor with term_out parameter.
9984 Override methods term_out and can_emit_style_escape. New member
9985 term_out.
9986 (class stdio_file): Override can_emit_style_escape.
9987 (class tee_file): Override term_out and can_emit_style_escape.
9988 * utils.h (can_emit_style_escape): Remove.
9989 * utils.c (can_emit_style_escape): Likewise.
9990 Update all callers of can_emit_style_escape (SOMESTREAM) to
9991 SOMESTREAM->can_emit_style_escape.
9992 * source-cache.c (source_cache::get_source_lines): Likewise.
9993 * stack.c (frame_apply_command_count): Call execute_command_to_string
9994 passing the term_out characteristic of the current gdb_stdout.
9995 * thread.c (thr_try_catch_cmd): Likewise.
9996 * top.c (execute_command_to_string): pass term_out parameter
9997 to construct the string_file for the command output.
9998 * ui-file.c (term_cli_styling): New function (most code moved
9999 from utils.c can_emit_style_escape).
10000 (string_file::string_file, string_file::can_emit_style_escape,
10001 stdio_file::can_emit_style_escape, tee_file::term_out,
10002 tee_file::can_emit_style_escape): New functions.
10003
10004 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10005
10006 * NEWS: Mention the new set|show may-call-functions.
10007 * infcall.c (may_call_functions_p): New variable.
10008 (show_may_call_functions_p): New function.
10009 (call_function_by_hand_dummy): Throws an error if not
10010 may-call-functions.
10011 (_initialize_infcall): Call add_setshow_boolean_cmd for
10012 may-call-functions.
10013
10014 2019-04-25 Keith Seitz <keiths@redhat.com>
10015
10016 PR c++/24367
10017 * cp-support.c (inspect_type): Don't attempt substitutions
10018 of symbol with the same name.
10019
10020 2019-04-25 Tom Tromey <tromey@adacore.com>
10021
10022 PR gdb/24475:
10023 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10024 static.
10025
10026 2019-04-25 Tom Tromey <tromey@adacore.com>
10027
10028 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10029 rvalue reference.
10030 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10031 (gdb_xml_parser::parse): Use std::move.
10032 * python/python-internal.h (gdbpy_convert_exception): Take a const
10033 reference.
10034 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10035 std::move.
10036 * python/py-utils.c (gdbpy_convert_exception): Take a const
10037 reference.
10038 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10039 Use std::move.
10040 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10041 Use std::move.
10042 * mi/mi-main.c (mi_print_exception): Take a const reference.
10043 * main.c (handle_command_errors): Take a const reference.
10044 * linespec.c (parse_linespec): Use std::move.
10045 * infcall.c (run_inferior_call): Use std::move.
10046 (call_function_by_hand_dummy): Use std::move.
10047 * exec.c (try_open_exec_file): Use std::move.
10048 * exceptions.h (exception_print, exception_fprintf)
10049 (exception_print_same): Update.
10050 * exceptions.c (print_exception, exception_print)
10051 (exception_fprintf, exception_print_same): Change parameters to
10052 const reference.
10053 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10054 * common/new-op.c: Use std::move.
10055 * common/common-exceptions.h (struct gdb_exception): Add move
10056 constructor.
10057 (struct gdb_exception_error, struct gdb_exception_quit, struct
10058 gdb_quit_bad_alloc): Change constructor to move constructor.
10059 (throw_exception): Change parameter to rvalue reference.
10060 * common/common-exceptions.c (throw_exception): Take rvalue
10061 reference.
10062 * cli/cli-interp.c (safe_execute_command): Use std::move.
10063 * breakpoint.c (insert_bp_location, location_to_sals): Use
10064 std::move.
10065
10066 2019-04-25 Tom Tromey <tromey@adacore.com>
10067
10068 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10069 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10070 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10071 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10072 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10073 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10074 guile/scm-value.c: Use unpack.
10075 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10076 gdbscm_gdb_exception.
10077 (gdbscm_throw_gdb_exception): Likewise.
10078 (struct gdbscm_gdb_exception): New.
10079 (unpack): New function.
10080 (gdbscm_wrap): Use unpack.
10081
10082 2019-04-25 Tom Tromey <tromey@adacore.com>
10083
10084 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10085 (gdb_rl_callback_handler): Use std::move.
10086 * common/common-exceptions.h (struct gdb_exception): Add move
10087 assignment operator.
10088 (throw_exception_sjlj): Change "exception" to const reference.
10089 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10090 (throw_exception_sjlj): Change "exception" to const reference.
10091
10092 2019-04-25 Tom Tromey <tromey@adacore.com>
10093
10094 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10095 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10096 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10097 Update.
10098 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10099 Update.
10100 * mi/mi-interp.c (mi_interp::exec): Update.
10101 * linespec.c (parse_linespec): Update.
10102 * infcall.c (run_inferior_call): Update.
10103 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10104 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10105 (gdbscm_lookup_global_symbol): Update.
10106 * guile/scm-param.c (gdbscm_parameter_value): Update.
10107 * guile/scm-frame.c (gdbscm_frame_read_register)
10108 (gdbscm_frame_read_var): Update.
10109 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10110 * exec.c (try_open_exec_file): Update.
10111 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10112 (gdb_rl_callback_handler): Update.
10113 * common/common-exceptions.h (exception_none): Don't declare.
10114 * common/common-exceptions.c (exception_none): Don't define.
10115 (struct catcher) <exception>: Update.
10116 * cli/cli-interp.c (safe_execute_command): Update.
10117 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10118
10119 2019-04-25 Ali Tamur <tamur@google.com>
10120
10121 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10122 (read_attribute_value): Likewise.
10123 (dwarf2_read_addr_index): Update comment.
10124 (read_str_index): Add DW_FORM_strx.
10125 (dwarf2_string_attr): Likewise.
10126 (dwarf2_const_value_attr): Likewise.
10127 (dump_die_shallow): Likewise.
10128 (dwarf2_fetch_constant_bytes): Likewise.
10129 (skip_form_bytes): Likewise.
10130 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10131
10132 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10133
10134 PR corefiles/11608
10135 PR corefiles/18187
10136 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10137 OFFSET. Verify if current mapping contains an ELF header.
10138 (linux_find_memory_regions_full): Adjust call to
10139 dump_mapping_p.
10140
10141 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10142 Kang Li <kanglictf@gmail.com>
10143
10144 PR gdb/21600
10145
10146 * dwarf2-frame.c (read_initial_length): Be consistent about using
10147 unsigned representation of length.
10148 (decode_frame_entry_1): Likewise. Check for wraparound of
10149 end pointer as well as buffer overflow.
10150
10151 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10152
10153 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10154 "vq".
10155
10156 2019-04-24 Tom Tromey <tromey@adacore.com>
10157
10158 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10159
10160 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * s12z-tdep.c (s12z_unwind_pc): Delete.
10163 (s12z_unwind_sp): Delete.
10164 (s12z_gdbarch_init): Don't register deleted functions with
10165 gdbarch.
10166
10167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10168
10169 * rl78-tdep.c (rl78_unwind_sp): Delete.
10170 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10171
10172 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10175 (xstormy16_unwind_pc): Delete.
10176 (xstormy16_dummy_id): Delete.
10177 (xstormy16_gdbarch_init): Don't register deleted functions with
10178 gdbarch.
10179
10180 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10181
10182 * vax-tdep.c (vax_unwind_pc): Delete.
10183 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10184
10185 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10186
10187 * v850-tdep.c (v850_unwind_sp): Delete.
10188 (v850_unwind_pc): Delete.
10189 (v850_dummy_id): Delete.
10190 (v850_gdbarch_init): Don't register deleted functions with
10191 gdbarch.
10192
10193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10196 (tilegx_unwind_pc): Delete.
10197 (tilegx_unwind_dummy_id): Delete.
10198 (tilegx_gdbarch_init): Don't register deleted functions with
10199 gdbarch.
10200
10201 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10204 (tic6x_dummy_id): Delete.
10205 (tic6x_gdbarch_init): Don't register deleted functions with
10206 gdbarch.
10207
10208 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10209
10210 * sparc-tdep.c (sparc_unwind_pc): Delete.
10211 (sparc32_gdbarch_init): Don't register deleted function with
10212 gdbarch.
10213
10214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * sh-tdep.c (sh_unwind_sp): Delete.
10217 (sh_unwind_pc): Delete.
10218 (sh_dummy_id): Delete.
10219 (sh_gdbarch_init): Don't register deleted functions with
10220 gdbarch.
10221
10222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10223
10224 * score-tdep.c (score_unwind_sp): Delete.
10225 (score_unwind_pc): Delete.
10226 (score_dummy_id): Delete.
10227 (score_gdbarch_init): Don't register deleted functions with
10228 gdbarch.
10229
10230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10231
10232 * rx-tdep.c (rx_unwind_pc): Delete.
10233 (rx_unwind_sp): Delete.
10234 (rx_dummy_id): Delete.
10235 (rx_gdbarch_init): Don't register deleted functions with
10236 gdbarch. Update comment.
10237
10238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10241 (rs6000_dummy_id): Delete.
10242 (rs6000_gdbarch_init): Don't register deleted functions with
10243 gdbarch.
10244
10245 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10246
10247 * or1k-tdep.c (or1k_dummy_id): Delete.
10248 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10249
10250 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10251
10252 * nios2-tdep.c (nios2_dummy_id): Delete.
10253 (nios2_unwind_sp): Delete.
10254 (nios2_gdbarch_init): Don't register deleted functions with
10255 gdbarch.
10256
10257 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * nds32-tdep.c (nds32_dummy_id): Delete.
10260 (nds32_unwind_pc): Delete.
10261 (nds32_unwind_sp): Delete.
10262 (nds32_gdbarch_init): Don't register deleted functions with
10263 gdbarch.
10264
10265 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * msp430-tdep.c (msp430_unwind_pc): Delete.
10268 (msp430_unwind_sp): Delete.
10269 (msp430_dummy_id): Delete.
10270 (msp430_gdbarch_init): Don't register deleted functions with
10271 gdbarch.
10272
10273 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * moxie-tdep.c (moxie_unwind_sp): Delete.
10276 (moxie_unwind_pc): Delete.
10277 (moxie_dummy_id): Delete.
10278 (moxie_gdbarch_init): Don't register deleted functions with
10279 gdbarch.
10280
10281 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10284 (mn10300_unwind_pc): Delete.
10285 (mn10300_unwind_sp): Delete.
10286 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10287 mn10300_unwind_sp.
10288 (mn10300_frame_unwind_init): Don't register deleted functions with
10289 gdbarch.
10290
10291 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * mep-tdep.c (mep_unwind_pc): Delete.
10294 (mep_unwind_sp): Delete.
10295 (mep_dummy_id): Delete.
10296 (mep_gdbarch_init): Don't register deleted functions with
10297 gdbarch.
10298
10299 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10300
10301 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10302 (m68hc11_unwind_sp): Delete.
10303 (m68hc11_gdbarch_init): Don't register deleted functions with
10304 gdbarch.
10305
10306 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * m32r-tdep.c (m32r_unwind_sp): Delete.
10309 (m32r_unwind_pc): Delete.
10310 (m32r_dummy_id): Delete.
10311 (m32r_gdbarch_init): Don't register deleted functions with
10312 gdbarch.
10313
10314 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * m32c-tdep.c (m32c_unwind_pc): Delete.
10317 (m32c_unwind_sp): Delete.
10318 (m32c_dummy_id): Delete.
10319 (m32c_gdbarch_init): Don't register deleted functions with
10320 gdbarch.
10321
10322 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10325 (lm32_unwind_pc): Delete.
10326 (lm32_dummy_id): Delete.
10327 (lm32_gdbarch_init): Don't register deleted functions with
10328 gdbarch.
10329
10330 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10331
10332 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10333 (iq2000_unwind_pc): Delete.
10334 (iq2000_dummy_id): Delete.
10335 (iq2000_gdbarch_init): Don't register deleted functions with
10336 gdbarch.
10337
10338 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10339
10340 * nds32-tdep.c (nds32_type_align): Delete.
10341 (nds32_push_dummy_call): Use type_align instead.
10342
10343 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * arm-tdep.c (arm_type_align): Only handle vector override case.
10346 (arm_push_dummy_call): Use type_align.
10347 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10348
10349 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10350
10351 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10352 case.
10353 (pass_on_stack): Use type_align.
10354 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10355 function.
10356
10357 2019-04-23 Tom Tromey <tromey@adacore.com>
10358
10359 * dwarf2read.c (line_header::file_name_at): Remove unused
10360 overload.
10361
10362 2019-04-23 Tom de Vries <tdevries@suse.de>
10363
10364 PR gdb/24438
10365 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10366 invocation.
10367
10368
10369 2019-03-27 Ali Tamur <tamur@google.com>
10370
10371 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10372 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10373 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10374 (dwarf_expr_context::get_addr_index): Likewise
10375 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10376 (symbol_needs_eval_context::get_addr_index): Likewise
10377 (disassemble_dwarf_expression): Add DW_OP_addrx
10378 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10379 (read_cutu_die_from_dwo): Update comment
10380 (skip_one_die): Add DW_FORM_addrx
10381 (read_attribute_value): Likewise
10382 (var_decode_location): Add DW_OP_addrx
10383 (dwarf2_const_value_attr): Add DW_FORM_addrx
10384 (dump_die_shallow): Likewise
10385 (dwarf2_fetch_constant_bytes): Likewise
10386 (decode_locdesc): Add DW_OP_addrx
10387 (skip_form_bytes): Add DW_FORM_addrx
10388
10389 2019-04-22 Ali Tamur <tamur@google.com>
10390
10391 * MAINTAINERS (Write After Approval): Add self.
10392
10393 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10396 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10397 (open_symbol_file_object): Likewise.
10398 (svr4_default_sos): Add info parameter.
10399 (svr4_read_so_list): Likewise.
10400 (svr4_current_sos_direct): Adjust functions calls to pass down
10401 info.
10402 (svr4_current_sos_1): Add info parameter.
10403 (svr4_current_sos): Call get_svr4_info, pass info down to
10404 svr4_current_sos_1.
10405 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10406 get_svr4_info.
10407 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10408 get_svr4_info.
10409 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10410 to get_svr4_info.
10411 (probes_table_remove_objfile_probes): Likewise.
10412 (register_solib_event_probe): Add info parameter.
10413 (solist_update_incremental): Pass info parameter down to
10414 svr4_read_so_list.
10415 (disable_probes_interface): Add info parameter.
10416 (svr4_handle_solib_event): Pass current_program_space to
10417 get_svr4_info. Adjust disable_probes_interface cleanup.
10418 (svr4_create_probe_breakpoints): Add info parameter, pass it
10419 down to register_solib_event_probe.
10420 (svr4_create_solib_event_breakpoints): Add info parameter,
10421 pass it down to svr4_create_probe_breakpoints.
10422 (enable_break): Pass info down to
10423 svr4_create_solib_event_breakpoints.
10424 (svr4_solib_create_inferior_hook): Pass current_program_space to
10425 get_svr4_info.
10426 (svr4_clear_solib): Likewise.
10427
10428 2019-04-22 Pedro Alves <palves@redhat.com>
10429
10430 * solib-svr4.c (svr4_free_objfile_observer): New.
10431 (probe_and_action::objfile): New field.
10432 (probes_table_htab_remove_objfile_probes)
10433 (probes_table_remove_objfile_probes): New functions.
10434 (register_solib_event_probe): Add 'objfile' parameter. Store it
10435 in the new probe_and_action. Don't store the probe in 'lookup'.
10436 (svr4_create_probe_breakpoints): Pass objfile to
10437 register_solib_event_probe.
10438 (_initialize_svr4_solib): Register a free_objfile observer.
10439
10440 2019-04-19 Tom Tromey <tom@tromey.com>
10441
10442 * common/queue.h: Remove.
10443
10444 2019-04-19 Tom Tromey <tom@tromey.com>
10445
10446 * event-loop.c: Don't include "common/queue.h".
10447
10448 2019-04-19 Tom Tromey <tom@tromey.com>
10449
10450 * remote.c (remote_target): Use delete.
10451 * remote-notif.h: Include <list>, not "common/queue.h".
10452 (notif_client_p): Remove typedef.
10453 (remote_notif_state): Add constructor, destructor, initializer.
10454 <notif_queue>: Now a std::list.
10455 (remote_notif_state_xfree): Don't declare.
10456 * remote-notif.c (remote_notif_process, handle_notification)
10457 (remote_notif_state_allocate): Update.
10458 (~remote_notif_state): Rename from remote_notif_state_xfree.
10459
10460 2019-04-19 Tom Tromey <tom@tromey.com>
10461
10462 * symfile.c (reread_symbols): Update.
10463 * objfiles.c (objfile_register_static_link)
10464 (objfile_lookup_static_link): Update
10465 (~objfile) Don't delete static_links.
10466 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10467
10468 2019-04-19 Tom Tromey <tom@tromey.com>
10469
10470 * type-stack.h (struct type_stack) <insert>: Constify string.
10471 * type-stack.c (type_stack::insert): Constify string.
10472 * gdbtypes.h (lookup_template_type): Update.
10473 (address_space_name_to_int): Update.
10474 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10475 const.
10476 (lookup_template_type): Make name const.
10477 * c-exp.y: Update rules.
10478 (lex_one_token, classify_name, classify_inner_name)
10479 (c_print_token): Update.
10480 * p-exp.y: Update rules.
10481 (yylex): Update.
10482 * f-exp.y: Update rules.
10483 (yylex): Update.
10484 * d-exp.y: Update rules.
10485 (lex_one_token, classify_name, classify_inner_name): Update.
10486 * parse.c (write_dollar_variable, copy_name): Return std::string.
10487 * parser-defs.h (copy_name): Change return type.
10488 * m2-exp.y: Update rules.
10489 (yylex): Update.
10490 * go-exp.y (lex_one_token): Update.
10491 Update rules.
10492 (classify_unsafe_function, classify_packaged_name)
10493 (classify_name, yylex): Update.
10494
10495 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10496
10497 * configure.ac: add --enable-source-highlight switch.
10498 * configure: Regenerate.
10499 * top.c (print_gdb_version): plumb --enable-source-highlight
10500 status to "show configuration".
10501
10502 2019-04-19 Tom Tromey <tromey@adacore.com>
10503
10504 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10505 Check ADA_TYPE_P.
10506 (empty_record, ada_template_to_fixed_record_type_1)
10507 (template_to_static_fixed_type)
10508 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10509 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10510 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10511 macros.
10512
10513 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10514
10515 PR symtab/24423:
10516 * source.c (print_source_lines_base): Advance "iter" when a
10517 control character is seen.
10518
10519 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10520
10521 * inferior.h (struct infcall_suspend_state_deleter):
10522 Catch exception in destructor to avoid crash.
10523
10524 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525
10526 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10527 close to the add_com "shell".
10528
10529 2019-04-18 Tom Tromey <tromey@adacore.com>
10530
10531 * process-stratum-target.h (class process_stratum_target)
10532 <stratum>: Add "final".
10533
10534 2019-04-17 Tom Tromey <tromey@adacore.com>
10535
10536 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10537 against nullptr before use.
10538
10539 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10540
10541 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10542
10543 2019-04-17 Jim Wilson <jimw@sifive.com>
10544 Andrew Burgess <andrew.burgess@embecosm.com>
10545
10546 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10547 code read might fail, assume 4-byte breakpoint in that case.
10548
10549 2019-04-15 Leszek Swirski <leszeks@google.com>
10550
10551 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10552 rather than a hand-rolled POD check when checking for forced MEMORY
10553 classification.
10554
10555 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10556
10557 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10558 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10559 function.
10560 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10561 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10562 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10563 declaration.
10564
10565 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10566
10567 * aarch64-linux-nat.c
10568 (aarch64_linux_nat_target::thread_architecture): Add override.
10569 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10570 each VQ.
10571
10572 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10573
10574 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10575
10576 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10579 target types of size 96-bits, add some additional comments, and
10580 check that the builtin type we found was the correct size.
10581
10582 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10583
10584 * utils.c (prompt_for_continue): Don't restore the styling at the
10585 end, as applied_style has the wrong value. This fixes styling in
10586 long lists of file names that are interrupted by the "Continue?"
10587 prompt.
10588
10589 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10590
10591 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10592 * c-lang.c (c_language_defn): Likewise.
10593 (cplus_language_defn): Likewise.
10594 (asm_language_defn): Likewise.
10595 (minimal_language_defn): Likewise.
10596 * d-lang.c (d_language_defn): Likewise.
10597 * f-lang.c (f_language_defn): Likewise.
10598 * go-lang.c (go_language_defn): Likewise.
10599 * language.c (unknown_language_defn): Likewise.
10600 (auto_language_defn): Likewise.
10601 * language.h (struct language_defn): Remove la_magic field.
10602 (LANG_MAGIC): Delete.
10603 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10604 * objc-lang.c (objc_language_defn): Likewise.
10605 * opencl-lang.c (opencl_language_defn): Likewise.
10606 * p-lang.c (pascal_language_defn): Likewise.
10607 * rust-lang.c (rust_language_defn): Likewise.
10608
10609 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * riscv-tdep.c (riscv_type_align): New function.
10612 (riscv_type_alignment): Delete.
10613 (riscv_arg_location): Use 'type_align'.
10614 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10615
10616 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10617
10618 * gdbtypes.c (type_align): A struct with no non-static fields also
10619 has alignment of 1.
10620
10621 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10622
10623 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10624 component to 0.
10625 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10626 member.
10627 (riscv_struct_info::analyse): New implementation using new
10628 analyse_inner member function.
10629 (riscv_struct_info::field_offset): New member function.
10630 (riscv_struct_info::m_offsets): New member variable.
10631 (riscv_struct_info::analyse_inner): New private member function,
10632 takes the old implementation of riscv_struct_info::analyse but
10633 extended to track field offsets.
10634 (riscv_call_arg_struct): Update the struct folding special cases
10635 to handle cases where empty C++ structs, which are non-zero
10636 length, are found.
10637 (riscv_arg_location): Initialise the length of each location, a
10638 non-zero length now indicates the location is in use.
10639 (riscv_push_dummy_call): Allow for the first location having a
10640 non-zero offset when setting up arguments.
10641 (riscv_return_value): Likewise, but for return values.
10642
10643 2019-04-11 Tom Tromey <tromey@adacore.com>
10644
10645 * utils.c (internal_vproblem): Make "msg" const.
10646
10647 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10648
10649 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10650 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10651 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10652 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10653
10654 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10655
10656 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10657 function.
10658 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10659 of amd64_collect_native_gregset.
10660 (amd64_linux_nat_target::store_registers): Likewise.
10661
10662 2019-04-10 Tom Tromey <tom@tromey.com>
10663
10664 * symtab.c (lookup_global_symbol_from_objfile)
10665 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10666 * objfiles.h (class separate_debug_iterator): New.
10667 (class separate_debug_range): New.
10668 (struct objfile) <separate_debug_objfiles>: New method.
10669 (objfile_separate_debug_iterate): Don't declare.
10670 * objfiles.c (separate_debug_iterator::operator++): Rename from
10671 objfile_separate_debug_iterate.
10672 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10673 iterator.
10674 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10675 iterator.
10676
10677 2019-04-10 Tom Tromey <tom@tromey.com>
10678
10679 * symfile.c (reread_symbols): Remove old comment.
10680 * objfiles.c (free_all_objfiles): Fix a typo.
10681
10682 2019-04-10 Tom Tromey <tom@tromey.com>
10683
10684 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10685 * minsyms.c (lookup_minimal_symbol): Use foreach.
10686 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10687 (lookup_minimal_symbol_solib_trampoline): Likewise.
10688 * symfile.c (reread_symbols): Use foreach.
10689
10690 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10691 Tom Tromey <tromey@adacore.com>
10692
10693 PR rust/24414:
10694 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10695 (rust_lex_int_test): Change "value" to be LONGEST.
10696 (rust_lex_tests): Add test for long integer literal.
10697
10698 2019-04-09 Tom Tromey <tromey@adacore.com>
10699
10700 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10701 to bool.
10702 (extended_remote_target::attach): Update.
10703 (remote_target::remote_notice_new_inferior): Update.
10704 (remote_target::add_current_inferior_and_thread): Update.
10705 * inferior.c (exit_inferior_1): Use "false".
10706 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10707
10708 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10709
10710 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10711 the "start" command.
10712
10713 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10714
10715 * python/py-inferior.c (infpy_thread_from_thread_handle):
10716 Adjust comments to reflect renaming of thread_from_thread_handle
10717 to thread_from_handle. Adjust keywords. Fix type error message.
10718 (inferior_object_methods): Add thread_from_handle. Retain
10719 thread_from_thread_handle, but mark it as deprecated.
10720
10721 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10722
10723 * gdbthread.h (find_thread_by_handle): Revise declaration.
10724 * thread.c (find_thread_by_handle): Likewise. Adjust
10725 implementation too.
10726 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10727 support for buffer objects as handles.
10728
10729 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10730
10731 * python/py-infthread.c (thpy_thread_handle): New function.
10732 (thread_object_methods): Register thpy_thread_handle.
10733
10734 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10735
10736 * gdbthread.h (thread_to_thread_handle): Declare.
10737 * thread.c (gdbtypes.h): Include.
10738 (thread_to_thread_handle): New function.
10739
10740 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10741 (target_thread_info_to_thread_handle): Declare.
10742 * target.c (target_thread_info_to_thread_handle): New function.
10743 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10744 * target-delegates.c: Regenerate.
10745
10746 * linux-thread-db.c (class thread_db_target): Add method
10747 thread_info_to_thread_handle.
10748 (thread_db_target::thread_info_to_thread_handle): Define.
10749 * remote.c (class remote_target): Add new method
10750 thread_info_to_thread_handle.
10751 (remote_target::thread_info_to_thread_handle): Define.
10752
10753 2019-04-08 Pedro Alves <palves@redhat.com>
10754
10755 * common/common-exceptions.c (throw_exception): Don't create
10756 named object to throw; throw directly.
10757 (throw_it): Likewise. Don't initialize gdb_exception::message
10758 here, with new; pass FMT and AP to the ctor instead.
10759 * common/common-exceptions.h: Include <string>.
10760 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10761 const char *, va_list)): New ctor. Use std::make_shared.
10762 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10763 errors)): Delete.
10764 (gdb_exception_error::gdb_exception_error(enum errors, const char
10765 *, va_list)): New.
10766 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10767 Add assertion.
10768 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10769 errors)): Delete.
10770 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10771 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10772 Add assertion.
10773
10774 2019-04-08 Tom Tromey <tom@tromey.com>
10775
10776 * valops.c (value_rtti_indirect_type): Replace throw_exception
10777 with throw.
10778 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10779 with throw.
10780 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10781 throw.
10782 * target.c (target_translate_tls_address): Replace throw_exception
10783 with throw.
10784 * stack.c (frame_apply_command_count): Replace throw_exception
10785 with throw.
10786 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10787 throw.
10788 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10789 with throw.
10790 * rs6000-tdep.c (rs6000_frame_cache)
10791 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10792 * remote.c: Replace throw_exception with throw.
10793 * record-full.c (record_full_message, record_full_wait_1)
10794 (record_full_restore): Replace throw_exception with throw.
10795 * record-btrace.c:
10796 (get_thread_current_frame_id, record_btrace_start_replaying)
10797 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10798 (cmd_record_btrace_start): Replace throw_exception with throw.
10799 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10800 throw.
10801 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10802 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10803 * linespec.c:
10804 (find_linespec_symbols): Replace throw_exception with throw.
10805 * infrun.c (displaced_step_prepare, resume): Replace
10806 throw_exception with throw.
10807 * infcmd.c (post_create_inferior): Replace throw_exception with
10808 throw.
10809 * inf-loop.c (inferior_event_handler): Replace throw_exception
10810 with throw.
10811 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10812 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10813 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10814 (get_prev_frame_always, get_frame_pc_if_available)
10815 (get_frame_address_in_block_if_available, get_frame_language):
10816 Replace throw_exception with throw.
10817 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10818 throw_exception with throw.
10819 * eval.c (fetch_subexp_value, evaluate_var_value)
10820 (evaluate_funcall, evaluate_subexp_standard): Replace
10821 throw_exception with throw.
10822 * dwarf2loc.c (call_site_find_chain)
10823 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10824 Replace throw_exception with throw.
10825 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10826 with throw.
10827 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10828 throw.
10829 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10830 * completer.c (complete_line_internal): Replace throw_exception
10831 with throw.
10832 * compile/compile-object-run.c (compile_object_run): Replace
10833 throw_exception with throw.
10834 * cli/cli-script.c (process_next_line): Replace throw_exception
10835 with throw.
10836 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10837 (btrace_enable, btrace_maint_update_pt_packets): Replace
10838 throw_exception with throw.
10839 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10840 throw_exception with throw.
10841 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10842 throw_exception with throw.
10843 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10844 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10845 * aarch64-tdep.c (aarch64_make_prologue_cache)
10846 (aarch64_make_stub_cache): Replace throw_exception with throw.
10847
10848 2019-04-08 Tom Tromey <tom@tromey.com>
10849
10850 * common/common-exceptions.c (throw_exception): Rename from
10851 throw_exception_cxx. Remove old copy. Make argument const.
10852 (throw_it): Create and throw exception objects directly.
10853 * common/common-exceptions.h (throw_exception): Make argument
10854 const.
10855 (struct gdb_exception_error): Add constructor.
10856 (struct gdb_exception_quit): Add constructor.
10857
10858 2019-04-08 Tom Tromey <tom@tromey.com>
10859
10860 * common/common-exceptions.h (exception_rethrow): Don't declare.
10861 (TRY_SJLJ): Update comment.
10862 (TRY, CATCH, END_CATCH): Remove.
10863 * common/common-exceptions.c (exception_rethrow): Remove.
10864
10865 2019-04-08 Tom Tromey <tom@tromey.com>
10866
10867 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10868 Remove.
10869 (gdb_exception_error): Rename from
10870 gdb_exception_RETURN_MASK_ERROR.
10871 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10872 (gdb_quit_bad_alloc): Update.
10873 * aarch64-tdep.c: Update.
10874 * ada-lang.c: Update.
10875 * ada-typeprint.c: Update.
10876 * ada-valprint.c: Update.
10877 * amd64-tdep.c: Update.
10878 * arch-utils.c: Update.
10879 * break-catch-throw.c: Update.
10880 * breakpoint.c: Update.
10881 * btrace.c: Update.
10882 * c-varobj.c: Update.
10883 * cli/cli-cmds.c: Update.
10884 * cli/cli-interp.c: Update.
10885 * cli/cli-script.c: Update.
10886 * common/common-exceptions.c: Update.
10887 * common/new-op.c: Update.
10888 * common/selftest.c: Update.
10889 * compile/compile-c-symbols.c: Update.
10890 * compile/compile-cplus-symbols.c: Update.
10891 * compile/compile-object-load.c: Update.
10892 * compile/compile-object-run.c: Update.
10893 * completer.c: Update.
10894 * corelow.c: Update.
10895 * cp-abi.c: Update.
10896 * cp-support.c: Update.
10897 * cp-valprint.c: Update.
10898 * darwin-nat.c: Update.
10899 * disasm-selftests.c: Update.
10900 * dtrace-probe.c: Update.
10901 * dwarf-index-cache.c: Update.
10902 * dwarf-index-write.c: Update.
10903 * dwarf2-frame-tailcall.c: Update.
10904 * dwarf2-frame.c: Update.
10905 * dwarf2loc.c: Update.
10906 * dwarf2read.c: Update.
10907 * eval.c: Update.
10908 * event-loop.c: Update.
10909 * event-top.c: Update.
10910 * exec.c: Update.
10911 * f-valprint.c: Update.
10912 * fbsd-tdep.c: Update.
10913 * frame-unwind.c: Update.
10914 * frame.c: Update.
10915 * gdbtypes.c: Update.
10916 * gnu-v3-abi.c: Update.
10917 * guile/guile-internal.h: Update.
10918 * guile/scm-block.c: Update.
10919 * guile/scm-breakpoint.c: Update.
10920 * guile/scm-cmd.c: Update.
10921 * guile/scm-disasm.c: Update.
10922 * guile/scm-frame.c: Update.
10923 * guile/scm-lazy-string.c: Update.
10924 * guile/scm-math.c: Update.
10925 * guile/scm-param.c: Update.
10926 * guile/scm-ports.c: Update.
10927 * guile/scm-pretty-print.c: Update.
10928 * guile/scm-symbol.c: Update.
10929 * guile/scm-symtab.c: Update.
10930 * guile/scm-type.c: Update.
10931 * guile/scm-value.c: Update.
10932 * i386-linux-tdep.c: Update.
10933 * i386-tdep.c: Update.
10934 * inf-loop.c: Update.
10935 * infcall.c: Update.
10936 * infcmd.c: Update.
10937 * infrun.c: Update.
10938 * jit.c: Update.
10939 * language.c: Update.
10940 * linespec.c: Update.
10941 * linux-fork.c: Update.
10942 * linux-nat.c: Update.
10943 * linux-tdep.c: Update.
10944 * linux-thread-db.c: Update.
10945 * main.c: Update.
10946 * mi/mi-cmd-break.c: Update.
10947 * mi/mi-cmd-stack.c: Update.
10948 * mi/mi-interp.c: Update.
10949 * mi/mi-main.c: Update.
10950 * objc-lang.c: Update.
10951 * p-valprint.c: Update.
10952 * parse.c: Update.
10953 * ppc-linux-tdep.c: Update.
10954 * printcmd.c: Update.
10955 * python/py-arch.c: Update.
10956 * python/py-breakpoint.c: Update.
10957 * python/py-cmd.c: Update.
10958 * python/py-finishbreakpoint.c: Update.
10959 * python/py-frame.c: Update.
10960 * python/py-framefilter.c: Update.
10961 * python/py-gdb-readline.c: Update.
10962 * python/py-inferior.c: Update.
10963 * python/py-infthread.c: Update.
10964 * python/py-lazy-string.c: Update.
10965 * python/py-linetable.c: Update.
10966 * python/py-objfile.c: Update.
10967 * python/py-param.c: Update.
10968 * python/py-prettyprint.c: Update.
10969 * python/py-progspace.c: Update.
10970 * python/py-record-btrace.c: Update.
10971 * python/py-record.c: Update.
10972 * python/py-symbol.c: Update.
10973 * python/py-type.c: Update.
10974 * python/py-unwind.c: Update.
10975 * python/py-utils.c: Update.
10976 * python/py-value.c: Update.
10977 * python/python.c: Update.
10978 * record-btrace.c: Update.
10979 * record-full.c: Update.
10980 * remote-fileio.c: Update.
10981 * remote.c: Update.
10982 * riscv-tdep.c: Update.
10983 * rs6000-aix-tdep.c: Update.
10984 * rs6000-tdep.c: Update.
10985 * rust-exp.y: Update.
10986 * rust-lang.c: Update.
10987 * s390-tdep.c: Update.
10988 * selftest-arch.c: Update.
10989 * solib-dsbt.c: Update.
10990 * solib-frv.c: Update.
10991 * solib-spu.c: Update.
10992 * solib-svr4.c: Update.
10993 * solib.c: Update.
10994 * sparc64-linux-tdep.c: Update.
10995 * stack.c: Update.
10996 * symfile-mem.c: Update.
10997 * symmisc.c: Update.
10998 * target.c: Update.
10999 * thread.c: Update.
11000 * top.c: Update.
11001 * tracefile-tfile.c: Update.
11002 * tui/tui.c: Update.
11003 * typeprint.c: Update.
11004 * unittests/cli-utils-selftests.c: Update.
11005 * unittests/parse-connection-spec-selftests.c: Update.
11006 * valops.c: Update.
11007 * valprint.c: Update.
11008 * value.c: Update.
11009 * varobj.c: Update.
11010 * windows-nat.c: Update.
11011 * x86-linux-nat.c: Update.
11012 * xml-support.c: Update.
11013
11014 2019-04-08 Tom Tromey <tom@tromey.com>
11015
11016 * xml-support.c: Use C++ exception handling.
11017 * x86-linux-nat.c: Use C++ exception handling.
11018 * windows-nat.c: Use C++ exception handling.
11019 * varobj.c: Use C++ exception handling.
11020 * value.c: Use C++ exception handling.
11021 * valprint.c: Use C++ exception handling.
11022 * valops.c: Use C++ exception handling.
11023 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11024 handling.
11025 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11026 * typeprint.c: Use C++ exception handling.
11027 * tui/tui.c: Use C++ exception handling.
11028 * tracefile-tfile.c: Use C++ exception handling.
11029 * top.c: Use C++ exception handling.
11030 * thread.c: Use C++ exception handling.
11031 * target.c: Use C++ exception handling.
11032 * symmisc.c: Use C++ exception handling.
11033 * symfile-mem.c: Use C++ exception handling.
11034 * stack.c: Use C++ exception handling.
11035 * sparc64-linux-tdep.c: Use C++ exception handling.
11036 * solib.c: Use C++ exception handling.
11037 * solib-svr4.c: Use C++ exception handling.
11038 * solib-spu.c: Use C++ exception handling.
11039 * solib-frv.c: Use C++ exception handling.
11040 * solib-dsbt.c: Use C++ exception handling.
11041 * selftest-arch.c: Use C++ exception handling.
11042 * s390-tdep.c: Use C++ exception handling.
11043 * rust-lang.c: Use C++ exception handling.
11044 * rust-exp.y: Use C++ exception handling.
11045 * rs6000-tdep.c: Use C++ exception handling.
11046 * rs6000-aix-tdep.c: Use C++ exception handling.
11047 * riscv-tdep.c: Use C++ exception handling.
11048 * remote.c: Use C++ exception handling.
11049 * remote-fileio.c: Use C++ exception handling.
11050 * record-full.c: Use C++ exception handling.
11051 * record-btrace.c: Use C++ exception handling.
11052 * python/python.c: Use C++ exception handling.
11053 * python/py-value.c: Use C++ exception handling.
11054 * python/py-utils.c: Use C++ exception handling.
11055 * python/py-unwind.c: Use C++ exception handling.
11056 * python/py-type.c: Use C++ exception handling.
11057 * python/py-symbol.c: Use C++ exception handling.
11058 * python/py-record.c: Use C++ exception handling.
11059 * python/py-record-btrace.c: Use C++ exception handling.
11060 * python/py-progspace.c: Use C++ exception handling.
11061 * python/py-prettyprint.c: Use C++ exception handling.
11062 * python/py-param.c: Use C++ exception handling.
11063 * python/py-objfile.c: Use C++ exception handling.
11064 * python/py-linetable.c: Use C++ exception handling.
11065 * python/py-lazy-string.c: Use C++ exception handling.
11066 * python/py-infthread.c: Use C++ exception handling.
11067 * python/py-inferior.c: Use C++ exception handling.
11068 * python/py-gdb-readline.c: Use C++ exception handling.
11069 * python/py-framefilter.c: Use C++ exception handling.
11070 * python/py-frame.c: Use C++ exception handling.
11071 * python/py-finishbreakpoint.c: Use C++ exception handling.
11072 * python/py-cmd.c: Use C++ exception handling.
11073 * python/py-breakpoint.c: Use C++ exception handling.
11074 * python/py-arch.c: Use C++ exception handling.
11075 * printcmd.c: Use C++ exception handling.
11076 * ppc-linux-tdep.c: Use C++ exception handling.
11077 * parse.c: Use C++ exception handling.
11078 * p-valprint.c: Use C++ exception handling.
11079 * objc-lang.c: Use C++ exception handling.
11080 * mi/mi-main.c: Use C++ exception handling.
11081 * mi/mi-interp.c: Use C++ exception handling.
11082 * mi/mi-cmd-stack.c: Use C++ exception handling.
11083 * mi/mi-cmd-break.c: Use C++ exception handling.
11084 * main.c: Use C++ exception handling.
11085 * linux-thread-db.c: Use C++ exception handling.
11086 * linux-tdep.c: Use C++ exception handling.
11087 * linux-nat.c: Use C++ exception handling.
11088 * linux-fork.c: Use C++ exception handling.
11089 * linespec.c: Use C++ exception handling.
11090 * language.c: Use C++ exception handling.
11091 * jit.c: Use C++ exception handling.
11092 * infrun.c: Use C++ exception handling.
11093 * infcmd.c: Use C++ exception handling.
11094 * infcall.c: Use C++ exception handling.
11095 * inf-loop.c: Use C++ exception handling.
11096 * i386-tdep.c: Use C++ exception handling.
11097 * i386-linux-tdep.c: Use C++ exception handling.
11098 * guile/scm-value.c: Use C++ exception handling.
11099 * guile/scm-type.c: Use C++ exception handling.
11100 * guile/scm-symtab.c: Use C++ exception handling.
11101 * guile/scm-symbol.c: Use C++ exception handling.
11102 * guile/scm-pretty-print.c: Use C++ exception handling.
11103 * guile/scm-ports.c: Use C++ exception handling.
11104 * guile/scm-param.c: Use C++ exception handling.
11105 * guile/scm-math.c: Use C++ exception handling.
11106 * guile/scm-lazy-string.c: Use C++ exception handling.
11107 * guile/scm-frame.c: Use C++ exception handling.
11108 * guile/scm-disasm.c: Use C++ exception handling.
11109 * guile/scm-cmd.c: Use C++ exception handling.
11110 * guile/scm-breakpoint.c: Use C++ exception handling.
11111 * guile/scm-block.c: Use C++ exception handling.
11112 * guile/guile-internal.h: Use C++ exception handling.
11113 * gnu-v3-abi.c: Use C++ exception handling.
11114 * gdbtypes.c: Use C++ exception handling.
11115 * frame.c: Use C++ exception handling.
11116 * frame-unwind.c: Use C++ exception handling.
11117 * fbsd-tdep.c: Use C++ exception handling.
11118 * f-valprint.c: Use C++ exception handling.
11119 * exec.c: Use C++ exception handling.
11120 * event-top.c: Use C++ exception handling.
11121 * event-loop.c: Use C++ exception handling.
11122 * eval.c: Use C++ exception handling.
11123 * dwarf2read.c: Use C++ exception handling.
11124 * dwarf2loc.c: Use C++ exception handling.
11125 * dwarf2-frame.c: Use C++ exception handling.
11126 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11127 * dwarf-index-write.c: Use C++ exception handling.
11128 * dwarf-index-cache.c: Use C++ exception handling.
11129 * dtrace-probe.c: Use C++ exception handling.
11130 * disasm-selftests.c: Use C++ exception handling.
11131 * darwin-nat.c: Use C++ exception handling.
11132 * cp-valprint.c: Use C++ exception handling.
11133 * cp-support.c: Use C++ exception handling.
11134 * cp-abi.c: Use C++ exception handling.
11135 * corelow.c: Use C++ exception handling.
11136 * completer.c: Use C++ exception handling.
11137 * compile/compile-object-run.c: Use C++ exception handling.
11138 * compile/compile-object-load.c: Use C++ exception handling.
11139 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11140 * compile/compile-c-symbols.c: Use C++ exception handling.
11141 * common/selftest.c: Use C++ exception handling.
11142 * common/new-op.c: Use C++ exception handling.
11143 * cli/cli-script.c: Use C++ exception handling.
11144 * cli/cli-interp.c: Use C++ exception handling.
11145 * cli/cli-cmds.c: Use C++ exception handling.
11146 * c-varobj.c: Use C++ exception handling.
11147 * btrace.c: Use C++ exception handling.
11148 * breakpoint.c: Use C++ exception handling.
11149 * break-catch-throw.c: Use C++ exception handling.
11150 * arch-utils.c: Use C++ exception handling.
11151 * amd64-tdep.c: Use C++ exception handling.
11152 * ada-valprint.c: Use C++ exception handling.
11153 * ada-typeprint.c: Use C++ exception handling.
11154 * ada-lang.c: Use C++ exception handling.
11155 * aarch64-tdep.c: Use C++ exception handling.
11156
11157 2019-04-08 Tom Tromey <tom@tromey.com>
11158
11159 * xml-support.c (gdb_xml_parser::parse): Update.
11160 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11161 * value.c (show_convenience): Update.
11162 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11163 (test_parse_flags_qcs): Update.
11164 * thread.c (thr_try_catch_cmd): Update.
11165 * target.c (target_translate_tls_address): Update.
11166 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11167 (info_frame_command_core, frame_apply_command_count): Update.
11168 * rust-exp.y (rust_lex_exception_test): Update.
11169 * riscv-tdep.c (riscv_print_one_register_info): Update.
11170 * remote.c (remote_target::enable_btrace): Update.
11171 * record-btrace.c (record_btrace_enable_warn): Update.
11172 * python/py-utils.c (gdbpy_convert_exception): Update.
11173 * printcmd.c (do_one_display, print_variable_and_value): Update.
11174 * mi/mi-main.c (mi_print_exception): Update.
11175 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11176 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11177 * linux-nat.c (linux_nat_target::attach): Update.
11178 * linux-fork.c (class scoped_switch_fork_info): Update.
11179 * infrun.c (displaced_step_prepare): Update.
11180 * infcall.c (call_function_by_hand_dummy): Update.
11181 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11182 * gnu-v3-abi.c (print_one_vtable): Update.
11183 * frame.c (get_prev_frame_always): Update.
11184 * f-valprint.c (info_common_command_for_block): Update.
11185 * exec.c (try_open_exec_file): Update.
11186 * exceptions.c (print_exception, exception_print)
11187 (exception_fprintf, exception_print_same): Update.
11188 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11189 * dwarf-index-cache.c (index_cache::store)
11190 (index_cache::lookup_gdb_index): Update.
11191 * darwin-nat.c (maybe_cache_shell): Update.
11192 * cp-valprint.c (cp_print_value_fields): Update.
11193 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11194 (gcc_cplus_symbol_address): Update.
11195 * compile/compile-c-symbols.c (gcc_convert_symbol)
11196 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11197 * common/selftest.c: Update.
11198 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11199 a std::string.
11200 (exception_try_scope_entry, exception_try_scope_exit): Don't
11201 declare.
11202 (struct exception_try_scope): Remove.
11203 (TRY): Don't use exception_try_scope.
11204 (struct gdb_exception): Add constructor, operator=.
11205 <what>: New method.
11206 (struct gdb_exception_RETURN_MASK_ALL)
11207 (struct gdb_exception_RETURN_MASK_ERROR)
11208 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11209 (struct gdb_quit_bad_alloc): Update.
11210 * common/common-exceptions.c (exception_none): Change
11211 initializer.
11212 (struct catcher) <state, exception>: Initialize inline.
11213 <prev>: Remove member.
11214 (current_catcher): Remove.
11215 (catchers): New global.
11216 (exceptions_state_mc_init): Simplify.
11217 (catcher_pop): Remove.
11218 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11219 (try_scope_depth, exception_try_scope_entry)
11220 (exception_try_scope_exit): Remove.
11221 (throw_exception_sjlj): Update.
11222 (exception_messages, exception_messages_size): Remove.
11223 (throw_it): Simplify.
11224 (gdb_exception_sliced_copy): Remove.
11225 (throw_exception_cxx): Update.
11226 * cli/cli-script.c (script_from_file): Update.
11227 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11228 Update.
11229 * ada-valprint.c (ada_val_print): Update.
11230 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11231 (create_excep_cond_exprs): Update.
11232
11233 2019-04-08 Tom Tromey <tom@tromey.com>
11234
11235 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11236 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11237 (TRY, CATCH, END_CATCH): Remove some definitions.
11238 * common/common-exceptions.c: Don't use GDB_XCPT.
11239 (catcher_list_size): Remove.
11240 (throw_exception, throw_it): Simplify.
11241
11242 2019-04-05 Tom Tromey <tom@tromey.com>
11243
11244 Revert the header-sorting patch.
11245 * ft32-tdep.c: Revert.
11246 * frv-tdep.c: Revert.
11247 * frv-linux-tdep.c: Revert.
11248 * frame.c: Revert.
11249 * frame-unwind.c: Revert.
11250 * frame-base.c: Revert.
11251 * fork-child.c: Revert.
11252 * findvar.c: Revert.
11253 * findcmd.c: Revert.
11254 * filesystem.c: Revert.
11255 * filename-seen-cache.h: Revert.
11256 * filename-seen-cache.c: Revert.
11257 * fbsd-tdep.c: Revert.
11258 * fbsd-nat.h: Revert.
11259 * fbsd-nat.c: Revert.
11260 * f-valprint.c: Revert.
11261 * f-typeprint.c: Revert.
11262 * f-lang.c: Revert.
11263 * extension.h: Revert.
11264 * extension.c: Revert.
11265 * extension-priv.h: Revert.
11266 * expprint.c: Revert.
11267 * exec.h: Revert.
11268 * exec.c: Revert.
11269 * exceptions.c: Revert.
11270 * event-top.c: Revert.
11271 * event-loop.c: Revert.
11272 * eval.c: Revert.
11273 * elfread.c: Revert.
11274 * dwarf2read.h: Revert.
11275 * dwarf2read.c: Revert.
11276 * dwarf2loc.c: Revert.
11277 * dwarf2expr.h: Revert.
11278 * dwarf2expr.c: Revert.
11279 * dwarf2-frame.c: Revert.
11280 * dwarf2-frame-tailcall.c: Revert.
11281 * dwarf-index-write.h: Revert.
11282 * dwarf-index-write.c: Revert.
11283 * dwarf-index-common.c: Revert.
11284 * dwarf-index-cache.h: Revert.
11285 * dwarf-index-cache.c: Revert.
11286 * dummy-frame.c: Revert.
11287 * dtrace-probe.c: Revert.
11288 * disasm.h: Revert.
11289 * disasm.c: Revert.
11290 * disasm-selftests.c: Revert.
11291 * dictionary.c: Revert.
11292 * dicos-tdep.c: Revert.
11293 * demangle.c: Revert.
11294 * dcache.h: Revert.
11295 * dcache.c: Revert.
11296 * darwin-nat.h: Revert.
11297 * darwin-nat.c: Revert.
11298 * darwin-nat-info.c: Revert.
11299 * d-valprint.c: Revert.
11300 * d-namespace.c: Revert.
11301 * d-lang.c: Revert.
11302 * ctf.c: Revert.
11303 * csky-tdep.c: Revert.
11304 * csky-linux-tdep.c: Revert.
11305 * cris-tdep.c: Revert.
11306 * cris-linux-tdep.c: Revert.
11307 * cp-valprint.c: Revert.
11308 * cp-support.c: Revert.
11309 * cp-namespace.c: Revert.
11310 * cp-abi.c: Revert.
11311 * corelow.c: Revert.
11312 * corefile.c: Revert.
11313 * continuations.c: Revert.
11314 * completer.h: Revert.
11315 * completer.c: Revert.
11316 * complaints.c: Revert.
11317 * coffread.c: Revert.
11318 * coff-pe-read.c: Revert.
11319 * cli-out.h: Revert.
11320 * cli-out.c: Revert.
11321 * charset.c: Revert.
11322 * c-varobj.c: Revert.
11323 * c-valprint.c: Revert.
11324 * c-typeprint.c: Revert.
11325 * c-lang.c: Revert.
11326 * buildsym.c: Revert.
11327 * buildsym-legacy.c: Revert.
11328 * build-id.h: Revert.
11329 * build-id.c: Revert.
11330 * btrace.c: Revert.
11331 * bsd-uthread.c: Revert.
11332 * breakpoint.h: Revert.
11333 * breakpoint.c: Revert.
11334 * break-catch-throw.c: Revert.
11335 * break-catch-syscall.c: Revert.
11336 * break-catch-sig.c: Revert.
11337 * blockframe.c: Revert.
11338 * block.c: Revert.
11339 * bfin-tdep.c: Revert.
11340 * bfin-linux-tdep.c: Revert.
11341 * bfd-target.c: Revert.
11342 * bcache.c: Revert.
11343 * ax-general.c: Revert.
11344 * ax-gdb.h: Revert.
11345 * ax-gdb.c: Revert.
11346 * avr-tdep.c: Revert.
11347 * auxv.c: Revert.
11348 * auto-load.c: Revert.
11349 * arm-wince-tdep.c: Revert.
11350 * arm-tdep.c: Revert.
11351 * arm-symbian-tdep.c: Revert.
11352 * arm-pikeos-tdep.c: Revert.
11353 * arm-obsd-tdep.c: Revert.
11354 * arm-nbsd-tdep.c: Revert.
11355 * arm-nbsd-nat.c: Revert.
11356 * arm-linux-tdep.c: Revert.
11357 * arm-linux-nat.c: Revert.
11358 * arm-fbsd-tdep.c: Revert.
11359 * arm-fbsd-nat.c: Revert.
11360 * arm-bsd-tdep.c: Revert.
11361 * arch-utils.c: Revert.
11362 * arc-tdep.c: Revert.
11363 * arc-newlib-tdep.c: Revert.
11364 * annotate.h: Revert.
11365 * annotate.c: Revert.
11366 * amd64-windows-tdep.c: Revert.
11367 * amd64-windows-nat.c: Revert.
11368 * amd64-tdep.c: Revert.
11369 * amd64-sol2-tdep.c: Revert.
11370 * amd64-obsd-tdep.c: Revert.
11371 * amd64-obsd-nat.c: Revert.
11372 * amd64-nbsd-tdep.c: Revert.
11373 * amd64-nbsd-nat.c: Revert.
11374 * amd64-nat.c: Revert.
11375 * amd64-linux-tdep.c: Revert.
11376 * amd64-linux-nat.c: Revert.
11377 * amd64-fbsd-tdep.c: Revert.
11378 * amd64-fbsd-nat.c: Revert.
11379 * amd64-dicos-tdep.c: Revert.
11380 * amd64-darwin-tdep.c: Revert.
11381 * amd64-bsd-nat.c: Revert.
11382 * alpha-tdep.c: Revert.
11383 * alpha-obsd-tdep.c: Revert.
11384 * alpha-nbsd-tdep.c: Revert.
11385 * alpha-mdebug-tdep.c: Revert.
11386 * alpha-linux-tdep.c: Revert.
11387 * alpha-linux-nat.c: Revert.
11388 * alpha-bsd-tdep.c: Revert.
11389 * alpha-bsd-nat.c: Revert.
11390 * aix-thread.c: Revert.
11391 * agent.c: Revert.
11392 * addrmap.c: Revert.
11393 * ada-varobj.c: Revert.
11394 * ada-valprint.c: Revert.
11395 * ada-typeprint.c: Revert.
11396 * ada-tasks.c: Revert.
11397 * ada-lang.c: Revert.
11398 * aarch64-tdep.c: Revert.
11399 * aarch64-ravenscar-thread.c: Revert.
11400 * aarch64-newlib-tdep.c: Revert.
11401 * aarch64-linux-tdep.c: Revert.
11402 * aarch64-linux-nat.c: Revert.
11403 * aarch64-fbsd-tdep.c: Revert.
11404 * aarch64-fbsd-nat.c: Revert.
11405 * aarch32-linux-nat.c: Revert.
11406
11407 2019-04-05 Tom Tromey <tom@tromey.com>
11408
11409 * ft32-tdep.c: Sort headers.
11410 * frv-tdep.c: Sort headers.
11411 * frv-linux-tdep.c: Sort headers.
11412 * frame.c: Sort headers.
11413 * frame-unwind.c: Sort headers.
11414 * frame-base.c: Sort headers.
11415 * fork-child.c: Sort headers.
11416 * findvar.c: Sort headers.
11417 * findcmd.c: Sort headers.
11418 * filesystem.c: Sort headers.
11419 * filename-seen-cache.h: Sort headers.
11420 * filename-seen-cache.c: Sort headers.
11421 * fbsd-tdep.c: Sort headers.
11422 * fbsd-nat.h: Sort headers.
11423 * fbsd-nat.c: Sort headers.
11424 * f-valprint.c: Sort headers.
11425 * f-typeprint.c: Sort headers.
11426 * f-lang.c: Sort headers.
11427 * extension.h: Sort headers.
11428 * extension.c: Sort headers.
11429 * extension-priv.h: Sort headers.
11430 * expprint.c: Sort headers.
11431 * exec.h: Sort headers.
11432 * exec.c: Sort headers.
11433 * exceptions.c: Sort headers.
11434 * event-top.c: Sort headers.
11435 * event-loop.c: Sort headers.
11436 * eval.c: Sort headers.
11437 * elfread.c: Sort headers.
11438 * dwarf2read.h: Sort headers.
11439 * dwarf2read.c: Sort headers.
11440 * dwarf2loc.c: Sort headers.
11441 * dwarf2expr.h: Sort headers.
11442 * dwarf2expr.c: Sort headers.
11443 * dwarf2-frame.c: Sort headers.
11444 * dwarf2-frame-tailcall.c: Sort headers.
11445 * dwarf-index-write.h: Sort headers.
11446 * dwarf-index-write.c: Sort headers.
11447 * dwarf-index-common.c: Sort headers.
11448 * dwarf-index-cache.h: Sort headers.
11449 * dwarf-index-cache.c: Sort headers.
11450 * dummy-frame.c: Sort headers.
11451 * dtrace-probe.c: Sort headers.
11452 * disasm.h: Sort headers.
11453 * disasm.c: Sort headers.
11454 * disasm-selftests.c: Sort headers.
11455 * dictionary.c: Sort headers.
11456 * dicos-tdep.c: Sort headers.
11457 * demangle.c: Sort headers.
11458 * dcache.h: Sort headers.
11459 * dcache.c: Sort headers.
11460 * darwin-nat.h: Sort headers.
11461 * darwin-nat.c: Sort headers.
11462 * darwin-nat-info.c: Sort headers.
11463 * d-valprint.c: Sort headers.
11464 * d-namespace.c: Sort headers.
11465 * d-lang.c: Sort headers.
11466 * ctf.c: Sort headers.
11467 * csky-tdep.c: Sort headers.
11468 * csky-linux-tdep.c: Sort headers.
11469 * cris-tdep.c: Sort headers.
11470 * cris-linux-tdep.c: Sort headers.
11471 * cp-valprint.c: Sort headers.
11472 * cp-support.c: Sort headers.
11473 * cp-namespace.c: Sort headers.
11474 * cp-abi.c: Sort headers.
11475 * corelow.c: Sort headers.
11476 * corefile.c: Sort headers.
11477 * continuations.c: Sort headers.
11478 * completer.h: Sort headers.
11479 * completer.c: Sort headers.
11480 * complaints.c: Sort headers.
11481 * coffread.c: Sort headers.
11482 * coff-pe-read.c: Sort headers.
11483 * cli-out.h: Sort headers.
11484 * cli-out.c: Sort headers.
11485 * charset.c: Sort headers.
11486 * c-varobj.c: Sort headers.
11487 * c-valprint.c: Sort headers.
11488 * c-typeprint.c: Sort headers.
11489 * c-lang.c: Sort headers.
11490 * buildsym.c: Sort headers.
11491 * buildsym-legacy.c: Sort headers.
11492 * build-id.h: Sort headers.
11493 * build-id.c: Sort headers.
11494 * btrace.c: Sort headers.
11495 * bsd-uthread.c: Sort headers.
11496 * breakpoint.h: Sort headers.
11497 * breakpoint.c: Sort headers.
11498 * break-catch-throw.c: Sort headers.
11499 * break-catch-syscall.c: Sort headers.
11500 * break-catch-sig.c: Sort headers.
11501 * blockframe.c: Sort headers.
11502 * block.c: Sort headers.
11503 * bfin-tdep.c: Sort headers.
11504 * bfin-linux-tdep.c: Sort headers.
11505 * bfd-target.c: Sort headers.
11506 * bcache.c: Sort headers.
11507 * ax-general.c: Sort headers.
11508 * ax-gdb.h: Sort headers.
11509 * ax-gdb.c: Sort headers.
11510 * avr-tdep.c: Sort headers.
11511 * auxv.c: Sort headers.
11512 * auto-load.c: Sort headers.
11513 * arm-wince-tdep.c: Sort headers.
11514 * arm-tdep.c: Sort headers.
11515 * arm-symbian-tdep.c: Sort headers.
11516 * arm-pikeos-tdep.c: Sort headers.
11517 * arm-obsd-tdep.c: Sort headers.
11518 * arm-nbsd-tdep.c: Sort headers.
11519 * arm-nbsd-nat.c: Sort headers.
11520 * arm-linux-tdep.c: Sort headers.
11521 * arm-linux-nat.c: Sort headers.
11522 * arm-fbsd-tdep.c: Sort headers.
11523 * arm-fbsd-nat.c: Sort headers.
11524 * arm-bsd-tdep.c: Sort headers.
11525 * arch-utils.c: Sort headers.
11526 * arc-tdep.c: Sort headers.
11527 * arc-newlib-tdep.c: Sort headers.
11528 * annotate.h: Sort headers.
11529 * annotate.c: Sort headers.
11530 * amd64-windows-tdep.c: Sort headers.
11531 * amd64-windows-nat.c: Sort headers.
11532 * amd64-tdep.c: Sort headers.
11533 * amd64-sol2-tdep.c: Sort headers.
11534 * amd64-obsd-tdep.c: Sort headers.
11535 * amd64-obsd-nat.c: Sort headers.
11536 * amd64-nbsd-tdep.c: Sort headers.
11537 * amd64-nbsd-nat.c: Sort headers.
11538 * amd64-nat.c: Sort headers.
11539 * amd64-linux-tdep.c: Sort headers.
11540 * amd64-linux-nat.c: Sort headers.
11541 * amd64-fbsd-tdep.c: Sort headers.
11542 * amd64-fbsd-nat.c: Sort headers.
11543 * amd64-dicos-tdep.c: Sort headers.
11544 * amd64-darwin-tdep.c: Sort headers.
11545 * amd64-bsd-nat.c: Sort headers.
11546 * alpha-tdep.c: Sort headers.
11547 * alpha-obsd-tdep.c: Sort headers.
11548 * alpha-nbsd-tdep.c: Sort headers.
11549 * alpha-mdebug-tdep.c: Sort headers.
11550 * alpha-linux-tdep.c: Sort headers.
11551 * alpha-linux-nat.c: Sort headers.
11552 * alpha-bsd-tdep.c: Sort headers.
11553 * alpha-bsd-nat.c: Sort headers.
11554 * aix-thread.c: Sort headers.
11555 * agent.c: Sort headers.
11556 * addrmap.c: Sort headers.
11557 * ada-varobj.c: Sort headers.
11558 * ada-valprint.c: Sort headers.
11559 * ada-typeprint.c: Sort headers.
11560 * ada-tasks.c: Sort headers.
11561 * ada-lang.c: Sort headers.
11562 * aarch64-tdep.c: Sort headers.
11563 * aarch64-ravenscar-thread.c: Sort headers.
11564 * aarch64-newlib-tdep.c: Sort headers.
11565 * aarch64-linux-tdep.c: Sort headers.
11566 * aarch64-linux-nat.c: Sort headers.
11567 * aarch64-fbsd-tdep.c: Sort headers.
11568 * aarch64-fbsd-nat.c: Sort headers.
11569 * aarch32-linux-nat.c: Sort headers.
11570
11571 2019-04-04 Tom Tromey <tom@tromey.com>
11572
11573 * varobj.c (varobj_create): Update.
11574 * rust-exp.y (struct rust_parser) <update_innermost_block,
11575 lookup_symbol>: New methods.
11576 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11577 Rename.
11578 (rust_parser::rust_lookup_type)
11579 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11580 * printcmd.c (display_command, do_one_display): Update.
11581 * parser-defs.h (struct parser_state) <parser_state>: Add
11582 "tracker" parameter.
11583 (block_tracker): New member.
11584 (class innermost_block_tracker) <innermost_block_tracker>: Add
11585 "types" parameter.
11586 <reset>: Remove method.
11587 (innermost_block): Don't declare.
11588 (null_post_parser): Update.
11589 * parse.c (innermost_block): Remove global.
11590 (write_dollar_variable): Update.
11591 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11592 Remove "tracker_types" parameter.
11593 (parse_expression): Add "tracker" parameter.
11594 (parse_expression_for_completion): Update.
11595 (null_post_parser): Add "tracker" parameter.
11596 * p-exp.y: Update rules.
11597 * m2-exp.y: Update rules.
11598 * language.h (struct language_defn) <la_post_parser>: Add
11599 "tracker" parameter.
11600 * go-exp.y: Update rules.
11601 * f-exp.y: Update rules.
11602 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11603 parameter.
11604 * d-exp.y: Update rules.
11605 * c-exp.y: Update rules.
11606 * breakpoint.c (set_breakpoint_condition): Create an
11607 innermost_block_tracker.
11608 (watch_command_1): Likewise.
11609 * ada-lang.c (resolve): Add "tracker" parameter.
11610 (resolve_subexp): Likewise.
11611 * ada-exp.y (write_var_from_sym): Update.
11612
11613 2019-04-04 Tom Tromey <tom@tromey.com>
11614
11615 * type-stack.h: New file.
11616 * type-stack.c: New file.
11617 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11618 type-stack.h.
11619 (insert_into_type_stack, insert_type, push_type, push_type_int)
11620 (insert_type_address_space, pop_type, pop_type_int)
11621 (pop_typelist, pop_type_stack, append_type_stack)
11622 (push_type_stack, get_type_stack, push_typelist)
11623 (follow_type_instance_flags, follow_types): Don't declare.
11624 * parse.c (type_stack): Remove global.
11625 (parse_exp_in_context): Update.
11626 (insert_into_type_stack, insert_type, push_type, push_type_int)
11627 (insert_type_address_space, pop_type, pop_type_int)
11628 (pop_typelist, pop_type_stack, append_type_stack)
11629 (push_type_stack, get_type_stack, push_typelist)
11630 (follow_type_instance_flags, follow_types): Remove (moved to
11631 type-stack.c).
11632 * f-exp.y (type_stack): New global.
11633 Update rules.
11634 (push_kind_type, f_parse): Update.
11635 * d-exp.y (type_stack): New global.
11636 Update rules.
11637 (d_parse): Update.
11638 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11639 Update rules.
11640 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11641 (HFILES_NO_SRCDIR): Add type-stack.h.
11642
11643 2019-04-04 Tom Tromey <tom@tromey.com>
11644
11645 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11646 (rust_parser::convert_ast_to_expression, rust_parse)
11647 (rust_lex_test_completion, rust_lex_tests): Update.
11648 * parser-defs.h (struct expr_completion_state): New.
11649 (struct parser_state) <parser_state>: Add completion parameter.
11650 <mark_struct_expression, mark_completion_tag>: New methods.
11651 <parse_completion, m_completion_state>: New members.
11652 (prefixify_expression, null_post_parser): Update.
11653 (mark_struct_expression, mark_completion_tag): Don't declare.
11654 * parse.c (parse_completion, expout_last_struct)
11655 (expout_tag_completion_type, expout_completion_name): Remove
11656 globals.
11657 (parser_state::mark_struct_expression)
11658 (parser_state::mark_completion_tag): Now methods.
11659 (prefixify_expression): Add last_struct parameter.
11660 (prefixify_subexp): Likewise.
11661 (parse_exp_1): Update.
11662 (parse_exp_in_context): Add cstate parameter. Update.
11663 (parse_expression_for_completion): Create an
11664 expr_completion_state.
11665 (null_post_parser): Add "completion" parameter.
11666 * p-exp.y: Update rules.
11667 (yylex): Update.
11668 * language.h (struct language_defn) <la_post_parser>: Add
11669 "completing" parameter.
11670 * go-exp.y: Update rules.
11671 (lex_one_token): Update.
11672 * expression.h (parse_completion): Don't declare.
11673 * d-exp.y: Update rules.
11674 (lex_one_token): Update rules.
11675 * c-exp.y: Update rules.
11676 (lex_one_token): Update.
11677 * ada-lang.c (resolve): Add "parse_completion" parameter.
11678 (resolve_subexp): Likewise.
11679 (ada_resolve_function): Likewise.
11680
11681 2019-04-04 Tom Tromey <tom@tromey.com>
11682
11683 * parser-defs.h (struct parser_state) <start_arglist,
11684 end_arglist>: New methods.
11685 <arglist_len, m_funcall_chain>: New members.
11686 (arglist_len, start_arglist, end_arglist): Don't declare.
11687 * parse.c (arglist_len, funcall_chain): Remove global.
11688 (start_arglist, end_arglist): Remove functions.
11689 (parse_exp_in_context): Update.
11690 * p-exp.y: Update rules.
11691 * m2-exp.y: Update rules.
11692 * go-exp.y: Update rules.
11693 * f-exp.y: Update rules.
11694 * d-exp.y: Update rules.
11695 * c-exp.y: Update rules.
11696
11697 2019-04-04 Tom Tromey <tom@tromey.com>
11698
11699 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11700 lex_operator, push_back>: New methods.
11701 Update all rules.
11702 (rust_parser::lex_hex, lex_escape): Rename and update.
11703 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11704 (rust_parser::lex_operator): Rename and update.
11705 (rust_parser::lex_number, rustyylex, rustyyerror)
11706 (rust_lex_test_init, rust_lex_test_sequence)
11707 (rust_lex_test_push_back, rust_lex_tests): Update.
11708 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11709 parameter.
11710 <lexptr, prev_lexptr>: New members.
11711 (lexptr, prev_lexptr): Don't declare.
11712 * parse.c (lexptr, prev_lexptr): Remove globals.
11713 (parse_exp_in_context): Update.
11714 * p-exp.y (yylex, yyerror): Update.
11715 * m2-exp.y (parse_number, yylex, yyerror): Update.
11716 * go-exp.y (lex_one_token, yyerror): Update.
11717 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11718 * d-exp.y (lex_one_token, yyerror): Update.
11719 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11720 (lex_one_token, yyerror): Update.
11721 * ada-lex.l (YY_INPUT): Update.
11722 (rewind_to_char): Update.
11723 * ada-exp.y (yyerror): Update.
11724
11725 2019-04-04 Tom Tromey <tom@tromey.com>
11726
11727 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11728 * parser-defs.h (struct parser_state) <parser_state>: Add new
11729 parameter.
11730 <comma_terminates>: New member.
11731 (comma_terminates): Don't declare global.
11732 * parse.c (comma_terminates): Remove global.
11733 (parse_exp_in_context): Update.
11734 * p-exp.y (yylex): Update.
11735 * m2-exp.y (yylex): Update.
11736 * go-exp.y (lex_one_token): Update.
11737 * f-exp.y (yylex): Update.
11738 * d-exp.y (lex_one_token): Update.
11739 * c-exp.y (lex_one_token): Update.
11740 * ada-lex.l: Update.
11741
11742 2019-04-04 Tom Tromey <tom@tromey.com>
11743
11744 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11745 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11746 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11747 * parser-defs.h (paren_depth): Don't declare.
11748 * parse.c (paren_depth): Remove global.
11749 (parse_exp_in_context): Update.
11750 * p-exp.y (paren_depth): New global.
11751 (pascal_parse): Initialize it.
11752 * m2-exp.y (paren_depth): New global.
11753 (m2_parse): Initialize it.
11754 * go-exp.y (paren_depth): New global.
11755 (go_parse): Initialize it.
11756 * f-exp.y (paren_depth): New global.
11757 (f_parse): Initialize it.
11758 * d-exp.y (paren_depth): New global.
11759 (d_parse): Initialize it.
11760 * c-exp.y (paren_depth): New global.
11761 (c_parse): Initialize it.
11762 * ada-lex.l (paren_depth): New global.
11763 (lexer_init): Initialize it.
11764
11765 2019-04-04 Tom Tromey <tom@tromey.com>
11766
11767 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11768 (rust_parser::convert_ast_to_type)
11769 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11770 * parser-defs.h (struct parser_state) <parser_state>: Add
11771 parameters. Initialize new members.
11772 <expression_context_block, expression_context_pc>: New members.
11773 * parse.c (expression_context_block, expression_context_pc):
11774 Remove globals.
11775 (parse_exp_in_context): Update.
11776 * p-exp.y: Update all rules.
11777 (yylex): Update.
11778 * m2-exp.y: Update all rules.
11779 (yylex): Update.
11780 * go-exp.y (yylex): Update.
11781 * f-exp.y (yylex): Update.
11782 * d-exp.y: Update all rules.
11783 (yylex): Update.
11784 * c-exp.y: Update all rules.
11785 (lex_one_token, classify_name, yylex, c_parse): Update.
11786 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11787
11788 2019-04-04 Tom Tromey <tom@tromey.com>
11789
11790 * gdbarch.h, gdbarch.c: Rebuild.
11791 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11792 * stap-probe.h:
11793 (struct stap_parse_info): Replace "parser_state" with
11794 "expr_builder".
11795 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11796 (parser_state): New class.
11797 * parse.c (expr_builder): Rename.
11798 (expr_builder::release): Rename.
11799 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11800 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11801 (write_exp_elt_longcst, write_exp_elt_floatcst)
11802 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11803 (write_exp_string_vector, write_exp_bitstring)
11804 (write_exp_msymbol, mark_struct_expression)
11805 (write_dollar_variable)
11806 (insert_type_address_space, increase_expout_size): Replace
11807 "parser_state" with "expr_builder".
11808 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11809 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11810 "parser_state" with "expr_builder".
11811
11812 2019-04-04 Tom Tromey <tom@tromey.com>
11813
11814 * rust-exp.y: Replace "parse_language" with method call.
11815 * p-exp.y:
11816 (yylex): Replace "parse_language" with method call.
11817 * m2-exp.y:
11818 (yylex): Replace "parse_language" with method call.
11819 * go-exp.y (classify_name): Replace "parse_language" with method
11820 call.
11821 * f-exp.y (yylex): Replace "parse_language" with method call.
11822 * d-exp.y (lex_one_token): Replace "parse_language" with method
11823 call.
11824 * c-exp.y:
11825 (lex_one_token, classify_name, yylex): Replace "parse_language"
11826 with method call.
11827 * ada-exp.y (find_primitive_type, type_char)
11828 (type_system_address): Replace "parse_language" with method call.
11829
11830 2019-04-04 Tom Tromey <tom@tromey.com>
11831
11832 * rust-exp.y: Replace "parse_gdbarch" with method call.
11833 * parse.c (write_dollar_variable, insert_type_address_space):
11834 Replace "parse_gdbarch" with method call.
11835 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11836 call.
11837 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11838 call.
11839 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11840 "parse_gdbarch" with method call.
11841 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11842 with method call.
11843 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11844 "parse_gdbarch" with method call.
11845 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11846 "parse_gdbarch" with method call.
11847 * c-exp.y (parse_type, parse_number, classify_name): Replace
11848 "parse_gdbarch" with method call.
11849 * ada-lex.l: Replace "parse_gdbarch" with method call.
11850 * ada-exp.y (parse_type, find_primitive_type, type_char)
11851 (type_system_address): Replace "parse_gdbarch" with method call.
11852
11853 2019-04-04 Tom Tromey <tom@tromey.com>
11854
11855 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11856 * stap-probe.c (stap_parse_argument): Update.
11857 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11858 initial_size parameter.
11859 * rust-exp.y (rust_lex_tests): Update.
11860 * parse.c (parser_state): Update.
11861 (parse_exp_in_context): Update.
11862 * parser-defs.h (struct parser_state) <parser_state>: Remove
11863 "initial_size" parameter.
11864
11865 2019-04-04 Tom Tromey <tom@tromey.com>
11866
11867 * parser-defs.h (increase_expout_size): Don't declare.
11868 * parse.c (increase_expout_size): Now static.
11869
11870 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11871
11872 * gnu-nat.c (gnu_nat_target::wait): Fix
11873 target_waitstatus_to_string call.
11874
11875 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * eval.c (evaluate_subexp_standard): Handle internal functions
11878 during Fortran function call handling.
11879
11880 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11881
11882 * NEWS: Mention new internal functions.
11883 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11884 (read_base_type): Use dwarf2_init_complex_target_type.
11885 * value.c (creal_internal_fn): New function.
11886 (cimag_internal_fn): New function.
11887 (_initialize_values): Register new internal functions.
11888
11889 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11890
11891 * infrun.c (stop_all_threads): If debug_infrun, always
11892 trace the wait status after wait_one, using
11893 target_waitstatus_to_string and target_pid_to_str.
11894 (handle_inferior_event): Replace various trace of
11895 wait status kind by a single trace.
11896 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11897 wait status kind image by target_waitstatus_to_string.
11898 * target/waitstatus.c (target_waitstatus_to_string): Fix
11899 obsolete comment.
11900
11901 2019-04-01 Tom Tromey <tromey@adacore.com>
11902
11903 PR symtab/23331:
11904 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11905
11906 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11907 Pedro Alves <palves@redhat.com>
11908
11909 * top.c (quit_force): Call 'finalize_values'.
11910 * value.c (finalize_values): New function.
11911 * value.h (finalize_values): Declare.
11912
11913 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11914
11915 * NEWS: Announce $_gdb_major and $_gdb_minor.
11916
11917 * top.c (init_gdb_version_vars): New function.
11918 (gdb_init): Call init_gdb_version_vars.
11919
11920 2019-03-29 Tom Tromey <tromey@adacore.com>
11921
11922 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11923 help text. Remove dead code.
11924
11925 2019-03-29 Keith Seitz <keiths@redhat.com>
11926
11927 From Siddhesh Poyarekar:
11928 * f-lang.h (f77_get_upperbound): Return LONGEST.
11929 (f77_get_lowerbound): Likewise.
11930 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11931 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11932 print them.
11933 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11934 plongest to format print it.
11935 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11936 (f77_get_upperbound): Likewise.
11937 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11938 LOWER_BOUND to LONGEST.
11939 (f77_create_arrayprint_offset_tbl): Likewise.
11940
11941 2019-03-29 Keith Seitz <keiths@redhat.com>
11942
11943 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11944 %s/pulongest for TYPE_LENGTH instead of %d in format
11945 strings.
11946 * ada-typerint.c (ada_print_type): Likewise.
11947 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11948 * compile/compile-c-support.c (generate_register_struct): Likewise.
11949 * gdbtypes.c (recursive_dump_type): Likewise.
11950 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11951 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11952 instead of %d in format strings.
11953 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11954 to std::min to ULONGEST.
11955 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11956 instead of %d in format strings.
11957 * tracepoint.c (info_scope_command): Likewise.
11958 * typeprint.c (print_offset_data::update)
11959 (print_offset_data::finish): Likewise.
11960 * xtensa-tdep.c (xtensa_store_return_value)
11961 (xtensa_push_dummy_call): Likewise.
11962
11963 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11964
11965 * windows-nat.c (display_selector): Fixed format specifications
11966 for 64-bit Cygwin.
11967
11968 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11969
11970 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11971
11972 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11973
11974 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11975 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11976 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11977 (nios2_linux_init_abi): Install it.
11978
11979 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11980
11981 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11982
11983 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11984
11985 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11986
11987 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11988 Tom Tromey <tromey@adacore.com>
11989
11990 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11991
11992 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11993
11994 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11995 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11996 method to compute the bounds of range types. Also print "[evaluated]"
11997 if the bounds' values come from a dynamic evaluation.
11998
11999 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12002 whitespace when pretty printing is on.
12003
12004 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12005
12006 * ppc-linux-nat.c: Add include.
12007
12008 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12009
12010 * NEWS: Mention AArch64 Pointer Authentication.
12011
12012 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12013
12014 * arm-linux-nat.c: Add include.
12015
12016 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12017
12018 * source-cache.c (source_cache::get_source_lines): Re-read
12019 fullname after calling open_source_file.
12020
12021 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12022
12023 * NEWS: Mention TLS support for FreeBSD.
12024
12025 2019-03-25 Tom Tromey <tromey@adacore.com>
12026
12027 * minsyms.c (BUNCH_SIZE): Update comment.
12028 (~minimal_symbol_reader): Remove old comment.
12029 (compact_minimal_symbols): Update comment.
12030 (minimal_symbol_reader::install): Remove old comment. Update
12031 other comments.
12032
12033 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12034
12035 * s390-linux-nat.c: Add include.
12036
12037 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12038
12039 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12040 Call linux_get_hwcap.
12041 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12042 Likewise.
12043 (aarch64_linux_get_hwcap): Remove function.
12044 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12045 declaration.
12046 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12047 linux_get_hwcap.
12048 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12049 * linux-tdep.c (linux_get_hwcap): Add function.
12050 (linux_get_hwcap2): Likewise.
12051 * linux-tdep.h (linux_get_hwcap): Add declaration.
12052 (linux_get_hwcap2): Likewise.
12053 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12054 (ppc_linux_get_hwcap2): Likewise.
12055 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12056 linux_get_hwcap.
12057 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12058 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12059 (ppc_linux_nat_target::read_description): Likewise.
12060 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12061 * s390-linux-nat.c: Likewise.
12062 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12063
12064 2019-03-24 Tom Tromey <tom@tromey.com>
12065
12066 * ada-lang.c (standard_lookup): Simplify initialization.
12067 (ada_lookup_symbol_nonlocal): Simplify return.
12068 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12069 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12070 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12071 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12072 initialization.
12073 * solib.c (solib_global_lookup): Simplify.
12074 * symtab.c (null_block_symbol): Remove.
12075 (symbol_cache_lookup): Simplify returns.
12076 (lookup_language_this): Simplify returns.
12077 (lookup_symbol_aux): Simplify return.
12078 (lookup_local_symbol): Simplify returns.
12079 (lookup_global_symbol_from_objfile): Simplify return.
12080 (lookup_symbol_in_objfile_symtabs)
12081 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12082 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12083 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12084 * cp-namespace.c (cp_lookup_bare_symbol)
12085 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12086 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12087 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12088 (cp_lookup_symbol_via_imports): Simplify initialization.
12089 (find_symbol_in_baseclass): Likewise.
12090 * symtab.h (null_block_symbol): Remove.
12091 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12092 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12093 (d_lookup_symbol_module): Likewise.
12094 (find_symbol_in_baseclass): Simplify initialization.
12095
12096 2019-03-24 Tom Tromey <tom@tromey.com>
12097
12098 * expression.h: Don't include symtab.h.
12099 (struct block): Forward declare.
12100
12101 2019-03-24 Tom Tromey <tom@tromey.com>
12102
12103 * c-exp.y (typebase): Remove casts.
12104 * gdbtypes.c (lookup_unsigned_typename, )
12105 (lookup_signed_typename): Remove cast.
12106 * eval.c (parse_to_comma_and_eval): Remove cast.
12107 * parse.c (write_dollar_variable): Remove cast.
12108 * block.h (struct block) <superblock>: Now const.
12109 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12110 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12111 (map_block): Make "block" const.
12112 * symfile.h (struct quick_symbol_functions)
12113 <map_matching_symbols>: Constify block argument to "callback".
12114 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12115 const.
12116 (find_pc_sect_compunit_symtab): Make "b" const.
12117 (find_symbol_at_address): Likewise.
12118 (search_symbols): Likewise.
12119 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12120 (dw2_debug_names_lookup_symbol): Likewise.
12121 (dw2_map_matching_symbols): Update.
12122 * p-valprint.c (pascal_val_print): Remove "block".
12123 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12124 (aux_add_nonlocal_symbols): Make "block" const.
12125 (resolve_subexp): Remove cast.
12126 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12127 const.
12128 (iterate_over_file_blocks): Likewise.
12129 * f-exp.y (%union) <bval>: Remove.
12130 * coffread.c (patch_opaque_types): Make "b" const.
12131 * spu-tdep.c (spu_catch_start): Make "block" const.
12132 * c-valprint.c (print_unpacked_pointer): Remove "block".
12133 * symmisc.c (dump_symtab_1): Make "b" const.
12134 (block_depth): Make "block" const.
12135 * d-exp.y (%union) <bval>: Remove.
12136 * cp-support.h (cp_lookup_rtti_type): Update.
12137 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12138 * psymtab.c (psym_lookup_symbol): Make "block" const.
12139 (maintenance_check_psymtabs): Make "b" const.
12140 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12141 (enumerate_locals, enumerate_args): Update.
12142 * python/py-symtab.c (stpy_global_block): Make "block" const.
12143 (stpy_static_block): Likewise.
12144 * inline-frame.c (block_starting_point_at): Make "new_block"
12145 const.
12146 * block.c (find_block_in_blockvector): Make return type const.
12147 (blockvector_for_pc_sect): Make "b" const.
12148 (find_block_in_blockvector): Make "b" const.
12149
12150 2019-03-23 Tom Tromey <tom@tromey.com>
12151
12152 * varobj.c (varobj_create): Update.
12153 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12154 * printcmd.c (display_command, do_one_display): Don't reset
12155 innermost_block.
12156 * parser-defs.h (enum innermost_block_tracker_type): Move to
12157 expression.h.
12158 (innermost_block): Update comment.
12159 * parse.c (parse_exp_1): Add tracker_types parameter.
12160 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12161 tracker_types parameter. Reset innermost_block.
12162 (parse_exp_in_context): Remove.
12163 (parse_expression_for_completion): Update.
12164 * objfiles.c (~objfile): Don't reset expression_context_block or
12165 innermost_block.
12166 * expression.h (enum innermost_block_tracker_type): Move from
12167 parser-defs.h.
12168 (parse_exp_1): Add tracker_types parameter.
12169 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12170 reset innermost_block.
12171
12172 2019-03-23 Tom Tromey <tom@tromey.com>
12173
12174 * objfiles.h: Include bcache.h.
12175
12176 2019-03-23 Tom Tromey <tom@tromey.com>
12177
12178 * linespec.c (get_current_search_block): Use
12179 scoped_restore_current_language.
12180 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12181
12182 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12183 Jiong Wang <jiong.wang@arm.com>
12184
12185 * aarch64-linux-tdep.c
12186 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12187 section.
12188 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12189
12190 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12191 Jiong Wang <jiong.wang@arm.com>
12192
12193 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12194 instructions.
12195 (aarch64_analyze_prologue_test): Add PACIASP test.
12196 (aarch64_prologue_prev_register): Unmask PC value.
12197
12198 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12199 Jiong Wang <jiong.wang@arm.com>
12200
12201 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12202 (aarch64_dwarf2_prev_register): Unmask PC value.
12203 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12204 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12205 DW_CFA_AARCH64_negate_ra_state.
12206 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12207
12208 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12209 Jiong Wang <jiong.wang@arm.com>
12210
12211 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12212 registers.
12213 (aarch64_pseudo_register_name): Likewise.
12214 (aarch64_pseudo_register_type): Likewise.
12215 (aarch64_pseudo_register_reggroup_p): Likewise.
12216 (aarch64_gdbarch_init): Add pauth registers.
12217 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12218 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12219 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12220 (struct gdbarch_tdep): Add regnum for ra_state.
12221
12222 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12223 Jiong Wang <jiong.wang@arm.com>
12224
12225 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12226
12227 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12228 Jiong Wang <jiong.wang@arm.com>
12229
12230 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12231 function.
12232 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12233 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12234 (aarch64_gdbarch_init): Add puth registers.
12235 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12236 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12237 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
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): Read PACA hwcap.
12244 * aarch64-linux-tdep.c
12245 (aarch64_linux_core_read_description): Likewise.
12246 (aarch64_linux_get_hwcap): New function.
12247 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12248 (aarch64_linux_get_hwcap): New declaration.
12249
12250 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12251 Jiong Wang <jiong.wang@arm.com>
12252
12253 * aarch64-linux-nat.c
12254 (aarch64_linux_nat_target::read_description): Add pauth param.
12255 * aarch64-linux-tdep.c
12256 (aarch64_linux_core_read_description): Likewise.
12257 * aarch64-tdep.c (struct target_desc): Add in pauth.
12258 (aarch64_read_description): Add pauth param.
12259 (aarch64_gdbarch_init): Likewise.
12260 * aarch64-tdep.h (aarch64_read_description): Likewise.
12261 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12262 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12263 * features/Makefile: Add new files.
12264 * features/aarch64-pauth.c: New file.
12265 * features/aarch64-pauth.xml: New file.
12266
12267 2019-03-20 Tom Tromey <tromey@adacore.com>
12268
12269 * infrun.c (handle_inferior_event): Rename from
12270 handle_inferior_event_1. Create a scoped_value_mark.
12271 (handle_inferior_event): Remove.
12272
12273 2019-03-19 Tom Tromey <tromey@adacore.com>
12274
12275 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12276 * infrun.h (print_stop_event): Add "displays" parameter.
12277 * infrun.c (print_stop_event): Add "displays" parameter.
12278
12279 2019-03-19 Pedro Alves <palves@redhat.com>
12280
12281 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12282 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12283 to -1. Fix TABs vs spaces.
12284 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12285 * tui/tui-out.h (tui_ui_out) Add intro comments.
12286 <m_line, m_start_of_line>: In-class initialize, and add describing
12287 comment.
12288
12289 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12290
12291 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12292 variable names.
12293 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12294
12295 2019-03-18 Pedro Alves <palves@redhat.com>
12296 Eli Zaretskii <eliz@gnu.org>
12297
12298 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12299 m_line and m_start_of_line.
12300
12301 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12302
12303 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12304 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12305 it returns a newline. This fixes a regression in TU mode, whereby
12306 the next line is output on the same screen line as the user input.
12307
12308 2019-03-18 Tom Tromey <tromey@adacore.com>
12309
12310 * minsyms.c (minimal_symbol_reader::install): Remove call to
12311 obstack_blank.
12312
12313 2019-03-18 Pedro Alves <palves@redhat.com>
12314
12315 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12316 New globals.
12317 (apply_style): New, factored out from ...
12318 (apply_ansi_escape): ... this. Handle reverse video mode.
12319 (tui_set_reverse_mode): New function.
12320 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12321 * tui/tui-winsource.c (tui_show_source_line): Use
12322 tui_set_reverse_mode instead of setting A_STANDOUT.
12323 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12324 New setter methods.
12325
12326 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12327
12328 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12329 Handle tabs.
12330
12331 2019-03-18 Tom Tromey <tromey@adacore.com>
12332
12333 * ada-lang.c (empty_array): Add "high" parameter.
12334 (ada_evaluate_subexp): Update.
12335
12336 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12337
12338 * unittests/string_view-selftests.c: Define
12339 _initialize_string_view_selftests unconditionally.
12340
12341 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12342
12343 PR gdb/24350
12344 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12345
12346 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12347
12348 PR gdb/24351
12349 * windows-nat.c (display_selector): Fix format specifiers.
12350
12351 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12352
12353 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12354 tui_refill_source_window instead of tui_refresh_win, to update the
12355 current execution line. This fixes redisplay of the current line
12356 when stepping through the code with "next" or "step".
12357
12358 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12359
12360 * source-cache.c (source_cache::get_source_lines): Call
12361 find_source_lines to initialize s->nlines. This fixes vertical
12362 scrolling of TUI source window when the DOWN arrow is pressed.
12363
12364 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12365
12366 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12367 linux-thread-db.c (_initialize_thread_db): Likewise.
12368
12369 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12370
12371 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12372 wclrtoeol in tui_show_source_line". This reverts changes made in
12373 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12374
12375 2019-03-15 Tom Tromey <tom@tromey.com>
12376
12377 * symtab.h (struct minimal_symbol): Derive from
12378 general_symbol_info.
12379 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12380 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12381 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12382 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12383 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12384 (MSYMBOL_SEARCH_NAME): Update.
12385 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12386 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12387 * minsyms.c (minimal_symbol_reader::record_full): Update.
12388
12389 2019-03-15 Tom Tromey <tom@tromey.com>
12390
12391 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12392
12393 2019-03-15 Tom Tromey <tom@tromey.com>
12394
12395 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12396 unique_xmalloc_ptr.
12397 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12398 Update.
12399 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12400 (build_minimal_symbol_hash_tables)
12401 (minimal_symbol_reader::install): Update.
12402
12403 2019-03-15 Tom Tromey <tom@tromey.com>
12404
12405 * symtab.c (create_demangled_names_hash): Update.
12406 (symbol_set_names): Update.
12407 * objfiles.h (struct objfile_per_bfd_storage)
12408 <demangled_names_hash>: Now an htab_up.
12409 * objfiles.c (objfile_per_bfd_storage): Simplify.
12410
12411 2019-03-15 Tom Tromey <tom@tromey.com>
12412
12413 * objfiles.h (struct objfile_per_bfd_storage): Declare
12414 destructor.
12415 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12416 New.
12417 (get_objfile_bfd_data): Use new. Don't initialize
12418 language_of_main.
12419 (free_objfile_per_bfd_storage): Remove.
12420 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12421
12422 2019-03-15 Tom Tromey <tom@tromey.com>
12423
12424 * symfile.c (reread_symbols): Update.
12425 * objfiles.c (objfile::objfile): Update.
12426 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12427 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12428 comment.
12429 (minimal_symbol_reader::install): Update.
12430 (terminate_minimal_symbol_table): Remove.
12431 * jit.c (jit_object_close_impl): Update.
12432
12433 2019-03-15 Tom Tromey <tom@tromey.com>
12434
12435 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12436 initializations.
12437
12438 2019-03-15 Tom Tromey <tom@tromey.com>
12439
12440 * objfiles.h (struct objfile_per_bfd_storage)
12441 <demangled_hash_languages>: Now a bitset.
12442 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12443 (lookup_minimal_symbol): Update.
12444
12445 2019-03-15 Tom Tromey <tom@tromey.com>
12446
12447 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12448 Don't return the symbol.
12449 * coffread.c (record_minimal_symbol): Use record_full.
12450
12451 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12452
12453 The MS-Windows port of ncurses fails to switch to a color pair if
12454 one or both of the colors are the implicit default colors. This
12455 change records the default colors when TUI is initialized, and
12456 then specifies them explicitly when a color pair uses the default
12457 colors. This allows color styling in TUI mode on MS-Windows.
12458
12459 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12460 ncurses_norm_attr.
12461 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12462 colors in ncurses_norm_attr.
12463 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12464 "none", replace it with the default color recorded in
12465 ncurses_norm_attr.
12466
12467 2019-03-14 Tom Tromey <tromey@adacore.com>
12468
12469 * source-cache.h (class source_cache) <get_source_lines>: Return
12470 std::string.
12471 * source-cache.c (source_cache::extract_lines): Handle case where
12472 first_pos==npos. Return std::string.
12473 (source_cache::get_source_lines): Update.
12474
12475 2019-03-14 Tom Tromey <tromey@adacore.com>
12476
12477 * NEWS: Add item for "style sources" commands.
12478 * source-cache.c (source_cache::get_source_lines): Check
12479 source_styling.
12480 * cli/cli-style.c (source_styling): New global.
12481 (_initialize_cli_style): Add "style sources" commands.
12482 (show_style_sources): New function.
12483 * cli/cli-style.h (source_styling): Declare.
12484
12485 2019-03-14 Pedro Alves <palves@redhat.com>
12486 Tom Tromey <tromey@adacore.com>
12487
12488 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12489 * tui/tui-winsource.c (tui_refill_source_window): New function,
12490 from...
12491 (tui_horizontal_source_scroll): ... here. Move some logic.
12492 * cli/cli-style.c (set_style_enabled): Notify new observable.
12493 * tui/tui-hooks.c (tui_redisplay_source): New function.
12494 (tui_attach_detach_observers): Attach or detach
12495 tui_redisplay_source.
12496 * observable.h (source_styling_changed): New observable.
12497 * observable.c: Define source_styling_changed observable.
12498
12499 2019-03-13 Tom Tromey <tromey@adacore.com>
12500
12501 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12502 (i386_gnu_nat_target::store_registers): Update.
12503 * target-debug.h (target_debug_print_std_string): New macro.
12504 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12505 * windows-tdep.c (display_one_tib): Update.
12506 * tui/tui-stack.c (tui_make_status_line): Update.
12507 * top.c (print_inferior_quit_action): Update.
12508 * thread.c (thr_try_catch_cmd): Update.
12509 (add_thread_with_info): Update.
12510 (thread_target_id_str): Update.
12511 (thr_try_catch_cmd): Update.
12512 (thread_command): Update.
12513 (thread_find_command): Update.
12514 * record-btrace.c (record_btrace_target::info_record)
12515 (record_btrace_resume_thread, record_btrace_target::resume)
12516 (record_btrace_cancel_resume, record_btrace_step_thread)
12517 (record_btrace_target::wait, record_btrace_target::wait)
12518 (record_btrace_target::wait, record_btrace_target::stop): Update.
12519 * progspace.c (print_program_space): Update.
12520 * process-stratum-target.c
12521 (process_stratum_target::thread_address_space): Update.
12522 * linux-fork.c (linux_fork_mourn_inferior)
12523 (detach_checkpoint_command, info_checkpoints_command)
12524 (linux_fork_context): Update.
12525 (linux_fork_detach): Update.
12526 (class scoped_switch_fork_info): Update.
12527 (delete_checkpoint_command): Update.
12528 * infrun.c (follow_fork_inferior): Update.
12529 (follow_fork_inferior): Update.
12530 (proceed_after_vfork_done): Update.
12531 (handle_vfork_child_exec_or_exit): Update.
12532 (follow_exec): Update.
12533 (displaced_step_prepare_throw): Update.
12534 (displaced_step_restore): Update.
12535 (start_step_over): Update.
12536 (resume_1): Update.
12537 (clear_proceed_status_thread): Update.
12538 (proceed): Update.
12539 (print_target_wait_results): Update.
12540 (do_target_wait): Update.
12541 (context_switch): Update.
12542 (stop_all_threads): Update.
12543 (restart_threads): Update.
12544 (finish_step_over): Update.
12545 (handle_signal_stop): Update.
12546 (switch_back_to_stepped_thread): Update.
12547 (keep_going_pass_signal): Update.
12548 (print_exited_reason): Update.
12549 (normal_stop): Update.
12550 * inferior.c (inferior_pid_to_str): Change return type.
12551 (print_selected_inferior): Update.
12552 (add_inferior): Update.
12553 (detach_inferior): Update.
12554 * dummy-frame.c (fprint_dummy_frames): Update.
12555 * dcache.c (dcache_info_1): Update.
12556 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12557 (btrace_fetch, btrace_clear): Update.
12558 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12559 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12560 type.
12561 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12562 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12563 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12564 * gdbarch.c, gdbarch.h: Rebuild.
12565 * gdbarch.sh (core_pid_to_str): Change return type.
12566 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12567 return type.
12568 (windows_nat_target::pid_to_str): Change return type.
12569 (windows_delete_thread): Update.
12570 (windows_nat_target::attach): Update.
12571 (windows_nat_target::files_info): Update.
12572 * target-delegates.c: Rebuild.
12573 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12574 return type.
12575 (sol_thread_target::pid_to_str): Change return type.
12576 * remote.c (class remote_target) <pid_to_str>: Change return
12577 type.
12578 (remote_target::pid_to_str): Change return type.
12579 (extended_remote_target::attach, remote_target::remote_stop_ns)
12580 (remote_target::remote_notif_remove_queued_reply)
12581 (remote_target::push_stop_reply, remote_target::disable_btrace):
12582 Update.
12583 (extended_remote_target::attach): Update.
12584 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12585 type.
12586 (gdbsim_target::pid_to_str): Change return type.
12587 * ravenscar-thread.c (struct ravenscar_thread_target)
12588 <pid_to_str>: Change return type.
12589 (ravenscar_thread_target::pid_to_str): Change return type.
12590 * procfs.c (class procfs_target) <pid_to_str>: Change return
12591 type.
12592 (procfs_target::pid_to_str): Change return type.
12593 (procfs_target::attach): Update.
12594 (procfs_target::detach): Update.
12595 (procfs_target::fetch_registers): Update.
12596 (procfs_target::store_registers): Update.
12597 (procfs_target::wait): Update.
12598 (procfs_target::files_info): Update.
12599 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12600 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12601 return type.
12602 (nto_procfs_target::pid_to_str): Change return type.
12603 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12604 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12605 return type.
12606 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12607 (exit_lwp): Update.
12608 (attach_proc_task_lwp_callback, get_detach_signal)
12609 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12610 (linux_nat_target::resume, wait_lwp, stop_callback)
12611 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12612 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12613 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12614 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12615 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12616 type.
12617 (inf_ptrace_target::attach): Update.
12618 (inf_ptrace_target::files_info): Update.
12619 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12620 type.
12621 (go32_nat_target::pid_to_str): Change return type.
12622 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12623 (gnu_nat_target::wait): Update.
12624 (gnu_nat_target::wait): Update.
12625 (gnu_nat_target::resume): Update.
12626 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12627 (fbsd_nat_target::wait): Update.
12628 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12629 type.
12630 (darwin_nat_target::attach): Update.
12631 * corelow.c (class core_target) <pid_to_str>: Change return type.
12632 (core_target::pid_to_str): Change return type.
12633 * target.c (normal_pid_to_str): Change return type.
12634 (default_pid_to_str): Likewise.
12635 (target_pid_to_str): Change return type.
12636 (target_translate_tls_address): Update.
12637 (target_announce_detach): Update.
12638 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12639 return type.
12640 (bsd_uthread_target::pid_to_str): Change return type.
12641 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12642 type.
12643 (bsd_kvm_target::pid_to_str): Change return type.
12644 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12645 return type.
12646 (aix_thread_target::pid_to_str): Change return type.
12647 * target.h (struct target_ops) <pid_to_str>: Change return type.
12648 (target_pid_to_str, normal_pid_to_str): Likewise.
12649 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12650 type.
12651 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12652 type.
12653 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12654 return type.
12655 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12656 type.
12657 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12658 type.
12659 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12660 return type.
12661
12662 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12663
12664 * NEWS: Mention that the new default MI version is 3. Mention
12665 changes to the output of commands and events that deal with
12666 multi-location breakpoints.
12667 * breakpoint.c: Include "mi/mi-out.h".
12668 (print_one_breakpoint): Change output syntax if using MI version
12669 >= 3.
12670 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12671 New.
12672 (mi_multi_location_breakpoint_output_fixed): New.
12673 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12674 (mi_cmd_fix_multi_location_breakpoint_output): New.
12675 (mi_multi_location_breakpoint_output_fixed): New.
12676 * mi/mi-cmds.c (mi_cmds): Register command
12677 -fix-multi-location-breakpoint-output.
12678 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12679 interpreter "mi".
12680
12681 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12682
12683 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12684 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12685 instantiate mi_ui_out based on interpreter name.
12686 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12687 * mi/mi-main.c (mi_load_progress): Likewise.
12688
12689 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12690
12691 * NEWS: Combine separate "New targets" sections for 8.3.
12692
12693 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12694
12695 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12696 (ppcfbsd_init_abi): Install gdbarch
12697 "fetch_tls_load_module_address" and "get_thread_local_address"
12698 methods.
12699
12700 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12701
12702 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12703 (riscv_fbsd_init_abi): Install gdbarch
12704 "fetch_tls_load_module_address" and "get_thread_local_address"
12705 methods.
12706
12707 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12708
12709 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12710 (i386fbsd_init_abi): Install gdbarch
12711 "fetch_tls_load_module_address" and "get_thread_local_address"
12712 methods.
12713
12714 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12715
12716 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12717 (amd64fbsd_init_abi): Install gdbarch
12718 "fetch_tls_load_module_address" and "get_thread_local_address"
12719 methods.
12720
12721 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12722
12723 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12724 (struct fbsd_pspace_data): New type.
12725 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12726 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12727 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12728 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12729 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12730
12731 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12732
12733 * gdbtypes.c (lookup_struct_elt): New function.
12734 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12735 * gdbtypes.h (struct struct_elt): New type.
12736 (lookup_struct_elt): New prototype.
12737
12738 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12739
12740 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12741 remove disabled code block.
12742
12743 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12744
12745 * gdbarch.sh (get_thread_local_address): New method.
12746 * gdbarch.h, gdbarch.c: Regenerate.
12747 * target.c (target_translate_tls_address): Use
12748 gdbarch_get_thread_local_address if present instead of
12749 target::get_thread_local_address.
12750
12751 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12752
12753 * target.h (target::get_thread_local_address): Update comment.
12754
12755 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12756
12757 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12758 objfile->separate_debug_objfile_backlink if not NULL.
12759
12760 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12761
12762 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12763 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12764 (amd64bsd_store_inferior_registers): Likewise.
12765 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12766 Enable segment base registers.
12767 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12768 PT_GETFSBASE and PT_GETGSBASE.
12769 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12770 PT_SETGSBASE.
12771 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12772 segment base registers.
12773 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12774
12775 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12776
12777 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12778 Update calls to i386_target_description to add 'segments'
12779 parameter.
12780 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12781 add segment base registers.
12782 * arch/i386.c (i386_create_target_description): Add 'segments'
12783 parameter to enable segment base registers.
12784 * arch/i386.h (i386_create_target_description): Likewise.
12785 * features/i386/32bit-segments.xml: New file.
12786 * features/i386/32bit-segments.c: Generate.
12787 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12788 call to i386_target_description to add 'segments' parameter.
12789 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12790 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12791 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12792 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12793 if feature is present.
12794 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12795 Add 'segments' parameter to call to i386_target_description.
12796 (i386_target_description): Add 'segments' parameter to enable
12797 segment base registers.
12798 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12799 to call to i386_target_description.
12800 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12801 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12802 Define I386_NUM_REGS.
12803 (i386_target_description): Add 'segments' parameter to enable
12804 segment base registers.
12805
12806 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12807
12808 PR/24325
12809 * source-cache.c: #undef open and close, to avoid unresolved
12810 externals during linking.
12811
12812 2019-03-12 Tom Tromey <tromey@adacore.com>
12813
12814 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12815 const. Add initializers.
12816 (_initialize_remote): Don't initialize ptid globals.
12817
12818 2019-03-12 Pedro Alves <palves@redhat.com>
12819
12820 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12821
12822 2019-03-12 Pedro Alves <palves@redhat.com>
12823
12824 * cp-name-parser.y (main): Remove unused 'len' variable.
12825
12826 2019-03-12 Tom Tromey <tromey@adacore.com>
12827
12828 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12829 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12830
12831 2019-03-12 Tom Tromey <tromey@adacore.com>
12832
12833 * linux-nat.c (iterate_over_lwps): Update.
12834 (stop_callback): Remove parameter.
12835 (stop_wait_callback, detach_callback, resume_set_callback)
12836 (select_singlestep_lwp_callback, set_ignore_sigint)
12837 (status_callback, resumed_callback, resume_clear_callback)
12838 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12839 data parameter.
12840 (linux_nat_target::detach, linux_nat_target::resume)
12841 (linux_stop_and_wait_all_lwps, select_event_lwp)
12842 (linux_nat_filter_event, linux_nat_wait_1)
12843 (linux_nat_target::kill, linux_nat_target::stop)
12844 (linux_nat_target::stop): Update.
12845 (linux_nat_resume_callback): Change type.
12846 (resume_stopped_resumed_lwps, count_events_callback)
12847 (select_event_lwp_callback): Likewise.
12848 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12849 * arm-linux-nat.c (struct update_registers_data): Remove.
12850 (update_registers_callback): Change type.
12851 (arm_linux_insert_hw_breakpoint1): Update.
12852 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12853 parameter.
12854 (x86_linux_dr_set_addr): Update.
12855 (x86_linux_dr_set_control): Update.
12856 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12857 (iterate_over_lwps): Use gdb::function_view.
12858 * nat/aarch64-linux-hw-point.c (struct
12859 aarch64_dr_update_callback_param): Remove.
12860 (debug_reg_change_callback): Change type.
12861 (aarch64_notify_debug_reg_change): Update.
12862 * s390-linux-nat.c (s390_refresh_per_info): Update.
12863
12864 2019-03-11 Tom Tromey <tromey@adacore.com>
12865
12866 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12867 redundant assignment to "this_cu".
12868
12869 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12870
12871 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12872
12873 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12876 from...
12877 (rank_one_type): ... this.
12878
12879 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12882 from...
12883 (rank_one_type): ... this.
12884
12885 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12886
12887 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12888 from...
12889 (rank_one_type): ... this.
12890
12891 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12892
12893 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12894 from...
12895 (rank_one_type): ... this.
12896
12897 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12898
12899 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12900 from...
12901 (rank_one_type): ... this.
12902
12903 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12904
12905 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12906 from...
12907 (rank_one_type): ... this.
12908
12909 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12910
12911 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12912 from...
12913 (rank_one_type): ... this.
12914
12915 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12916
12917 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12918 from...
12919 (rank_one_type): ... this.
12920
12921 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12922
12923 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12924 from...
12925 (rank_one_type): ... this.
12926
12927 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12928
12929 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12930 from...
12931 (rank_one_type): ... this.
12932
12933 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12934
12935 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12936 from...
12937 (rank_one_type): ... this.
12938
12939 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12940
12941 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12942 from...
12943 (rank_one_type): ... this.
12944
12945 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12946
12947 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12948 inferior-events' shows the example events.
12949
12950 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12951
12952 Support styling on native MS-Windows console
12953
12954 PR/24315
12955 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12956 on MS-Windows if $TERM is not defined.
12957
12958 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12959
12960 * posix-hdep.c (gdb_console_fputs):
12961 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12962 functions.
12963 * ui-file.h (gdb_console_fputs): Add prototype.
12964
12965 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12966 back to fputs only if the former returns zero.
12967
12968 2019-03-07 Tom Tromey <tom@tromey.com>
12969
12970 * symmisc.c (print_symbol_bcache_statistics): Update.
12971 (print_objfile_statistics): Update.
12972 * symfile.c (allocate_symtab): Update.
12973 * stabsread.c: Don't include bcache.h.
12974 * psymtab.h (struct psymbol_bcache): Don't declare.
12975 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12976 (psymbol_bcache_init, psymbol_bcache_free)
12977 (psymbol_bcache_get_bcache): Don't declare.
12978 * psymtab.c (struct psymbol_bcache): Remove.
12979 (psymtab_storage::psymtab_storage): Update.
12980 (psymtab_storage::~psymtab_storage): Update.
12981 (psymbol_bcache_init, psymbol_bcache_free)
12982 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12983 (add_psymbol_to_bcache): Update.
12984 (allocate_psymtab): Update.
12985 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12986 macro_cache>: No longer pointers.
12987 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12988 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12989 * macrotab.c (macro_bcache): Update.
12990 * macroexp.c: Don't include bcache.h.
12991 * gdbtypes.c (check_types_worklist): Update.
12992 (types_deeply_equal): Remove TRY/CATCH. Update.
12993 * elfread.c (elf_symtab_read): Update.
12994 * dwarf2read.c: Don't include bcache.h.
12995 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12996 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12997 (print_bcache_statistics, bcache_memory_used): Don't declare.
12998 (struct bcache): Move from bcache.c. Add constructor, destructor,
12999 methods. Rename all data members.
13000 * bcache.c (struct bcache): Move to bcache.h.
13001 (bcache::expand_hash_table): Rename from expand_hash_table.
13002 (bcache): Remove.
13003 (bcache::insert): Rename from bcache_full.
13004 (bcache::compare): Rename from bcache_compare.
13005 (bcache_xmalloc): Remove.
13006 (bcache::~bcache): Rename from bcache_xfree.
13007 (bcache::print_statistics): Rename from print_bcache_statistics.
13008 (bcache::memory_used): Rename from bcache_memory_used.
13009
13010 2019-03-07 Pedro Alves <palves@redhat.com>
13011
13012 * infrun.c (normal_stop): Also check for
13013 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13014
13015 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13016
13017 * f-lang.c (value_from_host_double): Moved to...
13018 * value.c (value_from_host_double): ...here.
13019 * value.h (value_from_host_double): Declare.
13020 * guile/scm-math.c (vlscm_convert_typed_number): Use
13021 value_from_host_double.
13022 (vlscm_convert_number): Likewise.
13023 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13024 * python/py-value.c (convert_value_from_python): Likewise.
13025
13026 2019-03-06 Tom Tromey <tom@tromey.com>
13027
13028 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13029
13030 2019-03-06 Tom Tromey <tom@tromey.com>
13031
13032 * utils.h (free_current_contents): Don't declare.
13033 * utils.c (free_current_contents): Remove.
13034
13035 2019-03-06 Tom Tromey <tom@tromey.com>
13036
13037 * top.c (quit_force): Update.
13038 * main.c (captured_command_loop): Update.
13039 * common/new-op.c (operator new): Update.
13040 * common/common-exceptions.c (struct catcher)
13041 <save_cleanup_chain>: Remove member.
13042 (exceptions_state_mc_init): Update.
13043 (exception_try_scope_entry): Return nullptr.
13044 (exception_try_scope_exit, exception_rethrow)
13045 (throw_exception_sjlj, throw_exception_cxx): Update.
13046 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13047 (all_cleanups, do_cleanups, discard_cleanups)
13048 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13049 (restore_cleanups, restore_final_cleanups): Don't declare.
13050 (do_final_cleanups): Remove parameter.
13051 * common/cleanups.c (cleanup_chain, make_cleanup)
13052 (make_cleanup_dtor, all_cleanups, do_cleanups)
13053 (discard_my_cleanups, discard_cleanups)
13054 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13055 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13056 (null_cleanup): Remove.
13057 (do_final_cleanups): Remove parameter.
13058
13059 2019-03-06 Tom Tromey <tom@tromey.com>
13060
13061 * remote.c (remote_target::remote_parse_stop_reply): Use
13062 unique_xmalloc_ptr.
13063
13064 2019-03-06 Tom Tromey <tom@tromey.com>
13065
13066 * stabsread.c (struct stabs_field_info): Rename from field_info.
13067 <list, fnlist>: Add initializers.
13068 <obstack>: New member.
13069 (read_member_functions, read_struct_fields, read_baseclasses):
13070 Allocate on obstack. Don't use cleanups.
13071 (read_one_struct_field, read_member_functions, read_struct_fields)
13072 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13073 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13074 (read_struct_type): Update.
13075
13076 2019-03-06 Tom Tromey <tom@tromey.com>
13077
13078 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13079 * common/filestuff.h (make_cleanup_close): Don't declare.
13080 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13081 Remove.
13082
13083 2019-03-06 Tom Tromey <tom@tromey.com>
13084
13085 * solib-aix.c: Use make_scope_exit.
13086
13087 2019-03-06 Tom Tromey <tom@tromey.com>
13088
13089 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13090 Use make_scope_exit.
13091
13092 2019-03-06 Tom Tromey <tom@tromey.com>
13093
13094 * solib-svr4.c (disable_probes_interface): Remove parameter.
13095 (svr4_handle_solib_event): Use make_scope_exit.
13096
13097 2019-03-06 Tom Tromey <tom@tromey.com>
13098
13099 * remote.c (struct stop_reply_deleter): Remove.
13100 (stop_reply_up): Update.
13101 (struct stop_reply): Derive from notif_event. Don't typedef.
13102 <regcache>: Now a std::vector.
13103 (stop_reply_xfree): Remove.
13104 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13105 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13106 (remote_target::discard_pending_stop_replies): Use delete.
13107 (remote_target::remote_parse_stop_reply): Update.
13108 (remote_target::process_stop_reply): Update.
13109 * remote-notif.h (struct notif_event): Add virtual destructor.
13110 Remove "dtr" member.
13111 (struct notif_client) <alloc_event>: Return a unique_ptr.
13112 (notif_event_xfree): Don't declare.
13113 (notif_event_up): New typedef.
13114 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13115 (notif_event_xfree, do_notif_event_xfree): Remove.
13116 (remote_notif_state_xfree): Update.
13117
13118 2019-03-06 Tom Tromey <tom@tromey.com>
13119
13120 * infrun.c (displaced_step_clear_cleanup): Now a
13121 forward_scope_exit type.
13122 (displaced_step_prepare_throw): Update.
13123 (displaced_step_fixup): Update.
13124
13125 2019-03-06 Tom Tromey <tom@tromey.com>
13126
13127 * inferior.h (class inferior): Update comment.
13128 * gdbthread.h (class thread_info): Update comment.
13129
13130 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13131 Tom Tromey <tom@tromey.com>
13132
13133 * stabsread.h (struct stab_section_list): Remove.
13134 (coffstab_build_psymtabs): Update.
13135 * dbxread.c (symbuf_sections): Now a std::vector.
13136 (sect_idx): New global.
13137 (fill_symbuf): Update.
13138 (coffstab_build_psymtabs): Change type of stabsects parameter.
13139 Update.
13140 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13141 std::vector.
13142 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13143 (coff_locate_sections): Update.
13144 (coff_symfile_read): Remove cleanups. Update.
13145 (init_stringtab): Add storage parameter.
13146 (free_stringtab, free_stringtab_cleanup): Remove.
13147 (init_lineno): Add storage parameter.
13148 (free_linetab, free_linetab_cleanup): Remove.
13149
13150 2019-03-06 Pedro Alves <palves@redhat.com>
13151
13152 * linux-fork.c (fork_info::clobber_regs): Delete.
13153 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13154 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13155 comment. Adjust.
13156 (scoped_switch_fork_info::scoped_switch_fork_info)
13157 (checkpoint_command, linux_fork_context): Adjust
13158 fork_save_infrun_state calls.
13159
13160 2019-03-06 Pedro Alves <palves@redhat.com>
13161
13162 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13163 (inf_has_multiple_threads): Return 'bool' and rewrite using
13164 inferior_info::threads().
13165
13166 2019-03-06 Pedro Alves <palves@redhat.com>
13167
13168 * linux-fork.c: Include <list>.
13169 (fork_list): Now a std::list instance.
13170 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13171 (forks_exist_p, find_last_fork): Adjust.
13172 (new_fork): Delete.
13173 (one_fork_p): New.
13174 (add_fork): Adjust.
13175 (free_fork): Delete, folded into fork_info::~fork_info().
13176 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13177 Adjust.
13178 (init_fork_list): Delete.
13179 (linux_fork_killall, linux_fork_mourn_inferior)
13180 (linux_fork_detach, info_checkpoints_command): Adjust.
13181 (_initialize_linux_fork): No longer call init_fork_list.
13182
13183 2019-03-06 Pedro Alves <palves@redhat.com>
13184
13185 * linux-fork.c (new_fork): New, split out of ...
13186 (add_fork): ... this. Return void. Move "first fork" special
13187 case from here, to ...
13188 (checkpoint_command): ... here.
13189 * linux-linux.h (add_fork): Return void.
13190
13191 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13192
13193 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13194
13195 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13196 Chris January <chris.january@arm.com>
13197 David Lecomber <david.lecomber@arm.com>
13198
13199 * f-exp.y: New token, UNOP_INTRINSIC.
13200 (exp): New pattern using UNOP_INTRINSIC token.
13201 (f77_keywords): Add 'abs' keyword.
13202 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13203 (value_from_host_double): New function.
13204 (evaluate_subexp_f): Support UNOP_ABS.
13205
13206 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13207
13208 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13209 types.
13210
13211 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13212
13213 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13214 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13215 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13216
13217 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13218
13219 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13220
13221 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13222 Chris January <chris.january@arm.com>
13223
13224 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13225 * f-exp.y: Define 'KIND' token.
13226 (exp): New pattern for KIND expressions.
13227 (ptype): Handle types with a kind extension.
13228 (direct_abs_decl): Extend to spot kind extensions.
13229 (f77_keywords): Add 'kind' to the list.
13230 (push_kind_type): New function.
13231 (convert_to_kind_type): New function.
13232 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13233 * parse.c (operator_length_standard): Likewise.
13234 * parser-defs.h (enum type_pieces): Add tp_kind.
13235 * std-operator.def: Add UNOP_KIND.
13236
13237 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * f-exp.y (f_parse): Set yydebug.
13240
13241 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13242
13243 * f-lang.c (evaluate_subexp_f): New function.
13244 (exp_descriptor_f): New global.
13245 (f_language_defn): Use exp_descriptor_f instead of
13246 exp_descriptor_standard.
13247
13248 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13249
13250 * f-exp.y (struct token): Add comments.
13251 (dot_ops): Remove uppercase versions and the end marker.
13252 (f77_keywords): Likewise.
13253 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13254 entries in the dot_ops array are case insensitive, and use
13255 strncasecmp to compare strings. Also some whitespace cleanup in
13256 this area. Similar for the f77_keywords array, except entries in
13257 this list might be case sensitive.
13258
13259 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13260
13261 * f-exp.y (struct f77_boolean_val): Add comments.
13262 (boolean_values): Remove uppercase versions, and end marker.
13263 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13264 and use strncasecmp to achieve case insensitivity. Additionally,
13265 perform whitespace cleanup around this code.
13266
13267 2019-03-06 Tom Tromey <tromey@adacore.com>
13268
13269 * remote-sim.c (gdbsim_target_open): Use result of
13270 gdb_argv::release.
13271
13272 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13273 Dirk Schubert <dirk.schubert@arm.com>
13274 Chris January <chris.january@arm.com>
13275
13276 * eval.c (evaluate_subexp_standard): Call Fortran argument
13277 wrapping logic.
13278 * f-lang.c (struct value): A value which can be passed into a
13279 Fortran function call.
13280 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13281 where appropriate.
13282 (struct type): Value ready for a Fortran function call.
13283 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13284 is needed.
13285 * f-lang.h (fortran_argument_convert): Declaration.
13286 (fortran_preserve_arg_pointer): Declaration.
13287 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13288
13289 2019-03-05 Tom Tromey <tromey@adacore.com>
13290
13291 * python/py-prettyprint.c (print_string_repr): Remove #if.
13292 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13293
13294 2019-03-05 Tom Tromey <tromey@adacore.com>
13295
13296 * target.c (the_dummy_target): Move later. Change type to
13297 "dummy_target".
13298 (initialize_targets): Don't initialize the_dummy_target.
13299
13300 2019-03-05 Tom Tromey <tromey@adacore.com>
13301
13302 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13303 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13304
13305 2019-03-05 Tom Tromey <tromey@adacore.com>
13306
13307 * windows-nat.c (windows_nat_target::attach)
13308 (windows_nat_target::detach): Don't call gdb_flush.
13309 * valprint.c (generic_val_print, val_print, val_print_string):
13310 Don't call gdb_flush.
13311 * utils.c (defaulted_query): Don't call gdb_flush.
13312 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13313 * target.c (target_announce_detach): Don't call gdb_flush.
13314 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13315 * remote.c (extended_remote_target::attach): Don't call
13316 gdb_flush.
13317 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13318 * printcmd.c (do_examine): Don't call gdb_flush.
13319 (info_display_command): Don't call gdb_flush.
13320 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13321 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13322 * memattr.c (info_mem_command): Don't call gdb_flush.
13323 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13324 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13325 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13326 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13327 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13328 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13329 (gnu_nat_target::detach): Don't call gdb_flush.
13330 * f-valprint.c (f_val_print): Don't call gdb_flush.
13331 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13332 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13333 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13334 gdb_flush.
13335 * c-valprint.c (c_val_print): Don't call gdb_flush.
13336 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13337
13338 2019-03-05 Tom Tromey <tromey@adacore.com>
13339
13340 * varobj.c (update_dynamic_varobj_children): Update.
13341 (install_default_visualizer): Use reset, not release.
13342 * value.c (set_internalvar): Update.
13343 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13344 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13345 ATTRIBUTE_UNUSED_RESULT.
13346
13347 2019-03-05 Tom Tromey <tromey@adacore.com>
13348
13349 * remote.c (class scoped_remote_fd) <release>: Add
13350 ATTRIBUTE_UNUSED_RESULT.
13351
13352 2019-03-05 Tom Tromey <tromey@adacore.com>
13353
13354 * macroexp.c (struct macro_buffer) <release>: Add
13355 ATTRIBUTE_UNUSED_RESULT.
13356
13357 2019-03-05 Tom Tromey <tromey@adacore.com>
13358
13359 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13360 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13361 ATTRIBUTE_UNUSED_RESULT.
13362
13363 2019-03-05 Tom Tromey <tromey@adacore.com>
13364
13365 * common/scoped_fd.h (class scoped_fd) <release>: Add
13366 ATTRIBUTE_UNUSED_RESULT.
13367
13368 2019-03-05 Tom Tromey <tromey@adacore.com>
13369
13370 * parser-defs.h (struct parser_state) <release>: Add
13371 ATTRIBUTE_UNUSED_RESULT.
13372
13373 2019-03-05 Tom Tromey <tromey@adacore.com>
13374
13375 * utils.h (class gdb_argv) <release>: Add
13376 ATTRIBUTE_UNUSED_RESULT.
13377 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13378
13379 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13380
13381 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13382 for-loop range, to avoid compiler warnings.
13383
13384 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13385 avoid compiler warnings about unused variables.
13386
13387 * NEWS: Mention end of support for native debugging on MS-Windows
13388 before XP.
13389
13390 PR gdb/24292
13391 * common/netstuff.c:
13392 * gdbserver/gdbreplay.c
13393 * gdbserver/remote-utils.c:
13394 * ser-tcp.c:
13395 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13396 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13397 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13398 'getaddrinfo' and 'freeaddrinfo' were not available before
13399 Windows XP, and mingw.org's MinGW headers by default define
13400 _WIN32_WINNT to 0x500.
13401
13402 2019-03-01 Gary Benson <gbenson@redhat.com>
13403
13404 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13405
13406 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13407 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13408
13409 PR gdb/8527
13410 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13411 set_sigint_trap, clear_sigint_trap.
13412
13413 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13414
13415 * target.c (target_detach): Clear the regcache and the
13416 frame cache.
13417
13418 2019-02-27 Pedro Alves <palves@redhat.com>
13419
13420 * utils.c (set_screen_size): When we cap the height/width sizes,
13421 tweak the corresponding command variable to show "unlimited":
13422
13423 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13424 Pedro Alves <palves@redhat.com>
13425
13426 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13427 before calling rl_set_screen_size.
13428
13429 2019-02-27 Tom Tromey <tromey@adacore.com>
13430
13431 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13432 define.
13433 * python/py-value.c: Remove Python 2.4 workaround.
13434 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13435 workaround.
13436 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13437 Python 2.4 workaround.
13438 * python/python-internal.h: Remove Python 2.4 comment.
13439 (Py_ssize_t): Don't define.
13440 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13441 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13442 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13443 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13444 * python/python.c (do_start_initialization): Remove Python 2.4
13445 workaround.
13446 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13447 (print_children): Remove Python 2.4 workaround.
13448 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13449 workaround.
13450 (CHARBUFFERPROC_NAME): Remove.
13451 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13452 Python 2.4 workaround.
13453
13454 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13455
13456 * NEWS: Note minimum Python version.
13457
13458 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13459
13460 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13461 code from these functions. Remove corresponding ifdefs. Use
13462 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13463 Remove gotos and target of gotos.
13464 (infpy_search_memory): Likewise.
13465
13466 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13467
13468 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13469 (hppa_gdbarch_init): Don't register deleted functions with
13470 gdbarch.
13471
13472 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13473
13474 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13475 (h8300_unwind_sp): Delete.
13476 (h8300_dummy_id): Delete.
13477 (h8300_gdbarch_init): Don't register deleted functions with
13478 gdbarch.
13479
13480 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13483 (ft32_unwind_pc): Delete.
13484 (ft32_unwind_sp): Delete.
13485 (ft32_gdbarch_init): Don't register deleted functions with
13486 gdbarch.
13487
13488 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13489
13490 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13491 (frv_unwind_pc): Delete.
13492 (frv_unwind_sp): Delete.
13493 (frv_gdbarch_init): Don't register deleted functions with
13494 gdbarch.
13495
13496 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13497
13498 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13499 (riscv_unwind_pc): Delete.
13500 (riscv_unwind_sp): Delete.
13501 (riscv_gdbarch_init): Don't register deleted functions with
13502 gdbarch.
13503
13504 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13505
13506 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13507 (csky_unwind_pc): Delete.
13508 (csky_unwind_sp): Delete.
13509 (csky_gdbarch_init): Don't register deleted functions with
13510 gdbarch.
13511
13512 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13513
13514 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13515 (cris_unwind_pc): Delete.
13516 (cris_unwind_sp): Delete.
13517 (cris_gdbarch_init): Don't register deleted functions with
13518 gdbarch.
13519
13520 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13521
13522 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13523 (bfin_unwind_pc): Delete.
13524 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13525
13526 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13527
13528 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13529 (arm_unwind_pc): Delete.
13530 (arm_unwind_sp): Delete.
13531 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13532
13533 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13536 (arc_unwind_pc): Delete.
13537 (arc_unwind_sp): Delete.
13538 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13539
13540 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13543 (alpha_unwind_pc): Delete.
13544 (alpha_gdbarch_init): Don't register deleted functions with
13545 gdbarch.
13546
13547 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13550 (aarch64_unwind_pc): Delete.
13551 (aarch64_unwind_sp): Delete.
13552 (aarch64_gdbarch_init): Don't register deleted functions with
13553 gdbarch.
13554
13555 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13556
13557 * gdbtypes.c (type_align): Don't consider static members when
13558 computing structure alignment.
13559
13560 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13561
13562 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13563 return 0 for other types.
13564 * arch-utils.c (default_type_align): Always return 0.
13565 * gdbarch.h: Regenerate.
13566 * gdbarch.sh (type_align): Extend comment.
13567 * gdbtypes.c (type_align): Add additional comments, always call
13568 gdbarch_type_align before applying the default rules.
13569 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13570 generic code will then apply a suitable default.
13571 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13572 types, return 0 for other types.
13573
13574 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13575
13576 * NEWS: Create a new section for the next release branch.
13577 Rename the section of the current branch, now that it has
13578 been cut.
13579
13580 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13581
13582 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13583 * version.in: Bump version to 8.3.50.DATE-git.
13584
13585 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13586
13587 * aix-thread.c (ptid_cmp): Remove unused variable.
13588 (get_signaled_thread): Likewise.
13589 (store_regs_user_thread): Likewise.
13590 (store_regs_kernel_thread): Likewise.
13591 (fetch_regs_kernel_thread): Remove shadowed variable.
13592
13593 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13594
13595 * features/riscv/32bit-cpu.xml: Add register numbers.
13596 * features/riscv/32bit-fpu.c: Regenerate.
13597 * features/riscv/32bit-fpu.xml: Add register numbers.
13598 * features/riscv/64bit-cpu.xml: Add register numbers.
13599 * features/riscv/64bit-fpu.c: Regenerate.
13600 * features/riscv/64bit-fpu.xml: Add register numbers.
13601
13602 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13603
13604 * NEWS: Mention two argument form of gdb.Value constructor.
13605 * python/py-value.c (convert_buffer_and_type_to_value): New
13606 function.
13607 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13608 Add support for handling an optional second argument. Call
13609 convert_buffer_and_type_to_value as appropriate.
13610 * python/python-internal.h (Py_buffer_deleter): New struct.
13611 (Py_buffer_up): New typedef.
13612
13613 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13614
13615 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13616 instead of releasing ownership.
13617
13618 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13619
13620 * dwarf2read.c (open_and_init_dwp_file): Call
13621 elf_numsections instead of bfd_count_sections to initialize
13622 dwp_file->num_sections.
13623
13624 2019-02-25 Tom Tromey <tromey@adacore.com>
13625
13626 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13627
13628 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13629
13630 * gcore.in: Add '--readnever' option when invoking GDB.
13631
13632 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13633
13634 * MAINTAINERS: Update my email address.
13635
13636 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13637
13638 * build-id.c (build_id_to_debug_bfd_1): New function.
13639 (build_id_to_debug_bfd): Look for separate debug file in
13640 sysroot.
13641
13642 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13643
13644 * gdbarch.sh: Update the copyright year range that is placed into
13645 generated files.
13646
13647 2019-02-22 Keith Seitz <keiths@redhat.com>
13648
13649 PR symtab/23853
13650 * linespec.c (create_sals_line_offset): Search for the default
13651 symtab's filename instead of its fullname.
13652
13653 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13654
13655 * NEWS: Update style defaults.
13656
13657 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13658
13659 * main.c (captured_main_1): Disable styling in batch mode.
13660
13661 2019-02-20 Tom Tromey <tom@tromey.com>
13662
13663 * symtab.c (symtab_symbol_info): Fix typos.
13664
13665 2019-02-20 Tom Tromey <tromey@adacore.com>
13666
13667 * findcmd.c (_initialize_mem_search): Use upper case for
13668 metasyntactic variables.
13669
13670 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13671
13672 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13673 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13674
13675 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13676
13677 * top.h (source_file_name): Change to std::string.
13678 * top.c (source_file_name): Likewise.
13679 (command_line_input): Adjust.
13680 * cli/cli-script.c (script_from_file): Adjust.
13681
13682 2019-02-19 Tom Tromey <tromey@adacore.com>
13683
13684 * ravenscar-thread.c
13685 (ravenscar_thread_target::update_thread_list): Don't call
13686 ada_build_task_list.
13687 * ada-lang.h (ada_build_task_list): Don't declare.
13688 * ada-tasks.c (struct ada_tasks_inferior_data)
13689 <task_list_valid_p>: Now bool.
13690 (read_known_tasks, ada_task_list_changed)
13691 (ada_tasks_invalidate_inferior_data): Update.
13692 (read_known_tasks_array): Return bool.
13693 (read_known_tasks_list): Likewise.
13694 (read_known_tasks): Return void.
13695 (ada_build_task_list): Now static.
13696
13697 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13698
13699 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13700 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13701
13702 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13703
13704 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13705 variant for ada_tasks_pspace_data_handle and
13706 ada_tasks_inferior_data_handle.
13707 (ada_tasks_pspace_data_cleanup): New function.
13708 (ada_tasks_inferior_data_cleanup): New function.
13709
13710 2019-02-17 Tom Tromey <tom@tromey.com>
13711
13712 * macrotab.h (macro_source_fullname): Return a std::string.
13713 * macrotab.c (macro_include, check_for_redefinition)
13714 (macro_undef, macro_lookup_definition, foreach_macro)
13715 (foreach_macro_in_scope): Update.
13716 (macro_source_fullname): Return a std::string.
13717 * macrocmd.c (show_pp_source_pos): Update.
13718
13719 2019-02-17 Tom Tromey <tom@tromey.com>
13720
13721 * macrocmd.c (show_pp_source_pos): Style the file names.
13722
13723 2019-02-17 Tom Tromey <tom@tromey.com>
13724
13725 PR tui/24197:
13726 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13727
13728 2019-02-17 Tom Tromey <tom@tromey.com>
13729
13730 * ada-lang.c (user_select_syms): Use filtered printing.
13731 * utils.c (wrap_style): New global.
13732 (desired_style): Remove.
13733 (emit_style_escape): Add stream parameter.
13734 (set_output_style, reset_terminal_style, prompt_for_continue):
13735 Update.
13736 (flush_wrap_buffer): Only flush gdb_stdout.
13737 (wrap_here): Set wrap_style.
13738 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13739 treat escape sequences as a character. Change when wrap buffer is
13740 flushed.
13741 (fputs_styled): Do not set the output style when the default is
13742 requested.
13743 * ui-style.h (struct ui_file_style) <is_default>: New method.
13744 * source.c (print_source_lines_base): Emit escape sequences in one
13745 piece.
13746
13747 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13748
13749 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13750 integers and enumeration types.
13751
13752 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13753
13754 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13755 instead of lookup_symbol_in_language
13756 (do_exact_match): New function.
13757 (ada_get_symbol_name_matcher): Return do_exact_match when
13758 doing a verbatim match.
13759
13760 2019-02-15 Tom Tromey <tromey@adacore.com>
13761
13762 * ravenscar-thread.c (ravenscar_thread_target::resume)
13763 (ravenscar_thread_target::wait): Special case wildcard requests.
13764
13765 2019-02-15 Tom Tromey <tromey@adacore.com>
13766
13767 * ravenscar-thread.c (base_ptid): Remove.
13768 (struct ravenscar_thread_target) <close>: New method.
13769 <m_base_ptid>: New member.
13770 <update_inferior_ptid, active_task, task_is_currently_active,
13771 runtime_initialized>: Declare methods.
13772 <ravenscar_thread_target>: Add constructor.
13773 (ravenscar_thread_target::task_is_currently_active)
13774 (ravenscar_thread_target::update_inferior_ptid)
13775 (ravenscar_runtime_initialized): Rename. Now methods.
13776 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13777 (ravenscar_thread_target::update_thread_list): Update.
13778 (ravenscar_thread_target::active_task): Now method.
13779 (ravenscar_thread_target::store_registers)
13780 (ravenscar_thread_target::prepare_to_store)
13781 (ravenscar_thread_target::prepare_to_store)
13782 (ravenscar_thread_target::mourn_inferior): Update.
13783 (ravenscar_inferior_created): Use "new" to create target.
13784 (ravenscar_thread_target::get_ada_task_ptid): Update.
13785 (_initialize_ravenscar): Don't initialize base_ptid.
13786 (ravenscar_ops): Remove global.
13787
13788 2019-02-15 Tom Tromey <tromey@adacore.com>
13789
13790 * target.h (push_target): Declare new overload.
13791 * target.c (push_target): New overload, taking an rvalue reference.
13792 * remote.c (remote_target::open_1): Use push_target overload.
13793 * corelow.c (core_target_open): Use push_target overload.
13794
13795 2019-02-15 Tom Tromey <tromey@adacore.com>
13796
13797 * ravenscar-thread.c (is_ravenscar_task)
13798 (ravenscar_task_is_currently_active): Return bool.
13799 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13800 (_initialize_ravenscar): Remove "(void)".
13801 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13802 Return bool.
13803
13804 2019-02-15 Tom Tromey <tromey@adacore.com>
13805
13806 * ravenscar-thread.c (ravenscar_runtime_initializer)
13807 (has_ravenscar_runtime, get_running_thread_id)
13808 (ravenscar_thread_target::resume): Fix indentation.
13809
13810 2019-02-15 Tom Tromey <tromey@adacore.com>
13811
13812 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13813 from ravenscar_arch_ops.
13814 (sparc_ravenscar_ops::fetch_registers)
13815 (sparc_ravenscar_ops::store_registers): Now methods.
13816 (sparc_ravenscar_prepare_to_store): Remove.
13817 (sparc_ravenscar_ops): Redefine.
13818 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13819 methods and destructor. Remove members.
13820 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13821 (ravenscar_thread_target::store_registers)
13822 (ravenscar_thread_target::prepare_to_store): Update.
13823 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13824 Remove.
13825 (struct ppc_ravenscar_powerpc_ops): Derive from
13826 ravenscar_arch_ops.
13827 (ppc_ravenscar_powerpc_ops::fetch_registers)
13828 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13829 (ppc_ravenscar_powerpc_ops): Redefine.
13830 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13831 (ppc_ravenscar_e500_ops::fetch_registers)
13832 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13833 (ppc_ravenscar_e500_ops): Redefine.
13834 * aarch64-ravenscar-thread.c
13835 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13836 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13837 (aarch64_ravenscar_fetch_registers)
13838 (aarch64_ravenscar_store_registers): Now methods.
13839 (aarch64_ravenscar_ops): Redefine.
13840
13841 2019-02-15 Tom Tromey <tromey@adacore.com>
13842
13843 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13844 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13845 (ravenscar_thread_target::stopped_by_watchpoint)
13846 (ravenscar_thread_target::stopped_data_address)
13847 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13848
13849 2019-02-15 Tom Tromey <tromey@adacore.com>
13850
13851 * ravenscar-thread.c: Fix some typos.
13852
13853 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13854 Tom Tromey <tromey@adacore.com>
13855
13856 * ada-lang.c (ada_exception_sal): Change addr_string to a
13857 std::string.
13858 (create_ada_exception_catchpoint): Update.
13859
13860 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13861 Tom Tromey <tromey@adacore.com>
13862
13863 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13864 (bp_location_ops): Remove.
13865 (base_breakpoint_allocate_location): Update.
13866 (free_bp_location): Update.
13867 * ada-lang.c (class ada_catchpoint_location)
13868 <ada_catchpoint_location>: Remove ops parameter.
13869 (ada_catchpoint_location_dtor): Remove.
13870 (ada_catchpoint_location_ops): Remove.
13871 (allocate_location_exception): Update.
13872 * breakpoint.h (struct bp_location_ops): Remove.
13873 (class bp_location) <bp_location>: Remove bp_location_ops
13874 parameter.
13875 <~bp_location>: Add destructor.
13876 <ops>: Remove.
13877
13878 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13879 Pedro Alves <palves@redhat.com>
13880
13881 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13882 'PATH_MAX'.
13883
13884 2019-02-14 David Michael <fedora.dm0@gmail.com>
13885 Samuel Thibault <samuel.thibault@gnu.org>
13886 Thomas Schwinge <thomas@codesourcery.com>
13887
13888 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13889 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13890
13891 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13892
13893 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13894 (check_empty): Use "const char *".
13895
13896 * gnu-nat.c (gnu_nat_target::detach): Instead of
13897 'detach_inferior (pid)' call
13898 'detach_inferior (find_inferior_pid (pid))'.
13899
13900 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13901 'nat/fork-inferior.o'.
13902 * gnu-nat.c: #include "nat/fork-inferior.h".
13903
13904 * gnu-nat.c (gnu_nat_target::detach): Instead of
13905 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13906 * gnu-nat.h: #include "inf-child.h".
13907 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13908 'i386_gnu_nat_target::fetch_registers'.
13909 (gnu_store_registers): Rename/move to
13910 'i386_gnu_nat_target::store_registers'.
13911
13912 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13913 * gnu-nat.h (mach_thread_info): New function.
13914 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13915
13916 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13917
13918 2019-02-14 Frederic Konrad <konrad@adacore.com>
13919
13920 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13921
13922 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13923
13924 * windows-nat.c (windows_add_thread): Add new parameter
13925 "main_thread_p" with default value set to false. Update
13926 function documentation as well as all callers.
13927 (windows_delete_thread): Likewise.
13928 (fake_create_process): Update call to windows_add_thread.
13929 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13930 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13931 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13932 call to windows_delete_thread.
13933
13934 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13935
13936 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13937
13938 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13939
13940 * symfile.c (find_separate_debug_file): Use canonical path of
13941 sysroot with child_path instead of gdb_sysroot if it is valid.
13942
13943 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13944
13945 * symfile.c (find_separate_debug_file): Use child_path to
13946 determine if an object file is under a sysroot.
13947
13948 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13949
13950 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13951 unittests/child-path-selftests.c.
13952 * common/pathstuff.c (child_path): New function.
13953 * common/pathstuff.h (child_path): New prototype.
13954 * unittests/child-path-selftests.c: New file.
13955
13956 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13957
13958 * symfile.c (find_separate_debug_file): Look for separate debug
13959 files in debug directories under the sysroot.
13960
13961 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13962
13963 * symtab.h (struct minimal_symbol data_p): New const method.
13964 (struct minimal_symbol text_p): Likewise.
13965 * symtab.c (output_source_filename): Use file name style
13966 to print file name.
13967 (print_symbol_info): Likewise.
13968 (print_msymbol_info): Use address style to print addresses.
13969 Use function name style to print executable text symbols.
13970 (expand_symtab_containing_pc): Use data_p.
13971 (find_pc_sect_compunit_symtab): Likewise.
13972
13973 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13974
13975 * breakpoint.c (describe_other_breakpoints): Use address style
13976 to print addresses.
13977 (say_where): Likewise.
13978
13979 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13980
13981 * ada-typeprint.c (print_func_type): Print function name
13982 style to print function name.
13983 * c-typeprint.c (c_print_type_1): Likewise.
13984
13985 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13986
13987 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13988 for execve.
13989
13990 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13991
13992 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13993 type_stack.
13994
13995 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13996
13997 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13998 TYPE_CODE_REF types.
13999
14000 2019-02-08 Jim Wilson <jimw@sifive.com>
14001
14002 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14003 (riscv_linux_fregset): New.
14004 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14005
14006 2019-02-07 Tom Tromey <tom@tromey.com>
14007
14008 * thread.c (thread_cancel_execution_command): Update.
14009 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14010 methods.
14011 (struct thread_fsm_ops): Remove.
14012 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14013 (thread_fsm_should_stop, thread_fsm_return_value)
14014 (thread_fsm_set_finished, thread_fsm_finished_p)
14015 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14016 Don't declare.
14017 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14018 * infrun.c (clear_proceed_status_thread)
14019 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14020 (print_stop_event): Update.
14021 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14022 Add constructor.
14023 (step_command_fsm_ops): Remove.
14024 (new_step_command_fsm): Remove.
14025 (step_1): Update.
14026 (step_command_fsm::should_stop): Rename from
14027 step_command_fsm_should_stop.
14028 (step_command_fsm::clean_up): Rename from
14029 step_command_fsm_clean_up.
14030 (step_command_fsm::do_async_reply_reason): Rename from
14031 step_command_fsm_async_reply_reason.
14032 (struct until_next_fsm): Inherit from thread_fsm. Add
14033 constructor.
14034 (until_next_fsm_ops): Remove.
14035 (new_until_next_fsm): Remove.
14036 (until_next_fsm::should_stop): Rename from
14037 until_next_fsm_should_stop.
14038 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14039 (until_next_fsm::do_async_reply_reason): Rename from
14040 until_next_fsm_async_reply_reason.
14041 (struct finish_command_fsm): Inherit from thread_fsm. Add
14042 constructor. Change type of breakpoint.
14043 (finish_command_fsm_ops): Remove.
14044 (new_finish_command_fsm): Remove.
14045 (finish_command_fsm::should_stop): Rename from
14046 finish_command_fsm_should_stop.
14047 (finish_command_fsm::clean_up): Rename from
14048 finish_command_fsm_clean_up.
14049 (finish_command_fsm::return_value): Rename from
14050 finish_command_fsm_return_value.
14051 (finish_command_fsm::do_async_reply_reason): Rename from
14052 finish_command_fsm_async_reply_reason.
14053 (finish_command): Update.
14054 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14055 Add constructor.
14056 (call_thread_fsm_ops): Remove.
14057 (call_thread_fsm::call_thread_fsm): Rename from
14058 new_call_thread_fsm.
14059 (call_thread_fsm::should_stop): Rename from
14060 call_thread_fsm_should_stop.
14061 (call_thread_fsm::should_notify_stop): Rename from
14062 call_thread_fsm_should_notify_stop.
14063 (run_inferior_call, call_function_by_hand_dummy): Update.
14064 * cli/cli-interp.c (should_print_stop_to_console): Update.
14065 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14066 Add constructor. Change type of location_breakpoint,
14067 caller_breakpoint.
14068 (until_break_fsm_ops): Remove.
14069 (new_until_break_fsm): Remove.
14070 (until_break_fsm::should_stop): Rename from
14071 until_break_fsm_should_stop.
14072 (until_break_fsm::clean_up): Rename from
14073 until_break_fsm_clean_up.
14074 (until_break_fsm::do_async_reply_reason): Rename from
14075 until_break_fsm_async_reply_reason.
14076 (until_break_command): Update.
14077 * thread-fsm.c: Remove.
14078 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14079
14080 2019-02-07 Tom Tromey <tom@tromey.com>
14081
14082 * yy-remap.h: Add include guard.
14083 * xtensa-tdep.h: Add include guard.
14084 * xcoffread.h: Rename include guard.
14085 * varobj-iter.h: Add include guard.
14086 * tui/tui.h: Rename include guard.
14087 * tui/tui-winsource.h: Rename include guard.
14088 * tui/tui-wingeneral.h: Rename include guard.
14089 * tui/tui-windata.h: Rename include guard.
14090 * tui/tui-win.h: Rename include guard.
14091 * tui/tui-stack.h: Rename include guard.
14092 * tui/tui-source.h: Rename include guard.
14093 * tui/tui-regs.h: Rename include guard.
14094 * tui/tui-out.h: Rename include guard.
14095 * tui/tui-layout.h: Rename include guard.
14096 * tui/tui-io.h: Rename include guard.
14097 * tui/tui-hooks.h: Rename include guard.
14098 * tui/tui-file.h: Rename include guard.
14099 * tui/tui-disasm.h: Rename include guard.
14100 * tui/tui-data.h: Rename include guard.
14101 * tui/tui-command.h: Rename include guard.
14102 * tic6x-tdep.h: Add include guard.
14103 * target/waitstatus.h: Rename include guard.
14104 * target/wait.h: Rename include guard.
14105 * target/target.h: Rename include guard.
14106 * target/resume.h: Rename include guard.
14107 * target-float.h: Rename include guard.
14108 * stabsread.h: Add include guard.
14109 * rs6000-tdep.h: Add include guard.
14110 * riscv-fbsd-tdep.h: Add include guard.
14111 * regformats/regdef.h: Rename include guard.
14112 * record.h: Rename include guard.
14113 * python/python.h: Rename include guard.
14114 * python/python-internal.h: Rename include guard.
14115 * python/py-stopevent.h: Rename include guard.
14116 * python/py-ref.h: Rename include guard.
14117 * python/py-record.h: Rename include guard.
14118 * python/py-record-full.h: Rename include guard.
14119 * python/py-record-btrace.h: Rename include guard.
14120 * python/py-instruction.h: Rename include guard.
14121 * python/py-events.h: Rename include guard.
14122 * python/py-event.h: Rename include guard.
14123 * procfs.h: Add include guard.
14124 * proc-utils.h: Add include guard.
14125 * p-lang.h: Add include guard.
14126 * or1k-tdep.h: Rename include guard.
14127 * observable.h: Rename include guard.
14128 * nto-tdep.h: Rename include guard.
14129 * nat/x86-linux.h: Rename include guard.
14130 * nat/x86-linux-dregs.h: Rename include guard.
14131 * nat/x86-gcc-cpuid.h: Add include guard.
14132 * nat/x86-dregs.h: Rename include guard.
14133 * nat/x86-cpuid.h: Rename include guard.
14134 * nat/ppc-linux.h: Rename include guard.
14135 * nat/mips-linux-watch.h: Rename include guard.
14136 * nat/linux-waitpid.h: Rename include guard.
14137 * nat/linux-ptrace.h: Rename include guard.
14138 * nat/linux-procfs.h: Rename include guard.
14139 * nat/linux-osdata.h: Rename include guard.
14140 * nat/linux-nat.h: Rename include guard.
14141 * nat/linux-namespaces.h: Rename include guard.
14142 * nat/linux-btrace.h: Rename include guard.
14143 * nat/glibc_thread_db.h: Rename include guard.
14144 * nat/gdb_thread_db.h: Rename include guard.
14145 * nat/gdb_ptrace.h: Rename include guard.
14146 * nat/fork-inferior.h: Rename include guard.
14147 * nat/amd64-linux-siginfo.h: Rename include guard.
14148 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14149 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14150 * nat/aarch64-linux.h: Rename include guard.
14151 * nat/aarch64-linux-hw-point.h: Rename include guard.
14152 * mn10300-tdep.h: Add include guard.
14153 * mips-linux-tdep.h: Add include guard.
14154 * mi/mi-parse.h: Rename include guard.
14155 * mi/mi-out.h: Rename include guard.
14156 * mi/mi-main.h: Rename include guard.
14157 * mi/mi-interp.h: Rename include guard.
14158 * mi/mi-getopt.h: Rename include guard.
14159 * mi/mi-console.h: Rename include guard.
14160 * mi/mi-common.h: Rename include guard.
14161 * mi/mi-cmds.h: Rename include guard.
14162 * mi/mi-cmd-break.h: Rename include guard.
14163 * m2-lang.h: Add include guard.
14164 * location.h: Rename include guard.
14165 * linux-record.h: Rename include guard.
14166 * linux-nat.h: Add include guard.
14167 * linux-fork.h: Add include guard.
14168 * i386-darwin-tdep.h: Rename include guard.
14169 * hppa-linux-offsets.h: Add include guard.
14170 * guile/guile.h: Rename include guard.
14171 * guile/guile-internal.h: Rename include guard.
14172 * gnu-nat.h: Rename include guard.
14173 * gdb-stabs.h: Rename include guard.
14174 * frv-tdep.h: Add include guard.
14175 * f-lang.h: Add include guard.
14176 * event-loop.h: Add include guard.
14177 * darwin-nat.h: Rename include guard.
14178 * cp-abi.h: Rename include guard.
14179 * config/sparc/nm-sol2.h: Rename include guard.
14180 * config/nm-nto.h: Rename include guard.
14181 * config/nm-linux.h: Add include guard.
14182 * config/i386/nm-i386gnu.h: Rename include guard.
14183 * config/djgpp/nl_types.h: Rename include guard.
14184 * config/djgpp/langinfo.h: Rename include guard.
14185 * compile/gcc-cp-plugin.h: Add include guard.
14186 * compile/gcc-c-plugin.h: Add include guard.
14187 * compile/compile.h: Rename include guard.
14188 * compile/compile-object-run.h: Rename include guard.
14189 * compile/compile-object-load.h: Rename include guard.
14190 * compile/compile-internal.h: Rename include guard.
14191 * compile/compile-cplus.h: Rename include guard.
14192 * compile/compile-c.h: Rename include guard.
14193 * common/xml-utils.h: Rename include guard.
14194 * common/x86-xstate.h: Rename include guard.
14195 * common/version.h: Rename include guard.
14196 * common/vec.h: Rename include guard.
14197 * common/tdesc.h: Rename include guard.
14198 * common/selftest.h: Rename include guard.
14199 * common/scoped_restore.h: Rename include guard.
14200 * common/scoped_mmap.h: Rename include guard.
14201 * common/scoped_fd.h: Rename include guard.
14202 * common/safe-iterator.h: Rename include guard.
14203 * common/run-time-clock.h: Rename include guard.
14204 * common/refcounted-object.h: Rename include guard.
14205 * common/queue.h: Rename include guard.
14206 * common/ptid.h: Rename include guard.
14207 * common/print-utils.h: Rename include guard.
14208 * common/preprocessor.h: Rename include guard.
14209 * common/pathstuff.h: Rename include guard.
14210 * common/observable.h: Rename include guard.
14211 * common/netstuff.h: Rename include guard.
14212 * common/job-control.h: Rename include guard.
14213 * common/host-defs.h: Rename include guard.
14214 * common/gdb_wait.h: Rename include guard.
14215 * common/gdb_vecs.h: Rename include guard.
14216 * common/gdb_unlinker.h: Rename include guard.
14217 * common/gdb_unique_ptr.h: Rename include guard.
14218 * common/gdb_tilde_expand.h: Rename include guard.
14219 * common/gdb_sys_time.h: Rename include guard.
14220 * common/gdb_string_view.h: Rename include guard.
14221 * common/gdb_splay_tree.h: Rename include guard.
14222 * common/gdb_setjmp.h: Rename include guard.
14223 * common/gdb_ref_ptr.h: Rename include guard.
14224 * common/gdb_optional.h: Rename include guard.
14225 * common/gdb_locale.h: Rename include guard.
14226 * common/gdb_assert.h: Rename include guard.
14227 * common/filtered-iterator.h: Rename include guard.
14228 * common/filestuff.h: Rename include guard.
14229 * common/fileio.h: Rename include guard.
14230 * common/environ.h: Rename include guard.
14231 * common/common-utils.h: Rename include guard.
14232 * common/common-types.h: Rename include guard.
14233 * common/common-regcache.h: Rename include guard.
14234 * common/common-inferior.h: Rename include guard.
14235 * common/common-gdbthread.h: Rename include guard.
14236 * common/common-exceptions.h: Rename include guard.
14237 * common/common-defs.h: Rename include guard.
14238 * common/common-debug.h: Rename include guard.
14239 * common/cleanups.h: Rename include guard.
14240 * common/buffer.h: Rename include guard.
14241 * common/btrace-common.h: Rename include guard.
14242 * common/break-common.h: Rename include guard.
14243 * cli/cli-utils.h: Rename include guard.
14244 * cli/cli-style.h: Rename include guard.
14245 * cli/cli-setshow.h: Rename include guard.
14246 * cli/cli-script.h: Rename include guard.
14247 * cli/cli-interp.h: Rename include guard.
14248 * cli/cli-decode.h: Rename include guard.
14249 * cli/cli-cmds.h: Rename include guard.
14250 * charset-list.h: Add include guard.
14251 * buildsym-legacy.h: Rename include guard.
14252 * bfin-tdep.h: Add include guard.
14253 * ax.h: Rename include guard.
14254 * arm-linux-tdep.h: Add include guard.
14255 * arm-fbsd-tdep.h: Add include guard.
14256 * arch/xtensa.h: Rename include guard.
14257 * arch/tic6x.h: Add include guard.
14258 * arch/i386.h: Add include guard.
14259 * arch/arm.h: Rename include guard.
14260 * arch/arm-linux.h: Rename include guard.
14261 * arch/arm-get-next-pcs.h: Rename include guard.
14262 * arch/amd64.h: Add include guard.
14263 * arch/aarch64-insn.h: Rename include guard.
14264 * arch-utils.h: Rename include guard.
14265 * annotate.h: Add include guard.
14266 * amd64-darwin-tdep.h: Rename include guard.
14267 * aarch64-linux-tdep.h: Add include guard.
14268 * aarch64-fbsd-tdep.h: Add include guard.
14269 * aarch32-linux-nat.h: Add include guard.
14270
14271 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14272
14273 * macrotab.c (macro_define_internal): New function that
14274 factorizes macro_define_object_internal and macro_define_function
14275 code.
14276 (macro_define_object_internal): Use macro_define_internal.
14277 (macro_define_function): Likewise.
14278
14279 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14280
14281 * macrocmd.c (extract_identifier): Return
14282 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14283 callers.
14284
14285 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14286
14287 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14288
14289 2019-02-05 Tom Tromey <tom@tromey.com>
14290
14291 * target.c (target_stack::unpush): Move assertion earlier.
14292
14293 2019-01-30 Tom Tromey <tom@tromey.com>
14294
14295 PR python/23615:
14296 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14297 (gdbpy_parse_and_eval): Likewise.
14298 * python/python-internal.h (gdbpy_allow_threads): New class.
14299
14300 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14301
14302 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14303 (aarch64_fbsd_fpregmap): Move earlier.
14304 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14305 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14306 instead of individual calls to trad_frame_set_reg_addr.
14307 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14308 earlier.
14309 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14310 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14311 instead of individual calls to trad_frame_set_reg_addr.
14312
14313 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14314
14315 * CONTRIBUTE: Replace contribution list with wiki link.
14316
14317 2019-01-25 Tom Tromey <tom@tromey.com>
14318
14319 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14320
14321 2019-01-25 Tom Tromey <tom@tromey.com>
14322
14323 * xtensa-linux-nat.c: Fix common/ includes.
14324 * xml-support.h: Fix common/ includes.
14325 * xml-support.c: Fix common/ includes.
14326 * x86-linux-nat.c: Fix common/ includes.
14327 * windows-nat.c: Fix common/ includes.
14328 * varobj.h: Fix common/ includes.
14329 * varobj.c: Fix common/ includes.
14330 * value.c: Fix common/ includes.
14331 * valops.c: Fix common/ includes.
14332 * utils.c: Fix common/ includes.
14333 * unittests/xml-utils-selftests.c: Fix common/ includes.
14334 * unittests/utils-selftests.c: Fix common/ includes.
14335 * unittests/unpack-selftests.c: Fix common/ includes.
14336 * unittests/tracepoint-selftests.c: Fix common/ includes.
14337 * unittests/style-selftests.c: Fix common/ includes.
14338 * unittests/string_view-selftests.c: Fix common/ includes.
14339 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14340 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14341 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14342 * unittests/rsp-low-selftests.c: Fix common/ includes.
14343 * unittests/parse-connection-spec-selftests.c: Fix common/
14344 includes.
14345 * unittests/optional-selftests.c: Fix common/ includes.
14346 * unittests/offset-type-selftests.c: Fix common/ includes.
14347 * unittests/observable-selftests.c: Fix common/ includes.
14348 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14349 * unittests/memrange-selftests.c: Fix common/ includes.
14350 * unittests/memory-map-selftests.c: Fix common/ includes.
14351 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14352 * unittests/function-view-selftests.c: Fix common/ includes.
14353 * unittests/environ-selftests.c: Fix common/ includes.
14354 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14355 * unittests/common-utils-selftests.c: Fix common/ includes.
14356 * unittests/cli-utils-selftests.c: Fix common/ includes.
14357 * unittests/array-view-selftests.c: Fix common/ includes.
14358 * ui-file.c: Fix common/ includes.
14359 * tui/tui-io.c: Fix common/ includes.
14360 * tracepoint.h: Fix common/ includes.
14361 * tracepoint.c: Fix common/ includes.
14362 * tracefile-tfile.c: Fix common/ includes.
14363 * top.h: Fix common/ includes.
14364 * top.c: Fix common/ includes.
14365 * thread.c: Fix common/ includes.
14366 * target/waitstatus.h: Fix common/ includes.
14367 * target/waitstatus.c: Fix common/ includes.
14368 * target.h: Fix common/ includes.
14369 * target.c: Fix common/ includes.
14370 * target-memory.c: Fix common/ includes.
14371 * target-descriptions.c: Fix common/ includes.
14372 * symtab.h: Fix common/ includes.
14373 * symfile.c: Fix common/ includes.
14374 * stap-probe.c: Fix common/ includes.
14375 * spu-linux-nat.c: Fix common/ includes.
14376 * sparc-nat.c: Fix common/ includes.
14377 * source.c: Fix common/ includes.
14378 * solib.c: Fix common/ includes.
14379 * solib-target.c: Fix common/ includes.
14380 * ser-unix.c: Fix common/ includes.
14381 * ser-tcp.c: Fix common/ includes.
14382 * ser-pipe.c: Fix common/ includes.
14383 * ser-base.c: Fix common/ includes.
14384 * selftest-arch.c: Fix common/ includes.
14385 * s12z-tdep.c: Fix common/ includes.
14386 * rust-exp.y: Fix common/ includes.
14387 * rs6000-aix-tdep.c: Fix common/ includes.
14388 * riscv-tdep.c: Fix common/ includes.
14389 * remote.c: Fix common/ includes.
14390 * remote-notif.h: Fix common/ includes.
14391 * remote-fileio.h: Fix common/ includes.
14392 * remote-fileio.c: Fix common/ includes.
14393 * regcache.h: Fix common/ includes.
14394 * regcache.c: Fix common/ includes.
14395 * record-btrace.c: Fix common/ includes.
14396 * python/python.c: Fix common/ includes.
14397 * python/py-type.c: Fix common/ includes.
14398 * python/py-inferior.c: Fix common/ includes.
14399 * progspace.h: Fix common/ includes.
14400 * producer.c: Fix common/ includes.
14401 * procfs.c: Fix common/ includes.
14402 * proc-api.c: Fix common/ includes.
14403 * printcmd.c: Fix common/ includes.
14404 * ppc-linux-nat.c: Fix common/ includes.
14405 * parser-defs.h: Fix common/ includes.
14406 * osdata.c: Fix common/ includes.
14407 * obsd-nat.c: Fix common/ includes.
14408 * nat/x86-linux.c: Fix common/ includes.
14409 * nat/x86-linux-dregs.c: Fix common/ includes.
14410 * nat/x86-dregs.h: Fix common/ includes.
14411 * nat/x86-dregs.c: Fix common/ includes.
14412 * nat/ppc-linux.c: Fix common/ includes.
14413 * nat/mips-linux-watch.h: Fix common/ includes.
14414 * nat/mips-linux-watch.c: Fix common/ includes.
14415 * nat/linux-waitpid.c: Fix common/ includes.
14416 * nat/linux-ptrace.h: Fix common/ includes.
14417 * nat/linux-ptrace.c: Fix common/ includes.
14418 * nat/linux-procfs.c: Fix common/ includes.
14419 * nat/linux-personality.c: Fix common/ includes.
14420 * nat/linux-osdata.c: Fix common/ includes.
14421 * nat/linux-namespaces.c: Fix common/ includes.
14422 * nat/linux-btrace.h: Fix common/ includes.
14423 * nat/linux-btrace.c: Fix common/ includes.
14424 * nat/fork-inferior.c: Fix common/ includes.
14425 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14426 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14427 * nat/aarch64-linux.c: Fix common/ includes.
14428 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14429 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14430 * namespace.h: Fix common/ includes.
14431 * mips-linux-tdep.c: Fix common/ includes.
14432 * minsyms.c: Fix common/ includes.
14433 * mi/mi-parse.h: Fix common/ includes.
14434 * mi/mi-main.c: Fix common/ includes.
14435 * mi/mi-cmd-env.c: Fix common/ includes.
14436 * memrange.h: Fix common/ includes.
14437 * memattr.c: Fix common/ includes.
14438 * maint.h: Fix common/ includes.
14439 * maint.c: Fix common/ includes.
14440 * main.c: Fix common/ includes.
14441 * machoread.c: Fix common/ includes.
14442 * location.c: Fix common/ includes.
14443 * linux-thread-db.c: Fix common/ includes.
14444 * linux-nat.c: Fix common/ includes.
14445 * linux-fork.c: Fix common/ includes.
14446 * inline-frame.c: Fix common/ includes.
14447 * infrun.c: Fix common/ includes.
14448 * inflow.c: Fix common/ includes.
14449 * inferior.h: Fix common/ includes.
14450 * inferior.c: Fix common/ includes.
14451 * infcmd.c: Fix common/ includes.
14452 * inf-ptrace.c: Fix common/ includes.
14453 * inf-child.c: Fix common/ includes.
14454 * ia64-linux-nat.c: Fix common/ includes.
14455 * i387-tdep.c: Fix common/ includes.
14456 * i386-tdep.c: Fix common/ includes.
14457 * i386-linux-tdep.c: Fix common/ includes.
14458 * i386-linux-nat.c: Fix common/ includes.
14459 * i386-go32-tdep.c: Fix common/ includes.
14460 * i386-fbsd-tdep.c: Fix common/ includes.
14461 * i386-fbsd-nat.c: Fix common/ includes.
14462 * guile/scm-type.c: Fix common/ includes.
14463 * guile/guile.c: Fix common/ includes.
14464 * go32-nat.c: Fix common/ includes.
14465 * gnu-nat.c: Fix common/ includes.
14466 * gdbthread.h: Fix common/ includes.
14467 * gdbarch-selftests.c: Fix common/ includes.
14468 * gdb_usleep.c: Fix common/ includes.
14469 * gdb_select.h: Fix common/ includes.
14470 * gdb_bfd.c: Fix common/ includes.
14471 * gcore.c: Fix common/ includes.
14472 * fork-child.c: Fix common/ includes.
14473 * findvar.c: Fix common/ includes.
14474 * fbsd-nat.c: Fix common/ includes.
14475 * event-top.c: Fix common/ includes.
14476 * event-loop.c: Fix common/ includes.
14477 * dwarf2read.c: Fix common/ includes.
14478 * dwarf2loc.c: Fix common/ includes.
14479 * dwarf2-frame.c: Fix common/ includes.
14480 * dwarf-index-cache.c: Fix common/ includes.
14481 * dtrace-probe.c: Fix common/ includes.
14482 * disasm-selftests.c: Fix common/ includes.
14483 * defs.h: Fix common/ includes.
14484 * csky-tdep.c: Fix common/ includes.
14485 * cp-valprint.c: Fix common/ includes.
14486 * cp-support.h: Fix common/ includes.
14487 * cp-support.c: Fix common/ includes.
14488 * corelow.c: Fix common/ includes.
14489 * completer.h: Fix common/ includes.
14490 * completer.c: Fix common/ includes.
14491 * compile/compile.c: Fix common/ includes.
14492 * compile/compile-loc2c.c: Fix common/ includes.
14493 * compile/compile-cplus-types.c: Fix common/ includes.
14494 * compile/compile-cplus-symbols.c: Fix common/ includes.
14495 * command.h: Fix common/ includes.
14496 * cli/cli-dump.c: Fix common/ includes.
14497 * cli/cli-cmds.c: Fix common/ includes.
14498 * charset.c: Fix common/ includes.
14499 * build-id.c: Fix common/ includes.
14500 * btrace.h: Fix common/ includes.
14501 * btrace.c: Fix common/ includes.
14502 * breakpoint.h: Fix common/ includes.
14503 * breakpoint.c: Fix common/ includes.
14504 * ax.h:
14505 (enum agent_op): Fix common/ includes.
14506 * ax-general.c (struct aop_map): Fix common/ includes.
14507 * ax-gdb.c: Fix common/ includes.
14508 * auxv.c: Fix common/ includes.
14509 * auto-load.c: Fix common/ includes.
14510 * arm-tdep.c: Fix common/ includes.
14511 * arch/riscv.c: Fix common/ includes.
14512 * arch/ppc-linux-common.c: Fix common/ includes.
14513 * arch/i386.c: Fix common/ includes.
14514 * arch/arm.c: Fix common/ includes.
14515 * arch/arm-linux.c: Fix common/ includes.
14516 * arch/arm-get-next-pcs.c: Fix common/ includes.
14517 * arch/amd64.c: Fix common/ includes.
14518 * arch/aarch64.c: Fix common/ includes.
14519 * arch/aarch64-insn.c: Fix common/ includes.
14520 * arch-utils.c: Fix common/ includes.
14521 * amd64-windows-tdep.c: Fix common/ includes.
14522 * amd64-tdep.c: Fix common/ includes.
14523 * amd64-sol2-tdep.c: Fix common/ includes.
14524 * amd64-obsd-tdep.c: Fix common/ includes.
14525 * amd64-nbsd-tdep.c: Fix common/ includes.
14526 * amd64-linux-tdep.c: Fix common/ includes.
14527 * amd64-linux-nat.c: Fix common/ includes.
14528 * amd64-fbsd-tdep.c: Fix common/ includes.
14529 * amd64-fbsd-nat.c: Fix common/ includes.
14530 * amd64-dicos-tdep.c: Fix common/ includes.
14531 * amd64-darwin-tdep.c: Fix common/ includes.
14532 * agent.c: Fix common/ includes.
14533 * ada-lang.h: Fix common/ includes.
14534 * ada-lang.c: Fix common/ includes.
14535 * aarch64-tdep.c: Fix common/ includes.
14536
14537 2019-01-25 Tom Tromey <tom@tromey.com>
14538
14539 * common/create-version.sh: Use common/version.h.
14540
14541 2019-01-24 Pedro Alves <palves@redhat.com>
14542
14543 * infrun.c (signal_stop, signal_print, signal_program)
14544 (signal_catch, signal_pass): Now arrays instead of pointers.
14545 (update_signals_program_target, do_target_resume)
14546 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14547 * linux-nat.c (linux_nat_target::pass_signals)
14548 (linux_nat_target::create_inferior, linux_nat_target::attach):
14549 Adjust.
14550 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14551 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14552 * procfs.c (procfs_target::pass_signals): Adjust.
14553 * record-full.c (record_full_target::resume): Adjust.
14554 * remote.c (remote_target::pass_signals)
14555 (remote_target::program_signals): Adjust.
14556 * target-debug.h (target_debug_print_signals): Now takes a
14557 gdb::array_view as parameter. Adjust.
14558 * target.h (target_ops) <pass_signals, program_signals>: Replace
14559 pointer and length parameters with gdb::array_view.
14560 (target_pass_signals, target_program_signals): Likewise.
14561 * target-delegates.c: Regenerate.
14562
14563 2019-01-24 Pedro Alves <palves@redhat.com>
14564
14565 * common/forward-scope-exit.h
14566 (forward_scope_exit::forward_scope_exit): Pass arguments to
14567 m_bind_function directly, instead of creating a std::bind and
14568 copying that.
14569
14570 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14571
14572 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14573 for static members.
14574 (pass_in_v_vfp_candidate): Likewise.
14575
14576 2019-01-23 Tom Tromey <tom@tromey.com>
14577 Pedro Alves <palves@redhat.com>
14578
14579 * regcache.c (class regcache_invalidator): Remove.
14580 (regcache::raw_write): Use make_scope_exit.
14581
14582 2019-01-23 Tom Tromey <tom@tromey.com>
14583
14584 * ui-out.h (class ui_out_emit_type): Update comment.
14585
14586 2019-01-23 Tom Tromey <tom@tromey.com>
14587
14588 * infrun.c (fetch_inferior_event): Update comment.
14589
14590 2019-01-23 Tom Tromey <tom@tromey.com>
14591 Pedro Alves <palves@redhat.com>
14592
14593 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14594 parameter.
14595 (fetch_inferior_event): Use SCOPE_EXIT.
14596
14597
14598 2019-01-23 Tom Tromey <tom@tromey.com>
14599 Pedro Alves <palves@redhat.com>
14600
14601 * infrun.c (disable_thread_events): Delete.
14602 (stop_all_threads): Use SCOPE_EXIT.
14603
14604 2019-01-23 Tom Tromey <tom@tromey.com>
14605 Pedro Alves <palves@redhat.com>
14606
14607 * symfile.c: Include forward-scope-exit.h.
14608 (clear_symtab_users_cleanup): Replace forward declaration with
14609 a FORWARD_SCOPE_EXIT.
14610 (syms_from_objfile_1): Use the forward_scope_exit and
14611 gdb::optional instead of cleanup_function.
14612 (reread_symbols): Use the forward_scope_exit instead of
14613 cleanup_function.
14614 (clear_symtab_users_cleanup): Remove function.
14615
14616 2019-01-23 Tom Tromey <tom@tromey.com>
14617 Pedro Alves <palves@redhat.com>
14618
14619 * linux-nat.c: Include scope-exit.h.
14620 (cleanup_target_stop): Remove.
14621 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14622 SCOPE_EXIT.
14623
14624 2019-01-23 Tom Tromey <tom@tromey.com>
14625 Pedro Alves <palves@redhat.com>
14626
14627 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14628 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14629
14630 2019-01-23 Tom Tromey <tom@tromey.com>
14631 Andrew Burgess <andrew.burgess@embecosm.com>
14632 Pedro Alves <palves@redhat.com>
14633
14634 * infrun.c (fetch_inferior_event): Use scope_exit.
14635 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14636 * top.c (execute_command): Use scope_exit.
14637 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14638 * utils.c (do_bpstat_clear_actions_cleanup)
14639 (make_bpstat_clear_actions_cleanup): Remove.
14640
14641 2019-01-23 Tom Tromey <tom@tromey.com>
14642 Pedro Alves <palves@redhat.com>
14643
14644 * infrun.c: Include "common/scope-exit.h"
14645 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14646 (wait_for_inferior): Use SCOPE_EXIT.
14647 (fetch_inferior_event): Use scope_exit.
14648
14649 2019-01-23 Tom Tromey <tom@tromey.com>
14650 Pedro Alves <palves@redhat.com>
14651
14652 * breakpoint.c (create_breakpoint): Remove cleanup.
14653
14654 2019-01-23 Tom Tromey <tom@tromey.com>
14655 Andrew Burgess <andrew.burgess@embecosm.com>
14656 Pedro Alves <palves@redhat.com>
14657
14658 2019-01-23 Pedro Alves <palves@redhat.com>
14659
14660 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14661
14662 2019-01-23 Pedro Alves <palves@redhat.com>
14663 Andrew Burgess <andrew.burgess@embecosm.com>
14664
14665 * gdbthread.h: Include "common/forward-scope-exit.h".
14666 (scoped_finish_thread_state): Redefine custom class in terms of
14667 forward_scope_exit.
14668
14669 2019-01-23 Pedro Alves <palves@redhat.com>
14670 Andrew Burgess <andrew.burgess@embecosm.com>
14671
14672 * common/forward-scope-exit.h: New file.
14673
14674 2019-01-23 Pedro Alves <palves@redhat.com>
14675 Andrew Burgess <andrew.burgess@embecosm.com>
14676 Tom Tromey <tom@tromey.com>
14677
14678 * common/scope-exit.h: New file.
14679
14680 2019-01-23 Pedro Alves <palves@redhat.com>
14681
14682 * common/preprocessor.h (ESC): Rename to ...
14683 (ESC_PARENS): ... this.
14684 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14685 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14686
14687 2019-01-23 Tom Tromey <tom@tromey.com>
14688
14689 * language.h (class scoped_switch_to_sym_language_if_auto):
14690 Initialize m_lang in both cases.
14691
14692 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14693
14694 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14695 with XCNEW.
14696
14697 2019-01-22 Tom Tromey <tom@tromey.com>
14698
14699 * corelow.c: Do not include sys/file.h.
14700
14701 2019-01-22 Tom Tromey <tom@tromey.com>
14702
14703 * tui/tui-wingeneral.h: Include gdb_curses.h.
14704
14705 2019-01-22 Tom Tromey <tom@tromey.com>
14706
14707 * source-cache.h (class source_cache) <get_source_lines,
14708 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14709
14710 2019-01-22 Tom Tromey <tom@tromey.com>
14711
14712 * remote-fileio.h (struct remote_target): Declare.
14713
14714 2019-01-22 Tom Tromey <tom@tromey.com>
14715
14716 * python/py-arch.c: Do not include py-ref.h.
14717 * python/py-bpevent.c: Do not include py-ref.h.
14718 * python/py-cmd.c: Do not include py-ref.h.
14719 * python/py-continueevent.c: Do not include py-ref.h.
14720 * python/py-event.h: Do not include py-ref.h.
14721 * python/py-evtregistry.c: Do not include py-ref.h.
14722 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14723 * python/py-frame.c: Do not include py-ref.h.
14724 * python/py-framefilter.c: Do not include py-ref.h.
14725 * python/py-function.c: Do not include py-ref.h.
14726 * python/py-infevents.c: Do not include py-ref.h.
14727 * python/py-linetable.c: Do not include py-ref.h.
14728 * python/py-objfile.c: Do not include py-ref.h.
14729 * python/py-param.c: Do not include py-ref.h.
14730 * python/py-prettyprint.c: Do not include py-ref.h.
14731 * python/py-progspace.c: Do not include py-ref.h.
14732 * python/py-symbol.c: Do not include py-ref.h.
14733 * python/py-symtab.c: Do not include py-ref.h.
14734 * python/py-type.c: Do not include py-ref.h.
14735 * python/py-unwind.c: Do not include py-ref.h.
14736 * python/py-utils.c: Do not include py-ref.h.
14737 * python/py-value.c: Do not include py-ref.h.
14738 * python/py-varobj.c: Do not include py-ref.h.
14739 * python/py-xmethods.c: Do not include py-ref.h.
14740 * python/python.c: Do not include py-ref.h.
14741 * varobj.c: Do not include py-ref.h.
14742
14743 2019-01-22 Tom Tromey <tom@tromey.com>
14744
14745 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14746 keyword for bcache.
14747
14748 2019-01-22 Tom Tromey <tom@tromey.com>
14749
14750 * compile/compile-cplus-types.c: Remove a comment by #include.
14751
14752 2019-01-22 Tom Tromey <tom@tromey.com>
14753
14754 * compile/gcc-c-plugin.h: Include compile-internal.h.
14755
14756 2019-01-22 Tom Tromey <tom@tromey.com>
14757
14758 * stabsread.c (EXTERN): Do not define.
14759 (symnum, next_symbol_text_func, processing_gcc_compilation)
14760 (within_function, global_sym_chain, global_stabs)
14761 (previous_stab_code, this_object_header_files)
14762 (n_this_object_header_files)
14763 (n_allocated_this_object_header_files): Define.
14764 * stabsread.h (EXTERN): Never define. Use "extern".
14765
14766 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14767
14768 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14769 history_value.
14770
14771 2019-01-21 Tom Tromey <tom@tromey.com>
14772
14773 * ui-out.c: Fix includes.
14774 * tui/tui-source.c: Fix includes.
14775 * target.c: Fix includes.
14776 * remote.c: Fix includes.
14777 * regcache.c: Fix includes.
14778 * python/py-block.c: Fix includes.
14779 * printcmd.c: Fix includes.
14780 * or1k-tdep.c: Fix includes.
14781 * mi/mi-main.c: Fix includes.
14782 * m32r-tdep.c: Fix includes.
14783 * csky-tdep.c: Fix includes.
14784 * compile/compile-cplus-types.c: Fix includes.
14785 * cli/cli-interp.c: Fix includes.
14786
14787 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14788
14789 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14790 for padding.
14791
14792 2019-01-16 Tom Tromey <tom@tromey.com>
14793
14794 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14795 earlier.
14796 (struct objfile) <msymbols_range>: Move from top level.
14797 <msymbols>: New method.
14798 (class objfile_msymbols): Remove.
14799 * symtab.c (default_collect_symbol_completion_matches_break_on):
14800 Update.
14801 * symmisc.c (dump_msymbols): Update.
14802 * stabsread.c (scan_file_globals): Update.
14803 * objc-lang.c (info_selectors_command, info_classes_command)
14804 (find_methods): Update.
14805 * minsyms.c (find_solib_trampoline_target): Update.
14806 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14807 * coffread.c (coff_symfile_read): Update.
14808 * ada-lang.c (ada_lookup_simple_minsym)
14809 (ada_collect_symbol_completion_matches): Update.
14810
14811 2019-01-16 Tom Tromey <tom@tromey.com>
14812
14813 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14814 type. Remove no-argument constructor.
14815 <iterator::operator++>: Simplify.
14816 <begin>: Update.
14817 <end>: Use minimal_symbol_count.
14818
14819 2019-01-16 Tom Tromey <tom@tromey.com>
14820
14821 * objfiles.h (struct objfile) <psymtabs>: New method.
14822 (class objfile_psymtabs): Remove.
14823 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14824 typedef.
14825 <range>: New method.
14826 (require_partial_symbols): Change return type.
14827 * psymtab.c (require_partial_symbols)
14828 (psym_expand_symtabs_matching): Update.
14829 * mdebugread.c (parse_partial_symbols): Update.
14830 * dbxread.c (dbx_end_psymtab): Update.
14831
14832 2019-01-15 Tom Tromey <tom@tromey.com>
14833
14834 * symtab.c (lookup_objfile_from_block)
14835 (lookup_symbol_in_objfile_symtabs)
14836 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14837 (find_line_symtab, info_sources_command)
14838 (default_collect_symbol_completion_matches_break_on)
14839 (make_source_files_completion_list): Update.
14840 * symmisc.c (print_objfile_statistics, dump_objfile)
14841 (maintenance_print_symbols, maintenance_info_symtabs)
14842 (maintenance_check_symtabs, maintenance_info_line_tables):
14843 Update.
14844 * source.c (select_source_symtab)
14845 (forget_cached_source_info_for_objfile): Update.
14846 * objfiles.h (class objfile_compunits): Remove.
14847 (struct objfile) <compunits_range>: New typedef.
14848 (compunits): New method.
14849 * objfiles.c (objfile_relocate1): Update.
14850 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14851 * maint.c (count_symtabs_and_blocks): Update.
14852 * linespec.c (iterate_over_all_matching_symtabs): Update.
14853 * cp-support.c (add_symbol_overload_list_qualified): Update.
14854 * coffread.c (coff_symtab_read): Update.
14855 * ada-lang.c (add_nonlocal_symbols)
14856 (ada_collect_symbol_completion_matches)
14857 (ada_add_global_exceptions): Update.
14858
14859 2019-01-15 Tom Tromey <tom@tromey.com>
14860
14861 * progspace.h (program_space) <objfiles_safe_range>: New
14862 typedef.
14863 <objfiles_safe>: New method.
14864 * objfiles.h (class all_objfiles_safe): Remove.
14865 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14866 * jit.c (jit_inferior_exit_hook): Update.
14867
14868 2019-01-17 Tom Tromey <tom@tromey.com>
14869
14870 * progspace.h (program_space) <objfiles_range>: New typedef.
14871 <objfiles>: New method.
14872 <objfiles_head>: Rename from objfiles.
14873 (object_files): Update.
14874 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14875 * guile/scm-pretty-print.c
14876 (ppscm_find_pretty_printer_from_objfiles): Update.
14877 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14878 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14879 Update.
14880 * python/py-progspace.c (pspy_get_objfiles): Update.
14881 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14882 Update.
14883 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14884 (objfpy_lookup_objfile_by_build_id): Update.
14885 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14886 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14887 Update.
14888 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14889 (expand_symtab_containing_pc, lookup_objfile_from_block)
14890 (lookup_static_symbol, basic_lookup_transparent_type)
14891 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14892 (find_line_symtab, info_sources_command)
14893 (default_collect_symbol_completion_matches_break_on)
14894 (make_source_files_completion_list, find_main_name): Update.
14895 * symmisc.c (print_symbol_bcache_statistics)
14896 (print_objfile_statistics, maintenance_print_symbols)
14897 (maintenance_print_msymbols, maintenance_print_objfiles)
14898 (maintenance_info_symtabs, maintenance_check_symtabs)
14899 (maintenance_expand_symtabs, maintenance_info_line_tables):
14900 Update.
14901 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14902 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14903 (map_overlay_command, unmap_overlay_command)
14904 (simple_overlay_update, expand_symtabs_matching)
14905 (map_symbol_filenames): Update.
14906 * symfile-debug.c (set_debug_symfile): Update.
14907 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14908 Update.
14909 * source.c (select_source_symtab, forget_cached_source_info):
14910 Update.
14911 * solib.c (solib_read_symbols): Update.
14912 * solib-spu.c (append_ocl_sos): Update.
14913 * psymtab.c (maintenance_print_psymbols)
14914 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14915 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14916 * printcmd.c (info_symbol_command): Update.
14917 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14918 Update.
14919 * objfiles.h (class all_objfiles): Remove.
14920 * objfiles.c (have_partial_symbols, have_full_symbols)
14921 (have_minimal_symbols, qsort_cmp, update_section_map)
14922 (shared_objfile_contains_address_p)
14923 (default_iterate_over_objfiles_in_search_order): Update.
14924 * objc-lang.c (info_selectors_command, info_classes_command)
14925 (find_methods): Update.
14926 * minsyms.c (find_solib_trampoline_target): Update.
14927 * maint.c (maintenance_info_sections)
14928 (maintenance_translate_address, count_symtabs_and_blocks):
14929 Update.
14930 * main.c (captured_main_1): Update.
14931 * linux-thread-db.c (try_thread_db_load_from_pdir)
14932 (has_libpthread): Update.
14933 * linespec.c (iterate_over_all_matching_symtabs)
14934 (search_minsyms_for_name): Update.
14935 * jit.c (jit_find_objf_with_entry_addr): Update.
14936 * hppa-tdep.c (find_unwind_entry)
14937 (hppa_lookup_stub_minimal_symbol): Update.
14938 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14939 Update.
14940 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14941 (elf_gnu_ifunc_resolve_by_got): Update.
14942 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14943 * dwarf-index-write.c (save_gdb_index_command): Update.
14944 * cp-support.c (add_symbol_overload_list_qualified): Update.
14945 * breakpoint.c (create_overlay_event_breakpoint)
14946 (create_longjmp_master_breakpoint)
14947 (create_std_terminate_master_breakpoint)
14948 (create_exception_master_breakpoint): Update.
14949 * blockframe.c (find_pc_partial_function): Update.
14950 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14951 (ada_collect_symbol_completion_matches)
14952 (ada_add_global_exceptions): Update.
14953
14954 2019-01-17 Tom Tromey <tom@tromey.com>
14955
14956 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14957 declare VEC.
14958 (solib_target_parse_libraries): Change return type.
14959 (library_list_start_segment, library_list_start_section)
14960 (library_list_end_library, library_list_start_library); Update.
14961 (solib_target_free_library_list): Remove.
14962 (solib_target_parse_libraries): Remove cleanup. Change return
14963 type.
14964 (solib_target_current_sos): Update.
14965
14966 2019-01-17 Tom Tromey <tromey@bapiya>
14967
14968 * valprint.c: Replace "the the" with "the".
14969 * symtab.c: Replace "the the" with "the".
14970 * solib.c: Replace "the the" with "the".
14971 * solib-dsbt.c: Replace "the the" with "the".
14972 * linespec.c: Replace "the the" with "the".
14973 * dwarf2loc.h: Replace "the the" with "the".
14974 * amd64-windows-tdep.c: Replace "the the" with "the".
14975 * aarch64-tdep.c: Replace "the the" with "the".
14976
14977 2019-01-16 Keith Seitz <keiths@redhat.com>
14978
14979 PR gdb/23773
14980 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14981 <builder>: Rename to ..
14982 <m_builder>: ... this and make private.
14983 (dwarf2_cu::get_builder): New method. Change all users of
14984 `builder' to use this method.
14985 (dwarf2_start_symtab): Move to ...
14986 (dwarf2_cu::start_symtab): ... here. Update all callers
14987 (setup_type_unit_groups): Move to ...
14988 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14989 callers.
14990 (dwarf2_cu::reset_builder): New method.
14991 (process_full_compunit, process_full_type_unit): Use
14992 dwarf2_cu::reset_builder.
14993 (follow_die_offset): Record the ancestor CU if it is different
14994 from the followed DIE's CU.
14995 (follow_die_sig_1): Likewise.
14996
14997 2019-01-15 Tom Tromey <tom@tromey.com>
14998
14999 * remote.c (class remote_state) <buf>: Now a char_vector.
15000 <buf_size>: Remove.
15001 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15002 parameter.
15003 (remote_target::getpkt_or_notif_sane_1)
15004 (remote_target::getpkt_sane)
15005 (remote_target::getpkt_or_notif_sane): Likewise.
15006 (class remote_target) <putpkt>: New overload.
15007 (remote_target::read_frame): Change type of "buf_p". Remove
15008 sizeof_p parameter.
15009 (packet_ok): New overload.
15010 (packet_check_result): New overload.
15011 Update all uses.
15012
15013 2019-01-14 Tom Tromey <tom@tromey.com>
15014
15015 * remote-notif.c (handle_notification, remote_notif_ack)
15016 (remote_notif_parse): Make "buf" const.
15017 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15018 const.
15019 (remote_notif_parse, remote_notif_ack, handle_notification):
15020 Likewise.
15021 * remote.c (remote_notif_stop_parse): Make "buf" const.
15022 (remote_target::remote_parse_stop_reply): Make "buf" const.
15023 (remote_notif_stop_ack): Make "buf" const.
15024
15025 2019-01-14 Tom Tromey <tom@tromey.com>
15026
15027 * remote.c (remote_console_output): Make parameter const.
15028
15029 2019-01-14 Tom Tromey <tom@tromey.com>
15030
15031 * target-debug.h (target_debug_print_signals): Constify.
15032 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15033 * procfs.c (procfs_target::pass_signals): Update.
15034 * linux-nat.c (linux_nat_target::pass_signals): Update.
15035 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15036 * target-delegates.c: Rebuild.
15037 * remote.c (remote_target::program_signals): Update.
15038 (remote_target::pass_signals): Update.
15039 * target.c (target_pass_signals): Constify argument.
15040 (target_program_signals): Likewise.
15041 * target.h (struct target_ops) <pass_signals, program_signals>:
15042 Constify argument.
15043 (target_pass_signals, target_program_signals): Constify argument.
15044
15045 2019-01-14 Tom Tromey <tom@tromey.com>
15046
15047 PR tui/28819:
15048 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15049
15050 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15051
15052 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15053 field.
15054 * rs6000-tdep.c: Include reggroups.h.
15055 (IS_V_ALIAS_PSEUDOREG): Define.
15056 (rs6000_register_name): Return names for the "vX" aliases.
15057 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15058 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15059 aliases. Call default_register_reggroup_p for all other
15060 pseudo-registers.
15061 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15062 New functions.
15063 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15064 Handle "vX" aliases.
15065 (v_alias_pseudo_register_collect): New function.
15066 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15067 (rs6000_gdbarch_init): Initialize "vX" aliases as
15068 pseudo-registers. Restore registration of
15069 rs6000_pseudo_register_reggroup_p with
15070 set_tdesc_pseudo_register_reggroup_p.
15071
15072 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15073
15074 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15075 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15076 set_gdbarch_num_pseudo_regs.
15077
15078 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15079
15080 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15081 Remove arg prefixname, add do_set and do_show.
15082 Add member functions set_list and show_list.
15083 * cli/cli-style.c (class cli_style_option): Update accordingly.
15084 (style_set_list): Move to file scope.
15085 (style_show_list): Likewise.
15086 (set_style): Call help_list.
15087 (show_style): Call cmd_show_list.
15088 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15089 Update to use the new macro.
15090
15091 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15092
15093 * ada-lang.c (_initialize_ada_language): Expand the help text
15094 for the "catch exception" command.
15095
15096 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15097
15098 * symtab.c (matching_obj_sections): Initialize obj,
15099 declare it closer to its usage.
15100
15101 2019-01-10 Tom Tromey <tom@tromey.com>
15102
15103 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15104 (basic_inf_threads_range): Remove.
15105 (inf_threads_range, inf_non_exited_threads_range)
15106 (safe_inf_threads_range): Use next_adapter.
15107
15108 2019-01-10 Keith Seitz <keiths@redhat.com>
15109
15110 PR gdb/23712
15111 PR symtab/23010
15112 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15113 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15114
15115 2019-01-10 Keith Seitz <keiths@redhat.com>
15116
15117 PR gdb/23712
15118 PR symtab/23010
15119 * dictionary.c (pending_to_vector): Remove.
15120 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15121 Remove _1 suffix, replacing functions of the same name. Update
15122 all callers.
15123 (dict_create_hashed, dict_create_hashed_expandable)
15124 (dict_create_linear, dict_create_linear_expandable, dict_free)
15125 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15126 Make functions static.
15127
15128 2019-01-10 Keith Seitz <keiths@redhat.com>
15129
15130 PR gdb/23712
15131 PR symtab/23010
15132 * dictionary.h (struct dictionary): Replace declaration with
15133 multidictionary.
15134 (dict_create_hashed, dict_create_hashed_expandable)
15135 (dict_create_linear, dict_create_linear_expandable)
15136 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15137 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15138 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15139 taking multidictionary argument.
15140 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15141 * block.h (struct block) <dict>: Change to multidictionary
15142 and rename `multidict'.
15143 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15144 symmisc.c: Update all dictionary references to multidictionary.
15145
15146 2019-01-10 Keith Seitz <keiths@redhat.com>
15147
15148 PR gdb/23712
15149 PR symtab/23010
15150 * dictionary.c: Include unordered_map.
15151 (pending_to_vector): New function.
15152 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15153 Rewrite the non-"_1" functions to take vector instead
15154 of linked list.
15155 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15156 "new" _1 versions of the same name.
15157 (multidictionary): Define.
15158 (std::hash<enum language): New definition.
15159 (collate_pending_symbols_by_language, mdict_create_hashed)
15160 (mdict_create_hashed_expandable, mdict_create_linear)
15161 (mdict_create_linear_expandable, mdict_free)
15162 (find_language_dictionary, create_new_language_dictionary)
15163 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15164 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15165 (mdict_size, mdict_empty): New functions.
15166 * dictionary.h (mdict_iterator): Define.
15167
15168 2019-01-10 Pedro Alves <palves@redhat.com>
15169
15170 * breakpoint.c (read_uploaded_action)
15171 (create_tracepoint_from_upload): Adjust to use
15172 gdb::unique_xmalloc_ptr.
15173 * ctf.c (ctf_write_uploaded_tp):
15174 (SET_ARRAY_FIELD): Use emplace_back.
15175 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15176 * tracefile-tfile.c (tfile_write_uploaded_tp):
15177 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15178 gdb::unique_xmalloc_ptr.
15179 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15180 at_string, cond_string, cmd_strings>: Replace char pointers
15181 with gdb::unique_xmalloc_ptr.
15182
15183 2019-01-10 Pedro Alves <palves@redhat.com>
15184
15185 * solib-target.c (library_list_start_library): Don't xstrdup name.
15186
15187 2019-01-10 Pedro Alves <palves@redhat.com>
15188
15189 * mdebugread.c (parse_partial_symbols): Use
15190 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15191
15192 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15193
15194 * linux-fork.c (scoped_switch_fork_info)
15195 <~scoped_switch_fork_info>: Fix incorrect variable name.
15196
15197 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15198
15199 * linux-fork.c (scoped_switch_fork_info)
15200 <scoped_switch_fork_info>: Make explicit.
15201 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15202
15203 2019-01-10 Tom Tromey <tom@tromey.com>
15204
15205 * objfiles.h (objfile::reset_psymtabs): Update.
15206 * objfiles.c (objfile::objfile): Update.
15207 * psymtab.h (psymtab_storage::obstack): Update.
15208 (psymtab_storage::m_obstack): Use gdb::optional.
15209 (class psymtab_storage): Update comment. Remove objfile
15210 parameter.
15211 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15212
15213 2019-01-10 Tom Tromey <tom@tromey.com>
15214
15215 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15216 <free_psymtabs>: Now private.
15217 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15218 (allocate_psymtab): Use new method.
15219
15220 2019-01-10 Tom Tromey <tom@tromey.com>
15221
15222 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15223 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15224 * mdebugread.c (parse_partial_symbols): Use
15225 allocate_dependencies.
15226 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15227 allocate_dependencies.
15228 (process_psymtab_comp_unit_reader)
15229 (build_type_psymtab_dependencies): Likewise.
15230 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15231
15232 2019-01-10 Tom Tromey <tom@tromey.com>
15233
15234 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15235 PSYMBOL_SET_LANGUAGE.
15236 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15237
15238 2019-01-10 Tom Tromey <tom@tromey.com>
15239
15240 * psymtab.h (psymtab_storage::obstack): New method.
15241 <m_obstack>: Rename from obstack; now private.
15242 * psymtab.c (psymtab_storage): Update.
15243 * dwarf2read.c (create_addrmap_from_index)
15244 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15245 Update.
15246
15247 2019-01-10 Tom Tromey <tom@tromey.com>
15248
15249 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15250 * objfiles.h (objfile::reset_psymtabs): New method.
15251
15252 2019-01-10 Tom Tromey <tom@tromey.com>
15253
15254 * symmisc.c (print_symbol_bcache_statistics): Update.
15255 (print_objfile_statistics): Update.
15256 * symfile.c (reread_symbols): Update.
15257 * psymtab.h (class psymtab_storage): New.
15258 * psymtab.c (psymtab_storage): New constructor.
15259 (~psymtab_storage): New destructor.
15260 (require_partial_symbols): Update.
15261 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15262 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15263 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15264 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15265 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15266 (start_psymtab_common, end_psymtab_common)
15267 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15268 (allocate_psymtab): Update.
15269 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15270 Update.
15271 (dump_psymtab_addrmap, maintenance_print_psymbols)
15272 (maintenance_check_psymtabs): Update.
15273 (class objfile_psymtabs): Move to objfiles.h.
15274 * psympriv.h (discard_psymtab): Now inline.
15275 (psymtab_discarder::psymtab_discarder): Update.
15276 (psymtab_discarder::~psymtab_discarder): Update.
15277 (ALL_OBJFILE_PSYMTABS): Rewrite.
15278 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15279 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15280 Remove fields.
15281 <partial_symtabs>: New field.
15282 (class objfile_psymtabs): Move from psymtab.h. Update.
15283 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15284 psymbol_cache.
15285 (objfile::~objfile): Don't destroy psymbol_cache.
15286 * mdebugread.c (parse_partial_symbols): Update.
15287 * dwarf2read.c (create_addrmap_from_index)
15288 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15289 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15290 (add_partial_subprogram, dwarf2_ranges_read): Update.
15291 * dwarf-index-write.c (write_address_map)
15292 (write_one_signatured_type, recursively_write_psymbols)
15293 (class debug_names, class debug_names, write_psymtabs_to_index):
15294 Update.
15295
15296 2019-01-10 Tom Tromey <tom@tromey.com>
15297
15298 * symtab.h (SYMBOL_SET_NAMES): Update.
15299 (symbol_set_names): Update.
15300 (MSYMBOL_SET_NAMES): Update.
15301 * symtab.c (symbol_set_names): Change argument to be an
15302 objfile_per_bfd_storage.
15303 * psymtab.c (add_psymbol_to_bcache): Update.
15304 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15305
15306 2019-01-10 Tom Tromey <tom@tromey.com>
15307
15308 * symtab.c (create_demangled_names_hash): Change argument to be an
15309 objfile_per_bfd_storage.
15310 (symbol_set_names): Update.
15311
15312 2019-01-10 Tom Tromey <tom@tromey.com>
15313
15314 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15315 init_psymbol_list.
15316 * psymtab.c (init_psymbol_list): Do nothing if already called.
15317 * psympriv.h (init_psymbol_list): Add comment.
15318 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15319 init_psymbol_list.
15320 * dbxread.c (dbx_symfile_read): Unconditionally call
15321 init_psymbol_list.
15322
15323 2019-01-10 Tom Tromey <tom@tromey.com>
15324
15325 * xcoffread.c (scan_xcoff_symtab): Update.
15326 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15327 "where".
15328 * mdebugread.c (parse_partial_symbols)
15329 (handle_psymbol_enumerators): Update.
15330 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15331 * dbxread.c (read_dbx_symtab): Update.
15332 * psympriv.h (psymbol_placement): New enum.
15333 (add_psymbol_to_list): Update.
15334
15335 2019-01-10 Tom Tromey <tom@tromey.com>
15336
15337 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15338 static_psymbols parameters.
15339 (scan_xcoff_symtab): Update.
15340 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15341 static_psymbols parameters.
15342 * psympriv.h (start_psymtab_common): Update.
15343 * mdebugread.c (parse_partial_symbols): Update.
15344 * dwarf2read.c (create_partial_symtab): Update.
15345 * dbxread.c (read_dbx_symtab): Update.
15346 (start_psymtab): Remove global_psymbols and static_psymbols
15347 parameters.
15348
15349 2019-01-10 Tom Tromey <tom@tromey.com>
15350
15351 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15352 * psymtab.c (allocate_psymtab): Add comment.
15353 * psympriv.h (allocate_psymtab): Add comment.
15354 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15355 initializations.
15356 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15357
15358 2019-01-10 Tom Tromey <tom@tromey.com>
15359
15360 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15361 Don't declare.
15362 * mipsread.c: Include mdebugread.h.
15363 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15364 Declare.
15365 * elfread.c: Include mdebugread.h.
15366
15367 2019-01-09 Tom Tromey <tom@tromey.com>
15368
15369 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15370 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15371 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15372 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15373 (psym_lookup_symbol, psym_find_last_source_symtab)
15374 (psym_forget_cached_source_info, psym_print_stats)
15375 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15376 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15377 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15378 (psym_find_compunit_symtab_by_address)
15379 (maintenance_print_psymbols, maintenance_info_psymtabs)
15380 (maintenance_check_psymtabs): Use ranged for.
15381 * psymtab.h (class objfile_psymtabs): New.
15382 (require_partial_symbols): Return objfile_psymtabs.
15383 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15384
15385 2019-01-09 Tom Tromey <tom@tromey.com>
15386
15387 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15388 (find_pc_mapped_section, list_overlays_command)
15389 (map_overlay_command, unmap_overlay_command)
15390 (simple_overlay_update): Use all_objfiles.
15391 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15392 * printcmd.c (info_symbol_command): Use all_objfiles.
15393 * objfiles.h (ALL_OBJSECTIONS): Remove.
15394 * maint.c (maintenance_translate_address): Use all_objfiles.
15395 * gcore.c (gcore_create_callback): Use all_objfiles.
15396 (objfile_find_memory_regions): Likewise.
15397
15398 2019-01-09 Tom Tromey <tom@tromey.com>
15399
15400 * symtab.c (find_line_symtab, info_sources_command)
15401 (make_source_files_completion_list): Use objfile_compunits.
15402 * source.c (select_source_symtab): Use objfile_compunits.
15403 * objfiles.h (struct objfile): Update comment.
15404 (ALL_OBJFILES): Remove.
15405 (ALL_FILETABS): Remove.
15406 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15407 objfile_compunits.
15408
15409 2019-01-09 Tom Tromey <tom@tromey.com>
15410
15411 * symmisc.c (print_objfile_statistics, dump_objfile)
15412 (maintenance_print_symbols): Use compunit_filetabs.
15413 * source.c (forget_cached_source_info_for_objfile): Use
15414 compunit_filetabs.
15415 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15416 (ALL_FILETABS): Use compunit_filetabs.
15417 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15418 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15419
15420 2019-01-09 Tom Tromey <tom@tromey.com>
15421
15422 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15423 (compunit_filetabs): New.
15424 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15425 compunit_filetabs.
15426 (info_sources_command, make_source_files_completion_list): Remove
15427 declaration.
15428 * symmisc.c (print_objfile_statistics, dump_objfile)
15429 (maintenance_print_symbols): Remove declaration.
15430 (maintenance_info_symtabs): Use compunit_filetabs.
15431 (maintenance_info_line_tables): Likewise.
15432 * source.c (select_source_symtab): Change local variable name.
15433 (forget_cached_source_info_for_objfile): Remove declaration.
15434 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15435 * objfiles.c (objfile_relocate1): Remove declaration.
15436 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15437 declaration.
15438 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15439 * coffread.c (coff_symtab_read): Remove declaration.
15440 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15441 compunit_filetabs.
15442
15443 2019-01-09 Tom Tromey <tom@tromey.com>
15444
15445 * symtab.c (lookup_objfile_from_block)
15446 (find_pc_sect_compunit_symtab, search_symbols)
15447 (default_collect_symbol_completion_matches_break_on): Use
15448 objfile_compunits.
15449 * objfiles.h (ALL_COMPUNITS): Remove.
15450 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15451 * cp-support.c (add_symbol_overload_list_qualified): Use
15452 objfile_compunits.
15453 * ada-lang.c (ada_collect_symbol_completion_matches)
15454 (ada_add_global_exceptions): Use objfile_compunits.
15455
15456 2019-01-09 Tom Tromey <tom@tromey.com>
15457
15458 * source.c (select_source_symtab)
15459 (forget_cached_source_info_for_objfile): Remove declaration.
15460 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15461 declaration.
15462 * maint.c (count_symtabs_and_blocks): Remove declaration.
15463 * cp-support.c (add_symbol_overload_list_qualified): Remove
15464 declaration.
15465 * coffread.c (coff_symtab_read): Remove declaration.
15466 * symtab.c (lookup_symbol_in_objfile_symtabs)
15467 (basic_lookup_transparent_type_1): Use objfile_compunits.
15468 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15469 (info_sources_command, search_symbols)
15470 (default_collect_symbol_completion_matches_break_on)
15471 (make_source_files_completion_list): Remove declaration.
15472 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15473 (ada_collect_symbol_completion_matches)
15474 (ada_add_global_exceptions): Remove declaration.
15475 * linespec.c (iterate_over_all_matching_symtabs): Use
15476 objfile_compunits.
15477 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15478 (class objfile_compunits): New.
15479 (ALL_COMPUNITS): Use objfile_compunits.
15480 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15481 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15482 objfile_compunits.
15483 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15484
15485 2019-01-09 Tom Tromey <tom@tromey.com>
15486
15487 * symtab.c (search_symbols)
15488 (default_collect_symbol_completion_matches_break_on): Use
15489 objfile_msymbols.
15490 * ada-lang.c (ada_lookup_simple_minsym)
15491 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15492 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15493 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15494 objfile_msymbols.
15495 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15496 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15497 * objc-lang.c (find_methods): Use objfile_msymbols.
15498 (info_selectors_command, info_classes_command): Likewise.
15499 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15500 * objfiles.h (class objfile_msymbols): New.
15501 (ALL_OBJFILE_MSYMBOLS): Remove.
15502 (ALL_MSYMBOLS): Remove.
15503
15504 2019-01-09 Tom Tromey <tom@tromey.com>
15505
15506 * common/next-iterator.h (next_adapter): Add Iterator template
15507 parameter.
15508 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15509 (class all_objfiles_safe): New.
15510 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15511 * objfiles.c (put_objfile_before): Update comment.
15512 (add_separate_debug_objfile): Likewise.
15513 (free_all_objfiles): Use all_objfiles_safe.
15514 (objfile_purge_solibs): Likewise.
15515
15516 2019-01-09 Tom Tromey <tom@tromey.com>
15517
15518 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15519 (expand_symtab_containing_pc, lookup_static_symbol)
15520 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15521 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15522 all_objfiles.
15523 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15524 * breakpoint.c (create_overlay_event_breakpoint)
15525 (create_longjmp_master_breakpoint)
15526 (create_std_terminate_master_breakpoint)
15527 (create_exception_master_breakpoint): Use all_objfiles.
15528 * linux-thread-db.c (try_thread_db_load_from_pdir)
15529 (has_libpthread): Use all_objfiles.
15530 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15531 * linespec.c (iterate_over_all_matching_symtabs)
15532 (search_minsyms_for_name): Use all_objfiles.
15533 * maint.c (maintenance_info_sections): Use all_objfiles.
15534 * main.c (captured_main_1): Use all_objfiles.
15535 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15536 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15537 * guile/scm-pretty-print.c
15538 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15539 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15540 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15541 (maintenance_print_msymbols): Use all_objfiles.
15542 * source.c (select_source_symtab): Use all_objfiles.
15543 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15544 * symfile.c (remove_symbol_file_command)
15545 (expand_symtabs_matching, map_symbol_filenames): Use
15546 all_objfiles.
15547 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15548 all_objfiles.
15549 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15550 * objc-lang.c (find_methods): Use all_objfiles.
15551 * objfiles.c (have_partial_symbols, have_full_symbols)
15552 (have_minimal_symbols, qsort_cmp)
15553 (default_iterate_over_objfiles_in_search_order): Use
15554 all_objfiles.
15555 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15556 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15557 (maintenance_check_psymtabs): Use all_objfiles.
15558 (ALL_PSYMTABS): Remove.
15559 * compile/compile-object-run.c (do_module_cleanup): Use
15560 all_objfiles.
15561 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15562 * cp-support.c (add_symbol_overload_list_qualified): Use
15563 all_objfiles.
15564 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15565 Use all_objfiles.
15566 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15567 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15568 all_objfiles.
15569 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15570 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15571 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15572 Uses all_objfiles.
15573 * solib.c (solib_read_symbols): Use all_objfiles
15574
15575 2019-01-09 Tom Tromey <tom@tromey.com>
15576
15577 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15578 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15579 all_objfiles.
15580 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15581 * symmisc.c (print_symbol_bcache_statistics)
15582 (print_objfile_statistics, maintenance_print_objfiles)
15583 (maintenance_info_symtabs, maintenance_check_symtabs)
15584 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15585 all_objfiles.
15586 * source.c (forget_cached_source_info): Use all_objfiles.
15587 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15588 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15589 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15590 * objfiles.c (update_section_map): Use all_objfiles.
15591 (shared_objfile_contains_address_p): Likewise.
15592 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15593 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15594
15595 2019-01-09 Tom Tromey <tom@tromey.com>
15596
15597 * common/next-iterator.h: New file.
15598 * objfiles.h (class all_objfiles): New.
15599 (struct objfile_iterator): New.
15600
15601 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15602
15603 * NEWS: Move the description of the changed "frame", "select-frame",
15604 and "info frame" commands to the Changed commands section.
15605
15606 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15607
15608 * gdbtypes.c (check_stub_method_group): Remove handling of old
15609 mangling schemes.
15610 * linespec.c (find_methods): Likewise.
15611 * stabsread.c (read_member_functions): Likewise.
15612 * valops.c (search_struct_method): Likewise.
15613 (value_struct_elt_for_reference): Likewise.
15614 * NEWS: Mention this change.
15615
15616 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15617
15618 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15619 print_source_lines.
15620 * source.c (print_source_lines_base): Update line number check.
15621 (print_source_lines): New function.
15622 (source_lines_range::source_lines_range): New function.
15623 * source.h (class source_lines_range): New class.
15624 (print_source_lines): New declaration.
15625
15626 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15627
15628 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15629
15630 2019-01-08 Tom Tromey <tom@tromey.com>
15631 Simon Marchi <simon.marchi@ericsson.com>
15632
15633 PR gdb/24060
15634 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15635 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15636 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15637 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15638 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15639 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15640
15641 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15642
15643 * source.c (select_source_symtab): Move header comment to
15644 declaration in source.h.
15645 (forget_cached_source_info_for_objfile): Likewise.
15646 (forget_cached_source_info): Likewise.
15647 (identify_source_line): Likewise.
15648 * source.h (identify_source_line): Move declaration from symtab.h
15649 and add comment from source.c
15650 (print_source_lines): Likewise.
15651 (forget_cached_source_info_for_objfile): Likewise.
15652 (forget_cached_source_info): Likewise.
15653 (select_source_symtab): Likewise.
15654 (enum print_source_lines_flag): Move definition from symtab.h.
15655 * symtab.h (identify_source_line): Move declaration to source.h.
15656 (print_source_lines): Likewise.
15657 (forget_cached_source_info_for_objfile): Likewise.
15658 (forget_cached_source_info): Likewise.
15659 (select_source_symtab): Likewise.
15660 (enum print_source_lines_flag): Move definition to source.h.
15661 * tui/tui-hooks.c: Add 'source.h' include.
15662
15663 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15664
15665 * source.c (print_source_lines_base): Handle requests to print
15666 reverse line number sequences, and guard against empty lines
15667 string.
15668
15669 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15670
15671 * source.c (print_source_lines_base): Fix skip of '\r' if next
15672 character is '\n'.
15673
15674 2019-01-06 Tom Tromey <tom@tromey.com>
15675
15676 * c-exp.y (struct c_parse_state) <macro_original_text,
15677 expansion_obstack>: New member.
15678 (macro_original_text, expansion_obstack): Remove globals.
15679 (scan_macro_expansion, scanning_macro_expansion)
15680 (finished_macro_expansion): Update.
15681 (scan_macro_cleanup): Remove.
15682 (yylex, c_parse): Update.
15683
15684 2019-01-06 Tom Tromey <tom@tromey.com>
15685
15686 * c-exp.y (struct c_parse_state) <strings>: New member.
15687 (operator_stoken): Update.
15688
15689 2019-01-06 Tom Tromey <tom@tromey.com>
15690
15691 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15692 (union type_stack_elt) <typelist_val>: Now a pointer to
15693 std::vector.
15694 (type_stack_cleanup): Don't declare.
15695 (push_typelist): Update.
15696 * parse.c (pop_typelist): Return a std::vector.
15697 (push_typelist): Take a std::vector.
15698 (follow_types): Update. Do not free args.
15699 (type_stack_cleanup): Remove.
15700 * c-exp.y (struct c_parse_state): New.
15701 (cpstate): New global.
15702 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15703 (nonempty_typelist): Update.
15704 (func_mod): Create a new vector.
15705 (c_parse): Create a c_parse_state.
15706 (check_parameter_typelist): Do not delete params.
15707 (function_method): Update. Do not delete type_list.
15708
15709 2019-01-06 Tom Tromey <tom@tromey.com>
15710
15711 PR gdb/28155:
15712 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15713 check_typedef.
15714 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15715 (print_return_value): Likewise.
15716
15717 2019-01-05 Tom Tromey <tom@tromey.com>
15718
15719 * contrib/cleanup_check.py: Remove.
15720 * contrib/gcc-with-excheck: Remove.
15721 * contrib/exsummary.py: Remove.
15722 * contrib/excheck.py: Remove.
15723
15724 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15725
15726 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15727 NULL. Initialize tpprev to NULL instead of assigning it
15728 to NULL on the next statement.
15729 * windows-nat.c (windows_delete_thread): Remove check for
15730 main_thread_id before printing thread exit notifications.
15731 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15732 Remove thread ID check against main_thread_id.
15733 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15734 windows_delete_thread.
15735 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15736
15737 2019-01-04 Tom Tromey <tom@tromey.com>
15738
15739 * compile/compile.c (_initialize_compile): Use upper case for
15740 metasyntactic variables.
15741 * symmisc.c (_initialize_symmisc): Use upper case for
15742 metasyntactic variables.
15743 * psymtab.c (_initialize_psymtab): Use upper case for
15744 metasyntactic variables.
15745 * demangle.c (demangle_command): Use upper case for metasyntactic
15746 variables.
15747 (_initialize_demangler): Likewise.
15748 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15749 variables.
15750
15751 2019-01-03 Tom Tromey <tom@tromey.com>
15752
15753 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15754
15755 2019-01-03 Tom Tromey <tom@tromey.com>
15756
15757 * python/py-symtab.c (salpy_str): Update.
15758 (struct salpy_sal_object) <symtab>: Now a PyObject.
15759 (salpy_dealloc): Update.
15760 (del_objfile_sal): Use gdbpy_ref.
15761
15762 2019-01-03 Tom Tromey <tom@tromey.com>
15763
15764 * python/py-type.c (convert_field): Use new_reference. Return
15765 gdbpy_ref.
15766 (make_fielditem): Return gdbpy_ref.
15767 (typy_fields): Update.
15768 (typy_getitem): Update.
15769 (field_name): Return gdbpy_ref. Use new_reference.
15770 (typy_iterator_iternext): Update.
15771
15772 2019-01-03 Tom Tromey <tom@tromey.com>
15773
15774 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15775
15776 2019-01-03 Tom Tromey <tom@tromey.com>
15777
15778 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15779 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15780 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15781 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15782 (pspy_set_type_printers): Likewise.
15783 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15784 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15785 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15786 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15787 (objfpy_set_type_printers): Likewise.
15788
15789 2019-01-03 Tom Tromey <tom@tromey.com>
15790
15791 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15792 (gdbpy_print_stack): Use gdbpy_err_fetch.
15793 * python/python-internal.h (class gdbpy_err_fetch): New class.
15794 (class gdbpy_enter) <m_error_type, m_error_value,
15795 m_error_traceback>: Remove.
15796 <m_error>: New member.
15797 (gdbpy_exception_to_string): Don't declare.
15798 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15799 * python/py-value.c (convert_value_from_python): Use
15800 gdbpy_err_fetch.
15801 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15802 gdbpy_exception_to_string.
15803 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15804 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15805 gdbpy_err_fetch.
15806
15807 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15808
15809 * linux-nat.c (delete_lwp_cleanup): Delete.
15810 (struct lwp_deleter): New struct.
15811 (lwp_info_up): New typedef.
15812 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15813 lwp_info_up.
15814
15815 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15816
15817 * linux-fork.c (class scoped_switch_fork_info): New class.
15818 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15819
15820 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15821
15822 * valops.c (find_overload_match): Remove use of null_cleanup, and
15823 calls to do_cleanups.
15824
15825 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15826
15827 * compile/compile-cplus-types.c
15828 (compile_cplus_instance::decl_name): Handle changes to
15829 cp_func_name.
15830 * cp-support.c (cp_func_name): Update header comment, update
15831 return type.
15832 * cp-support.h (cp_func_name): Update return type in declaration.
15833 * valops.c (find_overload_match): Move temp_func local to top
15834 level of function and change its type. Use temp_func to hold and
15835 delete temporary string obtained from cp_func_name.
15836
15837 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15838
15839 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15840 gdb::char_vector, remove cleanup, and update uses of `msg`.
15841
15842 2019-01-03 Jim Wilson <jimw@sifive.com>
15843
15844 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15845
15846 2019-01-02 Tom Tromey <tom@tromey.com>
15847
15848 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15849 (tdesc_parse_xml): Remove cleanups.
15850 * target-descriptions.h (make_cleanup_free_target_description):
15851 Don't declare.
15852 (target_desc_deleter): New struct.
15853 (target_desc_up): New typedef.
15854 * target-descriptions.c (target_desc_deleter::operator()): Rename
15855 from free_target_description.
15856 (make_cleanup_free_target_description): Remove.
15857
15858 2019-01-02 Tom Tromey <tom@tromey.com>
15859
15860 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15861 constructor, destructor.
15862 (linespec_parser): Remove typedef.
15863 (~linespec_parser): Rename from linespec_parser_delete.
15864 (linespec_lex_to_end, linespec_complete_label)
15865 (linespec_complete): Update.
15866 (decode_line_full): Remove cleanups.
15867 (decode_line_1): Update.
15868
15869 2019-01-02 Tom Tromey <tom@tromey.com>
15870
15871 * python/python-internal.h (inferior_to_inferior_object): Change
15872 return type.
15873 * python/py-exitedevent.c (create_exited_event_object): Update.
15874 * python/py-inferior.c (inferior_to_inferior_object): Return
15875 gdbpy_ref.
15876 (python_new_inferior, python_inferior_deleted)
15877 (thread_to_thread_object, delete_thread_object)
15878 (build_inferior_list, gdbpy_selected_inferior): Update.
15879 * python/py-infthread.c (create_thread_object): Update. Also fail
15880 if inferior_to_inferior_object fails.
15881
15882 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15883
15884 * inferior.h (class inferior) <displaced_step_state>: New field.
15885 * infrun.h (struct displaced_step_state): Move here from
15886 infrun.c. Initialize fields, add constructor.
15887 <inf>: Remove field.
15888 <reset>: New method.
15889 * infrun.c (struct displaced_step_inferior_state): Move to
15890 infrun.h.
15891 (displaced_step_inferior_states): Remove.
15892 (get_displaced_stepping_state): Adust.
15893 (displaced_step_in_progress_any_inferior): Adjust.
15894 (displaced_step_in_progress_thread): Adjust.
15895 (displaced_step_in_progress): Adjust.
15896 (add_displaced_stepping_state): Remove.
15897 (get_displaced_step_closure_by_addr): Adjust.
15898 (remove_displaced_stepping_state): Remove.
15899 (infrun_inferior_exit): Call displaced_step_state.reset.
15900 (use_displaced_stepping): Don't check for NULL.
15901 (displaced_step_prepare_throw): Call
15902 get_displaced_stepping_state.
15903 (displaced_step_fixup): Don't check for NULL.
15904 (prepare_for_detach): Don't check for NULL.
15905
15906 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15907
15908 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15909 in case of call that did not complete.
15910
15911 2019-01-02 Andrey Utkin <autkin@undo.io>
15912
15913 * symfile.c (find_separate_debug_file): Fix search of debug files for
15914 remote debuggee.
15915
15916 2019-01-02 Tom Tromey <tom@tromey.com>
15917
15918 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15919 indentation.
15920 * python/py-frame.c (frapy_older): Remove cast.
15921 (frapy_newer): Likewise.
15922 * python/py-breakpoint.c (local_setattro): Remove cast.
15923 * python/py-arch.c (archpy_name): Remove local variable.
15924 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15925
15926 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15927
15928 * unittests/basic_string_view/element_access/char/empty.cc:
15929 Fix year range in copyright header.
15930
15931 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15932
15933 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15934 Delete.
15935 <operator==>: Update with for removed field.
15936 <hash>: Likewise.
15937 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15938 <isa_features>: ...this.
15939 <abi_features>: New field.
15940 (riscv_isa_flen): Update comment.
15941 (riscv_abi_xlen): New declaration.
15942 (riscv_abi_flen): New declaration.
15943 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15944 isa_features.
15945 (riscv_abi_xlen): New function.
15946 (riscv_isa_flen): Update to get answer from isa_features.
15947 (riscv_abi_flen): New function.
15948 (riscv_has_fp_abi): Update to get answer from abi_features.
15949 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15950 xlen and flen.
15951 (riscv_call_info) <xlen, flen>: Update comment.
15952 (riscv_call_arg_struct): Remove invalid assertions
15953 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15954 is removed.
15955 (riscv_gdbarch_init): Gather isa features and abi features
15956 separately, ensure both match on the gdbarch when reusing an old
15957 gdbarch. Relax an error check to allow 32-bit abi float to run on
15958 a target with 64-bit float hardware.
15959
15960 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15961
15962 * source.c (search_command_helper): Stop reverse search
15963 when line 1 has been searched.
15964
15965 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15966
15967 * record-full.c (record_full_base_target::close): Rewrite
15968 record_full_core_buf_list free logic.
15969
15970 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15971
15972 * break-catch-syscall.c (print_one_catch_syscall): xfree
15973 the last text.
15974
15975 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15976
15977 * top.c (print_gdb_version): Update Copyright year in version
15978 message.
15979
15980 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15981
15982 Update copyright year range in all GDB files.
15983
15984 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15985
15986 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15987
15988 For older changes see ChangeLog-2018.
15989 \f
15990 Local Variables:
15991 mode: change-log
15992 left-margin: 8
15993 fill-column: 74
15994 version-control: never
15995 coding: utf-8
15996 End:
15997
This page took 0.397983 seconds and 4 git commands to generate.