Make two range_bounds bitfields unsigned
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bab05c83
TT
12019-11-28 Tom Tromey <tom@tromey.com>
2
3 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
4 flag_bound_evaluated>: Now unsigned.
5
2522f049
TT
62019-11-28 Tom Tromey <tom@tromey.com>
7
8 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
9 declare.
10
38b49e22
MS
112019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
12
13 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
14 debug output.
15 * jit.c (jit_unregister_code): Add debug print to match
16 `jit_register_code`.
17
35125921
CB
182019-11-27 Christian Biesinger <cbiesinger@google.com>
19
20 * NEWS: Mention the new multithreaded symbol loading.
21
62e77f56
CB
222019-11-27 Christian Biesinger <cbiesinger@google.com>
23
24 * maint.c (n_worker_threads): Default to 0.
25 (worker_threads_disabled): New function.
26 * maint.h (worker_threads_disabled): New function.
27 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
28 here if worker_threads_disabled () is true.
29 (minimal_symbol_reader::install): Skip all threading if
30 worker_threads_disabled () is true.
31
f29d7f6b
CB
322019-11-27 Christian Biesinger <cbiesinger@google.com>
33
34 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
35 hash code if possible.
36 (add_minsym_to_demangled_hash_table): Likewise.
37 (minimal_symbol_reader::install): Compute the hash codes for msymbol
38 on the background thread.
39 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
40 Add these fields.
41
e76b2246
CB
422019-11-27 Christian Biesinger <cbiesinger@google.com>
43
44 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
45 of the mangled name on the background thread.
46 * symtab.c (symbol_set_names): Allow passing in the hash of the
47 linkage_name.
48 * symtab.h (symbol_set_names): Likewise.
49
8d9a2568
KB
502019-11-27 Kevin Buettner <kevinb@redhat.com>
51
52 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
53 physnames are computed for inherited DIEs.
54
fad03f6e
TT
552019-11-27 Tom Tromey <tromey@adacore.com>
56
57 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
58 backslashes.
59 * cp-support.c: Remove unnecessary backslashes.
60
43678b0a
CB
612019-11-27 Christian Biesinger <cbiesinger@google.com>
62
63 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
64 with sym->set_linkage_name.
65 * coffread.c (coff_read_enum_type): Likewise.
66 * mdebugread.c (parse_symbol): Likewise.
67 * stabsread.c (patch_block_stabs): Likewise.
68 (define_symbol): Likewise.
69 (read_enum_type): Likewise.
70 (common_block_end): Likewise.
71 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
72 function.
73 (SYMBOL_SET_LINKAGE_NAME): Remove.
74 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
75 with sym->set_linkage_name.
76
db5960b4
AB
772019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
80 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
81 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
82 * NEWS: Mention new MI command.
83
7dc42066
AB
842019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
85
86 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
87 '-symbol-info-types', and '-symbol-info-variables'.
88 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
89 (mi_cmd_symbol_info_types): Declare.
90 (mi_cmd_symbol_info_variables): Declare.
91 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
92 (output_debug_symbol): New function.
93 (output_nondebug_symbol): New function.
94 (mi_symbol_info): New function.
95 (mi_info_functions_or_variables): New function.
96 (mi_cmd_symbol_info_functions): New function.
97 (mi_cmd_symbol_info_types): New function.
98 (mi_cmd_symbol_info_variables): New function.
99 * NEWS: Mention new commands.
100
5f512a7d
AB
1012019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * symtab.c (symbol_to_info_string): New function, most content
104 moved from print_symbol_info, but updated to return a std::string.
105 (print_symbol_info): Update to use symbol_to_info_string and print
106 returned string.
107 * symtab.h (symbol_to_info_string): Declare new function.
108
470c0b1c
AB
1092019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * python/python.c (gdbpy_rbreak): Convert to using
112 global_symbol_searcher.
113 * symtab.c (file_matches): Convert return type to bool, change
114 file list to std::vector, update header comment.
115 (search_symbols): Rename to...
116 (global_symbol_searcher::search): ...this and update now its
117 a member function of global_symbol_searcher. Take account of the
118 changes to file_matches.
119 (symtab_symbol_info): Convert to using global_symbol_searcher.
120 (rbreak_command): Likewise.
121 (search_module_symbols): Likewise.
122 * symtab.h (enum symbol_search): Update comment.
123 (search_symbols): Remove declaration.
124 (class global_symbol_searcher): New class.
125
57357d9d
TT
1262019-11-26 Tom Tromey <tromey@adacore.com>
127
128 * cp-support.c (_initialize_cp_support): Conditionally initialize
129 gdb_demangle_attempt_core_dump.
130
3ea16160
TT
1312019-11-26 Tom Tromey <tom@tromey.com>
132
133 * python/py-function.c (fnpy_init): Update.
134 * value.h (add_internal_function): Adjust declaration.
135 * value.c (function_destroyer): Remove.
136 (do_add_internal_function): Don't set destroyer or copy name.
137 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
138 Set name_allocated.
139 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
140 (cmdpy_init): Set name_allocated.
141 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
142 member.
143 (~cmd_list_element): Free "name" if needed.
144
1a6d41c6
TT
1452019-11-26 Tom Tromey <tom@tromey.com>
146
147 * value.h (add_internal_function): Add new overload. Move
148 documentation from value.h.
149 * value.c (do_add_internal_function): New function.
150 (add_internal_function): Use it. Add new overload.
151 (function_destroyer): Don't free doc.
152 * python/py-function.c (fnpy_init): Update.
153
8318f3c3
TT
1542019-11-26 Tom Tromey <tom@tromey.com>
155
156 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
157 (cmdpy_init): Set "doc_allocated".
158
4da8c3a8
TT
1592019-11-26 Tom Tromey <tom@tromey.com>
160
161 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
162 name of worker thread.
163 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
164 pthread_setname_np.
165 * configure, config.in: Rebuild.
166
971db5e2
TT
1672019-11-26 Tom Tromey <tom@tromey.com>
168
169 * python/python.c (class gdbpy_gil): New.
170 (struct gdbpy_event): Add constructor, destructor, operator().
171 (gdbpy_post_event): Use run_on_main_thread.
172 (gdbpy_initialize_events): Remove.
173 (do_start_initialization): Update.
174
22138db6
TT
1752019-11-26 Tom Tromey <tom@tromey.com>
176
177 * NEWS: Add entry.
178 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
179 commands. Call update_thread_pool_size.
180 (update_thread_pool_size, maintenance_set_worker_threads): New
181 functions.
182 (n_worker_threads): New global.
183
d55c9a68
TT
1842019-11-26 Christian Biesinger <cbiesinger@google.com>
185 Tom Tromey <tom@tromey.com>
186
187 * minsyms.c (minimal_symbol_reader::install): Use
188 parallel_for_each.
189 * gdbsupport/parallel-for.h: New file.
190 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
191
a0b57563
CB
1922019-11-26 Christian Biesinger <cbiesinger@google.com>
193 Tom Tromey <tom@tromey.com>
194
195 * gdbsupport/thread-pool.h: New file.
196 * gdbsupport/thread-pool.c: New file.
197 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
198 (HFILES_NO_SRCDIR): Add thread-pool.h.
199
3b3978bc
TT
2002019-11-26 Tom Tromey <tom@tromey.com>
201
202 * event-top.h (thread_local_segv_handler): Declare.
203 * event-top.c (thread_local_segv_handler): New global.
204 (install_handle_sigsegv, handle_sigsegv): New functions.
205 (async_init_signals): Install SIGSEGV handler.
206 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
207 thread-local.
208 (report_failed_demangle): New function.
209 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
210 handler-setting code, instead use segv_handler. Run warning code
211 on main thread.
212
9411c49e
TT
2132019-11-26 Tom Tromey <tom@tromey.com>
214
215 * run-on-main-thread.c: New file.
216 * run-on-main-thread.h: New file.
217 * unittests/main-thread-selftests.c: New file.
218 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
219 main-thread-selftests.c.
220 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
221 (COMMON_SFILES): Add run-on-main-thread.c.
222
c3efb965
TT
2232019-11-26 Tom Tromey <tom@tromey.com>
224
225 * main.c (setup_alternate_signal_stack): Remove.
226 (captured_main_1): Use gdb::alternate_signal_stack.
227 * gdbsupport/alt-stack.h: New file.
228
21987b9c
TT
2292019-11-26 Tom Tromey <tom@tromey.com>
230
231 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
232 Remove comment.
233 (save_original_signals_state, restore_original_signals_state): Use
234 gdb_sigmask.
235 * linux-nat.c (block_child_signals, restore_child_signals_mask)
236 (_initialize_linux_nat): Use gdb_sigmask.
237 * guile/guile.c (_initialize_guile): Use block_signals.
238 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
239 * gdbsupport/gdb-sigmask.h: New file.
240 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
241 * cp-support.c (gdb_demangle): Use gdb_sigmask.
242 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
243 pthread_sigmask.
244 * configure, config.in: Rebuild.
245 * gdbsupport/block-signals.h: New file.
246
5e030278
TT
2472019-11-26 Tom Tromey <tom@tromey.com>
248
249 * acinclude.m4: Include ax_pthread.m4.
250 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
251 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
252 (CLIBS): Use PTHREAD_LIBS.
253 (aclocal_m4_deps): Add ax_pthread.m4.
254 * config.in, configure: Rebuild.
255 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
256
5a79c107
TT
2572019-11-26 Tom Tromey <tom@tromey.com>
258
259 * symtab.h (struct minimal_symbol) <name_set>: New member.
260 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
261 Don't call symbol_set_names.
262 (minimal_symbol_reader::install): Call symbol_set_names.
263
aa369509
PW
2642019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
265
266 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
267 restore_active_ext_lang, as GIL is needed for (indirectly)
268 called PyOS_InterruptOccurred.
269
cadc9cb8
SM
2702019-11-26 Simon Marchi <simon.marchi@efficios.com>
271
272 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
273 definition.
274
d04afd58
SM
2752019-11-26 Simon Marchi <simon.marchi@efficios.com>
276
277 * remote-sim.c (simulator_command): Make static, remove
278 declaration.
279
dd694d77
SM
2802019-11-26 Simon Marchi <simon.marchi@efficios.com>
281
282 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
283 static.
284 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
285 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
286 (main): Likewise.
287 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
288 (main): Likewise.
289 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
290 (main): Likewise.
291 * unittests/basic_string_view/element_access/char/1.cc (test01):
292 Likewise.
293 (main): Likewise.
294 * unittests/basic_string_view/element_access/char/empty.cc (main):
295 Likewise.
296 * unittests/basic_string_view/element_access/char/front_back.cc
297 (test01): Likewise.
298 (main): Likewise.
299 * unittests/basic_string_view/inserters/char/2.cc (test05):
300 Likewise.
301 (main): Likewise.
302 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
303 (test01): Likewise.
304 (main): Likewise.
305 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
306 (test01): Likewise.
307 (main): Likewise.
308 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
309 Likewise.
310 * unittests/basic_string_view/operations/compare/char/1.cc
311 (test01): Likewise.
312 (main): Likewise.
313 * unittests/basic_string_view/operations/compare/char/13650.cc
314 (test01): Likewise.
315 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
316 Likewise.
317 (main): Likewise.
318 * unittests/basic_string_view/operations/data/char/1.cc (test01):
319 Likewise.
320 (main): Likewise.
321 * unittests/basic_string_view/operations/find/char/1.cc (test01):
322 Likewise.
323 (main): Likewise.
324 * unittests/basic_string_view/operations/find/char/2.cc (test02):
325 Likewise.
326 (main): Likewise.
327 * unittests/basic_string_view/operations/find/char/3.cc (test03):
328 Likewise.
329 (main): Likewise.
330 * unittests/basic_string_view/operations/find/char/4.cc (main):
331 Likewise.
332 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
333 Likewise.
334 (main): Likewise.
335 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
336 Likewise.
337 (main): Likewise.
338 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
339 Likewise.
340 (main): Likewise.
341 * unittests/basic_string_view/operations/substr/char/1.cc
342 (test01): Likewise.
343 (main): Likewise.
344 * unittests/basic_string_view/operators/char/2.cc (main):
345 Likewise.
346 * unittests/optional/assignment/1.cc (test): Likewise.
347 * unittests/optional/assignment/2.cc (test): Likewise.
348 * unittests/optional/assignment/3.cc (test): Likewise.
349 * unittests/optional/assignment/4.cc (test): Likewise.
350 * unittests/optional/assignment/5.cc (test): Likewise.
351 * unittests/optional/assignment/6.cc (test): Likewise.
352 * unittests/optional/assignment/7.cc (test): Likewise.
353 * unittests/optional/cons/copy.cc (test): Likewise.
354 * unittests/optional/cons/default.cc (test): Likewise.
355 * unittests/optional/cons/move.cc (test): Likewise.
356 * unittests/optional/cons/value.cc (test): Likewise.
357 * unittests/optional/in_place.cc (test): Likewise.
358 * unittests/optional/observers/1.cc (test): Likewise.
359 * unittests/optional/observers/2.cc (test): Likewise.
360
3b5c1d49
SM
3612019-11-26 Simon Marchi <simon.marchi@efficios.com>
362
363 * tui-win.h (tui_set_var_cmd): Remove.
364 * tui-win.c (tui_set_var_cmd): Make static.
365
adce99fe
SM
3662019-11-26 Simon Marchi <simon.marchi@efficios.com>
367
368 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
369 rbreak_command_wrapper): Remove.
370 * symtab.c (rbreak_command_wrapper): Remove.
371
fe3adccf
SM
3722019-11-26 Simon Marchi <simon.marchi@efficios.com>
373
374 * inferior.h (info_terminal_command): Remove declaration.
375 * inflow.c (info_terminal_command): Make static.
376
b926335f
SM
3772019-11-26 Simon Marchi <simon.marchi@efficios.com>
378
379 * inferior.c (exit_inferior_silent): Remove.
380
b62f6f54
SM
3812019-11-26 Simon Marchi <simon.marchi@efficios.com>
382
383 * dictionary.c (dict_empty, mdict_empty): Remove.
384 * dictionary.c (mdict_empty): Remove.
385
cb8c24b6
SM
3862019-11-26 Simon Marchi <simon.marchi@efficios.com>
387
388 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
389 (arc_insn_get_memory_offset): Likewise.
390 (arc_insn_dump): Likewise.
391 * cp-support.c (test_cp_symbol_name_matches): Likewise.
392 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
393 * dictionary.c (dict_iterator_next): Likewise.
394 (dict_iter_match_first): Likewise.
395 (dict_iter_match_next): Likewise.
396 * f-lang.c (evaluate_subexp_f): Likewise.
397 * hppa-tdep.c (hppa_read_pc): Likewise.
398 * i386-tdep.c (i386_floatformat_for_type): Likewise.
399 * parse.c (write_exp_elt_msym): Likewise.
400 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
401 * remote.c (remote_packet_size): Likewise.
402 (remote_notif_stop_parse): Likewise.
403 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
404 * s12z-tdep.c (s12z_disassemble_info): Likewise.
405 * source.c (prepare_path_for_appending): Likewise.
406 * sparc64-linux-tdep.c
407 (sparc64_linux_handle_segmentation_fault); Likewise.
408 * stack.c (frame_selection_by_function_completer): Likewise.
409
781597ff
SM
4102019-11-26 Simon Marchi <simon.marchi@efficios.com>
411
412 * completer.c (set_gdb_completion_word_break_characters):
413 Remove.
414
23baa4cc
SM
4152019-11-26 Simon Marchi <simon.marchi@efficios.com>
416
417 * dwarf-index-write.c: Include dwarf-index-write.h.
418 * mi/mi-interp.c: Include mi/mi-interp.h.
419
23767560
SM
4202019-11-26 Simon Marchi <simon.marchi@efficios.com>
421
422 * aarch32-tdep.c: Include aarch32-tdep.h.
423 * aarch32-tdep.h: Forward-declare struct target_desc.
424
6d91ce9a
CB
4252019-11-26 Christian Biesinger <cbiesinger@google.com>
426
427 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
428 strerror.
429 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
430 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
431
3cf2f237
TV
4322019-11-25 Tom de Vries <tdevries@suse.de>
433
434 * contrib/words.sh: Add -c option.
435
5b89c67a
CB
4362019-11-25 Christian Biesinger <cbiesinger@google.com>
437
438 * solib.c (solib_find_1): Change int to bool.
439 (exec_file_find): Change int to bool.
440 (solib_find): Change int to bool.
441 (solib_read_symbols): Change int to bool.
442 (solib_used): Change int to bool.
443 (solib_add): Change int to bool.
444 (info_sharedlibrary_command): Change int to bool.
445 (solib_contains_address_p): Change int to bool.
446 (solib_keep_data_in_core): Change int to bool.
447 (in_solib_dynsym_resolve_code): Change int to bool.
448 (reload_shared_libraries_1): Change int to bool.
449 (gdb_sysroot_changed): Change int to bool.
450 * solib.h (solib_read_symbols): Change int to bool.
451 (solib_contains_address_p): Change int to bool.
452 (solib_keep_data_in_core): Change int to bool.
453 (in_solib_dynsym_resolve_code): Change int to bool.
454 (libpthread_name_p): Change int to bool.
455
6cc8564b
LM
4562019-11-25 Luis Machado <luis.machado@linaro.org>
457
458 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
459 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
460 (remote_packet_max_chars): New static global.
461 (show_remote_packet_max_chars): New function.
462 (remote_target::putpkt_binary): Adjust to use new
463 remote_packet_max_chars option.
464 (remote_target::getpkt_or_notif_sane_1): Likewise.
465 (_initialize_remote): Register new remote-packet-max-chars option.
466
a7cdaa91
SM
4672019-11-24 Simon Marchi <simon.marchi@efficios.com>
468
469 * m68k-linux-nat.c: Include gdbarch.h.
470
26abc753
TT
4712019-11-24 Tom Tromey <tom@tromey.com>
472
473 * symfile.c (read_symbols): Update.
474 * psymtab.c (require_partial_symbols): Change type of "verbose" to
475 bool.
476 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
477 (psym_lookup_symbol, psym_find_last_source_symtab)
478 (psym_forget_cached_source_info, psym_print_stats)
479 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
480 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
481 (psym_map_matching_symbols, psym_expand_symtabs_matching)
482 (psym_find_compunit_symtab_by_address)
483 (maintenance_print_psymbols, maintenance_info_psymtabs)
484 (maintenance_check_psymtabs): Update.
485 * psymtab.h (require_partial_symbols): Change type of "verbose" to
486 bool.
487
012fc909
TT
4882019-11-22 Tom Tromey <tom@tromey.com>
489
490 * observable.h: Update comments.
491
c83d8d32
TT
4922019-11-22 Tom Tromey <tromey@adacore.com>
493
494 * ada-tasks.c (ada_task_is_alive): Make parameter const.
495 (print_ada_task_info): Don't try to fetch thread id if task is not
496 alive.
497
987012b8
CB
4982019-11-22 Christian Biesinger <cbiesinger@google.com>
499
500 * ada-exp.y: Update.
501 * ada-lang.c (sort_choices): Update.
502 (ada_print_symbol_signature): Update.
503 (resolve_subexp): Update.
504 (ada_parse_renaming): Update.
505 (ada_read_renaming_var_value): Update.
506 (lesseq_defined_than): Update.
507 (remove_extra_symbols): Update.
508 (remove_irrelevant_renamings): Update.
509 (ada_add_block_symbols): Update.
510 (ada_collect_symbol_completion_matches): Update.
511 (ada_is_renaming_symbol): Update.
512 (aggregate_assign_from_choices): Update.
513 (ada_evaluate_subexp): Update.
514 (ada_has_this_exception_support): Update.
515 (ada_is_non_standard_exception_sym): Update.
516 (ada_add_exceptions_from_frame): Update.
517 (ada_add_global_exceptions): Update.
518 (ada_print_subexp): Update.
519 * ax-gdb.c (gen_var_ref): Update.
520 (gen_maybe_namespace_elt): Update.
521 (gen_expr_for_cast): Update.
522 (gen_expr): Update.
523 * block.h: Update.
524 * blockframe.c (find_pc_partial_function): Update.
525 * breakpoint.c (print_breakpoint_location): Update.
526 (update_static_tracepoint): Update.
527 * btrace.c (ftrace_print_function_name): Update.
528 (ftrace_function_switched): Update.
529 * buildsym.c (find_symbol_in_list): Update.
530 * c-exp.y: Update.
531 * c-typeprint.c (c_print_typedef): Update.
532 (c_type_print_template_args): Update.
533 * cli/cli-cmds.c (edit_command): Update.
534 (list_command): Update.
535 (print_sal_location): Update.
536 * coffread.c (patch_opaque_types): Update.
537 (process_coff_symbol): Update.
538 (coff_read_enum_type): Update.
539 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
540 (convert_one_symbol): Update.
541 (hash_symname): Update.
542 (eq_symname): Update.
543 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
544 * compile/compile-cplus-types.c (debug_print_scope): Update.
545 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
546 * compile/compile-object-load.c (get_out_value_type): Update.
547 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
548 (search_symbol_list): Update.
549 (cp_lookup_symbol_imports_or_template): Update.
550 * cp-support.c (overload_list_add_symbol): Update.
551 * ctfread.c (psymtab_to_symtab): Update.
552 * dbxread.c (cp_set_block_scope): Update.
553 * dictionary.c (iter_match_first_hashed): Update.
554 (iter_match_next_hashed): Update.
555 (insert_symbol_hashed): Update.
556 (iter_match_next_linear): Update.
557 * dictionary.h: Update.
558 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
559 (locexpr_describe_location_piece): Update.
560 (locexpr_describe_location_1): Update.
561 (locexpr_generate_c_location): Update.
562 (loclist_describe_location): Update.
563 (loclist_generate_c_location): Update.
564 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
565 (read_func_scope): Update.
566 (process_enumeration_scope): Update.
567 (new_symbol): Update.
568 (dwarf2_const_value): Update.
569 (dwarf2_symbol_mark_computed): Update.
570 * eval.c (evaluate_funcall): Update.
571 (evaluate_subexp_standard): Update.
572 * expprint.c (print_subexp_standard): Update.
573 (dump_subexp_body_standard): Update.
574 * f-valprint.c (info_common_command_for_block): Update.
575 * findvar.c (get_hosting_frame): Update.
576 (default_read_var_value): Update.
577 * go-lang.c (go_symbol_package_name): Update.
578 * guile/scm-block.c (bkscm_print_block_smob): Update.
579 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
580 (gdbscm_symbol_name): Update.
581 (gdbscm_symbol_linkage_name): Update.
582 (gdbscm_symbol_print_name): Update.
583 * infcall.c (get_function_name): Update.
584 * infcmd.c (jump_command): Update.
585 (finish_command): Update.
586 * infrun.c (insert_exception_resume_breakpoint): Update.
587 * linespec.c (canonicalize_linespec): Update.
588 (create_sals_line_offset): Update.
589 (convert_linespec_to_sals): Update.
590 (complete_label): Update.
591 (find_label_symbols_in_block): Update.
592 * m2-typeprint.c (m2_print_typedef): Update.
593 * mdebugread.c (mdebug_reg_to_regnum): Update.
594 (parse_symbol): Update.
595 (mylookup_symbol): Update.
596 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
597 (list_args_or_locals): Update.
598 * objc-lang.c (compare_selectors): Update.
599 (info_selectors_command): Update.
600 (compare_classes): Update.
601 (info_classes_command): Update.
602 (find_imps): Update.
603 * p-typeprint.c (pascal_print_typedef): Update.
604 * printcmd.c (build_address_symbolic): Update.
605 (info_address_command): Update.
606 (print_variable_and_value): Update.
607 * python/py-framefilter.c (extract_sym): Update.
608 (py_print_single_arg): Update.
609 * python/py-symbol.c (sympy_str): Update.
610 (sympy_get_name): Update.
611 (sympy_get_linkage_name): Update.
612 * python/python.c (gdbpy_rbreak): Update.
613 * record-btrace.c (btrace_get_bfun_name): Update.
614 (btrace_call_history): Update.
615 * rust-lang.c (rust_print_typedef): Update.
616 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
617 * stabsread.c (stab_reg_to_regnum): Update.
618 (define_symbol): Update.
619 (read_enum_type): Update.
620 (common_block_end): Update.
621 (cleanup_undefined_types_1): Update.
622 (scan_file_globals): Update.
623 * stack.c (print_frame_arg): Update.
624 (print_frame_args): Update.
625 (find_frame_funname): Update.
626 (info_frame_command_core): Update.
627 (iterate_over_block_locals): Update.
628 (print_block_frame_labels): Update.
629 (do_print_variable_and_value): Update.
630 (iterate_over_block_arg_vars): Update.
631 (return_command): Update.
632 * symmisc.c (dump_symtab_1): Update.
633 (print_symbol): Update.
634 * symtab.c (eq_symbol_entry): Update.
635 (symbol_cache_dump): Update.
636 (lookup_language_this): Update.
637 (find_pc_sect_line): Update.
638 (skip_prologue_sal): Update.
639 (symbol_search::compare_search_syms): Update.
640 (treg_matches_sym_type_name): Update.
641 (search_symbols): Update.
642 (print_symbol_info): Update.
643 (rbreak_command): Update.
644 (completion_list_add_symbol): Update.
645 (find_gnu_ifunc): Update.
646 (get_symbol_address): Update.
647 (search_module_symbols): Update.
648 (info_module_subcommand): Update.
649 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
650 (SYMBOL_LINKAGE_NAME): Remove.
651 (SYMBOL_DEMANGLED_NAME): Remove.
652 (SYMBOL_PRINT_NAME): Remove.
653 (SYMBOL_SEARCH_NAME): Remove.
654 * tracepoint.c (set_traceframe_context): Update.
655 (validate_actionline): Update.
656 (collection_list::collect_symbol): Update.
657 (encode_actions_1): Update.
658 (info_scope_command): Update.
659 (print_one_static_tracepoint_marker): Update.
660 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
661 * valops.c (address_of_variable): Update.
662 (find_overload_match): Update.
663 (find_oload_champ): Update.
664
c9d95fa3
CB
6652019-11-22 Christian Biesinger <cbiesinger@google.com>
666
667 * ada-lang.c (ada_lookup_simple_minsym): Update.
668 (ada_collect_symbol_completion_matches): Update.
669 * ada-tasks.c (read_atcb): Update.
670 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
671 (amd64_windows_skip_trampoline_code): Update.
672 * arm-tdep.c (skip_prologue_function): Update.
673 (arm_skip_stack_protector): Update.
674 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
675 (arm_wince_skip_main_prologue): Update.
676 * ax-gdb.c (gen_expr): Update.
677 * block.c (call_site_for_pc): Update.
678 * blockframe.c (find_pc_partial_function): Update.
679 * breakpoint.c (set_breakpoint_location_function): Update.
680 * btrace.c (ftrace_print_function_name): Update.
681 (ftrace_function_switched): Update.
682 * c-valprint.c (print_unpacked_pointer): Update.
683 * coffread.c (coff_symfile_read): Update.
684 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
685 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
686 * dwarf-index-write.c (write_psymbols): Update.
687 * dwarf2loc.c (call_site_to_target_addr): Update.
688 (func_verify_no_selftailcall): Update.
689 (tailcall_dump): Update.
690 (call_site_find_chain_1): Update.
691 (dwarf_expr_reg_to_entry_parameter): Update.
692 * elfread.c (elf_gnu_ifunc_record_cache): Update.
693 * eval.c (evaluate_funcall): Update.
694 (evaluate_subexp_standard): Update.
695 (evaluate_subexp_for_sizeof): Update.
696 * expprint.c (print_subexp_standard): Update.
697 (dump_subexp_body_standard): Update.
698 * frame.c (get_prev_frame_always_1): Update.
699 * frv-tdep.c (frv_skip_main_prologue): Update.
700 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
701 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
702 (gnuv3_get_typename_from_type_info): Update.
703 (gnuv3_skip_trampoline): Update.
704 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
705 * i386-tdep.c (i386_skip_main_prologue): Update.
706 (i386_pe_skip_trampoline_code): Update.
707 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
708 * infcall.c (get_function_name): Update.
709 * linespec.c (minsym_found): Update.
710 * linux-fork.c (info_checkpoints_command): Update.
711 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
712 (m32c_m16c_pointer_to_address): Update.
713 * maint.c (maintenance_translate_address): Update.
714 * minsyms.c (add_minsym_to_hash_table): Update.
715 (add_minsym_to_demangled_hash_table): Update.
716 (lookup_minimal_symbol_mangled): Update.
717 (lookup_minimal_symbol_demangled): Update.
718 (lookup_minimal_symbol_linkage): Update.
719 (lookup_minimal_symbol_text): Update.
720 (lookup_minimal_symbol_by_pc_name): Update.
721 (minimal_symbol_is_less_than): Update.
722 (compact_minimal_symbols): Update.
723 (build_minimal_symbol_hash_tables): Update.
724 (find_solib_trampoline_target): Update.
725 * mips-tdep.c (mips_stub_frame_sniffer): Update.
726 (mips_skip_pic_trampoline_code): Update.
727 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
728 * objc-lang.c (info_selectors_command): Update.
729 (info_classes_command): Update.
730 (find_methods): Update.
731 (find_imps): Update.
732 * p-valprint.c (pascal_val_print): Update.
733 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
734 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
735 * printcmd.c (build_address_symbolic): Update.
736 (info_symbol_command): Update.
737 * psymtab.c (psymbol_name_matches): Update.
738 (match_partial_symbol): Update.
739 (lookup_partial_symbol): Update.
740 (print_partial_symbols): Update.
741 (sort_pst_symbols): Update.
742 (maintenance_check_psymtabs): Update.
743 * python/py-framefilter.c (py_print_frame): Update.
744 * python/python.c (gdbpy_rbreak): Update.
745 * record-btrace.c (btrace_get_bfun_name): Update.
746 (btrace_call_history): Update.
747 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
748 (rs6000_skip_trampoline_code): Update.
749 * sol-thread.c (info_cb): Update.
750 * stabsread.c (scan_file_globals): Update.
751 * stack.c (find_frame_funname): Update.
752 (info_frame_command_core): Update.
753 * symmisc.c (dump_msymbols): Update.
754 * symtab.c (symbol_natural_name): Rename to..,
755 (general_symbol_info::natural_name): ...this.
756 (symbol_demangled_name): Rename to...
757 (general_symbol_info::demangled_name): ...this.
758 (symbol_search_name): Rename to...
759 (general_symbol_info::search_name): ...this.
760 (symbol_matches_search_name): Update.
761 (find_pc_sect_line): Update.
762 (skip_prologue_sal): Update.
763 (search_symbols): Update.
764 (print_msymbol_info): Update.
765 (rbreak_command): Update.
766 (completion_list_add_msymbol): Update.
767 (completion_list_objc_symbol): Update.
768 (get_msymbol_address): Update.
769 * symtab.h (struct general_symbol_info): Add member functions
770 natural_name (), linkage_name (), print_name (), demangled_name (),
771 and search_name ().
772 (SYMBOL_NATURAL_NAME): Update.
773 (symbol_natural_name): Move to a member function on general_symbol_info.
774 (SYMBOL_DEMANGLED_NAME): Update.
775 (symbol_demangled_name): Move to a member function on
776 general_symbol_info.
777 (SYMBOL_SEARCH_NAME): Update.
778 (symbol_search_name): Move to a member function on general_symbol_info.
779 (MSYMBOL_NATURAL_NAME): Remove.
780 (MSYMBOL_LINKAGE_NAME): Remove.
781 (MSYMBOL_PRINT_NAME): Remove.
782 (MSYMBOL_DEMANGLED_NAME): Remove.
783 (MSYMBOL_SEARCH_NAME): Remove.
784 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
785
f8bab2d6
CB
7862019-11-22 Christian Biesinger <cbiesinger@google.com>
787
788 * symtab.c (create_demangled_names_hash): Use per_bfd->
789 minimal_symbol_count for computing the initial size, if greater
790 than our default size.
791
85e7588d
TV
7922019-11-22 Tom de Vries <tdevries@suse.de>
793
794 * contrib/words.sh: Improve words extraction.
795
f6180073
TV
7962019-11-22 Tom de Vries <tdevries@suse.de>
797
798 * contrib/words.sh: Combine sed invocations.
799
f10ffa41
CB
8002019-11-21 Christian Biesinger <cbiesinger@google.com>
801
802 * Makefile.in: Update.
803 * demangle.c: Rename to...
804 * gdb-demangle.c: ..this.
805 (is_cplus_marker): Change return type to bool.
806 (_initialize_demangler): Rename to...
807 (_initialize_gdb_demangle): ...this.
808 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
809 * symtab.h (demangle): Remove declaration; instead include
810 gdb-demangle.h.
811
6ba18521
TT
8122019-11-21 Tom Tromey <tromey@adacore.com>
813
814 * gdbsupport/format.c (format_pieces): Parse %I64d.
815 * unittests/format_pieces-selftests.c (test_windows_formats): New
816 function.
817 (run_tests): Call it.
818
34877895
PJ
8192019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
820
821 Byte reverse display of variables with DW_END_big, DW_END_little
822 (DW_AT_endianity) dwarf attributes if different than the native
823 byte order.
824 * ada-lang.c (ada_value_binop):
825 Use type_byte_order instead of gdbarch_byte_order.
826 * ada-valprint.c (printstr):
827 (ada_val_print_string):
828 * ada-lang.c (value_pointer):
829 (ada_value_binop):
830 Use type_byte_order instead of gdbarch_byte_order.
831 * c-lang.c (c_get_string):
832 Use type_byte_order instead of gdbarch_byte_order.
833 * c-valprint.c (c_val_print_array):
834 Use type_byte_order instead of gdbarch_byte_order.
835 * cp-valprint.c (cp_print_class_member):
836 Use type_byte_order instead of gdbarch_byte_order.
837 * dwarf2loc.c (rw_pieced_value):
838 Use type_byte_order instead of gdbarch_byte_order.
839 * dwarf2read.c (read_base_type): Handle DW_END_big,
840 DW_END_little
841 * f-lang.c (f_get_encoding):
842 Use type_byte_order instead of gdbarch_byte_order.
843 * findvar.c (default_read_var_value):
844 Use type_byte_order instead of gdbarch_byte_order.
845 * gdbtypes.c (check_types_equal):
846 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
847 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
848 and TYPE_ENDIANITY_LITTLE if set.
849 (type_byte_order): new function.
850 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
851 (struct main_type) <flag_endianity_not_default>:
852 New field.
853 (type_byte_order): New function.
854 * infcmd.c (default_print_one_register_info):
855 Use type_byte_order instead of gdbarch_byte_order.
856 * p-lang.c (pascal_printstr):
857 Use type_byte_order instead of gdbarch_byte_order.
858 * p-valprint.c (pascal_val_print):
859 Use type_byte_order instead of gdbarch_byte_order.
860 * printcmd.c (print_scalar_formatted):
861 Use type_byte_order instead of gdbarch_byte_order.
862 * solib-darwin.c (darwin_current_sos):
863 Use type_byte_order instead of gdbarch_byte_order.
864 * solib-svr4.c (solib_svr4_r_ldsomap):
865 Use type_byte_order instead of gdbarch_byte_order.
866 * stap-probe.c (stap_modify_semaphore):
867 Use type_byte_order instead of gdbarch_byte_order.
868 * target-float.c (target_float_same_format_p):
869 Use type_byte_order instead of gdbarch_byte_order.
870 * valarith.c (scalar_binop):
871 (value_bit_index):
872 Use type_byte_order instead of gdbarch_byte_order.
873 * valops.c (value_cast):
874 Use type_byte_order instead of gdbarch_byte_order.
875 * valprint.c (generic_emit_char):
876 (generic_printstr):
877 (val_print_string):
878 Use type_byte_order instead of gdbarch_byte_order.
879 * value.c (unpack_long):
880 (unpack_bits_as_long):
881 (unpack_value_bitfield):
882 (modify_field):
883 (pack_long):
884 (pack_unsigned_long):
885 Use type_byte_order instead of gdbarch_byte_order.
886 * findvar.c (unsigned_pointer_to_address):
887 (signed_pointer_to_address):
888 (unsigned_address_to_pointer):
889 (address_to_signed_pointer):
890 (default_read_var_value):
891 (default_value_from_register):
892 Use type_byte_order instead of gdbarch_byte_order.
893 * gnu-v3-abi.c (gnuv3_make_method_ptr):
894 Use type_byte_order instead of gdbarch_byte_order.
895 * riscv-tdep.c (riscv_print_one_register_info):
896 Use type_byte_order instead of gdbarch_byte_order.
897
87fb00ea
SM
8982019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
899
900 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
901 (current_ui_gdb_stdin_ptr): Likewise.
902 (current_ui_gdb_stderr_ptr): Likewise.
903 (current_ui_gdb_stdlog_ptr): Likewise.
904 (current_ui_current_uiout_ptr): Likewise.
905 (gen_ret_current_ui_field_ptr): Remove.
906
65d1cd5f
TV
9072019-11-21 Tom de Vries <tdevries@suse.de>
908
909 PR gdb/24956
910 * cli/cli-script.c (execute_control_command): Only switch to
911 INTERP_CONSOLE's ui_out when INTERP_MI is active.
912
9f6ad286
TT
9132019-11-19 Tom Tromey <tom@tromey.com>
914
915 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
916 Now static. Change type of "name".
917 (tui_set_win_height_command): Don't copy "arg".
918 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
919 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
920
435d3d88
AT
9212019-11-19 Ali Tamur <tamur@google.com>
922
923 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
924 "if (attr != nullptr)".
925 (dwarf2_find_base_address): Likewise.
926 (dwarf2_build_include_psymtabs): Likewise.
927 (read_cutu_die_from_dwo): Likewise.
928 (read_func_scope): Likewise.
929 (read_call_site_scope): Likewise.
930 (dwarf2_get_pc_bounds): Likewise.
931 (dwarf2_record_block_ranges): Likewise.
932 (dwarf2_add_field): Likewise.
933 (dwarf2_add_member_fn): Likewise.
934 (read_structure_type): Likewise.
935 (read_enumeration_type): Likewise.
936 (read_array_type): Likewise.
937 (read_array_order): Likewise.
938 (read_set_type): Likewise.
939 (read_common_block): Likewise.
940 (read_tag_reference_type): Likewise.
941 (read_tag_string_type): Likewise.
942 (read_subroutine_type): Likewise.
943 (read_base_type): Likewise.
944 (read_subrange_type): Likewise.
945 (new_symbol): Likewise.
946 (prepare_one_comp_unit): Likewise.
947
c9739b6a
TT
9482019-11-19 Tom Tromey <tromey@adacore.com>
949
950 * windows-nat.c (windows_nat_target::attach): Include GetLastError
951 result in error when DebugActiveProcess fails.
952
494409bb
SDJ
9532019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
954 Pedro Alves <palves@redhat.com>
955
956 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
957 * target.c (target_stack::push): Call 'unpush' if there's a
958 target on top of the stack.
959
2e953aca
PW
9602019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
961
962 * python/py-block.c (blpy_dealloc): Call tp_free.
963 (blpy_block_syms_dealloc): Likewise.
964 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
965 * python/py-inferior.c (infpy_dealloc): Likewise.
966 * python/py-lazy-string.c (stpy_dealloc): Likewise.
967 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
968 * python/py-symbol.c (sympy_dealloc): Likewise.
969 * python/py-symtab.c (stpy_dealloc): Likewise.
970 * python/py-type.c (typy_iterator_dealloc): Likewise.
971
6edc43ec
CB
9722019-11-18 Christian Biesinger <cbiesinger@google.com>
973
974 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
975 constructor instead of using a class initializer.
976
cd850b40
CB
9772019-11-15 Christian Biesinger <cbiesinger@google.com>
978
979 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
980 * configure: Regenerate.
981 * configure.ac: Don't source common.host.
982 * gdbsupport/common.host: Remove.
983 * gdbsupport/mingw-strerror.c: Remove.
984 * gdbsupport/posix-strerror.c: Rename to...
985 * gdbsupport/safe-strerror.c: ...this.
986
53fea9c7
CB
9872019-11-15 Christian Biesinger <cbiesinger@google.com>
988
989 * maint.c (scoped_command_stats::print_time): Use localtime_r
990 instead of localtime (provided through gnulib if necessary).
991 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
992 of ctime.
993
f8e27d88
CB
9942019-11-15 Christian Biesinger <cbiesinger@google.com>
995
996 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
997 avoid compile errors.
998
5abebf3c
CB
9992019-11-15 Christian Biesinger <cbiesinger@google.com>
1000
1001 * config.in: Regenerate.
1002 * configure: Regenerate.
1003 * gdbsupport/common.m4: No longer check for strerror_r.
1004 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1005 POSIX version of strerror_r, now that gnulib provides it if
1006 necessary.
1007
9a351667
CB
10082019-11-14 Christian Biesinger <cbiesinger@google.com>
1009
1010 * README (`configure' options): Update.
1011
55708e99
TT
10122019-11-14 Tom Tromey <tromey@adacore.com>
1013
1014 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1015 expected type for the RHS if the LHS is a convenience variable.
1016
4b09bb2e
SM
10172019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1020 Provide explicit default and copy constructor.
1021
bd454f8b
PW
10222019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1023
1024 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1025 only call Py_INCREF (newbp) in the bppy_pending_object case.
1026
d1aa3cf0
TT
10272019-11-13 Tom Tromey <tromey@adacore.com>
1028
1029 PR build/25182:
1030 * psympriv.h (partial_symbol): Remove static assert.
1031 * symtab.h (general_symbol_info, symbol): Remove static assert.
1032
e06f3d6e
AB
10332019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * gdbsupport/format.c (format_pieces::format_pieces): Support
1036 printf 'z' size modifier.
1037 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1038 * printcmd.c (ui_printf): Handle size_t_arg.
1039 * ui-out.c (ui_out::vmessage): Likewise.
1040 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1041 function.
1042 (run_tests): Call test_format_int_sizes.
1043
468c0cbb
CB
10442019-11-12 Christian Biesinger <cbiesinger@google.com>
1045
1046 * ada-exp.y (write_ambiguous_var): Update.
1047 * buildsym.c (add_symbol_to_list): Update.
1048 * dwarf2read.c (read_variable): Update.
1049 (new_symbol): Update.
1050 * jit.c (finalize_symtab): Update.
1051 * language.c (language_alloc_type_symbol): Update.
1052 * symtab.c (fixup_symbol_section): Update.
1053 (initialize_objfile_symbol_1): Move code to...
1054 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1055 (allocate_symbol): Update.
1056 (allocate_template_symbol): Update.
1057 (get_symbol_address): Update.
1058 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1059 of having as a field, and add a constructor.
1060 (SYMBOL_VALUE): Update.
1061 (SYMBOL_VALUE_ADDRESS): Update.
1062 (SET_SYMBOL_VALUE_ADDRESS): Update.
1063 (SYMBOL_VALUE_BYTES): Update.
1064 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1065 (SYMBOL_BLOCK_VALUE): Update.
1066 (SYMBOL_VALUE_CHAIN): Update.
1067 (SYMBOL_LANGUAGE): Update.
1068 (SYMBOL_SECTION): Update.
1069 (SYMBOL_OBJ_SECTION): Update.
1070 (SYMBOL_SET_LANGUAGE): Update.
1071 (SYMBOL_SET_LINKAGE_NAME): Update.
1072 (SYMBOL_SET_NAMES): Update.
1073 (SYMBOL_NATURAL_NAME): Update.
1074 (SYMBOL_LINKAGE_NAME): Update.
1075 (SYMBOL_DEMANGLED_NAME): Update.
1076 (SYMBOL_SEARCH_NAME): Update.
1077 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1078 (struct symbol): Update.
1079 (struct template_symbol): Update.
1080 (struct rust_vtable_symbol): Update.
1081 * xcoffread.c (SYMBOL_DUP): Update.
1082
ed2c82c3
TT
10832019-11-12 Tom Tromey <tom@tromey.com>
1084
1085 * tui/tui-layout.c (show_layout): Set current_layout.
1086 (show_source_disasm_command, show_data)
1087 (show_source_or_disasm_and_command): Don't set current_layout.
1088
d9fcefd5
TT
10892019-11-12 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1092
45e42163
TT
10932019-11-12 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-win.c (resize_message): New global.
1096 (show_tui_resize_message): New function.
1097 (tui_async_resize_screen): Print message if requested.
1098 (_initialize_tui_win): Add tui-resize-message setting.
1099 * NEWS: Add entry for new commands.
1100
c86d74cc
TT
11012019-11-11 Tom Tromey <tom@tromey.com>
1102
1103 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1104 functions.
1105
7b7b9424
CB
11062019-11-11 Christian Biesinger <cbiesinger@google.com>
1107
1108 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1109
086baaf1
AB
11102019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1113 function.
1114 * python/python-internal.h (gdbpy_lookup_static_symbols):
1115 Declare new function.
1116 * python/python.c (python_GdbMethods): Add
1117 gdb.lookup_static_symbols method.
1118 * NEWS: Mention gdb.lookup_static_symbols.
1119
09ff83af
AB
11202019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1123 static block of current object file first. Also fix typo in
1124 header comment.
1125
eb2dd8df
AB
11262019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * stack.c (set_last_displayed_sal): Delete.
1129 (last_displayed_sal_valid): Delete.
1130 (last_displayed_pspace): Delete.
1131 (last_displayed_addr): Delete.
1132 (last_displayed_symtab): Delete.
1133 (last_displayed_line): Delete.
1134 (class last_displayed_symtab_info_type): New.
1135 (last_displayed_symtab_info): New static global variable.
1136 (print_frame_info): Call methods on last_displayed_symtab_info.
1137 (clear_last_displayed_sal): Update header comment, and make use of
1138 last_displayed_symtab_info.
1139 (last_displayed_sal_is_valid): Likewise.
1140 (get_last_displayed_pspace): Likewise.
1141 (get_last_displayed_addr): Likewise.
1142 (get_last_displayed_symtab): Likewise.
1143 (get_last_displayed_line): Likewise.
1144 (get_last_displayed_sal): Likewise.
1145 * stack.h (clear_last_displayed_sal): Update header comment.
1146 (last_displayed_sal_is_valid): Likewise.
1147 (get_last_displayed_pspace): Likewise.
1148 (get_last_displayed_addr): Likewise.
1149 (get_last_displayed_symtab): Likewise.
1150 (get_last_displayed_line): Likewise.
1151 (get_last_displayed_sal): Likewise.
1152
62137775
AB
11532019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * stack.c (frame_show_address): Convert return type to bool.
1156 * stack.h (frame_show_address): Likewise, and update header
1157 comment.
1158
cf57ad6d
AB
11592019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1162 * unittests/vec-utils-selftests.c: New file.
1163 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1164
0b026263
TT
11652019-11-10 Tom Tromey <tom@tromey.com>
1166
1167 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1168 (tui_highlight_win): Likewise.
1169 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1170 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1171 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1172 Don't set can_highlight.
1173
b049ce2d
TT
11742019-11-10 Tom Tromey <tom@tromey.com>
1175
1176 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1177 Remove unused declaration.
1178
992a7040
TT
11792019-11-08 Tom Tromey <tromey@adacore.com>
1180
1181 * top.c (read_command_file): Update.
1182 (command_line_input): Make return type const.
1183 * python/py-gdb-readline.c: Update.
1184 * linespec.c (decode_line_2): Update.
1185 * defs.h (command_line_input): Make return type const.
1186 * cli/cli-script.c (read_next_line): Make return type const.
1187 * ada-lang.c (get_selections): Update.
1188
ca3a04f6
CB
11892019-11-06 Christian Biesinger <cbiesinger@google.com>
1190
1191 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1192 * mi/mi-main.c (output_cores): Likewise.
1193 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1194 (linux_xfer_osdata_modules): Likewise.
1195 * remote.c (register_remote_support_xml): Likewise.
1196 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1197 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1198
e0eac551
TT
11992019-11-06 Tom Tromey <tom@tromey.com>
1200
1201 * tui/tui-interp.c: Don't include readline.h.
1202 * tui/tui-hooks.c: Don't include readline.h.
1203 * symmisc.c: Include tilde.h, not readline.h.
1204 * symfile.c: Include tilde.h, not readline.h.
1205 * source.c: Include tilde.h, not readline.h.
1206 * solib.c: Include tilde.h, not readline.h.
1207 * psymtab.c: Include tilde.h, not readline.h.
1208 * exec.c: Include tilde.h, not readline.h.
1209 * corelow.c: Include tilde.h, not readline.h.
1210 * cli/cli-dump.c: Include tilde.h, not readline.h.
1211 * cli/cli-cmds.c: Don't include readline.h.
1212
825165c5
TT
12132019-11-05 Tom Tromey <tom@tromey.com>
1214
1215 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1216 (tui_disassemble): Set addr_size.
1217 (tui_disasm_window::set_contents): Use addr_size.
1218
91ae903f
TT
12192019-11-05 Tom Tromey <tom@tromey.com>
1220
1221 * rust-lang.c (rust_language_defn): Update.
1222 * python/py-value.c (valpy_string): Call c_get_string.
1223 * p-lang.c (pascal_language_defn): Update.
1224 * opencl-lang.c (opencl_language_defn): Update.
1225 * objc-lang.c (objc_language_defn): Update.
1226 * m2-lang.c (m2_language_defn): Update.
1227 * language.c (unknown_language_defn, auto_language_defn): Update.
1228 (default_get_string): Remove.
1229 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1230 * go-lang.c (go_language_defn): Update.
1231 * f-lang.c (f_language_defn): Update.
1232 * d-lang.c (d_language_defn): Update.
1233 * c-lang.c (c_language_defn, cplus_language_defn)
1234 (asm_language_defn, minimal_language_defn): Update.
1235 * ada-lang.c (ada_language_defn): Update.
1236 * language.h (struct language_defn) <la_get_string>: Remove.
1237 (LA_GET_STRING): Remove.
1238 (default_get_string): Don't declare.
1239
1df2f9ef
TT
12402019-11-05 Tom Tromey <tom@tromey.com>
1241
1242 * tui/tui-source.h (struct tui_source_window): Inline
1243 constructor. Remove destructor.
1244 <style_changed, m_observable>: Move to superclass.
1245 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1246 (struct tui_source_window_base): Move private members to end.
1247 <style_changed, m_observable>: Move from tui_source_window.
1248 * tui/tui-winsource.c (tui_copy_source_line): Move from
1249 tui-source.c. Rename from copy_source_line. Add special handling
1250 for negative line number.
1251 (tui_source_window_base::style_changed): Move from
1252 tui_source_window.
1253 (tui_source_window_base): Register observer.
1254 (~tui_source_window_base): New.
1255 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1256 rename.
1257 (tui_source_window::set_contents): Use tui_copy_source_line.
1258 (tui_source_window::tui_source_window): Move to tui-source.h.
1259 (tui_source_window::~tui_source_window): Remove.
1260 (tui_source_window::style_changed): Move to superclass.
1261 * tui/tui-disasm.c (tui_disassemble): Create string file with
1262 styling, when possible. Add "addr_size" parameter.
1263 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1264 Don't compute maximum size.
1265 (len_without_escapes): New function
1266
5d051055
TT
12672019-11-05 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1270 std::string.
1271 * tui/tui-winsource.c (tui_show_source_line): Update.
1272 * tui/tui-source.c (tui_source_window::set_contents): Update.
1273 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1274
ade7beea
CB
12752019-11-05 Christian Biesinger <cbiesinger@google.com>
1276
1277 * symtab.h (gdb_static_assert): Put && operator at the beginning
1278 of the line instead of the end.
1279
3573abe1
CB
12802019-11-04 Christian Biesinger <cbiesinger@google.com>
1281
1282 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1283 and sizeof (symbol).
1284 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1285
dae8b3eb
RO
12862019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1287
1288 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1289 * configure.host: Mark *-*-solaris2.10* obsolete.
1290 * configure.tgt: Mark Solaris < 11 obsolete.
1291 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1292 Update target triplet.
1293
5df96a4e
TT
12942019-11-01 Tom Tromey <tromey@adacore.com>
1295
1296 * utils.c (print_sys_errmsg): Simplify.
1297
b7481649
TT
12982019-11-01 Tom Tromey <tromey@adacore.com>
1299
1300 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1301
e48f6033
CB
13022019-11-01 Christian Biesinger <cbiesinger@google.com>
1303
1304 * configure: Regenerate.
1305 * configure.ac: Remove check for strerror_r.
1306 * gdbsupport/common.m4: Check for strerror_r.
1307
bd5766ec
LM
13082019-11-01 Luis Machado <luis.machado@linaro.org>
1309
1310 PR gdb/25124
1311
1312 * arm-tdep.c (arm_per_objfile): Rename to ...
1313 (arm_per_bfd): ... this.
1314 (arm_objfile_data_key): Rename to ...
1315 (arm_bfd_data_key): ... this.
1316 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1317 data.
1318 (arm_record_special_symbol): Likewise.
1319
e1709896
AB
13202019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1323 end.
1324 * c-typeprint.c (c_print_typedef): Likewise.
1325 * f-typeprint.c (f_print_typedef): Likewise.
1326 * m2-typeprint.c (m2_print_typedef): Likewise.
1327 * p-typeprint.c (pascal_print_typedef): Likewise.
1328 * rust-lang.c (rust_print_typedef): Likewise.
1329 * symtab.c (print_symbol_info): Print a newline after calling
1330 typedef_print.
1331
165f8965
AB
13322019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * symtab.c (info_module_cmdlist): New variable.
1335 (info_module_command): New function.
1336 (search_module_symbols): New function.
1337 (info_module_subcommand): New function.
1338 (struct info_modules_var_func_options): New struct.
1339 (info_modules_var_func_options_defs): New variable.
1340 (make_info_modules_var_func_options_def_group): New function.
1341 (info_module_functions_command): New function.
1342 (info_module_variables_command): New function.
1343 (info_module_var_func_command_completer): New function.
1344 (_initialize_symtab): Register new 'info module functions' and
1345 'info module variables' commands.
1346 * symtab.h (typedef symbol_search_in_module): New typedef.
1347 (search_module_symbols): Declare new function.
1348 * NEWS: Mention new commands.
1349
59c35742
AB
13502019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1353 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1354 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1355 MODULES_DOMAIN.
1356 (scan_partial_symbols): Only create partial module symbols for non
1357 declarations.
1358 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1359 and MODULES_DOMAIN.
1360 * symtab.c (search_domain_name): Likewise.
1361 (search_symbols): Likewise.
1362 (print_symbol_info): Likewise.
1363 (symtab_symbol_info): Likewise.
1364 (info_modules_command): New function.
1365 (_initialize_symtab): Register 'info modules' command.
1366 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1367 * NEWS: Mention new 'info modules' command.
1368
aed61d02
PW
13692019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1370
1371 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1372 and $_gdb_maint_setting_str.
1373
9ad9b77d
PW
13742019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1375
1376 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1377 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1378 (str_value_from_setting, gdb_setting_str_internal_fn)
1379 (gdb_maint_setting_str_internal_fn): New functions.
1380 (_initialize_cli_cmds): Define the new convenience functions.
1381 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1382 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1383
8d6efaa2
CB
13842019-10-31 Christian Biesinger <cbiesinger@google.com>
1385
1386 * agent.c (set_can_use_agent): When the setting is turned on,
1387 look up agent symbols if we don't have them yet.
1388 (agent_new_objfile): Don't look up agent symbols when the agent
1389 setting is off.
1390
33cb1647
CB
13912019-10-31 Christian Biesinger <cbiesinger@google.com>
1392
1393 * config.in: Regenerate.
1394
b231e86a
CB
13952019-10-31 Christian Biesinger <cbiesinger@google.com>
1396
1397 * configure: Regenerate.
1398 * configure.ac: Check for strerror_r.
1399 * gdbsupport/common-utils.h (safe_strerror): Change return value
1400 to const char * and document that this function is now threadsafe.
1401 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1402 thread_local and call strerror_r, if available.
1403 * utils.c (perror_string): Update.
1404 (print_sys_errmsg): Update.
1405
a2726d4f
LM
14062019-10-31 Luis Machado <luis.machado@linaro.org>
1407
1408 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1409 objfile_key.
1410 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1411 objfile to fetch per-bfd data.
1412 (arm_find_exidx_entry): Likewise.
1413
75cafaa6
CB
14142019-10-31 Christian Biesinger <cbiesinger@google.com>
1415
1416 * gdbsupport/agent.c (debug_agent): Change type to bool.
1417 (use_agent): Likewise.
1418 (all_agent_symbols_look_up): Likewise.
1419 (agent_loaded_p): Change return value to bool.
1420 (agent_look_up_symbols): Update.
1421 (agent_capability_check): Change return value to bool.
1422 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1423 (debug_agent): Change type to bool.
1424 (use_agent): Likewise.
1425 (agent_capability_check): Change return value to bool.
1426
808590ec
CB
14272019-10-30 Christian Biesinger <cbiesinger@google.com>
1428
1429 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1430 (build_minimal_symbol_hash_tables): Code to clear the table moved
1431 to clear_minimal_symbol_hash_tables.
1432 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1433 when needed.
1434
f18ad8a1
SM
14352019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 * infcmd.c: Remove includes.
1438 * infrun.c: Remove includes.
1439
de93309a
SM
14402019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1443 (grow_vect): Remove declaration.
1444 (ada_type_of_array): Remove declaration.
1445 (ada_update_initial_language): Remove declaration.
1446 (ada_fold_name): Remove declaration.
1447 (ada_fill_in_ada_prototype): Remove declaration.
1448 (user_select_syms): Remove declaration.
1449 (get_selections): Remove declaration.
1450 (ada_tag_type): Remove declaration.
1451 (ada_value_tag): Remove declaration.
1452 (ada_is_others_clause): Remove declaration.
1453 (ada_in_variant): Remove declaration.
1454 (ada_value_struct_elt): Remove declaration.
1455 (ada_attribute_name): Remove declaration.
1456 (ada_system_address_type): Remove declaration.
1457 * ada-lang.c (ada_watch_location_expression): Make static.
1458 (GROW_VECT): Move here from ada-lang.h.
1459 (grow_vect): Make static.
1460 (ada_update_initial_language): Make static.
1461 (ada_fold_name): Make static.
1462 (ada_type_of_array): Make static.
1463 (encoded_ordered_before): Move up.
1464 (sort_choices): Move up.
1465 (print_signatures): Move up.
1466 (ada_print_symbol_signature): Move up.
1467 (get_selections): Move up and make static.
1468 (user_select_syms): Move up and make static.
1469 (ada_value_struct_elt): Move up and make static.
1470 (ada_tag_type): Make static.
1471 (ada_value_tag): Make static.
1472 (ada_is_others_clause): Make static.
1473 (ada_in_variant): Make static.
1474 (ada_attribute_name): Make static.
1475
cdc46a9f
SM
14762019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * ada-lang.c: Remove includes.
1479 * ada-typeprint.c: Remove includes.
1480 * ada-valprint.c: Remove includes.
1481
90421c56
SM
14822019-10-29 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * addrmap.c: Add static assertions of type size, moved from
1485 _initialize_addrmap.
1486 (_initialize_addrmap): Remove.
1487
31edb802
CB
14882019-10-29 Christian Biesinger <cbiesinger@google.com>
1489
1490 * coffread.c (record_minimal_symbol): Update.
1491 (process_coff_symbol): Update.
1492 * dbxread.c (read_dbx_symtab): Update.
1493 * dwarf2read.c (add_partial_symbol): Update.
1494 (fixup_go_packaging): Update.
1495 (load_partial_dies): Update.
1496 (new_symbol): Update.
1497 * elfread.c (record_minimal_symbol): Change signature to use
1498 gdb::string_view instead of name+len.
1499 (elf_symtab_read): Update.
1500 (elf_rel_plt_read): Update.
1501 * mdebugread.c (parse_partial_symbols): Update.
1502 (handle_psymbol_enumerators): Update.
1503 (new_symbol): Update.
1504 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1505 to use gdb::string_view instead of name+len.
1506 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1507 * psympriv.h (add_psymbol_to_list): Likewise.
1508 * psymtab.c (add_psymbol_to_bcache): Likewise.
1509 (add_psymbol_to_list): Likewise.
1510 * stabsread.c (define_symbol): Update.
1511 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1512 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1513 (symbol_set_names): Likewise.
1514 * xcoffread.c (scan_xcoff_symtab): Update.
1515
0c921b21
CB
15162019-10-29 Christian Biesinger <cbiesinger@google.com>
1517
1518 * symtab.h (symbol_set_names): Document that copy_name must be
1519 set to true for non-nullterminated strings.
1520 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1521 linkage_name if the entry was not found and we need to demangle.
1522
35e65c49
CB
15232019-10-29 Christian Biesinger <cbiesinger@google.com>
1524
1525 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1526 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1527 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1528 * gdbsupport/gdb_binary_search.h: New file.
1529
ed2a2229
CB
15302019-10-29 Christian Biesinger <cbiesinger@google.com>
1531
1532 * NEWS: Mention new --with-system-gdbinit-dir option.
1533 * config.in: Regenerate.
1534 * configure: Regenerate.
1535 * configure.ac: Add new option --with-system-gdbinit-dir.
1536 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1537 for a ".gdb" suffix.
1538 * main.c (get_init_files): Change system_gdbinit argument to
1539 a vector and return the files in SYSTEM_GDBINIT_DIR in
1540 addition to SYSTEM_GDBINIT.
1541 (captured_main_1): Update.
1542 (print_gdb_help): Update.
1543 * top.c (print_gdb_configuration): Also print the value of
1544 SYSTEM_GDBINIT_DIR.
1545
87f34879
CB
15462019-10-28 Christian Biesinger <cbiesinger@google.com>
1547
1548 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1549 that takes gdb::string_view arguments.
1550
30baf67b
TV
15512019-10-26 Tom de Vries <tdevries@suse.de>
1552
1553 * aarch64-linux-tdep.c: Fix typos in comments.
1554 * aarch64-tdep.c: Same.
1555 * ada-lang.c: Same.
1556 * amd64-nat.c: Same.
1557 * arc-tdep.c: Same.
1558 * arch/aarch64-insn.c: Same.
1559 * block.c: Same.
1560 * breakpoint.h: Same.
1561 * btrace.h: Same.
1562 * c-varobj.c: Same.
1563 * cli/cli-decode.c: Same.
1564 * cli/cli-script.c: Same.
1565 * cli/cli-utils.h: Same.
1566 * coff-pe-read.c: Same.
1567 * coffread.c: Same.
1568 * compile/compile-cplus-symbols.c: Same.
1569 * compile/compile-object-run.c: Same.
1570 * completer.c: Same.
1571 * corelow.c: Same.
1572 * cp-support.c: Same.
1573 * demangle.c: Same.
1574 * dwarf-index-write.c: Same.
1575 * dwarf2-frame.c: Same.
1576 * dwarf2-frame.h: Same.
1577 * eval.c: Same.
1578 * frame-base.h: Same.
1579 * frame.h: Same.
1580 * gdbcmd.h: Same.
1581 * gdbtypes.h: Same.
1582 * gnu-nat.c: Same.
1583 * guile/scm-objfile.c: Same.
1584 * i386-tdep.c: Same.
1585 * i386-tdep.h: Same.
1586 * infcall.c: Same.
1587 * infcall.h: Same.
1588 * linux-nat.c: Same.
1589 * m68k-tdep.c: Same.
1590 * macroexp.c: Same.
1591 * memattr.c: Same.
1592 * mi/mi-cmd-disas.c: Same.
1593 * mi/mi-getopt.h: Same.
1594 * mi/mi-main.c: Same.
1595 * minsyms.c: Same.
1596 * nat/aarch64-sve-linux-sigcontext.h: Same.
1597 * objfiles.h: Same.
1598 * ppc-linux-nat.c: Same.
1599 * ppc-linux-tdep.c: Same.
1600 * ppc-tdep.h: Same.
1601 * progspace.h: Same.
1602 * prologue-value.h: Same.
1603 * python/py-evtregistry.c: Same.
1604 * python/py-instruction.h: Same.
1605 * record-btrace.c: Same.
1606 * record-full.c: Same.
1607 * remote.c: Same.
1608 * rs6000-tdep.c: Same.
1609 * ser-tcp.c: Same.
1610 * sol-thread.c: Same.
1611 * sparc-sol2-tdep.c: Same.
1612 * sparc64-tdep.c: Same.
1613 * stabsread.c: Same.
1614 * symfile.c: Same.
1615 * symtab.h: Same.
1616 * target.c: Same.
1617 * tracepoint.c: Same.
1618 * tui/tui-data.h: Same.
1619 * tui/tui-io.c: Same.
1620 * tui/tui-win.c: Same.
1621 * tui/tui.c: Same.
1622 * unittests/rsp-low-selftests.c: Same.
1623 * user-regs.h: Same.
1624 * utils.c: Same.
1625 * utils.h: Same.
1626 * valarith.c: Same.
1627 * valops.c: Same.
1628 * valprint.c: Same.
1629 * valprint.h: Same.
1630 * value.c: Same.
1631 * value.h: Same.
1632 * varobj.c: Same.
1633 * x86-nat.h: Same.
1634 * xtensa-tdep.c: Same.
1635
1834d45f
AT
16362019-10-25 Ali Tamur <tamur@google.com>
1637
1638 * charset.c (find_charset_names): Reflect API change.
1639
5396ae17
CB
16402019-10-25 Christian Biesinger <cbiesinger@google.com>
1641
1642 * symtab.c (struct demangled_name_entry): Change demangled name
1643 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1644 part of the struct anymore.
1645 (symbol_set_names): No longer obstack allocate + copy the demangled
1646 name, just store the allocated name from bfd.
1647
93878f47
TT
16482019-10-25 Tom Tromey <tromey@adacore.com>
1649
1650 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1651 (bsearch_cie_cmp, add_cie): Remove.
1652 (find_cie): Reimplement.
1653 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1654 (dwarf2_build_frame_info): Update.
1655
7b71fc97
L
16562019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1657
1658 PR gdb/25126
1659 * symfile.c (reread_symbols): Call forget_cached_source_info to
1660 clear the stale source cache.
1661
cbb5a2ea
CB
16622019-10-24 Christian Biesinger <cbiesinger@google.com>
1663
1664 * configure: Regenerate.
1665 * configure.ac: Remove code that sets python_has_threads.
1666
71737c43
CB
16672019-10-24 Christian Biesinger <cbiesinger@google.com>
1668
1669 * config.in: Regenerate.
1670 * configure: Regenerate.
1671 * configure.ac: Remove the code that uses sed to get the python
1672 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1673
33d569b7
AB
16742019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1677 error paths.
1678
f16f7b7c
TT
16792019-10-23 Tom Tromey <tom@tromey.com>
1680
1681 * arc-tdep.c: Remove ".." from include.
1682 * frv-tdep.c: Remove ".." from include.
1683 * lm32-tdep.c: Remove ".." from include.
1684 * microblaze-tdep.c: Remove ".." from include.
1685 * or1k-tdep.h: Remove ".." from include.
1686 * s12z-tdep.c: Remove ".." from include.
1687 * Makefile.in (OPCODES_CFLAGS): Add comment.
1688 (TOP_CFLAGS): New variable.
1689 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1690
6999161a
TT
16912019-10-23 Tom Tromey <tom@tromey.com>
1692
1693 * Makefile.in (READLINE_DIR): Update.
1694
12e7c35e
TBA
16952019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1696
1697 * infcall.c (call_function_by_hand_dummy): Fix the function
1698 comment. And extract out a code section into...
1699 (reserve_stack_space): ...this new function.
1700
37055cad
TBA
17012019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1702
1703 * infcall.c (value_arg_coerce): Remove an unused parameter.
1704 (call_function_by_hand_dummy): Update the call to
1705 'value_arg_coerce'.
1706
39bcc47c
TBA
17072019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1708
1709 * infcall.c (call_function_by_hand_dummy): Refactor.
1710
bd888c0f
TBA
17112019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1712
1713 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1714
c12d372d
TT
17152019-10-23 Tom Tromey <tom@tromey.com>
1716
1717 * configure: Rebuild.
1718 * configure.ac: Don't check for sigprocmask.
1719 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1720
4d0b984b
TT
17212019-10-23 Tom Tromey <tom@tromey.com>
1722
1723 * configure: Rebuild.
1724 * acinclude.m4: Use m4_include, not sinclude.
1725
7e785608
TV
17262019-10-23 Tom de Vries <tdevries@suse.de>
1727
1728 PR breakpoints/24687
1729 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1730
403772ef
CB
17312019-10-22 Christian Biesinger <cbiesinger@google.com>
1732
1733 * symtab.c (struct demangled_name_entry) <language>: Change from
1734 bitfield to regular variable.
1735
3a494279
CB
17362019-10-22 Christian Biesinger <cbiesinger@google.com>
1737
1738 * symtab.c (struct demangled_name_entry): Add a constructor.
1739 (free_demangled_name_entry): New function to call the destructor
1740 for demangled_name_entry.
1741 (create_demangled_names_hash): Pass free_demangled_name_entry to
1742 htab_create_alloc.
1743 (symbol_set_names): Call placement new for demangled_name_entry.
1744 * utils.c: No longer include xxhash.h here, now that fast_hash
1745 is inlined in the header.
1746 * utils.h: Instead, include it here.
1747
ccb1ba62
CB
17482019-10-22 Christian Biesinger <cbiesinger@google.com>
1749
1750 * Makefile.in: Link with libxxhash.
1751 * config.in: Regenerate.
1752 * configure: Regenerate.
1753 * configure.ac: Search for libxxhash.
1754 * utils.c (fast_hash): Use xxhash if present.
1755
1a6ff1a9
CB
17562019-10-22 Christian Biesinger <cbiesinger@google.com>
1757
1758 * utils.h (fast_hash): New function.
1759 * symtab.c (hash_demangled_name_entry): Call new function
1760 fast_hash.
1761
7bb43059
CB
17622019-10-22 Christian Biesinger <cbiesinger@google.com>
1763
1764 * symtab.c (struct demangled_name_entry): Change type of mangled
1765 to gdb::string_view. Also adds a constructor that takes the
1766 mangled name.
1767 (hash_demangled_name_entry): Update.
1768 (eq_demangled_name_entry): Update.
1769 (free_demangled_name_entry): New function to call the destructor
1770 now that this is not a POD anymore.
1771 (create_demangled_names_hash): Pass free_demangled_name_entry to
1772 htab_create_alloc.
1773 (symbol_set_names): Update.
1774
7ba99d21
AT
17752019-10-21 Ali Tamur <tamu@google.com>
1776
1777 * dwarf2read.c (dir_index): Change type.
1778 (file_name_index): Likewise.
1779 (line_header::include_dir_at): Change comment and implementation on
1780 whether it is DWARF 5.
1781 (line_header::is_valid_file_index): New function.
1782 (line_header::file_name_at): Change comment and implementation on
1783 whether it is DWARF 5.
1784 (line_header::file_names): Change to private field renamed as
1785 m_file_names and introduce a new accessor method.
1786 (line_header::file_names_size): New method.
1787 (line_header::include_dirs): Change to private field and rename as
1788 m_include_dirs.
1789 (dw2_get_file_names_reader): Define local var at a smaller scope and
1790 reflect API change.
1791 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1792 (process_structure_scope): Likewise.
1793 (line_header::add_include_dir): Change message and reflect renaming.
1794 (line_header::add_file_name): Likewise.
1795 (read_formatted_entries): Handle DW_FORM_data16.
1796 (dwarf_decode_line_header): Fix line header length calculation.
1797 (psymtab_include_file_name): Change comment and API.
1798 (lnp_state_machine::m_file): Update comment and reflect type change.
1799 (lnp_state_machine::record_line): Reflect type change.
1800 (dwarf_decode_lines): Reflect API change.
1801 (file_file_name): Likewise.
1802 (file_full_name): Likewise.
1803
45f47c3a
AB
18042019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1807
e5f3c0e3
TT
18082019-10-21 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1811
a0a461e5
TT
18122019-10-21 Tom Tromey <tom@tromey.com>
1813
1814 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1815 NM_H. Use AC_CONFIG_LINKS.
1816 * configure: Rebuild.
1817 * Makefile.in (NM_H): New variable.
1818 (generated_files): Add NM_H. Remove gcore.
1819 (nm.h, stamp-nmh): New targets.
1820
54d83b8d
TT
18212019-10-20 Tom Tromey <tom@tromey.com>
1822
1823 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1824 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1825 obsolete comment.
1826 (put_objfile_before): Now static.
1827
23771117
SM
18282019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * gdbsupport/common-utils.h (startswith): Change return type to
1831 bool.
1832
39ef2f62
CB
18332019-10-19 Christian Biesinger <cbiesinger@google.com>
1834
1835 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1836 * breakpoint.c (bp_locations_compare): Rename to...
1837 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1838 (update_global_location_list): Use std::sort instead of qsort.
1839 * buildsym.c (compare_line_numbers): Rename to...
1840 (lte_is_less_than): ...this, and change to std::sort semantics.
1841 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1842 instead of qsort.
1843 * disasm.c (compare_lines): Rename to...
1844 (line_is_less_than): ...this, and change to std::sort semantics.
1845 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1846 of qsort.
1847 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1848 (fde_is_less_than): ...this, and change to std::sort semantics.
1849 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1850 * mdebugread.c (compare_blocks):
1851 (block_is_less_than): ...this, and change to std::sort semantics.
1852 (sort_blocks): Call std::sort instead of qsort.
1853 * objfiles.c (qsort_cmp): Rename to...
1854 (sort_cmp): ...this, and change to std::sort semantics.
1855 (update_section_map): Call std::sort instead of qsort.
1856 * remote.c (compare_pnums): Remove.
1857 (map_regcache_remote_table): Call std::sort instead of qsort.
1858 * utils.c (compare_positive_ints): Remove.
1859 * utils.h (compare_positive_ints): Remove.
1860 * xcoffread.c (compare_lte): Remove.
1861 (arrange_linetable): Call std::sort instead of qsort.
1862
f71433ee
SDJ
18632019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1864
1865 * symfile.c (init_entry_point_info): Fix typo.
1866 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1867
85102364
TV
18682019-10-18 Tom de Vries <tdevries@suse.de>
1869
1870 * aarch64-tdep.c: Fix typos in comments.
1871 * ada-lang.c: Same.
1872 * ada-tasks.c: Same.
1873 * alpha-tdep.c: Same.
1874 * alpha-tdep.h: Same.
1875 * amd64-nat.c: Same.
1876 * amd64-windows-tdep.c: Same.
1877 * arc-tdep.c: Same.
1878 * arc-tdep.h: Same.
1879 * arch-utils.c: Same.
1880 * arm-nbsd-tdep.c: Same.
1881 * arm-tdep.c: Same.
1882 * ax-gdb.c: Same.
1883 * blockframe.c: Same.
1884 * btrace.c: Same.
1885 * c-varobj.c: Same.
1886 * coff-pe-read.c: Same.
1887 * coffread.c: Same.
1888 * cris-tdep.c: Same.
1889 * darwin-nat.c: Same.
1890 * dbxread.c: Same.
1891 * dcache.c: Same.
1892 * disasm.c: Same.
1893 * dtrace-probe.c: Same.
1894 * dwarf-index-write.c: Same.
1895 * dwarf2-frame-tailcall.c: Same.
1896 * dwarf2-frame.c: Same.
1897 * dwarf2read.c: Same.
1898 * eval.c: Same.
1899 * exceptions.c: Same.
1900 * fbsd-tdep.c: Same.
1901 * findvar.c: Same.
1902 * frame.c: Same.
1903 * frv-tdep.c: Same.
1904 * gnu-v3-abi.c: Same.
1905 * go32-nat.c: Same.
1906 * h8300-tdep.c: Same.
1907 * hppa-tdep.c: Same.
1908 * i386-linux-tdep.c: Same.
1909 * i386-tdep.c: Same.
1910 * ia64-libunwind-tdep.c: Same.
1911 * ia64-tdep.c: Same.
1912 * infcmd.c: Same.
1913 * infrun.c: Same.
1914 * linespec.c: Same.
1915 * linux-nat.c: Same.
1916 * linux-thread-db.c: Same.
1917 * machoread.c: Same.
1918 * mdebugread.c: Same.
1919 * mep-tdep.c: Same.
1920 * mn10300-tdep.c: Same.
1921 * namespace.c: Same.
1922 * objfiles.c: Same.
1923 * opencl-lang.c: Same.
1924 * or1k-tdep.c: Same.
1925 * osabi.c: Same.
1926 * ppc-linux-nat.c: Same.
1927 * ppc-linux-tdep.c: Same.
1928 * ppc-sysv-tdep.c: Same.
1929 * printcmd.c: Same.
1930 * procfs.c: Same.
1931 * record-btrace.c: Same.
1932 * record-full.c: Same.
1933 * remote-fileio.c: Same.
1934 * remote.c: Same.
1935 * rs6000-tdep.c: Same.
1936 * s12z-tdep.c: Same.
1937 * score-tdep.c: Same.
1938 * ser-base.c: Same.
1939 * ser-go32.c: Same.
1940 * skip.c: Same.
1941 * sol-thread.c: Same.
1942 * solib-svr4.c: Same.
1943 * solib.c: Same.
1944 * source.c: Same.
1945 * sparc-nat.c: Same.
1946 * sparc-sol2-tdep.c: Same.
1947 * sparc-tdep.c: Same.
1948 * sparc64-tdep.c: Same.
1949 * stabsread.c: Same.
1950 * stack.c: Same.
1951 * symfile.c: Same.
1952 * symtab.c: Same.
1953 * target-descriptions.c: Same.
1954 * target-float.c: Same.
1955 * thread.c: Same.
1956 * utils.c: Same.
1957 * valops.c: Same.
1958 * valprint.c: Same.
1959 * value.c: Same.
1960 * varobj.c: Same.
1961 * windows-nat.c: Same.
1962 * xcoffread.c: Same.
1963 * xstormy16-tdep.c: Same.
1964 * xtensa-tdep.c: Same.
1965
c5adaa19
TT
19662019-10-17 Tom Tromey <tromey@adacore.com>
1967
1968 * configure: Rebuild.
1969 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1970 in AC_CONFIG_FILES invocation.
1971 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1972 new-style config.status invocation.
1973
405feb71
TV
19742019-10-17 Tom de Vries <tdevries@suse.de>
1975
1976 * arm-nbsd-nat.c: Fix typos in comments.
1977 * arm-tdep.c: Same.
1978 * darwin-nat-info.c: Same.
1979 * dwarf2read.c: Same.
1980 * elfread.c: Same.
1981 * event-top.c: Same.
1982 * findvar.c: Same.
1983 * gdbtypes.c: Same.
1984 * hppa-tdep.c: Same.
1985 * i386-tdep.c: Same.
1986 * jit.c: Same.
1987 * main.c: Same.
1988 * mdebugread.c: Same.
1989 * moxie-tdep.c: Same.
1990 * nto-procfs.c: Same.
1991 * osabi.c: Same.
1992 * ppc-linux-tdep.c: Same.
1993 * remote.c: Same.
1994 * riscv-tdep.c: Same.
1995 * s390-tdep.c: Same.
1996 * sh-tdep.c: Same.
1997 * sparc-linux-tdep.c: Same.
1998 * sparc-nat.c: Same.
1999 * stack.c: Same.
2000 * target-descriptions.c: Same.
2001 * top.c: Same.
2002 * varobj.c: Same.
2003
befcd486
TT
20042019-10-16 Tom Tromey <tom@tromey.com>
2005
2006 * objfiles.h (struct objfile) <original_name>: Now const.
2007
17bfe554
CB
20082019-10-16 Christian Biesinger <cbiesinger@google.com>
2009
2010 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2011 pass on to sigsetjmp's second argument.
2012 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2013
950b7495
KS
20142019-10-16 Keith Seitz <keiths@redhat.com>
2015
2016 PR gdb/23567
2017 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2018 sections whose size is greater than the file size.
2019
ff371ec9
JW
20202019-10-16 Jim Wilson <jimw@sifive.com>
2021
2022 * riscv-tdep.c (riscv_gcc_target_options): New.
2023 (riscv_gnu_triplet_regexp): New.
2024 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2025 set_gdbarch_gnu_triplet_regexp.
2026
fec4e896
CB
20272019-10-16 Christian Biesinger <cbiesinger@google.com>
2028
2029 * Makefile.in: Add xml-builtin.h.
2030 * features/feature_to_c.sh: Add an include for xml-builtin.h
2031 to ensure that the compiler checks that the types match.
2032 * xml-builtin.h: New file.
2033 * xml-support.c (fetch_xml_builtin): Add missing const.
2034 * xml-support.h: Remove declaration of xml_builtins.
2035
d10eccaa
TV
20362019-10-16 Tom de Vries <tdevries@suse.de>
2037
2038 PR tdep/25096
2039 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2040 (amd64_classify_aggregate): ... here.
2041 (amd64_classify_aggregate_field): Handled fiels of nested structs
2042 recursively.
2043
745ff14e
TV
20442019-10-16 Tom de Vries <tdevries@suse.de>
2045
2046 PR tdep/24104
2047 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2048 that handles 'theclass'.
2049
791b7405
AB
20502019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2051
2052 * linespec.c (decode_digits_ordinary): Update comment.
2053 * make-target-delegates: No longer need to handle VEC case.
2054 * memrange.c (normalize_mem_ranges): Update comment.
2055 * namespace.c (add_using_directive): Update comment.
2056 * objc-lang.c (uniquify_strings): Update comment.
2057 * ppc-linux-nat.c (struct thread_points): Update comment.
2058 * probe.h (find_probes_in_objfile): Update comment.
2059 * target.h (enum flash_preserve_mode): Update comment.
2060 * varobj.c (varobj_restrict_range): Update comment.
2061 * varobj.h (varobj_list_children): Update comment.
2062
0dc32745
AB
20632019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * Makefile.in: Remove references to vec.h and vec.c.
2066 * aarch64-tdep.c: No longer include vec.h.
2067 * ada-lang.c: Likewise.
2068 * ada-lang.h: Likewise.
2069 * arm-tdep.c: Likewise.
2070 * ax.h: Likewise.
2071 * breakpoint.h: Likewise.
2072 * charset.c: Likewise.
2073 * cp-support.h: Likewise.
2074 * dtrace-probe.c: Likewise.
2075 * dwarf2read.c: Likewise.
2076 * extension.h: Likewise.
2077 * gdb_bfd.c: Likewise.
2078 * gdbsupport/gdb_vecs.h: Likewise.
2079 * gdbsupport/vec.c: Remove.
2080 * gdbsupport/vec.h: Remove.
2081 * gdbthread.h: Likewise.
2082 * guile/scm-type.c: Likewise.
2083 * inline-frame.c: Likewise.
2084 * machoread.c: Likewise.
2085 * memattr.c: Likewise.
2086 * memrange.h: Likewise.
2087 * namespace.h: Likewise.
2088 * nat/linux-btrace.h: Likewise.
2089 * osdata.c: Likewise.
2090 * parser-defs.h: Likewise.
2091 * progspace.h: Likewise.
2092 * python/py-type.c: Likewise.
2093 * record-btrace.c: Likewise.
2094 * rust-exp.y: Likewise.
2095 * solib-target.c: Likewise.
2096 * stap-probe.c: Likewise.
2097 * target-descriptions.c: Likewise.
2098 * target-memory.c: Likewise.
2099 * target.h: Likewise.
2100 * varobj.c: Likewise.
2101 * varobj.h: Likewise.
2102 * xml-support.h: Likewise.
2103
ae640021
AB
21042019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2107 Update for new std::vector based implementation.
2108 (process_psymtab_comp_unit_reader): Likewise.
2109 (scan_partial_symbols): Likewise.
2110 (recursively_compute_inclusions): Likewise.
2111 (compute_compunit_symtab_includes): Likewise.
2112 (process_imported_unit_die): Likewise.
2113 (queue_and_load_dwo_tu): Likewise.
2114 (follow_die_sig_1): Likewise.
2115 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2116 (typedef dwarf2_per_cu_ptr): Remove.
2117 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2118 function.
2119 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2120 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2121 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2122 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2123 std::vector.
2124
55dfc88f
TT
21252019-10-15 Tom Tromey <tromey@adacore.com>
2126
2127 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2128 TID.
2129
96b49c5e
TT
21302019-10-15 Tom Tromey <tromey@adacore.com>
2131
2132 * windows-nat.c (windows_nat_target::fetch_registers)
2133 (windows_nat_target::store_registers): Rename "pid" to "tid".
2134
953cff56
TT
21352019-10-15 Tom Tromey <tromey@adacore.com>
2136
2137 * gdbarch.h, gdbarch.c: Rebuild.
2138 * gdbarch.sh (gcc_target_options): Change return type to
2139 std::string.
2140 * compile/compile.c (get_args): Update.
2141 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2142 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2143 std::string.
2144 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2145 std::string.
2146 * arch-utils.c (default_gcc_target_options): Return std::string.
2147 * arch-utils.h (default_gcc_target_options): Return std::string.
2148 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2149
81e6b8eb
CB
21502019-10-15 Christian Biesinger <cbiesinger@google.com>
2151
2152 * breakpoint.c (breakpoint_chain): Make static.
2153 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2154 of accessing breakpoint_chain.
2155
95da600f
CB
21562019-10-15 Christian Biesinger <cbiesinger@google.com>
2157
2158 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2159 to a gdb::function_view and return value to bool.
2160 * breakpoint.h (iterate_over_breakpoints): Likewise.
2161 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2162 (pop_dummy_frame): Update.
2163 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2164 (gdbscm_breakpoints): Update.
2165 * python/py-breakpoint.c (build_bp_list): Update.
2166 (gdbpy_breakpoints): Update.
2167 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2168 Update.
2169 (bpfinishpy_handle_stop): Update.
2170 (bpfinishpy_handle_exit): Update.
2171 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2172 (svr4_update_solib_event_breakpoints): Update.
2173
ba18312d
AA
21742019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2175
2176 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2177 when unwrapping single-field structs.
2178
6acc1a0b
SM
21792019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * dwarf2read.c: Remove includes.
2182
284782de
SM
21832019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * ui-out.c (ui_out::call_do_message): Silence
2186 -Wformat-nonliteral warning.
2187
073bbbb0
SM
21882019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2191 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2192 include: readline/tilde.h.
2193
7b9a15e1
CB
21942019-10-12 Christian Biesinger <cbiesinger@google.com>
2195
2196 * remote.c (remote_target::get_trace_status): Remove declaration of
2197 trace_regblock_size.
2198
cc8dee1f
CB
21992019-10-12 Christian Biesinger <cbiesinger@google.com>
2200
2201 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2202 (show_user): Remove declaration of cmdlist.
2203 * cli/cli-cmds.h (max_user_call_depth): Declare.
2204 * cli/cli-script.c (execute_user_command): Remove declaration
2205 of max_user_call_depth.
2206
a83d4ef6
JW
22072019-10-11 Jim Wilson <jimw@sifive.com>
2208
5f93c5a6
JW
2209 * gdbsupport/print-utils.h (pulongest): Fix comment.
2210 (plongest): Likewise.
2211 (phex): Add missing comment, mention leading zeros.
2212 (phex_nz): Add mention of no leading zeros to comment.
2213
a83d4ef6
JW
2214 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2215 plongest instead of unsigned long long cast.
2216
26344e0c
CB
22172019-10-10 Christian Biesinger <cbiesinger@google.com>
2218
2219 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2220 for external_editor_command and gdbtk_test.
2221
c2c440a9
CB
22222019-10-10 Christian Biesinger <cbiesinger@google.com>
2223
2224 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2225 * varobj.c (varobjdebug): Move comment to...
2226 * varobj.h (varobjdebug): ...here, and declare.
2227
a31bff9d
TT
22282019-10-09 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2231 erase_data_content.
2232
7523da63
TT
22332019-10-09 Tom Tromey <tom@tromey.com>
2234
2235 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2236 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2237 * tui/tui-command.c (tui_cmd_window::resize)
2238 (tui_refresh_cmd_win): Update.
2239 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2240 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2241 * tui/tui-data.c (~tui_gen_win_info): Remove.
2242 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2243 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2244 (tui_redisplay_readline, tui_mld_flush)
2245 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2246 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2247 (tui_data_window::erase_data_content)
2248 (tui_data_item_window::rerender)
2249 (tui_data_item_window::refresh_window): Update.
2250 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2251 (box_win, tui_gen_win_info::make_window)
2252 (tui_gen_win_info::make_visible): Update.
2253 (tui_delete_win): Remove.
2254 * tui/tui-winsource.c
2255 (tui_source_window_base::do_erase_source_content): Update.
2256 (tui_show_source_line, tui_source_window_base::update_tab_width)
2257 (tui_source_window_base::update_exec_info): Update.
2258 * tui/tui-data.h (struct curses_deleter): New.
2259 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2260 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2261
a7798e7f
TT
22622019-10-09 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2265
5c45899e
TT
22662019-10-09 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2269 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2270
6d7fd9aa
TT
22712019-10-09 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2274 window height directly.
2275 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2276 declare.
2277 * tui/tui-layout.c (tui_default_win_height): Remove.
2278 (tui_default_win_viewport_height): Remove.
2279
d2dd1084
TT
22802019-10-09 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui.h: Remove comments.
2283
cff32449
TV
22842019-10-09 Tom de Vries <tdevries@suse.de>
2285
2286 * python/lib/gdb/printer/bound_registers.py: Use
2287 '^builtin_type_bound128' as regexp argument for
2288 add_builtin_pretty_printer.
2289
6a25e8a2
CB
22902019-10-09 Christian Biesinger <cbiesinger@google.com>
2291
2292 * guile/guile.c (guile_extension_script_ops): Remove forward
2293 declaration and mark as static.
2294 (guile_script_ops): Likewise.
2295 (extension_language_guile): Move further down in the file so
2296 it can reference the definitions for guile_{extension_,}script_ops.
2297
6d9d6da4
AA
22982019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2299
2300 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2301 except SORTL, DFLTCC, and KDSA.
2302
3abea05d
TT
23032019-10-08 Tom Tromey <tromey@adacore.com>
2304
2305 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2306 (struct safe_symbol_file_add_args): Remove.
2307
dde996e2
TT
23082019-10-08 Tom Tromey <tromey@adacore.com>
2309
2310 * windows-nat.c: Don't include buildsym-legacy.h.
2311
cd6fdaa1
TT
23122019-10-08 Tom Tromey <tromey@adacore.com>
2313
2314 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2315
79bb1944
CB
23162019-10-08 Christian Biesinger <cbiesinger@google.com>
2317
2318 * gdbtypes.c (overload_debug): Move comment to header.
2319 * gdbtypes.h (overload_debug): Declare.
2320 * valops.c: Remove declaration of overload_debug, instead
2321 include gdbtypes.h.
2322
34916edc
CB
23232019-10-08 Christian Biesinger <cbiesinger@google.com>
2324
2325 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2326 through _().
2327 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2328 move comment...
2329 * language.h (lang_frame_mismatch_warn): ... here. Also add
2330 declaration.
2331 * top.c (lang_frame_mismatch_warn): Remove declaration.
2332 (check_frame_language_change): Pass lang_frame_mismatch_warn
2333 through _().
2334
bad5c026
CB
23352019-10-07 Christian Biesinger <cbiesinger@google.com>
2336
2337 * c-lang.h (vtbl_ptr_name): Declare.
2338 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2339 it from the header.
2340 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2341
51f1fdc3
CB
23422019-10-07 Christian Biesinger <cbiesinger@google.com>
2343
2344 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2345 gdb_static_assert.
2346
30d1f018
WP
23472019-10-07 Weimin Pan <weimin.pan@oracle.com>
2348
606813d5
WP
2349 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2350 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2351 * ctfread.c: New file.
2352 * ctfread.h: New file.
2353 * elfread.c: Include ctfread.h.
2354 (struct elfinfo text_p): New member ctfsect.
2355 (elf_locate_sections): Mark CTF section.
2356 (elf_symfile_read): Call elfctf_build_psymtabs.
2357 * Makefile.in (LIBCTF): Add.
2358 (CLIBS): Use it.
2359 (CDEPS): Likewise.
2360 (DIST): Add ctfread.c.
606813d5
WP
2361
23622019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * ctfread.c (struct nextfield): Renamed to ...
2365 (struct ctf_nextfield): ... this.
2366 (struct field_info): Renamed to ...
2367 (strut ctf_field_info): ... this.
2368 (attach_fields_to_type): Update for renamed structures.
2369 (ctf_add_member_cb): Likewise.
2370 (ctf_add_enum_member_cb): Likewise.
2371 (process_struct_members): Likewise.
2372 (process_enum_type): Likewise.
30d1f018 2373
518fe38c
WP
23742019-10-07 Weimin Pan <weimin.pan@oracle.com>
2375
2376 * tracectf.h: Rename, was ctf.h.
2377 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2378 * tracefile.c: Likewise.
2379 * tracepoint.c: Remove unused include ctf.h.
2380 * mi/mi-main.c: Likewise.
2381 * Makefile.in Replace ctf.c with tracectf.c.
2382
225f296a
JB
23832019-10-06 Joel Brobecker <brobecker@adacore.com>
2384
2385 * version.in: Change version number to "9.0.50.DATE-git".
2386
77c2dba3
TT
23872019-10-03 Tom Tromey <tom@tromey.com>
2388
2389 PR rust/24976:
2390 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2391
179aed7f
AB
23922019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2395 cp_search_name_hash.
2396 * NEWS: Add entry about nested function support.
2397
0a4b0913
AB
23982019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2399 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2402 for nested static variables when searchin VAR_DOMAIN.
2403 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2404 global scope, update comment.
2405 (add_partial_subprogram): Call add_partial_subprogram recursively
2406 for nested subroutines when processinng Fortran.
2407 (load_partial_dies): Process the child entities of a subprogram
2408 when processing Fortran.
2409 (partial_die_parent_scope): Handle building scope
2410 for Fortran nested functions.
2411 (process_die): Record that nested functions have a scope.
2412 (new_symbol): Always record Fortran subprograms on the global
2413 symbol list.
2414 (determine_prefix): How to build the prefix for Fortran
2415 subprograms.
2416
d8c06f22
AB
24172019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2420 have just sent the thread a SIGSTOP and are waiting for it to
2421 arrive.
2422
a8b3b8e9
AB
24232019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * btrace.c (btrace_add_pc): Remove whitespace before the template
2426 parameter in 'std::vector <...>'.
2427 (parse_xml_btrace_block): Likewise.
2428 (btrace_maint_decode_pt): Likewise.
2429 (btrace_maint_update_packets): Likewise.
2430 (btrace_maint_print_packets): Likewise.
2431 * btrace.h (struct btrace_maint_info): Likewise.
2432 * dwarf2read.c (struct type_unit_group): Likewise.
2433 (build_type_psymtabs_reader): Likewise.
2434 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2435 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2436 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2437
4d825eab
TV
24382019-10-03 Tom de Vries <tdevries@suse.de>
2439
2440 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2441 the first line of the help text for set/show style metadata.
2442
80fd2826
TT
24432019-10-02 Tom Tromey <tromey@adacore.com>
2444
2445 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2446 * gdbsupport/common-inferior.c: New file.
2447 * infcmd.c (startup_with_shell): Don't define.
2448 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2449 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2450 * inferior.h (startup_with_shell): Don't declare.
2451
70054538
CB
24522019-10-02 Christian Biesinger <cbiesinger@google.com>
2453
2454 * gdbsupport/gdb_assert.h: Include errors.h.
2455 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2456
37f6a7f4
TT
24572019-10-02 Tom Tromey <tromey@adacore.com>
2458
2459 * NEWS: Add $_ada_exception entry.
2460 * ada-lang.c (struct ada_catchpoint): Add constructor.
2461 <m_kind>: New member.
2462 (allocate_location_exception, re_set_exception): Remove
2463 "ex" parameter.
2464 (should_stop_exception): Compute $_ada_exception.
2465 (check_status_exception, print_it_exception)
2466 (print_one_exception, print_mention_exception): Remove
2467 "ex" parameter.
2468 (allocate_location_catch_exception, re_set_catch_exception)
2469 (check_status_exception, print_it_catch_exception)
2470 (print_one_catch_exception, print_mention_catch_exception)
2471 (print_recreate_catch_exception)
2472 (allocate_location_catch_exception_unhandled)
2473 (re_set_catch_exception_unhandled)
2474 (check_status_exception, print_it_catch_exception_unhandled)
2475 (print_one_catch_exception_unhandled)
2476 (print_mention_catch_exception_unhandled)
2477 (print_recreate_catch_exception_unhandled)
2478 (allocate_location_catch_assert, re_set_catch_assert)
2479 (check_status_assert, print_it_catch_assert)
2480 (print_one_catch_assert, print_mention_catch_assert)
2481 (print_recreate_catch_assert)
2482 (allocate_location_catch_handlers, re_set_catch_handlers)
2483 (check_status_handlers, print_it_catch_handlers)
2484 (print_one_catch_handlers, print_mention_catch_handlers)
2485 (print_recreate_catch_handlers): Remove.
2486 (create_ada_exception_catchpoint): Update.
2487 (initialize_ada_catchpoint_ops): Update.
2488
fccf9de1
TT
24892019-10-02 Tom Tromey <tromey@adacore.com>
2490
2491 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2492 (create_excep_cond_exprs): Simplify exception string computation.
2493 (ada_exception_catchpoint_cond_string): Likewise.
2494
4b610737
TT
24952019-10-02 Tom Tromey <tromey@adacore.com>
2496
2497 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2498 * ada-lang.c (lesseq_defined_than): Handle
2499 LOC_STATIC.
2500 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2501 parameter.
2502 (dwarf2_has_info): Likewise.
2503 (new_symbol): Set maybe_copied on symbol when
2504 appropriate.
2505 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2506 parameter.
2507 <can_copy>: New member.
2508 * elfread.c (record_minimal_symbol): Set maybe_copied
2509 on symbol when appropriate.
2510 (elf_symfile_read): Update call to dwarf2_has_info.
2511 * minsyms.c (lookup_minimal_symbol_linkage): New
2512 function.
2513 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2514 * symtab.c (get_symbol_address, get_msymbol_address):
2515 New functions.
2516 * symtab.h (get_symbol_address, get_msymbol_address):
2517 Declare.
2518 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2519 maybe_copied.
2520 (struct symbol, struct minimal_symbol) <maybe_copied>:
2521 New member.
2522
1dd58850
TT
25232019-10-02 Tom Tromey <tromey@adacore.com>
2524
2525 * source.c (struct current_source_location): New.
2526 (current_source_key): New global.
2527 (current_source_symtab, current_source_line)
2528 (current_source_pspace): Remove.
2529 (get_source_location): New function.
2530 (get_current_source_symtab_and_line)
2531 (set_default_source_symtab_and_line)
2532 (set_current_source_symtab_and_line)
2533 (clear_current_source_symtab_and_line, select_source_symtab)
2534 (info_source_command, print_source_lines_base)
2535 (info_line_command, search_command_helper, _initialize_source):
2536 Update.
2537
5c281dbb
TT
25382019-10-02 Tom Tromey <tromey@adacore.com>
2539
2540 * source.c (select_source_symtab): Don't call
2541 decode_line_with_current_source.
2542
d3d32391
AB
25432019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * symtab.c (lookup_global_symbol): Search global block.
2546
38583298
TT
25472019-10-02 Tom Tromey <tromey@adacore.com>
2548
2549 * coffread.c (process_coff_symbol): Update.
2550 * dwarf2read.c (var_decode_location, new_symbol): Update.
2551 * mdebugread.c (parse_symbol): Update.
2552 * objfiles.c (relocate_one_symbol): Update.
2553 * stabsread.c (define_symbol, fix_common_block)
2554 (scan_file_globals): Update.
2555 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2556 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2557 * xcoffread.c (process_xcoff_symbol): Update.
2558
9344c18f
AA
25592019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2560
2561 * MAINTAINERS: Update my email address.
2562
df07e2c7
AB
25632019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2566 std::vector.
2567 (build_type_psymtabs_reader): Update for std::vector.
2568 (build_type_psymtab_dependencies): Likewise.
2569 * dwarf2read.h: Remove use of DEF_VEC_P.
2570 (typedef sig_type_ptr): Delete.
2571
554ac434
AB
25722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2575 to std::vector.
2576 (btrace_maint_decode_pt): Likewise, and move allocation of the
2577 vector outside of the loop.
2578 (btrace_maint_update_packets): Update to handle change from VEC to
2579 std::vector.
2580 (btrace_maint_print_packets): Likewise.
2581 (maint_info_btrace_cmd): Likewise.
2582 * btrace.h: Remove use of DEF_VEC_O.
2583 (typedef btrace_pt_packet_s): Delete.
2584 (struct btrace_maint_info) <packets>: Change fromm VEC to
2585 std::vector.
2586 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2587
46f29a9a
AB
25882019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2591 make accesses into the vector constant references.
2592 (btrace_add_pc): Update for std::vector.
2593 (btrace_stitch_bts): Likewise.
2594 (parse_xml_btrace_block): Likewise.
2595 (btrace_maint_update_packets): Likewise.
2596 (btrace_maint_print_packets): Likewise.
2597 (maint_info_btrace_cmd): Likewise.
2598 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2599 std::vector.
2600 (btrace_data::empty): Likewise.
2601 (btrace_data_append): Likewise.
2602 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2603 (typedef btrace_block_s): Delete.
2604 (struct btrace_block): Add constructor.
2605 (struct btrace_data_bts) <blocks>: Change to std::vector.
2606 * nat/linux-btrace.c (perf_event_read_bts): Update for
2607 std::vector.
2608 (linux_read_bts): Likewise.
2609
d770d56f
TT
26102019-10-01 Tom Tromey <tom@tromey.com>
2611
2612 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2613
9d636d67
TT
26142019-10-01 Tom Tromey <tom@tromey.com>
2615
2616 * stack.c (print_frame, info_frame_command_core): Use
2617 styled_string.
2618 * linux-thread-db.c (try_thread_db_load_1)
2619 (try_thread_db_load_from_pdir_1): Use styled_string.
2620 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2621 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2622 (maybe_print_unsupported_script_warning)
2623 (maybe_print_script_not_found_warning): Use styled_string.
2624 * ada-lang.c (user_select_syms): Use styled_string.
2625
7f6aba03
TT
26262019-10-01 Tom Tromey <tom@tromey.com>
2627
2628 * p-lang.c (pascal_printstr): Use metadata style.
2629 * value.c (show_convenience): Use metadata style.
2630 * valprint.c (valprint_check_validity, val_print_optimized_out)
2631 (val_print_not_saved, val_print_unavailable)
2632 (val_print_invalid_address, generic_val_print, val_print)
2633 (value_check_printable, val_print_array_elements): Use metadata
2634 style.
2635 * ui-out.h (class ui_out) <field_fmt>: New overload.
2636 <do_field_fmt>: Add style parameter.
2637 * ui-out.c (ui_out::field_fmt): New overload.
2638 * typeprint.c (type_print_unknown_return_type)
2639 (val_print_not_allocated, val_print_not_associated): Use metadata
2640 style.
2641 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2642 parameter.
2643 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2644 * tracepoint.c (tvariables_info_1): Use metadata style.
2645 * stack.c (print_frame_arg, print_frame_info, print_frame)
2646 (info_frame_command_core): Use metadata style.
2647 * skip.c (info_skip_command): Use metadata style.
2648 * rust-lang.c (rust_print_enum): Use metadata style.
2649 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2650 metadata style.
2651 * python/py-framefilter.c (py_print_single_arg): Use metadata
2652 style.
2653 * printcmd.c (do_one_display, print_variable_and_value): Use
2654 metadata style.
2655 * p-valprint.c (pascal_val_print)
2656 (pascal_object_print_value_fields): Use metadata style.
2657 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2658 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2659 parameter.
2660 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2661 * m2-valprint.c (m2_print_long_set): Use metadata style.
2662 * m2-typeprint.c (m2_print_type): Use metadata style.
2663 * infcmd.c (print_return_value_1): Use metadata style.
2664 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2665 * f-valprint.c (info_common_command_for_block): Use metadata
2666 style.
2667 * f-typeprint.c (f_type_print_base): Use metadata style.
2668 * expprint.c (print_subexp_standard): Use metadata style.
2669 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2670 * cli/cli-style.h (class cli_style_option): Add constructor.
2671 (metadata_style): Declare.
2672 * cli/cli-style.c (metadata_style): New global.
2673 (_initialize_cli_style): Register metadata style.
2674 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2675 parameter.
2676 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2677 * c-typeprint.c (c_type_print_base_struct_union)
2678 (c_type_print_base_1): Use metadata style.
2679 * breakpoint.c (watchpoint_value_print)
2680 (print_one_breakpoint_location): Use metadata style.
2681 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2682 style.
2683 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2684 style.
2685 * ada-valprint.c (val_print_packed_array_elements, printstr)
2686 (print_field_values, ada_val_print_ref, ada_val_print): Use
2687 metadata style.
2688 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2689 style.
2690 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2691 style.
2692 * ada-lang.c (user_select_syms): Use metadata style.
2693
14309bb6
TT
26942019-10-01 Tom Tromey <tom@tromey.com>
2695
2696 * cli/cli-cmds.c (pwd_command): Style output.
2697
6a831f06
PA
26982019-10-01 Pedro Alves <palves@redhat.com>
2699 Tom Tromey <tom@tromey.com>
2700
2701 * symtab.c (print_symbol_info): Use %ps.
2702 (print_msymbol_info): Use %ps.
2703 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2704 * printcmd.c (print_variable_and_value): Use %ps.
2705 * macrocmd.c (show_pp_source_pos): Use %ps.
2706 * infrun.c (print_exited_reason): Use ui_out::message.
2707 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2708 (describe_other_breakpoints): Use ui_out::message and new
2709 formats.
2710 (say_where): Use new formats.
2711 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2712 and new formats.
2713
2a3c1174
PA
27142019-10-01 Pedro Alves <palves@redhat.com>
2715 Tom Tromey <tom@tromey.com>
2716
2717 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2718 (test_gdb_formats): New function.
2719 (run_tests): Call it.
2720 (test_format_specifier): Update.
2721 * utils.h (fputs_filtered): Update comment.
2722 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2723 (fputs_styled_unfiltered): Declare.
2724 * utils.c (fputs_styled_unfiltered): New function.
2725 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2726 (vfprintf_filtered): Update.
2727 (vfprintf_unfiltered, vprintf_filtered): Update.
2728 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2729 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2730 disallow_ui_out_field>: New constants.
2731 (enum class field_kind): New.
2732 (struct base_field_s, struct signed_field_s): New.
2733 (signed_field): New function.
2734 (struct string_field_s): New.
2735 (string_field): New function.
2736 (struct styled_string_s): New.
2737 (styled_string): New function.
2738 (class ui_out) <message>: Add comment.
2739 <vmessage, call_do_message>: New methods.
2740 <do_message>: Add style parameter.
2741 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2742 methods.
2743 (ui_out::message): Rewrite.
2744 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2745 parameter.
2746 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2747 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2748 gdb_extensions parameter.
2749 (class format_piece): Add parameter to constructor.
2750 (n_int_args): New field.
2751 * gdbsupport/format.c (format_pieces::format_pieces): Add
2752 gdb_extensions parameter. Handle '*'.
2753 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2754 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2755 vfprintf_styled_no_gdbfmt.
2756 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2757 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2758 unfiltered output.
2759 * ui-style.h (struct ui_file_style) <ptr>: New method.
2760
0dfe5bfb
TT
27612019-10-01 Tom Tromey <tom@tromey.com>
2762
2763 * unittests/format_pieces-selftests.c: Update. Add final format.
2764 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2765 empty literal pieces.
2766
e43b10e1
TT
27672019-10-01 Tom Tromey <tom@tromey.com>
2768
2769 * ui-out.h (enum class ui_out_style_kind): Remove.
2770 (class ui_out) <field_string, field_stsream, do_field_string>:
2771 Change type of "style".
2772 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2773 (ui_out::field_string): Update.
2774 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2775 of "style".
2776 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2777 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2778 * stack.c (print_frame_arg, print_frame_info, print_frame):
2779 Update.
2780 * source.c (print_source_lines_base): Update.
2781 * solib.c (info_sharedlibrary_command): Update.
2782 * skip.c (info_skip_command): Update.
2783 * record-btrace.c (btrace_call_history_src_line)
2784 (btrace_call_history): Update.
2785 * python/py-framefilter.c (py_print_frame): Update.
2786 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2787 "style".
2788 * mi/mi-out.c (mi_ui_out::do_table_header)
2789 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2790 (mi_ui_out::do_field_string): Update.
2791 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2792 Update.
2793 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2794 "style".
2795 * cli-out.c (cli_ui_out::do_table_header)
2796 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2797 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2798 (cli_ui_out::do_field_fmt): Update.
2799 * breakpoint.c (print_breakpoint_location): Update.
2800 (update_static_tracepoint): Update.
2801
cd7c32c3
PW
28022019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2803
2804 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2805 conversion of gdb_datadir.
2806 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2807 remove not needed c_str ().
2808
8fe0f950
AT
28092019-09-30 Ali Tamur <tamur@google.com>
2810
2811 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2812 (dwarf2_string_attr): Likewise.
2813
5f48f8f3
AT
28142019-09-30 Ali Tamur <tamur@google.com>
2815
2816 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2817 (process_full_type_unit): Likewise.
2818 (dump_die_shallow): Likewise.
2819 (cu_debug_loc_section): Likewise.
2820
6fb08628
CB
28212019-09-28 Christian Biesinger <cbiesinger@google.com>
2822
2823 * minsyms.c (compare_minimal_symbols): Rename to...
2824 (minimal_symbol_is_less_than): ...this, and adjust to STL
2825 conventions (return bool, take arguments as references)
2826 (minimal_symbol_reader::install): Call std::sort instead
2827 of qsort.
2828
c7ee338a
CB
28292019-09-29 Christian Biesinger <cbiesinger@google.com>
2830
2831 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2832 hash and why.
2833 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2834 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2835
703a86c2
SM
28362019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2839 * psympriv.h (add_psymbol_to_list): Move comment here and update
2840 it.
2841
0df0352a
TV
28422019-09-29 Tom de Vries <tdevries@suse.de>
2843
2844 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2845 Use $tmpdir/$(basename "$output_file").dwz instead of
2846 "${output_file}.dwz".
2847
ad75efa6
SM
28482019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 PR gdb/25045
2851 * hppa-linux-nat.c: Include gdbarch.h.
2852
ececd218
CB
28532019-09-26 Christian Biesinger <cbiesinger@google.com>
2854
2855 * blockframe.c (find_pc_partial_function): Change return type to bool.
2856 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2857 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2858 (stub_gnu_ifunc_resolve_name): Likewise.
2859 * symtab.c (compare_filenames_for_search): Likewise.
2860 (compare_glob_filenames_for_search): Likewise.
2861 (matching_obj_sections): Likewise.
2862 (symbol_matches_domain): Likewise.
2863 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2864 (find_line_pc): Change return type to bool.
2865 (find_line_pc_range): Likewise.
2866 (producer_is_realview): Likewise.
2867 * symtab.h (symbol_matches_domain): Likewise.
2868 (find_pc_partial_function): Likewise.
2869 (find_pc_line_pc_range): Likewise.
2870 (in_gnu_ifunc_stub): Likewise.
2871 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2872 (find_line_pc): Likewise.
2873 (find_line_pc_range): Likewise.
2874 (matching_obj_sections): Likewise.
2875 (find_line_symtab): Change out parameter to bool.
2876 (producer_is_realview): Change return type to bool.
2877 (compare_filenames_for_search): Likewise.
2878 (compare_glob_filenames_for_search): Likewise.
2879
27a900b8
TT
28802019-09-26 Tom Tromey <tom@tromey.com>
2881
2882 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2883 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2884 * gdb_usleep.h: Remove.
2885 * gdb_usleep.c: Remove.
2886 * utils.c: Don't include gdb_usleep.h.
2887
5d63b30a
TT
28882019-09-26 Tom Tromey <tromey@adacore.com>
2889
2890 * python/py-type.c (type_to_type_object): Call check_typedef
2891 for stub types.
2892
12904d37
TT
28932019-09-26 Tom Tromey <tom@tromey.com>
2894
2895 * utils.h (initialize_utils): Don't declare.
2896 * top.c (gdb_init): Don't call initialize_utils.
2897 * utils.c (initialize_utils): Remove. Move contents...
2898 (_initialize_utils): ... here.
2899
858f25f0
TT
29002019-09-25 Tom Tromey <tom@tromey.com>
2901
2902 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2903 * utils.h (make_hex_string): Don't declare.
2904 * utils.c (make_hex_string): Remove.
2905
3d435220
TV
29062019-09-24 Tom de Vries <tdevries@suse.de>
2907
2908 PR gdb/23815
2909 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2910 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2911
ddd44b70
DD
29122019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2913
2914 * NEWS: Mention new simulator port for PRU.
2915
f945dedf
CB
29162019-09-23 Christian Biesinger <cbiesinger@google.com>
2917
2918 * ada-exp.y (write_object_remaining): Update.
2919 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2920 and eliminate the static buffer.
2921 (ada_decode_symbol): Update.
2922 (ada_la_decode): Update.
2923 (ada_sniff_from_mangled_name): Update.
2924 (is_valid_name_for_wild_match): Update.
2925 (ada_lookup_name_info::matches): Update and simplify.
2926 (name_matches_regex): Update.
2927 (ada_add_global_exceptions): Update.
2928 * ada-lang.h (ada_decode): Update signature.
2929 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2930 * dwarf-index-write.c (debug_names::insert): Update.
2931
7ab78ccb
SM
29322019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2935 formatting.
2936
9252448b
SM
29372019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2940 Change "nonzero" to "true" in documentation.
2941
626ca2c0
CB
29422019-09-20 Christian Biesinger <cbiesinger@google.com>
2943
2944 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2945 (_initialize_darwin_solib): Don't set
2946 darwin_so_ops.lookup_lib_global_symbol.
2947 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2948 set_gdbarch_iterate_over_objfiles_in_search_order.
2949 (elf_lookup_lib_symbol): Rename to...
2950 (svr4_iterate_over_objfiles_in_search_order): this, and update
2951 to iterate semantics.
2952 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2953 * solib.c (solib_global_lookup): Remove.
2954 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2955 (solib_global_lookup): Remove.
2956 * symtab.c (lookup_global_or_static_symbol): Remove call to
2957 solib_global_lookup.
2958
5a3a0d63
JB
29592019-09-20 Joel Brobecker <brobecker@adacore.com>
2960
2961 * NEWS: Move entries about default MI version now being
2962 version 3, and about the GDB/MI fix for multi-location
2963 breakpoints to the "since GDB 8.3" section.
2964
ffea1427
JB
29652019-09-20 Joel Brobecker <brobecker@adacore.com>
2966
2967 GDB 8.3.1 released.
2968
abf516c6
UW
29692019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2970
2971 * NEWS: Mention that Cell/B.E. debugging support was removed.
2972 * MAINTAINERS: Remove spu target.
2973
2974 * config/djgpp/fnchange.lst: Remove entries for removed files.
2975
2976 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2977 spu-multiarch.o, and spu-tdep.o.
2978 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2979 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2980 spu-multiarch.c, and spu-tdep.c.
2981 * spu-linux-nat.c: Remove file.
2982 * spu-multiarch.c: Remove file.
2983 * spu-tdep.c: Remove file.
2984 * spu-tdep.h: Remove file.
2985 * solib-spu.c: Remove file.
2986 * solib-spu.h: Remove file.
2987
2988 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2989 * configure.nat (spu-linux): Remove.
2990 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2991 solib-multiarch.o from gdb_target_obs.
2992 (spu*-*-*): Remove.
2993
2994 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2995 feature flag.
2996 (ppc_linux_no_features): Update.
2997 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2998 Cell/B.E. support.
2999 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3000 (tdesc_powerpc_cell64l): Likewise.
3001 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3002 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3003 Cell/B.E. support.
3004 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3005 Do not include "features/rs6000/powerpc-cell32l.c" or
3006 "features/rs6000/powerpc-cell64l.c".
3007 (ppc_linux_spu_section): Remove.
3008 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3009 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3010 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3011 (ppc_linux_spe_context_lookup): Remove.
3012 (ppc_linux_spe_context_inferior_created): Remove.
3013 (ppc_linux_spe_context_solib_loaded): Remove.
3014 (ppc_linux_spe_context_solib_unloaded): Remove.
3015 (ppc_linux_spe_context): Remove.
3016 (struct ppu2spu_cache): Remove.
3017 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3018 (struct ppu2spu_data): Remove.
3019 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3020 ppu2spu_unwind): Remove.
3021 (ppc_linux_init_abi): Remove Cell/B.E. support.
3022 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3023
3024 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3025 (rs6000/powerpc-cell64l-expedite): Likewise
3026 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3027 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3028 rs6000/powerpc-cell64l.xml.
3029 * features/rs6000/powerpc-cell32l.xml: Remove.
3030 * features/rs6000/powerpc-cell64l.xml: Likewise.
3031 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3032 * features/rs6000/powerpc-cell64l.c: Likewise.
3033 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3034 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3035 * regformats/reg-spu.dat: Remove.
3036
3037 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3038 * corelow.c (struct spuid_list): Remove.
3039 (add_to_spuid_list): Remove.
3040 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3041 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3042 (remote_protocol_features): Remove associated entries.
3043 (_initialize_remote): No longer initialize them.
3044 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3045 * linux-nat.c (SPUFS_MAGIC): Remove.
3046 (linux_proc_xfer_spu): Remove.
3047 (spu_enumerate_spu_ids): Remove.
3048 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3049 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3050 (linux_make_corefile_notes): No longer call it.
3051
3052 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3053 (cooked_write_test): Likewise.
3054
78e8cb91
TT
30552019-09-20 Tom Tromey <tom@tromey.com>
3056
3057 * NEWS: Mention case-sensitivity of TUI commands.
3058 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3059 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3060 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3061
f074b67e
TT
30622019-09-20 Tom Tromey <tom@tromey.com>
3063
3064 * tui/tui-source.c (tui_source_window::set_contents): Use
3065 make_unique_xstrdup.
3066 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3067 make_unique_xstrdup.
3068
63c4bf19
TT
30692019-09-20 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-data.c: Remove separator comments.
3072 * tui/tui-layout.c: Remove separator comments.
3073 * tui/tui-win.c: Remove separator comments.
3074 * tui/tui-wingeneral.c: Remove separator comments.
3075
43df9b2f
TT
30762019-09-20 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui.h (strcat_to_buf): Don't declare.
3079 * tui/tui.c (strcat_to_buf): Remove.
3080
7226433c
TT
30812019-09-20 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3084 from "fullname".
3085 * tui/tui-source.c (tui_source_window::set_contents)
3086 (tui_source_window::location_matches_p)
3087 (tui_source_window::maybe_update): Update.
3088
80df3337
TT
30892019-09-20 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3092 Update.
3093 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3094 prefix.
3095 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3096 (tui_data_window::line_from_reg_element_no)
3097 (tui_data_window::first_reg_element_no_inline)
3098 (tui_data_window::show_registers)
3099 (tui_data_window::show_register_group)
3100 (tui_data_window::display_registers_from)
3101 (tui_data_window::display_registers_from_line)
3102 (tui_data_window::first_data_item_displayed)
3103 (tui_data_window::delete_data_content_windows)
3104 (tui_data_window::erase_data_content)
3105 (tui_data_window::do_scroll_vertical)
3106 (tui_data_window::refresh_window)
3107 (tui_data_window::check_register_values): Update.
3108
9923f347
TT
31092019-09-20 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3112 (struct tui_locator_window) <full_name, proc_name>: Now
3113 std::string.
3114 * tui/tui-stack.c (tui_locator_window::make_status_line)
3115 (tui_locator_window::set_locator_fullname)
3116 (tui_locator_window::set_locator_info): Update.
3117 * tui/tui-source.c (tui_source_window::set_contents)
3118 (tui_source_window::showing_source_p): Update.
3119
b76251ab
TT
31202019-09-20 Tom Tromey <tom@tromey.com>
3121
3122 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3123 Don't call tui_locator_win_info_ptr.
3124
0891be08
TT
31252019-09-20 Tom Tromey <tom@tromey.com>
3126
3127 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3128
1b935acf
TT
31292019-09-20 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3132 height for locator.
3133 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3134 * tui/tui-layout.c (show_source_disasm_command, show_data)
3135 (show_source_or_disasm_and_command): Use 1 as height for locator.
3136
9abd8a65
TT
31372019-09-20 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui.c (tui_enable): Update.
3140 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3141 Update.
3142 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3143 Update.
3144 * tui/tui-data.c (win_resized): Now bool.
3145 (tui_win_resized): Return bool.
3146 (tui_set_win_resized_to): Accept a bool.
3147
b5457826
TT
31482019-09-20 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3151 Change type of "refresh_values_only".
3152 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3153 type of "refresh_values_only".
3154
6b915f7d
TT
31552019-09-20 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3158 std::string.
3159 (tui_disassemble): Add "pos" parameter.
3160 (tui_disasm_window::set_contents): Simplify.
3161
2ad52f6f
TT
31622019-09-20 Tom Tromey <tom@tromey.com>
3163
3164 * tui/tui-winsource.h (struct tui_source_window_base)
3165 <show_source_content>: Now private.
3166 * tui/tui-winsource.c
3167 (tui_source_window_base::show_source_content): Don't handle empty
3168 content case.
3169
b3b1bde6
TT
31702019-09-20 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-layout.c (show_source_disasm_command)
3173 (show_source_or_disasm_and_command): Don't call
3174 show_source_content.
3175
71a25ed2
TT
31762019-09-20 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3179 Declare.
3180 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3181 from tui_make_status_line.
3182 (tui_locator_window::rerender): Update.
3183
f8532154
TT
31842019-09-20 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3187 (tui_locator_window::rerender): Update.
3188
2d81b349
TT
31892019-09-20 Tom Tromey <tom@tromey.com>
3190
3191 * tui/tui-winsource.h (struct tui_source_window_base)
3192 <~tui_source_window_base>: Don't declare.
3193 <fullname>: Remove.
3194 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3195 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3196 member.
3197 * tui/tui-source.c (tui_source_window::set_contents): Update.
3198 (tui_source_window::location_matches_p)
3199 (tui_source_window::maybe_update): Update.
3200
f14bec58
TT
32012019-09-20 Tom Tromey <tom@tromey.com>
3202
3203 * tui/tui-winsource.h (~tui_source_element): Remove.
3204 (tui_source_element): Update.
3205 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3206 * tui/tui-winsource.c (tui_show_source_line): Update.
3207 * tui/tui-source.c (tui_source_window::set_contents): Update.
3208 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3209
78d5933a
TT
32102019-09-20 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3213 declare.
3214 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3215 tui_clear_source_windows_detail.
3216 * tui/tui-winsource.h (struct tui_source_window_base)
3217 <clear_detail>: Don't declare.
3218 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3219 Remove.
3220 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3221
d4207696
TT
32222019-09-20 Tom Tromey <tromey@adacore.com>
3223
3224 PR ada/24919:
3225 * block.c (contained_in): Fix final return value.
3226
00f93c44
AM
32272019-09-20 Alan Modra <amodra@gmail.com>
3228
3229 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3230 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3231 (read_indirect_string_from_dwz): Use bfd accessor.
3232 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3233 * machoread.c (macho_symfile_read_all_oso): Likewise.
3234 * solib.c (solib_bfd_open): Likewise.
3235
e4153ae6
CB
32362019-09-19 Christian Biesinger <cbiesinger@google.com>
3237
3238 * eval.c: Move declaration of overload_resolution to...
3239 * value.h: ...here.
3240
c7ae7675
CB
32412019-09-19 Christian Biesinger <cbiesinger@google.com>
3242
3243 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3244 * arm-linux-tdep.c: Likewise.
3245 * arm-nbsd-nat.c: Likewise.
3246 * arm-tdep.h: Declare arm_apcs_32.
3247 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3248
e86f08d2
CB
32492019-09-19 Christian Biesinger <cbiesinger@google.com>
3250
3251 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3252 * dwarf2read.h: Declare dwarf_always_disassemble.
3253
f64e2f40
TV
32542019-09-19 Tom de Vries <tdevries@suse.de>
3255
3256 PR gdb/25009
3257 * source-cache.c (source_cache::ensure): Catch exception thrown during
3258 construction of the highlighter.
3259
fd361982
AM
32602019-09-18 Alan Modra <amodra@gmail.com>
3261
3262 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3263 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3264 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3265 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3266 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3267 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3268 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3269 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3270 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3271 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3272 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3273 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3274 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3275 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3276 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3277 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3278 * mi/mi-interp.c: Update throughout for bfd section macro and
3279 function changes.
3280 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3281 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3282
11061048
TT
32832019-09-18 Tom Tromey <tom@tromey.com>
3284
3285 * NEWS: Add entry.
3286 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3287 call rl_initialize.
3288 (tui_enable): Do not call rl_initialize.
3289
7a27b85f
CG
32902019-09-18 Christian Groessler <chris@groessler.org>
3291
3292 * alpha-linux-nat.c: Include gdbarch.h.
3293
f64eea3a
SM
32942019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * ui-file.c: Include cli/cli-style.h.
3297 (term_cli_styling): Remove cli_styling declaration.
3298
e6f7f6d1
AM
32992019-09-18 Alan Modra <amodra@gmail.com>
3300
3301 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3302 to bfd_asymbol_section.
3303
1d38e9d1
AM
33042019-09-18 Alan Modra <amodra@gmail.com>
3305
3306 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3307 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3308 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3309
90d92a63
AM
33102019-09-18 Alan Modra <amodra@gmail.com>
3311
3312 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3313 * spu-linux-nat.c (spu_bfd_open): Likewise.
3314
a3d181d2
CB
33152019-09-18 Christian Biesinger <cbiesinger@google.com>
3316
3317 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3318 to bool to match definition in dwarf2read.c.
3319
491144b5
CB
33202019-09-17 Christian Biesinger <cbiesinger@google.com>
3321
3322 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3323 (print_signatures): Likewise.
3324 (trust_pad_over_xvs): Likewise.
3325 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3326 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3327 * arm-linux-nat.c (arm_apcs_32): Likewise.
3328 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3329 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3330 * arm-tdep.c (arm_debug): Likewise.
3331 (arm_apcs_32): Likewise.
3332 * auto-load.c (debug_auto_load): Likewise.
3333 (auto_load_gdb_scripts): Likewise.
3334 (global_auto_load): Likewise.
3335 (auto_load_local_gdbinit): Likewise.
3336 (auto_load_local_gdbinit_loaded): Likewise.
3337 * auto-load.h (global_auto_load): Likewise.
3338 (auto_load_local_gdbinit): Likewise.
3339 (auto_load_local_gdbinit_loaded): Likewise.
3340 * breakpoint.c (disconnected_dprintf): Likewise.
3341 (breakpoint_proceeded): Likewise.
3342 (automatic_hardware_breakpoints): Likewise.
3343 (always_inserted_mode): Likewise.
3344 (target_exact_watchpoints): Likewise.
3345 (_initialize_breakpoint): Update.
3346 * breakpoint.h (target_exact_watchpoints): Change to bool.
3347 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3348 * cli/cli-cmds.c (trace_commands): Likewise.
3349 * cli/cli-cmds.h (trace_commands): Likewise.
3350 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3351 to bool*.
3352 * cli/cli-logging.c (logging_overwrite): Change to bool.
3353 (logging_redirect): Likewise.
3354 (debug_redirect): Likewise.
3355 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3356 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3357 to bool.
3358 <boolean_option_def>: Update.
3359 (struct flag_option_def): Change default type of Context to bool
3360 from int.
3361 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3362 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3363 (get_setshow_command_value_string): Likewise.
3364 * cli/cli-style.c (cli_styling): Change to bool.
3365 (source_styling): Likewise.
3366 * cli/cli-style.h (source_styling): Likewise.
3367 (cli_styling): Likewise.
3368 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3369 to bool.
3370 * command.h (var_types): Update comment.
3371 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3372 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3373 bool.
3374 (debug_compile_cplus_scopes): Likewise.
3375 * compile/compile-internal.h (compile_debug): Likewise.
3376 * compile/compile.c (compile_debug): Likewise.
3377 (struct compile_options) <raw>: Likewise.
3378 * cp-support.c (catch_demangler_crashes): Likewise.
3379 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3380 (usr_cmd_cris_dwarf2_cfi): Likewise.
3381 * csky-tdep.c (csky_debug): Likewise.
3382 * darwin-nat.c (enable_mach_exceptions): Likewise.
3383 * dcache.c (dcache_enabled_p): Likewise.
3384 * defs.h (info_verbose): Likewise.
3385 * demangle.c (demangle): Likewise.
3386 (asm_demangle): Likewise.
3387 * dwarf-index-cache.c (debug_index_cache): Likewise.
3388 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3389 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3390 * dwarf2read.c (check_physname): Likewise.
3391 (use_deprecated_index_sections): Likewise.
3392 (dwarf_always_disassemble): Likewise.
3393 * eval.c (overload_resolution): Likewise.
3394 * event-top.c (set_editing_cmd_var): Likewise.
3395 (exec_done_display_p): Likewise.
3396 * event-top.h (set_editing_cmd_var): Likewise.
3397 (exec_done_display_p): Likewise.
3398 * exec.c (write_files): Likewise.
3399 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3400 (debug_fbsd_nat): Likewise.
3401 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3402 Likewise.
3403 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3404 <backtrace_past_entry> Likewise.
3405 * gdb-demangle.h (demangle): Likewise.
3406 (asm_demangle): Likewise.
3407 * gdb_bfd.c (bfd_sharing): Likewise.
3408 * gdbcore.h (write_files): Likewise.
3409 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3410 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3411 * gdbthread.h (print_thread_events): Likewise.
3412 * gdbtypes.c (opaque_type_resolution): Likewise.
3413 (strict_type_checking): Likewise.
3414 * gnu-nat.c (gnu_debug_flag): Likewise.
3415 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3416 * guile/scm-param.c (pascm_variable): Add boolval.
3417 (add_setshow_generic): Update.
3418 (pascm_param_value): Update.
3419 (pascm_set_param_value_x): Update.
3420 * hppa-tdep.c (hppa_debug): Change to bool..
3421 * infcall.c (may_call_functions_p): Likewise.
3422 (coerce_float_to_double_p): Likewise.
3423 (unwind_on_signal_p): Likewise.
3424 (unwind_on_terminating_exception_p): Likewise.
3425 * infcmd.c (startup_with_shell): Likewise.
3426 * inferior.c (print_inferior_events): Likewise.
3427 * inferior.h (startup_with_shell): Likewise.
3428 (print_inferior_events): Likewise.
3429 * infrun.c (step_stop_if_no_debug): Likewise.
3430 (detach_fork): Likewise.
3431 (debug_displaced): Likewise.
3432 (disable_randomization): Likewise.
3433 (non_stop): Likewise.
3434 (non_stop_1): Likewise.
3435 (observer_mode): Likewise.
3436 (observer_mode_1): Likewise.
3437 (set_observer_mode): Update.
3438 (sched_multi): Change to bool.
3439 * infrun.h (debug_displaced): Likewise.
3440 (sched_multi): Likewise.
3441 (step_stop_if_no_debug): Likewise.
3442 (non_stop): Likewise.
3443 (disable_randomization): Likewise.
3444 * linux-tdep.c (use_coredump_filter): Likewise.
3445 (dump_excluded_mappings): Likewise.
3446 * linux-thread-db.c (auto_load_thread_db): Likewise.
3447 (check_thread_db_on_load): Likewise.
3448 * main.c (captured_main_1): Update.
3449 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3450 xx2_opt, boolean_opt>: Change to bool.
3451 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3452 * maint.c (maintenance_profile_p): Likewise.
3453 (per_command_time): Likewise.
3454 (per_command_space): Likewise.
3455 (per_command_symtab): Likewise.
3456 * memattr.c (inaccessible_by_default): Likewise.
3457 * mi/mi-main.c (mi_async): Likewise.
3458 (mi_async_1): Likewise.
3459 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3460 * nat/fork-inferior.h (startup_with_shell): Likewise.
3461 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3462 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3463 * nios2-tdep.c (nios2_debug): Likewise.
3464 * or1k-tdep.c (or1k_debug): Likewise.
3465 * parse.c (parser_debug): Likewise.
3466 * parser-defs.h (parser_debug): Likewise.
3467 * printcmd.c (print_symbol_filename): Likewise.
3468 * proc-api.c (procfs_trace): Likewise.
3469 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3470 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3471 (set_parameter_value): Update.
3472 (add_setshow_generic): Update.
3473 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3474 to bool*.
3475 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3476 int*.
3477 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3478 * record-btrace.c (record_btrace_target::store_registers): Update.
3479 * record-full.c (record_full_memory_query): Change to bool.
3480 (record_full_stop_at_limit): Likewise.
3481 * record-full.h (record_full_memory_query): Likewise.
3482 * remote-notif.c (notif_debug): Likewise.
3483 * remote-notif.h (notif_debug): Likewise.
3484 * remote.c (use_range_stepping): Likewise.
3485 (interrupt_on_connect): Likewise.
3486 (remote_break): Likewise.
3487 * ser-tcp.c (tcp_auto_retry): Likewise.
3488 * ser-unix.c (serial_hwflow): Likewise.
3489 * skip.c (debug_skip): Likewise.
3490 * solib-aix.c (solib_aix_debug): Likewise.
3491 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3492 (spu_auto_flush_cache_p): Likewise.
3493 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3494 Likewise.
3495 (struct info_print_options) <quiet>: Likewise.
3496 * symfile-debug.c (debug_symfile): Likewise.
3497 * symfile.c (auto_solib_add): Likewise.
3498 (separate_debug_file_debug): Likewise.
3499 * symfile.h (auto_solib_add): Likewise.
3500 (separate_debug_file_debug): Likewise.
3501 * symtab.c (basenames_may_differ): Likewise.
3502 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3503 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3504 (struct info_types_options) <quiet>: Likewise.
3505 * symtab.h (demangle): Likewise.
3506 (basenames_may_differ): Likewise.
3507 * target-dcache.c (stack_cache_enabled_1): Likewise.
3508 (code_cache_enabled_1): Likewise.
3509 * target.c (trust_readonly): Likewise.
3510 (may_write_registers): Likewise.
3511 (may_write_memory): Likewise.
3512 (may_insert_breakpoints): Likewise.
3513 (may_insert_tracepoints): Likewise.
3514 (may_insert_fast_tracepoints): Likewise.
3515 (may_stop): Likewise.
3516 (auto_connect_native_target): Likewise.
3517 (target_stop_and_wait): Update.
3518 (target_async_permitted): Change to bool.
3519 (target_async_permitted_1): Likewise.
3520 (may_write_registers_1): Likewise.
3521 (may_write_memory_1): Likewise.
3522 (may_insert_breakpoints_1): Likewise.
3523 (may_insert_tracepoints_1): Likewise.
3524 (may_insert_fast_tracepoints_1): Likewise.
3525 (may_stop_1): Likewise.
3526 * target.h (target_async_permitted): Likewise.
3527 (may_write_registers): Likewise.
3528 (may_write_memory): Likewise.
3529 (may_insert_breakpoints): Likewise.
3530 (may_insert_tracepoints): Likewise.
3531 (may_insert_fast_tracepoints): Likewise.
3532 (may_stop): Likewise.
3533 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3534 (make_thread_apply_all_options_def_group): Change argument from int*
3535 to bool*.
3536 (thread_apply_all_command): Update.
3537 (print_thread_events): Change to bool.
3538 * top.c (confirm): Likewise.
3539 (command_editing_p): Likewise.
3540 (history_expansion_p): Likewise.
3541 (write_history_p): Likewise.
3542 (info_verbose): Likewise.
3543 * top.h (confirm): Likewise.
3544 (history_expansion_p): Likewise.
3545 * tracepoint.c (disconnected_tracing): Likewise.
3546 (circular_trace_buffer): Likewise.
3547 * typeprint.c (print_methods): Likewise.
3548 (print_typedefs): Likewise.
3549 * utils.c (debug_timestamp): Likewise.
3550 (sevenbit_strings): Likewise.
3551 (pagination_enabled): Likewise.
3552 * utils.h (sevenbit_strings): Likewise.
3553 (pagination_enabled): Likewise.
3554 * valops.c (overload_resolution): Likewise.
3555 * valprint.h (struct value_print_options) <prettyformat_arrays,
3556 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3557 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3558 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3559 Likewise.
3560 * windows-nat.c (new_console): Likewise.
3561 (cygwin_exceptions): Likewise.
3562 (new_group): Likewise.
3563 (debug_exec): Likewise.
3564 (debug_events): Likewise.
3565 (debug_memory): Likewise.
3566 (debug_exceptions): Likewise.
3567 (useshell): Likewise.
3568 * windows-tdep.c (maint_display_all_tib): Likewise.
3569 * xml-support.c (debug_xml): Likewise.
3570
f1b620e9
MG
35712019-09-17 Mike Gulick <mgulick@mathworks.com>
3572
3573 * source.c (prepare_path_for_appending): New function.
3574 (openp): Make use of new function.
3575 (find_and_open_source): Search for the compilation directory and
3576 source file as a relative path beneath the directory search path.
3577
67f3ed6a
AB
35782019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * source-cache.c (source_cache::get_line_charpos): Catch
3581 exceptions and return false, this matches the behaviour documented
3582 in the header file.
3583
74332189
JB
35842019-09-17 Joel Brobecker <brobecker@adacore.com>
3585
3586 * ada-tasks.c (info_task): Remove quoting of the task's name.
3587
f2f24aa9
CB
35882019-09-16 Christian Biesinger <cbiesinger@google.com>
3589
3590 * symfile.c (auto_solib_add): Replace comment with a reference
3591 to the header file.
3592
6a062a93
CB
35932019-09-14 Christian Biesinger <cbiesinger@google.com>
3594
3595 * NEWS: Mention that gdb can now be compiled with Python 3
3596 on Windows.
3597
ec6c8338
AB
35982019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * maint.c (maint_print_section_data::maint_print_section_data):
3601 Force use of 'float log10 (float)' by casting the argument to
3602 float.
3603
aa17805f
AB
36042019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3605
3606 * maint.c: Add 'cmath' include.
3607 (struct maint_print_section_data): New structure.
3608 (print_section_index): New function.
3609 (print_bfd_section_info): Add header comment, small whitespace
3610 cleanup, and update to call new print_section_index function.
3611 (print_objfile_section_info): Likewise.
3612 (maint_obj_section_from_bfd_section): New function.
3613 (print_bfd_section_info_maybe_relocated): New function.
3614 (maintenance_info_sections): Add header comment, always use
3615 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3616
3dd9bb46
AB
36172019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3620 inner scope, add check that the objfile has psymtabs before
3621 checking psymtabs_addrmap.
3622 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3623
4993045d
PW
36242019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3625
3626 * NEWS: Announce that Ada task names are now shown at more places,
3627 and between quotes (except in info task output).
3628 * gdb/ada-tasks.c (task_to_str): New function.
3629 (display_current_task_id): Call task_to_str.
3630 (task_command_1): Likewise.
3631 (print_ada_task_info): In non-mi mode, Properly align headers and data
3632 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3633
7a289707
RO
36342019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3635
3636 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3637 prstatus.pr_lwp.pr_info instead of making it up.
3638
f2aec7f6
CB
36392019-09-11 Christian Biesinger <cbiesinger@google.com>
3640
3641 * auto-load.c (auto_load_expand_dir_vars): Update.
3642 * defs.h (gdb_datadir): Change to std::string.
3643 (python_libdir): Likewise.
3644 (relocate_gdb_directory): Change return type to std::string.
3645 * guile/guile.c (gdbscm_data_directory): Update.
3646 (initialize_scheme_side): Update.
3647 * jit.c (jit_reader_dir): Change to std::string.
3648 (jit_reader_load_command): Update.
3649 * main.c (gdb_datadir): Change to std::string.
3650 (python_libdir): Likewise.
3651 (set_gdb_data_directory): Update.
3652 (relocate_path): Change to return std::string.
3653 (relocate_gdb_directory): Change to return std::string.
3654 (relocate_gdbinit_path_maybe_in_datadir): Update.
3655 (captured_main_1): Update.
3656 * python/python.c (do_start_initialization): Update.
3657 * top.c (show_gdb_datadir): Update.
3658 * xml-syscall.c (xml_init_syscalls_info): Update.
3659 (init_syscalls_info): Update.
3660
9224a013
CB
36612019-09-11 Christian Biesinger <cbiesinger@google.com>
3662
3663 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3664 out of get_init_files.
3665 (get_init_files): Update.
3666
f48cd836
CB
36672019-09-11 Christian Biesinger <cbiesinger@google.com>
3668
3669 * main.c (get_init_files): Change to use std::string.
3670 (captured_main_1): Update.
3671 (print_gdb_help): Update.
3672
9cab7ecd
AT
36732019-09-11 Ali Tamur <tamur@google.com>
3674
3675 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3676 implementation.
3677
67547d89
CB
36782019-09-11 Christian Biesinger <cbiesinger@google.com>
3679
3680 * dbxread.c (read_dbx_symtab): Update.
3681 * dwarf2read.c (load_partial_dies): Update.
3682 * mdebugread.c (parse_partial_symbols): Update.
3683 (handle_psymbol_enumerators): Update.
3684 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3685 * psymtab.c (add_psymbol_to_bcache): Likewise.
3686 (add_psymbol_to_list): Likewise.
3687 * symtab.c (symbol_set_names): Likewise.
3688 * symtab.h (symbol_set_names): Likewise.
3689 * xcoffread.c (scan_xcoff_symtab): Update.
3690
64b2d4a0
TT
36912019-09-11 Tom Tromey <tom@tromey.com>
3692
3693 * symfile-mem.c (symbol_file_add_from_memory): Use
3694 bfd_set_filename.
3695 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3696 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3697
3b00ef10
TT
36982019-09-10 Tom Tromey <tromey@adacore.com>
3699
3700 * dwarf-index-write.c (write_psymbols): Extend error message.
3701 (debug_names::insert): Add Ada code.
3702 (debug_names::write_psymbols): Remove Ada check.
3703 (debug_names) <m_string_obstack>: New member.
3704 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3705 (gdb_index_symbol_name_matcher::matches): Remove.
3706 (mapped_index_base::find_name_components_bounds): Add "lang"
3707 parameter.
3708 (mapped_index_base::build_name_components): Also split names
3709 according to Ada syntax.
3710 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3711 type of "match_callback".
3712 (check_match, check_find_bounds_finds)
3713 (dw2_expand_symtabs_matching): Update.
3714 (dw2_debug_names_iterator): Add new constructor.
3715 (dw2_debug_names_map_matching_symbols): New function.
3716 (dw2_debug_names_expand_symtabs_matching): Update.
3717 (dwarf2_debug_names_functions): Use
3718 dw2_debug_names_map_matching_symbols.
3719
aa391654
TT
37202019-09-10 Tom Tromey <tromey@adacore.com>
3721
3722 * dwarf2read.c (dw2_get_file_names_reader): Add the
3723 CU's file name to the results.
3724
b054970d
TT
37252019-09-10 Tom Tromey <tromey@adacore.com>
3726
3727 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3728 map_matching_symbols. Update.
3729 * dwarf2read.c (dw2_map_matching_symbols): Update.
3730 * psymtab.c (match_partial_symbol): Change type; update.
3731 (psym_map_matching_symbols): Likewise.
3732 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3733 type; update.
3734 * symfile.h (struct quick_symbol_functions)
3735 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3736 Remove "match".
3737
6a3dbf1b
TT
37382019-09-10 Tom Tromey <tromey@adacore.com>
3739
3740 * psymtab.c (map_block): Remove.
3741 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3742 * symtab.c (iterate_over_symbols_terminated): New function.
3743 * symtab.c (iterate_over_symbols_terminated): Declare.
3744
6969f124
TT
37452019-09-10 Tom Tromey <tromey@adacore.com>
3746
3747 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3748 * language.h (struct language_defn) <la_iterate_over_symbols>:
3749 Return bool.
3750 * symtab.c (iterate_over_symbols): Return bool.
3751 * symtab.h (iterate_over_symbols): Return bool.
3752
199b4314
TT
37532019-09-10 Tom Tromey <tromey@adacore.com>
3754
3755 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3756 (add_nonlocal_symbols): Update.
3757 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3758 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3759 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3760 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3761 Change type of "callback". Remove "data".
3762
a084a2a6
AT
3763
37642019-09-09 Ali Tamur <tamur@google.com>
3765
3766 * dwarf2read.c (comp_unit_head): Update comment.
3767 (dwarf2_dwo_name): New function declaration.
3768 (dwarf_unit_type_name): New function declaration.
3769 (read_comp_unit_head): Add support for new compilation units,
3770 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3771 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3772 (currently named as "signature") in their header. Also clarify error
3773 messages.
3774 (lookup_dwo_id): New function. Returns the dwo id of the given
3775 compile unit.
3776 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3777 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3778 functions.
3779 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3780 (dwarf2_dwo_name): Get the dwo name if present.
3781 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3782 purposes.
3783
25a2915e
TT
37842019-09-09 Tom Tromey <tom@tromey.com>
3785
3786 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3787
e4df0874
PW
37882019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3789
3790 * python/python.c (do_start_initialization): Make progname_copy static,
3791 to avoid a leak report.
3792
8634b462
TT
37932019-09-08 Tom Tromey <tom@tromey.com>
3794
3795 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3796
c7f839cb
SM
37972019-09-07 Simon Marchi <simon.marchi@efficios.com>
3798
3799 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3800 Change type to gdb::optional<block_enum>.
3801 (dw2_symtab_iter_init): Change block_index parameter type
3802 to gdb::optional<block_enum>.
3803 (dw2_lookup_symbol): Change block_index parameter
3804 type to block_enum.c
3805 (dw2_debug_names_lookup_symbol): Likewise.
3806 * psymtab.c (psym_lookup_symbol): Likewise.
3807 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3808 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3809 Likewise.
3810
ead0e69a
CB
38112019-09-06 Christian Biesinger <cbiesinger@google.com>
3812
3813 * defs.h (relocate_gdb_directory): Change int to bool in
3814 signature and rename flag to relocatable.
3815 * main.c (relocate_path): Likewise.
3816 (relocate_gdb_directory): Likewise.
3817
b16c44de
AM
38182019-09-06 Alan Modra <amodra@gmail.com>
3819
3820 * coffread.c (coff_symfile_read): Constify filename variable.
3821 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3822 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3823 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3824 * solib.c (reload_shared_libraries_1): Likewise.
3825 * symfile.c (reread_symbols): Likewise.
3826 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3827 * solib-darwin.c (darwin_bfd_open): Likewise.
3828 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3829
06ff036e
AB
38302019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3833 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3834
4e962e74
TT
38352019-09-03 Tom Tromey <tromey@adacore.com>
3836
3837 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3838 types.
3839 (has_negatives): Unbias a range type bound.
3840 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3841 * gdbtypes.c (operator==): Handle new field.
3842 (create_range_type): Add "bias" parameter.
3843 (create_static_range_type, resolve_dynamic_range): Update.
3844 * gdbtypes.h (struct range_bounds) <bias>: New member.
3845 (create_range_type): Add bias parameter.
3846 * printcmd.c (print_scalar_formatted): Unbias range types.
3847 * value.c (unpack_long): Unbias range types.
3848 (pack_long): Bias range types.
3849
d90b8f26
AH
38502019-09-02 Alan Hayward <alan.hayward@arm.com>
3851
3852 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3853 probe arguments.
3854
fe01123e
AH
38552019-09-02 Alan Hayward <alan.hayward@arm.com>
3856
3857 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3858 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3859 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3860 (compile_probe_arg): Likewise.
3861 * probe.h (get_argument_count): Likewise.
3862 * solib-svr4.c (solib_event_probe_action): Likewise.
3863 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3864
e661ef01
AH
38652019-09-02 Alan Hayward <alan.hayward@arm.com>
3866
3867 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3868 code to here...
3869 (svr4_create_solib_event_breakpoints): ...from here.
3870
47a536d9
SDJ
38712019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3872
3873 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3874 suffix from warning message.
3875
d6a00eba
TT
38762019-08-30 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-winsource.h (struct tui_source_window_base)
3879 <refresh_all>: Don't declare.
3880 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3881 Remove.
3882 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3883 tui_show_locator_content.
3884 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3885 declare.
3886 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3887 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3888 declare.
3889
55b2657b
TT
38902019-08-30 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3893
12a8555a
TT
38942019-08-30 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3897 Remove unnecessary forward declarations.
3898
900ac242
TT
38992019-08-30 Tom Tromey <tom@tromey.com>
3900
3901 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3902 rerender.
3903 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3904 tui_show_locator_content.
3905
99ab33fb
TT
39062019-08-30 Tom Tromey <tom@tromey.com>
3907
3908 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3909 (tui_locator_window::rerender): Rewrite using body of previous
3910 tui_show_locator_content.
3911
e594a5d1
TT
39122019-08-30 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3915 set_locator_fullname>: New methods.
3916 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3917 Rename from tui_set_locator_fullname.
3918 (tui_locator_window::set_locator_info): Rename from
3919 tui_set_locator_info. Return bool.
3920 (tui_update_locator_fullname, tui_show_frame_info): Update.
3921
715bb467
TT
39222019-08-30 Tom Tromey <tom@tromey.com>
3923
3924 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3925
772f3f03
TT
39262019-08-30 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3929 call touchwin.
3930
108e13ab
TT
39312019-08-30 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-wingeneral.c (box_win): Assume win_info and
3934 win_info->handle cannot be NULL.
3935
cdaa6eb4
TT
39362019-08-30 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3939 refresh_window>: Declare.
3940 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3941 resize.
3942 (tui_data_item_window::rerender): Rename from
3943 tui_display_register.
3944 (tui_data_item_window::refresh_window): New method.
3945 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3946 no-op.
3947
89df7f90
TT
39482019-08-30 Tom Tromey <tom@tromey.com>
3949
3950 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3951 regs_column_count, current_group>: Move later. Now private.
3952 <get_current_group>: New method.
3953 * tui/tui-regs.c (tui_reg_command): Update.
3954 * tui/tui-layout.c (tui_set_layout): Update.
3955
1bf2866a
TT
39562019-08-30 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3959 (tui_data_window::rerender): Don't call
3960 check_and_display_highlight_if_needed.
3961 (tui_data_window::refresh_all): Remove call to
3962 erase_data_content.
3963
0670413d
TT
39642019-08-30 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3967 (tui_data_window::display_registers_from)
3968 (tui_data_window::display_reg_element_at_line)
3969 (tui_data_window::display_registers_from_line): Remove checks of
3970 "empty".
3971
18bb55c7
TT
39722019-08-30 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3975 Don't declare.
3976 * tui/tui-regs.c (tui_data_window::show_registers): Call
3977 rerender.
3978 (tui_data_window::rerender): Rename from display_all_data.
3979 (tui_data_window::rerender): Remove old implementation.
3980
1f6d2f10
TT
39812019-08-30 Tom Tromey <tom@tromey.com>
3982
3983 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3984 text.
3985 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3986
16d01f9c
BW
39872019-08-29 Bernhard Wodok <barto@gmx.net>
3988 Sergio Durigan Junior <sergiodj@redhat.com>
3989
3990 PR win32/24284
3991 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3992
d8f27c60
AB
39932019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3994
3995 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3996 when searching for types.
3997
1f20c35e
AB
39982019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3999
4000 * f-lang.c (f_language_defn): Use f_print_typedef.
4001 * f-lang.h (f_print_typedef): Declare.
4002 * f-typeprint.c (f_print_typedef): Define.
4003
550105b7
CB
40042019-08-27 Christian Biesinger <cbiesinger@google.com>
4005
4006 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4007
4acfdd20
AB
40082019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * cli/cli-utils.c (info_print_options_defs): Delete.
4011 (make_info_print_options_def_group): Delete.
4012 (extract_info_print_options): Delete.
4013 (info_print_command_completer): Delete.
4014 (info_print_args_help): Add extra parameter, and optionally
4015 include text about -n flag.
4016 * cli/cli-utils.h (struct info_print_options): Delete.
4017 (extract_info_print_options): Delete declaration.
4018 (info_print_command_completer): Delete declaration.
4019 (info_print_args_help): Add extra parameter, extend header
4020 comment.
4021 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4022 search_symbols.
4023 * stack.c (struct info_print_options): New type.
4024 (info_print_options_defs): New file scoped variable.
4025 (make_info_print_options_def_group): New static function.
4026 (info_print_command_completer): New static function.
4027 (info_locals_command): Update to use new local functions.
4028 (info_args_command): Likewise.
4029 (_initialize_stack): Add extra parameter to calls to
4030 info_print_args_help.
4031 * symtab.c (search_symbols): Add extra parameter, use this to
4032 possibly excluse non-debug symbols.
4033 (symtab_symbol_info): Add extra parameter, which is passed on to
4034 search_symbols.
4035 (struct info_print_options): New type.
4036 (info_print_options_defs): New file scoped variable.
4037 (make_info_print_options_def_group): New static function.
4038 (info_print_command_completer): New static function.
4039 (info_variables_command): Update to use local functions, and pass
4040 extra parameter through to symtab_symbol_info.
4041 (info_functions_command): Likewise.
4042 (info_types_command): Pass additional argument through to
4043 symtab_symbol_info.
4044 (rbreak_command): Pass extra argument to search_symbols.
4045 (_initialize_symtab): Add extra arguments for calls to
4046 info_print_args_help, and update help text for 'info variables',
4047 'whereis', and 'info functions' commands.
4048 * symtab.h (search_symbols): Add extra argument to declaration.
4049 * NEWS: Mention new flags.
4050
9aa55206
CB
40512019-08-26 Christian Biesinger <cbiesinger@google.com>
4052
4053 * symtab.c (lookup_static_symbol): Call the new function (and move
4054 it down to be next to lookup_global_symbol).
4055 (struct global_sym_lookup_data): Add block_enum member and rename to...
4056 (struct global_or_static_sym_lookup_data): ...this.
4057 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4058 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4059 (lookup_symbol_global_or_static_iterator_cb): ...this.
4060 (lookup_global_or_static_symbol): New function.
4061 (lookup_global_symbol): Call new function.
4062
5c31b358
TV
40632019-08-26 Tom de Vries <tdevries@suse.de>
4064
4065 PR c++/24852
4066 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4067 when pc_probe.prob == NULL.
4068
23c13d42
SM
40692019-08-25 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4072 variable symbol_linkage to symbol_linkage_.
4073
beadd3e8
SM
40742019-08-25 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4077 represent whether the symbol is static, dynamic, or we don't
4078 know.
4079
e3ec872f
YS
40802019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4081
4082 * gdb/rx-tdep.c (rx_register_names): New.
4083 (rx_register_name): Delete.
4084 (rx_psw_type): Delete.
4085 (rx_fpsw_type): Delete.
4086 (rx_register_type): Delete.
4087 (rx_gdbarch_init): Convert target-descriptions.
4088 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4089 * gdb/features/Makefile: Add rx.xml.
4090 * gdb/features/rx.xml: New.
4091 * gdb/features/rx.c: Generated.
4092 * gdb/NEWS: Mention target description support.
4093
d0509ba4
CB
40942019-08-22 Christian Biesinger <cbiesinger@google.com>
4095
4096 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4097 *slot_ptr.
4098
2d41fa11
SDJ
40992019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4100
4101 * configure.ac: Don't check for 'dlfcn.h' (moved to
4102 gdbsupport/common.m4).
4103 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4104 'gdbsupport/'.
4105 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4106 * compile/compile-c-support.c: Include
4107 'gdbsupport/gdb-dlfcn.h'.
4108 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4109 * gdb-dlfcn.c: Move to...
4110 * gdbsupport/gdb-dlfcn.c: ... here.
4111 * gdb-dlfcn.h: Move to...
4112 * gdbsupport/gdb-dlfcn.h: ... here.
4113
de8af808
SL
41142019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4115
4116 * nios2-tdep.c (struct reg_value): Improve comments. Make
4117 the offset field signed.
4118
27204489
CB
41192019-08-22 Christian Biesinger <cbiesinger@google.com>
4120
4121 * python/lib/gdb/__init__.py (_execute_file): New function.
4122 * python/python.c (python_run_simple_file): Call gdb._execute_file
4123 on Windows.
4124
43771869
AB
41252019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4128 all uses as this was never set to anything but a zero value.
4129
26c957f1
PA
41302019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4131
4132 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4133
c07aae6e
CB
41342019-08-21 Christian Biesinger <cbiesinger@google.com>
4135
4136 * tui/tui-data.h (tui_gen_win_info): Add an =default
4137 move constructor, required by some GCC versions.
4138
3960cb7a
JF
41392019-08-21 Jinke Fan <fanjinke51@yeah.net>
4140
4141 * go32-nat.c (go32_sysinfo): Add hygon_p.
4142
04c72a68
TT
41432019-08-20 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4146 line_from_reg_element_no, first_reg_element_no_inline,
4147 display_all_data, delete_data_content_windows,
4148 erase_data_content>: Now private.
4149
072272ce
TT
41502019-08-20 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4153 (tui_unhighlight_win, tui_highlight_win)
4154 (tui_win_info::make_window): Update.
4155 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4156
973961bd
TT
41572019-08-20 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4160 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4161 (MAX_PID_WIDTH): Move to tui-stack.c.
4162 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4163 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4164 (MAX_PID_WIDTH): Move from tui-data.h.
4165
ab0e1f1a
TT
41662019-08-20 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4169 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4170 (box_win): Update.
4171 (tui_gen_win_info::make_window): Rename from tui_make_window.
4172 (tui_win_info::make_window): New method.
4173 (tui_gen_win_info::make_visible): Update.
4174 * tui/tui-source.c (tui_source_window::set_contents): Update.
4175 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4176 (tui_data_window::display_registers_from): Update.
4177 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4178 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4179 Declare.
4180 <can_box>: Remove.
4181 <title>: Remove.
4182 (struct tui_win_info) <make_window>: Declare.
4183 <can_box>: Now virtual.
4184 <title>: New member.
4185 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4186 * tui/tui-command.c (tui_cmd_window::resize): Update.
4187
100c2bf3
TT
41882019-08-20 Tom Tromey <tom@tromey.com>
4189
4190 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4191 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4192 (tui_data_window::check_register_values): Update.
4193
fa4dc567
TT
41942019-08-20 Tom Tromey <tom@tromey.com>
4195
4196 * tui/tui-regs.h (struct tui_data_window): Use
4197 DISABLE_COPY_AND_ASSIGN.
4198 <regs_content>: Change type, removing unique_ptr.
4199 <tui_data_window>: Add move constructor.
4200 * tui/tui-regs.c (tui_data_window::show_registers)
4201 (tui_data_window::show_register_group)
4202 (tui_data_window::display_registers_from)
4203 (tui_data_window::display_registers_from)
4204 (tui_data_window::first_data_item_displayed)
4205 (tui_data_window::delete_data_content_windows)
4206 (tui_data_window::rerender, tui_data_window::refresh_window)
4207 (tui_data_window::check_register_values): Update.
4208
ca02d7c8
TT
42092019-08-20 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4212 show_register_group>: Declare.
4213 (tui_show_register_group): Don't declare.
4214 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4215 tui_show_registers.
4216 (tui_data_window::show_register_group): Rename from
4217 tui_show_register_group.
4218 (tui_data_window::check_register_values, tui_reg_command):
4219 Update.
4220 * tui/tui-layout.c (tui_set_layout): Update.
4221
63356bfd
TT
42222019-08-20 Tom Tromey <tom@tromey.com>
4223
4224 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4225 Declare.
4226 (tui_check_register_values): Don't declare.
4227 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4228 from tui_check_register_values.
4229 * tui/tui-hooks.c (tui_register_changed): Update.
4230
42cc14a7
TT
42312019-08-20 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-regs.c (tui_reg_layout): Move later.
4234 (tui_show_registers): Don't enable TUI mode or change layout.
4235
b9ad3686
TT
42362019-08-20 Tom Tromey <tom@tromey.com>
4237
4238 * tui/tui-regs.h (struct tui_data_item_window)
4239 <~tui_data_item_window>: Remove.
4240 <content>: Now a unique_xmalloc_ptr.
4241 * tui/tui-regs.c (tui_register_format): Return a
4242 unique_xmalloc_ptr.
4243 (tui_get_register): Update.
4244 (~tui_data_item_window): Remove.
4245 (tui_data_window::display_registers_from, tui_display_register):
4246 Update.
4247 * tui/tui-io.h (tui_expand_tabs): Update.
4248 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4249 Remove "col" parameter.
4250
8e114aab
TT
42512019-08-20 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4254 field.
4255 * tui/tui-regs.c (~tui_data_item_window): Update.
4256
1a4f81dd
TT
42572019-08-20 Tom Tromey <tom@tromey.com>
4258
4259 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4260 earlier.
4261
0f8d8876
TT
42622019-08-20 Tom Tromey <tom@tromey.com>
4263
4264 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4265
605dc2c2
TT
42662019-08-20 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui-source.h (struct tui_source_window): Update.
4269 * tui/tui-regs.c (tui_show_registers): Update.
4270 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4271 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4272 (NO_REGS_STRING): Remove defines.
4273
aedbe3bb
CM
42742019-08-20 Conrad Meyer <cem@FreeBSD.org>
4275
4276 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4277 unnecessary thread walk if remote doesn't support the packet.
4278
7ce8f214
TT
42792019-08-19 Tom Tromey <tromey@adacore.com>
4280
4281 * python/py-value.c (value_has_field): Fix indentation.
4282
f21c2bd7
TT
42832019-08-19 Tom Tromey <tromey@adacore.com>
4284
4285 * printcmd.c (do_one_display, info_display_command): Update.
4286 * block.h (contained_in): Return bool. Add allow_nested
4287 parameter.
4288 * block.c (contained_in): Return bool. Add allow_nested
4289 parameter.
4290
d806ea2d
TT
42912019-08-19 Tom Tromey <tom@tromey.com>
4292
4293 * configure: Rebuild.
4294 * configure.ac: Disallow the combination of -static-libstdc++ and
4295 source highlight.
4296 * source-cache.c (get_language_name): Handle rust.
4297 (source_cache::get_source_lines): Ignore highlighting exceptions.
4298
398fdd60
TT
42992019-08-16 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4302 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4303 (struct tui_source_window_base) <make_visible, refresh_window,
4304 resize>: Remove methods.
4305 <execution_info>: Remove field.
4306 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4307 (tui_show_source_line, tui_source_window_base)
4308 (~tui_source_window_base): Update.
4309 (tui_source_window_base::resize)
4310 (tui_source_window_base::make_visible)
4311 (tui_source_window_base::refresh_window): Remove.
4312 (tui_source_window_base::update_exec_info): Update.
4313 * tui/tui-source.c (tui_source_window::set_contents): Update.
4314 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4315
e699d331
TT
43162019-08-16 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4319 deprecated_query_hook.
4320
bb01dbfc
TT
43212019-08-16 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4324 (tui_update_source_windows_with_line): Update.
4325 * tui/tui-source.h (struct tui_source_window)
4326 <show_symtab_source>: Declare.
4327 (tui_show_symtab_source): Don't declare.
4328 * tui/tui-source.c (tui_show_symtab_source): Rename from
4329 tui_show_symtab_source.
4330
81c82c4b
TT
43312019-08-16 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-winsource.h (struct tui_source_window_base)
4334 <set_contents>: Declare.
4335 * tui/tui-winsource.c
4336 (tui_source_window_base::update_source_window_as_is): Update.
4337 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4338 Declare.
4339 (tui_set_source_content): Don't declare.
4340 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4341 tui_set_source_content.
4342 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4343 Declare.
4344 (tui_set_disassem_content): Don't declare.
4345 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4346 tui_set_disassem_content.
4347
2ddaf614
TT
43482019-08-16 Tom Tromey <tom@tromey.com>
4349
4350 * tui/tui-winsource.h (struct tui_source_window_base)
4351 <update_breakpoint_info>: Declare.
4352 (tui_update_breakpoint_info): Don't declare.
4353 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4354 (tui_update_all_breakpoint_info): Update.
4355 (tui_source_window_base::update_breakpoint_info): Rename from
4356 tui_update_breakpoint_info.
4357 (tui_source_window_base::update_exec_info): Update.
4358
017f9828
TT
43592019-08-16 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-winsource.h (struct tui_source_window_base)
4362 <update_source_window>: Declare.
4363 (tui_update_source_window): Don't declare.
4364 * tui/tui-winsource.c
4365 (tui_source_window_base::update_source_window): Rename from
4366 tui_update_source_window.
4367 (tui_source_window_base::rerender): Update.
4368 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4369 * tui/tui-disasm.c (tui_show_disassem)
4370 (tui_show_disassem_and_update_source)
4371 (tui_disasm_window::maybe_update): Update.
4372
ed8358e9
TT
43732019-08-16 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-winsource.h (struct tui_source_window_base)
4376 <update_source_window_as_is>: Declare.
4377 (tui_update_source_window_as_is): Don't declare.
4378 * tui/tui-winsource.c (tui_update_source_window): Update
4379 (tui_source_window_base::update_source_window_as_is): Rename from
4380 tui_update_source_window_as_is.
4381 (tui_source_window_base::refill): Update.
4382 * tui/tui-source.c (tui_show_symtab_source): Update.
4383 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4384 Update.
4385
20149b6b
TT
43862019-08-16 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-winsource.h (tui_update_source_window)
4389 (tui_update_source_window_as_is): Remove "noerror" parameter.
4390 * tui/tui-winsource.c (tui_update_source_window)
4391 (tui_update_source_window_as_is): Remove "noerror" parameter.
4392 (tui_update_source_windows_with_addr)
4393 (tui_update_source_windows_with_line)
4394 (tui_source_window_base::rerender)
4395 (tui_source_window_base::refill): Update.
4396 * tui/tui-source.h (tui_set_source_content)
4397 (tui_show_symtab_source): Remove "noerror" parameter.
4398 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4399 parameter.
4400 (tui_show_symtab_source): Likewise.
4401 (tui_source_window::maybe_update): Update.
4402 * tui/tui-disasm.c (tui_show_disassem)
4403 (tui_show_disassem_and_update_source)
4404 (tui_disasm_window::do_scroll_vertical)
4405 (tui_disasm_window::maybe_update): Update.
4406
2d83e710
TT
44072019-08-16 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui.c (tui_is_window_visible): Update.
4410 * tui/tui-wingeneral.c (tui_make_window)
4411 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4412 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4413 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4414 (tui_set_win_height_command, parse_scrolling_args): Update.
4415 * tui/tui-source.c (tui_source_window::style_changed): Update.
4416 * tui/tui-regs.c (tui_show_registers)
4417 (tui_data_window::first_data_item_displayed)
4418 (tui_data_window::delete_data_content_windows)
4419 (tui_check_register_values, tui_reg_command): Update.
4420 * tui/tui-disasm.c (tui_show_disassem): Update.
4421 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4422 method.
4423 <is_visible>: Remove field.
4424 * tui/tui-data.c (tui_next_win, tui_prev_win)
4425 (tui_delete_invisible_windows): Update.
4426
d4ab829a
TT
44272019-08-16 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-winsource.h (struct tui_source_window_base)
4430 <m_has_locator>: Remove.
4431 * tui/tui-layout.c (show_source_disasm_command, show_data)
4432 (show_source_or_disasm_and_command): Update.
4433
aa7ca1bb
AH
44342019-08-16 Alan Hayward <alan.hayward@arm.com>
4435
4436 * NEWS (Other MI changes): New subsection.
4437 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4438 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4439 * arch-utils.c (default_get_pc_address_flags): New function.
4440 * arch-utils.h (default_get_pc_address_flags): New declaration.
4441 * gdbarch.sh: Add get_pc_address_flags.
4442 * gdbarch.c: Regenerate.
4443 * gdbarch.h: Likewise.
4444 * stack.c (print_pc): New function.
4445 (print_frame_info) (print_frame): Call print_pc.
4446
6eac171f
TV
44472019-08-16 Tom de Vries <tdevries@suse.de>
4448
4449 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4450 print_objfile_section_info.
4451
3df505f6
TT
44522019-08-15 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4455 calling update_cmdwin_start_line.
4456 * tui/tui-winsource.h (struct tui_source_window_base)
4457 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4458 <rerender>: Declare.
4459 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4460 Call rerender.
4461 (tui_source_window_base::set_new_height): Remove.
4462 (tui_source_window_base::rerender): Rename from
4463 do_make_visible_with_new_height.
4464 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4465 resize method.
4466 (tui_win_info::make_invisible_and_set_new_height)
4467 (tui_win_info::make_visible_with_new_height): Remove.
4468 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4469 Declare.
4470 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4471 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4472 do_make_visible_with_new_height>: Don't declare.
4473 <rerender>: Declare.
4474 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4475 set_new_height.
4476 (tui_data_window::do_make_visible_with_new_height): Remove.
4477 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4478 call tui_show_locator_content.
4479 (tui_gen_win_info::resize): Call rerender.
4480 (show_source_or_disasm_and_command): Don't call
4481 tui_show_locator_content.
4482 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4483 method.
4484 (struct tui_win_info) <rerender>: Declare.
4485 <set_new_height, make_invisible_and_set_new_height,
4486 make_visible_with_new_height>: Don't declare.
4487 * tui/tui-data.c (tui_win_list::rerender): New method.
4488 * tui/tui-command.h (struct tui_cmd_window)
4489 <do_make_visible_with_new_height>: Don't declare.
4490 * tui/tui-command.c
4491 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4492
272560b5
TT
44932019-08-15 Tom Tromey <tromey@adacore.com>
4494
4495 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4496 * ada-lang.c (ada_enum_name): Likewise.
4497
08235187
CB
44982019-08-15 Christian Biesinger <cbiesinger@google.com>
4499
4500 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4501 leading underscore.
4502 (GdbOutputErrorFile): Likewise.
4503 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4504 accordingly.
4505 (execute_unwinders): Rename to have a leading underscore.
4506 (auto_load_packages): Likewise.
4507 (global scope): Adjust call to auto_load_packages accordingly.
4508 (GdbSetPythonDirectory): Likewise.
4509 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4510 instead of execute_unwinders.
4511
db502012
TT
45122019-08-15 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4515 (show_data): Don't change window visibility.
4516 (tui_gen_win_info::resize): Remove special case for command
4517 window. Use wresize, when available.
4518 (show_source_or_disasm_and_command): Don't change window
4519 visibility.
4520 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4521 <make_visible>: New method.
4522 * tui/tui-command.c (tui_cmd_window::resize): New method.
4523
3891b65e
TT
45242019-08-15 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4527 (struct tui_source_windows): New.
4528 * tui/tui-winsource.c (tui_display_main): Update.
4529 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4530 (new_height_ok, parse_scrolling_args): Update.
4531 * tui/tui-layout.c (show_layout, show_data): Update.
4532 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4533 (tui_add_to_source_windows): Don't declare.
4534 * tui/tui-data.c (source_windows, tui_source_windows)
4535 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4536
ee556432
TT
45372019-08-15 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4540 Rename from reset.
4541 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4542 * tui/tui-layout.c (show_source_disasm_command, show_data):
4543 Update.
4544 (tui_gen_win_info::resize): Rename.
4545 (show_source_or_disasm_and_command): Update.
4546 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4547 reset.
4548
46f438e3
TT
45492019-08-15 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4552 * tui/tui-interp.c (tui_interp::init): Don't call
4553 tui_initialize_static_data.
4554 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4555
f4ce562c
TT
45562019-08-15 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4559 examine tui_win_list.
4560
c398c3d0
TT
45612019-08-15 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4564 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4565 tui_clear_source_content.
4566 (tui_clear_source_content): Remove.
4567 (tui_source_window_base::do_erase_source_content): Hoist call to
4568 content.clear().
4569 * tui/tui-stack.c (tui_show_frame_info): Don't call
4570 tui_clear_source_content.
4571
e25d2004
TT
45722019-08-15 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-winsource.h (struct tui_source_window_base)
4575 <do_erase_source_content>: New method.
4576 <erase_source_content>: New method.
4577 (tui_erase_source_content): Don't declare.
4578 * tui/tui-winsource.c (tui_clear_source_content): Update.
4579 (tui_source_window_base::do_erase_source_content): Rename from
4580 tui_erase_source_content.
4581 (tui_source_window_base::show_source_content): Update.
4582 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4583 * tui/tui-source.h (struct tui_source_window)
4584 <erase_source_content>: New method.
4585 * tui/tui-disasm.h (struct tui_disasm_window)
4586 <erase_source_content>: New method.
4587
002f15c2
TT
45882019-08-15 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4591 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4592 constructor.
4593 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4594 * tui/tui-source.c (tui_set_source_content): Update.
4595 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4596
c9033fe8
TT
45972019-08-15 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4600 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4601 tui-source.c.
4602 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4603 Declare.
4604 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4605 method.
4606 (tui_source_window::maybe_update): Update.
4607
088f37dd
TT
46082019-08-15 Tom Tromey <tom@tromey.com>
4609
4610 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4611 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4612 tui-disasm.c.
4613 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4614 Declare.
4615 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4616 method.
4617 (tui_disasm_window::maybe_update): Update.
4618
a54700c6
TT
46192019-08-15 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui-winsource.h (struct tui_source_window_base)
4622 <maybe_update>: Declare.
4623 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4624 method.
4625 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4626 Declare.
4627 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4628 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4629 Declare.
4630 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4631
e2a678a5
TT
46322019-08-15 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4635
f2dda477
TT
46362019-08-15 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-wingeneral.c: Include tui-stack.h.
4639 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4640 (struct tui_locator_window): Move from tui-data.h.
4641 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4642 (tui_initialize_static_data): Move from tui-data.c.
4643 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4644 (struct tui_locator_window): Move to tui-stack.c.
4645 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4646 (tui_initialize_static_data): Move to tui-stack.c.
4647
ed4a1084
TT
46482019-08-15 Tom Tromey <tom@tromey.com>
4649
4650 * tui/tui-layout.c (show_source_disasm_command)
4651 (show_source_or_disasm_and_command): Use make_visible method, not
4652 tui_make_window.
4653 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4654 Remove.
4655
65962b20
TT
46562019-08-15 Tom Tromey <tom@tromey.com>
4657
4658 * tui/tui-wingeneral.h (tui_make_window): Update.
4659 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4660 parameter.
4661 (tui_gen_win_info::make_visible): Update.
4662 * tui/tui-regs.c (tui_data_window::display_registers_from):
4663 Update.
4664 * tui/tui-layout.c (show_source_disasm_command)
4665 (show_source_or_disasm_and_command): Update.
4666 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4667 (enum tui_box): Remove.
4668 (struct tui_win_info) <can_box>: New method.
4669 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4670 method.
4671
2208ee91
TV
46722019-08-15 Tom de Vries <tdevries@suse.de>
4673
4674 * linux-nat-trad.c: Include gdbarch.h.
4675
75faf5c4
AH
46762019-08-14 Alan Hayward <alan.hayward@arm.com>
4677
4678 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4679 register sizes.
4680
b1c896b3
TT
46812019-08-14 Tom Tromey <tromey@adacore.com>
4682
4683 * darwin-nat.c: Include gdbarch.h.
4684 * darwin-nat-info.c: Include gdbarch.h.
4685
6405cd73
TT
46862019-08-13 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4689 Remove.
4690 * tui/tui-data.c (tui_initialize_static_data): Update.
4691
5216580d
TT
46922019-08-13 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-winsource.h (struct tui_exec_info_window)
4695 <~tui_exec_info_window, maybe_allocate_content, get_content,
4696 m_content>: Remove.
4697 (struct tui_source_window_base) <set_exec_info_content,
4698 show_exec_info_content>: Don't declare.
4699 * tui/tui-winsource.c
4700 (tui_exec_info_window::maybe_allocate_content): Remove.
4701 (tui_source_window_base::update_exec_info): Rename from
4702 set_exec_info_content.
4703 (tui_source_window_base::show_exec_info_content)
4704 (tui_source_window_base::update_exec_info): Remove.
4705
93858ad3
TT
47062019-08-13 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4709 declare.
4710 * tui/tui-winsource.c (tui_update_source_window_as_is)
4711 (tui_update_source_windows_with_addr, tui_erase_source_content):
4712 Update.
4713 (tui_clear_exec_info_content): Remove.
4714
e321e7ce
TT
47152019-08-13 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4718 declare.
4719 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4720 call tui_erase_exec_info_content.
4721 (tui_clear_exec_info_content): Rename from
4722 tui_erase_exec_info_content.
4723 (tui_clear_exec_info_content): Delete.
4724
8270ac62
TT
47252019-08-13 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-winsource.h (struct tui_source_window_base)
4728 <show_exec_info_content>: Declare.
4729 (tui_show_exec_info_content): Don't declare.
4730 * tui/tui-winsource.c
4731 (tui_source_window_base::show_exec_info_content): Rename from
4732 tui_show_exec_info_content.
4733 (tui_source_window_base::update_exec_info): Update.
4734
7b56485d
TT
47352019-08-13 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4738 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4739 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4740 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4741 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4742 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4743 ... here.
4744
7ba913dc
TT
47452019-08-13 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-winsource.h (struct tui_source_window_base)
4748 <update_exec_info>: Declare.
4749 (tui_update_exec_info): Don't declare.
4750 * tui/tui-winsource.c (tui_update_source_window_as_is)
4751 (tui_source_window_base::refresh_all)
4752 (tui_update_all_breakpoint_info): Update.
4753 (tui_source_window_base::update_exec_info): Rename from
4754 tui_update_exec_info.
4755 * tui/tui-stack.c (tui_show_frame_info): Update.
4756
37a4a131
TT
47572019-08-13 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-winsource.h (struct tui_source_window_base)
4760 <set_exec_info_content>: Declare.
4761 (tui_set_exec_info_content): Don't declare.
4762 * tui/tui-winsource.c
4763 (tui_source_window_base::set_exec_info_content): Rename from
4764 tui_set_exec_info_content.
4765 (tui_update_exec_info): Update.
4766
0bd27e07
TT
47672019-08-13 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-winsource.h (struct tui_source_window_base)
4770 <show_source_content>: Declare.
4771 (tui_show_source_content): Don't declare.
4772 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4773 (tui_source_window_base::show_source_content): Rename from
4774 tui_show_source_content.
4775 (tui_source_window_base::refresh_all): Update.
4776 * tui/tui-layout.c (show_source_disasm_command)
4777 (show_source_or_disasm_and_command): Update.
4778
b4ef5aeb
TT
47792019-08-13 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-winsource.c (tui_erase_source_content)
4782 (tui_show_source_content, tui_source_window_base::refresh_all):
4783 Update.
4784 * tui/tui-wingeneral.h
4785 (tui_check_and_display_highlight_if_needed): Don't declare.
4786 * tui/tui-wingeneral.c
4787 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4788 check_and_display_highlight_if_needed.
4789 * tui/tui-win.c (tui_rehighlight_all)
4790 (tui_win_info::make_visible_with_new_height): Update.
4791 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4792 (tui_data_window::erase_data_content)
4793 (tui_data_window::display_all_data): Update.
4794 * tui/tui-data.h (struct tui_win_info)
4795 <check_and_display_highlight_if_needed>: Declare.
4796
fede5273
TT
47972019-08-13 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-win.c (tui_resize_all): Call
4800 tui_delete_invisible_windows.
4801 * tui/tui-layout.c (show_layout): Call
4802 tui_delete_invisible_windows.
4803 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4804 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4805
22c3f490
TT
48062019-08-13 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4809 tui_add_win_to_layout.
4810
16cb7910
TT
48112019-08-13 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4814 * tui/tui-layout.c (tui_default_win_height): Now static.
4815
cc0c3ffb
TT
48162019-08-13 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4819 single switch.
4820 (show_source_disasm_command, show_source_or_disasm_and_command):
4821 Don't check current layout.
4822
3f3ffe54
TT
48232019-08-13 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-wingeneral.c (make_all_visible): Remove.
4826 (tui_make_all_invisible): Simplify.
4827 * tui/tui-layout.c (tui_make_all_invisible): Move from
4828 tui-wingeneral.c; simplify.
4829 (show_layout): Hoist call to tui_make_all_invisible.
4830 (show_data): Don't call tui_make_all_invisible.
4831
69258091
TT
48322019-08-13 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4835 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4836
62cf57fe
TT
48372019-08-13 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4840 tui-data.c.
4841 (show_source_disasm_command, show_data)
4842 (show_source_or_disasm_and_command): Don't use
4843 tui_set_current_layout_to.
4844 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4845 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4846 tui-layout.c.
4847 (tui_set_current_layout_to): Remove.
4848
2afade5d
TT
48492019-08-13 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-layout.c (tui_set_layout): Update.
4852 * tui/tui-data.h (struct tui_layout_def): Remove.
4853 (tui_layout_def): Don't declare.
4854 * tui/tui-data.c (layout_def): Remove.
4855 (tui_layout_def): Remove.
4856
a3504e96
TT
48572019-08-13 Tom Tromey <tom@tromey.com>
4858
4859 * tui/tui-winsource.h (struct tui_source_window_base)
4860 <clear_detail>: No longer "override".
4861 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4862 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4863 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4864 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4865 Remove.
4866 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4867
29c92911
TT
48682019-08-13 Tom Tromey <tromey@adacore.com>
4869
4870 * tracepoint.c: Don't include readline.h or history.h.
4871
86c6b807
TT
48722019-08-12 Tom Tromey <tom@tromey.com>
4873
4874 * configure: Rebuild.
4875 * configure.ac: Check for readline 7.
4876 * NEWS: Mention readline 7 requirement.
4877 * README: Update.
4878
5db2718c
TT
48792019-08-12 Tom Tromey <tom@tromey.com>
4880
4881 * mingw-hdep.c (gdb_select): Remove readline hack.
4882
dac36daf
PFC
48832019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4884
4885 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4886 when the function fails.
4887
1022c627
AA
48882019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4889
4890 * s390-tdep.c (s390_type_align): New function.
4891 (s390_gdbarch_init): Set it as type_align gdbarch method.
4892
eba4caf2
TV
48932019-08-09 Tom de Vries <tdevries@suse.de>
4894
4895 PR gdb/24591
4896 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4897 pc_low with relocation offset.
4898
123cd851
TT
48992019-08-07 Tom Tromey <tromey@adacore.com>
4900
4901 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4902 (print_frame_args): Update.
4903 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4904 Update.
4905 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4906 * frame.h (struct frame_arg): Add initializers.
4907 <error>: Now a unique_xmalloc_ptr.
4908
3d31bc39
AH
49092019-08-07 Alan Hayward <alan.hayward@arm.com>
4910
4911 * NEWS: Expand the Pointer Authentication entry.
4912 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4913 (aarch64_frame_unmask_lr): ... to this.
4914 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4915 Call aarch64_frame_unmask_lr.
4916 * frame.c (struct frame_info): Add "masked" variable.
4917 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4918 (fprint_frame): Check for masked pc.
4919 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4920 declarations.
4921 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4922 * stack.c (print_frame): Check for masked pc.
4923
0cf9feb9
TT
49242019-08-06 Tom Tromey <tom@tromey.com>
4925
4926 * stabsread.c (patch_block_stabs, read_one_struct_field)
4927 (read_enum_type): Use obstack_strndup.
4928 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4929 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4930 * dwarf2read.c (guess_full_die_structure_name)
4931 (anonymous_struct_prefix): Use obstack_strndup.
4932 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4933 * c-exp.y (yylex): Use obstack_strndup.
4934 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4935 (write_var_or_type): Use obstack_strndup.
4936
efba19b0
TT
49372019-08-06 Tom Tromey <tom@tromey.com>
4938
4939 * symfile.c (reread_symbols): Use obstack_strdup.
4940 * stabsread.c (read_type): Use obstack_strdup.
4941 * gdb_obstack.h (obstack_strdup): New overload.
4942 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4943 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4944 (dwarf2_canonicalize_name): Use obstack_strdup.
4945 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4946 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4947 Use obstack_strdup.
4948
f25102f7
TT
49492019-08-06 Tom Tromey <tom@tromey.com>
4950
4951 * gdb_obstack.h (obstack_strdup): Define.
4952 * gdb_obstack.c (obstack_strdup): Don't define.
4953
021887d8
TT
49542019-08-06 Tom Tromey <tom@tromey.com>
4955
4956 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4957 obstack_strdup.
4958 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4959 obstack_strdup.
4960 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4961 * stabsread.c (common_block_start): Use obstack_strdup.
4962 * objfiles.c (set_objfile_main_name, objfile): Use
4963 obstack_strdup.
4964 * namespace.c (add_using_directive): Use obstack_strdup.
4965 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4966 * jit.c (finalize_symtab): Use obstack_strdup.
4967 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4968 (guess_partial_die_structure_name, partial_die_info::fixup)
4969 (dwarf2_name): Use obstack_strdup.
4970 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4971 obstack_strdup.
4972 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4973 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4974 obstack_strdup.
4975 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4976
d2834edc
PW
49772019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4978
4979 * unittests/help-doc-selftests.c: New file.
4980 * Makefile.in: Add the new file.
4981
590042fc
PW
49822019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4983
4984 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4985 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4986 the full first line, except when FOR_VALUE_PREFIX. In this case,
4987 the trailing '.' is not output, and the first character is uppercased.
4988 (print_help_for_command): Update call to print_doc_line.
4989 (print_doc_of_command): Likewise.
4990 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4991 * cli/cli-option.c (append_indented_doc): Do not append newline.
4992 (build_help_option): Append newline after first appended_indented_doc
4993 only if a second call is done.
4994 (build_help): Append 2 new lines before each option, except the first
4995 one.
4996 * compile/compile.c (_initialize_compile): Add new lines after
4997 %OPTIONS%, when not at the end of the help.
4998 Change help doc or code
4999 producing the help doc to respect the invariants.
5000 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5001 Also removed the new line after 'Options:', as all other commands
5002 do not put an empty line between 'Options:' and the first option.
5003 * printcmd.c (_initialize_printcmd): Likewise.
5004 * stack.c (_initialize_stack): Likewise.
5005 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5006 incorrectly telling COMMAND is optional.
5007 * ada-lang.c (_initialize_ada_language): Change help doc or code
5008 producing the help doc to respect the invariants.
5009 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5010 * breakpoint.c (_initialize_breakpoint): Likewise.
5011 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5012 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5013 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5014 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5015 _initialize_cli_style): Likewise.
5016 * corelow.c (core_target_info): Likewise.
5017 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5018 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5019 * filesystem.c (_initialize_filesystem): Likewise.
5020 * frame.c (_initialize_frame): Likewise.
5021 * gnu-nat.c (add_task_commands): Likewise.
5022 * infcall.c (_initialize_infcall): Likewise.
5023 * infcmd.c (_initialize_infcmd): Likewise.
5024 * interps.c (_initialize_interpreter): Likewise.
5025 * language.c (_initialize_language): Likewise.
5026 * linux-fork.c (_initialize_linux_fork): Likewise.
5027 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5028 * maint.c (_initialize_maint_cmds): Likewise.
5029 * memattr.c (_initialize_mem): Likewise.
5030 * printcmd.c (_initialize_printcmd): Likewise.
5031 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5032 _RegEx): Likewise.
5033 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5034 * record-btrace.c (_initialize_record_btrace): Likewise.
5035 * record-full.c (_initialize_record_full): Likewise.
5036 * record.c (_initialize_record): Likewise.
5037 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5038 * regcache.c (_initialize_regcache): Likewise.
5039 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5040 _initialize_remote): Likewise.
5041 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5042 * serial.c (_initialize_serial): Likewise.
5043 * skip.c (_initialize_step_skip): Likewise.
5044 * source.c (_initialize_source): Likewise.
5045 * stack.c (_initialize_stack): Likewise.
5046 * symfile.c (_initialize_symfile): Likewise.
5047 * symtab.c (_initialize_symtab): Likewise.
5048 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5049 * top.c (init_main): Likewise.
5050 * tracefile-tfile.c (tfile_target_info): Likewise.
5051 * tracepoint.c (_initialize_tracepoint): Likewise.
5052 * tui/tui-win.c (_initialize_tui_win): Likewise.
5053 * utils.c (add_internal_problem_command): Likewise.
5054 * valprint.c (value_print_option_defs): Likewise.
5055
404f2902
FCE
50562019-08-06 Frank Ch. Eigler <fche@redhat.com>
5057
5058 PR build/24886
5059 * configure.ac: Drop enable-libmcheck support.
5060 * configure, config.in: Rebuild.
5061 * libmcheck.m4: Remove.
5062 * acinclude.m4: Don't include it.
5063 * Makefile.in: Don't distribute it.
5064 * top.c (print_gdb_configuration): Don't mention it.
5065
046bebe1
TT
50662019-08-06 Tom Tromey <tom@tromey.com>
5067
5068 * utils.c (set_output_style): Sometimes pass stream to
5069 emit_style_escape.
5070 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5071 * record-btrace.c (btrace_insn_history): Update.
5072 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5073 method.
5074 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5075 Update initializers.
5076 <m_uiout>: New field.
5077 <m_di>: Move lower.
5078 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5079 Remove "uiout" parameter.
5080 (dump_insns): Update.
5081 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5082 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5083
ddbcedf5
CB
50842019-08-06 Christian Biesinger <cbiesinger@google.com>
5085
5086 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5087 (error_in_psymtab_expansion): Likewise.
5088 (lookup_symbol_via_quick_fns): Likewise.
5089 (basic_lookup_transparent_type_quick): Likewise.
5090 (basic_lookup_transparent_type_1): Likewise.
5091
b08b16c8
TT
50922019-08-06 Tom Tromey <tromey@adacore.com>
5093
5094 * source.c (last_source_error): Now bool.
5095 (print_source_lines_base): Make "noprint" bool. Only open
5096 source file when last_source_visited changes.
5097
cb44333d
TT
50982019-08-06 Tom Tromey <tromey@adacore.com>
5099
5100 * annotate.c (annotate_source_line): Use g_source_cache.
5101 * source-cache.c (source_cache::get_plain_source_lines): Change
5102 parameters. Populate m_offset_cache.
5103 (source_cache::ensure): New method.
5104 (source_cache::get_line_charpos): New method.
5105 (extract_lines): Move lower. Change parameters.
5106 (source_cache::get_source_lines): Move lower.
5107 * source-cache.h (class source_cache): Update comment.
5108 <get_line_charpos>: New method.
5109 <get_source_lines>: Update comment.
5110 <clear>: Clear m_offset_cache.
5111 <get_plain_source_lines>: Change parameters.
5112 <ensure>: New method
5113 <m_offset_cache>: New member.
5114 * source.c (forget_cached_source_info_for_objfile): Update.
5115 (info_source_command): Use g_source_cache.
5116 (find_source_lines, open_source_file_with_line_charpos): Remove.
5117 (print_source_lines_base, search_command_helper): Use g_source_cache.
5118 * source.h (open_source_file_with_line_charpos): Don't declare.
5119 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5120 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5121 Use g_source_cache.
5122
872dceaa
TT
51232019-08-06 Tom Tromey <tromey@adacore.com>
5124
5125 * source-cache.c (source_cache::get_plain_source_lines):
5126 Remove "first_line" and "last_line" parameters.
5127 (source_cache::get_source_lines): Cache plain text.
5128 * source-cache.h (class source_cache)
5129 <get_plain_source_lines>: Update.
5130
269249d9
TT
51312019-08-06 Tom Tromey <tromey@adacore.com>
5132
5133 * source-cache.c (extract_lines): No longer a method.
5134 Changed type of parameter. Include final newline.
5135 (selftests::extract_lines_test): New function.
5136 (_initialize_source_cache): Likewise.
5137 * source-cache.h (class source_cache)
5138 <extract_lines>: Don't declare.
5139
c0e8dcd8
TT
51402019-08-06 Tom Tromey <tromey@adacore.com>
5141
5142 * breakpoint.c (init_breakpoint_sal): Update.
5143 (breakpoint): Update.
5144 * breakpoint.h (struct breakpoint) <filter>: Now a
5145 unique_xmalloc_ptr.
5146
0b27c27d
CB
51472019-08-05 Christian Biesinger <cbiesinger@google.com>
5148
5149 * NEWS: Mention dictionary access on blocks.
5150 * python/py-block.c (blpy_getitem): New function.
5151 (block_object_as_mapping): New struct.
5152 (block_object_type): Use new struct for tp_as_mapping field.
5153
4ee94178
CB
51542019-08-05 Christian Biesinger <cbiesinger@google.com>
5155
5156 * objfiles.h (objfile): Add a comment describing partial symbols.
5157
8abfcabc
TT
51582019-08-05 Tom Tromey <tromey@adacore.com>
5159
5160 * compile/compile.c (_initialize_compile): Use _(), not N_().
5161 * thread.c (_initialize_thread): Use _(), not N_().
5162 * stack.c (_initialize_stack): Use _(), not N_().
5163 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5164
2b79f376
SM
51652019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5166
5167 * dwarf2read.c (struct dw2_symtab_iterator):
5168 <want_specific_block>: Remove.
5169 <block_index>: Change type to gdb::optional.
5170 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5171 change type of BLOCK_INDEX parameter to gdb::optional.
5172 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5173 (dw2_lookup_symbol): Don't pass argument for
5174 WANT_SPECIFIC_BLOCK.
5175 (dw2_expand_symtabs_for_function): Don't pass argument for
5176 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5177 (class dw2_debug_names_iterator)
5178 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5179 parameter, change BLOCK_INDEX type to gdb::optional.
5180 <m_want_specific_block>: Remove.
5181 <m_block_index>: Change type to gdb::optional.
5182 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5183 gdb::optional. Re-write in function of gdb::optional.
5184 (dw2_debug_names_lookup_symbol): Don't pass argument for
5185 WANT_SPECIFIC_BLOCK.
5186 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5187 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5188 BLOCK_INDEX.
5189
ae60f04e
PW
51902019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5191
5192 * NEWS: Mention changes to "info sources" command.
5193
28cd9371
PW
51942019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * symtab.c (filename_partial_match_opts): New struct type.
5197 (struct output_source_filename_data): New members
5198 regexp, c_regexp, partial_match.
5199 (output_source_filename): Use new members to decide to print file.
5200 (info_sources_option_defs): New variable.
5201 (make_info_sources_options_def_group, print_info_sources_header,
5202 info_sources_command_completer):
5203 New functions.
5204 (info_sources_command): Read new optional arguments.
5205 (_initialize_symtab): Update info sources help.
5206
ca683e3a
AO
52072019-08-02 Alexandre Oliva <oliva@adacore.com>
5208
5209 * ada-lang.c (exception_support_info_v0): Renamed from...
5210 (default_exception_support_info): ... this. Create new
5211 definition for v1.
5212 (ada_has_this_exception_support): Look up catch_handlers_sym.
5213 (ada_exception_support_info_sniffer): Try v0 after default.
5214
f1264162
TT
52152019-08-01 Tom Tromey <tromey@adacore.com>
5216
5217 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5218 gdbarch.h.
5219
0a7b2485
CB
52202019-08-01 Christian Biesinger <cbiesinger@google.com>
5221
5222 * s12z-tdep.c: Fix include path for s12z-opc.h.
5223
c6bdbeb7
AH
52242019-08-01 Alan Hayward <alan.hayward@arm.com>
5225
5226 * NEWS: Require GNU make 3.82.
5227
a2bd7b82
TT
52282019-07-16 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5231 declare.
5232
aa3b6533
TT
52332019-07-30 Tom Tromey <tromey@adacore.com>
5234
5235 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5236
a1530dc7
KB
52372019-07-30 Kevin Buettner <kevinb@redhat.com>
5238
5239 * printcmd.c (print_address_symbolic): Print negative offsets.
5240 (build_address_symbolic): Force signed arithmetic when computing
5241 offset.
5242
2906593f
CB
52432019-07-30 Christian Biesinger <cbiesinger@google.com>
5244
5245 PR/24474: Add a function to lookup static variables.
5246 * NEWS: Mention this new function.
5247 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5248 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5249 * python/python.c (python_GdbMethods): Add new function.
5250
c620ed88
CB
52512019-07-29 Christian Biesinger <cbiesinger@google.com>
5252
5253 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5254 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5255 (objfpy_lookup_static_symbol): New function.
5256 (objfile_object_methods): Add new functions.
5257
bc4268a5
PW
52582019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5259
5260 * NEWS: Mention 'set|show print frame-info'. Mention new
5261 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5262 backtrace argument. Mention that python frame filtering code
5263 is now consistent with what 'backtrace' command prints.
5264
4b5e8d19
PW
52652019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5266
5267 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5268 comments.
5269 (print_frame_info_auto, print_frame_info_source_line,
5270 print_frame_info_location, print_frame_info_source_and_location,
5271 print_frame_info_location_and_address, print_frame_info_short_location):
5272 New declarations.
5273 (struct frame_print_options): New member print_frame_info.
5274 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5275 * stack.h (get_user_print_what_frame_info): New declaration.
5276 (frame_show_address): New declaration.
5277 * stack.c (print_frame_arguments_choices): New value 'presence'.
5278 (print_frame_info_auto, print_frame_info_source_line,
5279 print_frame_info_location, print_frame_info_source_and_location,
5280 print_frame_info_location_and_address, print_frame_info_short_location,
5281 print_frame_info_choices, print_frame_info_print_what): New definitions.
5282 (print_frame_args): Only print dots for args if print frame-arguments
5283 is 'presence'.
5284 (frame_print_option_defs): New element for "frame-info".
5285 (get_user_print_what_frame_info): New function.
5286 (frame_show_address): Make non static. Move comment to stack.h.
5287 (print_frame_info_to_print_what): New function.
5288 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5289 to decide what to print.
5290 (backtrace_command_1): Handle the new print_frame_arguments_presence
5291 value.
5292 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5293 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5294 (py_print_frame): In non-mi mode, use LOCATION as default for
5295 print_what, similarly to frame information printed directly by
5296 backtrace command. Handle frame-info user option in non MI mode.
5297
6bdfee81
KB
52982019-07-27 Kevin Buettner <kevinb@redhat.com>
5299
5300 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5301 Add case for debugging 32-bit target on 64-bit host. Revise
5302 comment.
5303
98a617f8
KB
53042019-07-27 Kevin Buettner <kevinb@redhat.com>
5305
5306 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5307 instead of find_function_entry_range_from_pc.
5308
567238c9
KB
53092019-07-27 Kevin Buettner <kevinb@redhat.com>
5310
5311 * stack.c (find_frame_funname): Remove code which preferred
5312 minsym over symtab sym in "certain pathological cases".
5313
2dc80cf8
KB
5314 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5315 parameter. Change type of "do_demangle" to bool.
5316 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5317 Pass suitable "prefer_sym_over_minsym" flag to
5318 build_address_symbolic(). Don't output "+" for negative offsets.
5319 * printcmd.c (print_address_symbolic): Update invocation of
5320 build_address_symbolic to include a "prefer_sym_over_minsym"
5321 flag.
5322 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5323 Restrict cases in which use of minimal symbol is preferred to that
5324 of a found symbol. Update comments.
5325
1aff7173
KB
5326 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5327 for entry pc when entry pc is out of range for that FDE.
5328
89b085ac
BC
53292019-07-26 Brian Callahan <bcallah@openbsd.org>
5330
5331 PR gdb/24839:
5332 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5333 type.
5334
f32feb4a
CB
53352019-07-25 Christian Biesinger <cbiesinger@google.com>
5336
5337 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5338 this function's Python signature.
5339
5340
53412019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5342
5343 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5344 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5345 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5346 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5347 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5348
5349
c54e4253
YS
53502019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5351
5352 * h8300-tdep.c (h8300_register_name_common): New.
5353 h8300_register_name): Use h8300_register_name_common.
5354 (h8300s_register_name): Likewise.
5355 (h8300sx_register_name): Likewise.
5356 (h8300h_register_nam): New.
5357 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5358
5359
40eadf04
SP
53602019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5361
5362 * arm-tdep.c (arm_skip_cmse_entry): New function.
5363 (arm_is_sgstubs_section): New function.
5364 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5365
bfa2a36d
TT
53662019-07-22 Tom Tromey <tom@tromey.com>
5367
5368 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5369 Don't self-assign.
5370
a8e9d247
AB
53712019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5372
5373 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5374 type_print.
5375
eb86c5e2
AB
53762019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5379 so that GDB doesn't match any msymbols when searching in the
5380 TYPES_DOMAIN.
5381 (print_symbol_info): Print using typedef_print or type_print based
5382 on the type of the symbol. Add updated FIXME comment moved from...
5383 (_initialize_symtab): ... move and update FIXME comment to above.
5384
a8eab7c6
AB
53852019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * NEWS: Mention adding -q option to "info types".
5388 * symtab.c (struct info_types_options): New struct.
5389 (info_types_options_defs): New variable.
5390 (make_info_types_options_def_group): New function.
5391 (info_types_command): Use gdb::option framework to parse options.
5392 (info_types_command_completer): New function.
5393 (_initialize_symtab): Extend the help text on "info types" and
5394 register command completer.
5395
b4603c34
CB
53962019-07-21 Christian Biesinger <cbiesinger@google.com>
5397
5398 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5399 (lookup_symbol_in_objfile): Change int to block_enum and add a
5400 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5401
c8cdc1e0
CB
54022019-07-20 Christian Biesinger <cbiesinger@google.com>
5403
5404 * MAINTAINERS (Write After Approval): Add self.
5405
01e175fe
AB
54062019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5407
5408 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5409 instruction to the dummy code region.
5410
56f79b63
TT
54112019-07-19 Tom Tromey <tromey@adacore.com>
5412
5413 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5414 (ARGSUSED, PARAMS, __func__): Remove rules.
5415
4c5aa8e0
AH
54162019-07-19 Alan Hayward <alan.hayward@arm.com>
5417
5418 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5419 * features/arm/arm-with-iwmmxt.c: Remove.
5420 * features/arm/arm-with-iwmmxt.xml: Remove.
5421 * features/arm/arm-with-m-fpa-layout.c: Remove.
5422 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5423 * features/arm/arm-with-m-vfp-d16.c: Remove.
5424 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5425 * features/arm/arm-with-m.c: Remove.
5426 * features/arm/arm-with-m.xml: Remove.
5427 * features/arm/arm-with-neon.c: Remove.
5428 * features/arm/arm-with-neon.xml: Remove.
5429 * features/arm/arm-with-vfpv2.c: Remove.
5430 * features/arm/arm-with-vfpv2.xml: Remove.
5431 * features/arm/arm-with-vfpv3.c: Remove.
5432 * features/arm/arm-with-vfpv3.xml: Remove.
5433
f42b2617
AH
54342019-07-19 Alan Hayward <alan.hayward@arm.com>
5435
5436 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5437
f29ec966
AH
54382019-07-19 Alan Hayward <alan.hayward@arm.com>
5439
5440 * arch/aarch32.c (aarch32_create_target_description): Create
5441 target descriptions using features.
5442 * arch/arm.c (arm_create_target_description)
5443 (arm_create_mprofile_target_description): Likewise.
5444 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5445
d105cce5
AH
54462019-07-19 Alan Hayward <alan.hayward@arm.com>
5447
5448 * Makefile.in: Add new files.
5449 * aarch32-tdep.c: New file.
5450 * aarch32-tdep.h: New file.
5451 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5452 Call aarch32_read_description.
5453 * arch/aarch32.c: New file.
5454 * arch/aarch32.h: New file.
5455 * arch/arm.c (arm_create_target_description)
5456 (arm_create_mprofile_target_description): New function.
5457 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5458 (arm_create_target_description)
5459 (arm_create_mprofile_target_description): New declaration.
5460 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5461 read_description functions.
5462 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5463 Likewise.
5464 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5465 * arm-tdep.c (tdesc_arm_list): New variable.
5466 (arm_register_g_packet_guesses): Call create description functions.
5467 (arm_read_description) (arm_read_mprofile_description): New
5468 function.
5469 * arm-tdep.h (arm_read_description)
5470 (arm_read_mprofile_description): Add declaration.
5471 * configure.tgt: Add new files.
5472
afe09f0b
GL
54732019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5474
5475 * top.c (new_ui_command): Open specified terminal just once.
5476
cd215b2e
TT
54772019-07-18 Tom Tromey <tromey@adacore.com>
5478
5479 * symtab.c (main_name): Constify return type.
5480 * symfile.c (set_initial_language): Update.
5481 * symtab.h (main_name): Constify return type.
5482
d8f68fcb
TT
54832019-07-17 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-winsource.c (tui_update_source_window)
5486 (tui_update_source_window_as_is)
5487 (tui_update_source_windows_with_line): Remove return.
5488 * tui/tui-disasm.c (tui_show_disassem)
5489 (tui_show_disassem_and_update_source): Remove return.
5490 * tui/tui.c (tui_reset): Remove return.
5491 * tui/tui-wingeneral.c
5492 (tui_check_and_display_highlight_if_needed): Remove return.
5493
ca5af91e
TT
54942019-07-17 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5497
5104fe36
TT
54982019-07-17 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-winsource.h (struct tui_exec_info_window)
5501 (struct tui_source_window_base): Move from tui-data.h.
5502 * tui/tui-winsource.c: Move many method definitions from
5503 elsewhere. Remove "structuring" comments.
5504 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5505 (tui_source_window_base::refresh_window): Move to
5506 tui-winsource.c.
5507 * tui/tui-win.c (tui_source_window_base::refresh_all)
5508 (tui_source_window_base::update_tab_width)
5509 (tui_source_window_base::set_new_height)
5510 (tui_source_window_base::do_make_visible_with_new_height): Move to
5511 tui-winsource.c.
5512 * tui/tui-source.h: Update.
5513 * tui/tui-source.c (tui_source_window_base::reset): Move to
5514 tui-winsource.c.
5515 * tui/tui-disasm.h: Update.
5516 * tui/tui-data.h (struct tui_exec_info_window): Move to
5517 tui-winsource.h.
5518 (struct tui_source_window_base): Likewise.
5519 * tui/tui-data.c (tui_source_window_base::clear_detail)
5520 (tui_source_window_base, ~tui_source_window_base): Move to
5521 tui-winsource.c.
5522
daa15dde
TT
55232019-07-17 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-win.c (tui_resize_all)
5526 (tui_source_window_base::update_tab_width)
5527 (tui_adjust_win_heights): Update.
5528 (tui_win_info::make_invisible_and_set_new_height): Rename from
5529 make_invisible_and_set_new_height.
5530 * tui/tui-data.h (struct tui_win_info)
5531 <make_invisible_and_set_new_height>: New method.
5532
bfad4537
TT
55332019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui.c: Update.
5536 * tui/tui-source.h (struct tui_source_window): Move from
5537 tui-data.h.
5538 * tui/tui-layout.c: Update.
5539 * tui/tui-disasm.c: Update.
5540 * tui/tui-data.h (struct tui_source_window): Move to
5541 tui-source.h.
5542
88f7e873
TT
55432019-07-17 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5546 tui-data.h.
5547 * tui/tui-data.h (struct tui_disasm_window): Move to
5548 tui-disasm.h.
5549
96bd6233
TT
55502019-07-17 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-regs.h (struct tui_data_item_window): Move from
5553 tui-data.h.
5554 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5555 * tui/tui-data.h (struct tui_data_item_window): Move to
5556 tui-regs.h.
5557 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5558
ce38393b
TT
55592019-07-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui.c: Update.
5562 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5563 (tui_cmd_window::max_height): Move to tui-command.c.
5564 * tui/tui-layout.c: Update.
5565 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5566 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5567 tui-command.c.
5568 * tui/tui-command.h (struct tui_cmd_window): Move from
5569 tui-data.h.
5570 * tui/tui-command.c: Remove "structuring" comments.
5571 (tui_cmd_window::clear_detail)
5572 (tui_cmd_window::do_make_visible_with_new_height)
5573 (tui_cmd_window::max_height): Move from elsewhere.
5574
2d8b51cb
TT
55752019-07-17 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5578 Now static.
5579 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5580 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5581
18ab23af
TT
55822019-07-17 Tom Tromey <tom@tromey.com>
5583
5584 * tui/tui.c: Update.
5585 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5586 tui-regs.c.
5587 * tui/tui-windata.h: Remove file.
5588 * tui/tui-windata.c: Remove file.
5589 * tui/tui-win.c (tui_data_window::set_new_height)
5590 (tui_data_window::do_make_visible_with_new_height): Move to
5591 tui-regs.c.
5592 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5593 * tui/tui-regs.c: Remove "structuring" comments.
5594 (tui_data_window::first_data_item_displayed)
5595 (tui_data_window::delete_data_content_windows)
5596 (tui_data_window::erase_data_content)
5597 (tui_data_window::display_all_data)
5598 (tui_data_window::refresh_all)
5599 (tui_data_window::do_scroll_vertical)
5600 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5601 (tui_data_window::do_make_visible_with_new_height)
5602 (tui_data_window::refresh_window): Move from elsewhere.
5603 (_initialize_tui_regs): Move to end of file.
5604 * tui/tui-layout.c: Update.
5605 * tui/tui-hooks.c: Update.
5606 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5607 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5608 tui-regs.c.
5609 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5610
88b7e7cc
TT
56112019-07-17 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5614 seen.
5615
0fcd3711
TT
56162019-07-17 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-win.c (tui_source_window_base::set_new_height)
5619 (tui_source_window_base::do_make_visible_with_new_height): Use
5620 m_has_locator field directly.
5621 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5622 method.
5623 (struct tui_source_window_base) <has_locator>: Likewise.
5624
4a38112d
TT
56252019-07-17 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5628 Don't declare.
5629 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5630 Remove.
5631 * tui/tui-win.c (tui_source_window_base::set_new_height)
5632 (tui_source_window_base::set_new_height)
5633 (make_invisible_and_set_new_height)
5634 (tui_source_window_base::do_make_visible_with_new_height)
5635 (tui_source_window_base::do_make_visible_with_new_height):
5636 Update.
5637 * tui/tui-layout.c (show_source_disasm_command, show_data)
5638 (show_source_or_disasm_and_command): Update.
5639 * tui/tui-layout.c (show_layout): Update.
5640
09129226
TT
56412019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-layout.c (make_data_window): Remove.
5644 (show_data): Unify creation and re-initialization cases.
5645
4a8a5e84
TT
56462019-07-17 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui-layout.c (make_source_window, make_disasm_window):
5649 Remove.
5650 (show_data): Unify creation and re-initialization cases.
5651
76d2be8e
TT
56522019-07-17 Tom Tromey <tom@tromey.com>
5653
5654 * tui/tui-layout.c (make_command_window): Remove.
5655 (show_source_disasm_command, show_source_or_disasm_and_command):
5656 Unify creation and re-initialization cases.
5657
890b8bde
TT
56582019-07-17 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5661 creation and re-initialization cases.
5662
2cdfa113
TT
56632019-07-17 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-regs.c (tui_get_register): Return void.
5666
8e3cfd09
TT
56672019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5670 Simplify.
5671
f4e04977
TT
56722019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5675 resetting.
5676
0379b883
TT
56772019-07-17 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5680 * tui/tui-regs.c (tui_reg_layout): New function.
5681 (tui_show_registers, tui_reg_command): Use it.
5682 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5683 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5684 parameters.
5685 (tui_layout_command): Remove.
5686
b7fbad91
TT
56872019-07-17 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-layout.h (tui/tui-layout): Return void.
5690 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5691
4e1e56b9
TT
56922019-07-17 Tom Tromey <tom@tromey.com>
5693
5694 * tui/tui-layout.c (show_source_disasm_command, show_data):
5695 Update.
5696 (reset_locator): Remove.
5697 (show_source_or_disasm_and_command): Update.
5698
1e0c09ba
TT
56992019-07-17 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-source.c (tui_source_window_base::reset): Remove
5702 win_type parameter.
5703 * tui/tui-layout.c (make_command_window, make_source_window)
5704 (make_disasm_window, make_data_window)
5705 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5706 (reset_locator, show_source_or_disasm_and_command): Update.
5707 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5708 win_type parameter.
5709 (struct tui_source_window_base) <reset>: Likewise.
5710
1bf605de
TT
57112019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-layout.c (show_source_disasm_command): Use
5714 reset_locator.
5715 (reset_locator): New function.
5716 (init_and_make_win): Remove.
5717 (show_source_or_disasm_and_command): Use reset_locator.
5718
098f9ed4
TT
57192019-07-17 Tom Tromey <tom@tromey.com>
5720
5721 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5722 condition.
5723 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5724 Remove condition.
5725 * tui/tui-source.c (tui_source_window_base::reset): New method.
5726 * tui/tui-layout.c (make_command_window): Don't call
5727 init_and_make_win.
5728 (make_source_window, make_disasm_window): Don't call
5729 make_source_or_disasm_window.
5730 (make_data_window): Don't call init_and_make_win. Change calling
5731 convention.
5732 (show_source_disasm_command, show_data): Simplify.
5733 (make_source_or_disasm_window): Remove.
5734 (show_source_or_disasm_and_command): Simplify.
5735 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5736 (struct tui_source_window_base) <reset>: Likewise.
5737 <execution_info>: Remove initializer.
5738 * tui/tui-data.c (tui_source_window_base): Initialize
5739 execution_info.
5740
80110957
TT
57412019-07-17 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5744 variable.
5745
cf82af05
TT
57462019-07-17 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui.c (tui_rl_other_window): Update.
5749 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5750 superclass method first. Always iterate over regs_content.
5751 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5752 method.
5753 * tui/tui-win.c (tui_set_focus_command): Update.
5754
01aeb396
TT
57552019-07-17 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui-win.c (tui_set_focus_command): Rename from
5758 tui_set_focus. Call tui_enable.
5759 (tui_set_focus_command): Remove.
5760
fd6c75ee
TT
57612019-07-17 Tom Tromey <tom@tromey.com>
5762
5763 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5764 refresh_window.
5765 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5766 touchwin.
5767 (tui_data_window::refresh_window): Call refresh_window on data
5768 items. Always call superclass refresh_window.
5769 (tui_win_info::refresh): Remove.
5770 (tui_source_window_base::refresh_window): Update.
5771 (tui_refresh_all): Update.
5772 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5773 refresh_window.
5774 (show_source_or_disasm_and_command): Likewise.
5775 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5776 (struct tui_source_window_base) <refresh>: Likewise.
5777
f6cc34a9
TT
57782019-07-17 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui-winsource.c (tui_clear_source_content)
5781 (tui_show_source_content): Update.
5782 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5783 whether content is empty.
5784 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5785 Remove.
5786
f31ec9af
TT
57872019-07-17 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5790 window's contents.
5791 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5792 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5793
d1b6f1e5
TT
57942019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5797 (struct tui_data_item_window): Update.
5798
d9743a13
TT
57992019-07-17 Tom Tromey <tom@tromey.com>
5800
5801 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5802 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5803 defines.
5804
caf0bc4e
TT
58052019-07-17 Tom Tromey <tom@tromey.com>
5806
5807 * tui/tui-winsource.h (tui_erase_source_content)
5808 (tui_clear_source_content): Remove "display_prompt" parameter.
5809 * tui/tui-winsource.c (tui_update_source_window_as_is)
5810 (tui_update_source_windows_with_addr): Update.
5811 (tui_clear_source_content): Remove "display_prompt" parameter.
5812 (tui_erase_source_content): Likewise. Simplify.
5813 (tui_show_source_content): Update.
5814 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5815 * tui/tui-stack.c (tui_show_frame_info): Update.
5816 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5817 Remove defines.
5818
9d391078
TT
58192019-07-17 Tom Tromey <tom@tromey.com>
5820
5821 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5822 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5823 parameter.
5824 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5825 parameter.
5826
a38da35d
TT
58272019-07-17 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-winsource.c (tui_clear_source_content)
5830 (tui_show_source_content, tui_show_exec_info_content)
5831 (tui_clear_exec_info_content): Update.
5832 * tui/tui-stack.c (tui_show_locator_content): Update.
5833 (tui_show_frame_info): Update.
5834 * tui/tui-source.h (tui_source_window): Don't declare.
5835 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5836 from tui_source_is_displayed.
5837 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5838 Remove field.
5839 (struct tui_source_window_base) <content_in_use>: New field. Now
5840 bool.
5841 (struct tui_source_window) <showing_source_p>: New method.
5842 (TUI_SRC_WIN): Change cast.
5843 * tui/tui-data.c (tui_initialize_static_data): Update.
5844
c2cd8994
TT
58452019-07-17 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5848 location_matches_p.
5849 * tui/tui-source.c (tui_source_window::location_matches_p): New
5850 method.
5851 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5852 method.
5853 * tui/tui-data.h (struct tui_source_window_base)
5854 <location_matches_p>: New method.
5855 (struct tui_source_window, struct tui_disasm_window)
5856 <location_matches_p>: Likewise.
5857
4dde7b34
TT
58582019-07-17 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui-win.c (tui_set_win_height_command): Rename from
5861 tui_set_win_height.
5862 (tui_set_win_height_command): Remove.
5863
b73dd877
TT
58642019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-source.c (tui_source_window): New constructor. Add
5867 observer.
5868 (~tui_source_window): New destructor.
5869 (tui_source_window::style_changed): New method.
5870 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5871 (tui_attach_detach_observers): Update.
5872 * tui/tui-data.h (struct tui_source_window): Make constructor not
5873 inline. Add destructor.
5874 (struct tui_source_window) <style_changed>: New method.
5875 <m_observable>: New member.
5876
ae2b5380
TT
58772019-07-17 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5880 * tui/tui-win.c (tui_resize_all): Fix typo.
5881
1ce3e844
TT
58822019-07-17 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5885 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5886 (tui_refresh_all): Remove "list" parameter. Use foreach.
5887 * tui/tui-win.c (window_name_completer): Use foreach.
5888 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5889 (update_tab_width): Likewise.
5890 * tui/tui-layout.c (show_layout): Update.
5891 * tui/tui-data.h (class tui_window_iterator): New.
5892 (struct all_tui_windows): New.
5893 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5894
fe3eaf1c
TT
58952019-07-17 Tom Tromey <tom@tromey.com>
5896
5897 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5898 parameter. Don't reference globals.
5899 (tui_reg_command): Update.
5900
368c1354
TT
59012019-07-17 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui-regs.c (tui_show_registers): Simplify.
5904
e80cd204
TT
59052019-07-17 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-regs.c (tui_show_registers): Update.
5908 (tui_show_register_group): Add win_info parameter.
5909
aca2dd16
TT
59102019-07-17 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5913 Rename from tui_display_reg_element_at_line.
5914 (tui_data_window::display_registers_from_line): Update.
5915 * tui/tui-data.h (struct tui_data_window)
5916 <display_reg_element_at_line>: New method.
5917
517e9505
TT
59182019-07-17 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-regs.h (tui_display_registers_from)
5921 (tui_display_registers_from_line): Don't declare.
5922 * tui/tui-windata.c (tui_data_window::display_all_data)
5923 (tui_data_window::refresh_all)
5924 (tui_data_window::do_scroll_vertical): Update.
5925 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5926 from tui_display_registers_from.
5927 (tui_display_reg_element_at_line): Update.
5928 (tui_data_window::display_registers_from_line): Rename from
5929 tui_display_registers_from_line.
5930 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5931 display_registers_from_line>: New methods.
5932
f76d8b19
TT
59332019-07-17 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5936 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5937 from tui_erase_data_content.
5938 (tui_data_window::display_all_data)
5939 (tui_data_window::refresh_all)
5940 (tui_data_window::do_scroll_vertical): Update.
5941 * tui/tui-regs.c (tui_show_registers): Update.
5942 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5943 New method.
5944
b4094625
TT
59452019-07-17 Tom Tromey <tom@tromey.com>
5946
5947 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5948 declare.
5949 * tui/tui-windata.c
5950 (tui_data_window::delete_data_content_windows): Rename from
5951 tui_delete_data_content_windows.
5952 (tui_data_window::display_all_data)
5953 (tui_data_window::do_scroll_vertical): Update.
5954 * tui/tui-data.h (struct tui_data_window)
5955 <delete_data_content_windows>: New method.
5956
c223a729
TT
59572019-07-17 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5960 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5961
50daf268
TT
59622019-07-17 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5965 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5966 from tui_display_all_data.
5967 * tui/tui-win.c
5968 (tui_data_window::do_make_visible_with_new_height): Update.
5969 * tui/tui-regs.c (tui_show_registers): Update.
5970 * tui/tui-layout.c (tui_set_layout): Update.
5971 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5972 method.
5973
df5f8cab
TT
59742019-07-17 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5977 * tui/tui-windata.c (tui_display_data_from): Remove.
5978 (tui_data_window::refresh_all): Update.
5979
80cb6c27
TT
59802019-07-17 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5983 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5984 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5985 tui_display_registers_from_line.
5986 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5987 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5988 "force_display" parameter.
5989
baff0c28
TT
59902019-07-17 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5993 declare.
5994 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5995 Rename from tui_first_reg_element_no_inline.
5996 (tui_display_reg_element_at_line)
5997 (tui_display_registers_from_line): Update.
5998 * tui/tui-data.h (struct tui_data_window)
5999 <first_reg_element_no_inline>: New method.
6000
3b23c5f2
TT
60012019-07-17 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-windata.c (tui_display_data_from)
6004 (tui_data_window::do_scroll_vertical): Update.
6005 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6006 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6007 Rename from tui_line_from_reg_element_no.
6008 (tui_display_registers_from_line): Update.
6009 * tui/tui-data.h (struct tui_data_window)
6010 <line_from_reg_element_no>: New method.
6011
0b5ec218
TT
60122019-07-17 Tom Tromey <tom@tromey.com>
6013
6014 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6015 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6016 tui_last_regs_line_no.
6017 (tui_display_reg_element_at_line)
6018 (tui_display_registers_from_line): Update.
6019 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6020 method.
6021
0807ab7b
TT
60222019-07-17 Tom Tromey <tom@tromey.com>
6023
6024 PR tui/24722:
6025 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6026 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6027 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6028 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6029 (tui_update_breakpoint_info): Likewise.
6030 * tui/tui-hooks.c (tui_event_create_breakpoint)
6031 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6032 Update.
6033
9ad7fdef
TT
60342019-07-17 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6037
5813316f
TT
60382019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.c (tui_update_source_window_as_is)
6041 (tui_update_source_windows_with_addr): Update.
6042 * tui/tui-source.h (tui_set_source_content)
6043 (tui_show_symtab_source): Add "win_info" parameter.
6044 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6045 parameter.
6046 (tui_show_symtab_source): Likewise.
6047
00e264e7
TT
60482019-07-17 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-wingeneral.c
6051 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6052
06210ce4
TT
60532019-07-17 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6056 (struct tui_cmd_window) <can_scroll>: New method.
6057 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6058 method.
6059
381befee
TT
60602019-07-17 Tom Tromey <tromey@adacore.com>
6061
6062 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6063 do_field_signed>: Rename. Change type of "value".
6064 * ui-out.c (ui_out::field_signed): Rename from field_int.
6065 Change type of "value".
6066 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6067 type of "value".
6068 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6069 do_field_int. Change type of "value".
6070 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6071 do_field_int. Change type of "value".
6072 * tracepoint.c (trace_status_mi, tfind_1)
6073 (print_one_static_tracepoint_marker): Update.
6074 * thread.c (print_thread_info_1, print_selected_thread_frame):
6075 Update.
6076 * stack.c (print_frame, print_frame_info): Update.
6077 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6078 Update.
6079 * source.c (print_source_lines_base): Update.
6080 * skip.c (info_skip_command): Update.
6081 * record-btrace.c (btrace_ui_out_decode_error)
6082 (btrace_call_history_src_line): Update.
6083 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6084 Update.
6085 * progspace.c (print_program_space): Update.
6086 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6087 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6088 do_field_int. Change type of "value".
6089 * mi/mi-out.c (mi_ui_out::do_table_begin)
6090 (mi_ui_out::do_table_header): Update.
6091 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6092 type of "value".
6093 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6094 (mi_cmd_data_list_changed_registers, output_register)
6095 (mi_cmd_data_read_memory, mi_load_progress)
6096 (mi_cmd_trace_frame_collected): Update.
6097 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6098 Update.
6099 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6100 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6101 (mi_cmd_var_list_children, varobj_update_one): Update.
6102 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6103 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6104 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6105 * inferior.c (print_inferior): Update.
6106 * gdb_bfd.c (print_one_bfd): Update.
6107 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6108 Update.
6109 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6110 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6111 do_field_int. Change type of "value".
6112 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6113 do_field_int. Change type of "value".
6114 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6115 (print_one_breakpoint_location, print_it_catch_fork)
6116 (print_one_catch_fork, print_it_catch_vfork)
6117 (print_one_catch_vfork, print_it_catch_solib)
6118 (print_it_catch_exec, print_it_ranged_breakpoint)
6119 (print_mention_watchpoint, print_mention_masked_watchpoint)
6120 (bkpt_print_it, update_static_tracepoint): Update.
6121 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6122 * break-catch-syscall.c (print_it_catch_syscall): Update.
6123 * ada-tasks.c (print_ada_task_info): Update.
6124 * ada-lang.c (print_it_exception, print_mention_exception):
6125 Update.
6126
6b78c3f8
AB
61272019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6128
6129 PR breakpoints/24541
6130 * gdbarch.c: Regenerate.
6131 * gdbarch.h: Regenerate.
6132 * gdbarch.sh: Adjust return type and parameter types for
6133 'stap_adjust_register'.
6134 (i386_stap_adjust_register): Adjust signature and return new
6135 register name.
6136 * stap-probe.c (stap_parse_register_operand): Adjust use of
6137 'gdbarch_stap_adjust_register'.
6138
d72a9b85
TT
61392019-07-17 Tom Tromey <tromey@adacore.com>
6140
6141 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6142 declare VEC.
6143 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6144 std::vector.
6145 (struct s390_process_info): Add initializers.
6146 (s390_add_process): Use new.
6147 (s390_linux_nat_target::low_forget_process): Use delete.
6148 (s390_linux_nat_target::low_new_fork)
6149 (s390_linux_nat_target::stopped_by_watchpoint)
6150 (s390_linux_nat_target::low_prepare_to_resume)
6151 (s390_linux_nat_target::insert_watchpoint)
6152 (s390_linux_nat_target::insert_hw_breakpoint)
6153 (s390_linux_nat_target::remove_watchpoint)
6154 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6155
206e6c58
JB
61562019-07-16 John Baldwin <jhb@FreeBSD.org>
6157
6158 * aarch64-fbsd-nat.c: Include regcache.h.
6159 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6160 argument.
6161 (aarch64_fbsd_nat_target::fetch_registers)
6162 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6163 variable.
6164 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6165
cbde90f2
JB
61662019-07-16 John Baldwin <jhb@FreeBSD.org>
6167
6168 * fbsd-nat.c: Include gdbarch.h.
6169
07128006
TT
61702019-07-15 Tom Tromey <tromey@adacore.com>
6171
6172 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6173
1f77b012
TT
61742019-07-15 Tom Tromey <tromey@adacore.com>
6175
6176 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6177 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6178 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6179 * cli-out.c (cli_ui_out::do_field_int): New method.
6180 * ui-out.c (ui_out::field_unsigned): New method.
6181 * symfile.c (generic_load): Use field_unsigned.
6182 (print_transfer_performance): Likewise.
6183 * record-btrace.c (ui_out_field_uint): Remove.
6184 (btrace_call_history_insn_range, btrace_call_history): Use
6185 field_unsigned.
6186 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6187 field_unsigned.
6188 * ui-out.h (class ui_out) <field_unsigned>: New method.
6189 <do_field_unsigned>: Likewise.
6190
33eca680
TT
61912019-07-15 Tom Tromey <tromey@adacore.com>
6192
6193 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6194 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6195 * target.c (flash_erase_command): Use field_string.
6196 * infrun.c (print_signal_received_reason): Use field_string.
6197 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6198 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6199 field_string.
6200 * ada-tasks.c (print_ada_task_info): Use field_string.
6201
ca8d69be
TT
62022019-07-15 Tom Tromey <tromey@adacore.com>
6203
6204 * target.c (flash_erase_command): Use field_core_addr.
6205 * symfile.c (generic_load): Use field_core_addr.
6206 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6207 Use field_core_addr.
6208 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6209 field_core_addr.
6210
0d4e84ed
AB
62112019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6214 value if its desired type is smaller than a CORE_ADDR and signed.
6215
9a49df9d
AB
62162019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6217
6218 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6219 of changes to field names, and use new is_reference field to
6220 decide if a property is a reference or not.
6221 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6222 field.
6223 (struct dwarf2_property_baton): Update header comment, rename
6224 'referenced_type' to 'property_type' and update comments.
6225 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6226 default property type, store in property baton, update to take
6227 accound of renamed field.
6228 (read_func_scope): Update call to attr_to_dynamic_prop.
6229 (read_array_type): Likewise.
6230 (dwarf2_per_cu_addr_sized_int_type): New function.
6231 (read_subrange_index_type): Move type finding code to
6232 dwarf2_per_cu_addr_sized_int_type.
6233 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6234 (dwarf2_per_cu_addr_type): New function.
6235 (set_die_type): Update calls to attr_to_dynamic_prop.
6236
b86352cf
AB
62372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6238
6239 * dwarf2read.c (read_subrange_index_type): New function.
6240 (read_subrange_type): Move code into new function and call it.
6241 * gdbtypes.c (create_range_type): Add some asserts.
6242
603490bf
AB
62432019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6246 update return statements.
6247 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6248 declaration, and update comment to match.
6249 * gdbtypes.c (resolve_dynamic_array): Update call to
6250 dwarf2_evaluate_property to match new return type.
6251
592f9d27
AB
62522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * valarith.c (value_subscripted_rvalue): Change lowerbound
6255 parameter type from int to LONGEST.
6256 * value.h (value_subscripted_rvalue): Likewise in declaration.
6257
60cfcb20
AB
62582019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * cli/cli-utils.c (info_print_command_completer): New function.
6261 * cli/cli-utils.h: Add 'completer.h' include, and forward
6262 declaration for 'struct cmd_list_element'.
6263 (info_print_command_completer): Declare.
6264 * stack.c (_initialize_stack): Add completer for 'info locals' and
6265 'info args'.
6266 * symtab.c (_initialize_symtab): Add completer for 'info
6267 variables' and 'info functions'.
6268 * NEWS: Mention completion for additional info commands.
6269
b16507e0
AB
62702019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6271
6272 * cli/cli-utils.c (extract_info_print_args): Delete.
6273 (extract_arg_maybe_quoted): Delete.
6274 (info_print_options_defs): New variable.
6275 (make_info_print_options_def_group): New function.
6276 (extract_info_print_options): Define new function.
6277 * cli/cli-utils.h (extract_info_print_args): Delete.
6278 (struct info_print_options): New structure.
6279 (extract_info_print_options): Declare new function.
6280 * stack.c (info_locals_command): Update to use new
6281 extract_info_print_options, also add a header comment.
6282 (info_args_command): Likewise.
6283 * symtab.c (info_variables_command): Likewise.
6284 (info_functions_command): Likewise.
6285
021d8588
AB
62862019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6287
6288 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6289 to extract string arguments.
6290 * common/common-utils.c (extract_string_maybe_quoted): New function.
6291 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6292
b777eb6d
TT
62932019-07-11 Tom Tromey <tromey@adacore.com>
6294
6295 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6296 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6297 * top.h (gdbinit): Don't declare.
6298 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6299 into...
6300 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6301 * top.c (gdb_init): Don't call init_cli_cmds.
6302 (gdbinit): Remove.
6303 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6304
72ee03ff
TT
63052019-07-11 Tom Tromey <tromey@adacore.com>
6306
6307 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6308 after it has been moved.
6309
00db9531
SM
63102019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * valops.c (value_must_coerce_to_target): Change return type to
6313 bool.
6314 * value.h (value_must_coerce_to_target): Likewise.
6315
f2478a7e
SM
63162019-07-10 Simon Marchi <simon.marchi@efficios.com>
6317
6318 * breakpoint.c (is_hardware_watchpoint): Remove
6319 forward-declaration.
6320 (is_masked_watchpoint): Change return type to bool.
6321 (is_tracepoint): Likewise.
6322 (is_breakpoint): Likewise.
6323 (is_hardware_watchpoint): Likewise.
6324 (is_watchpoint): Likewise.
6325 (is_no_memory_software_watchpoint): Likewise.
6326 (is_catchpoint): Likewise.
6327 (breakpoint_1): Make FILTER parameter's return type bool.
6328 is_masked_watchpoint): Change return type to bool.
6329 (save_breakpoints): Make FILTER parameter's return type bool.
6330 * breakpoint.h (is_breakpoint): Change return type to bool.
6331 (is_watchpoint): Likewise.
6332 (is_catchpoint): Likewise.
6333 (is_tracepoint): Likewise.
6334
0d12e84c
TT
63352019-07-10 Tom Tromey <tom@tromey.com>
6336
6337 * defs.h: Don't include gdbarch.h.
6338 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6339 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6340 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6341 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6342 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6343 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6344 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6345 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6346 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6347 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6348 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6349 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6350 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6351 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6352 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6353 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6354 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6355 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6356 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6357 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6358 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6359 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6360 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6361 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6362 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6363 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6364 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6365
f06f1252
TT
63662019-07-10 Tom Tromey <tromey@adacore.com>
6367
6368 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6369 * breakpoint.c (init_ada_exception_breakpoint): Register as
6370 bp_catchpoint.
6371 (print_one_breakpoint_location, print_one_breakpoint): Use
6372 is_ada_exception_catchpoint.
6373 * ada-lang.c (class ada_catchpoint_location): Pass
6374 bp_loc_software_breakpoint to bp_location constructor.
6375 (is_ada_exception_catchpoint): New function.
6376
7a5d944b
TT
63772019-07-10 Tom Tromey <tromey@adacore.com>
6378
6379 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6380 VEC.
6381 (struct arm_exidx_entry): New method operator<.
6382 (struct arm_exidx_data) <section_maps>: Change type.
6383 (arm_exidx_data_free): Remove.
6384 (arm_exidx_data_key): Change type. Move lower.
6385 (arm_exidx_new_objfile): Update.
6386 (arm_compare_exidx_entries): Remove.
6387 (arm_find_exidx_entry, _initialize_arm_tdep)
6388
48c66e1d
TT
63892019-07-10 Tom Tromey <tromey@adacore.com>
6390
6391 * solib-spu.c (ocl_program_data_key): Change type.
6392 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6393 Update.
6394
a269fbf1
TT
63952019-07-10 Tom Tromey <tromey@adacore.com>
6396
6397 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6398 (struct solib_aix_inferior_data) <library_list>: Change type.
6399 (solib_aix_inferior_data_handle): Change type.
6400 (get_solib_aix_inferior_data): Update.
6401 (solib_aix_free_library_list): Remove.
6402 (library_list_start_library): Update.
6403 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6404 return type.
6405 (solib_aix_get_library_list)
6406 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6407 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6408
c294730c
TT
64092019-07-10 Tom Tromey <tromey@adacore.com>
6410
6411 * solib-dsbt.c (struct dsbt_info): Add initializers.
6412 (solib_dsbt_pspace_data): Change type.
6413 (dsbt_pspace_data_cleanup): Remove.
6414 (get_dsbt_info, _initialize_dsbt_solib): Update.
6415
9d52077d
TT
64162019-07-10 Tom Tromey <tromey@adacore.com>
6417
6418 * spu-tdep.c (spu_overlay_data): Change type.
6419 (spu_get_overlay_table, spu_overlay_new_objfile)
6420 (_initialize_spu_tdep): Update.
6421
22a20dca
TT
64222019-07-10 Tom Tromey <tromey@adacore.com>
6423
6424 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6425 destructor.
6426 (dbx_objfile_data_key): Change type and declare later.
6427 (DBX_SYMFILE_INFO): Rewrite.
6428 * dbxread.c (dbx_objfile_data_key): Change type.
6429 (dbx_symfile_init): Update.
6430 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6431 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6432 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6433
cb60f420
TT
64342019-07-10 Tom Tromey <tromey@adacore.com>
6435
6436 * jit.c (jit_program_space_key): Change type. Move lower.
6437 (get_jit_program_space_data): Update.
6438 (jit_program_space_data_cleanup): Remove.
6439 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6440 Update.
6441 (struct jit_program_space_data): Add initializers.
6442
51df2ae3
TT
64432019-07-10 Tom Tromey <tromey@adacore.com>
6444
6445 * solib-darwin.c (struct darwin_info): Add initializers.
6446 (solib_darwin_pspace_data): Change type.
6447 (darwin_pspace_data_cleanup): Remove.
6448 (get_darwin_info, _initialize_darwin_solib): Update.
6449
18101a35
TT
64502019-07-10 Tom Tromey <tromey@adacore.com>
6451
6452 * remote-sim.c (struct sim_inferior_data): Add initializers,
6453 constructor, and destructor.
6454 (sim_inferior_data_key): Change type. Move lower.
6455 (check_for_duplicate_sim_descriptor): Update.
6456 (get_sim_inferior_data): Use new. Update.
6457 (~sim_inferior_data_cleanup): Rename from
6458 sim_inferior_data_cleanup. Simplify.
6459 (gdbsim_close_inferior, simulator_command)
6460 (sim_command_completer, _initialize_remote_sim): Update.
6461 (next_pid, INITIAL_PID): Move earlier.
6462
05b08ac1
TT
64632019-07-10 Tom Tromey <tromey@adacore.com>
6464
6465 * python/python-internal.h (create_thread_object): Return
6466 gdbpy_ref.
6467 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6468 * python/py-inferior.c (struct threadlist_entry): Add
6469 constructor.
6470 <thread_obj>: Now a gdbpy_ref.
6471 (thread_to_thread_object): Update.
6472 (add_thread_object): Use new.
6473 (delete_thread_object): Use delete.
6474 (infpy_threads): Update.
6475 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6476 GIL.
6477
32372d80
TT
64782019-07-10 Tom Tromey <tromey@adacore.com>
6479
6480 * valops.c (value_cast): Specialize error message for Ada.
6481
5c458ae8
SM
64822019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6485
4c462cb0
SM
64862019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6489 bpstat_should_step): Return bool, adjust comments.
6490 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6491 bpstat_should_step): Likewise.
6492
89abbcc2
AH
64932019-07-10 Alan Hayward <alan.hayward@arm.com>
6494
6495 * features/Makefile: Use feature target descriptions for Arm.
6496 * features/arm/arm-core.c: Generate new file.
6497 * features/arm/arm-fpa.c: Likewise.
6498 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6499 * features/arm/arm-m-profile.c: Likewise.
6500 * features/arm/arm-vfpv2.c: Likewise.
6501 * features/arm/arm-vfpv3.c: Likewise.
6502 * features/arm/xscale-iwmmxt.c: Likewise.
6503 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6504
166a82be
AH
65052019-07-10 Alan Hayward <alan.hayward@arm.com>
6506
6507 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6508 ptrace earlier.
6509
9fb4c7e9
AH
65102019-07-10 Alan Hayward <alan.hayward@arm.com>
6511
6512 * features/aarch64-pauth.c: Regenerate.
6513
e2d0f980
SM
65142019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6515
6516 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6517 bool.
6518 (bpstat_what): Use false instead of 0.
6519
a38118e5
PA
65202019-07-09 Pedro Alves <palves@redhat.com>
6521
6522 * break-catch-throw.c (is_exception_catchpoint): New.
6523 * breakpoint.c (print_one_breakpoint_location): New parameter
6524 'raw_loc'. Handle it. Use
6525 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6526 looking at the breakpoint's type.
6527 (print_one_breakpoint): If handling "maint info breakpoints", also
6528 print locations of exception catchpoints.
6529 * breakpoint.h (is_exception_catchpoint): Declare.
6530
cb1e4e32
PA
65312019-07-09 Pedro Alves <palves@redhat.com>
6532
6533 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6534 "addr" field.
6535 (allocate_location_exception_catchpoint): New.
6536 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6537 (initialize_throw_catchpoint_ops): Install
6538 allocate_location_exception_catchpoint as allocate_location
6539 method.
6540 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6541 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6542 bp_loc_other.
6543 (breakpoint_address_is_meaningful): Delete.
6544 (bl_address_is_meaningful): New.
6545 (breakpoint_locations_match): Adjust comment.
6546 (bp_location_from_bp_type): New, factored out of...
6547 (bp_location::bp_location(breakpoint *)): ... this.
6548 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6549 factored out of...
6550 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6551 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6552 breakpoint_address_is_meaningful.
6553 (bp_locations_compare): Adjust comment.
6554 (update_global_location_list): Use bl_address_is_meaningful
6555 instead of breakpoint_address_is_meaningful.
6556 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6557 explicit.
6558 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6559 * python/py-breakpoint.c (bppy_get_location): No longer check
6560 whether location is null.
6561
b58a68fe
PA
65622019-07-09 Pedro Alves <palves@redhat.com>
6563
6564 PR c++/15468
6565 * breakpoint.c (print_one_breakpoint_location): Remove
6566 single-location assert.
6567
268a13a5
TT
65682019-07-09 Tom Tromey <tom@tromey.com>
6569
6570 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6571 * configure: Rebuild.
6572 * configure.ac: Change common to gdbsupport.
6573 * gdbsupport: Rename from common.
6574 * acinclude.m4: Change common to gdbsupport.
6575 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6576 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6577 gdbsupport.
6578 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6579 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6580 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6581 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6582 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6583 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6584 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6585 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6586 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6587 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6588 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6589 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6590 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6591 coff-pe-read.c, command.h, compile/compile-c-support.c,
6592 compile/compile-c.h, compile/compile-cplus-symbols.c,
6593 compile/compile-cplus-types.c, compile/compile-cplus.h,
6594 compile/compile-loc2c.c, compile/compile.c, completer.c,
6595 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6596 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6597 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6598 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6599 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6600 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6601 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6602 features/aarch64-core.c, features/aarch64-fpu.c,
6603 features/aarch64-pauth.c, features/aarch64-sve.c,
6604 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6605 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6606 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6607 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6608 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6609 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6610 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6611 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6612 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6613 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6614 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6615 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6616 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6617 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6618 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6619 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6620 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6621 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6622 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6623 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6624 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6625 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6626 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6627 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6628 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6629 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6630 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6631 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6632 minsyms.c, mips-linux-tdep.c, namespace.h,
6633 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6634 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6635 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6636 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6637 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6638 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6639 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6640 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6641 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6642 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6643 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6644 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6645 procfs.c, producer.c, progspace.h, psymtab.h,
6646 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6647 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6648 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6649 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6650 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6651 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6652 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6653 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6654 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6655 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6656 target-memory.c, target.c, target.h, target/waitstatus.c,
6657 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6658 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6659 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6660 unittests/array-view-selftests.c,
6661 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6662 unittests/common-utils-selftests.c,
6663 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6664 unittests/format_pieces-selftests.c,
6665 unittests/function-view-selftests.c,
6666 unittests/lookup_name_info-selftests.c,
6667 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6668 unittests/mkdir-recursive-selftests.c,
6669 unittests/observable-selftests.c,
6670 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6671 unittests/parse-connection-spec-selftests.c,
6672 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6673 unittests/scoped_fd-selftests.c,
6674 unittests/scoped_mmap-selftests.c,
6675 unittests/scoped_restore-selftests.c,
6676 unittests/string_view-selftests.c, unittests/style-selftests.c,
6677 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6678 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6679 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6680 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6681 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6682 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6683
5b0e2db4
AB
66842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6685
6686 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6687 bool value.
6688 (decode_digits_ordinary): Set explicit_line field in sal.
6689 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6690 symtab_and_line that was set on an explicit line number in
6691 assembler code. Do always update the recorded symtab and line if
6692 we do skip the prologue.
6693
0ba852ab
AB
66942019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * breakpoint.c (set_breakpoint_location_function): Remove
6697 explicit_loc parameter.
6698 (momentary_breakpoint_from_master): Update call to
6699 set_breakpoint_location_function.
6700 (add_location_to_breakpoint): Likewise.
6701
b3a7d171
AB
67022019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6705 required features based on default bfd type when no specific bfd
6706 is present.
6707
1f6f6e21
PW
67082019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * NEWS: Mention that GDB printf and eval commands can now print
6711 C-style and Ada-style convenience var strings without
6712 calling the inferior.
6713 * printcmd.c (printf_c_string): Locally print GDB internal var
6714 instead of transiting via the inferior.
6715 (printf_wide_c_string): Likewise.
6716
67172019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6718
5862c886 6719 PR breakpoints/25011
ea142fbf
AH
6720 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6721
0598af48
TT
67222019-07-04 Tom Tromey <tom@tromey.com>
6723
6724 PR tui/24724:
6725 * tui/tui-winsource.c (tui_clear_source_content): Update.
6726 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6727 (tui_update_breakpoint_info): Update.
6728 (tui_set_exec_info_content): Update.
6729 * tui/tui-source.c (tui_set_source_content_nil): Update.
6730 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6731 has_break.
6732 * tui/tui-data.h (enum tui_bp_flag): New.
6733 (tui_bp_flags): New enum flags type.
6734 (struct tui_source_element) <break_mode>: Change type. Rename
6735 from has_break.
6736 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6737 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6738 constants.
6739 * tui/tui-winsource.h: Fix comment.
6740
350fab54
AH
67412019-07-04 Alan Hayward <alan.hayward@arm.com>
6742
6743 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6744 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6745 (store_fpregs_to_thread)
6746 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6747 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6748 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6749 (IWMMXT_REGS_SIZE): Add define.
6750 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6751 (fetch_vfp_regs, store_vfp_regs)
6752 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6753 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6754
f0452268
AH
67552019-07-04 Alan Hayward <alan.hayward@arm.com>
6756
6757 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6758 defines.
6759 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6760 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6761 (ARM_INT_REGISTER_SIZE): ...to this.
6762 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6763 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6764 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6765 (arm_linux_collect_gregset, supply_nwfpe_register)
6766 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6767 defines.
6768 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6769 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6770 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6771 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6772 (arm_return_in_memory, arm_store_return_value)
6773 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6774 (arm_record_ld_st_multiple): Likewise.
6775 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6776 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6777
e935475c
AH
67782019-07-04 Alan Hayward <alan.hayward@arm.com>
6779
6780 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6781 AARCH64_DISPLACED_MODIFIED_INSNS.
6782 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6783 (aarch64_displaced_step_copy_insn): Likewise.
6784 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6785 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6786 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6787 ARM_DISPLACED_MODIFIED_INSNS.
6788 * arm-tdep.c (arm_gdbarch_init): Likewise.
6789 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6790 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6791 (struct arm_displaced_step_closure): Use
6792 ARM_DISPLACED_MODIFIED_INSNS.
6793
df0bb381
AH
67942019-07-04 Alan Hayward <alan.hayward@arm.com>
6795
6796 * features/Makefile: Remove unused xml files.
6797 * features/aarch64.xml: Remove.
6798 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6799 * features/i386/amd64-avx-avx512.xml: Remove.
6800 * features/i386/amd64-avx-linux.xml: Remove.
6801 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6802 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6803 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6804 * features/i386/amd64-avx-mpx.xml: Remove.
6805 * features/i386/amd64-avx.xml: Remove.
6806 * features/i386/amd64-linux.xml: Remove.
6807 * features/i386/amd64-mpx-linux.xml: Remove.
6808 * features/i386/amd64-mpx.xml: Remove.
6809 * features/i386/amd64.xml: Remove.
6810 * features/i386/i386-avx-avx512-linux.xml: Remove.
6811 * features/i386/i386-avx-avx512.xml: Remove.
6812 * features/i386/i386-avx-linux.xml: Remove.
6813 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6814 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6815 * features/i386/i386-avx-mpx-linux.xml: Remove.
6816 * features/i386/i386-avx-mpx.xml: Remove.
6817 * features/i386/i386-avx.xml: Remove.
6818 * features/i386/i386-linux.xml: Remove.
6819 * features/i386/i386-mmx-linux.xml: Remove.
6820 * features/i386/i386-mmx.xml: Remove.
6821 * features/i386/i386-mpx-linux.xml: Remove.
6822 * features/i386/i386-mpx.xml: Remove.
6823 * features/i386/i386.xml: Remove.
6824 * features/i386/x32-avx-avx512-linux.xml: Remove.
6825 * features/i386/x32-avx-linux.xml: Remove.
6826 * features/i386/x32-linux.xml: Remove.
6827
edd6266a
AH
68282019-07-04 Alan Hayward <alan.hayward@arm.com>
6829
6830 * regformats/aarch64.dat: Remove.
6831 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6832 * regformats/i386/amd64-avx-linux.dat: Remove.
6833 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6834 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6835 * regformats/i386/amd64-linux.dat: Remove.
6836 * regformats/i386/amd64-mpx-linux.dat: Remove.
6837 * regformats/i386/amd64.dat: Remove.
6838 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6839 * regformats/i386/i386-avx-linux.dat: Remove.
6840 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6841 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6842 * regformats/i386/i386-linux.dat: Remove.
6843 * regformats/i386/i386-mmx-linux.dat: Remove.
6844 * regformats/i386/i386-mpx-linux.dat: Remove.
6845 * regformats/i386/i386.dat: Remove.
6846 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6847 * regformats/i386/x32-avx-linux.dat: Remove.
6848 * regformats/i386/x32-linux.dat: Remove.
6849
2b40fda7
AH
68502019-07-04 Alan Hayward <alan.hayward@arm.com>
6851
6852 * aarch64-tdep.c: Remove xml self tests.
6853 * amd64-linux-tdep.c: Likewise.
6854 * amd64-tdep.c: Likewise.
6855 * i386-linux-tdep.c: Likewise.
6856 * i386-tdep.c: Likewise.
6857
5f4ba3e7
PA
68582019-07-03 Pedro Alves <palves@redhat.com>
6859
6860 PR cli/24732
6861 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6862 (pipe_cmd_option_defs): New.
6863 (make_pipe_cmd_options_def_group): New.
6864 (pipe_command): Use gdb::option::process_options.
6865 (pipe_command_completer): New function.
6866 (_initialize_cli_cmds): Install completer for "pipe" command.
6867
3d9be6f5
PA
68682019-07-03 Pedro Alves <palves@redhat.com>
6869
6870 * cli/cli-option.c (union option_value) <string>: New field.
6871 (struct option_def_and_value): Add ctor, move ctor, dtor and
6872 use DISABLE_COPY_AND_ASSIGN.
6873 (option_def_and_value::clear_value): New.
6874 (parse_option, save_option_value_in_ctx, get_val_type_str)
6875 (add_setshow_cmds_for_options): Handle var_string.
6876 * cli-option.h (union option_def::var_address) <string>: New
6877 field.
6878 (struct string_option_def): New.
6879 * maint-test-options.c (struct test_options_opts): Add default
6880 ctor and use DISABLE_COPY_AND_ASSIGN.
6881 <string_opt>: New field.
6882 (test_options_opts::~test_options_opts): New.
6883 (test_options_opts::dump): Also dump "-string".
6884 (test_options_option_defs): Install "string.
6885
41fc454c
PA
68862019-07-03 Pedro Alves <palves@redhat.com>
6887
6888 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6889 option_value with a null enumeration.
6890 (complete_options): Save the option values in the context.
6891 (save_option_value_in_ctx): New, factored out from ...
6892 (process_options): ... here.
6893 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6894 of the function.
6895 * maint-test-options.c (test_options_opts::dump): New, factored
6896 out from ...
6897 (maintenance_test_options_command_mode): ... here.
6898 (maintenance_test_options_command_completion_result): Delete.
6899 (maintenance_test_options_command_completion_text): Update
6900 comment.
6901 (maintenance_show_test_options_completion_result): Change
6902 prototype. Just print
6903 maintenance_test_options_command_completion_text.
6904 (save_completion_result): New.
6905 (maintenance_test_options_completer_mode): Pass options context to
6906 complete_options, and then save a dump.
6907 (_initialize_maint_test_options): Use add_cmd to install "maint
6908 show test-options-completion-result".
6909
fdbc9870
PA
69102019-07-03 Pedro Alves <palves@redhat.com>
6911
6912 * NEWS (New commands): Mention "with" and "maint with".
6913 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6914 (with_command, with_command_completer): New.
6915 (pipe_command): Adjust to new repeat_previous
6916 interface.
6917 (_initialize_cli_cmds): Install the "with" command and its "w"
6918 alias.
6919 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6920 declarations.
6921 * cli/cli-setshow.c (parse_cli_var_uinteger)
6922 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6923 argument strings for all var_types.
6924 (get_setshow_command_value_string): New, factored out from ...
6925 (do_show_command): ... this.
6926 * cli/cli-setshow.h: Include <string>.
6927 (get_setshow_command_value_string): Declare.
6928 * command.h (repeat_previous): Now returns const char *. Adjust
6929 comment.
6930 * maint.c: Include "cli/cli-cmds.h".
6931 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6932 (_initialize_maint_cmds): Register the "maintenance with" command.
6933 * top.c (repeat_previous): Move bits from pipe_command here:
6934 Return the saved command line, if any; error out if there's no
6935 command to relaunch.
6936
c6ac8931
PA
69372019-07-03 Pedro Alves <palves@redhat.com>
6938
6939 * NEWS (New commands): Mention "maint set/show test-settings"
6940 instead of "maint test-settings".
6941 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6942 (maintenance_test_settings_set_list): Rename to ...
6943 (maintenance_set_test_settings_list): ... this.
6944 (maintenance_test_settings_show_list): Rename to ...
6945 (maintenance_show_test_settings_list): ... this.
6946 (maintenance_test_settings_cmd): Delete.
6947 (maintenance_test_settings_set_cmd): ...
6948 (maintenance_set_test_settings_cmd): ... this.
6949 (maintenance_test_settings_show_cmd): ...
6950 (maintenance_show_test_settings_cmd): ... this.
6951 (maintenance_test_settings_show_value_cmd):
6952 (maintenance_show_test_settings_value_cmd): ... this.
6953 (_initialize_maint_test_settings): No longer install the "maint
6954 test-settings" prefix command. Rename "maint test-settings set"
6955 to "maint set test-settings", and "maint test-settings show" to
6956 "maint show test-settings". Adjust all subcommands.
6957
d1fcf2fd
PA
69582019-07-03 Pedro Alves <palves@redhat.com>
6959
6960 * maint-test-settings.c: Fix file's intro comment. Replace all
6961 references to "test-options" with references to "test-settings",
6962 in comments.
6963
970f9d09
PA
69642019-07-03 Pedro Alves <palves@redhat.com>
6965
6966 * maint-test-settings.c (maintenance_test_settings_xxx)
6967 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6968 New.
6969 (maintenance_test_settings_enums): Use them.
6970 (maintenance_test_settings_enum): Default to
6971 maintenance_test_settings_xxx.
6972 (_initialize_maint_test_settings): Initialize
6973 MAINTENANCE_TEST_SETTINGS_FILENAME.
6974
f3869b1a
SM
69752019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * breakpoint.h (remove_breakpoints_inf): Change return type to
6978 void, move function documentation here.
6979 * breakpoint.c (remove_breakpoints_inf): Change return type to
6980 void, move function documentation to header.
6981
54d66006
PA
69822019-07-02 Pedro Alves <palves@redhat.com>
6983
6984 * NEWS (Completion improvements): Mention "info threads".
6985 * thread.c (struct info_threads_opts, info_threads_option_defs)
6986 (make_info_threads_options_def_group): New.
6987 (info_threads_command): Use gdb::option::process_options.
6988 (info_threads_command_completer): New.
6989 (_initialize_thread): Use gdb::option::build_help to build the
6990 help text for "info threads".
6991
854f6088
SM
69922019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * defs.h (generic_load): Move from here...
6995 * symfile.h (generic_load): ... to here. Rename name parameter
6996 to args.
6997 * symfile.c (generic_load): Add comment.
6998
54ee4252
TT
69992019-07-01 Tom Tromey <tromey@adacore.com>
7000
7001 * dwarf2read.c
7002 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7003 declaration of without_params. Fix formatting.
7004
65392b3e
TT
70052019-07-01 Tom Tromey <tromey@adacore.com>
7006
7007 * ada-exp.y (find_primitive_type): Update.
7008 * ada-lang.h (ada_lookup_symbol): Update.
7009 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7010 parameter.
7011 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7012
7d7571f0
SDJ
70132019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7014
7015 PR breakpoints/24541
7016 * gdbarch.c: Regenerate.
7017 * gdbarch.h: Regenerate.
7018 * gdbarch.sh: Add 'stap_adjust_register'.
7019 * i386-tdep.c: Include '<unordered_set>'.
7020 (i386_stap_adjust_register): New function.
7021 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7022 * stap-probe.c (stap_parse_register_operand): Call
7023 'gdbarch_stap_adjust_register'.
7024
5af5392a
SDJ
70252019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7026
7027 PR python/24742
7028 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7029 * python/python.c (do_start_initialization): Use 'xmalloc'
7030 instead of 'PyMem_Malloc'.
7031
10d06d82
TT
70322019-06-28 Tom Tromey <tromey@adacore.com>
7033
7034 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7035 for Ada.
7036
1b7f24cd
TT
70372019-06-27 Tom Tromey <tromey@adacore.com>
7038
7039 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7040 objfile_key.
7041 (arm_find_mapping_symbol, arm_record_special_symbol)
7042 (_initialize_arm_tdep): Update.
7043 (arm_objfile_data_free): Remove.
7044
3d507ff2
TT
70452019-06-27 Tom Tromey <tromey@adacore.com>
7046
7047 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7048 to cp_print_static_field.
7049
762c164d
TT
70502019-06-26 Tom Tromey <tromey@adacore.com>
7051
7052 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7053 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7054 declare.
7055
aa2f9bcf
AH
70562019-06-26 Alan Hayward <alan.hayward@arm.com>
7057
7058 * features/aarch64-core.c (create_feature_aarch64_core):
7059 Regenerate.
7060 * features/aarch64-core.xml: Add cpsr flags.
7061
3426ae57
AH
70622019-06-26 Alan Hayward <alan.hayward@arm.com>
7063
7064 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7065 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7066
4838e44c
SM
70672019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7070 field.
7071 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7072 use.
7073 (arm_record_special_symbol): Don't insert new symbol in sorted
7074 position, push it at the end.
7075
54cc7474
SM
70762019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7079 (arm_mapping_symbol_s): Remove.
7080 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7081 (arm_mapping_symbol_vec): New typedef.
7082 (struct arm_per_objfile): Add constructor.
7083 <section_maps>: Change type to
7084 std::unique_ptr<arm_mapping_symbol_vec[]>.
7085 (arm_compare_mapping_symbols): Remove.
7086 (arm_find_mapping_symbol): Adjust to section_maps type change.
7087 (arm_objfile_data_free): Call delete on arm_per_objfile.
7088 (arm_record_special_symbol): Adjust to section_maps type change.
7089 Allocate arm_per_objfile with new.
7090
b65b566c
PW
70912019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7092
7093 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7094 with the command prefix.
7095
c2fc64f5
TT
70962019-06-25 Tom Tromey <tom@tromey.com>
7097
7098 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7099 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7100
fb54fa76
TT
71012019-06-25 Tom Tromey <tom@tromey.com>
7102
7103 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7104 type.
7105 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7106 protected.
7107
f7952c57
TT
71082019-06-25 Tom Tromey <tom@tromey.com>
7109
7110 * tui/tui-winsource.c
7111 (tui_source_window_base::set_is_exec_point_at): Add check against
7112 LOA_ADDRESS.
7113
17568d78
TT
71142019-06-25 Tom Tromey <tom@tromey.com>
7115
7116 * tui/tui-source.c (tui_set_source_content): Don't check before
7117 xfree.
7118 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7119
53e7cdba
TT
71202019-06-25 Tom Tromey <tom@tromey.com>
7121
7122 * tui/tui-winsource.h (tui_update_source_window_as_is)
7123 (tui_alloc_source_buffer, tui_line_is_displayed)
7124 (tui_addr_is_displayed): Change type of win_info.
7125 * tui/tui-winsource.c (tui_update_source_window_as_is)
7126 (tui_clear_source_content, tui_show_source_line)
7127 (tui_show_source_content, tui_source_window_base::refill)
7128 (tui_source_window_base::set_is_exec_point_at)
7129 (tui_source_window_base::set_is_exec_point_at)
7130 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7131 (tui_alloc_source_buffer, tui_line_is_displayed)
7132 (tui_addr_is_displayed): Change type of win_info. Update.
7133 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7134 (tui_source_window_base::do_make_visible_with_new_height):
7135 Update.
7136 * tui/tui-source.c (tui_set_source_content)
7137 (tui_set_source_content_nil)
7138 (tui_source_window::do_scroll_vertical): Update.
7139 * tui/tui-layout.c (show_layout): Update.
7140 * tui/tui-disasm.c (tui_set_disassem_content)
7141 (tui_disasm_window::do_scroll_vertical): Update.
7142 * tui/tui-data.h (tui_win_content): Remove.
7143 (struct tui_gen_win_info) <content, content_size>: Remove.
7144 (struct tui_source_element): Add initializers and destructor.
7145 (union tui_which_element, struct tui_win_element): Remove.
7146 (struct tui_source_window_base) <content>: New field.
7147 (struct tui_data_window): Remove destructor.
7148 (tui_alloc_content, tui_free_win_content)
7149 (tui_free_all_source_wins_content): Don't declare.
7150 * tui/tui-data.c (tui_initialize_static_data): Update.
7151 (init_content_element, tui_alloc_content): Remove.
7152 (~tui_gen_win_info): Update.
7153 (~tui_data_window, tui_free_all_source_wins_content)
7154 (tui_free_win_content, free_content, free_content_elements):
7155 Remove.
7156
7908abbf
TT
71572019-06-25 Tom Tromey <tom@tromey.com>
7158
7159 * tui/tui-winsource.h (tui_clear_source_content)
7160 (tui_erase_source_content, tui_show_source_content): Change type
7161 of win_info.
7162 * tui/tui-winsource.c (tui_clear_source_content)
7163 (tui_erase_source_content, tui_show_source_content): Change type
7164 of win_info.
7165 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7166 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7167 win_info.
7168 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7169 win_info.
7170 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7171
02c28df0
TT
71722019-06-25 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui-winsource.c (tui_clear_source_content)
7175 (tui_source_window_base::set_is_exec_point_at): Update.
7176 * tui/tui-source.c (tui_set_source_content_nil): Update.
7177 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7178 a bool.
7179 * tui/tui-data.c (init_content_element): Update.
7180
6658b1bf
TT
71812019-06-25 Tom Tromey <tom@tromey.com>
7182
7183 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7184 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7185 * tui/tui-layout.c (init_and_make_win): Update.
7186 * tui/tui.h (enum tui_win_type): Update.
7187 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7188 tui_win_is_auxillary.
7189 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7190 tui_win_is_auxillary.
7191
21e1c91e
TT
71922019-06-25 Tom Tromey <tom@tromey.com>
7193
7194 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7195 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7196 (tui_delete_data_content_windows, tui_display_all_data)
7197 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7198 Update.
7199 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7200 * tui/tui-regs.c (tui_last_regs_line_no)
7201 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7202 (tui_show_registers): Update.
7203 (tui_show_register_group): Return void. Update.
7204 (tui_display_registers_from, tui_display_reg_element_at_line)
7205 (tui_display_registers_from_line, tui_check_register_values):
7206 Update.
7207 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7208 member.
7209 (struct tui_data_window) <regs_content>: Now a std::vector.
7210 <regs_content_count>: Remove.
7211 (tui_add_content_elements, tui_free_data_content): Don't declare.
7212 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7213 (init_content_element): Remove DATA_WIN case. Add assert.
7214 (tui_add_content_elements): Remove.
7215 (tui_data_window): Update.
7216 (tui_free_data_content): Remove.
7217 (free_content_elements): Remove DATA_WIN case.
7218
115ac53b
TT
72192019-06-25 Tom Tromey <tom@tromey.com>
7220
7221 * tui/tui-data.c (tui_data_item_window): Update.
7222 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7223 * tui/tui-windata.c (tui_display_all_data)
7224 (tui_display_data_from_line): Update.
7225 (tui_check_data_values): Remove.
7226 * tui/tui-regs.c (tui_show_register_group)
7227 (tui_display_reg_element_at_line): Update.
7228 * tui/tui-hooks.c (tui_register_changed)
7229 (tui_refresh_frame_and_register_information): Call
7230 tui_check_register_values.
7231 * tui/tui-data.h (struct tui_data_window) <data_content,
7232 data_content_count, data_type>: Remove.
7233 (enum tui_data_type): Remove.
7234
7235 * tui/tui-data.c (tui_data_window::clear_detail)
7236 (~tui_data_window): Update.
7237
eaf9738b
TT
72382019-06-25 Tom Tromey <tom@tromey.com>
7239
7240 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7241 declare.
7242 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7243 Rename from tui_first_data_item_displayed. Update.
7244 (tui_data_window::refresh_all)
7245 (tui_data_window::do_scroll_vertical): Update.
7246 * tui/tui-data.h (struct tui_data_window)
7247 <first_data_item_displayed>: Declare new method.
7248
31ca4723
TT
72492019-06-25 Tom Tromey <tom@tromey.com>
7250
7251 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7252 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7253 contents...
7254 (tui_initialize_static_data): ...here.
7255
41bcff7f
TT
72562019-06-25 Tom Tromey <tom@tromey.com>
7257
7258 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7259 (tui_display_registers_from, tui_check_register_values): Update.
7260 (tui_display_register): Remove win_info parameter; update.
7261 (tui_get_register): Change type of parameters.
7262 * tui/tui-data.h (struct tui_data_element): Remove.
7263 (union tui_which_element) <data>: Remove.
7264 <data_window>: Change type.
7265 (struct tui_data_item_window): New.
7266 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7267 case. Add assert.
7268 (~tui_data_item_window): New destructor.
7269 (free_content_elements): Remove DATA_ITEM_WIN case.
7270
d2802c33
TT
72712019-06-25 Tom Tromey <tom@tromey.com>
7272
7273 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7274 Remove.
7275
dd835f8b
TT
72762019-06-25 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-data.h (struct tui_command_element): Remove.
7279 (union tui_which_element) <command>: Remove.
7280 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7281 assert.
7282 (free_content_elements): Remove CMD_WIN case.
7283
bd7db367
TT
72842019-06-25 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui-layout.c (tui_set_layout): Update.
7287 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7288 * tui/tui-data.c (layout_def): Update.
7289
3add462f
TT
72902019-06-25 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7293 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7294 (tui_source_window_base::set_new_height): Update.
7295 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7296 Update.
7297 (tui_set_locator_fullname, tui_set_locator_info)
7298 (tui_show_frame_info): Update.
7299 * tui/tui-source.c (tui_set_source_content)
7300 (tui_source_is_displayed): Update.
7301 * tui/tui-layout.c (show_source_disasm_command, show_data)
7302 (show_source_or_disasm_and_command): Update.
7303 * tui/tui-disasm.c (tui_set_disassem_content)
7304 (tui_get_begin_asm_address): Update.
7305 * tui/tui-data.h (struct tui_locator_element): Remove.
7306 (union tui_which_element) <locator>: Remove.
7307 (struct tui_locator_window): New.
7308 (tui_locator_win_info_ptr): Change return type.
7309 * tui/tui-data.c (_locator): Change type.
7310 (tui_locator_win_info_ptr): Change return type.
7311 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7312 (tui_alloc_content): Add assert.
7313
489e9d8b
TT
73142019-06-25 Tom Tromey <tom@tromey.com>
7315
7316 * tui/tui-winsource.c
7317 (tui_exec_info_window::maybe_allocate_content): New method.
7318 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7319 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7320 (make_source_or_disasm_window): Add cast.
7321 * tui/tui-data.h (union tui_which_element) <simple_string>:
7322 Remove.
7323 (struct tui_source_info): New.
7324 (struct tui_source_window_base) <execution_info>: Change type.
7325 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7326 case, and add assert.
7327 (tui_alloc_content): Add assert.
7328
c3fabb7d
TT
73292019-06-25 Tom Tromey <tom@tromey.com>
7330
7331 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7332 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7333 * tui/tui-data.c (tui_alloc_win_info): Remove.
7334
bbc228ee
TT
73352019-06-25 Tom Tromey <tom@tromey.com>
7336
7337 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7338 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7339 can_highlight.
7340
5fcee43a
TT
73412019-06-25 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7344 make_visible_with_new_height method.
7345 (tui_win_info::make_visible_with_new_height): New method.
7346 (tui_source_window_base::do_make_visible_with_new_height)
7347 (tui_data_window::do_make_visible_with_new_height)
7348 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7349 (make_visible_with_new_height): Remove.
7350 (tui_resize_all, tui_adjust_win_heights): Use
7351 make_visible_with_new_height method.
7352 * tui/tui-data.h (struct tui_win_info)
7353 <do_make_visible_with_new_height, make_visible_with_new_height>:
7354 New methods.
7355 (struct tui_source_window_base, struct tui_data_window)
7356 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7357 methods.
7358
d83f1fe6
TT
73592019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7362 method.
7363 (update_tab_width): Call update_tab_width method.
7364 * tui/tui-data.h (struct tui_win_info)
7365 (struct tui_source_window_base) <update_tab_width>: New methods.
7366
17374de4
TT
73672019-06-25 Tom Tromey <tom@tromey.com>
7368
7369 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7370 parameter.
7371 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7372 parameter.
7373 (tui_gen_win_info::make_visible): Update.
7374 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7375 parameter.
7376 * tui/tui-data.h (enum tui_box): New enum.
7377 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7378
f936bca2
TT
73792019-06-25 Tom Tromey <tom@tromey.com>
7380
7381 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7382 init_and_make_win for EXEC_INFO_WIN.
7383 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7384 longer inline.
7385 (struct tui_win_info) <~tui_win_info>: Inline.
7386 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7387 Don't declare.
7388 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7389 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7390 Remove.
7391 (tui_initialize_static_data): Update.
7392 (~tui_gen_win_info): Handle more cleanup here.
7393 (~tui_source_window_base): Delete "execution_info".
7394 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7395
d6ba6a11
TT
73962019-06-25 Tom Tromey <tom@tromey.com>
7397
7398 * tui/tui-layout.c (make_command_window): Don't set
7399 can_highlight.
7400 (show_source_disasm_command): Call the reset method.
7401 (show_data): Don't set can_highlight. Call the reset method.
7402 (tui_gen_win_info::reset): Rename from init_gen_win_info
7403 (init_and_make_win): Simplify. Return tui_gen_win_info.
7404 (show_source_or_disasm_and_command): Call the reset method.
7405 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7406 (struct tui_cmd_window): Set can_highlight.
7407
48a3bd16
TT
74082019-06-25 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7411 from make_visible.
7412 (tui_make_visible, tui_make_invisible): Rewrite.
7413 (tui_win_info::make_visible): Remove.
7414 (tui_source_window_base::make_visible): Update.
7415 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7416 method. Moved from...
7417 (struct tui_win_info) <make_visible>: ...here.
7418
c3bd716f
TT
74192019-06-25 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-winsource.c
7422 (tui_source_window_base::do_scroll_horizontal): Remove direction
7423 parameter.
7424 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7425 direction parameter.
7426 * tui/tui-win.c (tui_win_info::forward_scroll)
7427 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7428 (tui_win_info::right_scroll): Update.
7429 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7430 direction parameter.
7431 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7432 direction parameter.
7433 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7434 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7435 Remove direction parameter.
7436 (struct tui_source_window_base, struct tui_source_window)
7437 (struct tui_disasm_window, struct tui_data_window)
7438 (struct tui_cmd_window): Update.
7439
21c32dca
TT
74402019-06-25 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-winsource.h (tui_set_exec_info_content)
7443 (tui_show_exec_info_content, tui_erase_exec_info_content)
7444 (tui_clear_exec_info_content, tui_update_exec_info): Change
7445 argument to tui_source_window_base.
7446 * tui/tui-winsource.c (tui_set_exec_info_content)
7447 (tui_show_exec_info_content, tui_erase_exec_info_content)
7448 (tui_clear_exec_info_content, tui_update_exec_info): Change
7449 argument to tui_source_window_base.
7450
73fbdc65
TT
74512019-06-25 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7454 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7455
33325343
TT
74562019-06-25 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7459 check.
7460
29d2c474
TT
74612019-06-25 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7464 type to void.
7465 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7466 type to void.
7467 * tui/tui-source.c (tui_set_source_content): Update.
7468 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7469
152f3f4b
TT
74702019-06-25 Tom Tromey <tom@tromey.com>
7471
7472 * tui/tui-win.c (window_name_completer, tui_set_focus)
7473 (tui_all_windows_info): Use name method.
7474 * tui/tui-data.h (struct tui_gen_win_info)
7475 (struct tui_source_window, struct tui_disasm_window)
7476 (struct tui_data_window, struct tui_cmd_window) <name>: New
7477 method.
7478 (tui_win_name): Don't declare.
7479 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7480 (tui_win_name): Remove.
7481
be4da588
TT
74822019-06-25 Tom Tromey <tom@tromey.com>
7483
7484 * tui/tui-winsource.h (tui_update_source_window)
7485 (tui_update_source_window_as_is): Change parameter type.
7486 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7487 to be a tui_source_window_base.
7488 (tui_update_source_window_as_is): Likewise.
7489 * tui/tui-win.c (make_visible_with_new_height): Update.
7490
5b81daba
TT
74912019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-winsource.c (tui_erase_source_content)
7494 (tui_show_source_content, tui_show_exec_info_content)
7495 (tui_erase_exec_info_content): Use refresh_window method.
7496 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7497 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7498 from tui_refresh_win.
7499 (tui_data_window::refresh_window): New method.
7500 (tui_win_info::refresh, tui_source_window_base::refresh)
7501 (tui_refresh_all): Use refresh_window method.
7502 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7503 method.
7504 * tui/tui-regs.c (tui_display_register): Call refresh_window
7505 method.
7506 * tui/tui-layout.c (show_source_disasm_command)
7507 (show_source_or_disasm_and_command): Call refresh_window method.
7508 * tui/tui-data.h (struct tui_gen_win_info)
7509 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7510 New method.
7511
cb2ce893
TT
75122019-06-25 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui.c (tui_rl_other_window, tui_enable)
7515 (tui_is_window_visible, tui_get_command_dimension): Update.
7516 * tui/tui-winsource.c (tui_update_source_window_as_is)
7517 (tui_clear_source_content, tui_erase_source_content)
7518 (tui_show_source_line, tui_source_window_base::refill)
7519 (tui_source_window_base::do_scroll_horizontal)
7520 (tui_source_window_base::set_is_exec_point_at)
7521 (tui_update_breakpoint_info, tui_set_exec_info_content)
7522 (tui_alloc_source_buffer, tui_line_is_displayed)
7523 (tui_addr_is_displayed): Update.
7524 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7525 (tui_check_and_display_highlight_if_needed)
7526 (tui_win_info::make_visible, tui_win_info::refresh)
7527 (tui_refresh_all): Update.
7528 * tui/tui-windata.c (tui_first_data_item_displayed)
7529 (tui_delete_data_content_windows, tui_erase_data_content)
7530 (tui_display_all_data, tui_data_window::refresh_all)
7531 (tui_check_data_values): Update.
7532 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7533 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7534 (tui_win_info::backward_scroll, tui_refresh_all_win)
7535 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7536 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7537 (tui_source_window_base::set_new_height)
7538 (tui_data_window::set_new_height)
7539 (make_invisible_and_set_new_height)
7540 (make_visible_with_new_height, new_height_ok)
7541 (parse_scrolling_args): Update.
7542 * tui/tui-stack.c (tui_show_frame_info): Update.
7543 * tui/tui-source.c (tui_set_source_content)
7544 (tui_set_source_content_nil, tui_source_is_displayed)
7545 (tui_source_window::do_scroll_vertical): Update.
7546 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7547 (tui_display_registers_from, tui_display_reg_element_at_line)
7548 (tui_check_register_values, tui_reg_command): Update.
7549 * tui/tui-layout.c (tui_default_win_height)
7550 (show_source_disasm_command, show_data, init_and_make_win)
7551 (show_source_or_disasm_and_command): Update.
7552 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7553 (tui_redisplay_readline, tui_mld_flush)
7554 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7555 (tui_getc): Update.
7556 * tui/tui-disasm.c (tui_set_disassem_content)
7557 (tui_disasm_window::do_scroll_vertical): Update.
7558 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7559 Now virtual.
7560 (struct tui_win_info): Derive from tui_gen_win_info.
7561 <~tui_win_info>: Mark as override.
7562 <generic>: Remove member.
7563 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7564 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7565 (~tui_data_window, ~tui_win_info)
7566 (tui_free_all_source_wins_content): Update.
7567 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7568
ab313b35
TT
75692019-06-25 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-layout.c (init_and_make_win): Use new.
7572 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7573 destructor, initializers.
7574 (tui_alloc_generic_win_info): Don't declare.
7575 * tui/tui-data.c (_locator): Add argument to constructor.
7576 (source_win, disasm_win): New globals.
7577 (exec_info): Remove.
7578 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7579 Update.
7580 (tui_alloc_generic_win_info): Remove.
7581 (init_content_element): Use new.
7582 (tui_win_info::tui_win_info): Update.
7583 (free_content_elements) <case DATA_WIN>: Use delete.
7584
dc2c33e4
TT
75852019-06-25 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7588 * tui/tui-windata.c (tui_first_data_item_displayed)
7589 (tui_delete_data_content_windows): Update.
7590 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7591 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7592 (tui_display_registers_from, tui_check_register_values): Update.
7593 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7594 pointer.
7595 * tui/tui-data.c (init_content_element): Update. Allocate the new
7596 window.
7597 (tui_free_data_content): Update.
7598 (free_content_elements) <case DATA_WIN>: Free the window.
7599
214a5cbe
TT
76002019-06-25 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7603 Update.
7604 * tui/tui-layout.c (make_command_window)
7605 (show_source_disasm_command, show_data, init_and_make_win)
7606 (show_source_or_disasm_and_command): Update.
7607 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7608 method.
7609 <can_highight, is_highlighted>: Now bool.
7610 (tui_set_win_highlight): Don't declare.
7611 * tui/tui-data.c (tui_set_win_highlight): Remove.
7612
8e2daf15
TT
76132019-06-25 Tom Tromey <tom@tromey.com>
7614
7615 * tui/tui-wingeneral.c (make_visible): Remove check of window
7616 type.
7617
8903bd8a
TT
76182019-06-25 Tom Tromey <tom@tromey.com>
7619
7620 * tui/tui-win.c (tui_win_info::max_height)
7621 (tui_cmd_window::max_height): New methods.
7622 (new_height_ok): Call max_height.
7623 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7624 <max_height>: New method.
7625
3f02ce1e
TT
76262019-06-25 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-win.c (tui_source_window_base::set_new_height)
7629 (tui_data_window::set_new_height): New methods.
7630 (make_invisible_and_set_new_height): Call set_new_height method.
7631 * tui/tui-data.h (struct tui_win_info)
7632 (struct tui_source_window_base, struct tui_data_window)
7633 <set_new_height>: New method.
7634
1825f487
TT
76352019-06-25 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7638 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7639 tui_refresh_data_win.
7640 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7641 method.
7642 (tui_refresh_all_win): Call the refresh_all method.
7643 (tui_set_focus): Likewise.
7644 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7645 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7646 Likewise.
7647
ad54d15b
TT
76482019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-winsource.h (tui_refill_source_window)
7651 (tui_set_is_exec_point_at): Don't declare.
7652 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7653 (tui_source_window_base::refill): Rename from
7654 tui_refill_source_window.
7655 (tui_source_window_base::do_scroll_horizontal): Update.
7656 (tui_source_window_base::set_is_exec_point_at): Rename from
7657 tui_set_is_exec_point_at.
7658 (tui_update_all_breakpoint_info): Update.
7659 * tui/tui-stack.c (tui_show_frame_info): Update.
7660 * tui/tui-layout.c (show_data): Add cast.
7661 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7662 * tui/tui-data.h (struct tui_source_window_base) <refill,
7663 set_is_exec_point_at>: New methods.
7664 (tui_source_windows, tui_add_to_source_windows): Update types.
7665 (tui_add_to_source_windows): Remove redundant declaration.
7666 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7667 (tui_source_windows): Change return type.
7668 (tui_clear_source_windows_detail): Update.
7669 (tui_add_to_source_windows): Change type of parameter.
7670 (tui_free_all_source_wins_content): Update.
7671
2042b506
TT
76722019-06-25 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-wingeneral.c (tui_win_info::refresh)
7675 (tui_source_window_base::refresh): New methods.
7676 (tui_refresh_all): Call the refresh method.
7677 * tui/tui-data.h (struct tui_win_info)
7678 (struct tui_source_window_base) <refresh>: New method.
7679
56122977
TT
76802019-06-25 Tom Tromey <tom@tromey.com>
7681
7682 * tui/tui.h (tui_is_window_visible): Return bool.
7683 * tui/tui.c (tui_is_window_visible): Return bool.
7684 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7685 (tui_make_visible, tui_make_invisible)
7686 (tui_win_info::make_visible)
7687 (tui_source_window_base::make_visible, make_all_visible)
7688 (tui_make_all_visible, tui_make_all_invisible): Update.
7689 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7690 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7691 bool.
7692 (struct tui_win_info, struct tui_source_window_base)
7693 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7694 * tui/tui-data.c (tui_init_generic_part): Update.
7695
cda37efb
TT
76962019-06-25 Tom Tromey <tom@tromey.com>
7697
7698 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7699 (tui_source_window_base::make_visible): New methods.
7700 (make_all_visible): Make method call.
7701 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7702 (struct tui_source_window_base, struct tui_cmd_window): Override
7703 make_visible.
7704 (tui_win_is_source_type): Don't declare.
7705 * tui/tui-data.c (tui_win_is_source_type): Remove.
7706
6a0ee02c
TT
77072019-06-25 Tom Tromey <tom@tromey.com>
7708
7709 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7710 NULL check.
7711
63901aec
TT
77122019-06-25 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7715 Inline constructor. Add initializers for members.
7716 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7717 constructors; now inline in class.
7718
ceb13a13
TT
77192019-06-25 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-regs.c (tui_show_registers): Update.
7722 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7723 bool.
7724 * tui/tui-data.c (tui_data_window::clear_detail)
7725 (tui_data_window): Update.
7726
238eb706
TT
77272019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-windata.c (tui_display_all_data)
7730 (tui_display_data_from_line, tui_display_data_from)
7731 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7732 Update.
7733 * tui/tui-regs.c (tui_last_regs_line_no)
7734 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7735 (tui_show_registers, tui_show_register_group)
7736 (tui_display_registers_from, tui_display_reg_element_at_line)
7737 (tui_display_registers_from_line, tui_check_register_values)
7738 (tui_reg_next, tui_reg_prev): Update.
7739 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7740 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7741 tui_data_window.
7742 (struct tui_win_info) <detail>: Remove. Add new fields from
7743 tui_data_info.
7744 (TUI_DATA_WIN): Add cast.
7745 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7746 (~tui_data_window): Simplify.
7747
81491aa0
TT
77482019-06-25 Tom Tromey <tom@tromey.com>
7749
7750 * tui/tui-layout.c (show_source_disasm_command)
7751 (show_source_or_disasm_and_command): Update.
7752 * tui/tui-io.c (update_cmdwin_start_line)
7753 (tui_redisplay_readline): Update.
7754 * tui/tui-data.h (struct tui_command_info): Remove.
7755 (struct tui_win_info) <detail>: Remove command_info member.
7756 (struct tui_data_window) <start_line>: New member, from
7757 tui_command_info.
7758 (TUI_CMD_WIN): Add casts.
7759
e6e41501
TT
77602019-06-25 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-winsource.c (tui_update_source_window)
7763 (tui_refill_source_window)
7764 (tui_source_window_base::do_scroll_horizontal)
7765 (tui_update_breakpoint_info, tui_set_exec_info_content)
7766 (tui_show_exec_info_content, tui_erase_exec_info_content)
7767 (tui_clear_exec_info_content): Update.
7768 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7769 Update.
7770 * tui/tui-win.c (make_invisible_and_set_new_height)
7771 (make_visible_with_new_height): Update.
7772 * tui/tui-source.c (tui_set_source_content)
7773 (tui_show_symtab_source): Update.
7774 * tui/tui-layout.c (extract_display_start_addr)
7775 (show_source_disasm_command, show_data)
7776 (make_source_or_disasm_window)
7777 (show_source_or_disasm_and_command): Update.
7778 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7779 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7780 "gdbarch".
7781 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7782 to tui_source_window_base.
7783 (struct tui_win_info) <detail>: Remove source_info member.
7784 (struct tui_source_window_base) <has_locator>: Inline.
7785 Move contents from tui_source_info; rename has_locator member to
7786 m_has_locator.
7787 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7788 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7789 header file.
7790 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7791 Simplify.
7792 (tui_free_all_source_wins_content): Cast to
7793 tui_source_window_base.
7794
44f0e208
TT
77952019-06-25 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-win.c (make_invisible_and_set_new_height)
7798 (make_visible_with_new_height): Call has_locator method.
7799 * tui/tui-layout.c (show_source_disasm_command, show_data)
7800 (show_source_or_disasm_and_command): Update for bool change.
7801 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7802 (tui_win_info) <has_locator>: New method.
7803 (struct tui_source_window_base) <has_locator>: New method.
7804 (tui_win_has_locator): Don't declare.
7805 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7806 from tui_win_has_locator.
7807 (tui_source_window_base): Use false, not FALSE.
7808
7778b912
TT
78092019-06-25 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7812 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7813 clear_detail method directly.
7814 (tui_clear_win_detail): Remove.
7815
f83d391c
TT
78162019-06-25 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7819 "this", not TUI_DISASM_WIN.
7820
13446e05
TT
78212019-06-25 Tom Tromey <tom@tromey.com>
7822
7823 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7824 declare.
7825 * tui/tui-winsource.c
7826 (tui_source_window_base::do_scroll_horizontal): Rename from
7827 tui_horizontal_source_scroll.
7828 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7829 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7830 from tui_vertical_data_scroll.
7831 * tui/tui-win.h (tui_scroll): Don't declare.
7832 * tui/tui-win.c (tui_win_info::forward_scroll)
7833 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7834 (tui_win_info::right_scroll): Rename and update.
7835 (tui_scroll_forward_command, tui_scroll_backward_command)
7836 (tui_scroll_left_command, tui_scroll_right_command): Update.
7837 (tui_scroll): Remove.
7838 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7839 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7840 from tui_vertical_source_scroll.
7841 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7842 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7843 from tui_vertical_disassem_scroll.
7844 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7845 do_scroll_horizontal>: New methods.
7846 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7847 Likewise.
7848 (struct tui_source_window_base): Add do_scroll_horizontal.
7849 (struct tui_source_window, struct tui_disasm_window): Add
7850 do_scroll_vertical.
7851 (struct tui_data_window, struct tui_cmd_window): Add
7852 do_scroll_horizontal and do_scroll_vertical.
7853 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7854
5cf82909
TT
78552019-06-25 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-data.h (struct tui_source_window_base): New struct.
7858 (struct tui_source_window): Derive from tui_source_window_base.
7859 (struct tui_disasm_window): New struct.
7860 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7861 from tui_source_window::clear_detail.
7862 (tui_source_window_base): Rename from tui_source_window.
7863 (~tui_source_window_base): Rename from ~tui_source_window.
7864 (tui_alloc_win_info): Create a tui_disasm_window.
7865
ee1d42d6
TT
78662019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-data.h (struct tui_source_window)
7869 (struct tui_data_window): Declare destructors.
7870 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7871 destructors.
7872 (tui_win_info): Simplify.
7873
b4eb2452
TT
78742019-06-25 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-winsource.c (tui_display_main)
7877 (tui_update_source_windows_with_addr)
7878 (tui_update_all_breakpoint_info): Update.
7879 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7880 (new_height_ok, parse_scrolling_args): Update.
7881 * tui/tui-stack.c (tui_show_frame_info): Update.
7882 * tui/tui-data.h (struct tui_list): Remove.
7883 (tui_source_windows): Return a reference to a std::vector.
7884 * tui/tui-data.c (source_windows): Now a std::vector.
7885 (tui_source_windows): Change return type.
7886 (tui_clear_source_windows): Rewrite.
7887 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7888 (tui_free_all_source_wins_content): Rewrite.
7889
8761a91b
TT
78902019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7893 (struct tui_data_window, struct tui_cmd_window): Declare
7894 clear_detail method.
7895 * tui/tui-data.c (tui_source_window::clear_detail)
7896 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7897 methods.
7898 (tui_clear_win_detail): Simplify.
7899
0ed69eda
TT
79002019-06-25 Tom Tromey <tom@tromey.com>
7901
7902 * tui/tui-layout.c (make_source_window, make_disasm_window)
7903 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7904 Return the new window.
7905 (show_source_disasm_command, show_data)
7906 (show_source_or_disasm_and_command): Update.
7907
82432e10
TT
79082019-06-25 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7911 parameter. Return the new window.
7912 (show_source_disasm_command): Update and remove NULL check.
7913 (show_source_or_disasm_and_command): Update.
7914
ec328aa5
TT
79152019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7918
33b906ab
TT
79192019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-data.h (struct tui_win_info): Make constructor
7922 protected. Make destructor virtual. Add initializers.
7923 (tui_source_window, tui_data_window, tui_cmd_window): New
7924 classes.
7925 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7926 constructor. Add "type" parameter.
7927 (tui_source_window, tui_data_window, tui_cmd_window): New
7928 constructors.
7929 (tui_alloc_win_info): Instantiate the appropriate subclass.
7930
e7e11af4
TT
79312019-06-25 Tom Tromey <tom@tromey.com>
7932
7933 * tui/tui-win.c (tui_resize_all): Use delete.
7934 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7935 destructor.
7936 (tui_free_window): Don't declare.
7937 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7938 Update.
7939
6792b55e
TT
79402019-06-25 Tom Tromey <tom@tromey.com>
7941
7942 * tui/tui-data.h (struct tui_win_info): Add constructor.
7943 * tui/tui-data.c (tui_alloc_win_info): Use new.
7944 (tui_free_window): Use delete.
7945
f95675e1
TT
79462019-06-22 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7949 declare.
7950 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7951
5bff081c
TT
79522019-06-22 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7955 declare.
7956 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7957
47e3f474
TV
79582019-06-22 Tom de Vries <tdevries@suse.de>
7959
7960 * dwarf2read.c (create_addrmap_from_aranges)
7961 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7962 instead of '%zu'.
7963
fd5866f6
SM
79642019-06-21 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * dwarf2read.h (dwarf2_section_info_def): Remove.
7967 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7968 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7969 std::vector<dwarf2_section_info>.
7970 (struct dwo_file) <~dwo_file>: Remove.
7971 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7972 types field.
7973 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7974 (dwarf2_read_debug_names): Likewise.
7975 (create_debug_types_hash_table): Change parameter type to
7976 array_view, adjust code accordingly.
7977 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7978 (partial_die_info::fixup): Likewise.
7979 (determine_prefix): Likewise.
7980 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7981
fb1eb2f9
SM
79822019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7983
7984 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7985 gdb_bfd_ref_ptr.
7986 <~dwo_file>: Remove call to gdb_bfd_unref.
7987 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7988 gdb_bfd_ref_ptr::get.
7989
51ac9db5
SM
79902019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7991
7992 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7993 type to htab_up.
7994 * dwarf2read.c (struct dwo_file): Initialize fields.
7995 <~dwo_file>: New.
7996 (free_dwo_file): Remove, move content to ~dwo_file.
7997 (struct dwo_file_deleter): Remove.
7998 (dwo_file_up>: Remove custom deleter.
7999 (free_dwo_files): Remove.
8000 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8001 dwo_files.
8002 (process_skeletonless_type_units): Call unique_ptr::get.
8003 (allocate_dwo_file_hash_table): Add deleter to created hash
8004 table. Change return type to htab_up.
8005 (lookup_dwo_file_slot): Don't memset dwo_file, call
8006 unique_ptr::get.
8007 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8008 (create_dwo_unit_in_dwp_v2): Likewise.
8009 (open_and_init_dwo_file): Likewise.
8010 (free_dwo_file_from_slot): Remove.
8011
dc4ccb6f
SM
80122019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8013
8014 * dwarf2read.h (struct dwarf2_section_info) <readin,
8015 is_virtual>: Change type to bool.
8016 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8017 true instead of 1.
8018
e6a1c5cb
TT
80192019-06-19 Tom Tromey <tom@tromey.com>
8020
8021 * tui/tui-data.h (tui_init_content_element): Don't declare.
8022
6f6ffbeb
TT
80232019-06-19 Tom Tromey <tom@tromey.com>
8024
8025 * tui/tui-data.h (tui_init_win_info): Don't declare.
8026
f23f598e
TV
80272019-06-19 Tom de Vries <tdevries@suse.de>
8028
8029 * dwarf2read.h (abstract_to_concrete): Change type to
8030 std::unordered_map<sect_offset, std::vector<sect_offset>,
8031 gdb::hash_enum<sect_offset>>.
8032
680e1bee
TT
80332019-06-19 Tom Tromey <tromey@adacore.com>
8034
8035 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8036 EVAL_AVOID_SIDE_EFFECTS specially.
8037
dcf37923
TT
80382019-06-19 Tom Tromey <tromey@adacore.com>
8039
8040 * source-cache.c (highlighter): New global.
8041 (source_cache::get_source_lines): Create a highlighter on demand.
8042
494986d5
AB
80432019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * defs.h (deprecated_interactive_hook): Delete declaration.
8046 * interps.c (clear_interpreter_hooks): Remove use of
8047 deprecated_interactive_hook.
8048 * top.c (deprecated_interactive_hook): Delete definition.
8049 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8050
3360b6e7
TV
80512019-06-18 Tom de Vries <tdevries@suse.de>
8052
8053 PR gdb/24515
8054 * dwarf2read.h (abstract_to_concrete): Change type from
8055 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8056 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8057 * dwarf2read.c (read_variable): Update.
8058 (dwarf2_fetch_die_loc_sect_off): Update.
8059
310b3441
TV
80602019-06-17 Tom de Vries <tdevries@suse.de>
8061
8062 PR gdb/24617
8063 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8064 accessing parent[parent_len - 1].
8065
ba9777be
PP
80662019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8067
8068 PR gdb/24364
8069 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8070 call dtrace_process_dof with NULL dof.
8071
2b9f6e89
TV
80722019-06-16 Tom de Vries <tdevries@suse.de>
8073
8074 PR gdb/24445
8075 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8076
431b3ead
TT
80772019-06-16 Tom Tromey <tom@tromey.com>
8078
8079 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8080 (make_all_visible): Use address of member.
8081
d04b44a1
TT
80822019-06-16 Tom Tromey <tom@tromey.com>
8083
8084 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8085 (tui_free_window, free_content, free_content_elements): Remove
8086 unnecessary cast.
8087 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8088 cast.
8089 * tui/tui-regs.c (tui_show_register_group)
8090 (tui_display_registers_from, tui_display_reg_element_at_line):
8091 Remove unnecessary cast.
8092
bf5142e7
AB
80932019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * linux-nat.c (normal_mask): Delete.
8096 (_initialize_linux_nat): Don't initialise normal_mask.
8097
c4973306
SM
80982019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8099
8100 PR gdb/24445
8101 * dwarf-index-write.h (write_psymtabs_to_index): Add
8102 dwz_basename parameter.
8103 * dwarf-index-write.c (write_gdbindex): Move file writing to
8104 write_gdbindex_1. Change return type void.
8105 (assert_file_size): Move up, remove filename parameter.
8106 (write_gdbindex_1): New function.
8107 (write_debug_names): Change return type to void, call
8108 assert_file_size.
8109 (struct index_wip_file): New struct.
8110 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8111 file logic to index_wip_file. Write index for dwz file if
8112 needed.
8113 (save_gdb_index_command): Pass basename of dwz file, if present.
8114 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8115 build-id of dwz file, if present.
8116 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8117 (dwarf2_get_dwz_file): Likewise.
8118 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8119 (dwarf2_get_dwz_file): Likewise.
8120
395f9c91
TT
81212019-06-16 Tom Tromey <tom@tromey.com>
8122
8123 * coffread.c (process_coff_symbol): Use xstrdup.
8124 * value.c (create_internalvar): Use xstrdup.
8125
cafb3438
TT
81262019-06-16 Tom Tromey <tom@tromey.com>
8127
8128 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8129 * breakpoint.c (stopin_command, stopat_command)
8130 (until_break_command, decode_location_default): Remove unnecessary
8131 cast.
8132 * utils.c (subset_compare): Remove unnecessary cast.
8133 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8134 cast.
8135 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8136 cast.
8137 * infcmd.c (path_command): Remove unnecessary cast.
8138 * coffread.c (decode_type): Remove unnecessary cast.
8139 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8140 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8141 * tui/tui-stack.c (tui_show_locator_content)
8142 (tui_show_frame_info): Remove unnecessary cast.
8143 * tui/tui-win.c (tui_scroll_forward_command)
8144 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8145 (parse_scrolling_args): Remove unnecessary cast.
8146 * tui/tui-data.c (init_win_info, tui_del_window)
8147 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8148 (free_content_elements): Remove unnecessary cast.
8149 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8150 unnecessary cast.
8151 * tui/tui-source.c (tui_set_source_content)
8152 (tui_vertical_source_scroll): Remove unnecessary cast.
8153 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8154 cast.
8155 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8156 * tui/tui-regs.c (tui_display_registers_from)
8157 (tui_display_register): Remove unnecessary cast.
8158 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8159 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8160 (make_visible): Remove unnecessary cast.
8161 * tui/tui-winsource.c (tui_erase_source_content)
8162 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8163 unnecessary cast.
8164 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8165 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8166 * stabsread.c (read_type, read_array_type, read_range_type):
8167 Remove unnecessary cast.
8168 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8169 (parse_symbol, parse_type, upgrade_type, parse_external)
8170 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8171 unnecessary cast.
8172 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8173
730ead81
TT
81742019-06-16 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-data.c (tui_alloc_generic_win_info)
8177 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8178 checks.
8179
584a927c
AB
81802019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8181 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * f-typeprint.c (f_print_type): Don't return early for not
8184 associated or not allocated types.
8185 (f_type_print_varspec_suffix): Add print_rank parameter and print
8186 ranks of array types in case they dangling.
8187 (f_type_print_base): Add print_rank parameter.
8188
30056ea0
AB
81892019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8190
8191 * NEWS: Mention new MI commands.
8192 * break-catch-throw.c (enum exception_event_kind): Move to
8193 breakpoint.h.
8194 (print_mention_exception_catchpoint): Output text as a single
8195 message.
8196 (catch_exception_command_1): Rename to...
8197 (catch_exception_event): ...this, make non-static, update header
8198 command, and change some parameter types.
8199 (catch_catch_command): Update for changes to
8200 catch_exception_command_1.
8201 (catch_throw_command): Likewise.
8202 (catch_rethrow_command): Likewise.
8203 * breakpoint.c (enum exception_event_kind): Delete.
8204 * breakpoint.h (enum exception_event_kind): Moved here from
8205 break-catch-throw.c.
8206 (catch_exception_event): Declare.
8207 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8208 (mi_cmd_catch_throw): New function.
8209 (mi_cmd_catch_rethrow): New function.
8210 (mi_cmd_catch_catch): New function.
8211 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8212 'catch-catch' entries.
8213 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8214 (mi_cmd_catch_rethrow): Declare.
8215 (mi_cmd_catch_catch): Declare.
8216
ec8e2b6d
AB
82172019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8218
8219 * annotate.c (annotate_source_line): Change return type to void,
8220 update implementation to match.
8221 * annotate.h (annotate_source_line): Change return type to void,
8222 update header comment.
8223 * stack.c (print_frame_info): Don't change what frame information
8224 is printed based on whether annotations are on or not.
8225
0d3abd8c
AB
82262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8227
8228 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8229 (annotate_source): Make static.
8230 (annotate_source_line): Moved from source.c and renamed from
8231 identify_source_line. Update the return type.
8232 * annotate.h (annotate_source): Delete declaration.
8233 (annotate_source_line): Declaration moved from source.h, and
8234 renamed from identify_source_line. Return type updated.
8235 * source.c (identify_source_line): Moved to annotate.c and renamed
8236 to annotate_source_line.
8237 (info_line_command): Remove check of annotation_level.
8238 * source.h (identify_source_line): Move declaration to annotate.h
8239 and rename to annotate_source_line.
8240 * stack.c: Add 'annotate.h' include.
8241 (print_frame_info): Remove check of annotation_level before
8242 calling annotate_source_line.
8243
00df30ae
AB
82442019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8245
8246 * source-cache.c (source_cache::get_plain_source_lines): Use
8247 open_source_file_with_line_charpos instead of just
8248 open_source_file, remove call to find_source_lines.
8249 (source_cache::get_source_lines): Likewise.
8250 * source.c (find_source_lines): Make static.
8251 (get_filename_and_charpos): Renamed into...
8252 (open_source_file_with_line_charpos): ..this along with changes to
8253 return a scoped_fd, and some other minor clean ups.
8254 (identify_source_line): Use open_source_file_with_line_charpos.
8255 (search_command_helper): Use open_source_file_with_line_charpos
8256 instead of just open_source_file, remove call to
8257 find_source_lines.
8258 * source.h (open_source_file_with_line_charpos): Declare new
8259 function.
8260 (find_source_lines): Delete declaration.
8261
afda45a2
AB
82622019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * source.c (get_filename_and_charpos): Remove fullname
8265 parameter.
8266 (identify_source_line): Update call to get_filename_and_charpos.
8267
0735b091
TT
82682019-06-14 Tom Tromey <tromey@adacore.com>
8269
8270 PR gdb/24502:
8271 * ui-style.h (skip_ansi_escape): Update comment.
8272 * ui-file.h (class no_terminal_escape_file): New class.
8273 * ui-file.c (no_terminal_escape_file::write)
8274 (no_terminal_escape_file::puts): New methods.
8275 * cli/cli-logging.c (handle_redirections): Use
8276 no_terminal_escape_file.
8277
52ce35e2
TT
82782019-06-14 Tom Tromey <tromey@adacore.com>
8279
8280 * NEWS: Move convenience variable news above Python news.
8281
73cc7272
TT
82822019-06-14 Tom Tromey <tom@tromey.com>
8283
8284 * gnulib: Move directory to top-level.
8285 * configure.ac: Don't configure gnulib.
8286 * configure: Rebuild.
8287 * common/common-defs.h: Use new path to gnulib.
8288 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8289 (GNULIB_H): Remove.
8290 (INCGNU): Look in new gnulib location.
8291 (HFILES_NO_SRCDIR): Remove gnulib files.
8292 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8293 (generated_files): Remove GNULIB_H.
8294 ($(LIBGNU), all-lib): Remove targets.
8295 (distclean): Don't mention GNULIB_BUILDDIR.
8296 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8297
f5686554
TT
82982019-06-14 Tom Tromey <tromey@adacore.com>
8299
8300 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8301 Warn if symbol file does not provide any symbols.
8302
a0c1ffed
TT
83032019-06-14 Tom Tromey <tromey@adacore.com>
8304
8305 * source.c (find_and_open_source): Respect basenames_may_differ.
8306
7c39e397
AB
83072019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8308
8309 * annotate.c (annotate_breakpoints_invalid): Make use of
8310 scoped_restore_terminal_state.
8311 (annotate_frames_invalid): Likewise.
8312
f411722c
TT
83132019-06-14 Tom Tromey <tromey@adacore.com>
8314
8315 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8316 allow assignment to an internalvar.
8317
4268ec18
TT
83182019-06-14 Tom Tromey <tromey@adacore.com>
8319
8320 * ada-lex.l: Allow "_" in attribute names.
8321
abdb711e
TT
83222019-06-14 Tom Tromey <tromey@adacore.com>
8323
8324 PR gdb/24653:
8325 * regcache.c (registers_changed): Don't call alloca.
8326 * top.c (execute_command): Don't call alloca.
8327
4c048731
PA
83282019-06-13 Pedro Alves <palves@redhat.com>
8329
8330 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8331 'expression'. When parsing an expression, error out if there's
8332 junk after "unlimited".
8333 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8334 (do_set_command): Adjust calls to is_unlimited_literal.
8335
66eb1ed3
PA
83362019-06-13 Pedro Alves <palves@redhat.com>
8337
8338 * compile/compile.c (make_compile_options_def_group): Add braces
8339 around array_view initializer.
8340 * thread.c (make_thread_apply_all_options_def_group)
8341 (make_thread_apply_all_options_def_group): Likewise.
8342
3345721a
PA
83432019-06-13 Pedro Alves <palves@redhat.com>
8344
8345 * NEWS (New commands): Mention "maint test-options
8346 require-delimiter", "maint test-options unknown-is-error", "maint
8347 test-options unknown-is-operand" and "maint show
8348 test-options-completion-result".
8349 (New command options, command completion): New section.
8350 (Completion improvements): New section.
8351 Mention that you can abbreviate "unlimited".
8352
6206060d
PA
83532019-06-13 Pedro Alves <palves@redhat.com>
8354
8355 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8356 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8357 * unittests/cli-utils-selftests.c (test_parse_flags)
8358 (test_parse_flags_qcs): Delete.
8359 (test_cli_utils): Don't call deleted functions.
8360
6665660a
PA
83612019-06-13 Pedro Alves <palves@redhat.com>
8362
8363 * thread.c: Include "cli/cli-option.h".
8364 (tp_array_compar_ascending): Global.
8365 (tp_array_compar): Delete function.
8366 (tp_array_compar_ascending, tp_array_compar_descending): New
8367 functions.
8368 (ascending_option_def, qcs_flag_option_def)
8369 (thr_qcs_flags_option_defs)
8370 (make_thread_apply_all_options_def_group)
8371 (make_thread_apply_options_def_group): New.
8372 (thread_apply_all_command): Use gdb::option::process_options.
8373 (thread_apply_command_completer)
8374 (thread_apply_all_command_completer): New.
8375 (thread_apply_command): Use gdb::option::process_options.
8376 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8377 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8378 to generate help text of "thread apply". Adjust "taas"'s help.
8379 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8380 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8381
f7e13587
PA
83822019-06-13 Pedro Alves <palves@redhat.com>
8383
8384 * thread.c (thread_apply_command): Check for invalid TID with
8385 isdigit instead of !isalpha.
8386
5d707134
PA
83872019-06-13 Pedro Alves <palves@redhat.com>
8388
8389 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8390 (validate_flags_qcs): New.
8391 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8392 (validate_flags_qcs): Declare.
8393 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8394 (make_frame_apply_options_def_group): New.
8395 (frame_apply_command_count): Process options with
8396 gdb::option::process_options.
8397 (frame_apply_completer): New.
8398 (frame_apply_level_completer, frame_apply_all_completer)
8399 (frame_apply_completer): New.
8400 (_initialize_stack): Update help of "frame apply", "frame apply
8401 level", "frame apply all" and "faas" to mention supported options
8402 and install command completers.
8403 * stack.h (frame_apply_all_completer): Declare.
8404 * thread.c: Include "stack.h".
8405 (tfaas_command): Add "--".
8406 (_initialize_thread): Update help "tfaas" to mention supported
8407 options and install command completer.
8408
272d4594
PA
84092019-06-13 Pedro Alves <palves@redhat.com>
8410
8411 * completer.c (complete_nested_command_line): New.
8412 (gdb_completion_word_break_characters_throw): Add assertion.
8413 * completer.h (complete_nested_command_line): Declare.
8414
90a1ef87
PA
84152019-06-13 Pedro Alves <palves@redhat.com>
8416
8417 * stack.c (parse_backtrace_qualifiers): New.
8418 (backtrace_command): Use it.
8419 (backtrace_command_completer): Complete on qualifiers.
8420
d4c16835
PA
84212019-06-13 Pedro Alves <palves@redhat.com>
8422
8423 * frame.c: Include "cli/cli-option.h.
8424 (user_set_backtrace_options): New.
8425 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8426 Delete.
8427 (get_prev_frame): Adjust.
8428 (boolean_option_def, uinteger_option_def)
8429 (set_backtrace_option_defs): New.
8430 (_initialize_frame): Adjust and use
8431 gdb::option::add_setshow_cmds_for_options to install "set
8432 backtrace past-main" and "set backtrace past-entry".
8433 * frame.h: Include "cli/cli-option.h".
8434 (struct frame_print_options): Forward declare.
8435 (print_frame_arguments_all, print_frame_arguments_scalars)
8436 (print_frame_arguments_none): Declare.
8437 (print_entry_values): Delete declaration.
8438 (struct frame_print_options, user_frame_print_options): New.
8439 (struct set_backtrace_options): New.
8440 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8441 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8442 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8443 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8444 (list_args_or_locals): Add frame_print_options parameter.
8445 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8446 * python/py-framefilter.c (enumerate_args): Pass down
8447 USER_FRAME_PRINT_OPTIONS.
8448 * stack.c: Include "cli/cli-option.h".
8449 (print_frame_arguments_all, print_frame_arguments_scalars)
8450 (print_frame_arguments_none): Declare.
8451 (print_raw_frame_arguments, print_entry_values): Delete.
8452 (user_frame_print_options): New.
8453 (boolean_option_def, enum_option_def, frame_print_option_defs):
8454 New.
8455 (struct backtrace_cmd_options): New.
8456 (bt_flag_option_def): New.
8457 (backtrace_command_option_defs): New.
8458 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8459 (print_frame_arg, read_frame_arg, print_frame_args)
8460 (print_frame_info, print_frame): Add frame_print_options parameter
8461 and use it.
8462 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8463 (backtrace_command_1): Add frame_print_options and
8464 backtrace_cmd_options parameters and use them.
8465 (make_backtrace_options_def_group): New.
8466 (backtrace_command): Process command options with
8467 gdb::option::process_options.
8468 (backtrace_command_completer): New.
8469 (_initialize_stack): Extend "backtrace"'s help to mention
8470 supported options. Install completer for "backtrace".
8471 Install some settings commands with add_setshow_cmds_for_options.
8472
2daf894e
PA
84732019-06-13 Pedro Alves <palves@redhat.com>
8474
8475 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8476 and that "set/show print raw frame-arguments" are now deprecated.
8477
8478 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8479 command.
8480 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8481 * stack.c (_initialize_stack): Install "set/show print
8482 raw-frame-arguments", and deprecate "set/show print raw
8483 frame-arguments".
8484 * valprint.c (_initialize_valprint): Deprecate "set/show print
8485 raw".
8486
e6ed716c
PA
84872019-06-13 Pedro Alves <palves@redhat.com>
8488
8489 * compile/compile.c (struct compile_options): New.
8490 (compile_flag_option_def, compile_command_option_defs)
8491 (make_compile_options_def_group): New.
8492 (compile_file_command): Handle options with
8493 gdb::option::process_options.
8494 (compile_file_command_completer): New function.
8495 (compile_code_command): Handle options with
8496 gdb::option::process_options.
8497 (compile_code_command_completer): New function.
8498 (_initialize_compiler): Install completers for "compile code" and
8499 "compile file". Mention available options in "compile code" and
8500 "compile code"'s help.
8501 * completer.c (advance_to_completion_word): New, factored out from
8502 ...
8503 (advance_to_expression_complete_word_point): ... this.
8504 (advance_to_filename_complete_word_point): New.
8505 * completer.h (advance_to_filename_complete_word_point): New
8506 declaration.
8507
7d8062de
PA
85082019-06-13 Pedro Alves <palves@redhat.com>
8509
8510 * compile/compile.c: Include "cli/cli-option.h".
8511 (compile_print_value): Scope data pointer is now a
8512 value_print_options pointer; adjust.
8513 (compile_print_command): Process options. Scope data pointer is
8514 now a value_print_options pointer; adjust.
8515 (_initialize_compile): Update "compile print"'s help to include
8516 supported options. Install a completer for "compile print".
8517 * cp-valprint.c (show_vtblprint, show_objectprint)
8518 (show_static_field_print): Delete.
8519 (_initialize_cp_valprint): Don't install "set print
8520 static-members", "set print vtbl", "set print object" here.
8521 * printcmd.c: Include "cli/cli-option.h" and
8522 "common/gdb_optional.h".
8523 (print_command_parse_format): Rework to fill in a
8524 value_print_options instead of a format_data.
8525 (print_value): Change parameter type from format_data pointer to
8526 value_print_options reference. Adjust.
8527 (print_command_1): Process options. Adjust to pass down a
8528 value_print_options.
8529 (print_command_completer): New.
8530 (_initialize_printcmd): Install print_command_completer as
8531 handle_brkchars completer for the "print" command. Update
8532 "print"'s help to include supported options.
8533 * valprint.c: Include "cli/cli-option.h".
8534 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8535 here from cp-valprint.c.
8536 (boolean_option_def, uinteger_option_def)
8537 (value_print_option_defs, make_value_print_options_def_group):
8538 New. Use gdb::option::add_setshow_cmds_for_options to install
8539 "set print elements", "set print null-stop", "set print repeats",
8540 "set print pretty", "set print union", "set print array", "set
8541 print address", "set print symbol", "set print array-indexes".
8542 * valprint.h: Include <string> and "cli/cli-option.h".
8543 (make_value_print_options_def_group): Declare.
8544 (print_value): Change parameter type from format_data pointer to
8545 value_print_options reference.
8546 (print_command_completer): Declare.
8547
9d0faba9
PA
85482019-06-13 Pedro Alves <palves@redhat.com>
8549
8550 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8551 (COMMON_SFILES): Add maint-test-settings.c.
8552 * cli/cli-decode.c (boolean_enums): New global, factored out from
8553 ...
8554 (add_setshow_boolean_cmd): ... here.
8555 * cli/cli-decode.h (boolean_enums): Declare.
8556 * cli/cli-option.c: New file.
8557 * cli/cli-option.h: New file.
8558 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8559 factored out from ...
8560 (parse_cli_boolean_value(const char *)): ... this.
8561 (is_unlimited_literal): Change parameter type to pointer to
8562 pointer. Adjust and advance ARG pointer.
8563 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8564 (parse_cli_var_enum): New, factored out from ...
8565 (do_set_command): ... this. Adjust.
8566 * cli/cli-setshow.h (parse_cli_boolean_value)
8567 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8568 (parse_cli_var_enum): Declare.
8569 * cli/cli-utils.c: Include "cli/cli-option.h".
8570 (get_ulongest): New.
8571 * cli/cli-utils.h (get_ulongest): Declare.
8572 (check_for_argument): New overloads.
8573 * maint-test-options.c: New file.
8574
2c722807
PA
85752019-06-13 Pedro Alves <palves@redhat.com>
8576
8577 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8578 parse a range if "-" is at the end of the string.
8579
dee7b4c8
PA
85802019-06-13 Pedro Alves <palves@redhat.com>
8581
8582 * cli/cli-setshow.c (parse_auto_binary_operation)
8583 (parse_cli_boolean_value): Don't allow "o".
8584
dca0f6c0
PA
85852019-06-13 Pedro Alves <palves@redhat.com>
8586
8587 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8588 * NEWS: Mention maint test-settings KIND.
8589 * maint-test-settings.c: New file.
8590
597bf39d
PA
85912019-06-13 Pedro Alves <palves@redhat.com>
8592
8593 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8594 completer.
8595 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8596 "set" completers.
8597
48c410fb
PA
85982019-06-13 Pedro Alves <palves@redhat.com>
8599
8600 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8601 after item.
8602
93bcb043
PA
86032019-06-13 Pedro Alves <palves@redhat.com>
8604
8605 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8606
cbba3ecd
PA
86072019-06-13 Pedro Alves <palves@redhat.com>
8608
8609 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8610 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8611 call.
8612 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8613 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8614 calls.
8615 (check_for_argument): Skip spaces after argument.
8616
b9a3f842
PA
86172019-06-13 Pedro Alves <palves@redhat.com>
8618
8619 * thread.c (thread_apply_command): Adjust TID parsing.
8620 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8621 detected before end of string.
8622 (tid_is_in_list): Error out if LIST is invalid.
8623
3844e605
PA
86242019-06-13 Pedro Alves <palves@redhat.com>
8625
8626 * completer.c (complete_line_internal_1): Rewind completion word
8627 point.
8628 (completion_tracker::advance_custom_word_point_by): Change
8629 parameter type to int.
8630 * completer.h (completion_tracker::advance_custom_word_point_by):
8631 Likewise.
8632
00b56dbe
PA
86332019-06-13 Pedro Alves <palves@redhat.com>
8634
8635 * completer.c (advance_to_completion_word): Handle delimiters.
8636
d106773e
PA
86372019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8638
8639 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8640
08f10e02
TT
86412019-06-11 Tom Tromey <tom@tromey.com>
8642
8643 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8644 (xmalloc_failed): Move to alloc.c.
8645 * alloc.c: New file.
8646 * Makefile.in (COMMON_SFILES): Add alloc.c.
8647
1c7fe951
TT
86482019-06-11 Tom Tromey <tom@tromey.com>
8649
8650 * nat/linux-waitpid.c: Don't include server.h.
8651 (linux_debug): Remove.
8652 (my_waitpid): Update.
8653
89549d7f
TT
86542019-06-11 Tom Tromey <tromey@adacore.com>
8655
8656 * infcall.c (_initialize_infcall): Remove trailing newline from
8657 help.
8658 * user-regs.c (_initialize_user_regs): Remove trailing newline
8659 from help.
8660 * typeprint.c (_initialize_typeprint): Remove trailing newline
8661 from help.
8662 * reverse.c (_initialize_reverse): Remove trailing newlines from
8663 help.
8664 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8665 from help.
8666 * language.c (add_set_language_command): Remove trailing newline
8667 from help.
8668 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8669 help.
8670 * disasm.c (_initialize_disasm): Remove trailing newline from
8671 help.
8672 * top.c (init_main): Remove trailing newline from help.
8673 * interps.c (_initialize_interpreter): Remove trailing newline
8674 from help.
8675 * btrace.c (_initialize_btrace): Remove trailing newlines from
8676 help.
8677 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8678 from help.
8679 * python/python.c (_initialize_python): Remove trailing newline
8680 from help.
8681 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8682 help.
8683 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8684 from help. Reformat some text.
8685 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8686 from help.
8687 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8688 newline from help.
8689
86108c13
TT
86902019-06-11 Tom Tromey <tromey@adacore.com>
8691
8692 * darwin-nat.c (darwin_decode_exception_message)
8693 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8694
a7067863
AB
86952019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * valops.c (value_slice): Check for not allocated or not
8698 associated values.
8699
9ab08412
TV
87002019-06-10 Tom de Vries <tdevries@suse.de>
8701
8702 PR gdb/24618
8703 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8704 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8705 invalid.
8706
f19e22e9
TV
87072019-06-10 Tom de Vries <tdevries@suse.de>
8708
8709 PR gdb/24611
8710 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8711 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8712
e99f9db0
TV
87132019-06-10 Tom de Vries <tdevries@suse.de>
8714
8715 PR symtab/24545
8716 * symtab.c (struct demangled_name_entry): Add language field.
8717 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8718 static minimal symbol". Set and use language field.
8719
9bf7038b
TT
87202019-06-10 Tom Tromey <tromey@adacore.com>
8721
8722 * ada-lang.c (_initialize_ada_language): Update help text.
8723
422186a9
TT
87242019-06-10 Tom Tromey <tromey@adacore.com>
8725
8726 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8727 with a newline.
8728 * guile/guile.c (handle_boot_error): Don't end warning with a
8729 newline.
8730 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8731 warning with a newline.
8732 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8733 newline.
8734 (s12z_frame_cache): Likewise.
8735 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8736 a newline.
8737 * solib-svr4.c (disable_probes_interface): Don't end warning with
8738 a newline.
8739 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8740 newline.
8741 * python/python.c (do_finish_initialization): Don't end warning
8742 with a newline.
8743
25ce02ee
TT
87442019-06-10 Tom Tromey <tom@tromey.com>
8745
8746 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8747 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8748 gdbpy_enter.
8749
caa429d8
TT
87502019-06-10 Tom Tromey <tromey@adacore.com>
8751
8752 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8753 data.
8754 (elf_new_init): Don't call stabsread_new_init.
8755 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8756 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8757 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8758
81873cc8
TV
87592019-06-10 Tom de Vries <tdevries@suse.de>
8760
8761 PR symtab/16264
8762 PR symtab/24517
8763 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8764
4fa0265e
РИ
87652019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8766
8767 * source.c (find_and_open_source): Also rewrite relative file
8768 names.
8769
1a3da2cd
AB
87702019-04-26 Amos Bird <amosbird@gmail.com>
8771
8772 * annotate.c (annotate_thread_exited): Add "thread-exited"
8773 annotation.
8774
3847a7bf
TT
87752019-06-06 Tom Tromey <tromey@adacore.com>
8776
8777 * maint.h (class scoped_command_stats): Use
8778 DISABLE_COPY_AND_ASSIGN.
8779 <print_time>: New method.
8780 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8781 print_time.
8782 (scoped_command_stats::print_time): New method.
8783
312617a3
AB
87842019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8787 instructions of lengths 6 or 8 bytes.
8788
b02f78f9
PA
87892019-06-04 Pedro Alves <palves@redhat.com>
8790
8791 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8792
8793 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8794 * breakpoint.c (condition_completer): Likewise.
8795 * cli/cli-dump.c (scan_expression): Likewise.
8796 * common/filestuff.c (mkdir_recursive): Likewise.
8797 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8798 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8799 (gdb_abspath): Likewise.
8800 * compile/compile-cplus-types.c
8801 (compile_cplus_instance::decl_name): Likewise.
8802 * completer.c (complete_explicit_location):
8803 (signal_completer, reg_or_group_completer_1): Likewise.
8804 * cp-support.c (cp_remove_params_if_any): Likewise.
8805 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8806 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8807 * infcmd.c (strip_bg_char): Likewise.
8808 * linespec.c (copy_token_string): Likewise.
8809 * mi/mi-main.c (output_cores): Likewise.
8810 * psymtab.c (psymtab_search_name):
8811 * symfile.c (test_set_ext_lang_command): Likewise.
8812 * target.c (target_fileio_read_stralloc): Likewise.
8813 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8814 * value.c (complete_internalvar): Likewise.
8815
e1f2e1a2
CB
88162019-06-04 Christian Biesinger <cbiesinger@google.com>
8817
8818 Add objfile property to gdb.Type.
d3238f7d
PA
8819 * NEWS: Mention Python API addition.
8820 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8821
e664d728
PW
88222019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823
8824 * NEWS: Mention the new set|show style [title|highlight].
8825 Mention changes to "show style", "help" and "apropos".
8826
66d8c862
PW
88272019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8828
8829 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8830 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8831 instead of print_help_for_command.
8832 (print_doc_of_command): New function.
8833 (help_list): Add 'apropos -v word' suggestion.
8834 (print_help_for_command): Style the command name using title style.
8835 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8836 (_initialize_cli_cmds): Describe -v in apropos_command help.
8837
9303eb2f
PW
88382019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8839
8840 * cli/cli-style.h (cli_style_option): Add name in constructor,
8841 add m_name class member, add constructor with intensity,
8842 add name class function.
8843 (cli_style_option::add_setshow_commands): Remove name argument.
8844 (highlight_style, title_style): New styles.
8845 * cli/cli-style.c (do_show): New function that shows a style
8846 characteristic styling the style name with itself.
8847 (set_style_name): New function.
8848 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8849 Update all callers according to the changes in cli/cli-style.h.
8850 * utils.h (fputs_highlighted): New function.
8851 * utils.c (fputs_highlighted): Likewise.
8852
e2c52041
PW
88532019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8854
8855 * NEWS: Mention new pipe command and new convenience variables.
8856
947d3946
PW
88572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8858
8859 * cli/cli-cmds.c (pipe_command): New function.
8860 (_initialize_cli_cmds): Call add_com for pipe_command.
8861 Define | as an alias for pipe.
8862 (exit_status_set_internal_vars): New function.
8863 (shell_escape): Call exit_status_set_internal_vars.
8864 cli/cli-decode.c (find_command_name_length): Recognize | as
8865 a single character command.
8866
b8fd0918
PW
88672019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8868
8869 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8870 top.c (execute_command_to_ui_file): New function, mostly a copy
8871 of execute_command_to_string.
8872 (execute_command_to_string): Implement by calling
8873 execute_command_to_ui_file.
8874
68bb5386
PW
88752019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8876
8877 * top.h (saved_command_line): Remove declaration.
8878 * top.c (previous_saved_command_line, previous_repeat_arguments):
8879 New variables.
8880 (saved_command_line): Make static, define together with other
8881 'repeat variables'.
8882 (dont_repeat): Clear repeat_arguments.
8883 (repeat_previous, get_saved_command_line, save_command_line):
8884 New functions.
8885 (gdb_init): Initialize saved_command_line
8886 and previous_saved_command_line.
8887 * main.c (captured_main_1): Remove saved_command_line initialization.
8888 * event-top.c (handle_line_of_input): Update to use
8889 the new 'repeat' related functions instead of direct access to
8890 saved_command_line.
8891 * command.h (repeat_previous, get_saved_command_line,
8892 save_command_line): New declarations.
8893 (dont_repeat): Add comment.
8894
bfcdb852
TT
88952019-05-30 Tom Tromey <tromey@adacore.com>
8896
8897 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8898 Fix comment.
8899 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8900
0ef209f2
JV
89012019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8902
8903 PR cli/24587
8904 * completer.c (complete): Initialize variable word.
8905
955b06fa
SDJ
89062019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8907
8908 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8909 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8910 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8911 'body' is NULL to the outter 'if', protecting the '!is_define'
8912 situation as well.
8913
fa9c3fa0
TT
89142019-05-29 Tom Tromey <tromey@adacore.com>
8915
8916 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8917 (dwarf_unknown): New function.
8918 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8919 (dwarf_type_encoding_name): Use dwarf_unknown.
8920
4330d61d
TT
89212019-05-29 Tom Tromey <tromey@adacore.com>
8922
8923 PR c++/20020:
8924 * cp-valprint.c (cp_print_value_fields): Call
8925 cp_print_static_field inside "try".
8926
33a6bc35
TT
89272019-05-29 Tom Tromey <tromey@adacore.com>
8928
8929 * inflow.c (struct terminal_info): Add default operator=.
8930 * configure: Rebuild.
8931 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8932 -Wdeprecated-copy-dtor, -Wredundant-move.
8933
000439d5
TT
89342019-05-29 Tom Tromey <tromey@adacore.com>
8935
8936 * NEWS: Add entry.
8937 * infcmd.c (print_return_value_1): Handle finish_print
8938 option.
8939 (show_print_finish): New function.
8940 (_initialize_infcmd): Add "set/show print finish" commands.
8941 * valprint.c (user_print_options): Initialize new member.
8942 * valprint.h (struct value_print_options) <finish_print>: New
8943 member.
8944
c0e70c62
TT
89452019-05-28 Tom Tromey <tromey@adacore.com>
8946
8947 * ada-lang.c (ada_remove_Xbn_suffix)
8948 (find_old_style_renaming_symbol)
8949 (parse_old_style_renaming): Remove.
8950 (ada_find_renaming_symbol): Don't call
8951 find_old_style_renaming_symbol.
8952 (ada_is_renaming_symbol): Rename from
8953 ada_find_renaming_symbol. Remove "block" parameter. Return
8954 bool. Now static.
8955 (ada_read_var_value): Update and simplify.
8956 * ada-exp.y (write_var_or_type): Remove old code.
8957
766f8836
AH
89582019-05-28 Alan Hayward <alan.hayward@arm.com>
8959
68255adc 8960 PR gdb/25010
766f8836
AH
8961 * event-top.c: Remove include comment.
8962 * inflow.c (class scoped_ignore_sigttou): Move from here...
8963 * inflow.h (class scoped_ignore_sigttou): ...to here.
8964 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8965 * top.c: Remove include comment.
8966
eb41253a
TT
89672019-05-27 Tom Tromey <tom@tromey.com>
8968
8969 * NEWS: Fix typo.
8970
4ca51187
TT
89712019-05-22 Tom Tromey <tromey@adacore.com>
8972
8973 * target.c (target_follow_exec): Constify parameter.
8974 * target-delegates.c: Rebuild.
8975 * remote.c (remote_target::follow_exec): Constify parameter.
8976 * infrun.c (follow_exec): Constify parameter.
8977 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8978 (target_follow_exec): Likewise.
8979
8fca4da0
AH
89802019-05-22 Alan Hayward <alan.hayward@arm.com>
8981
8982 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8983 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8984
b7060614
AH
89852019-05-22 Alan Hayward <alan.hayward@arm.com>
8986
8987 * NEWS: Add debugredirect and testsuite sections.
8988
0a5954bd
SC
89892019-05-22 Simon Cook <simon.cook@embecosm.com>
8990
8991 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8992 target descriptions using exclusively floating point register name
8993 aliases.
8994
dc42e902
AB
89952019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8996
8997 PR gdb/18644:
8998 * f-lang.c (build_fortran_types): Handle the case where
8999 gdbarch_floatformat_for_type returns a nullptr.
9000
fb7806c7
TV
90012019-05-21 Tom de Vries <tdevries@suse.de>
9002
9003 PR cli/24587
9004 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9005
34d11c68
AB
90062019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9007
9008 PR gdb/18644:
9009 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9010 16-byte floats.
9011 * i386-tdep.c (i386_floatformat_for_type): Use
9012 floatformats_ia64_quad for the 16-byte floating point component
9013 within a fortran 32-byte complex number.
9014
122cf0f2
AB
90152019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9018 delete default constructor.
9019 (find_partial_die): Update to return const struct.
9020 (partial_die_parent_scope): Move variable declaration into scope
9021 of its use and change its type to auto.
9022 (guess_partial_die_structure_name): Likewise.
9023 (partial_die_info::fixup): Likewise.
9024
33d0e35a
TT
90252019-05-17 Tom Tromey <tromey@adacore.com>
9026
9027 * source.c (find_and_open_source): Remove cast.
9028
a45575b0
TT
90292019-05-17 Tom Tromey <tromey@adacore.com>
9030
9031 * annotate.c (annotate_source): Make "filename" const.
9032 * annotate.h (annotate_source): Use const.
9033
81f47ac2
AH
90342019-05-17 Alan Hayward <alan.hayward@arm.com>
9035
9036 * disasm.c (set_disassembler_options): Send errors to stderr.
9037
ca1285d1
AH
90382019-05-17 Alan Hayward <alan.hayward@arm.com>
9039
9040 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9041 (cli_interp_base::set_logging): Check debug_redirect.
9042 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9043 * cli/cli-logging.c (debug_redirect): Add static variable.
9044 (pop_output_files): Add default param.
9045 (handle_redirections): Print debug setting.
9046 (show_logging_command): Likewise.
9047 (_initialize_cli_logging): Add debugredirect command.
9048 * interps.c (current_interp_set_logging): Add debug_redirect
9049 parameter.
9050 * interps.h (set_logging): Add debug_redirect parameter.
9051 (current_interp_set_logging): Likewise.
9052 * mi/mi-common.h: Likewise.
9053 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9054
90552019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9056 Tom Tromey <tromey@adacore.com>
9057
9058 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9059 directly.
9060 * cli/cli-interp.h (make_logging_output): Remove declaration.
9061 * cli/cli-logging.c (make_logging_output): Remove function.
9062 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9063 directly.
9064 * ui-file.c (tee_file::tee_file): Remove bools.
9065 (tee_file::~tee_file): Remove deletes.
9066 * ui-file.h (tee_file): Remove bools.
9067
26648588
JV
90682019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9069
9070 * mi/mi-cmds.h (mi_cmd_complete): New function.
9071 * mi/mi-main.c (mi_cmd_complete): Likewise.
9072 * mi/mi-cmds.c: Define new MI command -complete.
9073 * NEWS: Mention new -complete command.
9074
6e035501
JV
90752019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9076
9077 * completer.h (complete): New function.
9078 * completer.c (complete): Likewise.
9079 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9080 function defined in completer.h.
9081
7d0e2ece
JV
90822019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9083
e79be6e5 9084 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9085
fb816e8b
TV
90862019-05-17 Tom de Vries <tdevries@suse.de>
9087
9088 PR gdb/24094
9089 * dwarf2read.c (struct cu_partial_die_info): New struct.
9090 (find_partial_die): Return cu_partial_die_info.
9091 (partial_die_parent_scope, guess_partial_die_structure_name)
9092 (partial_die_info::fixup): Handle new return type of find_partial_die.
9093
677052f2
SDJ
90942019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9095
a1726c38 9096 PR breakpoints/24541
677052f2
SDJ
9097 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9098 "std::string", simplifying the algorithm.
9099
f3da9116
SDJ
91002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9101
9102 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9103 (stap_static_probe_ops::get_probes): Likewise.
9104
f1bb75ab
SDJ
91052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9106
9107 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9108 '-')" and "else if".
9109 (stap_parse_single_operand): Join checks for
9110 "gdbarch_stap_parse_special_token_p" and
9111 "gdbarch_stap_parse_special_token" in the same "if" statement.
9112 Invert check when verifying for operation on register
9113 displacement.
9114
3ca58cde
SDJ
91152019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9116
9117 * stap-probe.c (stap_get_opcode): Update comment.
9118 (stap_get_expected_argument_type): Likewise.
9119 (handle_stap_probe): Likewise.
9120
af2d9bee
SDJ
91212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9122
9123 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9124 return type to 'bool'. Adjust comment. Use 'bool' when
9125 appropriate.
9126 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9127 * stap-probe.c (stap_parse_argument_1): Likewise.
9128 (stap_is_operator): Likewise.
9129 (stap_is_generic_prefix): Likewise.
9130 (stap_is_register_prefix): Likewise.
9131 (stap_is_register_indirection_prefix): Likewise.
9132 (stap_is_integer_prefix): Likewise.
9133 (stap_generic_check_suffix): Likewise.
9134 (stap_check_integer_suffix): Likewise.
9135 (stap_check_register_suffix): Likewise.
9136 (stap_check_register_indirection_suffix): Likewise.
9137 (stap_parse_register_operand): Likewise.
9138 (stap_parse_single_operand): Likewise.
9139 (stap_parse_argument_1): Likewise.
9140 (stap_probe::get_argument_count): Likewise.
9141 (stap_is_operator): Likewise.
9142
61c9c421
TT
91432019-05-16 Tom Tromey <tromey@adacore.com>
9144
9145 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9146 keyword to foreach.
9147
9ddc1af1
SM
91482019-05-15 Simon Marchi <simon.marchi@efficios.com>
9149
9150 * linux-thread-db.c (try_thread_db_load_1): Change return type
9151 to bool.
9152 (try_thread_db_load): Likewise.
9153 (try_thread_db_load_from_pdir_1): Likewise.
9154 (try_thread_db_load_from_pdir): Likewise.
9155 (try_thread_db_load_from_sdir): Likewise.
9156 (try_thread_db_load_from_dir): Likewise.
9157 (thread_db_load_search): Likewise.
9158 (has_libpthread): Likewise.
9159 (thread_db_load): Likewise.
9160
7bede828
SDJ
91612019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9162
9163 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9164 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9165 NULL, and complain/return if that's the case.
9166
c5358db4
JD
91672019-05-15 John Darrington <john@darrington.wattle.id.au>
9168
9169 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9170 (advance, posn, abstract_read_memory): New functions.
9171 [struct mem_read_abstraction]: New struct.
9172 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9173
c408a94f
TT
91742019-05-14 Tom Tromey <tromey@adacore.com>
9175
9176 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9177 value is not lval_memory.
9178
e7bd7fba
TT
91792019-05-14 Tom Tromey <tromey@adacore.com>
9180
9181 * solib.c (info_sharedlibrary_command): Style the file name.
9182
a6d0f249
AH
91832019-05-14 Alan Hayward <alan.hayward@arm.com>
9184
9185 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9186 (aarch64_vnv_type): Likewise.
9187 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9188 * common/tdesc.c: Likewise.
9189 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9190 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9191 * features/aarch64-fpu.xml: Add ieee half view.
9192 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9193 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9194 * gdbtypes.h (struct builtin_type): Likewise.
9195 (struct objfile_type): Likewise.
9196
66b8bb74
SM
91972019-05-12 Paul Naert <paul.naert@polymtl.ca>
9198
9199 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9200 typo.
9201 * location.h (string_to_event_location): Likewise.
9202
21c219fd
JB
92032019-05-11 Joel Brobecker <brobecker@adacore.com>
9204
9205 GDB 8.3 released.
9206
13674803
SM
92072019-05-10 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9210 New variable declaration.
9211 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9212 New variable.
9213 (print_one_breakpoint): Use ui_out::test_flags and new global
9214 variable to compute use_fixed_output.
9215 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9216 Remove.
9217 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9218 (mi_multi_location_breakpoint_output_fixed): Remove.
9219 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9220 new variable.
9221 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9222 fix_multi_location_breakpoint_output flag if version >= 3.
9223 * ui-out.h (enum ui_out_flag)
9224 <fix_multi_location_breakpoint_output>: New enumerator.
9225
a9eac7f9
SM
92262019-05-10 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9229
71bed2db
TT
92302019-05-10 Tom Tromey <tromey@adacore.com>
9231
9232 * ada-lang.c (catch_ada_completer): New function.
9233 (_initialize_ada_language): Use it.
9234
24c54127
TT
92352019-05-10 Tom Tromey <tromey@adacore.com>
9236
9237 * thread.c (print_thread_info): Make "requested_threads" const.
9238 * gdbthread.h (print_thread_info): Make "requested_threads"
9239 const.
9240 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9241 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9242
7a102139
TT
92432019-05-08 Tom Tromey <tom@tromey.com>
9244
9245 * gdbtypes.c (objfile_type_data): Change type.
9246 (objfile_type, _initialize_gdbtypes): Update.
9247
924d79e2
TT
92482019-05-08 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9251 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9252 (_initialize_dwarf2_frame): Update.
9253
4c58e337
TT
92542019-05-08 Tom Tromey <tom@tromey.com>
9255
9256 * objc-lang.c (objc_objfile_data): Change type.
9257 (find_methods): Update.
9258 (_initialize_objc_lang): Remove.
9259
d772d2ab
TT
92602019-05-08 Tom Tromey <tom@tromey.com>
9261
9262 * stabsread.c (rs6000_builtin_type_data): Change type.
9263 (rs6000_builtin_type, _initialize_stabsread): Update.
9264
d11d83f4
TT
92652019-05-08 Tom Tromey <tom@tromey.com>
9266
9267 * mips-tdep.c (mips_pdr_data): Remove.
9268 (_initialize_mips_tdep): Update.
9269
9a73f0ad
TT
92702019-05-08 Tom Tromey <tom@tromey.com>
9271
9272 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9273 (hppa_init_objfile_priv_data, read_unwind_info)
9274 (find_unwind_entry, _initialize_hppa_tdep): Update.
9275
8127a2fa
TT
92762019-05-08 Tom Tromey <tom@tromey.com>
9277
9278 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9279 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9280 on obstack.
9281 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9282
91d3055d
TT
92832019-05-08 Tom Tromey <tom@tromey.com>
9284
9285 * mdebugread.c (basic_type_data): Change type.
9286 (basic_type, _initialize_mdebugread): Update.
9287
31930bd3
TT
92882019-05-08 Tom Tromey <tom@tromey.com>
9289
9290 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9291
bdb3ed9e
TT
92922019-05-08 Tom Tromey <tom@tromey.com>
9293
9294 * nto-tdep.c (nto_inferior_data_reg): Change type.
9295 (nto_inferior_data): Update.
9296 (nto_inferior_data_cleanup, nto_new_inferior_data)
9297 (_initialize_nto_tdep): Remove.
9298 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9299
f37b313d
TT
93002019-05-08 Tom Tromey <tom@tromey.com>
9301
9302 * ada-lang.c (struct ada_inferior_data): Add initializers.
9303 (ada_inferior_data): Change type.
9304 (ada_inferior_data_cleanup): Remove.
9305 (get_ada_inferior_data, ada_inferior_exit)
9306 (struct ada_pspace_data): Add initializers, destructor.
9307 (ada_pspace_data_handle): Change type.
9308 (get_ada_pspace_data): Update.
9309 (ada_pspace_data_cleanup): Remove.
9310
24699405
TT
93112019-05-08 Tom Tromey <tom@tromey.com>
9312
9313 * coffread.c (struct coff_symfile_info): Add initializers.
9314 (coff_objfile_data_key): Move lower. Change type.
9315 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9316 Update.
9317 (coff_free_info): Remove.
9318
d4e05d2f
TT
93192019-05-08 Tom Tromey <tom@tromey.com>
9320
9321 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9322 (fbsd_pspace_data_handle): Move lower. Change type.
9323 (get_fbsd_pspace_data): Update.
9324 (fbsd_pspace_data_cleanup): Remove.
9325 (_initialize_fbsd_tdep): Update.
9326
14ef6690
TT
93272019-05-08 Tom Tromey <tom@tromey.com>
9328
9329 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9330 (get_ada_tasks_pspace_data): Update.
9331 (ada_tasks_pspace_data_cleanup): Remove.
9332 (_initialize_tasks): Update.
9333 (ada_tasks_inferior_data_handle): Change type.
9334 (get_ada_tasks_inferior_data): Update.
9335 (ada_tasks_inferior_data_cleanup): Remove.
9336 (struct ada_tasks_pspace_data): Add initializers.
9337
814cf43a
TT
93382019-05-08 Tom Tromey <tom@tromey.com>
9339
9340 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9341 * symfile-debug.c (debug_sym_get_probes): Change type.
9342 * stap-probe.c (handle_stap_probe):
9343 (stap_static_probe_ops::get_probes): Change type.
9344 * probe.h (class static_probe_ops) <get_probes>: Change type.
9345 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9346 (parse_probes_in_pspace): Update.
9347 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9348 Update.
9349 (any_static_probe_ops::get_probes): Change type.
9350 * elfread.c (elfread_data): New typedef.
9351 (probe_key): Change type.
9352 (elf_get_probes): Likewise. Update.
9353 (probe_key_free): Remove.
9354 (_initialize_elfread): Update.
9355 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9356 Change type.
9357 (dtrace_process_dof_probe, dtrace_process_dof)
9358 (dtrace_static_probe_ops::get_probe): Change type.
9359
02dc647e
TT
93602019-05-08 Tom Tromey <tom@tromey.com>
9361
9362 * xcoffread.c (struct xcoff_symfile_info): Rename from
9363 coff_symfile_info. Add initializers.
9364 (xcoff_objfile_data_key): Move lower. Change type.
9365 (XCOFF_DATA): Rewrite.
9366 (xcoff_free_info): Remove.
9367 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9368 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9369 (xcoff_initial_scan): Update.
9370
09232438
TT
93712019-05-08 Tom Tromey <tom@tromey.com>
9372
9373 * solib-svr4.c (struct svr4_info): Add initializers and
9374 destructor.
9375 <probes_table>: Now an htab_up.
9376 (solib_svr4_pspace_data): Change type.
9377 (free_probes_table): Simplify.
9378 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9379 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9380 (probes_table_remove_objfile_probes, register_solib_event_probe)
9381 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9382 (_initialize_svr4_solib): Update.
9383
7b4a314f
TT
93842019-05-08 Tom Tromey <tom@tromey.com>
9385
9386 * remote.c (remote_pspace_data): Change type.
9387 (remote_pspace_data_cleanup): Remove.
9388 (get_remote_exec_file, set_pspace_remote_exec_file)
9389 (_initialize_remote): Update.
9390
51d3063a
TT
93912019-05-08 Tom Tromey <tom@tromey.com>
9392
9393 * breakpoint.c (breakpoint_objfile_key): Change type.
9394 (get_breakpoint_objfile_data): Update.
9395 (free_breakpoint_objfile_data): Remove.
9396 (_initialize_breakpoint): Update.
9397
89fb8848
TT
93982019-05-08 Tom Tromey <tom@tromey.com>
9399
9400 * linux-tdep.c (struct linux_info): Add initializers.
9401 (linux_inferior_data): Move. Change type.
9402 (invalidate_linux_cache_inf): Update.
9403 (linux_inferior_data_cleanup): Remove.
9404 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9405
e9b89e2d
TT
94062019-05-08 Tom Tromey <tom@tromey.com>
9407
9408 * auxv.c (auxv_inferior_data): Move. Change type.
9409 (auxv_inferior_data_cleanup): Remove.
9410 (invalidate_auxv_cache_inf): Rewrite.
9411 (get_auxv_inferior_data, _initialize_auxv): Update.
9412
8c42777c
TT
94132019-05-08 Tom Tromey <tom@tromey.com>
9414
9415 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9416 (symfile_debug_objfile_data_key): Change type.
9417 (symfile_debug_installed, debug_qf_has_symbols)
9418 (debug_qf_find_last_source_symtab)
9419 (debug_qf_forget_cached_source_info)
9420 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9421 (debug_qf_print_stats, debug_qf_dump)
9422 (debug_qf_expand_symtabs_for_function)
9423 (debug_qf_expand_all_symtabs)
9424 (debug_qf_expand_symtabs_with_fullname)
9425 (debug_qf_map_matching_symbols)
9426 (debug_qf_expand_symtabs_matching)
9427 (debug_qf_find_pc_sect_compunit_symtab)
9428 (debug_qf_map_symbol_filenames)
9429 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9430 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9431 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9432 (debug_sym_read_linetable, debug_sym_relocate): Update.
9433 (symfile_debug_free_objfile): Remove.
9434 (install_symfile_debug_logging, _initialize_symfile_debug):
9435 Update.
9436
5bfd760d
TT
94372019-05-08 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9440 allocate_on_obstack.
9441 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9442 (get_dwarf2_per_objfile): Update.
9443 (set_dwarf2_per_objfile): Remove.
9444 (dwarf2_has_info, dwarf2_get_section_info): Update.
9445 (dwarf2_free_objfile): Remove.
9446 (_initialize_dwarf2_read): Update.
9447
e85e19b4
TT
94482019-05-08 Tom Tromey <tom@tromey.com>
9449
9450 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9451 initializers.
9452 <unsupported_script_warning_printed,
9453 script_not_found_warning_printed>: Now bool.
9454 (auto_load_pspace_data): Change type.
9455 (~auto_load_pspace_info): Rename from
9456 auto_load_pspace_data_cleanup.
9457 (get_auto_load_pspace_data, init_loaded_scripts_info)
9458 (clear_section_scripts, maybe_print_unsupported_script_warning)
9459 (maybe_print_script_not_found_warning, _initialize_auto_load):
9460 Update.
9461
f6aa7436
TT
94622019-05-08 Tom Tromey <tom@tromey.com>
9463
9464 * objfiles.c (objfile_pspace_info): Add destructor and
9465 initializers.
9466 (objfiles_pspace_data): Change type.
9467 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9468 (get_objfile_pspace_data): Update.
9469 (objfiles_bfd_data): Change type.
9470 (get_objfile_bfd_data): Update.
9471 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9472
6ae614f6
TT
94732019-05-08 Tom Tromey <tom@tromey.com>
9474
9475 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9476 Change type.
9477 (get_catch_syscall_inferior_data): Update.
9478 (catch_syscall_inferior_data_cleanup): Remove.
9479 (_initialize_break_catch_syscall): Update.
9480
6509b8eb
TT
94812019-05-08 Tom Tromey <tom@tromey.com>
9482
9483 * inflow.c (struct terminal_info): Add destructor and
9484 initializers.
9485 (inflow_inferior_data): Change type.
9486 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9487 (get_inflow_inferior_data, inflow_inferior_exit)
9488 (swap_terminal_info, _initialize_inflow): Update.
9489
35632941
TT
94902019-05-08 Tom Tromey <tom@tromey.com>
9491
9492 * target-dcache.c (target_dcache_cleanup): Remove.
9493 (target_dcache_aspace_key): Change type.
9494 (target_dcache_init_p, target_dcache_invalidate)
9495 (target_dcache_get, target_dcache_get_or_init)
9496 (_initialize_target_dcache): Update.
9497 * dcache.h (struct dcache_deleter): New.
9498
3017b94d
TT
94992019-05-08 Tom Tromey <tom@tromey.com>
9500
9501 * symtab.c (struct symbol_cache): Add destructor and
9502 initializers.
9503 (symbol_cache_key): Move. Change type.
9504 (make_symbol_cache, free_symbol_cache): Remove.
9505 (get_symbol_cache): Update.
9506 (symbol_cache_cleanup): Remove.
9507 (ALL_PSPACES, symbol_cache_flush)
9508 (maintenance_print_symbol_cache)
9509 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9510 Update.
9511
a32ad8c5
TT
95122019-05-08 Tom Tromey <tom@tromey.com>
9513
9514 * symtab.c (struct main_info): Add destructor and initializers.
9515 (main_progspace_key): Move. Change type.
9516 (get_main_info): Update.
9517 (main_info_cleanup): Remove.
9518 (_initialize_symtab): Update.
9519
5f6e90a0
TT
95202019-05-08 Tom Tromey <tom@tromey.com>
9521
9522 * registry.h (DECLARE_REGISTRY): Define the _key class.
9523
1bd0c6e4
AB
95242019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9525
9526 * NEWS: Merge two 'New commands' sections.
9527
2228ef77
XR
95282019-05-08 Joel Brobecker <brobecker@adacore.com>
9529
9530 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9531 parameter and use Ada language definition instead.
9532 (ada_val_print_ptr): Remove unused language parameter.
9533 (ada_val_print_num): Remove language parameter and use Ada language
9534 definition instead.
9535 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9536 parameter.
9537 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9538 parameter and use Ada language definition instead.
9539 (ada_val_print_1): Update all ada_val_print_xxx calls.
9540 Remove language parameter.
9541 (ada_val_print): Update ada_val_print_1 call.
9542
60fcc1c3
TT
95432019-05-08 Tom Tromey <tromey@adacore.com>
9544
9545 * remote.c (remote_hw_watchpoint_limit)
9546 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9547 Now static.
9548
ed2b7c17
TT
95492019-05-08 Tom Tromey <tromey@adacore.com>
9550
9551 * maint.c (_initialize_maint_cmds): Move initialization code to
9552 remote.c.
9553 (watchdog, show_watchdog): Move to remote.c.
9554 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9555 "watchdog" static.
9556 (_initialize_remote): Move initialization code from maint.c.
9557 * defs.h (watchdog): Don't declare.
9558
b0be6c91
TT
95592019-05-08 Tom Tromey <tromey@adacore.com>
9560
9561 * tui/tui-interp.c: Include main.h.
9562 * interps.c: Include main.h.
9563 * main.h (interpreter_p): Declare.
9564 * defs.h (interpreter_p): Don't declare.
9565
587ee17b
TT
95662019-05-08 Tom Tromey <tromey@adacore.com>
9567
9568 * dwarf2loc.c: Include dwarf2read.h.
9569 * defs.h (read_unsigned_leb128): Don't declare.
9570 * dwarf2read.h (read_unsigned_leb128): Declare.
9571
ca1df239
TT
95722019-05-08 Tom Tromey <tromey@adacore.com>
9573
9574 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9575 method.
9576
99f20f08
TT
95772019-05-08 Tom Tromey <tromey@adacore.com>
9578
9579 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9580 when no wrap column is set.
9581
80e55b13
TT
95822019-05-08 Tom Tromey <tromey@adacore.com>
9583
9584 * c-lang.c (c_get_string): Handle non-C-style arrays.
9585
9d3421af
TT
95862019-05-08 Tom Tromey <tromey@adacore.com>
9587
9588 * typeprint.c (print_offset_data::update): Print the bit offset,
9589 not the number of bits remaining.
9590
844333e2
TT
95912019-05-08 Tom Tromey <tromey@adacore.com>
9592
9593 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9594 padding at end of comment.
9595
988915ee
TT
95962019-05-08 Tom Tromey <tromey@adacore.com>
9597
9598 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9599 Compare main types.
9600
26bfd823
TT
96012019-05-06 Tom Tromey <tom@tromey.com>
9602
9603 * common/scoped_mmap.c: Include common-defs.h.
9604 * common/scoped_mmap.h: Don't include config.h.
9605
89055eaa
TT
96062019-05-04 Tom Tromey <tom@tromey.com>
9607
9608 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9609 (struct aarch64_call_info): Add initializers.
9610 <si>: Now a std::vector.
9611 (pass_on_stack, aarch64_push_dummy_call): Update.
9612
5da01df5
TT
96132019-05-04 Simon Marchi <simon.marchi@efficios.com>
9614 Tom Tromey <tom@tromey.com>
9615
9616 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9617 (ppc_threads): Now a std::vector. Now static.
9618 (hwdebug_find_thread_points_by_tid)
9619 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9620 Update.
9621
fbdf05a1
TT
96222019-05-04 Tom Tromey <tom@tromey.com>
9623
9624 * arc-tdep.c (arc_tdesc_init): Return bool.
9625
06d16ec9
TT
96262019-05-04 Tom Tromey <tom@tromey.com>
9627
9628 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9629 Use gdb_assert_not_reached.
9630
9c056022
TT
96312019-05-04 Tom Tromey <tom@tromey.com>
9632
9633 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9634 "false".
9635
fa9c2a59
TT
96362019-05-04 Tom Tromey <tom@tromey.com>
9637
9638 * arc-tdep.c (arc_tdesc_init): Use bool.
9639
e2eb806a
TT
96402019-05-04 Tom Tromey <tom@tromey.com>
9641
9642 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9643
6fe87677
TT
96442019-05-04 Tom Tromey <tom@tromey.com>
9645
9646 * cli/cli-cmds.c (valid_command_p): Return bool.
9647
7f008c9e
TT
96482019-05-04 Tom Tromey <tom@tromey.com>
9649
9650 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9651 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9652
b6484282
RT
96532019-05-04 Raul Tambre <raul@tambre.ee>
9654
9655 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9656 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9657 operator for comparison.
9658
af97b416
TT
96592019-05-04 Tom Tromey <tom@tromey.com>
9660
9661 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9662 (lookup_partial_symbol, print_partial_symbols)
9663 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9664 (psymbol_compare): Update.
9665 (add_psymbol_to_bcache): Clear the entire psymbol.
9666 (maintenance_check_psymtabs): Update.
9667 * psympriv.h (struct partial_symbol): Don't derive from
9668 general_symbol_info.
9669 <obj_section, unrelocated_address, address,
9670 set_unrelocated_address>: Update.
9671 <ginfo>: New member.
9672 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9673 (debug_names::write_psymbols): Update.
9674
9d6d4be8
TV
96752019-05-04 Tom de Vries <tdevries@suse.de>
9676
9677 * contrib/cc-with-tweaks.sh: Support -n arg.
9678
66452beb
PW
96792019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9680
9681 * corelow.c (core_target::detach): Ensure frame cache and
9682 register caches are cleared.
9683 inferior.c (exit_inferior_1): Likewise.
9684
bde09ab7
TT
96852019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9686 Tom Tromey <tom@tromey.com>
9687
9688 * dictionary.c (collate_pending_symbols_by_language): Remove
9689 "struct" from foreach.
9690 * symtab.c (lookup_global_symbol_from_objfile)
9691 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9692 foreach.
9693 * ser-tcp.c (net_open): Remove "struct" from foreach.
9694 * objfiles.c (objfile_relocate, objfile_rebase)
9695 (objfile_has_symbols): Remove "struct" from foreach.
9696 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9697 from foreach.
9698 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9699 foreach.
9700 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9701 "struct" from foreach.
9702 * ada-lang.c (create_excep_cond_exprs)
9703 (ada_exception_catchpoint_cond_string): Remove "struct" from
9704 foreach.
9705
222a8d25
TT
97062019-05-03 Tom Tromey <tromey@adacore.com>
9707
9708 * ada-exp.y (convert_char_literal): Check suffix of each
9709 enumerator.
9710
fcd60b84
DP
97112019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9712
9713 PR ada/21406:
9714 * ada-exp.y (yywrap): Don't define.
9715 * ada-lex.l (%option): Add noyywrap
9716 (yywrap): Remove.
9717
5f2459c2
EZ
97182019-05-03 Eli Zaretskii <eliz@gnu.org>
9719
353ea2d1
EZ
9720 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9721 _WIN32_WINNT to the XP level, unless already defined to a higher
9722 level.
9723
9724 * unittests/parse-connection-spec-selftests.c:
9725 * ser-tcp.c:
9726 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9727 override.
9728
5f2459c2
EZ
9729 * symfile.c (find_separate_debug_file): Remove colon from the
9730 drive spec of DOS/Windows file names of the target, so that the
9731 file name produced from DEBUGDIR and the target's directory will
9732 be valid on DOS/Windows systems.
9733
80062eb9
AB
97342019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * rust-lang.c (val_print_struct): Handle printing structures
9737 containing strings.
9738
b8c05e85
TT
97392019-05-02 Tom Tromey <tromey@adacore.com>
9740
9741 * valarith.c (_initialize_valarith): Remove.
9742
4504bbde
TT
97432019-05-01 Tom Tromey <tromey@adacore.com>
9744
9745 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9746 bitfields.
9747
d48e62f4
TT
97482019-05-01 Tom Tromey <tromey@adacore.com>
9749
9750 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9751 for big-endian copies.
9752
15f18d14
AT
97532019-04-30 Ali Tamur <tamur@google.com>
9754 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9755 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9756 (read_3_bytes): New function.
9757
ab4ee614
JB
97582019-04-30 Joel Brobecker <brobecker@adacore.com>
9759
9760 * windows-nat.c (main_thread_id): Delete.
9761 (handle_output_debug_string): Replace main_thread_id by
9762 current_event.dwThreadId.
9763 (fake_create_process): Likewise.
9764 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9765 Do not set main_thread_id.
9766 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9767 current_event.dwThreadId.
9768 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9769
8ed5b76e
JB
97702019-04-30 Joel Brobecker <brobecker@adacore.com>
9771
9772 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9773 Use current_event.dwThreadId instead of main_thread_id.
9774
2ff0a947
TT
97752019-04-30 Tom Tromey <tromey@adacore.com>
9776
9777 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9778 (create_excep_cond_exprs): Iterate over program spaces.
9779 (ada_exception_catchpoint_cond_string): Examine all minimal
9780 symbols for exception types.
9781
a776957c
TT
97822019-04-30 Tom Tromey <tromey@adacore.com>
9783
9784 PR c++/24470:
9785 * dwarf2read.c (process_structure_scope): Handle case where type
9786 has template parameters but no symbol was created.
9787
bc68014d
AB
97882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9789 Chris January <chris.january@arm.com>
9790
9791 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9792 qualifier.
9793 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9794
f1fdc960
AB
97952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9796
9797 * f-typeprint.c (f_print_type): Update rules for printing
9798 whitespace.
9799 (f_type_print_varspec_suffix): Likewise.
9800
bf7a4de1
AB
98012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9802 Chris January <chris.january@arm.com>
9803
9804 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9805 function arguments.
9806
bbe75b9d
AB
98072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 * f-lang.c (build_fortran_types): Change name of void type to
9810 lower case.
9811 * f-typeprint.c (f_type_print_base): Print the name of the void
9812 type, rather than a fixed string.
9813 * f-valprint.c (f_decorations): Use lower case void string.
9814
1db455a7
AB
98152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9816 Chris January <chris.january@arm.com>
9817
9818 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9819 types for Fortran.
9820
b6d03bb2
AB
98212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9822 Chris January <chris.january@arm.com>
9823 David Lecomber <david.lecomber@arm.com>
9824
9825 * f-exp.y (BINOP_INTRINSIC): New token.
9826 (exp): New parser rule handling BINOP_INTRINSIC.
9827 (f77_keywords): Add new builtin procedures.
9828 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9829 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9830 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9831 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9832 (print_unop_subexp_f): New function.
9833 (print_binop_subexp_f): New function.
9834 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9835 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9836 (dump_subexp_body_f): Likewise.
9837 (operator_check_f): Likewise.
9838 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9839 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9840
83228e93
AB
98412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9844 UNOP_KIND.
9845 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9846 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9847 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9848 (operator_length_f): New fuction.
9849 (print_subexp_f): New function.
9850 (op_name_f): New function.
9851 (dump_subexp_body_f): New function.
9852 (operator_check_f): New function.
9853 (exp_descriptor_f): Replace standard expression handling functions
9854 with new functions.
9855 * gdb/fortran-operator.def: New file.
9856 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9857 * gdb/std-operator.def: Remove UNOP_KIND.
9858
6fdcd7cc
AB
98592019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9860
9861 * std-operator.def: Remove unbalanced, stray double quote
9862 character.
9863
2e62ab40
AB
98642019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9865 Chris January <chris.january@arm.com>
9866 Daniel Everett <daniel.everett@arm.com>
9867 Nick Forrington <nick.forrington@arm.com>
9868 Richard Bunt <richard.bunt@arm.com>
9869
9870 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9871 of depth when printing anonymous structs or unions.
9872 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9873 Don't print either the top-level value, or the children if the
9874 max-depth is exceeded.
9875 (ppscm_print_children): When printing the key of a map, allow one
9876 extra level of depth.
9877 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9878 print either the top-level value, or the children if the max-depth
9879 is exceeded.
9880 (print_children): When printing the key of a map, allow one extra
9881 level of depth.
9882 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9883 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9884 (user_print_options): Initialise max_depth field.
9885 (val_print_scalar_or_string_type_p): New function.
9886 (val_print): Check to see if the max depth has been reached.
9887 (val_print_check_max_depth): Define new function.
9888 (show_print_max_depth): New function.
9889 (_initialize_valprint): Add 'print max-depth' option.
9890 * valprint.h (struct value_print_options) <max_depth>: New field.
9891 (val_print_check_max_depth): Declare new function.
9892 * NEWS: Document new feature.
9893
4be290b2
AB
98942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9895
9896 * ada-lang.c (ada_language_defn): Initialise new field.
9897 * c-lang.c (c_is_string_type_p): New function.
9898 (c_language_defn): Initialise new field.
9899 (cplus_language_defn): Initialise new field.
9900 (asm_language_defn): Initialise new field.
9901 (minimal_language_defn): Initialise new field.
9902 * c-lang.h (c_is_string_type_p): Declare new function.
9903 * d-lang.c (d_language_defn): Initialise new field.
9904 * f-lang.c (f_is_string_type_p): New function.
9905 (f_language_defn): Initialise new field.
9906 * go-lang.c (go_is_string_type_p): New function.
9907 (go_language_defn): Initialise new field.
9908 * language.c (default_is_string_type_p): New function.
9909 (unknown_language_defn): Initialise new field.
9910 (auto_language_defn): Initialise new field.
9911 * language.h (struct language_defn) <la_is_string_type_p>: New
9912 member variable.
9913 (default_is_string_type_p): Declare new function.
9914 * m2-lang.c (m2_language_defn): Initialise new field.
9915 * objc-lang.c (objc_language_defn): Initialise new field.
9916 * opencl-lang.c (opencl_language_defn): Initialise new field.
9917 * p-lang.c (pascal_is_string_type_p): New function.
9918 (pascal_language_defn): Initialise new field.
9919 * rust-lang.c (rust_is_string_type_p): New function.
9920 (rust_language_defn): Initialise new field.
9921
721b08c6
AB
99222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9923
9924 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9925 New field.
9926 * ada-lang.c (ada_language_defn): Initialise new field.
9927 * c-lang.c (c_language_defn): Likewise.
9928 (cplus_language_defn): Likewise.
9929 (asm_language_defn): Likewise.
9930 (minimal_language_defn): Likewise.
9931 * d-lang.c (d_language_defn): Likewise.
9932 * f-lang.c (f_language_defn): Likewise.
9933 * go-lang.c (go_language_defn): Likewise.
9934 * language.c (unknown_language_defn): Likewise.
9935 (auto_language_defn): Likewise.
9936 * m2-lang.c (m2_language_defn): Likewise.
9937 * objc-lang.c (objc_language_defn): Likewise.
9938 * opencl-lang.c (opencl_language_defn): Likewise.
9939 * p-lang.c (pascal_language_defn): Likewise.
9940 * rust-lang.c (rust_language_defn): Likewise.
9941
fc913e53
AB
99422019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9943
9944 * ada-lang.c (ada_is_character_type): Change return type to bool.
9945 (ada_is_string_type): Likewise.
9946 * ada-lang.h (ada_is_character_type): Update declaration
9947 (ada_is_string_type): Likewise.
9948
fa731fa0
PW
99492019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9950
9951 Support style in 'frame|thread apply'
9952
9953 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9954 * record.c (record_start, record_stop): Update callers of
9955 execute_command_to_string with false.
9956 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9957 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9958 methods.
9959 (class string_file): New constructor with term_out parameter.
9960 Override methods term_out and can_emit_style_escape. New member
9961 term_out.
9962 (class stdio_file): Override can_emit_style_escape.
9963 (class tee_file): Override term_out and can_emit_style_escape.
9964 * utils.h (can_emit_style_escape): Remove.
9965 * utils.c (can_emit_style_escape): Likewise.
9966 Update all callers of can_emit_style_escape (SOMESTREAM) to
9967 SOMESTREAM->can_emit_style_escape.
9968 * source-cache.c (source_cache::get_source_lines): Likewise.
9969 * stack.c (frame_apply_command_count): Call execute_command_to_string
9970 passing the term_out characteristic of the current gdb_stdout.
9971 * thread.c (thr_try_catch_cmd): Likewise.
9972 * top.c (execute_command_to_string): pass term_out parameter
9973 to construct the string_file for the command output.
9974 * ui-file.c (term_cli_styling): New function (most code moved
9975 from utils.c can_emit_style_escape).
9976 (string_file::string_file, string_file::can_emit_style_escape,
9977 stdio_file::can_emit_style_escape, tee_file::term_out,
9978 tee_file::can_emit_style_escape): New functions.
9979
136afab8
PW
99802019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9981
9982 * NEWS: Mention the new set|show may-call-functions.
9983 * infcall.c (may_call_functions_p): New variable.
9984 (show_may_call_functions_p): New function.
9985 (call_function_by_hand_dummy): Throws an error if not
9986 may-call-functions.
9987 (_initialize_infcall): Call add_setshow_boolean_cmd for
9988 may-call-functions.
9989
725cbb63
KS
99902019-04-25 Keith Seitz <keiths@redhat.com>
9991
9992 PR c++/24367
9993 * cp-support.c (inspect_type): Don't attempt substitutions
9994 of symbol with the same name.
9995
3d1cbb78
TT
99962019-04-25 Tom Tromey <tromey@adacore.com>
9997
9998 PR gdb/24475:
9999 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10000 static.
10001
94aeb44b
TT
100022019-04-25 Tom Tromey <tromey@adacore.com>
10003
10004 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10005 rvalue reference.
10006 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10007 (gdb_xml_parser::parse): Use std::move.
10008 * python/python-internal.h (gdbpy_convert_exception): Take a const
10009 reference.
10010 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10011 std::move.
10012 * python/py-utils.c (gdbpy_convert_exception): Take a const
10013 reference.
10014 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10015 Use std::move.
10016 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10017 Use std::move.
10018 * mi/mi-main.c (mi_print_exception): Take a const reference.
10019 * main.c (handle_command_errors): Take a const reference.
10020 * linespec.c (parse_linespec): Use std::move.
10021 * infcall.c (run_inferior_call): Use std::move.
10022 (call_function_by_hand_dummy): Use std::move.
10023 * exec.c (try_open_exec_file): Use std::move.
10024 * exceptions.h (exception_print, exception_fprintf)
10025 (exception_print_same): Update.
10026 * exceptions.c (print_exception, exception_print)
10027 (exception_fprintf, exception_print_same): Change parameters to
10028 const reference.
10029 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10030 * common/new-op.c: Use std::move.
10031 * common/common-exceptions.h (struct gdb_exception): Add move
10032 constructor.
10033 (struct gdb_exception_error, struct gdb_exception_quit, struct
10034 gdb_quit_bad_alloc): Change constructor to move constructor.
10035 (throw_exception): Change parameter to rvalue reference.
10036 * common/common-exceptions.c (throw_exception): Take rvalue
10037 reference.
10038 * cli/cli-interp.c (safe_execute_command): Use std::move.
10039 * breakpoint.c (insert_bp_location, location_to_sals): Use
10040 std::move.
10041
680d7fd5
TT
100422019-04-25 Tom Tromey <tromey@adacore.com>
10043
10044 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10045 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10046 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10047 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10048 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10049 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10050 guile/scm-value.c: Use unpack.
10051 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10052 gdbscm_gdb_exception.
10053 (gdbscm_throw_gdb_exception): Likewise.
10054 (struct gdbscm_gdb_exception): New.
10055 (unpack): New function.
10056 (gdbscm_wrap): Use unpack.
10057
c6fdd8b2
TT
100582019-04-25 Tom Tromey <tromey@adacore.com>
10059
10060 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10061 (gdb_rl_callback_handler): Use std::move.
10062 * common/common-exceptions.h (struct gdb_exception): Add move
10063 assignment operator.
10064 (throw_exception_sjlj): Change "exception" to const reference.
10065 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10066 (throw_exception_sjlj): Change "exception" to const reference.
10067
cc06b668
TT
100682019-04-25 Tom Tromey <tromey@adacore.com>
10069
10070 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10071 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10072 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10073 Update.
10074 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10075 Update.
10076 * mi/mi-interp.c (mi_interp::exec): Update.
10077 * linespec.c (parse_linespec): Update.
10078 * infcall.c (run_inferior_call): Update.
10079 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10080 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10081 (gdbscm_lookup_global_symbol): Update.
10082 * guile/scm-param.c (gdbscm_parameter_value): Update.
10083 * guile/scm-frame.c (gdbscm_frame_read_register)
10084 (gdbscm_frame_read_var): Update.
10085 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10086 * exec.c (try_open_exec_file): Update.
10087 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10088 (gdb_rl_callback_handler): Update.
10089 * common/common-exceptions.h (exception_none): Don't declare.
10090 * common/common-exceptions.c (exception_none): Don't define.
10091 (struct catcher) <exception>: Update.
10092 * cli/cli-interp.c (safe_execute_command): Update.
10093 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10094
cf532bd1
AT
100952019-04-25 Ali Tamur <tamur@google.com>
10096
10097 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10098 (read_attribute_value): Likewise.
10099 (dwarf2_read_addr_index): Update comment.
10100 (read_str_index): Add DW_FORM_strx.
10101 (dwarf2_string_attr): Likewise.
10102 (dwarf2_const_value_attr): Likewise.
10103 (dump_die_shallow): Likewise.
10104 (dwarf2_fetch_constant_bytes): Likewise.
10105 (skip_form_bytes): Likewise.
10106 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10107
82433e3e
SDJ
101082019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10109
10110 PR corefiles/11608
10111 PR corefiles/18187
10112 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10113 OFFSET. Verify if current mapping contains an ELF header.
10114 (linux_find_memory_regions_full): Adjust call to
10115 dump_mapping_p.
10116
723adb65
SL
101172019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10118 Kang Li <kanglictf@gmail.com>
10119
10120 PR gdb/21600
10121
10122 * dwarf2-frame.c (read_initial_length): Be consistent about using
10123 unsigned representation of length.
10124 (decode_frame_entry_1): Likewise. Check for wraparound of
10125 end pointer as well as buffer overflow.
10126
596179f7
SDJ
101272019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10128
10129 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10130 "vq".
10131
a59240a4
TT
101322019-04-24 Tom Tromey <tromey@adacore.com>
10133
10134 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10135
f872fdbb
AB
101362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10137
10138 * s12z-tdep.c (s12z_unwind_pc): Delete.
10139 (s12z_unwind_sp): Delete.
10140 (s12z_gdbarch_init): Don't register deleted functions with
10141 gdbarch.
10142
b614e6f3
AB
101432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10144
10145 * rl78-tdep.c (rl78_unwind_sp): Delete.
10146 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10147
14faed38
AB
101482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10149
10150 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10151 (xstormy16_unwind_pc): Delete.
10152 (xstormy16_dummy_id): Delete.
10153 (xstormy16_gdbarch_init): Don't register deleted functions with
10154 gdbarch.
10155
541aad8a
AB
101562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10157
10158 * vax-tdep.c (vax_unwind_pc): Delete.
10159 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10160
29222070
AB
101612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * v850-tdep.c (v850_unwind_sp): Delete.
10164 (v850_unwind_pc): Delete.
10165 (v850_dummy_id): Delete.
10166 (v850_gdbarch_init): Don't register deleted functions with
10167 gdbarch.
10168
0f534d76
AB
101692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10170
10171 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10172 (tilegx_unwind_pc): Delete.
10173 (tilegx_unwind_dummy_id): Delete.
10174 (tilegx_gdbarch_init): Don't register deleted functions with
10175 gdbarch.
10176
1ba7b7f9
AB
101772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10178
10179 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10180 (tic6x_dummy_id): Delete.
10181 (tic6x_gdbarch_init): Don't register deleted functions with
10182 gdbarch.
10183
d31f262c
AB
101842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10185
10186 * sparc-tdep.c (sparc_unwind_pc): Delete.
10187 (sparc32_gdbarch_init): Don't register deleted function with
10188 gdbarch.
10189
6d14d64d
AB
101902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * sh-tdep.c (sh_unwind_sp): Delete.
10193 (sh_unwind_pc): Delete.
10194 (sh_dummy_id): Delete.
10195 (sh_gdbarch_init): Don't register deleted functions with
10196 gdbarch.
10197
a40dde9d
AB
101982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10199
10200 * score-tdep.c (score_unwind_sp): Delete.
10201 (score_unwind_pc): Delete.
10202 (score_dummy_id): Delete.
10203 (score_gdbarch_init): Don't register deleted functions with
10204 gdbarch.
10205
47c47d69
AB
102062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * rx-tdep.c (rx_unwind_pc): Delete.
10209 (rx_unwind_sp): Delete.
10210 (rx_dummy_id): Delete.
10211 (rx_gdbarch_init): Don't register deleted functions with
10212 gdbarch. Update comment.
10213
833a4480
AB
102142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10217 (rs6000_dummy_id): Delete.
10218 (rs6000_gdbarch_init): Don't register deleted functions with
10219 gdbarch.
10220
3f2cef49
AB
102212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * or1k-tdep.c (or1k_dummy_id): Delete.
10224 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10225
96acf884
AB
102262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10227
10228 * nios2-tdep.c (nios2_dummy_id): Delete.
10229 (nios2_unwind_sp): Delete.
10230 (nios2_gdbarch_init): Don't register deleted functions with
10231 gdbarch.
10232
ca0ab0aa
AB
102332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * nds32-tdep.c (nds32_dummy_id): Delete.
10236 (nds32_unwind_pc): Delete.
10237 (nds32_unwind_sp): Delete.
10238 (nds32_gdbarch_init): Don't register deleted functions with
10239 gdbarch.
10240
c8259044
AB
102412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * msp430-tdep.c (msp430_unwind_pc): Delete.
10244 (msp430_unwind_sp): Delete.
10245 (msp430_dummy_id): Delete.
10246 (msp430_gdbarch_init): Don't register deleted functions with
10247 gdbarch.
10248
27f113c8
AB
102492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 * moxie-tdep.c (moxie_unwind_sp): Delete.
10252 (moxie_unwind_pc): Delete.
10253 (moxie_dummy_id): Delete.
10254 (moxie_gdbarch_init): Don't register deleted functions with
10255 gdbarch.
10256
aee6c3cd
AB
102572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10260 (mn10300_unwind_pc): Delete.
10261 (mn10300_unwind_sp): Delete.
10262 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10263 mn10300_unwind_sp.
10264 (mn10300_frame_unwind_init): Don't register deleted functions with
10265 gdbarch.
10266
8e2b5aea
AB
102672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10268
10269 * mep-tdep.c (mep_unwind_pc): Delete.
10270 (mep_unwind_sp): Delete.
10271 (mep_dummy_id): Delete.
10272 (mep_gdbarch_init): Don't register deleted functions with
10273 gdbarch.
10274
43cf3ede
AB
102752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10276
10277 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10278 (m68hc11_unwind_sp): Delete.
10279 (m68hc11_gdbarch_init): Don't register deleted functions with
10280 gdbarch.
10281
5e79b7bb
AB
102822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 * m32r-tdep.c (m32r_unwind_sp): Delete.
10285 (m32r_unwind_pc): Delete.
10286 (m32r_dummy_id): Delete.
10287 (m32r_gdbarch_init): Don't register deleted functions with
10288 gdbarch.
10289
89b268d8
AB
102902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * m32c-tdep.c (m32c_unwind_pc): Delete.
10293 (m32c_unwind_sp): Delete.
10294 (m32c_dummy_id): Delete.
10295 (m32c_gdbarch_init): Don't register deleted functions with
10296 gdbarch.
10297
946c28d2
AB
102982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10299
10300 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10301 (lm32_unwind_pc): Delete.
10302 (lm32_dummy_id): Delete.
10303 (lm32_gdbarch_init): Don't register deleted functions with
10304 gdbarch.
10305
bf12844a
AB
103062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10309 (iq2000_unwind_pc): Delete.
10310 (iq2000_dummy_id): Delete.
10311 (iq2000_gdbarch_init): Don't register deleted functions with
10312 gdbarch.
10313
ecbc06d2
AB
103142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * nds32-tdep.c (nds32_type_align): Delete.
10317 (nds32_push_dummy_call): Use type_align instead.
10318
030197b4
AB
103192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10320
10321 * arm-tdep.c (arm_type_align): Only handle vector override case.
10322 (arm_push_dummy_call): Use type_align.
10323 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10324
b907456c
AB
103252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10326
10327 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10328 case.
10329 (pass_on_stack): Use type_align.
10330 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10331 function.
10332
9e97ba43
TT
103332019-04-23 Tom Tromey <tromey@adacore.com>
10334
10335 * dwarf2read.c (line_header::file_name_at): Remove unused
10336 overload.
10337
6892f601
TV
103382019-04-23 Tom de Vries <tdevries@suse.de>
10339
10340 PR gdb/24438
10341 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10342 invocation.
10343
336d760d
AT
10344
103452019-03-27 Ali Tamur <tamur@google.com>
10346
10347 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10348 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10349 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10350 (dwarf_expr_context::get_addr_index): Likewise
10351 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10352 (symbol_needs_eval_context::get_addr_index): Likewise
10353 (disassemble_dwarf_expression): Add DW_OP_addrx
10354 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10355 (read_cutu_die_from_dwo): Update comment
10356 (skip_one_die): Add DW_FORM_addrx
10357 (read_attribute_value): Likewise
10358 (var_decode_location): Add DW_OP_addrx
10359 (dwarf2_const_value_attr): Add DW_FORM_addrx
10360 (dump_die_shallow): Likewise
10361 (dwarf2_fetch_constant_bytes): Likewise
10362 (decode_locdesc): Add DW_OP_addrx
10363 (skip_form_bytes): Add DW_FORM_addrx
10364
ad9d13f8
AT
103652019-04-22 Ali Tamur <tamur@google.com>
10366
10367 * MAINTAINERS (Write After Approval): Add self.
10368
d70cc3ba
SM
103692019-04-22 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10372 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10373 (open_symbol_file_object): Likewise.
10374 (svr4_default_sos): Add info parameter.
10375 (svr4_read_so_list): Likewise.
10376 (svr4_current_sos_direct): Adjust functions calls to pass down
10377 info.
10378 (svr4_current_sos_1): Add info parameter.
10379 (svr4_current_sos): Call get_svr4_info, pass info down to
10380 svr4_current_sos_1.
10381 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10382 get_svr4_info.
10383 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10384 get_svr4_info.
10385 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10386 to get_svr4_info.
10387 (probes_table_remove_objfile_probes): Likewise.
10388 (register_solib_event_probe): Add info parameter.
10389 (solist_update_incremental): Pass info parameter down to
10390 svr4_read_so_list.
10391 (disable_probes_interface): Add info parameter.
10392 (svr4_handle_solib_event): Pass current_program_space to
10393 get_svr4_info. Adjust disable_probes_interface cleanup.
10394 (svr4_create_probe_breakpoints): Add info parameter, pass it
10395 down to register_solib_event_probe.
10396 (svr4_create_solib_event_breakpoints): Add info parameter,
10397 pass it down to svr4_create_probe_breakpoints.
10398 (enable_break): Pass info down to
10399 svr4_create_solib_event_breakpoints.
10400 (svr4_solib_create_inferior_hook): Pass current_program_space to
10401 get_svr4_info.
10402 (svr4_clear_solib): Likewise.
10403
7905fc35
PA
104042019-04-22 Pedro Alves <palves@redhat.com>
10405
10406 * solib-svr4.c (svr4_free_objfile_observer): New.
10407 (probe_and_action::objfile): New field.
10408 (probes_table_htab_remove_objfile_probes)
10409 (probes_table_remove_objfile_probes): New functions.
10410 (register_solib_event_probe): Add 'objfile' parameter. Store it
10411 in the new probe_and_action. Don't store the probe in 'lookup'.
10412 (svr4_create_probe_breakpoints): Pass objfile to
10413 register_solib_event_probe.
10414 (_initialize_svr4_solib): Register a free_objfile observer.
10415
fb881986
TT
104162019-04-19 Tom Tromey <tom@tromey.com>
10417
10418 * common/queue.h: Remove.
10419
8732db6c
TT
104202019-04-19 Tom Tromey <tom@tromey.com>
10421
10422 * event-loop.c: Don't include "common/queue.h".
10423
97dfbadd
TT
104242019-04-19 Tom Tromey <tom@tromey.com>
10425
10426 * remote.c (remote_target): Use delete.
10427 * remote-notif.h: Include <list>, not "common/queue.h".
10428 (notif_client_p): Remove typedef.
10429 (remote_notif_state): Add constructor, destructor, initializer.
10430 <notif_queue>: Now a std::list.
10431 (remote_notif_state_xfree): Don't declare.
10432 * remote-notif.c (remote_notif_process, handle_notification)
10433 (remote_notif_state_allocate): Update.
10434 (~remote_notif_state): Rename from remote_notif_state_xfree.
10435
cf250e36
TT
104362019-04-19 Tom Tromey <tom@tromey.com>
10437
10438 * symfile.c (reread_symbols): Update.
10439 * objfiles.c (objfile_register_static_link)
10440 (objfile_lookup_static_link): Update
10441 (~objfile) Don't delete static_links.
10442 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10443
61f4b350
TT
104442019-04-19 Tom Tromey <tom@tromey.com>
10445
10446 * type-stack.h (struct type_stack) <insert>: Constify string.
10447 * type-stack.c (type_stack::insert): Constify string.
10448 * gdbtypes.h (lookup_template_type): Update.
10449 (address_space_name_to_int): Update.
10450 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10451 const.
10452 (lookup_template_type): Make name const.
10453 * c-exp.y: Update rules.
10454 (lex_one_token, classify_name, classify_inner_name)
10455 (c_print_token): Update.
10456 * p-exp.y: Update rules.
10457 (yylex): Update.
10458 * f-exp.y: Update rules.
10459 (yylex): Update.
10460 * d-exp.y: Update rules.
10461 (lex_one_token, classify_name, classify_inner_name): Update.
10462 * parse.c (write_dollar_variable, copy_name): Return std::string.
10463 * parser-defs.h (copy_name): Change return type.
10464 * m2-exp.y: Update rules.
10465 (yylex): Update.
10466 * go-exp.y (lex_one_token): Update.
10467 Update rules.
10468 (classify_unsafe_function, classify_packaged_name)
10469 (classify_name, yylex): Update.
10470
189b8c2e
ST
104712019-04-19 Sergei Trofimovich <siarheit@google.com>
10472
10473 * configure.ac: add --enable-source-highlight switch.
10474 * configure: Regenerate.
10475 * top.c (print_gdb_version): plumb --enable-source-highlight
10476 status to "show configuration".
10477
8ecb59f8
TT
104782019-04-19 Tom Tromey <tromey@adacore.com>
10479
10480 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10481 Check ADA_TYPE_P.
10482 (empty_record, ada_template_to_fixed_record_type_1)
10483 (template_to_static_fixed_type)
10484 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10485 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10486 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10487 macros.
10488
62160ec9
TT
104892019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10490
10491 PR symtab/24423:
10492 * source.c (print_source_lines_base): Advance "iter" when a
10493 control character is seen.
10494
f2ae8bc8
PW
104952019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10496
10497 * inferior.h (struct infcall_suspend_state_deleter):
10498 Catch exception in destructor to avoid crash.
10499
d563b953
PW
105002019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10501
10502 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10503 close to the add_com "shell".
10504
dc34c897
TT
105052019-04-18 Tom Tromey <tromey@adacore.com>
10506
10507 * process-stratum-target.h (class process_stratum_target)
10508 <stratum>: Add "final".
10509
a12e5744
TT
105102019-04-17 Tom Tromey <tromey@adacore.com>
10511
10512 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10513 against nullptr before use.
10514
a7e559cc
AH
105152019-04-17 Alan Hayward <alan.hayward@arm.com>
10516
10517 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10518
c01660c6
AB
105192019-04-17 Jim Wilson <jimw@sifive.com>
10520 Andrew Burgess <andrew.burgess@embecosm.com>
10521
10522 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10523 code read might fail, assume 4-byte breakpoint in that case.
10524
4aa866af
LS
105252019-04-15 Leszek Swirski <leszeks@google.com>
10526
10527 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10528 rather than a hand-rolled POD check when checking for forced MEMORY
10529 classification.
10530
48574d91
AH
105312019-04-15 Alan Hayward <alan.hayward@arm.com>
10532
10533 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10534 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10535 function.
10536 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10537 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10538 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10539 declaration.
10540
4da037ef
AH
105412019-04-15 Alan Hayward <alan.hayward@arm.com>
10542
10543 * aarch64-linux-nat.c
10544 (aarch64_linux_nat_target::thread_architecture): Add override.
10545 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10546 each VQ.
10547
ccb8d7e8
AH
105482019-04-15 Alan Hayward <alan.hayward@arm.com>
10549
10550 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10551
35add35e
AB
105522019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10553
10554 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10555 target types of size 96-bits, add some additional comments, and
10556 check that the builtin type we found was the correct size.
10557
51196bbc
EZ
105582019-04-12 Eli Zaretskii <eliz@gnu.org>
10559
10560 * utils.c (prompt_for_continue): Don't restore the styling at the
10561 end, as applied_style has the wrong value. This fixes styling in
10562 long lists of file names that are interrupted by the "Continue?"
10563 prompt.
10564
62253a61
AB
105652019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10566
10567 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10568 * c-lang.c (c_language_defn): Likewise.
10569 (cplus_language_defn): Likewise.
10570 (asm_language_defn): Likewise.
10571 (minimal_language_defn): Likewise.
10572 * d-lang.c (d_language_defn): Likewise.
10573 * f-lang.c (f_language_defn): Likewise.
10574 * go-lang.c (go_language_defn): Likewise.
10575 * language.c (unknown_language_defn): Likewise.
10576 (auto_language_defn): Likewise.
10577 * language.h (struct language_defn): Remove la_magic field.
10578 (LANG_MAGIC): Delete.
10579 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10580 * objc-lang.c (objc_language_defn): Likewise.
10581 * opencl-lang.c (opencl_language_defn): Likewise.
10582 * p-lang.c (pascal_language_defn): Likewise.
10583 * rust-lang.c (rust_language_defn): Likewise.
10584
a9158a86
AB
105852019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10586
10587 * riscv-tdep.c (riscv_type_align): New function.
10588 (riscv_type_alignment): Delete.
10589 (riscv_arg_location): Use 'type_align'.
10590 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10591
41077b66
AB
105922019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10593
10594 * gdbtypes.c (type_align): A struct with no non-static fields also
10595 has alignment of 1.
10596
9f0272f8
AB
105972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10598
10599 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10600 component to 0.
10601 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10602 member.
10603 (riscv_struct_info::analyse): New implementation using new
10604 analyse_inner member function.
10605 (riscv_struct_info::field_offset): New member function.
10606 (riscv_struct_info::m_offsets): New member variable.
10607 (riscv_struct_info::analyse_inner): New private member function,
10608 takes the old implementation of riscv_struct_info::analyse but
10609 extended to track field offsets.
10610 (riscv_call_arg_struct): Update the struct folding special cases
10611 to handle cases where empty C++ structs, which are non-zero
10612 length, are found.
10613 (riscv_arg_location): Initialise the length of each location, a
10614 non-zero length now indicates the location is in use.
10615 (riscv_push_dummy_call): Allow for the first location having a
10616 non-zero offset when setting up arguments.
10617 (riscv_return_value): Likewise, but for return values.
10618
02cf60c7
TT
106192019-04-11 Tom Tromey <tromey@adacore.com>
10620
10621 * utils.c (internal_vproblem): Make "msg" const.
10622
68811f8f
AH
106232019-04-11 Alan Hayward <alan.hayward@arm.com>
10624
10625 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10626 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10627 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10628 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10629
3f52fdbc
KB
106302019-04-10 Kevin Buettner <kevinb@redhat.com>
10631
10632 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10633 function.
10634 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10635 of amd64_collect_native_gregset.
10636 (amd64_linux_nat_target::store_registers): Likewise.
10637
e9ad22ee
TT
106382019-04-10 Tom Tromey <tom@tromey.com>
10639
10640 * symtab.c (lookup_global_symbol_from_objfile)
10641 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10642 * objfiles.h (class separate_debug_iterator): New.
10643 (class separate_debug_range): New.
10644 (struct objfile) <separate_debug_objfiles>: New method.
10645 (objfile_separate_debug_iterate): Don't declare.
10646 * objfiles.c (separate_debug_iterator::operator++): Rename from
10647 objfile_separate_debug_iterate.
10648 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10649 iterator.
10650 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10651 iterator.
10652
ee371134
TT
106532019-04-10 Tom Tromey <tom@tromey.com>
10654
10655 * symfile.c (reread_symbols): Remove old comment.
10656 * objfiles.c (free_all_objfiles): Fix a typo.
10657
bf227d61
TT
106582019-04-10 Tom Tromey <tom@tromey.com>
10659
10660 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10661 * minsyms.c (lookup_minimal_symbol): Use foreach.
10662 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10663 (lookup_minimal_symbol_solib_trampoline): Likewise.
10664 * symfile.c (reread_symbols): Use foreach.
10665
8dc433a0
TT
106662019-04-09 Ivan Begert <ivanbegert@gmail.com>
10667 Tom Tromey <tromey@adacore.com>
10668
10669 PR rust/24414:
10670 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10671 (rust_lex_int_test): Change "value" to be LONGEST.
10672 (rust_lex_tests): Add test for long integer literal.
10673
9ab8741a
TT
106742019-04-09 Tom Tromey <tromey@adacore.com>
10675
10676 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10677 to bool.
10678 (extended_remote_target::attach): Update.
10679 (remote_target::remote_notice_new_inferior): Update.
10680 (remote_target::add_current_inferior_and_thread): Update.
10681 * inferior.c (exit_inferior_1): Use "false".
10682 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10683
e242fd12
SM
106842019-04-09 Simon Marchi <simon.marchi@efficios.com>
10685
9ca1957f 10686 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10687 the "start" command.
10688
2b0c8b01
KB
106892019-04-08 Kevin Buettner <kevinb@redhat.com>
10690
10691 * python/py-inferior.c (infpy_thread_from_thread_handle):
10692 Adjust comments to reflect renaming of thread_from_thread_handle
10693 to thread_from_handle. Adjust keywords. Fix type error message.
10694 (inferior_object_methods): Add thread_from_handle. Retain
10695 thread_from_thread_handle, but mark it as deprecated.
10696
50a82723
KB
106972019-04-08 Kevin Buettner <kevinb@redhat.com>
10698
10699 * gdbthread.h (find_thread_by_handle): Revise declaration.
10700 * thread.c (find_thread_by_handle): Likewise. Adjust
10701 implementation too.
10702 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10703 support for buffer objects as handles.
10704
cf63b016
KB
107052019-04-08 Kevin Buettner <kevinb@redhat.com>
10706
10707 * python/py-infthread.c (thpy_thread_handle): New function.
10708 (thread_object_methods): Register thpy_thread_handle.
10709
3d6c6204
KB
107102019-04-08 Kevin Buettner <kevinb@redhat.com>
10711
10712 * gdbthread.h (thread_to_thread_handle): Declare.
10713 * thread.c (gdbtypes.h): Include.
10714 (thread_to_thread_handle): New function.
10715
10716 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10717 (target_thread_info_to_thread_handle): Declare.
10718 * target.c (target_thread_info_to_thread_handle): New function.
10719 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10720 * target-delegates.c: Regenerate.
10721
10722 * linux-thread-db.c (class thread_db_target): Add method
10723 thread_info_to_thread_handle.
10724 (thread_db_target::thread_info_to_thread_handle): Define.
10725 * remote.c (class remote_target): Add new method
10726 thread_info_to_thread_handle.
10727 (remote_target::thread_info_to_thread_handle): Define.
10728
56be6ea8
PA
107292019-04-08 Pedro Alves <palves@redhat.com>
10730
10731 * common/common-exceptions.c (throw_exception): Don't create
10732 named object to throw; throw directly.
10733 (throw_it): Likewise. Don't initialize gdb_exception::message
10734 here, with new; pass FMT and AP to the ctor instead.
10735 * common/common-exceptions.h: Include <string>.
10736 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10737 const char *, va_list)): New ctor. Use std::make_shared.
10738 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10739 errors)): Delete.
10740 (gdb_exception_error::gdb_exception_error(enum errors, const char
10741 *, va_list)): New.
10742 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10743 Add assertion.
10744 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10745 errors)): Delete.
10746 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10747 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10748 Add assertion.
10749
eedc3f4f
TT
107502019-04-08 Tom Tromey <tom@tromey.com>
10751
10752 * valops.c (value_rtti_indirect_type): Replace throw_exception
10753 with throw.
10754 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10755 with throw.
10756 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10757 throw.
10758 * target.c (target_translate_tls_address): Replace throw_exception
10759 with throw.
10760 * stack.c (frame_apply_command_count): Replace throw_exception
10761 with throw.
10762 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10763 throw.
10764 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10765 with throw.
10766 * rs6000-tdep.c (rs6000_frame_cache)
10767 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10768 * remote.c: Replace throw_exception with throw.
10769 * record-full.c (record_full_message, record_full_wait_1)
10770 (record_full_restore): Replace throw_exception with throw.
10771 * record-btrace.c:
10772 (get_thread_current_frame_id, record_btrace_start_replaying)
10773 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10774 (cmd_record_btrace_start): Replace throw_exception with throw.
10775 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10776 throw.
10777 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10778 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10779 * linespec.c:
10780 (find_linespec_symbols): Replace throw_exception with throw.
10781 * infrun.c (displaced_step_prepare, resume): Replace
10782 throw_exception with throw.
10783 * infcmd.c (post_create_inferior): Replace throw_exception with
10784 throw.
10785 * inf-loop.c (inferior_event_handler): Replace throw_exception
10786 with throw.
10787 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10788 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10789 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10790 (get_prev_frame_always, get_frame_pc_if_available)
10791 (get_frame_address_in_block_if_available, get_frame_language):
10792 Replace throw_exception with throw.
10793 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10794 throw_exception with throw.
10795 * eval.c (fetch_subexp_value, evaluate_var_value)
10796 (evaluate_funcall, evaluate_subexp_standard): Replace
10797 throw_exception with throw.
10798 * dwarf2loc.c (call_site_find_chain)
10799 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10800 Replace throw_exception with throw.
10801 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10802 with throw.
10803 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10804 throw.
10805 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10806 * completer.c (complete_line_internal): Replace throw_exception
10807 with throw.
10808 * compile/compile-object-run.c (compile_object_run): Replace
10809 throw_exception with throw.
10810 * cli/cli-script.c (process_next_line): Replace throw_exception
10811 with throw.
10812 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10813 (btrace_enable, btrace_maint_update_pt_packets): Replace
10814 throw_exception with throw.
10815 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10816 throw_exception with throw.
10817 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10818 throw_exception with throw.
10819 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10820 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10821 * aarch64-tdep.c (aarch64_make_prologue_cache)
10822 (aarch64_make_stub_cache): Replace throw_exception with throw.
10823
26003a20
TT
108242019-04-08 Tom Tromey <tom@tromey.com>
10825
10826 * common/common-exceptions.c (throw_exception): Rename from
10827 throw_exception_cxx. Remove old copy. Make argument const.
10828 (throw_it): Create and throw exception objects directly.
10829 * common/common-exceptions.h (throw_exception): Make argument
10830 const.
10831 (struct gdb_exception_error): Add constructor.
10832 (struct gdb_exception_quit): Add constructor.
10833
d272eb37
TT
108342019-04-08 Tom Tromey <tom@tromey.com>
10835
10836 * common/common-exceptions.h (exception_rethrow): Don't declare.
10837 (TRY_SJLJ): Update comment.
10838 (TRY, CATCH, END_CATCH): Remove.
10839 * common/common-exceptions.c (exception_rethrow): Remove.
10840
230d2906
TT
108412019-04-08 Tom Tromey <tom@tromey.com>
10842
10843 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10844 Remove.
10845 (gdb_exception_error): Rename from
10846 gdb_exception_RETURN_MASK_ERROR.
10847 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10848 (gdb_quit_bad_alloc): Update.
10849 * aarch64-tdep.c: Update.
10850 * ada-lang.c: Update.
10851 * ada-typeprint.c: Update.
10852 * ada-valprint.c: Update.
10853 * amd64-tdep.c: Update.
10854 * arch-utils.c: Update.
10855 * break-catch-throw.c: Update.
10856 * breakpoint.c: Update.
10857 * btrace.c: Update.
10858 * c-varobj.c: Update.
10859 * cli/cli-cmds.c: Update.
10860 * cli/cli-interp.c: Update.
10861 * cli/cli-script.c: Update.
10862 * common/common-exceptions.c: Update.
10863 * common/new-op.c: Update.
10864 * common/selftest.c: Update.
10865 * compile/compile-c-symbols.c: Update.
10866 * compile/compile-cplus-symbols.c: Update.
10867 * compile/compile-object-load.c: Update.
10868 * compile/compile-object-run.c: Update.
10869 * completer.c: Update.
10870 * corelow.c: Update.
10871 * cp-abi.c: Update.
10872 * cp-support.c: Update.
10873 * cp-valprint.c: Update.
10874 * darwin-nat.c: Update.
10875 * disasm-selftests.c: Update.
10876 * dtrace-probe.c: Update.
10877 * dwarf-index-cache.c: Update.
10878 * dwarf-index-write.c: Update.
10879 * dwarf2-frame-tailcall.c: Update.
10880 * dwarf2-frame.c: Update.
10881 * dwarf2loc.c: Update.
10882 * dwarf2read.c: Update.
10883 * eval.c: Update.
10884 * event-loop.c: Update.
10885 * event-top.c: Update.
10886 * exec.c: Update.
10887 * f-valprint.c: Update.
10888 * fbsd-tdep.c: Update.
10889 * frame-unwind.c: Update.
10890 * frame.c: Update.
10891 * gdbtypes.c: Update.
10892 * gnu-v3-abi.c: Update.
10893 * guile/guile-internal.h: Update.
10894 * guile/scm-block.c: Update.
10895 * guile/scm-breakpoint.c: Update.
10896 * guile/scm-cmd.c: Update.
10897 * guile/scm-disasm.c: Update.
10898 * guile/scm-frame.c: Update.
10899 * guile/scm-lazy-string.c: Update.
10900 * guile/scm-math.c: Update.
10901 * guile/scm-param.c: Update.
10902 * guile/scm-ports.c: Update.
10903 * guile/scm-pretty-print.c: Update.
10904 * guile/scm-symbol.c: Update.
10905 * guile/scm-symtab.c: Update.
10906 * guile/scm-type.c: Update.
10907 * guile/scm-value.c: Update.
10908 * i386-linux-tdep.c: Update.
10909 * i386-tdep.c: Update.
10910 * inf-loop.c: Update.
10911 * infcall.c: Update.
10912 * infcmd.c: Update.
10913 * infrun.c: Update.
10914 * jit.c: Update.
10915 * language.c: Update.
10916 * linespec.c: Update.
10917 * linux-fork.c: Update.
10918 * linux-nat.c: Update.
10919 * linux-tdep.c: Update.
10920 * linux-thread-db.c: Update.
10921 * main.c: Update.
10922 * mi/mi-cmd-break.c: Update.
10923 * mi/mi-cmd-stack.c: Update.
10924 * mi/mi-interp.c: Update.
10925 * mi/mi-main.c: Update.
10926 * objc-lang.c: Update.
10927 * p-valprint.c: Update.
10928 * parse.c: Update.
10929 * ppc-linux-tdep.c: Update.
10930 * printcmd.c: Update.
10931 * python/py-arch.c: Update.
10932 * python/py-breakpoint.c: Update.
10933 * python/py-cmd.c: Update.
10934 * python/py-finishbreakpoint.c: Update.
10935 * python/py-frame.c: Update.
10936 * python/py-framefilter.c: Update.
10937 * python/py-gdb-readline.c: Update.
10938 * python/py-inferior.c: Update.
10939 * python/py-infthread.c: Update.
10940 * python/py-lazy-string.c: Update.
10941 * python/py-linetable.c: Update.
10942 * python/py-objfile.c: Update.
10943 * python/py-param.c: Update.
10944 * python/py-prettyprint.c: Update.
10945 * python/py-progspace.c: Update.
10946 * python/py-record-btrace.c: Update.
10947 * python/py-record.c: Update.
10948 * python/py-symbol.c: Update.
10949 * python/py-type.c: Update.
10950 * python/py-unwind.c: Update.
10951 * python/py-utils.c: Update.
10952 * python/py-value.c: Update.
10953 * python/python.c: Update.
10954 * record-btrace.c: Update.
10955 * record-full.c: Update.
10956 * remote-fileio.c: Update.
10957 * remote.c: Update.
10958 * riscv-tdep.c: Update.
10959 * rs6000-aix-tdep.c: Update.
10960 * rs6000-tdep.c: Update.
10961 * rust-exp.y: Update.
10962 * rust-lang.c: Update.
10963 * s390-tdep.c: Update.
10964 * selftest-arch.c: Update.
10965 * solib-dsbt.c: Update.
10966 * solib-frv.c: Update.
10967 * solib-spu.c: Update.
10968 * solib-svr4.c: Update.
10969 * solib.c: Update.
10970 * sparc64-linux-tdep.c: Update.
10971 * stack.c: Update.
10972 * symfile-mem.c: Update.
10973 * symmisc.c: Update.
10974 * target.c: Update.
10975 * thread.c: Update.
10976 * top.c: Update.
10977 * tracefile-tfile.c: Update.
10978 * tui/tui.c: Update.
10979 * typeprint.c: Update.
10980 * unittests/cli-utils-selftests.c: Update.
10981 * unittests/parse-connection-spec-selftests.c: Update.
10982 * valops.c: Update.
10983 * valprint.c: Update.
10984 * value.c: Update.
10985 * varobj.c: Update.
10986 * windows-nat.c: Update.
10987 * x86-linux-nat.c: Update.
10988 * xml-support.c: Update.
10989
a70b8144
TT
109902019-04-08 Tom Tromey <tom@tromey.com>
10991
10992 * xml-support.c: Use C++ exception handling.
10993 * x86-linux-nat.c: Use C++ exception handling.
10994 * windows-nat.c: Use C++ exception handling.
10995 * varobj.c: Use C++ exception handling.
10996 * value.c: Use C++ exception handling.
10997 * valprint.c: Use C++ exception handling.
10998 * valops.c: Use C++ exception handling.
10999 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11000 handling.
11001 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11002 * typeprint.c: Use C++ exception handling.
11003 * tui/tui.c: Use C++ exception handling.
11004 * tracefile-tfile.c: Use C++ exception handling.
11005 * top.c: Use C++ exception handling.
11006 * thread.c: Use C++ exception handling.
11007 * target.c: Use C++ exception handling.
11008 * symmisc.c: Use C++ exception handling.
11009 * symfile-mem.c: Use C++ exception handling.
11010 * stack.c: Use C++ exception handling.
11011 * sparc64-linux-tdep.c: Use C++ exception handling.
11012 * solib.c: Use C++ exception handling.
11013 * solib-svr4.c: Use C++ exception handling.
11014 * solib-spu.c: Use C++ exception handling.
11015 * solib-frv.c: Use C++ exception handling.
11016 * solib-dsbt.c: Use C++ exception handling.
11017 * selftest-arch.c: Use C++ exception handling.
11018 * s390-tdep.c: Use C++ exception handling.
11019 * rust-lang.c: Use C++ exception handling.
11020 * rust-exp.y: Use C++ exception handling.
11021 * rs6000-tdep.c: Use C++ exception handling.
11022 * rs6000-aix-tdep.c: Use C++ exception handling.
11023 * riscv-tdep.c: Use C++ exception handling.
11024 * remote.c: Use C++ exception handling.
11025 * remote-fileio.c: Use C++ exception handling.
11026 * record-full.c: Use C++ exception handling.
11027 * record-btrace.c: Use C++ exception handling.
11028 * python/python.c: Use C++ exception handling.
11029 * python/py-value.c: Use C++ exception handling.
11030 * python/py-utils.c: Use C++ exception handling.
11031 * python/py-unwind.c: Use C++ exception handling.
11032 * python/py-type.c: Use C++ exception handling.
11033 * python/py-symbol.c: Use C++ exception handling.
11034 * python/py-record.c: Use C++ exception handling.
11035 * python/py-record-btrace.c: Use C++ exception handling.
11036 * python/py-progspace.c: Use C++ exception handling.
11037 * python/py-prettyprint.c: Use C++ exception handling.
11038 * python/py-param.c: Use C++ exception handling.
11039 * python/py-objfile.c: Use C++ exception handling.
11040 * python/py-linetable.c: Use C++ exception handling.
11041 * python/py-lazy-string.c: Use C++ exception handling.
11042 * python/py-infthread.c: Use C++ exception handling.
11043 * python/py-inferior.c: Use C++ exception handling.
11044 * python/py-gdb-readline.c: Use C++ exception handling.
11045 * python/py-framefilter.c: Use C++ exception handling.
11046 * python/py-frame.c: Use C++ exception handling.
11047 * python/py-finishbreakpoint.c: Use C++ exception handling.
11048 * python/py-cmd.c: Use C++ exception handling.
11049 * python/py-breakpoint.c: Use C++ exception handling.
11050 * python/py-arch.c: Use C++ exception handling.
11051 * printcmd.c: Use C++ exception handling.
11052 * ppc-linux-tdep.c: Use C++ exception handling.
11053 * parse.c: Use C++ exception handling.
11054 * p-valprint.c: Use C++ exception handling.
11055 * objc-lang.c: Use C++ exception handling.
11056 * mi/mi-main.c: Use C++ exception handling.
11057 * mi/mi-interp.c: Use C++ exception handling.
11058 * mi/mi-cmd-stack.c: Use C++ exception handling.
11059 * mi/mi-cmd-break.c: Use C++ exception handling.
11060 * main.c: Use C++ exception handling.
11061 * linux-thread-db.c: Use C++ exception handling.
11062 * linux-tdep.c: Use C++ exception handling.
11063 * linux-nat.c: Use C++ exception handling.
11064 * linux-fork.c: Use C++ exception handling.
11065 * linespec.c: Use C++ exception handling.
11066 * language.c: Use C++ exception handling.
11067 * jit.c: Use C++ exception handling.
11068 * infrun.c: Use C++ exception handling.
11069 * infcmd.c: Use C++ exception handling.
11070 * infcall.c: Use C++ exception handling.
11071 * inf-loop.c: Use C++ exception handling.
11072 * i386-tdep.c: Use C++ exception handling.
11073 * i386-linux-tdep.c: Use C++ exception handling.
11074 * guile/scm-value.c: Use C++ exception handling.
11075 * guile/scm-type.c: Use C++ exception handling.
11076 * guile/scm-symtab.c: Use C++ exception handling.
11077 * guile/scm-symbol.c: Use C++ exception handling.
11078 * guile/scm-pretty-print.c: Use C++ exception handling.
11079 * guile/scm-ports.c: Use C++ exception handling.
11080 * guile/scm-param.c: Use C++ exception handling.
11081 * guile/scm-math.c: Use C++ exception handling.
11082 * guile/scm-lazy-string.c: Use C++ exception handling.
11083 * guile/scm-frame.c: Use C++ exception handling.
11084 * guile/scm-disasm.c: Use C++ exception handling.
11085 * guile/scm-cmd.c: Use C++ exception handling.
11086 * guile/scm-breakpoint.c: Use C++ exception handling.
11087 * guile/scm-block.c: Use C++ exception handling.
11088 * guile/guile-internal.h: Use C++ exception handling.
11089 * gnu-v3-abi.c: Use C++ exception handling.
11090 * gdbtypes.c: Use C++ exception handling.
11091 * frame.c: Use C++ exception handling.
11092 * frame-unwind.c: Use C++ exception handling.
11093 * fbsd-tdep.c: Use C++ exception handling.
11094 * f-valprint.c: Use C++ exception handling.
11095 * exec.c: Use C++ exception handling.
11096 * event-top.c: Use C++ exception handling.
11097 * event-loop.c: Use C++ exception handling.
11098 * eval.c: Use C++ exception handling.
11099 * dwarf2read.c: Use C++ exception handling.
11100 * dwarf2loc.c: Use C++ exception handling.
11101 * dwarf2-frame.c: Use C++ exception handling.
11102 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11103 * dwarf-index-write.c: Use C++ exception handling.
11104 * dwarf-index-cache.c: Use C++ exception handling.
11105 * dtrace-probe.c: Use C++ exception handling.
11106 * disasm-selftests.c: Use C++ exception handling.
11107 * darwin-nat.c: Use C++ exception handling.
11108 * cp-valprint.c: Use C++ exception handling.
11109 * cp-support.c: Use C++ exception handling.
11110 * cp-abi.c: Use C++ exception handling.
11111 * corelow.c: Use C++ exception handling.
11112 * completer.c: Use C++ exception handling.
11113 * compile/compile-object-run.c: Use C++ exception handling.
11114 * compile/compile-object-load.c: Use C++ exception handling.
11115 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11116 * compile/compile-c-symbols.c: Use C++ exception handling.
11117 * common/selftest.c: Use C++ exception handling.
11118 * common/new-op.c: Use C++ exception handling.
11119 * cli/cli-script.c: Use C++ exception handling.
11120 * cli/cli-interp.c: Use C++ exception handling.
11121 * cli/cli-cmds.c: Use C++ exception handling.
11122 * c-varobj.c: Use C++ exception handling.
11123 * btrace.c: Use C++ exception handling.
11124 * breakpoint.c: Use C++ exception handling.
11125 * break-catch-throw.c: Use C++ exception handling.
11126 * arch-utils.c: Use C++ exception handling.
11127 * amd64-tdep.c: Use C++ exception handling.
11128 * ada-valprint.c: Use C++ exception handling.
11129 * ada-typeprint.c: Use C++ exception handling.
11130 * ada-lang.c: Use C++ exception handling.
11131 * aarch64-tdep.c: Use C++ exception handling.
11132
3d6e9d23
TT
111332019-04-08 Tom Tromey <tom@tromey.com>
11134
11135 * xml-support.c (gdb_xml_parser::parse): Update.
11136 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11137 * value.c (show_convenience): Update.
11138 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11139 (test_parse_flags_qcs): Update.
11140 * thread.c (thr_try_catch_cmd): Update.
11141 * target.c (target_translate_tls_address): Update.
11142 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11143 (info_frame_command_core, frame_apply_command_count): Update.
11144 * rust-exp.y (rust_lex_exception_test): Update.
11145 * riscv-tdep.c (riscv_print_one_register_info): Update.
11146 * remote.c (remote_target::enable_btrace): Update.
11147 * record-btrace.c (record_btrace_enable_warn): Update.
11148 * python/py-utils.c (gdbpy_convert_exception): Update.
11149 * printcmd.c (do_one_display, print_variable_and_value): Update.
11150 * mi/mi-main.c (mi_print_exception): Update.
11151 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11152 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11153 * linux-nat.c (linux_nat_target::attach): Update.
11154 * linux-fork.c (class scoped_switch_fork_info): Update.
11155 * infrun.c (displaced_step_prepare): Update.
11156 * infcall.c (call_function_by_hand_dummy): Update.
11157 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11158 * gnu-v3-abi.c (print_one_vtable): Update.
11159 * frame.c (get_prev_frame_always): Update.
11160 * f-valprint.c (info_common_command_for_block): Update.
11161 * exec.c (try_open_exec_file): Update.
11162 * exceptions.c (print_exception, exception_print)
11163 (exception_fprintf, exception_print_same): Update.
11164 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11165 * dwarf-index-cache.c (index_cache::store)
11166 (index_cache::lookup_gdb_index): Update.
11167 * darwin-nat.c (maybe_cache_shell): Update.
11168 * cp-valprint.c (cp_print_value_fields): Update.
11169 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11170 (gcc_cplus_symbol_address): Update.
11171 * compile/compile-c-symbols.c (gcc_convert_symbol)
11172 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11173 * common/selftest.c: Update.
11174 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11175 a std::string.
11176 (exception_try_scope_entry, exception_try_scope_exit): Don't
11177 declare.
11178 (struct exception_try_scope): Remove.
11179 (TRY): Don't use exception_try_scope.
11180 (struct gdb_exception): Add constructor, operator=.
11181 <what>: New method.
11182 (struct gdb_exception_RETURN_MASK_ALL)
11183 (struct gdb_exception_RETURN_MASK_ERROR)
11184 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11185 (struct gdb_quit_bad_alloc): Update.
11186 * common/common-exceptions.c (exception_none): Change
11187 initializer.
11188 (struct catcher) <state, exception>: Initialize inline.
11189 <prev>: Remove member.
11190 (current_catcher): Remove.
11191 (catchers): New global.
11192 (exceptions_state_mc_init): Simplify.
11193 (catcher_pop): Remove.
11194 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11195 (try_scope_depth, exception_try_scope_entry)
11196 (exception_try_scope_exit): Remove.
11197 (throw_exception_sjlj): Update.
11198 (exception_messages, exception_messages_size): Remove.
11199 (throw_it): Simplify.
11200 (gdb_exception_sliced_copy): Remove.
11201 (throw_exception_cxx): Update.
11202 * cli/cli-script.c (script_from_file): Update.
11203 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11204 Update.
11205 * ada-valprint.c (ada_val_print): Update.
11206 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11207 (create_excep_cond_exprs): Update.
11208
c5c10118
TT
112092019-04-08 Tom Tromey <tom@tromey.com>
11210
11211 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11212 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11213 (TRY, CATCH, END_CATCH): Remove some definitions.
11214 * common/common-exceptions.c: Don't use GDB_XCPT.
11215 (catcher_list_size): Remove.
11216 (throw_exception, throw_it): Simplify.
11217
4de283e4
TT
112182019-04-05 Tom Tromey <tom@tromey.com>
11219
11220 Revert the header-sorting patch.
11221 * ft32-tdep.c: Revert.
11222 * frv-tdep.c: Revert.
11223 * frv-linux-tdep.c: Revert.
11224 * frame.c: Revert.
11225 * frame-unwind.c: Revert.
11226 * frame-base.c: Revert.
11227 * fork-child.c: Revert.
11228 * findvar.c: Revert.
11229 * findcmd.c: Revert.
11230 * filesystem.c: Revert.
11231 * filename-seen-cache.h: Revert.
11232 * filename-seen-cache.c: Revert.
11233 * fbsd-tdep.c: Revert.
11234 * fbsd-nat.h: Revert.
11235 * fbsd-nat.c: Revert.
11236 * f-valprint.c: Revert.
11237 * f-typeprint.c: Revert.
11238 * f-lang.c: Revert.
11239 * extension.h: Revert.
11240 * extension.c: Revert.
11241 * extension-priv.h: Revert.
11242 * expprint.c: Revert.
11243 * exec.h: Revert.
11244 * exec.c: Revert.
11245 * exceptions.c: Revert.
11246 * event-top.c: Revert.
11247 * event-loop.c: Revert.
11248 * eval.c: Revert.
11249 * elfread.c: Revert.
11250 * dwarf2read.h: Revert.
11251 * dwarf2read.c: Revert.
11252 * dwarf2loc.c: Revert.
11253 * dwarf2expr.h: Revert.
11254 * dwarf2expr.c: Revert.
11255 * dwarf2-frame.c: Revert.
11256 * dwarf2-frame-tailcall.c: Revert.
11257 * dwarf-index-write.h: Revert.
11258 * dwarf-index-write.c: Revert.
11259 * dwarf-index-common.c: Revert.
11260 * dwarf-index-cache.h: Revert.
11261 * dwarf-index-cache.c: Revert.
11262 * dummy-frame.c: Revert.
11263 * dtrace-probe.c: Revert.
11264 * disasm.h: Revert.
11265 * disasm.c: Revert.
11266 * disasm-selftests.c: Revert.
11267 * dictionary.c: Revert.
11268 * dicos-tdep.c: Revert.
11269 * demangle.c: Revert.
11270 * dcache.h: Revert.
11271 * dcache.c: Revert.
11272 * darwin-nat.h: Revert.
11273 * darwin-nat.c: Revert.
11274 * darwin-nat-info.c: Revert.
11275 * d-valprint.c: Revert.
11276 * d-namespace.c: Revert.
11277 * d-lang.c: Revert.
11278 * ctf.c: Revert.
11279 * csky-tdep.c: Revert.
11280 * csky-linux-tdep.c: Revert.
11281 * cris-tdep.c: Revert.
11282 * cris-linux-tdep.c: Revert.
11283 * cp-valprint.c: Revert.
11284 * cp-support.c: Revert.
11285 * cp-namespace.c: Revert.
11286 * cp-abi.c: Revert.
11287 * corelow.c: Revert.
11288 * corefile.c: Revert.
11289 * continuations.c: Revert.
11290 * completer.h: Revert.
11291 * completer.c: Revert.
11292 * complaints.c: Revert.
11293 * coffread.c: Revert.
11294 * coff-pe-read.c: Revert.
11295 * cli-out.h: Revert.
11296 * cli-out.c: Revert.
11297 * charset.c: Revert.
11298 * c-varobj.c: Revert.
11299 * c-valprint.c: Revert.
11300 * c-typeprint.c: Revert.
11301 * c-lang.c: Revert.
11302 * buildsym.c: Revert.
11303 * buildsym-legacy.c: Revert.
11304 * build-id.h: Revert.
11305 * build-id.c: Revert.
11306 * btrace.c: Revert.
11307 * bsd-uthread.c: Revert.
11308 * breakpoint.h: Revert.
11309 * breakpoint.c: Revert.
11310 * break-catch-throw.c: Revert.
11311 * break-catch-syscall.c: Revert.
11312 * break-catch-sig.c: Revert.
11313 * blockframe.c: Revert.
11314 * block.c: Revert.
11315 * bfin-tdep.c: Revert.
11316 * bfin-linux-tdep.c: Revert.
11317 * bfd-target.c: Revert.
11318 * bcache.c: Revert.
11319 * ax-general.c: Revert.
11320 * ax-gdb.h: Revert.
11321 * ax-gdb.c: Revert.
11322 * avr-tdep.c: Revert.
11323 * auxv.c: Revert.
11324 * auto-load.c: Revert.
11325 * arm-wince-tdep.c: Revert.
11326 * arm-tdep.c: Revert.
11327 * arm-symbian-tdep.c: Revert.
11328 * arm-pikeos-tdep.c: Revert.
11329 * arm-obsd-tdep.c: Revert.
11330 * arm-nbsd-tdep.c: Revert.
11331 * arm-nbsd-nat.c: Revert.
11332 * arm-linux-tdep.c: Revert.
11333 * arm-linux-nat.c: Revert.
11334 * arm-fbsd-tdep.c: Revert.
11335 * arm-fbsd-nat.c: Revert.
11336 * arm-bsd-tdep.c: Revert.
11337 * arch-utils.c: Revert.
11338 * arc-tdep.c: Revert.
11339 * arc-newlib-tdep.c: Revert.
11340 * annotate.h: Revert.
11341 * annotate.c: Revert.
11342 * amd64-windows-tdep.c: Revert.
11343 * amd64-windows-nat.c: Revert.
11344 * amd64-tdep.c: Revert.
11345 * amd64-sol2-tdep.c: Revert.
11346 * amd64-obsd-tdep.c: Revert.
11347 * amd64-obsd-nat.c: Revert.
11348 * amd64-nbsd-tdep.c: Revert.
11349 * amd64-nbsd-nat.c: Revert.
11350 * amd64-nat.c: Revert.
11351 * amd64-linux-tdep.c: Revert.
11352 * amd64-linux-nat.c: Revert.
11353 * amd64-fbsd-tdep.c: Revert.
11354 * amd64-fbsd-nat.c: Revert.
11355 * amd64-dicos-tdep.c: Revert.
11356 * amd64-darwin-tdep.c: Revert.
11357 * amd64-bsd-nat.c: Revert.
11358 * alpha-tdep.c: Revert.
11359 * alpha-obsd-tdep.c: Revert.
11360 * alpha-nbsd-tdep.c: Revert.
11361 * alpha-mdebug-tdep.c: Revert.
11362 * alpha-linux-tdep.c: Revert.
11363 * alpha-linux-nat.c: Revert.
11364 * alpha-bsd-tdep.c: Revert.
11365 * alpha-bsd-nat.c: Revert.
11366 * aix-thread.c: Revert.
11367 * agent.c: Revert.
11368 * addrmap.c: Revert.
11369 * ada-varobj.c: Revert.
11370 * ada-valprint.c: Revert.
11371 * ada-typeprint.c: Revert.
11372 * ada-tasks.c: Revert.
11373 * ada-lang.c: Revert.
11374 * aarch64-tdep.c: Revert.
11375 * aarch64-ravenscar-thread.c: Revert.
11376 * aarch64-newlib-tdep.c: Revert.
11377 * aarch64-linux-tdep.c: Revert.
11378 * aarch64-linux-nat.c: Revert.
11379 * aarch64-fbsd-tdep.c: Revert.
11380 * aarch64-fbsd-nat.c: Revert.
11381 * aarch32-linux-nat.c: Revert.
11382
d55e5aa6
TT
113832019-04-05 Tom Tromey <tom@tromey.com>
11384
11385 * ft32-tdep.c: Sort headers.
11386 * frv-tdep.c: Sort headers.
11387 * frv-linux-tdep.c: Sort headers.
11388 * frame.c: Sort headers.
11389 * frame-unwind.c: Sort headers.
11390 * frame-base.c: Sort headers.
11391 * fork-child.c: Sort headers.
11392 * findvar.c: Sort headers.
11393 * findcmd.c: Sort headers.
11394 * filesystem.c: Sort headers.
11395 * filename-seen-cache.h: Sort headers.
11396 * filename-seen-cache.c: Sort headers.
11397 * fbsd-tdep.c: Sort headers.
11398 * fbsd-nat.h: Sort headers.
11399 * fbsd-nat.c: Sort headers.
11400 * f-valprint.c: Sort headers.
11401 * f-typeprint.c: Sort headers.
11402 * f-lang.c: Sort headers.
11403 * extension.h: Sort headers.
11404 * extension.c: Sort headers.
11405 * extension-priv.h: Sort headers.
11406 * expprint.c: Sort headers.
11407 * exec.h: Sort headers.
11408 * exec.c: Sort headers.
11409 * exceptions.c: Sort headers.
11410 * event-top.c: Sort headers.
11411 * event-loop.c: Sort headers.
11412 * eval.c: Sort headers.
11413 * elfread.c: Sort headers.
11414 * dwarf2read.h: Sort headers.
11415 * dwarf2read.c: Sort headers.
11416 * dwarf2loc.c: Sort headers.
11417 * dwarf2expr.h: Sort headers.
11418 * dwarf2expr.c: Sort headers.
11419 * dwarf2-frame.c: Sort headers.
11420 * dwarf2-frame-tailcall.c: Sort headers.
11421 * dwarf-index-write.h: Sort headers.
11422 * dwarf-index-write.c: Sort headers.
11423 * dwarf-index-common.c: Sort headers.
11424 * dwarf-index-cache.h: Sort headers.
11425 * dwarf-index-cache.c: Sort headers.
11426 * dummy-frame.c: Sort headers.
11427 * dtrace-probe.c: Sort headers.
11428 * disasm.h: Sort headers.
11429 * disasm.c: Sort headers.
11430 * disasm-selftests.c: Sort headers.
11431 * dictionary.c: Sort headers.
11432 * dicos-tdep.c: Sort headers.
11433 * demangle.c: Sort headers.
11434 * dcache.h: Sort headers.
11435 * dcache.c: Sort headers.
11436 * darwin-nat.h: Sort headers.
11437 * darwin-nat.c: Sort headers.
11438 * darwin-nat-info.c: Sort headers.
11439 * d-valprint.c: Sort headers.
11440 * d-namespace.c: Sort headers.
11441 * d-lang.c: Sort headers.
11442 * ctf.c: Sort headers.
11443 * csky-tdep.c: Sort headers.
11444 * csky-linux-tdep.c: Sort headers.
11445 * cris-tdep.c: Sort headers.
11446 * cris-linux-tdep.c: Sort headers.
11447 * cp-valprint.c: Sort headers.
11448 * cp-support.c: Sort headers.
11449 * cp-namespace.c: Sort headers.
11450 * cp-abi.c: Sort headers.
11451 * corelow.c: Sort headers.
11452 * corefile.c: Sort headers.
11453 * continuations.c: Sort headers.
11454 * completer.h: Sort headers.
11455 * completer.c: Sort headers.
11456 * complaints.c: Sort headers.
11457 * coffread.c: Sort headers.
11458 * coff-pe-read.c: Sort headers.
11459 * cli-out.h: Sort headers.
11460 * cli-out.c: Sort headers.
11461 * charset.c: Sort headers.
11462 * c-varobj.c: Sort headers.
11463 * c-valprint.c: Sort headers.
11464 * c-typeprint.c: Sort headers.
11465 * c-lang.c: Sort headers.
11466 * buildsym.c: Sort headers.
11467 * buildsym-legacy.c: Sort headers.
11468 * build-id.h: Sort headers.
11469 * build-id.c: Sort headers.
11470 * btrace.c: Sort headers.
11471 * bsd-uthread.c: Sort headers.
11472 * breakpoint.h: Sort headers.
11473 * breakpoint.c: Sort headers.
11474 * break-catch-throw.c: Sort headers.
11475 * break-catch-syscall.c: Sort headers.
11476 * break-catch-sig.c: Sort headers.
11477 * blockframe.c: Sort headers.
11478 * block.c: Sort headers.
11479 * bfin-tdep.c: Sort headers.
11480 * bfin-linux-tdep.c: Sort headers.
11481 * bfd-target.c: Sort headers.
11482 * bcache.c: Sort headers.
11483 * ax-general.c: Sort headers.
11484 * ax-gdb.h: Sort headers.
11485 * ax-gdb.c: Sort headers.
11486 * avr-tdep.c: Sort headers.
11487 * auxv.c: Sort headers.
11488 * auto-load.c: Sort headers.
11489 * arm-wince-tdep.c: Sort headers.
11490 * arm-tdep.c: Sort headers.
11491 * arm-symbian-tdep.c: Sort headers.
11492 * arm-pikeos-tdep.c: Sort headers.
11493 * arm-obsd-tdep.c: Sort headers.
11494 * arm-nbsd-tdep.c: Sort headers.
11495 * arm-nbsd-nat.c: Sort headers.
11496 * arm-linux-tdep.c: Sort headers.
11497 * arm-linux-nat.c: Sort headers.
11498 * arm-fbsd-tdep.c: Sort headers.
11499 * arm-fbsd-nat.c: Sort headers.
11500 * arm-bsd-tdep.c: Sort headers.
11501 * arch-utils.c: Sort headers.
11502 * arc-tdep.c: Sort headers.
11503 * arc-newlib-tdep.c: Sort headers.
11504 * annotate.h: Sort headers.
11505 * annotate.c: Sort headers.
11506 * amd64-windows-tdep.c: Sort headers.
11507 * amd64-windows-nat.c: Sort headers.
11508 * amd64-tdep.c: Sort headers.
11509 * amd64-sol2-tdep.c: Sort headers.
11510 * amd64-obsd-tdep.c: Sort headers.
11511 * amd64-obsd-nat.c: Sort headers.
11512 * amd64-nbsd-tdep.c: Sort headers.
11513 * amd64-nbsd-nat.c: Sort headers.
11514 * amd64-nat.c: Sort headers.
11515 * amd64-linux-tdep.c: Sort headers.
11516 * amd64-linux-nat.c: Sort headers.
11517 * amd64-fbsd-tdep.c: Sort headers.
11518 * amd64-fbsd-nat.c: Sort headers.
11519 * amd64-dicos-tdep.c: Sort headers.
11520 * amd64-darwin-tdep.c: Sort headers.
11521 * amd64-bsd-nat.c: Sort headers.
11522 * alpha-tdep.c: Sort headers.
11523 * alpha-obsd-tdep.c: Sort headers.
11524 * alpha-nbsd-tdep.c: Sort headers.
11525 * alpha-mdebug-tdep.c: Sort headers.
11526 * alpha-linux-tdep.c: Sort headers.
11527 * alpha-linux-nat.c: Sort headers.
11528 * alpha-bsd-tdep.c: Sort headers.
11529 * alpha-bsd-nat.c: Sort headers.
11530 * aix-thread.c: Sort headers.
11531 * agent.c: Sort headers.
11532 * addrmap.c: Sort headers.
11533 * ada-varobj.c: Sort headers.
11534 * ada-valprint.c: Sort headers.
11535 * ada-typeprint.c: Sort headers.
11536 * ada-tasks.c: Sort headers.
11537 * ada-lang.c: Sort headers.
11538 * aarch64-tdep.c: Sort headers.
11539 * aarch64-ravenscar-thread.c: Sort headers.
11540 * aarch64-newlib-tdep.c: Sort headers.
11541 * aarch64-linux-tdep.c: Sort headers.
11542 * aarch64-linux-nat.c: Sort headers.
11543 * aarch64-fbsd-tdep.c: Sort headers.
11544 * aarch64-fbsd-nat.c: Sort headers.
11545 * aarch32-linux-nat.c: Sort headers.
11546
699bd4cf
TT
115472019-04-04 Tom Tromey <tom@tromey.com>
11548
11549 * varobj.c (varobj_create): Update.
11550 * rust-exp.y (struct rust_parser) <update_innermost_block,
11551 lookup_symbol>: New methods.
11552 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11553 Rename.
11554 (rust_parser::rust_lookup_type)
11555 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11556 * printcmd.c (display_command, do_one_display): Update.
11557 * parser-defs.h (struct parser_state) <parser_state>: Add
11558 "tracker" parameter.
11559 (block_tracker): New member.
11560 (class innermost_block_tracker) <innermost_block_tracker>: Add
11561 "types" parameter.
11562 <reset>: Remove method.
11563 (innermost_block): Don't declare.
11564 (null_post_parser): Update.
11565 * parse.c (innermost_block): Remove global.
11566 (write_dollar_variable): Update.
11567 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11568 Remove "tracker_types" parameter.
11569 (parse_expression): Add "tracker" parameter.
11570 (parse_expression_for_completion): Update.
11571 (null_post_parser): Add "tracker" parameter.
11572 * p-exp.y: Update rules.
11573 * m2-exp.y: Update rules.
11574 * language.h (struct language_defn) <la_post_parser>: Add
11575 "tracker" parameter.
11576 * go-exp.y: Update rules.
11577 * f-exp.y: Update rules.
11578 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11579 parameter.
11580 * d-exp.y: Update rules.
11581 * c-exp.y: Update rules.
11582 * breakpoint.c (set_breakpoint_condition): Create an
11583 innermost_block_tracker.
11584 (watch_command_1): Likewise.
11585 * ada-lang.c (resolve): Add "tracker" parameter.
11586 (resolve_subexp): Likewise.
11587 * ada-exp.y (write_var_from_sym): Update.
11588
dac43e32
TT
115892019-04-04 Tom Tromey <tom@tromey.com>
11590
11591 * type-stack.h: New file.
11592 * type-stack.c: New file.
11593 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11594 type-stack.h.
11595 (insert_into_type_stack, insert_type, push_type, push_type_int)
11596 (insert_type_address_space, pop_type, pop_type_int)
11597 (pop_typelist, pop_type_stack, append_type_stack)
11598 (push_type_stack, get_type_stack, push_typelist)
11599 (follow_type_instance_flags, follow_types): Don't declare.
11600 * parse.c (type_stack): Remove global.
11601 (parse_exp_in_context): Update.
11602 (insert_into_type_stack, insert_type, push_type, push_type_int)
11603 (insert_type_address_space, pop_type, pop_type_int)
11604 (pop_typelist, pop_type_stack, append_type_stack)
11605 (push_type_stack, get_type_stack, push_typelist)
11606 (follow_type_instance_flags, follow_types): Remove (moved to
11607 type-stack.c).
11608 * f-exp.y (type_stack): New global.
11609 Update rules.
11610 (push_kind_type, f_parse): Update.
11611 * d-exp.y (type_stack): New global.
11612 Update rules.
11613 (d_parse): Update.
11614 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11615 Update rules.
11616 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11617 (HFILES_NO_SRCDIR): Add type-stack.h.
11618
2a612529
TT
116192019-04-04 Tom Tromey <tom@tromey.com>
11620
11621 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11622 (rust_parser::convert_ast_to_expression, rust_parse)
11623 (rust_lex_test_completion, rust_lex_tests): Update.
11624 * parser-defs.h (struct expr_completion_state): New.
11625 (struct parser_state) <parser_state>: Add completion parameter.
11626 <mark_struct_expression, mark_completion_tag>: New methods.
11627 <parse_completion, m_completion_state>: New members.
11628 (prefixify_expression, null_post_parser): Update.
11629 (mark_struct_expression, mark_completion_tag): Don't declare.
11630 * parse.c (parse_completion, expout_last_struct)
11631 (expout_tag_completion_type, expout_completion_name): Remove
11632 globals.
11633 (parser_state::mark_struct_expression)
11634 (parser_state::mark_completion_tag): Now methods.
11635 (prefixify_expression): Add last_struct parameter.
11636 (prefixify_subexp): Likewise.
11637 (parse_exp_1): Update.
11638 (parse_exp_in_context): Add cstate parameter. Update.
11639 (parse_expression_for_completion): Create an
11640 expr_completion_state.
11641 (null_post_parser): Add "completion" parameter.
11642 * p-exp.y: Update rules.
11643 (yylex): Update.
11644 * language.h (struct language_defn) <la_post_parser>: Add
11645 "completing" parameter.
11646 * go-exp.y: Update rules.
11647 (lex_one_token): Update.
11648 * expression.h (parse_completion): Don't declare.
11649 * d-exp.y: Update rules.
11650 (lex_one_token): Update rules.
11651 * c-exp.y: Update rules.
11652 (lex_one_token): Update.
11653 * ada-lang.c (resolve): Add "parse_completion" parameter.
11654 (resolve_subexp): Likewise.
11655 (ada_resolve_function): Likewise.
11656
43476f0b
TT
116572019-04-04 Tom Tromey <tom@tromey.com>
11658
11659 * parser-defs.h (struct parser_state) <start_arglist,
11660 end_arglist>: New methods.
11661 <arglist_len, m_funcall_chain>: New members.
11662 (arglist_len, start_arglist, end_arglist): Don't declare.
11663 * parse.c (arglist_len, funcall_chain): Remove global.
11664 (start_arglist, end_arglist): Remove functions.
11665 (parse_exp_in_context): Update.
11666 * p-exp.y: Update rules.
11667 * m2-exp.y: Update rules.
11668 * go-exp.y: Update rules.
11669 * f-exp.y: Update rules.
11670 * d-exp.y: Update rules.
11671 * c-exp.y: Update rules.
11672
5776fca3
TT
116732019-04-04 Tom Tromey <tom@tromey.com>
11674
11675 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11676 lex_operator, push_back>: New methods.
11677 Update all rules.
11678 (rust_parser::lex_hex, lex_escape): Rename and update.
11679 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11680 (rust_parser::lex_operator): Rename and update.
11681 (rust_parser::lex_number, rustyylex, rustyyerror)
11682 (rust_lex_test_init, rust_lex_test_sequence)
11683 (rust_lex_test_push_back, rust_lex_tests): Update.
11684 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11685 parameter.
11686 <lexptr, prev_lexptr>: New members.
11687 (lexptr, prev_lexptr): Don't declare.
11688 * parse.c (lexptr, prev_lexptr): Remove globals.
11689 (parse_exp_in_context): Update.
11690 * p-exp.y (yylex, yyerror): Update.
11691 * m2-exp.y (parse_number, yylex, yyerror): Update.
11692 * go-exp.y (lex_one_token, yyerror): Update.
11693 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11694 * d-exp.y (lex_one_token, yyerror): Update.
11695 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11696 (lex_one_token, yyerror): Update.
11697 * ada-lex.l (YY_INPUT): Update.
11698 (rewind_to_char): Update.
11699 * ada-exp.y (yyerror): Update.
11700
8621b685
TT
117012019-04-04 Tom Tromey <tom@tromey.com>
11702
11703 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11704 * parser-defs.h (struct parser_state) <parser_state>: Add new
11705 parameter.
11706 <comma_terminates>: New member.
11707 (comma_terminates): Don't declare global.
11708 * parse.c (comma_terminates): Remove global.
11709 (parse_exp_in_context): Update.
11710 * p-exp.y (yylex): Update.
11711 * m2-exp.y (yylex): Update.
11712 * go-exp.y (lex_one_token): Update.
11713 * f-exp.y (yylex): Update.
11714 * d-exp.y (lex_one_token): Update.
11715 * c-exp.y (lex_one_token): Update.
11716 * ada-lex.l: Update.
11717
28aaf3fd
TT
117182019-04-04 Tom Tromey <tom@tromey.com>
11719
11720 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11721 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11722 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11723 * parser-defs.h (paren_depth): Don't declare.
11724 * parse.c (paren_depth): Remove global.
11725 (parse_exp_in_context): Update.
11726 * p-exp.y (paren_depth): New global.
11727 (pascal_parse): Initialize it.
11728 * m2-exp.y (paren_depth): New global.
11729 (m2_parse): Initialize it.
11730 * go-exp.y (paren_depth): New global.
11731 (go_parse): Initialize it.
11732 * f-exp.y (paren_depth): New global.
11733 (f_parse): Initialize it.
11734 * d-exp.y (paren_depth): New global.
11735 (d_parse): Initialize it.
11736 * c-exp.y (paren_depth): New global.
11737 (c_parse): Initialize it.
11738 * ada-lex.l (paren_depth): New global.
11739 (lexer_init): Initialize it.
11740
1e58a4a4
TT
117412019-04-04 Tom Tromey <tom@tromey.com>
11742
11743 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11744 (rust_parser::convert_ast_to_type)
11745 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11746 * parser-defs.h (struct parser_state) <parser_state>: Add
11747 parameters. Initialize new members.
11748 <expression_context_block, expression_context_pc>: New members.
11749 * parse.c (expression_context_block, expression_context_pc):
11750 Remove globals.
11751 (parse_exp_in_context): Update.
11752 * p-exp.y: Update all rules.
11753 (yylex): Update.
11754 * m2-exp.y: Update all rules.
11755 (yylex): Update.
11756 * go-exp.y (yylex): Update.
11757 * f-exp.y (yylex): Update.
11758 * d-exp.y: Update all rules.
11759 (yylex): Update.
11760 * c-exp.y: Update all rules.
11761 (lex_one_token, classify_name, yylex, c_parse): Update.
11762 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11763
37eedb39
TT
117642019-04-04 Tom Tromey <tom@tromey.com>
11765
11766 * gdbarch.h, gdbarch.c: Rebuild.
11767 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11768 * stap-probe.h:
11769 (struct stap_parse_info): Replace "parser_state" with
11770 "expr_builder".
11771 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11772 (parser_state): New class.
11773 * parse.c (expr_builder): Rename.
11774 (expr_builder::release): Rename.
11775 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11776 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11777 (write_exp_elt_longcst, write_exp_elt_floatcst)
11778 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11779 (write_exp_string_vector, write_exp_bitstring)
11780 (write_exp_msymbol, mark_struct_expression)
11781 (write_dollar_variable)
11782 (insert_type_address_space, increase_expout_size): Replace
11783 "parser_state" with "expr_builder".
11784 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11785 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11786 "parser_state" with "expr_builder".
11787
73923d7e
TT
117882019-04-04 Tom Tromey <tom@tromey.com>
11789
11790 * rust-exp.y: Replace "parse_language" with method call.
11791 * p-exp.y:
11792 (yylex): Replace "parse_language" with method call.
11793 * m2-exp.y:
11794 (yylex): Replace "parse_language" with method call.
11795 * go-exp.y (classify_name): Replace "parse_language" with method
11796 call.
11797 * f-exp.y (yylex): Replace "parse_language" with method call.
11798 * d-exp.y (lex_one_token): Replace "parse_language" with method
11799 call.
11800 * c-exp.y:
11801 (lex_one_token, classify_name, yylex): Replace "parse_language"
11802 with method call.
11803 * ada-exp.y (find_primitive_type, type_char)
11804 (type_system_address): Replace "parse_language" with method call.
11805
fa9f5be6
TT
118062019-04-04 Tom Tromey <tom@tromey.com>
11807
11808 * rust-exp.y: Replace "parse_gdbarch" with method call.
11809 * parse.c (write_dollar_variable, insert_type_address_space):
11810 Replace "parse_gdbarch" with method call.
11811 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11812 call.
11813 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11814 call.
11815 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11816 "parse_gdbarch" with method call.
11817 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11818 with method call.
11819 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11820 "parse_gdbarch" with method call.
11821 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11822 "parse_gdbarch" with method call.
11823 * c-exp.y (parse_type, parse_number, classify_name): Replace
11824 "parse_gdbarch" with method call.
11825 * ada-lex.l: Replace "parse_gdbarch" with method call.
11826 * ada-exp.y (parse_type, find_primitive_type, type_char)
11827 (type_system_address): Replace "parse_gdbarch" with method call.
11828
1201a264
TT
118292019-04-04 Tom Tromey <tom@tromey.com>
11830
11831 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11832 * stap-probe.c (stap_parse_argument): Update.
11833 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11834 initial_size parameter.
11835 * rust-exp.y (rust_lex_tests): Update.
11836 * parse.c (parser_state): Update.
11837 (parse_exp_in_context): Update.
11838 * parser-defs.h (struct parser_state) <parser_state>: Remove
11839 "initial_size" parameter.
11840
e3980ce2
TT
118412019-04-04 Tom Tromey <tom@tromey.com>
11842
11843 * parser-defs.h (increase_expout_size): Don't declare.
11844 * parse.c (increase_expout_size): Now static.
11845
e9f8e3f1
TS
118462019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11847
11848 * gnu-nat.c (gnu_nat_target::wait): Fix
11849 target_waitstatus_to_string call.
11850
d7df6549
AB
118512019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11852
11853 * eval.c (evaluate_subexp_standard): Handle internal functions
11854 during Fortran function call handling.
11855
8bdc1658
AB
118562019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11857
11858 * NEWS: Mention new internal functions.
11859 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11860 (read_base_type): Use dwarf2_init_complex_target_type.
11861 * value.c (creal_internal_fn): New function.
11862 (cimag_internal_fn): New function.
11863 (_initialize_values): Register new internal functions.
11864
c29705b7
PW
118652019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11866
11867 * infrun.c (stop_all_threads): If debug_infrun, always
11868 trace the wait status after wait_one, using
11869 target_waitstatus_to_string and target_pid_to_str.
11870 (handle_inferior_event): Replace various trace of
11871 wait status kind by a single trace.
11872 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11873 wait status kind image by target_waitstatus_to_string.
11874 * target/waitstatus.c (target_waitstatus_to_string): Fix
11875 obsolete comment.
11876
05caa1d2
TT
118772019-04-01 Tom Tromey <tromey@adacore.com>
11878
11879 PR symtab/23331:
11880 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11881
9d1447e0
SDJ
118822019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11883 Pedro Alves <palves@redhat.com>
11884
11885 * top.c (quit_force): Call 'finalize_values'.
11886 * value.c (finalize_values): New function.
11887 * value.h (finalize_values): Declare.
11888
7734102d
EZ
118892019-03-30 Eli Zaretskii <eliz@gnu.org>
11890
11891 * NEWS: Announce $_gdb_major and $_gdb_minor.
11892
11893 * top.c (init_gdb_version_vars): New function.
11894 (gdb_init): Call init_gdb_version_vars.
11895
188e1fa9
TT
118962019-03-29 Tom Tromey <tromey@adacore.com>
11897
11898 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11899 help text. Remove dead code.
11900
2880242d
KS
119012019-03-29 Keith Seitz <keiths@redhat.com>
11902
11903 From Siddhesh Poyarekar:
11904 * f-lang.h (f77_get_upperbound): Return LONGEST.
11905 (f77_get_lowerbound): Likewise.
11906 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11907 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11908 print them.
11909 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11910 plongest to format print it.
11911 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11912 (f77_get_upperbound): Likewise.
11913 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11914 LOWER_BOUND to LONGEST.
11915 (f77_create_arrayprint_offset_tbl): Likewise.
11916
cc1defb1
KS
119172019-03-29 Keith Seitz <keiths@redhat.com>
11918
11919 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11920 %s/pulongest for TYPE_LENGTH instead of %d in format
11921 strings.
11922 * ada-typerint.c (ada_print_type): Likewise.
11923 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11924 * compile/compile-c-support.c (generate_register_struct): Likewise.
11925 * gdbtypes.c (recursive_dump_type): Likewise.
11926 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11927 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11928 instead of %d in format strings.
11929 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11930 to std::min to ULONGEST.
11931 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11932 instead of %d in format strings.
11933 * tracepoint.c (info_scope_command): Likewise.
11934 * typeprint.c (print_offset_data::update)
11935 (print_offset_data::finish): Likewise.
11936 * xtensa-tdep.c (xtensa_store_return_value)
11937 (xtensa_push_dummy_call): Likewise.
11938
e432ccf1
JT
119392019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11940
11941 * windows-nat.c (display_selector): Fixed format specifications
11942 for 64-bit Cygwin.
11943
65d2b333
PW
119442019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11945
11946 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11947
f489207e
SL
119482019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11949
11950 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11951 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11952 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11953 (nios2_linux_init_abi): Install it.
11954
bffa1015
AH
119552019-03-28 Alan Hayward <alan.hayward@arm.com>
11956
11957 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11958
fc96163a
AH
119592019-03-28 Alan Hayward <alan.hayward@arm.com>
11960
11961 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11962
20dc7e9b
PW
119632019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11964 Tom Tromey <tromey@adacore.com>
11965
11966 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11967
7f5331a8
JB
119682019-03-26 Joel Brobecker <brobecker@adacore.com>
11969
11970 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11971 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11972 method to compute the bounds of range types. Also print "[evaluated]"
11973 if the bounds' values come from a dynamic evaluation.
11974
18c77628
AB
119752019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11976
11977 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11978 whitespace when pretty printing is on.
11979
53c973f2
AH
119802019-03-26 Alan Hayward <alan.hayward@arm.com>
11981
e79be6e5 11982 * ppc-linux-nat.c: Add include.
53c973f2 11983
d851aa71
AH
119842019-03-26 Alan Hayward <alan.hayward@arm.com>
11985
e79be6e5 11986 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11987
2fe7bab7
AH
119882019-03-26 Alan Hayward <alan.hayward@arm.com>
11989
e79be6e5 11990 * arm-linux-nat.c: Add include.
2fe7bab7 11991
068ef30e
SM
119922019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11993
11994 * source-cache.c (source_cache::get_source_lines): Re-read
11995 fullname after calling open_source_file.
11996
81a24d04
JB
119972019-03-25 John Baldwin <jhb@FreeBSD.org>
11998
11999 * NEWS: Mention TLS support for FreeBSD.
12000
79e7ae11
TT
120012019-03-25 Tom Tromey <tromey@adacore.com>
12002
12003 * minsyms.c (BUNCH_SIZE): Update comment.
12004 (~minimal_symbol_reader): Remove old comment.
12005 (compact_minimal_symbols): Update comment.
12006 (minimal_symbol_reader::install): Remove old comment. Update
12007 other comments.
12008
d45963c2
AH
120092019-03-25 Alan Hayward <alan.hayward@arm.com>
12010
12011 * s390-linux-nat.c: Add include.
12012
0f83012e
AH
120132019-03-25 Alan Hayward <alan.hayward@arm.com>
12014
12015 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12016 Call linux_get_hwcap.
12017 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12018 Likewise.
12019 (aarch64_linux_get_hwcap): Remove function.
12020 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12021 declaration.
12022 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12023 linux_get_hwcap.
12024 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12025 * linux-tdep.c (linux_get_hwcap): Add function.
12026 (linux_get_hwcap2): Likewise.
12027 * linux-tdep.h (linux_get_hwcap): Add declaration.
12028 (linux_get_hwcap2): Likewise.
12029 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12030 (ppc_linux_get_hwcap2): Likewise.
12031 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12032 linux_get_hwcap.
12033 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12034 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12035 (ppc_linux_nat_target::read_description): Likewise.
12036 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12037 * s390-linux-nat.c: Likewise.
12038 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12039
6640a367
TT
120402019-03-24 Tom Tromey <tom@tromey.com>
12041
12042 * ada-lang.c (standard_lookup): Simplify initialization.
12043 (ada_lookup_symbol_nonlocal): Simplify return.
12044 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12045 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12046 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12047 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12048 initialization.
12049 * solib.c (solib_global_lookup): Simplify.
12050 * symtab.c (null_block_symbol): Remove.
12051 (symbol_cache_lookup): Simplify returns.
12052 (lookup_language_this): Simplify returns.
12053 (lookup_symbol_aux): Simplify return.
12054 (lookup_local_symbol): Simplify returns.
12055 (lookup_global_symbol_from_objfile): Simplify return.
12056 (lookup_symbol_in_objfile_symtabs)
12057 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12058 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12059 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12060 * cp-namespace.c (cp_lookup_bare_symbol)
12061 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12062 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12063 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12064 (cp_lookup_symbol_via_imports): Simplify initialization.
12065 (find_symbol_in_baseclass): Likewise.
12066 * symtab.h (null_block_symbol): Remove.
12067 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12068 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12069 (d_lookup_symbol_module): Likewise.
12070 (find_symbol_in_baseclass): Simplify initialization.
12071
a930ebcd
TT
120722019-03-24 Tom Tromey <tom@tromey.com>
12073
12074 * expression.h: Don't include symtab.h.
12075 (struct block): Forward declare.
12076
582942f4
TT
120772019-03-24 Tom Tromey <tom@tromey.com>
12078
12079 * c-exp.y (typebase): Remove casts.
12080 * gdbtypes.c (lookup_unsigned_typename, )
12081 (lookup_signed_typename): Remove cast.
12082 * eval.c (parse_to_comma_and_eval): Remove cast.
12083 * parse.c (write_dollar_variable): Remove cast.
12084 * block.h (struct block) <superblock>: Now const.
12085 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12086 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12087 (map_block): Make "block" const.
12088 * symfile.h (struct quick_symbol_functions)
12089 <map_matching_symbols>: Constify block argument to "callback".
12090 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12091 const.
12092 (find_pc_sect_compunit_symtab): Make "b" const.
12093 (find_symbol_at_address): Likewise.
12094 (search_symbols): Likewise.
12095 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12096 (dw2_debug_names_lookup_symbol): Likewise.
12097 (dw2_map_matching_symbols): Update.
12098 * p-valprint.c (pascal_val_print): Remove "block".
12099 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12100 (aux_add_nonlocal_symbols): Make "block" const.
12101 (resolve_subexp): Remove cast.
12102 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12103 const.
12104 (iterate_over_file_blocks): Likewise.
12105 * f-exp.y (%union) <bval>: Remove.
12106 * coffread.c (patch_opaque_types): Make "b" const.
12107 * spu-tdep.c (spu_catch_start): Make "block" const.
12108 * c-valprint.c (print_unpacked_pointer): Remove "block".
12109 * symmisc.c (dump_symtab_1): Make "b" const.
12110 (block_depth): Make "block" const.
12111 * d-exp.y (%union) <bval>: Remove.
12112 * cp-support.h (cp_lookup_rtti_type): Update.
12113 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12114 * psymtab.c (psym_lookup_symbol): Make "block" const.
12115 (maintenance_check_psymtabs): Make "b" const.
12116 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12117 (enumerate_locals, enumerate_args): Update.
12118 * python/py-symtab.c (stpy_global_block): Make "block" const.
12119 (stpy_static_block): Likewise.
12120 * inline-frame.c (block_starting_point_at): Make "new_block"
12121 const.
12122 * block.c (find_block_in_blockvector): Make return type const.
12123 (blockvector_for_pc_sect): Make "b" const.
12124 (find_block_in_blockvector): Make "b" const.
12125
7ad417dd
TT
121262019-03-23 Tom Tromey <tom@tromey.com>
12127
12128 * varobj.c (varobj_create): Update.
12129 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12130 * printcmd.c (display_command, do_one_display): Don't reset
12131 innermost_block.
12132 * parser-defs.h (enum innermost_block_tracker_type): Move to
12133 expression.h.
12134 (innermost_block): Update comment.
12135 * parse.c (parse_exp_1): Add tracker_types parameter.
12136 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12137 tracker_types parameter. Reset innermost_block.
12138 (parse_exp_in_context): Remove.
12139 (parse_expression_for_completion): Update.
12140 * objfiles.c (~objfile): Don't reset expression_context_block or
12141 innermost_block.
12142 * expression.h (enum innermost_block_tracker_type): Move from
12143 parser-defs.h.
12144 (parse_exp_1): Add tracker_types parameter.
12145 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12146 reset innermost_block.
12147
b366c208
TT
121482019-03-23 Tom Tromey <tom@tromey.com>
12149
12150 * objfiles.h: Include bcache.h.
12151
9bb9b2f9
TT
121522019-03-23 Tom Tromey <tom@tromey.com>
12153
12154 * linespec.c (get_current_search_block): Use
12155 scoped_restore_current_language.
12156 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12157
59c28372
AH
121582019-03-22 Alan Hayward <alan.hayward@arm.com>
12159 Jiong Wang <jiong.wang@arm.com>
12160
12161 * aarch64-linux-tdep.c
12162 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12163 section.
12164 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12165
17e116a7
AH
121662019-03-22 Alan Hayward <alan.hayward@arm.com>
12167 Jiong Wang <jiong.wang@arm.com>
12168
12169 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12170 instructions.
12171 (aarch64_analyze_prologue_test): Add PACIASP test.
12172 (aarch64_prologue_prev_register): Unmask PC value.
12173
11e1b75f
AH
121742019-03-22 Alan Hayward <alan.hayward@arm.com>
12175 Jiong Wang <jiong.wang@arm.com>
12176
12177 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12178 (aarch64_dwarf2_prev_register): Unmask PC value.
12179 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12180 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12181 DW_CFA_AARCH64_negate_ra_state.
12182 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12183
34dcc7cf
AH
121842019-03-22 Alan Hayward <alan.hayward@arm.com>
12185 Jiong Wang <jiong.wang@arm.com>
12186
12187 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12188 registers.
12189 (aarch64_pseudo_register_name): Likewise.
12190 (aarch64_pseudo_register_type): Likewise.
12191 (aarch64_pseudo_register_reggroup_p): Likewise.
12192 (aarch64_gdbarch_init): Add pauth registers.
12193 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12194 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12195 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12196 (struct gdbarch_tdep): Add regnum for ra_state.
12197
1ef53e6b
AH
121982019-03-22 Alan Hayward <alan.hayward@arm.com>
12199 Jiong Wang <jiong.wang@arm.com>
12200
12201 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12202
76bed0fd
AH
122032019-03-22 Alan Hayward <alan.hayward@arm.com>
12204 Jiong Wang <jiong.wang@arm.com>
12205
12206 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12207 function.
12208 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12209 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12210 (aarch64_gdbarch_init): Add puth registers.
12211 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12212 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12213 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12214
ee4fbcfa
AH
122152019-03-22 Alan Hayward <alan.hayward@arm.com>
12216 Jiong Wang <jiong.wang@arm.com>
12217
12218 * aarch64-linux-nat.c
12219 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12220 * aarch64-linux-tdep.c
12221 (aarch64_linux_core_read_description): Likewise.
12222 (aarch64_linux_get_hwcap): New function.
12223 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12224 (aarch64_linux_get_hwcap): New declaration.
12225
6dc0ebde
AH
122262019-03-22 Alan Hayward <alan.hayward@arm.com>
12227 Jiong Wang <jiong.wang@arm.com>
12228
12229 * aarch64-linux-nat.c
12230 (aarch64_linux_nat_target::read_description): Add pauth param.
12231 * aarch64-linux-tdep.c
12232 (aarch64_linux_core_read_description): Likewise.
12233 * aarch64-tdep.c (struct target_desc): Add in pauth.
12234 (aarch64_read_description): Add pauth param.
12235 (aarch64_gdbarch_init): Likewise.
12236 * aarch64-tdep.h (aarch64_read_description): Likewise.
12237 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12238 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12239 * features/Makefile: Add new files.
12240 * features/aarch64-pauth.c: New file.
12241 * features/aarch64-pauth.xml: New file.
12242
595915c1
TT
122432019-03-20 Tom Tromey <tromey@adacore.com>
12244
12245 * infrun.c (handle_inferior_event): Rename from
12246 handle_inferior_event_1. Create a scoped_value_mark.
12247 (handle_inferior_event): Remove.
12248
4c7d57e7
TT
122492019-03-19 Tom Tromey <tromey@adacore.com>
12250
12251 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12252 * infrun.h (print_stop_event): Add "displays" parameter.
12253 * infrun.c (print_stop_event): Add "displays" parameter.
12254
cb246234
PA
122552019-03-19 Pedro Alves <palves@redhat.com>
12256
12257 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12258 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12259 to -1. Fix TABs vs spaces.
12260 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12261 * tui/tui-out.h (tui_ui_out) Add intro comments.
12262 <m_line, m_start_of_line>: In-class initialize, and add describing
12263 comment.
12264
3a0e45b2
AH
122652019-03-18 Alan Hayward <alan.hayward@arm.com>
12266
12267 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12268 variable names.
12269 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12270
5371b850
PA
122712019-03-18 Pedro Alves <palves@redhat.com>
12272 Eli Zaretskii <eliz@gnu.org>
12273
12274 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12275 m_line and m_start_of_line.
12276
b17c4cd0
EZ
122772019-03-18 Eli Zaretskii <eliz@gnu.org>
12278
12279 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12280 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12281 it returns a newline. This fixes a regression in TU mode, whereby
12282 the next line is output on the same screen line as the user input.
12283
4bd56d18
TT
122842019-03-18 Tom Tromey <tromey@adacore.com>
12285
12286 * minsyms.c (minimal_symbol_reader::install): Remove call to
12287 obstack_blank.
12288
55c10aca
PA
122892019-03-18 Pedro Alves <palves@redhat.com>
12290
12291 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12292 New globals.
12293 (apply_style): New, factored out from ...
12294 (apply_ansi_escape): ... this. Handle reverse video mode.
12295 (tui_set_reverse_mode): New function.
12296 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12297 * tui/tui-winsource.c (tui_show_source_line): Use
12298 tui_set_reverse_mode instead of setting A_STANDOUT.
12299 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12300 New setter methods.
12301
647bb750
HD
123022019-03-18 Hannes Domani <ssbssa@yahoo.de>
12303
12304 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12305 Handle tabs.
12306
bff8c71f
TT
123072019-03-18 Tom Tromey <tromey@adacore.com>
12308
12309 * ada-lang.c (empty_array): Add "high" parameter.
12310 (ada_evaluate_subexp): Update.
12311
58785d98
ST
123122019-03-17 Sergei Trofimovich <siarheit@google.com>
12313
12314 * unittests/string_view-selftests.c: Define
12315 _initialize_string_view_selftests unconditionally.
12316
d4cbef22
ВМ
123172019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12318
12319 PR gdb/24350
12320 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12321
fce4c071
ВМ
123222019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12323
12324 PR gdb/24351
12325 * windows-nat.c (display_selector): Fix format specifiers.
12326
f7f0a123
EZ
123272019-03-17 Eli Zaretskii <eliz@gnu.org>
12328
12329 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12330 tui_refill_source_window instead of tui_refresh_win, to update the
12331 current execution line. This fixes redisplay of the current line
12332 when stepping through the code with "next" or "step".
12333
ab42892f
EZ
123342019-03-16 Eli Zaretskii <eliz@gnu.org>
12335
12336 * source-cache.c (source_cache::get_source_lines): Call
12337 find_source_lines to initialize s->nlines. This fixes vertical
12338 scrolling of TUI source window when the DOWN arrow is pressed.
12339
8d8c087f
PW
123402019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12341
12342 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12343 linux-thread-db.c (_initialize_thread_db): Likewise.
12344
798e1c30
EZ
123452019-03-16 Eli Zaretskii <eliz@gnu.org>
12346
12347 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12348 wclrtoeol in tui_show_source_line". This reverts changes made in
12349 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12350
eefba3da
TT
123512019-03-15 Tom Tromey <tom@tromey.com>
12352
12353 * symtab.h (struct minimal_symbol): Derive from
12354 general_symbol_info.
12355 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12356 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12357 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12358 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12359 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12360 (MSYMBOL_SEARCH_NAME): Update.
12361 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12362 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12363 * minsyms.c (minimal_symbol_reader::record_full): Update.
12364
0de2420c
TT
123652019-03-15 Tom Tromey <tom@tromey.com>
12366
12367 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12368
042d75e4
TT
123692019-03-15 Tom Tromey <tom@tromey.com>
12370
12371 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12372 unique_xmalloc_ptr.
12373 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12374 Update.
12375 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12376 (build_minimal_symbol_hash_tables)
12377 (minimal_symbol_reader::install): Update.
12378
db92718b
TT
123792019-03-15 Tom Tromey <tom@tromey.com>
12380
12381 * symtab.c (create_demangled_names_hash): Update.
12382 (symbol_set_names): Update.
12383 * objfiles.h (struct objfile_per_bfd_storage)
12384 <demangled_names_hash>: Now an htab_up.
12385 * objfiles.c (objfile_per_bfd_storage): Simplify.
12386
d6797f46
TT
123872019-03-15 Tom Tromey <tom@tromey.com>
12388
12389 * objfiles.h (struct objfile_per_bfd_storage): Declare
12390 destructor.
12391 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12392 New.
12393 (get_objfile_bfd_data): Use new. Don't initialize
12394 language_of_main.
12395 (free_objfile_per_bfd_storage): Remove.
12396 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12397
741d7538
TT
123982019-03-15 Tom Tromey <tom@tromey.com>
12399
12400 * symfile.c (reread_symbols): Update.
12401 * objfiles.c (objfile::objfile): Update.
12402 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12403 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12404 comment.
12405 (minimal_symbol_reader::install): Update.
12406 (terminate_minimal_symbol_table): Remove.
12407 * jit.c (jit_object_close_impl): Update.
12408
788c80d1
TT
124092019-03-15 Tom Tromey <tom@tromey.com>
12410
12411 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12412 initializations.
12413
1b7a07cb
TT
124142019-03-15 Tom Tromey <tom@tromey.com>
12415
12416 * objfiles.h (struct objfile_per_bfd_storage)
12417 <demangled_hash_languages>: Now a bitset.
12418 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12419 (lookup_minimal_symbol): Update.
12420
3db066bc
TT
124212019-03-15 Tom Tromey <tom@tromey.com>
12422
12423 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12424 Don't return the symbol.
12425 * coffread.c (record_minimal_symbol): Use record_full.
12426
3fff2c37
EZ
124272019-03-14 Eli Zaretskii <eliz@gnu.org>
12428
12429 The MS-Windows port of ncurses fails to switch to a color pair if
12430 one or both of the colors are the implicit default colors. This
12431 change records the default colors when TUI is initialized, and
12432 then specifies them explicitly when a color pair uses the default
12433 colors. This allows color styling in TUI mode on MS-Windows.
12434
12435 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12436 ncurses_norm_attr.
12437 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12438 colors in ncurses_norm_attr.
12439 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12440 "none", replace it with the default color recorded in
12441 ncurses_norm_attr.
12442
3b336828
TT
124432019-03-14 Tom Tromey <tromey@adacore.com>
12444
12445 * source-cache.h (class source_cache) <get_source_lines>: Return
12446 std::string.
12447 * source-cache.c (source_cache::extract_lines): Handle case where
12448 first_pos==npos. Return std::string.
12449 (source_cache::get_source_lines): Update.
12450
d085f989
TT
124512019-03-14 Tom Tromey <tromey@adacore.com>
12452
12453 * NEWS: Add item for "style sources" commands.
12454 * source-cache.c (source_cache::get_source_lines): Check
12455 source_styling.
12456 * cli/cli-style.c (source_styling): New global.
12457 (_initialize_cli_style): Add "style sources" commands.
12458 (show_style_sources): New function.
12459 * cli/cli-style.h (source_styling): Declare.
12460
6f11e682
TT
124612019-03-14 Pedro Alves <palves@redhat.com>
12462 Tom Tromey <tromey@adacore.com>
12463
12464 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12465 * tui/tui-winsource.c (tui_refill_source_window): New function,
12466 from...
12467 (tui_horizontal_source_scroll): ... here. Move some logic.
12468 * cli/cli-style.c (set_style_enabled): Notify new observable.
12469 * tui/tui-hooks.c (tui_redisplay_source): New function.
12470 (tui_attach_detach_observers): Attach or detach
12471 tui_redisplay_source.
12472 * observable.h (source_styling_changed): New observable.
12473 * observable.c: Define source_styling_changed observable.
12474
a068643d
TT
124752019-03-13 Tom Tromey <tromey@adacore.com>
12476
12477 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12478 (i386_gnu_nat_target::store_registers): Update.
12479 * target-debug.h (target_debug_print_std_string): New macro.
12480 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12481 * windows-tdep.c (display_one_tib): Update.
12482 * tui/tui-stack.c (tui_make_status_line): Update.
12483 * top.c (print_inferior_quit_action): Update.
12484 * thread.c (thr_try_catch_cmd): Update.
12485 (add_thread_with_info): Update.
12486 (thread_target_id_str): Update.
12487 (thr_try_catch_cmd): Update.
12488 (thread_command): Update.
12489 (thread_find_command): Update.
12490 * record-btrace.c (record_btrace_target::info_record)
12491 (record_btrace_resume_thread, record_btrace_target::resume)
12492 (record_btrace_cancel_resume, record_btrace_step_thread)
12493 (record_btrace_target::wait, record_btrace_target::wait)
12494 (record_btrace_target::wait, record_btrace_target::stop): Update.
12495 * progspace.c (print_program_space): Update.
12496 * process-stratum-target.c
12497 (process_stratum_target::thread_address_space): Update.
12498 * linux-fork.c (linux_fork_mourn_inferior)
12499 (detach_checkpoint_command, info_checkpoints_command)
12500 (linux_fork_context): Update.
12501 (linux_fork_detach): Update.
12502 (class scoped_switch_fork_info): Update.
12503 (delete_checkpoint_command): Update.
12504 * infrun.c (follow_fork_inferior): Update.
12505 (follow_fork_inferior): Update.
12506 (proceed_after_vfork_done): Update.
12507 (handle_vfork_child_exec_or_exit): Update.
12508 (follow_exec): Update.
12509 (displaced_step_prepare_throw): Update.
12510 (displaced_step_restore): Update.
12511 (start_step_over): Update.
12512 (resume_1): Update.
12513 (clear_proceed_status_thread): Update.
12514 (proceed): Update.
12515 (print_target_wait_results): Update.
12516 (do_target_wait): Update.
12517 (context_switch): Update.
12518 (stop_all_threads): Update.
12519 (restart_threads): Update.
12520 (finish_step_over): Update.
12521 (handle_signal_stop): Update.
12522 (switch_back_to_stepped_thread): Update.
12523 (keep_going_pass_signal): Update.
12524 (print_exited_reason): Update.
12525 (normal_stop): Update.
12526 * inferior.c (inferior_pid_to_str): Change return type.
12527 (print_selected_inferior): Update.
12528 (add_inferior): Update.
12529 (detach_inferior): Update.
12530 * dummy-frame.c (fprint_dummy_frames): Update.
12531 * dcache.c (dcache_info_1): Update.
12532 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12533 (btrace_fetch, btrace_clear): Update.
12534 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12535 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12536 type.
12537 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12538 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12539 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12540 * gdbarch.c, gdbarch.h: Rebuild.
12541 * gdbarch.sh (core_pid_to_str): Change return type.
12542 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12543 return type.
12544 (windows_nat_target::pid_to_str): Change return type.
12545 (windows_delete_thread): Update.
12546 (windows_nat_target::attach): Update.
12547 (windows_nat_target::files_info): Update.
12548 * target-delegates.c: Rebuild.
12549 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12550 return type.
12551 (sol_thread_target::pid_to_str): Change return type.
12552 * remote.c (class remote_target) <pid_to_str>: Change return
12553 type.
12554 (remote_target::pid_to_str): Change return type.
12555 (extended_remote_target::attach, remote_target::remote_stop_ns)
12556 (remote_target::remote_notif_remove_queued_reply)
12557 (remote_target::push_stop_reply, remote_target::disable_btrace):
12558 Update.
12559 (extended_remote_target::attach): Update.
12560 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12561 type.
12562 (gdbsim_target::pid_to_str): Change return type.
12563 * ravenscar-thread.c (struct ravenscar_thread_target)
12564 <pid_to_str>: Change return type.
12565 (ravenscar_thread_target::pid_to_str): Change return type.
12566 * procfs.c (class procfs_target) <pid_to_str>: Change return
12567 type.
12568 (procfs_target::pid_to_str): Change return type.
12569 (procfs_target::attach): Update.
12570 (procfs_target::detach): Update.
12571 (procfs_target::fetch_registers): Update.
12572 (procfs_target::store_registers): Update.
12573 (procfs_target::wait): Update.
12574 (procfs_target::files_info): Update.
12575 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12576 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12577 return type.
12578 (nto_procfs_target::pid_to_str): Change return type.
12579 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12580 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12581 return type.
12582 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12583 (exit_lwp): Update.
12584 (attach_proc_task_lwp_callback, get_detach_signal)
12585 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12586 (linux_nat_target::resume, wait_lwp, stop_callback)
12587 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12588 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12589 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12590 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12591 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12592 type.
12593 (inf_ptrace_target::attach): Update.
12594 (inf_ptrace_target::files_info): Update.
12595 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12596 type.
12597 (go32_nat_target::pid_to_str): Change return type.
12598 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12599 (gnu_nat_target::wait): Update.
12600 (gnu_nat_target::wait): Update.
12601 (gnu_nat_target::resume): Update.
12602 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12603 (fbsd_nat_target::wait): Update.
12604 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12605 type.
12606 (darwin_nat_target::attach): Update.
12607 * corelow.c (class core_target) <pid_to_str>: Change return type.
12608 (core_target::pid_to_str): Change return type.
12609 * target.c (normal_pid_to_str): Change return type.
12610 (default_pid_to_str): Likewise.
12611 (target_pid_to_str): Change return type.
12612 (target_translate_tls_address): Update.
12613 (target_announce_detach): Update.
12614 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12615 return type.
12616 (bsd_uthread_target::pid_to_str): Change return type.
12617 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12618 type.
12619 (bsd_kvm_target::pid_to_str): Change return type.
12620 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12621 return type.
12622 (aix_thread_target::pid_to_str): Change return type.
12623 * target.h (struct target_ops) <pid_to_str>: Change return type.
12624 (target_pid_to_str, normal_pid_to_str): Likewise.
12625 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12626 type.
12627 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12628 type.
12629 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12630 return type.
12631 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12632 type.
12633 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12634 type.
12635 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12636 return type.
12637
b4be1b06
SM
126382019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12639
12640 * NEWS: Mention that the new default MI version is 3. Mention
12641 changes to the output of commands and events that deal with
12642 multi-location breakpoints.
12643 * breakpoint.c: Include "mi/mi-out.h".
12644 (print_one_breakpoint): Change output syntax if using MI version
12645 >= 3.
12646 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12647 New.
12648 (mi_multi_location_breakpoint_output_fixed): New.
12649 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12650 (mi_cmd_fix_multi_location_breakpoint_output): New.
12651 (mi_multi_location_breakpoint_output_fixed): New.
12652 * mi/mi-cmds.c (mi_cmds): Register command
12653 -fix-multi-location-breakpoint-output.
12654 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12655 interpreter "mi".
12656
8e5e5494
SM
126572019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12658
12659 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12660 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12661 instantiate mi_ui_out based on interpreter name.
12662 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12663 * mi/mi-main.c (mi_load_progress): Likewise.
12664
197df35e
JB
126652019-03-12 John Baldwin <jhb@FreeBSD.org>
12666
12667 * NEWS: Combine separate "New targets" sections for 8.3.
12668
8399425f
JB
126692019-03-12 John Baldwin <jhb@FreeBSD.org>
12670
12671 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12672 (ppcfbsd_init_abi): Install gdbarch
12673 "fetch_tls_load_module_address" and "get_thread_local_address"
12674 methods.
12675
b0f87ed0
JB
126762019-03-12 John Baldwin <jhb@FreeBSD.org>
12677
12678 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12679 (riscv_fbsd_init_abi): Install gdbarch
12680 "fetch_tls_load_module_address" and "get_thread_local_address"
12681 methods.
12682
ce25aa57
JB
126832019-03-12 John Baldwin <jhb@FreeBSD.org>
12684
12685 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12686 (i386fbsd_init_abi): Install gdbarch
12687 "fetch_tls_load_module_address" and "get_thread_local_address"
12688 methods.
12689
f5424cfa
JB
126902019-03-12 John Baldwin <jhb@FreeBSD.org>
12691
12692 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12693 (amd64fbsd_init_abi): Install gdbarch
12694 "fetch_tls_load_module_address" and "get_thread_local_address"
12695 methods.
12696
945f3901
JB
126972019-03-12 John Baldwin <jhb@FreeBSD.org>
12698
12699 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12700 (struct fbsd_pspace_data): New type.
12701 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12702 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12703 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12704 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12705 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12706
ef0bd204
JB
127072019-03-12 John Baldwin <jhb@FreeBSD.org>
12708
12709 * gdbtypes.c (lookup_struct_elt): New function.
12710 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12711 * gdbtypes.h (struct struct_elt): New type.
12712 (lookup_struct_elt): New prototype.
12713
36c53a02
JB
127142019-03-12 John Baldwin <jhb@FreeBSD.org>
12715
12716 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12717 remove disabled code block.
12718
6e056c81
JB
127192019-03-12 John Baldwin <jhb@FreeBSD.org>
12720
12721 * gdbarch.sh (get_thread_local_address): New method.
12722 * gdbarch.h, gdbarch.c: Regenerate.
12723 * target.c (target_translate_tls_address): Use
12724 gdbarch_get_thread_local_address if present instead of
12725 target::get_thread_local_address.
12726
cd250a18
JB
127272019-03-12 John Baldwin <jhb@FreeBSD.org>
12728
12729 * target.h (target::get_thread_local_address): Update comment.
12730
df22c1e5
JB
127312019-03-12 John Baldwin <jhb@FreeBSD.org>
12732
12733 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12734 objfile->separate_debug_objfile_backlink if not NULL.
12735
dd6876c9
JB
127362019-03-12 John Baldwin <jhb@FreeBSD.org>
12737
12738 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12739 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12740 (amd64bsd_store_inferior_registers): Likewise.
12741 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12742 Enable segment base registers.
12743 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12744 PT_GETFSBASE and PT_GETGSBASE.
12745 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12746 PT_SETGSBASE.
12747 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12748 segment base registers.
12749 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12750
1163a4b7
JB
127512019-03-12 John Baldwin <jhb@FreeBSD.org>
12752
12753 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12754 Update calls to i386_target_description to add 'segments'
12755 parameter.
12756 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12757 add segment base registers.
12758 * arch/i386.c (i386_create_target_description): Add 'segments'
12759 parameter to enable segment base registers.
12760 * arch/i386.h (i386_create_target_description): Likewise.
12761 * features/i386/32bit-segments.xml: New file.
12762 * features/i386/32bit-segments.c: Generate.
12763 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12764 call to i386_target_description to add 'segments' parameter.
12765 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12766 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12767 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12768 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12769 if feature is present.
12770 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12771 Add 'segments' parameter to call to i386_target_description.
12772 (i386_target_description): Add 'segments' parameter to enable
12773 segment base registers.
12774 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12775 to call to i386_target_description.
12776 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12777 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12778 Define I386_NUM_REGS.
12779 (i386_target_description): Add 'segments' parameter to enable
12780 segment base registers.
12781
3a350822
EZ
127822019-03-12 Eli Zaretskii <eliz@gnu.org>
12783
12784 PR/24325
12785 * source-cache.c: #undef open and close, to avoid unresolved
12786 externals during linking.
12787
ffdd69cf
TT
127882019-03-12 Tom Tromey <tromey@adacore.com>
12789
12790 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12791 const. Add initializers.
12792 (_initialize_remote): Don't initialize ptid globals.
12793
ec148c57
PA
127942019-03-12 Pedro Alves <palves@redhat.com>
12795
12796 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12797
32764270
PA
127982019-03-12 Pedro Alves <palves@redhat.com>
12799
12800 * cp-name-parser.y (main): Remove unused 'len' variable.
12801
17547186
TT
128022019-03-12 Tom Tromey <tromey@adacore.com>
12803
12804 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12805 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12806
d3a70e03
TT
128072019-03-12 Tom Tromey <tromey@adacore.com>
12808
12809 * linux-nat.c (iterate_over_lwps): Update.
12810 (stop_callback): Remove parameter.
12811 (stop_wait_callback, detach_callback, resume_set_callback)
12812 (select_singlestep_lwp_callback, set_ignore_sigint)
12813 (status_callback, resumed_callback, resume_clear_callback)
12814 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12815 data parameter.
12816 (linux_nat_target::detach, linux_nat_target::resume)
12817 (linux_stop_and_wait_all_lwps, select_event_lwp)
12818 (linux_nat_filter_event, linux_nat_wait_1)
12819 (linux_nat_target::kill, linux_nat_target::stop)
12820 (linux_nat_target::stop): Update.
12821 (linux_nat_resume_callback): Change type.
12822 (resume_stopped_resumed_lwps, count_events_callback)
12823 (select_event_lwp_callback): Likewise.
12824 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12825 * arm-linux-nat.c (struct update_registers_data): Remove.
12826 (update_registers_callback): Change type.
12827 (arm_linux_insert_hw_breakpoint1): Update.
12828 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12829 parameter.
12830 (x86_linux_dr_set_addr): Update.
12831 (x86_linux_dr_set_control): Update.
12832 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12833 (iterate_over_lwps): Use gdb::function_view.
12834 * nat/aarch64-linux-hw-point.c (struct
12835 aarch64_dr_update_callback_param): Remove.
12836 (debug_reg_change_callback): Change type.
12837 (aarch64_notify_debug_reg_change): Update.
12838 * s390-linux-nat.c (s390_refresh_per_info): Update.
12839
82cb27ff
TT
128402019-03-11 Tom Tromey <tromey@adacore.com>
12841
12842 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12843 redundant assignment to "this_cu".
12844
568c0683
SM
128452019-03-08 Simon Marchi <simon.marchi@efficios.com>
12846
12847 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12848
f09ce22d
SM
128492019-03-08 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12852 from...
12853 (rank_one_type): ... this.
12854
595f96a9
SM
128552019-03-08 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12858 from...
12859 (rank_one_type): ... this.
12860
2598a94b
SM
128612019-03-08 Simon Marchi <simon.marchi@efficios.com>
12862
12863 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12864 from...
12865 (rank_one_type): ... this.
12866
7f17b20d
SM
128672019-03-08 Simon Marchi <simon.marchi@efficios.com>
12868
12869 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12870 from...
12871 (rank_one_type): ... this.
12872
2c509035
SM
128732019-03-08 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12876 from...
12877 (rank_one_type): ... this.
12878
0dd322dc
SM
128792019-03-08 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12882 from...
12883 (rank_one_type): ... this.
12884
41ea4728
SM
128852019-03-08 Simon Marchi <simon.marchi@efficios.com>
12886
12887 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12888 from...
12889 (rank_one_type): ... this.
12890
793cd1d2
SM
128912019-03-08 Simon Marchi <simon.marchi@efficios.com>
12892
12893 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12894 from...
12895 (rank_one_type): ... this.
12896
34910087
SM
128972019-03-08 Simon Marchi <simon.marchi@efficios.com>
12898
12899 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12900 from...
12901 (rank_one_type): ... this.
12902
f1f832d6
SM
129032019-03-08 Simon Marchi <simon.marchi@efficios.com>
12904
12905 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12906 from...
12907 (rank_one_type): ... this.
12908
b9f4512f
SM
129092019-03-08 Simon Marchi <simon.marchi@efficios.com>
12910
12911 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12912 from...
12913 (rank_one_type): ... this.
12914
9293fc63
SM
129152019-03-08 Simon Marchi <simon.marchi@efficios.com>
12916
12917 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12918 from...
12919 (rank_one_type): ... this.
12920
e3abbe7e
PW
129212019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12922
12923 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12924 inferior-events' shows the example events.
12925
e4adb939
EZ
129262019-03-08 Eli Zaretskii <eliz@gnu.org>
12927
12928 Support styling on native MS-Windows console
12929
12930 PR/24315
12931 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12932 on MS-Windows if $TERM is not defined.
12933
12934 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12935
12936 * posix-hdep.c (gdb_console_fputs):
12937 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12938 functions.
12939 * ui-file.h (gdb_console_fputs): Add prototype.
12940
12941 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12942 back to fputs only if the former returns zero.
12943
25629dfd
TT
129442019-03-07 Tom Tromey <tom@tromey.com>
12945
12946 * symmisc.c (print_symbol_bcache_statistics): Update.
12947 (print_objfile_statistics): Update.
12948 * symfile.c (allocate_symtab): Update.
12949 * stabsread.c: Don't include bcache.h.
12950 * psymtab.h (struct psymbol_bcache): Don't declare.
12951 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12952 (psymbol_bcache_init, psymbol_bcache_free)
12953 (psymbol_bcache_get_bcache): Don't declare.
12954 * psymtab.c (struct psymbol_bcache): Remove.
12955 (psymtab_storage::psymtab_storage): Update.
12956 (psymtab_storage::~psymtab_storage): Update.
12957 (psymbol_bcache_init, psymbol_bcache_free)
12958 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12959 (add_psymbol_to_bcache): Update.
12960 (allocate_psymtab): Update.
12961 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12962 macro_cache>: No longer pointers.
12963 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12964 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12965 * macrotab.c (macro_bcache): Update.
12966 * macroexp.c: Don't include bcache.h.
12967 * gdbtypes.c (check_types_worklist): Update.
12968 (types_deeply_equal): Remove TRY/CATCH. Update.
12969 * elfread.c (elf_symtab_read): Update.
12970 * dwarf2read.c: Don't include bcache.h.
12971 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12972 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12973 (print_bcache_statistics, bcache_memory_used): Don't declare.
12974 (struct bcache): Move from bcache.c. Add constructor, destructor,
12975 methods. Rename all data members.
12976 * bcache.c (struct bcache): Move to bcache.h.
12977 (bcache::expand_hash_table): Rename from expand_hash_table.
12978 (bcache): Remove.
12979 (bcache::insert): Rename from bcache_full.
12980 (bcache::compare): Rename from bcache_compare.
12981 (bcache_xmalloc): Remove.
12982 (bcache::~bcache): Rename from bcache_xfree.
12983 (bcache::print_statistics): Rename from print_bcache_statistics.
12984 (bcache::memory_used): Rename from bcache_memory_used.
12985
fe726667
PA
129862019-03-07 Pedro Alves <palves@redhat.com>
12987
12988 * infrun.c (normal_stop): Also check for
12989 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12990
7584bb30
AB
129912019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12992
12993 * f-lang.c (value_from_host_double): Moved to...
12994 * value.c (value_from_host_double): ...here.
12995 * value.h (value_from_host_double): Declare.
12996 * guile/scm-math.c (vlscm_convert_typed_number): Use
12997 value_from_host_double.
12998 (vlscm_convert_number): Likewise.
12999 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13000 * python/py-value.c (convert_value_from_python): Likewise.
13001
a7b1986e
TT
130022019-03-06 Tom Tromey <tom@tromey.com>
13003
13004 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13005
0ccf4211
TT
130062019-03-06 Tom Tromey <tom@tromey.com>
13007
13008 * utils.h (free_current_contents): Don't declare.
13009 * utils.c (free_current_contents): Remove.
13010
fe7b42e5
TT
130112019-03-06 Tom Tromey <tom@tromey.com>
13012
13013 * top.c (quit_force): Update.
13014 * main.c (captured_command_loop): Update.
13015 * common/new-op.c (operator new): Update.
13016 * common/common-exceptions.c (struct catcher)
13017 <save_cleanup_chain>: Remove member.
13018 (exceptions_state_mc_init): Update.
13019 (exception_try_scope_entry): Return nullptr.
13020 (exception_try_scope_exit, exception_rethrow)
13021 (throw_exception_sjlj, throw_exception_cxx): Update.
13022 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13023 (all_cleanups, do_cleanups, discard_cleanups)
13024 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13025 (restore_cleanups, restore_final_cleanups): Don't declare.
13026 (do_final_cleanups): Remove parameter.
13027 * common/cleanups.c (cleanup_chain, make_cleanup)
13028 (make_cleanup_dtor, all_cleanups, do_cleanups)
13029 (discard_my_cleanups, discard_cleanups)
13030 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13031 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13032 (null_cleanup): Remove.
13033 (do_final_cleanups): Remove parameter.
13034
c6321f19
TT
130352019-03-06 Tom Tromey <tom@tromey.com>
13036
13037 * remote.c (remote_target::remote_parse_stop_reply): Use
13038 unique_xmalloc_ptr.
13039
61b30099
TT
130402019-03-06 Tom Tromey <tom@tromey.com>
13041
13042 * stabsread.c (struct stabs_field_info): Rename from field_info.
13043 <list, fnlist>: Add initializers.
13044 <obstack>: New member.
13045 (read_member_functions, read_struct_fields, read_baseclasses):
13046 Allocate on obstack. Don't use cleanups.
13047 (read_one_struct_field, read_member_functions, read_struct_fields)
13048 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13049 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13050 (read_struct_type): Update.
13051
6cceac94
TT
130522019-03-06 Tom Tromey <tom@tromey.com>
13053
13054 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13055 * common/filestuff.h (make_cleanup_close): Don't declare.
13056 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13057 Remove.
13058
72412762
TT
130592019-03-06 Tom Tromey <tom@tromey.com>
13060
13061 * solib-aix.c: Use make_scope_exit.
13062
2b6ff1c0
TT
130632019-03-06 Tom Tromey <tom@tromey.com>
13064
13065 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13066 Use make_scope_exit.
13067
d01c5877
TT
130682019-03-06 Tom Tromey <tom@tromey.com>
13069
13070 * solib-svr4.c (disable_probes_interface): Remove parameter.
13071 (svr4_handle_solib_event): Use make_scope_exit.
13072
32603266
TT
130732019-03-06 Tom Tromey <tom@tromey.com>
13074
13075 * remote.c (struct stop_reply_deleter): Remove.
13076 (stop_reply_up): Update.
13077 (struct stop_reply): Derive from notif_event. Don't typedef.
13078 <regcache>: Now a std::vector.
13079 (stop_reply_xfree): Remove.
13080 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13081 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13082 (remote_target::discard_pending_stop_replies): Use delete.
13083 (remote_target::remote_parse_stop_reply): Update.
13084 (remote_target::process_stop_reply): Update.
13085 * remote-notif.h (struct notif_event): Add virtual destructor.
13086 Remove "dtr" member.
13087 (struct notif_client) <alloc_event>: Return a unique_ptr.
13088 (notif_event_xfree): Don't declare.
13089 (notif_event_up): New typedef.
13090 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13091 (notif_event_xfree, do_notif_event_xfree): Remove.
13092 (remote_notif_state_xfree): Update.
13093
9799571e
TT
130942019-03-06 Tom Tromey <tom@tromey.com>
13095
13096 * infrun.c (displaced_step_clear_cleanup): Now a
13097 forward_scope_exit type.
13098 (displaced_step_prepare_throw): Update.
13099 (displaced_step_fixup): Update.
13100
09e3c4ca
TT
131012019-03-06 Tom Tromey <tom@tromey.com>
13102
13103 * inferior.h (class inferior): Update comment.
13104 * gdbthread.h (class thread_info): Update comment.
13105
e2a03548
TT
131062019-03-06 Joel Brobecker <brobecker@adacore.com>
13107 Tom Tromey <tom@tromey.com>
13108
13109 * stabsread.h (struct stab_section_list): Remove.
13110 (coffstab_build_psymtabs): Update.
13111 * dbxread.c (symbuf_sections): Now a std::vector.
13112 (sect_idx): New global.
13113 (fill_symbuf): Update.
13114 (coffstab_build_psymtabs): Change type of stabsects parameter.
13115 Update.
13116 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13117 std::vector.
13118 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13119 (coff_locate_sections): Update.
13120 (coff_symfile_read): Remove cleanups. Update.
13121 (init_stringtab): Add storage parameter.
13122 (free_stringtab, free_stringtab_cleanup): Remove.
13123 (init_lineno): Add storage parameter.
13124 (free_linetab, free_linetab_cleanup): Remove.
13125
b7e60d85
PA
131262019-03-06 Pedro Alves <palves@redhat.com>
13127
13128 * linux-fork.c (fork_info::clobber_regs): Delete.
13129 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13130 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13131 comment. Adjust.
13132 (scoped_switch_fork_info::scoped_switch_fork_info)
13133 (checkpoint_command, linux_fork_context): Adjust
13134 fork_save_infrun_state calls.
13135
e52c971f
PA
131362019-03-06 Pedro Alves <palves@redhat.com>
13137
13138 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13139 (inf_has_multiple_threads): Return 'bool' and rewrite using
13140 inferior_info::threads().
13141
06974e6c
PA
131422019-03-06 Pedro Alves <palves@redhat.com>
13143
13144 * linux-fork.c: Include <list>.
13145 (fork_list): Now a std::list instance.
13146 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13147 (forks_exist_p, find_last_fork): Adjust.
13148 (new_fork): Delete.
13149 (one_fork_p): New.
13150 (add_fork): Adjust.
13151 (free_fork): Delete, folded into fork_info::~fork_info().
13152 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13153 Adjust.
13154 (init_fork_list): Delete.
13155 (linux_fork_killall, linux_fork_mourn_inferior)
13156 (linux_fork_detach, info_checkpoints_command): Adjust.
13157 (_initialize_linux_fork): No longer call init_fork_list.
13158
72f31aea
PA
131592019-03-06 Pedro Alves <palves@redhat.com>
13160
13161 * linux-fork.c (new_fork): New, split out of ...
13162 (add_fork): ... this. Return void. Move "first fork" special
13163 case from here, to ...
13164 (checkpoint_command): ... here.
13165 * linux-linux.h (add_fork): Return void.
13166
efbecbc1
AB
131672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13168
13169 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13170
0841c79a
AB
131712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13172 Chris January <chris.january@arm.com>
13173 David Lecomber <david.lecomber@arm.com>
13174
13175 * f-exp.y: New token, UNOP_INTRINSIC.
13176 (exp): New pattern using UNOP_INTRINSIC token.
13177 (f77_keywords): Add 'abs' keyword.
13178 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13179 (value_from_host_double): New function.
13180 (evaluate_subexp_f): Support UNOP_ABS.
13181
4a270568
AB
131822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13185 types.
13186
067630bd
AB
131872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13188
13189 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13190 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13191 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13192
3be47f7a
AB
131932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13194
13195 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13196
4d00f5d8
AB
131972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13198 Chris January <chris.january@arm.com>
13199
13200 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13201 * f-exp.y: Define 'KIND' token.
13202 (exp): New pattern for KIND expressions.
13203 (ptype): Handle types with a kind extension.
13204 (direct_abs_decl): Extend to spot kind extensions.
13205 (f77_keywords): Add 'kind' to the list.
13206 (push_kind_type): New function.
13207 (convert_to_kind_type): New function.
13208 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13209 * parse.c (operator_length_standard): Likewise.
13210 * parser-defs.h (enum type_pieces): Add tp_kind.
13211 * std-operator.def: Add UNOP_KIND.
13212
e454224f
AB
132132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13214
13215 * f-exp.y (f_parse): Set yydebug.
13216
9dad4a58
AB
132172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13218
13219 * f-lang.c (evaluate_subexp_f): New function.
13220 (exp_descriptor_f): New global.
13221 (f_language_defn): Use exp_descriptor_f instead of
13222 exp_descriptor_standard.
13223
c8f91604
AB
132242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13225
13226 * f-exp.y (struct token): Add comments.
13227 (dot_ops): Remove uppercase versions and the end marker.
13228 (f77_keywords): Likewise.
13229 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13230 entries in the dot_ops array are case insensitive, and use
13231 strncasecmp to compare strings. Also some whitespace cleanup in
13232 this area. Similar for the f77_keywords array, except entries in
13233 this list might be case sensitive.
13234
dd9f2c76
AB
132352019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13236
13237 * f-exp.y (struct f77_boolean_val): Add comments.
13238 (boolean_values): Remove uppercase versions, and end marker.
13239 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13240 and use strncasecmp to achieve case insensitivity. Additionally,
13241 perform whitespace cleanup around this code.
13242
67a3048c
TT
132432019-03-06 Tom Tromey <tromey@adacore.com>
13244
13245 * remote-sim.c (gdbsim_target_open): Use result of
13246 gdb_argv::release.
13247
aa3cfbda
RB
132482019-03-06 Richard Bunt <richard.bunt@arm.com>
13249 Dirk Schubert <dirk.schubert@arm.com>
13250 Chris January <chris.january@arm.com>
13251
13252 * eval.c (evaluate_subexp_standard): Call Fortran argument
13253 wrapping logic.
13254 * f-lang.c (struct value): A value which can be passed into a
13255 Fortran function call.
13256 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13257 where appropriate.
13258 (struct type): Value ready for a Fortran function call.
13259 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13260 is needed.
13261 * f-lang.h (fortran_argument_convert): Declaration.
13262 (fortran_preserve_arg_pointer): Declaration.
13263 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13264
ea38e5df
TT
132652019-03-05 Tom Tromey <tromey@adacore.com>
13266
13267 * python/py-prettyprint.c (print_string_repr): Remove #if.
13268 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13269
06b5b831
TT
132702019-03-05 Tom Tromey <tromey@adacore.com>
13271
13272 * target.c (the_dummy_target): Move later. Change type to
13273 "dummy_target".
13274 (initialize_targets): Don't initialize the_dummy_target.
13275
edbd9e45
TT
132762019-03-05 Tom Tromey <tromey@adacore.com>
13277
13278 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13279 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13280
c119e040
TT
132812019-03-05 Tom Tromey <tromey@adacore.com>
13282
13283 * windows-nat.c (windows_nat_target::attach)
13284 (windows_nat_target::detach): Don't call gdb_flush.
13285 * valprint.c (generic_val_print, val_print, val_print_string):
13286 Don't call gdb_flush.
13287 * utils.c (defaulted_query): Don't call gdb_flush.
13288 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13289 * target.c (target_announce_detach): Don't call gdb_flush.
13290 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13291 * remote.c (extended_remote_target::attach): Don't call
13292 gdb_flush.
13293 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13294 * printcmd.c (do_examine): Don't call gdb_flush.
13295 (info_display_command): Don't call gdb_flush.
13296 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13297 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13298 * memattr.c (info_mem_command): Don't call gdb_flush.
13299 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13300 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13301 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13302 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13303 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13304 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13305 (gnu_nat_target::detach): Don't call gdb_flush.
13306 * f-valprint.c (f_val_print): Don't call gdb_flush.
13307 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13308 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13309 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13310 gdb_flush.
13311 * c-valprint.c (c_val_print): Don't call gdb_flush.
13312 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13313
895dafa6
TT
133142019-03-05 Tom Tromey <tromey@adacore.com>
13315
13316 * varobj.c (update_dynamic_varobj_children): Update.
13317 (install_default_visualizer): Use reset, not release.
13318 * value.c (set_internalvar): Update.
13319 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13320 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13321 ATTRIBUTE_UNUSED_RESULT.
13322
88a774b9
TT
133232019-03-05 Tom Tromey <tromey@adacore.com>
13324
13325 * remote.c (class scoped_remote_fd) <release>: Add
13326 ATTRIBUTE_UNUSED_RESULT.
13327
4e4a8b93
TT
133282019-03-05 Tom Tromey <tromey@adacore.com>
13329
13330 * macroexp.c (struct macro_buffer) <release>: Add
13331 ATTRIBUTE_UNUSED_RESULT.
13332
083eef1f
TT
133332019-03-05 Tom Tromey <tromey@adacore.com>
13334
13335 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13336 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13337 ATTRIBUTE_UNUSED_RESULT.
13338
3cabd438
TT
133392019-03-05 Tom Tromey <tromey@adacore.com>
13340
13341 * common/scoped_fd.h (class scoped_fd) <release>: Add
13342 ATTRIBUTE_UNUSED_RESULT.
13343
41e3300a
TT
133442019-03-05 Tom Tromey <tromey@adacore.com>
13345
13346 * parser-defs.h (struct parser_state) <release>: Add
13347 ATTRIBUTE_UNUSED_RESULT.
13348
18cb7c9f
TT
133492019-03-05 Tom Tromey <tromey@adacore.com>
13350
13351 * utils.h (class gdb_argv) <release>: Add
13352 ATTRIBUTE_UNUSED_RESULT.
13353 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13354
41fa577f
EZ
133552019-03-02 Eli Zaretskii <eliz@gnu.org>
13356
a6a4b2c6
EZ
13357 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13358 for-loop range, to avoid compiler warnings.
13359
13360 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13361 avoid compiler warnings about unused variables.
13362
742a7df5
EZ
13363 * NEWS: Mention end of support for native debugging on MS-Windows
13364 before XP.
13365
41fa577f
EZ
13366 PR gdb/24292
13367 * common/netstuff.c:
13368 * gdbserver/gdbreplay.c
13369 * gdbserver/remote-utils.c:
13370 * ser-tcp.c:
13371 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13372 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13373 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13374 'getaddrinfo' and 'freeaddrinfo' were not available before
13375 Windows XP, and mingw.org's MinGW headers by default define
13376 _WIN32_WINNT to 0x500.
13377
827f438f
GB
133782019-03-01 Gary Benson <gbenson@redhat.com>
13379
13380 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13381
92137da0
RO
133822019-02-28 Brian Vandenberg <phantall@gmail.com>
13383 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13384
13385 PR gdb/8527
13386 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13387 set_sigint_trap, clear_sigint_trap.
13388
799efbe8
PW
133892019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13390
13391 * target.c (target_detach): Clear the regcache and the
13392 frame cache.
13393
8ed25214
PA
133942019-02-27 Pedro Alves <palves@redhat.com>
13395
13396 * utils.c (set_screen_size): When we cap the height/width sizes,
13397 tweak the corresponding command variable to show "unlimited":
13398
23031e31
SJ
133992019-02-27 Saagar Jha <saagar@saagarjha.com>
13400 Pedro Alves <palves@redhat.com>
13401
13402 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13403 before calling rl_set_screen_size.
13404
6c28e44a
TT
134052019-02-27 Tom Tromey <tromey@adacore.com>
13406
13407 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13408 define.
13409 * python/py-value.c: Remove Python 2.4 workaround.
13410 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13411 workaround.
13412 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13413 Python 2.4 workaround.
13414 * python/python-internal.h: Remove Python 2.4 comment.
13415 (Py_ssize_t): Don't define.
13416 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13417 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13418 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13419 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13420 * python/python.c (do_start_initialization): Remove Python 2.4
13421 workaround.
13422 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13423 (print_children): Remove Python 2.4 workaround.
13424 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13425 workaround.
13426 (CHARBUFFERPROC_NAME): Remove.
13427 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13428 Python 2.4 workaround.
13429
2c3fc25d 134302019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13431
2c3fc25d
KB
13432 * NEWS: Note minimum Python version.
13433
6ca62222
KB
134342019-02-27 Kevin Buettner <kevinb@redhat.com>
13435
13436 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13437 code from these functions. Remove corresponding ifdefs. Use
13438 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13439 Remove gotos and target of gotos.
13440 (infpy_search_memory): Likewise.
13441
f4bc7d2c
AB
134422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13443
13444 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13445 (hppa_gdbarch_init): Don't register deleted functions with
13446 gdbarch.
13447
9734a586
AB
134482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13449
13450 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13451 (h8300_unwind_sp): Delete.
13452 (h8300_dummy_id): Delete.
13453 (h8300_gdbarch_init): Don't register deleted functions with
13454 gdbarch.
13455
68b867f3
AB
134562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13457
13458 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13459 (ft32_unwind_pc): Delete.
13460 (ft32_unwind_sp): Delete.
13461 (ft32_gdbarch_init): Don't register deleted functions with
13462 gdbarch.
13463
2fbe7ad0
AB
134642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13465
13466 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13467 (frv_unwind_pc): Delete.
13468 (frv_unwind_sp): Delete.
13469 (frv_gdbarch_init): Don't register deleted functions with
13470 gdbarch.
13471
76055cbe
AB
134722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13473
13474 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13475 (riscv_unwind_pc): Delete.
13476 (riscv_unwind_sp): Delete.
13477 (riscv_gdbarch_init): Don't register deleted functions with
13478 gdbarch.
13479
4133e5a1
AB
134802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13483 (csky_unwind_pc): Delete.
13484 (csky_unwind_sp): Delete.
13485 (csky_gdbarch_init): Don't register deleted functions with
13486 gdbarch.
13487
8010f576
AB
134882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13489
13490 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13491 (cris_unwind_pc): Delete.
13492 (cris_unwind_sp): Delete.
13493 (cris_gdbarch_init): Don't register deleted functions with
13494 gdbarch.
13495
b56bf084
AB
134962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13497
13498 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13499 (bfin_unwind_pc): Delete.
13500 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13501
a19a650f
AB
135022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13503
13504 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13505 (arm_unwind_pc): Delete.
13506 (arm_unwind_sp): Delete.
13507 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13508
f8278c3c
AB
135092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13510
13511 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13512 (arc_unwind_pc): Delete.
13513 (arc_unwind_sp): Delete.
13514 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13515
480e46cf
AB
135162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13517
13518 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13519 (alpha_unwind_pc): Delete.
13520 (alpha_gdbarch_init): Don't register deleted functions with
13521 gdbarch.
13522
7a995095
AB
135232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13524
13525 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13526 (aarch64_unwind_pc): Delete.
13527 (aarch64_unwind_sp): Delete.
13528 (aarch64_gdbarch_init): Don't register deleted functions with
13529 gdbarch.
13530
bf9a735e
AB
135312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * gdbtypes.c (type_align): Don't consider static members when
13534 computing structure alignment.
13535
5561fc30
AB
135362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13537
13538 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13539 return 0 for other types.
13540 * arch-utils.c (default_type_align): Always return 0.
13541 * gdbarch.h: Regenerate.
13542 * gdbarch.sh (type_align): Extend comment.
13543 * gdbtypes.c (type_align): Add additional comments, always call
13544 gdbarch_type_align before applying the default rules.
13545 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13546 generic code will then apply a suitable default.
13547 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13548 types, return 0 for other types.
13549
9335e75a
JB
135502019-02-27 Joel Brobecker <brobecker@adacore.com>
13551
13552 * NEWS: Create a new section for the next release branch.
13553 Rename the section of the current branch, now that it has
13554 been cut.
13555
3d34d8de
JB
135562019-02-27 Joel Brobecker <brobecker@adacore.com>
13557
13558 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13559 * version.in: Bump version to 8.3.50.DATE-git.
13560
143420fb
SM
135612019-02-26 Simon Marchi <simon.marchi@efficios.com>
13562
13563 * aix-thread.c (ptid_cmp): Remove unused variable.
13564 (get_signaled_thread): Likewise.
13565 (store_regs_user_thread): Likewise.
13566 (store_regs_kernel_thread): Likewise.
13567 (fetch_regs_kernel_thread): Remove shadowed variable.
13568
172fb711
AB
135692019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13570
13571 * features/riscv/32bit-cpu.xml: Add register numbers.
13572 * features/riscv/32bit-fpu.c: Regenerate.
13573 * features/riscv/32bit-fpu.xml: Add register numbers.
13574 * features/riscv/64bit-cpu.xml: Add register numbers.
13575 * features/riscv/64bit-fpu.c: Regenerate.
13576 * features/riscv/64bit-fpu.xml: Add register numbers.
13577
26c89782
KB
135782019-02-26 Kevin Buettner <kevinb@redhat.com>
13579
af54ade9 13580 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13581 * python/py-value.c (convert_buffer_and_type_to_value): New
13582 function.
13583 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13584 Add support for handling an optional second argument. Call
13585 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13586 * python/python-internal.h (Py_buffer_deleter): New struct.
13587 (Py_buffer_up): New typedef.
13588
0f58c9e8
JB
135892019-02-25 John Baldwin <jhb@FreeBSD.org>
13590
13591 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13592 instead of releasing ownership.
13593
0a0f4c01
JR
135942019-02-25 Jordan Rupprecht <rupprecht@google.com>
13595
13596 * dwarf2read.c (open_and_init_dwp_file): Call
13597 elf_numsections instead of bfd_count_sections to initialize
13598 dwp_file->num_sections.
13599
cd5a152c
TT
136002019-02-25 Tom Tromey <tromey@adacore.com>
13601
13602 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13603
8a6a8513
SDJ
136042019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13605
13606 * gcore.in: Add '--readnever' option when invoking GDB.
13607
04dcda9c
SM
136082019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13609
13610 * MAINTAINERS: Update my email address.
13611
07bc701d
SM
136122019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13613
13614 * build-id.c (build_id_to_debug_bfd_1): New function.
13615 (build_id_to_debug_bfd): Look for separate debug file in
13616 sysroot.
13617
c6f4a5d0
AB
136182019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13619
13620 * gdbarch.sh: Update the copyright year range that is placed into
13621 generated files.
13622
9600246d
KS
136232019-02-22 Keith Seitz <keiths@redhat.com>
13624
13625 PR symtab/23853
13626 * linespec.c (create_sals_line_offset): Search for the default
13627 symtab's filename instead of its fullname.
13628
7557a514
AH
136292019-02-21 Alan Hayward <alan.hayward@arm.com>
13630
13631 * NEWS: Update style defaults.
13632
ee2bcb0c
AH
136332019-02-21 Alan Hayward <alan.hayward@arm.com>
13634
13635 * main.c (captured_main_1): Disable styling in batch mode.
13636
0c95f9ed
TT
136372019-02-20 Tom Tromey <tom@tromey.com>
13638
13639 * symtab.c (symtab_symbol_info): Fix typos.
13640
c763b894
TT
136412019-02-20 Tom Tromey <tromey@adacore.com>
13642
13643 * findcmd.c (_initialize_mem_search): Use upper case for
13644 metasyntactic variables.
13645
0ef8a082
AH
136462019-02-20 Alan Hayward <alan.hayward@arm.com>
13647
13648 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13649 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13650
6caa91b6
SM
136512019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13652
13653 * top.h (source_file_name): Change to std::string.
13654 * top.c (source_file_name): Likewise.
13655 (command_line_input): Adjust.
13656 * cli/cli-script.c (script_from_file): Adjust.
13657
98814c6c
TT
136582019-02-19 Tom Tromey <tromey@adacore.com>
13659
13660 * ravenscar-thread.c
13661 (ravenscar_thread_target::update_thread_list): Don't call
13662 ada_build_task_list.
13663 * ada-lang.h (ada_build_task_list): Don't declare.
13664 * ada-tasks.c (struct ada_tasks_inferior_data)
13665 <task_list_valid_p>: Now bool.
13666 (read_known_tasks, ada_task_list_changed)
13667 (ada_tasks_invalidate_inferior_data): Update.
13668 (read_known_tasks_array): Return bool.
13669 (read_known_tasks_list): Likewise.
13670 (read_known_tasks): Return void.
13671 (ada_build_task_list): Now static.
13672
70cd633e
AB
136732019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13674
13675 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13676 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13677
040b3e95
PW
136782019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13679
13680 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13681 variant for ada_tasks_pspace_data_handle and
13682 ada_tasks_inferior_data_handle.
13683 (ada_tasks_pspace_data_cleanup): New function.
13684 (ada_tasks_inferior_data_cleanup): New function.
13685
9409233b
TT
136862019-02-17 Tom Tromey <tom@tromey.com>
13687
13688 * macrotab.h (macro_source_fullname): Return a std::string.
13689 * macrotab.c (macro_include, check_for_redefinition)
13690 (macro_undef, macro_lookup_definition, foreach_macro)
13691 (foreach_macro_in_scope): Update.
13692 (macro_source_fullname): Return a std::string.
13693 * macrocmd.c (show_pp_source_pos): Update.
13694
6506371f
TT
136952019-02-17 Tom Tromey <tom@tromey.com>
13696
13697 * macrocmd.c (show_pp_source_pos): Style the file names.
13698
0c820d67
TT
136992019-02-17 Tom Tromey <tom@tromey.com>
13700
13701 PR tui/24197:
13702 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13703
a0087920
TT
137042019-02-17 Tom Tromey <tom@tromey.com>
13705
13706 * ada-lang.c (user_select_syms): Use filtered printing.
13707 * utils.c (wrap_style): New global.
13708 (desired_style): Remove.
13709 (emit_style_escape): Add stream parameter.
13710 (set_output_style, reset_terminal_style, prompt_for_continue):
13711 Update.
13712 (flush_wrap_buffer): Only flush gdb_stdout.
13713 (wrap_here): Set wrap_style.
13714 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13715 treat escape sequences as a character. Change when wrap buffer is
13716 flushed.
13717 (fputs_styled): Do not set the output style when the default is
13718 requested.
13719 * ui-style.h (struct ui_file_style) <is_default>: New method.
13720 * source.c (print_source_lines_base): Emit escape sequences in one
13721 piece.
13722
75ba10dc
JB
137232019-02-17 Joel Brobecker <brobecker@adacore.com>
13724
13725 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13726 integers and enumeration types.
13727
a2cd4f14
JB
137282019-02-17 Joel Brobecker <brobecker@adacore.com>
13729
13730 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13731 instead of lookup_symbol_in_language
13732 (do_exact_match): New function.
13733 (ada_get_symbol_name_matcher): Return do_exact_match when
13734 doing a verbatim match.
13735
485b851b
TT
137362019-02-15 Tom Tromey <tromey@adacore.com>
13737
13738 * ravenscar-thread.c (ravenscar_thread_target::resume)
13739 (ravenscar_thread_target::wait): Special case wildcard requests.
13740
0b790b1e
TT
137412019-02-15 Tom Tromey <tromey@adacore.com>
13742
13743 * ravenscar-thread.c (base_ptid): Remove.
13744 (struct ravenscar_thread_target) <close>: New method.
13745 <m_base_ptid>: New member.
13746 <update_inferior_ptid, active_task, task_is_currently_active,
13747 runtime_initialized>: Declare methods.
13748 <ravenscar_thread_target>: Add constructor.
13749 (ravenscar_thread_target::task_is_currently_active)
13750 (ravenscar_thread_target::update_inferior_ptid)
13751 (ravenscar_runtime_initialized): Rename. Now methods.
13752 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13753 (ravenscar_thread_target::update_thread_list): Update.
13754 (ravenscar_thread_target::active_task): Now method.
13755 (ravenscar_thread_target::store_registers)
13756 (ravenscar_thread_target::prepare_to_store)
13757 (ravenscar_thread_target::prepare_to_store)
13758 (ravenscar_thread_target::mourn_inferior): Update.
13759 (ravenscar_inferior_created): Use "new" to create target.
13760 (ravenscar_thread_target::get_ada_task_ptid): Update.
13761 (_initialize_ravenscar): Don't initialize base_ptid.
13762 (ravenscar_ops): Remove global.
13763
dea57a62
TT
137642019-02-15 Tom Tromey <tromey@adacore.com>
13765
13766 * target.h (push_target): Declare new overload.
13767 * target.c (push_target): New overload, taking an rvalue reference.
13768 * remote.c (remote_target::open_1): Use push_target overload.
13769 * corelow.c (core_target_open): Use push_target overload.
13770
989f3c58
TT
137712019-02-15 Tom Tromey <tromey@adacore.com>
13772
13773 * ravenscar-thread.c (is_ravenscar_task)
13774 (ravenscar_task_is_currently_active): Return bool.
13775 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13776 (_initialize_ravenscar): Remove "(void)".
13777 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13778 Return bool.
13779
6cbcc006
TT
137802019-02-15 Tom Tromey <tromey@adacore.com>
13781
13782 * ravenscar-thread.c (ravenscar_runtime_initializer)
13783 (has_ravenscar_runtime, get_running_thread_id)
13784 (ravenscar_thread_target::resume): Fix indentation.
13785
7657f14d
TT
137862019-02-15 Tom Tromey <tromey@adacore.com>
13787
13788 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13789 from ravenscar_arch_ops.
13790 (sparc_ravenscar_ops::fetch_registers)
13791 (sparc_ravenscar_ops::store_registers): Now methods.
13792 (sparc_ravenscar_prepare_to_store): Remove.
13793 (sparc_ravenscar_ops): Redefine.
13794 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13795 methods and destructor. Remove members.
13796 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13797 (ravenscar_thread_target::store_registers)
13798 (ravenscar_thread_target::prepare_to_store): Update.
13799 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13800 Remove.
13801 (struct ppc_ravenscar_powerpc_ops): Derive from
13802 ravenscar_arch_ops.
13803 (ppc_ravenscar_powerpc_ops::fetch_registers)
13804 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13805 (ppc_ravenscar_powerpc_ops): Redefine.
13806 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13807 (ppc_ravenscar_e500_ops::fetch_registers)
13808 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13809 (ppc_ravenscar_e500_ops): Redefine.
13810 * aarch64-ravenscar-thread.c
13811 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13812 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13813 (aarch64_ravenscar_fetch_registers)
13814 (aarch64_ravenscar_store_registers): Now methods.
13815 (aarch64_ravenscar_ops): Redefine.
13816
5b6ea500
TT
138172019-02-15 Tom Tromey <tromey@adacore.com>
13818
13819 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13820 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13821 (ravenscar_thread_target::stopped_by_watchpoint)
13822 (ravenscar_thread_target::stopped_data_address)
13823 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13824
e397fd39
TT
138252019-02-15 Tom Tromey <tromey@adacore.com>
13826
13827 * ravenscar-thread.c: Fix some typos.
13828
cc12f4a8
TT
138292019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13830 Tom Tromey <tromey@adacore.com>
13831
13832 * ada-lang.c (ada_exception_sal): Change addr_string to a
13833 std::string.
13834 (create_ada_exception_catchpoint): Update.
13835
5f486660
TT
138362019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13837 Tom Tromey <tromey@adacore.com>
13838
13839 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13840 (bp_location_ops): Remove.
13841 (base_breakpoint_allocate_location): Update.
13842 (free_bp_location): Update.
13843 * ada-lang.c (class ada_catchpoint_location)
13844 <ada_catchpoint_location>: Remove ops parameter.
13845 (ada_catchpoint_location_dtor): Remove.
13846 (ada_catchpoint_location_ops): Remove.
13847 (allocate_location_exception): Update.
13848 * breakpoint.h (struct bp_location_ops): Remove.
13849 (class bp_location) <bp_location>: Remove bp_location_ops
13850 parameter.
13851 <~bp_location>: Add destructor.
13852 <ops>: Remove.
13853
b671c7fb
TS
138542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13855 Pedro Alves <palves@redhat.com>
13856
13857 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13858 'PATH_MAX'.
13859
8071c5ce
DM
138602019-02-14 David Michael <fedora.dm0@gmail.com>
13861 Samuel Thibault <samuel.thibault@gnu.org>
13862 Thomas Schwinge <thomas@codesourcery.com>
13863
13864 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13865 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13866
b1041ae0
TS
138672019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13868
924514e1
TS
13869 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13870 (check_empty): Use "const char *".
13871
c29ee8d4
TS
13872 * gnu-nat.c (gnu_nat_target::detach): Instead of
13873 'detach_inferior (pid)' call
13874 'detach_inferior (find_inferior_pid (pid))'.
13875
6c6ef69f
TS
13876 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13877 'nat/fork-inferior.o'.
13878 * gnu-nat.c: #include "nat/fork-inferior.h".
13879
2d0a338c
TS
13880 * gnu-nat.c (gnu_nat_target::detach): Instead of
13881 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13882 * gnu-nat.h: #include "inf-child.h".
13883 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13884 'i386_gnu_nat_target::fetch_registers'.
13885 (gnu_store_registers): Rename/move to
13886 'i386_gnu_nat_target::store_registers'.
13887
cabb5f06
TS
13888 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13889 * gnu-nat.h (mach_thread_info): New function.
13890 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13891
b1041ae0
TS
13892 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13893
2988d01e
KF
138942019-02-14 Frederic Konrad <konrad@adacore.com>
13895
13896 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13897
c559d709
JB
138982019-02-14 Joel Brobecker <brobecker@adacore.com>
13899
13900 * windows-nat.c (windows_add_thread): Add new parameter
13901 "main_thread_p" with default value set to false. Update
13902 function documentation as well as all callers.
13903 (windows_delete_thread): Likewise.
13904 (fake_create_process): Update call to windows_add_thread.
13905 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13906 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13907 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13908 call to windows_delete_thread.
13909
007024cc
SM
139102019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13911
13912 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13913
f62318e9
JB
139142019-02-12 John Baldwin <jhb@FreeBSD.org>
13915
13916 * symfile.c (find_separate_debug_file): Use canonical path of
13917 sysroot with child_path instead of gdb_sysroot if it is valid.
13918
cd4b7848
JB
139192019-02-12 John Baldwin <jhb@FreeBSD.org>
13920
13921 * symfile.c (find_separate_debug_file): Use child_path to
13922 determine if an object file is under a sysroot.
13923
efac4bfe
JB
139242019-02-12 John Baldwin <jhb@FreeBSD.org>
13925
13926 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13927 unittests/child-path-selftests.c.
13928 * common/pathstuff.c (child_path): New function.
13929 * common/pathstuff.h (child_path): New prototype.
13930 * unittests/child-path-selftests.c: New file.
13931
402d2bfe
JB
139322019-02-12 John Baldwin <jhb@FreeBSD.org>
13933
13934 * symfile.c (find_separate_debug_file): Look for separate debug
13935 files in debug directories under the sysroot.
13936
1ed9f74e
PW
139372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13938
13939 * symtab.h (struct minimal_symbol data_p): New const method.
13940 (struct minimal_symbol text_p): Likewise.
13941 * symtab.c (output_source_filename): Use file name style
13942 to print file name.
13943 (print_symbol_info): Likewise.
13944 (print_msymbol_info): Use address style to print addresses.
13945 Use function name style to print executable text symbols.
13946 (expand_symtab_containing_pc): Use data_p.
13947 (find_pc_sect_compunit_symtab): Likewise.
13948
2636d81d
PW
139492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13950
13951 * breakpoint.c (describe_other_breakpoints): Use address style
13952 to print addresses.
13953 (say_where): Likewise.
13954
ac8c53cc
PW
139552019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13956
13957 * ada-typeprint.c (print_func_type): Print function name
13958 style to print function name.
13959 * c-typeprint.c (c_print_type_1): Likewise.
13960
ea638c43
AH
139612019-02-11 Alan Hayward <alan.hayward@arm.com>
13962
13963 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13964 for execve.
13965
ab759ca8
PW
139662019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13967
13968 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13969 type_stack.
13970
aff29d1c
JB
139712019-02-10 Joel Brobecker <brobecker@adacore.com>
13972
13973 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13974 TYPE_CODE_REF types.
13975
617126bc
JW
139762019-02-08 Jim Wilson <jimw@sifive.com>
13977
13978 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13979 (riscv_linux_fregset): New.
13980 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13981
46e3ed7f
TT
139822019-02-07 Tom Tromey <tom@tromey.com>
13983
13984 * thread.c (thread_cancel_execution_command): Update.
13985 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13986 methods.
13987 (struct thread_fsm_ops): Remove.
13988 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13989 (thread_fsm_should_stop, thread_fsm_return_value)
13990 (thread_fsm_set_finished, thread_fsm_finished_p)
13991 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13992 Don't declare.
13993 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13994 * infrun.c (clear_proceed_status_thread)
13995 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13996 (print_stop_event): Update.
13997 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13998 Add constructor.
13999 (step_command_fsm_ops): Remove.
14000 (new_step_command_fsm): Remove.
14001 (step_1): Update.
14002 (step_command_fsm::should_stop): Rename from
14003 step_command_fsm_should_stop.
14004 (step_command_fsm::clean_up): Rename from
14005 step_command_fsm_clean_up.
14006 (step_command_fsm::do_async_reply_reason): Rename from
14007 step_command_fsm_async_reply_reason.
14008 (struct until_next_fsm): Inherit from thread_fsm. Add
14009 constructor.
14010 (until_next_fsm_ops): Remove.
14011 (new_until_next_fsm): Remove.
14012 (until_next_fsm::should_stop): Rename from
14013 until_next_fsm_should_stop.
14014 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14015 (until_next_fsm::do_async_reply_reason): Rename from
14016 until_next_fsm_async_reply_reason.
14017 (struct finish_command_fsm): Inherit from thread_fsm. Add
14018 constructor. Change type of breakpoint.
14019 (finish_command_fsm_ops): Remove.
14020 (new_finish_command_fsm): Remove.
14021 (finish_command_fsm::should_stop): Rename from
14022 finish_command_fsm_should_stop.
14023 (finish_command_fsm::clean_up): Rename from
14024 finish_command_fsm_clean_up.
14025 (finish_command_fsm::return_value): Rename from
14026 finish_command_fsm_return_value.
14027 (finish_command_fsm::do_async_reply_reason): Rename from
14028 finish_command_fsm_async_reply_reason.
14029 (finish_command): Update.
14030 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14031 Add constructor.
14032 (call_thread_fsm_ops): Remove.
14033 (call_thread_fsm::call_thread_fsm): Rename from
14034 new_call_thread_fsm.
14035 (call_thread_fsm::should_stop): Rename from
14036 call_thread_fsm_should_stop.
14037 (call_thread_fsm::should_notify_stop): Rename from
14038 call_thread_fsm_should_notify_stop.
14039 (run_inferior_call, call_function_by_hand_dummy): Update.
14040 * cli/cli-interp.c (should_print_stop_to_console): Update.
14041 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14042 Add constructor. Change type of location_breakpoint,
14043 caller_breakpoint.
14044 (until_break_fsm_ops): Remove.
14045 (new_until_break_fsm): Remove.
14046 (until_break_fsm::should_stop): Rename from
14047 until_break_fsm_should_stop.
14048 (until_break_fsm::clean_up): Rename from
14049 until_break_fsm_clean_up.
14050 (until_break_fsm::do_async_reply_reason): Rename from
14051 until_break_fsm_async_reply_reason.
14052 (until_break_command): Update.
14053 * thread-fsm.c: Remove.
14054 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14055
1a5c2598
TT
140562019-02-07 Tom Tromey <tom@tromey.com>
14057
14058 * yy-remap.h: Add include guard.
14059 * xtensa-tdep.h: Add include guard.
14060 * xcoffread.h: Rename include guard.
14061 * varobj-iter.h: Add include guard.
14062 * tui/tui.h: Rename include guard.
14063 * tui/tui-winsource.h: Rename include guard.
14064 * tui/tui-wingeneral.h: Rename include guard.
14065 * tui/tui-windata.h: Rename include guard.
14066 * tui/tui-win.h: Rename include guard.
14067 * tui/tui-stack.h: Rename include guard.
14068 * tui/tui-source.h: Rename include guard.
14069 * tui/tui-regs.h: Rename include guard.
14070 * tui/tui-out.h: Rename include guard.
14071 * tui/tui-layout.h: Rename include guard.
14072 * tui/tui-io.h: Rename include guard.
14073 * tui/tui-hooks.h: Rename include guard.
14074 * tui/tui-file.h: Rename include guard.
14075 * tui/tui-disasm.h: Rename include guard.
14076 * tui/tui-data.h: Rename include guard.
14077 * tui/tui-command.h: Rename include guard.
14078 * tic6x-tdep.h: Add include guard.
14079 * target/waitstatus.h: Rename include guard.
14080 * target/wait.h: Rename include guard.
14081 * target/target.h: Rename include guard.
14082 * target/resume.h: Rename include guard.
14083 * target-float.h: Rename include guard.
14084 * stabsread.h: Add include guard.
14085 * rs6000-tdep.h: Add include guard.
14086 * riscv-fbsd-tdep.h: Add include guard.
14087 * regformats/regdef.h: Rename include guard.
14088 * record.h: Rename include guard.
14089 * python/python.h: Rename include guard.
14090 * python/python-internal.h: Rename include guard.
14091 * python/py-stopevent.h: Rename include guard.
14092 * python/py-ref.h: Rename include guard.
14093 * python/py-record.h: Rename include guard.
14094 * python/py-record-full.h: Rename include guard.
14095 * python/py-record-btrace.h: Rename include guard.
14096 * python/py-instruction.h: Rename include guard.
14097 * python/py-events.h: Rename include guard.
14098 * python/py-event.h: Rename include guard.
14099 * procfs.h: Add include guard.
14100 * proc-utils.h: Add include guard.
14101 * p-lang.h: Add include guard.
14102 * or1k-tdep.h: Rename include guard.
14103 * observable.h: Rename include guard.
14104 * nto-tdep.h: Rename include guard.
14105 * nat/x86-linux.h: Rename include guard.
14106 * nat/x86-linux-dregs.h: Rename include guard.
14107 * nat/x86-gcc-cpuid.h: Add include guard.
14108 * nat/x86-dregs.h: Rename include guard.
14109 * nat/x86-cpuid.h: Rename include guard.
14110 * nat/ppc-linux.h: Rename include guard.
14111 * nat/mips-linux-watch.h: Rename include guard.
14112 * nat/linux-waitpid.h: Rename include guard.
14113 * nat/linux-ptrace.h: Rename include guard.
14114 * nat/linux-procfs.h: Rename include guard.
14115 * nat/linux-osdata.h: Rename include guard.
14116 * nat/linux-nat.h: Rename include guard.
14117 * nat/linux-namespaces.h: Rename include guard.
14118 * nat/linux-btrace.h: Rename include guard.
14119 * nat/glibc_thread_db.h: Rename include guard.
14120 * nat/gdb_thread_db.h: Rename include guard.
14121 * nat/gdb_ptrace.h: Rename include guard.
14122 * nat/fork-inferior.h: Rename include guard.
14123 * nat/amd64-linux-siginfo.h: Rename include guard.
14124 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14125 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14126 * nat/aarch64-linux.h: Rename include guard.
14127 * nat/aarch64-linux-hw-point.h: Rename include guard.
14128 * mn10300-tdep.h: Add include guard.
14129 * mips-linux-tdep.h: Add include guard.
14130 * mi/mi-parse.h: Rename include guard.
14131 * mi/mi-out.h: Rename include guard.
14132 * mi/mi-main.h: Rename include guard.
14133 * mi/mi-interp.h: Rename include guard.
14134 * mi/mi-getopt.h: Rename include guard.
14135 * mi/mi-console.h: Rename include guard.
14136 * mi/mi-common.h: Rename include guard.
14137 * mi/mi-cmds.h: Rename include guard.
14138 * mi/mi-cmd-break.h: Rename include guard.
14139 * m2-lang.h: Add include guard.
14140 * location.h: Rename include guard.
14141 * linux-record.h: Rename include guard.
14142 * linux-nat.h: Add include guard.
14143 * linux-fork.h: Add include guard.
14144 * i386-darwin-tdep.h: Rename include guard.
14145 * hppa-linux-offsets.h: Add include guard.
14146 * guile/guile.h: Rename include guard.
14147 * guile/guile-internal.h: Rename include guard.
14148 * gnu-nat.h: Rename include guard.
14149 * gdb-stabs.h: Rename include guard.
14150 * frv-tdep.h: Add include guard.
14151 * f-lang.h: Add include guard.
14152 * event-loop.h: Add include guard.
14153 * darwin-nat.h: Rename include guard.
14154 * cp-abi.h: Rename include guard.
14155 * config/sparc/nm-sol2.h: Rename include guard.
14156 * config/nm-nto.h: Rename include guard.
14157 * config/nm-linux.h: Add include guard.
14158 * config/i386/nm-i386gnu.h: Rename include guard.
14159 * config/djgpp/nl_types.h: Rename include guard.
14160 * config/djgpp/langinfo.h: Rename include guard.
14161 * compile/gcc-cp-plugin.h: Add include guard.
14162 * compile/gcc-c-plugin.h: Add include guard.
14163 * compile/compile.h: Rename include guard.
14164 * compile/compile-object-run.h: Rename include guard.
14165 * compile/compile-object-load.h: Rename include guard.
14166 * compile/compile-internal.h: Rename include guard.
14167 * compile/compile-cplus.h: Rename include guard.
14168 * compile/compile-c.h: Rename include guard.
14169 * common/xml-utils.h: Rename include guard.
14170 * common/x86-xstate.h: Rename include guard.
14171 * common/version.h: Rename include guard.
14172 * common/vec.h: Rename include guard.
14173 * common/tdesc.h: Rename include guard.
14174 * common/selftest.h: Rename include guard.
14175 * common/scoped_restore.h: Rename include guard.
14176 * common/scoped_mmap.h: Rename include guard.
14177 * common/scoped_fd.h: Rename include guard.
14178 * common/safe-iterator.h: Rename include guard.
14179 * common/run-time-clock.h: Rename include guard.
14180 * common/refcounted-object.h: Rename include guard.
14181 * common/queue.h: Rename include guard.
14182 * common/ptid.h: Rename include guard.
14183 * common/print-utils.h: Rename include guard.
14184 * common/preprocessor.h: Rename include guard.
14185 * common/pathstuff.h: Rename include guard.
14186 * common/observable.h: Rename include guard.
14187 * common/netstuff.h: Rename include guard.
14188 * common/job-control.h: Rename include guard.
14189 * common/host-defs.h: Rename include guard.
14190 * common/gdb_wait.h: Rename include guard.
14191 * common/gdb_vecs.h: Rename include guard.
14192 * common/gdb_unlinker.h: Rename include guard.
14193 * common/gdb_unique_ptr.h: Rename include guard.
14194 * common/gdb_tilde_expand.h: Rename include guard.
14195 * common/gdb_sys_time.h: Rename include guard.
14196 * common/gdb_string_view.h: Rename include guard.
14197 * common/gdb_splay_tree.h: Rename include guard.
14198 * common/gdb_setjmp.h: Rename include guard.
14199 * common/gdb_ref_ptr.h: Rename include guard.
14200 * common/gdb_optional.h: Rename include guard.
14201 * common/gdb_locale.h: Rename include guard.
14202 * common/gdb_assert.h: Rename include guard.
14203 * common/filtered-iterator.h: Rename include guard.
14204 * common/filestuff.h: Rename include guard.
14205 * common/fileio.h: Rename include guard.
14206 * common/environ.h: Rename include guard.
14207 * common/common-utils.h: Rename include guard.
14208 * common/common-types.h: Rename include guard.
14209 * common/common-regcache.h: Rename include guard.
14210 * common/common-inferior.h: Rename include guard.
14211 * common/common-gdbthread.h: Rename include guard.
14212 * common/common-exceptions.h: Rename include guard.
14213 * common/common-defs.h: Rename include guard.
14214 * common/common-debug.h: Rename include guard.
14215 * common/cleanups.h: Rename include guard.
14216 * common/buffer.h: Rename include guard.
14217 * common/btrace-common.h: Rename include guard.
14218 * common/break-common.h: Rename include guard.
14219 * cli/cli-utils.h: Rename include guard.
14220 * cli/cli-style.h: Rename include guard.
14221 * cli/cli-setshow.h: Rename include guard.
14222 * cli/cli-script.h: Rename include guard.
14223 * cli/cli-interp.h: Rename include guard.
14224 * cli/cli-decode.h: Rename include guard.
14225 * cli/cli-cmds.h: Rename include guard.
14226 * charset-list.h: Add include guard.
14227 * buildsym-legacy.h: Rename include guard.
14228 * bfin-tdep.h: Add include guard.
14229 * ax.h: Rename include guard.
14230 * arm-linux-tdep.h: Add include guard.
14231 * arm-fbsd-tdep.h: Add include guard.
14232 * arch/xtensa.h: Rename include guard.
14233 * arch/tic6x.h: Add include guard.
14234 * arch/i386.h: Add include guard.
14235 * arch/arm.h: Rename include guard.
14236 * arch/arm-linux.h: Rename include guard.
14237 * arch/arm-get-next-pcs.h: Rename include guard.
14238 * arch/amd64.h: Add include guard.
14239 * arch/aarch64-insn.h: Rename include guard.
14240 * arch-utils.h: Rename include guard.
14241 * annotate.h: Add include guard.
14242 * amd64-darwin-tdep.h: Rename include guard.
14243 * aarch64-linux-tdep.h: Add include guard.
14244 * aarch64-fbsd-tdep.h: Add include guard.
14245 * aarch32-linux-nat.h: Add include guard.
14246
ab9268d2
PW
142472019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14248
14249 * macrotab.c (macro_define_internal): New function that
14250 factorizes macro_define_object_internal and macro_define_function
14251 code.
14252 (macro_define_object_internal): Use macro_define_internal.
14253 (macro_define_function): Likewise.
14254
bb0da2b4
PW
142552019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14256
14257 * macrocmd.c (extract_identifier): Return
14258 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14259 callers.
14260
424eb552
JB
142612019-02-06 John Baldwin <jhb@FreeBSD.org>
14262
14263 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14264
1688cb29
TT
142652019-02-05 Tom Tromey <tom@tromey.com>
14266
14267 * target.c (target_stack::unpush): Move assertion earlier.
14268
b5eba2d8
TT
142692019-01-30 Tom Tromey <tom@tromey.com>
14270
14271 PR python/23615:
14272 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14273 (gdbpy_parse_and_eval): Likewise.
14274 * python/python-internal.h (gdbpy_allow_threads): New class.
14275
7054e2ff
JB
142762019-01-28 John Baldwin <jhb@FreeBSD.org>
14277
14278 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14279 (aarch64_fbsd_fpregmap): Move earlier.
14280 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14281 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14282 instead of individual calls to trad_frame_set_reg_addr.
14283 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14284 earlier.
14285 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14286 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14287 instead of individual calls to trad_frame_set_reg_addr.
14288
36c25ffa
AH
142892019-01-28 Alan Hayward <alan.hayward@arm.com>
14290
14291 * CONTRIBUTE: Replace contribution list with wiki link.
14292
a0707f3c
TT
142932019-01-25 Tom Tromey <tom@tromey.com>
14294
14295 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14296
0747795c
TT
142972019-01-25 Tom Tromey <tom@tromey.com>
14298
14299 * xtensa-linux-nat.c: Fix common/ includes.
14300 * xml-support.h: Fix common/ includes.
14301 * xml-support.c: Fix common/ includes.
14302 * x86-linux-nat.c: Fix common/ includes.
14303 * windows-nat.c: Fix common/ includes.
14304 * varobj.h: Fix common/ includes.
14305 * varobj.c: Fix common/ includes.
14306 * value.c: Fix common/ includes.
14307 * valops.c: Fix common/ includes.
14308 * utils.c: Fix common/ includes.
14309 * unittests/xml-utils-selftests.c: Fix common/ includes.
14310 * unittests/utils-selftests.c: Fix common/ includes.
14311 * unittests/unpack-selftests.c: Fix common/ includes.
14312 * unittests/tracepoint-selftests.c: Fix common/ includes.
14313 * unittests/style-selftests.c: Fix common/ includes.
14314 * unittests/string_view-selftests.c: Fix common/ includes.
14315 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14316 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14317 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14318 * unittests/rsp-low-selftests.c: Fix common/ includes.
14319 * unittests/parse-connection-spec-selftests.c: Fix common/
14320 includes.
14321 * unittests/optional-selftests.c: Fix common/ includes.
14322 * unittests/offset-type-selftests.c: Fix common/ includes.
14323 * unittests/observable-selftests.c: Fix common/ includes.
14324 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14325 * unittests/memrange-selftests.c: Fix common/ includes.
14326 * unittests/memory-map-selftests.c: Fix common/ includes.
14327 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14328 * unittests/function-view-selftests.c: Fix common/ includes.
14329 * unittests/environ-selftests.c: Fix common/ includes.
14330 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14331 * unittests/common-utils-selftests.c: Fix common/ includes.
14332 * unittests/cli-utils-selftests.c: Fix common/ includes.
14333 * unittests/array-view-selftests.c: Fix common/ includes.
14334 * ui-file.c: Fix common/ includes.
14335 * tui/tui-io.c: Fix common/ includes.
14336 * tracepoint.h: Fix common/ includes.
14337 * tracepoint.c: Fix common/ includes.
14338 * tracefile-tfile.c: Fix common/ includes.
14339 * top.h: Fix common/ includes.
14340 * top.c: Fix common/ includes.
14341 * thread.c: Fix common/ includes.
14342 * target/waitstatus.h: Fix common/ includes.
14343 * target/waitstatus.c: Fix common/ includes.
14344 * target.h: Fix common/ includes.
14345 * target.c: Fix common/ includes.
14346 * target-memory.c: Fix common/ includes.
14347 * target-descriptions.c: Fix common/ includes.
14348 * symtab.h: Fix common/ includes.
14349 * symfile.c: Fix common/ includes.
14350 * stap-probe.c: Fix common/ includes.
14351 * spu-linux-nat.c: Fix common/ includes.
14352 * sparc-nat.c: Fix common/ includes.
14353 * source.c: Fix common/ includes.
14354 * solib.c: Fix common/ includes.
14355 * solib-target.c: Fix common/ includes.
14356 * ser-unix.c: Fix common/ includes.
14357 * ser-tcp.c: Fix common/ includes.
14358 * ser-pipe.c: Fix common/ includes.
14359 * ser-base.c: Fix common/ includes.
14360 * selftest-arch.c: Fix common/ includes.
14361 * s12z-tdep.c: Fix common/ includes.
14362 * rust-exp.y: Fix common/ includes.
14363 * rs6000-aix-tdep.c: Fix common/ includes.
14364 * riscv-tdep.c: Fix common/ includes.
14365 * remote.c: Fix common/ includes.
14366 * remote-notif.h: Fix common/ includes.
14367 * remote-fileio.h: Fix common/ includes.
14368 * remote-fileio.c: Fix common/ includes.
14369 * regcache.h: Fix common/ includes.
14370 * regcache.c: Fix common/ includes.
14371 * record-btrace.c: Fix common/ includes.
14372 * python/python.c: Fix common/ includes.
14373 * python/py-type.c: Fix common/ includes.
14374 * python/py-inferior.c: Fix common/ includes.
14375 * progspace.h: Fix common/ includes.
14376 * producer.c: Fix common/ includes.
14377 * procfs.c: Fix common/ includes.
14378 * proc-api.c: Fix common/ includes.
14379 * printcmd.c: Fix common/ includes.
14380 * ppc-linux-nat.c: Fix common/ includes.
14381 * parser-defs.h: Fix common/ includes.
14382 * osdata.c: Fix common/ includes.
14383 * obsd-nat.c: Fix common/ includes.
14384 * nat/x86-linux.c: Fix common/ includes.
14385 * nat/x86-linux-dregs.c: Fix common/ includes.
14386 * nat/x86-dregs.h: Fix common/ includes.
14387 * nat/x86-dregs.c: Fix common/ includes.
14388 * nat/ppc-linux.c: Fix common/ includes.
14389 * nat/mips-linux-watch.h: Fix common/ includes.
14390 * nat/mips-linux-watch.c: Fix common/ includes.
14391 * nat/linux-waitpid.c: Fix common/ includes.
14392 * nat/linux-ptrace.h: Fix common/ includes.
14393 * nat/linux-ptrace.c: Fix common/ includes.
14394 * nat/linux-procfs.c: Fix common/ includes.
14395 * nat/linux-personality.c: Fix common/ includes.
14396 * nat/linux-osdata.c: Fix common/ includes.
14397 * nat/linux-namespaces.c: Fix common/ includes.
14398 * nat/linux-btrace.h: Fix common/ includes.
14399 * nat/linux-btrace.c: Fix common/ includes.
14400 * nat/fork-inferior.c: Fix common/ includes.
14401 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14402 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14403 * nat/aarch64-linux.c: Fix common/ includes.
14404 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14405 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14406 * namespace.h: Fix common/ includes.
14407 * mips-linux-tdep.c: Fix common/ includes.
14408 * minsyms.c: Fix common/ includes.
14409 * mi/mi-parse.h: Fix common/ includes.
14410 * mi/mi-main.c: Fix common/ includes.
14411 * mi/mi-cmd-env.c: Fix common/ includes.
14412 * memrange.h: Fix common/ includes.
14413 * memattr.c: Fix common/ includes.
14414 * maint.h: Fix common/ includes.
14415 * maint.c: Fix common/ includes.
14416 * main.c: Fix common/ includes.
14417 * machoread.c: Fix common/ includes.
14418 * location.c: Fix common/ includes.
14419 * linux-thread-db.c: Fix common/ includes.
14420 * linux-nat.c: Fix common/ includes.
14421 * linux-fork.c: Fix common/ includes.
14422 * inline-frame.c: Fix common/ includes.
14423 * infrun.c: Fix common/ includes.
14424 * inflow.c: Fix common/ includes.
14425 * inferior.h: Fix common/ includes.
14426 * inferior.c: Fix common/ includes.
14427 * infcmd.c: Fix common/ includes.
14428 * inf-ptrace.c: Fix common/ includes.
14429 * inf-child.c: Fix common/ includes.
14430 * ia64-linux-nat.c: Fix common/ includes.
14431 * i387-tdep.c: Fix common/ includes.
14432 * i386-tdep.c: Fix common/ includes.
14433 * i386-linux-tdep.c: Fix common/ includes.
14434 * i386-linux-nat.c: Fix common/ includes.
14435 * i386-go32-tdep.c: Fix common/ includes.
14436 * i386-fbsd-tdep.c: Fix common/ includes.
14437 * i386-fbsd-nat.c: Fix common/ includes.
14438 * guile/scm-type.c: Fix common/ includes.
14439 * guile/guile.c: Fix common/ includes.
14440 * go32-nat.c: Fix common/ includes.
14441 * gnu-nat.c: Fix common/ includes.
14442 * gdbthread.h: Fix common/ includes.
14443 * gdbarch-selftests.c: Fix common/ includes.
14444 * gdb_usleep.c: Fix common/ includes.
14445 * gdb_select.h: Fix common/ includes.
14446 * gdb_bfd.c: Fix common/ includes.
14447 * gcore.c: Fix common/ includes.
14448 * fork-child.c: Fix common/ includes.
14449 * findvar.c: Fix common/ includes.
14450 * fbsd-nat.c: Fix common/ includes.
14451 * event-top.c: Fix common/ includes.
14452 * event-loop.c: Fix common/ includes.
14453 * dwarf2read.c: Fix common/ includes.
14454 * dwarf2loc.c: Fix common/ includes.
14455 * dwarf2-frame.c: Fix common/ includes.
14456 * dwarf-index-cache.c: Fix common/ includes.
14457 * dtrace-probe.c: Fix common/ includes.
14458 * disasm-selftests.c: Fix common/ includes.
14459 * defs.h: Fix common/ includes.
14460 * csky-tdep.c: Fix common/ includes.
14461 * cp-valprint.c: Fix common/ includes.
14462 * cp-support.h: Fix common/ includes.
14463 * cp-support.c: Fix common/ includes.
14464 * corelow.c: Fix common/ includes.
14465 * completer.h: Fix common/ includes.
14466 * completer.c: Fix common/ includes.
14467 * compile/compile.c: Fix common/ includes.
14468 * compile/compile-loc2c.c: Fix common/ includes.
14469 * compile/compile-cplus-types.c: Fix common/ includes.
14470 * compile/compile-cplus-symbols.c: Fix common/ includes.
14471 * command.h: Fix common/ includes.
14472 * cli/cli-dump.c: Fix common/ includes.
14473 * cli/cli-cmds.c: Fix common/ includes.
14474 * charset.c: Fix common/ includes.
14475 * build-id.c: Fix common/ includes.
14476 * btrace.h: Fix common/ includes.
14477 * btrace.c: Fix common/ includes.
14478 * breakpoint.h: Fix common/ includes.
14479 * breakpoint.c: Fix common/ includes.
14480 * ax.h:
14481 (enum agent_op): Fix common/ includes.
14482 * ax-general.c (struct aop_map): Fix common/ includes.
14483 * ax-gdb.c: Fix common/ includes.
14484 * auxv.c: Fix common/ includes.
14485 * auto-load.c: Fix common/ includes.
14486 * arm-tdep.c: Fix common/ includes.
14487 * arch/riscv.c: Fix common/ includes.
14488 * arch/ppc-linux-common.c: Fix common/ includes.
14489 * arch/i386.c: Fix common/ includes.
14490 * arch/arm.c: Fix common/ includes.
14491 * arch/arm-linux.c: Fix common/ includes.
14492 * arch/arm-get-next-pcs.c: Fix common/ includes.
14493 * arch/amd64.c: Fix common/ includes.
14494 * arch/aarch64.c: Fix common/ includes.
14495 * arch/aarch64-insn.c: Fix common/ includes.
14496 * arch-utils.c: Fix common/ includes.
14497 * amd64-windows-tdep.c: Fix common/ includes.
14498 * amd64-tdep.c: Fix common/ includes.
14499 * amd64-sol2-tdep.c: Fix common/ includes.
14500 * amd64-obsd-tdep.c: Fix common/ includes.
14501 * amd64-nbsd-tdep.c: Fix common/ includes.
14502 * amd64-linux-tdep.c: Fix common/ includes.
14503 * amd64-linux-nat.c: Fix common/ includes.
14504 * amd64-fbsd-tdep.c: Fix common/ includes.
14505 * amd64-fbsd-nat.c: Fix common/ includes.
14506 * amd64-dicos-tdep.c: Fix common/ includes.
14507 * amd64-darwin-tdep.c: Fix common/ includes.
14508 * agent.c: Fix common/ includes.
14509 * ada-lang.h: Fix common/ includes.
14510 * ada-lang.c: Fix common/ includes.
14511 * aarch64-tdep.c: Fix common/ includes.
14512
2f5c153e
TT
145132019-01-25 Tom Tromey <tom@tromey.com>
14514
14515 * common/create-version.sh: Use common/version.h.
14516
adc6a863
PA
145172019-01-24 Pedro Alves <palves@redhat.com>
14518
14519 * infrun.c (signal_stop, signal_print, signal_program)
14520 (signal_catch, signal_pass): Now arrays instead of pointers.
14521 (update_signals_program_target, do_target_resume)
14522 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14523 * linux-nat.c (linux_nat_target::pass_signals)
14524 (linux_nat_target::create_inferior, linux_nat_target::attach):
14525 Adjust.
14526 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14527 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14528 * procfs.c (procfs_target::pass_signals): Adjust.
14529 * record-full.c (record_full_target::resume): Adjust.
14530 * remote.c (remote_target::pass_signals)
14531 (remote_target::program_signals): Adjust.
14532 * target-debug.h (target_debug_print_signals): Now takes a
14533 gdb::array_view as parameter. Adjust.
14534 * target.h (target_ops) <pass_signals, program_signals>: Replace
14535 pointer and length parameters with gdb::array_view.
14536 (target_pass_signals, target_program_signals): Likewise.
14537 * target-delegates.c: Regenerate.
14538
3046d67a
PA
145392019-01-24 Pedro Alves <palves@redhat.com>
14540
14541 * common/forward-scope-exit.h
14542 (forward_scope_exit::forward_scope_exit): Pass arguments to
14543 m_bind_function directly, instead of creating a std::bind and
14544 copying that.
14545
353229bf
AH
145462019-01-24 Alan Hayward <alan.hayward@arm.com>
14547
14548 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14549 for static members.
14550 (pass_in_v_vfp_candidate): Likewise.
14551
311dc83a
TT
145522019-01-23 Tom Tromey <tom@tromey.com>
14553 Pedro Alves <palves@redhat.com>
14554
14555 * regcache.c (class regcache_invalidator): Remove.
14556 (regcache::raw_write): Use make_scope_exit.
14557
296bd123
TT
145582019-01-23 Tom Tromey <tom@tromey.com>
14559
14560 * ui-out.h (class ui_out_emit_type): Update comment.
14561
979a0d13
TT
145622019-01-23 Tom Tromey <tom@tromey.com>
14563
14564 * infrun.c (fetch_inferior_event): Update comment.
14565
d238133d
TT
145662019-01-23 Tom Tromey <tom@tromey.com>
14567 Pedro Alves <palves@redhat.com>
14568
14569 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14570 parameter.
14571 (fetch_inferior_event): Use SCOPE_EXIT.
14572
14573
9885e6bb
TT
145742019-01-23 Tom Tromey <tom@tromey.com>
14575 Pedro Alves <palves@redhat.com>
14576
14577 * infrun.c (disable_thread_events): Delete.
14578 (stop_all_threads): Use SCOPE_EXIT.
14579
286526c1
TT
145802019-01-23 Tom Tromey <tom@tromey.com>
14581 Pedro Alves <palves@redhat.com>
14582
14583 * symfile.c: Include forward-scope-exit.h.
14584 (clear_symtab_users_cleanup): Replace forward declaration with
14585 a FORWARD_SCOPE_EXIT.
14586 (syms_from_objfile_1): Use the forward_scope_exit and
14587 gdb::optional instead of cleanup_function.
14588 (reread_symbols): Use the forward_scope_exit instead of
14589 cleanup_function.
14590 (clear_symtab_users_cleanup): Remove function.
14591
1db93f14
TT
145922019-01-23 Tom Tromey <tom@tromey.com>
14593 Pedro Alves <palves@redhat.com>
14594
14595 * linux-nat.c: Include scope-exit.h.
14596 (cleanup_target_stop): Remove.
14597 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14598 SCOPE_EXIT.
14599
2cc83d1e
TT
146002019-01-23 Tom Tromey <tom@tromey.com>
14601 Pedro Alves <palves@redhat.com>
14602
14603 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14604 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14605
694c6bf5
TT
146062019-01-23 Tom Tromey <tom@tromey.com>
14607 Andrew Burgess <andrew.burgess@embecosm.com>
14608 Pedro Alves <palves@redhat.com>
14609
14610 * infrun.c (fetch_inferior_event): Use scope_exit.
14611 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14612 * top.c (execute_command): Use scope_exit.
14613 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14614 * utils.c (do_bpstat_clear_actions_cleanup)
14615 (make_bpstat_clear_actions_cleanup): Remove.
14616
4c41382a
TT
146172019-01-23 Tom Tromey <tom@tromey.com>
14618 Pedro Alves <palves@redhat.com>
14619
14620 * infrun.c: Include "common/scope-exit.h"
14621 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14622 (wait_for_inferior): Use SCOPE_EXIT.
14623 (fetch_inferior_event): Use scope_exit.
14624
89f8fb50
TT
146252019-01-23 Tom Tromey <tom@tromey.com>
14626 Pedro Alves <palves@redhat.com>
14627
14628 * breakpoint.c (create_breakpoint): Remove cleanup.
14629
5419bdae
TT
146302019-01-23 Tom Tromey <tom@tromey.com>
14631 Andrew Burgess <andrew.burgess@embecosm.com>
14632 Pedro Alves <palves@redhat.com>
14633
e587ef42
PA
146342019-01-23 Pedro Alves <palves@redhat.com>
14635
14636 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14637
77f0e74c
PA
146382019-01-23 Pedro Alves <palves@redhat.com>
14639 Andrew Burgess <andrew.burgess@embecosm.com>
14640
14641 * gdbthread.h: Include "common/forward-scope-exit.h".
14642 (scoped_finish_thread_state): Redefine custom class in terms of
14643 forward_scope_exit.
14644
5b9b3e53
PA
146452019-01-23 Pedro Alves <palves@redhat.com>
14646 Andrew Burgess <andrew.burgess@embecosm.com>
14647
14648 * common/forward-scope-exit.h: New file.
14649
54b65c9b
PA
146502019-01-23 Pedro Alves <palves@redhat.com>
14651 Andrew Burgess <andrew.burgess@embecosm.com>
14652 Tom Tromey <tom@tromey.com>
14653
14654 * common/scope-exit.h: New file.
14655
cf08fb29
PA
146562019-01-23 Pedro Alves <palves@redhat.com>
14657
14658 * common/preprocessor.h (ESC): Rename to ...
14659 (ESC_PARENS): ... this.
14660 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14661 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14662
ae73e2e2
TT
146632019-01-23 Tom Tromey <tom@tromey.com>
14664
14665 * language.h (class scoped_switch_to_sym_language_if_auto):
14666 Initialize m_lang in both cases.
14667
6594e122
AH
146682019-01-23 Alan Hayward <alan.hayward@arm.com>
14669
14670 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14671 with XCNEW.
14672
a7c9855d
TT
146732019-01-22 Tom Tromey <tom@tromey.com>
14674
14675 * corelow.c: Do not include sys/file.h.
14676
93cc1d53
TT
146772019-01-22 Tom Tromey <tom@tromey.com>
14678
14679 * tui/tui-wingeneral.h: Include gdb_curses.h.
14680
38561778
TT
146812019-01-22 Tom Tromey <tom@tromey.com>
14682
14683 * source-cache.h (class source_cache) <get_source_lines,
14684 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14685
37b3ab5b
TT
146862019-01-22 Tom Tromey <tom@tromey.com>
14687
14688 * remote-fileio.h (struct remote_target): Declare.
14689
3fabc016
TT
146902019-01-22 Tom Tromey <tom@tromey.com>
14691
14692 * python/py-arch.c: Do not include py-ref.h.
14693 * python/py-bpevent.c: Do not include py-ref.h.
14694 * python/py-cmd.c: Do not include py-ref.h.
14695 * python/py-continueevent.c: Do not include py-ref.h.
14696 * python/py-event.h: Do not include py-ref.h.
14697 * python/py-evtregistry.c: Do not include py-ref.h.
14698 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14699 * python/py-frame.c: Do not include py-ref.h.
14700 * python/py-framefilter.c: Do not include py-ref.h.
14701 * python/py-function.c: Do not include py-ref.h.
14702 * python/py-infevents.c: Do not include py-ref.h.
14703 * python/py-linetable.c: Do not include py-ref.h.
14704 * python/py-objfile.c: Do not include py-ref.h.
14705 * python/py-param.c: Do not include py-ref.h.
14706 * python/py-prettyprint.c: Do not include py-ref.h.
14707 * python/py-progspace.c: Do not include py-ref.h.
14708 * python/py-symbol.c: Do not include py-ref.h.
14709 * python/py-symtab.c: Do not include py-ref.h.
14710 * python/py-type.c: Do not include py-ref.h.
14711 * python/py-unwind.c: Do not include py-ref.h.
14712 * python/py-utils.c: Do not include py-ref.h.
14713 * python/py-value.c: Do not include py-ref.h.
14714 * python/py-varobj.c: Do not include py-ref.h.
14715 * python/py-xmethods.c: Do not include py-ref.h.
14716 * python/python.c: Do not include py-ref.h.
14717 * varobj.c: Do not include py-ref.h.
14718
6b4d7774
TT
147192019-01-22 Tom Tromey <tom@tromey.com>
14720
14721 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14722 keyword for bcache.
14723
7af7e9b5
TT
147242019-01-22 Tom Tromey <tom@tromey.com>
14725
14726 * compile/compile-cplus-types.c: Remove a comment by #include.
14727
951d1049
TT
147282019-01-22 Tom Tromey <tom@tromey.com>
14729
14730 * compile/gcc-c-plugin.h: Include compile-internal.h.
14731
d65d5705
TT
147322019-01-22 Tom Tromey <tom@tromey.com>
14733
14734 * stabsread.c (EXTERN): Do not define.
14735 (symnum, next_symbol_text_func, processing_gcc_compilation)
14736 (within_function, global_sym_chain, global_stabs)
14737 (previous_stab_code, this_object_header_files)
14738 (n_this_object_header_files)
14739 (n_allocated_this_object_header_files): Define.
14740 * stabsread.h (EXTERN): Never define. Use "extern".
14741
b6fb1ee5
PW
147422019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14743
14744 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14745 history_value.
14746
be6d4f74
TT
147472019-01-21 Tom Tromey <tom@tromey.com>
14748
14749 * ui-out.c: Fix includes.
14750 * tui/tui-source.c: Fix includes.
14751 * target.c: Fix includes.
14752 * remote.c: Fix includes.
14753 * regcache.c: Fix includes.
14754 * python/py-block.c: Fix includes.
14755 * printcmd.c: Fix includes.
14756 * or1k-tdep.c: Fix includes.
14757 * mi/mi-main.c: Fix includes.
14758 * m32r-tdep.c: Fix includes.
14759 * csky-tdep.c: Fix includes.
14760 * compile/compile-cplus-types.c: Fix includes.
14761 * cli/cli-interp.c: Fix includes.
14762
73021deb
AH
147632019-01-21 Alan Hayward <alan.hayward@arm.com>
14764
14765 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14766 for padding.
14767
7932255d
TT
147682019-01-16 Tom Tromey <tom@tromey.com>
14769
14770 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14771 earlier.
14772 (struct objfile) <msymbols_range>: Move from top level.
14773 <msymbols>: New method.
14774 (class objfile_msymbols): Remove.
14775 * symtab.c (default_collect_symbol_completion_matches_break_on):
14776 Update.
14777 * symmisc.c (dump_msymbols): Update.
14778 * stabsread.c (scan_file_globals): Update.
14779 * objc-lang.c (info_selectors_command, info_classes_command)
14780 (find_methods): Update.
14781 * minsyms.c (find_solib_trampoline_target): Update.
14782 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14783 * coffread.c (coff_symfile_read): Update.
14784 * ada-lang.c (ada_lookup_simple_minsym)
14785 (ada_collect_symbol_completion_matches): Update.
14786
604b1bfb
TT
147872019-01-16 Tom Tromey <tom@tromey.com>
14788
14789 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14790 type. Remove no-argument constructor.
14791 <iterator::operator++>: Simplify.
14792 <begin>: Update.
14793 <end>: Use minimal_symbol_count.
14794
f252c6d5
TT
147952019-01-16 Tom Tromey <tom@tromey.com>
14796
14797 * objfiles.h (struct objfile) <psymtabs>: New method.
14798 (class objfile_psymtabs): Remove.
14799 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14800 typedef.
14801 <range>: New method.
14802 (require_partial_symbols): Change return type.
14803 * psymtab.c (require_partial_symbols)
14804 (psym_expand_symtabs_matching): Update.
14805 * mdebugread.c (parse_partial_symbols): Update.
14806 * dbxread.c (dbx_end_psymtab): Update.
14807
b669c953
TT
148082019-01-15 Tom Tromey <tom@tromey.com>
14809
14810 * symtab.c (lookup_objfile_from_block)
14811 (lookup_symbol_in_objfile_symtabs)
14812 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14813 (find_line_symtab, info_sources_command)
14814 (default_collect_symbol_completion_matches_break_on)
14815 (make_source_files_completion_list): Update.
14816 * symmisc.c (print_objfile_statistics, dump_objfile)
14817 (maintenance_print_symbols, maintenance_info_symtabs)
14818 (maintenance_check_symtabs, maintenance_info_line_tables):
14819 Update.
14820 * source.c (select_source_symtab)
14821 (forget_cached_source_info_for_objfile): Update.
14822 * objfiles.h (class objfile_compunits): Remove.
14823 (struct objfile) <compunits_range>: New typedef.
14824 (compunits): New method.
14825 * objfiles.c (objfile_relocate1): Update.
14826 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14827 * maint.c (count_symtabs_and_blocks): Update.
14828 * linespec.c (iterate_over_all_matching_symtabs): Update.
14829 * cp-support.c (add_symbol_overload_list_qualified): Update.
14830 * coffread.c (coff_symtab_read): Update.
14831 * ada-lang.c (add_nonlocal_symbols)
14832 (ada_collect_symbol_completion_matches)
14833 (ada_add_global_exceptions): Update.
14834
7e955d83
TT
148352019-01-15 Tom Tromey <tom@tromey.com>
14836
14837 * progspace.h (program_space) <objfiles_safe_range>: New
14838 typedef.
14839 <objfiles_safe>: New method.
14840 * objfiles.h (class all_objfiles_safe): Remove.
14841 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14842 * jit.c (jit_inferior_exit_hook): Update.
14843
2030c079
TT
148442019-01-17 Tom Tromey <tom@tromey.com>
14845
14846 * progspace.h (program_space) <objfiles_range>: New typedef.
14847 <objfiles>: New method.
14848 <objfiles_head>: Rename from objfiles.
14849 (object_files): Update.
14850 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14851 * guile/scm-pretty-print.c
14852 (ppscm_find_pretty_printer_from_objfiles): Update.
14853 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14854 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14855 Update.
14856 * python/py-progspace.c (pspy_get_objfiles): Update.
14857 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14858 Update.
14859 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14860 (objfpy_lookup_objfile_by_build_id): Update.
14861 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14862 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14863 Update.
14864 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14865 (expand_symtab_containing_pc, lookup_objfile_from_block)
14866 (lookup_static_symbol, basic_lookup_transparent_type)
14867 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14868 (find_line_symtab, info_sources_command)
14869 (default_collect_symbol_completion_matches_break_on)
14870 (make_source_files_completion_list, find_main_name): Update.
14871 * symmisc.c (print_symbol_bcache_statistics)
14872 (print_objfile_statistics, maintenance_print_symbols)
14873 (maintenance_print_msymbols, maintenance_print_objfiles)
14874 (maintenance_info_symtabs, maintenance_check_symtabs)
14875 (maintenance_expand_symtabs, maintenance_info_line_tables):
14876 Update.
14877 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14878 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14879 (map_overlay_command, unmap_overlay_command)
14880 (simple_overlay_update, expand_symtabs_matching)
14881 (map_symbol_filenames): Update.
14882 * symfile-debug.c (set_debug_symfile): Update.
14883 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14884 Update.
14885 * source.c (select_source_symtab, forget_cached_source_info):
14886 Update.
14887 * solib.c (solib_read_symbols): Update.
14888 * solib-spu.c (append_ocl_sos): Update.
14889 * psymtab.c (maintenance_print_psymbols)
14890 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14891 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14892 * printcmd.c (info_symbol_command): Update.
14893 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14894 Update.
14895 * objfiles.h (class all_objfiles): Remove.
14896 * objfiles.c (have_partial_symbols, have_full_symbols)
14897 (have_minimal_symbols, qsort_cmp, update_section_map)
14898 (shared_objfile_contains_address_p)
14899 (default_iterate_over_objfiles_in_search_order): Update.
14900 * objc-lang.c (info_selectors_command, info_classes_command)
14901 (find_methods): Update.
14902 * minsyms.c (find_solib_trampoline_target): Update.
14903 * maint.c (maintenance_info_sections)
14904 (maintenance_translate_address, count_symtabs_and_blocks):
14905 Update.
14906 * main.c (captured_main_1): Update.
14907 * linux-thread-db.c (try_thread_db_load_from_pdir)
14908 (has_libpthread): Update.
14909 * linespec.c (iterate_over_all_matching_symtabs)
14910 (search_minsyms_for_name): Update.
14911 * jit.c (jit_find_objf_with_entry_addr): Update.
14912 * hppa-tdep.c (find_unwind_entry)
14913 (hppa_lookup_stub_minimal_symbol): Update.
14914 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14915 Update.
14916 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14917 (elf_gnu_ifunc_resolve_by_got): Update.
14918 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14919 * dwarf-index-write.c (save_gdb_index_command): Update.
14920 * cp-support.c (add_symbol_overload_list_qualified): Update.
14921 * breakpoint.c (create_overlay_event_breakpoint)
14922 (create_longjmp_master_breakpoint)
14923 (create_std_terminate_master_breakpoint)
14924 (create_exception_master_breakpoint): Update.
14925 * blockframe.c (find_pc_partial_function): Update.
14926 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14927 (ada_collect_symbol_completion_matches)
14928 (ada_add_global_exceptions): Update.
14929
776489e0
TT
149302019-01-17 Tom Tromey <tom@tromey.com>
14931
14932 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14933 declare VEC.
14934 (solib_target_parse_libraries): Change return type.
14935 (library_list_start_segment, library_list_start_section)
14936 (library_list_end_library, library_list_start_library); Update.
14937 (solib_target_free_library_list): Remove.
14938 (solib_target_parse_libraries): Remove cleanup. Change return
14939 type.
14940 (solib_target_current_sos): Update.
14941
6471e7d2
TT
149422019-01-17 Tom Tromey <tromey@bapiya>
14943
14944 * valprint.c: Replace "the the" with "the".
14945 * symtab.c: Replace "the the" with "the".
14946 * solib.c: Replace "the the" with "the".
14947 * solib-dsbt.c: Replace "the the" with "the".
14948 * linespec.c: Replace "the the" with "the".
14949 * dwarf2loc.h: Replace "the the" with "the".
14950 * amd64-windows-tdep.c: Replace "the the" with "the".
14951 * aarch64-tdep.c: Replace "the the" with "the".
14952
c24bdb02
KS
149532019-01-16 Keith Seitz <keiths@redhat.com>
14954
14955 PR gdb/23773
14956 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14957 <builder>: Rename to ..
14958 <m_builder>: ... this and make private.
14959 (dwarf2_cu::get_builder): New method. Change all users of
14960 `builder' to use this method.
14961 (dwarf2_start_symtab): Move to ...
14962 (dwarf2_cu::start_symtab): ... here. Update all callers
14963 (setup_type_unit_groups): Move to ...
14964 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14965 callers.
14966 (dwarf2_cu::reset_builder): New method.
14967 (process_full_compunit, process_full_type_unit): Use
14968 dwarf2_cu::reset_builder.
14969 (follow_die_offset): Record the ancestor CU if it is different
14970 from the followed DIE's CU.
14971 (follow_die_sig_1): Likewise.
14972
8d64371b
TT
149732019-01-15 Tom Tromey <tom@tromey.com>
14974
14975 * remote.c (class remote_state) <buf>: Now a char_vector.
14976 <buf_size>: Remove.
14977 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14978 parameter.
14979 (remote_target::getpkt_or_notif_sane_1)
14980 (remote_target::getpkt_sane)
14981 (remote_target::getpkt_or_notif_sane): Likewise.
14982 (class remote_target) <putpkt>: New overload.
14983 (remote_target::read_frame): Change type of "buf_p". Remove
14984 sizeof_p parameter.
14985 (packet_ok): New overload.
14986 (packet_check_result): New overload.
14987 Update all uses.
14988
bb277751
TT
149892019-01-14 Tom Tromey <tom@tromey.com>
14990
14991 * remote-notif.c (handle_notification, remote_notif_ack)
14992 (remote_notif_parse): Make "buf" const.
14993 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14994 const.
14995 (remote_notif_parse, remote_notif_ack, handle_notification):
14996 Likewise.
14997 * remote.c (remote_notif_stop_parse): Make "buf" const.
14998 (remote_target::remote_parse_stop_reply): Make "buf" const.
14999 (remote_notif_stop_ack): Make "buf" const.
15000
05be00a8
TT
150012019-01-14 Tom Tromey <tom@tromey.com>
15002
15003 * remote.c (remote_console_output): Make parameter const.
15004
491adeca
TT
150052019-01-14 Tom Tromey <tom@tromey.com>
15006
15007 * target-debug.h (target_debug_print_signals): Constify.
15008 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15009 * procfs.c (procfs_target::pass_signals): Update.
15010 * linux-nat.c (linux_nat_target::pass_signals): Update.
15011 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15012 * target-delegates.c: Rebuild.
15013 * remote.c (remote_target::program_signals): Update.
15014 (remote_target::pass_signals): Update.
15015 * target.c (target_pass_signals): Constify argument.
15016 (target_program_signals): Likewise.
15017 * target.h (struct target_ops) <pass_signals, program_signals>:
15018 Constify argument.
15019 (target_pass_signals, target_program_signals): Constify argument.
15020
bbd94648
TT
150212019-01-14 Tom Tromey <tom@tromey.com>
15022
15023 PR tui/28819:
15024 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15025
6f072a10
PFC
150262019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15027
15028 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15029 field.
15030 * rs6000-tdep.c: Include reggroups.h.
15031 (IS_V_ALIAS_PSEUDOREG): Define.
15032 (rs6000_register_name): Return names for the "vX" aliases.
15033 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15034 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15035 aliases. Call default_register_reggroup_p for all other
15036 pseudo-registers.
15037 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15038 New functions.
15039 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15040 Handle "vX" aliases.
15041 (v_alias_pseudo_register_collect): New function.
15042 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15043 (rs6000_gdbarch_init): Initialize "vX" aliases as
15044 pseudo-registers. Restore registration of
15045 rs6000_pseudo_register_reggroup_p with
15046 set_tdesc_pseudo_register_reggroup_p.
15047
1a782351
MF
150482019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15049
15050 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15051 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15052 set_gdbarch_num_pseudo_regs.
15053
d73cff18
PW
150542019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15055
15056 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15057 Remove arg prefixname, add do_set and do_show.
15058 Add member functions set_list and show_list.
15059 * cli/cli-style.c (class cli_style_option): Update accordingly.
15060 (style_set_list): Move to file scope.
15061 (style_show_list): Likewise.
15062 (set_style): Call help_list.
15063 (show_style): Call cmd_show_list.
15064 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15065 Update to use the new macro.
15066
60a90376
JB
150672019-10-12 Joel Brobecker <brobecker@adacore.com>
15068
15069 * ada-lang.c (_initialize_ada_language): Expand the help text
15070 for the "catch exception" command.
15071
9d7c67bf
PW
150722019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15073
15074 * symtab.c (matching_obj_sections): Initialize obj,
15075 declare it closer to its usage.
15076
7cf47dc4
TT
150772019-01-10 Tom Tromey <tom@tromey.com>
15078
15079 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15080 (basic_inf_threads_range): Remove.
15081 (inf_threads_range, inf_non_exited_threads_range)
15082 (safe_inf_threads_range): Use next_adapter.
15083
d3cb6808
KS
150842019-01-10 Keith Seitz <keiths@redhat.com>
15085
15086 PR gdb/23712
15087 PR symtab/23010
15088 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15089 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15090
63a20375
KS
150912019-01-10 Keith Seitz <keiths@redhat.com>
15092
15093 PR gdb/23712
15094 PR symtab/23010
15095 * dictionary.c (pending_to_vector): Remove.
15096 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15097 Remove _1 suffix, replacing functions of the same name. Update
15098 all callers.
15099 (dict_create_hashed, dict_create_hashed_expandable)
15100 (dict_create_linear, dict_create_linear_expandable, dict_free)
15101 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15102 Make functions static.
15103
b026f593
KS
151042019-01-10 Keith Seitz <keiths@redhat.com>
15105
15106 PR gdb/23712
15107 PR symtab/23010
15108 * dictionary.h (struct dictionary): Replace declaration with
15109 multidictionary.
15110 (dict_create_hashed, dict_create_hashed_expandable)
15111 (dict_create_linear, dict_create_linear_expandable)
15112 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15113 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15114 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15115 taking multidictionary argument.
15116 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15117 * block.h (struct block) <dict>: Change to multidictionary
15118 and rename `multidict'.
15119 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15120 symmisc.c: Update all dictionary references to multidictionary.
15121
c7748ee9
KS
151222019-01-10 Keith Seitz <keiths@redhat.com>
15123
15124 PR gdb/23712
15125 PR symtab/23010
15126 * dictionary.c: Include unordered_map.
15127 (pending_to_vector): New function.
15128 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15129 Rewrite the non-"_1" functions to take vector instead
15130 of linked list.
15131 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15132 "new" _1 versions of the same name.
15133 (multidictionary): Define.
15134 (std::hash<enum language): New definition.
15135 (collate_pending_symbols_by_language, mdict_create_hashed)
15136 (mdict_create_hashed_expandable, mdict_create_linear)
15137 (mdict_create_linear_expandable, mdict_free)
15138 (find_language_dictionary, create_new_language_dictionary)
15139 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15140 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15141 (mdict_size, mdict_empty): New functions.
15142 * dictionary.h (mdict_iterator): Define.
15143
67aa1f3c
PA
151442019-01-10 Pedro Alves <palves@redhat.com>
15145
15146 * breakpoint.c (read_uploaded_action)
15147 (create_tracepoint_from_upload): Adjust to use
15148 gdb::unique_xmalloc_ptr.
15149 * ctf.c (ctf_write_uploaded_tp):
15150 (SET_ARRAY_FIELD): Use emplace_back.
15151 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15152 * tracefile-tfile.c (tfile_write_uploaded_tp):
15153 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15154 gdb::unique_xmalloc_ptr.
15155 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15156 at_string, cond_string, cmd_strings>: Replace char pointers
15157 with gdb::unique_xmalloc_ptr.
15158
2f667667
PA
151592019-01-10 Pedro Alves <palves@redhat.com>
15160
15161 * solib-target.c (library_list_start_library): Don't xstrdup name.
15162
36cb7237
PA
151632019-01-10 Pedro Alves <palves@redhat.com>
15164
15165 * mdebugread.c (parse_partial_symbols): Use
15166 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15167
da584958
AB
151682019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15169
15170 * linux-fork.c (scoped_switch_fork_info)
15171 <~scoped_switch_fork_info>: Fix incorrect variable name.
15172
1ef8573c
AB
151732019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15174
15175 * linux-fork.c (scoped_switch_fork_info)
15176 <scoped_switch_fork_info>: Make explicit.
15177 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15178
8d7bcccb
TT
151792019-01-10 Tom Tromey <tom@tromey.com>
15180
15181 * objfiles.h (objfile::reset_psymtabs): Update.
15182 * objfiles.c (objfile::objfile): Update.
15183 * psymtab.h (psymtab_storage::obstack): Update.
15184 (psymtab_storage::m_obstack): Use gdb::optional.
15185 (class psymtab_storage): Update comment. Remove objfile
15186 parameter.
15187 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15188
b596a3c7
TT
151892019-01-10 Tom Tromey <tom@tromey.com>
15190
15191 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15192 <free_psymtabs>: Now private.
15193 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15194 (allocate_psymtab): Use new method.
15195
a9342b62
TT
151962019-01-10 Tom Tromey <tom@tromey.com>
15197
15198 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15199 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15200 * mdebugread.c (parse_partial_symbols): Use
15201 allocate_dependencies.
15202 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15203 allocate_dependencies.
15204 (process_psymtab_comp_unit_reader)
15205 (build_type_psymtab_dependencies): Likewise.
15206 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15207
5af70966
TT
152082019-01-10 Tom Tromey <tom@tromey.com>
15209
15210 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15211 PSYMBOL_SET_LANGUAGE.
15212 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15213
5923a04c
TT
152142019-01-10 Tom Tromey <tom@tromey.com>
15215
15216 * psymtab.h (psymtab_storage::obstack): New method.
15217 <m_obstack>: Rename from obstack; now private.
15218 * psymtab.c (psymtab_storage): Update.
15219 * dwarf2read.c (create_addrmap_from_index)
15220 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15221 Update.
15222
6d6a12bf
TT
152232019-01-10 Tom Tromey <tom@tromey.com>
15224
15225 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15226 * objfiles.h (objfile::reset_psymtabs): New method.
15227
d320c2b5
TT
152282019-01-10 Tom Tromey <tom@tromey.com>
15229
15230 * symmisc.c (print_symbol_bcache_statistics): Update.
15231 (print_objfile_statistics): Update.
15232 * symfile.c (reread_symbols): Update.
15233 * psymtab.h (class psymtab_storage): New.
15234 * psymtab.c (psymtab_storage): New constructor.
15235 (~psymtab_storage): New destructor.
15236 (require_partial_symbols): Update.
15237 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15238 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15239 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15240 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15241 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15242 (start_psymtab_common, end_psymtab_common)
15243 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15244 (allocate_psymtab): Update.
15245 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15246 Update.
15247 (dump_psymtab_addrmap, maintenance_print_psymbols)
15248 (maintenance_check_psymtabs): Update.
15249 (class objfile_psymtabs): Move to objfiles.h.
15250 * psympriv.h (discard_psymtab): Now inline.
15251 (psymtab_discarder::psymtab_discarder): Update.
15252 (psymtab_discarder::~psymtab_discarder): Update.
15253 (ALL_OBJFILE_PSYMTABS): Rewrite.
15254 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15255 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15256 Remove fields.
15257 <partial_symtabs>: New field.
15258 (class objfile_psymtabs): Move from psymtab.h. Update.
15259 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15260 psymbol_cache.
15261 (objfile::~objfile): Don't destroy psymbol_cache.
15262 * mdebugread.c (parse_partial_symbols): Update.
15263 * dwarf2read.c (create_addrmap_from_index)
15264 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15265 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15266 (add_partial_subprogram, dwarf2_ranges_read): Update.
15267 * dwarf-index-write.c (write_address_map)
15268 (write_one_signatured_type, recursively_write_psymbols)
15269 (class debug_names, class debug_names, write_psymtabs_to_index):
15270 Update.
15271
1d94a5a3
TT
152722019-01-10 Tom Tromey <tom@tromey.com>
15273
15274 * symtab.h (SYMBOL_SET_NAMES): Update.
15275 (symbol_set_names): Update.
15276 (MSYMBOL_SET_NAMES): Update.
15277 * symtab.c (symbol_set_names): Change argument to be an
15278 objfile_per_bfd_storage.
15279 * psymtab.c (add_psymbol_to_bcache): Update.
15280 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15281
0f14768a
TT
152822019-01-10 Tom Tromey <tom@tromey.com>
15283
15284 * symtab.c (create_demangled_names_hash): Change argument to be an
15285 objfile_per_bfd_storage.
15286 (symbol_set_names): Update.
15287
6eee24ce
TT
152882019-01-10 Tom Tromey <tom@tromey.com>
15289
15290 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15291 init_psymbol_list.
15292 * psymtab.c (init_psymbol_list): Do nothing if already called.
15293 * psympriv.h (init_psymbol_list): Add comment.
15294 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15295 init_psymbol_list.
15296 * dbxread.c (dbx_symfile_read): Unconditionally call
15297 init_psymbol_list.
15298
75aedd27
TT
152992019-01-10 Tom Tromey <tom@tromey.com>
15300
15301 * xcoffread.c (scan_xcoff_symtab): Update.
15302 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15303 "where".
15304 * mdebugread.c (parse_partial_symbols)
15305 (handle_psymbol_enumerators): Update.
15306 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15307 * dbxread.c (read_dbx_symtab): Update.
15308 * psympriv.h (psymbol_placement): New enum.
15309 (add_psymbol_to_list): Update.
15310
939652a5
TT
153112019-01-10 Tom Tromey <tom@tromey.com>
15312
15313 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15314 static_psymbols parameters.
15315 (scan_xcoff_symtab): Update.
15316 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15317 static_psymbols parameters.
15318 * psympriv.h (start_psymtab_common): Update.
15319 * mdebugread.c (parse_partial_symbols): Update.
15320 * dwarf2read.c (create_partial_symtab): Update.
15321 * dbxread.c (read_dbx_symtab): Update.
15322 (start_psymtab): Remove global_psymbols and static_psymbols
15323 parameters.
15324
baa62830
TT
153252019-01-10 Tom Tromey <tom@tromey.com>
15326
15327 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15328 * psymtab.c (allocate_psymtab): Add comment.
15329 * psympriv.h (allocate_psymtab): Add comment.
15330 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15331 initializations.
15332 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15333
0e8f53ba
TT
153342019-01-10 Tom Tromey <tom@tromey.com>
15335
15336 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15337 Don't declare.
15338 * mipsread.c: Include mdebugread.h.
15339 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15340 Declare.
15341 * elfread.c: Include mdebugread.h.
15342
b22a7c6a
TT
153432019-01-09 Tom Tromey <tom@tromey.com>
15344
15345 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15346 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15347 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15348 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15349 (psym_lookup_symbol, psym_find_last_source_symtab)
15350 (psym_forget_cached_source_info, psym_print_stats)
15351 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15352 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15353 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15354 (psym_find_compunit_symtab_by_address)
15355 (maintenance_print_psymbols, maintenance_info_psymtabs)
15356 (maintenance_check_psymtabs): Use ranged for.
15357 * psymtab.h (class objfile_psymtabs): New.
15358 (require_partial_symbols): Return objfile_psymtabs.
15359 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15360
3b9d3ac2
TT
153612019-01-09 Tom Tromey <tom@tromey.com>
15362
15363 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15364 (find_pc_mapped_section, list_overlays_command)
15365 (map_overlay_command, unmap_overlay_command)
15366 (simple_overlay_update): Use all_objfiles.
15367 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15368 * printcmd.c (info_symbol_command): Use all_objfiles.
15369 * objfiles.h (ALL_OBJSECTIONS): Remove.
15370 * maint.c (maintenance_translate_address): Use all_objfiles.
15371 * gcore.c (gcore_create_callback): Use all_objfiles.
15372 (objfile_find_memory_regions): Likewise.
15373
8b31193a
TT
153742019-01-09 Tom Tromey <tom@tromey.com>
15375
15376 * symtab.c (find_line_symtab, info_sources_command)
15377 (make_source_files_completion_list): Use objfile_compunits.
15378 * source.c (select_source_symtab): Use objfile_compunits.
15379 * objfiles.h (struct objfile): Update comment.
15380 (ALL_OBJFILES): Remove.
15381 (ALL_FILETABS): Remove.
15382 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15383 objfile_compunits.
15384
d5da8b3c
TT
153852019-01-09 Tom Tromey <tom@tromey.com>
15386
15387 * symmisc.c (print_objfile_statistics, dump_objfile)
15388 (maintenance_print_symbols): Use compunit_filetabs.
15389 * source.c (forget_cached_source_info_for_objfile): Use
15390 compunit_filetabs.
15391 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15392 (ALL_FILETABS): Use compunit_filetabs.
15393 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15394 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15395
5accd1a0
TT
153962019-01-09 Tom Tromey <tom@tromey.com>
15397
15398 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15399 (compunit_filetabs): New.
15400 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15401 compunit_filetabs.
15402 (info_sources_command, make_source_files_completion_list): Remove
15403 declaration.
15404 * symmisc.c (print_objfile_statistics, dump_objfile)
15405 (maintenance_print_symbols): Remove declaration.
15406 (maintenance_info_symtabs): Use compunit_filetabs.
15407 (maintenance_info_line_tables): Likewise.
15408 * source.c (select_source_symtab): Change local variable name.
15409 (forget_cached_source_info_for_objfile): Remove declaration.
15410 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15411 * objfiles.c (objfile_relocate1): Remove declaration.
15412 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15413 declaration.
15414 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15415 * coffread.c (coff_symtab_read): Remove declaration.
15416 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15417 compunit_filetabs.
15418
d8aeb77f
TT
154192019-01-09 Tom Tromey <tom@tromey.com>
15420
15421 * symtab.c (lookup_objfile_from_block)
15422 (find_pc_sect_compunit_symtab, search_symbols)
15423 (default_collect_symbol_completion_matches_break_on): Use
15424 objfile_compunits.
15425 * objfiles.h (ALL_COMPUNITS): Remove.
15426 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15427 * cp-support.c (add_symbol_overload_list_qualified): Use
15428 objfile_compunits.
15429 * ada-lang.c (ada_collect_symbol_completion_matches)
15430 (ada_add_global_exceptions): Use objfile_compunits.
15431
592553c4
TT
154322019-01-09 Tom Tromey <tom@tromey.com>
15433
15434 * source.c (select_source_symtab)
15435 (forget_cached_source_info_for_objfile): Remove declaration.
15436 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15437 declaration.
15438 * maint.c (count_symtabs_and_blocks): Remove declaration.
15439 * cp-support.c (add_symbol_overload_list_qualified): Remove
15440 declaration.
15441 * coffread.c (coff_symtab_read): Remove declaration.
15442 * symtab.c (lookup_symbol_in_objfile_symtabs)
15443 (basic_lookup_transparent_type_1): Use objfile_compunits.
15444 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15445 (info_sources_command, search_symbols)
15446 (default_collect_symbol_completion_matches_break_on)
15447 (make_source_files_completion_list): Remove declaration.
15448 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15449 (ada_collect_symbol_completion_matches)
15450 (ada_add_global_exceptions): Remove declaration.
15451 * linespec.c (iterate_over_all_matching_symtabs): Use
15452 objfile_compunits.
15453 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15454 (class objfile_compunits): New.
15455 (ALL_COMPUNITS): Use objfile_compunits.
15456 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15457 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15458 objfile_compunits.
15459 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15460
5325b9bf
TT
154612019-01-09 Tom Tromey <tom@tromey.com>
15462
15463 * symtab.c (search_symbols)
15464 (default_collect_symbol_completion_matches_break_on): Use
15465 objfile_msymbols.
15466 * ada-lang.c (ada_lookup_simple_minsym)
15467 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15468 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15469 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15470 objfile_msymbols.
15471 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15472 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15473 * objc-lang.c (find_methods): Use objfile_msymbols.
15474 (info_selectors_command, info_classes_command): Likewise.
15475 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15476 * objfiles.h (class objfile_msymbols): New.
15477 (ALL_OBJFILE_MSYMBOLS): Remove.
15478 (ALL_MSYMBOLS): Remove.
15479
cac85af2
TT
154802019-01-09 Tom Tromey <tom@tromey.com>
15481
15482 * common/next-iterator.h (next_adapter): Add Iterator template
15483 parameter.
15484 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15485 (class all_objfiles_safe): New.
15486 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15487 * objfiles.c (put_objfile_before): Update comment.
15488 (add_separate_debug_objfile): Likewise.
15489 (free_all_objfiles): Use all_objfiles_safe.
15490 (objfile_purge_solibs): Likewise.
15491
aed57c53
TT
154922019-01-09 Tom Tromey <tom@tromey.com>
15493
15494 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15495 (expand_symtab_containing_pc, lookup_static_symbol)
15496 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15497 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15498 all_objfiles.
15499 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15500 * breakpoint.c (create_overlay_event_breakpoint)
15501 (create_longjmp_master_breakpoint)
15502 (create_std_terminate_master_breakpoint)
15503 (create_exception_master_breakpoint): Use all_objfiles.
15504 * linux-thread-db.c (try_thread_db_load_from_pdir)
15505 (has_libpthread): Use all_objfiles.
15506 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15507 * linespec.c (iterate_over_all_matching_symtabs)
15508 (search_minsyms_for_name): Use all_objfiles.
15509 * maint.c (maintenance_info_sections): Use all_objfiles.
15510 * main.c (captured_main_1): Use all_objfiles.
15511 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15512 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15513 * guile/scm-pretty-print.c
15514 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15515 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15516 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15517 (maintenance_print_msymbols): Use all_objfiles.
15518 * source.c (select_source_symtab): Use all_objfiles.
15519 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15520 * symfile.c (remove_symbol_file_command)
15521 (expand_symtabs_matching, map_symbol_filenames): Use
15522 all_objfiles.
15523 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15524 all_objfiles.
15525 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15526 * objc-lang.c (find_methods): Use all_objfiles.
15527 * objfiles.c (have_partial_symbols, have_full_symbols)
15528 (have_minimal_symbols, qsort_cmp)
15529 (default_iterate_over_objfiles_in_search_order): Use
15530 all_objfiles.
15531 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15532 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15533 (maintenance_check_psymtabs): Use all_objfiles.
15534 (ALL_PSYMTABS): Remove.
15535 * compile/compile-object-run.c (do_module_cleanup): Use
15536 all_objfiles.
15537 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15538 * cp-support.c (add_symbol_overload_list_qualified): Use
15539 all_objfiles.
15540 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15541 Use all_objfiles.
15542 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15543 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15544 all_objfiles.
15545 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15546 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15547 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15548 Uses all_objfiles.
15549 * solib.c (solib_read_symbols): Use all_objfiles
15550
99d89cde
TT
155512019-01-09 Tom Tromey <tom@tromey.com>
15552
15553 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15554 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15555 all_objfiles.
15556 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15557 * symmisc.c (print_symbol_bcache_statistics)
15558 (print_objfile_statistics, maintenance_print_objfiles)
15559 (maintenance_info_symtabs, maintenance_check_symtabs)
15560 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15561 all_objfiles.
15562 * source.c (forget_cached_source_info): Use all_objfiles.
15563 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15564 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15565 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15566 * objfiles.c (update_section_map): Use all_objfiles.
15567 (shared_objfile_contains_address_p): Likewise.
15568 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15569 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15570
21708325
TT
155712019-01-09 Tom Tromey <tom@tromey.com>
15572
15573 * common/next-iterator.h: New file.
15574 * objfiles.h (class all_objfiles): New.
15575 (struct objfile_iterator): New.
15576
669e09f6
PW
155772019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15578
15579 * NEWS: Move the description of the changed "frame", "select-frame",
15580 and "info frame" commands to the Changed commands section.
15581
041be526
SM
155822019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15583
15584 * gdbtypes.c (check_stub_method_group): Remove handling of old
15585 mangling schemes.
15586 * linespec.c (find_methods): Likewise.
15587 * stabsread.c (read_member_functions): Likewise.
15588 * valops.c (search_struct_method): Likewise.
15589 (value_struct_elt_for_reference): Likewise.
15590 * NEWS: Mention this change.
15591
0e2a2133
AB
155922019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15593
15594 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15595 print_source_lines.
15596 * source.c (print_source_lines_base): Update line number check.
15597 (print_source_lines): New function.
15598 (source_lines_range::source_lines_range): New function.
15599 * source.h (class source_lines_range): New class.
15600 (print_source_lines): New declaration.
15601
1055a3b4
PW
156022019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15603
15604 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15605
cfeadda5
TT
156062019-01-08 Tom Tromey <tom@tromey.com>
15607 Simon Marchi <simon.marchi@ericsson.com>
15608
15609 PR gdb/24060
15610 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15611 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15612 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15613 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15614 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15615 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15616
583068ca
AB
156172019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15618
15619 * source.c (select_source_symtab): Move header comment to
15620 declaration in source.h.
15621 (forget_cached_source_info_for_objfile): Likewise.
15622 (forget_cached_source_info): Likewise.
15623 (identify_source_line): Likewise.
15624 * source.h (identify_source_line): Move declaration from symtab.h
15625 and add comment from source.c
15626 (print_source_lines): Likewise.
15627 (forget_cached_source_info_for_objfile): Likewise.
15628 (forget_cached_source_info): Likewise.
15629 (select_source_symtab): Likewise.
15630 (enum print_source_lines_flag): Move definition from symtab.h.
15631 * symtab.h (identify_source_line): Move declaration to source.h.
15632 (print_source_lines): Likewise.
15633 (forget_cached_source_info_for_objfile): Likewise.
15634 (forget_cached_source_info): Likewise.
15635 (select_source_symtab): Likewise.
15636 (enum print_source_lines_flag): Move definition to source.h.
15637 * tui/tui-hooks.c: Add 'source.h' include.
15638
ec98a4ad
AB
156392019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15640
15641 * source.c (print_source_lines_base): Handle requests to print
15642 reverse line number sequences, and guard against empty lines
15643 string.
15644
62ea19c1
AB
156452019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15646
15647 * source.c (print_source_lines_base): Fix skip of '\r' if next
15648 character is '\n'.
15649
9d30e1fd
TT
156502019-01-06 Tom Tromey <tom@tromey.com>
15651
15652 * c-exp.y (struct c_parse_state) <macro_original_text,
15653 expansion_obstack>: New member.
15654 (macro_original_text, expansion_obstack): Remove globals.
15655 (scan_macro_expansion, scanning_macro_expansion)
15656 (finished_macro_expansion): Update.
15657 (scan_macro_cleanup): Remove.
15658 (yylex, c_parse): Update.
15659
c65bac38
TT
156602019-01-06 Tom Tromey <tom@tromey.com>
15661
15662 * c-exp.y (struct c_parse_state) <strings>: New member.
15663 (operator_stoken): Update.
15664
02e12e38
TT
156652019-01-06 Tom Tromey <tom@tromey.com>
15666
15667 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15668 (union type_stack_elt) <typelist_val>: Now a pointer to
15669 std::vector.
15670 (type_stack_cleanup): Don't declare.
15671 (push_typelist): Update.
15672 * parse.c (pop_typelist): Return a std::vector.
15673 (push_typelist): Take a std::vector.
15674 (follow_types): Update. Do not free args.
15675 (type_stack_cleanup): Remove.
15676 * c-exp.y (struct c_parse_state): New.
15677 (cpstate): New global.
15678 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15679 (nonempty_typelist): Update.
15680 (func_mod): Create a new vector.
15681 (c_parse): Create a c_parse_state.
15682 (check_parameter_typelist): Do not delete params.
15683 (function_method): Update. Do not delete type_list.
15684
f097f5ad
TT
156852019-01-06 Tom Tromey <tom@tromey.com>
15686
15687 PR gdb/28155:
15688 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15689 check_typedef.
15690 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15691 (print_return_value): Likewise.
15692
d2adf9f1
TT
156932019-01-05 Tom Tromey <tom@tromey.com>
15694
15695 * contrib/cleanup_check.py: Remove.
15696 * contrib/gcc-with-excheck: Remove.
15697 * contrib/exsummary.py: Remove.
15698 * contrib/excheck.py: Remove.
15699
2eab46b1
JB
157002019-01-05 Joel Brobecker <brobecker@adacore.com>
15701
15702 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15703 NULL. Initialize tpprev to NULL instead of assigning it
15704 to NULL on the next statement.
15705 * windows-nat.c (windows_delete_thread): Remove check for
15706 main_thread_id before printing thread exit notifications.
15707 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15708 Remove thread ID check against main_thread_id.
15709 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15710 windows_delete_thread.
15711 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15712
48c5e7e2
TT
157132019-01-04 Tom Tromey <tom@tromey.com>
15714
15715 * compile/compile.c (_initialize_compile): Use upper case for
15716 metasyntactic variables.
15717 * symmisc.c (_initialize_symmisc): Use upper case for
15718 metasyntactic variables.
15719 * psymtab.c (_initialize_psymtab): Use upper case for
15720 metasyntactic variables.
15721 * demangle.c (demangle_command): Use upper case for metasyntactic
15722 variables.
15723 (_initialize_demangler): Likewise.
15724 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15725 variables.
15726
986041cd
TT
157272019-01-03 Tom Tromey <tom@tromey.com>
15728
15729 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15730
7c711119
TT
157312019-01-03 Tom Tromey <tom@tromey.com>
15732
15733 * python/py-symtab.c (salpy_str): Update.
15734 (struct salpy_sal_object) <symtab>: Now a PyObject.
15735 (salpy_dealloc): Update.
15736 (del_objfile_sal): Use gdbpy_ref.
15737
1b20edf0
TT
157382019-01-03 Tom Tromey <tom@tromey.com>
15739
15740 * python/py-type.c (convert_field): Use new_reference. Return
15741 gdbpy_ref.
15742 (make_fielditem): Return gdbpy_ref.
15743 (typy_fields): Update.
15744 (typy_getitem): Update.
15745 (field_name): Return gdbpy_ref. Use new_reference.
15746 (typy_iterator_iternext): Update.
15747
ea41325b
TT
157482019-01-03 Tom Tromey <tom@tromey.com>
15749
15750 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15751
2a3c71d6
TT
157522019-01-03 Tom Tromey <tom@tromey.com>
15753
15754 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15755 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15756 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15757 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15758 (pspy_set_type_printers): Likewise.
15759 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15760 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15761 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15762 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15763 (objfpy_set_type_printers): Likewise.
15764
5c329e6a
TT
157652019-01-03 Tom Tromey <tom@tromey.com>
15766
15767 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15768 (gdbpy_print_stack): Use gdbpy_err_fetch.
15769 * python/python-internal.h (class gdbpy_err_fetch): New class.
15770 (class gdbpy_enter) <m_error_type, m_error_value,
15771 m_error_traceback>: Remove.
15772 <m_error>: New member.
15773 (gdbpy_exception_to_string): Don't declare.
15774 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15775 * python/py-value.c (convert_value_from_python): Use
15776 gdbpy_err_fetch.
15777 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15778 gdbpy_exception_to_string.
15779 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15780 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15781 gdbpy_err_fetch.
15782
169bb27b
AB
157832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15784
15785 * linux-nat.c (delete_lwp_cleanup): Delete.
15786 (struct lwp_deleter): New struct.
15787 (lwp_info_up): New typedef.
15788 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15789 lwp_info_up.
15790
a07c8880
AB
157912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15792
15793 * linux-fork.c (class scoped_switch_fork_info): New class.
15794 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15795
26089c49
AB
157962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15797
15798 * valops.c (find_overload_match): Remove use of null_cleanup, and
15799 calls to do_cleanups.
15800
06d3e5b0
AB
158012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15802
15803 * compile/compile-cplus-types.c
15804 (compile_cplus_instance::decl_name): Handle changes to
15805 cp_func_name.
15806 * cp-support.c (cp_func_name): Update header comment, update
15807 return type.
15808 * cp-support.h (cp_func_name): Update return type in declaration.
15809 * valops.c (find_overload_match): Move temp_func local to top
15810 level of function and change its type. Use temp_func to hold and
15811 delete temporary string obtained from cp_func_name.
15812
66644cd3
AB
158132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15814
15815 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15816 gdb::char_vector, remove cleanup, and update uses of `msg`.
15817
592d8c0a
JW
158182019-01-03 Jim Wilson <jimw@sifive.com>
15819
15820 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15821
c55d06ec
TT
158222019-01-02 Tom Tromey <tom@tromey.com>
15823
15824 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15825 (tdesc_parse_xml): Remove cleanups.
15826 * target-descriptions.h (make_cleanup_free_target_description):
15827 Don't declare.
15828 (target_desc_deleter): New struct.
15829 (target_desc_up): New typedef.
15830 * target-descriptions.c (target_desc_deleter::operator()): Rename
15831 from free_target_description.
15832 (make_cleanup_free_target_description): Remove.
15833
3a6ae42d
TT
158342019-01-02 Tom Tromey <tom@tromey.com>
15835
15836 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15837 constructor, destructor.
15838 (linespec_parser): Remove typedef.
15839 (~linespec_parser): Rename from linespec_parser_delete.
15840 (linespec_lex_to_end, linespec_complete_label)
15841 (linespec_complete): Update.
15842 (decode_line_full): Remove cleanups.
15843 (decode_line_1): Update.
15844
61fd3e73
TT
158452019-01-02 Tom Tromey <tom@tromey.com>
15846
15847 * python/python-internal.h (inferior_to_inferior_object): Change
15848 return type.
15849 * python/py-exitedevent.c (create_exited_event_object): Update.
15850 * python/py-inferior.c (inferior_to_inferior_object): Return
15851 gdbpy_ref.
15852 (python_new_inferior, python_inferior_deleted)
15853 (thread_to_thread_object, delete_thread_object)
15854 (build_inferior_list, gdbpy_selected_inferior): Update.
15855 * python/py-infthread.c (create_thread_object): Update. Also fail
15856 if inferior_to_inferior_object fails.
15857
d20172fc
SM
158582019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15859
15860 * inferior.h (class inferior) <displaced_step_state>: New field.
15861 * infrun.h (struct displaced_step_state): Move here from
15862 infrun.c. Initialize fields, add constructor.
15863 <inf>: Remove field.
15864 <reset>: New method.
15865 * infrun.c (struct displaced_step_inferior_state): Move to
15866 infrun.h.
15867 (displaced_step_inferior_states): Remove.
15868 (get_displaced_stepping_state): Adust.
15869 (displaced_step_in_progress_any_inferior): Adjust.
15870 (displaced_step_in_progress_thread): Adjust.
15871 (displaced_step_in_progress): Adjust.
15872 (add_displaced_stepping_state): Remove.
15873 (get_displaced_step_closure_by_addr): Adjust.
15874 (remove_displaced_stepping_state): Remove.
15875 (infrun_inferior_exit): Call displaced_step_state.reset.
15876 (use_displaced_stepping): Don't check for NULL.
15877 (displaced_step_prepare_throw): Call
15878 get_displaced_stepping_state.
15879 (displaced_step_fixup): Don't check for NULL.
15880 (prepare_for_detach): Don't check for NULL.
15881
e3319240
PW
158822019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15883
15884 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15885 in case of call that did not complete.
15886
5d36dfb9
AU
158872019-01-02 Andrey Utkin <autkin@undo.io>
15888
15889 * symfile.c (find_separate_debug_file): Fix search of debug files for
15890 remote debuggee.
15891
8833fbf0
TT
158922019-01-02 Tom Tromey <tom@tromey.com>
15893
15894 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15895 indentation.
15896 * python/py-frame.c (frapy_older): Remove cast.
15897 (frapy_newer): Likewise.
15898 * python/py-breakpoint.c (local_setattro): Remove cast.
15899 * python/py-arch.c (archpy_name): Remove local variable.
15900 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15901
4ada3dfd
JB
159022019-01-02 Joel Brobecker <brobecker@adacore.com>
15903
15904 * unittests/basic_string_view/element_access/char/empty.cc:
15905 Fix year range in copyright header.
15906
113b7b81
AB
159072019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15908
15909 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15910 Delete.
15911 <operator==>: Update with for removed field.
15912 <hash>: Likewise.
15913 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15914 <isa_features>: ...this.
15915 <abi_features>: New field.
15916 (riscv_isa_flen): Update comment.
15917 (riscv_abi_xlen): New declaration.
15918 (riscv_abi_flen): New declaration.
15919 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15920 isa_features.
15921 (riscv_abi_xlen): New function.
15922 (riscv_isa_flen): Update to get answer from isa_features.
15923 (riscv_abi_flen): New function.
15924 (riscv_has_fp_abi): Update to get answer from abi_features.
15925 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15926 xlen and flen.
15927 (riscv_call_info) <xlen, flen>: Update comment.
15928 (riscv_call_arg_struct): Remove invalid assertions
15929 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15930 is removed.
15931 (riscv_gdbarch_init): Gather isa features and abi features
15932 separately, ensure both match on the gdbarch when reusing an old
15933 gdbarch. Relax an error check to allow 32-bit abi float to run on
15934 a target with 64-bit float hardware.
15935
b18ca514
PW
159362019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15937
15938 * source.c (search_command_helper): Stop reverse search
15939 when line 1 has been searched.
15940
ec70d8db
PW
159412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15942
15943 * record-full.c (record_full_base_target::close): Rewrite
15944 record_full_core_buf_list free logic.
15945
5b38f9c1
PW
159462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15947
15948 * break-catch-syscall.c (print_one_catch_syscall): xfree
15949 the last text.
15950
66d91b39
JB
159512019-01-01 Joel Brobecker <brobecker@adacore.com>
15952
15953 * top.c (print_gdb_version): Update Copyright year in version
15954 message.
15955
42a4f53d
JB
159562019-01-01 Joel Brobecker <brobecker@adacore.com>
15957
15958 Update copyright year range in all GDB files.
15959
7e955d83 159602019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15961
5bbd631d 15962 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15963
5bbd631d 15964For older changes see ChangeLog-2018.
c906108c
SS
15965\f
15966Local Variables:
15967mode: change-log
15968left-margin: 8
15969fill-column: 74
15970version-control: never
57da7796 15971coding: utf-8
c906108c 15972End:
5bbd631d 15973
This page took 3.018043 seconds and 4 git commands to generate.