Test case for BZ 25065
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8d9a2568
KB
12019-11-27 Kevin Buettner <kevinb@redhat.com>
2
3 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
4 physnames are computed for inherited DIEs.
5
fad03f6e
TT
62019-11-27 Tom Tromey <tromey@adacore.com>
7
8 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
9 backslashes.
10 * cp-support.c: Remove unnecessary backslashes.
11
43678b0a
CB
122019-11-27 Christian Biesinger <cbiesinger@google.com>
13
14 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
15 with sym->set_linkage_name.
16 * coffread.c (coff_read_enum_type): Likewise.
17 * mdebugread.c (parse_symbol): Likewise.
18 * stabsread.c (patch_block_stabs): Likewise.
19 (define_symbol): Likewise.
20 (read_enum_type): Likewise.
21 (common_block_end): Likewise.
22 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
23 function.
24 (SYMBOL_SET_LINKAGE_NAME): Remove.
25 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
26 with sym->set_linkage_name.
27
db5960b4
AB
282019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
31 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
32 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
33 * NEWS: Mention new MI command.
34
7dc42066
AB
352019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
38 '-symbol-info-types', and '-symbol-info-variables'.
39 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
40 (mi_cmd_symbol_info_types): Declare.
41 (mi_cmd_symbol_info_variables): Declare.
42 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
43 (output_debug_symbol): New function.
44 (output_nondebug_symbol): New function.
45 (mi_symbol_info): New function.
46 (mi_info_functions_or_variables): New function.
47 (mi_cmd_symbol_info_functions): New function.
48 (mi_cmd_symbol_info_types): New function.
49 (mi_cmd_symbol_info_variables): New function.
50 * NEWS: Mention new commands.
51
5f512a7d
AB
522019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
53
54 * symtab.c (symbol_to_info_string): New function, most content
55 moved from print_symbol_info, but updated to return a std::string.
56 (print_symbol_info): Update to use symbol_to_info_string and print
57 returned string.
58 * symtab.h (symbol_to_info_string): Declare new function.
59
470c0b1c
AB
602019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * python/python.c (gdbpy_rbreak): Convert to using
63 global_symbol_searcher.
64 * symtab.c (file_matches): Convert return type to bool, change
65 file list to std::vector, update header comment.
66 (search_symbols): Rename to...
67 (global_symbol_searcher::search): ...this and update now its
68 a member function of global_symbol_searcher. Take account of the
69 changes to file_matches.
70 (symtab_symbol_info): Convert to using global_symbol_searcher.
71 (rbreak_command): Likewise.
72 (search_module_symbols): Likewise.
73 * symtab.h (enum symbol_search): Update comment.
74 (search_symbols): Remove declaration.
75 (class global_symbol_searcher): New class.
76
57357d9d
TT
772019-11-26 Tom Tromey <tromey@adacore.com>
78
79 * cp-support.c (_initialize_cp_support): Conditionally initialize
80 gdb_demangle_attempt_core_dump.
81
3ea16160
TT
822019-11-26 Tom Tromey <tom@tromey.com>
83
84 * python/py-function.c (fnpy_init): Update.
85 * value.h (add_internal_function): Adjust declaration.
86 * value.c (function_destroyer): Remove.
87 (do_add_internal_function): Don't set destroyer or copy name.
88 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
89 Set name_allocated.
90 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
91 (cmdpy_init): Set name_allocated.
92 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
93 member.
94 (~cmd_list_element): Free "name" if needed.
95
1a6d41c6
TT
962019-11-26 Tom Tromey <tom@tromey.com>
97
98 * value.h (add_internal_function): Add new overload. Move
99 documentation from value.h.
100 * value.c (do_add_internal_function): New function.
101 (add_internal_function): Use it. Add new overload.
102 (function_destroyer): Don't free doc.
103 * python/py-function.c (fnpy_init): Update.
104
8318f3c3
TT
1052019-11-26 Tom Tromey <tom@tromey.com>
106
107 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
108 (cmdpy_init): Set "doc_allocated".
109
4da8c3a8
TT
1102019-11-26 Tom Tromey <tom@tromey.com>
111
112 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
113 name of worker thread.
114 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
115 pthread_setname_np.
116 * configure, config.in: Rebuild.
117
971db5e2
TT
1182019-11-26 Tom Tromey <tom@tromey.com>
119
120 * python/python.c (class gdbpy_gil): New.
121 (struct gdbpy_event): Add constructor, destructor, operator().
122 (gdbpy_post_event): Use run_on_main_thread.
123 (gdbpy_initialize_events): Remove.
124 (do_start_initialization): Update.
125
22138db6
TT
1262019-11-26 Tom Tromey <tom@tromey.com>
127
128 * NEWS: Add entry.
129 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
130 commands. Call update_thread_pool_size.
131 (update_thread_pool_size, maintenance_set_worker_threads): New
132 functions.
133 (n_worker_threads): New global.
134
d55c9a68
TT
1352019-11-26 Christian Biesinger <cbiesinger@google.com>
136 Tom Tromey <tom@tromey.com>
137
138 * minsyms.c (minimal_symbol_reader::install): Use
139 parallel_for_each.
140 * gdbsupport/parallel-for.h: New file.
141 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
142
a0b57563
CB
1432019-11-26 Christian Biesinger <cbiesinger@google.com>
144 Tom Tromey <tom@tromey.com>
145
146 * gdbsupport/thread-pool.h: New file.
147 * gdbsupport/thread-pool.c: New file.
148 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
149 (HFILES_NO_SRCDIR): Add thread-pool.h.
150
3b3978bc
TT
1512019-11-26 Tom Tromey <tom@tromey.com>
152
153 * event-top.h (thread_local_segv_handler): Declare.
154 * event-top.c (thread_local_segv_handler): New global.
155 (install_handle_sigsegv, handle_sigsegv): New functions.
156 (async_init_signals): Install SIGSEGV handler.
157 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
158 thread-local.
159 (report_failed_demangle): New function.
160 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
161 handler-setting code, instead use segv_handler. Run warning code
162 on main thread.
163
9411c49e
TT
1642019-11-26 Tom Tromey <tom@tromey.com>
165
166 * run-on-main-thread.c: New file.
167 * run-on-main-thread.h: New file.
168 * unittests/main-thread-selftests.c: New file.
169 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
170 main-thread-selftests.c.
171 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
172 (COMMON_SFILES): Add run-on-main-thread.c.
173
c3efb965
TT
1742019-11-26 Tom Tromey <tom@tromey.com>
175
176 * main.c (setup_alternate_signal_stack): Remove.
177 (captured_main_1): Use gdb::alternate_signal_stack.
178 * gdbsupport/alt-stack.h: New file.
179
21987b9c
TT
1802019-11-26 Tom Tromey <tom@tromey.com>
181
182 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
183 Remove comment.
184 (save_original_signals_state, restore_original_signals_state): Use
185 gdb_sigmask.
186 * linux-nat.c (block_child_signals, restore_child_signals_mask)
187 (_initialize_linux_nat): Use gdb_sigmask.
188 * guile/guile.c (_initialize_guile): Use block_signals.
189 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
190 * gdbsupport/gdb-sigmask.h: New file.
191 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
192 * cp-support.c (gdb_demangle): Use gdb_sigmask.
193 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
194 pthread_sigmask.
195 * configure, config.in: Rebuild.
196 * gdbsupport/block-signals.h: New file.
197
5e030278
TT
1982019-11-26 Tom Tromey <tom@tromey.com>
199
200 * acinclude.m4: Include ax_pthread.m4.
201 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
202 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
203 (CLIBS): Use PTHREAD_LIBS.
204 (aclocal_m4_deps): Add ax_pthread.m4.
205 * config.in, configure: Rebuild.
206 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
207
5a79c107
TT
2082019-11-26 Tom Tromey <tom@tromey.com>
209
210 * symtab.h (struct minimal_symbol) <name_set>: New member.
211 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
212 Don't call symbol_set_names.
213 (minimal_symbol_reader::install): Call symbol_set_names.
214
aa369509
PW
2152019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
216
217 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
218 restore_active_ext_lang, as GIL is needed for (indirectly)
219 called PyOS_InterruptOccurred.
220
cadc9cb8
SM
2212019-11-26 Simon Marchi <simon.marchi@efficios.com>
222
223 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
224 definition.
225
d04afd58
SM
2262019-11-26 Simon Marchi <simon.marchi@efficios.com>
227
228 * remote-sim.c (simulator_command): Make static, remove
229 declaration.
230
dd694d77
SM
2312019-11-26 Simon Marchi <simon.marchi@efficios.com>
232
233 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
234 static.
235 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
236 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
237 (main): Likewise.
238 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
239 (main): Likewise.
240 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
241 (main): Likewise.
242 * unittests/basic_string_view/element_access/char/1.cc (test01):
243 Likewise.
244 (main): Likewise.
245 * unittests/basic_string_view/element_access/char/empty.cc (main):
246 Likewise.
247 * unittests/basic_string_view/element_access/char/front_back.cc
248 (test01): Likewise.
249 (main): Likewise.
250 * unittests/basic_string_view/inserters/char/2.cc (test05):
251 Likewise.
252 (main): Likewise.
253 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
254 (test01): Likewise.
255 (main): Likewise.
256 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
257 (test01): Likewise.
258 (main): Likewise.
259 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
260 Likewise.
261 * unittests/basic_string_view/operations/compare/char/1.cc
262 (test01): Likewise.
263 (main): Likewise.
264 * unittests/basic_string_view/operations/compare/char/13650.cc
265 (test01): Likewise.
266 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
267 Likewise.
268 (main): Likewise.
269 * unittests/basic_string_view/operations/data/char/1.cc (test01):
270 Likewise.
271 (main): Likewise.
272 * unittests/basic_string_view/operations/find/char/1.cc (test01):
273 Likewise.
274 (main): Likewise.
275 * unittests/basic_string_view/operations/find/char/2.cc (test02):
276 Likewise.
277 (main): Likewise.
278 * unittests/basic_string_view/operations/find/char/3.cc (test03):
279 Likewise.
280 (main): Likewise.
281 * unittests/basic_string_view/operations/find/char/4.cc (main):
282 Likewise.
283 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
284 Likewise.
285 (main): Likewise.
286 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
287 Likewise.
288 (main): Likewise.
289 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
290 Likewise.
291 (main): Likewise.
292 * unittests/basic_string_view/operations/substr/char/1.cc
293 (test01): Likewise.
294 (main): Likewise.
295 * unittests/basic_string_view/operators/char/2.cc (main):
296 Likewise.
297 * unittests/optional/assignment/1.cc (test): Likewise.
298 * unittests/optional/assignment/2.cc (test): Likewise.
299 * unittests/optional/assignment/3.cc (test): Likewise.
300 * unittests/optional/assignment/4.cc (test): Likewise.
301 * unittests/optional/assignment/5.cc (test): Likewise.
302 * unittests/optional/assignment/6.cc (test): Likewise.
303 * unittests/optional/assignment/7.cc (test): Likewise.
304 * unittests/optional/cons/copy.cc (test): Likewise.
305 * unittests/optional/cons/default.cc (test): Likewise.
306 * unittests/optional/cons/move.cc (test): Likewise.
307 * unittests/optional/cons/value.cc (test): Likewise.
308 * unittests/optional/in_place.cc (test): Likewise.
309 * unittests/optional/observers/1.cc (test): Likewise.
310 * unittests/optional/observers/2.cc (test): Likewise.
311
3b5c1d49
SM
3122019-11-26 Simon Marchi <simon.marchi@efficios.com>
313
314 * tui-win.h (tui_set_var_cmd): Remove.
315 * tui-win.c (tui_set_var_cmd): Make static.
316
adce99fe
SM
3172019-11-26 Simon Marchi <simon.marchi@efficios.com>
318
319 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
320 rbreak_command_wrapper): Remove.
321 * symtab.c (rbreak_command_wrapper): Remove.
322
fe3adccf
SM
3232019-11-26 Simon Marchi <simon.marchi@efficios.com>
324
325 * inferior.h (info_terminal_command): Remove declaration.
326 * inflow.c (info_terminal_command): Make static.
327
b926335f
SM
3282019-11-26 Simon Marchi <simon.marchi@efficios.com>
329
330 * inferior.c (exit_inferior_silent): Remove.
331
b62f6f54
SM
3322019-11-26 Simon Marchi <simon.marchi@efficios.com>
333
334 * dictionary.c (dict_empty, mdict_empty): Remove.
335 * dictionary.c (mdict_empty): Remove.
336
cb8c24b6
SM
3372019-11-26 Simon Marchi <simon.marchi@efficios.com>
338
339 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
340 (arc_insn_get_memory_offset): Likewise.
341 (arc_insn_dump): Likewise.
342 * cp-support.c (test_cp_symbol_name_matches): Likewise.
343 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
344 * dictionary.c (dict_iterator_next): Likewise.
345 (dict_iter_match_first): Likewise.
346 (dict_iter_match_next): Likewise.
347 * f-lang.c (evaluate_subexp_f): Likewise.
348 * hppa-tdep.c (hppa_read_pc): Likewise.
349 * i386-tdep.c (i386_floatformat_for_type): Likewise.
350 * parse.c (write_exp_elt_msym): Likewise.
351 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
352 * remote.c (remote_packet_size): Likewise.
353 (remote_notif_stop_parse): Likewise.
354 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
355 * s12z-tdep.c (s12z_disassemble_info): Likewise.
356 * source.c (prepare_path_for_appending): Likewise.
357 * sparc64-linux-tdep.c
358 (sparc64_linux_handle_segmentation_fault); Likewise.
359 * stack.c (frame_selection_by_function_completer): Likewise.
360
781597ff
SM
3612019-11-26 Simon Marchi <simon.marchi@efficios.com>
362
363 * completer.c (set_gdb_completion_word_break_characters):
364 Remove.
365
23baa4cc
SM
3662019-11-26 Simon Marchi <simon.marchi@efficios.com>
367
368 * dwarf-index-write.c: Include dwarf-index-write.h.
369 * mi/mi-interp.c: Include mi/mi-interp.h.
370
23767560
SM
3712019-11-26 Simon Marchi <simon.marchi@efficios.com>
372
373 * aarch32-tdep.c: Include aarch32-tdep.h.
374 * aarch32-tdep.h: Forward-declare struct target_desc.
375
6d91ce9a
CB
3762019-11-26 Christian Biesinger <cbiesinger@google.com>
377
378 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
379 strerror.
380 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
381 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
382
3cf2f237
TV
3832019-11-25 Tom de Vries <tdevries@suse.de>
384
385 * contrib/words.sh: Add -c option.
386
5b89c67a
CB
3872019-11-25 Christian Biesinger <cbiesinger@google.com>
388
389 * solib.c (solib_find_1): Change int to bool.
390 (exec_file_find): Change int to bool.
391 (solib_find): Change int to bool.
392 (solib_read_symbols): Change int to bool.
393 (solib_used): Change int to bool.
394 (solib_add): Change int to bool.
395 (info_sharedlibrary_command): Change int to bool.
396 (solib_contains_address_p): Change int to bool.
397 (solib_keep_data_in_core): Change int to bool.
398 (in_solib_dynsym_resolve_code): Change int to bool.
399 (reload_shared_libraries_1): Change int to bool.
400 (gdb_sysroot_changed): Change int to bool.
401 * solib.h (solib_read_symbols): Change int to bool.
402 (solib_contains_address_p): Change int to bool.
403 (solib_keep_data_in_core): Change int to bool.
404 (in_solib_dynsym_resolve_code): Change int to bool.
405 (libpthread_name_p): Change int to bool.
406
6cc8564b
LM
4072019-11-25 Luis Machado <luis.machado@linaro.org>
408
409 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
410 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
411 (remote_packet_max_chars): New static global.
412 (show_remote_packet_max_chars): New function.
413 (remote_target::putpkt_binary): Adjust to use new
414 remote_packet_max_chars option.
415 (remote_target::getpkt_or_notif_sane_1): Likewise.
416 (_initialize_remote): Register new remote-packet-max-chars option.
417
a7cdaa91
SM
4182019-11-24 Simon Marchi <simon.marchi@efficios.com>
419
420 * m68k-linux-nat.c: Include gdbarch.h.
421
26abc753
TT
4222019-11-24 Tom Tromey <tom@tromey.com>
423
424 * symfile.c (read_symbols): Update.
425 * psymtab.c (require_partial_symbols): Change type of "verbose" to
426 bool.
427 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
428 (psym_lookup_symbol, psym_find_last_source_symtab)
429 (psym_forget_cached_source_info, psym_print_stats)
430 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
431 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
432 (psym_map_matching_symbols, psym_expand_symtabs_matching)
433 (psym_find_compunit_symtab_by_address)
434 (maintenance_print_psymbols, maintenance_info_psymtabs)
435 (maintenance_check_psymtabs): Update.
436 * psymtab.h (require_partial_symbols): Change type of "verbose" to
437 bool.
438
012fc909
TT
4392019-11-22 Tom Tromey <tom@tromey.com>
440
441 * observable.h: Update comments.
442
c83d8d32
TT
4432019-11-22 Tom Tromey <tromey@adacore.com>
444
445 * ada-tasks.c (ada_task_is_alive): Make parameter const.
446 (print_ada_task_info): Don't try to fetch thread id if task is not
447 alive.
448
987012b8
CB
4492019-11-22 Christian Biesinger <cbiesinger@google.com>
450
451 * ada-exp.y: Update.
452 * ada-lang.c (sort_choices): Update.
453 (ada_print_symbol_signature): Update.
454 (resolve_subexp): Update.
455 (ada_parse_renaming): Update.
456 (ada_read_renaming_var_value): Update.
457 (lesseq_defined_than): Update.
458 (remove_extra_symbols): Update.
459 (remove_irrelevant_renamings): Update.
460 (ada_add_block_symbols): Update.
461 (ada_collect_symbol_completion_matches): Update.
462 (ada_is_renaming_symbol): Update.
463 (aggregate_assign_from_choices): Update.
464 (ada_evaluate_subexp): Update.
465 (ada_has_this_exception_support): Update.
466 (ada_is_non_standard_exception_sym): Update.
467 (ada_add_exceptions_from_frame): Update.
468 (ada_add_global_exceptions): Update.
469 (ada_print_subexp): Update.
470 * ax-gdb.c (gen_var_ref): Update.
471 (gen_maybe_namespace_elt): Update.
472 (gen_expr_for_cast): Update.
473 (gen_expr): Update.
474 * block.h: Update.
475 * blockframe.c (find_pc_partial_function): Update.
476 * breakpoint.c (print_breakpoint_location): Update.
477 (update_static_tracepoint): Update.
478 * btrace.c (ftrace_print_function_name): Update.
479 (ftrace_function_switched): Update.
480 * buildsym.c (find_symbol_in_list): Update.
481 * c-exp.y: Update.
482 * c-typeprint.c (c_print_typedef): Update.
483 (c_type_print_template_args): Update.
484 * cli/cli-cmds.c (edit_command): Update.
485 (list_command): Update.
486 (print_sal_location): Update.
487 * coffread.c (patch_opaque_types): Update.
488 (process_coff_symbol): Update.
489 (coff_read_enum_type): Update.
490 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
491 (convert_one_symbol): Update.
492 (hash_symname): Update.
493 (eq_symname): Update.
494 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
495 * compile/compile-cplus-types.c (debug_print_scope): Update.
496 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
497 * compile/compile-object-load.c (get_out_value_type): Update.
498 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
499 (search_symbol_list): Update.
500 (cp_lookup_symbol_imports_or_template): Update.
501 * cp-support.c (overload_list_add_symbol): Update.
502 * ctfread.c (psymtab_to_symtab): Update.
503 * dbxread.c (cp_set_block_scope): Update.
504 * dictionary.c (iter_match_first_hashed): Update.
505 (iter_match_next_hashed): Update.
506 (insert_symbol_hashed): Update.
507 (iter_match_next_linear): Update.
508 * dictionary.h: Update.
509 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
510 (locexpr_describe_location_piece): Update.
511 (locexpr_describe_location_1): Update.
512 (locexpr_generate_c_location): Update.
513 (loclist_describe_location): Update.
514 (loclist_generate_c_location): Update.
515 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
516 (read_func_scope): Update.
517 (process_enumeration_scope): Update.
518 (new_symbol): Update.
519 (dwarf2_const_value): Update.
520 (dwarf2_symbol_mark_computed): Update.
521 * eval.c (evaluate_funcall): Update.
522 (evaluate_subexp_standard): Update.
523 * expprint.c (print_subexp_standard): Update.
524 (dump_subexp_body_standard): Update.
525 * f-valprint.c (info_common_command_for_block): Update.
526 * findvar.c (get_hosting_frame): Update.
527 (default_read_var_value): Update.
528 * go-lang.c (go_symbol_package_name): Update.
529 * guile/scm-block.c (bkscm_print_block_smob): Update.
530 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
531 (gdbscm_symbol_name): Update.
532 (gdbscm_symbol_linkage_name): Update.
533 (gdbscm_symbol_print_name): Update.
534 * infcall.c (get_function_name): Update.
535 * infcmd.c (jump_command): Update.
536 (finish_command): Update.
537 * infrun.c (insert_exception_resume_breakpoint): Update.
538 * linespec.c (canonicalize_linespec): Update.
539 (create_sals_line_offset): Update.
540 (convert_linespec_to_sals): Update.
541 (complete_label): Update.
542 (find_label_symbols_in_block): Update.
543 * m2-typeprint.c (m2_print_typedef): Update.
544 * mdebugread.c (mdebug_reg_to_regnum): Update.
545 (parse_symbol): Update.
546 (mylookup_symbol): Update.
547 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
548 (list_args_or_locals): Update.
549 * objc-lang.c (compare_selectors): Update.
550 (info_selectors_command): Update.
551 (compare_classes): Update.
552 (info_classes_command): Update.
553 (find_imps): Update.
554 * p-typeprint.c (pascal_print_typedef): Update.
555 * printcmd.c (build_address_symbolic): Update.
556 (info_address_command): Update.
557 (print_variable_and_value): Update.
558 * python/py-framefilter.c (extract_sym): Update.
559 (py_print_single_arg): Update.
560 * python/py-symbol.c (sympy_str): Update.
561 (sympy_get_name): Update.
562 (sympy_get_linkage_name): Update.
563 * python/python.c (gdbpy_rbreak): Update.
564 * record-btrace.c (btrace_get_bfun_name): Update.
565 (btrace_call_history): Update.
566 * rust-lang.c (rust_print_typedef): Update.
567 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
568 * stabsread.c (stab_reg_to_regnum): Update.
569 (define_symbol): Update.
570 (read_enum_type): Update.
571 (common_block_end): Update.
572 (cleanup_undefined_types_1): Update.
573 (scan_file_globals): Update.
574 * stack.c (print_frame_arg): Update.
575 (print_frame_args): Update.
576 (find_frame_funname): Update.
577 (info_frame_command_core): Update.
578 (iterate_over_block_locals): Update.
579 (print_block_frame_labels): Update.
580 (do_print_variable_and_value): Update.
581 (iterate_over_block_arg_vars): Update.
582 (return_command): Update.
583 * symmisc.c (dump_symtab_1): Update.
584 (print_symbol): Update.
585 * symtab.c (eq_symbol_entry): Update.
586 (symbol_cache_dump): Update.
587 (lookup_language_this): Update.
588 (find_pc_sect_line): Update.
589 (skip_prologue_sal): Update.
590 (symbol_search::compare_search_syms): Update.
591 (treg_matches_sym_type_name): Update.
592 (search_symbols): Update.
593 (print_symbol_info): Update.
594 (rbreak_command): Update.
595 (completion_list_add_symbol): Update.
596 (find_gnu_ifunc): Update.
597 (get_symbol_address): Update.
598 (search_module_symbols): Update.
599 (info_module_subcommand): Update.
600 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
601 (SYMBOL_LINKAGE_NAME): Remove.
602 (SYMBOL_DEMANGLED_NAME): Remove.
603 (SYMBOL_PRINT_NAME): Remove.
604 (SYMBOL_SEARCH_NAME): Remove.
605 * tracepoint.c (set_traceframe_context): Update.
606 (validate_actionline): Update.
607 (collection_list::collect_symbol): Update.
608 (encode_actions_1): Update.
609 (info_scope_command): Update.
610 (print_one_static_tracepoint_marker): Update.
611 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
612 * valops.c (address_of_variable): Update.
613 (find_overload_match): Update.
614 (find_oload_champ): Update.
615
c9d95fa3
CB
6162019-11-22 Christian Biesinger <cbiesinger@google.com>
617
618 * ada-lang.c (ada_lookup_simple_minsym): Update.
619 (ada_collect_symbol_completion_matches): Update.
620 * ada-tasks.c (read_atcb): Update.
621 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
622 (amd64_windows_skip_trampoline_code): Update.
623 * arm-tdep.c (skip_prologue_function): Update.
624 (arm_skip_stack_protector): Update.
625 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
626 (arm_wince_skip_main_prologue): Update.
627 * ax-gdb.c (gen_expr): Update.
628 * block.c (call_site_for_pc): Update.
629 * blockframe.c (find_pc_partial_function): Update.
630 * breakpoint.c (set_breakpoint_location_function): Update.
631 * btrace.c (ftrace_print_function_name): Update.
632 (ftrace_function_switched): Update.
633 * c-valprint.c (print_unpacked_pointer): Update.
634 * coffread.c (coff_symfile_read): Update.
635 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
636 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
637 * dwarf-index-write.c (write_psymbols): Update.
638 * dwarf2loc.c (call_site_to_target_addr): Update.
639 (func_verify_no_selftailcall): Update.
640 (tailcall_dump): Update.
641 (call_site_find_chain_1): Update.
642 (dwarf_expr_reg_to_entry_parameter): Update.
643 * elfread.c (elf_gnu_ifunc_record_cache): Update.
644 * eval.c (evaluate_funcall): Update.
645 (evaluate_subexp_standard): Update.
646 (evaluate_subexp_for_sizeof): Update.
647 * expprint.c (print_subexp_standard): Update.
648 (dump_subexp_body_standard): Update.
649 * frame.c (get_prev_frame_always_1): Update.
650 * frv-tdep.c (frv_skip_main_prologue): Update.
651 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
652 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
653 (gnuv3_get_typename_from_type_info): Update.
654 (gnuv3_skip_trampoline): Update.
655 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
656 * i386-tdep.c (i386_skip_main_prologue): Update.
657 (i386_pe_skip_trampoline_code): Update.
658 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
659 * infcall.c (get_function_name): Update.
660 * linespec.c (minsym_found): Update.
661 * linux-fork.c (info_checkpoints_command): Update.
662 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
663 (m32c_m16c_pointer_to_address): Update.
664 * maint.c (maintenance_translate_address): Update.
665 * minsyms.c (add_minsym_to_hash_table): Update.
666 (add_minsym_to_demangled_hash_table): Update.
667 (lookup_minimal_symbol_mangled): Update.
668 (lookup_minimal_symbol_demangled): Update.
669 (lookup_minimal_symbol_linkage): Update.
670 (lookup_minimal_symbol_text): Update.
671 (lookup_minimal_symbol_by_pc_name): Update.
672 (minimal_symbol_is_less_than): Update.
673 (compact_minimal_symbols): Update.
674 (build_minimal_symbol_hash_tables): Update.
675 (find_solib_trampoline_target): Update.
676 * mips-tdep.c (mips_stub_frame_sniffer): Update.
677 (mips_skip_pic_trampoline_code): Update.
678 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
679 * objc-lang.c (info_selectors_command): Update.
680 (info_classes_command): Update.
681 (find_methods): Update.
682 (find_imps): Update.
683 * p-valprint.c (pascal_val_print): Update.
684 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
685 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
686 * printcmd.c (build_address_symbolic): Update.
687 (info_symbol_command): Update.
688 * psymtab.c (psymbol_name_matches): Update.
689 (match_partial_symbol): Update.
690 (lookup_partial_symbol): Update.
691 (print_partial_symbols): Update.
692 (sort_pst_symbols): Update.
693 (maintenance_check_psymtabs): Update.
694 * python/py-framefilter.c (py_print_frame): Update.
695 * python/python.c (gdbpy_rbreak): Update.
696 * record-btrace.c (btrace_get_bfun_name): Update.
697 (btrace_call_history): Update.
698 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
699 (rs6000_skip_trampoline_code): Update.
700 * sol-thread.c (info_cb): Update.
701 * stabsread.c (scan_file_globals): Update.
702 * stack.c (find_frame_funname): Update.
703 (info_frame_command_core): Update.
704 * symmisc.c (dump_msymbols): Update.
705 * symtab.c (symbol_natural_name): Rename to..,
706 (general_symbol_info::natural_name): ...this.
707 (symbol_demangled_name): Rename to...
708 (general_symbol_info::demangled_name): ...this.
709 (symbol_search_name): Rename to...
710 (general_symbol_info::search_name): ...this.
711 (symbol_matches_search_name): Update.
712 (find_pc_sect_line): Update.
713 (skip_prologue_sal): Update.
714 (search_symbols): Update.
715 (print_msymbol_info): Update.
716 (rbreak_command): Update.
717 (completion_list_add_msymbol): Update.
718 (completion_list_objc_symbol): Update.
719 (get_msymbol_address): Update.
720 * symtab.h (struct general_symbol_info): Add member functions
721 natural_name (), linkage_name (), print_name (), demangled_name (),
722 and search_name ().
723 (SYMBOL_NATURAL_NAME): Update.
724 (symbol_natural_name): Move to a member function on general_symbol_info.
725 (SYMBOL_DEMANGLED_NAME): Update.
726 (symbol_demangled_name): Move to a member function on
727 general_symbol_info.
728 (SYMBOL_SEARCH_NAME): Update.
729 (symbol_search_name): Move to a member function on general_symbol_info.
730 (MSYMBOL_NATURAL_NAME): Remove.
731 (MSYMBOL_LINKAGE_NAME): Remove.
732 (MSYMBOL_PRINT_NAME): Remove.
733 (MSYMBOL_DEMANGLED_NAME): Remove.
734 (MSYMBOL_SEARCH_NAME): Remove.
735 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
736
f8bab2d6
CB
7372019-11-22 Christian Biesinger <cbiesinger@google.com>
738
739 * symtab.c (create_demangled_names_hash): Use per_bfd->
740 minimal_symbol_count for computing the initial size, if greater
741 than our default size.
742
85e7588d
TV
7432019-11-22 Tom de Vries <tdevries@suse.de>
744
745 * contrib/words.sh: Improve words extraction.
746
f6180073
TV
7472019-11-22 Tom de Vries <tdevries@suse.de>
748
749 * contrib/words.sh: Combine sed invocations.
750
f10ffa41
CB
7512019-11-21 Christian Biesinger <cbiesinger@google.com>
752
753 * Makefile.in: Update.
754 * demangle.c: Rename to...
755 * gdb-demangle.c: ..this.
756 (is_cplus_marker): Change return type to bool.
757 (_initialize_demangler): Rename to...
758 (_initialize_gdb_demangle): ...this.
759 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
760 * symtab.h (demangle): Remove declaration; instead include
761 gdb-demangle.h.
762
6ba18521
TT
7632019-11-21 Tom Tromey <tromey@adacore.com>
764
765 * gdbsupport/format.c (format_pieces): Parse %I64d.
766 * unittests/format_pieces-selftests.c (test_windows_formats): New
767 function.
768 (run_tests): Call it.
769
34877895
PJ
7702019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
771
772 Byte reverse display of variables with DW_END_big, DW_END_little
773 (DW_AT_endianity) dwarf attributes if different than the native
774 byte order.
775 * ada-lang.c (ada_value_binop):
776 Use type_byte_order instead of gdbarch_byte_order.
777 * ada-valprint.c (printstr):
778 (ada_val_print_string):
779 * ada-lang.c (value_pointer):
780 (ada_value_binop):
781 Use type_byte_order instead of gdbarch_byte_order.
782 * c-lang.c (c_get_string):
783 Use type_byte_order instead of gdbarch_byte_order.
784 * c-valprint.c (c_val_print_array):
785 Use type_byte_order instead of gdbarch_byte_order.
786 * cp-valprint.c (cp_print_class_member):
787 Use type_byte_order instead of gdbarch_byte_order.
788 * dwarf2loc.c (rw_pieced_value):
789 Use type_byte_order instead of gdbarch_byte_order.
790 * dwarf2read.c (read_base_type): Handle DW_END_big,
791 DW_END_little
792 * f-lang.c (f_get_encoding):
793 Use type_byte_order instead of gdbarch_byte_order.
794 * findvar.c (default_read_var_value):
795 Use type_byte_order instead of gdbarch_byte_order.
796 * gdbtypes.c (check_types_equal):
797 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
798 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
799 and TYPE_ENDIANITY_LITTLE if set.
800 (type_byte_order): new function.
801 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
802 (struct main_type) <flag_endianity_not_default>:
803 New field.
804 (type_byte_order): New function.
805 * infcmd.c (default_print_one_register_info):
806 Use type_byte_order instead of gdbarch_byte_order.
807 * p-lang.c (pascal_printstr):
808 Use type_byte_order instead of gdbarch_byte_order.
809 * p-valprint.c (pascal_val_print):
810 Use type_byte_order instead of gdbarch_byte_order.
811 * printcmd.c (print_scalar_formatted):
812 Use type_byte_order instead of gdbarch_byte_order.
813 * solib-darwin.c (darwin_current_sos):
814 Use type_byte_order instead of gdbarch_byte_order.
815 * solib-svr4.c (solib_svr4_r_ldsomap):
816 Use type_byte_order instead of gdbarch_byte_order.
817 * stap-probe.c (stap_modify_semaphore):
818 Use type_byte_order instead of gdbarch_byte_order.
819 * target-float.c (target_float_same_format_p):
820 Use type_byte_order instead of gdbarch_byte_order.
821 * valarith.c (scalar_binop):
822 (value_bit_index):
823 Use type_byte_order instead of gdbarch_byte_order.
824 * valops.c (value_cast):
825 Use type_byte_order instead of gdbarch_byte_order.
826 * valprint.c (generic_emit_char):
827 (generic_printstr):
828 (val_print_string):
829 Use type_byte_order instead of gdbarch_byte_order.
830 * value.c (unpack_long):
831 (unpack_bits_as_long):
832 (unpack_value_bitfield):
833 (modify_field):
834 (pack_long):
835 (pack_unsigned_long):
836 Use type_byte_order instead of gdbarch_byte_order.
837 * findvar.c (unsigned_pointer_to_address):
838 (signed_pointer_to_address):
839 (unsigned_address_to_pointer):
840 (address_to_signed_pointer):
841 (default_read_var_value):
842 (default_value_from_register):
843 Use type_byte_order instead of gdbarch_byte_order.
844 * gnu-v3-abi.c (gnuv3_make_method_ptr):
845 Use type_byte_order instead of gdbarch_byte_order.
846 * riscv-tdep.c (riscv_print_one_register_info):
847 Use type_byte_order instead of gdbarch_byte_order.
848
87fb00ea
SM
8492019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
850
851 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
852 (current_ui_gdb_stdin_ptr): Likewise.
853 (current_ui_gdb_stderr_ptr): Likewise.
854 (current_ui_gdb_stdlog_ptr): Likewise.
855 (current_ui_current_uiout_ptr): Likewise.
856 (gen_ret_current_ui_field_ptr): Remove.
857
65d1cd5f
TV
8582019-11-21 Tom de Vries <tdevries@suse.de>
859
860 PR gdb/24956
861 * cli/cli-script.c (execute_control_command): Only switch to
862 INTERP_CONSOLE's ui_out when INTERP_MI is active.
863
9f6ad286
TT
8642019-11-19 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
867 Now static. Change type of "name".
868 (tui_set_win_height_command): Don't copy "arg".
869 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
870 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
871
435d3d88
AT
8722019-11-19 Ali Tamur <tamur@google.com>
873
874 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
875 "if (attr != nullptr)".
876 (dwarf2_find_base_address): Likewise.
877 (dwarf2_build_include_psymtabs): Likewise.
878 (read_cutu_die_from_dwo): Likewise.
879 (read_func_scope): Likewise.
880 (read_call_site_scope): Likewise.
881 (dwarf2_get_pc_bounds): Likewise.
882 (dwarf2_record_block_ranges): Likewise.
883 (dwarf2_add_field): Likewise.
884 (dwarf2_add_member_fn): Likewise.
885 (read_structure_type): Likewise.
886 (read_enumeration_type): Likewise.
887 (read_array_type): Likewise.
888 (read_array_order): Likewise.
889 (read_set_type): Likewise.
890 (read_common_block): Likewise.
891 (read_tag_reference_type): Likewise.
892 (read_tag_string_type): Likewise.
893 (read_subroutine_type): Likewise.
894 (read_base_type): Likewise.
895 (read_subrange_type): Likewise.
896 (new_symbol): Likewise.
897 (prepare_one_comp_unit): Likewise.
898
c9739b6a
TT
8992019-11-19 Tom Tromey <tromey@adacore.com>
900
901 * windows-nat.c (windows_nat_target::attach): Include GetLastError
902 result in error when DebugActiveProcess fails.
903
494409bb
SDJ
9042019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
905 Pedro Alves <palves@redhat.com>
906
907 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
908 * target.c (target_stack::push): Call 'unpush' if there's a
909 target on top of the stack.
910
2e953aca
PW
9112019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
912
913 * python/py-block.c (blpy_dealloc): Call tp_free.
914 (blpy_block_syms_dealloc): Likewise.
915 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
916 * python/py-inferior.c (infpy_dealloc): Likewise.
917 * python/py-lazy-string.c (stpy_dealloc): Likewise.
918 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
919 * python/py-symbol.c (sympy_dealloc): Likewise.
920 * python/py-symtab.c (stpy_dealloc): Likewise.
921 * python/py-type.c (typy_iterator_dealloc): Likewise.
922
6edc43ec
CB
9232019-11-18 Christian Biesinger <cbiesinger@google.com>
924
925 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
926 constructor instead of using a class initializer.
927
cd850b40
CB
9282019-11-15 Christian Biesinger <cbiesinger@google.com>
929
930 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
931 * configure: Regenerate.
932 * configure.ac: Don't source common.host.
933 * gdbsupport/common.host: Remove.
934 * gdbsupport/mingw-strerror.c: Remove.
935 * gdbsupport/posix-strerror.c: Rename to...
936 * gdbsupport/safe-strerror.c: ...this.
937
53fea9c7
CB
9382019-11-15 Christian Biesinger <cbiesinger@google.com>
939
940 * maint.c (scoped_command_stats::print_time): Use localtime_r
941 instead of localtime (provided through gnulib if necessary).
942 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
943 of ctime.
944
f8e27d88
CB
9452019-11-15 Christian Biesinger <cbiesinger@google.com>
946
947 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
948 avoid compile errors.
949
5abebf3c
CB
9502019-11-15 Christian Biesinger <cbiesinger@google.com>
951
952 * config.in: Regenerate.
953 * configure: Regenerate.
954 * gdbsupport/common.m4: No longer check for strerror_r.
955 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
956 POSIX version of strerror_r, now that gnulib provides it if
957 necessary.
958
9a351667
CB
9592019-11-14 Christian Biesinger <cbiesinger@google.com>
960
961 * README (`configure' options): Update.
962
55708e99
TT
9632019-11-14 Tom Tromey <tromey@adacore.com>
964
965 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
966 expected type for the RHS if the LHS is a convenience variable.
967
4b09bb2e
SM
9682019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
971 Provide explicit default and copy constructor.
972
bd454f8b
PW
9732019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
974
975 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
976 only call Py_INCREF (newbp) in the bppy_pending_object case.
977
d1aa3cf0
TT
9782019-11-13 Tom Tromey <tromey@adacore.com>
979
980 PR build/25182:
981 * psympriv.h (partial_symbol): Remove static assert.
982 * symtab.h (general_symbol_info, symbol): Remove static assert.
983
e06f3d6e
AB
9842019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
985
986 * gdbsupport/format.c (format_pieces::format_pieces): Support
987 printf 'z' size modifier.
988 * gdbsupport/format.h (enum argclass): Add size_t_arg.
989 * printcmd.c (ui_printf): Handle size_t_arg.
990 * ui-out.c (ui_out::vmessage): Likewise.
991 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
992 function.
993 (run_tests): Call test_format_int_sizes.
994
468c0cbb
CB
9952019-11-12 Christian Biesinger <cbiesinger@google.com>
996
997 * ada-exp.y (write_ambiguous_var): Update.
998 * buildsym.c (add_symbol_to_list): Update.
999 * dwarf2read.c (read_variable): Update.
1000 (new_symbol): Update.
1001 * jit.c (finalize_symtab): Update.
1002 * language.c (language_alloc_type_symbol): Update.
1003 * symtab.c (fixup_symbol_section): Update.
1004 (initialize_objfile_symbol_1): Move code to...
1005 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1006 (allocate_symbol): Update.
1007 (allocate_template_symbol): Update.
1008 (get_symbol_address): Update.
1009 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1010 of having as a field, and add a constructor.
1011 (SYMBOL_VALUE): Update.
1012 (SYMBOL_VALUE_ADDRESS): Update.
1013 (SET_SYMBOL_VALUE_ADDRESS): Update.
1014 (SYMBOL_VALUE_BYTES): Update.
1015 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1016 (SYMBOL_BLOCK_VALUE): Update.
1017 (SYMBOL_VALUE_CHAIN): Update.
1018 (SYMBOL_LANGUAGE): Update.
1019 (SYMBOL_SECTION): Update.
1020 (SYMBOL_OBJ_SECTION): Update.
1021 (SYMBOL_SET_LANGUAGE): Update.
1022 (SYMBOL_SET_LINKAGE_NAME): Update.
1023 (SYMBOL_SET_NAMES): Update.
1024 (SYMBOL_NATURAL_NAME): Update.
1025 (SYMBOL_LINKAGE_NAME): Update.
1026 (SYMBOL_DEMANGLED_NAME): Update.
1027 (SYMBOL_SEARCH_NAME): Update.
1028 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1029 (struct symbol): Update.
1030 (struct template_symbol): Update.
1031 (struct rust_vtable_symbol): Update.
1032 * xcoffread.c (SYMBOL_DUP): Update.
1033
ed2c82c3
TT
10342019-11-12 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-layout.c (show_layout): Set current_layout.
1037 (show_source_disasm_command, show_data)
1038 (show_source_or_disasm_and_command): Don't set current_layout.
1039
d9fcefd5
TT
10402019-11-12 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1043
45e42163
TT
10442019-11-12 Tom Tromey <tom@tromey.com>
1045
1046 * tui/tui-win.c (resize_message): New global.
1047 (show_tui_resize_message): New function.
1048 (tui_async_resize_screen): Print message if requested.
1049 (_initialize_tui_win): Add tui-resize-message setting.
1050 * NEWS: Add entry for new commands.
1051
c86d74cc
TT
10522019-11-11 Tom Tromey <tom@tromey.com>
1053
1054 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1055 functions.
1056
7b7b9424
CB
10572019-11-11 Christian Biesinger <cbiesinger@google.com>
1058
1059 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1060
086baaf1
AB
10612019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1064 function.
1065 * python/python-internal.h (gdbpy_lookup_static_symbols):
1066 Declare new function.
1067 * python/python.c (python_GdbMethods): Add
1068 gdb.lookup_static_symbols method.
1069 * NEWS: Mention gdb.lookup_static_symbols.
1070
09ff83af
AB
10712019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1074 static block of current object file first. Also fix typo in
1075 header comment.
1076
eb2dd8df
AB
10772019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * stack.c (set_last_displayed_sal): Delete.
1080 (last_displayed_sal_valid): Delete.
1081 (last_displayed_pspace): Delete.
1082 (last_displayed_addr): Delete.
1083 (last_displayed_symtab): Delete.
1084 (last_displayed_line): Delete.
1085 (class last_displayed_symtab_info_type): New.
1086 (last_displayed_symtab_info): New static global variable.
1087 (print_frame_info): Call methods on last_displayed_symtab_info.
1088 (clear_last_displayed_sal): Update header comment, and make use of
1089 last_displayed_symtab_info.
1090 (last_displayed_sal_is_valid): Likewise.
1091 (get_last_displayed_pspace): Likewise.
1092 (get_last_displayed_addr): Likewise.
1093 (get_last_displayed_symtab): Likewise.
1094 (get_last_displayed_line): Likewise.
1095 (get_last_displayed_sal): Likewise.
1096 * stack.h (clear_last_displayed_sal): Update header comment.
1097 (last_displayed_sal_is_valid): Likewise.
1098 (get_last_displayed_pspace): Likewise.
1099 (get_last_displayed_addr): Likewise.
1100 (get_last_displayed_symtab): Likewise.
1101 (get_last_displayed_line): Likewise.
1102 (get_last_displayed_sal): Likewise.
1103
62137775
AB
11042019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * stack.c (frame_show_address): Convert return type to bool.
1107 * stack.h (frame_show_address): Likewise, and update header
1108 comment.
1109
cf57ad6d
AB
11102019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1113 * unittests/vec-utils-selftests.c: New file.
1114 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1115
0b026263
TT
11162019-11-10 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1119 (tui_highlight_win): Likewise.
1120 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1121 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1122 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1123 Don't set can_highlight.
1124
b049ce2d
TT
11252019-11-10 Tom Tromey <tom@tromey.com>
1126
1127 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1128 Remove unused declaration.
1129
992a7040
TT
11302019-11-08 Tom Tromey <tromey@adacore.com>
1131
1132 * top.c (read_command_file): Update.
1133 (command_line_input): Make return type const.
1134 * python/py-gdb-readline.c: Update.
1135 * linespec.c (decode_line_2): Update.
1136 * defs.h (command_line_input): Make return type const.
1137 * cli/cli-script.c (read_next_line): Make return type const.
1138 * ada-lang.c (get_selections): Update.
1139
ca3a04f6
CB
11402019-11-06 Christian Biesinger <cbiesinger@google.com>
1141
1142 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1143 * mi/mi-main.c (output_cores): Likewise.
1144 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1145 (linux_xfer_osdata_modules): Likewise.
1146 * remote.c (register_remote_support_xml): Likewise.
1147 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1148 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1149
e0eac551
TT
11502019-11-06 Tom Tromey <tom@tromey.com>
1151
1152 * tui/tui-interp.c: Don't include readline.h.
1153 * tui/tui-hooks.c: Don't include readline.h.
1154 * symmisc.c: Include tilde.h, not readline.h.
1155 * symfile.c: Include tilde.h, not readline.h.
1156 * source.c: Include tilde.h, not readline.h.
1157 * solib.c: Include tilde.h, not readline.h.
1158 * psymtab.c: Include tilde.h, not readline.h.
1159 * exec.c: Include tilde.h, not readline.h.
1160 * corelow.c: Include tilde.h, not readline.h.
1161 * cli/cli-dump.c: Include tilde.h, not readline.h.
1162 * cli/cli-cmds.c: Don't include readline.h.
1163
825165c5
TT
11642019-11-05 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1167 (tui_disassemble): Set addr_size.
1168 (tui_disasm_window::set_contents): Use addr_size.
1169
91ae903f
TT
11702019-11-05 Tom Tromey <tom@tromey.com>
1171
1172 * rust-lang.c (rust_language_defn): Update.
1173 * python/py-value.c (valpy_string): Call c_get_string.
1174 * p-lang.c (pascal_language_defn): Update.
1175 * opencl-lang.c (opencl_language_defn): Update.
1176 * objc-lang.c (objc_language_defn): Update.
1177 * m2-lang.c (m2_language_defn): Update.
1178 * language.c (unknown_language_defn, auto_language_defn): Update.
1179 (default_get_string): Remove.
1180 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1181 * go-lang.c (go_language_defn): Update.
1182 * f-lang.c (f_language_defn): Update.
1183 * d-lang.c (d_language_defn): Update.
1184 * c-lang.c (c_language_defn, cplus_language_defn)
1185 (asm_language_defn, minimal_language_defn): Update.
1186 * ada-lang.c (ada_language_defn): Update.
1187 * language.h (struct language_defn) <la_get_string>: Remove.
1188 (LA_GET_STRING): Remove.
1189 (default_get_string): Don't declare.
1190
1df2f9ef
TT
11912019-11-05 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-source.h (struct tui_source_window): Inline
1194 constructor. Remove destructor.
1195 <style_changed, m_observable>: Move to superclass.
1196 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1197 (struct tui_source_window_base): Move private members to end.
1198 <style_changed, m_observable>: Move from tui_source_window.
1199 * tui/tui-winsource.c (tui_copy_source_line): Move from
1200 tui-source.c. Rename from copy_source_line. Add special handling
1201 for negative line number.
1202 (tui_source_window_base::style_changed): Move from
1203 tui_source_window.
1204 (tui_source_window_base): Register observer.
1205 (~tui_source_window_base): New.
1206 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1207 rename.
1208 (tui_source_window::set_contents): Use tui_copy_source_line.
1209 (tui_source_window::tui_source_window): Move to tui-source.h.
1210 (tui_source_window::~tui_source_window): Remove.
1211 (tui_source_window::style_changed): Move to superclass.
1212 * tui/tui-disasm.c (tui_disassemble): Create string file with
1213 styling, when possible. Add "addr_size" parameter.
1214 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1215 Don't compute maximum size.
1216 (len_without_escapes): New function
1217
5d051055
TT
12182019-11-05 Tom Tromey <tom@tromey.com>
1219
1220 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1221 std::string.
1222 * tui/tui-winsource.c (tui_show_source_line): Update.
1223 * tui/tui-source.c (tui_source_window::set_contents): Update.
1224 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1225
ade7beea
CB
12262019-11-05 Christian Biesinger <cbiesinger@google.com>
1227
1228 * symtab.h (gdb_static_assert): Put && operator at the beginning
1229 of the line instead of the end.
1230
3573abe1
CB
12312019-11-04 Christian Biesinger <cbiesinger@google.com>
1232
1233 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1234 and sizeof (symbol).
1235 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1236
dae8b3eb
RO
12372019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1238
1239 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1240 * configure.host: Mark *-*-solaris2.10* obsolete.
1241 * configure.tgt: Mark Solaris < 11 obsolete.
1242 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1243 Update target triplet.
1244
5df96a4e
TT
12452019-11-01 Tom Tromey <tromey@adacore.com>
1246
1247 * utils.c (print_sys_errmsg): Simplify.
1248
b7481649
TT
12492019-11-01 Tom Tromey <tromey@adacore.com>
1250
1251 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1252
e48f6033
CB
12532019-11-01 Christian Biesinger <cbiesinger@google.com>
1254
1255 * configure: Regenerate.
1256 * configure.ac: Remove check for strerror_r.
1257 * gdbsupport/common.m4: Check for strerror_r.
1258
bd5766ec
LM
12592019-11-01 Luis Machado <luis.machado@linaro.org>
1260
1261 PR gdb/25124
1262
1263 * arm-tdep.c (arm_per_objfile): Rename to ...
1264 (arm_per_bfd): ... this.
1265 (arm_objfile_data_key): Rename to ...
1266 (arm_bfd_data_key): ... this.
1267 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1268 data.
1269 (arm_record_special_symbol): Likewise.
1270
e1709896
AB
12712019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1274 end.
1275 * c-typeprint.c (c_print_typedef): Likewise.
1276 * f-typeprint.c (f_print_typedef): Likewise.
1277 * m2-typeprint.c (m2_print_typedef): Likewise.
1278 * p-typeprint.c (pascal_print_typedef): Likewise.
1279 * rust-lang.c (rust_print_typedef): Likewise.
1280 * symtab.c (print_symbol_info): Print a newline after calling
1281 typedef_print.
1282
165f8965
AB
12832019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * symtab.c (info_module_cmdlist): New variable.
1286 (info_module_command): New function.
1287 (search_module_symbols): New function.
1288 (info_module_subcommand): New function.
1289 (struct info_modules_var_func_options): New struct.
1290 (info_modules_var_func_options_defs): New variable.
1291 (make_info_modules_var_func_options_def_group): New function.
1292 (info_module_functions_command): New function.
1293 (info_module_variables_command): New function.
1294 (info_module_var_func_command_completer): New function.
1295 (_initialize_symtab): Register new 'info module functions' and
1296 'info module variables' commands.
1297 * symtab.h (typedef symbol_search_in_module): New typedef.
1298 (search_module_symbols): Declare new function.
1299 * NEWS: Mention new commands.
1300
59c35742
AB
13012019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1304 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1305 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1306 MODULES_DOMAIN.
1307 (scan_partial_symbols): Only create partial module symbols for non
1308 declarations.
1309 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1310 and MODULES_DOMAIN.
1311 * symtab.c (search_domain_name): Likewise.
1312 (search_symbols): Likewise.
1313 (print_symbol_info): Likewise.
1314 (symtab_symbol_info): Likewise.
1315 (info_modules_command): New function.
1316 (_initialize_symtab): Register 'info modules' command.
1317 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1318 * NEWS: Mention new 'info modules' command.
1319
aed61d02
PW
13202019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1321
1322 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1323 and $_gdb_maint_setting_str.
1324
9ad9b77d
PW
13252019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1326
1327 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1328 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1329 (str_value_from_setting, gdb_setting_str_internal_fn)
1330 (gdb_maint_setting_str_internal_fn): New functions.
1331 (_initialize_cli_cmds): Define the new convenience functions.
1332 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1333 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1334
8d6efaa2
CB
13352019-10-31 Christian Biesinger <cbiesinger@google.com>
1336
1337 * agent.c (set_can_use_agent): When the setting is turned on,
1338 look up agent symbols if we don't have them yet.
1339 (agent_new_objfile): Don't look up agent symbols when the agent
1340 setting is off.
1341
33cb1647
CB
13422019-10-31 Christian Biesinger <cbiesinger@google.com>
1343
1344 * config.in: Regenerate.
1345
b231e86a
CB
13462019-10-31 Christian Biesinger <cbiesinger@google.com>
1347
1348 * configure: Regenerate.
1349 * configure.ac: Check for strerror_r.
1350 * gdbsupport/common-utils.h (safe_strerror): Change return value
1351 to const char * and document that this function is now threadsafe.
1352 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1353 thread_local and call strerror_r, if available.
1354 * utils.c (perror_string): Update.
1355 (print_sys_errmsg): Update.
1356
a2726d4f
LM
13572019-10-31 Luis Machado <luis.machado@linaro.org>
1358
1359 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1360 objfile_key.
1361 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1362 objfile to fetch per-bfd data.
1363 (arm_find_exidx_entry): Likewise.
1364
75cafaa6
CB
13652019-10-31 Christian Biesinger <cbiesinger@google.com>
1366
1367 * gdbsupport/agent.c (debug_agent): Change type to bool.
1368 (use_agent): Likewise.
1369 (all_agent_symbols_look_up): Likewise.
1370 (agent_loaded_p): Change return value to bool.
1371 (agent_look_up_symbols): Update.
1372 (agent_capability_check): Change return value to bool.
1373 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1374 (debug_agent): Change type to bool.
1375 (use_agent): Likewise.
1376 (agent_capability_check): Change return value to bool.
1377
808590ec
CB
13782019-10-30 Christian Biesinger <cbiesinger@google.com>
1379
1380 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1381 (build_minimal_symbol_hash_tables): Code to clear the table moved
1382 to clear_minimal_symbol_hash_tables.
1383 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1384 when needed.
1385
f18ad8a1
SM
13862019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * infcmd.c: Remove includes.
1389 * infrun.c: Remove includes.
1390
de93309a
SM
13912019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1394 (grow_vect): Remove declaration.
1395 (ada_type_of_array): Remove declaration.
1396 (ada_update_initial_language): Remove declaration.
1397 (ada_fold_name): Remove declaration.
1398 (ada_fill_in_ada_prototype): Remove declaration.
1399 (user_select_syms): Remove declaration.
1400 (get_selections): Remove declaration.
1401 (ada_tag_type): Remove declaration.
1402 (ada_value_tag): Remove declaration.
1403 (ada_is_others_clause): Remove declaration.
1404 (ada_in_variant): Remove declaration.
1405 (ada_value_struct_elt): Remove declaration.
1406 (ada_attribute_name): Remove declaration.
1407 (ada_system_address_type): Remove declaration.
1408 * ada-lang.c (ada_watch_location_expression): Make static.
1409 (GROW_VECT): Move here from ada-lang.h.
1410 (grow_vect): Make static.
1411 (ada_update_initial_language): Make static.
1412 (ada_fold_name): Make static.
1413 (ada_type_of_array): Make static.
1414 (encoded_ordered_before): Move up.
1415 (sort_choices): Move up.
1416 (print_signatures): Move up.
1417 (ada_print_symbol_signature): Move up.
1418 (get_selections): Move up and make static.
1419 (user_select_syms): Move up and make static.
1420 (ada_value_struct_elt): Move up and make static.
1421 (ada_tag_type): Make static.
1422 (ada_value_tag): Make static.
1423 (ada_is_others_clause): Make static.
1424 (ada_in_variant): Make static.
1425 (ada_attribute_name): Make static.
1426
cdc46a9f
SM
14272019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * ada-lang.c: Remove includes.
1430 * ada-typeprint.c: Remove includes.
1431 * ada-valprint.c: Remove includes.
1432
90421c56
SM
14332019-10-29 Simon Marchi <simon.marchi@efficios.com>
1434
1435 * addrmap.c: Add static assertions of type size, moved from
1436 _initialize_addrmap.
1437 (_initialize_addrmap): Remove.
1438
31edb802
CB
14392019-10-29 Christian Biesinger <cbiesinger@google.com>
1440
1441 * coffread.c (record_minimal_symbol): Update.
1442 (process_coff_symbol): Update.
1443 * dbxread.c (read_dbx_symtab): Update.
1444 * dwarf2read.c (add_partial_symbol): Update.
1445 (fixup_go_packaging): Update.
1446 (load_partial_dies): Update.
1447 (new_symbol): Update.
1448 * elfread.c (record_minimal_symbol): Change signature to use
1449 gdb::string_view instead of name+len.
1450 (elf_symtab_read): Update.
1451 (elf_rel_plt_read): Update.
1452 * mdebugread.c (parse_partial_symbols): Update.
1453 (handle_psymbol_enumerators): Update.
1454 (new_symbol): Update.
1455 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1456 to use gdb::string_view instead of name+len.
1457 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1458 * psympriv.h (add_psymbol_to_list): Likewise.
1459 * psymtab.c (add_psymbol_to_bcache): Likewise.
1460 (add_psymbol_to_list): Likewise.
1461 * stabsread.c (define_symbol): Update.
1462 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1463 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1464 (symbol_set_names): Likewise.
1465 * xcoffread.c (scan_xcoff_symtab): Update.
1466
0c921b21
CB
14672019-10-29 Christian Biesinger <cbiesinger@google.com>
1468
1469 * symtab.h (symbol_set_names): Document that copy_name must be
1470 set to true for non-nullterminated strings.
1471 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1472 linkage_name if the entry was not found and we need to demangle.
1473
35e65c49
CB
14742019-10-29 Christian Biesinger <cbiesinger@google.com>
1475
1476 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1477 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1478 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1479 * gdbsupport/gdb_binary_search.h: New file.
1480
ed2a2229
CB
14812019-10-29 Christian Biesinger <cbiesinger@google.com>
1482
1483 * NEWS: Mention new --with-system-gdbinit-dir option.
1484 * config.in: Regenerate.
1485 * configure: Regenerate.
1486 * configure.ac: Add new option --with-system-gdbinit-dir.
1487 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1488 for a ".gdb" suffix.
1489 * main.c (get_init_files): Change system_gdbinit argument to
1490 a vector and return the files in SYSTEM_GDBINIT_DIR in
1491 addition to SYSTEM_GDBINIT.
1492 (captured_main_1): Update.
1493 (print_gdb_help): Update.
1494 * top.c (print_gdb_configuration): Also print the value of
1495 SYSTEM_GDBINIT_DIR.
1496
87f34879
CB
14972019-10-28 Christian Biesinger <cbiesinger@google.com>
1498
1499 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1500 that takes gdb::string_view arguments.
1501
30baf67b
TV
15022019-10-26 Tom de Vries <tdevries@suse.de>
1503
1504 * aarch64-linux-tdep.c: Fix typos in comments.
1505 * aarch64-tdep.c: Same.
1506 * ada-lang.c: Same.
1507 * amd64-nat.c: Same.
1508 * arc-tdep.c: Same.
1509 * arch/aarch64-insn.c: Same.
1510 * block.c: Same.
1511 * breakpoint.h: Same.
1512 * btrace.h: Same.
1513 * c-varobj.c: Same.
1514 * cli/cli-decode.c: Same.
1515 * cli/cli-script.c: Same.
1516 * cli/cli-utils.h: Same.
1517 * coff-pe-read.c: Same.
1518 * coffread.c: Same.
1519 * compile/compile-cplus-symbols.c: Same.
1520 * compile/compile-object-run.c: Same.
1521 * completer.c: Same.
1522 * corelow.c: Same.
1523 * cp-support.c: Same.
1524 * demangle.c: Same.
1525 * dwarf-index-write.c: Same.
1526 * dwarf2-frame.c: Same.
1527 * dwarf2-frame.h: Same.
1528 * eval.c: Same.
1529 * frame-base.h: Same.
1530 * frame.h: Same.
1531 * gdbcmd.h: Same.
1532 * gdbtypes.h: Same.
1533 * gnu-nat.c: Same.
1534 * guile/scm-objfile.c: Same.
1535 * i386-tdep.c: Same.
1536 * i386-tdep.h: Same.
1537 * infcall.c: Same.
1538 * infcall.h: Same.
1539 * linux-nat.c: Same.
1540 * m68k-tdep.c: Same.
1541 * macroexp.c: Same.
1542 * memattr.c: Same.
1543 * mi/mi-cmd-disas.c: Same.
1544 * mi/mi-getopt.h: Same.
1545 * mi/mi-main.c: Same.
1546 * minsyms.c: Same.
1547 * nat/aarch64-sve-linux-sigcontext.h: Same.
1548 * objfiles.h: Same.
1549 * ppc-linux-nat.c: Same.
1550 * ppc-linux-tdep.c: Same.
1551 * ppc-tdep.h: Same.
1552 * progspace.h: Same.
1553 * prologue-value.h: Same.
1554 * python/py-evtregistry.c: Same.
1555 * python/py-instruction.h: Same.
1556 * record-btrace.c: Same.
1557 * record-full.c: Same.
1558 * remote.c: Same.
1559 * rs6000-tdep.c: Same.
1560 * ser-tcp.c: Same.
1561 * sol-thread.c: Same.
1562 * sparc-sol2-tdep.c: Same.
1563 * sparc64-tdep.c: Same.
1564 * stabsread.c: Same.
1565 * symfile.c: Same.
1566 * symtab.h: Same.
1567 * target.c: Same.
1568 * tracepoint.c: Same.
1569 * tui/tui-data.h: Same.
1570 * tui/tui-io.c: Same.
1571 * tui/tui-win.c: Same.
1572 * tui/tui.c: Same.
1573 * unittests/rsp-low-selftests.c: Same.
1574 * user-regs.h: Same.
1575 * utils.c: Same.
1576 * utils.h: Same.
1577 * valarith.c: Same.
1578 * valops.c: Same.
1579 * valprint.c: Same.
1580 * valprint.h: Same.
1581 * value.c: Same.
1582 * value.h: Same.
1583 * varobj.c: Same.
1584 * x86-nat.h: Same.
1585 * xtensa-tdep.c: Same.
1586
1834d45f
AT
15872019-10-25 Ali Tamur <tamur@google.com>
1588
1589 * charset.c (find_charset_names): Reflect API change.
1590
5396ae17
CB
15912019-10-25 Christian Biesinger <cbiesinger@google.com>
1592
1593 * symtab.c (struct demangled_name_entry): Change demangled name
1594 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1595 part of the struct anymore.
1596 (symbol_set_names): No longer obstack allocate + copy the demangled
1597 name, just store the allocated name from bfd.
1598
93878f47
TT
15992019-10-25 Tom Tromey <tromey@adacore.com>
1600
1601 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1602 (bsearch_cie_cmp, add_cie): Remove.
1603 (find_cie): Reimplement.
1604 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1605 (dwarf2_build_frame_info): Update.
1606
7b71fc97
L
16072019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1608
1609 PR gdb/25126
1610 * symfile.c (reread_symbols): Call forget_cached_source_info to
1611 clear the stale source cache.
1612
cbb5a2ea
CB
16132019-10-24 Christian Biesinger <cbiesinger@google.com>
1614
1615 * configure: Regenerate.
1616 * configure.ac: Remove code that sets python_has_threads.
1617
71737c43
CB
16182019-10-24 Christian Biesinger <cbiesinger@google.com>
1619
1620 * config.in: Regenerate.
1621 * configure: Regenerate.
1622 * configure.ac: Remove the code that uses sed to get the python
1623 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1624
33d569b7
AB
16252019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1628 error paths.
1629
f16f7b7c
TT
16302019-10-23 Tom Tromey <tom@tromey.com>
1631
1632 * arc-tdep.c: Remove ".." from include.
1633 * frv-tdep.c: Remove ".." from include.
1634 * lm32-tdep.c: Remove ".." from include.
1635 * microblaze-tdep.c: Remove ".." from include.
1636 * or1k-tdep.h: Remove ".." from include.
1637 * s12z-tdep.c: Remove ".." from include.
1638 * Makefile.in (OPCODES_CFLAGS): Add comment.
1639 (TOP_CFLAGS): New variable.
1640 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1641
6999161a
TT
16422019-10-23 Tom Tromey <tom@tromey.com>
1643
1644 * Makefile.in (READLINE_DIR): Update.
1645
12e7c35e
TBA
16462019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1647
1648 * infcall.c (call_function_by_hand_dummy): Fix the function
1649 comment. And extract out a code section into...
1650 (reserve_stack_space): ...this new function.
1651
37055cad
TBA
16522019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1653
1654 * infcall.c (value_arg_coerce): Remove an unused parameter.
1655 (call_function_by_hand_dummy): Update the call to
1656 'value_arg_coerce'.
1657
39bcc47c
TBA
16582019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1659
1660 * infcall.c (call_function_by_hand_dummy): Refactor.
1661
bd888c0f
TBA
16622019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1663
1664 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1665
c12d372d
TT
16662019-10-23 Tom Tromey <tom@tromey.com>
1667
1668 * configure: Rebuild.
1669 * configure.ac: Don't check for sigprocmask.
1670 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1671
4d0b984b
TT
16722019-10-23 Tom Tromey <tom@tromey.com>
1673
1674 * configure: Rebuild.
1675 * acinclude.m4: Use m4_include, not sinclude.
1676
7e785608
TV
16772019-10-23 Tom de Vries <tdevries@suse.de>
1678
1679 PR breakpoints/24687
1680 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1681
403772ef
CB
16822019-10-22 Christian Biesinger <cbiesinger@google.com>
1683
1684 * symtab.c (struct demangled_name_entry) <language>: Change from
1685 bitfield to regular variable.
1686
3a494279
CB
16872019-10-22 Christian Biesinger <cbiesinger@google.com>
1688
1689 * symtab.c (struct demangled_name_entry): Add a constructor.
1690 (free_demangled_name_entry): New function to call the destructor
1691 for demangled_name_entry.
1692 (create_demangled_names_hash): Pass free_demangled_name_entry to
1693 htab_create_alloc.
1694 (symbol_set_names): Call placement new for demangled_name_entry.
1695 * utils.c: No longer include xxhash.h here, now that fast_hash
1696 is inlined in the header.
1697 * utils.h: Instead, include it here.
1698
ccb1ba62
CB
16992019-10-22 Christian Biesinger <cbiesinger@google.com>
1700
1701 * Makefile.in: Link with libxxhash.
1702 * config.in: Regenerate.
1703 * configure: Regenerate.
1704 * configure.ac: Search for libxxhash.
1705 * utils.c (fast_hash): Use xxhash if present.
1706
1a6ff1a9
CB
17072019-10-22 Christian Biesinger <cbiesinger@google.com>
1708
1709 * utils.h (fast_hash): New function.
1710 * symtab.c (hash_demangled_name_entry): Call new function
1711 fast_hash.
1712
7bb43059
CB
17132019-10-22 Christian Biesinger <cbiesinger@google.com>
1714
1715 * symtab.c (struct demangled_name_entry): Change type of mangled
1716 to gdb::string_view. Also adds a constructor that takes the
1717 mangled name.
1718 (hash_demangled_name_entry): Update.
1719 (eq_demangled_name_entry): Update.
1720 (free_demangled_name_entry): New function to call the destructor
1721 now that this is not a POD anymore.
1722 (create_demangled_names_hash): Pass free_demangled_name_entry to
1723 htab_create_alloc.
1724 (symbol_set_names): Update.
1725
7ba99d21
AT
17262019-10-21 Ali Tamur <tamu@google.com>
1727
1728 * dwarf2read.c (dir_index): Change type.
1729 (file_name_index): Likewise.
1730 (line_header::include_dir_at): Change comment and implementation on
1731 whether it is DWARF 5.
1732 (line_header::is_valid_file_index): New function.
1733 (line_header::file_name_at): Change comment and implementation on
1734 whether it is DWARF 5.
1735 (line_header::file_names): Change to private field renamed as
1736 m_file_names and introduce a new accessor method.
1737 (line_header::file_names_size): New method.
1738 (line_header::include_dirs): Change to private field and rename as
1739 m_include_dirs.
1740 (dw2_get_file_names_reader): Define local var at a smaller scope and
1741 reflect API change.
1742 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1743 (process_structure_scope): Likewise.
1744 (line_header::add_include_dir): Change message and reflect renaming.
1745 (line_header::add_file_name): Likewise.
1746 (read_formatted_entries): Handle DW_FORM_data16.
1747 (dwarf_decode_line_header): Fix line header length calculation.
1748 (psymtab_include_file_name): Change comment and API.
1749 (lnp_state_machine::m_file): Update comment and reflect type change.
1750 (lnp_state_machine::record_line): Reflect type change.
1751 (dwarf_decode_lines): Reflect API change.
1752 (file_file_name): Likewise.
1753 (file_full_name): Likewise.
1754
45f47c3a
AB
17552019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1758
e5f3c0e3
TT
17592019-10-21 Tom Tromey <tom@tromey.com>
1760
1761 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1762
a0a461e5
TT
17632019-10-21 Tom Tromey <tom@tromey.com>
1764
1765 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1766 NM_H. Use AC_CONFIG_LINKS.
1767 * configure: Rebuild.
1768 * Makefile.in (NM_H): New variable.
1769 (generated_files): Add NM_H. Remove gcore.
1770 (nm.h, stamp-nmh): New targets.
1771
54d83b8d
TT
17722019-10-20 Tom Tromey <tom@tromey.com>
1773
1774 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1775 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1776 obsolete comment.
1777 (put_objfile_before): Now static.
1778
23771117
SM
17792019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * gdbsupport/common-utils.h (startswith): Change return type to
1782 bool.
1783
39ef2f62
CB
17842019-10-19 Christian Biesinger <cbiesinger@google.com>
1785
1786 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1787 * breakpoint.c (bp_locations_compare): Rename to...
1788 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1789 (update_global_location_list): Use std::sort instead of qsort.
1790 * buildsym.c (compare_line_numbers): Rename to...
1791 (lte_is_less_than): ...this, and change to std::sort semantics.
1792 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1793 instead of qsort.
1794 * disasm.c (compare_lines): Rename to...
1795 (line_is_less_than): ...this, and change to std::sort semantics.
1796 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1797 of qsort.
1798 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1799 (fde_is_less_than): ...this, and change to std::sort semantics.
1800 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1801 * mdebugread.c (compare_blocks):
1802 (block_is_less_than): ...this, and change to std::sort semantics.
1803 (sort_blocks): Call std::sort instead of qsort.
1804 * objfiles.c (qsort_cmp): Rename to...
1805 (sort_cmp): ...this, and change to std::sort semantics.
1806 (update_section_map): Call std::sort instead of qsort.
1807 * remote.c (compare_pnums): Remove.
1808 (map_regcache_remote_table): Call std::sort instead of qsort.
1809 * utils.c (compare_positive_ints): Remove.
1810 * utils.h (compare_positive_ints): Remove.
1811 * xcoffread.c (compare_lte): Remove.
1812 (arrange_linetable): Call std::sort instead of qsort.
1813
f71433ee
SDJ
18142019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1815
1816 * symfile.c (init_entry_point_info): Fix typo.
1817 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1818
85102364
TV
18192019-10-18 Tom de Vries <tdevries@suse.de>
1820
1821 * aarch64-tdep.c: Fix typos in comments.
1822 * ada-lang.c: Same.
1823 * ada-tasks.c: Same.
1824 * alpha-tdep.c: Same.
1825 * alpha-tdep.h: Same.
1826 * amd64-nat.c: Same.
1827 * amd64-windows-tdep.c: Same.
1828 * arc-tdep.c: Same.
1829 * arc-tdep.h: Same.
1830 * arch-utils.c: Same.
1831 * arm-nbsd-tdep.c: Same.
1832 * arm-tdep.c: Same.
1833 * ax-gdb.c: Same.
1834 * blockframe.c: Same.
1835 * btrace.c: Same.
1836 * c-varobj.c: Same.
1837 * coff-pe-read.c: Same.
1838 * coffread.c: Same.
1839 * cris-tdep.c: Same.
1840 * darwin-nat.c: Same.
1841 * dbxread.c: Same.
1842 * dcache.c: Same.
1843 * disasm.c: Same.
1844 * dtrace-probe.c: Same.
1845 * dwarf-index-write.c: Same.
1846 * dwarf2-frame-tailcall.c: Same.
1847 * dwarf2-frame.c: Same.
1848 * dwarf2read.c: Same.
1849 * eval.c: Same.
1850 * exceptions.c: Same.
1851 * fbsd-tdep.c: Same.
1852 * findvar.c: Same.
1853 * frame.c: Same.
1854 * frv-tdep.c: Same.
1855 * gnu-v3-abi.c: Same.
1856 * go32-nat.c: Same.
1857 * h8300-tdep.c: Same.
1858 * hppa-tdep.c: Same.
1859 * i386-linux-tdep.c: Same.
1860 * i386-tdep.c: Same.
1861 * ia64-libunwind-tdep.c: Same.
1862 * ia64-tdep.c: Same.
1863 * infcmd.c: Same.
1864 * infrun.c: Same.
1865 * linespec.c: Same.
1866 * linux-nat.c: Same.
1867 * linux-thread-db.c: Same.
1868 * machoread.c: Same.
1869 * mdebugread.c: Same.
1870 * mep-tdep.c: Same.
1871 * mn10300-tdep.c: Same.
1872 * namespace.c: Same.
1873 * objfiles.c: Same.
1874 * opencl-lang.c: Same.
1875 * or1k-tdep.c: Same.
1876 * osabi.c: Same.
1877 * ppc-linux-nat.c: Same.
1878 * ppc-linux-tdep.c: Same.
1879 * ppc-sysv-tdep.c: Same.
1880 * printcmd.c: Same.
1881 * procfs.c: Same.
1882 * record-btrace.c: Same.
1883 * record-full.c: Same.
1884 * remote-fileio.c: Same.
1885 * remote.c: Same.
1886 * rs6000-tdep.c: Same.
1887 * s12z-tdep.c: Same.
1888 * score-tdep.c: Same.
1889 * ser-base.c: Same.
1890 * ser-go32.c: Same.
1891 * skip.c: Same.
1892 * sol-thread.c: Same.
1893 * solib-svr4.c: Same.
1894 * solib.c: Same.
1895 * source.c: Same.
1896 * sparc-nat.c: Same.
1897 * sparc-sol2-tdep.c: Same.
1898 * sparc-tdep.c: Same.
1899 * sparc64-tdep.c: Same.
1900 * stabsread.c: Same.
1901 * stack.c: Same.
1902 * symfile.c: Same.
1903 * symtab.c: Same.
1904 * target-descriptions.c: Same.
1905 * target-float.c: Same.
1906 * thread.c: Same.
1907 * utils.c: Same.
1908 * valops.c: Same.
1909 * valprint.c: Same.
1910 * value.c: Same.
1911 * varobj.c: Same.
1912 * windows-nat.c: Same.
1913 * xcoffread.c: Same.
1914 * xstormy16-tdep.c: Same.
1915 * xtensa-tdep.c: Same.
1916
c5adaa19
TT
19172019-10-17 Tom Tromey <tromey@adacore.com>
1918
1919 * configure: Rebuild.
1920 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1921 in AC_CONFIG_FILES invocation.
1922 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1923 new-style config.status invocation.
1924
405feb71
TV
19252019-10-17 Tom de Vries <tdevries@suse.de>
1926
1927 * arm-nbsd-nat.c: Fix typos in comments.
1928 * arm-tdep.c: Same.
1929 * darwin-nat-info.c: Same.
1930 * dwarf2read.c: Same.
1931 * elfread.c: Same.
1932 * event-top.c: Same.
1933 * findvar.c: Same.
1934 * gdbtypes.c: Same.
1935 * hppa-tdep.c: Same.
1936 * i386-tdep.c: Same.
1937 * jit.c: Same.
1938 * main.c: Same.
1939 * mdebugread.c: Same.
1940 * moxie-tdep.c: Same.
1941 * nto-procfs.c: Same.
1942 * osabi.c: Same.
1943 * ppc-linux-tdep.c: Same.
1944 * remote.c: Same.
1945 * riscv-tdep.c: Same.
1946 * s390-tdep.c: Same.
1947 * sh-tdep.c: Same.
1948 * sparc-linux-tdep.c: Same.
1949 * sparc-nat.c: Same.
1950 * stack.c: Same.
1951 * target-descriptions.c: Same.
1952 * top.c: Same.
1953 * varobj.c: Same.
1954
befcd486
TT
19552019-10-16 Tom Tromey <tom@tromey.com>
1956
1957 * objfiles.h (struct objfile) <original_name>: Now const.
1958
17bfe554
CB
19592019-10-16 Christian Biesinger <cbiesinger@google.com>
1960
1961 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1962 pass on to sigsetjmp's second argument.
1963 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1964
950b7495
KS
19652019-10-16 Keith Seitz <keiths@redhat.com>
1966
1967 PR gdb/23567
1968 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1969 sections whose size is greater than the file size.
1970
ff371ec9
JW
19712019-10-16 Jim Wilson <jimw@sifive.com>
1972
1973 * riscv-tdep.c (riscv_gcc_target_options): New.
1974 (riscv_gnu_triplet_regexp): New.
1975 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1976 set_gdbarch_gnu_triplet_regexp.
1977
fec4e896
CB
19782019-10-16 Christian Biesinger <cbiesinger@google.com>
1979
1980 * Makefile.in: Add xml-builtin.h.
1981 * features/feature_to_c.sh: Add an include for xml-builtin.h
1982 to ensure that the compiler checks that the types match.
1983 * xml-builtin.h: New file.
1984 * xml-support.c (fetch_xml_builtin): Add missing const.
1985 * xml-support.h: Remove declaration of xml_builtins.
1986
d10eccaa
TV
19872019-10-16 Tom de Vries <tdevries@suse.de>
1988
1989 PR tdep/25096
1990 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1991 (amd64_classify_aggregate): ... here.
1992 (amd64_classify_aggregate_field): Handled fiels of nested structs
1993 recursively.
1994
745ff14e
TV
19952019-10-16 Tom de Vries <tdevries@suse.de>
1996
1997 PR tdep/24104
1998 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1999 that handles 'theclass'.
2000
791b7405
AB
20012019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * linespec.c (decode_digits_ordinary): Update comment.
2004 * make-target-delegates: No longer need to handle VEC case.
2005 * memrange.c (normalize_mem_ranges): Update comment.
2006 * namespace.c (add_using_directive): Update comment.
2007 * objc-lang.c (uniquify_strings): Update comment.
2008 * ppc-linux-nat.c (struct thread_points): Update comment.
2009 * probe.h (find_probes_in_objfile): Update comment.
2010 * target.h (enum flash_preserve_mode): Update comment.
2011 * varobj.c (varobj_restrict_range): Update comment.
2012 * varobj.h (varobj_list_children): Update comment.
2013
0dc32745
AB
20142019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * Makefile.in: Remove references to vec.h and vec.c.
2017 * aarch64-tdep.c: No longer include vec.h.
2018 * ada-lang.c: Likewise.
2019 * ada-lang.h: Likewise.
2020 * arm-tdep.c: Likewise.
2021 * ax.h: Likewise.
2022 * breakpoint.h: Likewise.
2023 * charset.c: Likewise.
2024 * cp-support.h: Likewise.
2025 * dtrace-probe.c: Likewise.
2026 * dwarf2read.c: Likewise.
2027 * extension.h: Likewise.
2028 * gdb_bfd.c: Likewise.
2029 * gdbsupport/gdb_vecs.h: Likewise.
2030 * gdbsupport/vec.c: Remove.
2031 * gdbsupport/vec.h: Remove.
2032 * gdbthread.h: Likewise.
2033 * guile/scm-type.c: Likewise.
2034 * inline-frame.c: Likewise.
2035 * machoread.c: Likewise.
2036 * memattr.c: Likewise.
2037 * memrange.h: Likewise.
2038 * namespace.h: Likewise.
2039 * nat/linux-btrace.h: Likewise.
2040 * osdata.c: Likewise.
2041 * parser-defs.h: Likewise.
2042 * progspace.h: Likewise.
2043 * python/py-type.c: Likewise.
2044 * record-btrace.c: Likewise.
2045 * rust-exp.y: Likewise.
2046 * solib-target.c: Likewise.
2047 * stap-probe.c: Likewise.
2048 * target-descriptions.c: Likewise.
2049 * target-memory.c: Likewise.
2050 * target.h: Likewise.
2051 * varobj.c: Likewise.
2052 * varobj.h: Likewise.
2053 * xml-support.h: Likewise.
2054
ae640021
AB
20552019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2058 Update for new std::vector based implementation.
2059 (process_psymtab_comp_unit_reader): Likewise.
2060 (scan_partial_symbols): Likewise.
2061 (recursively_compute_inclusions): Likewise.
2062 (compute_compunit_symtab_includes): Likewise.
2063 (process_imported_unit_die): Likewise.
2064 (queue_and_load_dwo_tu): Likewise.
2065 (follow_die_sig_1): Likewise.
2066 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2067 (typedef dwarf2_per_cu_ptr): Remove.
2068 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2069 function.
2070 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2071 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2072 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2073 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2074 std::vector.
2075
55dfc88f
TT
20762019-10-15 Tom Tromey <tromey@adacore.com>
2077
2078 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2079 TID.
2080
96b49c5e
TT
20812019-10-15 Tom Tromey <tromey@adacore.com>
2082
2083 * windows-nat.c (windows_nat_target::fetch_registers)
2084 (windows_nat_target::store_registers): Rename "pid" to "tid".
2085
953cff56
TT
20862019-10-15 Tom Tromey <tromey@adacore.com>
2087
2088 * gdbarch.h, gdbarch.c: Rebuild.
2089 * gdbarch.sh (gcc_target_options): Change return type to
2090 std::string.
2091 * compile/compile.c (get_args): Update.
2092 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2093 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2094 std::string.
2095 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2096 std::string.
2097 * arch-utils.c (default_gcc_target_options): Return std::string.
2098 * arch-utils.h (default_gcc_target_options): Return std::string.
2099 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2100
81e6b8eb
CB
21012019-10-15 Christian Biesinger <cbiesinger@google.com>
2102
2103 * breakpoint.c (breakpoint_chain): Make static.
2104 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2105 of accessing breakpoint_chain.
2106
95da600f
CB
21072019-10-15 Christian Biesinger <cbiesinger@google.com>
2108
2109 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2110 to a gdb::function_view and return value to bool.
2111 * breakpoint.h (iterate_over_breakpoints): Likewise.
2112 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2113 (pop_dummy_frame): Update.
2114 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2115 (gdbscm_breakpoints): Update.
2116 * python/py-breakpoint.c (build_bp_list): Update.
2117 (gdbpy_breakpoints): Update.
2118 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2119 Update.
2120 (bpfinishpy_handle_stop): Update.
2121 (bpfinishpy_handle_exit): Update.
2122 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2123 (svr4_update_solib_event_breakpoints): Update.
2124
ba18312d
AA
21252019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2126
2127 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2128 when unwrapping single-field structs.
2129
6acc1a0b
SM
21302019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * dwarf2read.c: Remove includes.
2133
284782de
SM
21342019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * ui-out.c (ui_out::call_do_message): Silence
2137 -Wformat-nonliteral warning.
2138
073bbbb0
SM
21392019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2142 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2143 include: readline/tilde.h.
2144
7b9a15e1
CB
21452019-10-12 Christian Biesinger <cbiesinger@google.com>
2146
2147 * remote.c (remote_target::get_trace_status): Remove declaration of
2148 trace_regblock_size.
2149
cc8dee1f
CB
21502019-10-12 Christian Biesinger <cbiesinger@google.com>
2151
2152 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2153 (show_user): Remove declaration of cmdlist.
2154 * cli/cli-cmds.h (max_user_call_depth): Declare.
2155 * cli/cli-script.c (execute_user_command): Remove declaration
2156 of max_user_call_depth.
2157
a83d4ef6
JW
21582019-10-11 Jim Wilson <jimw@sifive.com>
2159
5f93c5a6
JW
2160 * gdbsupport/print-utils.h (pulongest): Fix comment.
2161 (plongest): Likewise.
2162 (phex): Add missing comment, mention leading zeros.
2163 (phex_nz): Add mention of no leading zeros to comment.
2164
a83d4ef6
JW
2165 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2166 plongest instead of unsigned long long cast.
2167
26344e0c
CB
21682019-10-10 Christian Biesinger <cbiesinger@google.com>
2169
2170 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2171 for external_editor_command and gdbtk_test.
2172
c2c440a9
CB
21732019-10-10 Christian Biesinger <cbiesinger@google.com>
2174
2175 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2176 * varobj.c (varobjdebug): Move comment to...
2177 * varobj.h (varobjdebug): ...here, and declare.
2178
a31bff9d
TT
21792019-10-09 Tom Tromey <tom@tromey.com>
2180
2181 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2182 erase_data_content.
2183
7523da63
TT
21842019-10-09 Tom Tromey <tom@tromey.com>
2185
2186 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2187 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2188 * tui/tui-command.c (tui_cmd_window::resize)
2189 (tui_refresh_cmd_win): Update.
2190 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2191 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2192 * tui/tui-data.c (~tui_gen_win_info): Remove.
2193 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2194 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2195 (tui_redisplay_readline, tui_mld_flush)
2196 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2197 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2198 (tui_data_window::erase_data_content)
2199 (tui_data_item_window::rerender)
2200 (tui_data_item_window::refresh_window): Update.
2201 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2202 (box_win, tui_gen_win_info::make_window)
2203 (tui_gen_win_info::make_visible): Update.
2204 (tui_delete_win): Remove.
2205 * tui/tui-winsource.c
2206 (tui_source_window_base::do_erase_source_content): Update.
2207 (tui_show_source_line, tui_source_window_base::update_tab_width)
2208 (tui_source_window_base::update_exec_info): Update.
2209 * tui/tui-data.h (struct curses_deleter): New.
2210 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2211 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2212
a7798e7f
TT
22132019-10-09 Tom Tromey <tom@tromey.com>
2214
2215 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2216
5c45899e
TT
22172019-10-09 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2220 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2221
6d7fd9aa
TT
22222019-10-09 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2225 window height directly.
2226 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2227 declare.
2228 * tui/tui-layout.c (tui_default_win_height): Remove.
2229 (tui_default_win_viewport_height): Remove.
2230
d2dd1084
TT
22312019-10-09 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui.h: Remove comments.
2234
cff32449
TV
22352019-10-09 Tom de Vries <tdevries@suse.de>
2236
2237 * python/lib/gdb/printer/bound_registers.py: Use
2238 '^builtin_type_bound128' as regexp argument for
2239 add_builtin_pretty_printer.
2240
6a25e8a2
CB
22412019-10-09 Christian Biesinger <cbiesinger@google.com>
2242
2243 * guile/guile.c (guile_extension_script_ops): Remove forward
2244 declaration and mark as static.
2245 (guile_script_ops): Likewise.
2246 (extension_language_guile): Move further down in the file so
2247 it can reference the definitions for guile_{extension_,}script_ops.
2248
6d9d6da4
AA
22492019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2250
2251 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2252 except SORTL, DFLTCC, and KDSA.
2253
3abea05d
TT
22542019-10-08 Tom Tromey <tromey@adacore.com>
2255
2256 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2257 (struct safe_symbol_file_add_args): Remove.
2258
dde996e2
TT
22592019-10-08 Tom Tromey <tromey@adacore.com>
2260
2261 * windows-nat.c: Don't include buildsym-legacy.h.
2262
cd6fdaa1
TT
22632019-10-08 Tom Tromey <tromey@adacore.com>
2264
2265 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2266
79bb1944
CB
22672019-10-08 Christian Biesinger <cbiesinger@google.com>
2268
2269 * gdbtypes.c (overload_debug): Move comment to header.
2270 * gdbtypes.h (overload_debug): Declare.
2271 * valops.c: Remove declaration of overload_debug, instead
2272 include gdbtypes.h.
2273
34916edc
CB
22742019-10-08 Christian Biesinger <cbiesinger@google.com>
2275
2276 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2277 through _().
2278 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2279 move comment...
2280 * language.h (lang_frame_mismatch_warn): ... here. Also add
2281 declaration.
2282 * top.c (lang_frame_mismatch_warn): Remove declaration.
2283 (check_frame_language_change): Pass lang_frame_mismatch_warn
2284 through _().
2285
bad5c026
CB
22862019-10-07 Christian Biesinger <cbiesinger@google.com>
2287
2288 * c-lang.h (vtbl_ptr_name): Declare.
2289 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2290 it from the header.
2291 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2292
51f1fdc3
CB
22932019-10-07 Christian Biesinger <cbiesinger@google.com>
2294
2295 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2296 gdb_static_assert.
2297
30d1f018
WP
22982019-10-07 Weimin Pan <weimin.pan@oracle.com>
2299
606813d5
WP
2300 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2301 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2302 * ctfread.c: New file.
2303 * ctfread.h: New file.
2304 * elfread.c: Include ctfread.h.
2305 (struct elfinfo text_p): New member ctfsect.
2306 (elf_locate_sections): Mark CTF section.
2307 (elf_symfile_read): Call elfctf_build_psymtabs.
2308 * Makefile.in (LIBCTF): Add.
2309 (CLIBS): Use it.
2310 (CDEPS): Likewise.
2311 (DIST): Add ctfread.c.
606813d5
WP
2312
23132019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * ctfread.c (struct nextfield): Renamed to ...
2316 (struct ctf_nextfield): ... this.
2317 (struct field_info): Renamed to ...
2318 (strut ctf_field_info): ... this.
2319 (attach_fields_to_type): Update for renamed structures.
2320 (ctf_add_member_cb): Likewise.
2321 (ctf_add_enum_member_cb): Likewise.
2322 (process_struct_members): Likewise.
2323 (process_enum_type): Likewise.
30d1f018 2324
518fe38c
WP
23252019-10-07 Weimin Pan <weimin.pan@oracle.com>
2326
2327 * tracectf.h: Rename, was ctf.h.
2328 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2329 * tracefile.c: Likewise.
2330 * tracepoint.c: Remove unused include ctf.h.
2331 * mi/mi-main.c: Likewise.
2332 * Makefile.in Replace ctf.c with tracectf.c.
2333
225f296a
JB
23342019-10-06 Joel Brobecker <brobecker@adacore.com>
2335
2336 * version.in: Change version number to "9.0.50.DATE-git".
2337
77c2dba3
TT
23382019-10-03 Tom Tromey <tom@tromey.com>
2339
2340 PR rust/24976:
2341 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2342
179aed7f
AB
23432019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2346 cp_search_name_hash.
2347 * NEWS: Add entry about nested function support.
2348
0a4b0913
AB
23492019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2350 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2353 for nested static variables when searchin VAR_DOMAIN.
2354 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2355 global scope, update comment.
2356 (add_partial_subprogram): Call add_partial_subprogram recursively
2357 for nested subroutines when processinng Fortran.
2358 (load_partial_dies): Process the child entities of a subprogram
2359 when processing Fortran.
2360 (partial_die_parent_scope): Handle building scope
2361 for Fortran nested functions.
2362 (process_die): Record that nested functions have a scope.
2363 (new_symbol): Always record Fortran subprograms on the global
2364 symbol list.
2365 (determine_prefix): How to build the prefix for Fortran
2366 subprograms.
2367
d8c06f22
AB
23682019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2371 have just sent the thread a SIGSTOP and are waiting for it to
2372 arrive.
2373
a8b3b8e9
AB
23742019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * btrace.c (btrace_add_pc): Remove whitespace before the template
2377 parameter in 'std::vector <...>'.
2378 (parse_xml_btrace_block): Likewise.
2379 (btrace_maint_decode_pt): Likewise.
2380 (btrace_maint_update_packets): Likewise.
2381 (btrace_maint_print_packets): Likewise.
2382 * btrace.h (struct btrace_maint_info): Likewise.
2383 * dwarf2read.c (struct type_unit_group): Likewise.
2384 (build_type_psymtabs_reader): Likewise.
2385 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2386 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2387 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2388
4d825eab
TV
23892019-10-03 Tom de Vries <tdevries@suse.de>
2390
2391 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2392 the first line of the help text for set/show style metadata.
2393
80fd2826
TT
23942019-10-02 Tom Tromey <tromey@adacore.com>
2395
2396 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2397 * gdbsupport/common-inferior.c: New file.
2398 * infcmd.c (startup_with_shell): Don't define.
2399 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2400 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2401 * inferior.h (startup_with_shell): Don't declare.
2402
70054538
CB
24032019-10-02 Christian Biesinger <cbiesinger@google.com>
2404
2405 * gdbsupport/gdb_assert.h: Include errors.h.
2406 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2407
37f6a7f4
TT
24082019-10-02 Tom Tromey <tromey@adacore.com>
2409
2410 * NEWS: Add $_ada_exception entry.
2411 * ada-lang.c (struct ada_catchpoint): Add constructor.
2412 <m_kind>: New member.
2413 (allocate_location_exception, re_set_exception): Remove
2414 "ex" parameter.
2415 (should_stop_exception): Compute $_ada_exception.
2416 (check_status_exception, print_it_exception)
2417 (print_one_exception, print_mention_exception): Remove
2418 "ex" parameter.
2419 (allocate_location_catch_exception, re_set_catch_exception)
2420 (check_status_exception, print_it_catch_exception)
2421 (print_one_catch_exception, print_mention_catch_exception)
2422 (print_recreate_catch_exception)
2423 (allocate_location_catch_exception_unhandled)
2424 (re_set_catch_exception_unhandled)
2425 (check_status_exception, print_it_catch_exception_unhandled)
2426 (print_one_catch_exception_unhandled)
2427 (print_mention_catch_exception_unhandled)
2428 (print_recreate_catch_exception_unhandled)
2429 (allocate_location_catch_assert, re_set_catch_assert)
2430 (check_status_assert, print_it_catch_assert)
2431 (print_one_catch_assert, print_mention_catch_assert)
2432 (print_recreate_catch_assert)
2433 (allocate_location_catch_handlers, re_set_catch_handlers)
2434 (check_status_handlers, print_it_catch_handlers)
2435 (print_one_catch_handlers, print_mention_catch_handlers)
2436 (print_recreate_catch_handlers): Remove.
2437 (create_ada_exception_catchpoint): Update.
2438 (initialize_ada_catchpoint_ops): Update.
2439
fccf9de1
TT
24402019-10-02 Tom Tromey <tromey@adacore.com>
2441
2442 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2443 (create_excep_cond_exprs): Simplify exception string computation.
2444 (ada_exception_catchpoint_cond_string): Likewise.
2445
4b610737
TT
24462019-10-02 Tom Tromey <tromey@adacore.com>
2447
2448 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2449 * ada-lang.c (lesseq_defined_than): Handle
2450 LOC_STATIC.
2451 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2452 parameter.
2453 (dwarf2_has_info): Likewise.
2454 (new_symbol): Set maybe_copied on symbol when
2455 appropriate.
2456 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2457 parameter.
2458 <can_copy>: New member.
2459 * elfread.c (record_minimal_symbol): Set maybe_copied
2460 on symbol when appropriate.
2461 (elf_symfile_read): Update call to dwarf2_has_info.
2462 * minsyms.c (lookup_minimal_symbol_linkage): New
2463 function.
2464 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2465 * symtab.c (get_symbol_address, get_msymbol_address):
2466 New functions.
2467 * symtab.h (get_symbol_address, get_msymbol_address):
2468 Declare.
2469 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2470 maybe_copied.
2471 (struct symbol, struct minimal_symbol) <maybe_copied>:
2472 New member.
2473
1dd58850
TT
24742019-10-02 Tom Tromey <tromey@adacore.com>
2475
2476 * source.c (struct current_source_location): New.
2477 (current_source_key): New global.
2478 (current_source_symtab, current_source_line)
2479 (current_source_pspace): Remove.
2480 (get_source_location): New function.
2481 (get_current_source_symtab_and_line)
2482 (set_default_source_symtab_and_line)
2483 (set_current_source_symtab_and_line)
2484 (clear_current_source_symtab_and_line, select_source_symtab)
2485 (info_source_command, print_source_lines_base)
2486 (info_line_command, search_command_helper, _initialize_source):
2487 Update.
2488
5c281dbb
TT
24892019-10-02 Tom Tromey <tromey@adacore.com>
2490
2491 * source.c (select_source_symtab): Don't call
2492 decode_line_with_current_source.
2493
d3d32391
AB
24942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * symtab.c (lookup_global_symbol): Search global block.
2497
38583298
TT
24982019-10-02 Tom Tromey <tromey@adacore.com>
2499
2500 * coffread.c (process_coff_symbol): Update.
2501 * dwarf2read.c (var_decode_location, new_symbol): Update.
2502 * mdebugread.c (parse_symbol): Update.
2503 * objfiles.c (relocate_one_symbol): Update.
2504 * stabsread.c (define_symbol, fix_common_block)
2505 (scan_file_globals): Update.
2506 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2507 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2508 * xcoffread.c (process_xcoff_symbol): Update.
2509
9344c18f
AA
25102019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2511
2512 * MAINTAINERS: Update my email address.
2513
df07e2c7
AB
25142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2517 std::vector.
2518 (build_type_psymtabs_reader): Update for std::vector.
2519 (build_type_psymtab_dependencies): Likewise.
2520 * dwarf2read.h: Remove use of DEF_VEC_P.
2521 (typedef sig_type_ptr): Delete.
2522
554ac434
AB
25232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2526 to std::vector.
2527 (btrace_maint_decode_pt): Likewise, and move allocation of the
2528 vector outside of the loop.
2529 (btrace_maint_update_packets): Update to handle change from VEC to
2530 std::vector.
2531 (btrace_maint_print_packets): Likewise.
2532 (maint_info_btrace_cmd): Likewise.
2533 * btrace.h: Remove use of DEF_VEC_O.
2534 (typedef btrace_pt_packet_s): Delete.
2535 (struct btrace_maint_info) <packets>: Change fromm VEC to
2536 std::vector.
2537 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2538
46f29a9a
AB
25392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2542 make accesses into the vector constant references.
2543 (btrace_add_pc): Update for std::vector.
2544 (btrace_stitch_bts): Likewise.
2545 (parse_xml_btrace_block): Likewise.
2546 (btrace_maint_update_packets): Likewise.
2547 (btrace_maint_print_packets): Likewise.
2548 (maint_info_btrace_cmd): Likewise.
2549 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2550 std::vector.
2551 (btrace_data::empty): Likewise.
2552 (btrace_data_append): Likewise.
2553 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2554 (typedef btrace_block_s): Delete.
2555 (struct btrace_block): Add constructor.
2556 (struct btrace_data_bts) <blocks>: Change to std::vector.
2557 * nat/linux-btrace.c (perf_event_read_bts): Update for
2558 std::vector.
2559 (linux_read_bts): Likewise.
2560
d770d56f
TT
25612019-10-01 Tom Tromey <tom@tromey.com>
2562
2563 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2564
9d636d67
TT
25652019-10-01 Tom Tromey <tom@tromey.com>
2566
2567 * stack.c (print_frame, info_frame_command_core): Use
2568 styled_string.
2569 * linux-thread-db.c (try_thread_db_load_1)
2570 (try_thread_db_load_from_pdir_1): Use styled_string.
2571 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2572 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2573 (maybe_print_unsupported_script_warning)
2574 (maybe_print_script_not_found_warning): Use styled_string.
2575 * ada-lang.c (user_select_syms): Use styled_string.
2576
7f6aba03
TT
25772019-10-01 Tom Tromey <tom@tromey.com>
2578
2579 * p-lang.c (pascal_printstr): Use metadata style.
2580 * value.c (show_convenience): Use metadata style.
2581 * valprint.c (valprint_check_validity, val_print_optimized_out)
2582 (val_print_not_saved, val_print_unavailable)
2583 (val_print_invalid_address, generic_val_print, val_print)
2584 (value_check_printable, val_print_array_elements): Use metadata
2585 style.
2586 * ui-out.h (class ui_out) <field_fmt>: New overload.
2587 <do_field_fmt>: Add style parameter.
2588 * ui-out.c (ui_out::field_fmt): New overload.
2589 * typeprint.c (type_print_unknown_return_type)
2590 (val_print_not_allocated, val_print_not_associated): Use metadata
2591 style.
2592 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2593 parameter.
2594 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2595 * tracepoint.c (tvariables_info_1): Use metadata style.
2596 * stack.c (print_frame_arg, print_frame_info, print_frame)
2597 (info_frame_command_core): Use metadata style.
2598 * skip.c (info_skip_command): Use metadata style.
2599 * rust-lang.c (rust_print_enum): Use metadata style.
2600 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2601 metadata style.
2602 * python/py-framefilter.c (py_print_single_arg): Use metadata
2603 style.
2604 * printcmd.c (do_one_display, print_variable_and_value): Use
2605 metadata style.
2606 * p-valprint.c (pascal_val_print)
2607 (pascal_object_print_value_fields): Use metadata style.
2608 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2609 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2610 parameter.
2611 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2612 * m2-valprint.c (m2_print_long_set): Use metadata style.
2613 * m2-typeprint.c (m2_print_type): Use metadata style.
2614 * infcmd.c (print_return_value_1): Use metadata style.
2615 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2616 * f-valprint.c (info_common_command_for_block): Use metadata
2617 style.
2618 * f-typeprint.c (f_type_print_base): Use metadata style.
2619 * expprint.c (print_subexp_standard): Use metadata style.
2620 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2621 * cli/cli-style.h (class cli_style_option): Add constructor.
2622 (metadata_style): Declare.
2623 * cli/cli-style.c (metadata_style): New global.
2624 (_initialize_cli_style): Register metadata style.
2625 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2626 parameter.
2627 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2628 * c-typeprint.c (c_type_print_base_struct_union)
2629 (c_type_print_base_1): Use metadata style.
2630 * breakpoint.c (watchpoint_value_print)
2631 (print_one_breakpoint_location): Use metadata style.
2632 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2633 style.
2634 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2635 style.
2636 * ada-valprint.c (val_print_packed_array_elements, printstr)
2637 (print_field_values, ada_val_print_ref, ada_val_print): Use
2638 metadata style.
2639 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2640 style.
2641 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2642 style.
2643 * ada-lang.c (user_select_syms): Use metadata style.
2644
14309bb6
TT
26452019-10-01 Tom Tromey <tom@tromey.com>
2646
2647 * cli/cli-cmds.c (pwd_command): Style output.
2648
6a831f06
PA
26492019-10-01 Pedro Alves <palves@redhat.com>
2650 Tom Tromey <tom@tromey.com>
2651
2652 * symtab.c (print_symbol_info): Use %ps.
2653 (print_msymbol_info): Use %ps.
2654 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2655 * printcmd.c (print_variable_and_value): Use %ps.
2656 * macrocmd.c (show_pp_source_pos): Use %ps.
2657 * infrun.c (print_exited_reason): Use ui_out::message.
2658 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2659 (describe_other_breakpoints): Use ui_out::message and new
2660 formats.
2661 (say_where): Use new formats.
2662 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2663 and new formats.
2664
2a3c1174
PA
26652019-10-01 Pedro Alves <palves@redhat.com>
2666 Tom Tromey <tom@tromey.com>
2667
2668 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2669 (test_gdb_formats): New function.
2670 (run_tests): Call it.
2671 (test_format_specifier): Update.
2672 * utils.h (fputs_filtered): Update comment.
2673 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2674 (fputs_styled_unfiltered): Declare.
2675 * utils.c (fputs_styled_unfiltered): New function.
2676 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2677 (vfprintf_filtered): Update.
2678 (vfprintf_unfiltered, vprintf_filtered): Update.
2679 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2680 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2681 disallow_ui_out_field>: New constants.
2682 (enum class field_kind): New.
2683 (struct base_field_s, struct signed_field_s): New.
2684 (signed_field): New function.
2685 (struct string_field_s): New.
2686 (string_field): New function.
2687 (struct styled_string_s): New.
2688 (styled_string): New function.
2689 (class ui_out) <message>: Add comment.
2690 <vmessage, call_do_message>: New methods.
2691 <do_message>: Add style parameter.
2692 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2693 methods.
2694 (ui_out::message): Rewrite.
2695 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2696 parameter.
2697 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2698 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2699 gdb_extensions parameter.
2700 (class format_piece): Add parameter to constructor.
2701 (n_int_args): New field.
2702 * gdbsupport/format.c (format_pieces::format_pieces): Add
2703 gdb_extensions parameter. Handle '*'.
2704 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2705 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2706 vfprintf_styled_no_gdbfmt.
2707 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2708 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2709 unfiltered output.
2710 * ui-style.h (struct ui_file_style) <ptr>: New method.
2711
0dfe5bfb
TT
27122019-10-01 Tom Tromey <tom@tromey.com>
2713
2714 * unittests/format_pieces-selftests.c: Update. Add final format.
2715 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2716 empty literal pieces.
2717
e43b10e1
TT
27182019-10-01 Tom Tromey <tom@tromey.com>
2719
2720 * ui-out.h (enum class ui_out_style_kind): Remove.
2721 (class ui_out) <field_string, field_stsream, do_field_string>:
2722 Change type of "style".
2723 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2724 (ui_out::field_string): Update.
2725 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2726 of "style".
2727 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2728 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2729 * stack.c (print_frame_arg, print_frame_info, print_frame):
2730 Update.
2731 * source.c (print_source_lines_base): Update.
2732 * solib.c (info_sharedlibrary_command): Update.
2733 * skip.c (info_skip_command): Update.
2734 * record-btrace.c (btrace_call_history_src_line)
2735 (btrace_call_history): Update.
2736 * python/py-framefilter.c (py_print_frame): Update.
2737 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2738 "style".
2739 * mi/mi-out.c (mi_ui_out::do_table_header)
2740 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2741 (mi_ui_out::do_field_string): Update.
2742 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2743 Update.
2744 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2745 "style".
2746 * cli-out.c (cli_ui_out::do_table_header)
2747 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2748 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2749 (cli_ui_out::do_field_fmt): Update.
2750 * breakpoint.c (print_breakpoint_location): Update.
2751 (update_static_tracepoint): Update.
2752
cd7c32c3
PW
27532019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2754
2755 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2756 conversion of gdb_datadir.
2757 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2758 remove not needed c_str ().
2759
8fe0f950
AT
27602019-09-30 Ali Tamur <tamur@google.com>
2761
2762 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2763 (dwarf2_string_attr): Likewise.
2764
5f48f8f3
AT
27652019-09-30 Ali Tamur <tamur@google.com>
2766
2767 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2768 (process_full_type_unit): Likewise.
2769 (dump_die_shallow): Likewise.
2770 (cu_debug_loc_section): Likewise.
2771
6fb08628
CB
27722019-09-28 Christian Biesinger <cbiesinger@google.com>
2773
2774 * minsyms.c (compare_minimal_symbols): Rename to...
2775 (minimal_symbol_is_less_than): ...this, and adjust to STL
2776 conventions (return bool, take arguments as references)
2777 (minimal_symbol_reader::install): Call std::sort instead
2778 of qsort.
2779
c7ee338a
CB
27802019-09-29 Christian Biesinger <cbiesinger@google.com>
2781
2782 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2783 hash and why.
2784 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2785 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2786
703a86c2
SM
27872019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2790 * psympriv.h (add_psymbol_to_list): Move comment here and update
2791 it.
2792
0df0352a
TV
27932019-09-29 Tom de Vries <tdevries@suse.de>
2794
2795 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2796 Use $tmpdir/$(basename "$output_file").dwz instead of
2797 "${output_file}.dwz".
2798
ad75efa6
SM
27992019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 PR gdb/25045
2802 * hppa-linux-nat.c: Include gdbarch.h.
2803
ececd218
CB
28042019-09-26 Christian Biesinger <cbiesinger@google.com>
2805
2806 * blockframe.c (find_pc_partial_function): Change return type to bool.
2807 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2808 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2809 (stub_gnu_ifunc_resolve_name): Likewise.
2810 * symtab.c (compare_filenames_for_search): Likewise.
2811 (compare_glob_filenames_for_search): Likewise.
2812 (matching_obj_sections): Likewise.
2813 (symbol_matches_domain): Likewise.
2814 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2815 (find_line_pc): Change return type to bool.
2816 (find_line_pc_range): Likewise.
2817 (producer_is_realview): Likewise.
2818 * symtab.h (symbol_matches_domain): Likewise.
2819 (find_pc_partial_function): Likewise.
2820 (find_pc_line_pc_range): Likewise.
2821 (in_gnu_ifunc_stub): Likewise.
2822 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2823 (find_line_pc): Likewise.
2824 (find_line_pc_range): Likewise.
2825 (matching_obj_sections): Likewise.
2826 (find_line_symtab): Change out parameter to bool.
2827 (producer_is_realview): Change return type to bool.
2828 (compare_filenames_for_search): Likewise.
2829 (compare_glob_filenames_for_search): Likewise.
2830
27a900b8
TT
28312019-09-26 Tom Tromey <tom@tromey.com>
2832
2833 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2834 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2835 * gdb_usleep.h: Remove.
2836 * gdb_usleep.c: Remove.
2837 * utils.c: Don't include gdb_usleep.h.
2838
5d63b30a
TT
28392019-09-26 Tom Tromey <tromey@adacore.com>
2840
2841 * python/py-type.c (type_to_type_object): Call check_typedef
2842 for stub types.
2843
12904d37
TT
28442019-09-26 Tom Tromey <tom@tromey.com>
2845
2846 * utils.h (initialize_utils): Don't declare.
2847 * top.c (gdb_init): Don't call initialize_utils.
2848 * utils.c (initialize_utils): Remove. Move contents...
2849 (_initialize_utils): ... here.
2850
858f25f0
TT
28512019-09-25 Tom Tromey <tom@tromey.com>
2852
2853 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2854 * utils.h (make_hex_string): Don't declare.
2855 * utils.c (make_hex_string): Remove.
2856
3d435220
TV
28572019-09-24 Tom de Vries <tdevries@suse.de>
2858
2859 PR gdb/23815
2860 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2861 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2862
ddd44b70
DD
28632019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2864
2865 * NEWS: Mention new simulator port for PRU.
2866
f945dedf
CB
28672019-09-23 Christian Biesinger <cbiesinger@google.com>
2868
2869 * ada-exp.y (write_object_remaining): Update.
2870 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2871 and eliminate the static buffer.
2872 (ada_decode_symbol): Update.
2873 (ada_la_decode): Update.
2874 (ada_sniff_from_mangled_name): Update.
2875 (is_valid_name_for_wild_match): Update.
2876 (ada_lookup_name_info::matches): Update and simplify.
2877 (name_matches_regex): Update.
2878 (ada_add_global_exceptions): Update.
2879 * ada-lang.h (ada_decode): Update signature.
2880 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2881 * dwarf-index-write.c (debug_names::insert): Update.
2882
7ab78ccb
SM
28832019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2886 formatting.
2887
9252448b
SM
28882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2889
2890 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2891 Change "nonzero" to "true" in documentation.
2892
626ca2c0
CB
28932019-09-20 Christian Biesinger <cbiesinger@google.com>
2894
2895 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2896 (_initialize_darwin_solib): Don't set
2897 darwin_so_ops.lookup_lib_global_symbol.
2898 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2899 set_gdbarch_iterate_over_objfiles_in_search_order.
2900 (elf_lookup_lib_symbol): Rename to...
2901 (svr4_iterate_over_objfiles_in_search_order): this, and update
2902 to iterate semantics.
2903 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2904 * solib.c (solib_global_lookup): Remove.
2905 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2906 (solib_global_lookup): Remove.
2907 * symtab.c (lookup_global_or_static_symbol): Remove call to
2908 solib_global_lookup.
2909
5a3a0d63
JB
29102019-09-20 Joel Brobecker <brobecker@adacore.com>
2911
2912 * NEWS: Move entries about default MI version now being
2913 version 3, and about the GDB/MI fix for multi-location
2914 breakpoints to the "since GDB 8.3" section.
2915
ffea1427
JB
29162019-09-20 Joel Brobecker <brobecker@adacore.com>
2917
2918 GDB 8.3.1 released.
2919
abf516c6
UW
29202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2921
2922 * NEWS: Mention that Cell/B.E. debugging support was removed.
2923 * MAINTAINERS: Remove spu target.
2924
2925 * config/djgpp/fnchange.lst: Remove entries for removed files.
2926
2927 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2928 spu-multiarch.o, and spu-tdep.o.
2929 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2930 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2931 spu-multiarch.c, and spu-tdep.c.
2932 * spu-linux-nat.c: Remove file.
2933 * spu-multiarch.c: Remove file.
2934 * spu-tdep.c: Remove file.
2935 * spu-tdep.h: Remove file.
2936 * solib-spu.c: Remove file.
2937 * solib-spu.h: Remove file.
2938
2939 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2940 * configure.nat (spu-linux): Remove.
2941 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2942 solib-multiarch.o from gdb_target_obs.
2943 (spu*-*-*): Remove.
2944
2945 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2946 feature flag.
2947 (ppc_linux_no_features): Update.
2948 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2949 Cell/B.E. support.
2950 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2951 (tdesc_powerpc_cell64l): Likewise.
2952 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2953 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2954 Cell/B.E. support.
2955 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2956 Do not include "features/rs6000/powerpc-cell32l.c" or
2957 "features/rs6000/powerpc-cell64l.c".
2958 (ppc_linux_spu_section): Remove.
2959 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2960 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2961 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2962 (ppc_linux_spe_context_lookup): Remove.
2963 (ppc_linux_spe_context_inferior_created): Remove.
2964 (ppc_linux_spe_context_solib_loaded): Remove.
2965 (ppc_linux_spe_context_solib_unloaded): Remove.
2966 (ppc_linux_spe_context): Remove.
2967 (struct ppu2spu_cache): Remove.
2968 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2969 (struct ppu2spu_data): Remove.
2970 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2971 ppu2spu_unwind): Remove.
2972 (ppc_linux_init_abi): Remove Cell/B.E. support.
2973 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2974
2975 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2976 (rs6000/powerpc-cell64l-expedite): Likewise
2977 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2978 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2979 rs6000/powerpc-cell64l.xml.
2980 * features/rs6000/powerpc-cell32l.xml: Remove.
2981 * features/rs6000/powerpc-cell64l.xml: Likewise.
2982 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2983 * features/rs6000/powerpc-cell64l.c: Likewise.
2984 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2985 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2986 * regformats/reg-spu.dat: Remove.
2987
2988 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2989 * corelow.c (struct spuid_list): Remove.
2990 (add_to_spuid_list): Remove.
2991 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2992 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2993 (remote_protocol_features): Remove associated entries.
2994 (_initialize_remote): No longer initialize them.
2995 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2996 * linux-nat.c (SPUFS_MAGIC): Remove.
2997 (linux_proc_xfer_spu): Remove.
2998 (spu_enumerate_spu_ids): Remove.
2999 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3000 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3001 (linux_make_corefile_notes): No longer call it.
3002
3003 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3004 (cooked_write_test): Likewise.
3005
78e8cb91
TT
30062019-09-20 Tom Tromey <tom@tromey.com>
3007
3008 * NEWS: Mention case-sensitivity of TUI commands.
3009 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3010 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3011 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3012
f074b67e
TT
30132019-09-20 Tom Tromey <tom@tromey.com>
3014
3015 * tui/tui-source.c (tui_source_window::set_contents): Use
3016 make_unique_xstrdup.
3017 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3018 make_unique_xstrdup.
3019
63c4bf19
TT
30202019-09-20 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui-data.c: Remove separator comments.
3023 * tui/tui-layout.c: Remove separator comments.
3024 * tui/tui-win.c: Remove separator comments.
3025 * tui/tui-wingeneral.c: Remove separator comments.
3026
43df9b2f
TT
30272019-09-20 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui.h (strcat_to_buf): Don't declare.
3030 * tui/tui.c (strcat_to_buf): Remove.
3031
7226433c
TT
30322019-09-20 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3035 from "fullname".
3036 * tui/tui-source.c (tui_source_window::set_contents)
3037 (tui_source_window::location_matches_p)
3038 (tui_source_window::maybe_update): Update.
3039
80df3337
TT
30402019-09-20 Tom Tromey <tom@tromey.com>
3041
3042 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3043 Update.
3044 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3045 prefix.
3046 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3047 (tui_data_window::line_from_reg_element_no)
3048 (tui_data_window::first_reg_element_no_inline)
3049 (tui_data_window::show_registers)
3050 (tui_data_window::show_register_group)
3051 (tui_data_window::display_registers_from)
3052 (tui_data_window::display_registers_from_line)
3053 (tui_data_window::first_data_item_displayed)
3054 (tui_data_window::delete_data_content_windows)
3055 (tui_data_window::erase_data_content)
3056 (tui_data_window::do_scroll_vertical)
3057 (tui_data_window::refresh_window)
3058 (tui_data_window::check_register_values): Update.
3059
9923f347
TT
30602019-09-20 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3063 (struct tui_locator_window) <full_name, proc_name>: Now
3064 std::string.
3065 * tui/tui-stack.c (tui_locator_window::make_status_line)
3066 (tui_locator_window::set_locator_fullname)
3067 (tui_locator_window::set_locator_info): Update.
3068 * tui/tui-source.c (tui_source_window::set_contents)
3069 (tui_source_window::showing_source_p): Update.
3070
b76251ab
TT
30712019-09-20 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3074 Don't call tui_locator_win_info_ptr.
3075
0891be08
TT
30762019-09-20 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3079
1b935acf
TT
30802019-09-20 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3083 height for locator.
3084 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3085 * tui/tui-layout.c (show_source_disasm_command, show_data)
3086 (show_source_or_disasm_and_command): Use 1 as height for locator.
3087
9abd8a65
TT
30882019-09-20 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui.c (tui_enable): Update.
3091 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3092 Update.
3093 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3094 Update.
3095 * tui/tui-data.c (win_resized): Now bool.
3096 (tui_win_resized): Return bool.
3097 (tui_set_win_resized_to): Accept a bool.
3098
b5457826
TT
30992019-09-20 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3102 Change type of "refresh_values_only".
3103 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3104 type of "refresh_values_only".
3105
6b915f7d
TT
31062019-09-20 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3109 std::string.
3110 (tui_disassemble): Add "pos" parameter.
3111 (tui_disasm_window::set_contents): Simplify.
3112
2ad52f6f
TT
31132019-09-20 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-winsource.h (struct tui_source_window_base)
3116 <show_source_content>: Now private.
3117 * tui/tui-winsource.c
3118 (tui_source_window_base::show_source_content): Don't handle empty
3119 content case.
3120
b3b1bde6
TT
31212019-09-20 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-layout.c (show_source_disasm_command)
3124 (show_source_or_disasm_and_command): Don't call
3125 show_source_content.
3126
71a25ed2
TT
31272019-09-20 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3130 Declare.
3131 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3132 from tui_make_status_line.
3133 (tui_locator_window::rerender): Update.
3134
f8532154
TT
31352019-09-20 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3138 (tui_locator_window::rerender): Update.
3139
2d81b349
TT
31402019-09-20 Tom Tromey <tom@tromey.com>
3141
3142 * tui/tui-winsource.h (struct tui_source_window_base)
3143 <~tui_source_window_base>: Don't declare.
3144 <fullname>: Remove.
3145 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3146 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3147 member.
3148 * tui/tui-source.c (tui_source_window::set_contents): Update.
3149 (tui_source_window::location_matches_p)
3150 (tui_source_window::maybe_update): Update.
3151
f14bec58
TT
31522019-09-20 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui-winsource.h (~tui_source_element): Remove.
3155 (tui_source_element): Update.
3156 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3157 * tui/tui-winsource.c (tui_show_source_line): Update.
3158 * tui/tui-source.c (tui_source_window::set_contents): Update.
3159 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3160
78d5933a
TT
31612019-09-20 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3164 declare.
3165 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3166 tui_clear_source_windows_detail.
3167 * tui/tui-winsource.h (struct tui_source_window_base)
3168 <clear_detail>: Don't declare.
3169 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3170 Remove.
3171 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3172
d4207696
TT
31732019-09-20 Tom Tromey <tromey@adacore.com>
3174
3175 PR ada/24919:
3176 * block.c (contained_in): Fix final return value.
3177
00f93c44
AM
31782019-09-20 Alan Modra <amodra@gmail.com>
3179
3180 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3181 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3182 (read_indirect_string_from_dwz): Use bfd accessor.
3183 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3184 * machoread.c (macho_symfile_read_all_oso): Likewise.
3185 * solib.c (solib_bfd_open): Likewise.
3186
e4153ae6
CB
31872019-09-19 Christian Biesinger <cbiesinger@google.com>
3188
3189 * eval.c: Move declaration of overload_resolution to...
3190 * value.h: ...here.
3191
c7ae7675
CB
31922019-09-19 Christian Biesinger <cbiesinger@google.com>
3193
3194 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3195 * arm-linux-tdep.c: Likewise.
3196 * arm-nbsd-nat.c: Likewise.
3197 * arm-tdep.h: Declare arm_apcs_32.
3198 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3199
e86f08d2
CB
32002019-09-19 Christian Biesinger <cbiesinger@google.com>
3201
3202 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3203 * dwarf2read.h: Declare dwarf_always_disassemble.
3204
f64e2f40
TV
32052019-09-19 Tom de Vries <tdevries@suse.de>
3206
3207 PR gdb/25009
3208 * source-cache.c (source_cache::ensure): Catch exception thrown during
3209 construction of the highlighter.
3210
fd361982
AM
32112019-09-18 Alan Modra <amodra@gmail.com>
3212
3213 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3214 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3215 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3216 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3217 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3218 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3219 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3220 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3221 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3222 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3223 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3224 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3225 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3226 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3227 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3228 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3229 * mi/mi-interp.c: Update throughout for bfd section macro and
3230 function changes.
3231 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3232 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3233
11061048
TT
32342019-09-18 Tom Tromey <tom@tromey.com>
3235
3236 * NEWS: Add entry.
3237 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3238 call rl_initialize.
3239 (tui_enable): Do not call rl_initialize.
3240
7a27b85f
CG
32412019-09-18 Christian Groessler <chris@groessler.org>
3242
3243 * alpha-linux-nat.c: Include gdbarch.h.
3244
f64eea3a
SM
32452019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * ui-file.c: Include cli/cli-style.h.
3248 (term_cli_styling): Remove cli_styling declaration.
3249
e6f7f6d1
AM
32502019-09-18 Alan Modra <amodra@gmail.com>
3251
3252 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3253 to bfd_asymbol_section.
3254
1d38e9d1
AM
32552019-09-18 Alan Modra <amodra@gmail.com>
3256
3257 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3258 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3259 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3260
90d92a63
AM
32612019-09-18 Alan Modra <amodra@gmail.com>
3262
3263 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3264 * spu-linux-nat.c (spu_bfd_open): Likewise.
3265
a3d181d2
CB
32662019-09-18 Christian Biesinger <cbiesinger@google.com>
3267
3268 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3269 to bool to match definition in dwarf2read.c.
3270
491144b5
CB
32712019-09-17 Christian Biesinger <cbiesinger@google.com>
3272
3273 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3274 (print_signatures): Likewise.
3275 (trust_pad_over_xvs): Likewise.
3276 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3277 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3278 * arm-linux-nat.c (arm_apcs_32): Likewise.
3279 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3280 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3281 * arm-tdep.c (arm_debug): Likewise.
3282 (arm_apcs_32): Likewise.
3283 * auto-load.c (debug_auto_load): Likewise.
3284 (auto_load_gdb_scripts): Likewise.
3285 (global_auto_load): Likewise.
3286 (auto_load_local_gdbinit): Likewise.
3287 (auto_load_local_gdbinit_loaded): Likewise.
3288 * auto-load.h (global_auto_load): Likewise.
3289 (auto_load_local_gdbinit): Likewise.
3290 (auto_load_local_gdbinit_loaded): Likewise.
3291 * breakpoint.c (disconnected_dprintf): Likewise.
3292 (breakpoint_proceeded): Likewise.
3293 (automatic_hardware_breakpoints): Likewise.
3294 (always_inserted_mode): Likewise.
3295 (target_exact_watchpoints): Likewise.
3296 (_initialize_breakpoint): Update.
3297 * breakpoint.h (target_exact_watchpoints): Change to bool.
3298 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3299 * cli/cli-cmds.c (trace_commands): Likewise.
3300 * cli/cli-cmds.h (trace_commands): Likewise.
3301 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3302 to bool*.
3303 * cli/cli-logging.c (logging_overwrite): Change to bool.
3304 (logging_redirect): Likewise.
3305 (debug_redirect): Likewise.
3306 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3307 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3308 to bool.
3309 <boolean_option_def>: Update.
3310 (struct flag_option_def): Change default type of Context to bool
3311 from int.
3312 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3313 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3314 (get_setshow_command_value_string): Likewise.
3315 * cli/cli-style.c (cli_styling): Change to bool.
3316 (source_styling): Likewise.
3317 * cli/cli-style.h (source_styling): Likewise.
3318 (cli_styling): Likewise.
3319 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3320 to bool.
3321 * command.h (var_types): Update comment.
3322 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3323 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3324 bool.
3325 (debug_compile_cplus_scopes): Likewise.
3326 * compile/compile-internal.h (compile_debug): Likewise.
3327 * compile/compile.c (compile_debug): Likewise.
3328 (struct compile_options) <raw>: Likewise.
3329 * cp-support.c (catch_demangler_crashes): Likewise.
3330 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3331 (usr_cmd_cris_dwarf2_cfi): Likewise.
3332 * csky-tdep.c (csky_debug): Likewise.
3333 * darwin-nat.c (enable_mach_exceptions): Likewise.
3334 * dcache.c (dcache_enabled_p): Likewise.
3335 * defs.h (info_verbose): Likewise.
3336 * demangle.c (demangle): Likewise.
3337 (asm_demangle): Likewise.
3338 * dwarf-index-cache.c (debug_index_cache): Likewise.
3339 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3340 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3341 * dwarf2read.c (check_physname): Likewise.
3342 (use_deprecated_index_sections): Likewise.
3343 (dwarf_always_disassemble): Likewise.
3344 * eval.c (overload_resolution): Likewise.
3345 * event-top.c (set_editing_cmd_var): Likewise.
3346 (exec_done_display_p): Likewise.
3347 * event-top.h (set_editing_cmd_var): Likewise.
3348 (exec_done_display_p): Likewise.
3349 * exec.c (write_files): Likewise.
3350 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3351 (debug_fbsd_nat): Likewise.
3352 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3353 Likewise.
3354 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3355 <backtrace_past_entry> Likewise.
3356 * gdb-demangle.h (demangle): Likewise.
3357 (asm_demangle): Likewise.
3358 * gdb_bfd.c (bfd_sharing): Likewise.
3359 * gdbcore.h (write_files): Likewise.
3360 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3361 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3362 * gdbthread.h (print_thread_events): Likewise.
3363 * gdbtypes.c (opaque_type_resolution): Likewise.
3364 (strict_type_checking): Likewise.
3365 * gnu-nat.c (gnu_debug_flag): Likewise.
3366 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3367 * guile/scm-param.c (pascm_variable): Add boolval.
3368 (add_setshow_generic): Update.
3369 (pascm_param_value): Update.
3370 (pascm_set_param_value_x): Update.
3371 * hppa-tdep.c (hppa_debug): Change to bool..
3372 * infcall.c (may_call_functions_p): Likewise.
3373 (coerce_float_to_double_p): Likewise.
3374 (unwind_on_signal_p): Likewise.
3375 (unwind_on_terminating_exception_p): Likewise.
3376 * infcmd.c (startup_with_shell): Likewise.
3377 * inferior.c (print_inferior_events): Likewise.
3378 * inferior.h (startup_with_shell): Likewise.
3379 (print_inferior_events): Likewise.
3380 * infrun.c (step_stop_if_no_debug): Likewise.
3381 (detach_fork): Likewise.
3382 (debug_displaced): Likewise.
3383 (disable_randomization): Likewise.
3384 (non_stop): Likewise.
3385 (non_stop_1): Likewise.
3386 (observer_mode): Likewise.
3387 (observer_mode_1): Likewise.
3388 (set_observer_mode): Update.
3389 (sched_multi): Change to bool.
3390 * infrun.h (debug_displaced): Likewise.
3391 (sched_multi): Likewise.
3392 (step_stop_if_no_debug): Likewise.
3393 (non_stop): Likewise.
3394 (disable_randomization): Likewise.
3395 * linux-tdep.c (use_coredump_filter): Likewise.
3396 (dump_excluded_mappings): Likewise.
3397 * linux-thread-db.c (auto_load_thread_db): Likewise.
3398 (check_thread_db_on_load): Likewise.
3399 * main.c (captured_main_1): Update.
3400 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3401 xx2_opt, boolean_opt>: Change to bool.
3402 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3403 * maint.c (maintenance_profile_p): Likewise.
3404 (per_command_time): Likewise.
3405 (per_command_space): Likewise.
3406 (per_command_symtab): Likewise.
3407 * memattr.c (inaccessible_by_default): Likewise.
3408 * mi/mi-main.c (mi_async): Likewise.
3409 (mi_async_1): Likewise.
3410 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3411 * nat/fork-inferior.h (startup_with_shell): Likewise.
3412 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3413 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3414 * nios2-tdep.c (nios2_debug): Likewise.
3415 * or1k-tdep.c (or1k_debug): Likewise.
3416 * parse.c (parser_debug): Likewise.
3417 * parser-defs.h (parser_debug): Likewise.
3418 * printcmd.c (print_symbol_filename): Likewise.
3419 * proc-api.c (procfs_trace): Likewise.
3420 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3421 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3422 (set_parameter_value): Update.
3423 (add_setshow_generic): Update.
3424 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3425 to bool*.
3426 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3427 int*.
3428 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3429 * record-btrace.c (record_btrace_target::store_registers): Update.
3430 * record-full.c (record_full_memory_query): Change to bool.
3431 (record_full_stop_at_limit): Likewise.
3432 * record-full.h (record_full_memory_query): Likewise.
3433 * remote-notif.c (notif_debug): Likewise.
3434 * remote-notif.h (notif_debug): Likewise.
3435 * remote.c (use_range_stepping): Likewise.
3436 (interrupt_on_connect): Likewise.
3437 (remote_break): Likewise.
3438 * ser-tcp.c (tcp_auto_retry): Likewise.
3439 * ser-unix.c (serial_hwflow): Likewise.
3440 * skip.c (debug_skip): Likewise.
3441 * solib-aix.c (solib_aix_debug): Likewise.
3442 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3443 (spu_auto_flush_cache_p): Likewise.
3444 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3445 Likewise.
3446 (struct info_print_options) <quiet>: Likewise.
3447 * symfile-debug.c (debug_symfile): Likewise.
3448 * symfile.c (auto_solib_add): Likewise.
3449 (separate_debug_file_debug): Likewise.
3450 * symfile.h (auto_solib_add): Likewise.
3451 (separate_debug_file_debug): Likewise.
3452 * symtab.c (basenames_may_differ): Likewise.
3453 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3454 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3455 (struct info_types_options) <quiet>: Likewise.
3456 * symtab.h (demangle): Likewise.
3457 (basenames_may_differ): Likewise.
3458 * target-dcache.c (stack_cache_enabled_1): Likewise.
3459 (code_cache_enabled_1): Likewise.
3460 * target.c (trust_readonly): Likewise.
3461 (may_write_registers): Likewise.
3462 (may_write_memory): Likewise.
3463 (may_insert_breakpoints): Likewise.
3464 (may_insert_tracepoints): Likewise.
3465 (may_insert_fast_tracepoints): Likewise.
3466 (may_stop): Likewise.
3467 (auto_connect_native_target): Likewise.
3468 (target_stop_and_wait): Update.
3469 (target_async_permitted): Change to bool.
3470 (target_async_permitted_1): Likewise.
3471 (may_write_registers_1): Likewise.
3472 (may_write_memory_1): Likewise.
3473 (may_insert_breakpoints_1): Likewise.
3474 (may_insert_tracepoints_1): Likewise.
3475 (may_insert_fast_tracepoints_1): Likewise.
3476 (may_stop_1): Likewise.
3477 * target.h (target_async_permitted): Likewise.
3478 (may_write_registers): Likewise.
3479 (may_write_memory): Likewise.
3480 (may_insert_breakpoints): Likewise.
3481 (may_insert_tracepoints): Likewise.
3482 (may_insert_fast_tracepoints): Likewise.
3483 (may_stop): Likewise.
3484 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3485 (make_thread_apply_all_options_def_group): Change argument from int*
3486 to bool*.
3487 (thread_apply_all_command): Update.
3488 (print_thread_events): Change to bool.
3489 * top.c (confirm): Likewise.
3490 (command_editing_p): Likewise.
3491 (history_expansion_p): Likewise.
3492 (write_history_p): Likewise.
3493 (info_verbose): Likewise.
3494 * top.h (confirm): Likewise.
3495 (history_expansion_p): Likewise.
3496 * tracepoint.c (disconnected_tracing): Likewise.
3497 (circular_trace_buffer): Likewise.
3498 * typeprint.c (print_methods): Likewise.
3499 (print_typedefs): Likewise.
3500 * utils.c (debug_timestamp): Likewise.
3501 (sevenbit_strings): Likewise.
3502 (pagination_enabled): Likewise.
3503 * utils.h (sevenbit_strings): Likewise.
3504 (pagination_enabled): Likewise.
3505 * valops.c (overload_resolution): Likewise.
3506 * valprint.h (struct value_print_options) <prettyformat_arrays,
3507 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3508 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3509 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3510 Likewise.
3511 * windows-nat.c (new_console): Likewise.
3512 (cygwin_exceptions): Likewise.
3513 (new_group): Likewise.
3514 (debug_exec): Likewise.
3515 (debug_events): Likewise.
3516 (debug_memory): Likewise.
3517 (debug_exceptions): Likewise.
3518 (useshell): Likewise.
3519 * windows-tdep.c (maint_display_all_tib): Likewise.
3520 * xml-support.c (debug_xml): Likewise.
3521
f1b620e9
MG
35222019-09-17 Mike Gulick <mgulick@mathworks.com>
3523
3524 * source.c (prepare_path_for_appending): New function.
3525 (openp): Make use of new function.
3526 (find_and_open_source): Search for the compilation directory and
3527 source file as a relative path beneath the directory search path.
3528
67f3ed6a
AB
35292019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3530
3531 * source-cache.c (source_cache::get_line_charpos): Catch
3532 exceptions and return false, this matches the behaviour documented
3533 in the header file.
3534
74332189
JB
35352019-09-17 Joel Brobecker <brobecker@adacore.com>
3536
3537 * ada-tasks.c (info_task): Remove quoting of the task's name.
3538
f2f24aa9
CB
35392019-09-16 Christian Biesinger <cbiesinger@google.com>
3540
3541 * symfile.c (auto_solib_add): Replace comment with a reference
3542 to the header file.
3543
6a062a93
CB
35442019-09-14 Christian Biesinger <cbiesinger@google.com>
3545
3546 * NEWS: Mention that gdb can now be compiled with Python 3
3547 on Windows.
3548
ec6c8338
AB
35492019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3550
3551 * maint.c (maint_print_section_data::maint_print_section_data):
3552 Force use of 'float log10 (float)' by casting the argument to
3553 float.
3554
aa17805f
AB
35552019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3556
3557 * maint.c: Add 'cmath' include.
3558 (struct maint_print_section_data): New structure.
3559 (print_section_index): New function.
3560 (print_bfd_section_info): Add header comment, small whitespace
3561 cleanup, and update to call new print_section_index function.
3562 (print_objfile_section_info): Likewise.
3563 (maint_obj_section_from_bfd_section): New function.
3564 (print_bfd_section_info_maybe_relocated): New function.
3565 (maintenance_info_sections): Add header comment, always use
3566 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3567
3dd9bb46
AB
35682019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3571 inner scope, add check that the objfile has psymtabs before
3572 checking psymtabs_addrmap.
3573 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3574
4993045d
PW
35752019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3576
3577 * NEWS: Announce that Ada task names are now shown at more places,
3578 and between quotes (except in info task output).
3579 * gdb/ada-tasks.c (task_to_str): New function.
3580 (display_current_task_id): Call task_to_str.
3581 (task_command_1): Likewise.
3582 (print_ada_task_info): In non-mi mode, Properly align headers and data
3583 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3584
7a289707
RO
35852019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3586
3587 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3588 prstatus.pr_lwp.pr_info instead of making it up.
3589
f2aec7f6
CB
35902019-09-11 Christian Biesinger <cbiesinger@google.com>
3591
3592 * auto-load.c (auto_load_expand_dir_vars): Update.
3593 * defs.h (gdb_datadir): Change to std::string.
3594 (python_libdir): Likewise.
3595 (relocate_gdb_directory): Change return type to std::string.
3596 * guile/guile.c (gdbscm_data_directory): Update.
3597 (initialize_scheme_side): Update.
3598 * jit.c (jit_reader_dir): Change to std::string.
3599 (jit_reader_load_command): Update.
3600 * main.c (gdb_datadir): Change to std::string.
3601 (python_libdir): Likewise.
3602 (set_gdb_data_directory): Update.
3603 (relocate_path): Change to return std::string.
3604 (relocate_gdb_directory): Change to return std::string.
3605 (relocate_gdbinit_path_maybe_in_datadir): Update.
3606 (captured_main_1): Update.
3607 * python/python.c (do_start_initialization): Update.
3608 * top.c (show_gdb_datadir): Update.
3609 * xml-syscall.c (xml_init_syscalls_info): Update.
3610 (init_syscalls_info): Update.
3611
9224a013
CB
36122019-09-11 Christian Biesinger <cbiesinger@google.com>
3613
3614 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3615 out of get_init_files.
3616 (get_init_files): Update.
3617
f48cd836
CB
36182019-09-11 Christian Biesinger <cbiesinger@google.com>
3619
3620 * main.c (get_init_files): Change to use std::string.
3621 (captured_main_1): Update.
3622 (print_gdb_help): Update.
3623
9cab7ecd
AT
36242019-09-11 Ali Tamur <tamur@google.com>
3625
3626 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3627 implementation.
3628
67547d89
CB
36292019-09-11 Christian Biesinger <cbiesinger@google.com>
3630
3631 * dbxread.c (read_dbx_symtab): Update.
3632 * dwarf2read.c (load_partial_dies): Update.
3633 * mdebugread.c (parse_partial_symbols): Update.
3634 (handle_psymbol_enumerators): Update.
3635 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3636 * psymtab.c (add_psymbol_to_bcache): Likewise.
3637 (add_psymbol_to_list): Likewise.
3638 * symtab.c (symbol_set_names): Likewise.
3639 * symtab.h (symbol_set_names): Likewise.
3640 * xcoffread.c (scan_xcoff_symtab): Update.
3641
64b2d4a0
TT
36422019-09-11 Tom Tromey <tom@tromey.com>
3643
3644 * symfile-mem.c (symbol_file_add_from_memory): Use
3645 bfd_set_filename.
3646 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3647 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3648
3b00ef10
TT
36492019-09-10 Tom Tromey <tromey@adacore.com>
3650
3651 * dwarf-index-write.c (write_psymbols): Extend error message.
3652 (debug_names::insert): Add Ada code.
3653 (debug_names::write_psymbols): Remove Ada check.
3654 (debug_names) <m_string_obstack>: New member.
3655 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3656 (gdb_index_symbol_name_matcher::matches): Remove.
3657 (mapped_index_base::find_name_components_bounds): Add "lang"
3658 parameter.
3659 (mapped_index_base::build_name_components): Also split names
3660 according to Ada syntax.
3661 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3662 type of "match_callback".
3663 (check_match, check_find_bounds_finds)
3664 (dw2_expand_symtabs_matching): Update.
3665 (dw2_debug_names_iterator): Add new constructor.
3666 (dw2_debug_names_map_matching_symbols): New function.
3667 (dw2_debug_names_expand_symtabs_matching): Update.
3668 (dwarf2_debug_names_functions): Use
3669 dw2_debug_names_map_matching_symbols.
3670
aa391654
TT
36712019-09-10 Tom Tromey <tromey@adacore.com>
3672
3673 * dwarf2read.c (dw2_get_file_names_reader): Add the
3674 CU's file name to the results.
3675
b054970d
TT
36762019-09-10 Tom Tromey <tromey@adacore.com>
3677
3678 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3679 map_matching_symbols. Update.
3680 * dwarf2read.c (dw2_map_matching_symbols): Update.
3681 * psymtab.c (match_partial_symbol): Change type; update.
3682 (psym_map_matching_symbols): Likewise.
3683 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3684 type; update.
3685 * symfile.h (struct quick_symbol_functions)
3686 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3687 Remove "match".
3688
6a3dbf1b
TT
36892019-09-10 Tom Tromey <tromey@adacore.com>
3690
3691 * psymtab.c (map_block): Remove.
3692 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3693 * symtab.c (iterate_over_symbols_terminated): New function.
3694 * symtab.c (iterate_over_symbols_terminated): Declare.
3695
6969f124
TT
36962019-09-10 Tom Tromey <tromey@adacore.com>
3697
3698 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3699 * language.h (struct language_defn) <la_iterate_over_symbols>:
3700 Return bool.
3701 * symtab.c (iterate_over_symbols): Return bool.
3702 * symtab.h (iterate_over_symbols): Return bool.
3703
199b4314
TT
37042019-09-10 Tom Tromey <tromey@adacore.com>
3705
3706 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3707 (add_nonlocal_symbols): Update.
3708 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3709 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3710 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3711 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3712 Change type of "callback". Remove "data".
3713
a084a2a6
AT
3714
37152019-09-09 Ali Tamur <tamur@google.com>
3716
3717 * dwarf2read.c (comp_unit_head): Update comment.
3718 (dwarf2_dwo_name): New function declaration.
3719 (dwarf_unit_type_name): New function declaration.
3720 (read_comp_unit_head): Add support for new compilation units,
3721 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3722 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3723 (currently named as "signature") in their header. Also clarify error
3724 messages.
3725 (lookup_dwo_id): New function. Returns the dwo id of the given
3726 compile unit.
3727 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3728 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3729 functions.
3730 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3731 (dwarf2_dwo_name): Get the dwo name if present.
3732 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3733 purposes.
3734
25a2915e
TT
37352019-09-09 Tom Tromey <tom@tromey.com>
3736
3737 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3738
e4df0874
PW
37392019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3740
3741 * python/python.c (do_start_initialization): Make progname_copy static,
3742 to avoid a leak report.
3743
8634b462
TT
37442019-09-08 Tom Tromey <tom@tromey.com>
3745
3746 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3747
c7f839cb
SM
37482019-09-07 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3751 Change type to gdb::optional<block_enum>.
3752 (dw2_symtab_iter_init): Change block_index parameter type
3753 to gdb::optional<block_enum>.
3754 (dw2_lookup_symbol): Change block_index parameter
3755 type to block_enum.c
3756 (dw2_debug_names_lookup_symbol): Likewise.
3757 * psymtab.c (psym_lookup_symbol): Likewise.
3758 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3759 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3760 Likewise.
3761
ead0e69a
CB
37622019-09-06 Christian Biesinger <cbiesinger@google.com>
3763
3764 * defs.h (relocate_gdb_directory): Change int to bool in
3765 signature and rename flag to relocatable.
3766 * main.c (relocate_path): Likewise.
3767 (relocate_gdb_directory): Likewise.
3768
b16c44de
AM
37692019-09-06 Alan Modra <amodra@gmail.com>
3770
3771 * coffread.c (coff_symfile_read): Constify filename variable.
3772 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3773 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3774 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3775 * solib.c (reload_shared_libraries_1): Likewise.
3776 * symfile.c (reread_symbols): Likewise.
3777 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3778 * solib-darwin.c (darwin_bfd_open): Likewise.
3779 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3780
06ff036e
AB
37812019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3782
3783 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3784 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3785
4e962e74
TT
37862019-09-03 Tom Tromey <tromey@adacore.com>
3787
3788 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3789 types.
3790 (has_negatives): Unbias a range type bound.
3791 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3792 * gdbtypes.c (operator==): Handle new field.
3793 (create_range_type): Add "bias" parameter.
3794 (create_static_range_type, resolve_dynamic_range): Update.
3795 * gdbtypes.h (struct range_bounds) <bias>: New member.
3796 (create_range_type): Add bias parameter.
3797 * printcmd.c (print_scalar_formatted): Unbias range types.
3798 * value.c (unpack_long): Unbias range types.
3799 (pack_long): Bias range types.
3800
d90b8f26
AH
38012019-09-02 Alan Hayward <alan.hayward@arm.com>
3802
3803 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3804 probe arguments.
3805
fe01123e
AH
38062019-09-02 Alan Hayward <alan.hayward@arm.com>
3807
3808 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3809 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3810 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3811 (compile_probe_arg): Likewise.
3812 * probe.h (get_argument_count): Likewise.
3813 * solib-svr4.c (solib_event_probe_action): Likewise.
3814 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3815
e661ef01
AH
38162019-09-02 Alan Hayward <alan.hayward@arm.com>
3817
3818 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3819 code to here...
3820 (svr4_create_solib_event_breakpoints): ...from here.
3821
47a536d9
SDJ
38222019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3823
3824 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3825 suffix from warning message.
3826
d6a00eba
TT
38272019-08-30 Tom Tromey <tom@tromey.com>
3828
3829 * tui/tui-winsource.h (struct tui_source_window_base)
3830 <refresh_all>: Don't declare.
3831 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3832 Remove.
3833 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3834 tui_show_locator_content.
3835 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3836 declare.
3837 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3838 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3839 declare.
3840
55b2657b
TT
38412019-08-30 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3844
12a8555a
TT
38452019-08-30 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3848 Remove unnecessary forward declarations.
3849
900ac242
TT
38502019-08-30 Tom Tromey <tom@tromey.com>
3851
3852 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3853 rerender.
3854 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3855 tui_show_locator_content.
3856
99ab33fb
TT
38572019-08-30 Tom Tromey <tom@tromey.com>
3858
3859 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3860 (tui_locator_window::rerender): Rewrite using body of previous
3861 tui_show_locator_content.
3862
e594a5d1
TT
38632019-08-30 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3866 set_locator_fullname>: New methods.
3867 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3868 Rename from tui_set_locator_fullname.
3869 (tui_locator_window::set_locator_info): Rename from
3870 tui_set_locator_info. Return bool.
3871 (tui_update_locator_fullname, tui_show_frame_info): Update.
3872
715bb467
TT
38732019-08-30 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3876
772f3f03
TT
38772019-08-30 Tom Tromey <tom@tromey.com>
3878
3879 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3880 call touchwin.
3881
108e13ab
TT
38822019-08-30 Tom Tromey <tom@tromey.com>
3883
3884 * tui/tui-wingeneral.c (box_win): Assume win_info and
3885 win_info->handle cannot be NULL.
3886
cdaa6eb4
TT
38872019-08-30 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3890 refresh_window>: Declare.
3891 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3892 resize.
3893 (tui_data_item_window::rerender): Rename from
3894 tui_display_register.
3895 (tui_data_item_window::refresh_window): New method.
3896 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3897 no-op.
3898
89df7f90
TT
38992019-08-30 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3902 regs_column_count, current_group>: Move later. Now private.
3903 <get_current_group>: New method.
3904 * tui/tui-regs.c (tui_reg_command): Update.
3905 * tui/tui-layout.c (tui_set_layout): Update.
3906
1bf2866a
TT
39072019-08-30 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3910 (tui_data_window::rerender): Don't call
3911 check_and_display_highlight_if_needed.
3912 (tui_data_window::refresh_all): Remove call to
3913 erase_data_content.
3914
0670413d
TT
39152019-08-30 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3918 (tui_data_window::display_registers_from)
3919 (tui_data_window::display_reg_element_at_line)
3920 (tui_data_window::display_registers_from_line): Remove checks of
3921 "empty".
3922
18bb55c7
TT
39232019-08-30 Tom Tromey <tom@tromey.com>
3924
3925 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3926 Don't declare.
3927 * tui/tui-regs.c (tui_data_window::show_registers): Call
3928 rerender.
3929 (tui_data_window::rerender): Rename from display_all_data.
3930 (tui_data_window::rerender): Remove old implementation.
3931
1f6d2f10
TT
39322019-08-30 Tom Tromey <tom@tromey.com>
3933
3934 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3935 text.
3936 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3937
16d01f9c
BW
39382019-08-29 Bernhard Wodok <barto@gmx.net>
3939 Sergio Durigan Junior <sergiodj@redhat.com>
3940
3941 PR win32/24284
3942 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3943
d8f27c60
AB
39442019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3947 when searching for types.
3948
1f20c35e
AB
39492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * f-lang.c (f_language_defn): Use f_print_typedef.
3952 * f-lang.h (f_print_typedef): Declare.
3953 * f-typeprint.c (f_print_typedef): Define.
3954
550105b7
CB
39552019-08-27 Christian Biesinger <cbiesinger@google.com>
3956
3957 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3958
4acfdd20
AB
39592019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * cli/cli-utils.c (info_print_options_defs): Delete.
3962 (make_info_print_options_def_group): Delete.
3963 (extract_info_print_options): Delete.
3964 (info_print_command_completer): Delete.
3965 (info_print_args_help): Add extra parameter, and optionally
3966 include text about -n flag.
3967 * cli/cli-utils.h (struct info_print_options): Delete.
3968 (extract_info_print_options): Delete declaration.
3969 (info_print_command_completer): Delete declaration.
3970 (info_print_args_help): Add extra parameter, extend header
3971 comment.
3972 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3973 search_symbols.
3974 * stack.c (struct info_print_options): New type.
3975 (info_print_options_defs): New file scoped variable.
3976 (make_info_print_options_def_group): New static function.
3977 (info_print_command_completer): New static function.
3978 (info_locals_command): Update to use new local functions.
3979 (info_args_command): Likewise.
3980 (_initialize_stack): Add extra parameter to calls to
3981 info_print_args_help.
3982 * symtab.c (search_symbols): Add extra parameter, use this to
3983 possibly excluse non-debug symbols.
3984 (symtab_symbol_info): Add extra parameter, which is passed on to
3985 search_symbols.
3986 (struct info_print_options): New type.
3987 (info_print_options_defs): New file scoped variable.
3988 (make_info_print_options_def_group): New static function.
3989 (info_print_command_completer): New static function.
3990 (info_variables_command): Update to use local functions, and pass
3991 extra parameter through to symtab_symbol_info.
3992 (info_functions_command): Likewise.
3993 (info_types_command): Pass additional argument through to
3994 symtab_symbol_info.
3995 (rbreak_command): Pass extra argument to search_symbols.
3996 (_initialize_symtab): Add extra arguments for calls to
3997 info_print_args_help, and update help text for 'info variables',
3998 'whereis', and 'info functions' commands.
3999 * symtab.h (search_symbols): Add extra argument to declaration.
4000 * NEWS: Mention new flags.
4001
9aa55206
CB
40022019-08-26 Christian Biesinger <cbiesinger@google.com>
4003
4004 * symtab.c (lookup_static_symbol): Call the new function (and move
4005 it down to be next to lookup_global_symbol).
4006 (struct global_sym_lookup_data): Add block_enum member and rename to...
4007 (struct global_or_static_sym_lookup_data): ...this.
4008 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4009 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4010 (lookup_symbol_global_or_static_iterator_cb): ...this.
4011 (lookup_global_or_static_symbol): New function.
4012 (lookup_global_symbol): Call new function.
4013
5c31b358
TV
40142019-08-26 Tom de Vries <tdevries@suse.de>
4015
4016 PR c++/24852
4017 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4018 when pc_probe.prob == NULL.
4019
23c13d42
SM
40202019-08-25 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4023 variable symbol_linkage to symbol_linkage_.
4024
beadd3e8
SM
40252019-08-25 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4028 represent whether the symbol is static, dynamic, or we don't
4029 know.
4030
e3ec872f
YS
40312019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4032
4033 * gdb/rx-tdep.c (rx_register_names): New.
4034 (rx_register_name): Delete.
4035 (rx_psw_type): Delete.
4036 (rx_fpsw_type): Delete.
4037 (rx_register_type): Delete.
4038 (rx_gdbarch_init): Convert target-descriptions.
4039 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4040 * gdb/features/Makefile: Add rx.xml.
4041 * gdb/features/rx.xml: New.
4042 * gdb/features/rx.c: Generated.
4043 * gdb/NEWS: Mention target description support.
4044
d0509ba4
CB
40452019-08-22 Christian Biesinger <cbiesinger@google.com>
4046
4047 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4048 *slot_ptr.
4049
2d41fa11
SDJ
40502019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4051
4052 * configure.ac: Don't check for 'dlfcn.h' (moved to
4053 gdbsupport/common.m4).
4054 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4055 'gdbsupport/'.
4056 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4057 * compile/compile-c-support.c: Include
4058 'gdbsupport/gdb-dlfcn.h'.
4059 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4060 * gdb-dlfcn.c: Move to...
4061 * gdbsupport/gdb-dlfcn.c: ... here.
4062 * gdb-dlfcn.h: Move to...
4063 * gdbsupport/gdb-dlfcn.h: ... here.
4064
de8af808
SL
40652019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4066
4067 * nios2-tdep.c (struct reg_value): Improve comments. Make
4068 the offset field signed.
4069
27204489
CB
40702019-08-22 Christian Biesinger <cbiesinger@google.com>
4071
4072 * python/lib/gdb/__init__.py (_execute_file): New function.
4073 * python/python.c (python_run_simple_file): Call gdb._execute_file
4074 on Windows.
4075
43771869
AB
40762019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4079 all uses as this was never set to anything but a zero value.
4080
26c957f1
PA
40812019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4082
4083 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4084
c07aae6e
CB
40852019-08-21 Christian Biesinger <cbiesinger@google.com>
4086
4087 * tui/tui-data.h (tui_gen_win_info): Add an =default
4088 move constructor, required by some GCC versions.
4089
3960cb7a
JF
40902019-08-21 Jinke Fan <fanjinke51@yeah.net>
4091
4092 * go32-nat.c (go32_sysinfo): Add hygon_p.
4093
04c72a68
TT
40942019-08-20 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4097 line_from_reg_element_no, first_reg_element_no_inline,
4098 display_all_data, delete_data_content_windows,
4099 erase_data_content>: Now private.
4100
072272ce
TT
41012019-08-20 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4104 (tui_unhighlight_win, tui_highlight_win)
4105 (tui_win_info::make_window): Update.
4106 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4107
973961bd
TT
41082019-08-20 Tom Tromey <tom@tromey.com>
4109
4110 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4111 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4112 (MAX_PID_WIDTH): Move to tui-stack.c.
4113 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4114 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4115 (MAX_PID_WIDTH): Move from tui-data.h.
4116
ab0e1f1a
TT
41172019-08-20 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4120 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4121 (box_win): Update.
4122 (tui_gen_win_info::make_window): Rename from tui_make_window.
4123 (tui_win_info::make_window): New method.
4124 (tui_gen_win_info::make_visible): Update.
4125 * tui/tui-source.c (tui_source_window::set_contents): Update.
4126 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4127 (tui_data_window::display_registers_from): Update.
4128 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4129 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4130 Declare.
4131 <can_box>: Remove.
4132 <title>: Remove.
4133 (struct tui_win_info) <make_window>: Declare.
4134 <can_box>: Now virtual.
4135 <title>: New member.
4136 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4137 * tui/tui-command.c (tui_cmd_window::resize): Update.
4138
100c2bf3
TT
41392019-08-20 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4142 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4143 (tui_data_window::check_register_values): Update.
4144
fa4dc567
TT
41452019-08-20 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-regs.h (struct tui_data_window): Use
4148 DISABLE_COPY_AND_ASSIGN.
4149 <regs_content>: Change type, removing unique_ptr.
4150 <tui_data_window>: Add move constructor.
4151 * tui/tui-regs.c (tui_data_window::show_registers)
4152 (tui_data_window::show_register_group)
4153 (tui_data_window::display_registers_from)
4154 (tui_data_window::display_registers_from)
4155 (tui_data_window::first_data_item_displayed)
4156 (tui_data_window::delete_data_content_windows)
4157 (tui_data_window::rerender, tui_data_window::refresh_window)
4158 (tui_data_window::check_register_values): Update.
4159
ca02d7c8
TT
41602019-08-20 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4163 show_register_group>: Declare.
4164 (tui_show_register_group): Don't declare.
4165 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4166 tui_show_registers.
4167 (tui_data_window::show_register_group): Rename from
4168 tui_show_register_group.
4169 (tui_data_window::check_register_values, tui_reg_command):
4170 Update.
4171 * tui/tui-layout.c (tui_set_layout): Update.
4172
63356bfd
TT
41732019-08-20 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4176 Declare.
4177 (tui_check_register_values): Don't declare.
4178 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4179 from tui_check_register_values.
4180 * tui/tui-hooks.c (tui_register_changed): Update.
4181
42cc14a7
TT
41822019-08-20 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-regs.c (tui_reg_layout): Move later.
4185 (tui_show_registers): Don't enable TUI mode or change layout.
4186
b9ad3686
TT
41872019-08-20 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-regs.h (struct tui_data_item_window)
4190 <~tui_data_item_window>: Remove.
4191 <content>: Now a unique_xmalloc_ptr.
4192 * tui/tui-regs.c (tui_register_format): Return a
4193 unique_xmalloc_ptr.
4194 (tui_get_register): Update.
4195 (~tui_data_item_window): Remove.
4196 (tui_data_window::display_registers_from, tui_display_register):
4197 Update.
4198 * tui/tui-io.h (tui_expand_tabs): Update.
4199 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4200 Remove "col" parameter.
4201
8e114aab
TT
42022019-08-20 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4205 field.
4206 * tui/tui-regs.c (~tui_data_item_window): Update.
4207
1a4f81dd
TT
42082019-08-20 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4211 earlier.
4212
0f8d8876
TT
42132019-08-20 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4216
605dc2c2
TT
42172019-08-20 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-source.h (struct tui_source_window): Update.
4220 * tui/tui-regs.c (tui_show_registers): Update.
4221 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4222 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4223 (NO_REGS_STRING): Remove defines.
4224
aedbe3bb
CM
42252019-08-20 Conrad Meyer <cem@FreeBSD.org>
4226
4227 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4228 unnecessary thread walk if remote doesn't support the packet.
4229
7ce8f214
TT
42302019-08-19 Tom Tromey <tromey@adacore.com>
4231
4232 * python/py-value.c (value_has_field): Fix indentation.
4233
f21c2bd7
TT
42342019-08-19 Tom Tromey <tromey@adacore.com>
4235
4236 * printcmd.c (do_one_display, info_display_command): Update.
4237 * block.h (contained_in): Return bool. Add allow_nested
4238 parameter.
4239 * block.c (contained_in): Return bool. Add allow_nested
4240 parameter.
4241
d806ea2d
TT
42422019-08-19 Tom Tromey <tom@tromey.com>
4243
4244 * configure: Rebuild.
4245 * configure.ac: Disallow the combination of -static-libstdc++ and
4246 source highlight.
4247 * source-cache.c (get_language_name): Handle rust.
4248 (source_cache::get_source_lines): Ignore highlighting exceptions.
4249
398fdd60
TT
42502019-08-16 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4253 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4254 (struct tui_source_window_base) <make_visible, refresh_window,
4255 resize>: Remove methods.
4256 <execution_info>: Remove field.
4257 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4258 (tui_show_source_line, tui_source_window_base)
4259 (~tui_source_window_base): Update.
4260 (tui_source_window_base::resize)
4261 (tui_source_window_base::make_visible)
4262 (tui_source_window_base::refresh_window): Remove.
4263 (tui_source_window_base::update_exec_info): Update.
4264 * tui/tui-source.c (tui_source_window::set_contents): Update.
4265 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4266
e699d331
TT
42672019-08-16 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4270 deprecated_query_hook.
4271
bb01dbfc
TT
42722019-08-16 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4275 (tui_update_source_windows_with_line): Update.
4276 * tui/tui-source.h (struct tui_source_window)
4277 <show_symtab_source>: Declare.
4278 (tui_show_symtab_source): Don't declare.
4279 * tui/tui-source.c (tui_show_symtab_source): Rename from
4280 tui_show_symtab_source.
4281
81c82c4b
TT
42822019-08-16 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-winsource.h (struct tui_source_window_base)
4285 <set_contents>: Declare.
4286 * tui/tui-winsource.c
4287 (tui_source_window_base::update_source_window_as_is): Update.
4288 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4289 Declare.
4290 (tui_set_source_content): Don't declare.
4291 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4292 tui_set_source_content.
4293 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4294 Declare.
4295 (tui_set_disassem_content): Don't declare.
4296 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4297 tui_set_disassem_content.
4298
2ddaf614
TT
42992019-08-16 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui-winsource.h (struct tui_source_window_base)
4302 <update_breakpoint_info>: Declare.
4303 (tui_update_breakpoint_info): Don't declare.
4304 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4305 (tui_update_all_breakpoint_info): Update.
4306 (tui_source_window_base::update_breakpoint_info): Rename from
4307 tui_update_breakpoint_info.
4308 (tui_source_window_base::update_exec_info): Update.
4309
017f9828
TT
43102019-08-16 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-winsource.h (struct tui_source_window_base)
4313 <update_source_window>: Declare.
4314 (tui_update_source_window): Don't declare.
4315 * tui/tui-winsource.c
4316 (tui_source_window_base::update_source_window): Rename from
4317 tui_update_source_window.
4318 (tui_source_window_base::rerender): Update.
4319 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4320 * tui/tui-disasm.c (tui_show_disassem)
4321 (tui_show_disassem_and_update_source)
4322 (tui_disasm_window::maybe_update): Update.
4323
ed8358e9
TT
43242019-08-16 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-winsource.h (struct tui_source_window_base)
4327 <update_source_window_as_is>: Declare.
4328 (tui_update_source_window_as_is): Don't declare.
4329 * tui/tui-winsource.c (tui_update_source_window): Update
4330 (tui_source_window_base::update_source_window_as_is): Rename from
4331 tui_update_source_window_as_is.
4332 (tui_source_window_base::refill): Update.
4333 * tui/tui-source.c (tui_show_symtab_source): Update.
4334 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4335 Update.
4336
20149b6b
TT
43372019-08-16 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-winsource.h (tui_update_source_window)
4340 (tui_update_source_window_as_is): Remove "noerror" parameter.
4341 * tui/tui-winsource.c (tui_update_source_window)
4342 (tui_update_source_window_as_is): Remove "noerror" parameter.
4343 (tui_update_source_windows_with_addr)
4344 (tui_update_source_windows_with_line)
4345 (tui_source_window_base::rerender)
4346 (tui_source_window_base::refill): Update.
4347 * tui/tui-source.h (tui_set_source_content)
4348 (tui_show_symtab_source): Remove "noerror" parameter.
4349 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4350 parameter.
4351 (tui_show_symtab_source): Likewise.
4352 (tui_source_window::maybe_update): Update.
4353 * tui/tui-disasm.c (tui_show_disassem)
4354 (tui_show_disassem_and_update_source)
4355 (tui_disasm_window::do_scroll_vertical)
4356 (tui_disasm_window::maybe_update): Update.
4357
2d83e710
TT
43582019-08-16 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui.c (tui_is_window_visible): Update.
4361 * tui/tui-wingeneral.c (tui_make_window)
4362 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4363 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4364 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4365 (tui_set_win_height_command, parse_scrolling_args): Update.
4366 * tui/tui-source.c (tui_source_window::style_changed): Update.
4367 * tui/tui-regs.c (tui_show_registers)
4368 (tui_data_window::first_data_item_displayed)
4369 (tui_data_window::delete_data_content_windows)
4370 (tui_check_register_values, tui_reg_command): Update.
4371 * tui/tui-disasm.c (tui_show_disassem): Update.
4372 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4373 method.
4374 <is_visible>: Remove field.
4375 * tui/tui-data.c (tui_next_win, tui_prev_win)
4376 (tui_delete_invisible_windows): Update.
4377
d4ab829a
TT
43782019-08-16 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-winsource.h (struct tui_source_window_base)
4381 <m_has_locator>: Remove.
4382 * tui/tui-layout.c (show_source_disasm_command, show_data)
4383 (show_source_or_disasm_and_command): Update.
4384
aa7ca1bb
AH
43852019-08-16 Alan Hayward <alan.hayward@arm.com>
4386
4387 * NEWS (Other MI changes): New subsection.
4388 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4389 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4390 * arch-utils.c (default_get_pc_address_flags): New function.
4391 * arch-utils.h (default_get_pc_address_flags): New declaration.
4392 * gdbarch.sh: Add get_pc_address_flags.
4393 * gdbarch.c: Regenerate.
4394 * gdbarch.h: Likewise.
4395 * stack.c (print_pc): New function.
4396 (print_frame_info) (print_frame): Call print_pc.
4397
6eac171f
TV
43982019-08-16 Tom de Vries <tdevries@suse.de>
4399
4400 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4401 print_objfile_section_info.
4402
3df505f6
TT
44032019-08-15 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4406 calling update_cmdwin_start_line.
4407 * tui/tui-winsource.h (struct tui_source_window_base)
4408 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4409 <rerender>: Declare.
4410 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4411 Call rerender.
4412 (tui_source_window_base::set_new_height): Remove.
4413 (tui_source_window_base::rerender): Rename from
4414 do_make_visible_with_new_height.
4415 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4416 resize method.
4417 (tui_win_info::make_invisible_and_set_new_height)
4418 (tui_win_info::make_visible_with_new_height): Remove.
4419 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4420 Declare.
4421 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4422 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4423 do_make_visible_with_new_height>: Don't declare.
4424 <rerender>: Declare.
4425 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4426 set_new_height.
4427 (tui_data_window::do_make_visible_with_new_height): Remove.
4428 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4429 call tui_show_locator_content.
4430 (tui_gen_win_info::resize): Call rerender.
4431 (show_source_or_disasm_and_command): Don't call
4432 tui_show_locator_content.
4433 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4434 method.
4435 (struct tui_win_info) <rerender>: Declare.
4436 <set_new_height, make_invisible_and_set_new_height,
4437 make_visible_with_new_height>: Don't declare.
4438 * tui/tui-data.c (tui_win_list::rerender): New method.
4439 * tui/tui-command.h (struct tui_cmd_window)
4440 <do_make_visible_with_new_height>: Don't declare.
4441 * tui/tui-command.c
4442 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4443
272560b5
TT
44442019-08-15 Tom Tromey <tromey@adacore.com>
4445
4446 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4447 * ada-lang.c (ada_enum_name): Likewise.
4448
08235187
CB
44492019-08-15 Christian Biesinger <cbiesinger@google.com>
4450
4451 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4452 leading underscore.
4453 (GdbOutputErrorFile): Likewise.
4454 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4455 accordingly.
4456 (execute_unwinders): Rename to have a leading underscore.
4457 (auto_load_packages): Likewise.
4458 (global scope): Adjust call to auto_load_packages accordingly.
4459 (GdbSetPythonDirectory): Likewise.
4460 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4461 instead of execute_unwinders.
4462
db502012
TT
44632019-08-15 Tom Tromey <tom@tromey.com>
4464
4465 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4466 (show_data): Don't change window visibility.
4467 (tui_gen_win_info::resize): Remove special case for command
4468 window. Use wresize, when available.
4469 (show_source_or_disasm_and_command): Don't change window
4470 visibility.
4471 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4472 <make_visible>: New method.
4473 * tui/tui-command.c (tui_cmd_window::resize): New method.
4474
3891b65e
TT
44752019-08-15 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4478 (struct tui_source_windows): New.
4479 * tui/tui-winsource.c (tui_display_main): Update.
4480 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4481 (new_height_ok, parse_scrolling_args): Update.
4482 * tui/tui-layout.c (show_layout, show_data): Update.
4483 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4484 (tui_add_to_source_windows): Don't declare.
4485 * tui/tui-data.c (source_windows, tui_source_windows)
4486 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4487
ee556432
TT
44882019-08-15 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4491 Rename from reset.
4492 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4493 * tui/tui-layout.c (show_source_disasm_command, show_data):
4494 Update.
4495 (tui_gen_win_info::resize): Rename.
4496 (show_source_or_disasm_and_command): Update.
4497 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4498 reset.
4499
46f438e3
TT
45002019-08-15 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4503 * tui/tui-interp.c (tui_interp::init): Don't call
4504 tui_initialize_static_data.
4505 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4506
f4ce562c
TT
45072019-08-15 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4510 examine tui_win_list.
4511
c398c3d0
TT
45122019-08-15 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4515 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4516 tui_clear_source_content.
4517 (tui_clear_source_content): Remove.
4518 (tui_source_window_base::do_erase_source_content): Hoist call to
4519 content.clear().
4520 * tui/tui-stack.c (tui_show_frame_info): Don't call
4521 tui_clear_source_content.
4522
e25d2004
TT
45232019-08-15 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-winsource.h (struct tui_source_window_base)
4526 <do_erase_source_content>: New method.
4527 <erase_source_content>: New method.
4528 (tui_erase_source_content): Don't declare.
4529 * tui/tui-winsource.c (tui_clear_source_content): Update.
4530 (tui_source_window_base::do_erase_source_content): Rename from
4531 tui_erase_source_content.
4532 (tui_source_window_base::show_source_content): Update.
4533 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4534 * tui/tui-source.h (struct tui_source_window)
4535 <erase_source_content>: New method.
4536 * tui/tui-disasm.h (struct tui_disasm_window)
4537 <erase_source_content>: New method.
4538
002f15c2
TT
45392019-08-15 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4542 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4543 constructor.
4544 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4545 * tui/tui-source.c (tui_set_source_content): Update.
4546 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4547
c9033fe8
TT
45482019-08-15 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4551 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4552 tui-source.c.
4553 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4554 Declare.
4555 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4556 method.
4557 (tui_source_window::maybe_update): Update.
4558
088f37dd
TT
45592019-08-15 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4562 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4563 tui-disasm.c.
4564 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4565 Declare.
4566 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4567 method.
4568 (tui_disasm_window::maybe_update): Update.
4569
a54700c6
TT
45702019-08-15 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-winsource.h (struct tui_source_window_base)
4573 <maybe_update>: Declare.
4574 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4575 method.
4576 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4577 Declare.
4578 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4579 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4580 Declare.
4581 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4582
e2a678a5
TT
45832019-08-15 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4586
f2dda477
TT
45872019-08-15 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-wingeneral.c: Include tui-stack.h.
4590 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4591 (struct tui_locator_window): Move from tui-data.h.
4592 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4593 (tui_initialize_static_data): Move from tui-data.c.
4594 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4595 (struct tui_locator_window): Move to tui-stack.c.
4596 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4597 (tui_initialize_static_data): Move to tui-stack.c.
4598
ed4a1084
TT
45992019-08-15 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-layout.c (show_source_disasm_command)
4602 (show_source_or_disasm_and_command): Use make_visible method, not
4603 tui_make_window.
4604 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4605 Remove.
4606
65962b20
TT
46072019-08-15 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-wingeneral.h (tui_make_window): Update.
4610 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4611 parameter.
4612 (tui_gen_win_info::make_visible): Update.
4613 * tui/tui-regs.c (tui_data_window::display_registers_from):
4614 Update.
4615 * tui/tui-layout.c (show_source_disasm_command)
4616 (show_source_or_disasm_and_command): Update.
4617 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4618 (enum tui_box): Remove.
4619 (struct tui_win_info) <can_box>: New method.
4620 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4621 method.
4622
2208ee91
TV
46232019-08-15 Tom de Vries <tdevries@suse.de>
4624
4625 * linux-nat-trad.c: Include gdbarch.h.
4626
75faf5c4
AH
46272019-08-14 Alan Hayward <alan.hayward@arm.com>
4628
4629 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4630 register sizes.
4631
b1c896b3
TT
46322019-08-14 Tom Tromey <tromey@adacore.com>
4633
4634 * darwin-nat.c: Include gdbarch.h.
4635 * darwin-nat-info.c: Include gdbarch.h.
4636
6405cd73
TT
46372019-08-13 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4640 Remove.
4641 * tui/tui-data.c (tui_initialize_static_data): Update.
4642
5216580d
TT
46432019-08-13 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-winsource.h (struct tui_exec_info_window)
4646 <~tui_exec_info_window, maybe_allocate_content, get_content,
4647 m_content>: Remove.
4648 (struct tui_source_window_base) <set_exec_info_content,
4649 show_exec_info_content>: Don't declare.
4650 * tui/tui-winsource.c
4651 (tui_exec_info_window::maybe_allocate_content): Remove.
4652 (tui_source_window_base::update_exec_info): Rename from
4653 set_exec_info_content.
4654 (tui_source_window_base::show_exec_info_content)
4655 (tui_source_window_base::update_exec_info): Remove.
4656
93858ad3
TT
46572019-08-13 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4660 declare.
4661 * tui/tui-winsource.c (tui_update_source_window_as_is)
4662 (tui_update_source_windows_with_addr, tui_erase_source_content):
4663 Update.
4664 (tui_clear_exec_info_content): Remove.
4665
e321e7ce
TT
46662019-08-13 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4669 declare.
4670 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4671 call tui_erase_exec_info_content.
4672 (tui_clear_exec_info_content): Rename from
4673 tui_erase_exec_info_content.
4674 (tui_clear_exec_info_content): Delete.
4675
8270ac62
TT
46762019-08-13 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-winsource.h (struct tui_source_window_base)
4679 <show_exec_info_content>: Declare.
4680 (tui_show_exec_info_content): Don't declare.
4681 * tui/tui-winsource.c
4682 (tui_source_window_base::show_exec_info_content): Rename from
4683 tui_show_exec_info_content.
4684 (tui_source_window_base::update_exec_info): Update.
4685
7b56485d
TT
46862019-08-13 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4689 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4690 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4691 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4692 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4693 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4694 ... here.
4695
7ba913dc
TT
46962019-08-13 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-winsource.h (struct tui_source_window_base)
4699 <update_exec_info>: Declare.
4700 (tui_update_exec_info): Don't declare.
4701 * tui/tui-winsource.c (tui_update_source_window_as_is)
4702 (tui_source_window_base::refresh_all)
4703 (tui_update_all_breakpoint_info): Update.
4704 (tui_source_window_base::update_exec_info): Rename from
4705 tui_update_exec_info.
4706 * tui/tui-stack.c (tui_show_frame_info): Update.
4707
37a4a131
TT
47082019-08-13 Tom Tromey <tom@tromey.com>
4709
4710 * tui/tui-winsource.h (struct tui_source_window_base)
4711 <set_exec_info_content>: Declare.
4712 (tui_set_exec_info_content): Don't declare.
4713 * tui/tui-winsource.c
4714 (tui_source_window_base::set_exec_info_content): Rename from
4715 tui_set_exec_info_content.
4716 (tui_update_exec_info): Update.
4717
0bd27e07
TT
47182019-08-13 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-winsource.h (struct tui_source_window_base)
4721 <show_source_content>: Declare.
4722 (tui_show_source_content): Don't declare.
4723 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4724 (tui_source_window_base::show_source_content): Rename from
4725 tui_show_source_content.
4726 (tui_source_window_base::refresh_all): Update.
4727 * tui/tui-layout.c (show_source_disasm_command)
4728 (show_source_or_disasm_and_command): Update.
4729
b4ef5aeb
TT
47302019-08-13 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-winsource.c (tui_erase_source_content)
4733 (tui_show_source_content, tui_source_window_base::refresh_all):
4734 Update.
4735 * tui/tui-wingeneral.h
4736 (tui_check_and_display_highlight_if_needed): Don't declare.
4737 * tui/tui-wingeneral.c
4738 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4739 check_and_display_highlight_if_needed.
4740 * tui/tui-win.c (tui_rehighlight_all)
4741 (tui_win_info::make_visible_with_new_height): Update.
4742 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4743 (tui_data_window::erase_data_content)
4744 (tui_data_window::display_all_data): Update.
4745 * tui/tui-data.h (struct tui_win_info)
4746 <check_and_display_highlight_if_needed>: Declare.
4747
fede5273
TT
47482019-08-13 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui-win.c (tui_resize_all): Call
4751 tui_delete_invisible_windows.
4752 * tui/tui-layout.c (show_layout): Call
4753 tui_delete_invisible_windows.
4754 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4755 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4756
22c3f490
TT
47572019-08-13 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4760 tui_add_win_to_layout.
4761
16cb7910
TT
47622019-08-13 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4765 * tui/tui-layout.c (tui_default_win_height): Now static.
4766
cc0c3ffb
TT
47672019-08-13 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4770 single switch.
4771 (show_source_disasm_command, show_source_or_disasm_and_command):
4772 Don't check current layout.
4773
3f3ffe54
TT
47742019-08-13 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-wingeneral.c (make_all_visible): Remove.
4777 (tui_make_all_invisible): Simplify.
4778 * tui/tui-layout.c (tui_make_all_invisible): Move from
4779 tui-wingeneral.c; simplify.
4780 (show_layout): Hoist call to tui_make_all_invisible.
4781 (show_data): Don't call tui_make_all_invisible.
4782
69258091
TT
47832019-08-13 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4786 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4787
62cf57fe
TT
47882019-08-13 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4791 tui-data.c.
4792 (show_source_disasm_command, show_data)
4793 (show_source_or_disasm_and_command): Don't use
4794 tui_set_current_layout_to.
4795 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4796 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4797 tui-layout.c.
4798 (tui_set_current_layout_to): Remove.
4799
2afade5d
TT
48002019-08-13 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-layout.c (tui_set_layout): Update.
4803 * tui/tui-data.h (struct tui_layout_def): Remove.
4804 (tui_layout_def): Don't declare.
4805 * tui/tui-data.c (layout_def): Remove.
4806 (tui_layout_def): Remove.
4807
a3504e96
TT
48082019-08-13 Tom Tromey <tom@tromey.com>
4809
4810 * tui/tui-winsource.h (struct tui_source_window_base)
4811 <clear_detail>: No longer "override".
4812 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4813 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4814 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4815 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4816 Remove.
4817 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4818
29c92911
TT
48192019-08-13 Tom Tromey <tromey@adacore.com>
4820
4821 * tracepoint.c: Don't include readline.h or history.h.
4822
86c6b807
TT
48232019-08-12 Tom Tromey <tom@tromey.com>
4824
4825 * configure: Rebuild.
4826 * configure.ac: Check for readline 7.
4827 * NEWS: Mention readline 7 requirement.
4828 * README: Update.
4829
5db2718c
TT
48302019-08-12 Tom Tromey <tom@tromey.com>
4831
4832 * mingw-hdep.c (gdb_select): Remove readline hack.
4833
dac36daf
PFC
48342019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4835
4836 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4837 when the function fails.
4838
1022c627
AA
48392019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4840
4841 * s390-tdep.c (s390_type_align): New function.
4842 (s390_gdbarch_init): Set it as type_align gdbarch method.
4843
eba4caf2
TV
48442019-08-09 Tom de Vries <tdevries@suse.de>
4845
4846 PR gdb/24591
4847 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4848 pc_low with relocation offset.
4849
123cd851
TT
48502019-08-07 Tom Tromey <tromey@adacore.com>
4851
4852 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4853 (print_frame_args): Update.
4854 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4855 Update.
4856 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4857 * frame.h (struct frame_arg): Add initializers.
4858 <error>: Now a unique_xmalloc_ptr.
4859
3d31bc39
AH
48602019-08-07 Alan Hayward <alan.hayward@arm.com>
4861
4862 * NEWS: Expand the Pointer Authentication entry.
4863 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4864 (aarch64_frame_unmask_lr): ... to this.
4865 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4866 Call aarch64_frame_unmask_lr.
4867 * frame.c (struct frame_info): Add "masked" variable.
4868 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4869 (fprint_frame): Check for masked pc.
4870 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4871 declarations.
4872 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4873 * stack.c (print_frame): Check for masked pc.
4874
0cf9feb9
TT
48752019-08-06 Tom Tromey <tom@tromey.com>
4876
4877 * stabsread.c (patch_block_stabs, read_one_struct_field)
4878 (read_enum_type): Use obstack_strndup.
4879 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4880 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4881 * dwarf2read.c (guess_full_die_structure_name)
4882 (anonymous_struct_prefix): Use obstack_strndup.
4883 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4884 * c-exp.y (yylex): Use obstack_strndup.
4885 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4886 (write_var_or_type): Use obstack_strndup.
4887
efba19b0
TT
48882019-08-06 Tom Tromey <tom@tromey.com>
4889
4890 * symfile.c (reread_symbols): Use obstack_strdup.
4891 * stabsread.c (read_type): Use obstack_strdup.
4892 * gdb_obstack.h (obstack_strdup): New overload.
4893 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4894 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4895 (dwarf2_canonicalize_name): Use obstack_strdup.
4896 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4897 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4898 Use obstack_strdup.
4899
f25102f7
TT
49002019-08-06 Tom Tromey <tom@tromey.com>
4901
4902 * gdb_obstack.h (obstack_strdup): Define.
4903 * gdb_obstack.c (obstack_strdup): Don't define.
4904
021887d8
TT
49052019-08-06 Tom Tromey <tom@tromey.com>
4906
4907 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4908 obstack_strdup.
4909 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4910 obstack_strdup.
4911 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4912 * stabsread.c (common_block_start): Use obstack_strdup.
4913 * objfiles.c (set_objfile_main_name, objfile): Use
4914 obstack_strdup.
4915 * namespace.c (add_using_directive): Use obstack_strdup.
4916 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4917 * jit.c (finalize_symtab): Use obstack_strdup.
4918 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4919 (guess_partial_die_structure_name, partial_die_info::fixup)
4920 (dwarf2_name): Use obstack_strdup.
4921 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4922 obstack_strdup.
4923 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4924 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4925 obstack_strdup.
4926 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4927
d2834edc
PW
49282019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4929
4930 * unittests/help-doc-selftests.c: New file.
4931 * Makefile.in: Add the new file.
4932
590042fc
PW
49332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4934
4935 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4936 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4937 the full first line, except when FOR_VALUE_PREFIX. In this case,
4938 the trailing '.' is not output, and the first character is uppercased.
4939 (print_help_for_command): Update call to print_doc_line.
4940 (print_doc_of_command): Likewise.
4941 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4942 * cli/cli-option.c (append_indented_doc): Do not append newline.
4943 (build_help_option): Append newline after first appended_indented_doc
4944 only if a second call is done.
4945 (build_help): Append 2 new lines before each option, except the first
4946 one.
4947 * compile/compile.c (_initialize_compile): Add new lines after
4948 %OPTIONS%, when not at the end of the help.
4949 Change help doc or code
4950 producing the help doc to respect the invariants.
4951 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4952 Also removed the new line after 'Options:', as all other commands
4953 do not put an empty line between 'Options:' and the first option.
4954 * printcmd.c (_initialize_printcmd): Likewise.
4955 * stack.c (_initialize_stack): Likewise.
4956 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4957 incorrectly telling COMMAND is optional.
4958 * ada-lang.c (_initialize_ada_language): Change help doc or code
4959 producing the help doc to respect the invariants.
4960 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4961 * breakpoint.c (_initialize_breakpoint): Likewise.
4962 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4963 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4964 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4965 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4966 _initialize_cli_style): Likewise.
4967 * corelow.c (core_target_info): Likewise.
4968 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4969 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4970 * filesystem.c (_initialize_filesystem): Likewise.
4971 * frame.c (_initialize_frame): Likewise.
4972 * gnu-nat.c (add_task_commands): Likewise.
4973 * infcall.c (_initialize_infcall): Likewise.
4974 * infcmd.c (_initialize_infcmd): Likewise.
4975 * interps.c (_initialize_interpreter): Likewise.
4976 * language.c (_initialize_language): Likewise.
4977 * linux-fork.c (_initialize_linux_fork): Likewise.
4978 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4979 * maint.c (_initialize_maint_cmds): Likewise.
4980 * memattr.c (_initialize_mem): Likewise.
4981 * printcmd.c (_initialize_printcmd): Likewise.
4982 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4983 _RegEx): Likewise.
4984 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4985 * record-btrace.c (_initialize_record_btrace): Likewise.
4986 * record-full.c (_initialize_record_full): Likewise.
4987 * record.c (_initialize_record): Likewise.
4988 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4989 * regcache.c (_initialize_regcache): Likewise.
4990 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4991 _initialize_remote): Likewise.
4992 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4993 * serial.c (_initialize_serial): Likewise.
4994 * skip.c (_initialize_step_skip): Likewise.
4995 * source.c (_initialize_source): Likewise.
4996 * stack.c (_initialize_stack): Likewise.
4997 * symfile.c (_initialize_symfile): Likewise.
4998 * symtab.c (_initialize_symtab): Likewise.
4999 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5000 * top.c (init_main): Likewise.
5001 * tracefile-tfile.c (tfile_target_info): Likewise.
5002 * tracepoint.c (_initialize_tracepoint): Likewise.
5003 * tui/tui-win.c (_initialize_tui_win): Likewise.
5004 * utils.c (add_internal_problem_command): Likewise.
5005 * valprint.c (value_print_option_defs): Likewise.
5006
404f2902
FCE
50072019-08-06 Frank Ch. Eigler <fche@redhat.com>
5008
5009 PR build/24886
5010 * configure.ac: Drop enable-libmcheck support.
5011 * configure, config.in: Rebuild.
5012 * libmcheck.m4: Remove.
5013 * acinclude.m4: Don't include it.
5014 * Makefile.in: Don't distribute it.
5015 * top.c (print_gdb_configuration): Don't mention it.
5016
046bebe1
TT
50172019-08-06 Tom Tromey <tom@tromey.com>
5018
5019 * utils.c (set_output_style): Sometimes pass stream to
5020 emit_style_escape.
5021 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5022 * record-btrace.c (btrace_insn_history): Update.
5023 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5024 method.
5025 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5026 Update initializers.
5027 <m_uiout>: New field.
5028 <m_di>: Move lower.
5029 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5030 Remove "uiout" parameter.
5031 (dump_insns): Update.
5032 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5033 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5034
ddbcedf5
CB
50352019-08-06 Christian Biesinger <cbiesinger@google.com>
5036
5037 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5038 (error_in_psymtab_expansion): Likewise.
5039 (lookup_symbol_via_quick_fns): Likewise.
5040 (basic_lookup_transparent_type_quick): Likewise.
5041 (basic_lookup_transparent_type_1): Likewise.
5042
b08b16c8
TT
50432019-08-06 Tom Tromey <tromey@adacore.com>
5044
5045 * source.c (last_source_error): Now bool.
5046 (print_source_lines_base): Make "noprint" bool. Only open
5047 source file when last_source_visited changes.
5048
cb44333d
TT
50492019-08-06 Tom Tromey <tromey@adacore.com>
5050
5051 * annotate.c (annotate_source_line): Use g_source_cache.
5052 * source-cache.c (source_cache::get_plain_source_lines): Change
5053 parameters. Populate m_offset_cache.
5054 (source_cache::ensure): New method.
5055 (source_cache::get_line_charpos): New method.
5056 (extract_lines): Move lower. Change parameters.
5057 (source_cache::get_source_lines): Move lower.
5058 * source-cache.h (class source_cache): Update comment.
5059 <get_line_charpos>: New method.
5060 <get_source_lines>: Update comment.
5061 <clear>: Clear m_offset_cache.
5062 <get_plain_source_lines>: Change parameters.
5063 <ensure>: New method
5064 <m_offset_cache>: New member.
5065 * source.c (forget_cached_source_info_for_objfile): Update.
5066 (info_source_command): Use g_source_cache.
5067 (find_source_lines, open_source_file_with_line_charpos): Remove.
5068 (print_source_lines_base, search_command_helper): Use g_source_cache.
5069 * source.h (open_source_file_with_line_charpos): Don't declare.
5070 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5071 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5072 Use g_source_cache.
5073
872dceaa
TT
50742019-08-06 Tom Tromey <tromey@adacore.com>
5075
5076 * source-cache.c (source_cache::get_plain_source_lines):
5077 Remove "first_line" and "last_line" parameters.
5078 (source_cache::get_source_lines): Cache plain text.
5079 * source-cache.h (class source_cache)
5080 <get_plain_source_lines>: Update.
5081
269249d9
TT
50822019-08-06 Tom Tromey <tromey@adacore.com>
5083
5084 * source-cache.c (extract_lines): No longer a method.
5085 Changed type of parameter. Include final newline.
5086 (selftests::extract_lines_test): New function.
5087 (_initialize_source_cache): Likewise.
5088 * source-cache.h (class source_cache)
5089 <extract_lines>: Don't declare.
5090
c0e8dcd8
TT
50912019-08-06 Tom Tromey <tromey@adacore.com>
5092
5093 * breakpoint.c (init_breakpoint_sal): Update.
5094 (breakpoint): Update.
5095 * breakpoint.h (struct breakpoint) <filter>: Now a
5096 unique_xmalloc_ptr.
5097
0b27c27d
CB
50982019-08-05 Christian Biesinger <cbiesinger@google.com>
5099
5100 * NEWS: Mention dictionary access on blocks.
5101 * python/py-block.c (blpy_getitem): New function.
5102 (block_object_as_mapping): New struct.
5103 (block_object_type): Use new struct for tp_as_mapping field.
5104
4ee94178
CB
51052019-08-05 Christian Biesinger <cbiesinger@google.com>
5106
5107 * objfiles.h (objfile): Add a comment describing partial symbols.
5108
8abfcabc
TT
51092019-08-05 Tom Tromey <tromey@adacore.com>
5110
5111 * compile/compile.c (_initialize_compile): Use _(), not N_().
5112 * thread.c (_initialize_thread): Use _(), not N_().
5113 * stack.c (_initialize_stack): Use _(), not N_().
5114 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5115
2b79f376
SM
51162019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5117
5118 * dwarf2read.c (struct dw2_symtab_iterator):
5119 <want_specific_block>: Remove.
5120 <block_index>: Change type to gdb::optional.
5121 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5122 change type of BLOCK_INDEX parameter to gdb::optional.
5123 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5124 (dw2_lookup_symbol): Don't pass argument for
5125 WANT_SPECIFIC_BLOCK.
5126 (dw2_expand_symtabs_for_function): Don't pass argument for
5127 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5128 (class dw2_debug_names_iterator)
5129 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5130 parameter, change BLOCK_INDEX type to gdb::optional.
5131 <m_want_specific_block>: Remove.
5132 <m_block_index>: Change type to gdb::optional.
5133 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5134 gdb::optional. Re-write in function of gdb::optional.
5135 (dw2_debug_names_lookup_symbol): Don't pass argument for
5136 WANT_SPECIFIC_BLOCK.
5137 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5138 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5139 BLOCK_INDEX.
5140
ae60f04e
PW
51412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5142
5143 * NEWS: Mention changes to "info sources" command.
5144
28cd9371
PW
51452019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5146
5147 * symtab.c (filename_partial_match_opts): New struct type.
5148 (struct output_source_filename_data): New members
5149 regexp, c_regexp, partial_match.
5150 (output_source_filename): Use new members to decide to print file.
5151 (info_sources_option_defs): New variable.
5152 (make_info_sources_options_def_group, print_info_sources_header,
5153 info_sources_command_completer):
5154 New functions.
5155 (info_sources_command): Read new optional arguments.
5156 (_initialize_symtab): Update info sources help.
5157
ca683e3a
AO
51582019-08-02 Alexandre Oliva <oliva@adacore.com>
5159
5160 * ada-lang.c (exception_support_info_v0): Renamed from...
5161 (default_exception_support_info): ... this. Create new
5162 definition for v1.
5163 (ada_has_this_exception_support): Look up catch_handlers_sym.
5164 (ada_exception_support_info_sniffer): Try v0 after default.
5165
f1264162
TT
51662019-08-01 Tom Tromey <tromey@adacore.com>
5167
5168 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5169 gdbarch.h.
5170
0a7b2485
CB
51712019-08-01 Christian Biesinger <cbiesinger@google.com>
5172
5173 * s12z-tdep.c: Fix include path for s12z-opc.h.
5174
c6bdbeb7
AH
51752019-08-01 Alan Hayward <alan.hayward@arm.com>
5176
5177 * NEWS: Require GNU make 3.82.
5178
a2bd7b82
TT
51792019-07-16 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5182 declare.
5183
aa3b6533
TT
51842019-07-30 Tom Tromey <tromey@adacore.com>
5185
5186 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5187
a1530dc7
KB
51882019-07-30 Kevin Buettner <kevinb@redhat.com>
5189
5190 * printcmd.c (print_address_symbolic): Print negative offsets.
5191 (build_address_symbolic): Force signed arithmetic when computing
5192 offset.
5193
2906593f
CB
51942019-07-30 Christian Biesinger <cbiesinger@google.com>
5195
5196 PR/24474: Add a function to lookup static variables.
5197 * NEWS: Mention this new function.
5198 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5199 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5200 * python/python.c (python_GdbMethods): Add new function.
5201
c620ed88
CB
52022019-07-29 Christian Biesinger <cbiesinger@google.com>
5203
5204 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5205 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5206 (objfpy_lookup_static_symbol): New function.
5207 (objfile_object_methods): Add new functions.
5208
bc4268a5
PW
52092019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5210
5211 * NEWS: Mention 'set|show print frame-info'. Mention new
5212 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5213 backtrace argument. Mention that python frame filtering code
5214 is now consistent with what 'backtrace' command prints.
5215
4b5e8d19
PW
52162019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5217
5218 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5219 comments.
5220 (print_frame_info_auto, print_frame_info_source_line,
5221 print_frame_info_location, print_frame_info_source_and_location,
5222 print_frame_info_location_and_address, print_frame_info_short_location):
5223 New declarations.
5224 (struct frame_print_options): New member print_frame_info.
5225 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5226 * stack.h (get_user_print_what_frame_info): New declaration.
5227 (frame_show_address): New declaration.
5228 * stack.c (print_frame_arguments_choices): New value 'presence'.
5229 (print_frame_info_auto, print_frame_info_source_line,
5230 print_frame_info_location, print_frame_info_source_and_location,
5231 print_frame_info_location_and_address, print_frame_info_short_location,
5232 print_frame_info_choices, print_frame_info_print_what): New definitions.
5233 (print_frame_args): Only print dots for args if print frame-arguments
5234 is 'presence'.
5235 (frame_print_option_defs): New element for "frame-info".
5236 (get_user_print_what_frame_info): New function.
5237 (frame_show_address): Make non static. Move comment to stack.h.
5238 (print_frame_info_to_print_what): New function.
5239 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5240 to decide what to print.
5241 (backtrace_command_1): Handle the new print_frame_arguments_presence
5242 value.
5243 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5244 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5245 (py_print_frame): In non-mi mode, use LOCATION as default for
5246 print_what, similarly to frame information printed directly by
5247 backtrace command. Handle frame-info user option in non MI mode.
5248
6bdfee81
KB
52492019-07-27 Kevin Buettner <kevinb@redhat.com>
5250
5251 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5252 Add case for debugging 32-bit target on 64-bit host. Revise
5253 comment.
5254
98a617f8
KB
52552019-07-27 Kevin Buettner <kevinb@redhat.com>
5256
5257 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5258 instead of find_function_entry_range_from_pc.
5259
567238c9
KB
52602019-07-27 Kevin Buettner <kevinb@redhat.com>
5261
5262 * stack.c (find_frame_funname): Remove code which preferred
5263 minsym over symtab sym in "certain pathological cases".
5264
2dc80cf8
KB
5265 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5266 parameter. Change type of "do_demangle" to bool.
5267 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5268 Pass suitable "prefer_sym_over_minsym" flag to
5269 build_address_symbolic(). Don't output "+" for negative offsets.
5270 * printcmd.c (print_address_symbolic): Update invocation of
5271 build_address_symbolic to include a "prefer_sym_over_minsym"
5272 flag.
5273 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5274 Restrict cases in which use of minimal symbol is preferred to that
5275 of a found symbol. Update comments.
5276
1aff7173
KB
5277 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5278 for entry pc when entry pc is out of range for that FDE.
5279
89b085ac
BC
52802019-07-26 Brian Callahan <bcallah@openbsd.org>
5281
5282 PR gdb/24839:
5283 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5284 type.
5285
f32feb4a
CB
52862019-07-25 Christian Biesinger <cbiesinger@google.com>
5287
5288 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5289 this function's Python signature.
5290
5291
52922019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5293
5294 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5295 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5296 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5297 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5298 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5299
5300
c54e4253
YS
53012019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5302
5303 * h8300-tdep.c (h8300_register_name_common): New.
5304 h8300_register_name): Use h8300_register_name_common.
5305 (h8300s_register_name): Likewise.
5306 (h8300sx_register_name): Likewise.
5307 (h8300h_register_nam): New.
5308 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5309
5310
40eadf04
SP
53112019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5312
5313 * arm-tdep.c (arm_skip_cmse_entry): New function.
5314 (arm_is_sgstubs_section): New function.
5315 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5316
bfa2a36d
TT
53172019-07-22 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5320 Don't self-assign.
5321
a8e9d247
AB
53222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5325 type_print.
5326
eb86c5e2
AB
53272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5330 so that GDB doesn't match any msymbols when searching in the
5331 TYPES_DOMAIN.
5332 (print_symbol_info): Print using typedef_print or type_print based
5333 on the type of the symbol. Add updated FIXME comment moved from...
5334 (_initialize_symtab): ... move and update FIXME comment to above.
5335
a8eab7c6
AB
53362019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * NEWS: Mention adding -q option to "info types".
5339 * symtab.c (struct info_types_options): New struct.
5340 (info_types_options_defs): New variable.
5341 (make_info_types_options_def_group): New function.
5342 (info_types_command): Use gdb::option framework to parse options.
5343 (info_types_command_completer): New function.
5344 (_initialize_symtab): Extend the help text on "info types" and
5345 register command completer.
5346
b4603c34
CB
53472019-07-21 Christian Biesinger <cbiesinger@google.com>
5348
5349 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5350 (lookup_symbol_in_objfile): Change int to block_enum and add a
5351 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5352
c8cdc1e0
CB
53532019-07-20 Christian Biesinger <cbiesinger@google.com>
5354
5355 * MAINTAINERS (Write After Approval): Add self.
5356
01e175fe
AB
53572019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5358
5359 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5360 instruction to the dummy code region.
5361
56f79b63
TT
53622019-07-19 Tom Tromey <tromey@adacore.com>
5363
5364 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5365 (ARGSUSED, PARAMS, __func__): Remove rules.
5366
4c5aa8e0
AH
53672019-07-19 Alan Hayward <alan.hayward@arm.com>
5368
5369 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5370 * features/arm/arm-with-iwmmxt.c: Remove.
5371 * features/arm/arm-with-iwmmxt.xml: Remove.
5372 * features/arm/arm-with-m-fpa-layout.c: Remove.
5373 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5374 * features/arm/arm-with-m-vfp-d16.c: Remove.
5375 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5376 * features/arm/arm-with-m.c: Remove.
5377 * features/arm/arm-with-m.xml: Remove.
5378 * features/arm/arm-with-neon.c: Remove.
5379 * features/arm/arm-with-neon.xml: Remove.
5380 * features/arm/arm-with-vfpv2.c: Remove.
5381 * features/arm/arm-with-vfpv2.xml: Remove.
5382 * features/arm/arm-with-vfpv3.c: Remove.
5383 * features/arm/arm-with-vfpv3.xml: Remove.
5384
f42b2617
AH
53852019-07-19 Alan Hayward <alan.hayward@arm.com>
5386
5387 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5388
f29ec966
AH
53892019-07-19 Alan Hayward <alan.hayward@arm.com>
5390
5391 * arch/aarch32.c (aarch32_create_target_description): Create
5392 target descriptions using features.
5393 * arch/arm.c (arm_create_target_description)
5394 (arm_create_mprofile_target_description): Likewise.
5395 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5396
d105cce5
AH
53972019-07-19 Alan Hayward <alan.hayward@arm.com>
5398
5399 * Makefile.in: Add new files.
5400 * aarch32-tdep.c: New file.
5401 * aarch32-tdep.h: New file.
5402 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5403 Call aarch32_read_description.
5404 * arch/aarch32.c: New file.
5405 * arch/aarch32.h: New file.
5406 * arch/arm.c (arm_create_target_description)
5407 (arm_create_mprofile_target_description): New function.
5408 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5409 (arm_create_target_description)
5410 (arm_create_mprofile_target_description): New declaration.
5411 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5412 read_description functions.
5413 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5414 Likewise.
5415 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5416 * arm-tdep.c (tdesc_arm_list): New variable.
5417 (arm_register_g_packet_guesses): Call create description functions.
5418 (arm_read_description) (arm_read_mprofile_description): New
5419 function.
5420 * arm-tdep.h (arm_read_description)
5421 (arm_read_mprofile_description): Add declaration.
5422 * configure.tgt: Add new files.
5423
afe09f0b
GL
54242019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5425
5426 * top.c (new_ui_command): Open specified terminal just once.
5427
cd215b2e
TT
54282019-07-18 Tom Tromey <tromey@adacore.com>
5429
5430 * symtab.c (main_name): Constify return type.
5431 * symfile.c (set_initial_language): Update.
5432 * symtab.h (main_name): Constify return type.
5433
d8f68fcb
TT
54342019-07-17 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-winsource.c (tui_update_source_window)
5437 (tui_update_source_window_as_is)
5438 (tui_update_source_windows_with_line): Remove return.
5439 * tui/tui-disasm.c (tui_show_disassem)
5440 (tui_show_disassem_and_update_source): Remove return.
5441 * tui/tui.c (tui_reset): Remove return.
5442 * tui/tui-wingeneral.c
5443 (tui_check_and_display_highlight_if_needed): Remove return.
5444
ca5af91e
TT
54452019-07-17 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5448
5104fe36
TT
54492019-07-17 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui-winsource.h (struct tui_exec_info_window)
5452 (struct tui_source_window_base): Move from tui-data.h.
5453 * tui/tui-winsource.c: Move many method definitions from
5454 elsewhere. Remove "structuring" comments.
5455 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5456 (tui_source_window_base::refresh_window): Move to
5457 tui-winsource.c.
5458 * tui/tui-win.c (tui_source_window_base::refresh_all)
5459 (tui_source_window_base::update_tab_width)
5460 (tui_source_window_base::set_new_height)
5461 (tui_source_window_base::do_make_visible_with_new_height): Move to
5462 tui-winsource.c.
5463 * tui/tui-source.h: Update.
5464 * tui/tui-source.c (tui_source_window_base::reset): Move to
5465 tui-winsource.c.
5466 * tui/tui-disasm.h: Update.
5467 * tui/tui-data.h (struct tui_exec_info_window): Move to
5468 tui-winsource.h.
5469 (struct tui_source_window_base): Likewise.
5470 * tui/tui-data.c (tui_source_window_base::clear_detail)
5471 (tui_source_window_base, ~tui_source_window_base): Move to
5472 tui-winsource.c.
5473
daa15dde
TT
54742019-07-17 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-win.c (tui_resize_all)
5477 (tui_source_window_base::update_tab_width)
5478 (tui_adjust_win_heights): Update.
5479 (tui_win_info::make_invisible_and_set_new_height): Rename from
5480 make_invisible_and_set_new_height.
5481 * tui/tui-data.h (struct tui_win_info)
5482 <make_invisible_and_set_new_height>: New method.
5483
bfad4537
TT
54842019-07-17 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui.c: Update.
5487 * tui/tui-source.h (struct tui_source_window): Move from
5488 tui-data.h.
5489 * tui/tui-layout.c: Update.
5490 * tui/tui-disasm.c: Update.
5491 * tui/tui-data.h (struct tui_source_window): Move to
5492 tui-source.h.
5493
88f7e873
TT
54942019-07-17 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5497 tui-data.h.
5498 * tui/tui-data.h (struct tui_disasm_window): Move to
5499 tui-disasm.h.
5500
96bd6233
TT
55012019-07-17 Tom Tromey <tom@tromey.com>
5502
5503 * tui/tui-regs.h (struct tui_data_item_window): Move from
5504 tui-data.h.
5505 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5506 * tui/tui-data.h (struct tui_data_item_window): Move to
5507 tui-regs.h.
5508 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5509
ce38393b
TT
55102019-07-17 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui.c: Update.
5513 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5514 (tui_cmd_window::max_height): Move to tui-command.c.
5515 * tui/tui-layout.c: Update.
5516 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5517 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5518 tui-command.c.
5519 * tui/tui-command.h (struct tui_cmd_window): Move from
5520 tui-data.h.
5521 * tui/tui-command.c: Remove "structuring" comments.
5522 (tui_cmd_window::clear_detail)
5523 (tui_cmd_window::do_make_visible_with_new_height)
5524 (tui_cmd_window::max_height): Move from elsewhere.
5525
2d8b51cb
TT
55262019-07-17 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5529 Now static.
5530 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5531 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5532
18ab23af
TT
55332019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui.c: Update.
5536 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5537 tui-regs.c.
5538 * tui/tui-windata.h: Remove file.
5539 * tui/tui-windata.c: Remove file.
5540 * tui/tui-win.c (tui_data_window::set_new_height)
5541 (tui_data_window::do_make_visible_with_new_height): Move to
5542 tui-regs.c.
5543 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5544 * tui/tui-regs.c: Remove "structuring" comments.
5545 (tui_data_window::first_data_item_displayed)
5546 (tui_data_window::delete_data_content_windows)
5547 (tui_data_window::erase_data_content)
5548 (tui_data_window::display_all_data)
5549 (tui_data_window::refresh_all)
5550 (tui_data_window::do_scroll_vertical)
5551 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5552 (tui_data_window::do_make_visible_with_new_height)
5553 (tui_data_window::refresh_window): Move from elsewhere.
5554 (_initialize_tui_regs): Move to end of file.
5555 * tui/tui-layout.c: Update.
5556 * tui/tui-hooks.c: Update.
5557 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5558 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5559 tui-regs.c.
5560 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5561
88b7e7cc
TT
55622019-07-17 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5565 seen.
5566
0fcd3711
TT
55672019-07-17 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-win.c (tui_source_window_base::set_new_height)
5570 (tui_source_window_base::do_make_visible_with_new_height): Use
5571 m_has_locator field directly.
5572 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5573 method.
5574 (struct tui_source_window_base) <has_locator>: Likewise.
5575
4a38112d
TT
55762019-07-17 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5579 Don't declare.
5580 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5581 Remove.
5582 * tui/tui-win.c (tui_source_window_base::set_new_height)
5583 (tui_source_window_base::set_new_height)
5584 (make_invisible_and_set_new_height)
5585 (tui_source_window_base::do_make_visible_with_new_height)
5586 (tui_source_window_base::do_make_visible_with_new_height):
5587 Update.
5588 * tui/tui-layout.c (show_source_disasm_command, show_data)
5589 (show_source_or_disasm_and_command): Update.
5590 * tui/tui-layout.c (show_layout): Update.
5591
09129226
TT
55922019-07-17 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-layout.c (make_data_window): Remove.
5595 (show_data): Unify creation and re-initialization cases.
5596
4a8a5e84
TT
55972019-07-17 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-layout.c (make_source_window, make_disasm_window):
5600 Remove.
5601 (show_data): Unify creation and re-initialization cases.
5602
76d2be8e
TT
56032019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-layout.c (make_command_window): Remove.
5606 (show_source_disasm_command, show_source_or_disasm_and_command):
5607 Unify creation and re-initialization cases.
5608
890b8bde
TT
56092019-07-17 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5612 creation and re-initialization cases.
5613
2cdfa113
TT
56142019-07-17 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-regs.c (tui_get_register): Return void.
5617
8e3cfd09
TT
56182019-07-17 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5621 Simplify.
5622
f4e04977
TT
56232019-07-17 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5626 resetting.
5627
0379b883
TT
56282019-07-17 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5631 * tui/tui-regs.c (tui_reg_layout): New function.
5632 (tui_show_registers, tui_reg_command): Use it.
5633 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5634 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5635 parameters.
5636 (tui_layout_command): Remove.
5637
b7fbad91
TT
56382019-07-17 Tom Tromey <tom@tromey.com>
5639
5640 * tui/tui-layout.h (tui/tui-layout): Return void.
5641 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5642
4e1e56b9
TT
56432019-07-17 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-layout.c (show_source_disasm_command, show_data):
5646 Update.
5647 (reset_locator): Remove.
5648 (show_source_or_disasm_and_command): Update.
5649
1e0c09ba
TT
56502019-07-17 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-source.c (tui_source_window_base::reset): Remove
5653 win_type parameter.
5654 * tui/tui-layout.c (make_command_window, make_source_window)
5655 (make_disasm_window, make_data_window)
5656 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5657 (reset_locator, show_source_or_disasm_and_command): Update.
5658 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5659 win_type parameter.
5660 (struct tui_source_window_base) <reset>: Likewise.
5661
1bf605de
TT
56622019-07-17 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-layout.c (show_source_disasm_command): Use
5665 reset_locator.
5666 (reset_locator): New function.
5667 (init_and_make_win): Remove.
5668 (show_source_or_disasm_and_command): Use reset_locator.
5669
098f9ed4
TT
56702019-07-17 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5673 condition.
5674 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5675 Remove condition.
5676 * tui/tui-source.c (tui_source_window_base::reset): New method.
5677 * tui/tui-layout.c (make_command_window): Don't call
5678 init_and_make_win.
5679 (make_source_window, make_disasm_window): Don't call
5680 make_source_or_disasm_window.
5681 (make_data_window): Don't call init_and_make_win. Change calling
5682 convention.
5683 (show_source_disasm_command, show_data): Simplify.
5684 (make_source_or_disasm_window): Remove.
5685 (show_source_or_disasm_and_command): Simplify.
5686 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5687 (struct tui_source_window_base) <reset>: Likewise.
5688 <execution_info>: Remove initializer.
5689 * tui/tui-data.c (tui_source_window_base): Initialize
5690 execution_info.
5691
80110957
TT
56922019-07-17 Tom Tromey <tom@tromey.com>
5693
5694 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5695 variable.
5696
cf82af05
TT
56972019-07-17 Tom Tromey <tom@tromey.com>
5698
5699 * tui/tui.c (tui_rl_other_window): Update.
5700 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5701 superclass method first. Always iterate over regs_content.
5702 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5703 method.
5704 * tui/tui-win.c (tui_set_focus_command): Update.
5705
01aeb396
TT
57062019-07-17 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-win.c (tui_set_focus_command): Rename from
5709 tui_set_focus. Call tui_enable.
5710 (tui_set_focus_command): Remove.
5711
fd6c75ee
TT
57122019-07-17 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5715 refresh_window.
5716 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5717 touchwin.
5718 (tui_data_window::refresh_window): Call refresh_window on data
5719 items. Always call superclass refresh_window.
5720 (tui_win_info::refresh): Remove.
5721 (tui_source_window_base::refresh_window): Update.
5722 (tui_refresh_all): Update.
5723 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5724 refresh_window.
5725 (show_source_or_disasm_and_command): Likewise.
5726 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5727 (struct tui_source_window_base) <refresh>: Likewise.
5728
f6cc34a9
TT
57292019-07-17 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-winsource.c (tui_clear_source_content)
5732 (tui_show_source_content): Update.
5733 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5734 whether content is empty.
5735 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5736 Remove.
5737
f31ec9af
TT
57382019-07-17 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5741 window's contents.
5742 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5743 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5744
d1b6f1e5
TT
57452019-07-17 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5748 (struct tui_data_item_window): Update.
5749
d9743a13
TT
57502019-07-17 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5753 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5754 defines.
5755
caf0bc4e
TT
57562019-07-17 Tom Tromey <tom@tromey.com>
5757
5758 * tui/tui-winsource.h (tui_erase_source_content)
5759 (tui_clear_source_content): Remove "display_prompt" parameter.
5760 * tui/tui-winsource.c (tui_update_source_window_as_is)
5761 (tui_update_source_windows_with_addr): Update.
5762 (tui_clear_source_content): Remove "display_prompt" parameter.
5763 (tui_erase_source_content): Likewise. Simplify.
5764 (tui_show_source_content): Update.
5765 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5766 * tui/tui-stack.c (tui_show_frame_info): Update.
5767 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5768 Remove defines.
5769
9d391078
TT
57702019-07-17 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5773 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5774 parameter.
5775 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5776 parameter.
5777
a38da35d
TT
57782019-07-17 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui-winsource.c (tui_clear_source_content)
5781 (tui_show_source_content, tui_show_exec_info_content)
5782 (tui_clear_exec_info_content): Update.
5783 * tui/tui-stack.c (tui_show_locator_content): Update.
5784 (tui_show_frame_info): Update.
5785 * tui/tui-source.h (tui_source_window): Don't declare.
5786 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5787 from tui_source_is_displayed.
5788 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5789 Remove field.
5790 (struct tui_source_window_base) <content_in_use>: New field. Now
5791 bool.
5792 (struct tui_source_window) <showing_source_p>: New method.
5793 (TUI_SRC_WIN): Change cast.
5794 * tui/tui-data.c (tui_initialize_static_data): Update.
5795
c2cd8994
TT
57962019-07-17 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5799 location_matches_p.
5800 * tui/tui-source.c (tui_source_window::location_matches_p): New
5801 method.
5802 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5803 method.
5804 * tui/tui-data.h (struct tui_source_window_base)
5805 <location_matches_p>: New method.
5806 (struct tui_source_window, struct tui_disasm_window)
5807 <location_matches_p>: Likewise.
5808
4dde7b34
TT
58092019-07-17 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-win.c (tui_set_win_height_command): Rename from
5812 tui_set_win_height.
5813 (tui_set_win_height_command): Remove.
5814
b73dd877
TT
58152019-07-17 Tom Tromey <tom@tromey.com>
5816
5817 * tui/tui-source.c (tui_source_window): New constructor. Add
5818 observer.
5819 (~tui_source_window): New destructor.
5820 (tui_source_window::style_changed): New method.
5821 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5822 (tui_attach_detach_observers): Update.
5823 * tui/tui-data.h (struct tui_source_window): Make constructor not
5824 inline. Add destructor.
5825 (struct tui_source_window) <style_changed>: New method.
5826 <m_observable>: New member.
5827
ae2b5380
TT
58282019-07-17 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5831 * tui/tui-win.c (tui_resize_all): Fix typo.
5832
1ce3e844
TT
58332019-07-17 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5836 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5837 (tui_refresh_all): Remove "list" parameter. Use foreach.
5838 * tui/tui-win.c (window_name_completer): Use foreach.
5839 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5840 (update_tab_width): Likewise.
5841 * tui/tui-layout.c (show_layout): Update.
5842 * tui/tui-data.h (class tui_window_iterator): New.
5843 (struct all_tui_windows): New.
5844 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5845
fe3eaf1c
TT
58462019-07-17 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5849 parameter. Don't reference globals.
5850 (tui_reg_command): Update.
5851
368c1354
TT
58522019-07-17 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-regs.c (tui_show_registers): Simplify.
5855
e80cd204
TT
58562019-07-17 Tom Tromey <tom@tromey.com>
5857
5858 * tui/tui-regs.c (tui_show_registers): Update.
5859 (tui_show_register_group): Add win_info parameter.
5860
aca2dd16
TT
58612019-07-17 Tom Tromey <tom@tromey.com>
5862
5863 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5864 Rename from tui_display_reg_element_at_line.
5865 (tui_data_window::display_registers_from_line): Update.
5866 * tui/tui-data.h (struct tui_data_window)
5867 <display_reg_element_at_line>: New method.
5868
517e9505
TT
58692019-07-17 Tom Tromey <tom@tromey.com>
5870
5871 * tui/tui-regs.h (tui_display_registers_from)
5872 (tui_display_registers_from_line): Don't declare.
5873 * tui/tui-windata.c (tui_data_window::display_all_data)
5874 (tui_data_window::refresh_all)
5875 (tui_data_window::do_scroll_vertical): Update.
5876 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5877 from tui_display_registers_from.
5878 (tui_display_reg_element_at_line): Update.
5879 (tui_data_window::display_registers_from_line): Rename from
5880 tui_display_registers_from_line.
5881 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5882 display_registers_from_line>: New methods.
5883
f76d8b19
TT
58842019-07-17 Tom Tromey <tom@tromey.com>
5885
5886 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5887 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5888 from tui_erase_data_content.
5889 (tui_data_window::display_all_data)
5890 (tui_data_window::refresh_all)
5891 (tui_data_window::do_scroll_vertical): Update.
5892 * tui/tui-regs.c (tui_show_registers): Update.
5893 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5894 New method.
5895
b4094625
TT
58962019-07-17 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5899 declare.
5900 * tui/tui-windata.c
5901 (tui_data_window::delete_data_content_windows): Rename from
5902 tui_delete_data_content_windows.
5903 (tui_data_window::display_all_data)
5904 (tui_data_window::do_scroll_vertical): Update.
5905 * tui/tui-data.h (struct tui_data_window)
5906 <delete_data_content_windows>: New method.
5907
c223a729
TT
59082019-07-17 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5911 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5912
50daf268
TT
59132019-07-17 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5916 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5917 from tui_display_all_data.
5918 * tui/tui-win.c
5919 (tui_data_window::do_make_visible_with_new_height): Update.
5920 * tui/tui-regs.c (tui_show_registers): Update.
5921 * tui/tui-layout.c (tui_set_layout): Update.
5922 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5923 method.
5924
df5f8cab
TT
59252019-07-17 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5928 * tui/tui-windata.c (tui_display_data_from): Remove.
5929 (tui_data_window::refresh_all): Update.
5930
80cb6c27
TT
59312019-07-17 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5934 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5935 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5936 tui_display_registers_from_line.
5937 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5938 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5939 "force_display" parameter.
5940
baff0c28
TT
59412019-07-17 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5944 declare.
5945 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5946 Rename from tui_first_reg_element_no_inline.
5947 (tui_display_reg_element_at_line)
5948 (tui_display_registers_from_line): Update.
5949 * tui/tui-data.h (struct tui_data_window)
5950 <first_reg_element_no_inline>: New method.
5951
3b23c5f2
TT
59522019-07-17 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-windata.c (tui_display_data_from)
5955 (tui_data_window::do_scroll_vertical): Update.
5956 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5957 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5958 Rename from tui_line_from_reg_element_no.
5959 (tui_display_registers_from_line): Update.
5960 * tui/tui-data.h (struct tui_data_window)
5961 <line_from_reg_element_no>: New method.
5962
0b5ec218
TT
59632019-07-17 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5966 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5967 tui_last_regs_line_no.
5968 (tui_display_reg_element_at_line)
5969 (tui_display_registers_from_line): Update.
5970 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5971 method.
5972
0807ab7b
TT
59732019-07-17 Tom Tromey <tom@tromey.com>
5974
5975 PR tui/24722:
5976 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5977 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5978 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5979 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5980 (tui_update_breakpoint_info): Likewise.
5981 * tui/tui-hooks.c (tui_event_create_breakpoint)
5982 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5983 Update.
5984
9ad7fdef
TT
59852019-07-17 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5988
5813316f
TT
59892019-07-17 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-winsource.c (tui_update_source_window_as_is)
5992 (tui_update_source_windows_with_addr): Update.
5993 * tui/tui-source.h (tui_set_source_content)
5994 (tui_show_symtab_source): Add "win_info" parameter.
5995 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5996 parameter.
5997 (tui_show_symtab_source): Likewise.
5998
00e264e7
TT
59992019-07-17 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-wingeneral.c
6002 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6003
06210ce4
TT
60042019-07-17 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6007 (struct tui_cmd_window) <can_scroll>: New method.
6008 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6009 method.
6010
381befee
TT
60112019-07-17 Tom Tromey <tromey@adacore.com>
6012
6013 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6014 do_field_signed>: Rename. Change type of "value".
6015 * ui-out.c (ui_out::field_signed): Rename from field_int.
6016 Change type of "value".
6017 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6018 type of "value".
6019 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6020 do_field_int. Change type of "value".
6021 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6022 do_field_int. Change type of "value".
6023 * tracepoint.c (trace_status_mi, tfind_1)
6024 (print_one_static_tracepoint_marker): Update.
6025 * thread.c (print_thread_info_1, print_selected_thread_frame):
6026 Update.
6027 * stack.c (print_frame, print_frame_info): Update.
6028 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6029 Update.
6030 * source.c (print_source_lines_base): Update.
6031 * skip.c (info_skip_command): Update.
6032 * record-btrace.c (btrace_ui_out_decode_error)
6033 (btrace_call_history_src_line): Update.
6034 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6035 Update.
6036 * progspace.c (print_program_space): Update.
6037 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6038 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6039 do_field_int. Change type of "value".
6040 * mi/mi-out.c (mi_ui_out::do_table_begin)
6041 (mi_ui_out::do_table_header): Update.
6042 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6043 type of "value".
6044 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6045 (mi_cmd_data_list_changed_registers, output_register)
6046 (mi_cmd_data_read_memory, mi_load_progress)
6047 (mi_cmd_trace_frame_collected): Update.
6048 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6049 Update.
6050 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6051 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6052 (mi_cmd_var_list_children, varobj_update_one): Update.
6053 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6054 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6055 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6056 * inferior.c (print_inferior): Update.
6057 * gdb_bfd.c (print_one_bfd): Update.
6058 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6059 Update.
6060 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6061 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6062 do_field_int. Change type of "value".
6063 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6064 do_field_int. Change type of "value".
6065 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6066 (print_one_breakpoint_location, print_it_catch_fork)
6067 (print_one_catch_fork, print_it_catch_vfork)
6068 (print_one_catch_vfork, print_it_catch_solib)
6069 (print_it_catch_exec, print_it_ranged_breakpoint)
6070 (print_mention_watchpoint, print_mention_masked_watchpoint)
6071 (bkpt_print_it, update_static_tracepoint): Update.
6072 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6073 * break-catch-syscall.c (print_it_catch_syscall): Update.
6074 * ada-tasks.c (print_ada_task_info): Update.
6075 * ada-lang.c (print_it_exception, print_mention_exception):
6076 Update.
6077
6b78c3f8
AB
60782019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6079
6080 PR breakpoints/24541
6081 * gdbarch.c: Regenerate.
6082 * gdbarch.h: Regenerate.
6083 * gdbarch.sh: Adjust return type and parameter types for
6084 'stap_adjust_register'.
6085 (i386_stap_adjust_register): Adjust signature and return new
6086 register name.
6087 * stap-probe.c (stap_parse_register_operand): Adjust use of
6088 'gdbarch_stap_adjust_register'.
6089
d72a9b85
TT
60902019-07-17 Tom Tromey <tromey@adacore.com>
6091
6092 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6093 declare VEC.
6094 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6095 std::vector.
6096 (struct s390_process_info): Add initializers.
6097 (s390_add_process): Use new.
6098 (s390_linux_nat_target::low_forget_process): Use delete.
6099 (s390_linux_nat_target::low_new_fork)
6100 (s390_linux_nat_target::stopped_by_watchpoint)
6101 (s390_linux_nat_target::low_prepare_to_resume)
6102 (s390_linux_nat_target::insert_watchpoint)
6103 (s390_linux_nat_target::insert_hw_breakpoint)
6104 (s390_linux_nat_target::remove_watchpoint)
6105 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6106
206e6c58
JB
61072019-07-16 John Baldwin <jhb@FreeBSD.org>
6108
6109 * aarch64-fbsd-nat.c: Include regcache.h.
6110 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6111 argument.
6112 (aarch64_fbsd_nat_target::fetch_registers)
6113 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6114 variable.
6115 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6116
cbde90f2
JB
61172019-07-16 John Baldwin <jhb@FreeBSD.org>
6118
6119 * fbsd-nat.c: Include gdbarch.h.
6120
07128006
TT
61212019-07-15 Tom Tromey <tromey@adacore.com>
6122
6123 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6124
1f77b012
TT
61252019-07-15 Tom Tromey <tromey@adacore.com>
6126
6127 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6128 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6129 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6130 * cli-out.c (cli_ui_out::do_field_int): New method.
6131 * ui-out.c (ui_out::field_unsigned): New method.
6132 * symfile.c (generic_load): Use field_unsigned.
6133 (print_transfer_performance): Likewise.
6134 * record-btrace.c (ui_out_field_uint): Remove.
6135 (btrace_call_history_insn_range, btrace_call_history): Use
6136 field_unsigned.
6137 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6138 field_unsigned.
6139 * ui-out.h (class ui_out) <field_unsigned>: New method.
6140 <do_field_unsigned>: Likewise.
6141
33eca680
TT
61422019-07-15 Tom Tromey <tromey@adacore.com>
6143
6144 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6145 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6146 * target.c (flash_erase_command): Use field_string.
6147 * infrun.c (print_signal_received_reason): Use field_string.
6148 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6149 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6150 field_string.
6151 * ada-tasks.c (print_ada_task_info): Use field_string.
6152
ca8d69be
TT
61532019-07-15 Tom Tromey <tromey@adacore.com>
6154
6155 * target.c (flash_erase_command): Use field_core_addr.
6156 * symfile.c (generic_load): Use field_core_addr.
6157 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6158 Use field_core_addr.
6159 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6160 field_core_addr.
6161
0d4e84ed
AB
61622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6163
6164 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6165 value if its desired type is smaller than a CORE_ADDR and signed.
6166
9a49df9d
AB
61672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6168
6169 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6170 of changes to field names, and use new is_reference field to
6171 decide if a property is a reference or not.
6172 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6173 field.
6174 (struct dwarf2_property_baton): Update header comment, rename
6175 'referenced_type' to 'property_type' and update comments.
6176 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6177 default property type, store in property baton, update to take
6178 accound of renamed field.
6179 (read_func_scope): Update call to attr_to_dynamic_prop.
6180 (read_array_type): Likewise.
6181 (dwarf2_per_cu_addr_sized_int_type): New function.
6182 (read_subrange_index_type): Move type finding code to
6183 dwarf2_per_cu_addr_sized_int_type.
6184 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6185 (dwarf2_per_cu_addr_type): New function.
6186 (set_die_type): Update calls to attr_to_dynamic_prop.
6187
b86352cf
AB
61882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6189
6190 * dwarf2read.c (read_subrange_index_type): New function.
6191 (read_subrange_type): Move code into new function and call it.
6192 * gdbtypes.c (create_range_type): Add some asserts.
6193
603490bf
AB
61942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6195
6196 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6197 update return statements.
6198 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6199 declaration, and update comment to match.
6200 * gdbtypes.c (resolve_dynamic_array): Update call to
6201 dwarf2_evaluate_property to match new return type.
6202
592f9d27
AB
62032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * valarith.c (value_subscripted_rvalue): Change lowerbound
6206 parameter type from int to LONGEST.
6207 * value.h (value_subscripted_rvalue): Likewise in declaration.
6208
60cfcb20
AB
62092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * cli/cli-utils.c (info_print_command_completer): New function.
6212 * cli/cli-utils.h: Add 'completer.h' include, and forward
6213 declaration for 'struct cmd_list_element'.
6214 (info_print_command_completer): Declare.
6215 * stack.c (_initialize_stack): Add completer for 'info locals' and
6216 'info args'.
6217 * symtab.c (_initialize_symtab): Add completer for 'info
6218 variables' and 'info functions'.
6219 * NEWS: Mention completion for additional info commands.
6220
b16507e0
AB
62212019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * cli/cli-utils.c (extract_info_print_args): Delete.
6224 (extract_arg_maybe_quoted): Delete.
6225 (info_print_options_defs): New variable.
6226 (make_info_print_options_def_group): New function.
6227 (extract_info_print_options): Define new function.
6228 * cli/cli-utils.h (extract_info_print_args): Delete.
6229 (struct info_print_options): New structure.
6230 (extract_info_print_options): Declare new function.
6231 * stack.c (info_locals_command): Update to use new
6232 extract_info_print_options, also add a header comment.
6233 (info_args_command): Likewise.
6234 * symtab.c (info_variables_command): Likewise.
6235 (info_functions_command): Likewise.
6236
021d8588
AB
62372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6238
6239 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6240 to extract string arguments.
6241 * common/common-utils.c (extract_string_maybe_quoted): New function.
6242 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6243
b777eb6d
TT
62442019-07-11 Tom Tromey <tromey@adacore.com>
6245
6246 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6247 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6248 * top.h (gdbinit): Don't declare.
6249 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6250 into...
6251 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6252 * top.c (gdb_init): Don't call init_cli_cmds.
6253 (gdbinit): Remove.
6254 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6255
72ee03ff
TT
62562019-07-11 Tom Tromey <tromey@adacore.com>
6257
6258 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6259 after it has been moved.
6260
00db9531
SM
62612019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * valops.c (value_must_coerce_to_target): Change return type to
6264 bool.
6265 * value.h (value_must_coerce_to_target): Likewise.
6266
f2478a7e
SM
62672019-07-10 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * breakpoint.c (is_hardware_watchpoint): Remove
6270 forward-declaration.
6271 (is_masked_watchpoint): Change return type to bool.
6272 (is_tracepoint): Likewise.
6273 (is_breakpoint): Likewise.
6274 (is_hardware_watchpoint): Likewise.
6275 (is_watchpoint): Likewise.
6276 (is_no_memory_software_watchpoint): Likewise.
6277 (is_catchpoint): Likewise.
6278 (breakpoint_1): Make FILTER parameter's return type bool.
6279 is_masked_watchpoint): Change return type to bool.
6280 (save_breakpoints): Make FILTER parameter's return type bool.
6281 * breakpoint.h (is_breakpoint): Change return type to bool.
6282 (is_watchpoint): Likewise.
6283 (is_catchpoint): Likewise.
6284 (is_tracepoint): Likewise.
6285
0d12e84c
TT
62862019-07-10 Tom Tromey <tom@tromey.com>
6287
6288 * defs.h: Don't include gdbarch.h.
6289 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6290 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6291 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6292 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6293 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6294 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6295 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6296 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6297 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6298 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6299 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6300 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6301 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6302 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6303 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6304 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6305 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6306 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6307 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6308 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6309 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6310 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6311 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6312 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6313 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6314 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6315 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6316
f06f1252
TT
63172019-07-10 Tom Tromey <tromey@adacore.com>
6318
6319 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6320 * breakpoint.c (init_ada_exception_breakpoint): Register as
6321 bp_catchpoint.
6322 (print_one_breakpoint_location, print_one_breakpoint): Use
6323 is_ada_exception_catchpoint.
6324 * ada-lang.c (class ada_catchpoint_location): Pass
6325 bp_loc_software_breakpoint to bp_location constructor.
6326 (is_ada_exception_catchpoint): New function.
6327
7a5d944b
TT
63282019-07-10 Tom Tromey <tromey@adacore.com>
6329
6330 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6331 VEC.
6332 (struct arm_exidx_entry): New method operator<.
6333 (struct arm_exidx_data) <section_maps>: Change type.
6334 (arm_exidx_data_free): Remove.
6335 (arm_exidx_data_key): Change type. Move lower.
6336 (arm_exidx_new_objfile): Update.
6337 (arm_compare_exidx_entries): Remove.
6338 (arm_find_exidx_entry, _initialize_arm_tdep)
6339
48c66e1d
TT
63402019-07-10 Tom Tromey <tromey@adacore.com>
6341
6342 * solib-spu.c (ocl_program_data_key): Change type.
6343 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6344 Update.
6345
a269fbf1
TT
63462019-07-10 Tom Tromey <tromey@adacore.com>
6347
6348 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6349 (struct solib_aix_inferior_data) <library_list>: Change type.
6350 (solib_aix_inferior_data_handle): Change type.
6351 (get_solib_aix_inferior_data): Update.
6352 (solib_aix_free_library_list): Remove.
6353 (library_list_start_library): Update.
6354 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6355 return type.
6356 (solib_aix_get_library_list)
6357 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6358 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6359
c294730c
TT
63602019-07-10 Tom Tromey <tromey@adacore.com>
6361
6362 * solib-dsbt.c (struct dsbt_info): Add initializers.
6363 (solib_dsbt_pspace_data): Change type.
6364 (dsbt_pspace_data_cleanup): Remove.
6365 (get_dsbt_info, _initialize_dsbt_solib): Update.
6366
9d52077d
TT
63672019-07-10 Tom Tromey <tromey@adacore.com>
6368
6369 * spu-tdep.c (spu_overlay_data): Change type.
6370 (spu_get_overlay_table, spu_overlay_new_objfile)
6371 (_initialize_spu_tdep): Update.
6372
22a20dca
TT
63732019-07-10 Tom Tromey <tromey@adacore.com>
6374
6375 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6376 destructor.
6377 (dbx_objfile_data_key): Change type and declare later.
6378 (DBX_SYMFILE_INFO): Rewrite.
6379 * dbxread.c (dbx_objfile_data_key): Change type.
6380 (dbx_symfile_init): Update.
6381 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6382 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6383 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6384
cb60f420
TT
63852019-07-10 Tom Tromey <tromey@adacore.com>
6386
6387 * jit.c (jit_program_space_key): Change type. Move lower.
6388 (get_jit_program_space_data): Update.
6389 (jit_program_space_data_cleanup): Remove.
6390 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6391 Update.
6392 (struct jit_program_space_data): Add initializers.
6393
51df2ae3
TT
63942019-07-10 Tom Tromey <tromey@adacore.com>
6395
6396 * solib-darwin.c (struct darwin_info): Add initializers.
6397 (solib_darwin_pspace_data): Change type.
6398 (darwin_pspace_data_cleanup): Remove.
6399 (get_darwin_info, _initialize_darwin_solib): Update.
6400
18101a35
TT
64012019-07-10 Tom Tromey <tromey@adacore.com>
6402
6403 * remote-sim.c (struct sim_inferior_data): Add initializers,
6404 constructor, and destructor.
6405 (sim_inferior_data_key): Change type. Move lower.
6406 (check_for_duplicate_sim_descriptor): Update.
6407 (get_sim_inferior_data): Use new. Update.
6408 (~sim_inferior_data_cleanup): Rename from
6409 sim_inferior_data_cleanup. Simplify.
6410 (gdbsim_close_inferior, simulator_command)
6411 (sim_command_completer, _initialize_remote_sim): Update.
6412 (next_pid, INITIAL_PID): Move earlier.
6413
05b08ac1
TT
64142019-07-10 Tom Tromey <tromey@adacore.com>
6415
6416 * python/python-internal.h (create_thread_object): Return
6417 gdbpy_ref.
6418 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6419 * python/py-inferior.c (struct threadlist_entry): Add
6420 constructor.
6421 <thread_obj>: Now a gdbpy_ref.
6422 (thread_to_thread_object): Update.
6423 (add_thread_object): Use new.
6424 (delete_thread_object): Use delete.
6425 (infpy_threads): Update.
6426 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6427 GIL.
6428
32372d80
TT
64292019-07-10 Tom Tromey <tromey@adacore.com>
6430
6431 * valops.c (value_cast): Specialize error message for Ada.
6432
5c458ae8
SM
64332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6434
6435 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6436
4c462cb0
SM
64372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6440 bpstat_should_step): Return bool, adjust comments.
6441 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6442 bpstat_should_step): Likewise.
6443
89abbcc2
AH
64442019-07-10 Alan Hayward <alan.hayward@arm.com>
6445
6446 * features/Makefile: Use feature target descriptions for Arm.
6447 * features/arm/arm-core.c: Generate new file.
6448 * features/arm/arm-fpa.c: Likewise.
6449 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6450 * features/arm/arm-m-profile.c: Likewise.
6451 * features/arm/arm-vfpv2.c: Likewise.
6452 * features/arm/arm-vfpv3.c: Likewise.
6453 * features/arm/xscale-iwmmxt.c: Likewise.
6454 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6455
166a82be
AH
64562019-07-10 Alan Hayward <alan.hayward@arm.com>
6457
6458 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6459 ptrace earlier.
6460
9fb4c7e9
AH
64612019-07-10 Alan Hayward <alan.hayward@arm.com>
6462
6463 * features/aarch64-pauth.c: Regenerate.
6464
e2d0f980
SM
64652019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6466
6467 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6468 bool.
6469 (bpstat_what): Use false instead of 0.
6470
a38118e5
PA
64712019-07-09 Pedro Alves <palves@redhat.com>
6472
6473 * break-catch-throw.c (is_exception_catchpoint): New.
6474 * breakpoint.c (print_one_breakpoint_location): New parameter
6475 'raw_loc'. Handle it. Use
6476 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6477 looking at the breakpoint's type.
6478 (print_one_breakpoint): If handling "maint info breakpoints", also
6479 print locations of exception catchpoints.
6480 * breakpoint.h (is_exception_catchpoint): Declare.
6481
cb1e4e32
PA
64822019-07-09 Pedro Alves <palves@redhat.com>
6483
6484 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6485 "addr" field.
6486 (allocate_location_exception_catchpoint): New.
6487 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6488 (initialize_throw_catchpoint_ops): Install
6489 allocate_location_exception_catchpoint as allocate_location
6490 method.
6491 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6492 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6493 bp_loc_other.
6494 (breakpoint_address_is_meaningful): Delete.
6495 (bl_address_is_meaningful): New.
6496 (breakpoint_locations_match): Adjust comment.
6497 (bp_location_from_bp_type): New, factored out of...
6498 (bp_location::bp_location(breakpoint *)): ... this.
6499 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6500 factored out of...
6501 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6502 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6503 breakpoint_address_is_meaningful.
6504 (bp_locations_compare): Adjust comment.
6505 (update_global_location_list): Use bl_address_is_meaningful
6506 instead of breakpoint_address_is_meaningful.
6507 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6508 explicit.
6509 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6510 * python/py-breakpoint.c (bppy_get_location): No longer check
6511 whether location is null.
6512
b58a68fe
PA
65132019-07-09 Pedro Alves <palves@redhat.com>
6514
6515 PR c++/15468
6516 * breakpoint.c (print_one_breakpoint_location): Remove
6517 single-location assert.
6518
268a13a5
TT
65192019-07-09 Tom Tromey <tom@tromey.com>
6520
6521 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6522 * configure: Rebuild.
6523 * configure.ac: Change common to gdbsupport.
6524 * gdbsupport: Rename from common.
6525 * acinclude.m4: Change common to gdbsupport.
6526 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6527 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6528 gdbsupport.
6529 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6530 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6531 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6532 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6533 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6534 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6535 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6536 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6537 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6538 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6539 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6540 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6541 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6542 coff-pe-read.c, command.h, compile/compile-c-support.c,
6543 compile/compile-c.h, compile/compile-cplus-symbols.c,
6544 compile/compile-cplus-types.c, compile/compile-cplus.h,
6545 compile/compile-loc2c.c, compile/compile.c, completer.c,
6546 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6547 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6548 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6549 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6550 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6551 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6552 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6553 features/aarch64-core.c, features/aarch64-fpu.c,
6554 features/aarch64-pauth.c, features/aarch64-sve.c,
6555 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6556 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6557 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6558 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6559 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6560 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6561 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6562 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6563 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6564 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6565 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6566 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6567 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6568 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6569 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6570 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6571 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6572 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6573 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6574 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6575 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6576 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6577 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6578 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6579 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6580 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6581 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6582 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6583 minsyms.c, mips-linux-tdep.c, namespace.h,
6584 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6585 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6586 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6587 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6588 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6589 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6590 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6591 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6592 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6593 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6594 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6595 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6596 procfs.c, producer.c, progspace.h, psymtab.h,
6597 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6598 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6599 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6600 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6601 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6602 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6603 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6604 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6605 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6606 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6607 target-memory.c, target.c, target.h, target/waitstatus.c,
6608 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6609 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6610 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6611 unittests/array-view-selftests.c,
6612 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6613 unittests/common-utils-selftests.c,
6614 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6615 unittests/format_pieces-selftests.c,
6616 unittests/function-view-selftests.c,
6617 unittests/lookup_name_info-selftests.c,
6618 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6619 unittests/mkdir-recursive-selftests.c,
6620 unittests/observable-selftests.c,
6621 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6622 unittests/parse-connection-spec-selftests.c,
6623 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6624 unittests/scoped_fd-selftests.c,
6625 unittests/scoped_mmap-selftests.c,
6626 unittests/scoped_restore-selftests.c,
6627 unittests/string_view-selftests.c, unittests/style-selftests.c,
6628 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6629 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6630 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6631 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6632 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6633 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6634
5b0e2db4
AB
66352019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6638 bool value.
6639 (decode_digits_ordinary): Set explicit_line field in sal.
6640 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6641 symtab_and_line that was set on an explicit line number in
6642 assembler code. Do always update the recorded symtab and line if
6643 we do skip the prologue.
6644
0ba852ab
AB
66452019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6646
6647 * breakpoint.c (set_breakpoint_location_function): Remove
6648 explicit_loc parameter.
6649 (momentary_breakpoint_from_master): Update call to
6650 set_breakpoint_location_function.
6651 (add_location_to_breakpoint): Likewise.
6652
b3a7d171
AB
66532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6656 required features based on default bfd type when no specific bfd
6657 is present.
6658
1f6f6e21
PW
66592019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6660
6661 * NEWS: Mention that GDB printf and eval commands can now print
6662 C-style and Ada-style convenience var strings without
6663 calling the inferior.
6664 * printcmd.c (printf_c_string): Locally print GDB internal var
6665 instead of transiting via the inferior.
6666 (printf_wide_c_string): Likewise.
6667
66682019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6669
5862c886 6670 PR breakpoints/25011
ea142fbf
AH
6671 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6672
0598af48
TT
66732019-07-04 Tom Tromey <tom@tromey.com>
6674
6675 PR tui/24724:
6676 * tui/tui-winsource.c (tui_clear_source_content): Update.
6677 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6678 (tui_update_breakpoint_info): Update.
6679 (tui_set_exec_info_content): Update.
6680 * tui/tui-source.c (tui_set_source_content_nil): Update.
6681 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6682 has_break.
6683 * tui/tui-data.h (enum tui_bp_flag): New.
6684 (tui_bp_flags): New enum flags type.
6685 (struct tui_source_element) <break_mode>: Change type. Rename
6686 from has_break.
6687 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6688 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6689 constants.
6690 * tui/tui-winsource.h: Fix comment.
6691
350fab54
AH
66922019-07-04 Alan Hayward <alan.hayward@arm.com>
6693
6694 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6695 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6696 (store_fpregs_to_thread)
6697 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6698 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6699 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6700 (IWMMXT_REGS_SIZE): Add define.
6701 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6702 (fetch_vfp_regs, store_vfp_regs)
6703 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6704 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6705
f0452268
AH
67062019-07-04 Alan Hayward <alan.hayward@arm.com>
6707
6708 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6709 defines.
6710 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6711 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6712 (ARM_INT_REGISTER_SIZE): ...to this.
6713 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6714 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6715 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6716 (arm_linux_collect_gregset, supply_nwfpe_register)
6717 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6718 defines.
6719 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6720 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6721 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6722 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6723 (arm_return_in_memory, arm_store_return_value)
6724 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6725 (arm_record_ld_st_multiple): Likewise.
6726 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6727 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6728
e935475c
AH
67292019-07-04 Alan Hayward <alan.hayward@arm.com>
6730
6731 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6732 AARCH64_DISPLACED_MODIFIED_INSNS.
6733 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6734 (aarch64_displaced_step_copy_insn): Likewise.
6735 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6736 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6737 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6738 ARM_DISPLACED_MODIFIED_INSNS.
6739 * arm-tdep.c (arm_gdbarch_init): Likewise.
6740 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6741 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6742 (struct arm_displaced_step_closure): Use
6743 ARM_DISPLACED_MODIFIED_INSNS.
6744
df0bb381
AH
67452019-07-04 Alan Hayward <alan.hayward@arm.com>
6746
6747 * features/Makefile: Remove unused xml files.
6748 * features/aarch64.xml: Remove.
6749 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6750 * features/i386/amd64-avx-avx512.xml: Remove.
6751 * features/i386/amd64-avx-linux.xml: Remove.
6752 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6753 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6754 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6755 * features/i386/amd64-avx-mpx.xml: Remove.
6756 * features/i386/amd64-avx.xml: Remove.
6757 * features/i386/amd64-linux.xml: Remove.
6758 * features/i386/amd64-mpx-linux.xml: Remove.
6759 * features/i386/amd64-mpx.xml: Remove.
6760 * features/i386/amd64.xml: Remove.
6761 * features/i386/i386-avx-avx512-linux.xml: Remove.
6762 * features/i386/i386-avx-avx512.xml: Remove.
6763 * features/i386/i386-avx-linux.xml: Remove.
6764 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6765 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6766 * features/i386/i386-avx-mpx-linux.xml: Remove.
6767 * features/i386/i386-avx-mpx.xml: Remove.
6768 * features/i386/i386-avx.xml: Remove.
6769 * features/i386/i386-linux.xml: Remove.
6770 * features/i386/i386-mmx-linux.xml: Remove.
6771 * features/i386/i386-mmx.xml: Remove.
6772 * features/i386/i386-mpx-linux.xml: Remove.
6773 * features/i386/i386-mpx.xml: Remove.
6774 * features/i386/i386.xml: Remove.
6775 * features/i386/x32-avx-avx512-linux.xml: Remove.
6776 * features/i386/x32-avx-linux.xml: Remove.
6777 * features/i386/x32-linux.xml: Remove.
6778
edd6266a
AH
67792019-07-04 Alan Hayward <alan.hayward@arm.com>
6780
6781 * regformats/aarch64.dat: Remove.
6782 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6783 * regformats/i386/amd64-avx-linux.dat: Remove.
6784 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6785 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6786 * regformats/i386/amd64-linux.dat: Remove.
6787 * regformats/i386/amd64-mpx-linux.dat: Remove.
6788 * regformats/i386/amd64.dat: Remove.
6789 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6790 * regformats/i386/i386-avx-linux.dat: Remove.
6791 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6792 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6793 * regformats/i386/i386-linux.dat: Remove.
6794 * regformats/i386/i386-mmx-linux.dat: Remove.
6795 * regformats/i386/i386-mpx-linux.dat: Remove.
6796 * regformats/i386/i386.dat: Remove.
6797 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6798 * regformats/i386/x32-avx-linux.dat: Remove.
6799 * regformats/i386/x32-linux.dat: Remove.
6800
2b40fda7
AH
68012019-07-04 Alan Hayward <alan.hayward@arm.com>
6802
6803 * aarch64-tdep.c: Remove xml self tests.
6804 * amd64-linux-tdep.c: Likewise.
6805 * amd64-tdep.c: Likewise.
6806 * i386-linux-tdep.c: Likewise.
6807 * i386-tdep.c: Likewise.
6808
5f4ba3e7
PA
68092019-07-03 Pedro Alves <palves@redhat.com>
6810
6811 PR cli/24732
6812 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6813 (pipe_cmd_option_defs): New.
6814 (make_pipe_cmd_options_def_group): New.
6815 (pipe_command): Use gdb::option::process_options.
6816 (pipe_command_completer): New function.
6817 (_initialize_cli_cmds): Install completer for "pipe" command.
6818
3d9be6f5
PA
68192019-07-03 Pedro Alves <palves@redhat.com>
6820
6821 * cli/cli-option.c (union option_value) <string>: New field.
6822 (struct option_def_and_value): Add ctor, move ctor, dtor and
6823 use DISABLE_COPY_AND_ASSIGN.
6824 (option_def_and_value::clear_value): New.
6825 (parse_option, save_option_value_in_ctx, get_val_type_str)
6826 (add_setshow_cmds_for_options): Handle var_string.
6827 * cli-option.h (union option_def::var_address) <string>: New
6828 field.
6829 (struct string_option_def): New.
6830 * maint-test-options.c (struct test_options_opts): Add default
6831 ctor and use DISABLE_COPY_AND_ASSIGN.
6832 <string_opt>: New field.
6833 (test_options_opts::~test_options_opts): New.
6834 (test_options_opts::dump): Also dump "-string".
6835 (test_options_option_defs): Install "string.
6836
41fc454c
PA
68372019-07-03 Pedro Alves <palves@redhat.com>
6838
6839 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6840 option_value with a null enumeration.
6841 (complete_options): Save the option values in the context.
6842 (save_option_value_in_ctx): New, factored out from ...
6843 (process_options): ... here.
6844 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6845 of the function.
6846 * maint-test-options.c (test_options_opts::dump): New, factored
6847 out from ...
6848 (maintenance_test_options_command_mode): ... here.
6849 (maintenance_test_options_command_completion_result): Delete.
6850 (maintenance_test_options_command_completion_text): Update
6851 comment.
6852 (maintenance_show_test_options_completion_result): Change
6853 prototype. Just print
6854 maintenance_test_options_command_completion_text.
6855 (save_completion_result): New.
6856 (maintenance_test_options_completer_mode): Pass options context to
6857 complete_options, and then save a dump.
6858 (_initialize_maint_test_options): Use add_cmd to install "maint
6859 show test-options-completion-result".
6860
fdbc9870
PA
68612019-07-03 Pedro Alves <palves@redhat.com>
6862
6863 * NEWS (New commands): Mention "with" and "maint with".
6864 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6865 (with_command, with_command_completer): New.
6866 (pipe_command): Adjust to new repeat_previous
6867 interface.
6868 (_initialize_cli_cmds): Install the "with" command and its "w"
6869 alias.
6870 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6871 declarations.
6872 * cli/cli-setshow.c (parse_cli_var_uinteger)
6873 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6874 argument strings for all var_types.
6875 (get_setshow_command_value_string): New, factored out from ...
6876 (do_show_command): ... this.
6877 * cli/cli-setshow.h: Include <string>.
6878 (get_setshow_command_value_string): Declare.
6879 * command.h (repeat_previous): Now returns const char *. Adjust
6880 comment.
6881 * maint.c: Include "cli/cli-cmds.h".
6882 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6883 (_initialize_maint_cmds): Register the "maintenance with" command.
6884 * top.c (repeat_previous): Move bits from pipe_command here:
6885 Return the saved command line, if any; error out if there's no
6886 command to relaunch.
6887
c6ac8931
PA
68882019-07-03 Pedro Alves <palves@redhat.com>
6889
6890 * NEWS (New commands): Mention "maint set/show test-settings"
6891 instead of "maint test-settings".
6892 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6893 (maintenance_test_settings_set_list): Rename to ...
6894 (maintenance_set_test_settings_list): ... this.
6895 (maintenance_test_settings_show_list): Rename to ...
6896 (maintenance_show_test_settings_list): ... this.
6897 (maintenance_test_settings_cmd): Delete.
6898 (maintenance_test_settings_set_cmd): ...
6899 (maintenance_set_test_settings_cmd): ... this.
6900 (maintenance_test_settings_show_cmd): ...
6901 (maintenance_show_test_settings_cmd): ... this.
6902 (maintenance_test_settings_show_value_cmd):
6903 (maintenance_show_test_settings_value_cmd): ... this.
6904 (_initialize_maint_test_settings): No longer install the "maint
6905 test-settings" prefix command. Rename "maint test-settings set"
6906 to "maint set test-settings", and "maint test-settings show" to
6907 "maint show test-settings". Adjust all subcommands.
6908
d1fcf2fd
PA
69092019-07-03 Pedro Alves <palves@redhat.com>
6910
6911 * maint-test-settings.c: Fix file's intro comment. Replace all
6912 references to "test-options" with references to "test-settings",
6913 in comments.
6914
970f9d09
PA
69152019-07-03 Pedro Alves <palves@redhat.com>
6916
6917 * maint-test-settings.c (maintenance_test_settings_xxx)
6918 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6919 New.
6920 (maintenance_test_settings_enums): Use them.
6921 (maintenance_test_settings_enum): Default to
6922 maintenance_test_settings_xxx.
6923 (_initialize_maint_test_settings): Initialize
6924 MAINTENANCE_TEST_SETTINGS_FILENAME.
6925
f3869b1a
SM
69262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6927
6928 * breakpoint.h (remove_breakpoints_inf): Change return type to
6929 void, move function documentation here.
6930 * breakpoint.c (remove_breakpoints_inf): Change return type to
6931 void, move function documentation to header.
6932
54d66006
PA
69332019-07-02 Pedro Alves <palves@redhat.com>
6934
6935 * NEWS (Completion improvements): Mention "info threads".
6936 * thread.c (struct info_threads_opts, info_threads_option_defs)
6937 (make_info_threads_options_def_group): New.
6938 (info_threads_command): Use gdb::option::process_options.
6939 (info_threads_command_completer): New.
6940 (_initialize_thread): Use gdb::option::build_help to build the
6941 help text for "info threads".
6942
854f6088
SM
69432019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6944
6945 * defs.h (generic_load): Move from here...
6946 * symfile.h (generic_load): ... to here. Rename name parameter
6947 to args.
6948 * symfile.c (generic_load): Add comment.
6949
54ee4252
TT
69502019-07-01 Tom Tromey <tromey@adacore.com>
6951
6952 * dwarf2read.c
6953 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6954 declaration of without_params. Fix formatting.
6955
65392b3e
TT
69562019-07-01 Tom Tromey <tromey@adacore.com>
6957
6958 * ada-exp.y (find_primitive_type): Update.
6959 * ada-lang.h (ada_lookup_symbol): Update.
6960 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6961 parameter.
6962 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6963
7d7571f0
SDJ
69642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6965
6966 PR breakpoints/24541
6967 * gdbarch.c: Regenerate.
6968 * gdbarch.h: Regenerate.
6969 * gdbarch.sh: Add 'stap_adjust_register'.
6970 * i386-tdep.c: Include '<unordered_set>'.
6971 (i386_stap_adjust_register): New function.
6972 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6973 * stap-probe.c (stap_parse_register_operand): Call
6974 'gdbarch_stap_adjust_register'.
6975
5af5392a
SDJ
69762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6977
6978 PR python/24742
6979 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6980 * python/python.c (do_start_initialization): Use 'xmalloc'
6981 instead of 'PyMem_Malloc'.
6982
10d06d82
TT
69832019-06-28 Tom Tromey <tromey@adacore.com>
6984
6985 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6986 for Ada.
6987
1b7f24cd
TT
69882019-06-27 Tom Tromey <tromey@adacore.com>
6989
6990 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6991 objfile_key.
6992 (arm_find_mapping_symbol, arm_record_special_symbol)
6993 (_initialize_arm_tdep): Update.
6994 (arm_objfile_data_free): Remove.
6995
3d507ff2
TT
69962019-06-27 Tom Tromey <tromey@adacore.com>
6997
6998 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6999 to cp_print_static_field.
7000
762c164d
TT
70012019-06-26 Tom Tromey <tromey@adacore.com>
7002
7003 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7004 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7005 declare.
7006
aa2f9bcf
AH
70072019-06-26 Alan Hayward <alan.hayward@arm.com>
7008
7009 * features/aarch64-core.c (create_feature_aarch64_core):
7010 Regenerate.
7011 * features/aarch64-core.xml: Add cpsr flags.
7012
3426ae57
AH
70132019-06-26 Alan Hayward <alan.hayward@arm.com>
7014
7015 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7016 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7017
4838e44c
SM
70182019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7019
7020 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7021 field.
7022 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7023 use.
7024 (arm_record_special_symbol): Don't insert new symbol in sorted
7025 position, push it at the end.
7026
54cc7474
SM
70272019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7028
7029 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7030 (arm_mapping_symbol_s): Remove.
7031 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7032 (arm_mapping_symbol_vec): New typedef.
7033 (struct arm_per_objfile): Add constructor.
7034 <section_maps>: Change type to
7035 std::unique_ptr<arm_mapping_symbol_vec[]>.
7036 (arm_compare_mapping_symbols): Remove.
7037 (arm_find_mapping_symbol): Adjust to section_maps type change.
7038 (arm_objfile_data_free): Call delete on arm_per_objfile.
7039 (arm_record_special_symbol): Adjust to section_maps type change.
7040 Allocate arm_per_objfile with new.
7041
b65b566c
PW
70422019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7043
7044 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7045 with the command prefix.
7046
c2fc64f5
TT
70472019-06-25 Tom Tromey <tom@tromey.com>
7048
7049 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7050 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7051
fb54fa76
TT
70522019-06-25 Tom Tromey <tom@tromey.com>
7053
7054 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7055 type.
7056 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7057 protected.
7058
f7952c57
TT
70592019-06-25 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-winsource.c
7062 (tui_source_window_base::set_is_exec_point_at): Add check against
7063 LOA_ADDRESS.
7064
17568d78
TT
70652019-06-25 Tom Tromey <tom@tromey.com>
7066
7067 * tui/tui-source.c (tui_set_source_content): Don't check before
7068 xfree.
7069 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7070
53e7cdba
TT
70712019-06-25 Tom Tromey <tom@tromey.com>
7072
7073 * tui/tui-winsource.h (tui_update_source_window_as_is)
7074 (tui_alloc_source_buffer, tui_line_is_displayed)
7075 (tui_addr_is_displayed): Change type of win_info.
7076 * tui/tui-winsource.c (tui_update_source_window_as_is)
7077 (tui_clear_source_content, tui_show_source_line)
7078 (tui_show_source_content, tui_source_window_base::refill)
7079 (tui_source_window_base::set_is_exec_point_at)
7080 (tui_source_window_base::set_is_exec_point_at)
7081 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7082 (tui_alloc_source_buffer, tui_line_is_displayed)
7083 (tui_addr_is_displayed): Change type of win_info. Update.
7084 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7085 (tui_source_window_base::do_make_visible_with_new_height):
7086 Update.
7087 * tui/tui-source.c (tui_set_source_content)
7088 (tui_set_source_content_nil)
7089 (tui_source_window::do_scroll_vertical): Update.
7090 * tui/tui-layout.c (show_layout): Update.
7091 * tui/tui-disasm.c (tui_set_disassem_content)
7092 (tui_disasm_window::do_scroll_vertical): Update.
7093 * tui/tui-data.h (tui_win_content): Remove.
7094 (struct tui_gen_win_info) <content, content_size>: Remove.
7095 (struct tui_source_element): Add initializers and destructor.
7096 (union tui_which_element, struct tui_win_element): Remove.
7097 (struct tui_source_window_base) <content>: New field.
7098 (struct tui_data_window): Remove destructor.
7099 (tui_alloc_content, tui_free_win_content)
7100 (tui_free_all_source_wins_content): Don't declare.
7101 * tui/tui-data.c (tui_initialize_static_data): Update.
7102 (init_content_element, tui_alloc_content): Remove.
7103 (~tui_gen_win_info): Update.
7104 (~tui_data_window, tui_free_all_source_wins_content)
7105 (tui_free_win_content, free_content, free_content_elements):
7106 Remove.
7107
7908abbf
TT
71082019-06-25 Tom Tromey <tom@tromey.com>
7109
7110 * tui/tui-winsource.h (tui_clear_source_content)
7111 (tui_erase_source_content, tui_show_source_content): Change type
7112 of win_info.
7113 * tui/tui-winsource.c (tui_clear_source_content)
7114 (tui_erase_source_content, tui_show_source_content): Change type
7115 of win_info.
7116 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7117 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7118 win_info.
7119 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7120 win_info.
7121 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7122
02c28df0
TT
71232019-06-25 Tom Tromey <tom@tromey.com>
7124
7125 * tui/tui-winsource.c (tui_clear_source_content)
7126 (tui_source_window_base::set_is_exec_point_at): Update.
7127 * tui/tui-source.c (tui_set_source_content_nil): Update.
7128 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7129 a bool.
7130 * tui/tui-data.c (init_content_element): Update.
7131
6658b1bf
TT
71322019-06-25 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7135 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7136 * tui/tui-layout.c (init_and_make_win): Update.
7137 * tui/tui.h (enum tui_win_type): Update.
7138 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7139 tui_win_is_auxillary.
7140 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7141 tui_win_is_auxillary.
7142
21e1c91e
TT
71432019-06-25 Tom Tromey <tom@tromey.com>
7144
7145 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7146 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7147 (tui_delete_data_content_windows, tui_display_all_data)
7148 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7149 Update.
7150 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7151 * tui/tui-regs.c (tui_last_regs_line_no)
7152 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7153 (tui_show_registers): Update.
7154 (tui_show_register_group): Return void. Update.
7155 (tui_display_registers_from, tui_display_reg_element_at_line)
7156 (tui_display_registers_from_line, tui_check_register_values):
7157 Update.
7158 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7159 member.
7160 (struct tui_data_window) <regs_content>: Now a std::vector.
7161 <regs_content_count>: Remove.
7162 (tui_add_content_elements, tui_free_data_content): Don't declare.
7163 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7164 (init_content_element): Remove DATA_WIN case. Add assert.
7165 (tui_add_content_elements): Remove.
7166 (tui_data_window): Update.
7167 (tui_free_data_content): Remove.
7168 (free_content_elements): Remove DATA_WIN case.
7169
115ac53b
TT
71702019-06-25 Tom Tromey <tom@tromey.com>
7171
7172 * tui/tui-data.c (tui_data_item_window): Update.
7173 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7174 * tui/tui-windata.c (tui_display_all_data)
7175 (tui_display_data_from_line): Update.
7176 (tui_check_data_values): Remove.
7177 * tui/tui-regs.c (tui_show_register_group)
7178 (tui_display_reg_element_at_line): Update.
7179 * tui/tui-hooks.c (tui_register_changed)
7180 (tui_refresh_frame_and_register_information): Call
7181 tui_check_register_values.
7182 * tui/tui-data.h (struct tui_data_window) <data_content,
7183 data_content_count, data_type>: Remove.
7184 (enum tui_data_type): Remove.
7185
7186 * tui/tui-data.c (tui_data_window::clear_detail)
7187 (~tui_data_window): Update.
7188
eaf9738b
TT
71892019-06-25 Tom Tromey <tom@tromey.com>
7190
7191 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7192 declare.
7193 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7194 Rename from tui_first_data_item_displayed. Update.
7195 (tui_data_window::refresh_all)
7196 (tui_data_window::do_scroll_vertical): Update.
7197 * tui/tui-data.h (struct tui_data_window)
7198 <first_data_item_displayed>: Declare new method.
7199
31ca4723
TT
72002019-06-25 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7203 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7204 contents...
7205 (tui_initialize_static_data): ...here.
7206
41bcff7f
TT
72072019-06-25 Tom Tromey <tom@tromey.com>
7208
7209 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7210 (tui_display_registers_from, tui_check_register_values): Update.
7211 (tui_display_register): Remove win_info parameter; update.
7212 (tui_get_register): Change type of parameters.
7213 * tui/tui-data.h (struct tui_data_element): Remove.
7214 (union tui_which_element) <data>: Remove.
7215 <data_window>: Change type.
7216 (struct tui_data_item_window): New.
7217 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7218 case. Add assert.
7219 (~tui_data_item_window): New destructor.
7220 (free_content_elements): Remove DATA_ITEM_WIN case.
7221
d2802c33
TT
72222019-06-25 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7225 Remove.
7226
dd835f8b
TT
72272019-06-25 Tom Tromey <tom@tromey.com>
7228
7229 * tui/tui-data.h (struct tui_command_element): Remove.
7230 (union tui_which_element) <command>: Remove.
7231 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7232 assert.
7233 (free_content_elements): Remove CMD_WIN case.
7234
bd7db367
TT
72352019-06-25 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-layout.c (tui_set_layout): Update.
7238 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7239 * tui/tui-data.c (layout_def): Update.
7240
3add462f
TT
72412019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7244 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7245 (tui_source_window_base::set_new_height): Update.
7246 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7247 Update.
7248 (tui_set_locator_fullname, tui_set_locator_info)
7249 (tui_show_frame_info): Update.
7250 * tui/tui-source.c (tui_set_source_content)
7251 (tui_source_is_displayed): Update.
7252 * tui/tui-layout.c (show_source_disasm_command, show_data)
7253 (show_source_or_disasm_and_command): Update.
7254 * tui/tui-disasm.c (tui_set_disassem_content)
7255 (tui_get_begin_asm_address): Update.
7256 * tui/tui-data.h (struct tui_locator_element): Remove.
7257 (union tui_which_element) <locator>: Remove.
7258 (struct tui_locator_window): New.
7259 (tui_locator_win_info_ptr): Change return type.
7260 * tui/tui-data.c (_locator): Change type.
7261 (tui_locator_win_info_ptr): Change return type.
7262 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7263 (tui_alloc_content): Add assert.
7264
489e9d8b
TT
72652019-06-25 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-winsource.c
7268 (tui_exec_info_window::maybe_allocate_content): New method.
7269 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7270 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7271 (make_source_or_disasm_window): Add cast.
7272 * tui/tui-data.h (union tui_which_element) <simple_string>:
7273 Remove.
7274 (struct tui_source_info): New.
7275 (struct tui_source_window_base) <execution_info>: Change type.
7276 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7277 case, and add assert.
7278 (tui_alloc_content): Add assert.
7279
c3fabb7d
TT
72802019-06-25 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7283 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7284 * tui/tui-data.c (tui_alloc_win_info): Remove.
7285
bbc228ee
TT
72862019-06-25 Tom Tromey <tom@tromey.com>
7287
7288 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7289 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7290 can_highlight.
7291
5fcee43a
TT
72922019-06-25 Tom Tromey <tom@tromey.com>
7293
7294 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7295 make_visible_with_new_height method.
7296 (tui_win_info::make_visible_with_new_height): New method.
7297 (tui_source_window_base::do_make_visible_with_new_height)
7298 (tui_data_window::do_make_visible_with_new_height)
7299 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7300 (make_visible_with_new_height): Remove.
7301 (tui_resize_all, tui_adjust_win_heights): Use
7302 make_visible_with_new_height method.
7303 * tui/tui-data.h (struct tui_win_info)
7304 <do_make_visible_with_new_height, make_visible_with_new_height>:
7305 New methods.
7306 (struct tui_source_window_base, struct tui_data_window)
7307 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7308 methods.
7309
d83f1fe6
TT
73102019-06-25 Tom Tromey <tom@tromey.com>
7311
7312 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7313 method.
7314 (update_tab_width): Call update_tab_width method.
7315 * tui/tui-data.h (struct tui_win_info)
7316 (struct tui_source_window_base) <update_tab_width>: New methods.
7317
17374de4
TT
73182019-06-25 Tom Tromey <tom@tromey.com>
7319
7320 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7321 parameter.
7322 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7323 parameter.
7324 (tui_gen_win_info::make_visible): Update.
7325 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7326 parameter.
7327 * tui/tui-data.h (enum tui_box): New enum.
7328 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7329
f936bca2
TT
73302019-06-25 Tom Tromey <tom@tromey.com>
7331
7332 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7333 init_and_make_win for EXEC_INFO_WIN.
7334 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7335 longer inline.
7336 (struct tui_win_info) <~tui_win_info>: Inline.
7337 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7338 Don't declare.
7339 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7340 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7341 Remove.
7342 (tui_initialize_static_data): Update.
7343 (~tui_gen_win_info): Handle more cleanup here.
7344 (~tui_source_window_base): Delete "execution_info".
7345 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7346
d6ba6a11
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-layout.c (make_command_window): Don't set
7350 can_highlight.
7351 (show_source_disasm_command): Call the reset method.
7352 (show_data): Don't set can_highlight. Call the reset method.
7353 (tui_gen_win_info::reset): Rename from init_gen_win_info
7354 (init_and_make_win): Simplify. Return tui_gen_win_info.
7355 (show_source_or_disasm_and_command): Call the reset method.
7356 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7357 (struct tui_cmd_window): Set can_highlight.
7358
48a3bd16
TT
73592019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7362 from make_visible.
7363 (tui_make_visible, tui_make_invisible): Rewrite.
7364 (tui_win_info::make_visible): Remove.
7365 (tui_source_window_base::make_visible): Update.
7366 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7367 method. Moved from...
7368 (struct tui_win_info) <make_visible>: ...here.
7369
c3bd716f
TT
73702019-06-25 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-winsource.c
7373 (tui_source_window_base::do_scroll_horizontal): Remove direction
7374 parameter.
7375 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7376 direction parameter.
7377 * tui/tui-win.c (tui_win_info::forward_scroll)
7378 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7379 (tui_win_info::right_scroll): Update.
7380 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7381 direction parameter.
7382 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7383 direction parameter.
7384 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7385 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7386 Remove direction parameter.
7387 (struct tui_source_window_base, struct tui_source_window)
7388 (struct tui_disasm_window, struct tui_data_window)
7389 (struct tui_cmd_window): Update.
7390
21c32dca
TT
73912019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-winsource.h (tui_set_exec_info_content)
7394 (tui_show_exec_info_content, tui_erase_exec_info_content)
7395 (tui_clear_exec_info_content, tui_update_exec_info): Change
7396 argument to tui_source_window_base.
7397 * tui/tui-winsource.c (tui_set_exec_info_content)
7398 (tui_show_exec_info_content, tui_erase_exec_info_content)
7399 (tui_clear_exec_info_content, tui_update_exec_info): Change
7400 argument to tui_source_window_base.
7401
73fbdc65
TT
74022019-06-25 Tom Tromey <tom@tromey.com>
7403
7404 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7405 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7406
33325343
TT
74072019-06-25 Tom Tromey <tom@tromey.com>
7408
7409 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7410 check.
7411
29d2c474
TT
74122019-06-25 Tom Tromey <tom@tromey.com>
7413
7414 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7415 type to void.
7416 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7417 type to void.
7418 * tui/tui-source.c (tui_set_source_content): Update.
7419 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7420
152f3f4b
TT
74212019-06-25 Tom Tromey <tom@tromey.com>
7422
7423 * tui/tui-win.c (window_name_completer, tui_set_focus)
7424 (tui_all_windows_info): Use name method.
7425 * tui/tui-data.h (struct tui_gen_win_info)
7426 (struct tui_source_window, struct tui_disasm_window)
7427 (struct tui_data_window, struct tui_cmd_window) <name>: New
7428 method.
7429 (tui_win_name): Don't declare.
7430 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7431 (tui_win_name): Remove.
7432
be4da588
TT
74332019-06-25 Tom Tromey <tom@tromey.com>
7434
7435 * tui/tui-winsource.h (tui_update_source_window)
7436 (tui_update_source_window_as_is): Change parameter type.
7437 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7438 to be a tui_source_window_base.
7439 (tui_update_source_window_as_is): Likewise.
7440 * tui/tui-win.c (make_visible_with_new_height): Update.
7441
5b81daba
TT
74422019-06-25 Tom Tromey <tom@tromey.com>
7443
7444 * tui/tui-winsource.c (tui_erase_source_content)
7445 (tui_show_source_content, tui_show_exec_info_content)
7446 (tui_erase_exec_info_content): Use refresh_window method.
7447 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7448 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7449 from tui_refresh_win.
7450 (tui_data_window::refresh_window): New method.
7451 (tui_win_info::refresh, tui_source_window_base::refresh)
7452 (tui_refresh_all): Use refresh_window method.
7453 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7454 method.
7455 * tui/tui-regs.c (tui_display_register): Call refresh_window
7456 method.
7457 * tui/tui-layout.c (show_source_disasm_command)
7458 (show_source_or_disasm_and_command): Call refresh_window method.
7459 * tui/tui-data.h (struct tui_gen_win_info)
7460 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7461 New method.
7462
cb2ce893
TT
74632019-06-25 Tom Tromey <tom@tromey.com>
7464
7465 * tui/tui.c (tui_rl_other_window, tui_enable)
7466 (tui_is_window_visible, tui_get_command_dimension): Update.
7467 * tui/tui-winsource.c (tui_update_source_window_as_is)
7468 (tui_clear_source_content, tui_erase_source_content)
7469 (tui_show_source_line, tui_source_window_base::refill)
7470 (tui_source_window_base::do_scroll_horizontal)
7471 (tui_source_window_base::set_is_exec_point_at)
7472 (tui_update_breakpoint_info, tui_set_exec_info_content)
7473 (tui_alloc_source_buffer, tui_line_is_displayed)
7474 (tui_addr_is_displayed): Update.
7475 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7476 (tui_check_and_display_highlight_if_needed)
7477 (tui_win_info::make_visible, tui_win_info::refresh)
7478 (tui_refresh_all): Update.
7479 * tui/tui-windata.c (tui_first_data_item_displayed)
7480 (tui_delete_data_content_windows, tui_erase_data_content)
7481 (tui_display_all_data, tui_data_window::refresh_all)
7482 (tui_check_data_values): Update.
7483 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7484 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7485 (tui_win_info::backward_scroll, tui_refresh_all_win)
7486 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7487 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7488 (tui_source_window_base::set_new_height)
7489 (tui_data_window::set_new_height)
7490 (make_invisible_and_set_new_height)
7491 (make_visible_with_new_height, new_height_ok)
7492 (parse_scrolling_args): Update.
7493 * tui/tui-stack.c (tui_show_frame_info): Update.
7494 * tui/tui-source.c (tui_set_source_content)
7495 (tui_set_source_content_nil, tui_source_is_displayed)
7496 (tui_source_window::do_scroll_vertical): Update.
7497 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7498 (tui_display_registers_from, tui_display_reg_element_at_line)
7499 (tui_check_register_values, tui_reg_command): Update.
7500 * tui/tui-layout.c (tui_default_win_height)
7501 (show_source_disasm_command, show_data, init_and_make_win)
7502 (show_source_or_disasm_and_command): Update.
7503 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7504 (tui_redisplay_readline, tui_mld_flush)
7505 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7506 (tui_getc): Update.
7507 * tui/tui-disasm.c (tui_set_disassem_content)
7508 (tui_disasm_window::do_scroll_vertical): Update.
7509 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7510 Now virtual.
7511 (struct tui_win_info): Derive from tui_gen_win_info.
7512 <~tui_win_info>: Mark as override.
7513 <generic>: Remove member.
7514 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7515 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7516 (~tui_data_window, ~tui_win_info)
7517 (tui_free_all_source_wins_content): Update.
7518 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7519
ab313b35
TT
75202019-06-25 Tom Tromey <tom@tromey.com>
7521
7522 * tui/tui-layout.c (init_and_make_win): Use new.
7523 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7524 destructor, initializers.
7525 (tui_alloc_generic_win_info): Don't declare.
7526 * tui/tui-data.c (_locator): Add argument to constructor.
7527 (source_win, disasm_win): New globals.
7528 (exec_info): Remove.
7529 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7530 Update.
7531 (tui_alloc_generic_win_info): Remove.
7532 (init_content_element): Use new.
7533 (tui_win_info::tui_win_info): Update.
7534 (free_content_elements) <case DATA_WIN>: Use delete.
7535
dc2c33e4
TT
75362019-06-25 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7539 * tui/tui-windata.c (tui_first_data_item_displayed)
7540 (tui_delete_data_content_windows): Update.
7541 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7542 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7543 (tui_display_registers_from, tui_check_register_values): Update.
7544 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7545 pointer.
7546 * tui/tui-data.c (init_content_element): Update. Allocate the new
7547 window.
7548 (tui_free_data_content): Update.
7549 (free_content_elements) <case DATA_WIN>: Free the window.
7550
214a5cbe
TT
75512019-06-25 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7554 Update.
7555 * tui/tui-layout.c (make_command_window)
7556 (show_source_disasm_command, show_data, init_and_make_win)
7557 (show_source_or_disasm_and_command): Update.
7558 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7559 method.
7560 <can_highight, is_highlighted>: Now bool.
7561 (tui_set_win_highlight): Don't declare.
7562 * tui/tui-data.c (tui_set_win_highlight): Remove.
7563
8e2daf15
TT
75642019-06-25 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui-wingeneral.c (make_visible): Remove check of window
7567 type.
7568
8903bd8a
TT
75692019-06-25 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-win.c (tui_win_info::max_height)
7572 (tui_cmd_window::max_height): New methods.
7573 (new_height_ok): Call max_height.
7574 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7575 <max_height>: New method.
7576
3f02ce1e
TT
75772019-06-25 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-win.c (tui_source_window_base::set_new_height)
7580 (tui_data_window::set_new_height): New methods.
7581 (make_invisible_and_set_new_height): Call set_new_height method.
7582 * tui/tui-data.h (struct tui_win_info)
7583 (struct tui_source_window_base, struct tui_data_window)
7584 <set_new_height>: New method.
7585
1825f487
TT
75862019-06-25 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7589 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7590 tui_refresh_data_win.
7591 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7592 method.
7593 (tui_refresh_all_win): Call the refresh_all method.
7594 (tui_set_focus): Likewise.
7595 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7596 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7597 Likewise.
7598
ad54d15b
TT
75992019-06-25 Tom Tromey <tom@tromey.com>
7600
7601 * tui/tui-winsource.h (tui_refill_source_window)
7602 (tui_set_is_exec_point_at): Don't declare.
7603 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7604 (tui_source_window_base::refill): Rename from
7605 tui_refill_source_window.
7606 (tui_source_window_base::do_scroll_horizontal): Update.
7607 (tui_source_window_base::set_is_exec_point_at): Rename from
7608 tui_set_is_exec_point_at.
7609 (tui_update_all_breakpoint_info): Update.
7610 * tui/tui-stack.c (tui_show_frame_info): Update.
7611 * tui/tui-layout.c (show_data): Add cast.
7612 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7613 * tui/tui-data.h (struct tui_source_window_base) <refill,
7614 set_is_exec_point_at>: New methods.
7615 (tui_source_windows, tui_add_to_source_windows): Update types.
7616 (tui_add_to_source_windows): Remove redundant declaration.
7617 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7618 (tui_source_windows): Change return type.
7619 (tui_clear_source_windows_detail): Update.
7620 (tui_add_to_source_windows): Change type of parameter.
7621 (tui_free_all_source_wins_content): Update.
7622
2042b506
TT
76232019-06-25 Tom Tromey <tom@tromey.com>
7624
7625 * tui/tui-wingeneral.c (tui_win_info::refresh)
7626 (tui_source_window_base::refresh): New methods.
7627 (tui_refresh_all): Call the refresh method.
7628 * tui/tui-data.h (struct tui_win_info)
7629 (struct tui_source_window_base) <refresh>: New method.
7630
56122977
TT
76312019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui.h (tui_is_window_visible): Return bool.
7634 * tui/tui.c (tui_is_window_visible): Return bool.
7635 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7636 (tui_make_visible, tui_make_invisible)
7637 (tui_win_info::make_visible)
7638 (tui_source_window_base::make_visible, make_all_visible)
7639 (tui_make_all_visible, tui_make_all_invisible): Update.
7640 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7641 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7642 bool.
7643 (struct tui_win_info, struct tui_source_window_base)
7644 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7645 * tui/tui-data.c (tui_init_generic_part): Update.
7646
cda37efb
TT
76472019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7650 (tui_source_window_base::make_visible): New methods.
7651 (make_all_visible): Make method call.
7652 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7653 (struct tui_source_window_base, struct tui_cmd_window): Override
7654 make_visible.
7655 (tui_win_is_source_type): Don't declare.
7656 * tui/tui-data.c (tui_win_is_source_type): Remove.
7657
6a0ee02c
TT
76582019-06-25 Tom Tromey <tom@tromey.com>
7659
7660 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7661 NULL check.
7662
63901aec
TT
76632019-06-25 Tom Tromey <tom@tromey.com>
7664
7665 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7666 Inline constructor. Add initializers for members.
7667 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7668 constructors; now inline in class.
7669
ceb13a13
TT
76702019-06-25 Tom Tromey <tom@tromey.com>
7671
7672 * tui/tui-regs.c (tui_show_registers): Update.
7673 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7674 bool.
7675 * tui/tui-data.c (tui_data_window::clear_detail)
7676 (tui_data_window): Update.
7677
238eb706
TT
76782019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-windata.c (tui_display_all_data)
7681 (tui_display_data_from_line, tui_display_data_from)
7682 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7683 Update.
7684 * tui/tui-regs.c (tui_last_regs_line_no)
7685 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7686 (tui_show_registers, tui_show_register_group)
7687 (tui_display_registers_from, tui_display_reg_element_at_line)
7688 (tui_display_registers_from_line, tui_check_register_values)
7689 (tui_reg_next, tui_reg_prev): Update.
7690 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7691 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7692 tui_data_window.
7693 (struct tui_win_info) <detail>: Remove. Add new fields from
7694 tui_data_info.
7695 (TUI_DATA_WIN): Add cast.
7696 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7697 (~tui_data_window): Simplify.
7698
81491aa0
TT
76992019-06-25 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-layout.c (show_source_disasm_command)
7702 (show_source_or_disasm_and_command): Update.
7703 * tui/tui-io.c (update_cmdwin_start_line)
7704 (tui_redisplay_readline): Update.
7705 * tui/tui-data.h (struct tui_command_info): Remove.
7706 (struct tui_win_info) <detail>: Remove command_info member.
7707 (struct tui_data_window) <start_line>: New member, from
7708 tui_command_info.
7709 (TUI_CMD_WIN): Add casts.
7710
e6e41501
TT
77112019-06-25 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-winsource.c (tui_update_source_window)
7714 (tui_refill_source_window)
7715 (tui_source_window_base::do_scroll_horizontal)
7716 (tui_update_breakpoint_info, tui_set_exec_info_content)
7717 (tui_show_exec_info_content, tui_erase_exec_info_content)
7718 (tui_clear_exec_info_content): Update.
7719 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7720 Update.
7721 * tui/tui-win.c (make_invisible_and_set_new_height)
7722 (make_visible_with_new_height): Update.
7723 * tui/tui-source.c (tui_set_source_content)
7724 (tui_show_symtab_source): Update.
7725 * tui/tui-layout.c (extract_display_start_addr)
7726 (show_source_disasm_command, show_data)
7727 (make_source_or_disasm_window)
7728 (show_source_or_disasm_and_command): Update.
7729 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7730 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7731 "gdbarch".
7732 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7733 to tui_source_window_base.
7734 (struct tui_win_info) <detail>: Remove source_info member.
7735 (struct tui_source_window_base) <has_locator>: Inline.
7736 Move contents from tui_source_info; rename has_locator member to
7737 m_has_locator.
7738 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7739 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7740 header file.
7741 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7742 Simplify.
7743 (tui_free_all_source_wins_content): Cast to
7744 tui_source_window_base.
7745
44f0e208
TT
77462019-06-25 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-win.c (make_invisible_and_set_new_height)
7749 (make_visible_with_new_height): Call has_locator method.
7750 * tui/tui-layout.c (show_source_disasm_command, show_data)
7751 (show_source_or_disasm_and_command): Update for bool change.
7752 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7753 (tui_win_info) <has_locator>: New method.
7754 (struct tui_source_window_base) <has_locator>: New method.
7755 (tui_win_has_locator): Don't declare.
7756 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7757 from tui_win_has_locator.
7758 (tui_source_window_base): Use false, not FALSE.
7759
7778b912
TT
77602019-06-25 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7763 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7764 clear_detail method directly.
7765 (tui_clear_win_detail): Remove.
7766
f83d391c
TT
77672019-06-25 Tom Tromey <tom@tromey.com>
7768
7769 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7770 "this", not TUI_DISASM_WIN.
7771
13446e05
TT
77722019-06-25 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7775 declare.
7776 * tui/tui-winsource.c
7777 (tui_source_window_base::do_scroll_horizontal): Rename from
7778 tui_horizontal_source_scroll.
7779 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7780 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7781 from tui_vertical_data_scroll.
7782 * tui/tui-win.h (tui_scroll): Don't declare.
7783 * tui/tui-win.c (tui_win_info::forward_scroll)
7784 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7785 (tui_win_info::right_scroll): Rename and update.
7786 (tui_scroll_forward_command, tui_scroll_backward_command)
7787 (tui_scroll_left_command, tui_scroll_right_command): Update.
7788 (tui_scroll): Remove.
7789 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7790 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7791 from tui_vertical_source_scroll.
7792 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7793 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7794 from tui_vertical_disassem_scroll.
7795 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7796 do_scroll_horizontal>: New methods.
7797 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7798 Likewise.
7799 (struct tui_source_window_base): Add do_scroll_horizontal.
7800 (struct tui_source_window, struct tui_disasm_window): Add
7801 do_scroll_vertical.
7802 (struct tui_data_window, struct tui_cmd_window): Add
7803 do_scroll_horizontal and do_scroll_vertical.
7804 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7805
5cf82909
TT
78062019-06-25 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-data.h (struct tui_source_window_base): New struct.
7809 (struct tui_source_window): Derive from tui_source_window_base.
7810 (struct tui_disasm_window): New struct.
7811 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7812 from tui_source_window::clear_detail.
7813 (tui_source_window_base): Rename from tui_source_window.
7814 (~tui_source_window_base): Rename from ~tui_source_window.
7815 (tui_alloc_win_info): Create a tui_disasm_window.
7816
ee1d42d6
TT
78172019-06-25 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-data.h (struct tui_source_window)
7820 (struct tui_data_window): Declare destructors.
7821 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7822 destructors.
7823 (tui_win_info): Simplify.
7824
b4eb2452
TT
78252019-06-25 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui-winsource.c (tui_display_main)
7828 (tui_update_source_windows_with_addr)
7829 (tui_update_all_breakpoint_info): Update.
7830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7831 (new_height_ok, parse_scrolling_args): Update.
7832 * tui/tui-stack.c (tui_show_frame_info): Update.
7833 * tui/tui-data.h (struct tui_list): Remove.
7834 (tui_source_windows): Return a reference to a std::vector.
7835 * tui/tui-data.c (source_windows): Now a std::vector.
7836 (tui_source_windows): Change return type.
7837 (tui_clear_source_windows): Rewrite.
7838 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7839 (tui_free_all_source_wins_content): Rewrite.
7840
8761a91b
TT
78412019-06-25 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7844 (struct tui_data_window, struct tui_cmd_window): Declare
7845 clear_detail method.
7846 * tui/tui-data.c (tui_source_window::clear_detail)
7847 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7848 methods.
7849 (tui_clear_win_detail): Simplify.
7850
0ed69eda
TT
78512019-06-25 Tom Tromey <tom@tromey.com>
7852
7853 * tui/tui-layout.c (make_source_window, make_disasm_window)
7854 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7855 Return the new window.
7856 (show_source_disasm_command, show_data)
7857 (show_source_or_disasm_and_command): Update.
7858
82432e10
TT
78592019-06-25 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7862 parameter. Return the new window.
7863 (show_source_disasm_command): Update and remove NULL check.
7864 (show_source_or_disasm_and_command): Update.
7865
ec328aa5
TT
78662019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7869
33b906ab
TT
78702019-06-25 Tom Tromey <tom@tromey.com>
7871
7872 * tui/tui-data.h (struct tui_win_info): Make constructor
7873 protected. Make destructor virtual. Add initializers.
7874 (tui_source_window, tui_data_window, tui_cmd_window): New
7875 classes.
7876 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7877 constructor. Add "type" parameter.
7878 (tui_source_window, tui_data_window, tui_cmd_window): New
7879 constructors.
7880 (tui_alloc_win_info): Instantiate the appropriate subclass.
7881
e7e11af4
TT
78822019-06-25 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-win.c (tui_resize_all): Use delete.
7885 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7886 destructor.
7887 (tui_free_window): Don't declare.
7888 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7889 Update.
7890
6792b55e
TT
78912019-06-25 Tom Tromey <tom@tromey.com>
7892
7893 * tui/tui-data.h (struct tui_win_info): Add constructor.
7894 * tui/tui-data.c (tui_alloc_win_info): Use new.
7895 (tui_free_window): Use delete.
7896
f95675e1
TT
78972019-06-22 Tom Tromey <tom@tromey.com>
7898
7899 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7900 declare.
7901 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7902
5bff081c
TT
79032019-06-22 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7906 declare.
7907 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7908
47e3f474
TV
79092019-06-22 Tom de Vries <tdevries@suse.de>
7910
7911 * dwarf2read.c (create_addrmap_from_aranges)
7912 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7913 instead of '%zu'.
7914
fd5866f6
SM
79152019-06-21 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2read.h (dwarf2_section_info_def): Remove.
7918 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7919 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7920 std::vector<dwarf2_section_info>.
7921 (struct dwo_file) <~dwo_file>: Remove.
7922 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7923 types field.
7924 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7925 (dwarf2_read_debug_names): Likewise.
7926 (create_debug_types_hash_table): Change parameter type to
7927 array_view, adjust code accordingly.
7928 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7929 (partial_die_info::fixup): Likewise.
7930 (determine_prefix): Likewise.
7931 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7932
fb1eb2f9
SM
79332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7936 gdb_bfd_ref_ptr.
7937 <~dwo_file>: Remove call to gdb_bfd_unref.
7938 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7939 gdb_bfd_ref_ptr::get.
7940
51ac9db5
SM
79412019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7942
7943 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7944 type to htab_up.
7945 * dwarf2read.c (struct dwo_file): Initialize fields.
7946 <~dwo_file>: New.
7947 (free_dwo_file): Remove, move content to ~dwo_file.
7948 (struct dwo_file_deleter): Remove.
7949 (dwo_file_up>: Remove custom deleter.
7950 (free_dwo_files): Remove.
7951 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7952 dwo_files.
7953 (process_skeletonless_type_units): Call unique_ptr::get.
7954 (allocate_dwo_file_hash_table): Add deleter to created hash
7955 table. Change return type to htab_up.
7956 (lookup_dwo_file_slot): Don't memset dwo_file, call
7957 unique_ptr::get.
7958 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7959 (create_dwo_unit_in_dwp_v2): Likewise.
7960 (open_and_init_dwo_file): Likewise.
7961 (free_dwo_file_from_slot): Remove.
7962
dc4ccb6f
SM
79632019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * dwarf2read.h (struct dwarf2_section_info) <readin,
7966 is_virtual>: Change type to bool.
7967 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7968 true instead of 1.
7969
e6a1c5cb
TT
79702019-06-19 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-data.h (tui_init_content_element): Don't declare.
7973
6f6ffbeb
TT
79742019-06-19 Tom Tromey <tom@tromey.com>
7975
7976 * tui/tui-data.h (tui_init_win_info): Don't declare.
7977
f23f598e
TV
79782019-06-19 Tom de Vries <tdevries@suse.de>
7979
7980 * dwarf2read.h (abstract_to_concrete): Change type to
7981 std::unordered_map<sect_offset, std::vector<sect_offset>,
7982 gdb::hash_enum<sect_offset>>.
7983
680e1bee
TT
79842019-06-19 Tom Tromey <tromey@adacore.com>
7985
7986 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7987 EVAL_AVOID_SIDE_EFFECTS specially.
7988
dcf37923
TT
79892019-06-19 Tom Tromey <tromey@adacore.com>
7990
7991 * source-cache.c (highlighter): New global.
7992 (source_cache::get_source_lines): Create a highlighter on demand.
7993
494986d5
AB
79942019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * defs.h (deprecated_interactive_hook): Delete declaration.
7997 * interps.c (clear_interpreter_hooks): Remove use of
7998 deprecated_interactive_hook.
7999 * top.c (deprecated_interactive_hook): Delete definition.
8000 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8001
3360b6e7
TV
80022019-06-18 Tom de Vries <tdevries@suse.de>
8003
8004 PR gdb/24515
8005 * dwarf2read.h (abstract_to_concrete): Change type from
8006 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8007 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8008 * dwarf2read.c (read_variable): Update.
8009 (dwarf2_fetch_die_loc_sect_off): Update.
8010
310b3441
TV
80112019-06-17 Tom de Vries <tdevries@suse.de>
8012
8013 PR gdb/24617
8014 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8015 accessing parent[parent_len - 1].
8016
ba9777be
PP
80172019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8018
8019 PR gdb/24364
8020 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8021 call dtrace_process_dof with NULL dof.
8022
2b9f6e89
TV
80232019-06-16 Tom de Vries <tdevries@suse.de>
8024
8025 PR gdb/24445
8026 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8027
431b3ead
TT
80282019-06-16 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8031 (make_all_visible): Use address of member.
8032
d04b44a1
TT
80332019-06-16 Tom Tromey <tom@tromey.com>
8034
8035 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8036 (tui_free_window, free_content, free_content_elements): Remove
8037 unnecessary cast.
8038 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8039 cast.
8040 * tui/tui-regs.c (tui_show_register_group)
8041 (tui_display_registers_from, tui_display_reg_element_at_line):
8042 Remove unnecessary cast.
8043
bf5142e7
AB
80442019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8045
8046 * linux-nat.c (normal_mask): Delete.
8047 (_initialize_linux_nat): Don't initialise normal_mask.
8048
c4973306
SM
80492019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8050
8051 PR gdb/24445
8052 * dwarf-index-write.h (write_psymtabs_to_index): Add
8053 dwz_basename parameter.
8054 * dwarf-index-write.c (write_gdbindex): Move file writing to
8055 write_gdbindex_1. Change return type void.
8056 (assert_file_size): Move up, remove filename parameter.
8057 (write_gdbindex_1): New function.
8058 (write_debug_names): Change return type to void, call
8059 assert_file_size.
8060 (struct index_wip_file): New struct.
8061 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8062 file logic to index_wip_file. Write index for dwz file if
8063 needed.
8064 (save_gdb_index_command): Pass basename of dwz file, if present.
8065 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8066 build-id of dwz file, if present.
8067 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8068 (dwarf2_get_dwz_file): Likewise.
8069 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8070 (dwarf2_get_dwz_file): Likewise.
8071
395f9c91
TT
80722019-06-16 Tom Tromey <tom@tromey.com>
8073
8074 * coffread.c (process_coff_symbol): Use xstrdup.
8075 * value.c (create_internalvar): Use xstrdup.
8076
cafb3438
TT
80772019-06-16 Tom Tromey <tom@tromey.com>
8078
8079 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8080 * breakpoint.c (stopin_command, stopat_command)
8081 (until_break_command, decode_location_default): Remove unnecessary
8082 cast.
8083 * utils.c (subset_compare): Remove unnecessary cast.
8084 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8085 cast.
8086 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8087 cast.
8088 * infcmd.c (path_command): Remove unnecessary cast.
8089 * coffread.c (decode_type): Remove unnecessary cast.
8090 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8091 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8092 * tui/tui-stack.c (tui_show_locator_content)
8093 (tui_show_frame_info): Remove unnecessary cast.
8094 * tui/tui-win.c (tui_scroll_forward_command)
8095 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8096 (parse_scrolling_args): Remove unnecessary cast.
8097 * tui/tui-data.c (init_win_info, tui_del_window)
8098 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8099 (free_content_elements): Remove unnecessary cast.
8100 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8101 unnecessary cast.
8102 * tui/tui-source.c (tui_set_source_content)
8103 (tui_vertical_source_scroll): Remove unnecessary cast.
8104 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8105 cast.
8106 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8107 * tui/tui-regs.c (tui_display_registers_from)
8108 (tui_display_register): Remove unnecessary cast.
8109 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8110 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8111 (make_visible): Remove unnecessary cast.
8112 * tui/tui-winsource.c (tui_erase_source_content)
8113 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8114 unnecessary cast.
8115 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8116 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8117 * stabsread.c (read_type, read_array_type, read_range_type):
8118 Remove unnecessary cast.
8119 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8120 (parse_symbol, parse_type, upgrade_type, parse_external)
8121 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8122 unnecessary cast.
8123 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8124
730ead81
TT
81252019-06-16 Tom Tromey <tom@tromey.com>
8126
8127 * tui/tui-data.c (tui_alloc_generic_win_info)
8128 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8129 checks.
8130
584a927c
AB
81312019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8132 Andrew Burgess <andrew.burgess@embecosm.com>
8133
8134 * f-typeprint.c (f_print_type): Don't return early for not
8135 associated or not allocated types.
8136 (f_type_print_varspec_suffix): Add print_rank parameter and print
8137 ranks of array types in case they dangling.
8138 (f_type_print_base): Add print_rank parameter.
8139
30056ea0
AB
81402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * NEWS: Mention new MI commands.
8143 * break-catch-throw.c (enum exception_event_kind): Move to
8144 breakpoint.h.
8145 (print_mention_exception_catchpoint): Output text as a single
8146 message.
8147 (catch_exception_command_1): Rename to...
8148 (catch_exception_event): ...this, make non-static, update header
8149 command, and change some parameter types.
8150 (catch_catch_command): Update for changes to
8151 catch_exception_command_1.
8152 (catch_throw_command): Likewise.
8153 (catch_rethrow_command): Likewise.
8154 * breakpoint.c (enum exception_event_kind): Delete.
8155 * breakpoint.h (enum exception_event_kind): Moved here from
8156 break-catch-throw.c.
8157 (catch_exception_event): Declare.
8158 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8159 (mi_cmd_catch_throw): New function.
8160 (mi_cmd_catch_rethrow): New function.
8161 (mi_cmd_catch_catch): New function.
8162 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8163 'catch-catch' entries.
8164 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8165 (mi_cmd_catch_rethrow): Declare.
8166 (mi_cmd_catch_catch): Declare.
8167
ec8e2b6d
AB
81682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8169
8170 * annotate.c (annotate_source_line): Change return type to void,
8171 update implementation to match.
8172 * annotate.h (annotate_source_line): Change return type to void,
8173 update header comment.
8174 * stack.c (print_frame_info): Don't change what frame information
8175 is printed based on whether annotations are on or not.
8176
0d3abd8c
AB
81772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8180 (annotate_source): Make static.
8181 (annotate_source_line): Moved from source.c and renamed from
8182 identify_source_line. Update the return type.
8183 * annotate.h (annotate_source): Delete declaration.
8184 (annotate_source_line): Declaration moved from source.h, and
8185 renamed from identify_source_line. Return type updated.
8186 * source.c (identify_source_line): Moved to annotate.c and renamed
8187 to annotate_source_line.
8188 (info_line_command): Remove check of annotation_level.
8189 * source.h (identify_source_line): Move declaration to annotate.h
8190 and rename to annotate_source_line.
8191 * stack.c: Add 'annotate.h' include.
8192 (print_frame_info): Remove check of annotation_level before
8193 calling annotate_source_line.
8194
00df30ae
AB
81952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * source-cache.c (source_cache::get_plain_source_lines): Use
8198 open_source_file_with_line_charpos instead of just
8199 open_source_file, remove call to find_source_lines.
8200 (source_cache::get_source_lines): Likewise.
8201 * source.c (find_source_lines): Make static.
8202 (get_filename_and_charpos): Renamed into...
8203 (open_source_file_with_line_charpos): ..this along with changes to
8204 return a scoped_fd, and some other minor clean ups.
8205 (identify_source_line): Use open_source_file_with_line_charpos.
8206 (search_command_helper): Use open_source_file_with_line_charpos
8207 instead of just open_source_file, remove call to
8208 find_source_lines.
8209 * source.h (open_source_file_with_line_charpos): Declare new
8210 function.
8211 (find_source_lines): Delete declaration.
8212
afda45a2
AB
82132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * source.c (get_filename_and_charpos): Remove fullname
8216 parameter.
8217 (identify_source_line): Update call to get_filename_and_charpos.
8218
0735b091
TT
82192019-06-14 Tom Tromey <tromey@adacore.com>
8220
8221 PR gdb/24502:
8222 * ui-style.h (skip_ansi_escape): Update comment.
8223 * ui-file.h (class no_terminal_escape_file): New class.
8224 * ui-file.c (no_terminal_escape_file::write)
8225 (no_terminal_escape_file::puts): New methods.
8226 * cli/cli-logging.c (handle_redirections): Use
8227 no_terminal_escape_file.
8228
52ce35e2
TT
82292019-06-14 Tom Tromey <tromey@adacore.com>
8230
8231 * NEWS: Move convenience variable news above Python news.
8232
73cc7272
TT
82332019-06-14 Tom Tromey <tom@tromey.com>
8234
8235 * gnulib: Move directory to top-level.
8236 * configure.ac: Don't configure gnulib.
8237 * configure: Rebuild.
8238 * common/common-defs.h: Use new path to gnulib.
8239 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8240 (GNULIB_H): Remove.
8241 (INCGNU): Look in new gnulib location.
8242 (HFILES_NO_SRCDIR): Remove gnulib files.
8243 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8244 (generated_files): Remove GNULIB_H.
8245 ($(LIBGNU), all-lib): Remove targets.
8246 (distclean): Don't mention GNULIB_BUILDDIR.
8247 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8248
f5686554
TT
82492019-06-14 Tom Tromey <tromey@adacore.com>
8250
8251 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8252 Warn if symbol file does not provide any symbols.
8253
a0c1ffed
TT
82542019-06-14 Tom Tromey <tromey@adacore.com>
8255
8256 * source.c (find_and_open_source): Respect basenames_may_differ.
8257
7c39e397
AB
82582019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8259
8260 * annotate.c (annotate_breakpoints_invalid): Make use of
8261 scoped_restore_terminal_state.
8262 (annotate_frames_invalid): Likewise.
8263
f411722c
TT
82642019-06-14 Tom Tromey <tromey@adacore.com>
8265
8266 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8267 allow assignment to an internalvar.
8268
4268ec18
TT
82692019-06-14 Tom Tromey <tromey@adacore.com>
8270
8271 * ada-lex.l: Allow "_" in attribute names.
8272
abdb711e
TT
82732019-06-14 Tom Tromey <tromey@adacore.com>
8274
8275 PR gdb/24653:
8276 * regcache.c (registers_changed): Don't call alloca.
8277 * top.c (execute_command): Don't call alloca.
8278
4c048731
PA
82792019-06-13 Pedro Alves <palves@redhat.com>
8280
8281 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8282 'expression'. When parsing an expression, error out if there's
8283 junk after "unlimited".
8284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8285 (do_set_command): Adjust calls to is_unlimited_literal.
8286
66eb1ed3
PA
82872019-06-13 Pedro Alves <palves@redhat.com>
8288
8289 * compile/compile.c (make_compile_options_def_group): Add braces
8290 around array_view initializer.
8291 * thread.c (make_thread_apply_all_options_def_group)
8292 (make_thread_apply_all_options_def_group): Likewise.
8293
3345721a
PA
82942019-06-13 Pedro Alves <palves@redhat.com>
8295
8296 * NEWS (New commands): Mention "maint test-options
8297 require-delimiter", "maint test-options unknown-is-error", "maint
8298 test-options unknown-is-operand" and "maint show
8299 test-options-completion-result".
8300 (New command options, command completion): New section.
8301 (Completion improvements): New section.
8302 Mention that you can abbreviate "unlimited".
8303
6206060d
PA
83042019-06-13 Pedro Alves <palves@redhat.com>
8305
8306 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8307 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8308 * unittests/cli-utils-selftests.c (test_parse_flags)
8309 (test_parse_flags_qcs): Delete.
8310 (test_cli_utils): Don't call deleted functions.
8311
6665660a
PA
83122019-06-13 Pedro Alves <palves@redhat.com>
8313
8314 * thread.c: Include "cli/cli-option.h".
8315 (tp_array_compar_ascending): Global.
8316 (tp_array_compar): Delete function.
8317 (tp_array_compar_ascending, tp_array_compar_descending): New
8318 functions.
8319 (ascending_option_def, qcs_flag_option_def)
8320 (thr_qcs_flags_option_defs)
8321 (make_thread_apply_all_options_def_group)
8322 (make_thread_apply_options_def_group): New.
8323 (thread_apply_all_command): Use gdb::option::process_options.
8324 (thread_apply_command_completer)
8325 (thread_apply_all_command_completer): New.
8326 (thread_apply_command): Use gdb::option::process_options.
8327 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8328 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8329 to generate help text of "thread apply". Adjust "taas"'s help.
8330 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8331 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8332
f7e13587
PA
83332019-06-13 Pedro Alves <palves@redhat.com>
8334
8335 * thread.c (thread_apply_command): Check for invalid TID with
8336 isdigit instead of !isalpha.
8337
5d707134
PA
83382019-06-13 Pedro Alves <palves@redhat.com>
8339
8340 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8341 (validate_flags_qcs): New.
8342 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8343 (validate_flags_qcs): Declare.
8344 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8345 (make_frame_apply_options_def_group): New.
8346 (frame_apply_command_count): Process options with
8347 gdb::option::process_options.
8348 (frame_apply_completer): New.
8349 (frame_apply_level_completer, frame_apply_all_completer)
8350 (frame_apply_completer): New.
8351 (_initialize_stack): Update help of "frame apply", "frame apply
8352 level", "frame apply all" and "faas" to mention supported options
8353 and install command completers.
8354 * stack.h (frame_apply_all_completer): Declare.
8355 * thread.c: Include "stack.h".
8356 (tfaas_command): Add "--".
8357 (_initialize_thread): Update help "tfaas" to mention supported
8358 options and install command completer.
8359
272d4594
PA
83602019-06-13 Pedro Alves <palves@redhat.com>
8361
8362 * completer.c (complete_nested_command_line): New.
8363 (gdb_completion_word_break_characters_throw): Add assertion.
8364 * completer.h (complete_nested_command_line): Declare.
8365
90a1ef87
PA
83662019-06-13 Pedro Alves <palves@redhat.com>
8367
8368 * stack.c (parse_backtrace_qualifiers): New.
8369 (backtrace_command): Use it.
8370 (backtrace_command_completer): Complete on qualifiers.
8371
d4c16835
PA
83722019-06-13 Pedro Alves <palves@redhat.com>
8373
8374 * frame.c: Include "cli/cli-option.h.
8375 (user_set_backtrace_options): New.
8376 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8377 Delete.
8378 (get_prev_frame): Adjust.
8379 (boolean_option_def, uinteger_option_def)
8380 (set_backtrace_option_defs): New.
8381 (_initialize_frame): Adjust and use
8382 gdb::option::add_setshow_cmds_for_options to install "set
8383 backtrace past-main" and "set backtrace past-entry".
8384 * frame.h: Include "cli/cli-option.h".
8385 (struct frame_print_options): Forward declare.
8386 (print_frame_arguments_all, print_frame_arguments_scalars)
8387 (print_frame_arguments_none): Declare.
8388 (print_entry_values): Delete declaration.
8389 (struct frame_print_options, user_frame_print_options): New.
8390 (struct set_backtrace_options): New.
8391 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8393 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8394 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8395 (list_args_or_locals): Add frame_print_options parameter.
8396 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8397 * python/py-framefilter.c (enumerate_args): Pass down
8398 USER_FRAME_PRINT_OPTIONS.
8399 * stack.c: Include "cli/cli-option.h".
8400 (print_frame_arguments_all, print_frame_arguments_scalars)
8401 (print_frame_arguments_none): Declare.
8402 (print_raw_frame_arguments, print_entry_values): Delete.
8403 (user_frame_print_options): New.
8404 (boolean_option_def, enum_option_def, frame_print_option_defs):
8405 New.
8406 (struct backtrace_cmd_options): New.
8407 (bt_flag_option_def): New.
8408 (backtrace_command_option_defs): New.
8409 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8410 (print_frame_arg, read_frame_arg, print_frame_args)
8411 (print_frame_info, print_frame): Add frame_print_options parameter
8412 and use it.
8413 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8414 (backtrace_command_1): Add frame_print_options and
8415 backtrace_cmd_options parameters and use them.
8416 (make_backtrace_options_def_group): New.
8417 (backtrace_command): Process command options with
8418 gdb::option::process_options.
8419 (backtrace_command_completer): New.
8420 (_initialize_stack): Extend "backtrace"'s help to mention
8421 supported options. Install completer for "backtrace".
8422 Install some settings commands with add_setshow_cmds_for_options.
8423
2daf894e
PA
84242019-06-13 Pedro Alves <palves@redhat.com>
8425
8426 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8427 and that "set/show print raw frame-arguments" are now deprecated.
8428
8429 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8430 command.
8431 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8432 * stack.c (_initialize_stack): Install "set/show print
8433 raw-frame-arguments", and deprecate "set/show print raw
8434 frame-arguments".
8435 * valprint.c (_initialize_valprint): Deprecate "set/show print
8436 raw".
8437
e6ed716c
PA
84382019-06-13 Pedro Alves <palves@redhat.com>
8439
8440 * compile/compile.c (struct compile_options): New.
8441 (compile_flag_option_def, compile_command_option_defs)
8442 (make_compile_options_def_group): New.
8443 (compile_file_command): Handle options with
8444 gdb::option::process_options.
8445 (compile_file_command_completer): New function.
8446 (compile_code_command): Handle options with
8447 gdb::option::process_options.
8448 (compile_code_command_completer): New function.
8449 (_initialize_compiler): Install completers for "compile code" and
8450 "compile file". Mention available options in "compile code" and
8451 "compile code"'s help.
8452 * completer.c (advance_to_completion_word): New, factored out from
8453 ...
8454 (advance_to_expression_complete_word_point): ... this.
8455 (advance_to_filename_complete_word_point): New.
8456 * completer.h (advance_to_filename_complete_word_point): New
8457 declaration.
8458
7d8062de
PA
84592019-06-13 Pedro Alves <palves@redhat.com>
8460
8461 * compile/compile.c: Include "cli/cli-option.h".
8462 (compile_print_value): Scope data pointer is now a
8463 value_print_options pointer; adjust.
8464 (compile_print_command): Process options. Scope data pointer is
8465 now a value_print_options pointer; adjust.
8466 (_initialize_compile): Update "compile print"'s help to include
8467 supported options. Install a completer for "compile print".
8468 * cp-valprint.c (show_vtblprint, show_objectprint)
8469 (show_static_field_print): Delete.
8470 (_initialize_cp_valprint): Don't install "set print
8471 static-members", "set print vtbl", "set print object" here.
8472 * printcmd.c: Include "cli/cli-option.h" and
8473 "common/gdb_optional.h".
8474 (print_command_parse_format): Rework to fill in a
8475 value_print_options instead of a format_data.
8476 (print_value): Change parameter type from format_data pointer to
8477 value_print_options reference. Adjust.
8478 (print_command_1): Process options. Adjust to pass down a
8479 value_print_options.
8480 (print_command_completer): New.
8481 (_initialize_printcmd): Install print_command_completer as
8482 handle_brkchars completer for the "print" command. Update
8483 "print"'s help to include supported options.
8484 * valprint.c: Include "cli/cli-option.h".
8485 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8486 here from cp-valprint.c.
8487 (boolean_option_def, uinteger_option_def)
8488 (value_print_option_defs, make_value_print_options_def_group):
8489 New. Use gdb::option::add_setshow_cmds_for_options to install
8490 "set print elements", "set print null-stop", "set print repeats",
8491 "set print pretty", "set print union", "set print array", "set
8492 print address", "set print symbol", "set print array-indexes".
8493 * valprint.h: Include <string> and "cli/cli-option.h".
8494 (make_value_print_options_def_group): Declare.
8495 (print_value): Change parameter type from format_data pointer to
8496 value_print_options reference.
8497 (print_command_completer): Declare.
8498
9d0faba9
PA
84992019-06-13 Pedro Alves <palves@redhat.com>
8500
8501 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8502 (COMMON_SFILES): Add maint-test-settings.c.
8503 * cli/cli-decode.c (boolean_enums): New global, factored out from
8504 ...
8505 (add_setshow_boolean_cmd): ... here.
8506 * cli/cli-decode.h (boolean_enums): Declare.
8507 * cli/cli-option.c: New file.
8508 * cli/cli-option.h: New file.
8509 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8510 factored out from ...
8511 (parse_cli_boolean_value(const char *)): ... this.
8512 (is_unlimited_literal): Change parameter type to pointer to
8513 pointer. Adjust and advance ARG pointer.
8514 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8515 (parse_cli_var_enum): New, factored out from ...
8516 (do_set_command): ... this. Adjust.
8517 * cli/cli-setshow.h (parse_cli_boolean_value)
8518 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8519 (parse_cli_var_enum): Declare.
8520 * cli/cli-utils.c: Include "cli/cli-option.h".
8521 (get_ulongest): New.
8522 * cli/cli-utils.h (get_ulongest): Declare.
8523 (check_for_argument): New overloads.
8524 * maint-test-options.c: New file.
8525
2c722807
PA
85262019-06-13 Pedro Alves <palves@redhat.com>
8527
8528 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8529 parse a range if "-" is at the end of the string.
8530
dee7b4c8
PA
85312019-06-13 Pedro Alves <palves@redhat.com>
8532
8533 * cli/cli-setshow.c (parse_auto_binary_operation)
8534 (parse_cli_boolean_value): Don't allow "o".
8535
dca0f6c0
PA
85362019-06-13 Pedro Alves <palves@redhat.com>
8537
8538 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8539 * NEWS: Mention maint test-settings KIND.
8540 * maint-test-settings.c: New file.
8541
597bf39d
PA
85422019-06-13 Pedro Alves <palves@redhat.com>
8543
8544 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8545 completer.
8546 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8547 "set" completers.
8548
48c410fb
PA
85492019-06-13 Pedro Alves <palves@redhat.com>
8550
8551 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8552 after item.
8553
93bcb043
PA
85542019-06-13 Pedro Alves <palves@redhat.com>
8555
8556 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8557
cbba3ecd
PA
85582019-06-13 Pedro Alves <palves@redhat.com>
8559
8560 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8561 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8562 call.
8563 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8564 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8565 calls.
8566 (check_for_argument): Skip spaces after argument.
8567
b9a3f842
PA
85682019-06-13 Pedro Alves <palves@redhat.com>
8569
8570 * thread.c (thread_apply_command): Adjust TID parsing.
8571 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8572 detected before end of string.
8573 (tid_is_in_list): Error out if LIST is invalid.
8574
3844e605
PA
85752019-06-13 Pedro Alves <palves@redhat.com>
8576
8577 * completer.c (complete_line_internal_1): Rewind completion word
8578 point.
8579 (completion_tracker::advance_custom_word_point_by): Change
8580 parameter type to int.
8581 * completer.h (completion_tracker::advance_custom_word_point_by):
8582 Likewise.
8583
00b56dbe
PA
85842019-06-13 Pedro Alves <palves@redhat.com>
8585
8586 * completer.c (advance_to_completion_word): Handle delimiters.
8587
d106773e
PA
85882019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8589
8590 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8591
08f10e02
TT
85922019-06-11 Tom Tromey <tom@tromey.com>
8593
8594 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8595 (xmalloc_failed): Move to alloc.c.
8596 * alloc.c: New file.
8597 * Makefile.in (COMMON_SFILES): Add alloc.c.
8598
1c7fe951
TT
85992019-06-11 Tom Tromey <tom@tromey.com>
8600
8601 * nat/linux-waitpid.c: Don't include server.h.
8602 (linux_debug): Remove.
8603 (my_waitpid): Update.
8604
89549d7f
TT
86052019-06-11 Tom Tromey <tromey@adacore.com>
8606
8607 * infcall.c (_initialize_infcall): Remove trailing newline from
8608 help.
8609 * user-regs.c (_initialize_user_regs): Remove trailing newline
8610 from help.
8611 * typeprint.c (_initialize_typeprint): Remove trailing newline
8612 from help.
8613 * reverse.c (_initialize_reverse): Remove trailing newlines from
8614 help.
8615 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8616 from help.
8617 * language.c (add_set_language_command): Remove trailing newline
8618 from help.
8619 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8620 help.
8621 * disasm.c (_initialize_disasm): Remove trailing newline from
8622 help.
8623 * top.c (init_main): Remove trailing newline from help.
8624 * interps.c (_initialize_interpreter): Remove trailing newline
8625 from help.
8626 * btrace.c (_initialize_btrace): Remove trailing newlines from
8627 help.
8628 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8629 from help.
8630 * python/python.c (_initialize_python): Remove trailing newline
8631 from help.
8632 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8633 help.
8634 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8635 from help. Reformat some text.
8636 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8637 from help.
8638 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8639 newline from help.
8640
86108c13
TT
86412019-06-11 Tom Tromey <tromey@adacore.com>
8642
8643 * darwin-nat.c (darwin_decode_exception_message)
8644 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8645
a7067863
AB
86462019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8647
8648 * valops.c (value_slice): Check for not allocated or not
8649 associated values.
8650
9ab08412
TV
86512019-06-10 Tom de Vries <tdevries@suse.de>
8652
8653 PR gdb/24618
8654 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8655 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8656 invalid.
8657
f19e22e9
TV
86582019-06-10 Tom de Vries <tdevries@suse.de>
8659
8660 PR gdb/24611
8661 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8662 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8663
e99f9db0
TV
86642019-06-10 Tom de Vries <tdevries@suse.de>
8665
8666 PR symtab/24545
8667 * symtab.c (struct demangled_name_entry): Add language field.
8668 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8669 static minimal symbol". Set and use language field.
8670
9bf7038b
TT
86712019-06-10 Tom Tromey <tromey@adacore.com>
8672
8673 * ada-lang.c (_initialize_ada_language): Update help text.
8674
422186a9
TT
86752019-06-10 Tom Tromey <tromey@adacore.com>
8676
8677 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8678 with a newline.
8679 * guile/guile.c (handle_boot_error): Don't end warning with a
8680 newline.
8681 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8682 warning with a newline.
8683 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8684 newline.
8685 (s12z_frame_cache): Likewise.
8686 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8687 a newline.
8688 * solib-svr4.c (disable_probes_interface): Don't end warning with
8689 a newline.
8690 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8691 newline.
8692 * python/python.c (do_finish_initialization): Don't end warning
8693 with a newline.
8694
25ce02ee
TT
86952019-06-10 Tom Tromey <tom@tromey.com>
8696
8697 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8698 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8699 gdbpy_enter.
8700
caa429d8
TT
87012019-06-10 Tom Tromey <tromey@adacore.com>
8702
8703 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8704 data.
8705 (elf_new_init): Don't call stabsread_new_init.
8706 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8707 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8708 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8709
81873cc8
TV
87102019-06-10 Tom de Vries <tdevries@suse.de>
8711
8712 PR symtab/16264
8713 PR symtab/24517
8714 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8715
4fa0265e
РИ
87162019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8717
8718 * source.c (find_and_open_source): Also rewrite relative file
8719 names.
8720
1a3da2cd
AB
87212019-04-26 Amos Bird <amosbird@gmail.com>
8722
8723 * annotate.c (annotate_thread_exited): Add "thread-exited"
8724 annotation.
8725
3847a7bf
TT
87262019-06-06 Tom Tromey <tromey@adacore.com>
8727
8728 * maint.h (class scoped_command_stats): Use
8729 DISABLE_COPY_AND_ASSIGN.
8730 <print_time>: New method.
8731 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8732 print_time.
8733 (scoped_command_stats::print_time): New method.
8734
312617a3
AB
87352019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8738 instructions of lengths 6 or 8 bytes.
8739
b02f78f9
PA
87402019-06-04 Pedro Alves <palves@redhat.com>
8741
8742 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8743
8744 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8745 * breakpoint.c (condition_completer): Likewise.
8746 * cli/cli-dump.c (scan_expression): Likewise.
8747 * common/filestuff.c (mkdir_recursive): Likewise.
8748 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8749 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8750 (gdb_abspath): Likewise.
8751 * compile/compile-cplus-types.c
8752 (compile_cplus_instance::decl_name): Likewise.
8753 * completer.c (complete_explicit_location):
8754 (signal_completer, reg_or_group_completer_1): Likewise.
8755 * cp-support.c (cp_remove_params_if_any): Likewise.
8756 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8757 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8758 * infcmd.c (strip_bg_char): Likewise.
8759 * linespec.c (copy_token_string): Likewise.
8760 * mi/mi-main.c (output_cores): Likewise.
8761 * psymtab.c (psymtab_search_name):
8762 * symfile.c (test_set_ext_lang_command): Likewise.
8763 * target.c (target_fileio_read_stralloc): Likewise.
8764 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8765 * value.c (complete_internalvar): Likewise.
8766
e1f2e1a2
CB
87672019-06-04 Christian Biesinger <cbiesinger@google.com>
8768
8769 Add objfile property to gdb.Type.
d3238f7d
PA
8770 * NEWS: Mention Python API addition.
8771 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8772
e664d728
PW
87732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * NEWS: Mention the new set|show style [title|highlight].
8776 Mention changes to "show style", "help" and "apropos".
8777
66d8c862
PW
87782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8779
8780 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8781 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8782 instead of print_help_for_command.
8783 (print_doc_of_command): New function.
8784 (help_list): Add 'apropos -v word' suggestion.
8785 (print_help_for_command): Style the command name using title style.
8786 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8787 (_initialize_cli_cmds): Describe -v in apropos_command help.
8788
9303eb2f
PW
87892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8790
8791 * cli/cli-style.h (cli_style_option): Add name in constructor,
8792 add m_name class member, add constructor with intensity,
8793 add name class function.
8794 (cli_style_option::add_setshow_commands): Remove name argument.
8795 (highlight_style, title_style): New styles.
8796 * cli/cli-style.c (do_show): New function that shows a style
8797 characteristic styling the style name with itself.
8798 (set_style_name): New function.
8799 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8800 Update all callers according to the changes in cli/cli-style.h.
8801 * utils.h (fputs_highlighted): New function.
8802 * utils.c (fputs_highlighted): Likewise.
8803
e2c52041
PW
88042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8805
8806 * NEWS: Mention new pipe command and new convenience variables.
8807
947d3946
PW
88082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8809
8810 * cli/cli-cmds.c (pipe_command): New function.
8811 (_initialize_cli_cmds): Call add_com for pipe_command.
8812 Define | as an alias for pipe.
8813 (exit_status_set_internal_vars): New function.
8814 (shell_escape): Call exit_status_set_internal_vars.
8815 cli/cli-decode.c (find_command_name_length): Recognize | as
8816 a single character command.
8817
b8fd0918
PW
88182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8819
8820 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8821 top.c (execute_command_to_ui_file): New function, mostly a copy
8822 of execute_command_to_string.
8823 (execute_command_to_string): Implement by calling
8824 execute_command_to_ui_file.
8825
68bb5386
PW
88262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8827
8828 * top.h (saved_command_line): Remove declaration.
8829 * top.c (previous_saved_command_line, previous_repeat_arguments):
8830 New variables.
8831 (saved_command_line): Make static, define together with other
8832 'repeat variables'.
8833 (dont_repeat): Clear repeat_arguments.
8834 (repeat_previous, get_saved_command_line, save_command_line):
8835 New functions.
8836 (gdb_init): Initialize saved_command_line
8837 and previous_saved_command_line.
8838 * main.c (captured_main_1): Remove saved_command_line initialization.
8839 * event-top.c (handle_line_of_input): Update to use
8840 the new 'repeat' related functions instead of direct access to
8841 saved_command_line.
8842 * command.h (repeat_previous, get_saved_command_line,
8843 save_command_line): New declarations.
8844 (dont_repeat): Add comment.
8845
bfcdb852
TT
88462019-05-30 Tom Tromey <tromey@adacore.com>
8847
8848 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8849 Fix comment.
8850 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8851
0ef209f2
JV
88522019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8853
8854 PR cli/24587
8855 * completer.c (complete): Initialize variable word.
8856
955b06fa
SDJ
88572019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8858
8859 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8860 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8861 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8862 'body' is NULL to the outter 'if', protecting the '!is_define'
8863 situation as well.
8864
fa9c3fa0
TT
88652019-05-29 Tom Tromey <tromey@adacore.com>
8866
8867 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8868 (dwarf_unknown): New function.
8869 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8870 (dwarf_type_encoding_name): Use dwarf_unknown.
8871
4330d61d
TT
88722019-05-29 Tom Tromey <tromey@adacore.com>
8873
8874 PR c++/20020:
8875 * cp-valprint.c (cp_print_value_fields): Call
8876 cp_print_static_field inside "try".
8877
33a6bc35
TT
88782019-05-29 Tom Tromey <tromey@adacore.com>
8879
8880 * inflow.c (struct terminal_info): Add default operator=.
8881 * configure: Rebuild.
8882 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8883 -Wdeprecated-copy-dtor, -Wredundant-move.
8884
000439d5
TT
88852019-05-29 Tom Tromey <tromey@adacore.com>
8886
8887 * NEWS: Add entry.
8888 * infcmd.c (print_return_value_1): Handle finish_print
8889 option.
8890 (show_print_finish): New function.
8891 (_initialize_infcmd): Add "set/show print finish" commands.
8892 * valprint.c (user_print_options): Initialize new member.
8893 * valprint.h (struct value_print_options) <finish_print>: New
8894 member.
8895
c0e70c62
TT
88962019-05-28 Tom Tromey <tromey@adacore.com>
8897
8898 * ada-lang.c (ada_remove_Xbn_suffix)
8899 (find_old_style_renaming_symbol)
8900 (parse_old_style_renaming): Remove.
8901 (ada_find_renaming_symbol): Don't call
8902 find_old_style_renaming_symbol.
8903 (ada_is_renaming_symbol): Rename from
8904 ada_find_renaming_symbol. Remove "block" parameter. Return
8905 bool. Now static.
8906 (ada_read_var_value): Update and simplify.
8907 * ada-exp.y (write_var_or_type): Remove old code.
8908
766f8836
AH
89092019-05-28 Alan Hayward <alan.hayward@arm.com>
8910
68255adc 8911 PR gdb/25010
766f8836
AH
8912 * event-top.c: Remove include comment.
8913 * inflow.c (class scoped_ignore_sigttou): Move from here...
8914 * inflow.h (class scoped_ignore_sigttou): ...to here.
8915 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8916 * top.c: Remove include comment.
8917
eb41253a
TT
89182019-05-27 Tom Tromey <tom@tromey.com>
8919
8920 * NEWS: Fix typo.
8921
4ca51187
TT
89222019-05-22 Tom Tromey <tromey@adacore.com>
8923
8924 * target.c (target_follow_exec): Constify parameter.
8925 * target-delegates.c: Rebuild.
8926 * remote.c (remote_target::follow_exec): Constify parameter.
8927 * infrun.c (follow_exec): Constify parameter.
8928 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8929 (target_follow_exec): Likewise.
8930
8fca4da0
AH
89312019-05-22 Alan Hayward <alan.hayward@arm.com>
8932
8933 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8934 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8935
b7060614
AH
89362019-05-22 Alan Hayward <alan.hayward@arm.com>
8937
8938 * NEWS: Add debugredirect and testsuite sections.
8939
0a5954bd
SC
89402019-05-22 Simon Cook <simon.cook@embecosm.com>
8941
8942 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8943 target descriptions using exclusively floating point register name
8944 aliases.
8945
dc42e902
AB
89462019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8947
8948 PR gdb/18644:
8949 * f-lang.c (build_fortran_types): Handle the case where
8950 gdbarch_floatformat_for_type returns a nullptr.
8951
fb7806c7
TV
89522019-05-21 Tom de Vries <tdevries@suse.de>
8953
8954 PR cli/24587
8955 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8956
34d11c68
AB
89572019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 PR gdb/18644:
8960 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8961 16-byte floats.
8962 * i386-tdep.c (i386_floatformat_for_type): Use
8963 floatformats_ia64_quad for the 16-byte floating point component
8964 within a fortran 32-byte complex number.
8965
122cf0f2
AB
89662019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8969 delete default constructor.
8970 (find_partial_die): Update to return const struct.
8971 (partial_die_parent_scope): Move variable declaration into scope
8972 of its use and change its type to auto.
8973 (guess_partial_die_structure_name): Likewise.
8974 (partial_die_info::fixup): Likewise.
8975
33d0e35a
TT
89762019-05-17 Tom Tromey <tromey@adacore.com>
8977
8978 * source.c (find_and_open_source): Remove cast.
8979
a45575b0
TT
89802019-05-17 Tom Tromey <tromey@adacore.com>
8981
8982 * annotate.c (annotate_source): Make "filename" const.
8983 * annotate.h (annotate_source): Use const.
8984
81f47ac2
AH
89852019-05-17 Alan Hayward <alan.hayward@arm.com>
8986
8987 * disasm.c (set_disassembler_options): Send errors to stderr.
8988
ca1285d1
AH
89892019-05-17 Alan Hayward <alan.hayward@arm.com>
8990
8991 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8992 (cli_interp_base::set_logging): Check debug_redirect.
8993 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8994 * cli/cli-logging.c (debug_redirect): Add static variable.
8995 (pop_output_files): Add default param.
8996 (handle_redirections): Print debug setting.
8997 (show_logging_command): Likewise.
8998 (_initialize_cli_logging): Add debugredirect command.
8999 * interps.c (current_interp_set_logging): Add debug_redirect
9000 parameter.
9001 * interps.h (set_logging): Add debug_redirect parameter.
9002 (current_interp_set_logging): Likewise.
9003 * mi/mi-common.h: Likewise.
9004 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9005
90062019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9007 Tom Tromey <tromey@adacore.com>
9008
9009 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9010 directly.
9011 * cli/cli-interp.h (make_logging_output): Remove declaration.
9012 * cli/cli-logging.c (make_logging_output): Remove function.
9013 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9014 directly.
9015 * ui-file.c (tee_file::tee_file): Remove bools.
9016 (tee_file::~tee_file): Remove deletes.
9017 * ui-file.h (tee_file): Remove bools.
9018
26648588
JV
90192019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9020
9021 * mi/mi-cmds.h (mi_cmd_complete): New function.
9022 * mi/mi-main.c (mi_cmd_complete): Likewise.
9023 * mi/mi-cmds.c: Define new MI command -complete.
9024 * NEWS: Mention new -complete command.
9025
6e035501
JV
90262019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9027
9028 * completer.h (complete): New function.
9029 * completer.c (complete): Likewise.
9030 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9031 function defined in completer.h.
9032
7d0e2ece
JV
90332019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9034
e79be6e5 9035 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9036
fb816e8b
TV
90372019-05-17 Tom de Vries <tdevries@suse.de>
9038
9039 PR gdb/24094
9040 * dwarf2read.c (struct cu_partial_die_info): New struct.
9041 (find_partial_die): Return cu_partial_die_info.
9042 (partial_die_parent_scope, guess_partial_die_structure_name)
9043 (partial_die_info::fixup): Handle new return type of find_partial_die.
9044
677052f2
SDJ
90452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9046
a1726c38 9047 PR breakpoints/24541
677052f2
SDJ
9048 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9049 "std::string", simplifying the algorithm.
9050
f3da9116
SDJ
90512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9052
9053 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9054 (stap_static_probe_ops::get_probes): Likewise.
9055
f1bb75ab
SDJ
90562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9057
9058 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9059 '-')" and "else if".
9060 (stap_parse_single_operand): Join checks for
9061 "gdbarch_stap_parse_special_token_p" and
9062 "gdbarch_stap_parse_special_token" in the same "if" statement.
9063 Invert check when verifying for operation on register
9064 displacement.
9065
3ca58cde
SDJ
90662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9067
9068 * stap-probe.c (stap_get_opcode): Update comment.
9069 (stap_get_expected_argument_type): Likewise.
9070 (handle_stap_probe): Likewise.
9071
af2d9bee
SDJ
90722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9073
9074 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9075 return type to 'bool'. Adjust comment. Use 'bool' when
9076 appropriate.
9077 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9078 * stap-probe.c (stap_parse_argument_1): Likewise.
9079 (stap_is_operator): Likewise.
9080 (stap_is_generic_prefix): Likewise.
9081 (stap_is_register_prefix): Likewise.
9082 (stap_is_register_indirection_prefix): Likewise.
9083 (stap_is_integer_prefix): Likewise.
9084 (stap_generic_check_suffix): Likewise.
9085 (stap_check_integer_suffix): Likewise.
9086 (stap_check_register_suffix): Likewise.
9087 (stap_check_register_indirection_suffix): Likewise.
9088 (stap_parse_register_operand): Likewise.
9089 (stap_parse_single_operand): Likewise.
9090 (stap_parse_argument_1): Likewise.
9091 (stap_probe::get_argument_count): Likewise.
9092 (stap_is_operator): Likewise.
9093
61c9c421
TT
90942019-05-16 Tom Tromey <tromey@adacore.com>
9095
9096 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9097 keyword to foreach.
9098
9ddc1af1
SM
90992019-05-15 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * linux-thread-db.c (try_thread_db_load_1): Change return type
9102 to bool.
9103 (try_thread_db_load): Likewise.
9104 (try_thread_db_load_from_pdir_1): Likewise.
9105 (try_thread_db_load_from_pdir): Likewise.
9106 (try_thread_db_load_from_sdir): Likewise.
9107 (try_thread_db_load_from_dir): Likewise.
9108 (thread_db_load_search): Likewise.
9109 (has_libpthread): Likewise.
9110 (thread_db_load): Likewise.
9111
7bede828
SDJ
91122019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9113
9114 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9115 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9116 NULL, and complain/return if that's the case.
9117
c5358db4
JD
91182019-05-15 John Darrington <john@darrington.wattle.id.au>
9119
9120 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9121 (advance, posn, abstract_read_memory): New functions.
9122 [struct mem_read_abstraction]: New struct.
9123 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9124
c408a94f
TT
91252019-05-14 Tom Tromey <tromey@adacore.com>
9126
9127 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9128 value is not lval_memory.
9129
e7bd7fba
TT
91302019-05-14 Tom Tromey <tromey@adacore.com>
9131
9132 * solib.c (info_sharedlibrary_command): Style the file name.
9133
a6d0f249
AH
91342019-05-14 Alan Hayward <alan.hayward@arm.com>
9135
9136 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9137 (aarch64_vnv_type): Likewise.
9138 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9139 * common/tdesc.c: Likewise.
9140 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9141 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9142 * features/aarch64-fpu.xml: Add ieee half view.
9143 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9144 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9145 * gdbtypes.h (struct builtin_type): Likewise.
9146 (struct objfile_type): Likewise.
9147
66b8bb74
SM
91482019-05-12 Paul Naert <paul.naert@polymtl.ca>
9149
9150 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9151 typo.
9152 * location.h (string_to_event_location): Likewise.
9153
21c219fd
JB
91542019-05-11 Joel Brobecker <brobecker@adacore.com>
9155
9156 GDB 8.3 released.
9157
13674803
SM
91582019-05-10 Simon Marchi <simon.marchi@efficios.com>
9159
9160 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9161 New variable declaration.
9162 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9163 New variable.
9164 (print_one_breakpoint): Use ui_out::test_flags and new global
9165 variable to compute use_fixed_output.
9166 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9167 Remove.
9168 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9169 (mi_multi_location_breakpoint_output_fixed): Remove.
9170 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9171 new variable.
9172 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9173 fix_multi_location_breakpoint_output flag if version >= 3.
9174 * ui-out.h (enum ui_out_flag)
9175 <fix_multi_location_breakpoint_output>: New enumerator.
9176
a9eac7f9
SM
91772019-05-10 Simon Marchi <simon.marchi@efficios.com>
9178
9179 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9180
71bed2db
TT
91812019-05-10 Tom Tromey <tromey@adacore.com>
9182
9183 * ada-lang.c (catch_ada_completer): New function.
9184 (_initialize_ada_language): Use it.
9185
24c54127
TT
91862019-05-10 Tom Tromey <tromey@adacore.com>
9187
9188 * thread.c (print_thread_info): Make "requested_threads" const.
9189 * gdbthread.h (print_thread_info): Make "requested_threads"
9190 const.
9191 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9192 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9193
7a102139
TT
91942019-05-08 Tom Tromey <tom@tromey.com>
9195
9196 * gdbtypes.c (objfile_type_data): Change type.
9197 (objfile_type, _initialize_gdbtypes): Update.
9198
924d79e2
TT
91992019-05-08 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9202 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9203 (_initialize_dwarf2_frame): Update.
9204
4c58e337
TT
92052019-05-08 Tom Tromey <tom@tromey.com>
9206
9207 * objc-lang.c (objc_objfile_data): Change type.
9208 (find_methods): Update.
9209 (_initialize_objc_lang): Remove.
9210
d772d2ab
TT
92112019-05-08 Tom Tromey <tom@tromey.com>
9212
9213 * stabsread.c (rs6000_builtin_type_data): Change type.
9214 (rs6000_builtin_type, _initialize_stabsread): Update.
9215
d11d83f4
TT
92162019-05-08 Tom Tromey <tom@tromey.com>
9217
9218 * mips-tdep.c (mips_pdr_data): Remove.
9219 (_initialize_mips_tdep): Update.
9220
9a73f0ad
TT
92212019-05-08 Tom Tromey <tom@tromey.com>
9222
9223 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9224 (hppa_init_objfile_priv_data, read_unwind_info)
9225 (find_unwind_entry, _initialize_hppa_tdep): Update.
9226
8127a2fa
TT
92272019-05-08 Tom Tromey <tom@tromey.com>
9228
9229 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9230 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9231 on obstack.
9232 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9233
91d3055d
TT
92342019-05-08 Tom Tromey <tom@tromey.com>
9235
9236 * mdebugread.c (basic_type_data): Change type.
9237 (basic_type, _initialize_mdebugread): Update.
9238
31930bd3
TT
92392019-05-08 Tom Tromey <tom@tromey.com>
9240
9241 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9242
bdb3ed9e
TT
92432019-05-08 Tom Tromey <tom@tromey.com>
9244
9245 * nto-tdep.c (nto_inferior_data_reg): Change type.
9246 (nto_inferior_data): Update.
9247 (nto_inferior_data_cleanup, nto_new_inferior_data)
9248 (_initialize_nto_tdep): Remove.
9249 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9250
f37b313d
TT
92512019-05-08 Tom Tromey <tom@tromey.com>
9252
9253 * ada-lang.c (struct ada_inferior_data): Add initializers.
9254 (ada_inferior_data): Change type.
9255 (ada_inferior_data_cleanup): Remove.
9256 (get_ada_inferior_data, ada_inferior_exit)
9257 (struct ada_pspace_data): Add initializers, destructor.
9258 (ada_pspace_data_handle): Change type.
9259 (get_ada_pspace_data): Update.
9260 (ada_pspace_data_cleanup): Remove.
9261
24699405
TT
92622019-05-08 Tom Tromey <tom@tromey.com>
9263
9264 * coffread.c (struct coff_symfile_info): Add initializers.
9265 (coff_objfile_data_key): Move lower. Change type.
9266 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9267 Update.
9268 (coff_free_info): Remove.
9269
d4e05d2f
TT
92702019-05-08 Tom Tromey <tom@tromey.com>
9271
9272 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9273 (fbsd_pspace_data_handle): Move lower. Change type.
9274 (get_fbsd_pspace_data): Update.
9275 (fbsd_pspace_data_cleanup): Remove.
9276 (_initialize_fbsd_tdep): Update.
9277
14ef6690
TT
92782019-05-08 Tom Tromey <tom@tromey.com>
9279
9280 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9281 (get_ada_tasks_pspace_data): Update.
9282 (ada_tasks_pspace_data_cleanup): Remove.
9283 (_initialize_tasks): Update.
9284 (ada_tasks_inferior_data_handle): Change type.
9285 (get_ada_tasks_inferior_data): Update.
9286 (ada_tasks_inferior_data_cleanup): Remove.
9287 (struct ada_tasks_pspace_data): Add initializers.
9288
814cf43a
TT
92892019-05-08 Tom Tromey <tom@tromey.com>
9290
9291 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9292 * symfile-debug.c (debug_sym_get_probes): Change type.
9293 * stap-probe.c (handle_stap_probe):
9294 (stap_static_probe_ops::get_probes): Change type.
9295 * probe.h (class static_probe_ops) <get_probes>: Change type.
9296 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9297 (parse_probes_in_pspace): Update.
9298 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9299 Update.
9300 (any_static_probe_ops::get_probes): Change type.
9301 * elfread.c (elfread_data): New typedef.
9302 (probe_key): Change type.
9303 (elf_get_probes): Likewise. Update.
9304 (probe_key_free): Remove.
9305 (_initialize_elfread): Update.
9306 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9307 Change type.
9308 (dtrace_process_dof_probe, dtrace_process_dof)
9309 (dtrace_static_probe_ops::get_probe): Change type.
9310
02dc647e
TT
93112019-05-08 Tom Tromey <tom@tromey.com>
9312
9313 * xcoffread.c (struct xcoff_symfile_info): Rename from
9314 coff_symfile_info. Add initializers.
9315 (xcoff_objfile_data_key): Move lower. Change type.
9316 (XCOFF_DATA): Rewrite.
9317 (xcoff_free_info): Remove.
9318 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9319 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9320 (xcoff_initial_scan): Update.
9321
09232438
TT
93222019-05-08 Tom Tromey <tom@tromey.com>
9323
9324 * solib-svr4.c (struct svr4_info): Add initializers and
9325 destructor.
9326 <probes_table>: Now an htab_up.
9327 (solib_svr4_pspace_data): Change type.
9328 (free_probes_table): Simplify.
9329 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9330 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9331 (probes_table_remove_objfile_probes, register_solib_event_probe)
9332 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9333 (_initialize_svr4_solib): Update.
9334
7b4a314f
TT
93352019-05-08 Tom Tromey <tom@tromey.com>
9336
9337 * remote.c (remote_pspace_data): Change type.
9338 (remote_pspace_data_cleanup): Remove.
9339 (get_remote_exec_file, set_pspace_remote_exec_file)
9340 (_initialize_remote): Update.
9341
51d3063a
TT
93422019-05-08 Tom Tromey <tom@tromey.com>
9343
9344 * breakpoint.c (breakpoint_objfile_key): Change type.
9345 (get_breakpoint_objfile_data): Update.
9346 (free_breakpoint_objfile_data): Remove.
9347 (_initialize_breakpoint): Update.
9348
89fb8848
TT
93492019-05-08 Tom Tromey <tom@tromey.com>
9350
9351 * linux-tdep.c (struct linux_info): Add initializers.
9352 (linux_inferior_data): Move. Change type.
9353 (invalidate_linux_cache_inf): Update.
9354 (linux_inferior_data_cleanup): Remove.
9355 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9356
e9b89e2d
TT
93572019-05-08 Tom Tromey <tom@tromey.com>
9358
9359 * auxv.c (auxv_inferior_data): Move. Change type.
9360 (auxv_inferior_data_cleanup): Remove.
9361 (invalidate_auxv_cache_inf): Rewrite.
9362 (get_auxv_inferior_data, _initialize_auxv): Update.
9363
8c42777c
TT
93642019-05-08 Tom Tromey <tom@tromey.com>
9365
9366 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9367 (symfile_debug_objfile_data_key): Change type.
9368 (symfile_debug_installed, debug_qf_has_symbols)
9369 (debug_qf_find_last_source_symtab)
9370 (debug_qf_forget_cached_source_info)
9371 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9372 (debug_qf_print_stats, debug_qf_dump)
9373 (debug_qf_expand_symtabs_for_function)
9374 (debug_qf_expand_all_symtabs)
9375 (debug_qf_expand_symtabs_with_fullname)
9376 (debug_qf_map_matching_symbols)
9377 (debug_qf_expand_symtabs_matching)
9378 (debug_qf_find_pc_sect_compunit_symtab)
9379 (debug_qf_map_symbol_filenames)
9380 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9381 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9382 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9383 (debug_sym_read_linetable, debug_sym_relocate): Update.
9384 (symfile_debug_free_objfile): Remove.
9385 (install_symfile_debug_logging, _initialize_symfile_debug):
9386 Update.
9387
5bfd760d
TT
93882019-05-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9391 allocate_on_obstack.
9392 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9393 (get_dwarf2_per_objfile): Update.
9394 (set_dwarf2_per_objfile): Remove.
9395 (dwarf2_has_info, dwarf2_get_section_info): Update.
9396 (dwarf2_free_objfile): Remove.
9397 (_initialize_dwarf2_read): Update.
9398
e85e19b4
TT
93992019-05-08 Tom Tromey <tom@tromey.com>
9400
9401 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9402 initializers.
9403 <unsupported_script_warning_printed,
9404 script_not_found_warning_printed>: Now bool.
9405 (auto_load_pspace_data): Change type.
9406 (~auto_load_pspace_info): Rename from
9407 auto_load_pspace_data_cleanup.
9408 (get_auto_load_pspace_data, init_loaded_scripts_info)
9409 (clear_section_scripts, maybe_print_unsupported_script_warning)
9410 (maybe_print_script_not_found_warning, _initialize_auto_load):
9411 Update.
9412
f6aa7436
TT
94132019-05-08 Tom Tromey <tom@tromey.com>
9414
9415 * objfiles.c (objfile_pspace_info): Add destructor and
9416 initializers.
9417 (objfiles_pspace_data): Change type.
9418 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9419 (get_objfile_pspace_data): Update.
9420 (objfiles_bfd_data): Change type.
9421 (get_objfile_bfd_data): Update.
9422 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9423
6ae614f6
TT
94242019-05-08 Tom Tromey <tom@tromey.com>
9425
9426 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9427 Change type.
9428 (get_catch_syscall_inferior_data): Update.
9429 (catch_syscall_inferior_data_cleanup): Remove.
9430 (_initialize_break_catch_syscall): Update.
9431
6509b8eb
TT
94322019-05-08 Tom Tromey <tom@tromey.com>
9433
9434 * inflow.c (struct terminal_info): Add destructor and
9435 initializers.
9436 (inflow_inferior_data): Change type.
9437 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9438 (get_inflow_inferior_data, inflow_inferior_exit)
9439 (swap_terminal_info, _initialize_inflow): Update.
9440
35632941
TT
94412019-05-08 Tom Tromey <tom@tromey.com>
9442
9443 * target-dcache.c (target_dcache_cleanup): Remove.
9444 (target_dcache_aspace_key): Change type.
9445 (target_dcache_init_p, target_dcache_invalidate)
9446 (target_dcache_get, target_dcache_get_or_init)
9447 (_initialize_target_dcache): Update.
9448 * dcache.h (struct dcache_deleter): New.
9449
3017b94d
TT
94502019-05-08 Tom Tromey <tom@tromey.com>
9451
9452 * symtab.c (struct symbol_cache): Add destructor and
9453 initializers.
9454 (symbol_cache_key): Move. Change type.
9455 (make_symbol_cache, free_symbol_cache): Remove.
9456 (get_symbol_cache): Update.
9457 (symbol_cache_cleanup): Remove.
9458 (ALL_PSPACES, symbol_cache_flush)
9459 (maintenance_print_symbol_cache)
9460 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9461 Update.
9462
a32ad8c5
TT
94632019-05-08 Tom Tromey <tom@tromey.com>
9464
9465 * symtab.c (struct main_info): Add destructor and initializers.
9466 (main_progspace_key): Move. Change type.
9467 (get_main_info): Update.
9468 (main_info_cleanup): Remove.
9469 (_initialize_symtab): Update.
9470
5f6e90a0
TT
94712019-05-08 Tom Tromey <tom@tromey.com>
9472
9473 * registry.h (DECLARE_REGISTRY): Define the _key class.
9474
1bd0c6e4
AB
94752019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9476
9477 * NEWS: Merge two 'New commands' sections.
9478
2228ef77
XR
94792019-05-08 Joel Brobecker <brobecker@adacore.com>
9480
9481 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9482 parameter and use Ada language definition instead.
9483 (ada_val_print_ptr): Remove unused language parameter.
9484 (ada_val_print_num): Remove language parameter and use Ada language
9485 definition instead.
9486 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9487 parameter.
9488 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9489 parameter and use Ada language definition instead.
9490 (ada_val_print_1): Update all ada_val_print_xxx calls.
9491 Remove language parameter.
9492 (ada_val_print): Update ada_val_print_1 call.
9493
60fcc1c3
TT
94942019-05-08 Tom Tromey <tromey@adacore.com>
9495
9496 * remote.c (remote_hw_watchpoint_limit)
9497 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9498 Now static.
9499
ed2b7c17
TT
95002019-05-08 Tom Tromey <tromey@adacore.com>
9501
9502 * maint.c (_initialize_maint_cmds): Move initialization code to
9503 remote.c.
9504 (watchdog, show_watchdog): Move to remote.c.
9505 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9506 "watchdog" static.
9507 (_initialize_remote): Move initialization code from maint.c.
9508 * defs.h (watchdog): Don't declare.
9509
b0be6c91
TT
95102019-05-08 Tom Tromey <tromey@adacore.com>
9511
9512 * tui/tui-interp.c: Include main.h.
9513 * interps.c: Include main.h.
9514 * main.h (interpreter_p): Declare.
9515 * defs.h (interpreter_p): Don't declare.
9516
587ee17b
TT
95172019-05-08 Tom Tromey <tromey@adacore.com>
9518
9519 * dwarf2loc.c: Include dwarf2read.h.
9520 * defs.h (read_unsigned_leb128): Don't declare.
9521 * dwarf2read.h (read_unsigned_leb128): Declare.
9522
ca1df239
TT
95232019-05-08 Tom Tromey <tromey@adacore.com>
9524
9525 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9526 method.
9527
99f20f08
TT
95282019-05-08 Tom Tromey <tromey@adacore.com>
9529
9530 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9531 when no wrap column is set.
9532
80e55b13
TT
95332019-05-08 Tom Tromey <tromey@adacore.com>
9534
9535 * c-lang.c (c_get_string): Handle non-C-style arrays.
9536
9d3421af
TT
95372019-05-08 Tom Tromey <tromey@adacore.com>
9538
9539 * typeprint.c (print_offset_data::update): Print the bit offset,
9540 not the number of bits remaining.
9541
844333e2
TT
95422019-05-08 Tom Tromey <tromey@adacore.com>
9543
9544 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9545 padding at end of comment.
9546
988915ee
TT
95472019-05-08 Tom Tromey <tromey@adacore.com>
9548
9549 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9550 Compare main types.
9551
26bfd823
TT
95522019-05-06 Tom Tromey <tom@tromey.com>
9553
9554 * common/scoped_mmap.c: Include common-defs.h.
9555 * common/scoped_mmap.h: Don't include config.h.
9556
89055eaa
TT
95572019-05-04 Tom Tromey <tom@tromey.com>
9558
9559 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9560 (struct aarch64_call_info): Add initializers.
9561 <si>: Now a std::vector.
9562 (pass_on_stack, aarch64_push_dummy_call): Update.
9563
5da01df5
TT
95642019-05-04 Simon Marchi <simon.marchi@efficios.com>
9565 Tom Tromey <tom@tromey.com>
9566
9567 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9568 (ppc_threads): Now a std::vector. Now static.
9569 (hwdebug_find_thread_points_by_tid)
9570 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9571 Update.
9572
fbdf05a1
TT
95732019-05-04 Tom Tromey <tom@tromey.com>
9574
9575 * arc-tdep.c (arc_tdesc_init): Return bool.
9576
06d16ec9
TT
95772019-05-04 Tom Tromey <tom@tromey.com>
9578
9579 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9580 Use gdb_assert_not_reached.
9581
9c056022
TT
95822019-05-04 Tom Tromey <tom@tromey.com>
9583
9584 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9585 "false".
9586
fa9c2a59
TT
95872019-05-04 Tom Tromey <tom@tromey.com>
9588
9589 * arc-tdep.c (arc_tdesc_init): Use bool.
9590
e2eb806a
TT
95912019-05-04 Tom Tromey <tom@tromey.com>
9592
9593 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9594
6fe87677
TT
95952019-05-04 Tom Tromey <tom@tromey.com>
9596
9597 * cli/cli-cmds.c (valid_command_p): Return bool.
9598
7f008c9e
TT
95992019-05-04 Tom Tromey <tom@tromey.com>
9600
9601 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9602 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9603
b6484282
RT
96042019-05-04 Raul Tambre <raul@tambre.ee>
9605
9606 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9607 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9608 operator for comparison.
9609
af97b416
TT
96102019-05-04 Tom Tromey <tom@tromey.com>
9611
9612 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9613 (lookup_partial_symbol, print_partial_symbols)
9614 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9615 (psymbol_compare): Update.
9616 (add_psymbol_to_bcache): Clear the entire psymbol.
9617 (maintenance_check_psymtabs): Update.
9618 * psympriv.h (struct partial_symbol): Don't derive from
9619 general_symbol_info.
9620 <obj_section, unrelocated_address, address,
9621 set_unrelocated_address>: Update.
9622 <ginfo>: New member.
9623 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9624 (debug_names::write_psymbols): Update.
9625
9d6d4be8
TV
96262019-05-04 Tom de Vries <tdevries@suse.de>
9627
9628 * contrib/cc-with-tweaks.sh: Support -n arg.
9629
66452beb
PW
96302019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9631
9632 * corelow.c (core_target::detach): Ensure frame cache and
9633 register caches are cleared.
9634 inferior.c (exit_inferior_1): Likewise.
9635
bde09ab7
TT
96362019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9637 Tom Tromey <tom@tromey.com>
9638
9639 * dictionary.c (collate_pending_symbols_by_language): Remove
9640 "struct" from foreach.
9641 * symtab.c (lookup_global_symbol_from_objfile)
9642 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9643 foreach.
9644 * ser-tcp.c (net_open): Remove "struct" from foreach.
9645 * objfiles.c (objfile_relocate, objfile_rebase)
9646 (objfile_has_symbols): Remove "struct" from foreach.
9647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9648 from foreach.
9649 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9650 foreach.
9651 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9652 "struct" from foreach.
9653 * ada-lang.c (create_excep_cond_exprs)
9654 (ada_exception_catchpoint_cond_string): Remove "struct" from
9655 foreach.
9656
222a8d25
TT
96572019-05-03 Tom Tromey <tromey@adacore.com>
9658
9659 * ada-exp.y (convert_char_literal): Check suffix of each
9660 enumerator.
9661
fcd60b84
DP
96622019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9663
9664 PR ada/21406:
9665 * ada-exp.y (yywrap): Don't define.
9666 * ada-lex.l (%option): Add noyywrap
9667 (yywrap): Remove.
9668
5f2459c2
EZ
96692019-05-03 Eli Zaretskii <eliz@gnu.org>
9670
353ea2d1
EZ
9671 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9672 _WIN32_WINNT to the XP level, unless already defined to a higher
9673 level.
9674
9675 * unittests/parse-connection-spec-selftests.c:
9676 * ser-tcp.c:
9677 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9678 override.
9679
5f2459c2
EZ
9680 * symfile.c (find_separate_debug_file): Remove colon from the
9681 drive spec of DOS/Windows file names of the target, so that the
9682 file name produced from DEBUGDIR and the target's directory will
9683 be valid on DOS/Windows systems.
9684
80062eb9
AB
96852019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9686
9687 * rust-lang.c (val_print_struct): Handle printing structures
9688 containing strings.
9689
b8c05e85
TT
96902019-05-02 Tom Tromey <tromey@adacore.com>
9691
9692 * valarith.c (_initialize_valarith): Remove.
9693
4504bbde
TT
96942019-05-01 Tom Tromey <tromey@adacore.com>
9695
9696 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9697 bitfields.
9698
d48e62f4
TT
96992019-05-01 Tom Tromey <tromey@adacore.com>
9700
9701 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9702 for big-endian copies.
9703
15f18d14
AT
97042019-04-30 Ali Tamur <tamur@google.com>
9705 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9706 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9707 (read_3_bytes): New function.
9708
ab4ee614
JB
97092019-04-30 Joel Brobecker <brobecker@adacore.com>
9710
9711 * windows-nat.c (main_thread_id): Delete.
9712 (handle_output_debug_string): Replace main_thread_id by
9713 current_event.dwThreadId.
9714 (fake_create_process): Likewise.
9715 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9716 Do not set main_thread_id.
9717 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9718 current_event.dwThreadId.
9719 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9720
8ed5b76e
JB
97212019-04-30 Joel Brobecker <brobecker@adacore.com>
9722
9723 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9724 Use current_event.dwThreadId instead of main_thread_id.
9725
2ff0a947
TT
97262019-04-30 Tom Tromey <tromey@adacore.com>
9727
9728 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9729 (create_excep_cond_exprs): Iterate over program spaces.
9730 (ada_exception_catchpoint_cond_string): Examine all minimal
9731 symbols for exception types.
9732
a776957c
TT
97332019-04-30 Tom Tromey <tromey@adacore.com>
9734
9735 PR c++/24470:
9736 * dwarf2read.c (process_structure_scope): Handle case where type
9737 has template parameters but no symbol was created.
9738
bc68014d
AB
97392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9740 Chris January <chris.january@arm.com>
9741
9742 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9743 qualifier.
9744 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9745
f1fdc960
AB
97462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9747
9748 * f-typeprint.c (f_print_type): Update rules for printing
9749 whitespace.
9750 (f_type_print_varspec_suffix): Likewise.
9751
bf7a4de1
AB
97522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9753 Chris January <chris.january@arm.com>
9754
9755 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9756 function arguments.
9757
bbe75b9d
AB
97582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * f-lang.c (build_fortran_types): Change name of void type to
9761 lower case.
9762 * f-typeprint.c (f_type_print_base): Print the name of the void
9763 type, rather than a fixed string.
9764 * f-valprint.c (f_decorations): Use lower case void string.
9765
1db455a7
AB
97662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9767 Chris January <chris.january@arm.com>
9768
9769 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9770 types for Fortran.
9771
b6d03bb2
AB
97722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9773 Chris January <chris.january@arm.com>
9774 David Lecomber <david.lecomber@arm.com>
9775
9776 * f-exp.y (BINOP_INTRINSIC): New token.
9777 (exp): New parser rule handling BINOP_INTRINSIC.
9778 (f77_keywords): Add new builtin procedures.
9779 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9780 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9781 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9782 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9783 (print_unop_subexp_f): New function.
9784 (print_binop_subexp_f): New function.
9785 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9786 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9787 (dump_subexp_body_f): Likewise.
9788 (operator_check_f): Likewise.
9789 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9790 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9791
83228e93
AB
97922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9793
9794 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9795 UNOP_KIND.
9796 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9797 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9798 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9799 (operator_length_f): New fuction.
9800 (print_subexp_f): New function.
9801 (op_name_f): New function.
9802 (dump_subexp_body_f): New function.
9803 (operator_check_f): New function.
9804 (exp_descriptor_f): Replace standard expression handling functions
9805 with new functions.
9806 * gdb/fortran-operator.def: New file.
9807 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9808 * gdb/std-operator.def: Remove UNOP_KIND.
9809
6fdcd7cc
AB
98102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9811
9812 * std-operator.def: Remove unbalanced, stray double quote
9813 character.
9814
2e62ab40
AB
98152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9816 Chris January <chris.january@arm.com>
9817 Daniel Everett <daniel.everett@arm.com>
9818 Nick Forrington <nick.forrington@arm.com>
9819 Richard Bunt <richard.bunt@arm.com>
9820
9821 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9822 of depth when printing anonymous structs or unions.
9823 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9824 Don't print either the top-level value, or the children if the
9825 max-depth is exceeded.
9826 (ppscm_print_children): When printing the key of a map, allow one
9827 extra level of depth.
9828 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9829 print either the top-level value, or the children if the max-depth
9830 is exceeded.
9831 (print_children): When printing the key of a map, allow one extra
9832 level of depth.
9833 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9834 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9835 (user_print_options): Initialise max_depth field.
9836 (val_print_scalar_or_string_type_p): New function.
9837 (val_print): Check to see if the max depth has been reached.
9838 (val_print_check_max_depth): Define new function.
9839 (show_print_max_depth): New function.
9840 (_initialize_valprint): Add 'print max-depth' option.
9841 * valprint.h (struct value_print_options) <max_depth>: New field.
9842 (val_print_check_max_depth): Declare new function.
9843 * NEWS: Document new feature.
9844
4be290b2
AB
98452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * ada-lang.c (ada_language_defn): Initialise new field.
9848 * c-lang.c (c_is_string_type_p): New function.
9849 (c_language_defn): Initialise new field.
9850 (cplus_language_defn): Initialise new field.
9851 (asm_language_defn): Initialise new field.
9852 (minimal_language_defn): Initialise new field.
9853 * c-lang.h (c_is_string_type_p): Declare new function.
9854 * d-lang.c (d_language_defn): Initialise new field.
9855 * f-lang.c (f_is_string_type_p): New function.
9856 (f_language_defn): Initialise new field.
9857 * go-lang.c (go_is_string_type_p): New function.
9858 (go_language_defn): Initialise new field.
9859 * language.c (default_is_string_type_p): New function.
9860 (unknown_language_defn): Initialise new field.
9861 (auto_language_defn): Initialise new field.
9862 * language.h (struct language_defn) <la_is_string_type_p>: New
9863 member variable.
9864 (default_is_string_type_p): Declare new function.
9865 * m2-lang.c (m2_language_defn): Initialise new field.
9866 * objc-lang.c (objc_language_defn): Initialise new field.
9867 * opencl-lang.c (opencl_language_defn): Initialise new field.
9868 * p-lang.c (pascal_is_string_type_p): New function.
9869 (pascal_language_defn): Initialise new field.
9870 * rust-lang.c (rust_is_string_type_p): New function.
9871 (rust_language_defn): Initialise new field.
9872
721b08c6
AB
98732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9874
9875 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9876 New field.
9877 * ada-lang.c (ada_language_defn): Initialise new field.
9878 * c-lang.c (c_language_defn): Likewise.
9879 (cplus_language_defn): Likewise.
9880 (asm_language_defn): Likewise.
9881 (minimal_language_defn): Likewise.
9882 * d-lang.c (d_language_defn): Likewise.
9883 * f-lang.c (f_language_defn): Likewise.
9884 * go-lang.c (go_language_defn): Likewise.
9885 * language.c (unknown_language_defn): Likewise.
9886 (auto_language_defn): Likewise.
9887 * m2-lang.c (m2_language_defn): Likewise.
9888 * objc-lang.c (objc_language_defn): Likewise.
9889 * opencl-lang.c (opencl_language_defn): Likewise.
9890 * p-lang.c (pascal_language_defn): Likewise.
9891 * rust-lang.c (rust_language_defn): Likewise.
9892
fc913e53
AB
98932019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9894
9895 * ada-lang.c (ada_is_character_type): Change return type to bool.
9896 (ada_is_string_type): Likewise.
9897 * ada-lang.h (ada_is_character_type): Update declaration
9898 (ada_is_string_type): Likewise.
9899
fa731fa0
PW
99002019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9901
9902 Support style in 'frame|thread apply'
9903
9904 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9905 * record.c (record_start, record_stop): Update callers of
9906 execute_command_to_string with false.
9907 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9908 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9909 methods.
9910 (class string_file): New constructor with term_out parameter.
9911 Override methods term_out and can_emit_style_escape. New member
9912 term_out.
9913 (class stdio_file): Override can_emit_style_escape.
9914 (class tee_file): Override term_out and can_emit_style_escape.
9915 * utils.h (can_emit_style_escape): Remove.
9916 * utils.c (can_emit_style_escape): Likewise.
9917 Update all callers of can_emit_style_escape (SOMESTREAM) to
9918 SOMESTREAM->can_emit_style_escape.
9919 * source-cache.c (source_cache::get_source_lines): Likewise.
9920 * stack.c (frame_apply_command_count): Call execute_command_to_string
9921 passing the term_out characteristic of the current gdb_stdout.
9922 * thread.c (thr_try_catch_cmd): Likewise.
9923 * top.c (execute_command_to_string): pass term_out parameter
9924 to construct the string_file for the command output.
9925 * ui-file.c (term_cli_styling): New function (most code moved
9926 from utils.c can_emit_style_escape).
9927 (string_file::string_file, string_file::can_emit_style_escape,
9928 stdio_file::can_emit_style_escape, tee_file::term_out,
9929 tee_file::can_emit_style_escape): New functions.
9930
136afab8
PW
99312019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9932
9933 * NEWS: Mention the new set|show may-call-functions.
9934 * infcall.c (may_call_functions_p): New variable.
9935 (show_may_call_functions_p): New function.
9936 (call_function_by_hand_dummy): Throws an error if not
9937 may-call-functions.
9938 (_initialize_infcall): Call add_setshow_boolean_cmd for
9939 may-call-functions.
9940
725cbb63
KS
99412019-04-25 Keith Seitz <keiths@redhat.com>
9942
9943 PR c++/24367
9944 * cp-support.c (inspect_type): Don't attempt substitutions
9945 of symbol with the same name.
9946
3d1cbb78
TT
99472019-04-25 Tom Tromey <tromey@adacore.com>
9948
9949 PR gdb/24475:
9950 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9951 static.
9952
94aeb44b
TT
99532019-04-25 Tom Tromey <tromey@adacore.com>
9954
9955 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9956 rvalue reference.
9957 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9958 (gdb_xml_parser::parse): Use std::move.
9959 * python/python-internal.h (gdbpy_convert_exception): Take a const
9960 reference.
9961 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9962 std::move.
9963 * python/py-utils.c (gdbpy_convert_exception): Take a const
9964 reference.
9965 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9966 Use std::move.
9967 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9968 Use std::move.
9969 * mi/mi-main.c (mi_print_exception): Take a const reference.
9970 * main.c (handle_command_errors): Take a const reference.
9971 * linespec.c (parse_linespec): Use std::move.
9972 * infcall.c (run_inferior_call): Use std::move.
9973 (call_function_by_hand_dummy): Use std::move.
9974 * exec.c (try_open_exec_file): Use std::move.
9975 * exceptions.h (exception_print, exception_fprintf)
9976 (exception_print_same): Update.
9977 * exceptions.c (print_exception, exception_print)
9978 (exception_fprintf, exception_print_same): Change parameters to
9979 const reference.
9980 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9981 * common/new-op.c: Use std::move.
9982 * common/common-exceptions.h (struct gdb_exception): Add move
9983 constructor.
9984 (struct gdb_exception_error, struct gdb_exception_quit, struct
9985 gdb_quit_bad_alloc): Change constructor to move constructor.
9986 (throw_exception): Change parameter to rvalue reference.
9987 * common/common-exceptions.c (throw_exception): Take rvalue
9988 reference.
9989 * cli/cli-interp.c (safe_execute_command): Use std::move.
9990 * breakpoint.c (insert_bp_location, location_to_sals): Use
9991 std::move.
9992
680d7fd5
TT
99932019-04-25 Tom Tromey <tromey@adacore.com>
9994
9995 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9996 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9997 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9998 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9999 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10000 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10001 guile/scm-value.c: Use unpack.
10002 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10003 gdbscm_gdb_exception.
10004 (gdbscm_throw_gdb_exception): Likewise.
10005 (struct gdbscm_gdb_exception): New.
10006 (unpack): New function.
10007 (gdbscm_wrap): Use unpack.
10008
c6fdd8b2
TT
100092019-04-25 Tom Tromey <tromey@adacore.com>
10010
10011 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10012 (gdb_rl_callback_handler): Use std::move.
10013 * common/common-exceptions.h (struct gdb_exception): Add move
10014 assignment operator.
10015 (throw_exception_sjlj): Change "exception" to const reference.
10016 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10017 (throw_exception_sjlj): Change "exception" to const reference.
10018
cc06b668
TT
100192019-04-25 Tom Tromey <tromey@adacore.com>
10020
10021 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10022 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10023 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10024 Update.
10025 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10026 Update.
10027 * mi/mi-interp.c (mi_interp::exec): Update.
10028 * linespec.c (parse_linespec): Update.
10029 * infcall.c (run_inferior_call): Update.
10030 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10031 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10032 (gdbscm_lookup_global_symbol): Update.
10033 * guile/scm-param.c (gdbscm_parameter_value): Update.
10034 * guile/scm-frame.c (gdbscm_frame_read_register)
10035 (gdbscm_frame_read_var): Update.
10036 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10037 * exec.c (try_open_exec_file): Update.
10038 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10039 (gdb_rl_callback_handler): Update.
10040 * common/common-exceptions.h (exception_none): Don't declare.
10041 * common/common-exceptions.c (exception_none): Don't define.
10042 (struct catcher) <exception>: Update.
10043 * cli/cli-interp.c (safe_execute_command): Update.
10044 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10045
cf532bd1
AT
100462019-04-25 Ali Tamur <tamur@google.com>
10047
10048 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10049 (read_attribute_value): Likewise.
10050 (dwarf2_read_addr_index): Update comment.
10051 (read_str_index): Add DW_FORM_strx.
10052 (dwarf2_string_attr): Likewise.
10053 (dwarf2_const_value_attr): Likewise.
10054 (dump_die_shallow): Likewise.
10055 (dwarf2_fetch_constant_bytes): Likewise.
10056 (skip_form_bytes): Likewise.
10057 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10058
82433e3e
SDJ
100592019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10060
10061 PR corefiles/11608
10062 PR corefiles/18187
10063 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10064 OFFSET. Verify if current mapping contains an ELF header.
10065 (linux_find_memory_regions_full): Adjust call to
10066 dump_mapping_p.
10067
723adb65
SL
100682019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10069 Kang Li <kanglictf@gmail.com>
10070
10071 PR gdb/21600
10072
10073 * dwarf2-frame.c (read_initial_length): Be consistent about using
10074 unsigned representation of length.
10075 (decode_frame_entry_1): Likewise. Check for wraparound of
10076 end pointer as well as buffer overflow.
10077
596179f7
SDJ
100782019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10079
10080 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10081 "vq".
10082
a59240a4
TT
100832019-04-24 Tom Tromey <tromey@adacore.com>
10084
10085 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10086
f872fdbb
AB
100872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10088
10089 * s12z-tdep.c (s12z_unwind_pc): Delete.
10090 (s12z_unwind_sp): Delete.
10091 (s12z_gdbarch_init): Don't register deleted functions with
10092 gdbarch.
10093
b614e6f3
AB
100942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10095
10096 * rl78-tdep.c (rl78_unwind_sp): Delete.
10097 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10098
14faed38
AB
100992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10100
10101 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10102 (xstormy16_unwind_pc): Delete.
10103 (xstormy16_dummy_id): Delete.
10104 (xstormy16_gdbarch_init): Don't register deleted functions with
10105 gdbarch.
10106
541aad8a
AB
101072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10108
10109 * vax-tdep.c (vax_unwind_pc): Delete.
10110 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10111
29222070
AB
101122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10113
10114 * v850-tdep.c (v850_unwind_sp): Delete.
10115 (v850_unwind_pc): Delete.
10116 (v850_dummy_id): Delete.
10117 (v850_gdbarch_init): Don't register deleted functions with
10118 gdbarch.
10119
0f534d76
AB
101202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10121
10122 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10123 (tilegx_unwind_pc): Delete.
10124 (tilegx_unwind_dummy_id): Delete.
10125 (tilegx_gdbarch_init): Don't register deleted functions with
10126 gdbarch.
10127
1ba7b7f9
AB
101282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10129
10130 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10131 (tic6x_dummy_id): Delete.
10132 (tic6x_gdbarch_init): Don't register deleted functions with
10133 gdbarch.
10134
d31f262c
AB
101352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10136
10137 * sparc-tdep.c (sparc_unwind_pc): Delete.
10138 (sparc32_gdbarch_init): Don't register deleted function with
10139 gdbarch.
10140
6d14d64d
AB
101412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10142
10143 * sh-tdep.c (sh_unwind_sp): Delete.
10144 (sh_unwind_pc): Delete.
10145 (sh_dummy_id): Delete.
10146 (sh_gdbarch_init): Don't register deleted functions with
10147 gdbarch.
10148
a40dde9d
AB
101492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10150
10151 * score-tdep.c (score_unwind_sp): Delete.
10152 (score_unwind_pc): Delete.
10153 (score_dummy_id): Delete.
10154 (score_gdbarch_init): Don't register deleted functions with
10155 gdbarch.
10156
47c47d69
AB
101572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * rx-tdep.c (rx_unwind_pc): Delete.
10160 (rx_unwind_sp): Delete.
10161 (rx_dummy_id): Delete.
10162 (rx_gdbarch_init): Don't register deleted functions with
10163 gdbarch. Update comment.
10164
833a4480
AB
101652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10166
10167 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10168 (rs6000_dummy_id): Delete.
10169 (rs6000_gdbarch_init): Don't register deleted functions with
10170 gdbarch.
10171
3f2cef49
AB
101722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * or1k-tdep.c (or1k_dummy_id): Delete.
10175 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10176
96acf884
AB
101772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10178
10179 * nios2-tdep.c (nios2_dummy_id): Delete.
10180 (nios2_unwind_sp): Delete.
10181 (nios2_gdbarch_init): Don't register deleted functions with
10182 gdbarch.
10183
ca0ab0aa
AB
101842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * nds32-tdep.c (nds32_dummy_id): Delete.
10187 (nds32_unwind_pc): Delete.
10188 (nds32_unwind_sp): Delete.
10189 (nds32_gdbarch_init): Don't register deleted functions with
10190 gdbarch.
10191
c8259044
AB
101922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10193
10194 * msp430-tdep.c (msp430_unwind_pc): Delete.
10195 (msp430_unwind_sp): Delete.
10196 (msp430_dummy_id): Delete.
10197 (msp430_gdbarch_init): Don't register deleted functions with
10198 gdbarch.
10199
27f113c8
AB
102002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10201
10202 * moxie-tdep.c (moxie_unwind_sp): Delete.
10203 (moxie_unwind_pc): Delete.
10204 (moxie_dummy_id): Delete.
10205 (moxie_gdbarch_init): Don't register deleted functions with
10206 gdbarch.
10207
aee6c3cd
AB
102082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10209
10210 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10211 (mn10300_unwind_pc): Delete.
10212 (mn10300_unwind_sp): Delete.
10213 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10214 mn10300_unwind_sp.
10215 (mn10300_frame_unwind_init): Don't register deleted functions with
10216 gdbarch.
10217
8e2b5aea
AB
102182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10219
10220 * mep-tdep.c (mep_unwind_pc): Delete.
10221 (mep_unwind_sp): Delete.
10222 (mep_dummy_id): Delete.
10223 (mep_gdbarch_init): Don't register deleted functions with
10224 gdbarch.
10225
43cf3ede
AB
102262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10227
10228 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10229 (m68hc11_unwind_sp): Delete.
10230 (m68hc11_gdbarch_init): Don't register deleted functions with
10231 gdbarch.
10232
5e79b7bb
AB
102332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * m32r-tdep.c (m32r_unwind_sp): Delete.
10236 (m32r_unwind_pc): Delete.
10237 (m32r_dummy_id): Delete.
10238 (m32r_gdbarch_init): Don't register deleted functions with
10239 gdbarch.
10240
89b268d8
AB
102412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * m32c-tdep.c (m32c_unwind_pc): Delete.
10244 (m32c_unwind_sp): Delete.
10245 (m32c_dummy_id): Delete.
10246 (m32c_gdbarch_init): Don't register deleted functions with
10247 gdbarch.
10248
946c28d2
AB
102492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10252 (lm32_unwind_pc): Delete.
10253 (lm32_dummy_id): Delete.
10254 (lm32_gdbarch_init): Don't register deleted functions with
10255 gdbarch.
10256
bf12844a
AB
102572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10260 (iq2000_unwind_pc): Delete.
10261 (iq2000_dummy_id): Delete.
10262 (iq2000_gdbarch_init): Don't register deleted functions with
10263 gdbarch.
10264
ecbc06d2
AB
102652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * nds32-tdep.c (nds32_type_align): Delete.
10268 (nds32_push_dummy_call): Use type_align instead.
10269
030197b4
AB
102702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * arm-tdep.c (arm_type_align): Only handle vector override case.
10273 (arm_push_dummy_call): Use type_align.
10274 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10275
b907456c
AB
102762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10279 case.
10280 (pass_on_stack): Use type_align.
10281 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10282 function.
10283
9e97ba43
TT
102842019-04-23 Tom Tromey <tromey@adacore.com>
10285
10286 * dwarf2read.c (line_header::file_name_at): Remove unused
10287 overload.
10288
6892f601
TV
102892019-04-23 Tom de Vries <tdevries@suse.de>
10290
10291 PR gdb/24438
10292 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10293 invocation.
10294
336d760d
AT
10295
102962019-03-27 Ali Tamur <tamur@google.com>
10297
10298 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10299 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10300 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10301 (dwarf_expr_context::get_addr_index): Likewise
10302 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10303 (symbol_needs_eval_context::get_addr_index): Likewise
10304 (disassemble_dwarf_expression): Add DW_OP_addrx
10305 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10306 (read_cutu_die_from_dwo): Update comment
10307 (skip_one_die): Add DW_FORM_addrx
10308 (read_attribute_value): Likewise
10309 (var_decode_location): Add DW_OP_addrx
10310 (dwarf2_const_value_attr): Add DW_FORM_addrx
10311 (dump_die_shallow): Likewise
10312 (dwarf2_fetch_constant_bytes): Likewise
10313 (decode_locdesc): Add DW_OP_addrx
10314 (skip_form_bytes): Add DW_FORM_addrx
10315
ad9d13f8
AT
103162019-04-22 Ali Tamur <tamur@google.com>
10317
10318 * MAINTAINERS (Write After Approval): Add self.
10319
d70cc3ba
SM
103202019-04-22 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10323 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10324 (open_symbol_file_object): Likewise.
10325 (svr4_default_sos): Add info parameter.
10326 (svr4_read_so_list): Likewise.
10327 (svr4_current_sos_direct): Adjust functions calls to pass down
10328 info.
10329 (svr4_current_sos_1): Add info parameter.
10330 (svr4_current_sos): Call get_svr4_info, pass info down to
10331 svr4_current_sos_1.
10332 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10333 get_svr4_info.
10334 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10335 get_svr4_info.
10336 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10337 to get_svr4_info.
10338 (probes_table_remove_objfile_probes): Likewise.
10339 (register_solib_event_probe): Add info parameter.
10340 (solist_update_incremental): Pass info parameter down to
10341 svr4_read_so_list.
10342 (disable_probes_interface): Add info parameter.
10343 (svr4_handle_solib_event): Pass current_program_space to
10344 get_svr4_info. Adjust disable_probes_interface cleanup.
10345 (svr4_create_probe_breakpoints): Add info parameter, pass it
10346 down to register_solib_event_probe.
10347 (svr4_create_solib_event_breakpoints): Add info parameter,
10348 pass it down to svr4_create_probe_breakpoints.
10349 (enable_break): Pass info down to
10350 svr4_create_solib_event_breakpoints.
10351 (svr4_solib_create_inferior_hook): Pass current_program_space to
10352 get_svr4_info.
10353 (svr4_clear_solib): Likewise.
10354
7905fc35
PA
103552019-04-22 Pedro Alves <palves@redhat.com>
10356
10357 * solib-svr4.c (svr4_free_objfile_observer): New.
10358 (probe_and_action::objfile): New field.
10359 (probes_table_htab_remove_objfile_probes)
10360 (probes_table_remove_objfile_probes): New functions.
10361 (register_solib_event_probe): Add 'objfile' parameter. Store it
10362 in the new probe_and_action. Don't store the probe in 'lookup'.
10363 (svr4_create_probe_breakpoints): Pass objfile to
10364 register_solib_event_probe.
10365 (_initialize_svr4_solib): Register a free_objfile observer.
10366
fb881986
TT
103672019-04-19 Tom Tromey <tom@tromey.com>
10368
10369 * common/queue.h: Remove.
10370
8732db6c
TT
103712019-04-19 Tom Tromey <tom@tromey.com>
10372
10373 * event-loop.c: Don't include "common/queue.h".
10374
97dfbadd
TT
103752019-04-19 Tom Tromey <tom@tromey.com>
10376
10377 * remote.c (remote_target): Use delete.
10378 * remote-notif.h: Include <list>, not "common/queue.h".
10379 (notif_client_p): Remove typedef.
10380 (remote_notif_state): Add constructor, destructor, initializer.
10381 <notif_queue>: Now a std::list.
10382 (remote_notif_state_xfree): Don't declare.
10383 * remote-notif.c (remote_notif_process, handle_notification)
10384 (remote_notif_state_allocate): Update.
10385 (~remote_notif_state): Rename from remote_notif_state_xfree.
10386
cf250e36
TT
103872019-04-19 Tom Tromey <tom@tromey.com>
10388
10389 * symfile.c (reread_symbols): Update.
10390 * objfiles.c (objfile_register_static_link)
10391 (objfile_lookup_static_link): Update
10392 (~objfile) Don't delete static_links.
10393 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10394
61f4b350
TT
103952019-04-19 Tom Tromey <tom@tromey.com>
10396
10397 * type-stack.h (struct type_stack) <insert>: Constify string.
10398 * type-stack.c (type_stack::insert): Constify string.
10399 * gdbtypes.h (lookup_template_type): Update.
10400 (address_space_name_to_int): Update.
10401 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10402 const.
10403 (lookup_template_type): Make name const.
10404 * c-exp.y: Update rules.
10405 (lex_one_token, classify_name, classify_inner_name)
10406 (c_print_token): Update.
10407 * p-exp.y: Update rules.
10408 (yylex): Update.
10409 * f-exp.y: Update rules.
10410 (yylex): Update.
10411 * d-exp.y: Update rules.
10412 (lex_one_token, classify_name, classify_inner_name): Update.
10413 * parse.c (write_dollar_variable, copy_name): Return std::string.
10414 * parser-defs.h (copy_name): Change return type.
10415 * m2-exp.y: Update rules.
10416 (yylex): Update.
10417 * go-exp.y (lex_one_token): Update.
10418 Update rules.
10419 (classify_unsafe_function, classify_packaged_name)
10420 (classify_name, yylex): Update.
10421
189b8c2e
ST
104222019-04-19 Sergei Trofimovich <siarheit@google.com>
10423
10424 * configure.ac: add --enable-source-highlight switch.
10425 * configure: Regenerate.
10426 * top.c (print_gdb_version): plumb --enable-source-highlight
10427 status to "show configuration".
10428
8ecb59f8
TT
104292019-04-19 Tom Tromey <tromey@adacore.com>
10430
10431 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10432 Check ADA_TYPE_P.
10433 (empty_record, ada_template_to_fixed_record_type_1)
10434 (template_to_static_fixed_type)
10435 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10436 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10437 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10438 macros.
10439
62160ec9
TT
104402019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10441
10442 PR symtab/24423:
10443 * source.c (print_source_lines_base): Advance "iter" when a
10444 control character is seen.
10445
f2ae8bc8
PW
104462019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10447
10448 * inferior.h (struct infcall_suspend_state_deleter):
10449 Catch exception in destructor to avoid crash.
10450
d563b953
PW
104512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10452
10453 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10454 close to the add_com "shell".
10455
dc34c897
TT
104562019-04-18 Tom Tromey <tromey@adacore.com>
10457
10458 * process-stratum-target.h (class process_stratum_target)
10459 <stratum>: Add "final".
10460
a12e5744
TT
104612019-04-17 Tom Tromey <tromey@adacore.com>
10462
10463 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10464 against nullptr before use.
10465
a7e559cc
AH
104662019-04-17 Alan Hayward <alan.hayward@arm.com>
10467
10468 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10469
c01660c6
AB
104702019-04-17 Jim Wilson <jimw@sifive.com>
10471 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10474 code read might fail, assume 4-byte breakpoint in that case.
10475
4aa866af
LS
104762019-04-15 Leszek Swirski <leszeks@google.com>
10477
10478 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10479 rather than a hand-rolled POD check when checking for forced MEMORY
10480 classification.
10481
48574d91
AH
104822019-04-15 Alan Hayward <alan.hayward@arm.com>
10483
10484 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10485 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10486 function.
10487 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10488 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10489 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10490 declaration.
10491
4da037ef
AH
104922019-04-15 Alan Hayward <alan.hayward@arm.com>
10493
10494 * aarch64-linux-nat.c
10495 (aarch64_linux_nat_target::thread_architecture): Add override.
10496 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10497 each VQ.
10498
ccb8d7e8
AH
104992019-04-15 Alan Hayward <alan.hayward@arm.com>
10500
10501 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10502
35add35e
AB
105032019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10504
10505 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10506 target types of size 96-bits, add some additional comments, and
10507 check that the builtin type we found was the correct size.
10508
51196bbc
EZ
105092019-04-12 Eli Zaretskii <eliz@gnu.org>
10510
10511 * utils.c (prompt_for_continue): Don't restore the styling at the
10512 end, as applied_style has the wrong value. This fixes styling in
10513 long lists of file names that are interrupted by the "Continue?"
10514 prompt.
10515
62253a61
AB
105162019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10517
10518 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10519 * c-lang.c (c_language_defn): Likewise.
10520 (cplus_language_defn): Likewise.
10521 (asm_language_defn): Likewise.
10522 (minimal_language_defn): Likewise.
10523 * d-lang.c (d_language_defn): Likewise.
10524 * f-lang.c (f_language_defn): Likewise.
10525 * go-lang.c (go_language_defn): Likewise.
10526 * language.c (unknown_language_defn): Likewise.
10527 (auto_language_defn): Likewise.
10528 * language.h (struct language_defn): Remove la_magic field.
10529 (LANG_MAGIC): Delete.
10530 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10531 * objc-lang.c (objc_language_defn): Likewise.
10532 * opencl-lang.c (opencl_language_defn): Likewise.
10533 * p-lang.c (pascal_language_defn): Likewise.
10534 * rust-lang.c (rust_language_defn): Likewise.
10535
a9158a86
AB
105362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10537
10538 * riscv-tdep.c (riscv_type_align): New function.
10539 (riscv_type_alignment): Delete.
10540 (riscv_arg_location): Use 'type_align'.
10541 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10542
41077b66
AB
105432019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10544
10545 * gdbtypes.c (type_align): A struct with no non-static fields also
10546 has alignment of 1.
10547
9f0272f8
AB
105482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10549
10550 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10551 component to 0.
10552 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10553 member.
10554 (riscv_struct_info::analyse): New implementation using new
10555 analyse_inner member function.
10556 (riscv_struct_info::field_offset): New member function.
10557 (riscv_struct_info::m_offsets): New member variable.
10558 (riscv_struct_info::analyse_inner): New private member function,
10559 takes the old implementation of riscv_struct_info::analyse but
10560 extended to track field offsets.
10561 (riscv_call_arg_struct): Update the struct folding special cases
10562 to handle cases where empty C++ structs, which are non-zero
10563 length, are found.
10564 (riscv_arg_location): Initialise the length of each location, a
10565 non-zero length now indicates the location is in use.
10566 (riscv_push_dummy_call): Allow for the first location having a
10567 non-zero offset when setting up arguments.
10568 (riscv_return_value): Likewise, but for return values.
10569
02cf60c7
TT
105702019-04-11 Tom Tromey <tromey@adacore.com>
10571
10572 * utils.c (internal_vproblem): Make "msg" const.
10573
68811f8f
AH
105742019-04-11 Alan Hayward <alan.hayward@arm.com>
10575
10576 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10577 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10578 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10579 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10580
3f52fdbc
KB
105812019-04-10 Kevin Buettner <kevinb@redhat.com>
10582
10583 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10584 function.
10585 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10586 of amd64_collect_native_gregset.
10587 (amd64_linux_nat_target::store_registers): Likewise.
10588
e9ad22ee
TT
105892019-04-10 Tom Tromey <tom@tromey.com>
10590
10591 * symtab.c (lookup_global_symbol_from_objfile)
10592 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10593 * objfiles.h (class separate_debug_iterator): New.
10594 (class separate_debug_range): New.
10595 (struct objfile) <separate_debug_objfiles>: New method.
10596 (objfile_separate_debug_iterate): Don't declare.
10597 * objfiles.c (separate_debug_iterator::operator++): Rename from
10598 objfile_separate_debug_iterate.
10599 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10600 iterator.
10601 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10602 iterator.
10603
ee371134
TT
106042019-04-10 Tom Tromey <tom@tromey.com>
10605
10606 * symfile.c (reread_symbols): Remove old comment.
10607 * objfiles.c (free_all_objfiles): Fix a typo.
10608
bf227d61
TT
106092019-04-10 Tom Tromey <tom@tromey.com>
10610
10611 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10612 * minsyms.c (lookup_minimal_symbol): Use foreach.
10613 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10614 (lookup_minimal_symbol_solib_trampoline): Likewise.
10615 * symfile.c (reread_symbols): Use foreach.
10616
8dc433a0
TT
106172019-04-09 Ivan Begert <ivanbegert@gmail.com>
10618 Tom Tromey <tromey@adacore.com>
10619
10620 PR rust/24414:
10621 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10622 (rust_lex_int_test): Change "value" to be LONGEST.
10623 (rust_lex_tests): Add test for long integer literal.
10624
9ab8741a
TT
106252019-04-09 Tom Tromey <tromey@adacore.com>
10626
10627 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10628 to bool.
10629 (extended_remote_target::attach): Update.
10630 (remote_target::remote_notice_new_inferior): Update.
10631 (remote_target::add_current_inferior_and_thread): Update.
10632 * inferior.c (exit_inferior_1): Use "false".
10633 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10634
e242fd12
SM
106352019-04-09 Simon Marchi <simon.marchi@efficios.com>
10636
9ca1957f 10637 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10638 the "start" command.
10639
2b0c8b01
KB
106402019-04-08 Kevin Buettner <kevinb@redhat.com>
10641
10642 * python/py-inferior.c (infpy_thread_from_thread_handle):
10643 Adjust comments to reflect renaming of thread_from_thread_handle
10644 to thread_from_handle. Adjust keywords. Fix type error message.
10645 (inferior_object_methods): Add thread_from_handle. Retain
10646 thread_from_thread_handle, but mark it as deprecated.
10647
50a82723
KB
106482019-04-08 Kevin Buettner <kevinb@redhat.com>
10649
10650 * gdbthread.h (find_thread_by_handle): Revise declaration.
10651 * thread.c (find_thread_by_handle): Likewise. Adjust
10652 implementation too.
10653 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10654 support for buffer objects as handles.
10655
cf63b016
KB
106562019-04-08 Kevin Buettner <kevinb@redhat.com>
10657
10658 * python/py-infthread.c (thpy_thread_handle): New function.
10659 (thread_object_methods): Register thpy_thread_handle.
10660
3d6c6204
KB
106612019-04-08 Kevin Buettner <kevinb@redhat.com>
10662
10663 * gdbthread.h (thread_to_thread_handle): Declare.
10664 * thread.c (gdbtypes.h): Include.
10665 (thread_to_thread_handle): New function.
10666
10667 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10668 (target_thread_info_to_thread_handle): Declare.
10669 * target.c (target_thread_info_to_thread_handle): New function.
10670 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10671 * target-delegates.c: Regenerate.
10672
10673 * linux-thread-db.c (class thread_db_target): Add method
10674 thread_info_to_thread_handle.
10675 (thread_db_target::thread_info_to_thread_handle): Define.
10676 * remote.c (class remote_target): Add new method
10677 thread_info_to_thread_handle.
10678 (remote_target::thread_info_to_thread_handle): Define.
10679
56be6ea8
PA
106802019-04-08 Pedro Alves <palves@redhat.com>
10681
10682 * common/common-exceptions.c (throw_exception): Don't create
10683 named object to throw; throw directly.
10684 (throw_it): Likewise. Don't initialize gdb_exception::message
10685 here, with new; pass FMT and AP to the ctor instead.
10686 * common/common-exceptions.h: Include <string>.
10687 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10688 const char *, va_list)): New ctor. Use std::make_shared.
10689 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10690 errors)): Delete.
10691 (gdb_exception_error::gdb_exception_error(enum errors, const char
10692 *, va_list)): New.
10693 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10694 Add assertion.
10695 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10696 errors)): Delete.
10697 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10698 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10699 Add assertion.
10700
eedc3f4f
TT
107012019-04-08 Tom Tromey <tom@tromey.com>
10702
10703 * valops.c (value_rtti_indirect_type): Replace throw_exception
10704 with throw.
10705 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10706 with throw.
10707 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10708 throw.
10709 * target.c (target_translate_tls_address): Replace throw_exception
10710 with throw.
10711 * stack.c (frame_apply_command_count): Replace throw_exception
10712 with throw.
10713 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10714 throw.
10715 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10716 with throw.
10717 * rs6000-tdep.c (rs6000_frame_cache)
10718 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10719 * remote.c: Replace throw_exception with throw.
10720 * record-full.c (record_full_message, record_full_wait_1)
10721 (record_full_restore): Replace throw_exception with throw.
10722 * record-btrace.c:
10723 (get_thread_current_frame_id, record_btrace_start_replaying)
10724 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10725 (cmd_record_btrace_start): Replace throw_exception with throw.
10726 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10727 throw.
10728 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10729 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10730 * linespec.c:
10731 (find_linespec_symbols): Replace throw_exception with throw.
10732 * infrun.c (displaced_step_prepare, resume): Replace
10733 throw_exception with throw.
10734 * infcmd.c (post_create_inferior): Replace throw_exception with
10735 throw.
10736 * inf-loop.c (inferior_event_handler): Replace throw_exception
10737 with throw.
10738 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10739 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10740 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10741 (get_prev_frame_always, get_frame_pc_if_available)
10742 (get_frame_address_in_block_if_available, get_frame_language):
10743 Replace throw_exception with throw.
10744 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10745 throw_exception with throw.
10746 * eval.c (fetch_subexp_value, evaluate_var_value)
10747 (evaluate_funcall, evaluate_subexp_standard): Replace
10748 throw_exception with throw.
10749 * dwarf2loc.c (call_site_find_chain)
10750 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10751 Replace throw_exception with throw.
10752 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10753 with throw.
10754 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10755 throw.
10756 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10757 * completer.c (complete_line_internal): Replace throw_exception
10758 with throw.
10759 * compile/compile-object-run.c (compile_object_run): Replace
10760 throw_exception with throw.
10761 * cli/cli-script.c (process_next_line): Replace throw_exception
10762 with throw.
10763 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10764 (btrace_enable, btrace_maint_update_pt_packets): Replace
10765 throw_exception with throw.
10766 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10767 throw_exception with throw.
10768 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10769 throw_exception with throw.
10770 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10771 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10772 * aarch64-tdep.c (aarch64_make_prologue_cache)
10773 (aarch64_make_stub_cache): Replace throw_exception with throw.
10774
26003a20
TT
107752019-04-08 Tom Tromey <tom@tromey.com>
10776
10777 * common/common-exceptions.c (throw_exception): Rename from
10778 throw_exception_cxx. Remove old copy. Make argument const.
10779 (throw_it): Create and throw exception objects directly.
10780 * common/common-exceptions.h (throw_exception): Make argument
10781 const.
10782 (struct gdb_exception_error): Add constructor.
10783 (struct gdb_exception_quit): Add constructor.
10784
d272eb37
TT
107852019-04-08 Tom Tromey <tom@tromey.com>
10786
10787 * common/common-exceptions.h (exception_rethrow): Don't declare.
10788 (TRY_SJLJ): Update comment.
10789 (TRY, CATCH, END_CATCH): Remove.
10790 * common/common-exceptions.c (exception_rethrow): Remove.
10791
230d2906
TT
107922019-04-08 Tom Tromey <tom@tromey.com>
10793
10794 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10795 Remove.
10796 (gdb_exception_error): Rename from
10797 gdb_exception_RETURN_MASK_ERROR.
10798 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10799 (gdb_quit_bad_alloc): Update.
10800 * aarch64-tdep.c: Update.
10801 * ada-lang.c: Update.
10802 * ada-typeprint.c: Update.
10803 * ada-valprint.c: Update.
10804 * amd64-tdep.c: Update.
10805 * arch-utils.c: Update.
10806 * break-catch-throw.c: Update.
10807 * breakpoint.c: Update.
10808 * btrace.c: Update.
10809 * c-varobj.c: Update.
10810 * cli/cli-cmds.c: Update.
10811 * cli/cli-interp.c: Update.
10812 * cli/cli-script.c: Update.
10813 * common/common-exceptions.c: Update.
10814 * common/new-op.c: Update.
10815 * common/selftest.c: Update.
10816 * compile/compile-c-symbols.c: Update.
10817 * compile/compile-cplus-symbols.c: Update.
10818 * compile/compile-object-load.c: Update.
10819 * compile/compile-object-run.c: Update.
10820 * completer.c: Update.
10821 * corelow.c: Update.
10822 * cp-abi.c: Update.
10823 * cp-support.c: Update.
10824 * cp-valprint.c: Update.
10825 * darwin-nat.c: Update.
10826 * disasm-selftests.c: Update.
10827 * dtrace-probe.c: Update.
10828 * dwarf-index-cache.c: Update.
10829 * dwarf-index-write.c: Update.
10830 * dwarf2-frame-tailcall.c: Update.
10831 * dwarf2-frame.c: Update.
10832 * dwarf2loc.c: Update.
10833 * dwarf2read.c: Update.
10834 * eval.c: Update.
10835 * event-loop.c: Update.
10836 * event-top.c: Update.
10837 * exec.c: Update.
10838 * f-valprint.c: Update.
10839 * fbsd-tdep.c: Update.
10840 * frame-unwind.c: Update.
10841 * frame.c: Update.
10842 * gdbtypes.c: Update.
10843 * gnu-v3-abi.c: Update.
10844 * guile/guile-internal.h: Update.
10845 * guile/scm-block.c: Update.
10846 * guile/scm-breakpoint.c: Update.
10847 * guile/scm-cmd.c: Update.
10848 * guile/scm-disasm.c: Update.
10849 * guile/scm-frame.c: Update.
10850 * guile/scm-lazy-string.c: Update.
10851 * guile/scm-math.c: Update.
10852 * guile/scm-param.c: Update.
10853 * guile/scm-ports.c: Update.
10854 * guile/scm-pretty-print.c: Update.
10855 * guile/scm-symbol.c: Update.
10856 * guile/scm-symtab.c: Update.
10857 * guile/scm-type.c: Update.
10858 * guile/scm-value.c: Update.
10859 * i386-linux-tdep.c: Update.
10860 * i386-tdep.c: Update.
10861 * inf-loop.c: Update.
10862 * infcall.c: Update.
10863 * infcmd.c: Update.
10864 * infrun.c: Update.
10865 * jit.c: Update.
10866 * language.c: Update.
10867 * linespec.c: Update.
10868 * linux-fork.c: Update.
10869 * linux-nat.c: Update.
10870 * linux-tdep.c: Update.
10871 * linux-thread-db.c: Update.
10872 * main.c: Update.
10873 * mi/mi-cmd-break.c: Update.
10874 * mi/mi-cmd-stack.c: Update.
10875 * mi/mi-interp.c: Update.
10876 * mi/mi-main.c: Update.
10877 * objc-lang.c: Update.
10878 * p-valprint.c: Update.
10879 * parse.c: Update.
10880 * ppc-linux-tdep.c: Update.
10881 * printcmd.c: Update.
10882 * python/py-arch.c: Update.
10883 * python/py-breakpoint.c: Update.
10884 * python/py-cmd.c: Update.
10885 * python/py-finishbreakpoint.c: Update.
10886 * python/py-frame.c: Update.
10887 * python/py-framefilter.c: Update.
10888 * python/py-gdb-readline.c: Update.
10889 * python/py-inferior.c: Update.
10890 * python/py-infthread.c: Update.
10891 * python/py-lazy-string.c: Update.
10892 * python/py-linetable.c: Update.
10893 * python/py-objfile.c: Update.
10894 * python/py-param.c: Update.
10895 * python/py-prettyprint.c: Update.
10896 * python/py-progspace.c: Update.
10897 * python/py-record-btrace.c: Update.
10898 * python/py-record.c: Update.
10899 * python/py-symbol.c: Update.
10900 * python/py-type.c: Update.
10901 * python/py-unwind.c: Update.
10902 * python/py-utils.c: Update.
10903 * python/py-value.c: Update.
10904 * python/python.c: Update.
10905 * record-btrace.c: Update.
10906 * record-full.c: Update.
10907 * remote-fileio.c: Update.
10908 * remote.c: Update.
10909 * riscv-tdep.c: Update.
10910 * rs6000-aix-tdep.c: Update.
10911 * rs6000-tdep.c: Update.
10912 * rust-exp.y: Update.
10913 * rust-lang.c: Update.
10914 * s390-tdep.c: Update.
10915 * selftest-arch.c: Update.
10916 * solib-dsbt.c: Update.
10917 * solib-frv.c: Update.
10918 * solib-spu.c: Update.
10919 * solib-svr4.c: Update.
10920 * solib.c: Update.
10921 * sparc64-linux-tdep.c: Update.
10922 * stack.c: Update.
10923 * symfile-mem.c: Update.
10924 * symmisc.c: Update.
10925 * target.c: Update.
10926 * thread.c: Update.
10927 * top.c: Update.
10928 * tracefile-tfile.c: Update.
10929 * tui/tui.c: Update.
10930 * typeprint.c: Update.
10931 * unittests/cli-utils-selftests.c: Update.
10932 * unittests/parse-connection-spec-selftests.c: Update.
10933 * valops.c: Update.
10934 * valprint.c: Update.
10935 * value.c: Update.
10936 * varobj.c: Update.
10937 * windows-nat.c: Update.
10938 * x86-linux-nat.c: Update.
10939 * xml-support.c: Update.
10940
a70b8144
TT
109412019-04-08 Tom Tromey <tom@tromey.com>
10942
10943 * xml-support.c: Use C++ exception handling.
10944 * x86-linux-nat.c: Use C++ exception handling.
10945 * windows-nat.c: Use C++ exception handling.
10946 * varobj.c: Use C++ exception handling.
10947 * value.c: Use C++ exception handling.
10948 * valprint.c: Use C++ exception handling.
10949 * valops.c: Use C++ exception handling.
10950 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10951 handling.
10952 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10953 * typeprint.c: Use C++ exception handling.
10954 * tui/tui.c: Use C++ exception handling.
10955 * tracefile-tfile.c: Use C++ exception handling.
10956 * top.c: Use C++ exception handling.
10957 * thread.c: Use C++ exception handling.
10958 * target.c: Use C++ exception handling.
10959 * symmisc.c: Use C++ exception handling.
10960 * symfile-mem.c: Use C++ exception handling.
10961 * stack.c: Use C++ exception handling.
10962 * sparc64-linux-tdep.c: Use C++ exception handling.
10963 * solib.c: Use C++ exception handling.
10964 * solib-svr4.c: Use C++ exception handling.
10965 * solib-spu.c: Use C++ exception handling.
10966 * solib-frv.c: Use C++ exception handling.
10967 * solib-dsbt.c: Use C++ exception handling.
10968 * selftest-arch.c: Use C++ exception handling.
10969 * s390-tdep.c: Use C++ exception handling.
10970 * rust-lang.c: Use C++ exception handling.
10971 * rust-exp.y: Use C++ exception handling.
10972 * rs6000-tdep.c: Use C++ exception handling.
10973 * rs6000-aix-tdep.c: Use C++ exception handling.
10974 * riscv-tdep.c: Use C++ exception handling.
10975 * remote.c: Use C++ exception handling.
10976 * remote-fileio.c: Use C++ exception handling.
10977 * record-full.c: Use C++ exception handling.
10978 * record-btrace.c: Use C++ exception handling.
10979 * python/python.c: Use C++ exception handling.
10980 * python/py-value.c: Use C++ exception handling.
10981 * python/py-utils.c: Use C++ exception handling.
10982 * python/py-unwind.c: Use C++ exception handling.
10983 * python/py-type.c: Use C++ exception handling.
10984 * python/py-symbol.c: Use C++ exception handling.
10985 * python/py-record.c: Use C++ exception handling.
10986 * python/py-record-btrace.c: Use C++ exception handling.
10987 * python/py-progspace.c: Use C++ exception handling.
10988 * python/py-prettyprint.c: Use C++ exception handling.
10989 * python/py-param.c: Use C++ exception handling.
10990 * python/py-objfile.c: Use C++ exception handling.
10991 * python/py-linetable.c: Use C++ exception handling.
10992 * python/py-lazy-string.c: Use C++ exception handling.
10993 * python/py-infthread.c: Use C++ exception handling.
10994 * python/py-inferior.c: Use C++ exception handling.
10995 * python/py-gdb-readline.c: Use C++ exception handling.
10996 * python/py-framefilter.c: Use C++ exception handling.
10997 * python/py-frame.c: Use C++ exception handling.
10998 * python/py-finishbreakpoint.c: Use C++ exception handling.
10999 * python/py-cmd.c: Use C++ exception handling.
11000 * python/py-breakpoint.c: Use C++ exception handling.
11001 * python/py-arch.c: Use C++ exception handling.
11002 * printcmd.c: Use C++ exception handling.
11003 * ppc-linux-tdep.c: Use C++ exception handling.
11004 * parse.c: Use C++ exception handling.
11005 * p-valprint.c: Use C++ exception handling.
11006 * objc-lang.c: Use C++ exception handling.
11007 * mi/mi-main.c: Use C++ exception handling.
11008 * mi/mi-interp.c: Use C++ exception handling.
11009 * mi/mi-cmd-stack.c: Use C++ exception handling.
11010 * mi/mi-cmd-break.c: Use C++ exception handling.
11011 * main.c: Use C++ exception handling.
11012 * linux-thread-db.c: Use C++ exception handling.
11013 * linux-tdep.c: Use C++ exception handling.
11014 * linux-nat.c: Use C++ exception handling.
11015 * linux-fork.c: Use C++ exception handling.
11016 * linespec.c: Use C++ exception handling.
11017 * language.c: Use C++ exception handling.
11018 * jit.c: Use C++ exception handling.
11019 * infrun.c: Use C++ exception handling.
11020 * infcmd.c: Use C++ exception handling.
11021 * infcall.c: Use C++ exception handling.
11022 * inf-loop.c: Use C++ exception handling.
11023 * i386-tdep.c: Use C++ exception handling.
11024 * i386-linux-tdep.c: Use C++ exception handling.
11025 * guile/scm-value.c: Use C++ exception handling.
11026 * guile/scm-type.c: Use C++ exception handling.
11027 * guile/scm-symtab.c: Use C++ exception handling.
11028 * guile/scm-symbol.c: Use C++ exception handling.
11029 * guile/scm-pretty-print.c: Use C++ exception handling.
11030 * guile/scm-ports.c: Use C++ exception handling.
11031 * guile/scm-param.c: Use C++ exception handling.
11032 * guile/scm-math.c: Use C++ exception handling.
11033 * guile/scm-lazy-string.c: Use C++ exception handling.
11034 * guile/scm-frame.c: Use C++ exception handling.
11035 * guile/scm-disasm.c: Use C++ exception handling.
11036 * guile/scm-cmd.c: Use C++ exception handling.
11037 * guile/scm-breakpoint.c: Use C++ exception handling.
11038 * guile/scm-block.c: Use C++ exception handling.
11039 * guile/guile-internal.h: Use C++ exception handling.
11040 * gnu-v3-abi.c: Use C++ exception handling.
11041 * gdbtypes.c: Use C++ exception handling.
11042 * frame.c: Use C++ exception handling.
11043 * frame-unwind.c: Use C++ exception handling.
11044 * fbsd-tdep.c: Use C++ exception handling.
11045 * f-valprint.c: Use C++ exception handling.
11046 * exec.c: Use C++ exception handling.
11047 * event-top.c: Use C++ exception handling.
11048 * event-loop.c: Use C++ exception handling.
11049 * eval.c: Use C++ exception handling.
11050 * dwarf2read.c: Use C++ exception handling.
11051 * dwarf2loc.c: Use C++ exception handling.
11052 * dwarf2-frame.c: Use C++ exception handling.
11053 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11054 * dwarf-index-write.c: Use C++ exception handling.
11055 * dwarf-index-cache.c: Use C++ exception handling.
11056 * dtrace-probe.c: Use C++ exception handling.
11057 * disasm-selftests.c: Use C++ exception handling.
11058 * darwin-nat.c: Use C++ exception handling.
11059 * cp-valprint.c: Use C++ exception handling.
11060 * cp-support.c: Use C++ exception handling.
11061 * cp-abi.c: Use C++ exception handling.
11062 * corelow.c: Use C++ exception handling.
11063 * completer.c: Use C++ exception handling.
11064 * compile/compile-object-run.c: Use C++ exception handling.
11065 * compile/compile-object-load.c: Use C++ exception handling.
11066 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11067 * compile/compile-c-symbols.c: Use C++ exception handling.
11068 * common/selftest.c: Use C++ exception handling.
11069 * common/new-op.c: Use C++ exception handling.
11070 * cli/cli-script.c: Use C++ exception handling.
11071 * cli/cli-interp.c: Use C++ exception handling.
11072 * cli/cli-cmds.c: Use C++ exception handling.
11073 * c-varobj.c: Use C++ exception handling.
11074 * btrace.c: Use C++ exception handling.
11075 * breakpoint.c: Use C++ exception handling.
11076 * break-catch-throw.c: Use C++ exception handling.
11077 * arch-utils.c: Use C++ exception handling.
11078 * amd64-tdep.c: Use C++ exception handling.
11079 * ada-valprint.c: Use C++ exception handling.
11080 * ada-typeprint.c: Use C++ exception handling.
11081 * ada-lang.c: Use C++ exception handling.
11082 * aarch64-tdep.c: Use C++ exception handling.
11083
3d6e9d23
TT
110842019-04-08 Tom Tromey <tom@tromey.com>
11085
11086 * xml-support.c (gdb_xml_parser::parse): Update.
11087 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11088 * value.c (show_convenience): Update.
11089 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11090 (test_parse_flags_qcs): Update.
11091 * thread.c (thr_try_catch_cmd): Update.
11092 * target.c (target_translate_tls_address): Update.
11093 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11094 (info_frame_command_core, frame_apply_command_count): Update.
11095 * rust-exp.y (rust_lex_exception_test): Update.
11096 * riscv-tdep.c (riscv_print_one_register_info): Update.
11097 * remote.c (remote_target::enable_btrace): Update.
11098 * record-btrace.c (record_btrace_enable_warn): Update.
11099 * python/py-utils.c (gdbpy_convert_exception): Update.
11100 * printcmd.c (do_one_display, print_variable_and_value): Update.
11101 * mi/mi-main.c (mi_print_exception): Update.
11102 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11103 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11104 * linux-nat.c (linux_nat_target::attach): Update.
11105 * linux-fork.c (class scoped_switch_fork_info): Update.
11106 * infrun.c (displaced_step_prepare): Update.
11107 * infcall.c (call_function_by_hand_dummy): Update.
11108 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11109 * gnu-v3-abi.c (print_one_vtable): Update.
11110 * frame.c (get_prev_frame_always): Update.
11111 * f-valprint.c (info_common_command_for_block): Update.
11112 * exec.c (try_open_exec_file): Update.
11113 * exceptions.c (print_exception, exception_print)
11114 (exception_fprintf, exception_print_same): Update.
11115 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11116 * dwarf-index-cache.c (index_cache::store)
11117 (index_cache::lookup_gdb_index): Update.
11118 * darwin-nat.c (maybe_cache_shell): Update.
11119 * cp-valprint.c (cp_print_value_fields): Update.
11120 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11121 (gcc_cplus_symbol_address): Update.
11122 * compile/compile-c-symbols.c (gcc_convert_symbol)
11123 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11124 * common/selftest.c: Update.
11125 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11126 a std::string.
11127 (exception_try_scope_entry, exception_try_scope_exit): Don't
11128 declare.
11129 (struct exception_try_scope): Remove.
11130 (TRY): Don't use exception_try_scope.
11131 (struct gdb_exception): Add constructor, operator=.
11132 <what>: New method.
11133 (struct gdb_exception_RETURN_MASK_ALL)
11134 (struct gdb_exception_RETURN_MASK_ERROR)
11135 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11136 (struct gdb_quit_bad_alloc): Update.
11137 * common/common-exceptions.c (exception_none): Change
11138 initializer.
11139 (struct catcher) <state, exception>: Initialize inline.
11140 <prev>: Remove member.
11141 (current_catcher): Remove.
11142 (catchers): New global.
11143 (exceptions_state_mc_init): Simplify.
11144 (catcher_pop): Remove.
11145 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11146 (try_scope_depth, exception_try_scope_entry)
11147 (exception_try_scope_exit): Remove.
11148 (throw_exception_sjlj): Update.
11149 (exception_messages, exception_messages_size): Remove.
11150 (throw_it): Simplify.
11151 (gdb_exception_sliced_copy): Remove.
11152 (throw_exception_cxx): Update.
11153 * cli/cli-script.c (script_from_file): Update.
11154 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11155 Update.
11156 * ada-valprint.c (ada_val_print): Update.
11157 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11158 (create_excep_cond_exprs): Update.
11159
c5c10118
TT
111602019-04-08 Tom Tromey <tom@tromey.com>
11161
11162 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11163 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11164 (TRY, CATCH, END_CATCH): Remove some definitions.
11165 * common/common-exceptions.c: Don't use GDB_XCPT.
11166 (catcher_list_size): Remove.
11167 (throw_exception, throw_it): Simplify.
11168
4de283e4
TT
111692019-04-05 Tom Tromey <tom@tromey.com>
11170
11171 Revert the header-sorting patch.
11172 * ft32-tdep.c: Revert.
11173 * frv-tdep.c: Revert.
11174 * frv-linux-tdep.c: Revert.
11175 * frame.c: Revert.
11176 * frame-unwind.c: Revert.
11177 * frame-base.c: Revert.
11178 * fork-child.c: Revert.
11179 * findvar.c: Revert.
11180 * findcmd.c: Revert.
11181 * filesystem.c: Revert.
11182 * filename-seen-cache.h: Revert.
11183 * filename-seen-cache.c: Revert.
11184 * fbsd-tdep.c: Revert.
11185 * fbsd-nat.h: Revert.
11186 * fbsd-nat.c: Revert.
11187 * f-valprint.c: Revert.
11188 * f-typeprint.c: Revert.
11189 * f-lang.c: Revert.
11190 * extension.h: Revert.
11191 * extension.c: Revert.
11192 * extension-priv.h: Revert.
11193 * expprint.c: Revert.
11194 * exec.h: Revert.
11195 * exec.c: Revert.
11196 * exceptions.c: Revert.
11197 * event-top.c: Revert.
11198 * event-loop.c: Revert.
11199 * eval.c: Revert.
11200 * elfread.c: Revert.
11201 * dwarf2read.h: Revert.
11202 * dwarf2read.c: Revert.
11203 * dwarf2loc.c: Revert.
11204 * dwarf2expr.h: Revert.
11205 * dwarf2expr.c: Revert.
11206 * dwarf2-frame.c: Revert.
11207 * dwarf2-frame-tailcall.c: Revert.
11208 * dwarf-index-write.h: Revert.
11209 * dwarf-index-write.c: Revert.
11210 * dwarf-index-common.c: Revert.
11211 * dwarf-index-cache.h: Revert.
11212 * dwarf-index-cache.c: Revert.
11213 * dummy-frame.c: Revert.
11214 * dtrace-probe.c: Revert.
11215 * disasm.h: Revert.
11216 * disasm.c: Revert.
11217 * disasm-selftests.c: Revert.
11218 * dictionary.c: Revert.
11219 * dicos-tdep.c: Revert.
11220 * demangle.c: Revert.
11221 * dcache.h: Revert.
11222 * dcache.c: Revert.
11223 * darwin-nat.h: Revert.
11224 * darwin-nat.c: Revert.
11225 * darwin-nat-info.c: Revert.
11226 * d-valprint.c: Revert.
11227 * d-namespace.c: Revert.
11228 * d-lang.c: Revert.
11229 * ctf.c: Revert.
11230 * csky-tdep.c: Revert.
11231 * csky-linux-tdep.c: Revert.
11232 * cris-tdep.c: Revert.
11233 * cris-linux-tdep.c: Revert.
11234 * cp-valprint.c: Revert.
11235 * cp-support.c: Revert.
11236 * cp-namespace.c: Revert.
11237 * cp-abi.c: Revert.
11238 * corelow.c: Revert.
11239 * corefile.c: Revert.
11240 * continuations.c: Revert.
11241 * completer.h: Revert.
11242 * completer.c: Revert.
11243 * complaints.c: Revert.
11244 * coffread.c: Revert.
11245 * coff-pe-read.c: Revert.
11246 * cli-out.h: Revert.
11247 * cli-out.c: Revert.
11248 * charset.c: Revert.
11249 * c-varobj.c: Revert.
11250 * c-valprint.c: Revert.
11251 * c-typeprint.c: Revert.
11252 * c-lang.c: Revert.
11253 * buildsym.c: Revert.
11254 * buildsym-legacy.c: Revert.
11255 * build-id.h: Revert.
11256 * build-id.c: Revert.
11257 * btrace.c: Revert.
11258 * bsd-uthread.c: Revert.
11259 * breakpoint.h: Revert.
11260 * breakpoint.c: Revert.
11261 * break-catch-throw.c: Revert.
11262 * break-catch-syscall.c: Revert.
11263 * break-catch-sig.c: Revert.
11264 * blockframe.c: Revert.
11265 * block.c: Revert.
11266 * bfin-tdep.c: Revert.
11267 * bfin-linux-tdep.c: Revert.
11268 * bfd-target.c: Revert.
11269 * bcache.c: Revert.
11270 * ax-general.c: Revert.
11271 * ax-gdb.h: Revert.
11272 * ax-gdb.c: Revert.
11273 * avr-tdep.c: Revert.
11274 * auxv.c: Revert.
11275 * auto-load.c: Revert.
11276 * arm-wince-tdep.c: Revert.
11277 * arm-tdep.c: Revert.
11278 * arm-symbian-tdep.c: Revert.
11279 * arm-pikeos-tdep.c: Revert.
11280 * arm-obsd-tdep.c: Revert.
11281 * arm-nbsd-tdep.c: Revert.
11282 * arm-nbsd-nat.c: Revert.
11283 * arm-linux-tdep.c: Revert.
11284 * arm-linux-nat.c: Revert.
11285 * arm-fbsd-tdep.c: Revert.
11286 * arm-fbsd-nat.c: Revert.
11287 * arm-bsd-tdep.c: Revert.
11288 * arch-utils.c: Revert.
11289 * arc-tdep.c: Revert.
11290 * arc-newlib-tdep.c: Revert.
11291 * annotate.h: Revert.
11292 * annotate.c: Revert.
11293 * amd64-windows-tdep.c: Revert.
11294 * amd64-windows-nat.c: Revert.
11295 * amd64-tdep.c: Revert.
11296 * amd64-sol2-tdep.c: Revert.
11297 * amd64-obsd-tdep.c: Revert.
11298 * amd64-obsd-nat.c: Revert.
11299 * amd64-nbsd-tdep.c: Revert.
11300 * amd64-nbsd-nat.c: Revert.
11301 * amd64-nat.c: Revert.
11302 * amd64-linux-tdep.c: Revert.
11303 * amd64-linux-nat.c: Revert.
11304 * amd64-fbsd-tdep.c: Revert.
11305 * amd64-fbsd-nat.c: Revert.
11306 * amd64-dicos-tdep.c: Revert.
11307 * amd64-darwin-tdep.c: Revert.
11308 * amd64-bsd-nat.c: Revert.
11309 * alpha-tdep.c: Revert.
11310 * alpha-obsd-tdep.c: Revert.
11311 * alpha-nbsd-tdep.c: Revert.
11312 * alpha-mdebug-tdep.c: Revert.
11313 * alpha-linux-tdep.c: Revert.
11314 * alpha-linux-nat.c: Revert.
11315 * alpha-bsd-tdep.c: Revert.
11316 * alpha-bsd-nat.c: Revert.
11317 * aix-thread.c: Revert.
11318 * agent.c: Revert.
11319 * addrmap.c: Revert.
11320 * ada-varobj.c: Revert.
11321 * ada-valprint.c: Revert.
11322 * ada-typeprint.c: Revert.
11323 * ada-tasks.c: Revert.
11324 * ada-lang.c: Revert.
11325 * aarch64-tdep.c: Revert.
11326 * aarch64-ravenscar-thread.c: Revert.
11327 * aarch64-newlib-tdep.c: Revert.
11328 * aarch64-linux-tdep.c: Revert.
11329 * aarch64-linux-nat.c: Revert.
11330 * aarch64-fbsd-tdep.c: Revert.
11331 * aarch64-fbsd-nat.c: Revert.
11332 * aarch32-linux-nat.c: Revert.
11333
d55e5aa6
TT
113342019-04-05 Tom Tromey <tom@tromey.com>
11335
11336 * ft32-tdep.c: Sort headers.
11337 * frv-tdep.c: Sort headers.
11338 * frv-linux-tdep.c: Sort headers.
11339 * frame.c: Sort headers.
11340 * frame-unwind.c: Sort headers.
11341 * frame-base.c: Sort headers.
11342 * fork-child.c: Sort headers.
11343 * findvar.c: Sort headers.
11344 * findcmd.c: Sort headers.
11345 * filesystem.c: Sort headers.
11346 * filename-seen-cache.h: Sort headers.
11347 * filename-seen-cache.c: Sort headers.
11348 * fbsd-tdep.c: Sort headers.
11349 * fbsd-nat.h: Sort headers.
11350 * fbsd-nat.c: Sort headers.
11351 * f-valprint.c: Sort headers.
11352 * f-typeprint.c: Sort headers.
11353 * f-lang.c: Sort headers.
11354 * extension.h: Sort headers.
11355 * extension.c: Sort headers.
11356 * extension-priv.h: Sort headers.
11357 * expprint.c: Sort headers.
11358 * exec.h: Sort headers.
11359 * exec.c: Sort headers.
11360 * exceptions.c: Sort headers.
11361 * event-top.c: Sort headers.
11362 * event-loop.c: Sort headers.
11363 * eval.c: Sort headers.
11364 * elfread.c: Sort headers.
11365 * dwarf2read.h: Sort headers.
11366 * dwarf2read.c: Sort headers.
11367 * dwarf2loc.c: Sort headers.
11368 * dwarf2expr.h: Sort headers.
11369 * dwarf2expr.c: Sort headers.
11370 * dwarf2-frame.c: Sort headers.
11371 * dwarf2-frame-tailcall.c: Sort headers.
11372 * dwarf-index-write.h: Sort headers.
11373 * dwarf-index-write.c: Sort headers.
11374 * dwarf-index-common.c: Sort headers.
11375 * dwarf-index-cache.h: Sort headers.
11376 * dwarf-index-cache.c: Sort headers.
11377 * dummy-frame.c: Sort headers.
11378 * dtrace-probe.c: Sort headers.
11379 * disasm.h: Sort headers.
11380 * disasm.c: Sort headers.
11381 * disasm-selftests.c: Sort headers.
11382 * dictionary.c: Sort headers.
11383 * dicos-tdep.c: Sort headers.
11384 * demangle.c: Sort headers.
11385 * dcache.h: Sort headers.
11386 * dcache.c: Sort headers.
11387 * darwin-nat.h: Sort headers.
11388 * darwin-nat.c: Sort headers.
11389 * darwin-nat-info.c: Sort headers.
11390 * d-valprint.c: Sort headers.
11391 * d-namespace.c: Sort headers.
11392 * d-lang.c: Sort headers.
11393 * ctf.c: Sort headers.
11394 * csky-tdep.c: Sort headers.
11395 * csky-linux-tdep.c: Sort headers.
11396 * cris-tdep.c: Sort headers.
11397 * cris-linux-tdep.c: Sort headers.
11398 * cp-valprint.c: Sort headers.
11399 * cp-support.c: Sort headers.
11400 * cp-namespace.c: Sort headers.
11401 * cp-abi.c: Sort headers.
11402 * corelow.c: Sort headers.
11403 * corefile.c: Sort headers.
11404 * continuations.c: Sort headers.
11405 * completer.h: Sort headers.
11406 * completer.c: Sort headers.
11407 * complaints.c: Sort headers.
11408 * coffread.c: Sort headers.
11409 * coff-pe-read.c: Sort headers.
11410 * cli-out.h: Sort headers.
11411 * cli-out.c: Sort headers.
11412 * charset.c: Sort headers.
11413 * c-varobj.c: Sort headers.
11414 * c-valprint.c: Sort headers.
11415 * c-typeprint.c: Sort headers.
11416 * c-lang.c: Sort headers.
11417 * buildsym.c: Sort headers.
11418 * buildsym-legacy.c: Sort headers.
11419 * build-id.h: Sort headers.
11420 * build-id.c: Sort headers.
11421 * btrace.c: Sort headers.
11422 * bsd-uthread.c: Sort headers.
11423 * breakpoint.h: Sort headers.
11424 * breakpoint.c: Sort headers.
11425 * break-catch-throw.c: Sort headers.
11426 * break-catch-syscall.c: Sort headers.
11427 * break-catch-sig.c: Sort headers.
11428 * blockframe.c: Sort headers.
11429 * block.c: Sort headers.
11430 * bfin-tdep.c: Sort headers.
11431 * bfin-linux-tdep.c: Sort headers.
11432 * bfd-target.c: Sort headers.
11433 * bcache.c: Sort headers.
11434 * ax-general.c: Sort headers.
11435 * ax-gdb.h: Sort headers.
11436 * ax-gdb.c: Sort headers.
11437 * avr-tdep.c: Sort headers.
11438 * auxv.c: Sort headers.
11439 * auto-load.c: Sort headers.
11440 * arm-wince-tdep.c: Sort headers.
11441 * arm-tdep.c: Sort headers.
11442 * arm-symbian-tdep.c: Sort headers.
11443 * arm-pikeos-tdep.c: Sort headers.
11444 * arm-obsd-tdep.c: Sort headers.
11445 * arm-nbsd-tdep.c: Sort headers.
11446 * arm-nbsd-nat.c: Sort headers.
11447 * arm-linux-tdep.c: Sort headers.
11448 * arm-linux-nat.c: Sort headers.
11449 * arm-fbsd-tdep.c: Sort headers.
11450 * arm-fbsd-nat.c: Sort headers.
11451 * arm-bsd-tdep.c: Sort headers.
11452 * arch-utils.c: Sort headers.
11453 * arc-tdep.c: Sort headers.
11454 * arc-newlib-tdep.c: Sort headers.
11455 * annotate.h: Sort headers.
11456 * annotate.c: Sort headers.
11457 * amd64-windows-tdep.c: Sort headers.
11458 * amd64-windows-nat.c: Sort headers.
11459 * amd64-tdep.c: Sort headers.
11460 * amd64-sol2-tdep.c: Sort headers.
11461 * amd64-obsd-tdep.c: Sort headers.
11462 * amd64-obsd-nat.c: Sort headers.
11463 * amd64-nbsd-tdep.c: Sort headers.
11464 * amd64-nbsd-nat.c: Sort headers.
11465 * amd64-nat.c: Sort headers.
11466 * amd64-linux-tdep.c: Sort headers.
11467 * amd64-linux-nat.c: Sort headers.
11468 * amd64-fbsd-tdep.c: Sort headers.
11469 * amd64-fbsd-nat.c: Sort headers.
11470 * amd64-dicos-tdep.c: Sort headers.
11471 * amd64-darwin-tdep.c: Sort headers.
11472 * amd64-bsd-nat.c: Sort headers.
11473 * alpha-tdep.c: Sort headers.
11474 * alpha-obsd-tdep.c: Sort headers.
11475 * alpha-nbsd-tdep.c: Sort headers.
11476 * alpha-mdebug-tdep.c: Sort headers.
11477 * alpha-linux-tdep.c: Sort headers.
11478 * alpha-linux-nat.c: Sort headers.
11479 * alpha-bsd-tdep.c: Sort headers.
11480 * alpha-bsd-nat.c: Sort headers.
11481 * aix-thread.c: Sort headers.
11482 * agent.c: Sort headers.
11483 * addrmap.c: Sort headers.
11484 * ada-varobj.c: Sort headers.
11485 * ada-valprint.c: Sort headers.
11486 * ada-typeprint.c: Sort headers.
11487 * ada-tasks.c: Sort headers.
11488 * ada-lang.c: Sort headers.
11489 * aarch64-tdep.c: Sort headers.
11490 * aarch64-ravenscar-thread.c: Sort headers.
11491 * aarch64-newlib-tdep.c: Sort headers.
11492 * aarch64-linux-tdep.c: Sort headers.
11493 * aarch64-linux-nat.c: Sort headers.
11494 * aarch64-fbsd-tdep.c: Sort headers.
11495 * aarch64-fbsd-nat.c: Sort headers.
11496 * aarch32-linux-nat.c: Sort headers.
11497
699bd4cf
TT
114982019-04-04 Tom Tromey <tom@tromey.com>
11499
11500 * varobj.c (varobj_create): Update.
11501 * rust-exp.y (struct rust_parser) <update_innermost_block,
11502 lookup_symbol>: New methods.
11503 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11504 Rename.
11505 (rust_parser::rust_lookup_type)
11506 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11507 * printcmd.c (display_command, do_one_display): Update.
11508 * parser-defs.h (struct parser_state) <parser_state>: Add
11509 "tracker" parameter.
11510 (block_tracker): New member.
11511 (class innermost_block_tracker) <innermost_block_tracker>: Add
11512 "types" parameter.
11513 <reset>: Remove method.
11514 (innermost_block): Don't declare.
11515 (null_post_parser): Update.
11516 * parse.c (innermost_block): Remove global.
11517 (write_dollar_variable): Update.
11518 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11519 Remove "tracker_types" parameter.
11520 (parse_expression): Add "tracker" parameter.
11521 (parse_expression_for_completion): Update.
11522 (null_post_parser): Add "tracker" parameter.
11523 * p-exp.y: Update rules.
11524 * m2-exp.y: Update rules.
11525 * language.h (struct language_defn) <la_post_parser>: Add
11526 "tracker" parameter.
11527 * go-exp.y: Update rules.
11528 * f-exp.y: Update rules.
11529 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11530 parameter.
11531 * d-exp.y: Update rules.
11532 * c-exp.y: Update rules.
11533 * breakpoint.c (set_breakpoint_condition): Create an
11534 innermost_block_tracker.
11535 (watch_command_1): Likewise.
11536 * ada-lang.c (resolve): Add "tracker" parameter.
11537 (resolve_subexp): Likewise.
11538 * ada-exp.y (write_var_from_sym): Update.
11539
dac43e32
TT
115402019-04-04 Tom Tromey <tom@tromey.com>
11541
11542 * type-stack.h: New file.
11543 * type-stack.c: New file.
11544 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11545 type-stack.h.
11546 (insert_into_type_stack, insert_type, push_type, push_type_int)
11547 (insert_type_address_space, pop_type, pop_type_int)
11548 (pop_typelist, pop_type_stack, append_type_stack)
11549 (push_type_stack, get_type_stack, push_typelist)
11550 (follow_type_instance_flags, follow_types): Don't declare.
11551 * parse.c (type_stack): Remove global.
11552 (parse_exp_in_context): Update.
11553 (insert_into_type_stack, insert_type, push_type, push_type_int)
11554 (insert_type_address_space, pop_type, pop_type_int)
11555 (pop_typelist, pop_type_stack, append_type_stack)
11556 (push_type_stack, get_type_stack, push_typelist)
11557 (follow_type_instance_flags, follow_types): Remove (moved to
11558 type-stack.c).
11559 * f-exp.y (type_stack): New global.
11560 Update rules.
11561 (push_kind_type, f_parse): Update.
11562 * d-exp.y (type_stack): New global.
11563 Update rules.
11564 (d_parse): Update.
11565 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11566 Update rules.
11567 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11568 (HFILES_NO_SRCDIR): Add type-stack.h.
11569
2a612529
TT
115702019-04-04 Tom Tromey <tom@tromey.com>
11571
11572 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11573 (rust_parser::convert_ast_to_expression, rust_parse)
11574 (rust_lex_test_completion, rust_lex_tests): Update.
11575 * parser-defs.h (struct expr_completion_state): New.
11576 (struct parser_state) <parser_state>: Add completion parameter.
11577 <mark_struct_expression, mark_completion_tag>: New methods.
11578 <parse_completion, m_completion_state>: New members.
11579 (prefixify_expression, null_post_parser): Update.
11580 (mark_struct_expression, mark_completion_tag): Don't declare.
11581 * parse.c (parse_completion, expout_last_struct)
11582 (expout_tag_completion_type, expout_completion_name): Remove
11583 globals.
11584 (parser_state::mark_struct_expression)
11585 (parser_state::mark_completion_tag): Now methods.
11586 (prefixify_expression): Add last_struct parameter.
11587 (prefixify_subexp): Likewise.
11588 (parse_exp_1): Update.
11589 (parse_exp_in_context): Add cstate parameter. Update.
11590 (parse_expression_for_completion): Create an
11591 expr_completion_state.
11592 (null_post_parser): Add "completion" parameter.
11593 * p-exp.y: Update rules.
11594 (yylex): Update.
11595 * language.h (struct language_defn) <la_post_parser>: Add
11596 "completing" parameter.
11597 * go-exp.y: Update rules.
11598 (lex_one_token): Update.
11599 * expression.h (parse_completion): Don't declare.
11600 * d-exp.y: Update rules.
11601 (lex_one_token): Update rules.
11602 * c-exp.y: Update rules.
11603 (lex_one_token): Update.
11604 * ada-lang.c (resolve): Add "parse_completion" parameter.
11605 (resolve_subexp): Likewise.
11606 (ada_resolve_function): Likewise.
11607
43476f0b
TT
116082019-04-04 Tom Tromey <tom@tromey.com>
11609
11610 * parser-defs.h (struct parser_state) <start_arglist,
11611 end_arglist>: New methods.
11612 <arglist_len, m_funcall_chain>: New members.
11613 (arglist_len, start_arglist, end_arglist): Don't declare.
11614 * parse.c (arglist_len, funcall_chain): Remove global.
11615 (start_arglist, end_arglist): Remove functions.
11616 (parse_exp_in_context): Update.
11617 * p-exp.y: Update rules.
11618 * m2-exp.y: Update rules.
11619 * go-exp.y: Update rules.
11620 * f-exp.y: Update rules.
11621 * d-exp.y: Update rules.
11622 * c-exp.y: Update rules.
11623
5776fca3
TT
116242019-04-04 Tom Tromey <tom@tromey.com>
11625
11626 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11627 lex_operator, push_back>: New methods.
11628 Update all rules.
11629 (rust_parser::lex_hex, lex_escape): Rename and update.
11630 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11631 (rust_parser::lex_operator): Rename and update.
11632 (rust_parser::lex_number, rustyylex, rustyyerror)
11633 (rust_lex_test_init, rust_lex_test_sequence)
11634 (rust_lex_test_push_back, rust_lex_tests): Update.
11635 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11636 parameter.
11637 <lexptr, prev_lexptr>: New members.
11638 (lexptr, prev_lexptr): Don't declare.
11639 * parse.c (lexptr, prev_lexptr): Remove globals.
11640 (parse_exp_in_context): Update.
11641 * p-exp.y (yylex, yyerror): Update.
11642 * m2-exp.y (parse_number, yylex, yyerror): Update.
11643 * go-exp.y (lex_one_token, yyerror): Update.
11644 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11645 * d-exp.y (lex_one_token, yyerror): Update.
11646 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11647 (lex_one_token, yyerror): Update.
11648 * ada-lex.l (YY_INPUT): Update.
11649 (rewind_to_char): Update.
11650 * ada-exp.y (yyerror): Update.
11651
8621b685
TT
116522019-04-04 Tom Tromey <tom@tromey.com>
11653
11654 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11655 * parser-defs.h (struct parser_state) <parser_state>: Add new
11656 parameter.
11657 <comma_terminates>: New member.
11658 (comma_terminates): Don't declare global.
11659 * parse.c (comma_terminates): Remove global.
11660 (parse_exp_in_context): Update.
11661 * p-exp.y (yylex): Update.
11662 * m2-exp.y (yylex): Update.
11663 * go-exp.y (lex_one_token): Update.
11664 * f-exp.y (yylex): Update.
11665 * d-exp.y (lex_one_token): Update.
11666 * c-exp.y (lex_one_token): Update.
11667 * ada-lex.l: Update.
11668
28aaf3fd
TT
116692019-04-04 Tom Tromey <tom@tromey.com>
11670
11671 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11672 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11673 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11674 * parser-defs.h (paren_depth): Don't declare.
11675 * parse.c (paren_depth): Remove global.
11676 (parse_exp_in_context): Update.
11677 * p-exp.y (paren_depth): New global.
11678 (pascal_parse): Initialize it.
11679 * m2-exp.y (paren_depth): New global.
11680 (m2_parse): Initialize it.
11681 * go-exp.y (paren_depth): New global.
11682 (go_parse): Initialize it.
11683 * f-exp.y (paren_depth): New global.
11684 (f_parse): Initialize it.
11685 * d-exp.y (paren_depth): New global.
11686 (d_parse): Initialize it.
11687 * c-exp.y (paren_depth): New global.
11688 (c_parse): Initialize it.
11689 * ada-lex.l (paren_depth): New global.
11690 (lexer_init): Initialize it.
11691
1e58a4a4
TT
116922019-04-04 Tom Tromey <tom@tromey.com>
11693
11694 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11695 (rust_parser::convert_ast_to_type)
11696 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11697 * parser-defs.h (struct parser_state) <parser_state>: Add
11698 parameters. Initialize new members.
11699 <expression_context_block, expression_context_pc>: New members.
11700 * parse.c (expression_context_block, expression_context_pc):
11701 Remove globals.
11702 (parse_exp_in_context): Update.
11703 * p-exp.y: Update all rules.
11704 (yylex): Update.
11705 * m2-exp.y: Update all rules.
11706 (yylex): Update.
11707 * go-exp.y (yylex): Update.
11708 * f-exp.y (yylex): Update.
11709 * d-exp.y: Update all rules.
11710 (yylex): Update.
11711 * c-exp.y: Update all rules.
11712 (lex_one_token, classify_name, yylex, c_parse): Update.
11713 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11714
37eedb39
TT
117152019-04-04 Tom Tromey <tom@tromey.com>
11716
11717 * gdbarch.h, gdbarch.c: Rebuild.
11718 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11719 * stap-probe.h:
11720 (struct stap_parse_info): Replace "parser_state" with
11721 "expr_builder".
11722 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11723 (parser_state): New class.
11724 * parse.c (expr_builder): Rename.
11725 (expr_builder::release): Rename.
11726 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11727 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11728 (write_exp_elt_longcst, write_exp_elt_floatcst)
11729 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11730 (write_exp_string_vector, write_exp_bitstring)
11731 (write_exp_msymbol, mark_struct_expression)
11732 (write_dollar_variable)
11733 (insert_type_address_space, increase_expout_size): Replace
11734 "parser_state" with "expr_builder".
11735 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11736 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11737 "parser_state" with "expr_builder".
11738
73923d7e
TT
117392019-04-04 Tom Tromey <tom@tromey.com>
11740
11741 * rust-exp.y: Replace "parse_language" with method call.
11742 * p-exp.y:
11743 (yylex): Replace "parse_language" with method call.
11744 * m2-exp.y:
11745 (yylex): Replace "parse_language" with method call.
11746 * go-exp.y (classify_name): Replace "parse_language" with method
11747 call.
11748 * f-exp.y (yylex): Replace "parse_language" with method call.
11749 * d-exp.y (lex_one_token): Replace "parse_language" with method
11750 call.
11751 * c-exp.y:
11752 (lex_one_token, classify_name, yylex): Replace "parse_language"
11753 with method call.
11754 * ada-exp.y (find_primitive_type, type_char)
11755 (type_system_address): Replace "parse_language" with method call.
11756
fa9f5be6
TT
117572019-04-04 Tom Tromey <tom@tromey.com>
11758
11759 * rust-exp.y: Replace "parse_gdbarch" with method call.
11760 * parse.c (write_dollar_variable, insert_type_address_space):
11761 Replace "parse_gdbarch" with method call.
11762 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11763 call.
11764 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11765 call.
11766 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11767 "parse_gdbarch" with method call.
11768 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11769 with method call.
11770 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11771 "parse_gdbarch" with method call.
11772 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11773 "parse_gdbarch" with method call.
11774 * c-exp.y (parse_type, parse_number, classify_name): Replace
11775 "parse_gdbarch" with method call.
11776 * ada-lex.l: Replace "parse_gdbarch" with method call.
11777 * ada-exp.y (parse_type, find_primitive_type, type_char)
11778 (type_system_address): Replace "parse_gdbarch" with method call.
11779
1201a264
TT
117802019-04-04 Tom Tromey <tom@tromey.com>
11781
11782 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11783 * stap-probe.c (stap_parse_argument): Update.
11784 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11785 initial_size parameter.
11786 * rust-exp.y (rust_lex_tests): Update.
11787 * parse.c (parser_state): Update.
11788 (parse_exp_in_context): Update.
11789 * parser-defs.h (struct parser_state) <parser_state>: Remove
11790 "initial_size" parameter.
11791
e3980ce2
TT
117922019-04-04 Tom Tromey <tom@tromey.com>
11793
11794 * parser-defs.h (increase_expout_size): Don't declare.
11795 * parse.c (increase_expout_size): Now static.
11796
e9f8e3f1
TS
117972019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11798
11799 * gnu-nat.c (gnu_nat_target::wait): Fix
11800 target_waitstatus_to_string call.
11801
d7df6549
AB
118022019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11803
11804 * eval.c (evaluate_subexp_standard): Handle internal functions
11805 during Fortran function call handling.
11806
8bdc1658
AB
118072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11808
11809 * NEWS: Mention new internal functions.
11810 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11811 (read_base_type): Use dwarf2_init_complex_target_type.
11812 * value.c (creal_internal_fn): New function.
11813 (cimag_internal_fn): New function.
11814 (_initialize_values): Register new internal functions.
11815
c29705b7
PW
118162019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11817
11818 * infrun.c (stop_all_threads): If debug_infrun, always
11819 trace the wait status after wait_one, using
11820 target_waitstatus_to_string and target_pid_to_str.
11821 (handle_inferior_event): Replace various trace of
11822 wait status kind by a single trace.
11823 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11824 wait status kind image by target_waitstatus_to_string.
11825 * target/waitstatus.c (target_waitstatus_to_string): Fix
11826 obsolete comment.
11827
05caa1d2
TT
118282019-04-01 Tom Tromey <tromey@adacore.com>
11829
11830 PR symtab/23331:
11831 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11832
9d1447e0
SDJ
118332019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11834 Pedro Alves <palves@redhat.com>
11835
11836 * top.c (quit_force): Call 'finalize_values'.
11837 * value.c (finalize_values): New function.
11838 * value.h (finalize_values): Declare.
11839
7734102d
EZ
118402019-03-30 Eli Zaretskii <eliz@gnu.org>
11841
11842 * NEWS: Announce $_gdb_major and $_gdb_minor.
11843
11844 * top.c (init_gdb_version_vars): New function.
11845 (gdb_init): Call init_gdb_version_vars.
11846
188e1fa9
TT
118472019-03-29 Tom Tromey <tromey@adacore.com>
11848
11849 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11850 help text. Remove dead code.
11851
2880242d
KS
118522019-03-29 Keith Seitz <keiths@redhat.com>
11853
11854 From Siddhesh Poyarekar:
11855 * f-lang.h (f77_get_upperbound): Return LONGEST.
11856 (f77_get_lowerbound): Likewise.
11857 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11858 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11859 print them.
11860 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11861 plongest to format print it.
11862 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11863 (f77_get_upperbound): Likewise.
11864 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11865 LOWER_BOUND to LONGEST.
11866 (f77_create_arrayprint_offset_tbl): Likewise.
11867
cc1defb1
KS
118682019-03-29 Keith Seitz <keiths@redhat.com>
11869
11870 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11871 %s/pulongest for TYPE_LENGTH instead of %d in format
11872 strings.
11873 * ada-typerint.c (ada_print_type): Likewise.
11874 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11875 * compile/compile-c-support.c (generate_register_struct): Likewise.
11876 * gdbtypes.c (recursive_dump_type): Likewise.
11877 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11878 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11879 instead of %d in format strings.
11880 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11881 to std::min to ULONGEST.
11882 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11883 instead of %d in format strings.
11884 * tracepoint.c (info_scope_command): Likewise.
11885 * typeprint.c (print_offset_data::update)
11886 (print_offset_data::finish): Likewise.
11887 * xtensa-tdep.c (xtensa_store_return_value)
11888 (xtensa_push_dummy_call): Likewise.
11889
e432ccf1
JT
118902019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11891
11892 * windows-nat.c (display_selector): Fixed format specifications
11893 for 64-bit Cygwin.
11894
65d2b333
PW
118952019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11896
11897 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11898
f489207e
SL
118992019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11900
11901 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11902 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11903 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11904 (nios2_linux_init_abi): Install it.
11905
bffa1015
AH
119062019-03-28 Alan Hayward <alan.hayward@arm.com>
11907
11908 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11909
fc96163a
AH
119102019-03-28 Alan Hayward <alan.hayward@arm.com>
11911
11912 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11913
20dc7e9b
PW
119142019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11915 Tom Tromey <tromey@adacore.com>
11916
11917 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11918
7f5331a8
JB
119192019-03-26 Joel Brobecker <brobecker@adacore.com>
11920
11921 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11922 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11923 method to compute the bounds of range types. Also print "[evaluated]"
11924 if the bounds' values come from a dynamic evaluation.
11925
18c77628
AB
119262019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11927
11928 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11929 whitespace when pretty printing is on.
11930
53c973f2
AH
119312019-03-26 Alan Hayward <alan.hayward@arm.com>
11932
e79be6e5 11933 * ppc-linux-nat.c: Add include.
53c973f2 11934
d851aa71
AH
119352019-03-26 Alan Hayward <alan.hayward@arm.com>
11936
e79be6e5 11937 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11938
2fe7bab7
AH
119392019-03-26 Alan Hayward <alan.hayward@arm.com>
11940
e79be6e5 11941 * arm-linux-nat.c: Add include.
2fe7bab7 11942
068ef30e
SM
119432019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11944
11945 * source-cache.c (source_cache::get_source_lines): Re-read
11946 fullname after calling open_source_file.
11947
81a24d04
JB
119482019-03-25 John Baldwin <jhb@FreeBSD.org>
11949
11950 * NEWS: Mention TLS support for FreeBSD.
11951
79e7ae11
TT
119522019-03-25 Tom Tromey <tromey@adacore.com>
11953
11954 * minsyms.c (BUNCH_SIZE): Update comment.
11955 (~minimal_symbol_reader): Remove old comment.
11956 (compact_minimal_symbols): Update comment.
11957 (minimal_symbol_reader::install): Remove old comment. Update
11958 other comments.
11959
d45963c2
AH
119602019-03-25 Alan Hayward <alan.hayward@arm.com>
11961
11962 * s390-linux-nat.c: Add include.
11963
0f83012e
AH
119642019-03-25 Alan Hayward <alan.hayward@arm.com>
11965
11966 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11967 Call linux_get_hwcap.
11968 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11969 Likewise.
11970 (aarch64_linux_get_hwcap): Remove function.
11971 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11972 declaration.
11973 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11974 linux_get_hwcap.
11975 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11976 * linux-tdep.c (linux_get_hwcap): Add function.
11977 (linux_get_hwcap2): Likewise.
11978 * linux-tdep.h (linux_get_hwcap): Add declaration.
11979 (linux_get_hwcap2): Likewise.
11980 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11981 (ppc_linux_get_hwcap2): Likewise.
11982 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11983 linux_get_hwcap.
11984 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11985 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11986 (ppc_linux_nat_target::read_description): Likewise.
11987 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11988 * s390-linux-nat.c: Likewise.
11989 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11990
6640a367
TT
119912019-03-24 Tom Tromey <tom@tromey.com>
11992
11993 * ada-lang.c (standard_lookup): Simplify initialization.
11994 (ada_lookup_symbol_nonlocal): Simplify return.
11995 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11996 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11997 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11998 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11999 initialization.
12000 * solib.c (solib_global_lookup): Simplify.
12001 * symtab.c (null_block_symbol): Remove.
12002 (symbol_cache_lookup): Simplify returns.
12003 (lookup_language_this): Simplify returns.
12004 (lookup_symbol_aux): Simplify return.
12005 (lookup_local_symbol): Simplify returns.
12006 (lookup_global_symbol_from_objfile): Simplify return.
12007 (lookup_symbol_in_objfile_symtabs)
12008 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12009 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12010 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12011 * cp-namespace.c (cp_lookup_bare_symbol)
12012 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12013 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12014 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12015 (cp_lookup_symbol_via_imports): Simplify initialization.
12016 (find_symbol_in_baseclass): Likewise.
12017 * symtab.h (null_block_symbol): Remove.
12018 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12019 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12020 (d_lookup_symbol_module): Likewise.
12021 (find_symbol_in_baseclass): Simplify initialization.
12022
a930ebcd
TT
120232019-03-24 Tom Tromey <tom@tromey.com>
12024
12025 * expression.h: Don't include symtab.h.
12026 (struct block): Forward declare.
12027
582942f4
TT
120282019-03-24 Tom Tromey <tom@tromey.com>
12029
12030 * c-exp.y (typebase): Remove casts.
12031 * gdbtypes.c (lookup_unsigned_typename, )
12032 (lookup_signed_typename): Remove cast.
12033 * eval.c (parse_to_comma_and_eval): Remove cast.
12034 * parse.c (write_dollar_variable): Remove cast.
12035 * block.h (struct block) <superblock>: Now const.
12036 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12037 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12038 (map_block): Make "block" const.
12039 * symfile.h (struct quick_symbol_functions)
12040 <map_matching_symbols>: Constify block argument to "callback".
12041 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12042 const.
12043 (find_pc_sect_compunit_symtab): Make "b" const.
12044 (find_symbol_at_address): Likewise.
12045 (search_symbols): Likewise.
12046 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12047 (dw2_debug_names_lookup_symbol): Likewise.
12048 (dw2_map_matching_symbols): Update.
12049 * p-valprint.c (pascal_val_print): Remove "block".
12050 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12051 (aux_add_nonlocal_symbols): Make "block" const.
12052 (resolve_subexp): Remove cast.
12053 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12054 const.
12055 (iterate_over_file_blocks): Likewise.
12056 * f-exp.y (%union) <bval>: Remove.
12057 * coffread.c (patch_opaque_types): Make "b" const.
12058 * spu-tdep.c (spu_catch_start): Make "block" const.
12059 * c-valprint.c (print_unpacked_pointer): Remove "block".
12060 * symmisc.c (dump_symtab_1): Make "b" const.
12061 (block_depth): Make "block" const.
12062 * d-exp.y (%union) <bval>: Remove.
12063 * cp-support.h (cp_lookup_rtti_type): Update.
12064 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12065 * psymtab.c (psym_lookup_symbol): Make "block" const.
12066 (maintenance_check_psymtabs): Make "b" const.
12067 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12068 (enumerate_locals, enumerate_args): Update.
12069 * python/py-symtab.c (stpy_global_block): Make "block" const.
12070 (stpy_static_block): Likewise.
12071 * inline-frame.c (block_starting_point_at): Make "new_block"
12072 const.
12073 * block.c (find_block_in_blockvector): Make return type const.
12074 (blockvector_for_pc_sect): Make "b" const.
12075 (find_block_in_blockvector): Make "b" const.
12076
7ad417dd
TT
120772019-03-23 Tom Tromey <tom@tromey.com>
12078
12079 * varobj.c (varobj_create): Update.
12080 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12081 * printcmd.c (display_command, do_one_display): Don't reset
12082 innermost_block.
12083 * parser-defs.h (enum innermost_block_tracker_type): Move to
12084 expression.h.
12085 (innermost_block): Update comment.
12086 * parse.c (parse_exp_1): Add tracker_types parameter.
12087 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12088 tracker_types parameter. Reset innermost_block.
12089 (parse_exp_in_context): Remove.
12090 (parse_expression_for_completion): Update.
12091 * objfiles.c (~objfile): Don't reset expression_context_block or
12092 innermost_block.
12093 * expression.h (enum innermost_block_tracker_type): Move from
12094 parser-defs.h.
12095 (parse_exp_1): Add tracker_types parameter.
12096 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12097 reset innermost_block.
12098
b366c208
TT
120992019-03-23 Tom Tromey <tom@tromey.com>
12100
12101 * objfiles.h: Include bcache.h.
12102
9bb9b2f9
TT
121032019-03-23 Tom Tromey <tom@tromey.com>
12104
12105 * linespec.c (get_current_search_block): Use
12106 scoped_restore_current_language.
12107 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12108
59c28372
AH
121092019-03-22 Alan Hayward <alan.hayward@arm.com>
12110 Jiong Wang <jiong.wang@arm.com>
12111
12112 * aarch64-linux-tdep.c
12113 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12114 section.
12115 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12116
17e116a7
AH
121172019-03-22 Alan Hayward <alan.hayward@arm.com>
12118 Jiong Wang <jiong.wang@arm.com>
12119
12120 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12121 instructions.
12122 (aarch64_analyze_prologue_test): Add PACIASP test.
12123 (aarch64_prologue_prev_register): Unmask PC value.
12124
11e1b75f
AH
121252019-03-22 Alan Hayward <alan.hayward@arm.com>
12126 Jiong Wang <jiong.wang@arm.com>
12127
12128 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12129 (aarch64_dwarf2_prev_register): Unmask PC value.
12130 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12131 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12132 DW_CFA_AARCH64_negate_ra_state.
12133 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12134
34dcc7cf
AH
121352019-03-22 Alan Hayward <alan.hayward@arm.com>
12136 Jiong Wang <jiong.wang@arm.com>
12137
12138 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12139 registers.
12140 (aarch64_pseudo_register_name): Likewise.
12141 (aarch64_pseudo_register_type): Likewise.
12142 (aarch64_pseudo_register_reggroup_p): Likewise.
12143 (aarch64_gdbarch_init): Add pauth registers.
12144 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12145 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12146 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12147 (struct gdbarch_tdep): Add regnum for ra_state.
12148
1ef53e6b
AH
121492019-03-22 Alan Hayward <alan.hayward@arm.com>
12150 Jiong Wang <jiong.wang@arm.com>
12151
12152 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12153
76bed0fd
AH
121542019-03-22 Alan Hayward <alan.hayward@arm.com>
12155 Jiong Wang <jiong.wang@arm.com>
12156
12157 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12158 function.
12159 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12160 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12161 (aarch64_gdbarch_init): Add puth registers.
12162 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12163 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12164 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12165
ee4fbcfa
AH
121662019-03-22 Alan Hayward <alan.hayward@arm.com>
12167 Jiong Wang <jiong.wang@arm.com>
12168
12169 * aarch64-linux-nat.c
12170 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12171 * aarch64-linux-tdep.c
12172 (aarch64_linux_core_read_description): Likewise.
12173 (aarch64_linux_get_hwcap): New function.
12174 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12175 (aarch64_linux_get_hwcap): New declaration.
12176
6dc0ebde
AH
121772019-03-22 Alan Hayward <alan.hayward@arm.com>
12178 Jiong Wang <jiong.wang@arm.com>
12179
12180 * aarch64-linux-nat.c
12181 (aarch64_linux_nat_target::read_description): Add pauth param.
12182 * aarch64-linux-tdep.c
12183 (aarch64_linux_core_read_description): Likewise.
12184 * aarch64-tdep.c (struct target_desc): Add in pauth.
12185 (aarch64_read_description): Add pauth param.
12186 (aarch64_gdbarch_init): Likewise.
12187 * aarch64-tdep.h (aarch64_read_description): Likewise.
12188 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12189 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12190 * features/Makefile: Add new files.
12191 * features/aarch64-pauth.c: New file.
12192 * features/aarch64-pauth.xml: New file.
12193
595915c1
TT
121942019-03-20 Tom Tromey <tromey@adacore.com>
12195
12196 * infrun.c (handle_inferior_event): Rename from
12197 handle_inferior_event_1. Create a scoped_value_mark.
12198 (handle_inferior_event): Remove.
12199
4c7d57e7
TT
122002019-03-19 Tom Tromey <tromey@adacore.com>
12201
12202 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12203 * infrun.h (print_stop_event): Add "displays" parameter.
12204 * infrun.c (print_stop_event): Add "displays" parameter.
12205
cb246234
PA
122062019-03-19 Pedro Alves <palves@redhat.com>
12207
12208 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12209 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12210 to -1. Fix TABs vs spaces.
12211 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12212 * tui/tui-out.h (tui_ui_out) Add intro comments.
12213 <m_line, m_start_of_line>: In-class initialize, and add describing
12214 comment.
12215
3a0e45b2
AH
122162019-03-18 Alan Hayward <alan.hayward@arm.com>
12217
12218 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12219 variable names.
12220 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12221
5371b850
PA
122222019-03-18 Pedro Alves <palves@redhat.com>
12223 Eli Zaretskii <eliz@gnu.org>
12224
12225 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12226 m_line and m_start_of_line.
12227
b17c4cd0
EZ
122282019-03-18 Eli Zaretskii <eliz@gnu.org>
12229
12230 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12231 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12232 it returns a newline. This fixes a regression in TU mode, whereby
12233 the next line is output on the same screen line as the user input.
12234
4bd56d18
TT
122352019-03-18 Tom Tromey <tromey@adacore.com>
12236
12237 * minsyms.c (minimal_symbol_reader::install): Remove call to
12238 obstack_blank.
12239
55c10aca
PA
122402019-03-18 Pedro Alves <palves@redhat.com>
12241
12242 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12243 New globals.
12244 (apply_style): New, factored out from ...
12245 (apply_ansi_escape): ... this. Handle reverse video mode.
12246 (tui_set_reverse_mode): New function.
12247 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12248 * tui/tui-winsource.c (tui_show_source_line): Use
12249 tui_set_reverse_mode instead of setting A_STANDOUT.
12250 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12251 New setter methods.
12252
647bb750
HD
122532019-03-18 Hannes Domani <ssbssa@yahoo.de>
12254
12255 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12256 Handle tabs.
12257
bff8c71f
TT
122582019-03-18 Tom Tromey <tromey@adacore.com>
12259
12260 * ada-lang.c (empty_array): Add "high" parameter.
12261 (ada_evaluate_subexp): Update.
12262
58785d98
ST
122632019-03-17 Sergei Trofimovich <siarheit@google.com>
12264
12265 * unittests/string_view-selftests.c: Define
12266 _initialize_string_view_selftests unconditionally.
12267
d4cbef22
ВМ
122682019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12269
12270 PR gdb/24350
12271 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12272
fce4c071
ВМ
122732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12274
12275 PR gdb/24351
12276 * windows-nat.c (display_selector): Fix format specifiers.
12277
f7f0a123
EZ
122782019-03-17 Eli Zaretskii <eliz@gnu.org>
12279
12280 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12281 tui_refill_source_window instead of tui_refresh_win, to update the
12282 current execution line. This fixes redisplay of the current line
12283 when stepping through the code with "next" or "step".
12284
ab42892f
EZ
122852019-03-16 Eli Zaretskii <eliz@gnu.org>
12286
12287 * source-cache.c (source_cache::get_source_lines): Call
12288 find_source_lines to initialize s->nlines. This fixes vertical
12289 scrolling of TUI source window when the DOWN arrow is pressed.
12290
8d8c087f
PW
122912019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12292
12293 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12294 linux-thread-db.c (_initialize_thread_db): Likewise.
12295
798e1c30
EZ
122962019-03-16 Eli Zaretskii <eliz@gnu.org>
12297
12298 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12299 wclrtoeol in tui_show_source_line". This reverts changes made in
12300 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12301
eefba3da
TT
123022019-03-15 Tom Tromey <tom@tromey.com>
12303
12304 * symtab.h (struct minimal_symbol): Derive from
12305 general_symbol_info.
12306 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12307 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12308 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12309 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12310 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12311 (MSYMBOL_SEARCH_NAME): Update.
12312 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12313 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12314 * minsyms.c (minimal_symbol_reader::record_full): Update.
12315
0de2420c
TT
123162019-03-15 Tom Tromey <tom@tromey.com>
12317
12318 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12319
042d75e4
TT
123202019-03-15 Tom Tromey <tom@tromey.com>
12321
12322 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12323 unique_xmalloc_ptr.
12324 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12325 Update.
12326 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12327 (build_minimal_symbol_hash_tables)
12328 (minimal_symbol_reader::install): Update.
12329
db92718b
TT
123302019-03-15 Tom Tromey <tom@tromey.com>
12331
12332 * symtab.c (create_demangled_names_hash): Update.
12333 (symbol_set_names): Update.
12334 * objfiles.h (struct objfile_per_bfd_storage)
12335 <demangled_names_hash>: Now an htab_up.
12336 * objfiles.c (objfile_per_bfd_storage): Simplify.
12337
d6797f46
TT
123382019-03-15 Tom Tromey <tom@tromey.com>
12339
12340 * objfiles.h (struct objfile_per_bfd_storage): Declare
12341 destructor.
12342 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12343 New.
12344 (get_objfile_bfd_data): Use new. Don't initialize
12345 language_of_main.
12346 (free_objfile_per_bfd_storage): Remove.
12347 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12348
741d7538
TT
123492019-03-15 Tom Tromey <tom@tromey.com>
12350
12351 * symfile.c (reread_symbols): Update.
12352 * objfiles.c (objfile::objfile): Update.
12353 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12354 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12355 comment.
12356 (minimal_symbol_reader::install): Update.
12357 (terminate_minimal_symbol_table): Remove.
12358 * jit.c (jit_object_close_impl): Update.
12359
788c80d1
TT
123602019-03-15 Tom Tromey <tom@tromey.com>
12361
12362 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12363 initializations.
12364
1b7a07cb
TT
123652019-03-15 Tom Tromey <tom@tromey.com>
12366
12367 * objfiles.h (struct objfile_per_bfd_storage)
12368 <demangled_hash_languages>: Now a bitset.
12369 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12370 (lookup_minimal_symbol): Update.
12371
3db066bc
TT
123722019-03-15 Tom Tromey <tom@tromey.com>
12373
12374 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12375 Don't return the symbol.
12376 * coffread.c (record_minimal_symbol): Use record_full.
12377
3fff2c37
EZ
123782019-03-14 Eli Zaretskii <eliz@gnu.org>
12379
12380 The MS-Windows port of ncurses fails to switch to a color pair if
12381 one or both of the colors are the implicit default colors. This
12382 change records the default colors when TUI is initialized, and
12383 then specifies them explicitly when a color pair uses the default
12384 colors. This allows color styling in TUI mode on MS-Windows.
12385
12386 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12387 ncurses_norm_attr.
12388 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12389 colors in ncurses_norm_attr.
12390 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12391 "none", replace it with the default color recorded in
12392 ncurses_norm_attr.
12393
3b336828
TT
123942019-03-14 Tom Tromey <tromey@adacore.com>
12395
12396 * source-cache.h (class source_cache) <get_source_lines>: Return
12397 std::string.
12398 * source-cache.c (source_cache::extract_lines): Handle case where
12399 first_pos==npos. Return std::string.
12400 (source_cache::get_source_lines): Update.
12401
d085f989
TT
124022019-03-14 Tom Tromey <tromey@adacore.com>
12403
12404 * NEWS: Add item for "style sources" commands.
12405 * source-cache.c (source_cache::get_source_lines): Check
12406 source_styling.
12407 * cli/cli-style.c (source_styling): New global.
12408 (_initialize_cli_style): Add "style sources" commands.
12409 (show_style_sources): New function.
12410 * cli/cli-style.h (source_styling): Declare.
12411
6f11e682
TT
124122019-03-14 Pedro Alves <palves@redhat.com>
12413 Tom Tromey <tromey@adacore.com>
12414
12415 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12416 * tui/tui-winsource.c (tui_refill_source_window): New function,
12417 from...
12418 (tui_horizontal_source_scroll): ... here. Move some logic.
12419 * cli/cli-style.c (set_style_enabled): Notify new observable.
12420 * tui/tui-hooks.c (tui_redisplay_source): New function.
12421 (tui_attach_detach_observers): Attach or detach
12422 tui_redisplay_source.
12423 * observable.h (source_styling_changed): New observable.
12424 * observable.c: Define source_styling_changed observable.
12425
a068643d
TT
124262019-03-13 Tom Tromey <tromey@adacore.com>
12427
12428 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12429 (i386_gnu_nat_target::store_registers): Update.
12430 * target-debug.h (target_debug_print_std_string): New macro.
12431 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12432 * windows-tdep.c (display_one_tib): Update.
12433 * tui/tui-stack.c (tui_make_status_line): Update.
12434 * top.c (print_inferior_quit_action): Update.
12435 * thread.c (thr_try_catch_cmd): Update.
12436 (add_thread_with_info): Update.
12437 (thread_target_id_str): Update.
12438 (thr_try_catch_cmd): Update.
12439 (thread_command): Update.
12440 (thread_find_command): Update.
12441 * record-btrace.c (record_btrace_target::info_record)
12442 (record_btrace_resume_thread, record_btrace_target::resume)
12443 (record_btrace_cancel_resume, record_btrace_step_thread)
12444 (record_btrace_target::wait, record_btrace_target::wait)
12445 (record_btrace_target::wait, record_btrace_target::stop): Update.
12446 * progspace.c (print_program_space): Update.
12447 * process-stratum-target.c
12448 (process_stratum_target::thread_address_space): Update.
12449 * linux-fork.c (linux_fork_mourn_inferior)
12450 (detach_checkpoint_command, info_checkpoints_command)
12451 (linux_fork_context): Update.
12452 (linux_fork_detach): Update.
12453 (class scoped_switch_fork_info): Update.
12454 (delete_checkpoint_command): Update.
12455 * infrun.c (follow_fork_inferior): Update.
12456 (follow_fork_inferior): Update.
12457 (proceed_after_vfork_done): Update.
12458 (handle_vfork_child_exec_or_exit): Update.
12459 (follow_exec): Update.
12460 (displaced_step_prepare_throw): Update.
12461 (displaced_step_restore): Update.
12462 (start_step_over): Update.
12463 (resume_1): Update.
12464 (clear_proceed_status_thread): Update.
12465 (proceed): Update.
12466 (print_target_wait_results): Update.
12467 (do_target_wait): Update.
12468 (context_switch): Update.
12469 (stop_all_threads): Update.
12470 (restart_threads): Update.
12471 (finish_step_over): Update.
12472 (handle_signal_stop): Update.
12473 (switch_back_to_stepped_thread): Update.
12474 (keep_going_pass_signal): Update.
12475 (print_exited_reason): Update.
12476 (normal_stop): Update.
12477 * inferior.c (inferior_pid_to_str): Change return type.
12478 (print_selected_inferior): Update.
12479 (add_inferior): Update.
12480 (detach_inferior): Update.
12481 * dummy-frame.c (fprint_dummy_frames): Update.
12482 * dcache.c (dcache_info_1): Update.
12483 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12484 (btrace_fetch, btrace_clear): Update.
12485 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12486 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12487 type.
12488 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12489 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12490 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12491 * gdbarch.c, gdbarch.h: Rebuild.
12492 * gdbarch.sh (core_pid_to_str): Change return type.
12493 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12494 return type.
12495 (windows_nat_target::pid_to_str): Change return type.
12496 (windows_delete_thread): Update.
12497 (windows_nat_target::attach): Update.
12498 (windows_nat_target::files_info): Update.
12499 * target-delegates.c: Rebuild.
12500 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12501 return type.
12502 (sol_thread_target::pid_to_str): Change return type.
12503 * remote.c (class remote_target) <pid_to_str>: Change return
12504 type.
12505 (remote_target::pid_to_str): Change return type.
12506 (extended_remote_target::attach, remote_target::remote_stop_ns)
12507 (remote_target::remote_notif_remove_queued_reply)
12508 (remote_target::push_stop_reply, remote_target::disable_btrace):
12509 Update.
12510 (extended_remote_target::attach): Update.
12511 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12512 type.
12513 (gdbsim_target::pid_to_str): Change return type.
12514 * ravenscar-thread.c (struct ravenscar_thread_target)
12515 <pid_to_str>: Change return type.
12516 (ravenscar_thread_target::pid_to_str): Change return type.
12517 * procfs.c (class procfs_target) <pid_to_str>: Change return
12518 type.
12519 (procfs_target::pid_to_str): Change return type.
12520 (procfs_target::attach): Update.
12521 (procfs_target::detach): Update.
12522 (procfs_target::fetch_registers): Update.
12523 (procfs_target::store_registers): Update.
12524 (procfs_target::wait): Update.
12525 (procfs_target::files_info): Update.
12526 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12527 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12528 return type.
12529 (nto_procfs_target::pid_to_str): Change return type.
12530 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12531 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12532 return type.
12533 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12534 (exit_lwp): Update.
12535 (attach_proc_task_lwp_callback, get_detach_signal)
12536 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12537 (linux_nat_target::resume, wait_lwp, stop_callback)
12538 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12539 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12540 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12541 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12542 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12543 type.
12544 (inf_ptrace_target::attach): Update.
12545 (inf_ptrace_target::files_info): Update.
12546 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12547 type.
12548 (go32_nat_target::pid_to_str): Change return type.
12549 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12550 (gnu_nat_target::wait): Update.
12551 (gnu_nat_target::wait): Update.
12552 (gnu_nat_target::resume): Update.
12553 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12554 (fbsd_nat_target::wait): Update.
12555 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12556 type.
12557 (darwin_nat_target::attach): Update.
12558 * corelow.c (class core_target) <pid_to_str>: Change return type.
12559 (core_target::pid_to_str): Change return type.
12560 * target.c (normal_pid_to_str): Change return type.
12561 (default_pid_to_str): Likewise.
12562 (target_pid_to_str): Change return type.
12563 (target_translate_tls_address): Update.
12564 (target_announce_detach): Update.
12565 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12566 return type.
12567 (bsd_uthread_target::pid_to_str): Change return type.
12568 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12569 type.
12570 (bsd_kvm_target::pid_to_str): Change return type.
12571 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12572 return type.
12573 (aix_thread_target::pid_to_str): Change return type.
12574 * target.h (struct target_ops) <pid_to_str>: Change return type.
12575 (target_pid_to_str, normal_pid_to_str): Likewise.
12576 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12577 type.
12578 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12579 type.
12580 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12581 return type.
12582 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12583 type.
12584 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12585 type.
12586 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12587 return type.
12588
b4be1b06
SM
125892019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12590
12591 * NEWS: Mention that the new default MI version is 3. Mention
12592 changes to the output of commands and events that deal with
12593 multi-location breakpoints.
12594 * breakpoint.c: Include "mi/mi-out.h".
12595 (print_one_breakpoint): Change output syntax if using MI version
12596 >= 3.
12597 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12598 New.
12599 (mi_multi_location_breakpoint_output_fixed): New.
12600 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12601 (mi_cmd_fix_multi_location_breakpoint_output): New.
12602 (mi_multi_location_breakpoint_output_fixed): New.
12603 * mi/mi-cmds.c (mi_cmds): Register command
12604 -fix-multi-location-breakpoint-output.
12605 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12606 interpreter "mi".
12607
8e5e5494
SM
126082019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12609
12610 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12611 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12612 instantiate mi_ui_out based on interpreter name.
12613 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12614 * mi/mi-main.c (mi_load_progress): Likewise.
12615
197df35e
JB
126162019-03-12 John Baldwin <jhb@FreeBSD.org>
12617
12618 * NEWS: Combine separate "New targets" sections for 8.3.
12619
8399425f
JB
126202019-03-12 John Baldwin <jhb@FreeBSD.org>
12621
12622 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12623 (ppcfbsd_init_abi): Install gdbarch
12624 "fetch_tls_load_module_address" and "get_thread_local_address"
12625 methods.
12626
b0f87ed0
JB
126272019-03-12 John Baldwin <jhb@FreeBSD.org>
12628
12629 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12630 (riscv_fbsd_init_abi): Install gdbarch
12631 "fetch_tls_load_module_address" and "get_thread_local_address"
12632 methods.
12633
ce25aa57
JB
126342019-03-12 John Baldwin <jhb@FreeBSD.org>
12635
12636 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12637 (i386fbsd_init_abi): Install gdbarch
12638 "fetch_tls_load_module_address" and "get_thread_local_address"
12639 methods.
12640
f5424cfa
JB
126412019-03-12 John Baldwin <jhb@FreeBSD.org>
12642
12643 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12644 (amd64fbsd_init_abi): Install gdbarch
12645 "fetch_tls_load_module_address" and "get_thread_local_address"
12646 methods.
12647
945f3901
JB
126482019-03-12 John Baldwin <jhb@FreeBSD.org>
12649
12650 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12651 (struct fbsd_pspace_data): New type.
12652 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12653 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12654 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12655 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12656 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12657
ef0bd204
JB
126582019-03-12 John Baldwin <jhb@FreeBSD.org>
12659
12660 * gdbtypes.c (lookup_struct_elt): New function.
12661 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12662 * gdbtypes.h (struct struct_elt): New type.
12663 (lookup_struct_elt): New prototype.
12664
36c53a02
JB
126652019-03-12 John Baldwin <jhb@FreeBSD.org>
12666
12667 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12668 remove disabled code block.
12669
6e056c81
JB
126702019-03-12 John Baldwin <jhb@FreeBSD.org>
12671
12672 * gdbarch.sh (get_thread_local_address): New method.
12673 * gdbarch.h, gdbarch.c: Regenerate.
12674 * target.c (target_translate_tls_address): Use
12675 gdbarch_get_thread_local_address if present instead of
12676 target::get_thread_local_address.
12677
cd250a18
JB
126782019-03-12 John Baldwin <jhb@FreeBSD.org>
12679
12680 * target.h (target::get_thread_local_address): Update comment.
12681
df22c1e5
JB
126822019-03-12 John Baldwin <jhb@FreeBSD.org>
12683
12684 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12685 objfile->separate_debug_objfile_backlink if not NULL.
12686
dd6876c9
JB
126872019-03-12 John Baldwin <jhb@FreeBSD.org>
12688
12689 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12690 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12691 (amd64bsd_store_inferior_registers): Likewise.
12692 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12693 Enable segment base registers.
12694 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12695 PT_GETFSBASE and PT_GETGSBASE.
12696 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12697 PT_SETGSBASE.
12698 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12699 segment base registers.
12700 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12701
1163a4b7
JB
127022019-03-12 John Baldwin <jhb@FreeBSD.org>
12703
12704 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12705 Update calls to i386_target_description to add 'segments'
12706 parameter.
12707 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12708 add segment base registers.
12709 * arch/i386.c (i386_create_target_description): Add 'segments'
12710 parameter to enable segment base registers.
12711 * arch/i386.h (i386_create_target_description): Likewise.
12712 * features/i386/32bit-segments.xml: New file.
12713 * features/i386/32bit-segments.c: Generate.
12714 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12715 call to i386_target_description to add 'segments' parameter.
12716 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12717 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12718 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12719 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12720 if feature is present.
12721 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12722 Add 'segments' parameter to call to i386_target_description.
12723 (i386_target_description): Add 'segments' parameter to enable
12724 segment base registers.
12725 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12726 to call to i386_target_description.
12727 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12728 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12729 Define I386_NUM_REGS.
12730 (i386_target_description): Add 'segments' parameter to enable
12731 segment base registers.
12732
3a350822
EZ
127332019-03-12 Eli Zaretskii <eliz@gnu.org>
12734
12735 PR/24325
12736 * source-cache.c: #undef open and close, to avoid unresolved
12737 externals during linking.
12738
ffdd69cf
TT
127392019-03-12 Tom Tromey <tromey@adacore.com>
12740
12741 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12742 const. Add initializers.
12743 (_initialize_remote): Don't initialize ptid globals.
12744
ec148c57
PA
127452019-03-12 Pedro Alves <palves@redhat.com>
12746
12747 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12748
32764270
PA
127492019-03-12 Pedro Alves <palves@redhat.com>
12750
12751 * cp-name-parser.y (main): Remove unused 'len' variable.
12752
17547186
TT
127532019-03-12 Tom Tromey <tromey@adacore.com>
12754
12755 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12756 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12757
d3a70e03
TT
127582019-03-12 Tom Tromey <tromey@adacore.com>
12759
12760 * linux-nat.c (iterate_over_lwps): Update.
12761 (stop_callback): Remove parameter.
12762 (stop_wait_callback, detach_callback, resume_set_callback)
12763 (select_singlestep_lwp_callback, set_ignore_sigint)
12764 (status_callback, resumed_callback, resume_clear_callback)
12765 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12766 data parameter.
12767 (linux_nat_target::detach, linux_nat_target::resume)
12768 (linux_stop_and_wait_all_lwps, select_event_lwp)
12769 (linux_nat_filter_event, linux_nat_wait_1)
12770 (linux_nat_target::kill, linux_nat_target::stop)
12771 (linux_nat_target::stop): Update.
12772 (linux_nat_resume_callback): Change type.
12773 (resume_stopped_resumed_lwps, count_events_callback)
12774 (select_event_lwp_callback): Likewise.
12775 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12776 * arm-linux-nat.c (struct update_registers_data): Remove.
12777 (update_registers_callback): Change type.
12778 (arm_linux_insert_hw_breakpoint1): Update.
12779 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12780 parameter.
12781 (x86_linux_dr_set_addr): Update.
12782 (x86_linux_dr_set_control): Update.
12783 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12784 (iterate_over_lwps): Use gdb::function_view.
12785 * nat/aarch64-linux-hw-point.c (struct
12786 aarch64_dr_update_callback_param): Remove.
12787 (debug_reg_change_callback): Change type.
12788 (aarch64_notify_debug_reg_change): Update.
12789 * s390-linux-nat.c (s390_refresh_per_info): Update.
12790
82cb27ff
TT
127912019-03-11 Tom Tromey <tromey@adacore.com>
12792
12793 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12794 redundant assignment to "this_cu".
12795
568c0683
SM
127962019-03-08 Simon Marchi <simon.marchi@efficios.com>
12797
12798 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12799
f09ce22d
SM
128002019-03-08 Simon Marchi <simon.marchi@efficios.com>
12801
12802 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12803 from...
12804 (rank_one_type): ... this.
12805
595f96a9
SM
128062019-03-08 Simon Marchi <simon.marchi@efficios.com>
12807
12808 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12809 from...
12810 (rank_one_type): ... this.
12811
2598a94b
SM
128122019-03-08 Simon Marchi <simon.marchi@efficios.com>
12813
12814 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12815 from...
12816 (rank_one_type): ... this.
12817
7f17b20d
SM
128182019-03-08 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12821 from...
12822 (rank_one_type): ... this.
12823
2c509035
SM
128242019-03-08 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12827 from...
12828 (rank_one_type): ... this.
12829
0dd322dc
SM
128302019-03-08 Simon Marchi <simon.marchi@efficios.com>
12831
12832 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12833 from...
12834 (rank_one_type): ... this.
12835
41ea4728
SM
128362019-03-08 Simon Marchi <simon.marchi@efficios.com>
12837
12838 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12839 from...
12840 (rank_one_type): ... this.
12841
793cd1d2
SM
128422019-03-08 Simon Marchi <simon.marchi@efficios.com>
12843
12844 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12845 from...
12846 (rank_one_type): ... this.
12847
34910087
SM
128482019-03-08 Simon Marchi <simon.marchi@efficios.com>
12849
12850 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12851 from...
12852 (rank_one_type): ... this.
12853
f1f832d6
SM
128542019-03-08 Simon Marchi <simon.marchi@efficios.com>
12855
12856 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12857 from...
12858 (rank_one_type): ... this.
12859
b9f4512f
SM
128602019-03-08 Simon Marchi <simon.marchi@efficios.com>
12861
12862 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12863 from...
12864 (rank_one_type): ... this.
12865
9293fc63
SM
128662019-03-08 Simon Marchi <simon.marchi@efficios.com>
12867
12868 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12869 from...
12870 (rank_one_type): ... this.
12871
e3abbe7e
PW
128722019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12873
12874 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12875 inferior-events' shows the example events.
12876
e4adb939
EZ
128772019-03-08 Eli Zaretskii <eliz@gnu.org>
12878
12879 Support styling on native MS-Windows console
12880
12881 PR/24315
12882 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12883 on MS-Windows if $TERM is not defined.
12884
12885 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12886
12887 * posix-hdep.c (gdb_console_fputs):
12888 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12889 functions.
12890 * ui-file.h (gdb_console_fputs): Add prototype.
12891
12892 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12893 back to fputs only if the former returns zero.
12894
25629dfd
TT
128952019-03-07 Tom Tromey <tom@tromey.com>
12896
12897 * symmisc.c (print_symbol_bcache_statistics): Update.
12898 (print_objfile_statistics): Update.
12899 * symfile.c (allocate_symtab): Update.
12900 * stabsread.c: Don't include bcache.h.
12901 * psymtab.h (struct psymbol_bcache): Don't declare.
12902 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12903 (psymbol_bcache_init, psymbol_bcache_free)
12904 (psymbol_bcache_get_bcache): Don't declare.
12905 * psymtab.c (struct psymbol_bcache): Remove.
12906 (psymtab_storage::psymtab_storage): Update.
12907 (psymtab_storage::~psymtab_storage): Update.
12908 (psymbol_bcache_init, psymbol_bcache_free)
12909 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12910 (add_psymbol_to_bcache): Update.
12911 (allocate_psymtab): Update.
12912 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12913 macro_cache>: No longer pointers.
12914 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12915 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12916 * macrotab.c (macro_bcache): Update.
12917 * macroexp.c: Don't include bcache.h.
12918 * gdbtypes.c (check_types_worklist): Update.
12919 (types_deeply_equal): Remove TRY/CATCH. Update.
12920 * elfread.c (elf_symtab_read): Update.
12921 * dwarf2read.c: Don't include bcache.h.
12922 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12923 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12924 (print_bcache_statistics, bcache_memory_used): Don't declare.
12925 (struct bcache): Move from bcache.c. Add constructor, destructor,
12926 methods. Rename all data members.
12927 * bcache.c (struct bcache): Move to bcache.h.
12928 (bcache::expand_hash_table): Rename from expand_hash_table.
12929 (bcache): Remove.
12930 (bcache::insert): Rename from bcache_full.
12931 (bcache::compare): Rename from bcache_compare.
12932 (bcache_xmalloc): Remove.
12933 (bcache::~bcache): Rename from bcache_xfree.
12934 (bcache::print_statistics): Rename from print_bcache_statistics.
12935 (bcache::memory_used): Rename from bcache_memory_used.
12936
fe726667
PA
129372019-03-07 Pedro Alves <palves@redhat.com>
12938
12939 * infrun.c (normal_stop): Also check for
12940 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12941
7584bb30
AB
129422019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12943
12944 * f-lang.c (value_from_host_double): Moved to...
12945 * value.c (value_from_host_double): ...here.
12946 * value.h (value_from_host_double): Declare.
12947 * guile/scm-math.c (vlscm_convert_typed_number): Use
12948 value_from_host_double.
12949 (vlscm_convert_number): Likewise.
12950 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12951 * python/py-value.c (convert_value_from_python): Likewise.
12952
a7b1986e
TT
129532019-03-06 Tom Tromey <tom@tromey.com>
12954
12955 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12956
0ccf4211
TT
129572019-03-06 Tom Tromey <tom@tromey.com>
12958
12959 * utils.h (free_current_contents): Don't declare.
12960 * utils.c (free_current_contents): Remove.
12961
fe7b42e5
TT
129622019-03-06 Tom Tromey <tom@tromey.com>
12963
12964 * top.c (quit_force): Update.
12965 * main.c (captured_command_loop): Update.
12966 * common/new-op.c (operator new): Update.
12967 * common/common-exceptions.c (struct catcher)
12968 <save_cleanup_chain>: Remove member.
12969 (exceptions_state_mc_init): Update.
12970 (exception_try_scope_entry): Return nullptr.
12971 (exception_try_scope_exit, exception_rethrow)
12972 (throw_exception_sjlj, throw_exception_cxx): Update.
12973 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12974 (all_cleanups, do_cleanups, discard_cleanups)
12975 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12976 (restore_cleanups, restore_final_cleanups): Don't declare.
12977 (do_final_cleanups): Remove parameter.
12978 * common/cleanups.c (cleanup_chain, make_cleanup)
12979 (make_cleanup_dtor, all_cleanups, do_cleanups)
12980 (discard_my_cleanups, discard_cleanups)
12981 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12982 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12983 (null_cleanup): Remove.
12984 (do_final_cleanups): Remove parameter.
12985
c6321f19
TT
129862019-03-06 Tom Tromey <tom@tromey.com>
12987
12988 * remote.c (remote_target::remote_parse_stop_reply): Use
12989 unique_xmalloc_ptr.
12990
61b30099
TT
129912019-03-06 Tom Tromey <tom@tromey.com>
12992
12993 * stabsread.c (struct stabs_field_info): Rename from field_info.
12994 <list, fnlist>: Add initializers.
12995 <obstack>: New member.
12996 (read_member_functions, read_struct_fields, read_baseclasses):
12997 Allocate on obstack. Don't use cleanups.
12998 (read_one_struct_field, read_member_functions, read_struct_fields)
12999 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13000 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13001 (read_struct_type): Update.
13002
6cceac94
TT
130032019-03-06 Tom Tromey <tom@tromey.com>
13004
13005 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13006 * common/filestuff.h (make_cleanup_close): Don't declare.
13007 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13008 Remove.
13009
72412762
TT
130102019-03-06 Tom Tromey <tom@tromey.com>
13011
13012 * solib-aix.c: Use make_scope_exit.
13013
2b6ff1c0
TT
130142019-03-06 Tom Tromey <tom@tromey.com>
13015
13016 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13017 Use make_scope_exit.
13018
d01c5877
TT
130192019-03-06 Tom Tromey <tom@tromey.com>
13020
13021 * solib-svr4.c (disable_probes_interface): Remove parameter.
13022 (svr4_handle_solib_event): Use make_scope_exit.
13023
32603266
TT
130242019-03-06 Tom Tromey <tom@tromey.com>
13025
13026 * remote.c (struct stop_reply_deleter): Remove.
13027 (stop_reply_up): Update.
13028 (struct stop_reply): Derive from notif_event. Don't typedef.
13029 <regcache>: Now a std::vector.
13030 (stop_reply_xfree): Remove.
13031 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13032 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13033 (remote_target::discard_pending_stop_replies): Use delete.
13034 (remote_target::remote_parse_stop_reply): Update.
13035 (remote_target::process_stop_reply): Update.
13036 * remote-notif.h (struct notif_event): Add virtual destructor.
13037 Remove "dtr" member.
13038 (struct notif_client) <alloc_event>: Return a unique_ptr.
13039 (notif_event_xfree): Don't declare.
13040 (notif_event_up): New typedef.
13041 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13042 (notif_event_xfree, do_notif_event_xfree): Remove.
13043 (remote_notif_state_xfree): Update.
13044
9799571e
TT
130452019-03-06 Tom Tromey <tom@tromey.com>
13046
13047 * infrun.c (displaced_step_clear_cleanup): Now a
13048 forward_scope_exit type.
13049 (displaced_step_prepare_throw): Update.
13050 (displaced_step_fixup): Update.
13051
09e3c4ca
TT
130522019-03-06 Tom Tromey <tom@tromey.com>
13053
13054 * inferior.h (class inferior): Update comment.
13055 * gdbthread.h (class thread_info): Update comment.
13056
e2a03548
TT
130572019-03-06 Joel Brobecker <brobecker@adacore.com>
13058 Tom Tromey <tom@tromey.com>
13059
13060 * stabsread.h (struct stab_section_list): Remove.
13061 (coffstab_build_psymtabs): Update.
13062 * dbxread.c (symbuf_sections): Now a std::vector.
13063 (sect_idx): New global.
13064 (fill_symbuf): Update.
13065 (coffstab_build_psymtabs): Change type of stabsects parameter.
13066 Update.
13067 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13068 std::vector.
13069 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13070 (coff_locate_sections): Update.
13071 (coff_symfile_read): Remove cleanups. Update.
13072 (init_stringtab): Add storage parameter.
13073 (free_stringtab, free_stringtab_cleanup): Remove.
13074 (init_lineno): Add storage parameter.
13075 (free_linetab, free_linetab_cleanup): Remove.
13076
b7e60d85
PA
130772019-03-06 Pedro Alves <palves@redhat.com>
13078
13079 * linux-fork.c (fork_info::clobber_regs): Delete.
13080 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13081 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13082 comment. Adjust.
13083 (scoped_switch_fork_info::scoped_switch_fork_info)
13084 (checkpoint_command, linux_fork_context): Adjust
13085 fork_save_infrun_state calls.
13086
e52c971f
PA
130872019-03-06 Pedro Alves <palves@redhat.com>
13088
13089 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13090 (inf_has_multiple_threads): Return 'bool' and rewrite using
13091 inferior_info::threads().
13092
06974e6c
PA
130932019-03-06 Pedro Alves <palves@redhat.com>
13094
13095 * linux-fork.c: Include <list>.
13096 (fork_list): Now a std::list instance.
13097 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13098 (forks_exist_p, find_last_fork): Adjust.
13099 (new_fork): Delete.
13100 (one_fork_p): New.
13101 (add_fork): Adjust.
13102 (free_fork): Delete, folded into fork_info::~fork_info().
13103 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13104 Adjust.
13105 (init_fork_list): Delete.
13106 (linux_fork_killall, linux_fork_mourn_inferior)
13107 (linux_fork_detach, info_checkpoints_command): Adjust.
13108 (_initialize_linux_fork): No longer call init_fork_list.
13109
72f31aea
PA
131102019-03-06 Pedro Alves <palves@redhat.com>
13111
13112 * linux-fork.c (new_fork): New, split out of ...
13113 (add_fork): ... this. Return void. Move "first fork" special
13114 case from here, to ...
13115 (checkpoint_command): ... here.
13116 * linux-linux.h (add_fork): Return void.
13117
efbecbc1
AB
131182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13119
13120 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13121
0841c79a
AB
131222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13123 Chris January <chris.january@arm.com>
13124 David Lecomber <david.lecomber@arm.com>
13125
13126 * f-exp.y: New token, UNOP_INTRINSIC.
13127 (exp): New pattern using UNOP_INTRINSIC token.
13128 (f77_keywords): Add 'abs' keyword.
13129 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13130 (value_from_host_double): New function.
13131 (evaluate_subexp_f): Support UNOP_ABS.
13132
4a270568
AB
131332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13136 types.
13137
067630bd
AB
131382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13141 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13142 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13143
3be47f7a
AB
131442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13145
13146 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13147
4d00f5d8
AB
131482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13149 Chris January <chris.january@arm.com>
13150
13151 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13152 * f-exp.y: Define 'KIND' token.
13153 (exp): New pattern for KIND expressions.
13154 (ptype): Handle types with a kind extension.
13155 (direct_abs_decl): Extend to spot kind extensions.
13156 (f77_keywords): Add 'kind' to the list.
13157 (push_kind_type): New function.
13158 (convert_to_kind_type): New function.
13159 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13160 * parse.c (operator_length_standard): Likewise.
13161 * parser-defs.h (enum type_pieces): Add tp_kind.
13162 * std-operator.def: Add UNOP_KIND.
13163
e454224f
AB
131642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13165
13166 * f-exp.y (f_parse): Set yydebug.
13167
9dad4a58
AB
131682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13169
13170 * f-lang.c (evaluate_subexp_f): New function.
13171 (exp_descriptor_f): New global.
13172 (f_language_defn): Use exp_descriptor_f instead of
13173 exp_descriptor_standard.
13174
c8f91604
AB
131752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13176
13177 * f-exp.y (struct token): Add comments.
13178 (dot_ops): Remove uppercase versions and the end marker.
13179 (f77_keywords): Likewise.
13180 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13181 entries in the dot_ops array are case insensitive, and use
13182 strncasecmp to compare strings. Also some whitespace cleanup in
13183 this area. Similar for the f77_keywords array, except entries in
13184 this list might be case sensitive.
13185
dd9f2c76
AB
131862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13187
13188 * f-exp.y (struct f77_boolean_val): Add comments.
13189 (boolean_values): Remove uppercase versions, and end marker.
13190 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13191 and use strncasecmp to achieve case insensitivity. Additionally,
13192 perform whitespace cleanup around this code.
13193
67a3048c
TT
131942019-03-06 Tom Tromey <tromey@adacore.com>
13195
13196 * remote-sim.c (gdbsim_target_open): Use result of
13197 gdb_argv::release.
13198
aa3cfbda
RB
131992019-03-06 Richard Bunt <richard.bunt@arm.com>
13200 Dirk Schubert <dirk.schubert@arm.com>
13201 Chris January <chris.january@arm.com>
13202
13203 * eval.c (evaluate_subexp_standard): Call Fortran argument
13204 wrapping logic.
13205 * f-lang.c (struct value): A value which can be passed into a
13206 Fortran function call.
13207 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13208 where appropriate.
13209 (struct type): Value ready for a Fortran function call.
13210 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13211 is needed.
13212 * f-lang.h (fortran_argument_convert): Declaration.
13213 (fortran_preserve_arg_pointer): Declaration.
13214 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13215
ea38e5df
TT
132162019-03-05 Tom Tromey <tromey@adacore.com>
13217
13218 * python/py-prettyprint.c (print_string_repr): Remove #if.
13219 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13220
06b5b831
TT
132212019-03-05 Tom Tromey <tromey@adacore.com>
13222
13223 * target.c (the_dummy_target): Move later. Change type to
13224 "dummy_target".
13225 (initialize_targets): Don't initialize the_dummy_target.
13226
edbd9e45
TT
132272019-03-05 Tom Tromey <tromey@adacore.com>
13228
13229 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13230 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13231
c119e040
TT
132322019-03-05 Tom Tromey <tromey@adacore.com>
13233
13234 * windows-nat.c (windows_nat_target::attach)
13235 (windows_nat_target::detach): Don't call gdb_flush.
13236 * valprint.c (generic_val_print, val_print, val_print_string):
13237 Don't call gdb_flush.
13238 * utils.c (defaulted_query): Don't call gdb_flush.
13239 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13240 * target.c (target_announce_detach): Don't call gdb_flush.
13241 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13242 * remote.c (extended_remote_target::attach): Don't call
13243 gdb_flush.
13244 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13245 * printcmd.c (do_examine): Don't call gdb_flush.
13246 (info_display_command): Don't call gdb_flush.
13247 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13248 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13249 * memattr.c (info_mem_command): Don't call gdb_flush.
13250 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13251 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13252 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13253 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13254 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13255 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13256 (gnu_nat_target::detach): Don't call gdb_flush.
13257 * f-valprint.c (f_val_print): Don't call gdb_flush.
13258 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13259 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13260 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13261 gdb_flush.
13262 * c-valprint.c (c_val_print): Don't call gdb_flush.
13263 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13264
895dafa6
TT
132652019-03-05 Tom Tromey <tromey@adacore.com>
13266
13267 * varobj.c (update_dynamic_varobj_children): Update.
13268 (install_default_visualizer): Use reset, not release.
13269 * value.c (set_internalvar): Update.
13270 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13271 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13272 ATTRIBUTE_UNUSED_RESULT.
13273
88a774b9
TT
132742019-03-05 Tom Tromey <tromey@adacore.com>
13275
13276 * remote.c (class scoped_remote_fd) <release>: Add
13277 ATTRIBUTE_UNUSED_RESULT.
13278
4e4a8b93
TT
132792019-03-05 Tom Tromey <tromey@adacore.com>
13280
13281 * macroexp.c (struct macro_buffer) <release>: Add
13282 ATTRIBUTE_UNUSED_RESULT.
13283
083eef1f
TT
132842019-03-05 Tom Tromey <tromey@adacore.com>
13285
13286 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13287 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13288 ATTRIBUTE_UNUSED_RESULT.
13289
3cabd438
TT
132902019-03-05 Tom Tromey <tromey@adacore.com>
13291
13292 * common/scoped_fd.h (class scoped_fd) <release>: Add
13293 ATTRIBUTE_UNUSED_RESULT.
13294
41e3300a
TT
132952019-03-05 Tom Tromey <tromey@adacore.com>
13296
13297 * parser-defs.h (struct parser_state) <release>: Add
13298 ATTRIBUTE_UNUSED_RESULT.
13299
18cb7c9f
TT
133002019-03-05 Tom Tromey <tromey@adacore.com>
13301
13302 * utils.h (class gdb_argv) <release>: Add
13303 ATTRIBUTE_UNUSED_RESULT.
13304 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13305
41fa577f
EZ
133062019-03-02 Eli Zaretskii <eliz@gnu.org>
13307
a6a4b2c6
EZ
13308 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13309 for-loop range, to avoid compiler warnings.
13310
13311 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13312 avoid compiler warnings about unused variables.
13313
742a7df5
EZ
13314 * NEWS: Mention end of support for native debugging on MS-Windows
13315 before XP.
13316
41fa577f
EZ
13317 PR gdb/24292
13318 * common/netstuff.c:
13319 * gdbserver/gdbreplay.c
13320 * gdbserver/remote-utils.c:
13321 * ser-tcp.c:
13322 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13323 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13324 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13325 'getaddrinfo' and 'freeaddrinfo' were not available before
13326 Windows XP, and mingw.org's MinGW headers by default define
13327 _WIN32_WINNT to 0x500.
13328
827f438f
GB
133292019-03-01 Gary Benson <gbenson@redhat.com>
13330
13331 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13332
92137da0
RO
133332019-02-28 Brian Vandenberg <phantall@gmail.com>
13334 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13335
13336 PR gdb/8527
13337 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13338 set_sigint_trap, clear_sigint_trap.
13339
799efbe8
PW
133402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13341
13342 * target.c (target_detach): Clear the regcache and the
13343 frame cache.
13344
8ed25214
PA
133452019-02-27 Pedro Alves <palves@redhat.com>
13346
13347 * utils.c (set_screen_size): When we cap the height/width sizes,
13348 tweak the corresponding command variable to show "unlimited":
13349
23031e31
SJ
133502019-02-27 Saagar Jha <saagar@saagarjha.com>
13351 Pedro Alves <palves@redhat.com>
13352
13353 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13354 before calling rl_set_screen_size.
13355
6c28e44a
TT
133562019-02-27 Tom Tromey <tromey@adacore.com>
13357
13358 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13359 define.
13360 * python/py-value.c: Remove Python 2.4 workaround.
13361 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13362 workaround.
13363 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13364 Python 2.4 workaround.
13365 * python/python-internal.h: Remove Python 2.4 comment.
13366 (Py_ssize_t): Don't define.
13367 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13368 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13369 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13370 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13371 * python/python.c (do_start_initialization): Remove Python 2.4
13372 workaround.
13373 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13374 (print_children): Remove Python 2.4 workaround.
13375 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13376 workaround.
13377 (CHARBUFFERPROC_NAME): Remove.
13378 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13379 Python 2.4 workaround.
13380
2c3fc25d 133812019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13382
2c3fc25d
KB
13383 * NEWS: Note minimum Python version.
13384
6ca62222
KB
133852019-02-27 Kevin Buettner <kevinb@redhat.com>
13386
13387 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13388 code from these functions. Remove corresponding ifdefs. Use
13389 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13390 Remove gotos and target of gotos.
13391 (infpy_search_memory): Likewise.
13392
f4bc7d2c
AB
133932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13394
13395 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13396 (hppa_gdbarch_init): Don't register deleted functions with
13397 gdbarch.
13398
9734a586
AB
133992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13400
13401 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13402 (h8300_unwind_sp): Delete.
13403 (h8300_dummy_id): Delete.
13404 (h8300_gdbarch_init): Don't register deleted functions with
13405 gdbarch.
13406
68b867f3
AB
134072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13408
13409 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13410 (ft32_unwind_pc): Delete.
13411 (ft32_unwind_sp): Delete.
13412 (ft32_gdbarch_init): Don't register deleted functions with
13413 gdbarch.
13414
2fbe7ad0
AB
134152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13416
13417 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13418 (frv_unwind_pc): Delete.
13419 (frv_unwind_sp): Delete.
13420 (frv_gdbarch_init): Don't register deleted functions with
13421 gdbarch.
13422
76055cbe
AB
134232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13424
13425 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13426 (riscv_unwind_pc): Delete.
13427 (riscv_unwind_sp): Delete.
13428 (riscv_gdbarch_init): Don't register deleted functions with
13429 gdbarch.
13430
4133e5a1
AB
134312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13432
13433 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13434 (csky_unwind_pc): Delete.
13435 (csky_unwind_sp): Delete.
13436 (csky_gdbarch_init): Don't register deleted functions with
13437 gdbarch.
13438
8010f576
AB
134392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13440
13441 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13442 (cris_unwind_pc): Delete.
13443 (cris_unwind_sp): Delete.
13444 (cris_gdbarch_init): Don't register deleted functions with
13445 gdbarch.
13446
b56bf084
AB
134472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13450 (bfin_unwind_pc): Delete.
13451 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13452
a19a650f
AB
134532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13454
13455 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13456 (arm_unwind_pc): Delete.
13457 (arm_unwind_sp): Delete.
13458 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13459
f8278c3c
AB
134602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13461
13462 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13463 (arc_unwind_pc): Delete.
13464 (arc_unwind_sp): Delete.
13465 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13466
480e46cf
AB
134672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13468
13469 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13470 (alpha_unwind_pc): Delete.
13471 (alpha_gdbarch_init): Don't register deleted functions with
13472 gdbarch.
13473
7a995095
AB
134742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13475
13476 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13477 (aarch64_unwind_pc): Delete.
13478 (aarch64_unwind_sp): Delete.
13479 (aarch64_gdbarch_init): Don't register deleted functions with
13480 gdbarch.
13481
bf9a735e
AB
134822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13483
13484 * gdbtypes.c (type_align): Don't consider static members when
13485 computing structure alignment.
13486
5561fc30
AB
134872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13490 return 0 for other types.
13491 * arch-utils.c (default_type_align): Always return 0.
13492 * gdbarch.h: Regenerate.
13493 * gdbarch.sh (type_align): Extend comment.
13494 * gdbtypes.c (type_align): Add additional comments, always call
13495 gdbarch_type_align before applying the default rules.
13496 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13497 generic code will then apply a suitable default.
13498 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13499 types, return 0 for other types.
13500
9335e75a
JB
135012019-02-27 Joel Brobecker <brobecker@adacore.com>
13502
13503 * NEWS: Create a new section for the next release branch.
13504 Rename the section of the current branch, now that it has
13505 been cut.
13506
3d34d8de
JB
135072019-02-27 Joel Brobecker <brobecker@adacore.com>
13508
13509 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13510 * version.in: Bump version to 8.3.50.DATE-git.
13511
143420fb
SM
135122019-02-26 Simon Marchi <simon.marchi@efficios.com>
13513
13514 * aix-thread.c (ptid_cmp): Remove unused variable.
13515 (get_signaled_thread): Likewise.
13516 (store_regs_user_thread): Likewise.
13517 (store_regs_kernel_thread): Likewise.
13518 (fetch_regs_kernel_thread): Remove shadowed variable.
13519
172fb711
AB
135202019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13521
13522 * features/riscv/32bit-cpu.xml: Add register numbers.
13523 * features/riscv/32bit-fpu.c: Regenerate.
13524 * features/riscv/32bit-fpu.xml: Add register numbers.
13525 * features/riscv/64bit-cpu.xml: Add register numbers.
13526 * features/riscv/64bit-fpu.c: Regenerate.
13527 * features/riscv/64bit-fpu.xml: Add register numbers.
13528
26c89782
KB
135292019-02-26 Kevin Buettner <kevinb@redhat.com>
13530
af54ade9 13531 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13532 * python/py-value.c (convert_buffer_and_type_to_value): New
13533 function.
13534 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13535 Add support for handling an optional second argument. Call
13536 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13537 * python/python-internal.h (Py_buffer_deleter): New struct.
13538 (Py_buffer_up): New typedef.
13539
0f58c9e8
JB
135402019-02-25 John Baldwin <jhb@FreeBSD.org>
13541
13542 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13543 instead of releasing ownership.
13544
0a0f4c01
JR
135452019-02-25 Jordan Rupprecht <rupprecht@google.com>
13546
13547 * dwarf2read.c (open_and_init_dwp_file): Call
13548 elf_numsections instead of bfd_count_sections to initialize
13549 dwp_file->num_sections.
13550
cd5a152c
TT
135512019-02-25 Tom Tromey <tromey@adacore.com>
13552
13553 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13554
8a6a8513
SDJ
135552019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13556
13557 * gcore.in: Add '--readnever' option when invoking GDB.
13558
04dcda9c
SM
135592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13560
13561 * MAINTAINERS: Update my email address.
13562
07bc701d
SM
135632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13564
13565 * build-id.c (build_id_to_debug_bfd_1): New function.
13566 (build_id_to_debug_bfd): Look for separate debug file in
13567 sysroot.
13568
c6f4a5d0
AB
135692019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13570
13571 * gdbarch.sh: Update the copyright year range that is placed into
13572 generated files.
13573
9600246d
KS
135742019-02-22 Keith Seitz <keiths@redhat.com>
13575
13576 PR symtab/23853
13577 * linespec.c (create_sals_line_offset): Search for the default
13578 symtab's filename instead of its fullname.
13579
7557a514
AH
135802019-02-21 Alan Hayward <alan.hayward@arm.com>
13581
13582 * NEWS: Update style defaults.
13583
ee2bcb0c
AH
135842019-02-21 Alan Hayward <alan.hayward@arm.com>
13585
13586 * main.c (captured_main_1): Disable styling in batch mode.
13587
0c95f9ed
TT
135882019-02-20 Tom Tromey <tom@tromey.com>
13589
13590 * symtab.c (symtab_symbol_info): Fix typos.
13591
c763b894
TT
135922019-02-20 Tom Tromey <tromey@adacore.com>
13593
13594 * findcmd.c (_initialize_mem_search): Use upper case for
13595 metasyntactic variables.
13596
0ef8a082
AH
135972019-02-20 Alan Hayward <alan.hayward@arm.com>
13598
13599 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13600 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13601
6caa91b6
SM
136022019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13603
13604 * top.h (source_file_name): Change to std::string.
13605 * top.c (source_file_name): Likewise.
13606 (command_line_input): Adjust.
13607 * cli/cli-script.c (script_from_file): Adjust.
13608
98814c6c
TT
136092019-02-19 Tom Tromey <tromey@adacore.com>
13610
13611 * ravenscar-thread.c
13612 (ravenscar_thread_target::update_thread_list): Don't call
13613 ada_build_task_list.
13614 * ada-lang.h (ada_build_task_list): Don't declare.
13615 * ada-tasks.c (struct ada_tasks_inferior_data)
13616 <task_list_valid_p>: Now bool.
13617 (read_known_tasks, ada_task_list_changed)
13618 (ada_tasks_invalidate_inferior_data): Update.
13619 (read_known_tasks_array): Return bool.
13620 (read_known_tasks_list): Likewise.
13621 (read_known_tasks): Return void.
13622 (ada_build_task_list): Now static.
13623
70cd633e
AB
136242019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13625
13626 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13627 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13628
040b3e95
PW
136292019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13630
13631 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13632 variant for ada_tasks_pspace_data_handle and
13633 ada_tasks_inferior_data_handle.
13634 (ada_tasks_pspace_data_cleanup): New function.
13635 (ada_tasks_inferior_data_cleanup): New function.
13636
9409233b
TT
136372019-02-17 Tom Tromey <tom@tromey.com>
13638
13639 * macrotab.h (macro_source_fullname): Return a std::string.
13640 * macrotab.c (macro_include, check_for_redefinition)
13641 (macro_undef, macro_lookup_definition, foreach_macro)
13642 (foreach_macro_in_scope): Update.
13643 (macro_source_fullname): Return a std::string.
13644 * macrocmd.c (show_pp_source_pos): Update.
13645
6506371f
TT
136462019-02-17 Tom Tromey <tom@tromey.com>
13647
13648 * macrocmd.c (show_pp_source_pos): Style the file names.
13649
0c820d67
TT
136502019-02-17 Tom Tromey <tom@tromey.com>
13651
13652 PR tui/24197:
13653 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13654
a0087920
TT
136552019-02-17 Tom Tromey <tom@tromey.com>
13656
13657 * ada-lang.c (user_select_syms): Use filtered printing.
13658 * utils.c (wrap_style): New global.
13659 (desired_style): Remove.
13660 (emit_style_escape): Add stream parameter.
13661 (set_output_style, reset_terminal_style, prompt_for_continue):
13662 Update.
13663 (flush_wrap_buffer): Only flush gdb_stdout.
13664 (wrap_here): Set wrap_style.
13665 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13666 treat escape sequences as a character. Change when wrap buffer is
13667 flushed.
13668 (fputs_styled): Do not set the output style when the default is
13669 requested.
13670 * ui-style.h (struct ui_file_style) <is_default>: New method.
13671 * source.c (print_source_lines_base): Emit escape sequences in one
13672 piece.
13673
75ba10dc
JB
136742019-02-17 Joel Brobecker <brobecker@adacore.com>
13675
13676 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13677 integers and enumeration types.
13678
a2cd4f14
JB
136792019-02-17 Joel Brobecker <brobecker@adacore.com>
13680
13681 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13682 instead of lookup_symbol_in_language
13683 (do_exact_match): New function.
13684 (ada_get_symbol_name_matcher): Return do_exact_match when
13685 doing a verbatim match.
13686
485b851b
TT
136872019-02-15 Tom Tromey <tromey@adacore.com>
13688
13689 * ravenscar-thread.c (ravenscar_thread_target::resume)
13690 (ravenscar_thread_target::wait): Special case wildcard requests.
13691
0b790b1e
TT
136922019-02-15 Tom Tromey <tromey@adacore.com>
13693
13694 * ravenscar-thread.c (base_ptid): Remove.
13695 (struct ravenscar_thread_target) <close>: New method.
13696 <m_base_ptid>: New member.
13697 <update_inferior_ptid, active_task, task_is_currently_active,
13698 runtime_initialized>: Declare methods.
13699 <ravenscar_thread_target>: Add constructor.
13700 (ravenscar_thread_target::task_is_currently_active)
13701 (ravenscar_thread_target::update_inferior_ptid)
13702 (ravenscar_runtime_initialized): Rename. Now methods.
13703 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13704 (ravenscar_thread_target::update_thread_list): Update.
13705 (ravenscar_thread_target::active_task): Now method.
13706 (ravenscar_thread_target::store_registers)
13707 (ravenscar_thread_target::prepare_to_store)
13708 (ravenscar_thread_target::prepare_to_store)
13709 (ravenscar_thread_target::mourn_inferior): Update.
13710 (ravenscar_inferior_created): Use "new" to create target.
13711 (ravenscar_thread_target::get_ada_task_ptid): Update.
13712 (_initialize_ravenscar): Don't initialize base_ptid.
13713 (ravenscar_ops): Remove global.
13714
dea57a62
TT
137152019-02-15 Tom Tromey <tromey@adacore.com>
13716
13717 * target.h (push_target): Declare new overload.
13718 * target.c (push_target): New overload, taking an rvalue reference.
13719 * remote.c (remote_target::open_1): Use push_target overload.
13720 * corelow.c (core_target_open): Use push_target overload.
13721
989f3c58
TT
137222019-02-15 Tom Tromey <tromey@adacore.com>
13723
13724 * ravenscar-thread.c (is_ravenscar_task)
13725 (ravenscar_task_is_currently_active): Return bool.
13726 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13727 (_initialize_ravenscar): Remove "(void)".
13728 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13729 Return bool.
13730
6cbcc006
TT
137312019-02-15 Tom Tromey <tromey@adacore.com>
13732
13733 * ravenscar-thread.c (ravenscar_runtime_initializer)
13734 (has_ravenscar_runtime, get_running_thread_id)
13735 (ravenscar_thread_target::resume): Fix indentation.
13736
7657f14d
TT
137372019-02-15 Tom Tromey <tromey@adacore.com>
13738
13739 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13740 from ravenscar_arch_ops.
13741 (sparc_ravenscar_ops::fetch_registers)
13742 (sparc_ravenscar_ops::store_registers): Now methods.
13743 (sparc_ravenscar_prepare_to_store): Remove.
13744 (sparc_ravenscar_ops): Redefine.
13745 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13746 methods and destructor. Remove members.
13747 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13748 (ravenscar_thread_target::store_registers)
13749 (ravenscar_thread_target::prepare_to_store): Update.
13750 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13751 Remove.
13752 (struct ppc_ravenscar_powerpc_ops): Derive from
13753 ravenscar_arch_ops.
13754 (ppc_ravenscar_powerpc_ops::fetch_registers)
13755 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13756 (ppc_ravenscar_powerpc_ops): Redefine.
13757 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13758 (ppc_ravenscar_e500_ops::fetch_registers)
13759 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13760 (ppc_ravenscar_e500_ops): Redefine.
13761 * aarch64-ravenscar-thread.c
13762 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13763 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13764 (aarch64_ravenscar_fetch_registers)
13765 (aarch64_ravenscar_store_registers): Now methods.
13766 (aarch64_ravenscar_ops): Redefine.
13767
5b6ea500
TT
137682019-02-15 Tom Tromey <tromey@adacore.com>
13769
13770 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13771 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13772 (ravenscar_thread_target::stopped_by_watchpoint)
13773 (ravenscar_thread_target::stopped_data_address)
13774 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13775
e397fd39
TT
137762019-02-15 Tom Tromey <tromey@adacore.com>
13777
13778 * ravenscar-thread.c: Fix some typos.
13779
cc12f4a8
TT
137802019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13781 Tom Tromey <tromey@adacore.com>
13782
13783 * ada-lang.c (ada_exception_sal): Change addr_string to a
13784 std::string.
13785 (create_ada_exception_catchpoint): Update.
13786
5f486660
TT
137872019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13788 Tom Tromey <tromey@adacore.com>
13789
13790 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13791 (bp_location_ops): Remove.
13792 (base_breakpoint_allocate_location): Update.
13793 (free_bp_location): Update.
13794 * ada-lang.c (class ada_catchpoint_location)
13795 <ada_catchpoint_location>: Remove ops parameter.
13796 (ada_catchpoint_location_dtor): Remove.
13797 (ada_catchpoint_location_ops): Remove.
13798 (allocate_location_exception): Update.
13799 * breakpoint.h (struct bp_location_ops): Remove.
13800 (class bp_location) <bp_location>: Remove bp_location_ops
13801 parameter.
13802 <~bp_location>: Add destructor.
13803 <ops>: Remove.
13804
b671c7fb
TS
138052019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13806 Pedro Alves <palves@redhat.com>
13807
13808 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13809 'PATH_MAX'.
13810
8071c5ce
DM
138112019-02-14 David Michael <fedora.dm0@gmail.com>
13812 Samuel Thibault <samuel.thibault@gnu.org>
13813 Thomas Schwinge <thomas@codesourcery.com>
13814
13815 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13816 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13817
b1041ae0
TS
138182019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13819
924514e1
TS
13820 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13821 (check_empty): Use "const char *".
13822
c29ee8d4
TS
13823 * gnu-nat.c (gnu_nat_target::detach): Instead of
13824 'detach_inferior (pid)' call
13825 'detach_inferior (find_inferior_pid (pid))'.
13826
6c6ef69f
TS
13827 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13828 'nat/fork-inferior.o'.
13829 * gnu-nat.c: #include "nat/fork-inferior.h".
13830
2d0a338c
TS
13831 * gnu-nat.c (gnu_nat_target::detach): Instead of
13832 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13833 * gnu-nat.h: #include "inf-child.h".
13834 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13835 'i386_gnu_nat_target::fetch_registers'.
13836 (gnu_store_registers): Rename/move to
13837 'i386_gnu_nat_target::store_registers'.
13838
cabb5f06
TS
13839 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13840 * gnu-nat.h (mach_thread_info): New function.
13841 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13842
b1041ae0
TS
13843 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13844
2988d01e
KF
138452019-02-14 Frederic Konrad <konrad@adacore.com>
13846
13847 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13848
c559d709
JB
138492019-02-14 Joel Brobecker <brobecker@adacore.com>
13850
13851 * windows-nat.c (windows_add_thread): Add new parameter
13852 "main_thread_p" with default value set to false. Update
13853 function documentation as well as all callers.
13854 (windows_delete_thread): Likewise.
13855 (fake_create_process): Update call to windows_add_thread.
13856 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13857 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13858 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13859 call to windows_delete_thread.
13860
007024cc
SM
138612019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13862
13863 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13864
f62318e9
JB
138652019-02-12 John Baldwin <jhb@FreeBSD.org>
13866
13867 * symfile.c (find_separate_debug_file): Use canonical path of
13868 sysroot with child_path instead of gdb_sysroot if it is valid.
13869
cd4b7848
JB
138702019-02-12 John Baldwin <jhb@FreeBSD.org>
13871
13872 * symfile.c (find_separate_debug_file): Use child_path to
13873 determine if an object file is under a sysroot.
13874
efac4bfe
JB
138752019-02-12 John Baldwin <jhb@FreeBSD.org>
13876
13877 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13878 unittests/child-path-selftests.c.
13879 * common/pathstuff.c (child_path): New function.
13880 * common/pathstuff.h (child_path): New prototype.
13881 * unittests/child-path-selftests.c: New file.
13882
402d2bfe
JB
138832019-02-12 John Baldwin <jhb@FreeBSD.org>
13884
13885 * symfile.c (find_separate_debug_file): Look for separate debug
13886 files in debug directories under the sysroot.
13887
1ed9f74e
PW
138882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13889
13890 * symtab.h (struct minimal_symbol data_p): New const method.
13891 (struct minimal_symbol text_p): Likewise.
13892 * symtab.c (output_source_filename): Use file name style
13893 to print file name.
13894 (print_symbol_info): Likewise.
13895 (print_msymbol_info): Use address style to print addresses.
13896 Use function name style to print executable text symbols.
13897 (expand_symtab_containing_pc): Use data_p.
13898 (find_pc_sect_compunit_symtab): Likewise.
13899
2636d81d
PW
139002019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13901
13902 * breakpoint.c (describe_other_breakpoints): Use address style
13903 to print addresses.
13904 (say_where): Likewise.
13905
ac8c53cc
PW
139062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13907
13908 * ada-typeprint.c (print_func_type): Print function name
13909 style to print function name.
13910 * c-typeprint.c (c_print_type_1): Likewise.
13911
ea638c43
AH
139122019-02-11 Alan Hayward <alan.hayward@arm.com>
13913
13914 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13915 for execve.
13916
ab759ca8
PW
139172019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13918
13919 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13920 type_stack.
13921
aff29d1c
JB
139222019-02-10 Joel Brobecker <brobecker@adacore.com>
13923
13924 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13925 TYPE_CODE_REF types.
13926
617126bc
JW
139272019-02-08 Jim Wilson <jimw@sifive.com>
13928
13929 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13930 (riscv_linux_fregset): New.
13931 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13932
46e3ed7f
TT
139332019-02-07 Tom Tromey <tom@tromey.com>
13934
13935 * thread.c (thread_cancel_execution_command): Update.
13936 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13937 methods.
13938 (struct thread_fsm_ops): Remove.
13939 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13940 (thread_fsm_should_stop, thread_fsm_return_value)
13941 (thread_fsm_set_finished, thread_fsm_finished_p)
13942 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13943 Don't declare.
13944 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13945 * infrun.c (clear_proceed_status_thread)
13946 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13947 (print_stop_event): Update.
13948 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13949 Add constructor.
13950 (step_command_fsm_ops): Remove.
13951 (new_step_command_fsm): Remove.
13952 (step_1): Update.
13953 (step_command_fsm::should_stop): Rename from
13954 step_command_fsm_should_stop.
13955 (step_command_fsm::clean_up): Rename from
13956 step_command_fsm_clean_up.
13957 (step_command_fsm::do_async_reply_reason): Rename from
13958 step_command_fsm_async_reply_reason.
13959 (struct until_next_fsm): Inherit from thread_fsm. Add
13960 constructor.
13961 (until_next_fsm_ops): Remove.
13962 (new_until_next_fsm): Remove.
13963 (until_next_fsm::should_stop): Rename from
13964 until_next_fsm_should_stop.
13965 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13966 (until_next_fsm::do_async_reply_reason): Rename from
13967 until_next_fsm_async_reply_reason.
13968 (struct finish_command_fsm): Inherit from thread_fsm. Add
13969 constructor. Change type of breakpoint.
13970 (finish_command_fsm_ops): Remove.
13971 (new_finish_command_fsm): Remove.
13972 (finish_command_fsm::should_stop): Rename from
13973 finish_command_fsm_should_stop.
13974 (finish_command_fsm::clean_up): Rename from
13975 finish_command_fsm_clean_up.
13976 (finish_command_fsm::return_value): Rename from
13977 finish_command_fsm_return_value.
13978 (finish_command_fsm::do_async_reply_reason): Rename from
13979 finish_command_fsm_async_reply_reason.
13980 (finish_command): Update.
13981 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13982 Add constructor.
13983 (call_thread_fsm_ops): Remove.
13984 (call_thread_fsm::call_thread_fsm): Rename from
13985 new_call_thread_fsm.
13986 (call_thread_fsm::should_stop): Rename from
13987 call_thread_fsm_should_stop.
13988 (call_thread_fsm::should_notify_stop): Rename from
13989 call_thread_fsm_should_notify_stop.
13990 (run_inferior_call, call_function_by_hand_dummy): Update.
13991 * cli/cli-interp.c (should_print_stop_to_console): Update.
13992 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13993 Add constructor. Change type of location_breakpoint,
13994 caller_breakpoint.
13995 (until_break_fsm_ops): Remove.
13996 (new_until_break_fsm): Remove.
13997 (until_break_fsm::should_stop): Rename from
13998 until_break_fsm_should_stop.
13999 (until_break_fsm::clean_up): Rename from
14000 until_break_fsm_clean_up.
14001 (until_break_fsm::do_async_reply_reason): Rename from
14002 until_break_fsm_async_reply_reason.
14003 (until_break_command): Update.
14004 * thread-fsm.c: Remove.
14005 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14006
1a5c2598
TT
140072019-02-07 Tom Tromey <tom@tromey.com>
14008
14009 * yy-remap.h: Add include guard.
14010 * xtensa-tdep.h: Add include guard.
14011 * xcoffread.h: Rename include guard.
14012 * varobj-iter.h: Add include guard.
14013 * tui/tui.h: Rename include guard.
14014 * tui/tui-winsource.h: Rename include guard.
14015 * tui/tui-wingeneral.h: Rename include guard.
14016 * tui/tui-windata.h: Rename include guard.
14017 * tui/tui-win.h: Rename include guard.
14018 * tui/tui-stack.h: Rename include guard.
14019 * tui/tui-source.h: Rename include guard.
14020 * tui/tui-regs.h: Rename include guard.
14021 * tui/tui-out.h: Rename include guard.
14022 * tui/tui-layout.h: Rename include guard.
14023 * tui/tui-io.h: Rename include guard.
14024 * tui/tui-hooks.h: Rename include guard.
14025 * tui/tui-file.h: Rename include guard.
14026 * tui/tui-disasm.h: Rename include guard.
14027 * tui/tui-data.h: Rename include guard.
14028 * tui/tui-command.h: Rename include guard.
14029 * tic6x-tdep.h: Add include guard.
14030 * target/waitstatus.h: Rename include guard.
14031 * target/wait.h: Rename include guard.
14032 * target/target.h: Rename include guard.
14033 * target/resume.h: Rename include guard.
14034 * target-float.h: Rename include guard.
14035 * stabsread.h: Add include guard.
14036 * rs6000-tdep.h: Add include guard.
14037 * riscv-fbsd-tdep.h: Add include guard.
14038 * regformats/regdef.h: Rename include guard.
14039 * record.h: Rename include guard.
14040 * python/python.h: Rename include guard.
14041 * python/python-internal.h: Rename include guard.
14042 * python/py-stopevent.h: Rename include guard.
14043 * python/py-ref.h: Rename include guard.
14044 * python/py-record.h: Rename include guard.
14045 * python/py-record-full.h: Rename include guard.
14046 * python/py-record-btrace.h: Rename include guard.
14047 * python/py-instruction.h: Rename include guard.
14048 * python/py-events.h: Rename include guard.
14049 * python/py-event.h: Rename include guard.
14050 * procfs.h: Add include guard.
14051 * proc-utils.h: Add include guard.
14052 * p-lang.h: Add include guard.
14053 * or1k-tdep.h: Rename include guard.
14054 * observable.h: Rename include guard.
14055 * nto-tdep.h: Rename include guard.
14056 * nat/x86-linux.h: Rename include guard.
14057 * nat/x86-linux-dregs.h: Rename include guard.
14058 * nat/x86-gcc-cpuid.h: Add include guard.
14059 * nat/x86-dregs.h: Rename include guard.
14060 * nat/x86-cpuid.h: Rename include guard.
14061 * nat/ppc-linux.h: Rename include guard.
14062 * nat/mips-linux-watch.h: Rename include guard.
14063 * nat/linux-waitpid.h: Rename include guard.
14064 * nat/linux-ptrace.h: Rename include guard.
14065 * nat/linux-procfs.h: Rename include guard.
14066 * nat/linux-osdata.h: Rename include guard.
14067 * nat/linux-nat.h: Rename include guard.
14068 * nat/linux-namespaces.h: Rename include guard.
14069 * nat/linux-btrace.h: Rename include guard.
14070 * nat/glibc_thread_db.h: Rename include guard.
14071 * nat/gdb_thread_db.h: Rename include guard.
14072 * nat/gdb_ptrace.h: Rename include guard.
14073 * nat/fork-inferior.h: Rename include guard.
14074 * nat/amd64-linux-siginfo.h: Rename include guard.
14075 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14076 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14077 * nat/aarch64-linux.h: Rename include guard.
14078 * nat/aarch64-linux-hw-point.h: Rename include guard.
14079 * mn10300-tdep.h: Add include guard.
14080 * mips-linux-tdep.h: Add include guard.
14081 * mi/mi-parse.h: Rename include guard.
14082 * mi/mi-out.h: Rename include guard.
14083 * mi/mi-main.h: Rename include guard.
14084 * mi/mi-interp.h: Rename include guard.
14085 * mi/mi-getopt.h: Rename include guard.
14086 * mi/mi-console.h: Rename include guard.
14087 * mi/mi-common.h: Rename include guard.
14088 * mi/mi-cmds.h: Rename include guard.
14089 * mi/mi-cmd-break.h: Rename include guard.
14090 * m2-lang.h: Add include guard.
14091 * location.h: Rename include guard.
14092 * linux-record.h: Rename include guard.
14093 * linux-nat.h: Add include guard.
14094 * linux-fork.h: Add include guard.
14095 * i386-darwin-tdep.h: Rename include guard.
14096 * hppa-linux-offsets.h: Add include guard.
14097 * guile/guile.h: Rename include guard.
14098 * guile/guile-internal.h: Rename include guard.
14099 * gnu-nat.h: Rename include guard.
14100 * gdb-stabs.h: Rename include guard.
14101 * frv-tdep.h: Add include guard.
14102 * f-lang.h: Add include guard.
14103 * event-loop.h: Add include guard.
14104 * darwin-nat.h: Rename include guard.
14105 * cp-abi.h: Rename include guard.
14106 * config/sparc/nm-sol2.h: Rename include guard.
14107 * config/nm-nto.h: Rename include guard.
14108 * config/nm-linux.h: Add include guard.
14109 * config/i386/nm-i386gnu.h: Rename include guard.
14110 * config/djgpp/nl_types.h: Rename include guard.
14111 * config/djgpp/langinfo.h: Rename include guard.
14112 * compile/gcc-cp-plugin.h: Add include guard.
14113 * compile/gcc-c-plugin.h: Add include guard.
14114 * compile/compile.h: Rename include guard.
14115 * compile/compile-object-run.h: Rename include guard.
14116 * compile/compile-object-load.h: Rename include guard.
14117 * compile/compile-internal.h: Rename include guard.
14118 * compile/compile-cplus.h: Rename include guard.
14119 * compile/compile-c.h: Rename include guard.
14120 * common/xml-utils.h: Rename include guard.
14121 * common/x86-xstate.h: Rename include guard.
14122 * common/version.h: Rename include guard.
14123 * common/vec.h: Rename include guard.
14124 * common/tdesc.h: Rename include guard.
14125 * common/selftest.h: Rename include guard.
14126 * common/scoped_restore.h: Rename include guard.
14127 * common/scoped_mmap.h: Rename include guard.
14128 * common/scoped_fd.h: Rename include guard.
14129 * common/safe-iterator.h: Rename include guard.
14130 * common/run-time-clock.h: Rename include guard.
14131 * common/refcounted-object.h: Rename include guard.
14132 * common/queue.h: Rename include guard.
14133 * common/ptid.h: Rename include guard.
14134 * common/print-utils.h: Rename include guard.
14135 * common/preprocessor.h: Rename include guard.
14136 * common/pathstuff.h: Rename include guard.
14137 * common/observable.h: Rename include guard.
14138 * common/netstuff.h: Rename include guard.
14139 * common/job-control.h: Rename include guard.
14140 * common/host-defs.h: Rename include guard.
14141 * common/gdb_wait.h: Rename include guard.
14142 * common/gdb_vecs.h: Rename include guard.
14143 * common/gdb_unlinker.h: Rename include guard.
14144 * common/gdb_unique_ptr.h: Rename include guard.
14145 * common/gdb_tilde_expand.h: Rename include guard.
14146 * common/gdb_sys_time.h: Rename include guard.
14147 * common/gdb_string_view.h: Rename include guard.
14148 * common/gdb_splay_tree.h: Rename include guard.
14149 * common/gdb_setjmp.h: Rename include guard.
14150 * common/gdb_ref_ptr.h: Rename include guard.
14151 * common/gdb_optional.h: Rename include guard.
14152 * common/gdb_locale.h: Rename include guard.
14153 * common/gdb_assert.h: Rename include guard.
14154 * common/filtered-iterator.h: Rename include guard.
14155 * common/filestuff.h: Rename include guard.
14156 * common/fileio.h: Rename include guard.
14157 * common/environ.h: Rename include guard.
14158 * common/common-utils.h: Rename include guard.
14159 * common/common-types.h: Rename include guard.
14160 * common/common-regcache.h: Rename include guard.
14161 * common/common-inferior.h: Rename include guard.
14162 * common/common-gdbthread.h: Rename include guard.
14163 * common/common-exceptions.h: Rename include guard.
14164 * common/common-defs.h: Rename include guard.
14165 * common/common-debug.h: Rename include guard.
14166 * common/cleanups.h: Rename include guard.
14167 * common/buffer.h: Rename include guard.
14168 * common/btrace-common.h: Rename include guard.
14169 * common/break-common.h: Rename include guard.
14170 * cli/cli-utils.h: Rename include guard.
14171 * cli/cli-style.h: Rename include guard.
14172 * cli/cli-setshow.h: Rename include guard.
14173 * cli/cli-script.h: Rename include guard.
14174 * cli/cli-interp.h: Rename include guard.
14175 * cli/cli-decode.h: Rename include guard.
14176 * cli/cli-cmds.h: Rename include guard.
14177 * charset-list.h: Add include guard.
14178 * buildsym-legacy.h: Rename include guard.
14179 * bfin-tdep.h: Add include guard.
14180 * ax.h: Rename include guard.
14181 * arm-linux-tdep.h: Add include guard.
14182 * arm-fbsd-tdep.h: Add include guard.
14183 * arch/xtensa.h: Rename include guard.
14184 * arch/tic6x.h: Add include guard.
14185 * arch/i386.h: Add include guard.
14186 * arch/arm.h: Rename include guard.
14187 * arch/arm-linux.h: Rename include guard.
14188 * arch/arm-get-next-pcs.h: Rename include guard.
14189 * arch/amd64.h: Add include guard.
14190 * arch/aarch64-insn.h: Rename include guard.
14191 * arch-utils.h: Rename include guard.
14192 * annotate.h: Add include guard.
14193 * amd64-darwin-tdep.h: Rename include guard.
14194 * aarch64-linux-tdep.h: Add include guard.
14195 * aarch64-fbsd-tdep.h: Add include guard.
14196 * aarch32-linux-nat.h: Add include guard.
14197
ab9268d2
PW
141982019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14199
14200 * macrotab.c (macro_define_internal): New function that
14201 factorizes macro_define_object_internal and macro_define_function
14202 code.
14203 (macro_define_object_internal): Use macro_define_internal.
14204 (macro_define_function): Likewise.
14205
bb0da2b4
PW
142062019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14207
14208 * macrocmd.c (extract_identifier): Return
14209 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14210 callers.
14211
424eb552
JB
142122019-02-06 John Baldwin <jhb@FreeBSD.org>
14213
14214 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14215
1688cb29
TT
142162019-02-05 Tom Tromey <tom@tromey.com>
14217
14218 * target.c (target_stack::unpush): Move assertion earlier.
14219
b5eba2d8
TT
142202019-01-30 Tom Tromey <tom@tromey.com>
14221
14222 PR python/23615:
14223 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14224 (gdbpy_parse_and_eval): Likewise.
14225 * python/python-internal.h (gdbpy_allow_threads): New class.
14226
7054e2ff
JB
142272019-01-28 John Baldwin <jhb@FreeBSD.org>
14228
14229 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14230 (aarch64_fbsd_fpregmap): Move earlier.
14231 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14232 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14233 instead of individual calls to trad_frame_set_reg_addr.
14234 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14235 earlier.
14236 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14237 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14238 instead of individual calls to trad_frame_set_reg_addr.
14239
36c25ffa
AH
142402019-01-28 Alan Hayward <alan.hayward@arm.com>
14241
14242 * CONTRIBUTE: Replace contribution list with wiki link.
14243
a0707f3c
TT
142442019-01-25 Tom Tromey <tom@tromey.com>
14245
14246 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14247
0747795c
TT
142482019-01-25 Tom Tromey <tom@tromey.com>
14249
14250 * xtensa-linux-nat.c: Fix common/ includes.
14251 * xml-support.h: Fix common/ includes.
14252 * xml-support.c: Fix common/ includes.
14253 * x86-linux-nat.c: Fix common/ includes.
14254 * windows-nat.c: Fix common/ includes.
14255 * varobj.h: Fix common/ includes.
14256 * varobj.c: Fix common/ includes.
14257 * value.c: Fix common/ includes.
14258 * valops.c: Fix common/ includes.
14259 * utils.c: Fix common/ includes.
14260 * unittests/xml-utils-selftests.c: Fix common/ includes.
14261 * unittests/utils-selftests.c: Fix common/ includes.
14262 * unittests/unpack-selftests.c: Fix common/ includes.
14263 * unittests/tracepoint-selftests.c: Fix common/ includes.
14264 * unittests/style-selftests.c: Fix common/ includes.
14265 * unittests/string_view-selftests.c: Fix common/ includes.
14266 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14267 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14268 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14269 * unittests/rsp-low-selftests.c: Fix common/ includes.
14270 * unittests/parse-connection-spec-selftests.c: Fix common/
14271 includes.
14272 * unittests/optional-selftests.c: Fix common/ includes.
14273 * unittests/offset-type-selftests.c: Fix common/ includes.
14274 * unittests/observable-selftests.c: Fix common/ includes.
14275 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14276 * unittests/memrange-selftests.c: Fix common/ includes.
14277 * unittests/memory-map-selftests.c: Fix common/ includes.
14278 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14279 * unittests/function-view-selftests.c: Fix common/ includes.
14280 * unittests/environ-selftests.c: Fix common/ includes.
14281 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14282 * unittests/common-utils-selftests.c: Fix common/ includes.
14283 * unittests/cli-utils-selftests.c: Fix common/ includes.
14284 * unittests/array-view-selftests.c: Fix common/ includes.
14285 * ui-file.c: Fix common/ includes.
14286 * tui/tui-io.c: Fix common/ includes.
14287 * tracepoint.h: Fix common/ includes.
14288 * tracepoint.c: Fix common/ includes.
14289 * tracefile-tfile.c: Fix common/ includes.
14290 * top.h: Fix common/ includes.
14291 * top.c: Fix common/ includes.
14292 * thread.c: Fix common/ includes.
14293 * target/waitstatus.h: Fix common/ includes.
14294 * target/waitstatus.c: Fix common/ includes.
14295 * target.h: Fix common/ includes.
14296 * target.c: Fix common/ includes.
14297 * target-memory.c: Fix common/ includes.
14298 * target-descriptions.c: Fix common/ includes.
14299 * symtab.h: Fix common/ includes.
14300 * symfile.c: Fix common/ includes.
14301 * stap-probe.c: Fix common/ includes.
14302 * spu-linux-nat.c: Fix common/ includes.
14303 * sparc-nat.c: Fix common/ includes.
14304 * source.c: Fix common/ includes.
14305 * solib.c: Fix common/ includes.
14306 * solib-target.c: Fix common/ includes.
14307 * ser-unix.c: Fix common/ includes.
14308 * ser-tcp.c: Fix common/ includes.
14309 * ser-pipe.c: Fix common/ includes.
14310 * ser-base.c: Fix common/ includes.
14311 * selftest-arch.c: Fix common/ includes.
14312 * s12z-tdep.c: Fix common/ includes.
14313 * rust-exp.y: Fix common/ includes.
14314 * rs6000-aix-tdep.c: Fix common/ includes.
14315 * riscv-tdep.c: Fix common/ includes.
14316 * remote.c: Fix common/ includes.
14317 * remote-notif.h: Fix common/ includes.
14318 * remote-fileio.h: Fix common/ includes.
14319 * remote-fileio.c: Fix common/ includes.
14320 * regcache.h: Fix common/ includes.
14321 * regcache.c: Fix common/ includes.
14322 * record-btrace.c: Fix common/ includes.
14323 * python/python.c: Fix common/ includes.
14324 * python/py-type.c: Fix common/ includes.
14325 * python/py-inferior.c: Fix common/ includes.
14326 * progspace.h: Fix common/ includes.
14327 * producer.c: Fix common/ includes.
14328 * procfs.c: Fix common/ includes.
14329 * proc-api.c: Fix common/ includes.
14330 * printcmd.c: Fix common/ includes.
14331 * ppc-linux-nat.c: Fix common/ includes.
14332 * parser-defs.h: Fix common/ includes.
14333 * osdata.c: Fix common/ includes.
14334 * obsd-nat.c: Fix common/ includes.
14335 * nat/x86-linux.c: Fix common/ includes.
14336 * nat/x86-linux-dregs.c: Fix common/ includes.
14337 * nat/x86-dregs.h: Fix common/ includes.
14338 * nat/x86-dregs.c: Fix common/ includes.
14339 * nat/ppc-linux.c: Fix common/ includes.
14340 * nat/mips-linux-watch.h: Fix common/ includes.
14341 * nat/mips-linux-watch.c: Fix common/ includes.
14342 * nat/linux-waitpid.c: Fix common/ includes.
14343 * nat/linux-ptrace.h: Fix common/ includes.
14344 * nat/linux-ptrace.c: Fix common/ includes.
14345 * nat/linux-procfs.c: Fix common/ includes.
14346 * nat/linux-personality.c: Fix common/ includes.
14347 * nat/linux-osdata.c: Fix common/ includes.
14348 * nat/linux-namespaces.c: Fix common/ includes.
14349 * nat/linux-btrace.h: Fix common/ includes.
14350 * nat/linux-btrace.c: Fix common/ includes.
14351 * nat/fork-inferior.c: Fix common/ includes.
14352 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14353 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14354 * nat/aarch64-linux.c: Fix common/ includes.
14355 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14356 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14357 * namespace.h: Fix common/ includes.
14358 * mips-linux-tdep.c: Fix common/ includes.
14359 * minsyms.c: Fix common/ includes.
14360 * mi/mi-parse.h: Fix common/ includes.
14361 * mi/mi-main.c: Fix common/ includes.
14362 * mi/mi-cmd-env.c: Fix common/ includes.
14363 * memrange.h: Fix common/ includes.
14364 * memattr.c: Fix common/ includes.
14365 * maint.h: Fix common/ includes.
14366 * maint.c: Fix common/ includes.
14367 * main.c: Fix common/ includes.
14368 * machoread.c: Fix common/ includes.
14369 * location.c: Fix common/ includes.
14370 * linux-thread-db.c: Fix common/ includes.
14371 * linux-nat.c: Fix common/ includes.
14372 * linux-fork.c: Fix common/ includes.
14373 * inline-frame.c: Fix common/ includes.
14374 * infrun.c: Fix common/ includes.
14375 * inflow.c: Fix common/ includes.
14376 * inferior.h: Fix common/ includes.
14377 * inferior.c: Fix common/ includes.
14378 * infcmd.c: Fix common/ includes.
14379 * inf-ptrace.c: Fix common/ includes.
14380 * inf-child.c: Fix common/ includes.
14381 * ia64-linux-nat.c: Fix common/ includes.
14382 * i387-tdep.c: Fix common/ includes.
14383 * i386-tdep.c: Fix common/ includes.
14384 * i386-linux-tdep.c: Fix common/ includes.
14385 * i386-linux-nat.c: Fix common/ includes.
14386 * i386-go32-tdep.c: Fix common/ includes.
14387 * i386-fbsd-tdep.c: Fix common/ includes.
14388 * i386-fbsd-nat.c: Fix common/ includes.
14389 * guile/scm-type.c: Fix common/ includes.
14390 * guile/guile.c: Fix common/ includes.
14391 * go32-nat.c: Fix common/ includes.
14392 * gnu-nat.c: Fix common/ includes.
14393 * gdbthread.h: Fix common/ includes.
14394 * gdbarch-selftests.c: Fix common/ includes.
14395 * gdb_usleep.c: Fix common/ includes.
14396 * gdb_select.h: Fix common/ includes.
14397 * gdb_bfd.c: Fix common/ includes.
14398 * gcore.c: Fix common/ includes.
14399 * fork-child.c: Fix common/ includes.
14400 * findvar.c: Fix common/ includes.
14401 * fbsd-nat.c: Fix common/ includes.
14402 * event-top.c: Fix common/ includes.
14403 * event-loop.c: Fix common/ includes.
14404 * dwarf2read.c: Fix common/ includes.
14405 * dwarf2loc.c: Fix common/ includes.
14406 * dwarf2-frame.c: Fix common/ includes.
14407 * dwarf-index-cache.c: Fix common/ includes.
14408 * dtrace-probe.c: Fix common/ includes.
14409 * disasm-selftests.c: Fix common/ includes.
14410 * defs.h: Fix common/ includes.
14411 * csky-tdep.c: Fix common/ includes.
14412 * cp-valprint.c: Fix common/ includes.
14413 * cp-support.h: Fix common/ includes.
14414 * cp-support.c: Fix common/ includes.
14415 * corelow.c: Fix common/ includes.
14416 * completer.h: Fix common/ includes.
14417 * completer.c: Fix common/ includes.
14418 * compile/compile.c: Fix common/ includes.
14419 * compile/compile-loc2c.c: Fix common/ includes.
14420 * compile/compile-cplus-types.c: Fix common/ includes.
14421 * compile/compile-cplus-symbols.c: Fix common/ includes.
14422 * command.h: Fix common/ includes.
14423 * cli/cli-dump.c: Fix common/ includes.
14424 * cli/cli-cmds.c: Fix common/ includes.
14425 * charset.c: Fix common/ includes.
14426 * build-id.c: Fix common/ includes.
14427 * btrace.h: Fix common/ includes.
14428 * btrace.c: Fix common/ includes.
14429 * breakpoint.h: Fix common/ includes.
14430 * breakpoint.c: Fix common/ includes.
14431 * ax.h:
14432 (enum agent_op): Fix common/ includes.
14433 * ax-general.c (struct aop_map): Fix common/ includes.
14434 * ax-gdb.c: Fix common/ includes.
14435 * auxv.c: Fix common/ includes.
14436 * auto-load.c: Fix common/ includes.
14437 * arm-tdep.c: Fix common/ includes.
14438 * arch/riscv.c: Fix common/ includes.
14439 * arch/ppc-linux-common.c: Fix common/ includes.
14440 * arch/i386.c: Fix common/ includes.
14441 * arch/arm.c: Fix common/ includes.
14442 * arch/arm-linux.c: Fix common/ includes.
14443 * arch/arm-get-next-pcs.c: Fix common/ includes.
14444 * arch/amd64.c: Fix common/ includes.
14445 * arch/aarch64.c: Fix common/ includes.
14446 * arch/aarch64-insn.c: Fix common/ includes.
14447 * arch-utils.c: Fix common/ includes.
14448 * amd64-windows-tdep.c: Fix common/ includes.
14449 * amd64-tdep.c: Fix common/ includes.
14450 * amd64-sol2-tdep.c: Fix common/ includes.
14451 * amd64-obsd-tdep.c: Fix common/ includes.
14452 * amd64-nbsd-tdep.c: Fix common/ includes.
14453 * amd64-linux-tdep.c: Fix common/ includes.
14454 * amd64-linux-nat.c: Fix common/ includes.
14455 * amd64-fbsd-tdep.c: Fix common/ includes.
14456 * amd64-fbsd-nat.c: Fix common/ includes.
14457 * amd64-dicos-tdep.c: Fix common/ includes.
14458 * amd64-darwin-tdep.c: Fix common/ includes.
14459 * agent.c: Fix common/ includes.
14460 * ada-lang.h: Fix common/ includes.
14461 * ada-lang.c: Fix common/ includes.
14462 * aarch64-tdep.c: Fix common/ includes.
14463
2f5c153e
TT
144642019-01-25 Tom Tromey <tom@tromey.com>
14465
14466 * common/create-version.sh: Use common/version.h.
14467
adc6a863
PA
144682019-01-24 Pedro Alves <palves@redhat.com>
14469
14470 * infrun.c (signal_stop, signal_print, signal_program)
14471 (signal_catch, signal_pass): Now arrays instead of pointers.
14472 (update_signals_program_target, do_target_resume)
14473 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14474 * linux-nat.c (linux_nat_target::pass_signals)
14475 (linux_nat_target::create_inferior, linux_nat_target::attach):
14476 Adjust.
14477 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14478 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14479 * procfs.c (procfs_target::pass_signals): Adjust.
14480 * record-full.c (record_full_target::resume): Adjust.
14481 * remote.c (remote_target::pass_signals)
14482 (remote_target::program_signals): Adjust.
14483 * target-debug.h (target_debug_print_signals): Now takes a
14484 gdb::array_view as parameter. Adjust.
14485 * target.h (target_ops) <pass_signals, program_signals>: Replace
14486 pointer and length parameters with gdb::array_view.
14487 (target_pass_signals, target_program_signals): Likewise.
14488 * target-delegates.c: Regenerate.
14489
3046d67a
PA
144902019-01-24 Pedro Alves <palves@redhat.com>
14491
14492 * common/forward-scope-exit.h
14493 (forward_scope_exit::forward_scope_exit): Pass arguments to
14494 m_bind_function directly, instead of creating a std::bind and
14495 copying that.
14496
353229bf
AH
144972019-01-24 Alan Hayward <alan.hayward@arm.com>
14498
14499 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14500 for static members.
14501 (pass_in_v_vfp_candidate): Likewise.
14502
311dc83a
TT
145032019-01-23 Tom Tromey <tom@tromey.com>
14504 Pedro Alves <palves@redhat.com>
14505
14506 * regcache.c (class regcache_invalidator): Remove.
14507 (regcache::raw_write): Use make_scope_exit.
14508
296bd123
TT
145092019-01-23 Tom Tromey <tom@tromey.com>
14510
14511 * ui-out.h (class ui_out_emit_type): Update comment.
14512
979a0d13
TT
145132019-01-23 Tom Tromey <tom@tromey.com>
14514
14515 * infrun.c (fetch_inferior_event): Update comment.
14516
d238133d
TT
145172019-01-23 Tom Tromey <tom@tromey.com>
14518 Pedro Alves <palves@redhat.com>
14519
14520 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14521 parameter.
14522 (fetch_inferior_event): Use SCOPE_EXIT.
14523
14524
9885e6bb
TT
145252019-01-23 Tom Tromey <tom@tromey.com>
14526 Pedro Alves <palves@redhat.com>
14527
14528 * infrun.c (disable_thread_events): Delete.
14529 (stop_all_threads): Use SCOPE_EXIT.
14530
286526c1
TT
145312019-01-23 Tom Tromey <tom@tromey.com>
14532 Pedro Alves <palves@redhat.com>
14533
14534 * symfile.c: Include forward-scope-exit.h.
14535 (clear_symtab_users_cleanup): Replace forward declaration with
14536 a FORWARD_SCOPE_EXIT.
14537 (syms_from_objfile_1): Use the forward_scope_exit and
14538 gdb::optional instead of cleanup_function.
14539 (reread_symbols): Use the forward_scope_exit instead of
14540 cleanup_function.
14541 (clear_symtab_users_cleanup): Remove function.
14542
1db93f14
TT
145432019-01-23 Tom Tromey <tom@tromey.com>
14544 Pedro Alves <palves@redhat.com>
14545
14546 * linux-nat.c: Include scope-exit.h.
14547 (cleanup_target_stop): Remove.
14548 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14549 SCOPE_EXIT.
14550
2cc83d1e
TT
145512019-01-23 Tom Tromey <tom@tromey.com>
14552 Pedro Alves <palves@redhat.com>
14553
14554 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14555 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14556
694c6bf5
TT
145572019-01-23 Tom Tromey <tom@tromey.com>
14558 Andrew Burgess <andrew.burgess@embecosm.com>
14559 Pedro Alves <palves@redhat.com>
14560
14561 * infrun.c (fetch_inferior_event): Use scope_exit.
14562 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14563 * top.c (execute_command): Use scope_exit.
14564 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14565 * utils.c (do_bpstat_clear_actions_cleanup)
14566 (make_bpstat_clear_actions_cleanup): Remove.
14567
4c41382a
TT
145682019-01-23 Tom Tromey <tom@tromey.com>
14569 Pedro Alves <palves@redhat.com>
14570
14571 * infrun.c: Include "common/scope-exit.h"
14572 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14573 (wait_for_inferior): Use SCOPE_EXIT.
14574 (fetch_inferior_event): Use scope_exit.
14575
89f8fb50
TT
145762019-01-23 Tom Tromey <tom@tromey.com>
14577 Pedro Alves <palves@redhat.com>
14578
14579 * breakpoint.c (create_breakpoint): Remove cleanup.
14580
5419bdae
TT
145812019-01-23 Tom Tromey <tom@tromey.com>
14582 Andrew Burgess <andrew.burgess@embecosm.com>
14583 Pedro Alves <palves@redhat.com>
14584
e587ef42
PA
145852019-01-23 Pedro Alves <palves@redhat.com>
14586
14587 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14588
77f0e74c
PA
145892019-01-23 Pedro Alves <palves@redhat.com>
14590 Andrew Burgess <andrew.burgess@embecosm.com>
14591
14592 * gdbthread.h: Include "common/forward-scope-exit.h".
14593 (scoped_finish_thread_state): Redefine custom class in terms of
14594 forward_scope_exit.
14595
5b9b3e53
PA
145962019-01-23 Pedro Alves <palves@redhat.com>
14597 Andrew Burgess <andrew.burgess@embecosm.com>
14598
14599 * common/forward-scope-exit.h: New file.
14600
54b65c9b
PA
146012019-01-23 Pedro Alves <palves@redhat.com>
14602 Andrew Burgess <andrew.burgess@embecosm.com>
14603 Tom Tromey <tom@tromey.com>
14604
14605 * common/scope-exit.h: New file.
14606
cf08fb29
PA
146072019-01-23 Pedro Alves <palves@redhat.com>
14608
14609 * common/preprocessor.h (ESC): Rename to ...
14610 (ESC_PARENS): ... this.
14611 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14612 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14613
ae73e2e2
TT
146142019-01-23 Tom Tromey <tom@tromey.com>
14615
14616 * language.h (class scoped_switch_to_sym_language_if_auto):
14617 Initialize m_lang in both cases.
14618
6594e122
AH
146192019-01-23 Alan Hayward <alan.hayward@arm.com>
14620
14621 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14622 with XCNEW.
14623
a7c9855d
TT
146242019-01-22 Tom Tromey <tom@tromey.com>
14625
14626 * corelow.c: Do not include sys/file.h.
14627
93cc1d53
TT
146282019-01-22 Tom Tromey <tom@tromey.com>
14629
14630 * tui/tui-wingeneral.h: Include gdb_curses.h.
14631
38561778
TT
146322019-01-22 Tom Tromey <tom@tromey.com>
14633
14634 * source-cache.h (class source_cache) <get_source_lines,
14635 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14636
37b3ab5b
TT
146372019-01-22 Tom Tromey <tom@tromey.com>
14638
14639 * remote-fileio.h (struct remote_target): Declare.
14640
3fabc016
TT
146412019-01-22 Tom Tromey <tom@tromey.com>
14642
14643 * python/py-arch.c: Do not include py-ref.h.
14644 * python/py-bpevent.c: Do not include py-ref.h.
14645 * python/py-cmd.c: Do not include py-ref.h.
14646 * python/py-continueevent.c: Do not include py-ref.h.
14647 * python/py-event.h: Do not include py-ref.h.
14648 * python/py-evtregistry.c: Do not include py-ref.h.
14649 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14650 * python/py-frame.c: Do not include py-ref.h.
14651 * python/py-framefilter.c: Do not include py-ref.h.
14652 * python/py-function.c: Do not include py-ref.h.
14653 * python/py-infevents.c: Do not include py-ref.h.
14654 * python/py-linetable.c: Do not include py-ref.h.
14655 * python/py-objfile.c: Do not include py-ref.h.
14656 * python/py-param.c: Do not include py-ref.h.
14657 * python/py-prettyprint.c: Do not include py-ref.h.
14658 * python/py-progspace.c: Do not include py-ref.h.
14659 * python/py-symbol.c: Do not include py-ref.h.
14660 * python/py-symtab.c: Do not include py-ref.h.
14661 * python/py-type.c: Do not include py-ref.h.
14662 * python/py-unwind.c: Do not include py-ref.h.
14663 * python/py-utils.c: Do not include py-ref.h.
14664 * python/py-value.c: Do not include py-ref.h.
14665 * python/py-varobj.c: Do not include py-ref.h.
14666 * python/py-xmethods.c: Do not include py-ref.h.
14667 * python/python.c: Do not include py-ref.h.
14668 * varobj.c: Do not include py-ref.h.
14669
6b4d7774
TT
146702019-01-22 Tom Tromey <tom@tromey.com>
14671
14672 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14673 keyword for bcache.
14674
7af7e9b5
TT
146752019-01-22 Tom Tromey <tom@tromey.com>
14676
14677 * compile/compile-cplus-types.c: Remove a comment by #include.
14678
951d1049
TT
146792019-01-22 Tom Tromey <tom@tromey.com>
14680
14681 * compile/gcc-c-plugin.h: Include compile-internal.h.
14682
d65d5705
TT
146832019-01-22 Tom Tromey <tom@tromey.com>
14684
14685 * stabsread.c (EXTERN): Do not define.
14686 (symnum, next_symbol_text_func, processing_gcc_compilation)
14687 (within_function, global_sym_chain, global_stabs)
14688 (previous_stab_code, this_object_header_files)
14689 (n_this_object_header_files)
14690 (n_allocated_this_object_header_files): Define.
14691 * stabsread.h (EXTERN): Never define. Use "extern".
14692
b6fb1ee5
PW
146932019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14694
14695 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14696 history_value.
14697
be6d4f74
TT
146982019-01-21 Tom Tromey <tom@tromey.com>
14699
14700 * ui-out.c: Fix includes.
14701 * tui/tui-source.c: Fix includes.
14702 * target.c: Fix includes.
14703 * remote.c: Fix includes.
14704 * regcache.c: Fix includes.
14705 * python/py-block.c: Fix includes.
14706 * printcmd.c: Fix includes.
14707 * or1k-tdep.c: Fix includes.
14708 * mi/mi-main.c: Fix includes.
14709 * m32r-tdep.c: Fix includes.
14710 * csky-tdep.c: Fix includes.
14711 * compile/compile-cplus-types.c: Fix includes.
14712 * cli/cli-interp.c: Fix includes.
14713
73021deb
AH
147142019-01-21 Alan Hayward <alan.hayward@arm.com>
14715
14716 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14717 for padding.
14718
7932255d
TT
147192019-01-16 Tom Tromey <tom@tromey.com>
14720
14721 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14722 earlier.
14723 (struct objfile) <msymbols_range>: Move from top level.
14724 <msymbols>: New method.
14725 (class objfile_msymbols): Remove.
14726 * symtab.c (default_collect_symbol_completion_matches_break_on):
14727 Update.
14728 * symmisc.c (dump_msymbols): Update.
14729 * stabsread.c (scan_file_globals): Update.
14730 * objc-lang.c (info_selectors_command, info_classes_command)
14731 (find_methods): Update.
14732 * minsyms.c (find_solib_trampoline_target): Update.
14733 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14734 * coffread.c (coff_symfile_read): Update.
14735 * ada-lang.c (ada_lookup_simple_minsym)
14736 (ada_collect_symbol_completion_matches): Update.
14737
604b1bfb
TT
147382019-01-16 Tom Tromey <tom@tromey.com>
14739
14740 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14741 type. Remove no-argument constructor.
14742 <iterator::operator++>: Simplify.
14743 <begin>: Update.
14744 <end>: Use minimal_symbol_count.
14745
f252c6d5
TT
147462019-01-16 Tom Tromey <tom@tromey.com>
14747
14748 * objfiles.h (struct objfile) <psymtabs>: New method.
14749 (class objfile_psymtabs): Remove.
14750 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14751 typedef.
14752 <range>: New method.
14753 (require_partial_symbols): Change return type.
14754 * psymtab.c (require_partial_symbols)
14755 (psym_expand_symtabs_matching): Update.
14756 * mdebugread.c (parse_partial_symbols): Update.
14757 * dbxread.c (dbx_end_psymtab): Update.
14758
b669c953
TT
147592019-01-15 Tom Tromey <tom@tromey.com>
14760
14761 * symtab.c (lookup_objfile_from_block)
14762 (lookup_symbol_in_objfile_symtabs)
14763 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14764 (find_line_symtab, info_sources_command)
14765 (default_collect_symbol_completion_matches_break_on)
14766 (make_source_files_completion_list): Update.
14767 * symmisc.c (print_objfile_statistics, dump_objfile)
14768 (maintenance_print_symbols, maintenance_info_symtabs)
14769 (maintenance_check_symtabs, maintenance_info_line_tables):
14770 Update.
14771 * source.c (select_source_symtab)
14772 (forget_cached_source_info_for_objfile): Update.
14773 * objfiles.h (class objfile_compunits): Remove.
14774 (struct objfile) <compunits_range>: New typedef.
14775 (compunits): New method.
14776 * objfiles.c (objfile_relocate1): Update.
14777 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14778 * maint.c (count_symtabs_and_blocks): Update.
14779 * linespec.c (iterate_over_all_matching_symtabs): Update.
14780 * cp-support.c (add_symbol_overload_list_qualified): Update.
14781 * coffread.c (coff_symtab_read): Update.
14782 * ada-lang.c (add_nonlocal_symbols)
14783 (ada_collect_symbol_completion_matches)
14784 (ada_add_global_exceptions): Update.
14785
7e955d83
TT
147862019-01-15 Tom Tromey <tom@tromey.com>
14787
14788 * progspace.h (program_space) <objfiles_safe_range>: New
14789 typedef.
14790 <objfiles_safe>: New method.
14791 * objfiles.h (class all_objfiles_safe): Remove.
14792 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14793 * jit.c (jit_inferior_exit_hook): Update.
14794
2030c079
TT
147952019-01-17 Tom Tromey <tom@tromey.com>
14796
14797 * progspace.h (program_space) <objfiles_range>: New typedef.
14798 <objfiles>: New method.
14799 <objfiles_head>: Rename from objfiles.
14800 (object_files): Update.
14801 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14802 * guile/scm-pretty-print.c
14803 (ppscm_find_pretty_printer_from_objfiles): Update.
14804 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14805 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14806 Update.
14807 * python/py-progspace.c (pspy_get_objfiles): Update.
14808 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14809 Update.
14810 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14811 (objfpy_lookup_objfile_by_build_id): Update.
14812 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14813 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14814 Update.
14815 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14816 (expand_symtab_containing_pc, lookup_objfile_from_block)
14817 (lookup_static_symbol, basic_lookup_transparent_type)
14818 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14819 (find_line_symtab, info_sources_command)
14820 (default_collect_symbol_completion_matches_break_on)
14821 (make_source_files_completion_list, find_main_name): Update.
14822 * symmisc.c (print_symbol_bcache_statistics)
14823 (print_objfile_statistics, maintenance_print_symbols)
14824 (maintenance_print_msymbols, maintenance_print_objfiles)
14825 (maintenance_info_symtabs, maintenance_check_symtabs)
14826 (maintenance_expand_symtabs, maintenance_info_line_tables):
14827 Update.
14828 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14829 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14830 (map_overlay_command, unmap_overlay_command)
14831 (simple_overlay_update, expand_symtabs_matching)
14832 (map_symbol_filenames): Update.
14833 * symfile-debug.c (set_debug_symfile): Update.
14834 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14835 Update.
14836 * source.c (select_source_symtab, forget_cached_source_info):
14837 Update.
14838 * solib.c (solib_read_symbols): Update.
14839 * solib-spu.c (append_ocl_sos): Update.
14840 * psymtab.c (maintenance_print_psymbols)
14841 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14842 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14843 * printcmd.c (info_symbol_command): Update.
14844 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14845 Update.
14846 * objfiles.h (class all_objfiles): Remove.
14847 * objfiles.c (have_partial_symbols, have_full_symbols)
14848 (have_minimal_symbols, qsort_cmp, update_section_map)
14849 (shared_objfile_contains_address_p)
14850 (default_iterate_over_objfiles_in_search_order): Update.
14851 * objc-lang.c (info_selectors_command, info_classes_command)
14852 (find_methods): Update.
14853 * minsyms.c (find_solib_trampoline_target): Update.
14854 * maint.c (maintenance_info_sections)
14855 (maintenance_translate_address, count_symtabs_and_blocks):
14856 Update.
14857 * main.c (captured_main_1): Update.
14858 * linux-thread-db.c (try_thread_db_load_from_pdir)
14859 (has_libpthread): Update.
14860 * linespec.c (iterate_over_all_matching_symtabs)
14861 (search_minsyms_for_name): Update.
14862 * jit.c (jit_find_objf_with_entry_addr): Update.
14863 * hppa-tdep.c (find_unwind_entry)
14864 (hppa_lookup_stub_minimal_symbol): Update.
14865 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14866 Update.
14867 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14868 (elf_gnu_ifunc_resolve_by_got): Update.
14869 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14870 * dwarf-index-write.c (save_gdb_index_command): Update.
14871 * cp-support.c (add_symbol_overload_list_qualified): Update.
14872 * breakpoint.c (create_overlay_event_breakpoint)
14873 (create_longjmp_master_breakpoint)
14874 (create_std_terminate_master_breakpoint)
14875 (create_exception_master_breakpoint): Update.
14876 * blockframe.c (find_pc_partial_function): Update.
14877 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14878 (ada_collect_symbol_completion_matches)
14879 (ada_add_global_exceptions): Update.
14880
776489e0
TT
148812019-01-17 Tom Tromey <tom@tromey.com>
14882
14883 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14884 declare VEC.
14885 (solib_target_parse_libraries): Change return type.
14886 (library_list_start_segment, library_list_start_section)
14887 (library_list_end_library, library_list_start_library); Update.
14888 (solib_target_free_library_list): Remove.
14889 (solib_target_parse_libraries): Remove cleanup. Change return
14890 type.
14891 (solib_target_current_sos): Update.
14892
6471e7d2
TT
148932019-01-17 Tom Tromey <tromey@bapiya>
14894
14895 * valprint.c: Replace "the the" with "the".
14896 * symtab.c: Replace "the the" with "the".
14897 * solib.c: Replace "the the" with "the".
14898 * solib-dsbt.c: Replace "the the" with "the".
14899 * linespec.c: Replace "the the" with "the".
14900 * dwarf2loc.h: Replace "the the" with "the".
14901 * amd64-windows-tdep.c: Replace "the the" with "the".
14902 * aarch64-tdep.c: Replace "the the" with "the".
14903
c24bdb02
KS
149042019-01-16 Keith Seitz <keiths@redhat.com>
14905
14906 PR gdb/23773
14907 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14908 <builder>: Rename to ..
14909 <m_builder>: ... this and make private.
14910 (dwarf2_cu::get_builder): New method. Change all users of
14911 `builder' to use this method.
14912 (dwarf2_start_symtab): Move to ...
14913 (dwarf2_cu::start_symtab): ... here. Update all callers
14914 (setup_type_unit_groups): Move to ...
14915 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14916 callers.
14917 (dwarf2_cu::reset_builder): New method.
14918 (process_full_compunit, process_full_type_unit): Use
14919 dwarf2_cu::reset_builder.
14920 (follow_die_offset): Record the ancestor CU if it is different
14921 from the followed DIE's CU.
14922 (follow_die_sig_1): Likewise.
14923
8d64371b
TT
149242019-01-15 Tom Tromey <tom@tromey.com>
14925
14926 * remote.c (class remote_state) <buf>: Now a char_vector.
14927 <buf_size>: Remove.
14928 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14929 parameter.
14930 (remote_target::getpkt_or_notif_sane_1)
14931 (remote_target::getpkt_sane)
14932 (remote_target::getpkt_or_notif_sane): Likewise.
14933 (class remote_target) <putpkt>: New overload.
14934 (remote_target::read_frame): Change type of "buf_p". Remove
14935 sizeof_p parameter.
14936 (packet_ok): New overload.
14937 (packet_check_result): New overload.
14938 Update all uses.
14939
bb277751
TT
149402019-01-14 Tom Tromey <tom@tromey.com>
14941
14942 * remote-notif.c (handle_notification, remote_notif_ack)
14943 (remote_notif_parse): Make "buf" const.
14944 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14945 const.
14946 (remote_notif_parse, remote_notif_ack, handle_notification):
14947 Likewise.
14948 * remote.c (remote_notif_stop_parse): Make "buf" const.
14949 (remote_target::remote_parse_stop_reply): Make "buf" const.
14950 (remote_notif_stop_ack): Make "buf" const.
14951
05be00a8
TT
149522019-01-14 Tom Tromey <tom@tromey.com>
14953
14954 * remote.c (remote_console_output): Make parameter const.
14955
491adeca
TT
149562019-01-14 Tom Tromey <tom@tromey.com>
14957
14958 * target-debug.h (target_debug_print_signals): Constify.
14959 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14960 * procfs.c (procfs_target::pass_signals): Update.
14961 * linux-nat.c (linux_nat_target::pass_signals): Update.
14962 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14963 * target-delegates.c: Rebuild.
14964 * remote.c (remote_target::program_signals): Update.
14965 (remote_target::pass_signals): Update.
14966 * target.c (target_pass_signals): Constify argument.
14967 (target_program_signals): Likewise.
14968 * target.h (struct target_ops) <pass_signals, program_signals>:
14969 Constify argument.
14970 (target_pass_signals, target_program_signals): Constify argument.
14971
bbd94648
TT
149722019-01-14 Tom Tromey <tom@tromey.com>
14973
14974 PR tui/28819:
14975 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14976
6f072a10
PFC
149772019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14978
14979 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14980 field.
14981 * rs6000-tdep.c: Include reggroups.h.
14982 (IS_V_ALIAS_PSEUDOREG): Define.
14983 (rs6000_register_name): Return names for the "vX" aliases.
14984 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14985 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14986 aliases. Call default_register_reggroup_p for all other
14987 pseudo-registers.
14988 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14989 New functions.
14990 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14991 Handle "vX" aliases.
14992 (v_alias_pseudo_register_collect): New function.
14993 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14994 (rs6000_gdbarch_init): Initialize "vX" aliases as
14995 pseudo-registers. Restore registration of
14996 rs6000_pseudo_register_reggroup_p with
14997 set_tdesc_pseudo_register_reggroup_p.
14998
1a782351
MF
149992019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15000
15001 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15002 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15003 set_gdbarch_num_pseudo_regs.
15004
d73cff18
PW
150052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15006
15007 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15008 Remove arg prefixname, add do_set and do_show.
15009 Add member functions set_list and show_list.
15010 * cli/cli-style.c (class cli_style_option): Update accordingly.
15011 (style_set_list): Move to file scope.
15012 (style_show_list): Likewise.
15013 (set_style): Call help_list.
15014 (show_style): Call cmd_show_list.
15015 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15016 Update to use the new macro.
15017
60a90376
JB
150182019-10-12 Joel Brobecker <brobecker@adacore.com>
15019
15020 * ada-lang.c (_initialize_ada_language): Expand the help text
15021 for the "catch exception" command.
15022
9d7c67bf
PW
150232019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15024
15025 * symtab.c (matching_obj_sections): Initialize obj,
15026 declare it closer to its usage.
15027
7cf47dc4
TT
150282019-01-10 Tom Tromey <tom@tromey.com>
15029
15030 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15031 (basic_inf_threads_range): Remove.
15032 (inf_threads_range, inf_non_exited_threads_range)
15033 (safe_inf_threads_range): Use next_adapter.
15034
d3cb6808
KS
150352019-01-10 Keith Seitz <keiths@redhat.com>
15036
15037 PR gdb/23712
15038 PR symtab/23010
15039 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15040 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15041
63a20375
KS
150422019-01-10 Keith Seitz <keiths@redhat.com>
15043
15044 PR gdb/23712
15045 PR symtab/23010
15046 * dictionary.c (pending_to_vector): Remove.
15047 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15048 Remove _1 suffix, replacing functions of the same name. Update
15049 all callers.
15050 (dict_create_hashed, dict_create_hashed_expandable)
15051 (dict_create_linear, dict_create_linear_expandable, dict_free)
15052 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15053 Make functions static.
15054
b026f593
KS
150552019-01-10 Keith Seitz <keiths@redhat.com>
15056
15057 PR gdb/23712
15058 PR symtab/23010
15059 * dictionary.h (struct dictionary): Replace declaration with
15060 multidictionary.
15061 (dict_create_hashed, dict_create_hashed_expandable)
15062 (dict_create_linear, dict_create_linear_expandable)
15063 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15064 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15065 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15066 taking multidictionary argument.
15067 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15068 * block.h (struct block) <dict>: Change to multidictionary
15069 and rename `multidict'.
15070 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15071 symmisc.c: Update all dictionary references to multidictionary.
15072
c7748ee9
KS
150732019-01-10 Keith Seitz <keiths@redhat.com>
15074
15075 PR gdb/23712
15076 PR symtab/23010
15077 * dictionary.c: Include unordered_map.
15078 (pending_to_vector): New function.
15079 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15080 Rewrite the non-"_1" functions to take vector instead
15081 of linked list.
15082 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15083 "new" _1 versions of the same name.
15084 (multidictionary): Define.
15085 (std::hash<enum language): New definition.
15086 (collate_pending_symbols_by_language, mdict_create_hashed)
15087 (mdict_create_hashed_expandable, mdict_create_linear)
15088 (mdict_create_linear_expandable, mdict_free)
15089 (find_language_dictionary, create_new_language_dictionary)
15090 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15091 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15092 (mdict_size, mdict_empty): New functions.
15093 * dictionary.h (mdict_iterator): Define.
15094
67aa1f3c
PA
150952019-01-10 Pedro Alves <palves@redhat.com>
15096
15097 * breakpoint.c (read_uploaded_action)
15098 (create_tracepoint_from_upload): Adjust to use
15099 gdb::unique_xmalloc_ptr.
15100 * ctf.c (ctf_write_uploaded_tp):
15101 (SET_ARRAY_FIELD): Use emplace_back.
15102 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15103 * tracefile-tfile.c (tfile_write_uploaded_tp):
15104 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15105 gdb::unique_xmalloc_ptr.
15106 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15107 at_string, cond_string, cmd_strings>: Replace char pointers
15108 with gdb::unique_xmalloc_ptr.
15109
2f667667
PA
151102019-01-10 Pedro Alves <palves@redhat.com>
15111
15112 * solib-target.c (library_list_start_library): Don't xstrdup name.
15113
36cb7237
PA
151142019-01-10 Pedro Alves <palves@redhat.com>
15115
15116 * mdebugread.c (parse_partial_symbols): Use
15117 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15118
da584958
AB
151192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15120
15121 * linux-fork.c (scoped_switch_fork_info)
15122 <~scoped_switch_fork_info>: Fix incorrect variable name.
15123
1ef8573c
AB
151242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15125
15126 * linux-fork.c (scoped_switch_fork_info)
15127 <scoped_switch_fork_info>: Make explicit.
15128 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15129
8d7bcccb
TT
151302019-01-10 Tom Tromey <tom@tromey.com>
15131
15132 * objfiles.h (objfile::reset_psymtabs): Update.
15133 * objfiles.c (objfile::objfile): Update.
15134 * psymtab.h (psymtab_storage::obstack): Update.
15135 (psymtab_storage::m_obstack): Use gdb::optional.
15136 (class psymtab_storage): Update comment. Remove objfile
15137 parameter.
15138 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15139
b596a3c7
TT
151402019-01-10 Tom Tromey <tom@tromey.com>
15141
15142 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15143 <free_psymtabs>: Now private.
15144 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15145 (allocate_psymtab): Use new method.
15146
a9342b62
TT
151472019-01-10 Tom Tromey <tom@tromey.com>
15148
15149 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15150 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15151 * mdebugread.c (parse_partial_symbols): Use
15152 allocate_dependencies.
15153 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15154 allocate_dependencies.
15155 (process_psymtab_comp_unit_reader)
15156 (build_type_psymtab_dependencies): Likewise.
15157 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15158
5af70966
TT
151592019-01-10 Tom Tromey <tom@tromey.com>
15160
15161 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15162 PSYMBOL_SET_LANGUAGE.
15163 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15164
5923a04c
TT
151652019-01-10 Tom Tromey <tom@tromey.com>
15166
15167 * psymtab.h (psymtab_storage::obstack): New method.
15168 <m_obstack>: Rename from obstack; now private.
15169 * psymtab.c (psymtab_storage): Update.
15170 * dwarf2read.c (create_addrmap_from_index)
15171 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15172 Update.
15173
6d6a12bf
TT
151742019-01-10 Tom Tromey <tom@tromey.com>
15175
15176 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15177 * objfiles.h (objfile::reset_psymtabs): New method.
15178
d320c2b5
TT
151792019-01-10 Tom Tromey <tom@tromey.com>
15180
15181 * symmisc.c (print_symbol_bcache_statistics): Update.
15182 (print_objfile_statistics): Update.
15183 * symfile.c (reread_symbols): Update.
15184 * psymtab.h (class psymtab_storage): New.
15185 * psymtab.c (psymtab_storage): New constructor.
15186 (~psymtab_storage): New destructor.
15187 (require_partial_symbols): Update.
15188 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15189 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15190 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15191 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15192 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15193 (start_psymtab_common, end_psymtab_common)
15194 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15195 (allocate_psymtab): Update.
15196 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15197 Update.
15198 (dump_psymtab_addrmap, maintenance_print_psymbols)
15199 (maintenance_check_psymtabs): Update.
15200 (class objfile_psymtabs): Move to objfiles.h.
15201 * psympriv.h (discard_psymtab): Now inline.
15202 (psymtab_discarder::psymtab_discarder): Update.
15203 (psymtab_discarder::~psymtab_discarder): Update.
15204 (ALL_OBJFILE_PSYMTABS): Rewrite.
15205 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15206 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15207 Remove fields.
15208 <partial_symtabs>: New field.
15209 (class objfile_psymtabs): Move from psymtab.h. Update.
15210 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15211 psymbol_cache.
15212 (objfile::~objfile): Don't destroy psymbol_cache.
15213 * mdebugread.c (parse_partial_symbols): Update.
15214 * dwarf2read.c (create_addrmap_from_index)
15215 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15216 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15217 (add_partial_subprogram, dwarf2_ranges_read): Update.
15218 * dwarf-index-write.c (write_address_map)
15219 (write_one_signatured_type, recursively_write_psymbols)
15220 (class debug_names, class debug_names, write_psymtabs_to_index):
15221 Update.
15222
1d94a5a3
TT
152232019-01-10 Tom Tromey <tom@tromey.com>
15224
15225 * symtab.h (SYMBOL_SET_NAMES): Update.
15226 (symbol_set_names): Update.
15227 (MSYMBOL_SET_NAMES): Update.
15228 * symtab.c (symbol_set_names): Change argument to be an
15229 objfile_per_bfd_storage.
15230 * psymtab.c (add_psymbol_to_bcache): Update.
15231 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15232
0f14768a
TT
152332019-01-10 Tom Tromey <tom@tromey.com>
15234
15235 * symtab.c (create_demangled_names_hash): Change argument to be an
15236 objfile_per_bfd_storage.
15237 (symbol_set_names): Update.
15238
6eee24ce
TT
152392019-01-10 Tom Tromey <tom@tromey.com>
15240
15241 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15242 init_psymbol_list.
15243 * psymtab.c (init_psymbol_list): Do nothing if already called.
15244 * psympriv.h (init_psymbol_list): Add comment.
15245 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15246 init_psymbol_list.
15247 * dbxread.c (dbx_symfile_read): Unconditionally call
15248 init_psymbol_list.
15249
75aedd27
TT
152502019-01-10 Tom Tromey <tom@tromey.com>
15251
15252 * xcoffread.c (scan_xcoff_symtab): Update.
15253 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15254 "where".
15255 * mdebugread.c (parse_partial_symbols)
15256 (handle_psymbol_enumerators): Update.
15257 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15258 * dbxread.c (read_dbx_symtab): Update.
15259 * psympriv.h (psymbol_placement): New enum.
15260 (add_psymbol_to_list): Update.
15261
939652a5
TT
152622019-01-10 Tom Tromey <tom@tromey.com>
15263
15264 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15265 static_psymbols parameters.
15266 (scan_xcoff_symtab): Update.
15267 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15268 static_psymbols parameters.
15269 * psympriv.h (start_psymtab_common): Update.
15270 * mdebugread.c (parse_partial_symbols): Update.
15271 * dwarf2read.c (create_partial_symtab): Update.
15272 * dbxread.c (read_dbx_symtab): Update.
15273 (start_psymtab): Remove global_psymbols and static_psymbols
15274 parameters.
15275
baa62830
TT
152762019-01-10 Tom Tromey <tom@tromey.com>
15277
15278 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15279 * psymtab.c (allocate_psymtab): Add comment.
15280 * psympriv.h (allocate_psymtab): Add comment.
15281 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15282 initializations.
15283 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15284
0e8f53ba
TT
152852019-01-10 Tom Tromey <tom@tromey.com>
15286
15287 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15288 Don't declare.
15289 * mipsread.c: Include mdebugread.h.
15290 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15291 Declare.
15292 * elfread.c: Include mdebugread.h.
15293
b22a7c6a
TT
152942019-01-09 Tom Tromey <tom@tromey.com>
15295
15296 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15297 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15298 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15299 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15300 (psym_lookup_symbol, psym_find_last_source_symtab)
15301 (psym_forget_cached_source_info, psym_print_stats)
15302 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15303 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15304 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15305 (psym_find_compunit_symtab_by_address)
15306 (maintenance_print_psymbols, maintenance_info_psymtabs)
15307 (maintenance_check_psymtabs): Use ranged for.
15308 * psymtab.h (class objfile_psymtabs): New.
15309 (require_partial_symbols): Return objfile_psymtabs.
15310 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15311
3b9d3ac2
TT
153122019-01-09 Tom Tromey <tom@tromey.com>
15313
15314 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15315 (find_pc_mapped_section, list_overlays_command)
15316 (map_overlay_command, unmap_overlay_command)
15317 (simple_overlay_update): Use all_objfiles.
15318 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15319 * printcmd.c (info_symbol_command): Use all_objfiles.
15320 * objfiles.h (ALL_OBJSECTIONS): Remove.
15321 * maint.c (maintenance_translate_address): Use all_objfiles.
15322 * gcore.c (gcore_create_callback): Use all_objfiles.
15323 (objfile_find_memory_regions): Likewise.
15324
8b31193a
TT
153252019-01-09 Tom Tromey <tom@tromey.com>
15326
15327 * symtab.c (find_line_symtab, info_sources_command)
15328 (make_source_files_completion_list): Use objfile_compunits.
15329 * source.c (select_source_symtab): Use objfile_compunits.
15330 * objfiles.h (struct objfile): Update comment.
15331 (ALL_OBJFILES): Remove.
15332 (ALL_FILETABS): Remove.
15333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15334 objfile_compunits.
15335
d5da8b3c
TT
153362019-01-09 Tom Tromey <tom@tromey.com>
15337
15338 * symmisc.c (print_objfile_statistics, dump_objfile)
15339 (maintenance_print_symbols): Use compunit_filetabs.
15340 * source.c (forget_cached_source_info_for_objfile): Use
15341 compunit_filetabs.
15342 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15343 (ALL_FILETABS): Use compunit_filetabs.
15344 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15345 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15346
5accd1a0
TT
153472019-01-09 Tom Tromey <tom@tromey.com>
15348
15349 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15350 (compunit_filetabs): New.
15351 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15352 compunit_filetabs.
15353 (info_sources_command, make_source_files_completion_list): Remove
15354 declaration.
15355 * symmisc.c (print_objfile_statistics, dump_objfile)
15356 (maintenance_print_symbols): Remove declaration.
15357 (maintenance_info_symtabs): Use compunit_filetabs.
15358 (maintenance_info_line_tables): Likewise.
15359 * source.c (select_source_symtab): Change local variable name.
15360 (forget_cached_source_info_for_objfile): Remove declaration.
15361 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15362 * objfiles.c (objfile_relocate1): Remove declaration.
15363 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15364 declaration.
15365 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15366 * coffread.c (coff_symtab_read): Remove declaration.
15367 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15368 compunit_filetabs.
15369
d8aeb77f
TT
153702019-01-09 Tom Tromey <tom@tromey.com>
15371
15372 * symtab.c (lookup_objfile_from_block)
15373 (find_pc_sect_compunit_symtab, search_symbols)
15374 (default_collect_symbol_completion_matches_break_on): Use
15375 objfile_compunits.
15376 * objfiles.h (ALL_COMPUNITS): Remove.
15377 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15378 * cp-support.c (add_symbol_overload_list_qualified): Use
15379 objfile_compunits.
15380 * ada-lang.c (ada_collect_symbol_completion_matches)
15381 (ada_add_global_exceptions): Use objfile_compunits.
15382
592553c4
TT
153832019-01-09 Tom Tromey <tom@tromey.com>
15384
15385 * source.c (select_source_symtab)
15386 (forget_cached_source_info_for_objfile): Remove declaration.
15387 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15388 declaration.
15389 * maint.c (count_symtabs_and_blocks): Remove declaration.
15390 * cp-support.c (add_symbol_overload_list_qualified): Remove
15391 declaration.
15392 * coffread.c (coff_symtab_read): Remove declaration.
15393 * symtab.c (lookup_symbol_in_objfile_symtabs)
15394 (basic_lookup_transparent_type_1): Use objfile_compunits.
15395 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15396 (info_sources_command, search_symbols)
15397 (default_collect_symbol_completion_matches_break_on)
15398 (make_source_files_completion_list): Remove declaration.
15399 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15400 (ada_collect_symbol_completion_matches)
15401 (ada_add_global_exceptions): Remove declaration.
15402 * linespec.c (iterate_over_all_matching_symtabs): Use
15403 objfile_compunits.
15404 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15405 (class objfile_compunits): New.
15406 (ALL_COMPUNITS): Use objfile_compunits.
15407 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15408 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15409 objfile_compunits.
15410 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15411
5325b9bf
TT
154122019-01-09 Tom Tromey <tom@tromey.com>
15413
15414 * symtab.c (search_symbols)
15415 (default_collect_symbol_completion_matches_break_on): Use
15416 objfile_msymbols.
15417 * ada-lang.c (ada_lookup_simple_minsym)
15418 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15419 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15420 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15421 objfile_msymbols.
15422 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15423 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15424 * objc-lang.c (find_methods): Use objfile_msymbols.
15425 (info_selectors_command, info_classes_command): Likewise.
15426 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15427 * objfiles.h (class objfile_msymbols): New.
15428 (ALL_OBJFILE_MSYMBOLS): Remove.
15429 (ALL_MSYMBOLS): Remove.
15430
cac85af2
TT
154312019-01-09 Tom Tromey <tom@tromey.com>
15432
15433 * common/next-iterator.h (next_adapter): Add Iterator template
15434 parameter.
15435 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15436 (class all_objfiles_safe): New.
15437 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15438 * objfiles.c (put_objfile_before): Update comment.
15439 (add_separate_debug_objfile): Likewise.
15440 (free_all_objfiles): Use all_objfiles_safe.
15441 (objfile_purge_solibs): Likewise.
15442
aed57c53
TT
154432019-01-09 Tom Tromey <tom@tromey.com>
15444
15445 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15446 (expand_symtab_containing_pc, lookup_static_symbol)
15447 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15448 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15449 all_objfiles.
15450 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15451 * breakpoint.c (create_overlay_event_breakpoint)
15452 (create_longjmp_master_breakpoint)
15453 (create_std_terminate_master_breakpoint)
15454 (create_exception_master_breakpoint): Use all_objfiles.
15455 * linux-thread-db.c (try_thread_db_load_from_pdir)
15456 (has_libpthread): Use all_objfiles.
15457 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15458 * linespec.c (iterate_over_all_matching_symtabs)
15459 (search_minsyms_for_name): Use all_objfiles.
15460 * maint.c (maintenance_info_sections): Use all_objfiles.
15461 * main.c (captured_main_1): Use all_objfiles.
15462 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15463 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15464 * guile/scm-pretty-print.c
15465 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15466 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15467 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15468 (maintenance_print_msymbols): Use all_objfiles.
15469 * source.c (select_source_symtab): Use all_objfiles.
15470 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15471 * symfile.c (remove_symbol_file_command)
15472 (expand_symtabs_matching, map_symbol_filenames): Use
15473 all_objfiles.
15474 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15475 all_objfiles.
15476 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15477 * objc-lang.c (find_methods): Use all_objfiles.
15478 * objfiles.c (have_partial_symbols, have_full_symbols)
15479 (have_minimal_symbols, qsort_cmp)
15480 (default_iterate_over_objfiles_in_search_order): Use
15481 all_objfiles.
15482 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15483 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15484 (maintenance_check_psymtabs): Use all_objfiles.
15485 (ALL_PSYMTABS): Remove.
15486 * compile/compile-object-run.c (do_module_cleanup): Use
15487 all_objfiles.
15488 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15489 * cp-support.c (add_symbol_overload_list_qualified): Use
15490 all_objfiles.
15491 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15492 Use all_objfiles.
15493 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15494 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15495 all_objfiles.
15496 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15497 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15498 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15499 Uses all_objfiles.
15500 * solib.c (solib_read_symbols): Use all_objfiles
15501
99d89cde
TT
155022019-01-09 Tom Tromey <tom@tromey.com>
15503
15504 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15505 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15506 all_objfiles.
15507 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15508 * symmisc.c (print_symbol_bcache_statistics)
15509 (print_objfile_statistics, maintenance_print_objfiles)
15510 (maintenance_info_symtabs, maintenance_check_symtabs)
15511 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15512 all_objfiles.
15513 * source.c (forget_cached_source_info): Use all_objfiles.
15514 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15515 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15516 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15517 * objfiles.c (update_section_map): Use all_objfiles.
15518 (shared_objfile_contains_address_p): Likewise.
15519 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15520 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15521
21708325
TT
155222019-01-09 Tom Tromey <tom@tromey.com>
15523
15524 * common/next-iterator.h: New file.
15525 * objfiles.h (class all_objfiles): New.
15526 (struct objfile_iterator): New.
15527
669e09f6
PW
155282019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15529
15530 * NEWS: Move the description of the changed "frame", "select-frame",
15531 and "info frame" commands to the Changed commands section.
15532
041be526
SM
155332019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15534
15535 * gdbtypes.c (check_stub_method_group): Remove handling of old
15536 mangling schemes.
15537 * linespec.c (find_methods): Likewise.
15538 * stabsread.c (read_member_functions): Likewise.
15539 * valops.c (search_struct_method): Likewise.
15540 (value_struct_elt_for_reference): Likewise.
15541 * NEWS: Mention this change.
15542
0e2a2133
AB
155432019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15544
15545 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15546 print_source_lines.
15547 * source.c (print_source_lines_base): Update line number check.
15548 (print_source_lines): New function.
15549 (source_lines_range::source_lines_range): New function.
15550 * source.h (class source_lines_range): New class.
15551 (print_source_lines): New declaration.
15552
1055a3b4
PW
155532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15554
15555 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15556
cfeadda5
TT
155572019-01-08 Tom Tromey <tom@tromey.com>
15558 Simon Marchi <simon.marchi@ericsson.com>
15559
15560 PR gdb/24060
15561 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15562 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15563 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15564 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15565 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15566 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15567
583068ca
AB
155682019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15569
15570 * source.c (select_source_symtab): Move header comment to
15571 declaration in source.h.
15572 (forget_cached_source_info_for_objfile): Likewise.
15573 (forget_cached_source_info): Likewise.
15574 (identify_source_line): Likewise.
15575 * source.h (identify_source_line): Move declaration from symtab.h
15576 and add comment from source.c
15577 (print_source_lines): Likewise.
15578 (forget_cached_source_info_for_objfile): Likewise.
15579 (forget_cached_source_info): Likewise.
15580 (select_source_symtab): Likewise.
15581 (enum print_source_lines_flag): Move definition from symtab.h.
15582 * symtab.h (identify_source_line): Move declaration to source.h.
15583 (print_source_lines): Likewise.
15584 (forget_cached_source_info_for_objfile): Likewise.
15585 (forget_cached_source_info): Likewise.
15586 (select_source_symtab): Likewise.
15587 (enum print_source_lines_flag): Move definition to source.h.
15588 * tui/tui-hooks.c: Add 'source.h' include.
15589
ec98a4ad
AB
155902019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15591
15592 * source.c (print_source_lines_base): Handle requests to print
15593 reverse line number sequences, and guard against empty lines
15594 string.
15595
62ea19c1
AB
155962019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15597
15598 * source.c (print_source_lines_base): Fix skip of '\r' if next
15599 character is '\n'.
15600
9d30e1fd
TT
156012019-01-06 Tom Tromey <tom@tromey.com>
15602
15603 * c-exp.y (struct c_parse_state) <macro_original_text,
15604 expansion_obstack>: New member.
15605 (macro_original_text, expansion_obstack): Remove globals.
15606 (scan_macro_expansion, scanning_macro_expansion)
15607 (finished_macro_expansion): Update.
15608 (scan_macro_cleanup): Remove.
15609 (yylex, c_parse): Update.
15610
c65bac38
TT
156112019-01-06 Tom Tromey <tom@tromey.com>
15612
15613 * c-exp.y (struct c_parse_state) <strings>: New member.
15614 (operator_stoken): Update.
15615
02e12e38
TT
156162019-01-06 Tom Tromey <tom@tromey.com>
15617
15618 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15619 (union type_stack_elt) <typelist_val>: Now a pointer to
15620 std::vector.
15621 (type_stack_cleanup): Don't declare.
15622 (push_typelist): Update.
15623 * parse.c (pop_typelist): Return a std::vector.
15624 (push_typelist): Take a std::vector.
15625 (follow_types): Update. Do not free args.
15626 (type_stack_cleanup): Remove.
15627 * c-exp.y (struct c_parse_state): New.
15628 (cpstate): New global.
15629 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15630 (nonempty_typelist): Update.
15631 (func_mod): Create a new vector.
15632 (c_parse): Create a c_parse_state.
15633 (check_parameter_typelist): Do not delete params.
15634 (function_method): Update. Do not delete type_list.
15635
f097f5ad
TT
156362019-01-06 Tom Tromey <tom@tromey.com>
15637
15638 PR gdb/28155:
15639 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15640 check_typedef.
15641 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15642 (print_return_value): Likewise.
15643
d2adf9f1
TT
156442019-01-05 Tom Tromey <tom@tromey.com>
15645
15646 * contrib/cleanup_check.py: Remove.
15647 * contrib/gcc-with-excheck: Remove.
15648 * contrib/exsummary.py: Remove.
15649 * contrib/excheck.py: Remove.
15650
2eab46b1
JB
156512019-01-05 Joel Brobecker <brobecker@adacore.com>
15652
15653 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15654 NULL. Initialize tpprev to NULL instead of assigning it
15655 to NULL on the next statement.
15656 * windows-nat.c (windows_delete_thread): Remove check for
15657 main_thread_id before printing thread exit notifications.
15658 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15659 Remove thread ID check against main_thread_id.
15660 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15661 windows_delete_thread.
15662 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15663
48c5e7e2
TT
156642019-01-04 Tom Tromey <tom@tromey.com>
15665
15666 * compile/compile.c (_initialize_compile): Use upper case for
15667 metasyntactic variables.
15668 * symmisc.c (_initialize_symmisc): Use upper case for
15669 metasyntactic variables.
15670 * psymtab.c (_initialize_psymtab): Use upper case for
15671 metasyntactic variables.
15672 * demangle.c (demangle_command): Use upper case for metasyntactic
15673 variables.
15674 (_initialize_demangler): Likewise.
15675 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15676 variables.
15677
986041cd
TT
156782019-01-03 Tom Tromey <tom@tromey.com>
15679
15680 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15681
7c711119
TT
156822019-01-03 Tom Tromey <tom@tromey.com>
15683
15684 * python/py-symtab.c (salpy_str): Update.
15685 (struct salpy_sal_object) <symtab>: Now a PyObject.
15686 (salpy_dealloc): Update.
15687 (del_objfile_sal): Use gdbpy_ref.
15688
1b20edf0
TT
156892019-01-03 Tom Tromey <tom@tromey.com>
15690
15691 * python/py-type.c (convert_field): Use new_reference. Return
15692 gdbpy_ref.
15693 (make_fielditem): Return gdbpy_ref.
15694 (typy_fields): Update.
15695 (typy_getitem): Update.
15696 (field_name): Return gdbpy_ref. Use new_reference.
15697 (typy_iterator_iternext): Update.
15698
ea41325b
TT
156992019-01-03 Tom Tromey <tom@tromey.com>
15700
15701 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15702
2a3c71d6
TT
157032019-01-03 Tom Tromey <tom@tromey.com>
15704
15705 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15706 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15707 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15708 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15709 (pspy_set_type_printers): Likewise.
15710 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15711 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15712 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15713 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15714 (objfpy_set_type_printers): Likewise.
15715
5c329e6a
TT
157162019-01-03 Tom Tromey <tom@tromey.com>
15717
15718 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15719 (gdbpy_print_stack): Use gdbpy_err_fetch.
15720 * python/python-internal.h (class gdbpy_err_fetch): New class.
15721 (class gdbpy_enter) <m_error_type, m_error_value,
15722 m_error_traceback>: Remove.
15723 <m_error>: New member.
15724 (gdbpy_exception_to_string): Don't declare.
15725 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15726 * python/py-value.c (convert_value_from_python): Use
15727 gdbpy_err_fetch.
15728 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15729 gdbpy_exception_to_string.
15730 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15731 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15732 gdbpy_err_fetch.
15733
169bb27b
AB
157342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15735
15736 * linux-nat.c (delete_lwp_cleanup): Delete.
15737 (struct lwp_deleter): New struct.
15738 (lwp_info_up): New typedef.
15739 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15740 lwp_info_up.
15741
a07c8880
AB
157422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15743
15744 * linux-fork.c (class scoped_switch_fork_info): New class.
15745 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15746
26089c49
AB
157472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15748
15749 * valops.c (find_overload_match): Remove use of null_cleanup, and
15750 calls to do_cleanups.
15751
06d3e5b0
AB
157522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15753
15754 * compile/compile-cplus-types.c
15755 (compile_cplus_instance::decl_name): Handle changes to
15756 cp_func_name.
15757 * cp-support.c (cp_func_name): Update header comment, update
15758 return type.
15759 * cp-support.h (cp_func_name): Update return type in declaration.
15760 * valops.c (find_overload_match): Move temp_func local to top
15761 level of function and change its type. Use temp_func to hold and
15762 delete temporary string obtained from cp_func_name.
15763
66644cd3
AB
157642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15765
15766 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15767 gdb::char_vector, remove cleanup, and update uses of `msg`.
15768
592d8c0a
JW
157692019-01-03 Jim Wilson <jimw@sifive.com>
15770
15771 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15772
c55d06ec
TT
157732019-01-02 Tom Tromey <tom@tromey.com>
15774
15775 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15776 (tdesc_parse_xml): Remove cleanups.
15777 * target-descriptions.h (make_cleanup_free_target_description):
15778 Don't declare.
15779 (target_desc_deleter): New struct.
15780 (target_desc_up): New typedef.
15781 * target-descriptions.c (target_desc_deleter::operator()): Rename
15782 from free_target_description.
15783 (make_cleanup_free_target_description): Remove.
15784
3a6ae42d
TT
157852019-01-02 Tom Tromey <tom@tromey.com>
15786
15787 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15788 constructor, destructor.
15789 (linespec_parser): Remove typedef.
15790 (~linespec_parser): Rename from linespec_parser_delete.
15791 (linespec_lex_to_end, linespec_complete_label)
15792 (linespec_complete): Update.
15793 (decode_line_full): Remove cleanups.
15794 (decode_line_1): Update.
15795
61fd3e73
TT
157962019-01-02 Tom Tromey <tom@tromey.com>
15797
15798 * python/python-internal.h (inferior_to_inferior_object): Change
15799 return type.
15800 * python/py-exitedevent.c (create_exited_event_object): Update.
15801 * python/py-inferior.c (inferior_to_inferior_object): Return
15802 gdbpy_ref.
15803 (python_new_inferior, python_inferior_deleted)
15804 (thread_to_thread_object, delete_thread_object)
15805 (build_inferior_list, gdbpy_selected_inferior): Update.
15806 * python/py-infthread.c (create_thread_object): Update. Also fail
15807 if inferior_to_inferior_object fails.
15808
d20172fc
SM
158092019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15810
15811 * inferior.h (class inferior) <displaced_step_state>: New field.
15812 * infrun.h (struct displaced_step_state): Move here from
15813 infrun.c. Initialize fields, add constructor.
15814 <inf>: Remove field.
15815 <reset>: New method.
15816 * infrun.c (struct displaced_step_inferior_state): Move to
15817 infrun.h.
15818 (displaced_step_inferior_states): Remove.
15819 (get_displaced_stepping_state): Adust.
15820 (displaced_step_in_progress_any_inferior): Adjust.
15821 (displaced_step_in_progress_thread): Adjust.
15822 (displaced_step_in_progress): Adjust.
15823 (add_displaced_stepping_state): Remove.
15824 (get_displaced_step_closure_by_addr): Adjust.
15825 (remove_displaced_stepping_state): Remove.
15826 (infrun_inferior_exit): Call displaced_step_state.reset.
15827 (use_displaced_stepping): Don't check for NULL.
15828 (displaced_step_prepare_throw): Call
15829 get_displaced_stepping_state.
15830 (displaced_step_fixup): Don't check for NULL.
15831 (prepare_for_detach): Don't check for NULL.
15832
e3319240
PW
158332019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15834
15835 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15836 in case of call that did not complete.
15837
5d36dfb9
AU
158382019-01-02 Andrey Utkin <autkin@undo.io>
15839
15840 * symfile.c (find_separate_debug_file): Fix search of debug files for
15841 remote debuggee.
15842
8833fbf0
TT
158432019-01-02 Tom Tromey <tom@tromey.com>
15844
15845 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15846 indentation.
15847 * python/py-frame.c (frapy_older): Remove cast.
15848 (frapy_newer): Likewise.
15849 * python/py-breakpoint.c (local_setattro): Remove cast.
15850 * python/py-arch.c (archpy_name): Remove local variable.
15851 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15852
4ada3dfd
JB
158532019-01-02 Joel Brobecker <brobecker@adacore.com>
15854
15855 * unittests/basic_string_view/element_access/char/empty.cc:
15856 Fix year range in copyright header.
15857
113b7b81
AB
158582019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15859
15860 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15861 Delete.
15862 <operator==>: Update with for removed field.
15863 <hash>: Likewise.
15864 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15865 <isa_features>: ...this.
15866 <abi_features>: New field.
15867 (riscv_isa_flen): Update comment.
15868 (riscv_abi_xlen): New declaration.
15869 (riscv_abi_flen): New declaration.
15870 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15871 isa_features.
15872 (riscv_abi_xlen): New function.
15873 (riscv_isa_flen): Update to get answer from isa_features.
15874 (riscv_abi_flen): New function.
15875 (riscv_has_fp_abi): Update to get answer from abi_features.
15876 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15877 xlen and flen.
15878 (riscv_call_info) <xlen, flen>: Update comment.
15879 (riscv_call_arg_struct): Remove invalid assertions
15880 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15881 is removed.
15882 (riscv_gdbarch_init): Gather isa features and abi features
15883 separately, ensure both match on the gdbarch when reusing an old
15884 gdbarch. Relax an error check to allow 32-bit abi float to run on
15885 a target with 64-bit float hardware.
15886
b18ca514
PW
158872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15888
15889 * source.c (search_command_helper): Stop reverse search
15890 when line 1 has been searched.
15891
ec70d8db
PW
158922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15893
15894 * record-full.c (record_full_base_target::close): Rewrite
15895 record_full_core_buf_list free logic.
15896
5b38f9c1
PW
158972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15898
15899 * break-catch-syscall.c (print_one_catch_syscall): xfree
15900 the last text.
15901
66d91b39
JB
159022019-01-01 Joel Brobecker <brobecker@adacore.com>
15903
15904 * top.c (print_gdb_version): Update Copyright year in version
15905 message.
15906
42a4f53d
JB
159072019-01-01 Joel Brobecker <brobecker@adacore.com>
15908
15909 Update copyright year range in all GDB files.
15910
7e955d83 159112019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15912
5bbd631d 15913 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15914
5bbd631d 15915For older changes see ChangeLog-2018.
c906108c
SS
15916\f
15917Local Variables:
15918mode: change-log
15919left-margin: 8
15920fill-column: 74
15921version-control: never
57da7796 15922coding: utf-8
c906108c 15923End:
5bbd631d 15924
This page took 3.493765 seconds and 4 git commands to generate.