Compute msymbol hash codes in parallel
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f29d7f6b
CB
12019-11-27 Christian Biesinger <cbiesinger@google.com>
2
3 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
4 hash code if possible.
5 (add_minsym_to_demangled_hash_table): Likewise.
6 (minimal_symbol_reader::install): Compute the hash codes for msymbol
7 on the background thread.
8 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
9 Add these fields.
10
e76b2246
CB
112019-11-27 Christian Biesinger <cbiesinger@google.com>
12
13 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
14 of the mangled name on the background thread.
15 * symtab.c (symbol_set_names): Allow passing in the hash of the
16 linkage_name.
17 * symtab.h (symbol_set_names): Likewise.
18
8d9a2568
KB
192019-11-27 Kevin Buettner <kevinb@redhat.com>
20
21 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
22 physnames are computed for inherited DIEs.
23
fad03f6e
TT
242019-11-27 Tom Tromey <tromey@adacore.com>
25
26 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
27 backslashes.
28 * cp-support.c: Remove unnecessary backslashes.
29
43678b0a
CB
302019-11-27 Christian Biesinger <cbiesinger@google.com>
31
32 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
33 with sym->set_linkage_name.
34 * coffread.c (coff_read_enum_type): Likewise.
35 * mdebugread.c (parse_symbol): Likewise.
36 * stabsread.c (patch_block_stabs): Likewise.
37 (define_symbol): Likewise.
38 (read_enum_type): Likewise.
39 (common_block_end): Likewise.
40 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
41 function.
42 (SYMBOL_SET_LINKAGE_NAME): Remove.
43 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
44 with sym->set_linkage_name.
45
db5960b4
AB
462019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
49 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
50 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
51 * NEWS: Mention new MI command.
52
7dc42066
AB
532019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
56 '-symbol-info-types', and '-symbol-info-variables'.
57 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
58 (mi_cmd_symbol_info_types): Declare.
59 (mi_cmd_symbol_info_variables): Declare.
60 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
61 (output_debug_symbol): New function.
62 (output_nondebug_symbol): New function.
63 (mi_symbol_info): New function.
64 (mi_info_functions_or_variables): New function.
65 (mi_cmd_symbol_info_functions): New function.
66 (mi_cmd_symbol_info_types): New function.
67 (mi_cmd_symbol_info_variables): New function.
68 * NEWS: Mention new commands.
69
5f512a7d
AB
702019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * symtab.c (symbol_to_info_string): New function, most content
73 moved from print_symbol_info, but updated to return a std::string.
74 (print_symbol_info): Update to use symbol_to_info_string and print
75 returned string.
76 * symtab.h (symbol_to_info_string): Declare new function.
77
470c0b1c
AB
782019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * python/python.c (gdbpy_rbreak): Convert to using
81 global_symbol_searcher.
82 * symtab.c (file_matches): Convert return type to bool, change
83 file list to std::vector, update header comment.
84 (search_symbols): Rename to...
85 (global_symbol_searcher::search): ...this and update now its
86 a member function of global_symbol_searcher. Take account of the
87 changes to file_matches.
88 (symtab_symbol_info): Convert to using global_symbol_searcher.
89 (rbreak_command): Likewise.
90 (search_module_symbols): Likewise.
91 * symtab.h (enum symbol_search): Update comment.
92 (search_symbols): Remove declaration.
93 (class global_symbol_searcher): New class.
94
57357d9d
TT
952019-11-26 Tom Tromey <tromey@adacore.com>
96
97 * cp-support.c (_initialize_cp_support): Conditionally initialize
98 gdb_demangle_attempt_core_dump.
99
3ea16160
TT
1002019-11-26 Tom Tromey <tom@tromey.com>
101
102 * python/py-function.c (fnpy_init): Update.
103 * value.h (add_internal_function): Adjust declaration.
104 * value.c (function_destroyer): Remove.
105 (do_add_internal_function): Don't set destroyer or copy name.
106 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
107 Set name_allocated.
108 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
109 (cmdpy_init): Set name_allocated.
110 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
111 member.
112 (~cmd_list_element): Free "name" if needed.
113
1a6d41c6
TT
1142019-11-26 Tom Tromey <tom@tromey.com>
115
116 * value.h (add_internal_function): Add new overload. Move
117 documentation from value.h.
118 * value.c (do_add_internal_function): New function.
119 (add_internal_function): Use it. Add new overload.
120 (function_destroyer): Don't free doc.
121 * python/py-function.c (fnpy_init): Update.
122
8318f3c3
TT
1232019-11-26 Tom Tromey <tom@tromey.com>
124
125 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
126 (cmdpy_init): Set "doc_allocated".
127
4da8c3a8
TT
1282019-11-26 Tom Tromey <tom@tromey.com>
129
130 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
131 name of worker thread.
132 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
133 pthread_setname_np.
134 * configure, config.in: Rebuild.
135
971db5e2
TT
1362019-11-26 Tom Tromey <tom@tromey.com>
137
138 * python/python.c (class gdbpy_gil): New.
139 (struct gdbpy_event): Add constructor, destructor, operator().
140 (gdbpy_post_event): Use run_on_main_thread.
141 (gdbpy_initialize_events): Remove.
142 (do_start_initialization): Update.
143
22138db6
TT
1442019-11-26 Tom Tromey <tom@tromey.com>
145
146 * NEWS: Add entry.
147 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
148 commands. Call update_thread_pool_size.
149 (update_thread_pool_size, maintenance_set_worker_threads): New
150 functions.
151 (n_worker_threads): New global.
152
d55c9a68
TT
1532019-11-26 Christian Biesinger <cbiesinger@google.com>
154 Tom Tromey <tom@tromey.com>
155
156 * minsyms.c (minimal_symbol_reader::install): Use
157 parallel_for_each.
158 * gdbsupport/parallel-for.h: New file.
159 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
160
a0b57563
CB
1612019-11-26 Christian Biesinger <cbiesinger@google.com>
162 Tom Tromey <tom@tromey.com>
163
164 * gdbsupport/thread-pool.h: New file.
165 * gdbsupport/thread-pool.c: New file.
166 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
167 (HFILES_NO_SRCDIR): Add thread-pool.h.
168
3b3978bc
TT
1692019-11-26 Tom Tromey <tom@tromey.com>
170
171 * event-top.h (thread_local_segv_handler): Declare.
172 * event-top.c (thread_local_segv_handler): New global.
173 (install_handle_sigsegv, handle_sigsegv): New functions.
174 (async_init_signals): Install SIGSEGV handler.
175 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
176 thread-local.
177 (report_failed_demangle): New function.
178 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
179 handler-setting code, instead use segv_handler. Run warning code
180 on main thread.
181
9411c49e
TT
1822019-11-26 Tom Tromey <tom@tromey.com>
183
184 * run-on-main-thread.c: New file.
185 * run-on-main-thread.h: New file.
186 * unittests/main-thread-selftests.c: New file.
187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
188 main-thread-selftests.c.
189 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
190 (COMMON_SFILES): Add run-on-main-thread.c.
191
c3efb965
TT
1922019-11-26 Tom Tromey <tom@tromey.com>
193
194 * main.c (setup_alternate_signal_stack): Remove.
195 (captured_main_1): Use gdb::alternate_signal_stack.
196 * gdbsupport/alt-stack.h: New file.
197
21987b9c
TT
1982019-11-26 Tom Tromey <tom@tromey.com>
199
200 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
201 Remove comment.
202 (save_original_signals_state, restore_original_signals_state): Use
203 gdb_sigmask.
204 * linux-nat.c (block_child_signals, restore_child_signals_mask)
205 (_initialize_linux_nat): Use gdb_sigmask.
206 * guile/guile.c (_initialize_guile): Use block_signals.
207 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
208 * gdbsupport/gdb-sigmask.h: New file.
209 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
210 * cp-support.c (gdb_demangle): Use gdb_sigmask.
211 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
212 pthread_sigmask.
213 * configure, config.in: Rebuild.
214 * gdbsupport/block-signals.h: New file.
215
5e030278
TT
2162019-11-26 Tom Tromey <tom@tromey.com>
217
218 * acinclude.m4: Include ax_pthread.m4.
219 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
220 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
221 (CLIBS): Use PTHREAD_LIBS.
222 (aclocal_m4_deps): Add ax_pthread.m4.
223 * config.in, configure: Rebuild.
224 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
225
5a79c107
TT
2262019-11-26 Tom Tromey <tom@tromey.com>
227
228 * symtab.h (struct minimal_symbol) <name_set>: New member.
229 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
230 Don't call symbol_set_names.
231 (minimal_symbol_reader::install): Call symbol_set_names.
232
aa369509
PW
2332019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
234
235 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
236 restore_active_ext_lang, as GIL is needed for (indirectly)
237 called PyOS_InterruptOccurred.
238
cadc9cb8
SM
2392019-11-26 Simon Marchi <simon.marchi@efficios.com>
240
241 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
242 definition.
243
d04afd58
SM
2442019-11-26 Simon Marchi <simon.marchi@efficios.com>
245
246 * remote-sim.c (simulator_command): Make static, remove
247 declaration.
248
dd694d77
SM
2492019-11-26 Simon Marchi <simon.marchi@efficios.com>
250
251 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
252 static.
253 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
254 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
255 (main): Likewise.
256 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
257 (main): Likewise.
258 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
259 (main): Likewise.
260 * unittests/basic_string_view/element_access/char/1.cc (test01):
261 Likewise.
262 (main): Likewise.
263 * unittests/basic_string_view/element_access/char/empty.cc (main):
264 Likewise.
265 * unittests/basic_string_view/element_access/char/front_back.cc
266 (test01): Likewise.
267 (main): Likewise.
268 * unittests/basic_string_view/inserters/char/2.cc (test05):
269 Likewise.
270 (main): Likewise.
271 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
272 (test01): Likewise.
273 (main): Likewise.
274 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
275 (test01): Likewise.
276 (main): Likewise.
277 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
278 Likewise.
279 * unittests/basic_string_view/operations/compare/char/1.cc
280 (test01): Likewise.
281 (main): Likewise.
282 * unittests/basic_string_view/operations/compare/char/13650.cc
283 (test01): Likewise.
284 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
285 Likewise.
286 (main): Likewise.
287 * unittests/basic_string_view/operations/data/char/1.cc (test01):
288 Likewise.
289 (main): Likewise.
290 * unittests/basic_string_view/operations/find/char/1.cc (test01):
291 Likewise.
292 (main): Likewise.
293 * unittests/basic_string_view/operations/find/char/2.cc (test02):
294 Likewise.
295 (main): Likewise.
296 * unittests/basic_string_view/operations/find/char/3.cc (test03):
297 Likewise.
298 (main): Likewise.
299 * unittests/basic_string_view/operations/find/char/4.cc (main):
300 Likewise.
301 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
302 Likewise.
303 (main): Likewise.
304 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
305 Likewise.
306 (main): Likewise.
307 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
308 Likewise.
309 (main): Likewise.
310 * unittests/basic_string_view/operations/substr/char/1.cc
311 (test01): Likewise.
312 (main): Likewise.
313 * unittests/basic_string_view/operators/char/2.cc (main):
314 Likewise.
315 * unittests/optional/assignment/1.cc (test): Likewise.
316 * unittests/optional/assignment/2.cc (test): Likewise.
317 * unittests/optional/assignment/3.cc (test): Likewise.
318 * unittests/optional/assignment/4.cc (test): Likewise.
319 * unittests/optional/assignment/5.cc (test): Likewise.
320 * unittests/optional/assignment/6.cc (test): Likewise.
321 * unittests/optional/assignment/7.cc (test): Likewise.
322 * unittests/optional/cons/copy.cc (test): Likewise.
323 * unittests/optional/cons/default.cc (test): Likewise.
324 * unittests/optional/cons/move.cc (test): Likewise.
325 * unittests/optional/cons/value.cc (test): Likewise.
326 * unittests/optional/in_place.cc (test): Likewise.
327 * unittests/optional/observers/1.cc (test): Likewise.
328 * unittests/optional/observers/2.cc (test): Likewise.
329
3b5c1d49
SM
3302019-11-26 Simon Marchi <simon.marchi@efficios.com>
331
332 * tui-win.h (tui_set_var_cmd): Remove.
333 * tui-win.c (tui_set_var_cmd): Make static.
334
adce99fe
SM
3352019-11-26 Simon Marchi <simon.marchi@efficios.com>
336
337 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
338 rbreak_command_wrapper): Remove.
339 * symtab.c (rbreak_command_wrapper): Remove.
340
fe3adccf
SM
3412019-11-26 Simon Marchi <simon.marchi@efficios.com>
342
343 * inferior.h (info_terminal_command): Remove declaration.
344 * inflow.c (info_terminal_command): Make static.
345
b926335f
SM
3462019-11-26 Simon Marchi <simon.marchi@efficios.com>
347
348 * inferior.c (exit_inferior_silent): Remove.
349
b62f6f54
SM
3502019-11-26 Simon Marchi <simon.marchi@efficios.com>
351
352 * dictionary.c (dict_empty, mdict_empty): Remove.
353 * dictionary.c (mdict_empty): Remove.
354
cb8c24b6
SM
3552019-11-26 Simon Marchi <simon.marchi@efficios.com>
356
357 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
358 (arc_insn_get_memory_offset): Likewise.
359 (arc_insn_dump): Likewise.
360 * cp-support.c (test_cp_symbol_name_matches): Likewise.
361 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
362 * dictionary.c (dict_iterator_next): Likewise.
363 (dict_iter_match_first): Likewise.
364 (dict_iter_match_next): Likewise.
365 * f-lang.c (evaluate_subexp_f): Likewise.
366 * hppa-tdep.c (hppa_read_pc): Likewise.
367 * i386-tdep.c (i386_floatformat_for_type): Likewise.
368 * parse.c (write_exp_elt_msym): Likewise.
369 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
370 * remote.c (remote_packet_size): Likewise.
371 (remote_notif_stop_parse): Likewise.
372 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
373 * s12z-tdep.c (s12z_disassemble_info): Likewise.
374 * source.c (prepare_path_for_appending): Likewise.
375 * sparc64-linux-tdep.c
376 (sparc64_linux_handle_segmentation_fault); Likewise.
377 * stack.c (frame_selection_by_function_completer): Likewise.
378
781597ff
SM
3792019-11-26 Simon Marchi <simon.marchi@efficios.com>
380
381 * completer.c (set_gdb_completion_word_break_characters):
382 Remove.
383
23baa4cc
SM
3842019-11-26 Simon Marchi <simon.marchi@efficios.com>
385
386 * dwarf-index-write.c: Include dwarf-index-write.h.
387 * mi/mi-interp.c: Include mi/mi-interp.h.
388
23767560
SM
3892019-11-26 Simon Marchi <simon.marchi@efficios.com>
390
391 * aarch32-tdep.c: Include aarch32-tdep.h.
392 * aarch32-tdep.h: Forward-declare struct target_desc.
393
6d91ce9a
CB
3942019-11-26 Christian Biesinger <cbiesinger@google.com>
395
396 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
397 strerror.
398 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
399 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
400
3cf2f237
TV
4012019-11-25 Tom de Vries <tdevries@suse.de>
402
403 * contrib/words.sh: Add -c option.
404
5b89c67a
CB
4052019-11-25 Christian Biesinger <cbiesinger@google.com>
406
407 * solib.c (solib_find_1): Change int to bool.
408 (exec_file_find): Change int to bool.
409 (solib_find): Change int to bool.
410 (solib_read_symbols): Change int to bool.
411 (solib_used): Change int to bool.
412 (solib_add): Change int to bool.
413 (info_sharedlibrary_command): Change int to bool.
414 (solib_contains_address_p): Change int to bool.
415 (solib_keep_data_in_core): Change int to bool.
416 (in_solib_dynsym_resolve_code): Change int to bool.
417 (reload_shared_libraries_1): Change int to bool.
418 (gdb_sysroot_changed): Change int to bool.
419 * solib.h (solib_read_symbols): Change int to bool.
420 (solib_contains_address_p): Change int to bool.
421 (solib_keep_data_in_core): Change int to bool.
422 (in_solib_dynsym_resolve_code): Change int to bool.
423 (libpthread_name_p): Change int to bool.
424
6cc8564b
LM
4252019-11-25 Luis Machado <luis.machado@linaro.org>
426
427 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
428 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
429 (remote_packet_max_chars): New static global.
430 (show_remote_packet_max_chars): New function.
431 (remote_target::putpkt_binary): Adjust to use new
432 remote_packet_max_chars option.
433 (remote_target::getpkt_or_notif_sane_1): Likewise.
434 (_initialize_remote): Register new remote-packet-max-chars option.
435
a7cdaa91
SM
4362019-11-24 Simon Marchi <simon.marchi@efficios.com>
437
438 * m68k-linux-nat.c: Include gdbarch.h.
439
26abc753
TT
4402019-11-24 Tom Tromey <tom@tromey.com>
441
442 * symfile.c (read_symbols): Update.
443 * psymtab.c (require_partial_symbols): Change type of "verbose" to
444 bool.
445 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
446 (psym_lookup_symbol, psym_find_last_source_symtab)
447 (psym_forget_cached_source_info, psym_print_stats)
448 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
449 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
450 (psym_map_matching_symbols, psym_expand_symtabs_matching)
451 (psym_find_compunit_symtab_by_address)
452 (maintenance_print_psymbols, maintenance_info_psymtabs)
453 (maintenance_check_psymtabs): Update.
454 * psymtab.h (require_partial_symbols): Change type of "verbose" to
455 bool.
456
012fc909
TT
4572019-11-22 Tom Tromey <tom@tromey.com>
458
459 * observable.h: Update comments.
460
c83d8d32
TT
4612019-11-22 Tom Tromey <tromey@adacore.com>
462
463 * ada-tasks.c (ada_task_is_alive): Make parameter const.
464 (print_ada_task_info): Don't try to fetch thread id if task is not
465 alive.
466
987012b8
CB
4672019-11-22 Christian Biesinger <cbiesinger@google.com>
468
469 * ada-exp.y: Update.
470 * ada-lang.c (sort_choices): Update.
471 (ada_print_symbol_signature): Update.
472 (resolve_subexp): Update.
473 (ada_parse_renaming): Update.
474 (ada_read_renaming_var_value): Update.
475 (lesseq_defined_than): Update.
476 (remove_extra_symbols): Update.
477 (remove_irrelevant_renamings): Update.
478 (ada_add_block_symbols): Update.
479 (ada_collect_symbol_completion_matches): Update.
480 (ada_is_renaming_symbol): Update.
481 (aggregate_assign_from_choices): Update.
482 (ada_evaluate_subexp): Update.
483 (ada_has_this_exception_support): Update.
484 (ada_is_non_standard_exception_sym): Update.
485 (ada_add_exceptions_from_frame): Update.
486 (ada_add_global_exceptions): Update.
487 (ada_print_subexp): Update.
488 * ax-gdb.c (gen_var_ref): Update.
489 (gen_maybe_namespace_elt): Update.
490 (gen_expr_for_cast): Update.
491 (gen_expr): Update.
492 * block.h: Update.
493 * blockframe.c (find_pc_partial_function): Update.
494 * breakpoint.c (print_breakpoint_location): Update.
495 (update_static_tracepoint): Update.
496 * btrace.c (ftrace_print_function_name): Update.
497 (ftrace_function_switched): Update.
498 * buildsym.c (find_symbol_in_list): Update.
499 * c-exp.y: Update.
500 * c-typeprint.c (c_print_typedef): Update.
501 (c_type_print_template_args): Update.
502 * cli/cli-cmds.c (edit_command): Update.
503 (list_command): Update.
504 (print_sal_location): Update.
505 * coffread.c (patch_opaque_types): Update.
506 (process_coff_symbol): Update.
507 (coff_read_enum_type): Update.
508 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
509 (convert_one_symbol): Update.
510 (hash_symname): Update.
511 (eq_symname): Update.
512 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
513 * compile/compile-cplus-types.c (debug_print_scope): Update.
514 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
515 * compile/compile-object-load.c (get_out_value_type): Update.
516 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
517 (search_symbol_list): Update.
518 (cp_lookup_symbol_imports_or_template): Update.
519 * cp-support.c (overload_list_add_symbol): Update.
520 * ctfread.c (psymtab_to_symtab): Update.
521 * dbxread.c (cp_set_block_scope): Update.
522 * dictionary.c (iter_match_first_hashed): Update.
523 (iter_match_next_hashed): Update.
524 (insert_symbol_hashed): Update.
525 (iter_match_next_linear): Update.
526 * dictionary.h: Update.
527 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
528 (locexpr_describe_location_piece): Update.
529 (locexpr_describe_location_1): Update.
530 (locexpr_generate_c_location): Update.
531 (loclist_describe_location): Update.
532 (loclist_generate_c_location): Update.
533 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
534 (read_func_scope): Update.
535 (process_enumeration_scope): Update.
536 (new_symbol): Update.
537 (dwarf2_const_value): Update.
538 (dwarf2_symbol_mark_computed): Update.
539 * eval.c (evaluate_funcall): Update.
540 (evaluate_subexp_standard): Update.
541 * expprint.c (print_subexp_standard): Update.
542 (dump_subexp_body_standard): Update.
543 * f-valprint.c (info_common_command_for_block): Update.
544 * findvar.c (get_hosting_frame): Update.
545 (default_read_var_value): Update.
546 * go-lang.c (go_symbol_package_name): Update.
547 * guile/scm-block.c (bkscm_print_block_smob): Update.
548 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
549 (gdbscm_symbol_name): Update.
550 (gdbscm_symbol_linkage_name): Update.
551 (gdbscm_symbol_print_name): Update.
552 * infcall.c (get_function_name): Update.
553 * infcmd.c (jump_command): Update.
554 (finish_command): Update.
555 * infrun.c (insert_exception_resume_breakpoint): Update.
556 * linespec.c (canonicalize_linespec): Update.
557 (create_sals_line_offset): Update.
558 (convert_linespec_to_sals): Update.
559 (complete_label): Update.
560 (find_label_symbols_in_block): Update.
561 * m2-typeprint.c (m2_print_typedef): Update.
562 * mdebugread.c (mdebug_reg_to_regnum): Update.
563 (parse_symbol): Update.
564 (mylookup_symbol): Update.
565 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
566 (list_args_or_locals): Update.
567 * objc-lang.c (compare_selectors): Update.
568 (info_selectors_command): Update.
569 (compare_classes): Update.
570 (info_classes_command): Update.
571 (find_imps): Update.
572 * p-typeprint.c (pascal_print_typedef): Update.
573 * printcmd.c (build_address_symbolic): Update.
574 (info_address_command): Update.
575 (print_variable_and_value): Update.
576 * python/py-framefilter.c (extract_sym): Update.
577 (py_print_single_arg): Update.
578 * python/py-symbol.c (sympy_str): Update.
579 (sympy_get_name): Update.
580 (sympy_get_linkage_name): Update.
581 * python/python.c (gdbpy_rbreak): Update.
582 * record-btrace.c (btrace_get_bfun_name): Update.
583 (btrace_call_history): Update.
584 * rust-lang.c (rust_print_typedef): Update.
585 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
586 * stabsread.c (stab_reg_to_regnum): Update.
587 (define_symbol): Update.
588 (read_enum_type): Update.
589 (common_block_end): Update.
590 (cleanup_undefined_types_1): Update.
591 (scan_file_globals): Update.
592 * stack.c (print_frame_arg): Update.
593 (print_frame_args): Update.
594 (find_frame_funname): Update.
595 (info_frame_command_core): Update.
596 (iterate_over_block_locals): Update.
597 (print_block_frame_labels): Update.
598 (do_print_variable_and_value): Update.
599 (iterate_over_block_arg_vars): Update.
600 (return_command): Update.
601 * symmisc.c (dump_symtab_1): Update.
602 (print_symbol): Update.
603 * symtab.c (eq_symbol_entry): Update.
604 (symbol_cache_dump): Update.
605 (lookup_language_this): Update.
606 (find_pc_sect_line): Update.
607 (skip_prologue_sal): Update.
608 (symbol_search::compare_search_syms): Update.
609 (treg_matches_sym_type_name): Update.
610 (search_symbols): Update.
611 (print_symbol_info): Update.
612 (rbreak_command): Update.
613 (completion_list_add_symbol): Update.
614 (find_gnu_ifunc): Update.
615 (get_symbol_address): Update.
616 (search_module_symbols): Update.
617 (info_module_subcommand): Update.
618 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
619 (SYMBOL_LINKAGE_NAME): Remove.
620 (SYMBOL_DEMANGLED_NAME): Remove.
621 (SYMBOL_PRINT_NAME): Remove.
622 (SYMBOL_SEARCH_NAME): Remove.
623 * tracepoint.c (set_traceframe_context): Update.
624 (validate_actionline): Update.
625 (collection_list::collect_symbol): Update.
626 (encode_actions_1): Update.
627 (info_scope_command): Update.
628 (print_one_static_tracepoint_marker): Update.
629 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
630 * valops.c (address_of_variable): Update.
631 (find_overload_match): Update.
632 (find_oload_champ): Update.
633
c9d95fa3
CB
6342019-11-22 Christian Biesinger <cbiesinger@google.com>
635
636 * ada-lang.c (ada_lookup_simple_minsym): Update.
637 (ada_collect_symbol_completion_matches): Update.
638 * ada-tasks.c (read_atcb): Update.
639 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
640 (amd64_windows_skip_trampoline_code): Update.
641 * arm-tdep.c (skip_prologue_function): Update.
642 (arm_skip_stack_protector): Update.
643 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
644 (arm_wince_skip_main_prologue): Update.
645 * ax-gdb.c (gen_expr): Update.
646 * block.c (call_site_for_pc): Update.
647 * blockframe.c (find_pc_partial_function): Update.
648 * breakpoint.c (set_breakpoint_location_function): Update.
649 * btrace.c (ftrace_print_function_name): Update.
650 (ftrace_function_switched): Update.
651 * c-valprint.c (print_unpacked_pointer): Update.
652 * coffread.c (coff_symfile_read): Update.
653 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
654 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
655 * dwarf-index-write.c (write_psymbols): Update.
656 * dwarf2loc.c (call_site_to_target_addr): Update.
657 (func_verify_no_selftailcall): Update.
658 (tailcall_dump): Update.
659 (call_site_find_chain_1): Update.
660 (dwarf_expr_reg_to_entry_parameter): Update.
661 * elfread.c (elf_gnu_ifunc_record_cache): Update.
662 * eval.c (evaluate_funcall): Update.
663 (evaluate_subexp_standard): Update.
664 (evaluate_subexp_for_sizeof): Update.
665 * expprint.c (print_subexp_standard): Update.
666 (dump_subexp_body_standard): Update.
667 * frame.c (get_prev_frame_always_1): Update.
668 * frv-tdep.c (frv_skip_main_prologue): Update.
669 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
670 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
671 (gnuv3_get_typename_from_type_info): Update.
672 (gnuv3_skip_trampoline): Update.
673 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
674 * i386-tdep.c (i386_skip_main_prologue): Update.
675 (i386_pe_skip_trampoline_code): Update.
676 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
677 * infcall.c (get_function_name): Update.
678 * linespec.c (minsym_found): Update.
679 * linux-fork.c (info_checkpoints_command): Update.
680 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
681 (m32c_m16c_pointer_to_address): Update.
682 * maint.c (maintenance_translate_address): Update.
683 * minsyms.c (add_minsym_to_hash_table): Update.
684 (add_minsym_to_demangled_hash_table): Update.
685 (lookup_minimal_symbol_mangled): Update.
686 (lookup_minimal_symbol_demangled): Update.
687 (lookup_minimal_symbol_linkage): Update.
688 (lookup_minimal_symbol_text): Update.
689 (lookup_minimal_symbol_by_pc_name): Update.
690 (minimal_symbol_is_less_than): Update.
691 (compact_minimal_symbols): Update.
692 (build_minimal_symbol_hash_tables): Update.
693 (find_solib_trampoline_target): Update.
694 * mips-tdep.c (mips_stub_frame_sniffer): Update.
695 (mips_skip_pic_trampoline_code): Update.
696 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
697 * objc-lang.c (info_selectors_command): Update.
698 (info_classes_command): Update.
699 (find_methods): Update.
700 (find_imps): Update.
701 * p-valprint.c (pascal_val_print): Update.
702 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
703 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
704 * printcmd.c (build_address_symbolic): Update.
705 (info_symbol_command): Update.
706 * psymtab.c (psymbol_name_matches): Update.
707 (match_partial_symbol): Update.
708 (lookup_partial_symbol): Update.
709 (print_partial_symbols): Update.
710 (sort_pst_symbols): Update.
711 (maintenance_check_psymtabs): Update.
712 * python/py-framefilter.c (py_print_frame): Update.
713 * python/python.c (gdbpy_rbreak): Update.
714 * record-btrace.c (btrace_get_bfun_name): Update.
715 (btrace_call_history): Update.
716 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
717 (rs6000_skip_trampoline_code): Update.
718 * sol-thread.c (info_cb): Update.
719 * stabsread.c (scan_file_globals): Update.
720 * stack.c (find_frame_funname): Update.
721 (info_frame_command_core): Update.
722 * symmisc.c (dump_msymbols): Update.
723 * symtab.c (symbol_natural_name): Rename to..,
724 (general_symbol_info::natural_name): ...this.
725 (symbol_demangled_name): Rename to...
726 (general_symbol_info::demangled_name): ...this.
727 (symbol_search_name): Rename to...
728 (general_symbol_info::search_name): ...this.
729 (symbol_matches_search_name): Update.
730 (find_pc_sect_line): Update.
731 (skip_prologue_sal): Update.
732 (search_symbols): Update.
733 (print_msymbol_info): Update.
734 (rbreak_command): Update.
735 (completion_list_add_msymbol): Update.
736 (completion_list_objc_symbol): Update.
737 (get_msymbol_address): Update.
738 * symtab.h (struct general_symbol_info): Add member functions
739 natural_name (), linkage_name (), print_name (), demangled_name (),
740 and search_name ().
741 (SYMBOL_NATURAL_NAME): Update.
742 (symbol_natural_name): Move to a member function on general_symbol_info.
743 (SYMBOL_DEMANGLED_NAME): Update.
744 (symbol_demangled_name): Move to a member function on
745 general_symbol_info.
746 (SYMBOL_SEARCH_NAME): Update.
747 (symbol_search_name): Move to a member function on general_symbol_info.
748 (MSYMBOL_NATURAL_NAME): Remove.
749 (MSYMBOL_LINKAGE_NAME): Remove.
750 (MSYMBOL_PRINT_NAME): Remove.
751 (MSYMBOL_DEMANGLED_NAME): Remove.
752 (MSYMBOL_SEARCH_NAME): Remove.
753 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
754
f8bab2d6
CB
7552019-11-22 Christian Biesinger <cbiesinger@google.com>
756
757 * symtab.c (create_demangled_names_hash): Use per_bfd->
758 minimal_symbol_count for computing the initial size, if greater
759 than our default size.
760
85e7588d
TV
7612019-11-22 Tom de Vries <tdevries@suse.de>
762
763 * contrib/words.sh: Improve words extraction.
764
f6180073
TV
7652019-11-22 Tom de Vries <tdevries@suse.de>
766
767 * contrib/words.sh: Combine sed invocations.
768
f10ffa41
CB
7692019-11-21 Christian Biesinger <cbiesinger@google.com>
770
771 * Makefile.in: Update.
772 * demangle.c: Rename to...
773 * gdb-demangle.c: ..this.
774 (is_cplus_marker): Change return type to bool.
775 (_initialize_demangler): Rename to...
776 (_initialize_gdb_demangle): ...this.
777 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
778 * symtab.h (demangle): Remove declaration; instead include
779 gdb-demangle.h.
780
6ba18521
TT
7812019-11-21 Tom Tromey <tromey@adacore.com>
782
783 * gdbsupport/format.c (format_pieces): Parse %I64d.
784 * unittests/format_pieces-selftests.c (test_windows_formats): New
785 function.
786 (run_tests): Call it.
787
34877895
PJ
7882019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
789
790 Byte reverse display of variables with DW_END_big, DW_END_little
791 (DW_AT_endianity) dwarf attributes if different than the native
792 byte order.
793 * ada-lang.c (ada_value_binop):
794 Use type_byte_order instead of gdbarch_byte_order.
795 * ada-valprint.c (printstr):
796 (ada_val_print_string):
797 * ada-lang.c (value_pointer):
798 (ada_value_binop):
799 Use type_byte_order instead of gdbarch_byte_order.
800 * c-lang.c (c_get_string):
801 Use type_byte_order instead of gdbarch_byte_order.
802 * c-valprint.c (c_val_print_array):
803 Use type_byte_order instead of gdbarch_byte_order.
804 * cp-valprint.c (cp_print_class_member):
805 Use type_byte_order instead of gdbarch_byte_order.
806 * dwarf2loc.c (rw_pieced_value):
807 Use type_byte_order instead of gdbarch_byte_order.
808 * dwarf2read.c (read_base_type): Handle DW_END_big,
809 DW_END_little
810 * f-lang.c (f_get_encoding):
811 Use type_byte_order instead of gdbarch_byte_order.
812 * findvar.c (default_read_var_value):
813 Use type_byte_order instead of gdbarch_byte_order.
814 * gdbtypes.c (check_types_equal):
815 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
816 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
817 and TYPE_ENDIANITY_LITTLE if set.
818 (type_byte_order): new function.
819 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
820 (struct main_type) <flag_endianity_not_default>:
821 New field.
822 (type_byte_order): New function.
823 * infcmd.c (default_print_one_register_info):
824 Use type_byte_order instead of gdbarch_byte_order.
825 * p-lang.c (pascal_printstr):
826 Use type_byte_order instead of gdbarch_byte_order.
827 * p-valprint.c (pascal_val_print):
828 Use type_byte_order instead of gdbarch_byte_order.
829 * printcmd.c (print_scalar_formatted):
830 Use type_byte_order instead of gdbarch_byte_order.
831 * solib-darwin.c (darwin_current_sos):
832 Use type_byte_order instead of gdbarch_byte_order.
833 * solib-svr4.c (solib_svr4_r_ldsomap):
834 Use type_byte_order instead of gdbarch_byte_order.
835 * stap-probe.c (stap_modify_semaphore):
836 Use type_byte_order instead of gdbarch_byte_order.
837 * target-float.c (target_float_same_format_p):
838 Use type_byte_order instead of gdbarch_byte_order.
839 * valarith.c (scalar_binop):
840 (value_bit_index):
841 Use type_byte_order instead of gdbarch_byte_order.
842 * valops.c (value_cast):
843 Use type_byte_order instead of gdbarch_byte_order.
844 * valprint.c (generic_emit_char):
845 (generic_printstr):
846 (val_print_string):
847 Use type_byte_order instead of gdbarch_byte_order.
848 * value.c (unpack_long):
849 (unpack_bits_as_long):
850 (unpack_value_bitfield):
851 (modify_field):
852 (pack_long):
853 (pack_unsigned_long):
854 Use type_byte_order instead of gdbarch_byte_order.
855 * findvar.c (unsigned_pointer_to_address):
856 (signed_pointer_to_address):
857 (unsigned_address_to_pointer):
858 (address_to_signed_pointer):
859 (default_read_var_value):
860 (default_value_from_register):
861 Use type_byte_order instead of gdbarch_byte_order.
862 * gnu-v3-abi.c (gnuv3_make_method_ptr):
863 Use type_byte_order instead of gdbarch_byte_order.
864 * riscv-tdep.c (riscv_print_one_register_info):
865 Use type_byte_order instead of gdbarch_byte_order.
866
87fb00ea
SM
8672019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
868
869 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
870 (current_ui_gdb_stdin_ptr): Likewise.
871 (current_ui_gdb_stderr_ptr): Likewise.
872 (current_ui_gdb_stdlog_ptr): Likewise.
873 (current_ui_current_uiout_ptr): Likewise.
874 (gen_ret_current_ui_field_ptr): Remove.
875
65d1cd5f
TV
8762019-11-21 Tom de Vries <tdevries@suse.de>
877
878 PR gdb/24956
879 * cli/cli-script.c (execute_control_command): Only switch to
880 INTERP_CONSOLE's ui_out when INTERP_MI is active.
881
9f6ad286
TT
8822019-11-19 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
885 Now static. Change type of "name".
886 (tui_set_win_height_command): Don't copy "arg".
887 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
888 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
889
435d3d88
AT
8902019-11-19 Ali Tamur <tamur@google.com>
891
892 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
893 "if (attr != nullptr)".
894 (dwarf2_find_base_address): Likewise.
895 (dwarf2_build_include_psymtabs): Likewise.
896 (read_cutu_die_from_dwo): Likewise.
897 (read_func_scope): Likewise.
898 (read_call_site_scope): Likewise.
899 (dwarf2_get_pc_bounds): Likewise.
900 (dwarf2_record_block_ranges): Likewise.
901 (dwarf2_add_field): Likewise.
902 (dwarf2_add_member_fn): Likewise.
903 (read_structure_type): Likewise.
904 (read_enumeration_type): Likewise.
905 (read_array_type): Likewise.
906 (read_array_order): Likewise.
907 (read_set_type): Likewise.
908 (read_common_block): Likewise.
909 (read_tag_reference_type): Likewise.
910 (read_tag_string_type): Likewise.
911 (read_subroutine_type): Likewise.
912 (read_base_type): Likewise.
913 (read_subrange_type): Likewise.
914 (new_symbol): Likewise.
915 (prepare_one_comp_unit): Likewise.
916
c9739b6a
TT
9172019-11-19 Tom Tromey <tromey@adacore.com>
918
919 * windows-nat.c (windows_nat_target::attach): Include GetLastError
920 result in error when DebugActiveProcess fails.
921
494409bb
SDJ
9222019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
923 Pedro Alves <palves@redhat.com>
924
925 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
926 * target.c (target_stack::push): Call 'unpush' if there's a
927 target on top of the stack.
928
2e953aca
PW
9292019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
930
931 * python/py-block.c (blpy_dealloc): Call tp_free.
932 (blpy_block_syms_dealloc): Likewise.
933 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
934 * python/py-inferior.c (infpy_dealloc): Likewise.
935 * python/py-lazy-string.c (stpy_dealloc): Likewise.
936 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
937 * python/py-symbol.c (sympy_dealloc): Likewise.
938 * python/py-symtab.c (stpy_dealloc): Likewise.
939 * python/py-type.c (typy_iterator_dealloc): Likewise.
940
6edc43ec
CB
9412019-11-18 Christian Biesinger <cbiesinger@google.com>
942
943 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
944 constructor instead of using a class initializer.
945
cd850b40
CB
9462019-11-15 Christian Biesinger <cbiesinger@google.com>
947
948 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
949 * configure: Regenerate.
950 * configure.ac: Don't source common.host.
951 * gdbsupport/common.host: Remove.
952 * gdbsupport/mingw-strerror.c: Remove.
953 * gdbsupport/posix-strerror.c: Rename to...
954 * gdbsupport/safe-strerror.c: ...this.
955
53fea9c7
CB
9562019-11-15 Christian Biesinger <cbiesinger@google.com>
957
958 * maint.c (scoped_command_stats::print_time): Use localtime_r
959 instead of localtime (provided through gnulib if necessary).
960 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
961 of ctime.
962
f8e27d88
CB
9632019-11-15 Christian Biesinger <cbiesinger@google.com>
964
965 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
966 avoid compile errors.
967
5abebf3c
CB
9682019-11-15 Christian Biesinger <cbiesinger@google.com>
969
970 * config.in: Regenerate.
971 * configure: Regenerate.
972 * gdbsupport/common.m4: No longer check for strerror_r.
973 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
974 POSIX version of strerror_r, now that gnulib provides it if
975 necessary.
976
9a351667
CB
9772019-11-14 Christian Biesinger <cbiesinger@google.com>
978
979 * README (`configure' options): Update.
980
55708e99
TT
9812019-11-14 Tom Tromey <tromey@adacore.com>
982
983 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
984 expected type for the RHS if the LHS is a convenience variable.
985
4b09bb2e
SM
9862019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
987
988 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
989 Provide explicit default and copy constructor.
990
bd454f8b
PW
9912019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
992
993 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
994 only call Py_INCREF (newbp) in the bppy_pending_object case.
995
d1aa3cf0
TT
9962019-11-13 Tom Tromey <tromey@adacore.com>
997
998 PR build/25182:
999 * psympriv.h (partial_symbol): Remove static assert.
1000 * symtab.h (general_symbol_info, symbol): Remove static assert.
1001
e06f3d6e
AB
10022019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1003
1004 * gdbsupport/format.c (format_pieces::format_pieces): Support
1005 printf 'z' size modifier.
1006 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1007 * printcmd.c (ui_printf): Handle size_t_arg.
1008 * ui-out.c (ui_out::vmessage): Likewise.
1009 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1010 function.
1011 (run_tests): Call test_format_int_sizes.
1012
468c0cbb
CB
10132019-11-12 Christian Biesinger <cbiesinger@google.com>
1014
1015 * ada-exp.y (write_ambiguous_var): Update.
1016 * buildsym.c (add_symbol_to_list): Update.
1017 * dwarf2read.c (read_variable): Update.
1018 (new_symbol): Update.
1019 * jit.c (finalize_symtab): Update.
1020 * language.c (language_alloc_type_symbol): Update.
1021 * symtab.c (fixup_symbol_section): Update.
1022 (initialize_objfile_symbol_1): Move code to...
1023 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1024 (allocate_symbol): Update.
1025 (allocate_template_symbol): Update.
1026 (get_symbol_address): Update.
1027 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1028 of having as a field, and add a constructor.
1029 (SYMBOL_VALUE): Update.
1030 (SYMBOL_VALUE_ADDRESS): Update.
1031 (SET_SYMBOL_VALUE_ADDRESS): Update.
1032 (SYMBOL_VALUE_BYTES): Update.
1033 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1034 (SYMBOL_BLOCK_VALUE): Update.
1035 (SYMBOL_VALUE_CHAIN): Update.
1036 (SYMBOL_LANGUAGE): Update.
1037 (SYMBOL_SECTION): Update.
1038 (SYMBOL_OBJ_SECTION): Update.
1039 (SYMBOL_SET_LANGUAGE): Update.
1040 (SYMBOL_SET_LINKAGE_NAME): Update.
1041 (SYMBOL_SET_NAMES): Update.
1042 (SYMBOL_NATURAL_NAME): Update.
1043 (SYMBOL_LINKAGE_NAME): Update.
1044 (SYMBOL_DEMANGLED_NAME): Update.
1045 (SYMBOL_SEARCH_NAME): Update.
1046 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1047 (struct symbol): Update.
1048 (struct template_symbol): Update.
1049 (struct rust_vtable_symbol): Update.
1050 * xcoffread.c (SYMBOL_DUP): Update.
1051
ed2c82c3
TT
10522019-11-12 Tom Tromey <tom@tromey.com>
1053
1054 * tui/tui-layout.c (show_layout): Set current_layout.
1055 (show_source_disasm_command, show_data)
1056 (show_source_or_disasm_and_command): Don't set current_layout.
1057
d9fcefd5
TT
10582019-11-12 Tom Tromey <tom@tromey.com>
1059
1060 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1061
45e42163
TT
10622019-11-12 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-win.c (resize_message): New global.
1065 (show_tui_resize_message): New function.
1066 (tui_async_resize_screen): Print message if requested.
1067 (_initialize_tui_win): Add tui-resize-message setting.
1068 * NEWS: Add entry for new commands.
1069
c86d74cc
TT
10702019-11-11 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1073 functions.
1074
7b7b9424
CB
10752019-11-11 Christian Biesinger <cbiesinger@google.com>
1076
1077 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1078
086baaf1
AB
10792019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1082 function.
1083 * python/python-internal.h (gdbpy_lookup_static_symbols):
1084 Declare new function.
1085 * python/python.c (python_GdbMethods): Add
1086 gdb.lookup_static_symbols method.
1087 * NEWS: Mention gdb.lookup_static_symbols.
1088
09ff83af
AB
10892019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1092 static block of current object file first. Also fix typo in
1093 header comment.
1094
eb2dd8df
AB
10952019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * stack.c (set_last_displayed_sal): Delete.
1098 (last_displayed_sal_valid): Delete.
1099 (last_displayed_pspace): Delete.
1100 (last_displayed_addr): Delete.
1101 (last_displayed_symtab): Delete.
1102 (last_displayed_line): Delete.
1103 (class last_displayed_symtab_info_type): New.
1104 (last_displayed_symtab_info): New static global variable.
1105 (print_frame_info): Call methods on last_displayed_symtab_info.
1106 (clear_last_displayed_sal): Update header comment, and make use of
1107 last_displayed_symtab_info.
1108 (last_displayed_sal_is_valid): Likewise.
1109 (get_last_displayed_pspace): Likewise.
1110 (get_last_displayed_addr): Likewise.
1111 (get_last_displayed_symtab): Likewise.
1112 (get_last_displayed_line): Likewise.
1113 (get_last_displayed_sal): Likewise.
1114 * stack.h (clear_last_displayed_sal): Update header comment.
1115 (last_displayed_sal_is_valid): Likewise.
1116 (get_last_displayed_pspace): Likewise.
1117 (get_last_displayed_addr): Likewise.
1118 (get_last_displayed_symtab): Likewise.
1119 (get_last_displayed_line): Likewise.
1120 (get_last_displayed_sal): Likewise.
1121
62137775
AB
11222019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * stack.c (frame_show_address): Convert return type to bool.
1125 * stack.h (frame_show_address): Likewise, and update header
1126 comment.
1127
cf57ad6d
AB
11282019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1131 * unittests/vec-utils-selftests.c: New file.
1132 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1133
0b026263
TT
11342019-11-10 Tom Tromey <tom@tromey.com>
1135
1136 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1137 (tui_highlight_win): Likewise.
1138 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1139 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1140 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1141 Don't set can_highlight.
1142
b049ce2d
TT
11432019-11-10 Tom Tromey <tom@tromey.com>
1144
1145 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1146 Remove unused declaration.
1147
992a7040
TT
11482019-11-08 Tom Tromey <tromey@adacore.com>
1149
1150 * top.c (read_command_file): Update.
1151 (command_line_input): Make return type const.
1152 * python/py-gdb-readline.c: Update.
1153 * linespec.c (decode_line_2): Update.
1154 * defs.h (command_line_input): Make return type const.
1155 * cli/cli-script.c (read_next_line): Make return type const.
1156 * ada-lang.c (get_selections): Update.
1157
ca3a04f6
CB
11582019-11-06 Christian Biesinger <cbiesinger@google.com>
1159
1160 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1161 * mi/mi-main.c (output_cores): Likewise.
1162 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1163 (linux_xfer_osdata_modules): Likewise.
1164 * remote.c (register_remote_support_xml): Likewise.
1165 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1166 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1167
e0eac551
TT
11682019-11-06 Tom Tromey <tom@tromey.com>
1169
1170 * tui/tui-interp.c: Don't include readline.h.
1171 * tui/tui-hooks.c: Don't include readline.h.
1172 * symmisc.c: Include tilde.h, not readline.h.
1173 * symfile.c: Include tilde.h, not readline.h.
1174 * source.c: Include tilde.h, not readline.h.
1175 * solib.c: Include tilde.h, not readline.h.
1176 * psymtab.c: Include tilde.h, not readline.h.
1177 * exec.c: Include tilde.h, not readline.h.
1178 * corelow.c: Include tilde.h, not readline.h.
1179 * cli/cli-dump.c: Include tilde.h, not readline.h.
1180 * cli/cli-cmds.c: Don't include readline.h.
1181
825165c5
TT
11822019-11-05 Tom Tromey <tom@tromey.com>
1183
1184 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1185 (tui_disassemble): Set addr_size.
1186 (tui_disasm_window::set_contents): Use addr_size.
1187
91ae903f
TT
11882019-11-05 Tom Tromey <tom@tromey.com>
1189
1190 * rust-lang.c (rust_language_defn): Update.
1191 * python/py-value.c (valpy_string): Call c_get_string.
1192 * p-lang.c (pascal_language_defn): Update.
1193 * opencl-lang.c (opencl_language_defn): Update.
1194 * objc-lang.c (objc_language_defn): Update.
1195 * m2-lang.c (m2_language_defn): Update.
1196 * language.c (unknown_language_defn, auto_language_defn): Update.
1197 (default_get_string): Remove.
1198 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1199 * go-lang.c (go_language_defn): Update.
1200 * f-lang.c (f_language_defn): Update.
1201 * d-lang.c (d_language_defn): Update.
1202 * c-lang.c (c_language_defn, cplus_language_defn)
1203 (asm_language_defn, minimal_language_defn): Update.
1204 * ada-lang.c (ada_language_defn): Update.
1205 * language.h (struct language_defn) <la_get_string>: Remove.
1206 (LA_GET_STRING): Remove.
1207 (default_get_string): Don't declare.
1208
1df2f9ef
TT
12092019-11-05 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-source.h (struct tui_source_window): Inline
1212 constructor. Remove destructor.
1213 <style_changed, m_observable>: Move to superclass.
1214 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1215 (struct tui_source_window_base): Move private members to end.
1216 <style_changed, m_observable>: Move from tui_source_window.
1217 * tui/tui-winsource.c (tui_copy_source_line): Move from
1218 tui-source.c. Rename from copy_source_line. Add special handling
1219 for negative line number.
1220 (tui_source_window_base::style_changed): Move from
1221 tui_source_window.
1222 (tui_source_window_base): Register observer.
1223 (~tui_source_window_base): New.
1224 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1225 rename.
1226 (tui_source_window::set_contents): Use tui_copy_source_line.
1227 (tui_source_window::tui_source_window): Move to tui-source.h.
1228 (tui_source_window::~tui_source_window): Remove.
1229 (tui_source_window::style_changed): Move to superclass.
1230 * tui/tui-disasm.c (tui_disassemble): Create string file with
1231 styling, when possible. Add "addr_size" parameter.
1232 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1233 Don't compute maximum size.
1234 (len_without_escapes): New function
1235
5d051055
TT
12362019-11-05 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1239 std::string.
1240 * tui/tui-winsource.c (tui_show_source_line): Update.
1241 * tui/tui-source.c (tui_source_window::set_contents): Update.
1242 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1243
ade7beea
CB
12442019-11-05 Christian Biesinger <cbiesinger@google.com>
1245
1246 * symtab.h (gdb_static_assert): Put && operator at the beginning
1247 of the line instead of the end.
1248
3573abe1
CB
12492019-11-04 Christian Biesinger <cbiesinger@google.com>
1250
1251 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1252 and sizeof (symbol).
1253 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1254
dae8b3eb
RO
12552019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1256
1257 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1258 * configure.host: Mark *-*-solaris2.10* obsolete.
1259 * configure.tgt: Mark Solaris < 11 obsolete.
1260 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1261 Update target triplet.
1262
5df96a4e
TT
12632019-11-01 Tom Tromey <tromey@adacore.com>
1264
1265 * utils.c (print_sys_errmsg): Simplify.
1266
b7481649
TT
12672019-11-01 Tom Tromey <tromey@adacore.com>
1268
1269 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1270
e48f6033
CB
12712019-11-01 Christian Biesinger <cbiesinger@google.com>
1272
1273 * configure: Regenerate.
1274 * configure.ac: Remove check for strerror_r.
1275 * gdbsupport/common.m4: Check for strerror_r.
1276
bd5766ec
LM
12772019-11-01 Luis Machado <luis.machado@linaro.org>
1278
1279 PR gdb/25124
1280
1281 * arm-tdep.c (arm_per_objfile): Rename to ...
1282 (arm_per_bfd): ... this.
1283 (arm_objfile_data_key): Rename to ...
1284 (arm_bfd_data_key): ... this.
1285 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1286 data.
1287 (arm_record_special_symbol): Likewise.
1288
e1709896
AB
12892019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1292 end.
1293 * c-typeprint.c (c_print_typedef): Likewise.
1294 * f-typeprint.c (f_print_typedef): Likewise.
1295 * m2-typeprint.c (m2_print_typedef): Likewise.
1296 * p-typeprint.c (pascal_print_typedef): Likewise.
1297 * rust-lang.c (rust_print_typedef): Likewise.
1298 * symtab.c (print_symbol_info): Print a newline after calling
1299 typedef_print.
1300
165f8965
AB
13012019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * symtab.c (info_module_cmdlist): New variable.
1304 (info_module_command): New function.
1305 (search_module_symbols): New function.
1306 (info_module_subcommand): New function.
1307 (struct info_modules_var_func_options): New struct.
1308 (info_modules_var_func_options_defs): New variable.
1309 (make_info_modules_var_func_options_def_group): New function.
1310 (info_module_functions_command): New function.
1311 (info_module_variables_command): New function.
1312 (info_module_var_func_command_completer): New function.
1313 (_initialize_symtab): Register new 'info module functions' and
1314 'info module variables' commands.
1315 * symtab.h (typedef symbol_search_in_module): New typedef.
1316 (search_module_symbols): Declare new function.
1317 * NEWS: Mention new commands.
1318
59c35742
AB
13192019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1322 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1323 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1324 MODULES_DOMAIN.
1325 (scan_partial_symbols): Only create partial module symbols for non
1326 declarations.
1327 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1328 and MODULES_DOMAIN.
1329 * symtab.c (search_domain_name): Likewise.
1330 (search_symbols): Likewise.
1331 (print_symbol_info): Likewise.
1332 (symtab_symbol_info): Likewise.
1333 (info_modules_command): New function.
1334 (_initialize_symtab): Register 'info modules' command.
1335 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1336 * NEWS: Mention new 'info modules' command.
1337
aed61d02
PW
13382019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1339
1340 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1341 and $_gdb_maint_setting_str.
1342
9ad9b77d
PW
13432019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1344
1345 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1346 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1347 (str_value_from_setting, gdb_setting_str_internal_fn)
1348 (gdb_maint_setting_str_internal_fn): New functions.
1349 (_initialize_cli_cmds): Define the new convenience functions.
1350 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1351 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1352
8d6efaa2
CB
13532019-10-31 Christian Biesinger <cbiesinger@google.com>
1354
1355 * agent.c (set_can_use_agent): When the setting is turned on,
1356 look up agent symbols if we don't have them yet.
1357 (agent_new_objfile): Don't look up agent symbols when the agent
1358 setting is off.
1359
33cb1647
CB
13602019-10-31 Christian Biesinger <cbiesinger@google.com>
1361
1362 * config.in: Regenerate.
1363
b231e86a
CB
13642019-10-31 Christian Biesinger <cbiesinger@google.com>
1365
1366 * configure: Regenerate.
1367 * configure.ac: Check for strerror_r.
1368 * gdbsupport/common-utils.h (safe_strerror): Change return value
1369 to const char * and document that this function is now threadsafe.
1370 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1371 thread_local and call strerror_r, if available.
1372 * utils.c (perror_string): Update.
1373 (print_sys_errmsg): Update.
1374
a2726d4f
LM
13752019-10-31 Luis Machado <luis.machado@linaro.org>
1376
1377 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1378 objfile_key.
1379 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1380 objfile to fetch per-bfd data.
1381 (arm_find_exidx_entry): Likewise.
1382
75cafaa6
CB
13832019-10-31 Christian Biesinger <cbiesinger@google.com>
1384
1385 * gdbsupport/agent.c (debug_agent): Change type to bool.
1386 (use_agent): Likewise.
1387 (all_agent_symbols_look_up): Likewise.
1388 (agent_loaded_p): Change return value to bool.
1389 (agent_look_up_symbols): Update.
1390 (agent_capability_check): Change return value to bool.
1391 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1392 (debug_agent): Change type to bool.
1393 (use_agent): Likewise.
1394 (agent_capability_check): Change return value to bool.
1395
808590ec
CB
13962019-10-30 Christian Biesinger <cbiesinger@google.com>
1397
1398 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1399 (build_minimal_symbol_hash_tables): Code to clear the table moved
1400 to clear_minimal_symbol_hash_tables.
1401 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1402 when needed.
1403
f18ad8a1
SM
14042019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * infcmd.c: Remove includes.
1407 * infrun.c: Remove includes.
1408
de93309a
SM
14092019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1412 (grow_vect): Remove declaration.
1413 (ada_type_of_array): Remove declaration.
1414 (ada_update_initial_language): Remove declaration.
1415 (ada_fold_name): Remove declaration.
1416 (ada_fill_in_ada_prototype): Remove declaration.
1417 (user_select_syms): Remove declaration.
1418 (get_selections): Remove declaration.
1419 (ada_tag_type): Remove declaration.
1420 (ada_value_tag): Remove declaration.
1421 (ada_is_others_clause): Remove declaration.
1422 (ada_in_variant): Remove declaration.
1423 (ada_value_struct_elt): Remove declaration.
1424 (ada_attribute_name): Remove declaration.
1425 (ada_system_address_type): Remove declaration.
1426 * ada-lang.c (ada_watch_location_expression): Make static.
1427 (GROW_VECT): Move here from ada-lang.h.
1428 (grow_vect): Make static.
1429 (ada_update_initial_language): Make static.
1430 (ada_fold_name): Make static.
1431 (ada_type_of_array): Make static.
1432 (encoded_ordered_before): Move up.
1433 (sort_choices): Move up.
1434 (print_signatures): Move up.
1435 (ada_print_symbol_signature): Move up.
1436 (get_selections): Move up and make static.
1437 (user_select_syms): Move up and make static.
1438 (ada_value_struct_elt): Move up and make static.
1439 (ada_tag_type): Make static.
1440 (ada_value_tag): Make static.
1441 (ada_is_others_clause): Make static.
1442 (ada_in_variant): Make static.
1443 (ada_attribute_name): Make static.
1444
cdc46a9f
SM
14452019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1446
1447 * ada-lang.c: Remove includes.
1448 * ada-typeprint.c: Remove includes.
1449 * ada-valprint.c: Remove includes.
1450
90421c56
SM
14512019-10-29 Simon Marchi <simon.marchi@efficios.com>
1452
1453 * addrmap.c: Add static assertions of type size, moved from
1454 _initialize_addrmap.
1455 (_initialize_addrmap): Remove.
1456
31edb802
CB
14572019-10-29 Christian Biesinger <cbiesinger@google.com>
1458
1459 * coffread.c (record_minimal_symbol): Update.
1460 (process_coff_symbol): Update.
1461 * dbxread.c (read_dbx_symtab): Update.
1462 * dwarf2read.c (add_partial_symbol): Update.
1463 (fixup_go_packaging): Update.
1464 (load_partial_dies): Update.
1465 (new_symbol): Update.
1466 * elfread.c (record_minimal_symbol): Change signature to use
1467 gdb::string_view instead of name+len.
1468 (elf_symtab_read): Update.
1469 (elf_rel_plt_read): Update.
1470 * mdebugread.c (parse_partial_symbols): Update.
1471 (handle_psymbol_enumerators): Update.
1472 (new_symbol): Update.
1473 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1474 to use gdb::string_view instead of name+len.
1475 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1476 * psympriv.h (add_psymbol_to_list): Likewise.
1477 * psymtab.c (add_psymbol_to_bcache): Likewise.
1478 (add_psymbol_to_list): Likewise.
1479 * stabsread.c (define_symbol): Update.
1480 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1481 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1482 (symbol_set_names): Likewise.
1483 * xcoffread.c (scan_xcoff_symtab): Update.
1484
0c921b21
CB
14852019-10-29 Christian Biesinger <cbiesinger@google.com>
1486
1487 * symtab.h (symbol_set_names): Document that copy_name must be
1488 set to true for non-nullterminated strings.
1489 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1490 linkage_name if the entry was not found and we need to demangle.
1491
35e65c49
CB
14922019-10-29 Christian Biesinger <cbiesinger@google.com>
1493
1494 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1495 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1496 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1497 * gdbsupport/gdb_binary_search.h: New file.
1498
ed2a2229
CB
14992019-10-29 Christian Biesinger <cbiesinger@google.com>
1500
1501 * NEWS: Mention new --with-system-gdbinit-dir option.
1502 * config.in: Regenerate.
1503 * configure: Regenerate.
1504 * configure.ac: Add new option --with-system-gdbinit-dir.
1505 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1506 for a ".gdb" suffix.
1507 * main.c (get_init_files): Change system_gdbinit argument to
1508 a vector and return the files in SYSTEM_GDBINIT_DIR in
1509 addition to SYSTEM_GDBINIT.
1510 (captured_main_1): Update.
1511 (print_gdb_help): Update.
1512 * top.c (print_gdb_configuration): Also print the value of
1513 SYSTEM_GDBINIT_DIR.
1514
87f34879
CB
15152019-10-28 Christian Biesinger <cbiesinger@google.com>
1516
1517 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1518 that takes gdb::string_view arguments.
1519
30baf67b
TV
15202019-10-26 Tom de Vries <tdevries@suse.de>
1521
1522 * aarch64-linux-tdep.c: Fix typos in comments.
1523 * aarch64-tdep.c: Same.
1524 * ada-lang.c: Same.
1525 * amd64-nat.c: Same.
1526 * arc-tdep.c: Same.
1527 * arch/aarch64-insn.c: Same.
1528 * block.c: Same.
1529 * breakpoint.h: Same.
1530 * btrace.h: Same.
1531 * c-varobj.c: Same.
1532 * cli/cli-decode.c: Same.
1533 * cli/cli-script.c: Same.
1534 * cli/cli-utils.h: Same.
1535 * coff-pe-read.c: Same.
1536 * coffread.c: Same.
1537 * compile/compile-cplus-symbols.c: Same.
1538 * compile/compile-object-run.c: Same.
1539 * completer.c: Same.
1540 * corelow.c: Same.
1541 * cp-support.c: Same.
1542 * demangle.c: Same.
1543 * dwarf-index-write.c: Same.
1544 * dwarf2-frame.c: Same.
1545 * dwarf2-frame.h: Same.
1546 * eval.c: Same.
1547 * frame-base.h: Same.
1548 * frame.h: Same.
1549 * gdbcmd.h: Same.
1550 * gdbtypes.h: Same.
1551 * gnu-nat.c: Same.
1552 * guile/scm-objfile.c: Same.
1553 * i386-tdep.c: Same.
1554 * i386-tdep.h: Same.
1555 * infcall.c: Same.
1556 * infcall.h: Same.
1557 * linux-nat.c: Same.
1558 * m68k-tdep.c: Same.
1559 * macroexp.c: Same.
1560 * memattr.c: Same.
1561 * mi/mi-cmd-disas.c: Same.
1562 * mi/mi-getopt.h: Same.
1563 * mi/mi-main.c: Same.
1564 * minsyms.c: Same.
1565 * nat/aarch64-sve-linux-sigcontext.h: Same.
1566 * objfiles.h: Same.
1567 * ppc-linux-nat.c: Same.
1568 * ppc-linux-tdep.c: Same.
1569 * ppc-tdep.h: Same.
1570 * progspace.h: Same.
1571 * prologue-value.h: Same.
1572 * python/py-evtregistry.c: Same.
1573 * python/py-instruction.h: Same.
1574 * record-btrace.c: Same.
1575 * record-full.c: Same.
1576 * remote.c: Same.
1577 * rs6000-tdep.c: Same.
1578 * ser-tcp.c: Same.
1579 * sol-thread.c: Same.
1580 * sparc-sol2-tdep.c: Same.
1581 * sparc64-tdep.c: Same.
1582 * stabsread.c: Same.
1583 * symfile.c: Same.
1584 * symtab.h: Same.
1585 * target.c: Same.
1586 * tracepoint.c: Same.
1587 * tui/tui-data.h: Same.
1588 * tui/tui-io.c: Same.
1589 * tui/tui-win.c: Same.
1590 * tui/tui.c: Same.
1591 * unittests/rsp-low-selftests.c: Same.
1592 * user-regs.h: Same.
1593 * utils.c: Same.
1594 * utils.h: Same.
1595 * valarith.c: Same.
1596 * valops.c: Same.
1597 * valprint.c: Same.
1598 * valprint.h: Same.
1599 * value.c: Same.
1600 * value.h: Same.
1601 * varobj.c: Same.
1602 * x86-nat.h: Same.
1603 * xtensa-tdep.c: Same.
1604
1834d45f
AT
16052019-10-25 Ali Tamur <tamur@google.com>
1606
1607 * charset.c (find_charset_names): Reflect API change.
1608
5396ae17
CB
16092019-10-25 Christian Biesinger <cbiesinger@google.com>
1610
1611 * symtab.c (struct demangled_name_entry): Change demangled name
1612 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1613 part of the struct anymore.
1614 (symbol_set_names): No longer obstack allocate + copy the demangled
1615 name, just store the allocated name from bfd.
1616
93878f47
TT
16172019-10-25 Tom Tromey <tromey@adacore.com>
1618
1619 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1620 (bsearch_cie_cmp, add_cie): Remove.
1621 (find_cie): Reimplement.
1622 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1623 (dwarf2_build_frame_info): Update.
1624
7b71fc97
L
16252019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1626
1627 PR gdb/25126
1628 * symfile.c (reread_symbols): Call forget_cached_source_info to
1629 clear the stale source cache.
1630
cbb5a2ea
CB
16312019-10-24 Christian Biesinger <cbiesinger@google.com>
1632
1633 * configure: Regenerate.
1634 * configure.ac: Remove code that sets python_has_threads.
1635
71737c43
CB
16362019-10-24 Christian Biesinger <cbiesinger@google.com>
1637
1638 * config.in: Regenerate.
1639 * configure: Regenerate.
1640 * configure.ac: Remove the code that uses sed to get the python
1641 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1642
33d569b7
AB
16432019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1646 error paths.
1647
f16f7b7c
TT
16482019-10-23 Tom Tromey <tom@tromey.com>
1649
1650 * arc-tdep.c: Remove ".." from include.
1651 * frv-tdep.c: Remove ".." from include.
1652 * lm32-tdep.c: Remove ".." from include.
1653 * microblaze-tdep.c: Remove ".." from include.
1654 * or1k-tdep.h: Remove ".." from include.
1655 * s12z-tdep.c: Remove ".." from include.
1656 * Makefile.in (OPCODES_CFLAGS): Add comment.
1657 (TOP_CFLAGS): New variable.
1658 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1659
6999161a
TT
16602019-10-23 Tom Tromey <tom@tromey.com>
1661
1662 * Makefile.in (READLINE_DIR): Update.
1663
12e7c35e
TBA
16642019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 * infcall.c (call_function_by_hand_dummy): Fix the function
1667 comment. And extract out a code section into...
1668 (reserve_stack_space): ...this new function.
1669
37055cad
TBA
16702019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1671
1672 * infcall.c (value_arg_coerce): Remove an unused parameter.
1673 (call_function_by_hand_dummy): Update the call to
1674 'value_arg_coerce'.
1675
39bcc47c
TBA
16762019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1677
1678 * infcall.c (call_function_by_hand_dummy): Refactor.
1679
bd888c0f
TBA
16802019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1681
1682 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1683
c12d372d
TT
16842019-10-23 Tom Tromey <tom@tromey.com>
1685
1686 * configure: Rebuild.
1687 * configure.ac: Don't check for sigprocmask.
1688 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1689
4d0b984b
TT
16902019-10-23 Tom Tromey <tom@tromey.com>
1691
1692 * configure: Rebuild.
1693 * acinclude.m4: Use m4_include, not sinclude.
1694
7e785608
TV
16952019-10-23 Tom de Vries <tdevries@suse.de>
1696
1697 PR breakpoints/24687
1698 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1699
403772ef
CB
17002019-10-22 Christian Biesinger <cbiesinger@google.com>
1701
1702 * symtab.c (struct demangled_name_entry) <language>: Change from
1703 bitfield to regular variable.
1704
3a494279
CB
17052019-10-22 Christian Biesinger <cbiesinger@google.com>
1706
1707 * symtab.c (struct demangled_name_entry): Add a constructor.
1708 (free_demangled_name_entry): New function to call the destructor
1709 for demangled_name_entry.
1710 (create_demangled_names_hash): Pass free_demangled_name_entry to
1711 htab_create_alloc.
1712 (symbol_set_names): Call placement new for demangled_name_entry.
1713 * utils.c: No longer include xxhash.h here, now that fast_hash
1714 is inlined in the header.
1715 * utils.h: Instead, include it here.
1716
ccb1ba62
CB
17172019-10-22 Christian Biesinger <cbiesinger@google.com>
1718
1719 * Makefile.in: Link with libxxhash.
1720 * config.in: Regenerate.
1721 * configure: Regenerate.
1722 * configure.ac: Search for libxxhash.
1723 * utils.c (fast_hash): Use xxhash if present.
1724
1a6ff1a9
CB
17252019-10-22 Christian Biesinger <cbiesinger@google.com>
1726
1727 * utils.h (fast_hash): New function.
1728 * symtab.c (hash_demangled_name_entry): Call new function
1729 fast_hash.
1730
7bb43059
CB
17312019-10-22 Christian Biesinger <cbiesinger@google.com>
1732
1733 * symtab.c (struct demangled_name_entry): Change type of mangled
1734 to gdb::string_view. Also adds a constructor that takes the
1735 mangled name.
1736 (hash_demangled_name_entry): Update.
1737 (eq_demangled_name_entry): Update.
1738 (free_demangled_name_entry): New function to call the destructor
1739 now that this is not a POD anymore.
1740 (create_demangled_names_hash): Pass free_demangled_name_entry to
1741 htab_create_alloc.
1742 (symbol_set_names): Update.
1743
7ba99d21
AT
17442019-10-21 Ali Tamur <tamu@google.com>
1745
1746 * dwarf2read.c (dir_index): Change type.
1747 (file_name_index): Likewise.
1748 (line_header::include_dir_at): Change comment and implementation on
1749 whether it is DWARF 5.
1750 (line_header::is_valid_file_index): New function.
1751 (line_header::file_name_at): Change comment and implementation on
1752 whether it is DWARF 5.
1753 (line_header::file_names): Change to private field renamed as
1754 m_file_names and introduce a new accessor method.
1755 (line_header::file_names_size): New method.
1756 (line_header::include_dirs): Change to private field and rename as
1757 m_include_dirs.
1758 (dw2_get_file_names_reader): Define local var at a smaller scope and
1759 reflect API change.
1760 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1761 (process_structure_scope): Likewise.
1762 (line_header::add_include_dir): Change message and reflect renaming.
1763 (line_header::add_file_name): Likewise.
1764 (read_formatted_entries): Handle DW_FORM_data16.
1765 (dwarf_decode_line_header): Fix line header length calculation.
1766 (psymtab_include_file_name): Change comment and API.
1767 (lnp_state_machine::m_file): Update comment and reflect type change.
1768 (lnp_state_machine::record_line): Reflect type change.
1769 (dwarf_decode_lines): Reflect API change.
1770 (file_file_name): Likewise.
1771 (file_full_name): Likewise.
1772
45f47c3a
AB
17732019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1776
e5f3c0e3
TT
17772019-10-21 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1780
a0a461e5
TT
17812019-10-21 Tom Tromey <tom@tromey.com>
1782
1783 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1784 NM_H. Use AC_CONFIG_LINKS.
1785 * configure: Rebuild.
1786 * Makefile.in (NM_H): New variable.
1787 (generated_files): Add NM_H. Remove gcore.
1788 (nm.h, stamp-nmh): New targets.
1789
54d83b8d
TT
17902019-10-20 Tom Tromey <tom@tromey.com>
1791
1792 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1793 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1794 obsolete comment.
1795 (put_objfile_before): Now static.
1796
23771117
SM
17972019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * gdbsupport/common-utils.h (startswith): Change return type to
1800 bool.
1801
39ef2f62
CB
18022019-10-19 Christian Biesinger <cbiesinger@google.com>
1803
1804 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1805 * breakpoint.c (bp_locations_compare): Rename to...
1806 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1807 (update_global_location_list): Use std::sort instead of qsort.
1808 * buildsym.c (compare_line_numbers): Rename to...
1809 (lte_is_less_than): ...this, and change to std::sort semantics.
1810 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1811 instead of qsort.
1812 * disasm.c (compare_lines): Rename to...
1813 (line_is_less_than): ...this, and change to std::sort semantics.
1814 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1815 of qsort.
1816 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1817 (fde_is_less_than): ...this, and change to std::sort semantics.
1818 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1819 * mdebugread.c (compare_blocks):
1820 (block_is_less_than): ...this, and change to std::sort semantics.
1821 (sort_blocks): Call std::sort instead of qsort.
1822 * objfiles.c (qsort_cmp): Rename to...
1823 (sort_cmp): ...this, and change to std::sort semantics.
1824 (update_section_map): Call std::sort instead of qsort.
1825 * remote.c (compare_pnums): Remove.
1826 (map_regcache_remote_table): Call std::sort instead of qsort.
1827 * utils.c (compare_positive_ints): Remove.
1828 * utils.h (compare_positive_ints): Remove.
1829 * xcoffread.c (compare_lte): Remove.
1830 (arrange_linetable): Call std::sort instead of qsort.
1831
f71433ee
SDJ
18322019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1833
1834 * symfile.c (init_entry_point_info): Fix typo.
1835 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1836
85102364
TV
18372019-10-18 Tom de Vries <tdevries@suse.de>
1838
1839 * aarch64-tdep.c: Fix typos in comments.
1840 * ada-lang.c: Same.
1841 * ada-tasks.c: Same.
1842 * alpha-tdep.c: Same.
1843 * alpha-tdep.h: Same.
1844 * amd64-nat.c: Same.
1845 * amd64-windows-tdep.c: Same.
1846 * arc-tdep.c: Same.
1847 * arc-tdep.h: Same.
1848 * arch-utils.c: Same.
1849 * arm-nbsd-tdep.c: Same.
1850 * arm-tdep.c: Same.
1851 * ax-gdb.c: Same.
1852 * blockframe.c: Same.
1853 * btrace.c: Same.
1854 * c-varobj.c: Same.
1855 * coff-pe-read.c: Same.
1856 * coffread.c: Same.
1857 * cris-tdep.c: Same.
1858 * darwin-nat.c: Same.
1859 * dbxread.c: Same.
1860 * dcache.c: Same.
1861 * disasm.c: Same.
1862 * dtrace-probe.c: Same.
1863 * dwarf-index-write.c: Same.
1864 * dwarf2-frame-tailcall.c: Same.
1865 * dwarf2-frame.c: Same.
1866 * dwarf2read.c: Same.
1867 * eval.c: Same.
1868 * exceptions.c: Same.
1869 * fbsd-tdep.c: Same.
1870 * findvar.c: Same.
1871 * frame.c: Same.
1872 * frv-tdep.c: Same.
1873 * gnu-v3-abi.c: Same.
1874 * go32-nat.c: Same.
1875 * h8300-tdep.c: Same.
1876 * hppa-tdep.c: Same.
1877 * i386-linux-tdep.c: Same.
1878 * i386-tdep.c: Same.
1879 * ia64-libunwind-tdep.c: Same.
1880 * ia64-tdep.c: Same.
1881 * infcmd.c: Same.
1882 * infrun.c: Same.
1883 * linespec.c: Same.
1884 * linux-nat.c: Same.
1885 * linux-thread-db.c: Same.
1886 * machoread.c: Same.
1887 * mdebugread.c: Same.
1888 * mep-tdep.c: Same.
1889 * mn10300-tdep.c: Same.
1890 * namespace.c: Same.
1891 * objfiles.c: Same.
1892 * opencl-lang.c: Same.
1893 * or1k-tdep.c: Same.
1894 * osabi.c: Same.
1895 * ppc-linux-nat.c: Same.
1896 * ppc-linux-tdep.c: Same.
1897 * ppc-sysv-tdep.c: Same.
1898 * printcmd.c: Same.
1899 * procfs.c: Same.
1900 * record-btrace.c: Same.
1901 * record-full.c: Same.
1902 * remote-fileio.c: Same.
1903 * remote.c: Same.
1904 * rs6000-tdep.c: Same.
1905 * s12z-tdep.c: Same.
1906 * score-tdep.c: Same.
1907 * ser-base.c: Same.
1908 * ser-go32.c: Same.
1909 * skip.c: Same.
1910 * sol-thread.c: Same.
1911 * solib-svr4.c: Same.
1912 * solib.c: Same.
1913 * source.c: Same.
1914 * sparc-nat.c: Same.
1915 * sparc-sol2-tdep.c: Same.
1916 * sparc-tdep.c: Same.
1917 * sparc64-tdep.c: Same.
1918 * stabsread.c: Same.
1919 * stack.c: Same.
1920 * symfile.c: Same.
1921 * symtab.c: Same.
1922 * target-descriptions.c: Same.
1923 * target-float.c: Same.
1924 * thread.c: Same.
1925 * utils.c: Same.
1926 * valops.c: Same.
1927 * valprint.c: Same.
1928 * value.c: Same.
1929 * varobj.c: Same.
1930 * windows-nat.c: Same.
1931 * xcoffread.c: Same.
1932 * xstormy16-tdep.c: Same.
1933 * xtensa-tdep.c: Same.
1934
c5adaa19
TT
19352019-10-17 Tom Tromey <tromey@adacore.com>
1936
1937 * configure: Rebuild.
1938 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1939 in AC_CONFIG_FILES invocation.
1940 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1941 new-style config.status invocation.
1942
405feb71
TV
19432019-10-17 Tom de Vries <tdevries@suse.de>
1944
1945 * arm-nbsd-nat.c: Fix typos in comments.
1946 * arm-tdep.c: Same.
1947 * darwin-nat-info.c: Same.
1948 * dwarf2read.c: Same.
1949 * elfread.c: Same.
1950 * event-top.c: Same.
1951 * findvar.c: Same.
1952 * gdbtypes.c: Same.
1953 * hppa-tdep.c: Same.
1954 * i386-tdep.c: Same.
1955 * jit.c: Same.
1956 * main.c: Same.
1957 * mdebugread.c: Same.
1958 * moxie-tdep.c: Same.
1959 * nto-procfs.c: Same.
1960 * osabi.c: Same.
1961 * ppc-linux-tdep.c: Same.
1962 * remote.c: Same.
1963 * riscv-tdep.c: Same.
1964 * s390-tdep.c: Same.
1965 * sh-tdep.c: Same.
1966 * sparc-linux-tdep.c: Same.
1967 * sparc-nat.c: Same.
1968 * stack.c: Same.
1969 * target-descriptions.c: Same.
1970 * top.c: Same.
1971 * varobj.c: Same.
1972
befcd486
TT
19732019-10-16 Tom Tromey <tom@tromey.com>
1974
1975 * objfiles.h (struct objfile) <original_name>: Now const.
1976
17bfe554
CB
19772019-10-16 Christian Biesinger <cbiesinger@google.com>
1978
1979 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1980 pass on to sigsetjmp's second argument.
1981 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1982
950b7495
KS
19832019-10-16 Keith Seitz <keiths@redhat.com>
1984
1985 PR gdb/23567
1986 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1987 sections whose size is greater than the file size.
1988
ff371ec9
JW
19892019-10-16 Jim Wilson <jimw@sifive.com>
1990
1991 * riscv-tdep.c (riscv_gcc_target_options): New.
1992 (riscv_gnu_triplet_regexp): New.
1993 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1994 set_gdbarch_gnu_triplet_regexp.
1995
fec4e896
CB
19962019-10-16 Christian Biesinger <cbiesinger@google.com>
1997
1998 * Makefile.in: Add xml-builtin.h.
1999 * features/feature_to_c.sh: Add an include for xml-builtin.h
2000 to ensure that the compiler checks that the types match.
2001 * xml-builtin.h: New file.
2002 * xml-support.c (fetch_xml_builtin): Add missing const.
2003 * xml-support.h: Remove declaration of xml_builtins.
2004
d10eccaa
TV
20052019-10-16 Tom de Vries <tdevries@suse.de>
2006
2007 PR tdep/25096
2008 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2009 (amd64_classify_aggregate): ... here.
2010 (amd64_classify_aggregate_field): Handled fiels of nested structs
2011 recursively.
2012
745ff14e
TV
20132019-10-16 Tom de Vries <tdevries@suse.de>
2014
2015 PR tdep/24104
2016 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2017 that handles 'theclass'.
2018
791b7405
AB
20192019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * linespec.c (decode_digits_ordinary): Update comment.
2022 * make-target-delegates: No longer need to handle VEC case.
2023 * memrange.c (normalize_mem_ranges): Update comment.
2024 * namespace.c (add_using_directive): Update comment.
2025 * objc-lang.c (uniquify_strings): Update comment.
2026 * ppc-linux-nat.c (struct thread_points): Update comment.
2027 * probe.h (find_probes_in_objfile): Update comment.
2028 * target.h (enum flash_preserve_mode): Update comment.
2029 * varobj.c (varobj_restrict_range): Update comment.
2030 * varobj.h (varobj_list_children): Update comment.
2031
0dc32745
AB
20322019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * Makefile.in: Remove references to vec.h and vec.c.
2035 * aarch64-tdep.c: No longer include vec.h.
2036 * ada-lang.c: Likewise.
2037 * ada-lang.h: Likewise.
2038 * arm-tdep.c: Likewise.
2039 * ax.h: Likewise.
2040 * breakpoint.h: Likewise.
2041 * charset.c: Likewise.
2042 * cp-support.h: Likewise.
2043 * dtrace-probe.c: Likewise.
2044 * dwarf2read.c: Likewise.
2045 * extension.h: Likewise.
2046 * gdb_bfd.c: Likewise.
2047 * gdbsupport/gdb_vecs.h: Likewise.
2048 * gdbsupport/vec.c: Remove.
2049 * gdbsupport/vec.h: Remove.
2050 * gdbthread.h: Likewise.
2051 * guile/scm-type.c: Likewise.
2052 * inline-frame.c: Likewise.
2053 * machoread.c: Likewise.
2054 * memattr.c: Likewise.
2055 * memrange.h: Likewise.
2056 * namespace.h: Likewise.
2057 * nat/linux-btrace.h: Likewise.
2058 * osdata.c: Likewise.
2059 * parser-defs.h: Likewise.
2060 * progspace.h: Likewise.
2061 * python/py-type.c: Likewise.
2062 * record-btrace.c: Likewise.
2063 * rust-exp.y: Likewise.
2064 * solib-target.c: Likewise.
2065 * stap-probe.c: Likewise.
2066 * target-descriptions.c: Likewise.
2067 * target-memory.c: Likewise.
2068 * target.h: Likewise.
2069 * varobj.c: Likewise.
2070 * varobj.h: Likewise.
2071 * xml-support.h: Likewise.
2072
ae640021
AB
20732019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2076 Update for new std::vector based implementation.
2077 (process_psymtab_comp_unit_reader): Likewise.
2078 (scan_partial_symbols): Likewise.
2079 (recursively_compute_inclusions): Likewise.
2080 (compute_compunit_symtab_includes): Likewise.
2081 (process_imported_unit_die): Likewise.
2082 (queue_and_load_dwo_tu): Likewise.
2083 (follow_die_sig_1): Likewise.
2084 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2085 (typedef dwarf2_per_cu_ptr): Remove.
2086 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2087 function.
2088 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2089 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2090 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2091 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2092 std::vector.
2093
55dfc88f
TT
20942019-10-15 Tom Tromey <tromey@adacore.com>
2095
2096 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2097 TID.
2098
96b49c5e
TT
20992019-10-15 Tom Tromey <tromey@adacore.com>
2100
2101 * windows-nat.c (windows_nat_target::fetch_registers)
2102 (windows_nat_target::store_registers): Rename "pid" to "tid".
2103
953cff56
TT
21042019-10-15 Tom Tromey <tromey@adacore.com>
2105
2106 * gdbarch.h, gdbarch.c: Rebuild.
2107 * gdbarch.sh (gcc_target_options): Change return type to
2108 std::string.
2109 * compile/compile.c (get_args): Update.
2110 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2111 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2112 std::string.
2113 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2114 std::string.
2115 * arch-utils.c (default_gcc_target_options): Return std::string.
2116 * arch-utils.h (default_gcc_target_options): Return std::string.
2117 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2118
81e6b8eb
CB
21192019-10-15 Christian Biesinger <cbiesinger@google.com>
2120
2121 * breakpoint.c (breakpoint_chain): Make static.
2122 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2123 of accessing breakpoint_chain.
2124
95da600f
CB
21252019-10-15 Christian Biesinger <cbiesinger@google.com>
2126
2127 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2128 to a gdb::function_view and return value to bool.
2129 * breakpoint.h (iterate_over_breakpoints): Likewise.
2130 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2131 (pop_dummy_frame): Update.
2132 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2133 (gdbscm_breakpoints): Update.
2134 * python/py-breakpoint.c (build_bp_list): Update.
2135 (gdbpy_breakpoints): Update.
2136 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2137 Update.
2138 (bpfinishpy_handle_stop): Update.
2139 (bpfinishpy_handle_exit): Update.
2140 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2141 (svr4_update_solib_event_breakpoints): Update.
2142
ba18312d
AA
21432019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2144
2145 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2146 when unwrapping single-field structs.
2147
6acc1a0b
SM
21482019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * dwarf2read.c: Remove includes.
2151
284782de
SM
21522019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * ui-out.c (ui_out::call_do_message): Silence
2155 -Wformat-nonliteral warning.
2156
073bbbb0
SM
21572019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2160 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2161 include: readline/tilde.h.
2162
7b9a15e1
CB
21632019-10-12 Christian Biesinger <cbiesinger@google.com>
2164
2165 * remote.c (remote_target::get_trace_status): Remove declaration of
2166 trace_regblock_size.
2167
cc8dee1f
CB
21682019-10-12 Christian Biesinger <cbiesinger@google.com>
2169
2170 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2171 (show_user): Remove declaration of cmdlist.
2172 * cli/cli-cmds.h (max_user_call_depth): Declare.
2173 * cli/cli-script.c (execute_user_command): Remove declaration
2174 of max_user_call_depth.
2175
a83d4ef6
JW
21762019-10-11 Jim Wilson <jimw@sifive.com>
2177
5f93c5a6
JW
2178 * gdbsupport/print-utils.h (pulongest): Fix comment.
2179 (plongest): Likewise.
2180 (phex): Add missing comment, mention leading zeros.
2181 (phex_nz): Add mention of no leading zeros to comment.
2182
a83d4ef6
JW
2183 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2184 plongest instead of unsigned long long cast.
2185
26344e0c
CB
21862019-10-10 Christian Biesinger <cbiesinger@google.com>
2187
2188 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2189 for external_editor_command and gdbtk_test.
2190
c2c440a9
CB
21912019-10-10 Christian Biesinger <cbiesinger@google.com>
2192
2193 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2194 * varobj.c (varobjdebug): Move comment to...
2195 * varobj.h (varobjdebug): ...here, and declare.
2196
a31bff9d
TT
21972019-10-09 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2200 erase_data_content.
2201
7523da63
TT
22022019-10-09 Tom Tromey <tom@tromey.com>
2203
2204 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2205 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2206 * tui/tui-command.c (tui_cmd_window::resize)
2207 (tui_refresh_cmd_win): Update.
2208 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2209 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2210 * tui/tui-data.c (~tui_gen_win_info): Remove.
2211 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2212 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2213 (tui_redisplay_readline, tui_mld_flush)
2214 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2215 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2216 (tui_data_window::erase_data_content)
2217 (tui_data_item_window::rerender)
2218 (tui_data_item_window::refresh_window): Update.
2219 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2220 (box_win, tui_gen_win_info::make_window)
2221 (tui_gen_win_info::make_visible): Update.
2222 (tui_delete_win): Remove.
2223 * tui/tui-winsource.c
2224 (tui_source_window_base::do_erase_source_content): Update.
2225 (tui_show_source_line, tui_source_window_base::update_tab_width)
2226 (tui_source_window_base::update_exec_info): Update.
2227 * tui/tui-data.h (struct curses_deleter): New.
2228 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2229 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2230
a7798e7f
TT
22312019-10-09 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2234
5c45899e
TT
22352019-10-09 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2238 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2239
6d7fd9aa
TT
22402019-10-09 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2243 window height directly.
2244 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2245 declare.
2246 * tui/tui-layout.c (tui_default_win_height): Remove.
2247 (tui_default_win_viewport_height): Remove.
2248
d2dd1084
TT
22492019-10-09 Tom Tromey <tom@tromey.com>
2250
2251 * tui/tui.h: Remove comments.
2252
cff32449
TV
22532019-10-09 Tom de Vries <tdevries@suse.de>
2254
2255 * python/lib/gdb/printer/bound_registers.py: Use
2256 '^builtin_type_bound128' as regexp argument for
2257 add_builtin_pretty_printer.
2258
6a25e8a2
CB
22592019-10-09 Christian Biesinger <cbiesinger@google.com>
2260
2261 * guile/guile.c (guile_extension_script_ops): Remove forward
2262 declaration and mark as static.
2263 (guile_script_ops): Likewise.
2264 (extension_language_guile): Move further down in the file so
2265 it can reference the definitions for guile_{extension_,}script_ops.
2266
6d9d6da4
AA
22672019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2268
2269 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2270 except SORTL, DFLTCC, and KDSA.
2271
3abea05d
TT
22722019-10-08 Tom Tromey <tromey@adacore.com>
2273
2274 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2275 (struct safe_symbol_file_add_args): Remove.
2276
dde996e2
TT
22772019-10-08 Tom Tromey <tromey@adacore.com>
2278
2279 * windows-nat.c: Don't include buildsym-legacy.h.
2280
cd6fdaa1
TT
22812019-10-08 Tom Tromey <tromey@adacore.com>
2282
2283 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2284
79bb1944
CB
22852019-10-08 Christian Biesinger <cbiesinger@google.com>
2286
2287 * gdbtypes.c (overload_debug): Move comment to header.
2288 * gdbtypes.h (overload_debug): Declare.
2289 * valops.c: Remove declaration of overload_debug, instead
2290 include gdbtypes.h.
2291
34916edc
CB
22922019-10-08 Christian Biesinger <cbiesinger@google.com>
2293
2294 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2295 through _().
2296 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2297 move comment...
2298 * language.h (lang_frame_mismatch_warn): ... here. Also add
2299 declaration.
2300 * top.c (lang_frame_mismatch_warn): Remove declaration.
2301 (check_frame_language_change): Pass lang_frame_mismatch_warn
2302 through _().
2303
bad5c026
CB
23042019-10-07 Christian Biesinger <cbiesinger@google.com>
2305
2306 * c-lang.h (vtbl_ptr_name): Declare.
2307 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2308 it from the header.
2309 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2310
51f1fdc3
CB
23112019-10-07 Christian Biesinger <cbiesinger@google.com>
2312
2313 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2314 gdb_static_assert.
2315
30d1f018
WP
23162019-10-07 Weimin Pan <weimin.pan@oracle.com>
2317
606813d5
WP
2318 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2319 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2320 * ctfread.c: New file.
2321 * ctfread.h: New file.
2322 * elfread.c: Include ctfread.h.
2323 (struct elfinfo text_p): New member ctfsect.
2324 (elf_locate_sections): Mark CTF section.
2325 (elf_symfile_read): Call elfctf_build_psymtabs.
2326 * Makefile.in (LIBCTF): Add.
2327 (CLIBS): Use it.
2328 (CDEPS): Likewise.
2329 (DIST): Add ctfread.c.
606813d5
WP
2330
23312019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * ctfread.c (struct nextfield): Renamed to ...
2334 (struct ctf_nextfield): ... this.
2335 (struct field_info): Renamed to ...
2336 (strut ctf_field_info): ... this.
2337 (attach_fields_to_type): Update for renamed structures.
2338 (ctf_add_member_cb): Likewise.
2339 (ctf_add_enum_member_cb): Likewise.
2340 (process_struct_members): Likewise.
2341 (process_enum_type): Likewise.
30d1f018 2342
518fe38c
WP
23432019-10-07 Weimin Pan <weimin.pan@oracle.com>
2344
2345 * tracectf.h: Rename, was ctf.h.
2346 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2347 * tracefile.c: Likewise.
2348 * tracepoint.c: Remove unused include ctf.h.
2349 * mi/mi-main.c: Likewise.
2350 * Makefile.in Replace ctf.c with tracectf.c.
2351
225f296a
JB
23522019-10-06 Joel Brobecker <brobecker@adacore.com>
2353
2354 * version.in: Change version number to "9.0.50.DATE-git".
2355
77c2dba3
TT
23562019-10-03 Tom Tromey <tom@tromey.com>
2357
2358 PR rust/24976:
2359 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2360
179aed7f
AB
23612019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2364 cp_search_name_hash.
2365 * NEWS: Add entry about nested function support.
2366
0a4b0913
AB
23672019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2368 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2371 for nested static variables when searchin VAR_DOMAIN.
2372 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2373 global scope, update comment.
2374 (add_partial_subprogram): Call add_partial_subprogram recursively
2375 for nested subroutines when processinng Fortran.
2376 (load_partial_dies): Process the child entities of a subprogram
2377 when processing Fortran.
2378 (partial_die_parent_scope): Handle building scope
2379 for Fortran nested functions.
2380 (process_die): Record that nested functions have a scope.
2381 (new_symbol): Always record Fortran subprograms on the global
2382 symbol list.
2383 (determine_prefix): How to build the prefix for Fortran
2384 subprograms.
2385
d8c06f22
AB
23862019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2389 have just sent the thread a SIGSTOP and are waiting for it to
2390 arrive.
2391
a8b3b8e9
AB
23922019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * btrace.c (btrace_add_pc): Remove whitespace before the template
2395 parameter in 'std::vector <...>'.
2396 (parse_xml_btrace_block): Likewise.
2397 (btrace_maint_decode_pt): Likewise.
2398 (btrace_maint_update_packets): Likewise.
2399 (btrace_maint_print_packets): Likewise.
2400 * btrace.h (struct btrace_maint_info): Likewise.
2401 * dwarf2read.c (struct type_unit_group): Likewise.
2402 (build_type_psymtabs_reader): Likewise.
2403 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2404 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2405 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2406
4d825eab
TV
24072019-10-03 Tom de Vries <tdevries@suse.de>
2408
2409 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2410 the first line of the help text for set/show style metadata.
2411
80fd2826
TT
24122019-10-02 Tom Tromey <tromey@adacore.com>
2413
2414 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2415 * gdbsupport/common-inferior.c: New file.
2416 * infcmd.c (startup_with_shell): Don't define.
2417 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2418 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2419 * inferior.h (startup_with_shell): Don't declare.
2420
70054538
CB
24212019-10-02 Christian Biesinger <cbiesinger@google.com>
2422
2423 * gdbsupport/gdb_assert.h: Include errors.h.
2424 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2425
37f6a7f4
TT
24262019-10-02 Tom Tromey <tromey@adacore.com>
2427
2428 * NEWS: Add $_ada_exception entry.
2429 * ada-lang.c (struct ada_catchpoint): Add constructor.
2430 <m_kind>: New member.
2431 (allocate_location_exception, re_set_exception): Remove
2432 "ex" parameter.
2433 (should_stop_exception): Compute $_ada_exception.
2434 (check_status_exception, print_it_exception)
2435 (print_one_exception, print_mention_exception): Remove
2436 "ex" parameter.
2437 (allocate_location_catch_exception, re_set_catch_exception)
2438 (check_status_exception, print_it_catch_exception)
2439 (print_one_catch_exception, print_mention_catch_exception)
2440 (print_recreate_catch_exception)
2441 (allocate_location_catch_exception_unhandled)
2442 (re_set_catch_exception_unhandled)
2443 (check_status_exception, print_it_catch_exception_unhandled)
2444 (print_one_catch_exception_unhandled)
2445 (print_mention_catch_exception_unhandled)
2446 (print_recreate_catch_exception_unhandled)
2447 (allocate_location_catch_assert, re_set_catch_assert)
2448 (check_status_assert, print_it_catch_assert)
2449 (print_one_catch_assert, print_mention_catch_assert)
2450 (print_recreate_catch_assert)
2451 (allocate_location_catch_handlers, re_set_catch_handlers)
2452 (check_status_handlers, print_it_catch_handlers)
2453 (print_one_catch_handlers, print_mention_catch_handlers)
2454 (print_recreate_catch_handlers): Remove.
2455 (create_ada_exception_catchpoint): Update.
2456 (initialize_ada_catchpoint_ops): Update.
2457
fccf9de1
TT
24582019-10-02 Tom Tromey <tromey@adacore.com>
2459
2460 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2461 (create_excep_cond_exprs): Simplify exception string computation.
2462 (ada_exception_catchpoint_cond_string): Likewise.
2463
4b610737
TT
24642019-10-02 Tom Tromey <tromey@adacore.com>
2465
2466 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2467 * ada-lang.c (lesseq_defined_than): Handle
2468 LOC_STATIC.
2469 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2470 parameter.
2471 (dwarf2_has_info): Likewise.
2472 (new_symbol): Set maybe_copied on symbol when
2473 appropriate.
2474 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2475 parameter.
2476 <can_copy>: New member.
2477 * elfread.c (record_minimal_symbol): Set maybe_copied
2478 on symbol when appropriate.
2479 (elf_symfile_read): Update call to dwarf2_has_info.
2480 * minsyms.c (lookup_minimal_symbol_linkage): New
2481 function.
2482 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2483 * symtab.c (get_symbol_address, get_msymbol_address):
2484 New functions.
2485 * symtab.h (get_symbol_address, get_msymbol_address):
2486 Declare.
2487 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2488 maybe_copied.
2489 (struct symbol, struct minimal_symbol) <maybe_copied>:
2490 New member.
2491
1dd58850
TT
24922019-10-02 Tom Tromey <tromey@adacore.com>
2493
2494 * source.c (struct current_source_location): New.
2495 (current_source_key): New global.
2496 (current_source_symtab, current_source_line)
2497 (current_source_pspace): Remove.
2498 (get_source_location): New function.
2499 (get_current_source_symtab_and_line)
2500 (set_default_source_symtab_and_line)
2501 (set_current_source_symtab_and_line)
2502 (clear_current_source_symtab_and_line, select_source_symtab)
2503 (info_source_command, print_source_lines_base)
2504 (info_line_command, search_command_helper, _initialize_source):
2505 Update.
2506
5c281dbb
TT
25072019-10-02 Tom Tromey <tromey@adacore.com>
2508
2509 * source.c (select_source_symtab): Don't call
2510 decode_line_with_current_source.
2511
d3d32391
AB
25122019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * symtab.c (lookup_global_symbol): Search global block.
2515
38583298
TT
25162019-10-02 Tom Tromey <tromey@adacore.com>
2517
2518 * coffread.c (process_coff_symbol): Update.
2519 * dwarf2read.c (var_decode_location, new_symbol): Update.
2520 * mdebugread.c (parse_symbol): Update.
2521 * objfiles.c (relocate_one_symbol): Update.
2522 * stabsread.c (define_symbol, fix_common_block)
2523 (scan_file_globals): Update.
2524 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2525 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2526 * xcoffread.c (process_xcoff_symbol): Update.
2527
9344c18f
AA
25282019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2529
2530 * MAINTAINERS: Update my email address.
2531
df07e2c7
AB
25322019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2533
2534 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2535 std::vector.
2536 (build_type_psymtabs_reader): Update for std::vector.
2537 (build_type_psymtab_dependencies): Likewise.
2538 * dwarf2read.h: Remove use of DEF_VEC_P.
2539 (typedef sig_type_ptr): Delete.
2540
554ac434
AB
25412019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2544 to std::vector.
2545 (btrace_maint_decode_pt): Likewise, and move allocation of the
2546 vector outside of the loop.
2547 (btrace_maint_update_packets): Update to handle change from VEC to
2548 std::vector.
2549 (btrace_maint_print_packets): Likewise.
2550 (maint_info_btrace_cmd): Likewise.
2551 * btrace.h: Remove use of DEF_VEC_O.
2552 (typedef btrace_pt_packet_s): Delete.
2553 (struct btrace_maint_info) <packets>: Change fromm VEC to
2554 std::vector.
2555 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2556
46f29a9a
AB
25572019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2560 make accesses into the vector constant references.
2561 (btrace_add_pc): Update for std::vector.
2562 (btrace_stitch_bts): Likewise.
2563 (parse_xml_btrace_block): Likewise.
2564 (btrace_maint_update_packets): Likewise.
2565 (btrace_maint_print_packets): Likewise.
2566 (maint_info_btrace_cmd): Likewise.
2567 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2568 std::vector.
2569 (btrace_data::empty): Likewise.
2570 (btrace_data_append): Likewise.
2571 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2572 (typedef btrace_block_s): Delete.
2573 (struct btrace_block): Add constructor.
2574 (struct btrace_data_bts) <blocks>: Change to std::vector.
2575 * nat/linux-btrace.c (perf_event_read_bts): Update for
2576 std::vector.
2577 (linux_read_bts): Likewise.
2578
d770d56f
TT
25792019-10-01 Tom Tromey <tom@tromey.com>
2580
2581 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2582
9d636d67
TT
25832019-10-01 Tom Tromey <tom@tromey.com>
2584
2585 * stack.c (print_frame, info_frame_command_core): Use
2586 styled_string.
2587 * linux-thread-db.c (try_thread_db_load_1)
2588 (try_thread_db_load_from_pdir_1): Use styled_string.
2589 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2590 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2591 (maybe_print_unsupported_script_warning)
2592 (maybe_print_script_not_found_warning): Use styled_string.
2593 * ada-lang.c (user_select_syms): Use styled_string.
2594
7f6aba03
TT
25952019-10-01 Tom Tromey <tom@tromey.com>
2596
2597 * p-lang.c (pascal_printstr): Use metadata style.
2598 * value.c (show_convenience): Use metadata style.
2599 * valprint.c (valprint_check_validity, val_print_optimized_out)
2600 (val_print_not_saved, val_print_unavailable)
2601 (val_print_invalid_address, generic_val_print, val_print)
2602 (value_check_printable, val_print_array_elements): Use metadata
2603 style.
2604 * ui-out.h (class ui_out) <field_fmt>: New overload.
2605 <do_field_fmt>: Add style parameter.
2606 * ui-out.c (ui_out::field_fmt): New overload.
2607 * typeprint.c (type_print_unknown_return_type)
2608 (val_print_not_allocated, val_print_not_associated): Use metadata
2609 style.
2610 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2611 parameter.
2612 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2613 * tracepoint.c (tvariables_info_1): Use metadata style.
2614 * stack.c (print_frame_arg, print_frame_info, print_frame)
2615 (info_frame_command_core): Use metadata style.
2616 * skip.c (info_skip_command): Use metadata style.
2617 * rust-lang.c (rust_print_enum): Use metadata style.
2618 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2619 metadata style.
2620 * python/py-framefilter.c (py_print_single_arg): Use metadata
2621 style.
2622 * printcmd.c (do_one_display, print_variable_and_value): Use
2623 metadata style.
2624 * p-valprint.c (pascal_val_print)
2625 (pascal_object_print_value_fields): Use metadata style.
2626 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2627 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2628 parameter.
2629 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2630 * m2-valprint.c (m2_print_long_set): Use metadata style.
2631 * m2-typeprint.c (m2_print_type): Use metadata style.
2632 * infcmd.c (print_return_value_1): Use metadata style.
2633 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2634 * f-valprint.c (info_common_command_for_block): Use metadata
2635 style.
2636 * f-typeprint.c (f_type_print_base): Use metadata style.
2637 * expprint.c (print_subexp_standard): Use metadata style.
2638 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2639 * cli/cli-style.h (class cli_style_option): Add constructor.
2640 (metadata_style): Declare.
2641 * cli/cli-style.c (metadata_style): New global.
2642 (_initialize_cli_style): Register metadata style.
2643 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2644 parameter.
2645 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2646 * c-typeprint.c (c_type_print_base_struct_union)
2647 (c_type_print_base_1): Use metadata style.
2648 * breakpoint.c (watchpoint_value_print)
2649 (print_one_breakpoint_location): Use metadata style.
2650 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2651 style.
2652 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2653 style.
2654 * ada-valprint.c (val_print_packed_array_elements, printstr)
2655 (print_field_values, ada_val_print_ref, ada_val_print): Use
2656 metadata style.
2657 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2658 style.
2659 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2660 style.
2661 * ada-lang.c (user_select_syms): Use metadata style.
2662
14309bb6
TT
26632019-10-01 Tom Tromey <tom@tromey.com>
2664
2665 * cli/cli-cmds.c (pwd_command): Style output.
2666
6a831f06
PA
26672019-10-01 Pedro Alves <palves@redhat.com>
2668 Tom Tromey <tom@tromey.com>
2669
2670 * symtab.c (print_symbol_info): Use %ps.
2671 (print_msymbol_info): Use %ps.
2672 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2673 * printcmd.c (print_variable_and_value): Use %ps.
2674 * macrocmd.c (show_pp_source_pos): Use %ps.
2675 * infrun.c (print_exited_reason): Use ui_out::message.
2676 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2677 (describe_other_breakpoints): Use ui_out::message and new
2678 formats.
2679 (say_where): Use new formats.
2680 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2681 and new formats.
2682
2a3c1174
PA
26832019-10-01 Pedro Alves <palves@redhat.com>
2684 Tom Tromey <tom@tromey.com>
2685
2686 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2687 (test_gdb_formats): New function.
2688 (run_tests): Call it.
2689 (test_format_specifier): Update.
2690 * utils.h (fputs_filtered): Update comment.
2691 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2692 (fputs_styled_unfiltered): Declare.
2693 * utils.c (fputs_styled_unfiltered): New function.
2694 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2695 (vfprintf_filtered): Update.
2696 (vfprintf_unfiltered, vprintf_filtered): Update.
2697 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2698 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2699 disallow_ui_out_field>: New constants.
2700 (enum class field_kind): New.
2701 (struct base_field_s, struct signed_field_s): New.
2702 (signed_field): New function.
2703 (struct string_field_s): New.
2704 (string_field): New function.
2705 (struct styled_string_s): New.
2706 (styled_string): New function.
2707 (class ui_out) <message>: Add comment.
2708 <vmessage, call_do_message>: New methods.
2709 <do_message>: Add style parameter.
2710 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2711 methods.
2712 (ui_out::message): Rewrite.
2713 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2714 parameter.
2715 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2716 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2717 gdb_extensions parameter.
2718 (class format_piece): Add parameter to constructor.
2719 (n_int_args): New field.
2720 * gdbsupport/format.c (format_pieces::format_pieces): Add
2721 gdb_extensions parameter. Handle '*'.
2722 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2723 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2724 vfprintf_styled_no_gdbfmt.
2725 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2726 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2727 unfiltered output.
2728 * ui-style.h (struct ui_file_style) <ptr>: New method.
2729
0dfe5bfb
TT
27302019-10-01 Tom Tromey <tom@tromey.com>
2731
2732 * unittests/format_pieces-selftests.c: Update. Add final format.
2733 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2734 empty literal pieces.
2735
e43b10e1
TT
27362019-10-01 Tom Tromey <tom@tromey.com>
2737
2738 * ui-out.h (enum class ui_out_style_kind): Remove.
2739 (class ui_out) <field_string, field_stsream, do_field_string>:
2740 Change type of "style".
2741 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2742 (ui_out::field_string): Update.
2743 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2744 of "style".
2745 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2746 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2747 * stack.c (print_frame_arg, print_frame_info, print_frame):
2748 Update.
2749 * source.c (print_source_lines_base): Update.
2750 * solib.c (info_sharedlibrary_command): Update.
2751 * skip.c (info_skip_command): Update.
2752 * record-btrace.c (btrace_call_history_src_line)
2753 (btrace_call_history): Update.
2754 * python/py-framefilter.c (py_print_frame): Update.
2755 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2756 "style".
2757 * mi/mi-out.c (mi_ui_out::do_table_header)
2758 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2759 (mi_ui_out::do_field_string): Update.
2760 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2761 Update.
2762 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2763 "style".
2764 * cli-out.c (cli_ui_out::do_table_header)
2765 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2766 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2767 (cli_ui_out::do_field_fmt): Update.
2768 * breakpoint.c (print_breakpoint_location): Update.
2769 (update_static_tracepoint): Update.
2770
cd7c32c3
PW
27712019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2772
2773 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2774 conversion of gdb_datadir.
2775 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2776 remove not needed c_str ().
2777
8fe0f950
AT
27782019-09-30 Ali Tamur <tamur@google.com>
2779
2780 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2781 (dwarf2_string_attr): Likewise.
2782
5f48f8f3
AT
27832019-09-30 Ali Tamur <tamur@google.com>
2784
2785 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2786 (process_full_type_unit): Likewise.
2787 (dump_die_shallow): Likewise.
2788 (cu_debug_loc_section): Likewise.
2789
6fb08628
CB
27902019-09-28 Christian Biesinger <cbiesinger@google.com>
2791
2792 * minsyms.c (compare_minimal_symbols): Rename to...
2793 (minimal_symbol_is_less_than): ...this, and adjust to STL
2794 conventions (return bool, take arguments as references)
2795 (minimal_symbol_reader::install): Call std::sort instead
2796 of qsort.
2797
c7ee338a
CB
27982019-09-29 Christian Biesinger <cbiesinger@google.com>
2799
2800 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2801 hash and why.
2802 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2803 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2804
703a86c2
SM
28052019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2808 * psympriv.h (add_psymbol_to_list): Move comment here and update
2809 it.
2810
0df0352a
TV
28112019-09-29 Tom de Vries <tdevries@suse.de>
2812
2813 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2814 Use $tmpdir/$(basename "$output_file").dwz instead of
2815 "${output_file}.dwz".
2816
ad75efa6
SM
28172019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 PR gdb/25045
2820 * hppa-linux-nat.c: Include gdbarch.h.
2821
ececd218
CB
28222019-09-26 Christian Biesinger <cbiesinger@google.com>
2823
2824 * blockframe.c (find_pc_partial_function): Change return type to bool.
2825 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2826 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2827 (stub_gnu_ifunc_resolve_name): Likewise.
2828 * symtab.c (compare_filenames_for_search): Likewise.
2829 (compare_glob_filenames_for_search): Likewise.
2830 (matching_obj_sections): Likewise.
2831 (symbol_matches_domain): Likewise.
2832 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2833 (find_line_pc): Change return type to bool.
2834 (find_line_pc_range): Likewise.
2835 (producer_is_realview): Likewise.
2836 * symtab.h (symbol_matches_domain): Likewise.
2837 (find_pc_partial_function): Likewise.
2838 (find_pc_line_pc_range): Likewise.
2839 (in_gnu_ifunc_stub): Likewise.
2840 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2841 (find_line_pc): Likewise.
2842 (find_line_pc_range): Likewise.
2843 (matching_obj_sections): Likewise.
2844 (find_line_symtab): Change out parameter to bool.
2845 (producer_is_realview): Change return type to bool.
2846 (compare_filenames_for_search): Likewise.
2847 (compare_glob_filenames_for_search): Likewise.
2848
27a900b8
TT
28492019-09-26 Tom Tromey <tom@tromey.com>
2850
2851 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2852 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2853 * gdb_usleep.h: Remove.
2854 * gdb_usleep.c: Remove.
2855 * utils.c: Don't include gdb_usleep.h.
2856
5d63b30a
TT
28572019-09-26 Tom Tromey <tromey@adacore.com>
2858
2859 * python/py-type.c (type_to_type_object): Call check_typedef
2860 for stub types.
2861
12904d37
TT
28622019-09-26 Tom Tromey <tom@tromey.com>
2863
2864 * utils.h (initialize_utils): Don't declare.
2865 * top.c (gdb_init): Don't call initialize_utils.
2866 * utils.c (initialize_utils): Remove. Move contents...
2867 (_initialize_utils): ... here.
2868
858f25f0
TT
28692019-09-25 Tom Tromey <tom@tromey.com>
2870
2871 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2872 * utils.h (make_hex_string): Don't declare.
2873 * utils.c (make_hex_string): Remove.
2874
3d435220
TV
28752019-09-24 Tom de Vries <tdevries@suse.de>
2876
2877 PR gdb/23815
2878 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2879 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2880
ddd44b70
DD
28812019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2882
2883 * NEWS: Mention new simulator port for PRU.
2884
f945dedf
CB
28852019-09-23 Christian Biesinger <cbiesinger@google.com>
2886
2887 * ada-exp.y (write_object_remaining): Update.
2888 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2889 and eliminate the static buffer.
2890 (ada_decode_symbol): Update.
2891 (ada_la_decode): Update.
2892 (ada_sniff_from_mangled_name): Update.
2893 (is_valid_name_for_wild_match): Update.
2894 (ada_lookup_name_info::matches): Update and simplify.
2895 (name_matches_regex): Update.
2896 (ada_add_global_exceptions): Update.
2897 * ada-lang.h (ada_decode): Update signature.
2898 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2899 * dwarf-index-write.c (debug_names::insert): Update.
2900
7ab78ccb
SM
29012019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2904 formatting.
2905
9252448b
SM
29062019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2907
2908 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2909 Change "nonzero" to "true" in documentation.
2910
626ca2c0
CB
29112019-09-20 Christian Biesinger <cbiesinger@google.com>
2912
2913 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2914 (_initialize_darwin_solib): Don't set
2915 darwin_so_ops.lookup_lib_global_symbol.
2916 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2917 set_gdbarch_iterate_over_objfiles_in_search_order.
2918 (elf_lookup_lib_symbol): Rename to...
2919 (svr4_iterate_over_objfiles_in_search_order): this, and update
2920 to iterate semantics.
2921 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2922 * solib.c (solib_global_lookup): Remove.
2923 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2924 (solib_global_lookup): Remove.
2925 * symtab.c (lookup_global_or_static_symbol): Remove call to
2926 solib_global_lookup.
2927
5a3a0d63
JB
29282019-09-20 Joel Brobecker <brobecker@adacore.com>
2929
2930 * NEWS: Move entries about default MI version now being
2931 version 3, and about the GDB/MI fix for multi-location
2932 breakpoints to the "since GDB 8.3" section.
2933
ffea1427
JB
29342019-09-20 Joel Brobecker <brobecker@adacore.com>
2935
2936 GDB 8.3.1 released.
2937
abf516c6
UW
29382019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2939
2940 * NEWS: Mention that Cell/B.E. debugging support was removed.
2941 * MAINTAINERS: Remove spu target.
2942
2943 * config/djgpp/fnchange.lst: Remove entries for removed files.
2944
2945 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2946 spu-multiarch.o, and spu-tdep.o.
2947 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2948 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2949 spu-multiarch.c, and spu-tdep.c.
2950 * spu-linux-nat.c: Remove file.
2951 * spu-multiarch.c: Remove file.
2952 * spu-tdep.c: Remove file.
2953 * spu-tdep.h: Remove file.
2954 * solib-spu.c: Remove file.
2955 * solib-spu.h: Remove file.
2956
2957 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2958 * configure.nat (spu-linux): Remove.
2959 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2960 solib-multiarch.o from gdb_target_obs.
2961 (spu*-*-*): Remove.
2962
2963 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2964 feature flag.
2965 (ppc_linux_no_features): Update.
2966 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2967 Cell/B.E. support.
2968 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2969 (tdesc_powerpc_cell64l): Likewise.
2970 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2971 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2972 Cell/B.E. support.
2973 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2974 Do not include "features/rs6000/powerpc-cell32l.c" or
2975 "features/rs6000/powerpc-cell64l.c".
2976 (ppc_linux_spu_section): Remove.
2977 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2978 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2979 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2980 (ppc_linux_spe_context_lookup): Remove.
2981 (ppc_linux_spe_context_inferior_created): Remove.
2982 (ppc_linux_spe_context_solib_loaded): Remove.
2983 (ppc_linux_spe_context_solib_unloaded): Remove.
2984 (ppc_linux_spe_context): Remove.
2985 (struct ppu2spu_cache): Remove.
2986 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2987 (struct ppu2spu_data): Remove.
2988 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2989 ppu2spu_unwind): Remove.
2990 (ppc_linux_init_abi): Remove Cell/B.E. support.
2991 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2992
2993 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2994 (rs6000/powerpc-cell64l-expedite): Likewise
2995 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2996 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2997 rs6000/powerpc-cell64l.xml.
2998 * features/rs6000/powerpc-cell32l.xml: Remove.
2999 * features/rs6000/powerpc-cell64l.xml: Likewise.
3000 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3001 * features/rs6000/powerpc-cell64l.c: Likewise.
3002 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3003 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3004 * regformats/reg-spu.dat: Remove.
3005
3006 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3007 * corelow.c (struct spuid_list): Remove.
3008 (add_to_spuid_list): Remove.
3009 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3010 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3011 (remote_protocol_features): Remove associated entries.
3012 (_initialize_remote): No longer initialize them.
3013 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3014 * linux-nat.c (SPUFS_MAGIC): Remove.
3015 (linux_proc_xfer_spu): Remove.
3016 (spu_enumerate_spu_ids): Remove.
3017 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3018 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3019 (linux_make_corefile_notes): No longer call it.
3020
3021 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3022 (cooked_write_test): Likewise.
3023
78e8cb91
TT
30242019-09-20 Tom Tromey <tom@tromey.com>
3025
3026 * NEWS: Mention case-sensitivity of TUI commands.
3027 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3028 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3029 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3030
f074b67e
TT
30312019-09-20 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-source.c (tui_source_window::set_contents): Use
3034 make_unique_xstrdup.
3035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3036 make_unique_xstrdup.
3037
63c4bf19
TT
30382019-09-20 Tom Tromey <tom@tromey.com>
3039
3040 * tui/tui-data.c: Remove separator comments.
3041 * tui/tui-layout.c: Remove separator comments.
3042 * tui/tui-win.c: Remove separator comments.
3043 * tui/tui-wingeneral.c: Remove separator comments.
3044
43df9b2f
TT
30452019-09-20 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui.h (strcat_to_buf): Don't declare.
3048 * tui/tui.c (strcat_to_buf): Remove.
3049
7226433c
TT
30502019-09-20 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3053 from "fullname".
3054 * tui/tui-source.c (tui_source_window::set_contents)
3055 (tui_source_window::location_matches_p)
3056 (tui_source_window::maybe_update): Update.
3057
80df3337
TT
30582019-09-20 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3061 Update.
3062 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3063 prefix.
3064 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3065 (tui_data_window::line_from_reg_element_no)
3066 (tui_data_window::first_reg_element_no_inline)
3067 (tui_data_window::show_registers)
3068 (tui_data_window::show_register_group)
3069 (tui_data_window::display_registers_from)
3070 (tui_data_window::display_registers_from_line)
3071 (tui_data_window::first_data_item_displayed)
3072 (tui_data_window::delete_data_content_windows)
3073 (tui_data_window::erase_data_content)
3074 (tui_data_window::do_scroll_vertical)
3075 (tui_data_window::refresh_window)
3076 (tui_data_window::check_register_values): Update.
3077
9923f347
TT
30782019-09-20 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3081 (struct tui_locator_window) <full_name, proc_name>: Now
3082 std::string.
3083 * tui/tui-stack.c (tui_locator_window::make_status_line)
3084 (tui_locator_window::set_locator_fullname)
3085 (tui_locator_window::set_locator_info): Update.
3086 * tui/tui-source.c (tui_source_window::set_contents)
3087 (tui_source_window::showing_source_p): Update.
3088
b76251ab
TT
30892019-09-20 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3092 Don't call tui_locator_win_info_ptr.
3093
0891be08
TT
30942019-09-20 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3097
1b935acf
TT
30982019-09-20 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3101 height for locator.
3102 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3103 * tui/tui-layout.c (show_source_disasm_command, show_data)
3104 (show_source_or_disasm_and_command): Use 1 as height for locator.
3105
9abd8a65
TT
31062019-09-20 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui.c (tui_enable): Update.
3109 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3110 Update.
3111 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3112 Update.
3113 * tui/tui-data.c (win_resized): Now bool.
3114 (tui_win_resized): Return bool.
3115 (tui_set_win_resized_to): Accept a bool.
3116
b5457826
TT
31172019-09-20 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3120 Change type of "refresh_values_only".
3121 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3122 type of "refresh_values_only".
3123
6b915f7d
TT
31242019-09-20 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3127 std::string.
3128 (tui_disassemble): Add "pos" parameter.
3129 (tui_disasm_window::set_contents): Simplify.
3130
2ad52f6f
TT
31312019-09-20 Tom Tromey <tom@tromey.com>
3132
3133 * tui/tui-winsource.h (struct tui_source_window_base)
3134 <show_source_content>: Now private.
3135 * tui/tui-winsource.c
3136 (tui_source_window_base::show_source_content): Don't handle empty
3137 content case.
3138
b3b1bde6
TT
31392019-09-20 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-layout.c (show_source_disasm_command)
3142 (show_source_or_disasm_and_command): Don't call
3143 show_source_content.
3144
71a25ed2
TT
31452019-09-20 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3148 Declare.
3149 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3150 from tui_make_status_line.
3151 (tui_locator_window::rerender): Update.
3152
f8532154
TT
31532019-09-20 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3156 (tui_locator_window::rerender): Update.
3157
2d81b349
TT
31582019-09-20 Tom Tromey <tom@tromey.com>
3159
3160 * tui/tui-winsource.h (struct tui_source_window_base)
3161 <~tui_source_window_base>: Don't declare.
3162 <fullname>: Remove.
3163 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3164 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3165 member.
3166 * tui/tui-source.c (tui_source_window::set_contents): Update.
3167 (tui_source_window::location_matches_p)
3168 (tui_source_window::maybe_update): Update.
3169
f14bec58
TT
31702019-09-20 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-winsource.h (~tui_source_element): Remove.
3173 (tui_source_element): Update.
3174 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3175 * tui/tui-winsource.c (tui_show_source_line): Update.
3176 * tui/tui-source.c (tui_source_window::set_contents): Update.
3177 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3178
78d5933a
TT
31792019-09-20 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3182 declare.
3183 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3184 tui_clear_source_windows_detail.
3185 * tui/tui-winsource.h (struct tui_source_window_base)
3186 <clear_detail>: Don't declare.
3187 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3188 Remove.
3189 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3190
d4207696
TT
31912019-09-20 Tom Tromey <tromey@adacore.com>
3192
3193 PR ada/24919:
3194 * block.c (contained_in): Fix final return value.
3195
00f93c44
AM
31962019-09-20 Alan Modra <amodra@gmail.com>
3197
3198 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3199 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3200 (read_indirect_string_from_dwz): Use bfd accessor.
3201 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3202 * machoread.c (macho_symfile_read_all_oso): Likewise.
3203 * solib.c (solib_bfd_open): Likewise.
3204
e4153ae6
CB
32052019-09-19 Christian Biesinger <cbiesinger@google.com>
3206
3207 * eval.c: Move declaration of overload_resolution to...
3208 * value.h: ...here.
3209
c7ae7675
CB
32102019-09-19 Christian Biesinger <cbiesinger@google.com>
3211
3212 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3213 * arm-linux-tdep.c: Likewise.
3214 * arm-nbsd-nat.c: Likewise.
3215 * arm-tdep.h: Declare arm_apcs_32.
3216 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3217
e86f08d2
CB
32182019-09-19 Christian Biesinger <cbiesinger@google.com>
3219
3220 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3221 * dwarf2read.h: Declare dwarf_always_disassemble.
3222
f64e2f40
TV
32232019-09-19 Tom de Vries <tdevries@suse.de>
3224
3225 PR gdb/25009
3226 * source-cache.c (source_cache::ensure): Catch exception thrown during
3227 construction of the highlighter.
3228
fd361982
AM
32292019-09-18 Alan Modra <amodra@gmail.com>
3230
3231 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3232 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3233 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3234 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3235 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3236 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3237 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3238 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3239 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3240 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3241 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3242 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3243 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3244 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3245 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3246 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3247 * mi/mi-interp.c: Update throughout for bfd section macro and
3248 function changes.
3249 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3250 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3251
11061048
TT
32522019-09-18 Tom Tromey <tom@tromey.com>
3253
3254 * NEWS: Add entry.
3255 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3256 call rl_initialize.
3257 (tui_enable): Do not call rl_initialize.
3258
7a27b85f
CG
32592019-09-18 Christian Groessler <chris@groessler.org>
3260
3261 * alpha-linux-nat.c: Include gdbarch.h.
3262
f64eea3a
SM
32632019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * ui-file.c: Include cli/cli-style.h.
3266 (term_cli_styling): Remove cli_styling declaration.
3267
e6f7f6d1
AM
32682019-09-18 Alan Modra <amodra@gmail.com>
3269
3270 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3271 to bfd_asymbol_section.
3272
1d38e9d1
AM
32732019-09-18 Alan Modra <amodra@gmail.com>
3274
3275 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3276 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3277 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3278
90d92a63
AM
32792019-09-18 Alan Modra <amodra@gmail.com>
3280
3281 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3282 * spu-linux-nat.c (spu_bfd_open): Likewise.
3283
a3d181d2
CB
32842019-09-18 Christian Biesinger <cbiesinger@google.com>
3285
3286 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3287 to bool to match definition in dwarf2read.c.
3288
491144b5
CB
32892019-09-17 Christian Biesinger <cbiesinger@google.com>
3290
3291 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3292 (print_signatures): Likewise.
3293 (trust_pad_over_xvs): Likewise.
3294 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3295 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3296 * arm-linux-nat.c (arm_apcs_32): Likewise.
3297 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3298 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3299 * arm-tdep.c (arm_debug): Likewise.
3300 (arm_apcs_32): Likewise.
3301 * auto-load.c (debug_auto_load): Likewise.
3302 (auto_load_gdb_scripts): Likewise.
3303 (global_auto_load): Likewise.
3304 (auto_load_local_gdbinit): Likewise.
3305 (auto_load_local_gdbinit_loaded): Likewise.
3306 * auto-load.h (global_auto_load): Likewise.
3307 (auto_load_local_gdbinit): Likewise.
3308 (auto_load_local_gdbinit_loaded): Likewise.
3309 * breakpoint.c (disconnected_dprintf): Likewise.
3310 (breakpoint_proceeded): Likewise.
3311 (automatic_hardware_breakpoints): Likewise.
3312 (always_inserted_mode): Likewise.
3313 (target_exact_watchpoints): Likewise.
3314 (_initialize_breakpoint): Update.
3315 * breakpoint.h (target_exact_watchpoints): Change to bool.
3316 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3317 * cli/cli-cmds.c (trace_commands): Likewise.
3318 * cli/cli-cmds.h (trace_commands): Likewise.
3319 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3320 to bool*.
3321 * cli/cli-logging.c (logging_overwrite): Change to bool.
3322 (logging_redirect): Likewise.
3323 (debug_redirect): Likewise.
3324 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3325 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3326 to bool.
3327 <boolean_option_def>: Update.
3328 (struct flag_option_def): Change default type of Context to bool
3329 from int.
3330 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3331 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3332 (get_setshow_command_value_string): Likewise.
3333 * cli/cli-style.c (cli_styling): Change to bool.
3334 (source_styling): Likewise.
3335 * cli/cli-style.h (source_styling): Likewise.
3336 (cli_styling): Likewise.
3337 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3338 to bool.
3339 * command.h (var_types): Update comment.
3340 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3341 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3342 bool.
3343 (debug_compile_cplus_scopes): Likewise.
3344 * compile/compile-internal.h (compile_debug): Likewise.
3345 * compile/compile.c (compile_debug): Likewise.
3346 (struct compile_options) <raw>: Likewise.
3347 * cp-support.c (catch_demangler_crashes): Likewise.
3348 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3349 (usr_cmd_cris_dwarf2_cfi): Likewise.
3350 * csky-tdep.c (csky_debug): Likewise.
3351 * darwin-nat.c (enable_mach_exceptions): Likewise.
3352 * dcache.c (dcache_enabled_p): Likewise.
3353 * defs.h (info_verbose): Likewise.
3354 * demangle.c (demangle): Likewise.
3355 (asm_demangle): Likewise.
3356 * dwarf-index-cache.c (debug_index_cache): Likewise.
3357 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3358 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3359 * dwarf2read.c (check_physname): Likewise.
3360 (use_deprecated_index_sections): Likewise.
3361 (dwarf_always_disassemble): Likewise.
3362 * eval.c (overload_resolution): Likewise.
3363 * event-top.c (set_editing_cmd_var): Likewise.
3364 (exec_done_display_p): Likewise.
3365 * event-top.h (set_editing_cmd_var): Likewise.
3366 (exec_done_display_p): Likewise.
3367 * exec.c (write_files): Likewise.
3368 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3369 (debug_fbsd_nat): Likewise.
3370 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3371 Likewise.
3372 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3373 <backtrace_past_entry> Likewise.
3374 * gdb-demangle.h (demangle): Likewise.
3375 (asm_demangle): Likewise.
3376 * gdb_bfd.c (bfd_sharing): Likewise.
3377 * gdbcore.h (write_files): Likewise.
3378 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3379 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3380 * gdbthread.h (print_thread_events): Likewise.
3381 * gdbtypes.c (opaque_type_resolution): Likewise.
3382 (strict_type_checking): Likewise.
3383 * gnu-nat.c (gnu_debug_flag): Likewise.
3384 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3385 * guile/scm-param.c (pascm_variable): Add boolval.
3386 (add_setshow_generic): Update.
3387 (pascm_param_value): Update.
3388 (pascm_set_param_value_x): Update.
3389 * hppa-tdep.c (hppa_debug): Change to bool..
3390 * infcall.c (may_call_functions_p): Likewise.
3391 (coerce_float_to_double_p): Likewise.
3392 (unwind_on_signal_p): Likewise.
3393 (unwind_on_terminating_exception_p): Likewise.
3394 * infcmd.c (startup_with_shell): Likewise.
3395 * inferior.c (print_inferior_events): Likewise.
3396 * inferior.h (startup_with_shell): Likewise.
3397 (print_inferior_events): Likewise.
3398 * infrun.c (step_stop_if_no_debug): Likewise.
3399 (detach_fork): Likewise.
3400 (debug_displaced): Likewise.
3401 (disable_randomization): Likewise.
3402 (non_stop): Likewise.
3403 (non_stop_1): Likewise.
3404 (observer_mode): Likewise.
3405 (observer_mode_1): Likewise.
3406 (set_observer_mode): Update.
3407 (sched_multi): Change to bool.
3408 * infrun.h (debug_displaced): Likewise.
3409 (sched_multi): Likewise.
3410 (step_stop_if_no_debug): Likewise.
3411 (non_stop): Likewise.
3412 (disable_randomization): Likewise.
3413 * linux-tdep.c (use_coredump_filter): Likewise.
3414 (dump_excluded_mappings): Likewise.
3415 * linux-thread-db.c (auto_load_thread_db): Likewise.
3416 (check_thread_db_on_load): Likewise.
3417 * main.c (captured_main_1): Update.
3418 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3419 xx2_opt, boolean_opt>: Change to bool.
3420 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3421 * maint.c (maintenance_profile_p): Likewise.
3422 (per_command_time): Likewise.
3423 (per_command_space): Likewise.
3424 (per_command_symtab): Likewise.
3425 * memattr.c (inaccessible_by_default): Likewise.
3426 * mi/mi-main.c (mi_async): Likewise.
3427 (mi_async_1): Likewise.
3428 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3429 * nat/fork-inferior.h (startup_with_shell): Likewise.
3430 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3431 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3432 * nios2-tdep.c (nios2_debug): Likewise.
3433 * or1k-tdep.c (or1k_debug): Likewise.
3434 * parse.c (parser_debug): Likewise.
3435 * parser-defs.h (parser_debug): Likewise.
3436 * printcmd.c (print_symbol_filename): Likewise.
3437 * proc-api.c (procfs_trace): Likewise.
3438 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3439 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3440 (set_parameter_value): Update.
3441 (add_setshow_generic): Update.
3442 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3443 to bool*.
3444 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3445 int*.
3446 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3447 * record-btrace.c (record_btrace_target::store_registers): Update.
3448 * record-full.c (record_full_memory_query): Change to bool.
3449 (record_full_stop_at_limit): Likewise.
3450 * record-full.h (record_full_memory_query): Likewise.
3451 * remote-notif.c (notif_debug): Likewise.
3452 * remote-notif.h (notif_debug): Likewise.
3453 * remote.c (use_range_stepping): Likewise.
3454 (interrupt_on_connect): Likewise.
3455 (remote_break): Likewise.
3456 * ser-tcp.c (tcp_auto_retry): Likewise.
3457 * ser-unix.c (serial_hwflow): Likewise.
3458 * skip.c (debug_skip): Likewise.
3459 * solib-aix.c (solib_aix_debug): Likewise.
3460 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3461 (spu_auto_flush_cache_p): Likewise.
3462 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3463 Likewise.
3464 (struct info_print_options) <quiet>: Likewise.
3465 * symfile-debug.c (debug_symfile): Likewise.
3466 * symfile.c (auto_solib_add): Likewise.
3467 (separate_debug_file_debug): Likewise.
3468 * symfile.h (auto_solib_add): Likewise.
3469 (separate_debug_file_debug): Likewise.
3470 * symtab.c (basenames_may_differ): Likewise.
3471 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3472 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3473 (struct info_types_options) <quiet>: Likewise.
3474 * symtab.h (demangle): Likewise.
3475 (basenames_may_differ): Likewise.
3476 * target-dcache.c (stack_cache_enabled_1): Likewise.
3477 (code_cache_enabled_1): Likewise.
3478 * target.c (trust_readonly): Likewise.
3479 (may_write_registers): Likewise.
3480 (may_write_memory): Likewise.
3481 (may_insert_breakpoints): Likewise.
3482 (may_insert_tracepoints): Likewise.
3483 (may_insert_fast_tracepoints): Likewise.
3484 (may_stop): Likewise.
3485 (auto_connect_native_target): Likewise.
3486 (target_stop_and_wait): Update.
3487 (target_async_permitted): Change to bool.
3488 (target_async_permitted_1): Likewise.
3489 (may_write_registers_1): Likewise.
3490 (may_write_memory_1): Likewise.
3491 (may_insert_breakpoints_1): Likewise.
3492 (may_insert_tracepoints_1): Likewise.
3493 (may_insert_fast_tracepoints_1): Likewise.
3494 (may_stop_1): Likewise.
3495 * target.h (target_async_permitted): Likewise.
3496 (may_write_registers): Likewise.
3497 (may_write_memory): Likewise.
3498 (may_insert_breakpoints): Likewise.
3499 (may_insert_tracepoints): Likewise.
3500 (may_insert_fast_tracepoints): Likewise.
3501 (may_stop): Likewise.
3502 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3503 (make_thread_apply_all_options_def_group): Change argument from int*
3504 to bool*.
3505 (thread_apply_all_command): Update.
3506 (print_thread_events): Change to bool.
3507 * top.c (confirm): Likewise.
3508 (command_editing_p): Likewise.
3509 (history_expansion_p): Likewise.
3510 (write_history_p): Likewise.
3511 (info_verbose): Likewise.
3512 * top.h (confirm): Likewise.
3513 (history_expansion_p): Likewise.
3514 * tracepoint.c (disconnected_tracing): Likewise.
3515 (circular_trace_buffer): Likewise.
3516 * typeprint.c (print_methods): Likewise.
3517 (print_typedefs): Likewise.
3518 * utils.c (debug_timestamp): Likewise.
3519 (sevenbit_strings): Likewise.
3520 (pagination_enabled): Likewise.
3521 * utils.h (sevenbit_strings): Likewise.
3522 (pagination_enabled): Likewise.
3523 * valops.c (overload_resolution): Likewise.
3524 * valprint.h (struct value_print_options) <prettyformat_arrays,
3525 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3526 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3527 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3528 Likewise.
3529 * windows-nat.c (new_console): Likewise.
3530 (cygwin_exceptions): Likewise.
3531 (new_group): Likewise.
3532 (debug_exec): Likewise.
3533 (debug_events): Likewise.
3534 (debug_memory): Likewise.
3535 (debug_exceptions): Likewise.
3536 (useshell): Likewise.
3537 * windows-tdep.c (maint_display_all_tib): Likewise.
3538 * xml-support.c (debug_xml): Likewise.
3539
f1b620e9
MG
35402019-09-17 Mike Gulick <mgulick@mathworks.com>
3541
3542 * source.c (prepare_path_for_appending): New function.
3543 (openp): Make use of new function.
3544 (find_and_open_source): Search for the compilation directory and
3545 source file as a relative path beneath the directory search path.
3546
67f3ed6a
AB
35472019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * source-cache.c (source_cache::get_line_charpos): Catch
3550 exceptions and return false, this matches the behaviour documented
3551 in the header file.
3552
74332189
JB
35532019-09-17 Joel Brobecker <brobecker@adacore.com>
3554
3555 * ada-tasks.c (info_task): Remove quoting of the task's name.
3556
f2f24aa9
CB
35572019-09-16 Christian Biesinger <cbiesinger@google.com>
3558
3559 * symfile.c (auto_solib_add): Replace comment with a reference
3560 to the header file.
3561
6a062a93
CB
35622019-09-14 Christian Biesinger <cbiesinger@google.com>
3563
3564 * NEWS: Mention that gdb can now be compiled with Python 3
3565 on Windows.
3566
ec6c8338
AB
35672019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * maint.c (maint_print_section_data::maint_print_section_data):
3570 Force use of 'float log10 (float)' by casting the argument to
3571 float.
3572
aa17805f
AB
35732019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * maint.c: Add 'cmath' include.
3576 (struct maint_print_section_data): New structure.
3577 (print_section_index): New function.
3578 (print_bfd_section_info): Add header comment, small whitespace
3579 cleanup, and update to call new print_section_index function.
3580 (print_objfile_section_info): Likewise.
3581 (maint_obj_section_from_bfd_section): New function.
3582 (print_bfd_section_info_maybe_relocated): New function.
3583 (maintenance_info_sections): Add header comment, always use
3584 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3585
3dd9bb46
AB
35862019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3589 inner scope, add check that the objfile has psymtabs before
3590 checking psymtabs_addrmap.
3591 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3592
4993045d
PW
35932019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3594
3595 * NEWS: Announce that Ada task names are now shown at more places,
3596 and between quotes (except in info task output).
3597 * gdb/ada-tasks.c (task_to_str): New function.
3598 (display_current_task_id): Call task_to_str.
3599 (task_command_1): Likewise.
3600 (print_ada_task_info): In non-mi mode, Properly align headers and data
3601 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3602
7a289707
RO
36032019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604
3605 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3606 prstatus.pr_lwp.pr_info instead of making it up.
3607
f2aec7f6
CB
36082019-09-11 Christian Biesinger <cbiesinger@google.com>
3609
3610 * auto-load.c (auto_load_expand_dir_vars): Update.
3611 * defs.h (gdb_datadir): Change to std::string.
3612 (python_libdir): Likewise.
3613 (relocate_gdb_directory): Change return type to std::string.
3614 * guile/guile.c (gdbscm_data_directory): Update.
3615 (initialize_scheme_side): Update.
3616 * jit.c (jit_reader_dir): Change to std::string.
3617 (jit_reader_load_command): Update.
3618 * main.c (gdb_datadir): Change to std::string.
3619 (python_libdir): Likewise.
3620 (set_gdb_data_directory): Update.
3621 (relocate_path): Change to return std::string.
3622 (relocate_gdb_directory): Change to return std::string.
3623 (relocate_gdbinit_path_maybe_in_datadir): Update.
3624 (captured_main_1): Update.
3625 * python/python.c (do_start_initialization): Update.
3626 * top.c (show_gdb_datadir): Update.
3627 * xml-syscall.c (xml_init_syscalls_info): Update.
3628 (init_syscalls_info): Update.
3629
9224a013
CB
36302019-09-11 Christian Biesinger <cbiesinger@google.com>
3631
3632 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3633 out of get_init_files.
3634 (get_init_files): Update.
3635
f48cd836
CB
36362019-09-11 Christian Biesinger <cbiesinger@google.com>
3637
3638 * main.c (get_init_files): Change to use std::string.
3639 (captured_main_1): Update.
3640 (print_gdb_help): Update.
3641
9cab7ecd
AT
36422019-09-11 Ali Tamur <tamur@google.com>
3643
3644 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3645 implementation.
3646
67547d89
CB
36472019-09-11 Christian Biesinger <cbiesinger@google.com>
3648
3649 * dbxread.c (read_dbx_symtab): Update.
3650 * dwarf2read.c (load_partial_dies): Update.
3651 * mdebugread.c (parse_partial_symbols): Update.
3652 (handle_psymbol_enumerators): Update.
3653 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3654 * psymtab.c (add_psymbol_to_bcache): Likewise.
3655 (add_psymbol_to_list): Likewise.
3656 * symtab.c (symbol_set_names): Likewise.
3657 * symtab.h (symbol_set_names): Likewise.
3658 * xcoffread.c (scan_xcoff_symtab): Update.
3659
64b2d4a0
TT
36602019-09-11 Tom Tromey <tom@tromey.com>
3661
3662 * symfile-mem.c (symbol_file_add_from_memory): Use
3663 bfd_set_filename.
3664 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3665 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3666
3b00ef10
TT
36672019-09-10 Tom Tromey <tromey@adacore.com>
3668
3669 * dwarf-index-write.c (write_psymbols): Extend error message.
3670 (debug_names::insert): Add Ada code.
3671 (debug_names::write_psymbols): Remove Ada check.
3672 (debug_names) <m_string_obstack>: New member.
3673 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3674 (gdb_index_symbol_name_matcher::matches): Remove.
3675 (mapped_index_base::find_name_components_bounds): Add "lang"
3676 parameter.
3677 (mapped_index_base::build_name_components): Also split names
3678 according to Ada syntax.
3679 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3680 type of "match_callback".
3681 (check_match, check_find_bounds_finds)
3682 (dw2_expand_symtabs_matching): Update.
3683 (dw2_debug_names_iterator): Add new constructor.
3684 (dw2_debug_names_map_matching_symbols): New function.
3685 (dw2_debug_names_expand_symtabs_matching): Update.
3686 (dwarf2_debug_names_functions): Use
3687 dw2_debug_names_map_matching_symbols.
3688
aa391654
TT
36892019-09-10 Tom Tromey <tromey@adacore.com>
3690
3691 * dwarf2read.c (dw2_get_file_names_reader): Add the
3692 CU's file name to the results.
3693
b054970d
TT
36942019-09-10 Tom Tromey <tromey@adacore.com>
3695
3696 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3697 map_matching_symbols. Update.
3698 * dwarf2read.c (dw2_map_matching_symbols): Update.
3699 * psymtab.c (match_partial_symbol): Change type; update.
3700 (psym_map_matching_symbols): Likewise.
3701 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3702 type; update.
3703 * symfile.h (struct quick_symbol_functions)
3704 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3705 Remove "match".
3706
6a3dbf1b
TT
37072019-09-10 Tom Tromey <tromey@adacore.com>
3708
3709 * psymtab.c (map_block): Remove.
3710 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3711 * symtab.c (iterate_over_symbols_terminated): New function.
3712 * symtab.c (iterate_over_symbols_terminated): Declare.
3713
6969f124
TT
37142019-09-10 Tom Tromey <tromey@adacore.com>
3715
3716 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3717 * language.h (struct language_defn) <la_iterate_over_symbols>:
3718 Return bool.
3719 * symtab.c (iterate_over_symbols): Return bool.
3720 * symtab.h (iterate_over_symbols): Return bool.
3721
199b4314
TT
37222019-09-10 Tom Tromey <tromey@adacore.com>
3723
3724 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3725 (add_nonlocal_symbols): Update.
3726 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3727 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3728 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3729 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3730 Change type of "callback". Remove "data".
3731
a084a2a6
AT
3732
37332019-09-09 Ali Tamur <tamur@google.com>
3734
3735 * dwarf2read.c (comp_unit_head): Update comment.
3736 (dwarf2_dwo_name): New function declaration.
3737 (dwarf_unit_type_name): New function declaration.
3738 (read_comp_unit_head): Add support for new compilation units,
3739 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3740 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3741 (currently named as "signature") in their header. Also clarify error
3742 messages.
3743 (lookup_dwo_id): New function. Returns the dwo id of the given
3744 compile unit.
3745 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3746 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3747 functions.
3748 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3749 (dwarf2_dwo_name): Get the dwo name if present.
3750 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3751 purposes.
3752
25a2915e
TT
37532019-09-09 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3756
e4df0874
PW
37572019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3758
3759 * python/python.c (do_start_initialization): Make progname_copy static,
3760 to avoid a leak report.
3761
8634b462
TT
37622019-09-08 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3765
c7f839cb
SM
37662019-09-07 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3769 Change type to gdb::optional<block_enum>.
3770 (dw2_symtab_iter_init): Change block_index parameter type
3771 to gdb::optional<block_enum>.
3772 (dw2_lookup_symbol): Change block_index parameter
3773 type to block_enum.c
3774 (dw2_debug_names_lookup_symbol): Likewise.
3775 * psymtab.c (psym_lookup_symbol): Likewise.
3776 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3777 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3778 Likewise.
3779
ead0e69a
CB
37802019-09-06 Christian Biesinger <cbiesinger@google.com>
3781
3782 * defs.h (relocate_gdb_directory): Change int to bool in
3783 signature and rename flag to relocatable.
3784 * main.c (relocate_path): Likewise.
3785 (relocate_gdb_directory): Likewise.
3786
b16c44de
AM
37872019-09-06 Alan Modra <amodra@gmail.com>
3788
3789 * coffread.c (coff_symfile_read): Constify filename variable.
3790 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3791 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3792 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3793 * solib.c (reload_shared_libraries_1): Likewise.
3794 * symfile.c (reread_symbols): Likewise.
3795 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3796 * solib-darwin.c (darwin_bfd_open): Likewise.
3797 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3798
06ff036e
AB
37992019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3802 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3803
4e962e74
TT
38042019-09-03 Tom Tromey <tromey@adacore.com>
3805
3806 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3807 types.
3808 (has_negatives): Unbias a range type bound.
3809 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3810 * gdbtypes.c (operator==): Handle new field.
3811 (create_range_type): Add "bias" parameter.
3812 (create_static_range_type, resolve_dynamic_range): Update.
3813 * gdbtypes.h (struct range_bounds) <bias>: New member.
3814 (create_range_type): Add bias parameter.
3815 * printcmd.c (print_scalar_formatted): Unbias range types.
3816 * value.c (unpack_long): Unbias range types.
3817 (pack_long): Bias range types.
3818
d90b8f26
AH
38192019-09-02 Alan Hayward <alan.hayward@arm.com>
3820
3821 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3822 probe arguments.
3823
fe01123e
AH
38242019-09-02 Alan Hayward <alan.hayward@arm.com>
3825
3826 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3827 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3828 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3829 (compile_probe_arg): Likewise.
3830 * probe.h (get_argument_count): Likewise.
3831 * solib-svr4.c (solib_event_probe_action): Likewise.
3832 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3833
e661ef01
AH
38342019-09-02 Alan Hayward <alan.hayward@arm.com>
3835
3836 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3837 code to here...
3838 (svr4_create_solib_event_breakpoints): ...from here.
3839
47a536d9
SDJ
38402019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3841
3842 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3843 suffix from warning message.
3844
d6a00eba
TT
38452019-08-30 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-winsource.h (struct tui_source_window_base)
3848 <refresh_all>: Don't declare.
3849 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3850 Remove.
3851 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3852 tui_show_locator_content.
3853 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3854 declare.
3855 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3856 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3857 declare.
3858
55b2657b
TT
38592019-08-30 Tom Tromey <tom@tromey.com>
3860
3861 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3862
12a8555a
TT
38632019-08-30 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3866 Remove unnecessary forward declarations.
3867
900ac242
TT
38682019-08-30 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3871 rerender.
3872 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3873 tui_show_locator_content.
3874
99ab33fb
TT
38752019-08-30 Tom Tromey <tom@tromey.com>
3876
3877 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3878 (tui_locator_window::rerender): Rewrite using body of previous
3879 tui_show_locator_content.
3880
e594a5d1
TT
38812019-08-30 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3884 set_locator_fullname>: New methods.
3885 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3886 Rename from tui_set_locator_fullname.
3887 (tui_locator_window::set_locator_info): Rename from
3888 tui_set_locator_info. Return bool.
3889 (tui_update_locator_fullname, tui_show_frame_info): Update.
3890
715bb467
TT
38912019-08-30 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3894
772f3f03
TT
38952019-08-30 Tom Tromey <tom@tromey.com>
3896
3897 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3898 call touchwin.
3899
108e13ab
TT
39002019-08-30 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-wingeneral.c (box_win): Assume win_info and
3903 win_info->handle cannot be NULL.
3904
cdaa6eb4
TT
39052019-08-30 Tom Tromey <tom@tromey.com>
3906
3907 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3908 refresh_window>: Declare.
3909 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3910 resize.
3911 (tui_data_item_window::rerender): Rename from
3912 tui_display_register.
3913 (tui_data_item_window::refresh_window): New method.
3914 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3915 no-op.
3916
89df7f90
TT
39172019-08-30 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3920 regs_column_count, current_group>: Move later. Now private.
3921 <get_current_group>: New method.
3922 * tui/tui-regs.c (tui_reg_command): Update.
3923 * tui/tui-layout.c (tui_set_layout): Update.
3924
1bf2866a
TT
39252019-08-30 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3928 (tui_data_window::rerender): Don't call
3929 check_and_display_highlight_if_needed.
3930 (tui_data_window::refresh_all): Remove call to
3931 erase_data_content.
3932
0670413d
TT
39332019-08-30 Tom Tromey <tom@tromey.com>
3934
3935 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3936 (tui_data_window::display_registers_from)
3937 (tui_data_window::display_reg_element_at_line)
3938 (tui_data_window::display_registers_from_line): Remove checks of
3939 "empty".
3940
18bb55c7
TT
39412019-08-30 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3944 Don't declare.
3945 * tui/tui-regs.c (tui_data_window::show_registers): Call
3946 rerender.
3947 (tui_data_window::rerender): Rename from display_all_data.
3948 (tui_data_window::rerender): Remove old implementation.
3949
1f6d2f10
TT
39502019-08-30 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3953 text.
3954 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3955
16d01f9c
BW
39562019-08-29 Bernhard Wodok <barto@gmx.net>
3957 Sergio Durigan Junior <sergiodj@redhat.com>
3958
3959 PR win32/24284
3960 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3961
d8f27c60
AB
39622019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3965 when searching for types.
3966
1f20c35e
AB
39672019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * f-lang.c (f_language_defn): Use f_print_typedef.
3970 * f-lang.h (f_print_typedef): Declare.
3971 * f-typeprint.c (f_print_typedef): Define.
3972
550105b7
CB
39732019-08-27 Christian Biesinger <cbiesinger@google.com>
3974
3975 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3976
4acfdd20
AB
39772019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * cli/cli-utils.c (info_print_options_defs): Delete.
3980 (make_info_print_options_def_group): Delete.
3981 (extract_info_print_options): Delete.
3982 (info_print_command_completer): Delete.
3983 (info_print_args_help): Add extra parameter, and optionally
3984 include text about -n flag.
3985 * cli/cli-utils.h (struct info_print_options): Delete.
3986 (extract_info_print_options): Delete declaration.
3987 (info_print_command_completer): Delete declaration.
3988 (info_print_args_help): Add extra parameter, extend header
3989 comment.
3990 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3991 search_symbols.
3992 * stack.c (struct info_print_options): New type.
3993 (info_print_options_defs): New file scoped variable.
3994 (make_info_print_options_def_group): New static function.
3995 (info_print_command_completer): New static function.
3996 (info_locals_command): Update to use new local functions.
3997 (info_args_command): Likewise.
3998 (_initialize_stack): Add extra parameter to calls to
3999 info_print_args_help.
4000 * symtab.c (search_symbols): Add extra parameter, use this to
4001 possibly excluse non-debug symbols.
4002 (symtab_symbol_info): Add extra parameter, which is passed on to
4003 search_symbols.
4004 (struct info_print_options): New type.
4005 (info_print_options_defs): New file scoped variable.
4006 (make_info_print_options_def_group): New static function.
4007 (info_print_command_completer): New static function.
4008 (info_variables_command): Update to use local functions, and pass
4009 extra parameter through to symtab_symbol_info.
4010 (info_functions_command): Likewise.
4011 (info_types_command): Pass additional argument through to
4012 symtab_symbol_info.
4013 (rbreak_command): Pass extra argument to search_symbols.
4014 (_initialize_symtab): Add extra arguments for calls to
4015 info_print_args_help, and update help text for 'info variables',
4016 'whereis', and 'info functions' commands.
4017 * symtab.h (search_symbols): Add extra argument to declaration.
4018 * NEWS: Mention new flags.
4019
9aa55206
CB
40202019-08-26 Christian Biesinger <cbiesinger@google.com>
4021
4022 * symtab.c (lookup_static_symbol): Call the new function (and move
4023 it down to be next to lookup_global_symbol).
4024 (struct global_sym_lookup_data): Add block_enum member and rename to...
4025 (struct global_or_static_sym_lookup_data): ...this.
4026 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4027 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4028 (lookup_symbol_global_or_static_iterator_cb): ...this.
4029 (lookup_global_or_static_symbol): New function.
4030 (lookup_global_symbol): Call new function.
4031
5c31b358
TV
40322019-08-26 Tom de Vries <tdevries@suse.de>
4033
4034 PR c++/24852
4035 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4036 when pc_probe.prob == NULL.
4037
23c13d42
SM
40382019-08-25 Simon Marchi <simon.marchi@efficios.com>
4039
4040 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4041 variable symbol_linkage to symbol_linkage_.
4042
beadd3e8
SM
40432019-08-25 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4046 represent whether the symbol is static, dynamic, or we don't
4047 know.
4048
e3ec872f
YS
40492019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4050
4051 * gdb/rx-tdep.c (rx_register_names): New.
4052 (rx_register_name): Delete.
4053 (rx_psw_type): Delete.
4054 (rx_fpsw_type): Delete.
4055 (rx_register_type): Delete.
4056 (rx_gdbarch_init): Convert target-descriptions.
4057 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4058 * gdb/features/Makefile: Add rx.xml.
4059 * gdb/features/rx.xml: New.
4060 * gdb/features/rx.c: Generated.
4061 * gdb/NEWS: Mention target description support.
4062
d0509ba4
CB
40632019-08-22 Christian Biesinger <cbiesinger@google.com>
4064
4065 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4066 *slot_ptr.
4067
2d41fa11
SDJ
40682019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4069
4070 * configure.ac: Don't check for 'dlfcn.h' (moved to
4071 gdbsupport/common.m4).
4072 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4073 'gdbsupport/'.
4074 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4075 * compile/compile-c-support.c: Include
4076 'gdbsupport/gdb-dlfcn.h'.
4077 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4078 * gdb-dlfcn.c: Move to...
4079 * gdbsupport/gdb-dlfcn.c: ... here.
4080 * gdb-dlfcn.h: Move to...
4081 * gdbsupport/gdb-dlfcn.h: ... here.
4082
de8af808
SL
40832019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4084
4085 * nios2-tdep.c (struct reg_value): Improve comments. Make
4086 the offset field signed.
4087
27204489
CB
40882019-08-22 Christian Biesinger <cbiesinger@google.com>
4089
4090 * python/lib/gdb/__init__.py (_execute_file): New function.
4091 * python/python.c (python_run_simple_file): Call gdb._execute_file
4092 on Windows.
4093
43771869
AB
40942019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4095
4096 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4097 all uses as this was never set to anything but a zero value.
4098
26c957f1
PA
40992019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4100
4101 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4102
c07aae6e
CB
41032019-08-21 Christian Biesinger <cbiesinger@google.com>
4104
4105 * tui/tui-data.h (tui_gen_win_info): Add an =default
4106 move constructor, required by some GCC versions.
4107
3960cb7a
JF
41082019-08-21 Jinke Fan <fanjinke51@yeah.net>
4109
4110 * go32-nat.c (go32_sysinfo): Add hygon_p.
4111
04c72a68
TT
41122019-08-20 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4115 line_from_reg_element_no, first_reg_element_no_inline,
4116 display_all_data, delete_data_content_windows,
4117 erase_data_content>: Now private.
4118
072272ce
TT
41192019-08-20 Tom Tromey <tom@tromey.com>
4120
4121 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4122 (tui_unhighlight_win, tui_highlight_win)
4123 (tui_win_info::make_window): Update.
4124 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4125
973961bd
TT
41262019-08-20 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4129 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4130 (MAX_PID_WIDTH): Move to tui-stack.c.
4131 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4132 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4133 (MAX_PID_WIDTH): Move from tui-data.h.
4134
ab0e1f1a
TT
41352019-08-20 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4138 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4139 (box_win): Update.
4140 (tui_gen_win_info::make_window): Rename from tui_make_window.
4141 (tui_win_info::make_window): New method.
4142 (tui_gen_win_info::make_visible): Update.
4143 * tui/tui-source.c (tui_source_window::set_contents): Update.
4144 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4145 (tui_data_window::display_registers_from): Update.
4146 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4147 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4148 Declare.
4149 <can_box>: Remove.
4150 <title>: Remove.
4151 (struct tui_win_info) <make_window>: Declare.
4152 <can_box>: Now virtual.
4153 <title>: New member.
4154 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4155 * tui/tui-command.c (tui_cmd_window::resize): Update.
4156
100c2bf3
TT
41572019-08-20 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4160 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4161 (tui_data_window::check_register_values): Update.
4162
fa4dc567
TT
41632019-08-20 Tom Tromey <tom@tromey.com>
4164
4165 * tui/tui-regs.h (struct tui_data_window): Use
4166 DISABLE_COPY_AND_ASSIGN.
4167 <regs_content>: Change type, removing unique_ptr.
4168 <tui_data_window>: Add move constructor.
4169 * tui/tui-regs.c (tui_data_window::show_registers)
4170 (tui_data_window::show_register_group)
4171 (tui_data_window::display_registers_from)
4172 (tui_data_window::display_registers_from)
4173 (tui_data_window::first_data_item_displayed)
4174 (tui_data_window::delete_data_content_windows)
4175 (tui_data_window::rerender, tui_data_window::refresh_window)
4176 (tui_data_window::check_register_values): Update.
4177
ca02d7c8
TT
41782019-08-20 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4181 show_register_group>: Declare.
4182 (tui_show_register_group): Don't declare.
4183 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4184 tui_show_registers.
4185 (tui_data_window::show_register_group): Rename from
4186 tui_show_register_group.
4187 (tui_data_window::check_register_values, tui_reg_command):
4188 Update.
4189 * tui/tui-layout.c (tui_set_layout): Update.
4190
63356bfd
TT
41912019-08-20 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4194 Declare.
4195 (tui_check_register_values): Don't declare.
4196 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4197 from tui_check_register_values.
4198 * tui/tui-hooks.c (tui_register_changed): Update.
4199
42cc14a7
TT
42002019-08-20 Tom Tromey <tom@tromey.com>
4201
4202 * tui/tui-regs.c (tui_reg_layout): Move later.
4203 (tui_show_registers): Don't enable TUI mode or change layout.
4204
b9ad3686
TT
42052019-08-20 Tom Tromey <tom@tromey.com>
4206
4207 * tui/tui-regs.h (struct tui_data_item_window)
4208 <~tui_data_item_window>: Remove.
4209 <content>: Now a unique_xmalloc_ptr.
4210 * tui/tui-regs.c (tui_register_format): Return a
4211 unique_xmalloc_ptr.
4212 (tui_get_register): Update.
4213 (~tui_data_item_window): Remove.
4214 (tui_data_window::display_registers_from, tui_display_register):
4215 Update.
4216 * tui/tui-io.h (tui_expand_tabs): Update.
4217 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4218 Remove "col" parameter.
4219
8e114aab
TT
42202019-08-20 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4223 field.
4224 * tui/tui-regs.c (~tui_data_item_window): Update.
4225
1a4f81dd
TT
42262019-08-20 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4229 earlier.
4230
0f8d8876
TT
42312019-08-20 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4234
605dc2c2
TT
42352019-08-20 Tom Tromey <tom@tromey.com>
4236
4237 * tui/tui-source.h (struct tui_source_window): Update.
4238 * tui/tui-regs.c (tui_show_registers): Update.
4239 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4240 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4241 (NO_REGS_STRING): Remove defines.
4242
aedbe3bb
CM
42432019-08-20 Conrad Meyer <cem@FreeBSD.org>
4244
4245 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4246 unnecessary thread walk if remote doesn't support the packet.
4247
7ce8f214
TT
42482019-08-19 Tom Tromey <tromey@adacore.com>
4249
4250 * python/py-value.c (value_has_field): Fix indentation.
4251
f21c2bd7
TT
42522019-08-19 Tom Tromey <tromey@adacore.com>
4253
4254 * printcmd.c (do_one_display, info_display_command): Update.
4255 * block.h (contained_in): Return bool. Add allow_nested
4256 parameter.
4257 * block.c (contained_in): Return bool. Add allow_nested
4258 parameter.
4259
d806ea2d
TT
42602019-08-19 Tom Tromey <tom@tromey.com>
4261
4262 * configure: Rebuild.
4263 * configure.ac: Disallow the combination of -static-libstdc++ and
4264 source highlight.
4265 * source-cache.c (get_language_name): Handle rust.
4266 (source_cache::get_source_lines): Ignore highlighting exceptions.
4267
398fdd60
TT
42682019-08-16 Tom Tromey <tom@tromey.com>
4269
4270 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4271 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4272 (struct tui_source_window_base) <make_visible, refresh_window,
4273 resize>: Remove methods.
4274 <execution_info>: Remove field.
4275 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4276 (tui_show_source_line, tui_source_window_base)
4277 (~tui_source_window_base): Update.
4278 (tui_source_window_base::resize)
4279 (tui_source_window_base::make_visible)
4280 (tui_source_window_base::refresh_window): Remove.
4281 (tui_source_window_base::update_exec_info): Update.
4282 * tui/tui-source.c (tui_source_window::set_contents): Update.
4283 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4284
e699d331
TT
42852019-08-16 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4288 deprecated_query_hook.
4289
bb01dbfc
TT
42902019-08-16 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4293 (tui_update_source_windows_with_line): Update.
4294 * tui/tui-source.h (struct tui_source_window)
4295 <show_symtab_source>: Declare.
4296 (tui_show_symtab_source): Don't declare.
4297 * tui/tui-source.c (tui_show_symtab_source): Rename from
4298 tui_show_symtab_source.
4299
81c82c4b
TT
43002019-08-16 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-winsource.h (struct tui_source_window_base)
4303 <set_contents>: Declare.
4304 * tui/tui-winsource.c
4305 (tui_source_window_base::update_source_window_as_is): Update.
4306 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4307 Declare.
4308 (tui_set_source_content): Don't declare.
4309 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4310 tui_set_source_content.
4311 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4312 Declare.
4313 (tui_set_disassem_content): Don't declare.
4314 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4315 tui_set_disassem_content.
4316
2ddaf614
TT
43172019-08-16 Tom Tromey <tom@tromey.com>
4318
4319 * tui/tui-winsource.h (struct tui_source_window_base)
4320 <update_breakpoint_info>: Declare.
4321 (tui_update_breakpoint_info): Don't declare.
4322 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4323 (tui_update_all_breakpoint_info): Update.
4324 (tui_source_window_base::update_breakpoint_info): Rename from
4325 tui_update_breakpoint_info.
4326 (tui_source_window_base::update_exec_info): Update.
4327
017f9828
TT
43282019-08-16 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-winsource.h (struct tui_source_window_base)
4331 <update_source_window>: Declare.
4332 (tui_update_source_window): Don't declare.
4333 * tui/tui-winsource.c
4334 (tui_source_window_base::update_source_window): Rename from
4335 tui_update_source_window.
4336 (tui_source_window_base::rerender): Update.
4337 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4338 * tui/tui-disasm.c (tui_show_disassem)
4339 (tui_show_disassem_and_update_source)
4340 (tui_disasm_window::maybe_update): Update.
4341
ed8358e9
TT
43422019-08-16 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-winsource.h (struct tui_source_window_base)
4345 <update_source_window_as_is>: Declare.
4346 (tui_update_source_window_as_is): Don't declare.
4347 * tui/tui-winsource.c (tui_update_source_window): Update
4348 (tui_source_window_base::update_source_window_as_is): Rename from
4349 tui_update_source_window_as_is.
4350 (tui_source_window_base::refill): Update.
4351 * tui/tui-source.c (tui_show_symtab_source): Update.
4352 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4353 Update.
4354
20149b6b
TT
43552019-08-16 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-winsource.h (tui_update_source_window)
4358 (tui_update_source_window_as_is): Remove "noerror" parameter.
4359 * tui/tui-winsource.c (tui_update_source_window)
4360 (tui_update_source_window_as_is): Remove "noerror" parameter.
4361 (tui_update_source_windows_with_addr)
4362 (tui_update_source_windows_with_line)
4363 (tui_source_window_base::rerender)
4364 (tui_source_window_base::refill): Update.
4365 * tui/tui-source.h (tui_set_source_content)
4366 (tui_show_symtab_source): Remove "noerror" parameter.
4367 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4368 parameter.
4369 (tui_show_symtab_source): Likewise.
4370 (tui_source_window::maybe_update): Update.
4371 * tui/tui-disasm.c (tui_show_disassem)
4372 (tui_show_disassem_and_update_source)
4373 (tui_disasm_window::do_scroll_vertical)
4374 (tui_disasm_window::maybe_update): Update.
4375
2d83e710
TT
43762019-08-16 Tom Tromey <tom@tromey.com>
4377
4378 * tui/tui.c (tui_is_window_visible): Update.
4379 * tui/tui-wingeneral.c (tui_make_window)
4380 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4381 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4382 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4383 (tui_set_win_height_command, parse_scrolling_args): Update.
4384 * tui/tui-source.c (tui_source_window::style_changed): Update.
4385 * tui/tui-regs.c (tui_show_registers)
4386 (tui_data_window::first_data_item_displayed)
4387 (tui_data_window::delete_data_content_windows)
4388 (tui_check_register_values, tui_reg_command): Update.
4389 * tui/tui-disasm.c (tui_show_disassem): Update.
4390 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4391 method.
4392 <is_visible>: Remove field.
4393 * tui/tui-data.c (tui_next_win, tui_prev_win)
4394 (tui_delete_invisible_windows): Update.
4395
d4ab829a
TT
43962019-08-16 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-winsource.h (struct tui_source_window_base)
4399 <m_has_locator>: Remove.
4400 * tui/tui-layout.c (show_source_disasm_command, show_data)
4401 (show_source_or_disasm_and_command): Update.
4402
aa7ca1bb
AH
44032019-08-16 Alan Hayward <alan.hayward@arm.com>
4404
4405 * NEWS (Other MI changes): New subsection.
4406 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4407 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4408 * arch-utils.c (default_get_pc_address_flags): New function.
4409 * arch-utils.h (default_get_pc_address_flags): New declaration.
4410 * gdbarch.sh: Add get_pc_address_flags.
4411 * gdbarch.c: Regenerate.
4412 * gdbarch.h: Likewise.
4413 * stack.c (print_pc): New function.
4414 (print_frame_info) (print_frame): Call print_pc.
4415
6eac171f
TV
44162019-08-16 Tom de Vries <tdevries@suse.de>
4417
4418 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4419 print_objfile_section_info.
4420
3df505f6
TT
44212019-08-15 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4424 calling update_cmdwin_start_line.
4425 * tui/tui-winsource.h (struct tui_source_window_base)
4426 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4427 <rerender>: Declare.
4428 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4429 Call rerender.
4430 (tui_source_window_base::set_new_height): Remove.
4431 (tui_source_window_base::rerender): Rename from
4432 do_make_visible_with_new_height.
4433 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4434 resize method.
4435 (tui_win_info::make_invisible_and_set_new_height)
4436 (tui_win_info::make_visible_with_new_height): Remove.
4437 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4438 Declare.
4439 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4440 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4441 do_make_visible_with_new_height>: Don't declare.
4442 <rerender>: Declare.
4443 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4444 set_new_height.
4445 (tui_data_window::do_make_visible_with_new_height): Remove.
4446 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4447 call tui_show_locator_content.
4448 (tui_gen_win_info::resize): Call rerender.
4449 (show_source_or_disasm_and_command): Don't call
4450 tui_show_locator_content.
4451 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4452 method.
4453 (struct tui_win_info) <rerender>: Declare.
4454 <set_new_height, make_invisible_and_set_new_height,
4455 make_visible_with_new_height>: Don't declare.
4456 * tui/tui-data.c (tui_win_list::rerender): New method.
4457 * tui/tui-command.h (struct tui_cmd_window)
4458 <do_make_visible_with_new_height>: Don't declare.
4459 * tui/tui-command.c
4460 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4461
272560b5
TT
44622019-08-15 Tom Tromey <tromey@adacore.com>
4463
4464 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4465 * ada-lang.c (ada_enum_name): Likewise.
4466
08235187
CB
44672019-08-15 Christian Biesinger <cbiesinger@google.com>
4468
4469 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4470 leading underscore.
4471 (GdbOutputErrorFile): Likewise.
4472 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4473 accordingly.
4474 (execute_unwinders): Rename to have a leading underscore.
4475 (auto_load_packages): Likewise.
4476 (global scope): Adjust call to auto_load_packages accordingly.
4477 (GdbSetPythonDirectory): Likewise.
4478 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4479 instead of execute_unwinders.
4480
db502012
TT
44812019-08-15 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4484 (show_data): Don't change window visibility.
4485 (tui_gen_win_info::resize): Remove special case for command
4486 window. Use wresize, when available.
4487 (show_source_or_disasm_and_command): Don't change window
4488 visibility.
4489 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4490 <make_visible>: New method.
4491 * tui/tui-command.c (tui_cmd_window::resize): New method.
4492
3891b65e
TT
44932019-08-15 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4496 (struct tui_source_windows): New.
4497 * tui/tui-winsource.c (tui_display_main): Update.
4498 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4499 (new_height_ok, parse_scrolling_args): Update.
4500 * tui/tui-layout.c (show_layout, show_data): Update.
4501 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4502 (tui_add_to_source_windows): Don't declare.
4503 * tui/tui-data.c (source_windows, tui_source_windows)
4504 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4505
ee556432
TT
45062019-08-15 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4509 Rename from reset.
4510 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4511 * tui/tui-layout.c (show_source_disasm_command, show_data):
4512 Update.
4513 (tui_gen_win_info::resize): Rename.
4514 (show_source_or_disasm_and_command): Update.
4515 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4516 reset.
4517
46f438e3
TT
45182019-08-15 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4521 * tui/tui-interp.c (tui_interp::init): Don't call
4522 tui_initialize_static_data.
4523 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4524
f4ce562c
TT
45252019-08-15 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4528 examine tui_win_list.
4529
c398c3d0
TT
45302019-08-15 Tom Tromey <tom@tromey.com>
4531
4532 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4533 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4534 tui_clear_source_content.
4535 (tui_clear_source_content): Remove.
4536 (tui_source_window_base::do_erase_source_content): Hoist call to
4537 content.clear().
4538 * tui/tui-stack.c (tui_show_frame_info): Don't call
4539 tui_clear_source_content.
4540
e25d2004
TT
45412019-08-15 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-winsource.h (struct tui_source_window_base)
4544 <do_erase_source_content>: New method.
4545 <erase_source_content>: New method.
4546 (tui_erase_source_content): Don't declare.
4547 * tui/tui-winsource.c (tui_clear_source_content): Update.
4548 (tui_source_window_base::do_erase_source_content): Rename from
4549 tui_erase_source_content.
4550 (tui_source_window_base::show_source_content): Update.
4551 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4552 * tui/tui-source.h (struct tui_source_window)
4553 <erase_source_content>: New method.
4554 * tui/tui-disasm.h (struct tui_disasm_window)
4555 <erase_source_content>: New method.
4556
002f15c2
TT
45572019-08-15 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4560 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4561 constructor.
4562 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4563 * tui/tui-source.c (tui_set_source_content): Update.
4564 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4565
c9033fe8
TT
45662019-08-15 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4569 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4570 tui-source.c.
4571 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4572 Declare.
4573 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4574 method.
4575 (tui_source_window::maybe_update): Update.
4576
088f37dd
TT
45772019-08-15 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4580 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4581 tui-disasm.c.
4582 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4583 Declare.
4584 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4585 method.
4586 (tui_disasm_window::maybe_update): Update.
4587
a54700c6
TT
45882019-08-15 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-winsource.h (struct tui_source_window_base)
4591 <maybe_update>: Declare.
4592 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4593 method.
4594 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4595 Declare.
4596 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4597 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4598 Declare.
4599 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4600
e2a678a5
TT
46012019-08-15 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4604
f2dda477
TT
46052019-08-15 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-wingeneral.c: Include tui-stack.h.
4608 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4609 (struct tui_locator_window): Move from tui-data.h.
4610 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4611 (tui_initialize_static_data): Move from tui-data.c.
4612 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4613 (struct tui_locator_window): Move to tui-stack.c.
4614 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4615 (tui_initialize_static_data): Move to tui-stack.c.
4616
ed4a1084
TT
46172019-08-15 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-layout.c (show_source_disasm_command)
4620 (show_source_or_disasm_and_command): Use make_visible method, not
4621 tui_make_window.
4622 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4623 Remove.
4624
65962b20
TT
46252019-08-15 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-wingeneral.h (tui_make_window): Update.
4628 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4629 parameter.
4630 (tui_gen_win_info::make_visible): Update.
4631 * tui/tui-regs.c (tui_data_window::display_registers_from):
4632 Update.
4633 * tui/tui-layout.c (show_source_disasm_command)
4634 (show_source_or_disasm_and_command): Update.
4635 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4636 (enum tui_box): Remove.
4637 (struct tui_win_info) <can_box>: New method.
4638 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4639 method.
4640
2208ee91
TV
46412019-08-15 Tom de Vries <tdevries@suse.de>
4642
4643 * linux-nat-trad.c: Include gdbarch.h.
4644
75faf5c4
AH
46452019-08-14 Alan Hayward <alan.hayward@arm.com>
4646
4647 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4648 register sizes.
4649
b1c896b3
TT
46502019-08-14 Tom Tromey <tromey@adacore.com>
4651
4652 * darwin-nat.c: Include gdbarch.h.
4653 * darwin-nat-info.c: Include gdbarch.h.
4654
6405cd73
TT
46552019-08-13 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4658 Remove.
4659 * tui/tui-data.c (tui_initialize_static_data): Update.
4660
5216580d
TT
46612019-08-13 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-winsource.h (struct tui_exec_info_window)
4664 <~tui_exec_info_window, maybe_allocate_content, get_content,
4665 m_content>: Remove.
4666 (struct tui_source_window_base) <set_exec_info_content,
4667 show_exec_info_content>: Don't declare.
4668 * tui/tui-winsource.c
4669 (tui_exec_info_window::maybe_allocate_content): Remove.
4670 (tui_source_window_base::update_exec_info): Rename from
4671 set_exec_info_content.
4672 (tui_source_window_base::show_exec_info_content)
4673 (tui_source_window_base::update_exec_info): Remove.
4674
93858ad3
TT
46752019-08-13 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4678 declare.
4679 * tui/tui-winsource.c (tui_update_source_window_as_is)
4680 (tui_update_source_windows_with_addr, tui_erase_source_content):
4681 Update.
4682 (tui_clear_exec_info_content): Remove.
4683
e321e7ce
TT
46842019-08-13 Tom Tromey <tom@tromey.com>
4685
4686 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4687 declare.
4688 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4689 call tui_erase_exec_info_content.
4690 (tui_clear_exec_info_content): Rename from
4691 tui_erase_exec_info_content.
4692 (tui_clear_exec_info_content): Delete.
4693
8270ac62
TT
46942019-08-13 Tom Tromey <tom@tromey.com>
4695
4696 * tui/tui-winsource.h (struct tui_source_window_base)
4697 <show_exec_info_content>: Declare.
4698 (tui_show_exec_info_content): Don't declare.
4699 * tui/tui-winsource.c
4700 (tui_source_window_base::show_exec_info_content): Rename from
4701 tui_show_exec_info_content.
4702 (tui_source_window_base::update_exec_info): Update.
4703
7b56485d
TT
47042019-08-13 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4707 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4708 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4709 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4710 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4711 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4712 ... here.
4713
7ba913dc
TT
47142019-08-13 Tom Tromey <tom@tromey.com>
4715
4716 * tui/tui-winsource.h (struct tui_source_window_base)
4717 <update_exec_info>: Declare.
4718 (tui_update_exec_info): Don't declare.
4719 * tui/tui-winsource.c (tui_update_source_window_as_is)
4720 (tui_source_window_base::refresh_all)
4721 (tui_update_all_breakpoint_info): Update.
4722 (tui_source_window_base::update_exec_info): Rename from
4723 tui_update_exec_info.
4724 * tui/tui-stack.c (tui_show_frame_info): Update.
4725
37a4a131
TT
47262019-08-13 Tom Tromey <tom@tromey.com>
4727
4728 * tui/tui-winsource.h (struct tui_source_window_base)
4729 <set_exec_info_content>: Declare.
4730 (tui_set_exec_info_content): Don't declare.
4731 * tui/tui-winsource.c
4732 (tui_source_window_base::set_exec_info_content): Rename from
4733 tui_set_exec_info_content.
4734 (tui_update_exec_info): Update.
4735
0bd27e07
TT
47362019-08-13 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-winsource.h (struct tui_source_window_base)
4739 <show_source_content>: Declare.
4740 (tui_show_source_content): Don't declare.
4741 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4742 (tui_source_window_base::show_source_content): Rename from
4743 tui_show_source_content.
4744 (tui_source_window_base::refresh_all): Update.
4745 * tui/tui-layout.c (show_source_disasm_command)
4746 (show_source_or_disasm_and_command): Update.
4747
b4ef5aeb
TT
47482019-08-13 Tom Tromey <tom@tromey.com>
4749
4750 * tui/tui-winsource.c (tui_erase_source_content)
4751 (tui_show_source_content, tui_source_window_base::refresh_all):
4752 Update.
4753 * tui/tui-wingeneral.h
4754 (tui_check_and_display_highlight_if_needed): Don't declare.
4755 * tui/tui-wingeneral.c
4756 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4757 check_and_display_highlight_if_needed.
4758 * tui/tui-win.c (tui_rehighlight_all)
4759 (tui_win_info::make_visible_with_new_height): Update.
4760 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4761 (tui_data_window::erase_data_content)
4762 (tui_data_window::display_all_data): Update.
4763 * tui/tui-data.h (struct tui_win_info)
4764 <check_and_display_highlight_if_needed>: Declare.
4765
fede5273
TT
47662019-08-13 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-win.c (tui_resize_all): Call
4769 tui_delete_invisible_windows.
4770 * tui/tui-layout.c (show_layout): Call
4771 tui_delete_invisible_windows.
4772 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4773 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4774
22c3f490
TT
47752019-08-13 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4778 tui_add_win_to_layout.
4779
16cb7910
TT
47802019-08-13 Tom Tromey <tom@tromey.com>
4781
4782 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4783 * tui/tui-layout.c (tui_default_win_height): Now static.
4784
cc0c3ffb
TT
47852019-08-13 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4788 single switch.
4789 (show_source_disasm_command, show_source_or_disasm_and_command):
4790 Don't check current layout.
4791
3f3ffe54
TT
47922019-08-13 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-wingeneral.c (make_all_visible): Remove.
4795 (tui_make_all_invisible): Simplify.
4796 * tui/tui-layout.c (tui_make_all_invisible): Move from
4797 tui-wingeneral.c; simplify.
4798 (show_layout): Hoist call to tui_make_all_invisible.
4799 (show_data): Don't call tui_make_all_invisible.
4800
69258091
TT
48012019-08-13 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4804 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4805
62cf57fe
TT
48062019-08-13 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4809 tui-data.c.
4810 (show_source_disasm_command, show_data)
4811 (show_source_or_disasm_and_command): Don't use
4812 tui_set_current_layout_to.
4813 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4814 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4815 tui-layout.c.
4816 (tui_set_current_layout_to): Remove.
4817
2afade5d
TT
48182019-08-13 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-layout.c (tui_set_layout): Update.
4821 * tui/tui-data.h (struct tui_layout_def): Remove.
4822 (tui_layout_def): Don't declare.
4823 * tui/tui-data.c (layout_def): Remove.
4824 (tui_layout_def): Remove.
4825
a3504e96
TT
48262019-08-13 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-winsource.h (struct tui_source_window_base)
4829 <clear_detail>: No longer "override".
4830 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4831 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4832 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4833 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4834 Remove.
4835 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4836
29c92911
TT
48372019-08-13 Tom Tromey <tromey@adacore.com>
4838
4839 * tracepoint.c: Don't include readline.h or history.h.
4840
86c6b807
TT
48412019-08-12 Tom Tromey <tom@tromey.com>
4842
4843 * configure: Rebuild.
4844 * configure.ac: Check for readline 7.
4845 * NEWS: Mention readline 7 requirement.
4846 * README: Update.
4847
5db2718c
TT
48482019-08-12 Tom Tromey <tom@tromey.com>
4849
4850 * mingw-hdep.c (gdb_select): Remove readline hack.
4851
dac36daf
PFC
48522019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4853
4854 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4855 when the function fails.
4856
1022c627
AA
48572019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4858
4859 * s390-tdep.c (s390_type_align): New function.
4860 (s390_gdbarch_init): Set it as type_align gdbarch method.
4861
eba4caf2
TV
48622019-08-09 Tom de Vries <tdevries@suse.de>
4863
4864 PR gdb/24591
4865 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4866 pc_low with relocation offset.
4867
123cd851
TT
48682019-08-07 Tom Tromey <tromey@adacore.com>
4869
4870 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4871 (print_frame_args): Update.
4872 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4873 Update.
4874 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4875 * frame.h (struct frame_arg): Add initializers.
4876 <error>: Now a unique_xmalloc_ptr.
4877
3d31bc39
AH
48782019-08-07 Alan Hayward <alan.hayward@arm.com>
4879
4880 * NEWS: Expand the Pointer Authentication entry.
4881 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4882 (aarch64_frame_unmask_lr): ... to this.
4883 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4884 Call aarch64_frame_unmask_lr.
4885 * frame.c (struct frame_info): Add "masked" variable.
4886 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4887 (fprint_frame): Check for masked pc.
4888 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4889 declarations.
4890 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4891 * stack.c (print_frame): Check for masked pc.
4892
0cf9feb9
TT
48932019-08-06 Tom Tromey <tom@tromey.com>
4894
4895 * stabsread.c (patch_block_stabs, read_one_struct_field)
4896 (read_enum_type): Use obstack_strndup.
4897 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4898 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4899 * dwarf2read.c (guess_full_die_structure_name)
4900 (anonymous_struct_prefix): Use obstack_strndup.
4901 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4902 * c-exp.y (yylex): Use obstack_strndup.
4903 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4904 (write_var_or_type): Use obstack_strndup.
4905
efba19b0
TT
49062019-08-06 Tom Tromey <tom@tromey.com>
4907
4908 * symfile.c (reread_symbols): Use obstack_strdup.
4909 * stabsread.c (read_type): Use obstack_strdup.
4910 * gdb_obstack.h (obstack_strdup): New overload.
4911 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4912 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4913 (dwarf2_canonicalize_name): Use obstack_strdup.
4914 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4915 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4916 Use obstack_strdup.
4917
f25102f7
TT
49182019-08-06 Tom Tromey <tom@tromey.com>
4919
4920 * gdb_obstack.h (obstack_strdup): Define.
4921 * gdb_obstack.c (obstack_strdup): Don't define.
4922
021887d8
TT
49232019-08-06 Tom Tromey <tom@tromey.com>
4924
4925 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4926 obstack_strdup.
4927 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4928 obstack_strdup.
4929 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4930 * stabsread.c (common_block_start): Use obstack_strdup.
4931 * objfiles.c (set_objfile_main_name, objfile): Use
4932 obstack_strdup.
4933 * namespace.c (add_using_directive): Use obstack_strdup.
4934 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4935 * jit.c (finalize_symtab): Use obstack_strdup.
4936 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4937 (guess_partial_die_structure_name, partial_die_info::fixup)
4938 (dwarf2_name): Use obstack_strdup.
4939 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4940 obstack_strdup.
4941 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4942 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4943 obstack_strdup.
4944 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4945
d2834edc
PW
49462019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4947
4948 * unittests/help-doc-selftests.c: New file.
4949 * Makefile.in: Add the new file.
4950
590042fc
PW
49512019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4952
4953 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4954 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4955 the full first line, except when FOR_VALUE_PREFIX. In this case,
4956 the trailing '.' is not output, and the first character is uppercased.
4957 (print_help_for_command): Update call to print_doc_line.
4958 (print_doc_of_command): Likewise.
4959 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4960 * cli/cli-option.c (append_indented_doc): Do not append newline.
4961 (build_help_option): Append newline after first appended_indented_doc
4962 only if a second call is done.
4963 (build_help): Append 2 new lines before each option, except the first
4964 one.
4965 * compile/compile.c (_initialize_compile): Add new lines after
4966 %OPTIONS%, when not at the end of the help.
4967 Change help doc or code
4968 producing the help doc to respect the invariants.
4969 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4970 Also removed the new line after 'Options:', as all other commands
4971 do not put an empty line between 'Options:' and the first option.
4972 * printcmd.c (_initialize_printcmd): Likewise.
4973 * stack.c (_initialize_stack): Likewise.
4974 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4975 incorrectly telling COMMAND is optional.
4976 * ada-lang.c (_initialize_ada_language): Change help doc or code
4977 producing the help doc to respect the invariants.
4978 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4979 * breakpoint.c (_initialize_breakpoint): Likewise.
4980 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4981 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4982 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4983 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4984 _initialize_cli_style): Likewise.
4985 * corelow.c (core_target_info): Likewise.
4986 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4987 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4988 * filesystem.c (_initialize_filesystem): Likewise.
4989 * frame.c (_initialize_frame): Likewise.
4990 * gnu-nat.c (add_task_commands): Likewise.
4991 * infcall.c (_initialize_infcall): Likewise.
4992 * infcmd.c (_initialize_infcmd): Likewise.
4993 * interps.c (_initialize_interpreter): Likewise.
4994 * language.c (_initialize_language): Likewise.
4995 * linux-fork.c (_initialize_linux_fork): Likewise.
4996 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4997 * maint.c (_initialize_maint_cmds): Likewise.
4998 * memattr.c (_initialize_mem): Likewise.
4999 * printcmd.c (_initialize_printcmd): Likewise.
5000 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5001 _RegEx): Likewise.
5002 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5003 * record-btrace.c (_initialize_record_btrace): Likewise.
5004 * record-full.c (_initialize_record_full): Likewise.
5005 * record.c (_initialize_record): Likewise.
5006 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5007 * regcache.c (_initialize_regcache): Likewise.
5008 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5009 _initialize_remote): Likewise.
5010 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5011 * serial.c (_initialize_serial): Likewise.
5012 * skip.c (_initialize_step_skip): Likewise.
5013 * source.c (_initialize_source): Likewise.
5014 * stack.c (_initialize_stack): Likewise.
5015 * symfile.c (_initialize_symfile): Likewise.
5016 * symtab.c (_initialize_symtab): Likewise.
5017 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5018 * top.c (init_main): Likewise.
5019 * tracefile-tfile.c (tfile_target_info): Likewise.
5020 * tracepoint.c (_initialize_tracepoint): Likewise.
5021 * tui/tui-win.c (_initialize_tui_win): Likewise.
5022 * utils.c (add_internal_problem_command): Likewise.
5023 * valprint.c (value_print_option_defs): Likewise.
5024
404f2902
FCE
50252019-08-06 Frank Ch. Eigler <fche@redhat.com>
5026
5027 PR build/24886
5028 * configure.ac: Drop enable-libmcheck support.
5029 * configure, config.in: Rebuild.
5030 * libmcheck.m4: Remove.
5031 * acinclude.m4: Don't include it.
5032 * Makefile.in: Don't distribute it.
5033 * top.c (print_gdb_configuration): Don't mention it.
5034
046bebe1
TT
50352019-08-06 Tom Tromey <tom@tromey.com>
5036
5037 * utils.c (set_output_style): Sometimes pass stream to
5038 emit_style_escape.
5039 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5040 * record-btrace.c (btrace_insn_history): Update.
5041 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5042 method.
5043 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5044 Update initializers.
5045 <m_uiout>: New field.
5046 <m_di>: Move lower.
5047 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5048 Remove "uiout" parameter.
5049 (dump_insns): Update.
5050 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5051 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5052
ddbcedf5
CB
50532019-08-06 Christian Biesinger <cbiesinger@google.com>
5054
5055 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5056 (error_in_psymtab_expansion): Likewise.
5057 (lookup_symbol_via_quick_fns): Likewise.
5058 (basic_lookup_transparent_type_quick): Likewise.
5059 (basic_lookup_transparent_type_1): Likewise.
5060
b08b16c8
TT
50612019-08-06 Tom Tromey <tromey@adacore.com>
5062
5063 * source.c (last_source_error): Now bool.
5064 (print_source_lines_base): Make "noprint" bool. Only open
5065 source file when last_source_visited changes.
5066
cb44333d
TT
50672019-08-06 Tom Tromey <tromey@adacore.com>
5068
5069 * annotate.c (annotate_source_line): Use g_source_cache.
5070 * source-cache.c (source_cache::get_plain_source_lines): Change
5071 parameters. Populate m_offset_cache.
5072 (source_cache::ensure): New method.
5073 (source_cache::get_line_charpos): New method.
5074 (extract_lines): Move lower. Change parameters.
5075 (source_cache::get_source_lines): Move lower.
5076 * source-cache.h (class source_cache): Update comment.
5077 <get_line_charpos>: New method.
5078 <get_source_lines>: Update comment.
5079 <clear>: Clear m_offset_cache.
5080 <get_plain_source_lines>: Change parameters.
5081 <ensure>: New method
5082 <m_offset_cache>: New member.
5083 * source.c (forget_cached_source_info_for_objfile): Update.
5084 (info_source_command): Use g_source_cache.
5085 (find_source_lines, open_source_file_with_line_charpos): Remove.
5086 (print_source_lines_base, search_command_helper): Use g_source_cache.
5087 * source.h (open_source_file_with_line_charpos): Don't declare.
5088 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5089 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5090 Use g_source_cache.
5091
872dceaa
TT
50922019-08-06 Tom Tromey <tromey@adacore.com>
5093
5094 * source-cache.c (source_cache::get_plain_source_lines):
5095 Remove "first_line" and "last_line" parameters.
5096 (source_cache::get_source_lines): Cache plain text.
5097 * source-cache.h (class source_cache)
5098 <get_plain_source_lines>: Update.
5099
269249d9
TT
51002019-08-06 Tom Tromey <tromey@adacore.com>
5101
5102 * source-cache.c (extract_lines): No longer a method.
5103 Changed type of parameter. Include final newline.
5104 (selftests::extract_lines_test): New function.
5105 (_initialize_source_cache): Likewise.
5106 * source-cache.h (class source_cache)
5107 <extract_lines>: Don't declare.
5108
c0e8dcd8
TT
51092019-08-06 Tom Tromey <tromey@adacore.com>
5110
5111 * breakpoint.c (init_breakpoint_sal): Update.
5112 (breakpoint): Update.
5113 * breakpoint.h (struct breakpoint) <filter>: Now a
5114 unique_xmalloc_ptr.
5115
0b27c27d
CB
51162019-08-05 Christian Biesinger <cbiesinger@google.com>
5117
5118 * NEWS: Mention dictionary access on blocks.
5119 * python/py-block.c (blpy_getitem): New function.
5120 (block_object_as_mapping): New struct.
5121 (block_object_type): Use new struct for tp_as_mapping field.
5122
4ee94178
CB
51232019-08-05 Christian Biesinger <cbiesinger@google.com>
5124
5125 * objfiles.h (objfile): Add a comment describing partial symbols.
5126
8abfcabc
TT
51272019-08-05 Tom Tromey <tromey@adacore.com>
5128
5129 * compile/compile.c (_initialize_compile): Use _(), not N_().
5130 * thread.c (_initialize_thread): Use _(), not N_().
5131 * stack.c (_initialize_stack): Use _(), not N_().
5132 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5133
2b79f376
SM
51342019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5135
5136 * dwarf2read.c (struct dw2_symtab_iterator):
5137 <want_specific_block>: Remove.
5138 <block_index>: Change type to gdb::optional.
5139 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5140 change type of BLOCK_INDEX parameter to gdb::optional.
5141 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5142 (dw2_lookup_symbol): Don't pass argument for
5143 WANT_SPECIFIC_BLOCK.
5144 (dw2_expand_symtabs_for_function): Don't pass argument for
5145 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5146 (class dw2_debug_names_iterator)
5147 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5148 parameter, change BLOCK_INDEX type to gdb::optional.
5149 <m_want_specific_block>: Remove.
5150 <m_block_index>: Change type to gdb::optional.
5151 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5152 gdb::optional. Re-write in function of gdb::optional.
5153 (dw2_debug_names_lookup_symbol): Don't pass argument for
5154 WANT_SPECIFIC_BLOCK.
5155 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5156 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5157 BLOCK_INDEX.
5158
ae60f04e
PW
51592019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5160
5161 * NEWS: Mention changes to "info sources" command.
5162
28cd9371
PW
51632019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164
5165 * symtab.c (filename_partial_match_opts): New struct type.
5166 (struct output_source_filename_data): New members
5167 regexp, c_regexp, partial_match.
5168 (output_source_filename): Use new members to decide to print file.
5169 (info_sources_option_defs): New variable.
5170 (make_info_sources_options_def_group, print_info_sources_header,
5171 info_sources_command_completer):
5172 New functions.
5173 (info_sources_command): Read new optional arguments.
5174 (_initialize_symtab): Update info sources help.
5175
ca683e3a
AO
51762019-08-02 Alexandre Oliva <oliva@adacore.com>
5177
5178 * ada-lang.c (exception_support_info_v0): Renamed from...
5179 (default_exception_support_info): ... this. Create new
5180 definition for v1.
5181 (ada_has_this_exception_support): Look up catch_handlers_sym.
5182 (ada_exception_support_info_sniffer): Try v0 after default.
5183
f1264162
TT
51842019-08-01 Tom Tromey <tromey@adacore.com>
5185
5186 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5187 gdbarch.h.
5188
0a7b2485
CB
51892019-08-01 Christian Biesinger <cbiesinger@google.com>
5190
5191 * s12z-tdep.c: Fix include path for s12z-opc.h.
5192
c6bdbeb7
AH
51932019-08-01 Alan Hayward <alan.hayward@arm.com>
5194
5195 * NEWS: Require GNU make 3.82.
5196
a2bd7b82
TT
51972019-07-16 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5200 declare.
5201
aa3b6533
TT
52022019-07-30 Tom Tromey <tromey@adacore.com>
5203
5204 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5205
a1530dc7
KB
52062019-07-30 Kevin Buettner <kevinb@redhat.com>
5207
5208 * printcmd.c (print_address_symbolic): Print negative offsets.
5209 (build_address_symbolic): Force signed arithmetic when computing
5210 offset.
5211
2906593f
CB
52122019-07-30 Christian Biesinger <cbiesinger@google.com>
5213
5214 PR/24474: Add a function to lookup static variables.
5215 * NEWS: Mention this new function.
5216 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5217 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5218 * python/python.c (python_GdbMethods): Add new function.
5219
c620ed88
CB
52202019-07-29 Christian Biesinger <cbiesinger@google.com>
5221
5222 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5223 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5224 (objfpy_lookup_static_symbol): New function.
5225 (objfile_object_methods): Add new functions.
5226
bc4268a5
PW
52272019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5228
5229 * NEWS: Mention 'set|show print frame-info'. Mention new
5230 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5231 backtrace argument. Mention that python frame filtering code
5232 is now consistent with what 'backtrace' command prints.
5233
4b5e8d19
PW
52342019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5235
5236 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5237 comments.
5238 (print_frame_info_auto, print_frame_info_source_line,
5239 print_frame_info_location, print_frame_info_source_and_location,
5240 print_frame_info_location_and_address, print_frame_info_short_location):
5241 New declarations.
5242 (struct frame_print_options): New member print_frame_info.
5243 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5244 * stack.h (get_user_print_what_frame_info): New declaration.
5245 (frame_show_address): New declaration.
5246 * stack.c (print_frame_arguments_choices): New value 'presence'.
5247 (print_frame_info_auto, print_frame_info_source_line,
5248 print_frame_info_location, print_frame_info_source_and_location,
5249 print_frame_info_location_and_address, print_frame_info_short_location,
5250 print_frame_info_choices, print_frame_info_print_what): New definitions.
5251 (print_frame_args): Only print dots for args if print frame-arguments
5252 is 'presence'.
5253 (frame_print_option_defs): New element for "frame-info".
5254 (get_user_print_what_frame_info): New function.
5255 (frame_show_address): Make non static. Move comment to stack.h.
5256 (print_frame_info_to_print_what): New function.
5257 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5258 to decide what to print.
5259 (backtrace_command_1): Handle the new print_frame_arguments_presence
5260 value.
5261 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5262 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5263 (py_print_frame): In non-mi mode, use LOCATION as default for
5264 print_what, similarly to frame information printed directly by
5265 backtrace command. Handle frame-info user option in non MI mode.
5266
6bdfee81
KB
52672019-07-27 Kevin Buettner <kevinb@redhat.com>
5268
5269 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5270 Add case for debugging 32-bit target on 64-bit host. Revise
5271 comment.
5272
98a617f8
KB
52732019-07-27 Kevin Buettner <kevinb@redhat.com>
5274
5275 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5276 instead of find_function_entry_range_from_pc.
5277
567238c9
KB
52782019-07-27 Kevin Buettner <kevinb@redhat.com>
5279
5280 * stack.c (find_frame_funname): Remove code which preferred
5281 minsym over symtab sym in "certain pathological cases".
5282
2dc80cf8
KB
5283 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5284 parameter. Change type of "do_demangle" to bool.
5285 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5286 Pass suitable "prefer_sym_over_minsym" flag to
5287 build_address_symbolic(). Don't output "+" for negative offsets.
5288 * printcmd.c (print_address_symbolic): Update invocation of
5289 build_address_symbolic to include a "prefer_sym_over_minsym"
5290 flag.
5291 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5292 Restrict cases in which use of minimal symbol is preferred to that
5293 of a found symbol. Update comments.
5294
1aff7173
KB
5295 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5296 for entry pc when entry pc is out of range for that FDE.
5297
89b085ac
BC
52982019-07-26 Brian Callahan <bcallah@openbsd.org>
5299
5300 PR gdb/24839:
5301 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5302 type.
5303
f32feb4a
CB
53042019-07-25 Christian Biesinger <cbiesinger@google.com>
5305
5306 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5307 this function's Python signature.
5308
5309
53102019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5311
5312 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5313 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5314 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5315 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5316 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5317
5318
c54e4253
YS
53192019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5320
5321 * h8300-tdep.c (h8300_register_name_common): New.
5322 h8300_register_name): Use h8300_register_name_common.
5323 (h8300s_register_name): Likewise.
5324 (h8300sx_register_name): Likewise.
5325 (h8300h_register_nam): New.
5326 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5327
5328
40eadf04
SP
53292019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5330
5331 * arm-tdep.c (arm_skip_cmse_entry): New function.
5332 (arm_is_sgstubs_section): New function.
5333 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5334
bfa2a36d
TT
53352019-07-22 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5338 Don't self-assign.
5339
a8e9d247
AB
53402019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5341
5342 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5343 type_print.
5344
eb86c5e2
AB
53452019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5346
5347 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5348 so that GDB doesn't match any msymbols when searching in the
5349 TYPES_DOMAIN.
5350 (print_symbol_info): Print using typedef_print or type_print based
5351 on the type of the symbol. Add updated FIXME comment moved from...
5352 (_initialize_symtab): ... move and update FIXME comment to above.
5353
a8eab7c6
AB
53542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5355
5356 * NEWS: Mention adding -q option to "info types".
5357 * symtab.c (struct info_types_options): New struct.
5358 (info_types_options_defs): New variable.
5359 (make_info_types_options_def_group): New function.
5360 (info_types_command): Use gdb::option framework to parse options.
5361 (info_types_command_completer): New function.
5362 (_initialize_symtab): Extend the help text on "info types" and
5363 register command completer.
5364
b4603c34
CB
53652019-07-21 Christian Biesinger <cbiesinger@google.com>
5366
5367 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5368 (lookup_symbol_in_objfile): Change int to block_enum and add a
5369 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5370
c8cdc1e0
CB
53712019-07-20 Christian Biesinger <cbiesinger@google.com>
5372
5373 * MAINTAINERS (Write After Approval): Add self.
5374
01e175fe
AB
53752019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5378 instruction to the dummy code region.
5379
56f79b63
TT
53802019-07-19 Tom Tromey <tromey@adacore.com>
5381
5382 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5383 (ARGSUSED, PARAMS, __func__): Remove rules.
5384
4c5aa8e0
AH
53852019-07-19 Alan Hayward <alan.hayward@arm.com>
5386
5387 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5388 * features/arm/arm-with-iwmmxt.c: Remove.
5389 * features/arm/arm-with-iwmmxt.xml: Remove.
5390 * features/arm/arm-with-m-fpa-layout.c: Remove.
5391 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5392 * features/arm/arm-with-m-vfp-d16.c: Remove.
5393 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5394 * features/arm/arm-with-m.c: Remove.
5395 * features/arm/arm-with-m.xml: Remove.
5396 * features/arm/arm-with-neon.c: Remove.
5397 * features/arm/arm-with-neon.xml: Remove.
5398 * features/arm/arm-with-vfpv2.c: Remove.
5399 * features/arm/arm-with-vfpv2.xml: Remove.
5400 * features/arm/arm-with-vfpv3.c: Remove.
5401 * features/arm/arm-with-vfpv3.xml: Remove.
5402
f42b2617
AH
54032019-07-19 Alan Hayward <alan.hayward@arm.com>
5404
5405 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5406
f29ec966
AH
54072019-07-19 Alan Hayward <alan.hayward@arm.com>
5408
5409 * arch/aarch32.c (aarch32_create_target_description): Create
5410 target descriptions using features.
5411 * arch/arm.c (arm_create_target_description)
5412 (arm_create_mprofile_target_description): Likewise.
5413 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5414
d105cce5
AH
54152019-07-19 Alan Hayward <alan.hayward@arm.com>
5416
5417 * Makefile.in: Add new files.
5418 * aarch32-tdep.c: New file.
5419 * aarch32-tdep.h: New file.
5420 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5421 Call aarch32_read_description.
5422 * arch/aarch32.c: New file.
5423 * arch/aarch32.h: New file.
5424 * arch/arm.c (arm_create_target_description)
5425 (arm_create_mprofile_target_description): New function.
5426 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5427 (arm_create_target_description)
5428 (arm_create_mprofile_target_description): New declaration.
5429 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5430 read_description functions.
5431 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5432 Likewise.
5433 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5434 * arm-tdep.c (tdesc_arm_list): New variable.
5435 (arm_register_g_packet_guesses): Call create description functions.
5436 (arm_read_description) (arm_read_mprofile_description): New
5437 function.
5438 * arm-tdep.h (arm_read_description)
5439 (arm_read_mprofile_description): Add declaration.
5440 * configure.tgt: Add new files.
5441
afe09f0b
GL
54422019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5443
5444 * top.c (new_ui_command): Open specified terminal just once.
5445
cd215b2e
TT
54462019-07-18 Tom Tromey <tromey@adacore.com>
5447
5448 * symtab.c (main_name): Constify return type.
5449 * symfile.c (set_initial_language): Update.
5450 * symtab.h (main_name): Constify return type.
5451
d8f68fcb
TT
54522019-07-17 Tom Tromey <tom@tromey.com>
5453
5454 * tui/tui-winsource.c (tui_update_source_window)
5455 (tui_update_source_window_as_is)
5456 (tui_update_source_windows_with_line): Remove return.
5457 * tui/tui-disasm.c (tui_show_disassem)
5458 (tui_show_disassem_and_update_source): Remove return.
5459 * tui/tui.c (tui_reset): Remove return.
5460 * tui/tui-wingeneral.c
5461 (tui_check_and_display_highlight_if_needed): Remove return.
5462
ca5af91e
TT
54632019-07-17 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5466
5104fe36
TT
54672019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-winsource.h (struct tui_exec_info_window)
5470 (struct tui_source_window_base): Move from tui-data.h.
5471 * tui/tui-winsource.c: Move many method definitions from
5472 elsewhere. Remove "structuring" comments.
5473 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5474 (tui_source_window_base::refresh_window): Move to
5475 tui-winsource.c.
5476 * tui/tui-win.c (tui_source_window_base::refresh_all)
5477 (tui_source_window_base::update_tab_width)
5478 (tui_source_window_base::set_new_height)
5479 (tui_source_window_base::do_make_visible_with_new_height): Move to
5480 tui-winsource.c.
5481 * tui/tui-source.h: Update.
5482 * tui/tui-source.c (tui_source_window_base::reset): Move to
5483 tui-winsource.c.
5484 * tui/tui-disasm.h: Update.
5485 * tui/tui-data.h (struct tui_exec_info_window): Move to
5486 tui-winsource.h.
5487 (struct tui_source_window_base): Likewise.
5488 * tui/tui-data.c (tui_source_window_base::clear_detail)
5489 (tui_source_window_base, ~tui_source_window_base): Move to
5490 tui-winsource.c.
5491
daa15dde
TT
54922019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-win.c (tui_resize_all)
5495 (tui_source_window_base::update_tab_width)
5496 (tui_adjust_win_heights): Update.
5497 (tui_win_info::make_invisible_and_set_new_height): Rename from
5498 make_invisible_and_set_new_height.
5499 * tui/tui-data.h (struct tui_win_info)
5500 <make_invisible_and_set_new_height>: New method.
5501
bfad4537
TT
55022019-07-17 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui.c: Update.
5505 * tui/tui-source.h (struct tui_source_window): Move from
5506 tui-data.h.
5507 * tui/tui-layout.c: Update.
5508 * tui/tui-disasm.c: Update.
5509 * tui/tui-data.h (struct tui_source_window): Move to
5510 tui-source.h.
5511
88f7e873
TT
55122019-07-17 Tom Tromey <tom@tromey.com>
5513
5514 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5515 tui-data.h.
5516 * tui/tui-data.h (struct tui_disasm_window): Move to
5517 tui-disasm.h.
5518
96bd6233
TT
55192019-07-17 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-regs.h (struct tui_data_item_window): Move from
5522 tui-data.h.
5523 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5524 * tui/tui-data.h (struct tui_data_item_window): Move to
5525 tui-regs.h.
5526 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5527
ce38393b
TT
55282019-07-17 Tom Tromey <tom@tromey.com>
5529
5530 * tui/tui.c: Update.
5531 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5532 (tui_cmd_window::max_height): Move to tui-command.c.
5533 * tui/tui-layout.c: Update.
5534 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5535 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5536 tui-command.c.
5537 * tui/tui-command.h (struct tui_cmd_window): Move from
5538 tui-data.h.
5539 * tui/tui-command.c: Remove "structuring" comments.
5540 (tui_cmd_window::clear_detail)
5541 (tui_cmd_window::do_make_visible_with_new_height)
5542 (tui_cmd_window::max_height): Move from elsewhere.
5543
2d8b51cb
TT
55442019-07-17 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5547 Now static.
5548 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5549 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5550
18ab23af
TT
55512019-07-17 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui.c: Update.
5554 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5555 tui-regs.c.
5556 * tui/tui-windata.h: Remove file.
5557 * tui/tui-windata.c: Remove file.
5558 * tui/tui-win.c (tui_data_window::set_new_height)
5559 (tui_data_window::do_make_visible_with_new_height): Move to
5560 tui-regs.c.
5561 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5562 * tui/tui-regs.c: Remove "structuring" comments.
5563 (tui_data_window::first_data_item_displayed)
5564 (tui_data_window::delete_data_content_windows)
5565 (tui_data_window::erase_data_content)
5566 (tui_data_window::display_all_data)
5567 (tui_data_window::refresh_all)
5568 (tui_data_window::do_scroll_vertical)
5569 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5570 (tui_data_window::do_make_visible_with_new_height)
5571 (tui_data_window::refresh_window): Move from elsewhere.
5572 (_initialize_tui_regs): Move to end of file.
5573 * tui/tui-layout.c: Update.
5574 * tui/tui-hooks.c: Update.
5575 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5576 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5577 tui-regs.c.
5578 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5579
88b7e7cc
TT
55802019-07-17 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5583 seen.
5584
0fcd3711
TT
55852019-07-17 Tom Tromey <tom@tromey.com>
5586
5587 * tui/tui-win.c (tui_source_window_base::set_new_height)
5588 (tui_source_window_base::do_make_visible_with_new_height): Use
5589 m_has_locator field directly.
5590 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5591 method.
5592 (struct tui_source_window_base) <has_locator>: Likewise.
5593
4a38112d
TT
55942019-07-17 Tom Tromey <tom@tromey.com>
5595
5596 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5597 Don't declare.
5598 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5599 Remove.
5600 * tui/tui-win.c (tui_source_window_base::set_new_height)
5601 (tui_source_window_base::set_new_height)
5602 (make_invisible_and_set_new_height)
5603 (tui_source_window_base::do_make_visible_with_new_height)
5604 (tui_source_window_base::do_make_visible_with_new_height):
5605 Update.
5606 * tui/tui-layout.c (show_source_disasm_command, show_data)
5607 (show_source_or_disasm_and_command): Update.
5608 * tui/tui-layout.c (show_layout): Update.
5609
09129226
TT
56102019-07-17 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-layout.c (make_data_window): Remove.
5613 (show_data): Unify creation and re-initialization cases.
5614
4a8a5e84
TT
56152019-07-17 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-layout.c (make_source_window, make_disasm_window):
5618 Remove.
5619 (show_data): Unify creation and re-initialization cases.
5620
76d2be8e
TT
56212019-07-17 Tom Tromey <tom@tromey.com>
5622
5623 * tui/tui-layout.c (make_command_window): Remove.
5624 (show_source_disasm_command, show_source_or_disasm_and_command):
5625 Unify creation and re-initialization cases.
5626
890b8bde
TT
56272019-07-17 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5630 creation and re-initialization cases.
5631
2cdfa113
TT
56322019-07-17 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-regs.c (tui_get_register): Return void.
5635
8e3cfd09
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5639 Simplify.
5640
f4e04977
TT
56412019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5644 resetting.
5645
0379b883
TT
56462019-07-17 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5649 * tui/tui-regs.c (tui_reg_layout): New function.
5650 (tui_show_registers, tui_reg_command): Use it.
5651 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5652 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5653 parameters.
5654 (tui_layout_command): Remove.
5655
b7fbad91
TT
56562019-07-17 Tom Tromey <tom@tromey.com>
5657
5658 * tui/tui-layout.h (tui/tui-layout): Return void.
5659 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5660
4e1e56b9
TT
56612019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-layout.c (show_source_disasm_command, show_data):
5664 Update.
5665 (reset_locator): Remove.
5666 (show_source_or_disasm_and_command): Update.
5667
1e0c09ba
TT
56682019-07-17 Tom Tromey <tom@tromey.com>
5669
5670 * tui/tui-source.c (tui_source_window_base::reset): Remove
5671 win_type parameter.
5672 * tui/tui-layout.c (make_command_window, make_source_window)
5673 (make_disasm_window, make_data_window)
5674 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5675 (reset_locator, show_source_or_disasm_and_command): Update.
5676 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5677 win_type parameter.
5678 (struct tui_source_window_base) <reset>: Likewise.
5679
1bf605de
TT
56802019-07-17 Tom Tromey <tom@tromey.com>
5681
5682 * tui/tui-layout.c (show_source_disasm_command): Use
5683 reset_locator.
5684 (reset_locator): New function.
5685 (init_and_make_win): Remove.
5686 (show_source_or_disasm_and_command): Use reset_locator.
5687
098f9ed4
TT
56882019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5691 condition.
5692 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5693 Remove condition.
5694 * tui/tui-source.c (tui_source_window_base::reset): New method.
5695 * tui/tui-layout.c (make_command_window): Don't call
5696 init_and_make_win.
5697 (make_source_window, make_disasm_window): Don't call
5698 make_source_or_disasm_window.
5699 (make_data_window): Don't call init_and_make_win. Change calling
5700 convention.
5701 (show_source_disasm_command, show_data): Simplify.
5702 (make_source_or_disasm_window): Remove.
5703 (show_source_or_disasm_and_command): Simplify.
5704 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5705 (struct tui_source_window_base) <reset>: Likewise.
5706 <execution_info>: Remove initializer.
5707 * tui/tui-data.c (tui_source_window_base): Initialize
5708 execution_info.
5709
80110957
TT
57102019-07-17 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5713 variable.
5714
cf82af05
TT
57152019-07-17 Tom Tromey <tom@tromey.com>
5716
5717 * tui/tui.c (tui_rl_other_window): Update.
5718 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5719 superclass method first. Always iterate over regs_content.
5720 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5721 method.
5722 * tui/tui-win.c (tui_set_focus_command): Update.
5723
01aeb396
TT
57242019-07-17 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-win.c (tui_set_focus_command): Rename from
5727 tui_set_focus. Call tui_enable.
5728 (tui_set_focus_command): Remove.
5729
fd6c75ee
TT
57302019-07-17 Tom Tromey <tom@tromey.com>
5731
5732 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5733 refresh_window.
5734 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5735 touchwin.
5736 (tui_data_window::refresh_window): Call refresh_window on data
5737 items. Always call superclass refresh_window.
5738 (tui_win_info::refresh): Remove.
5739 (tui_source_window_base::refresh_window): Update.
5740 (tui_refresh_all): Update.
5741 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5742 refresh_window.
5743 (show_source_or_disasm_and_command): Likewise.
5744 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5745 (struct tui_source_window_base) <refresh>: Likewise.
5746
f6cc34a9
TT
57472019-07-17 Tom Tromey <tom@tromey.com>
5748
5749 * tui/tui-winsource.c (tui_clear_source_content)
5750 (tui_show_source_content): Update.
5751 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5752 whether content is empty.
5753 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5754 Remove.
5755
f31ec9af
TT
57562019-07-17 Tom Tromey <tom@tromey.com>
5757
5758 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5759 window's contents.
5760 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5761 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5762
d1b6f1e5
TT
57632019-07-17 Tom Tromey <tom@tromey.com>
5764
5765 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5766 (struct tui_data_item_window): Update.
5767
d9743a13
TT
57682019-07-17 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5771 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5772 defines.
5773
caf0bc4e
TT
57742019-07-17 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-winsource.h (tui_erase_source_content)
5777 (tui_clear_source_content): Remove "display_prompt" parameter.
5778 * tui/tui-winsource.c (tui_update_source_window_as_is)
5779 (tui_update_source_windows_with_addr): Update.
5780 (tui_clear_source_content): Remove "display_prompt" parameter.
5781 (tui_erase_source_content): Likewise. Simplify.
5782 (tui_show_source_content): Update.
5783 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5784 * tui/tui-stack.c (tui_show_frame_info): Update.
5785 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5786 Remove defines.
5787
9d391078
TT
57882019-07-17 Tom Tromey <tom@tromey.com>
5789
5790 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5791 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5792 parameter.
5793 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5794 parameter.
5795
a38da35d
TT
57962019-07-17 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-winsource.c (tui_clear_source_content)
5799 (tui_show_source_content, tui_show_exec_info_content)
5800 (tui_clear_exec_info_content): Update.
5801 * tui/tui-stack.c (tui_show_locator_content): Update.
5802 (tui_show_frame_info): Update.
5803 * tui/tui-source.h (tui_source_window): Don't declare.
5804 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5805 from tui_source_is_displayed.
5806 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5807 Remove field.
5808 (struct tui_source_window_base) <content_in_use>: New field. Now
5809 bool.
5810 (struct tui_source_window) <showing_source_p>: New method.
5811 (TUI_SRC_WIN): Change cast.
5812 * tui/tui-data.c (tui_initialize_static_data): Update.
5813
c2cd8994
TT
58142019-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5817 location_matches_p.
5818 * tui/tui-source.c (tui_source_window::location_matches_p): New
5819 method.
5820 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5821 method.
5822 * tui/tui-data.h (struct tui_source_window_base)
5823 <location_matches_p>: New method.
5824 (struct tui_source_window, struct tui_disasm_window)
5825 <location_matches_p>: Likewise.
5826
4dde7b34
TT
58272019-07-17 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-win.c (tui_set_win_height_command): Rename from
5830 tui_set_win_height.
5831 (tui_set_win_height_command): Remove.
5832
b73dd877
TT
58332019-07-17 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-source.c (tui_source_window): New constructor. Add
5836 observer.
5837 (~tui_source_window): New destructor.
5838 (tui_source_window::style_changed): New method.
5839 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5840 (tui_attach_detach_observers): Update.
5841 * tui/tui-data.h (struct tui_source_window): Make constructor not
5842 inline. Add destructor.
5843 (struct tui_source_window) <style_changed>: New method.
5844 <m_observable>: New member.
5845
ae2b5380
TT
58462019-07-17 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5849 * tui/tui-win.c (tui_resize_all): Fix typo.
5850
1ce3e844
TT
58512019-07-17 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5854 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5855 (tui_refresh_all): Remove "list" parameter. Use foreach.
5856 * tui/tui-win.c (window_name_completer): Use foreach.
5857 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5858 (update_tab_width): Likewise.
5859 * tui/tui-layout.c (show_layout): Update.
5860 * tui/tui-data.h (class tui_window_iterator): New.
5861 (struct all_tui_windows): New.
5862 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5863
fe3eaf1c
TT
58642019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5867 parameter. Don't reference globals.
5868 (tui_reg_command): Update.
5869
368c1354
TT
58702019-07-17 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-regs.c (tui_show_registers): Simplify.
5873
e80cd204
TT
58742019-07-17 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-regs.c (tui_show_registers): Update.
5877 (tui_show_register_group): Add win_info parameter.
5878
aca2dd16
TT
58792019-07-17 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5882 Rename from tui_display_reg_element_at_line.
5883 (tui_data_window::display_registers_from_line): Update.
5884 * tui/tui-data.h (struct tui_data_window)
5885 <display_reg_element_at_line>: New method.
5886
517e9505
TT
58872019-07-17 Tom Tromey <tom@tromey.com>
5888
5889 * tui/tui-regs.h (tui_display_registers_from)
5890 (tui_display_registers_from_line): Don't declare.
5891 * tui/tui-windata.c (tui_data_window::display_all_data)
5892 (tui_data_window::refresh_all)
5893 (tui_data_window::do_scroll_vertical): Update.
5894 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5895 from tui_display_registers_from.
5896 (tui_display_reg_element_at_line): Update.
5897 (tui_data_window::display_registers_from_line): Rename from
5898 tui_display_registers_from_line.
5899 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5900 display_registers_from_line>: New methods.
5901
f76d8b19
TT
59022019-07-17 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5905 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5906 from tui_erase_data_content.
5907 (tui_data_window::display_all_data)
5908 (tui_data_window::refresh_all)
5909 (tui_data_window::do_scroll_vertical): Update.
5910 * tui/tui-regs.c (tui_show_registers): Update.
5911 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5912 New method.
5913
b4094625
TT
59142019-07-17 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5917 declare.
5918 * tui/tui-windata.c
5919 (tui_data_window::delete_data_content_windows): Rename from
5920 tui_delete_data_content_windows.
5921 (tui_data_window::display_all_data)
5922 (tui_data_window::do_scroll_vertical): Update.
5923 * tui/tui-data.h (struct tui_data_window)
5924 <delete_data_content_windows>: New method.
5925
c223a729
TT
59262019-07-17 Tom Tromey <tom@tromey.com>
5927
5928 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5929 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5930
50daf268
TT
59312019-07-17 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5934 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5935 from tui_display_all_data.
5936 * tui/tui-win.c
5937 (tui_data_window::do_make_visible_with_new_height): Update.
5938 * tui/tui-regs.c (tui_show_registers): Update.
5939 * tui/tui-layout.c (tui_set_layout): Update.
5940 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5941 method.
5942
df5f8cab
TT
59432019-07-17 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5946 * tui/tui-windata.c (tui_display_data_from): Remove.
5947 (tui_data_window::refresh_all): Update.
5948
80cb6c27
TT
59492019-07-17 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5952 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5953 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5954 tui_display_registers_from_line.
5955 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5956 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5957 "force_display" parameter.
5958
baff0c28
TT
59592019-07-17 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5962 declare.
5963 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5964 Rename from tui_first_reg_element_no_inline.
5965 (tui_display_reg_element_at_line)
5966 (tui_display_registers_from_line): Update.
5967 * tui/tui-data.h (struct tui_data_window)
5968 <first_reg_element_no_inline>: New method.
5969
3b23c5f2
TT
59702019-07-17 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-windata.c (tui_display_data_from)
5973 (tui_data_window::do_scroll_vertical): Update.
5974 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5975 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5976 Rename from tui_line_from_reg_element_no.
5977 (tui_display_registers_from_line): Update.
5978 * tui/tui-data.h (struct tui_data_window)
5979 <line_from_reg_element_no>: New method.
5980
0b5ec218
TT
59812019-07-17 Tom Tromey <tom@tromey.com>
5982
5983 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5984 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5985 tui_last_regs_line_no.
5986 (tui_display_reg_element_at_line)
5987 (tui_display_registers_from_line): Update.
5988 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5989 method.
5990
0807ab7b
TT
59912019-07-17 Tom Tromey <tom@tromey.com>
5992
5993 PR tui/24722:
5994 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5995 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5996 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5997 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5998 (tui_update_breakpoint_info): Likewise.
5999 * tui/tui-hooks.c (tui_event_create_breakpoint)
6000 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6001 Update.
6002
9ad7fdef
TT
60032019-07-17 Tom Tromey <tom@tromey.com>
6004
6005 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6006
5813316f
TT
60072019-07-17 Tom Tromey <tom@tromey.com>
6008
6009 * tui/tui-winsource.c (tui_update_source_window_as_is)
6010 (tui_update_source_windows_with_addr): Update.
6011 * tui/tui-source.h (tui_set_source_content)
6012 (tui_show_symtab_source): Add "win_info" parameter.
6013 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6014 parameter.
6015 (tui_show_symtab_source): Likewise.
6016
00e264e7
TT
60172019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-wingeneral.c
6020 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6021
06210ce4
TT
60222019-07-17 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6025 (struct tui_cmd_window) <can_scroll>: New method.
6026 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6027 method.
6028
381befee
TT
60292019-07-17 Tom Tromey <tromey@adacore.com>
6030
6031 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6032 do_field_signed>: Rename. Change type of "value".
6033 * ui-out.c (ui_out::field_signed): Rename from field_int.
6034 Change type of "value".
6035 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6036 type of "value".
6037 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6038 do_field_int. Change type of "value".
6039 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6040 do_field_int. Change type of "value".
6041 * tracepoint.c (trace_status_mi, tfind_1)
6042 (print_one_static_tracepoint_marker): Update.
6043 * thread.c (print_thread_info_1, print_selected_thread_frame):
6044 Update.
6045 * stack.c (print_frame, print_frame_info): Update.
6046 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6047 Update.
6048 * source.c (print_source_lines_base): Update.
6049 * skip.c (info_skip_command): Update.
6050 * record-btrace.c (btrace_ui_out_decode_error)
6051 (btrace_call_history_src_line): Update.
6052 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6053 Update.
6054 * progspace.c (print_program_space): Update.
6055 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6056 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6057 do_field_int. Change type of "value".
6058 * mi/mi-out.c (mi_ui_out::do_table_begin)
6059 (mi_ui_out::do_table_header): Update.
6060 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6061 type of "value".
6062 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6063 (mi_cmd_data_list_changed_registers, output_register)
6064 (mi_cmd_data_read_memory, mi_load_progress)
6065 (mi_cmd_trace_frame_collected): Update.
6066 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6067 Update.
6068 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6069 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6070 (mi_cmd_var_list_children, varobj_update_one): Update.
6071 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6072 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6073 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6074 * inferior.c (print_inferior): Update.
6075 * gdb_bfd.c (print_one_bfd): Update.
6076 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6077 Update.
6078 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6079 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6080 do_field_int. Change type of "value".
6081 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6082 do_field_int. Change type of "value".
6083 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6084 (print_one_breakpoint_location, print_it_catch_fork)
6085 (print_one_catch_fork, print_it_catch_vfork)
6086 (print_one_catch_vfork, print_it_catch_solib)
6087 (print_it_catch_exec, print_it_ranged_breakpoint)
6088 (print_mention_watchpoint, print_mention_masked_watchpoint)
6089 (bkpt_print_it, update_static_tracepoint): Update.
6090 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6091 * break-catch-syscall.c (print_it_catch_syscall): Update.
6092 * ada-tasks.c (print_ada_task_info): Update.
6093 * ada-lang.c (print_it_exception, print_mention_exception):
6094 Update.
6095
6b78c3f8
AB
60962019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6097
6098 PR breakpoints/24541
6099 * gdbarch.c: Regenerate.
6100 * gdbarch.h: Regenerate.
6101 * gdbarch.sh: Adjust return type and parameter types for
6102 'stap_adjust_register'.
6103 (i386_stap_adjust_register): Adjust signature and return new
6104 register name.
6105 * stap-probe.c (stap_parse_register_operand): Adjust use of
6106 'gdbarch_stap_adjust_register'.
6107
d72a9b85
TT
61082019-07-17 Tom Tromey <tromey@adacore.com>
6109
6110 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6111 declare VEC.
6112 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6113 std::vector.
6114 (struct s390_process_info): Add initializers.
6115 (s390_add_process): Use new.
6116 (s390_linux_nat_target::low_forget_process): Use delete.
6117 (s390_linux_nat_target::low_new_fork)
6118 (s390_linux_nat_target::stopped_by_watchpoint)
6119 (s390_linux_nat_target::low_prepare_to_resume)
6120 (s390_linux_nat_target::insert_watchpoint)
6121 (s390_linux_nat_target::insert_hw_breakpoint)
6122 (s390_linux_nat_target::remove_watchpoint)
6123 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6124
206e6c58
JB
61252019-07-16 John Baldwin <jhb@FreeBSD.org>
6126
6127 * aarch64-fbsd-nat.c: Include regcache.h.
6128 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6129 argument.
6130 (aarch64_fbsd_nat_target::fetch_registers)
6131 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6132 variable.
6133 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6134
cbde90f2
JB
61352019-07-16 John Baldwin <jhb@FreeBSD.org>
6136
6137 * fbsd-nat.c: Include gdbarch.h.
6138
07128006
TT
61392019-07-15 Tom Tromey <tromey@adacore.com>
6140
6141 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6142
1f77b012
TT
61432019-07-15 Tom Tromey <tromey@adacore.com>
6144
6145 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6146 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6147 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6148 * cli-out.c (cli_ui_out::do_field_int): New method.
6149 * ui-out.c (ui_out::field_unsigned): New method.
6150 * symfile.c (generic_load): Use field_unsigned.
6151 (print_transfer_performance): Likewise.
6152 * record-btrace.c (ui_out_field_uint): Remove.
6153 (btrace_call_history_insn_range, btrace_call_history): Use
6154 field_unsigned.
6155 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6156 field_unsigned.
6157 * ui-out.h (class ui_out) <field_unsigned>: New method.
6158 <do_field_unsigned>: Likewise.
6159
33eca680
TT
61602019-07-15 Tom Tromey <tromey@adacore.com>
6161
6162 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6163 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6164 * target.c (flash_erase_command): Use field_string.
6165 * infrun.c (print_signal_received_reason): Use field_string.
6166 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6167 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6168 field_string.
6169 * ada-tasks.c (print_ada_task_info): Use field_string.
6170
ca8d69be
TT
61712019-07-15 Tom Tromey <tromey@adacore.com>
6172
6173 * target.c (flash_erase_command): Use field_core_addr.
6174 * symfile.c (generic_load): Use field_core_addr.
6175 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6176 Use field_core_addr.
6177 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6178 field_core_addr.
6179
0d4e84ed
AB
61802019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6183 value if its desired type is smaller than a CORE_ADDR and signed.
6184
9a49df9d
AB
61852019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6188 of changes to field names, and use new is_reference field to
6189 decide if a property is a reference or not.
6190 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6191 field.
6192 (struct dwarf2_property_baton): Update header comment, rename
6193 'referenced_type' to 'property_type' and update comments.
6194 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6195 default property type, store in property baton, update to take
6196 accound of renamed field.
6197 (read_func_scope): Update call to attr_to_dynamic_prop.
6198 (read_array_type): Likewise.
6199 (dwarf2_per_cu_addr_sized_int_type): New function.
6200 (read_subrange_index_type): Move type finding code to
6201 dwarf2_per_cu_addr_sized_int_type.
6202 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6203 (dwarf2_per_cu_addr_type): New function.
6204 (set_die_type): Update calls to attr_to_dynamic_prop.
6205
b86352cf
AB
62062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * dwarf2read.c (read_subrange_index_type): New function.
6209 (read_subrange_type): Move code into new function and call it.
6210 * gdbtypes.c (create_range_type): Add some asserts.
6211
603490bf
AB
62122019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6213
6214 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6215 update return statements.
6216 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6217 declaration, and update comment to match.
6218 * gdbtypes.c (resolve_dynamic_array): Update call to
6219 dwarf2_evaluate_property to match new return type.
6220
592f9d27
AB
62212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * valarith.c (value_subscripted_rvalue): Change lowerbound
6224 parameter type from int to LONGEST.
6225 * value.h (value_subscripted_rvalue): Likewise in declaration.
6226
60cfcb20
AB
62272019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 * cli/cli-utils.c (info_print_command_completer): New function.
6230 * cli/cli-utils.h: Add 'completer.h' include, and forward
6231 declaration for 'struct cmd_list_element'.
6232 (info_print_command_completer): Declare.
6233 * stack.c (_initialize_stack): Add completer for 'info locals' and
6234 'info args'.
6235 * symtab.c (_initialize_symtab): Add completer for 'info
6236 variables' and 'info functions'.
6237 * NEWS: Mention completion for additional info commands.
6238
b16507e0
AB
62392019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * cli/cli-utils.c (extract_info_print_args): Delete.
6242 (extract_arg_maybe_quoted): Delete.
6243 (info_print_options_defs): New variable.
6244 (make_info_print_options_def_group): New function.
6245 (extract_info_print_options): Define new function.
6246 * cli/cli-utils.h (extract_info_print_args): Delete.
6247 (struct info_print_options): New structure.
6248 (extract_info_print_options): Declare new function.
6249 * stack.c (info_locals_command): Update to use new
6250 extract_info_print_options, also add a header comment.
6251 (info_args_command): Likewise.
6252 * symtab.c (info_variables_command): Likewise.
6253 (info_functions_command): Likewise.
6254
021d8588
AB
62552019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6258 to extract string arguments.
6259 * common/common-utils.c (extract_string_maybe_quoted): New function.
6260 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6261
b777eb6d
TT
62622019-07-11 Tom Tromey <tromey@adacore.com>
6263
6264 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6265 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6266 * top.h (gdbinit): Don't declare.
6267 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6268 into...
6269 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6270 * top.c (gdb_init): Don't call init_cli_cmds.
6271 (gdbinit): Remove.
6272 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6273
72ee03ff
TT
62742019-07-11 Tom Tromey <tromey@adacore.com>
6275
6276 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6277 after it has been moved.
6278
00db9531
SM
62792019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * valops.c (value_must_coerce_to_target): Change return type to
6282 bool.
6283 * value.h (value_must_coerce_to_target): Likewise.
6284
f2478a7e
SM
62852019-07-10 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * breakpoint.c (is_hardware_watchpoint): Remove
6288 forward-declaration.
6289 (is_masked_watchpoint): Change return type to bool.
6290 (is_tracepoint): Likewise.
6291 (is_breakpoint): Likewise.
6292 (is_hardware_watchpoint): Likewise.
6293 (is_watchpoint): Likewise.
6294 (is_no_memory_software_watchpoint): Likewise.
6295 (is_catchpoint): Likewise.
6296 (breakpoint_1): Make FILTER parameter's return type bool.
6297 is_masked_watchpoint): Change return type to bool.
6298 (save_breakpoints): Make FILTER parameter's return type bool.
6299 * breakpoint.h (is_breakpoint): Change return type to bool.
6300 (is_watchpoint): Likewise.
6301 (is_catchpoint): Likewise.
6302 (is_tracepoint): Likewise.
6303
0d12e84c
TT
63042019-07-10 Tom Tromey <tom@tromey.com>
6305
6306 * defs.h: Don't include gdbarch.h.
6307 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6308 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6309 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6310 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6311 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6312 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6313 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6314 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6315 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6316 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6317 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6318 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6319 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6320 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6321 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6322 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6323 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6324 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6325 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6326 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6327 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6328 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6329 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6330 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6331 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6332 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6333 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6334
f06f1252
TT
63352019-07-10 Tom Tromey <tromey@adacore.com>
6336
6337 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6338 * breakpoint.c (init_ada_exception_breakpoint): Register as
6339 bp_catchpoint.
6340 (print_one_breakpoint_location, print_one_breakpoint): Use
6341 is_ada_exception_catchpoint.
6342 * ada-lang.c (class ada_catchpoint_location): Pass
6343 bp_loc_software_breakpoint to bp_location constructor.
6344 (is_ada_exception_catchpoint): New function.
6345
7a5d944b
TT
63462019-07-10 Tom Tromey <tromey@adacore.com>
6347
6348 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6349 VEC.
6350 (struct arm_exidx_entry): New method operator<.
6351 (struct arm_exidx_data) <section_maps>: Change type.
6352 (arm_exidx_data_free): Remove.
6353 (arm_exidx_data_key): Change type. Move lower.
6354 (arm_exidx_new_objfile): Update.
6355 (arm_compare_exidx_entries): Remove.
6356 (arm_find_exidx_entry, _initialize_arm_tdep)
6357
48c66e1d
TT
63582019-07-10 Tom Tromey <tromey@adacore.com>
6359
6360 * solib-spu.c (ocl_program_data_key): Change type.
6361 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6362 Update.
6363
a269fbf1
TT
63642019-07-10 Tom Tromey <tromey@adacore.com>
6365
6366 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6367 (struct solib_aix_inferior_data) <library_list>: Change type.
6368 (solib_aix_inferior_data_handle): Change type.
6369 (get_solib_aix_inferior_data): Update.
6370 (solib_aix_free_library_list): Remove.
6371 (library_list_start_library): Update.
6372 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6373 return type.
6374 (solib_aix_get_library_list)
6375 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6376 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6377
c294730c
TT
63782019-07-10 Tom Tromey <tromey@adacore.com>
6379
6380 * solib-dsbt.c (struct dsbt_info): Add initializers.
6381 (solib_dsbt_pspace_data): Change type.
6382 (dsbt_pspace_data_cleanup): Remove.
6383 (get_dsbt_info, _initialize_dsbt_solib): Update.
6384
9d52077d
TT
63852019-07-10 Tom Tromey <tromey@adacore.com>
6386
6387 * spu-tdep.c (spu_overlay_data): Change type.
6388 (spu_get_overlay_table, spu_overlay_new_objfile)
6389 (_initialize_spu_tdep): Update.
6390
22a20dca
TT
63912019-07-10 Tom Tromey <tromey@adacore.com>
6392
6393 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6394 destructor.
6395 (dbx_objfile_data_key): Change type and declare later.
6396 (DBX_SYMFILE_INFO): Rewrite.
6397 * dbxread.c (dbx_objfile_data_key): Change type.
6398 (dbx_symfile_init): Update.
6399 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6400 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6401 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6402
cb60f420
TT
64032019-07-10 Tom Tromey <tromey@adacore.com>
6404
6405 * jit.c (jit_program_space_key): Change type. Move lower.
6406 (get_jit_program_space_data): Update.
6407 (jit_program_space_data_cleanup): Remove.
6408 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6409 Update.
6410 (struct jit_program_space_data): Add initializers.
6411
51df2ae3
TT
64122019-07-10 Tom Tromey <tromey@adacore.com>
6413
6414 * solib-darwin.c (struct darwin_info): Add initializers.
6415 (solib_darwin_pspace_data): Change type.
6416 (darwin_pspace_data_cleanup): Remove.
6417 (get_darwin_info, _initialize_darwin_solib): Update.
6418
18101a35
TT
64192019-07-10 Tom Tromey <tromey@adacore.com>
6420
6421 * remote-sim.c (struct sim_inferior_data): Add initializers,
6422 constructor, and destructor.
6423 (sim_inferior_data_key): Change type. Move lower.
6424 (check_for_duplicate_sim_descriptor): Update.
6425 (get_sim_inferior_data): Use new. Update.
6426 (~sim_inferior_data_cleanup): Rename from
6427 sim_inferior_data_cleanup. Simplify.
6428 (gdbsim_close_inferior, simulator_command)
6429 (sim_command_completer, _initialize_remote_sim): Update.
6430 (next_pid, INITIAL_PID): Move earlier.
6431
05b08ac1
TT
64322019-07-10 Tom Tromey <tromey@adacore.com>
6433
6434 * python/python-internal.h (create_thread_object): Return
6435 gdbpy_ref.
6436 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6437 * python/py-inferior.c (struct threadlist_entry): Add
6438 constructor.
6439 <thread_obj>: Now a gdbpy_ref.
6440 (thread_to_thread_object): Update.
6441 (add_thread_object): Use new.
6442 (delete_thread_object): Use delete.
6443 (infpy_threads): Update.
6444 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6445 GIL.
6446
32372d80
TT
64472019-07-10 Tom Tromey <tromey@adacore.com>
6448
6449 * valops.c (value_cast): Specialize error message for Ada.
6450
5c458ae8
SM
64512019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6452
6453 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6454
4c462cb0
SM
64552019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6458 bpstat_should_step): Return bool, adjust comments.
6459 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6460 bpstat_should_step): Likewise.
6461
89abbcc2
AH
64622019-07-10 Alan Hayward <alan.hayward@arm.com>
6463
6464 * features/Makefile: Use feature target descriptions for Arm.
6465 * features/arm/arm-core.c: Generate new file.
6466 * features/arm/arm-fpa.c: Likewise.
6467 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6468 * features/arm/arm-m-profile.c: Likewise.
6469 * features/arm/arm-vfpv2.c: Likewise.
6470 * features/arm/arm-vfpv3.c: Likewise.
6471 * features/arm/xscale-iwmmxt.c: Likewise.
6472 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6473
166a82be
AH
64742019-07-10 Alan Hayward <alan.hayward@arm.com>
6475
6476 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6477 ptrace earlier.
6478
9fb4c7e9
AH
64792019-07-10 Alan Hayward <alan.hayward@arm.com>
6480
6481 * features/aarch64-pauth.c: Regenerate.
6482
e2d0f980
SM
64832019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6486 bool.
6487 (bpstat_what): Use false instead of 0.
6488
a38118e5
PA
64892019-07-09 Pedro Alves <palves@redhat.com>
6490
6491 * break-catch-throw.c (is_exception_catchpoint): New.
6492 * breakpoint.c (print_one_breakpoint_location): New parameter
6493 'raw_loc'. Handle it. Use
6494 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6495 looking at the breakpoint's type.
6496 (print_one_breakpoint): If handling "maint info breakpoints", also
6497 print locations of exception catchpoints.
6498 * breakpoint.h (is_exception_catchpoint): Declare.
6499
cb1e4e32
PA
65002019-07-09 Pedro Alves <palves@redhat.com>
6501
6502 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6503 "addr" field.
6504 (allocate_location_exception_catchpoint): New.
6505 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6506 (initialize_throw_catchpoint_ops): Install
6507 allocate_location_exception_catchpoint as allocate_location
6508 method.
6509 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6510 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6511 bp_loc_other.
6512 (breakpoint_address_is_meaningful): Delete.
6513 (bl_address_is_meaningful): New.
6514 (breakpoint_locations_match): Adjust comment.
6515 (bp_location_from_bp_type): New, factored out of...
6516 (bp_location::bp_location(breakpoint *)): ... this.
6517 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6518 factored out of...
6519 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6520 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6521 breakpoint_address_is_meaningful.
6522 (bp_locations_compare): Adjust comment.
6523 (update_global_location_list): Use bl_address_is_meaningful
6524 instead of breakpoint_address_is_meaningful.
6525 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6526 explicit.
6527 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6528 * python/py-breakpoint.c (bppy_get_location): No longer check
6529 whether location is null.
6530
b58a68fe
PA
65312019-07-09 Pedro Alves <palves@redhat.com>
6532
6533 PR c++/15468
6534 * breakpoint.c (print_one_breakpoint_location): Remove
6535 single-location assert.
6536
268a13a5
TT
65372019-07-09 Tom Tromey <tom@tromey.com>
6538
6539 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6540 * configure: Rebuild.
6541 * configure.ac: Change common to gdbsupport.
6542 * gdbsupport: Rename from common.
6543 * acinclude.m4: Change common to gdbsupport.
6544 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6545 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6546 gdbsupport.
6547 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6548 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6549 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6550 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6551 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6552 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6553 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6554 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6555 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6556 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6557 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6558 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6559 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6560 coff-pe-read.c, command.h, compile/compile-c-support.c,
6561 compile/compile-c.h, compile/compile-cplus-symbols.c,
6562 compile/compile-cplus-types.c, compile/compile-cplus.h,
6563 compile/compile-loc2c.c, compile/compile.c, completer.c,
6564 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6565 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6566 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6567 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6568 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6569 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6570 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6571 features/aarch64-core.c, features/aarch64-fpu.c,
6572 features/aarch64-pauth.c, features/aarch64-sve.c,
6573 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6574 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6575 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6576 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6577 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6578 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6579 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6580 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6581 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6582 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6583 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6584 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6585 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6586 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6587 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6588 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6589 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6590 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6591 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6592 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6593 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6594 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6595 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6596 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6597 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6598 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6599 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6600 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6601 minsyms.c, mips-linux-tdep.c, namespace.h,
6602 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6603 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6604 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6605 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6606 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6607 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6608 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6609 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6610 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6611 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6612 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6613 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6614 procfs.c, producer.c, progspace.h, psymtab.h,
6615 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6616 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6617 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6618 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6619 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6620 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6621 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6622 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6623 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6624 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6625 target-memory.c, target.c, target.h, target/waitstatus.c,
6626 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6627 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6628 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6629 unittests/array-view-selftests.c,
6630 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6631 unittests/common-utils-selftests.c,
6632 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6633 unittests/format_pieces-selftests.c,
6634 unittests/function-view-selftests.c,
6635 unittests/lookup_name_info-selftests.c,
6636 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6637 unittests/mkdir-recursive-selftests.c,
6638 unittests/observable-selftests.c,
6639 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6640 unittests/parse-connection-spec-selftests.c,
6641 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6642 unittests/scoped_fd-selftests.c,
6643 unittests/scoped_mmap-selftests.c,
6644 unittests/scoped_restore-selftests.c,
6645 unittests/string_view-selftests.c, unittests/style-selftests.c,
6646 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6647 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6648 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6649 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6650 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6651 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6652
5b0e2db4
AB
66532019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6656 bool value.
6657 (decode_digits_ordinary): Set explicit_line field in sal.
6658 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6659 symtab_and_line that was set on an explicit line number in
6660 assembler code. Do always update the recorded symtab and line if
6661 we do skip the prologue.
6662
0ba852ab
AB
66632019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * breakpoint.c (set_breakpoint_location_function): Remove
6666 explicit_loc parameter.
6667 (momentary_breakpoint_from_master): Update call to
6668 set_breakpoint_location_function.
6669 (add_location_to_breakpoint): Likewise.
6670
b3a7d171
AB
66712019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6674 required features based on default bfd type when no specific bfd
6675 is present.
6676
1f6f6e21
PW
66772019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6678
6679 * NEWS: Mention that GDB printf and eval commands can now print
6680 C-style and Ada-style convenience var strings without
6681 calling the inferior.
6682 * printcmd.c (printf_c_string): Locally print GDB internal var
6683 instead of transiting via the inferior.
6684 (printf_wide_c_string): Likewise.
6685
66862019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6687
5862c886 6688 PR breakpoints/25011
ea142fbf
AH
6689 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6690
0598af48
TT
66912019-07-04 Tom Tromey <tom@tromey.com>
6692
6693 PR tui/24724:
6694 * tui/tui-winsource.c (tui_clear_source_content): Update.
6695 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6696 (tui_update_breakpoint_info): Update.
6697 (tui_set_exec_info_content): Update.
6698 * tui/tui-source.c (tui_set_source_content_nil): Update.
6699 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6700 has_break.
6701 * tui/tui-data.h (enum tui_bp_flag): New.
6702 (tui_bp_flags): New enum flags type.
6703 (struct tui_source_element) <break_mode>: Change type. Rename
6704 from has_break.
6705 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6706 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6707 constants.
6708 * tui/tui-winsource.h: Fix comment.
6709
350fab54
AH
67102019-07-04 Alan Hayward <alan.hayward@arm.com>
6711
6712 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6713 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6714 (store_fpregs_to_thread)
6715 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6716 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6717 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6718 (IWMMXT_REGS_SIZE): Add define.
6719 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6720 (fetch_vfp_regs, store_vfp_regs)
6721 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6722 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6723
f0452268
AH
67242019-07-04 Alan Hayward <alan.hayward@arm.com>
6725
6726 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6727 defines.
6728 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6729 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6730 (ARM_INT_REGISTER_SIZE): ...to this.
6731 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6732 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6733 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6734 (arm_linux_collect_gregset, supply_nwfpe_register)
6735 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6736 defines.
6737 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6738 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6739 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6740 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6741 (arm_return_in_memory, arm_store_return_value)
6742 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6743 (arm_record_ld_st_multiple): Likewise.
6744 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6745 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6746
e935475c
AH
67472019-07-04 Alan Hayward <alan.hayward@arm.com>
6748
6749 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6750 AARCH64_DISPLACED_MODIFIED_INSNS.
6751 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6752 (aarch64_displaced_step_copy_insn): Likewise.
6753 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6754 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6755 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6756 ARM_DISPLACED_MODIFIED_INSNS.
6757 * arm-tdep.c (arm_gdbarch_init): Likewise.
6758 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6759 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6760 (struct arm_displaced_step_closure): Use
6761 ARM_DISPLACED_MODIFIED_INSNS.
6762
df0bb381
AH
67632019-07-04 Alan Hayward <alan.hayward@arm.com>
6764
6765 * features/Makefile: Remove unused xml files.
6766 * features/aarch64.xml: Remove.
6767 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6768 * features/i386/amd64-avx-avx512.xml: Remove.
6769 * features/i386/amd64-avx-linux.xml: Remove.
6770 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6771 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6772 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6773 * features/i386/amd64-avx-mpx.xml: Remove.
6774 * features/i386/amd64-avx.xml: Remove.
6775 * features/i386/amd64-linux.xml: Remove.
6776 * features/i386/amd64-mpx-linux.xml: Remove.
6777 * features/i386/amd64-mpx.xml: Remove.
6778 * features/i386/amd64.xml: Remove.
6779 * features/i386/i386-avx-avx512-linux.xml: Remove.
6780 * features/i386/i386-avx-avx512.xml: Remove.
6781 * features/i386/i386-avx-linux.xml: Remove.
6782 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6783 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6784 * features/i386/i386-avx-mpx-linux.xml: Remove.
6785 * features/i386/i386-avx-mpx.xml: Remove.
6786 * features/i386/i386-avx.xml: Remove.
6787 * features/i386/i386-linux.xml: Remove.
6788 * features/i386/i386-mmx-linux.xml: Remove.
6789 * features/i386/i386-mmx.xml: Remove.
6790 * features/i386/i386-mpx-linux.xml: Remove.
6791 * features/i386/i386-mpx.xml: Remove.
6792 * features/i386/i386.xml: Remove.
6793 * features/i386/x32-avx-avx512-linux.xml: Remove.
6794 * features/i386/x32-avx-linux.xml: Remove.
6795 * features/i386/x32-linux.xml: Remove.
6796
edd6266a
AH
67972019-07-04 Alan Hayward <alan.hayward@arm.com>
6798
6799 * regformats/aarch64.dat: Remove.
6800 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6801 * regformats/i386/amd64-avx-linux.dat: Remove.
6802 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6803 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6804 * regformats/i386/amd64-linux.dat: Remove.
6805 * regformats/i386/amd64-mpx-linux.dat: Remove.
6806 * regformats/i386/amd64.dat: Remove.
6807 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6808 * regformats/i386/i386-avx-linux.dat: Remove.
6809 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6810 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6811 * regformats/i386/i386-linux.dat: Remove.
6812 * regformats/i386/i386-mmx-linux.dat: Remove.
6813 * regformats/i386/i386-mpx-linux.dat: Remove.
6814 * regformats/i386/i386.dat: Remove.
6815 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6816 * regformats/i386/x32-avx-linux.dat: Remove.
6817 * regformats/i386/x32-linux.dat: Remove.
6818
2b40fda7
AH
68192019-07-04 Alan Hayward <alan.hayward@arm.com>
6820
6821 * aarch64-tdep.c: Remove xml self tests.
6822 * amd64-linux-tdep.c: Likewise.
6823 * amd64-tdep.c: Likewise.
6824 * i386-linux-tdep.c: Likewise.
6825 * i386-tdep.c: Likewise.
6826
5f4ba3e7
PA
68272019-07-03 Pedro Alves <palves@redhat.com>
6828
6829 PR cli/24732
6830 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6831 (pipe_cmd_option_defs): New.
6832 (make_pipe_cmd_options_def_group): New.
6833 (pipe_command): Use gdb::option::process_options.
6834 (pipe_command_completer): New function.
6835 (_initialize_cli_cmds): Install completer for "pipe" command.
6836
3d9be6f5
PA
68372019-07-03 Pedro Alves <palves@redhat.com>
6838
6839 * cli/cli-option.c (union option_value) <string>: New field.
6840 (struct option_def_and_value): Add ctor, move ctor, dtor and
6841 use DISABLE_COPY_AND_ASSIGN.
6842 (option_def_and_value::clear_value): New.
6843 (parse_option, save_option_value_in_ctx, get_val_type_str)
6844 (add_setshow_cmds_for_options): Handle var_string.
6845 * cli-option.h (union option_def::var_address) <string>: New
6846 field.
6847 (struct string_option_def): New.
6848 * maint-test-options.c (struct test_options_opts): Add default
6849 ctor and use DISABLE_COPY_AND_ASSIGN.
6850 <string_opt>: New field.
6851 (test_options_opts::~test_options_opts): New.
6852 (test_options_opts::dump): Also dump "-string".
6853 (test_options_option_defs): Install "string.
6854
41fc454c
PA
68552019-07-03 Pedro Alves <palves@redhat.com>
6856
6857 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6858 option_value with a null enumeration.
6859 (complete_options): Save the option values in the context.
6860 (save_option_value_in_ctx): New, factored out from ...
6861 (process_options): ... here.
6862 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6863 of the function.
6864 * maint-test-options.c (test_options_opts::dump): New, factored
6865 out from ...
6866 (maintenance_test_options_command_mode): ... here.
6867 (maintenance_test_options_command_completion_result): Delete.
6868 (maintenance_test_options_command_completion_text): Update
6869 comment.
6870 (maintenance_show_test_options_completion_result): Change
6871 prototype. Just print
6872 maintenance_test_options_command_completion_text.
6873 (save_completion_result): New.
6874 (maintenance_test_options_completer_mode): Pass options context to
6875 complete_options, and then save a dump.
6876 (_initialize_maint_test_options): Use add_cmd to install "maint
6877 show test-options-completion-result".
6878
fdbc9870
PA
68792019-07-03 Pedro Alves <palves@redhat.com>
6880
6881 * NEWS (New commands): Mention "with" and "maint with".
6882 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6883 (with_command, with_command_completer): New.
6884 (pipe_command): Adjust to new repeat_previous
6885 interface.
6886 (_initialize_cli_cmds): Install the "with" command and its "w"
6887 alias.
6888 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6889 declarations.
6890 * cli/cli-setshow.c (parse_cli_var_uinteger)
6891 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6892 argument strings for all var_types.
6893 (get_setshow_command_value_string): New, factored out from ...
6894 (do_show_command): ... this.
6895 * cli/cli-setshow.h: Include <string>.
6896 (get_setshow_command_value_string): Declare.
6897 * command.h (repeat_previous): Now returns const char *. Adjust
6898 comment.
6899 * maint.c: Include "cli/cli-cmds.h".
6900 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6901 (_initialize_maint_cmds): Register the "maintenance with" command.
6902 * top.c (repeat_previous): Move bits from pipe_command here:
6903 Return the saved command line, if any; error out if there's no
6904 command to relaunch.
6905
c6ac8931
PA
69062019-07-03 Pedro Alves <palves@redhat.com>
6907
6908 * NEWS (New commands): Mention "maint set/show test-settings"
6909 instead of "maint test-settings".
6910 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6911 (maintenance_test_settings_set_list): Rename to ...
6912 (maintenance_set_test_settings_list): ... this.
6913 (maintenance_test_settings_show_list): Rename to ...
6914 (maintenance_show_test_settings_list): ... this.
6915 (maintenance_test_settings_cmd): Delete.
6916 (maintenance_test_settings_set_cmd): ...
6917 (maintenance_set_test_settings_cmd): ... this.
6918 (maintenance_test_settings_show_cmd): ...
6919 (maintenance_show_test_settings_cmd): ... this.
6920 (maintenance_test_settings_show_value_cmd):
6921 (maintenance_show_test_settings_value_cmd): ... this.
6922 (_initialize_maint_test_settings): No longer install the "maint
6923 test-settings" prefix command. Rename "maint test-settings set"
6924 to "maint set test-settings", and "maint test-settings show" to
6925 "maint show test-settings". Adjust all subcommands.
6926
d1fcf2fd
PA
69272019-07-03 Pedro Alves <palves@redhat.com>
6928
6929 * maint-test-settings.c: Fix file's intro comment. Replace all
6930 references to "test-options" with references to "test-settings",
6931 in comments.
6932
970f9d09
PA
69332019-07-03 Pedro Alves <palves@redhat.com>
6934
6935 * maint-test-settings.c (maintenance_test_settings_xxx)
6936 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6937 New.
6938 (maintenance_test_settings_enums): Use them.
6939 (maintenance_test_settings_enum): Default to
6940 maintenance_test_settings_xxx.
6941 (_initialize_maint_test_settings): Initialize
6942 MAINTENANCE_TEST_SETTINGS_FILENAME.
6943
f3869b1a
SM
69442019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * breakpoint.h (remove_breakpoints_inf): Change return type to
6947 void, move function documentation here.
6948 * breakpoint.c (remove_breakpoints_inf): Change return type to
6949 void, move function documentation to header.
6950
54d66006
PA
69512019-07-02 Pedro Alves <palves@redhat.com>
6952
6953 * NEWS (Completion improvements): Mention "info threads".
6954 * thread.c (struct info_threads_opts, info_threads_option_defs)
6955 (make_info_threads_options_def_group): New.
6956 (info_threads_command): Use gdb::option::process_options.
6957 (info_threads_command_completer): New.
6958 (_initialize_thread): Use gdb::option::build_help to build the
6959 help text for "info threads".
6960
854f6088
SM
69612019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6962
6963 * defs.h (generic_load): Move from here...
6964 * symfile.h (generic_load): ... to here. Rename name parameter
6965 to args.
6966 * symfile.c (generic_load): Add comment.
6967
54ee4252
TT
69682019-07-01 Tom Tromey <tromey@adacore.com>
6969
6970 * dwarf2read.c
6971 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6972 declaration of without_params. Fix formatting.
6973
65392b3e
TT
69742019-07-01 Tom Tromey <tromey@adacore.com>
6975
6976 * ada-exp.y (find_primitive_type): Update.
6977 * ada-lang.h (ada_lookup_symbol): Update.
6978 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6979 parameter.
6980 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6981
7d7571f0
SDJ
69822019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6983
6984 PR breakpoints/24541
6985 * gdbarch.c: Regenerate.
6986 * gdbarch.h: Regenerate.
6987 * gdbarch.sh: Add 'stap_adjust_register'.
6988 * i386-tdep.c: Include '<unordered_set>'.
6989 (i386_stap_adjust_register): New function.
6990 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6991 * stap-probe.c (stap_parse_register_operand): Call
6992 'gdbarch_stap_adjust_register'.
6993
5af5392a
SDJ
69942019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6995
6996 PR python/24742
6997 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6998 * python/python.c (do_start_initialization): Use 'xmalloc'
6999 instead of 'PyMem_Malloc'.
7000
10d06d82
TT
70012019-06-28 Tom Tromey <tromey@adacore.com>
7002
7003 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7004 for Ada.
7005
1b7f24cd
TT
70062019-06-27 Tom Tromey <tromey@adacore.com>
7007
7008 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7009 objfile_key.
7010 (arm_find_mapping_symbol, arm_record_special_symbol)
7011 (_initialize_arm_tdep): Update.
7012 (arm_objfile_data_free): Remove.
7013
3d507ff2
TT
70142019-06-27 Tom Tromey <tromey@adacore.com>
7015
7016 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7017 to cp_print_static_field.
7018
762c164d
TT
70192019-06-26 Tom Tromey <tromey@adacore.com>
7020
7021 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7022 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7023 declare.
7024
aa2f9bcf
AH
70252019-06-26 Alan Hayward <alan.hayward@arm.com>
7026
7027 * features/aarch64-core.c (create_feature_aarch64_core):
7028 Regenerate.
7029 * features/aarch64-core.xml: Add cpsr flags.
7030
3426ae57
AH
70312019-06-26 Alan Hayward <alan.hayward@arm.com>
7032
7033 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7034 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7035
4838e44c
SM
70362019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7039 field.
7040 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7041 use.
7042 (arm_record_special_symbol): Don't insert new symbol in sorted
7043 position, push it at the end.
7044
54cc7474
SM
70452019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7048 (arm_mapping_symbol_s): Remove.
7049 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7050 (arm_mapping_symbol_vec): New typedef.
7051 (struct arm_per_objfile): Add constructor.
7052 <section_maps>: Change type to
7053 std::unique_ptr<arm_mapping_symbol_vec[]>.
7054 (arm_compare_mapping_symbols): Remove.
7055 (arm_find_mapping_symbol): Adjust to section_maps type change.
7056 (arm_objfile_data_free): Call delete on arm_per_objfile.
7057 (arm_record_special_symbol): Adjust to section_maps type change.
7058 Allocate arm_per_objfile with new.
7059
b65b566c
PW
70602019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7061
7062 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7063 with the command prefix.
7064
c2fc64f5
TT
70652019-06-25 Tom Tromey <tom@tromey.com>
7066
7067 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7068 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7069
fb54fa76
TT
70702019-06-25 Tom Tromey <tom@tromey.com>
7071
7072 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7073 type.
7074 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7075 protected.
7076
f7952c57
TT
70772019-06-25 Tom Tromey <tom@tromey.com>
7078
7079 * tui/tui-winsource.c
7080 (tui_source_window_base::set_is_exec_point_at): Add check against
7081 LOA_ADDRESS.
7082
17568d78
TT
70832019-06-25 Tom Tromey <tom@tromey.com>
7084
7085 * tui/tui-source.c (tui_set_source_content): Don't check before
7086 xfree.
7087 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7088
53e7cdba
TT
70892019-06-25 Tom Tromey <tom@tromey.com>
7090
7091 * tui/tui-winsource.h (tui_update_source_window_as_is)
7092 (tui_alloc_source_buffer, tui_line_is_displayed)
7093 (tui_addr_is_displayed): Change type of win_info.
7094 * tui/tui-winsource.c (tui_update_source_window_as_is)
7095 (tui_clear_source_content, tui_show_source_line)
7096 (tui_show_source_content, tui_source_window_base::refill)
7097 (tui_source_window_base::set_is_exec_point_at)
7098 (tui_source_window_base::set_is_exec_point_at)
7099 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7100 (tui_alloc_source_buffer, tui_line_is_displayed)
7101 (tui_addr_is_displayed): Change type of win_info. Update.
7102 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7103 (tui_source_window_base::do_make_visible_with_new_height):
7104 Update.
7105 * tui/tui-source.c (tui_set_source_content)
7106 (tui_set_source_content_nil)
7107 (tui_source_window::do_scroll_vertical): Update.
7108 * tui/tui-layout.c (show_layout): Update.
7109 * tui/tui-disasm.c (tui_set_disassem_content)
7110 (tui_disasm_window::do_scroll_vertical): Update.
7111 * tui/tui-data.h (tui_win_content): Remove.
7112 (struct tui_gen_win_info) <content, content_size>: Remove.
7113 (struct tui_source_element): Add initializers and destructor.
7114 (union tui_which_element, struct tui_win_element): Remove.
7115 (struct tui_source_window_base) <content>: New field.
7116 (struct tui_data_window): Remove destructor.
7117 (tui_alloc_content, tui_free_win_content)
7118 (tui_free_all_source_wins_content): Don't declare.
7119 * tui/tui-data.c (tui_initialize_static_data): Update.
7120 (init_content_element, tui_alloc_content): Remove.
7121 (~tui_gen_win_info): Update.
7122 (~tui_data_window, tui_free_all_source_wins_content)
7123 (tui_free_win_content, free_content, free_content_elements):
7124 Remove.
7125
7908abbf
TT
71262019-06-25 Tom Tromey <tom@tromey.com>
7127
7128 * tui/tui-winsource.h (tui_clear_source_content)
7129 (tui_erase_source_content, tui_show_source_content): Change type
7130 of win_info.
7131 * tui/tui-winsource.c (tui_clear_source_content)
7132 (tui_erase_source_content, tui_show_source_content): Change type
7133 of win_info.
7134 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7135 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7136 win_info.
7137 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7138 win_info.
7139 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7140
02c28df0
TT
71412019-06-25 Tom Tromey <tom@tromey.com>
7142
7143 * tui/tui-winsource.c (tui_clear_source_content)
7144 (tui_source_window_base::set_is_exec_point_at): Update.
7145 * tui/tui-source.c (tui_set_source_content_nil): Update.
7146 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7147 a bool.
7148 * tui/tui-data.c (init_content_element): Update.
7149
6658b1bf
TT
71502019-06-25 Tom Tromey <tom@tromey.com>
7151
7152 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7153 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7154 * tui/tui-layout.c (init_and_make_win): Update.
7155 * tui/tui.h (enum tui_win_type): Update.
7156 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7157 tui_win_is_auxillary.
7158 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7159 tui_win_is_auxillary.
7160
21e1c91e
TT
71612019-06-25 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7164 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7165 (tui_delete_data_content_windows, tui_display_all_data)
7166 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7167 Update.
7168 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7169 * tui/tui-regs.c (tui_last_regs_line_no)
7170 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7171 (tui_show_registers): Update.
7172 (tui_show_register_group): Return void. Update.
7173 (tui_display_registers_from, tui_display_reg_element_at_line)
7174 (tui_display_registers_from_line, tui_check_register_values):
7175 Update.
7176 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7177 member.
7178 (struct tui_data_window) <regs_content>: Now a std::vector.
7179 <regs_content_count>: Remove.
7180 (tui_add_content_elements, tui_free_data_content): Don't declare.
7181 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7182 (init_content_element): Remove DATA_WIN case. Add assert.
7183 (tui_add_content_elements): Remove.
7184 (tui_data_window): Update.
7185 (tui_free_data_content): Remove.
7186 (free_content_elements): Remove DATA_WIN case.
7187
115ac53b
TT
71882019-06-25 Tom Tromey <tom@tromey.com>
7189
7190 * tui/tui-data.c (tui_data_item_window): Update.
7191 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7192 * tui/tui-windata.c (tui_display_all_data)
7193 (tui_display_data_from_line): Update.
7194 (tui_check_data_values): Remove.
7195 * tui/tui-regs.c (tui_show_register_group)
7196 (tui_display_reg_element_at_line): Update.
7197 * tui/tui-hooks.c (tui_register_changed)
7198 (tui_refresh_frame_and_register_information): Call
7199 tui_check_register_values.
7200 * tui/tui-data.h (struct tui_data_window) <data_content,
7201 data_content_count, data_type>: Remove.
7202 (enum tui_data_type): Remove.
7203
7204 * tui/tui-data.c (tui_data_window::clear_detail)
7205 (~tui_data_window): Update.
7206
eaf9738b
TT
72072019-06-25 Tom Tromey <tom@tromey.com>
7208
7209 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7210 declare.
7211 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7212 Rename from tui_first_data_item_displayed. Update.
7213 (tui_data_window::refresh_all)
7214 (tui_data_window::do_scroll_vertical): Update.
7215 * tui/tui-data.h (struct tui_data_window)
7216 <first_data_item_displayed>: Declare new method.
7217
31ca4723
TT
72182019-06-25 Tom Tromey <tom@tromey.com>
7219
7220 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7221 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7222 contents...
7223 (tui_initialize_static_data): ...here.
7224
41bcff7f
TT
72252019-06-25 Tom Tromey <tom@tromey.com>
7226
7227 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7228 (tui_display_registers_from, tui_check_register_values): Update.
7229 (tui_display_register): Remove win_info parameter; update.
7230 (tui_get_register): Change type of parameters.
7231 * tui/tui-data.h (struct tui_data_element): Remove.
7232 (union tui_which_element) <data>: Remove.
7233 <data_window>: Change type.
7234 (struct tui_data_item_window): New.
7235 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7236 case. Add assert.
7237 (~tui_data_item_window): New destructor.
7238 (free_content_elements): Remove DATA_ITEM_WIN case.
7239
d2802c33
TT
72402019-06-25 Tom Tromey <tom@tromey.com>
7241
7242 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7243 Remove.
7244
dd835f8b
TT
72452019-06-25 Tom Tromey <tom@tromey.com>
7246
7247 * tui/tui-data.h (struct tui_command_element): Remove.
7248 (union tui_which_element) <command>: Remove.
7249 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7250 assert.
7251 (free_content_elements): Remove CMD_WIN case.
7252
bd7db367
TT
72532019-06-25 Tom Tromey <tom@tromey.com>
7254
7255 * tui/tui-layout.c (tui_set_layout): Update.
7256 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7257 * tui/tui-data.c (layout_def): Update.
7258
3add462f
TT
72592019-06-25 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7262 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7263 (tui_source_window_base::set_new_height): Update.
7264 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7265 Update.
7266 (tui_set_locator_fullname, tui_set_locator_info)
7267 (tui_show_frame_info): Update.
7268 * tui/tui-source.c (tui_set_source_content)
7269 (tui_source_is_displayed): Update.
7270 * tui/tui-layout.c (show_source_disasm_command, show_data)
7271 (show_source_or_disasm_and_command): Update.
7272 * tui/tui-disasm.c (tui_set_disassem_content)
7273 (tui_get_begin_asm_address): Update.
7274 * tui/tui-data.h (struct tui_locator_element): Remove.
7275 (union tui_which_element) <locator>: Remove.
7276 (struct tui_locator_window): New.
7277 (tui_locator_win_info_ptr): Change return type.
7278 * tui/tui-data.c (_locator): Change type.
7279 (tui_locator_win_info_ptr): Change return type.
7280 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7281 (tui_alloc_content): Add assert.
7282
489e9d8b
TT
72832019-06-25 Tom Tromey <tom@tromey.com>
7284
7285 * tui/tui-winsource.c
7286 (tui_exec_info_window::maybe_allocate_content): New method.
7287 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7288 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7289 (make_source_or_disasm_window): Add cast.
7290 * tui/tui-data.h (union tui_which_element) <simple_string>:
7291 Remove.
7292 (struct tui_source_info): New.
7293 (struct tui_source_window_base) <execution_info>: Change type.
7294 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7295 case, and add assert.
7296 (tui_alloc_content): Add assert.
7297
c3fabb7d
TT
72982019-06-25 Tom Tromey <tom@tromey.com>
7299
7300 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7301 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7302 * tui/tui-data.c (tui_alloc_win_info): Remove.
7303
bbc228ee
TT
73042019-06-25 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7307 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7308 can_highlight.
7309
5fcee43a
TT
73102019-06-25 Tom Tromey <tom@tromey.com>
7311
7312 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7313 make_visible_with_new_height method.
7314 (tui_win_info::make_visible_with_new_height): New method.
7315 (tui_source_window_base::do_make_visible_with_new_height)
7316 (tui_data_window::do_make_visible_with_new_height)
7317 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7318 (make_visible_with_new_height): Remove.
7319 (tui_resize_all, tui_adjust_win_heights): Use
7320 make_visible_with_new_height method.
7321 * tui/tui-data.h (struct tui_win_info)
7322 <do_make_visible_with_new_height, make_visible_with_new_height>:
7323 New methods.
7324 (struct tui_source_window_base, struct tui_data_window)
7325 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7326 methods.
7327
d83f1fe6
TT
73282019-06-25 Tom Tromey <tom@tromey.com>
7329
7330 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7331 method.
7332 (update_tab_width): Call update_tab_width method.
7333 * tui/tui-data.h (struct tui_win_info)
7334 (struct tui_source_window_base) <update_tab_width>: New methods.
7335
17374de4
TT
73362019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7339 parameter.
7340 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7341 parameter.
7342 (tui_gen_win_info::make_visible): Update.
7343 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7344 parameter.
7345 * tui/tui-data.h (enum tui_box): New enum.
7346 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7347
f936bca2
TT
73482019-06-25 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7351 init_and_make_win for EXEC_INFO_WIN.
7352 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7353 longer inline.
7354 (struct tui_win_info) <~tui_win_info>: Inline.
7355 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7356 Don't declare.
7357 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7358 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7359 Remove.
7360 (tui_initialize_static_data): Update.
7361 (~tui_gen_win_info): Handle more cleanup here.
7362 (~tui_source_window_base): Delete "execution_info".
7363 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7364
d6ba6a11
TT
73652019-06-25 Tom Tromey <tom@tromey.com>
7366
7367 * tui/tui-layout.c (make_command_window): Don't set
7368 can_highlight.
7369 (show_source_disasm_command): Call the reset method.
7370 (show_data): Don't set can_highlight. Call the reset method.
7371 (tui_gen_win_info::reset): Rename from init_gen_win_info
7372 (init_and_make_win): Simplify. Return tui_gen_win_info.
7373 (show_source_or_disasm_and_command): Call the reset method.
7374 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7375 (struct tui_cmd_window): Set can_highlight.
7376
48a3bd16
TT
73772019-06-25 Tom Tromey <tom@tromey.com>
7378
7379 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7380 from make_visible.
7381 (tui_make_visible, tui_make_invisible): Rewrite.
7382 (tui_win_info::make_visible): Remove.
7383 (tui_source_window_base::make_visible): Update.
7384 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7385 method. Moved from...
7386 (struct tui_win_info) <make_visible>: ...here.
7387
c3bd716f
TT
73882019-06-25 Tom Tromey <tom@tromey.com>
7389
7390 * tui/tui-winsource.c
7391 (tui_source_window_base::do_scroll_horizontal): Remove direction
7392 parameter.
7393 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7394 direction parameter.
7395 * tui/tui-win.c (tui_win_info::forward_scroll)
7396 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7397 (tui_win_info::right_scroll): Update.
7398 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7399 direction parameter.
7400 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7401 direction parameter.
7402 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7403 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7404 Remove direction parameter.
7405 (struct tui_source_window_base, struct tui_source_window)
7406 (struct tui_disasm_window, struct tui_data_window)
7407 (struct tui_cmd_window): Update.
7408
21c32dca
TT
74092019-06-25 Tom Tromey <tom@tromey.com>
7410
7411 * tui/tui-winsource.h (tui_set_exec_info_content)
7412 (tui_show_exec_info_content, tui_erase_exec_info_content)
7413 (tui_clear_exec_info_content, tui_update_exec_info): Change
7414 argument to tui_source_window_base.
7415 * tui/tui-winsource.c (tui_set_exec_info_content)
7416 (tui_show_exec_info_content, tui_erase_exec_info_content)
7417 (tui_clear_exec_info_content, tui_update_exec_info): Change
7418 argument to tui_source_window_base.
7419
73fbdc65
TT
74202019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7423 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7424
33325343
TT
74252019-06-25 Tom Tromey <tom@tromey.com>
7426
7427 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7428 check.
7429
29d2c474
TT
74302019-06-25 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7433 type to void.
7434 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7435 type to void.
7436 * tui/tui-source.c (tui_set_source_content): Update.
7437 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7438
152f3f4b
TT
74392019-06-25 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-win.c (window_name_completer, tui_set_focus)
7442 (tui_all_windows_info): Use name method.
7443 * tui/tui-data.h (struct tui_gen_win_info)
7444 (struct tui_source_window, struct tui_disasm_window)
7445 (struct tui_data_window, struct tui_cmd_window) <name>: New
7446 method.
7447 (tui_win_name): Don't declare.
7448 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7449 (tui_win_name): Remove.
7450
be4da588
TT
74512019-06-25 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-winsource.h (tui_update_source_window)
7454 (tui_update_source_window_as_is): Change parameter type.
7455 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7456 to be a tui_source_window_base.
7457 (tui_update_source_window_as_is): Likewise.
7458 * tui/tui-win.c (make_visible_with_new_height): Update.
7459
5b81daba
TT
74602019-06-25 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-winsource.c (tui_erase_source_content)
7463 (tui_show_source_content, tui_show_exec_info_content)
7464 (tui_erase_exec_info_content): Use refresh_window method.
7465 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7466 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7467 from tui_refresh_win.
7468 (tui_data_window::refresh_window): New method.
7469 (tui_win_info::refresh, tui_source_window_base::refresh)
7470 (tui_refresh_all): Use refresh_window method.
7471 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7472 method.
7473 * tui/tui-regs.c (tui_display_register): Call refresh_window
7474 method.
7475 * tui/tui-layout.c (show_source_disasm_command)
7476 (show_source_or_disasm_and_command): Call refresh_window method.
7477 * tui/tui-data.h (struct tui_gen_win_info)
7478 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7479 New method.
7480
cb2ce893
TT
74812019-06-25 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui.c (tui_rl_other_window, tui_enable)
7484 (tui_is_window_visible, tui_get_command_dimension): Update.
7485 * tui/tui-winsource.c (tui_update_source_window_as_is)
7486 (tui_clear_source_content, tui_erase_source_content)
7487 (tui_show_source_line, tui_source_window_base::refill)
7488 (tui_source_window_base::do_scroll_horizontal)
7489 (tui_source_window_base::set_is_exec_point_at)
7490 (tui_update_breakpoint_info, tui_set_exec_info_content)
7491 (tui_alloc_source_buffer, tui_line_is_displayed)
7492 (tui_addr_is_displayed): Update.
7493 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7494 (tui_check_and_display_highlight_if_needed)
7495 (tui_win_info::make_visible, tui_win_info::refresh)
7496 (tui_refresh_all): Update.
7497 * tui/tui-windata.c (tui_first_data_item_displayed)
7498 (tui_delete_data_content_windows, tui_erase_data_content)
7499 (tui_display_all_data, tui_data_window::refresh_all)
7500 (tui_check_data_values): Update.
7501 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7502 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7503 (tui_win_info::backward_scroll, tui_refresh_all_win)
7504 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7505 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7506 (tui_source_window_base::set_new_height)
7507 (tui_data_window::set_new_height)
7508 (make_invisible_and_set_new_height)
7509 (make_visible_with_new_height, new_height_ok)
7510 (parse_scrolling_args): Update.
7511 * tui/tui-stack.c (tui_show_frame_info): Update.
7512 * tui/tui-source.c (tui_set_source_content)
7513 (tui_set_source_content_nil, tui_source_is_displayed)
7514 (tui_source_window::do_scroll_vertical): Update.
7515 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7516 (tui_display_registers_from, tui_display_reg_element_at_line)
7517 (tui_check_register_values, tui_reg_command): Update.
7518 * tui/tui-layout.c (tui_default_win_height)
7519 (show_source_disasm_command, show_data, init_and_make_win)
7520 (show_source_or_disasm_and_command): Update.
7521 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7522 (tui_redisplay_readline, tui_mld_flush)
7523 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7524 (tui_getc): Update.
7525 * tui/tui-disasm.c (tui_set_disassem_content)
7526 (tui_disasm_window::do_scroll_vertical): Update.
7527 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7528 Now virtual.
7529 (struct tui_win_info): Derive from tui_gen_win_info.
7530 <~tui_win_info>: Mark as override.
7531 <generic>: Remove member.
7532 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7533 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7534 (~tui_data_window, ~tui_win_info)
7535 (tui_free_all_source_wins_content): Update.
7536 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7537
ab313b35
TT
75382019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-layout.c (init_and_make_win): Use new.
7541 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7542 destructor, initializers.
7543 (tui_alloc_generic_win_info): Don't declare.
7544 * tui/tui-data.c (_locator): Add argument to constructor.
7545 (source_win, disasm_win): New globals.
7546 (exec_info): Remove.
7547 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7548 Update.
7549 (tui_alloc_generic_win_info): Remove.
7550 (init_content_element): Use new.
7551 (tui_win_info::tui_win_info): Update.
7552 (free_content_elements) <case DATA_WIN>: Use delete.
7553
dc2c33e4
TT
75542019-06-25 Tom Tromey <tom@tromey.com>
7555
7556 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7557 * tui/tui-windata.c (tui_first_data_item_displayed)
7558 (tui_delete_data_content_windows): Update.
7559 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7560 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7561 (tui_display_registers_from, tui_check_register_values): Update.
7562 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7563 pointer.
7564 * tui/tui-data.c (init_content_element): Update. Allocate the new
7565 window.
7566 (tui_free_data_content): Update.
7567 (free_content_elements) <case DATA_WIN>: Free the window.
7568
214a5cbe
TT
75692019-06-25 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7572 Update.
7573 * tui/tui-layout.c (make_command_window)
7574 (show_source_disasm_command, show_data, init_and_make_win)
7575 (show_source_or_disasm_and_command): Update.
7576 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7577 method.
7578 <can_highight, is_highlighted>: Now bool.
7579 (tui_set_win_highlight): Don't declare.
7580 * tui/tui-data.c (tui_set_win_highlight): Remove.
7581
8e2daf15
TT
75822019-06-25 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-wingeneral.c (make_visible): Remove check of window
7585 type.
7586
8903bd8a
TT
75872019-06-25 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-win.c (tui_win_info::max_height)
7590 (tui_cmd_window::max_height): New methods.
7591 (new_height_ok): Call max_height.
7592 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7593 <max_height>: New method.
7594
3f02ce1e
TT
75952019-06-25 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-win.c (tui_source_window_base::set_new_height)
7598 (tui_data_window::set_new_height): New methods.
7599 (make_invisible_and_set_new_height): Call set_new_height method.
7600 * tui/tui-data.h (struct tui_win_info)
7601 (struct tui_source_window_base, struct tui_data_window)
7602 <set_new_height>: New method.
7603
1825f487
TT
76042019-06-25 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7607 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7608 tui_refresh_data_win.
7609 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7610 method.
7611 (tui_refresh_all_win): Call the refresh_all method.
7612 (tui_set_focus): Likewise.
7613 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7614 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7615 Likewise.
7616
ad54d15b
TT
76172019-06-25 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-winsource.h (tui_refill_source_window)
7620 (tui_set_is_exec_point_at): Don't declare.
7621 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7622 (tui_source_window_base::refill): Rename from
7623 tui_refill_source_window.
7624 (tui_source_window_base::do_scroll_horizontal): Update.
7625 (tui_source_window_base::set_is_exec_point_at): Rename from
7626 tui_set_is_exec_point_at.
7627 (tui_update_all_breakpoint_info): Update.
7628 * tui/tui-stack.c (tui_show_frame_info): Update.
7629 * tui/tui-layout.c (show_data): Add cast.
7630 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7631 * tui/tui-data.h (struct tui_source_window_base) <refill,
7632 set_is_exec_point_at>: New methods.
7633 (tui_source_windows, tui_add_to_source_windows): Update types.
7634 (tui_add_to_source_windows): Remove redundant declaration.
7635 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7636 (tui_source_windows): Change return type.
7637 (tui_clear_source_windows_detail): Update.
7638 (tui_add_to_source_windows): Change type of parameter.
7639 (tui_free_all_source_wins_content): Update.
7640
2042b506
TT
76412019-06-25 Tom Tromey <tom@tromey.com>
7642
7643 * tui/tui-wingeneral.c (tui_win_info::refresh)
7644 (tui_source_window_base::refresh): New methods.
7645 (tui_refresh_all): Call the refresh method.
7646 * tui/tui-data.h (struct tui_win_info)
7647 (struct tui_source_window_base) <refresh>: New method.
7648
56122977
TT
76492019-06-25 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui.h (tui_is_window_visible): Return bool.
7652 * tui/tui.c (tui_is_window_visible): Return bool.
7653 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7654 (tui_make_visible, tui_make_invisible)
7655 (tui_win_info::make_visible)
7656 (tui_source_window_base::make_visible, make_all_visible)
7657 (tui_make_all_visible, tui_make_all_invisible): Update.
7658 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7659 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7660 bool.
7661 (struct tui_win_info, struct tui_source_window_base)
7662 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7663 * tui/tui-data.c (tui_init_generic_part): Update.
7664
cda37efb
TT
76652019-06-25 Tom Tromey <tom@tromey.com>
7666
7667 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7668 (tui_source_window_base::make_visible): New methods.
7669 (make_all_visible): Make method call.
7670 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7671 (struct tui_source_window_base, struct tui_cmd_window): Override
7672 make_visible.
7673 (tui_win_is_source_type): Don't declare.
7674 * tui/tui-data.c (tui_win_is_source_type): Remove.
7675
6a0ee02c
TT
76762019-06-25 Tom Tromey <tom@tromey.com>
7677
7678 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7679 NULL check.
7680
63901aec
TT
76812019-06-25 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7684 Inline constructor. Add initializers for members.
7685 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7686 constructors; now inline in class.
7687
ceb13a13
TT
76882019-06-25 Tom Tromey <tom@tromey.com>
7689
7690 * tui/tui-regs.c (tui_show_registers): Update.
7691 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7692 bool.
7693 * tui/tui-data.c (tui_data_window::clear_detail)
7694 (tui_data_window): Update.
7695
238eb706
TT
76962019-06-25 Tom Tromey <tom@tromey.com>
7697
7698 * tui/tui-windata.c (tui_display_all_data)
7699 (tui_display_data_from_line, tui_display_data_from)
7700 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7701 Update.
7702 * tui/tui-regs.c (tui_last_regs_line_no)
7703 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7704 (tui_show_registers, tui_show_register_group)
7705 (tui_display_registers_from, tui_display_reg_element_at_line)
7706 (tui_display_registers_from_line, tui_check_register_values)
7707 (tui_reg_next, tui_reg_prev): Update.
7708 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7709 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7710 tui_data_window.
7711 (struct tui_win_info) <detail>: Remove. Add new fields from
7712 tui_data_info.
7713 (TUI_DATA_WIN): Add cast.
7714 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7715 (~tui_data_window): Simplify.
7716
81491aa0
TT
77172019-06-25 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-layout.c (show_source_disasm_command)
7720 (show_source_or_disasm_and_command): Update.
7721 * tui/tui-io.c (update_cmdwin_start_line)
7722 (tui_redisplay_readline): Update.
7723 * tui/tui-data.h (struct tui_command_info): Remove.
7724 (struct tui_win_info) <detail>: Remove command_info member.
7725 (struct tui_data_window) <start_line>: New member, from
7726 tui_command_info.
7727 (TUI_CMD_WIN): Add casts.
7728
e6e41501
TT
77292019-06-25 Tom Tromey <tom@tromey.com>
7730
7731 * tui/tui-winsource.c (tui_update_source_window)
7732 (tui_refill_source_window)
7733 (tui_source_window_base::do_scroll_horizontal)
7734 (tui_update_breakpoint_info, tui_set_exec_info_content)
7735 (tui_show_exec_info_content, tui_erase_exec_info_content)
7736 (tui_clear_exec_info_content): Update.
7737 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7738 Update.
7739 * tui/tui-win.c (make_invisible_and_set_new_height)
7740 (make_visible_with_new_height): Update.
7741 * tui/tui-source.c (tui_set_source_content)
7742 (tui_show_symtab_source): Update.
7743 * tui/tui-layout.c (extract_display_start_addr)
7744 (show_source_disasm_command, show_data)
7745 (make_source_or_disasm_window)
7746 (show_source_or_disasm_and_command): Update.
7747 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7748 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7749 "gdbarch".
7750 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7751 to tui_source_window_base.
7752 (struct tui_win_info) <detail>: Remove source_info member.
7753 (struct tui_source_window_base) <has_locator>: Inline.
7754 Move contents from tui_source_info; rename has_locator member to
7755 m_has_locator.
7756 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7757 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7758 header file.
7759 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7760 Simplify.
7761 (tui_free_all_source_wins_content): Cast to
7762 tui_source_window_base.
7763
44f0e208
TT
77642019-06-25 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-win.c (make_invisible_and_set_new_height)
7767 (make_visible_with_new_height): Call has_locator method.
7768 * tui/tui-layout.c (show_source_disasm_command, show_data)
7769 (show_source_or_disasm_and_command): Update for bool change.
7770 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7771 (tui_win_info) <has_locator>: New method.
7772 (struct tui_source_window_base) <has_locator>: New method.
7773 (tui_win_has_locator): Don't declare.
7774 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7775 from tui_win_has_locator.
7776 (tui_source_window_base): Use false, not FALSE.
7777
7778b912
TT
77782019-06-25 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7781 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7782 clear_detail method directly.
7783 (tui_clear_win_detail): Remove.
7784
f83d391c
TT
77852019-06-25 Tom Tromey <tom@tromey.com>
7786
7787 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7788 "this", not TUI_DISASM_WIN.
7789
13446e05
TT
77902019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7793 declare.
7794 * tui/tui-winsource.c
7795 (tui_source_window_base::do_scroll_horizontal): Rename from
7796 tui_horizontal_source_scroll.
7797 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7798 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7799 from tui_vertical_data_scroll.
7800 * tui/tui-win.h (tui_scroll): Don't declare.
7801 * tui/tui-win.c (tui_win_info::forward_scroll)
7802 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7803 (tui_win_info::right_scroll): Rename and update.
7804 (tui_scroll_forward_command, tui_scroll_backward_command)
7805 (tui_scroll_left_command, tui_scroll_right_command): Update.
7806 (tui_scroll): Remove.
7807 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7808 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7809 from tui_vertical_source_scroll.
7810 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7811 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7812 from tui_vertical_disassem_scroll.
7813 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7814 do_scroll_horizontal>: New methods.
7815 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7816 Likewise.
7817 (struct tui_source_window_base): Add do_scroll_horizontal.
7818 (struct tui_source_window, struct tui_disasm_window): Add
7819 do_scroll_vertical.
7820 (struct tui_data_window, struct tui_cmd_window): Add
7821 do_scroll_horizontal and do_scroll_vertical.
7822 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7823
5cf82909
TT
78242019-06-25 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-data.h (struct tui_source_window_base): New struct.
7827 (struct tui_source_window): Derive from tui_source_window_base.
7828 (struct tui_disasm_window): New struct.
7829 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7830 from tui_source_window::clear_detail.
7831 (tui_source_window_base): Rename from tui_source_window.
7832 (~tui_source_window_base): Rename from ~tui_source_window.
7833 (tui_alloc_win_info): Create a tui_disasm_window.
7834
ee1d42d6
TT
78352019-06-25 Tom Tromey <tom@tromey.com>
7836
7837 * tui/tui-data.h (struct tui_source_window)
7838 (struct tui_data_window): Declare destructors.
7839 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7840 destructors.
7841 (tui_win_info): Simplify.
7842
b4eb2452
TT
78432019-06-25 Tom Tromey <tom@tromey.com>
7844
7845 * tui/tui-winsource.c (tui_display_main)
7846 (tui_update_source_windows_with_addr)
7847 (tui_update_all_breakpoint_info): Update.
7848 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7849 (new_height_ok, parse_scrolling_args): Update.
7850 * tui/tui-stack.c (tui_show_frame_info): Update.
7851 * tui/tui-data.h (struct tui_list): Remove.
7852 (tui_source_windows): Return a reference to a std::vector.
7853 * tui/tui-data.c (source_windows): Now a std::vector.
7854 (tui_source_windows): Change return type.
7855 (tui_clear_source_windows): Rewrite.
7856 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7857 (tui_free_all_source_wins_content): Rewrite.
7858
8761a91b
TT
78592019-06-25 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7862 (struct tui_data_window, struct tui_cmd_window): Declare
7863 clear_detail method.
7864 * tui/tui-data.c (tui_source_window::clear_detail)
7865 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7866 methods.
7867 (tui_clear_win_detail): Simplify.
7868
0ed69eda
TT
78692019-06-25 Tom Tromey <tom@tromey.com>
7870
7871 * tui/tui-layout.c (make_source_window, make_disasm_window)
7872 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7873 Return the new window.
7874 (show_source_disasm_command, show_data)
7875 (show_source_or_disasm_and_command): Update.
7876
82432e10
TT
78772019-06-25 Tom Tromey <tom@tromey.com>
7878
7879 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7880 parameter. Return the new window.
7881 (show_source_disasm_command): Update and remove NULL check.
7882 (show_source_or_disasm_and_command): Update.
7883
ec328aa5
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7887
33b906ab
TT
78882019-06-25 Tom Tromey <tom@tromey.com>
7889
7890 * tui/tui-data.h (struct tui_win_info): Make constructor
7891 protected. Make destructor virtual. Add initializers.
7892 (tui_source_window, tui_data_window, tui_cmd_window): New
7893 classes.
7894 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7895 constructor. Add "type" parameter.
7896 (tui_source_window, tui_data_window, tui_cmd_window): New
7897 constructors.
7898 (tui_alloc_win_info): Instantiate the appropriate subclass.
7899
e7e11af4
TT
79002019-06-25 Tom Tromey <tom@tromey.com>
7901
7902 * tui/tui-win.c (tui_resize_all): Use delete.
7903 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7904 destructor.
7905 (tui_free_window): Don't declare.
7906 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7907 Update.
7908
6792b55e
TT
79092019-06-25 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-data.h (struct tui_win_info): Add constructor.
7912 * tui/tui-data.c (tui_alloc_win_info): Use new.
7913 (tui_free_window): Use delete.
7914
f95675e1
TT
79152019-06-22 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7918 declare.
7919 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7920
5bff081c
TT
79212019-06-22 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7924 declare.
7925 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7926
47e3f474
TV
79272019-06-22 Tom de Vries <tdevries@suse.de>
7928
7929 * dwarf2read.c (create_addrmap_from_aranges)
7930 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7931 instead of '%zu'.
7932
fd5866f6
SM
79332019-06-21 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2read.h (dwarf2_section_info_def): Remove.
7936 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7937 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7938 std::vector<dwarf2_section_info>.
7939 (struct dwo_file) <~dwo_file>: Remove.
7940 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7941 types field.
7942 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7943 (dwarf2_read_debug_names): Likewise.
7944 (create_debug_types_hash_table): Change parameter type to
7945 array_view, adjust code accordingly.
7946 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7947 (partial_die_info::fixup): Likewise.
7948 (determine_prefix): Likewise.
7949 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7950
fb1eb2f9
SM
79512019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7954 gdb_bfd_ref_ptr.
7955 <~dwo_file>: Remove call to gdb_bfd_unref.
7956 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7957 gdb_bfd_ref_ptr::get.
7958
51ac9db5
SM
79592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7960
7961 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7962 type to htab_up.
7963 * dwarf2read.c (struct dwo_file): Initialize fields.
7964 <~dwo_file>: New.
7965 (free_dwo_file): Remove, move content to ~dwo_file.
7966 (struct dwo_file_deleter): Remove.
7967 (dwo_file_up>: Remove custom deleter.
7968 (free_dwo_files): Remove.
7969 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7970 dwo_files.
7971 (process_skeletonless_type_units): Call unique_ptr::get.
7972 (allocate_dwo_file_hash_table): Add deleter to created hash
7973 table. Change return type to htab_up.
7974 (lookup_dwo_file_slot): Don't memset dwo_file, call
7975 unique_ptr::get.
7976 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7977 (create_dwo_unit_in_dwp_v2): Likewise.
7978 (open_and_init_dwo_file): Likewise.
7979 (free_dwo_file_from_slot): Remove.
7980
dc4ccb6f
SM
79812019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7982
7983 * dwarf2read.h (struct dwarf2_section_info) <readin,
7984 is_virtual>: Change type to bool.
7985 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7986 true instead of 1.
7987
e6a1c5cb
TT
79882019-06-19 Tom Tromey <tom@tromey.com>
7989
7990 * tui/tui-data.h (tui_init_content_element): Don't declare.
7991
6f6ffbeb
TT
79922019-06-19 Tom Tromey <tom@tromey.com>
7993
7994 * tui/tui-data.h (tui_init_win_info): Don't declare.
7995
f23f598e
TV
79962019-06-19 Tom de Vries <tdevries@suse.de>
7997
7998 * dwarf2read.h (abstract_to_concrete): Change type to
7999 std::unordered_map<sect_offset, std::vector<sect_offset>,
8000 gdb::hash_enum<sect_offset>>.
8001
680e1bee
TT
80022019-06-19 Tom Tromey <tromey@adacore.com>
8003
8004 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8005 EVAL_AVOID_SIDE_EFFECTS specially.
8006
dcf37923
TT
80072019-06-19 Tom Tromey <tromey@adacore.com>
8008
8009 * source-cache.c (highlighter): New global.
8010 (source_cache::get_source_lines): Create a highlighter on demand.
8011
494986d5
AB
80122019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8013
8014 * defs.h (deprecated_interactive_hook): Delete declaration.
8015 * interps.c (clear_interpreter_hooks): Remove use of
8016 deprecated_interactive_hook.
8017 * top.c (deprecated_interactive_hook): Delete definition.
8018 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8019
3360b6e7
TV
80202019-06-18 Tom de Vries <tdevries@suse.de>
8021
8022 PR gdb/24515
8023 * dwarf2read.h (abstract_to_concrete): Change type from
8024 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8025 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8026 * dwarf2read.c (read_variable): Update.
8027 (dwarf2_fetch_die_loc_sect_off): Update.
8028
310b3441
TV
80292019-06-17 Tom de Vries <tdevries@suse.de>
8030
8031 PR gdb/24617
8032 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8033 accessing parent[parent_len - 1].
8034
ba9777be
PP
80352019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8036
8037 PR gdb/24364
8038 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8039 call dtrace_process_dof with NULL dof.
8040
2b9f6e89
TV
80412019-06-16 Tom de Vries <tdevries@suse.de>
8042
8043 PR gdb/24445
8044 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8045
431b3ead
TT
80462019-06-16 Tom Tromey <tom@tromey.com>
8047
8048 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8049 (make_all_visible): Use address of member.
8050
d04b44a1
TT
80512019-06-16 Tom Tromey <tom@tromey.com>
8052
8053 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8054 (tui_free_window, free_content, free_content_elements): Remove
8055 unnecessary cast.
8056 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8057 cast.
8058 * tui/tui-regs.c (tui_show_register_group)
8059 (tui_display_registers_from, tui_display_reg_element_at_line):
8060 Remove unnecessary cast.
8061
bf5142e7
AB
80622019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * linux-nat.c (normal_mask): Delete.
8065 (_initialize_linux_nat): Don't initialise normal_mask.
8066
c4973306
SM
80672019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8068
8069 PR gdb/24445
8070 * dwarf-index-write.h (write_psymtabs_to_index): Add
8071 dwz_basename parameter.
8072 * dwarf-index-write.c (write_gdbindex): Move file writing to
8073 write_gdbindex_1. Change return type void.
8074 (assert_file_size): Move up, remove filename parameter.
8075 (write_gdbindex_1): New function.
8076 (write_debug_names): Change return type to void, call
8077 assert_file_size.
8078 (struct index_wip_file): New struct.
8079 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8080 file logic to index_wip_file. Write index for dwz file if
8081 needed.
8082 (save_gdb_index_command): Pass basename of dwz file, if present.
8083 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8084 build-id of dwz file, if present.
8085 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8086 (dwarf2_get_dwz_file): Likewise.
8087 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8088 (dwarf2_get_dwz_file): Likewise.
8089
395f9c91
TT
80902019-06-16 Tom Tromey <tom@tromey.com>
8091
8092 * coffread.c (process_coff_symbol): Use xstrdup.
8093 * value.c (create_internalvar): Use xstrdup.
8094
cafb3438
TT
80952019-06-16 Tom Tromey <tom@tromey.com>
8096
8097 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8098 * breakpoint.c (stopin_command, stopat_command)
8099 (until_break_command, decode_location_default): Remove unnecessary
8100 cast.
8101 * utils.c (subset_compare): Remove unnecessary cast.
8102 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8103 cast.
8104 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8105 cast.
8106 * infcmd.c (path_command): Remove unnecessary cast.
8107 * coffread.c (decode_type): Remove unnecessary cast.
8108 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8109 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8110 * tui/tui-stack.c (tui_show_locator_content)
8111 (tui_show_frame_info): Remove unnecessary cast.
8112 * tui/tui-win.c (tui_scroll_forward_command)
8113 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8114 (parse_scrolling_args): Remove unnecessary cast.
8115 * tui/tui-data.c (init_win_info, tui_del_window)
8116 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8117 (free_content_elements): Remove unnecessary cast.
8118 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8119 unnecessary cast.
8120 * tui/tui-source.c (tui_set_source_content)
8121 (tui_vertical_source_scroll): Remove unnecessary cast.
8122 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8123 cast.
8124 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8125 * tui/tui-regs.c (tui_display_registers_from)
8126 (tui_display_register): Remove unnecessary cast.
8127 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8128 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8129 (make_visible): Remove unnecessary cast.
8130 * tui/tui-winsource.c (tui_erase_source_content)
8131 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8132 unnecessary cast.
8133 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8134 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8135 * stabsread.c (read_type, read_array_type, read_range_type):
8136 Remove unnecessary cast.
8137 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8138 (parse_symbol, parse_type, upgrade_type, parse_external)
8139 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8140 unnecessary cast.
8141 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8142
730ead81
TT
81432019-06-16 Tom Tromey <tom@tromey.com>
8144
8145 * tui/tui-data.c (tui_alloc_generic_win_info)
8146 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8147 checks.
8148
584a927c
AB
81492019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8150 Andrew Burgess <andrew.burgess@embecosm.com>
8151
8152 * f-typeprint.c (f_print_type): Don't return early for not
8153 associated or not allocated types.
8154 (f_type_print_varspec_suffix): Add print_rank parameter and print
8155 ranks of array types in case they dangling.
8156 (f_type_print_base): Add print_rank parameter.
8157
30056ea0
AB
81582019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * NEWS: Mention new MI commands.
8161 * break-catch-throw.c (enum exception_event_kind): Move to
8162 breakpoint.h.
8163 (print_mention_exception_catchpoint): Output text as a single
8164 message.
8165 (catch_exception_command_1): Rename to...
8166 (catch_exception_event): ...this, make non-static, update header
8167 command, and change some parameter types.
8168 (catch_catch_command): Update for changes to
8169 catch_exception_command_1.
8170 (catch_throw_command): Likewise.
8171 (catch_rethrow_command): Likewise.
8172 * breakpoint.c (enum exception_event_kind): Delete.
8173 * breakpoint.h (enum exception_event_kind): Moved here from
8174 break-catch-throw.c.
8175 (catch_exception_event): Declare.
8176 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8177 (mi_cmd_catch_throw): New function.
8178 (mi_cmd_catch_rethrow): New function.
8179 (mi_cmd_catch_catch): New function.
8180 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8181 'catch-catch' entries.
8182 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8183 (mi_cmd_catch_rethrow): Declare.
8184 (mi_cmd_catch_catch): Declare.
8185
ec8e2b6d
AB
81862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * annotate.c (annotate_source_line): Change return type to void,
8189 update implementation to match.
8190 * annotate.h (annotate_source_line): Change return type to void,
8191 update header comment.
8192 * stack.c (print_frame_info): Don't change what frame information
8193 is printed based on whether annotations are on or not.
8194
0d3abd8c
AB
81952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8198 (annotate_source): Make static.
8199 (annotate_source_line): Moved from source.c and renamed from
8200 identify_source_line. Update the return type.
8201 * annotate.h (annotate_source): Delete declaration.
8202 (annotate_source_line): Declaration moved from source.h, and
8203 renamed from identify_source_line. Return type updated.
8204 * source.c (identify_source_line): Moved to annotate.c and renamed
8205 to annotate_source_line.
8206 (info_line_command): Remove check of annotation_level.
8207 * source.h (identify_source_line): Move declaration to annotate.h
8208 and rename to annotate_source_line.
8209 * stack.c: Add 'annotate.h' include.
8210 (print_frame_info): Remove check of annotation_level before
8211 calling annotate_source_line.
8212
00df30ae
AB
82132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * source-cache.c (source_cache::get_plain_source_lines): Use
8216 open_source_file_with_line_charpos instead of just
8217 open_source_file, remove call to find_source_lines.
8218 (source_cache::get_source_lines): Likewise.
8219 * source.c (find_source_lines): Make static.
8220 (get_filename_and_charpos): Renamed into...
8221 (open_source_file_with_line_charpos): ..this along with changes to
8222 return a scoped_fd, and some other minor clean ups.
8223 (identify_source_line): Use open_source_file_with_line_charpos.
8224 (search_command_helper): Use open_source_file_with_line_charpos
8225 instead of just open_source_file, remove call to
8226 find_source_lines.
8227 * source.h (open_source_file_with_line_charpos): Declare new
8228 function.
8229 (find_source_lines): Delete declaration.
8230
afda45a2
AB
82312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8232
8233 * source.c (get_filename_and_charpos): Remove fullname
8234 parameter.
8235 (identify_source_line): Update call to get_filename_and_charpos.
8236
0735b091
TT
82372019-06-14 Tom Tromey <tromey@adacore.com>
8238
8239 PR gdb/24502:
8240 * ui-style.h (skip_ansi_escape): Update comment.
8241 * ui-file.h (class no_terminal_escape_file): New class.
8242 * ui-file.c (no_terminal_escape_file::write)
8243 (no_terminal_escape_file::puts): New methods.
8244 * cli/cli-logging.c (handle_redirections): Use
8245 no_terminal_escape_file.
8246
52ce35e2
TT
82472019-06-14 Tom Tromey <tromey@adacore.com>
8248
8249 * NEWS: Move convenience variable news above Python news.
8250
73cc7272
TT
82512019-06-14 Tom Tromey <tom@tromey.com>
8252
8253 * gnulib: Move directory to top-level.
8254 * configure.ac: Don't configure gnulib.
8255 * configure: Rebuild.
8256 * common/common-defs.h: Use new path to gnulib.
8257 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8258 (GNULIB_H): Remove.
8259 (INCGNU): Look in new gnulib location.
8260 (HFILES_NO_SRCDIR): Remove gnulib files.
8261 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8262 (generated_files): Remove GNULIB_H.
8263 ($(LIBGNU), all-lib): Remove targets.
8264 (distclean): Don't mention GNULIB_BUILDDIR.
8265 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8266
f5686554
TT
82672019-06-14 Tom Tromey <tromey@adacore.com>
8268
8269 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8270 Warn if symbol file does not provide any symbols.
8271
a0c1ffed
TT
82722019-06-14 Tom Tromey <tromey@adacore.com>
8273
8274 * source.c (find_and_open_source): Respect basenames_may_differ.
8275
7c39e397
AB
82762019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8277
8278 * annotate.c (annotate_breakpoints_invalid): Make use of
8279 scoped_restore_terminal_state.
8280 (annotate_frames_invalid): Likewise.
8281
f411722c
TT
82822019-06-14 Tom Tromey <tromey@adacore.com>
8283
8284 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8285 allow assignment to an internalvar.
8286
4268ec18
TT
82872019-06-14 Tom Tromey <tromey@adacore.com>
8288
8289 * ada-lex.l: Allow "_" in attribute names.
8290
abdb711e
TT
82912019-06-14 Tom Tromey <tromey@adacore.com>
8292
8293 PR gdb/24653:
8294 * regcache.c (registers_changed): Don't call alloca.
8295 * top.c (execute_command): Don't call alloca.
8296
4c048731
PA
82972019-06-13 Pedro Alves <palves@redhat.com>
8298
8299 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8300 'expression'. When parsing an expression, error out if there's
8301 junk after "unlimited".
8302 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8303 (do_set_command): Adjust calls to is_unlimited_literal.
8304
66eb1ed3
PA
83052019-06-13 Pedro Alves <palves@redhat.com>
8306
8307 * compile/compile.c (make_compile_options_def_group): Add braces
8308 around array_view initializer.
8309 * thread.c (make_thread_apply_all_options_def_group)
8310 (make_thread_apply_all_options_def_group): Likewise.
8311
3345721a
PA
83122019-06-13 Pedro Alves <palves@redhat.com>
8313
8314 * NEWS (New commands): Mention "maint test-options
8315 require-delimiter", "maint test-options unknown-is-error", "maint
8316 test-options unknown-is-operand" and "maint show
8317 test-options-completion-result".
8318 (New command options, command completion): New section.
8319 (Completion improvements): New section.
8320 Mention that you can abbreviate "unlimited".
8321
6206060d
PA
83222019-06-13 Pedro Alves <palves@redhat.com>
8323
8324 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8325 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8326 * unittests/cli-utils-selftests.c (test_parse_flags)
8327 (test_parse_flags_qcs): Delete.
8328 (test_cli_utils): Don't call deleted functions.
8329
6665660a
PA
83302019-06-13 Pedro Alves <palves@redhat.com>
8331
8332 * thread.c: Include "cli/cli-option.h".
8333 (tp_array_compar_ascending): Global.
8334 (tp_array_compar): Delete function.
8335 (tp_array_compar_ascending, tp_array_compar_descending): New
8336 functions.
8337 (ascending_option_def, qcs_flag_option_def)
8338 (thr_qcs_flags_option_defs)
8339 (make_thread_apply_all_options_def_group)
8340 (make_thread_apply_options_def_group): New.
8341 (thread_apply_all_command): Use gdb::option::process_options.
8342 (thread_apply_command_completer)
8343 (thread_apply_all_command_completer): New.
8344 (thread_apply_command): Use gdb::option::process_options.
8345 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8346 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8347 to generate help text of "thread apply". Adjust "taas"'s help.
8348 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8349 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8350
f7e13587
PA
83512019-06-13 Pedro Alves <palves@redhat.com>
8352
8353 * thread.c (thread_apply_command): Check for invalid TID with
8354 isdigit instead of !isalpha.
8355
5d707134
PA
83562019-06-13 Pedro Alves <palves@redhat.com>
8357
8358 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8359 (validate_flags_qcs): New.
8360 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8361 (validate_flags_qcs): Declare.
8362 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8363 (make_frame_apply_options_def_group): New.
8364 (frame_apply_command_count): Process options with
8365 gdb::option::process_options.
8366 (frame_apply_completer): New.
8367 (frame_apply_level_completer, frame_apply_all_completer)
8368 (frame_apply_completer): New.
8369 (_initialize_stack): Update help of "frame apply", "frame apply
8370 level", "frame apply all" and "faas" to mention supported options
8371 and install command completers.
8372 * stack.h (frame_apply_all_completer): Declare.
8373 * thread.c: Include "stack.h".
8374 (tfaas_command): Add "--".
8375 (_initialize_thread): Update help "tfaas" to mention supported
8376 options and install command completer.
8377
272d4594
PA
83782019-06-13 Pedro Alves <palves@redhat.com>
8379
8380 * completer.c (complete_nested_command_line): New.
8381 (gdb_completion_word_break_characters_throw): Add assertion.
8382 * completer.h (complete_nested_command_line): Declare.
8383
90a1ef87
PA
83842019-06-13 Pedro Alves <palves@redhat.com>
8385
8386 * stack.c (parse_backtrace_qualifiers): New.
8387 (backtrace_command): Use it.
8388 (backtrace_command_completer): Complete on qualifiers.
8389
d4c16835
PA
83902019-06-13 Pedro Alves <palves@redhat.com>
8391
8392 * frame.c: Include "cli/cli-option.h.
8393 (user_set_backtrace_options): New.
8394 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8395 Delete.
8396 (get_prev_frame): Adjust.
8397 (boolean_option_def, uinteger_option_def)
8398 (set_backtrace_option_defs): New.
8399 (_initialize_frame): Adjust and use
8400 gdb::option::add_setshow_cmds_for_options to install "set
8401 backtrace past-main" and "set backtrace past-entry".
8402 * frame.h: Include "cli/cli-option.h".
8403 (struct frame_print_options): Forward declare.
8404 (print_frame_arguments_all, print_frame_arguments_scalars)
8405 (print_frame_arguments_none): Declare.
8406 (print_entry_values): Delete declaration.
8407 (struct frame_print_options, user_frame_print_options): New.
8408 (struct set_backtrace_options): New.
8409 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8410 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8411 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8412 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8413 (list_args_or_locals): Add frame_print_options parameter.
8414 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8415 * python/py-framefilter.c (enumerate_args): Pass down
8416 USER_FRAME_PRINT_OPTIONS.
8417 * stack.c: Include "cli/cli-option.h".
8418 (print_frame_arguments_all, print_frame_arguments_scalars)
8419 (print_frame_arguments_none): Declare.
8420 (print_raw_frame_arguments, print_entry_values): Delete.
8421 (user_frame_print_options): New.
8422 (boolean_option_def, enum_option_def, frame_print_option_defs):
8423 New.
8424 (struct backtrace_cmd_options): New.
8425 (bt_flag_option_def): New.
8426 (backtrace_command_option_defs): New.
8427 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8428 (print_frame_arg, read_frame_arg, print_frame_args)
8429 (print_frame_info, print_frame): Add frame_print_options parameter
8430 and use it.
8431 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8432 (backtrace_command_1): Add frame_print_options and
8433 backtrace_cmd_options parameters and use them.
8434 (make_backtrace_options_def_group): New.
8435 (backtrace_command): Process command options with
8436 gdb::option::process_options.
8437 (backtrace_command_completer): New.
8438 (_initialize_stack): Extend "backtrace"'s help to mention
8439 supported options. Install completer for "backtrace".
8440 Install some settings commands with add_setshow_cmds_for_options.
8441
2daf894e
PA
84422019-06-13 Pedro Alves <palves@redhat.com>
8443
8444 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8445 and that "set/show print raw frame-arguments" are now deprecated.
8446
8447 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8448 command.
8449 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8450 * stack.c (_initialize_stack): Install "set/show print
8451 raw-frame-arguments", and deprecate "set/show print raw
8452 frame-arguments".
8453 * valprint.c (_initialize_valprint): Deprecate "set/show print
8454 raw".
8455
e6ed716c
PA
84562019-06-13 Pedro Alves <palves@redhat.com>
8457
8458 * compile/compile.c (struct compile_options): New.
8459 (compile_flag_option_def, compile_command_option_defs)
8460 (make_compile_options_def_group): New.
8461 (compile_file_command): Handle options with
8462 gdb::option::process_options.
8463 (compile_file_command_completer): New function.
8464 (compile_code_command): Handle options with
8465 gdb::option::process_options.
8466 (compile_code_command_completer): New function.
8467 (_initialize_compiler): Install completers for "compile code" and
8468 "compile file". Mention available options in "compile code" and
8469 "compile code"'s help.
8470 * completer.c (advance_to_completion_word): New, factored out from
8471 ...
8472 (advance_to_expression_complete_word_point): ... this.
8473 (advance_to_filename_complete_word_point): New.
8474 * completer.h (advance_to_filename_complete_word_point): New
8475 declaration.
8476
7d8062de
PA
84772019-06-13 Pedro Alves <palves@redhat.com>
8478
8479 * compile/compile.c: Include "cli/cli-option.h".
8480 (compile_print_value): Scope data pointer is now a
8481 value_print_options pointer; adjust.
8482 (compile_print_command): Process options. Scope data pointer is
8483 now a value_print_options pointer; adjust.
8484 (_initialize_compile): Update "compile print"'s help to include
8485 supported options. Install a completer for "compile print".
8486 * cp-valprint.c (show_vtblprint, show_objectprint)
8487 (show_static_field_print): Delete.
8488 (_initialize_cp_valprint): Don't install "set print
8489 static-members", "set print vtbl", "set print object" here.
8490 * printcmd.c: Include "cli/cli-option.h" and
8491 "common/gdb_optional.h".
8492 (print_command_parse_format): Rework to fill in a
8493 value_print_options instead of a format_data.
8494 (print_value): Change parameter type from format_data pointer to
8495 value_print_options reference. Adjust.
8496 (print_command_1): Process options. Adjust to pass down a
8497 value_print_options.
8498 (print_command_completer): New.
8499 (_initialize_printcmd): Install print_command_completer as
8500 handle_brkchars completer for the "print" command. Update
8501 "print"'s help to include supported options.
8502 * valprint.c: Include "cli/cli-option.h".
8503 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8504 here from cp-valprint.c.
8505 (boolean_option_def, uinteger_option_def)
8506 (value_print_option_defs, make_value_print_options_def_group):
8507 New. Use gdb::option::add_setshow_cmds_for_options to install
8508 "set print elements", "set print null-stop", "set print repeats",
8509 "set print pretty", "set print union", "set print array", "set
8510 print address", "set print symbol", "set print array-indexes".
8511 * valprint.h: Include <string> and "cli/cli-option.h".
8512 (make_value_print_options_def_group): Declare.
8513 (print_value): Change parameter type from format_data pointer to
8514 value_print_options reference.
8515 (print_command_completer): Declare.
8516
9d0faba9
PA
85172019-06-13 Pedro Alves <palves@redhat.com>
8518
8519 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8520 (COMMON_SFILES): Add maint-test-settings.c.
8521 * cli/cli-decode.c (boolean_enums): New global, factored out from
8522 ...
8523 (add_setshow_boolean_cmd): ... here.
8524 * cli/cli-decode.h (boolean_enums): Declare.
8525 * cli/cli-option.c: New file.
8526 * cli/cli-option.h: New file.
8527 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8528 factored out from ...
8529 (parse_cli_boolean_value(const char *)): ... this.
8530 (is_unlimited_literal): Change parameter type to pointer to
8531 pointer. Adjust and advance ARG pointer.
8532 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8533 (parse_cli_var_enum): New, factored out from ...
8534 (do_set_command): ... this. Adjust.
8535 * cli/cli-setshow.h (parse_cli_boolean_value)
8536 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8537 (parse_cli_var_enum): Declare.
8538 * cli/cli-utils.c: Include "cli/cli-option.h".
8539 (get_ulongest): New.
8540 * cli/cli-utils.h (get_ulongest): Declare.
8541 (check_for_argument): New overloads.
8542 * maint-test-options.c: New file.
8543
2c722807
PA
85442019-06-13 Pedro Alves <palves@redhat.com>
8545
8546 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8547 parse a range if "-" is at the end of the string.
8548
dee7b4c8
PA
85492019-06-13 Pedro Alves <palves@redhat.com>
8550
8551 * cli/cli-setshow.c (parse_auto_binary_operation)
8552 (parse_cli_boolean_value): Don't allow "o".
8553
dca0f6c0
PA
85542019-06-13 Pedro Alves <palves@redhat.com>
8555
8556 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8557 * NEWS: Mention maint test-settings KIND.
8558 * maint-test-settings.c: New file.
8559
597bf39d
PA
85602019-06-13 Pedro Alves <palves@redhat.com>
8561
8562 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8563 completer.
8564 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8565 "set" completers.
8566
48c410fb
PA
85672019-06-13 Pedro Alves <palves@redhat.com>
8568
8569 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8570 after item.
8571
93bcb043
PA
85722019-06-13 Pedro Alves <palves@redhat.com>
8573
8574 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8575
cbba3ecd
PA
85762019-06-13 Pedro Alves <palves@redhat.com>
8577
8578 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8579 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8580 call.
8581 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8582 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8583 calls.
8584 (check_for_argument): Skip spaces after argument.
8585
b9a3f842
PA
85862019-06-13 Pedro Alves <palves@redhat.com>
8587
8588 * thread.c (thread_apply_command): Adjust TID parsing.
8589 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8590 detected before end of string.
8591 (tid_is_in_list): Error out if LIST is invalid.
8592
3844e605
PA
85932019-06-13 Pedro Alves <palves@redhat.com>
8594
8595 * completer.c (complete_line_internal_1): Rewind completion word
8596 point.
8597 (completion_tracker::advance_custom_word_point_by): Change
8598 parameter type to int.
8599 * completer.h (completion_tracker::advance_custom_word_point_by):
8600 Likewise.
8601
00b56dbe
PA
86022019-06-13 Pedro Alves <palves@redhat.com>
8603
8604 * completer.c (advance_to_completion_word): Handle delimiters.
8605
d106773e
PA
86062019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8607
8608 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8609
08f10e02
TT
86102019-06-11 Tom Tromey <tom@tromey.com>
8611
8612 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8613 (xmalloc_failed): Move to alloc.c.
8614 * alloc.c: New file.
8615 * Makefile.in (COMMON_SFILES): Add alloc.c.
8616
1c7fe951
TT
86172019-06-11 Tom Tromey <tom@tromey.com>
8618
8619 * nat/linux-waitpid.c: Don't include server.h.
8620 (linux_debug): Remove.
8621 (my_waitpid): Update.
8622
89549d7f
TT
86232019-06-11 Tom Tromey <tromey@adacore.com>
8624
8625 * infcall.c (_initialize_infcall): Remove trailing newline from
8626 help.
8627 * user-regs.c (_initialize_user_regs): Remove trailing newline
8628 from help.
8629 * typeprint.c (_initialize_typeprint): Remove trailing newline
8630 from help.
8631 * reverse.c (_initialize_reverse): Remove trailing newlines from
8632 help.
8633 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8634 from help.
8635 * language.c (add_set_language_command): Remove trailing newline
8636 from help.
8637 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8638 help.
8639 * disasm.c (_initialize_disasm): Remove trailing newline from
8640 help.
8641 * top.c (init_main): Remove trailing newline from help.
8642 * interps.c (_initialize_interpreter): Remove trailing newline
8643 from help.
8644 * btrace.c (_initialize_btrace): Remove trailing newlines from
8645 help.
8646 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8647 from help.
8648 * python/python.c (_initialize_python): Remove trailing newline
8649 from help.
8650 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8651 help.
8652 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8653 from help. Reformat some text.
8654 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8655 from help.
8656 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8657 newline from help.
8658
86108c13
TT
86592019-06-11 Tom Tromey <tromey@adacore.com>
8660
8661 * darwin-nat.c (darwin_decode_exception_message)
8662 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8663
a7067863
AB
86642019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8665
8666 * valops.c (value_slice): Check for not allocated or not
8667 associated values.
8668
9ab08412
TV
86692019-06-10 Tom de Vries <tdevries@suse.de>
8670
8671 PR gdb/24618
8672 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8673 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8674 invalid.
8675
f19e22e9
TV
86762019-06-10 Tom de Vries <tdevries@suse.de>
8677
8678 PR gdb/24611
8679 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8680 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8681
e99f9db0
TV
86822019-06-10 Tom de Vries <tdevries@suse.de>
8683
8684 PR symtab/24545
8685 * symtab.c (struct demangled_name_entry): Add language field.
8686 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8687 static minimal symbol". Set and use language field.
8688
9bf7038b
TT
86892019-06-10 Tom Tromey <tromey@adacore.com>
8690
8691 * ada-lang.c (_initialize_ada_language): Update help text.
8692
422186a9
TT
86932019-06-10 Tom Tromey <tromey@adacore.com>
8694
8695 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8696 with a newline.
8697 * guile/guile.c (handle_boot_error): Don't end warning with a
8698 newline.
8699 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8700 warning with a newline.
8701 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8702 newline.
8703 (s12z_frame_cache): Likewise.
8704 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8705 a newline.
8706 * solib-svr4.c (disable_probes_interface): Don't end warning with
8707 a newline.
8708 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8709 newline.
8710 * python/python.c (do_finish_initialization): Don't end warning
8711 with a newline.
8712
25ce02ee
TT
87132019-06-10 Tom Tromey <tom@tromey.com>
8714
8715 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8716 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8717 gdbpy_enter.
8718
caa429d8
TT
87192019-06-10 Tom Tromey <tromey@adacore.com>
8720
8721 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8722 data.
8723 (elf_new_init): Don't call stabsread_new_init.
8724 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8725 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8726 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8727
81873cc8
TV
87282019-06-10 Tom de Vries <tdevries@suse.de>
8729
8730 PR symtab/16264
8731 PR symtab/24517
8732 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8733
4fa0265e
РИ
87342019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8735
8736 * source.c (find_and_open_source): Also rewrite relative file
8737 names.
8738
1a3da2cd
AB
87392019-04-26 Amos Bird <amosbird@gmail.com>
8740
8741 * annotate.c (annotate_thread_exited): Add "thread-exited"
8742 annotation.
8743
3847a7bf
TT
87442019-06-06 Tom Tromey <tromey@adacore.com>
8745
8746 * maint.h (class scoped_command_stats): Use
8747 DISABLE_COPY_AND_ASSIGN.
8748 <print_time>: New method.
8749 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8750 print_time.
8751 (scoped_command_stats::print_time): New method.
8752
312617a3
AB
87532019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8756 instructions of lengths 6 or 8 bytes.
8757
b02f78f9
PA
87582019-06-04 Pedro Alves <palves@redhat.com>
8759
8760 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8761
8762 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8763 * breakpoint.c (condition_completer): Likewise.
8764 * cli/cli-dump.c (scan_expression): Likewise.
8765 * common/filestuff.c (mkdir_recursive): Likewise.
8766 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8767 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8768 (gdb_abspath): Likewise.
8769 * compile/compile-cplus-types.c
8770 (compile_cplus_instance::decl_name): Likewise.
8771 * completer.c (complete_explicit_location):
8772 (signal_completer, reg_or_group_completer_1): Likewise.
8773 * cp-support.c (cp_remove_params_if_any): Likewise.
8774 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8775 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8776 * infcmd.c (strip_bg_char): Likewise.
8777 * linespec.c (copy_token_string): Likewise.
8778 * mi/mi-main.c (output_cores): Likewise.
8779 * psymtab.c (psymtab_search_name):
8780 * symfile.c (test_set_ext_lang_command): Likewise.
8781 * target.c (target_fileio_read_stralloc): Likewise.
8782 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8783 * value.c (complete_internalvar): Likewise.
8784
e1f2e1a2
CB
87852019-06-04 Christian Biesinger <cbiesinger@google.com>
8786
8787 Add objfile property to gdb.Type.
d3238f7d
PA
8788 * NEWS: Mention Python API addition.
8789 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8790
e664d728
PW
87912019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8792
8793 * NEWS: Mention the new set|show style [title|highlight].
8794 Mention changes to "show style", "help" and "apropos".
8795
66d8c862
PW
87962019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8797
8798 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8799 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8800 instead of print_help_for_command.
8801 (print_doc_of_command): New function.
8802 (help_list): Add 'apropos -v word' suggestion.
8803 (print_help_for_command): Style the command name using title style.
8804 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8805 (_initialize_cli_cmds): Describe -v in apropos_command help.
8806
9303eb2f
PW
88072019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8808
8809 * cli/cli-style.h (cli_style_option): Add name in constructor,
8810 add m_name class member, add constructor with intensity,
8811 add name class function.
8812 (cli_style_option::add_setshow_commands): Remove name argument.
8813 (highlight_style, title_style): New styles.
8814 * cli/cli-style.c (do_show): New function that shows a style
8815 characteristic styling the style name with itself.
8816 (set_style_name): New function.
8817 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8818 Update all callers according to the changes in cli/cli-style.h.
8819 * utils.h (fputs_highlighted): New function.
8820 * utils.c (fputs_highlighted): Likewise.
8821
e2c52041
PW
88222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823
8824 * NEWS: Mention new pipe command and new convenience variables.
8825
947d3946
PW
88262019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8827
8828 * cli/cli-cmds.c (pipe_command): New function.
8829 (_initialize_cli_cmds): Call add_com for pipe_command.
8830 Define | as an alias for pipe.
8831 (exit_status_set_internal_vars): New function.
8832 (shell_escape): Call exit_status_set_internal_vars.
8833 cli/cli-decode.c (find_command_name_length): Recognize | as
8834 a single character command.
8835
b8fd0918
PW
88362019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8837
8838 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8839 top.c (execute_command_to_ui_file): New function, mostly a copy
8840 of execute_command_to_string.
8841 (execute_command_to_string): Implement by calling
8842 execute_command_to_ui_file.
8843
68bb5386
PW
88442019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8845
8846 * top.h (saved_command_line): Remove declaration.
8847 * top.c (previous_saved_command_line, previous_repeat_arguments):
8848 New variables.
8849 (saved_command_line): Make static, define together with other
8850 'repeat variables'.
8851 (dont_repeat): Clear repeat_arguments.
8852 (repeat_previous, get_saved_command_line, save_command_line):
8853 New functions.
8854 (gdb_init): Initialize saved_command_line
8855 and previous_saved_command_line.
8856 * main.c (captured_main_1): Remove saved_command_line initialization.
8857 * event-top.c (handle_line_of_input): Update to use
8858 the new 'repeat' related functions instead of direct access to
8859 saved_command_line.
8860 * command.h (repeat_previous, get_saved_command_line,
8861 save_command_line): New declarations.
8862 (dont_repeat): Add comment.
8863
bfcdb852
TT
88642019-05-30 Tom Tromey <tromey@adacore.com>
8865
8866 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8867 Fix comment.
8868 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8869
0ef209f2
JV
88702019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8871
8872 PR cli/24587
8873 * completer.c (complete): Initialize variable word.
8874
955b06fa
SDJ
88752019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8876
8877 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8878 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8879 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8880 'body' is NULL to the outter 'if', protecting the '!is_define'
8881 situation as well.
8882
fa9c3fa0
TT
88832019-05-29 Tom Tromey <tromey@adacore.com>
8884
8885 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8886 (dwarf_unknown): New function.
8887 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8888 (dwarf_type_encoding_name): Use dwarf_unknown.
8889
4330d61d
TT
88902019-05-29 Tom Tromey <tromey@adacore.com>
8891
8892 PR c++/20020:
8893 * cp-valprint.c (cp_print_value_fields): Call
8894 cp_print_static_field inside "try".
8895
33a6bc35
TT
88962019-05-29 Tom Tromey <tromey@adacore.com>
8897
8898 * inflow.c (struct terminal_info): Add default operator=.
8899 * configure: Rebuild.
8900 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8901 -Wdeprecated-copy-dtor, -Wredundant-move.
8902
000439d5
TT
89032019-05-29 Tom Tromey <tromey@adacore.com>
8904
8905 * NEWS: Add entry.
8906 * infcmd.c (print_return_value_1): Handle finish_print
8907 option.
8908 (show_print_finish): New function.
8909 (_initialize_infcmd): Add "set/show print finish" commands.
8910 * valprint.c (user_print_options): Initialize new member.
8911 * valprint.h (struct value_print_options) <finish_print>: New
8912 member.
8913
c0e70c62
TT
89142019-05-28 Tom Tromey <tromey@adacore.com>
8915
8916 * ada-lang.c (ada_remove_Xbn_suffix)
8917 (find_old_style_renaming_symbol)
8918 (parse_old_style_renaming): Remove.
8919 (ada_find_renaming_symbol): Don't call
8920 find_old_style_renaming_symbol.
8921 (ada_is_renaming_symbol): Rename from
8922 ada_find_renaming_symbol. Remove "block" parameter. Return
8923 bool. Now static.
8924 (ada_read_var_value): Update and simplify.
8925 * ada-exp.y (write_var_or_type): Remove old code.
8926
766f8836
AH
89272019-05-28 Alan Hayward <alan.hayward@arm.com>
8928
68255adc 8929 PR gdb/25010
766f8836
AH
8930 * event-top.c: Remove include comment.
8931 * inflow.c (class scoped_ignore_sigttou): Move from here...
8932 * inflow.h (class scoped_ignore_sigttou): ...to here.
8933 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8934 * top.c: Remove include comment.
8935
eb41253a
TT
89362019-05-27 Tom Tromey <tom@tromey.com>
8937
8938 * NEWS: Fix typo.
8939
4ca51187
TT
89402019-05-22 Tom Tromey <tromey@adacore.com>
8941
8942 * target.c (target_follow_exec): Constify parameter.
8943 * target-delegates.c: Rebuild.
8944 * remote.c (remote_target::follow_exec): Constify parameter.
8945 * infrun.c (follow_exec): Constify parameter.
8946 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8947 (target_follow_exec): Likewise.
8948
8fca4da0
AH
89492019-05-22 Alan Hayward <alan.hayward@arm.com>
8950
8951 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8952 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8953
b7060614
AH
89542019-05-22 Alan Hayward <alan.hayward@arm.com>
8955
8956 * NEWS: Add debugredirect and testsuite sections.
8957
0a5954bd
SC
89582019-05-22 Simon Cook <simon.cook@embecosm.com>
8959
8960 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8961 target descriptions using exclusively floating point register name
8962 aliases.
8963
dc42e902
AB
89642019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8965
8966 PR gdb/18644:
8967 * f-lang.c (build_fortran_types): Handle the case where
8968 gdbarch_floatformat_for_type returns a nullptr.
8969
fb7806c7
TV
89702019-05-21 Tom de Vries <tdevries@suse.de>
8971
8972 PR cli/24587
8973 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8974
34d11c68
AB
89752019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 PR gdb/18644:
8978 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8979 16-byte floats.
8980 * i386-tdep.c (i386_floatformat_for_type): Use
8981 floatformats_ia64_quad for the 16-byte floating point component
8982 within a fortran 32-byte complex number.
8983
122cf0f2
AB
89842019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8987 delete default constructor.
8988 (find_partial_die): Update to return const struct.
8989 (partial_die_parent_scope): Move variable declaration into scope
8990 of its use and change its type to auto.
8991 (guess_partial_die_structure_name): Likewise.
8992 (partial_die_info::fixup): Likewise.
8993
33d0e35a
TT
89942019-05-17 Tom Tromey <tromey@adacore.com>
8995
8996 * source.c (find_and_open_source): Remove cast.
8997
a45575b0
TT
89982019-05-17 Tom Tromey <tromey@adacore.com>
8999
9000 * annotate.c (annotate_source): Make "filename" const.
9001 * annotate.h (annotate_source): Use const.
9002
81f47ac2
AH
90032019-05-17 Alan Hayward <alan.hayward@arm.com>
9004
9005 * disasm.c (set_disassembler_options): Send errors to stderr.
9006
ca1285d1
AH
90072019-05-17 Alan Hayward <alan.hayward@arm.com>
9008
9009 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9010 (cli_interp_base::set_logging): Check debug_redirect.
9011 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9012 * cli/cli-logging.c (debug_redirect): Add static variable.
9013 (pop_output_files): Add default param.
9014 (handle_redirections): Print debug setting.
9015 (show_logging_command): Likewise.
9016 (_initialize_cli_logging): Add debugredirect command.
9017 * interps.c (current_interp_set_logging): Add debug_redirect
9018 parameter.
9019 * interps.h (set_logging): Add debug_redirect parameter.
9020 (current_interp_set_logging): Likewise.
9021 * mi/mi-common.h: Likewise.
9022 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9023
90242019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9025 Tom Tromey <tromey@adacore.com>
9026
9027 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9028 directly.
9029 * cli/cli-interp.h (make_logging_output): Remove declaration.
9030 * cli/cli-logging.c (make_logging_output): Remove function.
9031 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9032 directly.
9033 * ui-file.c (tee_file::tee_file): Remove bools.
9034 (tee_file::~tee_file): Remove deletes.
9035 * ui-file.h (tee_file): Remove bools.
9036
26648588
JV
90372019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9038
9039 * mi/mi-cmds.h (mi_cmd_complete): New function.
9040 * mi/mi-main.c (mi_cmd_complete): Likewise.
9041 * mi/mi-cmds.c: Define new MI command -complete.
9042 * NEWS: Mention new -complete command.
9043
6e035501
JV
90442019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9045
9046 * completer.h (complete): New function.
9047 * completer.c (complete): Likewise.
9048 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9049 function defined in completer.h.
9050
7d0e2ece
JV
90512019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9052
e79be6e5 9053 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9054
fb816e8b
TV
90552019-05-17 Tom de Vries <tdevries@suse.de>
9056
9057 PR gdb/24094
9058 * dwarf2read.c (struct cu_partial_die_info): New struct.
9059 (find_partial_die): Return cu_partial_die_info.
9060 (partial_die_parent_scope, guess_partial_die_structure_name)
9061 (partial_die_info::fixup): Handle new return type of find_partial_die.
9062
677052f2
SDJ
90632019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9064
a1726c38 9065 PR breakpoints/24541
677052f2
SDJ
9066 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9067 "std::string", simplifying the algorithm.
9068
f3da9116
SDJ
90692019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9070
9071 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9072 (stap_static_probe_ops::get_probes): Likewise.
9073
f1bb75ab
SDJ
90742019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9075
9076 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9077 '-')" and "else if".
9078 (stap_parse_single_operand): Join checks for
9079 "gdbarch_stap_parse_special_token_p" and
9080 "gdbarch_stap_parse_special_token" in the same "if" statement.
9081 Invert check when verifying for operation on register
9082 displacement.
9083
3ca58cde
SDJ
90842019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9085
9086 * stap-probe.c (stap_get_opcode): Update comment.
9087 (stap_get_expected_argument_type): Likewise.
9088 (handle_stap_probe): Likewise.
9089
af2d9bee
SDJ
90902019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9091
9092 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9093 return type to 'bool'. Adjust comment. Use 'bool' when
9094 appropriate.
9095 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9096 * stap-probe.c (stap_parse_argument_1): Likewise.
9097 (stap_is_operator): Likewise.
9098 (stap_is_generic_prefix): Likewise.
9099 (stap_is_register_prefix): Likewise.
9100 (stap_is_register_indirection_prefix): Likewise.
9101 (stap_is_integer_prefix): Likewise.
9102 (stap_generic_check_suffix): Likewise.
9103 (stap_check_integer_suffix): Likewise.
9104 (stap_check_register_suffix): Likewise.
9105 (stap_check_register_indirection_suffix): Likewise.
9106 (stap_parse_register_operand): Likewise.
9107 (stap_parse_single_operand): Likewise.
9108 (stap_parse_argument_1): Likewise.
9109 (stap_probe::get_argument_count): Likewise.
9110 (stap_is_operator): Likewise.
9111
61c9c421
TT
91122019-05-16 Tom Tromey <tromey@adacore.com>
9113
9114 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9115 keyword to foreach.
9116
9ddc1af1
SM
91172019-05-15 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * linux-thread-db.c (try_thread_db_load_1): Change return type
9120 to bool.
9121 (try_thread_db_load): Likewise.
9122 (try_thread_db_load_from_pdir_1): Likewise.
9123 (try_thread_db_load_from_pdir): Likewise.
9124 (try_thread_db_load_from_sdir): Likewise.
9125 (try_thread_db_load_from_dir): Likewise.
9126 (thread_db_load_search): Likewise.
9127 (has_libpthread): Likewise.
9128 (thread_db_load): Likewise.
9129
7bede828
SDJ
91302019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9131
9132 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9133 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9134 NULL, and complain/return if that's the case.
9135
c5358db4
JD
91362019-05-15 John Darrington <john@darrington.wattle.id.au>
9137
9138 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9139 (advance, posn, abstract_read_memory): New functions.
9140 [struct mem_read_abstraction]: New struct.
9141 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9142
c408a94f
TT
91432019-05-14 Tom Tromey <tromey@adacore.com>
9144
9145 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9146 value is not lval_memory.
9147
e7bd7fba
TT
91482019-05-14 Tom Tromey <tromey@adacore.com>
9149
9150 * solib.c (info_sharedlibrary_command): Style the file name.
9151
a6d0f249
AH
91522019-05-14 Alan Hayward <alan.hayward@arm.com>
9153
9154 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9155 (aarch64_vnv_type): Likewise.
9156 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9157 * common/tdesc.c: Likewise.
9158 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9159 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9160 * features/aarch64-fpu.xml: Add ieee half view.
9161 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9162 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9163 * gdbtypes.h (struct builtin_type): Likewise.
9164 (struct objfile_type): Likewise.
9165
66b8bb74
SM
91662019-05-12 Paul Naert <paul.naert@polymtl.ca>
9167
9168 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9169 typo.
9170 * location.h (string_to_event_location): Likewise.
9171
21c219fd
JB
91722019-05-11 Joel Brobecker <brobecker@adacore.com>
9173
9174 GDB 8.3 released.
9175
13674803
SM
91762019-05-10 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9179 New variable declaration.
9180 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9181 New variable.
9182 (print_one_breakpoint): Use ui_out::test_flags and new global
9183 variable to compute use_fixed_output.
9184 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9185 Remove.
9186 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9187 (mi_multi_location_breakpoint_output_fixed): Remove.
9188 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9189 new variable.
9190 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9191 fix_multi_location_breakpoint_output flag if version >= 3.
9192 * ui-out.h (enum ui_out_flag)
9193 <fix_multi_location_breakpoint_output>: New enumerator.
9194
a9eac7f9
SM
91952019-05-10 Simon Marchi <simon.marchi@efficios.com>
9196
9197 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9198
71bed2db
TT
91992019-05-10 Tom Tromey <tromey@adacore.com>
9200
9201 * ada-lang.c (catch_ada_completer): New function.
9202 (_initialize_ada_language): Use it.
9203
24c54127
TT
92042019-05-10 Tom Tromey <tromey@adacore.com>
9205
9206 * thread.c (print_thread_info): Make "requested_threads" const.
9207 * gdbthread.h (print_thread_info): Make "requested_threads"
9208 const.
9209 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9210 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9211
7a102139
TT
92122019-05-08 Tom Tromey <tom@tromey.com>
9213
9214 * gdbtypes.c (objfile_type_data): Change type.
9215 (objfile_type, _initialize_gdbtypes): Update.
9216
924d79e2
TT
92172019-05-08 Tom Tromey <tom@tromey.com>
9218
9219 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9220 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9221 (_initialize_dwarf2_frame): Update.
9222
4c58e337
TT
92232019-05-08 Tom Tromey <tom@tromey.com>
9224
9225 * objc-lang.c (objc_objfile_data): Change type.
9226 (find_methods): Update.
9227 (_initialize_objc_lang): Remove.
9228
d772d2ab
TT
92292019-05-08 Tom Tromey <tom@tromey.com>
9230
9231 * stabsread.c (rs6000_builtin_type_data): Change type.
9232 (rs6000_builtin_type, _initialize_stabsread): Update.
9233
d11d83f4
TT
92342019-05-08 Tom Tromey <tom@tromey.com>
9235
9236 * mips-tdep.c (mips_pdr_data): Remove.
9237 (_initialize_mips_tdep): Update.
9238
9a73f0ad
TT
92392019-05-08 Tom Tromey <tom@tromey.com>
9240
9241 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9242 (hppa_init_objfile_priv_data, read_unwind_info)
9243 (find_unwind_entry, _initialize_hppa_tdep): Update.
9244
8127a2fa
TT
92452019-05-08 Tom Tromey <tom@tromey.com>
9246
9247 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9248 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9249 on obstack.
9250 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9251
91d3055d
TT
92522019-05-08 Tom Tromey <tom@tromey.com>
9253
9254 * mdebugread.c (basic_type_data): Change type.
9255 (basic_type, _initialize_mdebugread): Update.
9256
31930bd3
TT
92572019-05-08 Tom Tromey <tom@tromey.com>
9258
9259 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9260
bdb3ed9e
TT
92612019-05-08 Tom Tromey <tom@tromey.com>
9262
9263 * nto-tdep.c (nto_inferior_data_reg): Change type.
9264 (nto_inferior_data): Update.
9265 (nto_inferior_data_cleanup, nto_new_inferior_data)
9266 (_initialize_nto_tdep): Remove.
9267 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9268
f37b313d
TT
92692019-05-08 Tom Tromey <tom@tromey.com>
9270
9271 * ada-lang.c (struct ada_inferior_data): Add initializers.
9272 (ada_inferior_data): Change type.
9273 (ada_inferior_data_cleanup): Remove.
9274 (get_ada_inferior_data, ada_inferior_exit)
9275 (struct ada_pspace_data): Add initializers, destructor.
9276 (ada_pspace_data_handle): Change type.
9277 (get_ada_pspace_data): Update.
9278 (ada_pspace_data_cleanup): Remove.
9279
24699405
TT
92802019-05-08 Tom Tromey <tom@tromey.com>
9281
9282 * coffread.c (struct coff_symfile_info): Add initializers.
9283 (coff_objfile_data_key): Move lower. Change type.
9284 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9285 Update.
9286 (coff_free_info): Remove.
9287
d4e05d2f
TT
92882019-05-08 Tom Tromey <tom@tromey.com>
9289
9290 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9291 (fbsd_pspace_data_handle): Move lower. Change type.
9292 (get_fbsd_pspace_data): Update.
9293 (fbsd_pspace_data_cleanup): Remove.
9294 (_initialize_fbsd_tdep): Update.
9295
14ef6690
TT
92962019-05-08 Tom Tromey <tom@tromey.com>
9297
9298 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9299 (get_ada_tasks_pspace_data): Update.
9300 (ada_tasks_pspace_data_cleanup): Remove.
9301 (_initialize_tasks): Update.
9302 (ada_tasks_inferior_data_handle): Change type.
9303 (get_ada_tasks_inferior_data): Update.
9304 (ada_tasks_inferior_data_cleanup): Remove.
9305 (struct ada_tasks_pspace_data): Add initializers.
9306
814cf43a
TT
93072019-05-08 Tom Tromey <tom@tromey.com>
9308
9309 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9310 * symfile-debug.c (debug_sym_get_probes): Change type.
9311 * stap-probe.c (handle_stap_probe):
9312 (stap_static_probe_ops::get_probes): Change type.
9313 * probe.h (class static_probe_ops) <get_probes>: Change type.
9314 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9315 (parse_probes_in_pspace): Update.
9316 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9317 Update.
9318 (any_static_probe_ops::get_probes): Change type.
9319 * elfread.c (elfread_data): New typedef.
9320 (probe_key): Change type.
9321 (elf_get_probes): Likewise. Update.
9322 (probe_key_free): Remove.
9323 (_initialize_elfread): Update.
9324 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9325 Change type.
9326 (dtrace_process_dof_probe, dtrace_process_dof)
9327 (dtrace_static_probe_ops::get_probe): Change type.
9328
02dc647e
TT
93292019-05-08 Tom Tromey <tom@tromey.com>
9330
9331 * xcoffread.c (struct xcoff_symfile_info): Rename from
9332 coff_symfile_info. Add initializers.
9333 (xcoff_objfile_data_key): Move lower. Change type.
9334 (XCOFF_DATA): Rewrite.
9335 (xcoff_free_info): Remove.
9336 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9337 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9338 (xcoff_initial_scan): Update.
9339
09232438
TT
93402019-05-08 Tom Tromey <tom@tromey.com>
9341
9342 * solib-svr4.c (struct svr4_info): Add initializers and
9343 destructor.
9344 <probes_table>: Now an htab_up.
9345 (solib_svr4_pspace_data): Change type.
9346 (free_probes_table): Simplify.
9347 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9348 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9349 (probes_table_remove_objfile_probes, register_solib_event_probe)
9350 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9351 (_initialize_svr4_solib): Update.
9352
7b4a314f
TT
93532019-05-08 Tom Tromey <tom@tromey.com>
9354
9355 * remote.c (remote_pspace_data): Change type.
9356 (remote_pspace_data_cleanup): Remove.
9357 (get_remote_exec_file, set_pspace_remote_exec_file)
9358 (_initialize_remote): Update.
9359
51d3063a
TT
93602019-05-08 Tom Tromey <tom@tromey.com>
9361
9362 * breakpoint.c (breakpoint_objfile_key): Change type.
9363 (get_breakpoint_objfile_data): Update.
9364 (free_breakpoint_objfile_data): Remove.
9365 (_initialize_breakpoint): Update.
9366
89fb8848
TT
93672019-05-08 Tom Tromey <tom@tromey.com>
9368
9369 * linux-tdep.c (struct linux_info): Add initializers.
9370 (linux_inferior_data): Move. Change type.
9371 (invalidate_linux_cache_inf): Update.
9372 (linux_inferior_data_cleanup): Remove.
9373 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9374
e9b89e2d
TT
93752019-05-08 Tom Tromey <tom@tromey.com>
9376
9377 * auxv.c (auxv_inferior_data): Move. Change type.
9378 (auxv_inferior_data_cleanup): Remove.
9379 (invalidate_auxv_cache_inf): Rewrite.
9380 (get_auxv_inferior_data, _initialize_auxv): Update.
9381
8c42777c
TT
93822019-05-08 Tom Tromey <tom@tromey.com>
9383
9384 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9385 (symfile_debug_objfile_data_key): Change type.
9386 (symfile_debug_installed, debug_qf_has_symbols)
9387 (debug_qf_find_last_source_symtab)
9388 (debug_qf_forget_cached_source_info)
9389 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9390 (debug_qf_print_stats, debug_qf_dump)
9391 (debug_qf_expand_symtabs_for_function)
9392 (debug_qf_expand_all_symtabs)
9393 (debug_qf_expand_symtabs_with_fullname)
9394 (debug_qf_map_matching_symbols)
9395 (debug_qf_expand_symtabs_matching)
9396 (debug_qf_find_pc_sect_compunit_symtab)
9397 (debug_qf_map_symbol_filenames)
9398 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9399 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9400 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9401 (debug_sym_read_linetable, debug_sym_relocate): Update.
9402 (symfile_debug_free_objfile): Remove.
9403 (install_symfile_debug_logging, _initialize_symfile_debug):
9404 Update.
9405
5bfd760d
TT
94062019-05-08 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9409 allocate_on_obstack.
9410 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9411 (get_dwarf2_per_objfile): Update.
9412 (set_dwarf2_per_objfile): Remove.
9413 (dwarf2_has_info, dwarf2_get_section_info): Update.
9414 (dwarf2_free_objfile): Remove.
9415 (_initialize_dwarf2_read): Update.
9416
e85e19b4
TT
94172019-05-08 Tom Tromey <tom@tromey.com>
9418
9419 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9420 initializers.
9421 <unsupported_script_warning_printed,
9422 script_not_found_warning_printed>: Now bool.
9423 (auto_load_pspace_data): Change type.
9424 (~auto_load_pspace_info): Rename from
9425 auto_load_pspace_data_cleanup.
9426 (get_auto_load_pspace_data, init_loaded_scripts_info)
9427 (clear_section_scripts, maybe_print_unsupported_script_warning)
9428 (maybe_print_script_not_found_warning, _initialize_auto_load):
9429 Update.
9430
f6aa7436
TT
94312019-05-08 Tom Tromey <tom@tromey.com>
9432
9433 * objfiles.c (objfile_pspace_info): Add destructor and
9434 initializers.
9435 (objfiles_pspace_data): Change type.
9436 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9437 (get_objfile_pspace_data): Update.
9438 (objfiles_bfd_data): Change type.
9439 (get_objfile_bfd_data): Update.
9440 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9441
6ae614f6
TT
94422019-05-08 Tom Tromey <tom@tromey.com>
9443
9444 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9445 Change type.
9446 (get_catch_syscall_inferior_data): Update.
9447 (catch_syscall_inferior_data_cleanup): Remove.
9448 (_initialize_break_catch_syscall): Update.
9449
6509b8eb
TT
94502019-05-08 Tom Tromey <tom@tromey.com>
9451
9452 * inflow.c (struct terminal_info): Add destructor and
9453 initializers.
9454 (inflow_inferior_data): Change type.
9455 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9456 (get_inflow_inferior_data, inflow_inferior_exit)
9457 (swap_terminal_info, _initialize_inflow): Update.
9458
35632941
TT
94592019-05-08 Tom Tromey <tom@tromey.com>
9460
9461 * target-dcache.c (target_dcache_cleanup): Remove.
9462 (target_dcache_aspace_key): Change type.
9463 (target_dcache_init_p, target_dcache_invalidate)
9464 (target_dcache_get, target_dcache_get_or_init)
9465 (_initialize_target_dcache): Update.
9466 * dcache.h (struct dcache_deleter): New.
9467
3017b94d
TT
94682019-05-08 Tom Tromey <tom@tromey.com>
9469
9470 * symtab.c (struct symbol_cache): Add destructor and
9471 initializers.
9472 (symbol_cache_key): Move. Change type.
9473 (make_symbol_cache, free_symbol_cache): Remove.
9474 (get_symbol_cache): Update.
9475 (symbol_cache_cleanup): Remove.
9476 (ALL_PSPACES, symbol_cache_flush)
9477 (maintenance_print_symbol_cache)
9478 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9479 Update.
9480
a32ad8c5
TT
94812019-05-08 Tom Tromey <tom@tromey.com>
9482
9483 * symtab.c (struct main_info): Add destructor and initializers.
9484 (main_progspace_key): Move. Change type.
9485 (get_main_info): Update.
9486 (main_info_cleanup): Remove.
9487 (_initialize_symtab): Update.
9488
5f6e90a0
TT
94892019-05-08 Tom Tromey <tom@tromey.com>
9490
9491 * registry.h (DECLARE_REGISTRY): Define the _key class.
9492
1bd0c6e4
AB
94932019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9494
9495 * NEWS: Merge two 'New commands' sections.
9496
2228ef77
XR
94972019-05-08 Joel Brobecker <brobecker@adacore.com>
9498
9499 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9500 parameter and use Ada language definition instead.
9501 (ada_val_print_ptr): Remove unused language parameter.
9502 (ada_val_print_num): Remove language parameter and use Ada language
9503 definition instead.
9504 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9505 parameter.
9506 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9507 parameter and use Ada language definition instead.
9508 (ada_val_print_1): Update all ada_val_print_xxx calls.
9509 Remove language parameter.
9510 (ada_val_print): Update ada_val_print_1 call.
9511
60fcc1c3
TT
95122019-05-08 Tom Tromey <tromey@adacore.com>
9513
9514 * remote.c (remote_hw_watchpoint_limit)
9515 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9516 Now static.
9517
ed2b7c17
TT
95182019-05-08 Tom Tromey <tromey@adacore.com>
9519
9520 * maint.c (_initialize_maint_cmds): Move initialization code to
9521 remote.c.
9522 (watchdog, show_watchdog): Move to remote.c.
9523 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9524 "watchdog" static.
9525 (_initialize_remote): Move initialization code from maint.c.
9526 * defs.h (watchdog): Don't declare.
9527
b0be6c91
TT
95282019-05-08 Tom Tromey <tromey@adacore.com>
9529
9530 * tui/tui-interp.c: Include main.h.
9531 * interps.c: Include main.h.
9532 * main.h (interpreter_p): Declare.
9533 * defs.h (interpreter_p): Don't declare.
9534
587ee17b
TT
95352019-05-08 Tom Tromey <tromey@adacore.com>
9536
9537 * dwarf2loc.c: Include dwarf2read.h.
9538 * defs.h (read_unsigned_leb128): Don't declare.
9539 * dwarf2read.h (read_unsigned_leb128): Declare.
9540
ca1df239
TT
95412019-05-08 Tom Tromey <tromey@adacore.com>
9542
9543 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9544 method.
9545
99f20f08
TT
95462019-05-08 Tom Tromey <tromey@adacore.com>
9547
9548 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9549 when no wrap column is set.
9550
80e55b13
TT
95512019-05-08 Tom Tromey <tromey@adacore.com>
9552
9553 * c-lang.c (c_get_string): Handle non-C-style arrays.
9554
9d3421af
TT
95552019-05-08 Tom Tromey <tromey@adacore.com>
9556
9557 * typeprint.c (print_offset_data::update): Print the bit offset,
9558 not the number of bits remaining.
9559
844333e2
TT
95602019-05-08 Tom Tromey <tromey@adacore.com>
9561
9562 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9563 padding at end of comment.
9564
988915ee
TT
95652019-05-08 Tom Tromey <tromey@adacore.com>
9566
9567 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9568 Compare main types.
9569
26bfd823
TT
95702019-05-06 Tom Tromey <tom@tromey.com>
9571
9572 * common/scoped_mmap.c: Include common-defs.h.
9573 * common/scoped_mmap.h: Don't include config.h.
9574
89055eaa
TT
95752019-05-04 Tom Tromey <tom@tromey.com>
9576
9577 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9578 (struct aarch64_call_info): Add initializers.
9579 <si>: Now a std::vector.
9580 (pass_on_stack, aarch64_push_dummy_call): Update.
9581
5da01df5
TT
95822019-05-04 Simon Marchi <simon.marchi@efficios.com>
9583 Tom Tromey <tom@tromey.com>
9584
9585 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9586 (ppc_threads): Now a std::vector. Now static.
9587 (hwdebug_find_thread_points_by_tid)
9588 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9589 Update.
9590
fbdf05a1
TT
95912019-05-04 Tom Tromey <tom@tromey.com>
9592
9593 * arc-tdep.c (arc_tdesc_init): Return bool.
9594
06d16ec9
TT
95952019-05-04 Tom Tromey <tom@tromey.com>
9596
9597 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9598 Use gdb_assert_not_reached.
9599
9c056022
TT
96002019-05-04 Tom Tromey <tom@tromey.com>
9601
9602 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9603 "false".
9604
fa9c2a59
TT
96052019-05-04 Tom Tromey <tom@tromey.com>
9606
9607 * arc-tdep.c (arc_tdesc_init): Use bool.
9608
e2eb806a
TT
96092019-05-04 Tom Tromey <tom@tromey.com>
9610
9611 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9612
6fe87677
TT
96132019-05-04 Tom Tromey <tom@tromey.com>
9614
9615 * cli/cli-cmds.c (valid_command_p): Return bool.
9616
7f008c9e
TT
96172019-05-04 Tom Tromey <tom@tromey.com>
9618
9619 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9620 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9621
b6484282
RT
96222019-05-04 Raul Tambre <raul@tambre.ee>
9623
9624 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9625 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9626 operator for comparison.
9627
af97b416
TT
96282019-05-04 Tom Tromey <tom@tromey.com>
9629
9630 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9631 (lookup_partial_symbol, print_partial_symbols)
9632 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9633 (psymbol_compare): Update.
9634 (add_psymbol_to_bcache): Clear the entire psymbol.
9635 (maintenance_check_psymtabs): Update.
9636 * psympriv.h (struct partial_symbol): Don't derive from
9637 general_symbol_info.
9638 <obj_section, unrelocated_address, address,
9639 set_unrelocated_address>: Update.
9640 <ginfo>: New member.
9641 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9642 (debug_names::write_psymbols): Update.
9643
9d6d4be8
TV
96442019-05-04 Tom de Vries <tdevries@suse.de>
9645
9646 * contrib/cc-with-tweaks.sh: Support -n arg.
9647
66452beb
PW
96482019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9649
9650 * corelow.c (core_target::detach): Ensure frame cache and
9651 register caches are cleared.
9652 inferior.c (exit_inferior_1): Likewise.
9653
bde09ab7
TT
96542019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9655 Tom Tromey <tom@tromey.com>
9656
9657 * dictionary.c (collate_pending_symbols_by_language): Remove
9658 "struct" from foreach.
9659 * symtab.c (lookup_global_symbol_from_objfile)
9660 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9661 foreach.
9662 * ser-tcp.c (net_open): Remove "struct" from foreach.
9663 * objfiles.c (objfile_relocate, objfile_rebase)
9664 (objfile_has_symbols): Remove "struct" from foreach.
9665 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9666 from foreach.
9667 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9668 foreach.
9669 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9670 "struct" from foreach.
9671 * ada-lang.c (create_excep_cond_exprs)
9672 (ada_exception_catchpoint_cond_string): Remove "struct" from
9673 foreach.
9674
222a8d25
TT
96752019-05-03 Tom Tromey <tromey@adacore.com>
9676
9677 * ada-exp.y (convert_char_literal): Check suffix of each
9678 enumerator.
9679
fcd60b84
DP
96802019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9681
9682 PR ada/21406:
9683 * ada-exp.y (yywrap): Don't define.
9684 * ada-lex.l (%option): Add noyywrap
9685 (yywrap): Remove.
9686
5f2459c2
EZ
96872019-05-03 Eli Zaretskii <eliz@gnu.org>
9688
353ea2d1
EZ
9689 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9690 _WIN32_WINNT to the XP level, unless already defined to a higher
9691 level.
9692
9693 * unittests/parse-connection-spec-selftests.c:
9694 * ser-tcp.c:
9695 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9696 override.
9697
5f2459c2
EZ
9698 * symfile.c (find_separate_debug_file): Remove colon from the
9699 drive spec of DOS/Windows file names of the target, so that the
9700 file name produced from DEBUGDIR and the target's directory will
9701 be valid on DOS/Windows systems.
9702
80062eb9
AB
97032019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * rust-lang.c (val_print_struct): Handle printing structures
9706 containing strings.
9707
b8c05e85
TT
97082019-05-02 Tom Tromey <tromey@adacore.com>
9709
9710 * valarith.c (_initialize_valarith): Remove.
9711
4504bbde
TT
97122019-05-01 Tom Tromey <tromey@adacore.com>
9713
9714 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9715 bitfields.
9716
d48e62f4
TT
97172019-05-01 Tom Tromey <tromey@adacore.com>
9718
9719 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9720 for big-endian copies.
9721
15f18d14
AT
97222019-04-30 Ali Tamur <tamur@google.com>
9723 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9724 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9725 (read_3_bytes): New function.
9726
ab4ee614
JB
97272019-04-30 Joel Brobecker <brobecker@adacore.com>
9728
9729 * windows-nat.c (main_thread_id): Delete.
9730 (handle_output_debug_string): Replace main_thread_id by
9731 current_event.dwThreadId.
9732 (fake_create_process): Likewise.
9733 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9734 Do not set main_thread_id.
9735 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9736 current_event.dwThreadId.
9737 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9738
8ed5b76e
JB
97392019-04-30 Joel Brobecker <brobecker@adacore.com>
9740
9741 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9742 Use current_event.dwThreadId instead of main_thread_id.
9743
2ff0a947
TT
97442019-04-30 Tom Tromey <tromey@adacore.com>
9745
9746 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9747 (create_excep_cond_exprs): Iterate over program spaces.
9748 (ada_exception_catchpoint_cond_string): Examine all minimal
9749 symbols for exception types.
9750
a776957c
TT
97512019-04-30 Tom Tromey <tromey@adacore.com>
9752
9753 PR c++/24470:
9754 * dwarf2read.c (process_structure_scope): Handle case where type
9755 has template parameters but no symbol was created.
9756
bc68014d
AB
97572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9758 Chris January <chris.january@arm.com>
9759
9760 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9761 qualifier.
9762 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9763
f1fdc960
AB
97642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9765
9766 * f-typeprint.c (f_print_type): Update rules for printing
9767 whitespace.
9768 (f_type_print_varspec_suffix): Likewise.
9769
bf7a4de1
AB
97702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9771 Chris January <chris.january@arm.com>
9772
9773 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9774 function arguments.
9775
bbe75b9d
AB
97762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9777
9778 * f-lang.c (build_fortran_types): Change name of void type to
9779 lower case.
9780 * f-typeprint.c (f_type_print_base): Print the name of the void
9781 type, rather than a fixed string.
9782 * f-valprint.c (f_decorations): Use lower case void string.
9783
1db455a7
AB
97842019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9785 Chris January <chris.january@arm.com>
9786
9787 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9788 types for Fortran.
9789
b6d03bb2
AB
97902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9791 Chris January <chris.january@arm.com>
9792 David Lecomber <david.lecomber@arm.com>
9793
9794 * f-exp.y (BINOP_INTRINSIC): New token.
9795 (exp): New parser rule handling BINOP_INTRINSIC.
9796 (f77_keywords): Add new builtin procedures.
9797 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9798 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9799 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9800 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9801 (print_unop_subexp_f): New function.
9802 (print_binop_subexp_f): New function.
9803 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9804 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9805 (dump_subexp_body_f): Likewise.
9806 (operator_check_f): Likewise.
9807 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9808 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9809
83228e93
AB
98102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9811
9812 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9813 UNOP_KIND.
9814 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9815 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9816 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9817 (operator_length_f): New fuction.
9818 (print_subexp_f): New function.
9819 (op_name_f): New function.
9820 (dump_subexp_body_f): New function.
9821 (operator_check_f): New function.
9822 (exp_descriptor_f): Replace standard expression handling functions
9823 with new functions.
9824 * gdb/fortran-operator.def: New file.
9825 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9826 * gdb/std-operator.def: Remove UNOP_KIND.
9827
6fdcd7cc
AB
98282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 * std-operator.def: Remove unbalanced, stray double quote
9831 character.
9832
2e62ab40
AB
98332019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9834 Chris January <chris.january@arm.com>
9835 Daniel Everett <daniel.everett@arm.com>
9836 Nick Forrington <nick.forrington@arm.com>
9837 Richard Bunt <richard.bunt@arm.com>
9838
9839 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9840 of depth when printing anonymous structs or unions.
9841 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9842 Don't print either the top-level value, or the children if the
9843 max-depth is exceeded.
9844 (ppscm_print_children): When printing the key of a map, allow one
9845 extra level of depth.
9846 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9847 print either the top-level value, or the children if the max-depth
9848 is exceeded.
9849 (print_children): When printing the key of a map, allow one extra
9850 level of depth.
9851 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9852 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9853 (user_print_options): Initialise max_depth field.
9854 (val_print_scalar_or_string_type_p): New function.
9855 (val_print): Check to see if the max depth has been reached.
9856 (val_print_check_max_depth): Define new function.
9857 (show_print_max_depth): New function.
9858 (_initialize_valprint): Add 'print max-depth' option.
9859 * valprint.h (struct value_print_options) <max_depth>: New field.
9860 (val_print_check_max_depth): Declare new function.
9861 * NEWS: Document new feature.
9862
4be290b2
AB
98632019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9864
9865 * ada-lang.c (ada_language_defn): Initialise new field.
9866 * c-lang.c (c_is_string_type_p): New function.
9867 (c_language_defn): Initialise new field.
9868 (cplus_language_defn): Initialise new field.
9869 (asm_language_defn): Initialise new field.
9870 (minimal_language_defn): Initialise new field.
9871 * c-lang.h (c_is_string_type_p): Declare new function.
9872 * d-lang.c (d_language_defn): Initialise new field.
9873 * f-lang.c (f_is_string_type_p): New function.
9874 (f_language_defn): Initialise new field.
9875 * go-lang.c (go_is_string_type_p): New function.
9876 (go_language_defn): Initialise new field.
9877 * language.c (default_is_string_type_p): New function.
9878 (unknown_language_defn): Initialise new field.
9879 (auto_language_defn): Initialise new field.
9880 * language.h (struct language_defn) <la_is_string_type_p>: New
9881 member variable.
9882 (default_is_string_type_p): Declare new function.
9883 * m2-lang.c (m2_language_defn): Initialise new field.
9884 * objc-lang.c (objc_language_defn): Initialise new field.
9885 * opencl-lang.c (opencl_language_defn): Initialise new field.
9886 * p-lang.c (pascal_is_string_type_p): New function.
9887 (pascal_language_defn): Initialise new field.
9888 * rust-lang.c (rust_is_string_type_p): New function.
9889 (rust_language_defn): Initialise new field.
9890
721b08c6
AB
98912019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9892
9893 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9894 New field.
9895 * ada-lang.c (ada_language_defn): Initialise new field.
9896 * c-lang.c (c_language_defn): Likewise.
9897 (cplus_language_defn): Likewise.
9898 (asm_language_defn): Likewise.
9899 (minimal_language_defn): Likewise.
9900 * d-lang.c (d_language_defn): Likewise.
9901 * f-lang.c (f_language_defn): Likewise.
9902 * go-lang.c (go_language_defn): Likewise.
9903 * language.c (unknown_language_defn): Likewise.
9904 (auto_language_defn): Likewise.
9905 * m2-lang.c (m2_language_defn): Likewise.
9906 * objc-lang.c (objc_language_defn): Likewise.
9907 * opencl-lang.c (opencl_language_defn): Likewise.
9908 * p-lang.c (pascal_language_defn): Likewise.
9909 * rust-lang.c (rust_language_defn): Likewise.
9910
fc913e53
AB
99112019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * ada-lang.c (ada_is_character_type): Change return type to bool.
9914 (ada_is_string_type): Likewise.
9915 * ada-lang.h (ada_is_character_type): Update declaration
9916 (ada_is_string_type): Likewise.
9917
fa731fa0
PW
99182019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9919
9920 Support style in 'frame|thread apply'
9921
9922 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9923 * record.c (record_start, record_stop): Update callers of
9924 execute_command_to_string with false.
9925 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9926 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9927 methods.
9928 (class string_file): New constructor with term_out parameter.
9929 Override methods term_out and can_emit_style_escape. New member
9930 term_out.
9931 (class stdio_file): Override can_emit_style_escape.
9932 (class tee_file): Override term_out and can_emit_style_escape.
9933 * utils.h (can_emit_style_escape): Remove.
9934 * utils.c (can_emit_style_escape): Likewise.
9935 Update all callers of can_emit_style_escape (SOMESTREAM) to
9936 SOMESTREAM->can_emit_style_escape.
9937 * source-cache.c (source_cache::get_source_lines): Likewise.
9938 * stack.c (frame_apply_command_count): Call execute_command_to_string
9939 passing the term_out characteristic of the current gdb_stdout.
9940 * thread.c (thr_try_catch_cmd): Likewise.
9941 * top.c (execute_command_to_string): pass term_out parameter
9942 to construct the string_file for the command output.
9943 * ui-file.c (term_cli_styling): New function (most code moved
9944 from utils.c can_emit_style_escape).
9945 (string_file::string_file, string_file::can_emit_style_escape,
9946 stdio_file::can_emit_style_escape, tee_file::term_out,
9947 tee_file::can_emit_style_escape): New functions.
9948
136afab8
PW
99492019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9950
9951 * NEWS: Mention the new set|show may-call-functions.
9952 * infcall.c (may_call_functions_p): New variable.
9953 (show_may_call_functions_p): New function.
9954 (call_function_by_hand_dummy): Throws an error if not
9955 may-call-functions.
9956 (_initialize_infcall): Call add_setshow_boolean_cmd for
9957 may-call-functions.
9958
725cbb63
KS
99592019-04-25 Keith Seitz <keiths@redhat.com>
9960
9961 PR c++/24367
9962 * cp-support.c (inspect_type): Don't attempt substitutions
9963 of symbol with the same name.
9964
3d1cbb78
TT
99652019-04-25 Tom Tromey <tromey@adacore.com>
9966
9967 PR gdb/24475:
9968 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9969 static.
9970
94aeb44b
TT
99712019-04-25 Tom Tromey <tromey@adacore.com>
9972
9973 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9974 rvalue reference.
9975 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9976 (gdb_xml_parser::parse): Use std::move.
9977 * python/python-internal.h (gdbpy_convert_exception): Take a const
9978 reference.
9979 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9980 std::move.
9981 * python/py-utils.c (gdbpy_convert_exception): Take a const
9982 reference.
9983 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9984 Use std::move.
9985 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9986 Use std::move.
9987 * mi/mi-main.c (mi_print_exception): Take a const reference.
9988 * main.c (handle_command_errors): Take a const reference.
9989 * linespec.c (parse_linespec): Use std::move.
9990 * infcall.c (run_inferior_call): Use std::move.
9991 (call_function_by_hand_dummy): Use std::move.
9992 * exec.c (try_open_exec_file): Use std::move.
9993 * exceptions.h (exception_print, exception_fprintf)
9994 (exception_print_same): Update.
9995 * exceptions.c (print_exception, exception_print)
9996 (exception_fprintf, exception_print_same): Change parameters to
9997 const reference.
9998 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9999 * common/new-op.c: Use std::move.
10000 * common/common-exceptions.h (struct gdb_exception): Add move
10001 constructor.
10002 (struct gdb_exception_error, struct gdb_exception_quit, struct
10003 gdb_quit_bad_alloc): Change constructor to move constructor.
10004 (throw_exception): Change parameter to rvalue reference.
10005 * common/common-exceptions.c (throw_exception): Take rvalue
10006 reference.
10007 * cli/cli-interp.c (safe_execute_command): Use std::move.
10008 * breakpoint.c (insert_bp_location, location_to_sals): Use
10009 std::move.
10010
680d7fd5
TT
100112019-04-25 Tom Tromey <tromey@adacore.com>
10012
10013 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10014 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10015 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10016 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10017 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10018 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10019 guile/scm-value.c: Use unpack.
10020 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10021 gdbscm_gdb_exception.
10022 (gdbscm_throw_gdb_exception): Likewise.
10023 (struct gdbscm_gdb_exception): New.
10024 (unpack): New function.
10025 (gdbscm_wrap): Use unpack.
10026
c6fdd8b2
TT
100272019-04-25 Tom Tromey <tromey@adacore.com>
10028
10029 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10030 (gdb_rl_callback_handler): Use std::move.
10031 * common/common-exceptions.h (struct gdb_exception): Add move
10032 assignment operator.
10033 (throw_exception_sjlj): Change "exception" to const reference.
10034 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10035 (throw_exception_sjlj): Change "exception" to const reference.
10036
cc06b668
TT
100372019-04-25 Tom Tromey <tromey@adacore.com>
10038
10039 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10040 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10041 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10042 Update.
10043 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10044 Update.
10045 * mi/mi-interp.c (mi_interp::exec): Update.
10046 * linespec.c (parse_linespec): Update.
10047 * infcall.c (run_inferior_call): Update.
10048 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10049 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10050 (gdbscm_lookup_global_symbol): Update.
10051 * guile/scm-param.c (gdbscm_parameter_value): Update.
10052 * guile/scm-frame.c (gdbscm_frame_read_register)
10053 (gdbscm_frame_read_var): Update.
10054 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10055 * exec.c (try_open_exec_file): Update.
10056 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10057 (gdb_rl_callback_handler): Update.
10058 * common/common-exceptions.h (exception_none): Don't declare.
10059 * common/common-exceptions.c (exception_none): Don't define.
10060 (struct catcher) <exception>: Update.
10061 * cli/cli-interp.c (safe_execute_command): Update.
10062 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10063
cf532bd1
AT
100642019-04-25 Ali Tamur <tamur@google.com>
10065
10066 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10067 (read_attribute_value): Likewise.
10068 (dwarf2_read_addr_index): Update comment.
10069 (read_str_index): Add DW_FORM_strx.
10070 (dwarf2_string_attr): Likewise.
10071 (dwarf2_const_value_attr): Likewise.
10072 (dump_die_shallow): Likewise.
10073 (dwarf2_fetch_constant_bytes): Likewise.
10074 (skip_form_bytes): Likewise.
10075 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10076
82433e3e
SDJ
100772019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10078
10079 PR corefiles/11608
10080 PR corefiles/18187
10081 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10082 OFFSET. Verify if current mapping contains an ELF header.
10083 (linux_find_memory_regions_full): Adjust call to
10084 dump_mapping_p.
10085
723adb65
SL
100862019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10087 Kang Li <kanglictf@gmail.com>
10088
10089 PR gdb/21600
10090
10091 * dwarf2-frame.c (read_initial_length): Be consistent about using
10092 unsigned representation of length.
10093 (decode_frame_entry_1): Likewise. Check for wraparound of
10094 end pointer as well as buffer overflow.
10095
596179f7
SDJ
100962019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10097
10098 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10099 "vq".
10100
a59240a4
TT
101012019-04-24 Tom Tromey <tromey@adacore.com>
10102
10103 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10104
f872fdbb
AB
101052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10106
10107 * s12z-tdep.c (s12z_unwind_pc): Delete.
10108 (s12z_unwind_sp): Delete.
10109 (s12z_gdbarch_init): Don't register deleted functions with
10110 gdbarch.
10111
b614e6f3
AB
101122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10113
10114 * rl78-tdep.c (rl78_unwind_sp): Delete.
10115 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10116
14faed38
AB
101172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10118
10119 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10120 (xstormy16_unwind_pc): Delete.
10121 (xstormy16_dummy_id): Delete.
10122 (xstormy16_gdbarch_init): Don't register deleted functions with
10123 gdbarch.
10124
541aad8a
AB
101252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10126
10127 * vax-tdep.c (vax_unwind_pc): Delete.
10128 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10129
29222070
AB
101302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * v850-tdep.c (v850_unwind_sp): Delete.
10133 (v850_unwind_pc): Delete.
10134 (v850_dummy_id): Delete.
10135 (v850_gdbarch_init): Don't register deleted functions with
10136 gdbarch.
10137
0f534d76
AB
101382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10141 (tilegx_unwind_pc): Delete.
10142 (tilegx_unwind_dummy_id): Delete.
10143 (tilegx_gdbarch_init): Don't register deleted functions with
10144 gdbarch.
10145
1ba7b7f9
AB
101462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10147
10148 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10149 (tic6x_dummy_id): Delete.
10150 (tic6x_gdbarch_init): Don't register deleted functions with
10151 gdbarch.
10152
d31f262c
AB
101532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10154
10155 * sparc-tdep.c (sparc_unwind_pc): Delete.
10156 (sparc32_gdbarch_init): Don't register deleted function with
10157 gdbarch.
10158
6d14d64d
AB
101592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10160
10161 * sh-tdep.c (sh_unwind_sp): Delete.
10162 (sh_unwind_pc): Delete.
10163 (sh_dummy_id): Delete.
10164 (sh_gdbarch_init): Don't register deleted functions with
10165 gdbarch.
10166
a40dde9d
AB
101672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10168
10169 * score-tdep.c (score_unwind_sp): Delete.
10170 (score_unwind_pc): Delete.
10171 (score_dummy_id): Delete.
10172 (score_gdbarch_init): Don't register deleted functions with
10173 gdbarch.
10174
47c47d69
AB
101752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10176
10177 * rx-tdep.c (rx_unwind_pc): Delete.
10178 (rx_unwind_sp): Delete.
10179 (rx_dummy_id): Delete.
10180 (rx_gdbarch_init): Don't register deleted functions with
10181 gdbarch. Update comment.
10182
833a4480
AB
101832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10184
10185 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10186 (rs6000_dummy_id): Delete.
10187 (rs6000_gdbarch_init): Don't register deleted functions with
10188 gdbarch.
10189
3f2cef49
AB
101902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * or1k-tdep.c (or1k_dummy_id): Delete.
10193 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10194
96acf884
AB
101952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * nios2-tdep.c (nios2_dummy_id): Delete.
10198 (nios2_unwind_sp): Delete.
10199 (nios2_gdbarch_init): Don't register deleted functions with
10200 gdbarch.
10201
ca0ab0aa
AB
102022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10203
10204 * nds32-tdep.c (nds32_dummy_id): Delete.
10205 (nds32_unwind_pc): Delete.
10206 (nds32_unwind_sp): Delete.
10207 (nds32_gdbarch_init): Don't register deleted functions with
10208 gdbarch.
10209
c8259044
AB
102102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10211
10212 * msp430-tdep.c (msp430_unwind_pc): Delete.
10213 (msp430_unwind_sp): Delete.
10214 (msp430_dummy_id): Delete.
10215 (msp430_gdbarch_init): Don't register deleted functions with
10216 gdbarch.
10217
27f113c8
AB
102182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10219
10220 * moxie-tdep.c (moxie_unwind_sp): Delete.
10221 (moxie_unwind_pc): Delete.
10222 (moxie_dummy_id): Delete.
10223 (moxie_gdbarch_init): Don't register deleted functions with
10224 gdbarch.
10225
aee6c3cd
AB
102262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10227
10228 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10229 (mn10300_unwind_pc): Delete.
10230 (mn10300_unwind_sp): Delete.
10231 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10232 mn10300_unwind_sp.
10233 (mn10300_frame_unwind_init): Don't register deleted functions with
10234 gdbarch.
10235
8e2b5aea
AB
102362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * mep-tdep.c (mep_unwind_pc): Delete.
10239 (mep_unwind_sp): Delete.
10240 (mep_dummy_id): Delete.
10241 (mep_gdbarch_init): Don't register deleted functions with
10242 gdbarch.
10243
43cf3ede
AB
102442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10247 (m68hc11_unwind_sp): Delete.
10248 (m68hc11_gdbarch_init): Don't register deleted functions with
10249 gdbarch.
10250
5e79b7bb
AB
102512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10252
10253 * m32r-tdep.c (m32r_unwind_sp): Delete.
10254 (m32r_unwind_pc): Delete.
10255 (m32r_dummy_id): Delete.
10256 (m32r_gdbarch_init): Don't register deleted functions with
10257 gdbarch.
10258
89b268d8
AB
102592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10260
10261 * m32c-tdep.c (m32c_unwind_pc): Delete.
10262 (m32c_unwind_sp): Delete.
10263 (m32c_dummy_id): Delete.
10264 (m32c_gdbarch_init): Don't register deleted functions with
10265 gdbarch.
10266
946c28d2
AB
102672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10268
10269 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10270 (lm32_unwind_pc): Delete.
10271 (lm32_dummy_id): Delete.
10272 (lm32_gdbarch_init): Don't register deleted functions with
10273 gdbarch.
10274
bf12844a
AB
102752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10276
10277 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10278 (iq2000_unwind_pc): Delete.
10279 (iq2000_dummy_id): Delete.
10280 (iq2000_gdbarch_init): Don't register deleted functions with
10281 gdbarch.
10282
ecbc06d2
AB
102832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10284
10285 * nds32-tdep.c (nds32_type_align): Delete.
10286 (nds32_push_dummy_call): Use type_align instead.
10287
030197b4
AB
102882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * arm-tdep.c (arm_type_align): Only handle vector override case.
10291 (arm_push_dummy_call): Use type_align.
10292 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10293
b907456c
AB
102942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10295
10296 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10297 case.
10298 (pass_on_stack): Use type_align.
10299 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10300 function.
10301
9e97ba43
TT
103022019-04-23 Tom Tromey <tromey@adacore.com>
10303
10304 * dwarf2read.c (line_header::file_name_at): Remove unused
10305 overload.
10306
6892f601
TV
103072019-04-23 Tom de Vries <tdevries@suse.de>
10308
10309 PR gdb/24438
10310 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10311 invocation.
10312
336d760d
AT
10313
103142019-03-27 Ali Tamur <tamur@google.com>
10315
10316 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10317 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10318 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10319 (dwarf_expr_context::get_addr_index): Likewise
10320 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10321 (symbol_needs_eval_context::get_addr_index): Likewise
10322 (disassemble_dwarf_expression): Add DW_OP_addrx
10323 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10324 (read_cutu_die_from_dwo): Update comment
10325 (skip_one_die): Add DW_FORM_addrx
10326 (read_attribute_value): Likewise
10327 (var_decode_location): Add DW_OP_addrx
10328 (dwarf2_const_value_attr): Add DW_FORM_addrx
10329 (dump_die_shallow): Likewise
10330 (dwarf2_fetch_constant_bytes): Likewise
10331 (decode_locdesc): Add DW_OP_addrx
10332 (skip_form_bytes): Add DW_FORM_addrx
10333
ad9d13f8
AT
103342019-04-22 Ali Tamur <tamur@google.com>
10335
10336 * MAINTAINERS (Write After Approval): Add self.
10337
d70cc3ba
SM
103382019-04-22 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10341 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10342 (open_symbol_file_object): Likewise.
10343 (svr4_default_sos): Add info parameter.
10344 (svr4_read_so_list): Likewise.
10345 (svr4_current_sos_direct): Adjust functions calls to pass down
10346 info.
10347 (svr4_current_sos_1): Add info parameter.
10348 (svr4_current_sos): Call get_svr4_info, pass info down to
10349 svr4_current_sos_1.
10350 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10351 get_svr4_info.
10352 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10353 get_svr4_info.
10354 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10355 to get_svr4_info.
10356 (probes_table_remove_objfile_probes): Likewise.
10357 (register_solib_event_probe): Add info parameter.
10358 (solist_update_incremental): Pass info parameter down to
10359 svr4_read_so_list.
10360 (disable_probes_interface): Add info parameter.
10361 (svr4_handle_solib_event): Pass current_program_space to
10362 get_svr4_info. Adjust disable_probes_interface cleanup.
10363 (svr4_create_probe_breakpoints): Add info parameter, pass it
10364 down to register_solib_event_probe.
10365 (svr4_create_solib_event_breakpoints): Add info parameter,
10366 pass it down to svr4_create_probe_breakpoints.
10367 (enable_break): Pass info down to
10368 svr4_create_solib_event_breakpoints.
10369 (svr4_solib_create_inferior_hook): Pass current_program_space to
10370 get_svr4_info.
10371 (svr4_clear_solib): Likewise.
10372
7905fc35
PA
103732019-04-22 Pedro Alves <palves@redhat.com>
10374
10375 * solib-svr4.c (svr4_free_objfile_observer): New.
10376 (probe_and_action::objfile): New field.
10377 (probes_table_htab_remove_objfile_probes)
10378 (probes_table_remove_objfile_probes): New functions.
10379 (register_solib_event_probe): Add 'objfile' parameter. Store it
10380 in the new probe_and_action. Don't store the probe in 'lookup'.
10381 (svr4_create_probe_breakpoints): Pass objfile to
10382 register_solib_event_probe.
10383 (_initialize_svr4_solib): Register a free_objfile observer.
10384
fb881986
TT
103852019-04-19 Tom Tromey <tom@tromey.com>
10386
10387 * common/queue.h: Remove.
10388
8732db6c
TT
103892019-04-19 Tom Tromey <tom@tromey.com>
10390
10391 * event-loop.c: Don't include "common/queue.h".
10392
97dfbadd
TT
103932019-04-19 Tom Tromey <tom@tromey.com>
10394
10395 * remote.c (remote_target): Use delete.
10396 * remote-notif.h: Include <list>, not "common/queue.h".
10397 (notif_client_p): Remove typedef.
10398 (remote_notif_state): Add constructor, destructor, initializer.
10399 <notif_queue>: Now a std::list.
10400 (remote_notif_state_xfree): Don't declare.
10401 * remote-notif.c (remote_notif_process, handle_notification)
10402 (remote_notif_state_allocate): Update.
10403 (~remote_notif_state): Rename from remote_notif_state_xfree.
10404
cf250e36
TT
104052019-04-19 Tom Tromey <tom@tromey.com>
10406
10407 * symfile.c (reread_symbols): Update.
10408 * objfiles.c (objfile_register_static_link)
10409 (objfile_lookup_static_link): Update
10410 (~objfile) Don't delete static_links.
10411 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10412
61f4b350
TT
104132019-04-19 Tom Tromey <tom@tromey.com>
10414
10415 * type-stack.h (struct type_stack) <insert>: Constify string.
10416 * type-stack.c (type_stack::insert): Constify string.
10417 * gdbtypes.h (lookup_template_type): Update.
10418 (address_space_name_to_int): Update.
10419 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10420 const.
10421 (lookup_template_type): Make name const.
10422 * c-exp.y: Update rules.
10423 (lex_one_token, classify_name, classify_inner_name)
10424 (c_print_token): Update.
10425 * p-exp.y: Update rules.
10426 (yylex): Update.
10427 * f-exp.y: Update rules.
10428 (yylex): Update.
10429 * d-exp.y: Update rules.
10430 (lex_one_token, classify_name, classify_inner_name): Update.
10431 * parse.c (write_dollar_variable, copy_name): Return std::string.
10432 * parser-defs.h (copy_name): Change return type.
10433 * m2-exp.y: Update rules.
10434 (yylex): Update.
10435 * go-exp.y (lex_one_token): Update.
10436 Update rules.
10437 (classify_unsafe_function, classify_packaged_name)
10438 (classify_name, yylex): Update.
10439
189b8c2e
ST
104402019-04-19 Sergei Trofimovich <siarheit@google.com>
10441
10442 * configure.ac: add --enable-source-highlight switch.
10443 * configure: Regenerate.
10444 * top.c (print_gdb_version): plumb --enable-source-highlight
10445 status to "show configuration".
10446
8ecb59f8
TT
104472019-04-19 Tom Tromey <tromey@adacore.com>
10448
10449 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10450 Check ADA_TYPE_P.
10451 (empty_record, ada_template_to_fixed_record_type_1)
10452 (template_to_static_fixed_type)
10453 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10454 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10455 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10456 macros.
10457
62160ec9
TT
104582019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10459
10460 PR symtab/24423:
10461 * source.c (print_source_lines_base): Advance "iter" when a
10462 control character is seen.
10463
f2ae8bc8
PW
104642019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10465
10466 * inferior.h (struct infcall_suspend_state_deleter):
10467 Catch exception in destructor to avoid crash.
10468
d563b953
PW
104692019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10470
10471 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10472 close to the add_com "shell".
10473
dc34c897
TT
104742019-04-18 Tom Tromey <tromey@adacore.com>
10475
10476 * process-stratum-target.h (class process_stratum_target)
10477 <stratum>: Add "final".
10478
a12e5744
TT
104792019-04-17 Tom Tromey <tromey@adacore.com>
10480
10481 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10482 against nullptr before use.
10483
a7e559cc
AH
104842019-04-17 Alan Hayward <alan.hayward@arm.com>
10485
10486 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10487
c01660c6
AB
104882019-04-17 Jim Wilson <jimw@sifive.com>
10489 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10492 code read might fail, assume 4-byte breakpoint in that case.
10493
4aa866af
LS
104942019-04-15 Leszek Swirski <leszeks@google.com>
10495
10496 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10497 rather than a hand-rolled POD check when checking for forced MEMORY
10498 classification.
10499
48574d91
AH
105002019-04-15 Alan Hayward <alan.hayward@arm.com>
10501
10502 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10503 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10504 function.
10505 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10506 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10507 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10508 declaration.
10509
4da037ef
AH
105102019-04-15 Alan Hayward <alan.hayward@arm.com>
10511
10512 * aarch64-linux-nat.c
10513 (aarch64_linux_nat_target::thread_architecture): Add override.
10514 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10515 each VQ.
10516
ccb8d7e8
AH
105172019-04-15 Alan Hayward <alan.hayward@arm.com>
10518
10519 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10520
35add35e
AB
105212019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10524 target types of size 96-bits, add some additional comments, and
10525 check that the builtin type we found was the correct size.
10526
51196bbc
EZ
105272019-04-12 Eli Zaretskii <eliz@gnu.org>
10528
10529 * utils.c (prompt_for_continue): Don't restore the styling at the
10530 end, as applied_style has the wrong value. This fixes styling in
10531 long lists of file names that are interrupted by the "Continue?"
10532 prompt.
10533
62253a61
AB
105342019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10535
10536 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10537 * c-lang.c (c_language_defn): Likewise.
10538 (cplus_language_defn): Likewise.
10539 (asm_language_defn): Likewise.
10540 (minimal_language_defn): Likewise.
10541 * d-lang.c (d_language_defn): Likewise.
10542 * f-lang.c (f_language_defn): Likewise.
10543 * go-lang.c (go_language_defn): Likewise.
10544 * language.c (unknown_language_defn): Likewise.
10545 (auto_language_defn): Likewise.
10546 * language.h (struct language_defn): Remove la_magic field.
10547 (LANG_MAGIC): Delete.
10548 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10549 * objc-lang.c (objc_language_defn): Likewise.
10550 * opencl-lang.c (opencl_language_defn): Likewise.
10551 * p-lang.c (pascal_language_defn): Likewise.
10552 * rust-lang.c (rust_language_defn): Likewise.
10553
a9158a86
AB
105542019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10555
10556 * riscv-tdep.c (riscv_type_align): New function.
10557 (riscv_type_alignment): Delete.
10558 (riscv_arg_location): Use 'type_align'.
10559 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10560
41077b66
AB
105612019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * gdbtypes.c (type_align): A struct with no non-static fields also
10564 has alignment of 1.
10565
9f0272f8
AB
105662019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10567
10568 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10569 component to 0.
10570 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10571 member.
10572 (riscv_struct_info::analyse): New implementation using new
10573 analyse_inner member function.
10574 (riscv_struct_info::field_offset): New member function.
10575 (riscv_struct_info::m_offsets): New member variable.
10576 (riscv_struct_info::analyse_inner): New private member function,
10577 takes the old implementation of riscv_struct_info::analyse but
10578 extended to track field offsets.
10579 (riscv_call_arg_struct): Update the struct folding special cases
10580 to handle cases where empty C++ structs, which are non-zero
10581 length, are found.
10582 (riscv_arg_location): Initialise the length of each location, a
10583 non-zero length now indicates the location is in use.
10584 (riscv_push_dummy_call): Allow for the first location having a
10585 non-zero offset when setting up arguments.
10586 (riscv_return_value): Likewise, but for return values.
10587
02cf60c7
TT
105882019-04-11 Tom Tromey <tromey@adacore.com>
10589
10590 * utils.c (internal_vproblem): Make "msg" const.
10591
68811f8f
AH
105922019-04-11 Alan Hayward <alan.hayward@arm.com>
10593
10594 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10595 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10596 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10597 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10598
3f52fdbc
KB
105992019-04-10 Kevin Buettner <kevinb@redhat.com>
10600
10601 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10602 function.
10603 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10604 of amd64_collect_native_gregset.
10605 (amd64_linux_nat_target::store_registers): Likewise.
10606
e9ad22ee
TT
106072019-04-10 Tom Tromey <tom@tromey.com>
10608
10609 * symtab.c (lookup_global_symbol_from_objfile)
10610 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10611 * objfiles.h (class separate_debug_iterator): New.
10612 (class separate_debug_range): New.
10613 (struct objfile) <separate_debug_objfiles>: New method.
10614 (objfile_separate_debug_iterate): Don't declare.
10615 * objfiles.c (separate_debug_iterator::operator++): Rename from
10616 objfile_separate_debug_iterate.
10617 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10618 iterator.
10619 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10620 iterator.
10621
ee371134
TT
106222019-04-10 Tom Tromey <tom@tromey.com>
10623
10624 * symfile.c (reread_symbols): Remove old comment.
10625 * objfiles.c (free_all_objfiles): Fix a typo.
10626
bf227d61
TT
106272019-04-10 Tom Tromey <tom@tromey.com>
10628
10629 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10630 * minsyms.c (lookup_minimal_symbol): Use foreach.
10631 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10632 (lookup_minimal_symbol_solib_trampoline): Likewise.
10633 * symfile.c (reread_symbols): Use foreach.
10634
8dc433a0
TT
106352019-04-09 Ivan Begert <ivanbegert@gmail.com>
10636 Tom Tromey <tromey@adacore.com>
10637
10638 PR rust/24414:
10639 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10640 (rust_lex_int_test): Change "value" to be LONGEST.
10641 (rust_lex_tests): Add test for long integer literal.
10642
9ab8741a
TT
106432019-04-09 Tom Tromey <tromey@adacore.com>
10644
10645 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10646 to bool.
10647 (extended_remote_target::attach): Update.
10648 (remote_target::remote_notice_new_inferior): Update.
10649 (remote_target::add_current_inferior_and_thread): Update.
10650 * inferior.c (exit_inferior_1): Use "false".
10651 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10652
e242fd12
SM
106532019-04-09 Simon Marchi <simon.marchi@efficios.com>
10654
9ca1957f 10655 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10656 the "start" command.
10657
2b0c8b01
KB
106582019-04-08 Kevin Buettner <kevinb@redhat.com>
10659
10660 * python/py-inferior.c (infpy_thread_from_thread_handle):
10661 Adjust comments to reflect renaming of thread_from_thread_handle
10662 to thread_from_handle. Adjust keywords. Fix type error message.
10663 (inferior_object_methods): Add thread_from_handle. Retain
10664 thread_from_thread_handle, but mark it as deprecated.
10665
50a82723
KB
106662019-04-08 Kevin Buettner <kevinb@redhat.com>
10667
10668 * gdbthread.h (find_thread_by_handle): Revise declaration.
10669 * thread.c (find_thread_by_handle): Likewise. Adjust
10670 implementation too.
10671 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10672 support for buffer objects as handles.
10673
cf63b016
KB
106742019-04-08 Kevin Buettner <kevinb@redhat.com>
10675
10676 * python/py-infthread.c (thpy_thread_handle): New function.
10677 (thread_object_methods): Register thpy_thread_handle.
10678
3d6c6204
KB
106792019-04-08 Kevin Buettner <kevinb@redhat.com>
10680
10681 * gdbthread.h (thread_to_thread_handle): Declare.
10682 * thread.c (gdbtypes.h): Include.
10683 (thread_to_thread_handle): New function.
10684
10685 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10686 (target_thread_info_to_thread_handle): Declare.
10687 * target.c (target_thread_info_to_thread_handle): New function.
10688 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10689 * target-delegates.c: Regenerate.
10690
10691 * linux-thread-db.c (class thread_db_target): Add method
10692 thread_info_to_thread_handle.
10693 (thread_db_target::thread_info_to_thread_handle): Define.
10694 * remote.c (class remote_target): Add new method
10695 thread_info_to_thread_handle.
10696 (remote_target::thread_info_to_thread_handle): Define.
10697
56be6ea8
PA
106982019-04-08 Pedro Alves <palves@redhat.com>
10699
10700 * common/common-exceptions.c (throw_exception): Don't create
10701 named object to throw; throw directly.
10702 (throw_it): Likewise. Don't initialize gdb_exception::message
10703 here, with new; pass FMT and AP to the ctor instead.
10704 * common/common-exceptions.h: Include <string>.
10705 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10706 const char *, va_list)): New ctor. Use std::make_shared.
10707 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10708 errors)): Delete.
10709 (gdb_exception_error::gdb_exception_error(enum errors, const char
10710 *, va_list)): New.
10711 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10712 Add assertion.
10713 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10714 errors)): Delete.
10715 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10716 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10717 Add assertion.
10718
eedc3f4f
TT
107192019-04-08 Tom Tromey <tom@tromey.com>
10720
10721 * valops.c (value_rtti_indirect_type): Replace throw_exception
10722 with throw.
10723 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10724 with throw.
10725 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10726 throw.
10727 * target.c (target_translate_tls_address): Replace throw_exception
10728 with throw.
10729 * stack.c (frame_apply_command_count): Replace throw_exception
10730 with throw.
10731 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10732 throw.
10733 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10734 with throw.
10735 * rs6000-tdep.c (rs6000_frame_cache)
10736 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10737 * remote.c: Replace throw_exception with throw.
10738 * record-full.c (record_full_message, record_full_wait_1)
10739 (record_full_restore): Replace throw_exception with throw.
10740 * record-btrace.c:
10741 (get_thread_current_frame_id, record_btrace_start_replaying)
10742 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10743 (cmd_record_btrace_start): Replace throw_exception with throw.
10744 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10745 throw.
10746 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10747 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10748 * linespec.c:
10749 (find_linespec_symbols): Replace throw_exception with throw.
10750 * infrun.c (displaced_step_prepare, resume): Replace
10751 throw_exception with throw.
10752 * infcmd.c (post_create_inferior): Replace throw_exception with
10753 throw.
10754 * inf-loop.c (inferior_event_handler): Replace throw_exception
10755 with throw.
10756 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10757 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10758 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10759 (get_prev_frame_always, get_frame_pc_if_available)
10760 (get_frame_address_in_block_if_available, get_frame_language):
10761 Replace throw_exception with throw.
10762 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10763 throw_exception with throw.
10764 * eval.c (fetch_subexp_value, evaluate_var_value)
10765 (evaluate_funcall, evaluate_subexp_standard): Replace
10766 throw_exception with throw.
10767 * dwarf2loc.c (call_site_find_chain)
10768 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10769 Replace throw_exception with throw.
10770 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10771 with throw.
10772 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10773 throw.
10774 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10775 * completer.c (complete_line_internal): Replace throw_exception
10776 with throw.
10777 * compile/compile-object-run.c (compile_object_run): Replace
10778 throw_exception with throw.
10779 * cli/cli-script.c (process_next_line): Replace throw_exception
10780 with throw.
10781 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10782 (btrace_enable, btrace_maint_update_pt_packets): Replace
10783 throw_exception with throw.
10784 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10785 throw_exception with throw.
10786 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10787 throw_exception with throw.
10788 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10789 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10790 * aarch64-tdep.c (aarch64_make_prologue_cache)
10791 (aarch64_make_stub_cache): Replace throw_exception with throw.
10792
26003a20
TT
107932019-04-08 Tom Tromey <tom@tromey.com>
10794
10795 * common/common-exceptions.c (throw_exception): Rename from
10796 throw_exception_cxx. Remove old copy. Make argument const.
10797 (throw_it): Create and throw exception objects directly.
10798 * common/common-exceptions.h (throw_exception): Make argument
10799 const.
10800 (struct gdb_exception_error): Add constructor.
10801 (struct gdb_exception_quit): Add constructor.
10802
d272eb37
TT
108032019-04-08 Tom Tromey <tom@tromey.com>
10804
10805 * common/common-exceptions.h (exception_rethrow): Don't declare.
10806 (TRY_SJLJ): Update comment.
10807 (TRY, CATCH, END_CATCH): Remove.
10808 * common/common-exceptions.c (exception_rethrow): Remove.
10809
230d2906
TT
108102019-04-08 Tom Tromey <tom@tromey.com>
10811
10812 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10813 Remove.
10814 (gdb_exception_error): Rename from
10815 gdb_exception_RETURN_MASK_ERROR.
10816 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10817 (gdb_quit_bad_alloc): Update.
10818 * aarch64-tdep.c: Update.
10819 * ada-lang.c: Update.
10820 * ada-typeprint.c: Update.
10821 * ada-valprint.c: Update.
10822 * amd64-tdep.c: Update.
10823 * arch-utils.c: Update.
10824 * break-catch-throw.c: Update.
10825 * breakpoint.c: Update.
10826 * btrace.c: Update.
10827 * c-varobj.c: Update.
10828 * cli/cli-cmds.c: Update.
10829 * cli/cli-interp.c: Update.
10830 * cli/cli-script.c: Update.
10831 * common/common-exceptions.c: Update.
10832 * common/new-op.c: Update.
10833 * common/selftest.c: Update.
10834 * compile/compile-c-symbols.c: Update.
10835 * compile/compile-cplus-symbols.c: Update.
10836 * compile/compile-object-load.c: Update.
10837 * compile/compile-object-run.c: Update.
10838 * completer.c: Update.
10839 * corelow.c: Update.
10840 * cp-abi.c: Update.
10841 * cp-support.c: Update.
10842 * cp-valprint.c: Update.
10843 * darwin-nat.c: Update.
10844 * disasm-selftests.c: Update.
10845 * dtrace-probe.c: Update.
10846 * dwarf-index-cache.c: Update.
10847 * dwarf-index-write.c: Update.
10848 * dwarf2-frame-tailcall.c: Update.
10849 * dwarf2-frame.c: Update.
10850 * dwarf2loc.c: Update.
10851 * dwarf2read.c: Update.
10852 * eval.c: Update.
10853 * event-loop.c: Update.
10854 * event-top.c: Update.
10855 * exec.c: Update.
10856 * f-valprint.c: Update.
10857 * fbsd-tdep.c: Update.
10858 * frame-unwind.c: Update.
10859 * frame.c: Update.
10860 * gdbtypes.c: Update.
10861 * gnu-v3-abi.c: Update.
10862 * guile/guile-internal.h: Update.
10863 * guile/scm-block.c: Update.
10864 * guile/scm-breakpoint.c: Update.
10865 * guile/scm-cmd.c: Update.
10866 * guile/scm-disasm.c: Update.
10867 * guile/scm-frame.c: Update.
10868 * guile/scm-lazy-string.c: Update.
10869 * guile/scm-math.c: Update.
10870 * guile/scm-param.c: Update.
10871 * guile/scm-ports.c: Update.
10872 * guile/scm-pretty-print.c: Update.
10873 * guile/scm-symbol.c: Update.
10874 * guile/scm-symtab.c: Update.
10875 * guile/scm-type.c: Update.
10876 * guile/scm-value.c: Update.
10877 * i386-linux-tdep.c: Update.
10878 * i386-tdep.c: Update.
10879 * inf-loop.c: Update.
10880 * infcall.c: Update.
10881 * infcmd.c: Update.
10882 * infrun.c: Update.
10883 * jit.c: Update.
10884 * language.c: Update.
10885 * linespec.c: Update.
10886 * linux-fork.c: Update.
10887 * linux-nat.c: Update.
10888 * linux-tdep.c: Update.
10889 * linux-thread-db.c: Update.
10890 * main.c: Update.
10891 * mi/mi-cmd-break.c: Update.
10892 * mi/mi-cmd-stack.c: Update.
10893 * mi/mi-interp.c: Update.
10894 * mi/mi-main.c: Update.
10895 * objc-lang.c: Update.
10896 * p-valprint.c: Update.
10897 * parse.c: Update.
10898 * ppc-linux-tdep.c: Update.
10899 * printcmd.c: Update.
10900 * python/py-arch.c: Update.
10901 * python/py-breakpoint.c: Update.
10902 * python/py-cmd.c: Update.
10903 * python/py-finishbreakpoint.c: Update.
10904 * python/py-frame.c: Update.
10905 * python/py-framefilter.c: Update.
10906 * python/py-gdb-readline.c: Update.
10907 * python/py-inferior.c: Update.
10908 * python/py-infthread.c: Update.
10909 * python/py-lazy-string.c: Update.
10910 * python/py-linetable.c: Update.
10911 * python/py-objfile.c: Update.
10912 * python/py-param.c: Update.
10913 * python/py-prettyprint.c: Update.
10914 * python/py-progspace.c: Update.
10915 * python/py-record-btrace.c: Update.
10916 * python/py-record.c: Update.
10917 * python/py-symbol.c: Update.
10918 * python/py-type.c: Update.
10919 * python/py-unwind.c: Update.
10920 * python/py-utils.c: Update.
10921 * python/py-value.c: Update.
10922 * python/python.c: Update.
10923 * record-btrace.c: Update.
10924 * record-full.c: Update.
10925 * remote-fileio.c: Update.
10926 * remote.c: Update.
10927 * riscv-tdep.c: Update.
10928 * rs6000-aix-tdep.c: Update.
10929 * rs6000-tdep.c: Update.
10930 * rust-exp.y: Update.
10931 * rust-lang.c: Update.
10932 * s390-tdep.c: Update.
10933 * selftest-arch.c: Update.
10934 * solib-dsbt.c: Update.
10935 * solib-frv.c: Update.
10936 * solib-spu.c: Update.
10937 * solib-svr4.c: Update.
10938 * solib.c: Update.
10939 * sparc64-linux-tdep.c: Update.
10940 * stack.c: Update.
10941 * symfile-mem.c: Update.
10942 * symmisc.c: Update.
10943 * target.c: Update.
10944 * thread.c: Update.
10945 * top.c: Update.
10946 * tracefile-tfile.c: Update.
10947 * tui/tui.c: Update.
10948 * typeprint.c: Update.
10949 * unittests/cli-utils-selftests.c: Update.
10950 * unittests/parse-connection-spec-selftests.c: Update.
10951 * valops.c: Update.
10952 * valprint.c: Update.
10953 * value.c: Update.
10954 * varobj.c: Update.
10955 * windows-nat.c: Update.
10956 * x86-linux-nat.c: Update.
10957 * xml-support.c: Update.
10958
a70b8144
TT
109592019-04-08 Tom Tromey <tom@tromey.com>
10960
10961 * xml-support.c: Use C++ exception handling.
10962 * x86-linux-nat.c: Use C++ exception handling.
10963 * windows-nat.c: Use C++ exception handling.
10964 * varobj.c: Use C++ exception handling.
10965 * value.c: Use C++ exception handling.
10966 * valprint.c: Use C++ exception handling.
10967 * valops.c: Use C++ exception handling.
10968 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10969 handling.
10970 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10971 * typeprint.c: Use C++ exception handling.
10972 * tui/tui.c: Use C++ exception handling.
10973 * tracefile-tfile.c: Use C++ exception handling.
10974 * top.c: Use C++ exception handling.
10975 * thread.c: Use C++ exception handling.
10976 * target.c: Use C++ exception handling.
10977 * symmisc.c: Use C++ exception handling.
10978 * symfile-mem.c: Use C++ exception handling.
10979 * stack.c: Use C++ exception handling.
10980 * sparc64-linux-tdep.c: Use C++ exception handling.
10981 * solib.c: Use C++ exception handling.
10982 * solib-svr4.c: Use C++ exception handling.
10983 * solib-spu.c: Use C++ exception handling.
10984 * solib-frv.c: Use C++ exception handling.
10985 * solib-dsbt.c: Use C++ exception handling.
10986 * selftest-arch.c: Use C++ exception handling.
10987 * s390-tdep.c: Use C++ exception handling.
10988 * rust-lang.c: Use C++ exception handling.
10989 * rust-exp.y: Use C++ exception handling.
10990 * rs6000-tdep.c: Use C++ exception handling.
10991 * rs6000-aix-tdep.c: Use C++ exception handling.
10992 * riscv-tdep.c: Use C++ exception handling.
10993 * remote.c: Use C++ exception handling.
10994 * remote-fileio.c: Use C++ exception handling.
10995 * record-full.c: Use C++ exception handling.
10996 * record-btrace.c: Use C++ exception handling.
10997 * python/python.c: Use C++ exception handling.
10998 * python/py-value.c: Use C++ exception handling.
10999 * python/py-utils.c: Use C++ exception handling.
11000 * python/py-unwind.c: Use C++ exception handling.
11001 * python/py-type.c: Use C++ exception handling.
11002 * python/py-symbol.c: Use C++ exception handling.
11003 * python/py-record.c: Use C++ exception handling.
11004 * python/py-record-btrace.c: Use C++ exception handling.
11005 * python/py-progspace.c: Use C++ exception handling.
11006 * python/py-prettyprint.c: Use C++ exception handling.
11007 * python/py-param.c: Use C++ exception handling.
11008 * python/py-objfile.c: Use C++ exception handling.
11009 * python/py-linetable.c: Use C++ exception handling.
11010 * python/py-lazy-string.c: Use C++ exception handling.
11011 * python/py-infthread.c: Use C++ exception handling.
11012 * python/py-inferior.c: Use C++ exception handling.
11013 * python/py-gdb-readline.c: Use C++ exception handling.
11014 * python/py-framefilter.c: Use C++ exception handling.
11015 * python/py-frame.c: Use C++ exception handling.
11016 * python/py-finishbreakpoint.c: Use C++ exception handling.
11017 * python/py-cmd.c: Use C++ exception handling.
11018 * python/py-breakpoint.c: Use C++ exception handling.
11019 * python/py-arch.c: Use C++ exception handling.
11020 * printcmd.c: Use C++ exception handling.
11021 * ppc-linux-tdep.c: Use C++ exception handling.
11022 * parse.c: Use C++ exception handling.
11023 * p-valprint.c: Use C++ exception handling.
11024 * objc-lang.c: Use C++ exception handling.
11025 * mi/mi-main.c: Use C++ exception handling.
11026 * mi/mi-interp.c: Use C++ exception handling.
11027 * mi/mi-cmd-stack.c: Use C++ exception handling.
11028 * mi/mi-cmd-break.c: Use C++ exception handling.
11029 * main.c: Use C++ exception handling.
11030 * linux-thread-db.c: Use C++ exception handling.
11031 * linux-tdep.c: Use C++ exception handling.
11032 * linux-nat.c: Use C++ exception handling.
11033 * linux-fork.c: Use C++ exception handling.
11034 * linespec.c: Use C++ exception handling.
11035 * language.c: Use C++ exception handling.
11036 * jit.c: Use C++ exception handling.
11037 * infrun.c: Use C++ exception handling.
11038 * infcmd.c: Use C++ exception handling.
11039 * infcall.c: Use C++ exception handling.
11040 * inf-loop.c: Use C++ exception handling.
11041 * i386-tdep.c: Use C++ exception handling.
11042 * i386-linux-tdep.c: Use C++ exception handling.
11043 * guile/scm-value.c: Use C++ exception handling.
11044 * guile/scm-type.c: Use C++ exception handling.
11045 * guile/scm-symtab.c: Use C++ exception handling.
11046 * guile/scm-symbol.c: Use C++ exception handling.
11047 * guile/scm-pretty-print.c: Use C++ exception handling.
11048 * guile/scm-ports.c: Use C++ exception handling.
11049 * guile/scm-param.c: Use C++ exception handling.
11050 * guile/scm-math.c: Use C++ exception handling.
11051 * guile/scm-lazy-string.c: Use C++ exception handling.
11052 * guile/scm-frame.c: Use C++ exception handling.
11053 * guile/scm-disasm.c: Use C++ exception handling.
11054 * guile/scm-cmd.c: Use C++ exception handling.
11055 * guile/scm-breakpoint.c: Use C++ exception handling.
11056 * guile/scm-block.c: Use C++ exception handling.
11057 * guile/guile-internal.h: Use C++ exception handling.
11058 * gnu-v3-abi.c: Use C++ exception handling.
11059 * gdbtypes.c: Use C++ exception handling.
11060 * frame.c: Use C++ exception handling.
11061 * frame-unwind.c: Use C++ exception handling.
11062 * fbsd-tdep.c: Use C++ exception handling.
11063 * f-valprint.c: Use C++ exception handling.
11064 * exec.c: Use C++ exception handling.
11065 * event-top.c: Use C++ exception handling.
11066 * event-loop.c: Use C++ exception handling.
11067 * eval.c: Use C++ exception handling.
11068 * dwarf2read.c: Use C++ exception handling.
11069 * dwarf2loc.c: Use C++ exception handling.
11070 * dwarf2-frame.c: Use C++ exception handling.
11071 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11072 * dwarf-index-write.c: Use C++ exception handling.
11073 * dwarf-index-cache.c: Use C++ exception handling.
11074 * dtrace-probe.c: Use C++ exception handling.
11075 * disasm-selftests.c: Use C++ exception handling.
11076 * darwin-nat.c: Use C++ exception handling.
11077 * cp-valprint.c: Use C++ exception handling.
11078 * cp-support.c: Use C++ exception handling.
11079 * cp-abi.c: Use C++ exception handling.
11080 * corelow.c: Use C++ exception handling.
11081 * completer.c: Use C++ exception handling.
11082 * compile/compile-object-run.c: Use C++ exception handling.
11083 * compile/compile-object-load.c: Use C++ exception handling.
11084 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11085 * compile/compile-c-symbols.c: Use C++ exception handling.
11086 * common/selftest.c: Use C++ exception handling.
11087 * common/new-op.c: Use C++ exception handling.
11088 * cli/cli-script.c: Use C++ exception handling.
11089 * cli/cli-interp.c: Use C++ exception handling.
11090 * cli/cli-cmds.c: Use C++ exception handling.
11091 * c-varobj.c: Use C++ exception handling.
11092 * btrace.c: Use C++ exception handling.
11093 * breakpoint.c: Use C++ exception handling.
11094 * break-catch-throw.c: Use C++ exception handling.
11095 * arch-utils.c: Use C++ exception handling.
11096 * amd64-tdep.c: Use C++ exception handling.
11097 * ada-valprint.c: Use C++ exception handling.
11098 * ada-typeprint.c: Use C++ exception handling.
11099 * ada-lang.c: Use C++ exception handling.
11100 * aarch64-tdep.c: Use C++ exception handling.
11101
3d6e9d23
TT
111022019-04-08 Tom Tromey <tom@tromey.com>
11103
11104 * xml-support.c (gdb_xml_parser::parse): Update.
11105 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11106 * value.c (show_convenience): Update.
11107 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11108 (test_parse_flags_qcs): Update.
11109 * thread.c (thr_try_catch_cmd): Update.
11110 * target.c (target_translate_tls_address): Update.
11111 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11112 (info_frame_command_core, frame_apply_command_count): Update.
11113 * rust-exp.y (rust_lex_exception_test): Update.
11114 * riscv-tdep.c (riscv_print_one_register_info): Update.
11115 * remote.c (remote_target::enable_btrace): Update.
11116 * record-btrace.c (record_btrace_enable_warn): Update.
11117 * python/py-utils.c (gdbpy_convert_exception): Update.
11118 * printcmd.c (do_one_display, print_variable_and_value): Update.
11119 * mi/mi-main.c (mi_print_exception): Update.
11120 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11121 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11122 * linux-nat.c (linux_nat_target::attach): Update.
11123 * linux-fork.c (class scoped_switch_fork_info): Update.
11124 * infrun.c (displaced_step_prepare): Update.
11125 * infcall.c (call_function_by_hand_dummy): Update.
11126 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11127 * gnu-v3-abi.c (print_one_vtable): Update.
11128 * frame.c (get_prev_frame_always): Update.
11129 * f-valprint.c (info_common_command_for_block): Update.
11130 * exec.c (try_open_exec_file): Update.
11131 * exceptions.c (print_exception, exception_print)
11132 (exception_fprintf, exception_print_same): Update.
11133 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11134 * dwarf-index-cache.c (index_cache::store)
11135 (index_cache::lookup_gdb_index): Update.
11136 * darwin-nat.c (maybe_cache_shell): Update.
11137 * cp-valprint.c (cp_print_value_fields): Update.
11138 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11139 (gcc_cplus_symbol_address): Update.
11140 * compile/compile-c-symbols.c (gcc_convert_symbol)
11141 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11142 * common/selftest.c: Update.
11143 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11144 a std::string.
11145 (exception_try_scope_entry, exception_try_scope_exit): Don't
11146 declare.
11147 (struct exception_try_scope): Remove.
11148 (TRY): Don't use exception_try_scope.
11149 (struct gdb_exception): Add constructor, operator=.
11150 <what>: New method.
11151 (struct gdb_exception_RETURN_MASK_ALL)
11152 (struct gdb_exception_RETURN_MASK_ERROR)
11153 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11154 (struct gdb_quit_bad_alloc): Update.
11155 * common/common-exceptions.c (exception_none): Change
11156 initializer.
11157 (struct catcher) <state, exception>: Initialize inline.
11158 <prev>: Remove member.
11159 (current_catcher): Remove.
11160 (catchers): New global.
11161 (exceptions_state_mc_init): Simplify.
11162 (catcher_pop): Remove.
11163 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11164 (try_scope_depth, exception_try_scope_entry)
11165 (exception_try_scope_exit): Remove.
11166 (throw_exception_sjlj): Update.
11167 (exception_messages, exception_messages_size): Remove.
11168 (throw_it): Simplify.
11169 (gdb_exception_sliced_copy): Remove.
11170 (throw_exception_cxx): Update.
11171 * cli/cli-script.c (script_from_file): Update.
11172 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11173 Update.
11174 * ada-valprint.c (ada_val_print): Update.
11175 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11176 (create_excep_cond_exprs): Update.
11177
c5c10118
TT
111782019-04-08 Tom Tromey <tom@tromey.com>
11179
11180 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11181 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11182 (TRY, CATCH, END_CATCH): Remove some definitions.
11183 * common/common-exceptions.c: Don't use GDB_XCPT.
11184 (catcher_list_size): Remove.
11185 (throw_exception, throw_it): Simplify.
11186
4de283e4
TT
111872019-04-05 Tom Tromey <tom@tromey.com>
11188
11189 Revert the header-sorting patch.
11190 * ft32-tdep.c: Revert.
11191 * frv-tdep.c: Revert.
11192 * frv-linux-tdep.c: Revert.
11193 * frame.c: Revert.
11194 * frame-unwind.c: Revert.
11195 * frame-base.c: Revert.
11196 * fork-child.c: Revert.
11197 * findvar.c: Revert.
11198 * findcmd.c: Revert.
11199 * filesystem.c: Revert.
11200 * filename-seen-cache.h: Revert.
11201 * filename-seen-cache.c: Revert.
11202 * fbsd-tdep.c: Revert.
11203 * fbsd-nat.h: Revert.
11204 * fbsd-nat.c: Revert.
11205 * f-valprint.c: Revert.
11206 * f-typeprint.c: Revert.
11207 * f-lang.c: Revert.
11208 * extension.h: Revert.
11209 * extension.c: Revert.
11210 * extension-priv.h: Revert.
11211 * expprint.c: Revert.
11212 * exec.h: Revert.
11213 * exec.c: Revert.
11214 * exceptions.c: Revert.
11215 * event-top.c: Revert.
11216 * event-loop.c: Revert.
11217 * eval.c: Revert.
11218 * elfread.c: Revert.
11219 * dwarf2read.h: Revert.
11220 * dwarf2read.c: Revert.
11221 * dwarf2loc.c: Revert.
11222 * dwarf2expr.h: Revert.
11223 * dwarf2expr.c: Revert.
11224 * dwarf2-frame.c: Revert.
11225 * dwarf2-frame-tailcall.c: Revert.
11226 * dwarf-index-write.h: Revert.
11227 * dwarf-index-write.c: Revert.
11228 * dwarf-index-common.c: Revert.
11229 * dwarf-index-cache.h: Revert.
11230 * dwarf-index-cache.c: Revert.
11231 * dummy-frame.c: Revert.
11232 * dtrace-probe.c: Revert.
11233 * disasm.h: Revert.
11234 * disasm.c: Revert.
11235 * disasm-selftests.c: Revert.
11236 * dictionary.c: Revert.
11237 * dicos-tdep.c: Revert.
11238 * demangle.c: Revert.
11239 * dcache.h: Revert.
11240 * dcache.c: Revert.
11241 * darwin-nat.h: Revert.
11242 * darwin-nat.c: Revert.
11243 * darwin-nat-info.c: Revert.
11244 * d-valprint.c: Revert.
11245 * d-namespace.c: Revert.
11246 * d-lang.c: Revert.
11247 * ctf.c: Revert.
11248 * csky-tdep.c: Revert.
11249 * csky-linux-tdep.c: Revert.
11250 * cris-tdep.c: Revert.
11251 * cris-linux-tdep.c: Revert.
11252 * cp-valprint.c: Revert.
11253 * cp-support.c: Revert.
11254 * cp-namespace.c: Revert.
11255 * cp-abi.c: Revert.
11256 * corelow.c: Revert.
11257 * corefile.c: Revert.
11258 * continuations.c: Revert.
11259 * completer.h: Revert.
11260 * completer.c: Revert.
11261 * complaints.c: Revert.
11262 * coffread.c: Revert.
11263 * coff-pe-read.c: Revert.
11264 * cli-out.h: Revert.
11265 * cli-out.c: Revert.
11266 * charset.c: Revert.
11267 * c-varobj.c: Revert.
11268 * c-valprint.c: Revert.
11269 * c-typeprint.c: Revert.
11270 * c-lang.c: Revert.
11271 * buildsym.c: Revert.
11272 * buildsym-legacy.c: Revert.
11273 * build-id.h: Revert.
11274 * build-id.c: Revert.
11275 * btrace.c: Revert.
11276 * bsd-uthread.c: Revert.
11277 * breakpoint.h: Revert.
11278 * breakpoint.c: Revert.
11279 * break-catch-throw.c: Revert.
11280 * break-catch-syscall.c: Revert.
11281 * break-catch-sig.c: Revert.
11282 * blockframe.c: Revert.
11283 * block.c: Revert.
11284 * bfin-tdep.c: Revert.
11285 * bfin-linux-tdep.c: Revert.
11286 * bfd-target.c: Revert.
11287 * bcache.c: Revert.
11288 * ax-general.c: Revert.
11289 * ax-gdb.h: Revert.
11290 * ax-gdb.c: Revert.
11291 * avr-tdep.c: Revert.
11292 * auxv.c: Revert.
11293 * auto-load.c: Revert.
11294 * arm-wince-tdep.c: Revert.
11295 * arm-tdep.c: Revert.
11296 * arm-symbian-tdep.c: Revert.
11297 * arm-pikeos-tdep.c: Revert.
11298 * arm-obsd-tdep.c: Revert.
11299 * arm-nbsd-tdep.c: Revert.
11300 * arm-nbsd-nat.c: Revert.
11301 * arm-linux-tdep.c: Revert.
11302 * arm-linux-nat.c: Revert.
11303 * arm-fbsd-tdep.c: Revert.
11304 * arm-fbsd-nat.c: Revert.
11305 * arm-bsd-tdep.c: Revert.
11306 * arch-utils.c: Revert.
11307 * arc-tdep.c: Revert.
11308 * arc-newlib-tdep.c: Revert.
11309 * annotate.h: Revert.
11310 * annotate.c: Revert.
11311 * amd64-windows-tdep.c: Revert.
11312 * amd64-windows-nat.c: Revert.
11313 * amd64-tdep.c: Revert.
11314 * amd64-sol2-tdep.c: Revert.
11315 * amd64-obsd-tdep.c: Revert.
11316 * amd64-obsd-nat.c: Revert.
11317 * amd64-nbsd-tdep.c: Revert.
11318 * amd64-nbsd-nat.c: Revert.
11319 * amd64-nat.c: Revert.
11320 * amd64-linux-tdep.c: Revert.
11321 * amd64-linux-nat.c: Revert.
11322 * amd64-fbsd-tdep.c: Revert.
11323 * amd64-fbsd-nat.c: Revert.
11324 * amd64-dicos-tdep.c: Revert.
11325 * amd64-darwin-tdep.c: Revert.
11326 * amd64-bsd-nat.c: Revert.
11327 * alpha-tdep.c: Revert.
11328 * alpha-obsd-tdep.c: Revert.
11329 * alpha-nbsd-tdep.c: Revert.
11330 * alpha-mdebug-tdep.c: Revert.
11331 * alpha-linux-tdep.c: Revert.
11332 * alpha-linux-nat.c: Revert.
11333 * alpha-bsd-tdep.c: Revert.
11334 * alpha-bsd-nat.c: Revert.
11335 * aix-thread.c: Revert.
11336 * agent.c: Revert.
11337 * addrmap.c: Revert.
11338 * ada-varobj.c: Revert.
11339 * ada-valprint.c: Revert.
11340 * ada-typeprint.c: Revert.
11341 * ada-tasks.c: Revert.
11342 * ada-lang.c: Revert.
11343 * aarch64-tdep.c: Revert.
11344 * aarch64-ravenscar-thread.c: Revert.
11345 * aarch64-newlib-tdep.c: Revert.
11346 * aarch64-linux-tdep.c: Revert.
11347 * aarch64-linux-nat.c: Revert.
11348 * aarch64-fbsd-tdep.c: Revert.
11349 * aarch64-fbsd-nat.c: Revert.
11350 * aarch32-linux-nat.c: Revert.
11351
d55e5aa6
TT
113522019-04-05 Tom Tromey <tom@tromey.com>
11353
11354 * ft32-tdep.c: Sort headers.
11355 * frv-tdep.c: Sort headers.
11356 * frv-linux-tdep.c: Sort headers.
11357 * frame.c: Sort headers.
11358 * frame-unwind.c: Sort headers.
11359 * frame-base.c: Sort headers.
11360 * fork-child.c: Sort headers.
11361 * findvar.c: Sort headers.
11362 * findcmd.c: Sort headers.
11363 * filesystem.c: Sort headers.
11364 * filename-seen-cache.h: Sort headers.
11365 * filename-seen-cache.c: Sort headers.
11366 * fbsd-tdep.c: Sort headers.
11367 * fbsd-nat.h: Sort headers.
11368 * fbsd-nat.c: Sort headers.
11369 * f-valprint.c: Sort headers.
11370 * f-typeprint.c: Sort headers.
11371 * f-lang.c: Sort headers.
11372 * extension.h: Sort headers.
11373 * extension.c: Sort headers.
11374 * extension-priv.h: Sort headers.
11375 * expprint.c: Sort headers.
11376 * exec.h: Sort headers.
11377 * exec.c: Sort headers.
11378 * exceptions.c: Sort headers.
11379 * event-top.c: Sort headers.
11380 * event-loop.c: Sort headers.
11381 * eval.c: Sort headers.
11382 * elfread.c: Sort headers.
11383 * dwarf2read.h: Sort headers.
11384 * dwarf2read.c: Sort headers.
11385 * dwarf2loc.c: Sort headers.
11386 * dwarf2expr.h: Sort headers.
11387 * dwarf2expr.c: Sort headers.
11388 * dwarf2-frame.c: Sort headers.
11389 * dwarf2-frame-tailcall.c: Sort headers.
11390 * dwarf-index-write.h: Sort headers.
11391 * dwarf-index-write.c: Sort headers.
11392 * dwarf-index-common.c: Sort headers.
11393 * dwarf-index-cache.h: Sort headers.
11394 * dwarf-index-cache.c: Sort headers.
11395 * dummy-frame.c: Sort headers.
11396 * dtrace-probe.c: Sort headers.
11397 * disasm.h: Sort headers.
11398 * disasm.c: Sort headers.
11399 * disasm-selftests.c: Sort headers.
11400 * dictionary.c: Sort headers.
11401 * dicos-tdep.c: Sort headers.
11402 * demangle.c: Sort headers.
11403 * dcache.h: Sort headers.
11404 * dcache.c: Sort headers.
11405 * darwin-nat.h: Sort headers.
11406 * darwin-nat.c: Sort headers.
11407 * darwin-nat-info.c: Sort headers.
11408 * d-valprint.c: Sort headers.
11409 * d-namespace.c: Sort headers.
11410 * d-lang.c: Sort headers.
11411 * ctf.c: Sort headers.
11412 * csky-tdep.c: Sort headers.
11413 * csky-linux-tdep.c: Sort headers.
11414 * cris-tdep.c: Sort headers.
11415 * cris-linux-tdep.c: Sort headers.
11416 * cp-valprint.c: Sort headers.
11417 * cp-support.c: Sort headers.
11418 * cp-namespace.c: Sort headers.
11419 * cp-abi.c: Sort headers.
11420 * corelow.c: Sort headers.
11421 * corefile.c: Sort headers.
11422 * continuations.c: Sort headers.
11423 * completer.h: Sort headers.
11424 * completer.c: Sort headers.
11425 * complaints.c: Sort headers.
11426 * coffread.c: Sort headers.
11427 * coff-pe-read.c: Sort headers.
11428 * cli-out.h: Sort headers.
11429 * cli-out.c: Sort headers.
11430 * charset.c: Sort headers.
11431 * c-varobj.c: Sort headers.
11432 * c-valprint.c: Sort headers.
11433 * c-typeprint.c: Sort headers.
11434 * c-lang.c: Sort headers.
11435 * buildsym.c: Sort headers.
11436 * buildsym-legacy.c: Sort headers.
11437 * build-id.h: Sort headers.
11438 * build-id.c: Sort headers.
11439 * btrace.c: Sort headers.
11440 * bsd-uthread.c: Sort headers.
11441 * breakpoint.h: Sort headers.
11442 * breakpoint.c: Sort headers.
11443 * break-catch-throw.c: Sort headers.
11444 * break-catch-syscall.c: Sort headers.
11445 * break-catch-sig.c: Sort headers.
11446 * blockframe.c: Sort headers.
11447 * block.c: Sort headers.
11448 * bfin-tdep.c: Sort headers.
11449 * bfin-linux-tdep.c: Sort headers.
11450 * bfd-target.c: Sort headers.
11451 * bcache.c: Sort headers.
11452 * ax-general.c: Sort headers.
11453 * ax-gdb.h: Sort headers.
11454 * ax-gdb.c: Sort headers.
11455 * avr-tdep.c: Sort headers.
11456 * auxv.c: Sort headers.
11457 * auto-load.c: Sort headers.
11458 * arm-wince-tdep.c: Sort headers.
11459 * arm-tdep.c: Sort headers.
11460 * arm-symbian-tdep.c: Sort headers.
11461 * arm-pikeos-tdep.c: Sort headers.
11462 * arm-obsd-tdep.c: Sort headers.
11463 * arm-nbsd-tdep.c: Sort headers.
11464 * arm-nbsd-nat.c: Sort headers.
11465 * arm-linux-tdep.c: Sort headers.
11466 * arm-linux-nat.c: Sort headers.
11467 * arm-fbsd-tdep.c: Sort headers.
11468 * arm-fbsd-nat.c: Sort headers.
11469 * arm-bsd-tdep.c: Sort headers.
11470 * arch-utils.c: Sort headers.
11471 * arc-tdep.c: Sort headers.
11472 * arc-newlib-tdep.c: Sort headers.
11473 * annotate.h: Sort headers.
11474 * annotate.c: Sort headers.
11475 * amd64-windows-tdep.c: Sort headers.
11476 * amd64-windows-nat.c: Sort headers.
11477 * amd64-tdep.c: Sort headers.
11478 * amd64-sol2-tdep.c: Sort headers.
11479 * amd64-obsd-tdep.c: Sort headers.
11480 * amd64-obsd-nat.c: Sort headers.
11481 * amd64-nbsd-tdep.c: Sort headers.
11482 * amd64-nbsd-nat.c: Sort headers.
11483 * amd64-nat.c: Sort headers.
11484 * amd64-linux-tdep.c: Sort headers.
11485 * amd64-linux-nat.c: Sort headers.
11486 * amd64-fbsd-tdep.c: Sort headers.
11487 * amd64-fbsd-nat.c: Sort headers.
11488 * amd64-dicos-tdep.c: Sort headers.
11489 * amd64-darwin-tdep.c: Sort headers.
11490 * amd64-bsd-nat.c: Sort headers.
11491 * alpha-tdep.c: Sort headers.
11492 * alpha-obsd-tdep.c: Sort headers.
11493 * alpha-nbsd-tdep.c: Sort headers.
11494 * alpha-mdebug-tdep.c: Sort headers.
11495 * alpha-linux-tdep.c: Sort headers.
11496 * alpha-linux-nat.c: Sort headers.
11497 * alpha-bsd-tdep.c: Sort headers.
11498 * alpha-bsd-nat.c: Sort headers.
11499 * aix-thread.c: Sort headers.
11500 * agent.c: Sort headers.
11501 * addrmap.c: Sort headers.
11502 * ada-varobj.c: Sort headers.
11503 * ada-valprint.c: Sort headers.
11504 * ada-typeprint.c: Sort headers.
11505 * ada-tasks.c: Sort headers.
11506 * ada-lang.c: Sort headers.
11507 * aarch64-tdep.c: Sort headers.
11508 * aarch64-ravenscar-thread.c: Sort headers.
11509 * aarch64-newlib-tdep.c: Sort headers.
11510 * aarch64-linux-tdep.c: Sort headers.
11511 * aarch64-linux-nat.c: Sort headers.
11512 * aarch64-fbsd-tdep.c: Sort headers.
11513 * aarch64-fbsd-nat.c: Sort headers.
11514 * aarch32-linux-nat.c: Sort headers.
11515
699bd4cf
TT
115162019-04-04 Tom Tromey <tom@tromey.com>
11517
11518 * varobj.c (varobj_create): Update.
11519 * rust-exp.y (struct rust_parser) <update_innermost_block,
11520 lookup_symbol>: New methods.
11521 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11522 Rename.
11523 (rust_parser::rust_lookup_type)
11524 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11525 * printcmd.c (display_command, do_one_display): Update.
11526 * parser-defs.h (struct parser_state) <parser_state>: Add
11527 "tracker" parameter.
11528 (block_tracker): New member.
11529 (class innermost_block_tracker) <innermost_block_tracker>: Add
11530 "types" parameter.
11531 <reset>: Remove method.
11532 (innermost_block): Don't declare.
11533 (null_post_parser): Update.
11534 * parse.c (innermost_block): Remove global.
11535 (write_dollar_variable): Update.
11536 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11537 Remove "tracker_types" parameter.
11538 (parse_expression): Add "tracker" parameter.
11539 (parse_expression_for_completion): Update.
11540 (null_post_parser): Add "tracker" parameter.
11541 * p-exp.y: Update rules.
11542 * m2-exp.y: Update rules.
11543 * language.h (struct language_defn) <la_post_parser>: Add
11544 "tracker" parameter.
11545 * go-exp.y: Update rules.
11546 * f-exp.y: Update rules.
11547 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11548 parameter.
11549 * d-exp.y: Update rules.
11550 * c-exp.y: Update rules.
11551 * breakpoint.c (set_breakpoint_condition): Create an
11552 innermost_block_tracker.
11553 (watch_command_1): Likewise.
11554 * ada-lang.c (resolve): Add "tracker" parameter.
11555 (resolve_subexp): Likewise.
11556 * ada-exp.y (write_var_from_sym): Update.
11557
dac43e32
TT
115582019-04-04 Tom Tromey <tom@tromey.com>
11559
11560 * type-stack.h: New file.
11561 * type-stack.c: New file.
11562 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11563 type-stack.h.
11564 (insert_into_type_stack, insert_type, push_type, push_type_int)
11565 (insert_type_address_space, pop_type, pop_type_int)
11566 (pop_typelist, pop_type_stack, append_type_stack)
11567 (push_type_stack, get_type_stack, push_typelist)
11568 (follow_type_instance_flags, follow_types): Don't declare.
11569 * parse.c (type_stack): Remove global.
11570 (parse_exp_in_context): Update.
11571 (insert_into_type_stack, insert_type, push_type, push_type_int)
11572 (insert_type_address_space, pop_type, pop_type_int)
11573 (pop_typelist, pop_type_stack, append_type_stack)
11574 (push_type_stack, get_type_stack, push_typelist)
11575 (follow_type_instance_flags, follow_types): Remove (moved to
11576 type-stack.c).
11577 * f-exp.y (type_stack): New global.
11578 Update rules.
11579 (push_kind_type, f_parse): Update.
11580 * d-exp.y (type_stack): New global.
11581 Update rules.
11582 (d_parse): Update.
11583 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11584 Update rules.
11585 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11586 (HFILES_NO_SRCDIR): Add type-stack.h.
11587
2a612529
TT
115882019-04-04 Tom Tromey <tom@tromey.com>
11589
11590 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11591 (rust_parser::convert_ast_to_expression, rust_parse)
11592 (rust_lex_test_completion, rust_lex_tests): Update.
11593 * parser-defs.h (struct expr_completion_state): New.
11594 (struct parser_state) <parser_state>: Add completion parameter.
11595 <mark_struct_expression, mark_completion_tag>: New methods.
11596 <parse_completion, m_completion_state>: New members.
11597 (prefixify_expression, null_post_parser): Update.
11598 (mark_struct_expression, mark_completion_tag): Don't declare.
11599 * parse.c (parse_completion, expout_last_struct)
11600 (expout_tag_completion_type, expout_completion_name): Remove
11601 globals.
11602 (parser_state::mark_struct_expression)
11603 (parser_state::mark_completion_tag): Now methods.
11604 (prefixify_expression): Add last_struct parameter.
11605 (prefixify_subexp): Likewise.
11606 (parse_exp_1): Update.
11607 (parse_exp_in_context): Add cstate parameter. Update.
11608 (parse_expression_for_completion): Create an
11609 expr_completion_state.
11610 (null_post_parser): Add "completion" parameter.
11611 * p-exp.y: Update rules.
11612 (yylex): Update.
11613 * language.h (struct language_defn) <la_post_parser>: Add
11614 "completing" parameter.
11615 * go-exp.y: Update rules.
11616 (lex_one_token): Update.
11617 * expression.h (parse_completion): Don't declare.
11618 * d-exp.y: Update rules.
11619 (lex_one_token): Update rules.
11620 * c-exp.y: Update rules.
11621 (lex_one_token): Update.
11622 * ada-lang.c (resolve): Add "parse_completion" parameter.
11623 (resolve_subexp): Likewise.
11624 (ada_resolve_function): Likewise.
11625
43476f0b
TT
116262019-04-04 Tom Tromey <tom@tromey.com>
11627
11628 * parser-defs.h (struct parser_state) <start_arglist,
11629 end_arglist>: New methods.
11630 <arglist_len, m_funcall_chain>: New members.
11631 (arglist_len, start_arglist, end_arglist): Don't declare.
11632 * parse.c (arglist_len, funcall_chain): Remove global.
11633 (start_arglist, end_arglist): Remove functions.
11634 (parse_exp_in_context): Update.
11635 * p-exp.y: Update rules.
11636 * m2-exp.y: Update rules.
11637 * go-exp.y: Update rules.
11638 * f-exp.y: Update rules.
11639 * d-exp.y: Update rules.
11640 * c-exp.y: Update rules.
11641
5776fca3
TT
116422019-04-04 Tom Tromey <tom@tromey.com>
11643
11644 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11645 lex_operator, push_back>: New methods.
11646 Update all rules.
11647 (rust_parser::lex_hex, lex_escape): Rename and update.
11648 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11649 (rust_parser::lex_operator): Rename and update.
11650 (rust_parser::lex_number, rustyylex, rustyyerror)
11651 (rust_lex_test_init, rust_lex_test_sequence)
11652 (rust_lex_test_push_back, rust_lex_tests): Update.
11653 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11654 parameter.
11655 <lexptr, prev_lexptr>: New members.
11656 (lexptr, prev_lexptr): Don't declare.
11657 * parse.c (lexptr, prev_lexptr): Remove globals.
11658 (parse_exp_in_context): Update.
11659 * p-exp.y (yylex, yyerror): Update.
11660 * m2-exp.y (parse_number, yylex, yyerror): Update.
11661 * go-exp.y (lex_one_token, yyerror): Update.
11662 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11663 * d-exp.y (lex_one_token, yyerror): Update.
11664 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11665 (lex_one_token, yyerror): Update.
11666 * ada-lex.l (YY_INPUT): Update.
11667 (rewind_to_char): Update.
11668 * ada-exp.y (yyerror): Update.
11669
8621b685
TT
116702019-04-04 Tom Tromey <tom@tromey.com>
11671
11672 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11673 * parser-defs.h (struct parser_state) <parser_state>: Add new
11674 parameter.
11675 <comma_terminates>: New member.
11676 (comma_terminates): Don't declare global.
11677 * parse.c (comma_terminates): Remove global.
11678 (parse_exp_in_context): Update.
11679 * p-exp.y (yylex): Update.
11680 * m2-exp.y (yylex): Update.
11681 * go-exp.y (lex_one_token): Update.
11682 * f-exp.y (yylex): Update.
11683 * d-exp.y (lex_one_token): Update.
11684 * c-exp.y (lex_one_token): Update.
11685 * ada-lex.l: Update.
11686
28aaf3fd
TT
116872019-04-04 Tom Tromey <tom@tromey.com>
11688
11689 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11690 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11691 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11692 * parser-defs.h (paren_depth): Don't declare.
11693 * parse.c (paren_depth): Remove global.
11694 (parse_exp_in_context): Update.
11695 * p-exp.y (paren_depth): New global.
11696 (pascal_parse): Initialize it.
11697 * m2-exp.y (paren_depth): New global.
11698 (m2_parse): Initialize it.
11699 * go-exp.y (paren_depth): New global.
11700 (go_parse): Initialize it.
11701 * f-exp.y (paren_depth): New global.
11702 (f_parse): Initialize it.
11703 * d-exp.y (paren_depth): New global.
11704 (d_parse): Initialize it.
11705 * c-exp.y (paren_depth): New global.
11706 (c_parse): Initialize it.
11707 * ada-lex.l (paren_depth): New global.
11708 (lexer_init): Initialize it.
11709
1e58a4a4
TT
117102019-04-04 Tom Tromey <tom@tromey.com>
11711
11712 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11713 (rust_parser::convert_ast_to_type)
11714 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11715 * parser-defs.h (struct parser_state) <parser_state>: Add
11716 parameters. Initialize new members.
11717 <expression_context_block, expression_context_pc>: New members.
11718 * parse.c (expression_context_block, expression_context_pc):
11719 Remove globals.
11720 (parse_exp_in_context): Update.
11721 * p-exp.y: Update all rules.
11722 (yylex): Update.
11723 * m2-exp.y: Update all rules.
11724 (yylex): Update.
11725 * go-exp.y (yylex): Update.
11726 * f-exp.y (yylex): Update.
11727 * d-exp.y: Update all rules.
11728 (yylex): Update.
11729 * c-exp.y: Update all rules.
11730 (lex_one_token, classify_name, yylex, c_parse): Update.
11731 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11732
37eedb39
TT
117332019-04-04 Tom Tromey <tom@tromey.com>
11734
11735 * gdbarch.h, gdbarch.c: Rebuild.
11736 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11737 * stap-probe.h:
11738 (struct stap_parse_info): Replace "parser_state" with
11739 "expr_builder".
11740 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11741 (parser_state): New class.
11742 * parse.c (expr_builder): Rename.
11743 (expr_builder::release): Rename.
11744 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11745 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11746 (write_exp_elt_longcst, write_exp_elt_floatcst)
11747 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11748 (write_exp_string_vector, write_exp_bitstring)
11749 (write_exp_msymbol, mark_struct_expression)
11750 (write_dollar_variable)
11751 (insert_type_address_space, increase_expout_size): Replace
11752 "parser_state" with "expr_builder".
11753 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11754 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11755 "parser_state" with "expr_builder".
11756
73923d7e
TT
117572019-04-04 Tom Tromey <tom@tromey.com>
11758
11759 * rust-exp.y: Replace "parse_language" with method call.
11760 * p-exp.y:
11761 (yylex): Replace "parse_language" with method call.
11762 * m2-exp.y:
11763 (yylex): Replace "parse_language" with method call.
11764 * go-exp.y (classify_name): Replace "parse_language" with method
11765 call.
11766 * f-exp.y (yylex): Replace "parse_language" with method call.
11767 * d-exp.y (lex_one_token): Replace "parse_language" with method
11768 call.
11769 * c-exp.y:
11770 (lex_one_token, classify_name, yylex): Replace "parse_language"
11771 with method call.
11772 * ada-exp.y (find_primitive_type, type_char)
11773 (type_system_address): Replace "parse_language" with method call.
11774
fa9f5be6
TT
117752019-04-04 Tom Tromey <tom@tromey.com>
11776
11777 * rust-exp.y: Replace "parse_gdbarch" with method call.
11778 * parse.c (write_dollar_variable, insert_type_address_space):
11779 Replace "parse_gdbarch" with method call.
11780 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11781 call.
11782 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11783 call.
11784 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11785 "parse_gdbarch" with method call.
11786 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11787 with method call.
11788 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11789 "parse_gdbarch" with method call.
11790 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11791 "parse_gdbarch" with method call.
11792 * c-exp.y (parse_type, parse_number, classify_name): Replace
11793 "parse_gdbarch" with method call.
11794 * ada-lex.l: Replace "parse_gdbarch" with method call.
11795 * ada-exp.y (parse_type, find_primitive_type, type_char)
11796 (type_system_address): Replace "parse_gdbarch" with method call.
11797
1201a264
TT
117982019-04-04 Tom Tromey <tom@tromey.com>
11799
11800 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11801 * stap-probe.c (stap_parse_argument): Update.
11802 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11803 initial_size parameter.
11804 * rust-exp.y (rust_lex_tests): Update.
11805 * parse.c (parser_state): Update.
11806 (parse_exp_in_context): Update.
11807 * parser-defs.h (struct parser_state) <parser_state>: Remove
11808 "initial_size" parameter.
11809
e3980ce2
TT
118102019-04-04 Tom Tromey <tom@tromey.com>
11811
11812 * parser-defs.h (increase_expout_size): Don't declare.
11813 * parse.c (increase_expout_size): Now static.
11814
e9f8e3f1
TS
118152019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11816
11817 * gnu-nat.c (gnu_nat_target::wait): Fix
11818 target_waitstatus_to_string call.
11819
d7df6549
AB
118202019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11821
11822 * eval.c (evaluate_subexp_standard): Handle internal functions
11823 during Fortran function call handling.
11824
8bdc1658
AB
118252019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11826
11827 * NEWS: Mention new internal functions.
11828 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11829 (read_base_type): Use dwarf2_init_complex_target_type.
11830 * value.c (creal_internal_fn): New function.
11831 (cimag_internal_fn): New function.
11832 (_initialize_values): Register new internal functions.
11833
c29705b7
PW
118342019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11835
11836 * infrun.c (stop_all_threads): If debug_infrun, always
11837 trace the wait status after wait_one, using
11838 target_waitstatus_to_string and target_pid_to_str.
11839 (handle_inferior_event): Replace various trace of
11840 wait status kind by a single trace.
11841 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11842 wait status kind image by target_waitstatus_to_string.
11843 * target/waitstatus.c (target_waitstatus_to_string): Fix
11844 obsolete comment.
11845
05caa1d2
TT
118462019-04-01 Tom Tromey <tromey@adacore.com>
11847
11848 PR symtab/23331:
11849 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11850
9d1447e0
SDJ
118512019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11852 Pedro Alves <palves@redhat.com>
11853
11854 * top.c (quit_force): Call 'finalize_values'.
11855 * value.c (finalize_values): New function.
11856 * value.h (finalize_values): Declare.
11857
7734102d
EZ
118582019-03-30 Eli Zaretskii <eliz@gnu.org>
11859
11860 * NEWS: Announce $_gdb_major and $_gdb_minor.
11861
11862 * top.c (init_gdb_version_vars): New function.
11863 (gdb_init): Call init_gdb_version_vars.
11864
188e1fa9
TT
118652019-03-29 Tom Tromey <tromey@adacore.com>
11866
11867 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11868 help text. Remove dead code.
11869
2880242d
KS
118702019-03-29 Keith Seitz <keiths@redhat.com>
11871
11872 From Siddhesh Poyarekar:
11873 * f-lang.h (f77_get_upperbound): Return LONGEST.
11874 (f77_get_lowerbound): Likewise.
11875 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11876 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11877 print them.
11878 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11879 plongest to format print it.
11880 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11881 (f77_get_upperbound): Likewise.
11882 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11883 LOWER_BOUND to LONGEST.
11884 (f77_create_arrayprint_offset_tbl): Likewise.
11885
cc1defb1
KS
118862019-03-29 Keith Seitz <keiths@redhat.com>
11887
11888 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11889 %s/pulongest for TYPE_LENGTH instead of %d in format
11890 strings.
11891 * ada-typerint.c (ada_print_type): Likewise.
11892 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11893 * compile/compile-c-support.c (generate_register_struct): Likewise.
11894 * gdbtypes.c (recursive_dump_type): Likewise.
11895 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11896 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11897 instead of %d in format strings.
11898 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11899 to std::min to ULONGEST.
11900 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11901 instead of %d in format strings.
11902 * tracepoint.c (info_scope_command): Likewise.
11903 * typeprint.c (print_offset_data::update)
11904 (print_offset_data::finish): Likewise.
11905 * xtensa-tdep.c (xtensa_store_return_value)
11906 (xtensa_push_dummy_call): Likewise.
11907
e432ccf1
JT
119082019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11909
11910 * windows-nat.c (display_selector): Fixed format specifications
11911 for 64-bit Cygwin.
11912
65d2b333
PW
119132019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11914
11915 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11916
f489207e
SL
119172019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11918
11919 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11920 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11921 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11922 (nios2_linux_init_abi): Install it.
11923
bffa1015
AH
119242019-03-28 Alan Hayward <alan.hayward@arm.com>
11925
11926 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11927
fc96163a
AH
119282019-03-28 Alan Hayward <alan.hayward@arm.com>
11929
11930 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11931
20dc7e9b
PW
119322019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11933 Tom Tromey <tromey@adacore.com>
11934
11935 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11936
7f5331a8
JB
119372019-03-26 Joel Brobecker <brobecker@adacore.com>
11938
11939 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11940 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11941 method to compute the bounds of range types. Also print "[evaluated]"
11942 if the bounds' values come from a dynamic evaluation.
11943
18c77628
AB
119442019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11945
11946 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11947 whitespace when pretty printing is on.
11948
53c973f2
AH
119492019-03-26 Alan Hayward <alan.hayward@arm.com>
11950
e79be6e5 11951 * ppc-linux-nat.c: Add include.
53c973f2 11952
d851aa71
AH
119532019-03-26 Alan Hayward <alan.hayward@arm.com>
11954
e79be6e5 11955 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11956
2fe7bab7
AH
119572019-03-26 Alan Hayward <alan.hayward@arm.com>
11958
e79be6e5 11959 * arm-linux-nat.c: Add include.
2fe7bab7 11960
068ef30e
SM
119612019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11962
11963 * source-cache.c (source_cache::get_source_lines): Re-read
11964 fullname after calling open_source_file.
11965
81a24d04
JB
119662019-03-25 John Baldwin <jhb@FreeBSD.org>
11967
11968 * NEWS: Mention TLS support for FreeBSD.
11969
79e7ae11
TT
119702019-03-25 Tom Tromey <tromey@adacore.com>
11971
11972 * minsyms.c (BUNCH_SIZE): Update comment.
11973 (~minimal_symbol_reader): Remove old comment.
11974 (compact_minimal_symbols): Update comment.
11975 (minimal_symbol_reader::install): Remove old comment. Update
11976 other comments.
11977
d45963c2
AH
119782019-03-25 Alan Hayward <alan.hayward@arm.com>
11979
11980 * s390-linux-nat.c: Add include.
11981
0f83012e
AH
119822019-03-25 Alan Hayward <alan.hayward@arm.com>
11983
11984 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11985 Call linux_get_hwcap.
11986 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11987 Likewise.
11988 (aarch64_linux_get_hwcap): Remove function.
11989 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11990 declaration.
11991 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11992 linux_get_hwcap.
11993 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11994 * linux-tdep.c (linux_get_hwcap): Add function.
11995 (linux_get_hwcap2): Likewise.
11996 * linux-tdep.h (linux_get_hwcap): Add declaration.
11997 (linux_get_hwcap2): Likewise.
11998 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11999 (ppc_linux_get_hwcap2): Likewise.
12000 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12001 linux_get_hwcap.
12002 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12003 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12004 (ppc_linux_nat_target::read_description): Likewise.
12005 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12006 * s390-linux-nat.c: Likewise.
12007 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12008
6640a367
TT
120092019-03-24 Tom Tromey <tom@tromey.com>
12010
12011 * ada-lang.c (standard_lookup): Simplify initialization.
12012 (ada_lookup_symbol_nonlocal): Simplify return.
12013 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12014 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12015 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12016 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12017 initialization.
12018 * solib.c (solib_global_lookup): Simplify.
12019 * symtab.c (null_block_symbol): Remove.
12020 (symbol_cache_lookup): Simplify returns.
12021 (lookup_language_this): Simplify returns.
12022 (lookup_symbol_aux): Simplify return.
12023 (lookup_local_symbol): Simplify returns.
12024 (lookup_global_symbol_from_objfile): Simplify return.
12025 (lookup_symbol_in_objfile_symtabs)
12026 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12027 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12028 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12029 * cp-namespace.c (cp_lookup_bare_symbol)
12030 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12031 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12032 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12033 (cp_lookup_symbol_via_imports): Simplify initialization.
12034 (find_symbol_in_baseclass): Likewise.
12035 * symtab.h (null_block_symbol): Remove.
12036 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12037 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12038 (d_lookup_symbol_module): Likewise.
12039 (find_symbol_in_baseclass): Simplify initialization.
12040
a930ebcd
TT
120412019-03-24 Tom Tromey <tom@tromey.com>
12042
12043 * expression.h: Don't include symtab.h.
12044 (struct block): Forward declare.
12045
582942f4
TT
120462019-03-24 Tom Tromey <tom@tromey.com>
12047
12048 * c-exp.y (typebase): Remove casts.
12049 * gdbtypes.c (lookup_unsigned_typename, )
12050 (lookup_signed_typename): Remove cast.
12051 * eval.c (parse_to_comma_and_eval): Remove cast.
12052 * parse.c (write_dollar_variable): Remove cast.
12053 * block.h (struct block) <superblock>: Now const.
12054 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12055 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12056 (map_block): Make "block" const.
12057 * symfile.h (struct quick_symbol_functions)
12058 <map_matching_symbols>: Constify block argument to "callback".
12059 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12060 const.
12061 (find_pc_sect_compunit_symtab): Make "b" const.
12062 (find_symbol_at_address): Likewise.
12063 (search_symbols): Likewise.
12064 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12065 (dw2_debug_names_lookup_symbol): Likewise.
12066 (dw2_map_matching_symbols): Update.
12067 * p-valprint.c (pascal_val_print): Remove "block".
12068 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12069 (aux_add_nonlocal_symbols): Make "block" const.
12070 (resolve_subexp): Remove cast.
12071 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12072 const.
12073 (iterate_over_file_blocks): Likewise.
12074 * f-exp.y (%union) <bval>: Remove.
12075 * coffread.c (patch_opaque_types): Make "b" const.
12076 * spu-tdep.c (spu_catch_start): Make "block" const.
12077 * c-valprint.c (print_unpacked_pointer): Remove "block".
12078 * symmisc.c (dump_symtab_1): Make "b" const.
12079 (block_depth): Make "block" const.
12080 * d-exp.y (%union) <bval>: Remove.
12081 * cp-support.h (cp_lookup_rtti_type): Update.
12082 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12083 * psymtab.c (psym_lookup_symbol): Make "block" const.
12084 (maintenance_check_psymtabs): Make "b" const.
12085 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12086 (enumerate_locals, enumerate_args): Update.
12087 * python/py-symtab.c (stpy_global_block): Make "block" const.
12088 (stpy_static_block): Likewise.
12089 * inline-frame.c (block_starting_point_at): Make "new_block"
12090 const.
12091 * block.c (find_block_in_blockvector): Make return type const.
12092 (blockvector_for_pc_sect): Make "b" const.
12093 (find_block_in_blockvector): Make "b" const.
12094
7ad417dd
TT
120952019-03-23 Tom Tromey <tom@tromey.com>
12096
12097 * varobj.c (varobj_create): Update.
12098 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12099 * printcmd.c (display_command, do_one_display): Don't reset
12100 innermost_block.
12101 * parser-defs.h (enum innermost_block_tracker_type): Move to
12102 expression.h.
12103 (innermost_block): Update comment.
12104 * parse.c (parse_exp_1): Add tracker_types parameter.
12105 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12106 tracker_types parameter. Reset innermost_block.
12107 (parse_exp_in_context): Remove.
12108 (parse_expression_for_completion): Update.
12109 * objfiles.c (~objfile): Don't reset expression_context_block or
12110 innermost_block.
12111 * expression.h (enum innermost_block_tracker_type): Move from
12112 parser-defs.h.
12113 (parse_exp_1): Add tracker_types parameter.
12114 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12115 reset innermost_block.
12116
b366c208
TT
121172019-03-23 Tom Tromey <tom@tromey.com>
12118
12119 * objfiles.h: Include bcache.h.
12120
9bb9b2f9
TT
121212019-03-23 Tom Tromey <tom@tromey.com>
12122
12123 * linespec.c (get_current_search_block): Use
12124 scoped_restore_current_language.
12125 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12126
59c28372
AH
121272019-03-22 Alan Hayward <alan.hayward@arm.com>
12128 Jiong Wang <jiong.wang@arm.com>
12129
12130 * aarch64-linux-tdep.c
12131 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12132 section.
12133 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12134
17e116a7
AH
121352019-03-22 Alan Hayward <alan.hayward@arm.com>
12136 Jiong Wang <jiong.wang@arm.com>
12137
12138 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12139 instructions.
12140 (aarch64_analyze_prologue_test): Add PACIASP test.
12141 (aarch64_prologue_prev_register): Unmask PC value.
12142
11e1b75f
AH
121432019-03-22 Alan Hayward <alan.hayward@arm.com>
12144 Jiong Wang <jiong.wang@arm.com>
12145
12146 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12147 (aarch64_dwarf2_prev_register): Unmask PC value.
12148 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12149 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12150 DW_CFA_AARCH64_negate_ra_state.
12151 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12152
34dcc7cf
AH
121532019-03-22 Alan Hayward <alan.hayward@arm.com>
12154 Jiong Wang <jiong.wang@arm.com>
12155
12156 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12157 registers.
12158 (aarch64_pseudo_register_name): Likewise.
12159 (aarch64_pseudo_register_type): Likewise.
12160 (aarch64_pseudo_register_reggroup_p): Likewise.
12161 (aarch64_gdbarch_init): Add pauth registers.
12162 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12163 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12164 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12165 (struct gdbarch_tdep): Add regnum for ra_state.
12166
1ef53e6b
AH
121672019-03-22 Alan Hayward <alan.hayward@arm.com>
12168 Jiong Wang <jiong.wang@arm.com>
12169
12170 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12171
76bed0fd
AH
121722019-03-22 Alan Hayward <alan.hayward@arm.com>
12173 Jiong Wang <jiong.wang@arm.com>
12174
12175 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12176 function.
12177 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12178 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12179 (aarch64_gdbarch_init): Add puth registers.
12180 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12181 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12182 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12183
ee4fbcfa
AH
121842019-03-22 Alan Hayward <alan.hayward@arm.com>
12185 Jiong Wang <jiong.wang@arm.com>
12186
12187 * aarch64-linux-nat.c
12188 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12189 * aarch64-linux-tdep.c
12190 (aarch64_linux_core_read_description): Likewise.
12191 (aarch64_linux_get_hwcap): New function.
12192 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12193 (aarch64_linux_get_hwcap): New declaration.
12194
6dc0ebde
AH
121952019-03-22 Alan Hayward <alan.hayward@arm.com>
12196 Jiong Wang <jiong.wang@arm.com>
12197
12198 * aarch64-linux-nat.c
12199 (aarch64_linux_nat_target::read_description): Add pauth param.
12200 * aarch64-linux-tdep.c
12201 (aarch64_linux_core_read_description): Likewise.
12202 * aarch64-tdep.c (struct target_desc): Add in pauth.
12203 (aarch64_read_description): Add pauth param.
12204 (aarch64_gdbarch_init): Likewise.
12205 * aarch64-tdep.h (aarch64_read_description): Likewise.
12206 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12207 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12208 * features/Makefile: Add new files.
12209 * features/aarch64-pauth.c: New file.
12210 * features/aarch64-pauth.xml: New file.
12211
595915c1
TT
122122019-03-20 Tom Tromey <tromey@adacore.com>
12213
12214 * infrun.c (handle_inferior_event): Rename from
12215 handle_inferior_event_1. Create a scoped_value_mark.
12216 (handle_inferior_event): Remove.
12217
4c7d57e7
TT
122182019-03-19 Tom Tromey <tromey@adacore.com>
12219
12220 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12221 * infrun.h (print_stop_event): Add "displays" parameter.
12222 * infrun.c (print_stop_event): Add "displays" parameter.
12223
cb246234
PA
122242019-03-19 Pedro Alves <palves@redhat.com>
12225
12226 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12227 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12228 to -1. Fix TABs vs spaces.
12229 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12230 * tui/tui-out.h (tui_ui_out) Add intro comments.
12231 <m_line, m_start_of_line>: In-class initialize, and add describing
12232 comment.
12233
3a0e45b2
AH
122342019-03-18 Alan Hayward <alan.hayward@arm.com>
12235
12236 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12237 variable names.
12238 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12239
5371b850
PA
122402019-03-18 Pedro Alves <palves@redhat.com>
12241 Eli Zaretskii <eliz@gnu.org>
12242
12243 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12244 m_line and m_start_of_line.
12245
b17c4cd0
EZ
122462019-03-18 Eli Zaretskii <eliz@gnu.org>
12247
12248 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12249 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12250 it returns a newline. This fixes a regression in TU mode, whereby
12251 the next line is output on the same screen line as the user input.
12252
4bd56d18
TT
122532019-03-18 Tom Tromey <tromey@adacore.com>
12254
12255 * minsyms.c (minimal_symbol_reader::install): Remove call to
12256 obstack_blank.
12257
55c10aca
PA
122582019-03-18 Pedro Alves <palves@redhat.com>
12259
12260 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12261 New globals.
12262 (apply_style): New, factored out from ...
12263 (apply_ansi_escape): ... this. Handle reverse video mode.
12264 (tui_set_reverse_mode): New function.
12265 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12266 * tui/tui-winsource.c (tui_show_source_line): Use
12267 tui_set_reverse_mode instead of setting A_STANDOUT.
12268 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12269 New setter methods.
12270
647bb750
HD
122712019-03-18 Hannes Domani <ssbssa@yahoo.de>
12272
12273 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12274 Handle tabs.
12275
bff8c71f
TT
122762019-03-18 Tom Tromey <tromey@adacore.com>
12277
12278 * ada-lang.c (empty_array): Add "high" parameter.
12279 (ada_evaluate_subexp): Update.
12280
58785d98
ST
122812019-03-17 Sergei Trofimovich <siarheit@google.com>
12282
12283 * unittests/string_view-selftests.c: Define
12284 _initialize_string_view_selftests unconditionally.
12285
d4cbef22
ВМ
122862019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12287
12288 PR gdb/24350
12289 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12290
fce4c071
ВМ
122912019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12292
12293 PR gdb/24351
12294 * windows-nat.c (display_selector): Fix format specifiers.
12295
f7f0a123
EZ
122962019-03-17 Eli Zaretskii <eliz@gnu.org>
12297
12298 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12299 tui_refill_source_window instead of tui_refresh_win, to update the
12300 current execution line. This fixes redisplay of the current line
12301 when stepping through the code with "next" or "step".
12302
ab42892f
EZ
123032019-03-16 Eli Zaretskii <eliz@gnu.org>
12304
12305 * source-cache.c (source_cache::get_source_lines): Call
12306 find_source_lines to initialize s->nlines. This fixes vertical
12307 scrolling of TUI source window when the DOWN arrow is pressed.
12308
8d8c087f
PW
123092019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12310
12311 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12312 linux-thread-db.c (_initialize_thread_db): Likewise.
12313
798e1c30
EZ
123142019-03-16 Eli Zaretskii <eliz@gnu.org>
12315
12316 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12317 wclrtoeol in tui_show_source_line". This reverts changes made in
12318 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12319
eefba3da
TT
123202019-03-15 Tom Tromey <tom@tromey.com>
12321
12322 * symtab.h (struct minimal_symbol): Derive from
12323 general_symbol_info.
12324 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12325 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12326 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12327 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12328 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12329 (MSYMBOL_SEARCH_NAME): Update.
12330 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12331 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12332 * minsyms.c (minimal_symbol_reader::record_full): Update.
12333
0de2420c
TT
123342019-03-15 Tom Tromey <tom@tromey.com>
12335
12336 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12337
042d75e4
TT
123382019-03-15 Tom Tromey <tom@tromey.com>
12339
12340 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12341 unique_xmalloc_ptr.
12342 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12343 Update.
12344 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12345 (build_minimal_symbol_hash_tables)
12346 (minimal_symbol_reader::install): Update.
12347
db92718b
TT
123482019-03-15 Tom Tromey <tom@tromey.com>
12349
12350 * symtab.c (create_demangled_names_hash): Update.
12351 (symbol_set_names): Update.
12352 * objfiles.h (struct objfile_per_bfd_storage)
12353 <demangled_names_hash>: Now an htab_up.
12354 * objfiles.c (objfile_per_bfd_storage): Simplify.
12355
d6797f46
TT
123562019-03-15 Tom Tromey <tom@tromey.com>
12357
12358 * objfiles.h (struct objfile_per_bfd_storage): Declare
12359 destructor.
12360 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12361 New.
12362 (get_objfile_bfd_data): Use new. Don't initialize
12363 language_of_main.
12364 (free_objfile_per_bfd_storage): Remove.
12365 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12366
741d7538
TT
123672019-03-15 Tom Tromey <tom@tromey.com>
12368
12369 * symfile.c (reread_symbols): Update.
12370 * objfiles.c (objfile::objfile): Update.
12371 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12372 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12373 comment.
12374 (minimal_symbol_reader::install): Update.
12375 (terminate_minimal_symbol_table): Remove.
12376 * jit.c (jit_object_close_impl): Update.
12377
788c80d1
TT
123782019-03-15 Tom Tromey <tom@tromey.com>
12379
12380 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12381 initializations.
12382
1b7a07cb
TT
123832019-03-15 Tom Tromey <tom@tromey.com>
12384
12385 * objfiles.h (struct objfile_per_bfd_storage)
12386 <demangled_hash_languages>: Now a bitset.
12387 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12388 (lookup_minimal_symbol): Update.
12389
3db066bc
TT
123902019-03-15 Tom Tromey <tom@tromey.com>
12391
12392 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12393 Don't return the symbol.
12394 * coffread.c (record_minimal_symbol): Use record_full.
12395
3fff2c37
EZ
123962019-03-14 Eli Zaretskii <eliz@gnu.org>
12397
12398 The MS-Windows port of ncurses fails to switch to a color pair if
12399 one or both of the colors are the implicit default colors. This
12400 change records the default colors when TUI is initialized, and
12401 then specifies them explicitly when a color pair uses the default
12402 colors. This allows color styling in TUI mode on MS-Windows.
12403
12404 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12405 ncurses_norm_attr.
12406 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12407 colors in ncurses_norm_attr.
12408 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12409 "none", replace it with the default color recorded in
12410 ncurses_norm_attr.
12411
3b336828
TT
124122019-03-14 Tom Tromey <tromey@adacore.com>
12413
12414 * source-cache.h (class source_cache) <get_source_lines>: Return
12415 std::string.
12416 * source-cache.c (source_cache::extract_lines): Handle case where
12417 first_pos==npos. Return std::string.
12418 (source_cache::get_source_lines): Update.
12419
d085f989
TT
124202019-03-14 Tom Tromey <tromey@adacore.com>
12421
12422 * NEWS: Add item for "style sources" commands.
12423 * source-cache.c (source_cache::get_source_lines): Check
12424 source_styling.
12425 * cli/cli-style.c (source_styling): New global.
12426 (_initialize_cli_style): Add "style sources" commands.
12427 (show_style_sources): New function.
12428 * cli/cli-style.h (source_styling): Declare.
12429
6f11e682
TT
124302019-03-14 Pedro Alves <palves@redhat.com>
12431 Tom Tromey <tromey@adacore.com>
12432
12433 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12434 * tui/tui-winsource.c (tui_refill_source_window): New function,
12435 from...
12436 (tui_horizontal_source_scroll): ... here. Move some logic.
12437 * cli/cli-style.c (set_style_enabled): Notify new observable.
12438 * tui/tui-hooks.c (tui_redisplay_source): New function.
12439 (tui_attach_detach_observers): Attach or detach
12440 tui_redisplay_source.
12441 * observable.h (source_styling_changed): New observable.
12442 * observable.c: Define source_styling_changed observable.
12443
a068643d
TT
124442019-03-13 Tom Tromey <tromey@adacore.com>
12445
12446 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12447 (i386_gnu_nat_target::store_registers): Update.
12448 * target-debug.h (target_debug_print_std_string): New macro.
12449 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12450 * windows-tdep.c (display_one_tib): Update.
12451 * tui/tui-stack.c (tui_make_status_line): Update.
12452 * top.c (print_inferior_quit_action): Update.
12453 * thread.c (thr_try_catch_cmd): Update.
12454 (add_thread_with_info): Update.
12455 (thread_target_id_str): Update.
12456 (thr_try_catch_cmd): Update.
12457 (thread_command): Update.
12458 (thread_find_command): Update.
12459 * record-btrace.c (record_btrace_target::info_record)
12460 (record_btrace_resume_thread, record_btrace_target::resume)
12461 (record_btrace_cancel_resume, record_btrace_step_thread)
12462 (record_btrace_target::wait, record_btrace_target::wait)
12463 (record_btrace_target::wait, record_btrace_target::stop): Update.
12464 * progspace.c (print_program_space): Update.
12465 * process-stratum-target.c
12466 (process_stratum_target::thread_address_space): Update.
12467 * linux-fork.c (linux_fork_mourn_inferior)
12468 (detach_checkpoint_command, info_checkpoints_command)
12469 (linux_fork_context): Update.
12470 (linux_fork_detach): Update.
12471 (class scoped_switch_fork_info): Update.
12472 (delete_checkpoint_command): Update.
12473 * infrun.c (follow_fork_inferior): Update.
12474 (follow_fork_inferior): Update.
12475 (proceed_after_vfork_done): Update.
12476 (handle_vfork_child_exec_or_exit): Update.
12477 (follow_exec): Update.
12478 (displaced_step_prepare_throw): Update.
12479 (displaced_step_restore): Update.
12480 (start_step_over): Update.
12481 (resume_1): Update.
12482 (clear_proceed_status_thread): Update.
12483 (proceed): Update.
12484 (print_target_wait_results): Update.
12485 (do_target_wait): Update.
12486 (context_switch): Update.
12487 (stop_all_threads): Update.
12488 (restart_threads): Update.
12489 (finish_step_over): Update.
12490 (handle_signal_stop): Update.
12491 (switch_back_to_stepped_thread): Update.
12492 (keep_going_pass_signal): Update.
12493 (print_exited_reason): Update.
12494 (normal_stop): Update.
12495 * inferior.c (inferior_pid_to_str): Change return type.
12496 (print_selected_inferior): Update.
12497 (add_inferior): Update.
12498 (detach_inferior): Update.
12499 * dummy-frame.c (fprint_dummy_frames): Update.
12500 * dcache.c (dcache_info_1): Update.
12501 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12502 (btrace_fetch, btrace_clear): Update.
12503 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12504 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12505 type.
12506 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12507 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12508 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12509 * gdbarch.c, gdbarch.h: Rebuild.
12510 * gdbarch.sh (core_pid_to_str): Change return type.
12511 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12512 return type.
12513 (windows_nat_target::pid_to_str): Change return type.
12514 (windows_delete_thread): Update.
12515 (windows_nat_target::attach): Update.
12516 (windows_nat_target::files_info): Update.
12517 * target-delegates.c: Rebuild.
12518 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12519 return type.
12520 (sol_thread_target::pid_to_str): Change return type.
12521 * remote.c (class remote_target) <pid_to_str>: Change return
12522 type.
12523 (remote_target::pid_to_str): Change return type.
12524 (extended_remote_target::attach, remote_target::remote_stop_ns)
12525 (remote_target::remote_notif_remove_queued_reply)
12526 (remote_target::push_stop_reply, remote_target::disable_btrace):
12527 Update.
12528 (extended_remote_target::attach): Update.
12529 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12530 type.
12531 (gdbsim_target::pid_to_str): Change return type.
12532 * ravenscar-thread.c (struct ravenscar_thread_target)
12533 <pid_to_str>: Change return type.
12534 (ravenscar_thread_target::pid_to_str): Change return type.
12535 * procfs.c (class procfs_target) <pid_to_str>: Change return
12536 type.
12537 (procfs_target::pid_to_str): Change return type.
12538 (procfs_target::attach): Update.
12539 (procfs_target::detach): Update.
12540 (procfs_target::fetch_registers): Update.
12541 (procfs_target::store_registers): Update.
12542 (procfs_target::wait): Update.
12543 (procfs_target::files_info): Update.
12544 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12545 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12546 return type.
12547 (nto_procfs_target::pid_to_str): Change return type.
12548 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12549 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12550 return type.
12551 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12552 (exit_lwp): Update.
12553 (attach_proc_task_lwp_callback, get_detach_signal)
12554 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12555 (linux_nat_target::resume, wait_lwp, stop_callback)
12556 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12557 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12558 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12559 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12560 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12561 type.
12562 (inf_ptrace_target::attach): Update.
12563 (inf_ptrace_target::files_info): Update.
12564 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12565 type.
12566 (go32_nat_target::pid_to_str): Change return type.
12567 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12568 (gnu_nat_target::wait): Update.
12569 (gnu_nat_target::wait): Update.
12570 (gnu_nat_target::resume): Update.
12571 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12572 (fbsd_nat_target::wait): Update.
12573 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12574 type.
12575 (darwin_nat_target::attach): Update.
12576 * corelow.c (class core_target) <pid_to_str>: Change return type.
12577 (core_target::pid_to_str): Change return type.
12578 * target.c (normal_pid_to_str): Change return type.
12579 (default_pid_to_str): Likewise.
12580 (target_pid_to_str): Change return type.
12581 (target_translate_tls_address): Update.
12582 (target_announce_detach): Update.
12583 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12584 return type.
12585 (bsd_uthread_target::pid_to_str): Change return type.
12586 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12587 type.
12588 (bsd_kvm_target::pid_to_str): Change return type.
12589 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12590 return type.
12591 (aix_thread_target::pid_to_str): Change return type.
12592 * target.h (struct target_ops) <pid_to_str>: Change return type.
12593 (target_pid_to_str, normal_pid_to_str): Likewise.
12594 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12595 type.
12596 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12597 type.
12598 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12599 return type.
12600 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12601 type.
12602 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12603 type.
12604 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12605 return type.
12606
b4be1b06
SM
126072019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12608
12609 * NEWS: Mention that the new default MI version is 3. Mention
12610 changes to the output of commands and events that deal with
12611 multi-location breakpoints.
12612 * breakpoint.c: Include "mi/mi-out.h".
12613 (print_one_breakpoint): Change output syntax if using MI version
12614 >= 3.
12615 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12616 New.
12617 (mi_multi_location_breakpoint_output_fixed): New.
12618 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12619 (mi_cmd_fix_multi_location_breakpoint_output): New.
12620 (mi_multi_location_breakpoint_output_fixed): New.
12621 * mi/mi-cmds.c (mi_cmds): Register command
12622 -fix-multi-location-breakpoint-output.
12623 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12624 interpreter "mi".
12625
8e5e5494
SM
126262019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12627
12628 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12629 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12630 instantiate mi_ui_out based on interpreter name.
12631 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12632 * mi/mi-main.c (mi_load_progress): Likewise.
12633
197df35e
JB
126342019-03-12 John Baldwin <jhb@FreeBSD.org>
12635
12636 * NEWS: Combine separate "New targets" sections for 8.3.
12637
8399425f
JB
126382019-03-12 John Baldwin <jhb@FreeBSD.org>
12639
12640 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12641 (ppcfbsd_init_abi): Install gdbarch
12642 "fetch_tls_load_module_address" and "get_thread_local_address"
12643 methods.
12644
b0f87ed0
JB
126452019-03-12 John Baldwin <jhb@FreeBSD.org>
12646
12647 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12648 (riscv_fbsd_init_abi): Install gdbarch
12649 "fetch_tls_load_module_address" and "get_thread_local_address"
12650 methods.
12651
ce25aa57
JB
126522019-03-12 John Baldwin <jhb@FreeBSD.org>
12653
12654 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12655 (i386fbsd_init_abi): Install gdbarch
12656 "fetch_tls_load_module_address" and "get_thread_local_address"
12657 methods.
12658
f5424cfa
JB
126592019-03-12 John Baldwin <jhb@FreeBSD.org>
12660
12661 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12662 (amd64fbsd_init_abi): Install gdbarch
12663 "fetch_tls_load_module_address" and "get_thread_local_address"
12664 methods.
12665
945f3901
JB
126662019-03-12 John Baldwin <jhb@FreeBSD.org>
12667
12668 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12669 (struct fbsd_pspace_data): New type.
12670 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12671 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12672 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12673 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12674 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12675
ef0bd204
JB
126762019-03-12 John Baldwin <jhb@FreeBSD.org>
12677
12678 * gdbtypes.c (lookup_struct_elt): New function.
12679 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12680 * gdbtypes.h (struct struct_elt): New type.
12681 (lookup_struct_elt): New prototype.
12682
36c53a02
JB
126832019-03-12 John Baldwin <jhb@FreeBSD.org>
12684
12685 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12686 remove disabled code block.
12687
6e056c81
JB
126882019-03-12 John Baldwin <jhb@FreeBSD.org>
12689
12690 * gdbarch.sh (get_thread_local_address): New method.
12691 * gdbarch.h, gdbarch.c: Regenerate.
12692 * target.c (target_translate_tls_address): Use
12693 gdbarch_get_thread_local_address if present instead of
12694 target::get_thread_local_address.
12695
cd250a18
JB
126962019-03-12 John Baldwin <jhb@FreeBSD.org>
12697
12698 * target.h (target::get_thread_local_address): Update comment.
12699
df22c1e5
JB
127002019-03-12 John Baldwin <jhb@FreeBSD.org>
12701
12702 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12703 objfile->separate_debug_objfile_backlink if not NULL.
12704
dd6876c9
JB
127052019-03-12 John Baldwin <jhb@FreeBSD.org>
12706
12707 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12708 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12709 (amd64bsd_store_inferior_registers): Likewise.
12710 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12711 Enable segment base registers.
12712 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12713 PT_GETFSBASE and PT_GETGSBASE.
12714 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12715 PT_SETGSBASE.
12716 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12717 segment base registers.
12718 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12719
1163a4b7
JB
127202019-03-12 John Baldwin <jhb@FreeBSD.org>
12721
12722 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12723 Update calls to i386_target_description to add 'segments'
12724 parameter.
12725 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12726 add segment base registers.
12727 * arch/i386.c (i386_create_target_description): Add 'segments'
12728 parameter to enable segment base registers.
12729 * arch/i386.h (i386_create_target_description): Likewise.
12730 * features/i386/32bit-segments.xml: New file.
12731 * features/i386/32bit-segments.c: Generate.
12732 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12733 call to i386_target_description to add 'segments' parameter.
12734 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12735 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12736 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12737 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12738 if feature is present.
12739 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12740 Add 'segments' parameter to call to i386_target_description.
12741 (i386_target_description): Add 'segments' parameter to enable
12742 segment base registers.
12743 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12744 to call to i386_target_description.
12745 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12746 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12747 Define I386_NUM_REGS.
12748 (i386_target_description): Add 'segments' parameter to enable
12749 segment base registers.
12750
3a350822
EZ
127512019-03-12 Eli Zaretskii <eliz@gnu.org>
12752
12753 PR/24325
12754 * source-cache.c: #undef open and close, to avoid unresolved
12755 externals during linking.
12756
ffdd69cf
TT
127572019-03-12 Tom Tromey <tromey@adacore.com>
12758
12759 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12760 const. Add initializers.
12761 (_initialize_remote): Don't initialize ptid globals.
12762
ec148c57
PA
127632019-03-12 Pedro Alves <palves@redhat.com>
12764
12765 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12766
32764270
PA
127672019-03-12 Pedro Alves <palves@redhat.com>
12768
12769 * cp-name-parser.y (main): Remove unused 'len' variable.
12770
17547186
TT
127712019-03-12 Tom Tromey <tromey@adacore.com>
12772
12773 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12774 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12775
d3a70e03
TT
127762019-03-12 Tom Tromey <tromey@adacore.com>
12777
12778 * linux-nat.c (iterate_over_lwps): Update.
12779 (stop_callback): Remove parameter.
12780 (stop_wait_callback, detach_callback, resume_set_callback)
12781 (select_singlestep_lwp_callback, set_ignore_sigint)
12782 (status_callback, resumed_callback, resume_clear_callback)
12783 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12784 data parameter.
12785 (linux_nat_target::detach, linux_nat_target::resume)
12786 (linux_stop_and_wait_all_lwps, select_event_lwp)
12787 (linux_nat_filter_event, linux_nat_wait_1)
12788 (linux_nat_target::kill, linux_nat_target::stop)
12789 (linux_nat_target::stop): Update.
12790 (linux_nat_resume_callback): Change type.
12791 (resume_stopped_resumed_lwps, count_events_callback)
12792 (select_event_lwp_callback): Likewise.
12793 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12794 * arm-linux-nat.c (struct update_registers_data): Remove.
12795 (update_registers_callback): Change type.
12796 (arm_linux_insert_hw_breakpoint1): Update.
12797 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12798 parameter.
12799 (x86_linux_dr_set_addr): Update.
12800 (x86_linux_dr_set_control): Update.
12801 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12802 (iterate_over_lwps): Use gdb::function_view.
12803 * nat/aarch64-linux-hw-point.c (struct
12804 aarch64_dr_update_callback_param): Remove.
12805 (debug_reg_change_callback): Change type.
12806 (aarch64_notify_debug_reg_change): Update.
12807 * s390-linux-nat.c (s390_refresh_per_info): Update.
12808
82cb27ff
TT
128092019-03-11 Tom Tromey <tromey@adacore.com>
12810
12811 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12812 redundant assignment to "this_cu".
12813
568c0683
SM
128142019-03-08 Simon Marchi <simon.marchi@efficios.com>
12815
12816 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12817
f09ce22d
SM
128182019-03-08 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12821 from...
12822 (rank_one_type): ... this.
12823
595f96a9
SM
128242019-03-08 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12827 from...
12828 (rank_one_type): ... this.
12829
2598a94b
SM
128302019-03-08 Simon Marchi <simon.marchi@efficios.com>
12831
12832 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12833 from...
12834 (rank_one_type): ... this.
12835
7f17b20d
SM
128362019-03-08 Simon Marchi <simon.marchi@efficios.com>
12837
12838 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12839 from...
12840 (rank_one_type): ... this.
12841
2c509035
SM
128422019-03-08 Simon Marchi <simon.marchi@efficios.com>
12843
12844 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12845 from...
12846 (rank_one_type): ... this.
12847
0dd322dc
SM
128482019-03-08 Simon Marchi <simon.marchi@efficios.com>
12849
12850 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12851 from...
12852 (rank_one_type): ... this.
12853
41ea4728
SM
128542019-03-08 Simon Marchi <simon.marchi@efficios.com>
12855
12856 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12857 from...
12858 (rank_one_type): ... this.
12859
793cd1d2
SM
128602019-03-08 Simon Marchi <simon.marchi@efficios.com>
12861
12862 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12863 from...
12864 (rank_one_type): ... this.
12865
34910087
SM
128662019-03-08 Simon Marchi <simon.marchi@efficios.com>
12867
12868 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12869 from...
12870 (rank_one_type): ... this.
12871
f1f832d6
SM
128722019-03-08 Simon Marchi <simon.marchi@efficios.com>
12873
12874 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12875 from...
12876 (rank_one_type): ... this.
12877
b9f4512f
SM
128782019-03-08 Simon Marchi <simon.marchi@efficios.com>
12879
12880 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12881 from...
12882 (rank_one_type): ... this.
12883
9293fc63
SM
128842019-03-08 Simon Marchi <simon.marchi@efficios.com>
12885
12886 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12887 from...
12888 (rank_one_type): ... this.
12889
e3abbe7e
PW
128902019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12891
12892 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12893 inferior-events' shows the example events.
12894
e4adb939
EZ
128952019-03-08 Eli Zaretskii <eliz@gnu.org>
12896
12897 Support styling on native MS-Windows console
12898
12899 PR/24315
12900 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12901 on MS-Windows if $TERM is not defined.
12902
12903 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12904
12905 * posix-hdep.c (gdb_console_fputs):
12906 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12907 functions.
12908 * ui-file.h (gdb_console_fputs): Add prototype.
12909
12910 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12911 back to fputs only if the former returns zero.
12912
25629dfd
TT
129132019-03-07 Tom Tromey <tom@tromey.com>
12914
12915 * symmisc.c (print_symbol_bcache_statistics): Update.
12916 (print_objfile_statistics): Update.
12917 * symfile.c (allocate_symtab): Update.
12918 * stabsread.c: Don't include bcache.h.
12919 * psymtab.h (struct psymbol_bcache): Don't declare.
12920 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12921 (psymbol_bcache_init, psymbol_bcache_free)
12922 (psymbol_bcache_get_bcache): Don't declare.
12923 * psymtab.c (struct psymbol_bcache): Remove.
12924 (psymtab_storage::psymtab_storage): Update.
12925 (psymtab_storage::~psymtab_storage): Update.
12926 (psymbol_bcache_init, psymbol_bcache_free)
12927 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12928 (add_psymbol_to_bcache): Update.
12929 (allocate_psymtab): Update.
12930 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12931 macro_cache>: No longer pointers.
12932 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12933 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12934 * macrotab.c (macro_bcache): Update.
12935 * macroexp.c: Don't include bcache.h.
12936 * gdbtypes.c (check_types_worklist): Update.
12937 (types_deeply_equal): Remove TRY/CATCH. Update.
12938 * elfread.c (elf_symtab_read): Update.
12939 * dwarf2read.c: Don't include bcache.h.
12940 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12941 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12942 (print_bcache_statistics, bcache_memory_used): Don't declare.
12943 (struct bcache): Move from bcache.c. Add constructor, destructor,
12944 methods. Rename all data members.
12945 * bcache.c (struct bcache): Move to bcache.h.
12946 (bcache::expand_hash_table): Rename from expand_hash_table.
12947 (bcache): Remove.
12948 (bcache::insert): Rename from bcache_full.
12949 (bcache::compare): Rename from bcache_compare.
12950 (bcache_xmalloc): Remove.
12951 (bcache::~bcache): Rename from bcache_xfree.
12952 (bcache::print_statistics): Rename from print_bcache_statistics.
12953 (bcache::memory_used): Rename from bcache_memory_used.
12954
fe726667
PA
129552019-03-07 Pedro Alves <palves@redhat.com>
12956
12957 * infrun.c (normal_stop): Also check for
12958 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12959
7584bb30
AB
129602019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12961
12962 * f-lang.c (value_from_host_double): Moved to...
12963 * value.c (value_from_host_double): ...here.
12964 * value.h (value_from_host_double): Declare.
12965 * guile/scm-math.c (vlscm_convert_typed_number): Use
12966 value_from_host_double.
12967 (vlscm_convert_number): Likewise.
12968 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12969 * python/py-value.c (convert_value_from_python): Likewise.
12970
a7b1986e
TT
129712019-03-06 Tom Tromey <tom@tromey.com>
12972
12973 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12974
0ccf4211
TT
129752019-03-06 Tom Tromey <tom@tromey.com>
12976
12977 * utils.h (free_current_contents): Don't declare.
12978 * utils.c (free_current_contents): Remove.
12979
fe7b42e5
TT
129802019-03-06 Tom Tromey <tom@tromey.com>
12981
12982 * top.c (quit_force): Update.
12983 * main.c (captured_command_loop): Update.
12984 * common/new-op.c (operator new): Update.
12985 * common/common-exceptions.c (struct catcher)
12986 <save_cleanup_chain>: Remove member.
12987 (exceptions_state_mc_init): Update.
12988 (exception_try_scope_entry): Return nullptr.
12989 (exception_try_scope_exit, exception_rethrow)
12990 (throw_exception_sjlj, throw_exception_cxx): Update.
12991 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12992 (all_cleanups, do_cleanups, discard_cleanups)
12993 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12994 (restore_cleanups, restore_final_cleanups): Don't declare.
12995 (do_final_cleanups): Remove parameter.
12996 * common/cleanups.c (cleanup_chain, make_cleanup)
12997 (make_cleanup_dtor, all_cleanups, do_cleanups)
12998 (discard_my_cleanups, discard_cleanups)
12999 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13000 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13001 (null_cleanup): Remove.
13002 (do_final_cleanups): Remove parameter.
13003
c6321f19
TT
130042019-03-06 Tom Tromey <tom@tromey.com>
13005
13006 * remote.c (remote_target::remote_parse_stop_reply): Use
13007 unique_xmalloc_ptr.
13008
61b30099
TT
130092019-03-06 Tom Tromey <tom@tromey.com>
13010
13011 * stabsread.c (struct stabs_field_info): Rename from field_info.
13012 <list, fnlist>: Add initializers.
13013 <obstack>: New member.
13014 (read_member_functions, read_struct_fields, read_baseclasses):
13015 Allocate on obstack. Don't use cleanups.
13016 (read_one_struct_field, read_member_functions, read_struct_fields)
13017 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13018 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13019 (read_struct_type): Update.
13020
6cceac94
TT
130212019-03-06 Tom Tromey <tom@tromey.com>
13022
13023 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13024 * common/filestuff.h (make_cleanup_close): Don't declare.
13025 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13026 Remove.
13027
72412762
TT
130282019-03-06 Tom Tromey <tom@tromey.com>
13029
13030 * solib-aix.c: Use make_scope_exit.
13031
2b6ff1c0
TT
130322019-03-06 Tom Tromey <tom@tromey.com>
13033
13034 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13035 Use make_scope_exit.
13036
d01c5877
TT
130372019-03-06 Tom Tromey <tom@tromey.com>
13038
13039 * solib-svr4.c (disable_probes_interface): Remove parameter.
13040 (svr4_handle_solib_event): Use make_scope_exit.
13041
32603266
TT
130422019-03-06 Tom Tromey <tom@tromey.com>
13043
13044 * remote.c (struct stop_reply_deleter): Remove.
13045 (stop_reply_up): Update.
13046 (struct stop_reply): Derive from notif_event. Don't typedef.
13047 <regcache>: Now a std::vector.
13048 (stop_reply_xfree): Remove.
13049 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13050 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13051 (remote_target::discard_pending_stop_replies): Use delete.
13052 (remote_target::remote_parse_stop_reply): Update.
13053 (remote_target::process_stop_reply): Update.
13054 * remote-notif.h (struct notif_event): Add virtual destructor.
13055 Remove "dtr" member.
13056 (struct notif_client) <alloc_event>: Return a unique_ptr.
13057 (notif_event_xfree): Don't declare.
13058 (notif_event_up): New typedef.
13059 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13060 (notif_event_xfree, do_notif_event_xfree): Remove.
13061 (remote_notif_state_xfree): Update.
13062
9799571e
TT
130632019-03-06 Tom Tromey <tom@tromey.com>
13064
13065 * infrun.c (displaced_step_clear_cleanup): Now a
13066 forward_scope_exit type.
13067 (displaced_step_prepare_throw): Update.
13068 (displaced_step_fixup): Update.
13069
09e3c4ca
TT
130702019-03-06 Tom Tromey <tom@tromey.com>
13071
13072 * inferior.h (class inferior): Update comment.
13073 * gdbthread.h (class thread_info): Update comment.
13074
e2a03548
TT
130752019-03-06 Joel Brobecker <brobecker@adacore.com>
13076 Tom Tromey <tom@tromey.com>
13077
13078 * stabsread.h (struct stab_section_list): Remove.
13079 (coffstab_build_psymtabs): Update.
13080 * dbxread.c (symbuf_sections): Now a std::vector.
13081 (sect_idx): New global.
13082 (fill_symbuf): Update.
13083 (coffstab_build_psymtabs): Change type of stabsects parameter.
13084 Update.
13085 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13086 std::vector.
13087 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13088 (coff_locate_sections): Update.
13089 (coff_symfile_read): Remove cleanups. Update.
13090 (init_stringtab): Add storage parameter.
13091 (free_stringtab, free_stringtab_cleanup): Remove.
13092 (init_lineno): Add storage parameter.
13093 (free_linetab, free_linetab_cleanup): Remove.
13094
b7e60d85
PA
130952019-03-06 Pedro Alves <palves@redhat.com>
13096
13097 * linux-fork.c (fork_info::clobber_regs): Delete.
13098 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13099 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13100 comment. Adjust.
13101 (scoped_switch_fork_info::scoped_switch_fork_info)
13102 (checkpoint_command, linux_fork_context): Adjust
13103 fork_save_infrun_state calls.
13104
e52c971f
PA
131052019-03-06 Pedro Alves <palves@redhat.com>
13106
13107 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13108 (inf_has_multiple_threads): Return 'bool' and rewrite using
13109 inferior_info::threads().
13110
06974e6c
PA
131112019-03-06 Pedro Alves <palves@redhat.com>
13112
13113 * linux-fork.c: Include <list>.
13114 (fork_list): Now a std::list instance.
13115 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13116 (forks_exist_p, find_last_fork): Adjust.
13117 (new_fork): Delete.
13118 (one_fork_p): New.
13119 (add_fork): Adjust.
13120 (free_fork): Delete, folded into fork_info::~fork_info().
13121 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13122 Adjust.
13123 (init_fork_list): Delete.
13124 (linux_fork_killall, linux_fork_mourn_inferior)
13125 (linux_fork_detach, info_checkpoints_command): Adjust.
13126 (_initialize_linux_fork): No longer call init_fork_list.
13127
72f31aea
PA
131282019-03-06 Pedro Alves <palves@redhat.com>
13129
13130 * linux-fork.c (new_fork): New, split out of ...
13131 (add_fork): ... this. Return void. Move "first fork" special
13132 case from here, to ...
13133 (checkpoint_command): ... here.
13134 * linux-linux.h (add_fork): Return void.
13135
efbecbc1
AB
131362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13137
13138 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13139
0841c79a
AB
131402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13141 Chris January <chris.january@arm.com>
13142 David Lecomber <david.lecomber@arm.com>
13143
13144 * f-exp.y: New token, UNOP_INTRINSIC.
13145 (exp): New pattern using UNOP_INTRINSIC token.
13146 (f77_keywords): Add 'abs' keyword.
13147 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13148 (value_from_host_double): New function.
13149 (evaluate_subexp_f): Support UNOP_ABS.
13150
4a270568
AB
131512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13154 types.
13155
067630bd
AB
131562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13157
13158 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13159 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13160 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13161
3be47f7a
AB
131622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13163
13164 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13165
4d00f5d8
AB
131662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13167 Chris January <chris.january@arm.com>
13168
13169 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13170 * f-exp.y: Define 'KIND' token.
13171 (exp): New pattern for KIND expressions.
13172 (ptype): Handle types with a kind extension.
13173 (direct_abs_decl): Extend to spot kind extensions.
13174 (f77_keywords): Add 'kind' to the list.
13175 (push_kind_type): New function.
13176 (convert_to_kind_type): New function.
13177 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13178 * parse.c (operator_length_standard): Likewise.
13179 * parser-defs.h (enum type_pieces): Add tp_kind.
13180 * std-operator.def: Add UNOP_KIND.
13181
e454224f
AB
131822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * f-exp.y (f_parse): Set yydebug.
13185
9dad4a58
AB
131862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13187
13188 * f-lang.c (evaluate_subexp_f): New function.
13189 (exp_descriptor_f): New global.
13190 (f_language_defn): Use exp_descriptor_f instead of
13191 exp_descriptor_standard.
13192
c8f91604
AB
131932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13194
13195 * f-exp.y (struct token): Add comments.
13196 (dot_ops): Remove uppercase versions and the end marker.
13197 (f77_keywords): Likewise.
13198 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13199 entries in the dot_ops array are case insensitive, and use
13200 strncasecmp to compare strings. Also some whitespace cleanup in
13201 this area. Similar for the f77_keywords array, except entries in
13202 this list might be case sensitive.
13203
dd9f2c76
AB
132042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13205
13206 * f-exp.y (struct f77_boolean_val): Add comments.
13207 (boolean_values): Remove uppercase versions, and end marker.
13208 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13209 and use strncasecmp to achieve case insensitivity. Additionally,
13210 perform whitespace cleanup around this code.
13211
67a3048c
TT
132122019-03-06 Tom Tromey <tromey@adacore.com>
13213
13214 * remote-sim.c (gdbsim_target_open): Use result of
13215 gdb_argv::release.
13216
aa3cfbda
RB
132172019-03-06 Richard Bunt <richard.bunt@arm.com>
13218 Dirk Schubert <dirk.schubert@arm.com>
13219 Chris January <chris.january@arm.com>
13220
13221 * eval.c (evaluate_subexp_standard): Call Fortran argument
13222 wrapping logic.
13223 * f-lang.c (struct value): A value which can be passed into a
13224 Fortran function call.
13225 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13226 where appropriate.
13227 (struct type): Value ready for a Fortran function call.
13228 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13229 is needed.
13230 * f-lang.h (fortran_argument_convert): Declaration.
13231 (fortran_preserve_arg_pointer): Declaration.
13232 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13233
ea38e5df
TT
132342019-03-05 Tom Tromey <tromey@adacore.com>
13235
13236 * python/py-prettyprint.c (print_string_repr): Remove #if.
13237 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13238
06b5b831
TT
132392019-03-05 Tom Tromey <tromey@adacore.com>
13240
13241 * target.c (the_dummy_target): Move later. Change type to
13242 "dummy_target".
13243 (initialize_targets): Don't initialize the_dummy_target.
13244
edbd9e45
TT
132452019-03-05 Tom Tromey <tromey@adacore.com>
13246
13247 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13248 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13249
c119e040
TT
132502019-03-05 Tom Tromey <tromey@adacore.com>
13251
13252 * windows-nat.c (windows_nat_target::attach)
13253 (windows_nat_target::detach): Don't call gdb_flush.
13254 * valprint.c (generic_val_print, val_print, val_print_string):
13255 Don't call gdb_flush.
13256 * utils.c (defaulted_query): Don't call gdb_flush.
13257 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13258 * target.c (target_announce_detach): Don't call gdb_flush.
13259 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13260 * remote.c (extended_remote_target::attach): Don't call
13261 gdb_flush.
13262 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13263 * printcmd.c (do_examine): Don't call gdb_flush.
13264 (info_display_command): Don't call gdb_flush.
13265 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13266 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13267 * memattr.c (info_mem_command): Don't call gdb_flush.
13268 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13269 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13270 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13271 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13272 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13273 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13274 (gnu_nat_target::detach): Don't call gdb_flush.
13275 * f-valprint.c (f_val_print): Don't call gdb_flush.
13276 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13277 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13278 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13279 gdb_flush.
13280 * c-valprint.c (c_val_print): Don't call gdb_flush.
13281 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13282
895dafa6
TT
132832019-03-05 Tom Tromey <tromey@adacore.com>
13284
13285 * varobj.c (update_dynamic_varobj_children): Update.
13286 (install_default_visualizer): Use reset, not release.
13287 * value.c (set_internalvar): Update.
13288 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13289 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13290 ATTRIBUTE_UNUSED_RESULT.
13291
88a774b9
TT
132922019-03-05 Tom Tromey <tromey@adacore.com>
13293
13294 * remote.c (class scoped_remote_fd) <release>: Add
13295 ATTRIBUTE_UNUSED_RESULT.
13296
4e4a8b93
TT
132972019-03-05 Tom Tromey <tromey@adacore.com>
13298
13299 * macroexp.c (struct macro_buffer) <release>: Add
13300 ATTRIBUTE_UNUSED_RESULT.
13301
083eef1f
TT
133022019-03-05 Tom Tromey <tromey@adacore.com>
13303
13304 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13305 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13306 ATTRIBUTE_UNUSED_RESULT.
13307
3cabd438
TT
133082019-03-05 Tom Tromey <tromey@adacore.com>
13309
13310 * common/scoped_fd.h (class scoped_fd) <release>: Add
13311 ATTRIBUTE_UNUSED_RESULT.
13312
41e3300a
TT
133132019-03-05 Tom Tromey <tromey@adacore.com>
13314
13315 * parser-defs.h (struct parser_state) <release>: Add
13316 ATTRIBUTE_UNUSED_RESULT.
13317
18cb7c9f
TT
133182019-03-05 Tom Tromey <tromey@adacore.com>
13319
13320 * utils.h (class gdb_argv) <release>: Add
13321 ATTRIBUTE_UNUSED_RESULT.
13322 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13323
41fa577f
EZ
133242019-03-02 Eli Zaretskii <eliz@gnu.org>
13325
a6a4b2c6
EZ
13326 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13327 for-loop range, to avoid compiler warnings.
13328
13329 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13330 avoid compiler warnings about unused variables.
13331
742a7df5
EZ
13332 * NEWS: Mention end of support for native debugging on MS-Windows
13333 before XP.
13334
41fa577f
EZ
13335 PR gdb/24292
13336 * common/netstuff.c:
13337 * gdbserver/gdbreplay.c
13338 * gdbserver/remote-utils.c:
13339 * ser-tcp.c:
13340 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13341 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13342 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13343 'getaddrinfo' and 'freeaddrinfo' were not available before
13344 Windows XP, and mingw.org's MinGW headers by default define
13345 _WIN32_WINNT to 0x500.
13346
827f438f
GB
133472019-03-01 Gary Benson <gbenson@redhat.com>
13348
13349 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13350
92137da0
RO
133512019-02-28 Brian Vandenberg <phantall@gmail.com>
13352 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13353
13354 PR gdb/8527
13355 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13356 set_sigint_trap, clear_sigint_trap.
13357
799efbe8
PW
133582019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13359
13360 * target.c (target_detach): Clear the regcache and the
13361 frame cache.
13362
8ed25214
PA
133632019-02-27 Pedro Alves <palves@redhat.com>
13364
13365 * utils.c (set_screen_size): When we cap the height/width sizes,
13366 tweak the corresponding command variable to show "unlimited":
13367
23031e31
SJ
133682019-02-27 Saagar Jha <saagar@saagarjha.com>
13369 Pedro Alves <palves@redhat.com>
13370
13371 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13372 before calling rl_set_screen_size.
13373
6c28e44a
TT
133742019-02-27 Tom Tromey <tromey@adacore.com>
13375
13376 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13377 define.
13378 * python/py-value.c: Remove Python 2.4 workaround.
13379 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13380 workaround.
13381 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13382 Python 2.4 workaround.
13383 * python/python-internal.h: Remove Python 2.4 comment.
13384 (Py_ssize_t): Don't define.
13385 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13386 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13387 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13388 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13389 * python/python.c (do_start_initialization): Remove Python 2.4
13390 workaround.
13391 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13392 (print_children): Remove Python 2.4 workaround.
13393 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13394 workaround.
13395 (CHARBUFFERPROC_NAME): Remove.
13396 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13397 Python 2.4 workaround.
13398
2c3fc25d 133992019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13400
2c3fc25d
KB
13401 * NEWS: Note minimum Python version.
13402
6ca62222
KB
134032019-02-27 Kevin Buettner <kevinb@redhat.com>
13404
13405 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13406 code from these functions. Remove corresponding ifdefs. Use
13407 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13408 Remove gotos and target of gotos.
13409 (infpy_search_memory): Likewise.
13410
f4bc7d2c
AB
134112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13412
13413 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13414 (hppa_gdbarch_init): Don't register deleted functions with
13415 gdbarch.
13416
9734a586
AB
134172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13418
13419 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13420 (h8300_unwind_sp): Delete.
13421 (h8300_dummy_id): Delete.
13422 (h8300_gdbarch_init): Don't register deleted functions with
13423 gdbarch.
13424
68b867f3
AB
134252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13426
13427 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13428 (ft32_unwind_pc): Delete.
13429 (ft32_unwind_sp): Delete.
13430 (ft32_gdbarch_init): Don't register deleted functions with
13431 gdbarch.
13432
2fbe7ad0
AB
134332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13434
13435 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13436 (frv_unwind_pc): Delete.
13437 (frv_unwind_sp): Delete.
13438 (frv_gdbarch_init): Don't register deleted functions with
13439 gdbarch.
13440
76055cbe
AB
134412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13444 (riscv_unwind_pc): Delete.
13445 (riscv_unwind_sp): Delete.
13446 (riscv_gdbarch_init): Don't register deleted functions with
13447 gdbarch.
13448
4133e5a1
AB
134492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13452 (csky_unwind_pc): Delete.
13453 (csky_unwind_sp): Delete.
13454 (csky_gdbarch_init): Don't register deleted functions with
13455 gdbarch.
13456
8010f576
AB
134572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13458
13459 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13460 (cris_unwind_pc): Delete.
13461 (cris_unwind_sp): Delete.
13462 (cris_gdbarch_init): Don't register deleted functions with
13463 gdbarch.
13464
b56bf084
AB
134652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13466
13467 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13468 (bfin_unwind_pc): Delete.
13469 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13470
a19a650f
AB
134712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13472
13473 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13474 (arm_unwind_pc): Delete.
13475 (arm_unwind_sp): Delete.
13476 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13477
f8278c3c
AB
134782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13479
13480 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13481 (arc_unwind_pc): Delete.
13482 (arc_unwind_sp): Delete.
13483 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13484
480e46cf
AB
134852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13488 (alpha_unwind_pc): Delete.
13489 (alpha_gdbarch_init): Don't register deleted functions with
13490 gdbarch.
13491
7a995095
AB
134922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13493
13494 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13495 (aarch64_unwind_pc): Delete.
13496 (aarch64_unwind_sp): Delete.
13497 (aarch64_gdbarch_init): Don't register deleted functions with
13498 gdbarch.
13499
bf9a735e
AB
135002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13501
13502 * gdbtypes.c (type_align): Don't consider static members when
13503 computing structure alignment.
13504
5561fc30
AB
135052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13506
13507 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13508 return 0 for other types.
13509 * arch-utils.c (default_type_align): Always return 0.
13510 * gdbarch.h: Regenerate.
13511 * gdbarch.sh (type_align): Extend comment.
13512 * gdbtypes.c (type_align): Add additional comments, always call
13513 gdbarch_type_align before applying the default rules.
13514 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13515 generic code will then apply a suitable default.
13516 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13517 types, return 0 for other types.
13518
9335e75a
JB
135192019-02-27 Joel Brobecker <brobecker@adacore.com>
13520
13521 * NEWS: Create a new section for the next release branch.
13522 Rename the section of the current branch, now that it has
13523 been cut.
13524
3d34d8de
JB
135252019-02-27 Joel Brobecker <brobecker@adacore.com>
13526
13527 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13528 * version.in: Bump version to 8.3.50.DATE-git.
13529
143420fb
SM
135302019-02-26 Simon Marchi <simon.marchi@efficios.com>
13531
13532 * aix-thread.c (ptid_cmp): Remove unused variable.
13533 (get_signaled_thread): Likewise.
13534 (store_regs_user_thread): Likewise.
13535 (store_regs_kernel_thread): Likewise.
13536 (fetch_regs_kernel_thread): Remove shadowed variable.
13537
172fb711
AB
135382019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13539
13540 * features/riscv/32bit-cpu.xml: Add register numbers.
13541 * features/riscv/32bit-fpu.c: Regenerate.
13542 * features/riscv/32bit-fpu.xml: Add register numbers.
13543 * features/riscv/64bit-cpu.xml: Add register numbers.
13544 * features/riscv/64bit-fpu.c: Regenerate.
13545 * features/riscv/64bit-fpu.xml: Add register numbers.
13546
26c89782
KB
135472019-02-26 Kevin Buettner <kevinb@redhat.com>
13548
af54ade9 13549 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13550 * python/py-value.c (convert_buffer_and_type_to_value): New
13551 function.
13552 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13553 Add support for handling an optional second argument. Call
13554 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13555 * python/python-internal.h (Py_buffer_deleter): New struct.
13556 (Py_buffer_up): New typedef.
13557
0f58c9e8
JB
135582019-02-25 John Baldwin <jhb@FreeBSD.org>
13559
13560 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13561 instead of releasing ownership.
13562
0a0f4c01
JR
135632019-02-25 Jordan Rupprecht <rupprecht@google.com>
13564
13565 * dwarf2read.c (open_and_init_dwp_file): Call
13566 elf_numsections instead of bfd_count_sections to initialize
13567 dwp_file->num_sections.
13568
cd5a152c
TT
135692019-02-25 Tom Tromey <tromey@adacore.com>
13570
13571 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13572
8a6a8513
SDJ
135732019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13574
13575 * gcore.in: Add '--readnever' option when invoking GDB.
13576
04dcda9c
SM
135772019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13578
13579 * MAINTAINERS: Update my email address.
13580
07bc701d
SM
135812019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13582
13583 * build-id.c (build_id_to_debug_bfd_1): New function.
13584 (build_id_to_debug_bfd): Look for separate debug file in
13585 sysroot.
13586
c6f4a5d0
AB
135872019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13588
13589 * gdbarch.sh: Update the copyright year range that is placed into
13590 generated files.
13591
9600246d
KS
135922019-02-22 Keith Seitz <keiths@redhat.com>
13593
13594 PR symtab/23853
13595 * linespec.c (create_sals_line_offset): Search for the default
13596 symtab's filename instead of its fullname.
13597
7557a514
AH
135982019-02-21 Alan Hayward <alan.hayward@arm.com>
13599
13600 * NEWS: Update style defaults.
13601
ee2bcb0c
AH
136022019-02-21 Alan Hayward <alan.hayward@arm.com>
13603
13604 * main.c (captured_main_1): Disable styling in batch mode.
13605
0c95f9ed
TT
136062019-02-20 Tom Tromey <tom@tromey.com>
13607
13608 * symtab.c (symtab_symbol_info): Fix typos.
13609
c763b894
TT
136102019-02-20 Tom Tromey <tromey@adacore.com>
13611
13612 * findcmd.c (_initialize_mem_search): Use upper case for
13613 metasyntactic variables.
13614
0ef8a082
AH
136152019-02-20 Alan Hayward <alan.hayward@arm.com>
13616
13617 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13618 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13619
6caa91b6
SM
136202019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13621
13622 * top.h (source_file_name): Change to std::string.
13623 * top.c (source_file_name): Likewise.
13624 (command_line_input): Adjust.
13625 * cli/cli-script.c (script_from_file): Adjust.
13626
98814c6c
TT
136272019-02-19 Tom Tromey <tromey@adacore.com>
13628
13629 * ravenscar-thread.c
13630 (ravenscar_thread_target::update_thread_list): Don't call
13631 ada_build_task_list.
13632 * ada-lang.h (ada_build_task_list): Don't declare.
13633 * ada-tasks.c (struct ada_tasks_inferior_data)
13634 <task_list_valid_p>: Now bool.
13635 (read_known_tasks, ada_task_list_changed)
13636 (ada_tasks_invalidate_inferior_data): Update.
13637 (read_known_tasks_array): Return bool.
13638 (read_known_tasks_list): Likewise.
13639 (read_known_tasks): Return void.
13640 (ada_build_task_list): Now static.
13641
70cd633e
AB
136422019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13643
13644 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13645 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13646
040b3e95
PW
136472019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13648
13649 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13650 variant for ada_tasks_pspace_data_handle and
13651 ada_tasks_inferior_data_handle.
13652 (ada_tasks_pspace_data_cleanup): New function.
13653 (ada_tasks_inferior_data_cleanup): New function.
13654
9409233b
TT
136552019-02-17 Tom Tromey <tom@tromey.com>
13656
13657 * macrotab.h (macro_source_fullname): Return a std::string.
13658 * macrotab.c (macro_include, check_for_redefinition)
13659 (macro_undef, macro_lookup_definition, foreach_macro)
13660 (foreach_macro_in_scope): Update.
13661 (macro_source_fullname): Return a std::string.
13662 * macrocmd.c (show_pp_source_pos): Update.
13663
6506371f
TT
136642019-02-17 Tom Tromey <tom@tromey.com>
13665
13666 * macrocmd.c (show_pp_source_pos): Style the file names.
13667
0c820d67
TT
136682019-02-17 Tom Tromey <tom@tromey.com>
13669
13670 PR tui/24197:
13671 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13672
a0087920
TT
136732019-02-17 Tom Tromey <tom@tromey.com>
13674
13675 * ada-lang.c (user_select_syms): Use filtered printing.
13676 * utils.c (wrap_style): New global.
13677 (desired_style): Remove.
13678 (emit_style_escape): Add stream parameter.
13679 (set_output_style, reset_terminal_style, prompt_for_continue):
13680 Update.
13681 (flush_wrap_buffer): Only flush gdb_stdout.
13682 (wrap_here): Set wrap_style.
13683 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13684 treat escape sequences as a character. Change when wrap buffer is
13685 flushed.
13686 (fputs_styled): Do not set the output style when the default is
13687 requested.
13688 * ui-style.h (struct ui_file_style) <is_default>: New method.
13689 * source.c (print_source_lines_base): Emit escape sequences in one
13690 piece.
13691
75ba10dc
JB
136922019-02-17 Joel Brobecker <brobecker@adacore.com>
13693
13694 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13695 integers and enumeration types.
13696
a2cd4f14
JB
136972019-02-17 Joel Brobecker <brobecker@adacore.com>
13698
13699 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13700 instead of lookup_symbol_in_language
13701 (do_exact_match): New function.
13702 (ada_get_symbol_name_matcher): Return do_exact_match when
13703 doing a verbatim match.
13704
485b851b
TT
137052019-02-15 Tom Tromey <tromey@adacore.com>
13706
13707 * ravenscar-thread.c (ravenscar_thread_target::resume)
13708 (ravenscar_thread_target::wait): Special case wildcard requests.
13709
0b790b1e
TT
137102019-02-15 Tom Tromey <tromey@adacore.com>
13711
13712 * ravenscar-thread.c (base_ptid): Remove.
13713 (struct ravenscar_thread_target) <close>: New method.
13714 <m_base_ptid>: New member.
13715 <update_inferior_ptid, active_task, task_is_currently_active,
13716 runtime_initialized>: Declare methods.
13717 <ravenscar_thread_target>: Add constructor.
13718 (ravenscar_thread_target::task_is_currently_active)
13719 (ravenscar_thread_target::update_inferior_ptid)
13720 (ravenscar_runtime_initialized): Rename. Now methods.
13721 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13722 (ravenscar_thread_target::update_thread_list): Update.
13723 (ravenscar_thread_target::active_task): Now method.
13724 (ravenscar_thread_target::store_registers)
13725 (ravenscar_thread_target::prepare_to_store)
13726 (ravenscar_thread_target::prepare_to_store)
13727 (ravenscar_thread_target::mourn_inferior): Update.
13728 (ravenscar_inferior_created): Use "new" to create target.
13729 (ravenscar_thread_target::get_ada_task_ptid): Update.
13730 (_initialize_ravenscar): Don't initialize base_ptid.
13731 (ravenscar_ops): Remove global.
13732
dea57a62
TT
137332019-02-15 Tom Tromey <tromey@adacore.com>
13734
13735 * target.h (push_target): Declare new overload.
13736 * target.c (push_target): New overload, taking an rvalue reference.
13737 * remote.c (remote_target::open_1): Use push_target overload.
13738 * corelow.c (core_target_open): Use push_target overload.
13739
989f3c58
TT
137402019-02-15 Tom Tromey <tromey@adacore.com>
13741
13742 * ravenscar-thread.c (is_ravenscar_task)
13743 (ravenscar_task_is_currently_active): Return bool.
13744 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13745 (_initialize_ravenscar): Remove "(void)".
13746 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13747 Return bool.
13748
6cbcc006
TT
137492019-02-15 Tom Tromey <tromey@adacore.com>
13750
13751 * ravenscar-thread.c (ravenscar_runtime_initializer)
13752 (has_ravenscar_runtime, get_running_thread_id)
13753 (ravenscar_thread_target::resume): Fix indentation.
13754
7657f14d
TT
137552019-02-15 Tom Tromey <tromey@adacore.com>
13756
13757 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13758 from ravenscar_arch_ops.
13759 (sparc_ravenscar_ops::fetch_registers)
13760 (sparc_ravenscar_ops::store_registers): Now methods.
13761 (sparc_ravenscar_prepare_to_store): Remove.
13762 (sparc_ravenscar_ops): Redefine.
13763 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13764 methods and destructor. Remove members.
13765 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13766 (ravenscar_thread_target::store_registers)
13767 (ravenscar_thread_target::prepare_to_store): Update.
13768 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13769 Remove.
13770 (struct ppc_ravenscar_powerpc_ops): Derive from
13771 ravenscar_arch_ops.
13772 (ppc_ravenscar_powerpc_ops::fetch_registers)
13773 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13774 (ppc_ravenscar_powerpc_ops): Redefine.
13775 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13776 (ppc_ravenscar_e500_ops::fetch_registers)
13777 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13778 (ppc_ravenscar_e500_ops): Redefine.
13779 * aarch64-ravenscar-thread.c
13780 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13781 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13782 (aarch64_ravenscar_fetch_registers)
13783 (aarch64_ravenscar_store_registers): Now methods.
13784 (aarch64_ravenscar_ops): Redefine.
13785
5b6ea500
TT
137862019-02-15 Tom Tromey <tromey@adacore.com>
13787
13788 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13789 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13790 (ravenscar_thread_target::stopped_by_watchpoint)
13791 (ravenscar_thread_target::stopped_data_address)
13792 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13793
e397fd39
TT
137942019-02-15 Tom Tromey <tromey@adacore.com>
13795
13796 * ravenscar-thread.c: Fix some typos.
13797
cc12f4a8
TT
137982019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13799 Tom Tromey <tromey@adacore.com>
13800
13801 * ada-lang.c (ada_exception_sal): Change addr_string to a
13802 std::string.
13803 (create_ada_exception_catchpoint): Update.
13804
5f486660
TT
138052019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13806 Tom Tromey <tromey@adacore.com>
13807
13808 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13809 (bp_location_ops): Remove.
13810 (base_breakpoint_allocate_location): Update.
13811 (free_bp_location): Update.
13812 * ada-lang.c (class ada_catchpoint_location)
13813 <ada_catchpoint_location>: Remove ops parameter.
13814 (ada_catchpoint_location_dtor): Remove.
13815 (ada_catchpoint_location_ops): Remove.
13816 (allocate_location_exception): Update.
13817 * breakpoint.h (struct bp_location_ops): Remove.
13818 (class bp_location) <bp_location>: Remove bp_location_ops
13819 parameter.
13820 <~bp_location>: Add destructor.
13821 <ops>: Remove.
13822
b671c7fb
TS
138232019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13824 Pedro Alves <palves@redhat.com>
13825
13826 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13827 'PATH_MAX'.
13828
8071c5ce
DM
138292019-02-14 David Michael <fedora.dm0@gmail.com>
13830 Samuel Thibault <samuel.thibault@gnu.org>
13831 Thomas Schwinge <thomas@codesourcery.com>
13832
13833 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13834 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13835
b1041ae0
TS
138362019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13837
924514e1
TS
13838 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13839 (check_empty): Use "const char *".
13840
c29ee8d4
TS
13841 * gnu-nat.c (gnu_nat_target::detach): Instead of
13842 'detach_inferior (pid)' call
13843 'detach_inferior (find_inferior_pid (pid))'.
13844
6c6ef69f
TS
13845 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13846 'nat/fork-inferior.o'.
13847 * gnu-nat.c: #include "nat/fork-inferior.h".
13848
2d0a338c
TS
13849 * gnu-nat.c (gnu_nat_target::detach): Instead of
13850 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13851 * gnu-nat.h: #include "inf-child.h".
13852 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13853 'i386_gnu_nat_target::fetch_registers'.
13854 (gnu_store_registers): Rename/move to
13855 'i386_gnu_nat_target::store_registers'.
13856
cabb5f06
TS
13857 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13858 * gnu-nat.h (mach_thread_info): New function.
13859 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13860
b1041ae0
TS
13861 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13862
2988d01e
KF
138632019-02-14 Frederic Konrad <konrad@adacore.com>
13864
13865 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13866
c559d709
JB
138672019-02-14 Joel Brobecker <brobecker@adacore.com>
13868
13869 * windows-nat.c (windows_add_thread): Add new parameter
13870 "main_thread_p" with default value set to false. Update
13871 function documentation as well as all callers.
13872 (windows_delete_thread): Likewise.
13873 (fake_create_process): Update call to windows_add_thread.
13874 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13875 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13876 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13877 call to windows_delete_thread.
13878
007024cc
SM
138792019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13880
13881 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13882
f62318e9
JB
138832019-02-12 John Baldwin <jhb@FreeBSD.org>
13884
13885 * symfile.c (find_separate_debug_file): Use canonical path of
13886 sysroot with child_path instead of gdb_sysroot if it is valid.
13887
cd4b7848
JB
138882019-02-12 John Baldwin <jhb@FreeBSD.org>
13889
13890 * symfile.c (find_separate_debug_file): Use child_path to
13891 determine if an object file is under a sysroot.
13892
efac4bfe
JB
138932019-02-12 John Baldwin <jhb@FreeBSD.org>
13894
13895 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13896 unittests/child-path-selftests.c.
13897 * common/pathstuff.c (child_path): New function.
13898 * common/pathstuff.h (child_path): New prototype.
13899 * unittests/child-path-selftests.c: New file.
13900
402d2bfe
JB
139012019-02-12 John Baldwin <jhb@FreeBSD.org>
13902
13903 * symfile.c (find_separate_debug_file): Look for separate debug
13904 files in debug directories under the sysroot.
13905
1ed9f74e
PW
139062019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13907
13908 * symtab.h (struct minimal_symbol data_p): New const method.
13909 (struct minimal_symbol text_p): Likewise.
13910 * symtab.c (output_source_filename): Use file name style
13911 to print file name.
13912 (print_symbol_info): Likewise.
13913 (print_msymbol_info): Use address style to print addresses.
13914 Use function name style to print executable text symbols.
13915 (expand_symtab_containing_pc): Use data_p.
13916 (find_pc_sect_compunit_symtab): Likewise.
13917
2636d81d
PW
139182019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13919
13920 * breakpoint.c (describe_other_breakpoints): Use address style
13921 to print addresses.
13922 (say_where): Likewise.
13923
ac8c53cc
PW
139242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13925
13926 * ada-typeprint.c (print_func_type): Print function name
13927 style to print function name.
13928 * c-typeprint.c (c_print_type_1): Likewise.
13929
ea638c43
AH
139302019-02-11 Alan Hayward <alan.hayward@arm.com>
13931
13932 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13933 for execve.
13934
ab759ca8
PW
139352019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13936
13937 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13938 type_stack.
13939
aff29d1c
JB
139402019-02-10 Joel Brobecker <brobecker@adacore.com>
13941
13942 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13943 TYPE_CODE_REF types.
13944
617126bc
JW
139452019-02-08 Jim Wilson <jimw@sifive.com>
13946
13947 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13948 (riscv_linux_fregset): New.
13949 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13950
46e3ed7f
TT
139512019-02-07 Tom Tromey <tom@tromey.com>
13952
13953 * thread.c (thread_cancel_execution_command): Update.
13954 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13955 methods.
13956 (struct thread_fsm_ops): Remove.
13957 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13958 (thread_fsm_should_stop, thread_fsm_return_value)
13959 (thread_fsm_set_finished, thread_fsm_finished_p)
13960 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13961 Don't declare.
13962 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13963 * infrun.c (clear_proceed_status_thread)
13964 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13965 (print_stop_event): Update.
13966 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13967 Add constructor.
13968 (step_command_fsm_ops): Remove.
13969 (new_step_command_fsm): Remove.
13970 (step_1): Update.
13971 (step_command_fsm::should_stop): Rename from
13972 step_command_fsm_should_stop.
13973 (step_command_fsm::clean_up): Rename from
13974 step_command_fsm_clean_up.
13975 (step_command_fsm::do_async_reply_reason): Rename from
13976 step_command_fsm_async_reply_reason.
13977 (struct until_next_fsm): Inherit from thread_fsm. Add
13978 constructor.
13979 (until_next_fsm_ops): Remove.
13980 (new_until_next_fsm): Remove.
13981 (until_next_fsm::should_stop): Rename from
13982 until_next_fsm_should_stop.
13983 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13984 (until_next_fsm::do_async_reply_reason): Rename from
13985 until_next_fsm_async_reply_reason.
13986 (struct finish_command_fsm): Inherit from thread_fsm. Add
13987 constructor. Change type of breakpoint.
13988 (finish_command_fsm_ops): Remove.
13989 (new_finish_command_fsm): Remove.
13990 (finish_command_fsm::should_stop): Rename from
13991 finish_command_fsm_should_stop.
13992 (finish_command_fsm::clean_up): Rename from
13993 finish_command_fsm_clean_up.
13994 (finish_command_fsm::return_value): Rename from
13995 finish_command_fsm_return_value.
13996 (finish_command_fsm::do_async_reply_reason): Rename from
13997 finish_command_fsm_async_reply_reason.
13998 (finish_command): Update.
13999 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14000 Add constructor.
14001 (call_thread_fsm_ops): Remove.
14002 (call_thread_fsm::call_thread_fsm): Rename from
14003 new_call_thread_fsm.
14004 (call_thread_fsm::should_stop): Rename from
14005 call_thread_fsm_should_stop.
14006 (call_thread_fsm::should_notify_stop): Rename from
14007 call_thread_fsm_should_notify_stop.
14008 (run_inferior_call, call_function_by_hand_dummy): Update.
14009 * cli/cli-interp.c (should_print_stop_to_console): Update.
14010 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14011 Add constructor. Change type of location_breakpoint,
14012 caller_breakpoint.
14013 (until_break_fsm_ops): Remove.
14014 (new_until_break_fsm): Remove.
14015 (until_break_fsm::should_stop): Rename from
14016 until_break_fsm_should_stop.
14017 (until_break_fsm::clean_up): Rename from
14018 until_break_fsm_clean_up.
14019 (until_break_fsm::do_async_reply_reason): Rename from
14020 until_break_fsm_async_reply_reason.
14021 (until_break_command): Update.
14022 * thread-fsm.c: Remove.
14023 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14024
1a5c2598
TT
140252019-02-07 Tom Tromey <tom@tromey.com>
14026
14027 * yy-remap.h: Add include guard.
14028 * xtensa-tdep.h: Add include guard.
14029 * xcoffread.h: Rename include guard.
14030 * varobj-iter.h: Add include guard.
14031 * tui/tui.h: Rename include guard.
14032 * tui/tui-winsource.h: Rename include guard.
14033 * tui/tui-wingeneral.h: Rename include guard.
14034 * tui/tui-windata.h: Rename include guard.
14035 * tui/tui-win.h: Rename include guard.
14036 * tui/tui-stack.h: Rename include guard.
14037 * tui/tui-source.h: Rename include guard.
14038 * tui/tui-regs.h: Rename include guard.
14039 * tui/tui-out.h: Rename include guard.
14040 * tui/tui-layout.h: Rename include guard.
14041 * tui/tui-io.h: Rename include guard.
14042 * tui/tui-hooks.h: Rename include guard.
14043 * tui/tui-file.h: Rename include guard.
14044 * tui/tui-disasm.h: Rename include guard.
14045 * tui/tui-data.h: Rename include guard.
14046 * tui/tui-command.h: Rename include guard.
14047 * tic6x-tdep.h: Add include guard.
14048 * target/waitstatus.h: Rename include guard.
14049 * target/wait.h: Rename include guard.
14050 * target/target.h: Rename include guard.
14051 * target/resume.h: Rename include guard.
14052 * target-float.h: Rename include guard.
14053 * stabsread.h: Add include guard.
14054 * rs6000-tdep.h: Add include guard.
14055 * riscv-fbsd-tdep.h: Add include guard.
14056 * regformats/regdef.h: Rename include guard.
14057 * record.h: Rename include guard.
14058 * python/python.h: Rename include guard.
14059 * python/python-internal.h: Rename include guard.
14060 * python/py-stopevent.h: Rename include guard.
14061 * python/py-ref.h: Rename include guard.
14062 * python/py-record.h: Rename include guard.
14063 * python/py-record-full.h: Rename include guard.
14064 * python/py-record-btrace.h: Rename include guard.
14065 * python/py-instruction.h: Rename include guard.
14066 * python/py-events.h: Rename include guard.
14067 * python/py-event.h: Rename include guard.
14068 * procfs.h: Add include guard.
14069 * proc-utils.h: Add include guard.
14070 * p-lang.h: Add include guard.
14071 * or1k-tdep.h: Rename include guard.
14072 * observable.h: Rename include guard.
14073 * nto-tdep.h: Rename include guard.
14074 * nat/x86-linux.h: Rename include guard.
14075 * nat/x86-linux-dregs.h: Rename include guard.
14076 * nat/x86-gcc-cpuid.h: Add include guard.
14077 * nat/x86-dregs.h: Rename include guard.
14078 * nat/x86-cpuid.h: Rename include guard.
14079 * nat/ppc-linux.h: Rename include guard.
14080 * nat/mips-linux-watch.h: Rename include guard.
14081 * nat/linux-waitpid.h: Rename include guard.
14082 * nat/linux-ptrace.h: Rename include guard.
14083 * nat/linux-procfs.h: Rename include guard.
14084 * nat/linux-osdata.h: Rename include guard.
14085 * nat/linux-nat.h: Rename include guard.
14086 * nat/linux-namespaces.h: Rename include guard.
14087 * nat/linux-btrace.h: Rename include guard.
14088 * nat/glibc_thread_db.h: Rename include guard.
14089 * nat/gdb_thread_db.h: Rename include guard.
14090 * nat/gdb_ptrace.h: Rename include guard.
14091 * nat/fork-inferior.h: Rename include guard.
14092 * nat/amd64-linux-siginfo.h: Rename include guard.
14093 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14094 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14095 * nat/aarch64-linux.h: Rename include guard.
14096 * nat/aarch64-linux-hw-point.h: Rename include guard.
14097 * mn10300-tdep.h: Add include guard.
14098 * mips-linux-tdep.h: Add include guard.
14099 * mi/mi-parse.h: Rename include guard.
14100 * mi/mi-out.h: Rename include guard.
14101 * mi/mi-main.h: Rename include guard.
14102 * mi/mi-interp.h: Rename include guard.
14103 * mi/mi-getopt.h: Rename include guard.
14104 * mi/mi-console.h: Rename include guard.
14105 * mi/mi-common.h: Rename include guard.
14106 * mi/mi-cmds.h: Rename include guard.
14107 * mi/mi-cmd-break.h: Rename include guard.
14108 * m2-lang.h: Add include guard.
14109 * location.h: Rename include guard.
14110 * linux-record.h: Rename include guard.
14111 * linux-nat.h: Add include guard.
14112 * linux-fork.h: Add include guard.
14113 * i386-darwin-tdep.h: Rename include guard.
14114 * hppa-linux-offsets.h: Add include guard.
14115 * guile/guile.h: Rename include guard.
14116 * guile/guile-internal.h: Rename include guard.
14117 * gnu-nat.h: Rename include guard.
14118 * gdb-stabs.h: Rename include guard.
14119 * frv-tdep.h: Add include guard.
14120 * f-lang.h: Add include guard.
14121 * event-loop.h: Add include guard.
14122 * darwin-nat.h: Rename include guard.
14123 * cp-abi.h: Rename include guard.
14124 * config/sparc/nm-sol2.h: Rename include guard.
14125 * config/nm-nto.h: Rename include guard.
14126 * config/nm-linux.h: Add include guard.
14127 * config/i386/nm-i386gnu.h: Rename include guard.
14128 * config/djgpp/nl_types.h: Rename include guard.
14129 * config/djgpp/langinfo.h: Rename include guard.
14130 * compile/gcc-cp-plugin.h: Add include guard.
14131 * compile/gcc-c-plugin.h: Add include guard.
14132 * compile/compile.h: Rename include guard.
14133 * compile/compile-object-run.h: Rename include guard.
14134 * compile/compile-object-load.h: Rename include guard.
14135 * compile/compile-internal.h: Rename include guard.
14136 * compile/compile-cplus.h: Rename include guard.
14137 * compile/compile-c.h: Rename include guard.
14138 * common/xml-utils.h: Rename include guard.
14139 * common/x86-xstate.h: Rename include guard.
14140 * common/version.h: Rename include guard.
14141 * common/vec.h: Rename include guard.
14142 * common/tdesc.h: Rename include guard.
14143 * common/selftest.h: Rename include guard.
14144 * common/scoped_restore.h: Rename include guard.
14145 * common/scoped_mmap.h: Rename include guard.
14146 * common/scoped_fd.h: Rename include guard.
14147 * common/safe-iterator.h: Rename include guard.
14148 * common/run-time-clock.h: Rename include guard.
14149 * common/refcounted-object.h: Rename include guard.
14150 * common/queue.h: Rename include guard.
14151 * common/ptid.h: Rename include guard.
14152 * common/print-utils.h: Rename include guard.
14153 * common/preprocessor.h: Rename include guard.
14154 * common/pathstuff.h: Rename include guard.
14155 * common/observable.h: Rename include guard.
14156 * common/netstuff.h: Rename include guard.
14157 * common/job-control.h: Rename include guard.
14158 * common/host-defs.h: Rename include guard.
14159 * common/gdb_wait.h: Rename include guard.
14160 * common/gdb_vecs.h: Rename include guard.
14161 * common/gdb_unlinker.h: Rename include guard.
14162 * common/gdb_unique_ptr.h: Rename include guard.
14163 * common/gdb_tilde_expand.h: Rename include guard.
14164 * common/gdb_sys_time.h: Rename include guard.
14165 * common/gdb_string_view.h: Rename include guard.
14166 * common/gdb_splay_tree.h: Rename include guard.
14167 * common/gdb_setjmp.h: Rename include guard.
14168 * common/gdb_ref_ptr.h: Rename include guard.
14169 * common/gdb_optional.h: Rename include guard.
14170 * common/gdb_locale.h: Rename include guard.
14171 * common/gdb_assert.h: Rename include guard.
14172 * common/filtered-iterator.h: Rename include guard.
14173 * common/filestuff.h: Rename include guard.
14174 * common/fileio.h: Rename include guard.
14175 * common/environ.h: Rename include guard.
14176 * common/common-utils.h: Rename include guard.
14177 * common/common-types.h: Rename include guard.
14178 * common/common-regcache.h: Rename include guard.
14179 * common/common-inferior.h: Rename include guard.
14180 * common/common-gdbthread.h: Rename include guard.
14181 * common/common-exceptions.h: Rename include guard.
14182 * common/common-defs.h: Rename include guard.
14183 * common/common-debug.h: Rename include guard.
14184 * common/cleanups.h: Rename include guard.
14185 * common/buffer.h: Rename include guard.
14186 * common/btrace-common.h: Rename include guard.
14187 * common/break-common.h: Rename include guard.
14188 * cli/cli-utils.h: Rename include guard.
14189 * cli/cli-style.h: Rename include guard.
14190 * cli/cli-setshow.h: Rename include guard.
14191 * cli/cli-script.h: Rename include guard.
14192 * cli/cli-interp.h: Rename include guard.
14193 * cli/cli-decode.h: Rename include guard.
14194 * cli/cli-cmds.h: Rename include guard.
14195 * charset-list.h: Add include guard.
14196 * buildsym-legacy.h: Rename include guard.
14197 * bfin-tdep.h: Add include guard.
14198 * ax.h: Rename include guard.
14199 * arm-linux-tdep.h: Add include guard.
14200 * arm-fbsd-tdep.h: Add include guard.
14201 * arch/xtensa.h: Rename include guard.
14202 * arch/tic6x.h: Add include guard.
14203 * arch/i386.h: Add include guard.
14204 * arch/arm.h: Rename include guard.
14205 * arch/arm-linux.h: Rename include guard.
14206 * arch/arm-get-next-pcs.h: Rename include guard.
14207 * arch/amd64.h: Add include guard.
14208 * arch/aarch64-insn.h: Rename include guard.
14209 * arch-utils.h: Rename include guard.
14210 * annotate.h: Add include guard.
14211 * amd64-darwin-tdep.h: Rename include guard.
14212 * aarch64-linux-tdep.h: Add include guard.
14213 * aarch64-fbsd-tdep.h: Add include guard.
14214 * aarch32-linux-nat.h: Add include guard.
14215
ab9268d2
PW
142162019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14217
14218 * macrotab.c (macro_define_internal): New function that
14219 factorizes macro_define_object_internal and macro_define_function
14220 code.
14221 (macro_define_object_internal): Use macro_define_internal.
14222 (macro_define_function): Likewise.
14223
bb0da2b4
PW
142242019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14225
14226 * macrocmd.c (extract_identifier): Return
14227 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14228 callers.
14229
424eb552
JB
142302019-02-06 John Baldwin <jhb@FreeBSD.org>
14231
14232 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14233
1688cb29
TT
142342019-02-05 Tom Tromey <tom@tromey.com>
14235
14236 * target.c (target_stack::unpush): Move assertion earlier.
14237
b5eba2d8
TT
142382019-01-30 Tom Tromey <tom@tromey.com>
14239
14240 PR python/23615:
14241 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14242 (gdbpy_parse_and_eval): Likewise.
14243 * python/python-internal.h (gdbpy_allow_threads): New class.
14244
7054e2ff
JB
142452019-01-28 John Baldwin <jhb@FreeBSD.org>
14246
14247 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14248 (aarch64_fbsd_fpregmap): Move earlier.
14249 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14250 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14251 instead of individual calls to trad_frame_set_reg_addr.
14252 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14253 earlier.
14254 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14255 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14256 instead of individual calls to trad_frame_set_reg_addr.
14257
36c25ffa
AH
142582019-01-28 Alan Hayward <alan.hayward@arm.com>
14259
14260 * CONTRIBUTE: Replace contribution list with wiki link.
14261
a0707f3c
TT
142622019-01-25 Tom Tromey <tom@tromey.com>
14263
14264 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14265
0747795c
TT
142662019-01-25 Tom Tromey <tom@tromey.com>
14267
14268 * xtensa-linux-nat.c: Fix common/ includes.
14269 * xml-support.h: Fix common/ includes.
14270 * xml-support.c: Fix common/ includes.
14271 * x86-linux-nat.c: Fix common/ includes.
14272 * windows-nat.c: Fix common/ includes.
14273 * varobj.h: Fix common/ includes.
14274 * varobj.c: Fix common/ includes.
14275 * value.c: Fix common/ includes.
14276 * valops.c: Fix common/ includes.
14277 * utils.c: Fix common/ includes.
14278 * unittests/xml-utils-selftests.c: Fix common/ includes.
14279 * unittests/utils-selftests.c: Fix common/ includes.
14280 * unittests/unpack-selftests.c: Fix common/ includes.
14281 * unittests/tracepoint-selftests.c: Fix common/ includes.
14282 * unittests/style-selftests.c: Fix common/ includes.
14283 * unittests/string_view-selftests.c: Fix common/ includes.
14284 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14285 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14286 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14287 * unittests/rsp-low-selftests.c: Fix common/ includes.
14288 * unittests/parse-connection-spec-selftests.c: Fix common/
14289 includes.
14290 * unittests/optional-selftests.c: Fix common/ includes.
14291 * unittests/offset-type-selftests.c: Fix common/ includes.
14292 * unittests/observable-selftests.c: Fix common/ includes.
14293 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14294 * unittests/memrange-selftests.c: Fix common/ includes.
14295 * unittests/memory-map-selftests.c: Fix common/ includes.
14296 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14297 * unittests/function-view-selftests.c: Fix common/ includes.
14298 * unittests/environ-selftests.c: Fix common/ includes.
14299 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14300 * unittests/common-utils-selftests.c: Fix common/ includes.
14301 * unittests/cli-utils-selftests.c: Fix common/ includes.
14302 * unittests/array-view-selftests.c: Fix common/ includes.
14303 * ui-file.c: Fix common/ includes.
14304 * tui/tui-io.c: Fix common/ includes.
14305 * tracepoint.h: Fix common/ includes.
14306 * tracepoint.c: Fix common/ includes.
14307 * tracefile-tfile.c: Fix common/ includes.
14308 * top.h: Fix common/ includes.
14309 * top.c: Fix common/ includes.
14310 * thread.c: Fix common/ includes.
14311 * target/waitstatus.h: Fix common/ includes.
14312 * target/waitstatus.c: Fix common/ includes.
14313 * target.h: Fix common/ includes.
14314 * target.c: Fix common/ includes.
14315 * target-memory.c: Fix common/ includes.
14316 * target-descriptions.c: Fix common/ includes.
14317 * symtab.h: Fix common/ includes.
14318 * symfile.c: Fix common/ includes.
14319 * stap-probe.c: Fix common/ includes.
14320 * spu-linux-nat.c: Fix common/ includes.
14321 * sparc-nat.c: Fix common/ includes.
14322 * source.c: Fix common/ includes.
14323 * solib.c: Fix common/ includes.
14324 * solib-target.c: Fix common/ includes.
14325 * ser-unix.c: Fix common/ includes.
14326 * ser-tcp.c: Fix common/ includes.
14327 * ser-pipe.c: Fix common/ includes.
14328 * ser-base.c: Fix common/ includes.
14329 * selftest-arch.c: Fix common/ includes.
14330 * s12z-tdep.c: Fix common/ includes.
14331 * rust-exp.y: Fix common/ includes.
14332 * rs6000-aix-tdep.c: Fix common/ includes.
14333 * riscv-tdep.c: Fix common/ includes.
14334 * remote.c: Fix common/ includes.
14335 * remote-notif.h: Fix common/ includes.
14336 * remote-fileio.h: Fix common/ includes.
14337 * remote-fileio.c: Fix common/ includes.
14338 * regcache.h: Fix common/ includes.
14339 * regcache.c: Fix common/ includes.
14340 * record-btrace.c: Fix common/ includes.
14341 * python/python.c: Fix common/ includes.
14342 * python/py-type.c: Fix common/ includes.
14343 * python/py-inferior.c: Fix common/ includes.
14344 * progspace.h: Fix common/ includes.
14345 * producer.c: Fix common/ includes.
14346 * procfs.c: Fix common/ includes.
14347 * proc-api.c: Fix common/ includes.
14348 * printcmd.c: Fix common/ includes.
14349 * ppc-linux-nat.c: Fix common/ includes.
14350 * parser-defs.h: Fix common/ includes.
14351 * osdata.c: Fix common/ includes.
14352 * obsd-nat.c: Fix common/ includes.
14353 * nat/x86-linux.c: Fix common/ includes.
14354 * nat/x86-linux-dregs.c: Fix common/ includes.
14355 * nat/x86-dregs.h: Fix common/ includes.
14356 * nat/x86-dregs.c: Fix common/ includes.
14357 * nat/ppc-linux.c: Fix common/ includes.
14358 * nat/mips-linux-watch.h: Fix common/ includes.
14359 * nat/mips-linux-watch.c: Fix common/ includes.
14360 * nat/linux-waitpid.c: Fix common/ includes.
14361 * nat/linux-ptrace.h: Fix common/ includes.
14362 * nat/linux-ptrace.c: Fix common/ includes.
14363 * nat/linux-procfs.c: Fix common/ includes.
14364 * nat/linux-personality.c: Fix common/ includes.
14365 * nat/linux-osdata.c: Fix common/ includes.
14366 * nat/linux-namespaces.c: Fix common/ includes.
14367 * nat/linux-btrace.h: Fix common/ includes.
14368 * nat/linux-btrace.c: Fix common/ includes.
14369 * nat/fork-inferior.c: Fix common/ includes.
14370 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14371 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14372 * nat/aarch64-linux.c: Fix common/ includes.
14373 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14374 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14375 * namespace.h: Fix common/ includes.
14376 * mips-linux-tdep.c: Fix common/ includes.
14377 * minsyms.c: Fix common/ includes.
14378 * mi/mi-parse.h: Fix common/ includes.
14379 * mi/mi-main.c: Fix common/ includes.
14380 * mi/mi-cmd-env.c: Fix common/ includes.
14381 * memrange.h: Fix common/ includes.
14382 * memattr.c: Fix common/ includes.
14383 * maint.h: Fix common/ includes.
14384 * maint.c: Fix common/ includes.
14385 * main.c: Fix common/ includes.
14386 * machoread.c: Fix common/ includes.
14387 * location.c: Fix common/ includes.
14388 * linux-thread-db.c: Fix common/ includes.
14389 * linux-nat.c: Fix common/ includes.
14390 * linux-fork.c: Fix common/ includes.
14391 * inline-frame.c: Fix common/ includes.
14392 * infrun.c: Fix common/ includes.
14393 * inflow.c: Fix common/ includes.
14394 * inferior.h: Fix common/ includes.
14395 * inferior.c: Fix common/ includes.
14396 * infcmd.c: Fix common/ includes.
14397 * inf-ptrace.c: Fix common/ includes.
14398 * inf-child.c: Fix common/ includes.
14399 * ia64-linux-nat.c: Fix common/ includes.
14400 * i387-tdep.c: Fix common/ includes.
14401 * i386-tdep.c: Fix common/ includes.
14402 * i386-linux-tdep.c: Fix common/ includes.
14403 * i386-linux-nat.c: Fix common/ includes.
14404 * i386-go32-tdep.c: Fix common/ includes.
14405 * i386-fbsd-tdep.c: Fix common/ includes.
14406 * i386-fbsd-nat.c: Fix common/ includes.
14407 * guile/scm-type.c: Fix common/ includes.
14408 * guile/guile.c: Fix common/ includes.
14409 * go32-nat.c: Fix common/ includes.
14410 * gnu-nat.c: Fix common/ includes.
14411 * gdbthread.h: Fix common/ includes.
14412 * gdbarch-selftests.c: Fix common/ includes.
14413 * gdb_usleep.c: Fix common/ includes.
14414 * gdb_select.h: Fix common/ includes.
14415 * gdb_bfd.c: Fix common/ includes.
14416 * gcore.c: Fix common/ includes.
14417 * fork-child.c: Fix common/ includes.
14418 * findvar.c: Fix common/ includes.
14419 * fbsd-nat.c: Fix common/ includes.
14420 * event-top.c: Fix common/ includes.
14421 * event-loop.c: Fix common/ includes.
14422 * dwarf2read.c: Fix common/ includes.
14423 * dwarf2loc.c: Fix common/ includes.
14424 * dwarf2-frame.c: Fix common/ includes.
14425 * dwarf-index-cache.c: Fix common/ includes.
14426 * dtrace-probe.c: Fix common/ includes.
14427 * disasm-selftests.c: Fix common/ includes.
14428 * defs.h: Fix common/ includes.
14429 * csky-tdep.c: Fix common/ includes.
14430 * cp-valprint.c: Fix common/ includes.
14431 * cp-support.h: Fix common/ includes.
14432 * cp-support.c: Fix common/ includes.
14433 * corelow.c: Fix common/ includes.
14434 * completer.h: Fix common/ includes.
14435 * completer.c: Fix common/ includes.
14436 * compile/compile.c: Fix common/ includes.
14437 * compile/compile-loc2c.c: Fix common/ includes.
14438 * compile/compile-cplus-types.c: Fix common/ includes.
14439 * compile/compile-cplus-symbols.c: Fix common/ includes.
14440 * command.h: Fix common/ includes.
14441 * cli/cli-dump.c: Fix common/ includes.
14442 * cli/cli-cmds.c: Fix common/ includes.
14443 * charset.c: Fix common/ includes.
14444 * build-id.c: Fix common/ includes.
14445 * btrace.h: Fix common/ includes.
14446 * btrace.c: Fix common/ includes.
14447 * breakpoint.h: Fix common/ includes.
14448 * breakpoint.c: Fix common/ includes.
14449 * ax.h:
14450 (enum agent_op): Fix common/ includes.
14451 * ax-general.c (struct aop_map): Fix common/ includes.
14452 * ax-gdb.c: Fix common/ includes.
14453 * auxv.c: Fix common/ includes.
14454 * auto-load.c: Fix common/ includes.
14455 * arm-tdep.c: Fix common/ includes.
14456 * arch/riscv.c: Fix common/ includes.
14457 * arch/ppc-linux-common.c: Fix common/ includes.
14458 * arch/i386.c: Fix common/ includes.
14459 * arch/arm.c: Fix common/ includes.
14460 * arch/arm-linux.c: Fix common/ includes.
14461 * arch/arm-get-next-pcs.c: Fix common/ includes.
14462 * arch/amd64.c: Fix common/ includes.
14463 * arch/aarch64.c: Fix common/ includes.
14464 * arch/aarch64-insn.c: Fix common/ includes.
14465 * arch-utils.c: Fix common/ includes.
14466 * amd64-windows-tdep.c: Fix common/ includes.
14467 * amd64-tdep.c: Fix common/ includes.
14468 * amd64-sol2-tdep.c: Fix common/ includes.
14469 * amd64-obsd-tdep.c: Fix common/ includes.
14470 * amd64-nbsd-tdep.c: Fix common/ includes.
14471 * amd64-linux-tdep.c: Fix common/ includes.
14472 * amd64-linux-nat.c: Fix common/ includes.
14473 * amd64-fbsd-tdep.c: Fix common/ includes.
14474 * amd64-fbsd-nat.c: Fix common/ includes.
14475 * amd64-dicos-tdep.c: Fix common/ includes.
14476 * amd64-darwin-tdep.c: Fix common/ includes.
14477 * agent.c: Fix common/ includes.
14478 * ada-lang.h: Fix common/ includes.
14479 * ada-lang.c: Fix common/ includes.
14480 * aarch64-tdep.c: Fix common/ includes.
14481
2f5c153e
TT
144822019-01-25 Tom Tromey <tom@tromey.com>
14483
14484 * common/create-version.sh: Use common/version.h.
14485
adc6a863
PA
144862019-01-24 Pedro Alves <palves@redhat.com>
14487
14488 * infrun.c (signal_stop, signal_print, signal_program)
14489 (signal_catch, signal_pass): Now arrays instead of pointers.
14490 (update_signals_program_target, do_target_resume)
14491 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14492 * linux-nat.c (linux_nat_target::pass_signals)
14493 (linux_nat_target::create_inferior, linux_nat_target::attach):
14494 Adjust.
14495 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14496 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14497 * procfs.c (procfs_target::pass_signals): Adjust.
14498 * record-full.c (record_full_target::resume): Adjust.
14499 * remote.c (remote_target::pass_signals)
14500 (remote_target::program_signals): Adjust.
14501 * target-debug.h (target_debug_print_signals): Now takes a
14502 gdb::array_view as parameter. Adjust.
14503 * target.h (target_ops) <pass_signals, program_signals>: Replace
14504 pointer and length parameters with gdb::array_view.
14505 (target_pass_signals, target_program_signals): Likewise.
14506 * target-delegates.c: Regenerate.
14507
3046d67a
PA
145082019-01-24 Pedro Alves <palves@redhat.com>
14509
14510 * common/forward-scope-exit.h
14511 (forward_scope_exit::forward_scope_exit): Pass arguments to
14512 m_bind_function directly, instead of creating a std::bind and
14513 copying that.
14514
353229bf
AH
145152019-01-24 Alan Hayward <alan.hayward@arm.com>
14516
14517 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14518 for static members.
14519 (pass_in_v_vfp_candidate): Likewise.
14520
311dc83a
TT
145212019-01-23 Tom Tromey <tom@tromey.com>
14522 Pedro Alves <palves@redhat.com>
14523
14524 * regcache.c (class regcache_invalidator): Remove.
14525 (regcache::raw_write): Use make_scope_exit.
14526
296bd123
TT
145272019-01-23 Tom Tromey <tom@tromey.com>
14528
14529 * ui-out.h (class ui_out_emit_type): Update comment.
14530
979a0d13
TT
145312019-01-23 Tom Tromey <tom@tromey.com>
14532
14533 * infrun.c (fetch_inferior_event): Update comment.
14534
d238133d
TT
145352019-01-23 Tom Tromey <tom@tromey.com>
14536 Pedro Alves <palves@redhat.com>
14537
14538 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14539 parameter.
14540 (fetch_inferior_event): Use SCOPE_EXIT.
14541
14542
9885e6bb
TT
145432019-01-23 Tom Tromey <tom@tromey.com>
14544 Pedro Alves <palves@redhat.com>
14545
14546 * infrun.c (disable_thread_events): Delete.
14547 (stop_all_threads): Use SCOPE_EXIT.
14548
286526c1
TT
145492019-01-23 Tom Tromey <tom@tromey.com>
14550 Pedro Alves <palves@redhat.com>
14551
14552 * symfile.c: Include forward-scope-exit.h.
14553 (clear_symtab_users_cleanup): Replace forward declaration with
14554 a FORWARD_SCOPE_EXIT.
14555 (syms_from_objfile_1): Use the forward_scope_exit and
14556 gdb::optional instead of cleanup_function.
14557 (reread_symbols): Use the forward_scope_exit instead of
14558 cleanup_function.
14559 (clear_symtab_users_cleanup): Remove function.
14560
1db93f14
TT
145612019-01-23 Tom Tromey <tom@tromey.com>
14562 Pedro Alves <palves@redhat.com>
14563
14564 * linux-nat.c: Include scope-exit.h.
14565 (cleanup_target_stop): Remove.
14566 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14567 SCOPE_EXIT.
14568
2cc83d1e
TT
145692019-01-23 Tom Tromey <tom@tromey.com>
14570 Pedro Alves <palves@redhat.com>
14571
14572 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14573 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14574
694c6bf5
TT
145752019-01-23 Tom Tromey <tom@tromey.com>
14576 Andrew Burgess <andrew.burgess@embecosm.com>
14577 Pedro Alves <palves@redhat.com>
14578
14579 * infrun.c (fetch_inferior_event): Use scope_exit.
14580 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14581 * top.c (execute_command): Use scope_exit.
14582 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14583 * utils.c (do_bpstat_clear_actions_cleanup)
14584 (make_bpstat_clear_actions_cleanup): Remove.
14585
4c41382a
TT
145862019-01-23 Tom Tromey <tom@tromey.com>
14587 Pedro Alves <palves@redhat.com>
14588
14589 * infrun.c: Include "common/scope-exit.h"
14590 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14591 (wait_for_inferior): Use SCOPE_EXIT.
14592 (fetch_inferior_event): Use scope_exit.
14593
89f8fb50
TT
145942019-01-23 Tom Tromey <tom@tromey.com>
14595 Pedro Alves <palves@redhat.com>
14596
14597 * breakpoint.c (create_breakpoint): Remove cleanup.
14598
5419bdae
TT
145992019-01-23 Tom Tromey <tom@tromey.com>
14600 Andrew Burgess <andrew.burgess@embecosm.com>
14601 Pedro Alves <palves@redhat.com>
14602
e587ef42
PA
146032019-01-23 Pedro Alves <palves@redhat.com>
14604
14605 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14606
77f0e74c
PA
146072019-01-23 Pedro Alves <palves@redhat.com>
14608 Andrew Burgess <andrew.burgess@embecosm.com>
14609
14610 * gdbthread.h: Include "common/forward-scope-exit.h".
14611 (scoped_finish_thread_state): Redefine custom class in terms of
14612 forward_scope_exit.
14613
5b9b3e53
PA
146142019-01-23 Pedro Alves <palves@redhat.com>
14615 Andrew Burgess <andrew.burgess@embecosm.com>
14616
14617 * common/forward-scope-exit.h: New file.
14618
54b65c9b
PA
146192019-01-23 Pedro Alves <palves@redhat.com>
14620 Andrew Burgess <andrew.burgess@embecosm.com>
14621 Tom Tromey <tom@tromey.com>
14622
14623 * common/scope-exit.h: New file.
14624
cf08fb29
PA
146252019-01-23 Pedro Alves <palves@redhat.com>
14626
14627 * common/preprocessor.h (ESC): Rename to ...
14628 (ESC_PARENS): ... this.
14629 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14630 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14631
ae73e2e2
TT
146322019-01-23 Tom Tromey <tom@tromey.com>
14633
14634 * language.h (class scoped_switch_to_sym_language_if_auto):
14635 Initialize m_lang in both cases.
14636
6594e122
AH
146372019-01-23 Alan Hayward <alan.hayward@arm.com>
14638
14639 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14640 with XCNEW.
14641
a7c9855d
TT
146422019-01-22 Tom Tromey <tom@tromey.com>
14643
14644 * corelow.c: Do not include sys/file.h.
14645
93cc1d53
TT
146462019-01-22 Tom Tromey <tom@tromey.com>
14647
14648 * tui/tui-wingeneral.h: Include gdb_curses.h.
14649
38561778
TT
146502019-01-22 Tom Tromey <tom@tromey.com>
14651
14652 * source-cache.h (class source_cache) <get_source_lines,
14653 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14654
37b3ab5b
TT
146552019-01-22 Tom Tromey <tom@tromey.com>
14656
14657 * remote-fileio.h (struct remote_target): Declare.
14658
3fabc016
TT
146592019-01-22 Tom Tromey <tom@tromey.com>
14660
14661 * python/py-arch.c: Do not include py-ref.h.
14662 * python/py-bpevent.c: Do not include py-ref.h.
14663 * python/py-cmd.c: Do not include py-ref.h.
14664 * python/py-continueevent.c: Do not include py-ref.h.
14665 * python/py-event.h: Do not include py-ref.h.
14666 * python/py-evtregistry.c: Do not include py-ref.h.
14667 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14668 * python/py-frame.c: Do not include py-ref.h.
14669 * python/py-framefilter.c: Do not include py-ref.h.
14670 * python/py-function.c: Do not include py-ref.h.
14671 * python/py-infevents.c: Do not include py-ref.h.
14672 * python/py-linetable.c: Do not include py-ref.h.
14673 * python/py-objfile.c: Do not include py-ref.h.
14674 * python/py-param.c: Do not include py-ref.h.
14675 * python/py-prettyprint.c: Do not include py-ref.h.
14676 * python/py-progspace.c: Do not include py-ref.h.
14677 * python/py-symbol.c: Do not include py-ref.h.
14678 * python/py-symtab.c: Do not include py-ref.h.
14679 * python/py-type.c: Do not include py-ref.h.
14680 * python/py-unwind.c: Do not include py-ref.h.
14681 * python/py-utils.c: Do not include py-ref.h.
14682 * python/py-value.c: Do not include py-ref.h.
14683 * python/py-varobj.c: Do not include py-ref.h.
14684 * python/py-xmethods.c: Do not include py-ref.h.
14685 * python/python.c: Do not include py-ref.h.
14686 * varobj.c: Do not include py-ref.h.
14687
6b4d7774
TT
146882019-01-22 Tom Tromey <tom@tromey.com>
14689
14690 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14691 keyword for bcache.
14692
7af7e9b5
TT
146932019-01-22 Tom Tromey <tom@tromey.com>
14694
14695 * compile/compile-cplus-types.c: Remove a comment by #include.
14696
951d1049
TT
146972019-01-22 Tom Tromey <tom@tromey.com>
14698
14699 * compile/gcc-c-plugin.h: Include compile-internal.h.
14700
d65d5705
TT
147012019-01-22 Tom Tromey <tom@tromey.com>
14702
14703 * stabsread.c (EXTERN): Do not define.
14704 (symnum, next_symbol_text_func, processing_gcc_compilation)
14705 (within_function, global_sym_chain, global_stabs)
14706 (previous_stab_code, this_object_header_files)
14707 (n_this_object_header_files)
14708 (n_allocated_this_object_header_files): Define.
14709 * stabsread.h (EXTERN): Never define. Use "extern".
14710
b6fb1ee5
PW
147112019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14712
14713 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14714 history_value.
14715
be6d4f74
TT
147162019-01-21 Tom Tromey <tom@tromey.com>
14717
14718 * ui-out.c: Fix includes.
14719 * tui/tui-source.c: Fix includes.
14720 * target.c: Fix includes.
14721 * remote.c: Fix includes.
14722 * regcache.c: Fix includes.
14723 * python/py-block.c: Fix includes.
14724 * printcmd.c: Fix includes.
14725 * or1k-tdep.c: Fix includes.
14726 * mi/mi-main.c: Fix includes.
14727 * m32r-tdep.c: Fix includes.
14728 * csky-tdep.c: Fix includes.
14729 * compile/compile-cplus-types.c: Fix includes.
14730 * cli/cli-interp.c: Fix includes.
14731
73021deb
AH
147322019-01-21 Alan Hayward <alan.hayward@arm.com>
14733
14734 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14735 for padding.
14736
7932255d
TT
147372019-01-16 Tom Tromey <tom@tromey.com>
14738
14739 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14740 earlier.
14741 (struct objfile) <msymbols_range>: Move from top level.
14742 <msymbols>: New method.
14743 (class objfile_msymbols): Remove.
14744 * symtab.c (default_collect_symbol_completion_matches_break_on):
14745 Update.
14746 * symmisc.c (dump_msymbols): Update.
14747 * stabsread.c (scan_file_globals): Update.
14748 * objc-lang.c (info_selectors_command, info_classes_command)
14749 (find_methods): Update.
14750 * minsyms.c (find_solib_trampoline_target): Update.
14751 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14752 * coffread.c (coff_symfile_read): Update.
14753 * ada-lang.c (ada_lookup_simple_minsym)
14754 (ada_collect_symbol_completion_matches): Update.
14755
604b1bfb
TT
147562019-01-16 Tom Tromey <tom@tromey.com>
14757
14758 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14759 type. Remove no-argument constructor.
14760 <iterator::operator++>: Simplify.
14761 <begin>: Update.
14762 <end>: Use minimal_symbol_count.
14763
f252c6d5
TT
147642019-01-16 Tom Tromey <tom@tromey.com>
14765
14766 * objfiles.h (struct objfile) <psymtabs>: New method.
14767 (class objfile_psymtabs): Remove.
14768 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14769 typedef.
14770 <range>: New method.
14771 (require_partial_symbols): Change return type.
14772 * psymtab.c (require_partial_symbols)
14773 (psym_expand_symtabs_matching): Update.
14774 * mdebugread.c (parse_partial_symbols): Update.
14775 * dbxread.c (dbx_end_psymtab): Update.
14776
b669c953
TT
147772019-01-15 Tom Tromey <tom@tromey.com>
14778
14779 * symtab.c (lookup_objfile_from_block)
14780 (lookup_symbol_in_objfile_symtabs)
14781 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14782 (find_line_symtab, info_sources_command)
14783 (default_collect_symbol_completion_matches_break_on)
14784 (make_source_files_completion_list): Update.
14785 * symmisc.c (print_objfile_statistics, dump_objfile)
14786 (maintenance_print_symbols, maintenance_info_symtabs)
14787 (maintenance_check_symtabs, maintenance_info_line_tables):
14788 Update.
14789 * source.c (select_source_symtab)
14790 (forget_cached_source_info_for_objfile): Update.
14791 * objfiles.h (class objfile_compunits): Remove.
14792 (struct objfile) <compunits_range>: New typedef.
14793 (compunits): New method.
14794 * objfiles.c (objfile_relocate1): Update.
14795 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14796 * maint.c (count_symtabs_and_blocks): Update.
14797 * linespec.c (iterate_over_all_matching_symtabs): Update.
14798 * cp-support.c (add_symbol_overload_list_qualified): Update.
14799 * coffread.c (coff_symtab_read): Update.
14800 * ada-lang.c (add_nonlocal_symbols)
14801 (ada_collect_symbol_completion_matches)
14802 (ada_add_global_exceptions): Update.
14803
7e955d83
TT
148042019-01-15 Tom Tromey <tom@tromey.com>
14805
14806 * progspace.h (program_space) <objfiles_safe_range>: New
14807 typedef.
14808 <objfiles_safe>: New method.
14809 * objfiles.h (class all_objfiles_safe): Remove.
14810 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14811 * jit.c (jit_inferior_exit_hook): Update.
14812
2030c079
TT
148132019-01-17 Tom Tromey <tom@tromey.com>
14814
14815 * progspace.h (program_space) <objfiles_range>: New typedef.
14816 <objfiles>: New method.
14817 <objfiles_head>: Rename from objfiles.
14818 (object_files): Update.
14819 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14820 * guile/scm-pretty-print.c
14821 (ppscm_find_pretty_printer_from_objfiles): Update.
14822 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14823 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14824 Update.
14825 * python/py-progspace.c (pspy_get_objfiles): Update.
14826 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14827 Update.
14828 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14829 (objfpy_lookup_objfile_by_build_id): Update.
14830 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14831 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14832 Update.
14833 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14834 (expand_symtab_containing_pc, lookup_objfile_from_block)
14835 (lookup_static_symbol, basic_lookup_transparent_type)
14836 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14837 (find_line_symtab, info_sources_command)
14838 (default_collect_symbol_completion_matches_break_on)
14839 (make_source_files_completion_list, find_main_name): Update.
14840 * symmisc.c (print_symbol_bcache_statistics)
14841 (print_objfile_statistics, maintenance_print_symbols)
14842 (maintenance_print_msymbols, maintenance_print_objfiles)
14843 (maintenance_info_symtabs, maintenance_check_symtabs)
14844 (maintenance_expand_symtabs, maintenance_info_line_tables):
14845 Update.
14846 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14847 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14848 (map_overlay_command, unmap_overlay_command)
14849 (simple_overlay_update, expand_symtabs_matching)
14850 (map_symbol_filenames): Update.
14851 * symfile-debug.c (set_debug_symfile): Update.
14852 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14853 Update.
14854 * source.c (select_source_symtab, forget_cached_source_info):
14855 Update.
14856 * solib.c (solib_read_symbols): Update.
14857 * solib-spu.c (append_ocl_sos): Update.
14858 * psymtab.c (maintenance_print_psymbols)
14859 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14860 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14861 * printcmd.c (info_symbol_command): Update.
14862 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14863 Update.
14864 * objfiles.h (class all_objfiles): Remove.
14865 * objfiles.c (have_partial_symbols, have_full_symbols)
14866 (have_minimal_symbols, qsort_cmp, update_section_map)
14867 (shared_objfile_contains_address_p)
14868 (default_iterate_over_objfiles_in_search_order): Update.
14869 * objc-lang.c (info_selectors_command, info_classes_command)
14870 (find_methods): Update.
14871 * minsyms.c (find_solib_trampoline_target): Update.
14872 * maint.c (maintenance_info_sections)
14873 (maintenance_translate_address, count_symtabs_and_blocks):
14874 Update.
14875 * main.c (captured_main_1): Update.
14876 * linux-thread-db.c (try_thread_db_load_from_pdir)
14877 (has_libpthread): Update.
14878 * linespec.c (iterate_over_all_matching_symtabs)
14879 (search_minsyms_for_name): Update.
14880 * jit.c (jit_find_objf_with_entry_addr): Update.
14881 * hppa-tdep.c (find_unwind_entry)
14882 (hppa_lookup_stub_minimal_symbol): Update.
14883 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14884 Update.
14885 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14886 (elf_gnu_ifunc_resolve_by_got): Update.
14887 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14888 * dwarf-index-write.c (save_gdb_index_command): Update.
14889 * cp-support.c (add_symbol_overload_list_qualified): Update.
14890 * breakpoint.c (create_overlay_event_breakpoint)
14891 (create_longjmp_master_breakpoint)
14892 (create_std_terminate_master_breakpoint)
14893 (create_exception_master_breakpoint): Update.
14894 * blockframe.c (find_pc_partial_function): Update.
14895 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14896 (ada_collect_symbol_completion_matches)
14897 (ada_add_global_exceptions): Update.
14898
776489e0
TT
148992019-01-17 Tom Tromey <tom@tromey.com>
14900
14901 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14902 declare VEC.
14903 (solib_target_parse_libraries): Change return type.
14904 (library_list_start_segment, library_list_start_section)
14905 (library_list_end_library, library_list_start_library); Update.
14906 (solib_target_free_library_list): Remove.
14907 (solib_target_parse_libraries): Remove cleanup. Change return
14908 type.
14909 (solib_target_current_sos): Update.
14910
6471e7d2
TT
149112019-01-17 Tom Tromey <tromey@bapiya>
14912
14913 * valprint.c: Replace "the the" with "the".
14914 * symtab.c: Replace "the the" with "the".
14915 * solib.c: Replace "the the" with "the".
14916 * solib-dsbt.c: Replace "the the" with "the".
14917 * linespec.c: Replace "the the" with "the".
14918 * dwarf2loc.h: Replace "the the" with "the".
14919 * amd64-windows-tdep.c: Replace "the the" with "the".
14920 * aarch64-tdep.c: Replace "the the" with "the".
14921
c24bdb02
KS
149222019-01-16 Keith Seitz <keiths@redhat.com>
14923
14924 PR gdb/23773
14925 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14926 <builder>: Rename to ..
14927 <m_builder>: ... this and make private.
14928 (dwarf2_cu::get_builder): New method. Change all users of
14929 `builder' to use this method.
14930 (dwarf2_start_symtab): Move to ...
14931 (dwarf2_cu::start_symtab): ... here. Update all callers
14932 (setup_type_unit_groups): Move to ...
14933 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14934 callers.
14935 (dwarf2_cu::reset_builder): New method.
14936 (process_full_compunit, process_full_type_unit): Use
14937 dwarf2_cu::reset_builder.
14938 (follow_die_offset): Record the ancestor CU if it is different
14939 from the followed DIE's CU.
14940 (follow_die_sig_1): Likewise.
14941
8d64371b
TT
149422019-01-15 Tom Tromey <tom@tromey.com>
14943
14944 * remote.c (class remote_state) <buf>: Now a char_vector.
14945 <buf_size>: Remove.
14946 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14947 parameter.
14948 (remote_target::getpkt_or_notif_sane_1)
14949 (remote_target::getpkt_sane)
14950 (remote_target::getpkt_or_notif_sane): Likewise.
14951 (class remote_target) <putpkt>: New overload.
14952 (remote_target::read_frame): Change type of "buf_p". Remove
14953 sizeof_p parameter.
14954 (packet_ok): New overload.
14955 (packet_check_result): New overload.
14956 Update all uses.
14957
bb277751
TT
149582019-01-14 Tom Tromey <tom@tromey.com>
14959
14960 * remote-notif.c (handle_notification, remote_notif_ack)
14961 (remote_notif_parse): Make "buf" const.
14962 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14963 const.
14964 (remote_notif_parse, remote_notif_ack, handle_notification):
14965 Likewise.
14966 * remote.c (remote_notif_stop_parse): Make "buf" const.
14967 (remote_target::remote_parse_stop_reply): Make "buf" const.
14968 (remote_notif_stop_ack): Make "buf" const.
14969
05be00a8
TT
149702019-01-14 Tom Tromey <tom@tromey.com>
14971
14972 * remote.c (remote_console_output): Make parameter const.
14973
491adeca
TT
149742019-01-14 Tom Tromey <tom@tromey.com>
14975
14976 * target-debug.h (target_debug_print_signals): Constify.
14977 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14978 * procfs.c (procfs_target::pass_signals): Update.
14979 * linux-nat.c (linux_nat_target::pass_signals): Update.
14980 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14981 * target-delegates.c: Rebuild.
14982 * remote.c (remote_target::program_signals): Update.
14983 (remote_target::pass_signals): Update.
14984 * target.c (target_pass_signals): Constify argument.
14985 (target_program_signals): Likewise.
14986 * target.h (struct target_ops) <pass_signals, program_signals>:
14987 Constify argument.
14988 (target_pass_signals, target_program_signals): Constify argument.
14989
bbd94648
TT
149902019-01-14 Tom Tromey <tom@tromey.com>
14991
14992 PR tui/28819:
14993 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14994
6f072a10
PFC
149952019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14996
14997 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14998 field.
14999 * rs6000-tdep.c: Include reggroups.h.
15000 (IS_V_ALIAS_PSEUDOREG): Define.
15001 (rs6000_register_name): Return names for the "vX" aliases.
15002 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15003 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15004 aliases. Call default_register_reggroup_p for all other
15005 pseudo-registers.
15006 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15007 New functions.
15008 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15009 Handle "vX" aliases.
15010 (v_alias_pseudo_register_collect): New function.
15011 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15012 (rs6000_gdbarch_init): Initialize "vX" aliases as
15013 pseudo-registers. Restore registration of
15014 rs6000_pseudo_register_reggroup_p with
15015 set_tdesc_pseudo_register_reggroup_p.
15016
1a782351
MF
150172019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15018
15019 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15020 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15021 set_gdbarch_num_pseudo_regs.
15022
d73cff18
PW
150232019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15024
15025 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15026 Remove arg prefixname, add do_set and do_show.
15027 Add member functions set_list and show_list.
15028 * cli/cli-style.c (class cli_style_option): Update accordingly.
15029 (style_set_list): Move to file scope.
15030 (style_show_list): Likewise.
15031 (set_style): Call help_list.
15032 (show_style): Call cmd_show_list.
15033 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15034 Update to use the new macro.
15035
60a90376
JB
150362019-10-12 Joel Brobecker <brobecker@adacore.com>
15037
15038 * ada-lang.c (_initialize_ada_language): Expand the help text
15039 for the "catch exception" command.
15040
9d7c67bf
PW
150412019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15042
15043 * symtab.c (matching_obj_sections): Initialize obj,
15044 declare it closer to its usage.
15045
7cf47dc4
TT
150462019-01-10 Tom Tromey <tom@tromey.com>
15047
15048 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15049 (basic_inf_threads_range): Remove.
15050 (inf_threads_range, inf_non_exited_threads_range)
15051 (safe_inf_threads_range): Use next_adapter.
15052
d3cb6808
KS
150532019-01-10 Keith Seitz <keiths@redhat.com>
15054
15055 PR gdb/23712
15056 PR symtab/23010
15057 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15058 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15059
63a20375
KS
150602019-01-10 Keith Seitz <keiths@redhat.com>
15061
15062 PR gdb/23712
15063 PR symtab/23010
15064 * dictionary.c (pending_to_vector): Remove.
15065 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15066 Remove _1 suffix, replacing functions of the same name. Update
15067 all callers.
15068 (dict_create_hashed, dict_create_hashed_expandable)
15069 (dict_create_linear, dict_create_linear_expandable, dict_free)
15070 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15071 Make functions static.
15072
b026f593
KS
150732019-01-10 Keith Seitz <keiths@redhat.com>
15074
15075 PR gdb/23712
15076 PR symtab/23010
15077 * dictionary.h (struct dictionary): Replace declaration with
15078 multidictionary.
15079 (dict_create_hashed, dict_create_hashed_expandable)
15080 (dict_create_linear, dict_create_linear_expandable)
15081 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15082 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15083 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15084 taking multidictionary argument.
15085 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15086 * block.h (struct block) <dict>: Change to multidictionary
15087 and rename `multidict'.
15088 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15089 symmisc.c: Update all dictionary references to multidictionary.
15090
c7748ee9
KS
150912019-01-10 Keith Seitz <keiths@redhat.com>
15092
15093 PR gdb/23712
15094 PR symtab/23010
15095 * dictionary.c: Include unordered_map.
15096 (pending_to_vector): New function.
15097 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15098 Rewrite the non-"_1" functions to take vector instead
15099 of linked list.
15100 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15101 "new" _1 versions of the same name.
15102 (multidictionary): Define.
15103 (std::hash<enum language): New definition.
15104 (collate_pending_symbols_by_language, mdict_create_hashed)
15105 (mdict_create_hashed_expandable, mdict_create_linear)
15106 (mdict_create_linear_expandable, mdict_free)
15107 (find_language_dictionary, create_new_language_dictionary)
15108 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15109 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15110 (mdict_size, mdict_empty): New functions.
15111 * dictionary.h (mdict_iterator): Define.
15112
67aa1f3c
PA
151132019-01-10 Pedro Alves <palves@redhat.com>
15114
15115 * breakpoint.c (read_uploaded_action)
15116 (create_tracepoint_from_upload): Adjust to use
15117 gdb::unique_xmalloc_ptr.
15118 * ctf.c (ctf_write_uploaded_tp):
15119 (SET_ARRAY_FIELD): Use emplace_back.
15120 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15121 * tracefile-tfile.c (tfile_write_uploaded_tp):
15122 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15123 gdb::unique_xmalloc_ptr.
15124 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15125 at_string, cond_string, cmd_strings>: Replace char pointers
15126 with gdb::unique_xmalloc_ptr.
15127
2f667667
PA
151282019-01-10 Pedro Alves <palves@redhat.com>
15129
15130 * solib-target.c (library_list_start_library): Don't xstrdup name.
15131
36cb7237
PA
151322019-01-10 Pedro Alves <palves@redhat.com>
15133
15134 * mdebugread.c (parse_partial_symbols): Use
15135 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15136
da584958
AB
151372019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15138
15139 * linux-fork.c (scoped_switch_fork_info)
15140 <~scoped_switch_fork_info>: Fix incorrect variable name.
15141
1ef8573c
AB
151422019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15143
15144 * linux-fork.c (scoped_switch_fork_info)
15145 <scoped_switch_fork_info>: Make explicit.
15146 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15147
8d7bcccb
TT
151482019-01-10 Tom Tromey <tom@tromey.com>
15149
15150 * objfiles.h (objfile::reset_psymtabs): Update.
15151 * objfiles.c (objfile::objfile): Update.
15152 * psymtab.h (psymtab_storage::obstack): Update.
15153 (psymtab_storage::m_obstack): Use gdb::optional.
15154 (class psymtab_storage): Update comment. Remove objfile
15155 parameter.
15156 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15157
b596a3c7
TT
151582019-01-10 Tom Tromey <tom@tromey.com>
15159
15160 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15161 <free_psymtabs>: Now private.
15162 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15163 (allocate_psymtab): Use new method.
15164
a9342b62
TT
151652019-01-10 Tom Tromey <tom@tromey.com>
15166
15167 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15168 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15169 * mdebugread.c (parse_partial_symbols): Use
15170 allocate_dependencies.
15171 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15172 allocate_dependencies.
15173 (process_psymtab_comp_unit_reader)
15174 (build_type_psymtab_dependencies): Likewise.
15175 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15176
5af70966
TT
151772019-01-10 Tom Tromey <tom@tromey.com>
15178
15179 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15180 PSYMBOL_SET_LANGUAGE.
15181 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15182
5923a04c
TT
151832019-01-10 Tom Tromey <tom@tromey.com>
15184
15185 * psymtab.h (psymtab_storage::obstack): New method.
15186 <m_obstack>: Rename from obstack; now private.
15187 * psymtab.c (psymtab_storage): Update.
15188 * dwarf2read.c (create_addrmap_from_index)
15189 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15190 Update.
15191
6d6a12bf
TT
151922019-01-10 Tom Tromey <tom@tromey.com>
15193
15194 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15195 * objfiles.h (objfile::reset_psymtabs): New method.
15196
d320c2b5
TT
151972019-01-10 Tom Tromey <tom@tromey.com>
15198
15199 * symmisc.c (print_symbol_bcache_statistics): Update.
15200 (print_objfile_statistics): Update.
15201 * symfile.c (reread_symbols): Update.
15202 * psymtab.h (class psymtab_storage): New.
15203 * psymtab.c (psymtab_storage): New constructor.
15204 (~psymtab_storage): New destructor.
15205 (require_partial_symbols): Update.
15206 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15207 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15208 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15209 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15210 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15211 (start_psymtab_common, end_psymtab_common)
15212 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15213 (allocate_psymtab): Update.
15214 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15215 Update.
15216 (dump_psymtab_addrmap, maintenance_print_psymbols)
15217 (maintenance_check_psymtabs): Update.
15218 (class objfile_psymtabs): Move to objfiles.h.
15219 * psympriv.h (discard_psymtab): Now inline.
15220 (psymtab_discarder::psymtab_discarder): Update.
15221 (psymtab_discarder::~psymtab_discarder): Update.
15222 (ALL_OBJFILE_PSYMTABS): Rewrite.
15223 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15224 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15225 Remove fields.
15226 <partial_symtabs>: New field.
15227 (class objfile_psymtabs): Move from psymtab.h. Update.
15228 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15229 psymbol_cache.
15230 (objfile::~objfile): Don't destroy psymbol_cache.
15231 * mdebugread.c (parse_partial_symbols): Update.
15232 * dwarf2read.c (create_addrmap_from_index)
15233 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15234 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15235 (add_partial_subprogram, dwarf2_ranges_read): Update.
15236 * dwarf-index-write.c (write_address_map)
15237 (write_one_signatured_type, recursively_write_psymbols)
15238 (class debug_names, class debug_names, write_psymtabs_to_index):
15239 Update.
15240
1d94a5a3
TT
152412019-01-10 Tom Tromey <tom@tromey.com>
15242
15243 * symtab.h (SYMBOL_SET_NAMES): Update.
15244 (symbol_set_names): Update.
15245 (MSYMBOL_SET_NAMES): Update.
15246 * symtab.c (symbol_set_names): Change argument to be an
15247 objfile_per_bfd_storage.
15248 * psymtab.c (add_psymbol_to_bcache): Update.
15249 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15250
0f14768a
TT
152512019-01-10 Tom Tromey <tom@tromey.com>
15252
15253 * symtab.c (create_demangled_names_hash): Change argument to be an
15254 objfile_per_bfd_storage.
15255 (symbol_set_names): Update.
15256
6eee24ce
TT
152572019-01-10 Tom Tromey <tom@tromey.com>
15258
15259 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15260 init_psymbol_list.
15261 * psymtab.c (init_psymbol_list): Do nothing if already called.
15262 * psympriv.h (init_psymbol_list): Add comment.
15263 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15264 init_psymbol_list.
15265 * dbxread.c (dbx_symfile_read): Unconditionally call
15266 init_psymbol_list.
15267
75aedd27
TT
152682019-01-10 Tom Tromey <tom@tromey.com>
15269
15270 * xcoffread.c (scan_xcoff_symtab): Update.
15271 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15272 "where".
15273 * mdebugread.c (parse_partial_symbols)
15274 (handle_psymbol_enumerators): Update.
15275 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15276 * dbxread.c (read_dbx_symtab): Update.
15277 * psympriv.h (psymbol_placement): New enum.
15278 (add_psymbol_to_list): Update.
15279
939652a5
TT
152802019-01-10 Tom Tromey <tom@tromey.com>
15281
15282 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15283 static_psymbols parameters.
15284 (scan_xcoff_symtab): Update.
15285 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15286 static_psymbols parameters.
15287 * psympriv.h (start_psymtab_common): Update.
15288 * mdebugread.c (parse_partial_symbols): Update.
15289 * dwarf2read.c (create_partial_symtab): Update.
15290 * dbxread.c (read_dbx_symtab): Update.
15291 (start_psymtab): Remove global_psymbols and static_psymbols
15292 parameters.
15293
baa62830
TT
152942019-01-10 Tom Tromey <tom@tromey.com>
15295
15296 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15297 * psymtab.c (allocate_psymtab): Add comment.
15298 * psympriv.h (allocate_psymtab): Add comment.
15299 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15300 initializations.
15301 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15302
0e8f53ba
TT
153032019-01-10 Tom Tromey <tom@tromey.com>
15304
15305 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15306 Don't declare.
15307 * mipsread.c: Include mdebugread.h.
15308 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15309 Declare.
15310 * elfread.c: Include mdebugread.h.
15311
b22a7c6a
TT
153122019-01-09 Tom Tromey <tom@tromey.com>
15313
15314 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15315 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15316 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15317 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15318 (psym_lookup_symbol, psym_find_last_source_symtab)
15319 (psym_forget_cached_source_info, psym_print_stats)
15320 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15321 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15322 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15323 (psym_find_compunit_symtab_by_address)
15324 (maintenance_print_psymbols, maintenance_info_psymtabs)
15325 (maintenance_check_psymtabs): Use ranged for.
15326 * psymtab.h (class objfile_psymtabs): New.
15327 (require_partial_symbols): Return objfile_psymtabs.
15328 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15329
3b9d3ac2
TT
153302019-01-09 Tom Tromey <tom@tromey.com>
15331
15332 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15333 (find_pc_mapped_section, list_overlays_command)
15334 (map_overlay_command, unmap_overlay_command)
15335 (simple_overlay_update): Use all_objfiles.
15336 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15337 * printcmd.c (info_symbol_command): Use all_objfiles.
15338 * objfiles.h (ALL_OBJSECTIONS): Remove.
15339 * maint.c (maintenance_translate_address): Use all_objfiles.
15340 * gcore.c (gcore_create_callback): Use all_objfiles.
15341 (objfile_find_memory_regions): Likewise.
15342
8b31193a
TT
153432019-01-09 Tom Tromey <tom@tromey.com>
15344
15345 * symtab.c (find_line_symtab, info_sources_command)
15346 (make_source_files_completion_list): Use objfile_compunits.
15347 * source.c (select_source_symtab): Use objfile_compunits.
15348 * objfiles.h (struct objfile): Update comment.
15349 (ALL_OBJFILES): Remove.
15350 (ALL_FILETABS): Remove.
15351 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15352 objfile_compunits.
15353
d5da8b3c
TT
153542019-01-09 Tom Tromey <tom@tromey.com>
15355
15356 * symmisc.c (print_objfile_statistics, dump_objfile)
15357 (maintenance_print_symbols): Use compunit_filetabs.
15358 * source.c (forget_cached_source_info_for_objfile): Use
15359 compunit_filetabs.
15360 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15361 (ALL_FILETABS): Use compunit_filetabs.
15362 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15363 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15364
5accd1a0
TT
153652019-01-09 Tom Tromey <tom@tromey.com>
15366
15367 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15368 (compunit_filetabs): New.
15369 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15370 compunit_filetabs.
15371 (info_sources_command, make_source_files_completion_list): Remove
15372 declaration.
15373 * symmisc.c (print_objfile_statistics, dump_objfile)
15374 (maintenance_print_symbols): Remove declaration.
15375 (maintenance_info_symtabs): Use compunit_filetabs.
15376 (maintenance_info_line_tables): Likewise.
15377 * source.c (select_source_symtab): Change local variable name.
15378 (forget_cached_source_info_for_objfile): Remove declaration.
15379 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15380 * objfiles.c (objfile_relocate1): Remove declaration.
15381 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15382 declaration.
15383 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15384 * coffread.c (coff_symtab_read): Remove declaration.
15385 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15386 compunit_filetabs.
15387
d8aeb77f
TT
153882019-01-09 Tom Tromey <tom@tromey.com>
15389
15390 * symtab.c (lookup_objfile_from_block)
15391 (find_pc_sect_compunit_symtab, search_symbols)
15392 (default_collect_symbol_completion_matches_break_on): Use
15393 objfile_compunits.
15394 * objfiles.h (ALL_COMPUNITS): Remove.
15395 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15396 * cp-support.c (add_symbol_overload_list_qualified): Use
15397 objfile_compunits.
15398 * ada-lang.c (ada_collect_symbol_completion_matches)
15399 (ada_add_global_exceptions): Use objfile_compunits.
15400
592553c4
TT
154012019-01-09 Tom Tromey <tom@tromey.com>
15402
15403 * source.c (select_source_symtab)
15404 (forget_cached_source_info_for_objfile): Remove declaration.
15405 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15406 declaration.
15407 * maint.c (count_symtabs_and_blocks): Remove declaration.
15408 * cp-support.c (add_symbol_overload_list_qualified): Remove
15409 declaration.
15410 * coffread.c (coff_symtab_read): Remove declaration.
15411 * symtab.c (lookup_symbol_in_objfile_symtabs)
15412 (basic_lookup_transparent_type_1): Use objfile_compunits.
15413 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15414 (info_sources_command, search_symbols)
15415 (default_collect_symbol_completion_matches_break_on)
15416 (make_source_files_completion_list): Remove declaration.
15417 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15418 (ada_collect_symbol_completion_matches)
15419 (ada_add_global_exceptions): Remove declaration.
15420 * linespec.c (iterate_over_all_matching_symtabs): Use
15421 objfile_compunits.
15422 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15423 (class objfile_compunits): New.
15424 (ALL_COMPUNITS): Use objfile_compunits.
15425 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15426 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15427 objfile_compunits.
15428 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15429
5325b9bf
TT
154302019-01-09 Tom Tromey <tom@tromey.com>
15431
15432 * symtab.c (search_symbols)
15433 (default_collect_symbol_completion_matches_break_on): Use
15434 objfile_msymbols.
15435 * ada-lang.c (ada_lookup_simple_minsym)
15436 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15437 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15438 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15439 objfile_msymbols.
15440 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15441 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15442 * objc-lang.c (find_methods): Use objfile_msymbols.
15443 (info_selectors_command, info_classes_command): Likewise.
15444 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15445 * objfiles.h (class objfile_msymbols): New.
15446 (ALL_OBJFILE_MSYMBOLS): Remove.
15447 (ALL_MSYMBOLS): Remove.
15448
cac85af2
TT
154492019-01-09 Tom Tromey <tom@tromey.com>
15450
15451 * common/next-iterator.h (next_adapter): Add Iterator template
15452 parameter.
15453 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15454 (class all_objfiles_safe): New.
15455 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15456 * objfiles.c (put_objfile_before): Update comment.
15457 (add_separate_debug_objfile): Likewise.
15458 (free_all_objfiles): Use all_objfiles_safe.
15459 (objfile_purge_solibs): Likewise.
15460
aed57c53
TT
154612019-01-09 Tom Tromey <tom@tromey.com>
15462
15463 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15464 (expand_symtab_containing_pc, lookup_static_symbol)
15465 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15466 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15467 all_objfiles.
15468 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15469 * breakpoint.c (create_overlay_event_breakpoint)
15470 (create_longjmp_master_breakpoint)
15471 (create_std_terminate_master_breakpoint)
15472 (create_exception_master_breakpoint): Use all_objfiles.
15473 * linux-thread-db.c (try_thread_db_load_from_pdir)
15474 (has_libpthread): Use all_objfiles.
15475 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15476 * linespec.c (iterate_over_all_matching_symtabs)
15477 (search_minsyms_for_name): Use all_objfiles.
15478 * maint.c (maintenance_info_sections): Use all_objfiles.
15479 * main.c (captured_main_1): Use all_objfiles.
15480 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15481 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15482 * guile/scm-pretty-print.c
15483 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15484 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15485 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15486 (maintenance_print_msymbols): Use all_objfiles.
15487 * source.c (select_source_symtab): Use all_objfiles.
15488 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15489 * symfile.c (remove_symbol_file_command)
15490 (expand_symtabs_matching, map_symbol_filenames): Use
15491 all_objfiles.
15492 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15493 all_objfiles.
15494 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15495 * objc-lang.c (find_methods): Use all_objfiles.
15496 * objfiles.c (have_partial_symbols, have_full_symbols)
15497 (have_minimal_symbols, qsort_cmp)
15498 (default_iterate_over_objfiles_in_search_order): Use
15499 all_objfiles.
15500 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15501 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15502 (maintenance_check_psymtabs): Use all_objfiles.
15503 (ALL_PSYMTABS): Remove.
15504 * compile/compile-object-run.c (do_module_cleanup): Use
15505 all_objfiles.
15506 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15507 * cp-support.c (add_symbol_overload_list_qualified): Use
15508 all_objfiles.
15509 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15510 Use all_objfiles.
15511 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15512 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15513 all_objfiles.
15514 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15515 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15516 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15517 Uses all_objfiles.
15518 * solib.c (solib_read_symbols): Use all_objfiles
15519
99d89cde
TT
155202019-01-09 Tom Tromey <tom@tromey.com>
15521
15522 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15523 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15524 all_objfiles.
15525 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15526 * symmisc.c (print_symbol_bcache_statistics)
15527 (print_objfile_statistics, maintenance_print_objfiles)
15528 (maintenance_info_symtabs, maintenance_check_symtabs)
15529 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15530 all_objfiles.
15531 * source.c (forget_cached_source_info): Use all_objfiles.
15532 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15533 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15534 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15535 * objfiles.c (update_section_map): Use all_objfiles.
15536 (shared_objfile_contains_address_p): Likewise.
15537 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15538 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15539
21708325
TT
155402019-01-09 Tom Tromey <tom@tromey.com>
15541
15542 * common/next-iterator.h: New file.
15543 * objfiles.h (class all_objfiles): New.
15544 (struct objfile_iterator): New.
15545
669e09f6
PW
155462019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15547
15548 * NEWS: Move the description of the changed "frame", "select-frame",
15549 and "info frame" commands to the Changed commands section.
15550
041be526
SM
155512019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15552
15553 * gdbtypes.c (check_stub_method_group): Remove handling of old
15554 mangling schemes.
15555 * linespec.c (find_methods): Likewise.
15556 * stabsread.c (read_member_functions): Likewise.
15557 * valops.c (search_struct_method): Likewise.
15558 (value_struct_elt_for_reference): Likewise.
15559 * NEWS: Mention this change.
15560
0e2a2133
AB
155612019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15562
15563 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15564 print_source_lines.
15565 * source.c (print_source_lines_base): Update line number check.
15566 (print_source_lines): New function.
15567 (source_lines_range::source_lines_range): New function.
15568 * source.h (class source_lines_range): New class.
15569 (print_source_lines): New declaration.
15570
1055a3b4
PW
155712019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15572
15573 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15574
cfeadda5
TT
155752019-01-08 Tom Tromey <tom@tromey.com>
15576 Simon Marchi <simon.marchi@ericsson.com>
15577
15578 PR gdb/24060
15579 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15580 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15581 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15582 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15583 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15584 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15585
583068ca
AB
155862019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15587
15588 * source.c (select_source_symtab): Move header comment to
15589 declaration in source.h.
15590 (forget_cached_source_info_for_objfile): Likewise.
15591 (forget_cached_source_info): Likewise.
15592 (identify_source_line): Likewise.
15593 * source.h (identify_source_line): Move declaration from symtab.h
15594 and add comment from source.c
15595 (print_source_lines): Likewise.
15596 (forget_cached_source_info_for_objfile): Likewise.
15597 (forget_cached_source_info): Likewise.
15598 (select_source_symtab): Likewise.
15599 (enum print_source_lines_flag): Move definition from symtab.h.
15600 * symtab.h (identify_source_line): Move declaration to source.h.
15601 (print_source_lines): Likewise.
15602 (forget_cached_source_info_for_objfile): Likewise.
15603 (forget_cached_source_info): Likewise.
15604 (select_source_symtab): Likewise.
15605 (enum print_source_lines_flag): Move definition to source.h.
15606 * tui/tui-hooks.c: Add 'source.h' include.
15607
ec98a4ad
AB
156082019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15609
15610 * source.c (print_source_lines_base): Handle requests to print
15611 reverse line number sequences, and guard against empty lines
15612 string.
15613
62ea19c1
AB
156142019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15615
15616 * source.c (print_source_lines_base): Fix skip of '\r' if next
15617 character is '\n'.
15618
9d30e1fd
TT
156192019-01-06 Tom Tromey <tom@tromey.com>
15620
15621 * c-exp.y (struct c_parse_state) <macro_original_text,
15622 expansion_obstack>: New member.
15623 (macro_original_text, expansion_obstack): Remove globals.
15624 (scan_macro_expansion, scanning_macro_expansion)
15625 (finished_macro_expansion): Update.
15626 (scan_macro_cleanup): Remove.
15627 (yylex, c_parse): Update.
15628
c65bac38
TT
156292019-01-06 Tom Tromey <tom@tromey.com>
15630
15631 * c-exp.y (struct c_parse_state) <strings>: New member.
15632 (operator_stoken): Update.
15633
02e12e38
TT
156342019-01-06 Tom Tromey <tom@tromey.com>
15635
15636 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15637 (union type_stack_elt) <typelist_val>: Now a pointer to
15638 std::vector.
15639 (type_stack_cleanup): Don't declare.
15640 (push_typelist): Update.
15641 * parse.c (pop_typelist): Return a std::vector.
15642 (push_typelist): Take a std::vector.
15643 (follow_types): Update. Do not free args.
15644 (type_stack_cleanup): Remove.
15645 * c-exp.y (struct c_parse_state): New.
15646 (cpstate): New global.
15647 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15648 (nonempty_typelist): Update.
15649 (func_mod): Create a new vector.
15650 (c_parse): Create a c_parse_state.
15651 (check_parameter_typelist): Do not delete params.
15652 (function_method): Update. Do not delete type_list.
15653
f097f5ad
TT
156542019-01-06 Tom Tromey <tom@tromey.com>
15655
15656 PR gdb/28155:
15657 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15658 check_typedef.
15659 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15660 (print_return_value): Likewise.
15661
d2adf9f1
TT
156622019-01-05 Tom Tromey <tom@tromey.com>
15663
15664 * contrib/cleanup_check.py: Remove.
15665 * contrib/gcc-with-excheck: Remove.
15666 * contrib/exsummary.py: Remove.
15667 * contrib/excheck.py: Remove.
15668
2eab46b1
JB
156692019-01-05 Joel Brobecker <brobecker@adacore.com>
15670
15671 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15672 NULL. Initialize tpprev to NULL instead of assigning it
15673 to NULL on the next statement.
15674 * windows-nat.c (windows_delete_thread): Remove check for
15675 main_thread_id before printing thread exit notifications.
15676 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15677 Remove thread ID check against main_thread_id.
15678 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15679 windows_delete_thread.
15680 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15681
48c5e7e2
TT
156822019-01-04 Tom Tromey <tom@tromey.com>
15683
15684 * compile/compile.c (_initialize_compile): Use upper case for
15685 metasyntactic variables.
15686 * symmisc.c (_initialize_symmisc): Use upper case for
15687 metasyntactic variables.
15688 * psymtab.c (_initialize_psymtab): Use upper case for
15689 metasyntactic variables.
15690 * demangle.c (demangle_command): Use upper case for metasyntactic
15691 variables.
15692 (_initialize_demangler): Likewise.
15693 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15694 variables.
15695
986041cd
TT
156962019-01-03 Tom Tromey <tom@tromey.com>
15697
15698 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15699
7c711119
TT
157002019-01-03 Tom Tromey <tom@tromey.com>
15701
15702 * python/py-symtab.c (salpy_str): Update.
15703 (struct salpy_sal_object) <symtab>: Now a PyObject.
15704 (salpy_dealloc): Update.
15705 (del_objfile_sal): Use gdbpy_ref.
15706
1b20edf0
TT
157072019-01-03 Tom Tromey <tom@tromey.com>
15708
15709 * python/py-type.c (convert_field): Use new_reference. Return
15710 gdbpy_ref.
15711 (make_fielditem): Return gdbpy_ref.
15712 (typy_fields): Update.
15713 (typy_getitem): Update.
15714 (field_name): Return gdbpy_ref. Use new_reference.
15715 (typy_iterator_iternext): Update.
15716
ea41325b
TT
157172019-01-03 Tom Tromey <tom@tromey.com>
15718
15719 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15720
2a3c71d6
TT
157212019-01-03 Tom Tromey <tom@tromey.com>
15722
15723 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15724 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15725 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15726 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15727 (pspy_set_type_printers): Likewise.
15728 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15729 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15730 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15731 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15732 (objfpy_set_type_printers): Likewise.
15733
5c329e6a
TT
157342019-01-03 Tom Tromey <tom@tromey.com>
15735
15736 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15737 (gdbpy_print_stack): Use gdbpy_err_fetch.
15738 * python/python-internal.h (class gdbpy_err_fetch): New class.
15739 (class gdbpy_enter) <m_error_type, m_error_value,
15740 m_error_traceback>: Remove.
15741 <m_error>: New member.
15742 (gdbpy_exception_to_string): Don't declare.
15743 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15744 * python/py-value.c (convert_value_from_python): Use
15745 gdbpy_err_fetch.
15746 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15747 gdbpy_exception_to_string.
15748 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15749 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15750 gdbpy_err_fetch.
15751
169bb27b
AB
157522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15753
15754 * linux-nat.c (delete_lwp_cleanup): Delete.
15755 (struct lwp_deleter): New struct.
15756 (lwp_info_up): New typedef.
15757 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15758 lwp_info_up.
15759
a07c8880
AB
157602019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15761
15762 * linux-fork.c (class scoped_switch_fork_info): New class.
15763 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15764
26089c49
AB
157652019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15766
15767 * valops.c (find_overload_match): Remove use of null_cleanup, and
15768 calls to do_cleanups.
15769
06d3e5b0
AB
157702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15771
15772 * compile/compile-cplus-types.c
15773 (compile_cplus_instance::decl_name): Handle changes to
15774 cp_func_name.
15775 * cp-support.c (cp_func_name): Update header comment, update
15776 return type.
15777 * cp-support.h (cp_func_name): Update return type in declaration.
15778 * valops.c (find_overload_match): Move temp_func local to top
15779 level of function and change its type. Use temp_func to hold and
15780 delete temporary string obtained from cp_func_name.
15781
66644cd3
AB
157822019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15783
15784 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15785 gdb::char_vector, remove cleanup, and update uses of `msg`.
15786
592d8c0a
JW
157872019-01-03 Jim Wilson <jimw@sifive.com>
15788
15789 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15790
c55d06ec
TT
157912019-01-02 Tom Tromey <tom@tromey.com>
15792
15793 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15794 (tdesc_parse_xml): Remove cleanups.
15795 * target-descriptions.h (make_cleanup_free_target_description):
15796 Don't declare.
15797 (target_desc_deleter): New struct.
15798 (target_desc_up): New typedef.
15799 * target-descriptions.c (target_desc_deleter::operator()): Rename
15800 from free_target_description.
15801 (make_cleanup_free_target_description): Remove.
15802
3a6ae42d
TT
158032019-01-02 Tom Tromey <tom@tromey.com>
15804
15805 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15806 constructor, destructor.
15807 (linespec_parser): Remove typedef.
15808 (~linespec_parser): Rename from linespec_parser_delete.
15809 (linespec_lex_to_end, linespec_complete_label)
15810 (linespec_complete): Update.
15811 (decode_line_full): Remove cleanups.
15812 (decode_line_1): Update.
15813
61fd3e73
TT
158142019-01-02 Tom Tromey <tom@tromey.com>
15815
15816 * python/python-internal.h (inferior_to_inferior_object): Change
15817 return type.
15818 * python/py-exitedevent.c (create_exited_event_object): Update.
15819 * python/py-inferior.c (inferior_to_inferior_object): Return
15820 gdbpy_ref.
15821 (python_new_inferior, python_inferior_deleted)
15822 (thread_to_thread_object, delete_thread_object)
15823 (build_inferior_list, gdbpy_selected_inferior): Update.
15824 * python/py-infthread.c (create_thread_object): Update. Also fail
15825 if inferior_to_inferior_object fails.
15826
d20172fc
SM
158272019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15828
15829 * inferior.h (class inferior) <displaced_step_state>: New field.
15830 * infrun.h (struct displaced_step_state): Move here from
15831 infrun.c. Initialize fields, add constructor.
15832 <inf>: Remove field.
15833 <reset>: New method.
15834 * infrun.c (struct displaced_step_inferior_state): Move to
15835 infrun.h.
15836 (displaced_step_inferior_states): Remove.
15837 (get_displaced_stepping_state): Adust.
15838 (displaced_step_in_progress_any_inferior): Adjust.
15839 (displaced_step_in_progress_thread): Adjust.
15840 (displaced_step_in_progress): Adjust.
15841 (add_displaced_stepping_state): Remove.
15842 (get_displaced_step_closure_by_addr): Adjust.
15843 (remove_displaced_stepping_state): Remove.
15844 (infrun_inferior_exit): Call displaced_step_state.reset.
15845 (use_displaced_stepping): Don't check for NULL.
15846 (displaced_step_prepare_throw): Call
15847 get_displaced_stepping_state.
15848 (displaced_step_fixup): Don't check for NULL.
15849 (prepare_for_detach): Don't check for NULL.
15850
e3319240
PW
158512019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15852
15853 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15854 in case of call that did not complete.
15855
5d36dfb9
AU
158562019-01-02 Andrey Utkin <autkin@undo.io>
15857
15858 * symfile.c (find_separate_debug_file): Fix search of debug files for
15859 remote debuggee.
15860
8833fbf0
TT
158612019-01-02 Tom Tromey <tom@tromey.com>
15862
15863 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15864 indentation.
15865 * python/py-frame.c (frapy_older): Remove cast.
15866 (frapy_newer): Likewise.
15867 * python/py-breakpoint.c (local_setattro): Remove cast.
15868 * python/py-arch.c (archpy_name): Remove local variable.
15869 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15870
4ada3dfd
JB
158712019-01-02 Joel Brobecker <brobecker@adacore.com>
15872
15873 * unittests/basic_string_view/element_access/char/empty.cc:
15874 Fix year range in copyright header.
15875
113b7b81
AB
158762019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15877
15878 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15879 Delete.
15880 <operator==>: Update with for removed field.
15881 <hash>: Likewise.
15882 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15883 <isa_features>: ...this.
15884 <abi_features>: New field.
15885 (riscv_isa_flen): Update comment.
15886 (riscv_abi_xlen): New declaration.
15887 (riscv_abi_flen): New declaration.
15888 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15889 isa_features.
15890 (riscv_abi_xlen): New function.
15891 (riscv_isa_flen): Update to get answer from isa_features.
15892 (riscv_abi_flen): New function.
15893 (riscv_has_fp_abi): Update to get answer from abi_features.
15894 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15895 xlen and flen.
15896 (riscv_call_info) <xlen, flen>: Update comment.
15897 (riscv_call_arg_struct): Remove invalid assertions
15898 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15899 is removed.
15900 (riscv_gdbarch_init): Gather isa features and abi features
15901 separately, ensure both match on the gdbarch when reusing an old
15902 gdbarch. Relax an error check to allow 32-bit abi float to run on
15903 a target with 64-bit float hardware.
15904
b18ca514
PW
159052019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15906
15907 * source.c (search_command_helper): Stop reverse search
15908 when line 1 has been searched.
15909
ec70d8db
PW
159102019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15911
15912 * record-full.c (record_full_base_target::close): Rewrite
15913 record_full_core_buf_list free logic.
15914
5b38f9c1
PW
159152019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15916
15917 * break-catch-syscall.c (print_one_catch_syscall): xfree
15918 the last text.
15919
66d91b39
JB
159202019-01-01 Joel Brobecker <brobecker@adacore.com>
15921
15922 * top.c (print_gdb_version): Update Copyright year in version
15923 message.
15924
42a4f53d
JB
159252019-01-01 Joel Brobecker <brobecker@adacore.com>
15926
15927 Update copyright year range in all GDB files.
15928
7e955d83 159292019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15930
5bbd631d 15931 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15932
5bbd631d 15933For older changes see ChangeLog-2018.
c906108c
SS
15934\f
15935Local Variables:
15936mode: change-log
15937left-margin: 8
15938fill-column: 74
15939version-control: never
57da7796 15940coding: utf-8
c906108c 15941End:
5bbd631d 15942
This page took 3.04432 seconds and 4 git commands to generate.