Replace SYMBOL_SET_LINKAGE_NAME with a member function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43678b0a
CB
12019-11-27 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
4 with sym->set_linkage_name.
5 * coffread.c (coff_read_enum_type): Likewise.
6 * mdebugread.c (parse_symbol): Likewise.
7 * stabsread.c (patch_block_stabs): Likewise.
8 (define_symbol): Likewise.
9 (read_enum_type): Likewise.
10 (common_block_end): Likewise.
11 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
12 function.
13 (SYMBOL_SET_LINKAGE_NAME): Remove.
14 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
15 with sym->set_linkage_name.
16
db5960b4
AB
172019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
20 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
21 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
22 * NEWS: Mention new MI command.
23
7dc42066
AB
242019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
27 '-symbol-info-types', and '-symbol-info-variables'.
28 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
29 (mi_cmd_symbol_info_types): Declare.
30 (mi_cmd_symbol_info_variables): Declare.
31 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
32 (output_debug_symbol): New function.
33 (output_nondebug_symbol): New function.
34 (mi_symbol_info): New function.
35 (mi_info_functions_or_variables): New function.
36 (mi_cmd_symbol_info_functions): New function.
37 (mi_cmd_symbol_info_types): New function.
38 (mi_cmd_symbol_info_variables): New function.
39 * NEWS: Mention new commands.
40
5f512a7d
AB
412019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * symtab.c (symbol_to_info_string): New function, most content
44 moved from print_symbol_info, but updated to return a std::string.
45 (print_symbol_info): Update to use symbol_to_info_string and print
46 returned string.
47 * symtab.h (symbol_to_info_string): Declare new function.
48
470c0b1c
AB
492019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * python/python.c (gdbpy_rbreak): Convert to using
52 global_symbol_searcher.
53 * symtab.c (file_matches): Convert return type to bool, change
54 file list to std::vector, update header comment.
55 (search_symbols): Rename to...
56 (global_symbol_searcher::search): ...this and update now its
57 a member function of global_symbol_searcher. Take account of the
58 changes to file_matches.
59 (symtab_symbol_info): Convert to using global_symbol_searcher.
60 (rbreak_command): Likewise.
61 (search_module_symbols): Likewise.
62 * symtab.h (enum symbol_search): Update comment.
63 (search_symbols): Remove declaration.
64 (class global_symbol_searcher): New class.
65
57357d9d
TT
662019-11-26 Tom Tromey <tromey@adacore.com>
67
68 * cp-support.c (_initialize_cp_support): Conditionally initialize
69 gdb_demangle_attempt_core_dump.
70
3ea16160
TT
712019-11-26 Tom Tromey <tom@tromey.com>
72
73 * python/py-function.c (fnpy_init): Update.
74 * value.h (add_internal_function): Adjust declaration.
75 * value.c (function_destroyer): Remove.
76 (do_add_internal_function): Don't set destroyer or copy name.
77 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
78 Set name_allocated.
79 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
80 (cmdpy_init): Set name_allocated.
81 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
82 member.
83 (~cmd_list_element): Free "name" if needed.
84
1a6d41c6
TT
852019-11-26 Tom Tromey <tom@tromey.com>
86
87 * value.h (add_internal_function): Add new overload. Move
88 documentation from value.h.
89 * value.c (do_add_internal_function): New function.
90 (add_internal_function): Use it. Add new overload.
91 (function_destroyer): Don't free doc.
92 * python/py-function.c (fnpy_init): Update.
93
8318f3c3
TT
942019-11-26 Tom Tromey <tom@tromey.com>
95
96 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
97 (cmdpy_init): Set "doc_allocated".
98
4da8c3a8
TT
992019-11-26 Tom Tromey <tom@tromey.com>
100
101 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
102 name of worker thread.
103 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
104 pthread_setname_np.
105 * configure, config.in: Rebuild.
106
971db5e2
TT
1072019-11-26 Tom Tromey <tom@tromey.com>
108
109 * python/python.c (class gdbpy_gil): New.
110 (struct gdbpy_event): Add constructor, destructor, operator().
111 (gdbpy_post_event): Use run_on_main_thread.
112 (gdbpy_initialize_events): Remove.
113 (do_start_initialization): Update.
114
22138db6
TT
1152019-11-26 Tom Tromey <tom@tromey.com>
116
117 * NEWS: Add entry.
118 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
119 commands. Call update_thread_pool_size.
120 (update_thread_pool_size, maintenance_set_worker_threads): New
121 functions.
122 (n_worker_threads): New global.
123
d55c9a68
TT
1242019-11-26 Christian Biesinger <cbiesinger@google.com>
125 Tom Tromey <tom@tromey.com>
126
127 * minsyms.c (minimal_symbol_reader::install): Use
128 parallel_for_each.
129 * gdbsupport/parallel-for.h: New file.
130 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
131
a0b57563
CB
1322019-11-26 Christian Biesinger <cbiesinger@google.com>
133 Tom Tromey <tom@tromey.com>
134
135 * gdbsupport/thread-pool.h: New file.
136 * gdbsupport/thread-pool.c: New file.
137 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
138 (HFILES_NO_SRCDIR): Add thread-pool.h.
139
3b3978bc
TT
1402019-11-26 Tom Tromey <tom@tromey.com>
141
142 * event-top.h (thread_local_segv_handler): Declare.
143 * event-top.c (thread_local_segv_handler): New global.
144 (install_handle_sigsegv, handle_sigsegv): New functions.
145 (async_init_signals): Install SIGSEGV handler.
146 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
147 thread-local.
148 (report_failed_demangle): New function.
149 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
150 handler-setting code, instead use segv_handler. Run warning code
151 on main thread.
152
9411c49e
TT
1532019-11-26 Tom Tromey <tom@tromey.com>
154
155 * run-on-main-thread.c: New file.
156 * run-on-main-thread.h: New file.
157 * unittests/main-thread-selftests.c: New file.
158 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
159 main-thread-selftests.c.
160 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
161 (COMMON_SFILES): Add run-on-main-thread.c.
162
c3efb965
TT
1632019-11-26 Tom Tromey <tom@tromey.com>
164
165 * main.c (setup_alternate_signal_stack): Remove.
166 (captured_main_1): Use gdb::alternate_signal_stack.
167 * gdbsupport/alt-stack.h: New file.
168
21987b9c
TT
1692019-11-26 Tom Tromey <tom@tromey.com>
170
171 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
172 Remove comment.
173 (save_original_signals_state, restore_original_signals_state): Use
174 gdb_sigmask.
175 * linux-nat.c (block_child_signals, restore_child_signals_mask)
176 (_initialize_linux_nat): Use gdb_sigmask.
177 * guile/guile.c (_initialize_guile): Use block_signals.
178 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
179 * gdbsupport/gdb-sigmask.h: New file.
180 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
181 * cp-support.c (gdb_demangle): Use gdb_sigmask.
182 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
183 pthread_sigmask.
184 * configure, config.in: Rebuild.
185 * gdbsupport/block-signals.h: New file.
186
5e030278
TT
1872019-11-26 Tom Tromey <tom@tromey.com>
188
189 * acinclude.m4: Include ax_pthread.m4.
190 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
191 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
192 (CLIBS): Use PTHREAD_LIBS.
193 (aclocal_m4_deps): Add ax_pthread.m4.
194 * config.in, configure: Rebuild.
195 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
196
5a79c107
TT
1972019-11-26 Tom Tromey <tom@tromey.com>
198
199 * symtab.h (struct minimal_symbol) <name_set>: New member.
200 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
201 Don't call symbol_set_names.
202 (minimal_symbol_reader::install): Call symbol_set_names.
203
aa369509
PW
2042019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
205
206 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
207 restore_active_ext_lang, as GIL is needed for (indirectly)
208 called PyOS_InterruptOccurred.
209
cadc9cb8
SM
2102019-11-26 Simon Marchi <simon.marchi@efficios.com>
211
212 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
213 definition.
214
d04afd58
SM
2152019-11-26 Simon Marchi <simon.marchi@efficios.com>
216
217 * remote-sim.c (simulator_command): Make static, remove
218 declaration.
219
dd694d77
SM
2202019-11-26 Simon Marchi <simon.marchi@efficios.com>
221
222 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
223 static.
224 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
225 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
226 (main): Likewise.
227 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
228 (main): Likewise.
229 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
230 (main): Likewise.
231 * unittests/basic_string_view/element_access/char/1.cc (test01):
232 Likewise.
233 (main): Likewise.
234 * unittests/basic_string_view/element_access/char/empty.cc (main):
235 Likewise.
236 * unittests/basic_string_view/element_access/char/front_back.cc
237 (test01): Likewise.
238 (main): Likewise.
239 * unittests/basic_string_view/inserters/char/2.cc (test05):
240 Likewise.
241 (main): Likewise.
242 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
243 (test01): Likewise.
244 (main): Likewise.
245 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
246 (test01): Likewise.
247 (main): Likewise.
248 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
249 Likewise.
250 * unittests/basic_string_view/operations/compare/char/1.cc
251 (test01): Likewise.
252 (main): Likewise.
253 * unittests/basic_string_view/operations/compare/char/13650.cc
254 (test01): Likewise.
255 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
256 Likewise.
257 (main): Likewise.
258 * unittests/basic_string_view/operations/data/char/1.cc (test01):
259 Likewise.
260 (main): Likewise.
261 * unittests/basic_string_view/operations/find/char/1.cc (test01):
262 Likewise.
263 (main): Likewise.
264 * unittests/basic_string_view/operations/find/char/2.cc (test02):
265 Likewise.
266 (main): Likewise.
267 * unittests/basic_string_view/operations/find/char/3.cc (test03):
268 Likewise.
269 (main): Likewise.
270 * unittests/basic_string_view/operations/find/char/4.cc (main):
271 Likewise.
272 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
273 Likewise.
274 (main): Likewise.
275 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
276 Likewise.
277 (main): Likewise.
278 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
279 Likewise.
280 (main): Likewise.
281 * unittests/basic_string_view/operations/substr/char/1.cc
282 (test01): Likewise.
283 (main): Likewise.
284 * unittests/basic_string_view/operators/char/2.cc (main):
285 Likewise.
286 * unittests/optional/assignment/1.cc (test): Likewise.
287 * unittests/optional/assignment/2.cc (test): Likewise.
288 * unittests/optional/assignment/3.cc (test): Likewise.
289 * unittests/optional/assignment/4.cc (test): Likewise.
290 * unittests/optional/assignment/5.cc (test): Likewise.
291 * unittests/optional/assignment/6.cc (test): Likewise.
292 * unittests/optional/assignment/7.cc (test): Likewise.
293 * unittests/optional/cons/copy.cc (test): Likewise.
294 * unittests/optional/cons/default.cc (test): Likewise.
295 * unittests/optional/cons/move.cc (test): Likewise.
296 * unittests/optional/cons/value.cc (test): Likewise.
297 * unittests/optional/in_place.cc (test): Likewise.
298 * unittests/optional/observers/1.cc (test): Likewise.
299 * unittests/optional/observers/2.cc (test): Likewise.
300
3b5c1d49
SM
3012019-11-26 Simon Marchi <simon.marchi@efficios.com>
302
303 * tui-win.h (tui_set_var_cmd): Remove.
304 * tui-win.c (tui_set_var_cmd): Make static.
305
adce99fe
SM
3062019-11-26 Simon Marchi <simon.marchi@efficios.com>
307
308 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
309 rbreak_command_wrapper): Remove.
310 * symtab.c (rbreak_command_wrapper): Remove.
311
fe3adccf
SM
3122019-11-26 Simon Marchi <simon.marchi@efficios.com>
313
314 * inferior.h (info_terminal_command): Remove declaration.
315 * inflow.c (info_terminal_command): Make static.
316
b926335f
SM
3172019-11-26 Simon Marchi <simon.marchi@efficios.com>
318
319 * inferior.c (exit_inferior_silent): Remove.
320
b62f6f54
SM
3212019-11-26 Simon Marchi <simon.marchi@efficios.com>
322
323 * dictionary.c (dict_empty, mdict_empty): Remove.
324 * dictionary.c (mdict_empty): Remove.
325
cb8c24b6
SM
3262019-11-26 Simon Marchi <simon.marchi@efficios.com>
327
328 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
329 (arc_insn_get_memory_offset): Likewise.
330 (arc_insn_dump): Likewise.
331 * cp-support.c (test_cp_symbol_name_matches): Likewise.
332 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
333 * dictionary.c (dict_iterator_next): Likewise.
334 (dict_iter_match_first): Likewise.
335 (dict_iter_match_next): Likewise.
336 * f-lang.c (evaluate_subexp_f): Likewise.
337 * hppa-tdep.c (hppa_read_pc): Likewise.
338 * i386-tdep.c (i386_floatformat_for_type): Likewise.
339 * parse.c (write_exp_elt_msym): Likewise.
340 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
341 * remote.c (remote_packet_size): Likewise.
342 (remote_notif_stop_parse): Likewise.
343 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
344 * s12z-tdep.c (s12z_disassemble_info): Likewise.
345 * source.c (prepare_path_for_appending): Likewise.
346 * sparc64-linux-tdep.c
347 (sparc64_linux_handle_segmentation_fault); Likewise.
348 * stack.c (frame_selection_by_function_completer): Likewise.
349
781597ff
SM
3502019-11-26 Simon Marchi <simon.marchi@efficios.com>
351
352 * completer.c (set_gdb_completion_word_break_characters):
353 Remove.
354
23baa4cc
SM
3552019-11-26 Simon Marchi <simon.marchi@efficios.com>
356
357 * dwarf-index-write.c: Include dwarf-index-write.h.
358 * mi/mi-interp.c: Include mi/mi-interp.h.
359
23767560
SM
3602019-11-26 Simon Marchi <simon.marchi@efficios.com>
361
362 * aarch32-tdep.c: Include aarch32-tdep.h.
363 * aarch32-tdep.h: Forward-declare struct target_desc.
364
6d91ce9a
CB
3652019-11-26 Christian Biesinger <cbiesinger@google.com>
366
367 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
368 strerror.
369 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
370 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
371
3cf2f237
TV
3722019-11-25 Tom de Vries <tdevries@suse.de>
373
374 * contrib/words.sh: Add -c option.
375
5b89c67a
CB
3762019-11-25 Christian Biesinger <cbiesinger@google.com>
377
378 * solib.c (solib_find_1): Change int to bool.
379 (exec_file_find): Change int to bool.
380 (solib_find): Change int to bool.
381 (solib_read_symbols): Change int to bool.
382 (solib_used): Change int to bool.
383 (solib_add): Change int to bool.
384 (info_sharedlibrary_command): Change int to bool.
385 (solib_contains_address_p): Change int to bool.
386 (solib_keep_data_in_core): Change int to bool.
387 (in_solib_dynsym_resolve_code): Change int to bool.
388 (reload_shared_libraries_1): Change int to bool.
389 (gdb_sysroot_changed): Change int to bool.
390 * solib.h (solib_read_symbols): Change int to bool.
391 (solib_contains_address_p): Change int to bool.
392 (solib_keep_data_in_core): Change int to bool.
393 (in_solib_dynsym_resolve_code): Change int to bool.
394 (libpthread_name_p): Change int to bool.
395
6cc8564b
LM
3962019-11-25 Luis Machado <luis.machado@linaro.org>
397
398 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
399 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
400 (remote_packet_max_chars): New static global.
401 (show_remote_packet_max_chars): New function.
402 (remote_target::putpkt_binary): Adjust to use new
403 remote_packet_max_chars option.
404 (remote_target::getpkt_or_notif_sane_1): Likewise.
405 (_initialize_remote): Register new remote-packet-max-chars option.
406
a7cdaa91
SM
4072019-11-24 Simon Marchi <simon.marchi@efficios.com>
408
409 * m68k-linux-nat.c: Include gdbarch.h.
410
26abc753
TT
4112019-11-24 Tom Tromey <tom@tromey.com>
412
413 * symfile.c (read_symbols): Update.
414 * psymtab.c (require_partial_symbols): Change type of "verbose" to
415 bool.
416 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
417 (psym_lookup_symbol, psym_find_last_source_symtab)
418 (psym_forget_cached_source_info, psym_print_stats)
419 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
420 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
421 (psym_map_matching_symbols, psym_expand_symtabs_matching)
422 (psym_find_compunit_symtab_by_address)
423 (maintenance_print_psymbols, maintenance_info_psymtabs)
424 (maintenance_check_psymtabs): Update.
425 * psymtab.h (require_partial_symbols): Change type of "verbose" to
426 bool.
427
012fc909
TT
4282019-11-22 Tom Tromey <tom@tromey.com>
429
430 * observable.h: Update comments.
431
c83d8d32
TT
4322019-11-22 Tom Tromey <tromey@adacore.com>
433
434 * ada-tasks.c (ada_task_is_alive): Make parameter const.
435 (print_ada_task_info): Don't try to fetch thread id if task is not
436 alive.
437
987012b8
CB
4382019-11-22 Christian Biesinger <cbiesinger@google.com>
439
440 * ada-exp.y: Update.
441 * ada-lang.c (sort_choices): Update.
442 (ada_print_symbol_signature): Update.
443 (resolve_subexp): Update.
444 (ada_parse_renaming): Update.
445 (ada_read_renaming_var_value): Update.
446 (lesseq_defined_than): Update.
447 (remove_extra_symbols): Update.
448 (remove_irrelevant_renamings): Update.
449 (ada_add_block_symbols): Update.
450 (ada_collect_symbol_completion_matches): Update.
451 (ada_is_renaming_symbol): Update.
452 (aggregate_assign_from_choices): Update.
453 (ada_evaluate_subexp): Update.
454 (ada_has_this_exception_support): Update.
455 (ada_is_non_standard_exception_sym): Update.
456 (ada_add_exceptions_from_frame): Update.
457 (ada_add_global_exceptions): Update.
458 (ada_print_subexp): Update.
459 * ax-gdb.c (gen_var_ref): Update.
460 (gen_maybe_namespace_elt): Update.
461 (gen_expr_for_cast): Update.
462 (gen_expr): Update.
463 * block.h: Update.
464 * blockframe.c (find_pc_partial_function): Update.
465 * breakpoint.c (print_breakpoint_location): Update.
466 (update_static_tracepoint): Update.
467 * btrace.c (ftrace_print_function_name): Update.
468 (ftrace_function_switched): Update.
469 * buildsym.c (find_symbol_in_list): Update.
470 * c-exp.y: Update.
471 * c-typeprint.c (c_print_typedef): Update.
472 (c_type_print_template_args): Update.
473 * cli/cli-cmds.c (edit_command): Update.
474 (list_command): Update.
475 (print_sal_location): Update.
476 * coffread.c (patch_opaque_types): Update.
477 (process_coff_symbol): Update.
478 (coff_read_enum_type): Update.
479 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
480 (convert_one_symbol): Update.
481 (hash_symname): Update.
482 (eq_symname): Update.
483 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
484 * compile/compile-cplus-types.c (debug_print_scope): Update.
485 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
486 * compile/compile-object-load.c (get_out_value_type): Update.
487 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
488 (search_symbol_list): Update.
489 (cp_lookup_symbol_imports_or_template): Update.
490 * cp-support.c (overload_list_add_symbol): Update.
491 * ctfread.c (psymtab_to_symtab): Update.
492 * dbxread.c (cp_set_block_scope): Update.
493 * dictionary.c (iter_match_first_hashed): Update.
494 (iter_match_next_hashed): Update.
495 (insert_symbol_hashed): Update.
496 (iter_match_next_linear): Update.
497 * dictionary.h: Update.
498 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
499 (locexpr_describe_location_piece): Update.
500 (locexpr_describe_location_1): Update.
501 (locexpr_generate_c_location): Update.
502 (loclist_describe_location): Update.
503 (loclist_generate_c_location): Update.
504 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
505 (read_func_scope): Update.
506 (process_enumeration_scope): Update.
507 (new_symbol): Update.
508 (dwarf2_const_value): Update.
509 (dwarf2_symbol_mark_computed): Update.
510 * eval.c (evaluate_funcall): Update.
511 (evaluate_subexp_standard): Update.
512 * expprint.c (print_subexp_standard): Update.
513 (dump_subexp_body_standard): Update.
514 * f-valprint.c (info_common_command_for_block): Update.
515 * findvar.c (get_hosting_frame): Update.
516 (default_read_var_value): Update.
517 * go-lang.c (go_symbol_package_name): Update.
518 * guile/scm-block.c (bkscm_print_block_smob): Update.
519 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
520 (gdbscm_symbol_name): Update.
521 (gdbscm_symbol_linkage_name): Update.
522 (gdbscm_symbol_print_name): Update.
523 * infcall.c (get_function_name): Update.
524 * infcmd.c (jump_command): Update.
525 (finish_command): Update.
526 * infrun.c (insert_exception_resume_breakpoint): Update.
527 * linespec.c (canonicalize_linespec): Update.
528 (create_sals_line_offset): Update.
529 (convert_linespec_to_sals): Update.
530 (complete_label): Update.
531 (find_label_symbols_in_block): Update.
532 * m2-typeprint.c (m2_print_typedef): Update.
533 * mdebugread.c (mdebug_reg_to_regnum): Update.
534 (parse_symbol): Update.
535 (mylookup_symbol): Update.
536 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
537 (list_args_or_locals): Update.
538 * objc-lang.c (compare_selectors): Update.
539 (info_selectors_command): Update.
540 (compare_classes): Update.
541 (info_classes_command): Update.
542 (find_imps): Update.
543 * p-typeprint.c (pascal_print_typedef): Update.
544 * printcmd.c (build_address_symbolic): Update.
545 (info_address_command): Update.
546 (print_variable_and_value): Update.
547 * python/py-framefilter.c (extract_sym): Update.
548 (py_print_single_arg): Update.
549 * python/py-symbol.c (sympy_str): Update.
550 (sympy_get_name): Update.
551 (sympy_get_linkage_name): Update.
552 * python/python.c (gdbpy_rbreak): Update.
553 * record-btrace.c (btrace_get_bfun_name): Update.
554 (btrace_call_history): Update.
555 * rust-lang.c (rust_print_typedef): Update.
556 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
557 * stabsread.c (stab_reg_to_regnum): Update.
558 (define_symbol): Update.
559 (read_enum_type): Update.
560 (common_block_end): Update.
561 (cleanup_undefined_types_1): Update.
562 (scan_file_globals): Update.
563 * stack.c (print_frame_arg): Update.
564 (print_frame_args): Update.
565 (find_frame_funname): Update.
566 (info_frame_command_core): Update.
567 (iterate_over_block_locals): Update.
568 (print_block_frame_labels): Update.
569 (do_print_variable_and_value): Update.
570 (iterate_over_block_arg_vars): Update.
571 (return_command): Update.
572 * symmisc.c (dump_symtab_1): Update.
573 (print_symbol): Update.
574 * symtab.c (eq_symbol_entry): Update.
575 (symbol_cache_dump): Update.
576 (lookup_language_this): Update.
577 (find_pc_sect_line): Update.
578 (skip_prologue_sal): Update.
579 (symbol_search::compare_search_syms): Update.
580 (treg_matches_sym_type_name): Update.
581 (search_symbols): Update.
582 (print_symbol_info): Update.
583 (rbreak_command): Update.
584 (completion_list_add_symbol): Update.
585 (find_gnu_ifunc): Update.
586 (get_symbol_address): Update.
587 (search_module_symbols): Update.
588 (info_module_subcommand): Update.
589 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
590 (SYMBOL_LINKAGE_NAME): Remove.
591 (SYMBOL_DEMANGLED_NAME): Remove.
592 (SYMBOL_PRINT_NAME): Remove.
593 (SYMBOL_SEARCH_NAME): Remove.
594 * tracepoint.c (set_traceframe_context): Update.
595 (validate_actionline): Update.
596 (collection_list::collect_symbol): Update.
597 (encode_actions_1): Update.
598 (info_scope_command): Update.
599 (print_one_static_tracepoint_marker): Update.
600 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
601 * valops.c (address_of_variable): Update.
602 (find_overload_match): Update.
603 (find_oload_champ): Update.
604
c9d95fa3
CB
6052019-11-22 Christian Biesinger <cbiesinger@google.com>
606
607 * ada-lang.c (ada_lookup_simple_minsym): Update.
608 (ada_collect_symbol_completion_matches): Update.
609 * ada-tasks.c (read_atcb): Update.
610 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
611 (amd64_windows_skip_trampoline_code): Update.
612 * arm-tdep.c (skip_prologue_function): Update.
613 (arm_skip_stack_protector): Update.
614 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
615 (arm_wince_skip_main_prologue): Update.
616 * ax-gdb.c (gen_expr): Update.
617 * block.c (call_site_for_pc): Update.
618 * blockframe.c (find_pc_partial_function): Update.
619 * breakpoint.c (set_breakpoint_location_function): Update.
620 * btrace.c (ftrace_print_function_name): Update.
621 (ftrace_function_switched): Update.
622 * c-valprint.c (print_unpacked_pointer): Update.
623 * coffread.c (coff_symfile_read): Update.
624 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
625 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
626 * dwarf-index-write.c (write_psymbols): Update.
627 * dwarf2loc.c (call_site_to_target_addr): Update.
628 (func_verify_no_selftailcall): Update.
629 (tailcall_dump): Update.
630 (call_site_find_chain_1): Update.
631 (dwarf_expr_reg_to_entry_parameter): Update.
632 * elfread.c (elf_gnu_ifunc_record_cache): Update.
633 * eval.c (evaluate_funcall): Update.
634 (evaluate_subexp_standard): Update.
635 (evaluate_subexp_for_sizeof): Update.
636 * expprint.c (print_subexp_standard): Update.
637 (dump_subexp_body_standard): Update.
638 * frame.c (get_prev_frame_always_1): Update.
639 * frv-tdep.c (frv_skip_main_prologue): Update.
640 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
641 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
642 (gnuv3_get_typename_from_type_info): Update.
643 (gnuv3_skip_trampoline): Update.
644 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
645 * i386-tdep.c (i386_skip_main_prologue): Update.
646 (i386_pe_skip_trampoline_code): Update.
647 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
648 * infcall.c (get_function_name): Update.
649 * linespec.c (minsym_found): Update.
650 * linux-fork.c (info_checkpoints_command): Update.
651 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
652 (m32c_m16c_pointer_to_address): Update.
653 * maint.c (maintenance_translate_address): Update.
654 * minsyms.c (add_minsym_to_hash_table): Update.
655 (add_minsym_to_demangled_hash_table): Update.
656 (lookup_minimal_symbol_mangled): Update.
657 (lookup_minimal_symbol_demangled): Update.
658 (lookup_minimal_symbol_linkage): Update.
659 (lookup_minimal_symbol_text): Update.
660 (lookup_minimal_symbol_by_pc_name): Update.
661 (minimal_symbol_is_less_than): Update.
662 (compact_minimal_symbols): Update.
663 (build_minimal_symbol_hash_tables): Update.
664 (find_solib_trampoline_target): Update.
665 * mips-tdep.c (mips_stub_frame_sniffer): Update.
666 (mips_skip_pic_trampoline_code): Update.
667 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
668 * objc-lang.c (info_selectors_command): Update.
669 (info_classes_command): Update.
670 (find_methods): Update.
671 (find_imps): Update.
672 * p-valprint.c (pascal_val_print): Update.
673 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
674 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
675 * printcmd.c (build_address_symbolic): Update.
676 (info_symbol_command): Update.
677 * psymtab.c (psymbol_name_matches): Update.
678 (match_partial_symbol): Update.
679 (lookup_partial_symbol): Update.
680 (print_partial_symbols): Update.
681 (sort_pst_symbols): Update.
682 (maintenance_check_psymtabs): Update.
683 * python/py-framefilter.c (py_print_frame): Update.
684 * python/python.c (gdbpy_rbreak): Update.
685 * record-btrace.c (btrace_get_bfun_name): Update.
686 (btrace_call_history): Update.
687 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
688 (rs6000_skip_trampoline_code): Update.
689 * sol-thread.c (info_cb): Update.
690 * stabsread.c (scan_file_globals): Update.
691 * stack.c (find_frame_funname): Update.
692 (info_frame_command_core): Update.
693 * symmisc.c (dump_msymbols): Update.
694 * symtab.c (symbol_natural_name): Rename to..,
695 (general_symbol_info::natural_name): ...this.
696 (symbol_demangled_name): Rename to...
697 (general_symbol_info::demangled_name): ...this.
698 (symbol_search_name): Rename to...
699 (general_symbol_info::search_name): ...this.
700 (symbol_matches_search_name): Update.
701 (find_pc_sect_line): Update.
702 (skip_prologue_sal): Update.
703 (search_symbols): Update.
704 (print_msymbol_info): Update.
705 (rbreak_command): Update.
706 (completion_list_add_msymbol): Update.
707 (completion_list_objc_symbol): Update.
708 (get_msymbol_address): Update.
709 * symtab.h (struct general_symbol_info): Add member functions
710 natural_name (), linkage_name (), print_name (), demangled_name (),
711 and search_name ().
712 (SYMBOL_NATURAL_NAME): Update.
713 (symbol_natural_name): Move to a member function on general_symbol_info.
714 (SYMBOL_DEMANGLED_NAME): Update.
715 (symbol_demangled_name): Move to a member function on
716 general_symbol_info.
717 (SYMBOL_SEARCH_NAME): Update.
718 (symbol_search_name): Move to a member function on general_symbol_info.
719 (MSYMBOL_NATURAL_NAME): Remove.
720 (MSYMBOL_LINKAGE_NAME): Remove.
721 (MSYMBOL_PRINT_NAME): Remove.
722 (MSYMBOL_DEMANGLED_NAME): Remove.
723 (MSYMBOL_SEARCH_NAME): Remove.
724 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
725
f8bab2d6
CB
7262019-11-22 Christian Biesinger <cbiesinger@google.com>
727
728 * symtab.c (create_demangled_names_hash): Use per_bfd->
729 minimal_symbol_count for computing the initial size, if greater
730 than our default size.
731
85e7588d
TV
7322019-11-22 Tom de Vries <tdevries@suse.de>
733
734 * contrib/words.sh: Improve words extraction.
735
f6180073
TV
7362019-11-22 Tom de Vries <tdevries@suse.de>
737
738 * contrib/words.sh: Combine sed invocations.
739
f10ffa41
CB
7402019-11-21 Christian Biesinger <cbiesinger@google.com>
741
742 * Makefile.in: Update.
743 * demangle.c: Rename to...
744 * gdb-demangle.c: ..this.
745 (is_cplus_marker): Change return type to bool.
746 (_initialize_demangler): Rename to...
747 (_initialize_gdb_demangle): ...this.
748 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
749 * symtab.h (demangle): Remove declaration; instead include
750 gdb-demangle.h.
751
6ba18521
TT
7522019-11-21 Tom Tromey <tromey@adacore.com>
753
754 * gdbsupport/format.c (format_pieces): Parse %I64d.
755 * unittests/format_pieces-selftests.c (test_windows_formats): New
756 function.
757 (run_tests): Call it.
758
34877895
PJ
7592019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
760
761 Byte reverse display of variables with DW_END_big, DW_END_little
762 (DW_AT_endianity) dwarf attributes if different than the native
763 byte order.
764 * ada-lang.c (ada_value_binop):
765 Use type_byte_order instead of gdbarch_byte_order.
766 * ada-valprint.c (printstr):
767 (ada_val_print_string):
768 * ada-lang.c (value_pointer):
769 (ada_value_binop):
770 Use type_byte_order instead of gdbarch_byte_order.
771 * c-lang.c (c_get_string):
772 Use type_byte_order instead of gdbarch_byte_order.
773 * c-valprint.c (c_val_print_array):
774 Use type_byte_order instead of gdbarch_byte_order.
775 * cp-valprint.c (cp_print_class_member):
776 Use type_byte_order instead of gdbarch_byte_order.
777 * dwarf2loc.c (rw_pieced_value):
778 Use type_byte_order instead of gdbarch_byte_order.
779 * dwarf2read.c (read_base_type): Handle DW_END_big,
780 DW_END_little
781 * f-lang.c (f_get_encoding):
782 Use type_byte_order instead of gdbarch_byte_order.
783 * findvar.c (default_read_var_value):
784 Use type_byte_order instead of gdbarch_byte_order.
785 * gdbtypes.c (check_types_equal):
786 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
787 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
788 and TYPE_ENDIANITY_LITTLE if set.
789 (type_byte_order): new function.
790 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
791 (struct main_type) <flag_endianity_not_default>:
792 New field.
793 (type_byte_order): New function.
794 * infcmd.c (default_print_one_register_info):
795 Use type_byte_order instead of gdbarch_byte_order.
796 * p-lang.c (pascal_printstr):
797 Use type_byte_order instead of gdbarch_byte_order.
798 * p-valprint.c (pascal_val_print):
799 Use type_byte_order instead of gdbarch_byte_order.
800 * printcmd.c (print_scalar_formatted):
801 Use type_byte_order instead of gdbarch_byte_order.
802 * solib-darwin.c (darwin_current_sos):
803 Use type_byte_order instead of gdbarch_byte_order.
804 * solib-svr4.c (solib_svr4_r_ldsomap):
805 Use type_byte_order instead of gdbarch_byte_order.
806 * stap-probe.c (stap_modify_semaphore):
807 Use type_byte_order instead of gdbarch_byte_order.
808 * target-float.c (target_float_same_format_p):
809 Use type_byte_order instead of gdbarch_byte_order.
810 * valarith.c (scalar_binop):
811 (value_bit_index):
812 Use type_byte_order instead of gdbarch_byte_order.
813 * valops.c (value_cast):
814 Use type_byte_order instead of gdbarch_byte_order.
815 * valprint.c (generic_emit_char):
816 (generic_printstr):
817 (val_print_string):
818 Use type_byte_order instead of gdbarch_byte_order.
819 * value.c (unpack_long):
820 (unpack_bits_as_long):
821 (unpack_value_bitfield):
822 (modify_field):
823 (pack_long):
824 (pack_unsigned_long):
825 Use type_byte_order instead of gdbarch_byte_order.
826 * findvar.c (unsigned_pointer_to_address):
827 (signed_pointer_to_address):
828 (unsigned_address_to_pointer):
829 (address_to_signed_pointer):
830 (default_read_var_value):
831 (default_value_from_register):
832 Use type_byte_order instead of gdbarch_byte_order.
833 * gnu-v3-abi.c (gnuv3_make_method_ptr):
834 Use type_byte_order instead of gdbarch_byte_order.
835 * riscv-tdep.c (riscv_print_one_register_info):
836 Use type_byte_order instead of gdbarch_byte_order.
837
87fb00ea
SM
8382019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
839
840 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
841 (current_ui_gdb_stdin_ptr): Likewise.
842 (current_ui_gdb_stderr_ptr): Likewise.
843 (current_ui_gdb_stdlog_ptr): Likewise.
844 (current_ui_current_uiout_ptr): Likewise.
845 (gen_ret_current_ui_field_ptr): Remove.
846
65d1cd5f
TV
8472019-11-21 Tom de Vries <tdevries@suse.de>
848
849 PR gdb/24956
850 * cli/cli-script.c (execute_control_command): Only switch to
851 INTERP_CONSOLE's ui_out when INTERP_MI is active.
852
9f6ad286
TT
8532019-11-19 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
856 Now static. Change type of "name".
857 (tui_set_win_height_command): Don't copy "arg".
858 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
859 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
860
435d3d88
AT
8612019-11-19 Ali Tamur <tamur@google.com>
862
863 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
864 "if (attr != nullptr)".
865 (dwarf2_find_base_address): Likewise.
866 (dwarf2_build_include_psymtabs): Likewise.
867 (read_cutu_die_from_dwo): Likewise.
868 (read_func_scope): Likewise.
869 (read_call_site_scope): Likewise.
870 (dwarf2_get_pc_bounds): Likewise.
871 (dwarf2_record_block_ranges): Likewise.
872 (dwarf2_add_field): Likewise.
873 (dwarf2_add_member_fn): Likewise.
874 (read_structure_type): Likewise.
875 (read_enumeration_type): Likewise.
876 (read_array_type): Likewise.
877 (read_array_order): Likewise.
878 (read_set_type): Likewise.
879 (read_common_block): Likewise.
880 (read_tag_reference_type): Likewise.
881 (read_tag_string_type): Likewise.
882 (read_subroutine_type): Likewise.
883 (read_base_type): Likewise.
884 (read_subrange_type): Likewise.
885 (new_symbol): Likewise.
886 (prepare_one_comp_unit): Likewise.
887
c9739b6a
TT
8882019-11-19 Tom Tromey <tromey@adacore.com>
889
890 * windows-nat.c (windows_nat_target::attach): Include GetLastError
891 result in error when DebugActiveProcess fails.
892
494409bb
SDJ
8932019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
894 Pedro Alves <palves@redhat.com>
895
896 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
897 * target.c (target_stack::push): Call 'unpush' if there's a
898 target on top of the stack.
899
2e953aca
PW
9002019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
901
902 * python/py-block.c (blpy_dealloc): Call tp_free.
903 (blpy_block_syms_dealloc): Likewise.
904 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
905 * python/py-inferior.c (infpy_dealloc): Likewise.
906 * python/py-lazy-string.c (stpy_dealloc): Likewise.
907 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
908 * python/py-symbol.c (sympy_dealloc): Likewise.
909 * python/py-symtab.c (stpy_dealloc): Likewise.
910 * python/py-type.c (typy_iterator_dealloc): Likewise.
911
6edc43ec
CB
9122019-11-18 Christian Biesinger <cbiesinger@google.com>
913
914 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
915 constructor instead of using a class initializer.
916
cd850b40
CB
9172019-11-15 Christian Biesinger <cbiesinger@google.com>
918
919 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
920 * configure: Regenerate.
921 * configure.ac: Don't source common.host.
922 * gdbsupport/common.host: Remove.
923 * gdbsupport/mingw-strerror.c: Remove.
924 * gdbsupport/posix-strerror.c: Rename to...
925 * gdbsupport/safe-strerror.c: ...this.
926
53fea9c7
CB
9272019-11-15 Christian Biesinger <cbiesinger@google.com>
928
929 * maint.c (scoped_command_stats::print_time): Use localtime_r
930 instead of localtime (provided through gnulib if necessary).
931 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
932 of ctime.
933
f8e27d88
CB
9342019-11-15 Christian Biesinger <cbiesinger@google.com>
935
936 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
937 avoid compile errors.
938
5abebf3c
CB
9392019-11-15 Christian Biesinger <cbiesinger@google.com>
940
941 * config.in: Regenerate.
942 * configure: Regenerate.
943 * gdbsupport/common.m4: No longer check for strerror_r.
944 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
945 POSIX version of strerror_r, now that gnulib provides it if
946 necessary.
947
9a351667
CB
9482019-11-14 Christian Biesinger <cbiesinger@google.com>
949
950 * README (`configure' options): Update.
951
55708e99
TT
9522019-11-14 Tom Tromey <tromey@adacore.com>
953
954 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
955 expected type for the RHS if the LHS is a convenience variable.
956
4b09bb2e
SM
9572019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
960 Provide explicit default and copy constructor.
961
bd454f8b
PW
9622019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
963
964 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
965 only call Py_INCREF (newbp) in the bppy_pending_object case.
966
d1aa3cf0
TT
9672019-11-13 Tom Tromey <tromey@adacore.com>
968
969 PR build/25182:
970 * psympriv.h (partial_symbol): Remove static assert.
971 * symtab.h (general_symbol_info, symbol): Remove static assert.
972
e06f3d6e
AB
9732019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * gdbsupport/format.c (format_pieces::format_pieces): Support
976 printf 'z' size modifier.
977 * gdbsupport/format.h (enum argclass): Add size_t_arg.
978 * printcmd.c (ui_printf): Handle size_t_arg.
979 * ui-out.c (ui_out::vmessage): Likewise.
980 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
981 function.
982 (run_tests): Call test_format_int_sizes.
983
468c0cbb
CB
9842019-11-12 Christian Biesinger <cbiesinger@google.com>
985
986 * ada-exp.y (write_ambiguous_var): Update.
987 * buildsym.c (add_symbol_to_list): Update.
988 * dwarf2read.c (read_variable): Update.
989 (new_symbol): Update.
990 * jit.c (finalize_symtab): Update.
991 * language.c (language_alloc_type_symbol): Update.
992 * symtab.c (fixup_symbol_section): Update.
993 (initialize_objfile_symbol_1): Move code to...
994 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
995 (allocate_symbol): Update.
996 (allocate_template_symbol): Update.
997 (get_symbol_address): Update.
998 * symtab.h (struct symbol): Inherit from general_symbol_info instead
999 of having as a field, and add a constructor.
1000 (SYMBOL_VALUE): Update.
1001 (SYMBOL_VALUE_ADDRESS): Update.
1002 (SET_SYMBOL_VALUE_ADDRESS): Update.
1003 (SYMBOL_VALUE_BYTES): Update.
1004 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1005 (SYMBOL_BLOCK_VALUE): Update.
1006 (SYMBOL_VALUE_CHAIN): Update.
1007 (SYMBOL_LANGUAGE): Update.
1008 (SYMBOL_SECTION): Update.
1009 (SYMBOL_OBJ_SECTION): Update.
1010 (SYMBOL_SET_LANGUAGE): Update.
1011 (SYMBOL_SET_LINKAGE_NAME): Update.
1012 (SYMBOL_SET_NAMES): Update.
1013 (SYMBOL_NATURAL_NAME): Update.
1014 (SYMBOL_LINKAGE_NAME): Update.
1015 (SYMBOL_DEMANGLED_NAME): Update.
1016 (SYMBOL_SEARCH_NAME): Update.
1017 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1018 (struct symbol): Update.
1019 (struct template_symbol): Update.
1020 (struct rust_vtable_symbol): Update.
1021 * xcoffread.c (SYMBOL_DUP): Update.
1022
ed2c82c3
TT
10232019-11-12 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-layout.c (show_layout): Set current_layout.
1026 (show_source_disasm_command, show_data)
1027 (show_source_or_disasm_and_command): Don't set current_layout.
1028
d9fcefd5
TT
10292019-11-12 Tom Tromey <tom@tromey.com>
1030
1031 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1032
45e42163
TT
10332019-11-12 Tom Tromey <tom@tromey.com>
1034
1035 * tui/tui-win.c (resize_message): New global.
1036 (show_tui_resize_message): New function.
1037 (tui_async_resize_screen): Print message if requested.
1038 (_initialize_tui_win): Add tui-resize-message setting.
1039 * NEWS: Add entry for new commands.
1040
c86d74cc
TT
10412019-11-11 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1044 functions.
1045
7b7b9424
CB
10462019-11-11 Christian Biesinger <cbiesinger@google.com>
1047
1048 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1049
086baaf1
AB
10502019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1053 function.
1054 * python/python-internal.h (gdbpy_lookup_static_symbols):
1055 Declare new function.
1056 * python/python.c (python_GdbMethods): Add
1057 gdb.lookup_static_symbols method.
1058 * NEWS: Mention gdb.lookup_static_symbols.
1059
09ff83af
AB
10602019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1063 static block of current object file first. Also fix typo in
1064 header comment.
1065
eb2dd8df
AB
10662019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * stack.c (set_last_displayed_sal): Delete.
1069 (last_displayed_sal_valid): Delete.
1070 (last_displayed_pspace): Delete.
1071 (last_displayed_addr): Delete.
1072 (last_displayed_symtab): Delete.
1073 (last_displayed_line): Delete.
1074 (class last_displayed_symtab_info_type): New.
1075 (last_displayed_symtab_info): New static global variable.
1076 (print_frame_info): Call methods on last_displayed_symtab_info.
1077 (clear_last_displayed_sal): Update header comment, and make use of
1078 last_displayed_symtab_info.
1079 (last_displayed_sal_is_valid): Likewise.
1080 (get_last_displayed_pspace): Likewise.
1081 (get_last_displayed_addr): Likewise.
1082 (get_last_displayed_symtab): Likewise.
1083 (get_last_displayed_line): Likewise.
1084 (get_last_displayed_sal): Likewise.
1085 * stack.h (clear_last_displayed_sal): Update header comment.
1086 (last_displayed_sal_is_valid): Likewise.
1087 (get_last_displayed_pspace): Likewise.
1088 (get_last_displayed_addr): Likewise.
1089 (get_last_displayed_symtab): Likewise.
1090 (get_last_displayed_line): Likewise.
1091 (get_last_displayed_sal): Likewise.
1092
62137775
AB
10932019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * stack.c (frame_show_address): Convert return type to bool.
1096 * stack.h (frame_show_address): Likewise, and update header
1097 comment.
1098
cf57ad6d
AB
10992019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1102 * unittests/vec-utils-selftests.c: New file.
1103 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1104
0b026263
TT
11052019-11-10 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1108 (tui_highlight_win): Likewise.
1109 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1110 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1111 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1112 Don't set can_highlight.
1113
b049ce2d
TT
11142019-11-10 Tom Tromey <tom@tromey.com>
1115
1116 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1117 Remove unused declaration.
1118
992a7040
TT
11192019-11-08 Tom Tromey <tromey@adacore.com>
1120
1121 * top.c (read_command_file): Update.
1122 (command_line_input): Make return type const.
1123 * python/py-gdb-readline.c: Update.
1124 * linespec.c (decode_line_2): Update.
1125 * defs.h (command_line_input): Make return type const.
1126 * cli/cli-script.c (read_next_line): Make return type const.
1127 * ada-lang.c (get_selections): Update.
1128
ca3a04f6
CB
11292019-11-06 Christian Biesinger <cbiesinger@google.com>
1130
1131 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1132 * mi/mi-main.c (output_cores): Likewise.
1133 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1134 (linux_xfer_osdata_modules): Likewise.
1135 * remote.c (register_remote_support_xml): Likewise.
1136 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1137 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1138
e0eac551
TT
11392019-11-06 Tom Tromey <tom@tromey.com>
1140
1141 * tui/tui-interp.c: Don't include readline.h.
1142 * tui/tui-hooks.c: Don't include readline.h.
1143 * symmisc.c: Include tilde.h, not readline.h.
1144 * symfile.c: Include tilde.h, not readline.h.
1145 * source.c: Include tilde.h, not readline.h.
1146 * solib.c: Include tilde.h, not readline.h.
1147 * psymtab.c: Include tilde.h, not readline.h.
1148 * exec.c: Include tilde.h, not readline.h.
1149 * corelow.c: Include tilde.h, not readline.h.
1150 * cli/cli-dump.c: Include tilde.h, not readline.h.
1151 * cli/cli-cmds.c: Don't include readline.h.
1152
825165c5
TT
11532019-11-05 Tom Tromey <tom@tromey.com>
1154
1155 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1156 (tui_disassemble): Set addr_size.
1157 (tui_disasm_window::set_contents): Use addr_size.
1158
91ae903f
TT
11592019-11-05 Tom Tromey <tom@tromey.com>
1160
1161 * rust-lang.c (rust_language_defn): Update.
1162 * python/py-value.c (valpy_string): Call c_get_string.
1163 * p-lang.c (pascal_language_defn): Update.
1164 * opencl-lang.c (opencl_language_defn): Update.
1165 * objc-lang.c (objc_language_defn): Update.
1166 * m2-lang.c (m2_language_defn): Update.
1167 * language.c (unknown_language_defn, auto_language_defn): Update.
1168 (default_get_string): Remove.
1169 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1170 * go-lang.c (go_language_defn): Update.
1171 * f-lang.c (f_language_defn): Update.
1172 * d-lang.c (d_language_defn): Update.
1173 * c-lang.c (c_language_defn, cplus_language_defn)
1174 (asm_language_defn, minimal_language_defn): Update.
1175 * ada-lang.c (ada_language_defn): Update.
1176 * language.h (struct language_defn) <la_get_string>: Remove.
1177 (LA_GET_STRING): Remove.
1178 (default_get_string): Don't declare.
1179
1df2f9ef
TT
11802019-11-05 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui-source.h (struct tui_source_window): Inline
1183 constructor. Remove destructor.
1184 <style_changed, m_observable>: Move to superclass.
1185 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1186 (struct tui_source_window_base): Move private members to end.
1187 <style_changed, m_observable>: Move from tui_source_window.
1188 * tui/tui-winsource.c (tui_copy_source_line): Move from
1189 tui-source.c. Rename from copy_source_line. Add special handling
1190 for negative line number.
1191 (tui_source_window_base::style_changed): Move from
1192 tui_source_window.
1193 (tui_source_window_base): Register observer.
1194 (~tui_source_window_base): New.
1195 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1196 rename.
1197 (tui_source_window::set_contents): Use tui_copy_source_line.
1198 (tui_source_window::tui_source_window): Move to tui-source.h.
1199 (tui_source_window::~tui_source_window): Remove.
1200 (tui_source_window::style_changed): Move to superclass.
1201 * tui/tui-disasm.c (tui_disassemble): Create string file with
1202 styling, when possible. Add "addr_size" parameter.
1203 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1204 Don't compute maximum size.
1205 (len_without_escapes): New function
1206
5d051055
TT
12072019-11-05 Tom Tromey <tom@tromey.com>
1208
1209 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1210 std::string.
1211 * tui/tui-winsource.c (tui_show_source_line): Update.
1212 * tui/tui-source.c (tui_source_window::set_contents): Update.
1213 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1214
ade7beea
CB
12152019-11-05 Christian Biesinger <cbiesinger@google.com>
1216
1217 * symtab.h (gdb_static_assert): Put && operator at the beginning
1218 of the line instead of the end.
1219
3573abe1
CB
12202019-11-04 Christian Biesinger <cbiesinger@google.com>
1221
1222 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1223 and sizeof (symbol).
1224 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1225
dae8b3eb
RO
12262019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1227
1228 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1229 * configure.host: Mark *-*-solaris2.10* obsolete.
1230 * configure.tgt: Mark Solaris < 11 obsolete.
1231 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1232 Update target triplet.
1233
5df96a4e
TT
12342019-11-01 Tom Tromey <tromey@adacore.com>
1235
1236 * utils.c (print_sys_errmsg): Simplify.
1237
b7481649
TT
12382019-11-01 Tom Tromey <tromey@adacore.com>
1239
1240 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1241
e48f6033
CB
12422019-11-01 Christian Biesinger <cbiesinger@google.com>
1243
1244 * configure: Regenerate.
1245 * configure.ac: Remove check for strerror_r.
1246 * gdbsupport/common.m4: Check for strerror_r.
1247
bd5766ec
LM
12482019-11-01 Luis Machado <luis.machado@linaro.org>
1249
1250 PR gdb/25124
1251
1252 * arm-tdep.c (arm_per_objfile): Rename to ...
1253 (arm_per_bfd): ... this.
1254 (arm_objfile_data_key): Rename to ...
1255 (arm_bfd_data_key): ... this.
1256 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1257 data.
1258 (arm_record_special_symbol): Likewise.
1259
e1709896
AB
12602019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1263 end.
1264 * c-typeprint.c (c_print_typedef): Likewise.
1265 * f-typeprint.c (f_print_typedef): Likewise.
1266 * m2-typeprint.c (m2_print_typedef): Likewise.
1267 * p-typeprint.c (pascal_print_typedef): Likewise.
1268 * rust-lang.c (rust_print_typedef): Likewise.
1269 * symtab.c (print_symbol_info): Print a newline after calling
1270 typedef_print.
1271
165f8965
AB
12722019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * symtab.c (info_module_cmdlist): New variable.
1275 (info_module_command): New function.
1276 (search_module_symbols): New function.
1277 (info_module_subcommand): New function.
1278 (struct info_modules_var_func_options): New struct.
1279 (info_modules_var_func_options_defs): New variable.
1280 (make_info_modules_var_func_options_def_group): New function.
1281 (info_module_functions_command): New function.
1282 (info_module_variables_command): New function.
1283 (info_module_var_func_command_completer): New function.
1284 (_initialize_symtab): Register new 'info module functions' and
1285 'info module variables' commands.
1286 * symtab.h (typedef symbol_search_in_module): New typedef.
1287 (search_module_symbols): Declare new function.
1288 * NEWS: Mention new commands.
1289
59c35742
AB
12902019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1293 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1294 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1295 MODULES_DOMAIN.
1296 (scan_partial_symbols): Only create partial module symbols for non
1297 declarations.
1298 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1299 and MODULES_DOMAIN.
1300 * symtab.c (search_domain_name): Likewise.
1301 (search_symbols): Likewise.
1302 (print_symbol_info): Likewise.
1303 (symtab_symbol_info): Likewise.
1304 (info_modules_command): New function.
1305 (_initialize_symtab): Register 'info modules' command.
1306 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1307 * NEWS: Mention new 'info modules' command.
1308
aed61d02
PW
13092019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1310
1311 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1312 and $_gdb_maint_setting_str.
1313
9ad9b77d
PW
13142019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1315
1316 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1317 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1318 (str_value_from_setting, gdb_setting_str_internal_fn)
1319 (gdb_maint_setting_str_internal_fn): New functions.
1320 (_initialize_cli_cmds): Define the new convenience functions.
1321 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1322 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1323
8d6efaa2
CB
13242019-10-31 Christian Biesinger <cbiesinger@google.com>
1325
1326 * agent.c (set_can_use_agent): When the setting is turned on,
1327 look up agent symbols if we don't have them yet.
1328 (agent_new_objfile): Don't look up agent symbols when the agent
1329 setting is off.
1330
33cb1647
CB
13312019-10-31 Christian Biesinger <cbiesinger@google.com>
1332
1333 * config.in: Regenerate.
1334
b231e86a
CB
13352019-10-31 Christian Biesinger <cbiesinger@google.com>
1336
1337 * configure: Regenerate.
1338 * configure.ac: Check for strerror_r.
1339 * gdbsupport/common-utils.h (safe_strerror): Change return value
1340 to const char * and document that this function is now threadsafe.
1341 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1342 thread_local and call strerror_r, if available.
1343 * utils.c (perror_string): Update.
1344 (print_sys_errmsg): Update.
1345
a2726d4f
LM
13462019-10-31 Luis Machado <luis.machado@linaro.org>
1347
1348 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1349 objfile_key.
1350 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1351 objfile to fetch per-bfd data.
1352 (arm_find_exidx_entry): Likewise.
1353
75cafaa6
CB
13542019-10-31 Christian Biesinger <cbiesinger@google.com>
1355
1356 * gdbsupport/agent.c (debug_agent): Change type to bool.
1357 (use_agent): Likewise.
1358 (all_agent_symbols_look_up): Likewise.
1359 (agent_loaded_p): Change return value to bool.
1360 (agent_look_up_symbols): Update.
1361 (agent_capability_check): Change return value to bool.
1362 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1363 (debug_agent): Change type to bool.
1364 (use_agent): Likewise.
1365 (agent_capability_check): Change return value to bool.
1366
808590ec
CB
13672019-10-30 Christian Biesinger <cbiesinger@google.com>
1368
1369 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1370 (build_minimal_symbol_hash_tables): Code to clear the table moved
1371 to clear_minimal_symbol_hash_tables.
1372 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1373 when needed.
1374
f18ad8a1
SM
13752019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * infcmd.c: Remove includes.
1378 * infrun.c: Remove includes.
1379
de93309a
SM
13802019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1383 (grow_vect): Remove declaration.
1384 (ada_type_of_array): Remove declaration.
1385 (ada_update_initial_language): Remove declaration.
1386 (ada_fold_name): Remove declaration.
1387 (ada_fill_in_ada_prototype): Remove declaration.
1388 (user_select_syms): Remove declaration.
1389 (get_selections): Remove declaration.
1390 (ada_tag_type): Remove declaration.
1391 (ada_value_tag): Remove declaration.
1392 (ada_is_others_clause): Remove declaration.
1393 (ada_in_variant): Remove declaration.
1394 (ada_value_struct_elt): Remove declaration.
1395 (ada_attribute_name): Remove declaration.
1396 (ada_system_address_type): Remove declaration.
1397 * ada-lang.c (ada_watch_location_expression): Make static.
1398 (GROW_VECT): Move here from ada-lang.h.
1399 (grow_vect): Make static.
1400 (ada_update_initial_language): Make static.
1401 (ada_fold_name): Make static.
1402 (ada_type_of_array): Make static.
1403 (encoded_ordered_before): Move up.
1404 (sort_choices): Move up.
1405 (print_signatures): Move up.
1406 (ada_print_symbol_signature): Move up.
1407 (get_selections): Move up and make static.
1408 (user_select_syms): Move up and make static.
1409 (ada_value_struct_elt): Move up and make static.
1410 (ada_tag_type): Make static.
1411 (ada_value_tag): Make static.
1412 (ada_is_others_clause): Make static.
1413 (ada_in_variant): Make static.
1414 (ada_attribute_name): Make static.
1415
cdc46a9f
SM
14162019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * ada-lang.c: Remove includes.
1419 * ada-typeprint.c: Remove includes.
1420 * ada-valprint.c: Remove includes.
1421
90421c56
SM
14222019-10-29 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * addrmap.c: Add static assertions of type size, moved from
1425 _initialize_addrmap.
1426 (_initialize_addrmap): Remove.
1427
31edb802
CB
14282019-10-29 Christian Biesinger <cbiesinger@google.com>
1429
1430 * coffread.c (record_minimal_symbol): Update.
1431 (process_coff_symbol): Update.
1432 * dbxread.c (read_dbx_symtab): Update.
1433 * dwarf2read.c (add_partial_symbol): Update.
1434 (fixup_go_packaging): Update.
1435 (load_partial_dies): Update.
1436 (new_symbol): Update.
1437 * elfread.c (record_minimal_symbol): Change signature to use
1438 gdb::string_view instead of name+len.
1439 (elf_symtab_read): Update.
1440 (elf_rel_plt_read): Update.
1441 * mdebugread.c (parse_partial_symbols): Update.
1442 (handle_psymbol_enumerators): Update.
1443 (new_symbol): Update.
1444 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1445 to use gdb::string_view instead of name+len.
1446 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1447 * psympriv.h (add_psymbol_to_list): Likewise.
1448 * psymtab.c (add_psymbol_to_bcache): Likewise.
1449 (add_psymbol_to_list): Likewise.
1450 * stabsread.c (define_symbol): Update.
1451 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1452 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1453 (symbol_set_names): Likewise.
1454 * xcoffread.c (scan_xcoff_symtab): Update.
1455
0c921b21
CB
14562019-10-29 Christian Biesinger <cbiesinger@google.com>
1457
1458 * symtab.h (symbol_set_names): Document that copy_name must be
1459 set to true for non-nullterminated strings.
1460 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1461 linkage_name if the entry was not found and we need to demangle.
1462
35e65c49
CB
14632019-10-29 Christian Biesinger <cbiesinger@google.com>
1464
1465 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1466 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1467 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1468 * gdbsupport/gdb_binary_search.h: New file.
1469
ed2a2229
CB
14702019-10-29 Christian Biesinger <cbiesinger@google.com>
1471
1472 * NEWS: Mention new --with-system-gdbinit-dir option.
1473 * config.in: Regenerate.
1474 * configure: Regenerate.
1475 * configure.ac: Add new option --with-system-gdbinit-dir.
1476 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1477 for a ".gdb" suffix.
1478 * main.c (get_init_files): Change system_gdbinit argument to
1479 a vector and return the files in SYSTEM_GDBINIT_DIR in
1480 addition to SYSTEM_GDBINIT.
1481 (captured_main_1): Update.
1482 (print_gdb_help): Update.
1483 * top.c (print_gdb_configuration): Also print the value of
1484 SYSTEM_GDBINIT_DIR.
1485
87f34879
CB
14862019-10-28 Christian Biesinger <cbiesinger@google.com>
1487
1488 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1489 that takes gdb::string_view arguments.
1490
30baf67b
TV
14912019-10-26 Tom de Vries <tdevries@suse.de>
1492
1493 * aarch64-linux-tdep.c: Fix typos in comments.
1494 * aarch64-tdep.c: Same.
1495 * ada-lang.c: Same.
1496 * amd64-nat.c: Same.
1497 * arc-tdep.c: Same.
1498 * arch/aarch64-insn.c: Same.
1499 * block.c: Same.
1500 * breakpoint.h: Same.
1501 * btrace.h: Same.
1502 * c-varobj.c: Same.
1503 * cli/cli-decode.c: Same.
1504 * cli/cli-script.c: Same.
1505 * cli/cli-utils.h: Same.
1506 * coff-pe-read.c: Same.
1507 * coffread.c: Same.
1508 * compile/compile-cplus-symbols.c: Same.
1509 * compile/compile-object-run.c: Same.
1510 * completer.c: Same.
1511 * corelow.c: Same.
1512 * cp-support.c: Same.
1513 * demangle.c: Same.
1514 * dwarf-index-write.c: Same.
1515 * dwarf2-frame.c: Same.
1516 * dwarf2-frame.h: Same.
1517 * eval.c: Same.
1518 * frame-base.h: Same.
1519 * frame.h: Same.
1520 * gdbcmd.h: Same.
1521 * gdbtypes.h: Same.
1522 * gnu-nat.c: Same.
1523 * guile/scm-objfile.c: Same.
1524 * i386-tdep.c: Same.
1525 * i386-tdep.h: Same.
1526 * infcall.c: Same.
1527 * infcall.h: Same.
1528 * linux-nat.c: Same.
1529 * m68k-tdep.c: Same.
1530 * macroexp.c: Same.
1531 * memattr.c: Same.
1532 * mi/mi-cmd-disas.c: Same.
1533 * mi/mi-getopt.h: Same.
1534 * mi/mi-main.c: Same.
1535 * minsyms.c: Same.
1536 * nat/aarch64-sve-linux-sigcontext.h: Same.
1537 * objfiles.h: Same.
1538 * ppc-linux-nat.c: Same.
1539 * ppc-linux-tdep.c: Same.
1540 * ppc-tdep.h: Same.
1541 * progspace.h: Same.
1542 * prologue-value.h: Same.
1543 * python/py-evtregistry.c: Same.
1544 * python/py-instruction.h: Same.
1545 * record-btrace.c: Same.
1546 * record-full.c: Same.
1547 * remote.c: Same.
1548 * rs6000-tdep.c: Same.
1549 * ser-tcp.c: Same.
1550 * sol-thread.c: Same.
1551 * sparc-sol2-tdep.c: Same.
1552 * sparc64-tdep.c: Same.
1553 * stabsread.c: Same.
1554 * symfile.c: Same.
1555 * symtab.h: Same.
1556 * target.c: Same.
1557 * tracepoint.c: Same.
1558 * tui/tui-data.h: Same.
1559 * tui/tui-io.c: Same.
1560 * tui/tui-win.c: Same.
1561 * tui/tui.c: Same.
1562 * unittests/rsp-low-selftests.c: Same.
1563 * user-regs.h: Same.
1564 * utils.c: Same.
1565 * utils.h: Same.
1566 * valarith.c: Same.
1567 * valops.c: Same.
1568 * valprint.c: Same.
1569 * valprint.h: Same.
1570 * value.c: Same.
1571 * value.h: Same.
1572 * varobj.c: Same.
1573 * x86-nat.h: Same.
1574 * xtensa-tdep.c: Same.
1575
1834d45f
AT
15762019-10-25 Ali Tamur <tamur@google.com>
1577
1578 * charset.c (find_charset_names): Reflect API change.
1579
5396ae17
CB
15802019-10-25 Christian Biesinger <cbiesinger@google.com>
1581
1582 * symtab.c (struct demangled_name_entry): Change demangled name
1583 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1584 part of the struct anymore.
1585 (symbol_set_names): No longer obstack allocate + copy the demangled
1586 name, just store the allocated name from bfd.
1587
93878f47
TT
15882019-10-25 Tom Tromey <tromey@adacore.com>
1589
1590 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1591 (bsearch_cie_cmp, add_cie): Remove.
1592 (find_cie): Reimplement.
1593 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1594 (dwarf2_build_frame_info): Update.
1595
7b71fc97
L
15962019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 PR gdb/25126
1599 * symfile.c (reread_symbols): Call forget_cached_source_info to
1600 clear the stale source cache.
1601
cbb5a2ea
CB
16022019-10-24 Christian Biesinger <cbiesinger@google.com>
1603
1604 * configure: Regenerate.
1605 * configure.ac: Remove code that sets python_has_threads.
1606
71737c43
CB
16072019-10-24 Christian Biesinger <cbiesinger@google.com>
1608
1609 * config.in: Regenerate.
1610 * configure: Regenerate.
1611 * configure.ac: Remove the code that uses sed to get the python
1612 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1613
33d569b7
AB
16142019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1617 error paths.
1618
f16f7b7c
TT
16192019-10-23 Tom Tromey <tom@tromey.com>
1620
1621 * arc-tdep.c: Remove ".." from include.
1622 * frv-tdep.c: Remove ".." from include.
1623 * lm32-tdep.c: Remove ".." from include.
1624 * microblaze-tdep.c: Remove ".." from include.
1625 * or1k-tdep.h: Remove ".." from include.
1626 * s12z-tdep.c: Remove ".." from include.
1627 * Makefile.in (OPCODES_CFLAGS): Add comment.
1628 (TOP_CFLAGS): New variable.
1629 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1630
6999161a
TT
16312019-10-23 Tom Tromey <tom@tromey.com>
1632
1633 * Makefile.in (READLINE_DIR): Update.
1634
12e7c35e
TBA
16352019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1636
1637 * infcall.c (call_function_by_hand_dummy): Fix the function
1638 comment. And extract out a code section into...
1639 (reserve_stack_space): ...this new function.
1640
37055cad
TBA
16412019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1642
1643 * infcall.c (value_arg_coerce): Remove an unused parameter.
1644 (call_function_by_hand_dummy): Update the call to
1645 'value_arg_coerce'.
1646
39bcc47c
TBA
16472019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1648
1649 * infcall.c (call_function_by_hand_dummy): Refactor.
1650
bd888c0f
TBA
16512019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1652
1653 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1654
c12d372d
TT
16552019-10-23 Tom Tromey <tom@tromey.com>
1656
1657 * configure: Rebuild.
1658 * configure.ac: Don't check for sigprocmask.
1659 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1660
4d0b984b
TT
16612019-10-23 Tom Tromey <tom@tromey.com>
1662
1663 * configure: Rebuild.
1664 * acinclude.m4: Use m4_include, not sinclude.
1665
7e785608
TV
16662019-10-23 Tom de Vries <tdevries@suse.de>
1667
1668 PR breakpoints/24687
1669 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1670
403772ef
CB
16712019-10-22 Christian Biesinger <cbiesinger@google.com>
1672
1673 * symtab.c (struct demangled_name_entry) <language>: Change from
1674 bitfield to regular variable.
1675
3a494279
CB
16762019-10-22 Christian Biesinger <cbiesinger@google.com>
1677
1678 * symtab.c (struct demangled_name_entry): Add a constructor.
1679 (free_demangled_name_entry): New function to call the destructor
1680 for demangled_name_entry.
1681 (create_demangled_names_hash): Pass free_demangled_name_entry to
1682 htab_create_alloc.
1683 (symbol_set_names): Call placement new for demangled_name_entry.
1684 * utils.c: No longer include xxhash.h here, now that fast_hash
1685 is inlined in the header.
1686 * utils.h: Instead, include it here.
1687
ccb1ba62
CB
16882019-10-22 Christian Biesinger <cbiesinger@google.com>
1689
1690 * Makefile.in: Link with libxxhash.
1691 * config.in: Regenerate.
1692 * configure: Regenerate.
1693 * configure.ac: Search for libxxhash.
1694 * utils.c (fast_hash): Use xxhash if present.
1695
1a6ff1a9
CB
16962019-10-22 Christian Biesinger <cbiesinger@google.com>
1697
1698 * utils.h (fast_hash): New function.
1699 * symtab.c (hash_demangled_name_entry): Call new function
1700 fast_hash.
1701
7bb43059
CB
17022019-10-22 Christian Biesinger <cbiesinger@google.com>
1703
1704 * symtab.c (struct demangled_name_entry): Change type of mangled
1705 to gdb::string_view. Also adds a constructor that takes the
1706 mangled name.
1707 (hash_demangled_name_entry): Update.
1708 (eq_demangled_name_entry): Update.
1709 (free_demangled_name_entry): New function to call the destructor
1710 now that this is not a POD anymore.
1711 (create_demangled_names_hash): Pass free_demangled_name_entry to
1712 htab_create_alloc.
1713 (symbol_set_names): Update.
1714
7ba99d21
AT
17152019-10-21 Ali Tamur <tamu@google.com>
1716
1717 * dwarf2read.c (dir_index): Change type.
1718 (file_name_index): Likewise.
1719 (line_header::include_dir_at): Change comment and implementation on
1720 whether it is DWARF 5.
1721 (line_header::is_valid_file_index): New function.
1722 (line_header::file_name_at): Change comment and implementation on
1723 whether it is DWARF 5.
1724 (line_header::file_names): Change to private field renamed as
1725 m_file_names and introduce a new accessor method.
1726 (line_header::file_names_size): New method.
1727 (line_header::include_dirs): Change to private field and rename as
1728 m_include_dirs.
1729 (dw2_get_file_names_reader): Define local var at a smaller scope and
1730 reflect API change.
1731 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1732 (process_structure_scope): Likewise.
1733 (line_header::add_include_dir): Change message and reflect renaming.
1734 (line_header::add_file_name): Likewise.
1735 (read_formatted_entries): Handle DW_FORM_data16.
1736 (dwarf_decode_line_header): Fix line header length calculation.
1737 (psymtab_include_file_name): Change comment and API.
1738 (lnp_state_machine::m_file): Update comment and reflect type change.
1739 (lnp_state_machine::record_line): Reflect type change.
1740 (dwarf_decode_lines): Reflect API change.
1741 (file_file_name): Likewise.
1742 (file_full_name): Likewise.
1743
45f47c3a
AB
17442019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1747
e5f3c0e3
TT
17482019-10-21 Tom Tromey <tom@tromey.com>
1749
1750 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1751
a0a461e5
TT
17522019-10-21 Tom Tromey <tom@tromey.com>
1753
1754 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1755 NM_H. Use AC_CONFIG_LINKS.
1756 * configure: Rebuild.
1757 * Makefile.in (NM_H): New variable.
1758 (generated_files): Add NM_H. Remove gcore.
1759 (nm.h, stamp-nmh): New targets.
1760
54d83b8d
TT
17612019-10-20 Tom Tromey <tom@tromey.com>
1762
1763 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1764 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1765 obsolete comment.
1766 (put_objfile_before): Now static.
1767
23771117
SM
17682019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * gdbsupport/common-utils.h (startswith): Change return type to
1771 bool.
1772
39ef2f62
CB
17732019-10-19 Christian Biesinger <cbiesinger@google.com>
1774
1775 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1776 * breakpoint.c (bp_locations_compare): Rename to...
1777 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1778 (update_global_location_list): Use std::sort instead of qsort.
1779 * buildsym.c (compare_line_numbers): Rename to...
1780 (lte_is_less_than): ...this, and change to std::sort semantics.
1781 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1782 instead of qsort.
1783 * disasm.c (compare_lines): Rename to...
1784 (line_is_less_than): ...this, and change to std::sort semantics.
1785 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1786 of qsort.
1787 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1788 (fde_is_less_than): ...this, and change to std::sort semantics.
1789 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1790 * mdebugread.c (compare_blocks):
1791 (block_is_less_than): ...this, and change to std::sort semantics.
1792 (sort_blocks): Call std::sort instead of qsort.
1793 * objfiles.c (qsort_cmp): Rename to...
1794 (sort_cmp): ...this, and change to std::sort semantics.
1795 (update_section_map): Call std::sort instead of qsort.
1796 * remote.c (compare_pnums): Remove.
1797 (map_regcache_remote_table): Call std::sort instead of qsort.
1798 * utils.c (compare_positive_ints): Remove.
1799 * utils.h (compare_positive_ints): Remove.
1800 * xcoffread.c (compare_lte): Remove.
1801 (arrange_linetable): Call std::sort instead of qsort.
1802
f71433ee
SDJ
18032019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1804
1805 * symfile.c (init_entry_point_info): Fix typo.
1806 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1807
85102364
TV
18082019-10-18 Tom de Vries <tdevries@suse.de>
1809
1810 * aarch64-tdep.c: Fix typos in comments.
1811 * ada-lang.c: Same.
1812 * ada-tasks.c: Same.
1813 * alpha-tdep.c: Same.
1814 * alpha-tdep.h: Same.
1815 * amd64-nat.c: Same.
1816 * amd64-windows-tdep.c: Same.
1817 * arc-tdep.c: Same.
1818 * arc-tdep.h: Same.
1819 * arch-utils.c: Same.
1820 * arm-nbsd-tdep.c: Same.
1821 * arm-tdep.c: Same.
1822 * ax-gdb.c: Same.
1823 * blockframe.c: Same.
1824 * btrace.c: Same.
1825 * c-varobj.c: Same.
1826 * coff-pe-read.c: Same.
1827 * coffread.c: Same.
1828 * cris-tdep.c: Same.
1829 * darwin-nat.c: Same.
1830 * dbxread.c: Same.
1831 * dcache.c: Same.
1832 * disasm.c: Same.
1833 * dtrace-probe.c: Same.
1834 * dwarf-index-write.c: Same.
1835 * dwarf2-frame-tailcall.c: Same.
1836 * dwarf2-frame.c: Same.
1837 * dwarf2read.c: Same.
1838 * eval.c: Same.
1839 * exceptions.c: Same.
1840 * fbsd-tdep.c: Same.
1841 * findvar.c: Same.
1842 * frame.c: Same.
1843 * frv-tdep.c: Same.
1844 * gnu-v3-abi.c: Same.
1845 * go32-nat.c: Same.
1846 * h8300-tdep.c: Same.
1847 * hppa-tdep.c: Same.
1848 * i386-linux-tdep.c: Same.
1849 * i386-tdep.c: Same.
1850 * ia64-libunwind-tdep.c: Same.
1851 * ia64-tdep.c: Same.
1852 * infcmd.c: Same.
1853 * infrun.c: Same.
1854 * linespec.c: Same.
1855 * linux-nat.c: Same.
1856 * linux-thread-db.c: Same.
1857 * machoread.c: Same.
1858 * mdebugread.c: Same.
1859 * mep-tdep.c: Same.
1860 * mn10300-tdep.c: Same.
1861 * namespace.c: Same.
1862 * objfiles.c: Same.
1863 * opencl-lang.c: Same.
1864 * or1k-tdep.c: Same.
1865 * osabi.c: Same.
1866 * ppc-linux-nat.c: Same.
1867 * ppc-linux-tdep.c: Same.
1868 * ppc-sysv-tdep.c: Same.
1869 * printcmd.c: Same.
1870 * procfs.c: Same.
1871 * record-btrace.c: Same.
1872 * record-full.c: Same.
1873 * remote-fileio.c: Same.
1874 * remote.c: Same.
1875 * rs6000-tdep.c: Same.
1876 * s12z-tdep.c: Same.
1877 * score-tdep.c: Same.
1878 * ser-base.c: Same.
1879 * ser-go32.c: Same.
1880 * skip.c: Same.
1881 * sol-thread.c: Same.
1882 * solib-svr4.c: Same.
1883 * solib.c: Same.
1884 * source.c: Same.
1885 * sparc-nat.c: Same.
1886 * sparc-sol2-tdep.c: Same.
1887 * sparc-tdep.c: Same.
1888 * sparc64-tdep.c: Same.
1889 * stabsread.c: Same.
1890 * stack.c: Same.
1891 * symfile.c: Same.
1892 * symtab.c: Same.
1893 * target-descriptions.c: Same.
1894 * target-float.c: Same.
1895 * thread.c: Same.
1896 * utils.c: Same.
1897 * valops.c: Same.
1898 * valprint.c: Same.
1899 * value.c: Same.
1900 * varobj.c: Same.
1901 * windows-nat.c: Same.
1902 * xcoffread.c: Same.
1903 * xstormy16-tdep.c: Same.
1904 * xtensa-tdep.c: Same.
1905
c5adaa19
TT
19062019-10-17 Tom Tromey <tromey@adacore.com>
1907
1908 * configure: Rebuild.
1909 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1910 in AC_CONFIG_FILES invocation.
1911 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1912 new-style config.status invocation.
1913
405feb71
TV
19142019-10-17 Tom de Vries <tdevries@suse.de>
1915
1916 * arm-nbsd-nat.c: Fix typos in comments.
1917 * arm-tdep.c: Same.
1918 * darwin-nat-info.c: Same.
1919 * dwarf2read.c: Same.
1920 * elfread.c: Same.
1921 * event-top.c: Same.
1922 * findvar.c: Same.
1923 * gdbtypes.c: Same.
1924 * hppa-tdep.c: Same.
1925 * i386-tdep.c: Same.
1926 * jit.c: Same.
1927 * main.c: Same.
1928 * mdebugread.c: Same.
1929 * moxie-tdep.c: Same.
1930 * nto-procfs.c: Same.
1931 * osabi.c: Same.
1932 * ppc-linux-tdep.c: Same.
1933 * remote.c: Same.
1934 * riscv-tdep.c: Same.
1935 * s390-tdep.c: Same.
1936 * sh-tdep.c: Same.
1937 * sparc-linux-tdep.c: Same.
1938 * sparc-nat.c: Same.
1939 * stack.c: Same.
1940 * target-descriptions.c: Same.
1941 * top.c: Same.
1942 * varobj.c: Same.
1943
befcd486
TT
19442019-10-16 Tom Tromey <tom@tromey.com>
1945
1946 * objfiles.h (struct objfile) <original_name>: Now const.
1947
17bfe554
CB
19482019-10-16 Christian Biesinger <cbiesinger@google.com>
1949
1950 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1951 pass on to sigsetjmp's second argument.
1952 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1953
950b7495
KS
19542019-10-16 Keith Seitz <keiths@redhat.com>
1955
1956 PR gdb/23567
1957 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1958 sections whose size is greater than the file size.
1959
ff371ec9
JW
19602019-10-16 Jim Wilson <jimw@sifive.com>
1961
1962 * riscv-tdep.c (riscv_gcc_target_options): New.
1963 (riscv_gnu_triplet_regexp): New.
1964 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1965 set_gdbarch_gnu_triplet_regexp.
1966
fec4e896
CB
19672019-10-16 Christian Biesinger <cbiesinger@google.com>
1968
1969 * Makefile.in: Add xml-builtin.h.
1970 * features/feature_to_c.sh: Add an include for xml-builtin.h
1971 to ensure that the compiler checks that the types match.
1972 * xml-builtin.h: New file.
1973 * xml-support.c (fetch_xml_builtin): Add missing const.
1974 * xml-support.h: Remove declaration of xml_builtins.
1975
d10eccaa
TV
19762019-10-16 Tom de Vries <tdevries@suse.de>
1977
1978 PR tdep/25096
1979 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1980 (amd64_classify_aggregate): ... here.
1981 (amd64_classify_aggregate_field): Handled fiels of nested structs
1982 recursively.
1983
745ff14e
TV
19842019-10-16 Tom de Vries <tdevries@suse.de>
1985
1986 PR tdep/24104
1987 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1988 that handles 'theclass'.
1989
791b7405
AB
19902019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * linespec.c (decode_digits_ordinary): Update comment.
1993 * make-target-delegates: No longer need to handle VEC case.
1994 * memrange.c (normalize_mem_ranges): Update comment.
1995 * namespace.c (add_using_directive): Update comment.
1996 * objc-lang.c (uniquify_strings): Update comment.
1997 * ppc-linux-nat.c (struct thread_points): Update comment.
1998 * probe.h (find_probes_in_objfile): Update comment.
1999 * target.h (enum flash_preserve_mode): Update comment.
2000 * varobj.c (varobj_restrict_range): Update comment.
2001 * varobj.h (varobj_list_children): Update comment.
2002
0dc32745
AB
20032019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * Makefile.in: Remove references to vec.h and vec.c.
2006 * aarch64-tdep.c: No longer include vec.h.
2007 * ada-lang.c: Likewise.
2008 * ada-lang.h: Likewise.
2009 * arm-tdep.c: Likewise.
2010 * ax.h: Likewise.
2011 * breakpoint.h: Likewise.
2012 * charset.c: Likewise.
2013 * cp-support.h: Likewise.
2014 * dtrace-probe.c: Likewise.
2015 * dwarf2read.c: Likewise.
2016 * extension.h: Likewise.
2017 * gdb_bfd.c: Likewise.
2018 * gdbsupport/gdb_vecs.h: Likewise.
2019 * gdbsupport/vec.c: Remove.
2020 * gdbsupport/vec.h: Remove.
2021 * gdbthread.h: Likewise.
2022 * guile/scm-type.c: Likewise.
2023 * inline-frame.c: Likewise.
2024 * machoread.c: Likewise.
2025 * memattr.c: Likewise.
2026 * memrange.h: Likewise.
2027 * namespace.h: Likewise.
2028 * nat/linux-btrace.h: Likewise.
2029 * osdata.c: Likewise.
2030 * parser-defs.h: Likewise.
2031 * progspace.h: Likewise.
2032 * python/py-type.c: Likewise.
2033 * record-btrace.c: Likewise.
2034 * rust-exp.y: Likewise.
2035 * solib-target.c: Likewise.
2036 * stap-probe.c: Likewise.
2037 * target-descriptions.c: Likewise.
2038 * target-memory.c: Likewise.
2039 * target.h: Likewise.
2040 * varobj.c: Likewise.
2041 * varobj.h: Likewise.
2042 * xml-support.h: Likewise.
2043
ae640021
AB
20442019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2047 Update for new std::vector based implementation.
2048 (process_psymtab_comp_unit_reader): Likewise.
2049 (scan_partial_symbols): Likewise.
2050 (recursively_compute_inclusions): Likewise.
2051 (compute_compunit_symtab_includes): Likewise.
2052 (process_imported_unit_die): Likewise.
2053 (queue_and_load_dwo_tu): Likewise.
2054 (follow_die_sig_1): Likewise.
2055 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2056 (typedef dwarf2_per_cu_ptr): Remove.
2057 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2058 function.
2059 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2060 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2061 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2062 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2063 std::vector.
2064
55dfc88f
TT
20652019-10-15 Tom Tromey <tromey@adacore.com>
2066
2067 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2068 TID.
2069
96b49c5e
TT
20702019-10-15 Tom Tromey <tromey@adacore.com>
2071
2072 * windows-nat.c (windows_nat_target::fetch_registers)
2073 (windows_nat_target::store_registers): Rename "pid" to "tid".
2074
953cff56
TT
20752019-10-15 Tom Tromey <tromey@adacore.com>
2076
2077 * gdbarch.h, gdbarch.c: Rebuild.
2078 * gdbarch.sh (gcc_target_options): Change return type to
2079 std::string.
2080 * compile/compile.c (get_args): Update.
2081 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2082 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2083 std::string.
2084 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2085 std::string.
2086 * arch-utils.c (default_gcc_target_options): Return std::string.
2087 * arch-utils.h (default_gcc_target_options): Return std::string.
2088 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2089
81e6b8eb
CB
20902019-10-15 Christian Biesinger <cbiesinger@google.com>
2091
2092 * breakpoint.c (breakpoint_chain): Make static.
2093 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2094 of accessing breakpoint_chain.
2095
95da600f
CB
20962019-10-15 Christian Biesinger <cbiesinger@google.com>
2097
2098 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2099 to a gdb::function_view and return value to bool.
2100 * breakpoint.h (iterate_over_breakpoints): Likewise.
2101 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2102 (pop_dummy_frame): Update.
2103 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2104 (gdbscm_breakpoints): Update.
2105 * python/py-breakpoint.c (build_bp_list): Update.
2106 (gdbpy_breakpoints): Update.
2107 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2108 Update.
2109 (bpfinishpy_handle_stop): Update.
2110 (bpfinishpy_handle_exit): Update.
2111 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2112 (svr4_update_solib_event_breakpoints): Update.
2113
ba18312d
AA
21142019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2115
2116 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2117 when unwrapping single-field structs.
2118
6acc1a0b
SM
21192019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2120
2121 * dwarf2read.c: Remove includes.
2122
284782de
SM
21232019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2124
2125 * ui-out.c (ui_out::call_do_message): Silence
2126 -Wformat-nonliteral warning.
2127
073bbbb0
SM
21282019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2129
2130 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2131 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2132 include: readline/tilde.h.
2133
7b9a15e1
CB
21342019-10-12 Christian Biesinger <cbiesinger@google.com>
2135
2136 * remote.c (remote_target::get_trace_status): Remove declaration of
2137 trace_regblock_size.
2138
cc8dee1f
CB
21392019-10-12 Christian Biesinger <cbiesinger@google.com>
2140
2141 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2142 (show_user): Remove declaration of cmdlist.
2143 * cli/cli-cmds.h (max_user_call_depth): Declare.
2144 * cli/cli-script.c (execute_user_command): Remove declaration
2145 of max_user_call_depth.
2146
a83d4ef6
JW
21472019-10-11 Jim Wilson <jimw@sifive.com>
2148
5f93c5a6
JW
2149 * gdbsupport/print-utils.h (pulongest): Fix comment.
2150 (plongest): Likewise.
2151 (phex): Add missing comment, mention leading zeros.
2152 (phex_nz): Add mention of no leading zeros to comment.
2153
a83d4ef6
JW
2154 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2155 plongest instead of unsigned long long cast.
2156
26344e0c
CB
21572019-10-10 Christian Biesinger <cbiesinger@google.com>
2158
2159 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2160 for external_editor_command and gdbtk_test.
2161
c2c440a9
CB
21622019-10-10 Christian Biesinger <cbiesinger@google.com>
2163
2164 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2165 * varobj.c (varobjdebug): Move comment to...
2166 * varobj.h (varobjdebug): ...here, and declare.
2167
a31bff9d
TT
21682019-10-09 Tom Tromey <tom@tromey.com>
2169
2170 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2171 erase_data_content.
2172
7523da63
TT
21732019-10-09 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2176 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2177 * tui/tui-command.c (tui_cmd_window::resize)
2178 (tui_refresh_cmd_win): Update.
2179 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2180 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2181 * tui/tui-data.c (~tui_gen_win_info): Remove.
2182 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2183 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2184 (tui_redisplay_readline, tui_mld_flush)
2185 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2186 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2187 (tui_data_window::erase_data_content)
2188 (tui_data_item_window::rerender)
2189 (tui_data_item_window::refresh_window): Update.
2190 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2191 (box_win, tui_gen_win_info::make_window)
2192 (tui_gen_win_info::make_visible): Update.
2193 (tui_delete_win): Remove.
2194 * tui/tui-winsource.c
2195 (tui_source_window_base::do_erase_source_content): Update.
2196 (tui_show_source_line, tui_source_window_base::update_tab_width)
2197 (tui_source_window_base::update_exec_info): Update.
2198 * tui/tui-data.h (struct curses_deleter): New.
2199 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2200 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2201
a7798e7f
TT
22022019-10-09 Tom Tromey <tom@tromey.com>
2203
2204 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2205
5c45899e
TT
22062019-10-09 Tom Tromey <tom@tromey.com>
2207
2208 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2209 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2210
6d7fd9aa
TT
22112019-10-09 Tom Tromey <tom@tromey.com>
2212
2213 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2214 window height directly.
2215 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2216 declare.
2217 * tui/tui-layout.c (tui_default_win_height): Remove.
2218 (tui_default_win_viewport_height): Remove.
2219
d2dd1084
TT
22202019-10-09 Tom Tromey <tom@tromey.com>
2221
2222 * tui/tui.h: Remove comments.
2223
cff32449
TV
22242019-10-09 Tom de Vries <tdevries@suse.de>
2225
2226 * python/lib/gdb/printer/bound_registers.py: Use
2227 '^builtin_type_bound128' as regexp argument for
2228 add_builtin_pretty_printer.
2229
6a25e8a2
CB
22302019-10-09 Christian Biesinger <cbiesinger@google.com>
2231
2232 * guile/guile.c (guile_extension_script_ops): Remove forward
2233 declaration and mark as static.
2234 (guile_script_ops): Likewise.
2235 (extension_language_guile): Move further down in the file so
2236 it can reference the definitions for guile_{extension_,}script_ops.
2237
6d9d6da4
AA
22382019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2239
2240 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2241 except SORTL, DFLTCC, and KDSA.
2242
3abea05d
TT
22432019-10-08 Tom Tromey <tromey@adacore.com>
2244
2245 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2246 (struct safe_symbol_file_add_args): Remove.
2247
dde996e2
TT
22482019-10-08 Tom Tromey <tromey@adacore.com>
2249
2250 * windows-nat.c: Don't include buildsym-legacy.h.
2251
cd6fdaa1
TT
22522019-10-08 Tom Tromey <tromey@adacore.com>
2253
2254 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2255
79bb1944
CB
22562019-10-08 Christian Biesinger <cbiesinger@google.com>
2257
2258 * gdbtypes.c (overload_debug): Move comment to header.
2259 * gdbtypes.h (overload_debug): Declare.
2260 * valops.c: Remove declaration of overload_debug, instead
2261 include gdbtypes.h.
2262
34916edc
CB
22632019-10-08 Christian Biesinger <cbiesinger@google.com>
2264
2265 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2266 through _().
2267 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2268 move comment...
2269 * language.h (lang_frame_mismatch_warn): ... here. Also add
2270 declaration.
2271 * top.c (lang_frame_mismatch_warn): Remove declaration.
2272 (check_frame_language_change): Pass lang_frame_mismatch_warn
2273 through _().
2274
bad5c026
CB
22752019-10-07 Christian Biesinger <cbiesinger@google.com>
2276
2277 * c-lang.h (vtbl_ptr_name): Declare.
2278 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2279 it from the header.
2280 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2281
51f1fdc3
CB
22822019-10-07 Christian Biesinger <cbiesinger@google.com>
2283
2284 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2285 gdb_static_assert.
2286
30d1f018
WP
22872019-10-07 Weimin Pan <weimin.pan@oracle.com>
2288
606813d5
WP
2289 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2290 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2291 * ctfread.c: New file.
2292 * ctfread.h: New file.
2293 * elfread.c: Include ctfread.h.
2294 (struct elfinfo text_p): New member ctfsect.
2295 (elf_locate_sections): Mark CTF section.
2296 (elf_symfile_read): Call elfctf_build_psymtabs.
2297 * Makefile.in (LIBCTF): Add.
2298 (CLIBS): Use it.
2299 (CDEPS): Likewise.
2300 (DIST): Add ctfread.c.
606813d5
WP
2301
23022019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * ctfread.c (struct nextfield): Renamed to ...
2305 (struct ctf_nextfield): ... this.
2306 (struct field_info): Renamed to ...
2307 (strut ctf_field_info): ... this.
2308 (attach_fields_to_type): Update for renamed structures.
2309 (ctf_add_member_cb): Likewise.
2310 (ctf_add_enum_member_cb): Likewise.
2311 (process_struct_members): Likewise.
2312 (process_enum_type): Likewise.
30d1f018 2313
518fe38c
WP
23142019-10-07 Weimin Pan <weimin.pan@oracle.com>
2315
2316 * tracectf.h: Rename, was ctf.h.
2317 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2318 * tracefile.c: Likewise.
2319 * tracepoint.c: Remove unused include ctf.h.
2320 * mi/mi-main.c: Likewise.
2321 * Makefile.in Replace ctf.c with tracectf.c.
2322
225f296a
JB
23232019-10-06 Joel Brobecker <brobecker@adacore.com>
2324
2325 * version.in: Change version number to "9.0.50.DATE-git".
2326
77c2dba3
TT
23272019-10-03 Tom Tromey <tom@tromey.com>
2328
2329 PR rust/24976:
2330 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2331
179aed7f
AB
23322019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2335 cp_search_name_hash.
2336 * NEWS: Add entry about nested function support.
2337
0a4b0913
AB
23382019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2339 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2342 for nested static variables when searchin VAR_DOMAIN.
2343 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2344 global scope, update comment.
2345 (add_partial_subprogram): Call add_partial_subprogram recursively
2346 for nested subroutines when processinng Fortran.
2347 (load_partial_dies): Process the child entities of a subprogram
2348 when processing Fortran.
2349 (partial_die_parent_scope): Handle building scope
2350 for Fortran nested functions.
2351 (process_die): Record that nested functions have a scope.
2352 (new_symbol): Always record Fortran subprograms on the global
2353 symbol list.
2354 (determine_prefix): How to build the prefix for Fortran
2355 subprograms.
2356
d8c06f22
AB
23572019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2360 have just sent the thread a SIGSTOP and are waiting for it to
2361 arrive.
2362
a8b3b8e9
AB
23632019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * btrace.c (btrace_add_pc): Remove whitespace before the template
2366 parameter in 'std::vector <...>'.
2367 (parse_xml_btrace_block): Likewise.
2368 (btrace_maint_decode_pt): Likewise.
2369 (btrace_maint_update_packets): Likewise.
2370 (btrace_maint_print_packets): Likewise.
2371 * btrace.h (struct btrace_maint_info): Likewise.
2372 * dwarf2read.c (struct type_unit_group): Likewise.
2373 (build_type_psymtabs_reader): Likewise.
2374 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2375 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2376 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2377
4d825eab
TV
23782019-10-03 Tom de Vries <tdevries@suse.de>
2379
2380 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2381 the first line of the help text for set/show style metadata.
2382
80fd2826
TT
23832019-10-02 Tom Tromey <tromey@adacore.com>
2384
2385 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2386 * gdbsupport/common-inferior.c: New file.
2387 * infcmd.c (startup_with_shell): Don't define.
2388 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2389 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2390 * inferior.h (startup_with_shell): Don't declare.
2391
70054538
CB
23922019-10-02 Christian Biesinger <cbiesinger@google.com>
2393
2394 * gdbsupport/gdb_assert.h: Include errors.h.
2395 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2396
37f6a7f4
TT
23972019-10-02 Tom Tromey <tromey@adacore.com>
2398
2399 * NEWS: Add $_ada_exception entry.
2400 * ada-lang.c (struct ada_catchpoint): Add constructor.
2401 <m_kind>: New member.
2402 (allocate_location_exception, re_set_exception): Remove
2403 "ex" parameter.
2404 (should_stop_exception): Compute $_ada_exception.
2405 (check_status_exception, print_it_exception)
2406 (print_one_exception, print_mention_exception): Remove
2407 "ex" parameter.
2408 (allocate_location_catch_exception, re_set_catch_exception)
2409 (check_status_exception, print_it_catch_exception)
2410 (print_one_catch_exception, print_mention_catch_exception)
2411 (print_recreate_catch_exception)
2412 (allocate_location_catch_exception_unhandled)
2413 (re_set_catch_exception_unhandled)
2414 (check_status_exception, print_it_catch_exception_unhandled)
2415 (print_one_catch_exception_unhandled)
2416 (print_mention_catch_exception_unhandled)
2417 (print_recreate_catch_exception_unhandled)
2418 (allocate_location_catch_assert, re_set_catch_assert)
2419 (check_status_assert, print_it_catch_assert)
2420 (print_one_catch_assert, print_mention_catch_assert)
2421 (print_recreate_catch_assert)
2422 (allocate_location_catch_handlers, re_set_catch_handlers)
2423 (check_status_handlers, print_it_catch_handlers)
2424 (print_one_catch_handlers, print_mention_catch_handlers)
2425 (print_recreate_catch_handlers): Remove.
2426 (create_ada_exception_catchpoint): Update.
2427 (initialize_ada_catchpoint_ops): Update.
2428
fccf9de1
TT
24292019-10-02 Tom Tromey <tromey@adacore.com>
2430
2431 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2432 (create_excep_cond_exprs): Simplify exception string computation.
2433 (ada_exception_catchpoint_cond_string): Likewise.
2434
4b610737
TT
24352019-10-02 Tom Tromey <tromey@adacore.com>
2436
2437 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2438 * ada-lang.c (lesseq_defined_than): Handle
2439 LOC_STATIC.
2440 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2441 parameter.
2442 (dwarf2_has_info): Likewise.
2443 (new_symbol): Set maybe_copied on symbol when
2444 appropriate.
2445 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2446 parameter.
2447 <can_copy>: New member.
2448 * elfread.c (record_minimal_symbol): Set maybe_copied
2449 on symbol when appropriate.
2450 (elf_symfile_read): Update call to dwarf2_has_info.
2451 * minsyms.c (lookup_minimal_symbol_linkage): New
2452 function.
2453 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2454 * symtab.c (get_symbol_address, get_msymbol_address):
2455 New functions.
2456 * symtab.h (get_symbol_address, get_msymbol_address):
2457 Declare.
2458 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2459 maybe_copied.
2460 (struct symbol, struct minimal_symbol) <maybe_copied>:
2461 New member.
2462
1dd58850
TT
24632019-10-02 Tom Tromey <tromey@adacore.com>
2464
2465 * source.c (struct current_source_location): New.
2466 (current_source_key): New global.
2467 (current_source_symtab, current_source_line)
2468 (current_source_pspace): Remove.
2469 (get_source_location): New function.
2470 (get_current_source_symtab_and_line)
2471 (set_default_source_symtab_and_line)
2472 (set_current_source_symtab_and_line)
2473 (clear_current_source_symtab_and_line, select_source_symtab)
2474 (info_source_command, print_source_lines_base)
2475 (info_line_command, search_command_helper, _initialize_source):
2476 Update.
2477
5c281dbb
TT
24782019-10-02 Tom Tromey <tromey@adacore.com>
2479
2480 * source.c (select_source_symtab): Don't call
2481 decode_line_with_current_source.
2482
d3d32391
AB
24832019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * symtab.c (lookup_global_symbol): Search global block.
2486
38583298
TT
24872019-10-02 Tom Tromey <tromey@adacore.com>
2488
2489 * coffread.c (process_coff_symbol): Update.
2490 * dwarf2read.c (var_decode_location, new_symbol): Update.
2491 * mdebugread.c (parse_symbol): Update.
2492 * objfiles.c (relocate_one_symbol): Update.
2493 * stabsread.c (define_symbol, fix_common_block)
2494 (scan_file_globals): Update.
2495 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2496 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2497 * xcoffread.c (process_xcoff_symbol): Update.
2498
9344c18f
AA
24992019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2500
2501 * MAINTAINERS: Update my email address.
2502
df07e2c7
AB
25032019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2506 std::vector.
2507 (build_type_psymtabs_reader): Update for std::vector.
2508 (build_type_psymtab_dependencies): Likewise.
2509 * dwarf2read.h: Remove use of DEF_VEC_P.
2510 (typedef sig_type_ptr): Delete.
2511
554ac434
AB
25122019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2515 to std::vector.
2516 (btrace_maint_decode_pt): Likewise, and move allocation of the
2517 vector outside of the loop.
2518 (btrace_maint_update_packets): Update to handle change from VEC to
2519 std::vector.
2520 (btrace_maint_print_packets): Likewise.
2521 (maint_info_btrace_cmd): Likewise.
2522 * btrace.h: Remove use of DEF_VEC_O.
2523 (typedef btrace_pt_packet_s): Delete.
2524 (struct btrace_maint_info) <packets>: Change fromm VEC to
2525 std::vector.
2526 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2527
46f29a9a
AB
25282019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2531 make accesses into the vector constant references.
2532 (btrace_add_pc): Update for std::vector.
2533 (btrace_stitch_bts): Likewise.
2534 (parse_xml_btrace_block): Likewise.
2535 (btrace_maint_update_packets): Likewise.
2536 (btrace_maint_print_packets): Likewise.
2537 (maint_info_btrace_cmd): Likewise.
2538 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2539 std::vector.
2540 (btrace_data::empty): Likewise.
2541 (btrace_data_append): Likewise.
2542 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2543 (typedef btrace_block_s): Delete.
2544 (struct btrace_block): Add constructor.
2545 (struct btrace_data_bts) <blocks>: Change to std::vector.
2546 * nat/linux-btrace.c (perf_event_read_bts): Update for
2547 std::vector.
2548 (linux_read_bts): Likewise.
2549
d770d56f
TT
25502019-10-01 Tom Tromey <tom@tromey.com>
2551
2552 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2553
9d636d67
TT
25542019-10-01 Tom Tromey <tom@tromey.com>
2555
2556 * stack.c (print_frame, info_frame_command_core): Use
2557 styled_string.
2558 * linux-thread-db.c (try_thread_db_load_1)
2559 (try_thread_db_load_from_pdir_1): Use styled_string.
2560 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2561 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2562 (maybe_print_unsupported_script_warning)
2563 (maybe_print_script_not_found_warning): Use styled_string.
2564 * ada-lang.c (user_select_syms): Use styled_string.
2565
7f6aba03
TT
25662019-10-01 Tom Tromey <tom@tromey.com>
2567
2568 * p-lang.c (pascal_printstr): Use metadata style.
2569 * value.c (show_convenience): Use metadata style.
2570 * valprint.c (valprint_check_validity, val_print_optimized_out)
2571 (val_print_not_saved, val_print_unavailable)
2572 (val_print_invalid_address, generic_val_print, val_print)
2573 (value_check_printable, val_print_array_elements): Use metadata
2574 style.
2575 * ui-out.h (class ui_out) <field_fmt>: New overload.
2576 <do_field_fmt>: Add style parameter.
2577 * ui-out.c (ui_out::field_fmt): New overload.
2578 * typeprint.c (type_print_unknown_return_type)
2579 (val_print_not_allocated, val_print_not_associated): Use metadata
2580 style.
2581 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2582 parameter.
2583 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2584 * tracepoint.c (tvariables_info_1): Use metadata style.
2585 * stack.c (print_frame_arg, print_frame_info, print_frame)
2586 (info_frame_command_core): Use metadata style.
2587 * skip.c (info_skip_command): Use metadata style.
2588 * rust-lang.c (rust_print_enum): Use metadata style.
2589 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2590 metadata style.
2591 * python/py-framefilter.c (py_print_single_arg): Use metadata
2592 style.
2593 * printcmd.c (do_one_display, print_variable_and_value): Use
2594 metadata style.
2595 * p-valprint.c (pascal_val_print)
2596 (pascal_object_print_value_fields): Use metadata style.
2597 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2598 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2599 parameter.
2600 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2601 * m2-valprint.c (m2_print_long_set): Use metadata style.
2602 * m2-typeprint.c (m2_print_type): Use metadata style.
2603 * infcmd.c (print_return_value_1): Use metadata style.
2604 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2605 * f-valprint.c (info_common_command_for_block): Use metadata
2606 style.
2607 * f-typeprint.c (f_type_print_base): Use metadata style.
2608 * expprint.c (print_subexp_standard): Use metadata style.
2609 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2610 * cli/cli-style.h (class cli_style_option): Add constructor.
2611 (metadata_style): Declare.
2612 * cli/cli-style.c (metadata_style): New global.
2613 (_initialize_cli_style): Register metadata style.
2614 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2615 parameter.
2616 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2617 * c-typeprint.c (c_type_print_base_struct_union)
2618 (c_type_print_base_1): Use metadata style.
2619 * breakpoint.c (watchpoint_value_print)
2620 (print_one_breakpoint_location): Use metadata style.
2621 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2622 style.
2623 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2624 style.
2625 * ada-valprint.c (val_print_packed_array_elements, printstr)
2626 (print_field_values, ada_val_print_ref, ada_val_print): Use
2627 metadata style.
2628 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2629 style.
2630 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2631 style.
2632 * ada-lang.c (user_select_syms): Use metadata style.
2633
14309bb6
TT
26342019-10-01 Tom Tromey <tom@tromey.com>
2635
2636 * cli/cli-cmds.c (pwd_command): Style output.
2637
6a831f06
PA
26382019-10-01 Pedro Alves <palves@redhat.com>
2639 Tom Tromey <tom@tromey.com>
2640
2641 * symtab.c (print_symbol_info): Use %ps.
2642 (print_msymbol_info): Use %ps.
2643 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2644 * printcmd.c (print_variable_and_value): Use %ps.
2645 * macrocmd.c (show_pp_source_pos): Use %ps.
2646 * infrun.c (print_exited_reason): Use ui_out::message.
2647 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2648 (describe_other_breakpoints): Use ui_out::message and new
2649 formats.
2650 (say_where): Use new formats.
2651 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2652 and new formats.
2653
2a3c1174
PA
26542019-10-01 Pedro Alves <palves@redhat.com>
2655 Tom Tromey <tom@tromey.com>
2656
2657 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2658 (test_gdb_formats): New function.
2659 (run_tests): Call it.
2660 (test_format_specifier): Update.
2661 * utils.h (fputs_filtered): Update comment.
2662 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2663 (fputs_styled_unfiltered): Declare.
2664 * utils.c (fputs_styled_unfiltered): New function.
2665 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2666 (vfprintf_filtered): Update.
2667 (vfprintf_unfiltered, vprintf_filtered): Update.
2668 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2669 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2670 disallow_ui_out_field>: New constants.
2671 (enum class field_kind): New.
2672 (struct base_field_s, struct signed_field_s): New.
2673 (signed_field): New function.
2674 (struct string_field_s): New.
2675 (string_field): New function.
2676 (struct styled_string_s): New.
2677 (styled_string): New function.
2678 (class ui_out) <message>: Add comment.
2679 <vmessage, call_do_message>: New methods.
2680 <do_message>: Add style parameter.
2681 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2682 methods.
2683 (ui_out::message): Rewrite.
2684 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2685 parameter.
2686 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2687 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2688 gdb_extensions parameter.
2689 (class format_piece): Add parameter to constructor.
2690 (n_int_args): New field.
2691 * gdbsupport/format.c (format_pieces::format_pieces): Add
2692 gdb_extensions parameter. Handle '*'.
2693 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2694 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2695 vfprintf_styled_no_gdbfmt.
2696 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2697 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2698 unfiltered output.
2699 * ui-style.h (struct ui_file_style) <ptr>: New method.
2700
0dfe5bfb
TT
27012019-10-01 Tom Tromey <tom@tromey.com>
2702
2703 * unittests/format_pieces-selftests.c: Update. Add final format.
2704 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2705 empty literal pieces.
2706
e43b10e1
TT
27072019-10-01 Tom Tromey <tom@tromey.com>
2708
2709 * ui-out.h (enum class ui_out_style_kind): Remove.
2710 (class ui_out) <field_string, field_stsream, do_field_string>:
2711 Change type of "style".
2712 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2713 (ui_out::field_string): Update.
2714 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2715 of "style".
2716 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2717 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2718 * stack.c (print_frame_arg, print_frame_info, print_frame):
2719 Update.
2720 * source.c (print_source_lines_base): Update.
2721 * solib.c (info_sharedlibrary_command): Update.
2722 * skip.c (info_skip_command): Update.
2723 * record-btrace.c (btrace_call_history_src_line)
2724 (btrace_call_history): Update.
2725 * python/py-framefilter.c (py_print_frame): Update.
2726 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2727 "style".
2728 * mi/mi-out.c (mi_ui_out::do_table_header)
2729 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2730 (mi_ui_out::do_field_string): Update.
2731 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2732 Update.
2733 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2734 "style".
2735 * cli-out.c (cli_ui_out::do_table_header)
2736 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2737 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2738 (cli_ui_out::do_field_fmt): Update.
2739 * breakpoint.c (print_breakpoint_location): Update.
2740 (update_static_tracepoint): Update.
2741
cd7c32c3
PW
27422019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2743
2744 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2745 conversion of gdb_datadir.
2746 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2747 remove not needed c_str ().
2748
8fe0f950
AT
27492019-09-30 Ali Tamur <tamur@google.com>
2750
2751 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2752 (dwarf2_string_attr): Likewise.
2753
5f48f8f3
AT
27542019-09-30 Ali Tamur <tamur@google.com>
2755
2756 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2757 (process_full_type_unit): Likewise.
2758 (dump_die_shallow): Likewise.
2759 (cu_debug_loc_section): Likewise.
2760
6fb08628
CB
27612019-09-28 Christian Biesinger <cbiesinger@google.com>
2762
2763 * minsyms.c (compare_minimal_symbols): Rename to...
2764 (minimal_symbol_is_less_than): ...this, and adjust to STL
2765 conventions (return bool, take arguments as references)
2766 (minimal_symbol_reader::install): Call std::sort instead
2767 of qsort.
2768
c7ee338a
CB
27692019-09-29 Christian Biesinger <cbiesinger@google.com>
2770
2771 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2772 hash and why.
2773 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2774 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2775
703a86c2
SM
27762019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2779 * psympriv.h (add_psymbol_to_list): Move comment here and update
2780 it.
2781
0df0352a
TV
27822019-09-29 Tom de Vries <tdevries@suse.de>
2783
2784 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2785 Use $tmpdir/$(basename "$output_file").dwz instead of
2786 "${output_file}.dwz".
2787
ad75efa6
SM
27882019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2789
2790 PR gdb/25045
2791 * hppa-linux-nat.c: Include gdbarch.h.
2792
ececd218
CB
27932019-09-26 Christian Biesinger <cbiesinger@google.com>
2794
2795 * blockframe.c (find_pc_partial_function): Change return type to bool.
2796 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2797 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2798 (stub_gnu_ifunc_resolve_name): Likewise.
2799 * symtab.c (compare_filenames_for_search): Likewise.
2800 (compare_glob_filenames_for_search): Likewise.
2801 (matching_obj_sections): Likewise.
2802 (symbol_matches_domain): Likewise.
2803 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2804 (find_line_pc): Change return type to bool.
2805 (find_line_pc_range): Likewise.
2806 (producer_is_realview): Likewise.
2807 * symtab.h (symbol_matches_domain): Likewise.
2808 (find_pc_partial_function): Likewise.
2809 (find_pc_line_pc_range): Likewise.
2810 (in_gnu_ifunc_stub): Likewise.
2811 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2812 (find_line_pc): Likewise.
2813 (find_line_pc_range): Likewise.
2814 (matching_obj_sections): Likewise.
2815 (find_line_symtab): Change out parameter to bool.
2816 (producer_is_realview): Change return type to bool.
2817 (compare_filenames_for_search): Likewise.
2818 (compare_glob_filenames_for_search): Likewise.
2819
27a900b8
TT
28202019-09-26 Tom Tromey <tom@tromey.com>
2821
2822 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2823 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2824 * gdb_usleep.h: Remove.
2825 * gdb_usleep.c: Remove.
2826 * utils.c: Don't include gdb_usleep.h.
2827
5d63b30a
TT
28282019-09-26 Tom Tromey <tromey@adacore.com>
2829
2830 * python/py-type.c (type_to_type_object): Call check_typedef
2831 for stub types.
2832
12904d37
TT
28332019-09-26 Tom Tromey <tom@tromey.com>
2834
2835 * utils.h (initialize_utils): Don't declare.
2836 * top.c (gdb_init): Don't call initialize_utils.
2837 * utils.c (initialize_utils): Remove. Move contents...
2838 (_initialize_utils): ... here.
2839
858f25f0
TT
28402019-09-25 Tom Tromey <tom@tromey.com>
2841
2842 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2843 * utils.h (make_hex_string): Don't declare.
2844 * utils.c (make_hex_string): Remove.
2845
3d435220
TV
28462019-09-24 Tom de Vries <tdevries@suse.de>
2847
2848 PR gdb/23815
2849 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2850 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2851
ddd44b70
DD
28522019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2853
2854 * NEWS: Mention new simulator port for PRU.
2855
f945dedf
CB
28562019-09-23 Christian Biesinger <cbiesinger@google.com>
2857
2858 * ada-exp.y (write_object_remaining): Update.
2859 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2860 and eliminate the static buffer.
2861 (ada_decode_symbol): Update.
2862 (ada_la_decode): Update.
2863 (ada_sniff_from_mangled_name): Update.
2864 (is_valid_name_for_wild_match): Update.
2865 (ada_lookup_name_info::matches): Update and simplify.
2866 (name_matches_regex): Update.
2867 (ada_add_global_exceptions): Update.
2868 * ada-lang.h (ada_decode): Update signature.
2869 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2870 * dwarf-index-write.c (debug_names::insert): Update.
2871
7ab78ccb
SM
28722019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2873
2874 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2875 formatting.
2876
9252448b
SM
28772019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2880 Change "nonzero" to "true" in documentation.
2881
626ca2c0
CB
28822019-09-20 Christian Biesinger <cbiesinger@google.com>
2883
2884 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2885 (_initialize_darwin_solib): Don't set
2886 darwin_so_ops.lookup_lib_global_symbol.
2887 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2888 set_gdbarch_iterate_over_objfiles_in_search_order.
2889 (elf_lookup_lib_symbol): Rename to...
2890 (svr4_iterate_over_objfiles_in_search_order): this, and update
2891 to iterate semantics.
2892 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2893 * solib.c (solib_global_lookup): Remove.
2894 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2895 (solib_global_lookup): Remove.
2896 * symtab.c (lookup_global_or_static_symbol): Remove call to
2897 solib_global_lookup.
2898
5a3a0d63
JB
28992019-09-20 Joel Brobecker <brobecker@adacore.com>
2900
2901 * NEWS: Move entries about default MI version now being
2902 version 3, and about the GDB/MI fix for multi-location
2903 breakpoints to the "since GDB 8.3" section.
2904
ffea1427
JB
29052019-09-20 Joel Brobecker <brobecker@adacore.com>
2906
2907 GDB 8.3.1 released.
2908
abf516c6
UW
29092019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2910
2911 * NEWS: Mention that Cell/B.E. debugging support was removed.
2912 * MAINTAINERS: Remove spu target.
2913
2914 * config/djgpp/fnchange.lst: Remove entries for removed files.
2915
2916 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2917 spu-multiarch.o, and spu-tdep.o.
2918 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2919 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2920 spu-multiarch.c, and spu-tdep.c.
2921 * spu-linux-nat.c: Remove file.
2922 * spu-multiarch.c: Remove file.
2923 * spu-tdep.c: Remove file.
2924 * spu-tdep.h: Remove file.
2925 * solib-spu.c: Remove file.
2926 * solib-spu.h: Remove file.
2927
2928 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2929 * configure.nat (spu-linux): Remove.
2930 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2931 solib-multiarch.o from gdb_target_obs.
2932 (spu*-*-*): Remove.
2933
2934 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2935 feature flag.
2936 (ppc_linux_no_features): Update.
2937 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2938 Cell/B.E. support.
2939 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2940 (tdesc_powerpc_cell64l): Likewise.
2941 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2942 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2943 Cell/B.E. support.
2944 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2945 Do not include "features/rs6000/powerpc-cell32l.c" or
2946 "features/rs6000/powerpc-cell64l.c".
2947 (ppc_linux_spu_section): Remove.
2948 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2949 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2950 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2951 (ppc_linux_spe_context_lookup): Remove.
2952 (ppc_linux_spe_context_inferior_created): Remove.
2953 (ppc_linux_spe_context_solib_loaded): Remove.
2954 (ppc_linux_spe_context_solib_unloaded): Remove.
2955 (ppc_linux_spe_context): Remove.
2956 (struct ppu2spu_cache): Remove.
2957 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2958 (struct ppu2spu_data): Remove.
2959 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2960 ppu2spu_unwind): Remove.
2961 (ppc_linux_init_abi): Remove Cell/B.E. support.
2962 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2963
2964 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2965 (rs6000/powerpc-cell64l-expedite): Likewise
2966 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2967 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2968 rs6000/powerpc-cell64l.xml.
2969 * features/rs6000/powerpc-cell32l.xml: Remove.
2970 * features/rs6000/powerpc-cell64l.xml: Likewise.
2971 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2972 * features/rs6000/powerpc-cell64l.c: Likewise.
2973 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2974 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2975 * regformats/reg-spu.dat: Remove.
2976
2977 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2978 * corelow.c (struct spuid_list): Remove.
2979 (add_to_spuid_list): Remove.
2980 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2981 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2982 (remote_protocol_features): Remove associated entries.
2983 (_initialize_remote): No longer initialize them.
2984 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2985 * linux-nat.c (SPUFS_MAGIC): Remove.
2986 (linux_proc_xfer_spu): Remove.
2987 (spu_enumerate_spu_ids): Remove.
2988 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2989 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2990 (linux_make_corefile_notes): No longer call it.
2991
2992 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2993 (cooked_write_test): Likewise.
2994
78e8cb91
TT
29952019-09-20 Tom Tromey <tom@tromey.com>
2996
2997 * NEWS: Mention case-sensitivity of TUI commands.
2998 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2999 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3000 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3001
f074b67e
TT
30022019-09-20 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-source.c (tui_source_window::set_contents): Use
3005 make_unique_xstrdup.
3006 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3007 make_unique_xstrdup.
3008
63c4bf19
TT
30092019-09-20 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-data.c: Remove separator comments.
3012 * tui/tui-layout.c: Remove separator comments.
3013 * tui/tui-win.c: Remove separator comments.
3014 * tui/tui-wingeneral.c: Remove separator comments.
3015
43df9b2f
TT
30162019-09-20 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui.h (strcat_to_buf): Don't declare.
3019 * tui/tui.c (strcat_to_buf): Remove.
3020
7226433c
TT
30212019-09-20 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3024 from "fullname".
3025 * tui/tui-source.c (tui_source_window::set_contents)
3026 (tui_source_window::location_matches_p)
3027 (tui_source_window::maybe_update): Update.
3028
80df3337
TT
30292019-09-20 Tom Tromey <tom@tromey.com>
3030
3031 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3032 Update.
3033 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3034 prefix.
3035 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3036 (tui_data_window::line_from_reg_element_no)
3037 (tui_data_window::first_reg_element_no_inline)
3038 (tui_data_window::show_registers)
3039 (tui_data_window::show_register_group)
3040 (tui_data_window::display_registers_from)
3041 (tui_data_window::display_registers_from_line)
3042 (tui_data_window::first_data_item_displayed)
3043 (tui_data_window::delete_data_content_windows)
3044 (tui_data_window::erase_data_content)
3045 (tui_data_window::do_scroll_vertical)
3046 (tui_data_window::refresh_window)
3047 (tui_data_window::check_register_values): Update.
3048
9923f347
TT
30492019-09-20 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3052 (struct tui_locator_window) <full_name, proc_name>: Now
3053 std::string.
3054 * tui/tui-stack.c (tui_locator_window::make_status_line)
3055 (tui_locator_window::set_locator_fullname)
3056 (tui_locator_window::set_locator_info): Update.
3057 * tui/tui-source.c (tui_source_window::set_contents)
3058 (tui_source_window::showing_source_p): Update.
3059
b76251ab
TT
30602019-09-20 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3063 Don't call tui_locator_win_info_ptr.
3064
0891be08
TT
30652019-09-20 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3068
1b935acf
TT
30692019-09-20 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3072 height for locator.
3073 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3074 * tui/tui-layout.c (show_source_disasm_command, show_data)
3075 (show_source_or_disasm_and_command): Use 1 as height for locator.
3076
9abd8a65
TT
30772019-09-20 Tom Tromey <tom@tromey.com>
3078
3079 * tui/tui.c (tui_enable): Update.
3080 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3081 Update.
3082 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3083 Update.
3084 * tui/tui-data.c (win_resized): Now bool.
3085 (tui_win_resized): Return bool.
3086 (tui_set_win_resized_to): Accept a bool.
3087
b5457826
TT
30882019-09-20 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3091 Change type of "refresh_values_only".
3092 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3093 type of "refresh_values_only".
3094
6b915f7d
TT
30952019-09-20 Tom Tromey <tom@tromey.com>
3096
3097 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3098 std::string.
3099 (tui_disassemble): Add "pos" parameter.
3100 (tui_disasm_window::set_contents): Simplify.
3101
2ad52f6f
TT
31022019-09-20 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-winsource.h (struct tui_source_window_base)
3105 <show_source_content>: Now private.
3106 * tui/tui-winsource.c
3107 (tui_source_window_base::show_source_content): Don't handle empty
3108 content case.
3109
b3b1bde6
TT
31102019-09-20 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-layout.c (show_source_disasm_command)
3113 (show_source_or_disasm_and_command): Don't call
3114 show_source_content.
3115
71a25ed2
TT
31162019-09-20 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3119 Declare.
3120 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3121 from tui_make_status_line.
3122 (tui_locator_window::rerender): Update.
3123
f8532154
TT
31242019-09-20 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3127 (tui_locator_window::rerender): Update.
3128
2d81b349
TT
31292019-09-20 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-winsource.h (struct tui_source_window_base)
3132 <~tui_source_window_base>: Don't declare.
3133 <fullname>: Remove.
3134 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3135 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3136 member.
3137 * tui/tui-source.c (tui_source_window::set_contents): Update.
3138 (tui_source_window::location_matches_p)
3139 (tui_source_window::maybe_update): Update.
3140
f14bec58
TT
31412019-09-20 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-winsource.h (~tui_source_element): Remove.
3144 (tui_source_element): Update.
3145 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3146 * tui/tui-winsource.c (tui_show_source_line): Update.
3147 * tui/tui-source.c (tui_source_window::set_contents): Update.
3148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3149
78d5933a
TT
31502019-09-20 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3153 declare.
3154 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3155 tui_clear_source_windows_detail.
3156 * tui/tui-winsource.h (struct tui_source_window_base)
3157 <clear_detail>: Don't declare.
3158 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3159 Remove.
3160 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3161
d4207696
TT
31622019-09-20 Tom Tromey <tromey@adacore.com>
3163
3164 PR ada/24919:
3165 * block.c (contained_in): Fix final return value.
3166
00f93c44
AM
31672019-09-20 Alan Modra <amodra@gmail.com>
3168
3169 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3170 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3171 (read_indirect_string_from_dwz): Use bfd accessor.
3172 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3173 * machoread.c (macho_symfile_read_all_oso): Likewise.
3174 * solib.c (solib_bfd_open): Likewise.
3175
e4153ae6
CB
31762019-09-19 Christian Biesinger <cbiesinger@google.com>
3177
3178 * eval.c: Move declaration of overload_resolution to...
3179 * value.h: ...here.
3180
c7ae7675
CB
31812019-09-19 Christian Biesinger <cbiesinger@google.com>
3182
3183 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3184 * arm-linux-tdep.c: Likewise.
3185 * arm-nbsd-nat.c: Likewise.
3186 * arm-tdep.h: Declare arm_apcs_32.
3187 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3188
e86f08d2
CB
31892019-09-19 Christian Biesinger <cbiesinger@google.com>
3190
3191 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3192 * dwarf2read.h: Declare dwarf_always_disassemble.
3193
f64e2f40
TV
31942019-09-19 Tom de Vries <tdevries@suse.de>
3195
3196 PR gdb/25009
3197 * source-cache.c (source_cache::ensure): Catch exception thrown during
3198 construction of the highlighter.
3199
fd361982
AM
32002019-09-18 Alan Modra <amodra@gmail.com>
3201
3202 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3203 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3204 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3205 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3206 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3207 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3208 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3209 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3210 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3211 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3212 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3213 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3214 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3215 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3216 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3217 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3218 * mi/mi-interp.c: Update throughout for bfd section macro and
3219 function changes.
3220 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3221 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3222
11061048
TT
32232019-09-18 Tom Tromey <tom@tromey.com>
3224
3225 * NEWS: Add entry.
3226 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3227 call rl_initialize.
3228 (tui_enable): Do not call rl_initialize.
3229
7a27b85f
CG
32302019-09-18 Christian Groessler <chris@groessler.org>
3231
3232 * alpha-linux-nat.c: Include gdbarch.h.
3233
f64eea3a
SM
32342019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3235
3236 * ui-file.c: Include cli/cli-style.h.
3237 (term_cli_styling): Remove cli_styling declaration.
3238
e6f7f6d1
AM
32392019-09-18 Alan Modra <amodra@gmail.com>
3240
3241 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3242 to bfd_asymbol_section.
3243
1d38e9d1
AM
32442019-09-18 Alan Modra <amodra@gmail.com>
3245
3246 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3247 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3248 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3249
90d92a63
AM
32502019-09-18 Alan Modra <amodra@gmail.com>
3251
3252 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3253 * spu-linux-nat.c (spu_bfd_open): Likewise.
3254
a3d181d2
CB
32552019-09-18 Christian Biesinger <cbiesinger@google.com>
3256
3257 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3258 to bool to match definition in dwarf2read.c.
3259
491144b5
CB
32602019-09-17 Christian Biesinger <cbiesinger@google.com>
3261
3262 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3263 (print_signatures): Likewise.
3264 (trust_pad_over_xvs): Likewise.
3265 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3266 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3267 * arm-linux-nat.c (arm_apcs_32): Likewise.
3268 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3269 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3270 * arm-tdep.c (arm_debug): Likewise.
3271 (arm_apcs_32): Likewise.
3272 * auto-load.c (debug_auto_load): Likewise.
3273 (auto_load_gdb_scripts): Likewise.
3274 (global_auto_load): Likewise.
3275 (auto_load_local_gdbinit): Likewise.
3276 (auto_load_local_gdbinit_loaded): Likewise.
3277 * auto-load.h (global_auto_load): Likewise.
3278 (auto_load_local_gdbinit): Likewise.
3279 (auto_load_local_gdbinit_loaded): Likewise.
3280 * breakpoint.c (disconnected_dprintf): Likewise.
3281 (breakpoint_proceeded): Likewise.
3282 (automatic_hardware_breakpoints): Likewise.
3283 (always_inserted_mode): Likewise.
3284 (target_exact_watchpoints): Likewise.
3285 (_initialize_breakpoint): Update.
3286 * breakpoint.h (target_exact_watchpoints): Change to bool.
3287 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3288 * cli/cli-cmds.c (trace_commands): Likewise.
3289 * cli/cli-cmds.h (trace_commands): Likewise.
3290 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3291 to bool*.
3292 * cli/cli-logging.c (logging_overwrite): Change to bool.
3293 (logging_redirect): Likewise.
3294 (debug_redirect): Likewise.
3295 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3296 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3297 to bool.
3298 <boolean_option_def>: Update.
3299 (struct flag_option_def): Change default type of Context to bool
3300 from int.
3301 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3302 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3303 (get_setshow_command_value_string): Likewise.
3304 * cli/cli-style.c (cli_styling): Change to bool.
3305 (source_styling): Likewise.
3306 * cli/cli-style.h (source_styling): Likewise.
3307 (cli_styling): Likewise.
3308 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3309 to bool.
3310 * command.h (var_types): Update comment.
3311 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3312 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3313 bool.
3314 (debug_compile_cplus_scopes): Likewise.
3315 * compile/compile-internal.h (compile_debug): Likewise.
3316 * compile/compile.c (compile_debug): Likewise.
3317 (struct compile_options) <raw>: Likewise.
3318 * cp-support.c (catch_demangler_crashes): Likewise.
3319 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3320 (usr_cmd_cris_dwarf2_cfi): Likewise.
3321 * csky-tdep.c (csky_debug): Likewise.
3322 * darwin-nat.c (enable_mach_exceptions): Likewise.
3323 * dcache.c (dcache_enabled_p): Likewise.
3324 * defs.h (info_verbose): Likewise.
3325 * demangle.c (demangle): Likewise.
3326 (asm_demangle): Likewise.
3327 * dwarf-index-cache.c (debug_index_cache): Likewise.
3328 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3329 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3330 * dwarf2read.c (check_physname): Likewise.
3331 (use_deprecated_index_sections): Likewise.
3332 (dwarf_always_disassemble): Likewise.
3333 * eval.c (overload_resolution): Likewise.
3334 * event-top.c (set_editing_cmd_var): Likewise.
3335 (exec_done_display_p): Likewise.
3336 * event-top.h (set_editing_cmd_var): Likewise.
3337 (exec_done_display_p): Likewise.
3338 * exec.c (write_files): Likewise.
3339 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3340 (debug_fbsd_nat): Likewise.
3341 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3342 Likewise.
3343 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3344 <backtrace_past_entry> Likewise.
3345 * gdb-demangle.h (demangle): Likewise.
3346 (asm_demangle): Likewise.
3347 * gdb_bfd.c (bfd_sharing): Likewise.
3348 * gdbcore.h (write_files): Likewise.
3349 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3350 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3351 * gdbthread.h (print_thread_events): Likewise.
3352 * gdbtypes.c (opaque_type_resolution): Likewise.
3353 (strict_type_checking): Likewise.
3354 * gnu-nat.c (gnu_debug_flag): Likewise.
3355 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3356 * guile/scm-param.c (pascm_variable): Add boolval.
3357 (add_setshow_generic): Update.
3358 (pascm_param_value): Update.
3359 (pascm_set_param_value_x): Update.
3360 * hppa-tdep.c (hppa_debug): Change to bool..
3361 * infcall.c (may_call_functions_p): Likewise.
3362 (coerce_float_to_double_p): Likewise.
3363 (unwind_on_signal_p): Likewise.
3364 (unwind_on_terminating_exception_p): Likewise.
3365 * infcmd.c (startup_with_shell): Likewise.
3366 * inferior.c (print_inferior_events): Likewise.
3367 * inferior.h (startup_with_shell): Likewise.
3368 (print_inferior_events): Likewise.
3369 * infrun.c (step_stop_if_no_debug): Likewise.
3370 (detach_fork): Likewise.
3371 (debug_displaced): Likewise.
3372 (disable_randomization): Likewise.
3373 (non_stop): Likewise.
3374 (non_stop_1): Likewise.
3375 (observer_mode): Likewise.
3376 (observer_mode_1): Likewise.
3377 (set_observer_mode): Update.
3378 (sched_multi): Change to bool.
3379 * infrun.h (debug_displaced): Likewise.
3380 (sched_multi): Likewise.
3381 (step_stop_if_no_debug): Likewise.
3382 (non_stop): Likewise.
3383 (disable_randomization): Likewise.
3384 * linux-tdep.c (use_coredump_filter): Likewise.
3385 (dump_excluded_mappings): Likewise.
3386 * linux-thread-db.c (auto_load_thread_db): Likewise.
3387 (check_thread_db_on_load): Likewise.
3388 * main.c (captured_main_1): Update.
3389 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3390 xx2_opt, boolean_opt>: Change to bool.
3391 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3392 * maint.c (maintenance_profile_p): Likewise.
3393 (per_command_time): Likewise.
3394 (per_command_space): Likewise.
3395 (per_command_symtab): Likewise.
3396 * memattr.c (inaccessible_by_default): Likewise.
3397 * mi/mi-main.c (mi_async): Likewise.
3398 (mi_async_1): Likewise.
3399 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3400 * nat/fork-inferior.h (startup_with_shell): Likewise.
3401 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3402 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3403 * nios2-tdep.c (nios2_debug): Likewise.
3404 * or1k-tdep.c (or1k_debug): Likewise.
3405 * parse.c (parser_debug): Likewise.
3406 * parser-defs.h (parser_debug): Likewise.
3407 * printcmd.c (print_symbol_filename): Likewise.
3408 * proc-api.c (procfs_trace): Likewise.
3409 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3410 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3411 (set_parameter_value): Update.
3412 (add_setshow_generic): Update.
3413 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3414 to bool*.
3415 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3416 int*.
3417 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3418 * record-btrace.c (record_btrace_target::store_registers): Update.
3419 * record-full.c (record_full_memory_query): Change to bool.
3420 (record_full_stop_at_limit): Likewise.
3421 * record-full.h (record_full_memory_query): Likewise.
3422 * remote-notif.c (notif_debug): Likewise.
3423 * remote-notif.h (notif_debug): Likewise.
3424 * remote.c (use_range_stepping): Likewise.
3425 (interrupt_on_connect): Likewise.
3426 (remote_break): Likewise.
3427 * ser-tcp.c (tcp_auto_retry): Likewise.
3428 * ser-unix.c (serial_hwflow): Likewise.
3429 * skip.c (debug_skip): Likewise.
3430 * solib-aix.c (solib_aix_debug): Likewise.
3431 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3432 (spu_auto_flush_cache_p): Likewise.
3433 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3434 Likewise.
3435 (struct info_print_options) <quiet>: Likewise.
3436 * symfile-debug.c (debug_symfile): Likewise.
3437 * symfile.c (auto_solib_add): Likewise.
3438 (separate_debug_file_debug): Likewise.
3439 * symfile.h (auto_solib_add): Likewise.
3440 (separate_debug_file_debug): Likewise.
3441 * symtab.c (basenames_may_differ): Likewise.
3442 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3443 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3444 (struct info_types_options) <quiet>: Likewise.
3445 * symtab.h (demangle): Likewise.
3446 (basenames_may_differ): Likewise.
3447 * target-dcache.c (stack_cache_enabled_1): Likewise.
3448 (code_cache_enabled_1): Likewise.
3449 * target.c (trust_readonly): Likewise.
3450 (may_write_registers): Likewise.
3451 (may_write_memory): Likewise.
3452 (may_insert_breakpoints): Likewise.
3453 (may_insert_tracepoints): Likewise.
3454 (may_insert_fast_tracepoints): Likewise.
3455 (may_stop): Likewise.
3456 (auto_connect_native_target): Likewise.
3457 (target_stop_and_wait): Update.
3458 (target_async_permitted): Change to bool.
3459 (target_async_permitted_1): Likewise.
3460 (may_write_registers_1): Likewise.
3461 (may_write_memory_1): Likewise.
3462 (may_insert_breakpoints_1): Likewise.
3463 (may_insert_tracepoints_1): Likewise.
3464 (may_insert_fast_tracepoints_1): Likewise.
3465 (may_stop_1): Likewise.
3466 * target.h (target_async_permitted): Likewise.
3467 (may_write_registers): Likewise.
3468 (may_write_memory): Likewise.
3469 (may_insert_breakpoints): Likewise.
3470 (may_insert_tracepoints): Likewise.
3471 (may_insert_fast_tracepoints): Likewise.
3472 (may_stop): Likewise.
3473 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3474 (make_thread_apply_all_options_def_group): Change argument from int*
3475 to bool*.
3476 (thread_apply_all_command): Update.
3477 (print_thread_events): Change to bool.
3478 * top.c (confirm): Likewise.
3479 (command_editing_p): Likewise.
3480 (history_expansion_p): Likewise.
3481 (write_history_p): Likewise.
3482 (info_verbose): Likewise.
3483 * top.h (confirm): Likewise.
3484 (history_expansion_p): Likewise.
3485 * tracepoint.c (disconnected_tracing): Likewise.
3486 (circular_trace_buffer): Likewise.
3487 * typeprint.c (print_methods): Likewise.
3488 (print_typedefs): Likewise.
3489 * utils.c (debug_timestamp): Likewise.
3490 (sevenbit_strings): Likewise.
3491 (pagination_enabled): Likewise.
3492 * utils.h (sevenbit_strings): Likewise.
3493 (pagination_enabled): Likewise.
3494 * valops.c (overload_resolution): Likewise.
3495 * valprint.h (struct value_print_options) <prettyformat_arrays,
3496 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3497 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3498 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3499 Likewise.
3500 * windows-nat.c (new_console): Likewise.
3501 (cygwin_exceptions): Likewise.
3502 (new_group): Likewise.
3503 (debug_exec): Likewise.
3504 (debug_events): Likewise.
3505 (debug_memory): Likewise.
3506 (debug_exceptions): Likewise.
3507 (useshell): Likewise.
3508 * windows-tdep.c (maint_display_all_tib): Likewise.
3509 * xml-support.c (debug_xml): Likewise.
3510
f1b620e9
MG
35112019-09-17 Mike Gulick <mgulick@mathworks.com>
3512
3513 * source.c (prepare_path_for_appending): New function.
3514 (openp): Make use of new function.
3515 (find_and_open_source): Search for the compilation directory and
3516 source file as a relative path beneath the directory search path.
3517
67f3ed6a
AB
35182019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * source-cache.c (source_cache::get_line_charpos): Catch
3521 exceptions and return false, this matches the behaviour documented
3522 in the header file.
3523
74332189
JB
35242019-09-17 Joel Brobecker <brobecker@adacore.com>
3525
3526 * ada-tasks.c (info_task): Remove quoting of the task's name.
3527
f2f24aa9
CB
35282019-09-16 Christian Biesinger <cbiesinger@google.com>
3529
3530 * symfile.c (auto_solib_add): Replace comment with a reference
3531 to the header file.
3532
6a062a93
CB
35332019-09-14 Christian Biesinger <cbiesinger@google.com>
3534
3535 * NEWS: Mention that gdb can now be compiled with Python 3
3536 on Windows.
3537
ec6c8338
AB
35382019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * maint.c (maint_print_section_data::maint_print_section_data):
3541 Force use of 'float log10 (float)' by casting the argument to
3542 float.
3543
aa17805f
AB
35442019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3545
3546 * maint.c: Add 'cmath' include.
3547 (struct maint_print_section_data): New structure.
3548 (print_section_index): New function.
3549 (print_bfd_section_info): Add header comment, small whitespace
3550 cleanup, and update to call new print_section_index function.
3551 (print_objfile_section_info): Likewise.
3552 (maint_obj_section_from_bfd_section): New function.
3553 (print_bfd_section_info_maybe_relocated): New function.
3554 (maintenance_info_sections): Add header comment, always use
3555 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3556
3dd9bb46
AB
35572019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3560 inner scope, add check that the objfile has psymtabs before
3561 checking psymtabs_addrmap.
3562 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3563
4993045d
PW
35642019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3565
3566 * NEWS: Announce that Ada task names are now shown at more places,
3567 and between quotes (except in info task output).
3568 * gdb/ada-tasks.c (task_to_str): New function.
3569 (display_current_task_id): Call task_to_str.
3570 (task_command_1): Likewise.
3571 (print_ada_task_info): In non-mi mode, Properly align headers and data
3572 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3573
7a289707
RO
35742019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3575
3576 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3577 prstatus.pr_lwp.pr_info instead of making it up.
3578
f2aec7f6
CB
35792019-09-11 Christian Biesinger <cbiesinger@google.com>
3580
3581 * auto-load.c (auto_load_expand_dir_vars): Update.
3582 * defs.h (gdb_datadir): Change to std::string.
3583 (python_libdir): Likewise.
3584 (relocate_gdb_directory): Change return type to std::string.
3585 * guile/guile.c (gdbscm_data_directory): Update.
3586 (initialize_scheme_side): Update.
3587 * jit.c (jit_reader_dir): Change to std::string.
3588 (jit_reader_load_command): Update.
3589 * main.c (gdb_datadir): Change to std::string.
3590 (python_libdir): Likewise.
3591 (set_gdb_data_directory): Update.
3592 (relocate_path): Change to return std::string.
3593 (relocate_gdb_directory): Change to return std::string.
3594 (relocate_gdbinit_path_maybe_in_datadir): Update.
3595 (captured_main_1): Update.
3596 * python/python.c (do_start_initialization): Update.
3597 * top.c (show_gdb_datadir): Update.
3598 * xml-syscall.c (xml_init_syscalls_info): Update.
3599 (init_syscalls_info): Update.
3600
9224a013
CB
36012019-09-11 Christian Biesinger <cbiesinger@google.com>
3602
3603 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3604 out of get_init_files.
3605 (get_init_files): Update.
3606
f48cd836
CB
36072019-09-11 Christian Biesinger <cbiesinger@google.com>
3608
3609 * main.c (get_init_files): Change to use std::string.
3610 (captured_main_1): Update.
3611 (print_gdb_help): Update.
3612
9cab7ecd
AT
36132019-09-11 Ali Tamur <tamur@google.com>
3614
3615 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3616 implementation.
3617
67547d89
CB
36182019-09-11 Christian Biesinger <cbiesinger@google.com>
3619
3620 * dbxread.c (read_dbx_symtab): Update.
3621 * dwarf2read.c (load_partial_dies): Update.
3622 * mdebugread.c (parse_partial_symbols): Update.
3623 (handle_psymbol_enumerators): Update.
3624 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3625 * psymtab.c (add_psymbol_to_bcache): Likewise.
3626 (add_psymbol_to_list): Likewise.
3627 * symtab.c (symbol_set_names): Likewise.
3628 * symtab.h (symbol_set_names): Likewise.
3629 * xcoffread.c (scan_xcoff_symtab): Update.
3630
64b2d4a0
TT
36312019-09-11 Tom Tromey <tom@tromey.com>
3632
3633 * symfile-mem.c (symbol_file_add_from_memory): Use
3634 bfd_set_filename.
3635 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3636 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3637
3b00ef10
TT
36382019-09-10 Tom Tromey <tromey@adacore.com>
3639
3640 * dwarf-index-write.c (write_psymbols): Extend error message.
3641 (debug_names::insert): Add Ada code.
3642 (debug_names::write_psymbols): Remove Ada check.
3643 (debug_names) <m_string_obstack>: New member.
3644 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3645 (gdb_index_symbol_name_matcher::matches): Remove.
3646 (mapped_index_base::find_name_components_bounds): Add "lang"
3647 parameter.
3648 (mapped_index_base::build_name_components): Also split names
3649 according to Ada syntax.
3650 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3651 type of "match_callback".
3652 (check_match, check_find_bounds_finds)
3653 (dw2_expand_symtabs_matching): Update.
3654 (dw2_debug_names_iterator): Add new constructor.
3655 (dw2_debug_names_map_matching_symbols): New function.
3656 (dw2_debug_names_expand_symtabs_matching): Update.
3657 (dwarf2_debug_names_functions): Use
3658 dw2_debug_names_map_matching_symbols.
3659
aa391654
TT
36602019-09-10 Tom Tromey <tromey@adacore.com>
3661
3662 * dwarf2read.c (dw2_get_file_names_reader): Add the
3663 CU's file name to the results.
3664
b054970d
TT
36652019-09-10 Tom Tromey <tromey@adacore.com>
3666
3667 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3668 map_matching_symbols. Update.
3669 * dwarf2read.c (dw2_map_matching_symbols): Update.
3670 * psymtab.c (match_partial_symbol): Change type; update.
3671 (psym_map_matching_symbols): Likewise.
3672 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3673 type; update.
3674 * symfile.h (struct quick_symbol_functions)
3675 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3676 Remove "match".
3677
6a3dbf1b
TT
36782019-09-10 Tom Tromey <tromey@adacore.com>
3679
3680 * psymtab.c (map_block): Remove.
3681 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3682 * symtab.c (iterate_over_symbols_terminated): New function.
3683 * symtab.c (iterate_over_symbols_terminated): Declare.
3684
6969f124
TT
36852019-09-10 Tom Tromey <tromey@adacore.com>
3686
3687 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3688 * language.h (struct language_defn) <la_iterate_over_symbols>:
3689 Return bool.
3690 * symtab.c (iterate_over_symbols): Return bool.
3691 * symtab.h (iterate_over_symbols): Return bool.
3692
199b4314
TT
36932019-09-10 Tom Tromey <tromey@adacore.com>
3694
3695 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3696 (add_nonlocal_symbols): Update.
3697 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3698 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3699 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3700 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3701 Change type of "callback". Remove "data".
3702
a084a2a6
AT
3703
37042019-09-09 Ali Tamur <tamur@google.com>
3705
3706 * dwarf2read.c (comp_unit_head): Update comment.
3707 (dwarf2_dwo_name): New function declaration.
3708 (dwarf_unit_type_name): New function declaration.
3709 (read_comp_unit_head): Add support for new compilation units,
3710 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3711 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3712 (currently named as "signature") in their header. Also clarify error
3713 messages.
3714 (lookup_dwo_id): New function. Returns the dwo id of the given
3715 compile unit.
3716 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3717 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3718 functions.
3719 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3720 (dwarf2_dwo_name): Get the dwo name if present.
3721 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3722 purposes.
3723
25a2915e
TT
37242019-09-09 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3727
e4df0874
PW
37282019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3729
3730 * python/python.c (do_start_initialization): Make progname_copy static,
3731 to avoid a leak report.
3732
8634b462
TT
37332019-09-08 Tom Tromey <tom@tromey.com>
3734
3735 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3736
c7f839cb
SM
37372019-09-07 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3740 Change type to gdb::optional<block_enum>.
3741 (dw2_symtab_iter_init): Change block_index parameter type
3742 to gdb::optional<block_enum>.
3743 (dw2_lookup_symbol): Change block_index parameter
3744 type to block_enum.c
3745 (dw2_debug_names_lookup_symbol): Likewise.
3746 * psymtab.c (psym_lookup_symbol): Likewise.
3747 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3748 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3749 Likewise.
3750
ead0e69a
CB
37512019-09-06 Christian Biesinger <cbiesinger@google.com>
3752
3753 * defs.h (relocate_gdb_directory): Change int to bool in
3754 signature and rename flag to relocatable.
3755 * main.c (relocate_path): Likewise.
3756 (relocate_gdb_directory): Likewise.
3757
b16c44de
AM
37582019-09-06 Alan Modra <amodra@gmail.com>
3759
3760 * coffread.c (coff_symfile_read): Constify filename variable.
3761 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3762 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3763 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3764 * solib.c (reload_shared_libraries_1): Likewise.
3765 * symfile.c (reread_symbols): Likewise.
3766 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3767 * solib-darwin.c (darwin_bfd_open): Likewise.
3768 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3769
06ff036e
AB
37702019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3773 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3774
4e962e74
TT
37752019-09-03 Tom Tromey <tromey@adacore.com>
3776
3777 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3778 types.
3779 (has_negatives): Unbias a range type bound.
3780 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3781 * gdbtypes.c (operator==): Handle new field.
3782 (create_range_type): Add "bias" parameter.
3783 (create_static_range_type, resolve_dynamic_range): Update.
3784 * gdbtypes.h (struct range_bounds) <bias>: New member.
3785 (create_range_type): Add bias parameter.
3786 * printcmd.c (print_scalar_formatted): Unbias range types.
3787 * value.c (unpack_long): Unbias range types.
3788 (pack_long): Bias range types.
3789
d90b8f26
AH
37902019-09-02 Alan Hayward <alan.hayward@arm.com>
3791
3792 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3793 probe arguments.
3794
fe01123e
AH
37952019-09-02 Alan Hayward <alan.hayward@arm.com>
3796
3797 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3798 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3799 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3800 (compile_probe_arg): Likewise.
3801 * probe.h (get_argument_count): Likewise.
3802 * solib-svr4.c (solib_event_probe_action): Likewise.
3803 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3804
e661ef01
AH
38052019-09-02 Alan Hayward <alan.hayward@arm.com>
3806
3807 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3808 code to here...
3809 (svr4_create_solib_event_breakpoints): ...from here.
3810
47a536d9
SDJ
38112019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3812
3813 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3814 suffix from warning message.
3815
d6a00eba
TT
38162019-08-30 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-winsource.h (struct tui_source_window_base)
3819 <refresh_all>: Don't declare.
3820 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3821 Remove.
3822 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3823 tui_show_locator_content.
3824 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3825 declare.
3826 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3827 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3828 declare.
3829
55b2657b
TT
38302019-08-30 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3833
12a8555a
TT
38342019-08-30 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3837 Remove unnecessary forward declarations.
3838
900ac242
TT
38392019-08-30 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3842 rerender.
3843 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3844 tui_show_locator_content.
3845
99ab33fb
TT
38462019-08-30 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3849 (tui_locator_window::rerender): Rewrite using body of previous
3850 tui_show_locator_content.
3851
e594a5d1
TT
38522019-08-30 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3855 set_locator_fullname>: New methods.
3856 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3857 Rename from tui_set_locator_fullname.
3858 (tui_locator_window::set_locator_info): Rename from
3859 tui_set_locator_info. Return bool.
3860 (tui_update_locator_fullname, tui_show_frame_info): Update.
3861
715bb467
TT
38622019-08-30 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3865
772f3f03
TT
38662019-08-30 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3869 call touchwin.
3870
108e13ab
TT
38712019-08-30 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-wingeneral.c (box_win): Assume win_info and
3874 win_info->handle cannot be NULL.
3875
cdaa6eb4
TT
38762019-08-30 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3879 refresh_window>: Declare.
3880 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3881 resize.
3882 (tui_data_item_window::rerender): Rename from
3883 tui_display_register.
3884 (tui_data_item_window::refresh_window): New method.
3885 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3886 no-op.
3887
89df7f90
TT
38882019-08-30 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3891 regs_column_count, current_group>: Move later. Now private.
3892 <get_current_group>: New method.
3893 * tui/tui-regs.c (tui_reg_command): Update.
3894 * tui/tui-layout.c (tui_set_layout): Update.
3895
1bf2866a
TT
38962019-08-30 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3899 (tui_data_window::rerender): Don't call
3900 check_and_display_highlight_if_needed.
3901 (tui_data_window::refresh_all): Remove call to
3902 erase_data_content.
3903
0670413d
TT
39042019-08-30 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3907 (tui_data_window::display_registers_from)
3908 (tui_data_window::display_reg_element_at_line)
3909 (tui_data_window::display_registers_from_line): Remove checks of
3910 "empty".
3911
18bb55c7
TT
39122019-08-30 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3915 Don't declare.
3916 * tui/tui-regs.c (tui_data_window::show_registers): Call
3917 rerender.
3918 (tui_data_window::rerender): Rename from display_all_data.
3919 (tui_data_window::rerender): Remove old implementation.
3920
1f6d2f10
TT
39212019-08-30 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3924 text.
3925 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3926
16d01f9c
BW
39272019-08-29 Bernhard Wodok <barto@gmx.net>
3928 Sergio Durigan Junior <sergiodj@redhat.com>
3929
3930 PR win32/24284
3931 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3932
d8f27c60
AB
39332019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3936 when searching for types.
3937
1f20c35e
AB
39382019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * f-lang.c (f_language_defn): Use f_print_typedef.
3941 * f-lang.h (f_print_typedef): Declare.
3942 * f-typeprint.c (f_print_typedef): Define.
3943
550105b7
CB
39442019-08-27 Christian Biesinger <cbiesinger@google.com>
3945
3946 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3947
4acfdd20
AB
39482019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * cli/cli-utils.c (info_print_options_defs): Delete.
3951 (make_info_print_options_def_group): Delete.
3952 (extract_info_print_options): Delete.
3953 (info_print_command_completer): Delete.
3954 (info_print_args_help): Add extra parameter, and optionally
3955 include text about -n flag.
3956 * cli/cli-utils.h (struct info_print_options): Delete.
3957 (extract_info_print_options): Delete declaration.
3958 (info_print_command_completer): Delete declaration.
3959 (info_print_args_help): Add extra parameter, extend header
3960 comment.
3961 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3962 search_symbols.
3963 * stack.c (struct info_print_options): New type.
3964 (info_print_options_defs): New file scoped variable.
3965 (make_info_print_options_def_group): New static function.
3966 (info_print_command_completer): New static function.
3967 (info_locals_command): Update to use new local functions.
3968 (info_args_command): Likewise.
3969 (_initialize_stack): Add extra parameter to calls to
3970 info_print_args_help.
3971 * symtab.c (search_symbols): Add extra parameter, use this to
3972 possibly excluse non-debug symbols.
3973 (symtab_symbol_info): Add extra parameter, which is passed on to
3974 search_symbols.
3975 (struct info_print_options): New type.
3976 (info_print_options_defs): New file scoped variable.
3977 (make_info_print_options_def_group): New static function.
3978 (info_print_command_completer): New static function.
3979 (info_variables_command): Update to use local functions, and pass
3980 extra parameter through to symtab_symbol_info.
3981 (info_functions_command): Likewise.
3982 (info_types_command): Pass additional argument through to
3983 symtab_symbol_info.
3984 (rbreak_command): Pass extra argument to search_symbols.
3985 (_initialize_symtab): Add extra arguments for calls to
3986 info_print_args_help, and update help text for 'info variables',
3987 'whereis', and 'info functions' commands.
3988 * symtab.h (search_symbols): Add extra argument to declaration.
3989 * NEWS: Mention new flags.
3990
9aa55206
CB
39912019-08-26 Christian Biesinger <cbiesinger@google.com>
3992
3993 * symtab.c (lookup_static_symbol): Call the new function (and move
3994 it down to be next to lookup_global_symbol).
3995 (struct global_sym_lookup_data): Add block_enum member and rename to...
3996 (struct global_or_static_sym_lookup_data): ...this.
3997 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3998 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3999 (lookup_symbol_global_or_static_iterator_cb): ...this.
4000 (lookup_global_or_static_symbol): New function.
4001 (lookup_global_symbol): Call new function.
4002
5c31b358
TV
40032019-08-26 Tom de Vries <tdevries@suse.de>
4004
4005 PR c++/24852
4006 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4007 when pc_probe.prob == NULL.
4008
23c13d42
SM
40092019-08-25 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4012 variable symbol_linkage to symbol_linkage_.
4013
beadd3e8
SM
40142019-08-25 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4017 represent whether the symbol is static, dynamic, or we don't
4018 know.
4019
e3ec872f
YS
40202019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4021
4022 * gdb/rx-tdep.c (rx_register_names): New.
4023 (rx_register_name): Delete.
4024 (rx_psw_type): Delete.
4025 (rx_fpsw_type): Delete.
4026 (rx_register_type): Delete.
4027 (rx_gdbarch_init): Convert target-descriptions.
4028 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4029 * gdb/features/Makefile: Add rx.xml.
4030 * gdb/features/rx.xml: New.
4031 * gdb/features/rx.c: Generated.
4032 * gdb/NEWS: Mention target description support.
4033
d0509ba4
CB
40342019-08-22 Christian Biesinger <cbiesinger@google.com>
4035
4036 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4037 *slot_ptr.
4038
2d41fa11
SDJ
40392019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4040
4041 * configure.ac: Don't check for 'dlfcn.h' (moved to
4042 gdbsupport/common.m4).
4043 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4044 'gdbsupport/'.
4045 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4046 * compile/compile-c-support.c: Include
4047 'gdbsupport/gdb-dlfcn.h'.
4048 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4049 * gdb-dlfcn.c: Move to...
4050 * gdbsupport/gdb-dlfcn.c: ... here.
4051 * gdb-dlfcn.h: Move to...
4052 * gdbsupport/gdb-dlfcn.h: ... here.
4053
de8af808
SL
40542019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4055
4056 * nios2-tdep.c (struct reg_value): Improve comments. Make
4057 the offset field signed.
4058
27204489
CB
40592019-08-22 Christian Biesinger <cbiesinger@google.com>
4060
4061 * python/lib/gdb/__init__.py (_execute_file): New function.
4062 * python/python.c (python_run_simple_file): Call gdb._execute_file
4063 on Windows.
4064
43771869
AB
40652019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4068 all uses as this was never set to anything but a zero value.
4069
26c957f1
PA
40702019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4071
4072 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4073
c07aae6e
CB
40742019-08-21 Christian Biesinger <cbiesinger@google.com>
4075
4076 * tui/tui-data.h (tui_gen_win_info): Add an =default
4077 move constructor, required by some GCC versions.
4078
3960cb7a
JF
40792019-08-21 Jinke Fan <fanjinke51@yeah.net>
4080
4081 * go32-nat.c (go32_sysinfo): Add hygon_p.
4082
04c72a68
TT
40832019-08-20 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4086 line_from_reg_element_no, first_reg_element_no_inline,
4087 display_all_data, delete_data_content_windows,
4088 erase_data_content>: Now private.
4089
072272ce
TT
40902019-08-20 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4093 (tui_unhighlight_win, tui_highlight_win)
4094 (tui_win_info::make_window): Update.
4095 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4096
973961bd
TT
40972019-08-20 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4100 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4101 (MAX_PID_WIDTH): Move to tui-stack.c.
4102 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4103 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4104 (MAX_PID_WIDTH): Move from tui-data.h.
4105
ab0e1f1a
TT
41062019-08-20 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4109 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4110 (box_win): Update.
4111 (tui_gen_win_info::make_window): Rename from tui_make_window.
4112 (tui_win_info::make_window): New method.
4113 (tui_gen_win_info::make_visible): Update.
4114 * tui/tui-source.c (tui_source_window::set_contents): Update.
4115 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4116 (tui_data_window::display_registers_from): Update.
4117 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4118 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4119 Declare.
4120 <can_box>: Remove.
4121 <title>: Remove.
4122 (struct tui_win_info) <make_window>: Declare.
4123 <can_box>: Now virtual.
4124 <title>: New member.
4125 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4126 * tui/tui-command.c (tui_cmd_window::resize): Update.
4127
100c2bf3
TT
41282019-08-20 Tom Tromey <tom@tromey.com>
4129
4130 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4131 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4132 (tui_data_window::check_register_values): Update.
4133
fa4dc567
TT
41342019-08-20 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-regs.h (struct tui_data_window): Use
4137 DISABLE_COPY_AND_ASSIGN.
4138 <regs_content>: Change type, removing unique_ptr.
4139 <tui_data_window>: Add move constructor.
4140 * tui/tui-regs.c (tui_data_window::show_registers)
4141 (tui_data_window::show_register_group)
4142 (tui_data_window::display_registers_from)
4143 (tui_data_window::display_registers_from)
4144 (tui_data_window::first_data_item_displayed)
4145 (tui_data_window::delete_data_content_windows)
4146 (tui_data_window::rerender, tui_data_window::refresh_window)
4147 (tui_data_window::check_register_values): Update.
4148
ca02d7c8
TT
41492019-08-20 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4152 show_register_group>: Declare.
4153 (tui_show_register_group): Don't declare.
4154 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4155 tui_show_registers.
4156 (tui_data_window::show_register_group): Rename from
4157 tui_show_register_group.
4158 (tui_data_window::check_register_values, tui_reg_command):
4159 Update.
4160 * tui/tui-layout.c (tui_set_layout): Update.
4161
63356bfd
TT
41622019-08-20 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4165 Declare.
4166 (tui_check_register_values): Don't declare.
4167 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4168 from tui_check_register_values.
4169 * tui/tui-hooks.c (tui_register_changed): Update.
4170
42cc14a7
TT
41712019-08-20 Tom Tromey <tom@tromey.com>
4172
4173 * tui/tui-regs.c (tui_reg_layout): Move later.
4174 (tui_show_registers): Don't enable TUI mode or change layout.
4175
b9ad3686
TT
41762019-08-20 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-regs.h (struct tui_data_item_window)
4179 <~tui_data_item_window>: Remove.
4180 <content>: Now a unique_xmalloc_ptr.
4181 * tui/tui-regs.c (tui_register_format): Return a
4182 unique_xmalloc_ptr.
4183 (tui_get_register): Update.
4184 (~tui_data_item_window): Remove.
4185 (tui_data_window::display_registers_from, tui_display_register):
4186 Update.
4187 * tui/tui-io.h (tui_expand_tabs): Update.
4188 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4189 Remove "col" parameter.
4190
8e114aab
TT
41912019-08-20 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4194 field.
4195 * tui/tui-regs.c (~tui_data_item_window): Update.
4196
1a4f81dd
TT
41972019-08-20 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4200 earlier.
4201
0f8d8876
TT
42022019-08-20 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4205
605dc2c2
TT
42062019-08-20 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-source.h (struct tui_source_window): Update.
4209 * tui/tui-regs.c (tui_show_registers): Update.
4210 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4211 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4212 (NO_REGS_STRING): Remove defines.
4213
aedbe3bb
CM
42142019-08-20 Conrad Meyer <cem@FreeBSD.org>
4215
4216 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4217 unnecessary thread walk if remote doesn't support the packet.
4218
7ce8f214
TT
42192019-08-19 Tom Tromey <tromey@adacore.com>
4220
4221 * python/py-value.c (value_has_field): Fix indentation.
4222
f21c2bd7
TT
42232019-08-19 Tom Tromey <tromey@adacore.com>
4224
4225 * printcmd.c (do_one_display, info_display_command): Update.
4226 * block.h (contained_in): Return bool. Add allow_nested
4227 parameter.
4228 * block.c (contained_in): Return bool. Add allow_nested
4229 parameter.
4230
d806ea2d
TT
42312019-08-19 Tom Tromey <tom@tromey.com>
4232
4233 * configure: Rebuild.
4234 * configure.ac: Disallow the combination of -static-libstdc++ and
4235 source highlight.
4236 * source-cache.c (get_language_name): Handle rust.
4237 (source_cache::get_source_lines): Ignore highlighting exceptions.
4238
398fdd60
TT
42392019-08-16 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4242 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4243 (struct tui_source_window_base) <make_visible, refresh_window,
4244 resize>: Remove methods.
4245 <execution_info>: Remove field.
4246 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4247 (tui_show_source_line, tui_source_window_base)
4248 (~tui_source_window_base): Update.
4249 (tui_source_window_base::resize)
4250 (tui_source_window_base::make_visible)
4251 (tui_source_window_base::refresh_window): Remove.
4252 (tui_source_window_base::update_exec_info): Update.
4253 * tui/tui-source.c (tui_source_window::set_contents): Update.
4254 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4255
e699d331
TT
42562019-08-16 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4259 deprecated_query_hook.
4260
bb01dbfc
TT
42612019-08-16 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4264 (tui_update_source_windows_with_line): Update.
4265 * tui/tui-source.h (struct tui_source_window)
4266 <show_symtab_source>: Declare.
4267 (tui_show_symtab_source): Don't declare.
4268 * tui/tui-source.c (tui_show_symtab_source): Rename from
4269 tui_show_symtab_source.
4270
81c82c4b
TT
42712019-08-16 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-winsource.h (struct tui_source_window_base)
4274 <set_contents>: Declare.
4275 * tui/tui-winsource.c
4276 (tui_source_window_base::update_source_window_as_is): Update.
4277 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4278 Declare.
4279 (tui_set_source_content): Don't declare.
4280 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4281 tui_set_source_content.
4282 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4283 Declare.
4284 (tui_set_disassem_content): Don't declare.
4285 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4286 tui_set_disassem_content.
4287
2ddaf614
TT
42882019-08-16 Tom Tromey <tom@tromey.com>
4289
4290 * tui/tui-winsource.h (struct tui_source_window_base)
4291 <update_breakpoint_info>: Declare.
4292 (tui_update_breakpoint_info): Don't declare.
4293 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4294 (tui_update_all_breakpoint_info): Update.
4295 (tui_source_window_base::update_breakpoint_info): Rename from
4296 tui_update_breakpoint_info.
4297 (tui_source_window_base::update_exec_info): Update.
4298
017f9828
TT
42992019-08-16 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui-winsource.h (struct tui_source_window_base)
4302 <update_source_window>: Declare.
4303 (tui_update_source_window): Don't declare.
4304 * tui/tui-winsource.c
4305 (tui_source_window_base::update_source_window): Rename from
4306 tui_update_source_window.
4307 (tui_source_window_base::rerender): Update.
4308 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4309 * tui/tui-disasm.c (tui_show_disassem)
4310 (tui_show_disassem_and_update_source)
4311 (tui_disasm_window::maybe_update): Update.
4312
ed8358e9
TT
43132019-08-16 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-winsource.h (struct tui_source_window_base)
4316 <update_source_window_as_is>: Declare.
4317 (tui_update_source_window_as_is): Don't declare.
4318 * tui/tui-winsource.c (tui_update_source_window): Update
4319 (tui_source_window_base::update_source_window_as_is): Rename from
4320 tui_update_source_window_as_is.
4321 (tui_source_window_base::refill): Update.
4322 * tui/tui-source.c (tui_show_symtab_source): Update.
4323 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4324 Update.
4325
20149b6b
TT
43262019-08-16 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-winsource.h (tui_update_source_window)
4329 (tui_update_source_window_as_is): Remove "noerror" parameter.
4330 * tui/tui-winsource.c (tui_update_source_window)
4331 (tui_update_source_window_as_is): Remove "noerror" parameter.
4332 (tui_update_source_windows_with_addr)
4333 (tui_update_source_windows_with_line)
4334 (tui_source_window_base::rerender)
4335 (tui_source_window_base::refill): Update.
4336 * tui/tui-source.h (tui_set_source_content)
4337 (tui_show_symtab_source): Remove "noerror" parameter.
4338 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4339 parameter.
4340 (tui_show_symtab_source): Likewise.
4341 (tui_source_window::maybe_update): Update.
4342 * tui/tui-disasm.c (tui_show_disassem)
4343 (tui_show_disassem_and_update_source)
4344 (tui_disasm_window::do_scroll_vertical)
4345 (tui_disasm_window::maybe_update): Update.
4346
2d83e710
TT
43472019-08-16 Tom Tromey <tom@tromey.com>
4348
4349 * tui/tui.c (tui_is_window_visible): Update.
4350 * tui/tui-wingeneral.c (tui_make_window)
4351 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4352 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4353 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4354 (tui_set_win_height_command, parse_scrolling_args): Update.
4355 * tui/tui-source.c (tui_source_window::style_changed): Update.
4356 * tui/tui-regs.c (tui_show_registers)
4357 (tui_data_window::first_data_item_displayed)
4358 (tui_data_window::delete_data_content_windows)
4359 (tui_check_register_values, tui_reg_command): Update.
4360 * tui/tui-disasm.c (tui_show_disassem): Update.
4361 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4362 method.
4363 <is_visible>: Remove field.
4364 * tui/tui-data.c (tui_next_win, tui_prev_win)
4365 (tui_delete_invisible_windows): Update.
4366
d4ab829a
TT
43672019-08-16 Tom Tromey <tom@tromey.com>
4368
4369 * tui/tui-winsource.h (struct tui_source_window_base)
4370 <m_has_locator>: Remove.
4371 * tui/tui-layout.c (show_source_disasm_command, show_data)
4372 (show_source_or_disasm_and_command): Update.
4373
aa7ca1bb
AH
43742019-08-16 Alan Hayward <alan.hayward@arm.com>
4375
4376 * NEWS (Other MI changes): New subsection.
4377 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4378 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4379 * arch-utils.c (default_get_pc_address_flags): New function.
4380 * arch-utils.h (default_get_pc_address_flags): New declaration.
4381 * gdbarch.sh: Add get_pc_address_flags.
4382 * gdbarch.c: Regenerate.
4383 * gdbarch.h: Likewise.
4384 * stack.c (print_pc): New function.
4385 (print_frame_info) (print_frame): Call print_pc.
4386
6eac171f
TV
43872019-08-16 Tom de Vries <tdevries@suse.de>
4388
4389 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4390 print_objfile_section_info.
4391
3df505f6
TT
43922019-08-15 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4395 calling update_cmdwin_start_line.
4396 * tui/tui-winsource.h (struct tui_source_window_base)
4397 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4398 <rerender>: Declare.
4399 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4400 Call rerender.
4401 (tui_source_window_base::set_new_height): Remove.
4402 (tui_source_window_base::rerender): Rename from
4403 do_make_visible_with_new_height.
4404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4405 resize method.
4406 (tui_win_info::make_invisible_and_set_new_height)
4407 (tui_win_info::make_visible_with_new_height): Remove.
4408 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4409 Declare.
4410 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4411 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4412 do_make_visible_with_new_height>: Don't declare.
4413 <rerender>: Declare.
4414 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4415 set_new_height.
4416 (tui_data_window::do_make_visible_with_new_height): Remove.
4417 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4418 call tui_show_locator_content.
4419 (tui_gen_win_info::resize): Call rerender.
4420 (show_source_or_disasm_and_command): Don't call
4421 tui_show_locator_content.
4422 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4423 method.
4424 (struct tui_win_info) <rerender>: Declare.
4425 <set_new_height, make_invisible_and_set_new_height,
4426 make_visible_with_new_height>: Don't declare.
4427 * tui/tui-data.c (tui_win_list::rerender): New method.
4428 * tui/tui-command.h (struct tui_cmd_window)
4429 <do_make_visible_with_new_height>: Don't declare.
4430 * tui/tui-command.c
4431 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4432
272560b5
TT
44332019-08-15 Tom Tromey <tromey@adacore.com>
4434
4435 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4436 * ada-lang.c (ada_enum_name): Likewise.
4437
08235187
CB
44382019-08-15 Christian Biesinger <cbiesinger@google.com>
4439
4440 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4441 leading underscore.
4442 (GdbOutputErrorFile): Likewise.
4443 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4444 accordingly.
4445 (execute_unwinders): Rename to have a leading underscore.
4446 (auto_load_packages): Likewise.
4447 (global scope): Adjust call to auto_load_packages accordingly.
4448 (GdbSetPythonDirectory): Likewise.
4449 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4450 instead of execute_unwinders.
4451
db502012
TT
44522019-08-15 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4455 (show_data): Don't change window visibility.
4456 (tui_gen_win_info::resize): Remove special case for command
4457 window. Use wresize, when available.
4458 (show_source_or_disasm_and_command): Don't change window
4459 visibility.
4460 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4461 <make_visible>: New method.
4462 * tui/tui-command.c (tui_cmd_window::resize): New method.
4463
3891b65e
TT
44642019-08-15 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4467 (struct tui_source_windows): New.
4468 * tui/tui-winsource.c (tui_display_main): Update.
4469 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4470 (new_height_ok, parse_scrolling_args): Update.
4471 * tui/tui-layout.c (show_layout, show_data): Update.
4472 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4473 (tui_add_to_source_windows): Don't declare.
4474 * tui/tui-data.c (source_windows, tui_source_windows)
4475 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4476
ee556432
TT
44772019-08-15 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4480 Rename from reset.
4481 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4482 * tui/tui-layout.c (show_source_disasm_command, show_data):
4483 Update.
4484 (tui_gen_win_info::resize): Rename.
4485 (show_source_or_disasm_and_command): Update.
4486 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4487 reset.
4488
46f438e3
TT
44892019-08-15 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4492 * tui/tui-interp.c (tui_interp::init): Don't call
4493 tui_initialize_static_data.
4494 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4495
f4ce562c
TT
44962019-08-15 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4499 examine tui_win_list.
4500
c398c3d0
TT
45012019-08-15 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4504 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4505 tui_clear_source_content.
4506 (tui_clear_source_content): Remove.
4507 (tui_source_window_base::do_erase_source_content): Hoist call to
4508 content.clear().
4509 * tui/tui-stack.c (tui_show_frame_info): Don't call
4510 tui_clear_source_content.
4511
e25d2004
TT
45122019-08-15 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-winsource.h (struct tui_source_window_base)
4515 <do_erase_source_content>: New method.
4516 <erase_source_content>: New method.
4517 (tui_erase_source_content): Don't declare.
4518 * tui/tui-winsource.c (tui_clear_source_content): Update.
4519 (tui_source_window_base::do_erase_source_content): Rename from
4520 tui_erase_source_content.
4521 (tui_source_window_base::show_source_content): Update.
4522 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4523 * tui/tui-source.h (struct tui_source_window)
4524 <erase_source_content>: New method.
4525 * tui/tui-disasm.h (struct tui_disasm_window)
4526 <erase_source_content>: New method.
4527
002f15c2
TT
45282019-08-15 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4531 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4532 constructor.
4533 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4534 * tui/tui-source.c (tui_set_source_content): Update.
4535 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4536
c9033fe8
TT
45372019-08-15 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4540 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4541 tui-source.c.
4542 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4543 Declare.
4544 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4545 method.
4546 (tui_source_window::maybe_update): Update.
4547
088f37dd
TT
45482019-08-15 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4551 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4552 tui-disasm.c.
4553 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4554 Declare.
4555 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4556 method.
4557 (tui_disasm_window::maybe_update): Update.
4558
a54700c6
TT
45592019-08-15 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-winsource.h (struct tui_source_window_base)
4562 <maybe_update>: Declare.
4563 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4564 method.
4565 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4566 Declare.
4567 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4568 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4569 Declare.
4570 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4571
e2a678a5
TT
45722019-08-15 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4575
f2dda477
TT
45762019-08-15 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-wingeneral.c: Include tui-stack.h.
4579 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4580 (struct tui_locator_window): Move from tui-data.h.
4581 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4582 (tui_initialize_static_data): Move from tui-data.c.
4583 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4584 (struct tui_locator_window): Move to tui-stack.c.
4585 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4586 (tui_initialize_static_data): Move to tui-stack.c.
4587
ed4a1084
TT
45882019-08-15 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-layout.c (show_source_disasm_command)
4591 (show_source_or_disasm_and_command): Use make_visible method, not
4592 tui_make_window.
4593 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4594 Remove.
4595
65962b20
TT
45962019-08-15 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-wingeneral.h (tui_make_window): Update.
4599 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4600 parameter.
4601 (tui_gen_win_info::make_visible): Update.
4602 * tui/tui-regs.c (tui_data_window::display_registers_from):
4603 Update.
4604 * tui/tui-layout.c (show_source_disasm_command)
4605 (show_source_or_disasm_and_command): Update.
4606 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4607 (enum tui_box): Remove.
4608 (struct tui_win_info) <can_box>: New method.
4609 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4610 method.
4611
2208ee91
TV
46122019-08-15 Tom de Vries <tdevries@suse.de>
4613
4614 * linux-nat-trad.c: Include gdbarch.h.
4615
75faf5c4
AH
46162019-08-14 Alan Hayward <alan.hayward@arm.com>
4617
4618 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4619 register sizes.
4620
b1c896b3
TT
46212019-08-14 Tom Tromey <tromey@adacore.com>
4622
4623 * darwin-nat.c: Include gdbarch.h.
4624 * darwin-nat-info.c: Include gdbarch.h.
4625
6405cd73
TT
46262019-08-13 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4629 Remove.
4630 * tui/tui-data.c (tui_initialize_static_data): Update.
4631
5216580d
TT
46322019-08-13 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-winsource.h (struct tui_exec_info_window)
4635 <~tui_exec_info_window, maybe_allocate_content, get_content,
4636 m_content>: Remove.
4637 (struct tui_source_window_base) <set_exec_info_content,
4638 show_exec_info_content>: Don't declare.
4639 * tui/tui-winsource.c
4640 (tui_exec_info_window::maybe_allocate_content): Remove.
4641 (tui_source_window_base::update_exec_info): Rename from
4642 set_exec_info_content.
4643 (tui_source_window_base::show_exec_info_content)
4644 (tui_source_window_base::update_exec_info): Remove.
4645
93858ad3
TT
46462019-08-13 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4649 declare.
4650 * tui/tui-winsource.c (tui_update_source_window_as_is)
4651 (tui_update_source_windows_with_addr, tui_erase_source_content):
4652 Update.
4653 (tui_clear_exec_info_content): Remove.
4654
e321e7ce
TT
46552019-08-13 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4658 declare.
4659 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4660 call tui_erase_exec_info_content.
4661 (tui_clear_exec_info_content): Rename from
4662 tui_erase_exec_info_content.
4663 (tui_clear_exec_info_content): Delete.
4664
8270ac62
TT
46652019-08-13 Tom Tromey <tom@tromey.com>
4666
4667 * tui/tui-winsource.h (struct tui_source_window_base)
4668 <show_exec_info_content>: Declare.
4669 (tui_show_exec_info_content): Don't declare.
4670 * tui/tui-winsource.c
4671 (tui_source_window_base::show_exec_info_content): Rename from
4672 tui_show_exec_info_content.
4673 (tui_source_window_base::update_exec_info): Update.
4674
7b56485d
TT
46752019-08-13 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4678 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4679 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4680 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4681 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4682 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4683 ... here.
4684
7ba913dc
TT
46852019-08-13 Tom Tromey <tom@tromey.com>
4686
4687 * tui/tui-winsource.h (struct tui_source_window_base)
4688 <update_exec_info>: Declare.
4689 (tui_update_exec_info): Don't declare.
4690 * tui/tui-winsource.c (tui_update_source_window_as_is)
4691 (tui_source_window_base::refresh_all)
4692 (tui_update_all_breakpoint_info): Update.
4693 (tui_source_window_base::update_exec_info): Rename from
4694 tui_update_exec_info.
4695 * tui/tui-stack.c (tui_show_frame_info): Update.
4696
37a4a131
TT
46972019-08-13 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-winsource.h (struct tui_source_window_base)
4700 <set_exec_info_content>: Declare.
4701 (tui_set_exec_info_content): Don't declare.
4702 * tui/tui-winsource.c
4703 (tui_source_window_base::set_exec_info_content): Rename from
4704 tui_set_exec_info_content.
4705 (tui_update_exec_info): Update.
4706
0bd27e07
TT
47072019-08-13 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-winsource.h (struct tui_source_window_base)
4710 <show_source_content>: Declare.
4711 (tui_show_source_content): Don't declare.
4712 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4713 (tui_source_window_base::show_source_content): Rename from
4714 tui_show_source_content.
4715 (tui_source_window_base::refresh_all): Update.
4716 * tui/tui-layout.c (show_source_disasm_command)
4717 (show_source_or_disasm_and_command): Update.
4718
b4ef5aeb
TT
47192019-08-13 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-winsource.c (tui_erase_source_content)
4722 (tui_show_source_content, tui_source_window_base::refresh_all):
4723 Update.
4724 * tui/tui-wingeneral.h
4725 (tui_check_and_display_highlight_if_needed): Don't declare.
4726 * tui/tui-wingeneral.c
4727 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4728 check_and_display_highlight_if_needed.
4729 * tui/tui-win.c (tui_rehighlight_all)
4730 (tui_win_info::make_visible_with_new_height): Update.
4731 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4732 (tui_data_window::erase_data_content)
4733 (tui_data_window::display_all_data): Update.
4734 * tui/tui-data.h (struct tui_win_info)
4735 <check_and_display_highlight_if_needed>: Declare.
4736
fede5273
TT
47372019-08-13 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-win.c (tui_resize_all): Call
4740 tui_delete_invisible_windows.
4741 * tui/tui-layout.c (show_layout): Call
4742 tui_delete_invisible_windows.
4743 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4744 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4745
22c3f490
TT
47462019-08-13 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4749 tui_add_win_to_layout.
4750
16cb7910
TT
47512019-08-13 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4754 * tui/tui-layout.c (tui_default_win_height): Now static.
4755
cc0c3ffb
TT
47562019-08-13 Tom Tromey <tom@tromey.com>
4757
4758 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4759 single switch.
4760 (show_source_disasm_command, show_source_or_disasm_and_command):
4761 Don't check current layout.
4762
3f3ffe54
TT
47632019-08-13 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-wingeneral.c (make_all_visible): Remove.
4766 (tui_make_all_invisible): Simplify.
4767 * tui/tui-layout.c (tui_make_all_invisible): Move from
4768 tui-wingeneral.c; simplify.
4769 (show_layout): Hoist call to tui_make_all_invisible.
4770 (show_data): Don't call tui_make_all_invisible.
4771
69258091
TT
47722019-08-13 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4775 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4776
62cf57fe
TT
47772019-08-13 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4780 tui-data.c.
4781 (show_source_disasm_command, show_data)
4782 (show_source_or_disasm_and_command): Don't use
4783 tui_set_current_layout_to.
4784 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4785 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4786 tui-layout.c.
4787 (tui_set_current_layout_to): Remove.
4788
2afade5d
TT
47892019-08-13 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-layout.c (tui_set_layout): Update.
4792 * tui/tui-data.h (struct tui_layout_def): Remove.
4793 (tui_layout_def): Don't declare.
4794 * tui/tui-data.c (layout_def): Remove.
4795 (tui_layout_def): Remove.
4796
a3504e96
TT
47972019-08-13 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-winsource.h (struct tui_source_window_base)
4800 <clear_detail>: No longer "override".
4801 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4802 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4803 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4804 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4805 Remove.
4806 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4807
29c92911
TT
48082019-08-13 Tom Tromey <tromey@adacore.com>
4809
4810 * tracepoint.c: Don't include readline.h or history.h.
4811
86c6b807
TT
48122019-08-12 Tom Tromey <tom@tromey.com>
4813
4814 * configure: Rebuild.
4815 * configure.ac: Check for readline 7.
4816 * NEWS: Mention readline 7 requirement.
4817 * README: Update.
4818
5db2718c
TT
48192019-08-12 Tom Tromey <tom@tromey.com>
4820
4821 * mingw-hdep.c (gdb_select): Remove readline hack.
4822
dac36daf
PFC
48232019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4824
4825 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4826 when the function fails.
4827
1022c627
AA
48282019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4829
4830 * s390-tdep.c (s390_type_align): New function.
4831 (s390_gdbarch_init): Set it as type_align gdbarch method.
4832
eba4caf2
TV
48332019-08-09 Tom de Vries <tdevries@suse.de>
4834
4835 PR gdb/24591
4836 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4837 pc_low with relocation offset.
4838
123cd851
TT
48392019-08-07 Tom Tromey <tromey@adacore.com>
4840
4841 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4842 (print_frame_args): Update.
4843 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4844 Update.
4845 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4846 * frame.h (struct frame_arg): Add initializers.
4847 <error>: Now a unique_xmalloc_ptr.
4848
3d31bc39
AH
48492019-08-07 Alan Hayward <alan.hayward@arm.com>
4850
4851 * NEWS: Expand the Pointer Authentication entry.
4852 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4853 (aarch64_frame_unmask_lr): ... to this.
4854 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4855 Call aarch64_frame_unmask_lr.
4856 * frame.c (struct frame_info): Add "masked" variable.
4857 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4858 (fprint_frame): Check for masked pc.
4859 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4860 declarations.
4861 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4862 * stack.c (print_frame): Check for masked pc.
4863
0cf9feb9
TT
48642019-08-06 Tom Tromey <tom@tromey.com>
4865
4866 * stabsread.c (patch_block_stabs, read_one_struct_field)
4867 (read_enum_type): Use obstack_strndup.
4868 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4869 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4870 * dwarf2read.c (guess_full_die_structure_name)
4871 (anonymous_struct_prefix): Use obstack_strndup.
4872 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4873 * c-exp.y (yylex): Use obstack_strndup.
4874 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4875 (write_var_or_type): Use obstack_strndup.
4876
efba19b0
TT
48772019-08-06 Tom Tromey <tom@tromey.com>
4878
4879 * symfile.c (reread_symbols): Use obstack_strdup.
4880 * stabsread.c (read_type): Use obstack_strdup.
4881 * gdb_obstack.h (obstack_strdup): New overload.
4882 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4883 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4884 (dwarf2_canonicalize_name): Use obstack_strdup.
4885 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4886 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4887 Use obstack_strdup.
4888
f25102f7
TT
48892019-08-06 Tom Tromey <tom@tromey.com>
4890
4891 * gdb_obstack.h (obstack_strdup): Define.
4892 * gdb_obstack.c (obstack_strdup): Don't define.
4893
021887d8
TT
48942019-08-06 Tom Tromey <tom@tromey.com>
4895
4896 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4897 obstack_strdup.
4898 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4899 obstack_strdup.
4900 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4901 * stabsread.c (common_block_start): Use obstack_strdup.
4902 * objfiles.c (set_objfile_main_name, objfile): Use
4903 obstack_strdup.
4904 * namespace.c (add_using_directive): Use obstack_strdup.
4905 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4906 * jit.c (finalize_symtab): Use obstack_strdup.
4907 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4908 (guess_partial_die_structure_name, partial_die_info::fixup)
4909 (dwarf2_name): Use obstack_strdup.
4910 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4911 obstack_strdup.
4912 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4913 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4914 obstack_strdup.
4915 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4916
d2834edc
PW
49172019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4918
4919 * unittests/help-doc-selftests.c: New file.
4920 * Makefile.in: Add the new file.
4921
590042fc
PW
49222019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4923
4924 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4925 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4926 the full first line, except when FOR_VALUE_PREFIX. In this case,
4927 the trailing '.' is not output, and the first character is uppercased.
4928 (print_help_for_command): Update call to print_doc_line.
4929 (print_doc_of_command): Likewise.
4930 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4931 * cli/cli-option.c (append_indented_doc): Do not append newline.
4932 (build_help_option): Append newline after first appended_indented_doc
4933 only if a second call is done.
4934 (build_help): Append 2 new lines before each option, except the first
4935 one.
4936 * compile/compile.c (_initialize_compile): Add new lines after
4937 %OPTIONS%, when not at the end of the help.
4938 Change help doc or code
4939 producing the help doc to respect the invariants.
4940 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4941 Also removed the new line after 'Options:', as all other commands
4942 do not put an empty line between 'Options:' and the first option.
4943 * printcmd.c (_initialize_printcmd): Likewise.
4944 * stack.c (_initialize_stack): Likewise.
4945 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4946 incorrectly telling COMMAND is optional.
4947 * ada-lang.c (_initialize_ada_language): Change help doc or code
4948 producing the help doc to respect the invariants.
4949 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4950 * breakpoint.c (_initialize_breakpoint): Likewise.
4951 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4952 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4953 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4954 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4955 _initialize_cli_style): Likewise.
4956 * corelow.c (core_target_info): Likewise.
4957 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4958 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4959 * filesystem.c (_initialize_filesystem): Likewise.
4960 * frame.c (_initialize_frame): Likewise.
4961 * gnu-nat.c (add_task_commands): Likewise.
4962 * infcall.c (_initialize_infcall): Likewise.
4963 * infcmd.c (_initialize_infcmd): Likewise.
4964 * interps.c (_initialize_interpreter): Likewise.
4965 * language.c (_initialize_language): Likewise.
4966 * linux-fork.c (_initialize_linux_fork): Likewise.
4967 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4968 * maint.c (_initialize_maint_cmds): Likewise.
4969 * memattr.c (_initialize_mem): Likewise.
4970 * printcmd.c (_initialize_printcmd): Likewise.
4971 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4972 _RegEx): Likewise.
4973 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4974 * record-btrace.c (_initialize_record_btrace): Likewise.
4975 * record-full.c (_initialize_record_full): Likewise.
4976 * record.c (_initialize_record): Likewise.
4977 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4978 * regcache.c (_initialize_regcache): Likewise.
4979 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4980 _initialize_remote): Likewise.
4981 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4982 * serial.c (_initialize_serial): Likewise.
4983 * skip.c (_initialize_step_skip): Likewise.
4984 * source.c (_initialize_source): Likewise.
4985 * stack.c (_initialize_stack): Likewise.
4986 * symfile.c (_initialize_symfile): Likewise.
4987 * symtab.c (_initialize_symtab): Likewise.
4988 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4989 * top.c (init_main): Likewise.
4990 * tracefile-tfile.c (tfile_target_info): Likewise.
4991 * tracepoint.c (_initialize_tracepoint): Likewise.
4992 * tui/tui-win.c (_initialize_tui_win): Likewise.
4993 * utils.c (add_internal_problem_command): Likewise.
4994 * valprint.c (value_print_option_defs): Likewise.
4995
404f2902
FCE
49962019-08-06 Frank Ch. Eigler <fche@redhat.com>
4997
4998 PR build/24886
4999 * configure.ac: Drop enable-libmcheck support.
5000 * configure, config.in: Rebuild.
5001 * libmcheck.m4: Remove.
5002 * acinclude.m4: Don't include it.
5003 * Makefile.in: Don't distribute it.
5004 * top.c (print_gdb_configuration): Don't mention it.
5005
046bebe1
TT
50062019-08-06 Tom Tromey <tom@tromey.com>
5007
5008 * utils.c (set_output_style): Sometimes pass stream to
5009 emit_style_escape.
5010 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5011 * record-btrace.c (btrace_insn_history): Update.
5012 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5013 method.
5014 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5015 Update initializers.
5016 <m_uiout>: New field.
5017 <m_di>: Move lower.
5018 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5019 Remove "uiout" parameter.
5020 (dump_insns): Update.
5021 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5022 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5023
ddbcedf5
CB
50242019-08-06 Christian Biesinger <cbiesinger@google.com>
5025
5026 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5027 (error_in_psymtab_expansion): Likewise.
5028 (lookup_symbol_via_quick_fns): Likewise.
5029 (basic_lookup_transparent_type_quick): Likewise.
5030 (basic_lookup_transparent_type_1): Likewise.
5031
b08b16c8
TT
50322019-08-06 Tom Tromey <tromey@adacore.com>
5033
5034 * source.c (last_source_error): Now bool.
5035 (print_source_lines_base): Make "noprint" bool. Only open
5036 source file when last_source_visited changes.
5037
cb44333d
TT
50382019-08-06 Tom Tromey <tromey@adacore.com>
5039
5040 * annotate.c (annotate_source_line): Use g_source_cache.
5041 * source-cache.c (source_cache::get_plain_source_lines): Change
5042 parameters. Populate m_offset_cache.
5043 (source_cache::ensure): New method.
5044 (source_cache::get_line_charpos): New method.
5045 (extract_lines): Move lower. Change parameters.
5046 (source_cache::get_source_lines): Move lower.
5047 * source-cache.h (class source_cache): Update comment.
5048 <get_line_charpos>: New method.
5049 <get_source_lines>: Update comment.
5050 <clear>: Clear m_offset_cache.
5051 <get_plain_source_lines>: Change parameters.
5052 <ensure>: New method
5053 <m_offset_cache>: New member.
5054 * source.c (forget_cached_source_info_for_objfile): Update.
5055 (info_source_command): Use g_source_cache.
5056 (find_source_lines, open_source_file_with_line_charpos): Remove.
5057 (print_source_lines_base, search_command_helper): Use g_source_cache.
5058 * source.h (open_source_file_with_line_charpos): Don't declare.
5059 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5060 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5061 Use g_source_cache.
5062
872dceaa
TT
50632019-08-06 Tom Tromey <tromey@adacore.com>
5064
5065 * source-cache.c (source_cache::get_plain_source_lines):
5066 Remove "first_line" and "last_line" parameters.
5067 (source_cache::get_source_lines): Cache plain text.
5068 * source-cache.h (class source_cache)
5069 <get_plain_source_lines>: Update.
5070
269249d9
TT
50712019-08-06 Tom Tromey <tromey@adacore.com>
5072
5073 * source-cache.c (extract_lines): No longer a method.
5074 Changed type of parameter. Include final newline.
5075 (selftests::extract_lines_test): New function.
5076 (_initialize_source_cache): Likewise.
5077 * source-cache.h (class source_cache)
5078 <extract_lines>: Don't declare.
5079
c0e8dcd8
TT
50802019-08-06 Tom Tromey <tromey@adacore.com>
5081
5082 * breakpoint.c (init_breakpoint_sal): Update.
5083 (breakpoint): Update.
5084 * breakpoint.h (struct breakpoint) <filter>: Now a
5085 unique_xmalloc_ptr.
5086
0b27c27d
CB
50872019-08-05 Christian Biesinger <cbiesinger@google.com>
5088
5089 * NEWS: Mention dictionary access on blocks.
5090 * python/py-block.c (blpy_getitem): New function.
5091 (block_object_as_mapping): New struct.
5092 (block_object_type): Use new struct for tp_as_mapping field.
5093
4ee94178
CB
50942019-08-05 Christian Biesinger <cbiesinger@google.com>
5095
5096 * objfiles.h (objfile): Add a comment describing partial symbols.
5097
8abfcabc
TT
50982019-08-05 Tom Tromey <tromey@adacore.com>
5099
5100 * compile/compile.c (_initialize_compile): Use _(), not N_().
5101 * thread.c (_initialize_thread): Use _(), not N_().
5102 * stack.c (_initialize_stack): Use _(), not N_().
5103 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5104
2b79f376
SM
51052019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5106
5107 * dwarf2read.c (struct dw2_symtab_iterator):
5108 <want_specific_block>: Remove.
5109 <block_index>: Change type to gdb::optional.
5110 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5111 change type of BLOCK_INDEX parameter to gdb::optional.
5112 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5113 (dw2_lookup_symbol): Don't pass argument for
5114 WANT_SPECIFIC_BLOCK.
5115 (dw2_expand_symtabs_for_function): Don't pass argument for
5116 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5117 (class dw2_debug_names_iterator)
5118 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5119 parameter, change BLOCK_INDEX type to gdb::optional.
5120 <m_want_specific_block>: Remove.
5121 <m_block_index>: Change type to gdb::optional.
5122 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5123 gdb::optional. Re-write in function of gdb::optional.
5124 (dw2_debug_names_lookup_symbol): Don't pass argument for
5125 WANT_SPECIFIC_BLOCK.
5126 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5127 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5128 BLOCK_INDEX.
5129
ae60f04e
PW
51302019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5131
5132 * NEWS: Mention changes to "info sources" command.
5133
28cd9371
PW
51342019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5135
5136 * symtab.c (filename_partial_match_opts): New struct type.
5137 (struct output_source_filename_data): New members
5138 regexp, c_regexp, partial_match.
5139 (output_source_filename): Use new members to decide to print file.
5140 (info_sources_option_defs): New variable.
5141 (make_info_sources_options_def_group, print_info_sources_header,
5142 info_sources_command_completer):
5143 New functions.
5144 (info_sources_command): Read new optional arguments.
5145 (_initialize_symtab): Update info sources help.
5146
ca683e3a
AO
51472019-08-02 Alexandre Oliva <oliva@adacore.com>
5148
5149 * ada-lang.c (exception_support_info_v0): Renamed from...
5150 (default_exception_support_info): ... this. Create new
5151 definition for v1.
5152 (ada_has_this_exception_support): Look up catch_handlers_sym.
5153 (ada_exception_support_info_sniffer): Try v0 after default.
5154
f1264162
TT
51552019-08-01 Tom Tromey <tromey@adacore.com>
5156
5157 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5158 gdbarch.h.
5159
0a7b2485
CB
51602019-08-01 Christian Biesinger <cbiesinger@google.com>
5161
5162 * s12z-tdep.c: Fix include path for s12z-opc.h.
5163
c6bdbeb7
AH
51642019-08-01 Alan Hayward <alan.hayward@arm.com>
5165
5166 * NEWS: Require GNU make 3.82.
5167
a2bd7b82
TT
51682019-07-16 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5171 declare.
5172
aa3b6533
TT
51732019-07-30 Tom Tromey <tromey@adacore.com>
5174
5175 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5176
a1530dc7
KB
51772019-07-30 Kevin Buettner <kevinb@redhat.com>
5178
5179 * printcmd.c (print_address_symbolic): Print negative offsets.
5180 (build_address_symbolic): Force signed arithmetic when computing
5181 offset.
5182
2906593f
CB
51832019-07-30 Christian Biesinger <cbiesinger@google.com>
5184
5185 PR/24474: Add a function to lookup static variables.
5186 * NEWS: Mention this new function.
5187 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5188 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5189 * python/python.c (python_GdbMethods): Add new function.
5190
c620ed88
CB
51912019-07-29 Christian Biesinger <cbiesinger@google.com>
5192
5193 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5194 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5195 (objfpy_lookup_static_symbol): New function.
5196 (objfile_object_methods): Add new functions.
5197
bc4268a5
PW
51982019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5199
5200 * NEWS: Mention 'set|show print frame-info'. Mention new
5201 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5202 backtrace argument. Mention that python frame filtering code
5203 is now consistent with what 'backtrace' command prints.
5204
4b5e8d19
PW
52052019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5206
5207 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5208 comments.
5209 (print_frame_info_auto, print_frame_info_source_line,
5210 print_frame_info_location, print_frame_info_source_and_location,
5211 print_frame_info_location_and_address, print_frame_info_short_location):
5212 New declarations.
5213 (struct frame_print_options): New member print_frame_info.
5214 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5215 * stack.h (get_user_print_what_frame_info): New declaration.
5216 (frame_show_address): New declaration.
5217 * stack.c (print_frame_arguments_choices): New value 'presence'.
5218 (print_frame_info_auto, print_frame_info_source_line,
5219 print_frame_info_location, print_frame_info_source_and_location,
5220 print_frame_info_location_and_address, print_frame_info_short_location,
5221 print_frame_info_choices, print_frame_info_print_what): New definitions.
5222 (print_frame_args): Only print dots for args if print frame-arguments
5223 is 'presence'.
5224 (frame_print_option_defs): New element for "frame-info".
5225 (get_user_print_what_frame_info): New function.
5226 (frame_show_address): Make non static. Move comment to stack.h.
5227 (print_frame_info_to_print_what): New function.
5228 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5229 to decide what to print.
5230 (backtrace_command_1): Handle the new print_frame_arguments_presence
5231 value.
5232 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5233 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5234 (py_print_frame): In non-mi mode, use LOCATION as default for
5235 print_what, similarly to frame information printed directly by
5236 backtrace command. Handle frame-info user option in non MI mode.
5237
6bdfee81
KB
52382019-07-27 Kevin Buettner <kevinb@redhat.com>
5239
5240 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5241 Add case for debugging 32-bit target on 64-bit host. Revise
5242 comment.
5243
98a617f8
KB
52442019-07-27 Kevin Buettner <kevinb@redhat.com>
5245
5246 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5247 instead of find_function_entry_range_from_pc.
5248
567238c9
KB
52492019-07-27 Kevin Buettner <kevinb@redhat.com>
5250
5251 * stack.c (find_frame_funname): Remove code which preferred
5252 minsym over symtab sym in "certain pathological cases".
5253
2dc80cf8
KB
5254 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5255 parameter. Change type of "do_demangle" to bool.
5256 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5257 Pass suitable "prefer_sym_over_minsym" flag to
5258 build_address_symbolic(). Don't output "+" for negative offsets.
5259 * printcmd.c (print_address_symbolic): Update invocation of
5260 build_address_symbolic to include a "prefer_sym_over_minsym"
5261 flag.
5262 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5263 Restrict cases in which use of minimal symbol is preferred to that
5264 of a found symbol. Update comments.
5265
1aff7173
KB
5266 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5267 for entry pc when entry pc is out of range for that FDE.
5268
89b085ac
BC
52692019-07-26 Brian Callahan <bcallah@openbsd.org>
5270
5271 PR gdb/24839:
5272 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5273 type.
5274
f32feb4a
CB
52752019-07-25 Christian Biesinger <cbiesinger@google.com>
5276
5277 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5278 this function's Python signature.
5279
5280
52812019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5282
5283 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5284 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5285 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5286 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5287 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5288
5289
c54e4253
YS
52902019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5291
5292 * h8300-tdep.c (h8300_register_name_common): New.
5293 h8300_register_name): Use h8300_register_name_common.
5294 (h8300s_register_name): Likewise.
5295 (h8300sx_register_name): Likewise.
5296 (h8300h_register_nam): New.
5297 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5298
5299
40eadf04
SP
53002019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5301
5302 * arm-tdep.c (arm_skip_cmse_entry): New function.
5303 (arm_is_sgstubs_section): New function.
5304 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5305
bfa2a36d
TT
53062019-07-22 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5309 Don't self-assign.
5310
a8e9d247
AB
53112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5312
5313 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5314 type_print.
5315
eb86c5e2
AB
53162019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5319 so that GDB doesn't match any msymbols when searching in the
5320 TYPES_DOMAIN.
5321 (print_symbol_info): Print using typedef_print or type_print based
5322 on the type of the symbol. Add updated FIXME comment moved from...
5323 (_initialize_symtab): ... move and update FIXME comment to above.
5324
a8eab7c6
AB
53252019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5326
5327 * NEWS: Mention adding -q option to "info types".
5328 * symtab.c (struct info_types_options): New struct.
5329 (info_types_options_defs): New variable.
5330 (make_info_types_options_def_group): New function.
5331 (info_types_command): Use gdb::option framework to parse options.
5332 (info_types_command_completer): New function.
5333 (_initialize_symtab): Extend the help text on "info types" and
5334 register command completer.
5335
b4603c34
CB
53362019-07-21 Christian Biesinger <cbiesinger@google.com>
5337
5338 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5339 (lookup_symbol_in_objfile): Change int to block_enum and add a
5340 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5341
c8cdc1e0
CB
53422019-07-20 Christian Biesinger <cbiesinger@google.com>
5343
5344 * MAINTAINERS (Write After Approval): Add self.
5345
01e175fe
AB
53462019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5349 instruction to the dummy code region.
5350
56f79b63
TT
53512019-07-19 Tom Tromey <tromey@adacore.com>
5352
5353 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5354 (ARGSUSED, PARAMS, __func__): Remove rules.
5355
4c5aa8e0
AH
53562019-07-19 Alan Hayward <alan.hayward@arm.com>
5357
5358 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5359 * features/arm/arm-with-iwmmxt.c: Remove.
5360 * features/arm/arm-with-iwmmxt.xml: Remove.
5361 * features/arm/arm-with-m-fpa-layout.c: Remove.
5362 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5363 * features/arm/arm-with-m-vfp-d16.c: Remove.
5364 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5365 * features/arm/arm-with-m.c: Remove.
5366 * features/arm/arm-with-m.xml: Remove.
5367 * features/arm/arm-with-neon.c: Remove.
5368 * features/arm/arm-with-neon.xml: Remove.
5369 * features/arm/arm-with-vfpv2.c: Remove.
5370 * features/arm/arm-with-vfpv2.xml: Remove.
5371 * features/arm/arm-with-vfpv3.c: Remove.
5372 * features/arm/arm-with-vfpv3.xml: Remove.
5373
f42b2617
AH
53742019-07-19 Alan Hayward <alan.hayward@arm.com>
5375
5376 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5377
f29ec966
AH
53782019-07-19 Alan Hayward <alan.hayward@arm.com>
5379
5380 * arch/aarch32.c (aarch32_create_target_description): Create
5381 target descriptions using features.
5382 * arch/arm.c (arm_create_target_description)
5383 (arm_create_mprofile_target_description): Likewise.
5384 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5385
d105cce5
AH
53862019-07-19 Alan Hayward <alan.hayward@arm.com>
5387
5388 * Makefile.in: Add new files.
5389 * aarch32-tdep.c: New file.
5390 * aarch32-tdep.h: New file.
5391 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5392 Call aarch32_read_description.
5393 * arch/aarch32.c: New file.
5394 * arch/aarch32.h: New file.
5395 * arch/arm.c (arm_create_target_description)
5396 (arm_create_mprofile_target_description): New function.
5397 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5398 (arm_create_target_description)
5399 (arm_create_mprofile_target_description): New declaration.
5400 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5401 read_description functions.
5402 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5403 Likewise.
5404 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5405 * arm-tdep.c (tdesc_arm_list): New variable.
5406 (arm_register_g_packet_guesses): Call create description functions.
5407 (arm_read_description) (arm_read_mprofile_description): New
5408 function.
5409 * arm-tdep.h (arm_read_description)
5410 (arm_read_mprofile_description): Add declaration.
5411 * configure.tgt: Add new files.
5412
afe09f0b
GL
54132019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5414
5415 * top.c (new_ui_command): Open specified terminal just once.
5416
cd215b2e
TT
54172019-07-18 Tom Tromey <tromey@adacore.com>
5418
5419 * symtab.c (main_name): Constify return type.
5420 * symfile.c (set_initial_language): Update.
5421 * symtab.h (main_name): Constify return type.
5422
d8f68fcb
TT
54232019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-winsource.c (tui_update_source_window)
5426 (tui_update_source_window_as_is)
5427 (tui_update_source_windows_with_line): Remove return.
5428 * tui/tui-disasm.c (tui_show_disassem)
5429 (tui_show_disassem_and_update_source): Remove return.
5430 * tui/tui.c (tui_reset): Remove return.
5431 * tui/tui-wingeneral.c
5432 (tui_check_and_display_highlight_if_needed): Remove return.
5433
ca5af91e
TT
54342019-07-17 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5437
5104fe36
TT
54382019-07-17 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui-winsource.h (struct tui_exec_info_window)
5441 (struct tui_source_window_base): Move from tui-data.h.
5442 * tui/tui-winsource.c: Move many method definitions from
5443 elsewhere. Remove "structuring" comments.
5444 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5445 (tui_source_window_base::refresh_window): Move to
5446 tui-winsource.c.
5447 * tui/tui-win.c (tui_source_window_base::refresh_all)
5448 (tui_source_window_base::update_tab_width)
5449 (tui_source_window_base::set_new_height)
5450 (tui_source_window_base::do_make_visible_with_new_height): Move to
5451 tui-winsource.c.
5452 * tui/tui-source.h: Update.
5453 * tui/tui-source.c (tui_source_window_base::reset): Move to
5454 tui-winsource.c.
5455 * tui/tui-disasm.h: Update.
5456 * tui/tui-data.h (struct tui_exec_info_window): Move to
5457 tui-winsource.h.
5458 (struct tui_source_window_base): Likewise.
5459 * tui/tui-data.c (tui_source_window_base::clear_detail)
5460 (tui_source_window_base, ~tui_source_window_base): Move to
5461 tui-winsource.c.
5462
daa15dde
TT
54632019-07-17 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-win.c (tui_resize_all)
5466 (tui_source_window_base::update_tab_width)
5467 (tui_adjust_win_heights): Update.
5468 (tui_win_info::make_invisible_and_set_new_height): Rename from
5469 make_invisible_and_set_new_height.
5470 * tui/tui-data.h (struct tui_win_info)
5471 <make_invisible_and_set_new_height>: New method.
5472
bfad4537
TT
54732019-07-17 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui.c: Update.
5476 * tui/tui-source.h (struct tui_source_window): Move from
5477 tui-data.h.
5478 * tui/tui-layout.c: Update.
5479 * tui/tui-disasm.c: Update.
5480 * tui/tui-data.h (struct tui_source_window): Move to
5481 tui-source.h.
5482
88f7e873
TT
54832019-07-17 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5486 tui-data.h.
5487 * tui/tui-data.h (struct tui_disasm_window): Move to
5488 tui-disasm.h.
5489
96bd6233
TT
54902019-07-17 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-regs.h (struct tui_data_item_window): Move from
5493 tui-data.h.
5494 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5495 * tui/tui-data.h (struct tui_data_item_window): Move to
5496 tui-regs.h.
5497 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5498
ce38393b
TT
54992019-07-17 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui.c: Update.
5502 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5503 (tui_cmd_window::max_height): Move to tui-command.c.
5504 * tui/tui-layout.c: Update.
5505 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5506 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5507 tui-command.c.
5508 * tui/tui-command.h (struct tui_cmd_window): Move from
5509 tui-data.h.
5510 * tui/tui-command.c: Remove "structuring" comments.
5511 (tui_cmd_window::clear_detail)
5512 (tui_cmd_window::do_make_visible_with_new_height)
5513 (tui_cmd_window::max_height): Move from elsewhere.
5514
2d8b51cb
TT
55152019-07-17 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5518 Now static.
5519 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5520 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5521
18ab23af
TT
55222019-07-17 Tom Tromey <tom@tromey.com>
5523
5524 * tui/tui.c: Update.
5525 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5526 tui-regs.c.
5527 * tui/tui-windata.h: Remove file.
5528 * tui/tui-windata.c: Remove file.
5529 * tui/tui-win.c (tui_data_window::set_new_height)
5530 (tui_data_window::do_make_visible_with_new_height): Move to
5531 tui-regs.c.
5532 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5533 * tui/tui-regs.c: Remove "structuring" comments.
5534 (tui_data_window::first_data_item_displayed)
5535 (tui_data_window::delete_data_content_windows)
5536 (tui_data_window::erase_data_content)
5537 (tui_data_window::display_all_data)
5538 (tui_data_window::refresh_all)
5539 (tui_data_window::do_scroll_vertical)
5540 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5541 (tui_data_window::do_make_visible_with_new_height)
5542 (tui_data_window::refresh_window): Move from elsewhere.
5543 (_initialize_tui_regs): Move to end of file.
5544 * tui/tui-layout.c: Update.
5545 * tui/tui-hooks.c: Update.
5546 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5547 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5548 tui-regs.c.
5549 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5550
88b7e7cc
TT
55512019-07-17 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5554 seen.
5555
0fcd3711
TT
55562019-07-17 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-win.c (tui_source_window_base::set_new_height)
5559 (tui_source_window_base::do_make_visible_with_new_height): Use
5560 m_has_locator field directly.
5561 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5562 method.
5563 (struct tui_source_window_base) <has_locator>: Likewise.
5564
4a38112d
TT
55652019-07-17 Tom Tromey <tom@tromey.com>
5566
5567 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5568 Don't declare.
5569 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5570 Remove.
5571 * tui/tui-win.c (tui_source_window_base::set_new_height)
5572 (tui_source_window_base::set_new_height)
5573 (make_invisible_and_set_new_height)
5574 (tui_source_window_base::do_make_visible_with_new_height)
5575 (tui_source_window_base::do_make_visible_with_new_height):
5576 Update.
5577 * tui/tui-layout.c (show_source_disasm_command, show_data)
5578 (show_source_or_disasm_and_command): Update.
5579 * tui/tui-layout.c (show_layout): Update.
5580
09129226
TT
55812019-07-17 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-layout.c (make_data_window): Remove.
5584 (show_data): Unify creation and re-initialization cases.
5585
4a8a5e84
TT
55862019-07-17 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-layout.c (make_source_window, make_disasm_window):
5589 Remove.
5590 (show_data): Unify creation and re-initialization cases.
5591
76d2be8e
TT
55922019-07-17 Tom Tromey <tom@tromey.com>
5593
5594 * tui/tui-layout.c (make_command_window): Remove.
5595 (show_source_disasm_command, show_source_or_disasm_and_command):
5596 Unify creation and re-initialization cases.
5597
890b8bde
TT
55982019-07-17 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5601 creation and re-initialization cases.
5602
2cdfa113
TT
56032019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-regs.c (tui_get_register): Return void.
5606
8e3cfd09
TT
56072019-07-17 Tom Tromey <tom@tromey.com>
5608
5609 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5610 Simplify.
5611
f4e04977
TT
56122019-07-17 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5615 resetting.
5616
0379b883
TT
56172019-07-17 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5620 * tui/tui-regs.c (tui_reg_layout): New function.
5621 (tui_show_registers, tui_reg_command): Use it.
5622 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5623 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5624 parameters.
5625 (tui_layout_command): Remove.
5626
b7fbad91
TT
56272019-07-17 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-layout.h (tui/tui-layout): Return void.
5630 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5631
4e1e56b9
TT
56322019-07-17 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-layout.c (show_source_disasm_command, show_data):
5635 Update.
5636 (reset_locator): Remove.
5637 (show_source_or_disasm_and_command): Update.
5638
1e0c09ba
TT
56392019-07-17 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-source.c (tui_source_window_base::reset): Remove
5642 win_type parameter.
5643 * tui/tui-layout.c (make_command_window, make_source_window)
5644 (make_disasm_window, make_data_window)
5645 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5646 (reset_locator, show_source_or_disasm_and_command): Update.
5647 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5648 win_type parameter.
5649 (struct tui_source_window_base) <reset>: Likewise.
5650
1bf605de
TT
56512019-07-17 Tom Tromey <tom@tromey.com>
5652
5653 * tui/tui-layout.c (show_source_disasm_command): Use
5654 reset_locator.
5655 (reset_locator): New function.
5656 (init_and_make_win): Remove.
5657 (show_source_or_disasm_and_command): Use reset_locator.
5658
098f9ed4
TT
56592019-07-17 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5662 condition.
5663 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5664 Remove condition.
5665 * tui/tui-source.c (tui_source_window_base::reset): New method.
5666 * tui/tui-layout.c (make_command_window): Don't call
5667 init_and_make_win.
5668 (make_source_window, make_disasm_window): Don't call
5669 make_source_or_disasm_window.
5670 (make_data_window): Don't call init_and_make_win. Change calling
5671 convention.
5672 (show_source_disasm_command, show_data): Simplify.
5673 (make_source_or_disasm_window): Remove.
5674 (show_source_or_disasm_and_command): Simplify.
5675 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5676 (struct tui_source_window_base) <reset>: Likewise.
5677 <execution_info>: Remove initializer.
5678 * tui/tui-data.c (tui_source_window_base): Initialize
5679 execution_info.
5680
80110957
TT
56812019-07-17 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5684 variable.
5685
cf82af05
TT
56862019-07-17 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui.c (tui_rl_other_window): Update.
5689 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5690 superclass method first. Always iterate over regs_content.
5691 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5692 method.
5693 * tui/tui-win.c (tui_set_focus_command): Update.
5694
01aeb396
TT
56952019-07-17 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-win.c (tui_set_focus_command): Rename from
5698 tui_set_focus. Call tui_enable.
5699 (tui_set_focus_command): Remove.
5700
fd6c75ee
TT
57012019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5704 refresh_window.
5705 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5706 touchwin.
5707 (tui_data_window::refresh_window): Call refresh_window on data
5708 items. Always call superclass refresh_window.
5709 (tui_win_info::refresh): Remove.
5710 (tui_source_window_base::refresh_window): Update.
5711 (tui_refresh_all): Update.
5712 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5713 refresh_window.
5714 (show_source_or_disasm_and_command): Likewise.
5715 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5716 (struct tui_source_window_base) <refresh>: Likewise.
5717
f6cc34a9
TT
57182019-07-17 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui-winsource.c (tui_clear_source_content)
5721 (tui_show_source_content): Update.
5722 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5723 whether content is empty.
5724 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5725 Remove.
5726
f31ec9af
TT
57272019-07-17 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5730 window's contents.
5731 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5732 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5733
d1b6f1e5
TT
57342019-07-17 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5737 (struct tui_data_item_window): Update.
5738
d9743a13
TT
57392019-07-17 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5742 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5743 defines.
5744
caf0bc4e
TT
57452019-07-17 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-winsource.h (tui_erase_source_content)
5748 (tui_clear_source_content): Remove "display_prompt" parameter.
5749 * tui/tui-winsource.c (tui_update_source_window_as_is)
5750 (tui_update_source_windows_with_addr): Update.
5751 (tui_clear_source_content): Remove "display_prompt" parameter.
5752 (tui_erase_source_content): Likewise. Simplify.
5753 (tui_show_source_content): Update.
5754 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5755 * tui/tui-stack.c (tui_show_frame_info): Update.
5756 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5757 Remove defines.
5758
9d391078
TT
57592019-07-17 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5762 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5763 parameter.
5764 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5765 parameter.
5766
a38da35d
TT
57672019-07-17 Tom Tromey <tom@tromey.com>
5768
5769 * tui/tui-winsource.c (tui_clear_source_content)
5770 (tui_show_source_content, tui_show_exec_info_content)
5771 (tui_clear_exec_info_content): Update.
5772 * tui/tui-stack.c (tui_show_locator_content): Update.
5773 (tui_show_frame_info): Update.
5774 * tui/tui-source.h (tui_source_window): Don't declare.
5775 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5776 from tui_source_is_displayed.
5777 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5778 Remove field.
5779 (struct tui_source_window_base) <content_in_use>: New field. Now
5780 bool.
5781 (struct tui_source_window) <showing_source_p>: New method.
5782 (TUI_SRC_WIN): Change cast.
5783 * tui/tui-data.c (tui_initialize_static_data): Update.
5784
c2cd8994
TT
57852019-07-17 Tom Tromey <tom@tromey.com>
5786
5787 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5788 location_matches_p.
5789 * tui/tui-source.c (tui_source_window::location_matches_p): New
5790 method.
5791 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5792 method.
5793 * tui/tui-data.h (struct tui_source_window_base)
5794 <location_matches_p>: New method.
5795 (struct tui_source_window, struct tui_disasm_window)
5796 <location_matches_p>: Likewise.
5797
4dde7b34
TT
57982019-07-17 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui-win.c (tui_set_win_height_command): Rename from
5801 tui_set_win_height.
5802 (tui_set_win_height_command): Remove.
5803
b73dd877
TT
58042019-07-17 Tom Tromey <tom@tromey.com>
5805
5806 * tui/tui-source.c (tui_source_window): New constructor. Add
5807 observer.
5808 (~tui_source_window): New destructor.
5809 (tui_source_window::style_changed): New method.
5810 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5811 (tui_attach_detach_observers): Update.
5812 * tui/tui-data.h (struct tui_source_window): Make constructor not
5813 inline. Add destructor.
5814 (struct tui_source_window) <style_changed>: New method.
5815 <m_observable>: New member.
5816
ae2b5380
TT
58172019-07-17 Tom Tromey <tom@tromey.com>
5818
5819 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5820 * tui/tui-win.c (tui_resize_all): Fix typo.
5821
1ce3e844
TT
58222019-07-17 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5825 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5826 (tui_refresh_all): Remove "list" parameter. Use foreach.
5827 * tui/tui-win.c (window_name_completer): Use foreach.
5828 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5829 (update_tab_width): Likewise.
5830 * tui/tui-layout.c (show_layout): Update.
5831 * tui/tui-data.h (class tui_window_iterator): New.
5832 (struct all_tui_windows): New.
5833 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5834
fe3eaf1c
TT
58352019-07-17 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5838 parameter. Don't reference globals.
5839 (tui_reg_command): Update.
5840
368c1354
TT
58412019-07-17 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-regs.c (tui_show_registers): Simplify.
5844
e80cd204
TT
58452019-07-17 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-regs.c (tui_show_registers): Update.
5848 (tui_show_register_group): Add win_info parameter.
5849
aca2dd16
TT
58502019-07-17 Tom Tromey <tom@tromey.com>
5851
5852 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5853 Rename from tui_display_reg_element_at_line.
5854 (tui_data_window::display_registers_from_line): Update.
5855 * tui/tui-data.h (struct tui_data_window)
5856 <display_reg_element_at_line>: New method.
5857
517e9505
TT
58582019-07-17 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui-regs.h (tui_display_registers_from)
5861 (tui_display_registers_from_line): Don't declare.
5862 * tui/tui-windata.c (tui_data_window::display_all_data)
5863 (tui_data_window::refresh_all)
5864 (tui_data_window::do_scroll_vertical): Update.
5865 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5866 from tui_display_registers_from.
5867 (tui_display_reg_element_at_line): Update.
5868 (tui_data_window::display_registers_from_line): Rename from
5869 tui_display_registers_from_line.
5870 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5871 display_registers_from_line>: New methods.
5872
f76d8b19
TT
58732019-07-17 Tom Tromey <tom@tromey.com>
5874
5875 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5876 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5877 from tui_erase_data_content.
5878 (tui_data_window::display_all_data)
5879 (tui_data_window::refresh_all)
5880 (tui_data_window::do_scroll_vertical): Update.
5881 * tui/tui-regs.c (tui_show_registers): Update.
5882 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5883 New method.
5884
b4094625
TT
58852019-07-17 Tom Tromey <tom@tromey.com>
5886
5887 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5888 declare.
5889 * tui/tui-windata.c
5890 (tui_data_window::delete_data_content_windows): Rename from
5891 tui_delete_data_content_windows.
5892 (tui_data_window::display_all_data)
5893 (tui_data_window::do_scroll_vertical): Update.
5894 * tui/tui-data.h (struct tui_data_window)
5895 <delete_data_content_windows>: New method.
5896
c223a729
TT
58972019-07-17 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5900 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5901
50daf268
TT
59022019-07-17 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5905 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5906 from tui_display_all_data.
5907 * tui/tui-win.c
5908 (tui_data_window::do_make_visible_with_new_height): Update.
5909 * tui/tui-regs.c (tui_show_registers): Update.
5910 * tui/tui-layout.c (tui_set_layout): Update.
5911 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5912 method.
5913
df5f8cab
TT
59142019-07-17 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5917 * tui/tui-windata.c (tui_display_data_from): Remove.
5918 (tui_data_window::refresh_all): Update.
5919
80cb6c27
TT
59202019-07-17 Tom Tromey <tom@tromey.com>
5921
5922 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5923 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5924 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5925 tui_display_registers_from_line.
5926 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5927 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5928 "force_display" parameter.
5929
baff0c28
TT
59302019-07-17 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5933 declare.
5934 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5935 Rename from tui_first_reg_element_no_inline.
5936 (tui_display_reg_element_at_line)
5937 (tui_display_registers_from_line): Update.
5938 * tui/tui-data.h (struct tui_data_window)
5939 <first_reg_element_no_inline>: New method.
5940
3b23c5f2
TT
59412019-07-17 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-windata.c (tui_display_data_from)
5944 (tui_data_window::do_scroll_vertical): Update.
5945 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5946 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5947 Rename from tui_line_from_reg_element_no.
5948 (tui_display_registers_from_line): Update.
5949 * tui/tui-data.h (struct tui_data_window)
5950 <line_from_reg_element_no>: New method.
5951
0b5ec218
TT
59522019-07-17 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5955 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5956 tui_last_regs_line_no.
5957 (tui_display_reg_element_at_line)
5958 (tui_display_registers_from_line): Update.
5959 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5960 method.
5961
0807ab7b
TT
59622019-07-17 Tom Tromey <tom@tromey.com>
5963
5964 PR tui/24722:
5965 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5966 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5967 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5968 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5969 (tui_update_breakpoint_info): Likewise.
5970 * tui/tui-hooks.c (tui_event_create_breakpoint)
5971 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5972 Update.
5973
9ad7fdef
TT
59742019-07-17 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5977
5813316f
TT
59782019-07-17 Tom Tromey <tom@tromey.com>
5979
5980 * tui/tui-winsource.c (tui_update_source_window_as_is)
5981 (tui_update_source_windows_with_addr): Update.
5982 * tui/tui-source.h (tui_set_source_content)
5983 (tui_show_symtab_source): Add "win_info" parameter.
5984 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5985 parameter.
5986 (tui_show_symtab_source): Likewise.
5987
00e264e7
TT
59882019-07-17 Tom Tromey <tom@tromey.com>
5989
5990 * tui/tui-wingeneral.c
5991 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5992
06210ce4
TT
59932019-07-17 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5996 (struct tui_cmd_window) <can_scroll>: New method.
5997 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5998 method.
5999
381befee
TT
60002019-07-17 Tom Tromey <tromey@adacore.com>
6001
6002 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6003 do_field_signed>: Rename. Change type of "value".
6004 * ui-out.c (ui_out::field_signed): Rename from field_int.
6005 Change type of "value".
6006 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6007 type of "value".
6008 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6009 do_field_int. Change type of "value".
6010 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6011 do_field_int. Change type of "value".
6012 * tracepoint.c (trace_status_mi, tfind_1)
6013 (print_one_static_tracepoint_marker): Update.
6014 * thread.c (print_thread_info_1, print_selected_thread_frame):
6015 Update.
6016 * stack.c (print_frame, print_frame_info): Update.
6017 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6018 Update.
6019 * source.c (print_source_lines_base): Update.
6020 * skip.c (info_skip_command): Update.
6021 * record-btrace.c (btrace_ui_out_decode_error)
6022 (btrace_call_history_src_line): Update.
6023 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6024 Update.
6025 * progspace.c (print_program_space): Update.
6026 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6027 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6028 do_field_int. Change type of "value".
6029 * mi/mi-out.c (mi_ui_out::do_table_begin)
6030 (mi_ui_out::do_table_header): Update.
6031 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6032 type of "value".
6033 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6034 (mi_cmd_data_list_changed_registers, output_register)
6035 (mi_cmd_data_read_memory, mi_load_progress)
6036 (mi_cmd_trace_frame_collected): Update.
6037 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6038 Update.
6039 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6040 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6041 (mi_cmd_var_list_children, varobj_update_one): Update.
6042 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6043 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6044 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6045 * inferior.c (print_inferior): Update.
6046 * gdb_bfd.c (print_one_bfd): Update.
6047 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6048 Update.
6049 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6050 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6051 do_field_int. Change type of "value".
6052 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6053 do_field_int. Change type of "value".
6054 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6055 (print_one_breakpoint_location, print_it_catch_fork)
6056 (print_one_catch_fork, print_it_catch_vfork)
6057 (print_one_catch_vfork, print_it_catch_solib)
6058 (print_it_catch_exec, print_it_ranged_breakpoint)
6059 (print_mention_watchpoint, print_mention_masked_watchpoint)
6060 (bkpt_print_it, update_static_tracepoint): Update.
6061 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6062 * break-catch-syscall.c (print_it_catch_syscall): Update.
6063 * ada-tasks.c (print_ada_task_info): Update.
6064 * ada-lang.c (print_it_exception, print_mention_exception):
6065 Update.
6066
6b78c3f8
AB
60672019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 PR breakpoints/24541
6070 * gdbarch.c: Regenerate.
6071 * gdbarch.h: Regenerate.
6072 * gdbarch.sh: Adjust return type and parameter types for
6073 'stap_adjust_register'.
6074 (i386_stap_adjust_register): Adjust signature and return new
6075 register name.
6076 * stap-probe.c (stap_parse_register_operand): Adjust use of
6077 'gdbarch_stap_adjust_register'.
6078
d72a9b85
TT
60792019-07-17 Tom Tromey <tromey@adacore.com>
6080
6081 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6082 declare VEC.
6083 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6084 std::vector.
6085 (struct s390_process_info): Add initializers.
6086 (s390_add_process): Use new.
6087 (s390_linux_nat_target::low_forget_process): Use delete.
6088 (s390_linux_nat_target::low_new_fork)
6089 (s390_linux_nat_target::stopped_by_watchpoint)
6090 (s390_linux_nat_target::low_prepare_to_resume)
6091 (s390_linux_nat_target::insert_watchpoint)
6092 (s390_linux_nat_target::insert_hw_breakpoint)
6093 (s390_linux_nat_target::remove_watchpoint)
6094 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6095
206e6c58
JB
60962019-07-16 John Baldwin <jhb@FreeBSD.org>
6097
6098 * aarch64-fbsd-nat.c: Include regcache.h.
6099 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6100 argument.
6101 (aarch64_fbsd_nat_target::fetch_registers)
6102 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6103 variable.
6104 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6105
cbde90f2
JB
61062019-07-16 John Baldwin <jhb@FreeBSD.org>
6107
6108 * fbsd-nat.c: Include gdbarch.h.
6109
07128006
TT
61102019-07-15 Tom Tromey <tromey@adacore.com>
6111
6112 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6113
1f77b012
TT
61142019-07-15 Tom Tromey <tromey@adacore.com>
6115
6116 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6117 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6118 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6119 * cli-out.c (cli_ui_out::do_field_int): New method.
6120 * ui-out.c (ui_out::field_unsigned): New method.
6121 * symfile.c (generic_load): Use field_unsigned.
6122 (print_transfer_performance): Likewise.
6123 * record-btrace.c (ui_out_field_uint): Remove.
6124 (btrace_call_history_insn_range, btrace_call_history): Use
6125 field_unsigned.
6126 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6127 field_unsigned.
6128 * ui-out.h (class ui_out) <field_unsigned>: New method.
6129 <do_field_unsigned>: Likewise.
6130
33eca680
TT
61312019-07-15 Tom Tromey <tromey@adacore.com>
6132
6133 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6134 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6135 * target.c (flash_erase_command): Use field_string.
6136 * infrun.c (print_signal_received_reason): Use field_string.
6137 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6138 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6139 field_string.
6140 * ada-tasks.c (print_ada_task_info): Use field_string.
6141
ca8d69be
TT
61422019-07-15 Tom Tromey <tromey@adacore.com>
6143
6144 * target.c (flash_erase_command): Use field_core_addr.
6145 * symfile.c (generic_load): Use field_core_addr.
6146 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6147 Use field_core_addr.
6148 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6149 field_core_addr.
6150
0d4e84ed
AB
61512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6154 value if its desired type is smaller than a CORE_ADDR and signed.
6155
9a49df9d
AB
61562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6159 of changes to field names, and use new is_reference field to
6160 decide if a property is a reference or not.
6161 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6162 field.
6163 (struct dwarf2_property_baton): Update header comment, rename
6164 'referenced_type' to 'property_type' and update comments.
6165 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6166 default property type, store in property baton, update to take
6167 accound of renamed field.
6168 (read_func_scope): Update call to attr_to_dynamic_prop.
6169 (read_array_type): Likewise.
6170 (dwarf2_per_cu_addr_sized_int_type): New function.
6171 (read_subrange_index_type): Move type finding code to
6172 dwarf2_per_cu_addr_sized_int_type.
6173 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6174 (dwarf2_per_cu_addr_type): New function.
6175 (set_die_type): Update calls to attr_to_dynamic_prop.
6176
b86352cf
AB
61772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6178
6179 * dwarf2read.c (read_subrange_index_type): New function.
6180 (read_subrange_type): Move code into new function and call it.
6181 * gdbtypes.c (create_range_type): Add some asserts.
6182
603490bf
AB
61832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6184
6185 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6186 update return statements.
6187 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6188 declaration, and update comment to match.
6189 * gdbtypes.c (resolve_dynamic_array): Update call to
6190 dwarf2_evaluate_property to match new return type.
6191
592f9d27
AB
61922019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * valarith.c (value_subscripted_rvalue): Change lowerbound
6195 parameter type from int to LONGEST.
6196 * value.h (value_subscripted_rvalue): Likewise in declaration.
6197
60cfcb20
AB
61982019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * cli/cli-utils.c (info_print_command_completer): New function.
6201 * cli/cli-utils.h: Add 'completer.h' include, and forward
6202 declaration for 'struct cmd_list_element'.
6203 (info_print_command_completer): Declare.
6204 * stack.c (_initialize_stack): Add completer for 'info locals' and
6205 'info args'.
6206 * symtab.c (_initialize_symtab): Add completer for 'info
6207 variables' and 'info functions'.
6208 * NEWS: Mention completion for additional info commands.
6209
b16507e0
AB
62102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6211
6212 * cli/cli-utils.c (extract_info_print_args): Delete.
6213 (extract_arg_maybe_quoted): Delete.
6214 (info_print_options_defs): New variable.
6215 (make_info_print_options_def_group): New function.
6216 (extract_info_print_options): Define new function.
6217 * cli/cli-utils.h (extract_info_print_args): Delete.
6218 (struct info_print_options): New structure.
6219 (extract_info_print_options): Declare new function.
6220 * stack.c (info_locals_command): Update to use new
6221 extract_info_print_options, also add a header comment.
6222 (info_args_command): Likewise.
6223 * symtab.c (info_variables_command): Likewise.
6224 (info_functions_command): Likewise.
6225
021d8588
AB
62262019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6229 to extract string arguments.
6230 * common/common-utils.c (extract_string_maybe_quoted): New function.
6231 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6232
b777eb6d
TT
62332019-07-11 Tom Tromey <tromey@adacore.com>
6234
6235 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6236 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6237 * top.h (gdbinit): Don't declare.
6238 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6239 into...
6240 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6241 * top.c (gdb_init): Don't call init_cli_cmds.
6242 (gdbinit): Remove.
6243 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6244
72ee03ff
TT
62452019-07-11 Tom Tromey <tromey@adacore.com>
6246
6247 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6248 after it has been moved.
6249
00db9531
SM
62502019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * valops.c (value_must_coerce_to_target): Change return type to
6253 bool.
6254 * value.h (value_must_coerce_to_target): Likewise.
6255
f2478a7e
SM
62562019-07-10 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * breakpoint.c (is_hardware_watchpoint): Remove
6259 forward-declaration.
6260 (is_masked_watchpoint): Change return type to bool.
6261 (is_tracepoint): Likewise.
6262 (is_breakpoint): Likewise.
6263 (is_hardware_watchpoint): Likewise.
6264 (is_watchpoint): Likewise.
6265 (is_no_memory_software_watchpoint): Likewise.
6266 (is_catchpoint): Likewise.
6267 (breakpoint_1): Make FILTER parameter's return type bool.
6268 is_masked_watchpoint): Change return type to bool.
6269 (save_breakpoints): Make FILTER parameter's return type bool.
6270 * breakpoint.h (is_breakpoint): Change return type to bool.
6271 (is_watchpoint): Likewise.
6272 (is_catchpoint): Likewise.
6273 (is_tracepoint): Likewise.
6274
0d12e84c
TT
62752019-07-10 Tom Tromey <tom@tromey.com>
6276
6277 * defs.h: Don't include gdbarch.h.
6278 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6279 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6280 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6281 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6282 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6283 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6284 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6285 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6286 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6287 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6288 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6289 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6290 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6291 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6292 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6293 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6294 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6295 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6296 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6297 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6298 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6299 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6300 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6301 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6302 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6303 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6304 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6305
f06f1252
TT
63062019-07-10 Tom Tromey <tromey@adacore.com>
6307
6308 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6309 * breakpoint.c (init_ada_exception_breakpoint): Register as
6310 bp_catchpoint.
6311 (print_one_breakpoint_location, print_one_breakpoint): Use
6312 is_ada_exception_catchpoint.
6313 * ada-lang.c (class ada_catchpoint_location): Pass
6314 bp_loc_software_breakpoint to bp_location constructor.
6315 (is_ada_exception_catchpoint): New function.
6316
7a5d944b
TT
63172019-07-10 Tom Tromey <tromey@adacore.com>
6318
6319 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6320 VEC.
6321 (struct arm_exidx_entry): New method operator<.
6322 (struct arm_exidx_data) <section_maps>: Change type.
6323 (arm_exidx_data_free): Remove.
6324 (arm_exidx_data_key): Change type. Move lower.
6325 (arm_exidx_new_objfile): Update.
6326 (arm_compare_exidx_entries): Remove.
6327 (arm_find_exidx_entry, _initialize_arm_tdep)
6328
48c66e1d
TT
63292019-07-10 Tom Tromey <tromey@adacore.com>
6330
6331 * solib-spu.c (ocl_program_data_key): Change type.
6332 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6333 Update.
6334
a269fbf1
TT
63352019-07-10 Tom Tromey <tromey@adacore.com>
6336
6337 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6338 (struct solib_aix_inferior_data) <library_list>: Change type.
6339 (solib_aix_inferior_data_handle): Change type.
6340 (get_solib_aix_inferior_data): Update.
6341 (solib_aix_free_library_list): Remove.
6342 (library_list_start_library): Update.
6343 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6344 return type.
6345 (solib_aix_get_library_list)
6346 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6347 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6348
c294730c
TT
63492019-07-10 Tom Tromey <tromey@adacore.com>
6350
6351 * solib-dsbt.c (struct dsbt_info): Add initializers.
6352 (solib_dsbt_pspace_data): Change type.
6353 (dsbt_pspace_data_cleanup): Remove.
6354 (get_dsbt_info, _initialize_dsbt_solib): Update.
6355
9d52077d
TT
63562019-07-10 Tom Tromey <tromey@adacore.com>
6357
6358 * spu-tdep.c (spu_overlay_data): Change type.
6359 (spu_get_overlay_table, spu_overlay_new_objfile)
6360 (_initialize_spu_tdep): Update.
6361
22a20dca
TT
63622019-07-10 Tom Tromey <tromey@adacore.com>
6363
6364 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6365 destructor.
6366 (dbx_objfile_data_key): Change type and declare later.
6367 (DBX_SYMFILE_INFO): Rewrite.
6368 * dbxread.c (dbx_objfile_data_key): Change type.
6369 (dbx_symfile_init): Update.
6370 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6371 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6372 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6373
cb60f420
TT
63742019-07-10 Tom Tromey <tromey@adacore.com>
6375
6376 * jit.c (jit_program_space_key): Change type. Move lower.
6377 (get_jit_program_space_data): Update.
6378 (jit_program_space_data_cleanup): Remove.
6379 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6380 Update.
6381 (struct jit_program_space_data): Add initializers.
6382
51df2ae3
TT
63832019-07-10 Tom Tromey <tromey@adacore.com>
6384
6385 * solib-darwin.c (struct darwin_info): Add initializers.
6386 (solib_darwin_pspace_data): Change type.
6387 (darwin_pspace_data_cleanup): Remove.
6388 (get_darwin_info, _initialize_darwin_solib): Update.
6389
18101a35
TT
63902019-07-10 Tom Tromey <tromey@adacore.com>
6391
6392 * remote-sim.c (struct sim_inferior_data): Add initializers,
6393 constructor, and destructor.
6394 (sim_inferior_data_key): Change type. Move lower.
6395 (check_for_duplicate_sim_descriptor): Update.
6396 (get_sim_inferior_data): Use new. Update.
6397 (~sim_inferior_data_cleanup): Rename from
6398 sim_inferior_data_cleanup. Simplify.
6399 (gdbsim_close_inferior, simulator_command)
6400 (sim_command_completer, _initialize_remote_sim): Update.
6401 (next_pid, INITIAL_PID): Move earlier.
6402
05b08ac1
TT
64032019-07-10 Tom Tromey <tromey@adacore.com>
6404
6405 * python/python-internal.h (create_thread_object): Return
6406 gdbpy_ref.
6407 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6408 * python/py-inferior.c (struct threadlist_entry): Add
6409 constructor.
6410 <thread_obj>: Now a gdbpy_ref.
6411 (thread_to_thread_object): Update.
6412 (add_thread_object): Use new.
6413 (delete_thread_object): Use delete.
6414 (infpy_threads): Update.
6415 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6416 GIL.
6417
32372d80
TT
64182019-07-10 Tom Tromey <tromey@adacore.com>
6419
6420 * valops.c (value_cast): Specialize error message for Ada.
6421
5c458ae8
SM
64222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6423
6424 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6425
4c462cb0
SM
64262019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6429 bpstat_should_step): Return bool, adjust comments.
6430 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6431 bpstat_should_step): Likewise.
6432
89abbcc2
AH
64332019-07-10 Alan Hayward <alan.hayward@arm.com>
6434
6435 * features/Makefile: Use feature target descriptions for Arm.
6436 * features/arm/arm-core.c: Generate new file.
6437 * features/arm/arm-fpa.c: Likewise.
6438 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6439 * features/arm/arm-m-profile.c: Likewise.
6440 * features/arm/arm-vfpv2.c: Likewise.
6441 * features/arm/arm-vfpv3.c: Likewise.
6442 * features/arm/xscale-iwmmxt.c: Likewise.
6443 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6444
166a82be
AH
64452019-07-10 Alan Hayward <alan.hayward@arm.com>
6446
6447 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6448 ptrace earlier.
6449
9fb4c7e9
AH
64502019-07-10 Alan Hayward <alan.hayward@arm.com>
6451
6452 * features/aarch64-pauth.c: Regenerate.
6453
e2d0f980
SM
64542019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6457 bool.
6458 (bpstat_what): Use false instead of 0.
6459
a38118e5
PA
64602019-07-09 Pedro Alves <palves@redhat.com>
6461
6462 * break-catch-throw.c (is_exception_catchpoint): New.
6463 * breakpoint.c (print_one_breakpoint_location): New parameter
6464 'raw_loc'. Handle it. Use
6465 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6466 looking at the breakpoint's type.
6467 (print_one_breakpoint): If handling "maint info breakpoints", also
6468 print locations of exception catchpoints.
6469 * breakpoint.h (is_exception_catchpoint): Declare.
6470
cb1e4e32
PA
64712019-07-09 Pedro Alves <palves@redhat.com>
6472
6473 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6474 "addr" field.
6475 (allocate_location_exception_catchpoint): New.
6476 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6477 (initialize_throw_catchpoint_ops): Install
6478 allocate_location_exception_catchpoint as allocate_location
6479 method.
6480 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6481 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6482 bp_loc_other.
6483 (breakpoint_address_is_meaningful): Delete.
6484 (bl_address_is_meaningful): New.
6485 (breakpoint_locations_match): Adjust comment.
6486 (bp_location_from_bp_type): New, factored out of...
6487 (bp_location::bp_location(breakpoint *)): ... this.
6488 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6489 factored out of...
6490 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6491 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6492 breakpoint_address_is_meaningful.
6493 (bp_locations_compare): Adjust comment.
6494 (update_global_location_list): Use bl_address_is_meaningful
6495 instead of breakpoint_address_is_meaningful.
6496 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6497 explicit.
6498 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6499 * python/py-breakpoint.c (bppy_get_location): No longer check
6500 whether location is null.
6501
b58a68fe
PA
65022019-07-09 Pedro Alves <palves@redhat.com>
6503
6504 PR c++/15468
6505 * breakpoint.c (print_one_breakpoint_location): Remove
6506 single-location assert.
6507
268a13a5
TT
65082019-07-09 Tom Tromey <tom@tromey.com>
6509
6510 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6511 * configure: Rebuild.
6512 * configure.ac: Change common to gdbsupport.
6513 * gdbsupport: Rename from common.
6514 * acinclude.m4: Change common to gdbsupport.
6515 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6516 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6517 gdbsupport.
6518 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6519 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6520 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6521 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6522 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6523 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6524 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6525 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6526 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6527 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6528 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6529 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6530 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6531 coff-pe-read.c, command.h, compile/compile-c-support.c,
6532 compile/compile-c.h, compile/compile-cplus-symbols.c,
6533 compile/compile-cplus-types.c, compile/compile-cplus.h,
6534 compile/compile-loc2c.c, compile/compile.c, completer.c,
6535 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6536 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6537 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6538 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6539 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6540 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6541 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6542 features/aarch64-core.c, features/aarch64-fpu.c,
6543 features/aarch64-pauth.c, features/aarch64-sve.c,
6544 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6545 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6546 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6547 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6548 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6549 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6550 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6551 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6552 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6553 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6554 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6555 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6556 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6557 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6558 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6559 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6560 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6561 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6562 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6563 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6564 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6565 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6566 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6567 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6568 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6569 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6570 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6571 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6572 minsyms.c, mips-linux-tdep.c, namespace.h,
6573 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6574 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6575 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6576 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6577 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6578 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6579 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6580 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6581 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6582 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6583 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6584 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6585 procfs.c, producer.c, progspace.h, psymtab.h,
6586 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6587 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6588 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6589 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6590 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6591 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6592 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6593 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6594 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6595 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6596 target-memory.c, target.c, target.h, target/waitstatus.c,
6597 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6598 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6599 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6600 unittests/array-view-selftests.c,
6601 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6602 unittests/common-utils-selftests.c,
6603 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6604 unittests/format_pieces-selftests.c,
6605 unittests/function-view-selftests.c,
6606 unittests/lookup_name_info-selftests.c,
6607 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6608 unittests/mkdir-recursive-selftests.c,
6609 unittests/observable-selftests.c,
6610 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6611 unittests/parse-connection-spec-selftests.c,
6612 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6613 unittests/scoped_fd-selftests.c,
6614 unittests/scoped_mmap-selftests.c,
6615 unittests/scoped_restore-selftests.c,
6616 unittests/string_view-selftests.c, unittests/style-selftests.c,
6617 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6618 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6619 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6620 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6621 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6622 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6623
5b0e2db4
AB
66242019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6627 bool value.
6628 (decode_digits_ordinary): Set explicit_line field in sal.
6629 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6630 symtab_and_line that was set on an explicit line number in
6631 assembler code. Do always update the recorded symtab and line if
6632 we do skip the prologue.
6633
0ba852ab
AB
66342019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * breakpoint.c (set_breakpoint_location_function): Remove
6637 explicit_loc parameter.
6638 (momentary_breakpoint_from_master): Update call to
6639 set_breakpoint_location_function.
6640 (add_location_to_breakpoint): Likewise.
6641
b3a7d171
AB
66422019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6643
6644 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6645 required features based on default bfd type when no specific bfd
6646 is present.
6647
1f6f6e21
PW
66482019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6649
6650 * NEWS: Mention that GDB printf and eval commands can now print
6651 C-style and Ada-style convenience var strings without
6652 calling the inferior.
6653 * printcmd.c (printf_c_string): Locally print GDB internal var
6654 instead of transiting via the inferior.
6655 (printf_wide_c_string): Likewise.
6656
66572019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6658
5862c886 6659 PR breakpoints/25011
ea142fbf
AH
6660 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6661
0598af48
TT
66622019-07-04 Tom Tromey <tom@tromey.com>
6663
6664 PR tui/24724:
6665 * tui/tui-winsource.c (tui_clear_source_content): Update.
6666 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6667 (tui_update_breakpoint_info): Update.
6668 (tui_set_exec_info_content): Update.
6669 * tui/tui-source.c (tui_set_source_content_nil): Update.
6670 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6671 has_break.
6672 * tui/tui-data.h (enum tui_bp_flag): New.
6673 (tui_bp_flags): New enum flags type.
6674 (struct tui_source_element) <break_mode>: Change type. Rename
6675 from has_break.
6676 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6677 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6678 constants.
6679 * tui/tui-winsource.h: Fix comment.
6680
350fab54
AH
66812019-07-04 Alan Hayward <alan.hayward@arm.com>
6682
6683 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6684 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6685 (store_fpregs_to_thread)
6686 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6687 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6688 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6689 (IWMMXT_REGS_SIZE): Add define.
6690 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6691 (fetch_vfp_regs, store_vfp_regs)
6692 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6693 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6694
f0452268
AH
66952019-07-04 Alan Hayward <alan.hayward@arm.com>
6696
6697 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6698 defines.
6699 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6700 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6701 (ARM_INT_REGISTER_SIZE): ...to this.
6702 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6703 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6704 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6705 (arm_linux_collect_gregset, supply_nwfpe_register)
6706 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6707 defines.
6708 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6709 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6710 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6711 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6712 (arm_return_in_memory, arm_store_return_value)
6713 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6714 (arm_record_ld_st_multiple): Likewise.
6715 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6716 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6717
e935475c
AH
67182019-07-04 Alan Hayward <alan.hayward@arm.com>
6719
6720 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6721 AARCH64_DISPLACED_MODIFIED_INSNS.
6722 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6723 (aarch64_displaced_step_copy_insn): Likewise.
6724 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6725 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6726 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6727 ARM_DISPLACED_MODIFIED_INSNS.
6728 * arm-tdep.c (arm_gdbarch_init): Likewise.
6729 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6730 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6731 (struct arm_displaced_step_closure): Use
6732 ARM_DISPLACED_MODIFIED_INSNS.
6733
df0bb381
AH
67342019-07-04 Alan Hayward <alan.hayward@arm.com>
6735
6736 * features/Makefile: Remove unused xml files.
6737 * features/aarch64.xml: Remove.
6738 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6739 * features/i386/amd64-avx-avx512.xml: Remove.
6740 * features/i386/amd64-avx-linux.xml: Remove.
6741 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6742 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6743 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6744 * features/i386/amd64-avx-mpx.xml: Remove.
6745 * features/i386/amd64-avx.xml: Remove.
6746 * features/i386/amd64-linux.xml: Remove.
6747 * features/i386/amd64-mpx-linux.xml: Remove.
6748 * features/i386/amd64-mpx.xml: Remove.
6749 * features/i386/amd64.xml: Remove.
6750 * features/i386/i386-avx-avx512-linux.xml: Remove.
6751 * features/i386/i386-avx-avx512.xml: Remove.
6752 * features/i386/i386-avx-linux.xml: Remove.
6753 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6754 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6755 * features/i386/i386-avx-mpx-linux.xml: Remove.
6756 * features/i386/i386-avx-mpx.xml: Remove.
6757 * features/i386/i386-avx.xml: Remove.
6758 * features/i386/i386-linux.xml: Remove.
6759 * features/i386/i386-mmx-linux.xml: Remove.
6760 * features/i386/i386-mmx.xml: Remove.
6761 * features/i386/i386-mpx-linux.xml: Remove.
6762 * features/i386/i386-mpx.xml: Remove.
6763 * features/i386/i386.xml: Remove.
6764 * features/i386/x32-avx-avx512-linux.xml: Remove.
6765 * features/i386/x32-avx-linux.xml: Remove.
6766 * features/i386/x32-linux.xml: Remove.
6767
edd6266a
AH
67682019-07-04 Alan Hayward <alan.hayward@arm.com>
6769
6770 * regformats/aarch64.dat: Remove.
6771 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6772 * regformats/i386/amd64-avx-linux.dat: Remove.
6773 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6774 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6775 * regformats/i386/amd64-linux.dat: Remove.
6776 * regformats/i386/amd64-mpx-linux.dat: Remove.
6777 * regformats/i386/amd64.dat: Remove.
6778 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6779 * regformats/i386/i386-avx-linux.dat: Remove.
6780 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6781 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6782 * regformats/i386/i386-linux.dat: Remove.
6783 * regformats/i386/i386-mmx-linux.dat: Remove.
6784 * regformats/i386/i386-mpx-linux.dat: Remove.
6785 * regformats/i386/i386.dat: Remove.
6786 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6787 * regformats/i386/x32-avx-linux.dat: Remove.
6788 * regformats/i386/x32-linux.dat: Remove.
6789
2b40fda7
AH
67902019-07-04 Alan Hayward <alan.hayward@arm.com>
6791
6792 * aarch64-tdep.c: Remove xml self tests.
6793 * amd64-linux-tdep.c: Likewise.
6794 * amd64-tdep.c: Likewise.
6795 * i386-linux-tdep.c: Likewise.
6796 * i386-tdep.c: Likewise.
6797
5f4ba3e7
PA
67982019-07-03 Pedro Alves <palves@redhat.com>
6799
6800 PR cli/24732
6801 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6802 (pipe_cmd_option_defs): New.
6803 (make_pipe_cmd_options_def_group): New.
6804 (pipe_command): Use gdb::option::process_options.
6805 (pipe_command_completer): New function.
6806 (_initialize_cli_cmds): Install completer for "pipe" command.
6807
3d9be6f5
PA
68082019-07-03 Pedro Alves <palves@redhat.com>
6809
6810 * cli/cli-option.c (union option_value) <string>: New field.
6811 (struct option_def_and_value): Add ctor, move ctor, dtor and
6812 use DISABLE_COPY_AND_ASSIGN.
6813 (option_def_and_value::clear_value): New.
6814 (parse_option, save_option_value_in_ctx, get_val_type_str)
6815 (add_setshow_cmds_for_options): Handle var_string.
6816 * cli-option.h (union option_def::var_address) <string>: New
6817 field.
6818 (struct string_option_def): New.
6819 * maint-test-options.c (struct test_options_opts): Add default
6820 ctor and use DISABLE_COPY_AND_ASSIGN.
6821 <string_opt>: New field.
6822 (test_options_opts::~test_options_opts): New.
6823 (test_options_opts::dump): Also dump "-string".
6824 (test_options_option_defs): Install "string.
6825
41fc454c
PA
68262019-07-03 Pedro Alves <palves@redhat.com>
6827
6828 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6829 option_value with a null enumeration.
6830 (complete_options): Save the option values in the context.
6831 (save_option_value_in_ctx): New, factored out from ...
6832 (process_options): ... here.
6833 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6834 of the function.
6835 * maint-test-options.c (test_options_opts::dump): New, factored
6836 out from ...
6837 (maintenance_test_options_command_mode): ... here.
6838 (maintenance_test_options_command_completion_result): Delete.
6839 (maintenance_test_options_command_completion_text): Update
6840 comment.
6841 (maintenance_show_test_options_completion_result): Change
6842 prototype. Just print
6843 maintenance_test_options_command_completion_text.
6844 (save_completion_result): New.
6845 (maintenance_test_options_completer_mode): Pass options context to
6846 complete_options, and then save a dump.
6847 (_initialize_maint_test_options): Use add_cmd to install "maint
6848 show test-options-completion-result".
6849
fdbc9870
PA
68502019-07-03 Pedro Alves <palves@redhat.com>
6851
6852 * NEWS (New commands): Mention "with" and "maint with".
6853 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6854 (with_command, with_command_completer): New.
6855 (pipe_command): Adjust to new repeat_previous
6856 interface.
6857 (_initialize_cli_cmds): Install the "with" command and its "w"
6858 alias.
6859 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6860 declarations.
6861 * cli/cli-setshow.c (parse_cli_var_uinteger)
6862 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6863 argument strings for all var_types.
6864 (get_setshow_command_value_string): New, factored out from ...
6865 (do_show_command): ... this.
6866 * cli/cli-setshow.h: Include <string>.
6867 (get_setshow_command_value_string): Declare.
6868 * command.h (repeat_previous): Now returns const char *. Adjust
6869 comment.
6870 * maint.c: Include "cli/cli-cmds.h".
6871 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6872 (_initialize_maint_cmds): Register the "maintenance with" command.
6873 * top.c (repeat_previous): Move bits from pipe_command here:
6874 Return the saved command line, if any; error out if there's no
6875 command to relaunch.
6876
c6ac8931
PA
68772019-07-03 Pedro Alves <palves@redhat.com>
6878
6879 * NEWS (New commands): Mention "maint set/show test-settings"
6880 instead of "maint test-settings".
6881 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6882 (maintenance_test_settings_set_list): Rename to ...
6883 (maintenance_set_test_settings_list): ... this.
6884 (maintenance_test_settings_show_list): Rename to ...
6885 (maintenance_show_test_settings_list): ... this.
6886 (maintenance_test_settings_cmd): Delete.
6887 (maintenance_test_settings_set_cmd): ...
6888 (maintenance_set_test_settings_cmd): ... this.
6889 (maintenance_test_settings_show_cmd): ...
6890 (maintenance_show_test_settings_cmd): ... this.
6891 (maintenance_test_settings_show_value_cmd):
6892 (maintenance_show_test_settings_value_cmd): ... this.
6893 (_initialize_maint_test_settings): No longer install the "maint
6894 test-settings" prefix command. Rename "maint test-settings set"
6895 to "maint set test-settings", and "maint test-settings show" to
6896 "maint show test-settings". Adjust all subcommands.
6897
d1fcf2fd
PA
68982019-07-03 Pedro Alves <palves@redhat.com>
6899
6900 * maint-test-settings.c: Fix file's intro comment. Replace all
6901 references to "test-options" with references to "test-settings",
6902 in comments.
6903
970f9d09
PA
69042019-07-03 Pedro Alves <palves@redhat.com>
6905
6906 * maint-test-settings.c (maintenance_test_settings_xxx)
6907 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6908 New.
6909 (maintenance_test_settings_enums): Use them.
6910 (maintenance_test_settings_enum): Default to
6911 maintenance_test_settings_xxx.
6912 (_initialize_maint_test_settings): Initialize
6913 MAINTENANCE_TEST_SETTINGS_FILENAME.
6914
f3869b1a
SM
69152019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6916
6917 * breakpoint.h (remove_breakpoints_inf): Change return type to
6918 void, move function documentation here.
6919 * breakpoint.c (remove_breakpoints_inf): Change return type to
6920 void, move function documentation to header.
6921
54d66006
PA
69222019-07-02 Pedro Alves <palves@redhat.com>
6923
6924 * NEWS (Completion improvements): Mention "info threads".
6925 * thread.c (struct info_threads_opts, info_threads_option_defs)
6926 (make_info_threads_options_def_group): New.
6927 (info_threads_command): Use gdb::option::process_options.
6928 (info_threads_command_completer): New.
6929 (_initialize_thread): Use gdb::option::build_help to build the
6930 help text for "info threads".
6931
854f6088
SM
69322019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * defs.h (generic_load): Move from here...
6935 * symfile.h (generic_load): ... to here. Rename name parameter
6936 to args.
6937 * symfile.c (generic_load): Add comment.
6938
54ee4252
TT
69392019-07-01 Tom Tromey <tromey@adacore.com>
6940
6941 * dwarf2read.c
6942 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6943 declaration of without_params. Fix formatting.
6944
65392b3e
TT
69452019-07-01 Tom Tromey <tromey@adacore.com>
6946
6947 * ada-exp.y (find_primitive_type): Update.
6948 * ada-lang.h (ada_lookup_symbol): Update.
6949 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6950 parameter.
6951 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6952
7d7571f0
SDJ
69532019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6954
6955 PR breakpoints/24541
6956 * gdbarch.c: Regenerate.
6957 * gdbarch.h: Regenerate.
6958 * gdbarch.sh: Add 'stap_adjust_register'.
6959 * i386-tdep.c: Include '<unordered_set>'.
6960 (i386_stap_adjust_register): New function.
6961 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6962 * stap-probe.c (stap_parse_register_operand): Call
6963 'gdbarch_stap_adjust_register'.
6964
5af5392a
SDJ
69652019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6966
6967 PR python/24742
6968 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6969 * python/python.c (do_start_initialization): Use 'xmalloc'
6970 instead of 'PyMem_Malloc'.
6971
10d06d82
TT
69722019-06-28 Tom Tromey <tromey@adacore.com>
6973
6974 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6975 for Ada.
6976
1b7f24cd
TT
69772019-06-27 Tom Tromey <tromey@adacore.com>
6978
6979 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6980 objfile_key.
6981 (arm_find_mapping_symbol, arm_record_special_symbol)
6982 (_initialize_arm_tdep): Update.
6983 (arm_objfile_data_free): Remove.
6984
3d507ff2
TT
69852019-06-27 Tom Tromey <tromey@adacore.com>
6986
6987 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6988 to cp_print_static_field.
6989
762c164d
TT
69902019-06-26 Tom Tromey <tromey@adacore.com>
6991
6992 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6993 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6994 declare.
6995
aa2f9bcf
AH
69962019-06-26 Alan Hayward <alan.hayward@arm.com>
6997
6998 * features/aarch64-core.c (create_feature_aarch64_core):
6999 Regenerate.
7000 * features/aarch64-core.xml: Add cpsr flags.
7001
3426ae57
AH
70022019-06-26 Alan Hayward <alan.hayward@arm.com>
7003
7004 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7005 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7006
4838e44c
SM
70072019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7008
7009 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7010 field.
7011 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7012 use.
7013 (arm_record_special_symbol): Don't insert new symbol in sorted
7014 position, push it at the end.
7015
54cc7474
SM
70162019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7019 (arm_mapping_symbol_s): Remove.
7020 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7021 (arm_mapping_symbol_vec): New typedef.
7022 (struct arm_per_objfile): Add constructor.
7023 <section_maps>: Change type to
7024 std::unique_ptr<arm_mapping_symbol_vec[]>.
7025 (arm_compare_mapping_symbols): Remove.
7026 (arm_find_mapping_symbol): Adjust to section_maps type change.
7027 (arm_objfile_data_free): Call delete on arm_per_objfile.
7028 (arm_record_special_symbol): Adjust to section_maps type change.
7029 Allocate arm_per_objfile with new.
7030
b65b566c
PW
70312019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7032
7033 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7034 with the command prefix.
7035
c2fc64f5
TT
70362019-06-25 Tom Tromey <tom@tromey.com>
7037
7038 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7039 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7040
fb54fa76
TT
70412019-06-25 Tom Tromey <tom@tromey.com>
7042
7043 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7044 type.
7045 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7046 protected.
7047
f7952c57
TT
70482019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-winsource.c
7051 (tui_source_window_base::set_is_exec_point_at): Add check against
7052 LOA_ADDRESS.
7053
17568d78
TT
70542019-06-25 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-source.c (tui_set_source_content): Don't check before
7057 xfree.
7058 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7059
53e7cdba
TT
70602019-06-25 Tom Tromey <tom@tromey.com>
7061
7062 * tui/tui-winsource.h (tui_update_source_window_as_is)
7063 (tui_alloc_source_buffer, tui_line_is_displayed)
7064 (tui_addr_is_displayed): Change type of win_info.
7065 * tui/tui-winsource.c (tui_update_source_window_as_is)
7066 (tui_clear_source_content, tui_show_source_line)
7067 (tui_show_source_content, tui_source_window_base::refill)
7068 (tui_source_window_base::set_is_exec_point_at)
7069 (tui_source_window_base::set_is_exec_point_at)
7070 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7071 (tui_alloc_source_buffer, tui_line_is_displayed)
7072 (tui_addr_is_displayed): Change type of win_info. Update.
7073 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7074 (tui_source_window_base::do_make_visible_with_new_height):
7075 Update.
7076 * tui/tui-source.c (tui_set_source_content)
7077 (tui_set_source_content_nil)
7078 (tui_source_window::do_scroll_vertical): Update.
7079 * tui/tui-layout.c (show_layout): Update.
7080 * tui/tui-disasm.c (tui_set_disassem_content)
7081 (tui_disasm_window::do_scroll_vertical): Update.
7082 * tui/tui-data.h (tui_win_content): Remove.
7083 (struct tui_gen_win_info) <content, content_size>: Remove.
7084 (struct tui_source_element): Add initializers and destructor.
7085 (union tui_which_element, struct tui_win_element): Remove.
7086 (struct tui_source_window_base) <content>: New field.
7087 (struct tui_data_window): Remove destructor.
7088 (tui_alloc_content, tui_free_win_content)
7089 (tui_free_all_source_wins_content): Don't declare.
7090 * tui/tui-data.c (tui_initialize_static_data): Update.
7091 (init_content_element, tui_alloc_content): Remove.
7092 (~tui_gen_win_info): Update.
7093 (~tui_data_window, tui_free_all_source_wins_content)
7094 (tui_free_win_content, free_content, free_content_elements):
7095 Remove.
7096
7908abbf
TT
70972019-06-25 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui-winsource.h (tui_clear_source_content)
7100 (tui_erase_source_content, tui_show_source_content): Change type
7101 of win_info.
7102 * tui/tui-winsource.c (tui_clear_source_content)
7103 (tui_erase_source_content, tui_show_source_content): Change type
7104 of win_info.
7105 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7106 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7107 win_info.
7108 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7109 win_info.
7110 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7111
02c28df0
TT
71122019-06-25 Tom Tromey <tom@tromey.com>
7113
7114 * tui/tui-winsource.c (tui_clear_source_content)
7115 (tui_source_window_base::set_is_exec_point_at): Update.
7116 * tui/tui-source.c (tui_set_source_content_nil): Update.
7117 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7118 a bool.
7119 * tui/tui-data.c (init_content_element): Update.
7120
6658b1bf
TT
71212019-06-25 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7124 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7125 * tui/tui-layout.c (init_and_make_win): Update.
7126 * tui/tui.h (enum tui_win_type): Update.
7127 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7128 tui_win_is_auxillary.
7129 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7130 tui_win_is_auxillary.
7131
21e1c91e
TT
71322019-06-25 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7135 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7136 (tui_delete_data_content_windows, tui_display_all_data)
7137 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7138 Update.
7139 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7140 * tui/tui-regs.c (tui_last_regs_line_no)
7141 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7142 (tui_show_registers): Update.
7143 (tui_show_register_group): Return void. Update.
7144 (tui_display_registers_from, tui_display_reg_element_at_line)
7145 (tui_display_registers_from_line, tui_check_register_values):
7146 Update.
7147 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7148 member.
7149 (struct tui_data_window) <regs_content>: Now a std::vector.
7150 <regs_content_count>: Remove.
7151 (tui_add_content_elements, tui_free_data_content): Don't declare.
7152 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7153 (init_content_element): Remove DATA_WIN case. Add assert.
7154 (tui_add_content_elements): Remove.
7155 (tui_data_window): Update.
7156 (tui_free_data_content): Remove.
7157 (free_content_elements): Remove DATA_WIN case.
7158
115ac53b
TT
71592019-06-25 Tom Tromey <tom@tromey.com>
7160
7161 * tui/tui-data.c (tui_data_item_window): Update.
7162 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7163 * tui/tui-windata.c (tui_display_all_data)
7164 (tui_display_data_from_line): Update.
7165 (tui_check_data_values): Remove.
7166 * tui/tui-regs.c (tui_show_register_group)
7167 (tui_display_reg_element_at_line): Update.
7168 * tui/tui-hooks.c (tui_register_changed)
7169 (tui_refresh_frame_and_register_information): Call
7170 tui_check_register_values.
7171 * tui/tui-data.h (struct tui_data_window) <data_content,
7172 data_content_count, data_type>: Remove.
7173 (enum tui_data_type): Remove.
7174
7175 * tui/tui-data.c (tui_data_window::clear_detail)
7176 (~tui_data_window): Update.
7177
eaf9738b
TT
71782019-06-25 Tom Tromey <tom@tromey.com>
7179
7180 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7181 declare.
7182 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7183 Rename from tui_first_data_item_displayed. Update.
7184 (tui_data_window::refresh_all)
7185 (tui_data_window::do_scroll_vertical): Update.
7186 * tui/tui-data.h (struct tui_data_window)
7187 <first_data_item_displayed>: Declare new method.
7188
31ca4723
TT
71892019-06-25 Tom Tromey <tom@tromey.com>
7190
7191 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7192 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7193 contents...
7194 (tui_initialize_static_data): ...here.
7195
41bcff7f
TT
71962019-06-25 Tom Tromey <tom@tromey.com>
7197
7198 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7199 (tui_display_registers_from, tui_check_register_values): Update.
7200 (tui_display_register): Remove win_info parameter; update.
7201 (tui_get_register): Change type of parameters.
7202 * tui/tui-data.h (struct tui_data_element): Remove.
7203 (union tui_which_element) <data>: Remove.
7204 <data_window>: Change type.
7205 (struct tui_data_item_window): New.
7206 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7207 case. Add assert.
7208 (~tui_data_item_window): New destructor.
7209 (free_content_elements): Remove DATA_ITEM_WIN case.
7210
d2802c33
TT
72112019-06-25 Tom Tromey <tom@tromey.com>
7212
7213 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7214 Remove.
7215
dd835f8b
TT
72162019-06-25 Tom Tromey <tom@tromey.com>
7217
7218 * tui/tui-data.h (struct tui_command_element): Remove.
7219 (union tui_which_element) <command>: Remove.
7220 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7221 assert.
7222 (free_content_elements): Remove CMD_WIN case.
7223
bd7db367
TT
72242019-06-25 Tom Tromey <tom@tromey.com>
7225
7226 * tui/tui-layout.c (tui_set_layout): Update.
7227 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7228 * tui/tui-data.c (layout_def): Update.
7229
3add462f
TT
72302019-06-25 Tom Tromey <tom@tromey.com>
7231
7232 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7233 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7234 (tui_source_window_base::set_new_height): Update.
7235 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7236 Update.
7237 (tui_set_locator_fullname, tui_set_locator_info)
7238 (tui_show_frame_info): Update.
7239 * tui/tui-source.c (tui_set_source_content)
7240 (tui_source_is_displayed): Update.
7241 * tui/tui-layout.c (show_source_disasm_command, show_data)
7242 (show_source_or_disasm_and_command): Update.
7243 * tui/tui-disasm.c (tui_set_disassem_content)
7244 (tui_get_begin_asm_address): Update.
7245 * tui/tui-data.h (struct tui_locator_element): Remove.
7246 (union tui_which_element) <locator>: Remove.
7247 (struct tui_locator_window): New.
7248 (tui_locator_win_info_ptr): Change return type.
7249 * tui/tui-data.c (_locator): Change type.
7250 (tui_locator_win_info_ptr): Change return type.
7251 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7252 (tui_alloc_content): Add assert.
7253
489e9d8b
TT
72542019-06-25 Tom Tromey <tom@tromey.com>
7255
7256 * tui/tui-winsource.c
7257 (tui_exec_info_window::maybe_allocate_content): New method.
7258 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7259 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7260 (make_source_or_disasm_window): Add cast.
7261 * tui/tui-data.h (union tui_which_element) <simple_string>:
7262 Remove.
7263 (struct tui_source_info): New.
7264 (struct tui_source_window_base) <execution_info>: Change type.
7265 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7266 case, and add assert.
7267 (tui_alloc_content): Add assert.
7268
c3fabb7d
TT
72692019-06-25 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7272 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7273 * tui/tui-data.c (tui_alloc_win_info): Remove.
7274
bbc228ee
TT
72752019-06-25 Tom Tromey <tom@tromey.com>
7276
7277 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7278 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7279 can_highlight.
7280
5fcee43a
TT
72812019-06-25 Tom Tromey <tom@tromey.com>
7282
7283 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7284 make_visible_with_new_height method.
7285 (tui_win_info::make_visible_with_new_height): New method.
7286 (tui_source_window_base::do_make_visible_with_new_height)
7287 (tui_data_window::do_make_visible_with_new_height)
7288 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7289 (make_visible_with_new_height): Remove.
7290 (tui_resize_all, tui_adjust_win_heights): Use
7291 make_visible_with_new_height method.
7292 * tui/tui-data.h (struct tui_win_info)
7293 <do_make_visible_with_new_height, make_visible_with_new_height>:
7294 New methods.
7295 (struct tui_source_window_base, struct tui_data_window)
7296 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7297 methods.
7298
d83f1fe6
TT
72992019-06-25 Tom Tromey <tom@tromey.com>
7300
7301 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7302 method.
7303 (update_tab_width): Call update_tab_width method.
7304 * tui/tui-data.h (struct tui_win_info)
7305 (struct tui_source_window_base) <update_tab_width>: New methods.
7306
17374de4
TT
73072019-06-25 Tom Tromey <tom@tromey.com>
7308
7309 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7310 parameter.
7311 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7312 parameter.
7313 (tui_gen_win_info::make_visible): Update.
7314 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7315 parameter.
7316 * tui/tui-data.h (enum tui_box): New enum.
7317 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7318
f936bca2
TT
73192019-06-25 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7322 init_and_make_win for EXEC_INFO_WIN.
7323 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7324 longer inline.
7325 (struct tui_win_info) <~tui_win_info>: Inline.
7326 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7327 Don't declare.
7328 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7329 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7330 Remove.
7331 (tui_initialize_static_data): Update.
7332 (~tui_gen_win_info): Handle more cleanup here.
7333 (~tui_source_window_base): Delete "execution_info".
7334 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7335
d6ba6a11
TT
73362019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-layout.c (make_command_window): Don't set
7339 can_highlight.
7340 (show_source_disasm_command): Call the reset method.
7341 (show_data): Don't set can_highlight. Call the reset method.
7342 (tui_gen_win_info::reset): Rename from init_gen_win_info
7343 (init_and_make_win): Simplify. Return tui_gen_win_info.
7344 (show_source_or_disasm_and_command): Call the reset method.
7345 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7346 (struct tui_cmd_window): Set can_highlight.
7347
48a3bd16
TT
73482019-06-25 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7351 from make_visible.
7352 (tui_make_visible, tui_make_invisible): Rewrite.
7353 (tui_win_info::make_visible): Remove.
7354 (tui_source_window_base::make_visible): Update.
7355 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7356 method. Moved from...
7357 (struct tui_win_info) <make_visible>: ...here.
7358
c3bd716f
TT
73592019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-winsource.c
7362 (tui_source_window_base::do_scroll_horizontal): Remove direction
7363 parameter.
7364 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7365 direction parameter.
7366 * tui/tui-win.c (tui_win_info::forward_scroll)
7367 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7368 (tui_win_info::right_scroll): Update.
7369 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7370 direction parameter.
7371 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7372 direction parameter.
7373 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7374 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7375 Remove direction parameter.
7376 (struct tui_source_window_base, struct tui_source_window)
7377 (struct tui_disasm_window, struct tui_data_window)
7378 (struct tui_cmd_window): Update.
7379
21c32dca
TT
73802019-06-25 Tom Tromey <tom@tromey.com>
7381
7382 * tui/tui-winsource.h (tui_set_exec_info_content)
7383 (tui_show_exec_info_content, tui_erase_exec_info_content)
7384 (tui_clear_exec_info_content, tui_update_exec_info): Change
7385 argument to tui_source_window_base.
7386 * tui/tui-winsource.c (tui_set_exec_info_content)
7387 (tui_show_exec_info_content, tui_erase_exec_info_content)
7388 (tui_clear_exec_info_content, tui_update_exec_info): Change
7389 argument to tui_source_window_base.
7390
73fbdc65
TT
73912019-06-25 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7394 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7395
33325343
TT
73962019-06-25 Tom Tromey <tom@tromey.com>
7397
7398 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7399 check.
7400
29d2c474
TT
74012019-06-25 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7404 type to void.
7405 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7406 type to void.
7407 * tui/tui-source.c (tui_set_source_content): Update.
7408 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7409
152f3f4b
TT
74102019-06-25 Tom Tromey <tom@tromey.com>
7411
7412 * tui/tui-win.c (window_name_completer, tui_set_focus)
7413 (tui_all_windows_info): Use name method.
7414 * tui/tui-data.h (struct tui_gen_win_info)
7415 (struct tui_source_window, struct tui_disasm_window)
7416 (struct tui_data_window, struct tui_cmd_window) <name>: New
7417 method.
7418 (tui_win_name): Don't declare.
7419 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7420 (tui_win_name): Remove.
7421
be4da588
TT
74222019-06-25 Tom Tromey <tom@tromey.com>
7423
7424 * tui/tui-winsource.h (tui_update_source_window)
7425 (tui_update_source_window_as_is): Change parameter type.
7426 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7427 to be a tui_source_window_base.
7428 (tui_update_source_window_as_is): Likewise.
7429 * tui/tui-win.c (make_visible_with_new_height): Update.
7430
5b81daba
TT
74312019-06-25 Tom Tromey <tom@tromey.com>
7432
7433 * tui/tui-winsource.c (tui_erase_source_content)
7434 (tui_show_source_content, tui_show_exec_info_content)
7435 (tui_erase_exec_info_content): Use refresh_window method.
7436 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7437 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7438 from tui_refresh_win.
7439 (tui_data_window::refresh_window): New method.
7440 (tui_win_info::refresh, tui_source_window_base::refresh)
7441 (tui_refresh_all): Use refresh_window method.
7442 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7443 method.
7444 * tui/tui-regs.c (tui_display_register): Call refresh_window
7445 method.
7446 * tui/tui-layout.c (show_source_disasm_command)
7447 (show_source_or_disasm_and_command): Call refresh_window method.
7448 * tui/tui-data.h (struct tui_gen_win_info)
7449 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7450 New method.
7451
cb2ce893
TT
74522019-06-25 Tom Tromey <tom@tromey.com>
7453
7454 * tui/tui.c (tui_rl_other_window, tui_enable)
7455 (tui_is_window_visible, tui_get_command_dimension): Update.
7456 * tui/tui-winsource.c (tui_update_source_window_as_is)
7457 (tui_clear_source_content, tui_erase_source_content)
7458 (tui_show_source_line, tui_source_window_base::refill)
7459 (tui_source_window_base::do_scroll_horizontal)
7460 (tui_source_window_base::set_is_exec_point_at)
7461 (tui_update_breakpoint_info, tui_set_exec_info_content)
7462 (tui_alloc_source_buffer, tui_line_is_displayed)
7463 (tui_addr_is_displayed): Update.
7464 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7465 (tui_check_and_display_highlight_if_needed)
7466 (tui_win_info::make_visible, tui_win_info::refresh)
7467 (tui_refresh_all): Update.
7468 * tui/tui-windata.c (tui_first_data_item_displayed)
7469 (tui_delete_data_content_windows, tui_erase_data_content)
7470 (tui_display_all_data, tui_data_window::refresh_all)
7471 (tui_check_data_values): Update.
7472 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7473 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7474 (tui_win_info::backward_scroll, tui_refresh_all_win)
7475 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7476 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7477 (tui_source_window_base::set_new_height)
7478 (tui_data_window::set_new_height)
7479 (make_invisible_and_set_new_height)
7480 (make_visible_with_new_height, new_height_ok)
7481 (parse_scrolling_args): Update.
7482 * tui/tui-stack.c (tui_show_frame_info): Update.
7483 * tui/tui-source.c (tui_set_source_content)
7484 (tui_set_source_content_nil, tui_source_is_displayed)
7485 (tui_source_window::do_scroll_vertical): Update.
7486 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7487 (tui_display_registers_from, tui_display_reg_element_at_line)
7488 (tui_check_register_values, tui_reg_command): Update.
7489 * tui/tui-layout.c (tui_default_win_height)
7490 (show_source_disasm_command, show_data, init_and_make_win)
7491 (show_source_or_disasm_and_command): Update.
7492 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7493 (tui_redisplay_readline, tui_mld_flush)
7494 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7495 (tui_getc): Update.
7496 * tui/tui-disasm.c (tui_set_disassem_content)
7497 (tui_disasm_window::do_scroll_vertical): Update.
7498 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7499 Now virtual.
7500 (struct tui_win_info): Derive from tui_gen_win_info.
7501 <~tui_win_info>: Mark as override.
7502 <generic>: Remove member.
7503 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7504 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7505 (~tui_data_window, ~tui_win_info)
7506 (tui_free_all_source_wins_content): Update.
7507 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7508
ab313b35
TT
75092019-06-25 Tom Tromey <tom@tromey.com>
7510
7511 * tui/tui-layout.c (init_and_make_win): Use new.
7512 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7513 destructor, initializers.
7514 (tui_alloc_generic_win_info): Don't declare.
7515 * tui/tui-data.c (_locator): Add argument to constructor.
7516 (source_win, disasm_win): New globals.
7517 (exec_info): Remove.
7518 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7519 Update.
7520 (tui_alloc_generic_win_info): Remove.
7521 (init_content_element): Use new.
7522 (tui_win_info::tui_win_info): Update.
7523 (free_content_elements) <case DATA_WIN>: Use delete.
7524
dc2c33e4
TT
75252019-06-25 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7528 * tui/tui-windata.c (tui_first_data_item_displayed)
7529 (tui_delete_data_content_windows): Update.
7530 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7531 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7532 (tui_display_registers_from, tui_check_register_values): Update.
7533 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7534 pointer.
7535 * tui/tui-data.c (init_content_element): Update. Allocate the new
7536 window.
7537 (tui_free_data_content): Update.
7538 (free_content_elements) <case DATA_WIN>: Free the window.
7539
214a5cbe
TT
75402019-06-25 Tom Tromey <tom@tromey.com>
7541
7542 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7543 Update.
7544 * tui/tui-layout.c (make_command_window)
7545 (show_source_disasm_command, show_data, init_and_make_win)
7546 (show_source_or_disasm_and_command): Update.
7547 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7548 method.
7549 <can_highight, is_highlighted>: Now bool.
7550 (tui_set_win_highlight): Don't declare.
7551 * tui/tui-data.c (tui_set_win_highlight): Remove.
7552
8e2daf15
TT
75532019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-wingeneral.c (make_visible): Remove check of window
7556 type.
7557
8903bd8a
TT
75582019-06-25 Tom Tromey <tom@tromey.com>
7559
7560 * tui/tui-win.c (tui_win_info::max_height)
7561 (tui_cmd_window::max_height): New methods.
7562 (new_height_ok): Call max_height.
7563 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7564 <max_height>: New method.
7565
3f02ce1e
TT
75662019-06-25 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-win.c (tui_source_window_base::set_new_height)
7569 (tui_data_window::set_new_height): New methods.
7570 (make_invisible_and_set_new_height): Call set_new_height method.
7571 * tui/tui-data.h (struct tui_win_info)
7572 (struct tui_source_window_base, struct tui_data_window)
7573 <set_new_height>: New method.
7574
1825f487
TT
75752019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7578 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7579 tui_refresh_data_win.
7580 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7581 method.
7582 (tui_refresh_all_win): Call the refresh_all method.
7583 (tui_set_focus): Likewise.
7584 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7585 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7586 Likewise.
7587
ad54d15b
TT
75882019-06-25 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-winsource.h (tui_refill_source_window)
7591 (tui_set_is_exec_point_at): Don't declare.
7592 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7593 (tui_source_window_base::refill): Rename from
7594 tui_refill_source_window.
7595 (tui_source_window_base::do_scroll_horizontal): Update.
7596 (tui_source_window_base::set_is_exec_point_at): Rename from
7597 tui_set_is_exec_point_at.
7598 (tui_update_all_breakpoint_info): Update.
7599 * tui/tui-stack.c (tui_show_frame_info): Update.
7600 * tui/tui-layout.c (show_data): Add cast.
7601 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7602 * tui/tui-data.h (struct tui_source_window_base) <refill,
7603 set_is_exec_point_at>: New methods.
7604 (tui_source_windows, tui_add_to_source_windows): Update types.
7605 (tui_add_to_source_windows): Remove redundant declaration.
7606 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7607 (tui_source_windows): Change return type.
7608 (tui_clear_source_windows_detail): Update.
7609 (tui_add_to_source_windows): Change type of parameter.
7610 (tui_free_all_source_wins_content): Update.
7611
2042b506
TT
76122019-06-25 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-wingeneral.c (tui_win_info::refresh)
7615 (tui_source_window_base::refresh): New methods.
7616 (tui_refresh_all): Call the refresh method.
7617 * tui/tui-data.h (struct tui_win_info)
7618 (struct tui_source_window_base) <refresh>: New method.
7619
56122977
TT
76202019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui.h (tui_is_window_visible): Return bool.
7623 * tui/tui.c (tui_is_window_visible): Return bool.
7624 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7625 (tui_make_visible, tui_make_invisible)
7626 (tui_win_info::make_visible)
7627 (tui_source_window_base::make_visible, make_all_visible)
7628 (tui_make_all_visible, tui_make_all_invisible): Update.
7629 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7630 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7631 bool.
7632 (struct tui_win_info, struct tui_source_window_base)
7633 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7634 * tui/tui-data.c (tui_init_generic_part): Update.
7635
cda37efb
TT
76362019-06-25 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7639 (tui_source_window_base::make_visible): New methods.
7640 (make_all_visible): Make method call.
7641 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7642 (struct tui_source_window_base, struct tui_cmd_window): Override
7643 make_visible.
7644 (tui_win_is_source_type): Don't declare.
7645 * tui/tui-data.c (tui_win_is_source_type): Remove.
7646
6a0ee02c
TT
76472019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7650 NULL check.
7651
63901aec
TT
76522019-06-25 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7655 Inline constructor. Add initializers for members.
7656 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7657 constructors; now inline in class.
7658
ceb13a13
TT
76592019-06-25 Tom Tromey <tom@tromey.com>
7660
7661 * tui/tui-regs.c (tui_show_registers): Update.
7662 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7663 bool.
7664 * tui/tui-data.c (tui_data_window::clear_detail)
7665 (tui_data_window): Update.
7666
238eb706
TT
76672019-06-25 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-windata.c (tui_display_all_data)
7670 (tui_display_data_from_line, tui_display_data_from)
7671 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7672 Update.
7673 * tui/tui-regs.c (tui_last_regs_line_no)
7674 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7675 (tui_show_registers, tui_show_register_group)
7676 (tui_display_registers_from, tui_display_reg_element_at_line)
7677 (tui_display_registers_from_line, tui_check_register_values)
7678 (tui_reg_next, tui_reg_prev): Update.
7679 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7680 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7681 tui_data_window.
7682 (struct tui_win_info) <detail>: Remove. Add new fields from
7683 tui_data_info.
7684 (TUI_DATA_WIN): Add cast.
7685 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7686 (~tui_data_window): Simplify.
7687
81491aa0
TT
76882019-06-25 Tom Tromey <tom@tromey.com>
7689
7690 * tui/tui-layout.c (show_source_disasm_command)
7691 (show_source_or_disasm_and_command): Update.
7692 * tui/tui-io.c (update_cmdwin_start_line)
7693 (tui_redisplay_readline): Update.
7694 * tui/tui-data.h (struct tui_command_info): Remove.
7695 (struct tui_win_info) <detail>: Remove command_info member.
7696 (struct tui_data_window) <start_line>: New member, from
7697 tui_command_info.
7698 (TUI_CMD_WIN): Add casts.
7699
e6e41501
TT
77002019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-winsource.c (tui_update_source_window)
7703 (tui_refill_source_window)
7704 (tui_source_window_base::do_scroll_horizontal)
7705 (tui_update_breakpoint_info, tui_set_exec_info_content)
7706 (tui_show_exec_info_content, tui_erase_exec_info_content)
7707 (tui_clear_exec_info_content): Update.
7708 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7709 Update.
7710 * tui/tui-win.c (make_invisible_and_set_new_height)
7711 (make_visible_with_new_height): Update.
7712 * tui/tui-source.c (tui_set_source_content)
7713 (tui_show_symtab_source): Update.
7714 * tui/tui-layout.c (extract_display_start_addr)
7715 (show_source_disasm_command, show_data)
7716 (make_source_or_disasm_window)
7717 (show_source_or_disasm_and_command): Update.
7718 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7719 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7720 "gdbarch".
7721 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7722 to tui_source_window_base.
7723 (struct tui_win_info) <detail>: Remove source_info member.
7724 (struct tui_source_window_base) <has_locator>: Inline.
7725 Move contents from tui_source_info; rename has_locator member to
7726 m_has_locator.
7727 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7728 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7729 header file.
7730 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7731 Simplify.
7732 (tui_free_all_source_wins_content): Cast to
7733 tui_source_window_base.
7734
44f0e208
TT
77352019-06-25 Tom Tromey <tom@tromey.com>
7736
7737 * tui/tui-win.c (make_invisible_and_set_new_height)
7738 (make_visible_with_new_height): Call has_locator method.
7739 * tui/tui-layout.c (show_source_disasm_command, show_data)
7740 (show_source_or_disasm_and_command): Update for bool change.
7741 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7742 (tui_win_info) <has_locator>: New method.
7743 (struct tui_source_window_base) <has_locator>: New method.
7744 (tui_win_has_locator): Don't declare.
7745 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7746 from tui_win_has_locator.
7747 (tui_source_window_base): Use false, not FALSE.
7748
7778b912
TT
77492019-06-25 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7752 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7753 clear_detail method directly.
7754 (tui_clear_win_detail): Remove.
7755
f83d391c
TT
77562019-06-25 Tom Tromey <tom@tromey.com>
7757
7758 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7759 "this", not TUI_DISASM_WIN.
7760
13446e05
TT
77612019-06-25 Tom Tromey <tom@tromey.com>
7762
7763 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7764 declare.
7765 * tui/tui-winsource.c
7766 (tui_source_window_base::do_scroll_horizontal): Rename from
7767 tui_horizontal_source_scroll.
7768 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7769 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7770 from tui_vertical_data_scroll.
7771 * tui/tui-win.h (tui_scroll): Don't declare.
7772 * tui/tui-win.c (tui_win_info::forward_scroll)
7773 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7774 (tui_win_info::right_scroll): Rename and update.
7775 (tui_scroll_forward_command, tui_scroll_backward_command)
7776 (tui_scroll_left_command, tui_scroll_right_command): Update.
7777 (tui_scroll): Remove.
7778 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7779 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7780 from tui_vertical_source_scroll.
7781 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7782 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7783 from tui_vertical_disassem_scroll.
7784 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7785 do_scroll_horizontal>: New methods.
7786 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7787 Likewise.
7788 (struct tui_source_window_base): Add do_scroll_horizontal.
7789 (struct tui_source_window, struct tui_disasm_window): Add
7790 do_scroll_vertical.
7791 (struct tui_data_window, struct tui_cmd_window): Add
7792 do_scroll_horizontal and do_scroll_vertical.
7793 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7794
5cf82909
TT
77952019-06-25 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-data.h (struct tui_source_window_base): New struct.
7798 (struct tui_source_window): Derive from tui_source_window_base.
7799 (struct tui_disasm_window): New struct.
7800 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7801 from tui_source_window::clear_detail.
7802 (tui_source_window_base): Rename from tui_source_window.
7803 (~tui_source_window_base): Rename from ~tui_source_window.
7804 (tui_alloc_win_info): Create a tui_disasm_window.
7805
ee1d42d6
TT
78062019-06-25 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-data.h (struct tui_source_window)
7809 (struct tui_data_window): Declare destructors.
7810 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7811 destructors.
7812 (tui_win_info): Simplify.
7813
b4eb2452
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-winsource.c (tui_display_main)
7817 (tui_update_source_windows_with_addr)
7818 (tui_update_all_breakpoint_info): Update.
7819 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7820 (new_height_ok, parse_scrolling_args): Update.
7821 * tui/tui-stack.c (tui_show_frame_info): Update.
7822 * tui/tui-data.h (struct tui_list): Remove.
7823 (tui_source_windows): Return a reference to a std::vector.
7824 * tui/tui-data.c (source_windows): Now a std::vector.
7825 (tui_source_windows): Change return type.
7826 (tui_clear_source_windows): Rewrite.
7827 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7828 (tui_free_all_source_wins_content): Rewrite.
7829
8761a91b
TT
78302019-06-25 Tom Tromey <tom@tromey.com>
7831
7832 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7833 (struct tui_data_window, struct tui_cmd_window): Declare
7834 clear_detail method.
7835 * tui/tui-data.c (tui_source_window::clear_detail)
7836 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7837 methods.
7838 (tui_clear_win_detail): Simplify.
7839
0ed69eda
TT
78402019-06-25 Tom Tromey <tom@tromey.com>
7841
7842 * tui/tui-layout.c (make_source_window, make_disasm_window)
7843 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7844 Return the new window.
7845 (show_source_disasm_command, show_data)
7846 (show_source_or_disasm_and_command): Update.
7847
82432e10
TT
78482019-06-25 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7851 parameter. Return the new window.
7852 (show_source_disasm_command): Update and remove NULL check.
7853 (show_source_or_disasm_and_command): Update.
7854
ec328aa5
TT
78552019-06-25 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7858
33b906ab
TT
78592019-06-25 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-data.h (struct tui_win_info): Make constructor
7862 protected. Make destructor virtual. Add initializers.
7863 (tui_source_window, tui_data_window, tui_cmd_window): New
7864 classes.
7865 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7866 constructor. Add "type" parameter.
7867 (tui_source_window, tui_data_window, tui_cmd_window): New
7868 constructors.
7869 (tui_alloc_win_info): Instantiate the appropriate subclass.
7870
e7e11af4
TT
78712019-06-25 Tom Tromey <tom@tromey.com>
7872
7873 * tui/tui-win.c (tui_resize_all): Use delete.
7874 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7875 destructor.
7876 (tui_free_window): Don't declare.
7877 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7878 Update.
7879
6792b55e
TT
78802019-06-25 Tom Tromey <tom@tromey.com>
7881
7882 * tui/tui-data.h (struct tui_win_info): Add constructor.
7883 * tui/tui-data.c (tui_alloc_win_info): Use new.
7884 (tui_free_window): Use delete.
7885
f95675e1
TT
78862019-06-22 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7889 declare.
7890 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7891
5bff081c
TT
78922019-06-22 Tom Tromey <tom@tromey.com>
7893
7894 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7895 declare.
7896 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7897
47e3f474
TV
78982019-06-22 Tom de Vries <tdevries@suse.de>
7899
7900 * dwarf2read.c (create_addrmap_from_aranges)
7901 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7902 instead of '%zu'.
7903
fd5866f6
SM
79042019-06-21 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * dwarf2read.h (dwarf2_section_info_def): Remove.
7907 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7908 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7909 std::vector<dwarf2_section_info>.
7910 (struct dwo_file) <~dwo_file>: Remove.
7911 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7912 types field.
7913 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7914 (dwarf2_read_debug_names): Likewise.
7915 (create_debug_types_hash_table): Change parameter type to
7916 array_view, adjust code accordingly.
7917 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7918 (partial_die_info::fixup): Likewise.
7919 (determine_prefix): Likewise.
7920 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7921
fb1eb2f9
SM
79222019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7925 gdb_bfd_ref_ptr.
7926 <~dwo_file>: Remove call to gdb_bfd_unref.
7927 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7928 gdb_bfd_ref_ptr::get.
7929
51ac9db5
SM
79302019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7931
7932 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7933 type to htab_up.
7934 * dwarf2read.c (struct dwo_file): Initialize fields.
7935 <~dwo_file>: New.
7936 (free_dwo_file): Remove, move content to ~dwo_file.
7937 (struct dwo_file_deleter): Remove.
7938 (dwo_file_up>: Remove custom deleter.
7939 (free_dwo_files): Remove.
7940 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7941 dwo_files.
7942 (process_skeletonless_type_units): Call unique_ptr::get.
7943 (allocate_dwo_file_hash_table): Add deleter to created hash
7944 table. Change return type to htab_up.
7945 (lookup_dwo_file_slot): Don't memset dwo_file, call
7946 unique_ptr::get.
7947 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7948 (create_dwo_unit_in_dwp_v2): Likewise.
7949 (open_and_init_dwo_file): Likewise.
7950 (free_dwo_file_from_slot): Remove.
7951
dc4ccb6f
SM
79522019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7953
7954 * dwarf2read.h (struct dwarf2_section_info) <readin,
7955 is_virtual>: Change type to bool.
7956 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7957 true instead of 1.
7958
e6a1c5cb
TT
79592019-06-19 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-data.h (tui_init_content_element): Don't declare.
7962
6f6ffbeb
TT
79632019-06-19 Tom Tromey <tom@tromey.com>
7964
7965 * tui/tui-data.h (tui_init_win_info): Don't declare.
7966
f23f598e
TV
79672019-06-19 Tom de Vries <tdevries@suse.de>
7968
7969 * dwarf2read.h (abstract_to_concrete): Change type to
7970 std::unordered_map<sect_offset, std::vector<sect_offset>,
7971 gdb::hash_enum<sect_offset>>.
7972
680e1bee
TT
79732019-06-19 Tom Tromey <tromey@adacore.com>
7974
7975 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7976 EVAL_AVOID_SIDE_EFFECTS specially.
7977
dcf37923
TT
79782019-06-19 Tom Tromey <tromey@adacore.com>
7979
7980 * source-cache.c (highlighter): New global.
7981 (source_cache::get_source_lines): Create a highlighter on demand.
7982
494986d5
AB
79832019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7984
7985 * defs.h (deprecated_interactive_hook): Delete declaration.
7986 * interps.c (clear_interpreter_hooks): Remove use of
7987 deprecated_interactive_hook.
7988 * top.c (deprecated_interactive_hook): Delete definition.
7989 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7990
3360b6e7
TV
79912019-06-18 Tom de Vries <tdevries@suse.de>
7992
7993 PR gdb/24515
7994 * dwarf2read.h (abstract_to_concrete): Change type from
7995 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7996 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7997 * dwarf2read.c (read_variable): Update.
7998 (dwarf2_fetch_die_loc_sect_off): Update.
7999
310b3441
TV
80002019-06-17 Tom de Vries <tdevries@suse.de>
8001
8002 PR gdb/24617
8003 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8004 accessing parent[parent_len - 1].
8005
ba9777be
PP
80062019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8007
8008 PR gdb/24364
8009 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8010 call dtrace_process_dof with NULL dof.
8011
2b9f6e89
TV
80122019-06-16 Tom de Vries <tdevries@suse.de>
8013
8014 PR gdb/24445
8015 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8016
431b3ead
TT
80172019-06-16 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8020 (make_all_visible): Use address of member.
8021
d04b44a1
TT
80222019-06-16 Tom Tromey <tom@tromey.com>
8023
8024 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8025 (tui_free_window, free_content, free_content_elements): Remove
8026 unnecessary cast.
8027 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8028 cast.
8029 * tui/tui-regs.c (tui_show_register_group)
8030 (tui_display_registers_from, tui_display_reg_element_at_line):
8031 Remove unnecessary cast.
8032
bf5142e7
AB
80332019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8034
8035 * linux-nat.c (normal_mask): Delete.
8036 (_initialize_linux_nat): Don't initialise normal_mask.
8037
c4973306
SM
80382019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8039
8040 PR gdb/24445
8041 * dwarf-index-write.h (write_psymtabs_to_index): Add
8042 dwz_basename parameter.
8043 * dwarf-index-write.c (write_gdbindex): Move file writing to
8044 write_gdbindex_1. Change return type void.
8045 (assert_file_size): Move up, remove filename parameter.
8046 (write_gdbindex_1): New function.
8047 (write_debug_names): Change return type to void, call
8048 assert_file_size.
8049 (struct index_wip_file): New struct.
8050 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8051 file logic to index_wip_file. Write index for dwz file if
8052 needed.
8053 (save_gdb_index_command): Pass basename of dwz file, if present.
8054 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8055 build-id of dwz file, if present.
8056 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8057 (dwarf2_get_dwz_file): Likewise.
8058 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8059 (dwarf2_get_dwz_file): Likewise.
8060
395f9c91
TT
80612019-06-16 Tom Tromey <tom@tromey.com>
8062
8063 * coffread.c (process_coff_symbol): Use xstrdup.
8064 * value.c (create_internalvar): Use xstrdup.
8065
cafb3438
TT
80662019-06-16 Tom Tromey <tom@tromey.com>
8067
8068 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8069 * breakpoint.c (stopin_command, stopat_command)
8070 (until_break_command, decode_location_default): Remove unnecessary
8071 cast.
8072 * utils.c (subset_compare): Remove unnecessary cast.
8073 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8074 cast.
8075 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8076 cast.
8077 * infcmd.c (path_command): Remove unnecessary cast.
8078 * coffread.c (decode_type): Remove unnecessary cast.
8079 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8080 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8081 * tui/tui-stack.c (tui_show_locator_content)
8082 (tui_show_frame_info): Remove unnecessary cast.
8083 * tui/tui-win.c (tui_scroll_forward_command)
8084 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8085 (parse_scrolling_args): Remove unnecessary cast.
8086 * tui/tui-data.c (init_win_info, tui_del_window)
8087 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8088 (free_content_elements): Remove unnecessary cast.
8089 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8090 unnecessary cast.
8091 * tui/tui-source.c (tui_set_source_content)
8092 (tui_vertical_source_scroll): Remove unnecessary cast.
8093 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8094 cast.
8095 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8096 * tui/tui-regs.c (tui_display_registers_from)
8097 (tui_display_register): Remove unnecessary cast.
8098 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8099 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8100 (make_visible): Remove unnecessary cast.
8101 * tui/tui-winsource.c (tui_erase_source_content)
8102 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8103 unnecessary cast.
8104 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8105 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8106 * stabsread.c (read_type, read_array_type, read_range_type):
8107 Remove unnecessary cast.
8108 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8109 (parse_symbol, parse_type, upgrade_type, parse_external)
8110 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8111 unnecessary cast.
8112 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8113
730ead81
TT
81142019-06-16 Tom Tromey <tom@tromey.com>
8115
8116 * tui/tui-data.c (tui_alloc_generic_win_info)
8117 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8118 checks.
8119
584a927c
AB
81202019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8121 Andrew Burgess <andrew.burgess@embecosm.com>
8122
8123 * f-typeprint.c (f_print_type): Don't return early for not
8124 associated or not allocated types.
8125 (f_type_print_varspec_suffix): Add print_rank parameter and print
8126 ranks of array types in case they dangling.
8127 (f_type_print_base): Add print_rank parameter.
8128
30056ea0
AB
81292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8130
8131 * NEWS: Mention new MI commands.
8132 * break-catch-throw.c (enum exception_event_kind): Move to
8133 breakpoint.h.
8134 (print_mention_exception_catchpoint): Output text as a single
8135 message.
8136 (catch_exception_command_1): Rename to...
8137 (catch_exception_event): ...this, make non-static, update header
8138 command, and change some parameter types.
8139 (catch_catch_command): Update for changes to
8140 catch_exception_command_1.
8141 (catch_throw_command): Likewise.
8142 (catch_rethrow_command): Likewise.
8143 * breakpoint.c (enum exception_event_kind): Delete.
8144 * breakpoint.h (enum exception_event_kind): Moved here from
8145 break-catch-throw.c.
8146 (catch_exception_event): Declare.
8147 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8148 (mi_cmd_catch_throw): New function.
8149 (mi_cmd_catch_rethrow): New function.
8150 (mi_cmd_catch_catch): New function.
8151 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8152 'catch-catch' entries.
8153 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8154 (mi_cmd_catch_rethrow): Declare.
8155 (mi_cmd_catch_catch): Declare.
8156
ec8e2b6d
AB
81572019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * annotate.c (annotate_source_line): Change return type to void,
8160 update implementation to match.
8161 * annotate.h (annotate_source_line): Change return type to void,
8162 update header comment.
8163 * stack.c (print_frame_info): Don't change what frame information
8164 is printed based on whether annotations are on or not.
8165
0d3abd8c
AB
81662019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8167
8168 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8169 (annotate_source): Make static.
8170 (annotate_source_line): Moved from source.c and renamed from
8171 identify_source_line. Update the return type.
8172 * annotate.h (annotate_source): Delete declaration.
8173 (annotate_source_line): Declaration moved from source.h, and
8174 renamed from identify_source_line. Return type updated.
8175 * source.c (identify_source_line): Moved to annotate.c and renamed
8176 to annotate_source_line.
8177 (info_line_command): Remove check of annotation_level.
8178 * source.h (identify_source_line): Move declaration to annotate.h
8179 and rename to annotate_source_line.
8180 * stack.c: Add 'annotate.h' include.
8181 (print_frame_info): Remove check of annotation_level before
8182 calling annotate_source_line.
8183
00df30ae
AB
81842019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * source-cache.c (source_cache::get_plain_source_lines): Use
8187 open_source_file_with_line_charpos instead of just
8188 open_source_file, remove call to find_source_lines.
8189 (source_cache::get_source_lines): Likewise.
8190 * source.c (find_source_lines): Make static.
8191 (get_filename_and_charpos): Renamed into...
8192 (open_source_file_with_line_charpos): ..this along with changes to
8193 return a scoped_fd, and some other minor clean ups.
8194 (identify_source_line): Use open_source_file_with_line_charpos.
8195 (search_command_helper): Use open_source_file_with_line_charpos
8196 instead of just open_source_file, remove call to
8197 find_source_lines.
8198 * source.h (open_source_file_with_line_charpos): Declare new
8199 function.
8200 (find_source_lines): Delete declaration.
8201
afda45a2
AB
82022019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8203
8204 * source.c (get_filename_and_charpos): Remove fullname
8205 parameter.
8206 (identify_source_line): Update call to get_filename_and_charpos.
8207
0735b091
TT
82082019-06-14 Tom Tromey <tromey@adacore.com>
8209
8210 PR gdb/24502:
8211 * ui-style.h (skip_ansi_escape): Update comment.
8212 * ui-file.h (class no_terminal_escape_file): New class.
8213 * ui-file.c (no_terminal_escape_file::write)
8214 (no_terminal_escape_file::puts): New methods.
8215 * cli/cli-logging.c (handle_redirections): Use
8216 no_terminal_escape_file.
8217
52ce35e2
TT
82182019-06-14 Tom Tromey <tromey@adacore.com>
8219
8220 * NEWS: Move convenience variable news above Python news.
8221
73cc7272
TT
82222019-06-14 Tom Tromey <tom@tromey.com>
8223
8224 * gnulib: Move directory to top-level.
8225 * configure.ac: Don't configure gnulib.
8226 * configure: Rebuild.
8227 * common/common-defs.h: Use new path to gnulib.
8228 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8229 (GNULIB_H): Remove.
8230 (INCGNU): Look in new gnulib location.
8231 (HFILES_NO_SRCDIR): Remove gnulib files.
8232 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8233 (generated_files): Remove GNULIB_H.
8234 ($(LIBGNU), all-lib): Remove targets.
8235 (distclean): Don't mention GNULIB_BUILDDIR.
8236 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8237
f5686554
TT
82382019-06-14 Tom Tromey <tromey@adacore.com>
8239
8240 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8241 Warn if symbol file does not provide any symbols.
8242
a0c1ffed
TT
82432019-06-14 Tom Tromey <tromey@adacore.com>
8244
8245 * source.c (find_and_open_source): Respect basenames_may_differ.
8246
7c39e397
AB
82472019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8248
8249 * annotate.c (annotate_breakpoints_invalid): Make use of
8250 scoped_restore_terminal_state.
8251 (annotate_frames_invalid): Likewise.
8252
f411722c
TT
82532019-06-14 Tom Tromey <tromey@adacore.com>
8254
8255 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8256 allow assignment to an internalvar.
8257
4268ec18
TT
82582019-06-14 Tom Tromey <tromey@adacore.com>
8259
8260 * ada-lex.l: Allow "_" in attribute names.
8261
abdb711e
TT
82622019-06-14 Tom Tromey <tromey@adacore.com>
8263
8264 PR gdb/24653:
8265 * regcache.c (registers_changed): Don't call alloca.
8266 * top.c (execute_command): Don't call alloca.
8267
4c048731
PA
82682019-06-13 Pedro Alves <palves@redhat.com>
8269
8270 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8271 'expression'. When parsing an expression, error out if there's
8272 junk after "unlimited".
8273 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8274 (do_set_command): Adjust calls to is_unlimited_literal.
8275
66eb1ed3
PA
82762019-06-13 Pedro Alves <palves@redhat.com>
8277
8278 * compile/compile.c (make_compile_options_def_group): Add braces
8279 around array_view initializer.
8280 * thread.c (make_thread_apply_all_options_def_group)
8281 (make_thread_apply_all_options_def_group): Likewise.
8282
3345721a
PA
82832019-06-13 Pedro Alves <palves@redhat.com>
8284
8285 * NEWS (New commands): Mention "maint test-options
8286 require-delimiter", "maint test-options unknown-is-error", "maint
8287 test-options unknown-is-operand" and "maint show
8288 test-options-completion-result".
8289 (New command options, command completion): New section.
8290 (Completion improvements): New section.
8291 Mention that you can abbreviate "unlimited".
8292
6206060d
PA
82932019-06-13 Pedro Alves <palves@redhat.com>
8294
8295 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8296 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8297 * unittests/cli-utils-selftests.c (test_parse_flags)
8298 (test_parse_flags_qcs): Delete.
8299 (test_cli_utils): Don't call deleted functions.
8300
6665660a
PA
83012019-06-13 Pedro Alves <palves@redhat.com>
8302
8303 * thread.c: Include "cli/cli-option.h".
8304 (tp_array_compar_ascending): Global.
8305 (tp_array_compar): Delete function.
8306 (tp_array_compar_ascending, tp_array_compar_descending): New
8307 functions.
8308 (ascending_option_def, qcs_flag_option_def)
8309 (thr_qcs_flags_option_defs)
8310 (make_thread_apply_all_options_def_group)
8311 (make_thread_apply_options_def_group): New.
8312 (thread_apply_all_command): Use gdb::option::process_options.
8313 (thread_apply_command_completer)
8314 (thread_apply_all_command_completer): New.
8315 (thread_apply_command): Use gdb::option::process_options.
8316 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8317 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8318 to generate help text of "thread apply". Adjust "taas"'s help.
8319 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8320 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8321
f7e13587
PA
83222019-06-13 Pedro Alves <palves@redhat.com>
8323
8324 * thread.c (thread_apply_command): Check for invalid TID with
8325 isdigit instead of !isalpha.
8326
5d707134
PA
83272019-06-13 Pedro Alves <palves@redhat.com>
8328
8329 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8330 (validate_flags_qcs): New.
8331 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8332 (validate_flags_qcs): Declare.
8333 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8334 (make_frame_apply_options_def_group): New.
8335 (frame_apply_command_count): Process options with
8336 gdb::option::process_options.
8337 (frame_apply_completer): New.
8338 (frame_apply_level_completer, frame_apply_all_completer)
8339 (frame_apply_completer): New.
8340 (_initialize_stack): Update help of "frame apply", "frame apply
8341 level", "frame apply all" and "faas" to mention supported options
8342 and install command completers.
8343 * stack.h (frame_apply_all_completer): Declare.
8344 * thread.c: Include "stack.h".
8345 (tfaas_command): Add "--".
8346 (_initialize_thread): Update help "tfaas" to mention supported
8347 options and install command completer.
8348
272d4594
PA
83492019-06-13 Pedro Alves <palves@redhat.com>
8350
8351 * completer.c (complete_nested_command_line): New.
8352 (gdb_completion_word_break_characters_throw): Add assertion.
8353 * completer.h (complete_nested_command_line): Declare.
8354
90a1ef87
PA
83552019-06-13 Pedro Alves <palves@redhat.com>
8356
8357 * stack.c (parse_backtrace_qualifiers): New.
8358 (backtrace_command): Use it.
8359 (backtrace_command_completer): Complete on qualifiers.
8360
d4c16835
PA
83612019-06-13 Pedro Alves <palves@redhat.com>
8362
8363 * frame.c: Include "cli/cli-option.h.
8364 (user_set_backtrace_options): New.
8365 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8366 Delete.
8367 (get_prev_frame): Adjust.
8368 (boolean_option_def, uinteger_option_def)
8369 (set_backtrace_option_defs): New.
8370 (_initialize_frame): Adjust and use
8371 gdb::option::add_setshow_cmds_for_options to install "set
8372 backtrace past-main" and "set backtrace past-entry".
8373 * frame.h: Include "cli/cli-option.h".
8374 (struct frame_print_options): Forward declare.
8375 (print_frame_arguments_all, print_frame_arguments_scalars)
8376 (print_frame_arguments_none): Declare.
8377 (print_entry_values): Delete declaration.
8378 (struct frame_print_options, user_frame_print_options): New.
8379 (struct set_backtrace_options): New.
8380 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8381 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8382 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8383 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8384 (list_args_or_locals): Add frame_print_options parameter.
8385 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8386 * python/py-framefilter.c (enumerate_args): Pass down
8387 USER_FRAME_PRINT_OPTIONS.
8388 * stack.c: Include "cli/cli-option.h".
8389 (print_frame_arguments_all, print_frame_arguments_scalars)
8390 (print_frame_arguments_none): Declare.
8391 (print_raw_frame_arguments, print_entry_values): Delete.
8392 (user_frame_print_options): New.
8393 (boolean_option_def, enum_option_def, frame_print_option_defs):
8394 New.
8395 (struct backtrace_cmd_options): New.
8396 (bt_flag_option_def): New.
8397 (backtrace_command_option_defs): New.
8398 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8399 (print_frame_arg, read_frame_arg, print_frame_args)
8400 (print_frame_info, print_frame): Add frame_print_options parameter
8401 and use it.
8402 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8403 (backtrace_command_1): Add frame_print_options and
8404 backtrace_cmd_options parameters and use them.
8405 (make_backtrace_options_def_group): New.
8406 (backtrace_command): Process command options with
8407 gdb::option::process_options.
8408 (backtrace_command_completer): New.
8409 (_initialize_stack): Extend "backtrace"'s help to mention
8410 supported options. Install completer for "backtrace".
8411 Install some settings commands with add_setshow_cmds_for_options.
8412
2daf894e
PA
84132019-06-13 Pedro Alves <palves@redhat.com>
8414
8415 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8416 and that "set/show print raw frame-arguments" are now deprecated.
8417
8418 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8419 command.
8420 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8421 * stack.c (_initialize_stack): Install "set/show print
8422 raw-frame-arguments", and deprecate "set/show print raw
8423 frame-arguments".
8424 * valprint.c (_initialize_valprint): Deprecate "set/show print
8425 raw".
8426
e6ed716c
PA
84272019-06-13 Pedro Alves <palves@redhat.com>
8428
8429 * compile/compile.c (struct compile_options): New.
8430 (compile_flag_option_def, compile_command_option_defs)
8431 (make_compile_options_def_group): New.
8432 (compile_file_command): Handle options with
8433 gdb::option::process_options.
8434 (compile_file_command_completer): New function.
8435 (compile_code_command): Handle options with
8436 gdb::option::process_options.
8437 (compile_code_command_completer): New function.
8438 (_initialize_compiler): Install completers for "compile code" and
8439 "compile file". Mention available options in "compile code" and
8440 "compile code"'s help.
8441 * completer.c (advance_to_completion_word): New, factored out from
8442 ...
8443 (advance_to_expression_complete_word_point): ... this.
8444 (advance_to_filename_complete_word_point): New.
8445 * completer.h (advance_to_filename_complete_word_point): New
8446 declaration.
8447
7d8062de
PA
84482019-06-13 Pedro Alves <palves@redhat.com>
8449
8450 * compile/compile.c: Include "cli/cli-option.h".
8451 (compile_print_value): Scope data pointer is now a
8452 value_print_options pointer; adjust.
8453 (compile_print_command): Process options. Scope data pointer is
8454 now a value_print_options pointer; adjust.
8455 (_initialize_compile): Update "compile print"'s help to include
8456 supported options. Install a completer for "compile print".
8457 * cp-valprint.c (show_vtblprint, show_objectprint)
8458 (show_static_field_print): Delete.
8459 (_initialize_cp_valprint): Don't install "set print
8460 static-members", "set print vtbl", "set print object" here.
8461 * printcmd.c: Include "cli/cli-option.h" and
8462 "common/gdb_optional.h".
8463 (print_command_parse_format): Rework to fill in a
8464 value_print_options instead of a format_data.
8465 (print_value): Change parameter type from format_data pointer to
8466 value_print_options reference. Adjust.
8467 (print_command_1): Process options. Adjust to pass down a
8468 value_print_options.
8469 (print_command_completer): New.
8470 (_initialize_printcmd): Install print_command_completer as
8471 handle_brkchars completer for the "print" command. Update
8472 "print"'s help to include supported options.
8473 * valprint.c: Include "cli/cli-option.h".
8474 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8475 here from cp-valprint.c.
8476 (boolean_option_def, uinteger_option_def)
8477 (value_print_option_defs, make_value_print_options_def_group):
8478 New. Use gdb::option::add_setshow_cmds_for_options to install
8479 "set print elements", "set print null-stop", "set print repeats",
8480 "set print pretty", "set print union", "set print array", "set
8481 print address", "set print symbol", "set print array-indexes".
8482 * valprint.h: Include <string> and "cli/cli-option.h".
8483 (make_value_print_options_def_group): Declare.
8484 (print_value): Change parameter type from format_data pointer to
8485 value_print_options reference.
8486 (print_command_completer): Declare.
8487
9d0faba9
PA
84882019-06-13 Pedro Alves <palves@redhat.com>
8489
8490 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8491 (COMMON_SFILES): Add maint-test-settings.c.
8492 * cli/cli-decode.c (boolean_enums): New global, factored out from
8493 ...
8494 (add_setshow_boolean_cmd): ... here.
8495 * cli/cli-decode.h (boolean_enums): Declare.
8496 * cli/cli-option.c: New file.
8497 * cli/cli-option.h: New file.
8498 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8499 factored out from ...
8500 (parse_cli_boolean_value(const char *)): ... this.
8501 (is_unlimited_literal): Change parameter type to pointer to
8502 pointer. Adjust and advance ARG pointer.
8503 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8504 (parse_cli_var_enum): New, factored out from ...
8505 (do_set_command): ... this. Adjust.
8506 * cli/cli-setshow.h (parse_cli_boolean_value)
8507 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8508 (parse_cli_var_enum): Declare.
8509 * cli/cli-utils.c: Include "cli/cli-option.h".
8510 (get_ulongest): New.
8511 * cli/cli-utils.h (get_ulongest): Declare.
8512 (check_for_argument): New overloads.
8513 * maint-test-options.c: New file.
8514
2c722807
PA
85152019-06-13 Pedro Alves <palves@redhat.com>
8516
8517 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8518 parse a range if "-" is at the end of the string.
8519
dee7b4c8
PA
85202019-06-13 Pedro Alves <palves@redhat.com>
8521
8522 * cli/cli-setshow.c (parse_auto_binary_operation)
8523 (parse_cli_boolean_value): Don't allow "o".
8524
dca0f6c0
PA
85252019-06-13 Pedro Alves <palves@redhat.com>
8526
8527 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8528 * NEWS: Mention maint test-settings KIND.
8529 * maint-test-settings.c: New file.
8530
597bf39d
PA
85312019-06-13 Pedro Alves <palves@redhat.com>
8532
8533 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8534 completer.
8535 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8536 "set" completers.
8537
48c410fb
PA
85382019-06-13 Pedro Alves <palves@redhat.com>
8539
8540 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8541 after item.
8542
93bcb043
PA
85432019-06-13 Pedro Alves <palves@redhat.com>
8544
8545 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8546
cbba3ecd
PA
85472019-06-13 Pedro Alves <palves@redhat.com>
8548
8549 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8550 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8551 call.
8552 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8553 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8554 calls.
8555 (check_for_argument): Skip spaces after argument.
8556
b9a3f842
PA
85572019-06-13 Pedro Alves <palves@redhat.com>
8558
8559 * thread.c (thread_apply_command): Adjust TID parsing.
8560 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8561 detected before end of string.
8562 (tid_is_in_list): Error out if LIST is invalid.
8563
3844e605
PA
85642019-06-13 Pedro Alves <palves@redhat.com>
8565
8566 * completer.c (complete_line_internal_1): Rewind completion word
8567 point.
8568 (completion_tracker::advance_custom_word_point_by): Change
8569 parameter type to int.
8570 * completer.h (completion_tracker::advance_custom_word_point_by):
8571 Likewise.
8572
00b56dbe
PA
85732019-06-13 Pedro Alves <palves@redhat.com>
8574
8575 * completer.c (advance_to_completion_word): Handle delimiters.
8576
d106773e
PA
85772019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8578
8579 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8580
08f10e02
TT
85812019-06-11 Tom Tromey <tom@tromey.com>
8582
8583 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8584 (xmalloc_failed): Move to alloc.c.
8585 * alloc.c: New file.
8586 * Makefile.in (COMMON_SFILES): Add alloc.c.
8587
1c7fe951
TT
85882019-06-11 Tom Tromey <tom@tromey.com>
8589
8590 * nat/linux-waitpid.c: Don't include server.h.
8591 (linux_debug): Remove.
8592 (my_waitpid): Update.
8593
89549d7f
TT
85942019-06-11 Tom Tromey <tromey@adacore.com>
8595
8596 * infcall.c (_initialize_infcall): Remove trailing newline from
8597 help.
8598 * user-regs.c (_initialize_user_regs): Remove trailing newline
8599 from help.
8600 * typeprint.c (_initialize_typeprint): Remove trailing newline
8601 from help.
8602 * reverse.c (_initialize_reverse): Remove trailing newlines from
8603 help.
8604 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8605 from help.
8606 * language.c (add_set_language_command): Remove trailing newline
8607 from help.
8608 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8609 help.
8610 * disasm.c (_initialize_disasm): Remove trailing newline from
8611 help.
8612 * top.c (init_main): Remove trailing newline from help.
8613 * interps.c (_initialize_interpreter): Remove trailing newline
8614 from help.
8615 * btrace.c (_initialize_btrace): Remove trailing newlines from
8616 help.
8617 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8618 from help.
8619 * python/python.c (_initialize_python): Remove trailing newline
8620 from help.
8621 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8622 help.
8623 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8624 from help. Reformat some text.
8625 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8626 from help.
8627 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8628 newline from help.
8629
86108c13
TT
86302019-06-11 Tom Tromey <tromey@adacore.com>
8631
8632 * darwin-nat.c (darwin_decode_exception_message)
8633 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8634
a7067863
AB
86352019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * valops.c (value_slice): Check for not allocated or not
8638 associated values.
8639
9ab08412
TV
86402019-06-10 Tom de Vries <tdevries@suse.de>
8641
8642 PR gdb/24618
8643 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8644 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8645 invalid.
8646
f19e22e9
TV
86472019-06-10 Tom de Vries <tdevries@suse.de>
8648
8649 PR gdb/24611
8650 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8651 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8652
e99f9db0
TV
86532019-06-10 Tom de Vries <tdevries@suse.de>
8654
8655 PR symtab/24545
8656 * symtab.c (struct demangled_name_entry): Add language field.
8657 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8658 static minimal symbol". Set and use language field.
8659
9bf7038b
TT
86602019-06-10 Tom Tromey <tromey@adacore.com>
8661
8662 * ada-lang.c (_initialize_ada_language): Update help text.
8663
422186a9
TT
86642019-06-10 Tom Tromey <tromey@adacore.com>
8665
8666 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8667 with a newline.
8668 * guile/guile.c (handle_boot_error): Don't end warning with a
8669 newline.
8670 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8671 warning with a newline.
8672 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8673 newline.
8674 (s12z_frame_cache): Likewise.
8675 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8676 a newline.
8677 * solib-svr4.c (disable_probes_interface): Don't end warning with
8678 a newline.
8679 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8680 newline.
8681 * python/python.c (do_finish_initialization): Don't end warning
8682 with a newline.
8683
25ce02ee
TT
86842019-06-10 Tom Tromey <tom@tromey.com>
8685
8686 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8687 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8688 gdbpy_enter.
8689
caa429d8
TT
86902019-06-10 Tom Tromey <tromey@adacore.com>
8691
8692 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8693 data.
8694 (elf_new_init): Don't call stabsread_new_init.
8695 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8696 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8697 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8698
81873cc8
TV
86992019-06-10 Tom de Vries <tdevries@suse.de>
8700
8701 PR symtab/16264
8702 PR symtab/24517
8703 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8704
4fa0265e
РИ
87052019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8706
8707 * source.c (find_and_open_source): Also rewrite relative file
8708 names.
8709
1a3da2cd
AB
87102019-04-26 Amos Bird <amosbird@gmail.com>
8711
8712 * annotate.c (annotate_thread_exited): Add "thread-exited"
8713 annotation.
8714
3847a7bf
TT
87152019-06-06 Tom Tromey <tromey@adacore.com>
8716
8717 * maint.h (class scoped_command_stats): Use
8718 DISABLE_COPY_AND_ASSIGN.
8719 <print_time>: New method.
8720 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8721 print_time.
8722 (scoped_command_stats::print_time): New method.
8723
312617a3
AB
87242019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8727 instructions of lengths 6 or 8 bytes.
8728
b02f78f9
PA
87292019-06-04 Pedro Alves <palves@redhat.com>
8730
8731 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8732
8733 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8734 * breakpoint.c (condition_completer): Likewise.
8735 * cli/cli-dump.c (scan_expression): Likewise.
8736 * common/filestuff.c (mkdir_recursive): Likewise.
8737 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8738 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8739 (gdb_abspath): Likewise.
8740 * compile/compile-cplus-types.c
8741 (compile_cplus_instance::decl_name): Likewise.
8742 * completer.c (complete_explicit_location):
8743 (signal_completer, reg_or_group_completer_1): Likewise.
8744 * cp-support.c (cp_remove_params_if_any): Likewise.
8745 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8746 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8747 * infcmd.c (strip_bg_char): Likewise.
8748 * linespec.c (copy_token_string): Likewise.
8749 * mi/mi-main.c (output_cores): Likewise.
8750 * psymtab.c (psymtab_search_name):
8751 * symfile.c (test_set_ext_lang_command): Likewise.
8752 * target.c (target_fileio_read_stralloc): Likewise.
8753 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8754 * value.c (complete_internalvar): Likewise.
8755
e1f2e1a2
CB
87562019-06-04 Christian Biesinger <cbiesinger@google.com>
8757
8758 Add objfile property to gdb.Type.
d3238f7d
PA
8759 * NEWS: Mention Python API addition.
8760 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8761
e664d728
PW
87622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8763
8764 * NEWS: Mention the new set|show style [title|highlight].
8765 Mention changes to "show style", "help" and "apropos".
8766
66d8c862
PW
87672019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8768
8769 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8770 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8771 instead of print_help_for_command.
8772 (print_doc_of_command): New function.
8773 (help_list): Add 'apropos -v word' suggestion.
8774 (print_help_for_command): Style the command name using title style.
8775 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8776 (_initialize_cli_cmds): Describe -v in apropos_command help.
8777
9303eb2f
PW
87782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8779
8780 * cli/cli-style.h (cli_style_option): Add name in constructor,
8781 add m_name class member, add constructor with intensity,
8782 add name class function.
8783 (cli_style_option::add_setshow_commands): Remove name argument.
8784 (highlight_style, title_style): New styles.
8785 * cli/cli-style.c (do_show): New function that shows a style
8786 characteristic styling the style name with itself.
8787 (set_style_name): New function.
8788 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8789 Update all callers according to the changes in cli/cli-style.h.
8790 * utils.h (fputs_highlighted): New function.
8791 * utils.c (fputs_highlighted): Likewise.
8792
e2c52041
PW
87932019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8794
8795 * NEWS: Mention new pipe command and new convenience variables.
8796
947d3946
PW
87972019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8798
8799 * cli/cli-cmds.c (pipe_command): New function.
8800 (_initialize_cli_cmds): Call add_com for pipe_command.
8801 Define | as an alias for pipe.
8802 (exit_status_set_internal_vars): New function.
8803 (shell_escape): Call exit_status_set_internal_vars.
8804 cli/cli-decode.c (find_command_name_length): Recognize | as
8805 a single character command.
8806
b8fd0918
PW
88072019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8808
8809 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8810 top.c (execute_command_to_ui_file): New function, mostly a copy
8811 of execute_command_to_string.
8812 (execute_command_to_string): Implement by calling
8813 execute_command_to_ui_file.
8814
68bb5386
PW
88152019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8816
8817 * top.h (saved_command_line): Remove declaration.
8818 * top.c (previous_saved_command_line, previous_repeat_arguments):
8819 New variables.
8820 (saved_command_line): Make static, define together with other
8821 'repeat variables'.
8822 (dont_repeat): Clear repeat_arguments.
8823 (repeat_previous, get_saved_command_line, save_command_line):
8824 New functions.
8825 (gdb_init): Initialize saved_command_line
8826 and previous_saved_command_line.
8827 * main.c (captured_main_1): Remove saved_command_line initialization.
8828 * event-top.c (handle_line_of_input): Update to use
8829 the new 'repeat' related functions instead of direct access to
8830 saved_command_line.
8831 * command.h (repeat_previous, get_saved_command_line,
8832 save_command_line): New declarations.
8833 (dont_repeat): Add comment.
8834
bfcdb852
TT
88352019-05-30 Tom Tromey <tromey@adacore.com>
8836
8837 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8838 Fix comment.
8839 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8840
0ef209f2
JV
88412019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8842
8843 PR cli/24587
8844 * completer.c (complete): Initialize variable word.
8845
955b06fa
SDJ
88462019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8847
8848 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8849 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8850 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8851 'body' is NULL to the outter 'if', protecting the '!is_define'
8852 situation as well.
8853
fa9c3fa0
TT
88542019-05-29 Tom Tromey <tromey@adacore.com>
8855
8856 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8857 (dwarf_unknown): New function.
8858 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8859 (dwarf_type_encoding_name): Use dwarf_unknown.
8860
4330d61d
TT
88612019-05-29 Tom Tromey <tromey@adacore.com>
8862
8863 PR c++/20020:
8864 * cp-valprint.c (cp_print_value_fields): Call
8865 cp_print_static_field inside "try".
8866
33a6bc35
TT
88672019-05-29 Tom Tromey <tromey@adacore.com>
8868
8869 * inflow.c (struct terminal_info): Add default operator=.
8870 * configure: Rebuild.
8871 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8872 -Wdeprecated-copy-dtor, -Wredundant-move.
8873
000439d5
TT
88742019-05-29 Tom Tromey <tromey@adacore.com>
8875
8876 * NEWS: Add entry.
8877 * infcmd.c (print_return_value_1): Handle finish_print
8878 option.
8879 (show_print_finish): New function.
8880 (_initialize_infcmd): Add "set/show print finish" commands.
8881 * valprint.c (user_print_options): Initialize new member.
8882 * valprint.h (struct value_print_options) <finish_print>: New
8883 member.
8884
c0e70c62
TT
88852019-05-28 Tom Tromey <tromey@adacore.com>
8886
8887 * ada-lang.c (ada_remove_Xbn_suffix)
8888 (find_old_style_renaming_symbol)
8889 (parse_old_style_renaming): Remove.
8890 (ada_find_renaming_symbol): Don't call
8891 find_old_style_renaming_symbol.
8892 (ada_is_renaming_symbol): Rename from
8893 ada_find_renaming_symbol. Remove "block" parameter. Return
8894 bool. Now static.
8895 (ada_read_var_value): Update and simplify.
8896 * ada-exp.y (write_var_or_type): Remove old code.
8897
766f8836
AH
88982019-05-28 Alan Hayward <alan.hayward@arm.com>
8899
68255adc 8900 PR gdb/25010
766f8836
AH
8901 * event-top.c: Remove include comment.
8902 * inflow.c (class scoped_ignore_sigttou): Move from here...
8903 * inflow.h (class scoped_ignore_sigttou): ...to here.
8904 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8905 * top.c: Remove include comment.
8906
eb41253a
TT
89072019-05-27 Tom Tromey <tom@tromey.com>
8908
8909 * NEWS: Fix typo.
8910
4ca51187
TT
89112019-05-22 Tom Tromey <tromey@adacore.com>
8912
8913 * target.c (target_follow_exec): Constify parameter.
8914 * target-delegates.c: Rebuild.
8915 * remote.c (remote_target::follow_exec): Constify parameter.
8916 * infrun.c (follow_exec): Constify parameter.
8917 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8918 (target_follow_exec): Likewise.
8919
8fca4da0
AH
89202019-05-22 Alan Hayward <alan.hayward@arm.com>
8921
8922 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8923 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8924
b7060614
AH
89252019-05-22 Alan Hayward <alan.hayward@arm.com>
8926
8927 * NEWS: Add debugredirect and testsuite sections.
8928
0a5954bd
SC
89292019-05-22 Simon Cook <simon.cook@embecosm.com>
8930
8931 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8932 target descriptions using exclusively floating point register name
8933 aliases.
8934
dc42e902
AB
89352019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8936
8937 PR gdb/18644:
8938 * f-lang.c (build_fortran_types): Handle the case where
8939 gdbarch_floatformat_for_type returns a nullptr.
8940
fb7806c7
TV
89412019-05-21 Tom de Vries <tdevries@suse.de>
8942
8943 PR cli/24587
8944 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8945
34d11c68
AB
89462019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8947
8948 PR gdb/18644:
8949 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8950 16-byte floats.
8951 * i386-tdep.c (i386_floatformat_for_type): Use
8952 floatformats_ia64_quad for the 16-byte floating point component
8953 within a fortran 32-byte complex number.
8954
122cf0f2
AB
89552019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8956
8957 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8958 delete default constructor.
8959 (find_partial_die): Update to return const struct.
8960 (partial_die_parent_scope): Move variable declaration into scope
8961 of its use and change its type to auto.
8962 (guess_partial_die_structure_name): Likewise.
8963 (partial_die_info::fixup): Likewise.
8964
33d0e35a
TT
89652019-05-17 Tom Tromey <tromey@adacore.com>
8966
8967 * source.c (find_and_open_source): Remove cast.
8968
a45575b0
TT
89692019-05-17 Tom Tromey <tromey@adacore.com>
8970
8971 * annotate.c (annotate_source): Make "filename" const.
8972 * annotate.h (annotate_source): Use const.
8973
81f47ac2
AH
89742019-05-17 Alan Hayward <alan.hayward@arm.com>
8975
8976 * disasm.c (set_disassembler_options): Send errors to stderr.
8977
ca1285d1
AH
89782019-05-17 Alan Hayward <alan.hayward@arm.com>
8979
8980 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8981 (cli_interp_base::set_logging): Check debug_redirect.
8982 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8983 * cli/cli-logging.c (debug_redirect): Add static variable.
8984 (pop_output_files): Add default param.
8985 (handle_redirections): Print debug setting.
8986 (show_logging_command): Likewise.
8987 (_initialize_cli_logging): Add debugredirect command.
8988 * interps.c (current_interp_set_logging): Add debug_redirect
8989 parameter.
8990 * interps.h (set_logging): Add debug_redirect parameter.
8991 (current_interp_set_logging): Likewise.
8992 * mi/mi-common.h: Likewise.
8993 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8994
89952019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8996 Tom Tromey <tromey@adacore.com>
8997
8998 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8999 directly.
9000 * cli/cli-interp.h (make_logging_output): Remove declaration.
9001 * cli/cli-logging.c (make_logging_output): Remove function.
9002 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9003 directly.
9004 * ui-file.c (tee_file::tee_file): Remove bools.
9005 (tee_file::~tee_file): Remove deletes.
9006 * ui-file.h (tee_file): Remove bools.
9007
26648588
JV
90082019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9009
9010 * mi/mi-cmds.h (mi_cmd_complete): New function.
9011 * mi/mi-main.c (mi_cmd_complete): Likewise.
9012 * mi/mi-cmds.c: Define new MI command -complete.
9013 * NEWS: Mention new -complete command.
9014
6e035501
JV
90152019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9016
9017 * completer.h (complete): New function.
9018 * completer.c (complete): Likewise.
9019 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9020 function defined in completer.h.
9021
7d0e2ece
JV
90222019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9023
e79be6e5 9024 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9025
fb816e8b
TV
90262019-05-17 Tom de Vries <tdevries@suse.de>
9027
9028 PR gdb/24094
9029 * dwarf2read.c (struct cu_partial_die_info): New struct.
9030 (find_partial_die): Return cu_partial_die_info.
9031 (partial_die_parent_scope, guess_partial_die_structure_name)
9032 (partial_die_info::fixup): Handle new return type of find_partial_die.
9033
677052f2
SDJ
90342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9035
a1726c38 9036 PR breakpoints/24541
677052f2
SDJ
9037 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9038 "std::string", simplifying the algorithm.
9039
f3da9116
SDJ
90402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9041
9042 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9043 (stap_static_probe_ops::get_probes): Likewise.
9044
f1bb75ab
SDJ
90452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9046
9047 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9048 '-')" and "else if".
9049 (stap_parse_single_operand): Join checks for
9050 "gdbarch_stap_parse_special_token_p" and
9051 "gdbarch_stap_parse_special_token" in the same "if" statement.
9052 Invert check when verifying for operation on register
9053 displacement.
9054
3ca58cde
SDJ
90552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9056
9057 * stap-probe.c (stap_get_opcode): Update comment.
9058 (stap_get_expected_argument_type): Likewise.
9059 (handle_stap_probe): Likewise.
9060
af2d9bee
SDJ
90612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9062
9063 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9064 return type to 'bool'. Adjust comment. Use 'bool' when
9065 appropriate.
9066 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9067 * stap-probe.c (stap_parse_argument_1): Likewise.
9068 (stap_is_operator): Likewise.
9069 (stap_is_generic_prefix): Likewise.
9070 (stap_is_register_prefix): Likewise.
9071 (stap_is_register_indirection_prefix): Likewise.
9072 (stap_is_integer_prefix): Likewise.
9073 (stap_generic_check_suffix): Likewise.
9074 (stap_check_integer_suffix): Likewise.
9075 (stap_check_register_suffix): Likewise.
9076 (stap_check_register_indirection_suffix): Likewise.
9077 (stap_parse_register_operand): Likewise.
9078 (stap_parse_single_operand): Likewise.
9079 (stap_parse_argument_1): Likewise.
9080 (stap_probe::get_argument_count): Likewise.
9081 (stap_is_operator): Likewise.
9082
61c9c421
TT
90832019-05-16 Tom Tromey <tromey@adacore.com>
9084
9085 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9086 keyword to foreach.
9087
9ddc1af1
SM
90882019-05-15 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * linux-thread-db.c (try_thread_db_load_1): Change return type
9091 to bool.
9092 (try_thread_db_load): Likewise.
9093 (try_thread_db_load_from_pdir_1): Likewise.
9094 (try_thread_db_load_from_pdir): Likewise.
9095 (try_thread_db_load_from_sdir): Likewise.
9096 (try_thread_db_load_from_dir): Likewise.
9097 (thread_db_load_search): Likewise.
9098 (has_libpthread): Likewise.
9099 (thread_db_load): Likewise.
9100
7bede828
SDJ
91012019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9102
9103 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9104 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9105 NULL, and complain/return if that's the case.
9106
c5358db4
JD
91072019-05-15 John Darrington <john@darrington.wattle.id.au>
9108
9109 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9110 (advance, posn, abstract_read_memory): New functions.
9111 [struct mem_read_abstraction]: New struct.
9112 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9113
c408a94f
TT
91142019-05-14 Tom Tromey <tromey@adacore.com>
9115
9116 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9117 value is not lval_memory.
9118
e7bd7fba
TT
91192019-05-14 Tom Tromey <tromey@adacore.com>
9120
9121 * solib.c (info_sharedlibrary_command): Style the file name.
9122
a6d0f249
AH
91232019-05-14 Alan Hayward <alan.hayward@arm.com>
9124
9125 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9126 (aarch64_vnv_type): Likewise.
9127 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9128 * common/tdesc.c: Likewise.
9129 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9130 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9131 * features/aarch64-fpu.xml: Add ieee half view.
9132 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9133 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9134 * gdbtypes.h (struct builtin_type): Likewise.
9135 (struct objfile_type): Likewise.
9136
66b8bb74
SM
91372019-05-12 Paul Naert <paul.naert@polymtl.ca>
9138
9139 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9140 typo.
9141 * location.h (string_to_event_location): Likewise.
9142
21c219fd
JB
91432019-05-11 Joel Brobecker <brobecker@adacore.com>
9144
9145 GDB 8.3 released.
9146
13674803
SM
91472019-05-10 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9150 New variable declaration.
9151 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9152 New variable.
9153 (print_one_breakpoint): Use ui_out::test_flags and new global
9154 variable to compute use_fixed_output.
9155 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9156 Remove.
9157 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9158 (mi_multi_location_breakpoint_output_fixed): Remove.
9159 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9160 new variable.
9161 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9162 fix_multi_location_breakpoint_output flag if version >= 3.
9163 * ui-out.h (enum ui_out_flag)
9164 <fix_multi_location_breakpoint_output>: New enumerator.
9165
a9eac7f9
SM
91662019-05-10 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9169
71bed2db
TT
91702019-05-10 Tom Tromey <tromey@adacore.com>
9171
9172 * ada-lang.c (catch_ada_completer): New function.
9173 (_initialize_ada_language): Use it.
9174
24c54127
TT
91752019-05-10 Tom Tromey <tromey@adacore.com>
9176
9177 * thread.c (print_thread_info): Make "requested_threads" const.
9178 * gdbthread.h (print_thread_info): Make "requested_threads"
9179 const.
9180 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9181 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9182
7a102139
TT
91832019-05-08 Tom Tromey <tom@tromey.com>
9184
9185 * gdbtypes.c (objfile_type_data): Change type.
9186 (objfile_type, _initialize_gdbtypes): Update.
9187
924d79e2
TT
91882019-05-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9191 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9192 (_initialize_dwarf2_frame): Update.
9193
4c58e337
TT
91942019-05-08 Tom Tromey <tom@tromey.com>
9195
9196 * objc-lang.c (objc_objfile_data): Change type.
9197 (find_methods): Update.
9198 (_initialize_objc_lang): Remove.
9199
d772d2ab
TT
92002019-05-08 Tom Tromey <tom@tromey.com>
9201
9202 * stabsread.c (rs6000_builtin_type_data): Change type.
9203 (rs6000_builtin_type, _initialize_stabsread): Update.
9204
d11d83f4
TT
92052019-05-08 Tom Tromey <tom@tromey.com>
9206
9207 * mips-tdep.c (mips_pdr_data): Remove.
9208 (_initialize_mips_tdep): Update.
9209
9a73f0ad
TT
92102019-05-08 Tom Tromey <tom@tromey.com>
9211
9212 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9213 (hppa_init_objfile_priv_data, read_unwind_info)
9214 (find_unwind_entry, _initialize_hppa_tdep): Update.
9215
8127a2fa
TT
92162019-05-08 Tom Tromey <tom@tromey.com>
9217
9218 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9219 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9220 on obstack.
9221 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9222
91d3055d
TT
92232019-05-08 Tom Tromey <tom@tromey.com>
9224
9225 * mdebugread.c (basic_type_data): Change type.
9226 (basic_type, _initialize_mdebugread): Update.
9227
31930bd3
TT
92282019-05-08 Tom Tromey <tom@tromey.com>
9229
9230 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9231
bdb3ed9e
TT
92322019-05-08 Tom Tromey <tom@tromey.com>
9233
9234 * nto-tdep.c (nto_inferior_data_reg): Change type.
9235 (nto_inferior_data): Update.
9236 (nto_inferior_data_cleanup, nto_new_inferior_data)
9237 (_initialize_nto_tdep): Remove.
9238 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9239
f37b313d
TT
92402019-05-08 Tom Tromey <tom@tromey.com>
9241
9242 * ada-lang.c (struct ada_inferior_data): Add initializers.
9243 (ada_inferior_data): Change type.
9244 (ada_inferior_data_cleanup): Remove.
9245 (get_ada_inferior_data, ada_inferior_exit)
9246 (struct ada_pspace_data): Add initializers, destructor.
9247 (ada_pspace_data_handle): Change type.
9248 (get_ada_pspace_data): Update.
9249 (ada_pspace_data_cleanup): Remove.
9250
24699405
TT
92512019-05-08 Tom Tromey <tom@tromey.com>
9252
9253 * coffread.c (struct coff_symfile_info): Add initializers.
9254 (coff_objfile_data_key): Move lower. Change type.
9255 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9256 Update.
9257 (coff_free_info): Remove.
9258
d4e05d2f
TT
92592019-05-08 Tom Tromey <tom@tromey.com>
9260
9261 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9262 (fbsd_pspace_data_handle): Move lower. Change type.
9263 (get_fbsd_pspace_data): Update.
9264 (fbsd_pspace_data_cleanup): Remove.
9265 (_initialize_fbsd_tdep): Update.
9266
14ef6690
TT
92672019-05-08 Tom Tromey <tom@tromey.com>
9268
9269 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9270 (get_ada_tasks_pspace_data): Update.
9271 (ada_tasks_pspace_data_cleanup): Remove.
9272 (_initialize_tasks): Update.
9273 (ada_tasks_inferior_data_handle): Change type.
9274 (get_ada_tasks_inferior_data): Update.
9275 (ada_tasks_inferior_data_cleanup): Remove.
9276 (struct ada_tasks_pspace_data): Add initializers.
9277
814cf43a
TT
92782019-05-08 Tom Tromey <tom@tromey.com>
9279
9280 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9281 * symfile-debug.c (debug_sym_get_probes): Change type.
9282 * stap-probe.c (handle_stap_probe):
9283 (stap_static_probe_ops::get_probes): Change type.
9284 * probe.h (class static_probe_ops) <get_probes>: Change type.
9285 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9286 (parse_probes_in_pspace): Update.
9287 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9288 Update.
9289 (any_static_probe_ops::get_probes): Change type.
9290 * elfread.c (elfread_data): New typedef.
9291 (probe_key): Change type.
9292 (elf_get_probes): Likewise. Update.
9293 (probe_key_free): Remove.
9294 (_initialize_elfread): Update.
9295 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9296 Change type.
9297 (dtrace_process_dof_probe, dtrace_process_dof)
9298 (dtrace_static_probe_ops::get_probe): Change type.
9299
02dc647e
TT
93002019-05-08 Tom Tromey <tom@tromey.com>
9301
9302 * xcoffread.c (struct xcoff_symfile_info): Rename from
9303 coff_symfile_info. Add initializers.
9304 (xcoff_objfile_data_key): Move lower. Change type.
9305 (XCOFF_DATA): Rewrite.
9306 (xcoff_free_info): Remove.
9307 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9308 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9309 (xcoff_initial_scan): Update.
9310
09232438
TT
93112019-05-08 Tom Tromey <tom@tromey.com>
9312
9313 * solib-svr4.c (struct svr4_info): Add initializers and
9314 destructor.
9315 <probes_table>: Now an htab_up.
9316 (solib_svr4_pspace_data): Change type.
9317 (free_probes_table): Simplify.
9318 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9319 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9320 (probes_table_remove_objfile_probes, register_solib_event_probe)
9321 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9322 (_initialize_svr4_solib): Update.
9323
7b4a314f
TT
93242019-05-08 Tom Tromey <tom@tromey.com>
9325
9326 * remote.c (remote_pspace_data): Change type.
9327 (remote_pspace_data_cleanup): Remove.
9328 (get_remote_exec_file, set_pspace_remote_exec_file)
9329 (_initialize_remote): Update.
9330
51d3063a
TT
93312019-05-08 Tom Tromey <tom@tromey.com>
9332
9333 * breakpoint.c (breakpoint_objfile_key): Change type.
9334 (get_breakpoint_objfile_data): Update.
9335 (free_breakpoint_objfile_data): Remove.
9336 (_initialize_breakpoint): Update.
9337
89fb8848
TT
93382019-05-08 Tom Tromey <tom@tromey.com>
9339
9340 * linux-tdep.c (struct linux_info): Add initializers.
9341 (linux_inferior_data): Move. Change type.
9342 (invalidate_linux_cache_inf): Update.
9343 (linux_inferior_data_cleanup): Remove.
9344 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9345
e9b89e2d
TT
93462019-05-08 Tom Tromey <tom@tromey.com>
9347
9348 * auxv.c (auxv_inferior_data): Move. Change type.
9349 (auxv_inferior_data_cleanup): Remove.
9350 (invalidate_auxv_cache_inf): Rewrite.
9351 (get_auxv_inferior_data, _initialize_auxv): Update.
9352
8c42777c
TT
93532019-05-08 Tom Tromey <tom@tromey.com>
9354
9355 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9356 (symfile_debug_objfile_data_key): Change type.
9357 (symfile_debug_installed, debug_qf_has_symbols)
9358 (debug_qf_find_last_source_symtab)
9359 (debug_qf_forget_cached_source_info)
9360 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9361 (debug_qf_print_stats, debug_qf_dump)
9362 (debug_qf_expand_symtabs_for_function)
9363 (debug_qf_expand_all_symtabs)
9364 (debug_qf_expand_symtabs_with_fullname)
9365 (debug_qf_map_matching_symbols)
9366 (debug_qf_expand_symtabs_matching)
9367 (debug_qf_find_pc_sect_compunit_symtab)
9368 (debug_qf_map_symbol_filenames)
9369 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9370 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9371 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9372 (debug_sym_read_linetable, debug_sym_relocate): Update.
9373 (symfile_debug_free_objfile): Remove.
9374 (install_symfile_debug_logging, _initialize_symfile_debug):
9375 Update.
9376
5bfd760d
TT
93772019-05-08 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9380 allocate_on_obstack.
9381 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9382 (get_dwarf2_per_objfile): Update.
9383 (set_dwarf2_per_objfile): Remove.
9384 (dwarf2_has_info, dwarf2_get_section_info): Update.
9385 (dwarf2_free_objfile): Remove.
9386 (_initialize_dwarf2_read): Update.
9387
e85e19b4
TT
93882019-05-08 Tom Tromey <tom@tromey.com>
9389
9390 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9391 initializers.
9392 <unsupported_script_warning_printed,
9393 script_not_found_warning_printed>: Now bool.
9394 (auto_load_pspace_data): Change type.
9395 (~auto_load_pspace_info): Rename from
9396 auto_load_pspace_data_cleanup.
9397 (get_auto_load_pspace_data, init_loaded_scripts_info)
9398 (clear_section_scripts, maybe_print_unsupported_script_warning)
9399 (maybe_print_script_not_found_warning, _initialize_auto_load):
9400 Update.
9401
f6aa7436
TT
94022019-05-08 Tom Tromey <tom@tromey.com>
9403
9404 * objfiles.c (objfile_pspace_info): Add destructor and
9405 initializers.
9406 (objfiles_pspace_data): Change type.
9407 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9408 (get_objfile_pspace_data): Update.
9409 (objfiles_bfd_data): Change type.
9410 (get_objfile_bfd_data): Update.
9411 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9412
6ae614f6
TT
94132019-05-08 Tom Tromey <tom@tromey.com>
9414
9415 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9416 Change type.
9417 (get_catch_syscall_inferior_data): Update.
9418 (catch_syscall_inferior_data_cleanup): Remove.
9419 (_initialize_break_catch_syscall): Update.
9420
6509b8eb
TT
94212019-05-08 Tom Tromey <tom@tromey.com>
9422
9423 * inflow.c (struct terminal_info): Add destructor and
9424 initializers.
9425 (inflow_inferior_data): Change type.
9426 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9427 (get_inflow_inferior_data, inflow_inferior_exit)
9428 (swap_terminal_info, _initialize_inflow): Update.
9429
35632941
TT
94302019-05-08 Tom Tromey <tom@tromey.com>
9431
9432 * target-dcache.c (target_dcache_cleanup): Remove.
9433 (target_dcache_aspace_key): Change type.
9434 (target_dcache_init_p, target_dcache_invalidate)
9435 (target_dcache_get, target_dcache_get_or_init)
9436 (_initialize_target_dcache): Update.
9437 * dcache.h (struct dcache_deleter): New.
9438
3017b94d
TT
94392019-05-08 Tom Tromey <tom@tromey.com>
9440
9441 * symtab.c (struct symbol_cache): Add destructor and
9442 initializers.
9443 (symbol_cache_key): Move. Change type.
9444 (make_symbol_cache, free_symbol_cache): Remove.
9445 (get_symbol_cache): Update.
9446 (symbol_cache_cleanup): Remove.
9447 (ALL_PSPACES, symbol_cache_flush)
9448 (maintenance_print_symbol_cache)
9449 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9450 Update.
9451
a32ad8c5
TT
94522019-05-08 Tom Tromey <tom@tromey.com>
9453
9454 * symtab.c (struct main_info): Add destructor and initializers.
9455 (main_progspace_key): Move. Change type.
9456 (get_main_info): Update.
9457 (main_info_cleanup): Remove.
9458 (_initialize_symtab): Update.
9459
5f6e90a0
TT
94602019-05-08 Tom Tromey <tom@tromey.com>
9461
9462 * registry.h (DECLARE_REGISTRY): Define the _key class.
9463
1bd0c6e4
AB
94642019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 * NEWS: Merge two 'New commands' sections.
9467
2228ef77
XR
94682019-05-08 Joel Brobecker <brobecker@adacore.com>
9469
9470 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9471 parameter and use Ada language definition instead.
9472 (ada_val_print_ptr): Remove unused language parameter.
9473 (ada_val_print_num): Remove language parameter and use Ada language
9474 definition instead.
9475 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9476 parameter.
9477 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9478 parameter and use Ada language definition instead.
9479 (ada_val_print_1): Update all ada_val_print_xxx calls.
9480 Remove language parameter.
9481 (ada_val_print): Update ada_val_print_1 call.
9482
60fcc1c3
TT
94832019-05-08 Tom Tromey <tromey@adacore.com>
9484
9485 * remote.c (remote_hw_watchpoint_limit)
9486 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9487 Now static.
9488
ed2b7c17
TT
94892019-05-08 Tom Tromey <tromey@adacore.com>
9490
9491 * maint.c (_initialize_maint_cmds): Move initialization code to
9492 remote.c.
9493 (watchdog, show_watchdog): Move to remote.c.
9494 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9495 "watchdog" static.
9496 (_initialize_remote): Move initialization code from maint.c.
9497 * defs.h (watchdog): Don't declare.
9498
b0be6c91
TT
94992019-05-08 Tom Tromey <tromey@adacore.com>
9500
9501 * tui/tui-interp.c: Include main.h.
9502 * interps.c: Include main.h.
9503 * main.h (interpreter_p): Declare.
9504 * defs.h (interpreter_p): Don't declare.
9505
587ee17b
TT
95062019-05-08 Tom Tromey <tromey@adacore.com>
9507
9508 * dwarf2loc.c: Include dwarf2read.h.
9509 * defs.h (read_unsigned_leb128): Don't declare.
9510 * dwarf2read.h (read_unsigned_leb128): Declare.
9511
ca1df239
TT
95122019-05-08 Tom Tromey <tromey@adacore.com>
9513
9514 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9515 method.
9516
99f20f08
TT
95172019-05-08 Tom Tromey <tromey@adacore.com>
9518
9519 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9520 when no wrap column is set.
9521
80e55b13
TT
95222019-05-08 Tom Tromey <tromey@adacore.com>
9523
9524 * c-lang.c (c_get_string): Handle non-C-style arrays.
9525
9d3421af
TT
95262019-05-08 Tom Tromey <tromey@adacore.com>
9527
9528 * typeprint.c (print_offset_data::update): Print the bit offset,
9529 not the number of bits remaining.
9530
844333e2
TT
95312019-05-08 Tom Tromey <tromey@adacore.com>
9532
9533 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9534 padding at end of comment.
9535
988915ee
TT
95362019-05-08 Tom Tromey <tromey@adacore.com>
9537
9538 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9539 Compare main types.
9540
26bfd823
TT
95412019-05-06 Tom Tromey <tom@tromey.com>
9542
9543 * common/scoped_mmap.c: Include common-defs.h.
9544 * common/scoped_mmap.h: Don't include config.h.
9545
89055eaa
TT
95462019-05-04 Tom Tromey <tom@tromey.com>
9547
9548 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9549 (struct aarch64_call_info): Add initializers.
9550 <si>: Now a std::vector.
9551 (pass_on_stack, aarch64_push_dummy_call): Update.
9552
5da01df5
TT
95532019-05-04 Simon Marchi <simon.marchi@efficios.com>
9554 Tom Tromey <tom@tromey.com>
9555
9556 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9557 (ppc_threads): Now a std::vector. Now static.
9558 (hwdebug_find_thread_points_by_tid)
9559 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9560 Update.
9561
fbdf05a1
TT
95622019-05-04 Tom Tromey <tom@tromey.com>
9563
9564 * arc-tdep.c (arc_tdesc_init): Return bool.
9565
06d16ec9
TT
95662019-05-04 Tom Tromey <tom@tromey.com>
9567
9568 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9569 Use gdb_assert_not_reached.
9570
9c056022
TT
95712019-05-04 Tom Tromey <tom@tromey.com>
9572
9573 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9574 "false".
9575
fa9c2a59
TT
95762019-05-04 Tom Tromey <tom@tromey.com>
9577
9578 * arc-tdep.c (arc_tdesc_init): Use bool.
9579
e2eb806a
TT
95802019-05-04 Tom Tromey <tom@tromey.com>
9581
9582 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9583
6fe87677
TT
95842019-05-04 Tom Tromey <tom@tromey.com>
9585
9586 * cli/cli-cmds.c (valid_command_p): Return bool.
9587
7f008c9e
TT
95882019-05-04 Tom Tromey <tom@tromey.com>
9589
9590 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9591 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9592
b6484282
RT
95932019-05-04 Raul Tambre <raul@tambre.ee>
9594
9595 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9596 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9597 operator for comparison.
9598
af97b416
TT
95992019-05-04 Tom Tromey <tom@tromey.com>
9600
9601 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9602 (lookup_partial_symbol, print_partial_symbols)
9603 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9604 (psymbol_compare): Update.
9605 (add_psymbol_to_bcache): Clear the entire psymbol.
9606 (maintenance_check_psymtabs): Update.
9607 * psympriv.h (struct partial_symbol): Don't derive from
9608 general_symbol_info.
9609 <obj_section, unrelocated_address, address,
9610 set_unrelocated_address>: Update.
9611 <ginfo>: New member.
9612 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9613 (debug_names::write_psymbols): Update.
9614
9d6d4be8
TV
96152019-05-04 Tom de Vries <tdevries@suse.de>
9616
9617 * contrib/cc-with-tweaks.sh: Support -n arg.
9618
66452beb
PW
96192019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9620
9621 * corelow.c (core_target::detach): Ensure frame cache and
9622 register caches are cleared.
9623 inferior.c (exit_inferior_1): Likewise.
9624
bde09ab7
TT
96252019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9626 Tom Tromey <tom@tromey.com>
9627
9628 * dictionary.c (collate_pending_symbols_by_language): Remove
9629 "struct" from foreach.
9630 * symtab.c (lookup_global_symbol_from_objfile)
9631 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9632 foreach.
9633 * ser-tcp.c (net_open): Remove "struct" from foreach.
9634 * objfiles.c (objfile_relocate, objfile_rebase)
9635 (objfile_has_symbols): Remove "struct" from foreach.
9636 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9637 from foreach.
9638 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9639 foreach.
9640 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9641 "struct" from foreach.
9642 * ada-lang.c (create_excep_cond_exprs)
9643 (ada_exception_catchpoint_cond_string): Remove "struct" from
9644 foreach.
9645
222a8d25
TT
96462019-05-03 Tom Tromey <tromey@adacore.com>
9647
9648 * ada-exp.y (convert_char_literal): Check suffix of each
9649 enumerator.
9650
fcd60b84
DP
96512019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9652
9653 PR ada/21406:
9654 * ada-exp.y (yywrap): Don't define.
9655 * ada-lex.l (%option): Add noyywrap
9656 (yywrap): Remove.
9657
5f2459c2
EZ
96582019-05-03 Eli Zaretskii <eliz@gnu.org>
9659
353ea2d1
EZ
9660 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9661 _WIN32_WINNT to the XP level, unless already defined to a higher
9662 level.
9663
9664 * unittests/parse-connection-spec-selftests.c:
9665 * ser-tcp.c:
9666 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9667 override.
9668
5f2459c2
EZ
9669 * symfile.c (find_separate_debug_file): Remove colon from the
9670 drive spec of DOS/Windows file names of the target, so that the
9671 file name produced from DEBUGDIR and the target's directory will
9672 be valid on DOS/Windows systems.
9673
80062eb9
AB
96742019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9675
9676 * rust-lang.c (val_print_struct): Handle printing structures
9677 containing strings.
9678
b8c05e85
TT
96792019-05-02 Tom Tromey <tromey@adacore.com>
9680
9681 * valarith.c (_initialize_valarith): Remove.
9682
4504bbde
TT
96832019-05-01 Tom Tromey <tromey@adacore.com>
9684
9685 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9686 bitfields.
9687
d48e62f4
TT
96882019-05-01 Tom Tromey <tromey@adacore.com>
9689
9690 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9691 for big-endian copies.
9692
15f18d14
AT
96932019-04-30 Ali Tamur <tamur@google.com>
9694 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9695 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9696 (read_3_bytes): New function.
9697
ab4ee614
JB
96982019-04-30 Joel Brobecker <brobecker@adacore.com>
9699
9700 * windows-nat.c (main_thread_id): Delete.
9701 (handle_output_debug_string): Replace main_thread_id by
9702 current_event.dwThreadId.
9703 (fake_create_process): Likewise.
9704 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9705 Do not set main_thread_id.
9706 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9707 current_event.dwThreadId.
9708 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9709
8ed5b76e
JB
97102019-04-30 Joel Brobecker <brobecker@adacore.com>
9711
9712 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9713 Use current_event.dwThreadId instead of main_thread_id.
9714
2ff0a947
TT
97152019-04-30 Tom Tromey <tromey@adacore.com>
9716
9717 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9718 (create_excep_cond_exprs): Iterate over program spaces.
9719 (ada_exception_catchpoint_cond_string): Examine all minimal
9720 symbols for exception types.
9721
a776957c
TT
97222019-04-30 Tom Tromey <tromey@adacore.com>
9723
9724 PR c++/24470:
9725 * dwarf2read.c (process_structure_scope): Handle case where type
9726 has template parameters but no symbol was created.
9727
bc68014d
AB
97282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9729 Chris January <chris.january@arm.com>
9730
9731 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9732 qualifier.
9733 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9734
f1fdc960
AB
97352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * f-typeprint.c (f_print_type): Update rules for printing
9738 whitespace.
9739 (f_type_print_varspec_suffix): Likewise.
9740
bf7a4de1
AB
97412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9742 Chris January <chris.january@arm.com>
9743
9744 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9745 function arguments.
9746
bbe75b9d
AB
97472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9748
9749 * f-lang.c (build_fortran_types): Change name of void type to
9750 lower case.
9751 * f-typeprint.c (f_type_print_base): Print the name of the void
9752 type, rather than a fixed string.
9753 * f-valprint.c (f_decorations): Use lower case void string.
9754
1db455a7
AB
97552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9756 Chris January <chris.january@arm.com>
9757
9758 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9759 types for Fortran.
9760
b6d03bb2
AB
97612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9762 Chris January <chris.january@arm.com>
9763 David Lecomber <david.lecomber@arm.com>
9764
9765 * f-exp.y (BINOP_INTRINSIC): New token.
9766 (exp): New parser rule handling BINOP_INTRINSIC.
9767 (f77_keywords): Add new builtin procedures.
9768 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9769 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9770 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9771 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9772 (print_unop_subexp_f): New function.
9773 (print_binop_subexp_f): New function.
9774 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9775 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9776 (dump_subexp_body_f): Likewise.
9777 (operator_check_f): Likewise.
9778 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9779 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9780
83228e93
AB
97812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9782
9783 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9784 UNOP_KIND.
9785 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9786 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9787 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9788 (operator_length_f): New fuction.
9789 (print_subexp_f): New function.
9790 (op_name_f): New function.
9791 (dump_subexp_body_f): New function.
9792 (operator_check_f): New function.
9793 (exp_descriptor_f): Replace standard expression handling functions
9794 with new functions.
9795 * gdb/fortran-operator.def: New file.
9796 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9797 * gdb/std-operator.def: Remove UNOP_KIND.
9798
6fdcd7cc
AB
97992019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9800
9801 * std-operator.def: Remove unbalanced, stray double quote
9802 character.
9803
2e62ab40
AB
98042019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9805 Chris January <chris.january@arm.com>
9806 Daniel Everett <daniel.everett@arm.com>
9807 Nick Forrington <nick.forrington@arm.com>
9808 Richard Bunt <richard.bunt@arm.com>
9809
9810 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9811 of depth when printing anonymous structs or unions.
9812 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9813 Don't print either the top-level value, or the children if the
9814 max-depth is exceeded.
9815 (ppscm_print_children): When printing the key of a map, allow one
9816 extra level of depth.
9817 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9818 print either the top-level value, or the children if the max-depth
9819 is exceeded.
9820 (print_children): When printing the key of a map, allow one extra
9821 level of depth.
9822 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9823 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9824 (user_print_options): Initialise max_depth field.
9825 (val_print_scalar_or_string_type_p): New function.
9826 (val_print): Check to see if the max depth has been reached.
9827 (val_print_check_max_depth): Define new function.
9828 (show_print_max_depth): New function.
9829 (_initialize_valprint): Add 'print max-depth' option.
9830 * valprint.h (struct value_print_options) <max_depth>: New field.
9831 (val_print_check_max_depth): Declare new function.
9832 * NEWS: Document new feature.
9833
4be290b2
AB
98342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9835
9836 * ada-lang.c (ada_language_defn): Initialise new field.
9837 * c-lang.c (c_is_string_type_p): New function.
9838 (c_language_defn): Initialise new field.
9839 (cplus_language_defn): Initialise new field.
9840 (asm_language_defn): Initialise new field.
9841 (minimal_language_defn): Initialise new field.
9842 * c-lang.h (c_is_string_type_p): Declare new function.
9843 * d-lang.c (d_language_defn): Initialise new field.
9844 * f-lang.c (f_is_string_type_p): New function.
9845 (f_language_defn): Initialise new field.
9846 * go-lang.c (go_is_string_type_p): New function.
9847 (go_language_defn): Initialise new field.
9848 * language.c (default_is_string_type_p): New function.
9849 (unknown_language_defn): Initialise new field.
9850 (auto_language_defn): Initialise new field.
9851 * language.h (struct language_defn) <la_is_string_type_p>: New
9852 member variable.
9853 (default_is_string_type_p): Declare new function.
9854 * m2-lang.c (m2_language_defn): Initialise new field.
9855 * objc-lang.c (objc_language_defn): Initialise new field.
9856 * opencl-lang.c (opencl_language_defn): Initialise new field.
9857 * p-lang.c (pascal_is_string_type_p): New function.
9858 (pascal_language_defn): Initialise new field.
9859 * rust-lang.c (rust_is_string_type_p): New function.
9860 (rust_language_defn): Initialise new field.
9861
721b08c6
AB
98622019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9865 New field.
9866 * ada-lang.c (ada_language_defn): Initialise new field.
9867 * c-lang.c (c_language_defn): Likewise.
9868 (cplus_language_defn): Likewise.
9869 (asm_language_defn): Likewise.
9870 (minimal_language_defn): Likewise.
9871 * d-lang.c (d_language_defn): Likewise.
9872 * f-lang.c (f_language_defn): Likewise.
9873 * go-lang.c (go_language_defn): Likewise.
9874 * language.c (unknown_language_defn): Likewise.
9875 (auto_language_defn): Likewise.
9876 * m2-lang.c (m2_language_defn): Likewise.
9877 * objc-lang.c (objc_language_defn): Likewise.
9878 * opencl-lang.c (opencl_language_defn): Likewise.
9879 * p-lang.c (pascal_language_defn): Likewise.
9880 * rust-lang.c (rust_language_defn): Likewise.
9881
fc913e53
AB
98822019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * ada-lang.c (ada_is_character_type): Change return type to bool.
9885 (ada_is_string_type): Likewise.
9886 * ada-lang.h (ada_is_character_type): Update declaration
9887 (ada_is_string_type): Likewise.
9888
fa731fa0
PW
98892019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9890
9891 Support style in 'frame|thread apply'
9892
9893 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9894 * record.c (record_start, record_stop): Update callers of
9895 execute_command_to_string with false.
9896 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9897 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9898 methods.
9899 (class string_file): New constructor with term_out parameter.
9900 Override methods term_out and can_emit_style_escape. New member
9901 term_out.
9902 (class stdio_file): Override can_emit_style_escape.
9903 (class tee_file): Override term_out and can_emit_style_escape.
9904 * utils.h (can_emit_style_escape): Remove.
9905 * utils.c (can_emit_style_escape): Likewise.
9906 Update all callers of can_emit_style_escape (SOMESTREAM) to
9907 SOMESTREAM->can_emit_style_escape.
9908 * source-cache.c (source_cache::get_source_lines): Likewise.
9909 * stack.c (frame_apply_command_count): Call execute_command_to_string
9910 passing the term_out characteristic of the current gdb_stdout.
9911 * thread.c (thr_try_catch_cmd): Likewise.
9912 * top.c (execute_command_to_string): pass term_out parameter
9913 to construct the string_file for the command output.
9914 * ui-file.c (term_cli_styling): New function (most code moved
9915 from utils.c can_emit_style_escape).
9916 (string_file::string_file, string_file::can_emit_style_escape,
9917 stdio_file::can_emit_style_escape, tee_file::term_out,
9918 tee_file::can_emit_style_escape): New functions.
9919
136afab8
PW
99202019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9921
9922 * NEWS: Mention the new set|show may-call-functions.
9923 * infcall.c (may_call_functions_p): New variable.
9924 (show_may_call_functions_p): New function.
9925 (call_function_by_hand_dummy): Throws an error if not
9926 may-call-functions.
9927 (_initialize_infcall): Call add_setshow_boolean_cmd for
9928 may-call-functions.
9929
725cbb63
KS
99302019-04-25 Keith Seitz <keiths@redhat.com>
9931
9932 PR c++/24367
9933 * cp-support.c (inspect_type): Don't attempt substitutions
9934 of symbol with the same name.
9935
3d1cbb78
TT
99362019-04-25 Tom Tromey <tromey@adacore.com>
9937
9938 PR gdb/24475:
9939 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9940 static.
9941
94aeb44b
TT
99422019-04-25 Tom Tromey <tromey@adacore.com>
9943
9944 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9945 rvalue reference.
9946 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9947 (gdb_xml_parser::parse): Use std::move.
9948 * python/python-internal.h (gdbpy_convert_exception): Take a const
9949 reference.
9950 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9951 std::move.
9952 * python/py-utils.c (gdbpy_convert_exception): Take a const
9953 reference.
9954 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9955 Use std::move.
9956 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9957 Use std::move.
9958 * mi/mi-main.c (mi_print_exception): Take a const reference.
9959 * main.c (handle_command_errors): Take a const reference.
9960 * linespec.c (parse_linespec): Use std::move.
9961 * infcall.c (run_inferior_call): Use std::move.
9962 (call_function_by_hand_dummy): Use std::move.
9963 * exec.c (try_open_exec_file): Use std::move.
9964 * exceptions.h (exception_print, exception_fprintf)
9965 (exception_print_same): Update.
9966 * exceptions.c (print_exception, exception_print)
9967 (exception_fprintf, exception_print_same): Change parameters to
9968 const reference.
9969 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9970 * common/new-op.c: Use std::move.
9971 * common/common-exceptions.h (struct gdb_exception): Add move
9972 constructor.
9973 (struct gdb_exception_error, struct gdb_exception_quit, struct
9974 gdb_quit_bad_alloc): Change constructor to move constructor.
9975 (throw_exception): Change parameter to rvalue reference.
9976 * common/common-exceptions.c (throw_exception): Take rvalue
9977 reference.
9978 * cli/cli-interp.c (safe_execute_command): Use std::move.
9979 * breakpoint.c (insert_bp_location, location_to_sals): Use
9980 std::move.
9981
680d7fd5
TT
99822019-04-25 Tom Tromey <tromey@adacore.com>
9983
9984 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9985 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9986 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9987 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9988 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9989 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9990 guile/scm-value.c: Use unpack.
9991 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9992 gdbscm_gdb_exception.
9993 (gdbscm_throw_gdb_exception): Likewise.
9994 (struct gdbscm_gdb_exception): New.
9995 (unpack): New function.
9996 (gdbscm_wrap): Use unpack.
9997
c6fdd8b2
TT
99982019-04-25 Tom Tromey <tromey@adacore.com>
9999
10000 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10001 (gdb_rl_callback_handler): Use std::move.
10002 * common/common-exceptions.h (struct gdb_exception): Add move
10003 assignment operator.
10004 (throw_exception_sjlj): Change "exception" to const reference.
10005 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10006 (throw_exception_sjlj): Change "exception" to const reference.
10007
cc06b668
TT
100082019-04-25 Tom Tromey <tromey@adacore.com>
10009
10010 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10011 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10012 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10013 Update.
10014 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10015 Update.
10016 * mi/mi-interp.c (mi_interp::exec): Update.
10017 * linespec.c (parse_linespec): Update.
10018 * infcall.c (run_inferior_call): Update.
10019 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10020 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10021 (gdbscm_lookup_global_symbol): Update.
10022 * guile/scm-param.c (gdbscm_parameter_value): Update.
10023 * guile/scm-frame.c (gdbscm_frame_read_register)
10024 (gdbscm_frame_read_var): Update.
10025 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10026 * exec.c (try_open_exec_file): Update.
10027 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10028 (gdb_rl_callback_handler): Update.
10029 * common/common-exceptions.h (exception_none): Don't declare.
10030 * common/common-exceptions.c (exception_none): Don't define.
10031 (struct catcher) <exception>: Update.
10032 * cli/cli-interp.c (safe_execute_command): Update.
10033 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10034
cf532bd1
AT
100352019-04-25 Ali Tamur <tamur@google.com>
10036
10037 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10038 (read_attribute_value): Likewise.
10039 (dwarf2_read_addr_index): Update comment.
10040 (read_str_index): Add DW_FORM_strx.
10041 (dwarf2_string_attr): Likewise.
10042 (dwarf2_const_value_attr): Likewise.
10043 (dump_die_shallow): Likewise.
10044 (dwarf2_fetch_constant_bytes): Likewise.
10045 (skip_form_bytes): Likewise.
10046 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10047
82433e3e
SDJ
100482019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10049
10050 PR corefiles/11608
10051 PR corefiles/18187
10052 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10053 OFFSET. Verify if current mapping contains an ELF header.
10054 (linux_find_memory_regions_full): Adjust call to
10055 dump_mapping_p.
10056
723adb65
SL
100572019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10058 Kang Li <kanglictf@gmail.com>
10059
10060 PR gdb/21600
10061
10062 * dwarf2-frame.c (read_initial_length): Be consistent about using
10063 unsigned representation of length.
10064 (decode_frame_entry_1): Likewise. Check for wraparound of
10065 end pointer as well as buffer overflow.
10066
596179f7
SDJ
100672019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10068
10069 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10070 "vq".
10071
a59240a4
TT
100722019-04-24 Tom Tromey <tromey@adacore.com>
10073
10074 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10075
f872fdbb
AB
100762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * s12z-tdep.c (s12z_unwind_pc): Delete.
10079 (s12z_unwind_sp): Delete.
10080 (s12z_gdbarch_init): Don't register deleted functions with
10081 gdbarch.
10082
b614e6f3
AB
100832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * rl78-tdep.c (rl78_unwind_sp): Delete.
10086 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10087
14faed38
AB
100882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10089
10090 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10091 (xstormy16_unwind_pc): Delete.
10092 (xstormy16_dummy_id): Delete.
10093 (xstormy16_gdbarch_init): Don't register deleted functions with
10094 gdbarch.
10095
541aad8a
AB
100962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10097
10098 * vax-tdep.c (vax_unwind_pc): Delete.
10099 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10100
29222070
AB
101012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * v850-tdep.c (v850_unwind_sp): Delete.
10104 (v850_unwind_pc): Delete.
10105 (v850_dummy_id): Delete.
10106 (v850_gdbarch_init): Don't register deleted functions with
10107 gdbarch.
10108
0f534d76
AB
101092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10110
10111 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10112 (tilegx_unwind_pc): Delete.
10113 (tilegx_unwind_dummy_id): Delete.
10114 (tilegx_gdbarch_init): Don't register deleted functions with
10115 gdbarch.
10116
1ba7b7f9
AB
101172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10118
10119 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10120 (tic6x_dummy_id): Delete.
10121 (tic6x_gdbarch_init): Don't register deleted functions with
10122 gdbarch.
10123
d31f262c
AB
101242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10125
10126 * sparc-tdep.c (sparc_unwind_pc): Delete.
10127 (sparc32_gdbarch_init): Don't register deleted function with
10128 gdbarch.
10129
6d14d64d
AB
101302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * sh-tdep.c (sh_unwind_sp): Delete.
10133 (sh_unwind_pc): Delete.
10134 (sh_dummy_id): Delete.
10135 (sh_gdbarch_init): Don't register deleted functions with
10136 gdbarch.
10137
a40dde9d
AB
101382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * score-tdep.c (score_unwind_sp): Delete.
10141 (score_unwind_pc): Delete.
10142 (score_dummy_id): Delete.
10143 (score_gdbarch_init): Don't register deleted functions with
10144 gdbarch.
10145
47c47d69
AB
101462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10147
10148 * rx-tdep.c (rx_unwind_pc): Delete.
10149 (rx_unwind_sp): Delete.
10150 (rx_dummy_id): Delete.
10151 (rx_gdbarch_init): Don't register deleted functions with
10152 gdbarch. Update comment.
10153
833a4480
AB
101542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10157 (rs6000_dummy_id): Delete.
10158 (rs6000_gdbarch_init): Don't register deleted functions with
10159 gdbarch.
10160
3f2cef49
AB
101612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * or1k-tdep.c (or1k_dummy_id): Delete.
10164 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10165
96acf884
AB
101662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10167
10168 * nios2-tdep.c (nios2_dummy_id): Delete.
10169 (nios2_unwind_sp): Delete.
10170 (nios2_gdbarch_init): Don't register deleted functions with
10171 gdbarch.
10172
ca0ab0aa
AB
101732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10174
10175 * nds32-tdep.c (nds32_dummy_id): Delete.
10176 (nds32_unwind_pc): Delete.
10177 (nds32_unwind_sp): Delete.
10178 (nds32_gdbarch_init): Don't register deleted functions with
10179 gdbarch.
10180
c8259044
AB
101812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * msp430-tdep.c (msp430_unwind_pc): Delete.
10184 (msp430_unwind_sp): Delete.
10185 (msp430_dummy_id): Delete.
10186 (msp430_gdbarch_init): Don't register deleted functions with
10187 gdbarch.
10188
27f113c8
AB
101892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10190
10191 * moxie-tdep.c (moxie_unwind_sp): Delete.
10192 (moxie_unwind_pc): Delete.
10193 (moxie_dummy_id): Delete.
10194 (moxie_gdbarch_init): Don't register deleted functions with
10195 gdbarch.
10196
aee6c3cd
AB
101972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10200 (mn10300_unwind_pc): Delete.
10201 (mn10300_unwind_sp): Delete.
10202 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10203 mn10300_unwind_sp.
10204 (mn10300_frame_unwind_init): Don't register deleted functions with
10205 gdbarch.
10206
8e2b5aea
AB
102072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * mep-tdep.c (mep_unwind_pc): Delete.
10210 (mep_unwind_sp): Delete.
10211 (mep_dummy_id): Delete.
10212 (mep_gdbarch_init): Don't register deleted functions with
10213 gdbarch.
10214
43cf3ede
AB
102152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10216
10217 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10218 (m68hc11_unwind_sp): Delete.
10219 (m68hc11_gdbarch_init): Don't register deleted functions with
10220 gdbarch.
10221
5e79b7bb
AB
102222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10223
10224 * m32r-tdep.c (m32r_unwind_sp): Delete.
10225 (m32r_unwind_pc): Delete.
10226 (m32r_dummy_id): Delete.
10227 (m32r_gdbarch_init): Don't register deleted functions with
10228 gdbarch.
10229
89b268d8
AB
102302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10231
10232 * m32c-tdep.c (m32c_unwind_pc): Delete.
10233 (m32c_unwind_sp): Delete.
10234 (m32c_dummy_id): Delete.
10235 (m32c_gdbarch_init): Don't register deleted functions with
10236 gdbarch.
10237
946c28d2
AB
102382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10241 (lm32_unwind_pc): Delete.
10242 (lm32_dummy_id): Delete.
10243 (lm32_gdbarch_init): Don't register deleted functions with
10244 gdbarch.
10245
bf12844a
AB
102462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10247
10248 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10249 (iq2000_unwind_pc): Delete.
10250 (iq2000_dummy_id): Delete.
10251 (iq2000_gdbarch_init): Don't register deleted functions with
10252 gdbarch.
10253
ecbc06d2
AB
102542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * nds32-tdep.c (nds32_type_align): Delete.
10257 (nds32_push_dummy_call): Use type_align instead.
10258
030197b4
AB
102592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10260
10261 * arm-tdep.c (arm_type_align): Only handle vector override case.
10262 (arm_push_dummy_call): Use type_align.
10263 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10264
b907456c
AB
102652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10268 case.
10269 (pass_on_stack): Use type_align.
10270 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10271 function.
10272
9e97ba43
TT
102732019-04-23 Tom Tromey <tromey@adacore.com>
10274
10275 * dwarf2read.c (line_header::file_name_at): Remove unused
10276 overload.
10277
6892f601
TV
102782019-04-23 Tom de Vries <tdevries@suse.de>
10279
10280 PR gdb/24438
10281 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10282 invocation.
10283
336d760d
AT
10284
102852019-03-27 Ali Tamur <tamur@google.com>
10286
10287 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10288 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10289 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10290 (dwarf_expr_context::get_addr_index): Likewise
10291 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10292 (symbol_needs_eval_context::get_addr_index): Likewise
10293 (disassemble_dwarf_expression): Add DW_OP_addrx
10294 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10295 (read_cutu_die_from_dwo): Update comment
10296 (skip_one_die): Add DW_FORM_addrx
10297 (read_attribute_value): Likewise
10298 (var_decode_location): Add DW_OP_addrx
10299 (dwarf2_const_value_attr): Add DW_FORM_addrx
10300 (dump_die_shallow): Likewise
10301 (dwarf2_fetch_constant_bytes): Likewise
10302 (decode_locdesc): Add DW_OP_addrx
10303 (skip_form_bytes): Add DW_FORM_addrx
10304
ad9d13f8
AT
103052019-04-22 Ali Tamur <tamur@google.com>
10306
10307 * MAINTAINERS (Write After Approval): Add self.
10308
d70cc3ba
SM
103092019-04-22 Simon Marchi <simon.marchi@efficios.com>
10310
10311 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10312 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10313 (open_symbol_file_object): Likewise.
10314 (svr4_default_sos): Add info parameter.
10315 (svr4_read_so_list): Likewise.
10316 (svr4_current_sos_direct): Adjust functions calls to pass down
10317 info.
10318 (svr4_current_sos_1): Add info parameter.
10319 (svr4_current_sos): Call get_svr4_info, pass info down to
10320 svr4_current_sos_1.
10321 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10322 get_svr4_info.
10323 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10324 get_svr4_info.
10325 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10326 to get_svr4_info.
10327 (probes_table_remove_objfile_probes): Likewise.
10328 (register_solib_event_probe): Add info parameter.
10329 (solist_update_incremental): Pass info parameter down to
10330 svr4_read_so_list.
10331 (disable_probes_interface): Add info parameter.
10332 (svr4_handle_solib_event): Pass current_program_space to
10333 get_svr4_info. Adjust disable_probes_interface cleanup.
10334 (svr4_create_probe_breakpoints): Add info parameter, pass it
10335 down to register_solib_event_probe.
10336 (svr4_create_solib_event_breakpoints): Add info parameter,
10337 pass it down to svr4_create_probe_breakpoints.
10338 (enable_break): Pass info down to
10339 svr4_create_solib_event_breakpoints.
10340 (svr4_solib_create_inferior_hook): Pass current_program_space to
10341 get_svr4_info.
10342 (svr4_clear_solib): Likewise.
10343
7905fc35
PA
103442019-04-22 Pedro Alves <palves@redhat.com>
10345
10346 * solib-svr4.c (svr4_free_objfile_observer): New.
10347 (probe_and_action::objfile): New field.
10348 (probes_table_htab_remove_objfile_probes)
10349 (probes_table_remove_objfile_probes): New functions.
10350 (register_solib_event_probe): Add 'objfile' parameter. Store it
10351 in the new probe_and_action. Don't store the probe in 'lookup'.
10352 (svr4_create_probe_breakpoints): Pass objfile to
10353 register_solib_event_probe.
10354 (_initialize_svr4_solib): Register a free_objfile observer.
10355
fb881986
TT
103562019-04-19 Tom Tromey <tom@tromey.com>
10357
10358 * common/queue.h: Remove.
10359
8732db6c
TT
103602019-04-19 Tom Tromey <tom@tromey.com>
10361
10362 * event-loop.c: Don't include "common/queue.h".
10363
97dfbadd
TT
103642019-04-19 Tom Tromey <tom@tromey.com>
10365
10366 * remote.c (remote_target): Use delete.
10367 * remote-notif.h: Include <list>, not "common/queue.h".
10368 (notif_client_p): Remove typedef.
10369 (remote_notif_state): Add constructor, destructor, initializer.
10370 <notif_queue>: Now a std::list.
10371 (remote_notif_state_xfree): Don't declare.
10372 * remote-notif.c (remote_notif_process, handle_notification)
10373 (remote_notif_state_allocate): Update.
10374 (~remote_notif_state): Rename from remote_notif_state_xfree.
10375
cf250e36
TT
103762019-04-19 Tom Tromey <tom@tromey.com>
10377
10378 * symfile.c (reread_symbols): Update.
10379 * objfiles.c (objfile_register_static_link)
10380 (objfile_lookup_static_link): Update
10381 (~objfile) Don't delete static_links.
10382 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10383
61f4b350
TT
103842019-04-19 Tom Tromey <tom@tromey.com>
10385
10386 * type-stack.h (struct type_stack) <insert>: Constify string.
10387 * type-stack.c (type_stack::insert): Constify string.
10388 * gdbtypes.h (lookup_template_type): Update.
10389 (address_space_name_to_int): Update.
10390 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10391 const.
10392 (lookup_template_type): Make name const.
10393 * c-exp.y: Update rules.
10394 (lex_one_token, classify_name, classify_inner_name)
10395 (c_print_token): Update.
10396 * p-exp.y: Update rules.
10397 (yylex): Update.
10398 * f-exp.y: Update rules.
10399 (yylex): Update.
10400 * d-exp.y: Update rules.
10401 (lex_one_token, classify_name, classify_inner_name): Update.
10402 * parse.c (write_dollar_variable, copy_name): Return std::string.
10403 * parser-defs.h (copy_name): Change return type.
10404 * m2-exp.y: Update rules.
10405 (yylex): Update.
10406 * go-exp.y (lex_one_token): Update.
10407 Update rules.
10408 (classify_unsafe_function, classify_packaged_name)
10409 (classify_name, yylex): Update.
10410
189b8c2e
ST
104112019-04-19 Sergei Trofimovich <siarheit@google.com>
10412
10413 * configure.ac: add --enable-source-highlight switch.
10414 * configure: Regenerate.
10415 * top.c (print_gdb_version): plumb --enable-source-highlight
10416 status to "show configuration".
10417
8ecb59f8
TT
104182019-04-19 Tom Tromey <tromey@adacore.com>
10419
10420 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10421 Check ADA_TYPE_P.
10422 (empty_record, ada_template_to_fixed_record_type_1)
10423 (template_to_static_fixed_type)
10424 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10425 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10426 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10427 macros.
10428
62160ec9
TT
104292019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10430
10431 PR symtab/24423:
10432 * source.c (print_source_lines_base): Advance "iter" when a
10433 control character is seen.
10434
f2ae8bc8
PW
104352019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10436
10437 * inferior.h (struct infcall_suspend_state_deleter):
10438 Catch exception in destructor to avoid crash.
10439
d563b953
PW
104402019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10441
10442 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10443 close to the add_com "shell".
10444
dc34c897
TT
104452019-04-18 Tom Tromey <tromey@adacore.com>
10446
10447 * process-stratum-target.h (class process_stratum_target)
10448 <stratum>: Add "final".
10449
a12e5744
TT
104502019-04-17 Tom Tromey <tromey@adacore.com>
10451
10452 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10453 against nullptr before use.
10454
a7e559cc
AH
104552019-04-17 Alan Hayward <alan.hayward@arm.com>
10456
10457 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10458
c01660c6
AB
104592019-04-17 Jim Wilson <jimw@sifive.com>
10460 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10463 code read might fail, assume 4-byte breakpoint in that case.
10464
4aa866af
LS
104652019-04-15 Leszek Swirski <leszeks@google.com>
10466
10467 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10468 rather than a hand-rolled POD check when checking for forced MEMORY
10469 classification.
10470
48574d91
AH
104712019-04-15 Alan Hayward <alan.hayward@arm.com>
10472
10473 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10474 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10475 function.
10476 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10477 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10478 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10479 declaration.
10480
4da037ef
AH
104812019-04-15 Alan Hayward <alan.hayward@arm.com>
10482
10483 * aarch64-linux-nat.c
10484 (aarch64_linux_nat_target::thread_architecture): Add override.
10485 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10486 each VQ.
10487
ccb8d7e8
AH
104882019-04-15 Alan Hayward <alan.hayward@arm.com>
10489
10490 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10491
35add35e
AB
104922019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10495 target types of size 96-bits, add some additional comments, and
10496 check that the builtin type we found was the correct size.
10497
51196bbc
EZ
104982019-04-12 Eli Zaretskii <eliz@gnu.org>
10499
10500 * utils.c (prompt_for_continue): Don't restore the styling at the
10501 end, as applied_style has the wrong value. This fixes styling in
10502 long lists of file names that are interrupted by the "Continue?"
10503 prompt.
10504
62253a61
AB
105052019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10506
10507 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10508 * c-lang.c (c_language_defn): Likewise.
10509 (cplus_language_defn): Likewise.
10510 (asm_language_defn): Likewise.
10511 (minimal_language_defn): Likewise.
10512 * d-lang.c (d_language_defn): Likewise.
10513 * f-lang.c (f_language_defn): Likewise.
10514 * go-lang.c (go_language_defn): Likewise.
10515 * language.c (unknown_language_defn): Likewise.
10516 (auto_language_defn): Likewise.
10517 * language.h (struct language_defn): Remove la_magic field.
10518 (LANG_MAGIC): Delete.
10519 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10520 * objc-lang.c (objc_language_defn): Likewise.
10521 * opencl-lang.c (opencl_language_defn): Likewise.
10522 * p-lang.c (pascal_language_defn): Likewise.
10523 * rust-lang.c (rust_language_defn): Likewise.
10524
a9158a86
AB
105252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10526
10527 * riscv-tdep.c (riscv_type_align): New function.
10528 (riscv_type_alignment): Delete.
10529 (riscv_arg_location): Use 'type_align'.
10530 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10531
41077b66
AB
105322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10533
10534 * gdbtypes.c (type_align): A struct with no non-static fields also
10535 has alignment of 1.
10536
9f0272f8
AB
105372019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10538
10539 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10540 component to 0.
10541 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10542 member.
10543 (riscv_struct_info::analyse): New implementation using new
10544 analyse_inner member function.
10545 (riscv_struct_info::field_offset): New member function.
10546 (riscv_struct_info::m_offsets): New member variable.
10547 (riscv_struct_info::analyse_inner): New private member function,
10548 takes the old implementation of riscv_struct_info::analyse but
10549 extended to track field offsets.
10550 (riscv_call_arg_struct): Update the struct folding special cases
10551 to handle cases where empty C++ structs, which are non-zero
10552 length, are found.
10553 (riscv_arg_location): Initialise the length of each location, a
10554 non-zero length now indicates the location is in use.
10555 (riscv_push_dummy_call): Allow for the first location having a
10556 non-zero offset when setting up arguments.
10557 (riscv_return_value): Likewise, but for return values.
10558
02cf60c7
TT
105592019-04-11 Tom Tromey <tromey@adacore.com>
10560
10561 * utils.c (internal_vproblem): Make "msg" const.
10562
68811f8f
AH
105632019-04-11 Alan Hayward <alan.hayward@arm.com>
10564
10565 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10566 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10567 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10568 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10569
3f52fdbc
KB
105702019-04-10 Kevin Buettner <kevinb@redhat.com>
10571
10572 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10573 function.
10574 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10575 of amd64_collect_native_gregset.
10576 (amd64_linux_nat_target::store_registers): Likewise.
10577
e9ad22ee
TT
105782019-04-10 Tom Tromey <tom@tromey.com>
10579
10580 * symtab.c (lookup_global_symbol_from_objfile)
10581 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10582 * objfiles.h (class separate_debug_iterator): New.
10583 (class separate_debug_range): New.
10584 (struct objfile) <separate_debug_objfiles>: New method.
10585 (objfile_separate_debug_iterate): Don't declare.
10586 * objfiles.c (separate_debug_iterator::operator++): Rename from
10587 objfile_separate_debug_iterate.
10588 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10589 iterator.
10590 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10591 iterator.
10592
ee371134
TT
105932019-04-10 Tom Tromey <tom@tromey.com>
10594
10595 * symfile.c (reread_symbols): Remove old comment.
10596 * objfiles.c (free_all_objfiles): Fix a typo.
10597
bf227d61
TT
105982019-04-10 Tom Tromey <tom@tromey.com>
10599
10600 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10601 * minsyms.c (lookup_minimal_symbol): Use foreach.
10602 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10603 (lookup_minimal_symbol_solib_trampoline): Likewise.
10604 * symfile.c (reread_symbols): Use foreach.
10605
8dc433a0
TT
106062019-04-09 Ivan Begert <ivanbegert@gmail.com>
10607 Tom Tromey <tromey@adacore.com>
10608
10609 PR rust/24414:
10610 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10611 (rust_lex_int_test): Change "value" to be LONGEST.
10612 (rust_lex_tests): Add test for long integer literal.
10613
9ab8741a
TT
106142019-04-09 Tom Tromey <tromey@adacore.com>
10615
10616 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10617 to bool.
10618 (extended_remote_target::attach): Update.
10619 (remote_target::remote_notice_new_inferior): Update.
10620 (remote_target::add_current_inferior_and_thread): Update.
10621 * inferior.c (exit_inferior_1): Use "false".
10622 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10623
e242fd12
SM
106242019-04-09 Simon Marchi <simon.marchi@efficios.com>
10625
9ca1957f 10626 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10627 the "start" command.
10628
2b0c8b01
KB
106292019-04-08 Kevin Buettner <kevinb@redhat.com>
10630
10631 * python/py-inferior.c (infpy_thread_from_thread_handle):
10632 Adjust comments to reflect renaming of thread_from_thread_handle
10633 to thread_from_handle. Adjust keywords. Fix type error message.
10634 (inferior_object_methods): Add thread_from_handle. Retain
10635 thread_from_thread_handle, but mark it as deprecated.
10636
50a82723
KB
106372019-04-08 Kevin Buettner <kevinb@redhat.com>
10638
10639 * gdbthread.h (find_thread_by_handle): Revise declaration.
10640 * thread.c (find_thread_by_handle): Likewise. Adjust
10641 implementation too.
10642 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10643 support for buffer objects as handles.
10644
cf63b016
KB
106452019-04-08 Kevin Buettner <kevinb@redhat.com>
10646
10647 * python/py-infthread.c (thpy_thread_handle): New function.
10648 (thread_object_methods): Register thpy_thread_handle.
10649
3d6c6204
KB
106502019-04-08 Kevin Buettner <kevinb@redhat.com>
10651
10652 * gdbthread.h (thread_to_thread_handle): Declare.
10653 * thread.c (gdbtypes.h): Include.
10654 (thread_to_thread_handle): New function.
10655
10656 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10657 (target_thread_info_to_thread_handle): Declare.
10658 * target.c (target_thread_info_to_thread_handle): New function.
10659 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10660 * target-delegates.c: Regenerate.
10661
10662 * linux-thread-db.c (class thread_db_target): Add method
10663 thread_info_to_thread_handle.
10664 (thread_db_target::thread_info_to_thread_handle): Define.
10665 * remote.c (class remote_target): Add new method
10666 thread_info_to_thread_handle.
10667 (remote_target::thread_info_to_thread_handle): Define.
10668
56be6ea8
PA
106692019-04-08 Pedro Alves <palves@redhat.com>
10670
10671 * common/common-exceptions.c (throw_exception): Don't create
10672 named object to throw; throw directly.
10673 (throw_it): Likewise. Don't initialize gdb_exception::message
10674 here, with new; pass FMT and AP to the ctor instead.
10675 * common/common-exceptions.h: Include <string>.
10676 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10677 const char *, va_list)): New ctor. Use std::make_shared.
10678 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10679 errors)): Delete.
10680 (gdb_exception_error::gdb_exception_error(enum errors, const char
10681 *, va_list)): New.
10682 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10683 Add assertion.
10684 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10685 errors)): Delete.
10686 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10687 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10688 Add assertion.
10689
eedc3f4f
TT
106902019-04-08 Tom Tromey <tom@tromey.com>
10691
10692 * valops.c (value_rtti_indirect_type): Replace throw_exception
10693 with throw.
10694 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10695 with throw.
10696 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10697 throw.
10698 * target.c (target_translate_tls_address): Replace throw_exception
10699 with throw.
10700 * stack.c (frame_apply_command_count): Replace throw_exception
10701 with throw.
10702 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10703 throw.
10704 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10705 with throw.
10706 * rs6000-tdep.c (rs6000_frame_cache)
10707 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10708 * remote.c: Replace throw_exception with throw.
10709 * record-full.c (record_full_message, record_full_wait_1)
10710 (record_full_restore): Replace throw_exception with throw.
10711 * record-btrace.c:
10712 (get_thread_current_frame_id, record_btrace_start_replaying)
10713 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10714 (cmd_record_btrace_start): Replace throw_exception with throw.
10715 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10716 throw.
10717 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10718 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10719 * linespec.c:
10720 (find_linespec_symbols): Replace throw_exception with throw.
10721 * infrun.c (displaced_step_prepare, resume): Replace
10722 throw_exception with throw.
10723 * infcmd.c (post_create_inferior): Replace throw_exception with
10724 throw.
10725 * inf-loop.c (inferior_event_handler): Replace throw_exception
10726 with throw.
10727 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10728 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10729 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10730 (get_prev_frame_always, get_frame_pc_if_available)
10731 (get_frame_address_in_block_if_available, get_frame_language):
10732 Replace throw_exception with throw.
10733 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10734 throw_exception with throw.
10735 * eval.c (fetch_subexp_value, evaluate_var_value)
10736 (evaluate_funcall, evaluate_subexp_standard): Replace
10737 throw_exception with throw.
10738 * dwarf2loc.c (call_site_find_chain)
10739 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10740 Replace throw_exception with throw.
10741 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10742 with throw.
10743 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10744 throw.
10745 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10746 * completer.c (complete_line_internal): Replace throw_exception
10747 with throw.
10748 * compile/compile-object-run.c (compile_object_run): Replace
10749 throw_exception with throw.
10750 * cli/cli-script.c (process_next_line): Replace throw_exception
10751 with throw.
10752 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10753 (btrace_enable, btrace_maint_update_pt_packets): Replace
10754 throw_exception with throw.
10755 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10756 throw_exception with throw.
10757 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10758 throw_exception with throw.
10759 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10760 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10761 * aarch64-tdep.c (aarch64_make_prologue_cache)
10762 (aarch64_make_stub_cache): Replace throw_exception with throw.
10763
26003a20
TT
107642019-04-08 Tom Tromey <tom@tromey.com>
10765
10766 * common/common-exceptions.c (throw_exception): Rename from
10767 throw_exception_cxx. Remove old copy. Make argument const.
10768 (throw_it): Create and throw exception objects directly.
10769 * common/common-exceptions.h (throw_exception): Make argument
10770 const.
10771 (struct gdb_exception_error): Add constructor.
10772 (struct gdb_exception_quit): Add constructor.
10773
d272eb37
TT
107742019-04-08 Tom Tromey <tom@tromey.com>
10775
10776 * common/common-exceptions.h (exception_rethrow): Don't declare.
10777 (TRY_SJLJ): Update comment.
10778 (TRY, CATCH, END_CATCH): Remove.
10779 * common/common-exceptions.c (exception_rethrow): Remove.
10780
230d2906
TT
107812019-04-08 Tom Tromey <tom@tromey.com>
10782
10783 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10784 Remove.
10785 (gdb_exception_error): Rename from
10786 gdb_exception_RETURN_MASK_ERROR.
10787 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10788 (gdb_quit_bad_alloc): Update.
10789 * aarch64-tdep.c: Update.
10790 * ada-lang.c: Update.
10791 * ada-typeprint.c: Update.
10792 * ada-valprint.c: Update.
10793 * amd64-tdep.c: Update.
10794 * arch-utils.c: Update.
10795 * break-catch-throw.c: Update.
10796 * breakpoint.c: Update.
10797 * btrace.c: Update.
10798 * c-varobj.c: Update.
10799 * cli/cli-cmds.c: Update.
10800 * cli/cli-interp.c: Update.
10801 * cli/cli-script.c: Update.
10802 * common/common-exceptions.c: Update.
10803 * common/new-op.c: Update.
10804 * common/selftest.c: Update.
10805 * compile/compile-c-symbols.c: Update.
10806 * compile/compile-cplus-symbols.c: Update.
10807 * compile/compile-object-load.c: Update.
10808 * compile/compile-object-run.c: Update.
10809 * completer.c: Update.
10810 * corelow.c: Update.
10811 * cp-abi.c: Update.
10812 * cp-support.c: Update.
10813 * cp-valprint.c: Update.
10814 * darwin-nat.c: Update.
10815 * disasm-selftests.c: Update.
10816 * dtrace-probe.c: Update.
10817 * dwarf-index-cache.c: Update.
10818 * dwarf-index-write.c: Update.
10819 * dwarf2-frame-tailcall.c: Update.
10820 * dwarf2-frame.c: Update.
10821 * dwarf2loc.c: Update.
10822 * dwarf2read.c: Update.
10823 * eval.c: Update.
10824 * event-loop.c: Update.
10825 * event-top.c: Update.
10826 * exec.c: Update.
10827 * f-valprint.c: Update.
10828 * fbsd-tdep.c: Update.
10829 * frame-unwind.c: Update.
10830 * frame.c: Update.
10831 * gdbtypes.c: Update.
10832 * gnu-v3-abi.c: Update.
10833 * guile/guile-internal.h: Update.
10834 * guile/scm-block.c: Update.
10835 * guile/scm-breakpoint.c: Update.
10836 * guile/scm-cmd.c: Update.
10837 * guile/scm-disasm.c: Update.
10838 * guile/scm-frame.c: Update.
10839 * guile/scm-lazy-string.c: Update.
10840 * guile/scm-math.c: Update.
10841 * guile/scm-param.c: Update.
10842 * guile/scm-ports.c: Update.
10843 * guile/scm-pretty-print.c: Update.
10844 * guile/scm-symbol.c: Update.
10845 * guile/scm-symtab.c: Update.
10846 * guile/scm-type.c: Update.
10847 * guile/scm-value.c: Update.
10848 * i386-linux-tdep.c: Update.
10849 * i386-tdep.c: Update.
10850 * inf-loop.c: Update.
10851 * infcall.c: Update.
10852 * infcmd.c: Update.
10853 * infrun.c: Update.
10854 * jit.c: Update.
10855 * language.c: Update.
10856 * linespec.c: Update.
10857 * linux-fork.c: Update.
10858 * linux-nat.c: Update.
10859 * linux-tdep.c: Update.
10860 * linux-thread-db.c: Update.
10861 * main.c: Update.
10862 * mi/mi-cmd-break.c: Update.
10863 * mi/mi-cmd-stack.c: Update.
10864 * mi/mi-interp.c: Update.
10865 * mi/mi-main.c: Update.
10866 * objc-lang.c: Update.
10867 * p-valprint.c: Update.
10868 * parse.c: Update.
10869 * ppc-linux-tdep.c: Update.
10870 * printcmd.c: Update.
10871 * python/py-arch.c: Update.
10872 * python/py-breakpoint.c: Update.
10873 * python/py-cmd.c: Update.
10874 * python/py-finishbreakpoint.c: Update.
10875 * python/py-frame.c: Update.
10876 * python/py-framefilter.c: Update.
10877 * python/py-gdb-readline.c: Update.
10878 * python/py-inferior.c: Update.
10879 * python/py-infthread.c: Update.
10880 * python/py-lazy-string.c: Update.
10881 * python/py-linetable.c: Update.
10882 * python/py-objfile.c: Update.
10883 * python/py-param.c: Update.
10884 * python/py-prettyprint.c: Update.
10885 * python/py-progspace.c: Update.
10886 * python/py-record-btrace.c: Update.
10887 * python/py-record.c: Update.
10888 * python/py-symbol.c: Update.
10889 * python/py-type.c: Update.
10890 * python/py-unwind.c: Update.
10891 * python/py-utils.c: Update.
10892 * python/py-value.c: Update.
10893 * python/python.c: Update.
10894 * record-btrace.c: Update.
10895 * record-full.c: Update.
10896 * remote-fileio.c: Update.
10897 * remote.c: Update.
10898 * riscv-tdep.c: Update.
10899 * rs6000-aix-tdep.c: Update.
10900 * rs6000-tdep.c: Update.
10901 * rust-exp.y: Update.
10902 * rust-lang.c: Update.
10903 * s390-tdep.c: Update.
10904 * selftest-arch.c: Update.
10905 * solib-dsbt.c: Update.
10906 * solib-frv.c: Update.
10907 * solib-spu.c: Update.
10908 * solib-svr4.c: Update.
10909 * solib.c: Update.
10910 * sparc64-linux-tdep.c: Update.
10911 * stack.c: Update.
10912 * symfile-mem.c: Update.
10913 * symmisc.c: Update.
10914 * target.c: Update.
10915 * thread.c: Update.
10916 * top.c: Update.
10917 * tracefile-tfile.c: Update.
10918 * tui/tui.c: Update.
10919 * typeprint.c: Update.
10920 * unittests/cli-utils-selftests.c: Update.
10921 * unittests/parse-connection-spec-selftests.c: Update.
10922 * valops.c: Update.
10923 * valprint.c: Update.
10924 * value.c: Update.
10925 * varobj.c: Update.
10926 * windows-nat.c: Update.
10927 * x86-linux-nat.c: Update.
10928 * xml-support.c: Update.
10929
a70b8144
TT
109302019-04-08 Tom Tromey <tom@tromey.com>
10931
10932 * xml-support.c: Use C++ exception handling.
10933 * x86-linux-nat.c: Use C++ exception handling.
10934 * windows-nat.c: Use C++ exception handling.
10935 * varobj.c: Use C++ exception handling.
10936 * value.c: Use C++ exception handling.
10937 * valprint.c: Use C++ exception handling.
10938 * valops.c: Use C++ exception handling.
10939 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10940 handling.
10941 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10942 * typeprint.c: Use C++ exception handling.
10943 * tui/tui.c: Use C++ exception handling.
10944 * tracefile-tfile.c: Use C++ exception handling.
10945 * top.c: Use C++ exception handling.
10946 * thread.c: Use C++ exception handling.
10947 * target.c: Use C++ exception handling.
10948 * symmisc.c: Use C++ exception handling.
10949 * symfile-mem.c: Use C++ exception handling.
10950 * stack.c: Use C++ exception handling.
10951 * sparc64-linux-tdep.c: Use C++ exception handling.
10952 * solib.c: Use C++ exception handling.
10953 * solib-svr4.c: Use C++ exception handling.
10954 * solib-spu.c: Use C++ exception handling.
10955 * solib-frv.c: Use C++ exception handling.
10956 * solib-dsbt.c: Use C++ exception handling.
10957 * selftest-arch.c: Use C++ exception handling.
10958 * s390-tdep.c: Use C++ exception handling.
10959 * rust-lang.c: Use C++ exception handling.
10960 * rust-exp.y: Use C++ exception handling.
10961 * rs6000-tdep.c: Use C++ exception handling.
10962 * rs6000-aix-tdep.c: Use C++ exception handling.
10963 * riscv-tdep.c: Use C++ exception handling.
10964 * remote.c: Use C++ exception handling.
10965 * remote-fileio.c: Use C++ exception handling.
10966 * record-full.c: Use C++ exception handling.
10967 * record-btrace.c: Use C++ exception handling.
10968 * python/python.c: Use C++ exception handling.
10969 * python/py-value.c: Use C++ exception handling.
10970 * python/py-utils.c: Use C++ exception handling.
10971 * python/py-unwind.c: Use C++ exception handling.
10972 * python/py-type.c: Use C++ exception handling.
10973 * python/py-symbol.c: Use C++ exception handling.
10974 * python/py-record.c: Use C++ exception handling.
10975 * python/py-record-btrace.c: Use C++ exception handling.
10976 * python/py-progspace.c: Use C++ exception handling.
10977 * python/py-prettyprint.c: Use C++ exception handling.
10978 * python/py-param.c: Use C++ exception handling.
10979 * python/py-objfile.c: Use C++ exception handling.
10980 * python/py-linetable.c: Use C++ exception handling.
10981 * python/py-lazy-string.c: Use C++ exception handling.
10982 * python/py-infthread.c: Use C++ exception handling.
10983 * python/py-inferior.c: Use C++ exception handling.
10984 * python/py-gdb-readline.c: Use C++ exception handling.
10985 * python/py-framefilter.c: Use C++ exception handling.
10986 * python/py-frame.c: Use C++ exception handling.
10987 * python/py-finishbreakpoint.c: Use C++ exception handling.
10988 * python/py-cmd.c: Use C++ exception handling.
10989 * python/py-breakpoint.c: Use C++ exception handling.
10990 * python/py-arch.c: Use C++ exception handling.
10991 * printcmd.c: Use C++ exception handling.
10992 * ppc-linux-tdep.c: Use C++ exception handling.
10993 * parse.c: Use C++ exception handling.
10994 * p-valprint.c: Use C++ exception handling.
10995 * objc-lang.c: Use C++ exception handling.
10996 * mi/mi-main.c: Use C++ exception handling.
10997 * mi/mi-interp.c: Use C++ exception handling.
10998 * mi/mi-cmd-stack.c: Use C++ exception handling.
10999 * mi/mi-cmd-break.c: Use C++ exception handling.
11000 * main.c: Use C++ exception handling.
11001 * linux-thread-db.c: Use C++ exception handling.
11002 * linux-tdep.c: Use C++ exception handling.
11003 * linux-nat.c: Use C++ exception handling.
11004 * linux-fork.c: Use C++ exception handling.
11005 * linespec.c: Use C++ exception handling.
11006 * language.c: Use C++ exception handling.
11007 * jit.c: Use C++ exception handling.
11008 * infrun.c: Use C++ exception handling.
11009 * infcmd.c: Use C++ exception handling.
11010 * infcall.c: Use C++ exception handling.
11011 * inf-loop.c: Use C++ exception handling.
11012 * i386-tdep.c: Use C++ exception handling.
11013 * i386-linux-tdep.c: Use C++ exception handling.
11014 * guile/scm-value.c: Use C++ exception handling.
11015 * guile/scm-type.c: Use C++ exception handling.
11016 * guile/scm-symtab.c: Use C++ exception handling.
11017 * guile/scm-symbol.c: Use C++ exception handling.
11018 * guile/scm-pretty-print.c: Use C++ exception handling.
11019 * guile/scm-ports.c: Use C++ exception handling.
11020 * guile/scm-param.c: Use C++ exception handling.
11021 * guile/scm-math.c: Use C++ exception handling.
11022 * guile/scm-lazy-string.c: Use C++ exception handling.
11023 * guile/scm-frame.c: Use C++ exception handling.
11024 * guile/scm-disasm.c: Use C++ exception handling.
11025 * guile/scm-cmd.c: Use C++ exception handling.
11026 * guile/scm-breakpoint.c: Use C++ exception handling.
11027 * guile/scm-block.c: Use C++ exception handling.
11028 * guile/guile-internal.h: Use C++ exception handling.
11029 * gnu-v3-abi.c: Use C++ exception handling.
11030 * gdbtypes.c: Use C++ exception handling.
11031 * frame.c: Use C++ exception handling.
11032 * frame-unwind.c: Use C++ exception handling.
11033 * fbsd-tdep.c: Use C++ exception handling.
11034 * f-valprint.c: Use C++ exception handling.
11035 * exec.c: Use C++ exception handling.
11036 * event-top.c: Use C++ exception handling.
11037 * event-loop.c: Use C++ exception handling.
11038 * eval.c: Use C++ exception handling.
11039 * dwarf2read.c: Use C++ exception handling.
11040 * dwarf2loc.c: Use C++ exception handling.
11041 * dwarf2-frame.c: Use C++ exception handling.
11042 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11043 * dwarf-index-write.c: Use C++ exception handling.
11044 * dwarf-index-cache.c: Use C++ exception handling.
11045 * dtrace-probe.c: Use C++ exception handling.
11046 * disasm-selftests.c: Use C++ exception handling.
11047 * darwin-nat.c: Use C++ exception handling.
11048 * cp-valprint.c: Use C++ exception handling.
11049 * cp-support.c: Use C++ exception handling.
11050 * cp-abi.c: Use C++ exception handling.
11051 * corelow.c: Use C++ exception handling.
11052 * completer.c: Use C++ exception handling.
11053 * compile/compile-object-run.c: Use C++ exception handling.
11054 * compile/compile-object-load.c: Use C++ exception handling.
11055 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11056 * compile/compile-c-symbols.c: Use C++ exception handling.
11057 * common/selftest.c: Use C++ exception handling.
11058 * common/new-op.c: Use C++ exception handling.
11059 * cli/cli-script.c: Use C++ exception handling.
11060 * cli/cli-interp.c: Use C++ exception handling.
11061 * cli/cli-cmds.c: Use C++ exception handling.
11062 * c-varobj.c: Use C++ exception handling.
11063 * btrace.c: Use C++ exception handling.
11064 * breakpoint.c: Use C++ exception handling.
11065 * break-catch-throw.c: Use C++ exception handling.
11066 * arch-utils.c: Use C++ exception handling.
11067 * amd64-tdep.c: Use C++ exception handling.
11068 * ada-valprint.c: Use C++ exception handling.
11069 * ada-typeprint.c: Use C++ exception handling.
11070 * ada-lang.c: Use C++ exception handling.
11071 * aarch64-tdep.c: Use C++ exception handling.
11072
3d6e9d23
TT
110732019-04-08 Tom Tromey <tom@tromey.com>
11074
11075 * xml-support.c (gdb_xml_parser::parse): Update.
11076 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11077 * value.c (show_convenience): Update.
11078 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11079 (test_parse_flags_qcs): Update.
11080 * thread.c (thr_try_catch_cmd): Update.
11081 * target.c (target_translate_tls_address): Update.
11082 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11083 (info_frame_command_core, frame_apply_command_count): Update.
11084 * rust-exp.y (rust_lex_exception_test): Update.
11085 * riscv-tdep.c (riscv_print_one_register_info): Update.
11086 * remote.c (remote_target::enable_btrace): Update.
11087 * record-btrace.c (record_btrace_enable_warn): Update.
11088 * python/py-utils.c (gdbpy_convert_exception): Update.
11089 * printcmd.c (do_one_display, print_variable_and_value): Update.
11090 * mi/mi-main.c (mi_print_exception): Update.
11091 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11092 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11093 * linux-nat.c (linux_nat_target::attach): Update.
11094 * linux-fork.c (class scoped_switch_fork_info): Update.
11095 * infrun.c (displaced_step_prepare): Update.
11096 * infcall.c (call_function_by_hand_dummy): Update.
11097 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11098 * gnu-v3-abi.c (print_one_vtable): Update.
11099 * frame.c (get_prev_frame_always): Update.
11100 * f-valprint.c (info_common_command_for_block): Update.
11101 * exec.c (try_open_exec_file): Update.
11102 * exceptions.c (print_exception, exception_print)
11103 (exception_fprintf, exception_print_same): Update.
11104 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11105 * dwarf-index-cache.c (index_cache::store)
11106 (index_cache::lookup_gdb_index): Update.
11107 * darwin-nat.c (maybe_cache_shell): Update.
11108 * cp-valprint.c (cp_print_value_fields): Update.
11109 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11110 (gcc_cplus_symbol_address): Update.
11111 * compile/compile-c-symbols.c (gcc_convert_symbol)
11112 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11113 * common/selftest.c: Update.
11114 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11115 a std::string.
11116 (exception_try_scope_entry, exception_try_scope_exit): Don't
11117 declare.
11118 (struct exception_try_scope): Remove.
11119 (TRY): Don't use exception_try_scope.
11120 (struct gdb_exception): Add constructor, operator=.
11121 <what>: New method.
11122 (struct gdb_exception_RETURN_MASK_ALL)
11123 (struct gdb_exception_RETURN_MASK_ERROR)
11124 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11125 (struct gdb_quit_bad_alloc): Update.
11126 * common/common-exceptions.c (exception_none): Change
11127 initializer.
11128 (struct catcher) <state, exception>: Initialize inline.
11129 <prev>: Remove member.
11130 (current_catcher): Remove.
11131 (catchers): New global.
11132 (exceptions_state_mc_init): Simplify.
11133 (catcher_pop): Remove.
11134 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11135 (try_scope_depth, exception_try_scope_entry)
11136 (exception_try_scope_exit): Remove.
11137 (throw_exception_sjlj): Update.
11138 (exception_messages, exception_messages_size): Remove.
11139 (throw_it): Simplify.
11140 (gdb_exception_sliced_copy): Remove.
11141 (throw_exception_cxx): Update.
11142 * cli/cli-script.c (script_from_file): Update.
11143 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11144 Update.
11145 * ada-valprint.c (ada_val_print): Update.
11146 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11147 (create_excep_cond_exprs): Update.
11148
c5c10118
TT
111492019-04-08 Tom Tromey <tom@tromey.com>
11150
11151 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11152 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11153 (TRY, CATCH, END_CATCH): Remove some definitions.
11154 * common/common-exceptions.c: Don't use GDB_XCPT.
11155 (catcher_list_size): Remove.
11156 (throw_exception, throw_it): Simplify.
11157
4de283e4
TT
111582019-04-05 Tom Tromey <tom@tromey.com>
11159
11160 Revert the header-sorting patch.
11161 * ft32-tdep.c: Revert.
11162 * frv-tdep.c: Revert.
11163 * frv-linux-tdep.c: Revert.
11164 * frame.c: Revert.
11165 * frame-unwind.c: Revert.
11166 * frame-base.c: Revert.
11167 * fork-child.c: Revert.
11168 * findvar.c: Revert.
11169 * findcmd.c: Revert.
11170 * filesystem.c: Revert.
11171 * filename-seen-cache.h: Revert.
11172 * filename-seen-cache.c: Revert.
11173 * fbsd-tdep.c: Revert.
11174 * fbsd-nat.h: Revert.
11175 * fbsd-nat.c: Revert.
11176 * f-valprint.c: Revert.
11177 * f-typeprint.c: Revert.
11178 * f-lang.c: Revert.
11179 * extension.h: Revert.
11180 * extension.c: Revert.
11181 * extension-priv.h: Revert.
11182 * expprint.c: Revert.
11183 * exec.h: Revert.
11184 * exec.c: Revert.
11185 * exceptions.c: Revert.
11186 * event-top.c: Revert.
11187 * event-loop.c: Revert.
11188 * eval.c: Revert.
11189 * elfread.c: Revert.
11190 * dwarf2read.h: Revert.
11191 * dwarf2read.c: Revert.
11192 * dwarf2loc.c: Revert.
11193 * dwarf2expr.h: Revert.
11194 * dwarf2expr.c: Revert.
11195 * dwarf2-frame.c: Revert.
11196 * dwarf2-frame-tailcall.c: Revert.
11197 * dwarf-index-write.h: Revert.
11198 * dwarf-index-write.c: Revert.
11199 * dwarf-index-common.c: Revert.
11200 * dwarf-index-cache.h: Revert.
11201 * dwarf-index-cache.c: Revert.
11202 * dummy-frame.c: Revert.
11203 * dtrace-probe.c: Revert.
11204 * disasm.h: Revert.
11205 * disasm.c: Revert.
11206 * disasm-selftests.c: Revert.
11207 * dictionary.c: Revert.
11208 * dicos-tdep.c: Revert.
11209 * demangle.c: Revert.
11210 * dcache.h: Revert.
11211 * dcache.c: Revert.
11212 * darwin-nat.h: Revert.
11213 * darwin-nat.c: Revert.
11214 * darwin-nat-info.c: Revert.
11215 * d-valprint.c: Revert.
11216 * d-namespace.c: Revert.
11217 * d-lang.c: Revert.
11218 * ctf.c: Revert.
11219 * csky-tdep.c: Revert.
11220 * csky-linux-tdep.c: Revert.
11221 * cris-tdep.c: Revert.
11222 * cris-linux-tdep.c: Revert.
11223 * cp-valprint.c: Revert.
11224 * cp-support.c: Revert.
11225 * cp-namespace.c: Revert.
11226 * cp-abi.c: Revert.
11227 * corelow.c: Revert.
11228 * corefile.c: Revert.
11229 * continuations.c: Revert.
11230 * completer.h: Revert.
11231 * completer.c: Revert.
11232 * complaints.c: Revert.
11233 * coffread.c: Revert.
11234 * coff-pe-read.c: Revert.
11235 * cli-out.h: Revert.
11236 * cli-out.c: Revert.
11237 * charset.c: Revert.
11238 * c-varobj.c: Revert.
11239 * c-valprint.c: Revert.
11240 * c-typeprint.c: Revert.
11241 * c-lang.c: Revert.
11242 * buildsym.c: Revert.
11243 * buildsym-legacy.c: Revert.
11244 * build-id.h: Revert.
11245 * build-id.c: Revert.
11246 * btrace.c: Revert.
11247 * bsd-uthread.c: Revert.
11248 * breakpoint.h: Revert.
11249 * breakpoint.c: Revert.
11250 * break-catch-throw.c: Revert.
11251 * break-catch-syscall.c: Revert.
11252 * break-catch-sig.c: Revert.
11253 * blockframe.c: Revert.
11254 * block.c: Revert.
11255 * bfin-tdep.c: Revert.
11256 * bfin-linux-tdep.c: Revert.
11257 * bfd-target.c: Revert.
11258 * bcache.c: Revert.
11259 * ax-general.c: Revert.
11260 * ax-gdb.h: Revert.
11261 * ax-gdb.c: Revert.
11262 * avr-tdep.c: Revert.
11263 * auxv.c: Revert.
11264 * auto-load.c: Revert.
11265 * arm-wince-tdep.c: Revert.
11266 * arm-tdep.c: Revert.
11267 * arm-symbian-tdep.c: Revert.
11268 * arm-pikeos-tdep.c: Revert.
11269 * arm-obsd-tdep.c: Revert.
11270 * arm-nbsd-tdep.c: Revert.
11271 * arm-nbsd-nat.c: Revert.
11272 * arm-linux-tdep.c: Revert.
11273 * arm-linux-nat.c: Revert.
11274 * arm-fbsd-tdep.c: Revert.
11275 * arm-fbsd-nat.c: Revert.
11276 * arm-bsd-tdep.c: Revert.
11277 * arch-utils.c: Revert.
11278 * arc-tdep.c: Revert.
11279 * arc-newlib-tdep.c: Revert.
11280 * annotate.h: Revert.
11281 * annotate.c: Revert.
11282 * amd64-windows-tdep.c: Revert.
11283 * amd64-windows-nat.c: Revert.
11284 * amd64-tdep.c: Revert.
11285 * amd64-sol2-tdep.c: Revert.
11286 * amd64-obsd-tdep.c: Revert.
11287 * amd64-obsd-nat.c: Revert.
11288 * amd64-nbsd-tdep.c: Revert.
11289 * amd64-nbsd-nat.c: Revert.
11290 * amd64-nat.c: Revert.
11291 * amd64-linux-tdep.c: Revert.
11292 * amd64-linux-nat.c: Revert.
11293 * amd64-fbsd-tdep.c: Revert.
11294 * amd64-fbsd-nat.c: Revert.
11295 * amd64-dicos-tdep.c: Revert.
11296 * amd64-darwin-tdep.c: Revert.
11297 * amd64-bsd-nat.c: Revert.
11298 * alpha-tdep.c: Revert.
11299 * alpha-obsd-tdep.c: Revert.
11300 * alpha-nbsd-tdep.c: Revert.
11301 * alpha-mdebug-tdep.c: Revert.
11302 * alpha-linux-tdep.c: Revert.
11303 * alpha-linux-nat.c: Revert.
11304 * alpha-bsd-tdep.c: Revert.
11305 * alpha-bsd-nat.c: Revert.
11306 * aix-thread.c: Revert.
11307 * agent.c: Revert.
11308 * addrmap.c: Revert.
11309 * ada-varobj.c: Revert.
11310 * ada-valprint.c: Revert.
11311 * ada-typeprint.c: Revert.
11312 * ada-tasks.c: Revert.
11313 * ada-lang.c: Revert.
11314 * aarch64-tdep.c: Revert.
11315 * aarch64-ravenscar-thread.c: Revert.
11316 * aarch64-newlib-tdep.c: Revert.
11317 * aarch64-linux-tdep.c: Revert.
11318 * aarch64-linux-nat.c: Revert.
11319 * aarch64-fbsd-tdep.c: Revert.
11320 * aarch64-fbsd-nat.c: Revert.
11321 * aarch32-linux-nat.c: Revert.
11322
d55e5aa6
TT
113232019-04-05 Tom Tromey <tom@tromey.com>
11324
11325 * ft32-tdep.c: Sort headers.
11326 * frv-tdep.c: Sort headers.
11327 * frv-linux-tdep.c: Sort headers.
11328 * frame.c: Sort headers.
11329 * frame-unwind.c: Sort headers.
11330 * frame-base.c: Sort headers.
11331 * fork-child.c: Sort headers.
11332 * findvar.c: Sort headers.
11333 * findcmd.c: Sort headers.
11334 * filesystem.c: Sort headers.
11335 * filename-seen-cache.h: Sort headers.
11336 * filename-seen-cache.c: Sort headers.
11337 * fbsd-tdep.c: Sort headers.
11338 * fbsd-nat.h: Sort headers.
11339 * fbsd-nat.c: Sort headers.
11340 * f-valprint.c: Sort headers.
11341 * f-typeprint.c: Sort headers.
11342 * f-lang.c: Sort headers.
11343 * extension.h: Sort headers.
11344 * extension.c: Sort headers.
11345 * extension-priv.h: Sort headers.
11346 * expprint.c: Sort headers.
11347 * exec.h: Sort headers.
11348 * exec.c: Sort headers.
11349 * exceptions.c: Sort headers.
11350 * event-top.c: Sort headers.
11351 * event-loop.c: Sort headers.
11352 * eval.c: Sort headers.
11353 * elfread.c: Sort headers.
11354 * dwarf2read.h: Sort headers.
11355 * dwarf2read.c: Sort headers.
11356 * dwarf2loc.c: Sort headers.
11357 * dwarf2expr.h: Sort headers.
11358 * dwarf2expr.c: Sort headers.
11359 * dwarf2-frame.c: Sort headers.
11360 * dwarf2-frame-tailcall.c: Sort headers.
11361 * dwarf-index-write.h: Sort headers.
11362 * dwarf-index-write.c: Sort headers.
11363 * dwarf-index-common.c: Sort headers.
11364 * dwarf-index-cache.h: Sort headers.
11365 * dwarf-index-cache.c: Sort headers.
11366 * dummy-frame.c: Sort headers.
11367 * dtrace-probe.c: Sort headers.
11368 * disasm.h: Sort headers.
11369 * disasm.c: Sort headers.
11370 * disasm-selftests.c: Sort headers.
11371 * dictionary.c: Sort headers.
11372 * dicos-tdep.c: Sort headers.
11373 * demangle.c: Sort headers.
11374 * dcache.h: Sort headers.
11375 * dcache.c: Sort headers.
11376 * darwin-nat.h: Sort headers.
11377 * darwin-nat.c: Sort headers.
11378 * darwin-nat-info.c: Sort headers.
11379 * d-valprint.c: Sort headers.
11380 * d-namespace.c: Sort headers.
11381 * d-lang.c: Sort headers.
11382 * ctf.c: Sort headers.
11383 * csky-tdep.c: Sort headers.
11384 * csky-linux-tdep.c: Sort headers.
11385 * cris-tdep.c: Sort headers.
11386 * cris-linux-tdep.c: Sort headers.
11387 * cp-valprint.c: Sort headers.
11388 * cp-support.c: Sort headers.
11389 * cp-namespace.c: Sort headers.
11390 * cp-abi.c: Sort headers.
11391 * corelow.c: Sort headers.
11392 * corefile.c: Sort headers.
11393 * continuations.c: Sort headers.
11394 * completer.h: Sort headers.
11395 * completer.c: Sort headers.
11396 * complaints.c: Sort headers.
11397 * coffread.c: Sort headers.
11398 * coff-pe-read.c: Sort headers.
11399 * cli-out.h: Sort headers.
11400 * cli-out.c: Sort headers.
11401 * charset.c: Sort headers.
11402 * c-varobj.c: Sort headers.
11403 * c-valprint.c: Sort headers.
11404 * c-typeprint.c: Sort headers.
11405 * c-lang.c: Sort headers.
11406 * buildsym.c: Sort headers.
11407 * buildsym-legacy.c: Sort headers.
11408 * build-id.h: Sort headers.
11409 * build-id.c: Sort headers.
11410 * btrace.c: Sort headers.
11411 * bsd-uthread.c: Sort headers.
11412 * breakpoint.h: Sort headers.
11413 * breakpoint.c: Sort headers.
11414 * break-catch-throw.c: Sort headers.
11415 * break-catch-syscall.c: Sort headers.
11416 * break-catch-sig.c: Sort headers.
11417 * blockframe.c: Sort headers.
11418 * block.c: Sort headers.
11419 * bfin-tdep.c: Sort headers.
11420 * bfin-linux-tdep.c: Sort headers.
11421 * bfd-target.c: Sort headers.
11422 * bcache.c: Sort headers.
11423 * ax-general.c: Sort headers.
11424 * ax-gdb.h: Sort headers.
11425 * ax-gdb.c: Sort headers.
11426 * avr-tdep.c: Sort headers.
11427 * auxv.c: Sort headers.
11428 * auto-load.c: Sort headers.
11429 * arm-wince-tdep.c: Sort headers.
11430 * arm-tdep.c: Sort headers.
11431 * arm-symbian-tdep.c: Sort headers.
11432 * arm-pikeos-tdep.c: Sort headers.
11433 * arm-obsd-tdep.c: Sort headers.
11434 * arm-nbsd-tdep.c: Sort headers.
11435 * arm-nbsd-nat.c: Sort headers.
11436 * arm-linux-tdep.c: Sort headers.
11437 * arm-linux-nat.c: Sort headers.
11438 * arm-fbsd-tdep.c: Sort headers.
11439 * arm-fbsd-nat.c: Sort headers.
11440 * arm-bsd-tdep.c: Sort headers.
11441 * arch-utils.c: Sort headers.
11442 * arc-tdep.c: Sort headers.
11443 * arc-newlib-tdep.c: Sort headers.
11444 * annotate.h: Sort headers.
11445 * annotate.c: Sort headers.
11446 * amd64-windows-tdep.c: Sort headers.
11447 * amd64-windows-nat.c: Sort headers.
11448 * amd64-tdep.c: Sort headers.
11449 * amd64-sol2-tdep.c: Sort headers.
11450 * amd64-obsd-tdep.c: Sort headers.
11451 * amd64-obsd-nat.c: Sort headers.
11452 * amd64-nbsd-tdep.c: Sort headers.
11453 * amd64-nbsd-nat.c: Sort headers.
11454 * amd64-nat.c: Sort headers.
11455 * amd64-linux-tdep.c: Sort headers.
11456 * amd64-linux-nat.c: Sort headers.
11457 * amd64-fbsd-tdep.c: Sort headers.
11458 * amd64-fbsd-nat.c: Sort headers.
11459 * amd64-dicos-tdep.c: Sort headers.
11460 * amd64-darwin-tdep.c: Sort headers.
11461 * amd64-bsd-nat.c: Sort headers.
11462 * alpha-tdep.c: Sort headers.
11463 * alpha-obsd-tdep.c: Sort headers.
11464 * alpha-nbsd-tdep.c: Sort headers.
11465 * alpha-mdebug-tdep.c: Sort headers.
11466 * alpha-linux-tdep.c: Sort headers.
11467 * alpha-linux-nat.c: Sort headers.
11468 * alpha-bsd-tdep.c: Sort headers.
11469 * alpha-bsd-nat.c: Sort headers.
11470 * aix-thread.c: Sort headers.
11471 * agent.c: Sort headers.
11472 * addrmap.c: Sort headers.
11473 * ada-varobj.c: Sort headers.
11474 * ada-valprint.c: Sort headers.
11475 * ada-typeprint.c: Sort headers.
11476 * ada-tasks.c: Sort headers.
11477 * ada-lang.c: Sort headers.
11478 * aarch64-tdep.c: Sort headers.
11479 * aarch64-ravenscar-thread.c: Sort headers.
11480 * aarch64-newlib-tdep.c: Sort headers.
11481 * aarch64-linux-tdep.c: Sort headers.
11482 * aarch64-linux-nat.c: Sort headers.
11483 * aarch64-fbsd-tdep.c: Sort headers.
11484 * aarch64-fbsd-nat.c: Sort headers.
11485 * aarch32-linux-nat.c: Sort headers.
11486
699bd4cf
TT
114872019-04-04 Tom Tromey <tom@tromey.com>
11488
11489 * varobj.c (varobj_create): Update.
11490 * rust-exp.y (struct rust_parser) <update_innermost_block,
11491 lookup_symbol>: New methods.
11492 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11493 Rename.
11494 (rust_parser::rust_lookup_type)
11495 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11496 * printcmd.c (display_command, do_one_display): Update.
11497 * parser-defs.h (struct parser_state) <parser_state>: Add
11498 "tracker" parameter.
11499 (block_tracker): New member.
11500 (class innermost_block_tracker) <innermost_block_tracker>: Add
11501 "types" parameter.
11502 <reset>: Remove method.
11503 (innermost_block): Don't declare.
11504 (null_post_parser): Update.
11505 * parse.c (innermost_block): Remove global.
11506 (write_dollar_variable): Update.
11507 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11508 Remove "tracker_types" parameter.
11509 (parse_expression): Add "tracker" parameter.
11510 (parse_expression_for_completion): Update.
11511 (null_post_parser): Add "tracker" parameter.
11512 * p-exp.y: Update rules.
11513 * m2-exp.y: Update rules.
11514 * language.h (struct language_defn) <la_post_parser>: Add
11515 "tracker" parameter.
11516 * go-exp.y: Update rules.
11517 * f-exp.y: Update rules.
11518 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11519 parameter.
11520 * d-exp.y: Update rules.
11521 * c-exp.y: Update rules.
11522 * breakpoint.c (set_breakpoint_condition): Create an
11523 innermost_block_tracker.
11524 (watch_command_1): Likewise.
11525 * ada-lang.c (resolve): Add "tracker" parameter.
11526 (resolve_subexp): Likewise.
11527 * ada-exp.y (write_var_from_sym): Update.
11528
dac43e32
TT
115292019-04-04 Tom Tromey <tom@tromey.com>
11530
11531 * type-stack.h: New file.
11532 * type-stack.c: New file.
11533 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11534 type-stack.h.
11535 (insert_into_type_stack, insert_type, push_type, push_type_int)
11536 (insert_type_address_space, pop_type, pop_type_int)
11537 (pop_typelist, pop_type_stack, append_type_stack)
11538 (push_type_stack, get_type_stack, push_typelist)
11539 (follow_type_instance_flags, follow_types): Don't declare.
11540 * parse.c (type_stack): Remove global.
11541 (parse_exp_in_context): Update.
11542 (insert_into_type_stack, insert_type, push_type, push_type_int)
11543 (insert_type_address_space, pop_type, pop_type_int)
11544 (pop_typelist, pop_type_stack, append_type_stack)
11545 (push_type_stack, get_type_stack, push_typelist)
11546 (follow_type_instance_flags, follow_types): Remove (moved to
11547 type-stack.c).
11548 * f-exp.y (type_stack): New global.
11549 Update rules.
11550 (push_kind_type, f_parse): Update.
11551 * d-exp.y (type_stack): New global.
11552 Update rules.
11553 (d_parse): Update.
11554 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11555 Update rules.
11556 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11557 (HFILES_NO_SRCDIR): Add type-stack.h.
11558
2a612529
TT
115592019-04-04 Tom Tromey <tom@tromey.com>
11560
11561 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11562 (rust_parser::convert_ast_to_expression, rust_parse)
11563 (rust_lex_test_completion, rust_lex_tests): Update.
11564 * parser-defs.h (struct expr_completion_state): New.
11565 (struct parser_state) <parser_state>: Add completion parameter.
11566 <mark_struct_expression, mark_completion_tag>: New methods.
11567 <parse_completion, m_completion_state>: New members.
11568 (prefixify_expression, null_post_parser): Update.
11569 (mark_struct_expression, mark_completion_tag): Don't declare.
11570 * parse.c (parse_completion, expout_last_struct)
11571 (expout_tag_completion_type, expout_completion_name): Remove
11572 globals.
11573 (parser_state::mark_struct_expression)
11574 (parser_state::mark_completion_tag): Now methods.
11575 (prefixify_expression): Add last_struct parameter.
11576 (prefixify_subexp): Likewise.
11577 (parse_exp_1): Update.
11578 (parse_exp_in_context): Add cstate parameter. Update.
11579 (parse_expression_for_completion): Create an
11580 expr_completion_state.
11581 (null_post_parser): Add "completion" parameter.
11582 * p-exp.y: Update rules.
11583 (yylex): Update.
11584 * language.h (struct language_defn) <la_post_parser>: Add
11585 "completing" parameter.
11586 * go-exp.y: Update rules.
11587 (lex_one_token): Update.
11588 * expression.h (parse_completion): Don't declare.
11589 * d-exp.y: Update rules.
11590 (lex_one_token): Update rules.
11591 * c-exp.y: Update rules.
11592 (lex_one_token): Update.
11593 * ada-lang.c (resolve): Add "parse_completion" parameter.
11594 (resolve_subexp): Likewise.
11595 (ada_resolve_function): Likewise.
11596
43476f0b
TT
115972019-04-04 Tom Tromey <tom@tromey.com>
11598
11599 * parser-defs.h (struct parser_state) <start_arglist,
11600 end_arglist>: New methods.
11601 <arglist_len, m_funcall_chain>: New members.
11602 (arglist_len, start_arglist, end_arglist): Don't declare.
11603 * parse.c (arglist_len, funcall_chain): Remove global.
11604 (start_arglist, end_arglist): Remove functions.
11605 (parse_exp_in_context): Update.
11606 * p-exp.y: Update rules.
11607 * m2-exp.y: Update rules.
11608 * go-exp.y: Update rules.
11609 * f-exp.y: Update rules.
11610 * d-exp.y: Update rules.
11611 * c-exp.y: Update rules.
11612
5776fca3
TT
116132019-04-04 Tom Tromey <tom@tromey.com>
11614
11615 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11616 lex_operator, push_back>: New methods.
11617 Update all rules.
11618 (rust_parser::lex_hex, lex_escape): Rename and update.
11619 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11620 (rust_parser::lex_operator): Rename and update.
11621 (rust_parser::lex_number, rustyylex, rustyyerror)
11622 (rust_lex_test_init, rust_lex_test_sequence)
11623 (rust_lex_test_push_back, rust_lex_tests): Update.
11624 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11625 parameter.
11626 <lexptr, prev_lexptr>: New members.
11627 (lexptr, prev_lexptr): Don't declare.
11628 * parse.c (lexptr, prev_lexptr): Remove globals.
11629 (parse_exp_in_context): Update.
11630 * p-exp.y (yylex, yyerror): Update.
11631 * m2-exp.y (parse_number, yylex, yyerror): Update.
11632 * go-exp.y (lex_one_token, yyerror): Update.
11633 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11634 * d-exp.y (lex_one_token, yyerror): Update.
11635 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11636 (lex_one_token, yyerror): Update.
11637 * ada-lex.l (YY_INPUT): Update.
11638 (rewind_to_char): Update.
11639 * ada-exp.y (yyerror): Update.
11640
8621b685
TT
116412019-04-04 Tom Tromey <tom@tromey.com>
11642
11643 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11644 * parser-defs.h (struct parser_state) <parser_state>: Add new
11645 parameter.
11646 <comma_terminates>: New member.
11647 (comma_terminates): Don't declare global.
11648 * parse.c (comma_terminates): Remove global.
11649 (parse_exp_in_context): Update.
11650 * p-exp.y (yylex): Update.
11651 * m2-exp.y (yylex): Update.
11652 * go-exp.y (lex_one_token): Update.
11653 * f-exp.y (yylex): Update.
11654 * d-exp.y (lex_one_token): Update.
11655 * c-exp.y (lex_one_token): Update.
11656 * ada-lex.l: Update.
11657
28aaf3fd
TT
116582019-04-04 Tom Tromey <tom@tromey.com>
11659
11660 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11661 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11662 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11663 * parser-defs.h (paren_depth): Don't declare.
11664 * parse.c (paren_depth): Remove global.
11665 (parse_exp_in_context): Update.
11666 * p-exp.y (paren_depth): New global.
11667 (pascal_parse): Initialize it.
11668 * m2-exp.y (paren_depth): New global.
11669 (m2_parse): Initialize it.
11670 * go-exp.y (paren_depth): New global.
11671 (go_parse): Initialize it.
11672 * f-exp.y (paren_depth): New global.
11673 (f_parse): Initialize it.
11674 * d-exp.y (paren_depth): New global.
11675 (d_parse): Initialize it.
11676 * c-exp.y (paren_depth): New global.
11677 (c_parse): Initialize it.
11678 * ada-lex.l (paren_depth): New global.
11679 (lexer_init): Initialize it.
11680
1e58a4a4
TT
116812019-04-04 Tom Tromey <tom@tromey.com>
11682
11683 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11684 (rust_parser::convert_ast_to_type)
11685 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11686 * parser-defs.h (struct parser_state) <parser_state>: Add
11687 parameters. Initialize new members.
11688 <expression_context_block, expression_context_pc>: New members.
11689 * parse.c (expression_context_block, expression_context_pc):
11690 Remove globals.
11691 (parse_exp_in_context): Update.
11692 * p-exp.y: Update all rules.
11693 (yylex): Update.
11694 * m2-exp.y: Update all rules.
11695 (yylex): Update.
11696 * go-exp.y (yylex): Update.
11697 * f-exp.y (yylex): Update.
11698 * d-exp.y: Update all rules.
11699 (yylex): Update.
11700 * c-exp.y: Update all rules.
11701 (lex_one_token, classify_name, yylex, c_parse): Update.
11702 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11703
37eedb39
TT
117042019-04-04 Tom Tromey <tom@tromey.com>
11705
11706 * gdbarch.h, gdbarch.c: Rebuild.
11707 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11708 * stap-probe.h:
11709 (struct stap_parse_info): Replace "parser_state" with
11710 "expr_builder".
11711 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11712 (parser_state): New class.
11713 * parse.c (expr_builder): Rename.
11714 (expr_builder::release): Rename.
11715 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11716 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11717 (write_exp_elt_longcst, write_exp_elt_floatcst)
11718 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11719 (write_exp_string_vector, write_exp_bitstring)
11720 (write_exp_msymbol, mark_struct_expression)
11721 (write_dollar_variable)
11722 (insert_type_address_space, increase_expout_size): Replace
11723 "parser_state" with "expr_builder".
11724 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11725 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11726 "parser_state" with "expr_builder".
11727
73923d7e
TT
117282019-04-04 Tom Tromey <tom@tromey.com>
11729
11730 * rust-exp.y: Replace "parse_language" with method call.
11731 * p-exp.y:
11732 (yylex): Replace "parse_language" with method call.
11733 * m2-exp.y:
11734 (yylex): Replace "parse_language" with method call.
11735 * go-exp.y (classify_name): Replace "parse_language" with method
11736 call.
11737 * f-exp.y (yylex): Replace "parse_language" with method call.
11738 * d-exp.y (lex_one_token): Replace "parse_language" with method
11739 call.
11740 * c-exp.y:
11741 (lex_one_token, classify_name, yylex): Replace "parse_language"
11742 with method call.
11743 * ada-exp.y (find_primitive_type, type_char)
11744 (type_system_address): Replace "parse_language" with method call.
11745
fa9f5be6
TT
117462019-04-04 Tom Tromey <tom@tromey.com>
11747
11748 * rust-exp.y: Replace "parse_gdbarch" with method call.
11749 * parse.c (write_dollar_variable, insert_type_address_space):
11750 Replace "parse_gdbarch" with method call.
11751 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11752 call.
11753 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11754 call.
11755 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11756 "parse_gdbarch" with method call.
11757 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11758 with method call.
11759 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11760 "parse_gdbarch" with method call.
11761 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11762 "parse_gdbarch" with method call.
11763 * c-exp.y (parse_type, parse_number, classify_name): Replace
11764 "parse_gdbarch" with method call.
11765 * ada-lex.l: Replace "parse_gdbarch" with method call.
11766 * ada-exp.y (parse_type, find_primitive_type, type_char)
11767 (type_system_address): Replace "parse_gdbarch" with method call.
11768
1201a264
TT
117692019-04-04 Tom Tromey <tom@tromey.com>
11770
11771 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11772 * stap-probe.c (stap_parse_argument): Update.
11773 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11774 initial_size parameter.
11775 * rust-exp.y (rust_lex_tests): Update.
11776 * parse.c (parser_state): Update.
11777 (parse_exp_in_context): Update.
11778 * parser-defs.h (struct parser_state) <parser_state>: Remove
11779 "initial_size" parameter.
11780
e3980ce2
TT
117812019-04-04 Tom Tromey <tom@tromey.com>
11782
11783 * parser-defs.h (increase_expout_size): Don't declare.
11784 * parse.c (increase_expout_size): Now static.
11785
e9f8e3f1
TS
117862019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11787
11788 * gnu-nat.c (gnu_nat_target::wait): Fix
11789 target_waitstatus_to_string call.
11790
d7df6549
AB
117912019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11792
11793 * eval.c (evaluate_subexp_standard): Handle internal functions
11794 during Fortran function call handling.
11795
8bdc1658
AB
117962019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11797
11798 * NEWS: Mention new internal functions.
11799 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11800 (read_base_type): Use dwarf2_init_complex_target_type.
11801 * value.c (creal_internal_fn): New function.
11802 (cimag_internal_fn): New function.
11803 (_initialize_values): Register new internal functions.
11804
c29705b7
PW
118052019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11806
11807 * infrun.c (stop_all_threads): If debug_infrun, always
11808 trace the wait status after wait_one, using
11809 target_waitstatus_to_string and target_pid_to_str.
11810 (handle_inferior_event): Replace various trace of
11811 wait status kind by a single trace.
11812 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11813 wait status kind image by target_waitstatus_to_string.
11814 * target/waitstatus.c (target_waitstatus_to_string): Fix
11815 obsolete comment.
11816
05caa1d2
TT
118172019-04-01 Tom Tromey <tromey@adacore.com>
11818
11819 PR symtab/23331:
11820 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11821
9d1447e0
SDJ
118222019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11823 Pedro Alves <palves@redhat.com>
11824
11825 * top.c (quit_force): Call 'finalize_values'.
11826 * value.c (finalize_values): New function.
11827 * value.h (finalize_values): Declare.
11828
7734102d
EZ
118292019-03-30 Eli Zaretskii <eliz@gnu.org>
11830
11831 * NEWS: Announce $_gdb_major and $_gdb_minor.
11832
11833 * top.c (init_gdb_version_vars): New function.
11834 (gdb_init): Call init_gdb_version_vars.
11835
188e1fa9
TT
118362019-03-29 Tom Tromey <tromey@adacore.com>
11837
11838 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11839 help text. Remove dead code.
11840
2880242d
KS
118412019-03-29 Keith Seitz <keiths@redhat.com>
11842
11843 From Siddhesh Poyarekar:
11844 * f-lang.h (f77_get_upperbound): Return LONGEST.
11845 (f77_get_lowerbound): Likewise.
11846 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11847 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11848 print them.
11849 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11850 plongest to format print it.
11851 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11852 (f77_get_upperbound): Likewise.
11853 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11854 LOWER_BOUND to LONGEST.
11855 (f77_create_arrayprint_offset_tbl): Likewise.
11856
cc1defb1
KS
118572019-03-29 Keith Seitz <keiths@redhat.com>
11858
11859 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11860 %s/pulongest for TYPE_LENGTH instead of %d in format
11861 strings.
11862 * ada-typerint.c (ada_print_type): Likewise.
11863 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11864 * compile/compile-c-support.c (generate_register_struct): Likewise.
11865 * gdbtypes.c (recursive_dump_type): Likewise.
11866 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11867 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11868 instead of %d in format strings.
11869 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11870 to std::min to ULONGEST.
11871 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11872 instead of %d in format strings.
11873 * tracepoint.c (info_scope_command): Likewise.
11874 * typeprint.c (print_offset_data::update)
11875 (print_offset_data::finish): Likewise.
11876 * xtensa-tdep.c (xtensa_store_return_value)
11877 (xtensa_push_dummy_call): Likewise.
11878
e432ccf1
JT
118792019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11880
11881 * windows-nat.c (display_selector): Fixed format specifications
11882 for 64-bit Cygwin.
11883
65d2b333
PW
118842019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11885
11886 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11887
f489207e
SL
118882019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11889
11890 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11891 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11892 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11893 (nios2_linux_init_abi): Install it.
11894
bffa1015
AH
118952019-03-28 Alan Hayward <alan.hayward@arm.com>
11896
11897 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11898
fc96163a
AH
118992019-03-28 Alan Hayward <alan.hayward@arm.com>
11900
11901 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11902
20dc7e9b
PW
119032019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11904 Tom Tromey <tromey@adacore.com>
11905
11906 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11907
7f5331a8
JB
119082019-03-26 Joel Brobecker <brobecker@adacore.com>
11909
11910 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11911 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11912 method to compute the bounds of range types. Also print "[evaluated]"
11913 if the bounds' values come from a dynamic evaluation.
11914
18c77628
AB
119152019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11916
11917 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11918 whitespace when pretty printing is on.
11919
53c973f2
AH
119202019-03-26 Alan Hayward <alan.hayward@arm.com>
11921
e79be6e5 11922 * ppc-linux-nat.c: Add include.
53c973f2 11923
d851aa71
AH
119242019-03-26 Alan Hayward <alan.hayward@arm.com>
11925
e79be6e5 11926 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11927
2fe7bab7
AH
119282019-03-26 Alan Hayward <alan.hayward@arm.com>
11929
e79be6e5 11930 * arm-linux-nat.c: Add include.
2fe7bab7 11931
068ef30e
SM
119322019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11933
11934 * source-cache.c (source_cache::get_source_lines): Re-read
11935 fullname after calling open_source_file.
11936
81a24d04
JB
119372019-03-25 John Baldwin <jhb@FreeBSD.org>
11938
11939 * NEWS: Mention TLS support for FreeBSD.
11940
79e7ae11
TT
119412019-03-25 Tom Tromey <tromey@adacore.com>
11942
11943 * minsyms.c (BUNCH_SIZE): Update comment.
11944 (~minimal_symbol_reader): Remove old comment.
11945 (compact_minimal_symbols): Update comment.
11946 (minimal_symbol_reader::install): Remove old comment. Update
11947 other comments.
11948
d45963c2
AH
119492019-03-25 Alan Hayward <alan.hayward@arm.com>
11950
11951 * s390-linux-nat.c: Add include.
11952
0f83012e
AH
119532019-03-25 Alan Hayward <alan.hayward@arm.com>
11954
11955 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11956 Call linux_get_hwcap.
11957 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11958 Likewise.
11959 (aarch64_linux_get_hwcap): Remove function.
11960 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11961 declaration.
11962 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11963 linux_get_hwcap.
11964 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11965 * linux-tdep.c (linux_get_hwcap): Add function.
11966 (linux_get_hwcap2): Likewise.
11967 * linux-tdep.h (linux_get_hwcap): Add declaration.
11968 (linux_get_hwcap2): Likewise.
11969 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11970 (ppc_linux_get_hwcap2): Likewise.
11971 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11972 linux_get_hwcap.
11973 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11974 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11975 (ppc_linux_nat_target::read_description): Likewise.
11976 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11977 * s390-linux-nat.c: Likewise.
11978 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11979
6640a367
TT
119802019-03-24 Tom Tromey <tom@tromey.com>
11981
11982 * ada-lang.c (standard_lookup): Simplify initialization.
11983 (ada_lookup_symbol_nonlocal): Simplify return.
11984 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11985 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11986 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11987 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11988 initialization.
11989 * solib.c (solib_global_lookup): Simplify.
11990 * symtab.c (null_block_symbol): Remove.
11991 (symbol_cache_lookup): Simplify returns.
11992 (lookup_language_this): Simplify returns.
11993 (lookup_symbol_aux): Simplify return.
11994 (lookup_local_symbol): Simplify returns.
11995 (lookup_global_symbol_from_objfile): Simplify return.
11996 (lookup_symbol_in_objfile_symtabs)
11997 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11998 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11999 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12000 * cp-namespace.c (cp_lookup_bare_symbol)
12001 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12002 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12003 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12004 (cp_lookup_symbol_via_imports): Simplify initialization.
12005 (find_symbol_in_baseclass): Likewise.
12006 * symtab.h (null_block_symbol): Remove.
12007 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12008 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12009 (d_lookup_symbol_module): Likewise.
12010 (find_symbol_in_baseclass): Simplify initialization.
12011
a930ebcd
TT
120122019-03-24 Tom Tromey <tom@tromey.com>
12013
12014 * expression.h: Don't include symtab.h.
12015 (struct block): Forward declare.
12016
582942f4
TT
120172019-03-24 Tom Tromey <tom@tromey.com>
12018
12019 * c-exp.y (typebase): Remove casts.
12020 * gdbtypes.c (lookup_unsigned_typename, )
12021 (lookup_signed_typename): Remove cast.
12022 * eval.c (parse_to_comma_and_eval): Remove cast.
12023 * parse.c (write_dollar_variable): Remove cast.
12024 * block.h (struct block) <superblock>: Now const.
12025 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12026 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12027 (map_block): Make "block" const.
12028 * symfile.h (struct quick_symbol_functions)
12029 <map_matching_symbols>: Constify block argument to "callback".
12030 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12031 const.
12032 (find_pc_sect_compunit_symtab): Make "b" const.
12033 (find_symbol_at_address): Likewise.
12034 (search_symbols): Likewise.
12035 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12036 (dw2_debug_names_lookup_symbol): Likewise.
12037 (dw2_map_matching_symbols): Update.
12038 * p-valprint.c (pascal_val_print): Remove "block".
12039 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12040 (aux_add_nonlocal_symbols): Make "block" const.
12041 (resolve_subexp): Remove cast.
12042 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12043 const.
12044 (iterate_over_file_blocks): Likewise.
12045 * f-exp.y (%union) <bval>: Remove.
12046 * coffread.c (patch_opaque_types): Make "b" const.
12047 * spu-tdep.c (spu_catch_start): Make "block" const.
12048 * c-valprint.c (print_unpacked_pointer): Remove "block".
12049 * symmisc.c (dump_symtab_1): Make "b" const.
12050 (block_depth): Make "block" const.
12051 * d-exp.y (%union) <bval>: Remove.
12052 * cp-support.h (cp_lookup_rtti_type): Update.
12053 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12054 * psymtab.c (psym_lookup_symbol): Make "block" const.
12055 (maintenance_check_psymtabs): Make "b" const.
12056 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12057 (enumerate_locals, enumerate_args): Update.
12058 * python/py-symtab.c (stpy_global_block): Make "block" const.
12059 (stpy_static_block): Likewise.
12060 * inline-frame.c (block_starting_point_at): Make "new_block"
12061 const.
12062 * block.c (find_block_in_blockvector): Make return type const.
12063 (blockvector_for_pc_sect): Make "b" const.
12064 (find_block_in_blockvector): Make "b" const.
12065
7ad417dd
TT
120662019-03-23 Tom Tromey <tom@tromey.com>
12067
12068 * varobj.c (varobj_create): Update.
12069 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12070 * printcmd.c (display_command, do_one_display): Don't reset
12071 innermost_block.
12072 * parser-defs.h (enum innermost_block_tracker_type): Move to
12073 expression.h.
12074 (innermost_block): Update comment.
12075 * parse.c (parse_exp_1): Add tracker_types parameter.
12076 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12077 tracker_types parameter. Reset innermost_block.
12078 (parse_exp_in_context): Remove.
12079 (parse_expression_for_completion): Update.
12080 * objfiles.c (~objfile): Don't reset expression_context_block or
12081 innermost_block.
12082 * expression.h (enum innermost_block_tracker_type): Move from
12083 parser-defs.h.
12084 (parse_exp_1): Add tracker_types parameter.
12085 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12086 reset innermost_block.
12087
b366c208
TT
120882019-03-23 Tom Tromey <tom@tromey.com>
12089
12090 * objfiles.h: Include bcache.h.
12091
9bb9b2f9
TT
120922019-03-23 Tom Tromey <tom@tromey.com>
12093
12094 * linespec.c (get_current_search_block): Use
12095 scoped_restore_current_language.
12096 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12097
59c28372
AH
120982019-03-22 Alan Hayward <alan.hayward@arm.com>
12099 Jiong Wang <jiong.wang@arm.com>
12100
12101 * aarch64-linux-tdep.c
12102 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12103 section.
12104 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12105
17e116a7
AH
121062019-03-22 Alan Hayward <alan.hayward@arm.com>
12107 Jiong Wang <jiong.wang@arm.com>
12108
12109 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12110 instructions.
12111 (aarch64_analyze_prologue_test): Add PACIASP test.
12112 (aarch64_prologue_prev_register): Unmask PC value.
12113
11e1b75f
AH
121142019-03-22 Alan Hayward <alan.hayward@arm.com>
12115 Jiong Wang <jiong.wang@arm.com>
12116
12117 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12118 (aarch64_dwarf2_prev_register): Unmask PC value.
12119 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12120 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12121 DW_CFA_AARCH64_negate_ra_state.
12122 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12123
34dcc7cf
AH
121242019-03-22 Alan Hayward <alan.hayward@arm.com>
12125 Jiong Wang <jiong.wang@arm.com>
12126
12127 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12128 registers.
12129 (aarch64_pseudo_register_name): Likewise.
12130 (aarch64_pseudo_register_type): Likewise.
12131 (aarch64_pseudo_register_reggroup_p): Likewise.
12132 (aarch64_gdbarch_init): Add pauth registers.
12133 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12134 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12135 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12136 (struct gdbarch_tdep): Add regnum for ra_state.
12137
1ef53e6b
AH
121382019-03-22 Alan Hayward <alan.hayward@arm.com>
12139 Jiong Wang <jiong.wang@arm.com>
12140
12141 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12142
76bed0fd
AH
121432019-03-22 Alan Hayward <alan.hayward@arm.com>
12144 Jiong Wang <jiong.wang@arm.com>
12145
12146 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12147 function.
12148 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12149 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12150 (aarch64_gdbarch_init): Add puth registers.
12151 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12152 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12153 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12154
ee4fbcfa
AH
121552019-03-22 Alan Hayward <alan.hayward@arm.com>
12156 Jiong Wang <jiong.wang@arm.com>
12157
12158 * aarch64-linux-nat.c
12159 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12160 * aarch64-linux-tdep.c
12161 (aarch64_linux_core_read_description): Likewise.
12162 (aarch64_linux_get_hwcap): New function.
12163 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12164 (aarch64_linux_get_hwcap): New declaration.
12165
6dc0ebde
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): Add pauth param.
12171 * aarch64-linux-tdep.c
12172 (aarch64_linux_core_read_description): Likewise.
12173 * aarch64-tdep.c (struct target_desc): Add in pauth.
12174 (aarch64_read_description): Add pauth param.
12175 (aarch64_gdbarch_init): Likewise.
12176 * aarch64-tdep.h (aarch64_read_description): Likewise.
12177 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12178 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12179 * features/Makefile: Add new files.
12180 * features/aarch64-pauth.c: New file.
12181 * features/aarch64-pauth.xml: New file.
12182
595915c1
TT
121832019-03-20 Tom Tromey <tromey@adacore.com>
12184
12185 * infrun.c (handle_inferior_event): Rename from
12186 handle_inferior_event_1. Create a scoped_value_mark.
12187 (handle_inferior_event): Remove.
12188
4c7d57e7
TT
121892019-03-19 Tom Tromey <tromey@adacore.com>
12190
12191 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12192 * infrun.h (print_stop_event): Add "displays" parameter.
12193 * infrun.c (print_stop_event): Add "displays" parameter.
12194
cb246234
PA
121952019-03-19 Pedro Alves <palves@redhat.com>
12196
12197 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12198 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12199 to -1. Fix TABs vs spaces.
12200 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12201 * tui/tui-out.h (tui_ui_out) Add intro comments.
12202 <m_line, m_start_of_line>: In-class initialize, and add describing
12203 comment.
12204
3a0e45b2
AH
122052019-03-18 Alan Hayward <alan.hayward@arm.com>
12206
12207 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12208 variable names.
12209 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12210
5371b850
PA
122112019-03-18 Pedro Alves <palves@redhat.com>
12212 Eli Zaretskii <eliz@gnu.org>
12213
12214 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12215 m_line and m_start_of_line.
12216
b17c4cd0
EZ
122172019-03-18 Eli Zaretskii <eliz@gnu.org>
12218
12219 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12220 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12221 it returns a newline. This fixes a regression in TU mode, whereby
12222 the next line is output on the same screen line as the user input.
12223
4bd56d18
TT
122242019-03-18 Tom Tromey <tromey@adacore.com>
12225
12226 * minsyms.c (minimal_symbol_reader::install): Remove call to
12227 obstack_blank.
12228
55c10aca
PA
122292019-03-18 Pedro Alves <palves@redhat.com>
12230
12231 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12232 New globals.
12233 (apply_style): New, factored out from ...
12234 (apply_ansi_escape): ... this. Handle reverse video mode.
12235 (tui_set_reverse_mode): New function.
12236 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12237 * tui/tui-winsource.c (tui_show_source_line): Use
12238 tui_set_reverse_mode instead of setting A_STANDOUT.
12239 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12240 New setter methods.
12241
647bb750
HD
122422019-03-18 Hannes Domani <ssbssa@yahoo.de>
12243
12244 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12245 Handle tabs.
12246
bff8c71f
TT
122472019-03-18 Tom Tromey <tromey@adacore.com>
12248
12249 * ada-lang.c (empty_array): Add "high" parameter.
12250 (ada_evaluate_subexp): Update.
12251
58785d98
ST
122522019-03-17 Sergei Trofimovich <siarheit@google.com>
12253
12254 * unittests/string_view-selftests.c: Define
12255 _initialize_string_view_selftests unconditionally.
12256
d4cbef22
ВМ
122572019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12258
12259 PR gdb/24350
12260 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12261
fce4c071
ВМ
122622019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12263
12264 PR gdb/24351
12265 * windows-nat.c (display_selector): Fix format specifiers.
12266
f7f0a123
EZ
122672019-03-17 Eli Zaretskii <eliz@gnu.org>
12268
12269 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12270 tui_refill_source_window instead of tui_refresh_win, to update the
12271 current execution line. This fixes redisplay of the current line
12272 when stepping through the code with "next" or "step".
12273
ab42892f
EZ
122742019-03-16 Eli Zaretskii <eliz@gnu.org>
12275
12276 * source-cache.c (source_cache::get_source_lines): Call
12277 find_source_lines to initialize s->nlines. This fixes vertical
12278 scrolling of TUI source window when the DOWN arrow is pressed.
12279
8d8c087f
PW
122802019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12281
12282 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12283 linux-thread-db.c (_initialize_thread_db): Likewise.
12284
798e1c30
EZ
122852019-03-16 Eli Zaretskii <eliz@gnu.org>
12286
12287 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12288 wclrtoeol in tui_show_source_line". This reverts changes made in
12289 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12290
eefba3da
TT
122912019-03-15 Tom Tromey <tom@tromey.com>
12292
12293 * symtab.h (struct minimal_symbol): Derive from
12294 general_symbol_info.
12295 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12296 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12297 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12298 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12299 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12300 (MSYMBOL_SEARCH_NAME): Update.
12301 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12302 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12303 * minsyms.c (minimal_symbol_reader::record_full): Update.
12304
0de2420c
TT
123052019-03-15 Tom Tromey <tom@tromey.com>
12306
12307 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12308
042d75e4
TT
123092019-03-15 Tom Tromey <tom@tromey.com>
12310
12311 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12312 unique_xmalloc_ptr.
12313 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12314 Update.
12315 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12316 (build_minimal_symbol_hash_tables)
12317 (minimal_symbol_reader::install): Update.
12318
db92718b
TT
123192019-03-15 Tom Tromey <tom@tromey.com>
12320
12321 * symtab.c (create_demangled_names_hash): Update.
12322 (symbol_set_names): Update.
12323 * objfiles.h (struct objfile_per_bfd_storage)
12324 <demangled_names_hash>: Now an htab_up.
12325 * objfiles.c (objfile_per_bfd_storage): Simplify.
12326
d6797f46
TT
123272019-03-15 Tom Tromey <tom@tromey.com>
12328
12329 * objfiles.h (struct objfile_per_bfd_storage): Declare
12330 destructor.
12331 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12332 New.
12333 (get_objfile_bfd_data): Use new. Don't initialize
12334 language_of_main.
12335 (free_objfile_per_bfd_storage): Remove.
12336 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12337
741d7538
TT
123382019-03-15 Tom Tromey <tom@tromey.com>
12339
12340 * symfile.c (reread_symbols): Update.
12341 * objfiles.c (objfile::objfile): Update.
12342 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12343 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12344 comment.
12345 (minimal_symbol_reader::install): Update.
12346 (terminate_minimal_symbol_table): Remove.
12347 * jit.c (jit_object_close_impl): Update.
12348
788c80d1
TT
123492019-03-15 Tom Tromey <tom@tromey.com>
12350
12351 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12352 initializations.
12353
1b7a07cb
TT
123542019-03-15 Tom Tromey <tom@tromey.com>
12355
12356 * objfiles.h (struct objfile_per_bfd_storage)
12357 <demangled_hash_languages>: Now a bitset.
12358 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12359 (lookup_minimal_symbol): Update.
12360
3db066bc
TT
123612019-03-15 Tom Tromey <tom@tromey.com>
12362
12363 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12364 Don't return the symbol.
12365 * coffread.c (record_minimal_symbol): Use record_full.
12366
3fff2c37
EZ
123672019-03-14 Eli Zaretskii <eliz@gnu.org>
12368
12369 The MS-Windows port of ncurses fails to switch to a color pair if
12370 one or both of the colors are the implicit default colors. This
12371 change records the default colors when TUI is initialized, and
12372 then specifies them explicitly when a color pair uses the default
12373 colors. This allows color styling in TUI mode on MS-Windows.
12374
12375 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12376 ncurses_norm_attr.
12377 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12378 colors in ncurses_norm_attr.
12379 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12380 "none", replace it with the default color recorded in
12381 ncurses_norm_attr.
12382
3b336828
TT
123832019-03-14 Tom Tromey <tromey@adacore.com>
12384
12385 * source-cache.h (class source_cache) <get_source_lines>: Return
12386 std::string.
12387 * source-cache.c (source_cache::extract_lines): Handle case where
12388 first_pos==npos. Return std::string.
12389 (source_cache::get_source_lines): Update.
12390
d085f989
TT
123912019-03-14 Tom Tromey <tromey@adacore.com>
12392
12393 * NEWS: Add item for "style sources" commands.
12394 * source-cache.c (source_cache::get_source_lines): Check
12395 source_styling.
12396 * cli/cli-style.c (source_styling): New global.
12397 (_initialize_cli_style): Add "style sources" commands.
12398 (show_style_sources): New function.
12399 * cli/cli-style.h (source_styling): Declare.
12400
6f11e682
TT
124012019-03-14 Pedro Alves <palves@redhat.com>
12402 Tom Tromey <tromey@adacore.com>
12403
12404 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12405 * tui/tui-winsource.c (tui_refill_source_window): New function,
12406 from...
12407 (tui_horizontal_source_scroll): ... here. Move some logic.
12408 * cli/cli-style.c (set_style_enabled): Notify new observable.
12409 * tui/tui-hooks.c (tui_redisplay_source): New function.
12410 (tui_attach_detach_observers): Attach or detach
12411 tui_redisplay_source.
12412 * observable.h (source_styling_changed): New observable.
12413 * observable.c: Define source_styling_changed observable.
12414
a068643d
TT
124152019-03-13 Tom Tromey <tromey@adacore.com>
12416
12417 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12418 (i386_gnu_nat_target::store_registers): Update.
12419 * target-debug.h (target_debug_print_std_string): New macro.
12420 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12421 * windows-tdep.c (display_one_tib): Update.
12422 * tui/tui-stack.c (tui_make_status_line): Update.
12423 * top.c (print_inferior_quit_action): Update.
12424 * thread.c (thr_try_catch_cmd): Update.
12425 (add_thread_with_info): Update.
12426 (thread_target_id_str): Update.
12427 (thr_try_catch_cmd): Update.
12428 (thread_command): Update.
12429 (thread_find_command): Update.
12430 * record-btrace.c (record_btrace_target::info_record)
12431 (record_btrace_resume_thread, record_btrace_target::resume)
12432 (record_btrace_cancel_resume, record_btrace_step_thread)
12433 (record_btrace_target::wait, record_btrace_target::wait)
12434 (record_btrace_target::wait, record_btrace_target::stop): Update.
12435 * progspace.c (print_program_space): Update.
12436 * process-stratum-target.c
12437 (process_stratum_target::thread_address_space): Update.
12438 * linux-fork.c (linux_fork_mourn_inferior)
12439 (detach_checkpoint_command, info_checkpoints_command)
12440 (linux_fork_context): Update.
12441 (linux_fork_detach): Update.
12442 (class scoped_switch_fork_info): Update.
12443 (delete_checkpoint_command): Update.
12444 * infrun.c (follow_fork_inferior): Update.
12445 (follow_fork_inferior): Update.
12446 (proceed_after_vfork_done): Update.
12447 (handle_vfork_child_exec_or_exit): Update.
12448 (follow_exec): Update.
12449 (displaced_step_prepare_throw): Update.
12450 (displaced_step_restore): Update.
12451 (start_step_over): Update.
12452 (resume_1): Update.
12453 (clear_proceed_status_thread): Update.
12454 (proceed): Update.
12455 (print_target_wait_results): Update.
12456 (do_target_wait): Update.
12457 (context_switch): Update.
12458 (stop_all_threads): Update.
12459 (restart_threads): Update.
12460 (finish_step_over): Update.
12461 (handle_signal_stop): Update.
12462 (switch_back_to_stepped_thread): Update.
12463 (keep_going_pass_signal): Update.
12464 (print_exited_reason): Update.
12465 (normal_stop): Update.
12466 * inferior.c (inferior_pid_to_str): Change return type.
12467 (print_selected_inferior): Update.
12468 (add_inferior): Update.
12469 (detach_inferior): Update.
12470 * dummy-frame.c (fprint_dummy_frames): Update.
12471 * dcache.c (dcache_info_1): Update.
12472 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12473 (btrace_fetch, btrace_clear): Update.
12474 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12475 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12476 type.
12477 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12478 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12479 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12480 * gdbarch.c, gdbarch.h: Rebuild.
12481 * gdbarch.sh (core_pid_to_str): Change return type.
12482 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12483 return type.
12484 (windows_nat_target::pid_to_str): Change return type.
12485 (windows_delete_thread): Update.
12486 (windows_nat_target::attach): Update.
12487 (windows_nat_target::files_info): Update.
12488 * target-delegates.c: Rebuild.
12489 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12490 return type.
12491 (sol_thread_target::pid_to_str): Change return type.
12492 * remote.c (class remote_target) <pid_to_str>: Change return
12493 type.
12494 (remote_target::pid_to_str): Change return type.
12495 (extended_remote_target::attach, remote_target::remote_stop_ns)
12496 (remote_target::remote_notif_remove_queued_reply)
12497 (remote_target::push_stop_reply, remote_target::disable_btrace):
12498 Update.
12499 (extended_remote_target::attach): Update.
12500 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12501 type.
12502 (gdbsim_target::pid_to_str): Change return type.
12503 * ravenscar-thread.c (struct ravenscar_thread_target)
12504 <pid_to_str>: Change return type.
12505 (ravenscar_thread_target::pid_to_str): Change return type.
12506 * procfs.c (class procfs_target) <pid_to_str>: Change return
12507 type.
12508 (procfs_target::pid_to_str): Change return type.
12509 (procfs_target::attach): Update.
12510 (procfs_target::detach): Update.
12511 (procfs_target::fetch_registers): Update.
12512 (procfs_target::store_registers): Update.
12513 (procfs_target::wait): Update.
12514 (procfs_target::files_info): Update.
12515 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12516 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12517 return type.
12518 (nto_procfs_target::pid_to_str): Change return type.
12519 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12520 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12521 return type.
12522 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12523 (exit_lwp): Update.
12524 (attach_proc_task_lwp_callback, get_detach_signal)
12525 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12526 (linux_nat_target::resume, wait_lwp, stop_callback)
12527 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12528 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12529 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12530 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12531 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12532 type.
12533 (inf_ptrace_target::attach): Update.
12534 (inf_ptrace_target::files_info): Update.
12535 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12536 type.
12537 (go32_nat_target::pid_to_str): Change return type.
12538 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12539 (gnu_nat_target::wait): Update.
12540 (gnu_nat_target::wait): Update.
12541 (gnu_nat_target::resume): Update.
12542 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12543 (fbsd_nat_target::wait): Update.
12544 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12545 type.
12546 (darwin_nat_target::attach): Update.
12547 * corelow.c (class core_target) <pid_to_str>: Change return type.
12548 (core_target::pid_to_str): Change return type.
12549 * target.c (normal_pid_to_str): Change return type.
12550 (default_pid_to_str): Likewise.
12551 (target_pid_to_str): Change return type.
12552 (target_translate_tls_address): Update.
12553 (target_announce_detach): Update.
12554 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12555 return type.
12556 (bsd_uthread_target::pid_to_str): Change return type.
12557 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12558 type.
12559 (bsd_kvm_target::pid_to_str): Change return type.
12560 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12561 return type.
12562 (aix_thread_target::pid_to_str): Change return type.
12563 * target.h (struct target_ops) <pid_to_str>: Change return type.
12564 (target_pid_to_str, normal_pid_to_str): Likewise.
12565 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12566 type.
12567 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12568 type.
12569 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12570 return type.
12571 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12572 type.
12573 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12574 type.
12575 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12576 return type.
12577
b4be1b06
SM
125782019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12579
12580 * NEWS: Mention that the new default MI version is 3. Mention
12581 changes to the output of commands and events that deal with
12582 multi-location breakpoints.
12583 * breakpoint.c: Include "mi/mi-out.h".
12584 (print_one_breakpoint): Change output syntax if using MI version
12585 >= 3.
12586 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12587 New.
12588 (mi_multi_location_breakpoint_output_fixed): New.
12589 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12590 (mi_cmd_fix_multi_location_breakpoint_output): New.
12591 (mi_multi_location_breakpoint_output_fixed): New.
12592 * mi/mi-cmds.c (mi_cmds): Register command
12593 -fix-multi-location-breakpoint-output.
12594 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12595 interpreter "mi".
12596
8e5e5494
SM
125972019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12598
12599 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12600 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12601 instantiate mi_ui_out based on interpreter name.
12602 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12603 * mi/mi-main.c (mi_load_progress): Likewise.
12604
197df35e
JB
126052019-03-12 John Baldwin <jhb@FreeBSD.org>
12606
12607 * NEWS: Combine separate "New targets" sections for 8.3.
12608
8399425f
JB
126092019-03-12 John Baldwin <jhb@FreeBSD.org>
12610
12611 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12612 (ppcfbsd_init_abi): Install gdbarch
12613 "fetch_tls_load_module_address" and "get_thread_local_address"
12614 methods.
12615
b0f87ed0
JB
126162019-03-12 John Baldwin <jhb@FreeBSD.org>
12617
12618 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12619 (riscv_fbsd_init_abi): Install gdbarch
12620 "fetch_tls_load_module_address" and "get_thread_local_address"
12621 methods.
12622
ce25aa57
JB
126232019-03-12 John Baldwin <jhb@FreeBSD.org>
12624
12625 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12626 (i386fbsd_init_abi): Install gdbarch
12627 "fetch_tls_load_module_address" and "get_thread_local_address"
12628 methods.
12629
f5424cfa
JB
126302019-03-12 John Baldwin <jhb@FreeBSD.org>
12631
12632 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12633 (amd64fbsd_init_abi): Install gdbarch
12634 "fetch_tls_load_module_address" and "get_thread_local_address"
12635 methods.
12636
945f3901
JB
126372019-03-12 John Baldwin <jhb@FreeBSD.org>
12638
12639 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12640 (struct fbsd_pspace_data): New type.
12641 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12642 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12643 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12644 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12645 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12646
ef0bd204
JB
126472019-03-12 John Baldwin <jhb@FreeBSD.org>
12648
12649 * gdbtypes.c (lookup_struct_elt): New function.
12650 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12651 * gdbtypes.h (struct struct_elt): New type.
12652 (lookup_struct_elt): New prototype.
12653
36c53a02
JB
126542019-03-12 John Baldwin <jhb@FreeBSD.org>
12655
12656 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12657 remove disabled code block.
12658
6e056c81
JB
126592019-03-12 John Baldwin <jhb@FreeBSD.org>
12660
12661 * gdbarch.sh (get_thread_local_address): New method.
12662 * gdbarch.h, gdbarch.c: Regenerate.
12663 * target.c (target_translate_tls_address): Use
12664 gdbarch_get_thread_local_address if present instead of
12665 target::get_thread_local_address.
12666
cd250a18
JB
126672019-03-12 John Baldwin <jhb@FreeBSD.org>
12668
12669 * target.h (target::get_thread_local_address): Update comment.
12670
df22c1e5
JB
126712019-03-12 John Baldwin <jhb@FreeBSD.org>
12672
12673 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12674 objfile->separate_debug_objfile_backlink if not NULL.
12675
dd6876c9
JB
126762019-03-12 John Baldwin <jhb@FreeBSD.org>
12677
12678 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12679 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12680 (amd64bsd_store_inferior_registers): Likewise.
12681 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12682 Enable segment base registers.
12683 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12684 PT_GETFSBASE and PT_GETGSBASE.
12685 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12686 PT_SETGSBASE.
12687 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12688 segment base registers.
12689 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12690
1163a4b7
JB
126912019-03-12 John Baldwin <jhb@FreeBSD.org>
12692
12693 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12694 Update calls to i386_target_description to add 'segments'
12695 parameter.
12696 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12697 add segment base registers.
12698 * arch/i386.c (i386_create_target_description): Add 'segments'
12699 parameter to enable segment base registers.
12700 * arch/i386.h (i386_create_target_description): Likewise.
12701 * features/i386/32bit-segments.xml: New file.
12702 * features/i386/32bit-segments.c: Generate.
12703 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12704 call to i386_target_description to add 'segments' parameter.
12705 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12706 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12707 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12708 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12709 if feature is present.
12710 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12711 Add 'segments' parameter to call to i386_target_description.
12712 (i386_target_description): Add 'segments' parameter to enable
12713 segment base registers.
12714 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12715 to call to i386_target_description.
12716 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12717 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12718 Define I386_NUM_REGS.
12719 (i386_target_description): Add 'segments' parameter to enable
12720 segment base registers.
12721
3a350822
EZ
127222019-03-12 Eli Zaretskii <eliz@gnu.org>
12723
12724 PR/24325
12725 * source-cache.c: #undef open and close, to avoid unresolved
12726 externals during linking.
12727
ffdd69cf
TT
127282019-03-12 Tom Tromey <tromey@adacore.com>
12729
12730 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12731 const. Add initializers.
12732 (_initialize_remote): Don't initialize ptid globals.
12733
ec148c57
PA
127342019-03-12 Pedro Alves <palves@redhat.com>
12735
12736 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12737
32764270
PA
127382019-03-12 Pedro Alves <palves@redhat.com>
12739
12740 * cp-name-parser.y (main): Remove unused 'len' variable.
12741
17547186
TT
127422019-03-12 Tom Tromey <tromey@adacore.com>
12743
12744 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12745 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12746
d3a70e03
TT
127472019-03-12 Tom Tromey <tromey@adacore.com>
12748
12749 * linux-nat.c (iterate_over_lwps): Update.
12750 (stop_callback): Remove parameter.
12751 (stop_wait_callback, detach_callback, resume_set_callback)
12752 (select_singlestep_lwp_callback, set_ignore_sigint)
12753 (status_callback, resumed_callback, resume_clear_callback)
12754 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12755 data parameter.
12756 (linux_nat_target::detach, linux_nat_target::resume)
12757 (linux_stop_and_wait_all_lwps, select_event_lwp)
12758 (linux_nat_filter_event, linux_nat_wait_1)
12759 (linux_nat_target::kill, linux_nat_target::stop)
12760 (linux_nat_target::stop): Update.
12761 (linux_nat_resume_callback): Change type.
12762 (resume_stopped_resumed_lwps, count_events_callback)
12763 (select_event_lwp_callback): Likewise.
12764 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12765 * arm-linux-nat.c (struct update_registers_data): Remove.
12766 (update_registers_callback): Change type.
12767 (arm_linux_insert_hw_breakpoint1): Update.
12768 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12769 parameter.
12770 (x86_linux_dr_set_addr): Update.
12771 (x86_linux_dr_set_control): Update.
12772 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12773 (iterate_over_lwps): Use gdb::function_view.
12774 * nat/aarch64-linux-hw-point.c (struct
12775 aarch64_dr_update_callback_param): Remove.
12776 (debug_reg_change_callback): Change type.
12777 (aarch64_notify_debug_reg_change): Update.
12778 * s390-linux-nat.c (s390_refresh_per_info): Update.
12779
82cb27ff
TT
127802019-03-11 Tom Tromey <tromey@adacore.com>
12781
12782 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12783 redundant assignment to "this_cu".
12784
568c0683
SM
127852019-03-08 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12788
f09ce22d
SM
127892019-03-08 Simon Marchi <simon.marchi@efficios.com>
12790
12791 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12792 from...
12793 (rank_one_type): ... this.
12794
595f96a9
SM
127952019-03-08 Simon Marchi <simon.marchi@efficios.com>
12796
12797 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12798 from...
12799 (rank_one_type): ... this.
12800
2598a94b
SM
128012019-03-08 Simon Marchi <simon.marchi@efficios.com>
12802
12803 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12804 from...
12805 (rank_one_type): ... this.
12806
7f17b20d
SM
128072019-03-08 Simon Marchi <simon.marchi@efficios.com>
12808
12809 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12810 from...
12811 (rank_one_type): ... this.
12812
2c509035
SM
128132019-03-08 Simon Marchi <simon.marchi@efficios.com>
12814
12815 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12816 from...
12817 (rank_one_type): ... this.
12818
0dd322dc
SM
128192019-03-08 Simon Marchi <simon.marchi@efficios.com>
12820
12821 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12822 from...
12823 (rank_one_type): ... this.
12824
41ea4728
SM
128252019-03-08 Simon Marchi <simon.marchi@efficios.com>
12826
12827 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12828 from...
12829 (rank_one_type): ... this.
12830
793cd1d2
SM
128312019-03-08 Simon Marchi <simon.marchi@efficios.com>
12832
12833 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12834 from...
12835 (rank_one_type): ... this.
12836
34910087
SM
128372019-03-08 Simon Marchi <simon.marchi@efficios.com>
12838
12839 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12840 from...
12841 (rank_one_type): ... this.
12842
f1f832d6
SM
128432019-03-08 Simon Marchi <simon.marchi@efficios.com>
12844
12845 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12846 from...
12847 (rank_one_type): ... this.
12848
b9f4512f
SM
128492019-03-08 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12852 from...
12853 (rank_one_type): ... this.
12854
9293fc63
SM
128552019-03-08 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12858 from...
12859 (rank_one_type): ... this.
12860
e3abbe7e
PW
128612019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12862
12863 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12864 inferior-events' shows the example events.
12865
e4adb939
EZ
128662019-03-08 Eli Zaretskii <eliz@gnu.org>
12867
12868 Support styling on native MS-Windows console
12869
12870 PR/24315
12871 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12872 on MS-Windows if $TERM is not defined.
12873
12874 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12875
12876 * posix-hdep.c (gdb_console_fputs):
12877 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12878 functions.
12879 * ui-file.h (gdb_console_fputs): Add prototype.
12880
12881 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12882 back to fputs only if the former returns zero.
12883
25629dfd
TT
128842019-03-07 Tom Tromey <tom@tromey.com>
12885
12886 * symmisc.c (print_symbol_bcache_statistics): Update.
12887 (print_objfile_statistics): Update.
12888 * symfile.c (allocate_symtab): Update.
12889 * stabsread.c: Don't include bcache.h.
12890 * psymtab.h (struct psymbol_bcache): Don't declare.
12891 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12892 (psymbol_bcache_init, psymbol_bcache_free)
12893 (psymbol_bcache_get_bcache): Don't declare.
12894 * psymtab.c (struct psymbol_bcache): Remove.
12895 (psymtab_storage::psymtab_storage): Update.
12896 (psymtab_storage::~psymtab_storage): Update.
12897 (psymbol_bcache_init, psymbol_bcache_free)
12898 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12899 (add_psymbol_to_bcache): Update.
12900 (allocate_psymtab): Update.
12901 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12902 macro_cache>: No longer pointers.
12903 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12904 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12905 * macrotab.c (macro_bcache): Update.
12906 * macroexp.c: Don't include bcache.h.
12907 * gdbtypes.c (check_types_worklist): Update.
12908 (types_deeply_equal): Remove TRY/CATCH. Update.
12909 * elfread.c (elf_symtab_read): Update.
12910 * dwarf2read.c: Don't include bcache.h.
12911 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12912 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12913 (print_bcache_statistics, bcache_memory_used): Don't declare.
12914 (struct bcache): Move from bcache.c. Add constructor, destructor,
12915 methods. Rename all data members.
12916 * bcache.c (struct bcache): Move to bcache.h.
12917 (bcache::expand_hash_table): Rename from expand_hash_table.
12918 (bcache): Remove.
12919 (bcache::insert): Rename from bcache_full.
12920 (bcache::compare): Rename from bcache_compare.
12921 (bcache_xmalloc): Remove.
12922 (bcache::~bcache): Rename from bcache_xfree.
12923 (bcache::print_statistics): Rename from print_bcache_statistics.
12924 (bcache::memory_used): Rename from bcache_memory_used.
12925
fe726667
PA
129262019-03-07 Pedro Alves <palves@redhat.com>
12927
12928 * infrun.c (normal_stop): Also check for
12929 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12930
7584bb30
AB
129312019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12932
12933 * f-lang.c (value_from_host_double): Moved to...
12934 * value.c (value_from_host_double): ...here.
12935 * value.h (value_from_host_double): Declare.
12936 * guile/scm-math.c (vlscm_convert_typed_number): Use
12937 value_from_host_double.
12938 (vlscm_convert_number): Likewise.
12939 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12940 * python/py-value.c (convert_value_from_python): Likewise.
12941
a7b1986e
TT
129422019-03-06 Tom Tromey <tom@tromey.com>
12943
12944 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12945
0ccf4211
TT
129462019-03-06 Tom Tromey <tom@tromey.com>
12947
12948 * utils.h (free_current_contents): Don't declare.
12949 * utils.c (free_current_contents): Remove.
12950
fe7b42e5
TT
129512019-03-06 Tom Tromey <tom@tromey.com>
12952
12953 * top.c (quit_force): Update.
12954 * main.c (captured_command_loop): Update.
12955 * common/new-op.c (operator new): Update.
12956 * common/common-exceptions.c (struct catcher)
12957 <save_cleanup_chain>: Remove member.
12958 (exceptions_state_mc_init): Update.
12959 (exception_try_scope_entry): Return nullptr.
12960 (exception_try_scope_exit, exception_rethrow)
12961 (throw_exception_sjlj, throw_exception_cxx): Update.
12962 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12963 (all_cleanups, do_cleanups, discard_cleanups)
12964 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12965 (restore_cleanups, restore_final_cleanups): Don't declare.
12966 (do_final_cleanups): Remove parameter.
12967 * common/cleanups.c (cleanup_chain, make_cleanup)
12968 (make_cleanup_dtor, all_cleanups, do_cleanups)
12969 (discard_my_cleanups, discard_cleanups)
12970 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12971 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12972 (null_cleanup): Remove.
12973 (do_final_cleanups): Remove parameter.
12974
c6321f19
TT
129752019-03-06 Tom Tromey <tom@tromey.com>
12976
12977 * remote.c (remote_target::remote_parse_stop_reply): Use
12978 unique_xmalloc_ptr.
12979
61b30099
TT
129802019-03-06 Tom Tromey <tom@tromey.com>
12981
12982 * stabsread.c (struct stabs_field_info): Rename from field_info.
12983 <list, fnlist>: Add initializers.
12984 <obstack>: New member.
12985 (read_member_functions, read_struct_fields, read_baseclasses):
12986 Allocate on obstack. Don't use cleanups.
12987 (read_one_struct_field, read_member_functions, read_struct_fields)
12988 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12989 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12990 (read_struct_type): Update.
12991
6cceac94
TT
129922019-03-06 Tom Tromey <tom@tromey.com>
12993
12994 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12995 * common/filestuff.h (make_cleanup_close): Don't declare.
12996 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12997 Remove.
12998
72412762
TT
129992019-03-06 Tom Tromey <tom@tromey.com>
13000
13001 * solib-aix.c: Use make_scope_exit.
13002
2b6ff1c0
TT
130032019-03-06 Tom Tromey <tom@tromey.com>
13004
13005 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13006 Use make_scope_exit.
13007
d01c5877
TT
130082019-03-06 Tom Tromey <tom@tromey.com>
13009
13010 * solib-svr4.c (disable_probes_interface): Remove parameter.
13011 (svr4_handle_solib_event): Use make_scope_exit.
13012
32603266
TT
130132019-03-06 Tom Tromey <tom@tromey.com>
13014
13015 * remote.c (struct stop_reply_deleter): Remove.
13016 (stop_reply_up): Update.
13017 (struct stop_reply): Derive from notif_event. Don't typedef.
13018 <regcache>: Now a std::vector.
13019 (stop_reply_xfree): Remove.
13020 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13021 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13022 (remote_target::discard_pending_stop_replies): Use delete.
13023 (remote_target::remote_parse_stop_reply): Update.
13024 (remote_target::process_stop_reply): Update.
13025 * remote-notif.h (struct notif_event): Add virtual destructor.
13026 Remove "dtr" member.
13027 (struct notif_client) <alloc_event>: Return a unique_ptr.
13028 (notif_event_xfree): Don't declare.
13029 (notif_event_up): New typedef.
13030 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13031 (notif_event_xfree, do_notif_event_xfree): Remove.
13032 (remote_notif_state_xfree): Update.
13033
9799571e
TT
130342019-03-06 Tom Tromey <tom@tromey.com>
13035
13036 * infrun.c (displaced_step_clear_cleanup): Now a
13037 forward_scope_exit type.
13038 (displaced_step_prepare_throw): Update.
13039 (displaced_step_fixup): Update.
13040
09e3c4ca
TT
130412019-03-06 Tom Tromey <tom@tromey.com>
13042
13043 * inferior.h (class inferior): Update comment.
13044 * gdbthread.h (class thread_info): Update comment.
13045
e2a03548
TT
130462019-03-06 Joel Brobecker <brobecker@adacore.com>
13047 Tom Tromey <tom@tromey.com>
13048
13049 * stabsread.h (struct stab_section_list): Remove.
13050 (coffstab_build_psymtabs): Update.
13051 * dbxread.c (symbuf_sections): Now a std::vector.
13052 (sect_idx): New global.
13053 (fill_symbuf): Update.
13054 (coffstab_build_psymtabs): Change type of stabsects parameter.
13055 Update.
13056 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13057 std::vector.
13058 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13059 (coff_locate_sections): Update.
13060 (coff_symfile_read): Remove cleanups. Update.
13061 (init_stringtab): Add storage parameter.
13062 (free_stringtab, free_stringtab_cleanup): Remove.
13063 (init_lineno): Add storage parameter.
13064 (free_linetab, free_linetab_cleanup): Remove.
13065
b7e60d85
PA
130662019-03-06 Pedro Alves <palves@redhat.com>
13067
13068 * linux-fork.c (fork_info::clobber_regs): Delete.
13069 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13070 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13071 comment. Adjust.
13072 (scoped_switch_fork_info::scoped_switch_fork_info)
13073 (checkpoint_command, linux_fork_context): Adjust
13074 fork_save_infrun_state calls.
13075
e52c971f
PA
130762019-03-06 Pedro Alves <palves@redhat.com>
13077
13078 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13079 (inf_has_multiple_threads): Return 'bool' and rewrite using
13080 inferior_info::threads().
13081
06974e6c
PA
130822019-03-06 Pedro Alves <palves@redhat.com>
13083
13084 * linux-fork.c: Include <list>.
13085 (fork_list): Now a std::list instance.
13086 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13087 (forks_exist_p, find_last_fork): Adjust.
13088 (new_fork): Delete.
13089 (one_fork_p): New.
13090 (add_fork): Adjust.
13091 (free_fork): Delete, folded into fork_info::~fork_info().
13092 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13093 Adjust.
13094 (init_fork_list): Delete.
13095 (linux_fork_killall, linux_fork_mourn_inferior)
13096 (linux_fork_detach, info_checkpoints_command): Adjust.
13097 (_initialize_linux_fork): No longer call init_fork_list.
13098
72f31aea
PA
130992019-03-06 Pedro Alves <palves@redhat.com>
13100
13101 * linux-fork.c (new_fork): New, split out of ...
13102 (add_fork): ... this. Return void. Move "first fork" special
13103 case from here, to ...
13104 (checkpoint_command): ... here.
13105 * linux-linux.h (add_fork): Return void.
13106
efbecbc1
AB
131072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13108
13109 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13110
0841c79a
AB
131112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13112 Chris January <chris.january@arm.com>
13113 David Lecomber <david.lecomber@arm.com>
13114
13115 * f-exp.y: New token, UNOP_INTRINSIC.
13116 (exp): New pattern using UNOP_INTRINSIC token.
13117 (f77_keywords): Add 'abs' keyword.
13118 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13119 (value_from_host_double): New function.
13120 (evaluate_subexp_f): Support UNOP_ABS.
13121
4a270568
AB
131222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13123
13124 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13125 types.
13126
067630bd
AB
131272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13130 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13131 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13132
3be47f7a
AB
131332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13136
4d00f5d8
AB
131372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13138 Chris January <chris.january@arm.com>
13139
13140 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13141 * f-exp.y: Define 'KIND' token.
13142 (exp): New pattern for KIND expressions.
13143 (ptype): Handle types with a kind extension.
13144 (direct_abs_decl): Extend to spot kind extensions.
13145 (f77_keywords): Add 'kind' to the list.
13146 (push_kind_type): New function.
13147 (convert_to_kind_type): New function.
13148 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13149 * parse.c (operator_length_standard): Likewise.
13150 * parser-defs.h (enum type_pieces): Add tp_kind.
13151 * std-operator.def: Add UNOP_KIND.
13152
e454224f
AB
131532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13154
13155 * f-exp.y (f_parse): Set yydebug.
13156
9dad4a58
AB
131572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13158
13159 * f-lang.c (evaluate_subexp_f): New function.
13160 (exp_descriptor_f): New global.
13161 (f_language_defn): Use exp_descriptor_f instead of
13162 exp_descriptor_standard.
13163
c8f91604
AB
131642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13165
13166 * f-exp.y (struct token): Add comments.
13167 (dot_ops): Remove uppercase versions and the end marker.
13168 (f77_keywords): Likewise.
13169 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13170 entries in the dot_ops array are case insensitive, and use
13171 strncasecmp to compare strings. Also some whitespace cleanup in
13172 this area. Similar for the f77_keywords array, except entries in
13173 this list might be case sensitive.
13174
dd9f2c76
AB
131752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13176
13177 * f-exp.y (struct f77_boolean_val): Add comments.
13178 (boolean_values): Remove uppercase versions, and end marker.
13179 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13180 and use strncasecmp to achieve case insensitivity. Additionally,
13181 perform whitespace cleanup around this code.
13182
67a3048c
TT
131832019-03-06 Tom Tromey <tromey@adacore.com>
13184
13185 * remote-sim.c (gdbsim_target_open): Use result of
13186 gdb_argv::release.
13187
aa3cfbda
RB
131882019-03-06 Richard Bunt <richard.bunt@arm.com>
13189 Dirk Schubert <dirk.schubert@arm.com>
13190 Chris January <chris.january@arm.com>
13191
13192 * eval.c (evaluate_subexp_standard): Call Fortran argument
13193 wrapping logic.
13194 * f-lang.c (struct value): A value which can be passed into a
13195 Fortran function call.
13196 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13197 where appropriate.
13198 (struct type): Value ready for a Fortran function call.
13199 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13200 is needed.
13201 * f-lang.h (fortran_argument_convert): Declaration.
13202 (fortran_preserve_arg_pointer): Declaration.
13203 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13204
ea38e5df
TT
132052019-03-05 Tom Tromey <tromey@adacore.com>
13206
13207 * python/py-prettyprint.c (print_string_repr): Remove #if.
13208 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13209
06b5b831
TT
132102019-03-05 Tom Tromey <tromey@adacore.com>
13211
13212 * target.c (the_dummy_target): Move later. Change type to
13213 "dummy_target".
13214 (initialize_targets): Don't initialize the_dummy_target.
13215
edbd9e45
TT
132162019-03-05 Tom Tromey <tromey@adacore.com>
13217
13218 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13219 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13220
c119e040
TT
132212019-03-05 Tom Tromey <tromey@adacore.com>
13222
13223 * windows-nat.c (windows_nat_target::attach)
13224 (windows_nat_target::detach): Don't call gdb_flush.
13225 * valprint.c (generic_val_print, val_print, val_print_string):
13226 Don't call gdb_flush.
13227 * utils.c (defaulted_query): Don't call gdb_flush.
13228 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13229 * target.c (target_announce_detach): Don't call gdb_flush.
13230 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13231 * remote.c (extended_remote_target::attach): Don't call
13232 gdb_flush.
13233 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13234 * printcmd.c (do_examine): Don't call gdb_flush.
13235 (info_display_command): Don't call gdb_flush.
13236 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13237 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13238 * memattr.c (info_mem_command): Don't call gdb_flush.
13239 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13240 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13241 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13242 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13243 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13244 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13245 (gnu_nat_target::detach): Don't call gdb_flush.
13246 * f-valprint.c (f_val_print): Don't call gdb_flush.
13247 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13248 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13249 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13250 gdb_flush.
13251 * c-valprint.c (c_val_print): Don't call gdb_flush.
13252 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13253
895dafa6
TT
132542019-03-05 Tom Tromey <tromey@adacore.com>
13255
13256 * varobj.c (update_dynamic_varobj_children): Update.
13257 (install_default_visualizer): Use reset, not release.
13258 * value.c (set_internalvar): Update.
13259 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13260 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13261 ATTRIBUTE_UNUSED_RESULT.
13262
88a774b9
TT
132632019-03-05 Tom Tromey <tromey@adacore.com>
13264
13265 * remote.c (class scoped_remote_fd) <release>: Add
13266 ATTRIBUTE_UNUSED_RESULT.
13267
4e4a8b93
TT
132682019-03-05 Tom Tromey <tromey@adacore.com>
13269
13270 * macroexp.c (struct macro_buffer) <release>: Add
13271 ATTRIBUTE_UNUSED_RESULT.
13272
083eef1f
TT
132732019-03-05 Tom Tromey <tromey@adacore.com>
13274
13275 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13276 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13277 ATTRIBUTE_UNUSED_RESULT.
13278
3cabd438
TT
132792019-03-05 Tom Tromey <tromey@adacore.com>
13280
13281 * common/scoped_fd.h (class scoped_fd) <release>: Add
13282 ATTRIBUTE_UNUSED_RESULT.
13283
41e3300a
TT
132842019-03-05 Tom Tromey <tromey@adacore.com>
13285
13286 * parser-defs.h (struct parser_state) <release>: Add
13287 ATTRIBUTE_UNUSED_RESULT.
13288
18cb7c9f
TT
132892019-03-05 Tom Tromey <tromey@adacore.com>
13290
13291 * utils.h (class gdb_argv) <release>: Add
13292 ATTRIBUTE_UNUSED_RESULT.
13293 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13294
41fa577f
EZ
132952019-03-02 Eli Zaretskii <eliz@gnu.org>
13296
a6a4b2c6
EZ
13297 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13298 for-loop range, to avoid compiler warnings.
13299
13300 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13301 avoid compiler warnings about unused variables.
13302
742a7df5
EZ
13303 * NEWS: Mention end of support for native debugging on MS-Windows
13304 before XP.
13305
41fa577f
EZ
13306 PR gdb/24292
13307 * common/netstuff.c:
13308 * gdbserver/gdbreplay.c
13309 * gdbserver/remote-utils.c:
13310 * ser-tcp.c:
13311 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13312 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13313 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13314 'getaddrinfo' and 'freeaddrinfo' were not available before
13315 Windows XP, and mingw.org's MinGW headers by default define
13316 _WIN32_WINNT to 0x500.
13317
827f438f
GB
133182019-03-01 Gary Benson <gbenson@redhat.com>
13319
13320 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13321
92137da0
RO
133222019-02-28 Brian Vandenberg <phantall@gmail.com>
13323 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13324
13325 PR gdb/8527
13326 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13327 set_sigint_trap, clear_sigint_trap.
13328
799efbe8
PW
133292019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13330
13331 * target.c (target_detach): Clear the regcache and the
13332 frame cache.
13333
8ed25214
PA
133342019-02-27 Pedro Alves <palves@redhat.com>
13335
13336 * utils.c (set_screen_size): When we cap the height/width sizes,
13337 tweak the corresponding command variable to show "unlimited":
13338
23031e31
SJ
133392019-02-27 Saagar Jha <saagar@saagarjha.com>
13340 Pedro Alves <palves@redhat.com>
13341
13342 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13343 before calling rl_set_screen_size.
13344
6c28e44a
TT
133452019-02-27 Tom Tromey <tromey@adacore.com>
13346
13347 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13348 define.
13349 * python/py-value.c: Remove Python 2.4 workaround.
13350 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13351 workaround.
13352 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13353 Python 2.4 workaround.
13354 * python/python-internal.h: Remove Python 2.4 comment.
13355 (Py_ssize_t): Don't define.
13356 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13357 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13358 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13359 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13360 * python/python.c (do_start_initialization): Remove Python 2.4
13361 workaround.
13362 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13363 (print_children): Remove Python 2.4 workaround.
13364 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13365 workaround.
13366 (CHARBUFFERPROC_NAME): Remove.
13367 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13368 Python 2.4 workaround.
13369
2c3fc25d 133702019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13371
2c3fc25d
KB
13372 * NEWS: Note minimum Python version.
13373
6ca62222
KB
133742019-02-27 Kevin Buettner <kevinb@redhat.com>
13375
13376 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13377 code from these functions. Remove corresponding ifdefs. Use
13378 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13379 Remove gotos and target of gotos.
13380 (infpy_search_memory): Likewise.
13381
f4bc7d2c
AB
133822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13383
13384 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13385 (hppa_gdbarch_init): Don't register deleted functions with
13386 gdbarch.
13387
9734a586
AB
133882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13389
13390 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13391 (h8300_unwind_sp): Delete.
13392 (h8300_dummy_id): Delete.
13393 (h8300_gdbarch_init): Don't register deleted functions with
13394 gdbarch.
13395
68b867f3
AB
133962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13397
13398 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13399 (ft32_unwind_pc): Delete.
13400 (ft32_unwind_sp): Delete.
13401 (ft32_gdbarch_init): Don't register deleted functions with
13402 gdbarch.
13403
2fbe7ad0
AB
134042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13405
13406 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13407 (frv_unwind_pc): Delete.
13408 (frv_unwind_sp): Delete.
13409 (frv_gdbarch_init): Don't register deleted functions with
13410 gdbarch.
13411
76055cbe
AB
134122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13413
13414 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13415 (riscv_unwind_pc): Delete.
13416 (riscv_unwind_sp): Delete.
13417 (riscv_gdbarch_init): Don't register deleted functions with
13418 gdbarch.
13419
4133e5a1
AB
134202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13421
13422 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13423 (csky_unwind_pc): Delete.
13424 (csky_unwind_sp): Delete.
13425 (csky_gdbarch_init): Don't register deleted functions with
13426 gdbarch.
13427
8010f576
AB
134282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13429
13430 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13431 (cris_unwind_pc): Delete.
13432 (cris_unwind_sp): Delete.
13433 (cris_gdbarch_init): Don't register deleted functions with
13434 gdbarch.
13435
b56bf084
AB
134362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13437
13438 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13439 (bfin_unwind_pc): Delete.
13440 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13441
a19a650f
AB
134422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13443
13444 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13445 (arm_unwind_pc): Delete.
13446 (arm_unwind_sp): Delete.
13447 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13448
f8278c3c
AB
134492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13452 (arc_unwind_pc): Delete.
13453 (arc_unwind_sp): Delete.
13454 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13455
480e46cf
AB
134562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13457
13458 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13459 (alpha_unwind_pc): Delete.
13460 (alpha_gdbarch_init): Don't register deleted functions with
13461 gdbarch.
13462
7a995095
AB
134632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13464
13465 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13466 (aarch64_unwind_pc): Delete.
13467 (aarch64_unwind_sp): Delete.
13468 (aarch64_gdbarch_init): Don't register deleted functions with
13469 gdbarch.
13470
bf9a735e
AB
134712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13472
13473 * gdbtypes.c (type_align): Don't consider static members when
13474 computing structure alignment.
13475
5561fc30
AB
134762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13477
13478 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13479 return 0 for other types.
13480 * arch-utils.c (default_type_align): Always return 0.
13481 * gdbarch.h: Regenerate.
13482 * gdbarch.sh (type_align): Extend comment.
13483 * gdbtypes.c (type_align): Add additional comments, always call
13484 gdbarch_type_align before applying the default rules.
13485 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13486 generic code will then apply a suitable default.
13487 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13488 types, return 0 for other types.
13489
9335e75a
JB
134902019-02-27 Joel Brobecker <brobecker@adacore.com>
13491
13492 * NEWS: Create a new section for the next release branch.
13493 Rename the section of the current branch, now that it has
13494 been cut.
13495
3d34d8de
JB
134962019-02-27 Joel Brobecker <brobecker@adacore.com>
13497
13498 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13499 * version.in: Bump version to 8.3.50.DATE-git.
13500
143420fb
SM
135012019-02-26 Simon Marchi <simon.marchi@efficios.com>
13502
13503 * aix-thread.c (ptid_cmp): Remove unused variable.
13504 (get_signaled_thread): Likewise.
13505 (store_regs_user_thread): Likewise.
13506 (store_regs_kernel_thread): Likewise.
13507 (fetch_regs_kernel_thread): Remove shadowed variable.
13508
172fb711
AB
135092019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13510
13511 * features/riscv/32bit-cpu.xml: Add register numbers.
13512 * features/riscv/32bit-fpu.c: Regenerate.
13513 * features/riscv/32bit-fpu.xml: Add register numbers.
13514 * features/riscv/64bit-cpu.xml: Add register numbers.
13515 * features/riscv/64bit-fpu.c: Regenerate.
13516 * features/riscv/64bit-fpu.xml: Add register numbers.
13517
26c89782
KB
135182019-02-26 Kevin Buettner <kevinb@redhat.com>
13519
af54ade9 13520 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13521 * python/py-value.c (convert_buffer_and_type_to_value): New
13522 function.
13523 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13524 Add support for handling an optional second argument. Call
13525 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13526 * python/python-internal.h (Py_buffer_deleter): New struct.
13527 (Py_buffer_up): New typedef.
13528
0f58c9e8
JB
135292019-02-25 John Baldwin <jhb@FreeBSD.org>
13530
13531 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13532 instead of releasing ownership.
13533
0a0f4c01
JR
135342019-02-25 Jordan Rupprecht <rupprecht@google.com>
13535
13536 * dwarf2read.c (open_and_init_dwp_file): Call
13537 elf_numsections instead of bfd_count_sections to initialize
13538 dwp_file->num_sections.
13539
cd5a152c
TT
135402019-02-25 Tom Tromey <tromey@adacore.com>
13541
13542 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13543
8a6a8513
SDJ
135442019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13545
13546 * gcore.in: Add '--readnever' option when invoking GDB.
13547
04dcda9c
SM
135482019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13549
13550 * MAINTAINERS: Update my email address.
13551
07bc701d
SM
135522019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13553
13554 * build-id.c (build_id_to_debug_bfd_1): New function.
13555 (build_id_to_debug_bfd): Look for separate debug file in
13556 sysroot.
13557
c6f4a5d0
AB
135582019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13559
13560 * gdbarch.sh: Update the copyright year range that is placed into
13561 generated files.
13562
9600246d
KS
135632019-02-22 Keith Seitz <keiths@redhat.com>
13564
13565 PR symtab/23853
13566 * linespec.c (create_sals_line_offset): Search for the default
13567 symtab's filename instead of its fullname.
13568
7557a514
AH
135692019-02-21 Alan Hayward <alan.hayward@arm.com>
13570
13571 * NEWS: Update style defaults.
13572
ee2bcb0c
AH
135732019-02-21 Alan Hayward <alan.hayward@arm.com>
13574
13575 * main.c (captured_main_1): Disable styling in batch mode.
13576
0c95f9ed
TT
135772019-02-20 Tom Tromey <tom@tromey.com>
13578
13579 * symtab.c (symtab_symbol_info): Fix typos.
13580
c763b894
TT
135812019-02-20 Tom Tromey <tromey@adacore.com>
13582
13583 * findcmd.c (_initialize_mem_search): Use upper case for
13584 metasyntactic variables.
13585
0ef8a082
AH
135862019-02-20 Alan Hayward <alan.hayward@arm.com>
13587
13588 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13589 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13590
6caa91b6
SM
135912019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13592
13593 * top.h (source_file_name): Change to std::string.
13594 * top.c (source_file_name): Likewise.
13595 (command_line_input): Adjust.
13596 * cli/cli-script.c (script_from_file): Adjust.
13597
98814c6c
TT
135982019-02-19 Tom Tromey <tromey@adacore.com>
13599
13600 * ravenscar-thread.c
13601 (ravenscar_thread_target::update_thread_list): Don't call
13602 ada_build_task_list.
13603 * ada-lang.h (ada_build_task_list): Don't declare.
13604 * ada-tasks.c (struct ada_tasks_inferior_data)
13605 <task_list_valid_p>: Now bool.
13606 (read_known_tasks, ada_task_list_changed)
13607 (ada_tasks_invalidate_inferior_data): Update.
13608 (read_known_tasks_array): Return bool.
13609 (read_known_tasks_list): Likewise.
13610 (read_known_tasks): Return void.
13611 (ada_build_task_list): Now static.
13612
70cd633e
AB
136132019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13614
13615 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13616 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13617
040b3e95
PW
136182019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13619
13620 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13621 variant for ada_tasks_pspace_data_handle and
13622 ada_tasks_inferior_data_handle.
13623 (ada_tasks_pspace_data_cleanup): New function.
13624 (ada_tasks_inferior_data_cleanup): New function.
13625
9409233b
TT
136262019-02-17 Tom Tromey <tom@tromey.com>
13627
13628 * macrotab.h (macro_source_fullname): Return a std::string.
13629 * macrotab.c (macro_include, check_for_redefinition)
13630 (macro_undef, macro_lookup_definition, foreach_macro)
13631 (foreach_macro_in_scope): Update.
13632 (macro_source_fullname): Return a std::string.
13633 * macrocmd.c (show_pp_source_pos): Update.
13634
6506371f
TT
136352019-02-17 Tom Tromey <tom@tromey.com>
13636
13637 * macrocmd.c (show_pp_source_pos): Style the file names.
13638
0c820d67
TT
136392019-02-17 Tom Tromey <tom@tromey.com>
13640
13641 PR tui/24197:
13642 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13643
a0087920
TT
136442019-02-17 Tom Tromey <tom@tromey.com>
13645
13646 * ada-lang.c (user_select_syms): Use filtered printing.
13647 * utils.c (wrap_style): New global.
13648 (desired_style): Remove.
13649 (emit_style_escape): Add stream parameter.
13650 (set_output_style, reset_terminal_style, prompt_for_continue):
13651 Update.
13652 (flush_wrap_buffer): Only flush gdb_stdout.
13653 (wrap_here): Set wrap_style.
13654 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13655 treat escape sequences as a character. Change when wrap buffer is
13656 flushed.
13657 (fputs_styled): Do not set the output style when the default is
13658 requested.
13659 * ui-style.h (struct ui_file_style) <is_default>: New method.
13660 * source.c (print_source_lines_base): Emit escape sequences in one
13661 piece.
13662
75ba10dc
JB
136632019-02-17 Joel Brobecker <brobecker@adacore.com>
13664
13665 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13666 integers and enumeration types.
13667
a2cd4f14
JB
136682019-02-17 Joel Brobecker <brobecker@adacore.com>
13669
13670 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13671 instead of lookup_symbol_in_language
13672 (do_exact_match): New function.
13673 (ada_get_symbol_name_matcher): Return do_exact_match when
13674 doing a verbatim match.
13675
485b851b
TT
136762019-02-15 Tom Tromey <tromey@adacore.com>
13677
13678 * ravenscar-thread.c (ravenscar_thread_target::resume)
13679 (ravenscar_thread_target::wait): Special case wildcard requests.
13680
0b790b1e
TT
136812019-02-15 Tom Tromey <tromey@adacore.com>
13682
13683 * ravenscar-thread.c (base_ptid): Remove.
13684 (struct ravenscar_thread_target) <close>: New method.
13685 <m_base_ptid>: New member.
13686 <update_inferior_ptid, active_task, task_is_currently_active,
13687 runtime_initialized>: Declare methods.
13688 <ravenscar_thread_target>: Add constructor.
13689 (ravenscar_thread_target::task_is_currently_active)
13690 (ravenscar_thread_target::update_inferior_ptid)
13691 (ravenscar_runtime_initialized): Rename. Now methods.
13692 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13693 (ravenscar_thread_target::update_thread_list): Update.
13694 (ravenscar_thread_target::active_task): Now method.
13695 (ravenscar_thread_target::store_registers)
13696 (ravenscar_thread_target::prepare_to_store)
13697 (ravenscar_thread_target::prepare_to_store)
13698 (ravenscar_thread_target::mourn_inferior): Update.
13699 (ravenscar_inferior_created): Use "new" to create target.
13700 (ravenscar_thread_target::get_ada_task_ptid): Update.
13701 (_initialize_ravenscar): Don't initialize base_ptid.
13702 (ravenscar_ops): Remove global.
13703
dea57a62
TT
137042019-02-15 Tom Tromey <tromey@adacore.com>
13705
13706 * target.h (push_target): Declare new overload.
13707 * target.c (push_target): New overload, taking an rvalue reference.
13708 * remote.c (remote_target::open_1): Use push_target overload.
13709 * corelow.c (core_target_open): Use push_target overload.
13710
989f3c58
TT
137112019-02-15 Tom Tromey <tromey@adacore.com>
13712
13713 * ravenscar-thread.c (is_ravenscar_task)
13714 (ravenscar_task_is_currently_active): Return bool.
13715 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13716 (_initialize_ravenscar): Remove "(void)".
13717 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13718 Return bool.
13719
6cbcc006
TT
137202019-02-15 Tom Tromey <tromey@adacore.com>
13721
13722 * ravenscar-thread.c (ravenscar_runtime_initializer)
13723 (has_ravenscar_runtime, get_running_thread_id)
13724 (ravenscar_thread_target::resume): Fix indentation.
13725
7657f14d
TT
137262019-02-15 Tom Tromey <tromey@adacore.com>
13727
13728 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13729 from ravenscar_arch_ops.
13730 (sparc_ravenscar_ops::fetch_registers)
13731 (sparc_ravenscar_ops::store_registers): Now methods.
13732 (sparc_ravenscar_prepare_to_store): Remove.
13733 (sparc_ravenscar_ops): Redefine.
13734 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13735 methods and destructor. Remove members.
13736 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13737 (ravenscar_thread_target::store_registers)
13738 (ravenscar_thread_target::prepare_to_store): Update.
13739 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13740 Remove.
13741 (struct ppc_ravenscar_powerpc_ops): Derive from
13742 ravenscar_arch_ops.
13743 (ppc_ravenscar_powerpc_ops::fetch_registers)
13744 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13745 (ppc_ravenscar_powerpc_ops): Redefine.
13746 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13747 (ppc_ravenscar_e500_ops::fetch_registers)
13748 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13749 (ppc_ravenscar_e500_ops): Redefine.
13750 * aarch64-ravenscar-thread.c
13751 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13752 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13753 (aarch64_ravenscar_fetch_registers)
13754 (aarch64_ravenscar_store_registers): Now methods.
13755 (aarch64_ravenscar_ops): Redefine.
13756
5b6ea500
TT
137572019-02-15 Tom Tromey <tromey@adacore.com>
13758
13759 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13760 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13761 (ravenscar_thread_target::stopped_by_watchpoint)
13762 (ravenscar_thread_target::stopped_data_address)
13763 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13764
e397fd39
TT
137652019-02-15 Tom Tromey <tromey@adacore.com>
13766
13767 * ravenscar-thread.c: Fix some typos.
13768
cc12f4a8
TT
137692019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13770 Tom Tromey <tromey@adacore.com>
13771
13772 * ada-lang.c (ada_exception_sal): Change addr_string to a
13773 std::string.
13774 (create_ada_exception_catchpoint): Update.
13775
5f486660
TT
137762019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13777 Tom Tromey <tromey@adacore.com>
13778
13779 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13780 (bp_location_ops): Remove.
13781 (base_breakpoint_allocate_location): Update.
13782 (free_bp_location): Update.
13783 * ada-lang.c (class ada_catchpoint_location)
13784 <ada_catchpoint_location>: Remove ops parameter.
13785 (ada_catchpoint_location_dtor): Remove.
13786 (ada_catchpoint_location_ops): Remove.
13787 (allocate_location_exception): Update.
13788 * breakpoint.h (struct bp_location_ops): Remove.
13789 (class bp_location) <bp_location>: Remove bp_location_ops
13790 parameter.
13791 <~bp_location>: Add destructor.
13792 <ops>: Remove.
13793
b671c7fb
TS
137942019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13795 Pedro Alves <palves@redhat.com>
13796
13797 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13798 'PATH_MAX'.
13799
8071c5ce
DM
138002019-02-14 David Michael <fedora.dm0@gmail.com>
13801 Samuel Thibault <samuel.thibault@gnu.org>
13802 Thomas Schwinge <thomas@codesourcery.com>
13803
13804 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13805 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13806
b1041ae0
TS
138072019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13808
924514e1
TS
13809 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13810 (check_empty): Use "const char *".
13811
c29ee8d4
TS
13812 * gnu-nat.c (gnu_nat_target::detach): Instead of
13813 'detach_inferior (pid)' call
13814 'detach_inferior (find_inferior_pid (pid))'.
13815
6c6ef69f
TS
13816 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13817 'nat/fork-inferior.o'.
13818 * gnu-nat.c: #include "nat/fork-inferior.h".
13819
2d0a338c
TS
13820 * gnu-nat.c (gnu_nat_target::detach): Instead of
13821 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13822 * gnu-nat.h: #include "inf-child.h".
13823 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13824 'i386_gnu_nat_target::fetch_registers'.
13825 (gnu_store_registers): Rename/move to
13826 'i386_gnu_nat_target::store_registers'.
13827
cabb5f06
TS
13828 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13829 * gnu-nat.h (mach_thread_info): New function.
13830 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13831
b1041ae0
TS
13832 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13833
2988d01e
KF
138342019-02-14 Frederic Konrad <konrad@adacore.com>
13835
13836 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13837
c559d709
JB
138382019-02-14 Joel Brobecker <brobecker@adacore.com>
13839
13840 * windows-nat.c (windows_add_thread): Add new parameter
13841 "main_thread_p" with default value set to false. Update
13842 function documentation as well as all callers.
13843 (windows_delete_thread): Likewise.
13844 (fake_create_process): Update call to windows_add_thread.
13845 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13846 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13847 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13848 call to windows_delete_thread.
13849
007024cc
SM
138502019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13851
13852 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13853
f62318e9
JB
138542019-02-12 John Baldwin <jhb@FreeBSD.org>
13855
13856 * symfile.c (find_separate_debug_file): Use canonical path of
13857 sysroot with child_path instead of gdb_sysroot if it is valid.
13858
cd4b7848
JB
138592019-02-12 John Baldwin <jhb@FreeBSD.org>
13860
13861 * symfile.c (find_separate_debug_file): Use child_path to
13862 determine if an object file is under a sysroot.
13863
efac4bfe
JB
138642019-02-12 John Baldwin <jhb@FreeBSD.org>
13865
13866 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13867 unittests/child-path-selftests.c.
13868 * common/pathstuff.c (child_path): New function.
13869 * common/pathstuff.h (child_path): New prototype.
13870 * unittests/child-path-selftests.c: New file.
13871
402d2bfe
JB
138722019-02-12 John Baldwin <jhb@FreeBSD.org>
13873
13874 * symfile.c (find_separate_debug_file): Look for separate debug
13875 files in debug directories under the sysroot.
13876
1ed9f74e
PW
138772019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13878
13879 * symtab.h (struct minimal_symbol data_p): New const method.
13880 (struct minimal_symbol text_p): Likewise.
13881 * symtab.c (output_source_filename): Use file name style
13882 to print file name.
13883 (print_symbol_info): Likewise.
13884 (print_msymbol_info): Use address style to print addresses.
13885 Use function name style to print executable text symbols.
13886 (expand_symtab_containing_pc): Use data_p.
13887 (find_pc_sect_compunit_symtab): Likewise.
13888
2636d81d
PW
138892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13890
13891 * breakpoint.c (describe_other_breakpoints): Use address style
13892 to print addresses.
13893 (say_where): Likewise.
13894
ac8c53cc
PW
138952019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13896
13897 * ada-typeprint.c (print_func_type): Print function name
13898 style to print function name.
13899 * c-typeprint.c (c_print_type_1): Likewise.
13900
ea638c43
AH
139012019-02-11 Alan Hayward <alan.hayward@arm.com>
13902
13903 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13904 for execve.
13905
ab759ca8
PW
139062019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13907
13908 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13909 type_stack.
13910
aff29d1c
JB
139112019-02-10 Joel Brobecker <brobecker@adacore.com>
13912
13913 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13914 TYPE_CODE_REF types.
13915
617126bc
JW
139162019-02-08 Jim Wilson <jimw@sifive.com>
13917
13918 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13919 (riscv_linux_fregset): New.
13920 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13921
46e3ed7f
TT
139222019-02-07 Tom Tromey <tom@tromey.com>
13923
13924 * thread.c (thread_cancel_execution_command): Update.
13925 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13926 methods.
13927 (struct thread_fsm_ops): Remove.
13928 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13929 (thread_fsm_should_stop, thread_fsm_return_value)
13930 (thread_fsm_set_finished, thread_fsm_finished_p)
13931 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13932 Don't declare.
13933 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13934 * infrun.c (clear_proceed_status_thread)
13935 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13936 (print_stop_event): Update.
13937 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13938 Add constructor.
13939 (step_command_fsm_ops): Remove.
13940 (new_step_command_fsm): Remove.
13941 (step_1): Update.
13942 (step_command_fsm::should_stop): Rename from
13943 step_command_fsm_should_stop.
13944 (step_command_fsm::clean_up): Rename from
13945 step_command_fsm_clean_up.
13946 (step_command_fsm::do_async_reply_reason): Rename from
13947 step_command_fsm_async_reply_reason.
13948 (struct until_next_fsm): Inherit from thread_fsm. Add
13949 constructor.
13950 (until_next_fsm_ops): Remove.
13951 (new_until_next_fsm): Remove.
13952 (until_next_fsm::should_stop): Rename from
13953 until_next_fsm_should_stop.
13954 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13955 (until_next_fsm::do_async_reply_reason): Rename from
13956 until_next_fsm_async_reply_reason.
13957 (struct finish_command_fsm): Inherit from thread_fsm. Add
13958 constructor. Change type of breakpoint.
13959 (finish_command_fsm_ops): Remove.
13960 (new_finish_command_fsm): Remove.
13961 (finish_command_fsm::should_stop): Rename from
13962 finish_command_fsm_should_stop.
13963 (finish_command_fsm::clean_up): Rename from
13964 finish_command_fsm_clean_up.
13965 (finish_command_fsm::return_value): Rename from
13966 finish_command_fsm_return_value.
13967 (finish_command_fsm::do_async_reply_reason): Rename from
13968 finish_command_fsm_async_reply_reason.
13969 (finish_command): Update.
13970 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13971 Add constructor.
13972 (call_thread_fsm_ops): Remove.
13973 (call_thread_fsm::call_thread_fsm): Rename from
13974 new_call_thread_fsm.
13975 (call_thread_fsm::should_stop): Rename from
13976 call_thread_fsm_should_stop.
13977 (call_thread_fsm::should_notify_stop): Rename from
13978 call_thread_fsm_should_notify_stop.
13979 (run_inferior_call, call_function_by_hand_dummy): Update.
13980 * cli/cli-interp.c (should_print_stop_to_console): Update.
13981 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13982 Add constructor. Change type of location_breakpoint,
13983 caller_breakpoint.
13984 (until_break_fsm_ops): Remove.
13985 (new_until_break_fsm): Remove.
13986 (until_break_fsm::should_stop): Rename from
13987 until_break_fsm_should_stop.
13988 (until_break_fsm::clean_up): Rename from
13989 until_break_fsm_clean_up.
13990 (until_break_fsm::do_async_reply_reason): Rename from
13991 until_break_fsm_async_reply_reason.
13992 (until_break_command): Update.
13993 * thread-fsm.c: Remove.
13994 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13995
1a5c2598
TT
139962019-02-07 Tom Tromey <tom@tromey.com>
13997
13998 * yy-remap.h: Add include guard.
13999 * xtensa-tdep.h: Add include guard.
14000 * xcoffread.h: Rename include guard.
14001 * varobj-iter.h: Add include guard.
14002 * tui/tui.h: Rename include guard.
14003 * tui/tui-winsource.h: Rename include guard.
14004 * tui/tui-wingeneral.h: Rename include guard.
14005 * tui/tui-windata.h: Rename include guard.
14006 * tui/tui-win.h: Rename include guard.
14007 * tui/tui-stack.h: Rename include guard.
14008 * tui/tui-source.h: Rename include guard.
14009 * tui/tui-regs.h: Rename include guard.
14010 * tui/tui-out.h: Rename include guard.
14011 * tui/tui-layout.h: Rename include guard.
14012 * tui/tui-io.h: Rename include guard.
14013 * tui/tui-hooks.h: Rename include guard.
14014 * tui/tui-file.h: Rename include guard.
14015 * tui/tui-disasm.h: Rename include guard.
14016 * tui/tui-data.h: Rename include guard.
14017 * tui/tui-command.h: Rename include guard.
14018 * tic6x-tdep.h: Add include guard.
14019 * target/waitstatus.h: Rename include guard.
14020 * target/wait.h: Rename include guard.
14021 * target/target.h: Rename include guard.
14022 * target/resume.h: Rename include guard.
14023 * target-float.h: Rename include guard.
14024 * stabsread.h: Add include guard.
14025 * rs6000-tdep.h: Add include guard.
14026 * riscv-fbsd-tdep.h: Add include guard.
14027 * regformats/regdef.h: Rename include guard.
14028 * record.h: Rename include guard.
14029 * python/python.h: Rename include guard.
14030 * python/python-internal.h: Rename include guard.
14031 * python/py-stopevent.h: Rename include guard.
14032 * python/py-ref.h: Rename include guard.
14033 * python/py-record.h: Rename include guard.
14034 * python/py-record-full.h: Rename include guard.
14035 * python/py-record-btrace.h: Rename include guard.
14036 * python/py-instruction.h: Rename include guard.
14037 * python/py-events.h: Rename include guard.
14038 * python/py-event.h: Rename include guard.
14039 * procfs.h: Add include guard.
14040 * proc-utils.h: Add include guard.
14041 * p-lang.h: Add include guard.
14042 * or1k-tdep.h: Rename include guard.
14043 * observable.h: Rename include guard.
14044 * nto-tdep.h: Rename include guard.
14045 * nat/x86-linux.h: Rename include guard.
14046 * nat/x86-linux-dregs.h: Rename include guard.
14047 * nat/x86-gcc-cpuid.h: Add include guard.
14048 * nat/x86-dregs.h: Rename include guard.
14049 * nat/x86-cpuid.h: Rename include guard.
14050 * nat/ppc-linux.h: Rename include guard.
14051 * nat/mips-linux-watch.h: Rename include guard.
14052 * nat/linux-waitpid.h: Rename include guard.
14053 * nat/linux-ptrace.h: Rename include guard.
14054 * nat/linux-procfs.h: Rename include guard.
14055 * nat/linux-osdata.h: Rename include guard.
14056 * nat/linux-nat.h: Rename include guard.
14057 * nat/linux-namespaces.h: Rename include guard.
14058 * nat/linux-btrace.h: Rename include guard.
14059 * nat/glibc_thread_db.h: Rename include guard.
14060 * nat/gdb_thread_db.h: Rename include guard.
14061 * nat/gdb_ptrace.h: Rename include guard.
14062 * nat/fork-inferior.h: Rename include guard.
14063 * nat/amd64-linux-siginfo.h: Rename include guard.
14064 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14065 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14066 * nat/aarch64-linux.h: Rename include guard.
14067 * nat/aarch64-linux-hw-point.h: Rename include guard.
14068 * mn10300-tdep.h: Add include guard.
14069 * mips-linux-tdep.h: Add include guard.
14070 * mi/mi-parse.h: Rename include guard.
14071 * mi/mi-out.h: Rename include guard.
14072 * mi/mi-main.h: Rename include guard.
14073 * mi/mi-interp.h: Rename include guard.
14074 * mi/mi-getopt.h: Rename include guard.
14075 * mi/mi-console.h: Rename include guard.
14076 * mi/mi-common.h: Rename include guard.
14077 * mi/mi-cmds.h: Rename include guard.
14078 * mi/mi-cmd-break.h: Rename include guard.
14079 * m2-lang.h: Add include guard.
14080 * location.h: Rename include guard.
14081 * linux-record.h: Rename include guard.
14082 * linux-nat.h: Add include guard.
14083 * linux-fork.h: Add include guard.
14084 * i386-darwin-tdep.h: Rename include guard.
14085 * hppa-linux-offsets.h: Add include guard.
14086 * guile/guile.h: Rename include guard.
14087 * guile/guile-internal.h: Rename include guard.
14088 * gnu-nat.h: Rename include guard.
14089 * gdb-stabs.h: Rename include guard.
14090 * frv-tdep.h: Add include guard.
14091 * f-lang.h: Add include guard.
14092 * event-loop.h: Add include guard.
14093 * darwin-nat.h: Rename include guard.
14094 * cp-abi.h: Rename include guard.
14095 * config/sparc/nm-sol2.h: Rename include guard.
14096 * config/nm-nto.h: Rename include guard.
14097 * config/nm-linux.h: Add include guard.
14098 * config/i386/nm-i386gnu.h: Rename include guard.
14099 * config/djgpp/nl_types.h: Rename include guard.
14100 * config/djgpp/langinfo.h: Rename include guard.
14101 * compile/gcc-cp-plugin.h: Add include guard.
14102 * compile/gcc-c-plugin.h: Add include guard.
14103 * compile/compile.h: Rename include guard.
14104 * compile/compile-object-run.h: Rename include guard.
14105 * compile/compile-object-load.h: Rename include guard.
14106 * compile/compile-internal.h: Rename include guard.
14107 * compile/compile-cplus.h: Rename include guard.
14108 * compile/compile-c.h: Rename include guard.
14109 * common/xml-utils.h: Rename include guard.
14110 * common/x86-xstate.h: Rename include guard.
14111 * common/version.h: Rename include guard.
14112 * common/vec.h: Rename include guard.
14113 * common/tdesc.h: Rename include guard.
14114 * common/selftest.h: Rename include guard.
14115 * common/scoped_restore.h: Rename include guard.
14116 * common/scoped_mmap.h: Rename include guard.
14117 * common/scoped_fd.h: Rename include guard.
14118 * common/safe-iterator.h: Rename include guard.
14119 * common/run-time-clock.h: Rename include guard.
14120 * common/refcounted-object.h: Rename include guard.
14121 * common/queue.h: Rename include guard.
14122 * common/ptid.h: Rename include guard.
14123 * common/print-utils.h: Rename include guard.
14124 * common/preprocessor.h: Rename include guard.
14125 * common/pathstuff.h: Rename include guard.
14126 * common/observable.h: Rename include guard.
14127 * common/netstuff.h: Rename include guard.
14128 * common/job-control.h: Rename include guard.
14129 * common/host-defs.h: Rename include guard.
14130 * common/gdb_wait.h: Rename include guard.
14131 * common/gdb_vecs.h: Rename include guard.
14132 * common/gdb_unlinker.h: Rename include guard.
14133 * common/gdb_unique_ptr.h: Rename include guard.
14134 * common/gdb_tilde_expand.h: Rename include guard.
14135 * common/gdb_sys_time.h: Rename include guard.
14136 * common/gdb_string_view.h: Rename include guard.
14137 * common/gdb_splay_tree.h: Rename include guard.
14138 * common/gdb_setjmp.h: Rename include guard.
14139 * common/gdb_ref_ptr.h: Rename include guard.
14140 * common/gdb_optional.h: Rename include guard.
14141 * common/gdb_locale.h: Rename include guard.
14142 * common/gdb_assert.h: Rename include guard.
14143 * common/filtered-iterator.h: Rename include guard.
14144 * common/filestuff.h: Rename include guard.
14145 * common/fileio.h: Rename include guard.
14146 * common/environ.h: Rename include guard.
14147 * common/common-utils.h: Rename include guard.
14148 * common/common-types.h: Rename include guard.
14149 * common/common-regcache.h: Rename include guard.
14150 * common/common-inferior.h: Rename include guard.
14151 * common/common-gdbthread.h: Rename include guard.
14152 * common/common-exceptions.h: Rename include guard.
14153 * common/common-defs.h: Rename include guard.
14154 * common/common-debug.h: Rename include guard.
14155 * common/cleanups.h: Rename include guard.
14156 * common/buffer.h: Rename include guard.
14157 * common/btrace-common.h: Rename include guard.
14158 * common/break-common.h: Rename include guard.
14159 * cli/cli-utils.h: Rename include guard.
14160 * cli/cli-style.h: Rename include guard.
14161 * cli/cli-setshow.h: Rename include guard.
14162 * cli/cli-script.h: Rename include guard.
14163 * cli/cli-interp.h: Rename include guard.
14164 * cli/cli-decode.h: Rename include guard.
14165 * cli/cli-cmds.h: Rename include guard.
14166 * charset-list.h: Add include guard.
14167 * buildsym-legacy.h: Rename include guard.
14168 * bfin-tdep.h: Add include guard.
14169 * ax.h: Rename include guard.
14170 * arm-linux-tdep.h: Add include guard.
14171 * arm-fbsd-tdep.h: Add include guard.
14172 * arch/xtensa.h: Rename include guard.
14173 * arch/tic6x.h: Add include guard.
14174 * arch/i386.h: Add include guard.
14175 * arch/arm.h: Rename include guard.
14176 * arch/arm-linux.h: Rename include guard.
14177 * arch/arm-get-next-pcs.h: Rename include guard.
14178 * arch/amd64.h: Add include guard.
14179 * arch/aarch64-insn.h: Rename include guard.
14180 * arch-utils.h: Rename include guard.
14181 * annotate.h: Add include guard.
14182 * amd64-darwin-tdep.h: Rename include guard.
14183 * aarch64-linux-tdep.h: Add include guard.
14184 * aarch64-fbsd-tdep.h: Add include guard.
14185 * aarch32-linux-nat.h: Add include guard.
14186
ab9268d2
PW
141872019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14188
14189 * macrotab.c (macro_define_internal): New function that
14190 factorizes macro_define_object_internal and macro_define_function
14191 code.
14192 (macro_define_object_internal): Use macro_define_internal.
14193 (macro_define_function): Likewise.
14194
bb0da2b4
PW
141952019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14196
14197 * macrocmd.c (extract_identifier): Return
14198 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14199 callers.
14200
424eb552
JB
142012019-02-06 John Baldwin <jhb@FreeBSD.org>
14202
14203 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14204
1688cb29
TT
142052019-02-05 Tom Tromey <tom@tromey.com>
14206
14207 * target.c (target_stack::unpush): Move assertion earlier.
14208
b5eba2d8
TT
142092019-01-30 Tom Tromey <tom@tromey.com>
14210
14211 PR python/23615:
14212 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14213 (gdbpy_parse_and_eval): Likewise.
14214 * python/python-internal.h (gdbpy_allow_threads): New class.
14215
7054e2ff
JB
142162019-01-28 John Baldwin <jhb@FreeBSD.org>
14217
14218 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14219 (aarch64_fbsd_fpregmap): Move earlier.
14220 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14221 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14222 instead of individual calls to trad_frame_set_reg_addr.
14223 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14224 earlier.
14225 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14226 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14227 instead of individual calls to trad_frame_set_reg_addr.
14228
36c25ffa
AH
142292019-01-28 Alan Hayward <alan.hayward@arm.com>
14230
14231 * CONTRIBUTE: Replace contribution list with wiki link.
14232
a0707f3c
TT
142332019-01-25 Tom Tromey <tom@tromey.com>
14234
14235 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14236
0747795c
TT
142372019-01-25 Tom Tromey <tom@tromey.com>
14238
14239 * xtensa-linux-nat.c: Fix common/ includes.
14240 * xml-support.h: Fix common/ includes.
14241 * xml-support.c: Fix common/ includes.
14242 * x86-linux-nat.c: Fix common/ includes.
14243 * windows-nat.c: Fix common/ includes.
14244 * varobj.h: Fix common/ includes.
14245 * varobj.c: Fix common/ includes.
14246 * value.c: Fix common/ includes.
14247 * valops.c: Fix common/ includes.
14248 * utils.c: Fix common/ includes.
14249 * unittests/xml-utils-selftests.c: Fix common/ includes.
14250 * unittests/utils-selftests.c: Fix common/ includes.
14251 * unittests/unpack-selftests.c: Fix common/ includes.
14252 * unittests/tracepoint-selftests.c: Fix common/ includes.
14253 * unittests/style-selftests.c: Fix common/ includes.
14254 * unittests/string_view-selftests.c: Fix common/ includes.
14255 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14256 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14257 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14258 * unittests/rsp-low-selftests.c: Fix common/ includes.
14259 * unittests/parse-connection-spec-selftests.c: Fix common/
14260 includes.
14261 * unittests/optional-selftests.c: Fix common/ includes.
14262 * unittests/offset-type-selftests.c: Fix common/ includes.
14263 * unittests/observable-selftests.c: Fix common/ includes.
14264 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14265 * unittests/memrange-selftests.c: Fix common/ includes.
14266 * unittests/memory-map-selftests.c: Fix common/ includes.
14267 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14268 * unittests/function-view-selftests.c: Fix common/ includes.
14269 * unittests/environ-selftests.c: Fix common/ includes.
14270 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14271 * unittests/common-utils-selftests.c: Fix common/ includes.
14272 * unittests/cli-utils-selftests.c: Fix common/ includes.
14273 * unittests/array-view-selftests.c: Fix common/ includes.
14274 * ui-file.c: Fix common/ includes.
14275 * tui/tui-io.c: Fix common/ includes.
14276 * tracepoint.h: Fix common/ includes.
14277 * tracepoint.c: Fix common/ includes.
14278 * tracefile-tfile.c: Fix common/ includes.
14279 * top.h: Fix common/ includes.
14280 * top.c: Fix common/ includes.
14281 * thread.c: Fix common/ includes.
14282 * target/waitstatus.h: Fix common/ includes.
14283 * target/waitstatus.c: Fix common/ includes.
14284 * target.h: Fix common/ includes.
14285 * target.c: Fix common/ includes.
14286 * target-memory.c: Fix common/ includes.
14287 * target-descriptions.c: Fix common/ includes.
14288 * symtab.h: Fix common/ includes.
14289 * symfile.c: Fix common/ includes.
14290 * stap-probe.c: Fix common/ includes.
14291 * spu-linux-nat.c: Fix common/ includes.
14292 * sparc-nat.c: Fix common/ includes.
14293 * source.c: Fix common/ includes.
14294 * solib.c: Fix common/ includes.
14295 * solib-target.c: Fix common/ includes.
14296 * ser-unix.c: Fix common/ includes.
14297 * ser-tcp.c: Fix common/ includes.
14298 * ser-pipe.c: Fix common/ includes.
14299 * ser-base.c: Fix common/ includes.
14300 * selftest-arch.c: Fix common/ includes.
14301 * s12z-tdep.c: Fix common/ includes.
14302 * rust-exp.y: Fix common/ includes.
14303 * rs6000-aix-tdep.c: Fix common/ includes.
14304 * riscv-tdep.c: Fix common/ includes.
14305 * remote.c: Fix common/ includes.
14306 * remote-notif.h: Fix common/ includes.
14307 * remote-fileio.h: Fix common/ includes.
14308 * remote-fileio.c: Fix common/ includes.
14309 * regcache.h: Fix common/ includes.
14310 * regcache.c: Fix common/ includes.
14311 * record-btrace.c: Fix common/ includes.
14312 * python/python.c: Fix common/ includes.
14313 * python/py-type.c: Fix common/ includes.
14314 * python/py-inferior.c: Fix common/ includes.
14315 * progspace.h: Fix common/ includes.
14316 * producer.c: Fix common/ includes.
14317 * procfs.c: Fix common/ includes.
14318 * proc-api.c: Fix common/ includes.
14319 * printcmd.c: Fix common/ includes.
14320 * ppc-linux-nat.c: Fix common/ includes.
14321 * parser-defs.h: Fix common/ includes.
14322 * osdata.c: Fix common/ includes.
14323 * obsd-nat.c: Fix common/ includes.
14324 * nat/x86-linux.c: Fix common/ includes.
14325 * nat/x86-linux-dregs.c: Fix common/ includes.
14326 * nat/x86-dregs.h: Fix common/ includes.
14327 * nat/x86-dregs.c: Fix common/ includes.
14328 * nat/ppc-linux.c: Fix common/ includes.
14329 * nat/mips-linux-watch.h: Fix common/ includes.
14330 * nat/mips-linux-watch.c: Fix common/ includes.
14331 * nat/linux-waitpid.c: Fix common/ includes.
14332 * nat/linux-ptrace.h: Fix common/ includes.
14333 * nat/linux-ptrace.c: Fix common/ includes.
14334 * nat/linux-procfs.c: Fix common/ includes.
14335 * nat/linux-personality.c: Fix common/ includes.
14336 * nat/linux-osdata.c: Fix common/ includes.
14337 * nat/linux-namespaces.c: Fix common/ includes.
14338 * nat/linux-btrace.h: Fix common/ includes.
14339 * nat/linux-btrace.c: Fix common/ includes.
14340 * nat/fork-inferior.c: Fix common/ includes.
14341 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14342 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14343 * nat/aarch64-linux.c: Fix common/ includes.
14344 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14345 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14346 * namespace.h: Fix common/ includes.
14347 * mips-linux-tdep.c: Fix common/ includes.
14348 * minsyms.c: Fix common/ includes.
14349 * mi/mi-parse.h: Fix common/ includes.
14350 * mi/mi-main.c: Fix common/ includes.
14351 * mi/mi-cmd-env.c: Fix common/ includes.
14352 * memrange.h: Fix common/ includes.
14353 * memattr.c: Fix common/ includes.
14354 * maint.h: Fix common/ includes.
14355 * maint.c: Fix common/ includes.
14356 * main.c: Fix common/ includes.
14357 * machoread.c: Fix common/ includes.
14358 * location.c: Fix common/ includes.
14359 * linux-thread-db.c: Fix common/ includes.
14360 * linux-nat.c: Fix common/ includes.
14361 * linux-fork.c: Fix common/ includes.
14362 * inline-frame.c: Fix common/ includes.
14363 * infrun.c: Fix common/ includes.
14364 * inflow.c: Fix common/ includes.
14365 * inferior.h: Fix common/ includes.
14366 * inferior.c: Fix common/ includes.
14367 * infcmd.c: Fix common/ includes.
14368 * inf-ptrace.c: Fix common/ includes.
14369 * inf-child.c: Fix common/ includes.
14370 * ia64-linux-nat.c: Fix common/ includes.
14371 * i387-tdep.c: Fix common/ includes.
14372 * i386-tdep.c: Fix common/ includes.
14373 * i386-linux-tdep.c: Fix common/ includes.
14374 * i386-linux-nat.c: Fix common/ includes.
14375 * i386-go32-tdep.c: Fix common/ includes.
14376 * i386-fbsd-tdep.c: Fix common/ includes.
14377 * i386-fbsd-nat.c: Fix common/ includes.
14378 * guile/scm-type.c: Fix common/ includes.
14379 * guile/guile.c: Fix common/ includes.
14380 * go32-nat.c: Fix common/ includes.
14381 * gnu-nat.c: Fix common/ includes.
14382 * gdbthread.h: Fix common/ includes.
14383 * gdbarch-selftests.c: Fix common/ includes.
14384 * gdb_usleep.c: Fix common/ includes.
14385 * gdb_select.h: Fix common/ includes.
14386 * gdb_bfd.c: Fix common/ includes.
14387 * gcore.c: Fix common/ includes.
14388 * fork-child.c: Fix common/ includes.
14389 * findvar.c: Fix common/ includes.
14390 * fbsd-nat.c: Fix common/ includes.
14391 * event-top.c: Fix common/ includes.
14392 * event-loop.c: Fix common/ includes.
14393 * dwarf2read.c: Fix common/ includes.
14394 * dwarf2loc.c: Fix common/ includes.
14395 * dwarf2-frame.c: Fix common/ includes.
14396 * dwarf-index-cache.c: Fix common/ includes.
14397 * dtrace-probe.c: Fix common/ includes.
14398 * disasm-selftests.c: Fix common/ includes.
14399 * defs.h: Fix common/ includes.
14400 * csky-tdep.c: Fix common/ includes.
14401 * cp-valprint.c: Fix common/ includes.
14402 * cp-support.h: Fix common/ includes.
14403 * cp-support.c: Fix common/ includes.
14404 * corelow.c: Fix common/ includes.
14405 * completer.h: Fix common/ includes.
14406 * completer.c: Fix common/ includes.
14407 * compile/compile.c: Fix common/ includes.
14408 * compile/compile-loc2c.c: Fix common/ includes.
14409 * compile/compile-cplus-types.c: Fix common/ includes.
14410 * compile/compile-cplus-symbols.c: Fix common/ includes.
14411 * command.h: Fix common/ includes.
14412 * cli/cli-dump.c: Fix common/ includes.
14413 * cli/cli-cmds.c: Fix common/ includes.
14414 * charset.c: Fix common/ includes.
14415 * build-id.c: Fix common/ includes.
14416 * btrace.h: Fix common/ includes.
14417 * btrace.c: Fix common/ includes.
14418 * breakpoint.h: Fix common/ includes.
14419 * breakpoint.c: Fix common/ includes.
14420 * ax.h:
14421 (enum agent_op): Fix common/ includes.
14422 * ax-general.c (struct aop_map): Fix common/ includes.
14423 * ax-gdb.c: Fix common/ includes.
14424 * auxv.c: Fix common/ includes.
14425 * auto-load.c: Fix common/ includes.
14426 * arm-tdep.c: Fix common/ includes.
14427 * arch/riscv.c: Fix common/ includes.
14428 * arch/ppc-linux-common.c: Fix common/ includes.
14429 * arch/i386.c: Fix common/ includes.
14430 * arch/arm.c: Fix common/ includes.
14431 * arch/arm-linux.c: Fix common/ includes.
14432 * arch/arm-get-next-pcs.c: Fix common/ includes.
14433 * arch/amd64.c: Fix common/ includes.
14434 * arch/aarch64.c: Fix common/ includes.
14435 * arch/aarch64-insn.c: Fix common/ includes.
14436 * arch-utils.c: Fix common/ includes.
14437 * amd64-windows-tdep.c: Fix common/ includes.
14438 * amd64-tdep.c: Fix common/ includes.
14439 * amd64-sol2-tdep.c: Fix common/ includes.
14440 * amd64-obsd-tdep.c: Fix common/ includes.
14441 * amd64-nbsd-tdep.c: Fix common/ includes.
14442 * amd64-linux-tdep.c: Fix common/ includes.
14443 * amd64-linux-nat.c: Fix common/ includes.
14444 * amd64-fbsd-tdep.c: Fix common/ includes.
14445 * amd64-fbsd-nat.c: Fix common/ includes.
14446 * amd64-dicos-tdep.c: Fix common/ includes.
14447 * amd64-darwin-tdep.c: Fix common/ includes.
14448 * agent.c: Fix common/ includes.
14449 * ada-lang.h: Fix common/ includes.
14450 * ada-lang.c: Fix common/ includes.
14451 * aarch64-tdep.c: Fix common/ includes.
14452
2f5c153e
TT
144532019-01-25 Tom Tromey <tom@tromey.com>
14454
14455 * common/create-version.sh: Use common/version.h.
14456
adc6a863
PA
144572019-01-24 Pedro Alves <palves@redhat.com>
14458
14459 * infrun.c (signal_stop, signal_print, signal_program)
14460 (signal_catch, signal_pass): Now arrays instead of pointers.
14461 (update_signals_program_target, do_target_resume)
14462 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14463 * linux-nat.c (linux_nat_target::pass_signals)
14464 (linux_nat_target::create_inferior, linux_nat_target::attach):
14465 Adjust.
14466 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14467 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14468 * procfs.c (procfs_target::pass_signals): Adjust.
14469 * record-full.c (record_full_target::resume): Adjust.
14470 * remote.c (remote_target::pass_signals)
14471 (remote_target::program_signals): Adjust.
14472 * target-debug.h (target_debug_print_signals): Now takes a
14473 gdb::array_view as parameter. Adjust.
14474 * target.h (target_ops) <pass_signals, program_signals>: Replace
14475 pointer and length parameters with gdb::array_view.
14476 (target_pass_signals, target_program_signals): Likewise.
14477 * target-delegates.c: Regenerate.
14478
3046d67a
PA
144792019-01-24 Pedro Alves <palves@redhat.com>
14480
14481 * common/forward-scope-exit.h
14482 (forward_scope_exit::forward_scope_exit): Pass arguments to
14483 m_bind_function directly, instead of creating a std::bind and
14484 copying that.
14485
353229bf
AH
144862019-01-24 Alan Hayward <alan.hayward@arm.com>
14487
14488 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14489 for static members.
14490 (pass_in_v_vfp_candidate): Likewise.
14491
311dc83a
TT
144922019-01-23 Tom Tromey <tom@tromey.com>
14493 Pedro Alves <palves@redhat.com>
14494
14495 * regcache.c (class regcache_invalidator): Remove.
14496 (regcache::raw_write): Use make_scope_exit.
14497
296bd123
TT
144982019-01-23 Tom Tromey <tom@tromey.com>
14499
14500 * ui-out.h (class ui_out_emit_type): Update comment.
14501
979a0d13
TT
145022019-01-23 Tom Tromey <tom@tromey.com>
14503
14504 * infrun.c (fetch_inferior_event): Update comment.
14505
d238133d
TT
145062019-01-23 Tom Tromey <tom@tromey.com>
14507 Pedro Alves <palves@redhat.com>
14508
14509 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14510 parameter.
14511 (fetch_inferior_event): Use SCOPE_EXIT.
14512
14513
9885e6bb
TT
145142019-01-23 Tom Tromey <tom@tromey.com>
14515 Pedro Alves <palves@redhat.com>
14516
14517 * infrun.c (disable_thread_events): Delete.
14518 (stop_all_threads): Use SCOPE_EXIT.
14519
286526c1
TT
145202019-01-23 Tom Tromey <tom@tromey.com>
14521 Pedro Alves <palves@redhat.com>
14522
14523 * symfile.c: Include forward-scope-exit.h.
14524 (clear_symtab_users_cleanup): Replace forward declaration with
14525 a FORWARD_SCOPE_EXIT.
14526 (syms_from_objfile_1): Use the forward_scope_exit and
14527 gdb::optional instead of cleanup_function.
14528 (reread_symbols): Use the forward_scope_exit instead of
14529 cleanup_function.
14530 (clear_symtab_users_cleanup): Remove function.
14531
1db93f14
TT
145322019-01-23 Tom Tromey <tom@tromey.com>
14533 Pedro Alves <palves@redhat.com>
14534
14535 * linux-nat.c: Include scope-exit.h.
14536 (cleanup_target_stop): Remove.
14537 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14538 SCOPE_EXIT.
14539
2cc83d1e
TT
145402019-01-23 Tom Tromey <tom@tromey.com>
14541 Pedro Alves <palves@redhat.com>
14542
14543 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14544 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14545
694c6bf5
TT
145462019-01-23 Tom Tromey <tom@tromey.com>
14547 Andrew Burgess <andrew.burgess@embecosm.com>
14548 Pedro Alves <palves@redhat.com>
14549
14550 * infrun.c (fetch_inferior_event): Use scope_exit.
14551 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14552 * top.c (execute_command): Use scope_exit.
14553 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14554 * utils.c (do_bpstat_clear_actions_cleanup)
14555 (make_bpstat_clear_actions_cleanup): Remove.
14556
4c41382a
TT
145572019-01-23 Tom Tromey <tom@tromey.com>
14558 Pedro Alves <palves@redhat.com>
14559
14560 * infrun.c: Include "common/scope-exit.h"
14561 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14562 (wait_for_inferior): Use SCOPE_EXIT.
14563 (fetch_inferior_event): Use scope_exit.
14564
89f8fb50
TT
145652019-01-23 Tom Tromey <tom@tromey.com>
14566 Pedro Alves <palves@redhat.com>
14567
14568 * breakpoint.c (create_breakpoint): Remove cleanup.
14569
5419bdae
TT
145702019-01-23 Tom Tromey <tom@tromey.com>
14571 Andrew Burgess <andrew.burgess@embecosm.com>
14572 Pedro Alves <palves@redhat.com>
14573
e587ef42
PA
145742019-01-23 Pedro Alves <palves@redhat.com>
14575
14576 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14577
77f0e74c
PA
145782019-01-23 Pedro Alves <palves@redhat.com>
14579 Andrew Burgess <andrew.burgess@embecosm.com>
14580
14581 * gdbthread.h: Include "common/forward-scope-exit.h".
14582 (scoped_finish_thread_state): Redefine custom class in terms of
14583 forward_scope_exit.
14584
5b9b3e53
PA
145852019-01-23 Pedro Alves <palves@redhat.com>
14586 Andrew Burgess <andrew.burgess@embecosm.com>
14587
14588 * common/forward-scope-exit.h: New file.
14589
54b65c9b
PA
145902019-01-23 Pedro Alves <palves@redhat.com>
14591 Andrew Burgess <andrew.burgess@embecosm.com>
14592 Tom Tromey <tom@tromey.com>
14593
14594 * common/scope-exit.h: New file.
14595
cf08fb29
PA
145962019-01-23 Pedro Alves <palves@redhat.com>
14597
14598 * common/preprocessor.h (ESC): Rename to ...
14599 (ESC_PARENS): ... this.
14600 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14601 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14602
ae73e2e2
TT
146032019-01-23 Tom Tromey <tom@tromey.com>
14604
14605 * language.h (class scoped_switch_to_sym_language_if_auto):
14606 Initialize m_lang in both cases.
14607
6594e122
AH
146082019-01-23 Alan Hayward <alan.hayward@arm.com>
14609
14610 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14611 with XCNEW.
14612
a7c9855d
TT
146132019-01-22 Tom Tromey <tom@tromey.com>
14614
14615 * corelow.c: Do not include sys/file.h.
14616
93cc1d53
TT
146172019-01-22 Tom Tromey <tom@tromey.com>
14618
14619 * tui/tui-wingeneral.h: Include gdb_curses.h.
14620
38561778
TT
146212019-01-22 Tom Tromey <tom@tromey.com>
14622
14623 * source-cache.h (class source_cache) <get_source_lines,
14624 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14625
37b3ab5b
TT
146262019-01-22 Tom Tromey <tom@tromey.com>
14627
14628 * remote-fileio.h (struct remote_target): Declare.
14629
3fabc016
TT
146302019-01-22 Tom Tromey <tom@tromey.com>
14631
14632 * python/py-arch.c: Do not include py-ref.h.
14633 * python/py-bpevent.c: Do not include py-ref.h.
14634 * python/py-cmd.c: Do not include py-ref.h.
14635 * python/py-continueevent.c: Do not include py-ref.h.
14636 * python/py-event.h: Do not include py-ref.h.
14637 * python/py-evtregistry.c: Do not include py-ref.h.
14638 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14639 * python/py-frame.c: Do not include py-ref.h.
14640 * python/py-framefilter.c: Do not include py-ref.h.
14641 * python/py-function.c: Do not include py-ref.h.
14642 * python/py-infevents.c: Do not include py-ref.h.
14643 * python/py-linetable.c: Do not include py-ref.h.
14644 * python/py-objfile.c: Do not include py-ref.h.
14645 * python/py-param.c: Do not include py-ref.h.
14646 * python/py-prettyprint.c: Do not include py-ref.h.
14647 * python/py-progspace.c: Do not include py-ref.h.
14648 * python/py-symbol.c: Do not include py-ref.h.
14649 * python/py-symtab.c: Do not include py-ref.h.
14650 * python/py-type.c: Do not include py-ref.h.
14651 * python/py-unwind.c: Do not include py-ref.h.
14652 * python/py-utils.c: Do not include py-ref.h.
14653 * python/py-value.c: Do not include py-ref.h.
14654 * python/py-varobj.c: Do not include py-ref.h.
14655 * python/py-xmethods.c: Do not include py-ref.h.
14656 * python/python.c: Do not include py-ref.h.
14657 * varobj.c: Do not include py-ref.h.
14658
6b4d7774
TT
146592019-01-22 Tom Tromey <tom@tromey.com>
14660
14661 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14662 keyword for bcache.
14663
7af7e9b5
TT
146642019-01-22 Tom Tromey <tom@tromey.com>
14665
14666 * compile/compile-cplus-types.c: Remove a comment by #include.
14667
951d1049
TT
146682019-01-22 Tom Tromey <tom@tromey.com>
14669
14670 * compile/gcc-c-plugin.h: Include compile-internal.h.
14671
d65d5705
TT
146722019-01-22 Tom Tromey <tom@tromey.com>
14673
14674 * stabsread.c (EXTERN): Do not define.
14675 (symnum, next_symbol_text_func, processing_gcc_compilation)
14676 (within_function, global_sym_chain, global_stabs)
14677 (previous_stab_code, this_object_header_files)
14678 (n_this_object_header_files)
14679 (n_allocated_this_object_header_files): Define.
14680 * stabsread.h (EXTERN): Never define. Use "extern".
14681
b6fb1ee5
PW
146822019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14683
14684 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14685 history_value.
14686
be6d4f74
TT
146872019-01-21 Tom Tromey <tom@tromey.com>
14688
14689 * ui-out.c: Fix includes.
14690 * tui/tui-source.c: Fix includes.
14691 * target.c: Fix includes.
14692 * remote.c: Fix includes.
14693 * regcache.c: Fix includes.
14694 * python/py-block.c: Fix includes.
14695 * printcmd.c: Fix includes.
14696 * or1k-tdep.c: Fix includes.
14697 * mi/mi-main.c: Fix includes.
14698 * m32r-tdep.c: Fix includes.
14699 * csky-tdep.c: Fix includes.
14700 * compile/compile-cplus-types.c: Fix includes.
14701 * cli/cli-interp.c: Fix includes.
14702
73021deb
AH
147032019-01-21 Alan Hayward <alan.hayward@arm.com>
14704
14705 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14706 for padding.
14707
7932255d
TT
147082019-01-16 Tom Tromey <tom@tromey.com>
14709
14710 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14711 earlier.
14712 (struct objfile) <msymbols_range>: Move from top level.
14713 <msymbols>: New method.
14714 (class objfile_msymbols): Remove.
14715 * symtab.c (default_collect_symbol_completion_matches_break_on):
14716 Update.
14717 * symmisc.c (dump_msymbols): Update.
14718 * stabsread.c (scan_file_globals): Update.
14719 * objc-lang.c (info_selectors_command, info_classes_command)
14720 (find_methods): Update.
14721 * minsyms.c (find_solib_trampoline_target): Update.
14722 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14723 * coffread.c (coff_symfile_read): Update.
14724 * ada-lang.c (ada_lookup_simple_minsym)
14725 (ada_collect_symbol_completion_matches): Update.
14726
604b1bfb
TT
147272019-01-16 Tom Tromey <tom@tromey.com>
14728
14729 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14730 type. Remove no-argument constructor.
14731 <iterator::operator++>: Simplify.
14732 <begin>: Update.
14733 <end>: Use minimal_symbol_count.
14734
f252c6d5
TT
147352019-01-16 Tom Tromey <tom@tromey.com>
14736
14737 * objfiles.h (struct objfile) <psymtabs>: New method.
14738 (class objfile_psymtabs): Remove.
14739 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14740 typedef.
14741 <range>: New method.
14742 (require_partial_symbols): Change return type.
14743 * psymtab.c (require_partial_symbols)
14744 (psym_expand_symtabs_matching): Update.
14745 * mdebugread.c (parse_partial_symbols): Update.
14746 * dbxread.c (dbx_end_psymtab): Update.
14747
b669c953
TT
147482019-01-15 Tom Tromey <tom@tromey.com>
14749
14750 * symtab.c (lookup_objfile_from_block)
14751 (lookup_symbol_in_objfile_symtabs)
14752 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14753 (find_line_symtab, info_sources_command)
14754 (default_collect_symbol_completion_matches_break_on)
14755 (make_source_files_completion_list): Update.
14756 * symmisc.c (print_objfile_statistics, dump_objfile)
14757 (maintenance_print_symbols, maintenance_info_symtabs)
14758 (maintenance_check_symtabs, maintenance_info_line_tables):
14759 Update.
14760 * source.c (select_source_symtab)
14761 (forget_cached_source_info_for_objfile): Update.
14762 * objfiles.h (class objfile_compunits): Remove.
14763 (struct objfile) <compunits_range>: New typedef.
14764 (compunits): New method.
14765 * objfiles.c (objfile_relocate1): Update.
14766 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14767 * maint.c (count_symtabs_and_blocks): Update.
14768 * linespec.c (iterate_over_all_matching_symtabs): Update.
14769 * cp-support.c (add_symbol_overload_list_qualified): Update.
14770 * coffread.c (coff_symtab_read): Update.
14771 * ada-lang.c (add_nonlocal_symbols)
14772 (ada_collect_symbol_completion_matches)
14773 (ada_add_global_exceptions): Update.
14774
7e955d83
TT
147752019-01-15 Tom Tromey <tom@tromey.com>
14776
14777 * progspace.h (program_space) <objfiles_safe_range>: New
14778 typedef.
14779 <objfiles_safe>: New method.
14780 * objfiles.h (class all_objfiles_safe): Remove.
14781 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14782 * jit.c (jit_inferior_exit_hook): Update.
14783
2030c079
TT
147842019-01-17 Tom Tromey <tom@tromey.com>
14785
14786 * progspace.h (program_space) <objfiles_range>: New typedef.
14787 <objfiles>: New method.
14788 <objfiles_head>: Rename from objfiles.
14789 (object_files): Update.
14790 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14791 * guile/scm-pretty-print.c
14792 (ppscm_find_pretty_printer_from_objfiles): Update.
14793 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14794 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14795 Update.
14796 * python/py-progspace.c (pspy_get_objfiles): Update.
14797 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14798 Update.
14799 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14800 (objfpy_lookup_objfile_by_build_id): Update.
14801 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14802 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14803 Update.
14804 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14805 (expand_symtab_containing_pc, lookup_objfile_from_block)
14806 (lookup_static_symbol, basic_lookup_transparent_type)
14807 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14808 (find_line_symtab, info_sources_command)
14809 (default_collect_symbol_completion_matches_break_on)
14810 (make_source_files_completion_list, find_main_name): Update.
14811 * symmisc.c (print_symbol_bcache_statistics)
14812 (print_objfile_statistics, maintenance_print_symbols)
14813 (maintenance_print_msymbols, maintenance_print_objfiles)
14814 (maintenance_info_symtabs, maintenance_check_symtabs)
14815 (maintenance_expand_symtabs, maintenance_info_line_tables):
14816 Update.
14817 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14818 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14819 (map_overlay_command, unmap_overlay_command)
14820 (simple_overlay_update, expand_symtabs_matching)
14821 (map_symbol_filenames): Update.
14822 * symfile-debug.c (set_debug_symfile): Update.
14823 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14824 Update.
14825 * source.c (select_source_symtab, forget_cached_source_info):
14826 Update.
14827 * solib.c (solib_read_symbols): Update.
14828 * solib-spu.c (append_ocl_sos): Update.
14829 * psymtab.c (maintenance_print_psymbols)
14830 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14831 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14832 * printcmd.c (info_symbol_command): Update.
14833 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14834 Update.
14835 * objfiles.h (class all_objfiles): Remove.
14836 * objfiles.c (have_partial_symbols, have_full_symbols)
14837 (have_minimal_symbols, qsort_cmp, update_section_map)
14838 (shared_objfile_contains_address_p)
14839 (default_iterate_over_objfiles_in_search_order): Update.
14840 * objc-lang.c (info_selectors_command, info_classes_command)
14841 (find_methods): Update.
14842 * minsyms.c (find_solib_trampoline_target): Update.
14843 * maint.c (maintenance_info_sections)
14844 (maintenance_translate_address, count_symtabs_and_blocks):
14845 Update.
14846 * main.c (captured_main_1): Update.
14847 * linux-thread-db.c (try_thread_db_load_from_pdir)
14848 (has_libpthread): Update.
14849 * linespec.c (iterate_over_all_matching_symtabs)
14850 (search_minsyms_for_name): Update.
14851 * jit.c (jit_find_objf_with_entry_addr): Update.
14852 * hppa-tdep.c (find_unwind_entry)
14853 (hppa_lookup_stub_minimal_symbol): Update.
14854 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14855 Update.
14856 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14857 (elf_gnu_ifunc_resolve_by_got): Update.
14858 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14859 * dwarf-index-write.c (save_gdb_index_command): Update.
14860 * cp-support.c (add_symbol_overload_list_qualified): Update.
14861 * breakpoint.c (create_overlay_event_breakpoint)
14862 (create_longjmp_master_breakpoint)
14863 (create_std_terminate_master_breakpoint)
14864 (create_exception_master_breakpoint): Update.
14865 * blockframe.c (find_pc_partial_function): Update.
14866 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14867 (ada_collect_symbol_completion_matches)
14868 (ada_add_global_exceptions): Update.
14869
776489e0
TT
148702019-01-17 Tom Tromey <tom@tromey.com>
14871
14872 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14873 declare VEC.
14874 (solib_target_parse_libraries): Change return type.
14875 (library_list_start_segment, library_list_start_section)
14876 (library_list_end_library, library_list_start_library); Update.
14877 (solib_target_free_library_list): Remove.
14878 (solib_target_parse_libraries): Remove cleanup. Change return
14879 type.
14880 (solib_target_current_sos): Update.
14881
6471e7d2
TT
148822019-01-17 Tom Tromey <tromey@bapiya>
14883
14884 * valprint.c: Replace "the the" with "the".
14885 * symtab.c: Replace "the the" with "the".
14886 * solib.c: Replace "the the" with "the".
14887 * solib-dsbt.c: Replace "the the" with "the".
14888 * linespec.c: Replace "the the" with "the".
14889 * dwarf2loc.h: Replace "the the" with "the".
14890 * amd64-windows-tdep.c: Replace "the the" with "the".
14891 * aarch64-tdep.c: Replace "the the" with "the".
14892
c24bdb02
KS
148932019-01-16 Keith Seitz <keiths@redhat.com>
14894
14895 PR gdb/23773
14896 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14897 <builder>: Rename to ..
14898 <m_builder>: ... this and make private.
14899 (dwarf2_cu::get_builder): New method. Change all users of
14900 `builder' to use this method.
14901 (dwarf2_start_symtab): Move to ...
14902 (dwarf2_cu::start_symtab): ... here. Update all callers
14903 (setup_type_unit_groups): Move to ...
14904 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14905 callers.
14906 (dwarf2_cu::reset_builder): New method.
14907 (process_full_compunit, process_full_type_unit): Use
14908 dwarf2_cu::reset_builder.
14909 (follow_die_offset): Record the ancestor CU if it is different
14910 from the followed DIE's CU.
14911 (follow_die_sig_1): Likewise.
14912
8d64371b
TT
149132019-01-15 Tom Tromey <tom@tromey.com>
14914
14915 * remote.c (class remote_state) <buf>: Now a char_vector.
14916 <buf_size>: Remove.
14917 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14918 parameter.
14919 (remote_target::getpkt_or_notif_sane_1)
14920 (remote_target::getpkt_sane)
14921 (remote_target::getpkt_or_notif_sane): Likewise.
14922 (class remote_target) <putpkt>: New overload.
14923 (remote_target::read_frame): Change type of "buf_p". Remove
14924 sizeof_p parameter.
14925 (packet_ok): New overload.
14926 (packet_check_result): New overload.
14927 Update all uses.
14928
bb277751
TT
149292019-01-14 Tom Tromey <tom@tromey.com>
14930
14931 * remote-notif.c (handle_notification, remote_notif_ack)
14932 (remote_notif_parse): Make "buf" const.
14933 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14934 const.
14935 (remote_notif_parse, remote_notif_ack, handle_notification):
14936 Likewise.
14937 * remote.c (remote_notif_stop_parse): Make "buf" const.
14938 (remote_target::remote_parse_stop_reply): Make "buf" const.
14939 (remote_notif_stop_ack): Make "buf" const.
14940
05be00a8
TT
149412019-01-14 Tom Tromey <tom@tromey.com>
14942
14943 * remote.c (remote_console_output): Make parameter const.
14944
491adeca
TT
149452019-01-14 Tom Tromey <tom@tromey.com>
14946
14947 * target-debug.h (target_debug_print_signals): Constify.
14948 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14949 * procfs.c (procfs_target::pass_signals): Update.
14950 * linux-nat.c (linux_nat_target::pass_signals): Update.
14951 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14952 * target-delegates.c: Rebuild.
14953 * remote.c (remote_target::program_signals): Update.
14954 (remote_target::pass_signals): Update.
14955 * target.c (target_pass_signals): Constify argument.
14956 (target_program_signals): Likewise.
14957 * target.h (struct target_ops) <pass_signals, program_signals>:
14958 Constify argument.
14959 (target_pass_signals, target_program_signals): Constify argument.
14960
bbd94648
TT
149612019-01-14 Tom Tromey <tom@tromey.com>
14962
14963 PR tui/28819:
14964 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14965
6f072a10
PFC
149662019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14967
14968 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14969 field.
14970 * rs6000-tdep.c: Include reggroups.h.
14971 (IS_V_ALIAS_PSEUDOREG): Define.
14972 (rs6000_register_name): Return names for the "vX" aliases.
14973 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14974 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14975 aliases. Call default_register_reggroup_p for all other
14976 pseudo-registers.
14977 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14978 New functions.
14979 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14980 Handle "vX" aliases.
14981 (v_alias_pseudo_register_collect): New function.
14982 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14983 (rs6000_gdbarch_init): Initialize "vX" aliases as
14984 pseudo-registers. Restore registration of
14985 rs6000_pseudo_register_reggroup_p with
14986 set_tdesc_pseudo_register_reggroup_p.
14987
1a782351
MF
149882019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14989
14990 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14991 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14992 set_gdbarch_num_pseudo_regs.
14993
d73cff18
PW
149942019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14995
14996 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14997 Remove arg prefixname, add do_set and do_show.
14998 Add member functions set_list and show_list.
14999 * cli/cli-style.c (class cli_style_option): Update accordingly.
15000 (style_set_list): Move to file scope.
15001 (style_show_list): Likewise.
15002 (set_style): Call help_list.
15003 (show_style): Call cmd_show_list.
15004 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15005 Update to use the new macro.
15006
60a90376
JB
150072019-10-12 Joel Brobecker <brobecker@adacore.com>
15008
15009 * ada-lang.c (_initialize_ada_language): Expand the help text
15010 for the "catch exception" command.
15011
9d7c67bf
PW
150122019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15013
15014 * symtab.c (matching_obj_sections): Initialize obj,
15015 declare it closer to its usage.
15016
7cf47dc4
TT
150172019-01-10 Tom Tromey <tom@tromey.com>
15018
15019 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15020 (basic_inf_threads_range): Remove.
15021 (inf_threads_range, inf_non_exited_threads_range)
15022 (safe_inf_threads_range): Use next_adapter.
15023
d3cb6808
KS
150242019-01-10 Keith Seitz <keiths@redhat.com>
15025
15026 PR gdb/23712
15027 PR symtab/23010
15028 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15029 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15030
63a20375
KS
150312019-01-10 Keith Seitz <keiths@redhat.com>
15032
15033 PR gdb/23712
15034 PR symtab/23010
15035 * dictionary.c (pending_to_vector): Remove.
15036 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15037 Remove _1 suffix, replacing functions of the same name. Update
15038 all callers.
15039 (dict_create_hashed, dict_create_hashed_expandable)
15040 (dict_create_linear, dict_create_linear_expandable, dict_free)
15041 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15042 Make functions static.
15043
b026f593
KS
150442019-01-10 Keith Seitz <keiths@redhat.com>
15045
15046 PR gdb/23712
15047 PR symtab/23010
15048 * dictionary.h (struct dictionary): Replace declaration with
15049 multidictionary.
15050 (dict_create_hashed, dict_create_hashed_expandable)
15051 (dict_create_linear, dict_create_linear_expandable)
15052 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15053 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15054 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15055 taking multidictionary argument.
15056 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15057 * block.h (struct block) <dict>: Change to multidictionary
15058 and rename `multidict'.
15059 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15060 symmisc.c: Update all dictionary references to multidictionary.
15061
c7748ee9
KS
150622019-01-10 Keith Seitz <keiths@redhat.com>
15063
15064 PR gdb/23712
15065 PR symtab/23010
15066 * dictionary.c: Include unordered_map.
15067 (pending_to_vector): New function.
15068 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15069 Rewrite the non-"_1" functions to take vector instead
15070 of linked list.
15071 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15072 "new" _1 versions of the same name.
15073 (multidictionary): Define.
15074 (std::hash<enum language): New definition.
15075 (collate_pending_symbols_by_language, mdict_create_hashed)
15076 (mdict_create_hashed_expandable, mdict_create_linear)
15077 (mdict_create_linear_expandable, mdict_free)
15078 (find_language_dictionary, create_new_language_dictionary)
15079 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15080 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15081 (mdict_size, mdict_empty): New functions.
15082 * dictionary.h (mdict_iterator): Define.
15083
67aa1f3c
PA
150842019-01-10 Pedro Alves <palves@redhat.com>
15085
15086 * breakpoint.c (read_uploaded_action)
15087 (create_tracepoint_from_upload): Adjust to use
15088 gdb::unique_xmalloc_ptr.
15089 * ctf.c (ctf_write_uploaded_tp):
15090 (SET_ARRAY_FIELD): Use emplace_back.
15091 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15092 * tracefile-tfile.c (tfile_write_uploaded_tp):
15093 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15094 gdb::unique_xmalloc_ptr.
15095 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15096 at_string, cond_string, cmd_strings>: Replace char pointers
15097 with gdb::unique_xmalloc_ptr.
15098
2f667667
PA
150992019-01-10 Pedro Alves <palves@redhat.com>
15100
15101 * solib-target.c (library_list_start_library): Don't xstrdup name.
15102
36cb7237
PA
151032019-01-10 Pedro Alves <palves@redhat.com>
15104
15105 * mdebugread.c (parse_partial_symbols): Use
15106 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15107
da584958
AB
151082019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15109
15110 * linux-fork.c (scoped_switch_fork_info)
15111 <~scoped_switch_fork_info>: Fix incorrect variable name.
15112
1ef8573c
AB
151132019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15114
15115 * linux-fork.c (scoped_switch_fork_info)
15116 <scoped_switch_fork_info>: Make explicit.
15117 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15118
8d7bcccb
TT
151192019-01-10 Tom Tromey <tom@tromey.com>
15120
15121 * objfiles.h (objfile::reset_psymtabs): Update.
15122 * objfiles.c (objfile::objfile): Update.
15123 * psymtab.h (psymtab_storage::obstack): Update.
15124 (psymtab_storage::m_obstack): Use gdb::optional.
15125 (class psymtab_storage): Update comment. Remove objfile
15126 parameter.
15127 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15128
b596a3c7
TT
151292019-01-10 Tom Tromey <tom@tromey.com>
15130
15131 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15132 <free_psymtabs>: Now private.
15133 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15134 (allocate_psymtab): Use new method.
15135
a9342b62
TT
151362019-01-10 Tom Tromey <tom@tromey.com>
15137
15138 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15139 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15140 * mdebugread.c (parse_partial_symbols): Use
15141 allocate_dependencies.
15142 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15143 allocate_dependencies.
15144 (process_psymtab_comp_unit_reader)
15145 (build_type_psymtab_dependencies): Likewise.
15146 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15147
5af70966
TT
151482019-01-10 Tom Tromey <tom@tromey.com>
15149
15150 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15151 PSYMBOL_SET_LANGUAGE.
15152 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15153
5923a04c
TT
151542019-01-10 Tom Tromey <tom@tromey.com>
15155
15156 * psymtab.h (psymtab_storage::obstack): New method.
15157 <m_obstack>: Rename from obstack; now private.
15158 * psymtab.c (psymtab_storage): Update.
15159 * dwarf2read.c (create_addrmap_from_index)
15160 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15161 Update.
15162
6d6a12bf
TT
151632019-01-10 Tom Tromey <tom@tromey.com>
15164
15165 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15166 * objfiles.h (objfile::reset_psymtabs): New method.
15167
d320c2b5
TT
151682019-01-10 Tom Tromey <tom@tromey.com>
15169
15170 * symmisc.c (print_symbol_bcache_statistics): Update.
15171 (print_objfile_statistics): Update.
15172 * symfile.c (reread_symbols): Update.
15173 * psymtab.h (class psymtab_storage): New.
15174 * psymtab.c (psymtab_storage): New constructor.
15175 (~psymtab_storage): New destructor.
15176 (require_partial_symbols): Update.
15177 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15178 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15179 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15180 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15181 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15182 (start_psymtab_common, end_psymtab_common)
15183 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15184 (allocate_psymtab): Update.
15185 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15186 Update.
15187 (dump_psymtab_addrmap, maintenance_print_psymbols)
15188 (maintenance_check_psymtabs): Update.
15189 (class objfile_psymtabs): Move to objfiles.h.
15190 * psympriv.h (discard_psymtab): Now inline.
15191 (psymtab_discarder::psymtab_discarder): Update.
15192 (psymtab_discarder::~psymtab_discarder): Update.
15193 (ALL_OBJFILE_PSYMTABS): Rewrite.
15194 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15195 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15196 Remove fields.
15197 <partial_symtabs>: New field.
15198 (class objfile_psymtabs): Move from psymtab.h. Update.
15199 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15200 psymbol_cache.
15201 (objfile::~objfile): Don't destroy psymbol_cache.
15202 * mdebugread.c (parse_partial_symbols): Update.
15203 * dwarf2read.c (create_addrmap_from_index)
15204 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15205 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15206 (add_partial_subprogram, dwarf2_ranges_read): Update.
15207 * dwarf-index-write.c (write_address_map)
15208 (write_one_signatured_type, recursively_write_psymbols)
15209 (class debug_names, class debug_names, write_psymtabs_to_index):
15210 Update.
15211
1d94a5a3
TT
152122019-01-10 Tom Tromey <tom@tromey.com>
15213
15214 * symtab.h (SYMBOL_SET_NAMES): Update.
15215 (symbol_set_names): Update.
15216 (MSYMBOL_SET_NAMES): Update.
15217 * symtab.c (symbol_set_names): Change argument to be an
15218 objfile_per_bfd_storage.
15219 * psymtab.c (add_psymbol_to_bcache): Update.
15220 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15221
0f14768a
TT
152222019-01-10 Tom Tromey <tom@tromey.com>
15223
15224 * symtab.c (create_demangled_names_hash): Change argument to be an
15225 objfile_per_bfd_storage.
15226 (symbol_set_names): Update.
15227
6eee24ce
TT
152282019-01-10 Tom Tromey <tom@tromey.com>
15229
15230 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15231 init_psymbol_list.
15232 * psymtab.c (init_psymbol_list): Do nothing if already called.
15233 * psympriv.h (init_psymbol_list): Add comment.
15234 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15235 init_psymbol_list.
15236 * dbxread.c (dbx_symfile_read): Unconditionally call
15237 init_psymbol_list.
15238
75aedd27
TT
152392019-01-10 Tom Tromey <tom@tromey.com>
15240
15241 * xcoffread.c (scan_xcoff_symtab): Update.
15242 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15243 "where".
15244 * mdebugread.c (parse_partial_symbols)
15245 (handle_psymbol_enumerators): Update.
15246 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15247 * dbxread.c (read_dbx_symtab): Update.
15248 * psympriv.h (psymbol_placement): New enum.
15249 (add_psymbol_to_list): Update.
15250
939652a5
TT
152512019-01-10 Tom Tromey <tom@tromey.com>
15252
15253 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15254 static_psymbols parameters.
15255 (scan_xcoff_symtab): Update.
15256 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15257 static_psymbols parameters.
15258 * psympriv.h (start_psymtab_common): Update.
15259 * mdebugread.c (parse_partial_symbols): Update.
15260 * dwarf2read.c (create_partial_symtab): Update.
15261 * dbxread.c (read_dbx_symtab): Update.
15262 (start_psymtab): Remove global_psymbols and static_psymbols
15263 parameters.
15264
baa62830
TT
152652019-01-10 Tom Tromey <tom@tromey.com>
15266
15267 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15268 * psymtab.c (allocate_psymtab): Add comment.
15269 * psympriv.h (allocate_psymtab): Add comment.
15270 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15271 initializations.
15272 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15273
0e8f53ba
TT
152742019-01-10 Tom Tromey <tom@tromey.com>
15275
15276 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15277 Don't declare.
15278 * mipsread.c: Include mdebugread.h.
15279 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15280 Declare.
15281 * elfread.c: Include mdebugread.h.
15282
b22a7c6a
TT
152832019-01-09 Tom Tromey <tom@tromey.com>
15284
15285 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15286 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15287 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15288 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15289 (psym_lookup_symbol, psym_find_last_source_symtab)
15290 (psym_forget_cached_source_info, psym_print_stats)
15291 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15292 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15293 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15294 (psym_find_compunit_symtab_by_address)
15295 (maintenance_print_psymbols, maintenance_info_psymtabs)
15296 (maintenance_check_psymtabs): Use ranged for.
15297 * psymtab.h (class objfile_psymtabs): New.
15298 (require_partial_symbols): Return objfile_psymtabs.
15299 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15300
3b9d3ac2
TT
153012019-01-09 Tom Tromey <tom@tromey.com>
15302
15303 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15304 (find_pc_mapped_section, list_overlays_command)
15305 (map_overlay_command, unmap_overlay_command)
15306 (simple_overlay_update): Use all_objfiles.
15307 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15308 * printcmd.c (info_symbol_command): Use all_objfiles.
15309 * objfiles.h (ALL_OBJSECTIONS): Remove.
15310 * maint.c (maintenance_translate_address): Use all_objfiles.
15311 * gcore.c (gcore_create_callback): Use all_objfiles.
15312 (objfile_find_memory_regions): Likewise.
15313
8b31193a
TT
153142019-01-09 Tom Tromey <tom@tromey.com>
15315
15316 * symtab.c (find_line_symtab, info_sources_command)
15317 (make_source_files_completion_list): Use objfile_compunits.
15318 * source.c (select_source_symtab): Use objfile_compunits.
15319 * objfiles.h (struct objfile): Update comment.
15320 (ALL_OBJFILES): Remove.
15321 (ALL_FILETABS): Remove.
15322 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15323 objfile_compunits.
15324
d5da8b3c
TT
153252019-01-09 Tom Tromey <tom@tromey.com>
15326
15327 * symmisc.c (print_objfile_statistics, dump_objfile)
15328 (maintenance_print_symbols): Use compunit_filetabs.
15329 * source.c (forget_cached_source_info_for_objfile): Use
15330 compunit_filetabs.
15331 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15332 (ALL_FILETABS): Use compunit_filetabs.
15333 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15334 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15335
5accd1a0
TT
153362019-01-09 Tom Tromey <tom@tromey.com>
15337
15338 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15339 (compunit_filetabs): New.
15340 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15341 compunit_filetabs.
15342 (info_sources_command, make_source_files_completion_list): Remove
15343 declaration.
15344 * symmisc.c (print_objfile_statistics, dump_objfile)
15345 (maintenance_print_symbols): Remove declaration.
15346 (maintenance_info_symtabs): Use compunit_filetabs.
15347 (maintenance_info_line_tables): Likewise.
15348 * source.c (select_source_symtab): Change local variable name.
15349 (forget_cached_source_info_for_objfile): Remove declaration.
15350 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15351 * objfiles.c (objfile_relocate1): Remove declaration.
15352 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15353 declaration.
15354 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15355 * coffread.c (coff_symtab_read): Remove declaration.
15356 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15357 compunit_filetabs.
15358
d8aeb77f
TT
153592019-01-09 Tom Tromey <tom@tromey.com>
15360
15361 * symtab.c (lookup_objfile_from_block)
15362 (find_pc_sect_compunit_symtab, search_symbols)
15363 (default_collect_symbol_completion_matches_break_on): Use
15364 objfile_compunits.
15365 * objfiles.h (ALL_COMPUNITS): Remove.
15366 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15367 * cp-support.c (add_symbol_overload_list_qualified): Use
15368 objfile_compunits.
15369 * ada-lang.c (ada_collect_symbol_completion_matches)
15370 (ada_add_global_exceptions): Use objfile_compunits.
15371
592553c4
TT
153722019-01-09 Tom Tromey <tom@tromey.com>
15373
15374 * source.c (select_source_symtab)
15375 (forget_cached_source_info_for_objfile): Remove declaration.
15376 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15377 declaration.
15378 * maint.c (count_symtabs_and_blocks): Remove declaration.
15379 * cp-support.c (add_symbol_overload_list_qualified): Remove
15380 declaration.
15381 * coffread.c (coff_symtab_read): Remove declaration.
15382 * symtab.c (lookup_symbol_in_objfile_symtabs)
15383 (basic_lookup_transparent_type_1): Use objfile_compunits.
15384 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15385 (info_sources_command, search_symbols)
15386 (default_collect_symbol_completion_matches_break_on)
15387 (make_source_files_completion_list): Remove declaration.
15388 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15389 (ada_collect_symbol_completion_matches)
15390 (ada_add_global_exceptions): Remove declaration.
15391 * linespec.c (iterate_over_all_matching_symtabs): Use
15392 objfile_compunits.
15393 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15394 (class objfile_compunits): New.
15395 (ALL_COMPUNITS): Use objfile_compunits.
15396 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15397 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15398 objfile_compunits.
15399 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15400
5325b9bf
TT
154012019-01-09 Tom Tromey <tom@tromey.com>
15402
15403 * symtab.c (search_symbols)
15404 (default_collect_symbol_completion_matches_break_on): Use
15405 objfile_msymbols.
15406 * ada-lang.c (ada_lookup_simple_minsym)
15407 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15408 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15409 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15410 objfile_msymbols.
15411 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15412 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15413 * objc-lang.c (find_methods): Use objfile_msymbols.
15414 (info_selectors_command, info_classes_command): Likewise.
15415 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15416 * objfiles.h (class objfile_msymbols): New.
15417 (ALL_OBJFILE_MSYMBOLS): Remove.
15418 (ALL_MSYMBOLS): Remove.
15419
cac85af2
TT
154202019-01-09 Tom Tromey <tom@tromey.com>
15421
15422 * common/next-iterator.h (next_adapter): Add Iterator template
15423 parameter.
15424 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15425 (class all_objfiles_safe): New.
15426 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15427 * objfiles.c (put_objfile_before): Update comment.
15428 (add_separate_debug_objfile): Likewise.
15429 (free_all_objfiles): Use all_objfiles_safe.
15430 (objfile_purge_solibs): Likewise.
15431
aed57c53
TT
154322019-01-09 Tom Tromey <tom@tromey.com>
15433
15434 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15435 (expand_symtab_containing_pc, lookup_static_symbol)
15436 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15437 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15438 all_objfiles.
15439 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15440 * breakpoint.c (create_overlay_event_breakpoint)
15441 (create_longjmp_master_breakpoint)
15442 (create_std_terminate_master_breakpoint)
15443 (create_exception_master_breakpoint): Use all_objfiles.
15444 * linux-thread-db.c (try_thread_db_load_from_pdir)
15445 (has_libpthread): Use all_objfiles.
15446 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15447 * linespec.c (iterate_over_all_matching_symtabs)
15448 (search_minsyms_for_name): Use all_objfiles.
15449 * maint.c (maintenance_info_sections): Use all_objfiles.
15450 * main.c (captured_main_1): Use all_objfiles.
15451 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15452 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15453 * guile/scm-pretty-print.c
15454 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15455 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15456 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15457 (maintenance_print_msymbols): Use all_objfiles.
15458 * source.c (select_source_symtab): Use all_objfiles.
15459 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15460 * symfile.c (remove_symbol_file_command)
15461 (expand_symtabs_matching, map_symbol_filenames): Use
15462 all_objfiles.
15463 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15464 all_objfiles.
15465 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15466 * objc-lang.c (find_methods): Use all_objfiles.
15467 * objfiles.c (have_partial_symbols, have_full_symbols)
15468 (have_minimal_symbols, qsort_cmp)
15469 (default_iterate_over_objfiles_in_search_order): Use
15470 all_objfiles.
15471 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15472 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15473 (maintenance_check_psymtabs): Use all_objfiles.
15474 (ALL_PSYMTABS): Remove.
15475 * compile/compile-object-run.c (do_module_cleanup): Use
15476 all_objfiles.
15477 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15478 * cp-support.c (add_symbol_overload_list_qualified): Use
15479 all_objfiles.
15480 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15481 Use all_objfiles.
15482 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15483 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15484 all_objfiles.
15485 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15486 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15487 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15488 Uses all_objfiles.
15489 * solib.c (solib_read_symbols): Use all_objfiles
15490
99d89cde
TT
154912019-01-09 Tom Tromey <tom@tromey.com>
15492
15493 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15494 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15495 all_objfiles.
15496 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15497 * symmisc.c (print_symbol_bcache_statistics)
15498 (print_objfile_statistics, maintenance_print_objfiles)
15499 (maintenance_info_symtabs, maintenance_check_symtabs)
15500 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15501 all_objfiles.
15502 * source.c (forget_cached_source_info): Use all_objfiles.
15503 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15504 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15505 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15506 * objfiles.c (update_section_map): Use all_objfiles.
15507 (shared_objfile_contains_address_p): Likewise.
15508 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15509 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15510
21708325
TT
155112019-01-09 Tom Tromey <tom@tromey.com>
15512
15513 * common/next-iterator.h: New file.
15514 * objfiles.h (class all_objfiles): New.
15515 (struct objfile_iterator): New.
15516
669e09f6
PW
155172019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15518
15519 * NEWS: Move the description of the changed "frame", "select-frame",
15520 and "info frame" commands to the Changed commands section.
15521
041be526
SM
155222019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15523
15524 * gdbtypes.c (check_stub_method_group): Remove handling of old
15525 mangling schemes.
15526 * linespec.c (find_methods): Likewise.
15527 * stabsread.c (read_member_functions): Likewise.
15528 * valops.c (search_struct_method): Likewise.
15529 (value_struct_elt_for_reference): Likewise.
15530 * NEWS: Mention this change.
15531
0e2a2133
AB
155322019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15533
15534 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15535 print_source_lines.
15536 * source.c (print_source_lines_base): Update line number check.
15537 (print_source_lines): New function.
15538 (source_lines_range::source_lines_range): New function.
15539 * source.h (class source_lines_range): New class.
15540 (print_source_lines): New declaration.
15541
1055a3b4
PW
155422019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15543
15544 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15545
cfeadda5
TT
155462019-01-08 Tom Tromey <tom@tromey.com>
15547 Simon Marchi <simon.marchi@ericsson.com>
15548
15549 PR gdb/24060
15550 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15551 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15552 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15553 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15554 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15555 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15556
583068ca
AB
155572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15558
15559 * source.c (select_source_symtab): Move header comment to
15560 declaration in source.h.
15561 (forget_cached_source_info_for_objfile): Likewise.
15562 (forget_cached_source_info): Likewise.
15563 (identify_source_line): Likewise.
15564 * source.h (identify_source_line): Move declaration from symtab.h
15565 and add comment from source.c
15566 (print_source_lines): Likewise.
15567 (forget_cached_source_info_for_objfile): Likewise.
15568 (forget_cached_source_info): Likewise.
15569 (select_source_symtab): Likewise.
15570 (enum print_source_lines_flag): Move definition from symtab.h.
15571 * symtab.h (identify_source_line): Move declaration to source.h.
15572 (print_source_lines): Likewise.
15573 (forget_cached_source_info_for_objfile): Likewise.
15574 (forget_cached_source_info): Likewise.
15575 (select_source_symtab): Likewise.
15576 (enum print_source_lines_flag): Move definition to source.h.
15577 * tui/tui-hooks.c: Add 'source.h' include.
15578
ec98a4ad
AB
155792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15580
15581 * source.c (print_source_lines_base): Handle requests to print
15582 reverse line number sequences, and guard against empty lines
15583 string.
15584
62ea19c1
AB
155852019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15586
15587 * source.c (print_source_lines_base): Fix skip of '\r' if next
15588 character is '\n'.
15589
9d30e1fd
TT
155902019-01-06 Tom Tromey <tom@tromey.com>
15591
15592 * c-exp.y (struct c_parse_state) <macro_original_text,
15593 expansion_obstack>: New member.
15594 (macro_original_text, expansion_obstack): Remove globals.
15595 (scan_macro_expansion, scanning_macro_expansion)
15596 (finished_macro_expansion): Update.
15597 (scan_macro_cleanup): Remove.
15598 (yylex, c_parse): Update.
15599
c65bac38
TT
156002019-01-06 Tom Tromey <tom@tromey.com>
15601
15602 * c-exp.y (struct c_parse_state) <strings>: New member.
15603 (operator_stoken): Update.
15604
02e12e38
TT
156052019-01-06 Tom Tromey <tom@tromey.com>
15606
15607 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15608 (union type_stack_elt) <typelist_val>: Now a pointer to
15609 std::vector.
15610 (type_stack_cleanup): Don't declare.
15611 (push_typelist): Update.
15612 * parse.c (pop_typelist): Return a std::vector.
15613 (push_typelist): Take a std::vector.
15614 (follow_types): Update. Do not free args.
15615 (type_stack_cleanup): Remove.
15616 * c-exp.y (struct c_parse_state): New.
15617 (cpstate): New global.
15618 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15619 (nonempty_typelist): Update.
15620 (func_mod): Create a new vector.
15621 (c_parse): Create a c_parse_state.
15622 (check_parameter_typelist): Do not delete params.
15623 (function_method): Update. Do not delete type_list.
15624
f097f5ad
TT
156252019-01-06 Tom Tromey <tom@tromey.com>
15626
15627 PR gdb/28155:
15628 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15629 check_typedef.
15630 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15631 (print_return_value): Likewise.
15632
d2adf9f1
TT
156332019-01-05 Tom Tromey <tom@tromey.com>
15634
15635 * contrib/cleanup_check.py: Remove.
15636 * contrib/gcc-with-excheck: Remove.
15637 * contrib/exsummary.py: Remove.
15638 * contrib/excheck.py: Remove.
15639
2eab46b1
JB
156402019-01-05 Joel Brobecker <brobecker@adacore.com>
15641
15642 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15643 NULL. Initialize tpprev to NULL instead of assigning it
15644 to NULL on the next statement.
15645 * windows-nat.c (windows_delete_thread): Remove check for
15646 main_thread_id before printing thread exit notifications.
15647 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15648 Remove thread ID check against main_thread_id.
15649 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15650 windows_delete_thread.
15651 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15652
48c5e7e2
TT
156532019-01-04 Tom Tromey <tom@tromey.com>
15654
15655 * compile/compile.c (_initialize_compile): Use upper case for
15656 metasyntactic variables.
15657 * symmisc.c (_initialize_symmisc): Use upper case for
15658 metasyntactic variables.
15659 * psymtab.c (_initialize_psymtab): Use upper case for
15660 metasyntactic variables.
15661 * demangle.c (demangle_command): Use upper case for metasyntactic
15662 variables.
15663 (_initialize_demangler): Likewise.
15664 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15665 variables.
15666
986041cd
TT
156672019-01-03 Tom Tromey <tom@tromey.com>
15668
15669 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15670
7c711119
TT
156712019-01-03 Tom Tromey <tom@tromey.com>
15672
15673 * python/py-symtab.c (salpy_str): Update.
15674 (struct salpy_sal_object) <symtab>: Now a PyObject.
15675 (salpy_dealloc): Update.
15676 (del_objfile_sal): Use gdbpy_ref.
15677
1b20edf0
TT
156782019-01-03 Tom Tromey <tom@tromey.com>
15679
15680 * python/py-type.c (convert_field): Use new_reference. Return
15681 gdbpy_ref.
15682 (make_fielditem): Return gdbpy_ref.
15683 (typy_fields): Update.
15684 (typy_getitem): Update.
15685 (field_name): Return gdbpy_ref. Use new_reference.
15686 (typy_iterator_iternext): Update.
15687
ea41325b
TT
156882019-01-03 Tom Tromey <tom@tromey.com>
15689
15690 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15691
2a3c71d6
TT
156922019-01-03 Tom Tromey <tom@tromey.com>
15693
15694 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15695 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15696 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15697 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15698 (pspy_set_type_printers): Likewise.
15699 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15700 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15701 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15702 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15703 (objfpy_set_type_printers): Likewise.
15704
5c329e6a
TT
157052019-01-03 Tom Tromey <tom@tromey.com>
15706
15707 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15708 (gdbpy_print_stack): Use gdbpy_err_fetch.
15709 * python/python-internal.h (class gdbpy_err_fetch): New class.
15710 (class gdbpy_enter) <m_error_type, m_error_value,
15711 m_error_traceback>: Remove.
15712 <m_error>: New member.
15713 (gdbpy_exception_to_string): Don't declare.
15714 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15715 * python/py-value.c (convert_value_from_python): Use
15716 gdbpy_err_fetch.
15717 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15718 gdbpy_exception_to_string.
15719 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15720 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15721 gdbpy_err_fetch.
15722
169bb27b
AB
157232019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15724
15725 * linux-nat.c (delete_lwp_cleanup): Delete.
15726 (struct lwp_deleter): New struct.
15727 (lwp_info_up): New typedef.
15728 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15729 lwp_info_up.
15730
a07c8880
AB
157312019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15732
15733 * linux-fork.c (class scoped_switch_fork_info): New class.
15734 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15735
26089c49
AB
157362019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15737
15738 * valops.c (find_overload_match): Remove use of null_cleanup, and
15739 calls to do_cleanups.
15740
06d3e5b0
AB
157412019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15742
15743 * compile/compile-cplus-types.c
15744 (compile_cplus_instance::decl_name): Handle changes to
15745 cp_func_name.
15746 * cp-support.c (cp_func_name): Update header comment, update
15747 return type.
15748 * cp-support.h (cp_func_name): Update return type in declaration.
15749 * valops.c (find_overload_match): Move temp_func local to top
15750 level of function and change its type. Use temp_func to hold and
15751 delete temporary string obtained from cp_func_name.
15752
66644cd3
AB
157532019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15754
15755 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15756 gdb::char_vector, remove cleanup, and update uses of `msg`.
15757
592d8c0a
JW
157582019-01-03 Jim Wilson <jimw@sifive.com>
15759
15760 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15761
c55d06ec
TT
157622019-01-02 Tom Tromey <tom@tromey.com>
15763
15764 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15765 (tdesc_parse_xml): Remove cleanups.
15766 * target-descriptions.h (make_cleanup_free_target_description):
15767 Don't declare.
15768 (target_desc_deleter): New struct.
15769 (target_desc_up): New typedef.
15770 * target-descriptions.c (target_desc_deleter::operator()): Rename
15771 from free_target_description.
15772 (make_cleanup_free_target_description): Remove.
15773
3a6ae42d
TT
157742019-01-02 Tom Tromey <tom@tromey.com>
15775
15776 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15777 constructor, destructor.
15778 (linespec_parser): Remove typedef.
15779 (~linespec_parser): Rename from linespec_parser_delete.
15780 (linespec_lex_to_end, linespec_complete_label)
15781 (linespec_complete): Update.
15782 (decode_line_full): Remove cleanups.
15783 (decode_line_1): Update.
15784
61fd3e73
TT
157852019-01-02 Tom Tromey <tom@tromey.com>
15786
15787 * python/python-internal.h (inferior_to_inferior_object): Change
15788 return type.
15789 * python/py-exitedevent.c (create_exited_event_object): Update.
15790 * python/py-inferior.c (inferior_to_inferior_object): Return
15791 gdbpy_ref.
15792 (python_new_inferior, python_inferior_deleted)
15793 (thread_to_thread_object, delete_thread_object)
15794 (build_inferior_list, gdbpy_selected_inferior): Update.
15795 * python/py-infthread.c (create_thread_object): Update. Also fail
15796 if inferior_to_inferior_object fails.
15797
d20172fc
SM
157982019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15799
15800 * inferior.h (class inferior) <displaced_step_state>: New field.
15801 * infrun.h (struct displaced_step_state): Move here from
15802 infrun.c. Initialize fields, add constructor.
15803 <inf>: Remove field.
15804 <reset>: New method.
15805 * infrun.c (struct displaced_step_inferior_state): Move to
15806 infrun.h.
15807 (displaced_step_inferior_states): Remove.
15808 (get_displaced_stepping_state): Adust.
15809 (displaced_step_in_progress_any_inferior): Adjust.
15810 (displaced_step_in_progress_thread): Adjust.
15811 (displaced_step_in_progress): Adjust.
15812 (add_displaced_stepping_state): Remove.
15813 (get_displaced_step_closure_by_addr): Adjust.
15814 (remove_displaced_stepping_state): Remove.
15815 (infrun_inferior_exit): Call displaced_step_state.reset.
15816 (use_displaced_stepping): Don't check for NULL.
15817 (displaced_step_prepare_throw): Call
15818 get_displaced_stepping_state.
15819 (displaced_step_fixup): Don't check for NULL.
15820 (prepare_for_detach): Don't check for NULL.
15821
e3319240
PW
158222019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15823
15824 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15825 in case of call that did not complete.
15826
5d36dfb9
AU
158272019-01-02 Andrey Utkin <autkin@undo.io>
15828
15829 * symfile.c (find_separate_debug_file): Fix search of debug files for
15830 remote debuggee.
15831
8833fbf0
TT
158322019-01-02 Tom Tromey <tom@tromey.com>
15833
15834 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15835 indentation.
15836 * python/py-frame.c (frapy_older): Remove cast.
15837 (frapy_newer): Likewise.
15838 * python/py-breakpoint.c (local_setattro): Remove cast.
15839 * python/py-arch.c (archpy_name): Remove local variable.
15840 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15841
4ada3dfd
JB
158422019-01-02 Joel Brobecker <brobecker@adacore.com>
15843
15844 * unittests/basic_string_view/element_access/char/empty.cc:
15845 Fix year range in copyright header.
15846
113b7b81
AB
158472019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15848
15849 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15850 Delete.
15851 <operator==>: Update with for removed field.
15852 <hash>: Likewise.
15853 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15854 <isa_features>: ...this.
15855 <abi_features>: New field.
15856 (riscv_isa_flen): Update comment.
15857 (riscv_abi_xlen): New declaration.
15858 (riscv_abi_flen): New declaration.
15859 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15860 isa_features.
15861 (riscv_abi_xlen): New function.
15862 (riscv_isa_flen): Update to get answer from isa_features.
15863 (riscv_abi_flen): New function.
15864 (riscv_has_fp_abi): Update to get answer from abi_features.
15865 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15866 xlen and flen.
15867 (riscv_call_info) <xlen, flen>: Update comment.
15868 (riscv_call_arg_struct): Remove invalid assertions
15869 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15870 is removed.
15871 (riscv_gdbarch_init): Gather isa features and abi features
15872 separately, ensure both match on the gdbarch when reusing an old
15873 gdbarch. Relax an error check to allow 32-bit abi float to run on
15874 a target with 64-bit float hardware.
15875
b18ca514
PW
158762019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15877
15878 * source.c (search_command_helper): Stop reverse search
15879 when line 1 has been searched.
15880
ec70d8db
PW
158812019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15882
15883 * record-full.c (record_full_base_target::close): Rewrite
15884 record_full_core_buf_list free logic.
15885
5b38f9c1
PW
158862019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15887
15888 * break-catch-syscall.c (print_one_catch_syscall): xfree
15889 the last text.
15890
66d91b39
JB
158912019-01-01 Joel Brobecker <brobecker@adacore.com>
15892
15893 * top.c (print_gdb_version): Update Copyright year in version
15894 message.
15895
42a4f53d
JB
158962019-01-01 Joel Brobecker <brobecker@adacore.com>
15897
15898 Update copyright year range in all GDB files.
15899
7e955d83 159002019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15901
5bbd631d 15902 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15903
5bbd631d 15904For older changes see ChangeLog-2018.
c906108c
SS
15905\f
15906Local Variables:
15907mode: change-log
15908left-margin: 8
15909fill-column: 74
15910version-control: never
57da7796 15911coding: utf-8
c906108c 15912End:
5bbd631d 15913
This page took 2.994043 seconds and 4 git commands to generate.