Correctly compute length of DW_TAG_variant_part union
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
489dbda6
TT
12019-11-30 Tom Tromey <tom@tromey.com>
2
3 * dwarf2read.c (dwarf2_add_field): Include field offset when
4 computing variant part length.
5
bf498525
PW
62019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7 * NEWS: Mention define-prefix. Tell that command names can now
8 contain a . character.
9
be09caf1
PW
102019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11
12 * command.h (valid_cmd_char_p): Declare.
13 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
14 the check of valid command char.
15 (find_command_name_length, valid_user_defined_cmd_name_p): Use
16 valid_cmd_char_p.
17 * cli/cli-script.c (validate_comname): Likewise.
18 * completer.c (gdb_completer_command_word_break_characters):
19 Do not remove . from the word break char, update comments.
20 (complete_line_internal_1): Use valid_cmd_char_p.
21 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
22 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
23
c6ac7fc9
PW
242019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
25
26 * cli/cli-script.c (do_define_command): Ensure a redefined
27 prefix command is kept as a prefix command.
28 (define_prefix_command): New function.
29 (show_user_1): Report user defined prefixes.
30 (_initialize_cli_script): Create the new 'define-prefix' command.
31 Add completers for 'define' and 'document'.
32 * top.c (execute_command): If command is a user-defined prefix only
33 command, report the list of commands for this prefix command.
34
a992a3b0
TBA
352019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36
37 * valops.c (find_oload_champ): Improve debug output.
38
e9194a1a
TBA
392019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
40
41 * valops.c (find_oload_champ): Print part of debug messages
42 before the badness vector is std::move'd.
43
53a008a6
TT
442019-11-28 Tom Tromey <tom@tromey.com>
45
46 * value.c (creal_internal_fn): Fix comment.
47
bab05c83
TT
482019-11-28 Tom Tromey <tom@tromey.com>
49
50 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
51 flag_bound_evaluated>: Now unsigned.
52
2522f049
TT
532019-11-28 Tom Tromey <tom@tromey.com>
54
55 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
56 declare.
57
38b49e22
MS
582019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
59
60 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
61 debug output.
62 * jit.c (jit_unregister_code): Add debug print to match
63 `jit_register_code`.
64
35125921
CB
652019-11-27 Christian Biesinger <cbiesinger@google.com>
66
67 * NEWS: Mention the new multithreaded symbol loading.
68
62e77f56
CB
692019-11-27 Christian Biesinger <cbiesinger@google.com>
70
71 * maint.c (n_worker_threads): Default to 0.
72 (worker_threads_disabled): New function.
73 * maint.h (worker_threads_disabled): New function.
74 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
75 here if worker_threads_disabled () is true.
76 (minimal_symbol_reader::install): Skip all threading if
77 worker_threads_disabled () is true.
78
f29d7f6b
CB
792019-11-27 Christian Biesinger <cbiesinger@google.com>
80
81 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
82 hash code if possible.
83 (add_minsym_to_demangled_hash_table): Likewise.
84 (minimal_symbol_reader::install): Compute the hash codes for msymbol
85 on the background thread.
86 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
87 Add these fields.
88
e76b2246
CB
892019-11-27 Christian Biesinger <cbiesinger@google.com>
90
91 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
92 of the mangled name on the background thread.
93 * symtab.c (symbol_set_names): Allow passing in the hash of the
94 linkage_name.
95 * symtab.h (symbol_set_names): Likewise.
96
8d9a2568
KB
972019-11-27 Kevin Buettner <kevinb@redhat.com>
98
99 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
100 physnames are computed for inherited DIEs.
101
fad03f6e
TT
1022019-11-27 Tom Tromey <tromey@adacore.com>
103
104 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
105 backslashes.
106 * cp-support.c: Remove unnecessary backslashes.
107
43678b0a
CB
1082019-11-27 Christian Biesinger <cbiesinger@google.com>
109
110 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
111 with sym->set_linkage_name.
112 * coffread.c (coff_read_enum_type): Likewise.
113 * mdebugread.c (parse_symbol): Likewise.
114 * stabsread.c (patch_block_stabs): Likewise.
115 (define_symbol): Likewise.
116 (read_enum_type): Likewise.
117 (common_block_end): Likewise.
118 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
119 function.
120 (SYMBOL_SET_LINKAGE_NAME): Remove.
121 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
122 with sym->set_linkage_name.
123
db5960b4
AB
1242019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
127 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
128 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
129 * NEWS: Mention new MI command.
130
7dc42066
AB
1312019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
134 '-symbol-info-types', and '-symbol-info-variables'.
135 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
136 (mi_cmd_symbol_info_types): Declare.
137 (mi_cmd_symbol_info_variables): Declare.
138 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
139 (output_debug_symbol): New function.
140 (output_nondebug_symbol): New function.
141 (mi_symbol_info): New function.
142 (mi_info_functions_or_variables): New function.
143 (mi_cmd_symbol_info_functions): New function.
144 (mi_cmd_symbol_info_types): New function.
145 (mi_cmd_symbol_info_variables): New function.
146 * NEWS: Mention new commands.
147
5f512a7d
AB
1482019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * symtab.c (symbol_to_info_string): New function, most content
151 moved from print_symbol_info, but updated to return a std::string.
152 (print_symbol_info): Update to use symbol_to_info_string and print
153 returned string.
154 * symtab.h (symbol_to_info_string): Declare new function.
155
470c0b1c
AB
1562019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * python/python.c (gdbpy_rbreak): Convert to using
159 global_symbol_searcher.
160 * symtab.c (file_matches): Convert return type to bool, change
161 file list to std::vector, update header comment.
162 (search_symbols): Rename to...
163 (global_symbol_searcher::search): ...this and update now its
164 a member function of global_symbol_searcher. Take account of the
165 changes to file_matches.
166 (symtab_symbol_info): Convert to using global_symbol_searcher.
167 (rbreak_command): Likewise.
168 (search_module_symbols): Likewise.
169 * symtab.h (enum symbol_search): Update comment.
170 (search_symbols): Remove declaration.
171 (class global_symbol_searcher): New class.
172
57357d9d
TT
1732019-11-26 Tom Tromey <tromey@adacore.com>
174
175 * cp-support.c (_initialize_cp_support): Conditionally initialize
176 gdb_demangle_attempt_core_dump.
177
3ea16160
TT
1782019-11-26 Tom Tromey <tom@tromey.com>
179
180 * python/py-function.c (fnpy_init): Update.
181 * value.h (add_internal_function): Adjust declaration.
182 * value.c (function_destroyer): Remove.
183 (do_add_internal_function): Don't set destroyer or copy name.
184 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
185 Set name_allocated.
186 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
187 (cmdpy_init): Set name_allocated.
188 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
189 member.
190 (~cmd_list_element): Free "name" if needed.
191
1a6d41c6
TT
1922019-11-26 Tom Tromey <tom@tromey.com>
193
194 * value.h (add_internal_function): Add new overload. Move
195 documentation from value.h.
196 * value.c (do_add_internal_function): New function.
197 (add_internal_function): Use it. Add new overload.
198 (function_destroyer): Don't free doc.
199 * python/py-function.c (fnpy_init): Update.
200
8318f3c3
TT
2012019-11-26 Tom Tromey <tom@tromey.com>
202
203 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
204 (cmdpy_init): Set "doc_allocated".
205
4da8c3a8
TT
2062019-11-26 Tom Tromey <tom@tromey.com>
207
208 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
209 name of worker thread.
210 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
211 pthread_setname_np.
212 * configure, config.in: Rebuild.
213
971db5e2
TT
2142019-11-26 Tom Tromey <tom@tromey.com>
215
216 * python/python.c (class gdbpy_gil): New.
217 (struct gdbpy_event): Add constructor, destructor, operator().
218 (gdbpy_post_event): Use run_on_main_thread.
219 (gdbpy_initialize_events): Remove.
220 (do_start_initialization): Update.
221
22138db6
TT
2222019-11-26 Tom Tromey <tom@tromey.com>
223
224 * NEWS: Add entry.
225 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
226 commands. Call update_thread_pool_size.
227 (update_thread_pool_size, maintenance_set_worker_threads): New
228 functions.
229 (n_worker_threads): New global.
230
d55c9a68
TT
2312019-11-26 Christian Biesinger <cbiesinger@google.com>
232 Tom Tromey <tom@tromey.com>
233
234 * minsyms.c (minimal_symbol_reader::install): Use
235 parallel_for_each.
236 * gdbsupport/parallel-for.h: New file.
237 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
238
a0b57563
CB
2392019-11-26 Christian Biesinger <cbiesinger@google.com>
240 Tom Tromey <tom@tromey.com>
241
242 * gdbsupport/thread-pool.h: New file.
243 * gdbsupport/thread-pool.c: New file.
244 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
245 (HFILES_NO_SRCDIR): Add thread-pool.h.
246
3b3978bc
TT
2472019-11-26 Tom Tromey <tom@tromey.com>
248
249 * event-top.h (thread_local_segv_handler): Declare.
250 * event-top.c (thread_local_segv_handler): New global.
251 (install_handle_sigsegv, handle_sigsegv): New functions.
252 (async_init_signals): Install SIGSEGV handler.
253 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
254 thread-local.
255 (report_failed_demangle): New function.
256 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
257 handler-setting code, instead use segv_handler. Run warning code
258 on main thread.
259
9411c49e
TT
2602019-11-26 Tom Tromey <tom@tromey.com>
261
262 * run-on-main-thread.c: New file.
263 * run-on-main-thread.h: New file.
264 * unittests/main-thread-selftests.c: New file.
265 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
266 main-thread-selftests.c.
267 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
268 (COMMON_SFILES): Add run-on-main-thread.c.
269
c3efb965
TT
2702019-11-26 Tom Tromey <tom@tromey.com>
271
272 * main.c (setup_alternate_signal_stack): Remove.
273 (captured_main_1): Use gdb::alternate_signal_stack.
274 * gdbsupport/alt-stack.h: New file.
275
21987b9c
TT
2762019-11-26 Tom Tromey <tom@tromey.com>
277
278 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
279 Remove comment.
280 (save_original_signals_state, restore_original_signals_state): Use
281 gdb_sigmask.
282 * linux-nat.c (block_child_signals, restore_child_signals_mask)
283 (_initialize_linux_nat): Use gdb_sigmask.
284 * guile/guile.c (_initialize_guile): Use block_signals.
285 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
286 * gdbsupport/gdb-sigmask.h: New file.
287 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
288 * cp-support.c (gdb_demangle): Use gdb_sigmask.
289 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
290 pthread_sigmask.
291 * configure, config.in: Rebuild.
292 * gdbsupport/block-signals.h: New file.
293
5e030278
TT
2942019-11-26 Tom Tromey <tom@tromey.com>
295
296 * acinclude.m4: Include ax_pthread.m4.
297 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
298 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
299 (CLIBS): Use PTHREAD_LIBS.
300 (aclocal_m4_deps): Add ax_pthread.m4.
301 * config.in, configure: Rebuild.
302 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
303
5a79c107
TT
3042019-11-26 Tom Tromey <tom@tromey.com>
305
306 * symtab.h (struct minimal_symbol) <name_set>: New member.
307 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
308 Don't call symbol_set_names.
309 (minimal_symbol_reader::install): Call symbol_set_names.
310
aa369509
PW
3112019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
312
313 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
314 restore_active_ext_lang, as GIL is needed for (indirectly)
315 called PyOS_InterruptOccurred.
316
cadc9cb8
SM
3172019-11-26 Simon Marchi <simon.marchi@efficios.com>
318
319 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
320 definition.
321
d04afd58
SM
3222019-11-26 Simon Marchi <simon.marchi@efficios.com>
323
324 * remote-sim.c (simulator_command): Make static, remove
325 declaration.
326
dd694d77
SM
3272019-11-26 Simon Marchi <simon.marchi@efficios.com>
328
329 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
330 static.
331 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
332 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
333 (main): Likewise.
334 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
335 (main): Likewise.
336 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
337 (main): Likewise.
338 * unittests/basic_string_view/element_access/char/1.cc (test01):
339 Likewise.
340 (main): Likewise.
341 * unittests/basic_string_view/element_access/char/empty.cc (main):
342 Likewise.
343 * unittests/basic_string_view/element_access/char/front_back.cc
344 (test01): Likewise.
345 (main): Likewise.
346 * unittests/basic_string_view/inserters/char/2.cc (test05):
347 Likewise.
348 (main): Likewise.
349 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
350 (test01): Likewise.
351 (main): Likewise.
352 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
353 (test01): Likewise.
354 (main): Likewise.
355 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
356 Likewise.
357 * unittests/basic_string_view/operations/compare/char/1.cc
358 (test01): Likewise.
359 (main): Likewise.
360 * unittests/basic_string_view/operations/compare/char/13650.cc
361 (test01): Likewise.
362 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
363 Likewise.
364 (main): Likewise.
365 * unittests/basic_string_view/operations/data/char/1.cc (test01):
366 Likewise.
367 (main): Likewise.
368 * unittests/basic_string_view/operations/find/char/1.cc (test01):
369 Likewise.
370 (main): Likewise.
371 * unittests/basic_string_view/operations/find/char/2.cc (test02):
372 Likewise.
373 (main): Likewise.
374 * unittests/basic_string_view/operations/find/char/3.cc (test03):
375 Likewise.
376 (main): Likewise.
377 * unittests/basic_string_view/operations/find/char/4.cc (main):
378 Likewise.
379 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
380 Likewise.
381 (main): Likewise.
382 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
383 Likewise.
384 (main): Likewise.
385 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
386 Likewise.
387 (main): Likewise.
388 * unittests/basic_string_view/operations/substr/char/1.cc
389 (test01): Likewise.
390 (main): Likewise.
391 * unittests/basic_string_view/operators/char/2.cc (main):
392 Likewise.
393 * unittests/optional/assignment/1.cc (test): Likewise.
394 * unittests/optional/assignment/2.cc (test): Likewise.
395 * unittests/optional/assignment/3.cc (test): Likewise.
396 * unittests/optional/assignment/4.cc (test): Likewise.
397 * unittests/optional/assignment/5.cc (test): Likewise.
398 * unittests/optional/assignment/6.cc (test): Likewise.
399 * unittests/optional/assignment/7.cc (test): Likewise.
400 * unittests/optional/cons/copy.cc (test): Likewise.
401 * unittests/optional/cons/default.cc (test): Likewise.
402 * unittests/optional/cons/move.cc (test): Likewise.
403 * unittests/optional/cons/value.cc (test): Likewise.
404 * unittests/optional/in_place.cc (test): Likewise.
405 * unittests/optional/observers/1.cc (test): Likewise.
406 * unittests/optional/observers/2.cc (test): Likewise.
407
3b5c1d49
SM
4082019-11-26 Simon Marchi <simon.marchi@efficios.com>
409
410 * tui-win.h (tui_set_var_cmd): Remove.
411 * tui-win.c (tui_set_var_cmd): Make static.
412
adce99fe
SM
4132019-11-26 Simon Marchi <simon.marchi@efficios.com>
414
415 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
416 rbreak_command_wrapper): Remove.
417 * symtab.c (rbreak_command_wrapper): Remove.
418
fe3adccf
SM
4192019-11-26 Simon Marchi <simon.marchi@efficios.com>
420
421 * inferior.h (info_terminal_command): Remove declaration.
422 * inflow.c (info_terminal_command): Make static.
423
b926335f
SM
4242019-11-26 Simon Marchi <simon.marchi@efficios.com>
425
426 * inferior.c (exit_inferior_silent): Remove.
427
b62f6f54
SM
4282019-11-26 Simon Marchi <simon.marchi@efficios.com>
429
430 * dictionary.c (dict_empty, mdict_empty): Remove.
431 * dictionary.c (mdict_empty): Remove.
432
cb8c24b6
SM
4332019-11-26 Simon Marchi <simon.marchi@efficios.com>
434
435 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
436 (arc_insn_get_memory_offset): Likewise.
437 (arc_insn_dump): Likewise.
438 * cp-support.c (test_cp_symbol_name_matches): Likewise.
439 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
440 * dictionary.c (dict_iterator_next): Likewise.
441 (dict_iter_match_first): Likewise.
442 (dict_iter_match_next): Likewise.
443 * f-lang.c (evaluate_subexp_f): Likewise.
444 * hppa-tdep.c (hppa_read_pc): Likewise.
445 * i386-tdep.c (i386_floatformat_for_type): Likewise.
446 * parse.c (write_exp_elt_msym): Likewise.
447 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
448 * remote.c (remote_packet_size): Likewise.
449 (remote_notif_stop_parse): Likewise.
450 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
451 * s12z-tdep.c (s12z_disassemble_info): Likewise.
452 * source.c (prepare_path_for_appending): Likewise.
453 * sparc64-linux-tdep.c
454 (sparc64_linux_handle_segmentation_fault); Likewise.
455 * stack.c (frame_selection_by_function_completer): Likewise.
456
781597ff
SM
4572019-11-26 Simon Marchi <simon.marchi@efficios.com>
458
459 * completer.c (set_gdb_completion_word_break_characters):
460 Remove.
461
23baa4cc
SM
4622019-11-26 Simon Marchi <simon.marchi@efficios.com>
463
464 * dwarf-index-write.c: Include dwarf-index-write.h.
465 * mi/mi-interp.c: Include mi/mi-interp.h.
466
23767560
SM
4672019-11-26 Simon Marchi <simon.marchi@efficios.com>
468
469 * aarch32-tdep.c: Include aarch32-tdep.h.
470 * aarch32-tdep.h: Forward-declare struct target_desc.
471
6d91ce9a
CB
4722019-11-26 Christian Biesinger <cbiesinger@google.com>
473
474 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
475 strerror.
476 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
477 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
478
3cf2f237
TV
4792019-11-25 Tom de Vries <tdevries@suse.de>
480
481 * contrib/words.sh: Add -c option.
482
5b89c67a
CB
4832019-11-25 Christian Biesinger <cbiesinger@google.com>
484
485 * solib.c (solib_find_1): Change int to bool.
486 (exec_file_find): Change int to bool.
487 (solib_find): Change int to bool.
488 (solib_read_symbols): Change int to bool.
489 (solib_used): Change int to bool.
490 (solib_add): Change int to bool.
491 (info_sharedlibrary_command): Change int to bool.
492 (solib_contains_address_p): Change int to bool.
493 (solib_keep_data_in_core): Change int to bool.
494 (in_solib_dynsym_resolve_code): Change int to bool.
495 (reload_shared_libraries_1): Change int to bool.
496 (gdb_sysroot_changed): Change int to bool.
497 * solib.h (solib_read_symbols): Change int to bool.
498 (solib_contains_address_p): Change int to bool.
499 (solib_keep_data_in_core): Change int to bool.
500 (in_solib_dynsym_resolve_code): Change int to bool.
501 (libpthread_name_p): Change int to bool.
502
6cc8564b
LM
5032019-11-25 Luis Machado <luis.machado@linaro.org>
504
505 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
506 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
507 (remote_packet_max_chars): New static global.
508 (show_remote_packet_max_chars): New function.
509 (remote_target::putpkt_binary): Adjust to use new
510 remote_packet_max_chars option.
511 (remote_target::getpkt_or_notif_sane_1): Likewise.
512 (_initialize_remote): Register new remote-packet-max-chars option.
513
a7cdaa91
SM
5142019-11-24 Simon Marchi <simon.marchi@efficios.com>
515
516 * m68k-linux-nat.c: Include gdbarch.h.
517
26abc753
TT
5182019-11-24 Tom Tromey <tom@tromey.com>
519
520 * symfile.c (read_symbols): Update.
521 * psymtab.c (require_partial_symbols): Change type of "verbose" to
522 bool.
523 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
524 (psym_lookup_symbol, psym_find_last_source_symtab)
525 (psym_forget_cached_source_info, psym_print_stats)
526 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
527 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
528 (psym_map_matching_symbols, psym_expand_symtabs_matching)
529 (psym_find_compunit_symtab_by_address)
530 (maintenance_print_psymbols, maintenance_info_psymtabs)
531 (maintenance_check_psymtabs): Update.
532 * psymtab.h (require_partial_symbols): Change type of "verbose" to
533 bool.
534
012fc909
TT
5352019-11-22 Tom Tromey <tom@tromey.com>
536
537 * observable.h: Update comments.
538
c83d8d32
TT
5392019-11-22 Tom Tromey <tromey@adacore.com>
540
541 * ada-tasks.c (ada_task_is_alive): Make parameter const.
542 (print_ada_task_info): Don't try to fetch thread id if task is not
543 alive.
544
987012b8
CB
5452019-11-22 Christian Biesinger <cbiesinger@google.com>
546
547 * ada-exp.y: Update.
548 * ada-lang.c (sort_choices): Update.
549 (ada_print_symbol_signature): Update.
550 (resolve_subexp): Update.
551 (ada_parse_renaming): Update.
552 (ada_read_renaming_var_value): Update.
553 (lesseq_defined_than): Update.
554 (remove_extra_symbols): Update.
555 (remove_irrelevant_renamings): Update.
556 (ada_add_block_symbols): Update.
557 (ada_collect_symbol_completion_matches): Update.
558 (ada_is_renaming_symbol): Update.
559 (aggregate_assign_from_choices): Update.
560 (ada_evaluate_subexp): Update.
561 (ada_has_this_exception_support): Update.
562 (ada_is_non_standard_exception_sym): Update.
563 (ada_add_exceptions_from_frame): Update.
564 (ada_add_global_exceptions): Update.
565 (ada_print_subexp): Update.
566 * ax-gdb.c (gen_var_ref): Update.
567 (gen_maybe_namespace_elt): Update.
568 (gen_expr_for_cast): Update.
569 (gen_expr): Update.
570 * block.h: Update.
571 * blockframe.c (find_pc_partial_function): Update.
572 * breakpoint.c (print_breakpoint_location): Update.
573 (update_static_tracepoint): Update.
574 * btrace.c (ftrace_print_function_name): Update.
575 (ftrace_function_switched): Update.
576 * buildsym.c (find_symbol_in_list): Update.
577 * c-exp.y: Update.
578 * c-typeprint.c (c_print_typedef): Update.
579 (c_type_print_template_args): Update.
580 * cli/cli-cmds.c (edit_command): Update.
581 (list_command): Update.
582 (print_sal_location): Update.
583 * coffread.c (patch_opaque_types): Update.
584 (process_coff_symbol): Update.
585 (coff_read_enum_type): Update.
586 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
587 (convert_one_symbol): Update.
588 (hash_symname): Update.
589 (eq_symname): Update.
590 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
591 * compile/compile-cplus-types.c (debug_print_scope): Update.
592 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
593 * compile/compile-object-load.c (get_out_value_type): Update.
594 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
595 (search_symbol_list): Update.
596 (cp_lookup_symbol_imports_or_template): Update.
597 * cp-support.c (overload_list_add_symbol): Update.
598 * ctfread.c (psymtab_to_symtab): Update.
599 * dbxread.c (cp_set_block_scope): Update.
600 * dictionary.c (iter_match_first_hashed): Update.
601 (iter_match_next_hashed): Update.
602 (insert_symbol_hashed): Update.
603 (iter_match_next_linear): Update.
604 * dictionary.h: Update.
605 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
606 (locexpr_describe_location_piece): Update.
607 (locexpr_describe_location_1): Update.
608 (locexpr_generate_c_location): Update.
609 (loclist_describe_location): Update.
610 (loclist_generate_c_location): Update.
611 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
612 (read_func_scope): Update.
613 (process_enumeration_scope): Update.
614 (new_symbol): Update.
615 (dwarf2_const_value): Update.
616 (dwarf2_symbol_mark_computed): Update.
617 * eval.c (evaluate_funcall): Update.
618 (evaluate_subexp_standard): Update.
619 * expprint.c (print_subexp_standard): Update.
620 (dump_subexp_body_standard): Update.
621 * f-valprint.c (info_common_command_for_block): Update.
622 * findvar.c (get_hosting_frame): Update.
623 (default_read_var_value): Update.
624 * go-lang.c (go_symbol_package_name): Update.
625 * guile/scm-block.c (bkscm_print_block_smob): Update.
626 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
627 (gdbscm_symbol_name): Update.
628 (gdbscm_symbol_linkage_name): Update.
629 (gdbscm_symbol_print_name): Update.
630 * infcall.c (get_function_name): Update.
631 * infcmd.c (jump_command): Update.
632 (finish_command): Update.
633 * infrun.c (insert_exception_resume_breakpoint): Update.
634 * linespec.c (canonicalize_linespec): Update.
635 (create_sals_line_offset): Update.
636 (convert_linespec_to_sals): Update.
637 (complete_label): Update.
638 (find_label_symbols_in_block): Update.
639 * m2-typeprint.c (m2_print_typedef): Update.
640 * mdebugread.c (mdebug_reg_to_regnum): Update.
641 (parse_symbol): Update.
642 (mylookup_symbol): Update.
643 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
644 (list_args_or_locals): Update.
645 * objc-lang.c (compare_selectors): Update.
646 (info_selectors_command): Update.
647 (compare_classes): Update.
648 (info_classes_command): Update.
649 (find_imps): Update.
650 * p-typeprint.c (pascal_print_typedef): Update.
651 * printcmd.c (build_address_symbolic): Update.
652 (info_address_command): Update.
653 (print_variable_and_value): Update.
654 * python/py-framefilter.c (extract_sym): Update.
655 (py_print_single_arg): Update.
656 * python/py-symbol.c (sympy_str): Update.
657 (sympy_get_name): Update.
658 (sympy_get_linkage_name): Update.
659 * python/python.c (gdbpy_rbreak): Update.
660 * record-btrace.c (btrace_get_bfun_name): Update.
661 (btrace_call_history): Update.
662 * rust-lang.c (rust_print_typedef): Update.
663 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
664 * stabsread.c (stab_reg_to_regnum): Update.
665 (define_symbol): Update.
666 (read_enum_type): Update.
667 (common_block_end): Update.
668 (cleanup_undefined_types_1): Update.
669 (scan_file_globals): Update.
670 * stack.c (print_frame_arg): Update.
671 (print_frame_args): Update.
672 (find_frame_funname): Update.
673 (info_frame_command_core): Update.
674 (iterate_over_block_locals): Update.
675 (print_block_frame_labels): Update.
676 (do_print_variable_and_value): Update.
677 (iterate_over_block_arg_vars): Update.
678 (return_command): Update.
679 * symmisc.c (dump_symtab_1): Update.
680 (print_symbol): Update.
681 * symtab.c (eq_symbol_entry): Update.
682 (symbol_cache_dump): Update.
683 (lookup_language_this): Update.
684 (find_pc_sect_line): Update.
685 (skip_prologue_sal): Update.
686 (symbol_search::compare_search_syms): Update.
687 (treg_matches_sym_type_name): Update.
688 (search_symbols): Update.
689 (print_symbol_info): Update.
690 (rbreak_command): Update.
691 (completion_list_add_symbol): Update.
692 (find_gnu_ifunc): Update.
693 (get_symbol_address): Update.
694 (search_module_symbols): Update.
695 (info_module_subcommand): Update.
696 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
697 (SYMBOL_LINKAGE_NAME): Remove.
698 (SYMBOL_DEMANGLED_NAME): Remove.
699 (SYMBOL_PRINT_NAME): Remove.
700 (SYMBOL_SEARCH_NAME): Remove.
701 * tracepoint.c (set_traceframe_context): Update.
702 (validate_actionline): Update.
703 (collection_list::collect_symbol): Update.
704 (encode_actions_1): Update.
705 (info_scope_command): Update.
706 (print_one_static_tracepoint_marker): Update.
707 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
708 * valops.c (address_of_variable): Update.
709 (find_overload_match): Update.
710 (find_oload_champ): Update.
711
c9d95fa3
CB
7122019-11-22 Christian Biesinger <cbiesinger@google.com>
713
714 * ada-lang.c (ada_lookup_simple_minsym): Update.
715 (ada_collect_symbol_completion_matches): Update.
716 * ada-tasks.c (read_atcb): Update.
717 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
718 (amd64_windows_skip_trampoline_code): Update.
719 * arm-tdep.c (skip_prologue_function): Update.
720 (arm_skip_stack_protector): Update.
721 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
722 (arm_wince_skip_main_prologue): Update.
723 * ax-gdb.c (gen_expr): Update.
724 * block.c (call_site_for_pc): Update.
725 * blockframe.c (find_pc_partial_function): Update.
726 * breakpoint.c (set_breakpoint_location_function): Update.
727 * btrace.c (ftrace_print_function_name): Update.
728 (ftrace_function_switched): Update.
729 * c-valprint.c (print_unpacked_pointer): Update.
730 * coffread.c (coff_symfile_read): Update.
731 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
732 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
733 * dwarf-index-write.c (write_psymbols): Update.
734 * dwarf2loc.c (call_site_to_target_addr): Update.
735 (func_verify_no_selftailcall): Update.
736 (tailcall_dump): Update.
737 (call_site_find_chain_1): Update.
738 (dwarf_expr_reg_to_entry_parameter): Update.
739 * elfread.c (elf_gnu_ifunc_record_cache): Update.
740 * eval.c (evaluate_funcall): Update.
741 (evaluate_subexp_standard): Update.
742 (evaluate_subexp_for_sizeof): Update.
743 * expprint.c (print_subexp_standard): Update.
744 (dump_subexp_body_standard): Update.
745 * frame.c (get_prev_frame_always_1): Update.
746 * frv-tdep.c (frv_skip_main_prologue): Update.
747 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
748 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
749 (gnuv3_get_typename_from_type_info): Update.
750 (gnuv3_skip_trampoline): Update.
751 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
752 * i386-tdep.c (i386_skip_main_prologue): Update.
753 (i386_pe_skip_trampoline_code): Update.
754 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
755 * infcall.c (get_function_name): Update.
756 * linespec.c (minsym_found): Update.
757 * linux-fork.c (info_checkpoints_command): Update.
758 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
759 (m32c_m16c_pointer_to_address): Update.
760 * maint.c (maintenance_translate_address): Update.
761 * minsyms.c (add_minsym_to_hash_table): Update.
762 (add_minsym_to_demangled_hash_table): Update.
763 (lookup_minimal_symbol_mangled): Update.
764 (lookup_minimal_symbol_demangled): Update.
765 (lookup_minimal_symbol_linkage): Update.
766 (lookup_minimal_symbol_text): Update.
767 (lookup_minimal_symbol_by_pc_name): Update.
768 (minimal_symbol_is_less_than): Update.
769 (compact_minimal_symbols): Update.
770 (build_minimal_symbol_hash_tables): Update.
771 (find_solib_trampoline_target): Update.
772 * mips-tdep.c (mips_stub_frame_sniffer): Update.
773 (mips_skip_pic_trampoline_code): Update.
774 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
775 * objc-lang.c (info_selectors_command): Update.
776 (info_classes_command): Update.
777 (find_methods): Update.
778 (find_imps): Update.
779 * p-valprint.c (pascal_val_print): Update.
780 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
781 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
782 * printcmd.c (build_address_symbolic): Update.
783 (info_symbol_command): Update.
784 * psymtab.c (psymbol_name_matches): Update.
785 (match_partial_symbol): Update.
786 (lookup_partial_symbol): Update.
787 (print_partial_symbols): Update.
788 (sort_pst_symbols): Update.
789 (maintenance_check_psymtabs): Update.
790 * python/py-framefilter.c (py_print_frame): Update.
791 * python/python.c (gdbpy_rbreak): Update.
792 * record-btrace.c (btrace_get_bfun_name): Update.
793 (btrace_call_history): Update.
794 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
795 (rs6000_skip_trampoline_code): Update.
796 * sol-thread.c (info_cb): Update.
797 * stabsread.c (scan_file_globals): Update.
798 * stack.c (find_frame_funname): Update.
799 (info_frame_command_core): Update.
800 * symmisc.c (dump_msymbols): Update.
801 * symtab.c (symbol_natural_name): Rename to..,
802 (general_symbol_info::natural_name): ...this.
803 (symbol_demangled_name): Rename to...
804 (general_symbol_info::demangled_name): ...this.
805 (symbol_search_name): Rename to...
806 (general_symbol_info::search_name): ...this.
807 (symbol_matches_search_name): Update.
808 (find_pc_sect_line): Update.
809 (skip_prologue_sal): Update.
810 (search_symbols): Update.
811 (print_msymbol_info): Update.
812 (rbreak_command): Update.
813 (completion_list_add_msymbol): Update.
814 (completion_list_objc_symbol): Update.
815 (get_msymbol_address): Update.
816 * symtab.h (struct general_symbol_info): Add member functions
817 natural_name (), linkage_name (), print_name (), demangled_name (),
818 and search_name ().
819 (SYMBOL_NATURAL_NAME): Update.
820 (symbol_natural_name): Move to a member function on general_symbol_info.
821 (SYMBOL_DEMANGLED_NAME): Update.
822 (symbol_demangled_name): Move to a member function on
823 general_symbol_info.
824 (SYMBOL_SEARCH_NAME): Update.
825 (symbol_search_name): Move to a member function on general_symbol_info.
826 (MSYMBOL_NATURAL_NAME): Remove.
827 (MSYMBOL_LINKAGE_NAME): Remove.
828 (MSYMBOL_PRINT_NAME): Remove.
829 (MSYMBOL_DEMANGLED_NAME): Remove.
830 (MSYMBOL_SEARCH_NAME): Remove.
831 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
832
f8bab2d6
CB
8332019-11-22 Christian Biesinger <cbiesinger@google.com>
834
835 * symtab.c (create_demangled_names_hash): Use per_bfd->
836 minimal_symbol_count for computing the initial size, if greater
837 than our default size.
838
85e7588d
TV
8392019-11-22 Tom de Vries <tdevries@suse.de>
840
841 * contrib/words.sh: Improve words extraction.
842
f6180073
TV
8432019-11-22 Tom de Vries <tdevries@suse.de>
844
845 * contrib/words.sh: Combine sed invocations.
846
f10ffa41
CB
8472019-11-21 Christian Biesinger <cbiesinger@google.com>
848
849 * Makefile.in: Update.
850 * demangle.c: Rename to...
851 * gdb-demangle.c: ..this.
852 (is_cplus_marker): Change return type to bool.
853 (_initialize_demangler): Rename to...
854 (_initialize_gdb_demangle): ...this.
855 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
856 * symtab.h (demangle): Remove declaration; instead include
857 gdb-demangle.h.
858
6ba18521
TT
8592019-11-21 Tom Tromey <tromey@adacore.com>
860
861 * gdbsupport/format.c (format_pieces): Parse %I64d.
862 * unittests/format_pieces-selftests.c (test_windows_formats): New
863 function.
864 (run_tests): Call it.
865
34877895
PJ
8662019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
867
868 Byte reverse display of variables with DW_END_big, DW_END_little
869 (DW_AT_endianity) dwarf attributes if different than the native
870 byte order.
871 * ada-lang.c (ada_value_binop):
872 Use type_byte_order instead of gdbarch_byte_order.
873 * ada-valprint.c (printstr):
874 (ada_val_print_string):
875 * ada-lang.c (value_pointer):
876 (ada_value_binop):
877 Use type_byte_order instead of gdbarch_byte_order.
878 * c-lang.c (c_get_string):
879 Use type_byte_order instead of gdbarch_byte_order.
880 * c-valprint.c (c_val_print_array):
881 Use type_byte_order instead of gdbarch_byte_order.
882 * cp-valprint.c (cp_print_class_member):
883 Use type_byte_order instead of gdbarch_byte_order.
884 * dwarf2loc.c (rw_pieced_value):
885 Use type_byte_order instead of gdbarch_byte_order.
886 * dwarf2read.c (read_base_type): Handle DW_END_big,
887 DW_END_little
888 * f-lang.c (f_get_encoding):
889 Use type_byte_order instead of gdbarch_byte_order.
890 * findvar.c (default_read_var_value):
891 Use type_byte_order instead of gdbarch_byte_order.
892 * gdbtypes.c (check_types_equal):
893 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
894 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
895 and TYPE_ENDIANITY_LITTLE if set.
896 (type_byte_order): new function.
897 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
898 (struct main_type) <flag_endianity_not_default>:
899 New field.
900 (type_byte_order): New function.
901 * infcmd.c (default_print_one_register_info):
902 Use type_byte_order instead of gdbarch_byte_order.
903 * p-lang.c (pascal_printstr):
904 Use type_byte_order instead of gdbarch_byte_order.
905 * p-valprint.c (pascal_val_print):
906 Use type_byte_order instead of gdbarch_byte_order.
907 * printcmd.c (print_scalar_formatted):
908 Use type_byte_order instead of gdbarch_byte_order.
909 * solib-darwin.c (darwin_current_sos):
910 Use type_byte_order instead of gdbarch_byte_order.
911 * solib-svr4.c (solib_svr4_r_ldsomap):
912 Use type_byte_order instead of gdbarch_byte_order.
913 * stap-probe.c (stap_modify_semaphore):
914 Use type_byte_order instead of gdbarch_byte_order.
915 * target-float.c (target_float_same_format_p):
916 Use type_byte_order instead of gdbarch_byte_order.
917 * valarith.c (scalar_binop):
918 (value_bit_index):
919 Use type_byte_order instead of gdbarch_byte_order.
920 * valops.c (value_cast):
921 Use type_byte_order instead of gdbarch_byte_order.
922 * valprint.c (generic_emit_char):
923 (generic_printstr):
924 (val_print_string):
925 Use type_byte_order instead of gdbarch_byte_order.
926 * value.c (unpack_long):
927 (unpack_bits_as_long):
928 (unpack_value_bitfield):
929 (modify_field):
930 (pack_long):
931 (pack_unsigned_long):
932 Use type_byte_order instead of gdbarch_byte_order.
933 * findvar.c (unsigned_pointer_to_address):
934 (signed_pointer_to_address):
935 (unsigned_address_to_pointer):
936 (address_to_signed_pointer):
937 (default_read_var_value):
938 (default_value_from_register):
939 Use type_byte_order instead of gdbarch_byte_order.
940 * gnu-v3-abi.c (gnuv3_make_method_ptr):
941 Use type_byte_order instead of gdbarch_byte_order.
942 * riscv-tdep.c (riscv_print_one_register_info):
943 Use type_byte_order instead of gdbarch_byte_order.
944
87fb00ea
SM
9452019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
948 (current_ui_gdb_stdin_ptr): Likewise.
949 (current_ui_gdb_stderr_ptr): Likewise.
950 (current_ui_gdb_stdlog_ptr): Likewise.
951 (current_ui_current_uiout_ptr): Likewise.
952 (gen_ret_current_ui_field_ptr): Remove.
953
65d1cd5f
TV
9542019-11-21 Tom de Vries <tdevries@suse.de>
955
956 PR gdb/24956
957 * cli/cli-script.c (execute_control_command): Only switch to
958 INTERP_CONSOLE's ui_out when INTERP_MI is active.
959
9f6ad286
TT
9602019-11-19 Tom Tromey <tom@tromey.com>
961
962 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
963 Now static. Change type of "name".
964 (tui_set_win_height_command): Don't copy "arg".
965 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
966 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
967
435d3d88
AT
9682019-11-19 Ali Tamur <tamur@google.com>
969
970 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
971 "if (attr != nullptr)".
972 (dwarf2_find_base_address): Likewise.
973 (dwarf2_build_include_psymtabs): Likewise.
974 (read_cutu_die_from_dwo): Likewise.
975 (read_func_scope): Likewise.
976 (read_call_site_scope): Likewise.
977 (dwarf2_get_pc_bounds): Likewise.
978 (dwarf2_record_block_ranges): Likewise.
979 (dwarf2_add_field): Likewise.
980 (dwarf2_add_member_fn): Likewise.
981 (read_structure_type): Likewise.
982 (read_enumeration_type): Likewise.
983 (read_array_type): Likewise.
984 (read_array_order): Likewise.
985 (read_set_type): Likewise.
986 (read_common_block): Likewise.
987 (read_tag_reference_type): Likewise.
988 (read_tag_string_type): Likewise.
989 (read_subroutine_type): Likewise.
990 (read_base_type): Likewise.
991 (read_subrange_type): Likewise.
992 (new_symbol): Likewise.
993 (prepare_one_comp_unit): Likewise.
994
c9739b6a
TT
9952019-11-19 Tom Tromey <tromey@adacore.com>
996
997 * windows-nat.c (windows_nat_target::attach): Include GetLastError
998 result in error when DebugActiveProcess fails.
999
494409bb
SDJ
10002019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1001 Pedro Alves <palves@redhat.com>
1002
1003 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1004 * target.c (target_stack::push): Call 'unpush' if there's a
1005 target on top of the stack.
1006
2e953aca
PW
10072019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1008
1009 * python/py-block.c (blpy_dealloc): Call tp_free.
1010 (blpy_block_syms_dealloc): Likewise.
1011 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1012 * python/py-inferior.c (infpy_dealloc): Likewise.
1013 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1014 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1015 * python/py-symbol.c (sympy_dealloc): Likewise.
1016 * python/py-symtab.c (stpy_dealloc): Likewise.
1017 * python/py-type.c (typy_iterator_dealloc): Likewise.
1018
6edc43ec
CB
10192019-11-18 Christian Biesinger <cbiesinger@google.com>
1020
1021 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1022 constructor instead of using a class initializer.
1023
cd850b40
CB
10242019-11-15 Christian Biesinger <cbiesinger@google.com>
1025
1026 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1027 * configure: Regenerate.
1028 * configure.ac: Don't source common.host.
1029 * gdbsupport/common.host: Remove.
1030 * gdbsupport/mingw-strerror.c: Remove.
1031 * gdbsupport/posix-strerror.c: Rename to...
1032 * gdbsupport/safe-strerror.c: ...this.
1033
53fea9c7
CB
10342019-11-15 Christian Biesinger <cbiesinger@google.com>
1035
1036 * maint.c (scoped_command_stats::print_time): Use localtime_r
1037 instead of localtime (provided through gnulib if necessary).
1038 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1039 of ctime.
1040
f8e27d88
CB
10412019-11-15 Christian Biesinger <cbiesinger@google.com>
1042
1043 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1044 avoid compile errors.
1045
5abebf3c
CB
10462019-11-15 Christian Biesinger <cbiesinger@google.com>
1047
1048 * config.in: Regenerate.
1049 * configure: Regenerate.
1050 * gdbsupport/common.m4: No longer check for strerror_r.
1051 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1052 POSIX version of strerror_r, now that gnulib provides it if
1053 necessary.
1054
9a351667
CB
10552019-11-14 Christian Biesinger <cbiesinger@google.com>
1056
1057 * README (`configure' options): Update.
1058
55708e99
TT
10592019-11-14 Tom Tromey <tromey@adacore.com>
1060
1061 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1062 expected type for the RHS if the LHS is a convenience variable.
1063
4b09bb2e
SM
10642019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1067 Provide explicit default and copy constructor.
1068
bd454f8b
PW
10692019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1070
1071 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1072 only call Py_INCREF (newbp) in the bppy_pending_object case.
1073
d1aa3cf0
TT
10742019-11-13 Tom Tromey <tromey@adacore.com>
1075
1076 PR build/25182:
1077 * psympriv.h (partial_symbol): Remove static assert.
1078 * symtab.h (general_symbol_info, symbol): Remove static assert.
1079
e06f3d6e
AB
10802019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * gdbsupport/format.c (format_pieces::format_pieces): Support
1083 printf 'z' size modifier.
1084 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1085 * printcmd.c (ui_printf): Handle size_t_arg.
1086 * ui-out.c (ui_out::vmessage): Likewise.
1087 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1088 function.
1089 (run_tests): Call test_format_int_sizes.
1090
468c0cbb
CB
10912019-11-12 Christian Biesinger <cbiesinger@google.com>
1092
1093 * ada-exp.y (write_ambiguous_var): Update.
1094 * buildsym.c (add_symbol_to_list): Update.
1095 * dwarf2read.c (read_variable): Update.
1096 (new_symbol): Update.
1097 * jit.c (finalize_symtab): Update.
1098 * language.c (language_alloc_type_symbol): Update.
1099 * symtab.c (fixup_symbol_section): Update.
1100 (initialize_objfile_symbol_1): Move code to...
1101 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1102 (allocate_symbol): Update.
1103 (allocate_template_symbol): Update.
1104 (get_symbol_address): Update.
1105 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1106 of having as a field, and add a constructor.
1107 (SYMBOL_VALUE): Update.
1108 (SYMBOL_VALUE_ADDRESS): Update.
1109 (SET_SYMBOL_VALUE_ADDRESS): Update.
1110 (SYMBOL_VALUE_BYTES): Update.
1111 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1112 (SYMBOL_BLOCK_VALUE): Update.
1113 (SYMBOL_VALUE_CHAIN): Update.
1114 (SYMBOL_LANGUAGE): Update.
1115 (SYMBOL_SECTION): Update.
1116 (SYMBOL_OBJ_SECTION): Update.
1117 (SYMBOL_SET_LANGUAGE): Update.
1118 (SYMBOL_SET_LINKAGE_NAME): Update.
1119 (SYMBOL_SET_NAMES): Update.
1120 (SYMBOL_NATURAL_NAME): Update.
1121 (SYMBOL_LINKAGE_NAME): Update.
1122 (SYMBOL_DEMANGLED_NAME): Update.
1123 (SYMBOL_SEARCH_NAME): Update.
1124 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1125 (struct symbol): Update.
1126 (struct template_symbol): Update.
1127 (struct rust_vtable_symbol): Update.
1128 * xcoffread.c (SYMBOL_DUP): Update.
1129
ed2c82c3
TT
11302019-11-12 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-layout.c (show_layout): Set current_layout.
1133 (show_source_disasm_command, show_data)
1134 (show_source_or_disasm_and_command): Don't set current_layout.
1135
d9fcefd5
TT
11362019-11-12 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1139
45e42163
TT
11402019-11-12 Tom Tromey <tom@tromey.com>
1141
1142 * tui/tui-win.c (resize_message): New global.
1143 (show_tui_resize_message): New function.
1144 (tui_async_resize_screen): Print message if requested.
1145 (_initialize_tui_win): Add tui-resize-message setting.
1146 * NEWS: Add entry for new commands.
1147
c86d74cc
TT
11482019-11-11 Tom Tromey <tom@tromey.com>
1149
1150 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1151 functions.
1152
7b7b9424
CB
11532019-11-11 Christian Biesinger <cbiesinger@google.com>
1154
1155 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1156
086baaf1
AB
11572019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1160 function.
1161 * python/python-internal.h (gdbpy_lookup_static_symbols):
1162 Declare new function.
1163 * python/python.c (python_GdbMethods): Add
1164 gdb.lookup_static_symbols method.
1165 * NEWS: Mention gdb.lookup_static_symbols.
1166
09ff83af
AB
11672019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1170 static block of current object file first. Also fix typo in
1171 header comment.
1172
eb2dd8df
AB
11732019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * stack.c (set_last_displayed_sal): Delete.
1176 (last_displayed_sal_valid): Delete.
1177 (last_displayed_pspace): Delete.
1178 (last_displayed_addr): Delete.
1179 (last_displayed_symtab): Delete.
1180 (last_displayed_line): Delete.
1181 (class last_displayed_symtab_info_type): New.
1182 (last_displayed_symtab_info): New static global variable.
1183 (print_frame_info): Call methods on last_displayed_symtab_info.
1184 (clear_last_displayed_sal): Update header comment, and make use of
1185 last_displayed_symtab_info.
1186 (last_displayed_sal_is_valid): Likewise.
1187 (get_last_displayed_pspace): Likewise.
1188 (get_last_displayed_addr): Likewise.
1189 (get_last_displayed_symtab): Likewise.
1190 (get_last_displayed_line): Likewise.
1191 (get_last_displayed_sal): Likewise.
1192 * stack.h (clear_last_displayed_sal): Update header comment.
1193 (last_displayed_sal_is_valid): Likewise.
1194 (get_last_displayed_pspace): Likewise.
1195 (get_last_displayed_addr): Likewise.
1196 (get_last_displayed_symtab): Likewise.
1197 (get_last_displayed_line): Likewise.
1198 (get_last_displayed_sal): Likewise.
1199
62137775
AB
12002019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * stack.c (frame_show_address): Convert return type to bool.
1203 * stack.h (frame_show_address): Likewise, and update header
1204 comment.
1205
cf57ad6d
AB
12062019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1209 * unittests/vec-utils-selftests.c: New file.
1210 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1211
0b026263
TT
12122019-11-10 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1215 (tui_highlight_win): Likewise.
1216 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1217 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1218 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1219 Don't set can_highlight.
1220
b049ce2d
TT
12212019-11-10 Tom Tromey <tom@tromey.com>
1222
1223 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1224 Remove unused declaration.
1225
992a7040
TT
12262019-11-08 Tom Tromey <tromey@adacore.com>
1227
1228 * top.c (read_command_file): Update.
1229 (command_line_input): Make return type const.
1230 * python/py-gdb-readline.c: Update.
1231 * linespec.c (decode_line_2): Update.
1232 * defs.h (command_line_input): Make return type const.
1233 * cli/cli-script.c (read_next_line): Make return type const.
1234 * ada-lang.c (get_selections): Update.
1235
ca3a04f6
CB
12362019-11-06 Christian Biesinger <cbiesinger@google.com>
1237
1238 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1239 * mi/mi-main.c (output_cores): Likewise.
1240 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1241 (linux_xfer_osdata_modules): Likewise.
1242 * remote.c (register_remote_support_xml): Likewise.
1243 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1244 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1245
e0eac551
TT
12462019-11-06 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-interp.c: Don't include readline.h.
1249 * tui/tui-hooks.c: Don't include readline.h.
1250 * symmisc.c: Include tilde.h, not readline.h.
1251 * symfile.c: Include tilde.h, not readline.h.
1252 * source.c: Include tilde.h, not readline.h.
1253 * solib.c: Include tilde.h, not readline.h.
1254 * psymtab.c: Include tilde.h, not readline.h.
1255 * exec.c: Include tilde.h, not readline.h.
1256 * corelow.c: Include tilde.h, not readline.h.
1257 * cli/cli-dump.c: Include tilde.h, not readline.h.
1258 * cli/cli-cmds.c: Don't include readline.h.
1259
825165c5
TT
12602019-11-05 Tom Tromey <tom@tromey.com>
1261
1262 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1263 (tui_disassemble): Set addr_size.
1264 (tui_disasm_window::set_contents): Use addr_size.
1265
91ae903f
TT
12662019-11-05 Tom Tromey <tom@tromey.com>
1267
1268 * rust-lang.c (rust_language_defn): Update.
1269 * python/py-value.c (valpy_string): Call c_get_string.
1270 * p-lang.c (pascal_language_defn): Update.
1271 * opencl-lang.c (opencl_language_defn): Update.
1272 * objc-lang.c (objc_language_defn): Update.
1273 * m2-lang.c (m2_language_defn): Update.
1274 * language.c (unknown_language_defn, auto_language_defn): Update.
1275 (default_get_string): Remove.
1276 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1277 * go-lang.c (go_language_defn): Update.
1278 * f-lang.c (f_language_defn): Update.
1279 * d-lang.c (d_language_defn): Update.
1280 * c-lang.c (c_language_defn, cplus_language_defn)
1281 (asm_language_defn, minimal_language_defn): Update.
1282 * ada-lang.c (ada_language_defn): Update.
1283 * language.h (struct language_defn) <la_get_string>: Remove.
1284 (LA_GET_STRING): Remove.
1285 (default_get_string): Don't declare.
1286
1df2f9ef
TT
12872019-11-05 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-source.h (struct tui_source_window): Inline
1290 constructor. Remove destructor.
1291 <style_changed, m_observable>: Move to superclass.
1292 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1293 (struct tui_source_window_base): Move private members to end.
1294 <style_changed, m_observable>: Move from tui_source_window.
1295 * tui/tui-winsource.c (tui_copy_source_line): Move from
1296 tui-source.c. Rename from copy_source_line. Add special handling
1297 for negative line number.
1298 (tui_source_window_base::style_changed): Move from
1299 tui_source_window.
1300 (tui_source_window_base): Register observer.
1301 (~tui_source_window_base): New.
1302 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1303 rename.
1304 (tui_source_window::set_contents): Use tui_copy_source_line.
1305 (tui_source_window::tui_source_window): Move to tui-source.h.
1306 (tui_source_window::~tui_source_window): Remove.
1307 (tui_source_window::style_changed): Move to superclass.
1308 * tui/tui-disasm.c (tui_disassemble): Create string file with
1309 styling, when possible. Add "addr_size" parameter.
1310 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1311 Don't compute maximum size.
1312 (len_without_escapes): New function
1313
5d051055
TT
13142019-11-05 Tom Tromey <tom@tromey.com>
1315
1316 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1317 std::string.
1318 * tui/tui-winsource.c (tui_show_source_line): Update.
1319 * tui/tui-source.c (tui_source_window::set_contents): Update.
1320 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1321
ade7beea
CB
13222019-11-05 Christian Biesinger <cbiesinger@google.com>
1323
1324 * symtab.h (gdb_static_assert): Put && operator at the beginning
1325 of the line instead of the end.
1326
3573abe1
CB
13272019-11-04 Christian Biesinger <cbiesinger@google.com>
1328
1329 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1330 and sizeof (symbol).
1331 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1332
dae8b3eb
RO
13332019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1334
1335 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1336 * configure.host: Mark *-*-solaris2.10* obsolete.
1337 * configure.tgt: Mark Solaris < 11 obsolete.
1338 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1339 Update target triplet.
1340
5df96a4e
TT
13412019-11-01 Tom Tromey <tromey@adacore.com>
1342
1343 * utils.c (print_sys_errmsg): Simplify.
1344
b7481649
TT
13452019-11-01 Tom Tromey <tromey@adacore.com>
1346
1347 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1348
e48f6033
CB
13492019-11-01 Christian Biesinger <cbiesinger@google.com>
1350
1351 * configure: Regenerate.
1352 * configure.ac: Remove check for strerror_r.
1353 * gdbsupport/common.m4: Check for strerror_r.
1354
bd5766ec
LM
13552019-11-01 Luis Machado <luis.machado@linaro.org>
1356
1357 PR gdb/25124
1358
1359 * arm-tdep.c (arm_per_objfile): Rename to ...
1360 (arm_per_bfd): ... this.
1361 (arm_objfile_data_key): Rename to ...
1362 (arm_bfd_data_key): ... this.
1363 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1364 data.
1365 (arm_record_special_symbol): Likewise.
1366
e1709896
AB
13672019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1370 end.
1371 * c-typeprint.c (c_print_typedef): Likewise.
1372 * f-typeprint.c (f_print_typedef): Likewise.
1373 * m2-typeprint.c (m2_print_typedef): Likewise.
1374 * p-typeprint.c (pascal_print_typedef): Likewise.
1375 * rust-lang.c (rust_print_typedef): Likewise.
1376 * symtab.c (print_symbol_info): Print a newline after calling
1377 typedef_print.
1378
165f8965
AB
13792019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * symtab.c (info_module_cmdlist): New variable.
1382 (info_module_command): New function.
1383 (search_module_symbols): New function.
1384 (info_module_subcommand): New function.
1385 (struct info_modules_var_func_options): New struct.
1386 (info_modules_var_func_options_defs): New variable.
1387 (make_info_modules_var_func_options_def_group): New function.
1388 (info_module_functions_command): New function.
1389 (info_module_variables_command): New function.
1390 (info_module_var_func_command_completer): New function.
1391 (_initialize_symtab): Register new 'info module functions' and
1392 'info module variables' commands.
1393 * symtab.h (typedef symbol_search_in_module): New typedef.
1394 (search_module_symbols): Declare new function.
1395 * NEWS: Mention new commands.
1396
59c35742
AB
13972019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1400 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1401 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1402 MODULES_DOMAIN.
1403 (scan_partial_symbols): Only create partial module symbols for non
1404 declarations.
1405 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1406 and MODULES_DOMAIN.
1407 * symtab.c (search_domain_name): Likewise.
1408 (search_symbols): Likewise.
1409 (print_symbol_info): Likewise.
1410 (symtab_symbol_info): Likewise.
1411 (info_modules_command): New function.
1412 (_initialize_symtab): Register 'info modules' command.
1413 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1414 * NEWS: Mention new 'info modules' command.
1415
aed61d02
PW
14162019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1417
1418 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1419 and $_gdb_maint_setting_str.
1420
9ad9b77d
PW
14212019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1422
1423 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1424 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1425 (str_value_from_setting, gdb_setting_str_internal_fn)
1426 (gdb_maint_setting_str_internal_fn): New functions.
1427 (_initialize_cli_cmds): Define the new convenience functions.
1428 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1429 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1430
8d6efaa2
CB
14312019-10-31 Christian Biesinger <cbiesinger@google.com>
1432
1433 * agent.c (set_can_use_agent): When the setting is turned on,
1434 look up agent symbols if we don't have them yet.
1435 (agent_new_objfile): Don't look up agent symbols when the agent
1436 setting is off.
1437
33cb1647
CB
14382019-10-31 Christian Biesinger <cbiesinger@google.com>
1439
1440 * config.in: Regenerate.
1441
b231e86a
CB
14422019-10-31 Christian Biesinger <cbiesinger@google.com>
1443
1444 * configure: Regenerate.
1445 * configure.ac: Check for strerror_r.
1446 * gdbsupport/common-utils.h (safe_strerror): Change return value
1447 to const char * and document that this function is now threadsafe.
1448 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1449 thread_local and call strerror_r, if available.
1450 * utils.c (perror_string): Update.
1451 (print_sys_errmsg): Update.
1452
a2726d4f
LM
14532019-10-31 Luis Machado <luis.machado@linaro.org>
1454
1455 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1456 objfile_key.
1457 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1458 objfile to fetch per-bfd data.
1459 (arm_find_exidx_entry): Likewise.
1460
75cafaa6
CB
14612019-10-31 Christian Biesinger <cbiesinger@google.com>
1462
1463 * gdbsupport/agent.c (debug_agent): Change type to bool.
1464 (use_agent): Likewise.
1465 (all_agent_symbols_look_up): Likewise.
1466 (agent_loaded_p): Change return value to bool.
1467 (agent_look_up_symbols): Update.
1468 (agent_capability_check): Change return value to bool.
1469 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1470 (debug_agent): Change type to bool.
1471 (use_agent): Likewise.
1472 (agent_capability_check): Change return value to bool.
1473
808590ec
CB
14742019-10-30 Christian Biesinger <cbiesinger@google.com>
1475
1476 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1477 (build_minimal_symbol_hash_tables): Code to clear the table moved
1478 to clear_minimal_symbol_hash_tables.
1479 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1480 when needed.
1481
f18ad8a1
SM
14822019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * infcmd.c: Remove includes.
1485 * infrun.c: Remove includes.
1486
de93309a
SM
14872019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1490 (grow_vect): Remove declaration.
1491 (ada_type_of_array): Remove declaration.
1492 (ada_update_initial_language): Remove declaration.
1493 (ada_fold_name): Remove declaration.
1494 (ada_fill_in_ada_prototype): Remove declaration.
1495 (user_select_syms): Remove declaration.
1496 (get_selections): Remove declaration.
1497 (ada_tag_type): Remove declaration.
1498 (ada_value_tag): Remove declaration.
1499 (ada_is_others_clause): Remove declaration.
1500 (ada_in_variant): Remove declaration.
1501 (ada_value_struct_elt): Remove declaration.
1502 (ada_attribute_name): Remove declaration.
1503 (ada_system_address_type): Remove declaration.
1504 * ada-lang.c (ada_watch_location_expression): Make static.
1505 (GROW_VECT): Move here from ada-lang.h.
1506 (grow_vect): Make static.
1507 (ada_update_initial_language): Make static.
1508 (ada_fold_name): Make static.
1509 (ada_type_of_array): Make static.
1510 (encoded_ordered_before): Move up.
1511 (sort_choices): Move up.
1512 (print_signatures): Move up.
1513 (ada_print_symbol_signature): Move up.
1514 (get_selections): Move up and make static.
1515 (user_select_syms): Move up and make static.
1516 (ada_value_struct_elt): Move up and make static.
1517 (ada_tag_type): Make static.
1518 (ada_value_tag): Make static.
1519 (ada_is_others_clause): Make static.
1520 (ada_in_variant): Make static.
1521 (ada_attribute_name): Make static.
1522
cdc46a9f
SM
15232019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * ada-lang.c: Remove includes.
1526 * ada-typeprint.c: Remove includes.
1527 * ada-valprint.c: Remove includes.
1528
90421c56
SM
15292019-10-29 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * addrmap.c: Add static assertions of type size, moved from
1532 _initialize_addrmap.
1533 (_initialize_addrmap): Remove.
1534
31edb802
CB
15352019-10-29 Christian Biesinger <cbiesinger@google.com>
1536
1537 * coffread.c (record_minimal_symbol): Update.
1538 (process_coff_symbol): Update.
1539 * dbxread.c (read_dbx_symtab): Update.
1540 * dwarf2read.c (add_partial_symbol): Update.
1541 (fixup_go_packaging): Update.
1542 (load_partial_dies): Update.
1543 (new_symbol): Update.
1544 * elfread.c (record_minimal_symbol): Change signature to use
1545 gdb::string_view instead of name+len.
1546 (elf_symtab_read): Update.
1547 (elf_rel_plt_read): Update.
1548 * mdebugread.c (parse_partial_symbols): Update.
1549 (handle_psymbol_enumerators): Update.
1550 (new_symbol): Update.
1551 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1552 to use gdb::string_view instead of name+len.
1553 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1554 * psympriv.h (add_psymbol_to_list): Likewise.
1555 * psymtab.c (add_psymbol_to_bcache): Likewise.
1556 (add_psymbol_to_list): Likewise.
1557 * stabsread.c (define_symbol): Update.
1558 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1559 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1560 (symbol_set_names): Likewise.
1561 * xcoffread.c (scan_xcoff_symtab): Update.
1562
0c921b21
CB
15632019-10-29 Christian Biesinger <cbiesinger@google.com>
1564
1565 * symtab.h (symbol_set_names): Document that copy_name must be
1566 set to true for non-nullterminated strings.
1567 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1568 linkage_name if the entry was not found and we need to demangle.
1569
35e65c49
CB
15702019-10-29 Christian Biesinger <cbiesinger@google.com>
1571
1572 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1573 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1574 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1575 * gdbsupport/gdb_binary_search.h: New file.
1576
ed2a2229
CB
15772019-10-29 Christian Biesinger <cbiesinger@google.com>
1578
1579 * NEWS: Mention new --with-system-gdbinit-dir option.
1580 * config.in: Regenerate.
1581 * configure: Regenerate.
1582 * configure.ac: Add new option --with-system-gdbinit-dir.
1583 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1584 for a ".gdb" suffix.
1585 * main.c (get_init_files): Change system_gdbinit argument to
1586 a vector and return the files in SYSTEM_GDBINIT_DIR in
1587 addition to SYSTEM_GDBINIT.
1588 (captured_main_1): Update.
1589 (print_gdb_help): Update.
1590 * top.c (print_gdb_configuration): Also print the value of
1591 SYSTEM_GDBINIT_DIR.
1592
87f34879
CB
15932019-10-28 Christian Biesinger <cbiesinger@google.com>
1594
1595 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1596 that takes gdb::string_view arguments.
1597
30baf67b
TV
15982019-10-26 Tom de Vries <tdevries@suse.de>
1599
1600 * aarch64-linux-tdep.c: Fix typos in comments.
1601 * aarch64-tdep.c: Same.
1602 * ada-lang.c: Same.
1603 * amd64-nat.c: Same.
1604 * arc-tdep.c: Same.
1605 * arch/aarch64-insn.c: Same.
1606 * block.c: Same.
1607 * breakpoint.h: Same.
1608 * btrace.h: Same.
1609 * c-varobj.c: Same.
1610 * cli/cli-decode.c: Same.
1611 * cli/cli-script.c: Same.
1612 * cli/cli-utils.h: Same.
1613 * coff-pe-read.c: Same.
1614 * coffread.c: Same.
1615 * compile/compile-cplus-symbols.c: Same.
1616 * compile/compile-object-run.c: Same.
1617 * completer.c: Same.
1618 * corelow.c: Same.
1619 * cp-support.c: Same.
1620 * demangle.c: Same.
1621 * dwarf-index-write.c: Same.
1622 * dwarf2-frame.c: Same.
1623 * dwarf2-frame.h: Same.
1624 * eval.c: Same.
1625 * frame-base.h: Same.
1626 * frame.h: Same.
1627 * gdbcmd.h: Same.
1628 * gdbtypes.h: Same.
1629 * gnu-nat.c: Same.
1630 * guile/scm-objfile.c: Same.
1631 * i386-tdep.c: Same.
1632 * i386-tdep.h: Same.
1633 * infcall.c: Same.
1634 * infcall.h: Same.
1635 * linux-nat.c: Same.
1636 * m68k-tdep.c: Same.
1637 * macroexp.c: Same.
1638 * memattr.c: Same.
1639 * mi/mi-cmd-disas.c: Same.
1640 * mi/mi-getopt.h: Same.
1641 * mi/mi-main.c: Same.
1642 * minsyms.c: Same.
1643 * nat/aarch64-sve-linux-sigcontext.h: Same.
1644 * objfiles.h: Same.
1645 * ppc-linux-nat.c: Same.
1646 * ppc-linux-tdep.c: Same.
1647 * ppc-tdep.h: Same.
1648 * progspace.h: Same.
1649 * prologue-value.h: Same.
1650 * python/py-evtregistry.c: Same.
1651 * python/py-instruction.h: Same.
1652 * record-btrace.c: Same.
1653 * record-full.c: Same.
1654 * remote.c: Same.
1655 * rs6000-tdep.c: Same.
1656 * ser-tcp.c: Same.
1657 * sol-thread.c: Same.
1658 * sparc-sol2-tdep.c: Same.
1659 * sparc64-tdep.c: Same.
1660 * stabsread.c: Same.
1661 * symfile.c: Same.
1662 * symtab.h: Same.
1663 * target.c: Same.
1664 * tracepoint.c: Same.
1665 * tui/tui-data.h: Same.
1666 * tui/tui-io.c: Same.
1667 * tui/tui-win.c: Same.
1668 * tui/tui.c: Same.
1669 * unittests/rsp-low-selftests.c: Same.
1670 * user-regs.h: Same.
1671 * utils.c: Same.
1672 * utils.h: Same.
1673 * valarith.c: Same.
1674 * valops.c: Same.
1675 * valprint.c: Same.
1676 * valprint.h: Same.
1677 * value.c: Same.
1678 * value.h: Same.
1679 * varobj.c: Same.
1680 * x86-nat.h: Same.
1681 * xtensa-tdep.c: Same.
1682
1834d45f
AT
16832019-10-25 Ali Tamur <tamur@google.com>
1684
1685 * charset.c (find_charset_names): Reflect API change.
1686
5396ae17
CB
16872019-10-25 Christian Biesinger <cbiesinger@google.com>
1688
1689 * symtab.c (struct demangled_name_entry): Change demangled name
1690 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1691 part of the struct anymore.
1692 (symbol_set_names): No longer obstack allocate + copy the demangled
1693 name, just store the allocated name from bfd.
1694
93878f47
TT
16952019-10-25 Tom Tromey <tromey@adacore.com>
1696
1697 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1698 (bsearch_cie_cmp, add_cie): Remove.
1699 (find_cie): Reimplement.
1700 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1701 (dwarf2_build_frame_info): Update.
1702
7b71fc97
L
17032019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1704
1705 PR gdb/25126
1706 * symfile.c (reread_symbols): Call forget_cached_source_info to
1707 clear the stale source cache.
1708
cbb5a2ea
CB
17092019-10-24 Christian Biesinger <cbiesinger@google.com>
1710
1711 * configure: Regenerate.
1712 * configure.ac: Remove code that sets python_has_threads.
1713
71737c43
CB
17142019-10-24 Christian Biesinger <cbiesinger@google.com>
1715
1716 * config.in: Regenerate.
1717 * configure: Regenerate.
1718 * configure.ac: Remove the code that uses sed to get the python
1719 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1720
33d569b7
AB
17212019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1724 error paths.
1725
f16f7b7c
TT
17262019-10-23 Tom Tromey <tom@tromey.com>
1727
1728 * arc-tdep.c: Remove ".." from include.
1729 * frv-tdep.c: Remove ".." from include.
1730 * lm32-tdep.c: Remove ".." from include.
1731 * microblaze-tdep.c: Remove ".." from include.
1732 * or1k-tdep.h: Remove ".." from include.
1733 * s12z-tdep.c: Remove ".." from include.
1734 * Makefile.in (OPCODES_CFLAGS): Add comment.
1735 (TOP_CFLAGS): New variable.
1736 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1737
6999161a
TT
17382019-10-23 Tom Tromey <tom@tromey.com>
1739
1740 * Makefile.in (READLINE_DIR): Update.
1741
12e7c35e
TBA
17422019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 * infcall.c (call_function_by_hand_dummy): Fix the function
1745 comment. And extract out a code section into...
1746 (reserve_stack_space): ...this new function.
1747
37055cad
TBA
17482019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1749
1750 * infcall.c (value_arg_coerce): Remove an unused parameter.
1751 (call_function_by_hand_dummy): Update the call to
1752 'value_arg_coerce'.
1753
39bcc47c
TBA
17542019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1755
1756 * infcall.c (call_function_by_hand_dummy): Refactor.
1757
bd888c0f
TBA
17582019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759
1760 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1761
c12d372d
TT
17622019-10-23 Tom Tromey <tom@tromey.com>
1763
1764 * configure: Rebuild.
1765 * configure.ac: Don't check for sigprocmask.
1766 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1767
4d0b984b
TT
17682019-10-23 Tom Tromey <tom@tromey.com>
1769
1770 * configure: Rebuild.
1771 * acinclude.m4: Use m4_include, not sinclude.
1772
7e785608
TV
17732019-10-23 Tom de Vries <tdevries@suse.de>
1774
1775 PR breakpoints/24687
1776 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1777
403772ef
CB
17782019-10-22 Christian Biesinger <cbiesinger@google.com>
1779
1780 * symtab.c (struct demangled_name_entry) <language>: Change from
1781 bitfield to regular variable.
1782
3a494279
CB
17832019-10-22 Christian Biesinger <cbiesinger@google.com>
1784
1785 * symtab.c (struct demangled_name_entry): Add a constructor.
1786 (free_demangled_name_entry): New function to call the destructor
1787 for demangled_name_entry.
1788 (create_demangled_names_hash): Pass free_demangled_name_entry to
1789 htab_create_alloc.
1790 (symbol_set_names): Call placement new for demangled_name_entry.
1791 * utils.c: No longer include xxhash.h here, now that fast_hash
1792 is inlined in the header.
1793 * utils.h: Instead, include it here.
1794
ccb1ba62
CB
17952019-10-22 Christian Biesinger <cbiesinger@google.com>
1796
1797 * Makefile.in: Link with libxxhash.
1798 * config.in: Regenerate.
1799 * configure: Regenerate.
1800 * configure.ac: Search for libxxhash.
1801 * utils.c (fast_hash): Use xxhash if present.
1802
1a6ff1a9
CB
18032019-10-22 Christian Biesinger <cbiesinger@google.com>
1804
1805 * utils.h (fast_hash): New function.
1806 * symtab.c (hash_demangled_name_entry): Call new function
1807 fast_hash.
1808
7bb43059
CB
18092019-10-22 Christian Biesinger <cbiesinger@google.com>
1810
1811 * symtab.c (struct demangled_name_entry): Change type of mangled
1812 to gdb::string_view. Also adds a constructor that takes the
1813 mangled name.
1814 (hash_demangled_name_entry): Update.
1815 (eq_demangled_name_entry): Update.
1816 (free_demangled_name_entry): New function to call the destructor
1817 now that this is not a POD anymore.
1818 (create_demangled_names_hash): Pass free_demangled_name_entry to
1819 htab_create_alloc.
1820 (symbol_set_names): Update.
1821
7ba99d21
AT
18222019-10-21 Ali Tamur <tamu@google.com>
1823
1824 * dwarf2read.c (dir_index): Change type.
1825 (file_name_index): Likewise.
1826 (line_header::include_dir_at): Change comment and implementation on
1827 whether it is DWARF 5.
1828 (line_header::is_valid_file_index): New function.
1829 (line_header::file_name_at): Change comment and implementation on
1830 whether it is DWARF 5.
1831 (line_header::file_names): Change to private field renamed as
1832 m_file_names and introduce a new accessor method.
1833 (line_header::file_names_size): New method.
1834 (line_header::include_dirs): Change to private field and rename as
1835 m_include_dirs.
1836 (dw2_get_file_names_reader): Define local var at a smaller scope and
1837 reflect API change.
1838 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1839 (process_structure_scope): Likewise.
1840 (line_header::add_include_dir): Change message and reflect renaming.
1841 (line_header::add_file_name): Likewise.
1842 (read_formatted_entries): Handle DW_FORM_data16.
1843 (dwarf_decode_line_header): Fix line header length calculation.
1844 (psymtab_include_file_name): Change comment and API.
1845 (lnp_state_machine::m_file): Update comment and reflect type change.
1846 (lnp_state_machine::record_line): Reflect type change.
1847 (dwarf_decode_lines): Reflect API change.
1848 (file_file_name): Likewise.
1849 (file_full_name): Likewise.
1850
45f47c3a
AB
18512019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1854
e5f3c0e3
TT
18552019-10-21 Tom Tromey <tom@tromey.com>
1856
1857 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1858
a0a461e5
TT
18592019-10-21 Tom Tromey <tom@tromey.com>
1860
1861 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1862 NM_H. Use AC_CONFIG_LINKS.
1863 * configure: Rebuild.
1864 * Makefile.in (NM_H): New variable.
1865 (generated_files): Add NM_H. Remove gcore.
1866 (nm.h, stamp-nmh): New targets.
1867
54d83b8d
TT
18682019-10-20 Tom Tromey <tom@tromey.com>
1869
1870 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1871 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1872 obsolete comment.
1873 (put_objfile_before): Now static.
1874
23771117
SM
18752019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 * gdbsupport/common-utils.h (startswith): Change return type to
1878 bool.
1879
39ef2f62
CB
18802019-10-19 Christian Biesinger <cbiesinger@google.com>
1881
1882 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1883 * breakpoint.c (bp_locations_compare): Rename to...
1884 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1885 (update_global_location_list): Use std::sort instead of qsort.
1886 * buildsym.c (compare_line_numbers): Rename to...
1887 (lte_is_less_than): ...this, and change to std::sort semantics.
1888 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1889 instead of qsort.
1890 * disasm.c (compare_lines): Rename to...
1891 (line_is_less_than): ...this, and change to std::sort semantics.
1892 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1893 of qsort.
1894 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1895 (fde_is_less_than): ...this, and change to std::sort semantics.
1896 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1897 * mdebugread.c (compare_blocks):
1898 (block_is_less_than): ...this, and change to std::sort semantics.
1899 (sort_blocks): Call std::sort instead of qsort.
1900 * objfiles.c (qsort_cmp): Rename to...
1901 (sort_cmp): ...this, and change to std::sort semantics.
1902 (update_section_map): Call std::sort instead of qsort.
1903 * remote.c (compare_pnums): Remove.
1904 (map_regcache_remote_table): Call std::sort instead of qsort.
1905 * utils.c (compare_positive_ints): Remove.
1906 * utils.h (compare_positive_ints): Remove.
1907 * xcoffread.c (compare_lte): Remove.
1908 (arrange_linetable): Call std::sort instead of qsort.
1909
f71433ee
SDJ
19102019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1911
1912 * symfile.c (init_entry_point_info): Fix typo.
1913 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1914
85102364
TV
19152019-10-18 Tom de Vries <tdevries@suse.de>
1916
1917 * aarch64-tdep.c: Fix typos in comments.
1918 * ada-lang.c: Same.
1919 * ada-tasks.c: Same.
1920 * alpha-tdep.c: Same.
1921 * alpha-tdep.h: Same.
1922 * amd64-nat.c: Same.
1923 * amd64-windows-tdep.c: Same.
1924 * arc-tdep.c: Same.
1925 * arc-tdep.h: Same.
1926 * arch-utils.c: Same.
1927 * arm-nbsd-tdep.c: Same.
1928 * arm-tdep.c: Same.
1929 * ax-gdb.c: Same.
1930 * blockframe.c: Same.
1931 * btrace.c: Same.
1932 * c-varobj.c: Same.
1933 * coff-pe-read.c: Same.
1934 * coffread.c: Same.
1935 * cris-tdep.c: Same.
1936 * darwin-nat.c: Same.
1937 * dbxread.c: Same.
1938 * dcache.c: Same.
1939 * disasm.c: Same.
1940 * dtrace-probe.c: Same.
1941 * dwarf-index-write.c: Same.
1942 * dwarf2-frame-tailcall.c: Same.
1943 * dwarf2-frame.c: Same.
1944 * dwarf2read.c: Same.
1945 * eval.c: Same.
1946 * exceptions.c: Same.
1947 * fbsd-tdep.c: Same.
1948 * findvar.c: Same.
1949 * frame.c: Same.
1950 * frv-tdep.c: Same.
1951 * gnu-v3-abi.c: Same.
1952 * go32-nat.c: Same.
1953 * h8300-tdep.c: Same.
1954 * hppa-tdep.c: Same.
1955 * i386-linux-tdep.c: Same.
1956 * i386-tdep.c: Same.
1957 * ia64-libunwind-tdep.c: Same.
1958 * ia64-tdep.c: Same.
1959 * infcmd.c: Same.
1960 * infrun.c: Same.
1961 * linespec.c: Same.
1962 * linux-nat.c: Same.
1963 * linux-thread-db.c: Same.
1964 * machoread.c: Same.
1965 * mdebugread.c: Same.
1966 * mep-tdep.c: Same.
1967 * mn10300-tdep.c: Same.
1968 * namespace.c: Same.
1969 * objfiles.c: Same.
1970 * opencl-lang.c: Same.
1971 * or1k-tdep.c: Same.
1972 * osabi.c: Same.
1973 * ppc-linux-nat.c: Same.
1974 * ppc-linux-tdep.c: Same.
1975 * ppc-sysv-tdep.c: Same.
1976 * printcmd.c: Same.
1977 * procfs.c: Same.
1978 * record-btrace.c: Same.
1979 * record-full.c: Same.
1980 * remote-fileio.c: Same.
1981 * remote.c: Same.
1982 * rs6000-tdep.c: Same.
1983 * s12z-tdep.c: Same.
1984 * score-tdep.c: Same.
1985 * ser-base.c: Same.
1986 * ser-go32.c: Same.
1987 * skip.c: Same.
1988 * sol-thread.c: Same.
1989 * solib-svr4.c: Same.
1990 * solib.c: Same.
1991 * source.c: Same.
1992 * sparc-nat.c: Same.
1993 * sparc-sol2-tdep.c: Same.
1994 * sparc-tdep.c: Same.
1995 * sparc64-tdep.c: Same.
1996 * stabsread.c: Same.
1997 * stack.c: Same.
1998 * symfile.c: Same.
1999 * symtab.c: Same.
2000 * target-descriptions.c: Same.
2001 * target-float.c: Same.
2002 * thread.c: Same.
2003 * utils.c: Same.
2004 * valops.c: Same.
2005 * valprint.c: Same.
2006 * value.c: Same.
2007 * varobj.c: Same.
2008 * windows-nat.c: Same.
2009 * xcoffread.c: Same.
2010 * xstormy16-tdep.c: Same.
2011 * xtensa-tdep.c: Same.
2012
c5adaa19
TT
20132019-10-17 Tom Tromey <tromey@adacore.com>
2014
2015 * configure: Rebuild.
2016 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2017 in AC_CONFIG_FILES invocation.
2018 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2019 new-style config.status invocation.
2020
405feb71
TV
20212019-10-17 Tom de Vries <tdevries@suse.de>
2022
2023 * arm-nbsd-nat.c: Fix typos in comments.
2024 * arm-tdep.c: Same.
2025 * darwin-nat-info.c: Same.
2026 * dwarf2read.c: Same.
2027 * elfread.c: Same.
2028 * event-top.c: Same.
2029 * findvar.c: Same.
2030 * gdbtypes.c: Same.
2031 * hppa-tdep.c: Same.
2032 * i386-tdep.c: Same.
2033 * jit.c: Same.
2034 * main.c: Same.
2035 * mdebugread.c: Same.
2036 * moxie-tdep.c: Same.
2037 * nto-procfs.c: Same.
2038 * osabi.c: Same.
2039 * ppc-linux-tdep.c: Same.
2040 * remote.c: Same.
2041 * riscv-tdep.c: Same.
2042 * s390-tdep.c: Same.
2043 * sh-tdep.c: Same.
2044 * sparc-linux-tdep.c: Same.
2045 * sparc-nat.c: Same.
2046 * stack.c: Same.
2047 * target-descriptions.c: Same.
2048 * top.c: Same.
2049 * varobj.c: Same.
2050
befcd486
TT
20512019-10-16 Tom Tromey <tom@tromey.com>
2052
2053 * objfiles.h (struct objfile) <original_name>: Now const.
2054
17bfe554
CB
20552019-10-16 Christian Biesinger <cbiesinger@google.com>
2056
2057 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2058 pass on to sigsetjmp's second argument.
2059 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2060
950b7495
KS
20612019-10-16 Keith Seitz <keiths@redhat.com>
2062
2063 PR gdb/23567
2064 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2065 sections whose size is greater than the file size.
2066
ff371ec9
JW
20672019-10-16 Jim Wilson <jimw@sifive.com>
2068
2069 * riscv-tdep.c (riscv_gcc_target_options): New.
2070 (riscv_gnu_triplet_regexp): New.
2071 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2072 set_gdbarch_gnu_triplet_regexp.
2073
fec4e896
CB
20742019-10-16 Christian Biesinger <cbiesinger@google.com>
2075
2076 * Makefile.in: Add xml-builtin.h.
2077 * features/feature_to_c.sh: Add an include for xml-builtin.h
2078 to ensure that the compiler checks that the types match.
2079 * xml-builtin.h: New file.
2080 * xml-support.c (fetch_xml_builtin): Add missing const.
2081 * xml-support.h: Remove declaration of xml_builtins.
2082
d10eccaa
TV
20832019-10-16 Tom de Vries <tdevries@suse.de>
2084
2085 PR tdep/25096
2086 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2087 (amd64_classify_aggregate): ... here.
2088 (amd64_classify_aggregate_field): Handled fiels of nested structs
2089 recursively.
2090
745ff14e
TV
20912019-10-16 Tom de Vries <tdevries@suse.de>
2092
2093 PR tdep/24104
2094 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2095 that handles 'theclass'.
2096
791b7405
AB
20972019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * linespec.c (decode_digits_ordinary): Update comment.
2100 * make-target-delegates: No longer need to handle VEC case.
2101 * memrange.c (normalize_mem_ranges): Update comment.
2102 * namespace.c (add_using_directive): Update comment.
2103 * objc-lang.c (uniquify_strings): Update comment.
2104 * ppc-linux-nat.c (struct thread_points): Update comment.
2105 * probe.h (find_probes_in_objfile): Update comment.
2106 * target.h (enum flash_preserve_mode): Update comment.
2107 * varobj.c (varobj_restrict_range): Update comment.
2108 * varobj.h (varobj_list_children): Update comment.
2109
0dc32745
AB
21102019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * Makefile.in: Remove references to vec.h and vec.c.
2113 * aarch64-tdep.c: No longer include vec.h.
2114 * ada-lang.c: Likewise.
2115 * ada-lang.h: Likewise.
2116 * arm-tdep.c: Likewise.
2117 * ax.h: Likewise.
2118 * breakpoint.h: Likewise.
2119 * charset.c: Likewise.
2120 * cp-support.h: Likewise.
2121 * dtrace-probe.c: Likewise.
2122 * dwarf2read.c: Likewise.
2123 * extension.h: Likewise.
2124 * gdb_bfd.c: Likewise.
2125 * gdbsupport/gdb_vecs.h: Likewise.
2126 * gdbsupport/vec.c: Remove.
2127 * gdbsupport/vec.h: Remove.
2128 * gdbthread.h: Likewise.
2129 * guile/scm-type.c: Likewise.
2130 * inline-frame.c: Likewise.
2131 * machoread.c: Likewise.
2132 * memattr.c: Likewise.
2133 * memrange.h: Likewise.
2134 * namespace.h: Likewise.
2135 * nat/linux-btrace.h: Likewise.
2136 * osdata.c: Likewise.
2137 * parser-defs.h: Likewise.
2138 * progspace.h: Likewise.
2139 * python/py-type.c: Likewise.
2140 * record-btrace.c: Likewise.
2141 * rust-exp.y: Likewise.
2142 * solib-target.c: Likewise.
2143 * stap-probe.c: Likewise.
2144 * target-descriptions.c: Likewise.
2145 * target-memory.c: Likewise.
2146 * target.h: Likewise.
2147 * varobj.c: Likewise.
2148 * varobj.h: Likewise.
2149 * xml-support.h: Likewise.
2150
ae640021
AB
21512019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2154 Update for new std::vector based implementation.
2155 (process_psymtab_comp_unit_reader): Likewise.
2156 (scan_partial_symbols): Likewise.
2157 (recursively_compute_inclusions): Likewise.
2158 (compute_compunit_symtab_includes): Likewise.
2159 (process_imported_unit_die): Likewise.
2160 (queue_and_load_dwo_tu): Likewise.
2161 (follow_die_sig_1): Likewise.
2162 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2163 (typedef dwarf2_per_cu_ptr): Remove.
2164 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2165 function.
2166 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2167 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2168 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2169 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2170 std::vector.
2171
55dfc88f
TT
21722019-10-15 Tom Tromey <tromey@adacore.com>
2173
2174 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2175 TID.
2176
96b49c5e
TT
21772019-10-15 Tom Tromey <tromey@adacore.com>
2178
2179 * windows-nat.c (windows_nat_target::fetch_registers)
2180 (windows_nat_target::store_registers): Rename "pid" to "tid".
2181
953cff56
TT
21822019-10-15 Tom Tromey <tromey@adacore.com>
2183
2184 * gdbarch.h, gdbarch.c: Rebuild.
2185 * gdbarch.sh (gcc_target_options): Change return type to
2186 std::string.
2187 * compile/compile.c (get_args): Update.
2188 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2189 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2190 std::string.
2191 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2192 std::string.
2193 * arch-utils.c (default_gcc_target_options): Return std::string.
2194 * arch-utils.h (default_gcc_target_options): Return std::string.
2195 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2196
81e6b8eb
CB
21972019-10-15 Christian Biesinger <cbiesinger@google.com>
2198
2199 * breakpoint.c (breakpoint_chain): Make static.
2200 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2201 of accessing breakpoint_chain.
2202
95da600f
CB
22032019-10-15 Christian Biesinger <cbiesinger@google.com>
2204
2205 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2206 to a gdb::function_view and return value to bool.
2207 * breakpoint.h (iterate_over_breakpoints): Likewise.
2208 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2209 (pop_dummy_frame): Update.
2210 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2211 (gdbscm_breakpoints): Update.
2212 * python/py-breakpoint.c (build_bp_list): Update.
2213 (gdbpy_breakpoints): Update.
2214 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2215 Update.
2216 (bpfinishpy_handle_stop): Update.
2217 (bpfinishpy_handle_exit): Update.
2218 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2219 (svr4_update_solib_event_breakpoints): Update.
2220
ba18312d
AA
22212019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2222
2223 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2224 when unwrapping single-field structs.
2225
6acc1a0b
SM
22262019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * dwarf2read.c: Remove includes.
2229
284782de
SM
22302019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * ui-out.c (ui_out::call_do_message): Silence
2233 -Wformat-nonliteral warning.
2234
073bbbb0
SM
22352019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2238 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2239 include: readline/tilde.h.
2240
7b9a15e1
CB
22412019-10-12 Christian Biesinger <cbiesinger@google.com>
2242
2243 * remote.c (remote_target::get_trace_status): Remove declaration of
2244 trace_regblock_size.
2245
cc8dee1f
CB
22462019-10-12 Christian Biesinger <cbiesinger@google.com>
2247
2248 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2249 (show_user): Remove declaration of cmdlist.
2250 * cli/cli-cmds.h (max_user_call_depth): Declare.
2251 * cli/cli-script.c (execute_user_command): Remove declaration
2252 of max_user_call_depth.
2253
a83d4ef6
JW
22542019-10-11 Jim Wilson <jimw@sifive.com>
2255
5f93c5a6
JW
2256 * gdbsupport/print-utils.h (pulongest): Fix comment.
2257 (plongest): Likewise.
2258 (phex): Add missing comment, mention leading zeros.
2259 (phex_nz): Add mention of no leading zeros to comment.
2260
a83d4ef6
JW
2261 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2262 plongest instead of unsigned long long cast.
2263
26344e0c
CB
22642019-10-10 Christian Biesinger <cbiesinger@google.com>
2265
2266 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2267 for external_editor_command and gdbtk_test.
2268
c2c440a9
CB
22692019-10-10 Christian Biesinger <cbiesinger@google.com>
2270
2271 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2272 * varobj.c (varobjdebug): Move comment to...
2273 * varobj.h (varobjdebug): ...here, and declare.
2274
a31bff9d
TT
22752019-10-09 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2278 erase_data_content.
2279
7523da63
TT
22802019-10-09 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2283 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2284 * tui/tui-command.c (tui_cmd_window::resize)
2285 (tui_refresh_cmd_win): Update.
2286 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2287 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2288 * tui/tui-data.c (~tui_gen_win_info): Remove.
2289 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2290 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2291 (tui_redisplay_readline, tui_mld_flush)
2292 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2293 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2294 (tui_data_window::erase_data_content)
2295 (tui_data_item_window::rerender)
2296 (tui_data_item_window::refresh_window): Update.
2297 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2298 (box_win, tui_gen_win_info::make_window)
2299 (tui_gen_win_info::make_visible): Update.
2300 (tui_delete_win): Remove.
2301 * tui/tui-winsource.c
2302 (tui_source_window_base::do_erase_source_content): Update.
2303 (tui_show_source_line, tui_source_window_base::update_tab_width)
2304 (tui_source_window_base::update_exec_info): Update.
2305 * tui/tui-data.h (struct curses_deleter): New.
2306 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2307 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2308
a7798e7f
TT
23092019-10-09 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2312
5c45899e
TT
23132019-10-09 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2316 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2317
6d7fd9aa
TT
23182019-10-09 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2321 window height directly.
2322 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2323 declare.
2324 * tui/tui-layout.c (tui_default_win_height): Remove.
2325 (tui_default_win_viewport_height): Remove.
2326
d2dd1084
TT
23272019-10-09 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui.h: Remove comments.
2330
cff32449
TV
23312019-10-09 Tom de Vries <tdevries@suse.de>
2332
2333 * python/lib/gdb/printer/bound_registers.py: Use
2334 '^builtin_type_bound128' as regexp argument for
2335 add_builtin_pretty_printer.
2336
6a25e8a2
CB
23372019-10-09 Christian Biesinger <cbiesinger@google.com>
2338
2339 * guile/guile.c (guile_extension_script_ops): Remove forward
2340 declaration and mark as static.
2341 (guile_script_ops): Likewise.
2342 (extension_language_guile): Move further down in the file so
2343 it can reference the definitions for guile_{extension_,}script_ops.
2344
6d9d6da4
AA
23452019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2346
2347 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2348 except SORTL, DFLTCC, and KDSA.
2349
3abea05d
TT
23502019-10-08 Tom Tromey <tromey@adacore.com>
2351
2352 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2353 (struct safe_symbol_file_add_args): Remove.
2354
dde996e2
TT
23552019-10-08 Tom Tromey <tromey@adacore.com>
2356
2357 * windows-nat.c: Don't include buildsym-legacy.h.
2358
cd6fdaa1
TT
23592019-10-08 Tom Tromey <tromey@adacore.com>
2360
2361 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2362
79bb1944
CB
23632019-10-08 Christian Biesinger <cbiesinger@google.com>
2364
2365 * gdbtypes.c (overload_debug): Move comment to header.
2366 * gdbtypes.h (overload_debug): Declare.
2367 * valops.c: Remove declaration of overload_debug, instead
2368 include gdbtypes.h.
2369
34916edc
CB
23702019-10-08 Christian Biesinger <cbiesinger@google.com>
2371
2372 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2373 through _().
2374 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2375 move comment...
2376 * language.h (lang_frame_mismatch_warn): ... here. Also add
2377 declaration.
2378 * top.c (lang_frame_mismatch_warn): Remove declaration.
2379 (check_frame_language_change): Pass lang_frame_mismatch_warn
2380 through _().
2381
bad5c026
CB
23822019-10-07 Christian Biesinger <cbiesinger@google.com>
2383
2384 * c-lang.h (vtbl_ptr_name): Declare.
2385 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2386 it from the header.
2387 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2388
51f1fdc3
CB
23892019-10-07 Christian Biesinger <cbiesinger@google.com>
2390
2391 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2392 gdb_static_assert.
2393
30d1f018
WP
23942019-10-07 Weimin Pan <weimin.pan@oracle.com>
2395
606813d5
WP
2396 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2397 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2398 * ctfread.c: New file.
2399 * ctfread.h: New file.
2400 * elfread.c: Include ctfread.h.
2401 (struct elfinfo text_p): New member ctfsect.
2402 (elf_locate_sections): Mark CTF section.
2403 (elf_symfile_read): Call elfctf_build_psymtabs.
2404 * Makefile.in (LIBCTF): Add.
2405 (CLIBS): Use it.
2406 (CDEPS): Likewise.
2407 (DIST): Add ctfread.c.
606813d5
WP
2408
24092019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * ctfread.c (struct nextfield): Renamed to ...
2412 (struct ctf_nextfield): ... this.
2413 (struct field_info): Renamed to ...
2414 (strut ctf_field_info): ... this.
2415 (attach_fields_to_type): Update for renamed structures.
2416 (ctf_add_member_cb): Likewise.
2417 (ctf_add_enum_member_cb): Likewise.
2418 (process_struct_members): Likewise.
2419 (process_enum_type): Likewise.
30d1f018 2420
518fe38c
WP
24212019-10-07 Weimin Pan <weimin.pan@oracle.com>
2422
2423 * tracectf.h: Rename, was ctf.h.
2424 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2425 * tracefile.c: Likewise.
2426 * tracepoint.c: Remove unused include ctf.h.
2427 * mi/mi-main.c: Likewise.
2428 * Makefile.in Replace ctf.c with tracectf.c.
2429
225f296a
JB
24302019-10-06 Joel Brobecker <brobecker@adacore.com>
2431
2432 * version.in: Change version number to "9.0.50.DATE-git".
2433
77c2dba3
TT
24342019-10-03 Tom Tromey <tom@tromey.com>
2435
2436 PR rust/24976:
2437 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2438
179aed7f
AB
24392019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2442 cp_search_name_hash.
2443 * NEWS: Add entry about nested function support.
2444
0a4b0913
AB
24452019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2446 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2449 for nested static variables when searchin VAR_DOMAIN.
2450 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2451 global scope, update comment.
2452 (add_partial_subprogram): Call add_partial_subprogram recursively
2453 for nested subroutines when processinng Fortran.
2454 (load_partial_dies): Process the child entities of a subprogram
2455 when processing Fortran.
2456 (partial_die_parent_scope): Handle building scope
2457 for Fortran nested functions.
2458 (process_die): Record that nested functions have a scope.
2459 (new_symbol): Always record Fortran subprograms on the global
2460 symbol list.
2461 (determine_prefix): How to build the prefix for Fortran
2462 subprograms.
2463
d8c06f22
AB
24642019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2467 have just sent the thread a SIGSTOP and are waiting for it to
2468 arrive.
2469
a8b3b8e9
AB
24702019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * btrace.c (btrace_add_pc): Remove whitespace before the template
2473 parameter in 'std::vector <...>'.
2474 (parse_xml_btrace_block): Likewise.
2475 (btrace_maint_decode_pt): Likewise.
2476 (btrace_maint_update_packets): Likewise.
2477 (btrace_maint_print_packets): Likewise.
2478 * btrace.h (struct btrace_maint_info): Likewise.
2479 * dwarf2read.c (struct type_unit_group): Likewise.
2480 (build_type_psymtabs_reader): Likewise.
2481 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2482 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2483 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2484
4d825eab
TV
24852019-10-03 Tom de Vries <tdevries@suse.de>
2486
2487 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2488 the first line of the help text for set/show style metadata.
2489
80fd2826
TT
24902019-10-02 Tom Tromey <tromey@adacore.com>
2491
2492 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2493 * gdbsupport/common-inferior.c: New file.
2494 * infcmd.c (startup_with_shell): Don't define.
2495 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2496 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2497 * inferior.h (startup_with_shell): Don't declare.
2498
70054538
CB
24992019-10-02 Christian Biesinger <cbiesinger@google.com>
2500
2501 * gdbsupport/gdb_assert.h: Include errors.h.
2502 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2503
37f6a7f4
TT
25042019-10-02 Tom Tromey <tromey@adacore.com>
2505
2506 * NEWS: Add $_ada_exception entry.
2507 * ada-lang.c (struct ada_catchpoint): Add constructor.
2508 <m_kind>: New member.
2509 (allocate_location_exception, re_set_exception): Remove
2510 "ex" parameter.
2511 (should_stop_exception): Compute $_ada_exception.
2512 (check_status_exception, print_it_exception)
2513 (print_one_exception, print_mention_exception): Remove
2514 "ex" parameter.
2515 (allocate_location_catch_exception, re_set_catch_exception)
2516 (check_status_exception, print_it_catch_exception)
2517 (print_one_catch_exception, print_mention_catch_exception)
2518 (print_recreate_catch_exception)
2519 (allocate_location_catch_exception_unhandled)
2520 (re_set_catch_exception_unhandled)
2521 (check_status_exception, print_it_catch_exception_unhandled)
2522 (print_one_catch_exception_unhandled)
2523 (print_mention_catch_exception_unhandled)
2524 (print_recreate_catch_exception_unhandled)
2525 (allocate_location_catch_assert, re_set_catch_assert)
2526 (check_status_assert, print_it_catch_assert)
2527 (print_one_catch_assert, print_mention_catch_assert)
2528 (print_recreate_catch_assert)
2529 (allocate_location_catch_handlers, re_set_catch_handlers)
2530 (check_status_handlers, print_it_catch_handlers)
2531 (print_one_catch_handlers, print_mention_catch_handlers)
2532 (print_recreate_catch_handlers): Remove.
2533 (create_ada_exception_catchpoint): Update.
2534 (initialize_ada_catchpoint_ops): Update.
2535
fccf9de1
TT
25362019-10-02 Tom Tromey <tromey@adacore.com>
2537
2538 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2539 (create_excep_cond_exprs): Simplify exception string computation.
2540 (ada_exception_catchpoint_cond_string): Likewise.
2541
4b610737
TT
25422019-10-02 Tom Tromey <tromey@adacore.com>
2543
2544 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2545 * ada-lang.c (lesseq_defined_than): Handle
2546 LOC_STATIC.
2547 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2548 parameter.
2549 (dwarf2_has_info): Likewise.
2550 (new_symbol): Set maybe_copied on symbol when
2551 appropriate.
2552 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2553 parameter.
2554 <can_copy>: New member.
2555 * elfread.c (record_minimal_symbol): Set maybe_copied
2556 on symbol when appropriate.
2557 (elf_symfile_read): Update call to dwarf2_has_info.
2558 * minsyms.c (lookup_minimal_symbol_linkage): New
2559 function.
2560 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2561 * symtab.c (get_symbol_address, get_msymbol_address):
2562 New functions.
2563 * symtab.h (get_symbol_address, get_msymbol_address):
2564 Declare.
2565 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2566 maybe_copied.
2567 (struct symbol, struct minimal_symbol) <maybe_copied>:
2568 New member.
2569
1dd58850
TT
25702019-10-02 Tom Tromey <tromey@adacore.com>
2571
2572 * source.c (struct current_source_location): New.
2573 (current_source_key): New global.
2574 (current_source_symtab, current_source_line)
2575 (current_source_pspace): Remove.
2576 (get_source_location): New function.
2577 (get_current_source_symtab_and_line)
2578 (set_default_source_symtab_and_line)
2579 (set_current_source_symtab_and_line)
2580 (clear_current_source_symtab_and_line, select_source_symtab)
2581 (info_source_command, print_source_lines_base)
2582 (info_line_command, search_command_helper, _initialize_source):
2583 Update.
2584
5c281dbb
TT
25852019-10-02 Tom Tromey <tromey@adacore.com>
2586
2587 * source.c (select_source_symtab): Don't call
2588 decode_line_with_current_source.
2589
d3d32391
AB
25902019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * symtab.c (lookup_global_symbol): Search global block.
2593
38583298
TT
25942019-10-02 Tom Tromey <tromey@adacore.com>
2595
2596 * coffread.c (process_coff_symbol): Update.
2597 * dwarf2read.c (var_decode_location, new_symbol): Update.
2598 * mdebugread.c (parse_symbol): Update.
2599 * objfiles.c (relocate_one_symbol): Update.
2600 * stabsread.c (define_symbol, fix_common_block)
2601 (scan_file_globals): Update.
2602 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2603 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2604 * xcoffread.c (process_xcoff_symbol): Update.
2605
9344c18f
AA
26062019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2607
2608 * MAINTAINERS: Update my email address.
2609
df07e2c7
AB
26102019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2613 std::vector.
2614 (build_type_psymtabs_reader): Update for std::vector.
2615 (build_type_psymtab_dependencies): Likewise.
2616 * dwarf2read.h: Remove use of DEF_VEC_P.
2617 (typedef sig_type_ptr): Delete.
2618
554ac434
AB
26192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2622 to std::vector.
2623 (btrace_maint_decode_pt): Likewise, and move allocation of the
2624 vector outside of the loop.
2625 (btrace_maint_update_packets): Update to handle change from VEC to
2626 std::vector.
2627 (btrace_maint_print_packets): Likewise.
2628 (maint_info_btrace_cmd): Likewise.
2629 * btrace.h: Remove use of DEF_VEC_O.
2630 (typedef btrace_pt_packet_s): Delete.
2631 (struct btrace_maint_info) <packets>: Change fromm VEC to
2632 std::vector.
2633 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2634
46f29a9a
AB
26352019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2638 make accesses into the vector constant references.
2639 (btrace_add_pc): Update for std::vector.
2640 (btrace_stitch_bts): Likewise.
2641 (parse_xml_btrace_block): Likewise.
2642 (btrace_maint_update_packets): Likewise.
2643 (btrace_maint_print_packets): Likewise.
2644 (maint_info_btrace_cmd): Likewise.
2645 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2646 std::vector.
2647 (btrace_data::empty): Likewise.
2648 (btrace_data_append): Likewise.
2649 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2650 (typedef btrace_block_s): Delete.
2651 (struct btrace_block): Add constructor.
2652 (struct btrace_data_bts) <blocks>: Change to std::vector.
2653 * nat/linux-btrace.c (perf_event_read_bts): Update for
2654 std::vector.
2655 (linux_read_bts): Likewise.
2656
d770d56f
TT
26572019-10-01 Tom Tromey <tom@tromey.com>
2658
2659 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2660
9d636d67
TT
26612019-10-01 Tom Tromey <tom@tromey.com>
2662
2663 * stack.c (print_frame, info_frame_command_core): Use
2664 styled_string.
2665 * linux-thread-db.c (try_thread_db_load_1)
2666 (try_thread_db_load_from_pdir_1): Use styled_string.
2667 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2668 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2669 (maybe_print_unsupported_script_warning)
2670 (maybe_print_script_not_found_warning): Use styled_string.
2671 * ada-lang.c (user_select_syms): Use styled_string.
2672
7f6aba03
TT
26732019-10-01 Tom Tromey <tom@tromey.com>
2674
2675 * p-lang.c (pascal_printstr): Use metadata style.
2676 * value.c (show_convenience): Use metadata style.
2677 * valprint.c (valprint_check_validity, val_print_optimized_out)
2678 (val_print_not_saved, val_print_unavailable)
2679 (val_print_invalid_address, generic_val_print, val_print)
2680 (value_check_printable, val_print_array_elements): Use metadata
2681 style.
2682 * ui-out.h (class ui_out) <field_fmt>: New overload.
2683 <do_field_fmt>: Add style parameter.
2684 * ui-out.c (ui_out::field_fmt): New overload.
2685 * typeprint.c (type_print_unknown_return_type)
2686 (val_print_not_allocated, val_print_not_associated): Use metadata
2687 style.
2688 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2689 parameter.
2690 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2691 * tracepoint.c (tvariables_info_1): Use metadata style.
2692 * stack.c (print_frame_arg, print_frame_info, print_frame)
2693 (info_frame_command_core): Use metadata style.
2694 * skip.c (info_skip_command): Use metadata style.
2695 * rust-lang.c (rust_print_enum): Use metadata style.
2696 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2697 metadata style.
2698 * python/py-framefilter.c (py_print_single_arg): Use metadata
2699 style.
2700 * printcmd.c (do_one_display, print_variable_and_value): Use
2701 metadata style.
2702 * p-valprint.c (pascal_val_print)
2703 (pascal_object_print_value_fields): Use metadata style.
2704 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2705 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2706 parameter.
2707 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2708 * m2-valprint.c (m2_print_long_set): Use metadata style.
2709 * m2-typeprint.c (m2_print_type): Use metadata style.
2710 * infcmd.c (print_return_value_1): Use metadata style.
2711 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2712 * f-valprint.c (info_common_command_for_block): Use metadata
2713 style.
2714 * f-typeprint.c (f_type_print_base): Use metadata style.
2715 * expprint.c (print_subexp_standard): Use metadata style.
2716 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2717 * cli/cli-style.h (class cli_style_option): Add constructor.
2718 (metadata_style): Declare.
2719 * cli/cli-style.c (metadata_style): New global.
2720 (_initialize_cli_style): Register metadata style.
2721 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2722 parameter.
2723 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2724 * c-typeprint.c (c_type_print_base_struct_union)
2725 (c_type_print_base_1): Use metadata style.
2726 * breakpoint.c (watchpoint_value_print)
2727 (print_one_breakpoint_location): Use metadata style.
2728 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2729 style.
2730 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2731 style.
2732 * ada-valprint.c (val_print_packed_array_elements, printstr)
2733 (print_field_values, ada_val_print_ref, ada_val_print): Use
2734 metadata style.
2735 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2736 style.
2737 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2738 style.
2739 * ada-lang.c (user_select_syms): Use metadata style.
2740
14309bb6
TT
27412019-10-01 Tom Tromey <tom@tromey.com>
2742
2743 * cli/cli-cmds.c (pwd_command): Style output.
2744
6a831f06
PA
27452019-10-01 Pedro Alves <palves@redhat.com>
2746 Tom Tromey <tom@tromey.com>
2747
2748 * symtab.c (print_symbol_info): Use %ps.
2749 (print_msymbol_info): Use %ps.
2750 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2751 * printcmd.c (print_variable_and_value): Use %ps.
2752 * macrocmd.c (show_pp_source_pos): Use %ps.
2753 * infrun.c (print_exited_reason): Use ui_out::message.
2754 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2755 (describe_other_breakpoints): Use ui_out::message and new
2756 formats.
2757 (say_where): Use new formats.
2758 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2759 and new formats.
2760
2a3c1174
PA
27612019-10-01 Pedro Alves <palves@redhat.com>
2762 Tom Tromey <tom@tromey.com>
2763
2764 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2765 (test_gdb_formats): New function.
2766 (run_tests): Call it.
2767 (test_format_specifier): Update.
2768 * utils.h (fputs_filtered): Update comment.
2769 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2770 (fputs_styled_unfiltered): Declare.
2771 * utils.c (fputs_styled_unfiltered): New function.
2772 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2773 (vfprintf_filtered): Update.
2774 (vfprintf_unfiltered, vprintf_filtered): Update.
2775 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2776 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2777 disallow_ui_out_field>: New constants.
2778 (enum class field_kind): New.
2779 (struct base_field_s, struct signed_field_s): New.
2780 (signed_field): New function.
2781 (struct string_field_s): New.
2782 (string_field): New function.
2783 (struct styled_string_s): New.
2784 (styled_string): New function.
2785 (class ui_out) <message>: Add comment.
2786 <vmessage, call_do_message>: New methods.
2787 <do_message>: Add style parameter.
2788 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2789 methods.
2790 (ui_out::message): Rewrite.
2791 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2792 parameter.
2793 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2794 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2795 gdb_extensions parameter.
2796 (class format_piece): Add parameter to constructor.
2797 (n_int_args): New field.
2798 * gdbsupport/format.c (format_pieces::format_pieces): Add
2799 gdb_extensions parameter. Handle '*'.
2800 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2801 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2802 vfprintf_styled_no_gdbfmt.
2803 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2804 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2805 unfiltered output.
2806 * ui-style.h (struct ui_file_style) <ptr>: New method.
2807
0dfe5bfb
TT
28082019-10-01 Tom Tromey <tom@tromey.com>
2809
2810 * unittests/format_pieces-selftests.c: Update. Add final format.
2811 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2812 empty literal pieces.
2813
e43b10e1
TT
28142019-10-01 Tom Tromey <tom@tromey.com>
2815
2816 * ui-out.h (enum class ui_out_style_kind): Remove.
2817 (class ui_out) <field_string, field_stsream, do_field_string>:
2818 Change type of "style".
2819 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2820 (ui_out::field_string): Update.
2821 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2822 of "style".
2823 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2824 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2825 * stack.c (print_frame_arg, print_frame_info, print_frame):
2826 Update.
2827 * source.c (print_source_lines_base): Update.
2828 * solib.c (info_sharedlibrary_command): Update.
2829 * skip.c (info_skip_command): Update.
2830 * record-btrace.c (btrace_call_history_src_line)
2831 (btrace_call_history): Update.
2832 * python/py-framefilter.c (py_print_frame): Update.
2833 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2834 "style".
2835 * mi/mi-out.c (mi_ui_out::do_table_header)
2836 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2837 (mi_ui_out::do_field_string): Update.
2838 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2839 Update.
2840 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2841 "style".
2842 * cli-out.c (cli_ui_out::do_table_header)
2843 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2844 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2845 (cli_ui_out::do_field_fmt): Update.
2846 * breakpoint.c (print_breakpoint_location): Update.
2847 (update_static_tracepoint): Update.
2848
cd7c32c3
PW
28492019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2850
2851 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2852 conversion of gdb_datadir.
2853 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2854 remove not needed c_str ().
2855
8fe0f950
AT
28562019-09-30 Ali Tamur <tamur@google.com>
2857
2858 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2859 (dwarf2_string_attr): Likewise.
2860
5f48f8f3
AT
28612019-09-30 Ali Tamur <tamur@google.com>
2862
2863 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2864 (process_full_type_unit): Likewise.
2865 (dump_die_shallow): Likewise.
2866 (cu_debug_loc_section): Likewise.
2867
6fb08628
CB
28682019-09-28 Christian Biesinger <cbiesinger@google.com>
2869
2870 * minsyms.c (compare_minimal_symbols): Rename to...
2871 (minimal_symbol_is_less_than): ...this, and adjust to STL
2872 conventions (return bool, take arguments as references)
2873 (minimal_symbol_reader::install): Call std::sort instead
2874 of qsort.
2875
c7ee338a
CB
28762019-09-29 Christian Biesinger <cbiesinger@google.com>
2877
2878 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2879 hash and why.
2880 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2881 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2882
703a86c2
SM
28832019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2886 * psympriv.h (add_psymbol_to_list): Move comment here and update
2887 it.
2888
0df0352a
TV
28892019-09-29 Tom de Vries <tdevries@suse.de>
2890
2891 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2892 Use $tmpdir/$(basename "$output_file").dwz instead of
2893 "${output_file}.dwz".
2894
ad75efa6
SM
28952019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 PR gdb/25045
2898 * hppa-linux-nat.c: Include gdbarch.h.
2899
ececd218
CB
29002019-09-26 Christian Biesinger <cbiesinger@google.com>
2901
2902 * blockframe.c (find_pc_partial_function): Change return type to bool.
2903 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2904 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2905 (stub_gnu_ifunc_resolve_name): Likewise.
2906 * symtab.c (compare_filenames_for_search): Likewise.
2907 (compare_glob_filenames_for_search): Likewise.
2908 (matching_obj_sections): Likewise.
2909 (symbol_matches_domain): Likewise.
2910 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2911 (find_line_pc): Change return type to bool.
2912 (find_line_pc_range): Likewise.
2913 (producer_is_realview): Likewise.
2914 * symtab.h (symbol_matches_domain): Likewise.
2915 (find_pc_partial_function): Likewise.
2916 (find_pc_line_pc_range): Likewise.
2917 (in_gnu_ifunc_stub): Likewise.
2918 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2919 (find_line_pc): Likewise.
2920 (find_line_pc_range): Likewise.
2921 (matching_obj_sections): Likewise.
2922 (find_line_symtab): Change out parameter to bool.
2923 (producer_is_realview): Change return type to bool.
2924 (compare_filenames_for_search): Likewise.
2925 (compare_glob_filenames_for_search): Likewise.
2926
27a900b8
TT
29272019-09-26 Tom Tromey <tom@tromey.com>
2928
2929 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2930 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2931 * gdb_usleep.h: Remove.
2932 * gdb_usleep.c: Remove.
2933 * utils.c: Don't include gdb_usleep.h.
2934
5d63b30a
TT
29352019-09-26 Tom Tromey <tromey@adacore.com>
2936
2937 * python/py-type.c (type_to_type_object): Call check_typedef
2938 for stub types.
2939
12904d37
TT
29402019-09-26 Tom Tromey <tom@tromey.com>
2941
2942 * utils.h (initialize_utils): Don't declare.
2943 * top.c (gdb_init): Don't call initialize_utils.
2944 * utils.c (initialize_utils): Remove. Move contents...
2945 (_initialize_utils): ... here.
2946
858f25f0
TT
29472019-09-25 Tom Tromey <tom@tromey.com>
2948
2949 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2950 * utils.h (make_hex_string): Don't declare.
2951 * utils.c (make_hex_string): Remove.
2952
3d435220
TV
29532019-09-24 Tom de Vries <tdevries@suse.de>
2954
2955 PR gdb/23815
2956 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2957 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2958
ddd44b70
DD
29592019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2960
2961 * NEWS: Mention new simulator port for PRU.
2962
f945dedf
CB
29632019-09-23 Christian Biesinger <cbiesinger@google.com>
2964
2965 * ada-exp.y (write_object_remaining): Update.
2966 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2967 and eliminate the static buffer.
2968 (ada_decode_symbol): Update.
2969 (ada_la_decode): Update.
2970 (ada_sniff_from_mangled_name): Update.
2971 (is_valid_name_for_wild_match): Update.
2972 (ada_lookup_name_info::matches): Update and simplify.
2973 (name_matches_regex): Update.
2974 (ada_add_global_exceptions): Update.
2975 * ada-lang.h (ada_decode): Update signature.
2976 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2977 * dwarf-index-write.c (debug_names::insert): Update.
2978
7ab78ccb
SM
29792019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2980
2981 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2982 formatting.
2983
9252448b
SM
29842019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2987 Change "nonzero" to "true" in documentation.
2988
626ca2c0
CB
29892019-09-20 Christian Biesinger <cbiesinger@google.com>
2990
2991 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2992 (_initialize_darwin_solib): Don't set
2993 darwin_so_ops.lookup_lib_global_symbol.
2994 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2995 set_gdbarch_iterate_over_objfiles_in_search_order.
2996 (elf_lookup_lib_symbol): Rename to...
2997 (svr4_iterate_over_objfiles_in_search_order): this, and update
2998 to iterate semantics.
2999 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3000 * solib.c (solib_global_lookup): Remove.
3001 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3002 (solib_global_lookup): Remove.
3003 * symtab.c (lookup_global_or_static_symbol): Remove call to
3004 solib_global_lookup.
3005
5a3a0d63
JB
30062019-09-20 Joel Brobecker <brobecker@adacore.com>
3007
3008 * NEWS: Move entries about default MI version now being
3009 version 3, and about the GDB/MI fix for multi-location
3010 breakpoints to the "since GDB 8.3" section.
3011
ffea1427
JB
30122019-09-20 Joel Brobecker <brobecker@adacore.com>
3013
3014 GDB 8.3.1 released.
3015
abf516c6
UW
30162019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3017
3018 * NEWS: Mention that Cell/B.E. debugging support was removed.
3019 * MAINTAINERS: Remove spu target.
3020
3021 * config/djgpp/fnchange.lst: Remove entries for removed files.
3022
3023 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3024 spu-multiarch.o, and spu-tdep.o.
3025 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3026 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3027 spu-multiarch.c, and spu-tdep.c.
3028 * spu-linux-nat.c: Remove file.
3029 * spu-multiarch.c: Remove file.
3030 * spu-tdep.c: Remove file.
3031 * spu-tdep.h: Remove file.
3032 * solib-spu.c: Remove file.
3033 * solib-spu.h: Remove file.
3034
3035 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3036 * configure.nat (spu-linux): Remove.
3037 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3038 solib-multiarch.o from gdb_target_obs.
3039 (spu*-*-*): Remove.
3040
3041 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3042 feature flag.
3043 (ppc_linux_no_features): Update.
3044 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3045 Cell/B.E. support.
3046 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3047 (tdesc_powerpc_cell64l): Likewise.
3048 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3049 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3050 Cell/B.E. support.
3051 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3052 Do not include "features/rs6000/powerpc-cell32l.c" or
3053 "features/rs6000/powerpc-cell64l.c".
3054 (ppc_linux_spu_section): Remove.
3055 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3056 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3057 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3058 (ppc_linux_spe_context_lookup): Remove.
3059 (ppc_linux_spe_context_inferior_created): Remove.
3060 (ppc_linux_spe_context_solib_loaded): Remove.
3061 (ppc_linux_spe_context_solib_unloaded): Remove.
3062 (ppc_linux_spe_context): Remove.
3063 (struct ppu2spu_cache): Remove.
3064 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3065 (struct ppu2spu_data): Remove.
3066 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3067 ppu2spu_unwind): Remove.
3068 (ppc_linux_init_abi): Remove Cell/B.E. support.
3069 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3070
3071 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3072 (rs6000/powerpc-cell64l-expedite): Likewise
3073 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3074 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3075 rs6000/powerpc-cell64l.xml.
3076 * features/rs6000/powerpc-cell32l.xml: Remove.
3077 * features/rs6000/powerpc-cell64l.xml: Likewise.
3078 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3079 * features/rs6000/powerpc-cell64l.c: Likewise.
3080 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3081 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3082 * regformats/reg-spu.dat: Remove.
3083
3084 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3085 * corelow.c (struct spuid_list): Remove.
3086 (add_to_spuid_list): Remove.
3087 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3088 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3089 (remote_protocol_features): Remove associated entries.
3090 (_initialize_remote): No longer initialize them.
3091 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3092 * linux-nat.c (SPUFS_MAGIC): Remove.
3093 (linux_proc_xfer_spu): Remove.
3094 (spu_enumerate_spu_ids): Remove.
3095 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3096 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3097 (linux_make_corefile_notes): No longer call it.
3098
3099 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3100 (cooked_write_test): Likewise.
3101
78e8cb91
TT
31022019-09-20 Tom Tromey <tom@tromey.com>
3103
3104 * NEWS: Mention case-sensitivity of TUI commands.
3105 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3106 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3107 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3108
f074b67e
TT
31092019-09-20 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-source.c (tui_source_window::set_contents): Use
3112 make_unique_xstrdup.
3113 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3114 make_unique_xstrdup.
3115
63c4bf19
TT
31162019-09-20 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-data.c: Remove separator comments.
3119 * tui/tui-layout.c: Remove separator comments.
3120 * tui/tui-win.c: Remove separator comments.
3121 * tui/tui-wingeneral.c: Remove separator comments.
3122
43df9b2f
TT
31232019-09-20 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui.h (strcat_to_buf): Don't declare.
3126 * tui/tui.c (strcat_to_buf): Remove.
3127
7226433c
TT
31282019-09-20 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3131 from "fullname".
3132 * tui/tui-source.c (tui_source_window::set_contents)
3133 (tui_source_window::location_matches_p)
3134 (tui_source_window::maybe_update): Update.
3135
80df3337
TT
31362019-09-20 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3139 Update.
3140 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3141 prefix.
3142 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3143 (tui_data_window::line_from_reg_element_no)
3144 (tui_data_window::first_reg_element_no_inline)
3145 (tui_data_window::show_registers)
3146 (tui_data_window::show_register_group)
3147 (tui_data_window::display_registers_from)
3148 (tui_data_window::display_registers_from_line)
3149 (tui_data_window::first_data_item_displayed)
3150 (tui_data_window::delete_data_content_windows)
3151 (tui_data_window::erase_data_content)
3152 (tui_data_window::do_scroll_vertical)
3153 (tui_data_window::refresh_window)
3154 (tui_data_window::check_register_values): Update.
3155
9923f347
TT
31562019-09-20 Tom Tromey <tom@tromey.com>
3157
3158 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3159 (struct tui_locator_window) <full_name, proc_name>: Now
3160 std::string.
3161 * tui/tui-stack.c (tui_locator_window::make_status_line)
3162 (tui_locator_window::set_locator_fullname)
3163 (tui_locator_window::set_locator_info): Update.
3164 * tui/tui-source.c (tui_source_window::set_contents)
3165 (tui_source_window::showing_source_p): Update.
3166
b76251ab
TT
31672019-09-20 Tom Tromey <tom@tromey.com>
3168
3169 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3170 Don't call tui_locator_win_info_ptr.
3171
0891be08
TT
31722019-09-20 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3175
1b935acf
TT
31762019-09-20 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3179 height for locator.
3180 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3181 * tui/tui-layout.c (show_source_disasm_command, show_data)
3182 (show_source_or_disasm_and_command): Use 1 as height for locator.
3183
9abd8a65
TT
31842019-09-20 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui.c (tui_enable): Update.
3187 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3188 Update.
3189 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3190 Update.
3191 * tui/tui-data.c (win_resized): Now bool.
3192 (tui_win_resized): Return bool.
3193 (tui_set_win_resized_to): Accept a bool.
3194
b5457826
TT
31952019-09-20 Tom Tromey <tom@tromey.com>
3196
3197 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3198 Change type of "refresh_values_only".
3199 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3200 type of "refresh_values_only".
3201
6b915f7d
TT
32022019-09-20 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3205 std::string.
3206 (tui_disassemble): Add "pos" parameter.
3207 (tui_disasm_window::set_contents): Simplify.
3208
2ad52f6f
TT
32092019-09-20 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <show_source_content>: Now private.
3213 * tui/tui-winsource.c
3214 (tui_source_window_base::show_source_content): Don't handle empty
3215 content case.
3216
b3b1bde6
TT
32172019-09-20 Tom Tromey <tom@tromey.com>
3218
3219 * tui/tui-layout.c (show_source_disasm_command)
3220 (show_source_or_disasm_and_command): Don't call
3221 show_source_content.
3222
71a25ed2
TT
32232019-09-20 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3226 Declare.
3227 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3228 from tui_make_status_line.
3229 (tui_locator_window::rerender): Update.
3230
f8532154
TT
32312019-09-20 Tom Tromey <tom@tromey.com>
3232
3233 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3234 (tui_locator_window::rerender): Update.
3235
2d81b349
TT
32362019-09-20 Tom Tromey <tom@tromey.com>
3237
3238 * tui/tui-winsource.h (struct tui_source_window_base)
3239 <~tui_source_window_base>: Don't declare.
3240 <fullname>: Remove.
3241 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3242 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3243 member.
3244 * tui/tui-source.c (tui_source_window::set_contents): Update.
3245 (tui_source_window::location_matches_p)
3246 (tui_source_window::maybe_update): Update.
3247
f14bec58
TT
32482019-09-20 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-winsource.h (~tui_source_element): Remove.
3251 (tui_source_element): Update.
3252 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3253 * tui/tui-winsource.c (tui_show_source_line): Update.
3254 * tui/tui-source.c (tui_source_window::set_contents): Update.
3255 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3256
78d5933a
TT
32572019-09-20 Tom Tromey <tom@tromey.com>
3258
3259 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3260 declare.
3261 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3262 tui_clear_source_windows_detail.
3263 * tui/tui-winsource.h (struct tui_source_window_base)
3264 <clear_detail>: Don't declare.
3265 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3266 Remove.
3267 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3268
d4207696
TT
32692019-09-20 Tom Tromey <tromey@adacore.com>
3270
3271 PR ada/24919:
3272 * block.c (contained_in): Fix final return value.
3273
00f93c44
AM
32742019-09-20 Alan Modra <amodra@gmail.com>
3275
3276 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3277 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3278 (read_indirect_string_from_dwz): Use bfd accessor.
3279 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3280 * machoread.c (macho_symfile_read_all_oso): Likewise.
3281 * solib.c (solib_bfd_open): Likewise.
3282
e4153ae6
CB
32832019-09-19 Christian Biesinger <cbiesinger@google.com>
3284
3285 * eval.c: Move declaration of overload_resolution to...
3286 * value.h: ...here.
3287
c7ae7675
CB
32882019-09-19 Christian Biesinger <cbiesinger@google.com>
3289
3290 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3291 * arm-linux-tdep.c: Likewise.
3292 * arm-nbsd-nat.c: Likewise.
3293 * arm-tdep.h: Declare arm_apcs_32.
3294 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3295
e86f08d2
CB
32962019-09-19 Christian Biesinger <cbiesinger@google.com>
3297
3298 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3299 * dwarf2read.h: Declare dwarf_always_disassemble.
3300
f64e2f40
TV
33012019-09-19 Tom de Vries <tdevries@suse.de>
3302
3303 PR gdb/25009
3304 * source-cache.c (source_cache::ensure): Catch exception thrown during
3305 construction of the highlighter.
3306
fd361982
AM
33072019-09-18 Alan Modra <amodra@gmail.com>
3308
3309 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3310 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3311 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3312 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3313 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3314 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3315 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3316 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3317 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3318 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3319 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3320 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3321 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3322 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3323 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3324 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3325 * mi/mi-interp.c: Update throughout for bfd section macro and
3326 function changes.
3327 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3328 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3329
11061048
TT
33302019-09-18 Tom Tromey <tom@tromey.com>
3331
3332 * NEWS: Add entry.
3333 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3334 call rl_initialize.
3335 (tui_enable): Do not call rl_initialize.
3336
7a27b85f
CG
33372019-09-18 Christian Groessler <chris@groessler.org>
3338
3339 * alpha-linux-nat.c: Include gdbarch.h.
3340
f64eea3a
SM
33412019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * ui-file.c: Include cli/cli-style.h.
3344 (term_cli_styling): Remove cli_styling declaration.
3345
e6f7f6d1
AM
33462019-09-18 Alan Modra <amodra@gmail.com>
3347
3348 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3349 to bfd_asymbol_section.
3350
1d38e9d1
AM
33512019-09-18 Alan Modra <amodra@gmail.com>
3352
3353 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3354 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3355 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3356
90d92a63
AM
33572019-09-18 Alan Modra <amodra@gmail.com>
3358
3359 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3360 * spu-linux-nat.c (spu_bfd_open): Likewise.
3361
a3d181d2
CB
33622019-09-18 Christian Biesinger <cbiesinger@google.com>
3363
3364 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3365 to bool to match definition in dwarf2read.c.
3366
491144b5
CB
33672019-09-17 Christian Biesinger <cbiesinger@google.com>
3368
3369 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3370 (print_signatures): Likewise.
3371 (trust_pad_over_xvs): Likewise.
3372 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3373 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3374 * arm-linux-nat.c (arm_apcs_32): Likewise.
3375 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3376 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3377 * arm-tdep.c (arm_debug): Likewise.
3378 (arm_apcs_32): Likewise.
3379 * auto-load.c (debug_auto_load): Likewise.
3380 (auto_load_gdb_scripts): Likewise.
3381 (global_auto_load): Likewise.
3382 (auto_load_local_gdbinit): Likewise.
3383 (auto_load_local_gdbinit_loaded): Likewise.
3384 * auto-load.h (global_auto_load): Likewise.
3385 (auto_load_local_gdbinit): Likewise.
3386 (auto_load_local_gdbinit_loaded): Likewise.
3387 * breakpoint.c (disconnected_dprintf): Likewise.
3388 (breakpoint_proceeded): Likewise.
3389 (automatic_hardware_breakpoints): Likewise.
3390 (always_inserted_mode): Likewise.
3391 (target_exact_watchpoints): Likewise.
3392 (_initialize_breakpoint): Update.
3393 * breakpoint.h (target_exact_watchpoints): Change to bool.
3394 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3395 * cli/cli-cmds.c (trace_commands): Likewise.
3396 * cli/cli-cmds.h (trace_commands): Likewise.
3397 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3398 to bool*.
3399 * cli/cli-logging.c (logging_overwrite): Change to bool.
3400 (logging_redirect): Likewise.
3401 (debug_redirect): Likewise.
3402 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3403 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3404 to bool.
3405 <boolean_option_def>: Update.
3406 (struct flag_option_def): Change default type of Context to bool
3407 from int.
3408 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3409 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3410 (get_setshow_command_value_string): Likewise.
3411 * cli/cli-style.c (cli_styling): Change to bool.
3412 (source_styling): Likewise.
3413 * cli/cli-style.h (source_styling): Likewise.
3414 (cli_styling): Likewise.
3415 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3416 to bool.
3417 * command.h (var_types): Update comment.
3418 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3419 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3420 bool.
3421 (debug_compile_cplus_scopes): Likewise.
3422 * compile/compile-internal.h (compile_debug): Likewise.
3423 * compile/compile.c (compile_debug): Likewise.
3424 (struct compile_options) <raw>: Likewise.
3425 * cp-support.c (catch_demangler_crashes): Likewise.
3426 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3427 (usr_cmd_cris_dwarf2_cfi): Likewise.
3428 * csky-tdep.c (csky_debug): Likewise.
3429 * darwin-nat.c (enable_mach_exceptions): Likewise.
3430 * dcache.c (dcache_enabled_p): Likewise.
3431 * defs.h (info_verbose): Likewise.
3432 * demangle.c (demangle): Likewise.
3433 (asm_demangle): Likewise.
3434 * dwarf-index-cache.c (debug_index_cache): Likewise.
3435 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3436 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3437 * dwarf2read.c (check_physname): Likewise.
3438 (use_deprecated_index_sections): Likewise.
3439 (dwarf_always_disassemble): Likewise.
3440 * eval.c (overload_resolution): Likewise.
3441 * event-top.c (set_editing_cmd_var): Likewise.
3442 (exec_done_display_p): Likewise.
3443 * event-top.h (set_editing_cmd_var): Likewise.
3444 (exec_done_display_p): Likewise.
3445 * exec.c (write_files): Likewise.
3446 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3447 (debug_fbsd_nat): Likewise.
3448 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3449 Likewise.
3450 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3451 <backtrace_past_entry> Likewise.
3452 * gdb-demangle.h (demangle): Likewise.
3453 (asm_demangle): Likewise.
3454 * gdb_bfd.c (bfd_sharing): Likewise.
3455 * gdbcore.h (write_files): Likewise.
3456 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3457 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3458 * gdbthread.h (print_thread_events): Likewise.
3459 * gdbtypes.c (opaque_type_resolution): Likewise.
3460 (strict_type_checking): Likewise.
3461 * gnu-nat.c (gnu_debug_flag): Likewise.
3462 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3463 * guile/scm-param.c (pascm_variable): Add boolval.
3464 (add_setshow_generic): Update.
3465 (pascm_param_value): Update.
3466 (pascm_set_param_value_x): Update.
3467 * hppa-tdep.c (hppa_debug): Change to bool..
3468 * infcall.c (may_call_functions_p): Likewise.
3469 (coerce_float_to_double_p): Likewise.
3470 (unwind_on_signal_p): Likewise.
3471 (unwind_on_terminating_exception_p): Likewise.
3472 * infcmd.c (startup_with_shell): Likewise.
3473 * inferior.c (print_inferior_events): Likewise.
3474 * inferior.h (startup_with_shell): Likewise.
3475 (print_inferior_events): Likewise.
3476 * infrun.c (step_stop_if_no_debug): Likewise.
3477 (detach_fork): Likewise.
3478 (debug_displaced): Likewise.
3479 (disable_randomization): Likewise.
3480 (non_stop): Likewise.
3481 (non_stop_1): Likewise.
3482 (observer_mode): Likewise.
3483 (observer_mode_1): Likewise.
3484 (set_observer_mode): Update.
3485 (sched_multi): Change to bool.
3486 * infrun.h (debug_displaced): Likewise.
3487 (sched_multi): Likewise.
3488 (step_stop_if_no_debug): Likewise.
3489 (non_stop): Likewise.
3490 (disable_randomization): Likewise.
3491 * linux-tdep.c (use_coredump_filter): Likewise.
3492 (dump_excluded_mappings): Likewise.
3493 * linux-thread-db.c (auto_load_thread_db): Likewise.
3494 (check_thread_db_on_load): Likewise.
3495 * main.c (captured_main_1): Update.
3496 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3497 xx2_opt, boolean_opt>: Change to bool.
3498 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3499 * maint.c (maintenance_profile_p): Likewise.
3500 (per_command_time): Likewise.
3501 (per_command_space): Likewise.
3502 (per_command_symtab): Likewise.
3503 * memattr.c (inaccessible_by_default): Likewise.
3504 * mi/mi-main.c (mi_async): Likewise.
3505 (mi_async_1): Likewise.
3506 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3507 * nat/fork-inferior.h (startup_with_shell): Likewise.
3508 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3509 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3510 * nios2-tdep.c (nios2_debug): Likewise.
3511 * or1k-tdep.c (or1k_debug): Likewise.
3512 * parse.c (parser_debug): Likewise.
3513 * parser-defs.h (parser_debug): Likewise.
3514 * printcmd.c (print_symbol_filename): Likewise.
3515 * proc-api.c (procfs_trace): Likewise.
3516 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3517 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3518 (set_parameter_value): Update.
3519 (add_setshow_generic): Update.
3520 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3521 to bool*.
3522 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3523 int*.
3524 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3525 * record-btrace.c (record_btrace_target::store_registers): Update.
3526 * record-full.c (record_full_memory_query): Change to bool.
3527 (record_full_stop_at_limit): Likewise.
3528 * record-full.h (record_full_memory_query): Likewise.
3529 * remote-notif.c (notif_debug): Likewise.
3530 * remote-notif.h (notif_debug): Likewise.
3531 * remote.c (use_range_stepping): Likewise.
3532 (interrupt_on_connect): Likewise.
3533 (remote_break): Likewise.
3534 * ser-tcp.c (tcp_auto_retry): Likewise.
3535 * ser-unix.c (serial_hwflow): Likewise.
3536 * skip.c (debug_skip): Likewise.
3537 * solib-aix.c (solib_aix_debug): Likewise.
3538 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3539 (spu_auto_flush_cache_p): Likewise.
3540 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3541 Likewise.
3542 (struct info_print_options) <quiet>: Likewise.
3543 * symfile-debug.c (debug_symfile): Likewise.
3544 * symfile.c (auto_solib_add): Likewise.
3545 (separate_debug_file_debug): Likewise.
3546 * symfile.h (auto_solib_add): Likewise.
3547 (separate_debug_file_debug): Likewise.
3548 * symtab.c (basenames_may_differ): Likewise.
3549 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3550 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3551 (struct info_types_options) <quiet>: Likewise.
3552 * symtab.h (demangle): Likewise.
3553 (basenames_may_differ): Likewise.
3554 * target-dcache.c (stack_cache_enabled_1): Likewise.
3555 (code_cache_enabled_1): Likewise.
3556 * target.c (trust_readonly): Likewise.
3557 (may_write_registers): Likewise.
3558 (may_write_memory): Likewise.
3559 (may_insert_breakpoints): Likewise.
3560 (may_insert_tracepoints): Likewise.
3561 (may_insert_fast_tracepoints): Likewise.
3562 (may_stop): Likewise.
3563 (auto_connect_native_target): Likewise.
3564 (target_stop_and_wait): Update.
3565 (target_async_permitted): Change to bool.
3566 (target_async_permitted_1): Likewise.
3567 (may_write_registers_1): Likewise.
3568 (may_write_memory_1): Likewise.
3569 (may_insert_breakpoints_1): Likewise.
3570 (may_insert_tracepoints_1): Likewise.
3571 (may_insert_fast_tracepoints_1): Likewise.
3572 (may_stop_1): Likewise.
3573 * target.h (target_async_permitted): Likewise.
3574 (may_write_registers): Likewise.
3575 (may_write_memory): Likewise.
3576 (may_insert_breakpoints): Likewise.
3577 (may_insert_tracepoints): Likewise.
3578 (may_insert_fast_tracepoints): Likewise.
3579 (may_stop): Likewise.
3580 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3581 (make_thread_apply_all_options_def_group): Change argument from int*
3582 to bool*.
3583 (thread_apply_all_command): Update.
3584 (print_thread_events): Change to bool.
3585 * top.c (confirm): Likewise.
3586 (command_editing_p): Likewise.
3587 (history_expansion_p): Likewise.
3588 (write_history_p): Likewise.
3589 (info_verbose): Likewise.
3590 * top.h (confirm): Likewise.
3591 (history_expansion_p): Likewise.
3592 * tracepoint.c (disconnected_tracing): Likewise.
3593 (circular_trace_buffer): Likewise.
3594 * typeprint.c (print_methods): Likewise.
3595 (print_typedefs): Likewise.
3596 * utils.c (debug_timestamp): Likewise.
3597 (sevenbit_strings): Likewise.
3598 (pagination_enabled): Likewise.
3599 * utils.h (sevenbit_strings): Likewise.
3600 (pagination_enabled): Likewise.
3601 * valops.c (overload_resolution): Likewise.
3602 * valprint.h (struct value_print_options) <prettyformat_arrays,
3603 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3604 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3605 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3606 Likewise.
3607 * windows-nat.c (new_console): Likewise.
3608 (cygwin_exceptions): Likewise.
3609 (new_group): Likewise.
3610 (debug_exec): Likewise.
3611 (debug_events): Likewise.
3612 (debug_memory): Likewise.
3613 (debug_exceptions): Likewise.
3614 (useshell): Likewise.
3615 * windows-tdep.c (maint_display_all_tib): Likewise.
3616 * xml-support.c (debug_xml): Likewise.
3617
f1b620e9
MG
36182019-09-17 Mike Gulick <mgulick@mathworks.com>
3619
3620 * source.c (prepare_path_for_appending): New function.
3621 (openp): Make use of new function.
3622 (find_and_open_source): Search for the compilation directory and
3623 source file as a relative path beneath the directory search path.
3624
67f3ed6a
AB
36252019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * source-cache.c (source_cache::get_line_charpos): Catch
3628 exceptions and return false, this matches the behaviour documented
3629 in the header file.
3630
74332189
JB
36312019-09-17 Joel Brobecker <brobecker@adacore.com>
3632
3633 * ada-tasks.c (info_task): Remove quoting of the task's name.
3634
f2f24aa9
CB
36352019-09-16 Christian Biesinger <cbiesinger@google.com>
3636
3637 * symfile.c (auto_solib_add): Replace comment with a reference
3638 to the header file.
3639
6a062a93
CB
36402019-09-14 Christian Biesinger <cbiesinger@google.com>
3641
3642 * NEWS: Mention that gdb can now be compiled with Python 3
3643 on Windows.
3644
ec6c8338
AB
36452019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3646
3647 * maint.c (maint_print_section_data::maint_print_section_data):
3648 Force use of 'float log10 (float)' by casting the argument to
3649 float.
3650
aa17805f
AB
36512019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * maint.c: Add 'cmath' include.
3654 (struct maint_print_section_data): New structure.
3655 (print_section_index): New function.
3656 (print_bfd_section_info): Add header comment, small whitespace
3657 cleanup, and update to call new print_section_index function.
3658 (print_objfile_section_info): Likewise.
3659 (maint_obj_section_from_bfd_section): New function.
3660 (print_bfd_section_info_maybe_relocated): New function.
3661 (maintenance_info_sections): Add header comment, always use
3662 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3663
3dd9bb46
AB
36642019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3667 inner scope, add check that the objfile has psymtabs before
3668 checking psymtabs_addrmap.
3669 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3670
4993045d
PW
36712019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3672
3673 * NEWS: Announce that Ada task names are now shown at more places,
3674 and between quotes (except in info task output).
3675 * gdb/ada-tasks.c (task_to_str): New function.
3676 (display_current_task_id): Call task_to_str.
3677 (task_command_1): Likewise.
3678 (print_ada_task_info): In non-mi mode, Properly align headers and data
3679 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3680
7a289707
RO
36812019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3682
3683 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3684 prstatus.pr_lwp.pr_info instead of making it up.
3685
f2aec7f6
CB
36862019-09-11 Christian Biesinger <cbiesinger@google.com>
3687
3688 * auto-load.c (auto_load_expand_dir_vars): Update.
3689 * defs.h (gdb_datadir): Change to std::string.
3690 (python_libdir): Likewise.
3691 (relocate_gdb_directory): Change return type to std::string.
3692 * guile/guile.c (gdbscm_data_directory): Update.
3693 (initialize_scheme_side): Update.
3694 * jit.c (jit_reader_dir): Change to std::string.
3695 (jit_reader_load_command): Update.
3696 * main.c (gdb_datadir): Change to std::string.
3697 (python_libdir): Likewise.
3698 (set_gdb_data_directory): Update.
3699 (relocate_path): Change to return std::string.
3700 (relocate_gdb_directory): Change to return std::string.
3701 (relocate_gdbinit_path_maybe_in_datadir): Update.
3702 (captured_main_1): Update.
3703 * python/python.c (do_start_initialization): Update.
3704 * top.c (show_gdb_datadir): Update.
3705 * xml-syscall.c (xml_init_syscalls_info): Update.
3706 (init_syscalls_info): Update.
3707
9224a013
CB
37082019-09-11 Christian Biesinger <cbiesinger@google.com>
3709
3710 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3711 out of get_init_files.
3712 (get_init_files): Update.
3713
f48cd836
CB
37142019-09-11 Christian Biesinger <cbiesinger@google.com>
3715
3716 * main.c (get_init_files): Change to use std::string.
3717 (captured_main_1): Update.
3718 (print_gdb_help): Update.
3719
9cab7ecd
AT
37202019-09-11 Ali Tamur <tamur@google.com>
3721
3722 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3723 implementation.
3724
67547d89
CB
37252019-09-11 Christian Biesinger <cbiesinger@google.com>
3726
3727 * dbxread.c (read_dbx_symtab): Update.
3728 * dwarf2read.c (load_partial_dies): Update.
3729 * mdebugread.c (parse_partial_symbols): Update.
3730 (handle_psymbol_enumerators): Update.
3731 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3732 * psymtab.c (add_psymbol_to_bcache): Likewise.
3733 (add_psymbol_to_list): Likewise.
3734 * symtab.c (symbol_set_names): Likewise.
3735 * symtab.h (symbol_set_names): Likewise.
3736 * xcoffread.c (scan_xcoff_symtab): Update.
3737
64b2d4a0
TT
37382019-09-11 Tom Tromey <tom@tromey.com>
3739
3740 * symfile-mem.c (symbol_file_add_from_memory): Use
3741 bfd_set_filename.
3742 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3743 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3744
3b00ef10
TT
37452019-09-10 Tom Tromey <tromey@adacore.com>
3746
3747 * dwarf-index-write.c (write_psymbols): Extend error message.
3748 (debug_names::insert): Add Ada code.
3749 (debug_names::write_psymbols): Remove Ada check.
3750 (debug_names) <m_string_obstack>: New member.
3751 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3752 (gdb_index_symbol_name_matcher::matches): Remove.
3753 (mapped_index_base::find_name_components_bounds): Add "lang"
3754 parameter.
3755 (mapped_index_base::build_name_components): Also split names
3756 according to Ada syntax.
3757 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3758 type of "match_callback".
3759 (check_match, check_find_bounds_finds)
3760 (dw2_expand_symtabs_matching): Update.
3761 (dw2_debug_names_iterator): Add new constructor.
3762 (dw2_debug_names_map_matching_symbols): New function.
3763 (dw2_debug_names_expand_symtabs_matching): Update.
3764 (dwarf2_debug_names_functions): Use
3765 dw2_debug_names_map_matching_symbols.
3766
aa391654
TT
37672019-09-10 Tom Tromey <tromey@adacore.com>
3768
3769 * dwarf2read.c (dw2_get_file_names_reader): Add the
3770 CU's file name to the results.
3771
b054970d
TT
37722019-09-10 Tom Tromey <tromey@adacore.com>
3773
3774 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3775 map_matching_symbols. Update.
3776 * dwarf2read.c (dw2_map_matching_symbols): Update.
3777 * psymtab.c (match_partial_symbol): Change type; update.
3778 (psym_map_matching_symbols): Likewise.
3779 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3780 type; update.
3781 * symfile.h (struct quick_symbol_functions)
3782 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3783 Remove "match".
3784
6a3dbf1b
TT
37852019-09-10 Tom Tromey <tromey@adacore.com>
3786
3787 * psymtab.c (map_block): Remove.
3788 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3789 * symtab.c (iterate_over_symbols_terminated): New function.
3790 * symtab.c (iterate_over_symbols_terminated): Declare.
3791
6969f124
TT
37922019-09-10 Tom Tromey <tromey@adacore.com>
3793
3794 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3795 * language.h (struct language_defn) <la_iterate_over_symbols>:
3796 Return bool.
3797 * symtab.c (iterate_over_symbols): Return bool.
3798 * symtab.h (iterate_over_symbols): Return bool.
3799
199b4314
TT
38002019-09-10 Tom Tromey <tromey@adacore.com>
3801
3802 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3803 (add_nonlocal_symbols): Update.
3804 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3805 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3806 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3807 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3808 Change type of "callback". Remove "data".
3809
a084a2a6
AT
3810
38112019-09-09 Ali Tamur <tamur@google.com>
3812
3813 * dwarf2read.c (comp_unit_head): Update comment.
3814 (dwarf2_dwo_name): New function declaration.
3815 (dwarf_unit_type_name): New function declaration.
3816 (read_comp_unit_head): Add support for new compilation units,
3817 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3818 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3819 (currently named as "signature") in their header. Also clarify error
3820 messages.
3821 (lookup_dwo_id): New function. Returns the dwo id of the given
3822 compile unit.
3823 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3824 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3825 functions.
3826 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3827 (dwarf2_dwo_name): Get the dwo name if present.
3828 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3829 purposes.
3830
25a2915e
TT
38312019-09-09 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3834
e4df0874
PW
38352019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3836
3837 * python/python.c (do_start_initialization): Make progname_copy static,
3838 to avoid a leak report.
3839
8634b462
TT
38402019-09-08 Tom Tromey <tom@tromey.com>
3841
3842 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3843
c7f839cb
SM
38442019-09-07 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3847 Change type to gdb::optional<block_enum>.
3848 (dw2_symtab_iter_init): Change block_index parameter type
3849 to gdb::optional<block_enum>.
3850 (dw2_lookup_symbol): Change block_index parameter
3851 type to block_enum.c
3852 (dw2_debug_names_lookup_symbol): Likewise.
3853 * psymtab.c (psym_lookup_symbol): Likewise.
3854 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3855 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3856 Likewise.
3857
ead0e69a
CB
38582019-09-06 Christian Biesinger <cbiesinger@google.com>
3859
3860 * defs.h (relocate_gdb_directory): Change int to bool in
3861 signature and rename flag to relocatable.
3862 * main.c (relocate_path): Likewise.
3863 (relocate_gdb_directory): Likewise.
3864
b16c44de
AM
38652019-09-06 Alan Modra <amodra@gmail.com>
3866
3867 * coffread.c (coff_symfile_read): Constify filename variable.
3868 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3869 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3870 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3871 * solib.c (reload_shared_libraries_1): Likewise.
3872 * symfile.c (reread_symbols): Likewise.
3873 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3874 * solib-darwin.c (darwin_bfd_open): Likewise.
3875 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3876
06ff036e
AB
38772019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3880 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3881
4e962e74
TT
38822019-09-03 Tom Tromey <tromey@adacore.com>
3883
3884 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3885 types.
3886 (has_negatives): Unbias a range type bound.
3887 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3888 * gdbtypes.c (operator==): Handle new field.
3889 (create_range_type): Add "bias" parameter.
3890 (create_static_range_type, resolve_dynamic_range): Update.
3891 * gdbtypes.h (struct range_bounds) <bias>: New member.
3892 (create_range_type): Add bias parameter.
3893 * printcmd.c (print_scalar_formatted): Unbias range types.
3894 * value.c (unpack_long): Unbias range types.
3895 (pack_long): Bias range types.
3896
d90b8f26
AH
38972019-09-02 Alan Hayward <alan.hayward@arm.com>
3898
3899 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3900 probe arguments.
3901
fe01123e
AH
39022019-09-02 Alan Hayward <alan.hayward@arm.com>
3903
3904 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3905 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3906 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3907 (compile_probe_arg): Likewise.
3908 * probe.h (get_argument_count): Likewise.
3909 * solib-svr4.c (solib_event_probe_action): Likewise.
3910 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3911
e661ef01
AH
39122019-09-02 Alan Hayward <alan.hayward@arm.com>
3913
3914 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3915 code to here...
3916 (svr4_create_solib_event_breakpoints): ...from here.
3917
47a536d9
SDJ
39182019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3919
3920 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3921 suffix from warning message.
3922
d6a00eba
TT
39232019-08-30 Tom Tromey <tom@tromey.com>
3924
3925 * tui/tui-winsource.h (struct tui_source_window_base)
3926 <refresh_all>: Don't declare.
3927 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3928 Remove.
3929 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3930 tui_show_locator_content.
3931 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3932 declare.
3933 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3934 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3935 declare.
3936
55b2657b
TT
39372019-08-30 Tom Tromey <tom@tromey.com>
3938
3939 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3940
12a8555a
TT
39412019-08-30 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3944 Remove unnecessary forward declarations.
3945
900ac242
TT
39462019-08-30 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3949 rerender.
3950 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3951 tui_show_locator_content.
3952
99ab33fb
TT
39532019-08-30 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3956 (tui_locator_window::rerender): Rewrite using body of previous
3957 tui_show_locator_content.
3958
e594a5d1
TT
39592019-08-30 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3962 set_locator_fullname>: New methods.
3963 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3964 Rename from tui_set_locator_fullname.
3965 (tui_locator_window::set_locator_info): Rename from
3966 tui_set_locator_info. Return bool.
3967 (tui_update_locator_fullname, tui_show_frame_info): Update.
3968
715bb467
TT
39692019-08-30 Tom Tromey <tom@tromey.com>
3970
3971 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3972
772f3f03
TT
39732019-08-30 Tom Tromey <tom@tromey.com>
3974
3975 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3976 call touchwin.
3977
108e13ab
TT
39782019-08-30 Tom Tromey <tom@tromey.com>
3979
3980 * tui/tui-wingeneral.c (box_win): Assume win_info and
3981 win_info->handle cannot be NULL.
3982
cdaa6eb4
TT
39832019-08-30 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3986 refresh_window>: Declare.
3987 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3988 resize.
3989 (tui_data_item_window::rerender): Rename from
3990 tui_display_register.
3991 (tui_data_item_window::refresh_window): New method.
3992 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3993 no-op.
3994
89df7f90
TT
39952019-08-30 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3998 regs_column_count, current_group>: Move later. Now private.
3999 <get_current_group>: New method.
4000 * tui/tui-regs.c (tui_reg_command): Update.
4001 * tui/tui-layout.c (tui_set_layout): Update.
4002
1bf2866a
TT
40032019-08-30 Tom Tromey <tom@tromey.com>
4004
4005 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4006 (tui_data_window::rerender): Don't call
4007 check_and_display_highlight_if_needed.
4008 (tui_data_window::refresh_all): Remove call to
4009 erase_data_content.
4010
0670413d
TT
40112019-08-30 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4014 (tui_data_window::display_registers_from)
4015 (tui_data_window::display_reg_element_at_line)
4016 (tui_data_window::display_registers_from_line): Remove checks of
4017 "empty".
4018
18bb55c7
TT
40192019-08-30 Tom Tromey <tom@tromey.com>
4020
4021 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4022 Don't declare.
4023 * tui/tui-regs.c (tui_data_window::show_registers): Call
4024 rerender.
4025 (tui_data_window::rerender): Rename from display_all_data.
4026 (tui_data_window::rerender): Remove old implementation.
4027
1f6d2f10
TT
40282019-08-30 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4031 text.
4032 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4033
16d01f9c
BW
40342019-08-29 Bernhard Wodok <barto@gmx.net>
4035 Sergio Durigan Junior <sergiodj@redhat.com>
4036
4037 PR win32/24284
4038 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4039
d8f27c60
AB
40402019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4043 when searching for types.
4044
1f20c35e
AB
40452019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * f-lang.c (f_language_defn): Use f_print_typedef.
4048 * f-lang.h (f_print_typedef): Declare.
4049 * f-typeprint.c (f_print_typedef): Define.
4050
550105b7
CB
40512019-08-27 Christian Biesinger <cbiesinger@google.com>
4052
4053 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4054
4acfdd20
AB
40552019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * cli/cli-utils.c (info_print_options_defs): Delete.
4058 (make_info_print_options_def_group): Delete.
4059 (extract_info_print_options): Delete.
4060 (info_print_command_completer): Delete.
4061 (info_print_args_help): Add extra parameter, and optionally
4062 include text about -n flag.
4063 * cli/cli-utils.h (struct info_print_options): Delete.
4064 (extract_info_print_options): Delete declaration.
4065 (info_print_command_completer): Delete declaration.
4066 (info_print_args_help): Add extra parameter, extend header
4067 comment.
4068 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4069 search_symbols.
4070 * stack.c (struct info_print_options): New type.
4071 (info_print_options_defs): New file scoped variable.
4072 (make_info_print_options_def_group): New static function.
4073 (info_print_command_completer): New static function.
4074 (info_locals_command): Update to use new local functions.
4075 (info_args_command): Likewise.
4076 (_initialize_stack): Add extra parameter to calls to
4077 info_print_args_help.
4078 * symtab.c (search_symbols): Add extra parameter, use this to
4079 possibly excluse non-debug symbols.
4080 (symtab_symbol_info): Add extra parameter, which is passed on to
4081 search_symbols.
4082 (struct info_print_options): New type.
4083 (info_print_options_defs): New file scoped variable.
4084 (make_info_print_options_def_group): New static function.
4085 (info_print_command_completer): New static function.
4086 (info_variables_command): Update to use local functions, and pass
4087 extra parameter through to symtab_symbol_info.
4088 (info_functions_command): Likewise.
4089 (info_types_command): Pass additional argument through to
4090 symtab_symbol_info.
4091 (rbreak_command): Pass extra argument to search_symbols.
4092 (_initialize_symtab): Add extra arguments for calls to
4093 info_print_args_help, and update help text for 'info variables',
4094 'whereis', and 'info functions' commands.
4095 * symtab.h (search_symbols): Add extra argument to declaration.
4096 * NEWS: Mention new flags.
4097
9aa55206
CB
40982019-08-26 Christian Biesinger <cbiesinger@google.com>
4099
4100 * symtab.c (lookup_static_symbol): Call the new function (and move
4101 it down to be next to lookup_global_symbol).
4102 (struct global_sym_lookup_data): Add block_enum member and rename to...
4103 (struct global_or_static_sym_lookup_data): ...this.
4104 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4105 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4106 (lookup_symbol_global_or_static_iterator_cb): ...this.
4107 (lookup_global_or_static_symbol): New function.
4108 (lookup_global_symbol): Call new function.
4109
5c31b358
TV
41102019-08-26 Tom de Vries <tdevries@suse.de>
4111
4112 PR c++/24852
4113 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4114 when pc_probe.prob == NULL.
4115
23c13d42
SM
41162019-08-25 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4119 variable symbol_linkage to symbol_linkage_.
4120
beadd3e8
SM
41212019-08-25 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4124 represent whether the symbol is static, dynamic, or we don't
4125 know.
4126
e3ec872f
YS
41272019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4128
4129 * gdb/rx-tdep.c (rx_register_names): New.
4130 (rx_register_name): Delete.
4131 (rx_psw_type): Delete.
4132 (rx_fpsw_type): Delete.
4133 (rx_register_type): Delete.
4134 (rx_gdbarch_init): Convert target-descriptions.
4135 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4136 * gdb/features/Makefile: Add rx.xml.
4137 * gdb/features/rx.xml: New.
4138 * gdb/features/rx.c: Generated.
4139 * gdb/NEWS: Mention target description support.
4140
d0509ba4
CB
41412019-08-22 Christian Biesinger <cbiesinger@google.com>
4142
4143 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4144 *slot_ptr.
4145
2d41fa11
SDJ
41462019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4147
4148 * configure.ac: Don't check for 'dlfcn.h' (moved to
4149 gdbsupport/common.m4).
4150 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4151 'gdbsupport/'.
4152 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4153 * compile/compile-c-support.c: Include
4154 'gdbsupport/gdb-dlfcn.h'.
4155 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4156 * gdb-dlfcn.c: Move to...
4157 * gdbsupport/gdb-dlfcn.c: ... here.
4158 * gdb-dlfcn.h: Move to...
4159 * gdbsupport/gdb-dlfcn.h: ... here.
4160
de8af808
SL
41612019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4162
4163 * nios2-tdep.c (struct reg_value): Improve comments. Make
4164 the offset field signed.
4165
27204489
CB
41662019-08-22 Christian Biesinger <cbiesinger@google.com>
4167
4168 * python/lib/gdb/__init__.py (_execute_file): New function.
4169 * python/python.c (python_run_simple_file): Call gdb._execute_file
4170 on Windows.
4171
43771869
AB
41722019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4175 all uses as this was never set to anything but a zero value.
4176
26c957f1
PA
41772019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4178
4179 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4180
c07aae6e
CB
41812019-08-21 Christian Biesinger <cbiesinger@google.com>
4182
4183 * tui/tui-data.h (tui_gen_win_info): Add an =default
4184 move constructor, required by some GCC versions.
4185
3960cb7a
JF
41862019-08-21 Jinke Fan <fanjinke51@yeah.net>
4187
4188 * go32-nat.c (go32_sysinfo): Add hygon_p.
4189
04c72a68
TT
41902019-08-20 Tom Tromey <tom@tromey.com>
4191
4192 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4193 line_from_reg_element_no, first_reg_element_no_inline,
4194 display_all_data, delete_data_content_windows,
4195 erase_data_content>: Now private.
4196
072272ce
TT
41972019-08-20 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4200 (tui_unhighlight_win, tui_highlight_win)
4201 (tui_win_info::make_window): Update.
4202 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4203
973961bd
TT
42042019-08-20 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4207 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4208 (MAX_PID_WIDTH): Move to tui-stack.c.
4209 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4210 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4211 (MAX_PID_WIDTH): Move from tui-data.h.
4212
ab0e1f1a
TT
42132019-08-20 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4216 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4217 (box_win): Update.
4218 (tui_gen_win_info::make_window): Rename from tui_make_window.
4219 (tui_win_info::make_window): New method.
4220 (tui_gen_win_info::make_visible): Update.
4221 * tui/tui-source.c (tui_source_window::set_contents): Update.
4222 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4223 (tui_data_window::display_registers_from): Update.
4224 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4225 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4226 Declare.
4227 <can_box>: Remove.
4228 <title>: Remove.
4229 (struct tui_win_info) <make_window>: Declare.
4230 <can_box>: Now virtual.
4231 <title>: New member.
4232 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4233 * tui/tui-command.c (tui_cmd_window::resize): Update.
4234
100c2bf3
TT
42352019-08-20 Tom Tromey <tom@tromey.com>
4236
4237 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4238 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4239 (tui_data_window::check_register_values): Update.
4240
fa4dc567
TT
42412019-08-20 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-regs.h (struct tui_data_window): Use
4244 DISABLE_COPY_AND_ASSIGN.
4245 <regs_content>: Change type, removing unique_ptr.
4246 <tui_data_window>: Add move constructor.
4247 * tui/tui-regs.c (tui_data_window::show_registers)
4248 (tui_data_window::show_register_group)
4249 (tui_data_window::display_registers_from)
4250 (tui_data_window::display_registers_from)
4251 (tui_data_window::first_data_item_displayed)
4252 (tui_data_window::delete_data_content_windows)
4253 (tui_data_window::rerender, tui_data_window::refresh_window)
4254 (tui_data_window::check_register_values): Update.
4255
ca02d7c8
TT
42562019-08-20 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4259 show_register_group>: Declare.
4260 (tui_show_register_group): Don't declare.
4261 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4262 tui_show_registers.
4263 (tui_data_window::show_register_group): Rename from
4264 tui_show_register_group.
4265 (tui_data_window::check_register_values, tui_reg_command):
4266 Update.
4267 * tui/tui-layout.c (tui_set_layout): Update.
4268
63356bfd
TT
42692019-08-20 Tom Tromey <tom@tromey.com>
4270
4271 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4272 Declare.
4273 (tui_check_register_values): Don't declare.
4274 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4275 from tui_check_register_values.
4276 * tui/tui-hooks.c (tui_register_changed): Update.
4277
42cc14a7
TT
42782019-08-20 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-regs.c (tui_reg_layout): Move later.
4281 (tui_show_registers): Don't enable TUI mode or change layout.
4282
b9ad3686
TT
42832019-08-20 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-regs.h (struct tui_data_item_window)
4286 <~tui_data_item_window>: Remove.
4287 <content>: Now a unique_xmalloc_ptr.
4288 * tui/tui-regs.c (tui_register_format): Return a
4289 unique_xmalloc_ptr.
4290 (tui_get_register): Update.
4291 (~tui_data_item_window): Remove.
4292 (tui_data_window::display_registers_from, tui_display_register):
4293 Update.
4294 * tui/tui-io.h (tui_expand_tabs): Update.
4295 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4296 Remove "col" parameter.
4297
8e114aab
TT
42982019-08-20 Tom Tromey <tom@tromey.com>
4299
4300 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4301 field.
4302 * tui/tui-regs.c (~tui_data_item_window): Update.
4303
1a4f81dd
TT
43042019-08-20 Tom Tromey <tom@tromey.com>
4305
4306 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4307 earlier.
4308
0f8d8876
TT
43092019-08-20 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4312
605dc2c2
TT
43132019-08-20 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-source.h (struct tui_source_window): Update.
4316 * tui/tui-regs.c (tui_show_registers): Update.
4317 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4318 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4319 (NO_REGS_STRING): Remove defines.
4320
aedbe3bb
CM
43212019-08-20 Conrad Meyer <cem@FreeBSD.org>
4322
4323 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4324 unnecessary thread walk if remote doesn't support the packet.
4325
7ce8f214
TT
43262019-08-19 Tom Tromey <tromey@adacore.com>
4327
4328 * python/py-value.c (value_has_field): Fix indentation.
4329
f21c2bd7
TT
43302019-08-19 Tom Tromey <tromey@adacore.com>
4331
4332 * printcmd.c (do_one_display, info_display_command): Update.
4333 * block.h (contained_in): Return bool. Add allow_nested
4334 parameter.
4335 * block.c (contained_in): Return bool. Add allow_nested
4336 parameter.
4337
d806ea2d
TT
43382019-08-19 Tom Tromey <tom@tromey.com>
4339
4340 * configure: Rebuild.
4341 * configure.ac: Disallow the combination of -static-libstdc++ and
4342 source highlight.
4343 * source-cache.c (get_language_name): Handle rust.
4344 (source_cache::get_source_lines): Ignore highlighting exceptions.
4345
398fdd60
TT
43462019-08-16 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4349 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4350 (struct tui_source_window_base) <make_visible, refresh_window,
4351 resize>: Remove methods.
4352 <execution_info>: Remove field.
4353 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4354 (tui_show_source_line, tui_source_window_base)
4355 (~tui_source_window_base): Update.
4356 (tui_source_window_base::resize)
4357 (tui_source_window_base::make_visible)
4358 (tui_source_window_base::refresh_window): Remove.
4359 (tui_source_window_base::update_exec_info): Update.
4360 * tui/tui-source.c (tui_source_window::set_contents): Update.
4361 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4362
e699d331
TT
43632019-08-16 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4366 deprecated_query_hook.
4367
bb01dbfc
TT
43682019-08-16 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4371 (tui_update_source_windows_with_line): Update.
4372 * tui/tui-source.h (struct tui_source_window)
4373 <show_symtab_source>: Declare.
4374 (tui_show_symtab_source): Don't declare.
4375 * tui/tui-source.c (tui_show_symtab_source): Rename from
4376 tui_show_symtab_source.
4377
81c82c4b
TT
43782019-08-16 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-winsource.h (struct tui_source_window_base)
4381 <set_contents>: Declare.
4382 * tui/tui-winsource.c
4383 (tui_source_window_base::update_source_window_as_is): Update.
4384 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4385 Declare.
4386 (tui_set_source_content): Don't declare.
4387 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4388 tui_set_source_content.
4389 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4390 Declare.
4391 (tui_set_disassem_content): Don't declare.
4392 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4393 tui_set_disassem_content.
4394
2ddaf614
TT
43952019-08-16 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-winsource.h (struct tui_source_window_base)
4398 <update_breakpoint_info>: Declare.
4399 (tui_update_breakpoint_info): Don't declare.
4400 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4401 (tui_update_all_breakpoint_info): Update.
4402 (tui_source_window_base::update_breakpoint_info): Rename from
4403 tui_update_breakpoint_info.
4404 (tui_source_window_base::update_exec_info): Update.
4405
017f9828
TT
44062019-08-16 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.h (struct tui_source_window_base)
4409 <update_source_window>: Declare.
4410 (tui_update_source_window): Don't declare.
4411 * tui/tui-winsource.c
4412 (tui_source_window_base::update_source_window): Rename from
4413 tui_update_source_window.
4414 (tui_source_window_base::rerender): Update.
4415 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4416 * tui/tui-disasm.c (tui_show_disassem)
4417 (tui_show_disassem_and_update_source)
4418 (tui_disasm_window::maybe_update): Update.
4419
ed8358e9
TT
44202019-08-16 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-winsource.h (struct tui_source_window_base)
4423 <update_source_window_as_is>: Declare.
4424 (tui_update_source_window_as_is): Don't declare.
4425 * tui/tui-winsource.c (tui_update_source_window): Update
4426 (tui_source_window_base::update_source_window_as_is): Rename from
4427 tui_update_source_window_as_is.
4428 (tui_source_window_base::refill): Update.
4429 * tui/tui-source.c (tui_show_symtab_source): Update.
4430 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4431 Update.
4432
20149b6b
TT
44332019-08-16 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-winsource.h (tui_update_source_window)
4436 (tui_update_source_window_as_is): Remove "noerror" parameter.
4437 * tui/tui-winsource.c (tui_update_source_window)
4438 (tui_update_source_window_as_is): Remove "noerror" parameter.
4439 (tui_update_source_windows_with_addr)
4440 (tui_update_source_windows_with_line)
4441 (tui_source_window_base::rerender)
4442 (tui_source_window_base::refill): Update.
4443 * tui/tui-source.h (tui_set_source_content)
4444 (tui_show_symtab_source): Remove "noerror" parameter.
4445 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4446 parameter.
4447 (tui_show_symtab_source): Likewise.
4448 (tui_source_window::maybe_update): Update.
4449 * tui/tui-disasm.c (tui_show_disassem)
4450 (tui_show_disassem_and_update_source)
4451 (tui_disasm_window::do_scroll_vertical)
4452 (tui_disasm_window::maybe_update): Update.
4453
2d83e710
TT
44542019-08-16 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui.c (tui_is_window_visible): Update.
4457 * tui/tui-wingeneral.c (tui_make_window)
4458 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4459 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4460 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4461 (tui_set_win_height_command, parse_scrolling_args): Update.
4462 * tui/tui-source.c (tui_source_window::style_changed): Update.
4463 * tui/tui-regs.c (tui_show_registers)
4464 (tui_data_window::first_data_item_displayed)
4465 (tui_data_window::delete_data_content_windows)
4466 (tui_check_register_values, tui_reg_command): Update.
4467 * tui/tui-disasm.c (tui_show_disassem): Update.
4468 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4469 method.
4470 <is_visible>: Remove field.
4471 * tui/tui-data.c (tui_next_win, tui_prev_win)
4472 (tui_delete_invisible_windows): Update.
4473
d4ab829a
TT
44742019-08-16 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-winsource.h (struct tui_source_window_base)
4477 <m_has_locator>: Remove.
4478 * tui/tui-layout.c (show_source_disasm_command, show_data)
4479 (show_source_or_disasm_and_command): Update.
4480
aa7ca1bb
AH
44812019-08-16 Alan Hayward <alan.hayward@arm.com>
4482
4483 * NEWS (Other MI changes): New subsection.
4484 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4485 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4486 * arch-utils.c (default_get_pc_address_flags): New function.
4487 * arch-utils.h (default_get_pc_address_flags): New declaration.
4488 * gdbarch.sh: Add get_pc_address_flags.
4489 * gdbarch.c: Regenerate.
4490 * gdbarch.h: Likewise.
4491 * stack.c (print_pc): New function.
4492 (print_frame_info) (print_frame): Call print_pc.
4493
6eac171f
TV
44942019-08-16 Tom de Vries <tdevries@suse.de>
4495
4496 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4497 print_objfile_section_info.
4498
3df505f6
TT
44992019-08-15 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4502 calling update_cmdwin_start_line.
4503 * tui/tui-winsource.h (struct tui_source_window_base)
4504 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4505 <rerender>: Declare.
4506 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4507 Call rerender.
4508 (tui_source_window_base::set_new_height): Remove.
4509 (tui_source_window_base::rerender): Rename from
4510 do_make_visible_with_new_height.
4511 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4512 resize method.
4513 (tui_win_info::make_invisible_and_set_new_height)
4514 (tui_win_info::make_visible_with_new_height): Remove.
4515 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4516 Declare.
4517 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4518 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4519 do_make_visible_with_new_height>: Don't declare.
4520 <rerender>: Declare.
4521 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4522 set_new_height.
4523 (tui_data_window::do_make_visible_with_new_height): Remove.
4524 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4525 call tui_show_locator_content.
4526 (tui_gen_win_info::resize): Call rerender.
4527 (show_source_or_disasm_and_command): Don't call
4528 tui_show_locator_content.
4529 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4530 method.
4531 (struct tui_win_info) <rerender>: Declare.
4532 <set_new_height, make_invisible_and_set_new_height,
4533 make_visible_with_new_height>: Don't declare.
4534 * tui/tui-data.c (tui_win_list::rerender): New method.
4535 * tui/tui-command.h (struct tui_cmd_window)
4536 <do_make_visible_with_new_height>: Don't declare.
4537 * tui/tui-command.c
4538 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4539
272560b5
TT
45402019-08-15 Tom Tromey <tromey@adacore.com>
4541
4542 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4543 * ada-lang.c (ada_enum_name): Likewise.
4544
08235187
CB
45452019-08-15 Christian Biesinger <cbiesinger@google.com>
4546
4547 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4548 leading underscore.
4549 (GdbOutputErrorFile): Likewise.
4550 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4551 accordingly.
4552 (execute_unwinders): Rename to have a leading underscore.
4553 (auto_load_packages): Likewise.
4554 (global scope): Adjust call to auto_load_packages accordingly.
4555 (GdbSetPythonDirectory): Likewise.
4556 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4557 instead of execute_unwinders.
4558
db502012
TT
45592019-08-15 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4562 (show_data): Don't change window visibility.
4563 (tui_gen_win_info::resize): Remove special case for command
4564 window. Use wresize, when available.
4565 (show_source_or_disasm_and_command): Don't change window
4566 visibility.
4567 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4568 <make_visible>: New method.
4569 * tui/tui-command.c (tui_cmd_window::resize): New method.
4570
3891b65e
TT
45712019-08-15 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4574 (struct tui_source_windows): New.
4575 * tui/tui-winsource.c (tui_display_main): Update.
4576 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4577 (new_height_ok, parse_scrolling_args): Update.
4578 * tui/tui-layout.c (show_layout, show_data): Update.
4579 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4580 (tui_add_to_source_windows): Don't declare.
4581 * tui/tui-data.c (source_windows, tui_source_windows)
4582 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4583
ee556432
TT
45842019-08-15 Tom Tromey <tom@tromey.com>
4585
4586 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4587 Rename from reset.
4588 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4589 * tui/tui-layout.c (show_source_disasm_command, show_data):
4590 Update.
4591 (tui_gen_win_info::resize): Rename.
4592 (show_source_or_disasm_and_command): Update.
4593 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4594 reset.
4595
46f438e3
TT
45962019-08-15 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4599 * tui/tui-interp.c (tui_interp::init): Don't call
4600 tui_initialize_static_data.
4601 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4602
f4ce562c
TT
46032019-08-15 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4606 examine tui_win_list.
4607
c398c3d0
TT
46082019-08-15 Tom Tromey <tom@tromey.com>
4609
4610 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4611 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4612 tui_clear_source_content.
4613 (tui_clear_source_content): Remove.
4614 (tui_source_window_base::do_erase_source_content): Hoist call to
4615 content.clear().
4616 * tui/tui-stack.c (tui_show_frame_info): Don't call
4617 tui_clear_source_content.
4618
e25d2004
TT
46192019-08-15 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui-winsource.h (struct tui_source_window_base)
4622 <do_erase_source_content>: New method.
4623 <erase_source_content>: New method.
4624 (tui_erase_source_content): Don't declare.
4625 * tui/tui-winsource.c (tui_clear_source_content): Update.
4626 (tui_source_window_base::do_erase_source_content): Rename from
4627 tui_erase_source_content.
4628 (tui_source_window_base::show_source_content): Update.
4629 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4630 * tui/tui-source.h (struct tui_source_window)
4631 <erase_source_content>: New method.
4632 * tui/tui-disasm.h (struct tui_disasm_window)
4633 <erase_source_content>: New method.
4634
002f15c2
TT
46352019-08-15 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4638 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4639 constructor.
4640 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4641 * tui/tui-source.c (tui_set_source_content): Update.
4642 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4643
c9033fe8
TT
46442019-08-15 Tom Tromey <tom@tromey.com>
4645
4646 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4647 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4648 tui-source.c.
4649 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4650 Declare.
4651 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4652 method.
4653 (tui_source_window::maybe_update): Update.
4654
088f37dd
TT
46552019-08-15 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4658 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4659 tui-disasm.c.
4660 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4661 Declare.
4662 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4663 method.
4664 (tui_disasm_window::maybe_update): Update.
4665
a54700c6
TT
46662019-08-15 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-winsource.h (struct tui_source_window_base)
4669 <maybe_update>: Declare.
4670 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4671 method.
4672 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4673 Declare.
4674 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4675 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4676 Declare.
4677 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4678
e2a678a5
TT
46792019-08-15 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4682
f2dda477
TT
46832019-08-15 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-wingeneral.c: Include tui-stack.h.
4686 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4687 (struct tui_locator_window): Move from tui-data.h.
4688 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4689 (tui_initialize_static_data): Move from tui-data.c.
4690 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4691 (struct tui_locator_window): Move to tui-stack.c.
4692 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4693 (tui_initialize_static_data): Move to tui-stack.c.
4694
ed4a1084
TT
46952019-08-15 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-layout.c (show_source_disasm_command)
4698 (show_source_or_disasm_and_command): Use make_visible method, not
4699 tui_make_window.
4700 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4701 Remove.
4702
65962b20
TT
47032019-08-15 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-wingeneral.h (tui_make_window): Update.
4706 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4707 parameter.
4708 (tui_gen_win_info::make_visible): Update.
4709 * tui/tui-regs.c (tui_data_window::display_registers_from):
4710 Update.
4711 * tui/tui-layout.c (show_source_disasm_command)
4712 (show_source_or_disasm_and_command): Update.
4713 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4714 (enum tui_box): Remove.
4715 (struct tui_win_info) <can_box>: New method.
4716 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4717 method.
4718
2208ee91
TV
47192019-08-15 Tom de Vries <tdevries@suse.de>
4720
4721 * linux-nat-trad.c: Include gdbarch.h.
4722
75faf5c4
AH
47232019-08-14 Alan Hayward <alan.hayward@arm.com>
4724
4725 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4726 register sizes.
4727
b1c896b3
TT
47282019-08-14 Tom Tromey <tromey@adacore.com>
4729
4730 * darwin-nat.c: Include gdbarch.h.
4731 * darwin-nat-info.c: Include gdbarch.h.
4732
6405cd73
TT
47332019-08-13 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4736 Remove.
4737 * tui/tui-data.c (tui_initialize_static_data): Update.
4738
5216580d
TT
47392019-08-13 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-winsource.h (struct tui_exec_info_window)
4742 <~tui_exec_info_window, maybe_allocate_content, get_content,
4743 m_content>: Remove.
4744 (struct tui_source_window_base) <set_exec_info_content,
4745 show_exec_info_content>: Don't declare.
4746 * tui/tui-winsource.c
4747 (tui_exec_info_window::maybe_allocate_content): Remove.
4748 (tui_source_window_base::update_exec_info): Rename from
4749 set_exec_info_content.
4750 (tui_source_window_base::show_exec_info_content)
4751 (tui_source_window_base::update_exec_info): Remove.
4752
93858ad3
TT
47532019-08-13 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4756 declare.
4757 * tui/tui-winsource.c (tui_update_source_window_as_is)
4758 (tui_update_source_windows_with_addr, tui_erase_source_content):
4759 Update.
4760 (tui_clear_exec_info_content): Remove.
4761
e321e7ce
TT
47622019-08-13 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4765 declare.
4766 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4767 call tui_erase_exec_info_content.
4768 (tui_clear_exec_info_content): Rename from
4769 tui_erase_exec_info_content.
4770 (tui_clear_exec_info_content): Delete.
4771
8270ac62
TT
47722019-08-13 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-winsource.h (struct tui_source_window_base)
4775 <show_exec_info_content>: Declare.
4776 (tui_show_exec_info_content): Don't declare.
4777 * tui/tui-winsource.c
4778 (tui_source_window_base::show_exec_info_content): Rename from
4779 tui_show_exec_info_content.
4780 (tui_source_window_base::update_exec_info): Update.
4781
7b56485d
TT
47822019-08-13 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4785 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4786 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4787 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4788 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4789 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4790 ... here.
4791
7ba913dc
TT
47922019-08-13 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-winsource.h (struct tui_source_window_base)
4795 <update_exec_info>: Declare.
4796 (tui_update_exec_info): Don't declare.
4797 * tui/tui-winsource.c (tui_update_source_window_as_is)
4798 (tui_source_window_base::refresh_all)
4799 (tui_update_all_breakpoint_info): Update.
4800 (tui_source_window_base::update_exec_info): Rename from
4801 tui_update_exec_info.
4802 * tui/tui-stack.c (tui_show_frame_info): Update.
4803
37a4a131
TT
48042019-08-13 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-winsource.h (struct tui_source_window_base)
4807 <set_exec_info_content>: Declare.
4808 (tui_set_exec_info_content): Don't declare.
4809 * tui/tui-winsource.c
4810 (tui_source_window_base::set_exec_info_content): Rename from
4811 tui_set_exec_info_content.
4812 (tui_update_exec_info): Update.
4813
0bd27e07
TT
48142019-08-13 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-winsource.h (struct tui_source_window_base)
4817 <show_source_content>: Declare.
4818 (tui_show_source_content): Don't declare.
4819 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4820 (tui_source_window_base::show_source_content): Rename from
4821 tui_show_source_content.
4822 (tui_source_window_base::refresh_all): Update.
4823 * tui/tui-layout.c (show_source_disasm_command)
4824 (show_source_or_disasm_and_command): Update.
4825
b4ef5aeb
TT
48262019-08-13 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-winsource.c (tui_erase_source_content)
4829 (tui_show_source_content, tui_source_window_base::refresh_all):
4830 Update.
4831 * tui/tui-wingeneral.h
4832 (tui_check_and_display_highlight_if_needed): Don't declare.
4833 * tui/tui-wingeneral.c
4834 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4835 check_and_display_highlight_if_needed.
4836 * tui/tui-win.c (tui_rehighlight_all)
4837 (tui_win_info::make_visible_with_new_height): Update.
4838 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4839 (tui_data_window::erase_data_content)
4840 (tui_data_window::display_all_data): Update.
4841 * tui/tui-data.h (struct tui_win_info)
4842 <check_and_display_highlight_if_needed>: Declare.
4843
fede5273
TT
48442019-08-13 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-win.c (tui_resize_all): Call
4847 tui_delete_invisible_windows.
4848 * tui/tui-layout.c (show_layout): Call
4849 tui_delete_invisible_windows.
4850 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4851 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4852
22c3f490
TT
48532019-08-13 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4856 tui_add_win_to_layout.
4857
16cb7910
TT
48582019-08-13 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4861 * tui/tui-layout.c (tui_default_win_height): Now static.
4862
cc0c3ffb
TT
48632019-08-13 Tom Tromey <tom@tromey.com>
4864
4865 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4866 single switch.
4867 (show_source_disasm_command, show_source_or_disasm_and_command):
4868 Don't check current layout.
4869
3f3ffe54
TT
48702019-08-13 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-wingeneral.c (make_all_visible): Remove.
4873 (tui_make_all_invisible): Simplify.
4874 * tui/tui-layout.c (tui_make_all_invisible): Move from
4875 tui-wingeneral.c; simplify.
4876 (show_layout): Hoist call to tui_make_all_invisible.
4877 (show_data): Don't call tui_make_all_invisible.
4878
69258091
TT
48792019-08-13 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4882 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4883
62cf57fe
TT
48842019-08-13 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4887 tui-data.c.
4888 (show_source_disasm_command, show_data)
4889 (show_source_or_disasm_and_command): Don't use
4890 tui_set_current_layout_to.
4891 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4892 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4893 tui-layout.c.
4894 (tui_set_current_layout_to): Remove.
4895
2afade5d
TT
48962019-08-13 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-layout.c (tui_set_layout): Update.
4899 * tui/tui-data.h (struct tui_layout_def): Remove.
4900 (tui_layout_def): Don't declare.
4901 * tui/tui-data.c (layout_def): Remove.
4902 (tui_layout_def): Remove.
4903
a3504e96
TT
49042019-08-13 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-winsource.h (struct tui_source_window_base)
4907 <clear_detail>: No longer "override".
4908 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4909 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4910 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4911 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4912 Remove.
4913 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4914
29c92911
TT
49152019-08-13 Tom Tromey <tromey@adacore.com>
4916
4917 * tracepoint.c: Don't include readline.h or history.h.
4918
86c6b807
TT
49192019-08-12 Tom Tromey <tom@tromey.com>
4920
4921 * configure: Rebuild.
4922 * configure.ac: Check for readline 7.
4923 * NEWS: Mention readline 7 requirement.
4924 * README: Update.
4925
5db2718c
TT
49262019-08-12 Tom Tromey <tom@tromey.com>
4927
4928 * mingw-hdep.c (gdb_select): Remove readline hack.
4929
dac36daf
PFC
49302019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4931
4932 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4933 when the function fails.
4934
1022c627
AA
49352019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4936
4937 * s390-tdep.c (s390_type_align): New function.
4938 (s390_gdbarch_init): Set it as type_align gdbarch method.
4939
eba4caf2
TV
49402019-08-09 Tom de Vries <tdevries@suse.de>
4941
4942 PR gdb/24591
4943 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4944 pc_low with relocation offset.
4945
123cd851
TT
49462019-08-07 Tom Tromey <tromey@adacore.com>
4947
4948 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4949 (print_frame_args): Update.
4950 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4951 Update.
4952 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4953 * frame.h (struct frame_arg): Add initializers.
4954 <error>: Now a unique_xmalloc_ptr.
4955
3d31bc39
AH
49562019-08-07 Alan Hayward <alan.hayward@arm.com>
4957
4958 * NEWS: Expand the Pointer Authentication entry.
4959 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4960 (aarch64_frame_unmask_lr): ... to this.
4961 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4962 Call aarch64_frame_unmask_lr.
4963 * frame.c (struct frame_info): Add "masked" variable.
4964 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4965 (fprint_frame): Check for masked pc.
4966 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4967 declarations.
4968 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4969 * stack.c (print_frame): Check for masked pc.
4970
0cf9feb9
TT
49712019-08-06 Tom Tromey <tom@tromey.com>
4972
4973 * stabsread.c (patch_block_stabs, read_one_struct_field)
4974 (read_enum_type): Use obstack_strndup.
4975 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4976 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4977 * dwarf2read.c (guess_full_die_structure_name)
4978 (anonymous_struct_prefix): Use obstack_strndup.
4979 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4980 * c-exp.y (yylex): Use obstack_strndup.
4981 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4982 (write_var_or_type): Use obstack_strndup.
4983
efba19b0
TT
49842019-08-06 Tom Tromey <tom@tromey.com>
4985
4986 * symfile.c (reread_symbols): Use obstack_strdup.
4987 * stabsread.c (read_type): Use obstack_strdup.
4988 * gdb_obstack.h (obstack_strdup): New overload.
4989 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4990 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4991 (dwarf2_canonicalize_name): Use obstack_strdup.
4992 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4993 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4994 Use obstack_strdup.
4995
f25102f7
TT
49962019-08-06 Tom Tromey <tom@tromey.com>
4997
4998 * gdb_obstack.h (obstack_strdup): Define.
4999 * gdb_obstack.c (obstack_strdup): Don't define.
5000
021887d8
TT
50012019-08-06 Tom Tromey <tom@tromey.com>
5002
5003 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5004 obstack_strdup.
5005 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5006 obstack_strdup.
5007 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5008 * stabsread.c (common_block_start): Use obstack_strdup.
5009 * objfiles.c (set_objfile_main_name, objfile): Use
5010 obstack_strdup.
5011 * namespace.c (add_using_directive): Use obstack_strdup.
5012 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5013 * jit.c (finalize_symtab): Use obstack_strdup.
5014 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5015 (guess_partial_die_structure_name, partial_die_info::fixup)
5016 (dwarf2_name): Use obstack_strdup.
5017 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5018 obstack_strdup.
5019 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5020 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5021 obstack_strdup.
5022 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5023
d2834edc
PW
50242019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * unittests/help-doc-selftests.c: New file.
5027 * Makefile.in: Add the new file.
5028
590042fc
PW
50292019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5030
5031 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5032 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5033 the full first line, except when FOR_VALUE_PREFIX. In this case,
5034 the trailing '.' is not output, and the first character is uppercased.
5035 (print_help_for_command): Update call to print_doc_line.
5036 (print_doc_of_command): Likewise.
5037 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5038 * cli/cli-option.c (append_indented_doc): Do not append newline.
5039 (build_help_option): Append newline after first appended_indented_doc
5040 only if a second call is done.
5041 (build_help): Append 2 new lines before each option, except the first
5042 one.
5043 * compile/compile.c (_initialize_compile): Add new lines after
5044 %OPTIONS%, when not at the end of the help.
5045 Change help doc or code
5046 producing the help doc to respect the invariants.
5047 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5048 Also removed the new line after 'Options:', as all other commands
5049 do not put an empty line between 'Options:' and the first option.
5050 * printcmd.c (_initialize_printcmd): Likewise.
5051 * stack.c (_initialize_stack): Likewise.
5052 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5053 incorrectly telling COMMAND is optional.
5054 * ada-lang.c (_initialize_ada_language): Change help doc or code
5055 producing the help doc to respect the invariants.
5056 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5057 * breakpoint.c (_initialize_breakpoint): Likewise.
5058 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5059 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5060 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5061 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5062 _initialize_cli_style): Likewise.
5063 * corelow.c (core_target_info): Likewise.
5064 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5065 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5066 * filesystem.c (_initialize_filesystem): Likewise.
5067 * frame.c (_initialize_frame): Likewise.
5068 * gnu-nat.c (add_task_commands): Likewise.
5069 * infcall.c (_initialize_infcall): Likewise.
5070 * infcmd.c (_initialize_infcmd): Likewise.
5071 * interps.c (_initialize_interpreter): Likewise.
5072 * language.c (_initialize_language): Likewise.
5073 * linux-fork.c (_initialize_linux_fork): Likewise.
5074 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5075 * maint.c (_initialize_maint_cmds): Likewise.
5076 * memattr.c (_initialize_mem): Likewise.
5077 * printcmd.c (_initialize_printcmd): Likewise.
5078 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5079 _RegEx): Likewise.
5080 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5081 * record-btrace.c (_initialize_record_btrace): Likewise.
5082 * record-full.c (_initialize_record_full): Likewise.
5083 * record.c (_initialize_record): Likewise.
5084 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5085 * regcache.c (_initialize_regcache): Likewise.
5086 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5087 _initialize_remote): Likewise.
5088 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5089 * serial.c (_initialize_serial): Likewise.
5090 * skip.c (_initialize_step_skip): Likewise.
5091 * source.c (_initialize_source): Likewise.
5092 * stack.c (_initialize_stack): Likewise.
5093 * symfile.c (_initialize_symfile): Likewise.
5094 * symtab.c (_initialize_symtab): Likewise.
5095 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5096 * top.c (init_main): Likewise.
5097 * tracefile-tfile.c (tfile_target_info): Likewise.
5098 * tracepoint.c (_initialize_tracepoint): Likewise.
5099 * tui/tui-win.c (_initialize_tui_win): Likewise.
5100 * utils.c (add_internal_problem_command): Likewise.
5101 * valprint.c (value_print_option_defs): Likewise.
5102
404f2902
FCE
51032019-08-06 Frank Ch. Eigler <fche@redhat.com>
5104
5105 PR build/24886
5106 * configure.ac: Drop enable-libmcheck support.
5107 * configure, config.in: Rebuild.
5108 * libmcheck.m4: Remove.
5109 * acinclude.m4: Don't include it.
5110 * Makefile.in: Don't distribute it.
5111 * top.c (print_gdb_configuration): Don't mention it.
5112
046bebe1
TT
51132019-08-06 Tom Tromey <tom@tromey.com>
5114
5115 * utils.c (set_output_style): Sometimes pass stream to
5116 emit_style_escape.
5117 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5118 * record-btrace.c (btrace_insn_history): Update.
5119 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5120 method.
5121 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5122 Update initializers.
5123 <m_uiout>: New field.
5124 <m_di>: Move lower.
5125 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5126 Remove "uiout" parameter.
5127 (dump_insns): Update.
5128 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5129 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5130
ddbcedf5
CB
51312019-08-06 Christian Biesinger <cbiesinger@google.com>
5132
5133 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5134 (error_in_psymtab_expansion): Likewise.
5135 (lookup_symbol_via_quick_fns): Likewise.
5136 (basic_lookup_transparent_type_quick): Likewise.
5137 (basic_lookup_transparent_type_1): Likewise.
5138
b08b16c8
TT
51392019-08-06 Tom Tromey <tromey@adacore.com>
5140
5141 * source.c (last_source_error): Now bool.
5142 (print_source_lines_base): Make "noprint" bool. Only open
5143 source file when last_source_visited changes.
5144
cb44333d
TT
51452019-08-06 Tom Tromey <tromey@adacore.com>
5146
5147 * annotate.c (annotate_source_line): Use g_source_cache.
5148 * source-cache.c (source_cache::get_plain_source_lines): Change
5149 parameters. Populate m_offset_cache.
5150 (source_cache::ensure): New method.
5151 (source_cache::get_line_charpos): New method.
5152 (extract_lines): Move lower. Change parameters.
5153 (source_cache::get_source_lines): Move lower.
5154 * source-cache.h (class source_cache): Update comment.
5155 <get_line_charpos>: New method.
5156 <get_source_lines>: Update comment.
5157 <clear>: Clear m_offset_cache.
5158 <get_plain_source_lines>: Change parameters.
5159 <ensure>: New method
5160 <m_offset_cache>: New member.
5161 * source.c (forget_cached_source_info_for_objfile): Update.
5162 (info_source_command): Use g_source_cache.
5163 (find_source_lines, open_source_file_with_line_charpos): Remove.
5164 (print_source_lines_base, search_command_helper): Use g_source_cache.
5165 * source.h (open_source_file_with_line_charpos): Don't declare.
5166 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5167 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5168 Use g_source_cache.
5169
872dceaa
TT
51702019-08-06 Tom Tromey <tromey@adacore.com>
5171
5172 * source-cache.c (source_cache::get_plain_source_lines):
5173 Remove "first_line" and "last_line" parameters.
5174 (source_cache::get_source_lines): Cache plain text.
5175 * source-cache.h (class source_cache)
5176 <get_plain_source_lines>: Update.
5177
269249d9
TT
51782019-08-06 Tom Tromey <tromey@adacore.com>
5179
5180 * source-cache.c (extract_lines): No longer a method.
5181 Changed type of parameter. Include final newline.
5182 (selftests::extract_lines_test): New function.
5183 (_initialize_source_cache): Likewise.
5184 * source-cache.h (class source_cache)
5185 <extract_lines>: Don't declare.
5186
c0e8dcd8
TT
51872019-08-06 Tom Tromey <tromey@adacore.com>
5188
5189 * breakpoint.c (init_breakpoint_sal): Update.
5190 (breakpoint): Update.
5191 * breakpoint.h (struct breakpoint) <filter>: Now a
5192 unique_xmalloc_ptr.
5193
0b27c27d
CB
51942019-08-05 Christian Biesinger <cbiesinger@google.com>
5195
5196 * NEWS: Mention dictionary access on blocks.
5197 * python/py-block.c (blpy_getitem): New function.
5198 (block_object_as_mapping): New struct.
5199 (block_object_type): Use new struct for tp_as_mapping field.
5200
4ee94178
CB
52012019-08-05 Christian Biesinger <cbiesinger@google.com>
5202
5203 * objfiles.h (objfile): Add a comment describing partial symbols.
5204
8abfcabc
TT
52052019-08-05 Tom Tromey <tromey@adacore.com>
5206
5207 * compile/compile.c (_initialize_compile): Use _(), not N_().
5208 * thread.c (_initialize_thread): Use _(), not N_().
5209 * stack.c (_initialize_stack): Use _(), not N_().
5210 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5211
2b79f376
SM
52122019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * dwarf2read.c (struct dw2_symtab_iterator):
5215 <want_specific_block>: Remove.
5216 <block_index>: Change type to gdb::optional.
5217 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5218 change type of BLOCK_INDEX parameter to gdb::optional.
5219 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5220 (dw2_lookup_symbol): Don't pass argument for
5221 WANT_SPECIFIC_BLOCK.
5222 (dw2_expand_symtabs_for_function): Don't pass argument for
5223 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5224 (class dw2_debug_names_iterator)
5225 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5226 parameter, change BLOCK_INDEX type to gdb::optional.
5227 <m_want_specific_block>: Remove.
5228 <m_block_index>: Change type to gdb::optional.
5229 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5230 gdb::optional. Re-write in function of gdb::optional.
5231 (dw2_debug_names_lookup_symbol): Don't pass argument for
5232 WANT_SPECIFIC_BLOCK.
5233 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5234 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5235 BLOCK_INDEX.
5236
ae60f04e
PW
52372019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5238
5239 * NEWS: Mention changes to "info sources" command.
5240
28cd9371
PW
52412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5242
5243 * symtab.c (filename_partial_match_opts): New struct type.
5244 (struct output_source_filename_data): New members
5245 regexp, c_regexp, partial_match.
5246 (output_source_filename): Use new members to decide to print file.
5247 (info_sources_option_defs): New variable.
5248 (make_info_sources_options_def_group, print_info_sources_header,
5249 info_sources_command_completer):
5250 New functions.
5251 (info_sources_command): Read new optional arguments.
5252 (_initialize_symtab): Update info sources help.
5253
ca683e3a
AO
52542019-08-02 Alexandre Oliva <oliva@adacore.com>
5255
5256 * ada-lang.c (exception_support_info_v0): Renamed from...
5257 (default_exception_support_info): ... this. Create new
5258 definition for v1.
5259 (ada_has_this_exception_support): Look up catch_handlers_sym.
5260 (ada_exception_support_info_sniffer): Try v0 after default.
5261
f1264162
TT
52622019-08-01 Tom Tromey <tromey@adacore.com>
5263
5264 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5265 gdbarch.h.
5266
0a7b2485
CB
52672019-08-01 Christian Biesinger <cbiesinger@google.com>
5268
5269 * s12z-tdep.c: Fix include path for s12z-opc.h.
5270
c6bdbeb7
AH
52712019-08-01 Alan Hayward <alan.hayward@arm.com>
5272
5273 * NEWS: Require GNU make 3.82.
5274
a2bd7b82
TT
52752019-07-16 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5278 declare.
5279
aa3b6533
TT
52802019-07-30 Tom Tromey <tromey@adacore.com>
5281
5282 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5283
a1530dc7
KB
52842019-07-30 Kevin Buettner <kevinb@redhat.com>
5285
5286 * printcmd.c (print_address_symbolic): Print negative offsets.
5287 (build_address_symbolic): Force signed arithmetic when computing
5288 offset.
5289
2906593f
CB
52902019-07-30 Christian Biesinger <cbiesinger@google.com>
5291
5292 PR/24474: Add a function to lookup static variables.
5293 * NEWS: Mention this new function.
5294 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5295 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5296 * python/python.c (python_GdbMethods): Add new function.
5297
c620ed88
CB
52982019-07-29 Christian Biesinger <cbiesinger@google.com>
5299
5300 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5301 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5302 (objfpy_lookup_static_symbol): New function.
5303 (objfile_object_methods): Add new functions.
5304
bc4268a5
PW
53052019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5306
5307 * NEWS: Mention 'set|show print frame-info'. Mention new
5308 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5309 backtrace argument. Mention that python frame filtering code
5310 is now consistent with what 'backtrace' command prints.
5311
4b5e8d19
PW
53122019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313
5314 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5315 comments.
5316 (print_frame_info_auto, print_frame_info_source_line,
5317 print_frame_info_location, print_frame_info_source_and_location,
5318 print_frame_info_location_and_address, print_frame_info_short_location):
5319 New declarations.
5320 (struct frame_print_options): New member print_frame_info.
5321 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5322 * stack.h (get_user_print_what_frame_info): New declaration.
5323 (frame_show_address): New declaration.
5324 * stack.c (print_frame_arguments_choices): New value 'presence'.
5325 (print_frame_info_auto, print_frame_info_source_line,
5326 print_frame_info_location, print_frame_info_source_and_location,
5327 print_frame_info_location_and_address, print_frame_info_short_location,
5328 print_frame_info_choices, print_frame_info_print_what): New definitions.
5329 (print_frame_args): Only print dots for args if print frame-arguments
5330 is 'presence'.
5331 (frame_print_option_defs): New element for "frame-info".
5332 (get_user_print_what_frame_info): New function.
5333 (frame_show_address): Make non static. Move comment to stack.h.
5334 (print_frame_info_to_print_what): New function.
5335 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5336 to decide what to print.
5337 (backtrace_command_1): Handle the new print_frame_arguments_presence
5338 value.
5339 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5340 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5341 (py_print_frame): In non-mi mode, use LOCATION as default for
5342 print_what, similarly to frame information printed directly by
5343 backtrace command. Handle frame-info user option in non MI mode.
5344
6bdfee81
KB
53452019-07-27 Kevin Buettner <kevinb@redhat.com>
5346
5347 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5348 Add case for debugging 32-bit target on 64-bit host. Revise
5349 comment.
5350
98a617f8
KB
53512019-07-27 Kevin Buettner <kevinb@redhat.com>
5352
5353 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5354 instead of find_function_entry_range_from_pc.
5355
567238c9
KB
53562019-07-27 Kevin Buettner <kevinb@redhat.com>
5357
5358 * stack.c (find_frame_funname): Remove code which preferred
5359 minsym over symtab sym in "certain pathological cases".
5360
2dc80cf8
KB
5361 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5362 parameter. Change type of "do_demangle" to bool.
5363 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5364 Pass suitable "prefer_sym_over_minsym" flag to
5365 build_address_symbolic(). Don't output "+" for negative offsets.
5366 * printcmd.c (print_address_symbolic): Update invocation of
5367 build_address_symbolic to include a "prefer_sym_over_minsym"
5368 flag.
5369 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5370 Restrict cases in which use of minimal symbol is preferred to that
5371 of a found symbol. Update comments.
5372
1aff7173
KB
5373 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5374 for entry pc when entry pc is out of range for that FDE.
5375
89b085ac
BC
53762019-07-26 Brian Callahan <bcallah@openbsd.org>
5377
5378 PR gdb/24839:
5379 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5380 type.
5381
f32feb4a
CB
53822019-07-25 Christian Biesinger <cbiesinger@google.com>
5383
5384 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5385 this function's Python signature.
5386
5387
53882019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5389
5390 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5391 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5392 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5393 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5394 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5395
5396
c54e4253
YS
53972019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5398
5399 * h8300-tdep.c (h8300_register_name_common): New.
5400 h8300_register_name): Use h8300_register_name_common.
5401 (h8300s_register_name): Likewise.
5402 (h8300sx_register_name): Likewise.
5403 (h8300h_register_nam): New.
5404 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5405
5406
40eadf04
SP
54072019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5408
5409 * arm-tdep.c (arm_skip_cmse_entry): New function.
5410 (arm_is_sgstubs_section): New function.
5411 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5412
bfa2a36d
TT
54132019-07-22 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5416 Don't self-assign.
5417
a8e9d247
AB
54182019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5419
5420 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5421 type_print.
5422
eb86c5e2
AB
54232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5424
5425 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5426 so that GDB doesn't match any msymbols when searching in the
5427 TYPES_DOMAIN.
5428 (print_symbol_info): Print using typedef_print or type_print based
5429 on the type of the symbol. Add updated FIXME comment moved from...
5430 (_initialize_symtab): ... move and update FIXME comment to above.
5431
a8eab7c6
AB
54322019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * NEWS: Mention adding -q option to "info types".
5435 * symtab.c (struct info_types_options): New struct.
5436 (info_types_options_defs): New variable.
5437 (make_info_types_options_def_group): New function.
5438 (info_types_command): Use gdb::option framework to parse options.
5439 (info_types_command_completer): New function.
5440 (_initialize_symtab): Extend the help text on "info types" and
5441 register command completer.
5442
b4603c34
CB
54432019-07-21 Christian Biesinger <cbiesinger@google.com>
5444
5445 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5446 (lookup_symbol_in_objfile): Change int to block_enum and add a
5447 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5448
c8cdc1e0
CB
54492019-07-20 Christian Biesinger <cbiesinger@google.com>
5450
5451 * MAINTAINERS (Write After Approval): Add self.
5452
01e175fe
AB
54532019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5456 instruction to the dummy code region.
5457
56f79b63
TT
54582019-07-19 Tom Tromey <tromey@adacore.com>
5459
5460 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5461 (ARGSUSED, PARAMS, __func__): Remove rules.
5462
4c5aa8e0
AH
54632019-07-19 Alan Hayward <alan.hayward@arm.com>
5464
5465 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5466 * features/arm/arm-with-iwmmxt.c: Remove.
5467 * features/arm/arm-with-iwmmxt.xml: Remove.
5468 * features/arm/arm-with-m-fpa-layout.c: Remove.
5469 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5470 * features/arm/arm-with-m-vfp-d16.c: Remove.
5471 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5472 * features/arm/arm-with-m.c: Remove.
5473 * features/arm/arm-with-m.xml: Remove.
5474 * features/arm/arm-with-neon.c: Remove.
5475 * features/arm/arm-with-neon.xml: Remove.
5476 * features/arm/arm-with-vfpv2.c: Remove.
5477 * features/arm/arm-with-vfpv2.xml: Remove.
5478 * features/arm/arm-with-vfpv3.c: Remove.
5479 * features/arm/arm-with-vfpv3.xml: Remove.
5480
f42b2617
AH
54812019-07-19 Alan Hayward <alan.hayward@arm.com>
5482
5483 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5484
f29ec966
AH
54852019-07-19 Alan Hayward <alan.hayward@arm.com>
5486
5487 * arch/aarch32.c (aarch32_create_target_description): Create
5488 target descriptions using features.
5489 * arch/arm.c (arm_create_target_description)
5490 (arm_create_mprofile_target_description): Likewise.
5491 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5492
d105cce5
AH
54932019-07-19 Alan Hayward <alan.hayward@arm.com>
5494
5495 * Makefile.in: Add new files.
5496 * aarch32-tdep.c: New file.
5497 * aarch32-tdep.h: New file.
5498 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5499 Call aarch32_read_description.
5500 * arch/aarch32.c: New file.
5501 * arch/aarch32.h: New file.
5502 * arch/arm.c (arm_create_target_description)
5503 (arm_create_mprofile_target_description): New function.
5504 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5505 (arm_create_target_description)
5506 (arm_create_mprofile_target_description): New declaration.
5507 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5508 read_description functions.
5509 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5510 Likewise.
5511 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5512 * arm-tdep.c (tdesc_arm_list): New variable.
5513 (arm_register_g_packet_guesses): Call create description functions.
5514 (arm_read_description) (arm_read_mprofile_description): New
5515 function.
5516 * arm-tdep.h (arm_read_description)
5517 (arm_read_mprofile_description): Add declaration.
5518 * configure.tgt: Add new files.
5519
afe09f0b
GL
55202019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5521
5522 * top.c (new_ui_command): Open specified terminal just once.
5523
cd215b2e
TT
55242019-07-18 Tom Tromey <tromey@adacore.com>
5525
5526 * symtab.c (main_name): Constify return type.
5527 * symfile.c (set_initial_language): Update.
5528 * symtab.h (main_name): Constify return type.
5529
d8f68fcb
TT
55302019-07-17 Tom Tromey <tom@tromey.com>
5531
5532 * tui/tui-winsource.c (tui_update_source_window)
5533 (tui_update_source_window_as_is)
5534 (tui_update_source_windows_with_line): Remove return.
5535 * tui/tui-disasm.c (tui_show_disassem)
5536 (tui_show_disassem_and_update_source): Remove return.
5537 * tui/tui.c (tui_reset): Remove return.
5538 * tui/tui-wingeneral.c
5539 (tui_check_and_display_highlight_if_needed): Remove return.
5540
ca5af91e
TT
55412019-07-17 Tom Tromey <tom@tromey.com>
5542
5543 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5544
5104fe36
TT
55452019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-winsource.h (struct tui_exec_info_window)
5548 (struct tui_source_window_base): Move from tui-data.h.
5549 * tui/tui-winsource.c: Move many method definitions from
5550 elsewhere. Remove "structuring" comments.
5551 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5552 (tui_source_window_base::refresh_window): Move to
5553 tui-winsource.c.
5554 * tui/tui-win.c (tui_source_window_base::refresh_all)
5555 (tui_source_window_base::update_tab_width)
5556 (tui_source_window_base::set_new_height)
5557 (tui_source_window_base::do_make_visible_with_new_height): Move to
5558 tui-winsource.c.
5559 * tui/tui-source.h: Update.
5560 * tui/tui-source.c (tui_source_window_base::reset): Move to
5561 tui-winsource.c.
5562 * tui/tui-disasm.h: Update.
5563 * tui/tui-data.h (struct tui_exec_info_window): Move to
5564 tui-winsource.h.
5565 (struct tui_source_window_base): Likewise.
5566 * tui/tui-data.c (tui_source_window_base::clear_detail)
5567 (tui_source_window_base, ~tui_source_window_base): Move to
5568 tui-winsource.c.
5569
daa15dde
TT
55702019-07-17 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-win.c (tui_resize_all)
5573 (tui_source_window_base::update_tab_width)
5574 (tui_adjust_win_heights): Update.
5575 (tui_win_info::make_invisible_and_set_new_height): Rename from
5576 make_invisible_and_set_new_height.
5577 * tui/tui-data.h (struct tui_win_info)
5578 <make_invisible_and_set_new_height>: New method.
5579
bfad4537
TT
55802019-07-17 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui.c: Update.
5583 * tui/tui-source.h (struct tui_source_window): Move from
5584 tui-data.h.
5585 * tui/tui-layout.c: Update.
5586 * tui/tui-disasm.c: Update.
5587 * tui/tui-data.h (struct tui_source_window): Move to
5588 tui-source.h.
5589
88f7e873
TT
55902019-07-17 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5593 tui-data.h.
5594 * tui/tui-data.h (struct tui_disasm_window): Move to
5595 tui-disasm.h.
5596
96bd6233
TT
55972019-07-17 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-regs.h (struct tui_data_item_window): Move from
5600 tui-data.h.
5601 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5602 * tui/tui-data.h (struct tui_data_item_window): Move to
5603 tui-regs.h.
5604 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5605
ce38393b
TT
56062019-07-17 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui.c: Update.
5609 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5610 (tui_cmd_window::max_height): Move to tui-command.c.
5611 * tui/tui-layout.c: Update.
5612 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5613 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5614 tui-command.c.
5615 * tui/tui-command.h (struct tui_cmd_window): Move from
5616 tui-data.h.
5617 * tui/tui-command.c: Remove "structuring" comments.
5618 (tui_cmd_window::clear_detail)
5619 (tui_cmd_window::do_make_visible_with_new_height)
5620 (tui_cmd_window::max_height): Move from elsewhere.
5621
2d8b51cb
TT
56222019-07-17 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5625 Now static.
5626 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5627 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5628
18ab23af
TT
56292019-07-17 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui.c: Update.
5632 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5633 tui-regs.c.
5634 * tui/tui-windata.h: Remove file.
5635 * tui/tui-windata.c: Remove file.
5636 * tui/tui-win.c (tui_data_window::set_new_height)
5637 (tui_data_window::do_make_visible_with_new_height): Move to
5638 tui-regs.c.
5639 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5640 * tui/tui-regs.c: Remove "structuring" comments.
5641 (tui_data_window::first_data_item_displayed)
5642 (tui_data_window::delete_data_content_windows)
5643 (tui_data_window::erase_data_content)
5644 (tui_data_window::display_all_data)
5645 (tui_data_window::refresh_all)
5646 (tui_data_window::do_scroll_vertical)
5647 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5648 (tui_data_window::do_make_visible_with_new_height)
5649 (tui_data_window::refresh_window): Move from elsewhere.
5650 (_initialize_tui_regs): Move to end of file.
5651 * tui/tui-layout.c: Update.
5652 * tui/tui-hooks.c: Update.
5653 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5654 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5655 tui-regs.c.
5656 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5657
88b7e7cc
TT
56582019-07-17 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5661 seen.
5662
0fcd3711
TT
56632019-07-17 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-win.c (tui_source_window_base::set_new_height)
5666 (tui_source_window_base::do_make_visible_with_new_height): Use
5667 m_has_locator field directly.
5668 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5669 method.
5670 (struct tui_source_window_base) <has_locator>: Likewise.
5671
4a38112d
TT
56722019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5675 Don't declare.
5676 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5677 Remove.
5678 * tui/tui-win.c (tui_source_window_base::set_new_height)
5679 (tui_source_window_base::set_new_height)
5680 (make_invisible_and_set_new_height)
5681 (tui_source_window_base::do_make_visible_with_new_height)
5682 (tui_source_window_base::do_make_visible_with_new_height):
5683 Update.
5684 * tui/tui-layout.c (show_source_disasm_command, show_data)
5685 (show_source_or_disasm_and_command): Update.
5686 * tui/tui-layout.c (show_layout): Update.
5687
09129226
TT
56882019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-layout.c (make_data_window): Remove.
5691 (show_data): Unify creation and re-initialization cases.
5692
4a8a5e84
TT
56932019-07-17 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui-layout.c (make_source_window, make_disasm_window):
5696 Remove.
5697 (show_data): Unify creation and re-initialization cases.
5698
76d2be8e
TT
56992019-07-17 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-layout.c (make_command_window): Remove.
5702 (show_source_disasm_command, show_source_or_disasm_and_command):
5703 Unify creation and re-initialization cases.
5704
890b8bde
TT
57052019-07-17 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5708 creation and re-initialization cases.
5709
2cdfa113
TT
57102019-07-17 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-regs.c (tui_get_register): Return void.
5713
8e3cfd09
TT
57142019-07-17 Tom Tromey <tom@tromey.com>
5715
5716 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5717 Simplify.
5718
f4e04977
TT
57192019-07-17 Tom Tromey <tom@tromey.com>
5720
5721 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5722 resetting.
5723
0379b883
TT
57242019-07-17 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5727 * tui/tui-regs.c (tui_reg_layout): New function.
5728 (tui_show_registers, tui_reg_command): Use it.
5729 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5730 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5731 parameters.
5732 (tui_layout_command): Remove.
5733
b7fbad91
TT
57342019-07-17 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-layout.h (tui/tui-layout): Return void.
5737 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5738
4e1e56b9
TT
57392019-07-17 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-layout.c (show_source_disasm_command, show_data):
5742 Update.
5743 (reset_locator): Remove.
5744 (show_source_or_disasm_and_command): Update.
5745
1e0c09ba
TT
57462019-07-17 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-source.c (tui_source_window_base::reset): Remove
5749 win_type parameter.
5750 * tui/tui-layout.c (make_command_window, make_source_window)
5751 (make_disasm_window, make_data_window)
5752 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5753 (reset_locator, show_source_or_disasm_and_command): Update.
5754 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5755 win_type parameter.
5756 (struct tui_source_window_base) <reset>: Likewise.
5757
1bf605de
TT
57582019-07-17 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-layout.c (show_source_disasm_command): Use
5761 reset_locator.
5762 (reset_locator): New function.
5763 (init_and_make_win): Remove.
5764 (show_source_or_disasm_and_command): Use reset_locator.
5765
098f9ed4
TT
57662019-07-17 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5769 condition.
5770 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5771 Remove condition.
5772 * tui/tui-source.c (tui_source_window_base::reset): New method.
5773 * tui/tui-layout.c (make_command_window): Don't call
5774 init_and_make_win.
5775 (make_source_window, make_disasm_window): Don't call
5776 make_source_or_disasm_window.
5777 (make_data_window): Don't call init_and_make_win. Change calling
5778 convention.
5779 (show_source_disasm_command, show_data): Simplify.
5780 (make_source_or_disasm_window): Remove.
5781 (show_source_or_disasm_and_command): Simplify.
5782 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5783 (struct tui_source_window_base) <reset>: Likewise.
5784 <execution_info>: Remove initializer.
5785 * tui/tui-data.c (tui_source_window_base): Initialize
5786 execution_info.
5787
80110957
TT
57882019-07-17 Tom Tromey <tom@tromey.com>
5789
5790 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5791 variable.
5792
cf82af05
TT
57932019-07-17 Tom Tromey <tom@tromey.com>
5794
5795 * tui/tui.c (tui_rl_other_window): Update.
5796 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5797 superclass method first. Always iterate over regs_content.
5798 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5799 method.
5800 * tui/tui-win.c (tui_set_focus_command): Update.
5801
01aeb396
TT
58022019-07-17 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-win.c (tui_set_focus_command): Rename from
5805 tui_set_focus. Call tui_enable.
5806 (tui_set_focus_command): Remove.
5807
fd6c75ee
TT
58082019-07-17 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5811 refresh_window.
5812 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5813 touchwin.
5814 (tui_data_window::refresh_window): Call refresh_window on data
5815 items. Always call superclass refresh_window.
5816 (tui_win_info::refresh): Remove.
5817 (tui_source_window_base::refresh_window): Update.
5818 (tui_refresh_all): Update.
5819 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5820 refresh_window.
5821 (show_source_or_disasm_and_command): Likewise.
5822 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5823 (struct tui_source_window_base) <refresh>: Likewise.
5824
f6cc34a9
TT
58252019-07-17 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-winsource.c (tui_clear_source_content)
5828 (tui_show_source_content): Update.
5829 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5830 whether content is empty.
5831 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5832 Remove.
5833
f31ec9af
TT
58342019-07-17 Tom Tromey <tom@tromey.com>
5835
5836 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5837 window's contents.
5838 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5839 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5840
d1b6f1e5
TT
58412019-07-17 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5844 (struct tui_data_item_window): Update.
5845
d9743a13
TT
58462019-07-17 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5849 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5850 defines.
5851
caf0bc4e
TT
58522019-07-17 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-winsource.h (tui_erase_source_content)
5855 (tui_clear_source_content): Remove "display_prompt" parameter.
5856 * tui/tui-winsource.c (tui_update_source_window_as_is)
5857 (tui_update_source_windows_with_addr): Update.
5858 (tui_clear_source_content): Remove "display_prompt" parameter.
5859 (tui_erase_source_content): Likewise. Simplify.
5860 (tui_show_source_content): Update.
5861 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5862 * tui/tui-stack.c (tui_show_frame_info): Update.
5863 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5864 Remove defines.
5865
9d391078
TT
58662019-07-17 Tom Tromey <tom@tromey.com>
5867
5868 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5869 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5870 parameter.
5871 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5872 parameter.
5873
a38da35d
TT
58742019-07-17 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-winsource.c (tui_clear_source_content)
5877 (tui_show_source_content, tui_show_exec_info_content)
5878 (tui_clear_exec_info_content): Update.
5879 * tui/tui-stack.c (tui_show_locator_content): Update.
5880 (tui_show_frame_info): Update.
5881 * tui/tui-source.h (tui_source_window): Don't declare.
5882 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5883 from tui_source_is_displayed.
5884 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5885 Remove field.
5886 (struct tui_source_window_base) <content_in_use>: New field. Now
5887 bool.
5888 (struct tui_source_window) <showing_source_p>: New method.
5889 (TUI_SRC_WIN): Change cast.
5890 * tui/tui-data.c (tui_initialize_static_data): Update.
5891
c2cd8994
TT
58922019-07-17 Tom Tromey <tom@tromey.com>
5893
5894 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5895 location_matches_p.
5896 * tui/tui-source.c (tui_source_window::location_matches_p): New
5897 method.
5898 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5899 method.
5900 * tui/tui-data.h (struct tui_source_window_base)
5901 <location_matches_p>: New method.
5902 (struct tui_source_window, struct tui_disasm_window)
5903 <location_matches_p>: Likewise.
5904
4dde7b34
TT
59052019-07-17 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-win.c (tui_set_win_height_command): Rename from
5908 tui_set_win_height.
5909 (tui_set_win_height_command): Remove.
5910
b73dd877
TT
59112019-07-17 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-source.c (tui_source_window): New constructor. Add
5914 observer.
5915 (~tui_source_window): New destructor.
5916 (tui_source_window::style_changed): New method.
5917 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5918 (tui_attach_detach_observers): Update.
5919 * tui/tui-data.h (struct tui_source_window): Make constructor not
5920 inline. Add destructor.
5921 (struct tui_source_window) <style_changed>: New method.
5922 <m_observable>: New member.
5923
ae2b5380
TT
59242019-07-17 Tom Tromey <tom@tromey.com>
5925
5926 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5927 * tui/tui-win.c (tui_resize_all): Fix typo.
5928
1ce3e844
TT
59292019-07-17 Tom Tromey <tom@tromey.com>
5930
5931 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5932 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5933 (tui_refresh_all): Remove "list" parameter. Use foreach.
5934 * tui/tui-win.c (window_name_completer): Use foreach.
5935 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5936 (update_tab_width): Likewise.
5937 * tui/tui-layout.c (show_layout): Update.
5938 * tui/tui-data.h (class tui_window_iterator): New.
5939 (struct all_tui_windows): New.
5940 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5941
fe3eaf1c
TT
59422019-07-17 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5945 parameter. Don't reference globals.
5946 (tui_reg_command): Update.
5947
368c1354
TT
59482019-07-17 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-regs.c (tui_show_registers): Simplify.
5951
e80cd204
TT
59522019-07-17 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-regs.c (tui_show_registers): Update.
5955 (tui_show_register_group): Add win_info parameter.
5956
aca2dd16
TT
59572019-07-17 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5960 Rename from tui_display_reg_element_at_line.
5961 (tui_data_window::display_registers_from_line): Update.
5962 * tui/tui-data.h (struct tui_data_window)
5963 <display_reg_element_at_line>: New method.
5964
517e9505
TT
59652019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-regs.h (tui_display_registers_from)
5968 (tui_display_registers_from_line): Don't declare.
5969 * tui/tui-windata.c (tui_data_window::display_all_data)
5970 (tui_data_window::refresh_all)
5971 (tui_data_window::do_scroll_vertical): Update.
5972 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5973 from tui_display_registers_from.
5974 (tui_display_reg_element_at_line): Update.
5975 (tui_data_window::display_registers_from_line): Rename from
5976 tui_display_registers_from_line.
5977 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5978 display_registers_from_line>: New methods.
5979
f76d8b19
TT
59802019-07-17 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5983 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5984 from tui_erase_data_content.
5985 (tui_data_window::display_all_data)
5986 (tui_data_window::refresh_all)
5987 (tui_data_window::do_scroll_vertical): Update.
5988 * tui/tui-regs.c (tui_show_registers): Update.
5989 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5990 New method.
5991
b4094625
TT
59922019-07-17 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5995 declare.
5996 * tui/tui-windata.c
5997 (tui_data_window::delete_data_content_windows): Rename from
5998 tui_delete_data_content_windows.
5999 (tui_data_window::display_all_data)
6000 (tui_data_window::do_scroll_vertical): Update.
6001 * tui/tui-data.h (struct tui_data_window)
6002 <delete_data_content_windows>: New method.
6003
c223a729
TT
60042019-07-17 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6007 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6008
50daf268
TT
60092019-07-17 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6012 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6013 from tui_display_all_data.
6014 * tui/tui-win.c
6015 (tui_data_window::do_make_visible_with_new_height): Update.
6016 * tui/tui-regs.c (tui_show_registers): Update.
6017 * tui/tui-layout.c (tui_set_layout): Update.
6018 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6019 method.
6020
df5f8cab
TT
60212019-07-17 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6024 * tui/tui-windata.c (tui_display_data_from): Remove.
6025 (tui_data_window::refresh_all): Update.
6026
80cb6c27
TT
60272019-07-17 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6030 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6031 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6032 tui_display_registers_from_line.
6033 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6034 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6035 "force_display" parameter.
6036
baff0c28
TT
60372019-07-17 Tom Tromey <tom@tromey.com>
6038
6039 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6040 declare.
6041 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6042 Rename from tui_first_reg_element_no_inline.
6043 (tui_display_reg_element_at_line)
6044 (tui_display_registers_from_line): Update.
6045 * tui/tui-data.h (struct tui_data_window)
6046 <first_reg_element_no_inline>: New method.
6047
3b23c5f2
TT
60482019-07-17 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-windata.c (tui_display_data_from)
6051 (tui_data_window::do_scroll_vertical): Update.
6052 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6053 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6054 Rename from tui_line_from_reg_element_no.
6055 (tui_display_registers_from_line): Update.
6056 * tui/tui-data.h (struct tui_data_window)
6057 <line_from_reg_element_no>: New method.
6058
0b5ec218
TT
60592019-07-17 Tom Tromey <tom@tromey.com>
6060
6061 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6062 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6063 tui_last_regs_line_no.
6064 (tui_display_reg_element_at_line)
6065 (tui_display_registers_from_line): Update.
6066 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6067 method.
6068
0807ab7b
TT
60692019-07-17 Tom Tromey <tom@tromey.com>
6070
6071 PR tui/24722:
6072 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6073 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6074 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6075 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6076 (tui_update_breakpoint_info): Likewise.
6077 * tui/tui-hooks.c (tui_event_create_breakpoint)
6078 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6079 Update.
6080
9ad7fdef
TT
60812019-07-17 Tom Tromey <tom@tromey.com>
6082
6083 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6084
5813316f
TT
60852019-07-17 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-winsource.c (tui_update_source_window_as_is)
6088 (tui_update_source_windows_with_addr): Update.
6089 * tui/tui-source.h (tui_set_source_content)
6090 (tui_show_symtab_source): Add "win_info" parameter.
6091 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6092 parameter.
6093 (tui_show_symtab_source): Likewise.
6094
00e264e7
TT
60952019-07-17 Tom Tromey <tom@tromey.com>
6096
6097 * tui/tui-wingeneral.c
6098 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6099
06210ce4
TT
61002019-07-17 Tom Tromey <tom@tromey.com>
6101
6102 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6103 (struct tui_cmd_window) <can_scroll>: New method.
6104 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6105 method.
6106
381befee
TT
61072019-07-17 Tom Tromey <tromey@adacore.com>
6108
6109 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6110 do_field_signed>: Rename. Change type of "value".
6111 * ui-out.c (ui_out::field_signed): Rename from field_int.
6112 Change type of "value".
6113 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6114 type of "value".
6115 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6116 do_field_int. Change type of "value".
6117 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6118 do_field_int. Change type of "value".
6119 * tracepoint.c (trace_status_mi, tfind_1)
6120 (print_one_static_tracepoint_marker): Update.
6121 * thread.c (print_thread_info_1, print_selected_thread_frame):
6122 Update.
6123 * stack.c (print_frame, print_frame_info): Update.
6124 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6125 Update.
6126 * source.c (print_source_lines_base): Update.
6127 * skip.c (info_skip_command): Update.
6128 * record-btrace.c (btrace_ui_out_decode_error)
6129 (btrace_call_history_src_line): Update.
6130 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6131 Update.
6132 * progspace.c (print_program_space): Update.
6133 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6134 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6135 do_field_int. Change type of "value".
6136 * mi/mi-out.c (mi_ui_out::do_table_begin)
6137 (mi_ui_out::do_table_header): Update.
6138 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6139 type of "value".
6140 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6141 (mi_cmd_data_list_changed_registers, output_register)
6142 (mi_cmd_data_read_memory, mi_load_progress)
6143 (mi_cmd_trace_frame_collected): Update.
6144 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6145 Update.
6146 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6147 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6148 (mi_cmd_var_list_children, varobj_update_one): Update.
6149 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6150 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6152 * inferior.c (print_inferior): Update.
6153 * gdb_bfd.c (print_one_bfd): Update.
6154 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6155 Update.
6156 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6157 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6158 do_field_int. Change type of "value".
6159 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6160 do_field_int. Change type of "value".
6161 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6162 (print_one_breakpoint_location, print_it_catch_fork)
6163 (print_one_catch_fork, print_it_catch_vfork)
6164 (print_one_catch_vfork, print_it_catch_solib)
6165 (print_it_catch_exec, print_it_ranged_breakpoint)
6166 (print_mention_watchpoint, print_mention_masked_watchpoint)
6167 (bkpt_print_it, update_static_tracepoint): Update.
6168 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6169 * break-catch-syscall.c (print_it_catch_syscall): Update.
6170 * ada-tasks.c (print_ada_task_info): Update.
6171 * ada-lang.c (print_it_exception, print_mention_exception):
6172 Update.
6173
6b78c3f8
AB
61742019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 PR breakpoints/24541
6177 * gdbarch.c: Regenerate.
6178 * gdbarch.h: Regenerate.
6179 * gdbarch.sh: Adjust return type and parameter types for
6180 'stap_adjust_register'.
6181 (i386_stap_adjust_register): Adjust signature and return new
6182 register name.
6183 * stap-probe.c (stap_parse_register_operand): Adjust use of
6184 'gdbarch_stap_adjust_register'.
6185
d72a9b85
TT
61862019-07-17 Tom Tromey <tromey@adacore.com>
6187
6188 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6189 declare VEC.
6190 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6191 std::vector.
6192 (struct s390_process_info): Add initializers.
6193 (s390_add_process): Use new.
6194 (s390_linux_nat_target::low_forget_process): Use delete.
6195 (s390_linux_nat_target::low_new_fork)
6196 (s390_linux_nat_target::stopped_by_watchpoint)
6197 (s390_linux_nat_target::low_prepare_to_resume)
6198 (s390_linux_nat_target::insert_watchpoint)
6199 (s390_linux_nat_target::insert_hw_breakpoint)
6200 (s390_linux_nat_target::remove_watchpoint)
6201 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6202
206e6c58
JB
62032019-07-16 John Baldwin <jhb@FreeBSD.org>
6204
6205 * aarch64-fbsd-nat.c: Include regcache.h.
6206 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6207 argument.
6208 (aarch64_fbsd_nat_target::fetch_registers)
6209 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6210 variable.
6211 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6212
cbde90f2
JB
62132019-07-16 John Baldwin <jhb@FreeBSD.org>
6214
6215 * fbsd-nat.c: Include gdbarch.h.
6216
07128006
TT
62172019-07-15 Tom Tromey <tromey@adacore.com>
6218
6219 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6220
1f77b012
TT
62212019-07-15 Tom Tromey <tromey@adacore.com>
6222
6223 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6224 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6225 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6226 * cli-out.c (cli_ui_out::do_field_int): New method.
6227 * ui-out.c (ui_out::field_unsigned): New method.
6228 * symfile.c (generic_load): Use field_unsigned.
6229 (print_transfer_performance): Likewise.
6230 * record-btrace.c (ui_out_field_uint): Remove.
6231 (btrace_call_history_insn_range, btrace_call_history): Use
6232 field_unsigned.
6233 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6234 field_unsigned.
6235 * ui-out.h (class ui_out) <field_unsigned>: New method.
6236 <do_field_unsigned>: Likewise.
6237
33eca680
TT
62382019-07-15 Tom Tromey <tromey@adacore.com>
6239
6240 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6241 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6242 * target.c (flash_erase_command): Use field_string.
6243 * infrun.c (print_signal_received_reason): Use field_string.
6244 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6245 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6246 field_string.
6247 * ada-tasks.c (print_ada_task_info): Use field_string.
6248
ca8d69be
TT
62492019-07-15 Tom Tromey <tromey@adacore.com>
6250
6251 * target.c (flash_erase_command): Use field_core_addr.
6252 * symfile.c (generic_load): Use field_core_addr.
6253 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6254 Use field_core_addr.
6255 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6256 field_core_addr.
6257
0d4e84ed
AB
62582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6261 value if its desired type is smaller than a CORE_ADDR and signed.
6262
9a49df9d
AB
62632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6266 of changes to field names, and use new is_reference field to
6267 decide if a property is a reference or not.
6268 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6269 field.
6270 (struct dwarf2_property_baton): Update header comment, rename
6271 'referenced_type' to 'property_type' and update comments.
6272 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6273 default property type, store in property baton, update to take
6274 accound of renamed field.
6275 (read_func_scope): Update call to attr_to_dynamic_prop.
6276 (read_array_type): Likewise.
6277 (dwarf2_per_cu_addr_sized_int_type): New function.
6278 (read_subrange_index_type): Move type finding code to
6279 dwarf2_per_cu_addr_sized_int_type.
6280 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6281 (dwarf2_per_cu_addr_type): New function.
6282 (set_die_type): Update calls to attr_to_dynamic_prop.
6283
b86352cf
AB
62842019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * dwarf2read.c (read_subrange_index_type): New function.
6287 (read_subrange_type): Move code into new function and call it.
6288 * gdbtypes.c (create_range_type): Add some asserts.
6289
603490bf
AB
62902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6291
6292 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6293 update return statements.
6294 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6295 declaration, and update comment to match.
6296 * gdbtypes.c (resolve_dynamic_array): Update call to
6297 dwarf2_evaluate_property to match new return type.
6298
592f9d27
AB
62992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * valarith.c (value_subscripted_rvalue): Change lowerbound
6302 parameter type from int to LONGEST.
6303 * value.h (value_subscripted_rvalue): Likewise in declaration.
6304
60cfcb20
AB
63052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * cli/cli-utils.c (info_print_command_completer): New function.
6308 * cli/cli-utils.h: Add 'completer.h' include, and forward
6309 declaration for 'struct cmd_list_element'.
6310 (info_print_command_completer): Declare.
6311 * stack.c (_initialize_stack): Add completer for 'info locals' and
6312 'info args'.
6313 * symtab.c (_initialize_symtab): Add completer for 'info
6314 variables' and 'info functions'.
6315 * NEWS: Mention completion for additional info commands.
6316
b16507e0
AB
63172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 * cli/cli-utils.c (extract_info_print_args): Delete.
6320 (extract_arg_maybe_quoted): Delete.
6321 (info_print_options_defs): New variable.
6322 (make_info_print_options_def_group): New function.
6323 (extract_info_print_options): Define new function.
6324 * cli/cli-utils.h (extract_info_print_args): Delete.
6325 (struct info_print_options): New structure.
6326 (extract_info_print_options): Declare new function.
6327 * stack.c (info_locals_command): Update to use new
6328 extract_info_print_options, also add a header comment.
6329 (info_args_command): Likewise.
6330 * symtab.c (info_variables_command): Likewise.
6331 (info_functions_command): Likewise.
6332
021d8588
AB
63332019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6334
6335 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6336 to extract string arguments.
6337 * common/common-utils.c (extract_string_maybe_quoted): New function.
6338 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6339
b777eb6d
TT
63402019-07-11 Tom Tromey <tromey@adacore.com>
6341
6342 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6343 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6344 * top.h (gdbinit): Don't declare.
6345 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6346 into...
6347 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6348 * top.c (gdb_init): Don't call init_cli_cmds.
6349 (gdbinit): Remove.
6350 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6351
72ee03ff
TT
63522019-07-11 Tom Tromey <tromey@adacore.com>
6353
6354 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6355 after it has been moved.
6356
00db9531
SM
63572019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6358
6359 * valops.c (value_must_coerce_to_target): Change return type to
6360 bool.
6361 * value.h (value_must_coerce_to_target): Likewise.
6362
f2478a7e
SM
63632019-07-10 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * breakpoint.c (is_hardware_watchpoint): Remove
6366 forward-declaration.
6367 (is_masked_watchpoint): Change return type to bool.
6368 (is_tracepoint): Likewise.
6369 (is_breakpoint): Likewise.
6370 (is_hardware_watchpoint): Likewise.
6371 (is_watchpoint): Likewise.
6372 (is_no_memory_software_watchpoint): Likewise.
6373 (is_catchpoint): Likewise.
6374 (breakpoint_1): Make FILTER parameter's return type bool.
6375 is_masked_watchpoint): Change return type to bool.
6376 (save_breakpoints): Make FILTER parameter's return type bool.
6377 * breakpoint.h (is_breakpoint): Change return type to bool.
6378 (is_watchpoint): Likewise.
6379 (is_catchpoint): Likewise.
6380 (is_tracepoint): Likewise.
6381
0d12e84c
TT
63822019-07-10 Tom Tromey <tom@tromey.com>
6383
6384 * defs.h: Don't include gdbarch.h.
6385 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6386 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6387 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6388 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6389 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6390 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6391 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6392 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6393 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6394 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6395 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6396 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6397 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6398 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6399 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6400 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6401 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6402 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6403 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6404 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6405 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6406 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6407 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6408 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6409 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6410 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6411 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6412
f06f1252
TT
64132019-07-10 Tom Tromey <tromey@adacore.com>
6414
6415 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6416 * breakpoint.c (init_ada_exception_breakpoint): Register as
6417 bp_catchpoint.
6418 (print_one_breakpoint_location, print_one_breakpoint): Use
6419 is_ada_exception_catchpoint.
6420 * ada-lang.c (class ada_catchpoint_location): Pass
6421 bp_loc_software_breakpoint to bp_location constructor.
6422 (is_ada_exception_catchpoint): New function.
6423
7a5d944b
TT
64242019-07-10 Tom Tromey <tromey@adacore.com>
6425
6426 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6427 VEC.
6428 (struct arm_exidx_entry): New method operator<.
6429 (struct arm_exidx_data) <section_maps>: Change type.
6430 (arm_exidx_data_free): Remove.
6431 (arm_exidx_data_key): Change type. Move lower.
6432 (arm_exidx_new_objfile): Update.
6433 (arm_compare_exidx_entries): Remove.
6434 (arm_find_exidx_entry, _initialize_arm_tdep)
6435
48c66e1d
TT
64362019-07-10 Tom Tromey <tromey@adacore.com>
6437
6438 * solib-spu.c (ocl_program_data_key): Change type.
6439 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6440 Update.
6441
a269fbf1
TT
64422019-07-10 Tom Tromey <tromey@adacore.com>
6443
6444 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6445 (struct solib_aix_inferior_data) <library_list>: Change type.
6446 (solib_aix_inferior_data_handle): Change type.
6447 (get_solib_aix_inferior_data): Update.
6448 (solib_aix_free_library_list): Remove.
6449 (library_list_start_library): Update.
6450 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6451 return type.
6452 (solib_aix_get_library_list)
6453 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6454 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6455
c294730c
TT
64562019-07-10 Tom Tromey <tromey@adacore.com>
6457
6458 * solib-dsbt.c (struct dsbt_info): Add initializers.
6459 (solib_dsbt_pspace_data): Change type.
6460 (dsbt_pspace_data_cleanup): Remove.
6461 (get_dsbt_info, _initialize_dsbt_solib): Update.
6462
9d52077d
TT
64632019-07-10 Tom Tromey <tromey@adacore.com>
6464
6465 * spu-tdep.c (spu_overlay_data): Change type.
6466 (spu_get_overlay_table, spu_overlay_new_objfile)
6467 (_initialize_spu_tdep): Update.
6468
22a20dca
TT
64692019-07-10 Tom Tromey <tromey@adacore.com>
6470
6471 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6472 destructor.
6473 (dbx_objfile_data_key): Change type and declare later.
6474 (DBX_SYMFILE_INFO): Rewrite.
6475 * dbxread.c (dbx_objfile_data_key): Change type.
6476 (dbx_symfile_init): Update.
6477 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6478 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6479 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6480
cb60f420
TT
64812019-07-10 Tom Tromey <tromey@adacore.com>
6482
6483 * jit.c (jit_program_space_key): Change type. Move lower.
6484 (get_jit_program_space_data): Update.
6485 (jit_program_space_data_cleanup): Remove.
6486 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6487 Update.
6488 (struct jit_program_space_data): Add initializers.
6489
51df2ae3
TT
64902019-07-10 Tom Tromey <tromey@adacore.com>
6491
6492 * solib-darwin.c (struct darwin_info): Add initializers.
6493 (solib_darwin_pspace_data): Change type.
6494 (darwin_pspace_data_cleanup): Remove.
6495 (get_darwin_info, _initialize_darwin_solib): Update.
6496
18101a35
TT
64972019-07-10 Tom Tromey <tromey@adacore.com>
6498
6499 * remote-sim.c (struct sim_inferior_data): Add initializers,
6500 constructor, and destructor.
6501 (sim_inferior_data_key): Change type. Move lower.
6502 (check_for_duplicate_sim_descriptor): Update.
6503 (get_sim_inferior_data): Use new. Update.
6504 (~sim_inferior_data_cleanup): Rename from
6505 sim_inferior_data_cleanup. Simplify.
6506 (gdbsim_close_inferior, simulator_command)
6507 (sim_command_completer, _initialize_remote_sim): Update.
6508 (next_pid, INITIAL_PID): Move earlier.
6509
05b08ac1
TT
65102019-07-10 Tom Tromey <tromey@adacore.com>
6511
6512 * python/python-internal.h (create_thread_object): Return
6513 gdbpy_ref.
6514 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6515 * python/py-inferior.c (struct threadlist_entry): Add
6516 constructor.
6517 <thread_obj>: Now a gdbpy_ref.
6518 (thread_to_thread_object): Update.
6519 (add_thread_object): Use new.
6520 (delete_thread_object): Use delete.
6521 (infpy_threads): Update.
6522 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6523 GIL.
6524
32372d80
TT
65252019-07-10 Tom Tromey <tromey@adacore.com>
6526
6527 * valops.c (value_cast): Specialize error message for Ada.
6528
5c458ae8
SM
65292019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6530
6531 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6532
4c462cb0
SM
65332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6536 bpstat_should_step): Return bool, adjust comments.
6537 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6538 bpstat_should_step): Likewise.
6539
89abbcc2
AH
65402019-07-10 Alan Hayward <alan.hayward@arm.com>
6541
6542 * features/Makefile: Use feature target descriptions for Arm.
6543 * features/arm/arm-core.c: Generate new file.
6544 * features/arm/arm-fpa.c: Likewise.
6545 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6546 * features/arm/arm-m-profile.c: Likewise.
6547 * features/arm/arm-vfpv2.c: Likewise.
6548 * features/arm/arm-vfpv3.c: Likewise.
6549 * features/arm/xscale-iwmmxt.c: Likewise.
6550 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6551
166a82be
AH
65522019-07-10 Alan Hayward <alan.hayward@arm.com>
6553
6554 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6555 ptrace earlier.
6556
9fb4c7e9
AH
65572019-07-10 Alan Hayward <alan.hayward@arm.com>
6558
6559 * features/aarch64-pauth.c: Regenerate.
6560
e2d0f980
SM
65612019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6564 bool.
6565 (bpstat_what): Use false instead of 0.
6566
a38118e5
PA
65672019-07-09 Pedro Alves <palves@redhat.com>
6568
6569 * break-catch-throw.c (is_exception_catchpoint): New.
6570 * breakpoint.c (print_one_breakpoint_location): New parameter
6571 'raw_loc'. Handle it. Use
6572 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6573 looking at the breakpoint's type.
6574 (print_one_breakpoint): If handling "maint info breakpoints", also
6575 print locations of exception catchpoints.
6576 * breakpoint.h (is_exception_catchpoint): Declare.
6577
cb1e4e32
PA
65782019-07-09 Pedro Alves <palves@redhat.com>
6579
6580 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6581 "addr" field.
6582 (allocate_location_exception_catchpoint): New.
6583 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6584 (initialize_throw_catchpoint_ops): Install
6585 allocate_location_exception_catchpoint as allocate_location
6586 method.
6587 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6588 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6589 bp_loc_other.
6590 (breakpoint_address_is_meaningful): Delete.
6591 (bl_address_is_meaningful): New.
6592 (breakpoint_locations_match): Adjust comment.
6593 (bp_location_from_bp_type): New, factored out of...
6594 (bp_location::bp_location(breakpoint *)): ... this.
6595 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6596 factored out of...
6597 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6598 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6599 breakpoint_address_is_meaningful.
6600 (bp_locations_compare): Adjust comment.
6601 (update_global_location_list): Use bl_address_is_meaningful
6602 instead of breakpoint_address_is_meaningful.
6603 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6604 explicit.
6605 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6606 * python/py-breakpoint.c (bppy_get_location): No longer check
6607 whether location is null.
6608
b58a68fe
PA
66092019-07-09 Pedro Alves <palves@redhat.com>
6610
6611 PR c++/15468
6612 * breakpoint.c (print_one_breakpoint_location): Remove
6613 single-location assert.
6614
268a13a5
TT
66152019-07-09 Tom Tromey <tom@tromey.com>
6616
6617 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6618 * configure: Rebuild.
6619 * configure.ac: Change common to gdbsupport.
6620 * gdbsupport: Rename from common.
6621 * acinclude.m4: Change common to gdbsupport.
6622 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6623 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6624 gdbsupport.
6625 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6626 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6627 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6628 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6629 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6630 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6631 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6632 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6633 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6634 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6635 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6636 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6637 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6638 coff-pe-read.c, command.h, compile/compile-c-support.c,
6639 compile/compile-c.h, compile/compile-cplus-symbols.c,
6640 compile/compile-cplus-types.c, compile/compile-cplus.h,
6641 compile/compile-loc2c.c, compile/compile.c, completer.c,
6642 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6643 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6644 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6645 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6646 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6647 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6648 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6649 features/aarch64-core.c, features/aarch64-fpu.c,
6650 features/aarch64-pauth.c, features/aarch64-sve.c,
6651 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6652 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6653 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6654 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6655 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6656 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6657 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6658 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6659 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6660 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6661 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6662 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6663 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6664 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6665 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6666 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6667 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6668 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6669 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6670 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6671 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6672 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6673 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6674 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6675 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6676 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6677 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6678 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6679 minsyms.c, mips-linux-tdep.c, namespace.h,
6680 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6681 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6682 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6683 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6684 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6685 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6686 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6687 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6688 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6689 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6690 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6691 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6692 procfs.c, producer.c, progspace.h, psymtab.h,
6693 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6694 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6695 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6696 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6697 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6698 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6699 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6700 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6701 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6702 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6703 target-memory.c, target.c, target.h, target/waitstatus.c,
6704 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6705 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6706 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6707 unittests/array-view-selftests.c,
6708 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6709 unittests/common-utils-selftests.c,
6710 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6711 unittests/format_pieces-selftests.c,
6712 unittests/function-view-selftests.c,
6713 unittests/lookup_name_info-selftests.c,
6714 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6715 unittests/mkdir-recursive-selftests.c,
6716 unittests/observable-selftests.c,
6717 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6718 unittests/parse-connection-spec-selftests.c,
6719 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6720 unittests/scoped_fd-selftests.c,
6721 unittests/scoped_mmap-selftests.c,
6722 unittests/scoped_restore-selftests.c,
6723 unittests/string_view-selftests.c, unittests/style-selftests.c,
6724 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6725 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6726 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6727 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6728 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6729 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6730
5b0e2db4
AB
67312019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6734 bool value.
6735 (decode_digits_ordinary): Set explicit_line field in sal.
6736 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6737 symtab_and_line that was set on an explicit line number in
6738 assembler code. Do always update the recorded symtab and line if
6739 we do skip the prologue.
6740
0ba852ab
AB
67412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 * breakpoint.c (set_breakpoint_location_function): Remove
6744 explicit_loc parameter.
6745 (momentary_breakpoint_from_master): Update call to
6746 set_breakpoint_location_function.
6747 (add_location_to_breakpoint): Likewise.
6748
b3a7d171
AB
67492019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6752 required features based on default bfd type when no specific bfd
6753 is present.
6754
1f6f6e21
PW
67552019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6756
6757 * NEWS: Mention that GDB printf and eval commands can now print
6758 C-style and Ada-style convenience var strings without
6759 calling the inferior.
6760 * printcmd.c (printf_c_string): Locally print GDB internal var
6761 instead of transiting via the inferior.
6762 (printf_wide_c_string): Likewise.
6763
67642019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6765
5862c886 6766 PR breakpoints/25011
ea142fbf
AH
6767 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6768
0598af48
TT
67692019-07-04 Tom Tromey <tom@tromey.com>
6770
6771 PR tui/24724:
6772 * tui/tui-winsource.c (tui_clear_source_content): Update.
6773 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6774 (tui_update_breakpoint_info): Update.
6775 (tui_set_exec_info_content): Update.
6776 * tui/tui-source.c (tui_set_source_content_nil): Update.
6777 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6778 has_break.
6779 * tui/tui-data.h (enum tui_bp_flag): New.
6780 (tui_bp_flags): New enum flags type.
6781 (struct tui_source_element) <break_mode>: Change type. Rename
6782 from has_break.
6783 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6784 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6785 constants.
6786 * tui/tui-winsource.h: Fix comment.
6787
350fab54
AH
67882019-07-04 Alan Hayward <alan.hayward@arm.com>
6789
6790 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6791 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6792 (store_fpregs_to_thread)
6793 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6794 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6795 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6796 (IWMMXT_REGS_SIZE): Add define.
6797 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6798 (fetch_vfp_regs, store_vfp_regs)
6799 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6800 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6801
f0452268
AH
68022019-07-04 Alan Hayward <alan.hayward@arm.com>
6803
6804 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6805 defines.
6806 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6807 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6808 (ARM_INT_REGISTER_SIZE): ...to this.
6809 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6810 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6811 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6812 (arm_linux_collect_gregset, supply_nwfpe_register)
6813 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6814 defines.
6815 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6816 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6817 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6818 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6819 (arm_return_in_memory, arm_store_return_value)
6820 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6821 (arm_record_ld_st_multiple): Likewise.
6822 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6823 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6824
e935475c
AH
68252019-07-04 Alan Hayward <alan.hayward@arm.com>
6826
6827 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6828 AARCH64_DISPLACED_MODIFIED_INSNS.
6829 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6830 (aarch64_displaced_step_copy_insn): Likewise.
6831 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6832 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6833 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6834 ARM_DISPLACED_MODIFIED_INSNS.
6835 * arm-tdep.c (arm_gdbarch_init): Likewise.
6836 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6837 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6838 (struct arm_displaced_step_closure): Use
6839 ARM_DISPLACED_MODIFIED_INSNS.
6840
df0bb381
AH
68412019-07-04 Alan Hayward <alan.hayward@arm.com>
6842
6843 * features/Makefile: Remove unused xml files.
6844 * features/aarch64.xml: Remove.
6845 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6846 * features/i386/amd64-avx-avx512.xml: Remove.
6847 * features/i386/amd64-avx-linux.xml: Remove.
6848 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6849 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6850 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6851 * features/i386/amd64-avx-mpx.xml: Remove.
6852 * features/i386/amd64-avx.xml: Remove.
6853 * features/i386/amd64-linux.xml: Remove.
6854 * features/i386/amd64-mpx-linux.xml: Remove.
6855 * features/i386/amd64-mpx.xml: Remove.
6856 * features/i386/amd64.xml: Remove.
6857 * features/i386/i386-avx-avx512-linux.xml: Remove.
6858 * features/i386/i386-avx-avx512.xml: Remove.
6859 * features/i386/i386-avx-linux.xml: Remove.
6860 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6861 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6862 * features/i386/i386-avx-mpx-linux.xml: Remove.
6863 * features/i386/i386-avx-mpx.xml: Remove.
6864 * features/i386/i386-avx.xml: Remove.
6865 * features/i386/i386-linux.xml: Remove.
6866 * features/i386/i386-mmx-linux.xml: Remove.
6867 * features/i386/i386-mmx.xml: Remove.
6868 * features/i386/i386-mpx-linux.xml: Remove.
6869 * features/i386/i386-mpx.xml: Remove.
6870 * features/i386/i386.xml: Remove.
6871 * features/i386/x32-avx-avx512-linux.xml: Remove.
6872 * features/i386/x32-avx-linux.xml: Remove.
6873 * features/i386/x32-linux.xml: Remove.
6874
edd6266a
AH
68752019-07-04 Alan Hayward <alan.hayward@arm.com>
6876
6877 * regformats/aarch64.dat: Remove.
6878 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6879 * regformats/i386/amd64-avx-linux.dat: Remove.
6880 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6881 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6882 * regformats/i386/amd64-linux.dat: Remove.
6883 * regformats/i386/amd64-mpx-linux.dat: Remove.
6884 * regformats/i386/amd64.dat: Remove.
6885 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6886 * regformats/i386/i386-avx-linux.dat: Remove.
6887 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6888 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6889 * regformats/i386/i386-linux.dat: Remove.
6890 * regformats/i386/i386-mmx-linux.dat: Remove.
6891 * regformats/i386/i386-mpx-linux.dat: Remove.
6892 * regformats/i386/i386.dat: Remove.
6893 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6894 * regformats/i386/x32-avx-linux.dat: Remove.
6895 * regformats/i386/x32-linux.dat: Remove.
6896
2b40fda7
AH
68972019-07-04 Alan Hayward <alan.hayward@arm.com>
6898
6899 * aarch64-tdep.c: Remove xml self tests.
6900 * amd64-linux-tdep.c: Likewise.
6901 * amd64-tdep.c: Likewise.
6902 * i386-linux-tdep.c: Likewise.
6903 * i386-tdep.c: Likewise.
6904
5f4ba3e7
PA
69052019-07-03 Pedro Alves <palves@redhat.com>
6906
6907 PR cli/24732
6908 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6909 (pipe_cmd_option_defs): New.
6910 (make_pipe_cmd_options_def_group): New.
6911 (pipe_command): Use gdb::option::process_options.
6912 (pipe_command_completer): New function.
6913 (_initialize_cli_cmds): Install completer for "pipe" command.
6914
3d9be6f5
PA
69152019-07-03 Pedro Alves <palves@redhat.com>
6916
6917 * cli/cli-option.c (union option_value) <string>: New field.
6918 (struct option_def_and_value): Add ctor, move ctor, dtor and
6919 use DISABLE_COPY_AND_ASSIGN.
6920 (option_def_and_value::clear_value): New.
6921 (parse_option, save_option_value_in_ctx, get_val_type_str)
6922 (add_setshow_cmds_for_options): Handle var_string.
6923 * cli-option.h (union option_def::var_address) <string>: New
6924 field.
6925 (struct string_option_def): New.
6926 * maint-test-options.c (struct test_options_opts): Add default
6927 ctor and use DISABLE_COPY_AND_ASSIGN.
6928 <string_opt>: New field.
6929 (test_options_opts::~test_options_opts): New.
6930 (test_options_opts::dump): Also dump "-string".
6931 (test_options_option_defs): Install "string.
6932
41fc454c
PA
69332019-07-03 Pedro Alves <palves@redhat.com>
6934
6935 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6936 option_value with a null enumeration.
6937 (complete_options): Save the option values in the context.
6938 (save_option_value_in_ctx): New, factored out from ...
6939 (process_options): ... here.
6940 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6941 of the function.
6942 * maint-test-options.c (test_options_opts::dump): New, factored
6943 out from ...
6944 (maintenance_test_options_command_mode): ... here.
6945 (maintenance_test_options_command_completion_result): Delete.
6946 (maintenance_test_options_command_completion_text): Update
6947 comment.
6948 (maintenance_show_test_options_completion_result): Change
6949 prototype. Just print
6950 maintenance_test_options_command_completion_text.
6951 (save_completion_result): New.
6952 (maintenance_test_options_completer_mode): Pass options context to
6953 complete_options, and then save a dump.
6954 (_initialize_maint_test_options): Use add_cmd to install "maint
6955 show test-options-completion-result".
6956
fdbc9870
PA
69572019-07-03 Pedro Alves <palves@redhat.com>
6958
6959 * NEWS (New commands): Mention "with" and "maint with".
6960 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6961 (with_command, with_command_completer): New.
6962 (pipe_command): Adjust to new repeat_previous
6963 interface.
6964 (_initialize_cli_cmds): Install the "with" command and its "w"
6965 alias.
6966 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6967 declarations.
6968 * cli/cli-setshow.c (parse_cli_var_uinteger)
6969 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6970 argument strings for all var_types.
6971 (get_setshow_command_value_string): New, factored out from ...
6972 (do_show_command): ... this.
6973 * cli/cli-setshow.h: Include <string>.
6974 (get_setshow_command_value_string): Declare.
6975 * command.h (repeat_previous): Now returns const char *. Adjust
6976 comment.
6977 * maint.c: Include "cli/cli-cmds.h".
6978 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6979 (_initialize_maint_cmds): Register the "maintenance with" command.
6980 * top.c (repeat_previous): Move bits from pipe_command here:
6981 Return the saved command line, if any; error out if there's no
6982 command to relaunch.
6983
c6ac8931
PA
69842019-07-03 Pedro Alves <palves@redhat.com>
6985
6986 * NEWS (New commands): Mention "maint set/show test-settings"
6987 instead of "maint test-settings".
6988 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6989 (maintenance_test_settings_set_list): Rename to ...
6990 (maintenance_set_test_settings_list): ... this.
6991 (maintenance_test_settings_show_list): Rename to ...
6992 (maintenance_show_test_settings_list): ... this.
6993 (maintenance_test_settings_cmd): Delete.
6994 (maintenance_test_settings_set_cmd): ...
6995 (maintenance_set_test_settings_cmd): ... this.
6996 (maintenance_test_settings_show_cmd): ...
6997 (maintenance_show_test_settings_cmd): ... this.
6998 (maintenance_test_settings_show_value_cmd):
6999 (maintenance_show_test_settings_value_cmd): ... this.
7000 (_initialize_maint_test_settings): No longer install the "maint
7001 test-settings" prefix command. Rename "maint test-settings set"
7002 to "maint set test-settings", and "maint test-settings show" to
7003 "maint show test-settings". Adjust all subcommands.
7004
d1fcf2fd
PA
70052019-07-03 Pedro Alves <palves@redhat.com>
7006
7007 * maint-test-settings.c: Fix file's intro comment. Replace all
7008 references to "test-options" with references to "test-settings",
7009 in comments.
7010
970f9d09
PA
70112019-07-03 Pedro Alves <palves@redhat.com>
7012
7013 * maint-test-settings.c (maintenance_test_settings_xxx)
7014 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7015 New.
7016 (maintenance_test_settings_enums): Use them.
7017 (maintenance_test_settings_enum): Default to
7018 maintenance_test_settings_xxx.
7019 (_initialize_maint_test_settings): Initialize
7020 MAINTENANCE_TEST_SETTINGS_FILENAME.
7021
f3869b1a
SM
70222019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7023
7024 * breakpoint.h (remove_breakpoints_inf): Change return type to
7025 void, move function documentation here.
7026 * breakpoint.c (remove_breakpoints_inf): Change return type to
7027 void, move function documentation to header.
7028
54d66006
PA
70292019-07-02 Pedro Alves <palves@redhat.com>
7030
7031 * NEWS (Completion improvements): Mention "info threads".
7032 * thread.c (struct info_threads_opts, info_threads_option_defs)
7033 (make_info_threads_options_def_group): New.
7034 (info_threads_command): Use gdb::option::process_options.
7035 (info_threads_command_completer): New.
7036 (_initialize_thread): Use gdb::option::build_help to build the
7037 help text for "info threads".
7038
854f6088
SM
70392019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7040
7041 * defs.h (generic_load): Move from here...
7042 * symfile.h (generic_load): ... to here. Rename name parameter
7043 to args.
7044 * symfile.c (generic_load): Add comment.
7045
54ee4252
TT
70462019-07-01 Tom Tromey <tromey@adacore.com>
7047
7048 * dwarf2read.c
7049 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7050 declaration of without_params. Fix formatting.
7051
65392b3e
TT
70522019-07-01 Tom Tromey <tromey@adacore.com>
7053
7054 * ada-exp.y (find_primitive_type): Update.
7055 * ada-lang.h (ada_lookup_symbol): Update.
7056 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7057 parameter.
7058 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7059
7d7571f0
SDJ
70602019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7061
7062 PR breakpoints/24541
7063 * gdbarch.c: Regenerate.
7064 * gdbarch.h: Regenerate.
7065 * gdbarch.sh: Add 'stap_adjust_register'.
7066 * i386-tdep.c: Include '<unordered_set>'.
7067 (i386_stap_adjust_register): New function.
7068 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7069 * stap-probe.c (stap_parse_register_operand): Call
7070 'gdbarch_stap_adjust_register'.
7071
5af5392a
SDJ
70722019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7073
7074 PR python/24742
7075 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7076 * python/python.c (do_start_initialization): Use 'xmalloc'
7077 instead of 'PyMem_Malloc'.
7078
10d06d82
TT
70792019-06-28 Tom Tromey <tromey@adacore.com>
7080
7081 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7082 for Ada.
7083
1b7f24cd
TT
70842019-06-27 Tom Tromey <tromey@adacore.com>
7085
7086 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7087 objfile_key.
7088 (arm_find_mapping_symbol, arm_record_special_symbol)
7089 (_initialize_arm_tdep): Update.
7090 (arm_objfile_data_free): Remove.
7091
3d507ff2
TT
70922019-06-27 Tom Tromey <tromey@adacore.com>
7093
7094 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7095 to cp_print_static_field.
7096
762c164d
TT
70972019-06-26 Tom Tromey <tromey@adacore.com>
7098
7099 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7100 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7101 declare.
7102
aa2f9bcf
AH
71032019-06-26 Alan Hayward <alan.hayward@arm.com>
7104
7105 * features/aarch64-core.c (create_feature_aarch64_core):
7106 Regenerate.
7107 * features/aarch64-core.xml: Add cpsr flags.
7108
3426ae57
AH
71092019-06-26 Alan Hayward <alan.hayward@arm.com>
7110
7111 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7112 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7113
4838e44c
SM
71142019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7117 field.
7118 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7119 use.
7120 (arm_record_special_symbol): Don't insert new symbol in sorted
7121 position, push it at the end.
7122
54cc7474
SM
71232019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7124
7125 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7126 (arm_mapping_symbol_s): Remove.
7127 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7128 (arm_mapping_symbol_vec): New typedef.
7129 (struct arm_per_objfile): Add constructor.
7130 <section_maps>: Change type to
7131 std::unique_ptr<arm_mapping_symbol_vec[]>.
7132 (arm_compare_mapping_symbols): Remove.
7133 (arm_find_mapping_symbol): Adjust to section_maps type change.
7134 (arm_objfile_data_free): Call delete on arm_per_objfile.
7135 (arm_record_special_symbol): Adjust to section_maps type change.
7136 Allocate arm_per_objfile with new.
7137
b65b566c
PW
71382019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7139
7140 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7141 with the command prefix.
7142
c2fc64f5
TT
71432019-06-25 Tom Tromey <tom@tromey.com>
7144
7145 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7146 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7147
fb54fa76
TT
71482019-06-25 Tom Tromey <tom@tromey.com>
7149
7150 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7151 type.
7152 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7153 protected.
7154
f7952c57
TT
71552019-06-25 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-winsource.c
7158 (tui_source_window_base::set_is_exec_point_at): Add check against
7159 LOA_ADDRESS.
7160
17568d78
TT
71612019-06-25 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-source.c (tui_set_source_content): Don't check before
7164 xfree.
7165 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7166
53e7cdba
TT
71672019-06-25 Tom Tromey <tom@tromey.com>
7168
7169 * tui/tui-winsource.h (tui_update_source_window_as_is)
7170 (tui_alloc_source_buffer, tui_line_is_displayed)
7171 (tui_addr_is_displayed): Change type of win_info.
7172 * tui/tui-winsource.c (tui_update_source_window_as_is)
7173 (tui_clear_source_content, tui_show_source_line)
7174 (tui_show_source_content, tui_source_window_base::refill)
7175 (tui_source_window_base::set_is_exec_point_at)
7176 (tui_source_window_base::set_is_exec_point_at)
7177 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7178 (tui_alloc_source_buffer, tui_line_is_displayed)
7179 (tui_addr_is_displayed): Change type of win_info. Update.
7180 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7181 (tui_source_window_base::do_make_visible_with_new_height):
7182 Update.
7183 * tui/tui-source.c (tui_set_source_content)
7184 (tui_set_source_content_nil)
7185 (tui_source_window::do_scroll_vertical): Update.
7186 * tui/tui-layout.c (show_layout): Update.
7187 * tui/tui-disasm.c (tui_set_disassem_content)
7188 (tui_disasm_window::do_scroll_vertical): Update.
7189 * tui/tui-data.h (tui_win_content): Remove.
7190 (struct tui_gen_win_info) <content, content_size>: Remove.
7191 (struct tui_source_element): Add initializers and destructor.
7192 (union tui_which_element, struct tui_win_element): Remove.
7193 (struct tui_source_window_base) <content>: New field.
7194 (struct tui_data_window): Remove destructor.
7195 (tui_alloc_content, tui_free_win_content)
7196 (tui_free_all_source_wins_content): Don't declare.
7197 * tui/tui-data.c (tui_initialize_static_data): Update.
7198 (init_content_element, tui_alloc_content): Remove.
7199 (~tui_gen_win_info): Update.
7200 (~tui_data_window, tui_free_all_source_wins_content)
7201 (tui_free_win_content, free_content, free_content_elements):
7202 Remove.
7203
7908abbf
TT
72042019-06-25 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui-winsource.h (tui_clear_source_content)
7207 (tui_erase_source_content, tui_show_source_content): Change type
7208 of win_info.
7209 * tui/tui-winsource.c (tui_clear_source_content)
7210 (tui_erase_source_content, tui_show_source_content): Change type
7211 of win_info.
7212 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7213 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7214 win_info.
7215 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7216 win_info.
7217 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7218
02c28df0
TT
72192019-06-25 Tom Tromey <tom@tromey.com>
7220
7221 * tui/tui-winsource.c (tui_clear_source_content)
7222 (tui_source_window_base::set_is_exec_point_at): Update.
7223 * tui/tui-source.c (tui_set_source_content_nil): Update.
7224 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7225 a bool.
7226 * tui/tui-data.c (init_content_element): Update.
7227
6658b1bf
TT
72282019-06-25 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7231 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7232 * tui/tui-layout.c (init_and_make_win): Update.
7233 * tui/tui.h (enum tui_win_type): Update.
7234 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7235 tui_win_is_auxillary.
7236 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7237 tui_win_is_auxillary.
7238
21e1c91e
TT
72392019-06-25 Tom Tromey <tom@tromey.com>
7240
7241 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7242 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7243 (tui_delete_data_content_windows, tui_display_all_data)
7244 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7245 Update.
7246 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7247 * tui/tui-regs.c (tui_last_regs_line_no)
7248 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7249 (tui_show_registers): Update.
7250 (tui_show_register_group): Return void. Update.
7251 (tui_display_registers_from, tui_display_reg_element_at_line)
7252 (tui_display_registers_from_line, tui_check_register_values):
7253 Update.
7254 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7255 member.
7256 (struct tui_data_window) <regs_content>: Now a std::vector.
7257 <regs_content_count>: Remove.
7258 (tui_add_content_elements, tui_free_data_content): Don't declare.
7259 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7260 (init_content_element): Remove DATA_WIN case. Add assert.
7261 (tui_add_content_elements): Remove.
7262 (tui_data_window): Update.
7263 (tui_free_data_content): Remove.
7264 (free_content_elements): Remove DATA_WIN case.
7265
115ac53b
TT
72662019-06-25 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui-data.c (tui_data_item_window): Update.
7269 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7270 * tui/tui-windata.c (tui_display_all_data)
7271 (tui_display_data_from_line): Update.
7272 (tui_check_data_values): Remove.
7273 * tui/tui-regs.c (tui_show_register_group)
7274 (tui_display_reg_element_at_line): Update.
7275 * tui/tui-hooks.c (tui_register_changed)
7276 (tui_refresh_frame_and_register_information): Call
7277 tui_check_register_values.
7278 * tui/tui-data.h (struct tui_data_window) <data_content,
7279 data_content_count, data_type>: Remove.
7280 (enum tui_data_type): Remove.
7281
7282 * tui/tui-data.c (tui_data_window::clear_detail)
7283 (~tui_data_window): Update.
7284
eaf9738b
TT
72852019-06-25 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7288 declare.
7289 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7290 Rename from tui_first_data_item_displayed. Update.
7291 (tui_data_window::refresh_all)
7292 (tui_data_window::do_scroll_vertical): Update.
7293 * tui/tui-data.h (struct tui_data_window)
7294 <first_data_item_displayed>: Declare new method.
7295
31ca4723
TT
72962019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7299 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7300 contents...
7301 (tui_initialize_static_data): ...here.
7302
41bcff7f
TT
73032019-06-25 Tom Tromey <tom@tromey.com>
7304
7305 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7306 (tui_display_registers_from, tui_check_register_values): Update.
7307 (tui_display_register): Remove win_info parameter; update.
7308 (tui_get_register): Change type of parameters.
7309 * tui/tui-data.h (struct tui_data_element): Remove.
7310 (union tui_which_element) <data>: Remove.
7311 <data_window>: Change type.
7312 (struct tui_data_item_window): New.
7313 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7314 case. Add assert.
7315 (~tui_data_item_window): New destructor.
7316 (free_content_elements): Remove DATA_ITEM_WIN case.
7317
d2802c33
TT
73182019-06-25 Tom Tromey <tom@tromey.com>
7319
7320 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7321 Remove.
7322
dd835f8b
TT
73232019-06-25 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-data.h (struct tui_command_element): Remove.
7326 (union tui_which_element) <command>: Remove.
7327 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7328 assert.
7329 (free_content_elements): Remove CMD_WIN case.
7330
bd7db367
TT
73312019-06-25 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-layout.c (tui_set_layout): Update.
7334 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7335 * tui/tui-data.c (layout_def): Update.
7336
3add462f
TT
73372019-06-25 Tom Tromey <tom@tromey.com>
7338
7339 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7340 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7341 (tui_source_window_base::set_new_height): Update.
7342 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7343 Update.
7344 (tui_set_locator_fullname, tui_set_locator_info)
7345 (tui_show_frame_info): Update.
7346 * tui/tui-source.c (tui_set_source_content)
7347 (tui_source_is_displayed): Update.
7348 * tui/tui-layout.c (show_source_disasm_command, show_data)
7349 (show_source_or_disasm_and_command): Update.
7350 * tui/tui-disasm.c (tui_set_disassem_content)
7351 (tui_get_begin_asm_address): Update.
7352 * tui/tui-data.h (struct tui_locator_element): Remove.
7353 (union tui_which_element) <locator>: Remove.
7354 (struct tui_locator_window): New.
7355 (tui_locator_win_info_ptr): Change return type.
7356 * tui/tui-data.c (_locator): Change type.
7357 (tui_locator_win_info_ptr): Change return type.
7358 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7359 (tui_alloc_content): Add assert.
7360
489e9d8b
TT
73612019-06-25 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui-winsource.c
7364 (tui_exec_info_window::maybe_allocate_content): New method.
7365 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7366 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7367 (make_source_or_disasm_window): Add cast.
7368 * tui/tui-data.h (union tui_which_element) <simple_string>:
7369 Remove.
7370 (struct tui_source_info): New.
7371 (struct tui_source_window_base) <execution_info>: Change type.
7372 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7373 case, and add assert.
7374 (tui_alloc_content): Add assert.
7375
c3fabb7d
TT
73762019-06-25 Tom Tromey <tom@tromey.com>
7377
7378 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7379 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7380 * tui/tui-data.c (tui_alloc_win_info): Remove.
7381
bbc228ee
TT
73822019-06-25 Tom Tromey <tom@tromey.com>
7383
7384 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7385 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7386 can_highlight.
7387
5fcee43a
TT
73882019-06-25 Tom Tromey <tom@tromey.com>
7389
7390 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7391 make_visible_with_new_height method.
7392 (tui_win_info::make_visible_with_new_height): New method.
7393 (tui_source_window_base::do_make_visible_with_new_height)
7394 (tui_data_window::do_make_visible_with_new_height)
7395 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7396 (make_visible_with_new_height): Remove.
7397 (tui_resize_all, tui_adjust_win_heights): Use
7398 make_visible_with_new_height method.
7399 * tui/tui-data.h (struct tui_win_info)
7400 <do_make_visible_with_new_height, make_visible_with_new_height>:
7401 New methods.
7402 (struct tui_source_window_base, struct tui_data_window)
7403 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7404 methods.
7405
d83f1fe6
TT
74062019-06-25 Tom Tromey <tom@tromey.com>
7407
7408 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7409 method.
7410 (update_tab_width): Call update_tab_width method.
7411 * tui/tui-data.h (struct tui_win_info)
7412 (struct tui_source_window_base) <update_tab_width>: New methods.
7413
17374de4
TT
74142019-06-25 Tom Tromey <tom@tromey.com>
7415
7416 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7417 parameter.
7418 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7419 parameter.
7420 (tui_gen_win_info::make_visible): Update.
7421 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7422 parameter.
7423 * tui/tui-data.h (enum tui_box): New enum.
7424 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7425
f936bca2
TT
74262019-06-25 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7429 init_and_make_win for EXEC_INFO_WIN.
7430 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7431 longer inline.
7432 (struct tui_win_info) <~tui_win_info>: Inline.
7433 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7434 Don't declare.
7435 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7436 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7437 Remove.
7438 (tui_initialize_static_data): Update.
7439 (~tui_gen_win_info): Handle more cleanup here.
7440 (~tui_source_window_base): Delete "execution_info".
7441 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7442
d6ba6a11
TT
74432019-06-25 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-layout.c (make_command_window): Don't set
7446 can_highlight.
7447 (show_source_disasm_command): Call the reset method.
7448 (show_data): Don't set can_highlight. Call the reset method.
7449 (tui_gen_win_info::reset): Rename from init_gen_win_info
7450 (init_and_make_win): Simplify. Return tui_gen_win_info.
7451 (show_source_or_disasm_and_command): Call the reset method.
7452 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7453 (struct tui_cmd_window): Set can_highlight.
7454
48a3bd16
TT
74552019-06-25 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7458 from make_visible.
7459 (tui_make_visible, tui_make_invisible): Rewrite.
7460 (tui_win_info::make_visible): Remove.
7461 (tui_source_window_base::make_visible): Update.
7462 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7463 method. Moved from...
7464 (struct tui_win_info) <make_visible>: ...here.
7465
c3bd716f
TT
74662019-06-25 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-winsource.c
7469 (tui_source_window_base::do_scroll_horizontal): Remove direction
7470 parameter.
7471 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7472 direction parameter.
7473 * tui/tui-win.c (tui_win_info::forward_scroll)
7474 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7475 (tui_win_info::right_scroll): Update.
7476 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7477 direction parameter.
7478 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7479 direction parameter.
7480 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7481 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7482 Remove direction parameter.
7483 (struct tui_source_window_base, struct tui_source_window)
7484 (struct tui_disasm_window, struct tui_data_window)
7485 (struct tui_cmd_window): Update.
7486
21c32dca
TT
74872019-06-25 Tom Tromey <tom@tromey.com>
7488
7489 * tui/tui-winsource.h (tui_set_exec_info_content)
7490 (tui_show_exec_info_content, tui_erase_exec_info_content)
7491 (tui_clear_exec_info_content, tui_update_exec_info): Change
7492 argument to tui_source_window_base.
7493 * tui/tui-winsource.c (tui_set_exec_info_content)
7494 (tui_show_exec_info_content, tui_erase_exec_info_content)
7495 (tui_clear_exec_info_content, tui_update_exec_info): Change
7496 argument to tui_source_window_base.
7497
73fbdc65
TT
74982019-06-25 Tom Tromey <tom@tromey.com>
7499
7500 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7501 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7502
33325343
TT
75032019-06-25 Tom Tromey <tom@tromey.com>
7504
7505 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7506 check.
7507
29d2c474
TT
75082019-06-25 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7511 type to void.
7512 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7513 type to void.
7514 * tui/tui-source.c (tui_set_source_content): Update.
7515 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7516
152f3f4b
TT
75172019-06-25 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-win.c (window_name_completer, tui_set_focus)
7520 (tui_all_windows_info): Use name method.
7521 * tui/tui-data.h (struct tui_gen_win_info)
7522 (struct tui_source_window, struct tui_disasm_window)
7523 (struct tui_data_window, struct tui_cmd_window) <name>: New
7524 method.
7525 (tui_win_name): Don't declare.
7526 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7527 (tui_win_name): Remove.
7528
be4da588
TT
75292019-06-25 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-winsource.h (tui_update_source_window)
7532 (tui_update_source_window_as_is): Change parameter type.
7533 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7534 to be a tui_source_window_base.
7535 (tui_update_source_window_as_is): Likewise.
7536 * tui/tui-win.c (make_visible_with_new_height): Update.
7537
5b81daba
TT
75382019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-winsource.c (tui_erase_source_content)
7541 (tui_show_source_content, tui_show_exec_info_content)
7542 (tui_erase_exec_info_content): Use refresh_window method.
7543 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7544 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7545 from tui_refresh_win.
7546 (tui_data_window::refresh_window): New method.
7547 (tui_win_info::refresh, tui_source_window_base::refresh)
7548 (tui_refresh_all): Use refresh_window method.
7549 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7550 method.
7551 * tui/tui-regs.c (tui_display_register): Call refresh_window
7552 method.
7553 * tui/tui-layout.c (show_source_disasm_command)
7554 (show_source_or_disasm_and_command): Call refresh_window method.
7555 * tui/tui-data.h (struct tui_gen_win_info)
7556 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7557 New method.
7558
cb2ce893
TT
75592019-06-25 Tom Tromey <tom@tromey.com>
7560
7561 * tui/tui.c (tui_rl_other_window, tui_enable)
7562 (tui_is_window_visible, tui_get_command_dimension): Update.
7563 * tui/tui-winsource.c (tui_update_source_window_as_is)
7564 (tui_clear_source_content, tui_erase_source_content)
7565 (tui_show_source_line, tui_source_window_base::refill)
7566 (tui_source_window_base::do_scroll_horizontal)
7567 (tui_source_window_base::set_is_exec_point_at)
7568 (tui_update_breakpoint_info, tui_set_exec_info_content)
7569 (tui_alloc_source_buffer, tui_line_is_displayed)
7570 (tui_addr_is_displayed): Update.
7571 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7572 (tui_check_and_display_highlight_if_needed)
7573 (tui_win_info::make_visible, tui_win_info::refresh)
7574 (tui_refresh_all): Update.
7575 * tui/tui-windata.c (tui_first_data_item_displayed)
7576 (tui_delete_data_content_windows, tui_erase_data_content)
7577 (tui_display_all_data, tui_data_window::refresh_all)
7578 (tui_check_data_values): Update.
7579 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7580 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7581 (tui_win_info::backward_scroll, tui_refresh_all_win)
7582 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7583 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7584 (tui_source_window_base::set_new_height)
7585 (tui_data_window::set_new_height)
7586 (make_invisible_and_set_new_height)
7587 (make_visible_with_new_height, new_height_ok)
7588 (parse_scrolling_args): Update.
7589 * tui/tui-stack.c (tui_show_frame_info): Update.
7590 * tui/tui-source.c (tui_set_source_content)
7591 (tui_set_source_content_nil, tui_source_is_displayed)
7592 (tui_source_window::do_scroll_vertical): Update.
7593 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7594 (tui_display_registers_from, tui_display_reg_element_at_line)
7595 (tui_check_register_values, tui_reg_command): Update.
7596 * tui/tui-layout.c (tui_default_win_height)
7597 (show_source_disasm_command, show_data, init_and_make_win)
7598 (show_source_or_disasm_and_command): Update.
7599 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7600 (tui_redisplay_readline, tui_mld_flush)
7601 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7602 (tui_getc): Update.
7603 * tui/tui-disasm.c (tui_set_disassem_content)
7604 (tui_disasm_window::do_scroll_vertical): Update.
7605 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7606 Now virtual.
7607 (struct tui_win_info): Derive from tui_gen_win_info.
7608 <~tui_win_info>: Mark as override.
7609 <generic>: Remove member.
7610 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7611 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7612 (~tui_data_window, ~tui_win_info)
7613 (tui_free_all_source_wins_content): Update.
7614 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7615
ab313b35
TT
76162019-06-25 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-layout.c (init_and_make_win): Use new.
7619 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7620 destructor, initializers.
7621 (tui_alloc_generic_win_info): Don't declare.
7622 * tui/tui-data.c (_locator): Add argument to constructor.
7623 (source_win, disasm_win): New globals.
7624 (exec_info): Remove.
7625 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7626 Update.
7627 (tui_alloc_generic_win_info): Remove.
7628 (init_content_element): Use new.
7629 (tui_win_info::tui_win_info): Update.
7630 (free_content_elements) <case DATA_WIN>: Use delete.
7631
dc2c33e4
TT
76322019-06-25 Tom Tromey <tom@tromey.com>
7633
7634 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7635 * tui/tui-windata.c (tui_first_data_item_displayed)
7636 (tui_delete_data_content_windows): Update.
7637 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7638 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7639 (tui_display_registers_from, tui_check_register_values): Update.
7640 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7641 pointer.
7642 * tui/tui-data.c (init_content_element): Update. Allocate the new
7643 window.
7644 (tui_free_data_content): Update.
7645 (free_content_elements) <case DATA_WIN>: Free the window.
7646
214a5cbe
TT
76472019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7650 Update.
7651 * tui/tui-layout.c (make_command_window)
7652 (show_source_disasm_command, show_data, init_and_make_win)
7653 (show_source_or_disasm_and_command): Update.
7654 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7655 method.
7656 <can_highight, is_highlighted>: Now bool.
7657 (tui_set_win_highlight): Don't declare.
7658 * tui/tui-data.c (tui_set_win_highlight): Remove.
7659
8e2daf15
TT
76602019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-wingeneral.c (make_visible): Remove check of window
7663 type.
7664
8903bd8a
TT
76652019-06-25 Tom Tromey <tom@tromey.com>
7666
7667 * tui/tui-win.c (tui_win_info::max_height)
7668 (tui_cmd_window::max_height): New methods.
7669 (new_height_ok): Call max_height.
7670 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7671 <max_height>: New method.
7672
3f02ce1e
TT
76732019-06-25 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-win.c (tui_source_window_base::set_new_height)
7676 (tui_data_window::set_new_height): New methods.
7677 (make_invisible_and_set_new_height): Call set_new_height method.
7678 * tui/tui-data.h (struct tui_win_info)
7679 (struct tui_source_window_base, struct tui_data_window)
7680 <set_new_height>: New method.
7681
1825f487
TT
76822019-06-25 Tom Tromey <tom@tromey.com>
7683
7684 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7685 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7686 tui_refresh_data_win.
7687 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7688 method.
7689 (tui_refresh_all_win): Call the refresh_all method.
7690 (tui_set_focus): Likewise.
7691 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7692 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7693 Likewise.
7694
ad54d15b
TT
76952019-06-25 Tom Tromey <tom@tromey.com>
7696
7697 * tui/tui-winsource.h (tui_refill_source_window)
7698 (tui_set_is_exec_point_at): Don't declare.
7699 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7700 (tui_source_window_base::refill): Rename from
7701 tui_refill_source_window.
7702 (tui_source_window_base::do_scroll_horizontal): Update.
7703 (tui_source_window_base::set_is_exec_point_at): Rename from
7704 tui_set_is_exec_point_at.
7705 (tui_update_all_breakpoint_info): Update.
7706 * tui/tui-stack.c (tui_show_frame_info): Update.
7707 * tui/tui-layout.c (show_data): Add cast.
7708 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7709 * tui/tui-data.h (struct tui_source_window_base) <refill,
7710 set_is_exec_point_at>: New methods.
7711 (tui_source_windows, tui_add_to_source_windows): Update types.
7712 (tui_add_to_source_windows): Remove redundant declaration.
7713 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7714 (tui_source_windows): Change return type.
7715 (tui_clear_source_windows_detail): Update.
7716 (tui_add_to_source_windows): Change type of parameter.
7717 (tui_free_all_source_wins_content): Update.
7718
2042b506
TT
77192019-06-25 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-wingeneral.c (tui_win_info::refresh)
7722 (tui_source_window_base::refresh): New methods.
7723 (tui_refresh_all): Call the refresh method.
7724 * tui/tui-data.h (struct tui_win_info)
7725 (struct tui_source_window_base) <refresh>: New method.
7726
56122977
TT
77272019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui.h (tui_is_window_visible): Return bool.
7730 * tui/tui.c (tui_is_window_visible): Return bool.
7731 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7732 (tui_make_visible, tui_make_invisible)
7733 (tui_win_info::make_visible)
7734 (tui_source_window_base::make_visible, make_all_visible)
7735 (tui_make_all_visible, tui_make_all_invisible): Update.
7736 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7737 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7738 bool.
7739 (struct tui_win_info, struct tui_source_window_base)
7740 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7741 * tui/tui-data.c (tui_init_generic_part): Update.
7742
cda37efb
TT
77432019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7746 (tui_source_window_base::make_visible): New methods.
7747 (make_all_visible): Make method call.
7748 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7749 (struct tui_source_window_base, struct tui_cmd_window): Override
7750 make_visible.
7751 (tui_win_is_source_type): Don't declare.
7752 * tui/tui-data.c (tui_win_is_source_type): Remove.
7753
6a0ee02c
TT
77542019-06-25 Tom Tromey <tom@tromey.com>
7755
7756 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7757 NULL check.
7758
63901aec
TT
77592019-06-25 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7762 Inline constructor. Add initializers for members.
7763 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7764 constructors; now inline in class.
7765
ceb13a13
TT
77662019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-regs.c (tui_show_registers): Update.
7769 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7770 bool.
7771 * tui/tui-data.c (tui_data_window::clear_detail)
7772 (tui_data_window): Update.
7773
238eb706
TT
77742019-06-25 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-windata.c (tui_display_all_data)
7777 (tui_display_data_from_line, tui_display_data_from)
7778 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7779 Update.
7780 * tui/tui-regs.c (tui_last_regs_line_no)
7781 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7782 (tui_show_registers, tui_show_register_group)
7783 (tui_display_registers_from, tui_display_reg_element_at_line)
7784 (tui_display_registers_from_line, tui_check_register_values)
7785 (tui_reg_next, tui_reg_prev): Update.
7786 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7787 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7788 tui_data_window.
7789 (struct tui_win_info) <detail>: Remove. Add new fields from
7790 tui_data_info.
7791 (TUI_DATA_WIN): Add cast.
7792 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7793 (~tui_data_window): Simplify.
7794
81491aa0
TT
77952019-06-25 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-layout.c (show_source_disasm_command)
7798 (show_source_or_disasm_and_command): Update.
7799 * tui/tui-io.c (update_cmdwin_start_line)
7800 (tui_redisplay_readline): Update.
7801 * tui/tui-data.h (struct tui_command_info): Remove.
7802 (struct tui_win_info) <detail>: Remove command_info member.
7803 (struct tui_data_window) <start_line>: New member, from
7804 tui_command_info.
7805 (TUI_CMD_WIN): Add casts.
7806
e6e41501
TT
78072019-06-25 Tom Tromey <tom@tromey.com>
7808
7809 * tui/tui-winsource.c (tui_update_source_window)
7810 (tui_refill_source_window)
7811 (tui_source_window_base::do_scroll_horizontal)
7812 (tui_update_breakpoint_info, tui_set_exec_info_content)
7813 (tui_show_exec_info_content, tui_erase_exec_info_content)
7814 (tui_clear_exec_info_content): Update.
7815 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7816 Update.
7817 * tui/tui-win.c (make_invisible_and_set_new_height)
7818 (make_visible_with_new_height): Update.
7819 * tui/tui-source.c (tui_set_source_content)
7820 (tui_show_symtab_source): Update.
7821 * tui/tui-layout.c (extract_display_start_addr)
7822 (show_source_disasm_command, show_data)
7823 (make_source_or_disasm_window)
7824 (show_source_or_disasm_and_command): Update.
7825 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7826 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7827 "gdbarch".
7828 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7829 to tui_source_window_base.
7830 (struct tui_win_info) <detail>: Remove source_info member.
7831 (struct tui_source_window_base) <has_locator>: Inline.
7832 Move contents from tui_source_info; rename has_locator member to
7833 m_has_locator.
7834 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7835 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7836 header file.
7837 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7838 Simplify.
7839 (tui_free_all_source_wins_content): Cast to
7840 tui_source_window_base.
7841
44f0e208
TT
78422019-06-25 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-win.c (make_invisible_and_set_new_height)
7845 (make_visible_with_new_height): Call has_locator method.
7846 * tui/tui-layout.c (show_source_disasm_command, show_data)
7847 (show_source_or_disasm_and_command): Update for bool change.
7848 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7849 (tui_win_info) <has_locator>: New method.
7850 (struct tui_source_window_base) <has_locator>: New method.
7851 (tui_win_has_locator): Don't declare.
7852 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7853 from tui_win_has_locator.
7854 (tui_source_window_base): Use false, not FALSE.
7855
7778b912
TT
78562019-06-25 Tom Tromey <tom@tromey.com>
7857
7858 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7859 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7860 clear_detail method directly.
7861 (tui_clear_win_detail): Remove.
7862
f83d391c
TT
78632019-06-25 Tom Tromey <tom@tromey.com>
7864
7865 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7866 "this", not TUI_DISASM_WIN.
7867
13446e05
TT
78682019-06-25 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7871 declare.
7872 * tui/tui-winsource.c
7873 (tui_source_window_base::do_scroll_horizontal): Rename from
7874 tui_horizontal_source_scroll.
7875 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7876 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7877 from tui_vertical_data_scroll.
7878 * tui/tui-win.h (tui_scroll): Don't declare.
7879 * tui/tui-win.c (tui_win_info::forward_scroll)
7880 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7881 (tui_win_info::right_scroll): Rename and update.
7882 (tui_scroll_forward_command, tui_scroll_backward_command)
7883 (tui_scroll_left_command, tui_scroll_right_command): Update.
7884 (tui_scroll): Remove.
7885 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7886 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7887 from tui_vertical_source_scroll.
7888 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7889 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7890 from tui_vertical_disassem_scroll.
7891 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7892 do_scroll_horizontal>: New methods.
7893 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7894 Likewise.
7895 (struct tui_source_window_base): Add do_scroll_horizontal.
7896 (struct tui_source_window, struct tui_disasm_window): Add
7897 do_scroll_vertical.
7898 (struct tui_data_window, struct tui_cmd_window): Add
7899 do_scroll_horizontal and do_scroll_vertical.
7900 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7901
5cf82909
TT
79022019-06-25 Tom Tromey <tom@tromey.com>
7903
7904 * tui/tui-data.h (struct tui_source_window_base): New struct.
7905 (struct tui_source_window): Derive from tui_source_window_base.
7906 (struct tui_disasm_window): New struct.
7907 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7908 from tui_source_window::clear_detail.
7909 (tui_source_window_base): Rename from tui_source_window.
7910 (~tui_source_window_base): Rename from ~tui_source_window.
7911 (tui_alloc_win_info): Create a tui_disasm_window.
7912
ee1d42d6
TT
79132019-06-25 Tom Tromey <tom@tromey.com>
7914
7915 * tui/tui-data.h (struct tui_source_window)
7916 (struct tui_data_window): Declare destructors.
7917 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7918 destructors.
7919 (tui_win_info): Simplify.
7920
b4eb2452
TT
79212019-06-25 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-winsource.c (tui_display_main)
7924 (tui_update_source_windows_with_addr)
7925 (tui_update_all_breakpoint_info): Update.
7926 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7927 (new_height_ok, parse_scrolling_args): Update.
7928 * tui/tui-stack.c (tui_show_frame_info): Update.
7929 * tui/tui-data.h (struct tui_list): Remove.
7930 (tui_source_windows): Return a reference to a std::vector.
7931 * tui/tui-data.c (source_windows): Now a std::vector.
7932 (tui_source_windows): Change return type.
7933 (tui_clear_source_windows): Rewrite.
7934 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7935 (tui_free_all_source_wins_content): Rewrite.
7936
8761a91b
TT
79372019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7940 (struct tui_data_window, struct tui_cmd_window): Declare
7941 clear_detail method.
7942 * tui/tui-data.c (tui_source_window::clear_detail)
7943 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7944 methods.
7945 (tui_clear_win_detail): Simplify.
7946
0ed69eda
TT
79472019-06-25 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-layout.c (make_source_window, make_disasm_window)
7950 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7951 Return the new window.
7952 (show_source_disasm_command, show_data)
7953 (show_source_or_disasm_and_command): Update.
7954
82432e10
TT
79552019-06-25 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7958 parameter. Return the new window.
7959 (show_source_disasm_command): Update and remove NULL check.
7960 (show_source_or_disasm_and_command): Update.
7961
ec328aa5
TT
79622019-06-25 Tom Tromey <tom@tromey.com>
7963
7964 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7965
33b906ab
TT
79662019-06-25 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui-data.h (struct tui_win_info): Make constructor
7969 protected. Make destructor virtual. Add initializers.
7970 (tui_source_window, tui_data_window, tui_cmd_window): New
7971 classes.
7972 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7973 constructor. Add "type" parameter.
7974 (tui_source_window, tui_data_window, tui_cmd_window): New
7975 constructors.
7976 (tui_alloc_win_info): Instantiate the appropriate subclass.
7977
e7e11af4
TT
79782019-06-25 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-win.c (tui_resize_all): Use delete.
7981 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7982 destructor.
7983 (tui_free_window): Don't declare.
7984 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7985 Update.
7986
6792b55e
TT
79872019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-data.h (struct tui_win_info): Add constructor.
7990 * tui/tui-data.c (tui_alloc_win_info): Use new.
7991 (tui_free_window): Use delete.
7992
f95675e1
TT
79932019-06-22 Tom Tromey <tom@tromey.com>
7994
7995 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7996 declare.
7997 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7998
5bff081c
TT
79992019-06-22 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8002 declare.
8003 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8004
47e3f474
TV
80052019-06-22 Tom de Vries <tdevries@suse.de>
8006
8007 * dwarf2read.c (create_addrmap_from_aranges)
8008 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8009 instead of '%zu'.
8010
fd5866f6
SM
80112019-06-21 Simon Marchi <simon.marchi@efficios.com>
8012
8013 * dwarf2read.h (dwarf2_section_info_def): Remove.
8014 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8015 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8016 std::vector<dwarf2_section_info>.
8017 (struct dwo_file) <~dwo_file>: Remove.
8018 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8019 types field.
8020 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8021 (dwarf2_read_debug_names): Likewise.
8022 (create_debug_types_hash_table): Change parameter type to
8023 array_view, adjust code accordingly.
8024 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8025 (partial_die_info::fixup): Likewise.
8026 (determine_prefix): Likewise.
8027 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8028
fb1eb2f9
SM
80292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8030
8031 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8032 gdb_bfd_ref_ptr.
8033 <~dwo_file>: Remove call to gdb_bfd_unref.
8034 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8035 gdb_bfd_ref_ptr::get.
8036
51ac9db5
SM
80372019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8038
8039 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8040 type to htab_up.
8041 * dwarf2read.c (struct dwo_file): Initialize fields.
8042 <~dwo_file>: New.
8043 (free_dwo_file): Remove, move content to ~dwo_file.
8044 (struct dwo_file_deleter): Remove.
8045 (dwo_file_up>: Remove custom deleter.
8046 (free_dwo_files): Remove.
8047 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8048 dwo_files.
8049 (process_skeletonless_type_units): Call unique_ptr::get.
8050 (allocate_dwo_file_hash_table): Add deleter to created hash
8051 table. Change return type to htab_up.
8052 (lookup_dwo_file_slot): Don't memset dwo_file, call
8053 unique_ptr::get.
8054 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8055 (create_dwo_unit_in_dwp_v2): Likewise.
8056 (open_and_init_dwo_file): Likewise.
8057 (free_dwo_file_from_slot): Remove.
8058
dc4ccb6f
SM
80592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8060
8061 * dwarf2read.h (struct dwarf2_section_info) <readin,
8062 is_virtual>: Change type to bool.
8063 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8064 true instead of 1.
8065
e6a1c5cb
TT
80662019-06-19 Tom Tromey <tom@tromey.com>
8067
8068 * tui/tui-data.h (tui_init_content_element): Don't declare.
8069
6f6ffbeb
TT
80702019-06-19 Tom Tromey <tom@tromey.com>
8071
8072 * tui/tui-data.h (tui_init_win_info): Don't declare.
8073
f23f598e
TV
80742019-06-19 Tom de Vries <tdevries@suse.de>
8075
8076 * dwarf2read.h (abstract_to_concrete): Change type to
8077 std::unordered_map<sect_offset, std::vector<sect_offset>,
8078 gdb::hash_enum<sect_offset>>.
8079
680e1bee
TT
80802019-06-19 Tom Tromey <tromey@adacore.com>
8081
8082 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8083 EVAL_AVOID_SIDE_EFFECTS specially.
8084
dcf37923
TT
80852019-06-19 Tom Tromey <tromey@adacore.com>
8086
8087 * source-cache.c (highlighter): New global.
8088 (source_cache::get_source_lines): Create a highlighter on demand.
8089
494986d5
AB
80902019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8091
8092 * defs.h (deprecated_interactive_hook): Delete declaration.
8093 * interps.c (clear_interpreter_hooks): Remove use of
8094 deprecated_interactive_hook.
8095 * top.c (deprecated_interactive_hook): Delete definition.
8096 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8097
3360b6e7
TV
80982019-06-18 Tom de Vries <tdevries@suse.de>
8099
8100 PR gdb/24515
8101 * dwarf2read.h (abstract_to_concrete): Change type from
8102 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8103 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8104 * dwarf2read.c (read_variable): Update.
8105 (dwarf2_fetch_die_loc_sect_off): Update.
8106
310b3441
TV
81072019-06-17 Tom de Vries <tdevries@suse.de>
8108
8109 PR gdb/24617
8110 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8111 accessing parent[parent_len - 1].
8112
ba9777be
PP
81132019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8114
8115 PR gdb/24364
8116 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8117 call dtrace_process_dof with NULL dof.
8118
2b9f6e89
TV
81192019-06-16 Tom de Vries <tdevries@suse.de>
8120
8121 PR gdb/24445
8122 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8123
431b3ead
TT
81242019-06-16 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8127 (make_all_visible): Use address of member.
8128
d04b44a1
TT
81292019-06-16 Tom Tromey <tom@tromey.com>
8130
8131 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8132 (tui_free_window, free_content, free_content_elements): Remove
8133 unnecessary cast.
8134 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8135 cast.
8136 * tui/tui-regs.c (tui_show_register_group)
8137 (tui_display_registers_from, tui_display_reg_element_at_line):
8138 Remove unnecessary cast.
8139
bf5142e7
AB
81402019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * linux-nat.c (normal_mask): Delete.
8143 (_initialize_linux_nat): Don't initialise normal_mask.
8144
c4973306
SM
81452019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8146
8147 PR gdb/24445
8148 * dwarf-index-write.h (write_psymtabs_to_index): Add
8149 dwz_basename parameter.
8150 * dwarf-index-write.c (write_gdbindex): Move file writing to
8151 write_gdbindex_1. Change return type void.
8152 (assert_file_size): Move up, remove filename parameter.
8153 (write_gdbindex_1): New function.
8154 (write_debug_names): Change return type to void, call
8155 assert_file_size.
8156 (struct index_wip_file): New struct.
8157 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8158 file logic to index_wip_file. Write index for dwz file if
8159 needed.
8160 (save_gdb_index_command): Pass basename of dwz file, if present.
8161 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8162 build-id of dwz file, if present.
8163 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8164 (dwarf2_get_dwz_file): Likewise.
8165 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8166 (dwarf2_get_dwz_file): Likewise.
8167
395f9c91
TT
81682019-06-16 Tom Tromey <tom@tromey.com>
8169
8170 * coffread.c (process_coff_symbol): Use xstrdup.
8171 * value.c (create_internalvar): Use xstrdup.
8172
cafb3438
TT
81732019-06-16 Tom Tromey <tom@tromey.com>
8174
8175 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8176 * breakpoint.c (stopin_command, stopat_command)
8177 (until_break_command, decode_location_default): Remove unnecessary
8178 cast.
8179 * utils.c (subset_compare): Remove unnecessary cast.
8180 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8181 cast.
8182 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8183 cast.
8184 * infcmd.c (path_command): Remove unnecessary cast.
8185 * coffread.c (decode_type): Remove unnecessary cast.
8186 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8187 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8188 * tui/tui-stack.c (tui_show_locator_content)
8189 (tui_show_frame_info): Remove unnecessary cast.
8190 * tui/tui-win.c (tui_scroll_forward_command)
8191 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8192 (parse_scrolling_args): Remove unnecessary cast.
8193 * tui/tui-data.c (init_win_info, tui_del_window)
8194 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8195 (free_content_elements): Remove unnecessary cast.
8196 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8197 unnecessary cast.
8198 * tui/tui-source.c (tui_set_source_content)
8199 (tui_vertical_source_scroll): Remove unnecessary cast.
8200 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8201 cast.
8202 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8203 * tui/tui-regs.c (tui_display_registers_from)
8204 (tui_display_register): Remove unnecessary cast.
8205 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8206 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8207 (make_visible): Remove unnecessary cast.
8208 * tui/tui-winsource.c (tui_erase_source_content)
8209 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8210 unnecessary cast.
8211 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8212 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8213 * stabsread.c (read_type, read_array_type, read_range_type):
8214 Remove unnecessary cast.
8215 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8216 (parse_symbol, parse_type, upgrade_type, parse_external)
8217 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8218 unnecessary cast.
8219 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8220
730ead81
TT
82212019-06-16 Tom Tromey <tom@tromey.com>
8222
8223 * tui/tui-data.c (tui_alloc_generic_win_info)
8224 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8225 checks.
8226
584a927c
AB
82272019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8228 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * f-typeprint.c (f_print_type): Don't return early for not
8231 associated or not allocated types.
8232 (f_type_print_varspec_suffix): Add print_rank parameter and print
8233 ranks of array types in case they dangling.
8234 (f_type_print_base): Add print_rank parameter.
8235
30056ea0
AB
82362019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8237
8238 * NEWS: Mention new MI commands.
8239 * break-catch-throw.c (enum exception_event_kind): Move to
8240 breakpoint.h.
8241 (print_mention_exception_catchpoint): Output text as a single
8242 message.
8243 (catch_exception_command_1): Rename to...
8244 (catch_exception_event): ...this, make non-static, update header
8245 command, and change some parameter types.
8246 (catch_catch_command): Update for changes to
8247 catch_exception_command_1.
8248 (catch_throw_command): Likewise.
8249 (catch_rethrow_command): Likewise.
8250 * breakpoint.c (enum exception_event_kind): Delete.
8251 * breakpoint.h (enum exception_event_kind): Moved here from
8252 break-catch-throw.c.
8253 (catch_exception_event): Declare.
8254 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8255 (mi_cmd_catch_throw): New function.
8256 (mi_cmd_catch_rethrow): New function.
8257 (mi_cmd_catch_catch): New function.
8258 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8259 'catch-catch' entries.
8260 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8261 (mi_cmd_catch_rethrow): Declare.
8262 (mi_cmd_catch_catch): Declare.
8263
ec8e2b6d
AB
82642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * annotate.c (annotate_source_line): Change return type to void,
8267 update implementation to match.
8268 * annotate.h (annotate_source_line): Change return type to void,
8269 update header comment.
8270 * stack.c (print_frame_info): Don't change what frame information
8271 is printed based on whether annotations are on or not.
8272
0d3abd8c
AB
82732019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8274
8275 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8276 (annotate_source): Make static.
8277 (annotate_source_line): Moved from source.c and renamed from
8278 identify_source_line. Update the return type.
8279 * annotate.h (annotate_source): Delete declaration.
8280 (annotate_source_line): Declaration moved from source.h, and
8281 renamed from identify_source_line. Return type updated.
8282 * source.c (identify_source_line): Moved to annotate.c and renamed
8283 to annotate_source_line.
8284 (info_line_command): Remove check of annotation_level.
8285 * source.h (identify_source_line): Move declaration to annotate.h
8286 and rename to annotate_source_line.
8287 * stack.c: Add 'annotate.h' include.
8288 (print_frame_info): Remove check of annotation_level before
8289 calling annotate_source_line.
8290
00df30ae
AB
82912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8292
8293 * source-cache.c (source_cache::get_plain_source_lines): Use
8294 open_source_file_with_line_charpos instead of just
8295 open_source_file, remove call to find_source_lines.
8296 (source_cache::get_source_lines): Likewise.
8297 * source.c (find_source_lines): Make static.
8298 (get_filename_and_charpos): Renamed into...
8299 (open_source_file_with_line_charpos): ..this along with changes to
8300 return a scoped_fd, and some other minor clean ups.
8301 (identify_source_line): Use open_source_file_with_line_charpos.
8302 (search_command_helper): Use open_source_file_with_line_charpos
8303 instead of just open_source_file, remove call to
8304 find_source_lines.
8305 * source.h (open_source_file_with_line_charpos): Declare new
8306 function.
8307 (find_source_lines): Delete declaration.
8308
afda45a2
AB
83092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8310
8311 * source.c (get_filename_and_charpos): Remove fullname
8312 parameter.
8313 (identify_source_line): Update call to get_filename_and_charpos.
8314
0735b091
TT
83152019-06-14 Tom Tromey <tromey@adacore.com>
8316
8317 PR gdb/24502:
8318 * ui-style.h (skip_ansi_escape): Update comment.
8319 * ui-file.h (class no_terminal_escape_file): New class.
8320 * ui-file.c (no_terminal_escape_file::write)
8321 (no_terminal_escape_file::puts): New methods.
8322 * cli/cli-logging.c (handle_redirections): Use
8323 no_terminal_escape_file.
8324
52ce35e2
TT
83252019-06-14 Tom Tromey <tromey@adacore.com>
8326
8327 * NEWS: Move convenience variable news above Python news.
8328
73cc7272
TT
83292019-06-14 Tom Tromey <tom@tromey.com>
8330
8331 * gnulib: Move directory to top-level.
8332 * configure.ac: Don't configure gnulib.
8333 * configure: Rebuild.
8334 * common/common-defs.h: Use new path to gnulib.
8335 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8336 (GNULIB_H): Remove.
8337 (INCGNU): Look in new gnulib location.
8338 (HFILES_NO_SRCDIR): Remove gnulib files.
8339 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8340 (generated_files): Remove GNULIB_H.
8341 ($(LIBGNU), all-lib): Remove targets.
8342 (distclean): Don't mention GNULIB_BUILDDIR.
8343 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8344
f5686554
TT
83452019-06-14 Tom Tromey <tromey@adacore.com>
8346
8347 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8348 Warn if symbol file does not provide any symbols.
8349
a0c1ffed
TT
83502019-06-14 Tom Tromey <tromey@adacore.com>
8351
8352 * source.c (find_and_open_source): Respect basenames_may_differ.
8353
7c39e397
AB
83542019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8355
8356 * annotate.c (annotate_breakpoints_invalid): Make use of
8357 scoped_restore_terminal_state.
8358 (annotate_frames_invalid): Likewise.
8359
f411722c
TT
83602019-06-14 Tom Tromey <tromey@adacore.com>
8361
8362 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8363 allow assignment to an internalvar.
8364
4268ec18
TT
83652019-06-14 Tom Tromey <tromey@adacore.com>
8366
8367 * ada-lex.l: Allow "_" in attribute names.
8368
abdb711e
TT
83692019-06-14 Tom Tromey <tromey@adacore.com>
8370
8371 PR gdb/24653:
8372 * regcache.c (registers_changed): Don't call alloca.
8373 * top.c (execute_command): Don't call alloca.
8374
4c048731
PA
83752019-06-13 Pedro Alves <palves@redhat.com>
8376
8377 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8378 'expression'. When parsing an expression, error out if there's
8379 junk after "unlimited".
8380 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8381 (do_set_command): Adjust calls to is_unlimited_literal.
8382
66eb1ed3
PA
83832019-06-13 Pedro Alves <palves@redhat.com>
8384
8385 * compile/compile.c (make_compile_options_def_group): Add braces
8386 around array_view initializer.
8387 * thread.c (make_thread_apply_all_options_def_group)
8388 (make_thread_apply_all_options_def_group): Likewise.
8389
3345721a
PA
83902019-06-13 Pedro Alves <palves@redhat.com>
8391
8392 * NEWS (New commands): Mention "maint test-options
8393 require-delimiter", "maint test-options unknown-is-error", "maint
8394 test-options unknown-is-operand" and "maint show
8395 test-options-completion-result".
8396 (New command options, command completion): New section.
8397 (Completion improvements): New section.
8398 Mention that you can abbreviate "unlimited".
8399
6206060d
PA
84002019-06-13 Pedro Alves <palves@redhat.com>
8401
8402 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8403 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8404 * unittests/cli-utils-selftests.c (test_parse_flags)
8405 (test_parse_flags_qcs): Delete.
8406 (test_cli_utils): Don't call deleted functions.
8407
6665660a
PA
84082019-06-13 Pedro Alves <palves@redhat.com>
8409
8410 * thread.c: Include "cli/cli-option.h".
8411 (tp_array_compar_ascending): Global.
8412 (tp_array_compar): Delete function.
8413 (tp_array_compar_ascending, tp_array_compar_descending): New
8414 functions.
8415 (ascending_option_def, qcs_flag_option_def)
8416 (thr_qcs_flags_option_defs)
8417 (make_thread_apply_all_options_def_group)
8418 (make_thread_apply_options_def_group): New.
8419 (thread_apply_all_command): Use gdb::option::process_options.
8420 (thread_apply_command_completer)
8421 (thread_apply_all_command_completer): New.
8422 (thread_apply_command): Use gdb::option::process_options.
8423 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8424 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8425 to generate help text of "thread apply". Adjust "taas"'s help.
8426 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8427 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8428
f7e13587
PA
84292019-06-13 Pedro Alves <palves@redhat.com>
8430
8431 * thread.c (thread_apply_command): Check for invalid TID with
8432 isdigit instead of !isalpha.
8433
5d707134
PA
84342019-06-13 Pedro Alves <palves@redhat.com>
8435
8436 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8437 (validate_flags_qcs): New.
8438 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8439 (validate_flags_qcs): Declare.
8440 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8441 (make_frame_apply_options_def_group): New.
8442 (frame_apply_command_count): Process options with
8443 gdb::option::process_options.
8444 (frame_apply_completer): New.
8445 (frame_apply_level_completer, frame_apply_all_completer)
8446 (frame_apply_completer): New.
8447 (_initialize_stack): Update help of "frame apply", "frame apply
8448 level", "frame apply all" and "faas" to mention supported options
8449 and install command completers.
8450 * stack.h (frame_apply_all_completer): Declare.
8451 * thread.c: Include "stack.h".
8452 (tfaas_command): Add "--".
8453 (_initialize_thread): Update help "tfaas" to mention supported
8454 options and install command completer.
8455
272d4594
PA
84562019-06-13 Pedro Alves <palves@redhat.com>
8457
8458 * completer.c (complete_nested_command_line): New.
8459 (gdb_completion_word_break_characters_throw): Add assertion.
8460 * completer.h (complete_nested_command_line): Declare.
8461
90a1ef87
PA
84622019-06-13 Pedro Alves <palves@redhat.com>
8463
8464 * stack.c (parse_backtrace_qualifiers): New.
8465 (backtrace_command): Use it.
8466 (backtrace_command_completer): Complete on qualifiers.
8467
d4c16835
PA
84682019-06-13 Pedro Alves <palves@redhat.com>
8469
8470 * frame.c: Include "cli/cli-option.h.
8471 (user_set_backtrace_options): New.
8472 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8473 Delete.
8474 (get_prev_frame): Adjust.
8475 (boolean_option_def, uinteger_option_def)
8476 (set_backtrace_option_defs): New.
8477 (_initialize_frame): Adjust and use
8478 gdb::option::add_setshow_cmds_for_options to install "set
8479 backtrace past-main" and "set backtrace past-entry".
8480 * frame.h: Include "cli/cli-option.h".
8481 (struct frame_print_options): Forward declare.
8482 (print_frame_arguments_all, print_frame_arguments_scalars)
8483 (print_frame_arguments_none): Declare.
8484 (print_entry_values): Delete declaration.
8485 (struct frame_print_options, user_frame_print_options): New.
8486 (struct set_backtrace_options): New.
8487 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8488 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8489 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8490 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8491 (list_args_or_locals): Add frame_print_options parameter.
8492 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8493 * python/py-framefilter.c (enumerate_args): Pass down
8494 USER_FRAME_PRINT_OPTIONS.
8495 * stack.c: Include "cli/cli-option.h".
8496 (print_frame_arguments_all, print_frame_arguments_scalars)
8497 (print_frame_arguments_none): Declare.
8498 (print_raw_frame_arguments, print_entry_values): Delete.
8499 (user_frame_print_options): New.
8500 (boolean_option_def, enum_option_def, frame_print_option_defs):
8501 New.
8502 (struct backtrace_cmd_options): New.
8503 (bt_flag_option_def): New.
8504 (backtrace_command_option_defs): New.
8505 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8506 (print_frame_arg, read_frame_arg, print_frame_args)
8507 (print_frame_info, print_frame): Add frame_print_options parameter
8508 and use it.
8509 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8510 (backtrace_command_1): Add frame_print_options and
8511 backtrace_cmd_options parameters and use them.
8512 (make_backtrace_options_def_group): New.
8513 (backtrace_command): Process command options with
8514 gdb::option::process_options.
8515 (backtrace_command_completer): New.
8516 (_initialize_stack): Extend "backtrace"'s help to mention
8517 supported options. Install completer for "backtrace".
8518 Install some settings commands with add_setshow_cmds_for_options.
8519
2daf894e
PA
85202019-06-13 Pedro Alves <palves@redhat.com>
8521
8522 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8523 and that "set/show print raw frame-arguments" are now deprecated.
8524
8525 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8526 command.
8527 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8528 * stack.c (_initialize_stack): Install "set/show print
8529 raw-frame-arguments", and deprecate "set/show print raw
8530 frame-arguments".
8531 * valprint.c (_initialize_valprint): Deprecate "set/show print
8532 raw".
8533
e6ed716c
PA
85342019-06-13 Pedro Alves <palves@redhat.com>
8535
8536 * compile/compile.c (struct compile_options): New.
8537 (compile_flag_option_def, compile_command_option_defs)
8538 (make_compile_options_def_group): New.
8539 (compile_file_command): Handle options with
8540 gdb::option::process_options.
8541 (compile_file_command_completer): New function.
8542 (compile_code_command): Handle options with
8543 gdb::option::process_options.
8544 (compile_code_command_completer): New function.
8545 (_initialize_compiler): Install completers for "compile code" and
8546 "compile file". Mention available options in "compile code" and
8547 "compile code"'s help.
8548 * completer.c (advance_to_completion_word): New, factored out from
8549 ...
8550 (advance_to_expression_complete_word_point): ... this.
8551 (advance_to_filename_complete_word_point): New.
8552 * completer.h (advance_to_filename_complete_word_point): New
8553 declaration.
8554
7d8062de
PA
85552019-06-13 Pedro Alves <palves@redhat.com>
8556
8557 * compile/compile.c: Include "cli/cli-option.h".
8558 (compile_print_value): Scope data pointer is now a
8559 value_print_options pointer; adjust.
8560 (compile_print_command): Process options. Scope data pointer is
8561 now a value_print_options pointer; adjust.
8562 (_initialize_compile): Update "compile print"'s help to include
8563 supported options. Install a completer for "compile print".
8564 * cp-valprint.c (show_vtblprint, show_objectprint)
8565 (show_static_field_print): Delete.
8566 (_initialize_cp_valprint): Don't install "set print
8567 static-members", "set print vtbl", "set print object" here.
8568 * printcmd.c: Include "cli/cli-option.h" and
8569 "common/gdb_optional.h".
8570 (print_command_parse_format): Rework to fill in a
8571 value_print_options instead of a format_data.
8572 (print_value): Change parameter type from format_data pointer to
8573 value_print_options reference. Adjust.
8574 (print_command_1): Process options. Adjust to pass down a
8575 value_print_options.
8576 (print_command_completer): New.
8577 (_initialize_printcmd): Install print_command_completer as
8578 handle_brkchars completer for the "print" command. Update
8579 "print"'s help to include supported options.
8580 * valprint.c: Include "cli/cli-option.h".
8581 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8582 here from cp-valprint.c.
8583 (boolean_option_def, uinteger_option_def)
8584 (value_print_option_defs, make_value_print_options_def_group):
8585 New. Use gdb::option::add_setshow_cmds_for_options to install
8586 "set print elements", "set print null-stop", "set print repeats",
8587 "set print pretty", "set print union", "set print array", "set
8588 print address", "set print symbol", "set print array-indexes".
8589 * valprint.h: Include <string> and "cli/cli-option.h".
8590 (make_value_print_options_def_group): Declare.
8591 (print_value): Change parameter type from format_data pointer to
8592 value_print_options reference.
8593 (print_command_completer): Declare.
8594
9d0faba9
PA
85952019-06-13 Pedro Alves <palves@redhat.com>
8596
8597 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8598 (COMMON_SFILES): Add maint-test-settings.c.
8599 * cli/cli-decode.c (boolean_enums): New global, factored out from
8600 ...
8601 (add_setshow_boolean_cmd): ... here.
8602 * cli/cli-decode.h (boolean_enums): Declare.
8603 * cli/cli-option.c: New file.
8604 * cli/cli-option.h: New file.
8605 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8606 factored out from ...
8607 (parse_cli_boolean_value(const char *)): ... this.
8608 (is_unlimited_literal): Change parameter type to pointer to
8609 pointer. Adjust and advance ARG pointer.
8610 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8611 (parse_cli_var_enum): New, factored out from ...
8612 (do_set_command): ... this. Adjust.
8613 * cli/cli-setshow.h (parse_cli_boolean_value)
8614 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8615 (parse_cli_var_enum): Declare.
8616 * cli/cli-utils.c: Include "cli/cli-option.h".
8617 (get_ulongest): New.
8618 * cli/cli-utils.h (get_ulongest): Declare.
8619 (check_for_argument): New overloads.
8620 * maint-test-options.c: New file.
8621
2c722807
PA
86222019-06-13 Pedro Alves <palves@redhat.com>
8623
8624 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8625 parse a range if "-" is at the end of the string.
8626
dee7b4c8
PA
86272019-06-13 Pedro Alves <palves@redhat.com>
8628
8629 * cli/cli-setshow.c (parse_auto_binary_operation)
8630 (parse_cli_boolean_value): Don't allow "o".
8631
dca0f6c0
PA
86322019-06-13 Pedro Alves <palves@redhat.com>
8633
8634 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8635 * NEWS: Mention maint test-settings KIND.
8636 * maint-test-settings.c: New file.
8637
597bf39d
PA
86382019-06-13 Pedro Alves <palves@redhat.com>
8639
8640 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8641 completer.
8642 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8643 "set" completers.
8644
48c410fb
PA
86452019-06-13 Pedro Alves <palves@redhat.com>
8646
8647 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8648 after item.
8649
93bcb043
PA
86502019-06-13 Pedro Alves <palves@redhat.com>
8651
8652 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8653
cbba3ecd
PA
86542019-06-13 Pedro Alves <palves@redhat.com>
8655
8656 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8657 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8658 call.
8659 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8660 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8661 calls.
8662 (check_for_argument): Skip spaces after argument.
8663
b9a3f842
PA
86642019-06-13 Pedro Alves <palves@redhat.com>
8665
8666 * thread.c (thread_apply_command): Adjust TID parsing.
8667 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8668 detected before end of string.
8669 (tid_is_in_list): Error out if LIST is invalid.
8670
3844e605
PA
86712019-06-13 Pedro Alves <palves@redhat.com>
8672
8673 * completer.c (complete_line_internal_1): Rewind completion word
8674 point.
8675 (completion_tracker::advance_custom_word_point_by): Change
8676 parameter type to int.
8677 * completer.h (completion_tracker::advance_custom_word_point_by):
8678 Likewise.
8679
00b56dbe
PA
86802019-06-13 Pedro Alves <palves@redhat.com>
8681
8682 * completer.c (advance_to_completion_word): Handle delimiters.
8683
d106773e
PA
86842019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8685
8686 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8687
08f10e02
TT
86882019-06-11 Tom Tromey <tom@tromey.com>
8689
8690 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8691 (xmalloc_failed): Move to alloc.c.
8692 * alloc.c: New file.
8693 * Makefile.in (COMMON_SFILES): Add alloc.c.
8694
1c7fe951
TT
86952019-06-11 Tom Tromey <tom@tromey.com>
8696
8697 * nat/linux-waitpid.c: Don't include server.h.
8698 (linux_debug): Remove.
8699 (my_waitpid): Update.
8700
89549d7f
TT
87012019-06-11 Tom Tromey <tromey@adacore.com>
8702
8703 * infcall.c (_initialize_infcall): Remove trailing newline from
8704 help.
8705 * user-regs.c (_initialize_user_regs): Remove trailing newline
8706 from help.
8707 * typeprint.c (_initialize_typeprint): Remove trailing newline
8708 from help.
8709 * reverse.c (_initialize_reverse): Remove trailing newlines from
8710 help.
8711 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8712 from help.
8713 * language.c (add_set_language_command): Remove trailing newline
8714 from help.
8715 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8716 help.
8717 * disasm.c (_initialize_disasm): Remove trailing newline from
8718 help.
8719 * top.c (init_main): Remove trailing newline from help.
8720 * interps.c (_initialize_interpreter): Remove trailing newline
8721 from help.
8722 * btrace.c (_initialize_btrace): Remove trailing newlines from
8723 help.
8724 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8725 from help.
8726 * python/python.c (_initialize_python): Remove trailing newline
8727 from help.
8728 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8729 help.
8730 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8731 from help. Reformat some text.
8732 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8733 from help.
8734 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8735 newline from help.
8736
86108c13
TT
87372019-06-11 Tom Tromey <tromey@adacore.com>
8738
8739 * darwin-nat.c (darwin_decode_exception_message)
8740 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8741
a7067863
AB
87422019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * valops.c (value_slice): Check for not allocated or not
8745 associated values.
8746
9ab08412
TV
87472019-06-10 Tom de Vries <tdevries@suse.de>
8748
8749 PR gdb/24618
8750 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8751 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8752 invalid.
8753
f19e22e9
TV
87542019-06-10 Tom de Vries <tdevries@suse.de>
8755
8756 PR gdb/24611
8757 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8758 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8759
e99f9db0
TV
87602019-06-10 Tom de Vries <tdevries@suse.de>
8761
8762 PR symtab/24545
8763 * symtab.c (struct demangled_name_entry): Add language field.
8764 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8765 static minimal symbol". Set and use language field.
8766
9bf7038b
TT
87672019-06-10 Tom Tromey <tromey@adacore.com>
8768
8769 * ada-lang.c (_initialize_ada_language): Update help text.
8770
422186a9
TT
87712019-06-10 Tom Tromey <tromey@adacore.com>
8772
8773 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8774 with a newline.
8775 * guile/guile.c (handle_boot_error): Don't end warning with a
8776 newline.
8777 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8778 warning with a newline.
8779 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8780 newline.
8781 (s12z_frame_cache): Likewise.
8782 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8783 a newline.
8784 * solib-svr4.c (disable_probes_interface): Don't end warning with
8785 a newline.
8786 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8787 newline.
8788 * python/python.c (do_finish_initialization): Don't end warning
8789 with a newline.
8790
25ce02ee
TT
87912019-06-10 Tom Tromey <tom@tromey.com>
8792
8793 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8794 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8795 gdbpy_enter.
8796
caa429d8
TT
87972019-06-10 Tom Tromey <tromey@adacore.com>
8798
8799 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8800 data.
8801 (elf_new_init): Don't call stabsread_new_init.
8802 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8803 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8804 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8805
81873cc8
TV
88062019-06-10 Tom de Vries <tdevries@suse.de>
8807
8808 PR symtab/16264
8809 PR symtab/24517
8810 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8811
4fa0265e
РИ
88122019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8813
8814 * source.c (find_and_open_source): Also rewrite relative file
8815 names.
8816
1a3da2cd
AB
88172019-04-26 Amos Bird <amosbird@gmail.com>
8818
8819 * annotate.c (annotate_thread_exited): Add "thread-exited"
8820 annotation.
8821
3847a7bf
TT
88222019-06-06 Tom Tromey <tromey@adacore.com>
8823
8824 * maint.h (class scoped_command_stats): Use
8825 DISABLE_COPY_AND_ASSIGN.
8826 <print_time>: New method.
8827 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8828 print_time.
8829 (scoped_command_stats::print_time): New method.
8830
312617a3
AB
88312019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8834 instructions of lengths 6 or 8 bytes.
8835
b02f78f9
PA
88362019-06-04 Pedro Alves <palves@redhat.com>
8837
8838 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8839
8840 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8841 * breakpoint.c (condition_completer): Likewise.
8842 * cli/cli-dump.c (scan_expression): Likewise.
8843 * common/filestuff.c (mkdir_recursive): Likewise.
8844 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8845 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8846 (gdb_abspath): Likewise.
8847 * compile/compile-cplus-types.c
8848 (compile_cplus_instance::decl_name): Likewise.
8849 * completer.c (complete_explicit_location):
8850 (signal_completer, reg_or_group_completer_1): Likewise.
8851 * cp-support.c (cp_remove_params_if_any): Likewise.
8852 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8853 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8854 * infcmd.c (strip_bg_char): Likewise.
8855 * linespec.c (copy_token_string): Likewise.
8856 * mi/mi-main.c (output_cores): Likewise.
8857 * psymtab.c (psymtab_search_name):
8858 * symfile.c (test_set_ext_lang_command): Likewise.
8859 * target.c (target_fileio_read_stralloc): Likewise.
8860 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8861 * value.c (complete_internalvar): Likewise.
8862
e1f2e1a2
CB
88632019-06-04 Christian Biesinger <cbiesinger@google.com>
8864
8865 Add objfile property to gdb.Type.
d3238f7d
PA
8866 * NEWS: Mention Python API addition.
8867 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8868
e664d728
PW
88692019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8870
8871 * NEWS: Mention the new set|show style [title|highlight].
8872 Mention changes to "show style", "help" and "apropos".
8873
66d8c862
PW
88742019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8875
8876 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8877 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8878 instead of print_help_for_command.
8879 (print_doc_of_command): New function.
8880 (help_list): Add 'apropos -v word' suggestion.
8881 (print_help_for_command): Style the command name using title style.
8882 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8883 (_initialize_cli_cmds): Describe -v in apropos_command help.
8884
9303eb2f
PW
88852019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8886
8887 * cli/cli-style.h (cli_style_option): Add name in constructor,
8888 add m_name class member, add constructor with intensity,
8889 add name class function.
8890 (cli_style_option::add_setshow_commands): Remove name argument.
8891 (highlight_style, title_style): New styles.
8892 * cli/cli-style.c (do_show): New function that shows a style
8893 characteristic styling the style name with itself.
8894 (set_style_name): New function.
8895 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8896 Update all callers according to the changes in cli/cli-style.h.
8897 * utils.h (fputs_highlighted): New function.
8898 * utils.c (fputs_highlighted): Likewise.
8899
e2c52041
PW
89002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901
8902 * NEWS: Mention new pipe command and new convenience variables.
8903
947d3946
PW
89042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8905
8906 * cli/cli-cmds.c (pipe_command): New function.
8907 (_initialize_cli_cmds): Call add_com for pipe_command.
8908 Define | as an alias for pipe.
8909 (exit_status_set_internal_vars): New function.
8910 (shell_escape): Call exit_status_set_internal_vars.
8911 cli/cli-decode.c (find_command_name_length): Recognize | as
8912 a single character command.
8913
b8fd0918
PW
89142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8915
8916 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8917 top.c (execute_command_to_ui_file): New function, mostly a copy
8918 of execute_command_to_string.
8919 (execute_command_to_string): Implement by calling
8920 execute_command_to_ui_file.
8921
68bb5386
PW
89222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8923
8924 * top.h (saved_command_line): Remove declaration.
8925 * top.c (previous_saved_command_line, previous_repeat_arguments):
8926 New variables.
8927 (saved_command_line): Make static, define together with other
8928 'repeat variables'.
8929 (dont_repeat): Clear repeat_arguments.
8930 (repeat_previous, get_saved_command_line, save_command_line):
8931 New functions.
8932 (gdb_init): Initialize saved_command_line
8933 and previous_saved_command_line.
8934 * main.c (captured_main_1): Remove saved_command_line initialization.
8935 * event-top.c (handle_line_of_input): Update to use
8936 the new 'repeat' related functions instead of direct access to
8937 saved_command_line.
8938 * command.h (repeat_previous, get_saved_command_line,
8939 save_command_line): New declarations.
8940 (dont_repeat): Add comment.
8941
bfcdb852
TT
89422019-05-30 Tom Tromey <tromey@adacore.com>
8943
8944 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8945 Fix comment.
8946 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8947
0ef209f2
JV
89482019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8949
8950 PR cli/24587
8951 * completer.c (complete): Initialize variable word.
8952
955b06fa
SDJ
89532019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8954
8955 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8956 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8957 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8958 'body' is NULL to the outter 'if', protecting the '!is_define'
8959 situation as well.
8960
fa9c3fa0
TT
89612019-05-29 Tom Tromey <tromey@adacore.com>
8962
8963 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8964 (dwarf_unknown): New function.
8965 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8966 (dwarf_type_encoding_name): Use dwarf_unknown.
8967
4330d61d
TT
89682019-05-29 Tom Tromey <tromey@adacore.com>
8969
8970 PR c++/20020:
8971 * cp-valprint.c (cp_print_value_fields): Call
8972 cp_print_static_field inside "try".
8973
33a6bc35
TT
89742019-05-29 Tom Tromey <tromey@adacore.com>
8975
8976 * inflow.c (struct terminal_info): Add default operator=.
8977 * configure: Rebuild.
8978 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8979 -Wdeprecated-copy-dtor, -Wredundant-move.
8980
000439d5
TT
89812019-05-29 Tom Tromey <tromey@adacore.com>
8982
8983 * NEWS: Add entry.
8984 * infcmd.c (print_return_value_1): Handle finish_print
8985 option.
8986 (show_print_finish): New function.
8987 (_initialize_infcmd): Add "set/show print finish" commands.
8988 * valprint.c (user_print_options): Initialize new member.
8989 * valprint.h (struct value_print_options) <finish_print>: New
8990 member.
8991
c0e70c62
TT
89922019-05-28 Tom Tromey <tromey@adacore.com>
8993
8994 * ada-lang.c (ada_remove_Xbn_suffix)
8995 (find_old_style_renaming_symbol)
8996 (parse_old_style_renaming): Remove.
8997 (ada_find_renaming_symbol): Don't call
8998 find_old_style_renaming_symbol.
8999 (ada_is_renaming_symbol): Rename from
9000 ada_find_renaming_symbol. Remove "block" parameter. Return
9001 bool. Now static.
9002 (ada_read_var_value): Update and simplify.
9003 * ada-exp.y (write_var_or_type): Remove old code.
9004
766f8836
AH
90052019-05-28 Alan Hayward <alan.hayward@arm.com>
9006
68255adc 9007 PR gdb/25010
766f8836
AH
9008 * event-top.c: Remove include comment.
9009 * inflow.c (class scoped_ignore_sigttou): Move from here...
9010 * inflow.h (class scoped_ignore_sigttou): ...to here.
9011 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9012 * top.c: Remove include comment.
9013
eb41253a
TT
90142019-05-27 Tom Tromey <tom@tromey.com>
9015
9016 * NEWS: Fix typo.
9017
4ca51187
TT
90182019-05-22 Tom Tromey <tromey@adacore.com>
9019
9020 * target.c (target_follow_exec): Constify parameter.
9021 * target-delegates.c: Rebuild.
9022 * remote.c (remote_target::follow_exec): Constify parameter.
9023 * infrun.c (follow_exec): Constify parameter.
9024 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9025 (target_follow_exec): Likewise.
9026
8fca4da0
AH
90272019-05-22 Alan Hayward <alan.hayward@arm.com>
9028
9029 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9030 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9031
b7060614
AH
90322019-05-22 Alan Hayward <alan.hayward@arm.com>
9033
9034 * NEWS: Add debugredirect and testsuite sections.
9035
0a5954bd
SC
90362019-05-22 Simon Cook <simon.cook@embecosm.com>
9037
9038 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9039 target descriptions using exclusively floating point register name
9040 aliases.
9041
dc42e902
AB
90422019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 PR gdb/18644:
9045 * f-lang.c (build_fortran_types): Handle the case where
9046 gdbarch_floatformat_for_type returns a nullptr.
9047
fb7806c7
TV
90482019-05-21 Tom de Vries <tdevries@suse.de>
9049
9050 PR cli/24587
9051 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9052
34d11c68
AB
90532019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9054
9055 PR gdb/18644:
9056 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9057 16-byte floats.
9058 * i386-tdep.c (i386_floatformat_for_type): Use
9059 floatformats_ia64_quad for the 16-byte floating point component
9060 within a fortran 32-byte complex number.
9061
122cf0f2
AB
90622019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9065 delete default constructor.
9066 (find_partial_die): Update to return const struct.
9067 (partial_die_parent_scope): Move variable declaration into scope
9068 of its use and change its type to auto.
9069 (guess_partial_die_structure_name): Likewise.
9070 (partial_die_info::fixup): Likewise.
9071
33d0e35a
TT
90722019-05-17 Tom Tromey <tromey@adacore.com>
9073
9074 * source.c (find_and_open_source): Remove cast.
9075
a45575b0
TT
90762019-05-17 Tom Tromey <tromey@adacore.com>
9077
9078 * annotate.c (annotate_source): Make "filename" const.
9079 * annotate.h (annotate_source): Use const.
9080
81f47ac2
AH
90812019-05-17 Alan Hayward <alan.hayward@arm.com>
9082
9083 * disasm.c (set_disassembler_options): Send errors to stderr.
9084
ca1285d1
AH
90852019-05-17 Alan Hayward <alan.hayward@arm.com>
9086
9087 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9088 (cli_interp_base::set_logging): Check debug_redirect.
9089 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9090 * cli/cli-logging.c (debug_redirect): Add static variable.
9091 (pop_output_files): Add default param.
9092 (handle_redirections): Print debug setting.
9093 (show_logging_command): Likewise.
9094 (_initialize_cli_logging): Add debugredirect command.
9095 * interps.c (current_interp_set_logging): Add debug_redirect
9096 parameter.
9097 * interps.h (set_logging): Add debug_redirect parameter.
9098 (current_interp_set_logging): Likewise.
9099 * mi/mi-common.h: Likewise.
9100 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9101
91022019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9103 Tom Tromey <tromey@adacore.com>
9104
9105 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9106 directly.
9107 * cli/cli-interp.h (make_logging_output): Remove declaration.
9108 * cli/cli-logging.c (make_logging_output): Remove function.
9109 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9110 directly.
9111 * ui-file.c (tee_file::tee_file): Remove bools.
9112 (tee_file::~tee_file): Remove deletes.
9113 * ui-file.h (tee_file): Remove bools.
9114
26648588
JV
91152019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9116
9117 * mi/mi-cmds.h (mi_cmd_complete): New function.
9118 * mi/mi-main.c (mi_cmd_complete): Likewise.
9119 * mi/mi-cmds.c: Define new MI command -complete.
9120 * NEWS: Mention new -complete command.
9121
6e035501
JV
91222019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9123
9124 * completer.h (complete): New function.
9125 * completer.c (complete): Likewise.
9126 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9127 function defined in completer.h.
9128
7d0e2ece
JV
91292019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9130
e79be6e5 9131 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9132
fb816e8b
TV
91332019-05-17 Tom de Vries <tdevries@suse.de>
9134
9135 PR gdb/24094
9136 * dwarf2read.c (struct cu_partial_die_info): New struct.
9137 (find_partial_die): Return cu_partial_die_info.
9138 (partial_die_parent_scope, guess_partial_die_structure_name)
9139 (partial_die_info::fixup): Handle new return type of find_partial_die.
9140
677052f2
SDJ
91412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9142
a1726c38 9143 PR breakpoints/24541
677052f2
SDJ
9144 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9145 "std::string", simplifying the algorithm.
9146
f3da9116
SDJ
91472019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9148
9149 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9150 (stap_static_probe_ops::get_probes): Likewise.
9151
f1bb75ab
SDJ
91522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9153
9154 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9155 '-')" and "else if".
9156 (stap_parse_single_operand): Join checks for
9157 "gdbarch_stap_parse_special_token_p" and
9158 "gdbarch_stap_parse_special_token" in the same "if" statement.
9159 Invert check when verifying for operation on register
9160 displacement.
9161
3ca58cde
SDJ
91622019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9163
9164 * stap-probe.c (stap_get_opcode): Update comment.
9165 (stap_get_expected_argument_type): Likewise.
9166 (handle_stap_probe): Likewise.
9167
af2d9bee
SDJ
91682019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9169
9170 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9171 return type to 'bool'. Adjust comment. Use 'bool' when
9172 appropriate.
9173 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9174 * stap-probe.c (stap_parse_argument_1): Likewise.
9175 (stap_is_operator): Likewise.
9176 (stap_is_generic_prefix): Likewise.
9177 (stap_is_register_prefix): Likewise.
9178 (stap_is_register_indirection_prefix): Likewise.
9179 (stap_is_integer_prefix): Likewise.
9180 (stap_generic_check_suffix): Likewise.
9181 (stap_check_integer_suffix): Likewise.
9182 (stap_check_register_suffix): Likewise.
9183 (stap_check_register_indirection_suffix): Likewise.
9184 (stap_parse_register_operand): Likewise.
9185 (stap_parse_single_operand): Likewise.
9186 (stap_parse_argument_1): Likewise.
9187 (stap_probe::get_argument_count): Likewise.
9188 (stap_is_operator): Likewise.
9189
61c9c421
TT
91902019-05-16 Tom Tromey <tromey@adacore.com>
9191
9192 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9193 keyword to foreach.
9194
9ddc1af1
SM
91952019-05-15 Simon Marchi <simon.marchi@efficios.com>
9196
9197 * linux-thread-db.c (try_thread_db_load_1): Change return type
9198 to bool.
9199 (try_thread_db_load): Likewise.
9200 (try_thread_db_load_from_pdir_1): Likewise.
9201 (try_thread_db_load_from_pdir): Likewise.
9202 (try_thread_db_load_from_sdir): Likewise.
9203 (try_thread_db_load_from_dir): Likewise.
9204 (thread_db_load_search): Likewise.
9205 (has_libpthread): Likewise.
9206 (thread_db_load): Likewise.
9207
7bede828
SDJ
92082019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9209
9210 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9211 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9212 NULL, and complain/return if that's the case.
9213
c5358db4
JD
92142019-05-15 John Darrington <john@darrington.wattle.id.au>
9215
9216 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9217 (advance, posn, abstract_read_memory): New functions.
9218 [struct mem_read_abstraction]: New struct.
9219 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9220
c408a94f
TT
92212019-05-14 Tom Tromey <tromey@adacore.com>
9222
9223 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9224 value is not lval_memory.
9225
e7bd7fba
TT
92262019-05-14 Tom Tromey <tromey@adacore.com>
9227
9228 * solib.c (info_sharedlibrary_command): Style the file name.
9229
a6d0f249
AH
92302019-05-14 Alan Hayward <alan.hayward@arm.com>
9231
9232 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9233 (aarch64_vnv_type): Likewise.
9234 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9235 * common/tdesc.c: Likewise.
9236 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9237 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9238 * features/aarch64-fpu.xml: Add ieee half view.
9239 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9240 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9241 * gdbtypes.h (struct builtin_type): Likewise.
9242 (struct objfile_type): Likewise.
9243
66b8bb74
SM
92442019-05-12 Paul Naert <paul.naert@polymtl.ca>
9245
9246 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9247 typo.
9248 * location.h (string_to_event_location): Likewise.
9249
21c219fd
JB
92502019-05-11 Joel Brobecker <brobecker@adacore.com>
9251
9252 GDB 8.3 released.
9253
13674803
SM
92542019-05-10 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9257 New variable declaration.
9258 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9259 New variable.
9260 (print_one_breakpoint): Use ui_out::test_flags and new global
9261 variable to compute use_fixed_output.
9262 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9263 Remove.
9264 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9265 (mi_multi_location_breakpoint_output_fixed): Remove.
9266 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9267 new variable.
9268 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9269 fix_multi_location_breakpoint_output flag if version >= 3.
9270 * ui-out.h (enum ui_out_flag)
9271 <fix_multi_location_breakpoint_output>: New enumerator.
9272
a9eac7f9
SM
92732019-05-10 Simon Marchi <simon.marchi@efficios.com>
9274
9275 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9276
71bed2db
TT
92772019-05-10 Tom Tromey <tromey@adacore.com>
9278
9279 * ada-lang.c (catch_ada_completer): New function.
9280 (_initialize_ada_language): Use it.
9281
24c54127
TT
92822019-05-10 Tom Tromey <tromey@adacore.com>
9283
9284 * thread.c (print_thread_info): Make "requested_threads" const.
9285 * gdbthread.h (print_thread_info): Make "requested_threads"
9286 const.
9287 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9288 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9289
7a102139
TT
92902019-05-08 Tom Tromey <tom@tromey.com>
9291
9292 * gdbtypes.c (objfile_type_data): Change type.
9293 (objfile_type, _initialize_gdbtypes): Update.
9294
924d79e2
TT
92952019-05-08 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9298 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9299 (_initialize_dwarf2_frame): Update.
9300
4c58e337
TT
93012019-05-08 Tom Tromey <tom@tromey.com>
9302
9303 * objc-lang.c (objc_objfile_data): Change type.
9304 (find_methods): Update.
9305 (_initialize_objc_lang): Remove.
9306
d772d2ab
TT
93072019-05-08 Tom Tromey <tom@tromey.com>
9308
9309 * stabsread.c (rs6000_builtin_type_data): Change type.
9310 (rs6000_builtin_type, _initialize_stabsread): Update.
9311
d11d83f4
TT
93122019-05-08 Tom Tromey <tom@tromey.com>
9313
9314 * mips-tdep.c (mips_pdr_data): Remove.
9315 (_initialize_mips_tdep): Update.
9316
9a73f0ad
TT
93172019-05-08 Tom Tromey <tom@tromey.com>
9318
9319 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9320 (hppa_init_objfile_priv_data, read_unwind_info)
9321 (find_unwind_entry, _initialize_hppa_tdep): Update.
9322
8127a2fa
TT
93232019-05-08 Tom Tromey <tom@tromey.com>
9324
9325 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9326 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9327 on obstack.
9328 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9329
91d3055d
TT
93302019-05-08 Tom Tromey <tom@tromey.com>
9331
9332 * mdebugread.c (basic_type_data): Change type.
9333 (basic_type, _initialize_mdebugread): Update.
9334
31930bd3
TT
93352019-05-08 Tom Tromey <tom@tromey.com>
9336
9337 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9338
bdb3ed9e
TT
93392019-05-08 Tom Tromey <tom@tromey.com>
9340
9341 * nto-tdep.c (nto_inferior_data_reg): Change type.
9342 (nto_inferior_data): Update.
9343 (nto_inferior_data_cleanup, nto_new_inferior_data)
9344 (_initialize_nto_tdep): Remove.
9345 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9346
f37b313d
TT
93472019-05-08 Tom Tromey <tom@tromey.com>
9348
9349 * ada-lang.c (struct ada_inferior_data): Add initializers.
9350 (ada_inferior_data): Change type.
9351 (ada_inferior_data_cleanup): Remove.
9352 (get_ada_inferior_data, ada_inferior_exit)
9353 (struct ada_pspace_data): Add initializers, destructor.
9354 (ada_pspace_data_handle): Change type.
9355 (get_ada_pspace_data): Update.
9356 (ada_pspace_data_cleanup): Remove.
9357
24699405
TT
93582019-05-08 Tom Tromey <tom@tromey.com>
9359
9360 * coffread.c (struct coff_symfile_info): Add initializers.
9361 (coff_objfile_data_key): Move lower. Change type.
9362 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9363 Update.
9364 (coff_free_info): Remove.
9365
d4e05d2f
TT
93662019-05-08 Tom Tromey <tom@tromey.com>
9367
9368 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9369 (fbsd_pspace_data_handle): Move lower. Change type.
9370 (get_fbsd_pspace_data): Update.
9371 (fbsd_pspace_data_cleanup): Remove.
9372 (_initialize_fbsd_tdep): Update.
9373
14ef6690
TT
93742019-05-08 Tom Tromey <tom@tromey.com>
9375
9376 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9377 (get_ada_tasks_pspace_data): Update.
9378 (ada_tasks_pspace_data_cleanup): Remove.
9379 (_initialize_tasks): Update.
9380 (ada_tasks_inferior_data_handle): Change type.
9381 (get_ada_tasks_inferior_data): Update.
9382 (ada_tasks_inferior_data_cleanup): Remove.
9383 (struct ada_tasks_pspace_data): Add initializers.
9384
814cf43a
TT
93852019-05-08 Tom Tromey <tom@tromey.com>
9386
9387 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9388 * symfile-debug.c (debug_sym_get_probes): Change type.
9389 * stap-probe.c (handle_stap_probe):
9390 (stap_static_probe_ops::get_probes): Change type.
9391 * probe.h (class static_probe_ops) <get_probes>: Change type.
9392 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9393 (parse_probes_in_pspace): Update.
9394 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9395 Update.
9396 (any_static_probe_ops::get_probes): Change type.
9397 * elfread.c (elfread_data): New typedef.
9398 (probe_key): Change type.
9399 (elf_get_probes): Likewise. Update.
9400 (probe_key_free): Remove.
9401 (_initialize_elfread): Update.
9402 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9403 Change type.
9404 (dtrace_process_dof_probe, dtrace_process_dof)
9405 (dtrace_static_probe_ops::get_probe): Change type.
9406
02dc647e
TT
94072019-05-08 Tom Tromey <tom@tromey.com>
9408
9409 * xcoffread.c (struct xcoff_symfile_info): Rename from
9410 coff_symfile_info. Add initializers.
9411 (xcoff_objfile_data_key): Move lower. Change type.
9412 (XCOFF_DATA): Rewrite.
9413 (xcoff_free_info): Remove.
9414 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9415 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9416 (xcoff_initial_scan): Update.
9417
09232438
TT
94182019-05-08 Tom Tromey <tom@tromey.com>
9419
9420 * solib-svr4.c (struct svr4_info): Add initializers and
9421 destructor.
9422 <probes_table>: Now an htab_up.
9423 (solib_svr4_pspace_data): Change type.
9424 (free_probes_table): Simplify.
9425 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9426 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9427 (probes_table_remove_objfile_probes, register_solib_event_probe)
9428 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9429 (_initialize_svr4_solib): Update.
9430
7b4a314f
TT
94312019-05-08 Tom Tromey <tom@tromey.com>
9432
9433 * remote.c (remote_pspace_data): Change type.
9434 (remote_pspace_data_cleanup): Remove.
9435 (get_remote_exec_file, set_pspace_remote_exec_file)
9436 (_initialize_remote): Update.
9437
51d3063a
TT
94382019-05-08 Tom Tromey <tom@tromey.com>
9439
9440 * breakpoint.c (breakpoint_objfile_key): Change type.
9441 (get_breakpoint_objfile_data): Update.
9442 (free_breakpoint_objfile_data): Remove.
9443 (_initialize_breakpoint): Update.
9444
89fb8848
TT
94452019-05-08 Tom Tromey <tom@tromey.com>
9446
9447 * linux-tdep.c (struct linux_info): Add initializers.
9448 (linux_inferior_data): Move. Change type.
9449 (invalidate_linux_cache_inf): Update.
9450 (linux_inferior_data_cleanup): Remove.
9451 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9452
e9b89e2d
TT
94532019-05-08 Tom Tromey <tom@tromey.com>
9454
9455 * auxv.c (auxv_inferior_data): Move. Change type.
9456 (auxv_inferior_data_cleanup): Remove.
9457 (invalidate_auxv_cache_inf): Rewrite.
9458 (get_auxv_inferior_data, _initialize_auxv): Update.
9459
8c42777c
TT
94602019-05-08 Tom Tromey <tom@tromey.com>
9461
9462 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9463 (symfile_debug_objfile_data_key): Change type.
9464 (symfile_debug_installed, debug_qf_has_symbols)
9465 (debug_qf_find_last_source_symtab)
9466 (debug_qf_forget_cached_source_info)
9467 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9468 (debug_qf_print_stats, debug_qf_dump)
9469 (debug_qf_expand_symtabs_for_function)
9470 (debug_qf_expand_all_symtabs)
9471 (debug_qf_expand_symtabs_with_fullname)
9472 (debug_qf_map_matching_symbols)
9473 (debug_qf_expand_symtabs_matching)
9474 (debug_qf_find_pc_sect_compunit_symtab)
9475 (debug_qf_map_symbol_filenames)
9476 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9477 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9478 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9479 (debug_sym_read_linetable, debug_sym_relocate): Update.
9480 (symfile_debug_free_objfile): Remove.
9481 (install_symfile_debug_logging, _initialize_symfile_debug):
9482 Update.
9483
5bfd760d
TT
94842019-05-08 Tom Tromey <tom@tromey.com>
9485
9486 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9487 allocate_on_obstack.
9488 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9489 (get_dwarf2_per_objfile): Update.
9490 (set_dwarf2_per_objfile): Remove.
9491 (dwarf2_has_info, dwarf2_get_section_info): Update.
9492 (dwarf2_free_objfile): Remove.
9493 (_initialize_dwarf2_read): Update.
9494
e85e19b4
TT
94952019-05-08 Tom Tromey <tom@tromey.com>
9496
9497 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9498 initializers.
9499 <unsupported_script_warning_printed,
9500 script_not_found_warning_printed>: Now bool.
9501 (auto_load_pspace_data): Change type.
9502 (~auto_load_pspace_info): Rename from
9503 auto_load_pspace_data_cleanup.
9504 (get_auto_load_pspace_data, init_loaded_scripts_info)
9505 (clear_section_scripts, maybe_print_unsupported_script_warning)
9506 (maybe_print_script_not_found_warning, _initialize_auto_load):
9507 Update.
9508
f6aa7436
TT
95092019-05-08 Tom Tromey <tom@tromey.com>
9510
9511 * objfiles.c (objfile_pspace_info): Add destructor and
9512 initializers.
9513 (objfiles_pspace_data): Change type.
9514 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9515 (get_objfile_pspace_data): Update.
9516 (objfiles_bfd_data): Change type.
9517 (get_objfile_bfd_data): Update.
9518 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9519
6ae614f6
TT
95202019-05-08 Tom Tromey <tom@tromey.com>
9521
9522 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9523 Change type.
9524 (get_catch_syscall_inferior_data): Update.
9525 (catch_syscall_inferior_data_cleanup): Remove.
9526 (_initialize_break_catch_syscall): Update.
9527
6509b8eb
TT
95282019-05-08 Tom Tromey <tom@tromey.com>
9529
9530 * inflow.c (struct terminal_info): Add destructor and
9531 initializers.
9532 (inflow_inferior_data): Change type.
9533 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9534 (get_inflow_inferior_data, inflow_inferior_exit)
9535 (swap_terminal_info, _initialize_inflow): Update.
9536
35632941
TT
95372019-05-08 Tom Tromey <tom@tromey.com>
9538
9539 * target-dcache.c (target_dcache_cleanup): Remove.
9540 (target_dcache_aspace_key): Change type.
9541 (target_dcache_init_p, target_dcache_invalidate)
9542 (target_dcache_get, target_dcache_get_or_init)
9543 (_initialize_target_dcache): Update.
9544 * dcache.h (struct dcache_deleter): New.
9545
3017b94d
TT
95462019-05-08 Tom Tromey <tom@tromey.com>
9547
9548 * symtab.c (struct symbol_cache): Add destructor and
9549 initializers.
9550 (symbol_cache_key): Move. Change type.
9551 (make_symbol_cache, free_symbol_cache): Remove.
9552 (get_symbol_cache): Update.
9553 (symbol_cache_cleanup): Remove.
9554 (ALL_PSPACES, symbol_cache_flush)
9555 (maintenance_print_symbol_cache)
9556 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9557 Update.
9558
a32ad8c5
TT
95592019-05-08 Tom Tromey <tom@tromey.com>
9560
9561 * symtab.c (struct main_info): Add destructor and initializers.
9562 (main_progspace_key): Move. Change type.
9563 (get_main_info): Update.
9564 (main_info_cleanup): Remove.
9565 (_initialize_symtab): Update.
9566
5f6e90a0
TT
95672019-05-08 Tom Tromey <tom@tromey.com>
9568
9569 * registry.h (DECLARE_REGISTRY): Define the _key class.
9570
1bd0c6e4
AB
95712019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9572
9573 * NEWS: Merge two 'New commands' sections.
9574
2228ef77
XR
95752019-05-08 Joel Brobecker <brobecker@adacore.com>
9576
9577 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9578 parameter and use Ada language definition instead.
9579 (ada_val_print_ptr): Remove unused language parameter.
9580 (ada_val_print_num): Remove language parameter and use Ada language
9581 definition instead.
9582 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9583 parameter.
9584 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9585 parameter and use Ada language definition instead.
9586 (ada_val_print_1): Update all ada_val_print_xxx calls.
9587 Remove language parameter.
9588 (ada_val_print): Update ada_val_print_1 call.
9589
60fcc1c3
TT
95902019-05-08 Tom Tromey <tromey@adacore.com>
9591
9592 * remote.c (remote_hw_watchpoint_limit)
9593 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9594 Now static.
9595
ed2b7c17
TT
95962019-05-08 Tom Tromey <tromey@adacore.com>
9597
9598 * maint.c (_initialize_maint_cmds): Move initialization code to
9599 remote.c.
9600 (watchdog, show_watchdog): Move to remote.c.
9601 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9602 "watchdog" static.
9603 (_initialize_remote): Move initialization code from maint.c.
9604 * defs.h (watchdog): Don't declare.
9605
b0be6c91
TT
96062019-05-08 Tom Tromey <tromey@adacore.com>
9607
9608 * tui/tui-interp.c: Include main.h.
9609 * interps.c: Include main.h.
9610 * main.h (interpreter_p): Declare.
9611 * defs.h (interpreter_p): Don't declare.
9612
587ee17b
TT
96132019-05-08 Tom Tromey <tromey@adacore.com>
9614
9615 * dwarf2loc.c: Include dwarf2read.h.
9616 * defs.h (read_unsigned_leb128): Don't declare.
9617 * dwarf2read.h (read_unsigned_leb128): Declare.
9618
ca1df239
TT
96192019-05-08 Tom Tromey <tromey@adacore.com>
9620
9621 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9622 method.
9623
99f20f08
TT
96242019-05-08 Tom Tromey <tromey@adacore.com>
9625
9626 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9627 when no wrap column is set.
9628
80e55b13
TT
96292019-05-08 Tom Tromey <tromey@adacore.com>
9630
9631 * c-lang.c (c_get_string): Handle non-C-style arrays.
9632
9d3421af
TT
96332019-05-08 Tom Tromey <tromey@adacore.com>
9634
9635 * typeprint.c (print_offset_data::update): Print the bit offset,
9636 not the number of bits remaining.
9637
844333e2
TT
96382019-05-08 Tom Tromey <tromey@adacore.com>
9639
9640 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9641 padding at end of comment.
9642
988915ee
TT
96432019-05-08 Tom Tromey <tromey@adacore.com>
9644
9645 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9646 Compare main types.
9647
26bfd823
TT
96482019-05-06 Tom Tromey <tom@tromey.com>
9649
9650 * common/scoped_mmap.c: Include common-defs.h.
9651 * common/scoped_mmap.h: Don't include config.h.
9652
89055eaa
TT
96532019-05-04 Tom Tromey <tom@tromey.com>
9654
9655 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9656 (struct aarch64_call_info): Add initializers.
9657 <si>: Now a std::vector.
9658 (pass_on_stack, aarch64_push_dummy_call): Update.
9659
5da01df5
TT
96602019-05-04 Simon Marchi <simon.marchi@efficios.com>
9661 Tom Tromey <tom@tromey.com>
9662
9663 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9664 (ppc_threads): Now a std::vector. Now static.
9665 (hwdebug_find_thread_points_by_tid)
9666 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9667 Update.
9668
fbdf05a1
TT
96692019-05-04 Tom Tromey <tom@tromey.com>
9670
9671 * arc-tdep.c (arc_tdesc_init): Return bool.
9672
06d16ec9
TT
96732019-05-04 Tom Tromey <tom@tromey.com>
9674
9675 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9676 Use gdb_assert_not_reached.
9677
9c056022
TT
96782019-05-04 Tom Tromey <tom@tromey.com>
9679
9680 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9681 "false".
9682
fa9c2a59
TT
96832019-05-04 Tom Tromey <tom@tromey.com>
9684
9685 * arc-tdep.c (arc_tdesc_init): Use bool.
9686
e2eb806a
TT
96872019-05-04 Tom Tromey <tom@tromey.com>
9688
9689 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9690
6fe87677
TT
96912019-05-04 Tom Tromey <tom@tromey.com>
9692
9693 * cli/cli-cmds.c (valid_command_p): Return bool.
9694
7f008c9e
TT
96952019-05-04 Tom Tromey <tom@tromey.com>
9696
9697 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9698 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9699
b6484282
RT
97002019-05-04 Raul Tambre <raul@tambre.ee>
9701
9702 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9703 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9704 operator for comparison.
9705
af97b416
TT
97062019-05-04 Tom Tromey <tom@tromey.com>
9707
9708 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9709 (lookup_partial_symbol, print_partial_symbols)
9710 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9711 (psymbol_compare): Update.
9712 (add_psymbol_to_bcache): Clear the entire psymbol.
9713 (maintenance_check_psymtabs): Update.
9714 * psympriv.h (struct partial_symbol): Don't derive from
9715 general_symbol_info.
9716 <obj_section, unrelocated_address, address,
9717 set_unrelocated_address>: Update.
9718 <ginfo>: New member.
9719 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9720 (debug_names::write_psymbols): Update.
9721
9d6d4be8
TV
97222019-05-04 Tom de Vries <tdevries@suse.de>
9723
9724 * contrib/cc-with-tweaks.sh: Support -n arg.
9725
66452beb
PW
97262019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9727
9728 * corelow.c (core_target::detach): Ensure frame cache and
9729 register caches are cleared.
9730 inferior.c (exit_inferior_1): Likewise.
9731
bde09ab7
TT
97322019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9733 Tom Tromey <tom@tromey.com>
9734
9735 * dictionary.c (collate_pending_symbols_by_language): Remove
9736 "struct" from foreach.
9737 * symtab.c (lookup_global_symbol_from_objfile)
9738 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9739 foreach.
9740 * ser-tcp.c (net_open): Remove "struct" from foreach.
9741 * objfiles.c (objfile_relocate, objfile_rebase)
9742 (objfile_has_symbols): Remove "struct" from foreach.
9743 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9744 from foreach.
9745 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9746 foreach.
9747 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9748 "struct" from foreach.
9749 * ada-lang.c (create_excep_cond_exprs)
9750 (ada_exception_catchpoint_cond_string): Remove "struct" from
9751 foreach.
9752
222a8d25
TT
97532019-05-03 Tom Tromey <tromey@adacore.com>
9754
9755 * ada-exp.y (convert_char_literal): Check suffix of each
9756 enumerator.
9757
fcd60b84
DP
97582019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9759
9760 PR ada/21406:
9761 * ada-exp.y (yywrap): Don't define.
9762 * ada-lex.l (%option): Add noyywrap
9763 (yywrap): Remove.
9764
5f2459c2
EZ
97652019-05-03 Eli Zaretskii <eliz@gnu.org>
9766
353ea2d1
EZ
9767 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9768 _WIN32_WINNT to the XP level, unless already defined to a higher
9769 level.
9770
9771 * unittests/parse-connection-spec-selftests.c:
9772 * ser-tcp.c:
9773 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9774 override.
9775
5f2459c2
EZ
9776 * symfile.c (find_separate_debug_file): Remove colon from the
9777 drive spec of DOS/Windows file names of the target, so that the
9778 file name produced from DEBUGDIR and the target's directory will
9779 be valid on DOS/Windows systems.
9780
80062eb9
AB
97812019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9782
9783 * rust-lang.c (val_print_struct): Handle printing structures
9784 containing strings.
9785
b8c05e85
TT
97862019-05-02 Tom Tromey <tromey@adacore.com>
9787
9788 * valarith.c (_initialize_valarith): Remove.
9789
4504bbde
TT
97902019-05-01 Tom Tromey <tromey@adacore.com>
9791
9792 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9793 bitfields.
9794
d48e62f4
TT
97952019-05-01 Tom Tromey <tromey@adacore.com>
9796
9797 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9798 for big-endian copies.
9799
15f18d14
AT
98002019-04-30 Ali Tamur <tamur@google.com>
9801 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9802 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9803 (read_3_bytes): New function.
9804
ab4ee614
JB
98052019-04-30 Joel Brobecker <brobecker@adacore.com>
9806
9807 * windows-nat.c (main_thread_id): Delete.
9808 (handle_output_debug_string): Replace main_thread_id by
9809 current_event.dwThreadId.
9810 (fake_create_process): Likewise.
9811 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9812 Do not set main_thread_id.
9813 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9814 current_event.dwThreadId.
9815 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9816
8ed5b76e
JB
98172019-04-30 Joel Brobecker <brobecker@adacore.com>
9818
9819 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9820 Use current_event.dwThreadId instead of main_thread_id.
9821
2ff0a947
TT
98222019-04-30 Tom Tromey <tromey@adacore.com>
9823
9824 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9825 (create_excep_cond_exprs): Iterate over program spaces.
9826 (ada_exception_catchpoint_cond_string): Examine all minimal
9827 symbols for exception types.
9828
a776957c
TT
98292019-04-30 Tom Tromey <tromey@adacore.com>
9830
9831 PR c++/24470:
9832 * dwarf2read.c (process_structure_scope): Handle case where type
9833 has template parameters but no symbol was created.
9834
bc68014d
AB
98352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9836 Chris January <chris.january@arm.com>
9837
9838 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9839 qualifier.
9840 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9841
f1fdc960
AB
98422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9843
9844 * f-typeprint.c (f_print_type): Update rules for printing
9845 whitespace.
9846 (f_type_print_varspec_suffix): Likewise.
9847
bf7a4de1
AB
98482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9849 Chris January <chris.january@arm.com>
9850
9851 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9852 function arguments.
9853
bbe75b9d
AB
98542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9855
9856 * f-lang.c (build_fortran_types): Change name of void type to
9857 lower case.
9858 * f-typeprint.c (f_type_print_base): Print the name of the void
9859 type, rather than a fixed string.
9860 * f-valprint.c (f_decorations): Use lower case void string.
9861
1db455a7
AB
98622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9863 Chris January <chris.january@arm.com>
9864
9865 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9866 types for Fortran.
9867
b6d03bb2
AB
98682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9869 Chris January <chris.january@arm.com>
9870 David Lecomber <david.lecomber@arm.com>
9871
9872 * f-exp.y (BINOP_INTRINSIC): New token.
9873 (exp): New parser rule handling BINOP_INTRINSIC.
9874 (f77_keywords): Add new builtin procedures.
9875 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9876 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9877 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9878 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9879 (print_unop_subexp_f): New function.
9880 (print_binop_subexp_f): New function.
9881 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9882 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9883 (dump_subexp_body_f): Likewise.
9884 (operator_check_f): Likewise.
9885 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9886 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9887
83228e93
AB
98882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9889
9890 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9891 UNOP_KIND.
9892 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9893 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9894 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9895 (operator_length_f): New fuction.
9896 (print_subexp_f): New function.
9897 (op_name_f): New function.
9898 (dump_subexp_body_f): New function.
9899 (operator_check_f): New function.
9900 (exp_descriptor_f): Replace standard expression handling functions
9901 with new functions.
9902 * gdb/fortran-operator.def: New file.
9903 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9904 * gdb/std-operator.def: Remove UNOP_KIND.
9905
6fdcd7cc
AB
99062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9907
9908 * std-operator.def: Remove unbalanced, stray double quote
9909 character.
9910
2e62ab40
AB
99112019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9912 Chris January <chris.january@arm.com>
9913 Daniel Everett <daniel.everett@arm.com>
9914 Nick Forrington <nick.forrington@arm.com>
9915 Richard Bunt <richard.bunt@arm.com>
9916
9917 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9918 of depth when printing anonymous structs or unions.
9919 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9920 Don't print either the top-level value, or the children if the
9921 max-depth is exceeded.
9922 (ppscm_print_children): When printing the key of a map, allow one
9923 extra level of depth.
9924 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9925 print either the top-level value, or the children if the max-depth
9926 is exceeded.
9927 (print_children): When printing the key of a map, allow one extra
9928 level of depth.
9929 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9930 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9931 (user_print_options): Initialise max_depth field.
9932 (val_print_scalar_or_string_type_p): New function.
9933 (val_print): Check to see if the max depth has been reached.
9934 (val_print_check_max_depth): Define new function.
9935 (show_print_max_depth): New function.
9936 (_initialize_valprint): Add 'print max-depth' option.
9937 * valprint.h (struct value_print_options) <max_depth>: New field.
9938 (val_print_check_max_depth): Declare new function.
9939 * NEWS: Document new feature.
9940
4be290b2
AB
99412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * ada-lang.c (ada_language_defn): Initialise new field.
9944 * c-lang.c (c_is_string_type_p): New function.
9945 (c_language_defn): Initialise new field.
9946 (cplus_language_defn): Initialise new field.
9947 (asm_language_defn): Initialise new field.
9948 (minimal_language_defn): Initialise new field.
9949 * c-lang.h (c_is_string_type_p): Declare new function.
9950 * d-lang.c (d_language_defn): Initialise new field.
9951 * f-lang.c (f_is_string_type_p): New function.
9952 (f_language_defn): Initialise new field.
9953 * go-lang.c (go_is_string_type_p): New function.
9954 (go_language_defn): Initialise new field.
9955 * language.c (default_is_string_type_p): New function.
9956 (unknown_language_defn): Initialise new field.
9957 (auto_language_defn): Initialise new field.
9958 * language.h (struct language_defn) <la_is_string_type_p>: New
9959 member variable.
9960 (default_is_string_type_p): Declare new function.
9961 * m2-lang.c (m2_language_defn): Initialise new field.
9962 * objc-lang.c (objc_language_defn): Initialise new field.
9963 * opencl-lang.c (opencl_language_defn): Initialise new field.
9964 * p-lang.c (pascal_is_string_type_p): New function.
9965 (pascal_language_defn): Initialise new field.
9966 * rust-lang.c (rust_is_string_type_p): New function.
9967 (rust_language_defn): Initialise new field.
9968
721b08c6
AB
99692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9970
9971 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9972 New field.
9973 * ada-lang.c (ada_language_defn): Initialise new field.
9974 * c-lang.c (c_language_defn): Likewise.
9975 (cplus_language_defn): Likewise.
9976 (asm_language_defn): Likewise.
9977 (minimal_language_defn): Likewise.
9978 * d-lang.c (d_language_defn): Likewise.
9979 * f-lang.c (f_language_defn): Likewise.
9980 * go-lang.c (go_language_defn): Likewise.
9981 * language.c (unknown_language_defn): Likewise.
9982 (auto_language_defn): Likewise.
9983 * m2-lang.c (m2_language_defn): Likewise.
9984 * objc-lang.c (objc_language_defn): Likewise.
9985 * opencl-lang.c (opencl_language_defn): Likewise.
9986 * p-lang.c (pascal_language_defn): Likewise.
9987 * rust-lang.c (rust_language_defn): Likewise.
9988
fc913e53
AB
99892019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9990
9991 * ada-lang.c (ada_is_character_type): Change return type to bool.
9992 (ada_is_string_type): Likewise.
9993 * ada-lang.h (ada_is_character_type): Update declaration
9994 (ada_is_string_type): Likewise.
9995
fa731fa0
PW
99962019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9997
9998 Support style in 'frame|thread apply'
9999
10000 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10001 * record.c (record_start, record_stop): Update callers of
10002 execute_command_to_string with false.
10003 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10004 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10005 methods.
10006 (class string_file): New constructor with term_out parameter.
10007 Override methods term_out and can_emit_style_escape. New member
10008 term_out.
10009 (class stdio_file): Override can_emit_style_escape.
10010 (class tee_file): Override term_out and can_emit_style_escape.
10011 * utils.h (can_emit_style_escape): Remove.
10012 * utils.c (can_emit_style_escape): Likewise.
10013 Update all callers of can_emit_style_escape (SOMESTREAM) to
10014 SOMESTREAM->can_emit_style_escape.
10015 * source-cache.c (source_cache::get_source_lines): Likewise.
10016 * stack.c (frame_apply_command_count): Call execute_command_to_string
10017 passing the term_out characteristic of the current gdb_stdout.
10018 * thread.c (thr_try_catch_cmd): Likewise.
10019 * top.c (execute_command_to_string): pass term_out parameter
10020 to construct the string_file for the command output.
10021 * ui-file.c (term_cli_styling): New function (most code moved
10022 from utils.c can_emit_style_escape).
10023 (string_file::string_file, string_file::can_emit_style_escape,
10024 stdio_file::can_emit_style_escape, tee_file::term_out,
10025 tee_file::can_emit_style_escape): New functions.
10026
136afab8
PW
100272019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10028
10029 * NEWS: Mention the new set|show may-call-functions.
10030 * infcall.c (may_call_functions_p): New variable.
10031 (show_may_call_functions_p): New function.
10032 (call_function_by_hand_dummy): Throws an error if not
10033 may-call-functions.
10034 (_initialize_infcall): Call add_setshow_boolean_cmd for
10035 may-call-functions.
10036
725cbb63
KS
100372019-04-25 Keith Seitz <keiths@redhat.com>
10038
10039 PR c++/24367
10040 * cp-support.c (inspect_type): Don't attempt substitutions
10041 of symbol with the same name.
10042
3d1cbb78
TT
100432019-04-25 Tom Tromey <tromey@adacore.com>
10044
10045 PR gdb/24475:
10046 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10047 static.
10048
94aeb44b
TT
100492019-04-25 Tom Tromey <tromey@adacore.com>
10050
10051 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10052 rvalue reference.
10053 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10054 (gdb_xml_parser::parse): Use std::move.
10055 * python/python-internal.h (gdbpy_convert_exception): Take a const
10056 reference.
10057 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10058 std::move.
10059 * python/py-utils.c (gdbpy_convert_exception): Take a const
10060 reference.
10061 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10062 Use std::move.
10063 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10064 Use std::move.
10065 * mi/mi-main.c (mi_print_exception): Take a const reference.
10066 * main.c (handle_command_errors): Take a const reference.
10067 * linespec.c (parse_linespec): Use std::move.
10068 * infcall.c (run_inferior_call): Use std::move.
10069 (call_function_by_hand_dummy): Use std::move.
10070 * exec.c (try_open_exec_file): Use std::move.
10071 * exceptions.h (exception_print, exception_fprintf)
10072 (exception_print_same): Update.
10073 * exceptions.c (print_exception, exception_print)
10074 (exception_fprintf, exception_print_same): Change parameters to
10075 const reference.
10076 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10077 * common/new-op.c: Use std::move.
10078 * common/common-exceptions.h (struct gdb_exception): Add move
10079 constructor.
10080 (struct gdb_exception_error, struct gdb_exception_quit, struct
10081 gdb_quit_bad_alloc): Change constructor to move constructor.
10082 (throw_exception): Change parameter to rvalue reference.
10083 * common/common-exceptions.c (throw_exception): Take rvalue
10084 reference.
10085 * cli/cli-interp.c (safe_execute_command): Use std::move.
10086 * breakpoint.c (insert_bp_location, location_to_sals): Use
10087 std::move.
10088
680d7fd5
TT
100892019-04-25 Tom Tromey <tromey@adacore.com>
10090
10091 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10092 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10093 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10094 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10095 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10096 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10097 guile/scm-value.c: Use unpack.
10098 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10099 gdbscm_gdb_exception.
10100 (gdbscm_throw_gdb_exception): Likewise.
10101 (struct gdbscm_gdb_exception): New.
10102 (unpack): New function.
10103 (gdbscm_wrap): Use unpack.
10104
c6fdd8b2
TT
101052019-04-25 Tom Tromey <tromey@adacore.com>
10106
10107 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10108 (gdb_rl_callback_handler): Use std::move.
10109 * common/common-exceptions.h (struct gdb_exception): Add move
10110 assignment operator.
10111 (throw_exception_sjlj): Change "exception" to const reference.
10112 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10113 (throw_exception_sjlj): Change "exception" to const reference.
10114
cc06b668
TT
101152019-04-25 Tom Tromey <tromey@adacore.com>
10116
10117 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10118 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10119 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10120 Update.
10121 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10122 Update.
10123 * mi/mi-interp.c (mi_interp::exec): Update.
10124 * linespec.c (parse_linespec): Update.
10125 * infcall.c (run_inferior_call): Update.
10126 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10127 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10128 (gdbscm_lookup_global_symbol): Update.
10129 * guile/scm-param.c (gdbscm_parameter_value): Update.
10130 * guile/scm-frame.c (gdbscm_frame_read_register)
10131 (gdbscm_frame_read_var): Update.
10132 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10133 * exec.c (try_open_exec_file): Update.
10134 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10135 (gdb_rl_callback_handler): Update.
10136 * common/common-exceptions.h (exception_none): Don't declare.
10137 * common/common-exceptions.c (exception_none): Don't define.
10138 (struct catcher) <exception>: Update.
10139 * cli/cli-interp.c (safe_execute_command): Update.
10140 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10141
cf532bd1
AT
101422019-04-25 Ali Tamur <tamur@google.com>
10143
10144 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10145 (read_attribute_value): Likewise.
10146 (dwarf2_read_addr_index): Update comment.
10147 (read_str_index): Add DW_FORM_strx.
10148 (dwarf2_string_attr): Likewise.
10149 (dwarf2_const_value_attr): Likewise.
10150 (dump_die_shallow): Likewise.
10151 (dwarf2_fetch_constant_bytes): Likewise.
10152 (skip_form_bytes): Likewise.
10153 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10154
82433e3e
SDJ
101552019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10156
10157 PR corefiles/11608
10158 PR corefiles/18187
10159 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10160 OFFSET. Verify if current mapping contains an ELF header.
10161 (linux_find_memory_regions_full): Adjust call to
10162 dump_mapping_p.
10163
723adb65
SL
101642019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10165 Kang Li <kanglictf@gmail.com>
10166
10167 PR gdb/21600
10168
10169 * dwarf2-frame.c (read_initial_length): Be consistent about using
10170 unsigned representation of length.
10171 (decode_frame_entry_1): Likewise. Check for wraparound of
10172 end pointer as well as buffer overflow.
10173
596179f7
SDJ
101742019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10175
10176 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10177 "vq".
10178
a59240a4
TT
101792019-04-24 Tom Tromey <tromey@adacore.com>
10180
10181 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10182
f872fdbb
AB
101832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10184
10185 * s12z-tdep.c (s12z_unwind_pc): Delete.
10186 (s12z_unwind_sp): Delete.
10187 (s12z_gdbarch_init): Don't register deleted functions with
10188 gdbarch.
10189
b614e6f3
AB
101902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * rl78-tdep.c (rl78_unwind_sp): Delete.
10193 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10194
14faed38
AB
101952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10198 (xstormy16_unwind_pc): Delete.
10199 (xstormy16_dummy_id): Delete.
10200 (xstormy16_gdbarch_init): Don't register deleted functions with
10201 gdbarch.
10202
541aad8a
AB
102032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * vax-tdep.c (vax_unwind_pc): Delete.
10206 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10207
29222070
AB
102082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10209
10210 * v850-tdep.c (v850_unwind_sp): Delete.
10211 (v850_unwind_pc): Delete.
10212 (v850_dummy_id): Delete.
10213 (v850_gdbarch_init): Don't register deleted functions with
10214 gdbarch.
10215
0f534d76
AB
102162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10217
10218 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10219 (tilegx_unwind_pc): Delete.
10220 (tilegx_unwind_dummy_id): Delete.
10221 (tilegx_gdbarch_init): Don't register deleted functions with
10222 gdbarch.
10223
1ba7b7f9
AB
102242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10227 (tic6x_dummy_id): Delete.
10228 (tic6x_gdbarch_init): Don't register deleted functions with
10229 gdbarch.
10230
d31f262c
AB
102312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10232
10233 * sparc-tdep.c (sparc_unwind_pc): Delete.
10234 (sparc32_gdbarch_init): Don't register deleted function with
10235 gdbarch.
10236
6d14d64d
AB
102372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10238
10239 * sh-tdep.c (sh_unwind_sp): Delete.
10240 (sh_unwind_pc): Delete.
10241 (sh_dummy_id): Delete.
10242 (sh_gdbarch_init): Don't register deleted functions with
10243 gdbarch.
10244
a40dde9d
AB
102452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10246
10247 * score-tdep.c (score_unwind_sp): Delete.
10248 (score_unwind_pc): Delete.
10249 (score_dummy_id): Delete.
10250 (score_gdbarch_init): Don't register deleted functions with
10251 gdbarch.
10252
47c47d69
AB
102532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10254
10255 * rx-tdep.c (rx_unwind_pc): Delete.
10256 (rx_unwind_sp): Delete.
10257 (rx_dummy_id): Delete.
10258 (rx_gdbarch_init): Don't register deleted functions with
10259 gdbarch. Update comment.
10260
833a4480
AB
102612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10264 (rs6000_dummy_id): Delete.
10265 (rs6000_gdbarch_init): Don't register deleted functions with
10266 gdbarch.
10267
3f2cef49
AB
102682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10269
10270 * or1k-tdep.c (or1k_dummy_id): Delete.
10271 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10272
96acf884
AB
102732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * nios2-tdep.c (nios2_dummy_id): Delete.
10276 (nios2_unwind_sp): Delete.
10277 (nios2_gdbarch_init): Don't register deleted functions with
10278 gdbarch.
10279
ca0ab0aa
AB
102802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * nds32-tdep.c (nds32_dummy_id): Delete.
10283 (nds32_unwind_pc): Delete.
10284 (nds32_unwind_sp): Delete.
10285 (nds32_gdbarch_init): Don't register deleted functions with
10286 gdbarch.
10287
c8259044
AB
102882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10289
10290 * msp430-tdep.c (msp430_unwind_pc): Delete.
10291 (msp430_unwind_sp): Delete.
10292 (msp430_dummy_id): Delete.
10293 (msp430_gdbarch_init): Don't register deleted functions with
10294 gdbarch.
10295
27f113c8
AB
102962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10297
10298 * moxie-tdep.c (moxie_unwind_sp): Delete.
10299 (moxie_unwind_pc): Delete.
10300 (moxie_dummy_id): Delete.
10301 (moxie_gdbarch_init): Don't register deleted functions with
10302 gdbarch.
10303
aee6c3cd
AB
103042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10305
10306 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10307 (mn10300_unwind_pc): Delete.
10308 (mn10300_unwind_sp): Delete.
10309 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10310 mn10300_unwind_sp.
10311 (mn10300_frame_unwind_init): Don't register deleted functions with
10312 gdbarch.
10313
8e2b5aea
AB
103142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * mep-tdep.c (mep_unwind_pc): Delete.
10317 (mep_unwind_sp): Delete.
10318 (mep_dummy_id): Delete.
10319 (mep_gdbarch_init): Don't register deleted functions with
10320 gdbarch.
10321
43cf3ede
AB
103222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10325 (m68hc11_unwind_sp): Delete.
10326 (m68hc11_gdbarch_init): Don't register deleted functions with
10327 gdbarch.
10328
5e79b7bb
AB
103292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * m32r-tdep.c (m32r_unwind_sp): Delete.
10332 (m32r_unwind_pc): Delete.
10333 (m32r_dummy_id): Delete.
10334 (m32r_gdbarch_init): Don't register deleted functions with
10335 gdbarch.
10336
89b268d8
AB
103372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10338
10339 * m32c-tdep.c (m32c_unwind_pc): Delete.
10340 (m32c_unwind_sp): Delete.
10341 (m32c_dummy_id): Delete.
10342 (m32c_gdbarch_init): Don't register deleted functions with
10343 gdbarch.
10344
946c28d2
AB
103452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10346
10347 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10348 (lm32_unwind_pc): Delete.
10349 (lm32_dummy_id): Delete.
10350 (lm32_gdbarch_init): Don't register deleted functions with
10351 gdbarch.
10352
bf12844a
AB
103532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10356 (iq2000_unwind_pc): Delete.
10357 (iq2000_dummy_id): Delete.
10358 (iq2000_gdbarch_init): Don't register deleted functions with
10359 gdbarch.
10360
ecbc06d2
AB
103612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10362
10363 * nds32-tdep.c (nds32_type_align): Delete.
10364 (nds32_push_dummy_call): Use type_align instead.
10365
030197b4
AB
103662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10367
10368 * arm-tdep.c (arm_type_align): Only handle vector override case.
10369 (arm_push_dummy_call): Use type_align.
10370 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10371
b907456c
AB
103722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10373
10374 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10375 case.
10376 (pass_on_stack): Use type_align.
10377 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10378 function.
10379
9e97ba43
TT
103802019-04-23 Tom Tromey <tromey@adacore.com>
10381
10382 * dwarf2read.c (line_header::file_name_at): Remove unused
10383 overload.
10384
6892f601
TV
103852019-04-23 Tom de Vries <tdevries@suse.de>
10386
10387 PR gdb/24438
10388 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10389 invocation.
10390
336d760d
AT
10391
103922019-03-27 Ali Tamur <tamur@google.com>
10393
10394 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10395 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10396 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10397 (dwarf_expr_context::get_addr_index): Likewise
10398 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10399 (symbol_needs_eval_context::get_addr_index): Likewise
10400 (disassemble_dwarf_expression): Add DW_OP_addrx
10401 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10402 (read_cutu_die_from_dwo): Update comment
10403 (skip_one_die): Add DW_FORM_addrx
10404 (read_attribute_value): Likewise
10405 (var_decode_location): Add DW_OP_addrx
10406 (dwarf2_const_value_attr): Add DW_FORM_addrx
10407 (dump_die_shallow): Likewise
10408 (dwarf2_fetch_constant_bytes): Likewise
10409 (decode_locdesc): Add DW_OP_addrx
10410 (skip_form_bytes): Add DW_FORM_addrx
10411
ad9d13f8
AT
104122019-04-22 Ali Tamur <tamur@google.com>
10413
10414 * MAINTAINERS (Write After Approval): Add self.
10415
d70cc3ba
SM
104162019-04-22 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10419 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10420 (open_symbol_file_object): Likewise.
10421 (svr4_default_sos): Add info parameter.
10422 (svr4_read_so_list): Likewise.
10423 (svr4_current_sos_direct): Adjust functions calls to pass down
10424 info.
10425 (svr4_current_sos_1): Add info parameter.
10426 (svr4_current_sos): Call get_svr4_info, pass info down to
10427 svr4_current_sos_1.
10428 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10429 get_svr4_info.
10430 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10431 get_svr4_info.
10432 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10433 to get_svr4_info.
10434 (probes_table_remove_objfile_probes): Likewise.
10435 (register_solib_event_probe): Add info parameter.
10436 (solist_update_incremental): Pass info parameter down to
10437 svr4_read_so_list.
10438 (disable_probes_interface): Add info parameter.
10439 (svr4_handle_solib_event): Pass current_program_space to
10440 get_svr4_info. Adjust disable_probes_interface cleanup.
10441 (svr4_create_probe_breakpoints): Add info parameter, pass it
10442 down to register_solib_event_probe.
10443 (svr4_create_solib_event_breakpoints): Add info parameter,
10444 pass it down to svr4_create_probe_breakpoints.
10445 (enable_break): Pass info down to
10446 svr4_create_solib_event_breakpoints.
10447 (svr4_solib_create_inferior_hook): Pass current_program_space to
10448 get_svr4_info.
10449 (svr4_clear_solib): Likewise.
10450
7905fc35
PA
104512019-04-22 Pedro Alves <palves@redhat.com>
10452
10453 * solib-svr4.c (svr4_free_objfile_observer): New.
10454 (probe_and_action::objfile): New field.
10455 (probes_table_htab_remove_objfile_probes)
10456 (probes_table_remove_objfile_probes): New functions.
10457 (register_solib_event_probe): Add 'objfile' parameter. Store it
10458 in the new probe_and_action. Don't store the probe in 'lookup'.
10459 (svr4_create_probe_breakpoints): Pass objfile to
10460 register_solib_event_probe.
10461 (_initialize_svr4_solib): Register a free_objfile observer.
10462
fb881986
TT
104632019-04-19 Tom Tromey <tom@tromey.com>
10464
10465 * common/queue.h: Remove.
10466
8732db6c
TT
104672019-04-19 Tom Tromey <tom@tromey.com>
10468
10469 * event-loop.c: Don't include "common/queue.h".
10470
97dfbadd
TT
104712019-04-19 Tom Tromey <tom@tromey.com>
10472
10473 * remote.c (remote_target): Use delete.
10474 * remote-notif.h: Include <list>, not "common/queue.h".
10475 (notif_client_p): Remove typedef.
10476 (remote_notif_state): Add constructor, destructor, initializer.
10477 <notif_queue>: Now a std::list.
10478 (remote_notif_state_xfree): Don't declare.
10479 * remote-notif.c (remote_notif_process, handle_notification)
10480 (remote_notif_state_allocate): Update.
10481 (~remote_notif_state): Rename from remote_notif_state_xfree.
10482
cf250e36
TT
104832019-04-19 Tom Tromey <tom@tromey.com>
10484
10485 * symfile.c (reread_symbols): Update.
10486 * objfiles.c (objfile_register_static_link)
10487 (objfile_lookup_static_link): Update
10488 (~objfile) Don't delete static_links.
10489 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10490
61f4b350
TT
104912019-04-19 Tom Tromey <tom@tromey.com>
10492
10493 * type-stack.h (struct type_stack) <insert>: Constify string.
10494 * type-stack.c (type_stack::insert): Constify string.
10495 * gdbtypes.h (lookup_template_type): Update.
10496 (address_space_name_to_int): Update.
10497 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10498 const.
10499 (lookup_template_type): Make name const.
10500 * c-exp.y: Update rules.
10501 (lex_one_token, classify_name, classify_inner_name)
10502 (c_print_token): Update.
10503 * p-exp.y: Update rules.
10504 (yylex): Update.
10505 * f-exp.y: Update rules.
10506 (yylex): Update.
10507 * d-exp.y: Update rules.
10508 (lex_one_token, classify_name, classify_inner_name): Update.
10509 * parse.c (write_dollar_variable, copy_name): Return std::string.
10510 * parser-defs.h (copy_name): Change return type.
10511 * m2-exp.y: Update rules.
10512 (yylex): Update.
10513 * go-exp.y (lex_one_token): Update.
10514 Update rules.
10515 (classify_unsafe_function, classify_packaged_name)
10516 (classify_name, yylex): Update.
10517
189b8c2e
ST
105182019-04-19 Sergei Trofimovich <siarheit@google.com>
10519
10520 * configure.ac: add --enable-source-highlight switch.
10521 * configure: Regenerate.
10522 * top.c (print_gdb_version): plumb --enable-source-highlight
10523 status to "show configuration".
10524
8ecb59f8
TT
105252019-04-19 Tom Tromey <tromey@adacore.com>
10526
10527 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10528 Check ADA_TYPE_P.
10529 (empty_record, ada_template_to_fixed_record_type_1)
10530 (template_to_static_fixed_type)
10531 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10532 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10533 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10534 macros.
10535
62160ec9
TT
105362019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10537
10538 PR symtab/24423:
10539 * source.c (print_source_lines_base): Advance "iter" when a
10540 control character is seen.
10541
f2ae8bc8
PW
105422019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10543
10544 * inferior.h (struct infcall_suspend_state_deleter):
10545 Catch exception in destructor to avoid crash.
10546
d563b953
PW
105472019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10548
10549 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10550 close to the add_com "shell".
10551
dc34c897
TT
105522019-04-18 Tom Tromey <tromey@adacore.com>
10553
10554 * process-stratum-target.h (class process_stratum_target)
10555 <stratum>: Add "final".
10556
a12e5744
TT
105572019-04-17 Tom Tromey <tromey@adacore.com>
10558
10559 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10560 against nullptr before use.
10561
a7e559cc
AH
105622019-04-17 Alan Hayward <alan.hayward@arm.com>
10563
10564 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10565
c01660c6
AB
105662019-04-17 Jim Wilson <jimw@sifive.com>
10567 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10570 code read might fail, assume 4-byte breakpoint in that case.
10571
4aa866af
LS
105722019-04-15 Leszek Swirski <leszeks@google.com>
10573
10574 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10575 rather than a hand-rolled POD check when checking for forced MEMORY
10576 classification.
10577
48574d91
AH
105782019-04-15 Alan Hayward <alan.hayward@arm.com>
10579
10580 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10581 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10582 function.
10583 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10584 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10585 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10586 declaration.
10587
4da037ef
AH
105882019-04-15 Alan Hayward <alan.hayward@arm.com>
10589
10590 * aarch64-linux-nat.c
10591 (aarch64_linux_nat_target::thread_architecture): Add override.
10592 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10593 each VQ.
10594
ccb8d7e8
AH
105952019-04-15 Alan Hayward <alan.hayward@arm.com>
10596
10597 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10598
35add35e
AB
105992019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10600
10601 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10602 target types of size 96-bits, add some additional comments, and
10603 check that the builtin type we found was the correct size.
10604
51196bbc
EZ
106052019-04-12 Eli Zaretskii <eliz@gnu.org>
10606
10607 * utils.c (prompt_for_continue): Don't restore the styling at the
10608 end, as applied_style has the wrong value. This fixes styling in
10609 long lists of file names that are interrupted by the "Continue?"
10610 prompt.
10611
62253a61
AB
106122019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10613
10614 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10615 * c-lang.c (c_language_defn): Likewise.
10616 (cplus_language_defn): Likewise.
10617 (asm_language_defn): Likewise.
10618 (minimal_language_defn): Likewise.
10619 * d-lang.c (d_language_defn): Likewise.
10620 * f-lang.c (f_language_defn): Likewise.
10621 * go-lang.c (go_language_defn): Likewise.
10622 * language.c (unknown_language_defn): Likewise.
10623 (auto_language_defn): Likewise.
10624 * language.h (struct language_defn): Remove la_magic field.
10625 (LANG_MAGIC): Delete.
10626 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10627 * objc-lang.c (objc_language_defn): Likewise.
10628 * opencl-lang.c (opencl_language_defn): Likewise.
10629 * p-lang.c (pascal_language_defn): Likewise.
10630 * rust-lang.c (rust_language_defn): Likewise.
10631
a9158a86
AB
106322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10633
10634 * riscv-tdep.c (riscv_type_align): New function.
10635 (riscv_type_alignment): Delete.
10636 (riscv_arg_location): Use 'type_align'.
10637 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10638
41077b66
AB
106392019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10640
10641 * gdbtypes.c (type_align): A struct with no non-static fields also
10642 has alignment of 1.
10643
9f0272f8
AB
106442019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10647 component to 0.
10648 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10649 member.
10650 (riscv_struct_info::analyse): New implementation using new
10651 analyse_inner member function.
10652 (riscv_struct_info::field_offset): New member function.
10653 (riscv_struct_info::m_offsets): New member variable.
10654 (riscv_struct_info::analyse_inner): New private member function,
10655 takes the old implementation of riscv_struct_info::analyse but
10656 extended to track field offsets.
10657 (riscv_call_arg_struct): Update the struct folding special cases
10658 to handle cases where empty C++ structs, which are non-zero
10659 length, are found.
10660 (riscv_arg_location): Initialise the length of each location, a
10661 non-zero length now indicates the location is in use.
10662 (riscv_push_dummy_call): Allow for the first location having a
10663 non-zero offset when setting up arguments.
10664 (riscv_return_value): Likewise, but for return values.
10665
02cf60c7
TT
106662019-04-11 Tom Tromey <tromey@adacore.com>
10667
10668 * utils.c (internal_vproblem): Make "msg" const.
10669
68811f8f
AH
106702019-04-11 Alan Hayward <alan.hayward@arm.com>
10671
10672 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10673 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10674 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10675 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10676
3f52fdbc
KB
106772019-04-10 Kevin Buettner <kevinb@redhat.com>
10678
10679 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10680 function.
10681 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10682 of amd64_collect_native_gregset.
10683 (amd64_linux_nat_target::store_registers): Likewise.
10684
e9ad22ee
TT
106852019-04-10 Tom Tromey <tom@tromey.com>
10686
10687 * symtab.c (lookup_global_symbol_from_objfile)
10688 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10689 * objfiles.h (class separate_debug_iterator): New.
10690 (class separate_debug_range): New.
10691 (struct objfile) <separate_debug_objfiles>: New method.
10692 (objfile_separate_debug_iterate): Don't declare.
10693 * objfiles.c (separate_debug_iterator::operator++): Rename from
10694 objfile_separate_debug_iterate.
10695 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10696 iterator.
10697 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10698 iterator.
10699
ee371134
TT
107002019-04-10 Tom Tromey <tom@tromey.com>
10701
10702 * symfile.c (reread_symbols): Remove old comment.
10703 * objfiles.c (free_all_objfiles): Fix a typo.
10704
bf227d61
TT
107052019-04-10 Tom Tromey <tom@tromey.com>
10706
10707 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10708 * minsyms.c (lookup_minimal_symbol): Use foreach.
10709 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10710 (lookup_minimal_symbol_solib_trampoline): Likewise.
10711 * symfile.c (reread_symbols): Use foreach.
10712
8dc433a0
TT
107132019-04-09 Ivan Begert <ivanbegert@gmail.com>
10714 Tom Tromey <tromey@adacore.com>
10715
10716 PR rust/24414:
10717 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10718 (rust_lex_int_test): Change "value" to be LONGEST.
10719 (rust_lex_tests): Add test for long integer literal.
10720
9ab8741a
TT
107212019-04-09 Tom Tromey <tromey@adacore.com>
10722
10723 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10724 to bool.
10725 (extended_remote_target::attach): Update.
10726 (remote_target::remote_notice_new_inferior): Update.
10727 (remote_target::add_current_inferior_and_thread): Update.
10728 * inferior.c (exit_inferior_1): Use "false".
10729 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10730
e242fd12
SM
107312019-04-09 Simon Marchi <simon.marchi@efficios.com>
10732
9ca1957f 10733 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10734 the "start" command.
10735
2b0c8b01
KB
107362019-04-08 Kevin Buettner <kevinb@redhat.com>
10737
10738 * python/py-inferior.c (infpy_thread_from_thread_handle):
10739 Adjust comments to reflect renaming of thread_from_thread_handle
10740 to thread_from_handle. Adjust keywords. Fix type error message.
10741 (inferior_object_methods): Add thread_from_handle. Retain
10742 thread_from_thread_handle, but mark it as deprecated.
10743
50a82723
KB
107442019-04-08 Kevin Buettner <kevinb@redhat.com>
10745
10746 * gdbthread.h (find_thread_by_handle): Revise declaration.
10747 * thread.c (find_thread_by_handle): Likewise. Adjust
10748 implementation too.
10749 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10750 support for buffer objects as handles.
10751
cf63b016
KB
107522019-04-08 Kevin Buettner <kevinb@redhat.com>
10753
10754 * python/py-infthread.c (thpy_thread_handle): New function.
10755 (thread_object_methods): Register thpy_thread_handle.
10756
3d6c6204
KB
107572019-04-08 Kevin Buettner <kevinb@redhat.com>
10758
10759 * gdbthread.h (thread_to_thread_handle): Declare.
10760 * thread.c (gdbtypes.h): Include.
10761 (thread_to_thread_handle): New function.
10762
10763 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10764 (target_thread_info_to_thread_handle): Declare.
10765 * target.c (target_thread_info_to_thread_handle): New function.
10766 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10767 * target-delegates.c: Regenerate.
10768
10769 * linux-thread-db.c (class thread_db_target): Add method
10770 thread_info_to_thread_handle.
10771 (thread_db_target::thread_info_to_thread_handle): Define.
10772 * remote.c (class remote_target): Add new method
10773 thread_info_to_thread_handle.
10774 (remote_target::thread_info_to_thread_handle): Define.
10775
56be6ea8
PA
107762019-04-08 Pedro Alves <palves@redhat.com>
10777
10778 * common/common-exceptions.c (throw_exception): Don't create
10779 named object to throw; throw directly.
10780 (throw_it): Likewise. Don't initialize gdb_exception::message
10781 here, with new; pass FMT and AP to the ctor instead.
10782 * common/common-exceptions.h: Include <string>.
10783 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10784 const char *, va_list)): New ctor. Use std::make_shared.
10785 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10786 errors)): Delete.
10787 (gdb_exception_error::gdb_exception_error(enum errors, const char
10788 *, va_list)): New.
10789 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10790 Add assertion.
10791 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10792 errors)): Delete.
10793 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10794 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10795 Add assertion.
10796
eedc3f4f
TT
107972019-04-08 Tom Tromey <tom@tromey.com>
10798
10799 * valops.c (value_rtti_indirect_type): Replace throw_exception
10800 with throw.
10801 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10802 with throw.
10803 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10804 throw.
10805 * target.c (target_translate_tls_address): Replace throw_exception
10806 with throw.
10807 * stack.c (frame_apply_command_count): Replace throw_exception
10808 with throw.
10809 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10810 throw.
10811 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10812 with throw.
10813 * rs6000-tdep.c (rs6000_frame_cache)
10814 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10815 * remote.c: Replace throw_exception with throw.
10816 * record-full.c (record_full_message, record_full_wait_1)
10817 (record_full_restore): Replace throw_exception with throw.
10818 * record-btrace.c:
10819 (get_thread_current_frame_id, record_btrace_start_replaying)
10820 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10821 (cmd_record_btrace_start): Replace throw_exception with throw.
10822 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10823 throw.
10824 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10825 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10826 * linespec.c:
10827 (find_linespec_symbols): Replace throw_exception with throw.
10828 * infrun.c (displaced_step_prepare, resume): Replace
10829 throw_exception with throw.
10830 * infcmd.c (post_create_inferior): Replace throw_exception with
10831 throw.
10832 * inf-loop.c (inferior_event_handler): Replace throw_exception
10833 with throw.
10834 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10835 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10836 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10837 (get_prev_frame_always, get_frame_pc_if_available)
10838 (get_frame_address_in_block_if_available, get_frame_language):
10839 Replace throw_exception with throw.
10840 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10841 throw_exception with throw.
10842 * eval.c (fetch_subexp_value, evaluate_var_value)
10843 (evaluate_funcall, evaluate_subexp_standard): Replace
10844 throw_exception with throw.
10845 * dwarf2loc.c (call_site_find_chain)
10846 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10847 Replace throw_exception with throw.
10848 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10849 with throw.
10850 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10851 throw.
10852 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10853 * completer.c (complete_line_internal): Replace throw_exception
10854 with throw.
10855 * compile/compile-object-run.c (compile_object_run): Replace
10856 throw_exception with throw.
10857 * cli/cli-script.c (process_next_line): Replace throw_exception
10858 with throw.
10859 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10860 (btrace_enable, btrace_maint_update_pt_packets): Replace
10861 throw_exception with throw.
10862 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10863 throw_exception with throw.
10864 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10865 throw_exception with throw.
10866 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10867 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10868 * aarch64-tdep.c (aarch64_make_prologue_cache)
10869 (aarch64_make_stub_cache): Replace throw_exception with throw.
10870
26003a20
TT
108712019-04-08 Tom Tromey <tom@tromey.com>
10872
10873 * common/common-exceptions.c (throw_exception): Rename from
10874 throw_exception_cxx. Remove old copy. Make argument const.
10875 (throw_it): Create and throw exception objects directly.
10876 * common/common-exceptions.h (throw_exception): Make argument
10877 const.
10878 (struct gdb_exception_error): Add constructor.
10879 (struct gdb_exception_quit): Add constructor.
10880
d272eb37
TT
108812019-04-08 Tom Tromey <tom@tromey.com>
10882
10883 * common/common-exceptions.h (exception_rethrow): Don't declare.
10884 (TRY_SJLJ): Update comment.
10885 (TRY, CATCH, END_CATCH): Remove.
10886 * common/common-exceptions.c (exception_rethrow): Remove.
10887
230d2906
TT
108882019-04-08 Tom Tromey <tom@tromey.com>
10889
10890 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10891 Remove.
10892 (gdb_exception_error): Rename from
10893 gdb_exception_RETURN_MASK_ERROR.
10894 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10895 (gdb_quit_bad_alloc): Update.
10896 * aarch64-tdep.c: Update.
10897 * ada-lang.c: Update.
10898 * ada-typeprint.c: Update.
10899 * ada-valprint.c: Update.
10900 * amd64-tdep.c: Update.
10901 * arch-utils.c: Update.
10902 * break-catch-throw.c: Update.
10903 * breakpoint.c: Update.
10904 * btrace.c: Update.
10905 * c-varobj.c: Update.
10906 * cli/cli-cmds.c: Update.
10907 * cli/cli-interp.c: Update.
10908 * cli/cli-script.c: Update.
10909 * common/common-exceptions.c: Update.
10910 * common/new-op.c: Update.
10911 * common/selftest.c: Update.
10912 * compile/compile-c-symbols.c: Update.
10913 * compile/compile-cplus-symbols.c: Update.
10914 * compile/compile-object-load.c: Update.
10915 * compile/compile-object-run.c: Update.
10916 * completer.c: Update.
10917 * corelow.c: Update.
10918 * cp-abi.c: Update.
10919 * cp-support.c: Update.
10920 * cp-valprint.c: Update.
10921 * darwin-nat.c: Update.
10922 * disasm-selftests.c: Update.
10923 * dtrace-probe.c: Update.
10924 * dwarf-index-cache.c: Update.
10925 * dwarf-index-write.c: Update.
10926 * dwarf2-frame-tailcall.c: Update.
10927 * dwarf2-frame.c: Update.
10928 * dwarf2loc.c: Update.
10929 * dwarf2read.c: Update.
10930 * eval.c: Update.
10931 * event-loop.c: Update.
10932 * event-top.c: Update.
10933 * exec.c: Update.
10934 * f-valprint.c: Update.
10935 * fbsd-tdep.c: Update.
10936 * frame-unwind.c: Update.
10937 * frame.c: Update.
10938 * gdbtypes.c: Update.
10939 * gnu-v3-abi.c: Update.
10940 * guile/guile-internal.h: Update.
10941 * guile/scm-block.c: Update.
10942 * guile/scm-breakpoint.c: Update.
10943 * guile/scm-cmd.c: Update.
10944 * guile/scm-disasm.c: Update.
10945 * guile/scm-frame.c: Update.
10946 * guile/scm-lazy-string.c: Update.
10947 * guile/scm-math.c: Update.
10948 * guile/scm-param.c: Update.
10949 * guile/scm-ports.c: Update.
10950 * guile/scm-pretty-print.c: Update.
10951 * guile/scm-symbol.c: Update.
10952 * guile/scm-symtab.c: Update.
10953 * guile/scm-type.c: Update.
10954 * guile/scm-value.c: Update.
10955 * i386-linux-tdep.c: Update.
10956 * i386-tdep.c: Update.
10957 * inf-loop.c: Update.
10958 * infcall.c: Update.
10959 * infcmd.c: Update.
10960 * infrun.c: Update.
10961 * jit.c: Update.
10962 * language.c: Update.
10963 * linespec.c: Update.
10964 * linux-fork.c: Update.
10965 * linux-nat.c: Update.
10966 * linux-tdep.c: Update.
10967 * linux-thread-db.c: Update.
10968 * main.c: Update.
10969 * mi/mi-cmd-break.c: Update.
10970 * mi/mi-cmd-stack.c: Update.
10971 * mi/mi-interp.c: Update.
10972 * mi/mi-main.c: Update.
10973 * objc-lang.c: Update.
10974 * p-valprint.c: Update.
10975 * parse.c: Update.
10976 * ppc-linux-tdep.c: Update.
10977 * printcmd.c: Update.
10978 * python/py-arch.c: Update.
10979 * python/py-breakpoint.c: Update.
10980 * python/py-cmd.c: Update.
10981 * python/py-finishbreakpoint.c: Update.
10982 * python/py-frame.c: Update.
10983 * python/py-framefilter.c: Update.
10984 * python/py-gdb-readline.c: Update.
10985 * python/py-inferior.c: Update.
10986 * python/py-infthread.c: Update.
10987 * python/py-lazy-string.c: Update.
10988 * python/py-linetable.c: Update.
10989 * python/py-objfile.c: Update.
10990 * python/py-param.c: Update.
10991 * python/py-prettyprint.c: Update.
10992 * python/py-progspace.c: Update.
10993 * python/py-record-btrace.c: Update.
10994 * python/py-record.c: Update.
10995 * python/py-symbol.c: Update.
10996 * python/py-type.c: Update.
10997 * python/py-unwind.c: Update.
10998 * python/py-utils.c: Update.
10999 * python/py-value.c: Update.
11000 * python/python.c: Update.
11001 * record-btrace.c: Update.
11002 * record-full.c: Update.
11003 * remote-fileio.c: Update.
11004 * remote.c: Update.
11005 * riscv-tdep.c: Update.
11006 * rs6000-aix-tdep.c: Update.
11007 * rs6000-tdep.c: Update.
11008 * rust-exp.y: Update.
11009 * rust-lang.c: Update.
11010 * s390-tdep.c: Update.
11011 * selftest-arch.c: Update.
11012 * solib-dsbt.c: Update.
11013 * solib-frv.c: Update.
11014 * solib-spu.c: Update.
11015 * solib-svr4.c: Update.
11016 * solib.c: Update.
11017 * sparc64-linux-tdep.c: Update.
11018 * stack.c: Update.
11019 * symfile-mem.c: Update.
11020 * symmisc.c: Update.
11021 * target.c: Update.
11022 * thread.c: Update.
11023 * top.c: Update.
11024 * tracefile-tfile.c: Update.
11025 * tui/tui.c: Update.
11026 * typeprint.c: Update.
11027 * unittests/cli-utils-selftests.c: Update.
11028 * unittests/parse-connection-spec-selftests.c: Update.
11029 * valops.c: Update.
11030 * valprint.c: Update.
11031 * value.c: Update.
11032 * varobj.c: Update.
11033 * windows-nat.c: Update.
11034 * x86-linux-nat.c: Update.
11035 * xml-support.c: Update.
11036
a70b8144
TT
110372019-04-08 Tom Tromey <tom@tromey.com>
11038
11039 * xml-support.c: Use C++ exception handling.
11040 * x86-linux-nat.c: Use C++ exception handling.
11041 * windows-nat.c: Use C++ exception handling.
11042 * varobj.c: Use C++ exception handling.
11043 * value.c: Use C++ exception handling.
11044 * valprint.c: Use C++ exception handling.
11045 * valops.c: Use C++ exception handling.
11046 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11047 handling.
11048 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11049 * typeprint.c: Use C++ exception handling.
11050 * tui/tui.c: Use C++ exception handling.
11051 * tracefile-tfile.c: Use C++ exception handling.
11052 * top.c: Use C++ exception handling.
11053 * thread.c: Use C++ exception handling.
11054 * target.c: Use C++ exception handling.
11055 * symmisc.c: Use C++ exception handling.
11056 * symfile-mem.c: Use C++ exception handling.
11057 * stack.c: Use C++ exception handling.
11058 * sparc64-linux-tdep.c: Use C++ exception handling.
11059 * solib.c: Use C++ exception handling.
11060 * solib-svr4.c: Use C++ exception handling.
11061 * solib-spu.c: Use C++ exception handling.
11062 * solib-frv.c: Use C++ exception handling.
11063 * solib-dsbt.c: Use C++ exception handling.
11064 * selftest-arch.c: Use C++ exception handling.
11065 * s390-tdep.c: Use C++ exception handling.
11066 * rust-lang.c: Use C++ exception handling.
11067 * rust-exp.y: Use C++ exception handling.
11068 * rs6000-tdep.c: Use C++ exception handling.
11069 * rs6000-aix-tdep.c: Use C++ exception handling.
11070 * riscv-tdep.c: Use C++ exception handling.
11071 * remote.c: Use C++ exception handling.
11072 * remote-fileio.c: Use C++ exception handling.
11073 * record-full.c: Use C++ exception handling.
11074 * record-btrace.c: Use C++ exception handling.
11075 * python/python.c: Use C++ exception handling.
11076 * python/py-value.c: Use C++ exception handling.
11077 * python/py-utils.c: Use C++ exception handling.
11078 * python/py-unwind.c: Use C++ exception handling.
11079 * python/py-type.c: Use C++ exception handling.
11080 * python/py-symbol.c: Use C++ exception handling.
11081 * python/py-record.c: Use C++ exception handling.
11082 * python/py-record-btrace.c: Use C++ exception handling.
11083 * python/py-progspace.c: Use C++ exception handling.
11084 * python/py-prettyprint.c: Use C++ exception handling.
11085 * python/py-param.c: Use C++ exception handling.
11086 * python/py-objfile.c: Use C++ exception handling.
11087 * python/py-linetable.c: Use C++ exception handling.
11088 * python/py-lazy-string.c: Use C++ exception handling.
11089 * python/py-infthread.c: Use C++ exception handling.
11090 * python/py-inferior.c: Use C++ exception handling.
11091 * python/py-gdb-readline.c: Use C++ exception handling.
11092 * python/py-framefilter.c: Use C++ exception handling.
11093 * python/py-frame.c: Use C++ exception handling.
11094 * python/py-finishbreakpoint.c: Use C++ exception handling.
11095 * python/py-cmd.c: Use C++ exception handling.
11096 * python/py-breakpoint.c: Use C++ exception handling.
11097 * python/py-arch.c: Use C++ exception handling.
11098 * printcmd.c: Use C++ exception handling.
11099 * ppc-linux-tdep.c: Use C++ exception handling.
11100 * parse.c: Use C++ exception handling.
11101 * p-valprint.c: Use C++ exception handling.
11102 * objc-lang.c: Use C++ exception handling.
11103 * mi/mi-main.c: Use C++ exception handling.
11104 * mi/mi-interp.c: Use C++ exception handling.
11105 * mi/mi-cmd-stack.c: Use C++ exception handling.
11106 * mi/mi-cmd-break.c: Use C++ exception handling.
11107 * main.c: Use C++ exception handling.
11108 * linux-thread-db.c: Use C++ exception handling.
11109 * linux-tdep.c: Use C++ exception handling.
11110 * linux-nat.c: Use C++ exception handling.
11111 * linux-fork.c: Use C++ exception handling.
11112 * linespec.c: Use C++ exception handling.
11113 * language.c: Use C++ exception handling.
11114 * jit.c: Use C++ exception handling.
11115 * infrun.c: Use C++ exception handling.
11116 * infcmd.c: Use C++ exception handling.
11117 * infcall.c: Use C++ exception handling.
11118 * inf-loop.c: Use C++ exception handling.
11119 * i386-tdep.c: Use C++ exception handling.
11120 * i386-linux-tdep.c: Use C++ exception handling.
11121 * guile/scm-value.c: Use C++ exception handling.
11122 * guile/scm-type.c: Use C++ exception handling.
11123 * guile/scm-symtab.c: Use C++ exception handling.
11124 * guile/scm-symbol.c: Use C++ exception handling.
11125 * guile/scm-pretty-print.c: Use C++ exception handling.
11126 * guile/scm-ports.c: Use C++ exception handling.
11127 * guile/scm-param.c: Use C++ exception handling.
11128 * guile/scm-math.c: Use C++ exception handling.
11129 * guile/scm-lazy-string.c: Use C++ exception handling.
11130 * guile/scm-frame.c: Use C++ exception handling.
11131 * guile/scm-disasm.c: Use C++ exception handling.
11132 * guile/scm-cmd.c: Use C++ exception handling.
11133 * guile/scm-breakpoint.c: Use C++ exception handling.
11134 * guile/scm-block.c: Use C++ exception handling.
11135 * guile/guile-internal.h: Use C++ exception handling.
11136 * gnu-v3-abi.c: Use C++ exception handling.
11137 * gdbtypes.c: Use C++ exception handling.
11138 * frame.c: Use C++ exception handling.
11139 * frame-unwind.c: Use C++ exception handling.
11140 * fbsd-tdep.c: Use C++ exception handling.
11141 * f-valprint.c: Use C++ exception handling.
11142 * exec.c: Use C++ exception handling.
11143 * event-top.c: Use C++ exception handling.
11144 * event-loop.c: Use C++ exception handling.
11145 * eval.c: Use C++ exception handling.
11146 * dwarf2read.c: Use C++ exception handling.
11147 * dwarf2loc.c: Use C++ exception handling.
11148 * dwarf2-frame.c: Use C++ exception handling.
11149 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11150 * dwarf-index-write.c: Use C++ exception handling.
11151 * dwarf-index-cache.c: Use C++ exception handling.
11152 * dtrace-probe.c: Use C++ exception handling.
11153 * disasm-selftests.c: Use C++ exception handling.
11154 * darwin-nat.c: Use C++ exception handling.
11155 * cp-valprint.c: Use C++ exception handling.
11156 * cp-support.c: Use C++ exception handling.
11157 * cp-abi.c: Use C++ exception handling.
11158 * corelow.c: Use C++ exception handling.
11159 * completer.c: Use C++ exception handling.
11160 * compile/compile-object-run.c: Use C++ exception handling.
11161 * compile/compile-object-load.c: Use C++ exception handling.
11162 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11163 * compile/compile-c-symbols.c: Use C++ exception handling.
11164 * common/selftest.c: Use C++ exception handling.
11165 * common/new-op.c: Use C++ exception handling.
11166 * cli/cli-script.c: Use C++ exception handling.
11167 * cli/cli-interp.c: Use C++ exception handling.
11168 * cli/cli-cmds.c: Use C++ exception handling.
11169 * c-varobj.c: Use C++ exception handling.
11170 * btrace.c: Use C++ exception handling.
11171 * breakpoint.c: Use C++ exception handling.
11172 * break-catch-throw.c: Use C++ exception handling.
11173 * arch-utils.c: Use C++ exception handling.
11174 * amd64-tdep.c: Use C++ exception handling.
11175 * ada-valprint.c: Use C++ exception handling.
11176 * ada-typeprint.c: Use C++ exception handling.
11177 * ada-lang.c: Use C++ exception handling.
11178 * aarch64-tdep.c: Use C++ exception handling.
11179
3d6e9d23
TT
111802019-04-08 Tom Tromey <tom@tromey.com>
11181
11182 * xml-support.c (gdb_xml_parser::parse): Update.
11183 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11184 * value.c (show_convenience): Update.
11185 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11186 (test_parse_flags_qcs): Update.
11187 * thread.c (thr_try_catch_cmd): Update.
11188 * target.c (target_translate_tls_address): Update.
11189 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11190 (info_frame_command_core, frame_apply_command_count): Update.
11191 * rust-exp.y (rust_lex_exception_test): Update.
11192 * riscv-tdep.c (riscv_print_one_register_info): Update.
11193 * remote.c (remote_target::enable_btrace): Update.
11194 * record-btrace.c (record_btrace_enable_warn): Update.
11195 * python/py-utils.c (gdbpy_convert_exception): Update.
11196 * printcmd.c (do_one_display, print_variable_and_value): Update.
11197 * mi/mi-main.c (mi_print_exception): Update.
11198 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11199 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11200 * linux-nat.c (linux_nat_target::attach): Update.
11201 * linux-fork.c (class scoped_switch_fork_info): Update.
11202 * infrun.c (displaced_step_prepare): Update.
11203 * infcall.c (call_function_by_hand_dummy): Update.
11204 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11205 * gnu-v3-abi.c (print_one_vtable): Update.
11206 * frame.c (get_prev_frame_always): Update.
11207 * f-valprint.c (info_common_command_for_block): Update.
11208 * exec.c (try_open_exec_file): Update.
11209 * exceptions.c (print_exception, exception_print)
11210 (exception_fprintf, exception_print_same): Update.
11211 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11212 * dwarf-index-cache.c (index_cache::store)
11213 (index_cache::lookup_gdb_index): Update.
11214 * darwin-nat.c (maybe_cache_shell): Update.
11215 * cp-valprint.c (cp_print_value_fields): Update.
11216 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11217 (gcc_cplus_symbol_address): Update.
11218 * compile/compile-c-symbols.c (gcc_convert_symbol)
11219 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11220 * common/selftest.c: Update.
11221 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11222 a std::string.
11223 (exception_try_scope_entry, exception_try_scope_exit): Don't
11224 declare.
11225 (struct exception_try_scope): Remove.
11226 (TRY): Don't use exception_try_scope.
11227 (struct gdb_exception): Add constructor, operator=.
11228 <what>: New method.
11229 (struct gdb_exception_RETURN_MASK_ALL)
11230 (struct gdb_exception_RETURN_MASK_ERROR)
11231 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11232 (struct gdb_quit_bad_alloc): Update.
11233 * common/common-exceptions.c (exception_none): Change
11234 initializer.
11235 (struct catcher) <state, exception>: Initialize inline.
11236 <prev>: Remove member.
11237 (current_catcher): Remove.
11238 (catchers): New global.
11239 (exceptions_state_mc_init): Simplify.
11240 (catcher_pop): Remove.
11241 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11242 (try_scope_depth, exception_try_scope_entry)
11243 (exception_try_scope_exit): Remove.
11244 (throw_exception_sjlj): Update.
11245 (exception_messages, exception_messages_size): Remove.
11246 (throw_it): Simplify.
11247 (gdb_exception_sliced_copy): Remove.
11248 (throw_exception_cxx): Update.
11249 * cli/cli-script.c (script_from_file): Update.
11250 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11251 Update.
11252 * ada-valprint.c (ada_val_print): Update.
11253 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11254 (create_excep_cond_exprs): Update.
11255
c5c10118
TT
112562019-04-08 Tom Tromey <tom@tromey.com>
11257
11258 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11259 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11260 (TRY, CATCH, END_CATCH): Remove some definitions.
11261 * common/common-exceptions.c: Don't use GDB_XCPT.
11262 (catcher_list_size): Remove.
11263 (throw_exception, throw_it): Simplify.
11264
4de283e4
TT
112652019-04-05 Tom Tromey <tom@tromey.com>
11266
11267 Revert the header-sorting patch.
11268 * ft32-tdep.c: Revert.
11269 * frv-tdep.c: Revert.
11270 * frv-linux-tdep.c: Revert.
11271 * frame.c: Revert.
11272 * frame-unwind.c: Revert.
11273 * frame-base.c: Revert.
11274 * fork-child.c: Revert.
11275 * findvar.c: Revert.
11276 * findcmd.c: Revert.
11277 * filesystem.c: Revert.
11278 * filename-seen-cache.h: Revert.
11279 * filename-seen-cache.c: Revert.
11280 * fbsd-tdep.c: Revert.
11281 * fbsd-nat.h: Revert.
11282 * fbsd-nat.c: Revert.
11283 * f-valprint.c: Revert.
11284 * f-typeprint.c: Revert.
11285 * f-lang.c: Revert.
11286 * extension.h: Revert.
11287 * extension.c: Revert.
11288 * extension-priv.h: Revert.
11289 * expprint.c: Revert.
11290 * exec.h: Revert.
11291 * exec.c: Revert.
11292 * exceptions.c: Revert.
11293 * event-top.c: Revert.
11294 * event-loop.c: Revert.
11295 * eval.c: Revert.
11296 * elfread.c: Revert.
11297 * dwarf2read.h: Revert.
11298 * dwarf2read.c: Revert.
11299 * dwarf2loc.c: Revert.
11300 * dwarf2expr.h: Revert.
11301 * dwarf2expr.c: Revert.
11302 * dwarf2-frame.c: Revert.
11303 * dwarf2-frame-tailcall.c: Revert.
11304 * dwarf-index-write.h: Revert.
11305 * dwarf-index-write.c: Revert.
11306 * dwarf-index-common.c: Revert.
11307 * dwarf-index-cache.h: Revert.
11308 * dwarf-index-cache.c: Revert.
11309 * dummy-frame.c: Revert.
11310 * dtrace-probe.c: Revert.
11311 * disasm.h: Revert.
11312 * disasm.c: Revert.
11313 * disasm-selftests.c: Revert.
11314 * dictionary.c: Revert.
11315 * dicos-tdep.c: Revert.
11316 * demangle.c: Revert.
11317 * dcache.h: Revert.
11318 * dcache.c: Revert.
11319 * darwin-nat.h: Revert.
11320 * darwin-nat.c: Revert.
11321 * darwin-nat-info.c: Revert.
11322 * d-valprint.c: Revert.
11323 * d-namespace.c: Revert.
11324 * d-lang.c: Revert.
11325 * ctf.c: Revert.
11326 * csky-tdep.c: Revert.
11327 * csky-linux-tdep.c: Revert.
11328 * cris-tdep.c: Revert.
11329 * cris-linux-tdep.c: Revert.
11330 * cp-valprint.c: Revert.
11331 * cp-support.c: Revert.
11332 * cp-namespace.c: Revert.
11333 * cp-abi.c: Revert.
11334 * corelow.c: Revert.
11335 * corefile.c: Revert.
11336 * continuations.c: Revert.
11337 * completer.h: Revert.
11338 * completer.c: Revert.
11339 * complaints.c: Revert.
11340 * coffread.c: Revert.
11341 * coff-pe-read.c: Revert.
11342 * cli-out.h: Revert.
11343 * cli-out.c: Revert.
11344 * charset.c: Revert.
11345 * c-varobj.c: Revert.
11346 * c-valprint.c: Revert.
11347 * c-typeprint.c: Revert.
11348 * c-lang.c: Revert.
11349 * buildsym.c: Revert.
11350 * buildsym-legacy.c: Revert.
11351 * build-id.h: Revert.
11352 * build-id.c: Revert.
11353 * btrace.c: Revert.
11354 * bsd-uthread.c: Revert.
11355 * breakpoint.h: Revert.
11356 * breakpoint.c: Revert.
11357 * break-catch-throw.c: Revert.
11358 * break-catch-syscall.c: Revert.
11359 * break-catch-sig.c: Revert.
11360 * blockframe.c: Revert.
11361 * block.c: Revert.
11362 * bfin-tdep.c: Revert.
11363 * bfin-linux-tdep.c: Revert.
11364 * bfd-target.c: Revert.
11365 * bcache.c: Revert.
11366 * ax-general.c: Revert.
11367 * ax-gdb.h: Revert.
11368 * ax-gdb.c: Revert.
11369 * avr-tdep.c: Revert.
11370 * auxv.c: Revert.
11371 * auto-load.c: Revert.
11372 * arm-wince-tdep.c: Revert.
11373 * arm-tdep.c: Revert.
11374 * arm-symbian-tdep.c: Revert.
11375 * arm-pikeos-tdep.c: Revert.
11376 * arm-obsd-tdep.c: Revert.
11377 * arm-nbsd-tdep.c: Revert.
11378 * arm-nbsd-nat.c: Revert.
11379 * arm-linux-tdep.c: Revert.
11380 * arm-linux-nat.c: Revert.
11381 * arm-fbsd-tdep.c: Revert.
11382 * arm-fbsd-nat.c: Revert.
11383 * arm-bsd-tdep.c: Revert.
11384 * arch-utils.c: Revert.
11385 * arc-tdep.c: Revert.
11386 * arc-newlib-tdep.c: Revert.
11387 * annotate.h: Revert.
11388 * annotate.c: Revert.
11389 * amd64-windows-tdep.c: Revert.
11390 * amd64-windows-nat.c: Revert.
11391 * amd64-tdep.c: Revert.
11392 * amd64-sol2-tdep.c: Revert.
11393 * amd64-obsd-tdep.c: Revert.
11394 * amd64-obsd-nat.c: Revert.
11395 * amd64-nbsd-tdep.c: Revert.
11396 * amd64-nbsd-nat.c: Revert.
11397 * amd64-nat.c: Revert.
11398 * amd64-linux-tdep.c: Revert.
11399 * amd64-linux-nat.c: Revert.
11400 * amd64-fbsd-tdep.c: Revert.
11401 * amd64-fbsd-nat.c: Revert.
11402 * amd64-dicos-tdep.c: Revert.
11403 * amd64-darwin-tdep.c: Revert.
11404 * amd64-bsd-nat.c: Revert.
11405 * alpha-tdep.c: Revert.
11406 * alpha-obsd-tdep.c: Revert.
11407 * alpha-nbsd-tdep.c: Revert.
11408 * alpha-mdebug-tdep.c: Revert.
11409 * alpha-linux-tdep.c: Revert.
11410 * alpha-linux-nat.c: Revert.
11411 * alpha-bsd-tdep.c: Revert.
11412 * alpha-bsd-nat.c: Revert.
11413 * aix-thread.c: Revert.
11414 * agent.c: Revert.
11415 * addrmap.c: Revert.
11416 * ada-varobj.c: Revert.
11417 * ada-valprint.c: Revert.
11418 * ada-typeprint.c: Revert.
11419 * ada-tasks.c: Revert.
11420 * ada-lang.c: Revert.
11421 * aarch64-tdep.c: Revert.
11422 * aarch64-ravenscar-thread.c: Revert.
11423 * aarch64-newlib-tdep.c: Revert.
11424 * aarch64-linux-tdep.c: Revert.
11425 * aarch64-linux-nat.c: Revert.
11426 * aarch64-fbsd-tdep.c: Revert.
11427 * aarch64-fbsd-nat.c: Revert.
11428 * aarch32-linux-nat.c: Revert.
11429
d55e5aa6
TT
114302019-04-05 Tom Tromey <tom@tromey.com>
11431
11432 * ft32-tdep.c: Sort headers.
11433 * frv-tdep.c: Sort headers.
11434 * frv-linux-tdep.c: Sort headers.
11435 * frame.c: Sort headers.
11436 * frame-unwind.c: Sort headers.
11437 * frame-base.c: Sort headers.
11438 * fork-child.c: Sort headers.
11439 * findvar.c: Sort headers.
11440 * findcmd.c: Sort headers.
11441 * filesystem.c: Sort headers.
11442 * filename-seen-cache.h: Sort headers.
11443 * filename-seen-cache.c: Sort headers.
11444 * fbsd-tdep.c: Sort headers.
11445 * fbsd-nat.h: Sort headers.
11446 * fbsd-nat.c: Sort headers.
11447 * f-valprint.c: Sort headers.
11448 * f-typeprint.c: Sort headers.
11449 * f-lang.c: Sort headers.
11450 * extension.h: Sort headers.
11451 * extension.c: Sort headers.
11452 * extension-priv.h: Sort headers.
11453 * expprint.c: Sort headers.
11454 * exec.h: Sort headers.
11455 * exec.c: Sort headers.
11456 * exceptions.c: Sort headers.
11457 * event-top.c: Sort headers.
11458 * event-loop.c: Sort headers.
11459 * eval.c: Sort headers.
11460 * elfread.c: Sort headers.
11461 * dwarf2read.h: Sort headers.
11462 * dwarf2read.c: Sort headers.
11463 * dwarf2loc.c: Sort headers.
11464 * dwarf2expr.h: Sort headers.
11465 * dwarf2expr.c: Sort headers.
11466 * dwarf2-frame.c: Sort headers.
11467 * dwarf2-frame-tailcall.c: Sort headers.
11468 * dwarf-index-write.h: Sort headers.
11469 * dwarf-index-write.c: Sort headers.
11470 * dwarf-index-common.c: Sort headers.
11471 * dwarf-index-cache.h: Sort headers.
11472 * dwarf-index-cache.c: Sort headers.
11473 * dummy-frame.c: Sort headers.
11474 * dtrace-probe.c: Sort headers.
11475 * disasm.h: Sort headers.
11476 * disasm.c: Sort headers.
11477 * disasm-selftests.c: Sort headers.
11478 * dictionary.c: Sort headers.
11479 * dicos-tdep.c: Sort headers.
11480 * demangle.c: Sort headers.
11481 * dcache.h: Sort headers.
11482 * dcache.c: Sort headers.
11483 * darwin-nat.h: Sort headers.
11484 * darwin-nat.c: Sort headers.
11485 * darwin-nat-info.c: Sort headers.
11486 * d-valprint.c: Sort headers.
11487 * d-namespace.c: Sort headers.
11488 * d-lang.c: Sort headers.
11489 * ctf.c: Sort headers.
11490 * csky-tdep.c: Sort headers.
11491 * csky-linux-tdep.c: Sort headers.
11492 * cris-tdep.c: Sort headers.
11493 * cris-linux-tdep.c: Sort headers.
11494 * cp-valprint.c: Sort headers.
11495 * cp-support.c: Sort headers.
11496 * cp-namespace.c: Sort headers.
11497 * cp-abi.c: Sort headers.
11498 * corelow.c: Sort headers.
11499 * corefile.c: Sort headers.
11500 * continuations.c: Sort headers.
11501 * completer.h: Sort headers.
11502 * completer.c: Sort headers.
11503 * complaints.c: Sort headers.
11504 * coffread.c: Sort headers.
11505 * coff-pe-read.c: Sort headers.
11506 * cli-out.h: Sort headers.
11507 * cli-out.c: Sort headers.
11508 * charset.c: Sort headers.
11509 * c-varobj.c: Sort headers.
11510 * c-valprint.c: Sort headers.
11511 * c-typeprint.c: Sort headers.
11512 * c-lang.c: Sort headers.
11513 * buildsym.c: Sort headers.
11514 * buildsym-legacy.c: Sort headers.
11515 * build-id.h: Sort headers.
11516 * build-id.c: Sort headers.
11517 * btrace.c: Sort headers.
11518 * bsd-uthread.c: Sort headers.
11519 * breakpoint.h: Sort headers.
11520 * breakpoint.c: Sort headers.
11521 * break-catch-throw.c: Sort headers.
11522 * break-catch-syscall.c: Sort headers.
11523 * break-catch-sig.c: Sort headers.
11524 * blockframe.c: Sort headers.
11525 * block.c: Sort headers.
11526 * bfin-tdep.c: Sort headers.
11527 * bfin-linux-tdep.c: Sort headers.
11528 * bfd-target.c: Sort headers.
11529 * bcache.c: Sort headers.
11530 * ax-general.c: Sort headers.
11531 * ax-gdb.h: Sort headers.
11532 * ax-gdb.c: Sort headers.
11533 * avr-tdep.c: Sort headers.
11534 * auxv.c: Sort headers.
11535 * auto-load.c: Sort headers.
11536 * arm-wince-tdep.c: Sort headers.
11537 * arm-tdep.c: Sort headers.
11538 * arm-symbian-tdep.c: Sort headers.
11539 * arm-pikeos-tdep.c: Sort headers.
11540 * arm-obsd-tdep.c: Sort headers.
11541 * arm-nbsd-tdep.c: Sort headers.
11542 * arm-nbsd-nat.c: Sort headers.
11543 * arm-linux-tdep.c: Sort headers.
11544 * arm-linux-nat.c: Sort headers.
11545 * arm-fbsd-tdep.c: Sort headers.
11546 * arm-fbsd-nat.c: Sort headers.
11547 * arm-bsd-tdep.c: Sort headers.
11548 * arch-utils.c: Sort headers.
11549 * arc-tdep.c: Sort headers.
11550 * arc-newlib-tdep.c: Sort headers.
11551 * annotate.h: Sort headers.
11552 * annotate.c: Sort headers.
11553 * amd64-windows-tdep.c: Sort headers.
11554 * amd64-windows-nat.c: Sort headers.
11555 * amd64-tdep.c: Sort headers.
11556 * amd64-sol2-tdep.c: Sort headers.
11557 * amd64-obsd-tdep.c: Sort headers.
11558 * amd64-obsd-nat.c: Sort headers.
11559 * amd64-nbsd-tdep.c: Sort headers.
11560 * amd64-nbsd-nat.c: Sort headers.
11561 * amd64-nat.c: Sort headers.
11562 * amd64-linux-tdep.c: Sort headers.
11563 * amd64-linux-nat.c: Sort headers.
11564 * amd64-fbsd-tdep.c: Sort headers.
11565 * amd64-fbsd-nat.c: Sort headers.
11566 * amd64-dicos-tdep.c: Sort headers.
11567 * amd64-darwin-tdep.c: Sort headers.
11568 * amd64-bsd-nat.c: Sort headers.
11569 * alpha-tdep.c: Sort headers.
11570 * alpha-obsd-tdep.c: Sort headers.
11571 * alpha-nbsd-tdep.c: Sort headers.
11572 * alpha-mdebug-tdep.c: Sort headers.
11573 * alpha-linux-tdep.c: Sort headers.
11574 * alpha-linux-nat.c: Sort headers.
11575 * alpha-bsd-tdep.c: Sort headers.
11576 * alpha-bsd-nat.c: Sort headers.
11577 * aix-thread.c: Sort headers.
11578 * agent.c: Sort headers.
11579 * addrmap.c: Sort headers.
11580 * ada-varobj.c: Sort headers.
11581 * ada-valprint.c: Sort headers.
11582 * ada-typeprint.c: Sort headers.
11583 * ada-tasks.c: Sort headers.
11584 * ada-lang.c: Sort headers.
11585 * aarch64-tdep.c: Sort headers.
11586 * aarch64-ravenscar-thread.c: Sort headers.
11587 * aarch64-newlib-tdep.c: Sort headers.
11588 * aarch64-linux-tdep.c: Sort headers.
11589 * aarch64-linux-nat.c: Sort headers.
11590 * aarch64-fbsd-tdep.c: Sort headers.
11591 * aarch64-fbsd-nat.c: Sort headers.
11592 * aarch32-linux-nat.c: Sort headers.
11593
699bd4cf
TT
115942019-04-04 Tom Tromey <tom@tromey.com>
11595
11596 * varobj.c (varobj_create): Update.
11597 * rust-exp.y (struct rust_parser) <update_innermost_block,
11598 lookup_symbol>: New methods.
11599 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11600 Rename.
11601 (rust_parser::rust_lookup_type)
11602 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11603 * printcmd.c (display_command, do_one_display): Update.
11604 * parser-defs.h (struct parser_state) <parser_state>: Add
11605 "tracker" parameter.
11606 (block_tracker): New member.
11607 (class innermost_block_tracker) <innermost_block_tracker>: Add
11608 "types" parameter.
11609 <reset>: Remove method.
11610 (innermost_block): Don't declare.
11611 (null_post_parser): Update.
11612 * parse.c (innermost_block): Remove global.
11613 (write_dollar_variable): Update.
11614 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11615 Remove "tracker_types" parameter.
11616 (parse_expression): Add "tracker" parameter.
11617 (parse_expression_for_completion): Update.
11618 (null_post_parser): Add "tracker" parameter.
11619 * p-exp.y: Update rules.
11620 * m2-exp.y: Update rules.
11621 * language.h (struct language_defn) <la_post_parser>: Add
11622 "tracker" parameter.
11623 * go-exp.y: Update rules.
11624 * f-exp.y: Update rules.
11625 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11626 parameter.
11627 * d-exp.y: Update rules.
11628 * c-exp.y: Update rules.
11629 * breakpoint.c (set_breakpoint_condition): Create an
11630 innermost_block_tracker.
11631 (watch_command_1): Likewise.
11632 * ada-lang.c (resolve): Add "tracker" parameter.
11633 (resolve_subexp): Likewise.
11634 * ada-exp.y (write_var_from_sym): Update.
11635
dac43e32
TT
116362019-04-04 Tom Tromey <tom@tromey.com>
11637
11638 * type-stack.h: New file.
11639 * type-stack.c: New file.
11640 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11641 type-stack.h.
11642 (insert_into_type_stack, insert_type, push_type, push_type_int)
11643 (insert_type_address_space, pop_type, pop_type_int)
11644 (pop_typelist, pop_type_stack, append_type_stack)
11645 (push_type_stack, get_type_stack, push_typelist)
11646 (follow_type_instance_flags, follow_types): Don't declare.
11647 * parse.c (type_stack): Remove global.
11648 (parse_exp_in_context): Update.
11649 (insert_into_type_stack, insert_type, push_type, push_type_int)
11650 (insert_type_address_space, pop_type, pop_type_int)
11651 (pop_typelist, pop_type_stack, append_type_stack)
11652 (push_type_stack, get_type_stack, push_typelist)
11653 (follow_type_instance_flags, follow_types): Remove (moved to
11654 type-stack.c).
11655 * f-exp.y (type_stack): New global.
11656 Update rules.
11657 (push_kind_type, f_parse): Update.
11658 * d-exp.y (type_stack): New global.
11659 Update rules.
11660 (d_parse): Update.
11661 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11662 Update rules.
11663 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11664 (HFILES_NO_SRCDIR): Add type-stack.h.
11665
2a612529
TT
116662019-04-04 Tom Tromey <tom@tromey.com>
11667
11668 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11669 (rust_parser::convert_ast_to_expression, rust_parse)
11670 (rust_lex_test_completion, rust_lex_tests): Update.
11671 * parser-defs.h (struct expr_completion_state): New.
11672 (struct parser_state) <parser_state>: Add completion parameter.
11673 <mark_struct_expression, mark_completion_tag>: New methods.
11674 <parse_completion, m_completion_state>: New members.
11675 (prefixify_expression, null_post_parser): Update.
11676 (mark_struct_expression, mark_completion_tag): Don't declare.
11677 * parse.c (parse_completion, expout_last_struct)
11678 (expout_tag_completion_type, expout_completion_name): Remove
11679 globals.
11680 (parser_state::mark_struct_expression)
11681 (parser_state::mark_completion_tag): Now methods.
11682 (prefixify_expression): Add last_struct parameter.
11683 (prefixify_subexp): Likewise.
11684 (parse_exp_1): Update.
11685 (parse_exp_in_context): Add cstate parameter. Update.
11686 (parse_expression_for_completion): Create an
11687 expr_completion_state.
11688 (null_post_parser): Add "completion" parameter.
11689 * p-exp.y: Update rules.
11690 (yylex): Update.
11691 * language.h (struct language_defn) <la_post_parser>: Add
11692 "completing" parameter.
11693 * go-exp.y: Update rules.
11694 (lex_one_token): Update.
11695 * expression.h (parse_completion): Don't declare.
11696 * d-exp.y: Update rules.
11697 (lex_one_token): Update rules.
11698 * c-exp.y: Update rules.
11699 (lex_one_token): Update.
11700 * ada-lang.c (resolve): Add "parse_completion" parameter.
11701 (resolve_subexp): Likewise.
11702 (ada_resolve_function): Likewise.
11703
43476f0b
TT
117042019-04-04 Tom Tromey <tom@tromey.com>
11705
11706 * parser-defs.h (struct parser_state) <start_arglist,
11707 end_arglist>: New methods.
11708 <arglist_len, m_funcall_chain>: New members.
11709 (arglist_len, start_arglist, end_arglist): Don't declare.
11710 * parse.c (arglist_len, funcall_chain): Remove global.
11711 (start_arglist, end_arglist): Remove functions.
11712 (parse_exp_in_context): Update.
11713 * p-exp.y: Update rules.
11714 * m2-exp.y: Update rules.
11715 * go-exp.y: Update rules.
11716 * f-exp.y: Update rules.
11717 * d-exp.y: Update rules.
11718 * c-exp.y: Update rules.
11719
5776fca3
TT
117202019-04-04 Tom Tromey <tom@tromey.com>
11721
11722 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11723 lex_operator, push_back>: New methods.
11724 Update all rules.
11725 (rust_parser::lex_hex, lex_escape): Rename and update.
11726 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11727 (rust_parser::lex_operator): Rename and update.
11728 (rust_parser::lex_number, rustyylex, rustyyerror)
11729 (rust_lex_test_init, rust_lex_test_sequence)
11730 (rust_lex_test_push_back, rust_lex_tests): Update.
11731 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11732 parameter.
11733 <lexptr, prev_lexptr>: New members.
11734 (lexptr, prev_lexptr): Don't declare.
11735 * parse.c (lexptr, prev_lexptr): Remove globals.
11736 (parse_exp_in_context): Update.
11737 * p-exp.y (yylex, yyerror): Update.
11738 * m2-exp.y (parse_number, yylex, yyerror): Update.
11739 * go-exp.y (lex_one_token, yyerror): Update.
11740 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11741 * d-exp.y (lex_one_token, yyerror): Update.
11742 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11743 (lex_one_token, yyerror): Update.
11744 * ada-lex.l (YY_INPUT): Update.
11745 (rewind_to_char): Update.
11746 * ada-exp.y (yyerror): Update.
11747
8621b685
TT
117482019-04-04 Tom Tromey <tom@tromey.com>
11749
11750 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11751 * parser-defs.h (struct parser_state) <parser_state>: Add new
11752 parameter.
11753 <comma_terminates>: New member.
11754 (comma_terminates): Don't declare global.
11755 * parse.c (comma_terminates): Remove global.
11756 (parse_exp_in_context): Update.
11757 * p-exp.y (yylex): Update.
11758 * m2-exp.y (yylex): Update.
11759 * go-exp.y (lex_one_token): Update.
11760 * f-exp.y (yylex): Update.
11761 * d-exp.y (lex_one_token): Update.
11762 * c-exp.y (lex_one_token): Update.
11763 * ada-lex.l: Update.
11764
28aaf3fd
TT
117652019-04-04 Tom Tromey <tom@tromey.com>
11766
11767 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11768 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11769 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11770 * parser-defs.h (paren_depth): Don't declare.
11771 * parse.c (paren_depth): Remove global.
11772 (parse_exp_in_context): Update.
11773 * p-exp.y (paren_depth): New global.
11774 (pascal_parse): Initialize it.
11775 * m2-exp.y (paren_depth): New global.
11776 (m2_parse): Initialize it.
11777 * go-exp.y (paren_depth): New global.
11778 (go_parse): Initialize it.
11779 * f-exp.y (paren_depth): New global.
11780 (f_parse): Initialize it.
11781 * d-exp.y (paren_depth): New global.
11782 (d_parse): Initialize it.
11783 * c-exp.y (paren_depth): New global.
11784 (c_parse): Initialize it.
11785 * ada-lex.l (paren_depth): New global.
11786 (lexer_init): Initialize it.
11787
1e58a4a4
TT
117882019-04-04 Tom Tromey <tom@tromey.com>
11789
11790 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11791 (rust_parser::convert_ast_to_type)
11792 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11793 * parser-defs.h (struct parser_state) <parser_state>: Add
11794 parameters. Initialize new members.
11795 <expression_context_block, expression_context_pc>: New members.
11796 * parse.c (expression_context_block, expression_context_pc):
11797 Remove globals.
11798 (parse_exp_in_context): Update.
11799 * p-exp.y: Update all rules.
11800 (yylex): Update.
11801 * m2-exp.y: Update all rules.
11802 (yylex): Update.
11803 * go-exp.y (yylex): Update.
11804 * f-exp.y (yylex): Update.
11805 * d-exp.y: Update all rules.
11806 (yylex): Update.
11807 * c-exp.y: Update all rules.
11808 (lex_one_token, classify_name, yylex, c_parse): Update.
11809 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11810
37eedb39
TT
118112019-04-04 Tom Tromey <tom@tromey.com>
11812
11813 * gdbarch.h, gdbarch.c: Rebuild.
11814 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11815 * stap-probe.h:
11816 (struct stap_parse_info): Replace "parser_state" with
11817 "expr_builder".
11818 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11819 (parser_state): New class.
11820 * parse.c (expr_builder): Rename.
11821 (expr_builder::release): Rename.
11822 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11823 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11824 (write_exp_elt_longcst, write_exp_elt_floatcst)
11825 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11826 (write_exp_string_vector, write_exp_bitstring)
11827 (write_exp_msymbol, mark_struct_expression)
11828 (write_dollar_variable)
11829 (insert_type_address_space, increase_expout_size): Replace
11830 "parser_state" with "expr_builder".
11831 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11832 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11833 "parser_state" with "expr_builder".
11834
73923d7e
TT
118352019-04-04 Tom Tromey <tom@tromey.com>
11836
11837 * rust-exp.y: Replace "parse_language" with method call.
11838 * p-exp.y:
11839 (yylex): Replace "parse_language" with method call.
11840 * m2-exp.y:
11841 (yylex): Replace "parse_language" with method call.
11842 * go-exp.y (classify_name): Replace "parse_language" with method
11843 call.
11844 * f-exp.y (yylex): Replace "parse_language" with method call.
11845 * d-exp.y (lex_one_token): Replace "parse_language" with method
11846 call.
11847 * c-exp.y:
11848 (lex_one_token, classify_name, yylex): Replace "parse_language"
11849 with method call.
11850 * ada-exp.y (find_primitive_type, type_char)
11851 (type_system_address): Replace "parse_language" with method call.
11852
fa9f5be6
TT
118532019-04-04 Tom Tromey <tom@tromey.com>
11854
11855 * rust-exp.y: Replace "parse_gdbarch" with method call.
11856 * parse.c (write_dollar_variable, insert_type_address_space):
11857 Replace "parse_gdbarch" with method call.
11858 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11859 call.
11860 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11861 call.
11862 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11863 "parse_gdbarch" with method call.
11864 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11865 with method call.
11866 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11867 "parse_gdbarch" with method call.
11868 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11869 "parse_gdbarch" with method call.
11870 * c-exp.y (parse_type, parse_number, classify_name): Replace
11871 "parse_gdbarch" with method call.
11872 * ada-lex.l: Replace "parse_gdbarch" with method call.
11873 * ada-exp.y (parse_type, find_primitive_type, type_char)
11874 (type_system_address): Replace "parse_gdbarch" with method call.
11875
1201a264
TT
118762019-04-04 Tom Tromey <tom@tromey.com>
11877
11878 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11879 * stap-probe.c (stap_parse_argument): Update.
11880 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11881 initial_size parameter.
11882 * rust-exp.y (rust_lex_tests): Update.
11883 * parse.c (parser_state): Update.
11884 (parse_exp_in_context): Update.
11885 * parser-defs.h (struct parser_state) <parser_state>: Remove
11886 "initial_size" parameter.
11887
e3980ce2
TT
118882019-04-04 Tom Tromey <tom@tromey.com>
11889
11890 * parser-defs.h (increase_expout_size): Don't declare.
11891 * parse.c (increase_expout_size): Now static.
11892
e9f8e3f1
TS
118932019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11894
11895 * gnu-nat.c (gnu_nat_target::wait): Fix
11896 target_waitstatus_to_string call.
11897
d7df6549
AB
118982019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11899
11900 * eval.c (evaluate_subexp_standard): Handle internal functions
11901 during Fortran function call handling.
11902
8bdc1658
AB
119032019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11904
11905 * NEWS: Mention new internal functions.
11906 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11907 (read_base_type): Use dwarf2_init_complex_target_type.
11908 * value.c (creal_internal_fn): New function.
11909 (cimag_internal_fn): New function.
11910 (_initialize_values): Register new internal functions.
11911
c29705b7
PW
119122019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11913
11914 * infrun.c (stop_all_threads): If debug_infrun, always
11915 trace the wait status after wait_one, using
11916 target_waitstatus_to_string and target_pid_to_str.
11917 (handle_inferior_event): Replace various trace of
11918 wait status kind by a single trace.
11919 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11920 wait status kind image by target_waitstatus_to_string.
11921 * target/waitstatus.c (target_waitstatus_to_string): Fix
11922 obsolete comment.
11923
05caa1d2
TT
119242019-04-01 Tom Tromey <tromey@adacore.com>
11925
11926 PR symtab/23331:
11927 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11928
9d1447e0
SDJ
119292019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11930 Pedro Alves <palves@redhat.com>
11931
11932 * top.c (quit_force): Call 'finalize_values'.
11933 * value.c (finalize_values): New function.
11934 * value.h (finalize_values): Declare.
11935
7734102d
EZ
119362019-03-30 Eli Zaretskii <eliz@gnu.org>
11937
11938 * NEWS: Announce $_gdb_major and $_gdb_minor.
11939
11940 * top.c (init_gdb_version_vars): New function.
11941 (gdb_init): Call init_gdb_version_vars.
11942
188e1fa9
TT
119432019-03-29 Tom Tromey <tromey@adacore.com>
11944
11945 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11946 help text. Remove dead code.
11947
2880242d
KS
119482019-03-29 Keith Seitz <keiths@redhat.com>
11949
11950 From Siddhesh Poyarekar:
11951 * f-lang.h (f77_get_upperbound): Return LONGEST.
11952 (f77_get_lowerbound): Likewise.
11953 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11954 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11955 print them.
11956 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11957 plongest to format print it.
11958 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11959 (f77_get_upperbound): Likewise.
11960 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11961 LOWER_BOUND to LONGEST.
11962 (f77_create_arrayprint_offset_tbl): Likewise.
11963
cc1defb1
KS
119642019-03-29 Keith Seitz <keiths@redhat.com>
11965
11966 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11967 %s/pulongest for TYPE_LENGTH instead of %d in format
11968 strings.
11969 * ada-typerint.c (ada_print_type): Likewise.
11970 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11971 * compile/compile-c-support.c (generate_register_struct): Likewise.
11972 * gdbtypes.c (recursive_dump_type): Likewise.
11973 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11974 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11975 instead of %d in format strings.
11976 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11977 to std::min to ULONGEST.
11978 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11979 instead of %d in format strings.
11980 * tracepoint.c (info_scope_command): Likewise.
11981 * typeprint.c (print_offset_data::update)
11982 (print_offset_data::finish): Likewise.
11983 * xtensa-tdep.c (xtensa_store_return_value)
11984 (xtensa_push_dummy_call): Likewise.
11985
e432ccf1
JT
119862019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11987
11988 * windows-nat.c (display_selector): Fixed format specifications
11989 for 64-bit Cygwin.
11990
65d2b333
PW
119912019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11992
11993 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11994
f489207e
SL
119952019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11996
11997 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11998 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11999 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12000 (nios2_linux_init_abi): Install it.
12001
bffa1015
AH
120022019-03-28 Alan Hayward <alan.hayward@arm.com>
12003
12004 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12005
fc96163a
AH
120062019-03-28 Alan Hayward <alan.hayward@arm.com>
12007
12008 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12009
20dc7e9b
PW
120102019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12011 Tom Tromey <tromey@adacore.com>
12012
12013 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12014
7f5331a8
JB
120152019-03-26 Joel Brobecker <brobecker@adacore.com>
12016
12017 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12018 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12019 method to compute the bounds of range types. Also print "[evaluated]"
12020 if the bounds' values come from a dynamic evaluation.
12021
18c77628
AB
120222019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12023
12024 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12025 whitespace when pretty printing is on.
12026
53c973f2
AH
120272019-03-26 Alan Hayward <alan.hayward@arm.com>
12028
e79be6e5 12029 * ppc-linux-nat.c: Add include.
53c973f2 12030
d851aa71
AH
120312019-03-26 Alan Hayward <alan.hayward@arm.com>
12032
e79be6e5 12033 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12034
2fe7bab7
AH
120352019-03-26 Alan Hayward <alan.hayward@arm.com>
12036
e79be6e5 12037 * arm-linux-nat.c: Add include.
2fe7bab7 12038
068ef30e
SM
120392019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * source-cache.c (source_cache::get_source_lines): Re-read
12042 fullname after calling open_source_file.
12043
81a24d04
JB
120442019-03-25 John Baldwin <jhb@FreeBSD.org>
12045
12046 * NEWS: Mention TLS support for FreeBSD.
12047
79e7ae11
TT
120482019-03-25 Tom Tromey <tromey@adacore.com>
12049
12050 * minsyms.c (BUNCH_SIZE): Update comment.
12051 (~minimal_symbol_reader): Remove old comment.
12052 (compact_minimal_symbols): Update comment.
12053 (minimal_symbol_reader::install): Remove old comment. Update
12054 other comments.
12055
d45963c2
AH
120562019-03-25 Alan Hayward <alan.hayward@arm.com>
12057
12058 * s390-linux-nat.c: Add include.
12059
0f83012e
AH
120602019-03-25 Alan Hayward <alan.hayward@arm.com>
12061
12062 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12063 Call linux_get_hwcap.
12064 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12065 Likewise.
12066 (aarch64_linux_get_hwcap): Remove function.
12067 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12068 declaration.
12069 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12070 linux_get_hwcap.
12071 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12072 * linux-tdep.c (linux_get_hwcap): Add function.
12073 (linux_get_hwcap2): Likewise.
12074 * linux-tdep.h (linux_get_hwcap): Add declaration.
12075 (linux_get_hwcap2): Likewise.
12076 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12077 (ppc_linux_get_hwcap2): Likewise.
12078 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12079 linux_get_hwcap.
12080 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12081 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12082 (ppc_linux_nat_target::read_description): Likewise.
12083 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12084 * s390-linux-nat.c: Likewise.
12085 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12086
6640a367
TT
120872019-03-24 Tom Tromey <tom@tromey.com>
12088
12089 * ada-lang.c (standard_lookup): Simplify initialization.
12090 (ada_lookup_symbol_nonlocal): Simplify return.
12091 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12092 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12093 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12094 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12095 initialization.
12096 * solib.c (solib_global_lookup): Simplify.
12097 * symtab.c (null_block_symbol): Remove.
12098 (symbol_cache_lookup): Simplify returns.
12099 (lookup_language_this): Simplify returns.
12100 (lookup_symbol_aux): Simplify return.
12101 (lookup_local_symbol): Simplify returns.
12102 (lookup_global_symbol_from_objfile): Simplify return.
12103 (lookup_symbol_in_objfile_symtabs)
12104 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12105 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12106 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12107 * cp-namespace.c (cp_lookup_bare_symbol)
12108 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12109 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12110 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12111 (cp_lookup_symbol_via_imports): Simplify initialization.
12112 (find_symbol_in_baseclass): Likewise.
12113 * symtab.h (null_block_symbol): Remove.
12114 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12115 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12116 (d_lookup_symbol_module): Likewise.
12117 (find_symbol_in_baseclass): Simplify initialization.
12118
a930ebcd
TT
121192019-03-24 Tom Tromey <tom@tromey.com>
12120
12121 * expression.h: Don't include symtab.h.
12122 (struct block): Forward declare.
12123
582942f4
TT
121242019-03-24 Tom Tromey <tom@tromey.com>
12125
12126 * c-exp.y (typebase): Remove casts.
12127 * gdbtypes.c (lookup_unsigned_typename, )
12128 (lookup_signed_typename): Remove cast.
12129 * eval.c (parse_to_comma_and_eval): Remove cast.
12130 * parse.c (write_dollar_variable): Remove cast.
12131 * block.h (struct block) <superblock>: Now const.
12132 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12133 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12134 (map_block): Make "block" const.
12135 * symfile.h (struct quick_symbol_functions)
12136 <map_matching_symbols>: Constify block argument to "callback".
12137 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12138 const.
12139 (find_pc_sect_compunit_symtab): Make "b" const.
12140 (find_symbol_at_address): Likewise.
12141 (search_symbols): Likewise.
12142 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12143 (dw2_debug_names_lookup_symbol): Likewise.
12144 (dw2_map_matching_symbols): Update.
12145 * p-valprint.c (pascal_val_print): Remove "block".
12146 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12147 (aux_add_nonlocal_symbols): Make "block" const.
12148 (resolve_subexp): Remove cast.
12149 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12150 const.
12151 (iterate_over_file_blocks): Likewise.
12152 * f-exp.y (%union) <bval>: Remove.
12153 * coffread.c (patch_opaque_types): Make "b" const.
12154 * spu-tdep.c (spu_catch_start): Make "block" const.
12155 * c-valprint.c (print_unpacked_pointer): Remove "block".
12156 * symmisc.c (dump_symtab_1): Make "b" const.
12157 (block_depth): Make "block" const.
12158 * d-exp.y (%union) <bval>: Remove.
12159 * cp-support.h (cp_lookup_rtti_type): Update.
12160 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12161 * psymtab.c (psym_lookup_symbol): Make "block" const.
12162 (maintenance_check_psymtabs): Make "b" const.
12163 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12164 (enumerate_locals, enumerate_args): Update.
12165 * python/py-symtab.c (stpy_global_block): Make "block" const.
12166 (stpy_static_block): Likewise.
12167 * inline-frame.c (block_starting_point_at): Make "new_block"
12168 const.
12169 * block.c (find_block_in_blockvector): Make return type const.
12170 (blockvector_for_pc_sect): Make "b" const.
12171 (find_block_in_blockvector): Make "b" const.
12172
7ad417dd
TT
121732019-03-23 Tom Tromey <tom@tromey.com>
12174
12175 * varobj.c (varobj_create): Update.
12176 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12177 * printcmd.c (display_command, do_one_display): Don't reset
12178 innermost_block.
12179 * parser-defs.h (enum innermost_block_tracker_type): Move to
12180 expression.h.
12181 (innermost_block): Update comment.
12182 * parse.c (parse_exp_1): Add tracker_types parameter.
12183 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12184 tracker_types parameter. Reset innermost_block.
12185 (parse_exp_in_context): Remove.
12186 (parse_expression_for_completion): Update.
12187 * objfiles.c (~objfile): Don't reset expression_context_block or
12188 innermost_block.
12189 * expression.h (enum innermost_block_tracker_type): Move from
12190 parser-defs.h.
12191 (parse_exp_1): Add tracker_types parameter.
12192 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12193 reset innermost_block.
12194
b366c208
TT
121952019-03-23 Tom Tromey <tom@tromey.com>
12196
12197 * objfiles.h: Include bcache.h.
12198
9bb9b2f9
TT
121992019-03-23 Tom Tromey <tom@tromey.com>
12200
12201 * linespec.c (get_current_search_block): Use
12202 scoped_restore_current_language.
12203 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12204
59c28372
AH
122052019-03-22 Alan Hayward <alan.hayward@arm.com>
12206 Jiong Wang <jiong.wang@arm.com>
12207
12208 * aarch64-linux-tdep.c
12209 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12210 section.
12211 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12212
17e116a7
AH
122132019-03-22 Alan Hayward <alan.hayward@arm.com>
12214 Jiong Wang <jiong.wang@arm.com>
12215
12216 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12217 instructions.
12218 (aarch64_analyze_prologue_test): Add PACIASP test.
12219 (aarch64_prologue_prev_register): Unmask PC value.
12220
11e1b75f
AH
122212019-03-22 Alan Hayward <alan.hayward@arm.com>
12222 Jiong Wang <jiong.wang@arm.com>
12223
12224 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12225 (aarch64_dwarf2_prev_register): Unmask PC value.
12226 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12227 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12228 DW_CFA_AARCH64_negate_ra_state.
12229 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12230
34dcc7cf
AH
122312019-03-22 Alan Hayward <alan.hayward@arm.com>
12232 Jiong Wang <jiong.wang@arm.com>
12233
12234 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12235 registers.
12236 (aarch64_pseudo_register_name): Likewise.
12237 (aarch64_pseudo_register_type): Likewise.
12238 (aarch64_pseudo_register_reggroup_p): Likewise.
12239 (aarch64_gdbarch_init): Add pauth registers.
12240 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12241 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12242 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12243 (struct gdbarch_tdep): Add regnum for ra_state.
12244
1ef53e6b
AH
122452019-03-22 Alan Hayward <alan.hayward@arm.com>
12246 Jiong Wang <jiong.wang@arm.com>
12247
12248 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12249
76bed0fd
AH
122502019-03-22 Alan Hayward <alan.hayward@arm.com>
12251 Jiong Wang <jiong.wang@arm.com>
12252
12253 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12254 function.
12255 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12256 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12257 (aarch64_gdbarch_init): Add puth registers.
12258 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12259 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12260 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12261
ee4fbcfa
AH
122622019-03-22 Alan Hayward <alan.hayward@arm.com>
12263 Jiong Wang <jiong.wang@arm.com>
12264
12265 * aarch64-linux-nat.c
12266 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12267 * aarch64-linux-tdep.c
12268 (aarch64_linux_core_read_description): Likewise.
12269 (aarch64_linux_get_hwcap): New function.
12270 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12271 (aarch64_linux_get_hwcap): New declaration.
12272
6dc0ebde
AH
122732019-03-22 Alan Hayward <alan.hayward@arm.com>
12274 Jiong Wang <jiong.wang@arm.com>
12275
12276 * aarch64-linux-nat.c
12277 (aarch64_linux_nat_target::read_description): Add pauth param.
12278 * aarch64-linux-tdep.c
12279 (aarch64_linux_core_read_description): Likewise.
12280 * aarch64-tdep.c (struct target_desc): Add in pauth.
12281 (aarch64_read_description): Add pauth param.
12282 (aarch64_gdbarch_init): Likewise.
12283 * aarch64-tdep.h (aarch64_read_description): Likewise.
12284 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12285 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12286 * features/Makefile: Add new files.
12287 * features/aarch64-pauth.c: New file.
12288 * features/aarch64-pauth.xml: New file.
12289
595915c1
TT
122902019-03-20 Tom Tromey <tromey@adacore.com>
12291
12292 * infrun.c (handle_inferior_event): Rename from
12293 handle_inferior_event_1. Create a scoped_value_mark.
12294 (handle_inferior_event): Remove.
12295
4c7d57e7
TT
122962019-03-19 Tom Tromey <tromey@adacore.com>
12297
12298 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12299 * infrun.h (print_stop_event): Add "displays" parameter.
12300 * infrun.c (print_stop_event): Add "displays" parameter.
12301
cb246234
PA
123022019-03-19 Pedro Alves <palves@redhat.com>
12303
12304 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12305 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12306 to -1. Fix TABs vs spaces.
12307 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12308 * tui/tui-out.h (tui_ui_out) Add intro comments.
12309 <m_line, m_start_of_line>: In-class initialize, and add describing
12310 comment.
12311
3a0e45b2
AH
123122019-03-18 Alan Hayward <alan.hayward@arm.com>
12313
12314 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12315 variable names.
12316 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12317
5371b850
PA
123182019-03-18 Pedro Alves <palves@redhat.com>
12319 Eli Zaretskii <eliz@gnu.org>
12320
12321 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12322 m_line and m_start_of_line.
12323
b17c4cd0
EZ
123242019-03-18 Eli Zaretskii <eliz@gnu.org>
12325
12326 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12327 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12328 it returns a newline. This fixes a regression in TU mode, whereby
12329 the next line is output on the same screen line as the user input.
12330
4bd56d18
TT
123312019-03-18 Tom Tromey <tromey@adacore.com>
12332
12333 * minsyms.c (minimal_symbol_reader::install): Remove call to
12334 obstack_blank.
12335
55c10aca
PA
123362019-03-18 Pedro Alves <palves@redhat.com>
12337
12338 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12339 New globals.
12340 (apply_style): New, factored out from ...
12341 (apply_ansi_escape): ... this. Handle reverse video mode.
12342 (tui_set_reverse_mode): New function.
12343 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12344 * tui/tui-winsource.c (tui_show_source_line): Use
12345 tui_set_reverse_mode instead of setting A_STANDOUT.
12346 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12347 New setter methods.
12348
647bb750
HD
123492019-03-18 Hannes Domani <ssbssa@yahoo.de>
12350
12351 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12352 Handle tabs.
12353
bff8c71f
TT
123542019-03-18 Tom Tromey <tromey@adacore.com>
12355
12356 * ada-lang.c (empty_array): Add "high" parameter.
12357 (ada_evaluate_subexp): Update.
12358
58785d98
ST
123592019-03-17 Sergei Trofimovich <siarheit@google.com>
12360
12361 * unittests/string_view-selftests.c: Define
12362 _initialize_string_view_selftests unconditionally.
12363
d4cbef22
ВМ
123642019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12365
12366 PR gdb/24350
12367 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12368
fce4c071
ВМ
123692019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12370
12371 PR gdb/24351
12372 * windows-nat.c (display_selector): Fix format specifiers.
12373
f7f0a123
EZ
123742019-03-17 Eli Zaretskii <eliz@gnu.org>
12375
12376 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12377 tui_refill_source_window instead of tui_refresh_win, to update the
12378 current execution line. This fixes redisplay of the current line
12379 when stepping through the code with "next" or "step".
12380
ab42892f
EZ
123812019-03-16 Eli Zaretskii <eliz@gnu.org>
12382
12383 * source-cache.c (source_cache::get_source_lines): Call
12384 find_source_lines to initialize s->nlines. This fixes vertical
12385 scrolling of TUI source window when the DOWN arrow is pressed.
12386
8d8c087f
PW
123872019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12388
12389 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12390 linux-thread-db.c (_initialize_thread_db): Likewise.
12391
798e1c30
EZ
123922019-03-16 Eli Zaretskii <eliz@gnu.org>
12393
12394 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12395 wclrtoeol in tui_show_source_line". This reverts changes made in
12396 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12397
eefba3da
TT
123982019-03-15 Tom Tromey <tom@tromey.com>
12399
12400 * symtab.h (struct minimal_symbol): Derive from
12401 general_symbol_info.
12402 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12403 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12404 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12405 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12406 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12407 (MSYMBOL_SEARCH_NAME): Update.
12408 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12409 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12410 * minsyms.c (minimal_symbol_reader::record_full): Update.
12411
0de2420c
TT
124122019-03-15 Tom Tromey <tom@tromey.com>
12413
12414 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12415
042d75e4
TT
124162019-03-15 Tom Tromey <tom@tromey.com>
12417
12418 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12419 unique_xmalloc_ptr.
12420 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12421 Update.
12422 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12423 (build_minimal_symbol_hash_tables)
12424 (minimal_symbol_reader::install): Update.
12425
db92718b
TT
124262019-03-15 Tom Tromey <tom@tromey.com>
12427
12428 * symtab.c (create_demangled_names_hash): Update.
12429 (symbol_set_names): Update.
12430 * objfiles.h (struct objfile_per_bfd_storage)
12431 <demangled_names_hash>: Now an htab_up.
12432 * objfiles.c (objfile_per_bfd_storage): Simplify.
12433
d6797f46
TT
124342019-03-15 Tom Tromey <tom@tromey.com>
12435
12436 * objfiles.h (struct objfile_per_bfd_storage): Declare
12437 destructor.
12438 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12439 New.
12440 (get_objfile_bfd_data): Use new. Don't initialize
12441 language_of_main.
12442 (free_objfile_per_bfd_storage): Remove.
12443 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12444
741d7538
TT
124452019-03-15 Tom Tromey <tom@tromey.com>
12446
12447 * symfile.c (reread_symbols): Update.
12448 * objfiles.c (objfile::objfile): Update.
12449 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12451 comment.
12452 (minimal_symbol_reader::install): Update.
12453 (terminate_minimal_symbol_table): Remove.
12454 * jit.c (jit_object_close_impl): Update.
12455
788c80d1
TT
124562019-03-15 Tom Tromey <tom@tromey.com>
12457
12458 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12459 initializations.
12460
1b7a07cb
TT
124612019-03-15 Tom Tromey <tom@tromey.com>
12462
12463 * objfiles.h (struct objfile_per_bfd_storage)
12464 <demangled_hash_languages>: Now a bitset.
12465 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12466 (lookup_minimal_symbol): Update.
12467
3db066bc
TT
124682019-03-15 Tom Tromey <tom@tromey.com>
12469
12470 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12471 Don't return the symbol.
12472 * coffread.c (record_minimal_symbol): Use record_full.
12473
3fff2c37
EZ
124742019-03-14 Eli Zaretskii <eliz@gnu.org>
12475
12476 The MS-Windows port of ncurses fails to switch to a color pair if
12477 one or both of the colors are the implicit default colors. This
12478 change records the default colors when TUI is initialized, and
12479 then specifies them explicitly when a color pair uses the default
12480 colors. This allows color styling in TUI mode on MS-Windows.
12481
12482 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12483 ncurses_norm_attr.
12484 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12485 colors in ncurses_norm_attr.
12486 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12487 "none", replace it with the default color recorded in
12488 ncurses_norm_attr.
12489
3b336828
TT
124902019-03-14 Tom Tromey <tromey@adacore.com>
12491
12492 * source-cache.h (class source_cache) <get_source_lines>: Return
12493 std::string.
12494 * source-cache.c (source_cache::extract_lines): Handle case where
12495 first_pos==npos. Return std::string.
12496 (source_cache::get_source_lines): Update.
12497
d085f989
TT
124982019-03-14 Tom Tromey <tromey@adacore.com>
12499
12500 * NEWS: Add item for "style sources" commands.
12501 * source-cache.c (source_cache::get_source_lines): Check
12502 source_styling.
12503 * cli/cli-style.c (source_styling): New global.
12504 (_initialize_cli_style): Add "style sources" commands.
12505 (show_style_sources): New function.
12506 * cli/cli-style.h (source_styling): Declare.
12507
6f11e682
TT
125082019-03-14 Pedro Alves <palves@redhat.com>
12509 Tom Tromey <tromey@adacore.com>
12510
12511 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12512 * tui/tui-winsource.c (tui_refill_source_window): New function,
12513 from...
12514 (tui_horizontal_source_scroll): ... here. Move some logic.
12515 * cli/cli-style.c (set_style_enabled): Notify new observable.
12516 * tui/tui-hooks.c (tui_redisplay_source): New function.
12517 (tui_attach_detach_observers): Attach or detach
12518 tui_redisplay_source.
12519 * observable.h (source_styling_changed): New observable.
12520 * observable.c: Define source_styling_changed observable.
12521
a068643d
TT
125222019-03-13 Tom Tromey <tromey@adacore.com>
12523
12524 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12525 (i386_gnu_nat_target::store_registers): Update.
12526 * target-debug.h (target_debug_print_std_string): New macro.
12527 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12528 * windows-tdep.c (display_one_tib): Update.
12529 * tui/tui-stack.c (tui_make_status_line): Update.
12530 * top.c (print_inferior_quit_action): Update.
12531 * thread.c (thr_try_catch_cmd): Update.
12532 (add_thread_with_info): Update.
12533 (thread_target_id_str): Update.
12534 (thr_try_catch_cmd): Update.
12535 (thread_command): Update.
12536 (thread_find_command): Update.
12537 * record-btrace.c (record_btrace_target::info_record)
12538 (record_btrace_resume_thread, record_btrace_target::resume)
12539 (record_btrace_cancel_resume, record_btrace_step_thread)
12540 (record_btrace_target::wait, record_btrace_target::wait)
12541 (record_btrace_target::wait, record_btrace_target::stop): Update.
12542 * progspace.c (print_program_space): Update.
12543 * process-stratum-target.c
12544 (process_stratum_target::thread_address_space): Update.
12545 * linux-fork.c (linux_fork_mourn_inferior)
12546 (detach_checkpoint_command, info_checkpoints_command)
12547 (linux_fork_context): Update.
12548 (linux_fork_detach): Update.
12549 (class scoped_switch_fork_info): Update.
12550 (delete_checkpoint_command): Update.
12551 * infrun.c (follow_fork_inferior): Update.
12552 (follow_fork_inferior): Update.
12553 (proceed_after_vfork_done): Update.
12554 (handle_vfork_child_exec_or_exit): Update.
12555 (follow_exec): Update.
12556 (displaced_step_prepare_throw): Update.
12557 (displaced_step_restore): Update.
12558 (start_step_over): Update.
12559 (resume_1): Update.
12560 (clear_proceed_status_thread): Update.
12561 (proceed): Update.
12562 (print_target_wait_results): Update.
12563 (do_target_wait): Update.
12564 (context_switch): Update.
12565 (stop_all_threads): Update.
12566 (restart_threads): Update.
12567 (finish_step_over): Update.
12568 (handle_signal_stop): Update.
12569 (switch_back_to_stepped_thread): Update.
12570 (keep_going_pass_signal): Update.
12571 (print_exited_reason): Update.
12572 (normal_stop): Update.
12573 * inferior.c (inferior_pid_to_str): Change return type.
12574 (print_selected_inferior): Update.
12575 (add_inferior): Update.
12576 (detach_inferior): Update.
12577 * dummy-frame.c (fprint_dummy_frames): Update.
12578 * dcache.c (dcache_info_1): Update.
12579 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12580 (btrace_fetch, btrace_clear): Update.
12581 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12582 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12583 type.
12584 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12585 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12586 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12587 * gdbarch.c, gdbarch.h: Rebuild.
12588 * gdbarch.sh (core_pid_to_str): Change return type.
12589 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12590 return type.
12591 (windows_nat_target::pid_to_str): Change return type.
12592 (windows_delete_thread): Update.
12593 (windows_nat_target::attach): Update.
12594 (windows_nat_target::files_info): Update.
12595 * target-delegates.c: Rebuild.
12596 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12597 return type.
12598 (sol_thread_target::pid_to_str): Change return type.
12599 * remote.c (class remote_target) <pid_to_str>: Change return
12600 type.
12601 (remote_target::pid_to_str): Change return type.
12602 (extended_remote_target::attach, remote_target::remote_stop_ns)
12603 (remote_target::remote_notif_remove_queued_reply)
12604 (remote_target::push_stop_reply, remote_target::disable_btrace):
12605 Update.
12606 (extended_remote_target::attach): Update.
12607 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12608 type.
12609 (gdbsim_target::pid_to_str): Change return type.
12610 * ravenscar-thread.c (struct ravenscar_thread_target)
12611 <pid_to_str>: Change return type.
12612 (ravenscar_thread_target::pid_to_str): Change return type.
12613 * procfs.c (class procfs_target) <pid_to_str>: Change return
12614 type.
12615 (procfs_target::pid_to_str): Change return type.
12616 (procfs_target::attach): Update.
12617 (procfs_target::detach): Update.
12618 (procfs_target::fetch_registers): Update.
12619 (procfs_target::store_registers): Update.
12620 (procfs_target::wait): Update.
12621 (procfs_target::files_info): Update.
12622 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12623 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12624 return type.
12625 (nto_procfs_target::pid_to_str): Change return type.
12626 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12627 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12628 return type.
12629 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12630 (exit_lwp): Update.
12631 (attach_proc_task_lwp_callback, get_detach_signal)
12632 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12633 (linux_nat_target::resume, wait_lwp, stop_callback)
12634 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12635 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12636 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12637 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12638 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12639 type.
12640 (inf_ptrace_target::attach): Update.
12641 (inf_ptrace_target::files_info): Update.
12642 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12643 type.
12644 (go32_nat_target::pid_to_str): Change return type.
12645 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12646 (gnu_nat_target::wait): Update.
12647 (gnu_nat_target::wait): Update.
12648 (gnu_nat_target::resume): Update.
12649 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12650 (fbsd_nat_target::wait): Update.
12651 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12652 type.
12653 (darwin_nat_target::attach): Update.
12654 * corelow.c (class core_target) <pid_to_str>: Change return type.
12655 (core_target::pid_to_str): Change return type.
12656 * target.c (normal_pid_to_str): Change return type.
12657 (default_pid_to_str): Likewise.
12658 (target_pid_to_str): Change return type.
12659 (target_translate_tls_address): Update.
12660 (target_announce_detach): Update.
12661 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12662 return type.
12663 (bsd_uthread_target::pid_to_str): Change return type.
12664 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12665 type.
12666 (bsd_kvm_target::pid_to_str): Change return type.
12667 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12668 return type.
12669 (aix_thread_target::pid_to_str): Change return type.
12670 * target.h (struct target_ops) <pid_to_str>: Change return type.
12671 (target_pid_to_str, normal_pid_to_str): Likewise.
12672 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12673 type.
12674 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12675 type.
12676 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12677 return type.
12678 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12679 type.
12680 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12681 type.
12682 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12683 return type.
12684
b4be1b06
SM
126852019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12686
12687 * NEWS: Mention that the new default MI version is 3. Mention
12688 changes to the output of commands and events that deal with
12689 multi-location breakpoints.
12690 * breakpoint.c: Include "mi/mi-out.h".
12691 (print_one_breakpoint): Change output syntax if using MI version
12692 >= 3.
12693 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12694 New.
12695 (mi_multi_location_breakpoint_output_fixed): New.
12696 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12697 (mi_cmd_fix_multi_location_breakpoint_output): New.
12698 (mi_multi_location_breakpoint_output_fixed): New.
12699 * mi/mi-cmds.c (mi_cmds): Register command
12700 -fix-multi-location-breakpoint-output.
12701 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12702 interpreter "mi".
12703
8e5e5494
SM
127042019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12705
12706 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12707 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12708 instantiate mi_ui_out based on interpreter name.
12709 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12710 * mi/mi-main.c (mi_load_progress): Likewise.
12711
197df35e
JB
127122019-03-12 John Baldwin <jhb@FreeBSD.org>
12713
12714 * NEWS: Combine separate "New targets" sections for 8.3.
12715
8399425f
JB
127162019-03-12 John Baldwin <jhb@FreeBSD.org>
12717
12718 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12719 (ppcfbsd_init_abi): Install gdbarch
12720 "fetch_tls_load_module_address" and "get_thread_local_address"
12721 methods.
12722
b0f87ed0
JB
127232019-03-12 John Baldwin <jhb@FreeBSD.org>
12724
12725 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12726 (riscv_fbsd_init_abi): Install gdbarch
12727 "fetch_tls_load_module_address" and "get_thread_local_address"
12728 methods.
12729
ce25aa57
JB
127302019-03-12 John Baldwin <jhb@FreeBSD.org>
12731
12732 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12733 (i386fbsd_init_abi): Install gdbarch
12734 "fetch_tls_load_module_address" and "get_thread_local_address"
12735 methods.
12736
f5424cfa
JB
127372019-03-12 John Baldwin <jhb@FreeBSD.org>
12738
12739 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12740 (amd64fbsd_init_abi): Install gdbarch
12741 "fetch_tls_load_module_address" and "get_thread_local_address"
12742 methods.
12743
945f3901
JB
127442019-03-12 John Baldwin <jhb@FreeBSD.org>
12745
12746 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12747 (struct fbsd_pspace_data): New type.
12748 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12749 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12750 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12751 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12752 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12753
ef0bd204
JB
127542019-03-12 John Baldwin <jhb@FreeBSD.org>
12755
12756 * gdbtypes.c (lookup_struct_elt): New function.
12757 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12758 * gdbtypes.h (struct struct_elt): New type.
12759 (lookup_struct_elt): New prototype.
12760
36c53a02
JB
127612019-03-12 John Baldwin <jhb@FreeBSD.org>
12762
12763 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12764 remove disabled code block.
12765
6e056c81
JB
127662019-03-12 John Baldwin <jhb@FreeBSD.org>
12767
12768 * gdbarch.sh (get_thread_local_address): New method.
12769 * gdbarch.h, gdbarch.c: Regenerate.
12770 * target.c (target_translate_tls_address): Use
12771 gdbarch_get_thread_local_address if present instead of
12772 target::get_thread_local_address.
12773
cd250a18
JB
127742019-03-12 John Baldwin <jhb@FreeBSD.org>
12775
12776 * target.h (target::get_thread_local_address): Update comment.
12777
df22c1e5
JB
127782019-03-12 John Baldwin <jhb@FreeBSD.org>
12779
12780 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12781 objfile->separate_debug_objfile_backlink if not NULL.
12782
dd6876c9
JB
127832019-03-12 John Baldwin <jhb@FreeBSD.org>
12784
12785 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12786 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12787 (amd64bsd_store_inferior_registers): Likewise.
12788 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12789 Enable segment base registers.
12790 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12791 PT_GETFSBASE and PT_GETGSBASE.
12792 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12793 PT_SETGSBASE.
12794 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12795 segment base registers.
12796 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12797
1163a4b7
JB
127982019-03-12 John Baldwin <jhb@FreeBSD.org>
12799
12800 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12801 Update calls to i386_target_description to add 'segments'
12802 parameter.
12803 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12804 add segment base registers.
12805 * arch/i386.c (i386_create_target_description): Add 'segments'
12806 parameter to enable segment base registers.
12807 * arch/i386.h (i386_create_target_description): Likewise.
12808 * features/i386/32bit-segments.xml: New file.
12809 * features/i386/32bit-segments.c: Generate.
12810 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12811 call to i386_target_description to add 'segments' parameter.
12812 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12813 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12814 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12815 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12816 if feature is present.
12817 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12818 Add 'segments' parameter to call to i386_target_description.
12819 (i386_target_description): Add 'segments' parameter to enable
12820 segment base registers.
12821 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12822 to call to i386_target_description.
12823 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12824 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12825 Define I386_NUM_REGS.
12826 (i386_target_description): Add 'segments' parameter to enable
12827 segment base registers.
12828
3a350822
EZ
128292019-03-12 Eli Zaretskii <eliz@gnu.org>
12830
12831 PR/24325
12832 * source-cache.c: #undef open and close, to avoid unresolved
12833 externals during linking.
12834
ffdd69cf
TT
128352019-03-12 Tom Tromey <tromey@adacore.com>
12836
12837 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12838 const. Add initializers.
12839 (_initialize_remote): Don't initialize ptid globals.
12840
ec148c57
PA
128412019-03-12 Pedro Alves <palves@redhat.com>
12842
12843 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12844
32764270
PA
128452019-03-12 Pedro Alves <palves@redhat.com>
12846
12847 * cp-name-parser.y (main): Remove unused 'len' variable.
12848
17547186
TT
128492019-03-12 Tom Tromey <tromey@adacore.com>
12850
12851 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12852 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12853
d3a70e03
TT
128542019-03-12 Tom Tromey <tromey@adacore.com>
12855
12856 * linux-nat.c (iterate_over_lwps): Update.
12857 (stop_callback): Remove parameter.
12858 (stop_wait_callback, detach_callback, resume_set_callback)
12859 (select_singlestep_lwp_callback, set_ignore_sigint)
12860 (status_callback, resumed_callback, resume_clear_callback)
12861 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12862 data parameter.
12863 (linux_nat_target::detach, linux_nat_target::resume)
12864 (linux_stop_and_wait_all_lwps, select_event_lwp)
12865 (linux_nat_filter_event, linux_nat_wait_1)
12866 (linux_nat_target::kill, linux_nat_target::stop)
12867 (linux_nat_target::stop): Update.
12868 (linux_nat_resume_callback): Change type.
12869 (resume_stopped_resumed_lwps, count_events_callback)
12870 (select_event_lwp_callback): Likewise.
12871 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12872 * arm-linux-nat.c (struct update_registers_data): Remove.
12873 (update_registers_callback): Change type.
12874 (arm_linux_insert_hw_breakpoint1): Update.
12875 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12876 parameter.
12877 (x86_linux_dr_set_addr): Update.
12878 (x86_linux_dr_set_control): Update.
12879 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12880 (iterate_over_lwps): Use gdb::function_view.
12881 * nat/aarch64-linux-hw-point.c (struct
12882 aarch64_dr_update_callback_param): Remove.
12883 (debug_reg_change_callback): Change type.
12884 (aarch64_notify_debug_reg_change): Update.
12885 * s390-linux-nat.c (s390_refresh_per_info): Update.
12886
82cb27ff
TT
128872019-03-11 Tom Tromey <tromey@adacore.com>
12888
12889 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12890 redundant assignment to "this_cu".
12891
568c0683
SM
128922019-03-08 Simon Marchi <simon.marchi@efficios.com>
12893
12894 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12895
f09ce22d
SM
128962019-03-08 Simon Marchi <simon.marchi@efficios.com>
12897
12898 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12899 from...
12900 (rank_one_type): ... this.
12901
595f96a9
SM
129022019-03-08 Simon Marchi <simon.marchi@efficios.com>
12903
12904 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12905 from...
12906 (rank_one_type): ... this.
12907
2598a94b
SM
129082019-03-08 Simon Marchi <simon.marchi@efficios.com>
12909
12910 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12911 from...
12912 (rank_one_type): ... this.
12913
7f17b20d
SM
129142019-03-08 Simon Marchi <simon.marchi@efficios.com>
12915
12916 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12917 from...
12918 (rank_one_type): ... this.
12919
2c509035
SM
129202019-03-08 Simon Marchi <simon.marchi@efficios.com>
12921
12922 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12923 from...
12924 (rank_one_type): ... this.
12925
0dd322dc
SM
129262019-03-08 Simon Marchi <simon.marchi@efficios.com>
12927
12928 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12929 from...
12930 (rank_one_type): ... this.
12931
41ea4728
SM
129322019-03-08 Simon Marchi <simon.marchi@efficios.com>
12933
12934 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12935 from...
12936 (rank_one_type): ... this.
12937
793cd1d2
SM
129382019-03-08 Simon Marchi <simon.marchi@efficios.com>
12939
12940 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12941 from...
12942 (rank_one_type): ... this.
12943
34910087
SM
129442019-03-08 Simon Marchi <simon.marchi@efficios.com>
12945
12946 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12947 from...
12948 (rank_one_type): ... this.
12949
f1f832d6
SM
129502019-03-08 Simon Marchi <simon.marchi@efficios.com>
12951
12952 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12953 from...
12954 (rank_one_type): ... this.
12955
b9f4512f
SM
129562019-03-08 Simon Marchi <simon.marchi@efficios.com>
12957
12958 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12959 from...
12960 (rank_one_type): ... this.
12961
9293fc63
SM
129622019-03-08 Simon Marchi <simon.marchi@efficios.com>
12963
12964 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12965 from...
12966 (rank_one_type): ... this.
12967
e3abbe7e
PW
129682019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12969
12970 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12971 inferior-events' shows the example events.
12972
e4adb939
EZ
129732019-03-08 Eli Zaretskii <eliz@gnu.org>
12974
12975 Support styling on native MS-Windows console
12976
12977 PR/24315
12978 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12979 on MS-Windows if $TERM is not defined.
12980
12981 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12982
12983 * posix-hdep.c (gdb_console_fputs):
12984 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12985 functions.
12986 * ui-file.h (gdb_console_fputs): Add prototype.
12987
12988 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12989 back to fputs only if the former returns zero.
12990
25629dfd
TT
129912019-03-07 Tom Tromey <tom@tromey.com>
12992
12993 * symmisc.c (print_symbol_bcache_statistics): Update.
12994 (print_objfile_statistics): Update.
12995 * symfile.c (allocate_symtab): Update.
12996 * stabsread.c: Don't include bcache.h.
12997 * psymtab.h (struct psymbol_bcache): Don't declare.
12998 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12999 (psymbol_bcache_init, psymbol_bcache_free)
13000 (psymbol_bcache_get_bcache): Don't declare.
13001 * psymtab.c (struct psymbol_bcache): Remove.
13002 (psymtab_storage::psymtab_storage): Update.
13003 (psymtab_storage::~psymtab_storage): Update.
13004 (psymbol_bcache_init, psymbol_bcache_free)
13005 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13006 (add_psymbol_to_bcache): Update.
13007 (allocate_psymtab): Update.
13008 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13009 macro_cache>: No longer pointers.
13010 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13011 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13012 * macrotab.c (macro_bcache): Update.
13013 * macroexp.c: Don't include bcache.h.
13014 * gdbtypes.c (check_types_worklist): Update.
13015 (types_deeply_equal): Remove TRY/CATCH. Update.
13016 * elfread.c (elf_symtab_read): Update.
13017 * dwarf2read.c: Don't include bcache.h.
13018 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13019 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13020 (print_bcache_statistics, bcache_memory_used): Don't declare.
13021 (struct bcache): Move from bcache.c. Add constructor, destructor,
13022 methods. Rename all data members.
13023 * bcache.c (struct bcache): Move to bcache.h.
13024 (bcache::expand_hash_table): Rename from expand_hash_table.
13025 (bcache): Remove.
13026 (bcache::insert): Rename from bcache_full.
13027 (bcache::compare): Rename from bcache_compare.
13028 (bcache_xmalloc): Remove.
13029 (bcache::~bcache): Rename from bcache_xfree.
13030 (bcache::print_statistics): Rename from print_bcache_statistics.
13031 (bcache::memory_used): Rename from bcache_memory_used.
13032
fe726667
PA
130332019-03-07 Pedro Alves <palves@redhat.com>
13034
13035 * infrun.c (normal_stop): Also check for
13036 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13037
7584bb30
AB
130382019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13039
13040 * f-lang.c (value_from_host_double): Moved to...
13041 * value.c (value_from_host_double): ...here.
13042 * value.h (value_from_host_double): Declare.
13043 * guile/scm-math.c (vlscm_convert_typed_number): Use
13044 value_from_host_double.
13045 (vlscm_convert_number): Likewise.
13046 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13047 * python/py-value.c (convert_value_from_python): Likewise.
13048
a7b1986e
TT
130492019-03-06 Tom Tromey <tom@tromey.com>
13050
13051 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13052
0ccf4211
TT
130532019-03-06 Tom Tromey <tom@tromey.com>
13054
13055 * utils.h (free_current_contents): Don't declare.
13056 * utils.c (free_current_contents): Remove.
13057
fe7b42e5
TT
130582019-03-06 Tom Tromey <tom@tromey.com>
13059
13060 * top.c (quit_force): Update.
13061 * main.c (captured_command_loop): Update.
13062 * common/new-op.c (operator new): Update.
13063 * common/common-exceptions.c (struct catcher)
13064 <save_cleanup_chain>: Remove member.
13065 (exceptions_state_mc_init): Update.
13066 (exception_try_scope_entry): Return nullptr.
13067 (exception_try_scope_exit, exception_rethrow)
13068 (throw_exception_sjlj, throw_exception_cxx): Update.
13069 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13070 (all_cleanups, do_cleanups, discard_cleanups)
13071 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13072 (restore_cleanups, restore_final_cleanups): Don't declare.
13073 (do_final_cleanups): Remove parameter.
13074 * common/cleanups.c (cleanup_chain, make_cleanup)
13075 (make_cleanup_dtor, all_cleanups, do_cleanups)
13076 (discard_my_cleanups, discard_cleanups)
13077 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13078 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13079 (null_cleanup): Remove.
13080 (do_final_cleanups): Remove parameter.
13081
c6321f19
TT
130822019-03-06 Tom Tromey <tom@tromey.com>
13083
13084 * remote.c (remote_target::remote_parse_stop_reply): Use
13085 unique_xmalloc_ptr.
13086
61b30099
TT
130872019-03-06 Tom Tromey <tom@tromey.com>
13088
13089 * stabsread.c (struct stabs_field_info): Rename from field_info.
13090 <list, fnlist>: Add initializers.
13091 <obstack>: New member.
13092 (read_member_functions, read_struct_fields, read_baseclasses):
13093 Allocate on obstack. Don't use cleanups.
13094 (read_one_struct_field, read_member_functions, read_struct_fields)
13095 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13096 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13097 (read_struct_type): Update.
13098
6cceac94
TT
130992019-03-06 Tom Tromey <tom@tromey.com>
13100
13101 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13102 * common/filestuff.h (make_cleanup_close): Don't declare.
13103 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13104 Remove.
13105
72412762
TT
131062019-03-06 Tom Tromey <tom@tromey.com>
13107
13108 * solib-aix.c: Use make_scope_exit.
13109
2b6ff1c0
TT
131102019-03-06 Tom Tromey <tom@tromey.com>
13111
13112 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13113 Use make_scope_exit.
13114
d01c5877
TT
131152019-03-06 Tom Tromey <tom@tromey.com>
13116
13117 * solib-svr4.c (disable_probes_interface): Remove parameter.
13118 (svr4_handle_solib_event): Use make_scope_exit.
13119
32603266
TT
131202019-03-06 Tom Tromey <tom@tromey.com>
13121
13122 * remote.c (struct stop_reply_deleter): Remove.
13123 (stop_reply_up): Update.
13124 (struct stop_reply): Derive from notif_event. Don't typedef.
13125 <regcache>: Now a std::vector.
13126 (stop_reply_xfree): Remove.
13127 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13128 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13129 (remote_target::discard_pending_stop_replies): Use delete.
13130 (remote_target::remote_parse_stop_reply): Update.
13131 (remote_target::process_stop_reply): Update.
13132 * remote-notif.h (struct notif_event): Add virtual destructor.
13133 Remove "dtr" member.
13134 (struct notif_client) <alloc_event>: Return a unique_ptr.
13135 (notif_event_xfree): Don't declare.
13136 (notif_event_up): New typedef.
13137 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13138 (notif_event_xfree, do_notif_event_xfree): Remove.
13139 (remote_notif_state_xfree): Update.
13140
9799571e
TT
131412019-03-06 Tom Tromey <tom@tromey.com>
13142
13143 * infrun.c (displaced_step_clear_cleanup): Now a
13144 forward_scope_exit type.
13145 (displaced_step_prepare_throw): Update.
13146 (displaced_step_fixup): Update.
13147
09e3c4ca
TT
131482019-03-06 Tom Tromey <tom@tromey.com>
13149
13150 * inferior.h (class inferior): Update comment.
13151 * gdbthread.h (class thread_info): Update comment.
13152
e2a03548
TT
131532019-03-06 Joel Brobecker <brobecker@adacore.com>
13154 Tom Tromey <tom@tromey.com>
13155
13156 * stabsread.h (struct stab_section_list): Remove.
13157 (coffstab_build_psymtabs): Update.
13158 * dbxread.c (symbuf_sections): Now a std::vector.
13159 (sect_idx): New global.
13160 (fill_symbuf): Update.
13161 (coffstab_build_psymtabs): Change type of stabsects parameter.
13162 Update.
13163 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13164 std::vector.
13165 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13166 (coff_locate_sections): Update.
13167 (coff_symfile_read): Remove cleanups. Update.
13168 (init_stringtab): Add storage parameter.
13169 (free_stringtab, free_stringtab_cleanup): Remove.
13170 (init_lineno): Add storage parameter.
13171 (free_linetab, free_linetab_cleanup): Remove.
13172
b7e60d85
PA
131732019-03-06 Pedro Alves <palves@redhat.com>
13174
13175 * linux-fork.c (fork_info::clobber_regs): Delete.
13176 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13177 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13178 comment. Adjust.
13179 (scoped_switch_fork_info::scoped_switch_fork_info)
13180 (checkpoint_command, linux_fork_context): Adjust
13181 fork_save_infrun_state calls.
13182
e52c971f
PA
131832019-03-06 Pedro Alves <palves@redhat.com>
13184
13185 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13186 (inf_has_multiple_threads): Return 'bool' and rewrite using
13187 inferior_info::threads().
13188
06974e6c
PA
131892019-03-06 Pedro Alves <palves@redhat.com>
13190
13191 * linux-fork.c: Include <list>.
13192 (fork_list): Now a std::list instance.
13193 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13194 (forks_exist_p, find_last_fork): Adjust.
13195 (new_fork): Delete.
13196 (one_fork_p): New.
13197 (add_fork): Adjust.
13198 (free_fork): Delete, folded into fork_info::~fork_info().
13199 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13200 Adjust.
13201 (init_fork_list): Delete.
13202 (linux_fork_killall, linux_fork_mourn_inferior)
13203 (linux_fork_detach, info_checkpoints_command): Adjust.
13204 (_initialize_linux_fork): No longer call init_fork_list.
13205
72f31aea
PA
132062019-03-06 Pedro Alves <palves@redhat.com>
13207
13208 * linux-fork.c (new_fork): New, split out of ...
13209 (add_fork): ... this. Return void. Move "first fork" special
13210 case from here, to ...
13211 (checkpoint_command): ... here.
13212 * linux-linux.h (add_fork): Return void.
13213
efbecbc1
AB
132142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13215
13216 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13217
0841c79a
AB
132182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13219 Chris January <chris.january@arm.com>
13220 David Lecomber <david.lecomber@arm.com>
13221
13222 * f-exp.y: New token, UNOP_INTRINSIC.
13223 (exp): New pattern using UNOP_INTRINSIC token.
13224 (f77_keywords): Add 'abs' keyword.
13225 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13226 (value_from_host_double): New function.
13227 (evaluate_subexp_f): Support UNOP_ABS.
13228
4a270568
AB
132292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13230
13231 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13232 types.
13233
067630bd
AB
132342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13235
13236 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13237 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13238 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13239
3be47f7a
AB
132402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13241
13242 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13243
4d00f5d8
AB
132442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13245 Chris January <chris.january@arm.com>
13246
13247 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13248 * f-exp.y: Define 'KIND' token.
13249 (exp): New pattern for KIND expressions.
13250 (ptype): Handle types with a kind extension.
13251 (direct_abs_decl): Extend to spot kind extensions.
13252 (f77_keywords): Add 'kind' to the list.
13253 (push_kind_type): New function.
13254 (convert_to_kind_type): New function.
13255 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13256 * parse.c (operator_length_standard): Likewise.
13257 * parser-defs.h (enum type_pieces): Add tp_kind.
13258 * std-operator.def: Add UNOP_KIND.
13259
e454224f
AB
132602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13261
13262 * f-exp.y (f_parse): Set yydebug.
13263
9dad4a58
AB
132642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13265
13266 * f-lang.c (evaluate_subexp_f): New function.
13267 (exp_descriptor_f): New global.
13268 (f_language_defn): Use exp_descriptor_f instead of
13269 exp_descriptor_standard.
13270
c8f91604
AB
132712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13272
13273 * f-exp.y (struct token): Add comments.
13274 (dot_ops): Remove uppercase versions and the end marker.
13275 (f77_keywords): Likewise.
13276 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13277 entries in the dot_ops array are case insensitive, and use
13278 strncasecmp to compare strings. Also some whitespace cleanup in
13279 this area. Similar for the f77_keywords array, except entries in
13280 this list might be case sensitive.
13281
dd9f2c76
AB
132822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13283
13284 * f-exp.y (struct f77_boolean_val): Add comments.
13285 (boolean_values): Remove uppercase versions, and end marker.
13286 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13287 and use strncasecmp to achieve case insensitivity. Additionally,
13288 perform whitespace cleanup around this code.
13289
67a3048c
TT
132902019-03-06 Tom Tromey <tromey@adacore.com>
13291
13292 * remote-sim.c (gdbsim_target_open): Use result of
13293 gdb_argv::release.
13294
aa3cfbda
RB
132952019-03-06 Richard Bunt <richard.bunt@arm.com>
13296 Dirk Schubert <dirk.schubert@arm.com>
13297 Chris January <chris.january@arm.com>
13298
13299 * eval.c (evaluate_subexp_standard): Call Fortran argument
13300 wrapping logic.
13301 * f-lang.c (struct value): A value which can be passed into a
13302 Fortran function call.
13303 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13304 where appropriate.
13305 (struct type): Value ready for a Fortran function call.
13306 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13307 is needed.
13308 * f-lang.h (fortran_argument_convert): Declaration.
13309 (fortran_preserve_arg_pointer): Declaration.
13310 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13311
ea38e5df
TT
133122019-03-05 Tom Tromey <tromey@adacore.com>
13313
13314 * python/py-prettyprint.c (print_string_repr): Remove #if.
13315 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13316
06b5b831
TT
133172019-03-05 Tom Tromey <tromey@adacore.com>
13318
13319 * target.c (the_dummy_target): Move later. Change type to
13320 "dummy_target".
13321 (initialize_targets): Don't initialize the_dummy_target.
13322
edbd9e45
TT
133232019-03-05 Tom Tromey <tromey@adacore.com>
13324
13325 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13326 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13327
c119e040
TT
133282019-03-05 Tom Tromey <tromey@adacore.com>
13329
13330 * windows-nat.c (windows_nat_target::attach)
13331 (windows_nat_target::detach): Don't call gdb_flush.
13332 * valprint.c (generic_val_print, val_print, val_print_string):
13333 Don't call gdb_flush.
13334 * utils.c (defaulted_query): Don't call gdb_flush.
13335 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13336 * target.c (target_announce_detach): Don't call gdb_flush.
13337 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13338 * remote.c (extended_remote_target::attach): Don't call
13339 gdb_flush.
13340 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13341 * printcmd.c (do_examine): Don't call gdb_flush.
13342 (info_display_command): Don't call gdb_flush.
13343 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13344 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13345 * memattr.c (info_mem_command): Don't call gdb_flush.
13346 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13347 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13348 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13349 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13350 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13351 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13352 (gnu_nat_target::detach): Don't call gdb_flush.
13353 * f-valprint.c (f_val_print): Don't call gdb_flush.
13354 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13355 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13356 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13357 gdb_flush.
13358 * c-valprint.c (c_val_print): Don't call gdb_flush.
13359 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13360
895dafa6
TT
133612019-03-05 Tom Tromey <tromey@adacore.com>
13362
13363 * varobj.c (update_dynamic_varobj_children): Update.
13364 (install_default_visualizer): Use reset, not release.
13365 * value.c (set_internalvar): Update.
13366 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13367 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13368 ATTRIBUTE_UNUSED_RESULT.
13369
88a774b9
TT
133702019-03-05 Tom Tromey <tromey@adacore.com>
13371
13372 * remote.c (class scoped_remote_fd) <release>: Add
13373 ATTRIBUTE_UNUSED_RESULT.
13374
4e4a8b93
TT
133752019-03-05 Tom Tromey <tromey@adacore.com>
13376
13377 * macroexp.c (struct macro_buffer) <release>: Add
13378 ATTRIBUTE_UNUSED_RESULT.
13379
083eef1f
TT
133802019-03-05 Tom Tromey <tromey@adacore.com>
13381
13382 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13383 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13384 ATTRIBUTE_UNUSED_RESULT.
13385
3cabd438
TT
133862019-03-05 Tom Tromey <tromey@adacore.com>
13387
13388 * common/scoped_fd.h (class scoped_fd) <release>: Add
13389 ATTRIBUTE_UNUSED_RESULT.
13390
41e3300a
TT
133912019-03-05 Tom Tromey <tromey@adacore.com>
13392
13393 * parser-defs.h (struct parser_state) <release>: Add
13394 ATTRIBUTE_UNUSED_RESULT.
13395
18cb7c9f
TT
133962019-03-05 Tom Tromey <tromey@adacore.com>
13397
13398 * utils.h (class gdb_argv) <release>: Add
13399 ATTRIBUTE_UNUSED_RESULT.
13400 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13401
41fa577f
EZ
134022019-03-02 Eli Zaretskii <eliz@gnu.org>
13403
a6a4b2c6
EZ
13404 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13405 for-loop range, to avoid compiler warnings.
13406
13407 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13408 avoid compiler warnings about unused variables.
13409
742a7df5
EZ
13410 * NEWS: Mention end of support for native debugging on MS-Windows
13411 before XP.
13412
41fa577f
EZ
13413 PR gdb/24292
13414 * common/netstuff.c:
13415 * gdbserver/gdbreplay.c
13416 * gdbserver/remote-utils.c:
13417 * ser-tcp.c:
13418 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13419 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13420 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13421 'getaddrinfo' and 'freeaddrinfo' were not available before
13422 Windows XP, and mingw.org's MinGW headers by default define
13423 _WIN32_WINNT to 0x500.
13424
827f438f
GB
134252019-03-01 Gary Benson <gbenson@redhat.com>
13426
13427 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13428
92137da0
RO
134292019-02-28 Brian Vandenberg <phantall@gmail.com>
13430 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13431
13432 PR gdb/8527
13433 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13434 set_sigint_trap, clear_sigint_trap.
13435
799efbe8
PW
134362019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13437
13438 * target.c (target_detach): Clear the regcache and the
13439 frame cache.
13440
8ed25214
PA
134412019-02-27 Pedro Alves <palves@redhat.com>
13442
13443 * utils.c (set_screen_size): When we cap the height/width sizes,
13444 tweak the corresponding command variable to show "unlimited":
13445
23031e31
SJ
134462019-02-27 Saagar Jha <saagar@saagarjha.com>
13447 Pedro Alves <palves@redhat.com>
13448
13449 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13450 before calling rl_set_screen_size.
13451
6c28e44a
TT
134522019-02-27 Tom Tromey <tromey@adacore.com>
13453
13454 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13455 define.
13456 * python/py-value.c: Remove Python 2.4 workaround.
13457 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13458 workaround.
13459 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13460 Python 2.4 workaround.
13461 * python/python-internal.h: Remove Python 2.4 comment.
13462 (Py_ssize_t): Don't define.
13463 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13464 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13465 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13466 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13467 * python/python.c (do_start_initialization): Remove Python 2.4
13468 workaround.
13469 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13470 (print_children): Remove Python 2.4 workaround.
13471 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13472 workaround.
13473 (CHARBUFFERPROC_NAME): Remove.
13474 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13475 Python 2.4 workaround.
13476
2c3fc25d 134772019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13478
2c3fc25d
KB
13479 * NEWS: Note minimum Python version.
13480
6ca62222
KB
134812019-02-27 Kevin Buettner <kevinb@redhat.com>
13482
13483 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13484 code from these functions. Remove corresponding ifdefs. Use
13485 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13486 Remove gotos and target of gotos.
13487 (infpy_search_memory): Likewise.
13488
f4bc7d2c
AB
134892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13492 (hppa_gdbarch_init): Don't register deleted functions with
13493 gdbarch.
13494
9734a586
AB
134952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13496
13497 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13498 (h8300_unwind_sp): Delete.
13499 (h8300_dummy_id): Delete.
13500 (h8300_gdbarch_init): Don't register deleted functions with
13501 gdbarch.
13502
68b867f3
AB
135032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13504
13505 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13506 (ft32_unwind_pc): Delete.
13507 (ft32_unwind_sp): Delete.
13508 (ft32_gdbarch_init): Don't register deleted functions with
13509 gdbarch.
13510
2fbe7ad0
AB
135112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13514 (frv_unwind_pc): Delete.
13515 (frv_unwind_sp): Delete.
13516 (frv_gdbarch_init): Don't register deleted functions with
13517 gdbarch.
13518
76055cbe
AB
135192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13522 (riscv_unwind_pc): Delete.
13523 (riscv_unwind_sp): Delete.
13524 (riscv_gdbarch_init): Don't register deleted functions with
13525 gdbarch.
13526
4133e5a1
AB
135272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13528
13529 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13530 (csky_unwind_pc): Delete.
13531 (csky_unwind_sp): Delete.
13532 (csky_gdbarch_init): Don't register deleted functions with
13533 gdbarch.
13534
8010f576
AB
135352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13536
13537 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13538 (cris_unwind_pc): Delete.
13539 (cris_unwind_sp): Delete.
13540 (cris_gdbarch_init): Don't register deleted functions with
13541 gdbarch.
13542
b56bf084
AB
135432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13546 (bfin_unwind_pc): Delete.
13547 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13548
a19a650f
AB
135492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13550
13551 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13552 (arm_unwind_pc): Delete.
13553 (arm_unwind_sp): Delete.
13554 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13555
f8278c3c
AB
135562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13557
13558 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13559 (arc_unwind_pc): Delete.
13560 (arc_unwind_sp): Delete.
13561 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13562
480e46cf
AB
135632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13564
13565 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13566 (alpha_unwind_pc): Delete.
13567 (alpha_gdbarch_init): Don't register deleted functions with
13568 gdbarch.
13569
7a995095
AB
135702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13573 (aarch64_unwind_pc): Delete.
13574 (aarch64_unwind_sp): Delete.
13575 (aarch64_gdbarch_init): Don't register deleted functions with
13576 gdbarch.
13577
bf9a735e
AB
135782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13579
13580 * gdbtypes.c (type_align): Don't consider static members when
13581 computing structure alignment.
13582
5561fc30
AB
135832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13584
13585 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13586 return 0 for other types.
13587 * arch-utils.c (default_type_align): Always return 0.
13588 * gdbarch.h: Regenerate.
13589 * gdbarch.sh (type_align): Extend comment.
13590 * gdbtypes.c (type_align): Add additional comments, always call
13591 gdbarch_type_align before applying the default rules.
13592 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13593 generic code will then apply a suitable default.
13594 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13595 types, return 0 for other types.
13596
9335e75a
JB
135972019-02-27 Joel Brobecker <brobecker@adacore.com>
13598
13599 * NEWS: Create a new section for the next release branch.
13600 Rename the section of the current branch, now that it has
13601 been cut.
13602
3d34d8de
JB
136032019-02-27 Joel Brobecker <brobecker@adacore.com>
13604
13605 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13606 * version.in: Bump version to 8.3.50.DATE-git.
13607
143420fb
SM
136082019-02-26 Simon Marchi <simon.marchi@efficios.com>
13609
13610 * aix-thread.c (ptid_cmp): Remove unused variable.
13611 (get_signaled_thread): Likewise.
13612 (store_regs_user_thread): Likewise.
13613 (store_regs_kernel_thread): Likewise.
13614 (fetch_regs_kernel_thread): Remove shadowed variable.
13615
172fb711
AB
136162019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13617
13618 * features/riscv/32bit-cpu.xml: Add register numbers.
13619 * features/riscv/32bit-fpu.c: Regenerate.
13620 * features/riscv/32bit-fpu.xml: Add register numbers.
13621 * features/riscv/64bit-cpu.xml: Add register numbers.
13622 * features/riscv/64bit-fpu.c: Regenerate.
13623 * features/riscv/64bit-fpu.xml: Add register numbers.
13624
26c89782
KB
136252019-02-26 Kevin Buettner <kevinb@redhat.com>
13626
af54ade9 13627 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13628 * python/py-value.c (convert_buffer_and_type_to_value): New
13629 function.
13630 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13631 Add support for handling an optional second argument. Call
13632 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13633 * python/python-internal.h (Py_buffer_deleter): New struct.
13634 (Py_buffer_up): New typedef.
13635
0f58c9e8
JB
136362019-02-25 John Baldwin <jhb@FreeBSD.org>
13637
13638 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13639 instead of releasing ownership.
13640
0a0f4c01
JR
136412019-02-25 Jordan Rupprecht <rupprecht@google.com>
13642
13643 * dwarf2read.c (open_and_init_dwp_file): Call
13644 elf_numsections instead of bfd_count_sections to initialize
13645 dwp_file->num_sections.
13646
cd5a152c
TT
136472019-02-25 Tom Tromey <tromey@adacore.com>
13648
13649 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13650
8a6a8513
SDJ
136512019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13652
13653 * gcore.in: Add '--readnever' option when invoking GDB.
13654
04dcda9c
SM
136552019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13656
13657 * MAINTAINERS: Update my email address.
13658
07bc701d
SM
136592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13660
13661 * build-id.c (build_id_to_debug_bfd_1): New function.
13662 (build_id_to_debug_bfd): Look for separate debug file in
13663 sysroot.
13664
c6f4a5d0
AB
136652019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13666
13667 * gdbarch.sh: Update the copyright year range that is placed into
13668 generated files.
13669
9600246d
KS
136702019-02-22 Keith Seitz <keiths@redhat.com>
13671
13672 PR symtab/23853
13673 * linespec.c (create_sals_line_offset): Search for the default
13674 symtab's filename instead of its fullname.
13675
7557a514
AH
136762019-02-21 Alan Hayward <alan.hayward@arm.com>
13677
13678 * NEWS: Update style defaults.
13679
ee2bcb0c
AH
136802019-02-21 Alan Hayward <alan.hayward@arm.com>
13681
13682 * main.c (captured_main_1): Disable styling in batch mode.
13683
0c95f9ed
TT
136842019-02-20 Tom Tromey <tom@tromey.com>
13685
13686 * symtab.c (symtab_symbol_info): Fix typos.
13687
c763b894
TT
136882019-02-20 Tom Tromey <tromey@adacore.com>
13689
13690 * findcmd.c (_initialize_mem_search): Use upper case for
13691 metasyntactic variables.
13692
0ef8a082
AH
136932019-02-20 Alan Hayward <alan.hayward@arm.com>
13694
13695 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13696 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13697
6caa91b6
SM
136982019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13699
13700 * top.h (source_file_name): Change to std::string.
13701 * top.c (source_file_name): Likewise.
13702 (command_line_input): Adjust.
13703 * cli/cli-script.c (script_from_file): Adjust.
13704
98814c6c
TT
137052019-02-19 Tom Tromey <tromey@adacore.com>
13706
13707 * ravenscar-thread.c
13708 (ravenscar_thread_target::update_thread_list): Don't call
13709 ada_build_task_list.
13710 * ada-lang.h (ada_build_task_list): Don't declare.
13711 * ada-tasks.c (struct ada_tasks_inferior_data)
13712 <task_list_valid_p>: Now bool.
13713 (read_known_tasks, ada_task_list_changed)
13714 (ada_tasks_invalidate_inferior_data): Update.
13715 (read_known_tasks_array): Return bool.
13716 (read_known_tasks_list): Likewise.
13717 (read_known_tasks): Return void.
13718 (ada_build_task_list): Now static.
13719
70cd633e
AB
137202019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13721
13722 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13723 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13724
040b3e95
PW
137252019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13726
13727 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13728 variant for ada_tasks_pspace_data_handle and
13729 ada_tasks_inferior_data_handle.
13730 (ada_tasks_pspace_data_cleanup): New function.
13731 (ada_tasks_inferior_data_cleanup): New function.
13732
9409233b
TT
137332019-02-17 Tom Tromey <tom@tromey.com>
13734
13735 * macrotab.h (macro_source_fullname): Return a std::string.
13736 * macrotab.c (macro_include, check_for_redefinition)
13737 (macro_undef, macro_lookup_definition, foreach_macro)
13738 (foreach_macro_in_scope): Update.
13739 (macro_source_fullname): Return a std::string.
13740 * macrocmd.c (show_pp_source_pos): Update.
13741
6506371f
TT
137422019-02-17 Tom Tromey <tom@tromey.com>
13743
13744 * macrocmd.c (show_pp_source_pos): Style the file names.
13745
0c820d67
TT
137462019-02-17 Tom Tromey <tom@tromey.com>
13747
13748 PR tui/24197:
13749 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13750
a0087920
TT
137512019-02-17 Tom Tromey <tom@tromey.com>
13752
13753 * ada-lang.c (user_select_syms): Use filtered printing.
13754 * utils.c (wrap_style): New global.
13755 (desired_style): Remove.
13756 (emit_style_escape): Add stream parameter.
13757 (set_output_style, reset_terminal_style, prompt_for_continue):
13758 Update.
13759 (flush_wrap_buffer): Only flush gdb_stdout.
13760 (wrap_here): Set wrap_style.
13761 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13762 treat escape sequences as a character. Change when wrap buffer is
13763 flushed.
13764 (fputs_styled): Do not set the output style when the default is
13765 requested.
13766 * ui-style.h (struct ui_file_style) <is_default>: New method.
13767 * source.c (print_source_lines_base): Emit escape sequences in one
13768 piece.
13769
75ba10dc
JB
137702019-02-17 Joel Brobecker <brobecker@adacore.com>
13771
13772 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13773 integers and enumeration types.
13774
a2cd4f14
JB
137752019-02-17 Joel Brobecker <brobecker@adacore.com>
13776
13777 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13778 instead of lookup_symbol_in_language
13779 (do_exact_match): New function.
13780 (ada_get_symbol_name_matcher): Return do_exact_match when
13781 doing a verbatim match.
13782
485b851b
TT
137832019-02-15 Tom Tromey <tromey@adacore.com>
13784
13785 * ravenscar-thread.c (ravenscar_thread_target::resume)
13786 (ravenscar_thread_target::wait): Special case wildcard requests.
13787
0b790b1e
TT
137882019-02-15 Tom Tromey <tromey@adacore.com>
13789
13790 * ravenscar-thread.c (base_ptid): Remove.
13791 (struct ravenscar_thread_target) <close>: New method.
13792 <m_base_ptid>: New member.
13793 <update_inferior_ptid, active_task, task_is_currently_active,
13794 runtime_initialized>: Declare methods.
13795 <ravenscar_thread_target>: Add constructor.
13796 (ravenscar_thread_target::task_is_currently_active)
13797 (ravenscar_thread_target::update_inferior_ptid)
13798 (ravenscar_runtime_initialized): Rename. Now methods.
13799 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13800 (ravenscar_thread_target::update_thread_list): Update.
13801 (ravenscar_thread_target::active_task): Now method.
13802 (ravenscar_thread_target::store_registers)
13803 (ravenscar_thread_target::prepare_to_store)
13804 (ravenscar_thread_target::prepare_to_store)
13805 (ravenscar_thread_target::mourn_inferior): Update.
13806 (ravenscar_inferior_created): Use "new" to create target.
13807 (ravenscar_thread_target::get_ada_task_ptid): Update.
13808 (_initialize_ravenscar): Don't initialize base_ptid.
13809 (ravenscar_ops): Remove global.
13810
dea57a62
TT
138112019-02-15 Tom Tromey <tromey@adacore.com>
13812
13813 * target.h (push_target): Declare new overload.
13814 * target.c (push_target): New overload, taking an rvalue reference.
13815 * remote.c (remote_target::open_1): Use push_target overload.
13816 * corelow.c (core_target_open): Use push_target overload.
13817
989f3c58
TT
138182019-02-15 Tom Tromey <tromey@adacore.com>
13819
13820 * ravenscar-thread.c (is_ravenscar_task)
13821 (ravenscar_task_is_currently_active): Return bool.
13822 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13823 (_initialize_ravenscar): Remove "(void)".
13824 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13825 Return bool.
13826
6cbcc006
TT
138272019-02-15 Tom Tromey <tromey@adacore.com>
13828
13829 * ravenscar-thread.c (ravenscar_runtime_initializer)
13830 (has_ravenscar_runtime, get_running_thread_id)
13831 (ravenscar_thread_target::resume): Fix indentation.
13832
7657f14d
TT
138332019-02-15 Tom Tromey <tromey@adacore.com>
13834
13835 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13836 from ravenscar_arch_ops.
13837 (sparc_ravenscar_ops::fetch_registers)
13838 (sparc_ravenscar_ops::store_registers): Now methods.
13839 (sparc_ravenscar_prepare_to_store): Remove.
13840 (sparc_ravenscar_ops): Redefine.
13841 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13842 methods and destructor. Remove members.
13843 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13844 (ravenscar_thread_target::store_registers)
13845 (ravenscar_thread_target::prepare_to_store): Update.
13846 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13847 Remove.
13848 (struct ppc_ravenscar_powerpc_ops): Derive from
13849 ravenscar_arch_ops.
13850 (ppc_ravenscar_powerpc_ops::fetch_registers)
13851 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13852 (ppc_ravenscar_powerpc_ops): Redefine.
13853 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13854 (ppc_ravenscar_e500_ops::fetch_registers)
13855 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13856 (ppc_ravenscar_e500_ops): Redefine.
13857 * aarch64-ravenscar-thread.c
13858 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13859 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13860 (aarch64_ravenscar_fetch_registers)
13861 (aarch64_ravenscar_store_registers): Now methods.
13862 (aarch64_ravenscar_ops): Redefine.
13863
5b6ea500
TT
138642019-02-15 Tom Tromey <tromey@adacore.com>
13865
13866 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13867 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13868 (ravenscar_thread_target::stopped_by_watchpoint)
13869 (ravenscar_thread_target::stopped_data_address)
13870 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13871
e397fd39
TT
138722019-02-15 Tom Tromey <tromey@adacore.com>
13873
13874 * ravenscar-thread.c: Fix some typos.
13875
cc12f4a8
TT
138762019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13877 Tom Tromey <tromey@adacore.com>
13878
13879 * ada-lang.c (ada_exception_sal): Change addr_string to a
13880 std::string.
13881 (create_ada_exception_catchpoint): Update.
13882
5f486660
TT
138832019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13884 Tom Tromey <tromey@adacore.com>
13885
13886 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13887 (bp_location_ops): Remove.
13888 (base_breakpoint_allocate_location): Update.
13889 (free_bp_location): Update.
13890 * ada-lang.c (class ada_catchpoint_location)
13891 <ada_catchpoint_location>: Remove ops parameter.
13892 (ada_catchpoint_location_dtor): Remove.
13893 (ada_catchpoint_location_ops): Remove.
13894 (allocate_location_exception): Update.
13895 * breakpoint.h (struct bp_location_ops): Remove.
13896 (class bp_location) <bp_location>: Remove bp_location_ops
13897 parameter.
13898 <~bp_location>: Add destructor.
13899 <ops>: Remove.
13900
b671c7fb
TS
139012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13902 Pedro Alves <palves@redhat.com>
13903
13904 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13905 'PATH_MAX'.
13906
8071c5ce
DM
139072019-02-14 David Michael <fedora.dm0@gmail.com>
13908 Samuel Thibault <samuel.thibault@gnu.org>
13909 Thomas Schwinge <thomas@codesourcery.com>
13910
13911 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13912 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13913
b1041ae0
TS
139142019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13915
924514e1
TS
13916 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13917 (check_empty): Use "const char *".
13918
c29ee8d4
TS
13919 * gnu-nat.c (gnu_nat_target::detach): Instead of
13920 'detach_inferior (pid)' call
13921 'detach_inferior (find_inferior_pid (pid))'.
13922
6c6ef69f
TS
13923 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13924 'nat/fork-inferior.o'.
13925 * gnu-nat.c: #include "nat/fork-inferior.h".
13926
2d0a338c
TS
13927 * gnu-nat.c (gnu_nat_target::detach): Instead of
13928 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13929 * gnu-nat.h: #include "inf-child.h".
13930 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13931 'i386_gnu_nat_target::fetch_registers'.
13932 (gnu_store_registers): Rename/move to
13933 'i386_gnu_nat_target::store_registers'.
13934
cabb5f06
TS
13935 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13936 * gnu-nat.h (mach_thread_info): New function.
13937 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13938
b1041ae0
TS
13939 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13940
2988d01e
KF
139412019-02-14 Frederic Konrad <konrad@adacore.com>
13942
13943 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13944
c559d709
JB
139452019-02-14 Joel Brobecker <brobecker@adacore.com>
13946
13947 * windows-nat.c (windows_add_thread): Add new parameter
13948 "main_thread_p" with default value set to false. Update
13949 function documentation as well as all callers.
13950 (windows_delete_thread): Likewise.
13951 (fake_create_process): Update call to windows_add_thread.
13952 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13953 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13954 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13955 call to windows_delete_thread.
13956
007024cc
SM
139572019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13958
13959 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13960
f62318e9
JB
139612019-02-12 John Baldwin <jhb@FreeBSD.org>
13962
13963 * symfile.c (find_separate_debug_file): Use canonical path of
13964 sysroot with child_path instead of gdb_sysroot if it is valid.
13965
cd4b7848
JB
139662019-02-12 John Baldwin <jhb@FreeBSD.org>
13967
13968 * symfile.c (find_separate_debug_file): Use child_path to
13969 determine if an object file is under a sysroot.
13970
efac4bfe
JB
139712019-02-12 John Baldwin <jhb@FreeBSD.org>
13972
13973 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13974 unittests/child-path-selftests.c.
13975 * common/pathstuff.c (child_path): New function.
13976 * common/pathstuff.h (child_path): New prototype.
13977 * unittests/child-path-selftests.c: New file.
13978
402d2bfe
JB
139792019-02-12 John Baldwin <jhb@FreeBSD.org>
13980
13981 * symfile.c (find_separate_debug_file): Look for separate debug
13982 files in debug directories under the sysroot.
13983
1ed9f74e
PW
139842019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13985
13986 * symtab.h (struct minimal_symbol data_p): New const method.
13987 (struct minimal_symbol text_p): Likewise.
13988 * symtab.c (output_source_filename): Use file name style
13989 to print file name.
13990 (print_symbol_info): Likewise.
13991 (print_msymbol_info): Use address style to print addresses.
13992 Use function name style to print executable text symbols.
13993 (expand_symtab_containing_pc): Use data_p.
13994 (find_pc_sect_compunit_symtab): Likewise.
13995
2636d81d
PW
139962019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13997
13998 * breakpoint.c (describe_other_breakpoints): Use address style
13999 to print addresses.
14000 (say_where): Likewise.
14001
ac8c53cc
PW
140022019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14003
14004 * ada-typeprint.c (print_func_type): Print function name
14005 style to print function name.
14006 * c-typeprint.c (c_print_type_1): Likewise.
14007
ea638c43
AH
140082019-02-11 Alan Hayward <alan.hayward@arm.com>
14009
14010 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14011 for execve.
14012
ab759ca8
PW
140132019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14014
14015 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14016 type_stack.
14017
aff29d1c
JB
140182019-02-10 Joel Brobecker <brobecker@adacore.com>
14019
14020 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14021 TYPE_CODE_REF types.
14022
617126bc
JW
140232019-02-08 Jim Wilson <jimw@sifive.com>
14024
14025 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14026 (riscv_linux_fregset): New.
14027 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14028
46e3ed7f
TT
140292019-02-07 Tom Tromey <tom@tromey.com>
14030
14031 * thread.c (thread_cancel_execution_command): Update.
14032 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14033 methods.
14034 (struct thread_fsm_ops): Remove.
14035 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14036 (thread_fsm_should_stop, thread_fsm_return_value)
14037 (thread_fsm_set_finished, thread_fsm_finished_p)
14038 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14039 Don't declare.
14040 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14041 * infrun.c (clear_proceed_status_thread)
14042 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14043 (print_stop_event): Update.
14044 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14045 Add constructor.
14046 (step_command_fsm_ops): Remove.
14047 (new_step_command_fsm): Remove.
14048 (step_1): Update.
14049 (step_command_fsm::should_stop): Rename from
14050 step_command_fsm_should_stop.
14051 (step_command_fsm::clean_up): Rename from
14052 step_command_fsm_clean_up.
14053 (step_command_fsm::do_async_reply_reason): Rename from
14054 step_command_fsm_async_reply_reason.
14055 (struct until_next_fsm): Inherit from thread_fsm. Add
14056 constructor.
14057 (until_next_fsm_ops): Remove.
14058 (new_until_next_fsm): Remove.
14059 (until_next_fsm::should_stop): Rename from
14060 until_next_fsm_should_stop.
14061 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14062 (until_next_fsm::do_async_reply_reason): Rename from
14063 until_next_fsm_async_reply_reason.
14064 (struct finish_command_fsm): Inherit from thread_fsm. Add
14065 constructor. Change type of breakpoint.
14066 (finish_command_fsm_ops): Remove.
14067 (new_finish_command_fsm): Remove.
14068 (finish_command_fsm::should_stop): Rename from
14069 finish_command_fsm_should_stop.
14070 (finish_command_fsm::clean_up): Rename from
14071 finish_command_fsm_clean_up.
14072 (finish_command_fsm::return_value): Rename from
14073 finish_command_fsm_return_value.
14074 (finish_command_fsm::do_async_reply_reason): Rename from
14075 finish_command_fsm_async_reply_reason.
14076 (finish_command): Update.
14077 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14078 Add constructor.
14079 (call_thread_fsm_ops): Remove.
14080 (call_thread_fsm::call_thread_fsm): Rename from
14081 new_call_thread_fsm.
14082 (call_thread_fsm::should_stop): Rename from
14083 call_thread_fsm_should_stop.
14084 (call_thread_fsm::should_notify_stop): Rename from
14085 call_thread_fsm_should_notify_stop.
14086 (run_inferior_call, call_function_by_hand_dummy): Update.
14087 * cli/cli-interp.c (should_print_stop_to_console): Update.
14088 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14089 Add constructor. Change type of location_breakpoint,
14090 caller_breakpoint.
14091 (until_break_fsm_ops): Remove.
14092 (new_until_break_fsm): Remove.
14093 (until_break_fsm::should_stop): Rename from
14094 until_break_fsm_should_stop.
14095 (until_break_fsm::clean_up): Rename from
14096 until_break_fsm_clean_up.
14097 (until_break_fsm::do_async_reply_reason): Rename from
14098 until_break_fsm_async_reply_reason.
14099 (until_break_command): Update.
14100 * thread-fsm.c: Remove.
14101 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14102
1a5c2598
TT
141032019-02-07 Tom Tromey <tom@tromey.com>
14104
14105 * yy-remap.h: Add include guard.
14106 * xtensa-tdep.h: Add include guard.
14107 * xcoffread.h: Rename include guard.
14108 * varobj-iter.h: Add include guard.
14109 * tui/tui.h: Rename include guard.
14110 * tui/tui-winsource.h: Rename include guard.
14111 * tui/tui-wingeneral.h: Rename include guard.
14112 * tui/tui-windata.h: Rename include guard.
14113 * tui/tui-win.h: Rename include guard.
14114 * tui/tui-stack.h: Rename include guard.
14115 * tui/tui-source.h: Rename include guard.
14116 * tui/tui-regs.h: Rename include guard.
14117 * tui/tui-out.h: Rename include guard.
14118 * tui/tui-layout.h: Rename include guard.
14119 * tui/tui-io.h: Rename include guard.
14120 * tui/tui-hooks.h: Rename include guard.
14121 * tui/tui-file.h: Rename include guard.
14122 * tui/tui-disasm.h: Rename include guard.
14123 * tui/tui-data.h: Rename include guard.
14124 * tui/tui-command.h: Rename include guard.
14125 * tic6x-tdep.h: Add include guard.
14126 * target/waitstatus.h: Rename include guard.
14127 * target/wait.h: Rename include guard.
14128 * target/target.h: Rename include guard.
14129 * target/resume.h: Rename include guard.
14130 * target-float.h: Rename include guard.
14131 * stabsread.h: Add include guard.
14132 * rs6000-tdep.h: Add include guard.
14133 * riscv-fbsd-tdep.h: Add include guard.
14134 * regformats/regdef.h: Rename include guard.
14135 * record.h: Rename include guard.
14136 * python/python.h: Rename include guard.
14137 * python/python-internal.h: Rename include guard.
14138 * python/py-stopevent.h: Rename include guard.
14139 * python/py-ref.h: Rename include guard.
14140 * python/py-record.h: Rename include guard.
14141 * python/py-record-full.h: Rename include guard.
14142 * python/py-record-btrace.h: Rename include guard.
14143 * python/py-instruction.h: Rename include guard.
14144 * python/py-events.h: Rename include guard.
14145 * python/py-event.h: Rename include guard.
14146 * procfs.h: Add include guard.
14147 * proc-utils.h: Add include guard.
14148 * p-lang.h: Add include guard.
14149 * or1k-tdep.h: Rename include guard.
14150 * observable.h: Rename include guard.
14151 * nto-tdep.h: Rename include guard.
14152 * nat/x86-linux.h: Rename include guard.
14153 * nat/x86-linux-dregs.h: Rename include guard.
14154 * nat/x86-gcc-cpuid.h: Add include guard.
14155 * nat/x86-dregs.h: Rename include guard.
14156 * nat/x86-cpuid.h: Rename include guard.
14157 * nat/ppc-linux.h: Rename include guard.
14158 * nat/mips-linux-watch.h: Rename include guard.
14159 * nat/linux-waitpid.h: Rename include guard.
14160 * nat/linux-ptrace.h: Rename include guard.
14161 * nat/linux-procfs.h: Rename include guard.
14162 * nat/linux-osdata.h: Rename include guard.
14163 * nat/linux-nat.h: Rename include guard.
14164 * nat/linux-namespaces.h: Rename include guard.
14165 * nat/linux-btrace.h: Rename include guard.
14166 * nat/glibc_thread_db.h: Rename include guard.
14167 * nat/gdb_thread_db.h: Rename include guard.
14168 * nat/gdb_ptrace.h: Rename include guard.
14169 * nat/fork-inferior.h: Rename include guard.
14170 * nat/amd64-linux-siginfo.h: Rename include guard.
14171 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14172 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14173 * nat/aarch64-linux.h: Rename include guard.
14174 * nat/aarch64-linux-hw-point.h: Rename include guard.
14175 * mn10300-tdep.h: Add include guard.
14176 * mips-linux-tdep.h: Add include guard.
14177 * mi/mi-parse.h: Rename include guard.
14178 * mi/mi-out.h: Rename include guard.
14179 * mi/mi-main.h: Rename include guard.
14180 * mi/mi-interp.h: Rename include guard.
14181 * mi/mi-getopt.h: Rename include guard.
14182 * mi/mi-console.h: Rename include guard.
14183 * mi/mi-common.h: Rename include guard.
14184 * mi/mi-cmds.h: Rename include guard.
14185 * mi/mi-cmd-break.h: Rename include guard.
14186 * m2-lang.h: Add include guard.
14187 * location.h: Rename include guard.
14188 * linux-record.h: Rename include guard.
14189 * linux-nat.h: Add include guard.
14190 * linux-fork.h: Add include guard.
14191 * i386-darwin-tdep.h: Rename include guard.
14192 * hppa-linux-offsets.h: Add include guard.
14193 * guile/guile.h: Rename include guard.
14194 * guile/guile-internal.h: Rename include guard.
14195 * gnu-nat.h: Rename include guard.
14196 * gdb-stabs.h: Rename include guard.
14197 * frv-tdep.h: Add include guard.
14198 * f-lang.h: Add include guard.
14199 * event-loop.h: Add include guard.
14200 * darwin-nat.h: Rename include guard.
14201 * cp-abi.h: Rename include guard.
14202 * config/sparc/nm-sol2.h: Rename include guard.
14203 * config/nm-nto.h: Rename include guard.
14204 * config/nm-linux.h: Add include guard.
14205 * config/i386/nm-i386gnu.h: Rename include guard.
14206 * config/djgpp/nl_types.h: Rename include guard.
14207 * config/djgpp/langinfo.h: Rename include guard.
14208 * compile/gcc-cp-plugin.h: Add include guard.
14209 * compile/gcc-c-plugin.h: Add include guard.
14210 * compile/compile.h: Rename include guard.
14211 * compile/compile-object-run.h: Rename include guard.
14212 * compile/compile-object-load.h: Rename include guard.
14213 * compile/compile-internal.h: Rename include guard.
14214 * compile/compile-cplus.h: Rename include guard.
14215 * compile/compile-c.h: Rename include guard.
14216 * common/xml-utils.h: Rename include guard.
14217 * common/x86-xstate.h: Rename include guard.
14218 * common/version.h: Rename include guard.
14219 * common/vec.h: Rename include guard.
14220 * common/tdesc.h: Rename include guard.
14221 * common/selftest.h: Rename include guard.
14222 * common/scoped_restore.h: Rename include guard.
14223 * common/scoped_mmap.h: Rename include guard.
14224 * common/scoped_fd.h: Rename include guard.
14225 * common/safe-iterator.h: Rename include guard.
14226 * common/run-time-clock.h: Rename include guard.
14227 * common/refcounted-object.h: Rename include guard.
14228 * common/queue.h: Rename include guard.
14229 * common/ptid.h: Rename include guard.
14230 * common/print-utils.h: Rename include guard.
14231 * common/preprocessor.h: Rename include guard.
14232 * common/pathstuff.h: Rename include guard.
14233 * common/observable.h: Rename include guard.
14234 * common/netstuff.h: Rename include guard.
14235 * common/job-control.h: Rename include guard.
14236 * common/host-defs.h: Rename include guard.
14237 * common/gdb_wait.h: Rename include guard.
14238 * common/gdb_vecs.h: Rename include guard.
14239 * common/gdb_unlinker.h: Rename include guard.
14240 * common/gdb_unique_ptr.h: Rename include guard.
14241 * common/gdb_tilde_expand.h: Rename include guard.
14242 * common/gdb_sys_time.h: Rename include guard.
14243 * common/gdb_string_view.h: Rename include guard.
14244 * common/gdb_splay_tree.h: Rename include guard.
14245 * common/gdb_setjmp.h: Rename include guard.
14246 * common/gdb_ref_ptr.h: Rename include guard.
14247 * common/gdb_optional.h: Rename include guard.
14248 * common/gdb_locale.h: Rename include guard.
14249 * common/gdb_assert.h: Rename include guard.
14250 * common/filtered-iterator.h: Rename include guard.
14251 * common/filestuff.h: Rename include guard.
14252 * common/fileio.h: Rename include guard.
14253 * common/environ.h: Rename include guard.
14254 * common/common-utils.h: Rename include guard.
14255 * common/common-types.h: Rename include guard.
14256 * common/common-regcache.h: Rename include guard.
14257 * common/common-inferior.h: Rename include guard.
14258 * common/common-gdbthread.h: Rename include guard.
14259 * common/common-exceptions.h: Rename include guard.
14260 * common/common-defs.h: Rename include guard.
14261 * common/common-debug.h: Rename include guard.
14262 * common/cleanups.h: Rename include guard.
14263 * common/buffer.h: Rename include guard.
14264 * common/btrace-common.h: Rename include guard.
14265 * common/break-common.h: Rename include guard.
14266 * cli/cli-utils.h: Rename include guard.
14267 * cli/cli-style.h: Rename include guard.
14268 * cli/cli-setshow.h: Rename include guard.
14269 * cli/cli-script.h: Rename include guard.
14270 * cli/cli-interp.h: Rename include guard.
14271 * cli/cli-decode.h: Rename include guard.
14272 * cli/cli-cmds.h: Rename include guard.
14273 * charset-list.h: Add include guard.
14274 * buildsym-legacy.h: Rename include guard.
14275 * bfin-tdep.h: Add include guard.
14276 * ax.h: Rename include guard.
14277 * arm-linux-tdep.h: Add include guard.
14278 * arm-fbsd-tdep.h: Add include guard.
14279 * arch/xtensa.h: Rename include guard.
14280 * arch/tic6x.h: Add include guard.
14281 * arch/i386.h: Add include guard.
14282 * arch/arm.h: Rename include guard.
14283 * arch/arm-linux.h: Rename include guard.
14284 * arch/arm-get-next-pcs.h: Rename include guard.
14285 * arch/amd64.h: Add include guard.
14286 * arch/aarch64-insn.h: Rename include guard.
14287 * arch-utils.h: Rename include guard.
14288 * annotate.h: Add include guard.
14289 * amd64-darwin-tdep.h: Rename include guard.
14290 * aarch64-linux-tdep.h: Add include guard.
14291 * aarch64-fbsd-tdep.h: Add include guard.
14292 * aarch32-linux-nat.h: Add include guard.
14293
ab9268d2
PW
142942019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14295
14296 * macrotab.c (macro_define_internal): New function that
14297 factorizes macro_define_object_internal and macro_define_function
14298 code.
14299 (macro_define_object_internal): Use macro_define_internal.
14300 (macro_define_function): Likewise.
14301
bb0da2b4
PW
143022019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14303
14304 * macrocmd.c (extract_identifier): Return
14305 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14306 callers.
14307
424eb552
JB
143082019-02-06 John Baldwin <jhb@FreeBSD.org>
14309
14310 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14311
1688cb29
TT
143122019-02-05 Tom Tromey <tom@tromey.com>
14313
14314 * target.c (target_stack::unpush): Move assertion earlier.
14315
b5eba2d8
TT
143162019-01-30 Tom Tromey <tom@tromey.com>
14317
14318 PR python/23615:
14319 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14320 (gdbpy_parse_and_eval): Likewise.
14321 * python/python-internal.h (gdbpy_allow_threads): New class.
14322
7054e2ff
JB
143232019-01-28 John Baldwin <jhb@FreeBSD.org>
14324
14325 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14326 (aarch64_fbsd_fpregmap): Move earlier.
14327 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14328 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14329 instead of individual calls to trad_frame_set_reg_addr.
14330 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14331 earlier.
14332 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14333 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14334 instead of individual calls to trad_frame_set_reg_addr.
14335
36c25ffa
AH
143362019-01-28 Alan Hayward <alan.hayward@arm.com>
14337
14338 * CONTRIBUTE: Replace contribution list with wiki link.
14339
a0707f3c
TT
143402019-01-25 Tom Tromey <tom@tromey.com>
14341
14342 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14343
0747795c
TT
143442019-01-25 Tom Tromey <tom@tromey.com>
14345
14346 * xtensa-linux-nat.c: Fix common/ includes.
14347 * xml-support.h: Fix common/ includes.
14348 * xml-support.c: Fix common/ includes.
14349 * x86-linux-nat.c: Fix common/ includes.
14350 * windows-nat.c: Fix common/ includes.
14351 * varobj.h: Fix common/ includes.
14352 * varobj.c: Fix common/ includes.
14353 * value.c: Fix common/ includes.
14354 * valops.c: Fix common/ includes.
14355 * utils.c: Fix common/ includes.
14356 * unittests/xml-utils-selftests.c: Fix common/ includes.
14357 * unittests/utils-selftests.c: Fix common/ includes.
14358 * unittests/unpack-selftests.c: Fix common/ includes.
14359 * unittests/tracepoint-selftests.c: Fix common/ includes.
14360 * unittests/style-selftests.c: Fix common/ includes.
14361 * unittests/string_view-selftests.c: Fix common/ includes.
14362 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14363 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14364 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14365 * unittests/rsp-low-selftests.c: Fix common/ includes.
14366 * unittests/parse-connection-spec-selftests.c: Fix common/
14367 includes.
14368 * unittests/optional-selftests.c: Fix common/ includes.
14369 * unittests/offset-type-selftests.c: Fix common/ includes.
14370 * unittests/observable-selftests.c: Fix common/ includes.
14371 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14372 * unittests/memrange-selftests.c: Fix common/ includes.
14373 * unittests/memory-map-selftests.c: Fix common/ includes.
14374 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14375 * unittests/function-view-selftests.c: Fix common/ includes.
14376 * unittests/environ-selftests.c: Fix common/ includes.
14377 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14378 * unittests/common-utils-selftests.c: Fix common/ includes.
14379 * unittests/cli-utils-selftests.c: Fix common/ includes.
14380 * unittests/array-view-selftests.c: Fix common/ includes.
14381 * ui-file.c: Fix common/ includes.
14382 * tui/tui-io.c: Fix common/ includes.
14383 * tracepoint.h: Fix common/ includes.
14384 * tracepoint.c: Fix common/ includes.
14385 * tracefile-tfile.c: Fix common/ includes.
14386 * top.h: Fix common/ includes.
14387 * top.c: Fix common/ includes.
14388 * thread.c: Fix common/ includes.
14389 * target/waitstatus.h: Fix common/ includes.
14390 * target/waitstatus.c: Fix common/ includes.
14391 * target.h: Fix common/ includes.
14392 * target.c: Fix common/ includes.
14393 * target-memory.c: Fix common/ includes.
14394 * target-descriptions.c: Fix common/ includes.
14395 * symtab.h: Fix common/ includes.
14396 * symfile.c: Fix common/ includes.
14397 * stap-probe.c: Fix common/ includes.
14398 * spu-linux-nat.c: Fix common/ includes.
14399 * sparc-nat.c: Fix common/ includes.
14400 * source.c: Fix common/ includes.
14401 * solib.c: Fix common/ includes.
14402 * solib-target.c: Fix common/ includes.
14403 * ser-unix.c: Fix common/ includes.
14404 * ser-tcp.c: Fix common/ includes.
14405 * ser-pipe.c: Fix common/ includes.
14406 * ser-base.c: Fix common/ includes.
14407 * selftest-arch.c: Fix common/ includes.
14408 * s12z-tdep.c: Fix common/ includes.
14409 * rust-exp.y: Fix common/ includes.
14410 * rs6000-aix-tdep.c: Fix common/ includes.
14411 * riscv-tdep.c: Fix common/ includes.
14412 * remote.c: Fix common/ includes.
14413 * remote-notif.h: Fix common/ includes.
14414 * remote-fileio.h: Fix common/ includes.
14415 * remote-fileio.c: Fix common/ includes.
14416 * regcache.h: Fix common/ includes.
14417 * regcache.c: Fix common/ includes.
14418 * record-btrace.c: Fix common/ includes.
14419 * python/python.c: Fix common/ includes.
14420 * python/py-type.c: Fix common/ includes.
14421 * python/py-inferior.c: Fix common/ includes.
14422 * progspace.h: Fix common/ includes.
14423 * producer.c: Fix common/ includes.
14424 * procfs.c: Fix common/ includes.
14425 * proc-api.c: Fix common/ includes.
14426 * printcmd.c: Fix common/ includes.
14427 * ppc-linux-nat.c: Fix common/ includes.
14428 * parser-defs.h: Fix common/ includes.
14429 * osdata.c: Fix common/ includes.
14430 * obsd-nat.c: Fix common/ includes.
14431 * nat/x86-linux.c: Fix common/ includes.
14432 * nat/x86-linux-dregs.c: Fix common/ includes.
14433 * nat/x86-dregs.h: Fix common/ includes.
14434 * nat/x86-dregs.c: Fix common/ includes.
14435 * nat/ppc-linux.c: Fix common/ includes.
14436 * nat/mips-linux-watch.h: Fix common/ includes.
14437 * nat/mips-linux-watch.c: Fix common/ includes.
14438 * nat/linux-waitpid.c: Fix common/ includes.
14439 * nat/linux-ptrace.h: Fix common/ includes.
14440 * nat/linux-ptrace.c: Fix common/ includes.
14441 * nat/linux-procfs.c: Fix common/ includes.
14442 * nat/linux-personality.c: Fix common/ includes.
14443 * nat/linux-osdata.c: Fix common/ includes.
14444 * nat/linux-namespaces.c: Fix common/ includes.
14445 * nat/linux-btrace.h: Fix common/ includes.
14446 * nat/linux-btrace.c: Fix common/ includes.
14447 * nat/fork-inferior.c: Fix common/ includes.
14448 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14449 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14450 * nat/aarch64-linux.c: Fix common/ includes.
14451 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14452 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14453 * namespace.h: Fix common/ includes.
14454 * mips-linux-tdep.c: Fix common/ includes.
14455 * minsyms.c: Fix common/ includes.
14456 * mi/mi-parse.h: Fix common/ includes.
14457 * mi/mi-main.c: Fix common/ includes.
14458 * mi/mi-cmd-env.c: Fix common/ includes.
14459 * memrange.h: Fix common/ includes.
14460 * memattr.c: Fix common/ includes.
14461 * maint.h: Fix common/ includes.
14462 * maint.c: Fix common/ includes.
14463 * main.c: Fix common/ includes.
14464 * machoread.c: Fix common/ includes.
14465 * location.c: Fix common/ includes.
14466 * linux-thread-db.c: Fix common/ includes.
14467 * linux-nat.c: Fix common/ includes.
14468 * linux-fork.c: Fix common/ includes.
14469 * inline-frame.c: Fix common/ includes.
14470 * infrun.c: Fix common/ includes.
14471 * inflow.c: Fix common/ includes.
14472 * inferior.h: Fix common/ includes.
14473 * inferior.c: Fix common/ includes.
14474 * infcmd.c: Fix common/ includes.
14475 * inf-ptrace.c: Fix common/ includes.
14476 * inf-child.c: Fix common/ includes.
14477 * ia64-linux-nat.c: Fix common/ includes.
14478 * i387-tdep.c: Fix common/ includes.
14479 * i386-tdep.c: Fix common/ includes.
14480 * i386-linux-tdep.c: Fix common/ includes.
14481 * i386-linux-nat.c: Fix common/ includes.
14482 * i386-go32-tdep.c: Fix common/ includes.
14483 * i386-fbsd-tdep.c: Fix common/ includes.
14484 * i386-fbsd-nat.c: Fix common/ includes.
14485 * guile/scm-type.c: Fix common/ includes.
14486 * guile/guile.c: Fix common/ includes.
14487 * go32-nat.c: Fix common/ includes.
14488 * gnu-nat.c: Fix common/ includes.
14489 * gdbthread.h: Fix common/ includes.
14490 * gdbarch-selftests.c: Fix common/ includes.
14491 * gdb_usleep.c: Fix common/ includes.
14492 * gdb_select.h: Fix common/ includes.
14493 * gdb_bfd.c: Fix common/ includes.
14494 * gcore.c: Fix common/ includes.
14495 * fork-child.c: Fix common/ includes.
14496 * findvar.c: Fix common/ includes.
14497 * fbsd-nat.c: Fix common/ includes.
14498 * event-top.c: Fix common/ includes.
14499 * event-loop.c: Fix common/ includes.
14500 * dwarf2read.c: Fix common/ includes.
14501 * dwarf2loc.c: Fix common/ includes.
14502 * dwarf2-frame.c: Fix common/ includes.
14503 * dwarf-index-cache.c: Fix common/ includes.
14504 * dtrace-probe.c: Fix common/ includes.
14505 * disasm-selftests.c: Fix common/ includes.
14506 * defs.h: Fix common/ includes.
14507 * csky-tdep.c: Fix common/ includes.
14508 * cp-valprint.c: Fix common/ includes.
14509 * cp-support.h: Fix common/ includes.
14510 * cp-support.c: Fix common/ includes.
14511 * corelow.c: Fix common/ includes.
14512 * completer.h: Fix common/ includes.
14513 * completer.c: Fix common/ includes.
14514 * compile/compile.c: Fix common/ includes.
14515 * compile/compile-loc2c.c: Fix common/ includes.
14516 * compile/compile-cplus-types.c: Fix common/ includes.
14517 * compile/compile-cplus-symbols.c: Fix common/ includes.
14518 * command.h: Fix common/ includes.
14519 * cli/cli-dump.c: Fix common/ includes.
14520 * cli/cli-cmds.c: Fix common/ includes.
14521 * charset.c: Fix common/ includes.
14522 * build-id.c: Fix common/ includes.
14523 * btrace.h: Fix common/ includes.
14524 * btrace.c: Fix common/ includes.
14525 * breakpoint.h: Fix common/ includes.
14526 * breakpoint.c: Fix common/ includes.
14527 * ax.h:
14528 (enum agent_op): Fix common/ includes.
14529 * ax-general.c (struct aop_map): Fix common/ includes.
14530 * ax-gdb.c: Fix common/ includes.
14531 * auxv.c: Fix common/ includes.
14532 * auto-load.c: Fix common/ includes.
14533 * arm-tdep.c: Fix common/ includes.
14534 * arch/riscv.c: Fix common/ includes.
14535 * arch/ppc-linux-common.c: Fix common/ includes.
14536 * arch/i386.c: Fix common/ includes.
14537 * arch/arm.c: Fix common/ includes.
14538 * arch/arm-linux.c: Fix common/ includes.
14539 * arch/arm-get-next-pcs.c: Fix common/ includes.
14540 * arch/amd64.c: Fix common/ includes.
14541 * arch/aarch64.c: Fix common/ includes.
14542 * arch/aarch64-insn.c: Fix common/ includes.
14543 * arch-utils.c: Fix common/ includes.
14544 * amd64-windows-tdep.c: Fix common/ includes.
14545 * amd64-tdep.c: Fix common/ includes.
14546 * amd64-sol2-tdep.c: Fix common/ includes.
14547 * amd64-obsd-tdep.c: Fix common/ includes.
14548 * amd64-nbsd-tdep.c: Fix common/ includes.
14549 * amd64-linux-tdep.c: Fix common/ includes.
14550 * amd64-linux-nat.c: Fix common/ includes.
14551 * amd64-fbsd-tdep.c: Fix common/ includes.
14552 * amd64-fbsd-nat.c: Fix common/ includes.
14553 * amd64-dicos-tdep.c: Fix common/ includes.
14554 * amd64-darwin-tdep.c: Fix common/ includes.
14555 * agent.c: Fix common/ includes.
14556 * ada-lang.h: Fix common/ includes.
14557 * ada-lang.c: Fix common/ includes.
14558 * aarch64-tdep.c: Fix common/ includes.
14559
2f5c153e
TT
145602019-01-25 Tom Tromey <tom@tromey.com>
14561
14562 * common/create-version.sh: Use common/version.h.
14563
adc6a863
PA
145642019-01-24 Pedro Alves <palves@redhat.com>
14565
14566 * infrun.c (signal_stop, signal_print, signal_program)
14567 (signal_catch, signal_pass): Now arrays instead of pointers.
14568 (update_signals_program_target, do_target_resume)
14569 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14570 * linux-nat.c (linux_nat_target::pass_signals)
14571 (linux_nat_target::create_inferior, linux_nat_target::attach):
14572 Adjust.
14573 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14574 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14575 * procfs.c (procfs_target::pass_signals): Adjust.
14576 * record-full.c (record_full_target::resume): Adjust.
14577 * remote.c (remote_target::pass_signals)
14578 (remote_target::program_signals): Adjust.
14579 * target-debug.h (target_debug_print_signals): Now takes a
14580 gdb::array_view as parameter. Adjust.
14581 * target.h (target_ops) <pass_signals, program_signals>: Replace
14582 pointer and length parameters with gdb::array_view.
14583 (target_pass_signals, target_program_signals): Likewise.
14584 * target-delegates.c: Regenerate.
14585
3046d67a
PA
145862019-01-24 Pedro Alves <palves@redhat.com>
14587
14588 * common/forward-scope-exit.h
14589 (forward_scope_exit::forward_scope_exit): Pass arguments to
14590 m_bind_function directly, instead of creating a std::bind and
14591 copying that.
14592
353229bf
AH
145932019-01-24 Alan Hayward <alan.hayward@arm.com>
14594
14595 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14596 for static members.
14597 (pass_in_v_vfp_candidate): Likewise.
14598
311dc83a
TT
145992019-01-23 Tom Tromey <tom@tromey.com>
14600 Pedro Alves <palves@redhat.com>
14601
14602 * regcache.c (class regcache_invalidator): Remove.
14603 (regcache::raw_write): Use make_scope_exit.
14604
296bd123
TT
146052019-01-23 Tom Tromey <tom@tromey.com>
14606
14607 * ui-out.h (class ui_out_emit_type): Update comment.
14608
979a0d13
TT
146092019-01-23 Tom Tromey <tom@tromey.com>
14610
14611 * infrun.c (fetch_inferior_event): Update comment.
14612
d238133d
TT
146132019-01-23 Tom Tromey <tom@tromey.com>
14614 Pedro Alves <palves@redhat.com>
14615
14616 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14617 parameter.
14618 (fetch_inferior_event): Use SCOPE_EXIT.
14619
14620
9885e6bb
TT
146212019-01-23 Tom Tromey <tom@tromey.com>
14622 Pedro Alves <palves@redhat.com>
14623
14624 * infrun.c (disable_thread_events): Delete.
14625 (stop_all_threads): Use SCOPE_EXIT.
14626
286526c1
TT
146272019-01-23 Tom Tromey <tom@tromey.com>
14628 Pedro Alves <palves@redhat.com>
14629
14630 * symfile.c: Include forward-scope-exit.h.
14631 (clear_symtab_users_cleanup): Replace forward declaration with
14632 a FORWARD_SCOPE_EXIT.
14633 (syms_from_objfile_1): Use the forward_scope_exit and
14634 gdb::optional instead of cleanup_function.
14635 (reread_symbols): Use the forward_scope_exit instead of
14636 cleanup_function.
14637 (clear_symtab_users_cleanup): Remove function.
14638
1db93f14
TT
146392019-01-23 Tom Tromey <tom@tromey.com>
14640 Pedro Alves <palves@redhat.com>
14641
14642 * linux-nat.c: Include scope-exit.h.
14643 (cleanup_target_stop): Remove.
14644 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14645 SCOPE_EXIT.
14646
2cc83d1e
TT
146472019-01-23 Tom Tromey <tom@tromey.com>
14648 Pedro Alves <palves@redhat.com>
14649
14650 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14651 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14652
694c6bf5
TT
146532019-01-23 Tom Tromey <tom@tromey.com>
14654 Andrew Burgess <andrew.burgess@embecosm.com>
14655 Pedro Alves <palves@redhat.com>
14656
14657 * infrun.c (fetch_inferior_event): Use scope_exit.
14658 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14659 * top.c (execute_command): Use scope_exit.
14660 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14661 * utils.c (do_bpstat_clear_actions_cleanup)
14662 (make_bpstat_clear_actions_cleanup): Remove.
14663
4c41382a
TT
146642019-01-23 Tom Tromey <tom@tromey.com>
14665 Pedro Alves <palves@redhat.com>
14666
14667 * infrun.c: Include "common/scope-exit.h"
14668 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14669 (wait_for_inferior): Use SCOPE_EXIT.
14670 (fetch_inferior_event): Use scope_exit.
14671
89f8fb50
TT
146722019-01-23 Tom Tromey <tom@tromey.com>
14673 Pedro Alves <palves@redhat.com>
14674
14675 * breakpoint.c (create_breakpoint): Remove cleanup.
14676
5419bdae
TT
146772019-01-23 Tom Tromey <tom@tromey.com>
14678 Andrew Burgess <andrew.burgess@embecosm.com>
14679 Pedro Alves <palves@redhat.com>
14680
e587ef42
PA
146812019-01-23 Pedro Alves <palves@redhat.com>
14682
14683 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14684
77f0e74c
PA
146852019-01-23 Pedro Alves <palves@redhat.com>
14686 Andrew Burgess <andrew.burgess@embecosm.com>
14687
14688 * gdbthread.h: Include "common/forward-scope-exit.h".
14689 (scoped_finish_thread_state): Redefine custom class in terms of
14690 forward_scope_exit.
14691
5b9b3e53
PA
146922019-01-23 Pedro Alves <palves@redhat.com>
14693 Andrew Burgess <andrew.burgess@embecosm.com>
14694
14695 * common/forward-scope-exit.h: New file.
14696
54b65c9b
PA
146972019-01-23 Pedro Alves <palves@redhat.com>
14698 Andrew Burgess <andrew.burgess@embecosm.com>
14699 Tom Tromey <tom@tromey.com>
14700
14701 * common/scope-exit.h: New file.
14702
cf08fb29
PA
147032019-01-23 Pedro Alves <palves@redhat.com>
14704
14705 * common/preprocessor.h (ESC): Rename to ...
14706 (ESC_PARENS): ... this.
14707 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14708 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14709
ae73e2e2
TT
147102019-01-23 Tom Tromey <tom@tromey.com>
14711
14712 * language.h (class scoped_switch_to_sym_language_if_auto):
14713 Initialize m_lang in both cases.
14714
6594e122
AH
147152019-01-23 Alan Hayward <alan.hayward@arm.com>
14716
14717 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14718 with XCNEW.
14719
a7c9855d
TT
147202019-01-22 Tom Tromey <tom@tromey.com>
14721
14722 * corelow.c: Do not include sys/file.h.
14723
93cc1d53
TT
147242019-01-22 Tom Tromey <tom@tromey.com>
14725
14726 * tui/tui-wingeneral.h: Include gdb_curses.h.
14727
38561778
TT
147282019-01-22 Tom Tromey <tom@tromey.com>
14729
14730 * source-cache.h (class source_cache) <get_source_lines,
14731 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14732
37b3ab5b
TT
147332019-01-22 Tom Tromey <tom@tromey.com>
14734
14735 * remote-fileio.h (struct remote_target): Declare.
14736
3fabc016
TT
147372019-01-22 Tom Tromey <tom@tromey.com>
14738
14739 * python/py-arch.c: Do not include py-ref.h.
14740 * python/py-bpevent.c: Do not include py-ref.h.
14741 * python/py-cmd.c: Do not include py-ref.h.
14742 * python/py-continueevent.c: Do not include py-ref.h.
14743 * python/py-event.h: Do not include py-ref.h.
14744 * python/py-evtregistry.c: Do not include py-ref.h.
14745 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14746 * python/py-frame.c: Do not include py-ref.h.
14747 * python/py-framefilter.c: Do not include py-ref.h.
14748 * python/py-function.c: Do not include py-ref.h.
14749 * python/py-infevents.c: Do not include py-ref.h.
14750 * python/py-linetable.c: Do not include py-ref.h.
14751 * python/py-objfile.c: Do not include py-ref.h.
14752 * python/py-param.c: Do not include py-ref.h.
14753 * python/py-prettyprint.c: Do not include py-ref.h.
14754 * python/py-progspace.c: Do not include py-ref.h.
14755 * python/py-symbol.c: Do not include py-ref.h.
14756 * python/py-symtab.c: Do not include py-ref.h.
14757 * python/py-type.c: Do not include py-ref.h.
14758 * python/py-unwind.c: Do not include py-ref.h.
14759 * python/py-utils.c: Do not include py-ref.h.
14760 * python/py-value.c: Do not include py-ref.h.
14761 * python/py-varobj.c: Do not include py-ref.h.
14762 * python/py-xmethods.c: Do not include py-ref.h.
14763 * python/python.c: Do not include py-ref.h.
14764 * varobj.c: Do not include py-ref.h.
14765
6b4d7774
TT
147662019-01-22 Tom Tromey <tom@tromey.com>
14767
14768 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14769 keyword for bcache.
14770
7af7e9b5
TT
147712019-01-22 Tom Tromey <tom@tromey.com>
14772
14773 * compile/compile-cplus-types.c: Remove a comment by #include.
14774
951d1049
TT
147752019-01-22 Tom Tromey <tom@tromey.com>
14776
14777 * compile/gcc-c-plugin.h: Include compile-internal.h.
14778
d65d5705
TT
147792019-01-22 Tom Tromey <tom@tromey.com>
14780
14781 * stabsread.c (EXTERN): Do not define.
14782 (symnum, next_symbol_text_func, processing_gcc_compilation)
14783 (within_function, global_sym_chain, global_stabs)
14784 (previous_stab_code, this_object_header_files)
14785 (n_this_object_header_files)
14786 (n_allocated_this_object_header_files): Define.
14787 * stabsread.h (EXTERN): Never define. Use "extern".
14788
b6fb1ee5
PW
147892019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14790
14791 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14792 history_value.
14793
be6d4f74
TT
147942019-01-21 Tom Tromey <tom@tromey.com>
14795
14796 * ui-out.c: Fix includes.
14797 * tui/tui-source.c: Fix includes.
14798 * target.c: Fix includes.
14799 * remote.c: Fix includes.
14800 * regcache.c: Fix includes.
14801 * python/py-block.c: Fix includes.
14802 * printcmd.c: Fix includes.
14803 * or1k-tdep.c: Fix includes.
14804 * mi/mi-main.c: Fix includes.
14805 * m32r-tdep.c: Fix includes.
14806 * csky-tdep.c: Fix includes.
14807 * compile/compile-cplus-types.c: Fix includes.
14808 * cli/cli-interp.c: Fix includes.
14809
73021deb
AH
148102019-01-21 Alan Hayward <alan.hayward@arm.com>
14811
14812 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14813 for padding.
14814
7932255d
TT
148152019-01-16 Tom Tromey <tom@tromey.com>
14816
14817 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14818 earlier.
14819 (struct objfile) <msymbols_range>: Move from top level.
14820 <msymbols>: New method.
14821 (class objfile_msymbols): Remove.
14822 * symtab.c (default_collect_symbol_completion_matches_break_on):
14823 Update.
14824 * symmisc.c (dump_msymbols): Update.
14825 * stabsread.c (scan_file_globals): Update.
14826 * objc-lang.c (info_selectors_command, info_classes_command)
14827 (find_methods): Update.
14828 * minsyms.c (find_solib_trampoline_target): Update.
14829 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14830 * coffread.c (coff_symfile_read): Update.
14831 * ada-lang.c (ada_lookup_simple_minsym)
14832 (ada_collect_symbol_completion_matches): Update.
14833
604b1bfb
TT
148342019-01-16 Tom Tromey <tom@tromey.com>
14835
14836 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14837 type. Remove no-argument constructor.
14838 <iterator::operator++>: Simplify.
14839 <begin>: Update.
14840 <end>: Use minimal_symbol_count.
14841
f252c6d5
TT
148422019-01-16 Tom Tromey <tom@tromey.com>
14843
14844 * objfiles.h (struct objfile) <psymtabs>: New method.
14845 (class objfile_psymtabs): Remove.
14846 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14847 typedef.
14848 <range>: New method.
14849 (require_partial_symbols): Change return type.
14850 * psymtab.c (require_partial_symbols)
14851 (psym_expand_symtabs_matching): Update.
14852 * mdebugread.c (parse_partial_symbols): Update.
14853 * dbxread.c (dbx_end_psymtab): Update.
14854
b669c953
TT
148552019-01-15 Tom Tromey <tom@tromey.com>
14856
14857 * symtab.c (lookup_objfile_from_block)
14858 (lookup_symbol_in_objfile_symtabs)
14859 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14860 (find_line_symtab, info_sources_command)
14861 (default_collect_symbol_completion_matches_break_on)
14862 (make_source_files_completion_list): Update.
14863 * symmisc.c (print_objfile_statistics, dump_objfile)
14864 (maintenance_print_symbols, maintenance_info_symtabs)
14865 (maintenance_check_symtabs, maintenance_info_line_tables):
14866 Update.
14867 * source.c (select_source_symtab)
14868 (forget_cached_source_info_for_objfile): Update.
14869 * objfiles.h (class objfile_compunits): Remove.
14870 (struct objfile) <compunits_range>: New typedef.
14871 (compunits): New method.
14872 * objfiles.c (objfile_relocate1): Update.
14873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14874 * maint.c (count_symtabs_and_blocks): Update.
14875 * linespec.c (iterate_over_all_matching_symtabs): Update.
14876 * cp-support.c (add_symbol_overload_list_qualified): Update.
14877 * coffread.c (coff_symtab_read): Update.
14878 * ada-lang.c (add_nonlocal_symbols)
14879 (ada_collect_symbol_completion_matches)
14880 (ada_add_global_exceptions): Update.
14881
7e955d83
TT
148822019-01-15 Tom Tromey <tom@tromey.com>
14883
14884 * progspace.h (program_space) <objfiles_safe_range>: New
14885 typedef.
14886 <objfiles_safe>: New method.
14887 * objfiles.h (class all_objfiles_safe): Remove.
14888 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14889 * jit.c (jit_inferior_exit_hook): Update.
14890
2030c079
TT
148912019-01-17 Tom Tromey <tom@tromey.com>
14892
14893 * progspace.h (program_space) <objfiles_range>: New typedef.
14894 <objfiles>: New method.
14895 <objfiles_head>: Rename from objfiles.
14896 (object_files): Update.
14897 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14898 * guile/scm-pretty-print.c
14899 (ppscm_find_pretty_printer_from_objfiles): Update.
14900 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14901 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14902 Update.
14903 * python/py-progspace.c (pspy_get_objfiles): Update.
14904 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14905 Update.
14906 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14907 (objfpy_lookup_objfile_by_build_id): Update.
14908 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14909 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14910 Update.
14911 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14912 (expand_symtab_containing_pc, lookup_objfile_from_block)
14913 (lookup_static_symbol, basic_lookup_transparent_type)
14914 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14915 (find_line_symtab, info_sources_command)
14916 (default_collect_symbol_completion_matches_break_on)
14917 (make_source_files_completion_list, find_main_name): Update.
14918 * symmisc.c (print_symbol_bcache_statistics)
14919 (print_objfile_statistics, maintenance_print_symbols)
14920 (maintenance_print_msymbols, maintenance_print_objfiles)
14921 (maintenance_info_symtabs, maintenance_check_symtabs)
14922 (maintenance_expand_symtabs, maintenance_info_line_tables):
14923 Update.
14924 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14925 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14926 (map_overlay_command, unmap_overlay_command)
14927 (simple_overlay_update, expand_symtabs_matching)
14928 (map_symbol_filenames): Update.
14929 * symfile-debug.c (set_debug_symfile): Update.
14930 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14931 Update.
14932 * source.c (select_source_symtab, forget_cached_source_info):
14933 Update.
14934 * solib.c (solib_read_symbols): Update.
14935 * solib-spu.c (append_ocl_sos): Update.
14936 * psymtab.c (maintenance_print_psymbols)
14937 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14938 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14939 * printcmd.c (info_symbol_command): Update.
14940 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14941 Update.
14942 * objfiles.h (class all_objfiles): Remove.
14943 * objfiles.c (have_partial_symbols, have_full_symbols)
14944 (have_minimal_symbols, qsort_cmp, update_section_map)
14945 (shared_objfile_contains_address_p)
14946 (default_iterate_over_objfiles_in_search_order): Update.
14947 * objc-lang.c (info_selectors_command, info_classes_command)
14948 (find_methods): Update.
14949 * minsyms.c (find_solib_trampoline_target): Update.
14950 * maint.c (maintenance_info_sections)
14951 (maintenance_translate_address, count_symtabs_and_blocks):
14952 Update.
14953 * main.c (captured_main_1): Update.
14954 * linux-thread-db.c (try_thread_db_load_from_pdir)
14955 (has_libpthread): Update.
14956 * linespec.c (iterate_over_all_matching_symtabs)
14957 (search_minsyms_for_name): Update.
14958 * jit.c (jit_find_objf_with_entry_addr): Update.
14959 * hppa-tdep.c (find_unwind_entry)
14960 (hppa_lookup_stub_minimal_symbol): Update.
14961 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14962 Update.
14963 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14964 (elf_gnu_ifunc_resolve_by_got): Update.
14965 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14966 * dwarf-index-write.c (save_gdb_index_command): Update.
14967 * cp-support.c (add_symbol_overload_list_qualified): Update.
14968 * breakpoint.c (create_overlay_event_breakpoint)
14969 (create_longjmp_master_breakpoint)
14970 (create_std_terminate_master_breakpoint)
14971 (create_exception_master_breakpoint): Update.
14972 * blockframe.c (find_pc_partial_function): Update.
14973 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14974 (ada_collect_symbol_completion_matches)
14975 (ada_add_global_exceptions): Update.
14976
776489e0
TT
149772019-01-17 Tom Tromey <tom@tromey.com>
14978
14979 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14980 declare VEC.
14981 (solib_target_parse_libraries): Change return type.
14982 (library_list_start_segment, library_list_start_section)
14983 (library_list_end_library, library_list_start_library); Update.
14984 (solib_target_free_library_list): Remove.
14985 (solib_target_parse_libraries): Remove cleanup. Change return
14986 type.
14987 (solib_target_current_sos): Update.
14988
6471e7d2
TT
149892019-01-17 Tom Tromey <tromey@bapiya>
14990
14991 * valprint.c: Replace "the the" with "the".
14992 * symtab.c: Replace "the the" with "the".
14993 * solib.c: Replace "the the" with "the".
14994 * solib-dsbt.c: Replace "the the" with "the".
14995 * linespec.c: Replace "the the" with "the".
14996 * dwarf2loc.h: Replace "the the" with "the".
14997 * amd64-windows-tdep.c: Replace "the the" with "the".
14998 * aarch64-tdep.c: Replace "the the" with "the".
14999
c24bdb02
KS
150002019-01-16 Keith Seitz <keiths@redhat.com>
15001
15002 PR gdb/23773
15003 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15004 <builder>: Rename to ..
15005 <m_builder>: ... this and make private.
15006 (dwarf2_cu::get_builder): New method. Change all users of
15007 `builder' to use this method.
15008 (dwarf2_start_symtab): Move to ...
15009 (dwarf2_cu::start_symtab): ... here. Update all callers
15010 (setup_type_unit_groups): Move to ...
15011 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15012 callers.
15013 (dwarf2_cu::reset_builder): New method.
15014 (process_full_compunit, process_full_type_unit): Use
15015 dwarf2_cu::reset_builder.
15016 (follow_die_offset): Record the ancestor CU if it is different
15017 from the followed DIE's CU.
15018 (follow_die_sig_1): Likewise.
15019
8d64371b
TT
150202019-01-15 Tom Tromey <tom@tromey.com>
15021
15022 * remote.c (class remote_state) <buf>: Now a char_vector.
15023 <buf_size>: Remove.
15024 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15025 parameter.
15026 (remote_target::getpkt_or_notif_sane_1)
15027 (remote_target::getpkt_sane)
15028 (remote_target::getpkt_or_notif_sane): Likewise.
15029 (class remote_target) <putpkt>: New overload.
15030 (remote_target::read_frame): Change type of "buf_p". Remove
15031 sizeof_p parameter.
15032 (packet_ok): New overload.
15033 (packet_check_result): New overload.
15034 Update all uses.
15035
bb277751
TT
150362019-01-14 Tom Tromey <tom@tromey.com>
15037
15038 * remote-notif.c (handle_notification, remote_notif_ack)
15039 (remote_notif_parse): Make "buf" const.
15040 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15041 const.
15042 (remote_notif_parse, remote_notif_ack, handle_notification):
15043 Likewise.
15044 * remote.c (remote_notif_stop_parse): Make "buf" const.
15045 (remote_target::remote_parse_stop_reply): Make "buf" const.
15046 (remote_notif_stop_ack): Make "buf" const.
15047
05be00a8
TT
150482019-01-14 Tom Tromey <tom@tromey.com>
15049
15050 * remote.c (remote_console_output): Make parameter const.
15051
491adeca
TT
150522019-01-14 Tom Tromey <tom@tromey.com>
15053
15054 * target-debug.h (target_debug_print_signals): Constify.
15055 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15056 * procfs.c (procfs_target::pass_signals): Update.
15057 * linux-nat.c (linux_nat_target::pass_signals): Update.
15058 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15059 * target-delegates.c: Rebuild.
15060 * remote.c (remote_target::program_signals): Update.
15061 (remote_target::pass_signals): Update.
15062 * target.c (target_pass_signals): Constify argument.
15063 (target_program_signals): Likewise.
15064 * target.h (struct target_ops) <pass_signals, program_signals>:
15065 Constify argument.
15066 (target_pass_signals, target_program_signals): Constify argument.
15067
bbd94648
TT
150682019-01-14 Tom Tromey <tom@tromey.com>
15069
15070 PR tui/28819:
15071 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15072
6f072a10
PFC
150732019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15074
15075 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15076 field.
15077 * rs6000-tdep.c: Include reggroups.h.
15078 (IS_V_ALIAS_PSEUDOREG): Define.
15079 (rs6000_register_name): Return names for the "vX" aliases.
15080 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15081 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15082 aliases. Call default_register_reggroup_p for all other
15083 pseudo-registers.
15084 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15085 New functions.
15086 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15087 Handle "vX" aliases.
15088 (v_alias_pseudo_register_collect): New function.
15089 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15090 (rs6000_gdbarch_init): Initialize "vX" aliases as
15091 pseudo-registers. Restore registration of
15092 rs6000_pseudo_register_reggroup_p with
15093 set_tdesc_pseudo_register_reggroup_p.
15094
1a782351
MF
150952019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15096
15097 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15098 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15099 set_gdbarch_num_pseudo_regs.
15100
d73cff18
PW
151012019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15102
15103 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15104 Remove arg prefixname, add do_set and do_show.
15105 Add member functions set_list and show_list.
15106 * cli/cli-style.c (class cli_style_option): Update accordingly.
15107 (style_set_list): Move to file scope.
15108 (style_show_list): Likewise.
15109 (set_style): Call help_list.
15110 (show_style): Call cmd_show_list.
15111 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15112 Update to use the new macro.
15113
60a90376
JB
151142019-10-12 Joel Brobecker <brobecker@adacore.com>
15115
15116 * ada-lang.c (_initialize_ada_language): Expand the help text
15117 for the "catch exception" command.
15118
9d7c67bf
PW
151192019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15120
15121 * symtab.c (matching_obj_sections): Initialize obj,
15122 declare it closer to its usage.
15123
7cf47dc4
TT
151242019-01-10 Tom Tromey <tom@tromey.com>
15125
15126 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15127 (basic_inf_threads_range): Remove.
15128 (inf_threads_range, inf_non_exited_threads_range)
15129 (safe_inf_threads_range): Use next_adapter.
15130
d3cb6808
KS
151312019-01-10 Keith Seitz <keiths@redhat.com>
15132
15133 PR gdb/23712
15134 PR symtab/23010
15135 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15136 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15137
63a20375
KS
151382019-01-10 Keith Seitz <keiths@redhat.com>
15139
15140 PR gdb/23712
15141 PR symtab/23010
15142 * dictionary.c (pending_to_vector): Remove.
15143 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15144 Remove _1 suffix, replacing functions of the same name. Update
15145 all callers.
15146 (dict_create_hashed, dict_create_hashed_expandable)
15147 (dict_create_linear, dict_create_linear_expandable, dict_free)
15148 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15149 Make functions static.
15150
b026f593
KS
151512019-01-10 Keith Seitz <keiths@redhat.com>
15152
15153 PR gdb/23712
15154 PR symtab/23010
15155 * dictionary.h (struct dictionary): Replace declaration with
15156 multidictionary.
15157 (dict_create_hashed, dict_create_hashed_expandable)
15158 (dict_create_linear, dict_create_linear_expandable)
15159 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15160 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15161 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15162 taking multidictionary argument.
15163 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15164 * block.h (struct block) <dict>: Change to multidictionary
15165 and rename `multidict'.
15166 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15167 symmisc.c: Update all dictionary references to multidictionary.
15168
c7748ee9
KS
151692019-01-10 Keith Seitz <keiths@redhat.com>
15170
15171 PR gdb/23712
15172 PR symtab/23010
15173 * dictionary.c: Include unordered_map.
15174 (pending_to_vector): New function.
15175 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15176 Rewrite the non-"_1" functions to take vector instead
15177 of linked list.
15178 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15179 "new" _1 versions of the same name.
15180 (multidictionary): Define.
15181 (std::hash<enum language): New definition.
15182 (collate_pending_symbols_by_language, mdict_create_hashed)
15183 (mdict_create_hashed_expandable, mdict_create_linear)
15184 (mdict_create_linear_expandable, mdict_free)
15185 (find_language_dictionary, create_new_language_dictionary)
15186 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15187 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15188 (mdict_size, mdict_empty): New functions.
15189 * dictionary.h (mdict_iterator): Define.
15190
67aa1f3c
PA
151912019-01-10 Pedro Alves <palves@redhat.com>
15192
15193 * breakpoint.c (read_uploaded_action)
15194 (create_tracepoint_from_upload): Adjust to use
15195 gdb::unique_xmalloc_ptr.
15196 * ctf.c (ctf_write_uploaded_tp):
15197 (SET_ARRAY_FIELD): Use emplace_back.
15198 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15199 * tracefile-tfile.c (tfile_write_uploaded_tp):
15200 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15201 gdb::unique_xmalloc_ptr.
15202 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15203 at_string, cond_string, cmd_strings>: Replace char pointers
15204 with gdb::unique_xmalloc_ptr.
15205
2f667667
PA
152062019-01-10 Pedro Alves <palves@redhat.com>
15207
15208 * solib-target.c (library_list_start_library): Don't xstrdup name.
15209
36cb7237
PA
152102019-01-10 Pedro Alves <palves@redhat.com>
15211
15212 * mdebugread.c (parse_partial_symbols): Use
15213 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15214
da584958
AB
152152019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15216
15217 * linux-fork.c (scoped_switch_fork_info)
15218 <~scoped_switch_fork_info>: Fix incorrect variable name.
15219
1ef8573c
AB
152202019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15221
15222 * linux-fork.c (scoped_switch_fork_info)
15223 <scoped_switch_fork_info>: Make explicit.
15224 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15225
8d7bcccb
TT
152262019-01-10 Tom Tromey <tom@tromey.com>
15227
15228 * objfiles.h (objfile::reset_psymtabs): Update.
15229 * objfiles.c (objfile::objfile): Update.
15230 * psymtab.h (psymtab_storage::obstack): Update.
15231 (psymtab_storage::m_obstack): Use gdb::optional.
15232 (class psymtab_storage): Update comment. Remove objfile
15233 parameter.
15234 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15235
b596a3c7
TT
152362019-01-10 Tom Tromey <tom@tromey.com>
15237
15238 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15239 <free_psymtabs>: Now private.
15240 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15241 (allocate_psymtab): Use new method.
15242
a9342b62
TT
152432019-01-10 Tom Tromey <tom@tromey.com>
15244
15245 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15246 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15247 * mdebugread.c (parse_partial_symbols): Use
15248 allocate_dependencies.
15249 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15250 allocate_dependencies.
15251 (process_psymtab_comp_unit_reader)
15252 (build_type_psymtab_dependencies): Likewise.
15253 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15254
5af70966
TT
152552019-01-10 Tom Tromey <tom@tromey.com>
15256
15257 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15258 PSYMBOL_SET_LANGUAGE.
15259 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15260
5923a04c
TT
152612019-01-10 Tom Tromey <tom@tromey.com>
15262
15263 * psymtab.h (psymtab_storage::obstack): New method.
15264 <m_obstack>: Rename from obstack; now private.
15265 * psymtab.c (psymtab_storage): Update.
15266 * dwarf2read.c (create_addrmap_from_index)
15267 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15268 Update.
15269
6d6a12bf
TT
152702019-01-10 Tom Tromey <tom@tromey.com>
15271
15272 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15273 * objfiles.h (objfile::reset_psymtabs): New method.
15274
d320c2b5
TT
152752019-01-10 Tom Tromey <tom@tromey.com>
15276
15277 * symmisc.c (print_symbol_bcache_statistics): Update.
15278 (print_objfile_statistics): Update.
15279 * symfile.c (reread_symbols): Update.
15280 * psymtab.h (class psymtab_storage): New.
15281 * psymtab.c (psymtab_storage): New constructor.
15282 (~psymtab_storage): New destructor.
15283 (require_partial_symbols): Update.
15284 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15285 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15286 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15287 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15288 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15289 (start_psymtab_common, end_psymtab_common)
15290 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15291 (allocate_psymtab): Update.
15292 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15293 Update.
15294 (dump_psymtab_addrmap, maintenance_print_psymbols)
15295 (maintenance_check_psymtabs): Update.
15296 (class objfile_psymtabs): Move to objfiles.h.
15297 * psympriv.h (discard_psymtab): Now inline.
15298 (psymtab_discarder::psymtab_discarder): Update.
15299 (psymtab_discarder::~psymtab_discarder): Update.
15300 (ALL_OBJFILE_PSYMTABS): Rewrite.
15301 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15302 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15303 Remove fields.
15304 <partial_symtabs>: New field.
15305 (class objfile_psymtabs): Move from psymtab.h. Update.
15306 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15307 psymbol_cache.
15308 (objfile::~objfile): Don't destroy psymbol_cache.
15309 * mdebugread.c (parse_partial_symbols): Update.
15310 * dwarf2read.c (create_addrmap_from_index)
15311 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15312 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15313 (add_partial_subprogram, dwarf2_ranges_read): Update.
15314 * dwarf-index-write.c (write_address_map)
15315 (write_one_signatured_type, recursively_write_psymbols)
15316 (class debug_names, class debug_names, write_psymtabs_to_index):
15317 Update.
15318
1d94a5a3
TT
153192019-01-10 Tom Tromey <tom@tromey.com>
15320
15321 * symtab.h (SYMBOL_SET_NAMES): Update.
15322 (symbol_set_names): Update.
15323 (MSYMBOL_SET_NAMES): Update.
15324 * symtab.c (symbol_set_names): Change argument to be an
15325 objfile_per_bfd_storage.
15326 * psymtab.c (add_psymbol_to_bcache): Update.
15327 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15328
0f14768a
TT
153292019-01-10 Tom Tromey <tom@tromey.com>
15330
15331 * symtab.c (create_demangled_names_hash): Change argument to be an
15332 objfile_per_bfd_storage.
15333 (symbol_set_names): Update.
15334
6eee24ce
TT
153352019-01-10 Tom Tromey <tom@tromey.com>
15336
15337 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15338 init_psymbol_list.
15339 * psymtab.c (init_psymbol_list): Do nothing if already called.
15340 * psympriv.h (init_psymbol_list): Add comment.
15341 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15342 init_psymbol_list.
15343 * dbxread.c (dbx_symfile_read): Unconditionally call
15344 init_psymbol_list.
15345
75aedd27
TT
153462019-01-10 Tom Tromey <tom@tromey.com>
15347
15348 * xcoffread.c (scan_xcoff_symtab): Update.
15349 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15350 "where".
15351 * mdebugread.c (parse_partial_symbols)
15352 (handle_psymbol_enumerators): Update.
15353 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15354 * dbxread.c (read_dbx_symtab): Update.
15355 * psympriv.h (psymbol_placement): New enum.
15356 (add_psymbol_to_list): Update.
15357
939652a5
TT
153582019-01-10 Tom Tromey <tom@tromey.com>
15359
15360 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15361 static_psymbols parameters.
15362 (scan_xcoff_symtab): Update.
15363 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15364 static_psymbols parameters.
15365 * psympriv.h (start_psymtab_common): Update.
15366 * mdebugread.c (parse_partial_symbols): Update.
15367 * dwarf2read.c (create_partial_symtab): Update.
15368 * dbxread.c (read_dbx_symtab): Update.
15369 (start_psymtab): Remove global_psymbols and static_psymbols
15370 parameters.
15371
baa62830
TT
153722019-01-10 Tom Tromey <tom@tromey.com>
15373
15374 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15375 * psymtab.c (allocate_psymtab): Add comment.
15376 * psympriv.h (allocate_psymtab): Add comment.
15377 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15378 initializations.
15379 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15380
0e8f53ba
TT
153812019-01-10 Tom Tromey <tom@tromey.com>
15382
15383 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15384 Don't declare.
15385 * mipsread.c: Include mdebugread.h.
15386 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15387 Declare.
15388 * elfread.c: Include mdebugread.h.
15389
b22a7c6a
TT
153902019-01-09 Tom Tromey <tom@tromey.com>
15391
15392 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15393 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15394 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15395 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15396 (psym_lookup_symbol, psym_find_last_source_symtab)
15397 (psym_forget_cached_source_info, psym_print_stats)
15398 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15399 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15400 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15401 (psym_find_compunit_symtab_by_address)
15402 (maintenance_print_psymbols, maintenance_info_psymtabs)
15403 (maintenance_check_psymtabs): Use ranged for.
15404 * psymtab.h (class objfile_psymtabs): New.
15405 (require_partial_symbols): Return objfile_psymtabs.
15406 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15407
3b9d3ac2
TT
154082019-01-09 Tom Tromey <tom@tromey.com>
15409
15410 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15411 (find_pc_mapped_section, list_overlays_command)
15412 (map_overlay_command, unmap_overlay_command)
15413 (simple_overlay_update): Use all_objfiles.
15414 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15415 * printcmd.c (info_symbol_command): Use all_objfiles.
15416 * objfiles.h (ALL_OBJSECTIONS): Remove.
15417 * maint.c (maintenance_translate_address): Use all_objfiles.
15418 * gcore.c (gcore_create_callback): Use all_objfiles.
15419 (objfile_find_memory_regions): Likewise.
15420
8b31193a
TT
154212019-01-09 Tom Tromey <tom@tromey.com>
15422
15423 * symtab.c (find_line_symtab, info_sources_command)
15424 (make_source_files_completion_list): Use objfile_compunits.
15425 * source.c (select_source_symtab): Use objfile_compunits.
15426 * objfiles.h (struct objfile): Update comment.
15427 (ALL_OBJFILES): Remove.
15428 (ALL_FILETABS): Remove.
15429 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15430 objfile_compunits.
15431
d5da8b3c
TT
154322019-01-09 Tom Tromey <tom@tromey.com>
15433
15434 * symmisc.c (print_objfile_statistics, dump_objfile)
15435 (maintenance_print_symbols): Use compunit_filetabs.
15436 * source.c (forget_cached_source_info_for_objfile): Use
15437 compunit_filetabs.
15438 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15439 (ALL_FILETABS): Use compunit_filetabs.
15440 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15441 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15442
5accd1a0
TT
154432019-01-09 Tom Tromey <tom@tromey.com>
15444
15445 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15446 (compunit_filetabs): New.
15447 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15448 compunit_filetabs.
15449 (info_sources_command, make_source_files_completion_list): Remove
15450 declaration.
15451 * symmisc.c (print_objfile_statistics, dump_objfile)
15452 (maintenance_print_symbols): Remove declaration.
15453 (maintenance_info_symtabs): Use compunit_filetabs.
15454 (maintenance_info_line_tables): Likewise.
15455 * source.c (select_source_symtab): Change local variable name.
15456 (forget_cached_source_info_for_objfile): Remove declaration.
15457 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15458 * objfiles.c (objfile_relocate1): Remove declaration.
15459 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15460 declaration.
15461 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15462 * coffread.c (coff_symtab_read): Remove declaration.
15463 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15464 compunit_filetabs.
15465
d8aeb77f
TT
154662019-01-09 Tom Tromey <tom@tromey.com>
15467
15468 * symtab.c (lookup_objfile_from_block)
15469 (find_pc_sect_compunit_symtab, search_symbols)
15470 (default_collect_symbol_completion_matches_break_on): Use
15471 objfile_compunits.
15472 * objfiles.h (ALL_COMPUNITS): Remove.
15473 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15474 * cp-support.c (add_symbol_overload_list_qualified): Use
15475 objfile_compunits.
15476 * ada-lang.c (ada_collect_symbol_completion_matches)
15477 (ada_add_global_exceptions): Use objfile_compunits.
15478
592553c4
TT
154792019-01-09 Tom Tromey <tom@tromey.com>
15480
15481 * source.c (select_source_symtab)
15482 (forget_cached_source_info_for_objfile): Remove declaration.
15483 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15484 declaration.
15485 * maint.c (count_symtabs_and_blocks): Remove declaration.
15486 * cp-support.c (add_symbol_overload_list_qualified): Remove
15487 declaration.
15488 * coffread.c (coff_symtab_read): Remove declaration.
15489 * symtab.c (lookup_symbol_in_objfile_symtabs)
15490 (basic_lookup_transparent_type_1): Use objfile_compunits.
15491 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15492 (info_sources_command, search_symbols)
15493 (default_collect_symbol_completion_matches_break_on)
15494 (make_source_files_completion_list): Remove declaration.
15495 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15496 (ada_collect_symbol_completion_matches)
15497 (ada_add_global_exceptions): Remove declaration.
15498 * linespec.c (iterate_over_all_matching_symtabs): Use
15499 objfile_compunits.
15500 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15501 (class objfile_compunits): New.
15502 (ALL_COMPUNITS): Use objfile_compunits.
15503 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15504 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15505 objfile_compunits.
15506 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15507
5325b9bf
TT
155082019-01-09 Tom Tromey <tom@tromey.com>
15509
15510 * symtab.c (search_symbols)
15511 (default_collect_symbol_completion_matches_break_on): Use
15512 objfile_msymbols.
15513 * ada-lang.c (ada_lookup_simple_minsym)
15514 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15515 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15516 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15517 objfile_msymbols.
15518 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15519 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15520 * objc-lang.c (find_methods): Use objfile_msymbols.
15521 (info_selectors_command, info_classes_command): Likewise.
15522 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15523 * objfiles.h (class objfile_msymbols): New.
15524 (ALL_OBJFILE_MSYMBOLS): Remove.
15525 (ALL_MSYMBOLS): Remove.
15526
cac85af2
TT
155272019-01-09 Tom Tromey <tom@tromey.com>
15528
15529 * common/next-iterator.h (next_adapter): Add Iterator template
15530 parameter.
15531 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15532 (class all_objfiles_safe): New.
15533 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15534 * objfiles.c (put_objfile_before): Update comment.
15535 (add_separate_debug_objfile): Likewise.
15536 (free_all_objfiles): Use all_objfiles_safe.
15537 (objfile_purge_solibs): Likewise.
15538
aed57c53
TT
155392019-01-09 Tom Tromey <tom@tromey.com>
15540
15541 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15542 (expand_symtab_containing_pc, lookup_static_symbol)
15543 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15544 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15545 all_objfiles.
15546 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15547 * breakpoint.c (create_overlay_event_breakpoint)
15548 (create_longjmp_master_breakpoint)
15549 (create_std_terminate_master_breakpoint)
15550 (create_exception_master_breakpoint): Use all_objfiles.
15551 * linux-thread-db.c (try_thread_db_load_from_pdir)
15552 (has_libpthread): Use all_objfiles.
15553 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15554 * linespec.c (iterate_over_all_matching_symtabs)
15555 (search_minsyms_for_name): Use all_objfiles.
15556 * maint.c (maintenance_info_sections): Use all_objfiles.
15557 * main.c (captured_main_1): Use all_objfiles.
15558 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15559 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15560 * guile/scm-pretty-print.c
15561 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15562 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15563 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15564 (maintenance_print_msymbols): Use all_objfiles.
15565 * source.c (select_source_symtab): Use all_objfiles.
15566 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15567 * symfile.c (remove_symbol_file_command)
15568 (expand_symtabs_matching, map_symbol_filenames): Use
15569 all_objfiles.
15570 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15571 all_objfiles.
15572 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15573 * objc-lang.c (find_methods): Use all_objfiles.
15574 * objfiles.c (have_partial_symbols, have_full_symbols)
15575 (have_minimal_symbols, qsort_cmp)
15576 (default_iterate_over_objfiles_in_search_order): Use
15577 all_objfiles.
15578 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15579 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15580 (maintenance_check_psymtabs): Use all_objfiles.
15581 (ALL_PSYMTABS): Remove.
15582 * compile/compile-object-run.c (do_module_cleanup): Use
15583 all_objfiles.
15584 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15585 * cp-support.c (add_symbol_overload_list_qualified): Use
15586 all_objfiles.
15587 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15588 Use all_objfiles.
15589 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15590 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15591 all_objfiles.
15592 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15593 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15594 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15595 Uses all_objfiles.
15596 * solib.c (solib_read_symbols): Use all_objfiles
15597
99d89cde
TT
155982019-01-09 Tom Tromey <tom@tromey.com>
15599
15600 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15601 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15602 all_objfiles.
15603 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15604 * symmisc.c (print_symbol_bcache_statistics)
15605 (print_objfile_statistics, maintenance_print_objfiles)
15606 (maintenance_info_symtabs, maintenance_check_symtabs)
15607 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15608 all_objfiles.
15609 * source.c (forget_cached_source_info): Use all_objfiles.
15610 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15611 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15612 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15613 * objfiles.c (update_section_map): Use all_objfiles.
15614 (shared_objfile_contains_address_p): Likewise.
15615 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15616 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15617
21708325
TT
156182019-01-09 Tom Tromey <tom@tromey.com>
15619
15620 * common/next-iterator.h: New file.
15621 * objfiles.h (class all_objfiles): New.
15622 (struct objfile_iterator): New.
15623
669e09f6
PW
156242019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15625
15626 * NEWS: Move the description of the changed "frame", "select-frame",
15627 and "info frame" commands to the Changed commands section.
15628
041be526
SM
156292019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15630
15631 * gdbtypes.c (check_stub_method_group): Remove handling of old
15632 mangling schemes.
15633 * linespec.c (find_methods): Likewise.
15634 * stabsread.c (read_member_functions): Likewise.
15635 * valops.c (search_struct_method): Likewise.
15636 (value_struct_elt_for_reference): Likewise.
15637 * NEWS: Mention this change.
15638
0e2a2133
AB
156392019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15640
15641 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15642 print_source_lines.
15643 * source.c (print_source_lines_base): Update line number check.
15644 (print_source_lines): New function.
15645 (source_lines_range::source_lines_range): New function.
15646 * source.h (class source_lines_range): New class.
15647 (print_source_lines): New declaration.
15648
1055a3b4
PW
156492019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15650
15651 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15652
cfeadda5
TT
156532019-01-08 Tom Tromey <tom@tromey.com>
15654 Simon Marchi <simon.marchi@ericsson.com>
15655
15656 PR gdb/24060
15657 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15658 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15659 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15660 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15661 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15662 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15663
583068ca
AB
156642019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15665
15666 * source.c (select_source_symtab): Move header comment to
15667 declaration in source.h.
15668 (forget_cached_source_info_for_objfile): Likewise.
15669 (forget_cached_source_info): Likewise.
15670 (identify_source_line): Likewise.
15671 * source.h (identify_source_line): Move declaration from symtab.h
15672 and add comment from source.c
15673 (print_source_lines): Likewise.
15674 (forget_cached_source_info_for_objfile): Likewise.
15675 (forget_cached_source_info): Likewise.
15676 (select_source_symtab): Likewise.
15677 (enum print_source_lines_flag): Move definition from symtab.h.
15678 * symtab.h (identify_source_line): Move declaration to source.h.
15679 (print_source_lines): Likewise.
15680 (forget_cached_source_info_for_objfile): Likewise.
15681 (forget_cached_source_info): Likewise.
15682 (select_source_symtab): Likewise.
15683 (enum print_source_lines_flag): Move definition to source.h.
15684 * tui/tui-hooks.c: Add 'source.h' include.
15685
ec98a4ad
AB
156862019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15687
15688 * source.c (print_source_lines_base): Handle requests to print
15689 reverse line number sequences, and guard against empty lines
15690 string.
15691
62ea19c1
AB
156922019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15693
15694 * source.c (print_source_lines_base): Fix skip of '\r' if next
15695 character is '\n'.
15696
9d30e1fd
TT
156972019-01-06 Tom Tromey <tom@tromey.com>
15698
15699 * c-exp.y (struct c_parse_state) <macro_original_text,
15700 expansion_obstack>: New member.
15701 (macro_original_text, expansion_obstack): Remove globals.
15702 (scan_macro_expansion, scanning_macro_expansion)
15703 (finished_macro_expansion): Update.
15704 (scan_macro_cleanup): Remove.
15705 (yylex, c_parse): Update.
15706
c65bac38
TT
157072019-01-06 Tom Tromey <tom@tromey.com>
15708
15709 * c-exp.y (struct c_parse_state) <strings>: New member.
15710 (operator_stoken): Update.
15711
02e12e38
TT
157122019-01-06 Tom Tromey <tom@tromey.com>
15713
15714 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15715 (union type_stack_elt) <typelist_val>: Now a pointer to
15716 std::vector.
15717 (type_stack_cleanup): Don't declare.
15718 (push_typelist): Update.
15719 * parse.c (pop_typelist): Return a std::vector.
15720 (push_typelist): Take a std::vector.
15721 (follow_types): Update. Do not free args.
15722 (type_stack_cleanup): Remove.
15723 * c-exp.y (struct c_parse_state): New.
15724 (cpstate): New global.
15725 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15726 (nonempty_typelist): Update.
15727 (func_mod): Create a new vector.
15728 (c_parse): Create a c_parse_state.
15729 (check_parameter_typelist): Do not delete params.
15730 (function_method): Update. Do not delete type_list.
15731
f097f5ad
TT
157322019-01-06 Tom Tromey <tom@tromey.com>
15733
15734 PR gdb/28155:
15735 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15736 check_typedef.
15737 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15738 (print_return_value): Likewise.
15739
d2adf9f1
TT
157402019-01-05 Tom Tromey <tom@tromey.com>
15741
15742 * contrib/cleanup_check.py: Remove.
15743 * contrib/gcc-with-excheck: Remove.
15744 * contrib/exsummary.py: Remove.
15745 * contrib/excheck.py: Remove.
15746
2eab46b1
JB
157472019-01-05 Joel Brobecker <brobecker@adacore.com>
15748
15749 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15750 NULL. Initialize tpprev to NULL instead of assigning it
15751 to NULL on the next statement.
15752 * windows-nat.c (windows_delete_thread): Remove check for
15753 main_thread_id before printing thread exit notifications.
15754 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15755 Remove thread ID check against main_thread_id.
15756 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15757 windows_delete_thread.
15758 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15759
48c5e7e2
TT
157602019-01-04 Tom Tromey <tom@tromey.com>
15761
15762 * compile/compile.c (_initialize_compile): Use upper case for
15763 metasyntactic variables.
15764 * symmisc.c (_initialize_symmisc): Use upper case for
15765 metasyntactic variables.
15766 * psymtab.c (_initialize_psymtab): Use upper case for
15767 metasyntactic variables.
15768 * demangle.c (demangle_command): Use upper case for metasyntactic
15769 variables.
15770 (_initialize_demangler): Likewise.
15771 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15772 variables.
15773
986041cd
TT
157742019-01-03 Tom Tromey <tom@tromey.com>
15775
15776 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15777
7c711119
TT
157782019-01-03 Tom Tromey <tom@tromey.com>
15779
15780 * python/py-symtab.c (salpy_str): Update.
15781 (struct salpy_sal_object) <symtab>: Now a PyObject.
15782 (salpy_dealloc): Update.
15783 (del_objfile_sal): Use gdbpy_ref.
15784
1b20edf0
TT
157852019-01-03 Tom Tromey <tom@tromey.com>
15786
15787 * python/py-type.c (convert_field): Use new_reference. Return
15788 gdbpy_ref.
15789 (make_fielditem): Return gdbpy_ref.
15790 (typy_fields): Update.
15791 (typy_getitem): Update.
15792 (field_name): Return gdbpy_ref. Use new_reference.
15793 (typy_iterator_iternext): Update.
15794
ea41325b
TT
157952019-01-03 Tom Tromey <tom@tromey.com>
15796
15797 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15798
2a3c71d6
TT
157992019-01-03 Tom Tromey <tom@tromey.com>
15800
15801 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15802 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15803 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15804 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15805 (pspy_set_type_printers): Likewise.
15806 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15807 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15808 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15809 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15810 (objfpy_set_type_printers): Likewise.
15811
5c329e6a
TT
158122019-01-03 Tom Tromey <tom@tromey.com>
15813
15814 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15815 (gdbpy_print_stack): Use gdbpy_err_fetch.
15816 * python/python-internal.h (class gdbpy_err_fetch): New class.
15817 (class gdbpy_enter) <m_error_type, m_error_value,
15818 m_error_traceback>: Remove.
15819 <m_error>: New member.
15820 (gdbpy_exception_to_string): Don't declare.
15821 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15822 * python/py-value.c (convert_value_from_python): Use
15823 gdbpy_err_fetch.
15824 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15825 gdbpy_exception_to_string.
15826 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15827 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15828 gdbpy_err_fetch.
15829
169bb27b
AB
158302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15831
15832 * linux-nat.c (delete_lwp_cleanup): Delete.
15833 (struct lwp_deleter): New struct.
15834 (lwp_info_up): New typedef.
15835 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15836 lwp_info_up.
15837
a07c8880
AB
158382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15839
15840 * linux-fork.c (class scoped_switch_fork_info): New class.
15841 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15842
26089c49
AB
158432019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15844
15845 * valops.c (find_overload_match): Remove use of null_cleanup, and
15846 calls to do_cleanups.
15847
06d3e5b0
AB
158482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15849
15850 * compile/compile-cplus-types.c
15851 (compile_cplus_instance::decl_name): Handle changes to
15852 cp_func_name.
15853 * cp-support.c (cp_func_name): Update header comment, update
15854 return type.
15855 * cp-support.h (cp_func_name): Update return type in declaration.
15856 * valops.c (find_overload_match): Move temp_func local to top
15857 level of function and change its type. Use temp_func to hold and
15858 delete temporary string obtained from cp_func_name.
15859
66644cd3
AB
158602019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15861
15862 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15863 gdb::char_vector, remove cleanup, and update uses of `msg`.
15864
592d8c0a
JW
158652019-01-03 Jim Wilson <jimw@sifive.com>
15866
15867 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15868
c55d06ec
TT
158692019-01-02 Tom Tromey <tom@tromey.com>
15870
15871 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15872 (tdesc_parse_xml): Remove cleanups.
15873 * target-descriptions.h (make_cleanup_free_target_description):
15874 Don't declare.
15875 (target_desc_deleter): New struct.
15876 (target_desc_up): New typedef.
15877 * target-descriptions.c (target_desc_deleter::operator()): Rename
15878 from free_target_description.
15879 (make_cleanup_free_target_description): Remove.
15880
3a6ae42d
TT
158812019-01-02 Tom Tromey <tom@tromey.com>
15882
15883 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15884 constructor, destructor.
15885 (linespec_parser): Remove typedef.
15886 (~linespec_parser): Rename from linespec_parser_delete.
15887 (linespec_lex_to_end, linespec_complete_label)
15888 (linespec_complete): Update.
15889 (decode_line_full): Remove cleanups.
15890 (decode_line_1): Update.
15891
61fd3e73
TT
158922019-01-02 Tom Tromey <tom@tromey.com>
15893
15894 * python/python-internal.h (inferior_to_inferior_object): Change
15895 return type.
15896 * python/py-exitedevent.c (create_exited_event_object): Update.
15897 * python/py-inferior.c (inferior_to_inferior_object): Return
15898 gdbpy_ref.
15899 (python_new_inferior, python_inferior_deleted)
15900 (thread_to_thread_object, delete_thread_object)
15901 (build_inferior_list, gdbpy_selected_inferior): Update.
15902 * python/py-infthread.c (create_thread_object): Update. Also fail
15903 if inferior_to_inferior_object fails.
15904
d20172fc
SM
159052019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15906
15907 * inferior.h (class inferior) <displaced_step_state>: New field.
15908 * infrun.h (struct displaced_step_state): Move here from
15909 infrun.c. Initialize fields, add constructor.
15910 <inf>: Remove field.
15911 <reset>: New method.
15912 * infrun.c (struct displaced_step_inferior_state): Move to
15913 infrun.h.
15914 (displaced_step_inferior_states): Remove.
15915 (get_displaced_stepping_state): Adust.
15916 (displaced_step_in_progress_any_inferior): Adjust.
15917 (displaced_step_in_progress_thread): Adjust.
15918 (displaced_step_in_progress): Adjust.
15919 (add_displaced_stepping_state): Remove.
15920 (get_displaced_step_closure_by_addr): Adjust.
15921 (remove_displaced_stepping_state): Remove.
15922 (infrun_inferior_exit): Call displaced_step_state.reset.
15923 (use_displaced_stepping): Don't check for NULL.
15924 (displaced_step_prepare_throw): Call
15925 get_displaced_stepping_state.
15926 (displaced_step_fixup): Don't check for NULL.
15927 (prepare_for_detach): Don't check for NULL.
15928
e3319240
PW
159292019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15930
15931 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15932 in case of call that did not complete.
15933
5d36dfb9
AU
159342019-01-02 Andrey Utkin <autkin@undo.io>
15935
15936 * symfile.c (find_separate_debug_file): Fix search of debug files for
15937 remote debuggee.
15938
8833fbf0
TT
159392019-01-02 Tom Tromey <tom@tromey.com>
15940
15941 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15942 indentation.
15943 * python/py-frame.c (frapy_older): Remove cast.
15944 (frapy_newer): Likewise.
15945 * python/py-breakpoint.c (local_setattro): Remove cast.
15946 * python/py-arch.c (archpy_name): Remove local variable.
15947 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15948
4ada3dfd
JB
159492019-01-02 Joel Brobecker <brobecker@adacore.com>
15950
15951 * unittests/basic_string_view/element_access/char/empty.cc:
15952 Fix year range in copyright header.
15953
113b7b81
AB
159542019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15955
15956 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15957 Delete.
15958 <operator==>: Update with for removed field.
15959 <hash>: Likewise.
15960 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15961 <isa_features>: ...this.
15962 <abi_features>: New field.
15963 (riscv_isa_flen): Update comment.
15964 (riscv_abi_xlen): New declaration.
15965 (riscv_abi_flen): New declaration.
15966 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15967 isa_features.
15968 (riscv_abi_xlen): New function.
15969 (riscv_isa_flen): Update to get answer from isa_features.
15970 (riscv_abi_flen): New function.
15971 (riscv_has_fp_abi): Update to get answer from abi_features.
15972 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15973 xlen and flen.
15974 (riscv_call_info) <xlen, flen>: Update comment.
15975 (riscv_call_arg_struct): Remove invalid assertions
15976 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15977 is removed.
15978 (riscv_gdbarch_init): Gather isa features and abi features
15979 separately, ensure both match on the gdbarch when reusing an old
15980 gdbarch. Relax an error check to allow 32-bit abi float to run on
15981 a target with 64-bit float hardware.
15982
b18ca514
PW
159832019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15984
15985 * source.c (search_command_helper): Stop reverse search
15986 when line 1 has been searched.
15987
ec70d8db
PW
159882019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15989
15990 * record-full.c (record_full_base_target::close): Rewrite
15991 record_full_core_buf_list free logic.
15992
5b38f9c1
PW
159932019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15994
15995 * break-catch-syscall.c (print_one_catch_syscall): xfree
15996 the last text.
15997
66d91b39
JB
159982019-01-01 Joel Brobecker <brobecker@adacore.com>
15999
16000 * top.c (print_gdb_version): Update Copyright year in version
16001 message.
16002
42a4f53d
JB
160032019-01-01 Joel Brobecker <brobecker@adacore.com>
16004
16005 Update copyright year range in all GDB files.
16006
7e955d83 160072019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16008
5bbd631d 16009 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16010
5bbd631d 16011For older changes see ChangeLog-2018.
c906108c
SS
16012\f
16013Local Variables:
16014mode: change-log
16015left-margin: 8
16016fill-column: 74
16017version-control: never
57da7796 16018coding: utf-8
c906108c 16019End:
5bbd631d 16020
This page took 3.802148 seconds and 4 git commands to generate.